@lifesg/react-design-system 1.0.0-alpha.2 → 1.0.0-alpha.21
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 +2 -0
- package/accordion/accordion-item.style.d.ts +5 -2
- package/accordion/accordion.style.d.ts +1 -1
- package/accordion/index.js +165 -172
- package/accordion/index.js.map +1 -1
- package/alert/alert.style.d.ts +4 -1
- package/alert/index.js +107 -119
- package/alert/index.js.map +1 -1
- package/animations/index.d.ts +1 -0
- package/animations/index.js +6 -3
- package/animations/index.js.map +1 -1
- package/animations/loading-dots-spinner/loading-dots-spinner.d.ts +2 -0
- package/animations/loading-dots-spinner/lottie-animation.d.ts +2 -0
- package/box-container/box-container.styles.d.ts +8 -1
- package/box-container/index.js +69 -74
- package/box-container/index.js.map +1 -1
- package/breadcrumb/breadcrumb.style.d.ts +4 -4
- package/breadcrumb/index.js +102 -106
- package/breadcrumb/index.js.map +1 -1
- package/breadcrumb/types.d.ts +5 -1
- package/button/button.d.ts +2 -2
- package/button/index.js +140 -143
- package/button/index.js.map +1 -1
- package/calendar/calendar-day.d.ts +11 -0
- package/calendar/calendar-day.style.d.ts +23 -0
- package/calendar/calendar-month.d.ts +12 -0
- package/calendar/calendar-month.style.d.ts +12 -0
- package/calendar/calendar-year.d.ts +12 -0
- package/calendar/calendar-year.style.d.ts +12 -0
- package/calendar/calendar.d.ts +4 -0
- package/calendar/calendar.style.d.ts +35 -0
- package/calendar/index.d.ts +2 -0
- package/calendar/index.js +381 -0
- package/calendar/index.js.map +1 -0
- package/calendar/package.json +7 -0
- package/calendar/types.d.ts +15 -0
- package/card/card.d.ts +3 -0
- package/card/card.style.d.ts +1 -0
- package/card/index.d.ts +1 -0
- package/card/index.js +132 -0
- package/card/index.js.map +1 -0
- package/{icon → card}/package.json +1 -1
- package/card/types.d.ts +4 -0
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.style.d.ts +4 -1
- package/checkbox/index.js +11 -21
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +2240 -1057
- 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 +5 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/date-input.style.d.ts +2 -6
- package/date-input/index.js +132 -147
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +14 -16
- 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/design-token/package.json +7 -0
- package/design-token/types.d.ts +7 -0
- package/error-display/error-display-data.d.ts +11 -0
- package/error-display/error-display.d.ts +3 -0
- package/error-display/error-display.style.d.ts +7 -0
- package/error-display/index.d.ts +2 -0
- package/error-display/index.js +323 -0
- package/error-display/index.js.map +1 -0
- package/error-display/package.json +7 -0
- package/error-display/types.d.ts +20 -0
- package/feedback-rating/feedback-rating-data.d.ts +5 -0
- package/feedback-rating/feedback-rating-stars-container-data.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +12 -0
- package/feedback-rating/feedback-rating.d.ts +3 -0
- package/feedback-rating/feedback-rating.styles.d.ts +5 -0
- package/feedback-rating/index.d.ts +2 -0
- package/feedback-rating/index.js +329 -0
- package/feedback-rating/index.js.map +1 -0
- package/feedback-rating/package.json +7 -0
- package/feedback-rating/types.d.ts +14 -0
- package/footer/footer-download-app.d.ts +2 -0
- package/footer/footer-download-app.style.d.ts +6 -0
- package/footer/footer-helper.d.ts +12 -0
- package/footer/footer.d.ts +3 -0
- package/footer/footer.style.d.ts +12 -0
- package/footer/index.d.ts +2 -0
- package/footer/index.js +373 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-custom-field.d.ts +3 -0
- package/form/form-input-group.d.ts +1 -1
- package/form/form-input.d.ts +1 -1
- package/form/form-label-addon.d.ts +1 -2
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/form-phone-number-input.d.ts +3 -0
- package/form/form-textarea.d.ts +1 -1
- package/form/form-unit-number-input.d.ts +3 -0
- package/form/index.d.ts +9 -6
- package/form/index.js +771 -657
- package/form/index.js.map +1 -1
- package/form/types.d.ts +14 -5
- package/icon-button/icon-button.d.ts +1 -1
- package/icon-button/icon-button.style.d.ts +6 -1
- package/icon-button/index.js +9 -15
- package/icon-button/index.js.map +1 -1
- package/icon-button/types.d.ts +2 -3
- package/index.d.ts +12 -1
- package/index.js +2217 -1034
- package/index.js.map +1 -1
- package/input/index.js +93 -49
- package/input/index.js.map +1 -1
- package/input/input.d.ts +1 -1
- package/input/input.style.d.ts +9 -4
- package/input/types.d.ts +2 -0
- package/input-group/index.js +435 -343
- package/input-group/index.js.map +1 -1
- package/input-group/input-group-list-addon.d.ts +1 -1
- package/input-group/input-group-list-addon.style.d.ts +13 -2
- package/input-group/input-group.d.ts +1 -1
- package/input-group/input-group.style.d.ts +4 -8
- package/input-group/types.d.ts +11 -10
- package/input-select/index.js +286 -244
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +5 -1
- package/input-select/types.d.ts +15 -11
- package/input-textarea/index.js +132 -121
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/textarea.d.ts +2 -2
- package/input-textarea/types.d.ts +1 -0
- package/layout/container.d.ts +3 -0
- package/layout/content.d.ts +3 -0
- package/layout/index.d.ts +7 -0
- package/layout/index.js +55 -0
- package/layout/index.js.map +1 -0
- package/layout/package.json +7 -0
- package/layout/section.d.ts +3 -0
- package/layout/types.d.ts +15 -0
- package/link-list/index.js +130 -130
- package/link-list/index.js.map +1 -1
- package/link-list/link-list.styles.d.ts +12 -2
- package/link-list/types.d.ts +1 -1
- package/masonry/index.js.map +1 -1
- package/masonry/masonry.d.ts +2 -2
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +9 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +2 -0
- package/masthead/masthead.style.d.ts +1 -0
- package/masthead/package.json +7 -0
- package/media/index.js +1 -1
- package/media/index.js.map +1 -1
- package/media/media.d.ts +2 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +30 -43
- package/modal/index.js.map +1 -1
- package/modal/modal-box.styles.d.ts +5 -2
- package/modal/modal.d.ts +1 -1
- package/modal/modal.styles.d.ts +1 -0
- package/modal/types.d.ts +4 -2
- package/navbar/brand.d.ts +10 -0
- package/navbar/brand.styles.d.ts +5 -0
- package/navbar/drawer.d.ts +3 -0
- package/navbar/drawer.styles.d.ts +15 -0
- package/navbar/index.d.ts +7 -0
- package/navbar/index.js +651 -0
- package/navbar/index.js.map +1 -0
- package/navbar/navbar-action-buttons.d.ts +10 -0
- package/navbar/navbar-action-buttons.styles.d.ts +9 -0
- package/navbar/navbar-items.d.ts +11 -0
- package/navbar/navbar-items.styles.d.ts +10 -0
- package/navbar/navbar.d.ts +3 -0
- package/navbar/navbar.styles.d.ts +19 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +266 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +15 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/otp-input/index.d.ts +2 -0
- package/otp-input/index.js +600 -0
- package/otp-input/index.js.map +1 -0
- package/otp-input/otp-input.d.ts +3 -0
- package/otp-input/otp-input.styles.d.ts +5 -0
- package/otp-input/package.json +7 -0
- package/otp-input/types.d.ts +22 -0
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +4 -1
- package/phone-number-input/data/country-code.d.ts +1 -0
- package/phone-number-input/index.d.ts +2 -0
- package/phone-number-input/index.js +860 -0
- package/phone-number-input/index.js.map +1 -0
- package/phone-number-input/package.json +7 -0
- package/phone-number-input/phone-number-input-helper.d.ts +5 -0
- package/phone-number-input/phone-number-input.d.ts +3 -0
- package/phone-number-input/types.d.ts +51 -0
- package/popover/index.js +148 -153
- package/popover/index.js.map +1 -1
- package/popover/popover.styles.d.ts +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/index.d.ts +2 -0
- package/progress-indicator/index.js +240 -0
- package/progress-indicator/index.js.map +1 -0
- package/progress-indicator/package.json +7 -0
- package/progress-indicator/progress-indicator.d.ts +3 -0
- package/progress-indicator/progress-indicator.style.d.ts +19 -0
- package/progress-indicator/types.d.ts +9 -0
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +6 -2
- package/shared/dropdown-list/dropdown-search.d.ts +2 -1
- package/shared/dropdown-list/dropdown-search.styles.d.ts +9 -1
- package/shared/dropdown-list/types.d.ts +22 -12
- package/shared/input-wrapper/input-wrapper.d.ts +8 -0
- package/smart-app-banner/index.d.ts +2 -0
- package/smart-app-banner/index.js +373 -0
- package/smart-app-banner/index.js.map +1 -0
- package/smart-app-banner/package.json +7 -0
- package/smart-app-banner/smart-app-banner.d.ts +3 -0
- package/smart-app-banner/smart-app-banner.styles.d.ts +31 -0
- package/smart-app-banner/types.d.ts +18 -0
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +62 -65
- 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 +12 -3
- package/timeline/index.js +95 -98
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +213 -207
- package/timepicker/index.js.map +1 -1
- package/timepicker/timepicker-dropdown.styles.d.ts +2 -2
- package/timepicker/types.d.ts +3 -3
- package/toggle-button/index.js +118 -121
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +127 -125
- package/tooltip/index.js.map +1 -1
- package/tooltip/tooltip.styles.d.ts +3 -1
- package/unit-number/index.d.ts +2 -0
- package/unit-number/index.js +357 -0
- package/unit-number/index.js.map +1 -0
- package/unit-number/package.json +7 -0
- package/unit-number/types.d.ts +27 -0
- package/unit-number/unit-number-input.d.ts +3 -0
- package/unit-number/unit-number-input.style.d.ts +11 -0
- package/util/calendar-helper.d.ts +10 -0
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +3 -0
- package/util/utility-types.d.ts +3 -0
- package/icon/arrow-right-icon.d.ts +0 -3
- package/icon/icon.d.ts +0 -3
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -12
- package/icon/index.js.map +0 -1
- package/icon/info-icon.d.ts +0 -3
- package/icon/play-alt-icon.d.ts +0 -3
- package/icon/search-icon.d.ts +0 -3
- package/icon/shared.style.d.ts +0 -1
- package/icon/types.d.ts +0 -9
package/date-input/index.js
CHANGED
|
@@ -1,186 +1,185 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as n,useRef as r,useEffect as a}from"react";import i,{css as o}from"styled-components";var l;!function(e){e.transformWithSpaces=(e,t)=>{const n="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(n,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const n=Math.floor(t/9);return e.length>=2*n||1===e.split(" ").length&&e.length>n},e.truncateOneLine=(e,t,n,r)=>{let a=0;t>n&&(a=Math.floor((t-n)/8));const i=r+a;if(i<e.length){const t=Math.floor(i/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(l||(l={}));var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=Array.isArray,d="object"==typeof c&&c&&c.Object===Object&&c,g="object"==typeof self&&self&&self.Object===Object&&self,u=d||g||Function("return this")(),s=u.Symbol,p=s,f=Object.prototype,y=f.hasOwnProperty,m=f.toString,v=p?p.toStringTag:void 0;var F=function(e){var t=y.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(e){}var a=m.call(e);return r&&(t?e[v]=n:delete e[v]),a},S=Object.prototype.toString;var B=F,$=function(e){return S.call(e)},b=s?s.toStringTag:void 0;var w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?B(e):$(e)};var D=w,H=function(e){return null!=e&&"object"==typeof e};var _=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==D(e)},z=h,x=_,k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/;var C=function(e,t){if(z(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!x(e))||(E.test(e)||!k.test(e)||null!=t&&e in Object(t))};var A=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},W=w,N=A;var L,O=function(e){if(!N(e))return!1;var t=W(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},j=u["__core-js_shared__"],V=(L=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";var R=function(e){return!!V&&V in e},T=Function.prototype.toString;var I=O,P=R,M=A,G=function(e){if(null!=e){try{return T.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X=/^\[object .+?Constructor\]$/,Y=Function.prototype,Z=Object.prototype,U=Y.toString,q=Z.hasOwnProperty,J=RegExp("^"+U.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var K=function(e){return!(!M(e)||P(e))&&(I(e)?J:X).test(G(e))},Q=function(e,t){return null==e?void 0:e[t]};var ee=function(e,t){var n=Q(e,t);return K(n)?n:void 0},te=ee(Object,"create"),ne=te;var re=function(){this.__data__=ne?ne(null):{},this.size=0};var ae=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ie=te,oe=Object.prototype.hasOwnProperty;var le=function(e){var t=this.__data__;if(ie){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return oe.call(t,e)?t[e]:void 0},ce=te,he=Object.prototype.hasOwnProperty;var de=te;var ge=re,ue=ae,se=le,pe=function(e){var t=this.__data__;return ce?void 0!==t[e]:he.call(t,e)},fe=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=de&&void 0===t?"__lodash_hash_undefined__":t,this};function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ye.prototype.clear=ge,ye.prototype.delete=ue,ye.prototype.get=se,ye.prototype.has=pe,ye.prototype.set=fe;var me=ye;var ve=function(){this.__data__=[],this.size=0};var Fe=function(e,t){return e===t||e!=e&&t!=t};var Se=function(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1},Be=Se,$e=Array.prototype.splice;var be=Se;var we=Se;var De=Se;var He=ve,_e=function(e){var t=this.__data__,n=Be(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},ze=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},xe=function(e){return we(this.__data__,e)>-1},ke=function(e,t){var n=this.__data__,r=De(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ee.prototype.clear=He,Ee.prototype.delete=_e,Ee.prototype.get=ze,Ee.prototype.has=xe,Ee.prototype.set=ke;var Ce=Ee,Ae=ee(u,"Map"),We=me,Ne=Ce,Le=Ae;var Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var je=function(e,t){var n=e.__data__;return Oe(t)?n["string"==typeof t?"string":"hash"]:n.map},Ve=je;var Re=je;var Te=je;var Ie=je;var Pe=function(){this.size=0,this.__data__={hash:new We,map:new(Le||Ne),string:new We}},Me=function(e){var t=Ve(this,e).delete(e);return this.size-=t?1:0,t},Ge=function(e){return Re(this,e).get(e)},Xe=function(e){return Te(this,e).has(e)},Ye=function(e,t){var n=Ie(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Ze(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ze.prototype.clear=Pe,Ze.prototype.delete=Me,Ze.prototype.get=Ge,Ze.prototype.has=Xe,Ze.prototype.set=Ye;var Ue=Ze;function qe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(qe.Cache||Ue),n}qe.Cache=Ue;var Je=qe;var Ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qe=/\\(\\)?/g,et=function(e){var t=Je(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ke,(function(e,n,r,a){t.push(r?a.replace(Qe,"$1"):n||e)})),t}));var tt=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a},nt=h,rt=_,at=s?s.prototype:void 0,it=at?at.toString:void 0;var ot=function e(t){if("string"==typeof t)return t;if(nt(t))return tt(t,e)+"";if(rt(t))return it?it.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},lt=ot;var ct=h,ht=C,dt=et,gt=function(e){return null==e?"":lt(e)};var ut=_;var st=function(e,t){return ct(e)?e:ht(e,t)?[e]:dt(gt(e))},pt=function(e){if("string"==typeof e||ut(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ft=function(e,t){for(var n=0,r=(t=st(t,e)).length;null!=e&&n<r;)e=e[pt(t[n++])];return n&&n==r?e:void 0};var yt=function(e,t,n){var r=null==e?void 0:ft(e,t);return void 0===r?n:r};const mt=(e,t,n)=>t?yt(n,t)||yt(e,t):n||e,vt=(e,t)=>{const n=t||e.defaultValue;return yt(e.collections,n)};var Ft;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(Ft||(Ft={}));const St={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"},Bt=e=>t=>{const n=t.theme,r=vt(St,n[Ft.colorScheme]);return n.options&&n.options.color?mt(r,e,n.options.color):mt(r,e)},$t={Brand:{1:Bt("Brand.1"),2:Bt("Brand.2"),3:Bt("Brand.3"),4:Bt("Brand.4"),5:Bt("Brand.5"),6:Bt("Brand.6")},Primary:Bt("Primary"),PrimaryDark:Bt("PrimaryDark"),Secondary:Bt("Secondary"),Accent:{Light:{1:Bt("Accent.Light.1"),2:Bt("Accent.Light.2"),3:Bt("Accent.Light.3"),4:Bt("Accent.Light.4"),5:Bt("Accent.Light.5"),6:Bt("Accent.Light.6")},Dark:{1:Bt("Accent.Dark.1"),2:Bt("Accent.Dark.2"),3:Bt("Accent.Dark.3")}},Neutral:{1:Bt("Neutral.1"),2:Bt("Neutral.2"),3:Bt("Neutral.3"),4:Bt("Neutral.4"),5:Bt("Neutral.5"),6:Bt("Neutral.6"),7:Bt("Neutral.7"),8:Bt("Neutral.8")},Validation:{Green:{Text:Bt("Validation.Green.Text"),Icon:Bt("Validation.Green.Icon"),Border:Bt("Validation.Green.Border"),Background:Bt("Validation.Green.Background")},Orange:{Text:Bt("Validation.Orange.Text"),Icon:Bt("Validation.Orange.Icon"),Border:Bt("Validation.Orange.Border"),Background:Bt("Validation.Orange.Background"),Badge:Bt("Validation.Orange.Badge")},Red:{Text:Bt("Validation.Red.Text"),Icon:Bt("Validation.Red.Icon"),Border:Bt("Validation.Red.Border"),Background:Bt("Validation.Red.Background")}}},bt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},wt={collections:{base:{D1:{fontFamily:bt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:bt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:bt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:bt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:bt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:bt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:bt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:bt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:bt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:bt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:bt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:bt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:bt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:bt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Dt=e=>t=>{const n=t.theme,r=vt(wt,n[Ft.textStyleScheme]);return n.options&&n.options.textStyle?mt(r,e,n.options.textStyle):mt(r,e)},Ht={D1:{fontFamily:Dt("D1.fontFamily"),fontSize:Dt("D1.fontSize"),fontWeight:Dt("D1.fontWeight"),lineHeight:Dt("D1.lineHeight"),letterSpacing:Dt("D1.letterSpacing")},D2:{fontFamily:Dt("D2.fontFamily"),fontSize:Dt("D2.fontSize"),fontWeight:Dt("D2.fontWeight"),lineHeight:Dt("D2.lineHeight"),letterSpacing:Dt("D2.letterSpacing")},D3:{fontFamily:Dt("D3.fontFamily"),fontSize:Dt("D3.fontSize"),fontWeight:Dt("D3.fontWeight"),lineHeight:Dt("D3.lineHeight"),letterSpacing:Dt("D3.letterSpacing")},D4:{fontFamily:Dt("D4.fontFamily"),fontSize:Dt("D4.fontSize"),fontWeight:Dt("D4.fontWeight"),lineHeight:Dt("D4.lineHeight"),letterSpacing:Dt("D4.letterSpacing")},DBody:{fontFamily:Dt("DBody.fontFamily"),fontSize:Dt("DBody.fontSize"),fontWeight:Dt("DBody.fontWeight"),lineHeight:Dt("DBody.lineHeight"),letterSpacing:Dt("DBody.letterSpacing")},H1:{fontFamily:Dt("H1.fontFamily"),fontSize:Dt("H1.fontSize"),fontWeight:Dt("H1.fontWeight"),lineHeight:Dt("H1.lineHeight"),letterSpacing:Dt("H1.letterSpacing")},H2:{fontFamily:Dt("H2.fontFamily"),fontSize:Dt("H2.fontSize"),fontWeight:Dt("H2.fontWeight"),lineHeight:Dt("H2.lineHeight"),letterSpacing:Dt("H2.letterSpacing")},H3:{fontFamily:Dt("H3.fontFamily"),fontSize:Dt("H3.fontSize"),fontWeight:Dt("H3.fontWeight"),lineHeight:Dt("H3.lineHeight"),letterSpacing:Dt("H3.letterSpacing")},H4:{fontFamily:Dt("H4.fontFamily"),fontSize:Dt("H4.fontSize"),fontWeight:Dt("H4.fontWeight"),lineHeight:Dt("H4.lineHeight"),letterSpacing:Dt("H4.letterSpacing")},H5:{fontFamily:Dt("H5.fontFamily"),fontSize:Dt("H5.fontSize"),fontWeight:Dt("H5.fontWeight"),lineHeight:Dt("H5.lineHeight"),letterSpacing:Dt("H5.letterSpacing")},H6:{fontFamily:Dt("H6.fontFamily"),fontSize:Dt("H6.fontSize"),fontWeight:Dt("H6.fontWeight"),lineHeight:Dt("H6.lineHeight"),letterSpacing:Dt("H6.letterSpacing")},Body:{fontFamily:Dt("Body.fontFamily"),fontSize:Dt("Body.fontSize"),fontWeight:Dt("Body.fontWeight"),lineHeight:Dt("Body.lineHeight"),letterSpacing:Dt("Body.letterSpacing")},BodySmall:{fontFamily:Dt("BodySmall.fontFamily"),fontSize:Dt("BodySmall.fontSize"),fontWeight:Dt("BodySmall.fontWeight"),lineHeight:Dt("BodySmall.lineHeight"),letterSpacing:Dt("BodySmall.letterSpacing")},XSmall:{fontFamily:Dt("XSmall.fontFamily"),fontSize:Dt("XSmall.fontSize"),fontWeight:Dt("XSmall.fontWeight"),lineHeight:Dt("XSmall.lineHeight"),letterSpacing:Dt("XSmall.letterSpacing")}},_t=e=>{switch(e){case 700:case"bold":return bt.Bold;case 600:case"semibold":return bt.Semibold;case 300:case"light":return bt.Light;case 400:case"regular":return bt.Regular;default:return""}},zt=(e,t)=>n=>{const r=Ht[e].fontFamily(n),a=Ht[e].fontWeight(n);return Object.values(bt).includes(r)?o`
|
|
2
|
-
|
|
1
|
+
import t,{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as a,useEffect as i}from"react";import o,{css as l}from"styled-components";var c,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={exports:{}},h=s.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",a="second",i="minute",o="hour",l="day",c="week",u="month",s="quarter",h="year",d="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,y={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},S={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(a,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()),a=e.clone().add(r,u),i=n-a<0,o=e.clone().add(r+(i?-1:1),u);return+(-(r+(n-a)/(i?a-o:o-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:h,w:c,d:l,D:d,h:o,m:i,s:a,ms:r,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",v={};v[$]=y;var F=function(t){return t instanceof b},D=function t(e,n,r){var a;if(!e)return $;if("string"==typeof e){var i=e.toLowerCase();v[i]&&(a=i),n&&(v[i]=n,a=i);var o=e.split("-");if(!a&&o.length>1)return t(o[0])}else{var l=e.name;v[l]=e,a=l}return!r&&a&&($=a),a||!r&&$},B=function(t,e){if(F(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},H=S;H.l=D,H.i=F,H.w=function(t,e){return B(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function y(t){this.$L=D(t.locale,null,!0),this.parse(t)}var m=y.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(H.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(g);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},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 H},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(t,e){var n=B(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return B(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<B(t)},m.$g=function(t,e,n){return H.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=!!H.u(e)||e,s=H.p(t),f=function(t,e){var a=H.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?a:a.endOf(l)},g=function(t,e){return H.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,y=this.$M,m=this.$D,S="set"+(this.$u?"UTC":"");switch(s){case h:return r?f(1,0):f(31,11);case u:return r?f(1,y):f(0,y+1);case c:var $=this.$locale().weekStart||0,v=(p<$?p+7:p)-$;return f(r?m-v:m+(6-v),y);case l:case d:return g(S+"Hours",0);case o:return g(S+"Minutes",1);case i:return g(S+"Seconds",2);case a:return g(S+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,c=H.p(t),s="set"+(this.$u?"UTC":""),f=(n={},n[l]=s+"Date",n[d]=s+"Date",n[u]=s+"Month",n[h]=s+"FullYear",n[o]=s+"Hours",n[i]=s+"Minutes",n[a]=s+"Seconds",n[r]=s+"Milliseconds",n)[c],g=c===l?this.$D+(e-this.$W):e;if(c===u||c===h){var p=this.clone().set(d,1);p.$d[f](g),p.init(),this.$d=p.set(d,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[H.p(t)]()},m.add=function(r,s){var d,f=this;r=Number(r);var g=H.p(s),p=function(t){var e=B(f);return H.w(e.date(e.date()+Math.round(t*r)),f)};if(g===u)return this.set(u,this.$M+r);if(g===h)return this.set(h,this.$y+r);if(g===l)return p(1);if(g===c)return p(7);var y=(d={},d[i]=e,d[o]=n,d[a]=t,d)[g]||1,m=this.$d.getTime()+r*y;return H.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||f;var r=t||"YYYY-MM-DDTHH:mm:ssZ",a=H.z(this),i=this.$H,o=this.$m,l=this.$M,c=n.weekdays,u=n.months,s=function(t,n,a,i){return t&&(t[n]||t(e,r))||a[n].slice(0,i)},h=function(t){return H.s(i%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:H.s(l+1,2,"0"),MMM:s(n.monthsShort,l,u,3),MMMM:s(u,l),D:this.$D,DD:H.s(this.$D,2,"0"),d:String(this.$W),dd:s(n.weekdaysMin,this.$W,c,2),ddd:s(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:H.s(i,2,"0"),h:h(1),hh:h(2),a:d(i,o,!0),A:d(i,o,!1),m:String(o),mm:H.s(o,2,"0"),s:String(this.$s),ss:H.s(this.$s,2,"0"),SSS:H.s(this.$ms,3,"0"),Z:a};return r.replace(p,(function(t,e){return e||g[t]||a.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,f){var g,p=H.p(d),y=B(r),m=(y.utcOffset()-this.utcOffset())*e,S=this-y,$=H.m(this,y);return $=(g={},g[h]=$/12,g[u]=$,g[s]=$/3,g[c]=(S-m)/6048e5,g[l]=(S-m)/864e5,g[o]=S/n,g[i]=S/e,g[a]=S/t,g)[p]||S,f?$:H.a($)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=D(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return H.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()},y}(),w=b.prototype;return B.prototype=w,[["$ms",r],["$s",a],["$m",i],["$H",o],["$W",l],["$M",u],["$y",h],["$D",d]].forEach((function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),B.extend=function(t,e){return t.$i||(t(e,b,B),t.$i=!0),B},B.locale=D,B.isDayjs=F,B.unix=function(t){return B(1e3*t)},B.en=v[$],B.Ls=v,B.p={},B}();!function(t){t.generateDays=t=>{const e=t.startOf("month"),n=h(e).startOf("week");return d(n).map((t=>f(t)))},t.generateMonths=t=>{const e=[];for(let n=0;n<12;n++){const r=t.month(n);e.push(h(r))}return e},t.generateDecadeOfYears=t=>{const e=t.year(),n=10*Math.floor(e/10),r=t.year(n),a=[r.subtract(1,"year"),r];for(let t=1;t<11;t++)a.push(r.add(t,"year"));return a},t.getStartEndDecade=t=>{const e=10*Math.floor(+t.format("YYYY")/10);return{beginDecade:e,endDecade:+h(`${e+9}-01-01`).format("YYYY")}}}(c||(c={}));const d=t=>{const e=[t];for(let n=1;n<6;n++){const r=t.add(n,"week");e.push(r)}return e},f=t=>{const e=[];for(let n=0;n<7;n++){const r=t.add(n,"day");e.push(r)}return e},g=[1,3,5,7,8,10,12],p=[4,6,9,11];var y,m;!function(t){t.clampDay=(e,n,r)=>{const a=parseInt(e),i=parseInt(n),o=parseInt(r);return 0==a?"1":g.includes(i)?Math.min(a,31).toString():p.includes(i)?Math.min(a,30).toString():2===i?t.isLeapYear(o)?Math.min(a,29).toString():Math.min(a,28).toString():e},t.clampMonth=t=>{const e=parseInt(t);return 0==e?"1":e>12?"12":t},t.isLeapYear=t=>t%4==0&&t%100!=0||t%400==0}(y||(y={})),function(t){t.transformWithSpaces=(t,e)=>{const n="(.{"+e+"})";return t.replace(/[^\dA-Z]/gi,"").replace(new RegExp(n,"g"),"$1 ").trim()},t.padValue=(t,e)=>{if("0"===t)return e?t:t.padStart(2,"0");if(""===t)return t;return parseInt(t).toString().padStart(2,"0")},t.shouldTruncateToTwoLines=(t,e)=>{const n=Math.floor(e/9);return t.length>=2*n||1===t.split(" ").length&&t.length>n},t.truncateOneLine=(t,e,n,r)=>{let a=0;e>n&&(a=Math.floor((e-n)/8));const i=r+a;if(i<t.length){const e=Math.floor(i/2);return t.substring(0,e)+" ... "+t.substring(t.length-e,t.length)}return t}}(m||(m={}));var S=Array.isArray,$="object"==typeof u&&u&&u.Object===Object&&u,v="object"==typeof self&&self&&self.Object===Object&&self,F=$||v||Function("return this")(),D=F.Symbol,B=D,H=Object.prototype,b=H.hasOwnProperty,w=H.toString,_=B?B.toStringTag:void 0;var x=function(t){var e=b.call(t,_),n=t[_];try{t[_]=void 0;var r=!0}catch(t){}var a=w.call(t);return r&&(e?t[_]=n:delete t[_]),a},O=Object.prototype.toString;var C=x,M=function(t){return O.call(t)},z=D?D.toStringTag:void 0;var k=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?C(t):M(t)};var E=k,A=function(t){return null!=t&&"object"==typeof t};var W=function(t){return"symbol"==typeof t||A(t)&&"[object Symbol]"==E(t)},V=S,T=W,N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;var j=function(t,e){if(V(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!T(t))||(L.test(t)||!N.test(t)||null!=e&&t in Object(e))};var I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Y=k,R=I;var P,X=function(t){if(!R(t))return!1;var e=Y(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},G=F["__core-js_shared__"],Z=(P=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var U=function(t){return!!Z&&Z in t},J=Function.prototype.toString;var K=X,q=U,Q=I,tt=function(t){if(null!=t){try{return J.call(t)}catch(t){}try{return t+""}catch(t){}}return""},et=/^\[object .+?Constructor\]$/,nt=Function.prototype,rt=Object.prototype,at=nt.toString,it=rt.hasOwnProperty,ot=RegExp("^"+at.call(it).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var lt=function(t){return!(!Q(t)||q(t))&&(K(t)?ot:et).test(tt(t))},ct=function(t,e){return null==t?void 0:t[e]};var ut=function(t,e){var n=ct(t,e);return lt(n)?n:void 0},st=ut(Object,"create"),ht=st;var dt=function(){this.__data__=ht?ht(null):{},this.size=0};var ft=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},gt=st,pt=Object.prototype.hasOwnProperty;var yt=function(t){var e=this.__data__;if(gt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return pt.call(e,t)?e[t]:void 0},mt=st,St=Object.prototype.hasOwnProperty;var $t=st;var vt=dt,Ft=ft,Dt=yt,Bt=function(t){var e=this.__data__;return mt?void 0!==e[t]:St.call(e,t)},Ht=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=$t&&void 0===e?"__lodash_hash_undefined__":e,this};function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=vt,bt.prototype.delete=Ft,bt.prototype.get=Dt,bt.prototype.has=Bt,bt.prototype.set=Ht;var wt=bt;var _t=function(){this.__data__=[],this.size=0};var xt=function(t,e){return t===e||t!=t&&e!=e};var Ot=function(t,e){for(var n=t.length;n--;)if(xt(t[n][0],e))return n;return-1},Ct=Ot,Mt=Array.prototype.splice;var zt=Ot;var kt=Ot;var Et=Ot;var At=_t,Wt=function(t){var e=this.__data__,n=Ct(e,t);return!(n<0)&&(n==e.length-1?e.pop():Mt.call(e,n,1),--this.size,!0)},Vt=function(t){var e=this.__data__,n=zt(e,t);return n<0?void 0:e[n][1]},Tt=function(t){return kt(this.__data__,t)>-1},Nt=function(t,e){var n=this.__data__,r=Et(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Lt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Lt.prototype.clear=At,Lt.prototype.delete=Wt,Lt.prototype.get=Vt,Lt.prototype.has=Tt,Lt.prototype.set=Nt;var jt=Lt,It=ut(F,"Map"),Yt=wt,Rt=jt,Pt=It;var Xt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Gt=function(t,e){var n=t.__data__;return Xt(e)?n["string"==typeof e?"string":"hash"]:n.map},Zt=Gt;var Ut=Gt;var Jt=Gt;var Kt=Gt;var qt=function(){this.size=0,this.__data__={hash:new Yt,map:new(Pt||Rt),string:new Yt}},Qt=function(t){var e=Zt(this,t).delete(t);return this.size-=e?1:0,e},te=function(t){return Ut(this,t).get(t)},ee=function(t){return Jt(this,t).has(t)},ne=function(t,e){var n=Kt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function re(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}re.prototype.clear=qt,re.prototype.delete=Qt,re.prototype.get=te,re.prototype.has=ee,re.prototype.set=ne;var ae=re;function ie(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(ie.Cache||ae),n}ie.Cache=ae;var oe=ie;var le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ce=/\\(\\)?/g,ue=function(t){var e=oe(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(le,(function(t,n,r,a){e.push(r?a.replace(ce,"$1"):n||t)})),e}));var se=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a},he=S,de=W,fe=D?D.prototype:void 0,ge=fe?fe.toString:void 0;var pe=function t(e){if("string"==typeof e)return e;if(he(e))return se(e,t)+"";if(de(e))return ge?ge.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ye=pe;var me=S,Se=j,$e=ue,ve=function(t){return null==t?"":ye(t)};var Fe=W;var De=function(t,e){return me(t)?t:Se(t,e)?[t]:$e(ve(t))},Be=function(t){if("string"==typeof t||Fe(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var He=function(t,e){for(var n=0,r=(e=De(e,t)).length;null!=t&&n<r;)t=t[Be(e[n++])];return n&&n==r?t:void 0};var be=function(t,e,n){var r=null==t?void 0:He(t,e);return void 0===r?n:r};const we=(t,e,n)=>e?be(n,e)||be(t,e):n||t,_e=(t,e)=>{const n=e||t.defaultValue;return be(t.collections,n)};var xe;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme"}(xe||(xe={}));const Oe={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"},Ce=t=>e=>{const n=e.theme,r=_e(Oe,n[xe.colorScheme]);return n.options&&n.options.color?we(r,t,n.options.color):we(r,t)},Me={Brand:{1:Ce("Brand.1"),2:Ce("Brand.2"),3:Ce("Brand.3"),4:Ce("Brand.4"),5:Ce("Brand.5"),6:Ce("Brand.6")},Primary:Ce("Primary"),PrimaryDark:Ce("PrimaryDark"),Secondary:Ce("Secondary"),Accent:{Light:{1:Ce("Accent.Light.1"),2:Ce("Accent.Light.2"),3:Ce("Accent.Light.3"),4:Ce("Accent.Light.4"),5:Ce("Accent.Light.5"),6:Ce("Accent.Light.6")},Dark:{1:Ce("Accent.Dark.1"),2:Ce("Accent.Dark.2"),3:Ce("Accent.Dark.3")}},Neutral:{1:Ce("Neutral.1"),2:Ce("Neutral.2"),3:Ce("Neutral.3"),4:Ce("Neutral.4"),5:Ce("Neutral.5"),6:Ce("Neutral.6"),7:Ce("Neutral.7"),8:Ce("Neutral.8")},Validation:{Green:{Text:Ce("Validation.Green.Text"),Icon:Ce("Validation.Green.Icon"),Border:Ce("Validation.Green.Border"),Background:Ce("Validation.Green.Background")},Orange:{Text:Ce("Validation.Orange.Text"),Icon:Ce("Validation.Orange.Icon"),Border:Ce("Validation.Orange.Border"),Background:Ce("Validation.Orange.Background"),Badge:Ce("Validation.Orange.Badge")},Red:{Text:Ce("Validation.Red.Text"),Icon:Ce("Validation.Red.Icon"),Border:Ce("Validation.Red.Border"),Background:Ce("Validation.Red.Background")}},Shadow:{Accent:Ce("Shadow.Accent"),Red:Ce("Shadow.Red")}},ze={collections:{base:{InputBoxShadow:l`
|
|
2
|
+
inset 0 0 6px 1px ${Me.Shadow.Accent}
|
|
3
|
+
`,InputErrorBoxShadow:l`
|
|
4
|
+
inset 0 0 6px 1px ${Me.Shadow.Red}
|
|
5
|
+
`}},defaultValue:"base"},ke=t=>e=>{const n=e.theme,r=_e(ze,n[xe.designTokenScheme]);return n.options?.designToken?we(r,t,n.options.designToken):we(r,t)},Ee=ke("InputBoxShadow"),Ae=ke("InputErrorBoxShadow"),We={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Ve={collections:{base:{D1:{fontFamily:We.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:We.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:We.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:We.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:We.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:We.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:We.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:We.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:We.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:We.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:We.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:We.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:We.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:We.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Te=t=>e=>{const n=e.theme,r=_e(Ve,n[xe.textStyleScheme]);return n.options&&n.options.textStyle?we(r,t,n.options.textStyle):we(r,t)},Ne={D1:{fontFamily:Te("D1.fontFamily"),fontSize:Te("D1.fontSize"),fontWeight:Te("D1.fontWeight"),lineHeight:Te("D1.lineHeight"),letterSpacing:Te("D1.letterSpacing")},D2:{fontFamily:Te("D2.fontFamily"),fontSize:Te("D2.fontSize"),fontWeight:Te("D2.fontWeight"),lineHeight:Te("D2.lineHeight"),letterSpacing:Te("D2.letterSpacing")},D3:{fontFamily:Te("D3.fontFamily"),fontSize:Te("D3.fontSize"),fontWeight:Te("D3.fontWeight"),lineHeight:Te("D3.lineHeight"),letterSpacing:Te("D3.letterSpacing")},D4:{fontFamily:Te("D4.fontFamily"),fontSize:Te("D4.fontSize"),fontWeight:Te("D4.fontWeight"),lineHeight:Te("D4.lineHeight"),letterSpacing:Te("D4.letterSpacing")},DBody:{fontFamily:Te("DBody.fontFamily"),fontSize:Te("DBody.fontSize"),fontWeight:Te("DBody.fontWeight"),lineHeight:Te("DBody.lineHeight"),letterSpacing:Te("DBody.letterSpacing")},H1:{fontFamily:Te("H1.fontFamily"),fontSize:Te("H1.fontSize"),fontWeight:Te("H1.fontWeight"),lineHeight:Te("H1.lineHeight"),letterSpacing:Te("H1.letterSpacing")},H2:{fontFamily:Te("H2.fontFamily"),fontSize:Te("H2.fontSize"),fontWeight:Te("H2.fontWeight"),lineHeight:Te("H2.lineHeight"),letterSpacing:Te("H2.letterSpacing")},H3:{fontFamily:Te("H3.fontFamily"),fontSize:Te("H3.fontSize"),fontWeight:Te("H3.fontWeight"),lineHeight:Te("H3.lineHeight"),letterSpacing:Te("H3.letterSpacing")},H4:{fontFamily:Te("H4.fontFamily"),fontSize:Te("H4.fontSize"),fontWeight:Te("H4.fontWeight"),lineHeight:Te("H4.lineHeight"),letterSpacing:Te("H4.letterSpacing")},H5:{fontFamily:Te("H5.fontFamily"),fontSize:Te("H5.fontSize"),fontWeight:Te("H5.fontWeight"),lineHeight:Te("H5.lineHeight"),letterSpacing:Te("H5.letterSpacing")},H6:{fontFamily:Te("H6.fontFamily"),fontSize:Te("H6.fontSize"),fontWeight:Te("H6.fontWeight"),lineHeight:Te("H6.lineHeight"),letterSpacing:Te("H6.letterSpacing")},Body:{fontFamily:Te("Body.fontFamily"),fontSize:Te("Body.fontSize"),fontWeight:Te("Body.fontWeight"),lineHeight:Te("Body.lineHeight"),letterSpacing:Te("Body.letterSpacing")},BodySmall:{fontFamily:Te("BodySmall.fontFamily"),fontSize:Te("BodySmall.fontSize"),fontWeight:Te("BodySmall.fontWeight"),lineHeight:Te("BodySmall.lineHeight"),letterSpacing:Te("BodySmall.letterSpacing")},XSmall:{fontFamily:Te("XSmall.fontFamily"),fontSize:Te("XSmall.fontSize"),fontWeight:Te("XSmall.fontWeight"),lineHeight:Te("XSmall.lineHeight"),letterSpacing:Te("XSmall.letterSpacing")}},Le=t=>{switch(t){case 700:case"bold":return We.Bold;case 600:case"semibold":return We.Semibold;case 300:case"light":return We.Light;case 400:case"regular":return We.Regular;default:return""}},je=(t,e)=>n=>{const r=Ne[t].fontFamily(n),a=Ne[t].fontWeight(n);return Object.values(We).includes(r)?l`
|
|
6
|
+
font-family: ${Le(e)||Le(a)||r};
|
|
3
7
|
font-weight: normal !important;
|
|
4
|
-
`:
|
|
8
|
+
`:l`
|
|
5
9
|
font-family: ${r};
|
|
6
|
-
font-weight: ${(
|
|
7
|
-
`},
|
|
8
|
-
${
|
|
10
|
+
font-weight: ${(Ie(e)||a)??"normal"};
|
|
11
|
+
`},Ie=t=>{switch(t){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""}},Ye=(t,e,n=!1)=>r=>{const a=Ne[t],i=a.fontSize(r);return l`
|
|
12
|
+
${je(t,e)}
|
|
9
13
|
font-size: ${i}rem !important;
|
|
10
14
|
line-height: ${a.lineHeight}rem !important;
|
|
11
15
|
letter-spacing: ${a.letterSpacing(r)||0}rem !important;
|
|
12
|
-
${
|
|
16
|
+
${l`
|
|
13
17
|
margin-bottom: ${i*(n?1.05:0)}rem;
|
|
14
18
|
`}
|
|
15
|
-
`},
|
|
19
|
+
`},Re=(t=!1,e=!1)=>e?l`
|
|
16
20
|
display: block;
|
|
17
|
-
`:
|
|
21
|
+
`:t?l`
|
|
18
22
|
display: inline;
|
|
19
|
-
`:
|
|
23
|
+
`:l`
|
|
20
24
|
display: block;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
#path {
|
|
27
|
-
fill: ${$t.Neutral[8]};
|
|
28
|
-
}
|
|
29
|
-
`,At=t=>e(Ct,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...t,children:e("g",{fill:"none",fillRule:"evenodd",children:e("g",{id:"path",fillRule:"nonzero",children:e("g",{children:e("g",{children:e("g",{children:e("path",{d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})})})})})})}),Wt=t=>e(Ct,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...t,children:e("path",{id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),Nt=t=>e(Ct,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...t,children:e("path",{id:"path",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z",fillRule:"nonzero"})}),Lt=t=>e(Ct,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...t,children:e("g",{id:"search",children:e("path",{id:"path",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})})}),Ot=i.span`
|
|
30
|
-
font-size: 1rem;
|
|
31
|
-
`;var jt;!function(e){e.D1=i.h1`
|
|
32
|
-
${e=>o`
|
|
33
|
-
${kt("D1",e.weight,e.paragraph)}
|
|
34
|
-
color: ${$t.Neutral[1]};
|
|
35
|
-
${Et(e.inline,e.paragraph)}
|
|
25
|
+
`;var Pe,Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});var Ge=t;const Ze=t=>Ge.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:Ge.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 Ue;Ze.displayName="ExternalIcon",Pe=Xe.ExternalIcon=Ze,function(t){t.D1=o.h1`
|
|
26
|
+
${t=>l`
|
|
27
|
+
${Ye("D1",t.weight,t.paragraph)}
|
|
28
|
+
color: ${Me.Neutral[1]};
|
|
29
|
+
${Re(t.inline,t.paragraph)}
|
|
36
30
|
`}
|
|
37
|
-
`,
|
|
38
|
-
${
|
|
39
|
-
${
|
|
40
|
-
color: ${
|
|
41
|
-
${
|
|
31
|
+
`,t.D2=o.h1`
|
|
32
|
+
${t=>l`
|
|
33
|
+
${Ye("D2",t.weight,t.paragraph)}
|
|
34
|
+
color: ${Me.Neutral[1]};
|
|
35
|
+
${Re(t.inline,t.paragraph)}
|
|
42
36
|
`}
|
|
43
|
-
`,
|
|
44
|
-
${
|
|
45
|
-
${
|
|
46
|
-
color: ${
|
|
47
|
-
${
|
|
37
|
+
`,t.D3=o.h1`
|
|
38
|
+
${t=>l`
|
|
39
|
+
${Ye("D3",t.weight,t.paragraph)}
|
|
40
|
+
color: ${Me.Neutral[1]};
|
|
41
|
+
${Re(t.inline,t.paragraph)}
|
|
48
42
|
`}
|
|
49
|
-
`,
|
|
50
|
-
${
|
|
51
|
-
${
|
|
52
|
-
color: ${
|
|
53
|
-
${
|
|
43
|
+
`,t.D4=o.h1`
|
|
44
|
+
${t=>l`
|
|
45
|
+
${Ye("D4",t.weight,t.paragraph)}
|
|
46
|
+
color: ${Me.Neutral[1]};
|
|
47
|
+
${Re(t.inline,t.paragraph)}
|
|
54
48
|
`}
|
|
55
|
-
`,
|
|
56
|
-
${
|
|
57
|
-
${
|
|
58
|
-
color: ${
|
|
59
|
-
${
|
|
49
|
+
`,t.DBody=o.h1`
|
|
50
|
+
${t=>l`
|
|
51
|
+
${Ye("DBody",t.weight,t.paragraph)}
|
|
52
|
+
color: ${Me.Neutral[1]};
|
|
53
|
+
${Re(t.inline,t.paragraph)}
|
|
60
54
|
`}
|
|
61
|
-
`,
|
|
62
|
-
${
|
|
63
|
-
${
|
|
64
|
-
color: ${
|
|
65
|
-
${
|
|
55
|
+
`,t.H1=o.h1`
|
|
56
|
+
${t=>l`
|
|
57
|
+
${Ye("H1",t.weight,t.paragraph)}
|
|
58
|
+
color: ${Me.Neutral[1]};
|
|
59
|
+
${Re(t.inline,t.paragraph)}
|
|
66
60
|
`}
|
|
67
|
-
`,
|
|
68
|
-
${
|
|
69
|
-
${
|
|
70
|
-
color: ${
|
|
71
|
-
${
|
|
61
|
+
`,t.H2=o.h2`
|
|
62
|
+
${t=>l`
|
|
63
|
+
${Ye("H2",t.weight,t.paragraph)}
|
|
64
|
+
color: ${Me.Neutral[1]};
|
|
65
|
+
${Re(t.inline,t.paragraph)}
|
|
72
66
|
`}
|
|
73
|
-
`,
|
|
74
|
-
${
|
|
75
|
-
${
|
|
76
|
-
color: ${
|
|
77
|
-
${
|
|
67
|
+
`,t.H3=o.h3`
|
|
68
|
+
${t=>l`
|
|
69
|
+
${Ye("H3",t.weight,t.paragraph)}
|
|
70
|
+
color: ${Me.Neutral[1]};
|
|
71
|
+
${Re(t.inline,t.paragraph)}
|
|
78
72
|
`}
|
|
79
|
-
`,
|
|
80
|
-
${
|
|
81
|
-
${
|
|
82
|
-
color: ${
|
|
83
|
-
${
|
|
73
|
+
`,t.H4=o.h4`
|
|
74
|
+
${t=>l`
|
|
75
|
+
${Ye("H4",t.weight,t.paragraph)}
|
|
76
|
+
color: ${Me.Neutral[1]};
|
|
77
|
+
${Re(t.inline,t.paragraph)}
|
|
84
78
|
`}
|
|
85
|
-
`,
|
|
86
|
-
${
|
|
87
|
-
${
|
|
88
|
-
color: ${
|
|
89
|
-
${
|
|
79
|
+
`,t.H5=o.h5`
|
|
80
|
+
${t=>l`
|
|
81
|
+
${Ye("H5",t.weight,t.paragraph)}
|
|
82
|
+
color: ${Me.Neutral[1]};
|
|
83
|
+
${Re(t.inline,t.paragraph)}
|
|
90
84
|
`}
|
|
91
|
-
`,
|
|
92
|
-
${
|
|
93
|
-
${
|
|
94
|
-
color: ${
|
|
95
|
-
${
|
|
85
|
+
`,t.H6=o.h6`
|
|
86
|
+
${t=>l`
|
|
87
|
+
${Ye("H6",t.weight,t.paragraph)}
|
|
88
|
+
color: ${Me.Neutral[1]};
|
|
89
|
+
${Re(t.inline,t.paragraph)}
|
|
96
90
|
`}
|
|
97
|
-
`,
|
|
98
|
-
${
|
|
99
|
-
${
|
|
100
|
-
color: ${
|
|
101
|
-
${
|
|
91
|
+
`,t.Body=o.p`
|
|
92
|
+
${t=>l`
|
|
93
|
+
${Ye("Body",t.weight,t.paragraph)}
|
|
94
|
+
color: ${Me.Neutral[1]};
|
|
95
|
+
${Re(t.inline,t.paragraph)}
|
|
102
96
|
`}
|
|
103
|
-
`,
|
|
104
|
-
${
|
|
105
|
-
${
|
|
106
|
-
color: ${
|
|
107
|
-
${
|
|
97
|
+
`,t.BodySmall=o.p`
|
|
98
|
+
${t=>l`
|
|
99
|
+
${Ye("BodySmall",t.weight,t.paragraph)}
|
|
100
|
+
color: ${Me.Neutral[1]};
|
|
101
|
+
${Re(t.inline,t.paragraph)}
|
|
108
102
|
`}
|
|
109
|
-
`,
|
|
110
|
-
${
|
|
111
|
-
${
|
|
112
|
-
color: ${
|
|
113
|
-
${
|
|
103
|
+
`,t.XSmall=o.span`
|
|
104
|
+
${t=>l`
|
|
105
|
+
${Ye("XSmall",t.weight,t.paragraph)}
|
|
106
|
+
color: ${Me.Neutral[1]};
|
|
107
|
+
${Re(t.inline,t.paragraph)}
|
|
114
108
|
`}
|
|
115
|
-
`,
|
|
116
|
-
${
|
|
117
|
-
${
|
|
118
|
-
color: ${
|
|
109
|
+
`,t.Hyperlink={Default:t=>qe({...t,textStyle:"Body"}),Small:t=>qe({...t,textStyle:"BodySmall"})}}(Ue||(Ue={}));const Je=o.a`
|
|
110
|
+
${t=>l`
|
|
111
|
+
${Ye(t.textStyle,t.weight)}
|
|
112
|
+
color: ${Me.Primary};
|
|
119
113
|
text-decoration: none;
|
|
120
114
|
|
|
121
115
|
:hover,
|
|
122
116
|
:active,
|
|
123
117
|
:focus {
|
|
124
|
-
color: ${
|
|
118
|
+
color: ${Me.Secondary};
|
|
119
|
+
|
|
120
|
+
svg {
|
|
121
|
+
color: ${Me.Secondary};
|
|
122
|
+
}
|
|
125
123
|
}
|
|
126
124
|
`}
|
|
127
|
-
`,
|
|
125
|
+
`,Ke=o(Pe)`
|
|
126
|
+
height: 1rem;
|
|
127
|
+
width: 1rem;
|
|
128
128
|
margin-left: 0.4rem;
|
|
129
|
-
|
|
129
|
+
vertical-align: middle;
|
|
130
|
+
`,qe=({external:t=!1,children:r,...a})=>e(Je,{...a,children:[r,t&&n(Ke,{})]}),Qe=o.div`
|
|
130
131
|
display: flex;
|
|
131
132
|
position: relative;
|
|
132
133
|
align-items: center;
|
|
133
|
-
border: 1px solid ${
|
|
134
|
+
border: 1px solid ${Me.Neutral[5]};
|
|
134
135
|
border-radius: 4px;
|
|
135
|
-
background: ${
|
|
136
|
+
background: ${Me.Neutral[8]};
|
|
136
137
|
height: 3rem;
|
|
137
138
|
width: 100%;
|
|
138
139
|
padding: 0.1rem 1rem 0;
|
|
139
140
|
|
|
140
141
|
:focus,
|
|
141
142
|
:focus-within {
|
|
142
|
-
border: 1px solid ${
|
|
143
|
-
box-shadow:
|
|
143
|
+
border: 1px solid ${Me.Accent.Light[1]};
|
|
144
|
+
box-shadow: ${Ee};
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
${
|
|
147
|
-
|
|
147
|
+
${t=>t.$readOnly?l`
|
|
148
|
+
border: none;
|
|
149
|
+
padding-left: 0rem;
|
|
150
|
+
background: transparent !important;
|
|
151
|
+
|
|
152
|
+
:focus-within {
|
|
153
|
+
border: none;
|
|
154
|
+
box-shadow: none;
|
|
155
|
+
}
|
|
156
|
+
`:t.disabled?l`
|
|
157
|
+
background: ${Me.Neutral[6](t)};
|
|
148
158
|
:hover {
|
|
149
159
|
cursor: not-allowed;
|
|
150
160
|
}
|
|
151
161
|
|
|
152
162
|
:focus-within {
|
|
153
|
-
border: 1px solid ${
|
|
163
|
+
border: 1px solid ${Me.Neutral[5](t)};
|
|
154
164
|
box-shadow: none;
|
|
155
165
|
}
|
|
156
|
-
`:
|
|
157
|
-
border: 1px solid ${
|
|
166
|
+
`:t.$error?l`
|
|
167
|
+
border: 1px solid ${Me.Validation.Red.Border(t)};
|
|
158
168
|
|
|
159
169
|
:focus-within {
|
|
160
|
-
border: 1px solid ${
|
|
161
|
-
box-shadow:
|
|
170
|
+
border: 1px solid ${Me.Validation.Red.Border(t)};
|
|
171
|
+
box-shadow: ${Ae};
|
|
162
172
|
}
|
|
163
173
|
`:void 0}
|
|
164
|
-
`,
|
|
174
|
+
`,tn=o.div`
|
|
165
175
|
position: absolute;
|
|
166
176
|
top: 0;
|
|
167
|
-
left: 1rem;
|
|
177
|
+
left: ${t=>t.$readOnly?"-0.5rem":"1rem"};
|
|
168
178
|
height: 100%;
|
|
169
179
|
display: flex;
|
|
170
180
|
align-items: center;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
input[type="number"]::-webkit-outer-spin-button,
|
|
174
|
-
input[type="number"]::-webkit-inner-spin-button {
|
|
175
|
-
-webkit-appearance: none;
|
|
176
|
-
margin: 0;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
input[type="number"] {
|
|
180
|
-
-moz-appearance: textfield;
|
|
181
|
-
}
|
|
182
|
-
`,Mt=i.input`
|
|
183
|
-
${kt("Body","regular")}
|
|
181
|
+
`,en=o.input`
|
|
182
|
+
${Ye("Body","regular")}
|
|
184
183
|
background: transparent;
|
|
185
184
|
height: 100%;
|
|
186
185
|
width: 2.5rem;
|
|
@@ -206,35 +205,21 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as n,useRef as
|
|
|
206
205
|
outline: none;
|
|
207
206
|
}
|
|
208
207
|
|
|
209
|
-
${
|
|
208
|
+
${t=>{if(t.disabled)return l`
|
|
210
209
|
cursor: not-allowed;
|
|
211
210
|
`}}
|
|
212
|
-
`,
|
|
211
|
+
`,nn=o(en)`
|
|
213
212
|
width: 2.6rem;
|
|
214
|
-
`,
|
|
213
|
+
`,rn=o(en)`
|
|
215
214
|
width: 3.5rem;
|
|
216
|
-
`,
|
|
217
|
-
opacity: ${e=>e.$hide?0:1};
|
|
215
|
+
`,an=o(Ue.Body)`
|
|
218
216
|
margin: 0.1rem 0.2rem 0 0.2rem;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
217
|
+
${t=>{if(t.$hide)return l`
|
|
218
|
+
color: ${Me.Neutral[3]};
|
|
219
|
+
`}}
|
|
220
|
+
`;o(an)`
|
|
221
|
+
${t=>{if(t.$compress)return l`
|
|
222
222
|
margin: 0.1rem 0.1rem 0 0.1rem;
|
|
223
223
|
`}}
|
|
224
|
-
`;const
|
|
225
|
-
display: flex;
|
|
226
|
-
align-items: center;
|
|
227
|
-
`,Ut=i(jt.Body)`
|
|
228
|
-
opacity: ${e=>e.$hide?0:1};
|
|
229
|
-
color: ${$t.Neutral[3]};
|
|
230
|
-
display: inline;
|
|
231
|
-
width: 2.5rem;
|
|
232
|
-
text-align: center;
|
|
233
|
-
`,qt=i(Yt)`
|
|
234
|
-
color: ${$t.Neutral[3]};
|
|
235
|
-
`,Jt=i(Ut)`
|
|
236
|
-
width: 2.6rem;
|
|
237
|
-
`,Kt=i(Ut)`
|
|
238
|
-
width: 3.5rem;
|
|
239
|
-
`,Qt=({disabled:i,error:o,value:c,onChange:h,onBlur:d,...g})=>{const[u,s]=n(""),[p,f]=n(""),[y,m]=n(""),[v,F]=n("none"),S=r(null),B=r(null),$=r(null),b=r(null),w=r(u),D=r(p),H=r(y),_=r(v),z=e=>{w.current=e,s(e)},x=e=>{D.current=e,f(e)},k=e=>{H.current=e,m(e)},E=e=>{_.current=e,F(e)};a((()=>(document.addEventListener("mousedown",A),S.current&&S.current.addEventListener("keydown",W),B.current&&B.current.addEventListener("keydown",C),$.current&&$.current.addEventListener("keydown",C),b.current&&b.current.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",A),S.current&&S.current.removeEventListener("keydown",W),B.current&&B.current.removeEventListener("keydown",C),$.current&&$.current.removeEventListener("keydown",C),b.current&&b.current.removeEventListener("keydown",C)})),[v]),a((()=>{"day"===v&&2===u.length&&$.current&&$.current.focus()}),[u]),a((()=>{"month"===v&&2===p.length&&b.current&&b.current.focus()}),[p]),a((()=>{j(c)}),[c]);const C=e=>{const t=["Backspace","0","1","2","3","4","5","6","7","8","9"],n=e.code&&e.code.startsWith("Digit")&&!t.includes(e.key);(!["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Tab","Backspace","Delete","ArrowLeft","ArrowRight"].includes(e.code)&&!t.includes(e.key)||n)&&e.preventDefault()},A=e=>{i||S&&S.current.contains(e.target)||"none"!==_.current&&(E("none"),R())},W=e=>{"year"===e.target.name&&"Tab"===e.code&&(E("none"),R())},N=e=>{E(e.target.name),e.target.select()},L=e=>{switch(e.target.name){case"day":z(l.padValue(e.target.value,!0));break;case"month":x(l.padValue(e.target.value,!0))}},O=e=>{const t=e.target.name;switch(t){case"day":e.target.value.length<=2&&(z(e.target.value),V(e.target.value,t));break;case"month":e.target.value.length<=2&&(x(e.target.value),V(e.target.value,t));break;case"year":e.target.value.length<=4&&(k(e.target.value),V(e.target.value,t))}},j=e=>{if(void 0===e||""===e)z(""),x(""),k("");else{const t=new Date(e);if(!isNaN(t.getTime())){const e=t.getDate(),n=t.getMonth()+1,r=t.getFullYear();z(l.padValue(e.toString())),x(l.padValue(n.toString())),k(r.toString())}}},V=(e,t)=>{if(h){const n={day:u,month:p,year:y};n[t]=e;const r=T(n);h(r)}},R=()=>{if(d){const e={day:w.current,month:D.current,year:H.current},t=T(e);d(t)}},T=e=>{const t=[e.year,e.month,e.day];return e.day.length>=1&&e.month.length>=1&&4===e.year.length?t.join("-"):t.every((e=>""===e))?"":en};return t(It,{ref:S,onClick:()=>{"none"===v&&B.current&&B.current.focus()},disabled:i,$error:o,"data-testid":g["data-testid"],children:[t(Zt,{children:[e(Ut,{$hide:"day"===v||u.length>0,"data-testid":"day-placeholder",children:"DD"}),e(qt,{$hide:u.length>0,children:"/"}),e(Jt,{$hide:"month"===v||p.length>0,"data-testid":"month-placeholder",children:"MM"}),e(qt,{$hide:p.length>0,children:"/"}),e(Kt,{$hide:"year"===v||y.length>0,"data-testid":"year-placeholder",$addGap:0===u.length&&0===y.length,children:"YYYY"})]}),t(Pt,{children:[e(Mt,{name:"day",maxLength:2,value:u,ref:B,onFocus:N,onBlur:L,onChange:O,disabled:i,type:"number",pattern:"[0-9]{2}","data-testid":"day-input","aria-label":"day-input"}),e(Yt,{$hide:0===u.length,children:"/"}),e(Gt,{name:"month",maxLength:2,value:p,ref:$,onFocus:N,onBlur:L,onChange:O,disabled:i,type:"number",pattern:"[0-9]{2}","data-testid":"month-input","aria-label":"month-input"}),e(Yt,{$hide:0===p.length,children:"/"}),e(Xt,{name:"year",maxLength:4,value:y,ref:b,onFocus:N,onBlur:L,onChange:O,disabled:i,type:"number",pattern:"[0-9]{4}","data-testid":"year-input","aria-label":"year-input"})]})]})},en="Invalid date";export{Qt as DateInput};
|
|
224
|
+
`;const on=({disabled:t,error:o,value:l,onChange:c,onBlur:u,onChangeRaw:s,onBlurRaw:h,readOnly:d,id:f,...g})=>{const[p,S]=r(""),[$,v]=r(""),[F,D]=r(""),[B,H]=r("none"),b=a(null),w=a(null),_=a(null),x=a(null),O=a(p),C=a($),M=a(F),z=a(B),k=t=>{O.current=t,S(t)},E=t=>{C.current=t,v(t)},A=t=>{M.current=t,D(t)},W=t=>{z.current=t,H(t)};i((()=>(document.addEventListener("mousedown",V),b.current&&b.current.addEventListener("keydown",T),()=>{document.removeEventListener("mousedown",V),b.current&&b.current.removeEventListener("keydown",T)})),[B]),i((()=>{"day"===B&&2===p.length&&_.current&&_.current.focus()}),[p]),i((()=>{"month"===B&&2===$.length&&x.current&&x.current.focus()}),[$]),i((()=>{Y(l)}),[l]);const V=e=>{t||d||b&&b.current.contains(e.target)||"none"!==z.current&&(W("none"),P())},T=t=>{"year"===t.target.name&&"Tab"===t.code&&(W("none"),P())},N=t=>{W(t.target.name),t.target.select()},L=t=>{const e=t.target.name,n=m.padValue(t.target.value,!0);switch(e){case"day":k(n);break;case"month":E(n)}const r=p.length&&$.length&&4===F.length,a="day"===e,i=y.clampMonth($);r&&(k(m.padValue(y.clampDay(a?n:p,i,F))),E(m.padValue(i)))},j=t=>{const e=t.target.name,n=t.target.value.replace(/[^0-9]/g,"");switch(e){case"day":k(n),R(n,e);break;case"month":E(n),R(n,e);break;case"year":A(n),R(n,e)}},I=t=>{"Backspace"!==t.code&&"Backspace"!==t.key||("month"===B&&0===$.length&&w.current.focus(),"year"===B&&0===F.length&&_.current.focus())},Y=t=>{if(void 0===t||""===t)k(""),E(""),A("");else{const e=new Date(t);if(!isNaN(e.getTime())){const t=(e.getMonth()+1).toString(),n=e.getFullYear().toString(),r=y.clampDay(e.getDate().toString(),t,n);k(m.padValue(r)),E(m.padValue(t)),A(n)}}},R=(t,e)=>{if(c){const n={day:p,month:$,year:F};n[e]=t;const r=X(n);c(r)}if(s){const n=[..."day"===e?[m.padValue(t)]:[p],..."month"===e?[m.padValue(t)]:[$],..."year"===e?[t]:[F]];s(n)}},P=()=>{if(u){const t={day:O.current,month:C.current,year:M.current},e=X(t);u(e)}if(h){const t=[m.padValue(O.current.toString()),m.padValue(C.current.toString()),M.current];h(t)}},X=t=>{const e=[t.year,t.month,t.day];return t.day.length>=1&&t.month.length>=1&&4===t.year.length?e.join("-"):e.every((t=>""===t))?"":ln};return n(Qe,{ref:b,onClick:()=>{"none"===B&&w.current&&w.current.focus()},disabled:t,$error:o,id:f,"data-testid":g["data-testid"],$readOnly:d,children:e(tn,{$readOnly:d,children:[n(en,{name:"day",maxLength:2,value:p,ref:w,onFocus:N,onBlur:L,onChange:j,disabled:t,type:"text",inputMode:"numeric",pattern:"[0-9]{2}","data-testid":"day-input","aria-label":"day-input",readOnly:d,placeholder:"day"!==B||d?"DD":""}),n(an,{$hide:0===p.length,children:"/"}),n(nn,{name:"month",maxLength:2,value:$,ref:_,onFocus:N,onBlur:L,onChange:j,onKeyDown:I,disabled:t,type:"text",inputMode:"numeric",pattern:"[0-9]{2}","data-testid":"month-input","aria-label":"month-input",readOnly:d,placeholder:"month"!==B||d?"MM":""}),n(an,{$hide:0===$.length,children:"/"}),n(rn,{name:"year",maxLength:4,value:F,ref:x,onFocus:N,onBlur:L,onChange:j,onKeyDown:I,disabled:t,type:"text",inputMode:"numeric",pattern:"[0-9]{4}","data-testid":"year-input","aria-label":"year-input",readOnly:d,placeholder:"year"!==B||d?"YYYY":""})]})})},ln="Invalid date";export{on as DateInput};
|
|
240
225
|
//# sourceMappingURL=index.js.map
|