(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3650],{26438:(e,t,r)=>{Promise.resolve().then(r.bind(r,55382))},55382:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(95155);r(12115);var i=r(28863),l=r(6874),a=r.n(l),o=r(29911);let s=e=>{let{supplierData:t,isLoading:r,isFetching:l}=e,s=[{title:"Supplier Name",dataIndex:"name",key:"name"},{title:"Contact Number",dataIndex:"contactNumber",key:"contactNumber"},{title:"Company Name",dataIndex:"companyName",key:"companyName"},{title:"Supplier Phone",dataIndex:"phone",key:"phone"},{title:"Address",dataIndex:"address",key:"address"},{title:"Email",dataIndex:"email",key:"email"},{title:"Action",key:"action",render:(e,t)=>(0,n.jsx)(a(),{href:"/supplier-info/supplier-product-add",children:(0,n.jsxs)("button",{className:"bg-[#2d3274] text-white text-[14px] leading-[30px] px-[12px] py-0 rounded-full inline-flex items-center gap-1",children:[(0,n.jsx)(o.OiG,{}),"Add Supplier Info & Product"]})})}];return(0,n.jsxs)("div",{className:"p-4 bg-[#f5f5f5] min-h-screen",children:[(0,n.jsx)("h2",{className:"text-2xl font-semibold mb-4",children:"Supplier Info"}),(0,n.jsxs)("div",{className:"bg-white shadow rounded-t px-6 py-3 flex flex-col md:flex-row md:items-center md:justify-between gap-3 md:gap-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{children:"Show"}),(0,n.jsxs)("select",{className:"border rounded px-2 py-1",children:[(0,n.jsx)("option",{children:"10"}),(0,n.jsx)("option",{children:"25"}),(0,n.jsx)("option",{children:"50"})]}),(0,n.jsx)("span",{children:"entries"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{children:"Search:"}),(0,n.jsx)("input",{className:"border rounded px-2 py-1",placeholder:"Search..."})]}),(0,n.jsx)(a(),{href:"/supplier-info/supplier-product-add",children:(0,n.jsxs)("button",{className:"bg-[#2d3274] text-white text-[14px] leading-[30px] px-[12px] py-0 rounded-full inline-flex cursor-pointer items-center gap-1",children:[(0,n.jsx)(o.OiG,{}),"Add Supplier"]})})]}),(0,n.jsx)("div",{className:"bg-white shadow rounded-b overflow-hidden w-full",children:(0,n.jsx)(i.A,{columns:s,rowKey:"id",dataSource:(null==t?void 0:t.data)||[],loading:l||r,pagination:!1,scroll:{x:2e3},className:"custom-table"})})]})}},74436:(e,t,r)=>{"use strict";r.d(t,{k5:()=>d});var n=r(12115),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=n.createContext&&n.createContext(i),a=["attr","size","title"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){var n,i,l;n=e,i=t,l=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e){return t=>n.createElement(p,o({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function p(e){var t=t=>{var r,{attr:i,size:l,title:s}=e,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a),p=l||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,d,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),s&&n.createElement("title",null,s),e.children)};return void 0!==l?n.createElement(l.Consumer,null,e=>t(e)):t(i)}}},e=>{var t=t=>e(e.s=t);e.O(0,[6711,576,8696,4694,1974,6467,437,8863,6874,8441,1684,7358],()=>t(26438)),_N_E=e.O()}]);