"use strict";(globalThis.webpackChunk_openmrs_esm_laboratory_app=globalThis.webpackChunk_openmrs_esm_laboratory_app||[]).push([["6050"],{217(n,e,a){a.d(e,{A:()=>i});var t=a(4991),c=a.n(t),s=a(6314),o=a.n(s)()(c());o.push([n.id,".-esm-laboratory__actions__actionButton___Fnx-R{display:flex;align-items:center;justify-content:center;text-align:center;padding:0 .75rem;font-size:.875rem}.-esm-laboratory__actions__actionButton___Fnx-R .-esm-laboratory__actions__actionButtonIcon___BZ9OH{margin-right:.25rem;color:#fff;fill:#fff}.-esm-laboratory__actions__actionRejectButton___5ynYL{display:flex;align-items:center;justify-content:center;text-align:center;padding:0 .75rem;font-size:.875rem;border:none}","",{version:3,sources:["webpack://./src/lab-tabs/actions/actions.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,gDACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,iBAAA,CACA,gBAAA,CACA,iBAAA,CACA,oGACE,mBCKS,CDJT,UAAA,CACA,SAAA,CAIJ,sDACE,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,iBAAA,CACA,gBAAA,CACA,iBAAA,CACA,WAAA",sourcesContent:["@use '@carbon/type';\n@use '@carbon/layout';\n\n.actionButton {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  text-align: center;\n  padding: 0 layout.$spacing-04;\n  font-size: type.type-scale(2);\n  .actionButtonIcon {\n    margin-right: layout.$spacing-02;\n    color: white;\n    fill: white;\n  }\n}\n\n.actionRejectButton {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  text-align: center;\n  padding: 0 layout.$spacing-04;\n  font-size: type.type-scale(2);\n  border: none;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n  spacing-01: $spacing-01,\n  spacing-02: $spacing-02,\n  spacing-03: $spacing-03,\n  spacing-04: $spacing-04,\n  spacing-05: $spacing-05,\n  spacing-06: $spacing-06,\n  spacing-07: $spacing-07,\n  spacing-08: $spacing-08,\n  spacing-09: $spacing-09,\n  spacing-10: $spacing-10,\n  spacing-11: $spacing-11,\n  spacing-12: $spacing-12,\n  spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={actionButton:"-esm-laboratory__actions__actionButton___Fnx-R",actionButtonIcon:"-esm-laboratory__actions__actionButtonIcon___BZ9OH",actionRejectButton:"-esm-laboratory__actions__actionRejectButton___5ynYL"};let i=o},2364(n,e,a){a.d(e,{A:()=>_});var t=a(5072),c=a.n(t),s=a(7825),o=a.n(s),i=a(7659),r=a.n(i),l=a(5056),u=a.n(l),p=a(540),A=a.n(p),g=a(1113),b=a.n(g),d=a(217),y={};y.styleTagTransform=b(),y.setAttributes=u(),y.insert=r().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=A(),c()(d.A,y);let _=d.A&&d.A.locals?d.A.locals:void 0},5529(n,e,a){a.r(e),a.d(e,{default:()=>l});var t=a(2153),c=a.n(t),s=a(3485),o=a(4803),i=a(6045),r=a(2364);let l=function(n){var e=n.order,a=n.orders,t=(0,i.useTranslation)().t;return c().createElement(s.$nd,{className:r.A.actionButton,disabled:["DECLINED","IN_PROGRESS","NEW"].includes(e.fulfillerStatus),size:"sm",kind:"danger",onClick:function(){var n=a?a.filter(function(n){return["COMPLETED","ON_HOLD"].includes(n.fulfillerStatus)}):[e].filter(function(n){return["COMPLETED","ON_HOLD"].includes(n.fulfillerStatus)}),t=(0,o.showModal)("edit-lab-results-modal",{closeModal:function(){return t()},orders:n})}},t("amendLabResults","Amend lab results"))}}}]);