PageSourceSearch

https://prom.ua/cloud-cgi/static/catalog-ui/js/build/portal-portable/2872_ec852dddae113201288e.js

js prom.ua collected 2026-09-24 08:40:45 UTC 4,970 bytes, 1 lines download raw bytes

1(self["__LOADABLE_LOADED_CHUNKS__"]=self["__LOADABLE_LOADED_CHUNKS__"]||[]).push([[2872],{87948:function(e,i,n){var{oneQuery:t,extractReferences:d,getUniqueFunc:a}=n(36796),r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RelatedProductsQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"product_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Long"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"companyRelatedProducts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"product_id"},value:{kind:"Variable",name:{kind:"Name",value:"product_id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"name"},name:{kind:"Name",value:"nameForCatalog"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"160"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"160"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verticalDomain"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"productClickToken"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"advert"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProductItemAdvertFragment"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:606}},o=a();r.definitions=r.definitions.concat(o(n(90122).definitions)),e.exports=r,e.exports.RelatedProductsQuery=t(r,"RelatedProductsQuery",d(r))},47818:function(e,i,n){"use strict";n.r(i),n.d(i,{SlotRelatedProducts:function(){return j}});var t=n(53459),d=n(86719),a=n(68672),r=n(60192),o=n(29049),c=n(96339),l=n(94732),u=n(50355),s=n(87948),m=n.n(s),k=n(47678),v=function(e,i,n){var t=(0,k.me)().prosale.click({productId:e,advert:i,productClickToken:n});(0,k.u4)("products_blocks","click","this_company_gallery",t)},p=function(){(0,k.u4)("products_blocks","click_more","this_company_gallery")},g=function(){(0,k.u4)("products_blocks","show","this_company_gallery")},h=n(10876),x=n(14275),_=n(72323),b=n(96147),f=function(e){var i=e.product,n=e.advert,t=e.productClickToken;return(0,b.jsx)(h.Link,{"link-as":d.B,subdomain:i.category.verticalDomain,to:(0,_.m)(i),onClick:function(){v(i.id,n,t)},"data-qaid":"products","data-product-id":i.id,children:(0,b.jsx)(x.S,{"picture-round":"m",src:i.image,width:80,height:80,alt:"\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 ".concat(i.name)})})},N=n(35527),S=n(93730),y=3,F=6,j=(0,u.withErrorCatch)(function(e){var i=e.productId,n=e.allProductsUrl,u=e.productGroupId,s=e.productParentGroupId,k=(0,a.wr)(m(),{variables:{product_id:i},fetchPolicy:"no-cache"}),v=k.data,h=k.loading,x=k.error;(0,t.useEffect)(function(){g()},[]);var _=u&&s?"".concat(n,"?product_group=").concat(u):n;if(x)throw x;if(h)return(0,b.jsx)(N.X,{});if(!v)return null;var j=v.companyRelatedProducts,D=[];if(j.products.length>=y&&(D=j.products),!D.length)return null;var P=D.slice(0,F);return(0,b.jsx)(c.Box,{"box-background":"white","box-round":"m","box-height":"1-1","box-padding":"m","box-border":"black-400","data-qaid":"related_block",children:(0,b.jsxs)(S.x,{children:[(0,b.jsxs)(S._,{children:[(0,b.jsx)(c.Box,{"box-margin-bottom":"m",children:(0,b.jsx)(o.Text,{"text-as":"h2","text-weight":"bold","text-size":"h4",children:"\u041f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0442\u043e\u0432\u0430\u0440\u044b"})}),(0,b.jsx)(l.Grid,{"grid-column":"3","grid-indent":"xs",children:P.map(function(e){var i=e.product,n=e.advert,t=e.productClickToken;return(0,b.jsx)(l.Grid.Item,{children:(0,b.jsx)(f,{product:i,advert:n,productClickToken:t})},i.id)})})]}),(0,b.jsx)(c.Box,{children:(0,b.jsx)(r.Button,{onClick:p,"button-as":d.B,subdomain:null,to:_,"button-width":"1-1",type:"button","button-theme":"violet-second","button-round":"m","data-qaid":"all_company_products",children:"\u0411\u043e\u043b\u044c\u0448\u0435 \u0442\u043e\u0432\u0430\u0440\u043e\u0432"})})]})})},{name:"SlotRelatedProducts"});j.displayName="SlotRelatedProducts"}}]);

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.