MCPcopy
hub / github.com/jayfk/statuspage / jb

Function jb

statuspage/template/statuspage.js:176–186  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

174null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Ye]=24)}}function ib(a){var b,c,d,e,f,g,h,i;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4,c=fb(b.GG,a._a[Ve],va(rb(),1,4).year),d=fb(b.W,1),e=fb(b.E,1),(1>e||e>7)&&(i=!0)):(f=a._locale._week.dow,g=a._locale._week.doy,c=fb(b.gg,a._a[Ve],va(rb(),f,g).year),d=fb(b.w,1),null!=b.d?(e=b.d,(0>e||e>6)&&(i=!0)):null!=b.e?(e=b.e+f,(b.e<0||b.e>6)&&(i=!0)):e=f),1>d||d>wa(c,f,g)?l(a)._overflowWeeks=!0:null!=i?l(a)._overflowWeekday=!0:(h=ua(c,d,e,f,g),a._a[Ve]=h.year,a._dayOfYear=h.dayOfYear)}
175// date from string and format string
176function jb(b){
177// TODO: Move this to another part of the creation flow to prevent circular deps
178if(b._f===a.ISO_8601)return void db(b);b._a=[],l(b).empty=!0;
179// This array is used to make a Date, either with `new Date` or `Date.UTC`
180var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=X(b._f,b._locale).match(ye)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(Z(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&l(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),Be[f]?(d?l(b).empty=!1:l(b).unusedTokens.push(f),ca(f,d,b)):b._strict&&!d&&l(b).unusedTokens.push(f);
181// add remaining unparsed input length to the string
182l(b).charsLeftOver=i-j,h.length>0&&l(b).unusedInput.push(h),
183// clear _12h flag if hour is <= 12
184b._a[Ye]<=12&&l(b).bigHour===!0&&b._a[Ye]>0&&(l(b).bigHour=void 0),l(b).parsedDateParts=b._a.slice(0),l(b).meridiem=b._meridiem,
185// handle meridiem
186b._a[Ye]=kb(b._locale,b._a[Ye],b._meridiem),hb(b),cb(b)}function kb(a,b,c){var d;
187// Fallback
188return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}
189// date from string and array of format strings

Callers 3

dbFunction · 0.85
lbFunction · 0.85
obFunction · 0.85

Calls 8

dbFunction · 0.85
lFunction · 0.85
XFunction · 0.85
ZFunction · 0.85
caFunction · 0.85
kbFunction · 0.85
hbFunction · 0.85
cbFunction · 0.85

Tested by

no test coverage detected