import{J as i,R as m,j as a,K as r,f as u,g as o}from"./app-BgLa5dit.js";const x="_menu_1ceng_1",S={menu:x},_=[25,50,100,200,500,1e3],l="assembly_line_table_size";function E(e){const s=i.get(l);function n(t){i.set(l,t);const c=u.getCurrentRoute().appLink;o.trigger({...c,params:{...e.queryParams,limit:t}},{replace:!0})}return m.useEffect(()=>{e.queryParams.limit!==s&&n(e.queryParams.limit?+e.queryParams.limit:+s||25)},[s,e.queryParams.limit]),a.jsx("div",{className:"text-center px-2 mt-2",children:a.jsxs(r,{className:"w-100",children:[a.jsx(r.Toggle,{variant:"outline-dark",className:"w-100",children:`Show: ${e.queryParams.limit||s||25}`}),a.jsx(r.Menu,{className:`${S.menu}`,children:a.jsx("div",{children:_.map(t=>a.jsx(r.Item,{className:"cursor-pointer",onClick:()=>{n(t)},children:`Show: ${t}`},t))})})]})})}export{E as A};
//# sourceMappingURL=BjW5Ucvc.chunk.js.map
