"use strict";(globalThis.webpackChunk_ampath_esm_laboratory_app=globalThis.webpackChunk_ampath_esm_laboratory_app||[]).push([[3872],{13872:(n,e,a)=>{a.r(e),a.d(e,{default:()=>u});var t=a(16072),c=a.n(t),o=a(2076),s=a(73465),i=a(36920),r=a(86277);const u=function(n){var e=n.order,a=n.billStatus,t=void 0===a?"BLANK":a,u=(n.isLoading,n.mutated),p=(0,o.useTranslation)().t,l=(0,i.useConfig)().laboratoryServiceTypedUuid;return"PENDING"===t?c().createElement(s.$nd,{className:r.A.actionButton,size:"sm",kind:"danger",key:e.uuid},p("pendingPayment","Pending payment")):"BLANK"===t?c().createElement(s.$nd,{className:r.A.actionButton,size:"sm",kind:"primary",key:e.uuid,onClick:function(){(0,i.launchWorkspace)("create-order-bill-form-workspace",{workspaceTitle:p("createOrderBill","Create order bill form"),order:e,quantity:1,serviceTypeUuid:l,mutated:u})}},p("generateBill","Generate bill")):null}},21946:(n,e,a)=>{a.d(e,{A:()=>i});var t=a(16060),c=a.n(t),o=a(27559),s=a.n(o)()(c());s.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:""}]),s.locals={actionButton:"-esm-laboratory__actions__actionButton___Fnx-R",actionButtonIcon:"-esm-laboratory__actions__actionButtonIcon___BZ9OH",actionRejectButton:"-esm-laboratory__actions__actionRejectButton___5ynYL"};const i=s},86277:(n,e,a)=>{a.d(e,{A:()=>d});var t=a(85072),c=a.n(t),o=a(97825),s=a.n(o),i=a(77659),r=a.n(i),u=a(55056),p=a.n(u),l=a(10540),A=a.n(l),g=a(41113),b=a.n(g),y=a(21946),m={};m.styleTagTransform=b(),m.setAttributes=p(),m.insert=r().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=A(),c()(y.A,m);const d=y.A&&y.A.locals?y.A.locals:void 0}}]);