@lifesg/react-design-system 1.0.0-alpha.2 → 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/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.js +1 -1
- package/animations/index.js.map +1 -1
- 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/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 +1999 -1021
- 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 +121 -136
- 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 +322 -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 +774 -629
- 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 +11 -1
- package/index.js +1997 -1019
- package/index.js.map +1 -1
- package/input/index.js +84 -41
- package/input/index.js.map +1 -1
- package/input/input.d.ts +1 -1
- package/input/input.style.d.ts +9 -0
- package/input/types.d.ts +2 -0
- package/input-group/index.js +392 -312
- 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 +4 -1
- package/input-group/input-group.d.ts +1 -1
- package/input-group/input-group.style.d.ts +1 -2
- package/input-group/types.d.ts +8 -8
- package/input-select/index.js +278 -242
- 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/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 +1 -0
- package/phone-number-input/index.js +850 -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/phone-number-input.styles.d.ts +1 -0
- package/phone-number-input/types.d.ts +42 -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 +21 -12
- 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 +403 -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 +16 -0
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +2 -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
|
@@ -3,9 +3,6 @@ interface FadeProps {
|
|
|
3
3
|
$backgroundColor?: string[];
|
|
4
4
|
$position?: "left" | "right";
|
|
5
5
|
}
|
|
6
|
-
interface CaretProps {
|
|
7
|
-
$color?: string;
|
|
8
|
-
}
|
|
9
6
|
interface ItemStyleProps {
|
|
10
7
|
$styleProps?: string;
|
|
11
8
|
}
|
|
@@ -13,7 +10,10 @@ export declare const Wrapper: import("styled-components").StyledComponent<"div",
|
|
|
13
10
|
export declare const Content: import("styled-components").StyledComponent<"ul", any, {}, never>;
|
|
14
11
|
export declare const Fade: import("styled-components").StyledComponent<"div", any, FadeProps, never>;
|
|
15
12
|
export declare const Item: import("styled-components").StyledComponent<"li", any, ItemStyleProps, never>;
|
|
16
|
-
export declare const Caret: import("styled-components").StyledComponent<
|
|
13
|
+
export declare const Caret: import("styled-components").StyledComponent<{
|
|
14
|
+
(props: import("react").SVGProps<SVGSVGElement>): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
}, any, {}, never>;
|
|
17
17
|
export declare const CurrentLabel: import("styled-components").StyledComponent<"p", any, import("..").TextProps, never>;
|
|
18
18
|
export declare const PreviousLink: import("styled-components").StyledComponent<(props: import("..").TextLinkProps) => JSX.Element, any, {}, never>;
|
|
19
19
|
export {};
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,132 +1,129 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import*as r from"react";import{cloneElement as i,useRef as o,useState as a,isValidElement as l,createRef as c,PureComponent as h,useEffect as f,useLayoutEffect as u,useCallback as d}from"react";import{findDOMNode as s}from"react-dom";import g,{css as p}from"styled-components";var y=function(t,e){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},y(t,e)};var v=function(){return v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},v.apply(this,arguments)};var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var S=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},F="object"==typeof m&&m&&m.Object===Object&&m,b="object"==typeof self&&self&&self.Object===Object&&self,w=F||b||Function("return this")(),H=w,$=function(){return H.Date.now()},B=/\s/;var D=function(t){for(var e=t.length;e--&&B.test(t.charAt(e)););return e},z=/^\s+/;var _=function(t){return t?t.slice(0,D(t)+1).replace(z,""):t},O=w.Symbol,E=O,x=Object.prototype,W=x.hasOwnProperty,j=x.toString,C=E?E.toStringTag:void 0;var k=function(t){var e=W.call(t,C),n=t[C];try{t[C]=void 0;var r=!0}catch(t){}var i=j.call(t);return r&&(e?t[C]=n:delete t[C]),i},R=Object.prototype.toString;var A=k,N=function(t){return R.call(t)},T=O?O.toStringTag:void 0;var P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":T&&T in Object(t)?A(t):N(t)},L=function(t){return null!=t&&"object"==typeof t};var M=_,V=S,I=function(t){return"symbol"==typeof t||L(t)&&"[object Symbol]"==P(t)},X=/^[-+]0x[0-9a-f]+$/i,G=/^0b[01]+$/i,U=/^0o[0-7]+$/i,q=parseInt;var Z=S,J=$,K=function(t){if("number"==typeof t)return t;if(I(t))return NaN;if(V(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=V(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=M(t);var n=G.test(t);return n||U.test(t)?q(t.slice(2),n?2:8):X.test(t)?NaN:+t},Q=Math.max,Y=Math.min;var tt=function(t,e,n){var r,i,o,a,l,c,h=0,f=!1,u=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function s(e){var n=r,o=i;return r=i=void 0,h=e,a=t.apply(o,n)}function g(t){return h=t,l=setTimeout(y,e),f?s(t):a}function p(t){var n=t-c;return void 0===c||n>=e||n<0||u&&t-h>=o}function y(){var t=J();if(p(t))return v(t);l=setTimeout(y,function(t){var n=e-(t-c);return u?Y(n,o-(t-h)):n}(t))}function v(t){return l=void 0,d&&r?s(t):(r=i=void 0,a)}function m(){var t=J(),n=p(t);if(r=arguments,i=this,c=t,n){if(void 0===l)return g(c);if(u)return clearTimeout(l),l=setTimeout(y,e),s(c)}return void 0===l&&(l=setTimeout(y,e)),a}return e=K(e)||0,Z(n)&&(f=!!n.leading,o=(u="maxWait"in n)?Q(K(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==l&&clearTimeout(l),h=0,r=c=i=l=void 0},m.flush=function(){return void 0===l?a:v(J())},m},et=tt,nt=S;var rt=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return nt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),et(t,e,{leading:r,maxWait:e,trailing:i})},it=function(t,e,n,r){switch(e){case"debounce":return tt(t,n,r);case"throttle":return rt(t,n,r);default:return t}},ot=function(t){return"function"==typeof t},at=function(){return"undefined"==typeof window},lt=function(t){return t instanceof Element||t instanceof HTMLDocument},ct=function(t,e,n,r){return function(i){var o=i.width,a=i.height;e((function(e){return e.width===o&&e.height===a||e.width===o&&!r||e.height===a&&!n?e:(t&&ot(t)&&t(o,a),{width:o,height:a})}))}};!function(t){function e(e){var n=t.call(this,e)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var t=n.props,e=t.targetRef,r=t.observerOptions;if(!at()){e&&e.current&&(n.targetRef.current=e.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(at())return null;if(e)return document.querySelector(e);if(r&<(r))return r;if(n.targetRef&<(n.targetRef.current))return n.targetRef.current;var i=s(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(t){var e=n.props,r=e.handleWidth,i=void 0===r||r,o=e.handleHeight,a=void 0===o||o,l=e.onResize;if(i||a){var c=ct(l,n.setState.bind(n),i,a);t.forEach((function(t){var e=t&&t.contentRect||{},r=e.width,i=e.height;!n.skipOnMount&&!at()&&c({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return ot(e)?"renderProp":ot(r)?"childFunction":l(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=e.skipOnMount,i=e.refreshMode,o=e.refreshRate,a=void 0===o?1e3:o,h=e.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=c(),n.observableElement=null,at()||(n.resizeHandler=it(n.createResizeHandler,i,a,h),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){at()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,o=e.children,a=e.nodeType,l=void 0===a?"div":a,c=this.state,h={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(h);case"childFunction":return(t=o)(h);case"child":if((t=o).type&&"string"==typeof t.type){var f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(h,["targetRef"]);return i(t,f)}return i(t,h);case"childArray":return(t=o).map((function(t){return!!t&&i(t,h)}));default:return r.createElement(l,null)}}}(h);var ht=at()?f:u;const ft={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840};var ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},dt=Array.isArray,st="object"==typeof ut&&ut&&ut.Object===Object&&ut,gt="object"==typeof self&&self&&self.Object===Object&&self,pt=st||gt||Function("return this")(),yt=pt.Symbol,vt=yt,mt=Object.prototype,St=mt.hasOwnProperty,Ft=mt.toString,bt=vt?vt.toStringTag:void 0;var wt=function(t){var e=St.call(t,bt),n=t[bt];try{t[bt]=void 0;var r=!0}catch(t){}var i=Ft.call(t);return r&&(e?t[bt]=n:delete t[bt]),i},Ht=Object.prototype.toString;var $t=wt,Bt=function(t){return Ht.call(t)},Dt=yt?yt.toStringTag:void 0;var zt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Dt&&Dt in Object(t)?$t(t):Bt(t)};var _t=zt,Ot=function(t){return null!=t&&"object"==typeof t};var Et=function(t){return"symbol"==typeof t||Ot(t)&&"[object Symbol]"==_t(t)},xt=dt,Wt=Et,jt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/;var kt=function(t,e){if(xt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Wt(t))||(Ct.test(t)||!jt.test(t)||null!=e&&t in Object(e))};var Rt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},At=zt,Nt=Rt;var Tt,Pt=function(t){if(!Nt(t))return!1;var e=At(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Lt=pt["__core-js_shared__"],Mt=(Tt=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+Tt:"";var Vt=function(t){return!!Mt&&Mt in t},It=Function.prototype.toString;var Xt=Pt,Gt=Vt,Ut=Rt,qt=function(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Zt=/^\[object .+?Constructor\]$/,Jt=Function.prototype,Kt=Object.prototype,Qt=Jt.toString,Yt=Kt.hasOwnProperty,te=RegExp("^"+Qt.call(Yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ee=function(t){return!(!Ut(t)||Gt(t))&&(Xt(t)?te:Zt).test(qt(t))},ne=function(t,e){return null==t?void 0:t[e]};var re=function(t,e){var n=ne(t,e);return ee(n)?n:void 0},ie=re(Object,"create"),oe=ie;var ae=function(){this.__data__=oe?oe(null):{},this.size=0};var le=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ce=ie,he=Object.prototype.hasOwnProperty;var fe=function(t){var e=this.__data__;if(ce){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return he.call(e,t)?e[t]:void 0},ue=ie,de=Object.prototype.hasOwnProperty;var se=ie;var ge=ae,pe=le,ye=fe,ve=function(t){var e=this.__data__;return ue?void 0!==e[t]:de.call(e,t)},me=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?"__lodash_hash_undefined__":e,this};function Se(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])}}Se.prototype.clear=ge,Se.prototype.delete=pe,Se.prototype.get=ye,Se.prototype.has=ve,Se.prototype.set=me;var Fe=Se;var be=function(){this.__data__=[],this.size=0};var we=function(t,e){return t===e||t!=t&&e!=e};var He=function(t,e){for(var n=t.length;n--;)if(we(t[n][0],e))return n;return-1},$e=He,Be=Array.prototype.splice;var De=He;var ze=He;var _e=He;var Oe=be,Ee=function(t){var e=this.__data__,n=$e(e,t);return!(n<0)&&(n==e.length-1?e.pop():Be.call(e,n,1),--this.size,!0)},xe=function(t){var e=this.__data__,n=De(e,t);return n<0?void 0:e[n][1]},We=function(t){return ze(this.__data__,t)>-1},je=function(t,e){var n=this.__data__,r=_e(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Ce(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])}}Ce.prototype.clear=Oe,Ce.prototype.delete=Ee,Ce.prototype.get=xe,Ce.prototype.has=We,Ce.prototype.set=je;var ke=Ce,Re=re(pt,"Map"),Ae=Fe,Ne=ke,Te=Re;var Pe=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Le=function(t,e){var n=t.__data__;return Pe(e)?n["string"==typeof e?"string":"hash"]:n.map},Me=Le;var Ve=Le;var Ie=Le;var Xe=Le;var Ge=function(){this.size=0,this.__data__={hash:new Ae,map:new(Te||Ne),string:new Ae}},Ue=function(t){var e=Me(this,t).delete(t);return this.size-=e?1:0,e},qe=function(t){return Ve(this,t).get(t)},Ze=function(t){return Ie(this,t).has(t)},Je=function(t,e){var n=Xe(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Ke(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])}}Ke.prototype.clear=Ge,Ke.prototype.delete=Ue,Ke.prototype.get=qe,Ke.prototype.has=Ze,Ke.prototype.set=Je;var Qe=Ke;function Ye(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ye.Cache||Qe),n}Ye.Cache=Qe;var tn=Ye;var en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nn=/\\(\\)?/g,rn=function(t){var e=tn(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(en,(function(t,n,r,i){e.push(r?i.replace(nn,"$1"):n||t)})),e}));var on=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},an=dt,ln=Et,cn=yt?yt.prototype:void 0,hn=cn?cn.toString:void 0;var fn=function t(e){if("string"==typeof e)return e;if(an(e))return on(e,t)+"";if(ln(e))return hn?hn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},un=fn;var dn=dt,sn=kt,gn=rn,pn=function(t){return null==t?"":un(t)};var yn=Et;var vn=function(t,e){return dn(t)?t:sn(t,e)?[t]:gn(pn(t))},mn=function(t){if("string"==typeof t||yn(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Sn=function(t,e){for(var n=0,r=(e=vn(e,t)).length;null!=t&&n<r;)t=t[mn(e[n++])];return n&&n==r?t:void 0};var Fn=function(t,e,n){var r=null==t?void 0:Sn(t,e);return void 0===r?n:r};const bn=(t,e,n)=>e?Fn(n,e)||Fn(t,e):n||t,wn=(t,e)=>{const n=e||t.defaultValue;return Fn(t.collections,n)};var Hn;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(Hn||(Hn={}));const $n={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"},Bn=t=>e=>{const n=e.theme,r=wn($n,n[Hn.colorScheme]);return n.options&&n.options.color?bn(r,t,n.options.color):bn(r,t)},Dn={Brand:{1:Bn("Brand.1"),2:Bn("Brand.2"),3:Bn("Brand.3"),4:Bn("Brand.4"),5:Bn("Brand.5"),6:Bn("Brand.6")},Primary:Bn("Primary"),PrimaryDark:Bn("PrimaryDark"),Secondary:Bn("Secondary"),Accent:{Light:{1:Bn("Accent.Light.1"),2:Bn("Accent.Light.2"),3:Bn("Accent.Light.3"),4:Bn("Accent.Light.4"),5:Bn("Accent.Light.5"),6:Bn("Accent.Light.6")},Dark:{1:Bn("Accent.Dark.1"),2:Bn("Accent.Dark.2"),3:Bn("Accent.Dark.3")}},Neutral:{1:Bn("Neutral.1"),2:Bn("Neutral.2"),3:Bn("Neutral.3"),4:Bn("Neutral.4"),5:Bn("Neutral.5"),6:Bn("Neutral.6"),7:Bn("Neutral.7"),8:Bn("Neutral.8")},Validation:{Green:{Text:Bn("Validation.Green.Text"),Icon:Bn("Validation.Green.Icon"),Border:Bn("Validation.Green.Border"),Background:Bn("Validation.Green.Background")},Orange:{Text:Bn("Validation.Orange.Text"),Icon:Bn("Validation.Orange.Icon"),Border:Bn("Validation.Orange.Border"),Background:Bn("Validation.Orange.Background"),Badge:Bn("Validation.Orange.Badge")},Red:{Text:Bn("Validation.Red.Text"),Icon:Bn("Validation.Red.Icon"),Border:Bn("Validation.Red.Border"),Background:Bn("Validation.Red.Background")}}},zn=g.svg`
|
|
2
|
-
|
|
3
|
-
width: 1rem;
|
|
4
|
-
vertical-align: text-top;
|
|
5
|
-
|
|
6
|
-
#path {
|
|
7
|
-
fill: ${Dn.Neutral[8]};
|
|
8
|
-
}
|
|
9
|
-
`,_n=e=>t(zn,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...e,children:t("g",{fill:"none",fillRule:"evenodd",children:t("g",{id:"path",fillRule:"nonzero",children:t("g",{children:t("g",{children:t("g",{children:t("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)"})})})})})})}),On=e=>t(zn,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...e,children:t("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"})}),En=e=>t(zn,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...e,children:t("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"})}),xn=e=>t(zn,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...e,children:t("g",{id:"search",children:t("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"})})}),Wn=({type:e,...n})=>{switch(e){case"arrow-right":return t(_n,{...n});case"info":return t(On,{...n});case"search":return t(xn,{...n});case"play-alt":return t(En,{...n});default:{const r=`sgds-icon sgds-icon-${e}`,i=n.className?`${r} ${n.className}`:r;return t(jn,{...n,className:i})}}},jn=g.span`
|
|
10
|
-
font-size: 1rem;
|
|
11
|
-
`,Cn=t=>Object.keys(ft).reduce(((e,n)=>{const r=ft[n];return e[n]=`@media screen and (${t}: ${r}px)`,e}),{}),kn=Cn("max-width"),Rn=(Cn("min-width"),{Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"}),An={collections:{base:{D1:{fontFamily:Rn.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Rn.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Rn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Rn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Rn.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Rn.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Rn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Rn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Rn.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Rn.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Rn.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Rn.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Rn.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Rn.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Nn=t=>e=>{const n=e.theme,r=wn(An,n[Hn.textStyleScheme]);return n.options&&n.options.textStyle?bn(r,t,n.options.textStyle):bn(r,t)},Tn={D1:{fontFamily:Nn("D1.fontFamily"),fontSize:Nn("D1.fontSize"),fontWeight:Nn("D1.fontWeight"),lineHeight:Nn("D1.lineHeight"),letterSpacing:Nn("D1.letterSpacing")},D2:{fontFamily:Nn("D2.fontFamily"),fontSize:Nn("D2.fontSize"),fontWeight:Nn("D2.fontWeight"),lineHeight:Nn("D2.lineHeight"),letterSpacing:Nn("D2.letterSpacing")},D3:{fontFamily:Nn("D3.fontFamily"),fontSize:Nn("D3.fontSize"),fontWeight:Nn("D3.fontWeight"),lineHeight:Nn("D3.lineHeight"),letterSpacing:Nn("D3.letterSpacing")},D4:{fontFamily:Nn("D4.fontFamily"),fontSize:Nn("D4.fontSize"),fontWeight:Nn("D4.fontWeight"),lineHeight:Nn("D4.lineHeight"),letterSpacing:Nn("D4.letterSpacing")},DBody:{fontFamily:Nn("DBody.fontFamily"),fontSize:Nn("DBody.fontSize"),fontWeight:Nn("DBody.fontWeight"),lineHeight:Nn("DBody.lineHeight"),letterSpacing:Nn("DBody.letterSpacing")},H1:{fontFamily:Nn("H1.fontFamily"),fontSize:Nn("H1.fontSize"),fontWeight:Nn("H1.fontWeight"),lineHeight:Nn("H1.lineHeight"),letterSpacing:Nn("H1.letterSpacing")},H2:{fontFamily:Nn("H2.fontFamily"),fontSize:Nn("H2.fontSize"),fontWeight:Nn("H2.fontWeight"),lineHeight:Nn("H2.lineHeight"),letterSpacing:Nn("H2.letterSpacing")},H3:{fontFamily:Nn("H3.fontFamily"),fontSize:Nn("H3.fontSize"),fontWeight:Nn("H3.fontWeight"),lineHeight:Nn("H3.lineHeight"),letterSpacing:Nn("H3.letterSpacing")},H4:{fontFamily:Nn("H4.fontFamily"),fontSize:Nn("H4.fontSize"),fontWeight:Nn("H4.fontWeight"),lineHeight:Nn("H4.lineHeight"),letterSpacing:Nn("H4.letterSpacing")},H5:{fontFamily:Nn("H5.fontFamily"),fontSize:Nn("H5.fontSize"),fontWeight:Nn("H5.fontWeight"),lineHeight:Nn("H5.lineHeight"),letterSpacing:Nn("H5.letterSpacing")},H6:{fontFamily:Nn("H6.fontFamily"),fontSize:Nn("H6.fontSize"),fontWeight:Nn("H6.fontWeight"),lineHeight:Nn("H6.lineHeight"),letterSpacing:Nn("H6.letterSpacing")},Body:{fontFamily:Nn("Body.fontFamily"),fontSize:Nn("Body.fontSize"),fontWeight:Nn("Body.fontWeight"),lineHeight:Nn("Body.lineHeight"),letterSpacing:Nn("Body.letterSpacing")},BodySmall:{fontFamily:Nn("BodySmall.fontFamily"),fontSize:Nn("BodySmall.fontSize"),fontWeight:Nn("BodySmall.fontWeight"),lineHeight:Nn("BodySmall.lineHeight"),letterSpacing:Nn("BodySmall.letterSpacing")},XSmall:{fontFamily:Nn("XSmall.fontFamily"),fontSize:Nn("XSmall.fontSize"),fontWeight:Nn("XSmall.fontWeight"),lineHeight:Nn("XSmall.lineHeight"),letterSpacing:Nn("XSmall.letterSpacing")}},Pn=t=>{switch(t){case 700:case"bold":return Rn.Bold;case 600:case"semibold":return Rn.Semibold;case 300:case"light":return Rn.Light;case 400:case"regular":return Rn.Regular;default:return""}},Ln=(t,e)=>n=>{const r=Tn[t].fontFamily(n),i=Tn[t].fontWeight(n);return Object.values(Rn).includes(r)?p`
|
|
12
|
-
font-family: ${Pn(e)||Pn(i)||r};
|
|
1
|
+
import t,{jsxs as e,jsx as n,Fragment as r}from"react/jsx-runtime";import*as i from"react";import{cloneElement as o,useRef as a,useState as l,isValidElement as c,createRef as f,PureComponent as h,useEffect as u,useLayoutEffect as s,useCallback as d}from"react";import{findDOMNode as g}from"react-dom";import p,{css as y}from"styled-components";var v=function(t,e){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},v(t,e)};var m=function(){return m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},m.apply(this,arguments)};var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var b=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},F="object"==typeof S&&S&&S.Object===Object&&S,w="object"==typeof self&&self&&self.Object===Object&&self,H=F||w||Function("return this")(),$=H,B=function(){return $.Date.now()},D=/\s/;var _=function(t){for(var e=t.length;e--&&D.test(t.charAt(e)););return e},O=/^\s+/;var z=function(t){return t?t.slice(0,_(t)+1).replace(O,""):t},C=H.Symbol,E=C,j=Object.prototype,x=j.hasOwnProperty,W=j.toString,k=E?E.toStringTag:void 0;var A=function(t){var e=x.call(t,k),n=t[k];try{t[k]=void 0;var r=!0}catch(t){}var i=W.call(t);return r&&(e?t[k]=n:delete t[k]),i},R=Object.prototype.toString;var T=A,P=function(t){return R.call(t)},L=C?C.toStringTag:void 0;var V=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":L&&L in Object(t)?T(t):P(t)},M=function(t){return null!=t&&"object"==typeof t};var I=z,N=b,X=function(t){return"symbol"==typeof t||M(t)&&"[object Symbol]"==V(t)},G=/^[-+]0x[0-9a-f]+$/i,U=/^0b[01]+$/i,Z=/^0o[0-7]+$/i,q=parseInt;var J=b,K=B,Q=function(t){if("number"==typeof t)return t;if(X(t))return NaN;if(N(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=N(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=U.test(t);return n||Z.test(t)?q(t.slice(2),n?2:8):G.test(t)?NaN:+t},Y=Math.max,tt=Math.min;var et=function(t,e,n){var r,i,o,a,l,c,f=0,h=!1,u=!1,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,f=e,a=t.apply(o,n)}function g(t){return f=t,l=setTimeout(y,e),h?d(t):a}function p(t){var n=t-c;return void 0===c||n>=e||n<0||u&&t-f>=o}function y(){var t=K();if(p(t))return v(t);l=setTimeout(y,function(t){var n=e-(t-c);return u?tt(n,o-(t-f)):n}(t))}function v(t){return l=void 0,s&&r?d(t):(r=i=void 0,a)}function m(){var t=K(),n=p(t);if(r=arguments,i=this,c=t,n){if(void 0===l)return g(c);if(u)return clearTimeout(l),l=setTimeout(y,e),d(c)}return void 0===l&&(l=setTimeout(y,e)),a}return e=Q(e)||0,J(n)&&(h=!!n.leading,o=(u="maxWait"in n)?Y(Q(n.maxWait)||0,e):o,s="trailing"in n?!!n.trailing:s),m.cancel=function(){void 0!==l&&clearTimeout(l),f=0,r=c=i=l=void 0},m.flush=function(){return void 0===l?a:v(K())},m},nt=et,rt=b;var it=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return rt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),nt(t,e,{leading:r,maxWait:e,trailing:i})},ot=function(t,e,n,r){switch(e){case"debounce":return et(t,n,r);case"throttle":return it(t,n,r);default:return t}},at=function(t){return"function"==typeof t},lt=function(){return"undefined"==typeof window},ct=function(t){return t instanceof Element||t instanceof HTMLDocument},ft=function(t,e,n,r){return function(i){var o=i.width,a=i.height;e((function(e){return e.width===o&&e.height===a||e.width===o&&!r||e.height===a&&!n?e:(t&&at(t)&&t(o,a),{width:o,height:a})}))}};!function(t){function e(e){var n=t.call(this,e)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var t=n.props,e=t.targetRef,r=t.observerOptions;if(!lt()){e&&e.current&&(n.targetRef.current=e.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(lt())return null;if(e)return document.querySelector(e);if(r&&ct(r))return r;if(n.targetRef&&ct(n.targetRef.current))return n.targetRef.current;var i=g(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(t){var e=n.props,r=e.handleWidth,i=void 0===r||r,o=e.handleHeight,a=void 0===o||o,l=e.onResize;if(i||a){var c=ft(l,n.setState.bind(n),i,a);t.forEach((function(t){var e=t&&t.contentRect||{},r=e.width,i=e.height;!n.skipOnMount&&!lt()&&c({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return at(e)?"renderProp":at(r)?"childFunction":c(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=e.skipOnMount,i=e.refreshMode,o=e.refreshRate,a=void 0===o?1e3:o,l=e.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=f(),n.observableElement=null,lt()||(n.resizeHandler=ot(n.createResizeHandler,i,a,l),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){lt()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,r=e.children,a=e.nodeType,l=void 0===a?"div":a,c=this.state,f={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(f);case"childFunction":return(t=r)(f);case"child":if((t=r).type&&"string"==typeof t.type){var h=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(f,["targetRef"]);return o(t,h)}return o(t,f);case"childArray":return(t=r).map((function(t){return!!t&&o(t,f)}));default:return i.createElement(l,null)}}}(h);var ht=lt()?u:s;const ut={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840};var st,dt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},gt={};Object.defineProperty(gt,"__esModule",{value:!0});var pt=t;const yt=t=>pt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:pt.jsx("path",{d:"M5.979 17.562C5.757 17.34 5.646 17.0833 5.646 16.792C5.646 16.5 5.757 16.243 5.979 16.021L12 10L5.958 3.958C5.75 3.75 5.646 3.5 5.646 3.208C5.646 2.91667 5.757 2.66 5.979 2.438C6.18766 2.22933 6.44133 2.125 6.74 2.125C7.03866 2.125 7.292 2.22933 7.5 2.438L14.438 9.375C14.5347 9.47233 14.604 9.573 14.646 9.677C14.6873 9.781 14.708 9.88867 14.708 10C14.708 10.1113 14.6873 10.219 14.646 10.323C14.604 10.427 14.5347 10.5277 14.438 10.625L7.479 17.583C7.257 17.8057 7.00366 17.91 6.719 17.896C6.43433 17.882 6.18766 17.7707 5.979 17.562Z",fill:"currentColor"})});yt.displayName="ChevronRightIcon",st=gt.ChevronRightIcon=yt;var vt=Array.isArray,mt="object"==typeof dt&&dt&&dt.Object===Object&&dt,St="object"==typeof self&&self&&self.Object===Object&&self,bt=mt||St||Function("return this")(),Ft=bt.Symbol,wt=Ft,Ht=Object.prototype,$t=Ht.hasOwnProperty,Bt=Ht.toString,Dt=wt?wt.toStringTag:void 0;var _t=function(t){var e=$t.call(t,Dt),n=t[Dt];try{t[Dt]=void 0;var r=!0}catch(t){}var i=Bt.call(t);return r&&(e?t[Dt]=n:delete t[Dt]),i},Ot=Object.prototype.toString;var zt=_t,Ct=function(t){return Ot.call(t)},Et=Ft?Ft.toStringTag:void 0;var jt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Et&&Et in Object(t)?zt(t):Ct(t)};var xt=jt,Wt=function(t){return null!=t&&"object"==typeof t};var kt=function(t){return"symbol"==typeof t||Wt(t)&&"[object Symbol]"==xt(t)},At=vt,Rt=kt,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/;var Lt=function(t,e){if(At(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Rt(t))||(Pt.test(t)||!Tt.test(t)||null!=e&&t in Object(e))};var Vt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Mt=jt,It=Vt;var Nt,Xt=function(t){if(!It(t))return!1;var e=Mt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Gt=bt["__core-js_shared__"],Ut=(Nt=/[^.]+$/.exec(Gt&&Gt.keys&&Gt.keys.IE_PROTO||""))?"Symbol(src)_1."+Nt:"";var Zt=function(t){return!!Ut&&Ut in t},qt=Function.prototype.toString;var Jt=Xt,Kt=Zt,Qt=Vt,Yt=function(t){if(null!=t){try{return qt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},te=/^\[object .+?Constructor\]$/,ee=Function.prototype,ne=Object.prototype,re=ee.toString,ie=ne.hasOwnProperty,oe=RegExp("^"+re.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ae=function(t){return!(!Qt(t)||Kt(t))&&(Jt(t)?oe:te).test(Yt(t))},le=function(t,e){return null==t?void 0:t[e]};var ce=function(t,e){var n=le(t,e);return ae(n)?n:void 0},fe=ce(Object,"create"),he=fe;var ue=function(){this.__data__=he?he(null):{},this.size=0};var se=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},de=fe,ge=Object.prototype.hasOwnProperty;var pe=function(t){var e=this.__data__;if(de){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ge.call(e,t)?e[t]:void 0},ye=fe,ve=Object.prototype.hasOwnProperty;var me=fe;var Se=ue,be=se,Fe=pe,we=function(t){var e=this.__data__;return ye?void 0!==e[t]:ve.call(e,t)},He=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=me&&void 0===e?"__lodash_hash_undefined__":e,this};function $e(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])}}$e.prototype.clear=Se,$e.prototype.delete=be,$e.prototype.get=Fe,$e.prototype.has=we,$e.prototype.set=He;var Be=$e;var De=function(){this.__data__=[],this.size=0};var _e=function(t,e){return t===e||t!=t&&e!=e};var Oe=function(t,e){for(var n=t.length;n--;)if(_e(t[n][0],e))return n;return-1},ze=Oe,Ce=Array.prototype.splice;var Ee=Oe;var je=Oe;var xe=Oe;var We=De,ke=function(t){var e=this.__data__,n=ze(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ce.call(e,n,1),--this.size,!0)},Ae=function(t){var e=this.__data__,n=Ee(e,t);return n<0?void 0:e[n][1]},Re=function(t){return je(this.__data__,t)>-1},Te=function(t,e){var n=this.__data__,r=xe(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Pe(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])}}Pe.prototype.clear=We,Pe.prototype.delete=ke,Pe.prototype.get=Ae,Pe.prototype.has=Re,Pe.prototype.set=Te;var Le=Pe,Ve=ce(bt,"Map"),Me=Be,Ie=Le,Ne=Ve;var Xe=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ge=function(t,e){var n=t.__data__;return Xe(e)?n["string"==typeof e?"string":"hash"]:n.map},Ue=Ge;var Ze=Ge;var qe=Ge;var Je=Ge;var Ke=function(){this.size=0,this.__data__={hash:new Me,map:new(Ne||Ie),string:new Me}},Qe=function(t){var e=Ue(this,t).delete(t);return this.size-=e?1:0,e},Ye=function(t){return Ze(this,t).get(t)},tn=function(t){return qe(this,t).has(t)},en=function(t,e){var n=Je(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function nn(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])}}nn.prototype.clear=Ke,nn.prototype.delete=Qe,nn.prototype.get=Ye,nn.prototype.has=tn,nn.prototype.set=en;var rn=nn;function on(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(on.Cache||rn),n}on.Cache=rn;var an=on;var ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cn=/\\(\\)?/g,fn=function(t){var e=an(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(ln,(function(t,n,r,i){e.push(r?i.replace(cn,"$1"):n||t)})),e}));var hn=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},un=vt,sn=kt,dn=Ft?Ft.prototype:void 0,gn=dn?dn.toString:void 0;var pn=function t(e){if("string"==typeof e)return e;if(un(e))return hn(e,t)+"";if(sn(e))return gn?gn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},yn=pn;var vn=vt,mn=Lt,Sn=fn,bn=function(t){return null==t?"":yn(t)};var Fn=kt;var wn=function(t,e){return vn(t)?t:mn(t,e)?[t]:Sn(bn(t))},Hn=function(t){if("string"==typeof t||Fn(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var $n=function(t,e){for(var n=0,r=(e=wn(e,t)).length;null!=t&&n<r;)t=t[Hn(e[n++])];return n&&n==r?t:void 0};var Bn=function(t,e,n){var r=null==t?void 0:$n(t,e);return void 0===r?n:r};const Dn=(t,e,n)=>e?Bn(n,e)||Bn(t,e):n||t,_n=(t,e)=>{const n=e||t.defaultValue;return Bn(t.collections,n)};var On;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme"}(On||(On={}));const zn={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"},Cn=t=>e=>{const n=e.theme,r=_n(zn,n[On.colorScheme]);return n.options&&n.options.color?Dn(r,t,n.options.color):Dn(r,t)},En=(Cn("Brand.1"),Cn("Brand.2"),Cn("Brand.3"),Cn("Brand.4"),Cn("Brand.5"),Cn("Brand.6"),Cn("Primary")),jn=(Cn("PrimaryDark"),Cn("Secondary")),xn=(Cn("Accent.Light.1"),Cn("Accent.Light.2"),Cn("Accent.Light.3"),Cn("Accent.Light.4"),Cn("Accent.Light.5"),Cn("Accent.Light.6"),Cn("Accent.Dark.1"),Cn("Accent.Dark.2"),Cn("Accent.Dark.3"),{1:Cn("Neutral.1"),2:Cn("Neutral.2"),3:Cn("Neutral.3"),4:Cn("Neutral.4"),5:Cn("Neutral.5"),6:Cn("Neutral.6"),7:Cn("Neutral.7"),8:Cn("Neutral.8")}),Wn=(Cn("Validation.Green.Text"),Cn("Validation.Green.Icon"),Cn("Validation.Green.Border"),Cn("Validation.Green.Background"),Cn("Validation.Orange.Text"),Cn("Validation.Orange.Icon"),Cn("Validation.Orange.Border"),Cn("Validation.Orange.Background"),Cn("Validation.Orange.Badge"),Cn("Validation.Red.Text"),Cn("Validation.Red.Icon"),Cn("Validation.Red.Border"),Cn("Validation.Red.Background"),Cn("Shadow.Accent"),Cn("Shadow.Red"),t=>Object.keys(ut).reduce(((e,n)=>{const r=ut[n];return e[n]=`@media screen and (${t}: ${r}px)`,e}),{})),kn=Wn("max-width");Wn("min-width");var An,Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});var Tn=t;const Pn=t=>Tn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:Tn.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"})});Pn.displayName="ExternalIcon",An=Rn.ExternalIcon=Pn;const Ln={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Vn={collections:{base:{D1:{fontFamily:Ln.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Ln.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Ln.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Ln.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Ln.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Ln.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Ln.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Ln.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Ln.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Ln.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Ln.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Ln.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Ln.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Ln.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Mn=t=>e=>{const n=e.theme,r=_n(Vn,n[On.textStyleScheme]);return n.options&&n.options.textStyle?Dn(r,t,n.options.textStyle):Dn(r,t)},In={D1:{fontFamily:Mn("D1.fontFamily"),fontSize:Mn("D1.fontSize"),fontWeight:Mn("D1.fontWeight"),lineHeight:Mn("D1.lineHeight"),letterSpacing:Mn("D1.letterSpacing")},D2:{fontFamily:Mn("D2.fontFamily"),fontSize:Mn("D2.fontSize"),fontWeight:Mn("D2.fontWeight"),lineHeight:Mn("D2.lineHeight"),letterSpacing:Mn("D2.letterSpacing")},D3:{fontFamily:Mn("D3.fontFamily"),fontSize:Mn("D3.fontSize"),fontWeight:Mn("D3.fontWeight"),lineHeight:Mn("D3.lineHeight"),letterSpacing:Mn("D3.letterSpacing")},D4:{fontFamily:Mn("D4.fontFamily"),fontSize:Mn("D4.fontSize"),fontWeight:Mn("D4.fontWeight"),lineHeight:Mn("D4.lineHeight"),letterSpacing:Mn("D4.letterSpacing")},DBody:{fontFamily:Mn("DBody.fontFamily"),fontSize:Mn("DBody.fontSize"),fontWeight:Mn("DBody.fontWeight"),lineHeight:Mn("DBody.lineHeight"),letterSpacing:Mn("DBody.letterSpacing")},H1:{fontFamily:Mn("H1.fontFamily"),fontSize:Mn("H1.fontSize"),fontWeight:Mn("H1.fontWeight"),lineHeight:Mn("H1.lineHeight"),letterSpacing:Mn("H1.letterSpacing")},H2:{fontFamily:Mn("H2.fontFamily"),fontSize:Mn("H2.fontSize"),fontWeight:Mn("H2.fontWeight"),lineHeight:Mn("H2.lineHeight"),letterSpacing:Mn("H2.letterSpacing")},H3:{fontFamily:Mn("H3.fontFamily"),fontSize:Mn("H3.fontSize"),fontWeight:Mn("H3.fontWeight"),lineHeight:Mn("H3.lineHeight"),letterSpacing:Mn("H3.letterSpacing")},H4:{fontFamily:Mn("H4.fontFamily"),fontSize:Mn("H4.fontSize"),fontWeight:Mn("H4.fontWeight"),lineHeight:Mn("H4.lineHeight"),letterSpacing:Mn("H4.letterSpacing")},H5:{fontFamily:Mn("H5.fontFamily"),fontSize:Mn("H5.fontSize"),fontWeight:Mn("H5.fontWeight"),lineHeight:Mn("H5.lineHeight"),letterSpacing:Mn("H5.letterSpacing")},H6:{fontFamily:Mn("H6.fontFamily"),fontSize:Mn("H6.fontSize"),fontWeight:Mn("H6.fontWeight"),lineHeight:Mn("H6.lineHeight"),letterSpacing:Mn("H6.letterSpacing")},Body:{fontFamily:Mn("Body.fontFamily"),fontSize:Mn("Body.fontSize"),fontWeight:Mn("Body.fontWeight"),lineHeight:Mn("Body.lineHeight"),letterSpacing:Mn("Body.letterSpacing")},BodySmall:{fontFamily:Mn("BodySmall.fontFamily"),fontSize:Mn("BodySmall.fontSize"),fontWeight:Mn("BodySmall.fontWeight"),lineHeight:Mn("BodySmall.lineHeight"),letterSpacing:Mn("BodySmall.letterSpacing")},XSmall:{fontFamily:Mn("XSmall.fontFamily"),fontSize:Mn("XSmall.fontSize"),fontWeight:Mn("XSmall.fontWeight"),lineHeight:Mn("XSmall.lineHeight"),letterSpacing:Mn("XSmall.letterSpacing")}},Nn=t=>{switch(t){case 700:case"bold":return Ln.Bold;case 600:case"semibold":return Ln.Semibold;case 300:case"light":return Ln.Light;case 400:case"regular":return Ln.Regular;default:return""}},Xn=(t,e)=>n=>{const r=In[t].fontFamily(n),i=In[t].fontWeight(n);return Object.values(Ln).includes(r)?y`
|
|
2
|
+
font-family: ${Nn(e)||Nn(i)||r};
|
|
13
3
|
font-weight: normal !important;
|
|
14
|
-
`:
|
|
4
|
+
`:y`
|
|
15
5
|
font-family: ${r};
|
|
16
|
-
font-weight: ${(
|
|
17
|
-
`},
|
|
18
|
-
${
|
|
6
|
+
font-weight: ${(Gn(e)||i)??"normal"};
|
|
7
|
+
`},Gn=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""}},Un=(t,e,n=!1)=>r=>{const i=In[t],o=i.fontSize(r);return y`
|
|
8
|
+
${Xn(t,e)}
|
|
19
9
|
font-size: ${o}rem !important;
|
|
20
10
|
line-height: ${i.lineHeight}rem !important;
|
|
21
11
|
letter-spacing: ${i.letterSpacing(r)||0}rem !important;
|
|
22
|
-
${
|
|
12
|
+
${y`
|
|
23
13
|
margin-bottom: ${o*(n?1.05:0)}rem;
|
|
24
14
|
`}
|
|
25
|
-
`},
|
|
15
|
+
`},Zn=(t=!1,e=!1)=>e?y`
|
|
26
16
|
display: block;
|
|
27
|
-
`:t?
|
|
17
|
+
`:t?y`
|
|
28
18
|
display: inline;
|
|
29
|
-
`:
|
|
19
|
+
`:y`
|
|
30
20
|
display: block;
|
|
31
|
-
`;var
|
|
32
|
-
${t=>
|
|
33
|
-
${
|
|
34
|
-
color: ${
|
|
35
|
-
${
|
|
21
|
+
`;var qn;!function(t){t.D1=p.h1`
|
|
22
|
+
${t=>y`
|
|
23
|
+
${Un("D1",t.weight,t.paragraph)}
|
|
24
|
+
color: ${xn[1]};
|
|
25
|
+
${Zn(t.inline,t.paragraph)}
|
|
36
26
|
`}
|
|
37
|
-
`,t.D2=
|
|
38
|
-
${t=>
|
|
39
|
-
${
|
|
40
|
-
color: ${
|
|
41
|
-
${
|
|
27
|
+
`,t.D2=p.h1`
|
|
28
|
+
${t=>y`
|
|
29
|
+
${Un("D2",t.weight,t.paragraph)}
|
|
30
|
+
color: ${xn[1]};
|
|
31
|
+
${Zn(t.inline,t.paragraph)}
|
|
42
32
|
`}
|
|
43
|
-
`,t.D3=
|
|
44
|
-
${t=>
|
|
45
|
-
${
|
|
46
|
-
color: ${
|
|
47
|
-
${
|
|
33
|
+
`,t.D3=p.h1`
|
|
34
|
+
${t=>y`
|
|
35
|
+
${Un("D3",t.weight,t.paragraph)}
|
|
36
|
+
color: ${xn[1]};
|
|
37
|
+
${Zn(t.inline,t.paragraph)}
|
|
48
38
|
`}
|
|
49
|
-
`,t.D4=
|
|
50
|
-
${t=>
|
|
51
|
-
${
|
|
52
|
-
color: ${
|
|
53
|
-
${
|
|
39
|
+
`,t.D4=p.h1`
|
|
40
|
+
${t=>y`
|
|
41
|
+
${Un("D4",t.weight,t.paragraph)}
|
|
42
|
+
color: ${xn[1]};
|
|
43
|
+
${Zn(t.inline,t.paragraph)}
|
|
54
44
|
`}
|
|
55
|
-
`,t.DBody=
|
|
56
|
-
${t=>
|
|
57
|
-
${
|
|
58
|
-
color: ${
|
|
59
|
-
${
|
|
45
|
+
`,t.DBody=p.h1`
|
|
46
|
+
${t=>y`
|
|
47
|
+
${Un("DBody",t.weight,t.paragraph)}
|
|
48
|
+
color: ${xn[1]};
|
|
49
|
+
${Zn(t.inline,t.paragraph)}
|
|
60
50
|
`}
|
|
61
|
-
`,t.H1=
|
|
62
|
-
${t=>
|
|
63
|
-
${
|
|
64
|
-
color: ${
|
|
65
|
-
${
|
|
51
|
+
`,t.H1=p.h1`
|
|
52
|
+
${t=>y`
|
|
53
|
+
${Un("H1",t.weight,t.paragraph)}
|
|
54
|
+
color: ${xn[1]};
|
|
55
|
+
${Zn(t.inline,t.paragraph)}
|
|
66
56
|
`}
|
|
67
|
-
`,t.H2=
|
|
68
|
-
${t=>
|
|
69
|
-
${
|
|
70
|
-
color: ${
|
|
71
|
-
${
|
|
57
|
+
`,t.H2=p.h2`
|
|
58
|
+
${t=>y`
|
|
59
|
+
${Un("H2",t.weight,t.paragraph)}
|
|
60
|
+
color: ${xn[1]};
|
|
61
|
+
${Zn(t.inline,t.paragraph)}
|
|
72
62
|
`}
|
|
73
|
-
`,t.H3=
|
|
74
|
-
${t=>
|
|
75
|
-
${
|
|
76
|
-
color: ${
|
|
77
|
-
${
|
|
63
|
+
`,t.H3=p.h3`
|
|
64
|
+
${t=>y`
|
|
65
|
+
${Un("H3",t.weight,t.paragraph)}
|
|
66
|
+
color: ${xn[1]};
|
|
67
|
+
${Zn(t.inline,t.paragraph)}
|
|
78
68
|
`}
|
|
79
|
-
`,t.H4=
|
|
80
|
-
${t=>
|
|
81
|
-
${
|
|
82
|
-
color: ${
|
|
83
|
-
${
|
|
69
|
+
`,t.H4=p.h4`
|
|
70
|
+
${t=>y`
|
|
71
|
+
${Un("H4",t.weight,t.paragraph)}
|
|
72
|
+
color: ${xn[1]};
|
|
73
|
+
${Zn(t.inline,t.paragraph)}
|
|
84
74
|
`}
|
|
85
|
-
`,t.H5=
|
|
86
|
-
${t=>
|
|
87
|
-
${
|
|
88
|
-
color: ${
|
|
89
|
-
${
|
|
75
|
+
`,t.H5=p.h5`
|
|
76
|
+
${t=>y`
|
|
77
|
+
${Un("H5",t.weight,t.paragraph)}
|
|
78
|
+
color: ${xn[1]};
|
|
79
|
+
${Zn(t.inline,t.paragraph)}
|
|
90
80
|
`}
|
|
91
|
-
`,t.H6=
|
|
92
|
-
${t=>
|
|
93
|
-
${
|
|
94
|
-
color: ${
|
|
95
|
-
${
|
|
81
|
+
`,t.H6=p.h6`
|
|
82
|
+
${t=>y`
|
|
83
|
+
${Un("H6",t.weight,t.paragraph)}
|
|
84
|
+
color: ${xn[1]};
|
|
85
|
+
${Zn(t.inline,t.paragraph)}
|
|
96
86
|
`}
|
|
97
|
-
`,t.Body=
|
|
98
|
-
${t=>
|
|
99
|
-
${
|
|
100
|
-
color: ${
|
|
101
|
-
${
|
|
87
|
+
`,t.Body=p.p`
|
|
88
|
+
${t=>y`
|
|
89
|
+
${Un("Body",t.weight,t.paragraph)}
|
|
90
|
+
color: ${xn[1]};
|
|
91
|
+
${Zn(t.inline,t.paragraph)}
|
|
102
92
|
`}
|
|
103
|
-
`,t.BodySmall=
|
|
104
|
-
${t=>
|
|
105
|
-
${
|
|
106
|
-
color: ${
|
|
107
|
-
${
|
|
93
|
+
`,t.BodySmall=p.p`
|
|
94
|
+
${t=>y`
|
|
95
|
+
${Un("BodySmall",t.weight,t.paragraph)}
|
|
96
|
+
color: ${xn[1]};
|
|
97
|
+
${Zn(t.inline,t.paragraph)}
|
|
108
98
|
`}
|
|
109
|
-
`,t.XSmall=
|
|
110
|
-
${t=>
|
|
111
|
-
${
|
|
112
|
-
color: ${
|
|
113
|
-
${
|
|
99
|
+
`,t.XSmall=p.span`
|
|
100
|
+
${t=>y`
|
|
101
|
+
${Un("XSmall",t.weight,t.paragraph)}
|
|
102
|
+
color: ${xn[1]};
|
|
103
|
+
${Zn(t.inline,t.paragraph)}
|
|
114
104
|
`}
|
|
115
|
-
`,t.Hyperlink={Default:t=>
|
|
116
|
-
${t=>
|
|
117
|
-
${
|
|
118
|
-
color: ${
|
|
105
|
+
`,t.Hyperlink={Default:t=>Qn({...t,textStyle:"Body"}),Small:t=>Qn({...t,textStyle:"BodySmall"})}}(qn||(qn={}));const Jn=p.a`
|
|
106
|
+
${t=>y`
|
|
107
|
+
${Un(t.textStyle,t.weight)}
|
|
108
|
+
color: ${En};
|
|
119
109
|
text-decoration: none;
|
|
120
110
|
|
|
121
111
|
:hover,
|
|
122
112
|
:active,
|
|
123
113
|
:focus {
|
|
124
|
-
color: ${
|
|
114
|
+
color: ${jn};
|
|
115
|
+
|
|
116
|
+
svg {
|
|
117
|
+
color: ${jn};
|
|
118
|
+
}
|
|
125
119
|
}
|
|
126
120
|
`}
|
|
127
|
-
`,
|
|
121
|
+
`,Kn=p(An)`
|
|
122
|
+
height: 1rem;
|
|
123
|
+
width: 1rem;
|
|
128
124
|
margin-left: 0.4rem;
|
|
129
|
-
|
|
125
|
+
vertical-align: middle;
|
|
126
|
+
`,Qn=({external:t=!1,children:r,...i})=>e(Jn,{...i,children:[r,t&&n(Kn,{})]}),Yn=p.div`
|
|
130
127
|
position: relative;
|
|
131
128
|
width: 100%;
|
|
132
129
|
z-index: 1;
|
|
@@ -140,7 +137,7 @@ import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import*as r from
|
|
|
140
137
|
${kn.tablet} {
|
|
141
138
|
margin: 1rem 0;
|
|
142
139
|
}
|
|
143
|
-
`,
|
|
140
|
+
`,tr=p.ul`
|
|
144
141
|
display: inline-flex;
|
|
145
142
|
width: 100%;
|
|
146
143
|
flex-wrap: wrap;
|
|
@@ -157,7 +154,7 @@ import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import*as r from
|
|
|
157
154
|
${kn.tablet} {
|
|
158
155
|
flex-wrap: nowrap;
|
|
159
156
|
}
|
|
160
|
-
`,
|
|
157
|
+
`,er=p.div`
|
|
161
158
|
width: 4rem;
|
|
162
159
|
height: 1.75rem;
|
|
163
160
|
top: 0;
|
|
@@ -165,20 +162,19 @@ import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import*as r from
|
|
|
165
162
|
pointer-events: none;
|
|
166
163
|
|
|
167
164
|
${t=>{let e;const n="rgba(255,255,255,0.001)";return e="left"===t.$position?`\n\t\t\t\tleft: -2%;\n\t\t\t\tbackground-image: linear-gradient(\n\t\t\t\t\tto right, \n\t\t\t\t\t${t.$backgroundColor||"white"}, \n\t\t\t\t\t${n}\n\t\t\t\t);\n\t\t\t`:`\n\t\t\t\tright: -2%;\n\t\t\t\tbackground-image: linear-gradient(\n\t\t\t\t\tto left,\n\t\t\t\t\t${t.$backgroundColor||"white"},\n\t\t\t\t\t${n}\n\t\t\t\t);\n\t\t\t`,`\n\t\t\t${kn.tablet} {\n\t\t\t\t${e}\n\t\t\t}\n\t\t`}};
|
|
168
|
-
`,
|
|
165
|
+
`,nr=p.li`
|
|
169
166
|
display: flex;
|
|
170
167
|
flex-direction: row;
|
|
171
168
|
align-items: center;
|
|
172
169
|
line-height: inherit;
|
|
173
170
|
font-size: inherit;
|
|
174
171
|
${t=>t.$styleProps||""};
|
|
175
|
-
`,
|
|
172
|
+
`,rr=p(st)`
|
|
176
173
|
margin: 0.25rem 0.25rem 0.1rem 0.25rem;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
`,tr=g(Xn.BodySmall)`
|
|
174
|
+
color: ${xn[4]};
|
|
175
|
+
`,ir=p(qn.BodySmall)`
|
|
180
176
|
margin: 0.25rem !important;
|
|
181
|
-
`,
|
|
177
|
+
`,or=p(qn.Hyperlink.Small)`
|
|
182
178
|
margin: 0.25rem !important;
|
|
183
|
-
`,
|
|
179
|
+
`,ar=({links:t,fadeColor:i,fadePosition:o="both",itemStyle:c,id:f,...h})=>{const[s,g]=l(!!o),[p,y]=l("left"===o||"both"===o),[v,S]=l("right"===o||"both"===o),b=a(null),F=a(null);!function(t){void 0===t&&(t={});var e=t.skipOnMount,n=void 0!==e&&e,r=t.refreshMode,i=t.refreshRate,o=void 0===i?1e3:i,c=t.refreshOptions,f=t.handleWidth,h=void 0===f||f,u=t.handleHeight,s=void 0===u||u,d=t.targetRef,g=t.observerOptions,p=t.onResize,y=a(n),v=a(null),S=null!=d?d:v,b=a(),F=l({width:void 0,height:void 0}),w=F[0],H=F[1];ht((function(){if(!lt()){var t=ft(p,H,h,s);b.current=ot((function(e){(h||s)&&e.forEach((function(e){var n=e&&e.contentRect||{},r=n.width,i=n.height;!y.current&&!lt()&&t({width:r,height:i}),y.current=!1}))}),r,o,c);var e=new window.ResizeObserver(b.current);return S.current&&e.observe(S.current,g),function(){e.disconnect();var t=b.current;t&&t.cancel&&t.cancel()}}}),[r,o,c,h,s,p,g,S.current]),m({ref:S},w)}({onResize:d((()=>{const e=F.current,n=b.current;e&&n&&t&&t.length>1&&window.innerWidth<=ut.tablet&&(e.scrollLeft=e.scrollWidth-n.offsetWidth)}),[t.length]),targetRef:b,refreshMode:"debounce",refreshRate:50});const w=()=>{if(s){g(window.innerWidth<ut.tablet);const t=F.current,e=b.current;t&&e&&t.scrollWidth>e.offsetWidth?(g(!0),y(t.scrollLeft>=1),S(t.scrollWidth-t.scrollLeft>e.offsetWidth)):g(!1)}};if(u((()=>{const t=F.current;return w(),window.addEventListener("resize",w),t&&t.addEventListener("scroll",w),()=>{window.removeEventListener("resize",w),t&&t.removeEventListener("scroll",w)}}),[]),!t)return null;return e(Yn,{ref:b,id:f||"breadcrumb",...h,children:[n("nav",{children:n(tr,{ref:F,children:t.map(((r,i)=>{let o;return r.children?(o=i!==t.length-1&&r.href?n(or,{...r,weight:"semibold"}):n(ir,{weight:"semibold",children:r.children}),e(nr,{$styleProps:c,children:[o,i<t.length-1&&n(rr,{})]},i)):null}))})}),s&&(()=>{let t;return t=Array.isArray(i)&&i.length>0?{left:i,right:i}:i||{left:void 0,right:void 0},e(r,{children:[p&&n(er,{$backgroundColor:t.left,$position:"left"}),v&&n(er,{$backgroundColor:t.right,$position:"right"})]})})()]})};export{ar as Breadcrumb};
|
|
184
180
|
//# sourceMappingURL=index.js.map
|