1import{j as e,r as p}from"./react-core-CD_1onX0.js";import{u as g,l as N,aG as n,aH as x,aI as d,_ as y,aJ as v,aK as w,aL as k,B as S,ab as _,aM as B,S as A,aN as L,aO as T,as as C,aP as F}from"./index-66zZh5Jn.js";import{B as P,a as R,b as u,c as E,d as G,e as H}from"./breadcrumb-DsAHWHdA.js";import{a as h,l as I}from"./@tanstack-DPeA6jG0.js";import{u as f}from"./i18n-CofWL-IA.js";import{Y as $}from"./lucide-VEucuaTp.js";import"./classnames-CsU7zZFE.js";import"./react-redux-mwJVrpWJ.js";import"./use-sync-external-store-BNJ6Fx69.js";import"./redux-persist-V0PUdnCo.js";import"./redux-DvudOmzQ.js";import"./@reduxjs-BjWmclzg.js";import"./immer-DZXJq_kO.js";import"./redux-thunk-ClJT1hhx.js";import"./sonner-fLeVaTK4.js";import"./utils-CgoHn--Y.js";import"./radix-ui-Dj033jVT.js";import"./aria-hidden-DvXkyWUv.js";import"./react-remove-scroll-XvCd5d4w.js";import"./tslib-SKSg9QCA.js";import"./react-remove-scroll-bar-DGFW4I9v.js";import"./react-style-singleton-Kv2o-Exk.js";import"./get-nonce-C-Z93AgS.js";import"./use-sidecar-DFf-IeJj.js";import"./use-callback-ref-BhsS1wYO.js";import"./@floating-ui-B0vxfCnI.js";import"./styling-utils-CjxovF-h.js";import"./forms-DNaoCXUx.js";import"./react-svg-Dnq0pmL4.js";import"./@babel-CxK64RnC.js";import"./@tanem-Dpl_wkMb.js";import"./content-type-CRVRK5yJ.js";import"./prop-types-CPs_slIG.js";import"./react-device-detect-BMIUHuxa.js";import"./ua-parser-js-955yGSo4.js";import"./@hookform-wwupMUiI.js";import"./cmdk-Zw3rqT2w.js";import"./sockjs-client-BiWLCDQw.js";import"./url-parse-BAqYKghp.js";import"./requires-port-BAJqkiCs.js";import"./querystringify-BpVdoMDL.js";import"./inherits-BICa84dG.js";import"./@stomp-ChVyU63F.js";import"./google-Ch9Jipcr.js";import"./handlebars-rPdfFd6M.js";import"./source-map-BSKk0CAR.js";import"./qr-code-styling-K2sYvIP6.js";import"./html-to-image-DZoLhasD.js";import"./react-share-C55rTLrg.js";import"./tiny-invariant-CopsF_GD.js";import"./tiny-warning-Dirz_SfZ.js";function K(){const s=h(),{t}=f(),a=g(l=>l.system.language)===N.AR;return e.jsx(P,{className:"flex ",children:e.jsxs(R,{children:[e.jsx(u,{children:e.jsx(E,{asChild:!0,children:e.jsxs("button",{onClick:()=>s({to:"/"}),className:"flex items-center gap-1 hover:text-gray-900",children:[e.jsx($,{className:"w-4 h-4"}),e.jsx("span",{children:t("breadcrumb.home")})]})})}),e.jsx(G,{className:`${a?"rotate-180":""}`}),e.jsx(u,{children:e.jsx(H,{className:"font-medium",children:t("our_suppliers.our_suppliers_title")})})]})})}const O=({name:s,image:t,email:i,supplier:a})=>{g(r=>r.system.language);const l=h(),{t:c}=f();return e.jsxs("div",{className:"flex flex-col gap-2 items-start p-3 rounded-xl bg-[#f6f6f6] w-full h-full lg:max-w-[400px]",children:[e.jsx("div",{className:"overflow-hidden w-full rounded-2xl flex justify-center items-center relative h-[180px]",children:t?.url?.includes("https")?e.jsxs(n,{className:"h-[100px] w-[100px] border border-[#d5d5d5] ",children:[e.jsx(x,{src:t?.url,alt:s||"image-1",className:"object-contain"}),e.jsx(d,{className:"text-2xl bg-gray-darker text-white uppercase",children:s.slice(0,1)})]}):e.jsxs(n,{className:"h-[100px] w-[100px] border border-[#d5d5d5] ",children:[e.jsx(x,{src:y(t?.url),alt:s||"image-1",className:"object-contain"}),e.jsx(d,{className:"text-2xl bg-gray-darker text-white uppercase",children:s.split(" ").map(r=>r[0]).slice(0,2).join("")})]})}),e.jsxs("div",{className:"flex flex-col gap-8 items-start self-stretch px-4 py-6 bg-white rounded-2xl max-sm:gap-4 max-sm:p-4",children:[e.jsxs("div",{className:"flex-col gap-2 items-start self-stretch max-sm:gap-3 max-sm:items-start w-full",children:[s.length>17?e.jsxs(v,{children:[e.jsx(w,{asChild:!0,children:e.jsx("h2",{className:"text-lg lg:text-xl font-medium text-start text-black",children:s.substring(0,17)+"..."})}),e.jsx(k,{children:e.jsx("p",{children:s})})]}):e.jsx("h2",{className:"text-lg lg:text-xl font-medium text-start text-black",children:s}),e.jsx("p",{className:"self-stretch text-sm sm:text-base text-black line-clamp-3",children:i})]}),e.jsx(S,{className:"flex gap-2.5 justify-center items-center self-stretch px-4 sm:px-6 py-3 bg-primary curs
1or-pointer rounded-full hover:bg-primary/80 transition-colors",onClick:()=>l({to:`/public/our-suppliers/${a.id}`}),children:e.jsx("span",{className:"text-sm sm:text-base font-medium text-center text-black",children:c("my_orders.card.view_details")})})]})]})},U=()=>{const[s,t]=p.useState({c_id:void 0,page:0});p.useEffect(()=>{(()=>{const m=document.querySelector("section");m&&m.scrollIntoView({behavior:"smooth",block:"start"})})()},[s.page]);const i=_(s,500),{data:a,isLoading:l,isPending:c}=B(i),r=a?.data.result,j=l||c,b=a?.data.totalPages||0;return e.jsxs("section",{className:"min-h-screen bg-transparent flex flex-col items-center justify-center",children:[e.jsx(A,{}),e.jsxs("div",{className:"min-h-screen bg-white w-full px-4 sm:px-6 md:px-10 lg:px-20 py-4 sm:py-6",children:[e.jsx(L,{title:"our_suppliers.our_suppliers_title",subtitle:"our_suppliers.our_suppliers_desc"}),e.jsxs("div",{className:"max-w-7xl mx-auto w-full px-4 lg:px-8",children:[e.jsx("div",{className:"px-0 py-4 sm:py-6 md:py-8 flex w-full flex-col gap-4 justify-between",children:e.jsxs("div",{className:"w-full flex flex-col sm:flex-col md:flex-col lg:flex-row gap-3 sm:gap-4 md:gap-5 justify-between items-start lg:items-center",children:[e.jsx(K,{}),e.jsx(T,{filters:s,setFilters:t})]})}),e.jsx("div",{className:"flex justify-center mt-4",children:e.jsx("div",{className:"grid grid-cols-1 w-full sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 mb-6 sm:mb-8",children:j?Array.from({length:9}).map((o,m)=>e.jsx(C,{},`${m+1}tender`)):r?.map(o=>e.jsx(O,{...o},o.id))})}),r&&r.length>0&&e.jsx(F,{filters:s,setFilters:t,totalPages:b})]})]})]})},Ke=I("/public/our-suppliers/")({component:U});export{Ke as Route};
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.