@openmrs/esm-stock-management-app 1.0.1-pre.717 → 1.0.1-pre.726

Sign up to get free protection for your applications and to get access to all the features.
package/dist/606.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[606],{1669:(e,n,t)=>{t.d(n,{Z:()=>s});var a=t(1364),o=t.n(a),r=t(1682),c=t.n(r)()(o());c.push([e.id,".-esm-stock-management__stock-operations-dialog__section___LpGWF{margin:.5rem}.-esm-stock-management__stock-operations-dialog__sectionTitle___vqFIP{margin-bottom:.75rem}.-esm-stock-management__stock-operations-dialog__modalBody___17qtG{padding-bottom:1rem}","",{version:3,sources:["webpack://./src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,iEACE,YCiBW,CDdb,sEACE,oBCkBW,CDfb,mEACE,mBCmBW",sourcesContent:["@use '@carbon/layout';\n@use '@carbon/type';\n\n.section {\n margin: layout.$spacing-03;\n}\n\n.sectionTitle {\n margin-bottom: layout.$spacing-04;\n}\n\n.modalBody {\n padding-bottom: layout.$spacing-05;\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:""}]),c.locals={section:"-esm-stock-management__stock-operations-dialog__section___LpGWF",sectionTitle:"-esm-stock-management__stock-operations-dialog__sectionTitle___vqFIP",modalBody:"-esm-stock-management__stock-operations-dialog__modalBody___17qtG"};const s=c},9606:(e,n,t)=>{t.r(n),t.d(n,{default:()=>x});var a=t(1672),o=t.n(a),r=t(3397),c=t(2167),s=t(7410),i=t.n(s),l=t(4766),u=t.n(l),p=t(1991),m=t.n(p),g=t(3702),b=t.n(g),d=t(2434),y=t.n(d),f=t(1422),_=t.n(f),h=t(1669),k={};k.styleTagTransform=_(),k.setAttributes=b(),k.insert=m().bind(null,"head"),k.domAPI=u(),k.insertStyleElement=y(),i()(h.Z,k);const v=h.Z&&h.Z.locals?h.Z.locals:void 0;var E=t(5048),$=t(7248),C=t(3466),T=t(826),N=t(954);function w(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,a,o,r,c){try{var s=e[r](c),i=s.value}catch(e){return void t(e)}s.done?n(i):Promise.resolve(i).then(a,o)}function A(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,o,r=[],c=!0,s=!1;try{for(t=t.call(e);!(c=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{c||null==t.return||t.return()}finally{if(s)throw o}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return w(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)?w(e,n):void 0}}(e,n)||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.")}()}const x=function(e){var n,t,s=e.title,i=e.requireReason,l=e.operation,u=e.closeModal,p=s.toLocaleLowerCase().trim(),m=(0,r.useTranslation)().t,g=A((0,a.useState)(""),2),b=g[0],d=g[1],y=A((0,a.useState)(!1),2),f=y[0],_=y[1],h=(n=function(e){var n,t;return function(e,n){var t,a,o,r,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=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 c.label++,{value:r[1],done:!1};case 5:c.label++,a=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){c=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){c.label=r[1];break}if(6===r[0]&&c.label<o[1]){c.label=o[1],o=r;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(r);break}o[2]&&c.ops.pop(),c.trys.pop();continue}r=n.call(e,c)}catch(e){r=[6,e],a=0}finally{t=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(a){switch(e.preventDefault(),_(!0),n=null,p){case"submit":n="SUBMIT";break;case"dispatch":case"dispatchapproval":n="DISPATCH";break;case"complete":case"completedispatch":n="COMPLETE";break;case"cancel":n="CANCEL";break;case"reject":n="REJECT";break;case"return":n="RETURN";break;case"approve":n="APPROVE"}return n?(t={name:n,uuid:null==l?void 0:l.uuid,reason:b},(0,E._e)(t).then((function(){_(!1),(0,$.showSnackbar)({title:m("operationSuccessTitle","{{title}} Operation",{title:s}),subtitle:m("operationSuccessful","You have successfully {{title}} operation",{title:s}),kind:"success"}),u(),(0,C.Km)(),(0,N.d)("".concat($.restBaseUrl,"/stockmanagement/stockoperation"))}),(function(e){_(!1);var n=(0,T.cK)(e)[0].replace(/[[\]]/g,"");(0,$.showSnackbar)({title:m("stockOperationErrorTitle","Error on saving form"),subtitle:m("stockOperationErrorDescription","Details: {{message}}",{message:n}),kind:"error"}),u(),(0,C.Km)()})),[2]):[2]}))},t=function(){var e=this,t=arguments;return new Promise((function(a,o){var r=n.apply(e,t);function c(e){S(r,a,o,c,s,"next",e)}function s(e){S(r,a,o,c,s,"throw",e)}c(void 0)}))},function(e){return t.apply(this,arguments)});return o().createElement("div",null,o().createElement(c.l09,{onSubmit:h},o().createElement(c.xBx,{closeModal:u,title:m("operationModalTitle","{{title}} Operation",{title:s})}),o().createElement(c.fef,null,o().createElement("div",{className:v.modalBody},o().createElement("section",{className:v.section},o().createElement("h5",{className:v.section},"Would you really like to ",s," the operation ?")),o().createElement("br",null),i&&o().createElement("section",{className:v.section},o().createElement(c.Kx8,{labelText:m("notes","Please explain the reason:"),id:"nextNotes",name:"nextNotes",invalidText:"Required",maxCount:500,enableCounter:!0,onChange:function(e){return d(e.target.value)}})))),o().createElement(c.mzw,null,o().createElement(c.zxk,{kind:"secondary",onClick:u},m("cancel","Cancel")),f?o().createElement(c.lSo,null):o().createElement(c.zxk,{type:"submit"},m("submit","Submit")))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[606],{1669:(e,n,t)=>{t.d(n,{Z:()=>s});var a=t(1364),o=t.n(a),r=t(1682),c=t.n(r)()(o());c.push([e.id,".-esm-stock-management__stock-operations-dialog__section___LpGWF{margin:.5rem}.-esm-stock-management__stock-operations-dialog__sectionTitle___vqFIP{margin-bottom:.75rem}.-esm-stock-management__stock-operations-dialog__modalBody___17qtG{padding-bottom:1rem}","",{version:3,sources:["webpack://./src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,iEACE,YCiBW,CDdb,sEACE,oBCkBW,CDfb,mEACE,mBCmBW",sourcesContent:["@use '@carbon/layout';\n@use '@carbon/type';\n\n.section {\n margin: layout.$spacing-03;\n}\n\n.sectionTitle {\n margin-bottom: layout.$spacing-04;\n}\n\n.modalBody {\n padding-bottom: layout.$spacing-05;\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:""}]),c.locals={section:"-esm-stock-management__stock-operations-dialog__section___LpGWF",sectionTitle:"-esm-stock-management__stock-operations-dialog__sectionTitle___vqFIP",modalBody:"-esm-stock-management__stock-operations-dialog__modalBody___17qtG"};const s=c},9606:(e,n,t)=>{t.r(n),t.d(n,{default:()=>x});var a=t(1672),o=t.n(a),r=t(3397),c=t(2167),s=t(7410),i=t.n(s),l=t(4766),u=t.n(l),p=t(1991),m=t.n(p),g=t(3702),b=t.n(g),d=t(2434),y=t.n(d),f=t(1422),_=t.n(f),h=t(1669),k={};k.styleTagTransform=_(),k.setAttributes=b(),k.insert=m().bind(null,"head"),k.domAPI=u(),k.insertStyleElement=y(),i()(h.Z,k);const v=h.Z&&h.Z.locals?h.Z.locals:void 0;var E=t(5048),$=t(7248),C=t(3466),T=t(826),N=t(954);function w(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,a,o,r,c){try{var s=e[r](c),i=s.value}catch(e){return void t(e)}s.done?n(i):Promise.resolve(i).then(a,o)}function A(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,o,r=[],c=!0,s=!1;try{for(t=t.call(e);!(c=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{c||null==t.return||t.return()}finally{if(s)throw o}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return w(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)?w(e,n):void 0}}(e,n)||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.")}()}const x=function(e){var n,t,s=e.title,i=e.requireReason,l=e.operation,u=e.closeModal,p=s.toLocaleLowerCase().trim(),m=(0,r.useTranslation)().t,g=A((0,a.useState)(""),2),b=g[0],d=g[1],y=A((0,a.useState)(!1),2),f=y[0],_=y[1],h=(n=function(e){var n,t;return function(e,n){var t,a,o,r,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=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 c.label++,{value:r[1],done:!1};case 5:c.label++,a=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){c=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){c.label=r[1];break}if(6===r[0]&&c.label<o[1]){c.label=o[1],o=r;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(r);break}o[2]&&c.ops.pop(),c.trys.pop();continue}r=n.call(e,c)}catch(e){r=[6,e],a=0}finally{t=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(a){switch(e.preventDefault(),_(!0),n=null,p){case"submit":n="SUBMIT";break;case"dispatch":case"dispatchapproval":n="DISPATCH";break;case"complete":case"complete dispatch":n="COMPLETE";break;case"cancel":n="CANCEL";break;case"reject":n="REJECT";break;case"return":n="RETURN";break;case"approve":n="APPROVE"}return n?(t={name:n,uuid:null==l?void 0:l.uuid,reason:b},(0,E._e)(t).then((function(){_(!1),(0,$.showSnackbar)({title:m("operationSuccessTitle","{{title}} Operation",{title:s}),subtitle:m("operationSuccessful","You have successfully {{title}} operation",{title:s}),kind:"success"}),u(),(0,C.Km)(),(0,N.d)("".concat($.restBaseUrl,"/stockmanagement/stockoperation"))}),(function(e){_(!1);var n=(0,T.cK)(e)[0].replace(/[[\]]/g,"");(0,$.showSnackbar)({title:m("stockOperationErrorTitle","Error on saving form"),subtitle:m("stockOperationErrorDescription","Details: {{message}}",{message:n}),kind:"error"}),u(),(0,C.Km)()})),[2]):[2]}))},t=function(){var e=this,t=arguments;return new Promise((function(a,o){var r=n.apply(e,t);function c(e){S(r,a,o,c,s,"next",e)}function s(e){S(r,a,o,c,s,"throw",e)}c(void 0)}))},function(e){return t.apply(this,arguments)});return o().createElement("div",null,o().createElement(c.l09,{onSubmit:h},o().createElement(c.xBx,{closeModal:u,title:m("operationModalTitle","{{title}} Operation",{title:s})}),o().createElement(c.fef,null,o().createElement("div",{className:v.modalBody},o().createElement("section",{className:v.section},o().createElement("h5",{className:v.section},"Would you really like to ",s," the operation ?")),o().createElement("br",null),i&&o().createElement("section",{className:v.section},o().createElement(c.Kx8,{labelText:m("notes","Please explain the reason:"),id:"nextNotes",name:"nextNotes",invalidText:"Required",maxCount:500,enableCounter:!0,onChange:function(e){return d(e.target.value)}})))),o().createElement(c.mzw,null,o().createElement(c.zxk,{kind:"secondary",onClick:u},m("cancel","Cancel")),f?o().createElement(c.lSo,null):o().createElement(c.zxk,{type:"submit"},m("submit","Submit")))))}}}]);
package/dist/606.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"606.js","mappings":"mNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,mQAAoQ,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wFAAwF,wEAAwE,MAAQ,GAAG,SAAW,uDAAuD,eAAiB,CAAC,uNAAuN,25DAA25D,WAAa,MAEtsFH,EAAwBI,OAAS,CAChC,QAAW,kEACX,aAAgB,uEAChB,UAAa,qEAEd,S,sNCDIC,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,4mCCqHnE,QA5HkE,Y,QAAGC,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,cAAeC,EAAAA,EAAAA,UAAWC,EAAAA,EAAAA,WAC9FC,EAAcJ,EAAMK,oBAAoBC,OAExC,GAAQC,EAAAA,EAAAA,kBAANC,EAEkBC,EAAAA,GAAAA,EAAAA,EAAAA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AAAA,IAAWA,CAAClC,WAAYA,EAAYH,MAAOQ,EAAE,sBAAuB,sBAAuB,CAAER,MAAAA,MAC9F,kBAACsC,EAAAA,IAASA,KACR,kBAACJ,MAAAA,CAAIK,UAAWC,EAAOC,WACrB,kBAACC,UAAAA,CAAQH,UAAWC,EAAOE,SACzB,kBAACC,KAAAA,CAAGJ,UAAWC,EAAOE,SAAS,4BAA0B1C,EAAM,qBAEjE,kBAAC4C,KAAAA,MACA3C,GACC,kBAACyC,UAAAA,CAAQH,UAAWC,EAAOE,SACzB,kBAACG,EAAAA,IAAQA,CACPC,UAAWtC,EAAE,QAAS,8BACtBjB,GAAG,YACH4B,KAAK,YACL4B,YAAY,WACZC,SAAU,IACVC,eAAAA,EACAC,SAAU,SAACC,G,OAAMxC,EAASwC,EAAEC,OAAOC,M,OAM7C,kBAACC,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAAC7B,KAAK,YAAY8B,QAASrD,GAC/BK,EAAE,SAAU,WAEdI,EAAc,kBAAC6C,EAAAA,IAAaA,MAAM,kBAACF,EAAAA,IAAMA,CAACG,KAAK,UAAUlD,EAAE,SAAU,aAKhF,C","sources":["webpack://@openmrs/esm-stock-management-app/./src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss","webpack://@openmrs/esm-stock-management-app/./src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss?bec9","webpack://@openmrs/esm-stock-management-app/./src/stock-operations/stock-operations-dialog/stock-operations-dialog.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","title","requireReason","operation","closeModal","confirmType","toLocaleLowerCase","trim","useTranslation","t","useState","notes","setNotes","isApproving","setIsApproving","handleClick","event","actionName","payload","preventDefault","name","uuid","reason","executeStockOperationAction","then","showSnackbar","subtitle","kind","closeOverlay","handleMutate","restBaseUrl","err","message","extractErrorMessagesFromResponse","replace","div","Form","onSubmit","ModalHeader","ModalBody","className","styles","modalBody","section","h5","br","TextArea","labelText","invalidText","maxCount","enableCounter","onChange","e","target","value","ModalFooter","Button","onClick","InlineLoading","type"],"sourceRoot":""}
1
+ {"version":3,"file":"606.js","mappings":"mNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,mQAAoQ,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wFAAwF,wEAAwE,MAAQ,GAAG,SAAW,uDAAuD,eAAiB,CAAC,uNAAuN,25DAA25D,WAAa,MAEtsFH,EAAwBI,OAAS,CAChC,QAAW,kEACX,aAAgB,uEAChB,UAAa,qEAEd,S,sNCDIC,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,4mCCqHnE,QA5HkE,Y,QAAGC,EAAAA,EAAAA,MAAOC,EAAAA,EAAAA,cAAeC,EAAAA,EAAAA,UAAWC,EAAAA,EAAAA,WAC9FC,EAAcJ,EAAMK,oBAAoBC,OAExC,GAAQC,EAAAA,EAAAA,kBAANC,EAEkBC,EAAAA,GAAAA,EAAAA,EAAAA,UAAS,OAA5BC,EAAmBD,EAAAA,GAAZE,EAAYF,EAAAA,GAEYA,EAAAA,GAAAA,EAAAA,EAAAA,WAAS,MAAxCG,EAA+BH,EAAAA,GAAlBI,EAAkBJ,EAAAA,GAEhCK,G,EAAc,SAAOC,G,IAKrBC,EAoCEC,E,8jCAlCN,OANAF,EAAMG,iBAENL,GAAe,GAEXG,EAA6C,KAEzCZ,GACN,IAAK,SACHY,EAAa,SACb,MACF,IAAK,WAqBL,IAAK,mBAEHA,EAAa,WACb,MArBF,IAAK,WAGL,IAAK,oBACHA,EAAa,WACb,MACF,IAAK,SACHA,EAAa,SACb,MACF,IAAK,SACHA,EAA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AAK,YACL4B,YAAY,WACZC,SAAU,IACVC,eAAAA,EACAC,SAAU,SAACC,G,OAAMxC,EAASwC,EAAEC,OAAOC,M,OAM7C,kBAACC,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAAC7B,KAAK,YAAY8B,QAASrD,GAC/BK,EAAE,SAAU,WAEdI,EAAc,kBAAC6C,EAAAA,IAAaA,MAAM,kBAACF,EAAAA,IAAMA,CAACG,KAAK,UAAUlD,EAAE,SAAU,aAKhF,C","sources":["webpack://@openmrs/esm-stock-management-app/./src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss","webpack://@openmrs/esm-stock-management-app/./src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss?bec9","webpack://@openmrs/esm-stock-management-app/./src/stock-operations/stock-operations-dialog/stock-operations-dialog.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","title","requireReason","operation","closeModal","confirmType","toLocaleLowerCase","trim","useTranslation","t","useState","notes","setNotes","isApproving","setIsApproving","handleClick","event","actionName","payload","preventDefault","name","uuid","reason","executeStockOperationAction","then","showSnackbar","subtitle","kind","closeOverlay","handleMutate","restBaseUrl","err","message","extractErrorMessagesFromResponse","replace","div","Form","onSubmit","ModalHeader","ModalBody","className","styles","modalBody","section","h5","br","TextArea","labelText","invalidText","maxCount","enableCounter","onChange","e","target","value","ModalFooter","Button","onClick","InlineLoading","type"],"sourceRoot":""}