Conte B2B

  • 2022-01-05Date de collecte
  • 2022-02-15Mise à jour
Conte B2B
  • Adresse du site Web:conteb2b.com
  • IP du serveur:94.237.95.172
  • Description du site:

nom de domaine:conteb2b.comÉvaluation

sur 5000~500000

nom de domaine:conteb2b.comcouler

266

nom de domaine:conteb2b.comBon ou Mauvais

C'est un succès ou un échec. mais persévérance féroce

site Internet:Conte B2BPoids

3

site Internet:Conte B2BIP

94.237.95.172

site Internet:Conte B2Bteneur

ConteB2Bconteb2bmobileappTHEAPPISMORECONVENIENTPlan,placeandtrackordersdirectlyfromyoursmartphonePlan,placeandtrackordersdirectlyfromyourtabletscanthecodewithyourphonetoinstalltheappOpen×document.addEventListener('DOMContentLoaded',function(){const$popupApps=$('.popup-overlay');constisUserAdmin=false;constenvironment="release";constshouldShowThisSession=function(key){if(!((environment==='release')&&!isUserAdmin)){returnfalse;}constcurrentTimestamp=(newDate()).getTime();returnNumber(window.localStore.getItem(`proposition_item_${key}_show_at`)){e.preventDefault();$popupApps.removeClass('popup-overlay_show');});$popupApps.click(e=>{if(e.target.classList.contains('popup-overlay_show')){$popupApps.removeClass('popup-overlay_show');}});if(shouldShowThisSession('mobile_app_popup')){setTimeout(()=>{$popupApps.addClass('popup-overlay_show');setShownThisSession('mobile_app_popup');},);}});FastdeliveryPrepaymentandinstallmentsAcumulativediscount50000SKUinthestockAffiliateprogramB2B+273Chinaen+273AboutthecompanyConditionsContactsNew233e-mailpasswordDon'trememberthepassword?LoginRegistration×ShoweverythingCreateanaccountin3minutesGoExclusivepricesGoForwomenNewGoCardigansDressesSkirtsTrousersJeansLeggingsLeggingsforthepregnantBodiesTightsSocksBrasPantiesHairaccessoriesThermalunderwearFormenNewGoCardigansPantiesSocksThermalunderwearForchildrenNewGoCardigansBreechesTightsLeggingsSocksKnee-heightsSwimsuitsAccessories+273anna.rubanik@contepolska.comletCONFIG={};CONFIG.FANCYBOX={width:'auto',height:'auto',wrapCSS:"styled-fancybox",closeBtn:false,padding:0,autoResize:true,helpers:{overlay:{locked:true,fixed:true},title:null},afterShow:function(){$('.styled-fancybox').find('.close,.close-button').on('click',function(e){e.preventDefault();$.fancybox.close();});}};CONFIG.REALTIME={host:'//ws.conteb2b.com',channels:[],token:'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjFubmVscyI6W10sInRpbWVzdGFtcCI6MTczNTA1OTc0M30.mvgrrIYvqtkazHIVc7r-cQ-X9QABZ6t7367HcuftEcY'};CONFIG.URL={domain:'conteb2b.com',cartSync:'/client/cart/change',cityLoad:'/geo/change_country',cityLoadAutocomplete:'/geo/city/autocomplete',urlGetProducts:'/catalog/get/products/{modelSlug}',urlGetModels:'/catalog/get/models',urlGetModelsWithProducts:'/catalog/get/models_with_products',urlGetModelsSplitByColor:'/catalog/get/models_split_by_color',catalogueIndex:'/catalog',orderProceed:'/order/proceed',clientCartClear:'/client/cart/clear',clientCartIndexByCategories:'/client/cart?viewType=by_categories',clientCartIndexGeneralList:'/client/cart?viewType=general_list',catalogSwitchMergeModels:'/catalog/switch_merge_models',registerSetStep:'/register_set_step',login:'/login',loginPhone:'/login_phone',homeCountry:'/home/country',};CONFIG.SWITCHERY={/**httpabpetkov.github.io/switchery/*/color:'#1AB394',secondaryColor:'#F8BEC4'};CONFIG.EXT_TABLE={lang:{count_for_all:"Totalquntity",products:"products",to_order:"intoabasket",to_order_for_all:"Addalltheproductsinchosenamounttotheorder",remove_from_order:"delete",remove_from_order_for_all:"Deletealltheproductsofthismodelfromtheorder",total:"Total"}};CONFIG.DATEPICKER={lang:{days:["Su","Mo","Tu","We","Th","Fr","Sa",],//arrayofstringsofweekdaysmonths:["January","February","March","April","May","June","July","August","September","October","November","December",],//arrayofstringsofallmonthsinayearworkingDays:[1,2,3,4,5],//Date()based;0=Sun;otherswillbesignedasweek-endtoday:"today",clear:"clear",close:"close",},weekDayClass:'week-daytext-center',sundayBased:false,min:newDate('2016-08-01'),//standardminimaldisplayabledatemax:newDate('2025-12-31'),//standardmaximaldisplayabledaterenderWeekNo:true,timeFormat:'',mode:'dp-below',dayOffset:1,renderDaysOfWeek:true,format:function(date){returndate.toLocaleDateString('ru-RU');},parse(dateString){constdateInfo=dateString.split('.').reverse();if(dateInfo.length===3){constdate=newDate(dateInfo.join('-'));returnisNaN(date)?newDate():date;}returnnewDate();},};CONFIG.DATE_RANGE_PICKER={startOpts:CONFIG.DATEPICKER,endOpts:CONFIG.DATEPICKER,};CONFIG.CHOSEN={allow_single_deselect:true,width:'100%',placeholder_text:'Choose...',no_results_text:'Noresultswerefound',disable_search_threshold:10};CONFIG.SELECT2={allowClear:true,placeholder:'Choose...',langue:{noResults:function(){return'Noresultswerefound';},loadingMore:function(){return'Loadingthefollowingresults...';},searching:function(){return'Searching...';},},};CONFIG.JQGRID={height:'auto',autowidth:true,rowNum:20,rowList:[10,20,30,50,100],viewrecords:true,hidegrid:false,subGrid:false,loadui:false,mtype:"POST",datatype:"json",};CONFIG.DATATABLES={"autoWidth":false,"bPinate":true,"bLengthChange":true,"iCookieDuration":60*60*24*31,"bFilter":true,"bSort":true,"bInfo":true,"bAutoWidth":false,"bStateSe":true,"peLength":10,"langue":{"sLengthMenu":"For_MENU_noticesperpe.","sZeroRecords":"Sorry,nothinghasbeenfound...","sInfo":"Shown_START_-_END_(_TOTAL_itemstotal)","sInfoEmpty":"Shown0from0(allinall0notes)","sInfoFiltered":"filteredfrom_MAX_notes","sSearch":"Searching:","processing":"Loadthedata...","oPinate":{"sPrevious":"Previous","sNext":"next","sFirst":"First","sLast":"Last"},buttons:{copyTitle:"Copytoclipboard",copySuccess:{_:"%dlinescopiedtoclipboard",1:"1linecopiedtoclipboard"}}}};CONFIG.LANG={"continue?":"Continue?","areYouSure":"Areyousure?","ailableForOrder":"Onorder","ailableOnStock":"Instock","buttonCancel":"Cancel","buttonClearOrder":"Clear","buttonCreateOrder":"Completetheorder","buttonDelete":"Delete","buttonProceed":"Continue","buttonYesClear":"Yes,clear!","buttonToCatalog":"Gotothecatalogue","byCategories":"bycategory","cartDelayailable":"undertheorder","cartDelayailableInfo":`Thislistliststhepositionsthatarefullyorpartiallyailabletoorder.Eachitemhasthequantity"instock"and"onorder".`,"cartIsEmpty":`Thebasketisempty`,"cartInailable":"Instock","cartInailableInfo":"","cartPreorder":"Pre-order","cartPreorderInfo":`ThislistshowsthepositionsforwhichPreorderisailable.`,"cartStoreName":"Orderitemsfromstock"%store_name%"","cartUnailable":"Notailable","cartUnailableInfo":`Thislistlistsitemsthatarewhollyorpartiallyoutofstock.Eachitemhasanamountthatisailableforordering.`,"cleared":"Deleted!","columnAmount":"Total","columnColor":"Colour","columnCount":"Quantity","columnName":"Name","columnPhoto":"Photo","columnPrise":"Price","columnSize":"Size","delete":"Delete","errorOrderEmptyCart":"Youcan039;tplacetheorderwithanemptyshoppingbasket.","generalList":"generallist","hideImes":"hidephoto","orderClearConfirm":"Areyousureyouwanttodeleteallthechosengoodsfromtheorder?","orderDiscountTextClient":"Discountedamount","orderDiscountValueText":"Totalvalueofalldiscounts","retain":"Lee","showImes":"showphoto","unknown_error":"Unknownerror","min_date_project":"2016-08-01","columnWholesalePrice":"WSP","columnRetailPriceModel":"Recommendedretailprice","phraseFrom":"from","buttonsChoice":"Choose","badgesOutlet":"Lastprice","badgesInOrder":"Onorder","badgesNew":"new","badgesPreOrder":"pre-order","catalogEmpty":"Noproductsfoundforgivenfilters;(","catalogSwitchMergeModels":"Showthedrawingsofthearticleintheproductcard","fileNotLoaded":"0filesloaded",selectedCountryAriaLabel:"Selectedcountry",noCountrySelected:"Thecountryhasnotbeenselected",countryListAriaLabel:"Listofcountries",searchPlaceholder:"Search",zeroSearchResults:"Therearenosearchresults",oneSearchResult:"1searchresult",multipleSearchResults:"${count}ofsearchresults",wrongPhone:"Invalidphonenumberformat",phoneNotValid:"Thephonenumberisincorrectforyourcountry",waitActivate:"Waitforaccountactivation",loginBySms:"LoginwithanSMScode",login:"Login",};CONFIG.DATA={showActualBalance:Boolean(0),maxProductCount:Number(),isNewPe:Boolean(0),isOutletPe:Boolean(0),isSearchPe:Boolean(0),userId:0,currentCountry:'CN',ailableLoginPhoneCountry:["BY","RU"],ailableViewNumber:'Number'};CONFIG.TEMPLATE={infinit:'∞',};CONFIG.ROLE={ROLE_RETAIL_NETWORK:Boolean(0),ROLE_ADMIN:Boolean(0),};CONFIG.PRODUCT_CARD_FILTER={IS_FILTER_OPENED:'is_filter_opened',};document.addEventListener('DOMContentLoaded',function(){constdiscountFilter='discountFilter_'+"0";constorderField='orderField_'+"0";conststoreVersion=72;if(window.localStore&&(!localStore['version']||localStore['version']filterParam.indexOf(filterParamPrefix)===0).length>0){letsearchConfig=amplify.store(window.storePublicFiltersKey,undefined,{type:'sessionStore'});for(constparameterinsearchConfig){if(parameter.indexOf(filterParamPrefix)===0){deletesearchConfig[parameter];}}amplify.store(window.storePublicFiltersKey,searchConfig,{type:'sessionStore'});localStore.removeItem(discountFilter);}letsetScrollWidth=()=>{letdiv=document.createElement('div');div.style.overflowY='scroll';div.style.width='20px';div.style.height='20px';document.body.appendChild(div);if($totalInfo.length>0){$totalInfo[0].style.marginRight=(div.offsetWidth-div.clientWidth)+'px';}div.remove();};setScrollWidth();//regionдостаемизхранилищанастройкипреключалоккол-вадобавлениявкорзинуvartmp=amplify.store('cartCountSwitcher');if(tmp&&tmp.addToCartType){window.addToCartType=tmp.addToCartType;}if(!window.addToCartType){window.addToCartType='unit';}varsmp=amplify.store('codeSwitcher');if(smp&&smp.switchCode){window.switchCode=smp.switchCode;}if(!window.switchCode){window.switchCode='sku';}//endregion$body.on('click','.products-list.price-hide,.catalog-table.price-hide',function(e){e.preventDefault();location.href="/register";});$('.chosen').chosen($.extend({},CONFIG.CHOSEN,{}));$body.on('click',function(e){if($(e.target).closest('.filter.selector').length===0){$('.selector-dropdown').hide();}});$('.reload-on-change').on('change',function(){reloadList();});//regionфункциявозвращаетблокналичиятовараwindow.getailableIndicatorHtml=function(countailable,countDelay,ailableLimitDisable,parentStore){letailableClass,ailableText,delayClass,delayText;constactualBalance=CONFIG.DATA.showActualBalance,ailableView=actualBalance?CONFIG.DATA.ailableViewNumber:'Indicator',ailableStoreText='Onthemainwarehouse',delayStoreText='Onthemainwarehouse';if(countailable>100){ailableClass='many';ailableText=ailableView===CONFIG.DATA.ailableViewNumber?(actualBalance?(countailable>=CONFIG.DATA.maxProductCount?CONFIG.TEMPLATE.infinit:countailable):'100+'):'ailable';}elseif(countailable>20){ailableClass='many';ailableText=ailableView===CONFIG.DATA.ailableViewNumber?countailable:'ailable';}elseif(countailable>10){ailableClass='enough';ailableText=ailableView===CONFIG.DATA.ailableViewNumber?countailable:'ailable';}elseif(countailable>0){ailableClass='several';ailableText=ailableView===CONFIG.DATA.ailableViewNumber?countailable:'Smallleftovers';}else{ailableClass='none';ailableText=ailableView===CONFIG.DATA.ailableViewNumber?countailable:'Notailable';}if(countDelay>20){delayClass='delay';delayText=ailableView===CONFIG.DATA.ailableViewNumber?countDelay:'ailable';}elseif(countDelay>10){delayClass='delay';delayText=ailableView===CONFIG.DATA.ailableViewNumber?countDelay:'ailable';}elseif(countDelay>0){delayClass='delay';delayText=ailableView===CONFIG.DATA.ailableViewNumber?countDelay:'Smallleftovers';}else{delayClass='none';delayText=ailableView===CONFIG.DATA.ailableViewNumber?countDelay:'Notailable';}if(ailableView===CONFIG.DATA.ailableViewNumber&&countDelay>=CONFIG.DATA.maxProductCount){delayText=CONFIG.TEMPLATE.infinit;}if(ailableView===CONFIG.DATA.ailableViewNumber&&countDelay>100&&!actualBalance){delayText='100+';}if(ailableView===CONFIG.DATA.ailableViewNumber&&countDelay0){title=titleTmp.replace('%count%',boxQuantity);active=window.addToCartType==='box'?'active':'';result.push('box');}//еслиумоделиестьgpQuantity-добавляемвмассивпереключалку"упаковки"if(gpQuantity>0){title=titleTmp.replace('%count%',gpQuantity);active=window.addToCartType==='gp'?'active':'';result.push('pack');}//еслипользовательпредпочитаетодинизнедоступныхвариантов(гр/упак)-выставляемпринудительнодляэтоймоделивштукиconstisUnitGp=window.addToCartType==='gp'&&!gpQuantity;constisUnitBox=window.addToCartType==='box'&&!boxQuantity;if(isUnitGp||isUnitBox){window.addToCartType='unit';}title=titleTmp.replace('%count%',1);active=(!window.addToCartType||window.addToCartType==='unit')?'active':'';//добавляемвмассивпереключалку"штуки"result.push('pcs');//сшиваеммассиввстрокучерез"/"result=result.join('/');}return''+result+'';};//endregion//regionобработкакнопокдобавить-убавитьтовариинпутовкол-ватоваровconsttabKey=9;constenterKey=13;constarrowUpKey=38;constarrowDownKey=40;varmousedown=false,clickTimer,awaitingFl=false,disableChanges=false,justClicked=false;$body.on('click','.count-selector-button',function(e){countChangeClick($(this));}).on('mousedown','.count-selector-button',function(e){var$button=$(this);mousedown=true;clickTimer=setTimeout(function(){if(mousedown){$button.trigger('click');clickTimer=setTimeout(arguments.callee,70);}},700)}).on('mouseupmouseout','.count-selector-button',function(e){mousedown=false;clearTimeout(clickTimer);}).on('changeblur','input[name="count"]',function(e){var$input=$(this),max=parseInt($input.attr('max'),10),min=parseInt($input.attr('min')),$product=$input.closest('[data-product-id]'),productId=$product.data('productId'),storeId=$product.data('storeId'),price=$product.data('productPrice'),newVal=parseInt($input.val(),10)||0,oldVal=$input.data('oldValue')===undefined?newVal:parseInt($input.data('oldValue'),10);if(justClicked===productId)returnfalse;vargroupCount=getGroupCountByProduct($product);if(groupCount&&oldVal!==newVal){newVal*=groupCount;}if(!isNaN(min)&&newVal=max){newVal=max;$(this).parent().next().addClass('disabled');}else{$(this).parent().prev().removeClass('disabled');}}if(groupCount){constsub=newVal%groupCount;if(sub>0){newVal-=sub;}}if(oldVal!==newVal){disableChanges=productId;setTimeout(function(){disableChanges=false;},200);}$input.val(newVal).data('oldValue',newVal).attr('old-value',newVal);cartSet(productId,newVal,storeId);if(price){price=parseFloat(price);if(!isNaN(price)){varamount=price*newVal;$product.find('.cell-amount').text(amount.toLocaleString(undefined,{minimumFractionDigits:2,maximumFractionDigits:2}));const$totalCost=$product.find('.totalCost-th');if($totalCost.length){$totalCost.text(number_format(price*newVal));}}}constrow=$input.parents('tr').first();recalculateSummaries(row.prevAll(`[data-block-id="${row.data('blockId')}"].with-summaries`).last());recalculatePopup();}).on('focus','input[name="count"]',function(e){if($(this).val()0){//еслизажатшифт-срабатываетсценарийпереходакследующейстроке,иначе-кпредыдущейif(!SHIFTPRESS){varcheckSubgridReadyNext=function(){var$subgridTable=$nextTr.next('.subgrid-row').find('table');if($subgridTable.length&&$subgridTable.is(":visible")){awaitingFl=false;var$nextInput=$subgridTable.find('tbody').find('[name="count"]:not(:disabled):eq(0)');$nextInput.focus();}else{setTimeout(checkSubgridReadyNext,50);}};var$nextTr=$tr.next('[data-model-id]');if($nextInput.length===0&&$nextTr.length){awaitingFl=true;if($nextTr.next('.subgrid-row').is(':visible')){checkSubgridReadyNext();}else{$nextTr.find('.expand-subgrid:eq(0)').trigger('click');setTimeout(checkSubgridReadyNext,50);}return;}}else{varcheckSubgridReadyPrev=function(){var$subgridTable=$prevTr.next('.subgrid-row').find('table');if($subgridTable.length&&$subgridTable.is(':visible')){awaitingFl=false;var$prevInput=$subgridTable.find('tbody').find('[name="count"]:not(:disabled):eq(-1)');$prevInput.focus();}else{setTimeout(checkSubgridReadyPrev,50);}};//нахождениепредыдущейстрокисложнее,чемследующей,т.к.передтекущейстрокойстоварамимогутидти//нашародительскаястрокамодели,subgrid-строкапредыдущеймодели,родительскаястрокапрерыдущеймодели//т.е.нужнаянамродительскаяпредыдущеймоделивтораяилитретьяпередтекущей.var$prevTr=$tr.prev('[data-model-id]').prev('[data-model-id]');if($prevTr.hasClass('subgrid-row')){$prevTr=$prevTr.prev('[data-model-id]');}if($prevInput.length===0&&$prevTr.length){awaitingFl=true;if($prevTr.next('.subgrid-row').is(':visible')){checkSubgridReadyPrev();}else{$prevTr.find('.expand-subgrid:eq(0)').trigger('click');setTimeout(checkSubgridReadyPrev,50);}return;}}}if(!SHIFTPRESS){if($nextInput.length){$nextInput.focus();}else{$firstInput.focus();}}else{if($prevInput.length){$prevInput.focus();}else{$lastInput.focus();}}}elseif(e.keyCode===arrowUpKey||e.keyCode===arrowDownKey){//еслипоштучноедобавление-ничегоделатьненужно,type=numberсамразрулит.иначе-обрабатываемпрограммноif(window.addToCartType!=='unit'){e.preventDefault();let$parent=$(this).closest('.count-selector'),$targetButton;if(e.keyCode===arrowUpKey){$targetButton=$parent.find('.count-selector-button[data-change="1"]');}else{$targetButton=$parent.find('.count-selector-button[data-change="-1"]');}$targetButton.trigger('click');}}}).on('keyup','input[name="count"]',function(e){constaccessDeniedKey=[tabKey,enterKey,arrowUpKey,arrowDownKey];if(accessDeniedKey.indexOf(e.keyCode)===-1){makeButtonsDisabled();}}).on('click','.delete-from-cart',function(e){e.preventDefault();var$tr=$(this).closest('[data-product-id]');varproductId=$tr.data('productId');varstoreId=$tr.data('storeId');constrow=$(this).parents('tr').first();constblock=row.prevAll(`[data-block-id="${row.data('blockId')}"].with-summaries`).last()$tr.remove();cartSet(productId,0,storeId);recalculateSummaries(block);})//regionфункцияскрывающаяпонадобностиартикулиликод.on('click','.js-switch-button-barcode',function(e){e.preventDefault();varnewType=$(this).data('switchCodeType'),oldType=window.switchCode||'sku';if(newType!==oldType){window.switchCode=newType;amplify.store('codeSwitcher',{switchCode:window.switchCode});}$('.js-switch-button-barcode.active').removeClass('active');$('.js-switch-button-barcode[data-switch-code-type="'+window.switchCode+'"]').addClass('active');if(window.switchCode=='sku'){$('.art-code').show();$('.barcode').hide();}if(window.switchCode=='barcode'){$('.barcode').show();$('.art-code').hide();}})//endregion.on('click','.js-quantity-switch-button',function(e){e.preventDefault();varnewType=$(this).data('switchType'),oldType=window.addToCartType||'unit';if(newType!==oldType){window.addToCartType=newType;amplify.store('cartCountSwitcher',{addToCartType:window.addToCartType});}$('.js-quantity-switch-button.active').removeClass('active');$('.js-quantity-switch-button[data-switch-type="'+window.addToCartType+'"]').addClass('active');}).addClass('js-cart-inited');//поэтомуклассускрипткорзиныпонимает,нужнолиинициализироватьсобытиянаинпуты//endregionletcartSet,getCartData;//длянеклиентскихролей-простозаглушкаcartSet=function(productId,count){console.log("Youhen'tgrantedROLE_ORDER_ACCESS");};getCartData=function(){return{};};$peFilters.on('click',function(e){e.preventDefault();let$button=$(this);if($button.hasClass('active')){$button.removeClass('active');$button.children().removeClass('active');}else{$button.addClass('active');$button.children().addClass('active');}reloadList(null,true);});//noinspectionJSUnresolvedFunctionnewSpinner({lines:12,length:0,width:8,radius:16,scale:1,corners:1,color:'#DF2424',opacity:0.3,rotate:0,direction:1,speed:1,trail:60,fps:20,zIndex:100,className:'spinner',top:'170px',left:'50%',shadow:false,hwaccel:false,position:'absolute'}).spin($gridLoading[0]);$gridPinationBox.on('click','.pe-button',function(e){e.preventDefault();varnewPe=parseInt($(this).data('pe'),10);newPe=newPe||1;$peInput.val(newPe);history.replaceState({},"",$(this).attr('href'));reloadList(function(){$(window).scrollTo($gridModelsBox,400,{offset:{top:-55}});});});//regionобработкатычки"показатьполноеописание"$productsPopup.on('click','.show-full-description',function(e){e.preventDefault();$(this).find('.full-description').toggle();});$productsPopup.on('click',function(e){if(!$(e.target).parents('.show-full-description').length){$(this).find('.show-full-description.full-description').hide();}});//endregion$productsPopup.on('click','#showHideButtonAllPhoto',function(e){e.preventDefault();$productsPopup.find('[data-color-codes]').show();$(this).hide();$productsPopup.find('[data-color-codes]:visible:eq(0)').trigger('click');}).on('click','.color-box.pointer',function(){const$productRow=$(this).parent();//Товарыбезизображенийнедолжныпрожиматься.if(!$productRow.find('.color-box').hasClass('pointer')){return;}constclickedCode=String($productRow.data('colorCode')),productId=Number($productRow.data('productId')),modelId=Number($productRow.data('modelId'));if(clickedCode){$productsPopup.find('[data-color-codes]').each(function(){constimgCodes=$(this).data('colorCodes'),imgProductId=$(this).data('productId'),imgModelId=$(this).data('modelId');constisCodes=imgCodes&&imgCodes.length>0&&$.inArray(clickedCode,imgCodes)!==-1,isProduct=imgProductId&&imgProductId.length>0&&$.inArray(productId,imgProductId)!==-1,isModel=imgModelId&&imgModelId.length>0&&$.inArray(modelId,imgModelId)!==-1;if(isCodes&&isProduct&&isModel){$(this).show();}else{$(this).hide();}});$productsPopup.find('[data-color-codes]').each(function(){if($(this).is(':hidden')){$('#showHideButtonAllPhoto').show();returnfalse;}else{$('#showHideButtonAllPhoto').hide();}});if($productsPopup.find('[data-color-codes]:visible:eq(0)').length>0){$productsPopup.find('[data-color-codes]:visible:eq(0)').trigger('click');}else{$productsPopup.find('[data-color-codes]:eq(0)').trigger('click');}}}).on('click','.change-main-photo',function(e){e.preventDefault();constsrc=$(this).attr('href');constoriginalSrc=$(this)[0].dataset.originalSrc;setMainPhoto(src,originalSrc);initCloudZoom();}).on('click','.filter-color.products-popup__filter-item_element,'+'.filter-size.products-popup__filter-item_element,'+'.filter-pattern.products-popup__filter-item_element',function(){$(this).toggleClass('active');applyFilter();}).on('click','.products-popup__reset-filters',function(){$('.products-popup__filter-item_element').each(function(){if($(this).hasClass('active')){$(this).toggleClass('active');}});applyFilter();});$productsPopup.find('.products-filter').on('ibox-toggle',function(event){amplify.store(CONFIG.PRODUCT_CARD_FILTER.IS_FILTER_OPENED,event.detail.isOpen);});$body.on('click','.close-popup',function(e){e.preventDefault();$.fancybox.close();}).on('click','.add-to-cart',function(e){e.preventDefault();letmodelSlug=$productsPopup.data('modelSlug');$productsPopup.find('Conte B2Btr[data-product-id]').each(function(){letproductId=$(this).data('productId'),count=$(this).find('[name="count"]').val();$cartTable.extTable('cart.set',models[modelSlug],products[productId],count);});$productsPopup.addClass('added');}).on('click','.js_click_store_product,.js_click_count_period',function(e){e.preventDefault();var$this=$(this),value=$this.attr('data-id'),type=$this.attr('data-type');if(!$this.hasClass('active')){tippyJs.hideAllPoppers();$.post('/users/editSettings',{type:type,value:value},function(data){letmodelSlug=$productsPopup.attr('data-model-slug');if(data.messe==='success'){tip.destroy();window.openModel(modelSlug,null,true);}})}}).on('click','.beauty-dropdown',function(e){e.preventDefault();var$this=$(this);if($this.hasClass('opened')){$this.removeClass('opened');}else{$('.beauty-dropdown.opened').removeClass('opened');$this.addClass('opened');varcurrentVal=$this.attr('data-id'),$drop=$this.find('.beauty-dropdown__drop-menu'),padding=parseInt($drop.css('padding-top')),$elsDrop=$this.find('.beauty-dropdown__drop-menu-row'),$firstElDrop=$this.find('.beauty-dropdown__drop-menu-row').eq(0),heightDrop=$drop.outerHeight(),heightEl=$firstElDrop.outerHeight(),dopHeight=4,top=padding,maxTop=heightDrop-((padding*2)+dopHeight);$elsDrop.each(function(){constval=$(this).attr('data-id');if(currentVal===val){returnfalse;}top+=heightEl;returntrue});$drop.css('top',-Math.min((top+dopHeight),maxTop));if(top>maxTop){$drop.scrollTop(top-(maxTop-dopHeight));}}}).on('click',function(e){if($(e.target).closest('.beauty-dropdown').length===0){$(this).find('.beauty-dropdown.opened').removeClass('opened');}}).on('click','.open_promo_material',function(e){e.preventDefault();letmodelPopup=$(this).closest('#productsPopup').attr('data-model-slug');lethref=$(this).attr('href');$.fancybox($.extend({},CONFIG.FANCYBOX,{type:'iframe',href:href,iframe:{scrolling:"auto",preload:false,},helpers:{overlay:{locked:true,fixed:true},title:null},width:'97%',height:'100%',padding:0,closeBtn:true,wrapCSS:"styled-fancyboxoverflow-visiblebackground-whiteclose-popup-fancybox",tpl:{closeBtn:'×',},beforeShow:function(){$('html').addClass('fancybox-marginfancybox-lock');},afterClose:function(){$('html').removeClass('fancybox-marginfancybox-lock');}}))});$countOnPeSelect.on('change',function(){$('[name="catalog_length"]').val($(this).val());reloadList(null,true);});functiongetFiltersData(data={},resetPe=false){letstoredFilters=window.getParams();letstoredPublicFilters=amplify.store(window.storePublicFiltersKey,undefined,{type:'sessionStore'})||{};letstoredLocalPublicFilters=amplify.store(window.storePublicFiltersKey,undefined,{type:'localStore'})||{};lethiddenFilters=$("#hiddenFilters").unserialize();data=$.extend({},data,hiddenFilters);data=$.extend({},data,window.getParams());data=$.extend({},data,storedPublicFilters);$filters.find('[data-name]').each(function(){if($(this).data('inited')){letname=$(this).data('name');data[name]=$(this).myMulticheck('getSelected');if(data[name].length){storedFilters[name]=data[name];}else{deletestoredFilters[name];}}});if(localStore.getItem(discountFilter)){data['filters[discounted_prices][]']=JSON.parse(localStore.getItem(discountFilter));}for(letkindata){if(!k||!data[k]){deletedata[k];}}data.length=$('[name="catalog_length"]').val()||data.length;letlengthKey=window.isPreorderCategory?'preorder_length':'catalog_length';storedLocalPublicFilters[lengthKey]=data.length;if(resetPe){data.pe=1;data.start=0;}else{data.pe=$('[name="pe"]').val();data.start=view==='grid'?(data.length?(data.pe-1)*data.length:''):data.start;}let$orderInput=$('[name="order_field"]');if($orderInput.length){data.order_field=localStore.getItem(orderField);storedPublicFilters['order_field']=data.order_field;}let$orderSearchInput=$('[name="order_field_search"]');if($orderSearchInput.length){data.order_field_search=$orderSearchInput.val();storedPublicFilters['order_field_search']=data.order_field_search;}data.order_dir=$('[name="order_dir"]').val();storedPublicFilters['order_dir']=data.order_dir;data.search=$('[name="search"]').val();data.ailableFilters=$('.filter[data-code]').map(function(){return$(this).data('code')}).get();storedFilters.pe=!data.pe||data.pe==='1'?null:data.pe;storedFilters.order_field=null;storedFilters.order_field_search=null;storedFilters.order_dir=null;amplify.store(window.storePublicFiltersKey,storedFilters,{type:'sessionStore'});amplify.store(window.storePublicFiltersKey,storedLocalPublicFilters,{type:'localStore'});history.replaceState({},"",createUrlWithParams(storedFilters));returndata;}functionredrawFilterSelect($select,data,currentSelection,hideEmptyFilters){if($select.length){var$list=$select.find('.js-list');if($select.find('.js-item').length===0&&hideEmptyFilters){$select.addClass('disabled');$select.hide();}else{$select.removeClass('disabled');$select.show();if($select.find('.js-item').length>9){$select.find('.js-input-box').show().addClass('visible');}else{$select.find('.js-input-box').hide().removeClass('visible');}}$select.closest('[data-name]').data('inited',true);}}window.recalculateCatalogPaddingTop=function(){constcatalogPaddingTop=$('#catalogTopPanel').height();$('.catalog-pe-wrapper,.catalog-pe-wrapper-search').css('padding-top',catalogPaddingTop+'px');}window.reloadFilters=function(filters,selectedFilters=[],hideEmptyFilters){for(letfilterNameinfilters){const$dynamicFilter=$('[data-code="'+filterName+'"]');if($dynamicFilter.length){letfiltersForUpdate=typeofselectedFilters[filterName.replace('filtered_','')]!=='undefined'?selectedFilters[filterName.replace('filtered_','')]:null;if(!filtersForUpdate){filtersForUpdate=[];}redrawFilterSelect($dynamicFilter,filters[filterName],filtersForUpdate,hideEmptyFilters);}}window.setActiveFilters();window.recalculateCatalogPaddingTop();//чтобысохранилисьактуальныепараметрыфильтровgetFiltersData();};window.dataLoaded=function(response){if(response.extra){letfiltersLoaded=!!$filters.data('loaded');for(letextraFilterinresponse.extra){if(response.extra[extraFilter].length){filtersLoaded=true;break;}}window.reloadFilters(response.extra,response.filters,filtersLoaded);if(filtersLoaded){$filters.data('loaded',true);if(response.data.length===0){//проверяем,чтомыненашлимоделейнеиз-завыборанеприменимыхдляэтойкатегориифильтровletisWrongFilterSelected=false;for(letkeyinresponse.filters){constfilter=response.filters[key];constfiltered_key='filtered_'+key;letfilterMayBeApplied=true;if(response.extra[filtered_key]){filterMayBeApplied=response.extra[filtered_key].filter(value=>value.name===filter).length>0;}if(!filterMayBeApplied){isWrongFilterSelected=true;}}if(isWrongFilterSelected&&window.firstLoad){reloadList();}}}}window.firstLoad=false;window.recalculateCatalogPaddingTop();returnresponse.data;};window.setActiveFilters=function(){$filters.find('.filters').find('.selector').each(function(){const$wrapper=$(this);let$selectedFilters=$wrapper.find('input[type="checkbox"]:checked');if($selectedFilters.length){letfilterText=$selectedFilters.length===1?$selectedFilters[0].labels[0].innerText:$selectedFilters.length;$wrapper.find('.filter__selected-text').text(`:${filterText}`);$wrapper.addClass('active');}else{$wrapper.find('.filter__selected-text').text('');$wrapper.removeClass('active');}returntrue;});constisAnyFilterActive=$filters.find('.filter.active').length>0;if(isAnyFilterActive){$('.filters__clear-button').addClass('filters__clear-button_active');}else{$('.filters__clear-button').removeClass('filters__clear-button_active');}};//взависимостиотвыбранногопользователемтипаупаковки/группы/штукииопределенностиуданноготовара//нужныхколичеств,возвращаетколичестводлядобавлениявкорзину,либо1,есличего-тонехватаетилиневыбрано.functiongetGroupCountByProduct($product){vargroupCount=0;if(window.addToCartType!=='unit'){if(window.addToCartType==='gp'&&$product.data('gpQuantity')){groupCount=parseInt($product.data('gpQuantity'),10);}elseif(window.addToCartType==='box'&&$product.data('boxQuantity')){groupCount=parseInt($product.data('boxQuantity'),10);}}returngroupCount;}window.countChangeClick=function($this){var$button=$this,$input=$button.parent().find('input'),$product=$input.closest('[data-product-id]'),productId=$product.data('productId'),storeId=$product.data('storeId'),price=$product.data('productPrice'),changed=parseInt($button.data('change'),10);if(disableChanges===productId)returnfalse;justClicked=prodConte B2BuctId;setTimeout(function(){justClicked=false;},200);vargroupCount=getGroupCountByProduct($product);if(groupCount){changed=changedmax?max:tmpVal,newVal=tmpVal=max){newVal=max;$this.addClass('disabled');}else{$this.next().next().removeClass('disabled');}if(!isNaN(min)&&newVal0){newVal-=sub;}}$input.val(newVal).data('oldValue',newVal).attr('old-value',newVal);cartSet(productId,newVal,storeId);if(price){price=parseFloat(price);if(!isNaN(price)){constamount=number_format(price*newVal,2,',','');$product.find('.cell-amount').text(amount);const$totalCost=$product.find('.totalCost-th');if($totalCost.length){$totalCost.text(amount);}}}constrow=$input.parents('tr').first();recalculateSummaries(row.prevAll(`[data-block-id="${row.data('blockId')}"].with-summaries`).last());};window.onBeforeLoadData=function(data,resetPe){$filters.find('.reload-table').hide();returngetFiltersData(data,resetPe);};window.drawProducts=function(modelSlug,response){/***@property{Object}modelData*@property{String}modelData.model*@property{String}modelData.sku*@property{String}modelData.description*@property{String}modelData.material*@property{String}modelData.full_description*@property{Integer}modelData.id*/constmodelData=models[modelSlug];if(!modelData){getModelData(modelSlug,function(){drawProducts(modelSlug,response);});returnfalse;}window.currentUrl=location.href;constmodelName=modelData.model;$productsPopup.find('.model-name').html(modelName).attr('title',modelName);$productsPopup.find('.short-description').html(modelData.description);$productsPopup.find('.material').html(modelData.material?'Composition:'+modelData.material:'');$productsPopup.find('.full-description').html(modelData.full_description);$productsPopup.attr('data-model-id',modelData.id).data('modelId',modelData.id);$productsPopup.attr('data-model-slug',modelSlug).data('modelSlug',modelSlug);if(modelData.full_description){$productsPopup.find('.show-full-description').show();}else{$productsPopup.find('.show-full-description').hide();}if(modelData.sku===''){$productsPopup.find('.modelSku').html('');}else{$productsPopup.find('.modelSku').html('Setnumber'+':'+modelData.sku);}if(!modelData.patternCode){$productsPopup.find('.patternCode').html('');}else{$productsPopup.find('.patternCode').html('Drawing'+':'+modelData.patternCode);}//regionкопируембейджискарточкимоделинафоткутоваравпопап$productsPopup.find('.product-badges').remove();const$badges=$($gridModelsBox.find('.model-card[data-model-id="'+modelData.id+'"]')[0]).find('.product-badges');if($badges.length>0){$productsPopup.find('.main-photo-wrapper').prepend($badges.clone());}else{constbadges=window.getModelBadges(modelData);$productsPopup.find('.main-photo-wrapper').prepend(badges);}//endregion//regionпереносимклассскрытияценынапродуктыif($gridModelsBox.find('.model-card[data-model-id="'+modelData.id+'"]').hasClass('hiddenPrice')){$productsPopup.addClass('hiddenPrice');}else{$productsPopup.removeClass('hiddenPrice');}//endregion$productsPopup.find('.promo-material-wrapper').html('');$productsPopup.find('.additional-photos').html('');$productsPopup.find('.main-photo').html('');getProductPromoMaterial(response);constphoto=getCoverPhoto(modelData,320),$mainPhoto=$productsPopup.find('.main-photo');setMainPhoto(photo.src,photo.originalSrc);if(photo.src===''){$mainPhoto.addClass('empty');}else{$mainPhoto.removeClass('empty');}addPopupPhoto(modelData,response);drawProductsList(modelSlug,response);$productsPopup.removeClass('added');if(window.switchMergeModels){$productsPopup.parent().addClass('merge-models');}else{$productsPopup.parent().removeClass('merge-models');}recalculatePopup(true);initCloudZoom();};window.drawProductsList=function(modelSlug,response){/***@property{Object}product*@property{String}product.colorIcon*@property{String}product.color*@property{String}product.withVat*@property{Integer}product.retailPrice*@property{Integer}product.originalPrice*@property{Integer}product.generalPrice*@property{Integer}product.countailableMy*@property{Integer}product.countPeriodMy*@property{String}product.colorCode*@property{Integer}product.sku*@property{Integer}product.price*@property{Integer}product.countailable*@property{Integer}product.countDelay*@property{Integer}product.ailableLimitDisabled*@property{Boolean}product.storeParent*@property{String}product.priceHistoryUrl*@property{String}product.templateTippy*@property{String}product.size*@property{String}product.originalColor*@property{String}product.patternCode*@property{Boolean}product.isHonestSign**@property{Object}modelData*@property{Integer}modelData.gpQuantity*@property{Integer}modelData.boxQuantity*@property{Boolean}modelData.isHonestSign**@property{Object}productsBySizes*@property{Boolean}productsBySizes.showSize*/letdata=response.data,modelData=models[modelSlug],productsBySizes={},sizes=[],colors=[],patterns=[],product,sizeName,tmp='',counter=0,i,countDelayFl=false,html='',quantitySwitcher=window.getCountSwitcherHtml(modelData.gpQuantity,modelData.boxQuantity),codeSwitcher=window.getCodeSwitcher();//regionпереносимклассскрытияценынапродуктыlethiddenPrice=0;if($gridModelsBox.find('.model-card[data-model-id="'+modelData.id+'"]').hasClass('hiddenPrice')){hiddenPrice=1;}//endregion//Определяем,чтобудемпоказыватьвколонкеНДСletwithVat=0;letisHonestSign=false;for(i=0;i0||product.ailableLimitDisabled?'':'not-in-stock').replace('{notInStockClassailable}',product.countailable>0||product.ailableLimitDisabled?'':'not-in-stock__ailable').replace('{notInStockClassDelay}',product.countDelay>0?'':'not-in-stock__delay').replace('{parentStockClass}',product.storeParent?'':'not-parent-stock').replace('{retailPrice}',number_format(product.retailPrice,2,',',''));if(product.countDelay>0){countDelayFl=true;}html+=tmp;}html+='';}$productsList.html(html);if(countDelayFl){$productsList.addClass('has-parent-stock');}else{$productsList.find('.count_box.delay-box').each(function(){$(this).remove();});}addFilters({sizes,colors,patterns});$productsPopup.find('.products-list').find('.products-list__empty').hide();//regionздесьмагия.убираемподчеркиваниеиpointerсназванийцветовтоваров,длякоторыхнетфотографий//т.е.ищемсредифотографийфоткистакимколорКодом,еслиихнет-убираемклассынашегоцвета,//чтобыневыгляделтаким,чтопонемуConte B2Bможнотыкать.набекендереализоватьбылосложнее.$productsList.find('[data-color-code]').each(function(){letnotailable=true;constcolorCode=String($(this).data('colorCode')),productId=Number($(this).data('productId')),modelId=Number($(this).data('modelId'));$productsPopup.find('[data-color-codes]').each(function(){constimgCodes=$(this).data('colorCodes'),imgProductId=$(this).data('productId'),imgModelId=$(this).data('modelId');constisCodes=imgCodes&&imgCodes.length>0&&$.inArray(colorCode,imgCodes)!==-1,isProduct=imgProductId&&imgProductId.length>0&&$.inArray(productId,imgProductId)!==-1,isModel=imgModelId&&imgModelId.length>0&&$.inArray(modelId,imgModelId)!==-1;if(isCodes&&isProduct&&isModel){notailable=false;returnfalse;}returntrue;});if(notailable){$(this).find('.dashed-gray').removeClass('dashed-gray').parent().removeClass('pointer');}});//endregion//regionдобавляемподписи"N-вупаковке,n-N-вкоробе"if(modelData.gpQuantity||modelData.boxQuantity){letquantityHtml=[],s;if(modelGpQuantity.min||modelGpQuantity.max){s='';if(modelGpQuantity.min!==null){s=modelGpQuantity.min;}if(modelGpQuantity.max!==null&&modelGpQuantity.max>modelGpQuantity.min){s+='-'+modelGpQuantity.max;}quantityHtml.push(s+'-inacommonpacke');}if(modelBoxQuantity.min||modelBoxQuantity.max){s='';if(modelBoxQuantity.min!==null){s=modelBoxQuantity.min;}if(modelBoxQuantity.max!==null&&modelBoxQuantity.max>modelBoxQuantity.min){s+='-'+modelBoxQuantity.max;}quantityHtml.push(s+'-inabox');}quantityHtml=quantityHtml.join(',');$productsPopup.find('.quantity').html(quantityHtml).show();}else{$productsPopup.find('.quantity').html('').hide();}//endregionmakeButtonsDisabled();};window.initCloudZoom=function(){varwindowWidth=$(window).width();varwindowHeight=$(window).height();varzoomHeight=$productsPopup.height();zoomHeight=windowHeight-$productsPopup.offset().top-50;if(windowWidthb){return1;}if(a1||(patterns.length===1&&patterns[0]!==null);if(colors.length>0||sizes.length>0||hasPatterns){$productsPopup.find('.products-filter').show();}else{$productsPopup.find('.products-filter').hide();}$productsPopup.find('.products-filter.products-popup__reset-filters').hide();};/***@param{Object}$element*@param{Array}array*/window.addFilter=function($element,array){$element.find('span').remove();if(array.length>1||(array.length===1&&array[0]!==null)){lethtml='';for(letiinarray){constvalue=array[i];html+=''+(value?value:' ')+''}$element.append(html);$element.show();}else{$element.hide();}};window.applyFilter=function(){const$productsList=$productsPopup.find('.products-list');const$productsFilter=$productsPopup.find('.products-filter');const$resetFilter=$productsFilter.find('.products-popup__reset-filters');const$aciveElementsColors=$productsFilter.find('.filter-color.active');const$aciveElementsSizes=$productsFilter.find('.filter-size.active');const$aciveElementsPatterns=$productsFilter.find('.filter-pattern.active');letcolors=[];letsizes=[];letpatterns=[];$aciveElementsColors.each(function(){colors.push($(this).data('value'));});$aciveElementsSizes.each(function(){sizes.push($(this).data('value'));});$aciveElementsPatterns.each(function(){patterns.push($(this).data('value'));});$productsList.find('.size-block').each(function(){$(this).show();});$productsList.find('.product-row').each(function(){$(this).show();});$resetFilter.hide();if(!(colors.length===0&&sizes.length===0&&patterns.length===0)){if(sizes.length>0){$productsList.find('.size-block[data-size]').each(function(){constsizeEl=$(this).data('size');if(sizes.indexOf(sizeEl)>=0){$(this).show();}else{$(this).hide();}});}$productsList.find('.product-row').each(function(){constcolorEl=$(this).data('color-name');constsizeEl=$(this).data('size-name');constpatternEl=$(this).data('pattern-name');if((colors.length===0||colors.indexOf(colorEl)>=0)&&(sizes.length===0||sizes.indexOf(sizeEl)>=0)&&(patterns.length===0||patterns.indexOf(patternEl)>=0)){$(this).show();}else{$(this).hide();}});letshowBlocks=false;$productsList.find('.size-block[data-size]').each(function(){if($(this).is(":visible")){letshowRow=false;$(this).find('.product-row').each(function(){if($(this).is(":visible")){showRow=true;}});if(showRow){showBlocks=true;}else{$(this).hide();}}});$productsList.find('.products-list__empty').toggle(!showBlocks);$resetFilter.show();}};window.addPopupPhoto=function(modelData,response){/***@property{Object}modelData*@property{Object}modelData.photoPacke*@property{Object}response*@property{Array}response.data*/constphotos={};for(letiinresponse.data){constproduct=response.data[i];if(product.photos&&product.photos.length&&product.photos.length>0){for(letkinproduct.photos){/***@property{Object}photo*@property{String}photo.ime*/constphoto=product.photos[k];if(!photos[photo.ime]){photos[photo.ime]={products:[],models:[],colorCodes:[],};}if(!photos[photo.ime].products.includes(product.id)){photos[photo.ime].products.push(product.id);}if(!photos[photo.ime].models.includes(product.modelId)){photos[photo.ime].models.push(product.modelId);}if(!photos[photo.ime].colorCodes.includes(product.colorCode)){photos[photo.ime].colorCodes.push(product.colorCode);}}}}constvideos={};for(letiinresponse.data){constproduct=response.data[i];if(!videos[product.colorCode]){videos[product.colorCode]={products:[],models:[],colorCodes:[],};}if(!videos[product.colorCode].products.includes(product.id)){videos[product.colorCode].products.push(product.id);}if(!videos[product.colorCode].models.includes(product.modelId)){videos[product.colorCode].models.push(product.modelId);}if(!videos[product.colorCode].colorCodes.includes(product.colorCode)){videos[product.colorCode].colorCodes.push(product.colorCode);}}lethtmlMedia='';constMEDIA_TYPE_PHOTO=0;constMEDIA_TYPE_VIDEO=1;/***@typedef{Object}MediaObject*@property{number}type-0дляMEDIA_TYPE_PHOTOили1дляMEDIA_TYPE_VIDEO*@property{string}src*@property{string}originalSrc*@property{Object}filters*//**@type{MediaObject[]}*/constmediaInGallery=[];//главноефотомоделиif(modelData.cover&&modelData.cover.ime){mediaInGallery.push({type:MEDIA_TYPE_PHOTO,src:modelData.cover.thumb_320,originalSrc:modelData.cover.ime,filters:null,});}//видеомоделиif(modelData.videos&&modelData.videos.length>0){for(letkinmodelData.videos){constvideo=modelData.videos[k];mediaInGallery.push({type:MEDIA_TYPE_VIDEO,src:video['thumbnail'],originalSrc:video['thumbnail'],filters:null,});}}//видеотоваровfor(letiinresponse.data){constproduct=response.data[i];if(typeofproduct.videos==='object'){product.videos.forEach(video=>{if(videos[product.colorCode]){mediaInGallery.push({type:MEDIA_TYPE_VIDEO,src:video['thumbnail'],originalSrc:video['url'],filters:videos[product.colorCode],});deletevideos[product.colorCode];}});}}//фотоупаковкимоделиif(modelData.photoPacke&&modelData.photoPacke.length&&modelData.photoPacke.length>0){modelData.photoPacke.forEach(photoPacke=>{mediaInGallery.push({type:MEDIA_TYPE_PHOTO,src:photoPacke.thumb_320,originalSrc:photoPacke.ime,filters:null,});});}//фототоваровfor(letiinresponse.data){constproduct=response.data[i];if(product.photos&&product.photos.length&&product.photos.length>0){for(letkinproduct.photos){/***@property{Object}photo*@property{String}photo.ime*@property{String}photo.thumb_320*/constphoto=product.photos[k];mediaInGallery.push({type:MEDIA_TYPE_PHOTO,src:photo.thumb_320,originalSrc:photo.ime,filters:photos[photo.ime],});}}}constusedMedias=[];mediaInGallery.forEach(mediaInfo=>{if(usedMedias[mediaInfo.src]){return;}usedMedias[mediaInfo.src]=true;lethtmlFilters=mediaInfo.filters?'data-product-id="'+JSON.stringify(mediaInfo.filters.products)+'"'+'data-model-id="'+JSON.stringify(mediaInfo.filters.models)+'"'+'data-color-codes="'+JSON.stringify(mediaInfo.filters.colorCodes).replace(/"/g,'"')+'"':'';if(mediaInfo.type===MEDIA_TYPE_PHOTO){htmlMedia+=''+''+'';}else{htmlMedia+='

Placer:Conte B2BSignaler

En cas de violation du site, veuillez cliquer sur SignalerSignaler