@openmrs/esm-patient-programs-app 3.0.0-pre.65 → 3.0.0-pre.656

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.
Files changed (76) hide show
  1. package/dist/133.openmrs-esm-patient-programs-app.js +3 -0
  2. package/dist/133.openmrs-esm-patient-programs-app.js.LICENSE.txt +14 -0
  3. package/dist/133.openmrs-esm-patient-programs-app.js.map +1 -0
  4. package/dist/401.openmrs-esm-patient-programs-app.js +3 -0
  5. package/dist/401.openmrs-esm-patient-programs-app.js.LICENSE.txt +14 -0
  6. package/dist/401.openmrs-esm-patient-programs-app.js.map +1 -0
  7. package/dist/574.openmrs-esm-patient-programs-app.js +1 -0
  8. package/dist/639.openmrs-esm-patient-programs-app.js +2 -0
  9. package/dist/639.openmrs-esm-patient-programs-app.js.map +1 -0
  10. package/dist/757.openmrs-esm-patient-programs-app.js +1 -0
  11. package/dist/783.openmrs-esm-patient-programs-app.js +3 -0
  12. package/dist/783.openmrs-esm-patient-programs-app.js.LICENSE.txt +23 -0
  13. package/dist/783.openmrs-esm-patient-programs-app.js.map +1 -0
  14. package/dist/839.openmrs-esm-patient-programs-app.js +2 -0
  15. package/dist/839.openmrs-esm-patient-programs-app.js.map +1 -0
  16. package/dist/972.openmrs-esm-patient-programs-app.js +2 -0
  17. package/dist/972.openmrs-esm-patient-programs-app.js.map +1 -0
  18. package/dist/openmrs-esm-patient-programs-app.js +2 -1
  19. package/dist/openmrs-esm-patient-programs-app.js.LICENSE.txt +5 -0
  20. package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +220 -0
  21. package/dist/openmrs-esm-patient-programs-app.js.map +1 -1
  22. package/package.json +10 -11
  23. package/src/dashboard.meta.tsx +6 -0
  24. package/src/declarations.d.tsx +3 -3
  25. package/src/index.ts +31 -30
  26. package/src/programs/program-record.component.tsx +29 -48
  27. package/src/programs/program-record.test.outdated.tsx +30 -34
  28. package/src/programs/programs-detailed-summary.component.tsx +123 -114
  29. package/src/programs/programs-detailed-summary.scss +24 -0
  30. package/src/programs/programs-detailed-summary.test.tsx +71 -0
  31. package/src/programs/programs-form.component.tsx +257 -473
  32. package/src/programs/programs-form.scss +20 -0
  33. package/src/programs/programs-form.test.tsx +206 -0
  34. package/src/programs/programs-overview.component.tsx +44 -74
  35. package/src/programs/programs-overview.scss +4 -0
  36. package/src/programs/programs-overview.test.tsx +70 -0
  37. package/src/programs/programs.component.test.tsx +21 -0
  38. package/src/programs/programs.component.tsx +6 -10
  39. package/src/programs/programs.context.tsx +1 -1
  40. package/src/programs/programs.resource.tsx +31 -43
  41. package/translations/en.json +29 -1
  42. package/webpack.config.js +1 -80
  43. package/dist/0.openmrs-esm-patient-programs-app.js +0 -22
  44. package/dist/0.openmrs-esm-patient-programs-app.js.map +0 -1
  45. package/dist/1.openmrs-esm-patient-programs-app.js +0 -2
  46. package/dist/1.openmrs-esm-patient-programs-app.js.map +0 -1
  47. package/dist/3.openmrs-esm-patient-programs-app.js +0 -23
  48. package/dist/3.openmrs-esm-patient-programs-app.js.map +0 -1
  49. package/dist/4.openmrs-esm-patient-programs-app.js +0 -2
  50. package/dist/4.openmrs-esm-patient-programs-app.js.map +0 -1
  51. package/dist/5.openmrs-esm-patient-programs-app.js +0 -2
  52. package/dist/5.openmrs-esm-patient-programs-app.js.map +0 -1
  53. package/dist/6.openmrs-esm-patient-programs-app.js +0 -2
  54. package/dist/6.openmrs-esm-patient-programs-app.js.map +0 -1
  55. package/dist/7.openmrs-esm-patient-programs-app.js +0 -2
  56. package/dist/7.openmrs-esm-patient-programs-app.js.map +0 -1
  57. package/dist/8.openmrs-esm-patient-programs-app.js +0 -2
  58. package/dist/8.openmrs-esm-patient-programs-app.js.map +0 -1
  59. package/src/cards/summary-card.component.tsx +0 -82
  60. package/src/cards/summary-card.css +0 -65
  61. package/src/dashboard/dashboard-link.component.tsx +0 -7
  62. package/src/dashboard/dashboard.meta.tsx +0 -6
  63. package/src/openmrs-backend-dependencies.ts +0 -4
  64. package/src/programs/empty-state/empty-data-illustration.component.tsx +0 -53
  65. package/src/programs/empty-state/empty-state.component.tsx +0 -39
  66. package/src/programs/empty-state/empty-state.scss +0 -34
  67. package/src/programs/error-state/error-state.component.tsx +0 -26
  68. package/src/programs/error-state/error-state.scss +0 -36
  69. package/src/programs/openWorkspaceTab.tsx +0 -40
  70. package/src/programs/programs-detailed-summary.css +0 -63
  71. package/src/programs/programs-detailed-summary.test.outdated.tsx +0 -57
  72. package/src/programs/programs-form.css +0 -95
  73. package/src/programs/programs-form.test.outdated.tsx +0 -276
  74. package/src/programs/programs-overview.test.outdated.tsx +0 -73
  75. package/src/programs/programs.component.test.outdated.tsx +0 -18
  76. package/src/set-public-path.ts +0 -3
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 133.openmrs-esm-patient-programs-app.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[133],{4460:(e,t,n)=>{n.d(t,{Be1:()=>f,bdU:()=>d,VUy:()=>p});var r,o,i,a=n(3766),s=n(5954),c=(n(3980),["children"]),l=["children"],u=["children"],f=s.default.forwardRef((function(e,t){var n=e.children,o=(0,a._)(e,c);return s.default.createElement(a.I,(0,a.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},o),r||(r=s.default.createElement("path",{d:"M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20\tV26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"})),n)})),d=s.default.forwardRef((function(e,t){var n=e.children,r=(0,a._)(e,l);return s.default.createElement(a.I,(0,a.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=s.default.createElement("path",{d:"M20 24L10 16 20 8z"})),n)})),p=s.default.forwardRef((function(e,t){var n=e.children,r=(0,a._)(e,u);return s.default.createElement(a.I,(0,a.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=s.default.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}))},5055:(e,t,n)=>{n.d(t,{sKV:()=>d,Gu6:()=>p});var r,o,i,a,s,c=n(3766),l=n(5954),u=(n(3980),["children"]),f=["children"],d=l.default.forwardRef((function(e,t){var n=e.children,a=(0,c._)(e,u);return l.default.createElement(c.I,(0,c.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},a),r||(r=l.default.createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),o||(o=l.default.createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),i||(i=l.default.createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),n)})),p=l.default.forwardRef((function(e,t){var n=e.children,r=(0,c._)(e,f);return l.default.createElement(c.I,(0,c.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=l.default.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2\tc-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),s||(s=l.default.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8\tc0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)}))},7030:(e,t,n)=>{n.d(t,{Z:()=>S});var r=n(3980),o=n.n(r),i=n(5954),a=n(2779),s=n.n(a),c=n(2434),l=n(3597),u=n(3834),f=n(4509),d=n(4817),p=n(7304),h=n(6590),b=["children","as","className","disabled","small","size","kind","href","isExpressive","isSelected","tabIndex","type","renderIcon","dangerDescription","iconDescription","hasIconOnly","tooltipPosition","tooltipAlignment","onClick","onBlur","onFocus","onMouseEnter","onMouseLeave"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(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 r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||w(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 w(e,t){if(e){if("string"==typeof e)return _(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var E=c.settings.prefix,O=i.default.forwardRef((function(e,t){var n,r=e.children,o=e.as,a=e.className,c=e.disabled,l=e.small,y=e.size,O=e.kind,S=e.href,x=e.isExpressive,T=e.isSelected,A=e.tabIndex,j=e.type,C=e.renderIcon,P=e.dangerDescription,N=e.iconDescription,I=e.hasIconOnly,M=e.tooltipPosition,R=e.tooltipAlignment,k=e.onClick,L=e.onBlur,D=e.onFocus,B=e.onMouseEnter,V=e.onMouseLeave,U=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,b),z=g((0,i.useState)(!1),2),H=z[0],F=z[1],Z=g((0,i.useState)(!1),2),G=Z[0],W=Z[1],q=g((0,i.useState)(!1),2),$=q[0],K=q[1],Y=(0,i.useRef)(null),J=(0,i.useRef)(null),Q=function(e){var t,n;(n=null===(t=document)||void 0===t?void 0:t.querySelectorAll(".".concat(E,"--tooltip--a11y")),function(e){if(Array.isArray(e))return _(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||w(n)||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.")}()).map((function(t){var n,r,o;n=t,r="".concat(E,"--tooltip--hidden"),o=t!==e.currentTarget,n.classList.contains(r)===!o&&n.classList[o?"add":"remove"](r)}))},X=function(e){if(I){if(W(!0),J.current&&clearTimeout(J.current),e.target===Y.current)return void F(!0);Q(e),F(!0)}};(0,i.useEffect)((function(){var e=function(e){(0,f.wB)(e,[d.L1])&&(F(!1),W(!1))};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[]);var ee,te=(0,h.ye)("enable-v11-release"),ne={tabIndex:A,className:s()(a,(m(n={},"".concat(E,"--btn"),!0),m(n,"".concat(E,"--btn--sm"),"small"===y&&!x||"sm"===y&&!x||l&&!x),m(n,"".concat(E,"--btn--md"),"field"===y&&!x||"md"===y&&!x),m(n,"".concat(E,"--btn--lg"),te?"xl"===y:"lg"===y),m(n,"".concat(E,"--btn--xl"),te?"2xl"===y:"xl"===y),m(n,"".concat(E,"--btn--").concat(O),O),m(n,"".concat(E,"--btn--disabled"),c),m(n,"".concat(E,"--btn--expressive"),x),m(n,"".concat(E,"--tooltip--hidden"),I&&!H),m(n,"".concat(E,"--tooltip--visible"),G),m(n,"".concat(E,"--btn--icon-only"),I),m(n,"".concat(E,"--btn--selected"),I&&T&&"ghost"===O),m(n,"".concat(E,"--tooltip__trigger"),I),m(n,"".concat(E,"--tooltip--a11y"),I),m(n,"".concat(E,"--btn--icon-only--").concat(M),I&&M),m(n,"".concat(E,"--tooltip--align-").concat(R),I&&R),n)),ref:t},re=C?i.default.createElement(C,{"aria-label":N,className:"".concat(E,"--btn__icon"),"aria-hidden":"true"}):null,oe=["danger","danger--tertiary","danger--ghost"],ie="button",ae=(0,p.M)("danger-description"),se={disabled:c,type:j,"aria-describedby":oe.includes(O)?ae:null,"aria-pressed":I&&"ghost"===O?T:null},ce={href:S};return ee=I?i.default.createElement("div",{ref:Y,onMouseEnter:X,className:"".concat(E,"--assistive-text")},N):oe.includes(O)?i.default.createElement("span",{id:ae,className:"".concat(E,"--visually-hidden")},P):null,o?(ie=o,se=v(v({},se),ce)):S&&!c&&(ie="a",se=ce),i.default.createElement(ie,v(v(v({onMouseEnter:(0,u.M)([B,X]),onMouseLeave:(0,u.M)([V,function(){!$&&I&&(J.current=setTimeout((function(){F(!1),W(!1)}),100))}]),onFocus:(0,u.M)([D,function(e){I&&(Q(e),W(!G),K(!0),F(!0))}]),onBlur:(0,u.M)([L,function(){I&&(W(!1),K(!1),F(!1))}]),onClick:(0,u.M)([function(e){e.target!==Y.current||e.preventDefault()},k])},U),ne),se),ee,r,re)}));O.displayName="Button",O.propTypes={as:o().oneOfType([o().func,o().string,o().elementType]),children:o().node,className:o().string,dangerDescription:o().string,disabled:o().bool,hasIconOnly:o().bool,href:o().string,iconDescription:function(e){if(e.renderIcon&&!e.children&&!e.iconDescription)return new Error("renderIcon property specified without also providing an iconDescription property.")},isExpressive:o().bool,isSelected:o().bool,kind:o().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]).isRequired,onBlur:o().func,onClick:o().func,onFocus:o().func,onMouseEnter:o().func,onMouseLeave:o().func,renderIcon:o().oneOfType([o().func,o().object]),role:o().string,size:o().oneOf(["default","field","small","sm","md","lg","xl","2xl"]),small:(0,l.Z)(o().bool,'\nThe prop `small` for Button has been deprecated in favor of `size`. Please use `size="sm"` instead.'),tabIndex:o().number,tooltipAlignment:o().oneOf(["start","center","end"]),tooltipPosition:o().oneOf(["top","right","bottom","left"]),type:o().oneOf(["button","reset","submit"])},O.defaultProps={tabIndex:0,type:"button",disabled:!1,kind:"primary",size:"default",dangerDescription:"danger",tooltipAlignment:"center",tooltipPosition:"top",isExpressive:!1};const S=O},6590:(e,t,n)=>{n.d(t,{pG:()=>y,ye:()=>v});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE&&"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release}];function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(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 r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||s(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 s(e,t){if(e){if("string"==typeof e)return c(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}for(var l=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))}var t,n;return t=e,(n=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=a(t.value,2),o=r[0],i=r[1];this.flags.has(o)||this.flags.set(o,i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}])&&i(t.prototype,n),e}(),u=new l(void 0),f=0;f<o.length;f++){var d=o[f];u.add(d.name,d.enabled)}var p=n(3980),h=n.n(p),b=n(5954),y=(0,b.createContext)(u);function v(e){return(0,b.useContext)(y).enabled(e)}h().node,h().objectOf(h().bool)},2810:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(3980),o=n.n(r),i=n(5954),a=n(2779),s=n.n(a),c=n(2434),l=n(3346),u=n(5055),f=n(3597),d=["className","id","inline","labelText","disabled","children","noLabel","iconDescription","hideLabel","invalid","invalidText","helperText","light","size","warn","warnText"];function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=c.settings.prefix,y=i.default.forwardRef((function(e,t){var n,r,o,a=e.className,c=e.id,f=e.inline,y=e.labelText,v=e.disabled,m=e.children,g=e.noLabel,w=(e.iconDescription,e.hideLabel),_=e.invalid,E=e.invalidText,O=e.helperText,S=e.light,x=e.size,T=e.warn,A=e.warnText,j=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d),C=s()((h(n={},"".concat(b,"--select"),!0),h(n,"".concat(b,"--select--inline"),f),h(n,"".concat(b,"--select--light"),S),h(n,"".concat(b,"--select--invalid"),_),h(n,"".concat(b,"--select--disabled"),v),h(n,"".concat(b,"--select--warning"),T),h(n,a,a),n)),P=s()("".concat(b,"--label"),(h(r={},"".concat(b,"--visually-hidden"),w),h(r,"".concat(b,"--label--disabled"),v),r)),N=s()((h(o={},"".concat(b,"--select-input"),!0),h(o,"".concat(b,"--select-input--").concat(x),x),o)),I="".concat(c,"-error-msg"),M=_?E:T?A:void 0,R=_||T?i.default.createElement("div",{className:"".concat(b,"--form-requirement"),id:I},M):null,k=s()("".concat(b,"--form__helper-text"),h({},"".concat(b,"--form__helper-text--disabled"),v)),L=O?i.default.createElement("div",{className:k},O):null,D={};_&&(D["aria-describedby"]=I);var B=i.default.createElement(i.default.Fragment,null,i.default.createElement("select",p({},j,D,{id:c,className:N,disabled:v||void 0,"aria-invalid":_||void 0,ref:t}),m),i.default.createElement(l.cRw,{className:"".concat(b,"--select__arrow")}),_&&i.default.createElement(u.Gu6,{className:"".concat(b,"--select__invalid-icon")}),!_&&T&&i.default.createElement(u.sKV,{className:"".concat(b,"--select__invalid-icon ").concat(b,"--select__invalid-icon--warning")}));return i.default.createElement("div",{className:"".concat(b,"--form-item")},i.default.createElement("div",{className:C},!g&&i.default.createElement("label",{htmlFor:c,className:P},y),f&&i.default.createElement("div",{className:"".concat(b,"--select-input--inline__wrapper")},i.default.createElement("div",{className:"".concat(b,"--select-input__wrapper"),"data-invalid":_||null},B),R),!f&&i.default.createElement("div",{className:"".concat(b,"--select-input__wrapper"),"data-invalid":_||null},B),!f&&R?R:L))}));y.displayName="Select",y.propTypes={children:o().node,className:o().string,defaultValue:o().any,disabled:o().bool,helperText:o().node,hideLabel:o().bool,iconDescription:(0,f.Z)(o().string,"The `iconDescription` prop for `Select` is no longer needed and has been deprecated. It will be moved in the next major release."),id:o().string.isRequired,inline:o().bool,invalid:o().bool,invalidText:o().node,labelText:o().node,light:o().bool,noLabel:o().bool,onChange:o().func,size:o().oneOf(["sm","md","lg","xl"]),warn:o().bool,warnText:o().node},y.defaultProps={disabled:!1,labelText:"Select",inline:!1,invalid:!1,invalidText:"",helperText:"",light:!1};const v=y},5067:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(3980),o=n.n(r),i=n(5954),a=n(2779),s=n.n(a),c=n(2434),l=["className","value","disabled","hidden","text"];function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=c.settings.prefix,p=function(e){var t,n=e.className,r=e.value,o=e.disabled,a=e.hidden,c=e.text,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l),h=s()((f(t={},"".concat(d,"--select-option"),!0),f(t,n,n),t));return i.default.createElement("option",u({},p,{className:h,value:r,disabled:o,hidden:a}),c)};p.propTypes={className:o().string,disabled:o().bool,hidden:o().bool,text:o().string.isRequired,value:o().any.isRequired},p.defaultProps={disabled:!1,hidden:!1,value:"",text:""};const h=p},7304:(e,t,n)=>{n.d(t,{M:()=>f});var r=n(5954),o=n(3182),i=!("undefined"==typeof window||!window.document||!window.document.createElement);function a(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 r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=(0,o.Z)(),l=i?r.useLayoutEffect:r.useEffect,u=!1;function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=(0,r.useState)((function(){return u?"".concat(e,"-").concat(c()):null})),n=a(t,2),o=n[0],i=n[1];return l((function(){null===o&&i("".concat(e,"-").concat(c()))}),[c]),(0,r.useEffect)((function(){!1===u&&(u=!0)}),[]),o}},3182:(e,t,n)=>{function r(){var e=0;return function(){return++e}}n.d(t,{Z:()=>r})},6314:(e,t,n)=>{n.d(t,{U:()=>v});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(e){return"function"==typeof e}var a=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,a=e},get useDeprecatedSynchronousErrorHandling(){return a}};function c(e){setTimeout((function(){throw e}),0)}var l={closed:!0,next:function(e){},error:function(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;c(e)},complete:function(){}},u=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),f=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),d=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n,r=this,o=r._parentOrParents,a=r._ctorUnsubscribe,s=r._unsubscribe,c=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,o instanceof e)o.remove(this);else if(null!==o)for(var l=0;l<o.length;++l)o[l].remove(this);if(i(s)){a&&(this._unsubscribe=void 0);try{s.call(this)}catch(e){t=e instanceof f?p(e.errors):[e]}}if(u(c)){l=-1;for(var d=c.length;++l<d;){var h=c[l];if(null!==(n=h)&&"object"==typeof n)try{h.unsubscribe()}catch(e){t=t||[],e instanceof f?t=t.concat(p(e.errors)):t.push(e)}}}if(t)throw new f(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function p(e){return e.reduce((function(e,t){return e.concat(t instanceof f?t.errors:t)}),[])}var h=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),b=function(e){function t(n,r,o){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=l;break;case 1:if(!n){i.destination=l;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new y(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new y(i,n,r,o)}return i}return o(t,e),t.prototype[h]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(d),y=function(e){function t(t,n,r,o){var a,s=e.call(this)||this;s._parentSubscriber=t;var c=s;return i(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==l&&(i((c=Object.create(n)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=a,s._error=r,s._complete=o,s}return o(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):c(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;c(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw e;c(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(c(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(b);function v(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new m(e,t))}}var m=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new g(e,this.project,this.thisArg))},e}(),g=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return o(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(b)}}]);
3
+ //# sourceMappingURL=133.openmrs-esm-patient-programs-app.js.map
@@ -0,0 +1,14 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */