@kenyaemr/esm-patient-flags-app 3.1.1-pre.2 → 3.1.1-pre.28
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/.turbo/turbo-build.log +29 -30
- package/dist/176.js +1 -0
- package/dist/248.js +1 -1
- package/dist/251.js +2 -0
- package/dist/{871.js.LICENSE.txt → 251.js.LICENSE.txt} +0 -0
- package/dist/574.js +1 -1
- package/dist/668.js +1 -0
- package/dist/784.js +1 -1
- package/dist/784.js.LICENSE.txt +2 -7
- package/dist/856.js +1 -0
- package/dist/858.js +1 -1
- package/dist/858.js.LICENSE.txt +0 -2
- package/dist/main.js +1 -0
- package/dist/openmrs-esm-patient-flags-app.js +1 -0
- package/dist/{kenyaemr-esm-core-app.js.buildmanifest.json → openmrs-esm-patient-flags-app.js.buildmanifest.json} +103 -75
- package/dist/openmrs-esm-patient-flags-app.old +1 -0
- package/package.json +8 -13
- package/src/index.ts +8 -0
- package/src/kenyaemr-link/kenyaemr-link.component.tsx +10 -0
- package/src/patient-flags/patient-flags.component.tsx +1 -1
- package/src/patient-flags/patient-flags.scss +2 -2
- package/src/patient-flags/patient-flags.test.tsx +9 -7
- package/dist/150.js +0 -1
- package/dist/402.js +0 -1
- package/dist/635.js +0 -2
- package/dist/635.js.LICENSE.txt +0 -16
- package/dist/865.js +0 -1
- package/dist/871.js +0 -2
- package/dist/kenyaemr-esm-core-app.js +0 -1
- package/dist/kenyaemr-esm-core-app.old +0 -1
- package/src/root.scss +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
@kenyaemr/esm-patient-flags-app:build: cache hit, replaying output [
|
|
2
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [
|
|
3
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [
|
|
4
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m asset [1m[
|
|
5
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m asset [1m[32m635.js[39m[22m 228 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
6
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m asset [1m[32m402.js[39m[22m 85.5 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
7
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m asset [1m[32m871.js[39m[22m 20.2 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
1
|
+
@kenyaemr/esm-patient-flags-app:build: cache hit, replaying output [2ma04b5dd685b30763[0m
|
|
2
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0massets by chunk 450 KiB (id hint: vendors)
|
|
3
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m asset [1m[33m858.js[39m[22m [1m[33m407 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
4
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m asset [1m[32m251.js[39m[22m 24.7 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
8
5
|
[35m@kenyaemr/esm-patient-flags-app:build: [0m asset [1m[32m248.js[39m[22m 18.8 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
9
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32m784.js[39m[22m
|
|
10
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[
|
|
11
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[
|
|
12
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[
|
|
13
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[
|
|
14
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[
|
|
6
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32m784.js[39m[22m 6.47 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m 1 related asset
|
|
7
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32mopenmrs-esm-patient-flags-app.js[39m[22m 6.45 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: @kenyaemr/esm-patient-flags-app)
|
|
8
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32mmain.js[39m[22m 6.44 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: main)
|
|
9
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32mopenmrs-esm-patient-flags-app.js.buildmanifest.json[39m[22m 6.17 KiB [1m[32m[emitted][39m[22m
|
|
10
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32m176.js[39m[22m 1.44 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m
|
|
11
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32m856.js[39m[22m 1.13 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m
|
|
12
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32m668.js[39m[22m 382 bytes [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m
|
|
13
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32m574.js[39m[22m 233 bytes [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m
|
|
15
14
|
[35m@kenyaemr/esm-patient-flags-app:build: [0masset [1m[32m236.js[39m[22m 155 bytes [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m
|
|
16
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0morphan modules
|
|
17
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0mruntime modules
|
|
18
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0mbuilt modules
|
|
19
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m modules
|
|
20
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m modules
|
|
21
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
22
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
23
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
24
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
25
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
26
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
27
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1mconsume shared module (default)
|
|
28
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
29
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
30
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
15
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0morphan modules 4.11 MiB [1m[33m[orphan][39m[22m 382 modules
|
|
16
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0mruntime modules 37.3 KiB 28 modules
|
|
17
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0mbuilt modules 714 KiB (javascript) 126 bytes (share-init) 126 bytes (consume-shared) [1m[33m[built][39m[22m
|
|
18
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m javascript modules 713 KiB 36 modules
|
|
19
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m provide-module modules 126 bytes
|
|
20
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1mprovide shared module (default) @openmrs/esm-framework@4.0.1-pre.232 = ../../node_modules/@openmrs/esm-framework/src/internal.ts[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
21
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1mprovide shared module (default) react-i18next@11.17.2 = ../../node_modules/react-i18next/dist/es/index.js[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
22
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1mprovide shared module (default) react@18.2.0 = ../../node_modules/react/index.js[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
23
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m consume-shared-module modules 126 bytes
|
|
24
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1mconsume shared module (default) @openmrs/esm-framework@^4 (singleton) (fallback: ../../node_modules/@openmrs/esm-framework/src/internal.ts)[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
25
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1mconsume shared module (default) react@^18.1.0 (singleton) (fallback: ../../node_modules/react/index.js)[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1mconsume shared module (default) react-i18next@^11 (singleton) (fallback: ../../node_modules/react-i18next/dist/es/index.js)[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
27
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m optional modules 88 bytes [1m[33m[optional][39m[22m
|
|
28
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1m./translations/en.json[39m[22m 76 bytes [1m[33m[optional][39m[22m [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
29
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m [1m./translations/sw.json[39m[22m 12 bytes [1m[33m[optional][39m[22m [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
31
30
|
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
32
31
|
[35m@kenyaemr/esm-patient-flags-app:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
33
32
|
[35m@kenyaemr/esm-patient-flags-app:build: [0mThis can impact web performance.
|
|
34
33
|
[35m@kenyaemr/esm-patient-flags-app:build: [0mAssets:
|
|
35
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0m 858.js (
|
|
34
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0m 858.js (407 KiB)[39m[22m
|
|
36
35
|
[35m@kenyaemr/esm-patient-flags-app:build: [0m
|
|
37
|
-
[35m@kenyaemr/esm-patient-flags-app:build: [0mwebpack 5.
|
|
36
|
+
[35m@kenyaemr/esm-patient-flags-app:build: [0mwebpack 5.74.0 compiled with [1m[33m1 warning[39m[22m in 15231 ms
|
package/dist/176.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[176],{865:(a,n,e)=>{e.d(n,{Z:()=>i});var t=e(601),r=e.n(t),l=e(609),s=e.n(l)()(r());s.push([a.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-flags__patient-flags__flagContainer___nJhFS{margin:1rem}",""]),s.locals={flagContainer:"-esm-patient-flags__patient-flags__flagContainer___nJhFS"};const i=s},176:(a,n,e)=>{e.r(n),e.d(n,{default:()=>Z});var t=e(206),r=e.n(t),l=e(263),s=e(924),i=e(906),o=e(857),d=e(354),p=e.n(d),u=e(583),_=e.n(u),g=e(378),f=e.n(g),m=e(993),c=e.n(m),v=e(154),h=e.n(v),k=e(141),y=e.n(k),b=e(865),C={};C.styleTagTransform=y(),C.setAttributes=c(),C.insert=f().bind(null,"head"),C.domAPI=_(),C.insertStyleElement=h(),p()(b.Z,C);const F=b.Z&&b.Z.locals?b.Z.locals:void 0,Z=function(a){var n=a.patientUuid,e=(0,s.useTranslation)().t,t=function(a){var n,e,t="/ws/rest/v1/kenyaemr/flags?patientUuid=".concat(a),r=(0,o.ZP)(t,i.openmrsFetch),l=r.data,s=(r.mutate,r.error);return{patientFlags:"string"==typeof(null==l?void 0:l.data)?[]:null!==(e=null==l||null===(n=l.data)||void 0===n?void 0:n.results)&&void 0!==e?e:[],isLoading:!l&&!s,error:s}}(n),d=t.patientFlags;return t.error?r().createElement("span",null,e("errorPatientFlags","Error loading patient flags")):r().createElement("div",{className:F.flagContainer},d.map((function(a){return r().createElement(l.Vp9,{key:a,type:"magenta"},a)})))}}}]);
|
package/dist/248.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[248],{3248:(e,n,t)=>{"use strict";function r(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.r(n),t.d(n,{I18nContext:()=>k,I18nextProvider:()=>le,Trans:()=>G,Translation:()=>ue,composeInitialProps:()=>A,date:()=>ye,getDefaults:()=>I,getI18n:()=>R,getInitialProps:()=>L,initReactI18next:()=>T,number:()=>he,plural:()=>be,select:()=>ve,selectOrdinal:()=>Oe,setDefaults:()=>N,setI18n:()=>D,time:()=>me,useSSR:()=>fe,useTranslation:()=>re,withSSR:()=>ge,withTranslation:()=>ce});var a=t(9902),c=t.n(a),s=t(4896),u=t.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function f(e){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=e.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(n.name=t[1],(u()[t[1]]||"/"===e.charAt(e.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(l),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),n.attrs[c[0]]=c[1],o.lastIndex--}else i[2]&&(n.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return n}var p=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,g=Object.create(null);function y(e,n){switch(n.type){case"text":return e+n.content;case"tag":return e+="<"+n.name+(n.attrs?function(e){var n=[];for(var t in e)n.push(t+'="'+e[t]+'"');return n.length?" "+n.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?e:e+n.children.reduce(y,"")+"</"+n.name+">";case"comment":return e+"\x3c!--"+n.comment+"--\x3e"}}var m={parse:function(e,n){n||(n={}),n.components||(n.components=g);var t,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(p,(function(c,s){if(a){if(c!=="</"+t.name+">")return;a=!1}var u,l="/"!==c.charAt(1),p=c.startsWith("\x3c!--"),g=s+c.length,y=e.charAt(g);if(p){var m=f(c);return i<0?(r.push(m),r):((u=o[i]).children.push(m),r)}if(l&&(i++,"tag"===(t=f(c)).type&&n.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!y||"<"===y||t.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===i&&r.push(t),(u=o[i-1])&&u.children.push(t),o[i]=t),(!l||t.voidElement)&&(i>-1&&(t.voidElement||t.name===c.slice(2,-1))&&(i--,t=-1===i?r:o[i]),!a&&"<"!==y&&y)){u=-1===i?r:o[i].children;var h=e.indexOf("<",g),v=e.slice(g,-1===h?void 0:h);d.test(v)&&(v=" "),(h>-1&&i+u.length>=0||" "!==v)&&u.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,n){return e+y("",n)}),"")}};const h=m;var v="".replace,b=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,O={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'};function j(e){return O[e]}function w(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x,S={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},k=c().createContext();function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S=E(E({},S),e)}function I(){return S}var C=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var n,t;return n=e,(t=[{key:"addUsedNamespaces",value:function(e){var n=this;e.forEach((function(e){n.usedNamespaces[e]||(n.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}();function D(e){x=e}function R(){return x}var T={type:"3rdParty",init:function(e){N(e.options.react),D(e)}};function A(e){return function(n){return new Promise((function(t){var r=L();e.getInitialProps?e.getInitialProps(n).then((function(e){t(E(E({},e),r))})):t(r)}))}}function L(){var e=R(),n=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],t={},r={};return e.languages.forEach((function(t){r[t]={},n.forEach((function(n){r[t][n]=e.getResourceBundle(t,n)||{}}))})),t.initialI18nStore=r,t.initialLanguage=e.language,t}function z(){if(console&&console.warn){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),(e=console).warn.apply(e,t)}}var B={};function _(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];"string"==typeof n[0]&&B[n[0]]||("string"==typeof n[0]&&(B[n[0]]=new Date),z.apply(void 0,n))}function U(e,n,t){e.loadNamespaces(n,(function(){e.isInitialized?t():e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}))}function H(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.languages[0],o=!!n.options&&n.options.fallbackLng,i=n.languages[n.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,t){var r=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===r||2===r};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e)||!n.hasResourceBundle(r,e)&&n.services.backendConnector.backend&&(!n.options.resources||n.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function K(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!n.languages||!n.languages.length)return _("i18n.languages were undefined or empty",n.languages),!0;var r=void 0!==n.options.ignoreJSONStructure;return r?n.hasLoadedNamespace(e,{precheck:function(n,r){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,e))return!1}}):H(e,n,t)}function V(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var F=["format"],W=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function q(e,n){if(!e)return!1;var t=e.props?e.props.children:e.children;return n?t.length>0:!!t}function Y(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function J(e){return Array.isArray(e)?e:[e]}function Z(e,n){if(!e)return"";var t="",i=J(e),a=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach((function(e,i){if("string"==typeof e)t+="".concat(e);else if(c().isValidElement(e)){var s=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===s)t+="<".concat(e.type,"/>");else if(l||u&&0===s)if(e.props.i18nIsDynamicList)t+="<".concat(i,"></").concat(i,">");else if(u&&1===s&&"string"==typeof l)t+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var f=Z(l,n);t+="<".concat(i,">").concat(f,"</").concat(i,">")}else t+="<".concat(i,"></").concat(i,">")}else if(null===e)z("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===o(e)){var p=e.format,d=r(e,F),g=Object.keys(d);if(1===g.length){var y=p?"".concat(g[0],", ").concat(p):g[0];t+="{{".concat(y,"}}")}else z("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else z("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),t}function G(e){var n=e.children,t=e.count,i=e.parent,s=e.i18nKey,u=e.context,l=e.tOptions,f=void 0===l?{}:l,p=e.values,d=e.defaults,g=e.components,y=e.ns,m=e.i18n,O=e.t,w=e.shouldUnescape,P=r(e,W),E=(0,a.useContext)(k)||{},x=E.i18n,S=E.defaultNS,N=m||x||R();if(!N)return _("You will need to pass in an i18next instance by using i18nextReactModule"),n;var C=O||N.t.bind(N)||function(e){return e};u&&(f.context=u);var D=$($({},I()),N.options&&N.options.react),T=y||C.ns||S||N.options&&N.options.defaultNS;T="string"==typeof T?[T]:T||["translation"];var A=d||Z(n,D)||D.transEmptyNodeValue||s,L=D.hashTransKey,z=s||(L?L(A):A),B=p?f.interpolation:{interpolation:$($({},f.interpolation),{},{prefix:"#$?",suffix:"?$#"})},U=$($($($({},f),{},{count:t},p),B),{},{defaultValue:A,ns:T}),H=function(e,n,t,r,i,a){if(""===n)return[];var s=r.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(s.join("|")).test(n);if(!e&&!u)return[n];var l={};!function e(n){J(n).forEach((function(n){"string"!=typeof n&&(q(n)?e(Y(n)):"object"!==o(n)||c().isValidElement(n)||Object.assign(l,n))}))}(e);var f=h.parse("<0>".concat(n,"</0>")),p=$($({},l),i);function d(e,n,t){var r=Y(e),o=y(r,n.children,t);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return c().isValidElement(e)}))}(r)&&0===o.length?r:o}function g(e,n,t,r,o){e.dummy&&(e.children=n),t.push(c().cloneElement(e,$($({},e.props),{},{key:r}),o?void 0:n))}function y(n,i,l){var f=J(n);return J(i).reduce((function(n,i,m){var h,O,w,P,E=i.children&&i.children[0]&&i.children[0].content&&t.services.interpolator.interpolate(i.children[0].content,p,t.language);if("tag"===i.type){var x=f[parseInt(i.name,10)];!x&&1===l.length&&l[0][i.name]&&(x=l[0][i.name]),x||(x={});var S=0!==Object.keys(i.attrs).length?(O={props:i.attrs},(P=$({},w=x)).props=Object.assign(O.props,w.props),P):x,k=c().isValidElement(S),N=k&&q(i,!0)&&!i.voidElement,I=u&&"object"===o(S)&&S.dummy&&!k,C="object"===o(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof S){var D=t.services.interpolator.interpolate(S,p,t.language);n.push(D)}else if(q(S)||N)g(S,d(S,i,l),n,m);else if(I){var R=y(f,i.children,l);n.push(c().cloneElement(S,$($({},S.props),{},{key:m}),R))}else if(Number.isNaN(parseFloat(i.name)))if(C)g(S,d(S,i,l),n,m,i.voidElement);else if(r.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1)if(i.voidElement)n.push(c().createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var T=y(f,i.children,l);n.push(c().createElement(i.name,{key:"".concat(i.name,"-").concat(m)},T))}else if(i.voidElement)n.push("<".concat(i.name," />"));else{var A=y(f,i.children,l);n.push("<".concat(i.name,">").concat(A,"</").concat(i.name,">"))}else if("object"!==o(S)||k)1===i.children.length&&E?n.push(c().cloneElement(S,$($({},S.props),{},{key:m}),E)):n.push(c().cloneElement(S,$($({},S.props),{},{key:m})));else{var L=i.children[0]?E:null;L&&n.push(L)}}else if("text"===i.type){var z=r.transWrapTextNodes,B=a?(h=t.services.interpolator.interpolate(i.content,p,t.language),v.call(h,b,j)):t.services.interpolator.interpolate(i.content,p,t.language);z?n.push(c().createElement(z,{key:"".concat(i.name,"-").concat(m)},B)):n.push(B)}return n}),[])}return Y(y([{dummy:!0,children:e||[]}],f,J(e||[]))[0])}(g||n,z?C(z,U):A,N,D,U,w),K=void 0!==i?i:D.defaultTransParent;return K?c().createElement(K,P,H):H}function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function X(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 r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(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(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Q(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.")}()}function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te=function(e,n){var t=(0,a.useRef)();return(0,a.useEffect)((function(){t.current=n?t.current:e}),[e,n]),t.current};function re(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.i18n,r=(0,a.useContext)(k)||{},o=r.i18n,i=r.defaultNS,c=t||o||R();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new C),!c){_("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}c.options.react&&void 0!==c.options.react.wait&&_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=ne(ne(ne({},I()),c.options.react),n),f=l.useSuspense,p=l.keyPrefix,d=e||i||c.options&&c.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(d);var g=(c.isInitialized||c.initializedStoreOnce)&&d.every((function(e){return K(e,c,l)}));function y(){return c.getFixedT(null,"fallback"===l.nsMode?d:d[0],p)}var m=(0,a.useState)(y),h=X(m,2),v=h[0],b=h[1],O=d.join(),j=te(O),w=(0,a.useRef)(!0);(0,a.useEffect)((function(){var e=l.bindI18n,n=l.bindI18nStore;function t(){w.current&&b(y)}return w.current=!0,g||f||U(c,d,(function(){w.current&&b(y)})),g&&j&&j!==O&&w.current&&b(y),e&&c&&c.on(e,t),n&&c&&c.store.on(n,t),function(){w.current=!1,e&&c&&e.split(" ").forEach((function(e){return c.off(e,t)})),n&&c&&n.split(" ").forEach((function(e){return c.store.off(e,t)}))}}),[c,O]);var P=(0,a.useRef)(!0);(0,a.useEffect)((function(){w.current&&!P.current&&b(y),P.current=!1}),[c]);var E=[v,c,g];if(E.t=v,E.i18n=c,E.ready=g,g)return E;if(!g&&!f)return E;throw new Promise((function(e){U(c,d,(function(){e()}))}))}var oe=["forwardedRef"];function ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){function o(o){var i=o.forwardedRef,a=r(o,oe),s=X(re(e,ae(ae({},a),{},{keyPrefix:n.keyPrefix})),3),u=s[0],l=s[1],f=s[2],p=ae(ae({},a),{},{t:u,i18n:l,tReady:f});return n.withRef&&i?p.ref=i:!n.withRef&&i&&(p.forwardedRef=i),c().createElement(t,p)}return o.displayName="withI18nextTranslation(".concat(V(t),")"),o.WrappedComponent=t,n.withRef?c().forwardRef((function(e,n){return c().createElement(o,Object.assign({},e,{forwardedRef:n}))})):o}}var se=["ns","children"];function ue(e){var n=e.ns,t=e.children,o=X(re(n,r(e,se)),3),i=o[0],a=o[1],c=o[2];return t(i,{i18n:a,lng:a.language},c)}function le(e){var n=e.i18n,t=e.defaultNS,r=e.children,o=(0,a.useMemo)((function(){return{i18n:n,defaultNS:t}}),[n,t]);return(0,a.createElement)(k.Provider,{value:o},r)}function fe(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.i18n,o=(0,a.useContext)(k)||{},i=o.i18n,c=r||i||R();c.options&&c.options.isClone||(e&&!c.initializedStoreOnce&&(c.services.resourceStore.data=e,c.options.ns=Object.values(e).reduce((function(e,n){return Object.keys(n).forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e}),c.options.ns),c.initializedStoreOnce=!0,c.isInitialized=!0),n&&!c.initializedLanguageOnce&&(c.changeLanguage(n),c.initializedLanguageOnce=!0))}var pe=["initialI18nStore","initialLanguage"];function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ge(){return function(e){function n(n){var t=n.initialI18nStore,o=n.initialLanguage,a=r(n,pe);return fe(t,o),c().createElement(e,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},a))}return n.getInitialProps=A(e),n.displayName="withI18nextSSR(".concat(V(e),")"),n.WrappedComponent=e,n}}var ye=function(){return""},me=function(){return""},he=function(){return""},ve=function(){return""},be=function(){return""},Oe=function(){return""}},4896:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}}}]);
|
|
1
|
+
(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[248],{248:(e,n,t)=>{"use strict";function r(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.r(n),t.d(n,{I18nContext:()=>k,I18nextProvider:()=>le,Trans:()=>G,Translation:()=>ue,composeInitialProps:()=>A,date:()=>ye,getDefaults:()=>I,getI18n:()=>R,getInitialProps:()=>L,initReactI18next:()=>T,number:()=>he,plural:()=>be,select:()=>ve,selectOrdinal:()=>Oe,setDefaults:()=>N,setI18n:()=>D,time:()=>me,useSSR:()=>fe,useTranslation:()=>re,withSSR:()=>ge,withTranslation:()=>ce});var a=t(206),c=t.n(a),s=t(896),u=t.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function f(e){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=e.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(n.name=t[1],(u()[t[1]]||"/"===e.charAt(e.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(l),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),n.attrs[c[0]]=c[1],o.lastIndex--}else i[2]&&(n.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return n}var p=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,g=Object.create(null);function y(e,n){switch(n.type){case"text":return e+n.content;case"tag":return e+="<"+n.name+(n.attrs?function(e){var n=[];for(var t in e)n.push(t+'="'+e[t]+'"');return n.length?" "+n.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?e:e+n.children.reduce(y,"")+"</"+n.name+">";case"comment":return e+"\x3c!--"+n.comment+"--\x3e"}}var m={parse:function(e,n){n||(n={}),n.components||(n.components=g);var t,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(p,(function(c,s){if(a){if(c!=="</"+t.name+">")return;a=!1}var u,l="/"!==c.charAt(1),p=c.startsWith("\x3c!--"),g=s+c.length,y=e.charAt(g);if(p){var m=f(c);return i<0?(r.push(m),r):((u=o[i]).children.push(m),r)}if(l&&(i++,"tag"===(t=f(c)).type&&n.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!y||"<"===y||t.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===i&&r.push(t),(u=o[i-1])&&u.children.push(t),o[i]=t),(!l||t.voidElement)&&(i>-1&&(t.voidElement||t.name===c.slice(2,-1))&&(i--,t=-1===i?r:o[i]),!a&&"<"!==y&&y)){u=-1===i?r:o[i].children;var h=e.indexOf("<",g),v=e.slice(g,-1===h?void 0:h);d.test(v)&&(v=" "),(h>-1&&i+u.length>=0||" "!==v)&&u.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,n){return e+y("",n)}),"")}};const h=m;var v="".replace,b=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,O={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'};function j(e){return O[e]}function w(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x,S={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},k=c().createContext();function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S=E(E({},S),e)}function I(){return S}var C=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var n,t;return n=e,(t=[{key:"addUsedNamespaces",value:function(e){var n=this;e.forEach((function(e){n.usedNamespaces[e]||(n.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}();function D(e){x=e}function R(){return x}var T={type:"3rdParty",init:function(e){N(e.options.react),D(e)}};function A(e){return function(n){return new Promise((function(t){var r=L();e.getInitialProps?e.getInitialProps(n).then((function(e){t(E(E({},e),r))})):t(r)}))}}function L(){var e=R(),n=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],t={},r={};return e.languages.forEach((function(t){r[t]={},n.forEach((function(n){r[t][n]=e.getResourceBundle(t,n)||{}}))})),t.initialI18nStore=r,t.initialLanguage=e.language,t}function z(){if(console&&console.warn){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),(e=console).warn.apply(e,t)}}var B={};function _(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];"string"==typeof n[0]&&B[n[0]]||("string"==typeof n[0]&&(B[n[0]]=new Date),z.apply(void 0,n))}function U(e,n,t){e.loadNamespaces(n,(function(){e.isInitialized?t():e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}))}function H(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.languages[0],o=!!n.options&&n.options.fallbackLng,i=n.languages[n.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,t){var r=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===r||2===r};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e)||!n.hasResourceBundle(r,e)&&n.services.backendConnector.backend&&(!n.options.resources||n.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function K(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!n.languages||!n.languages.length)return _("i18n.languages were undefined or empty",n.languages),!0;var r=void 0!==n.options.ignoreJSONStructure;return r?n.hasLoadedNamespace(e,{precheck:function(n,r){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,e))return!1}}):H(e,n,t)}function V(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var F=["format"],W=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function q(e,n){if(!e)return!1;var t=e.props?e.props.children:e.children;return n?t.length>0:!!t}function Y(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function J(e){return Array.isArray(e)?e:[e]}function Z(e,n){if(!e)return"";var t="",i=J(e),a=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach((function(e,i){if("string"==typeof e)t+="".concat(e);else if(c().isValidElement(e)){var s=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===s)t+="<".concat(e.type,"/>");else if(l||u&&0===s)if(e.props.i18nIsDynamicList)t+="<".concat(i,"></").concat(i,">");else if(u&&1===s&&"string"==typeof l)t+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var f=Z(l,n);t+="<".concat(i,">").concat(f,"</").concat(i,">")}else t+="<".concat(i,"></").concat(i,">")}else if(null===e)z("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===o(e)){var p=e.format,d=r(e,F),g=Object.keys(d);if(1===g.length){var y=p?"".concat(g[0],", ").concat(p):g[0];t+="{{".concat(y,"}}")}else z("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else z("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),t}function G(e){var n=e.children,t=e.count,i=e.parent,s=e.i18nKey,u=e.context,l=e.tOptions,f=void 0===l?{}:l,p=e.values,d=e.defaults,g=e.components,y=e.ns,m=e.i18n,O=e.t,w=e.shouldUnescape,P=r(e,W),E=(0,a.useContext)(k)||{},x=E.i18n,S=E.defaultNS,N=m||x||R();if(!N)return _("You will need to pass in an i18next instance by using i18nextReactModule"),n;var C=O||N.t.bind(N)||function(e){return e};u&&(f.context=u);var D=$($({},I()),N.options&&N.options.react),T=y||C.ns||S||N.options&&N.options.defaultNS;T="string"==typeof T?[T]:T||["translation"];var A=d||Z(n,D)||D.transEmptyNodeValue||s,L=D.hashTransKey,z=s||(L?L(A):A),B=p?f.interpolation:{interpolation:$($({},f.interpolation),{},{prefix:"#$?",suffix:"?$#"})},U=$($($($({},f),{},{count:t},p),B),{},{defaultValue:A,ns:T}),H=function(e,n,t,r,i,a){if(""===n)return[];var s=r.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(s.join("|")).test(n);if(!e&&!u)return[n];var l={};!function e(n){J(n).forEach((function(n){"string"!=typeof n&&(q(n)?e(Y(n)):"object"!==o(n)||c().isValidElement(n)||Object.assign(l,n))}))}(e);var f=h.parse("<0>".concat(n,"</0>")),p=$($({},l),i);function d(e,n,t){var r=Y(e),o=y(r,n.children,t);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return c().isValidElement(e)}))}(r)&&0===o.length?r:o}function g(e,n,t,r,o){e.dummy&&(e.children=n),t.push(c().cloneElement(e,$($({},e.props),{},{key:r}),o?void 0:n))}function y(n,i,l){var f=J(n);return J(i).reduce((function(n,i,m){var h,O,w,P,E=i.children&&i.children[0]&&i.children[0].content&&t.services.interpolator.interpolate(i.children[0].content,p,t.language);if("tag"===i.type){var x=f[parseInt(i.name,10)];!x&&1===l.length&&l[0][i.name]&&(x=l[0][i.name]),x||(x={});var S=0!==Object.keys(i.attrs).length?(O={props:i.attrs},(P=$({},w=x)).props=Object.assign(O.props,w.props),P):x,k=c().isValidElement(S),N=k&&q(i,!0)&&!i.voidElement,I=u&&"object"===o(S)&&S.dummy&&!k,C="object"===o(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof S){var D=t.services.interpolator.interpolate(S,p,t.language);n.push(D)}else if(q(S)||N)g(S,d(S,i,l),n,m);else if(I){var R=y(f,i.children,l);n.push(c().cloneElement(S,$($({},S.props),{},{key:m}),R))}else if(Number.isNaN(parseFloat(i.name)))if(C)g(S,d(S,i,l),n,m,i.voidElement);else if(r.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1)if(i.voidElement)n.push(c().createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var T=y(f,i.children,l);n.push(c().createElement(i.name,{key:"".concat(i.name,"-").concat(m)},T))}else if(i.voidElement)n.push("<".concat(i.name," />"));else{var A=y(f,i.children,l);n.push("<".concat(i.name,">").concat(A,"</").concat(i.name,">"))}else if("object"!==o(S)||k)1===i.children.length&&E?n.push(c().cloneElement(S,$($({},S.props),{},{key:m}),E)):n.push(c().cloneElement(S,$($({},S.props),{},{key:m})));else{var L=i.children[0]?E:null;L&&n.push(L)}}else if("text"===i.type){var z=r.transWrapTextNodes,B=a?(h=t.services.interpolator.interpolate(i.content,p,t.language),v.call(h,b,j)):t.services.interpolator.interpolate(i.content,p,t.language);z?n.push(c().createElement(z,{key:"".concat(i.name,"-").concat(m)},B)):n.push(B)}return n}),[])}return Y(y([{dummy:!0,children:e||[]}],f,J(e||[]))[0])}(g||n,z?C(z,U):A,N,D,U,w),K=void 0!==i?i:D.defaultTransParent;return K?c().createElement(K,P,H):H}function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function X(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 r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(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(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Q(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.")}()}function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te=function(e,n){var t=(0,a.useRef)();return(0,a.useEffect)((function(){t.current=n?t.current:e}),[e,n]),t.current};function re(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.i18n,r=(0,a.useContext)(k)||{},o=r.i18n,i=r.defaultNS,c=t||o||R();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new C),!c){_("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}c.options.react&&void 0!==c.options.react.wait&&_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=ne(ne(ne({},I()),c.options.react),n),f=l.useSuspense,p=l.keyPrefix,d=e||i||c.options&&c.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(d);var g=(c.isInitialized||c.initializedStoreOnce)&&d.every((function(e){return K(e,c,l)}));function y(){return c.getFixedT(null,"fallback"===l.nsMode?d:d[0],p)}var m=(0,a.useState)(y),h=X(m,2),v=h[0],b=h[1],O=d.join(),j=te(O),w=(0,a.useRef)(!0);(0,a.useEffect)((function(){var e=l.bindI18n,n=l.bindI18nStore;function t(){w.current&&b(y)}return w.current=!0,g||f||U(c,d,(function(){w.current&&b(y)})),g&&j&&j!==O&&w.current&&b(y),e&&c&&c.on(e,t),n&&c&&c.store.on(n,t),function(){w.current=!1,e&&c&&e.split(" ").forEach((function(e){return c.off(e,t)})),n&&c&&n.split(" ").forEach((function(e){return c.store.off(e,t)}))}}),[c,O]);var P=(0,a.useRef)(!0);(0,a.useEffect)((function(){w.current&&!P.current&&b(y),P.current=!1}),[c]);var E=[v,c,g];if(E.t=v,E.i18n=c,E.ready=g,g)return E;if(!g&&!f)return E;throw new Promise((function(e){U(c,d,(function(){e()}))}))}var oe=["forwardedRef"];function ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){function o(o){var i=o.forwardedRef,a=r(o,oe),s=X(re(e,ae(ae({},a),{},{keyPrefix:n.keyPrefix})),3),u=s[0],l=s[1],f=s[2],p=ae(ae({},a),{},{t:u,i18n:l,tReady:f});return n.withRef&&i?p.ref=i:!n.withRef&&i&&(p.forwardedRef=i),c().createElement(t,p)}return o.displayName="withI18nextTranslation(".concat(V(t),")"),o.WrappedComponent=t,n.withRef?c().forwardRef((function(e,n){return c().createElement(o,Object.assign({},e,{forwardedRef:n}))})):o}}var se=["ns","children"];function ue(e){var n=e.ns,t=e.children,o=X(re(n,r(e,se)),3),i=o[0],a=o[1],c=o[2];return t(i,{i18n:a,lng:a.language},c)}function le(e){var n=e.i18n,t=e.defaultNS,r=e.children,o=(0,a.useMemo)((function(){return{i18n:n,defaultNS:t}}),[n,t]);return(0,a.createElement)(k.Provider,{value:o},r)}function fe(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.i18n,o=(0,a.useContext)(k)||{},i=o.i18n,c=r||i||R();c.options&&c.options.isClone||(e&&!c.initializedStoreOnce&&(c.services.resourceStore.data=e,c.options.ns=Object.values(e).reduce((function(e,n){return Object.keys(n).forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e}),c.options.ns),c.initializedStoreOnce=!0,c.isInitialized=!0),n&&!c.initializedLanguageOnce&&(c.changeLanguage(n),c.initializedLanguageOnce=!0))}var pe=["initialI18nStore","initialLanguage"];function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ge(){return function(e){function n(n){var t=n.initialI18nStore,o=n.initialLanguage,a=r(n,pe);return fe(t,o),c().createElement(e,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},a))}return n.getInitialProps=A(e),n.displayName="withI18nextSSR(".concat(V(e),")"),n.WrappedComponent=e,n}}var ye=function(){return""},me=function(){return""},he=function(){return""},ve=function(){return""},be=function(){return""},Oe=function(){return""}},896:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}}}]);
|
package/dist/251.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 251.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[251],{263:(e,t,r)=>{"use strict";r.d(t,{Vp9:()=>z});var n={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?n.enableCssCustomProperties=!0:n.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?n.enableUseControlledStateWithValue=!0:n.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?n.enableCssGrid=!0:n.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE&&"true"===process.env.CARBON_ENABLE_V11_RELEASE?n.enableV11Release=!0:n.enableV11Release=!1}catch(e){n.enableCssCustomProperties=!1,n.enableUseControlledStateWithValue=!1,n.enableCssGrid=!1,n.enableV11Release=!1}var a=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:n.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:n.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:n.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:n.enableV11Release}];function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(e,t)||c(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 c(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}for(var s=function(){function e(t){var r=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){r.flags.set(e,t[e])}))}var t,r;return t=e,r=[{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(r){t.flags.set(r,e[r])}))}},{key:"mergeWithScope",value:function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 o,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}(e.flags);try{for(r.s();!(t=r.n()).done;){var n=i(t.value,2),a=n[0],o=n[1];this.flags.has(a)||this.flags.set(a,o)}}catch(e){r.e(e)}finally{r.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],r&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=new s(undefined),f=0;f<a.length;f++){var d=a[f];l.add(d.name,d.enabled)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}!function(){l.merge.apply(l,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0});var v=r(980),h=r.n(v),y=r(206),g=r.n(y),m=r(779),O=r.n(m);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var x=["width","height","viewBox"],R=["tabindex"],j={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var A=["className","children","tabIndex"],I=["tabindex"],N=g().forwardRef((function(e,t){var r=e.className,n=e.children,a=e.tabIndex,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,o=S(e,x),i=o.tabindex,c=S(o,R),u=E(E(E({},j),c),{},{width:t,height:r,viewBox:a});return u["aria-label"]||u["aria-labelledby"]||u.title?(u.role="img",null!=i&&(u.focusable="true",u.tabindex=i)):u["aria-hidden"]=!0,u}(P(P({},k(e,A)),{},{tabindex:a})),i=o.tabindex,c=k(o,I);return r&&(c.className=r),null!=i&&(c.tabIndex=i),t&&(c.ref=t),g().createElement("svg",c,n)}));N.displayName="Icon",N.propTypes={"aria-hidden":h().string,"aria-label":h().string,"aria-labelledby":h().string,children:h().node,className:h().string,height:h().oneOfType([h().number,h().string]),preserveAspectRatio:h().string,tabIndex:h().string,viewBox:h().string,width:h().oneOfType([h().number,h().string]),xmlns:h().string},N.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"},h().oneOfType([h().number,h().string]);var L,V,D,B=["children","size"],M=g().forwardRef((function(e,t){var r=e.children,n=e.size,a=void 0===n?16:n,o=k(e,B);return g().createElement(N,P({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},o),L||(L=g().createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)})),F=g().createContext("cds"),U=["children","className","id","type","filter","renderIcon","title","disabled","onClose","size"],W=(D=0,function(){return++D}),G={red:"Red",magenta:"Magenta",purple:"Purple",blue:"Blue",cyan:"Cyan",teal:"Teal",green:"Green",gray:"Gray","cool-gray":"Cool-Gray","warm-gray":"Warm-Gray","high-contrast":"High-Contrast",outline:"Outline"},H=function(e){var t,r=e.children,n=e.className,a=e.id,o=e.type,i=e.filter,c=e.renderIcon,u=e.title,s=e.disabled,l=e.onClose,f=e.size,d=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,U),v=g().useContext(F),h=a||"tag-".concat(W()),y=O()("".concat(v,"--tag"),n,(p(t={},"".concat(v,"--tag--disabled"),s),p(t,"".concat(v,"--tag--filter"),i),p(t,"".concat(v,"--tag--").concat(f),f),p(t,"".concat(v,"--tag--").concat(o),o),p(t,"".concat(v,"--tag--interactive"),d.onClick&&!i),t));if(i)return g().createElement("div",b({className:y,"aria-label":void 0!==u?"".concat(u," ").concat(r):"Clear filter ".concat(r),id:h},d),g().createElement("span",{className:"".concat(v,"--tag__label"),title:"string"==typeof r?r:null},null!=r?r:G[o]),g().createElement("button",{type:"button",className:"".concat(v,"--tag__close-icon"),onClick:function(e){l&&(e.stopPropagation(),l(e))},disabled:s,"aria-labelledby":h,title:u},V||(V=g().createElement(M,null))));var m=d.onClick?"button":"div";return g().createElement(m,b({disabled:"button"===m?s:null,className:y,id:h},d),c?g().createElement("div",{className:"".concat(v,"--tag__custom-icon")},g().createElement(c,null)):"",g().createElement("span",{title:"string"==typeof r?r:null},null!=r?r:G[o]))};H.propTypes={children:h().node,className:h().string,disabled:h().bool,filter:h().bool,id:h().string,onClose:h().func,renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(["sm","md"]),title:h().string,type:h().oneOf(Object.keys(G))};var z=H},779:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var i=a.apply(null,r);i&&e.push(i)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(i[u]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&i[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),a&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=a):l[4]="".concat(a)),t.push(l))}},t}},601:e=>{"use strict";e.exports=function(e){return e[1]}},354:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},i=[],c=0;c<e.length;c++){var u=e[c],s=n.base?u[0]+n.base:u[0],l=o[s]||0,f="".concat(s," ").concat(l);o[s]=l+1;var d=r(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var b=a(p,n);n.byIndex=c,t.splice(c,0,{identifier:f,updater:b,references:1})}i.push(f)}return i}function a(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,a){var o=n(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=r(o[i]);t[c].references--}for(var u=n(e,a),s=0;s<o.length;s++){var l=r(o[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},378:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},154:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},993:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},583:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},141:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},262:(e,t,r)=>{"use strict";var n=r(586);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},980:(e,t,r)=>{e.exports=r(262)()},586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},857:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>$});var n=r(206);function a(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{u(n.next(e))}catch(e){o(e)}}function c(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}u((n=n.apply(e,t||[])).next())}))}function o(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],n=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}var i,c=function(){},u=c(),s=Object,l=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return s.assign({},e,t)},p="undefined",b=function(){return typeof window!=p},v=new WeakMap,h=0,y=function(e){var t,r,n=typeof e,a=e&&e.constructor,o=a==Date;if(s(e)!==e||o||a==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=v.get(e))return t;if(t=++h+"~",v.set(e,t),a==Array){for(t="@",r=0;r<e.length;r++)t+=y(e[r])+",";v.set(e,t)}if(a==s){t="#";for(var i=s.keys(e).sort();!l(r=i.pop());)l(e[r])||(t+=r+":"+y(e[r])+",");v.set(e,t)}}return t},g=!0,m=b(),O=typeof document!=p,w=m&&window.addEventListener?window.addEventListener.bind(window):c,E=O?document.addEventListener.bind(document):c,C=m&&window.removeEventListener?window.removeEventListener.bind(window):c,S=O?document.removeEventListener.bind(document):c,x={isOnline:function(){return g},isVisible:function(){var e=O&&document.visibilityState;return l(e)||"hidden"!==e}},R={initFocus:function(e){return E("visibilitychange",e),w("focus",e),function(){S("visibilitychange",e),C("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return w("online",t),w("offline",r),function(){C("online",t),C("offline",r)}}},j=!b()||"Deno"in window,_=j?n.useEffect:n.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,T=!j&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.saveData),k=function(e){if(f(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t,e?"$swr$"+e:""]},A=new WeakMap,I=function(e,t,r,n,a,o,i){void 0===i&&(i=!0);var c=A.get(e),u=c[0],s=c[1],l=c[3],f=u[t],d=s[t];if(i&&d)for(var p=0;p<d.length;++p)d[p](r,n,a);return o&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},N=0,L=function(){return++N},V=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(void 0,void 0,void 0,(function(){var t,r,n,a,i,c,s,p,b,v,h,y,g,m,O,w,E,C,S,x,R;return o(this,(function(o){switch(o.label){case 0:if(t=e[0],r=e[1],n=e[2],a=e[3],c=!!l((i="boolean"==typeof a?{revalidate:a}:a||{}).populateCache)||i.populateCache,s=!1!==i.revalidate,p=!1!==i.rollbackOnError,b=i.optimisticData,v=k(r),h=v[0],y=v[2],!h)return[2];if(g=A.get(t),m=g[2],e.length<3)return[2,I(t,h,t.get(h),u,u,s,!0)];if(O=n,E=L(),m[h]=[E,0],C=!l(b),S=t.get(h),C&&(x=f(b)?b(S):b,t.set(h,x),I(t,h,x)),f(O))try{O=O(t.get(h))}catch(e){w=e}return O&&f(O.then)?[4,O.catch((function(e){w=e}))]:[3,2];case 1:if(O=o.sent(),E!==m[h][0]){if(w)throw w;return[2,O]}w&&C&&p&&(c=!0,O=S,t.set(h,S)),o.label=2;case 2:return c&&(w||(f(c)&&(O=c(O,S)),t.set(h,O)),t.set(y,d(t.get(y),{error:w}))),m[h][1]=L(),[4,I(t,h,O,w,u,s,!!c)];case 3:if(R=o.sent(),w)throw w;return[2,c?R:O]}}))}))},D=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},B=function(e,t){if(!A.has(e)){var r=d(R,t),n={},a=V.bind(u,e),o=c;if(A.set(e,[n,{},{},{},a]),!j){var i=r.initFocus(setTimeout.bind(u,D.bind(u,n,0))),s=r.initReconnect(setTimeout.bind(u,D.bind(u,n,1)));o=function(){i&&i(),s&&s(),A.delete(e)}}return[e,a,o]}return[e,A.get(e)[4]]},M=B(new Map),F=M[0],U=M[1],W=d({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:function(e,t,r,n,a){var o=r.errorRetryCount,i=a.retryCount,c=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!l(o)&&i>o||setTimeout(n,c,a)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:F,mutate:U,fallback:{}},x),G=function(e,t){var r=d(e,t);if(t){var n=e.use,a=e.fallback,o=t.use,i=t.fallback;n&&o&&(r.use=n.concat(o)),a&&i&&(r.fallback=d(a,i))}return r},H=(0,n.createContext)({}),z=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},q=function(){return d(W,(0,n.useContext)(H))},J=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},Y={dedupe:!0},$=(s.defineProperty((function(e){var t=e.value,r=G((0,n.useContext)(H),t),a=t&&t.provider,o=(0,n.useState)((function(){return a?B(a(r.cache||F),t):u}))[0];return o&&(r.cache=o[0],r.mutate=o[1]),_((function(){return o?o[2]:u}),[]),(0,n.createElement)(H.Provider,d(e,{value:r}))}),"default",{value:W}),i=function(e,t,r){var i=r.cache,c=r.compare,s=r.fallbackData,v=r.suspense,h=r.revalidateOnMount,y=r.refreshInterval,g=r.refreshWhenHidden,m=r.refreshWhenOffline,O=A.get(i),w=O[0],E=O[1],C=O[2],S=O[3],x=k(e),R=x[0],P=x[1],T=x[2],N=(0,n.useRef)(!1),D=(0,n.useRef)(!1),B=(0,n.useRef)(R),M=(0,n.useRef)(t),F=(0,n.useRef)(r),U=function(){return F.current},W=function(){return U().isVisible()&&U().isOnline()},G=function(e){return i.set(T,d(i.get(T),e))},H=i.get(R),z=l(s)?r.fallback[R]:s,q=l(H)?z:H,$=i.get(T)||{},Z=$.error,K=!N.current,Q=function(){return K&&!l(h)?h:!U().isPaused()&&(v?!l(q)&&r.revalidateIfStale:l(q)||r.revalidateIfStale)},X=!(!R||!t)&&(!!$.isValidating||K&&Q()),ee=function(e,t){var r=(0,n.useState)({})[1],a=(0,n.useRef)(e),o=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,n.useCallback)((function(e){var n=!1,i=a.current;for(var c in e){var u=c;i[u]!==e[u]&&(i[u]=e[u],o.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return _((function(){a.current=e})),[a,o.current,i]}({data:q,error:Z,isValidating:X},D),te=ee[0],re=ee[1],ne=ee[2],ae=(0,n.useCallback)((function(e){return a(void 0,void 0,void 0,(function(){var t,n,a,s,d,p,b,v,h,y,g,m,O;return o(this,(function(o){switch(o.label){case 0:if(t=M.current,!R||!t||D.current||U().isPaused())return[2,!1];s=!0,d=e||{},p=!S[R]||!d.dedupe,b=function(){return!D.current&&R===B.current&&N.current},v=function(){var e=S[R];e&&e[1]===a&&delete S[R]},h={isValidating:!1},y=function(){G({isValidating:!1}),b()&&ne(h)},G({isValidating:!0}),ne({isValidating:!0}),o.label=1;case 1:return o.trys.push([1,3,,4]),p&&(I(i,R,te.current.data,te.current.error,!0),r.loadingTimeout&&!i.get(R)&&setTimeout((function(){s&&b()&&U().onLoadingSlow(R,r)}),r.loadingTimeout),S[R]=[t.apply(void 0,P),L()]),O=S[R],n=O[0],a=O[1],[4,n];case 2:return n=o.sent(),p&&setTimeout(v,r.dedupingInterval),S[R]&&S[R][1]===a?(G({error:u}),h.error=u,g=C[R],!l(g)&&(a<=g[0]||a<=g[1]||0===g[1])?(y(),p&&b()&&U().onDiscarded(R),[2,!1]):(c(te.current.data,n)?h.data=te.current.data:h.data=n,c(i.get(R),n)||i.set(R,n),p&&b()&&U().onSuccess(n,R,r),[3,4])):(p&&b()&&U().onDiscarded(R),[2,!1]);case 3:return m=o.sent(),v(),U().isPaused()||(G({error:m}),h.error=m,p&&b()&&(U().onError(m,R,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(m))&&W()&&U().onErrorRetry(m,R,r,ae,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,y(),b()&&p&&I(i,R,h.data,h.error,!1),[2,!0]}}))}))}),[R]),oe=(0,n.useCallback)(V.bind(u,i,(function(){return B.current})),[]);if(_((function(){M.current=t,F.current=r})),_((function(){if(R){var e=R!==B.current,t=ae.bind(u,Y),r=0,n=J(R,E,(function(e,t,r){ne(d({error:t,isValidating:r},c(te.current.data,e)?u:{data:e}))})),a=J(R,w,(function(e){if(0==e){var n=Date.now();U().revalidateOnFocus&&n>r&&W()&&(r=n+U().focusThrottleInterval,t())}else if(1==e)U().revalidateOnReconnect&&W()&&t();else if(2==e)return ae()}));return D.current=!1,B.current=R,N.current=!0,e&&ne({data:q,error:Z,isValidating:X}),Q()&&(l(q)||j?t():(o=t,b()&&typeof window.requestAnimationFrame!=p?window.requestAnimationFrame(o):setTimeout(o,1))),function(){D.current=!0,n(),a()}}var o}),[R,ae]),_((function(){var e;function t(){var t=f(y)?y(q):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){te.current.error||!g&&!U().isVisible()||!m&&!U().isOnline()?t():ae(Y).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,g,m,ae]),(0,n.useDebugValue)(q),v&&l(q)&&R)throw M.current=t,F.current=r,D.current=!1,l(Z)?ae(Y):Z;return{mutate:oe,get data(){return re.data=!0,q},get error(){return re.error=!0,Z},get isValidating(){return re.isValidating=!0,X}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=q(),n=z(e),a=n[0],o=n[1],c=n[2],u=G(r,c),s=i,l=u.use;if(l)for(var f=l.length;f-- >0;)s=l[f](s);return s(a,o||u.fetcher,u)})}}]);
|
|
File without changes
|
package/dist/574.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[574],{
|
|
1
|
+
"use strict";(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[574],{574:e=>{e.exports=JSON.parse('{"errorPatientFlags":"Patient flags error","loading":"Loading..."}')}}]);
|
package/dist/668.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[668],{668:(e,a,n)=>{n.r(a),n.d(a,{default:()=>m});var r=n(206),t=n.n(r),s=n(906),p=n(924);function m(){var e=(0,p.useTranslation)().t;return t().createElement(s.ConfigurableLink,{to:"/openmrs/kenyaemr/userHome.page?"},e("kenyaEMRHome","KenyaEMR Home"))}}}]);
|
package/dist/784.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 784.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[784],{
|
|
2
|
+
"use strict";(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[784],{426:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,_(S,m.prototype),S.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,o,u,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var i=!1;if(null===e)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case r:case n:i=!0}}if(i)return a=a(i=e),e=""===u?"."+j(i,0):u,k(a)?(o="",null!=e&&(o=e.replace(g,"$&/")+"/"),O(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+e)),t.push(a)),1;if(i=0,u=""===u?".":u+":",k(e))for(var f=0;f<e.length;f++){var s=u+j(c=e[f],f);i+=O(c,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),f=0;!(c=e.next()).done;)i+=O(c=c.value,t,o,s=u+j(c,f++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function x(e,t,r){if(null==e)return e;var n=[],o=0;return O(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},T={transition:null},V={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:E};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)w.call(t,f)&&!$.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},784:(e,t,r)=>{e.exports=r(426)}}]);
|
package/dist/784.js.LICENSE.txt
CHANGED
package/dist/856.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_kenyaemr_esm_patient_flags_app=self.webpackChunk_kenyaemr_esm_patient_flags_app||[]).push([[856],{856:(e,n,a)=>{"use strict";a.r(n),a.d(n,{backendDependencies:()=>s,importTranslation:()=>r,setupOpenMRS:()=>i});var t=a(906),o={},r=a(979),s={kenyaemr:"^18.2.0"};function i(){var e="@kenyaemr/esm-patient-flags-app",n={featureName:"patient-flags",moduleName:e};return(0,t.defineConfigSchema)(e,o),{pages:[],extensions:[{name:"patient-flag",slot:"top-of-all-patient-dashboards-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([a.e(251),a.e(206),a.e(924),a.e(176)]).then(a.bind(a,176))}),n),online:!0,offline:!1},{name:"kenyaemr-home-link",slot:"app-menu-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([a.e(206),a.e(924),a.e(668)]).then(a.bind(a,668))}),n),online:!0,offline:!1,order:0}]}}},979:(e,n,a)=>{var t={"./en.json":[574,574],"./sw.json":[236,236]};function o(e){if(!a.o(t,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],o=n[0];return a.e(n[1]).then((()=>a(o)))}o.keys=()=>Object.keys(t),o.id=979,e.exports=o}}]);
|