PageSourceSearch

https://foodshe.ru/bitrix/templates/foodshe/js/core/showMoreModal.min.js

js foodshe.ru collected 2026-10-09 23:08:36 UTC 1,161 bytes, 1 lines download raw bytes

1document.addEventListener("alpine:init",()=>{Alpine.data("showMoreModal",()=>({products:[],groupName:"",isLoading:!1,error:null,async init(){await new Promise(t=>setTimeout(t,50));const t=Alpine.store("modal").payload||{};this.groupName=t.groupName||"Товары";const a=t.productIds||[];a.length>0&&await this.loadProducts(a)},async loadProducts(t){this.isLoading=!0,this.error=null;try{const a=new FormData;a.append("GROUP_NAME",this.groupName),t.forEach(t=>{a.append("PRODUCT_IDS[]",t)});const r=await axios.post(window.site_dir+"?action=getRecommendationGroup",a,{headers:{"Content-Type":"multipart/form-data"}});r.data?.PRODUCTS?this.products=r.data.PRODUCTS.map(t=>this.adaptProductData(t)):r.data?.error?this.error=r.data.error:this.error="Не удалось загрузить товары"}catch(t){this.error="Ошибка при загрузке товаров"}finally{this.isLoading=!1}},adaptProductData:t=>({...t,OPTIONS:t.HAS_PROPERTIES?{1:"mock"}:{},MAX_COUNT:t.MAX_COUNT||0,IS_LIKED:1===t.isLiked||!0===t.isLiked}),get isLoadingState(){return this.isLoading},get errorState(){return this.error},get groupTitle(){return this.groupName}}))});

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.