@lifesg/react-design-system 1.0.0-alpha.19 → 1.0.0-alpha.20
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/accordion/index.js +4 -4
- package/accordion/index.js.map +1 -1
- package/alert/index.js +42 -42
- package/alert/index.js.map +1 -1
- package/box-container/index.js +5 -5
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.js +2 -2
- package/breadcrumb/index.js.map +1 -1
- package/button/index.js +125 -125
- package/button/index.js.map +1 -1
- package/card/index.js +23 -23
- package/card/index.js.map +1 -1
- package/checkbox/index.js +3 -3
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +44 -46
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +4 -0
- package/date-input/index.js +53 -49
- package/date-input/index.js.map +1 -1
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/{icon → design-token}/package.json +1 -1
- package/design-token/types.d.ts +7 -0
- package/error-display/index.js +92 -92
- package/error-display/index.js.map +1 -1
- package/feedback-rating/index.js +58 -58
- package/feedback-rating/index.js.map +1 -1
- package/footer/index.js +10 -10
- package/footer/index.js.map +1 -1
- package/form/index.js +144 -140
- package/form/index.js.map +1 -1
- package/icon-button/index.js +3 -3
- package/icon-button/index.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +63 -65
- package/index.js.map +1 -1
- package/input/index.js +18 -14
- package/input/index.js.map +1 -1
- package/input-group/index.js +125 -121
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +32 -28
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.js +112 -108
- package/input-textarea/index.js.map +1 -1
- package/link-list/index.js +35 -35
- package/link-list/index.js.map +1 -1
- package/modal/index.js +15 -15
- package/modal/index.js.map +1 -1
- package/navbar/index.js +188 -188
- package/navbar/index.js.map +1 -1
- package/notification-banner/index.js +2 -2
- package/notification-banner/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +126 -122
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +7 -7
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.js +7 -7
- package/progress-indicator/index.js.map +1 -1
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/smart-app-banner/index.js +14 -14
- package/smart-app-banner/index.js.map +1 -1
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +18 -18
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +10 -1
- package/timeline/index.js +8 -8
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +61 -57
- package/timepicker/index.js.map +1 -1
- package/toggle-button/index.js +109 -109
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +5 -5
- package/tooltip/index.js.map +1 -1
- package/unit-number/index.js +113 -109
- package/unit-number/index.js.map +1 -1
- package/util/utility-types.d.ts +3 -0
- package/icon/document-with-pencil-icon.d.ts +0 -5
- package/icon/icon-data.d.ts +0 -3
- package/icon/icon-style.d.ts +0 -1
- package/icon/icon.d.ts +0 -6
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -8
- package/icon/index.js.map +0 -1
- package/icon/location-unknown-icon.d.ts +0 -5
- package/icon/mail-unread-icon.d.ts +0 -5
- package/icon/types.d.ts +0 -18
package/navbar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css as o,keyframes as a}from"styled-components";import l,{useEffect as c,useState as s,useRef as d}from"react";import u from"react-dom";var h,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p={};Object.defineProperty(p,"__esModule",{value:!0});var g=t;const m=t=>g.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:g.jsx("path",{d:"M3.375 15C3.139 15 2.934 14.9133 2.76 14.74C2.58667 14.566 2.5 14.361 2.5 14.125C2.5 13.889 2.58667 13.684 2.76 13.51C2.934 13.3367 3.139 13.25 3.375 13.25H16.625C16.861 13.25 17.066 13.3367 17.24 13.51C17.4133 13.684 17.5 13.889 17.5 14.125C17.5 14.361 17.4133 14.566 17.24 14.74C17.066 14.9133 16.861 15 16.625 15H3.375ZM3.375 10.875C3.139 10.875 2.934 10.7883 2.76 10.615C2.58667 10.441 2.5 10.236 2.5 10C2.5 9.764 2.58667 9.559 2.76 9.385C2.934 9.21167 3.139 9.125 3.375 9.125H16.625C16.861 9.125 17.066 9.21167 17.24 9.385C17.4133 9.559 17.5 9.764 17.5 10C17.5 10.236 17.4133 10.441 17.24 10.615C17.066 10.7883 16.861 10.875 16.625 10.875H3.375ZM3.375 6.75C3.139 6.75 2.934 6.66333 2.76 6.49C2.58667 6.316 2.5 6.111 2.5 5.875C2.5 5.639 2.58667 5.434 2.76 5.26C2.934 5.08667 3.139 5 3.375 5H16.625C16.861 5 17.066 5.08667 17.24 5.26C17.4133 5.434 17.5 5.639 17.5 5.875C17.5 6.111 17.4133 6.316 17.24 6.49C17.066 6.66333 16.861 6.75 16.625 6.75H3.375Z",fill:"currentColor"})});m.displayName="MenuIcon",h=p.MenuIcon=m;var y=Array.isArray,b="object"==typeof f&&f&&f.Object===Object&&f,v=b,$="object"==typeof self&&self&&self.Object===Object&&self,w=v||$||Function("return this")(),S=w.Symbol,_=S,x=Object.prototype,F=x.hasOwnProperty,C=x.toString,B=_?_.toStringTag:void 0;var k=function(t){var e=F.call(t,B),r=t[B];try{t[B]=void 0;var n=!0}catch(t){}var i=C.call(t);return n&&(e?t[B]=r:delete t[B]),i},H=Object.prototype.toString;var j=k,D=function(t){return H.call(t)},z=S?S.toStringTag:void 0;var O=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?j(t):D(t)};var E=function(t){return null!=t&&"object"==typeof t},A=O,N=E;var W=function(t){return"symbol"==typeof t||N(t)&&"[object Symbol]"==A(t)},L=y,I=W,T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;var V=function(t,e){if(L(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!I(t))||(P.test(t)||!T.test(t)||null!=e&&t in Object(e))};var M=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},R=O,X=M;var G,U=function(t){if(!X(t))return!1;var e=R(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Z=w["__core-js_shared__"],q=(G=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var Y=function(t){return!!q&&q in t},J=Function.prototype.toString;var K=function(t){if(null!=t){try{return J.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Q=U,tt=Y,et=M,rt=K,nt=/^\[object .+?Constructor\]$/,it=Function.prototype,ot=Object.prototype,at=it.toString,lt=ot.hasOwnProperty,ct=RegExp("^"+at.call(lt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var st=function(t){return!(!et(t)||tt(t))&&(Q(t)?ct:nt).test(rt(t))},dt=function(t,e){return null==t?void 0:t[e]};var ut=function(t,e){var r=dt(t,e);return st(r)?r:void 0},ht=ut(Object,"create"),ft=ht;var pt=function(){this.__data__=ft?ft(null):{},this.size=0};var gt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mt=ht,yt=Object.prototype.hasOwnProperty;var bt=function(t){var e=this.__data__;if(mt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return yt.call(e,t)?e[t]:void 0},vt=ht,$t=Object.prototype.hasOwnProperty;var wt=ht;var St=pt,_t=gt,xt=bt,Ft=function(t){var e=this.__data__;return vt?void 0!==e[t]:$t.call(e,t)},Ct=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Bt.prototype.clear=St,Bt.prototype.delete=_t,Bt.prototype.get=xt,Bt.prototype.has=Ft,Bt.prototype.set=Ct;var kt=Bt;var Ht=function(){this.__data__=[],this.size=0};var jt=function(t,e){return t===e||t!=t&&e!=e},Dt=jt;var zt=function(t,e){for(var r=t.length;r--;)if(Dt(t[r][0],e))return r;return-1},Ot=zt,Et=Array.prototype.splice;var At=zt;var Nt=zt;var Wt=zt;var Lt=Ht,It=function(t){var e=this.__data__,r=Ot(e,t);return!(r<0)&&(r==e.length-1?e.pop():Et.call(e,r,1),--this.size,!0)},Tt=function(t){var e=this.__data__,r=At(e,t);return r<0?void 0:e[r][1]},Pt=function(t){return Nt(this.__data__,t)>-1},Vt=function(t,e){var r=this.__data__,n=Wt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Mt.prototype.clear=Lt,Mt.prototype.delete=It,Mt.prototype.get=Tt,Mt.prototype.has=Pt,Mt.prototype.set=Vt;var Rt=Mt,Xt=ut(w,"Map"),Gt=kt,Ut=Rt,Zt=Xt;var qt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Yt=function(t,e){var r=t.__data__;return qt(e)?r["string"==typeof e?"string":"hash"]:r.map},Jt=Yt;var Kt=Yt;var Qt=Yt;var te=Yt;var ee=function(){this.size=0,this.__data__={hash:new Gt,map:new(Zt||Ut),string:new Gt}},re=function(t){var e=Jt(this,t).delete(t);return this.size-=e?1:0,e},ne=function(t){return Kt(this,t).get(t)},ie=function(t){return Qt(this,t).has(t)},oe=function(t,e){var r=te(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ae(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ae.prototype.clear=ee,ae.prototype.delete=re,ae.prototype.get=ne,ae.prototype.has=ie,ae.prototype.set=oe;var le=ae,ce=le;function se(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(se.Cache||ce),r}se.Cache=ce;var de=se;var ue=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,he=/\\(\\)?/g,fe=function(t){var e=de(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ue,(function(t,r,n,i){e.push(n?i.replace(he,"$1"):r||t)})),e}));var pe=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},ge=y,me=W,ye=S?S.prototype:void 0,be=ye?ye.toString:void 0;var ve=function t(e){if("string"==typeof e)return e;if(ge(e))return pe(e,t)+"";if(me(e))return be?be.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},$e=ve;var we=y,Se=V,_e=fe,xe=function(t){return null==t?"":$e(t)};var Fe=function(t,e){return we(t)?t:Se(t,e)?[t]:_e(xe(t))},Ce=W;var Be=function(t){if("string"==typeof t||Ce(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},ke=Fe,He=Be;var je=function(t,e){for(var r=0,n=(e=ke(e,t)).length;null!=t&&r<n;)t=t[He(e[r++])];return r&&r==n?t:void 0},De=je;var ze=function(t,e,r){var n=null==t?void 0:De(t,e);return void 0===n?r:n};const Oe=(t,e,r)=>e?ze(r,e)||ze(t,e):r||t,Ee=(t,e)=>{const r=e||t.defaultValue;return ze(t.collections,r)};var Ae;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(Ae||(Ae={}));const Ne={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}}},defaultValue:"base"},We=t=>e=>{const r=e.theme,n=Ee(Ne,r[Ae.colorScheme]);return r.options&&r.options.color?Oe(n,t,r.options.color):Oe(n,t)},Le={Brand:{1:We("Brand.1"),2:We("Brand.2"),3:We("Brand.3"),4:We("Brand.4"),5:We("Brand.5"),6:We("Brand.6")},Primary:We("Primary"),PrimaryDark:We("PrimaryDark"),Secondary:We("Secondary"),Accent:{Light:{1:We("Accent.Light.1"),2:We("Accent.Light.2"),3:We("Accent.Light.3"),4:We("Accent.Light.4"),5:We("Accent.Light.5"),6:We("Accent.Light.6")},Dark:{1:We("Accent.Dark.1"),2:We("Accent.Dark.2"),3:We("Accent.Dark.3")}},Neutral:{1:We("Neutral.1"),2:We("Neutral.2"),3:We("Neutral.3"),4:We("Neutral.4"),5:We("Neutral.5"),6:We("Neutral.6"),7:We("Neutral.7"),8:We("Neutral.8")},Validation:{Green:{Text:We("Validation.Green.Text"),Icon:We("Validation.Green.Icon"),Border:We("Validation.Green.Border"),Background:We("Validation.Green.Background")},Orange:{Text:We("Validation.Orange.Text"),Icon:We("Validation.Orange.Icon"),Border:We("Validation.Orange.Border"),Background:We("Validation.Orange.Background"),Badge:We("Validation.Orange.Badge")},Red:{Text:We("Validation.Red.Text"),Icon:We("Validation.Red.Icon"),Border:We("Validation.Red.Border"),Background:We("Validation.Red.Background")}}},Ie=i.button`
|
|
1
|
+
import e,{jsx as t,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css as o,keyframes as a}from"styled-components";import l,{useEffect as c,useState as s,useRef as d}from"react";import u from"react-dom";var h,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p={};Object.defineProperty(p,"__esModule",{value:!0});var g=e;const m=e=>g.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:g.jsx("path",{d:"M3.375 15C3.139 15 2.934 14.9133 2.76 14.74C2.58667 14.566 2.5 14.361 2.5 14.125C2.5 13.889 2.58667 13.684 2.76 13.51C2.934 13.3367 3.139 13.25 3.375 13.25H16.625C16.861 13.25 17.066 13.3367 17.24 13.51C17.4133 13.684 17.5 13.889 17.5 14.125C17.5 14.361 17.4133 14.566 17.24 14.74C17.066 14.9133 16.861 15 16.625 15H3.375ZM3.375 10.875C3.139 10.875 2.934 10.7883 2.76 10.615C2.58667 10.441 2.5 10.236 2.5 10C2.5 9.764 2.58667 9.559 2.76 9.385C2.934 9.21167 3.139 9.125 3.375 9.125H16.625C16.861 9.125 17.066 9.21167 17.24 9.385C17.4133 9.559 17.5 9.764 17.5 10C17.5 10.236 17.4133 10.441 17.24 10.615C17.066 10.7883 16.861 10.875 16.625 10.875H3.375ZM3.375 6.75C3.139 6.75 2.934 6.66333 2.76 6.49C2.58667 6.316 2.5 6.111 2.5 5.875C2.5 5.639 2.58667 5.434 2.76 5.26C2.934 5.08667 3.139 5 3.375 5H16.625C16.861 5 17.066 5.08667 17.24 5.26C17.4133 5.434 17.5 5.639 17.5 5.875C17.5 6.111 17.4133 6.316 17.24 6.49C17.066 6.66333 16.861 6.75 16.625 6.75H3.375Z",fill:"currentColor"})});m.displayName="MenuIcon",h=p.MenuIcon=m;var y=Array.isArray,b="object"==typeof f&&f&&f.Object===Object&&f,v=b,$="object"==typeof self&&self&&self.Object===Object&&self,w=v||$||Function("return this")(),S=w.Symbol,_=S,x=Object.prototype,F=x.hasOwnProperty,C=x.toString,B=_?_.toStringTag:void 0;var k=function(e){var t=F.call(e,B),r=e[B];try{e[B]=void 0;var n=!0}catch(e){}var i=C.call(e);return n&&(t?e[B]=r:delete e[B]),i},H=Object.prototype.toString;var j=k,D=function(e){return H.call(e)},z=S?S.toStringTag:void 0;var O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?j(e):D(e)};var A=function(e){return null!=e&&"object"==typeof e},E=O,N=A;var W=function(e){return"symbol"==typeof e||N(e)&&"[object Symbol]"==E(e)},L=y,I=W,T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;var R=function(e,t){if(L(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!I(e))||(P.test(e)||!T.test(e)||null!=t&&e in Object(t))};var V=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},M=O,X=V;var G,U=function(e){if(!X(e))return!1;var t=M(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Z=w["__core-js_shared__"],q=(G=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var Y=function(e){return!!q&&q in e},J=Function.prototype.toString;var K=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=U,ee=Y,te=V,re=K,ne=/^\[object .+?Constructor\]$/,ie=Function.prototype,oe=Object.prototype,ae=ie.toString,le=oe.hasOwnProperty,ce=RegExp("^"+ae.call(le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(e){return!(!te(e)||ee(e))&&(Q(e)?ce:ne).test(re(e))},de=function(e,t){return null==e?void 0:e[t]};var ue=function(e,t){var r=de(e,t);return se(r)?r:void 0},he=ue(Object,"create"),fe=he;var pe=function(){this.__data__=fe?fe(null):{},this.size=0};var ge=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},me=he,ye=Object.prototype.hasOwnProperty;var be=function(e){var t=this.__data__;if(me){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ye.call(t,e)?t[e]:void 0},ve=he,$e=Object.prototype.hasOwnProperty;var we=he;var Se=pe,_e=ge,xe=be,Fe=function(e){var t=this.__data__;return ve?void 0!==t[e]:$e.call(t,e)},Ce=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=we&&void 0===t?"__lodash_hash_undefined__":t,this};function Be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Be.prototype.clear=Se,Be.prototype.delete=_e,Be.prototype.get=xe,Be.prototype.has=Fe,Be.prototype.set=Ce;var ke=Be;var He=function(){this.__data__=[],this.size=0};var je=function(e,t){return e===t||e!=e&&t!=t},De=je;var ze=function(e,t){for(var r=e.length;r--;)if(De(e[r][0],t))return r;return-1},Oe=ze,Ae=Array.prototype.splice;var Ee=ze;var Ne=ze;var We=ze;var Le=He,Ie=function(e){var t=this.__data__,r=Oe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ae.call(t,r,1),--this.size,!0)},Te=function(e){var t=this.__data__,r=Ee(t,e);return r<0?void 0:t[r][1]},Pe=function(e){return Ne(this.__data__,e)>-1},Re=function(e,t){var r=this.__data__,n=We(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Ve(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ve.prototype.clear=Le,Ve.prototype.delete=Ie,Ve.prototype.get=Te,Ve.prototype.has=Pe,Ve.prototype.set=Re;var Me=Ve,Xe=ue(w,"Map"),Ge=ke,Ue=Me,Ze=Xe;var qe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ye=function(e,t){var r=e.__data__;return qe(t)?r["string"==typeof t?"string":"hash"]:r.map},Je=Ye;var Ke=Ye;var Qe=Ye;var et=Ye;var tt=function(){this.size=0,this.__data__={hash:new Ge,map:new(Ze||Ue),string:new Ge}},rt=function(e){var t=Je(this,e).delete(e);return this.size-=t?1:0,t},nt=function(e){return Ke(this,e).get(e)},it=function(e){return Qe(this,e).has(e)},ot=function(e,t){var r=et(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function at(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}at.prototype.clear=tt,at.prototype.delete=rt,at.prototype.get=nt,at.prototype.has=it,at.prototype.set=ot;var lt=at,ct=lt;function st(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(st.Cache||ct),r}st.Cache=ct;var dt=st;var ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ht=/\\(\\)?/g,ft=function(e){var t=dt(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ut,(function(e,r,n,i){t.push(n?i.replace(ht,"$1"):r||e)})),t}));var pt=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},gt=y,mt=W,yt=S?S.prototype:void 0,bt=yt?yt.toString:void 0;var vt=function e(t){if("string"==typeof t)return t;if(gt(t))return pt(t,e)+"";if(mt(t))return bt?bt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},$t=vt;var wt=y,St=R,_t=ft,xt=function(e){return null==e?"":$t(e)};var Ft=function(e,t){return wt(e)?e:St(e,t)?[e]:_t(xt(e))},Ct=W;var Bt=function(e){if("string"==typeof e||Ct(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},kt=Ft,Ht=Bt;var jt=function(e,t){for(var r=0,n=(t=kt(t,e)).length;null!=e&&r<n;)e=e[Ht(t[r++])];return r&&r==n?e:void 0},Dt=jt;var zt=function(e,t,r){var n=null==e?void 0:Dt(e,t);return void 0===n?r:n};const Ot=(e,t,r)=>t?zt(r,t)||zt(e,t):r||e,At=(e,t)=>{const r=t||e.defaultValue;return zt(e.collections,r)};var Et;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(Et||(Et={}));const Nt={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},Wt=e=>t=>{const r=t.theme,n=At(Nt,r[Et.colorScheme]);return r.options&&r.options.color?Ot(n,e,r.options.color):Ot(n,e)},Lt={Brand:{1:Wt("Brand.1"),2:Wt("Brand.2"),3:Wt("Brand.3"),4:Wt("Brand.4"),5:Wt("Brand.5"),6:Wt("Brand.6")},Primary:Wt("Primary"),PrimaryDark:Wt("PrimaryDark"),Secondary:Wt("Secondary"),Accent:{Light:{1:Wt("Accent.Light.1"),2:Wt("Accent.Light.2"),3:Wt("Accent.Light.3"),4:Wt("Accent.Light.4"),5:Wt("Accent.Light.5"),6:Wt("Accent.Light.6")},Dark:{1:Wt("Accent.Dark.1"),2:Wt("Accent.Dark.2"),3:Wt("Accent.Dark.3")}},Neutral:{1:Wt("Neutral.1"),2:Wt("Neutral.2"),3:Wt("Neutral.3"),4:Wt("Neutral.4"),5:Wt("Neutral.5"),6:Wt("Neutral.6"),7:Wt("Neutral.7"),8:Wt("Neutral.8")},Validation:{Green:{Text:Wt("Validation.Green.Text"),Icon:Wt("Validation.Green.Icon"),Border:Wt("Validation.Green.Border"),Background:Wt("Validation.Green.Background")},Orange:{Text:Wt("Validation.Orange.Text"),Icon:Wt("Validation.Orange.Icon"),Border:Wt("Validation.Orange.Border"),Background:Wt("Validation.Orange.Background"),Badge:Wt("Validation.Orange.Badge")},Red:{Text:Wt("Validation.Red.Text"),Icon:Wt("Validation.Red.Icon"),Border:Wt("Validation.Red.Border"),Background:Wt("Validation.Red.Background")}},Shadow:{Accent:Wt("Shadow.Accent"),Red:Wt("Shadow.Red")}},It=i.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -14,14 +14,14 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
14
14
|
|
|
15
15
|
&:active,
|
|
16
16
|
&:focus {
|
|
17
|
-
${({$outline:
|
|
17
|
+
${({$outline:e})=>"none"===e&&"outline: none;"}
|
|
18
18
|
|
|
19
|
-
${({$highlight:
|
|
20
|
-
background-color: ${
|
|
19
|
+
${({$highlight:e})=>e&&o`
|
|
20
|
+
background-color: ${Lt.Neutral[7]};
|
|
21
21
|
`}
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
24
|
-
position: ${
|
|
23
|
+
`,Tt=l.forwardRef((({children:e,focusHighlight:r=!0,focusOutline:n="none",...i},o)=>t(It,{ref:o,$outline:n,$highlight:r,...i,children:e}))),Pt={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Rt=e=>Object.keys(Pt).reduce(((t,r)=>{const n=Pt[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),Vt=Rt("max-width"),Mt=(Rt("min-width"),"all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)"),Xt={notCompress:6,compress:4},Gt=i.div`
|
|
24
|
+
position: ${e=>e.fixed?"fixed":"relative"};
|
|
25
25
|
background-color: white;
|
|
26
26
|
z-index: 30;
|
|
27
27
|
top: 0;
|
|
@@ -29,35 +29,35 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
29
29
|
right: 0;
|
|
30
30
|
width: 100%;
|
|
31
31
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
32
|
-
`,
|
|
33
|
-
height: ${
|
|
32
|
+
`,Ut=i.nav`
|
|
33
|
+
height: ${e=>e.compress?Xt.compress:Xt.notCompress}rem;
|
|
34
34
|
width: 100%;
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: row;
|
|
37
37
|
justify-content: space-between;
|
|
38
38
|
align-items: center;
|
|
39
39
|
position: relative;
|
|
40
|
-
transition: ${
|
|
40
|
+
transition: ${Mt};
|
|
41
41
|
|
|
42
|
-
${
|
|
42
|
+
${Vt.tablet} {
|
|
43
43
|
height: ${3.5}rem;
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,Zt=i.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
height: 100%;
|
|
48
|
-
`,
|
|
48
|
+
`,qt=i(Tt)`
|
|
49
49
|
display: none;
|
|
50
50
|
|
|
51
|
-
${
|
|
51
|
+
${Vt.tablet} {
|
|
52
52
|
display: flex;
|
|
53
53
|
padding: 0 1.5rem;
|
|
54
54
|
margin-right: -1.5rem;
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,Yt=i(h)`
|
|
57
57
|
height: 1.5rem;
|
|
58
58
|
width: 1.5rem;
|
|
59
|
-
color: ${
|
|
60
|
-
`,
|
|
59
|
+
color: ${Lt.Neutral[1]};
|
|
60
|
+
`,Jt=l.forwardRef(((e,r)=>{const{children:n,"data-testid":i="container",type:o="flex",...a}=e;return t(Kt,{ref:r,"data-testid":i,type:o,...a,children:n})})),Kt=i.div`
|
|
61
61
|
flex-grow: 1;
|
|
62
62
|
margin: 0 auto;
|
|
63
63
|
position: relative;
|
|
@@ -68,31 +68,31 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
68
68
|
/* Max width restrictions */
|
|
69
69
|
max-width: 1320px;
|
|
70
70
|
|
|
71
|
-
${
|
|
71
|
+
${Vt.desktopM} {
|
|
72
72
|
max-width: 1140px;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
${
|
|
75
|
+
${Vt.tablet} {
|
|
76
76
|
max-width: 720px;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
${
|
|
79
|
+
${Vt.mobileL} {
|
|
80
80
|
width: 100%;
|
|
81
81
|
padding: 0;
|
|
82
82
|
max-width: unset;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
${
|
|
85
|
+
${e=>{switch(e.type){case"grid":return o`
|
|
86
86
|
column-gap: 2rem;
|
|
87
87
|
display: grid;
|
|
88
88
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
89
89
|
|
|
90
|
-
${
|
|
90
|
+
${Vt.tablet} {
|
|
91
91
|
column-gap: 1.5rem;
|
|
92
92
|
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
${
|
|
95
|
+
${Vt.mobileL} {
|
|
96
96
|
column-gap: 1rem;
|
|
97
97
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
98
98
|
}
|
|
@@ -102,7 +102,7 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
102
102
|
`;default:return o`
|
|
103
103
|
display: flex;
|
|
104
104
|
`}}}
|
|
105
|
-
`,
|
|
105
|
+
`,Qt=l.forwardRef(((e,r)=>{const{children:n,"data-testid":i="section",...o}=e;return t(er,{ref:r,"data-testid":i,...o,children:n})})),er=i.section`
|
|
106
106
|
display: block;
|
|
107
107
|
position: relative;
|
|
108
108
|
padding: 0 1.5rem;
|
|
@@ -110,23 +110,23 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
110
110
|
// Extra enforcement
|
|
111
111
|
padding-left: 1.5rem !important;
|
|
112
112
|
padding-right: 1.5rem !important;
|
|
113
|
-
`,
|
|
113
|
+
`,tr=l.forwardRef(((e,r)=>{const{children:n,"data-testid":i="content",className:o,type:a="flex",...l}=e;return t(Qt,{ref:r,"data-testid":i,className:o,...l,children:t(Jt,{"data-testid":`${i}-container`,type:a,"data-id":"container",children:n})})})),rr={Section:Qt,Container:Jt,Content:tr},nr=i.div`
|
|
114
114
|
background: hsl(0, 0%, 94%);
|
|
115
115
|
padding: 0 0.5rem;
|
|
116
116
|
|
|
117
|
-
${
|
|
117
|
+
${Vt.mobileL} {
|
|
118
118
|
padding: 0;
|
|
119
119
|
}
|
|
120
|
-
`,ir=()=>{c((()=>{
|
|
120
|
+
`,ir=()=>{c((()=>{e()||r()}),[]);const e=()=>document.getElementById(or),r=()=>{if(!document.getElementById(or)){const e=document.createElement("script");e.id=or,e.type="module",e.src=ar,document.head.appendChild(e)}};return t(nr,{dangerouslySetInnerHTML:{__html:"<sgds-masthead></sgds-masthead>"}})},or="lifesg-ds-masthead-script",ar="https://cdn.jsdelivr.net/npm/@govtechsg/sgds-web-component/Masthead/index.js",lr=i.div`
|
|
121
121
|
position: fixed;
|
|
122
122
|
left: 0;
|
|
123
123
|
top: 0;
|
|
124
124
|
height: 0;
|
|
125
125
|
width: 0;
|
|
126
126
|
visibility: hidden;
|
|
127
|
-
z-index: ${
|
|
127
|
+
z-index: ${e=>e.zIndex||(e.$stacked?99999:99998)};
|
|
128
128
|
|
|
129
|
-
${
|
|
129
|
+
${e=>{if(e.$show)return o`
|
|
130
130
|
height: 100%;
|
|
131
131
|
width: 100vw;
|
|
132
132
|
visibility: visible;
|
|
@@ -135,44 +135,44 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
135
135
|
position: absolute;
|
|
136
136
|
left: 0;
|
|
137
137
|
top: 0;
|
|
138
|
-
background-color: rgba(5, 1, 1, ${
|
|
139
|
-
backdrop-filter: ${
|
|
138
|
+
background-color: rgba(5, 1, 1, ${e=>e.$backgroundOpacity});
|
|
139
|
+
backdrop-filter: ${e=>(e=>{let t="";return e&&(t+="blur(10px)"),t.length>0?t:"none"})(e.$backgroundBlur)};
|
|
140
140
|
transition: opacity 200ms ease;
|
|
141
141
|
|
|
142
|
-
${
|
|
142
|
+
${e=>{let t="";return e.$show?t+=o`
|
|
143
143
|
visibility: visible;
|
|
144
144
|
opacity: 1;
|
|
145
145
|
pointer-events: auto;
|
|
146
146
|
height: 100%;
|
|
147
147
|
width: 100vw;
|
|
148
|
-
`:
|
|
148
|
+
`:t+=o`
|
|
149
149
|
visibility: hidden;
|
|
150
150
|
opacity: 0;
|
|
151
|
-
transition-delay: ${
|
|
151
|
+
transition-delay: ${e.$disableTransition?"0ms":"400ms"};
|
|
152
152
|
pointer-events: none;
|
|
153
153
|
height: 0;
|
|
154
154
|
width: 0;
|
|
155
|
-
`,
|
|
155
|
+
`,e.$disableTransition&&(t+=o`
|
|
156
156
|
transition: none;
|
|
157
|
-
`),
|
|
158
|
-
`,sr=({show:
|
|
157
|
+
`),t}}
|
|
158
|
+
`,sr=({show:e=!1,rootId:r,onOverlayClick:n,children:i,backgroundOpacity:o,backgroundBlur:a=!0,disableTransition:h=!1,enableOverlayClick:f=!1,zIndex:p,id:g})=>{const[m,y]=s(null),[b,v]=s(),$=d(),w=d(null),S=i&&l.cloneElement(i,{ref:w}),_=g?`lifesg-ds-overlay-root-${g}`:"lifesg-ds-overlay-root";c((()=>{if(e){const e=C();if(x(e),!e){const e=setTimeout((()=>{k("add")}),200);return()=>clearTimeout(e)}}else if(!$.current){const e=setTimeout((()=>{k("remove")}),200);return()=>clearTimeout(e)}}),[e]),c((()=>{y(F());const e=C();return x(e),e||B(),()=>{k("remove")}}),[]);const x=e=>{$.current=e,v(e)},F=()=>document&&r?document.getElementById(r):document?document.body:null,C=()=>document.body.classList.contains(ur),B=()=>{if(!document.getElementById(dr)){const e=document.createElement("style");e.id=dr;const t=document.documentElement.clientWidth,r=window.innerWidth-t;e.innerHTML=`\n\t\t\t\t.${ur} {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tpadding-right: ${r}px !important;\n\t\t\t\t\t-ms-overflow-style: none;\n\t\t\t\t\tscrollbar-width: none;\n\t\t\t\t}\n\n\t\t\t\t.${ur}::-webkit-scrollbar {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t`,document.body.appendChild(e)}},k=e=>{const t=document.body.classList.contains(ur);"add"!==e||t?"remove"===e&&t&&document.body.classList.remove(ur):document.body.classList.add(ur)},H=e=>{e.preventDefault();const t=w.current?.firstChild;t&&t.contains(e.target)||n&&f&&n()};return m?u.createPortal(t(lr,{id:_,"data-testid":_,$show:e,zIndex:p,$stacked:b,children:i&&t(cr,{"data-testid":"overlay-wrapper",$show:e,$backgroundOpacity:o||(b?.5:.8),$backgroundBlur:a,$disableTransition:h,$enableOverlayClick:f,onClick:H,children:S})}),m):null},dr="lifesg-ds-overlay-stylesheet",ur="lifesg-ds-overlay-open",hr=i.a`
|
|
159
159
|
display: flex;
|
|
160
160
|
justify-content: center;
|
|
161
161
|
margin-right: 2rem;
|
|
162
162
|
|
|
163
163
|
img {
|
|
164
164
|
width: auto;
|
|
165
|
-
height: ${
|
|
166
|
-
transition: ${
|
|
165
|
+
height: ${e=>e.$compress?1.375:2}rem;
|
|
166
|
+
transition: ${Mt};
|
|
167
167
|
|
|
168
|
-
${
|
|
168
|
+
${Vt.tablet} {
|
|
169
169
|
height: 1.375rem;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
`,fr=({resources:
|
|
172
|
+
`,fr=({resources:e,compress:r,onClick:n,"data-testid":i="navbar-brand"})=>t(hr,{role:"link","aria-label":e.brandName+"-app-home-page",onClick:n,$compress:r,tabIndex:0,"data-testid":i,children:t("img",{src:e.logoSrc,alt:e.brandName+"-app-logo"})});var pr,gr={};Object.defineProperty(gr,"__esModule",{value:!0});var mr=e;const yr=e=>mr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:mr.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});yr.displayName="CrossIcon",pr=gr.CrossIcon=yr;const br=i.div`
|
|
173
173
|
display: none;
|
|
174
174
|
|
|
175
|
-
${
|
|
175
|
+
${Vt.tablet} {
|
|
176
176
|
display: flex;
|
|
177
177
|
}
|
|
178
178
|
`,vr=i.div`
|
|
@@ -184,9 +184,9 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
184
184
|
padding: 0 0 1rem;
|
|
185
185
|
background-color: white;
|
|
186
186
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
187
|
-
visibility: ${
|
|
187
|
+
visibility: ${e=>e.$show?"visible":"hidden"};
|
|
188
188
|
|
|
189
|
-
${
|
|
189
|
+
${e=>e.$show?o`
|
|
190
190
|
right: 0;
|
|
191
191
|
transition: all 300ms cubic-bezier(0.21, 0.79, 0.53, 1);
|
|
192
192
|
transition-delay: 200ms;
|
|
@@ -194,15 +194,15 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
194
194
|
right: -100%;
|
|
195
195
|
transition: all 300ms cubic-bezier(0.4, 0.34, 0.38, 1);
|
|
196
196
|
`}
|
|
197
|
-
${
|
|
198
|
-
height: calc(${
|
|
197
|
+
${e=>{const t=`${e.$viewHeight}px`||"1vh";return o`
|
|
198
|
+
height: calc(${t} * 100);
|
|
199
199
|
`}}
|
|
200
200
|
|
|
201
|
-
${
|
|
201
|
+
${Vt.tablet} {
|
|
202
202
|
width: 75%;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
${
|
|
205
|
+
${Vt.mobileL} {
|
|
206
206
|
width: 100%;
|
|
207
207
|
}
|
|
208
208
|
`,$r=i.div`
|
|
@@ -217,21 +217,21 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
217
217
|
height: 1.5rem;
|
|
218
218
|
width: 1.5rem;
|
|
219
219
|
margin-right: -0.25rem;
|
|
220
|
-
`,_r=i(
|
|
220
|
+
`,_r=i(Tt)`
|
|
221
221
|
position: absolute;
|
|
222
222
|
right: -0.5rem;
|
|
223
223
|
bottom: 0.65rem;
|
|
224
|
-
color: ${
|
|
224
|
+
color: ${Lt.Neutral[1]};
|
|
225
225
|
|
|
226
226
|
:active,
|
|
227
227
|
:focus {
|
|
228
|
-
color: ${
|
|
228
|
+
color: ${Lt.Primary};
|
|
229
229
|
}
|
|
230
|
-
`,xr=l.forwardRef(((t,n)=>{const{show:i,resources:o,children:a,onClose:l,onBrandClick:d}=t,[u,h]=s(0);c((()=>(f(),window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f)})),[]);const f=()=>{if(window){const t=.01*window.innerHeight;h(t)}};return e(br,{ref:n,"data-testid":"drawer",children:e(vr,{$show:i,$viewHeight:u,children:r($r,{children:[r(wr,{children:[e(fr,{resources:o,onClick:d,"data-testid":"drawer__brand"}),e(_r,{onClick:l,focusHighlight:!1,"aria-label":"Close nav menu",children:e(Sr,{})})]}),a]})})})}));var Fr=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1},Cr=Rt;var Br=Rt,kr=Xt,Hr=le;var jr=Rt,Dr=function(){this.__data__=new Cr,this.size=0},zr=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Or=function(t){return this.__data__.get(t)},Er=function(t){return this.__data__.has(t)},Ar=function(t,e){var r=this.__data__;if(r instanceof Br){var n=r.__data__;if(!kr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Hr(n)}return r.set(t,e),this.size=r.size,this};function Nr(t){var e=this.__data__=new jr(t);this.size=e.size}Nr.prototype.clear=Dr,Nr.prototype.delete=zr,Nr.prototype.get=Or,Nr.prototype.has=Er,Nr.prototype.set=Ar;var Wr=Nr;var Lr=le,Ir=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Tr=function(t){return this.__data__.has(t)};function Pr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Lr;++e<r;)this.add(t[e])}Pr.prototype.add=Pr.prototype.push=Ir,Pr.prototype.has=Tr;var Vr=Pr,Mr=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1},Rr=function(t,e){return t.has(e)};var Xr=function(t,e,r,n,i,o){var a=1&r,l=t.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var s=o.get(t),d=o.get(e);if(s&&d)return s==e&&d==t;var u=-1,h=!0,f=2&r?new Vr:void 0;for(o.set(t,e),o.set(e,t);++u<l;){var p=t[u],g=e[u];if(n)var m=a?n(g,p,u,e,t,o):n(p,g,u,t,e,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!Mr(e,(function(t,e){if(!Rr(f,e)&&(p===t||i(p,t,r,n,o)))return f.push(e)}))){h=!1;break}}else if(p!==g&&!i(p,g,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h};var Gr=w.Uint8Array,Ur=jt,Zr=Xr,qr=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},Yr=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Jr=S?S.prototype:void 0,Kr=Jr?Jr.valueOf:void 0;var Qr=function(t,e,r,n,i,o,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Gr(t),new Gr(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ur(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=qr;case"[object Set]":var c=1&n;if(l||(l=Yr),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;n|=2,a.set(t,e);var d=Zr(l(t),l(e),n,i,o,a);return a.delete(t),d;case"[object Symbol]":if(Kr)return Kr.call(t)==Kr.call(e)}return!1};var tn=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},en=y;var rn=function(t,e,r){var n=e(t);return en(t)?n:tn(n,r(t))};var nn=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o},on=function(){return[]},an=Object.prototype.propertyIsEnumerable,ln=Object.getOwnPropertySymbols,cn=ln?function(t){return null==t?[]:(t=Object(t),nn(ln(t),(function(e){return an.call(t,e)})))}:on;var sn=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},dn=O,un=E;var hn=function(t){return un(t)&&"[object Arguments]"==dn(t)},fn=E,pn=Object.prototype,gn=pn.hasOwnProperty,mn=pn.propertyIsEnumerable,yn=hn(function(){return arguments}())?hn:function(t){return fn(t)&&gn.call(t,"callee")&&!mn.call(t,"callee")},bn={exports:{}};var vn=function(){return!1};!function(t,e){var r=w,n=vn,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||n;t.exports=l}(bn,bn.exports);var $n=/^(?:0|[1-9]\d*)$/;var wn=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&$n.test(t))&&t>-1&&t%1==0&&t<e};var Sn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},_n=O,xn=Sn,Fn=E,Cn={};Cn["[object Float32Array]"]=Cn["[object Float64Array]"]=Cn["[object Int8Array]"]=Cn["[object Int16Array]"]=Cn["[object Int32Array]"]=Cn["[object Uint8Array]"]=Cn["[object Uint8ClampedArray]"]=Cn["[object Uint16Array]"]=Cn["[object Uint32Array]"]=!0,Cn["[object Arguments]"]=Cn["[object Array]"]=Cn["[object ArrayBuffer]"]=Cn["[object Boolean]"]=Cn["[object DataView]"]=Cn["[object Date]"]=Cn["[object Error]"]=Cn["[object Function]"]=Cn["[object Map]"]=Cn["[object Number]"]=Cn["[object Object]"]=Cn["[object RegExp]"]=Cn["[object Set]"]=Cn["[object String]"]=Cn["[object WeakMap]"]=!1;var Bn=function(t){return Fn(t)&&xn(t.length)&&!!Cn[_n(t)]};var kn=function(t){return function(e){return t(e)}},Hn={exports:{}};!function(t,e){var r=b,n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(Hn,Hn.exports);var jn=Bn,Dn=kn,zn=Hn.exports,On=zn&&zn.isTypedArray,En=On?Dn(On):jn,An=sn,Nn=yn,Wn=y,Ln=bn.exports,In=wn,Tn=En,Pn=Object.prototype.hasOwnProperty;var Vn=function(t,e){var r=Wn(t),n=!r&&Nn(t),i=!r&&!n&&Ln(t),o=!r&&!n&&!i&&Tn(t),a=r||n||i||o,l=a?An(t.length,String):[],c=l.length;for(var s in t)!e&&!Pn.call(t,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||In(s,c))||l.push(s);return l},Mn=Object.prototype;var Rn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mn)};var Xn=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),Gn=Rn,Un=Xn,Zn=Object.prototype.hasOwnProperty;var qn=U,Yn=Sn;var Jn=Vn,Kn=function(t){if(!Gn(t))return Un(t);var e=[];for(var r in Object(t))Zn.call(t,r)&&"constructor"!=r&&e.push(r);return e},Qn=function(t){return null!=t&&Yn(t.length)&&!qn(t)};var ti=function(t){return Qn(t)?Jn(t):Kn(t)},ei=rn,ri=cn,ni=ti;var ii=function(t){return ei(t,ni,ri)},oi=Object.prototype.hasOwnProperty;var ai=function(t,e,r,n,i,o){var a=1&r,l=ii(t),c=l.length;if(c!=ii(e).length&&!a)return!1;for(var s=c;s--;){var d=l[s];if(!(a?d in e:oi.call(e,d)))return!1}var u=o.get(t),h=o.get(e);if(u&&h)return u==e&&h==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=a;++s<c;){var g=t[d=l[s]],m=e[d];if(n)var y=a?n(m,g,d,e,t,o):n(g,m,d,t,e,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){f=!1;break}p||(p="constructor"==d)}if(f&&!p){var b=t.constructor,v=e.constructor;b==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(f=!1)}return o.delete(t),o.delete(e),f},li=ut(w,"DataView"),ci=Xt,si=ut(w,"Promise"),di=ut(w,"Set"),ui=ut(w,"WeakMap"),hi=O,fi=K,pi=fi(li),gi=fi(ci),mi=fi(si),yi=fi(di),bi=fi(ui),vi=hi;(li&&"[object DataView]"!=vi(new li(new ArrayBuffer(1)))||ci&&"[object Map]"!=vi(new ci)||si&&"[object Promise]"!=vi(si.resolve())||di&&"[object Set]"!=vi(new di)||ui&&"[object WeakMap]"!=vi(new ui))&&(vi=function(t){var e=hi(t),r="[object Object]"==e?t.constructor:void 0,n=r?fi(r):"";if(n)switch(n){case pi:return"[object DataView]";case gi:return"[object Map]";case mi:return"[object Promise]";case yi:return"[object Set]";case bi:return"[object WeakMap]"}return e});var $i=Wr,wi=Xr,Si=Qr,_i=ai,xi=vi,Fi=y,Ci=bn.exports,Bi=En,ki="[object Object]",Hi=Object.prototype.hasOwnProperty;var ji=function(t,e,r,n,i,o){var a=Fi(t),l=Fi(e),c=a?"[object Array]":xi(t),s=l?"[object Array]":xi(e),d=(c="[object Arguments]"==c?ki:c)==ki,u=(s="[object Arguments]"==s?ki:s)==ki,h=c==s;if(h&&Ci(t)){if(!Ci(e))return!1;a=!0,d=!1}if(h&&!d)return o||(o=new $i),a||Bi(t)?wi(t,e,r,n,i,o):Si(t,e,c,r,n,i,o);if(!(1&r)){var f=d&&Hi.call(t,"__wrapped__"),p=u&&Hi.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,m=p?e.value():e;return o||(o=new $i),i(g,m,r,n,o)}}return!!h&&(o||(o=new $i),_i(t,e,r,n,i,o))},Di=E;var zi=function t(e,r,n,i,o){return e===r||(null==e||null==r||!Di(e)&&!Di(r)?e!=e&&r!=r:ji(e,r,n,i,t,o))},Oi=Wr,Ei=zi;var Ai=M;var Ni=function(t){return t==t&&!Ai(t)},Wi=Ni,Li=ti;var Ii=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Ti=function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var l=r[i];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<o;){var c=(l=r[i])[0],s=t[c],d=l[1];if(a&&l[2]){if(void 0===s&&!(c in t))return!1}else{var u=new Oi;if(n)var h=n(s,d,c,t,e,u);if(!(void 0===h?Ei(d,s,3,n,u):h))return!1}}return!0},Pi=function(t){for(var e=Li(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Wi(i)]}return e},Vi=Ii;var Mi=Fe,Ri=yn,Xi=y,Gi=wn,Ui=Sn,Zi=Be;var qi=function(t,e){return null!=t&&e in Object(t)},Yi=function(t,e,r){for(var n=-1,i=(e=Mi(e,t)).length,o=!1;++n<i;){var a=Zi(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Ui(i)&&Gi(a,i)&&(Xi(t)||Ri(t))};var Ji=zi,Ki=ze,Qi=function(t,e){return null!=t&&Yi(t,e,qi)},to=V,eo=Ni,ro=Ii,no=Be;var io=je;var oo=function(t){return function(e){return null==e?void 0:e[t]}},ao=function(t){return function(e){return io(e,t)}},lo=V,co=Be;var so=function(t){var e=Pi(t);return 1==e.length&&e[0][2]?Vi(e[0][0],e[0][1]):function(r){return r===t||Ti(r,t,e)}},uo=function(t,e){return to(t)&&eo(e)?ro(no(t),e):function(r){var n=Ki(r,t);return void 0===n&&n===e?Qi(r,t):Ji(e,n,3)}},ho=function(t){return t},fo=y,po=function(t){return lo(t)?oo(co(t)):ao(t)};var go=/\s/;var mo=function(t){for(var e=t.length;e--&&go.test(t.charAt(e)););return e},yo=/^\s+/;var bo=function(t){return t?t.slice(0,mo(t)+1).replace(yo,""):t},vo=M,$o=W,wo=/^[-+]0x[0-9a-f]+$/i,So=/^0b[01]+$/i,_o=/^0o[0-7]+$/i,xo=parseInt;var Fo=function(t){if("number"==typeof t)return t;if($o(t))return NaN;if(vo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=vo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=bo(t);var r=So.test(t);return r||_o.test(t)?xo(t.slice(2),r?2:8):wo.test(t)?NaN:+t};var Co=function(t){return t?Infinity===(t=Fo(t))||-Infinity===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var Bo=Fr,ko=function(t){return"function"==typeof t?t:null==t?ho:"object"==typeof t?fo(t)?uo(t[0],t[1]):so(t):po(t)},Ho=function(t){var e=Co(t),r=e%1;return e==e?r?e-r:e:0},jo=Math.max;var Do=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:Ho(r);return i<0&&(i=jo(n+i,0)),Bo(t,ko(e),i)};const zo=i.div`
|
|
230
|
+
`,xr=l.forwardRef(((e,n)=>{const{show:i,resources:o,children:a,onClose:l,onBrandClick:d}=e,[u,h]=s(0);c((()=>(f(),window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f)})),[]);const f=()=>{if(window){const e=.01*window.innerHeight;h(e)}};return t(br,{ref:n,"data-testid":"drawer",children:t(vr,{$show:i,$viewHeight:u,children:r($r,{children:[r(wr,{children:[t(fr,{resources:o,onClick:d,"data-testid":"drawer__brand"}),t(_r,{onClick:l,focusHighlight:!1,"aria-label":"Close nav menu",children:t(Sr,{})})]}),a]})})})}));var Fr=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1},Cr=Me;var Br=Me,kr=Xe,Hr=lt;var jr=Me,Dr=function(){this.__data__=new Cr,this.size=0},zr=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Or=function(e){return this.__data__.get(e)},Ar=function(e){return this.__data__.has(e)},Er=function(e,t){var r=this.__data__;if(r instanceof Br){var n=r.__data__;if(!kr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hr(n)}return r.set(e,t),this.size=r.size,this};function Nr(e){var t=this.__data__=new jr(e);this.size=t.size}Nr.prototype.clear=Dr,Nr.prototype.delete=zr,Nr.prototype.get=Or,Nr.prototype.has=Ar,Nr.prototype.set=Er;var Wr=Nr;var Lr=lt,Ir=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Tr=function(e){return this.__data__.has(e)};function Pr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Lr;++t<r;)this.add(e[t])}Pr.prototype.add=Pr.prototype.push=Ir,Pr.prototype.has=Tr;var Rr=Pr,Vr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Mr=function(e,t){return e.has(t)};var Xr=function(e,t,r,n,i,o){var a=1&r,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var s=o.get(e),d=o.get(t);if(s&&d)return s==t&&d==e;var u=-1,h=!0,f=2&r?new Rr:void 0;for(o.set(e,t),o.set(t,e);++u<l;){var p=e[u],g=t[u];if(n)var m=a?n(g,p,u,t,e,o):n(p,g,u,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!Vr(t,(function(e,t){if(!Mr(f,t)&&(p===e||i(p,e,r,n,o)))return f.push(t)}))){h=!1;break}}else if(p!==g&&!i(p,g,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Gr=w.Uint8Array,Ur=je,Zr=Xr,qr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Yr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Jr=S?S.prototype:void 0,Kr=Jr?Jr.valueOf:void 0;var Qr=function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Gr(e),new Gr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ur(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=qr;case"[object Set]":var c=1&n;if(l||(l=Yr),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;n|=2,a.set(e,t);var d=Zr(l(e),l(t),n,i,o,a);return a.delete(e),d;case"[object Symbol]":if(Kr)return Kr.call(e)==Kr.call(t)}return!1};var en=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},tn=y;var rn=function(e,t,r){var n=t(e);return tn(e)?n:en(n,r(e))};var nn=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},on=function(){return[]},an=Object.prototype.propertyIsEnumerable,ln=Object.getOwnPropertySymbols,cn=ln?function(e){return null==e?[]:(e=Object(e),nn(ln(e),(function(t){return an.call(e,t)})))}:on;var sn=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},dn=O,un=A;var hn=function(e){return un(e)&&"[object Arguments]"==dn(e)},fn=A,pn=Object.prototype,gn=pn.hasOwnProperty,mn=pn.propertyIsEnumerable,yn=hn(function(){return arguments}())?hn:function(e){return fn(e)&&gn.call(e,"callee")&&!mn.call(e,"callee")},bn={exports:{}};var vn=function(){return!1};!function(e,t){var r=w,n=vn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||n;e.exports=l}(bn,bn.exports);var $n=/^(?:0|[1-9]\d*)$/;var wn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$n.test(e))&&e>-1&&e%1==0&&e<t};var Sn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},_n=O,xn=Sn,Fn=A,Cn={};Cn["[object Float32Array]"]=Cn["[object Float64Array]"]=Cn["[object Int8Array]"]=Cn["[object Int16Array]"]=Cn["[object Int32Array]"]=Cn["[object Uint8Array]"]=Cn["[object Uint8ClampedArray]"]=Cn["[object Uint16Array]"]=Cn["[object Uint32Array]"]=!0,Cn["[object Arguments]"]=Cn["[object Array]"]=Cn["[object ArrayBuffer]"]=Cn["[object Boolean]"]=Cn["[object DataView]"]=Cn["[object Date]"]=Cn["[object Error]"]=Cn["[object Function]"]=Cn["[object Map]"]=Cn["[object Number]"]=Cn["[object Object]"]=Cn["[object RegExp]"]=Cn["[object Set]"]=Cn["[object String]"]=Cn["[object WeakMap]"]=!1;var Bn=function(e){return Fn(e)&&xn(e.length)&&!!Cn[_n(e)]};var kn=function(e){return function(t){return e(t)}},Hn={exports:{}};!function(e,t){var r=b,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(Hn,Hn.exports);var jn=Bn,Dn=kn,zn=Hn.exports,On=zn&&zn.isTypedArray,An=On?Dn(On):jn,En=sn,Nn=yn,Wn=y,Ln=bn.exports,In=wn,Tn=An,Pn=Object.prototype.hasOwnProperty;var Rn=function(e,t){var r=Wn(e),n=!r&&Nn(e),i=!r&&!n&&Ln(e),o=!r&&!n&&!i&&Tn(e),a=r||n||i||o,l=a?En(e.length,String):[],c=l.length;for(var s in e)!t&&!Pn.call(e,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||In(s,c))||l.push(s);return l},Vn=Object.prototype;var Mn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vn)};var Xn=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Gn=Mn,Un=Xn,Zn=Object.prototype.hasOwnProperty;var qn=U,Yn=Sn;var Jn=Rn,Kn=function(e){if(!Gn(e))return Un(e);var t=[];for(var r in Object(e))Zn.call(e,r)&&"constructor"!=r&&t.push(r);return t},Qn=function(e){return null!=e&&Yn(e.length)&&!qn(e)};var ei=function(e){return Qn(e)?Jn(e):Kn(e)},ti=rn,ri=cn,ni=ei;var ii=function(e){return ti(e,ni,ri)},oi=Object.prototype.hasOwnProperty;var ai=function(e,t,r,n,i,o){var a=1&r,l=ii(e),c=l.length;if(c!=ii(t).length&&!a)return!1;for(var s=c;s--;){var d=l[s];if(!(a?d in t:oi.call(t,d)))return!1}var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var p=a;++s<c;){var g=e[d=l[s]],m=t[d];if(n)var y=a?n(m,g,d,t,e,o):n(g,m,d,e,t,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){f=!1;break}p||(p="constructor"==d)}if(f&&!p){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(f=!1)}return o.delete(e),o.delete(t),f},li=ue(w,"DataView"),ci=Xe,si=ue(w,"Promise"),di=ue(w,"Set"),ui=ue(w,"WeakMap"),hi=O,fi=K,pi=fi(li),gi=fi(ci),mi=fi(si),yi=fi(di),bi=fi(ui),vi=hi;(li&&"[object DataView]"!=vi(new li(new ArrayBuffer(1)))||ci&&"[object Map]"!=vi(new ci)||si&&"[object Promise]"!=vi(si.resolve())||di&&"[object Set]"!=vi(new di)||ui&&"[object WeakMap]"!=vi(new ui))&&(vi=function(e){var t=hi(e),r="[object Object]"==t?e.constructor:void 0,n=r?fi(r):"";if(n)switch(n){case pi:return"[object DataView]";case gi:return"[object Map]";case mi:return"[object Promise]";case yi:return"[object Set]";case bi:return"[object WeakMap]"}return t});var $i=Wr,wi=Xr,Si=Qr,_i=ai,xi=vi,Fi=y,Ci=bn.exports,Bi=An,ki="[object Object]",Hi=Object.prototype.hasOwnProperty;var ji=function(e,t,r,n,i,o){var a=Fi(e),l=Fi(t),c=a?"[object Array]":xi(e),s=l?"[object Array]":xi(t),d=(c="[object Arguments]"==c?ki:c)==ki,u=(s="[object Arguments]"==s?ki:s)==ki,h=c==s;if(h&&Ci(e)){if(!Ci(t))return!1;a=!0,d=!1}if(h&&!d)return o||(o=new $i),a||Bi(e)?wi(e,t,r,n,i,o):Si(e,t,c,r,n,i,o);if(!(1&r)){var f=d&&Hi.call(e,"__wrapped__"),p=u&&Hi.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,m=p?t.value():t;return o||(o=new $i),i(g,m,r,n,o)}}return!!h&&(o||(o=new $i),_i(e,t,r,n,i,o))},Di=A;var zi=function e(t,r,n,i,o){return t===r||(null==t||null==r||!Di(t)&&!Di(r)?t!=t&&r!=r:ji(t,r,n,i,e,o))},Oi=Wr,Ai=zi;var Ei=V;var Ni=function(e){return e==e&&!Ei(e)},Wi=Ni,Li=ei;var Ii=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Ti=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var l=r[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var c=(l=r[i])[0],s=e[c],d=l[1];if(a&&l[2]){if(void 0===s&&!(c in e))return!1}else{var u=new Oi;if(n)var h=n(s,d,c,e,t,u);if(!(void 0===h?Ai(d,s,3,n,u):h))return!1}}return!0},Pi=function(e){for(var t=Li(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Wi(i)]}return t},Ri=Ii;var Vi=Ft,Mi=yn,Xi=y,Gi=wn,Ui=Sn,Zi=Bt;var qi=function(e,t){return null!=e&&t in Object(e)},Yi=function(e,t,r){for(var n=-1,i=(t=Vi(t,e)).length,o=!1;++n<i;){var a=Zi(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Ui(i)&&Gi(a,i)&&(Xi(e)||Mi(e))};var Ji=zi,Ki=zt,Qi=function(e,t){return null!=e&&Yi(e,t,qi)},eo=R,to=Ni,ro=Ii,no=Bt;var io=jt;var oo=function(e){return function(t){return null==t?void 0:t[e]}},ao=function(e){return function(t){return io(t,e)}},lo=R,co=Bt;var so=function(e){var t=Pi(e);return 1==t.length&&t[0][2]?Ri(t[0][0],t[0][1]):function(r){return r===e||Ti(r,e,t)}},uo=function(e,t){return eo(e)&&to(t)?ro(no(e),t):function(r){var n=Ki(r,e);return void 0===n&&n===t?Qi(r,e):Ji(t,n,3)}},ho=function(e){return e},fo=y,po=function(e){return lo(e)?oo(co(e)):ao(e)};var go=/\s/;var mo=function(e){for(var t=e.length;t--&&go.test(e.charAt(t)););return t},yo=/^\s+/;var bo=function(e){return e?e.slice(0,mo(e)+1).replace(yo,""):e},vo=V,$o=W,wo=/^[-+]0x[0-9a-f]+$/i,So=/^0b[01]+$/i,_o=/^0o[0-7]+$/i,xo=parseInt;var Fo=function(e){if("number"==typeof e)return e;if($o(e))return NaN;if(vo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=bo(e);var r=So.test(e);return r||_o.test(e)?xo(e.slice(2),r?2:8):wo.test(e)?NaN:+e};var Co=function(e){return e?Infinity===(e=Fo(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Bo=Fr,ko=function(e){return"function"==typeof e?e:null==e?ho:"object"==typeof e?fo(e)?uo(e[0],e[1]):so(e):po(e)},Ho=function(e){var t=Co(e),r=t%1;return t==t?r?t-r:t:0},jo=Math.max;var Do=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Ho(r);return i<0&&(i=jo(n+i,0)),Bo(e,ko(t),i)};const zo=i.div`
|
|
231
231
|
display: inline-block;
|
|
232
232
|
position: relative;
|
|
233
|
-
width: ${
|
|
234
|
-
height: ${
|
|
233
|
+
width: ${e=>e.$size}px;
|
|
234
|
+
height: ${e=>e.$size}px;
|
|
235
235
|
`,Oo=a`
|
|
236
236
|
0% {
|
|
237
237
|
transform: rotate(0deg);
|
|
@@ -239,142 +239,142 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
239
239
|
100% {
|
|
240
240
|
transform: rotate(360deg);
|
|
241
241
|
}
|
|
242
|
-
`,
|
|
242
|
+
`,Ao=i.div`
|
|
243
243
|
box-sizing: border-box;
|
|
244
244
|
display: block;
|
|
245
245
|
position: absolute;
|
|
246
|
-
width: ${
|
|
247
|
-
height: ${
|
|
248
|
-
margin: ${
|
|
249
|
-
border-width: ${
|
|
246
|
+
width: ${e=>e.$size}px;
|
|
247
|
+
height: ${e=>e.$size}px;
|
|
248
|
+
margin: ${e=>e.$borderWidth}px;
|
|
249
|
+
border-width: ${e=>e.$borderWidth}px;
|
|
250
250
|
border-style: solid;
|
|
251
251
|
border-radius: 50%;
|
|
252
|
-
border-color: ${
|
|
252
|
+
border-color: ${e=>e.$color||Lt.Neutral[8](e)}
|
|
253
253
|
transparent transparent transparent;
|
|
254
254
|
animation: ${Oo} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
255
|
-
`,
|
|
255
|
+
`,Eo=i(Ao)`
|
|
256
256
|
animation-delay: -0.45s;
|
|
257
|
-
`,No=i(
|
|
257
|
+
`,No=i(Ao)`
|
|
258
258
|
animation-delay: -0.3s;
|
|
259
|
-
`,Wo=i(
|
|
259
|
+
`,Wo=i(Ao)`
|
|
260
260
|
animation-delay: -0.15s;
|
|
261
|
-
`,Lo={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Io={collections:{base:{D1:{fontFamily:Lo.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Lo.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Lo.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Lo.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Lo.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Lo.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Lo.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Lo.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Lo.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Lo.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Lo.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Lo.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Lo.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Lo.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},To=t=>
|
|
262
|
-
font-family: ${
|
|
261
|
+
`,Lo={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Io={collections:{base:{D1:{fontFamily:Lo.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Lo.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Lo.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Lo.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Lo.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Lo.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Lo.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Lo.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Lo.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Lo.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Lo.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Lo.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Lo.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Lo.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},To=e=>t=>{const r=t.theme,n=At(Io,r[Et.textStyleScheme]);return r.options&&r.options.textStyle?Ot(n,e,r.options.textStyle):Ot(n,e)},Po={D1:{fontFamily:To("D1.fontFamily"),fontSize:To("D1.fontSize"),fontWeight:To("D1.fontWeight"),lineHeight:To("D1.lineHeight"),letterSpacing:To("D1.letterSpacing")},D2:{fontFamily:To("D2.fontFamily"),fontSize:To("D2.fontSize"),fontWeight:To("D2.fontWeight"),lineHeight:To("D2.lineHeight"),letterSpacing:To("D2.letterSpacing")},D3:{fontFamily:To("D3.fontFamily"),fontSize:To("D3.fontSize"),fontWeight:To("D3.fontWeight"),lineHeight:To("D3.lineHeight"),letterSpacing:To("D3.letterSpacing")},D4:{fontFamily:To("D4.fontFamily"),fontSize:To("D4.fontSize"),fontWeight:To("D4.fontWeight"),lineHeight:To("D4.lineHeight"),letterSpacing:To("D4.letterSpacing")},DBody:{fontFamily:To("DBody.fontFamily"),fontSize:To("DBody.fontSize"),fontWeight:To("DBody.fontWeight"),lineHeight:To("DBody.lineHeight"),letterSpacing:To("DBody.letterSpacing")},H1:{fontFamily:To("H1.fontFamily"),fontSize:To("H1.fontSize"),fontWeight:To("H1.fontWeight"),lineHeight:To("H1.lineHeight"),letterSpacing:To("H1.letterSpacing")},H2:{fontFamily:To("H2.fontFamily"),fontSize:To("H2.fontSize"),fontWeight:To("H2.fontWeight"),lineHeight:To("H2.lineHeight"),letterSpacing:To("H2.letterSpacing")},H3:{fontFamily:To("H3.fontFamily"),fontSize:To("H3.fontSize"),fontWeight:To("H3.fontWeight"),lineHeight:To("H3.lineHeight"),letterSpacing:To("H3.letterSpacing")},H4:{fontFamily:To("H4.fontFamily"),fontSize:To("H4.fontSize"),fontWeight:To("H4.fontWeight"),lineHeight:To("H4.lineHeight"),letterSpacing:To("H4.letterSpacing")},H5:{fontFamily:To("H5.fontFamily"),fontSize:To("H5.fontSize"),fontWeight:To("H5.fontWeight"),lineHeight:To("H5.lineHeight"),letterSpacing:To("H5.letterSpacing")},H6:{fontFamily:To("H6.fontFamily"),fontSize:To("H6.fontSize"),fontWeight:To("H6.fontWeight"),lineHeight:To("H6.lineHeight"),letterSpacing:To("H6.letterSpacing")},Body:{fontFamily:To("Body.fontFamily"),fontSize:To("Body.fontSize"),fontWeight:To("Body.fontWeight"),lineHeight:To("Body.lineHeight"),letterSpacing:To("Body.letterSpacing")},BodySmall:{fontFamily:To("BodySmall.fontFamily"),fontSize:To("BodySmall.fontSize"),fontWeight:To("BodySmall.fontWeight"),lineHeight:To("BodySmall.lineHeight"),letterSpacing:To("BodySmall.letterSpacing")},XSmall:{fontFamily:To("XSmall.fontFamily"),fontSize:To("XSmall.fontSize"),fontWeight:To("XSmall.fontWeight"),lineHeight:To("XSmall.lineHeight"),letterSpacing:To("XSmall.letterSpacing")}},Ro=e=>{switch(e){case 700:case"bold":return Lo.Bold;case 600:case"semibold":return Lo.Semibold;case 300:case"light":return Lo.Light;case 400:case"regular":return Lo.Regular;default:return""}},Vo=(e,t)=>r=>{const n=Po[e].fontFamily(r),i=Po[e].fontWeight(r);return Object.values(Lo).includes(n)?o`
|
|
262
|
+
font-family: ${Ro(t)||Ro(i)||n};
|
|
263
263
|
font-weight: normal !important;
|
|
264
264
|
`:o`
|
|
265
265
|
font-family: ${n};
|
|
266
|
-
font-weight: ${(
|
|
267
|
-
`},
|
|
268
|
-
${
|
|
266
|
+
font-weight: ${(Mo(t)||i)??"normal"};
|
|
267
|
+
`},Mo=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Xo=(e,t,r=!1)=>n=>{const i=Po[e],a=i.fontSize(n);return o`
|
|
268
|
+
${Vo(e,t)}
|
|
269
269
|
font-size: ${a}rem !important;
|
|
270
270
|
line-height: ${i.lineHeight}rem !important;
|
|
271
271
|
letter-spacing: ${i.letterSpacing(n)||0}rem !important;
|
|
272
272
|
${o`
|
|
273
273
|
margin-bottom: ${a*(r?1.05:0)}rem;
|
|
274
274
|
`}
|
|
275
|
-
`},Go=(
|
|
275
|
+
`},Go=(e=!1,t=!1)=>t?o`
|
|
276
276
|
display: block;
|
|
277
|
-
`:
|
|
277
|
+
`:e?o`
|
|
278
278
|
display: inline;
|
|
279
279
|
`:o`
|
|
280
280
|
display: block;
|
|
281
|
-
`;var Uo,Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});var qo=
|
|
282
|
-
${
|
|
283
|
-
${Xo("D1",
|
|
284
|
-
color: ${
|
|
285
|
-
${Go(
|
|
281
|
+
`;var Uo,Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});var qo=e;const Yo=e=>qo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:qo.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var Jo;Yo.displayName="ExternalIcon",Uo=Zo.ExternalIcon=Yo,function(e){e.D1=i.h1`
|
|
282
|
+
${e=>o`
|
|
283
|
+
${Xo("D1",e.weight,e.paragraph)}
|
|
284
|
+
color: ${Lt.Neutral[1]};
|
|
285
|
+
${Go(e.inline,e.paragraph)}
|
|
286
286
|
`}
|
|
287
|
-
`,
|
|
288
|
-
${
|
|
289
|
-
${Xo("D2",
|
|
290
|
-
color: ${
|
|
291
|
-
${Go(
|
|
287
|
+
`,e.D2=i.h1`
|
|
288
|
+
${e=>o`
|
|
289
|
+
${Xo("D2",e.weight,e.paragraph)}
|
|
290
|
+
color: ${Lt.Neutral[1]};
|
|
291
|
+
${Go(e.inline,e.paragraph)}
|
|
292
292
|
`}
|
|
293
|
-
`,
|
|
294
|
-
${
|
|
295
|
-
${Xo("D3",
|
|
296
|
-
color: ${
|
|
297
|
-
${Go(
|
|
293
|
+
`,e.D3=i.h1`
|
|
294
|
+
${e=>o`
|
|
295
|
+
${Xo("D3",e.weight,e.paragraph)}
|
|
296
|
+
color: ${Lt.Neutral[1]};
|
|
297
|
+
${Go(e.inline,e.paragraph)}
|
|
298
298
|
`}
|
|
299
|
-
`,
|
|
300
|
-
${
|
|
301
|
-
${Xo("D4",
|
|
302
|
-
color: ${
|
|
303
|
-
${Go(
|
|
299
|
+
`,e.D4=i.h1`
|
|
300
|
+
${e=>o`
|
|
301
|
+
${Xo("D4",e.weight,e.paragraph)}
|
|
302
|
+
color: ${Lt.Neutral[1]};
|
|
303
|
+
${Go(e.inline,e.paragraph)}
|
|
304
304
|
`}
|
|
305
|
-
`,
|
|
306
|
-
${
|
|
307
|
-
${Xo("DBody",
|
|
308
|
-
color: ${
|
|
309
|
-
${Go(
|
|
305
|
+
`,e.DBody=i.h1`
|
|
306
|
+
${e=>o`
|
|
307
|
+
${Xo("DBody",e.weight,e.paragraph)}
|
|
308
|
+
color: ${Lt.Neutral[1]};
|
|
309
|
+
${Go(e.inline,e.paragraph)}
|
|
310
310
|
`}
|
|
311
|
-
`,
|
|
312
|
-
${
|
|
313
|
-
${Xo("H1",
|
|
314
|
-
color: ${
|
|
315
|
-
${Go(
|
|
311
|
+
`,e.H1=i.h1`
|
|
312
|
+
${e=>o`
|
|
313
|
+
${Xo("H1",e.weight,e.paragraph)}
|
|
314
|
+
color: ${Lt.Neutral[1]};
|
|
315
|
+
${Go(e.inline,e.paragraph)}
|
|
316
316
|
`}
|
|
317
|
-
`,
|
|
318
|
-
${
|
|
319
|
-
${Xo("H2",
|
|
320
|
-
color: ${
|
|
321
|
-
${Go(
|
|
317
|
+
`,e.H2=i.h2`
|
|
318
|
+
${e=>o`
|
|
319
|
+
${Xo("H2",e.weight,e.paragraph)}
|
|
320
|
+
color: ${Lt.Neutral[1]};
|
|
321
|
+
${Go(e.inline,e.paragraph)}
|
|
322
322
|
`}
|
|
323
|
-
`,
|
|
324
|
-
${
|
|
325
|
-
${Xo("H3",
|
|
326
|
-
color: ${
|
|
327
|
-
${Go(
|
|
323
|
+
`,e.H3=i.h3`
|
|
324
|
+
${e=>o`
|
|
325
|
+
${Xo("H3",e.weight,e.paragraph)}
|
|
326
|
+
color: ${Lt.Neutral[1]};
|
|
327
|
+
${Go(e.inline,e.paragraph)}
|
|
328
328
|
`}
|
|
329
|
-
`,
|
|
330
|
-
${
|
|
331
|
-
${Xo("H4",
|
|
332
|
-
color: ${
|
|
333
|
-
${Go(
|
|
329
|
+
`,e.H4=i.h4`
|
|
330
|
+
${e=>o`
|
|
331
|
+
${Xo("H4",e.weight,e.paragraph)}
|
|
332
|
+
color: ${Lt.Neutral[1]};
|
|
333
|
+
${Go(e.inline,e.paragraph)}
|
|
334
334
|
`}
|
|
335
|
-
`,
|
|
336
|
-
${
|
|
337
|
-
${Xo("H5",
|
|
338
|
-
color: ${
|
|
339
|
-
${Go(
|
|
335
|
+
`,e.H5=i.h5`
|
|
336
|
+
${e=>o`
|
|
337
|
+
${Xo("H5",e.weight,e.paragraph)}
|
|
338
|
+
color: ${Lt.Neutral[1]};
|
|
339
|
+
${Go(e.inline,e.paragraph)}
|
|
340
340
|
`}
|
|
341
|
-
`,
|
|
342
|
-
${
|
|
343
|
-
${Xo("H6",
|
|
344
|
-
color: ${
|
|
345
|
-
${Go(
|
|
341
|
+
`,e.H6=i.h6`
|
|
342
|
+
${e=>o`
|
|
343
|
+
${Xo("H6",e.weight,e.paragraph)}
|
|
344
|
+
color: ${Lt.Neutral[1]};
|
|
345
|
+
${Go(e.inline,e.paragraph)}
|
|
346
346
|
`}
|
|
347
|
-
`,
|
|
348
|
-
${
|
|
349
|
-
${Xo("Body",
|
|
350
|
-
color: ${
|
|
351
|
-
${Go(
|
|
347
|
+
`,e.Body=i.p`
|
|
348
|
+
${e=>o`
|
|
349
|
+
${Xo("Body",e.weight,e.paragraph)}
|
|
350
|
+
color: ${Lt.Neutral[1]};
|
|
351
|
+
${Go(e.inline,e.paragraph)}
|
|
352
352
|
`}
|
|
353
|
-
`,
|
|
354
|
-
${
|
|
355
|
-
${Xo("BodySmall",
|
|
356
|
-
color: ${
|
|
357
|
-
${Go(
|
|
353
|
+
`,e.BodySmall=i.p`
|
|
354
|
+
${e=>o`
|
|
355
|
+
${Xo("BodySmall",e.weight,e.paragraph)}
|
|
356
|
+
color: ${Lt.Neutral[1]};
|
|
357
|
+
${Go(e.inline,e.paragraph)}
|
|
358
358
|
`}
|
|
359
|
-
`,
|
|
360
|
-
${
|
|
361
|
-
${Xo("XSmall",
|
|
362
|
-
color: ${
|
|
363
|
-
${Go(
|
|
359
|
+
`,e.XSmall=i.span`
|
|
360
|
+
${e=>o`
|
|
361
|
+
${Xo("XSmall",e.weight,e.paragraph)}
|
|
362
|
+
color: ${Lt.Neutral[1]};
|
|
363
|
+
${Go(e.inline,e.paragraph)}
|
|
364
364
|
`}
|
|
365
|
-
`,
|
|
366
|
-
${
|
|
367
|
-
${Xo(
|
|
368
|
-
color: ${
|
|
365
|
+
`,e.Hyperlink={Default:e=>ea({...e,textStyle:"Body"}),Small:e=>ea({...e,textStyle:"BodySmall"})}}(Jo||(Jo={}));const Ko=i.a`
|
|
366
|
+
${e=>o`
|
|
367
|
+
${Xo(e.textStyle,e.weight)}
|
|
368
|
+
color: ${Lt.Primary};
|
|
369
369
|
text-decoration: none;
|
|
370
370
|
|
|
371
371
|
:hover,
|
|
372
372
|
:active,
|
|
373
373
|
:focus {
|
|
374
|
-
color: ${
|
|
374
|
+
color: ${Lt.Secondary};
|
|
375
375
|
|
|
376
376
|
svg {
|
|
377
|
-
color: ${
|
|
377
|
+
color: ${Lt.Secondary};
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
`}
|
|
@@ -383,7 +383,7 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
383
383
|
width: 1rem;
|
|
384
384
|
margin-left: 0.4rem;
|
|
385
385
|
vertical-align: middle;
|
|
386
|
-
`,
|
|
386
|
+
`,ea=({external:e=!1,children:n,...i})=>r(Ko,{...i,children:[n,e&&t(Qo,{})]});var ta;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(ta||(ta={}));const ra=i.button`
|
|
387
387
|
padding: 0.5rem 1rem;
|
|
388
388
|
min-width: 4rem;
|
|
389
389
|
border-radius: 4px;
|
|
@@ -402,22 +402,22 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
402
402
|
// -----------------------------------------------------------------------------
|
|
403
403
|
// BUTTON STYLE + TEXT COLOR
|
|
404
404
|
// -----------------------------------------------------------------------------
|
|
405
|
-
${
|
|
406
|
-
background-color: ${
|
|
407
|
-
border: 1px solid ${
|
|
405
|
+
${e=>{switch(e.$buttonStyle){case"secondary":return o`
|
|
406
|
+
background-color: ${Lt.Neutral[8](e)};
|
|
407
|
+
border: 1px solid ${Lt.Primary(e)};
|
|
408
408
|
|
|
409
409
|
span {
|
|
410
|
-
color: ${
|
|
410
|
+
color: ${Lt.Primary(e)};
|
|
411
411
|
}
|
|
412
412
|
`;case"light":return o`
|
|
413
|
-
background-color: ${
|
|
414
|
-
border: 1px solid ${
|
|
413
|
+
background-color: ${Lt.Neutral[8](e)};
|
|
414
|
+
border: 1px solid ${Lt.Neutral[5](e)};
|
|
415
415
|
|
|
416
416
|
span {
|
|
417
|
-
color: ${
|
|
417
|
+
color: ${Lt.Primary(e)};
|
|
418
418
|
}
|
|
419
419
|
`;case"disabled":return o`
|
|
420
|
-
background-color: ${
|
|
420
|
+
background-color: ${Lt.Neutral[6](e)};
|
|
421
421
|
border: 1px solid transparent;
|
|
422
422
|
cursor: not-allowed;
|
|
423
423
|
|
|
@@ -426,7 +426,7 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
span {
|
|
429
|
-
color: ${
|
|
429
|
+
color: ${Lt.Neutral[3](e)};
|
|
430
430
|
}
|
|
431
431
|
`;case"link":return o`
|
|
432
432
|
background-color: transparent;
|
|
@@ -437,37 +437,37 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
437
437
|
box-shadow: none;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
color: ${
|
|
440
|
+
color: ${Lt.Primary};
|
|
441
441
|
:hover,
|
|
442
442
|
:active,
|
|
443
443
|
:focus {
|
|
444
444
|
span {
|
|
445
|
-
color: ${
|
|
445
|
+
color: ${Lt.Secondary};
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
`;default:return o`
|
|
449
|
-
background-color: ${
|
|
449
|
+
background-color: ${Lt.Primary(e)};
|
|
450
450
|
border: 1px solid transparent;
|
|
451
451
|
|
|
452
|
-
${
|
|
452
|
+
${Vt.mobileL} {
|
|
453
453
|
width: 100%;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
span {
|
|
457
|
-
color: ${
|
|
457
|
+
color: ${Lt.Neutral[8](e)};
|
|
458
458
|
}
|
|
459
459
|
`}}}
|
|
460
460
|
|
|
461
461
|
// -----------------------------------------------------------------------------
|
|
462
462
|
// BUTTON SIZE + TEXT SIZE
|
|
463
463
|
// -----------------------------------------------------------------------------
|
|
464
|
-
${
|
|
464
|
+
${e=>"small"===e.$buttonSizeStyle?o`
|
|
465
465
|
height: 2.5rem;
|
|
466
466
|
span {
|
|
467
467
|
${Xo("H5","semibold")}
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
-
${
|
|
470
|
+
${Vt.mobileS} {
|
|
471
471
|
height: auto;
|
|
472
472
|
}
|
|
473
473
|
`:o`
|
|
@@ -476,33 +476,33 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
476
476
|
${Xo("H4","semibold")}
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
${
|
|
479
|
+
${Vt.mobileS} {
|
|
480
480
|
height: auto;
|
|
481
481
|
}
|
|
482
482
|
`}
|
|
483
|
-
`,na=i((({color:
|
|
483
|
+
`,na=i((({color:e,className:n,size:i=18})=>r(zo,{className:n,$size:i,$color:e,children:[t(Ao,{id:"inner1",$size:i-2,$borderWidth:2}),t(Eo,{id:"inner2",$size:i-2,$borderWidth:2}),t(No,{id:"inner3",$size:i-2,$borderWidth:2}),t(Wo,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
484
484
|
margin-right: 0.5rem;
|
|
485
|
-
${
|
|
485
|
+
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Lt.Primary(e);break;case"disabled":t=Lt.Neutral[3](e);break;default:t=Lt.Neutral[8](e)}return o`
|
|
486
486
|
#inner1,
|
|
487
487
|
#inner2,
|
|
488
488
|
#inner3,
|
|
489
489
|
#inner4 {
|
|
490
|
-
border-color: ${
|
|
490
|
+
border-color: ${t} transparent transparent transparent;
|
|
491
491
|
}
|
|
492
492
|
`}}
|
|
493
|
-
`,ia={Default:l.forwardRef(((
|
|
493
|
+
`,ia={Default:l.forwardRef(((e,n)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:l="default",...c}=e,s={$buttonStyle:o?"disabled":l,$buttonSizeStyle:"default"};return r(ra,{ref:n,"data-testid":c["data-testid"]||"button",disabled:o,...s,...c,children:[a&&t(na,{...s}),t("span",{children:i})]})})),Small:l.forwardRef(((e,n)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:l="default",...c}=e,s={$buttonStyle:o?"disabled":l,$buttonSizeStyle:"small"};return r(ra,{ref:n,"data-testid":c["data-testid"]||"button",disabled:o,...s,...c,children:[a&&t(na,{...s,size:16}),t("span",{children:i})]})}))},oa=i.ul`
|
|
494
494
|
display: flex;
|
|
495
495
|
list-style: none;
|
|
496
496
|
margin-left: 4rem;
|
|
497
497
|
|
|
498
|
-
${
|
|
498
|
+
${Vt.tablet} {
|
|
499
499
|
display: none;
|
|
500
500
|
}
|
|
501
501
|
`,aa=i.ul`
|
|
502
502
|
display: none;
|
|
503
503
|
list-style: none;
|
|
504
504
|
|
|
505
|
-
${
|
|
505
|
+
${Vt.tablet} {
|
|
506
506
|
display: flex;
|
|
507
507
|
flex-direction: column;
|
|
508
508
|
margin-top: 2.5rem;
|
|
@@ -511,7 +511,7 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
511
511
|
max-width: 24rem;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
${
|
|
514
|
+
${Vt.mobileL} {
|
|
515
515
|
width: 100%;
|
|
516
516
|
max-width: unset;
|
|
517
517
|
min-width: unset;
|
|
@@ -525,7 +525,7 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
525
525
|
margin-right: 1rem;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
${
|
|
528
|
+
${Vt.tablet} {
|
|
529
529
|
width: 100%;
|
|
530
530
|
padding: 0 0 0 1rem;
|
|
531
531
|
justify-content: center;
|
|
@@ -536,18 +536,18 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
${
|
|
539
|
+
${Vt.mobileL} {
|
|
540
540
|
padding: 0 1rem;
|
|
541
541
|
}
|
|
542
542
|
`,ca=i(ia.Small)`
|
|
543
|
-
${
|
|
543
|
+
${Vt.tablet} {
|
|
544
544
|
width: 100%;
|
|
545
545
|
padding: 0.685rem 1rem;
|
|
546
546
|
}
|
|
547
547
|
`,sa=i.div`
|
|
548
548
|
display: none;
|
|
549
549
|
|
|
550
|
-
${
|
|
550
|
+
${Vt.tablet} {
|
|
551
551
|
display: flex;
|
|
552
552
|
flex-direction: column;
|
|
553
553
|
margin-top: 2.5rem;
|
|
@@ -567,29 +567,29 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
567
567
|
object-fit: contain;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
${
|
|
570
|
+
${Vt.tablet} {
|
|
571
571
|
img {
|
|
572
572
|
max-width: 11rem;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
${
|
|
576
|
+
${Vt.mobileL} {
|
|
577
577
|
img {
|
|
578
578
|
max-width: 100%;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
`,fa=({actionButtons:
|
|
581
|
+
`,fa=({actionButtons:e,mobile:i=!1,onActionButtonClick:o})=>{const a=e=>{e.stopPropagation()},l=e=>t=>{t.stopPropagation(),"download"===e.type&&window.scrollTo({left:0,top:document.body.scrollHeight,behavior:"smooth"}),o(t,e)},c=(n=!1)=>(n?(e=>{const t=Do(e,(e=>"download"===e.type));if(t>-1){const r=[...e],n=r.splice(t,1);return[...r,n[0]]}return e})(e):e).map(((e,i)=>{let o;switch(e.type){case"download":o=n?(c=e.args,r(sa,{children:[t(da,{weight:"semibold",children:c&&c.children||"Download the app"}),r(ua,{children:[t(ha,{href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer","data-testid":"button__app-store",onClick:a,children:t("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",alt:"apple-app-store"})}),t(ha,{href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer","data-testid":"button__play-store",onClick:a,children:t("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",alt:"google-play-store"})})]})]})):t(ca,{onClick:l(e),...e.args,"data-testid":"action-button__download",children:"Download the app"});break;case"button":{const r=e.args["data-testid"]?`action-button__${e.args["data-testid"]}`:`action-button__button-${n?"mobile-":""}${i+1}`;o=t(ca,{...e.args,onClick:l(e),"data-testid":r});break}case"component":{const t=e.args;o=t&&t.render||null;break}default:o=null}var c;if(o)return t(la,{children:o},`action-button-${i+1}`)}));if(e&&e.length>0){return t(i?aa:oa,{children:c(i)})}return t(n,{})},pa=i.ul`
|
|
582
582
|
display: flex;
|
|
583
583
|
list-style: none;
|
|
584
584
|
|
|
585
|
-
${
|
|
585
|
+
${Vt.tablet} {
|
|
586
586
|
display: none;
|
|
587
587
|
}
|
|
588
588
|
`,ga=i.ul`
|
|
589
589
|
display: none;
|
|
590
590
|
list-style: none;
|
|
591
591
|
|
|
592
|
-
${
|
|
592
|
+
${Vt.tablet} {
|
|
593
593
|
display: flex;
|
|
594
594
|
flex-direction: column;
|
|
595
595
|
}
|
|
@@ -602,7 +602,7 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
602
602
|
margin-right: 1rem;
|
|
603
603
|
}
|
|
604
604
|
|
|
605
|
-
${
|
|
605
|
+
${Vt.tablet} {
|
|
606
606
|
width: 100%;
|
|
607
607
|
|
|
608
608
|
:not(:last-of-type) {
|
|
@@ -614,17 +614,17 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
614
614
|
position: relative;
|
|
615
615
|
align-items: center;
|
|
616
616
|
text-align: center;
|
|
617
|
-
color: ${
|
|
617
|
+
color: ${Lt.Neutral[1]};
|
|
618
618
|
height: 100%;
|
|
619
619
|
padding: 0 0.5rem;
|
|
620
620
|
|
|
621
621
|
:active,
|
|
622
622
|
:focus {
|
|
623
|
-
color: ${
|
|
623
|
+
color: ${Lt.Neutral[1]};
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
${
|
|
627
|
-
${
|
|
626
|
+
${Vt.tablet} {
|
|
627
|
+
${e=>Xo("H4",e.$selected?"bold":"regular")}
|
|
628
628
|
width: 100%;
|
|
629
629
|
padding: 0.625rem 1rem;
|
|
630
630
|
text-align: left;
|
|
@@ -636,16 +636,16 @@ import t,{jsx as e,jsxs as r,Fragment as n}from"react/jsx-runtime";import i,{css
|
|
|
636
636
|
height: 4px;
|
|
637
637
|
left: 0.5rem;
|
|
638
638
|
right: 0.5rem;
|
|
639
|
-
background-color: ${
|
|
639
|
+
background-color: ${Lt.Primary};
|
|
640
640
|
|
|
641
|
-
${
|
|
641
|
+
${Vt.tablet} {
|
|
642
642
|
left: 0;
|
|
643
643
|
right: unset;
|
|
644
644
|
top: 0;
|
|
645
645
|
bottom: 0;
|
|
646
646
|
height: 100%;
|
|
647
647
|
width: 4px;
|
|
648
|
-
background-color: ${
|
|
648
|
+
background-color: ${Lt.Accent.Light[1]};
|
|
649
649
|
}
|
|
650
|
-
`,va=({items:
|
|
650
|
+
`,va=({items:e,selectedId:i,mobile:o=!1,onItemClick:a})=>{const l=e=>t=>{t.stopPropagation(),a(t,e)},c=(n=!1)=>e.map(((e,o)=>{const a=e.id===i,{children:c,options:s,...d}=e;return t(ma,{children:r(ya,{"data-testid":n?`link__mobile-${o+1}`:`link__${o+1}`,weight:a?n?"bold":"semibold":"regular",$selected:a,...d,onClick:l(e),...s,children:[c,a&&t(ba,{})]})},o)}));if(e&&e.length>0){return t(n,{children:t(o?ga:pa,{children:c(o)})})}return t(n,{})},$a=l.forwardRef((({items:e,id:n,selectedId:i,compress:o=!1,fixed:a=!0,resources:l=wa,hideNavElements:d=!1,drawerDismissalExclusions:u=[],actionButtons:h,onItemClick:f,onActionButtonClick:p,onBrandClick:g,...m},y)=>{const[b,v]=s(!1),[$,w]=s(!1);c((()=>(x(),window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)})),[]);const S=()=>{v(!1),setTimeout((()=>{w(!1)}),550)},_=e=>b&&-1===u.indexOf(e),x=()=>{window.innerWidth<=Pt.tablet&&b&&S()},F=e=>{g&&(e.preventDefault(),g()),_("brand-click")&&S()},C=(e,t)=>{t.onClick?t.onClick(e):f&&(e.preventDefault(),f(t)),_("item-click")&&S()},B=(e,t)=>{t.args&&t.args.onClick?t.args.onClick(e):p&&(e.preventDefault(),p(t)),_("item-click")&&S()},k=()=>{v(!0),w(!0)},H=()=>{_("close-button-click")&&S()};return r(Gt,{ref:y,fixed:a,id:n||"navbar-wrapper","data-testid":m["data-testid"]||"navbar-wrapper",children:[t(ir,{}),r(rr.Content,{children:[r(Ut,{compress:o,children:[t(fr,{resources:l,compress:o,onClick:F,"data-testid":"main__brand"}),!d&&r(Zt,{children:[t(va,{items:e.desktop,onItemClick:C,selectedId:i}),t(fa,{actionButtons:h&&h.desktop,onActionButtonClick:B}),t(qt,{"aria-label":"Open nav menu","data-testid":"button__mobile-menu",onClick:k,focusHighlight:!1,children:t(Yt,{})})]})]}),!d&&t(sr,{show:$,enableOverlayClick:!0,onOverlayClick:H,children:r(xr,{show:b,resources:l,onClose:H,onBrandClick:F,actionButtons:h,children:[t(va,{items:e.mobile||e.desktop,onItemClick:C,selectedId:i,mobile:!0}),t(fa,{actionButtons:h&&(h?.mobile||h.desktop),onActionButtonClick:B,mobile:!0})]})})]})]})})),wa={brandName:"LifeSG",logoSrc:"https://assets.life.gov.sg/lifesg/logo-lifesg.svg"},Sa=Xt,_a=3.5;export{$a as Navbar,Sa as NavbarHeight,_a as NavbarMobileHeight};
|
|
651
651
|
//# sourceMappingURL=index.js.map
|