@openmrs/esm-stock-management-app 3.0.1-pre.868 → 3.0.1-pre.871

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/467.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[467],{9378:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(1364),a=n.n(o),r=n(1682),i=n.n(r)()(a());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-stock-management__create-stock-report__formContainer___-4fos{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.-esm-stock-management__create-stock-report__button___MRB1p{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-stock-management__create-stock-report__buttonSet___Y3EPS{display:flex;justify-content:space-between;width:100%}.-esm-stock-management__create-stock-report__body___eKDjI{padding:1rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/stock-reports/generate-report/create-stock-report.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,mEACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,UAAA,CACA,WAAA,CAGF,4DACE,WC2CW,CD1CX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,+DACE,YAAA,CACA,6BAAA,CACA,UAAA,CAGF,0DACE,YAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.formContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n height: 100%;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.buttonSet {\n display: flex;\n justify-content: space-between;\n width: 100%;\n}\n\n.body {\n padding: 1rem;\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:""}]),i.locals={formContainer:"-esm-stock-management__create-stock-report__formContainer___-4fos",button:"-esm-stock-management__create-stock-report__button___MRB1p",buttonSet:"-esm-stock-management__create-stock-report__buttonSet___Y3EPS",body:"-esm-stock-management__create-stock-report__body___eKDjI"};const l=i},8467:(e,t,n)=>{n.r(t),n.d(t,{default:()=>J});var o,a=n(1672),r=n.n(a),i=n(3967),l=n.n(i),c=n(3397),s=n(5787),u=n(3775),d=n(7536),m=n(6312);!function(e){e.Date="Date",e.StartDate="StartDate",e.EndDate="EndDate",e.StockItemCategory="StockItemCategory",e.Location="Location",e.ChildLocations="ChildLocations",e.StockSource="StockSource",e.StockSourceDestination="StockSourceDestination",e.InventoryGroupBy="InventoryGroupBy",e.MaxReorderLevelRatio="MaxReorderLevelRatio",e.Patient="Patient",e.StockItem="StockItem",e.Limit="Limit",e.MostLeastMoving="MostLeastMoving",e.Fullfillment="Fullfillment"}(o||(o={}));var p=function(e){return v(e)?4:e?20:null},v=function(e){return"STOCK_FORECAST_REPORT"===e||"STOCK_EXPIRY_FORECAST_REPORT"===e},g=n(826),f=n(7107);n(2484);var b=n(9937),y=n(954),h=n(1604),k=h.z.object({startDate:h.z.coerce.date().optional(),endDate:h.z.coerce.date().optional(),location:h.z.string({required_error:"Location Required"}).min(1,{message:"Location Required"}),reportName:h.z.string({required_error:"Report Name Required"}).min(1,{message:"Report Name Required"}),stockReportItemCategory:h.z.string().optional(),mostLeastMoving:h.z.string().optional(),mostLeastMovingName:h.z.string().optional(),stockItemUuid:h.z.string().optional(),stockItemName:h.z.string().optional(),patientUuid:h.z.string().optional(),patientName:h.z.string().optional(),locationUuid:h.z.string().optional(),childLocations:h.z.boolean().optional(),stockSourceUuid:h.z.string().optional(),stockSource:h.z.string().optional(),stockSourceDestinationUuid:h.z.string().optional(),stockSourceDestination:h.z.string().optional(),inventoryGroupBy:h.z.string().optional(),stockItemCategory:h.z.string().optional(),inventoryGroupByName:h.z.string().optional(),stockItemCategoryConceptUuid:h.z.string().optional(),reportSystemName:h.z.string().optional(),maxReorderLevelRatio:h.z.number().optional(),fullFillment:h.z.string().array().optional(),limit:h.z.string().optional(),date:h.z.coerce.date().optional()}).superRefine((function(e,t){"Stock Status Report"!==e.reportName&&"Stock-Out Report"!==e.reportName&&(e.startDate||t.addIssue({code:h.z.ZodIssueCode.custom,message:"Start Date is required ",path:["startDate"]}),e.endDate||t.addIssue({code:h.z.ZodIssueCode.custom,message:"End Date is required",path:["endDate"]})),"Stock Status Report"!==e.reportName&&"Stock-Out Report"!==e.reportName||(e.date||t.addIssue({code:h.z.ZodIssueCode.custom,message:"Date is required ",path:["date"]}),e.inventoryGroupBy||t.addIssue({code:h.z.ZodIssueCode.custom,message:"Inventory by is required ",path:["inventoryGroupBy"]}))})),A=n(3889),S=n(9530),C=n(7410),E=n.n(C),$=n(4766),_=n.n($),x=n(1991),D=n.n(x),I=n(3702),L=n.n(I),w=n(2434),N=n.n(w),T=n(1422),M=n.n(T),F=n(9378),B={};B.styleTagTransform=M(),B.setAttributes=L(),B.insert=D().bind(null,"head"),B.domAPI=_(),B.insertStyleElement=N(),E()(F.Z,B);const R=F.Z&&F.Z.locals?F.Z.locals:void 0;function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function P(e,t,n,o,a,r,i){try{var l=e[r](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,a)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return r}}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}const J=function(e){var t,n,i,h,C,E=e.model,$=e.closeWorkspace,_=(0,c.useTranslation)().t,x=(0,u.useConfig)().stockItemCategoryUUID,D="tablet"===(0,u.useLayoutType)(),I=(0,S.w)(),L=I.reportTypes,w=I.isLoading,N=(0,A.O8)().stockLocations,T=(0,A.K2)(x).items,M=U((0,a.useState)(!1),2),F=M[0],B=M[1],z=U((0,a.useState)(!1),2),O=z[0],J=z[1],Q=U((0,a.useState)(!1),2),q=Q[0],Y=Q[1],Z=U((0,a.useState)(!1),2),V=Z[0],K=Z[1],X=U((0,a.useState)(!1),2),W=X[0],H=X[1],ee=U((0,a.useState)(!1),2),te=ee[0],ne=ee[1],oe=U((0,a.useState)(!1),2),ae=oe[0],re=oe[1],ie=U((0,a.useState)(!1),2),le=ie[0],ce=ie[1],se=U((0,a.useState)(!1),2),ue=se[0],de=se[1],me=U((0,a.useState)(!1),2),pe=me[0],ve=me[1],ge=U((0,a.useState)(!1),2),fe=ge[0],be=ge[1],ye=U((0,a.useState)(!1),2),he=ye[0],ke=ye[1],Ae=U((0,a.useState)(!1),2),Se=Ae[0],Ce=Ae[1],Ee=U((0,a.useState)(!1),2),$e=Ee[0],_e=Ee[1],xe=U((0,a.useState)(!1),2),De=xe[0],Ie=xe[1],Le=U((0,a.useState)(""),2),we=Le[0],Ne=Le[1];(0,a.useEffect)((function(){var e=!1;if(we){var t,n,a,r,i,l,c,s,u,d,m,p,v,g,f,b=null==L?void 0:L.find((function(e){return e.name===we}));b&&(B(null===(t=b.parameters)||void 0===t?void 0:t.some((function(e){return e===o.Date}))),J(null===(n=b.parameters)||void 0===n?void 0:n.some((function(e){return e===o.StartDate}))),Y(null===(a=b.parameters)||void 0===a?void 0:a.some((function(e){return e===o.EndDate}))),K(null===(r=b.parameters)||void 0===r?void 0:r.some((function(e){return e===o.StockItemCategory}))),H(null===(i=b.parameters)||void 0===i?void 0:i.some((function(e){return e===o.Location}))),ne(null===(l=b.parameters)||void 0===l?void 0:l.some((function(e){return e===o.ChildLocations}))),re(null===(c=b.parameters)||void 0===c?void 0:c.some((function(e){return e===o.StockSource}))),ce(null===(s=b.parameters)||void 0===s?void 0:s.some((function(e){return e===o.StockSourceDestination}))),de(null===(u=b.parameters)||void 0===u?void 0:u.some((function(e){return e===o.InventoryGroupBy}))),ve(null===(d=b.parameters)||void 0===d?void 0:d.some((function(e){return e===o.MaxReorderLevelRatio}))),ke(null===(m=b.parameters)||void 0===m?void 0:m.some((function(e){return e===o.StockItem}))),be(null===(p=b.parameters)||void 0===p?void 0:p.some((function(e){return e===o.Patient}))),Ce(null===(v=b.parameters)||void 0===v?void 0:v.some((function(e){return e===o.Limit}))),_e(null===(g=b.parameters)||void 0===g?void 0:g.some((function(e){return e===o.MostLeastMoving}))),Ie(null===(f=b.parameters)||void 0===f?void 0:f.some((function(e){return e===o.Fullfillment}))),e=!0)}e||(B(!1),J(!1),Y(!1),K(!1),H(!1),ne(!1),re(!1),ce(!1),de(!1),ve(!1),ke(!1),be(!1),Ce(!1),_e(!1),Ie(!1))}),[we,L]);var Te=(0,a.useMemo)((function(){var e,t;return[{display:"All Categories",name:"All Categories",uuid:""}].concat(G(null!==(t=T&&(null==T||null===(e=T.answers)||void 0===e?void 0:e.length)>0?null==T?void 0:T.answers:null==T?void 0:T.setMembers)&&void 0!==t?t:[]))}),[T]),Me=(0,d.cI)({mode:"all",resolver:(0,m.F)(k)}),Fe=(Me.handleSubmit,Me.control),Be=Me.formState,Re=Be.errors,ze=(Be.defaultValues,Be.isDirty,Me.setValue);if(w)return r().createElement(s.lSo,{status:"active",iconDescription:"Loading",description:"Loading data..."});var Pe,je,Ue,Ge=(Pe=function(e){var t,n,a,r,i,l,c,s,d,m,g,h,k,A,S,C,E,x,D,I,w,N,T,M,B,R,z,P,j,U,G,J,Q,Y,Z,K,X,H;return function(e,t){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(a=2&r[0]?o.return:r[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,r[1])).done)return a;switch(o=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,o=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){i=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(6===r[0]&&i.label<a[1]){i.label=a[1],a=r;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(r);break}a[2]&&i.ops.pop(),i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e],o=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}}(this,(function(ee){switch(ee.label){case 0:n=null===(t=L.find((function(t){return t.name===e.reportName})))||void 0===t?void 0:t.systemName,ee.label=1;case 1:return ee.trys.push([1,,3,4]),a="\r\n",r="param.report=".concat(n).concat(a),De&&(r+=Oe(o.Fullfillment,(null!==(i=e.fullFillment)&&void 0!==i?i:["All"]).join(","),(null!==(l=e.fullFillment)&&void 0!==l?l:["All"]).join(", "),_("fulfillment","Fulfillment"),a)),fe&&(r+=Oe(o.Patient,null!==(s=e.patientUuid)&&void 0!==s?s:"",null!==(d=null===(c=e.patientName)||void 0===c?void 0:c.trim())&&void 0!==d?d:"All Patients",_("patients","Patients"),a)),he&&(r+=Oe(o.StockItem,null!==(g=e.stockItemUuid)&&void 0!==g?g:"",null!==(h=null===(m=e.stockItemName)||void 0===m?void 0:m.trim())&&void 0!==h?h:"All Stock Items",_("stockItem","Stock Item"),a)),V&&(r+=Oe(o.StockItemCategory,null!==(A=e.stockItemCategoryConceptUuid)&&void 0!==A?A:"",null!==(S=null===(k=e.stockItemCategory)||void 0===k?void 0:k.trim())&&void 0!==S?S:"All Categories",_("stockItemCategory","Stock Item Category"),a)),ue&&(r+=Oe(o.InventoryGroupBy,null!==(E=e.inventoryGroupBy)&&void 0!==E?E:"LocationStockItemBatchNo",null!==(x=null===(C=e.inventoryGroupByName)||void 0===C?void 0:C.trim())&&void 0!==x?x:"Stock Item Batch Number",_("inventoryGroupBy","Inventory group by"),a)),W&&(r+=Oe(o.Location,e.locationUuid,null!==(I=null===(D=e.location)||void 0===D?void 0:D.trim())&&void 0!==I?I:"",_("location","Location"),a),te&&(r+=Oe(o.ChildLocations,e.childLocations?"true":"false",e.childLocations?"Yes":"No",_("includeChildLocations","Include Child Locations"),a))),pe&&(r+=Oe(o.MaxReorderLevelRatio,(null!==(w=e.maxReorderLevelRatio)&&void 0!==w?w:0).toString(),(null!==(N=e.maxReorderLevelRatio)&&void 0!==N?N:0).toString()+"%",_("maxReorderLevelRatio","Max reorder level ratio"),a)),ae&&(r+=Oe(o.StockSource,null!==(M=e.stockSourceUuid)&&void 0!==M?M:"",null!==(B=null===(T=e.stockSource)||void 0===T?void 0:T.trim())&&void 0!==B?B:"All Sources",_("stockSource","Stock source"),a)),le&&(r+=Oe(o.StockSourceDestination,null!==(z=e.stockSourceDestinationUuid)&&void 0!==z?z:"",null!==(P=null===(R=e.stockSourceDestination)||void 0===R?void 0:R.trim())&&void 0!==P?P:"All Destinations",_("stockSourceDestination","Stock source destination"),a)),$e&&(r+=Oe(o.MostLeastMoving,null!==(U=e.mostLeastMoving)&&void 0!==U?U:"MostMoving",null!==(G=null===(j=e.mostLeastMovingName)||void 0===j?void 0:j.trim())&&void 0!==G?G:"Most Moving",_("mostMoving","Most moving"),a)),Se&&(r+=Oe(o.Limit,(null!==(Q=null!==(J=e.limit)&&void 0!==J?J:p(e.reportSystemName))&&void 0!==Q?Q:20).toString(),(null!==(Z=null!==(Y=e.limit)&&void 0!==Y?Y:p(e.reportSystemName))&&void 0!==Z?Z:20).toString(),_(function(e){return v(e)?"stockmanagement.report.edit.months":"stockmanagement.report.edit.limit"}(e.reportSystemName)),a)),F&&(r+=Oe(o.Date,e.date?JSON.stringify(e.date).replaceAll('"',""):"",null!==(K=(0,b.up)(e.date))&&void 0!==K?K:"",_("date","Date"),a)),O&&(r+=Oe(o.StartDate,e.startDate?JSON.stringify(e.startDate).replaceAll('"',""):"",null!==(X=(0,b.up)(e.startDate))&&void 0!==X?X:"",_(function(e){return v(e)?"stockmanagement.report.edit.historicalstartdate":"Start Date"}(e.reportSystemName)),a)),q&&(r+=Oe(o.EndDate,e.endDate?JSON.stringify(e.endDate).replaceAll('"',""):"",null!==(H=(0,b.up)(e.endDate))&&void 0!==H?H:"",_(function(e){return v(e)?"stockmanagement.report.edit.historicalenddate":"End Date"}(e.reportSystemName)),a)),[4,(ne={batchJobType:f.Er,description:e.reportName,parameters:r},oe="".concat(u.restBaseUrl,"/stockmanagement/batchjob"),re=new AbortController,(0,u.openmrsFetch)(oe,{method:"POST",headers:{"Content-Type":"application/json"},signal:re.signal,body:ne})).then((function(e){201===e.status?((0,u.showSnackbar)({title:_("batchJob","Batch Job"),subtitle:_("BatchJobSuccess","Batch job created successfully"),kind:"success"}),(0,y.d)("".concat(u.restBaseUrl,"/stockmanagement/batchjob?batchJobType=Report&v=default")),$()):((0,u.showSnackbar)({title:_("BatchJobErrorTitle","Batch job"),subtitle:_("batchJobErrorMessage","Error creating batch job"),kind:"error"}),$())})).catch((function(){(0,u.showSnackbar)({title:_("BatchJobErrorTitle","Batch job"),subtitle:_("batchJobErrorMessage","Error creating batch job"),kind:"error"}),$()}))];case 2:return ee.sent(),[3,4];case 3:return[7];case 4:return[2]}var ne,oe,re}))},je=function(){var e=this,t=arguments;return new Promise((function(n,o){var a=Pe.apply(e,t);function r(e){P(a,n,o,r,i,"next",e)}function i(e){P(a,n,o,r,i,"throw",e)}r(void 0)}))},function(e){return je.apply(this,arguments)}),Oe=function(e,t,n,o,a){return"param.".concat(e,".value=").concat(t).concat(a,"param.").concat(e,".value.desc=").concat(n).concat(a,"param.").concat(e,".description=").concat(o).concat(a)};return r().createElement("div",{className:R.formContainer},r().createElement("div",{className:R.body},r().createElement(r().Fragment,null,r().createElement("span",null,_("reportName","Report")),r().createElement(d.Qr,{control:Fe,name:"reportName",render:function(e){var t=e.field.onChange;return r().createElement(s.CtY,{id:"report",size:"md",labelText:_("reportName","Report"),items:L,itemToString:function(e){var t,n;return"".concat(null!==(n=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:null==e?void 0:e.name)&&void 0!==n?n:"")},placeholder:"Filter...",onChange:function(e){var n,o=e.selectedItem;t(o.name),n=o.name,Ne(n)}})}})),V&&r().createElement(r().Fragment,null,r().createElement("span",null,_("stockItemCategory","Stock Item Category")),r().createElement(d.Qr,{control:Fe,name:"stockReportItemCategory",render:function(e){var t=e.field.onChange;return r().createElement(s.CtY,{id:"stockReportItem",size:"md",labelText:_("stockItemCategory","Stock Item Category"),items:Te,onChange:function(e){var n=e.selectedItem;t(n.uuid)},itemToString:function(e){return e&&(null==e?void 0:e.display)?"".concat(null==e?void 0:e.display):""},placeholder:"Filter..."})}})),O&&r().createElement(d.Qr,{control:Fe,name:"startDate",render:function(e){var t,n,o=e.field,a=o.onChange,i=o.value;return r().createElement(s.Mtg,{datePickerType:"single",maxDate:(0,g.KA)((0,g.Lg)()),locale:"en",dateFormat:g.fk,onChange:a,value:i},r().createElement(s.aj6,{id:"startDate",name:"startDate",placeholder:g.Pq,labelText:_("startDate","Start Date"),defaultValue:"",invalid:null==Re||null===(t=Re.startDate)||void 0===t?void 0:t.message,invalidText:null==Re||null===(n=Re.startDate)||void 0===n?void 0:n.message}))}}),q&&r().createElement(d.Qr,{control:Fe,name:"endDate",render:function(e){var t,n,o=e.field,a=o.onChange,i=o.value;return r().createElement(s.Mtg,{datePickerType:"single",maxDate:(0,g.KA)((0,g.Lg)()),locale:"en",dateFormat:g.fk,onChange:a,value:i},r().createElement(s.aj6,{id:"endDate",name:"endDate",placeholder:g.Pq,labelText:_("endDate","End Date"),defaultValue:"",invalid:null==Re||null===(t=Re.endDate)||void 0===t?void 0:t.message,invalidText:null==Re||null===(n=Re.endDate)||void 0===n?void 0:n.message}))}}),ue&&r().createElement(s.PhF,{id:"inventoryGroupBy",defaultValue:null==E?void 0:E.inventoryGroupBy,invalid:null==Re||null===(t=Re.inventoryGroupBy)||void 0===t?void 0:t.message,invalidText:null==Re||null===(n=Re.inventoryGroupBy)||void 0===n?void 0:n.message,labelText:_("inventoryBy","Inventory by"),onChange:function(e){return ze("inventoryGroupBy",e.target.value)}},r().createElement(s.QlF,{value:"",text:_("SelectOption","Select an option")}),r().createElement(s.QlF,{value:"StockItemOnly",text:_("stockItem","Stock Item")}),r().createElement(s.QlF,{value:"LocationStockItem",text:_("locationAndStockItem","Location and Stock Item")}),r().createElement(s.QlF,{value:"LocationStockItemBatchNo",text:_("locationAndBatchno","Location and Batch")})),W&&r().createElement(s.PhF,{name:"locationUuid",className:"select-field",labelText:_("location","Location"),id:"location",onChange:function(e){var t=null==N?void 0:N.find((function(t){return t.id===e.target.value}));ze("locationUuid",e.target.value),ze("location",(null==t?void 0:t.name)||"")},defaultValue:"",invalid:null==Re||null===(i=Re.location)||void 0===i?void 0:i.message,invalidText:null==Re||null===(h=Re.location)||void 0===h?void 0:h.message},r().createElement(s.QlF,{disabled:!0,hidden:!0,value:"",text:_("chooseALocation","Choose a location")}),null===(C=null!=N?N:[])||void 0===C?void 0:C.map((function(e){return r().createElement(s.QlF,{key:e.id,value:e.id,text:e.name})}))),te&&r().createElement(d.Qr,{control:Fe,name:"childLocations",render:function(e){var t=e.field,n=t.onChange,o=t.value;return r().createElement(s.XZJ,{id:"childLocations",onChange:n,value:o,labelText:_("includeChildLocations","Include Child Locations")})}}),$e&&r().createElement(d.Qr,{control:Fe,name:"mostLeastMoving",render:function(e){var t=e.field,n=t.onChange,o=t.value;return r().createElement(s.SYO,{name:"mostLeastMoving",legendText:_("rank","Rank"),onChange:n,value:o},r().createElement(s.EUY,{value:"MostMoving",id:"mostLeastMovingMost",labelText:_("mostMoving","Most Moving")}),r().createElement(s.EUY,{value:"LeastMoving",id:"mostLeastMovingLeast",labelText:_("leastMoving","Least Moving")}))}}),Se&&r().createElement(d.Qr,{control:Fe,name:"limit",render:function(e){var t=e.field,n=t.onChange,o=t.value;return r().createElement(s.Y2U,{id:"limitTop",allowEmpty:!0,disableWheel:!0,hideSteppers:!0,value:o,onchange:n,label:_("limit","Limit"),defaultValue:20})}}),De&&r().createElement("div",{style:{display:"flex",flexDirection:"row",gap:"0 1rem"}},r().createElement(d.Qr,{control:Fe,name:"fullFillment",render:function(e){var t=e.field,n=t.onChange,o=t.value;return r().createElement(r().Fragment,null,r().createElement(s.XZJ,{id:"allFulfillment",checked:null==o?void 0:o.includes("All"),onChange:function(e){var t=e.target.checked;n(t?["All"]:o.filter((function(e){return"All"!==e})))},labelText:_("all","All")}),r().createElement(s.XZJ,{id:"fullFulfillment",checked:null==o?void 0:o.includes("Full"),onChange:function(e){var t=e.target.checked;n(t?G(o.filter((function(e){return"All"!==e}))).concat(["Full"]):o.filter((function(e){return"Full"!==e})))},labelText:_("fullFulfillment","Full Fulfillment")}),r().createElement(s.XZJ,{id:"partialFulfillment",checked:null==o?void 0:o.includes("Partial"),onChange:function(e){var t=e.target.checked;n(t?G(o.filter((function(e){return"All"!==e}))).concat(["Partial"]):o.filter((function(e){return"Partial"!==e})))},labelText:_("partialFulfillment","Partial Fulfillment")}),r().createElement(s.XZJ,{id:"noneFulfillment",checked:null==o?void 0:o.includes("None"),onChange:function(e){var t=e.target.checked;n(t?G(o.filter((function(e){return"All"!==e}))).concat(["None"]):o.filter((function(e){return"None"!==e})))},labelText:_("noneFulfillment","Non Fulfillment")}))}})),F&&r().createElement(d.Qr,{control:Fe,name:"date",render:function(e){var t,n,o=e.field,a=o.onChange,i=o.value;return r().createElement(s.Mtg,{datePickerType:"single",maxDate:(0,g.KA)((0,g.Lg)()),locale:"en",dateFormat:g.fk,onChange:a,value:i},r().createElement(s.aj6,{id:"date",name:"date",placeholder:g.Pq,labelText:_("date","Date"),defaultValue:"",invalid:null==Re||null===(t=Re.date)||void 0===t?void 0:t.message,invalidText:null==Re||null===(n=Re.date)||void 0===n?void 0:n.message}))}})),r().createElement(s.uVA,{className:l()(R.buttonSet,(Ue={},j(Ue,R.tablet,D),j(Ue,R.desktop,!D),Ue))},r().createElement(s.zxk,{kind:"secondary",onClick:$,className:R.button},(0,u.getCoreTranslation)("cancel")),r().createElement(s.zxk,{type:"submit",className:R.button,onClick:Ge},(0,u.getCoreTranslation)("save"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[467],{9378:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(1364),o=n.n(a),r=n(1682),i=n.n(r)()(o());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-stock-management__create-stock-report__container___V2FVL{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-stock-management__create-stock-report__form___r4kbH{margin:1rem}.-esm-stock-management__create-stock-report__button___MRB1p{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-stock-management__create-stock-report__buttonSet___Y3EPS{display:flex;justify-content:space-between;width:100%}.-esm-stock-management__create-stock-report__body___eKDjI{padding:1rem}.-esm-stock-management__create-stock-report__flexRow___nRhOg{display:flex;align-items:center}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/stock-reports/generate-report/create-stock-report.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,+DACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,0DACE,WCkBW,CDfb,4DACE,WCuCW,CDtCX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,+DACE,YAAA,CACA,6BAAA,CACA,UAAA,CAGF,0DACE,YAAA,CAGF,6DACE,YAAA,CACA,kBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/styles/scss/spacing';\n@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.form {\n margin: layout.$spacing-05;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.buttonSet {\n display: flex;\n justify-content: space-between;\n width: 100%;\n}\n\n.body {\n padding: 1rem;\n}\n\n.flexRow {\n display: flex;\n align-items: center;\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:""}]),i.locals={container:"-esm-stock-management__create-stock-report__container___V2FVL",form:"-esm-stock-management__create-stock-report__form___r4kbH",button:"-esm-stock-management__create-stock-report__button___MRB1p",buttonSet:"-esm-stock-management__create-stock-report__buttonSet___Y3EPS",body:"-esm-stock-management__create-stock-report__body___eKDjI",flexRow:"-esm-stock-management__create-stock-report__flexRow___nRhOg"};const l=i},8467:(e,t,n)=>{n.r(t),n.d(t,{default:()=>J});var a,o=n(1672),r=n.n(o),i=n(3967),l=n.n(i),c=n(3397),s=n(5787),u=n(3775),d=n(7536),m=n(6312);!function(e){e.Date="Date",e.StartDate="StartDate",e.EndDate="EndDate",e.StockItemCategory="StockItemCategory",e.Location="Location",e.ChildLocations="ChildLocations",e.StockSource="StockSource",e.StockSourceDestination="StockSourceDestination",e.InventoryGroupBy="InventoryGroupBy",e.MaxReorderLevelRatio="MaxReorderLevelRatio",e.Patient="Patient",e.StockItem="StockItem",e.Limit="Limit",e.MostLeastMoving="MostLeastMoving",e.Fullfillment="Fullfillment"}(a||(a={}));var p=function(e){return g(e)?4:e?20:null},g=function(e){return"STOCK_FORECAST_REPORT"===e||"STOCK_EXPIRY_FORECAST_REPORT"===e},v=n(826),f=n(7107);n(2484);var b=n(9937),y=n(954),h=n(1604),k=h.z.object({startDate:h.z.coerce.date().optional(),endDate:h.z.coerce.date().optional(),location:h.z.string({required_error:"Location Required"}).min(1,{message:"Location Required"}),reportName:h.z.string({required_error:"Report Name Required"}).min(1,{message:"Report Name Required"}),stockReportItemCategory:h.z.string().optional(),mostLeastMoving:h.z.string().optional(),mostLeastMovingName:h.z.string().optional(),stockItemUuid:h.z.string().optional(),stockItemName:h.z.string().optional(),patientUuid:h.z.string().optional(),patientName:h.z.string().optional(),locationUuid:h.z.string().optional(),childLocations:h.z.boolean().optional(),stockSourceUuid:h.z.string().optional(),stockSource:h.z.string().optional(),stockSourceDestinationUuid:h.z.string().optional(),stockSourceDestination:h.z.string().optional(),inventoryGroupBy:h.z.string().optional(),stockItemCategory:h.z.string().optional(),inventoryGroupByName:h.z.string().optional(),stockItemCategoryConceptUuid:h.z.string().optional(),reportSystemName:h.z.string().optional(),maxReorderLevelRatio:h.z.number().optional(),fullFillment:h.z.string().array().optional(),limit:h.z.string().optional(),date:h.z.coerce.date().optional()}).superRefine((function(e,t){"Stock Status Report"!==e.reportName&&"Stock-Out Report"!==e.reportName&&(e.startDate||t.addIssue({code:h.z.ZodIssueCode.custom,message:"Start Date is required ",path:["startDate"]}),e.endDate||t.addIssue({code:h.z.ZodIssueCode.custom,message:"End Date is required",path:["endDate"]})),"Stock Status Report"!==e.reportName&&"Stock-Out Report"!==e.reportName||(e.date||t.addIssue({code:h.z.ZodIssueCode.custom,message:"Date is required ",path:["date"]}),e.inventoryGroupBy||t.addIssue({code:h.z.ZodIssueCode.custom,message:"Inventory by is required ",path:["inventoryGroupBy"]}))})),A=n(3889),S=n(9530),C=n(7410),_=n.n(C),E=n(4766),$=n.n(E),x=n(1991),D=n.n(x),I=n(3702),w=n.n(I),L=n(2434),N=n.n(L),T=n(1422),R=n.n(T),F=n(9378),M={};M.styleTagTransform=R(),M.setAttributes=w(),M.insert=D().bind(null,"head"),M.domAPI=$(),M.insertStyleElement=N(),_()(F.Z,M);const B=F.Z&&F.Z.locals?F.Z.locals:void 0;function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function P(e,t,n,a,o,r,i){try{var l=e[r](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(a,o)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,r=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return r}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}const J=function(e){var t,n,i,h,C,_=e.model,E=e.closeWorkspace,$=(0,c.useTranslation)().t,x=(0,u.useConfig)().stockItemCategoryUUID,D="tablet"===(0,u.useLayoutType)(),I=(0,S.w)(),w=I.reportTypes,L=I.isLoading,N=(0,A.O8)().stockLocations,T=(0,A.K2)(x).items,R=G((0,o.useState)(!1),2),F=R[0],M=R[1],z=G((0,o.useState)(!1),2),U=z[0],J=z[1],q=G((0,o.useState)(!1),2),Q=q[0],Y=q[1],Z=G((0,o.useState)(!1),2),V=Z[0],K=Z[1],W=G((0,o.useState)(!1),2),X=W[0],H=W[1],ee=G((0,o.useState)(!1),2),te=ee[0],ne=ee[1],ae=G((0,o.useState)(!1),2),oe=ae[0],re=ae[1],ie=G((0,o.useState)(!1),2),le=ie[0],ce=ie[1],se=G((0,o.useState)(!1),2),ue=se[0],de=se[1],me=G((0,o.useState)(!1),2),pe=me[0],ge=me[1],ve=G((0,o.useState)(!1),2),fe=ve[0],be=ve[1],ye=G((0,o.useState)(!1),2),he=ye[0],ke=ye[1],Ae=G((0,o.useState)(!1),2),Se=Ae[0],Ce=Ae[1],_e=G((0,o.useState)(!1),2),Ee=_e[0],$e=_e[1],xe=G((0,o.useState)(!1),2),De=xe[0],Ie=xe[1],we=G((0,o.useState)(""),2),Le=we[0],Ne=we[1];(0,o.useEffect)((function(){var e=!1;if(Le){var t,n,o,r,i,l,c,s,u,d,m,p,g,v,f,b=null==w?void 0:w.find((function(e){return e.name===Le}));b&&(M(null===(t=b.parameters)||void 0===t?void 0:t.some((function(e){return e===a.Date}))),J(null===(n=b.parameters)||void 0===n?void 0:n.some((function(e){return e===a.StartDate}))),Y(null===(o=b.parameters)||void 0===o?void 0:o.some((function(e){return e===a.EndDate}))),K(null===(r=b.parameters)||void 0===r?void 0:r.some((function(e){return e===a.StockItemCategory}))),H(null===(i=b.parameters)||void 0===i?void 0:i.some((function(e){return e===a.Location}))),ne(null===(l=b.parameters)||void 0===l?void 0:l.some((function(e){return e===a.ChildLocations}))),re(null===(c=b.parameters)||void 0===c?void 0:c.some((function(e){return e===a.StockSource}))),ce(null===(s=b.parameters)||void 0===s?void 0:s.some((function(e){return e===a.StockSourceDestination}))),de(null===(u=b.parameters)||void 0===u?void 0:u.some((function(e){return e===a.InventoryGroupBy}))),ge(null===(d=b.parameters)||void 0===d?void 0:d.some((function(e){return e===a.MaxReorderLevelRatio}))),ke(null===(m=b.parameters)||void 0===m?void 0:m.some((function(e){return e===a.StockItem}))),be(null===(p=b.parameters)||void 0===p?void 0:p.some((function(e){return e===a.Patient}))),Ce(null===(g=b.parameters)||void 0===g?void 0:g.some((function(e){return e===a.Limit}))),$e(null===(v=b.parameters)||void 0===v?void 0:v.some((function(e){return e===a.MostLeastMoving}))),Ie(null===(f=b.parameters)||void 0===f?void 0:f.some((function(e){return e===a.Fullfillment}))),e=!0)}e||(M(!1),J(!1),Y(!1),K(!1),H(!1),ne(!1),re(!1),ce(!1),de(!1),ge(!1),ke(!1),be(!1),Ce(!1),$e(!1),Ie(!1))}),[Le,w]);var Te=(0,o.useMemo)((function(){var e,t;return[{display:"All Categories",name:"All Categories",uuid:""}].concat(O(null!==(t=T&&(null==T||null===(e=T.answers)||void 0===e?void 0:e.length)>0?null==T?void 0:T.answers:null==T?void 0:T.setMembers)&&void 0!==t?t:[]))}),[T]),Re=(0,d.cI)({mode:"all",resolver:(0,m.F)(k)}),Fe=(Re.handleSubmit,Re.control),Me=Re.formState,Be=Me.errors,ze=(Me.defaultValues,Me.isDirty,Re.setValue);if(L)return r().createElement(s.lSo,{status:"active",iconDescription:"Loading",description:"Loading data..."});var Pe,je,Ge,Oe=(Pe=function(e){var t,n,o,r,i,l,c,s,d,m,v,h,k,A,S,C,_,x,D,I,L,N,T,R,M,B,z,P,j,G,O,J,q,Y,Z,K,W,H;return function(e,t){var n,a,o,r,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(o=2&r[0]?a.return:r[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,r[1])).done)return o;switch(a=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,a=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){i=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(6===r[0]&&i.label<o[1]){i.label=o[1],o=r;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(r);break}o[2]&&i.ops.pop(),i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e],a=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}}(this,(function(ee){switch(ee.label){case 0:n=null===(t=w.find((function(t){return t.name===e.reportName})))||void 0===t?void 0:t.systemName,ee.label=1;case 1:return ee.trys.push([1,,3,4]),o="\r\n",r="param.report=".concat(n).concat(o),De&&(r+=Ue(a.Fullfillment,(null!==(i=e.fullFillment)&&void 0!==i?i:["All"]).join(","),(null!==(l=e.fullFillment)&&void 0!==l?l:["All"]).join(", "),$("fulfillment","Fulfillment"),o)),fe&&(r+=Ue(a.Patient,null!==(s=e.patientUuid)&&void 0!==s?s:"",null!==(d=null===(c=e.patientName)||void 0===c?void 0:c.trim())&&void 0!==d?d:"All Patients",$("patients","Patients"),o)),he&&(r+=Ue(a.StockItem,null!==(v=e.stockItemUuid)&&void 0!==v?v:"",null!==(h=null===(m=e.stockItemName)||void 0===m?void 0:m.trim())&&void 0!==h?h:"All Stock Items",$("stockItem","Stock Item"),o)),V&&(r+=Ue(a.StockItemCategory,null!==(A=e.stockItemCategoryConceptUuid)&&void 0!==A?A:"",null!==(S=null===(k=e.stockItemCategory)||void 0===k?void 0:k.trim())&&void 0!==S?S:"All Categories",$("stockItemCategory","Stock Item Category"),o)),ue&&(r+=Ue(a.InventoryGroupBy,null!==(_=e.inventoryGroupBy)&&void 0!==_?_:"LocationStockItemBatchNo",null!==(x=null===(C=e.inventoryGroupByName)||void 0===C?void 0:C.trim())&&void 0!==x?x:"Stock Item Batch Number",$("inventoryGroupBy","Inventory group by"),o)),X&&(r+=Ue(a.Location,e.locationUuid,null!==(I=null===(D=e.location)||void 0===D?void 0:D.trim())&&void 0!==I?I:"",$("location","Location"),o),te&&(r+=Ue(a.ChildLocations,e.childLocations?"true":"false",e.childLocations?"Yes":"No",$("includeChildLocations","Include Child Locations"),o))),pe&&(r+=Ue(a.MaxReorderLevelRatio,(null!==(L=e.maxReorderLevelRatio)&&void 0!==L?L:0).toString(),(null!==(N=e.maxReorderLevelRatio)&&void 0!==N?N:0).toString()+"%",$("maxReorderLevelRatio","Max reorder level ratio"),o)),oe&&(r+=Ue(a.StockSource,null!==(R=e.stockSourceUuid)&&void 0!==R?R:"",null!==(M=null===(T=e.stockSource)||void 0===T?void 0:T.trim())&&void 0!==M?M:"All Sources",$("stockSource","Stock source"),o)),le&&(r+=Ue(a.StockSourceDestination,null!==(z=e.stockSourceDestinationUuid)&&void 0!==z?z:"",null!==(P=null===(B=e.stockSourceDestination)||void 0===B?void 0:B.trim())&&void 0!==P?P:"All Destinations",$("stockSourceDestination","Stock source destination"),o)),Ee&&(r+=Ue(a.MostLeastMoving,null!==(G=e.mostLeastMoving)&&void 0!==G?G:"MostMoving",null!==(O=null===(j=e.mostLeastMovingName)||void 0===j?void 0:j.trim())&&void 0!==O?O:"Most Moving",$("mostMoving","Most moving"),o)),Se&&(r+=Ue(a.Limit,(null!==(q=null!==(J=e.limit)&&void 0!==J?J:p(e.reportSystemName))&&void 0!==q?q:20).toString(),(null!==(Z=null!==(Y=e.limit)&&void 0!==Y?Y:p(e.reportSystemName))&&void 0!==Z?Z:20).toString(),$(function(e){return g(e)?"stockmanagement.report.edit.months":"stockmanagement.report.edit.limit"}(e.reportSystemName)),o)),F&&(r+=Ue(a.Date,e.date?JSON.stringify(e.date).replaceAll('"',""):"",null!==(K=(0,b.up)(e.date))&&void 0!==K?K:"",$("date","Date"),o)),U&&(r+=Ue(a.StartDate,e.startDate?JSON.stringify(e.startDate).replaceAll('"',""):"",null!==(W=(0,b.up)(e.startDate))&&void 0!==W?W:"",$(function(e){return g(e)?"stockmanagement.report.edit.historicalstartdate":"Start Date"}(e.reportSystemName)),o)),Q&&(r+=Ue(a.EndDate,e.endDate?JSON.stringify(e.endDate).replaceAll('"',""):"",null!==(H=(0,b.up)(e.endDate))&&void 0!==H?H:"",$(function(e){return g(e)?"stockmanagement.report.edit.historicalenddate":"End Date"}(e.reportSystemName)),o)),[4,(ne={batchJobType:f.Er,description:e.reportName,parameters:r},ae="".concat(u.restBaseUrl,"/stockmanagement/batchjob"),re=new AbortController,(0,u.openmrsFetch)(ae,{method:"POST",headers:{"Content-Type":"application/json"},signal:re.signal,body:ne})).then((function(e){201===e.status?((0,u.showSnackbar)({title:$("batchJob","Batch Job"),subtitle:$("BatchJobSuccess","Batch job created successfully"),kind:"success"}),(0,y.d)("".concat(u.restBaseUrl,"/stockmanagement/batchjob?batchJobType=Report&v=default")),E()):((0,u.showSnackbar)({title:$("BatchJobErrorTitle","Batch job"),subtitle:$("batchJobErrorMessage","Error creating batch job"),kind:"error"}),E())})).catch((function(){(0,u.showSnackbar)({title:$("BatchJobErrorTitle","Batch job"),subtitle:$("batchJobErrorMessage","Error creating batch job"),kind:"error"}),E()}))];case 2:return ee.sent(),[3,4];case 3:return[7];case 4:return[2]}var ne,ae,re}))},je=function(){var e=this,t=arguments;return new Promise((function(n,a){var o=Pe.apply(e,t);function r(e){P(o,n,a,r,i,"next",e)}function i(e){P(o,n,a,r,i,"throw",e)}r(void 0)}))},function(e){return je.apply(this,arguments)}),Ue=function(e,t,n,a,o){return"param.".concat(e,".value=").concat(t).concat(o,"param.").concat(e,".value.desc=").concat(n).concat(o,"param.").concat(e,".description=").concat(a).concat(o)};return r().createElement(s.l09,{className:B.container},r().createElement(s.Kqy,{className:B.form,gap:5},r().createElement(r().Fragment,null,r().createElement(s.cwH,{legendText:$("reportName","Report name")},r().createElement(d.Qr,{control:Fe,name:"reportName",render:function(e){var t=e.field.onChange;return r().createElement(s.CtY,{id:"report",labelText:$("reportName","Report name"),items:w,itemToString:function(e){var t,n;return"".concat(null!==(n=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:null==e?void 0:e.name)&&void 0!==n?n:"")},placeholder:$("filter","Filter..."),onChange:function(e){var n,a=e.selectedItem;t(a.name),n=a.name,Ne(n)}})}}))),V&&r().createElement(r().Fragment,null,r().createElement(s.cwH,{legendText:$("stockItemCategory","Stock Item Category")},r().createElement(d.Qr,{control:Fe,name:"stockReportItemCategory",render:function(e){var t=e.field.onChange;return r().createElement(s.CtY,{id:"stockReportItem",size:"md",labelText:$("stockItemCategory","Stock Item Category"),items:Te,onChange:function(e){var n=e.selectedItem;t(n.uuid)},itemToString:function(e){return e&&(null==e?void 0:e.display)?"".concat(null==e?void 0:e.display):""},placeholder:$("filter","Filter...")})}}))),U&&r().createElement(d.Qr,{control:Fe,name:"startDate",render:function(e){var t,n,a=e.field,o=a.onChange,i=a.value;return r().createElement(s.Mtg,{datePickerType:"single",maxDate:(0,v.KA)((0,v.Lg)()),locale:"en",dateFormat:v.fk,onChange:o,value:i},r().createElement(s.aj6,{id:"startDate",name:"startDate",placeholder:v.Pq,labelText:$("startDate","Start Date"),defaultValue:"",invalid:null==Be||null===(t=Be.startDate)||void 0===t?void 0:t.message,invalidText:null==Be||null===(n=Be.startDate)||void 0===n?void 0:n.message}))}}),Q&&r().createElement(d.Qr,{control:Fe,name:"endDate",render:function(e){var t,n,a=e.field,o=a.onChange,i=a.value;return r().createElement(s.Mtg,{datePickerType:"single",maxDate:(0,v.KA)((0,v.Lg)()),locale:"en",dateFormat:v.fk,onChange:o,value:i},r().createElement(s.aj6,{id:"endDate",name:"endDate",placeholder:v.Pq,labelText:$("endDate","End Date"),defaultValue:"",invalid:null==Be||null===(t=Be.endDate)||void 0===t?void 0:t.message,invalidText:null==Be||null===(n=Be.endDate)||void 0===n?void 0:n.message}))}}),ue&&r().createElement(s.PhF,{id:"inventoryGroupBy",defaultValue:null==_?void 0:_.inventoryGroupBy,invalid:null==Be||null===(t=Be.inventoryGroupBy)||void 0===t?void 0:t.message,invalidText:null==Be||null===(n=Be.inventoryGroupBy)||void 0===n?void 0:n.message,labelText:$("inventoryBy","Inventory by"),onChange:function(e){return ze("inventoryGroupBy",e.target.value)}},r().createElement(s.QlF,{value:"",text:$("SelectOption","Select an option")}),r().createElement(s.QlF,{value:"StockItemOnly",text:$("stockItem","Stock Item")}),r().createElement(s.QlF,{value:"LocationStockItem",text:$("locationAndStockItem","Location and Stock Item")}),r().createElement(s.QlF,{value:"LocationStockItemBatchNo",text:$("locationAndBatchno","Location and Batch")})),X&&r().createElement(s.PhF,{name:"locationUuid",className:"select-field",labelText:$("location","Location"),id:"location",onChange:function(e){var t=null==N?void 0:N.find((function(t){return t.id===e.target.value}));ze("locationUuid",e.target.value),ze("location",(null==t?void 0:t.name)||"")},defaultValue:"",invalid:null==Be||null===(i=Be.location)||void 0===i?void 0:i.message,invalidText:null==Be||null===(h=Be.location)||void 0===h?void 0:h.message},r().createElement(s.QlF,{disabled:!0,hidden:!0,value:"",text:$("chooseALocation","Choose a location")}),null===(C=null!=N?N:[])||void 0===C?void 0:C.map((function(e){return r().createElement(s.QlF,{key:e.id,value:e.id,text:e.name})}))),te&&r().createElement(d.Qr,{control:Fe,name:"childLocations",render:function(e){var t=e.field,n=t.onChange,a=t.value;return r().createElement(s.XZJ,{id:"childLocations",onChange:n,value:a,labelText:$("includeChildLocations","Include Child Locations")})}}),Ee&&r().createElement(d.Qr,{control:Fe,name:"mostLeastMoving",render:function(e){var t=e.field,n=t.onChange,a=t.value;return r().createElement(s.SYO,{name:"mostLeastMoving",legendText:$("rank","Rank"),onChange:n,value:a},r().createElement(s.EUY,{value:"MostMoving",id:"mostLeastMovingMost",labelText:$("mostMoving","Most Moving")}),r().createElement(s.EUY,{value:"LeastMoving",id:"mostLeastMovingLeast",labelText:$("leastMoving","Least Moving")}))}}),Se&&r().createElement(d.Qr,{control:Fe,name:"limit",render:function(e){var t=e.field,n=t.onChange,a=t.value;return r().createElement(s.Y2U,{id:"limitTop",allowEmpty:!0,disableWheel:!0,hideSteppers:!0,value:a,onchange:n,label:$("limit","Limit"),defaultValue:20})}}),De&&r().createElement("div",{className:B.flexRow},r().createElement(d.Qr,{control:Fe,name:"fullFillment",render:function(e){var t=e.field,n=t.onChange,a=t.value;return r().createElement(r().Fragment,null,r().createElement(s.XZJ,{id:"allFulfillment",checked:null==a?void 0:a.includes("All"),onChange:function(e){var t=e.target.checked;n(t?["All"]:a.filter((function(e){return"All"!==e})))},labelText:$("all","All")}),r().createElement(s.XZJ,{id:"fullFulfillment",checked:null==a?void 0:a.includes("Full"),onChange:function(e){var t=e.target.checked;n(t?O(a.filter((function(e){return"All"!==e}))).concat(["Full"]):a.filter((function(e){return"Full"!==e})))},labelText:$("fullFulfillment","Full Fulfillment")}),r().createElement(s.XZJ,{id:"partialFulfillment",checked:null==a?void 0:a.includes("Partial"),onChange:function(e){var t=e.target.checked;n(t?O(a.filter((function(e){return"All"!==e}))).concat(["Partial"]):a.filter((function(e){return"Partial"!==e})))},labelText:$("partialFulfillment","Partial Fulfillment")}),r().createElement(s.XZJ,{id:"noneFulfillment",checked:null==a?void 0:a.includes("None"),onChange:function(e){var t=e.target.checked;n(t?O(a.filter((function(e){return"All"!==e}))).concat(["None"]):a.filter((function(e){return"None"!==e})))},labelText:$("noneFulfillment","Non Fulfillment")}))}})),F&&r().createElement(d.Qr,{control:Fe,name:"date",render:function(e){var t,n,a=e.field,o=a.onChange,i=a.value;return r().createElement(s.Mtg,{datePickerType:"single",maxDate:(0,v.KA)((0,v.Lg)()),locale:"en",dateFormat:v.fk,onChange:o,value:i},r().createElement(s.aj6,{id:"date",name:"date",placeholder:v.Pq,labelText:$("date","Date"),defaultValue:"",invalid:null==Be||null===(t=Be.date)||void 0===t?void 0:t.message,invalidText:null==Be||null===(n=Be.date)||void 0===n?void 0:n.message}))}})),r().createElement(s.uVA,{className:l()(B.buttonSet,(Ge={},j(Ge,B.tablet,D),j(Ge,B.desktop,!D),Ge))},r().createElement(s.zxk,{kind:"secondary",onClick:E,className:B.button},(0,u.getCoreTranslation)("cancel")),r().createElement(s.zxk,{type:"submit",className:B.button,onClick:Oe},(0,u.getCoreTranslation)("save"))))}}}]);
package/dist/467.js.map CHANGED
@@ -1 +1 @@
1
- {"version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YoE,QAAS9L,EAAgBgI,UAAWC,EAAO8D,SACjEC,EAAAA,EAAAA,oBAAmB,WAEtB,kBAACH,EAAAA,IAAMA,CAACI,KAAK,SAASjE,UAAWC,EAAO8D,OAAQD,QAASpG,KACtDsG,EAAAA,EAAAA,oBAAmB,UAK9B,C","sources":["webpack://@openmrs/esm-stock-management-app/./src/stock-reports/generate-report/create-stock-report.scss","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/ReportType.ts","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/report-validation-schema.ts","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/generate-report/create-stock-report.scss?58aa","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/generate-report/create-stock-report.workspace.tsx","webpack://@openmrs/esm-stock-management-app/./src/stock-batch/stock-batch.resource.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","ReportParameter","getParamDefaultLimit","reportSystemName","isForecastReport","reportSchema","z","object","startDate","coerce","date","optional","endDate","location","string","required_error","min","message","reportName","stockReportItemCategory","mostLeastMoving","mostLeastMovingName","stockItemUuid","stockItemName","patientUuid","patientName","locationUuid","childLocations","boolean","stockSourceUuid","stockSource","stockSourceDestinationUuid","stockSourceDestination","inventoryGroupBy","stockItemCategory","inventoryGroupByName","stockItemCategoryConceptUuid","maxReorderLevelRatio","number","fullFillment","array","limit","superRefine","data","ctx","addIssue","code","ZodIssueCode","custom","path","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","errors","stockLocations","model","closeWorkspace","useTranslation","t","useConfig","stockItemCategoryUUID","isTablet","useLayoutType","useReportTypes","reportTypes","isLoading","useStockTagLocations","useConcept","items","useState","displayDate","setDisplayDate","displayStartDate","setDisplayStartDate","displayEndDate","setDisplayEndDate","displayStockItemCategory","setDisplayStockItemCategory","displayLocation","setDisplayLocation","displayChildLocations","setDisplayChildLocations","displayStockSource","setDisplayStockSource","displayStockSourceDestination","setDisplayStockSourceDestination","displayInventoryGroupBy","setDisplayInventoryGroupBy","displayMaxReorderLevelRatio","setDisplayMaxReorderLevelRatio","displayPatient","setDisplayPatient","displayStockItem","setDisplayStockItem","displayLimit","setDisplayLimit","displayMostLeastMoving","setDisplayMostLeastMoving","displayFulfillment","setDisplayFulfillment","selectedReportName","setSelectedReportName","useEffect","hasResetParameters","reportType","find","p","name","parameters","some","Date","StartDate","EndDate","StockItemCategory","Location","ChildLocations","StockSource","StockSourceDestination","InventoryGroupBy","MaxReorderLevelRatio","StockItem","Patient","Limit","MostLeastMoving","Fullfillment","stockItemCategories","useMemo","display","uuid","answers","length","setMembers","useForm","mode","resolver","zodResolver","control","handleSubmit","formState","setValue","defaultValues","isDirty","InlineLoading","status","iconDescription","description","handleSave","report","newLine","formatDisplayDate","systemName","getReportParameter","join","trim","toString","getReportLimitLabel","JSON","stringify","replaceAll","getReportStartDateLabel","getReportEndDateLabel","item","batchJobType","BatchJobTypeReport","apiUrl","restBaseUrl","abortController","AbortController","openmrsFetch","method","headers","signal","body","then","response","showSnackbar","title","subtitle","kind","handleMutate","catch","value","valueDescription","div","className","styles","formContainer","span","Controller","render","field","onChange","ComboBox","size","labelText","itemToString","placeholder","selectedItem","DatePicker","datePickerType","maxDate","formatForDatePicker","today","locale","dateFormat","DATE_PICKER_CONTROL_FORMAT","DatePickerInput","DATE_PICKER_FORMAT","defaultValue","invalid","invalidText","Select","e","target","SelectItem","text","selectedLocation","loc","disabled","hidden","map","key","Checkbox","RadioButtonGroup","legendText","RadioButton","NumberInput","allowEmpty","disableWheel","hideSteppers","onchange","label","style","flexDirection","gap","checked","includes","event","isChecked","filter","ButtonSet","classNames","buttonSet","tablet","desktop","Button","onClick","button","getCoreTranslation","type"],"sourceRoot":""}
1
+ {"version":3,"file":"467.js","mappings":"mNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,48BAA68B,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,kEAAkE,yEAAyE,wEAAwE,MAAQ,GAAG,S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AAQD,QAAStG,KACtDwG,EAAAA,EAAAA,oBAAmB,UAK9B,C","sources":["webpack://@openmrs/esm-stock-management-app/./src/stock-reports/generate-report/create-stock-report.scss","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/ReportType.ts","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/report-validation-schema.ts","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/generate-report/create-stock-report.scss?58aa","webpack://@openmrs/esm-stock-management-app/./src/stock-reports/generate-report/create-stock-report.workspace.tsx","webpack://@openmrs/esm-stock-management-app/./src/stock-batch/stock-batch.resource.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","ReportParameter","getParamDefaultLimit","reportSystemName","isForecastReport","reportSchema","z","object","startDate","coerce","date","optional","endDate","location","string","required_error","min","message","reportName","stockReportItemCategory","mostLeastMoving","mostLeastMovingName","stockItemUuid","stockItemName","patientUuid","patientName","locationUuid","childLocations","boolean","stockSourceUuid","stockSource","stockSourceDestinationUuid","stockSourceDestination","inventoryGroupBy","stockItemCategory","inventoryGroupByName","stockItemCategoryConceptUuid","maxReorderLevelRatio","number","fullFillment","array","limit","superRefine","data","ctx","addIssue","code","ZodIssueCode","custom","path","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","errors","stockLocations","model","closeWorkspace","useTranslation","t","useConfig","stockItemCategoryUUID","isTablet","useLayoutType","useReportTypes","reportTypes","isLoading","useStockTagLocations","useConcept","items","useState","displayDate","setDisplayDate","displayStartDate","setDisplayStartDate","displayEndDate","setDisplayEndDate","displayStockItemCategory","setDisplayStockItemCategory","displayLocation","setDisplayLocation","displayChildLocations","setDisplayChildLocations","displayStockSource","setDisplayStockSource","displayStockSourceDestination","setDisplayStockSourceDestination","displayInventoryGroupBy","setDisplayInventoryGroupBy","displayMaxReorderLevelRatio","setDisplayMaxReorderLevelRatio","displayPatient","setDisplayPatient","displayStockItem","setDisplayStockItem","displayLimit","setDisplayLimit","displayMostLeastMoving","setDisplayMostLeastMoving","displayFulfillment","setDisplayFulfillment","selectedReportName","setSelectedReportName","useEffect","hasResetParameters","reportType","find","p","name","parameters","some","Date","StartDate","EndDate","StockItemCategory","Location","ChildLocations","StockSource","StockSourceDestination","InventoryGroupBy","MaxReorderLevelRatio","StockItem","Patient","Limit","MostLeastMoving","Fullfillment","stockItemCategories","useMemo","display","uuid","answers","length","setMembers","useForm","mode","resolver","zodResolver","control","handleSubmit","formState","setValue","defaultValues","isDirty","InlineLoading","status","iconDescription","description","handleSave","report","newLine","formatDisplayDate","systemName","getReportParameter","join","trim","toString","getReportLimitLabel","JSON","stringify","replaceAll","getReportStartDateLabel","getReportEndDateLabel","item","batchJobType","BatchJobTypeReport","apiUrl","restBaseUrl","abortController","AbortController","openmrsFetch","method","headers","signal","body","then","response","showSnackbar","title","subtitle","kind","handleMutate","catch","value","valueDescription","Form","className","styles","container","Stack","form","gap","FormGroup","legendText","Controller","render","field","onChange","ComboBox","labelText","itemToString","placeholder","selectedItem","size","DatePicker","datePickerType","maxDate","formatForDatePicker","today","locale","dateFormat","DATE_PICKER_CONTROL_FORMAT","DatePickerInput","DATE_PICKER_FORMAT","defaultValue","invalid","invalidText","Select","e","target","SelectItem","text","selectedLocation","loc","disabled","hidden","map","key","Checkbox","RadioButtonGroup","RadioButton","NumberInput","allowEmpty","disableWheel","hideSteppers","onchange","label","div","flexRow","checked","includes","event","isChecked","filter","ButtonSet","classNames","buttonSet","tablet","desktop","Button","onClick","button","getCoreTranslation","type"],"sourceRoot":""}
package/dist/574.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"abbreviation":"Abbreviation","acronymOrCode":"Acronym/Code","action":"Actions","actionFrequency":"Notification Frequency (Minutes)","actions":"Actions","activeFrom":"Active From","ActiveFrom":"Active From ","activeTo":"Active To","addedRule":"Add Rule","addedSource":"Add Source","addItem":"Add stock item","addLocation":"Create new Location","addNewStockRule":"Add New Rule","addNewStockSource":"Add new source","addNewUserRoleScope":"Add new user role scope","addStockItem":"Add Stock Item","addStockOperation":"Add stock operation","addStockRule":"Add stock rule","addUserRole":"Add User role","adminSettings":"Admin settings","alertRole":"Alert Role","all":"All","approve":"Approve","batch":"Batch No","batchInformation":"Batch Information","batchJob":"Batch Job","batchJobErrorMessage":"Error creating batch job","BatchJobErrorTitle":"Batch job","BatchJobSuccess":"Batch job created successfully","batchNo":"Batch No","batchNumber":"Batch Number","batchNumberAlreadyUsed":"Batch number already used","bincard":"Stock Card","by":"By","cancel":"Cancel","cancelled":"Cancelled","category":"Category","checkFilters":"Check the filters above","childLocations":"Child Locations","chooseACategory":"Choose a category","chooseADestination":"Choose a destination","chooseAlertRole":"Choose an Alert Role","chooseALocation":"Choose a location","chooseAnItem":"Choose an item","chooseAPackagingUoM":"Choose a packaging UoM","chooseAReason":"Choose a reason","chooseARole":"Choose a role","chooseASource":"Choose a source","chooseLocation":"Choose the location","chooseMailRole":"Choose a Mail Role","chooseQuantityUnit":"Choose the Unit of Quantity","chooseSourceType":"Choose a source type","chooseVendor":"Choose vendor","clearSearch":"Clear search input","code":"Code","comingSoonUnderDev":"Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings.","commonName":"Common Name","complete":"Complete","completed":"Completed","createLocation":"Create Location","date":"Date","dateRequested":"Date Requested","defaultStockOperationsPackagingUnit":"Default stock operations packaging unit","defaultStockOperationsUoMName":"Bulk Packaging","delete":"Delete","deleteConfirmationText":"Are you sure you want to delete this User Scope? This action can\'t be undone.","deletePackagingUnitMesaage":"Stock Item packing unit deleted Successfully","deletePackagingUnitTitle":"Delete StockItem reference","deletePackingUnitErrorTitle":"Error Deleting a stock item packing unit","deleteRule":"Delete Rule","deleteRuleConfirmationText":"Are you sure you want to delete this stock rule? This action can\'t be undone.","deleteSource":"Delete Source","deleteStock":"Delete Stock source","deleteStockItemReferenceMesaage":"StockItem reference deleted Successfully","deleteStockItemReferenceTitle":"Error Deleting a stockitem reference","deleteStockRule":"Delete Stock Rule","deleteStockUserScope":"Delete Stock User Scope","deleteUserScope":"Delete Stock User Scope","deletingRule":"Delete Rule","deletingSource":"Delete Source","deletingstockUserScope":"Delete Stock User Scope","destination":"destination","details":"Details","discard":"Discard","dispatch":"Dispatch","dispatched":"Dispatched","dispatching":"Dispatching","dispensingUnit":"Dispensing Unit","dispensingUnitHolder":"Choose a dispensing unit","dispensingUnitName":"Dispensing UoM","dispensingUnitOfMeasurement":"Dispensing packaging unit of measurement","disposedStock":"Disposed stock","doesThisTransactionRequireApproval":"Does the transaction require approval ?","drug":"Drug","editOperationTitle":"Edit {{operationType}}","editStockItem":"Edit Stock Item","editStockOperation":"Edit stock operation","editStockRule":"Edit Stock Rule","editStockSource":"Edit stock source","editUserScope":"Edit user scope role","enabled":"Enabled","endDate":"End Date","ended":"Ended","enterRemarks":"Enter remarks","error":"Error","errorAddingRule":"Error adding a rule","errorAddingSource":"Error adding a source","errorAddingStockItem":"Error adding a stock Item","errorCreatingForm":"Error creating location","errorDeletingRule":"Error deleting a rule","errorDeletingSource":"Error deleting a source","errorDeletingUserScope":"Error deleting a user scope","errorEditingStockItem":"Error editing a stock Item","errorFetchingStockSourceTypes":"Error fetching stock source types","errorLoadingStockOperation":"Error loading stock operation","errorLoadingStockOperationTypes":"Error loading stock operation types","errorPrintingStockOperation":"Error printing stock operation","errorSavingForm":"Error on saving form","errorSavingUserRoleScope":"Error Saving user role scope","errorStockMetric":"Error fetching stock metrics","errorUploadingItems":"An error occurred uploading stock items","evaluationFrequency":"Frequency Check (Minutes)","executionState":"Execution State","exitMessage":"Message","expirationNotice":"Expiration Notice (days)","expired":"Expired","expiredStock":"Expired stock","expires":"Expires","expiriation":"Expiration Date","expiringStock":"Expiring stock","expiry":"Expiry","expiryNoticeDays":"Expiration Notice (days)","filter":"Filter ...","filterByLocation":"Filter by Location","findItems":"Find your items","formCreated":"Add Location","from":"From","fulfillment":"Fulfillment","fullFulfillment":"Full Fulfillment","fullName":"Full Name","generatedMessage":"The card has been electronically generated and is a valid document. It was created by {{userName}} on {{date}}","genericName":"Generic Name","hasExpiration":"Does the item expire?","home":"Home","import":"Import","importStockItems":"Import Stock Items","in6Months":"In 6 months","includeChildLocations":"Include Child Locations","inventoryAlerts":"Inventory alerts","inventoryBy":"Inventory by","inventoryGroupBy":"Inventory group by","issuedStock":"Issued stock","issueStock":"Issue Stock ","issuing":"Issuing","item":"Item","itemAlreadyExists":"Item already exits","itemDetails":"Item Details","itemname":"Item Name","itemsAboveMax":"Items Above Max","itemsBelowMin":"Items Below Min","itemType":"Item Type","leastMoving":"Least Moving","limit":"Limit","loading":"Loading...","loading StockoperationLinks":"Loading stock operation links","loadingData":"Loading data...","loadingOperationActions":"Loading stock operation actions","loadingOperationTypes":"Loading operation types","location":"Location(s)","locationAndBatchno":"Location and Batch","locationAndStockItem":"Location and Stock Item","locationCreatedSuccessfully":"Location {{locationName}} was created successfully.","locationPlaceholder":"Add a location","locations":"Locations","mailRole":"Mail Role","manageStock":"Manage Stock","maxReorderLevelRatio":"Max reorder level ratio","mostMoving":"Most Moving","name":"Name","newOperationTitle":"New: {{operationName}}","newReport":"New Report","next":"Next","no":"No","noCommonNameAvailable":"No common name available","noData":"No data to display","noDrugNameAvailable":"No drug name available","noExpiredStockDataAvailable":"No expired stock data available.","noInventoryAlerts":"No inventory alerts to display","noIssuedStock":"No issued stock to display","noIssuedStockDataAvailable":"No issued stock data available.","noneFulfillment":"Non Fulfillment","noOperationsToDisplay":"No Stock Operations to display","noPrivilagesTitle":"","noReceivedStock":"No received stock to display","noReceivedStockDataAvailable":"No received stock data available.","noReportsToDisplay":"No Stock reports to display","noRulesToDisplay":"No Stock rules to display","noSourcesToDisplay":"No Stock sources to display","noStockItemsToDisplay":"No stock items to display","noStockUserRoleScopesToDisplay":"No stock user role scopes to display","notes":"Please explain the reason:","notSet":"Not Set","noViewPrivilegesDescription":"Description: {{description}}","number":"Number","onlyCsvFilesAt2mbOrLess":"Only .csv files at 2MB or less","operationDate":"Operation Date","operationModalTitle":"{{title}} Operation","operationNumber":"Operation Number","operationSuccessful":"You have successfully {{title}} operation","operationSuccessTitle":"{{title}} Operation","orderLevel":"Reorder level","other":"Other","outOfStock":"Out of stock","packagingUnit":"Packaging Unit","packagingUnits":"Packaging Units","packagingUomError":"Error loading stockItemPackagingUOM name","packSize":"Pack Size","panelDescription":"To access stock management features, users must have assigned roles specifying location and stock operation type scopes.","parameters":"Parameters","partialFulfillment":"Partial Fulfillment","partieserror":"Error launching base operation details form","patients":"Patients","permanent":"Permanent","pleaseFillField":"{{message}}","pleaseSpecify":"Please Specify","poorQuality":"Poor Quality","previous":"Previous","print":"Print","printbincard":"Print Stock Card","printBinCard":"Print Bin Card","printStockCard":"Print Stock Card","purchasePrice":"Purchase Price","purchasePricePackagingUnit":"Purchase price packaging unit","qty":"Qty","quantities":"Quantities","quantity":"Quantity Threshold","quantityReceived":"Quantity Received","quantitySent":"Quantity Sent","quantityUnit":"Quantity Unit","quantityUom":"Qty UoM","quantityUoM":"Quantity Unit of Measurement(UoM)","rank":"Rank","reason":"Reason","reasonError":"Error loading reasons concepts","reasonLabel":"Please explain the reason:","reasonPlaceholder":"Enter reason here","receivedItems":"Received Items","receivedStock":"Received stock","receiving":"Receiving","references":"References","refresh":"Refresh","reject":"Reject ","rejected":"Rejected","relatedStockRequisitionRequired":"Related stock requisition Required","remarks":"Remarks","removePackagingUnit":"Remove Packaging Unit","removePackagingUnitConfirmation":"Would you really like to remove the packaging unit {{name}} from the stock item?","reorderLevel":"Reorder Level","reorderLevelPackagingUnit":"Reorder level packaging unit","report":"Report","ReportDescription":"List of reports requested by users","reportName":"Report","requested":"Requested","requestedBy":"Requested By","responsiblePerson":"Responsible Person","responsiblePersonError":"Error loading responsible person","return":"Return ","returned":"Returned","role":"Role","roleDescription":"The role will be applicable to only selected stock operations.","save":"Save","savePackagingUnitErrorMessage":"Error saving package unit","savePackagingUnitErrorTitle":"Package Unit","savePackingUnitMessage":"Package Unit saved successfully","savePackingUnitTitle":"Package Unit","saveReferenceTitle":"StockItem Reference","saveStockItemReferenceErrorTitle":"StockItem Reference","saveStockItemReferenceMessage":"Stock Item Reference saved successfully","search":"Search","searchStockItems":"Search stock items","searchStockOperations":"Search stock operations","searchThisList":"Search this list","selectFile":"Select file","SelectOption":"Select an option","selectSourceType":"Select Source Type","selectTags":"Select tag(s)","source":"Source","sourceType":"Source Type","startDate":"Start Date","started":"Started","status":"Status","stockAvailabilityError":"Error loading stock availability","stockIssueError":"StockIssue error","stockItem":"Stock Item","stockItemAdded":"Stock Item Added Successfully","stockItemCategory":"Stock Item Category","stockItemDetails":"Stock Item Details","stockItemEdited":"Stock Item Edited Successfully","stockItemError":"Error loading stock item","stockItems":"Stock Items","stockItemsUploadedSuccessfully":"Stock items uploaded successfully","stockManagement":"Stock Management","stockOperation":"Stock Operations","stockOperationAdded":"Stock operation added successfully","stockOperationEdited":"Stock operation edited successfully","stockOperationError":"Error loading stock operation types","stockOperationErrorDescription":"Details: {{message}}","stockOperationErrorTitle":"Error on saving form","stockoperationItemDeleteError":"Error deleting stock operation item {{item}}","stockoperationItemDeletSuccess":"Stock operation item {{item}} deleted succesfully","stockoperationItems":"Stock operation items","stockOperationItems":"Items","stockOperations":"Stock Operations","stockOperationTrackMovement":"Stock operations to track movement of stock.","stockRuleAddedSuccessfully":"Stock Rule Added Successfully","stockRuleDeletedSuccessfully":"Stock Rule Deleted Successfully","stockRules":"Rules","stockSource":"Stock source","stockSourceAddedSuccessfully":"Stock Source Added Successfully","stockSourceDeletedSuccessfully":"Stock Source Deleted Successfully","stockSourceDestination":"Stock source destination","stockUserScopeDeletedSuccessfully":"Stock User Scope Deleted Successfully","submit":"Submit","submitAndComplete":"Submit/Complete","submitAndDispatch":"Submit/Dispatch","submitForReview":"Submit For Review","submitted":"Submitted","submittingForReview":"Submitting for review","success":"Success","successfullysaved":"You have successfully saved user role scope","tabletOverlay":"Tablet overlay","tags":"Tags","timeTaken":"Time Taken","to":"To","toggleMessage":"Use the toggle to apply this scope to the locations under the selected location.","tradeName":"Trade Name","transactions":"Transactions","type":"Type","unit":"Unit","uom":"UoM","updatePackagingUnitErrorMessage":"Error updating package unit {{name}}","updatePackagingUnitErrorTitle":"Package Unit","updatePackingUnitMessage":"Package Unit {{ name }} updated successfully","updatePackingUnitTitle":"Package Unit","uploadStockItems":"Upload StockItems","user":"User","view":"View","viewAll":"View All","whoIsThePreferredVendor":"Who is the preferred vendor?","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"abbreviation":"Abbreviation","acronymOrCode":"Acronym/Code","action":"Actions","actionFrequency":"Notification Frequency (Minutes)","actions":"Actions","activeFrom":"Active From","ActiveFrom":"Active From ","activeTo":"Active To","addedRule":"Add Rule","addedSource":"Add Source","addItem":"Add stock item","addLocation":"Create new Location","addNewStockRule":"Add New Rule","addNewStockSource":"Add new source","addNewUserRoleScope":"Add new user role scope","addStockItem":"Add Stock Item","addStockOperation":"Add stock operation","addStockRule":"Add stock rule","addUserRole":"Add User role","adminSettings":"Admin settings","alertRole":"Alert Role","all":"All","approve":"Approve","batch":"Batch No","batchInformation":"Batch Information","batchJob":"Batch Job","batchJobErrorMessage":"Error creating batch job","BatchJobErrorTitle":"Batch job","BatchJobSuccess":"Batch job created successfully","batchNo":"Batch No","batchNumber":"Batch Number","batchNumberAlreadyUsed":"Batch number already used","bincard":"Stock Card","by":"By","cancel":"Cancel","cancelled":"Cancelled","category":"Category","checkFilters":"Check the filters above","childLocations":"Child Locations","chooseACategory":"Choose a category","chooseADestination":"Choose a destination","chooseAlertRole":"Choose an Alert Role","chooseALocation":"Choose a location","chooseAnItem":"Choose an item","chooseAPackagingUoM":"Choose a packaging UoM","chooseAReason":"Choose a reason","chooseARole":"Choose a role","chooseASource":"Choose a source","chooseLocation":"Choose the location","chooseMailRole":"Choose a Mail Role","chooseQuantityUnit":"Choose the Unit of Quantity","chooseSourceType":"Choose a source type","chooseVendor":"Choose vendor","clearSearch":"Clear search input","code":"Code","comingSoonUnderDev":"Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings.","commonName":"Common Name","complete":"Complete","completed":"Completed","createLocation":"Create Location","date":"Date","dateRequested":"Date Requested","defaultStockOperationsPackagingUnit":"Default stock operations packaging unit","defaultStockOperationsUoMName":"Bulk Packaging","delete":"Delete","deleteConfirmationText":"Are you sure you want to delete this User Scope? This action can\'t be undone.","deletePackagingUnitMesaage":"Stock Item packing unit deleted Successfully","deletePackagingUnitTitle":"Delete StockItem reference","deletePackingUnitErrorTitle":"Error Deleting a stock item packing unit","deleteRule":"Delete Rule","deleteRuleConfirmationText":"Are you sure you want to delete this stock rule? This action can\'t be undone.","deleteSource":"Delete Source","deleteStock":"Delete Stock source","deleteStockItemReferenceMesaage":"StockItem reference deleted Successfully","deleteStockItemReferenceTitle":"Error Deleting a stockitem reference","deleteStockRule":"Delete Stock Rule","deleteStockUserScope":"Delete Stock User Scope","deleteUserScope":"Delete Stock User Scope","deletingRule":"Delete Rule","deletingSource":"Delete Source","deletingstockUserScope":"Delete Stock User Scope","destination":"destination","details":"Details","discard":"Discard","dispatch":"Dispatch","dispatched":"Dispatched","dispatching":"Dispatching","dispensingUnit":"Dispensing Unit","dispensingUnitHolder":"Choose a dispensing unit","dispensingUnitName":"Dispensing UoM","dispensingUnitOfMeasurement":"Dispensing packaging unit of measurement","disposedStock":"Disposed stock","doesThisTransactionRequireApproval":"Does the transaction require approval ?","drug":"Drug","editOperationTitle":"Edit {{operationType}}","editStockItem":"Edit Stock Item","editStockOperation":"Edit stock operation","editStockRule":"Edit Stock Rule","editStockSource":"Edit stock source","editUserScope":"Edit user scope role","enabled":"Enabled","endDate":"End Date","ended":"Ended","enterRemarks":"Enter remarks","error":"Error","errorAddingRule":"Error adding a rule","errorAddingSource":"Error adding a source","errorAddingStockItem":"Error adding a stock Item","errorCreatingForm":"Error creating location","errorDeletingRule":"Error deleting a rule","errorDeletingSource":"Error deleting a source","errorDeletingUserScope":"Error deleting a user scope","errorEditingStockItem":"Error editing a stock Item","errorFetchingStockSourceTypes":"Error fetching stock source types","errorLoadingStockOperation":"Error loading stock operation","errorLoadingStockOperationTypes":"Error loading stock operation types","errorPrintingStockOperation":"Error printing stock operation","errorSavingForm":"Error on saving form","errorSavingUserRoleScope":"Error Saving user role scope","errorStockMetric":"Error fetching stock metrics","errorUploadingItems":"An error occurred uploading stock items","evaluationFrequency":"Frequency Check (Minutes)","executionState":"Execution State","exitMessage":"Message","expirationNotice":"Expiration Notice (days)","expired":"Expired","expiredStock":"Expired stock","expires":"Expires","expiriation":"Expiration Date","expiringStock":"Expiring stock","expiry":"Expiry","expiryNoticeDays":"Expiration Notice (days)","filter":"Filter...","filterByLocation":"Filter by Location","findItems":"Find your items","formCreated":"Add Location","from":"From","fulfillment":"Fulfillment","fullFulfillment":"Full Fulfillment","fullName":"Full Name","generatedMessage":"The card has been electronically generated and is a valid document. It was created by {{userName}} on {{date}}","genericName":"Generic Name","hasExpiration":"Does the item expire?","home":"Home","import":"Import","importStockItems":"Import Stock Items","in6Months":"In 6 months","includeChildLocations":"Include Child Locations","inventoryAlerts":"Inventory alerts","inventoryBy":"Inventory by","inventoryGroupBy":"Inventory group by","issuedStock":"Issued stock","issueStock":"Issue Stock ","issuing":"Issuing","item":"Item","itemAlreadyExists":"Item already exits","itemDetails":"Item Details","itemname":"Item Name","itemsAboveMax":"Items Above Max","itemsBelowMin":"Items Below Min","itemType":"Item Type","leastMoving":"Least Moving","limit":"Limit","loading":"Loading...","loading StockoperationLinks":"Loading stock operation links","loadingData":"Loading data...","loadingOperationActions":"Loading stock operation actions","loadingOperationTypes":"Loading operation types","location":"Location(s)","locationAndBatchno":"Location and Batch","locationAndStockItem":"Location and Stock Item","locationCreatedSuccessfully":"Location {{locationName}} was created successfully.","locationPlaceholder":"Add a location","locations":"Locations","mailRole":"Mail Role","manageStock":"Manage Stock","maxReorderLevelRatio":"Max reorder level ratio","mostMoving":"Most Moving","name":"Name","newOperationTitle":"New: {{operationName}}","newReport":"New Report","next":"Next","no":"No","noCommonNameAvailable":"No common name available","noData":"No data to display","noDrugNameAvailable":"No drug name available","noExpiredStockDataAvailable":"No expired stock data available.","noInventoryAlerts":"No inventory alerts to display","noIssuedStock":"No issued stock to display","noIssuedStockDataAvailable":"No issued stock data available.","noneFulfillment":"Non Fulfillment","noOperationsToDisplay":"No Stock Operations to display","noPrivilagesTitle":"","noReceivedStock":"No received stock to display","noReceivedStockDataAvailable":"No received stock data available.","noReportsToDisplay":"No Stock reports to display","noRulesToDisplay":"No Stock rules to display","noSourcesToDisplay":"No Stock sources to display","noStockItemsToDisplay":"No stock items to display","noStockUserRoleScopesToDisplay":"No stock user role scopes to display","notes":"Please explain the reason:","notSet":"Not Set","noViewPrivilegesDescription":"Description: {{description}}","number":"Number","onlyCsvFilesAt2mbOrLess":"Only .csv files at 2MB or less","operationDate":"Operation Date","operationModalTitle":"{{title}} Operation","operationNumber":"Operation Number","operationSuccessful":"You have successfully {{title}} operation","operationSuccessTitle":"{{title}} Operation","orderLevel":"Reorder level","other":"Other","outOfStock":"Out of stock","packagingUnit":"Packaging Unit","packagingUnits":"Packaging Units","packagingUomError":"Error loading stockItemPackagingUOM name","packSize":"Pack Size","panelDescription":"To access stock management features, users must have assigned roles specifying location and stock operation type scopes.","parameters":"Parameters","partialFulfillment":"Partial Fulfillment","partieserror":"Error launching base operation details form","patients":"Patients","permanent":"Permanent","pleaseFillField":"{{message}}","pleaseSpecify":"Please Specify","poorQuality":"Poor Quality","previous":"Previous","print":"Print","printbincard":"Print Stock Card","printBinCard":"Print Bin Card","printStockCard":"Print Stock Card","purchasePrice":"Purchase Price","purchasePricePackagingUnit":"Purchase price packaging unit","qty":"Qty","quantities":"Quantities","quantity":"Quantity Threshold","quantityReceived":"Quantity Received","quantitySent":"Quantity Sent","quantityUnit":"Quantity Unit","quantityUom":"Qty UoM","quantityUoM":"Quantity Unit of Measurement(UoM)","rank":"Rank","reason":"Reason","reasonError":"Error loading reasons concepts","reasonLabel":"Please explain the reason:","reasonPlaceholder":"Enter reason here","receivedItems":"Received Items","receivedStock":"Received stock","receiving":"Receiving","references":"References","refresh":"Refresh","reject":"Reject ","rejected":"Rejected","relatedStockRequisitionRequired":"Related stock requisition Required","remarks":"Remarks","removePackagingUnit":"Remove Packaging Unit","removePackagingUnitConfirmation":"Would you really like to remove the packaging unit {{name}} from the stock item?","reorderLevel":"Reorder Level","reorderLevelPackagingUnit":"Reorder level packaging unit","report":"Report","ReportDescription":"List of reports requested by users","reportName":"Report","requested":"Requested","requestedBy":"Requested By","responsiblePerson":"Responsible Person","responsiblePersonError":"Error loading responsible person","return":"Return ","returned":"Returned","role":"Role","roleDescription":"The role will be applicable to only selected stock operations.","save":"Save","savePackagingUnitErrorMessage":"Error saving package unit","savePackagingUnitErrorTitle":"Package Unit","savePackingUnitMessage":"Package Unit saved successfully","savePackingUnitTitle":"Package Unit","saveReferenceTitle":"StockItem Reference","saveStockItemReferenceErrorTitle":"StockItem Reference","saveStockItemReferenceMessage":"Stock Item Reference saved successfully","search":"Search","searchStockItems":"Search stock items","searchStockOperations":"Search stock operations","searchThisList":"Search this list","selectFile":"Select file","SelectOption":"Select an option","selectSourceType":"Select Source Type","selectTags":"Select tag(s)","source":"Source","sourceType":"Source Type","startDate":"Start Date","started":"Started","status":"Status","stockAvailabilityError":"Error loading stock availability","stockIssueError":"StockIssue error","stockItem":"Stock Item","stockItemAdded":"Stock Item Added Successfully","stockItemCategory":"Stock Item Category","stockItemDetails":"Stock Item Details","stockItemEdited":"Stock Item Edited Successfully","stockItemError":"Error loading stock item","stockItems":"Stock Items","stockItemsUploadedSuccessfully":"Stock items uploaded successfully","stockManagement":"Stock Management","stockOperation":"Stock Operations","stockOperationAdded":"Stock operation added successfully","stockOperationEdited":"Stock operation edited successfully","stockOperationError":"Error loading stock operation types","stockOperationErrorDescription":"Details: {{message}}","stockOperationErrorTitle":"Error on saving form","stockoperationItemDeleteError":"Error deleting stock operation item {{item}}","stockoperationItemDeletSuccess":"Stock operation item {{item}} deleted succesfully","stockoperationItems":"Stock operation items","stockOperationItems":"Items","stockOperations":"Stock Operations","stockOperationTrackMovement":"Stock operations to track movement of stock.","stockRuleAddedSuccessfully":"Stock Rule Added Successfully","stockRuleDeletedSuccessfully":"Stock Rule Deleted Successfully","stockRules":"Rules","stockSource":"Stock source","stockSourceAddedSuccessfully":"Stock Source Added Successfully","stockSourceDeletedSuccessfully":"Stock Source Deleted Successfully","stockSourceDestination":"Stock source destination","stockUserScopeDeletedSuccessfully":"Stock User Scope Deleted Successfully","submit":"Submit","submitAndComplete":"Submit/Complete","submitAndDispatch":"Submit/Dispatch","submitForReview":"Submit For Review","submitted":"Submitted","submittingForReview":"Submitting for review","success":"Success","successfullysaved":"You have successfully saved user role scope","tabletOverlay":"Tablet overlay","tags":"Tags","timeTaken":"Time Taken","to":"To","toggleMessage":"Use the toggle to apply this scope to the locations under the selected location.","tradeName":"Trade Name","transactions":"Transactions","type":"Type","unit":"Unit","uom":"UoM","updatePackagingUnitErrorMessage":"Error updating package unit {{name}}","updatePackagingUnitErrorTitle":"Package Unit","updatePackingUnitMessage":"Package Unit {{ name }} updated successfully","updatePackingUnitTitle":"Package Unit","uploadStockItems":"Upload StockItems","user":"User","view":"View","viewAll":"View All","whoIsThePreferredVendor":"Who is the preferred vendor?","yes":"Yes"}')}}]);
package/dist/93.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[93],{7737:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(1364),i=t.n(a),o=t(1682),s=t.n(o)()(i());s.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-stock-management__add-stock-sources__sectionTitle___v4524{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.75rem}.-esm-stock-management__add-stock-sources__modalBody___tgvKI{padding-bottom:1rem}.-esm-stock-management__add-stock-sources__formContainer___yr7io{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.-esm-stock-management__add-stock-sources__button___lqmDm{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-stock-management__add-stock-sources__buttonSet___mVNPR{display:flex;justify-content:space-between;width:100%}.-esm-stock-management__add-stock-sources__body___xAKRV{padding:1rem}.-esm-stock-management__add-stock-sources__tablet___tLyer{padding:1.5rem 1rem;background-color:#fff}.-esm-stock-management__add-stock-sources__desktop___mgoVe{padding:0}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/stock-sources/add-stock-sources/add-stock-sources.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,gEC81BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD51BF,aDCQ,CAAA,oBGmBG,CFhBb,6DACE,mBEoBW,CFjBb,iEACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,UAAA,CACA,WAAA,CAGF,0DACE,WEiCW,CFhCX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,6DACE,YAAA,CACA,6BAAA,CACA,UAAA,CAGF,wDACE,YAAA,CAGF,0DACE,mBAAA,CACA,qBAAA,CAGF,2DACE,SAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.sectionTitle {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-04;\n}\n\n.modalBody {\n padding-bottom: layout.$spacing-05;\n}\n\n.formContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 100%;\n height: 100%;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.buttonSet {\n display: flex;\n justify-content: space-between;\n width: 100%;\n}\n\n.body {\n padding: 1rem;\n}\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: white;\n}\n\n.desktop {\n padding: 0;\n}\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// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\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={sectionTitle:"-esm-stock-management__add-stock-sources__sectionTitle___v4524",modalBody:"-esm-stock-management__add-stock-sources__modalBody___tgvKI",formContainer:"-esm-stock-management__add-stock-sources__formContainer___yr7io",button:"-esm-stock-management__add-stock-sources__button___lqmDm",buttonSet:"-esm-stock-management__add-stock-sources__buttonSet___mVNPR",body:"-esm-stock-management__add-stock-sources__body___xAKRV",tablet:"-esm-stock-management__add-stock-sources__tablet___tLyer",desktop:"-esm-stock-management__add-stock-sources__desktop___mgoVe"};const l=s},9093:(e,n,t)=>{t.r(n),t.d(n,{default:()=>N});var a=t(1672),i=t.n(a),o=t(3967),s=t.n(o),l=t(5787),p=t(3397),r=t(1409),c=t(3775),u=t(3889),d=t(8510),g=t(954),f=t(7410),y=t.n(f),h=t(4766),b=t.n(h),m=t(1991),$=t.n(m),k=t(3702),v=t.n(k),w=t(2434),x=t.n(w),A=t(1422),_=t.n(A),z=t(7737),C={};C.styleTagTransform=_(),C.setAttributes=v(),C.insert=$().bind(null,"head"),C.domAPI=b(),C.insertStyleElement=x(),y()(z.Z,C);const M=z.Z&&z.Z.locals?z.Z.locals:void 0;function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){S(e,n,t[n])}))}return e}function O(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}const N=function(e){var n,t,o,f,y=e.model,h=e.closeWorkspace,b=(0,p.useTranslation)().t,m="tablet"===(0,c.useLayoutType)(),$=(0,c.useConfig)().stockSourceTypeUUID,k=(0,u.K2)($).items,v=(o=(0,a.useState)(E({},y)),f=2,function(e){if(Array.isArray(e))return e}(o)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],s=!0,l=!1;try{for(t=t.call(e);!(s=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);s=!0);}catch(e){l=!0,i=e}finally{try{s||null==t.return||t.return()}finally{if(l)throw i}}return o}}(o,f)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(o,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=v[0],x=v[1],A=(0,a.useCallback)((function(e){e.preventDefault(),y&&(w.uuid=y.uuid),(0,d.jd)(w).then((function(){(0,c.showSnackbar)({isLowContrast:!0,title:b("addedSource","Add Source"),kind:"success",subtitle:b("stockSourceAddedSuccessfully","Stock Source Added Successfully"),timeoutInMs:5e3}),(0,g.d)("".concat(c.restBaseUrl,"/stockmanagement/stocksource")),h()}),(function(e){(0,c.showSnackbar)({title:b("errorAddingSource","Error adding a source"),kind:"error",isLowContrast:!0,subtitle:null==e?void 0:e.message}),h()})).catch()}),[w,y,b,h]);return i().createElement("div",{className:M.formContainer},i().createElement("div",{className:M.body},i().createElement(l.Kqy,{gap:5},i().createElement(l.oil,{id:"fullname",labelText:b("fullName","Full name"),onChange:function(e){y&&(y.name=e.target.value),x(O(E({},w),{name:e.target.value}))},placeholder:"e.g National Medical Stores",size:"md",type:"text",value:null==y?void 0:y.name}),i().createElement(l.oil,{id:"acronym",labelText:b("acronymOrCode","Acronym/Code"),onChange:function(e){y&&(y.acronym=e.target.value),x(O(E({},w),{acronym:e.target.value}))},placeholder:"e.g NMS",size:"md",type:"text",value:null==y?void 0:y.acronym}),i().createElement(l.PhF,{className:"select-field",id:"sourceType",labelText:b("sourceType","Source Type"),name:"sourceType",onChange:function(e){var n=null==k?void 0:k.answers.find((function(n){return n.uuid===e.target.value}));x(O(E({},w),{sourceType:n}))},value:(null==w?void 0:w.sourceType)?w.sourceType.uuid:""},i().createElement(l.QlF,{disabled:!0,hidden:!0,value:"",text:b("chooseSourceType","Choose a source type")}),null==k||null===(n=k.answers)||void 0===n?void 0:n.map((function(e){return i().createElement(l.QlF,{key:e.uuid,value:e.uuid,text:e.display})}))))),i().createElement(l.uVA,{className:s()(M.buttonSet,(t={},S(t,M.tablet,m),S(t,M.desktop,!m),t))},i().createElement(l.zxk,{kind:"secondary",onClick:h,className:M.button},(0,c.getCoreTranslation)("cancel")),i().createElement(l.zxk,{type:"submit",className:M.button,onClick:A,kind:"primary",renderIcon:r.vc},(0,c.getCoreTranslation)("save"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[93],{7737:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(1364),i=t.n(a),o=t(1682),s=t.n(o)()(i());s.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-stock-management__add-stock-sources__sectionTitle___v4524{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.75rem}.-esm-stock-management__add-stock-sources__modalBody___tgvKI{padding-bottom:1rem}.-esm-stock-management__add-stock-sources__container___dzW\\+R{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-stock-management__add-stock-sources__button___lqmDm{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-stock-management__add-stock-sources__buttonSet___mVNPR{display:flex;justify-content:space-between;width:100%}.-esm-stock-management__add-stock-sources__body___xAKRV{padding:1rem}.-esm-stock-management__add-stock-sources__form___MPYNu{margin:1rem}.-esm-stock-management__add-stock-sources__tablet___tLyer{padding:1.5rem 1rem;background-color:#fff}.-esm-stock-management__add-stock-sources__desktop___mgoVe{padding:0}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/stock-sources/add-stock-sources/add-stock-sources.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,gEC81BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD51BF,aDCQ,CAAA,oBGmBG,CFhBb,6DACE,mBEoBW,CFjBb,8DACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,0DACE,WEkCW,CFjCX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,6DACE,YAAA,CACA,6BAAA,CACA,UAAA,CAGF,wDACE,YAAA,CAGF,wDACE,WETW,CFWb,0DACE,mBAAA,CACA,qBAAA,CAGF,2DACE,SAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.sectionTitle {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-04;\n}\n\n.modalBody {\n padding-bottom: layout.$spacing-05;\n}\n\n.container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.buttonSet {\n display: flex;\n justify-content: space-between;\n width: 100%;\n}\n\n.body {\n padding: 1rem;\n}\n\n.form {\n margin: layout.$spacing-05;\n}\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: white;\n}\n\n.desktop {\n padding: 0;\n}\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// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\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={sectionTitle:"-esm-stock-management__add-stock-sources__sectionTitle___v4524",modalBody:"-esm-stock-management__add-stock-sources__modalBody___tgvKI",container:"-esm-stock-management__add-stock-sources__container___dzW+R",button:"-esm-stock-management__add-stock-sources__button___lqmDm",buttonSet:"-esm-stock-management__add-stock-sources__buttonSet___mVNPR",body:"-esm-stock-management__add-stock-sources__body___xAKRV",form:"-esm-stock-management__add-stock-sources__form___MPYNu",tablet:"-esm-stock-management__add-stock-sources__tablet___tLyer",desktop:"-esm-stock-management__add-stock-sources__desktop___mgoVe"};const l=s},9093:(e,n,t)=>{t.r(n),t.d(n,{default:()=>O});var a=t(5787),i=t(1672),o=t.n(i),s=t(3967),l=t.n(s),r=t(3397),p=t(1409),c=t(3775),u=t(3889),d=t(8510),g=t(954),f=t(7410),y=t.n(f),h=t(4766),b=t.n(h),m=t(1991),$=t.n(m),k=t(3702),v=t.n(k),w=t(2434),x=t.n(w),A=t(1422),_=t.n(A),z=t(7737),C={};C.styleTagTransform=_(),C.setAttributes=v(),C.insert=$().bind(null,"head"),C.domAPI=b(),C.insertStyleElement=x(),y()(z.Z,C);const M=z.Z&&z.Z.locals?z.Z.locals:void 0;function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){S(e,n,t[n])}))}return e}function N(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}const O=function(e){var n,t,s,f,y=e.model,h=e.closeWorkspace,b=(0,r.useTranslation)().t,m="tablet"===(0,c.useLayoutType)(),$=(0,c.useConfig)().stockSourceTypeUUID,k=(0,u.K2)($).items,v=(s=(0,i.useState)(E({},y)),f=2,function(e){if(Array.isArray(e))return e}(s)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],s=!0,l=!1;try{for(t=t.call(e);!(s=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);s=!0);}catch(e){l=!0,i=e}finally{try{s||null==t.return||t.return()}finally{if(l)throw i}}return o}}(s,f)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(s,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=v[0],x=v[1],A=(0,i.useCallback)((function(e){e.preventDefault(),y&&(w.uuid=y.uuid),(0,d.jd)(w).then((function(){(0,c.showSnackbar)({isLowContrast:!0,title:b("addedSource","Add Source"),kind:"success",subtitle:b("stockSourceAddedSuccessfully","Stock Source Added Successfully"),timeoutInMs:5e3}),(0,g.d)("".concat(c.restBaseUrl,"/stockmanagement/stocksource")),h()}),(function(e){(0,c.showSnackbar)({title:b("errorAddingSource","Error adding a source"),kind:"error",isLowContrast:!0,subtitle:null==e?void 0:e.message}),h()})).catch()}),[w,y,b,h]);return o().createElement(a.l09,{className:M.container},o().createElement(a.Kqy,{className:M.form,gap:5},o().createElement(a.cwH,{legendText:""},o().createElement(a.oil,{id:"fullname",labelText:b("fullName","Full name"),onChange:function(e){y&&(y.name=e.target.value),x(N(E({},w),{name:e.target.value}))},placeholder:"e.g National Medical Stores",size:"md",type:"text",value:null==y?void 0:y.name})),o().createElement(a.cwH,{legendText:""},o().createElement(a.oil,{id:"acronym",labelText:b("acronymOrCode","Acronym/Code"),onChange:function(e){y&&(y.acronym=e.target.value),x(N(E({},w),{acronym:e.target.value}))},placeholder:"e.g NMS",size:"md",type:"text",value:null==y?void 0:y.acronym})),o().createElement(a.PhF,{name:"sourceType",className:"select-field",labelText:b("sourceType","Source Type"),id:"sourceType",value:(null==w?void 0:w.sourceType)?w.sourceType.uuid:"",onChange:function(e){var n=null==k?void 0:k.answers.find((function(n){return n.uuid===e.target.value}));x(N(E({},w),{sourceType:n}))}},o().createElement(a.QlF,{disabled:!0,hidden:!0,value:"",text:b("chooseSourceType","Choose a source type")}),null==k||null===(n=k.answers)||void 0===n?void 0:n.map((function(e){return o().createElement(a.QlF,{key:e.uuid,value:e.uuid,text:e.display})})))),o().createElement(a.uVA,{className:l()(M.buttonSet,(t={},S(t,M.tablet,m),S(t,M.desktop,!m),t))},o().createElement(a.zxk,{kind:"secondary",onClick:h,className:M.button},(0,c.getCoreTranslation)("cancel")),o().createElement(a.zxk,{type:"submit",className:M.button,onClick:A,kind:"primary",renderIcon:p.vc},(0,c.getCoreTranslation)("save"))))}}}]);
package/dist/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J,IAC3C,EAmEUN,OAAOjC,aAAAA,EAAAA,EAAW2C,YAAa3C,EAAU2C,WAAWrC,KAAO,IAE3D,kBAACsC,EAAAA,IAAUA,CAACC,UAAAA,EAASC,QAAAA,EAAOb,MAAM,GAAGc,KAAMtD,EAAE,mBAAoB,0BAChEJ,SAAc,QAAdA,EAAAA,EAAOmD,eAAPnD,IAAAA,OAAAA,EAAAA,EAAgB2D,KAAI,SAACL,G,OACpB,kBAACC,EAAAA,IAAUA,CAACK,IAAKN,EAAWrC,KAAM2B,MAAOU,EAAWrC,KAAMyC,KAAMJ,EAAWO,S,OAKnF,kBAACC,EAAAA,IAASA,CACR9B,UAAW+B,IAAW9B,EAAO+B,WAAW,KACtC,EADsC,EACrC/B,EAAOgC,OAAS5D,GACjB,EAFsC,EAErC4B,EAAOiC,SAAW7D,GAFmB,KAKxC,kBAAC8D,EAAAA,IAAMA,CAAC5C,KAAK,YAAY6C,QAASlE,EAAgB8B,UAAWC,EAAOoC,SACjEC,EAAAA,EAAAA,oBAAmB,WAEtB,kBAACH,EAAAA,IAAMA,CAACpB,KAAK,SAASf,UAAWC,EAAOoC,OAAQD,QAASvD,EAAYU,KAAK,UAAUgD,WAAYC,EAAAA,KAC7FF,EAAAA,EAAAA,oBAAmB,UAK9B,C","sources":["webpack://@openmrs/esm-stock-management-app/./src/stock-sources/add-stock-sources/add-stock-sources.scss","webpack://@openmrs/esm-stock-management-app/./src/stock-sources/add-stock-sources/add-stock-sources.scss?b4a2","webpack://@openmrs/esm-stock-management-app/./src/stock-sources/add-stock-sources/add-stock-sources.workspace.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","items","model","closeWorkspace","useTranslation","t","isTablet","useLayoutType","useConfig","stockSourceTypeUUID","useConcept","useState","formModel","setFormModel","handleSave","useCallback","event","preventDefault","uuid","createOrUpdateStockSource","then","showSnackbar","isLowContrast","title","kind","subtitle","timeoutInMs","handleMutate","restBaseUrl","error","message","catch","div","className","styles","formContainer","body","Stack","gap","TextInput","labelText","onChange","evt","name","target","value","placeholder","size","type","acronym","Select","selectedSourceType","answers","find","x","sourceType","SelectItem","disabled","hidden","text","map","key","display","ButtonSet","classNames","buttonSet","tablet","desktop","Button","onClick","button","getCoreTranslation","renderIcon","Save"],"sourceRoot":""}
1
+ {"version":3,"file":"93.js","mappings":"kNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,m7CAAo7C,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,kEAAkE,yEAAyE,0DAA0D,wEAAwE,MAAQ,GAAG,SAAW,mZAAmZ,eAAiB,CAAC,g/DAAg/D,+zBAA+zB,u8uBAAu8uB,25DAA25D,WAAa,MAE918BH,EAAwBI,OAAS,CAChC,aAAgB,iEAChB,UAAa,8DACb,UAAa,8DACb,OAAU,2DACV,UAAa,8DACb,KAAQ,yDACR,KAAQ,yDACR,OAAU,2DACV,QAAW,6DAEZ,S,0RCPIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,E,25BCoHnE,QAtH+D,Y,IAgGpDC,EAMqC,E,IAtGkBC,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,eACjE,GAAQC,EAAAA,EAAAA,kBAANC,EACFC,EAA+B,YAApBC,EAAAA,EAAAA,iBACX,GAA0BC,EAAAA,EAAAA,aAAxBC,oBAGF,GAAYC,EAAAA,EAAAA,IAAWD,GAArBR,MAE0BU,G,GAAAA,EAAAA,EAAAA,UAAsB,KAAKT,I,EAAAA,E,+zBAAtDU,EAA2BD,EAAAA,GAAhBE,EAAgBF,EAAAA,GAiB5BG,GAAaC,EAAAA,EAAAA,cACjB,SA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,WAGlB,kBAACC,EAAAA,IAAMA,CACLP,KAAK,aACLZ,UAAU,eACVS,UAAWrC,EAAE,aAAc,eAC3Bb,GAAG,aACHuD,OAAOnC,aAAAA,EAAAA,EAAWyC,YAAazC,EAAUyC,WAAWnC,KAAO,GAC3DyB,SAzEmB,SAACC,GAC1B,IAAMU,EAAqBrD,aAAAA,EAAAA,EAAOsD,QAAQC,MAAK,SAACC,G,OAAMA,EAAEvC,OAAS0B,EAAIE,OAAOC,K,IAC5ElC,EAAa,OAAKD,GAAAA,CAAWyC,WAAYC,IAC3C,GAwEQ,kBAACI,EAAAA,IAAUA,CAACC,UAAAA,EAASC,QAAAA,EAAOb,MAAM,GAAGc,KAAMxD,EAAE,mBAAoB,0BAChEJ,SAAc,QAAdA,EAAAA,EAAOsD,eAAPtD,IAAAA,OAAAA,EAAAA,EAAgB6D,KAAI,SAACT,G,OACpB,kBAACK,EAAAA,IAAUA,CAACK,IAAKV,EAAWnC,KAAM6B,MAAOM,EAAWnC,KAAM2C,KAAMR,EAAWW,S,MAIjF,kBAACC,EAAAA,IAASA,CACRhC,UAAWiC,IAAWhC,EAAOiC,WAAW,KACtC,EADsC,EACrCjC,EAAOkC,OAAS9D,GACjB,EAFsC,EAErC4B,EAAOmC,SAAW/D,GAFmB,KAKxC,kBAACgE,EAAAA,IAAMA,CAAC9C,KAAK,YAAY+C,QAASpE,EAAgB8B,UAAWC,EAAOsC,SACjEC,EAAAA,EAAAA,oBAAmB,WAEtB,kBAACH,EAAAA,IAAMA,CAACpB,KAAK,SAASjB,UAAWC,EAAOsC,OAAQD,QAASzD,EAAYU,KAAK,UAAUkD,WAAYC,EAAAA,KAC7FF,EAAAA,EAAAA,oBAAmB,UAK9B,C","sources":["webpack://@openmrs/esm-stock-management-app/./src/stock-sources/add-stock-sources/add-stock-sources.scss","webpack://@openmrs/esm-stock-management-app/./src/stock-sources/add-stock-sources/add-stock-sources.scss?b4a2","webpack://@openmrs/esm-stock-management-app/./src/stock-sources/add-stock-sources/add-stock-sources.workspace.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","items","model","closeWorkspace","useTranslation","t","isTablet","useLayoutType","useConfig","stockSourceTypeUUID","useConcept","useState","formModel","setFormModel","handleSave","useCallback","event","preventDefault","uuid","createOrUpdateStockSource","then","showSnackbar","isLowContrast","title","kind","subtitle","timeoutInMs","handleMutate","restBaseUrl","error","message","catch","Form","className","styles","container","Stack","form","gap","FormGroup","legendText","TextInput","labelText","onChange","evt","name","target","value","placeholder","size","type","acronym","Select","sourceType","selectedSourceType","answers","find","x","SelectItem","disabled","hidden","text","map","key","display","ButtonSet","classNames","buttonSet","tablet","desktop","Button","onClick","button","getCoreTranslation","renderIcon","Save"],"sourceRoot":""}
@@ -129,9 +129,9 @@
129
129
  "initial": false,
130
130
  "entry": false,
131
131
  "recorded": false,
132
- "size": 42642,
132
+ "size": 42903,
133
133
  "sizes": {
134
- "javascript": 42642
134
+ "javascript": 42903
135
135
  },
136
136
  "names": [],
137
137
  "idHints": [],
@@ -145,7 +145,7 @@
145
145
  "auxiliaryFiles": [
146
146
  "93.js.map"
147
147
  ],
148
- "hash": "59300aec830930b9",
148
+ "hash": "b2f2b6ba43b6156b",
149
149
  "childrenByOrder": {}
150
150
  },
151
151
  {
@@ -418,9 +418,9 @@
418
418
  "initial": false,
419
419
  "entry": false,
420
420
  "recorded": false,
421
- "size": 61369,
421
+ "size": 61819,
422
422
  "sizes": {
423
- "javascript": 61369
423
+ "javascript": 61819
424
424
  },
425
425
  "names": [],
426
426
  "idHints": [],
@@ -434,7 +434,7 @@
434
434
  "auxiliaryFiles": [
435
435
  "467.js.map"
436
436
  ],
437
- "hash": "eda382e4393e44d0",
437
+ "hash": "ac60b8c10416b03b",
438
438
  "childrenByOrder": {}
439
439
  },
440
440
  {
@@ -466,9 +466,9 @@
466
466
  "initial": false,
467
467
  "entry": false,
468
468
  "recorded": false,
469
- "size": 13639,
469
+ "size": 13638,
470
470
  "sizes": {
471
- "javascript": 13639
471
+ "javascript": 13638
472
472
  },
473
473
  "names": [],
474
474
  "idHints": [],
@@ -480,7 +480,7 @@
480
480
  "574.js"
481
481
  ],
482
482
  "auxiliaryFiles": [],
483
- "hash": "6dc63a99d2c7bbd8",
483
+ "hash": "aa047aacef29f988",
484
484
  "childrenByOrder": {}
485
485
  },
486
486
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-nav-menu","slot":"stock-sidebar-slot","component":"stockNavMenu","online":true,"offline":true},{"name":"overview-db-link","slot":"stock-page-dashboard-slot","component":"stockOverviewLink","meta":{"name":"overview","slot":"overview-dashboard-slot","title":"overview"},"order":0,"online":true,"offline":true},{"name":"stock-overview-db","slot":"overview-dashboard-slot","component":"stockOverview"},{"name":"operations-db-link","slot":"stock-page-dashboard-slot","component":"stockOperationsLink","meta":{"name":"operations","slot":"operations-dashboard-slot","title":"operations"},"order":2,"online":true,"offline":true},{"name":"stock-operations-db","slot":"operations-dashboard-slot","component":"stockOperations"},{"name":"items-db-link","slot":"stock-page-dashboard-slot","component":"stockItemsLink","meta":{"name":"items","slot":"items-dashboard-slot","title":"items"},"order":1,"online":true,"offline":true},{"name":"stock-items-db","slot":"items-dashboard-slot","component":"stockItems"},{"name":"user-scopes-db-link","slot":"stock-page-dashboard-slot","component":"stockUserScopesLink","meta":{"name":"user-scopes","slot":"user-scopes-dashboard-slot","title":"user-scopes"},"order":3,"online":true,"offline":true},{"name":"stock-user-scopes-db","slot":"user-scopes-dashboard-slot","component":"stockUserScopes"},{"name":"sources-db-link","slot":"stock-page-dashboard-slot","component":"stockSourcesLink","meta":{"name":"sources","slot":"sources-dashboard-slot","title":"Sources"},"order":2,"online":true,"offline":true},{"name":"stock-sources-db","slot":"sources-dashboard-slot","component":"stockSources"},{"name":"reports-db-link","slot":"stock-page-dashboard-slot","component":"stockReportsLink","meta":{"name":"reports","slot":"reports-dashboard-slot","title":"Reports"},"order":5,"online":true,"offline":true},{"name":"stock-reports-db","slot":"reports-dashboard-slot","component":"stockReports"},{"name":"settings-db-link","slot":"stock-page-dashboard-slot","component":"stockSettingsLink","meta":{"name":"settings","slot":"settings-dashboard-slot","title":"Settings"},"order":6,"online":true,"offline":true},{"name":"stock-settings-db","slot":"settings-dashboard-slot","component":"stockSettings"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"modals":[{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"expired-stock-modal","component":"expiredStockModal"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsModal"},{"name":"receiving-stock-modal","component":"receivingStockModal"},{"name":"stock-operation-dialog","component":"stockOperationModal"},{"name":"transactions-print-bincard-preview-modal","component":"transactionBincardPrintPreviewModal"},{"name":"transactions-print-stockcard-preview-modal","component":"transactionStockcardPrintPreviewModal"}],"workspaces":[{"name":"stock-operation-form-workspace","component":"stockOperationFormWorkspace","title":"Stock Operation","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-item-rules-form-workspace","component":"stockItemRulesFormWorkspace","title":"Stock Item Rules","type":"form"},{"name":"stock-item-form-workspace","component":"stockItemFormWorkspace","title":"Stock Items","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-sources-form-workspace","component":"stockSourcesFormWorkspace","title":"Stock Sources","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-location-form-workspace","component":"stockLocationsFormWorkspace","title":"Stock Locations","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-user-role-scopes-form-workspace","component":"stockUserScopesFormWorkspace","title":"User Role Scopes","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-reports-form-workspace","component":"stockReportsFormWorkspace","title":"Reports","type":"form","canMaximize":true,"width":"extra-wide"}],"pages":[{"component":"root","route":"stock-management"}],"version":"3.0.1-pre.868"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-nav-menu","slot":"stock-sidebar-slot","component":"stockNavMenu","online":true,"offline":true},{"name":"overview-db-link","slot":"stock-page-dashboard-slot","component":"stockOverviewLink","meta":{"name":"overview","slot":"overview-dashboard-slot","title":"overview"},"order":0,"online":true,"offline":true},{"name":"stock-overview-db","slot":"overview-dashboard-slot","component":"stockOverview"},{"name":"operations-db-link","slot":"stock-page-dashboard-slot","component":"stockOperationsLink","meta":{"name":"operations","slot":"operations-dashboard-slot","title":"operations"},"order":2,"online":true,"offline":true},{"name":"stock-operations-db","slot":"operations-dashboard-slot","component":"stockOperations"},{"name":"items-db-link","slot":"stock-page-dashboard-slot","component":"stockItemsLink","meta":{"name":"items","slot":"items-dashboard-slot","title":"items"},"order":1,"online":true,"offline":true},{"name":"stock-items-db","slot":"items-dashboard-slot","component":"stockItems"},{"name":"user-scopes-db-link","slot":"stock-page-dashboard-slot","component":"stockUserScopesLink","meta":{"name":"user-scopes","slot":"user-scopes-dashboard-slot","title":"user-scopes"},"order":3,"online":true,"offline":true},{"name":"stock-user-scopes-db","slot":"user-scopes-dashboard-slot","component":"stockUserScopes"},{"name":"sources-db-link","slot":"stock-page-dashboard-slot","component":"stockSourcesLink","meta":{"name":"sources","slot":"sources-dashboard-slot","title":"Sources"},"order":2,"online":true,"offline":true},{"name":"stock-sources-db","slot":"sources-dashboard-slot","component":"stockSources"},{"name":"reports-db-link","slot":"stock-page-dashboard-slot","component":"stockReportsLink","meta":{"name":"reports","slot":"reports-dashboard-slot","title":"Reports"},"order":5,"online":true,"offline":true},{"name":"stock-reports-db","slot":"reports-dashboard-slot","component":"stockReports"},{"name":"settings-db-link","slot":"stock-page-dashboard-slot","component":"stockSettingsLink","meta":{"name":"settings","slot":"settings-dashboard-slot","title":"Settings"},"order":6,"online":true,"offline":true},{"name":"stock-settings-db","slot":"settings-dashboard-slot","component":"stockSettings"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"modals":[{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"expired-stock-modal","component":"expiredStockModal"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsModal"},{"name":"receiving-stock-modal","component":"receivingStockModal"},{"name":"stock-operation-dialog","component":"stockOperationModal"},{"name":"transactions-print-bincard-preview-modal","component":"transactionBincardPrintPreviewModal"},{"name":"transactions-print-stockcard-preview-modal","component":"transactionStockcardPrintPreviewModal"}],"workspaces":[{"name":"stock-operation-form-workspace","component":"stockOperationFormWorkspace","title":"Stock Operation","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-item-rules-form-workspace","component":"stockItemRulesFormWorkspace","title":"Stock Item Rules","type":"form"},{"name":"stock-item-form-workspace","component":"stockItemFormWorkspace","title":"Stock Items","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-sources-form-workspace","component":"stockSourcesFormWorkspace","title":"Stock Sources","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-location-form-workspace","component":"stockLocationsFormWorkspace","title":"Stock Locations","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-user-role-scopes-form-workspace","component":"stockUserScopesFormWorkspace","title":"User Role Scopes","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-reports-form-workspace","component":"stockReportsFormWorkspace","title":"Reports","type":"form","canMaximize":true,"width":"extra-wide"}],"pages":[{"component":"root","route":"stock-management"}],"version":"3.0.1-pre.871"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-stock-management-app",
3
- "version": "3.0.1-pre.868",
3
+ "version": "3.0.1-pre.871",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Stock management microfrontend for OpenMRS 3.x",
6
6
  "browser": "dist/openmrs-esm-stock-management-app.js",
@@ -1,15 +1,19 @@
1
+ @use '@carbon/styles/scss/spacing';
1
2
  @use '@carbon/layout';
2
3
  @use '@carbon/type';
3
4
  @use '@openmrs/esm-styleguide/src/vars' as *;
4
5
 
5
- .formContainer {
6
+ .container {
6
7
  display: flex;
7
8
  flex-direction: column;
8
9
  justify-content: space-between;
9
- width: 100%;
10
10
  height: 100%;
11
11
  }
12
12
 
13
+ .form {
14
+ margin: layout.$spacing-05;
15
+ }
16
+
13
17
  .button {
14
18
  height: layout.$spacing-10;
15
19
  display: flex;
@@ -27,3 +31,8 @@
27
31
  .body {
28
32
  padding: 1rem;
29
33
  }
34
+
35
+ .flexRow {
36
+ display: flex;
37
+ align-items: center;
38
+ }
@@ -14,6 +14,9 @@ import {
14
14
  RadioButtonGroup,
15
15
  Select,
16
16
  SelectItem,
17
+ Form,
18
+ FormGroup,
19
+ Stack,
17
20
  } from '@carbon/react';
18
21
  import {
19
22
  type ConfigObject,
@@ -368,50 +371,51 @@ const CreateReport: React.FC<CreateReportProps> = ({ model, closeWorkspace }) =>
368
371
  };
369
372
 
370
373
  return (
371
- <div className={styles.formContainer}>
372
- <div className={styles.body}>
374
+ <Form className={styles.container}>
375
+ <Stack className={styles.form} gap={5}>
373
376
  <>
374
- <span>{t('reportName', 'Report')}</span>
375
- <Controller
376
- control={control}
377
- name="reportName"
378
- render={({ field: { onChange } }) => (
379
- <ComboBox
380
- id="report"
381
- size="md"
382
- labelText={t('reportName', 'Report')}
383
- items={reportTypes}
384
- itemToString={(item) => `${item?.name ?? item?.name ?? ''}`}
385
- placeholder="Filter..."
386
- onChange={({ selectedItem }) => {
387
- onChange(selectedItem.name);
388
- handleReportNameChange(selectedItem.name);
389
- }}
390
- />
391
- )}
392
- />
393
- </>
394
-
395
- {displayStockItemCategory && (
396
- <>
397
- <span>{t('stockItemCategory', 'Stock Item Category')}</span>
377
+ <FormGroup legendText={t('reportName', 'Report name')}>
398
378
  <Controller
399
379
  control={control}
400
- name="stockReportItemCategory"
380
+ name="reportName"
401
381
  render={({ field: { onChange } }) => (
402
382
  <ComboBox
403
- id="stockReportItem"
404
- size="md"
405
- labelText={t('stockItemCategory', 'Stock Item Category')}
406
- items={stockItemCategories}
383
+ id="report"
384
+ labelText={t('reportName', 'Report name')}
385
+ items={reportTypes}
386
+ itemToString={(item) => `${item?.name ?? item?.name ?? ''}`}
387
+ placeholder={t('filter', 'Filter...')}
407
388
  onChange={({ selectedItem }) => {
408
- onChange(selectedItem.uuid);
389
+ onChange(selectedItem.name);
390
+ handleReportNameChange(selectedItem.name);
409
391
  }}
410
- itemToString={(item) => (item && item?.display ? `${item?.display}` : '')}
411
- placeholder="Filter..."
412
392
  />
413
393
  )}
414
394
  />
395
+ </FormGroup>
396
+ </>
397
+
398
+ {displayStockItemCategory && (
399
+ <>
400
+ <FormGroup legendText={t('stockItemCategory', 'Stock Item Category')}>
401
+ <Controller
402
+ control={control}
403
+ name="stockReportItemCategory"
404
+ render={({ field: { onChange } }) => (
405
+ <ComboBox
406
+ id="stockReportItem"
407
+ size="md"
408
+ labelText={t('stockItemCategory', 'Stock Item Category')}
409
+ items={stockItemCategories}
410
+ onChange={({ selectedItem }) => {
411
+ onChange(selectedItem.uuid);
412
+ }}
413
+ itemToString={(item) => (item && item?.display ? `${item?.display}` : '')}
414
+ placeholder={t('filter', 'Filter...')}
415
+ />
416
+ )}
417
+ />
418
+ </FormGroup>
415
419
  </>
416
420
  )}
417
421
  {displayStartDate && (
@@ -551,7 +555,7 @@ const CreateReport: React.FC<CreateReportProps> = ({ model, closeWorkspace }) =>
551
555
  />
552
556
  )}
553
557
  {displayFulfillment && (
554
- <div style={{ display: 'flex', flexDirection: 'row', gap: '0 1rem' }}>
558
+ <div className={styles.flexRow}>
555
559
  <Controller
556
560
  control={control}
557
561
  name="fullFillment"
@@ -640,7 +644,7 @@ const CreateReport: React.FC<CreateReportProps> = ({ model, closeWorkspace }) =>
640
644
  )}
641
645
  />
642
646
  )}
643
- </div>
647
+ </Stack>
644
648
 
645
649
  <ButtonSet
646
650
  className={classNames(styles.buttonSet, {
@@ -655,7 +659,7 @@ const CreateReport: React.FC<CreateReportProps> = ({ model, closeWorkspace }) =>
655
659
  {getCoreTranslation('save')}
656
660
  </Button>
657
661
  </ButtonSet>
658
- </div>
662
+ </Form>
659
663
  );
660
664
  };
661
665
 
@@ -12,11 +12,10 @@
12
12
  padding-bottom: layout.$spacing-05;
13
13
  }
14
14
 
15
- .formContainer {
15
+ .container {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  justify-content: space-between;
19
- width: 100%;
20
19
  height: 100%;
21
20
  }
22
21
 
@@ -38,6 +37,9 @@
38
37
  padding: 1rem;
39
38
  }
40
39
 
40
+ .form {
41
+ margin: layout.$spacing-05;
42
+ }
41
43
  .tablet {
42
44
  padding: layout.$spacing-06 layout.$spacing-05;
43
45
  background-color: white;
@@ -1,6 +1,6 @@
1
+ import { Button, Form, Select, TextInput, SelectItem, ButtonSet, FormGroup, Stack } from '@carbon/react';
1
2
  import React, { type ChangeEvent, useCallback, useState } from 'react';
2
3
  import classNames from 'classnames';
3
- import { Button, ButtonSet, Select, SelectItem, Stack, TextInput } from '@carbon/react';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { Save } from '@carbon/react/icons';
6
6
  import {
@@ -85,9 +85,9 @@ const StockSourcesAddOrUpdate: React.FC<AddStockSourceProps> = ({ model, closeWo
85
85
  [formModel, model, t, closeWorkspace],
86
86
  );
87
87
  return (
88
- <div className={styles.formContainer}>
89
- <div className={styles.body}>
90
- <Stack gap={5}>
88
+ <Form className={styles.container}>
89
+ <Stack className={styles.form} gap={5}>
90
+ <FormGroup legendText={''}>
91
91
  <TextInput
92
92
  id="fullname"
93
93
  labelText={t('fullName', 'Full name')}
@@ -97,6 +97,8 @@ const StockSourcesAddOrUpdate: React.FC<AddStockSourceProps> = ({ model, closeWo
97
97
  type="text"
98
98
  value={model?.name}
99
99
  />
100
+ </FormGroup>
101
+ <FormGroup legendText={''}>
100
102
  <TextInput
101
103
  id="acronym"
102
104
  labelText={t('acronymOrCode', 'Acronym/Code')}
@@ -106,21 +108,21 @@ const StockSourcesAddOrUpdate: React.FC<AddStockSourceProps> = ({ model, closeWo
106
108
  type="text"
107
109
  value={model?.acronym}
108
110
  />
109
- <Select
110
- className="select-field"
111
- id="sourceType"
112
- labelText={t('sourceType', 'Source Type')}
113
- name="sourceType"
114
- onChange={onSourceTypeChange}
115
- value={formModel?.sourceType ? formModel.sourceType.uuid : ''}
116
- >
117
- <SelectItem disabled hidden value="" text={t('chooseSourceType', 'Choose a source type')} />
118
- {items?.answers?.map((sourceType) => (
119
- <SelectItem key={sourceType.uuid} value={sourceType.uuid} text={sourceType.display} />
120
- ))}
121
- </Select>
122
- </Stack>
123
- </div>
111
+ </FormGroup>
112
+ <Select
113
+ name="sourceType"
114
+ className="select-field"
115
+ labelText={t('sourceType', 'Source Type')}
116
+ id="sourceType"
117
+ value={formModel?.sourceType ? formModel.sourceType.uuid : ''}
118
+ onChange={onSourceTypeChange}
119
+ >
120
+ <SelectItem disabled hidden value="" text={t('chooseSourceType', 'Choose a source type')} />
121
+ {items?.answers?.map((sourceType) => (
122
+ <SelectItem key={sourceType.uuid} value={sourceType.uuid} text={sourceType.display} />
123
+ ))}
124
+ </Select>
125
+ </Stack>
124
126
  <ButtonSet
125
127
  className={classNames(styles.buttonSet, {
126
128
  [styles.tablet]: isTablet,
@@ -134,7 +136,7 @@ const StockSourcesAddOrUpdate: React.FC<AddStockSourceProps> = ({ model, closeWo
134
136
  {getCoreTranslation('save')}
135
137
  </Button>
136
138
  </ButtonSet>
137
- </div>
139
+ </Form>
138
140
  );
139
141
  };
140
142
 
@@ -131,7 +131,7 @@
131
131
  "expiringStock": "Expiring stock",
132
132
  "expiry": "Expiry",
133
133
  "expiryNoticeDays": "Expiration Notice (days)",
134
- "filter": "Filter ...",
134
+ "filter": "Filter...",
135
135
  "filterByLocation": "Filter by Location",
136
136
  "findItems": "Find your items",
137
137
  "formCreated": "Add Location",