@cc-openmrs/cc-esm-active-prescriptions 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/104.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[104],{159(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},2996(e){function t(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}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);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)?t(e,n):void 0}}(n,r)||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.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),u="/*# ".concat(c," */"),l=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[a].concat(l).concat([u]).join("\n")}return[a].join("\n")}},5072(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],l=a[u]||0,d="".concat(u," ").concat(l);a[u]=l+1;var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var v=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:v,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.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;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),u=0;u<a.length;u++){var l=n(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},7659(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){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))}}},4993(e,t,n){n.d(t,{BE:()=>H,Es:()=>L,Ht:()=>G,PP:()=>P,Tn:()=>c,X3:()=>S,ZH:()=>a,aw:()=>z,b0:()=>s,bZ:()=>p,bu:()=>x,dO:()=>O,lK:()=>A,lg:()=>N,mF:()=>M,mf:()=>C,q9:()=>Z,qm:()=>K,qv:()=>i,r9:()=>y,rL:()=>u,sb:()=>j});var r=n(6072);const o=()=>{},a=o(),i=Object,s=e=>e===a,c=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),l=new WeakMap;let d=0;const f=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(i(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=l.get(e),o)return o;if(o=++d+"~",l.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=f(e[a])+",";l.set(e,o)}if(n==i){o="#";const t=i.keys(e).sort();for(;!s(a=t.pop());)s(e[a])||(o+=a+":"+f(e[a])+",");l.set(e,o)}}return o},p=new WeakMap,v={},h={},b="undefined",m=typeof window!=b,g=typeof document!=b,y=(e,t)=>{const n=p.get(e);return[()=>!s(t)&&e.get(t)||v,r=>{if(!s(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,u(o,r),o||v)}},n[6],()=>!s(t)&&t in h?h[t]:!s(t)&&e.get(t)||v]};let E=!0;const[w,_]=m&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],T={isOnline:()=>E,isVisible:()=>{const e=g&&document.visibilityState;return s(e)||"hidden"!==e}},R={initFocus:e=>(g&&document.addEventListener("visibilitychange",e),w("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return w("online",t),w("offline",n),()=>{_("online",t),_("offline",n)}}},O=!r.useId,S=!m||"Deno"in window,C=e=>m&&typeof window.requestAnimationFrame!=b?window.requestAnimationFrame(e):setTimeout(e,1),L=S?r.useEffect:r.useLayoutEffect,V="undefined"!=typeof navigator&&navigator.connection,k=!S&&V&&(["slow-2g","2g"].includes(V.effectiveType)||V.saveData),A=e=>{if(c(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?f(e):"",t]};let I=0;const N=()=>++I;var x={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function M(...e){const[t,n,r,o]=e,i=u({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let l=i.populateCache;const d=i.rollbackOnError;let f=i.optimisticData;const v=i.throwOnError;if(c(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(h))}return h(n);async function h(n){const[o]=A(n);if(!o)return;const[u,h]=y(t,o),[b,m,g,E]=p.get(t),w=()=>{const e=b[o];return(c(i.revalidate)?i.revalidate(u().data,n):!1!==i.revalidate)&&(delete g[o],delete E[o],e&&e[0])?e[0](2).then(()=>u().data):u().data};if(e.length<3)return w();let _,T=r;const R=N();m[o]=[R,0];const O=!s(f),S=u(),C=S.data,L=S._c,V=s(L)?C:L;if(O&&(f=c(f)?f(V,C):f,h({data:f,_c:V})),c(T))try{T=T(V)}catch(e){_=e}if(T&&c(T.then)){if(T=await T.catch(e=>{_=e}),R!==m[o][0]){if(_)throw _;return T}_&&O&&(e=>"function"==typeof d?d(e):!1!==d)(_)&&(l=!0,h({data:V,_c:a}))}if(l&&!_)if(c(l)){const e=l(T,V);h({data:e,error:a,_c:a})}else h({data:T,error:a,_c:a});if(m[o][1]=N(),Promise.resolve(w()).then(()=>{h({_c:a})}),!_)return T;if(v)throw _}}const D=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},F=(e,t)=>{if(!p.has(e)){const n=u(R,t),r={},i=M.bind(a,e);let s=o;const c={},l=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=c[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!p.has(e)&&(p.set(e,[r,{},{},{},i,d,l]),!S)){const t=n.initFocus(setTimeout.bind(a,D.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,D.bind(a,r,1)));s=()=>{t&&t(),o&&o(),p.delete(e)}}};return f(),[e,i,f,s]}return[e,p.get(e)[4]]},[P,U]=F(new Map),j=u({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,c=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!s(a)&&i>a||setTimeout(r,c,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:P,mutate:U,fallback:{}},T),q=(e,t)=>{const n=u(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=u(o,i))}return n},W=(0,r.createContext)({}),H=e=>{const{value:t}=e,n=(0,r.useContext)(W),o=c(t),i=(0,r.useMemo)(()=>o?t(n):t,[o,n,t]),s=(0,r.useMemo)(()=>o?i:q(n,i),[o,n,i]),l=i&&i.provider,d=(0,r.useRef)(a);l&&!d.current&&(d.current=F(l(s.cache||P),i));const f=d.current;return f&&(s.cache=f[0],s.mutate=f[1]),L(()=>{if(f)return f[2]&&f[2](),f[3]},[]),(0,r.createElement)(W.Provider,u(e,{value:s}))},Z="$inf$",$=m&&window.__SWR_DEVTOOLS_USE__,J=$?window.__SWR_DEVTOOLS_USE__:[],B=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],X=J.concat(e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=A(t),[,,,o]=p.get(P);if(r.startsWith(Z))return n(...e);const a=o[r];return s(a)?n(...e):(delete o[r],a)}),r)),K=e=>function(...t){const n=u(j,(0,r.useContext)(W)),[o,a,i]=B(t),s=q(n,i);let c=e;const{use:l}=s,d=(l||[]).concat(X);for(let e=d.length;e--;)c=d[e](c);return c(o,a||s.fetcher||null,s)},z=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G=(e,t)=>(...n)=>{const[r,o,a]=B(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};$&&(window.__SWR_DEVTOOLS_REACT__=r)},9324(e,t,n){n.d(t,{Ay:()=>u,BE:()=>c});var r=n(6072),o=n(9888),a=n(4993);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),s={dedupe:!0},c=a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb}),u=(0,a.qm)((e,t,n)=>{const{cache:c,compare:u,suspense:l,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:h,refreshWhenOffline:b,keepPreviousData:m}=n,[g,y,E,w]=a.bZ.get(c),[_,T]=(0,a.lK)(e),R=(0,r.useRef)(!1),O=(0,r.useRef)(!1),S=(0,r.useRef)(_),C=(0,r.useRef)(t),L=(0,r.useRef)(n),V=()=>L.current,k=()=>V().isVisible()&&V().isOnline(),[A,I,N,x]=(0,a.r9)(c,_),M=(0,r.useRef)({}).current,D=(0,a.b0)(d)?n.fallback[_]:d,F=(e,t)=>{for(const n in M){const r=n;if("data"===r){if(!u(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!u(J,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=(0,r.useMemo)(()=>{const e=!!_&&!!t&&((0,a.b0)(f)?!V().isPaused()&&!l&&(!!(0,a.b0)(p)||p):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=A(),o=x(),i=n(r),s=r===o?i:n(o);let c=i;return[()=>{const e=n(A());return F(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[c,_]),U=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>N(_,(t,n)=>{F(n,t)||e()}),[c,_]),P[0],P[1]),j=!R.current,q=g[_]&&g[_].length>0,W=U.data,H=(0,a.b0)(W)?D:W,Z=U.error,$=(0,r.useRef)(H),J=m?(0,a.b0)(W)?$.current:W:H,B=!(q&&!(0,a.b0)(Z))&&(j&&!(0,a.b0)(f)?f:!V().isPaused()&&(l?!(0,a.b0)(H)&&p:(0,a.b0)(H)||p)),X=!!(_&&t&&j&&B),K=(0,a.b0)(U.isValidating)?X:U.isValidating,z=(0,a.b0)(U.isLoading)?X:U.isLoading,G=(0,r.useCallback)(async e=>{const t=C.current;if(!_||!t||O.current||V().isPaused())return!1;let r,o,i=!0;const s=e||{},c=!E[_]||!s.dedupe,l=()=>a.dO?!O.current&&_===S.current&&R.current:_===S.current,d={isValidating:!1,isLoading:!1},f=()=>{I(d)},p=()=>{const e=E[_];e&&e[1]===o&&delete E[_]},v={isValidating:!0};(0,a.b0)(A().data)&&(v.isLoading=!0);try{if(c&&(I(v),n.loadingTimeout&&(0,a.b0)(A().data)&&setTimeout(()=>{i&&l()&&V().onLoadingSlow(_,n)},n.loadingTimeout),E[_]=[t(T),(0,a.lg)()]),[r,o]=E[_],r=await r,c&&setTimeout(p,n.dedupingInterval),!E[_]||E[_][1]!==o)return c&&l()&&V().onDiscarded(_),!1;d.error=a.ZH;const e=y[_];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),c&&l()&&V().onDiscarded(_),!1;const s=A().data;d.data=u(s,r)?s:r,c&&l()&&V().onSuccess(r,_,n)}catch(e){p();const t=V(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,c&&l()&&(t.onError(e,_,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(V().revalidateOnFocus&&V().revalidateOnReconnect&&!k()||t.onErrorRetry(e,_,t,e=>{const t=g[_];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,f(),!0},[_,c]),Q=(0,r.useCallback)((...e)=>(0,a.mF)(c,S.current,...e),[]);if((0,a.Es)(()=>{C.current=t,L.current=n,(0,a.b0)(W)||($.current=W)}),(0,a.Es)(()=>{if(!_)return;const e=G.bind(a.ZH,s);let t=0;const n=(0,a.aw)(_,g,(n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();V().revalidateOnFocus&&n>t&&k()&&(t=n+V().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)V().revalidateOnReconnect&&k()&&e();else{if(n==a.bu.MUTATE_EVENT)return G();if(n==a.bu.ERROR_REVALIDATE_EVENT)return G(r)}});return O.current=!1,S.current=_,R.current=!0,I({_k:T}),B&&((0,a.b0)(H)||a.X3?e():(0,a.mf)(e)),()=>{O.current=!0,n()}},[_]),(0,a.Es)(()=>{let e;function t(){const t=(0,a.Tn)(v)?v(A().data):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){A().error||!h&&!V().isVisible()||!b&&!V().isOnline()?t():G(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,h,b,_]),(0,r.useDebugValue)(J),l&&(0,a.b0)(H)&&_){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,L.current=n,O.current=!1;const e=w[_];if(!(0,a.b0)(e)){const t=Q(e);i(t)}if(!(0,a.b0)(Z))throw Z;{const e=G(s);(0,a.b0)(J)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:Q,get data(){return M.data=!0,J},get error(){return M.error=!0,Z},get isValidating(){return M.isValidating=!0,K},get isLoading(){return M.isLoading=!0,z}}})}}]);
package/dist/311.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[311],{4915(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}},3311(e,t,n){"use strict";n.r(t),n.d(t,{I18nContext:()=>D,I18nextProvider:()=>re,IcuTrans:()=>X,IcuTransWithoutContext:()=>Y,Trans:()=>B,TransWithoutContext:()=>z,Translation:()=>ne,composeInitialProps:()=>q,date:()=>ie,getDefaults:()=>$,getI18n:()=>C,getInitialProps:()=>M,initReactI18next:()=>K,nodesToString:()=>L,number:()=>ce,plural:()=>ue,select:()=>le,selectOrdinal:()=>pe,setDefaults:()=>w,setI18n:()=>R,time:()=>oe,useSSR:()=>ae,useTranslation:()=>ee,withSSR:()=>se,withTranslation:()=>te});var r=n(6072),a=n(2635),s=n(4915),i=n.n(s),o=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function c(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(i()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var a=new RegExp(o),s=null;null!==(s=a.exec(e));)if(s[0].trim())if(s[1]){var c=s[1].trim(),l=[c,""];c.indexOf("=")>-1&&(l=c.split("=")),t.attrs[l[0]]=l[1],a.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var l=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,u=/^\s*$/,p=Object.create(null);function d(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(d,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var g={parse:function(e,t){t||(t={}),t.components||(t.components=p);var n,r=[],a=[],s=-1,i=!1;if(0!==e.indexOf("<")){var o=e.indexOf("<");r.push({type:"text",content:-1===o?e:e.substring(0,o)})}return e.replace(l,function(o,l){if(i){if(o!=="</"+n.name+">")return;i=!1}var p,d="/"!==o.charAt(1),g=o.startsWith("\x3c!--"),m=l+o.length,h=e.charAt(m);if(g){var f=c(o);return s<0?(r.push(f),r):((p=a[s]).children.push(f),r)}if(d&&(s++,"tag"===(n=c(o)).type&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!h||"<"===h||n.children.push({type:"text",content:e.slice(m,e.indexOf("<",m))}),0===s&&r.push(n),(p=a[s-1])&&p.children.push(n),a[s]=n),(!d||n.voidElement)&&(s>-1&&(n.voidElement||n.name===o.slice(2,-1))&&(s--,n=-1===s?r:a[s]),!i&&"<"!==h&&h)){p=-1===s?r:a[s].children;var y=e.indexOf("<",m),b=e.slice(m,-1===y?void 0:y);u.test(b)&&(b=" "),(y>-1&&s+p.length>=0||" "!==b)&&p.push({type:"text",content:b})}}),r},stringify:function(e){return e.reduce(function(e,t){return e+d("",t)},"")}};const m=g,h=(e,t,n,r)=>{const a=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);x(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)},f={},y=(e,t,n,r)=>{x(n)&&f[n]||(x(n)&&(f[n]=new Date),h(e,t,n,r))},b=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},v=(e,t,n)=>{e.loadNamespaces(t,b(e,n))},N=(e,t,n,r)=>{if(x(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return v(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,b(e,r))},E=e=>e.displayName||e.name||(x(e)&&e.length>0?e:"Unknown"),x=e=>"string"==typeof e,O=e=>"object"==typeof e&&null!==e,I=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,T={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},A=e=>T[e],S=e=>e.replace(I,A);let k={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:S,transDefaultProps:void 0};const w=(e={})=>{k={...k,...e}},$=()=>k;let _;const R=e=>{_=e},C=()=>_,j=(e,t)=>{if(!e)return!1;const n=e.props?.children??e.children;return t?n.length>0:!!n},P=e=>{if(!e)return[];const t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?V(t):t},V=e=>Array.isArray(e)?e:[e],L=(e,t,n,a)=>{if(!e)return"";let s="";const i=V(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return i.forEach((e,i)=>{if(x(e))s+=`${e}`;else{if((0,r.isValidElement)(e)){const{props:r,type:c}=e,l=Object.keys(r).length,u=o.indexOf(c)>-1,p=r.children;if(!p&&u&&!l)return void(s+=`<${c}/>`);if(!p&&(!u||l)||r.i18nIsDynamicList)return void(s+=`<${i}></${i}>`);if(u&&1===l&&x(p))return void(s+=`<${c}>${p}</${c}>`);const d=L(p,t,n,a);return void(s+=`<${i}>${d}</${i}>`)}if(null!==e){if(O(e)){const{format:t,...r}=e,i=Object.keys(r);if(1===i.length){const e=t?`${i[0]}, ${t}`:i[0];return void(s+=`{{${e}}}`)}return void h(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:a,child:e})}h(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:a,child:e})}else h(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:a})}}),s},U=(e,t,n)=>{const a=e.key||t,s=(0,r.cloneElement)(e,{key:a});return!s.props||!s.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0?s:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,s)},{key:a})};function z({children:e,count:t,parent:n,i18nKey:s,context:i,tOptions:o={},values:c,defaults:l,components:u,ns:p,i18n:d,t:g,shouldUnescape:h,...f}){const b=d||C();if(!b)return y(b,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:s}),e;const v=g||b.t.bind(b)||(e=>e),N={...$(),...b.options?.react};let E=p||v.ns||b.options?.defaultNS;E=x(E)?[E]:E||["translation"];const{transDefaultProps:I}=N,T=I?.tOptions?{...I.tOptions,...o}:o,A=h??I?.shouldUnescape,k=I?.values?{...I.values,...c}:c,w=I?.components?{...I.components,...u}:u,_=L(e,N,b,s),R=l||T?.defaultValue||_||N.transEmptyNodeValue||("function"==typeof s?(0,a.Rm)(s):s),{hashTransKey:z}=N,K=s||(z?z(_||R):_||R);c=b.options?.interpolation?.defaultVariables?k&&Object.keys(k).length>0?{...k,...b.options.interpolation.defaultVariables}:{...b.options.interpolation.defaultVariables}:k;const D=(e=>{const t={};if(!e)return t;const n=e=>{V(e).forEach(e=>{x(e)||(j(e)?n(P(e)):O(e)&&!(0,r.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t})(e);D&&"number"==typeof D.count&&void 0===t&&(t=D.count);const F=c||void 0!==t&&!b.options?.interpolation?.alwaysFormat||!e?T.interpolation:{interpolation:{...T.interpolation,prefix:"#$?",suffix:"?$#"}},q={...T,context:i||T.context,count:t,...c,...F,defaultValue:R,ns:E};let M=K?v(K,q):R;M===K&&R&&(M=R);const B=((e,t,n,r)=>e?Array.isArray(e)?((e,t)=>e.map((e,n)=>U(e,n,t)))(e,t):O(e)?((e,t)=>{const n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:U(e[r],r,t)})}),n})(e,t):(y(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null)(w,M,b,s);let W=B||e,H=null;var Z;O(Z=B)&&!Array.isArray(Z)&&Object.keys(Z).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(H=B,W=e);const Y=((e,t,n,a,s,i,o)=>{if(""===n)return[];const c=s.transKeepBasicHtmlNodesFor||[],l=n&&new RegExp(c.map(e=>`<${e}`).join("|")).test(n);if(!(e||t||l||o))return[n];const u=t??{},p=e=>{V(e).forEach(e=>{x(e)||(j(e)?p(P(e)):O(e)&&!(0,r.isValidElement)(e)&&Object.assign(u,e))})};p(e);const d=((e,t=[],n={})=>{if(!e)return e;const r=[...t,...Object.keys(n)];let a="",s=0;for(;s<e.length;)if("<"===e[s]){let t=!1;const n=e.slice(s).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(n){const e=n[1];(/^\d+$/.test(e)||r.includes(e))&&(t=!0,a+=n[0],s+=n[0].length)}if(!t){const n=e.slice(s).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(n){const e=n[1];(/^\d+$/.test(e)||r.includes(e))&&(t=!0,a+=n[0],s+=n[0].length)}}t||(a+="&lt;",s+=1)}else a+=e[s],s+=1;return a})(n,c,u),g=m.parse(`<0>${d}</0>`),h={...u,...i},f=(e,t,n)=>{const a=P(e),s=b(a,t.children,n);return(e=>Array.isArray(e)&&e.every(r.isValidElement))(a)&&0===s.length||e.props?.i18nIsDynamicList?a:s},y=(e,t,n,a,s)=>{e.dummy?(e.children=t,n.push((0,r.cloneElement)(e,{key:a},s?void 0:t))):n.push(...r.Children.map([e],e=>{const n="data-i18n-is-dynamic-list",i={key:a,[n]:void 0};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&"i18nIsDynamicList"!==t&&t!==n&&(i[t]=e.props[t])}),(0,r.cloneElement)(e,i,s?null:t)}))},b=(e,n,i)=>{const u=V(e);return V(n).reduce((e,n,p)=>{const d=n.children?.[0]?.content&&a.services.interpolator.interpolate(n.children[0].content,h,a.language);if("tag"===n.type){let g=u[parseInt(n.name,10)];!g&&t&&(g=t[n.name]),1!==i.length||g||(g=i[0][n.name]),g||(g={});const m={...n.attrs};o&&Object.keys(m).forEach(e=>{const t=m[e];x(t)&&(m[e]=S(t))});const v=0!==Object.keys(m).length?((e,t)=>{const n={...t};return n.props={...t.props,...e.props},n})({props:m},g):g,N=(0,r.isValidElement)(v),E=N&&j(n,!0)&&!n.voidElement,I=l&&O(v)&&v.dummy&&!N,T=O(t)&&Object.hasOwnProperty.call(t,n.name);if(x(v)){const t=a.services.interpolator.interpolate(v,h,a.language);e.push(t)}else if(j(v)||E){const t=f(v,n,i);y(v,t,e,p)}else if(I){const t=b(u,n.children,i);y(v,t,e,p)}else if(Number.isNaN(parseFloat(n.name)))if(T){const t=f(v,n,i);y(v,t,e,p,n.voidElement)}else if(s.transSupportBasicHtmlNodes&&c.indexOf(n.name)>-1)if(n.voidElement)e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`}));else{const t=b(u,n.children,i);e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`},t))}else if(n.voidElement)e.push(`<${n.name} />`);else{const t=b(u,n.children,i);e.push(`<${n.name}>${t}</${n.name}>`)}else if(O(v)&&!N){const t=n.children[0]?d:null;t&&e.push(t)}else y(v,d,e,p,1!==n.children.length||!d)}else if("text"===n.type){const t=s.transWrapTextNodes,i="function"==typeof s.unescape?s.unescape:$().unescape,c=o?i(a.services.interpolator.interpolate(n.content,h,a.language)):a.services.interpolator.interpolate(n.content,h,a.language);t?e.push((0,r.createElement)(t,{key:`${n.name}-${p}`},c)):e.push(c)}return e},[])},v=b([{dummy:!0,children:e||[]}],g,V(e||[]));return P(v[0])})(W,H,M,b,N,q,A),X=n??N.defaultTransParent;return X?(0,r.createElement)(X,f,Y):Y}const K={type:"3rdParty",init(e){w(e.options.react),R(e)}},D=(0,r.createContext)();class F{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q=e=>async t=>({...await(e.getInitialProps?.(t))??{},...M()}),M=()=>{const e=C(),t=e.reportNamespaces?.getUsedNamespaces()??[],n={},r={};return e.languages.forEach(n=>{r[n]={},t.forEach(t=>{r[n][t]=e.getResourceBundle(n,t)||{}})}),n.initialI18nStore=r,n.initialLanguage=e.language,n};function B({children:e,count:t,parent:n,i18nKey:a,context:s,tOptions:i={},values:o,defaults:c,components:l,ns:u,i18n:p,t:d,shouldUnescape:g,...m}){const{i18n:h,defaultNS:f}=(0,r.useContext)(D)||{},y=p||h||C(),b=d||y?.t.bind(y);return z({children:e,count:t,parent:n,i18nKey:a,context:s,tOptions:i,values:o,defaults:c,components:l,ns:u||b?.ns||f||y?.options?.defaultNS,i18n:y,t:d,shouldUnescape:g,...m})}class W extends Error{constructor(e,t,n){super(e),this.name="TranslationParserError",this.position=t,this.translationString=n,Error.captureStackTrace&&Error.captureStackTrace(this,W)}}const H={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},Z=new RegExp(Object.keys(H).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");function Y({i18nKey:e,defaultTranslation:t,content:n,ns:a,values:s={},i18n:i,t:o}){const c=i||C();if(!c)return y(c,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),r.createElement(r.Fragment,{},t);const l=o||c.t?.bind(c)||(e=>e);let u=a||l.ns||c.options?.defaultNS;u=x(u)?[u]:u||["translation"];let p=s;c.options?.interpolation?.defaultVariables&&(p=s&&Object.keys(s).length>0?{...s,...c.options.interpolation.defaultVariables}:{...c.options.interpolation.defaultVariables});const d=l(e,{defaultValue:t,...p,ns:u});try{const e=((e,t=[])=>{if(!e)return[];const n=(e=>{const t=[];let n=0,r="";const a=()=>{r&&(t.push({type:"Text",value:r,position:n-r.length}),r="")};for(;n<e.length;){const s=e[n];if("<"===s){const i=e.slice(n).match(/^<(\d+)>/);if(i)a(),t.push({type:"TagOpen",value:i[0],position:n,tagNumber:parseInt(i[1],10)}),n+=i[0].length;else{const i=e.slice(n).match(/^<\/(\d+)>/);i?(a(),t.push({type:"TagClose",value:i[0],position:n,tagNumber:parseInt(i[1],10)}),n+=i[0].length):(r+=s,n+=1)}}else r+=s,n+=1}return a(),t})(e),a=[],s=[],i=new Set;if(n.forEach(n=>{switch(n.type){case"Text":{const e=n.value.replace(Z,e=>H[e]).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCharCode(parseInt(t,16)));(s.length>0?s[s.length-1].children:a).push(e)}break;case"TagOpen":{const{tagNumber:e}=n,r=(()=>{if(0===s.length)return t;const e=s[s.length-1];return e.declaration.props?.children&&Array.isArray(e.declaration.props.children)?e.declaration.props.children:e.declarations})(),o=r[e];if(!o){i.add(e);const t=`<${e}>`;(s.length>0?s[s.length-1].children:a).push(t);break}s.push({tagNumber:e,children:[],position:n.position,declaration:o,declarations:r})}break;case"TagClose":{const{tagNumber:t}=n;if(i.has(t)){const e=`</${t}>`;(s.length>0?s[s.length-1].children:a).push(e),i.delete(t);break}if(0===s.length)throw new W(`Unexpected closing tag </${t}> at position ${n.position}`,n.position,e);const o=s.pop();if(o.tagNumber!==t)throw new W(`Mismatched tags: expected </${o.tagNumber}> but got </${t}> at position ${n.position}`,n.position,e);const c=((e,t,n)=>{const{type:a,props:s={}}=e;if(s.children&&Array.isArray(s.children)&&n){const{children:e,...n}=s;return r.createElement(a,n,...t)}return 0===t.length?r.createElement(a,s):1===t.length?r.createElement(a,s,t[0]):r.createElement(a,s,...t)})(o.declaration,o.children,o.declarations);(s.length>0?s[s.length-1].children:a).push(c)}}}),s.length>0){const t=s[s.length-1];throw new W(`Unclosed tag <${t.tagNumber}> at position ${t.position}`,t.position,e)}return a})(d,n);return r.createElement(r.Fragment,{},...e)}catch(t){return h(c,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${t.message}`,{i18nKey:e,error:t}),r.createElement(r.Fragment,{},d)}}function X({i18nKey:e,defaultTranslation:t,content:n,ns:a,values:s={},i18n:i,t:o}){const{i18n:c,defaultNS:l}=(0,r.useContext)(D)||{},u=i||c||C(),p=o||u?.t.bind(u);return Y({i18nKey:e,defaultTranslation:t,content:n,ns:a||p?.ns||l||u?.options?.defaultNS,values:s,i18n:u,t:o})}Y.displayName="IcuTransWithoutContext",X.displayName="IcuTrans";var G=n(9888);const J={t:(e,t)=>x(t)?t:O(t)&&x(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},Q=()=>()=>{},ee=(e,t={})=>{const{i18n:n}=t,{i18n:a,defaultNS:s}=(0,r.useContext)(D)||{},i=n||a||C();i&&!i.reportNamespaces&&(i.reportNamespaces=new F),i||y(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=(0,r.useMemo)(()=>({...$(),...i?.options?.react,...t}),[i,t]),{useSuspense:c,keyPrefix:l}=o,u=e||s||i?.options?.defaultNS,p=x(u)?[u]:u||["translation"],d=(0,r.useMemo)(()=>p,p);i?.reportNamespaces?.addUsedNamespaces?.(d);const g=(0,r.useRef)(0),m=(0,r.useCallback)(e=>{if(!i)return Q;const{bindI18n:t,bindI18nStore:n}=o,r=()=>{g.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,o]),h=(0,r.useRef)(),f=(0,r.useCallback)(()=>{if(!i)return J;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&d.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(y(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,o)),n=t.lng||i.language,r=g.current,a=h.current;if(a&&a.ready===e&&a.lng===n&&a.keyPrefix===l&&a.revision===r)return a;const s={t:i.getFixedT(n,"fallback"===o.nsMode?d:d[0],l),ready:e,lng:n,keyPrefix:l,revision:r};return h.current=s,s},[i,d,l,o,t.lng]),[b,E]=(0,r.useState)(0),{t:O,ready:I}=(0,G.useSyncExternalStore)(m,f,f);(0,r.useEffect)(()=>{if(i&&!I&&!c){const e=()=>E(e=>e+1);t.lng?N(i,t.lng,d,e):v(i,d,e)}},[i,t.lng,d,I,c,b]);const T=i||{},A=(0,r.useRef)(null),S=(0,r.useRef)(),k=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},w=(0,r.useMemo)(()=>{const e=T,t=e?.language;let n=e;e&&(A.current&&A.current.__original===e?S.current!==t?(n=k(e),A.current=n,S.current=t):n=A.current:(n=k(e),A.current=n,S.current=t));const r=[O,n,I];return r.t=O,r.i18n=n,r.ready=I,r},[O,T,I,T.resolvedLanguage,T.language,T.languages]);if(i&&c&&!I)throw new Promise(e=>{const n=()=>e();t.lng?N(i,t.lng,d,n):v(i,d,n)});return w},te=(e,t={})=>function(n){function a({forwardedRef:a,...s}){const[i,o,c]=ee(e,{...s,keyPrefix:t.keyPrefix}),l={...s,t:i,i18n:o,tReady:c};return t.withRef&&a?l.ref=a:!t.withRef&&a&&(l.forwardedRef=a),(0,r.createElement)(n,l)}return a.displayName=`withI18nextTranslation(${E(n)})`,a.WrappedComponent=n,t.withRef?(0,r.forwardRef)((e,t)=>(0,r.createElement)(a,Object.assign({},e,{forwardedRef:t}))):a},ne=({ns:e,children:t,...n})=>{const[r,a,s]=ee(e,n);return t(r,{i18n:a,lng:a.language},s)};function re({i18n:e,defaultNS:t,children:n}){const a=(0,r.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,r.createElement)(D.Provider,{value:a},n)}const ae=(e,t,n={})=>{const{i18n:a}=n,{i18n:s}=(0,r.useContext)(D)||{},i=a||s||C();i.options?.isClone||(e&&!i.initializedStoreOnce&&(i.services.resourceStore.data=e,i.options.ns=Object.values(e).reduce((e,t)=>(Object.keys(t).forEach(t=>{e.indexOf(t)<0&&e.push(t)}),e),i.options.ns),i.initializedStoreOnce=!0,i.isInitialized=!0),t&&!i.initializedLanguageOnce&&(i.changeLanguage(t),i.initializedLanguageOnce=!0))},se=()=>function(e){function t({initialI18nStore:t,initialLanguage:n,...a}){return ae(t,n),(0,r.createElement)(e,{...a})}return t.getInitialProps=q(e),t.displayName=`withI18nextSSR(${E(e)})`,t.WrappedComponent=e,t},ie=()=>"",oe=()=>"",ce=()=>"",le=()=>"",ue=()=>"",pe=()=>""}}]);
1
+ (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[311],{4915(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}},3311(e,t,n){"use strict";n.r(t),n.d(t,{I18nContext:()=>D,I18nextProvider:()=>re,IcuTrans:()=>X,IcuTransWithoutContext:()=>Z,Trans:()=>B,TransWithoutContext:()=>z,Translation:()=>ne,composeInitialProps:()=>q,date:()=>ie,getDefaults:()=>$,getI18n:()=>C,getInitialProps:()=>M,initReactI18next:()=>K,nodesToString:()=>V,number:()=>ce,plural:()=>ue,select:()=>le,selectOrdinal:()=>pe,setDefaults:()=>w,setI18n:()=>R,time:()=>oe,useSSR:()=>ae,useTranslation:()=>ee,withSSR:()=>se,withTranslation:()=>te});var r=n(6072),a=n(2635),s=n(4915),i=n.n(s),o=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function c(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(i()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var a=new RegExp(o),s=null;null!==(s=a.exec(e));)if(s[0].trim())if(s[1]){var c=s[1].trim(),l=[c,""];c.indexOf("=")>-1&&(l=c.split("=")),t.attrs[l[0]]=l[1],a.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var l=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,u=/^\s*$/,p=Object.create(null);function d(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(d,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var g={parse:function(e,t){t||(t={}),t.components||(t.components=p);var n,r=[],a=[],s=-1,i=!1;if(0!==e.indexOf("<")){var o=e.indexOf("<");r.push({type:"text",content:-1===o?e:e.substring(0,o)})}return e.replace(l,function(o,l){if(i){if(o!=="</"+n.name+">")return;i=!1}var p,d="/"!==o.charAt(1),g=o.startsWith("\x3c!--"),m=l+o.length,f=e.charAt(m);if(g){var h=c(o);return s<0?(r.push(h),r):((p=a[s]).children.push(h),r)}if(d&&(s++,"tag"===(n=c(o)).type&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!f||"<"===f||n.children.push({type:"text",content:e.slice(m,e.indexOf("<",m))}),0===s&&r.push(n),(p=a[s-1])&&p.children.push(n),a[s]=n),(!d||n.voidElement)&&(s>-1&&(n.voidElement||n.name===o.slice(2,-1))&&(s--,n=-1===s?r:a[s]),!i&&"<"!==f&&f)){p=-1===s?r:a[s].children;var y=e.indexOf("<",m),b=e.slice(m,-1===y?void 0:y);u.test(b)&&(b=" "),(y>-1&&s+p.length>=0||" "!==b)&&p.push({type:"text",content:b})}}),r},stringify:function(e){return e.reduce(function(e,t){return e+d("",t)},"")}};const m=g,f=(e,t,n,r)=>{const a=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);E(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)},h={},y=(e,t,n,r)=>{E(n)&&h[n]||(E(n)&&(h[n]=new Date),f(e,t,n,r))},b=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},v=(e,t,n)=>{e.loadNamespaces(t,b(e,n))},N=(e,t,n,r)=>{if(E(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return v(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,b(e,r))},x=e=>e.displayName||e.name||(E(e)&&e.length>0?e:"Unknown"),E=e=>"string"==typeof e,O=e=>"object"==typeof e&&null!==e,I=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,S={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},T=e=>S[e],A=e=>e.replace(I,T);let k={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:A,transDefaultProps:void 0};const w=(e={})=>{k={...k,...e}},$=()=>k;let _;const R=e=>{_=e},C=()=>_,j=(e,t)=>{if(!e)return!1;const n=e.props?.children??e.children;return t?n.length>0:!!n},P=e=>{if(!e)return[];const t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?L(t):t},L=e=>Array.isArray(e)?e:[e],V=(e,t,n,a)=>{if(!e)return"";let s="";const i=L(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return i.forEach((e,i)=>{if(E(e))s+=`${e}`;else{if((0,r.isValidElement)(e)){const{props:r,type:c}=e,l=Object.keys(r).length,u=o.indexOf(c)>-1,p=r.children;if(!p&&u&&!l)return void(s+=`<${c}/>`);if(!p&&(!u||l)||r.i18nIsDynamicList)return void(s+=`<${i}></${i}>`);if(u&&1===l&&E(p))return void(s+=`<${c}>${p}</${c}>`);const d=V(p,t,n,a);return void(s+=`<${i}>${d}</${i}>`)}if(null!==e){if(O(e)){const{format:t,...r}=e,i=Object.keys(r);if(1===i.length){const e=t?`${i[0]}, ${t}`:i[0];return void(s+=`{{${e}}}`)}return void f(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:a,child:e})}f(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:a,child:e})}else f(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:a})}}),s},U=(e,t,n)=>{const a=e.key||t,s=(0,r.cloneElement)(e,{key:a});return!s.props||!s.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0?s:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,s)},{key:a})};function z({children:e,count:t,parent:n,i18nKey:s,context:i,tOptions:o={},values:c,defaults:l,components:u,ns:p,i18n:d,t:g,shouldUnescape:f,...h}){const b=d||C();if(!b)return y(b,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:s}),e;const v=g||b.t.bind(b)||(e=>e),N={...$(),...b.options?.react};let x=p||v.ns||b.options?.defaultNS;x=E(x)?[x]:x||["translation"];const{transDefaultProps:I}=N,S=I?.tOptions?{...I.tOptions,...o}:o,T=f??I?.shouldUnescape,k=I?.values?{...I.values,...c}:c,w=I?.components?{...I.components,...u}:u,_=V(e,N,b,s),R=l||S?.defaultValue||_||N.transEmptyNodeValue||("function"==typeof s?(0,a.Rm)(s):s),{hashTransKey:z}=N,K=s||(z?z(_||R):_||R);c=b.options?.interpolation?.defaultVariables?k&&Object.keys(k).length>0?{...k,...b.options.interpolation.defaultVariables}:{...b.options.interpolation.defaultVariables}:k;const D=(e=>{const t={};if(!e)return t;const n=e=>{L(e).forEach(e=>{E(e)||(j(e)?n(P(e)):O(e)&&!(0,r.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t})(e);D&&"number"==typeof D.count&&void 0===t&&(t=D.count);const F=c||void 0!==t&&!b.options?.interpolation?.alwaysFormat||!e?S.interpolation:{interpolation:{...S.interpolation,prefix:"#$?",suffix:"?$#"}},q={...S,context:i||S.context,count:t,...c,...F,defaultValue:R,ns:x};let M=K?v(K,q):R;M===K&&R&&(M=R);const B=((e,t,n,r)=>e?Array.isArray(e)?((e,t)=>e.map((e,n)=>U(e,n,t)))(e,t):O(e)?((e,t)=>{const n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:U(e[r],r,t)})}),n})(e,t):(y(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null)(w,M,b,s);let W=B||e,H=null;var Y;O(Y=B)&&!Array.isArray(Y)&&Object.keys(Y).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(H=B,W=e);const Z=((e,t,n,a,s,i,o)=>{if(""===n)return[];const c=s.transKeepBasicHtmlNodesFor||[],l=n&&new RegExp(c.map(e=>`<${e}`).join("|")).test(n);if(!(e||t||l||o))return[n];const u=t??{},p=e=>{L(e).forEach(e=>{E(e)||(j(e)?p(P(e)):O(e)&&!(0,r.isValidElement)(e)&&Object.assign(u,e))})};p(e);const d=((e,t=[],n={})=>{if(!e)return e;const r=[...t,...Object.keys(n)];let a="",s=0;for(;s<e.length;)if("<"===e[s]){let t=!1;const n=e.slice(s).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(n){const e=n[1];(/^\d+$/.test(e)||r.includes(e))&&(t=!0,a+=n[0],s+=n[0].length)}if(!t){const n=e.slice(s).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(n){const e=n[1];(/^\d+$/.test(e)||r.includes(e))&&(t=!0,a+=n[0],s+=n[0].length)}}t||(a+="&lt;",s+=1)}else a+=e[s],s+=1;return a})(n,c,u),g=m.parse(`<0>${d}</0>`),f={...u,...i},h=(e,t,n)=>{const a=P(e),s=b(a,t.children,n);return(e=>Array.isArray(e)&&e.every(r.isValidElement))(a)&&0===s.length||e.props?.i18nIsDynamicList?a:s},y=(e,t,n,a,s)=>{e.dummy?(e.children=t,n.push((0,r.cloneElement)(e,{key:a},s?void 0:t))):n.push(...r.Children.map([e],e=>{const n="data-i18n-is-dynamic-list",i={key:a,[n]:void 0};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&"i18nIsDynamicList"!==t&&t!==n&&(i[t]=e.props[t])}),(0,r.cloneElement)(e,i,s?null:t)}))},b=(e,n,i)=>{const u=L(e);return L(n).reduce((e,n,p)=>{const d=n.children?.[0]?.content&&a.services.interpolator.interpolate(n.children[0].content,f,a.language);if("tag"===n.type){let g=u[parseInt(n.name,10)];!g&&t&&(g=t[n.name]),1!==i.length||g||(g=i[0][n.name]),g||(g={});const m={...n.attrs};o&&Object.keys(m).forEach(e=>{const t=m[e];E(t)&&(m[e]=A(t))});const v=0!==Object.keys(m).length?((e,t)=>{const n={...t};return n.props={...t.props,...e.props},n})({props:m},g):g,N=(0,r.isValidElement)(v),x=N&&j(n,!0)&&!n.voidElement,I=l&&O(v)&&v.dummy&&!N,S=O(t)&&Object.hasOwnProperty.call(t,n.name);if(E(v)){const t=a.services.interpolator.interpolate(v,f,a.language);e.push(t)}else if(j(v)||x){const t=h(v,n,i);y(v,t,e,p)}else if(I){const t=b(u,n.children,i);y(v,t,e,p)}else if(Number.isNaN(parseFloat(n.name)))if(S){const t=h(v,n,i);y(v,t,e,p,n.voidElement)}else if(s.transSupportBasicHtmlNodes&&c.indexOf(n.name)>-1)if(n.voidElement)e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`}));else{const t=b(u,n.children,i);e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`},t))}else if(n.voidElement)e.push(`<${n.name} />`);else{const t=b(u,n.children,i);e.push(`<${n.name}>${t}</${n.name}>`)}else if(O(v)&&!N){const t=n.children[0]?d:null;t&&e.push(t)}else y(v,d,e,p,1!==n.children.length||!d)}else if("text"===n.type){const t=s.transWrapTextNodes,i="function"==typeof s.unescape?s.unescape:$().unescape,c=o?i(a.services.interpolator.interpolate(n.content,f,a.language)):a.services.interpolator.interpolate(n.content,f,a.language);t?e.push((0,r.createElement)(t,{key:`${n.name}-${p}`},c)):e.push(c)}return e},[])},v=b([{dummy:!0,children:e||[]}],g,L(e||[]));return P(v[0])})(W,H,M,b,N,q,T),X=n??N.defaultTransParent;return X?(0,r.createElement)(X,h,Z):Z}const K={type:"3rdParty",init(e){w(e.options.react),R(e)}},D=(0,r.createContext)();class F{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q=e=>async t=>({...await(e.getInitialProps?.(t))??{},...M()}),M=()=>{const e=C();if(!e)return console.warn("react-i18next:: getInitialProps: You will need to pass in an i18next instance by using initReactI18next"),{};const t=e.reportNamespaces?.getUsedNamespaces()??[],n={},r={};return e.languages.forEach(n=>{r[n]={},t.forEach(t=>{r[n][t]=e.getResourceBundle(n,t)||{}})}),n.initialI18nStore=r,n.initialLanguage=e.language,n};function B({children:e,count:t,parent:n,i18nKey:a,context:s,tOptions:i={},values:o,defaults:c,components:l,ns:u,i18n:p,t:d,shouldUnescape:g,...m}){const{i18n:f,defaultNS:h}=(0,r.useContext)(D)||{},y=p||f||C(),b=d||y?.t.bind(y);return z({children:e,count:t,parent:n,i18nKey:a,context:s,tOptions:i,values:o,defaults:c,components:l,ns:u||b?.ns||h||y?.options?.defaultNS,i18n:y,t:d,shouldUnescape:g,...m})}class W extends Error{constructor(e,t,n){super(e),this.name="TranslationParserError",this.position=t,this.translationString=n,Error.captureStackTrace&&Error.captureStackTrace(this,W)}}const H={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},Y=new RegExp(Object.keys(H).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");function Z({i18nKey:e,defaultTranslation:t,content:n,ns:a,values:s={},i18n:i,t:o}){const c=i||C();if(!c)return y(c,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),r.createElement(r.Fragment,{},t);const l=o||c.t?.bind(c)||(e=>e);let u=a||l.ns||c.options?.defaultNS;u=E(u)?[u]:u||["translation"];let p=s;c.options?.interpolation?.defaultVariables&&(p=s&&Object.keys(s).length>0?{...s,...c.options.interpolation.defaultVariables}:{...c.options.interpolation.defaultVariables});const d=l(e,{defaultValue:t,...p,ns:u});try{const e=((e,t=[])=>{if(!e)return[];const n=(e=>{const t=[];let n=0,r="";const a=()=>{r&&(t.push({type:"Text",value:r,position:n-r.length}),r="")};for(;n<e.length;){const s=e[n];if("<"===s){const i=e.slice(n).match(/^<(\d+)>/);if(i)a(),t.push({type:"TagOpen",value:i[0],position:n,tagNumber:parseInt(i[1],10)}),n+=i[0].length;else{const i=e.slice(n).match(/^<\/(\d+)>/);i?(a(),t.push({type:"TagClose",value:i[0],position:n,tagNumber:parseInt(i[1],10)}),n+=i[0].length):(r+=s,n+=1)}}else r+=s,n+=1}return a(),t})(e),a=[],s=[],i=new Set;if(n.forEach(n=>{switch(n.type){case"Text":{const e=n.value.replace(Y,e=>H[e]).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCharCode(parseInt(t,16)));(s.length>0?s[s.length-1].children:a).push(e)}break;case"TagOpen":{const{tagNumber:e}=n,r=(()=>{if(0===s.length)return t;const e=s[s.length-1];return e.declaration.props?.children&&Array.isArray(e.declaration.props.children)?e.declaration.props.children:e.declarations})(),o=r[e];if(!o){i.add(e);const t=`<${e}>`;(s.length>0?s[s.length-1].children:a).push(t);break}s.push({tagNumber:e,children:[],position:n.position,declaration:o,declarations:r})}break;case"TagClose":{const{tagNumber:t}=n;if(i.has(t)){const e=`</${t}>`;(s.length>0?s[s.length-1].children:a).push(e),i.delete(t);break}if(0===s.length)throw new W(`Unexpected closing tag </${t}> at position ${n.position}`,n.position,e);const o=s.pop();if(o.tagNumber!==t)throw new W(`Mismatched tags: expected </${o.tagNumber}> but got </${t}> at position ${n.position}`,n.position,e);const c=((e,t,n)=>{const{type:a,props:s={}}=e;if(s.children&&Array.isArray(s.children)&&n){const{children:e,...n}=s;return r.createElement(a,n,...t)}return 0===t.length?r.createElement(a,s):1===t.length?r.createElement(a,s,t[0]):r.createElement(a,s,...t)})(o.declaration,o.children,o.declarations);(s.length>0?s[s.length-1].children:a).push(c)}}}),s.length>0){const t=s[s.length-1];throw new W(`Unclosed tag <${t.tagNumber}> at position ${t.position}`,t.position,e)}return a})(d,n);return r.createElement(r.Fragment,{},...e)}catch(t){return f(c,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${t.message}`,{i18nKey:e,error:t}),r.createElement(r.Fragment,{},d)}}function X({i18nKey:e,defaultTranslation:t,content:n,ns:a,values:s={},i18n:i,t:o}){const{i18n:c,defaultNS:l}=(0,r.useContext)(D)||{},u=i||c||C(),p=o||u?.t.bind(u);return Z({i18nKey:e,defaultTranslation:t,content:n,ns:a||p?.ns||l||u?.options?.defaultNS,values:s,i18n:u,t:o})}Z.displayName="IcuTransWithoutContext",X.displayName="IcuTrans";var G=n(9888);const J={t:(e,t)=>{if(E(t))return t;if(O(t)&&E(t.defaultValue))return t.defaultValue;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},Q=()=>()=>{},ee=(e,t={})=>{const{i18n:n}=t,{i18n:a,defaultNS:s}=(0,r.useContext)(D)||{},i=n||a||C();i&&!i.reportNamespaces&&(i.reportNamespaces=new F),i||y(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=(0,r.useMemo)(()=>({...$(),...i?.options?.react,...t}),[i,t]),{useSuspense:c,keyPrefix:l}=o,u=e||s||i?.options?.defaultNS,p=E(u)?[u]:u||["translation"],d=(0,r.useMemo)(()=>p,p);i?.reportNamespaces?.addUsedNamespaces?.(d);const g=(0,r.useRef)(0),m=(0,r.useCallback)(e=>{if(!i)return Q;const{bindI18n:t,bindI18nStore:n}=o,r=()=>{g.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,o]),f=(0,r.useRef)(),h=(0,r.useCallback)(()=>{if(!i)return J;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&d.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(y(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,o)),n=t.lng||i.language,r=g.current,a=f.current;if(a&&a.ready===e&&a.lng===n&&a.keyPrefix===l&&a.revision===r)return a;const s={t:i.getFixedT(n,"fallback"===o.nsMode?d:d[0],l),ready:e,lng:n,keyPrefix:l,revision:r};return f.current=s,s},[i,d,l,o,t.lng]),[b,x]=(0,r.useState)(0),{t:O,ready:I}=(0,G.useSyncExternalStore)(m,h,h);(0,r.useEffect)(()=>{if(i&&!I&&!c){const e=()=>x(e=>e+1);t.lng?N(i,t.lng,d,e):v(i,d,e)}},[i,t.lng,d,I,c,b]);const S=i||{},T=(0,r.useRef)(null),A=(0,r.useRef)(),k=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},w=(0,r.useMemo)(()=>{const e=S,t=e?.language;let n=e;e&&(T.current&&T.current.__original===e?A.current!==t?(n=k(e),T.current=n,A.current=t):n=T.current:(n=k(e),T.current=n,A.current=t));const r=[O,n,I];return r.t=O,r.i18n=n,r.ready=I,r},[O,S,I,S.resolvedLanguage,S.language,S.languages]);if(i&&c&&!I)throw new Promise(e=>{const n=()=>e();t.lng?N(i,t.lng,d,n):v(i,d,n)});return w},te=(e,t={})=>function(n){function a({forwardedRef:a,...s}){const[i,o,c]=ee(e,{...s,keyPrefix:t.keyPrefix}),l={...s,t:i,i18n:o,tReady:c};return t.withRef&&a?l.ref=a:!t.withRef&&a&&(l.forwardedRef=a),(0,r.createElement)(n,l)}return a.displayName=`withI18nextTranslation(${x(n)})`,a.WrappedComponent=n,t.withRef?(0,r.forwardRef)((e,t)=>(0,r.createElement)(a,Object.assign({},e,{forwardedRef:t}))):a},ne=({ns:e,children:t,...n})=>{const[r,a,s]=ee(e,n);return t(r,{i18n:a,lng:a?.language},s)};function re({i18n:e,defaultNS:t,children:n}){const a=(0,r.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,r.createElement)(D.Provider,{value:a},n)}const ae=(e,t,n={})=>{const{i18n:a}=n,{i18n:s}=(0,r.useContext)(D)||{},i=a||s||C();if(i){if(!i.options?.isClone){if(e&&!i.initializedStoreOnce){if(!i.services?.resourceStore)return void y(i,"I18N_NOT_INITIALIZED","useSSR: i18n instance was found but not initialized (services.resourceStore is missing). Make sure you call i18next.init() before using useSSR — e.g. at module level, not only in getStaticProps/getServerSideProps.");i.services.resourceStore.data=e,i.options.ns=Object.values(e).reduce((e,t)=>(Object.keys(t).forEach(t=>{e.indexOf(t)<0&&e.push(t)}),e),i.options.ns),i.initializedStoreOnce=!0,i.isInitialized=!0}t&&!i.initializedLanguageOnce&&(i.changeLanguage(t),i.initializedLanguageOnce=!0)}}else y(i,"NO_I18NEXT_INSTANCE","useSSR: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.")},se=()=>function(e){function t({initialI18nStore:t,initialLanguage:n,...a}){return ae(t,n),(0,r.createElement)(e,{...a})}return t.getInitialProps=q(e),t.displayName=`withI18nextSSR(${x(e)})`,t.WrappedComponent=e,t},ie=()=>"",oe=()=>"",ce=()=>"",le=()=>"",ue=()=>"",pe=()=>""}}]);
@@ -1 +1,2 @@
1
- (globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[547],{6052(e,n,t){"use strict";t.d(n,{A:()=>s});var a=t(2996),i=t.n(a),o=t(159),r=t.n(o)()(i());r.push([e.id,".-cc-esm-active-prescriptions__root__workspace___\\+xqk5{padding:2rem;display:flex;flex-direction:column;gap:1.5rem;background-color:var(--cds-layer, #ffffff);min-height:100%}.-cc-esm-active-prescriptions__root__header___G1X3T{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__subtitle___kRieu{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:var(--cds-text-secondary, #525252);margin:0;max-width:48rem}.-cc-esm-active-prescriptions__root__section___61mCr{background-color:var(--cds-layer-accent, #f4f4f4);padding:1rem;border-radius:.25rem;box-shadow:0 1px 2px rgba(0,0,0,.08)}.-cc-esm-active-prescriptions__root__fieldLabel___F2zAd{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);margin-bottom:.5rem}.-cc-esm-active-prescriptions__root__tabContent___DnbmQ{padding:1rem 0 0;display:flex;flex-direction:column;gap:1.5rem}.-cc-esm-active-prescriptions__root__fieldGroup___3aiba{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__helperText___sr2T2{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:0}.-cc-esm-active-prescriptions__root__ordersList___jcCvy{border:1px solid var(--cds-border-subtle, #e0e0e0);border-radius:.25rem;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;background-color:var(--cds-layer, #ffffff)}.-cc-esm-active-prescriptions__root__orderLabel___3oBY3{display:flex;flex-direction:column;align-items:flex-start;gap:.125rem}.-cc-esm-active-prescriptions__root__orderName___QGKUy{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);font-weight:600}.-cc-esm-active-prescriptions__root__orderMeta___S7cGO{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252)}.-cc-esm-active-prescriptions__root__selectionSummary___TD9ka{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:.25rem 0 0}","",{version:3,sources:["webpack://./src/root.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAGA,wDACE,YCqCW,CDpCX,YAAA,CACA,qBAAA,CACA,UC6BW,CD5BX,0CAAA,CACA,eAAA,CAGF,oDACE,YAAA,CACA,qBAAA,CACA,SCMW,CDHb,sDEg1BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CF90BF,wCAAA,CACA,QAAA,CACA,eAAA,CAGF,qDACE,iDAAA,CACA,YCIW,CDHX,oBCZW,CDaX,oCAAA,CAGF,wDEk0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFh0BF,mBCbW,CDgBb,wDACE,gBAAA,CACA,YAAA,CACA,qBAAA,CACA,UCLW,CDQb,wDACE,YAAA,CACA,qBAAA,CACA,SC1BW,CD6Bb,wDEgzBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF9yBF,wCAAA,CACA,QAAA,CAGF,wDACE,kDAAA,CACA,oBC1CW,CD2CX,cCjCW,CDkCX,YAAA,CACA,qBAAA,CACA,SCzCW,CD0CX,0CAAA,CAGF,wDACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,WC3DW,CD8Db,uDEyxBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFvxBF,eAAA,CAGF,uDEoxBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CFlxBF,wCAAA,CAGF,8DE+wBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF7wBF,wCAAA,CACA,iBAAA",sourcesContent:["@use '@carbon/layout';\n@use '@carbon/type';\n\n.workspace {\n padding: layout.$spacing-07;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n background-color: var(--cds-layer, #ffffff);\n min-height: 100%;\n}\n\n.header {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.subtitle {\n @include type.type-style('body-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n max-width: 48rem;\n}\n\n.section {\n background-color: var(--cds-layer-accent, #f4f4f4);\n padding: layout.$spacing-05;\n border-radius: layout.$spacing-02;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n}\n\n.fieldLabel {\n @include type.type-style('heading-compact-01');\n margin-bottom: layout.$spacing-03;\n}\n\n.tabContent {\n padding: layout.$spacing-05 0 0;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n}\n\n.fieldGroup {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.helperText {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n}\n\n.ordersList {\n border: 1px solid var(--cds-border-subtle, #e0e0e0);\n border-radius: layout.$spacing-02;\n padding: layout.$spacing-04;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n background-color: var(--cds-layer, #ffffff);\n}\n\n.orderLabel {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-01;\n}\n\n.orderName {\n @include type.type-style('body-compact-01');\n font-weight: 600;\n}\n\n.orderMeta {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n}\n\n.selectionSummary {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: layout.$spacing-02 0 0;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={workspace:"-cc-esm-active-prescriptions__root__workspace___+xqk5",header:"-cc-esm-active-prescriptions__root__header___G1X3T",subtitle:"-cc-esm-active-prescriptions__root__subtitle___kRieu",section:"-cc-esm-active-prescriptions__root__section___61mCr",fieldLabel:"-cc-esm-active-prescriptions__root__fieldLabel___F2zAd",tabContent:"-cc-esm-active-prescriptions__root__tabContent___DnbmQ",fieldGroup:"-cc-esm-active-prescriptions__root__fieldGroup___3aiba",helperText:"-cc-esm-active-prescriptions__root__helperText___sr2T2",ordersList:"-cc-esm-active-prescriptions__root__ordersList___jcCvy",orderLabel:"-cc-esm-active-prescriptions__root__orderLabel___3oBY3",orderName:"-cc-esm-active-prescriptions__root__orderName___QGKUy",orderMeta:"-cc-esm-active-prescriptions__root__orderMeta___S7cGO",selectionSummary:"-cc-esm-active-prescriptions__root__selectionSummary___TD9ka"};const s=r},2547(e,n,t){"use strict";t.r(n),t.d(n,{blueBox:()=>F,brandBox:()=>P,importTranslation:()=>S,prescriptionsActionButton:()=>j,redBox:()=>I,root:()=>L,startupApp:()=>B});var a=t(6072);function i(e,n,t,a,i,o,r){try{var s=e[o](r),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(a,i)}function o(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,t;return n=e,t=[{key:"createPrescription",value:function(e){return(n=function(){return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(r,"next",{value:l(0)}),s(r,"throw",{value:l(1)}),s(r,"return",{value:l(2)}),"function"==typeof Symbol&&s(r,Symbol.iterator,{value:function(){return this}}),r;function l(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(n){return[2,fetch("/api/prescriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})]})},function(){var e=this,t=arguments;return new Promise(function(a,o){var r=n.apply(e,t);function s(e){i(r,a,o,s,l,"next",e)}function l(e){i(r,a,o,s,l,"throw",e)}s(void 0)})})();var n}}],null&&o(n.prototype,null),t&&o(n,t),e}(),s=t(4504),l=t(2076),c=t(4424),p=t(9324),u=encodeURIComponent("custom:(uuid,display,orderNumber,concept:(uuid,display),careSetting:(uuid,display),dateActivated)"),d=t(5072),f=t.n(d),g=t(7825),y=t.n(g),h=t(7659),b=t.n(h),m=t(5056),v=t.n(m),A=t(540),$=t.n(A),w=t(1113),_=t.n(w),x=t(6052),k={};k.styleTagTransform=_(),k.setAttributes=v(),k.insert=b().bind(null,"head"),k.domAPI=y(),k.insertStyleElement=$(),f()(x.A,k);const C=x.A&&x.A.locals?x.A.locals:void 0;function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function M(e,n,t,a,i,o,r){try{var s=e[o](r),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(a,i)}function E(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){s=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(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.")}()}var T={casualGreeting:{_type:c.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:c.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:c.Type.String},_validators:[(0,c.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},N="@cc-openmrs/cc-esm-active-prescriptions",D={featureName:"active-prescriptions",moduleName:N},S=t(4767);function B(){(0,c.defineConfigSchema)(N,T)}var L=(0,c.getSyncLifecycle)(function(e){var n;console.log("Root props:",e);var t=e.patientUuid||(null===(n=e.patient)||void 0===n?void 0:n.uuid),i=(0,l.useTranslation)().t,o=E((0,a.useState)("new"),2),d=o[0],f=o[1],g=E((0,a.useState)(null),2),y=g[0],h=g[1],b=E((0,a.useState)(""),2),m=b[0],v=b[1],A=E((0,a.useState)(new Set),2),$=A[0],w=A[1],_=E((0,a.useState)(!1),2),x=_[0],k=_[1],z=E((0,a.useState)(!1),2),T=z[0],N=z[1],D=E((0,a.useState)(!1),2),S=D[0],B=D[1],L=(0,c.useLocations)(),I=function(e){var n,t,a,i=e?"".concat(c.restBaseUrl,"/order?patient=").concat(e,"&status=active&v=").concat(u):null,o=(0,p.Ay)(i,c.openmrsFetch),r=o.data,s=o.error,l=o.isLoading,d=o.mutate;return{orders:null!==(n=null==r||null===(a=r.data)||void 0===a||null===(t=a.results)||void 0===t?void 0:t.map(function(e){var n,t,a,i;return{uuid:e.uuid,conceptName:null!==(n=null!==(t=null!==(a=null===(i=e.concept)||void 0===i?void 0:i.display)&&void 0!==a?a:e.display)&&void 0!==t?t:e.orderNumber)&&void 0!==n?n:e.uuid,orderNumber:e.orderNumber,display:e.display}}))&&void 0!==n?n:[],isLoading:l,error:s,refresh:d}}(t),F=I.orders,P=I.isLoading,j=I.error;if(!t)return a.createElement(s.jeF,{lowContrast:!0,kind:"warning",title:i("ordersMissingPatientTitle","Select a patient to continue")});var G=(0,a.useMemo)(function(){return null!=L?L:[]},[L]),q=$.size>0?i("selectedOrdersCount",{count:$.size}):null;return a.createElement("div",{className:C.workspace},a.createElement("div",{className:C.header},a.createElement("h2",null,i("activePrescriptionsWorkspaceTitle","Active prescriptions")),a.createElement("p",{className:C.subtitle},i("activePrescriptionsHelper","Review the patient context, choose the visit details, and add the matching orders to the prescription."))),a.createElement("section",{className:C.section},a.createElement("p",{className:C.fieldLabel},i("visitTimingLabel","The visit is")),a.createElement(s.tUM,{selectedIndex:"new"===d?0:1,onChange:function(e){var n=e.selectedIndex;return f(0===n?"new":"past")}},a.createElement(s.wbY,{"aria-label":i("visitTimingLabel","The visit is")},a.createElement(s.ozo,null,i("visitTimingNew","New")),a.createElement(s.ozo,null,i("visitTimingPast","In the past"))),a.createElement(s.T2N,null,a.createElement(s.KpK,{className:C.tabContent},a.createElement("div",{className:C.fieldGroup},a.createElement(s.a32,{id:"visit-location",items:G,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.display)&&void 0!==n?n:""},selectedItem:y,onChange:function(e){var n=e.selectedItem;return h(null!=n?n:null)},placeholder:i("visitLocationPlaceholder","Select a location"),titleText:i("visitLocationHeading","Visit location"),helperText:i("visitLocationHelper","Select where the visit will take place.")})),a.createElement("div",{className:C.fieldGroup},a.createElement("p",{className:C.fieldLabel},i("visitTypeHeading","Visit type")),a.createElement("p",{className:C.helperText},i("visitTypeHelper","Select the orders that should be included in this prescription.")),t?j?a.createElement(s.jeF,{lowContrast:!0,kind:"error",title:i("ordersErrorTitle","Unable to load orders"),subtitle:i("ordersErrorSubtitle","Try again or refresh the patient chart.")}):P?a.createElement(s.OuH,{description:"".concat(i("loading","Loading"),"...")}):F.length?a.createElement(a.Fragment,null,a.createElement("div",{className:C.ordersList,role:"group","aria-label":i("visitTypeHeading","Visit type")},F.map(function(e){return a.createElement(s.Sc0,{key:e.uuid,id:"order-".concat(e.uuid),labelText:a.createElement("span",{className:C.orderLabel},a.createElement("span",{className:C.orderName},e.conceptName),e.display&&a.createElement("span",{className:C.orderMeta},e.display),!e.display&&e.orderNumber&&a.createElement("span",{className:C.orderMeta},e.orderNumber)),checked:$.has(e.uuid),onChange:function(){return n=e.uuid,void w(function(e){var t=new Set(e);return t.has(n)?t.delete(n):t.add(n),t});var n}})})),q?a.createElement("p",{className:C.selectionSummary},q):null):a.createElement(s.jeF,{lowContrast:!0,kind:"info",title:i("ordersEmptyState","There are no orders for this patient yet.")}):null),a.createElement("div",{className:C.fieldGroup},a.createElement(s.ksK,{id:"insurance-policy",labelText:i("insurancePolicyNumberLabel","Insurance Policy Number (optional)"),placeholder:i("insurancePolicyNumberPlaceholder","Enter the policy number"),value:m,onChange:function(e){return v(e.target.value)}})),a.createElement("div",{className:C.fieldGroup},a.createElement(s.Sc0,{id:"sign-prescription-checkbox",labelText:i("signPrescriptionLabel","Digitally sign the prescription"),checked:x,onChange:function(){return k(function(e){return!e})}}),a.createElement(s.Sc0,{id:"print-prescription-checkbox",labelText:i("printPrescriptionLabel","Print the prescription"),checked:T,onChange:function(){return N(function(e){return!e})}})),a.createElement("div",{className:C.fieldGroup,style:{flexDirection:"row",gap:"1rem"}},a.createElement("button",{type:"button",id:"discard-prescription-btn",onClick:function(){h(null),v(""),w(new Set),k(!1),N(!1)},disabled:S},i("discardButtonLabel","Discard")),a.createElement("button",{type:"button",id:"create-prescription-btn",onClick:function(){return(e=function(){var e;return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(r,"next",{value:l(0)}),s(r,"throw",{value:l(1)}),s(r,"return",{value:l(2)}),"function"==typeof Symbol&&s(r,Symbol.iterator,{value:function(){return this}}),r;function l(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(n){switch(n.label){case 0:if(!t||!y||0===$.size)return[2];B(!0),e={patient:{uuid:t},provider:{uuid:"provider-uuid"},location:{uuid:y.uuid,name:y.display},policyNumber:m,orderUuids:Array.from($),digitallySigned:x,printRequested:T},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,r.createPrescription(e)];case 2:return n.sent(),h(null),v(""),w(new Set),k(!1),N(!1),[3,5];case 3:return n.sent(),[3,5];case 4:return B(!1),[7];case 5:return[2]}})},function(){var n=this,t=arguments;return new Promise(function(a,i){var o=e.apply(n,t);function r(e){M(o,a,i,r,s,"next",e)}function s(e){M(o,a,i,r,s,"throw",e)}r(void 0)})})();var e},disabled:S},S?i("loading","Loading"):i("createPrescriptionButtonLabel","Create Prescription")))),a.createElement(s.KpK,{className:C.tabContent},a.createElement(s.jeF,{lowContrast:!0,kind:"info",title:i("inPastTabPlaceholderTitle","Historic prescriptions will be available soon"),subtitle:i("inPastTabPlaceholderSubtitle","Switch back to the New tab to manage current orders.")}))))))},D),I=(0,c.getAsyncLifecycle)(function(){return t.e(970).then(t.bind(t,970))},D),F=(0,c.getAsyncLifecycle)(function(){return t.e(389).then(t.bind(t,1389))},D),P=(0,c.getAsyncLifecycle)(function(){return t.e(488).then(t.bind(t,488))},D),j=(0,c.getAsyncLifecycle)(function(){return t.e(477).then(t.bind(t,4477))},D)},4767(e,n,t){var a={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[4652,[652]],"./km.json":[6716,[335]],"./pt.json":[6679,[679]]};function i(e){if(!t.o(a,e))return Promise.resolve().then(()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=a[e],i=n[0];return t.e(n[1][0]).then(()=>t(i))}i.keys=()=>Object.keys(a),i.id=4767,e.exports=i}}]);
1
+ /*! For license information please see 385.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[385],{6052(e,n,t){t.d(n,{A:()=>s});var a=t(2996),i=t.n(a),o=t(159),r=t.n(o)()(i());r.push([e.id,".-cc-esm-active-prescriptions__root__workspace___\\+xqk5{padding:2rem;display:flex;flex-direction:column;gap:1.5rem;background-color:var(--cds-layer, #ffffff);min-height:100%}.-cc-esm-active-prescriptions__root__header___G1X3T{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__subtitle___kRieu{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:var(--cds-text-secondary, #525252);margin:0;max-width:48rem}.-cc-esm-active-prescriptions__root__section___61mCr{background-color:var(--cds-layer-accent, #f4f4f4);padding:1rem;border-radius:.25rem;box-shadow:0 1px 2px rgba(0,0,0,.08)}.-cc-esm-active-prescriptions__root__fieldLabel___F2zAd{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);margin-bottom:.5rem}.-cc-esm-active-prescriptions__root__tabContent___DnbmQ{padding:1rem 0 0;display:flex;flex-direction:column;gap:1.5rem}.-cc-esm-active-prescriptions__root__fieldGroup___3aiba{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__helperText___sr2T2{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:0}.-cc-esm-active-prescriptions__root__ordersList___jcCvy{border:1px solid var(--cds-border-subtle, #e0e0e0);border-radius:.25rem;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;background-color:var(--cds-layer, #ffffff)}.-cc-esm-active-prescriptions__root__orderLabel___3oBY3{display:flex;flex-direction:column;align-items:flex-start;gap:.125rem}.-cc-esm-active-prescriptions__root__orderName___QGKUy{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);font-weight:600}.-cc-esm-active-prescriptions__root__orderMeta___S7cGO{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252)}.-cc-esm-active-prescriptions__root__selectionSummary___TD9ka{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:.25rem 0 0}","",{version:3,sources:["webpack://./src/root.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAGA,wDACE,YCqCW,CDpCX,YAAA,CACA,qBAAA,CACA,UC6BW,CD5BX,0CAAA,CACA,eAAA,CAGF,oDACE,YAAA,CACA,qBAAA,CACA,SCMW,CDHb,sDEg1BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CF90BF,wCAAA,CACA,QAAA,CACA,eAAA,CAGF,qDACE,iDAAA,CACA,YCIW,CDHX,oBCZW,CDaX,oCAAA,CAGF,wDEk0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFh0BF,mBCbW,CDgBb,wDACE,gBAAA,CACA,YAAA,CACA,qBAAA,CACA,UCLW,CDQb,wDACE,YAAA,CACA,qBAAA,CACA,SC1BW,CD6Bb,wDEgzBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF9yBF,wCAAA,CACA,QAAA,CAGF,wDACE,kDAAA,CACA,oBC1CW,CD2CX,cCjCW,CDkCX,YAAA,CACA,qBAAA,CACA,SCzCW,CD0CX,0CAAA,CAGF,wDACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,WC3DW,CD8Db,uDEyxBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFvxBF,eAAA,CAGF,uDEoxBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CFlxBF,wCAAA,CAGF,8DE+wBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF7wBF,wCAAA,CACA,iBAAA",sourcesContent:["@use '@carbon/layout';\n@use '@carbon/type';\n\n.workspace {\n padding: layout.$spacing-07;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n background-color: var(--cds-layer, #ffffff);\n min-height: 100%;\n}\n\n.header {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.subtitle {\n @include type.type-style('body-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n max-width: 48rem;\n}\n\n.section {\n background-color: var(--cds-layer-accent, #f4f4f4);\n padding: layout.$spacing-05;\n border-radius: layout.$spacing-02;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n}\n\n.fieldLabel {\n @include type.type-style('heading-compact-01');\n margin-bottom: layout.$spacing-03;\n}\n\n.tabContent {\n padding: layout.$spacing-05 0 0;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n}\n\n.fieldGroup {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.helperText {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n}\n\n.ordersList {\n border: 1px solid var(--cds-border-subtle, #e0e0e0);\n border-radius: layout.$spacing-02;\n padding: layout.$spacing-04;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n background-color: var(--cds-layer, #ffffff);\n}\n\n.orderLabel {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-01;\n}\n\n.orderName {\n @include type.type-style('body-compact-01');\n font-weight: 600;\n}\n\n.orderMeta {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n}\n\n.selectionSummary {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: layout.$spacing-02 0 0;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO: move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={workspace:"-cc-esm-active-prescriptions__root__workspace___+xqk5",header:"-cc-esm-active-prescriptions__root__header___G1X3T",subtitle:"-cc-esm-active-prescriptions__root__subtitle___kRieu",section:"-cc-esm-active-prescriptions__root__section___61mCr",fieldLabel:"-cc-esm-active-prescriptions__root__fieldLabel___F2zAd",tabContent:"-cc-esm-active-prescriptions__root__tabContent___DnbmQ",fieldGroup:"-cc-esm-active-prescriptions__root__fieldGroup___3aiba",helperText:"-cc-esm-active-prescriptions__root__helperText___sr2T2",ordersList:"-cc-esm-active-prescriptions__root__ordersList___jcCvy",orderLabel:"-cc-esm-active-prescriptions__root__orderLabel___3oBY3",orderName:"-cc-esm-active-prescriptions__root__orderName___QGKUy",orderMeta:"-cc-esm-active-prescriptions__root__orderMeta___S7cGO",selectionSummary:"-cc-esm-active-prescriptions__root__selectionSummary___TD9ka"};const s=r},1046(e,n,t){t.r(n),t.d(n,{default:()=>S});var a=t(6072);function i(e,n,t,a,i,o,r){try{var s=e[o](r),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(a,i)}function o(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,t;return n=e,t=[{key:"createPrescription",value:function(e){return(n=function(){return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(r,"next",{value:l(0)}),s(r,"throw",{value:l(1)}),s(r,"return",{value:l(2)}),"function"==typeof Symbol&&s(r,Symbol.iterator,{value:function(){return this}}),r;function l(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(n){return[2,fetch("/api/prescriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})]})},function(){var e=this,t=arguments;return new Promise(function(a,o){var r=n.apply(e,t);function s(e){i(r,a,o,s,l,"next",e)}function l(e){i(r,a,o,s,l,"throw",e)}s(void 0)})})();var n}}],null&&o(n.prototype,null),t&&o(n,t),e}(),s=t(2068),l=t(2076),c=t(5987),p=t(9324),u=encodeURIComponent("custom:(uuid,display,orderNumber,concept:(uuid,display),careSetting:(uuid,display),dateActivated)"),d=t(5072),f=t.n(d),g=t(7825),h=t.n(g),y=t(7659),b=t.n(y),m=t(5056),v=t.n(m),$=t(540),A=t.n($),w=t(1113),x=t.n(w),_=t(6052),k={};k.styleTagTransform=x(),k.setAttributes=v(),k.insert=b().bind(null,"head"),k.domAPI=h(),k.insertStyleElement=A(),f()(_.A,k);const C=_.A&&_.A.locals?_.A.locals:void 0;function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function M(e,n,t,a,i,o,r){try{var s=e[o](r),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(a,i)}function E(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){s=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return z(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?z(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const S=function(e){var n;console.log("Root props:",e);var t=e.patientUuid||(null===(n=e.patient)||void 0===n?void 0:n.uuid),i=(0,l.useTranslation)().t,o=E((0,a.useState)("new"),2),d=o[0],f=o[1],g=E((0,a.useState)(null),2),h=g[0],y=g[1],b=E((0,a.useState)(""),2),m=b[0],v=b[1],$=E((0,a.useState)(new Set),2),A=$[0],w=$[1],x=E((0,a.useState)(!1),2),_=x[0],k=x[1],z=E((0,a.useState)(!1),2),S=z[0],T=z[1],D=E((0,a.useState)(!1),2),N=D[0],B=D[1],L=(0,c.useLocations)(),I=function(e){var n,t,a,i=e?"".concat(c.restBaseUrl,"/order?patient=").concat(e,"&status=active&v=").concat(u):null,o=(0,p.Ay)(i,c.openmrsFetch),r=o.data,s=o.error,l=o.isLoading,d=o.mutate;return{orders:null!==(n=null==r||null===(a=r.data)||void 0===a||null===(t=a.results)||void 0===t?void 0:t.map(function(e){var n,t,a,i;return{uuid:e.uuid,conceptName:null!==(n=null!==(t=null!==(a=null===(i=e.concept)||void 0===i?void 0:i.display)&&void 0!==a?a:e.display)&&void 0!==t?t:e.orderNumber)&&void 0!==n?n:e.uuid,orderNumber:e.orderNumber,display:e.display}}))&&void 0!==n?n:[],isLoading:l,error:s,refresh:d}}(t),F=I.orders,P=I.isLoading,q=I.error;if(!t)return a.createElement(s.jeF,{lowContrast:!0,kind:"warning",title:i("ordersMissingPatientTitle","Select a patient to continue")});var G=(0,a.useMemo)(function(){return null!=L?L:[]},[L]),O=A.size>0?i("selectedOrdersCount",{count:A.size}):null;return a.createElement("div",{className:C.workspace},a.createElement("div",{className:C.header},a.createElement("h2",null,i("activePrescriptionsWorkspaceTitle","Active prescriptions")),a.createElement("p",{className:C.subtitle},i("activePrescriptionsHelper","Review the patient context, choose the visit details, and add the matching orders to the prescription."))),a.createElement("section",{className:C.section},a.createElement("p",{className:C.fieldLabel},i("visitTimingLabel","The visit is")),a.createElement(s.tUM,{selectedIndex:"new"===d?0:1,onChange:function(e){var n=e.selectedIndex;return f(0===n?"new":"past")}},a.createElement(s.wbY,{"aria-label":i("visitTimingLabel","The visit is")},a.createElement(s.ozo,null,i("visitTimingNew","New")),a.createElement(s.ozo,null,i("visitTimingPast","In the past"))),a.createElement(s.T2N,null,a.createElement(s.KpK,{className:C.tabContent},a.createElement("div",{className:C.fieldGroup},a.createElement(s.a32,{id:"visit-location",items:G,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.display)&&void 0!==n?n:""},selectedItem:h,onChange:function(e){var n=e.selectedItem;return y(null!=n?n:null)},placeholder:i("visitLocationPlaceholder","Select a location"),titleText:i("visitLocationHeading","Visit location"),helperText:i("visitLocationHelper","Select where the visit will take place.")})),a.createElement("div",{className:C.fieldGroup},a.createElement("p",{className:C.fieldLabel},i("visitTypeHeading","Visit type")),a.createElement("p",{className:C.helperText},i("visitTypeHelper","Select the orders that should be included in this prescription.")),t?q?a.createElement(s.jeF,{lowContrast:!0,kind:"error",title:i("ordersErrorTitle","Unable to load orders"),subtitle:i("ordersErrorSubtitle","Try again or refresh the patient chart.")}):P?a.createElement(s.OuH,{description:"".concat(i("loading","Loading"),"...")}):F.length?a.createElement(a.Fragment,null,a.createElement("div",{className:C.ordersList,role:"group","aria-label":i("visitTypeHeading","Visit type")},F.map(function(e){return a.createElement(s.Sc0,{key:e.uuid,id:"order-".concat(e.uuid),labelText:a.createElement("span",{className:C.orderLabel},a.createElement("span",{className:C.orderName},e.conceptName),e.display&&a.createElement("span",{className:C.orderMeta},e.display),!e.display&&e.orderNumber&&a.createElement("span",{className:C.orderMeta},e.orderNumber)),checked:A.has(e.uuid),onChange:function(){return n=e.uuid,void w(function(e){var t=new Set(e);return t.has(n)?t.delete(n):t.add(n),t});var n}})})),O?a.createElement("p",{className:C.selectionSummary},O):null):a.createElement(s.jeF,{lowContrast:!0,kind:"info",title:i("ordersEmptyState","There are no orders for this patient yet.")}):null),a.createElement("div",{className:C.fieldGroup},a.createElement(s.ksK,{id:"insurance-policy",labelText:i("insurancePolicyNumberLabel","Insurance Policy Number (optional)"),placeholder:i("insurancePolicyNumberPlaceholder","Enter the policy number"),value:m,onChange:function(e){return v(e.target.value)}})),a.createElement("div",{className:C.fieldGroup},a.createElement(s.Sc0,{id:"sign-prescription-checkbox",labelText:i("signPrescriptionLabel","Digitally sign the prescription"),checked:_,onChange:function(){return k(function(e){return!e})}}),a.createElement(s.Sc0,{id:"print-prescription-checkbox",labelText:i("printPrescriptionLabel","Print the prescription"),checked:S,onChange:function(){return T(function(e){return!e})}})),a.createElement("div",{className:C.fieldGroup,style:{flexDirection:"row",gap:"1rem"}},a.createElement("button",{type:"button",id:"discard-prescription-btn",onClick:function(){y(null),v(""),w(new Set),k(!1),T(!1)},disabled:N},i("discardButtonLabel","Discard")),a.createElement("button",{type:"button",id:"create-prescription-btn",onClick:function(){return(e=function(){var e;return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(r,"next",{value:l(0)}),s(r,"throw",{value:l(1)}),s(r,"return",{value:l(2)}),"function"==typeof Symbol&&s(r,Symbol.iterator,{value:function(){return this}}),r;function l(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(n){switch(n.label){case 0:if(!t||!h||0===A.size)return[2];B(!0),e={patient:{uuid:t},provider:{uuid:"provider-uuid"},location:{uuid:h.uuid,name:h.display},policyNumber:m,orderUuids:Array.from(A),digitallySigned:_,printRequested:S},n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,r.createPrescription(e)];case 2:return n.sent(),y(null),v(""),w(new Set),k(!1),T(!1),[3,5];case 3:return n.sent(),[3,5];case 4:return B(!1),[7];case 5:return[2]}})},function(){var n=this,t=arguments;return new Promise(function(a,i){var o=e.apply(n,t);function r(e){M(o,a,i,r,s,"next",e)}function s(e){M(o,a,i,r,s,"throw",e)}r(void 0)})})();var e},disabled:N},N?i("loading","Loading"):i("createPrescriptionButtonLabel","Create Prescription")))),a.createElement(s.KpK,{className:C.tabContent},a.createElement(s.jeF,{lowContrast:!0,kind:"info",title:i("inPastTabPlaceholderTitle","Historic prescriptions will be available soon"),subtitle:i("inPastTabPlaceholderSubtitle","Switch back to the New tab to manage current orders.")}))))))}},8493(e,n,t){var a=t(6072),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},o=a.useState,r=a.useEffect,s=a.useLayoutEffect,l=a.useDebugValue;function c(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var p="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),a=o({inst:{value:t,getSnapshot:n}}),i=a[0].inst,p=a[1];return s(function(){i.value=t,i.getSnapshot=n,c(i)&&p({inst:i})},[e,t,n]),r(function(){return c(i)&&p({inst:i}),e(function(){c(i)&&p({inst:i})})},[e]),l(t),t};n.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:p},9888(e,n,t){e.exports=t(8493)}}]);
package/dist/389.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[389],{2786(n,r,e){e.d(r,{A:()=>i});var a=e(2996),o=e.n(a),s=e(159),t=e.n(s)()(o());t.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),t.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const i=t},9953(n,r,e){e.d(r,{A:()=>g});var a=e(5072),o=e.n(a),s=e(7825),t=e.n(s),i=e(7659),d=e.n(i),c=e(5056),b=e.n(c),p=e(540),l=e.n(p),A=e(1113),h=e.n(A),m=e(2786),u={};u.styleTagTransform=h(),u.setAttributes=b(),u.insert=d().bind(null,"head"),u.domAPI=t(),u.insertStyleElement=l(),o()(m.A,u);const g=m.A&&m.A.locals?m.A.locals:void 0},1389(n,r,e){e.r(r),e.d(r,{default:()=>s});var a=e(6072),o=e(9953);const s=function(){return a.createElement("div",{className:o.A.blue})}}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[389],{2786(n,e,r){r.d(e,{A:()=>c});var t=r(2996),a=r.n(t),o=r(159),i=r.n(o)()(a());i.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),i.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const c=i},159(n){n.exports=function(n){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r}).join("")},e.i=function(n,r,t){"string"==typeof n&&(n=[[null,n,""]]);var a={};if(t)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<n.length;c++){var s=[].concat(n[c]);t&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),e.push(s))}},e}},2996(n){function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}n.exports=function(n){var r,t,a=(t=4,function(n){if(Array.isArray(n))return n}(r=n)||function(n,e){var r=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null!=r){var t,a,o=[],i=!0,c=!1;try{for(r=r.call(n);!(i=(t=r.next()).done)&&(o.push(t.value),!e||o.length!==e);i=!0);}catch(n){c=!0,a=n}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,t)||function(n,r){if(n){if("string"==typeof n)return e(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e(n,r):void 0}}(r,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.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),d="/*# ".concat(s," */"),p=i.sources.map(function(n){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(n," */")});return[o].concat(p).concat([d]).join("\n")}return[o].join("\n")}},9953(n,e,r){r.d(e,{A:()=>v});var t=r(5072),a=r.n(t),o=r(7825),i=r.n(o),c=r(7659),s=r.n(c),d=r(5056),p=r.n(d),u=r(540),l=r.n(u),f=r(1113),b=r.n(f),m=r(2786),h={};h.styleTagTransform=b(),h.setAttributes=p(),h.insert=s().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=l(),a()(m.A,h);const v=m.A&&m.A.locals?m.A.locals:void 0},5072(n){var e=[];function r(n){for(var r=-1,t=0;t<e.length;t++)if(e[t].identifier===n){r=t;break}return r}function t(n,t){for(var o={},i=[],c=0;c<n.length;c++){var s=n[c],d=t.base?s[0]+t.base:s[0],p=o[d]||0,u="".concat(d," ").concat(p);o[d]=p+1;var l=r(u),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==l)e[l].references++,e[l].updater(f);else{var b=a(f,t);t.byIndex=c,e.splice(c,0,{identifier:u,updater:b,references:1})}i.push(u)}return i}function a(n,e){var r=e.domAPI(e);return r.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;r.update(n=e)}else r.remove()}}n.exports=function(n,a){var o=t(n=n||[],a=a||{});return function(n){n=n||[];for(var i=0;i<o.length;i++){var c=r(o[i]);e[c].references--}for(var s=t(n,a),d=0;d<o.length;d++){var p=r(o[d]);0===e[p].references&&(e[p].updater(),e.splice(p,1))}o=s}}},7659(n){var e={};n.exports=function(n,r){var t=function(n){if(void 0===e[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}e[n]=r}return e[n]}(n);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},540(n){n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},5056(n,e,r){n.exports=function(n){var e=r.nc;e&&n.setAttribute("nonce",e)}},7825(n){n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(r){!function(n,e,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,a&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(t,n,e.options)}(e,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},1113(n){n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},1389(n,e,r){r.r(e),r.d(e,{default:()=>o});var t=r(6072),a=r(9953);const o=function(){return t.createElement("div",{className:a.A.blue})}}}]);
package/dist/477.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[477],{4477(c,e,o){o.r(e),o.d(e,{default:()=>p});var n=o(6072),t=o(4504),a=o(4424),i=o(2076),s="active-prescriptions-workspace",r="[active-prescriptions-action-button]";const p=function(c){var e=c.patientUuid,o=c.closeMenu,p=(0,(0,i.useTranslation)().t)("prescriptionsActionButton","Active prescriptions"),l=(0,n.useCallback)(function(){if(console.info("".concat(r," click"),{patientUuid:e,hasCloseMenu:Boolean(o),workspaceName:s}),e){try{console.info("".concat(r," launching workspace (v1)"),{workspaceName:s,patientUuid:e}),(0,a.launchWorkspace)(s,{patientUuid:e,openedFrom:"patient-actions-slot"}),console.info("".concat(r," workspace launch dispatched"))}catch(c){return void console.error("".concat(r," workspace launch failed"),c)}o&&(console.info("".concat(r," closing overflow menu")),o())}else console.warn("".concat(r," patientUuid missing; workspace launch aborted"))},[e,o]);return n.createElement(t.XSD,{itemText:p,onClick:l})}}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[477],{4477(c,e,t){t.r(e),t.d(e,{default:()=>a});var i=t(6072),s=t(2068),n=t(5987),r=t(2076);const a=function(c){var e=c.patientUuid,t=(0,(0,r.useTranslation)().t)("prescriptionsActionButton","Active prescriptions"),a=(0,i.useCallback)(function(){e?(0,n.launchWorkspace)("active-prescriptions-workspace",{patientUuid:e}):(0,n.launchWorkspace)("active-prescriptions-workspace")},[e]);return i.createElement(s.XSD,{itemText:t,onClick:a})}}}]);