northants-design-system 1.6.6 → 1.6.7

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/README.md CHANGED
@@ -109,13 +109,23 @@ const MyComponent = () =>
109
109
  There is a util file under `util` called `create-component.js`. Instead of copy pasting components to create a new component, you can just run this command to generate all the files you need to start building out a new component. To use it:
110
110
 
111
111
  ```
112
- npm run generate NewComponentName
112
+ npm run generate NewComponentName [<<ComponentType>>]
113
113
  ```
114
114
 
115
115
  This will generate:
116
116
 
117
117
  ```
118
- /src
118
+ /src/library/components/
119
+ /NewComponentName
120
+ NewComponentName.tsx
121
+ NewComponentName.stories.tsx
122
+ NewComponentName.test.tsx
123
+ NewComponentName.types.ts
124
+ NewComponentName.styles.ts
125
+ ```
126
+
127
+ ```
128
+ /src/library/<<ComponentType>>/
119
129
  /NewComponentName
120
130
  NewComponentName.tsx
121
131
  NewComponentName.stories.tsx
package/build/index.js CHANGED
@@ -6063,15 +6063,6 @@ const EventRow = styled__default.default.div`
6063
6063
  }
6064
6064
  `;
6065
6065
 
6066
- var dayjs_min = {exports: {}};
6067
-
6068
- (function (module, exports) {
6069
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,M={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"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.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();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
6070
- } (dayjs_min));
6071
-
6072
- var dayjs_minExports = dayjs_min.exports;
6073
- var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
6074
-
6075
6066
  const HeadingWrapper = styled__default.default.div`
6076
6067
  display: flex;
6077
6068
  -webkit-flex-direction: row;
@@ -6219,47 +6210,89 @@ var HeadingWithIcon = function (_a) {
6219
6210
  subHeading && React__default.default.createElement(SubHeading, null, subHeading))));
6220
6211
  };
6221
6212
 
6222
- var EventDetails = function (_a) {
6223
- var startTime = _a.startTime, endTime = _a.endTime, location = _a.location, _b = _a.hasBorder, hasBorder = _b === void 0 ? true : _b, _c = _a.hasMargin, hasMargin = _c === void 0 ? true : _c;
6224
- // Format the time to match Gov UK style guide
6225
- // https://www.gov.uk/guidance/style-guide/a-to-z#times
6226
- var formatTime = function (dayJsInstance) {
6227
- if (dayJsInstance.format('HH:mm') === '00:00') {
6228
- return 'midnight';
6229
- }
6230
- if (dayJsInstance.format('HH:mm') === '12:00') {
6231
- return 'midday';
6232
- }
6233
- if (dayJsInstance.format('mm') === '00') {
6234
- return dayJsInstance.format('ha');
6235
- }
6236
- else {
6237
- return dayJsInstance.format('h:mma');
6238
- }
6239
- };
6240
- // Format the time to match the Gov UK style guide
6241
- // https://www.gov.uk/guidance/style-guide/a-to-z#dates
6242
- var formatDate = function () {
6243
- if (!endTime) {
6244
- return dayjs(startTime).format('dddd D MMMM YYYY') + ' at ' + formatTime(dayjs(startTime));
6213
+ var dayjs_min = {exports: {}};
6214
+
6215
+ (function (module, exports) {
6216
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,M={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"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.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();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
6217
+ } (dayjs_min));
6218
+
6219
+ var dayjs_minExports = dayjs_min.exports;
6220
+ var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
6221
+
6222
+ // Format the time to match Gov UK style guide
6223
+ // https://www.gov.uk/guidance/style-guide/a-to-z#times
6224
+ var formatTime = function (timeToFormat) {
6225
+ var dayJsInstance = null;
6226
+ try {
6227
+ dayJsInstance = dayjs(timeToFormat);
6228
+ }
6229
+ catch (error) {
6230
+ return '';
6231
+ }
6232
+ if (dayJsInstance.format('HH:mm') === '00:00') {
6233
+ return 'midnight';
6234
+ }
6235
+ if (dayJsInstance.format('HH:mm') === '12:00') {
6236
+ return 'midday';
6237
+ }
6238
+ if (dayJsInstance.format('mm') === '00') {
6239
+ return dayJsInstance.format('ha');
6240
+ }
6241
+ else {
6242
+ return dayJsInstance.format('h:mma');
6243
+ }
6244
+ };
6245
+ // Format the date to match the Gov UK style guide
6246
+ // https://www.gov.uk/guidance/style-guide/a-to-z#dates
6247
+ var formatDate = function (dateToFormat) {
6248
+ var dateObject = null;
6249
+ try {
6250
+ dateObject = dayjs(dateToFormat);
6251
+ }
6252
+ catch (error) {
6253
+ return '';
6254
+ }
6255
+ return dateObject.format('dddd D MMMM YYYY');
6256
+ };
6257
+ // Format the date and time to match the Gov UK style guide
6258
+ // https://www.gov.uk/guidance/style-guide/a-to-z#dates
6259
+ var formatDateTime = function (dateToFormat) {
6260
+ try {
6261
+ return formatDate(dateToFormat) + ' at ' + formatTime(dateToFormat);
6262
+ }
6263
+ catch (error) {
6264
+ return '';
6265
+ }
6266
+ };
6267
+ // Format a date range to match the Gov UK style guide,
6268
+ // with optional end date
6269
+ var formatDateRange = function (startDate, endDate) {
6270
+ if (!endDate) {
6271
+ return formatDateTime(startDate);
6272
+ }
6273
+ try {
6274
+ var endDateObject = dayjs(endDate);
6275
+ var startDateObject = dayjs(startDate);
6276
+ if (startDateObject.format('YYYY-MM-DD') === endDateObject.format('YYYY-MM-DD')) {
6277
+ if (startDateObject.format('HH:mm') === '00:00' && endDateObject.format('HH:mm') === '23:59') {
6278
+ return "".concat(formatDate(startDate), " - all day");
6279
+ }
6280
+ return "".concat(formatDate(startDate), " at ").concat(formatTime(startDate), " to ").concat(formatTime(endDate));
6245
6281
  }
6246
6282
  else {
6247
- var endDate = dayjs(endTime);
6248
- var startDate = dayjs(startTime);
6249
- if (startDate.format('YYYY-MM-DD') === endDate.format('YYYY-MM-DD')) {
6250
- if (startDate.format('HH:mm') === '00:00' && endDate.format('HH:mm') === '23:59') {
6251
- return "".concat(startDate.format('dddd D MMMM YYYY'), " - all day");
6252
- }
6253
- return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(formatTime(endDate));
6254
- }
6255
- else {
6256
- return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(endDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(endDate));
6257
- }
6283
+ return "".concat(formatDate(startDate), " at ").concat(formatTime(startDate), " to ").concat(formatDate(endDate), " at ").concat(formatTime(endDate));
6258
6284
  }
6259
- };
6285
+ }
6286
+ catch (error) {
6287
+ return '';
6288
+ }
6289
+ };
6290
+
6291
+ var EventDetails = function (_a) {
6292
+ var startTime = _a.startTime, endTime = _a.endTime, location = _a.location, _b = _a.hasBorder, hasBorder = _b === void 0 ? true : _b, _c = _a.hasMargin, hasMargin = _c === void 0 ? true : _c;
6260
6293
  return (React__default.default.createElement(Container$1s, { "data-testid": "EventDetails", "$hasBorder": hasBorder, "$hasMargin": hasMargin },
6261
6294
  React__default.default.createElement(EventRow, null,
6262
- React__default.default.createElement(HeadingWithIcon, { icon: "events", level: 4, text: formatDate(), hasHover: false })),
6295
+ React__default.default.createElement(HeadingWithIcon, { icon: "events", level: 4, text: formatDateRange(startTime, endTime), hasHover: false })),
6263
6296
  React__default.default.createElement(EventRow, null,
6264
6297
  React__default.default.createElement(HeadingWithIcon, { icon: "address", level: 4, text: location, hasHover: false }))));
6265
6298
  };
@@ -8305,16 +8338,31 @@ var StaticMap = function (_a) {
8305
8338
  React__default.default.createElement(MapImage, { src: "https://maps.googleapis.com/maps/api/staticmap?center=".concat(centre, "&size=").concat(size, "&zoom=").concat(zoom, "&maptype=").concat(mapType).concat(markerPath, "&key=").concat(apiKey), alt: imageAltText })));
8306
8339
  };
8307
8340
 
8341
+ const SummaryContainer = styled__default.default.div`
8342
+ border: ${(props) => (props.$hasHeading ? `1px solid ${props.theme.theme_vars.colours.grey}` : `none`)};
8343
+ margin: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.medium : 0)} 0;
8344
+ `;
8345
+
8346
+ const SummaryHeading = styled__default.default.div`
8347
+ background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
8348
+ width: 100%;
8349
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
8350
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
8351
+
8352
+ h3 {
8353
+ margin: 0;
8354
+ }
8355
+ `;
8356
+
8308
8357
  const SummaryList$1 = styled__default.default.dl`
8309
8358
  display: table;
8310
8359
  width: 100%;
8311
8360
  table-layout: fixed;
8312
8361
  border-collapse: collapse;
8313
- margin: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.medium : 0)} 0;
8314
8362
  `;
8315
8363
 
8316
8364
  const SummaryRow = styled__default.default.div`
8317
- border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
8365
+ border-bottom: ${(props) => (props.$hasBorders ? `1px solid ${props.theme.theme_vars.colours.grey}` : `none`)};
8318
8366
  margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
8319
8367
 
8320
8368
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
@@ -22134,10 +22182,13 @@ sanitizeHtml.simpleTransform = function(newTagName, newAttribs, merge) {
22134
22182
  var sanitizeHtml$1 = /*@__PURE__*/getDefaultExportFromCjs(sanitizeHtml_1);
22135
22183
 
22136
22184
  var SummaryList = function (_a) {
22137
- var terms = _a.terms, _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b;
22138
- return (React__default.default.createElement(SummaryList$1, { "data-testid": "SummaryList", "$hasMargin": hasMargin }, terms.map(function (summaryRow, summaryIndex) { return (React__default.default.createElement(SummaryRow, { key: summaryIndex },
22139
- React__default.default.createElement(SummaryTerm, null, summaryRow.term),
22140
- React__default.default.createElement(SummaryDetail, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(summaryRow.detail) } }))); })));
22185
+ var terms = _a.terms, _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b, _c = _a.hasBorders, hasBorders = _c === void 0 ? true : _c, heading = _a.heading;
22186
+ return (React__default.default.createElement(SummaryContainer, { "$hasHeading": heading, "$hasMargin": hasMargin },
22187
+ heading && (React__default.default.createElement(SummaryHeading, null,
22188
+ React__default.default.createElement(Heading$1, { level: 3, text: heading }))),
22189
+ React__default.default.createElement(SummaryList$1, { "data-testid": "SummaryList" }, terms.map(function (summaryRow, summaryIndex) { return (React__default.default.createElement(SummaryRow, { key: summaryIndex, "$hasBorders": hasBorders },
22190
+ React__default.default.createElement(SummaryTerm, null, summaryRow.term),
22191
+ React__default.default.createElement(SummaryDetail, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(summaryRow.detail) } }))); }))));
22141
22192
  };
22142
22193
 
22143
22194
  /**
@@ -22204,9 +22255,9 @@ var ToggleButtons = function (_a) {
22204
22255
  const Container$16 = styled__default.default.div`
22205
22256
  display: block;
22206
22257
  position: fixed;
22207
- top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
22258
+ top: ${(props) => props.theme.theme_vars.spacingSizes.xxx_large};
22208
22259
  right: ${(props) => props.theme.theme_vars.spacingSizes.small};
22209
- z-index: 20;
22260
+ z-index: 30;
22210
22261
  `;
22211
22262
 
22212
22263
  const QuickExitButton = styled__default.default.button`
@@ -23822,8 +23873,10 @@ var ImageAndText = function (_a) {
23822
23873
 
23823
23874
  var CaseAppointmentType;
23824
23875
  (function (CaseAppointmentType) {
23825
- CaseAppointmentType["Hearing"] = "hearing";
23876
+ CaseAppointmentType["Formal"] = "formal";
23877
+ CaseAppointmentType["Hearing"] = "inquest hearing";
23826
23878
  CaseAppointmentType["Opening"] = "opening";
23879
+ CaseAppointmentType["PreInquest"] = "pre-inquest review";
23827
23880
  CaseAppointmentType["Writing"] = "writing";
23828
23881
  })(CaseAppointmentType || (CaseAppointmentType = {}));
23829
23882
 
@@ -23840,25 +23893,31 @@ const GroupContainer = styled__default.default.div`
23840
23893
 
23841
23894
  const InquestContainer = styled__default.default.div`
23842
23895
  display: flex;
23843
- flex-direction: row;
23896
+ flex-direction: column;
23844
23897
  align-items: flex-start;
23845
23898
  justify-content: flex-start;
23846
23899
  flex-wrap: wrap;
23847
-
23848
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23849
- flex-wrap: nowrap;
23850
- }
23851
23900
  `;
23852
23901
 
23853
- const InquestTime = styled__default.default.div`
23854
- flex-grow: 0;
23902
+ styled__default.default.div`
23903
+ flex-grow: 1;
23855
23904
  flex-shrink: 0;
23905
+
23906
+ strong {
23907
+ display: block;
23908
+ &::first-letter {
23909
+ text-transform: capitalize;
23910
+ }
23911
+ }
23856
23912
  `;
23857
23913
 
23858
23914
  const InquestDetails = styled__default.default.div`
23859
23915
  flex-grow: 1;
23860
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23861
- padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
23916
+ h3 {
23917
+ display: block;
23918
+ &::first-letter {
23919
+ text-transform: capitalize;
23920
+ }
23862
23921
  }
23863
23922
  `;
23864
23923
 
@@ -23870,12 +23929,18 @@ var InquestSchedule = function (_a) {
23870
23929
  var hearings = caseAppointments.filter(function (appointment) {
23871
23930
  return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Hearing);
23872
23931
  });
23932
+ var preInquest = caseAppointments.filter(function (appointment) {
23933
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.PreInquest);
23934
+ });
23873
23935
  var openings = caseAppointments.filter(function (appointment) {
23874
23936
  return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Opening);
23875
23937
  });
23876
23938
  var writings = caseAppointments.filter(function (appointment) {
23877
23939
  return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Writing);
23878
23940
  });
23941
+ var formal = caseAppointments.filter(function (appointment) {
23942
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Formal);
23943
+ });
23879
23944
  var groupHearingsByDay = function (appointments) {
23880
23945
  return appointments.reduce(function (acc, inquest) {
23881
23946
  var inquestDate = new Date(inquest.startDateTime);
@@ -23888,62 +23953,52 @@ var InquestSchedule = function (_a) {
23888
23953
  }, {});
23889
23954
  };
23890
23955
  var hearingDayGrouped = groupHearingsByDay(hearings);
23956
+ var preInquestDayGrouped = groupHearingsByDay(preInquest);
23891
23957
  var openingDayGrouped = groupHearingsByDay(openings);
23892
23958
  var writingDayGrouped = groupHearingsByDay(writings);
23893
- var formatDate = function (inquestDay) {
23894
- return inquestDay
23895
- .toLocaleDateString('en-GB', {
23896
- weekday: 'long',
23897
- day: 'numeric',
23898
- month: 'long',
23899
- year: 'numeric',
23900
- })
23901
- .replace(',', '');
23902
- };
23903
- var formatTime = function (inquestDate) {
23904
- return inquestDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
23905
- };
23959
+ var formalDayGrouped = groupHearingsByDay(formal);
23906
23960
  var transformToSections = function (groupedData) {
23907
23961
  return Object.keys(groupedData).map(function (day) {
23908
- var inquestDayDate = new Date(day);
23909
23962
  return {
23910
- title: formatDate(inquestDayDate),
23963
+ title: formatDate(day),
23911
23964
  content: (React__default.default.createElement(Row$1, null, groupedData[day]
23912
23965
  .sort(function (a, b) {
23913
23966
  return new Date(a.startDateTime).getTime() - new Date(b.startDateTime).getTime();
23914
23967
  })
23915
23968
  .map(function (inquest, key) {
23916
- var startDateTime = new Date(inquest.startDateTime);
23917
- var timeOfDeath = new Date(inquest.dateTimeOfDeath);
23969
+ var terms = [
23970
+ {
23971
+ term: 'Name',
23972
+ detail: inquest.fullName,
23973
+ },
23974
+ {
23975
+ term: 'Died',
23976
+ detail: formatDate(inquest.dateTimeOfDeath) +
23977
+ ' at ' +
23978
+ inquest.placeOfDeath +
23979
+ '. Aged ' +
23980
+ inquest.age +
23981
+ ' years.',
23982
+ },
23983
+ {
23984
+ term: 'Court location',
23985
+ detail: inquest.courtroomFullAddress + '.',
23986
+ },
23987
+ {
23988
+ term: 'Coroner',
23989
+ detail: inquest.coroner + '.',
23990
+ },
23991
+ ];
23992
+ if (inquest.endDateTime) {
23993
+ terms.push({
23994
+ term: 'End date',
23995
+ detail: formatDateTime(inquest.endDateTime) + '.',
23996
+ });
23997
+ }
23918
23998
  return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: key },
23919
23999
  React__default.default.createElement(InquestContainer, null,
23920
- React__default.default.createElement(InquestTime, null,
23921
- React__default.default.createElement("strong", null, formatTime(startDateTime))),
23922
24000
  React__default.default.createElement(InquestDetails, null,
23923
- React__default.default.createElement("strong", null, "Name:"),
23924
- " ",
23925
- inquest.fullName,
23926
- ".",
23927
- React__default.default.createElement("br", null),
23928
- React__default.default.createElement("strong", null, "Died:"),
23929
- " ",
23930
- formatDate(timeOfDeath),
23931
- " at ",
23932
- inquest.placeOfDeath,
23933
- ". Aged ",
23934
- inquest.age,
23935
- ' ',
23936
- "years.",
23937
- React__default.default.createElement("br", null),
23938
- React__default.default.createElement("strong", null, "Court location:"),
23939
- " ",
23940
- inquest.courtroomFullAddress,
23941
- ".",
23942
- React__default.default.createElement("br", null),
23943
- React__default.default.createElement("strong", null, "Coroner:"),
23944
- " ",
23945
- inquest.coroner,
23946
- "."))));
24001
+ React__default.default.createElement(SummaryList, { terms: terms, hasBorders: false, heading: formatTime(inquest.startDateTime) })))));
23947
24002
  }))),
23948
24003
  };
23949
24004
  });
@@ -23955,9 +24010,15 @@ var InquestSchedule = function (_a) {
23955
24010
  Object.keys(openingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23956
24011
  React__default.default.createElement(Heading$1, { level: 2, text: "Inquest Openings" }),
23957
24012
  React__default.default.createElement(Accordion$1, { sections: transformToSections(openingDayGrouped) }))),
24013
+ Object.keys(preInquestDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
24014
+ React__default.default.createElement(Heading$1, { level: 2, text: "Pre-inquest Review Hearings" }),
24015
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(preInquestDayGrouped) }))),
23958
24016
  Object.keys(writingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
23959
24017
  React__default.default.createElement(Heading$1, { level: 2, text: "Inquests in Writing" }),
23960
24018
  React__default.default.createElement(Accordion$1, { sections: transformToSections(writingDayGrouped) }))),
24019
+ Object.keys(formalDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
24020
+ React__default.default.createElement(Heading$1, { level: 2, text: "Formal Suspension Hearings" }),
24021
+ React__default.default.createElement(Accordion$1, { sections: transformToSections(formalDayGrouped) }))),
23961
24022
  caseAppointments.length === 0 && (React__default.default.createElement("div", null,
23962
24023
  React__default.default.createElement("p", null, "We can't find any results at the moment."),
23963
24024
  error ? (React__default.default.createElement("p", null, " The information is currently unavailable.")) : (React__default.default.createElement("p", null, "There are no inquests scheduled for next month."))))));
@@ -28963,7 +29024,7 @@ var PageWithSidebarContainer = function (_a) {
28963
29024
 
28964
29025
  const backgroundDecider = (props) => {
28965
29026
  const colourString = props.theme.theme_vars.colours[props.$colour];
28966
- if (props.colour) {
29027
+ if (props.$colour) {
28967
29028
  return styled.css`
28968
29029
  background-color: ${colourString};
28969
29030
  `;
@@ -31638,7 +31699,9 @@ var north_vars = {
31638
31699
  small: '10px',
31639
31700
  medium: '20px',
31640
31701
  large: '30px',
31641
- x_large: '45px;',
31702
+ x_large: '45px',
31703
+ xx_large: '90px',
31704
+ xxx_large: '135px',
31642
31705
  },
31643
31706
  h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight: 700;\n\n @media (min-width: 40.0625em) {\n font-size: 48px;\n font-size: 3rem;\n }\n ",
31644
31707
  h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight: 700;\n \n @media (min-width: 40.0625em) {\n font-size: 36px;\n font-size: 2.25rem;\n }\n ",
@@ -31712,7 +31775,9 @@ var west_vars = {
31712
31775
  small: '10px',
31713
31776
  medium: '20px',
31714
31777
  large: '30px',
31715
- x_large: '45px;',
31778
+ x_large: '45px',
31779
+ xx_large: '90px',
31780
+ xxx_large: '135px',
31716
31781
  },
31717
31782
  h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight: 700;\n margin-left: 0;\n margin-bottom: 20px;\n\n @media (min-width: 40.0625em) {\n font-size: 44px;\n font-size: 2.6rem;\n max-width: 960px;\n margin-bottom: 30px;\n }\n ",
31718
31783
  h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight: 700;\n margin-top: 25px;\n margin-bottom: 15px;\n \n @media (min-width: 40.0625em) {\n font-size: 36px;\n font-size: 1.75rem;\n max-width: 960px;\n }\n ",
@@ -31786,7 +31851,9 @@ var lb_vars_north = {
31786
31851
  small: '10px',
31787
31852
  medium: '20px',
31788
31853
  large: '30px',
31789
- x_large: '45px;',
31854
+ x_large: '45px',
31855
+ xx_large: '90px',
31856
+ xxx_large: '135px',
31790
31857
  },
31791
31858
  h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight: 700;\n\n @media (min-width: 40.0625em) {\n font-size: 48px;\n font-size: 3rem;\n }\n ",
31792
31859
  h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight: 700;\n \n @media (min-width: 40.0625em) {\n font-size: 36px;\n font-size: 2.25rem;\n }\n ",
@@ -31860,7 +31927,9 @@ var lb_vars_west = {
31860
31927
  small: '10px',
31861
31928
  medium: '20px',
31862
31929
  large: '30px',
31863
- x_large: '45px;',
31930
+ x_large: '45px',
31931
+ xx_large: '90px',
31932
+ xxx_large: '135px',
31864
31933
  },
31865
31934
  h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight: 700;\n\n @media (min-width: 40.0625em) {\n font-size: 48px;\n font-size: 3rem;\n }\n ",
31866
31935
  h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight: 700;\n \n @media (min-width: 40.0625em) {\n font-size: 36px;\n font-size: 2.25rem;\n }\n ",
@@ -31898,7 +31967,7 @@ var templateObject_1$1, templateObject_2;
31898
31967
  * Based upon http://meyerweb.com/eric/tools/css/reset/ with additions to return
31899
31968
  * lists to sane settings. Use for styles common to all themes.
31900
31969
  */
31901
- var GlobalStyleReset = styled.createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n html {\n box-sizing: border-box;\n }\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n body {\n line-height: 1;\n }\n ol {\n list-style: decimal outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n ul {\n list-style: disc outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n li {\n position: relative;\n left: 1.25rem;\n padding-right: 1.25rem;\n }\n main li {\n line-height: 44px;\n }\n main li > a {\n display: inline-flex;\n min-height: 44px;\n justify-content: center;\n align-items: center;\n }\n blockquote,\n q {\n quotes: none;\n }\n blockquote:before,\n blockquote:after,\n q:before,\n q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n .table-container li {\n left: 0;\n }\n table tr td {\n vertical-align: top;\n }\n body {\n position: static;\n top: 0px !important;\n }\n iframe.skiptranslate {\n display: none !important;\n }\n /* Hide the rate this translation popup */\n #goog-gt-tt {\n display: none !important;\n }\n"], ["\n html {\n box-sizing: border-box;\n }\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n body {\n line-height: 1;\n }\n ol {\n list-style: decimal outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n ul {\n list-style: disc outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n li {\n position: relative;\n left: 1.25rem;\n padding-right: 1.25rem;\n }\n main li {\n line-height: 44px;\n }\n main li > a {\n display: inline-flex;\n min-height: 44px;\n justify-content: center;\n align-items: center;\n }\n blockquote,\n q {\n quotes: none;\n }\n blockquote:before,\n blockquote:after,\n q:before,\n q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n .table-container li {\n left: 0;\n }\n table tr td {\n vertical-align: top;\n }\n body {\n position: static;\n top: 0px !important;\n }\n iframe.skiptranslate {\n display: none !important;\n }\n /* Hide the rate this translation popup */\n #goog-gt-tt {\n display: none !important;\n }\n"])));
31970
+ var GlobalStyleReset = styled.createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n html {\n box-sizing: border-box;\n }\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n body {\n line-height: 1;\n }\n ol {\n list-style: decimal outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n ul {\n list-style: disc outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n li {\n position: relative;\n left: 1.25rem;\n padding-right: 1.25rem;\n }\n main li {\n line-height: 44px;\n }\n main li > a {\n display: inline-flex;\n min-height: 44px;\n justify-content: center;\n align-items: center;\n }\n blockquote,\n q {\n quotes: none;\n }\n blockquote:before,\n blockquote:after,\n q:before,\n q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n .table-container li {\n left: 0;\n }\n table tr td {\n vertical-align: top;\n }\n body {\n position: static;\n top: 0px !important;\n }\n iframe.skiptranslate {\n display: none !important;\n }\n /* Hide the rate this translation popup */\n #goog-gt-tt {\n display: none !important;\n }\n\n #g-recaptcha-response {\n border-color: black !important;\n }\n"], ["\n html {\n box-sizing: border-box;\n }\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n }\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n body {\n line-height: 1;\n }\n ol {\n list-style: decimal outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n ul {\n list-style: disc outside;\n margin: 1rem 0rem 1rem 1.25rem;\n }\n li {\n position: relative;\n left: 1.25rem;\n padding-right: 1.25rem;\n }\n main li {\n line-height: 44px;\n }\n main li > a {\n display: inline-flex;\n min-height: 44px;\n justify-content: center;\n align-items: center;\n }\n blockquote,\n q {\n quotes: none;\n }\n blockquote:before,\n blockquote:after,\n q:before,\n q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n .table-container li {\n left: 0;\n }\n table tr td {\n vertical-align: top;\n }\n body {\n position: static;\n top: 0px !important;\n }\n iframe.skiptranslate {\n display: none !important;\n }\n /* Hide the rate this translation popup */\n #goog-gt-tt {\n display: none !important;\n }\n\n #g-recaptcha-response {\n border-color: black !important;\n }\n"])));
31902
31971
  var templateObject_1;
31903
31972
 
31904
31973
  const Container$6 = styled__default.default.div`