@openmrs/esm-laboratory-app
Version:
An O3 frontend module for managing laboratory requests and queues
1 lines • 7.1 kB
JavaScript
(globalThis.webpackChunk_openmrs_esm_laboratory_app=globalThis.webpackChunk_openmrs_esm_laboratory_app||[]).push([["2538"],{6734(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",s="week",i="month",a="quarter",u="year",o="date",c="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},l="en",$={};$[l]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var y="$isDayjsObject",m=function(t){return t instanceof p||!(!t||!t[y])},M=function t(e,r,n){var s;if(!e)return l;if("string"==typeof e){var i=e.toLowerCase();$[i]&&(s=i),r&&($[i]=r,s=i);var a=e.split("-");if(!s&&a.length>1)return t(a[0])}else{var u=e.name;$[u]=e,s=u}return!n&&s&&(l=s),s||!n&&l},v=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new p(r)},g={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,i),a=r-s<0,u=e.clone().add(n+(a?-1:1),i);return+(-(n+(r-s)/(a?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:i,y:u,w:s,d:"day",D:o,h:n,m:r,s:e,ms:t,Q:a})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};g.l=M,g.i=m,g.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var p=function(){function d(t){this.$L=M(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var l=d.prototype;return l.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(g.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(h);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},l.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},l.$utils=function(){return g},l.isValid=function(){return this.$d.toString()!==c},l.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},l.isAfter=function(t,e){return v(t)<this.startOf(e)},l.isBefore=function(t,e){return this.endOf(e)<v(t)},l.$g=function(t,e,r){return g.u(t)?this[e]:this.set(r,t)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(t,a){var c=this,h=!!g.u(a)||a,f=g.p(t),d=function(t,e){var r=g.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return h?r:r.endOf("day")},l=function(t,e){return g.w(c.toDate()[t].apply(c.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},$=this.$W,y=this.$M,m=this.$D,M="set"+(this.$u?"UTC":"");switch(f){case u:return h?d(1,0):d(31,11);case i:return h?d(1,y):d(0,y+1);case s:var v=this.$locale().weekStart||0,p=($<v?$+7:$)-v;return d(h?m-p:m+(6-p),y);case"day":case o:return l(M+"Hours",0);case n:return l(M+"Minutes",1);case r:return l(M+"Seconds",2);case e:return l(M+"Milliseconds",3);default:return this.clone()}},l.endOf=function(t){return this.startOf(t,!1)},l.$set=function(s,a){var c,h=g.p(s),f="set"+(this.$u?"UTC":""),d=((c={}).day=f+"Date",c[o]=f+"Date",c[i]=f+"Month",c[u]=f+"FullYear",c[n]=f+"Hours",c[r]=f+"Minutes",c[e]=f+"Seconds",c[t]=f+"Milliseconds",c)[h],l="day"===h?this.$D+(a-this.$W):a;if(h===i||h===u){var $=this.clone().set(o,1);$.$d[d](l),$.init(),this.$d=$.set(o,Math.min(this.$D,$.daysInMonth())).$d}else d&&this.$d[d](l);return this.init(),this},l.set=function(t,e){return this.clone().$set(t,e)},l.get=function(t){return this[g.p(t)]()},l.add=function(t,a){var o,c=this;t=Number(t);var h=g.p(a),f=function(e){var r=v(c);return g.w(r.date(r.date()+Math.round(e*t)),c)};if(h===i)return this.set(i,this.$M+t);if(h===u)return this.set(u,this.$y+t);if("day"===h)return f(1);if(h===s)return f(7);var d=((o={})[r]=6e4,o[n]=36e5,o[e]=1e3,o)[h]||1,l=this.$d.getTime()+t*d;return g.w(l,this)},l.subtract=function(t,e){return this.add(-1*t,e)},l.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=g.z(this),i=this.$H,a=this.$m,u=this.$M,o=r.weekdays,h=r.months,d=r.meridiem,l=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},$=function(t){return g.s(i%12||12,t,"0")},y=d||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(f,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return g.s(e.$y,4,"0");case"M":return u+1;case"MM":return g.s(u+1,2,"0");case"MMM":return l(r.monthsShort,u,h,3);case"MMMM":return l(h,u);case"D":return e.$D;case"DD":return g.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return l(r.weekdaysMin,e.$W,o,2);case"ddd":return l(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return g.s(i,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return y(i,a,!0);case"A":return y(i,a,!1);case"m":return String(a);case"mm":return g.s(a,2,"0");case"s":return String(e.$s);case"ss":return g.s(e.$s,2,"0");case"SSS":return g.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},l.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},l.diff=function(t,o,c){var h,f=this,d=g.p(o),l=v(t),$=(l.utcOffset()-this.utcOffset())*6e4,y=this-l,m=function(){return g.m(f,l)};switch(d){case u:h=m()/12;break;case i:h=m();break;case a:h=m()/3;break;case s:h=(y-$)/6048e5;break;case"day":h=(y-$)/864e5;break;case n:h=y/36e5;break;case r:h=y/6e4;break;case e:h=y/1e3;break;default:h=y}return c?h:g.a(h)},l.daysInMonth=function(){return this.endOf(i).$D},l.$locale=function(){return $[this.$L]},l.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=M(t,e,!0);return n&&(r.$L=n),r},l.clone=function(){return g.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},d}(),D=p.prototype;return v.prototype=D,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",i],["$y",u],["$D",o]].forEach(function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),v.extend=function(t,e){return t.$i||(t(e,p,v),t.$i=!0),v},v.locale=M,v.isDayjs=m,v.unix=function(t){return v(1e3*t)},v.en=$[l],v.Ls=$,v.p={},v}()}}]);