PageSourceSearch

https://onlinebefunde.synlab.at/assets/StoreProductsListLayout-PZga6tHY.js

js synlab.at collected 2026-10-07 17:17:43 UTC 3,666 bytes, 1 lines download raw bytes

1import{j as t,k as i}from"./vendor-react-C-ambZJM.js";import{eL as d,fH as o,b6 as m,U as I,a2 as x,dJ as w,dS as M,fF as k,f0 as F,fI as O,fd as R,gq as T,gw as N,bn as f,bp as P}from"./index-CpLMJhT0.js";import{l as y}from"./vendor-utils-uzE1nhJ7.js";import{u as q,dG as B,dE as E,K as A,ch as U}from"./vendor-icons-DTAYMCng.js";import"./vendor-misc-DHbJ2i9E.js";import"./vendor-capacitor-BjJqHnUZ.js";import"./vendor-date-DmkChxQh.js";import"./vendor-form-DImBcWOF.js";import"./vendor-react-misc-B5DVsUSs.js";import{u as V}from"./useTransformResponse-p0SoB6BA.js";import{S as $}from"./vendor-antd-C6nkFMZP.js";import"./vendor-state-B-8LiWgT.js";import"./vendor-intl-C3fTNf8i.js";import"./vendor-sentry-Cv9aCZEg.js";import"./vendor-charts-Boe2tl2N.js";const H=()=>{const r=o.categories(),n=o.selectedCategoryId(),a=o.setSelectedCategoryId(),s=o.getSelectedCategory();return t.jsx("ul",{className:"store-categories",children:r.filter(e=>e.parentId===null||s()?.path.map(c=>c.id).includes(e.parentId)).map(e=>t.jsxs("li",{children:[t.jsx("span",{className:"tree-indentation",children:y.range(0,e.path.length-1).map(c=>t.jsx(m,{icon:q},c))}),t.jsx(I,{checked:s()?.path.map(c=>c.id).includes(e.id),onChange:()=>a(e.id===n?s().parentId||void 0:e.id),children:e.name})]},e.id))})},G=()=>({title:d.store.categories,component:H}),J=()=>{const r=o.showFavoritesOnly(),n=o.setShowFavoritesOnly(),a=d.orders.requirementAggregations;return t.jsx(x,{className:"margin-top-1",children:t.jsxs(x,{className:"switch-container",children:[t.jsx(w,{onChange:()=>n(!r),checked:r,checkedChildren:t.jsx(m,{icon:E}),unCheckedChildren:t.jsx(m,{icon:B})}),t.jsx("label",{onClick:()=>n(!r),children:t.jsx(M,{message:a.pinnedOnly})})]})})},K=()=>({component:J}),z=()=>{const r=o.manufacturers(),n=o.selectedManufacturerId(),a=o.setSelectedManufacturerId();return t.jsx("ul",{className:"store-categories",children:r.map(s=>t.jsx("li",{children:t.jsx(I,{checked:s.id===n,onChange:()=>a(s.id===n?void 0:s.id),children:s.name})},s.id))})},D=()=>({title:d.store.manufacturer,component:z}),Q=()=>{const r=k.aid(),n=o.selectedCategoryId(),a=o.selectedManufacturerId(),s=o.showFavoritesOnly();return i.useCallback(({context:e})=>{const{filters:c}=e;return{aid:r,...c,categoryId:n,manufacturerId:a,pinned:s}},[r,n,a,s])};var W=()=>{const{storeProducts:{listStoreProducts:r}}=F(),n=Q(),a=V(),s=i.useCallback(e=>O.setState({selectedProduct:e.meta}),[]);return i.useMemo(()=>({request:r,transformRequest:n,transformResponse:a,onItemClick:s,transformListProps:({context:{columnType:e}},c)=>({...c,columnType:e})}),[r,n,a])},ue=()=>{const r=W(),{preferences:{storeOpenInListView:n}}=R(),a=T(p=>p.setRef),s=o.manufacturers(),e=o.selectedManufacturerId(),c=o.categories(),g=o.selectedCategoryId(),C=o.showFavoritesOnly(),h=N(),S=i.useCallback(({context:p})=>{let l=y.filter([C&&h(d.store.products.subtitles.showFavoritesOnly),e&&h(d.store.products.subtitles.Manufacturer,{manufacturer:s.find(u=>u.id===e)?.name}),g&&h(d.store.products.subtitles.Category,{category:c.find(u=>u.id===g)?.name})]).join(" ");return l.length>0&&(l=l[0].toUpperCase()+l.slice(1)),l},[e,g,s,c,C]),j=i.useMemo(()=>({filters:{},columnType:n?f.Vertical:f.ImageCard}),[]),b=i.useMemo(()=>({}),[]),L=i.useMemo(()=>({frontSections:[K,G,D]}),[]),v=i.useCallback(({context:p,bindings:{setContext:l}})=>t.jsx($,{value:p.columnType,onChange:u=>l({columnType:u}),options:[{value:f.ImageCard,icon:t.jsx(m,{icon:A})},{value:f.Vertical,icon:t.jsx(m,{icon:U})}]}),[]);return t.jsx(P,{className:"store-products-modal-list-layout",context:j,setRef:a,title:d.store.listHeading,list:r,search:b,sideBar:L,subtitle:S,toolBar:v})};export{ue as default};

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.