"use strict";(globalThis.webpackChunk_kenyaemr_esm_stock_management_app=globalThis.webpackChunk_kenyaemr_esm_stock_management_app||[]).push([[749],{21749:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var a=n(16072),l=n.n(a),c=n(51082),r=n(53941);const u=function(e){var t=e.closeModal,n=e.receivingStock,a=(0,r.useTranslation)().t,u=[{key:"status",header:a("status","Status")},{key:"sourceName",header:a("source","Source")},{key:"destinationName",header:a("destination","Destination")},{key:"stockItemName",header:a("stockItem","Stock Item")},{key:"stockItemPackagingUOMName",header:a("unit","Unit")},{key:"quantity",header:a("quantity","Quantity")}];return l().createElement(l().Fragment,null,l().createElement(c.rQ0,{closeModal:t,title:a("receivedStock","Received stock")}),l().createElement(c.cwr,null,n&&n.length>0?l().createElement(c.K3K,null,l().createElement(c.XIK,null,l().createElement(c.ndF,null,l().createElement(c.Hjg,null,u.map(function(e){return l().createElement(c.A0N,{key:e.key},e.header)}))),l().createElement(c.BFY,null,n.map(function(e,t){return null==e?void 0:e.stockOperationItems.map(function(n,a){return l().createElement(c.Hjg,{key:"".concat(t,"-").concat(a)},l().createElement(c.nA6,null,(null==e?void 0:e.status)||"N/A"),l().createElement(c.nA6,null,(null==e?void 0:e.sourceName)||"N/A"),l().createElement(c.nA6,null,(null==e?void 0:e.destinationName)||"N/A"),l().createElement(c.nA6,null,(null==n?void 0:n.stockItemName)||"N/A"),l().createElement(c.nA6,null,(null==n?void 0:n.stockItemPackagingUOMName)||"N/A"),l().createElement(c.nA6,null,(null==n?void 0:n.quantity)||"N/A"))})})))):l().createElement("p",null,a("noReceivedStockDataAvailable","No received stock data available."))))}}}]);