PageSourceSearch

https://www.upart.kz/assets/entries/src_pages_catalog_-brand_categories_subcategory.DvcT4QqZ.js

js upart.kz collected 2026-09-29 23:32:49 UTC 4,495 bytes, 1 lines download raw bytes

1import{k as x,u as T,v as P,bC as p,r as N,cm as v,j as e,c as b,i as w,a as D,o as j,b as C,d as E}from"../chunks/chunk-C4bf_jzg.js";import{i as L}from"../chunks/chunk-B1cU7beE.js";import{D as z}from"../chunks/chunk-rGS511_b.js";import{T as U}from"../chunks/chunk-CE2zhU1E.js";import{u as A}from"../chunks/chunk-BLHOfiiG.js";import{C as $}from"../chunks/chunk-Nk9eQ9kk.js";import{P as I}from"../chunks/chunk-CUCIZvYe.js";import{u as k,V as O,g as R}from"../chunks/chunk-ClcxlPDO.js";import{c as H,a as B,C as M}from"../chunks/chunk-BaCUIPAl.js";import{u as V}from"../chunks/chunk-PPrbH75Z.js";import"../chunks/chunk-9OGX4MUS.js";import"../chunks/chunk-Cs6oBwrl.js";import"../chunks/chunk-CQxk7OHC.js";import"../chunks/chunk-C0MkN6cV.js";const Q=({queryKey:t,queryValue:o,vehicleId:a,urlPathname:s})=>{const r=x(),d=T(H),l=T(B),f=P(),h=t===p.COMPONENT_ID;N.useEffect(()=>{r(v({vehicle_id:a,[t]:o}))},[a,t,o]);const n=d.filter(i=>i.parent_id==="0"),_=d.filter(i=>i.parent_id!=="0"),c=h&&n.length>1;return{filteredNodes:c?n:_,loading:l||f,getNodeLink:i=>{const g=`${p.VEHICLE_ID}=${a}`;if(c&&i.has_childs){const y=`${p.PARENT_NODE_ID}=${i.id}`;return`${s}?${g}&${y}`}const S=`${p.CHILD_NODE_ID}=${i.id}`;return`${s.split("/").slice(0,3).join("/")+"/parts"}?${g}&${S}`}}},F="_sub__categories_1deuc_1",G="_nodes__list_1deuc_8",J="_footer_1deuc_16",W="_mount_1deuc_1",X="_middle_btn_1deuc_32",u={sub__categories:F,nodes__list:G,footer:J,mount:W,middle_btn:X},Y=({redirectUrl:t,vehicleId:o,queryKey:a,queryValue:s,urlPathname:r})=>{const{hideHeader:d}=V({}),{loading:l,filteredNodes:f,getNodeLink:h}=Q({vehicleId:o,queryKey:a,queryValue:s,urlPathname:r}),n=k({componentId:a===p.COMPONENT_ID?s:"",parentNodeId:a==="node_id"?s:"",childNodeId:"",vehicleId:o}),_=()=>{history.length>2?history.back():window.location.href=t};return e.jsxs("div",{className:u.sub__categories,children:[e.jsx(I,{closeAction:_,zIndex:10,children:e.jsxs("span",{children:[" ",!n||n===""?"...":n]})}),e.jsx(O,{showSearch:!0,hideHeader:d,urlPathname:r,showParentElements:!1}),e.jsx("div",{className:u.nodes__list,children:l?e.jsx(M,{loaderText:"Загружаем категории"}):f.map((c,m)=>e.jsx($,{whiteCard:!0,node:c,getLink:h},`${c.id}_${m}`))}),e.jsx("div",{className:u.footer,children:e.jsx("a",{href:R(r,o),className:u.middle_btn,children:"Другая категория"})})]})};function Z({isMobile:t,urlPathname:o,vehicleId:a,redirectUrl:s,queryKey:r,queryValue:d}){A();const l=t?e.jsx(Y,{queryKey:r,queryValue:d,vehicleId:a,urlPathname:o,redirectUrl:s}):e.jsx(U,{url:s});return e.jsx(z,{isMobile:t,urlPathname:o,children:l})}const K=t=>({isMobile:w(t)}),q=b(K,null),ee=q(Z),te=Object.freeze(Object.defineProperty({__proto__:null,Page:ee},Symbol.toStringTag,{value:"Module"})),Te={onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0,client:!0}}},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/components/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:D}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/renderer/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:j}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/src/pages/+Layout.ts",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:C}]},reactStrictMode:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+config.ts",fileExportPathToShowToUser:["default","reactStrictMode"]},valueSerialized:{type:"js-serialized",value:!1}},data:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+data.shared.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:E}},title:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/+title.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:L}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/src/pages/catalog/@brand/categories/subcategory/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:te}}};export{Te as configValuesSerialized};

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.