@lifesg/react-design-system 1.0.0 → 1.0.2
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/cjs/index.js +5 -5
- package/cjs/index.js.map +1 -1
- package/date-input/index.js +78 -78
- package/date-input/index.js.map +1 -1
- package/filter/index.js +166 -166
- package/filter/index.js.map +1 -1
- package/form/index.js +112 -112
- package/form/index.js.map +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/input-group/index.js +58 -58
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +168 -168
- package/input-select/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +59 -59
- package/phone-number-input/index.js.map +1 -1
- package/time-slot-bar/index.js +80 -80
- package/time-slot-bar/index.js.map +1 -1
- package/timepicker/index.js +205 -205
- package/timepicker/index.js.map +1 -1
- package/toggle/index.js +147 -147
- package/toggle/index.js.map +1 -1
- package/util/index.d.ts +1 -0
- package/util/simple-id-generator.d.ts +6 -0
package/time-slot-bar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import*as i from"react";import o,{cloneElement as a,useRef as l,useState as c,isValidElement as s,createRef as u,PureComponent as h,useEffect as f,useLayoutEffect as d}from"react";import{findDOMNode as g}from"react-dom";import p,{css as m}from"styled-components";var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v={exports:{}};v.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",l="day",c="week",s="month",u="quarter",h="year",f="date",d="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,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,s),o=n-i<0,a=e.clone().add(r+(o?-1:1),s);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:s,y:h,w:c,d:l,D:f,h:a,m:o,s:i,ms:r,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",S={};S[$]=m;var b=function(t){return t instanceof H},w=function t(e,n,r){var i;if(!e)return $;if("string"==typeof e){var o=e.toLowerCase();S[o]&&(i=o),n&&(S[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var l=e.name;S[l]=e,i=l}return!r&&i&&($=i),i||!r&&$},D=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new H(n)},F=v;F.l=w,F.i=b,F.w=function(t,e){return D(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var H=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(F.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 i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.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()},y.$utils=function(){return F},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=D(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return D(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<D(t)},y.$g=function(t,e,n){return F.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!F.u(e)||e,u=F.p(t),d=function(t,e){var i=F.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(l)},g=function(t,e){return F.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,m=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case h:return r?d(1,0):d(31,11);case s:return r?d(1,m):d(0,m+1);case c:var $=this.$locale().weekStart||0,S=(p<$?p+7:p)-$;return d(r?y-S:y+(6-S),m);case l:case f:return g(v+"Hours",0);case a:return g(v+"Minutes",1);case o:return g(v+"Seconds",2);case i:return g(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,c=F.p(t),u="set"+(this.$u?"UTC":""),d=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],g=c===l?this.$D+(e-this.$W):e;if(c===s||c===h){var p=this.clone().set(f,1);p.$d[d](g),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](g);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[F.p(t)]()},y.add=function(r,u){var f,d=this;r=Number(r);var g=F.p(u),p=function(t){var e=D(d);return F.w(e.date(e.date()+Math.round(t*r)),d)};if(g===s)return this.set(s,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 m=(f={},f[o]=e,f[a]=n,f[i]=t,f)[g]||1,y=this.$d.getTime()+r*m;return F.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=F.z(this),o=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},h=function(t){return F.s(o%12||12,t,"0")},f=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:F.s(l+1,2,"0"),MMM:u(n.monthsShort,l,s,3),MMMM:u(s,l),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,c,2),ddd:u(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:F.s(o,2,"0"),h:h(1),hh:h(2),a:f(o,a,!0),A:f(o,a,!1),m:String(a),mm:F.s(a,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:i};return r.replace(p,(function(t,e){return e||g[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,d){var g,p=F.p(f),m=D(r),y=(m.utcOffset()-this.utcOffset())*e,v=this-m,$=F.m(this,m);return $=(g={},g[h]=$/12,g[s]=$,g[u]=$/3,g[c]=(v-y)/6048e5,g[l]=(v-y)/864e5,g[a]=v/n,g[o]=v/e,g[i]=v/t,g)[p]||v,d?$:F.a($)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return S[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return F.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),B=H.prototype;return D.prototype=B,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",l],["$M",s],["$y",h],["$D",f]].forEach((function(t){B[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),D.extend=function(t,e){return t.$i||(t(e,H,D),t.$i=!0),D},D.locale=w,D.isDayjs=b,D.unix=function(t){return D(1e3*t)},D.en=S[$],D.Ls=S,D.p={},D}();var $=v.exports,S=function(t,e){return S=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])},S(t,e)};var b=function(){return b=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},b.apply(this,arguments)};var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var D=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},F="object"==typeof w&&w&&w.Object===Object&&w,H="object"==typeof self&&self&&self.Object===Object&&self,B=F||H||Function("return this")(),O=B,M=function(){return O.Date.now()},C=/\s/;var x=function(t){for(var e=t.length;e--&&C.test(t.charAt(e)););return e},_=/^\s+/;var z=function(t){return t?t.slice(0,x(t)+1).replace(_,""):t},T=B.Symbol,E=T,k=Object.prototype,A=k.hasOwnProperty,j=k.toString,W=E?E.toStringTag:void 0;var L=function(t){var e=A.call(t,W),n=t[W];try{t[W]=void 0;var r=!0}catch(t){}var i=j.call(t);return r&&(e?t[W]=n:delete t[W]),i},Y=Object.prototype.toString;var N=L,R=function(t){return Y.call(t)},I=T?T.toStringTag:void 0;var P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":I&&I in Object(t)?N(t):R(t)},V=function(t){return null!=t&&"object"==typeof t};var Z=z,X=D,U=function(t){return"symbol"==typeof t||V(t)&&"[object Symbol]"==P(t)},G=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,q=/^0o[0-7]+$/i,Q=parseInt;var K=D,tt=M,et=function(t){if("number"==typeof t)return t;if(U(t))return NaN;if(X(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=X(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Z(t);var n=J.test(t);return n||q.test(t)?Q(t.slice(2),n?2:8):G.test(t)?NaN:+t},nt=Math.max,rt=Math.min;var it=function(t,e,n){var r,i,o,a,l,c,s=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,s=e,a=t.apply(o,n)}function g(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-s>=o}function p(){var t=tt();if(g(t))return m(t);l=setTimeout(p,function(t){var n=e-(t-c);return h?rt(n,o-(t-s)):n}(t))}function m(t){return l=void 0,f&&r?d(t):(r=i=void 0,a)}function y(){var t=tt(),n=g(t);if(r=arguments,i=this,c=t,n){if(void 0===l)return function(t){return s=t,l=setTimeout(p,e),u?d(t):a}(c);if(h)return clearTimeout(l),l=setTimeout(p,e),d(c)}return void 0===l&&(l=setTimeout(p,e)),a}return e=et(e)||0,K(n)&&(u=!!n.leading,o=(h="maxWait"in n)?nt(et(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=c=i=l=void 0},y.flush=function(){return void 0===l?a:m(tt())},y},ot=it,at=D;var lt=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return at(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ot(t,e,{leading:r,maxWait:e,trailing:i})},ct=function(t,e,n,r){switch(e){case"debounce":return it(t,n,r);case"throttle":return lt(t,n,r);default:return t}},st=function(t){return"function"==typeof t},ut=function(){return"undefined"==typeof window},ht=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&&st(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(!ut()){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(ut())return null;if(e)return document.querySelector(e);if(r&&ht(r))return r;if(n.targetRef&&ht(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&&!ut()&&c({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return st(e)?"renderProp":st(r)?"childFunction":s(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=u(),n.observableElement=null,ut()||(n.resizeHandler=ct(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}S(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(){ut()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,r=e.children,o=e.nodeType,l=void 0===o?"div":o,c=this.state,s={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(s);case"childFunction":return(t=r)(s);case"child":if((t=r).type&&"string"==typeof t.type){var u=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}(s,["targetRef"]);return a(t,u)}return a(t,s);case"childArray":return(t=r).map((function(t){return!!t&&a(t,s)}));default:return i.createElement(l,null)}}}(h);var dt=ut()?f:d;var gt={exports:{}};gt.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(t){return(t=+t)+(t>68?1900:2e3)},l=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],s=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[i,function(t){this.afternoon=u(t,!1)}],a:[i,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[i,function(t){var e=s("months"),n=(s("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(t){var e=s("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),l=a.length,c=0;c<l;c+=1){var s=a[c],u=h[s],f=u&&u[0],d=u&&u[1];a[c]=d?{regex:f,parser:d}:s.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<l;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,c=i.parser,s=t.slice(r),u=o.exec(s)[0];c.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(a=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,a=t.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,h=a[2];s&&(h=a[2]),o=this.$locale(),!c&&h&&(o=n.Ls[h]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=f(e)(t),i=r.year,o=r.month,a=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,h=r.zone,d=new Date,g=a||(i||o?1:d.getDate()),p=i||d.getFullYear(),m=0;i&&!o||(m=o>0?o-1:d.getMonth());var y=l||0,v=c||0,$=s||0,S=u||0;return h?new Date(Date.UTC(p,m,g,y,v,$,S+60*h.offset*1e3)):n?new Date(Date.UTC(p,m,g,y,v,$,S)):new Date(p,m,g,y,v,$,S)}catch(t){return new Date("")}}(e,l,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&e!=this.format(l)&&(this.$d=new Date("")),o={}}else if(l instanceof Array)for(var d=l.length,g=1;g<=d;g+=1){a[1]=l[g-1];var p=n.apply(this,a);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}g===d&&(this.$d=new Date(""))}else i.call(this,t)}}}();var pt,mt=gt.exports;!function(t){t.generateDays=t=>{const e=t.startOf("month"),n=$(e).startOf("week");return yt(n).map((t=>vt(t)))},t.generateMonths=t=>{const e=[];for(let n=0;n<12;n++){const r=t.month(n);e.push($(r))}return e},t.generateDecadeOfYears=t=>{const e=t.year(),n=10*Math.floor(e/10),r=t.year(n),i=[r.subtract(1,"year"),r];for(let t=1;t<11;t++)i.push(r.add(t,"year"));return i},t.getStartEndDecade=t=>{const e=10*Math.floor(+t.format("YYYY")/10);return{beginDecade:e,endDecade:+$(`${e+9}-01-01`).format("YYYY")}}}(pt||(pt={}));const yt=t=>{const e=[t];for(let n=1;n<6;n++){const r=t.add(n,"week");e.push(r)}return e},vt=t=>{const e=[];for(let n=0;n<7;n++){const r=t.add(n,"day");e.push(r)}return e},$t=[1,3,5,7,8,10,12],St=[4,6,9,11];var bt,wt,Dt;!function(t){t.clampDay=(e,n,r)=>{const i=parseInt(e),o=parseInt(n),a=parseInt(r);return 0==i?"1":$t.includes(o)?Math.min(i,31).toString():St.includes(o)?Math.min(i,30).toString():2===o?t.isLeapYear(a)?Math.min(i,29).toString():Math.min(i,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,t.getTimeDiffInMinutes=(t,e,n="HH:mm")=>{const r=$(t,n);return $(e,n).diff(r,"minute")}}(bt||(bt={})),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 i=0;e>n&&(i=Math.floor((e-n)/8));const o=r+i;if(o<t.length){const e=Math.floor(o/2);return t.substring(0,e)+" ... "+t.substring(t.length-e,t.length)}return t}}(wt||(wt={})),$.extend(mt),function(t){t.formatHourlyDisplay=t=>$(t,"HH:mm").format("ha"),t.calculateWidth=(t,e,n)=>bt.getTimeDiffInMinutes(t,e)/15*(n/2)}(Dt||(Dt={}));var Ft,Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});var Bt=t;const Ot=t=>Bt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:Bt.jsx("path",{d:"M12.521 17.562L5.58301 10.625C5.48635 10.5277 5.41701 10.427 5.37501 10.323C5.33301 10.219 5.31201 10.1113 5.31201 10C5.31201 9.88867 5.33301 9.781 5.37501 9.677C5.41701 9.573 5.48635 9.47234 5.58301 9.375L12.542 2.417C12.75 2.20834 13.0033 2.104 13.302 2.104C13.6007 2.104 13.854 2.21534 14.062 2.438C14.2847 2.646 14.389 2.90267 14.375 3.208C14.361 3.514 14.25 3.771 14.042 3.979L8.02101 10L14.062 16.042C14.2567 16.236 14.354 16.4893 14.354 16.802C14.354 17.1147 14.2567 17.368 14.062 17.562C13.854 17.7707 13.5973 17.875 13.292 17.875C12.986 17.875 12.729 17.7707 12.521 17.562Z",fill:"currentColor"})});Ot.displayName="ChevronLeftIcon",Ft=Ht.ChevronLeftIcon=Ot;var Mt,Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});var xt=t;const _t=t=>xt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:xt.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"})});_t.displayName="ChevronRightIcon",Mt=Ct.ChevronRightIcon=_t;var zt=Array.isArray,Tt="object"==typeof y&&y&&y.Object===Object&&y,Et="object"==typeof self&&self&&self.Object===Object&&self,kt=Tt||Et||Function("return this")(),At=kt.Symbol,jt=At,Wt=Object.prototype,Lt=Wt.hasOwnProperty,Yt=Wt.toString,Nt=jt?jt.toStringTag:void 0;var Rt=function(t){var e=Lt.call(t,Nt),n=t[Nt];try{t[Nt]=void 0;var r=!0}catch(t){}var i=Yt.call(t);return r&&(e?t[Nt]=n:delete t[Nt]),i},It=Object.prototype.toString;var Pt=Rt,Vt=function(t){return It.call(t)},Zt=At?At.toStringTag:void 0;var Xt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Zt&&Zt in Object(t)?Pt(t):Vt(t)};var Ut=Xt,Gt=function(t){return null!=t&&"object"==typeof t};var Jt=function(t){return"symbol"==typeof t||Gt(t)&&"[object Symbol]"==Ut(t)},qt=zt,Qt=Jt,Kt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/;var ee=function(t,e){if(qt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Qt(t))||(te.test(t)||!Kt.test(t)||null!=e&&t in Object(e))};var ne=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},re=Xt,ie=ne;var oe,ae=function(t){if(!ie(t))return!1;var e=re(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},le=kt["__core-js_shared__"],ce=(oe=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"";var se=function(t){return!!ce&&ce in t},ue=Function.prototype.toString;var he=ae,fe=se,de=ne,ge=function(t){if(null!=t){try{return ue.call(t)}catch(t){}try{return t+""}catch(t){}}return""},pe=/^\[object .+?Constructor\]$/,me=Function.prototype,ye=Object.prototype,ve=me.toString,$e=ye.hasOwnProperty,Se=RegExp("^"+ve.call($e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var be=function(t){return!(!de(t)||fe(t))&&(he(t)?Se:pe).test(ge(t))},we=function(t,e){return null==t?void 0:t[e]};var De=function(t,e){var n=we(t,e);return be(n)?n:void 0},Fe=De(Object,"create"),He=Fe;var Be=function(){this.__data__=He?He(null):{},this.size=0};var Oe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Me=Fe,Ce=Object.prototype.hasOwnProperty;var xe=function(t){var e=this.__data__;if(Me){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ce.call(e,t)?e[t]:void 0},_e=Fe,ze=Object.prototype.hasOwnProperty;var Te=Fe;var Ee=Be,ke=Oe,Ae=xe,je=function(t){var e=this.__data__;return _e?void 0!==e[t]:ze.call(e,t)},We=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Te&&void 0===e?"__lodash_hash_undefined__":e,this};function Le(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])}}Le.prototype.clear=Ee,Le.prototype.delete=ke,Le.prototype.get=Ae,Le.prototype.has=je,Le.prototype.set=We;var Ye=Le;var Ne=function(){this.__data__=[],this.size=0};var Re=function(t,e){return t===e||t!=t&&e!=e};var Ie=function(t,e){for(var n=t.length;n--;)if(Re(t[n][0],e))return n;return-1},Pe=Ie,Ve=Array.prototype.splice;var Ze=Ie;var Xe=Ie;var Ue=Ie;var Ge=Ne,Je=function(t){var e=this.__data__,n=Pe(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ve.call(e,n,1),--this.size,!0)},qe=function(t){var e=this.__data__,n=Ze(e,t);return n<0?void 0:e[n][1]},Qe=function(t){return Xe(this.__data__,t)>-1},Ke=function(t,e){var n=this.__data__,r=Ue(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function tn(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])}}tn.prototype.clear=Ge,tn.prototype.delete=Je,tn.prototype.get=qe,tn.prototype.has=Qe,tn.prototype.set=Ke;var en=tn,nn=De(kt,"Map"),rn=Ye,on=en,an=nn;var ln=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var cn=function(t,e){var n=t.__data__;return ln(e)?n["string"==typeof e?"string":"hash"]:n.map},sn=cn;var un=cn;var hn=cn;var fn=cn;var dn=function(){this.size=0,this.__data__={hash:new rn,map:new(an||on),string:new rn}},gn=function(t){var e=sn(this,t).delete(t);return this.size-=e?1:0,e},pn=function(t){return un(this,t).get(t)},mn=function(t){return hn(this,t).has(t)},yn=function(t,e){var n=fn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function vn(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])}}vn.prototype.clear=dn,vn.prototype.delete=gn,vn.prototype.get=pn,vn.prototype.has=mn,vn.prototype.set=yn;var $n=vn;function Sn(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(Sn.Cache||$n),n}Sn.Cache=$n;var bn=Sn;var wn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Fn=function(t){var e=bn(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(wn,(function(t,n,r,i){e.push(r?i.replace(Dn,"$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},Bn=zt,On=Jt,Mn=At?At.prototype:void 0,Cn=Mn?Mn.toString:void 0;var xn=function t(e){if("string"==typeof e)return e;if(Bn(e))return Hn(e,t)+"";if(On(e))return Cn?Cn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},_n=xn;var zn=zt,Tn=ee,En=Fn,kn=function(t){return null==t?"":_n(t)};var An=Jt;var jn=function(t,e){return zn(t)?t:Tn(t,e)?[t]:En(kn(t))},Wn=function(t){if("string"==typeof t||An(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Ln=function(t,e){for(var n=0,r=(e=jn(e,t)).length;null!=t&&n<r;)t=t[Wn(e[n++])];return n&&n==r?t:void 0};var Yn=function(t,e,n){var r=null==t?void 0:Ln(t,e);return void 0===r?n:r};const Nn=(t,e,n)=>e?Yn(n,e)||Yn(t,e):n||t,Rn=(t,e)=>{const n=e||t.defaultValue;return Yn(t.collections,n)};var In;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme",t.resourceScheme="resourceScheme"}(In||(In={}));const Pn={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"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},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"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Vn=t=>e=>{const n=e.theme,r=Rn(Pn,n[In.colorScheme]);return n.options&&n.options.color?Nn(r,t,n.options.color):Nn(r,t)},Zn={Brand:{1:Vn("Brand.1"),2:Vn("Brand.2"),3:Vn("Brand.3"),4:Vn("Brand.4"),5:Vn("Brand.5"),6:Vn("Brand.6")},Primary:Vn("Primary"),PrimaryDark:Vn("PrimaryDark"),Secondary:Vn("Secondary"),Accent:{Light:{1:Vn("Accent.Light.1"),2:Vn("Accent.Light.2"),3:Vn("Accent.Light.3"),4:Vn("Accent.Light.4"),5:Vn("Accent.Light.5"),6:Vn("Accent.Light.6")},Dark:{1:Vn("Accent.Dark.1"),2:Vn("Accent.Dark.2"),3:Vn("Accent.Dark.3")}},Neutral:{1:Vn("Neutral.1"),2:Vn("Neutral.2"),3:Vn("Neutral.3"),4:Vn("Neutral.4"),5:Vn("Neutral.5"),6:Vn("Neutral.6"),7:Vn("Neutral.7"),8:Vn("Neutral.8")},Validation:{Green:{Text:Vn("Validation.Green.Text"),Icon:Vn("Validation.Green.Icon"),Border:Vn("Validation.Green.Border"),Background:Vn("Validation.Green.Background")},Orange:{Text:Vn("Validation.Orange.Text"),Icon:Vn("Validation.Orange.Icon"),Border:Vn("Validation.Orange.Border"),Background:Vn("Validation.Orange.Background"),Badge:Vn("Validation.Orange.Badge")},Red:{Text:Vn("Validation.Red.Text"),Icon:Vn("Validation.Red.Icon"),Border:Vn("Validation.Red.Border"),Background:Vn("Validation.Red.Background")},Blue:{Text:Vn("Validation.Blue.Text"),Icon:Vn("Validation.Blue.Icon"),Border:Vn("Validation.Blue.Border"),Background:Vn("Validation.Blue.Background")}},Shadow:{Accent:Vn("Shadow.Accent"),Red:Vn("Shadow.Red"),Elevation:Vn("Shadow.Elevation")}},Xn=p.button`
|
|
1
|
+
import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import*as i from"react";import o,{cloneElement as a,useRef as l,useState as c,isValidElement as s,createRef as u,PureComponent as h,useEffect as f,useLayoutEffect as d}from"react";import{findDOMNode as g}from"react-dom";import p,{css as m}from"styled-components";var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v={exports:{}};v.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",l="day",c="week",s="month",u="quarter",h="year",f="date",d="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,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,s),o=n-i<0,a=e.clone().add(r+(o?-1:1),s);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:s,y:h,w:c,d:l,D:f,h:a,m:o,s:i,ms:r,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",S={};S[$]=m;var b=function(t){return t instanceof H},w=function t(e,n,r){var i;if(!e)return $;if("string"==typeof e){var o=e.toLowerCase();S[o]&&(i=o),n&&(S[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var l=e.name;S[l]=e,i=l}return!r&&i&&($=i),i||!r&&$},D=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new H(n)},F=v;F.l=w,F.i=b,F.w=function(t,e){return D(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var H=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(F.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 i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.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()},y.$utils=function(){return F},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=D(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return D(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<D(t)},y.$g=function(t,e,n){return F.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!F.u(e)||e,u=F.p(t),d=function(t,e){var i=F.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(l)},g=function(t,e){return F.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,m=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case h:return r?d(1,0):d(31,11);case s:return r?d(1,m):d(0,m+1);case c:var $=this.$locale().weekStart||0,S=(p<$?p+7:p)-$;return d(r?y-S:y+(6-S),m);case l:case f:return g(v+"Hours",0);case a:return g(v+"Minutes",1);case o:return g(v+"Seconds",2);case i:return g(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,c=F.p(t),u="set"+(this.$u?"UTC":""),d=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],g=c===l?this.$D+(e-this.$W):e;if(c===s||c===h){var p=this.clone().set(f,1);p.$d[d](g),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](g);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[F.p(t)]()},y.add=function(r,u){var f,d=this;r=Number(r);var g=F.p(u),p=function(t){var e=D(d);return F.w(e.date(e.date()+Math.round(t*r)),d)};if(g===s)return this.set(s,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 m=(f={},f[o]=e,f[a]=n,f[i]=t,f)[g]||1,y=this.$d.getTime()+r*m;return F.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=F.z(this),o=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},h=function(t){return F.s(o%12||12,t,"0")},f=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:F.s(l+1,2,"0"),MMM:u(n.monthsShort,l,s,3),MMMM:u(s,l),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,c,2),ddd:u(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:F.s(o,2,"0"),h:h(1),hh:h(2),a:f(o,a,!0),A:f(o,a,!1),m:String(a),mm:F.s(a,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:i};return r.replace(p,(function(t,e){return e||g[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,d){var g,p=F.p(f),m=D(r),y=(m.utcOffset()-this.utcOffset())*e,v=this-m,$=F.m(this,m);return $=(g={},g[h]=$/12,g[s]=$,g[u]=$/3,g[c]=(v-y)/6048e5,g[l]=(v-y)/864e5,g[a]=v/n,g[o]=v/e,g[i]=v/t,g)[p]||v,d?$:F.a($)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return S[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return F.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),B=H.prototype;return D.prototype=B,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",l],["$M",s],["$y",h],["$D",f]].forEach((function(t){B[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),D.extend=function(t,e){return t.$i||(t(e,H,D),t.$i=!0),D},D.locale=w,D.isDayjs=b,D.unix=function(t){return D(1e3*t)},D.en=S[$],D.Ls=S,D.p={},D}();var $=v.exports,S=function(t,e){return S=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])},S(t,e)};var b=function(){return b=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},b.apply(this,arguments)};var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var D=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},F="object"==typeof w&&w&&w.Object===Object&&w,H="object"==typeof self&&self&&self.Object===Object&&self,B=F||H||Function("return this")(),M=B,O=function(){return M.Date.now()},C=/\s/;var x=function(t){for(var e=t.length;e--&&C.test(t.charAt(e)););return e},_=/^\s+/;var z=function(t){return t?t.slice(0,x(t)+1).replace(_,""):t},T=B.Symbol,E=T,k=Object.prototype,A=k.hasOwnProperty,j=k.toString,W=E?E.toStringTag:void 0;var L=function(t){var e=A.call(t,W),n=t[W];try{t[W]=void 0;var r=!0}catch(t){}var i=j.call(t);return r&&(e?t[W]=n:delete t[W]),i},Y=Object.prototype.toString;var N=L,R=function(t){return Y.call(t)},I=T?T.toStringTag:void 0;var P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":I&&I in Object(t)?N(t):R(t)},V=function(t){return null!=t&&"object"==typeof t};var Z=z,X=D,U=function(t){return"symbol"==typeof t||V(t)&&"[object Symbol]"==P(t)},G=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,q=/^0o[0-7]+$/i,Q=parseInt;var K=D,tt=O,et=function(t){if("number"==typeof t)return t;if(U(t))return NaN;if(X(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=X(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Z(t);var n=J.test(t);return n||q.test(t)?Q(t.slice(2),n?2:8):G.test(t)?NaN:+t},nt=Math.max,rt=Math.min;var it=function(t,e,n){var r,i,o,a,l,c,s=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,s=e,a=t.apply(o,n)}function g(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-s>=o}function p(){var t=tt();if(g(t))return m(t);l=setTimeout(p,function(t){var n=e-(t-c);return h?rt(n,o-(t-s)):n}(t))}function m(t){return l=void 0,f&&r?d(t):(r=i=void 0,a)}function y(){var t=tt(),n=g(t);if(r=arguments,i=this,c=t,n){if(void 0===l)return function(t){return s=t,l=setTimeout(p,e),u?d(t):a}(c);if(h)return clearTimeout(l),l=setTimeout(p,e),d(c)}return void 0===l&&(l=setTimeout(p,e)),a}return e=et(e)||0,K(n)&&(u=!!n.leading,o=(h="maxWait"in n)?nt(et(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=c=i=l=void 0},y.flush=function(){return void 0===l?a:m(tt())},y},ot=it,at=D;var lt=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return at(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ot(t,e,{leading:r,maxWait:e,trailing:i})},ct=function(t,e,n,r){switch(e){case"debounce":return it(t,n,r);case"throttle":return lt(t,n,r);default:return t}},st=function(t){return"function"==typeof t},ut=function(){return"undefined"==typeof window},ht=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&&st(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(!ut()){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(ut())return null;if(e)return document.querySelector(e);if(r&&ht(r))return r;if(n.targetRef&&ht(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&&!ut()&&c({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return st(e)?"renderProp":st(r)?"childFunction":s(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=u(),n.observableElement=null,ut()||(n.resizeHandler=ct(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}S(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(){ut()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,r=e.children,o=e.nodeType,l=void 0===o?"div":o,c=this.state,s={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(s);case"childFunction":return(t=r)(s);case"child":if((t=r).type&&"string"==typeof t.type){var u=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}(s,["targetRef"]);return a(t,u)}return a(t,s);case"childArray":return(t=r).map((function(t){return!!t&&a(t,s)}));default:return i.createElement(l,null)}}}(h);var dt=ut()?f:d;var gt={exports:{}};gt.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},a=function(t){return(t=+t)+(t>68?1900:2e3)},l=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],s=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[i,function(t){this.afternoon=u(t,!1)}],a:[i,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[i,function(t){var e=s("months"),n=(s("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(t){var e=s("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),l=a.length,c=0;c<l;c+=1){var s=a[c],u=h[s],f=u&&u[0],d=u&&u[1];a[c]=d?{regex:f,parser:d}:s.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<l;n+=1){var i=a[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,c=i.parser,s=t.slice(r),u=o.exec(s)[0];c.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(a=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,a=t.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,h=a[2];s&&(h=a[2]),o=this.$locale(),!c&&h&&(o=n.Ls[h]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=f(e)(t),i=r.year,o=r.month,a=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,h=r.zone,d=new Date,g=a||(i||o?1:d.getDate()),p=i||d.getFullYear(),m=0;i&&!o||(m=o>0?o-1:d.getMonth());var y=l||0,v=c||0,$=s||0,S=u||0;return h?new Date(Date.UTC(p,m,g,y,v,$,S+60*h.offset*1e3)):n?new Date(Date.UTC(p,m,g,y,v,$,S)):new Date(p,m,g,y,v,$,S)}catch(t){return new Date("")}}(e,l,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&e!=this.format(l)&&(this.$d=new Date("")),o={}}else if(l instanceof Array)for(var d=l.length,g=1;g<=d;g+=1){a[1]=l[g-1];var p=n.apply(this,a);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}g===d&&(this.$d=new Date(""))}else i.call(this,t)}}}();var pt,mt=gt.exports;!function(t){t.generateDays=t=>{const e=t.startOf("month"),n=$(e).startOf("week");return yt(n).map((t=>vt(t)))},t.generateMonths=t=>{const e=[];for(let n=0;n<12;n++){const r=t.month(n);e.push($(r))}return e},t.generateDecadeOfYears=t=>{const e=t.year(),n=10*Math.floor(e/10),r=t.year(n),i=[r.subtract(1,"year"),r];for(let t=1;t<11;t++)i.push(r.add(t,"year"));return i},t.getStartEndDecade=t=>{const e=10*Math.floor(+t.format("YYYY")/10);return{beginDecade:e,endDecade:+$(`${e+9}-01-01`).format("YYYY")}}}(pt||(pt={}));const yt=t=>{const e=[t];for(let n=1;n<6;n++){const r=t.add(n,"week");e.push(r)}return e},vt=t=>{const e=[];for(let n=0;n<7;n++){const r=t.add(n,"day");e.push(r)}return e},$t=[1,3,5,7,8,10,12],St=[4,6,9,11];var bt,wt,Dt,Ft;!function(t){t.clampDay=(e,n,r)=>{const i=parseInt(e),o=parseInt(n),a=parseInt(r);return 0==i?"1":$t.includes(o)?Math.min(i,31).toString():St.includes(o)?Math.min(i,30).toString():2===o?t.isLeapYear(a)?Math.min(i,29).toString():Math.min(i,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,t.getTimeDiffInMinutes=(t,e,n="HH:mm")=>{const r=$(t,n);return $(e,n).diff(r,"minute")}}(bt||(bt={})),function(t){t.generate=()=>Math.random().toString(36).substring(2,9)}(wt||(wt={})),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 i=0;e>n&&(i=Math.floor((e-n)/8));const o=r+i;if(o<t.length){const e=Math.floor(o/2);return t.substring(0,e)+" ... "+t.substring(t.length-e,t.length)}return t}}(Dt||(Dt={})),$.extend(mt),function(t){t.formatHourlyDisplay=t=>$(t,"HH:mm").format("ha"),t.calculateWidth=(t,e,n)=>bt.getTimeDiffInMinutes(t,e)/15*(n/2)}(Ft||(Ft={}));var Ht,Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});var Mt=t;const Ot=t=>Mt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:Mt.jsx("path",{d:"M12.521 17.562L5.58301 10.625C5.48635 10.5277 5.41701 10.427 5.37501 10.323C5.33301 10.219 5.31201 10.1113 5.31201 10C5.31201 9.88867 5.33301 9.781 5.37501 9.677C5.41701 9.573 5.48635 9.47234 5.58301 9.375L12.542 2.417C12.75 2.20834 13.0033 2.104 13.302 2.104C13.6007 2.104 13.854 2.21534 14.062 2.438C14.2847 2.646 14.389 2.90267 14.375 3.208C14.361 3.514 14.25 3.771 14.042 3.979L8.02101 10L14.062 16.042C14.2567 16.236 14.354 16.4893 14.354 16.802C14.354 17.1147 14.2567 17.368 14.062 17.562C13.854 17.7707 13.5973 17.875 13.292 17.875C12.986 17.875 12.729 17.7707 12.521 17.562Z",fill:"currentColor"})});Ot.displayName="ChevronLeftIcon",Ht=Bt.ChevronLeftIcon=Ot;var Ct,xt={};Object.defineProperty(xt,"__esModule",{value:!0});var _t=t;const zt=t=>_t.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:_t.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"})});zt.displayName="ChevronRightIcon",Ct=xt.ChevronRightIcon=zt;var Tt=Array.isArray,Et="object"==typeof y&&y&&y.Object===Object&&y,kt="object"==typeof self&&self&&self.Object===Object&&self,At=Et||kt||Function("return this")(),jt=At.Symbol,Wt=jt,Lt=Object.prototype,Yt=Lt.hasOwnProperty,Nt=Lt.toString,Rt=Wt?Wt.toStringTag:void 0;var It=function(t){var e=Yt.call(t,Rt),n=t[Rt];try{t[Rt]=void 0;var r=!0}catch(t){}var i=Nt.call(t);return r&&(e?t[Rt]=n:delete t[Rt]),i},Pt=Object.prototype.toString;var Vt=It,Zt=function(t){return Pt.call(t)},Xt=jt?jt.toStringTag:void 0;var Ut=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Xt&&Xt in Object(t)?Vt(t):Zt(t)};var Gt=Ut,Jt=function(t){return null!=t&&"object"==typeof t};var qt=function(t){return"symbol"==typeof t||Jt(t)&&"[object Symbol]"==Gt(t)},Qt=Tt,Kt=qt,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/;var ne=function(t,e){if(Qt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Kt(t))||(ee.test(t)||!te.test(t)||null!=e&&t in Object(e))};var re=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ie=Ut,oe=re;var ae,le=function(t){if(!oe(t))return!1;var e=ie(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},ce=At["__core-js_shared__"],se=(ae=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||""))?"Symbol(src)_1."+ae:"";var ue=function(t){return!!se&&se in t},he=Function.prototype.toString;var fe=le,de=ue,ge=re,pe=function(t){if(null!=t){try{return he.call(t)}catch(t){}try{return t+""}catch(t){}}return""},me=/^\[object .+?Constructor\]$/,ye=Function.prototype,ve=Object.prototype,$e=ye.toString,Se=ve.hasOwnProperty,be=RegExp("^"+$e.call(Se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var we=function(t){return!(!ge(t)||de(t))&&(fe(t)?be:me).test(pe(t))},De=function(t,e){return null==t?void 0:t[e]};var Fe=function(t,e){var n=De(t,e);return we(n)?n:void 0},He=Fe(Object,"create"),Be=He;var Me=function(){this.__data__=Be?Be(null):{},this.size=0};var Oe=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ce=He,xe=Object.prototype.hasOwnProperty;var _e=function(t){var e=this.__data__;if(Ce){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(e,t)?e[t]:void 0},ze=He,Te=Object.prototype.hasOwnProperty;var Ee=He;var ke=Me,Ae=Oe,je=_e,We=function(t){var e=this.__data__;return ze?void 0!==e[t]:Te.call(e,t)},Le=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ee&&void 0===e?"__lodash_hash_undefined__":e,this};function Ye(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])}}Ye.prototype.clear=ke,Ye.prototype.delete=Ae,Ye.prototype.get=je,Ye.prototype.has=We,Ye.prototype.set=Le;var Ne=Ye;var Re=function(){this.__data__=[],this.size=0};var Ie=function(t,e){return t===e||t!=t&&e!=e};var Pe=function(t,e){for(var n=t.length;n--;)if(Ie(t[n][0],e))return n;return-1},Ve=Pe,Ze=Array.prototype.splice;var Xe=Pe;var Ue=Pe;var Ge=Pe;var Je=Re,qe=function(t){var e=this.__data__,n=Ve(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ze.call(e,n,1),--this.size,!0)},Qe=function(t){var e=this.__data__,n=Xe(e,t);return n<0?void 0:e[n][1]},Ke=function(t){return Ue(this.__data__,t)>-1},tn=function(t,e){var n=this.__data__,r=Ge(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function en(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])}}en.prototype.clear=Je,en.prototype.delete=qe,en.prototype.get=Qe,en.prototype.has=Ke,en.prototype.set=tn;var nn=en,rn=Fe(At,"Map"),on=Ne,an=nn,ln=rn;var cn=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var sn=function(t,e){var n=t.__data__;return cn(e)?n["string"==typeof e?"string":"hash"]:n.map},un=sn;var hn=sn;var fn=sn;var dn=sn;var gn=function(){this.size=0,this.__data__={hash:new on,map:new(ln||an),string:new on}},pn=function(t){var e=un(this,t).delete(t);return this.size-=e?1:0,e},mn=function(t){return hn(this,t).get(t)},yn=function(t){return fn(this,t).has(t)},vn=function(t,e){var n=dn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $n(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])}}$n.prototype.clear=gn,$n.prototype.delete=pn,$n.prototype.get=mn,$n.prototype.has=yn,$n.prototype.set=vn;var Sn=$n;function bn(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(bn.Cache||Sn),n}bn.Cache=Sn;var wn=bn;var Dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fn=/\\(\\)?/g,Hn=function(t){var e=wn(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(Dn,(function(t,n,r,i){e.push(r?i.replace(Fn,"$1"):n||t)})),e}));var Bn=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},Mn=Tt,On=qt,Cn=jt?jt.prototype:void 0,xn=Cn?Cn.toString:void 0;var _n=function t(e){if("string"==typeof e)return e;if(Mn(e))return Bn(e,t)+"";if(On(e))return xn?xn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},zn=_n;var Tn=Tt,En=ne,kn=Hn,An=function(t){return null==t?"":zn(t)};var jn=qt;var Wn=function(t,e){return Tn(t)?t:En(t,e)?[t]:kn(An(t))},Ln=function(t){if("string"==typeof t||jn(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Yn=function(t,e){for(var n=0,r=(e=Wn(e,t)).length;null!=t&&n<r;)t=t[Ln(e[n++])];return n&&n==r?t:void 0};var Nn=function(t,e,n){var r=null==t?void 0:Yn(t,e);return void 0===r?n:r};const Rn=(t,e,n)=>e?Nn(n,e)||Nn(t,e):n||t,In=(t,e)=>{const n=e||t.defaultValue;return Nn(t.collections,n)};var Pn;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme",t.resourceScheme="resourceScheme"}(Pn||(Pn={}));const Vn={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"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},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"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Zn=t=>e=>{const n=e.theme,r=In(Vn,n[Pn.colorScheme]);return n.options&&n.options.color?Rn(r,t,n.options.color):Rn(r,t)},Xn={Brand:{1:Zn("Brand.1"),2:Zn("Brand.2"),3:Zn("Brand.3"),4:Zn("Brand.4"),5:Zn("Brand.5"),6:Zn("Brand.6")},Primary:Zn("Primary"),PrimaryDark:Zn("PrimaryDark"),Secondary:Zn("Secondary"),Accent:{Light:{1:Zn("Accent.Light.1"),2:Zn("Accent.Light.2"),3:Zn("Accent.Light.3"),4:Zn("Accent.Light.4"),5:Zn("Accent.Light.5"),6:Zn("Accent.Light.6")},Dark:{1:Zn("Accent.Dark.1"),2:Zn("Accent.Dark.2"),3:Zn("Accent.Dark.3")}},Neutral:{1:Zn("Neutral.1"),2:Zn("Neutral.2"),3:Zn("Neutral.3"),4:Zn("Neutral.4"),5:Zn("Neutral.5"),6:Zn("Neutral.6"),7:Zn("Neutral.7"),8:Zn("Neutral.8")},Validation:{Green:{Text:Zn("Validation.Green.Text"),Icon:Zn("Validation.Green.Icon"),Border:Zn("Validation.Green.Border"),Background:Zn("Validation.Green.Background")},Orange:{Text:Zn("Validation.Orange.Text"),Icon:Zn("Validation.Orange.Icon"),Border:Zn("Validation.Orange.Border"),Background:Zn("Validation.Orange.Background"),Badge:Zn("Validation.Orange.Badge")},Red:{Text:Zn("Validation.Red.Text"),Icon:Zn("Validation.Red.Icon"),Border:Zn("Validation.Red.Border"),Background:Zn("Validation.Red.Background")},Blue:{Text:Zn("Validation.Blue.Text"),Icon:Zn("Validation.Blue.Icon"),Border:Zn("Validation.Blue.Border"),Background:Zn("Validation.Blue.Background")}},Shadow:{Accent:Zn("Shadow.Accent"),Red:Zn("Shadow.Red"),Elevation:Zn("Shadow.Elevation")}},Un=p.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -17,143 +17,143 @@ import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import*as i f
|
|
|
17
17
|
${({$outline:t})=>"none"===t&&"outline: none;"}
|
|
18
18
|
|
|
19
19
|
${({$highlight:t})=>t&&m`
|
|
20
|
-
background-color: ${
|
|
20
|
+
background-color: ${Xn.Neutral[7]};
|
|
21
21
|
`}
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
24
|
-
font-family: ${
|
|
23
|
+
`,Gn=o.forwardRef((({children:t,focusHighlight:n=!0,focusOutline:r="none",...i},o)=>e(Un,{ref:o,$outline:r,$highlight:n,...i,children:t}))),Jn={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},qn={collections:{base:{D1:{fontFamily:Jn.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Jn.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Jn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Jn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Jn.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Jn.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Jn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Jn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Jn.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Jn.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Jn.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Jn.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Jn.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Jn.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Qn=t=>e=>{const n=e.theme,r=In(qn,n[Pn.textStyleScheme]);return n.options&&n.options.textStyle?Rn(r,t,n.options.textStyle):Rn(r,t)},Kn={D1:{fontFamily:Qn("D1.fontFamily"),fontSize:Qn("D1.fontSize"),fontWeight:Qn("D1.fontWeight"),lineHeight:Qn("D1.lineHeight"),letterSpacing:Qn("D1.letterSpacing")},D2:{fontFamily:Qn("D2.fontFamily"),fontSize:Qn("D2.fontSize"),fontWeight:Qn("D2.fontWeight"),lineHeight:Qn("D2.lineHeight"),letterSpacing:Qn("D2.letterSpacing")},D3:{fontFamily:Qn("D3.fontFamily"),fontSize:Qn("D3.fontSize"),fontWeight:Qn("D3.fontWeight"),lineHeight:Qn("D3.lineHeight"),letterSpacing:Qn("D3.letterSpacing")},D4:{fontFamily:Qn("D4.fontFamily"),fontSize:Qn("D4.fontSize"),fontWeight:Qn("D4.fontWeight"),lineHeight:Qn("D4.lineHeight"),letterSpacing:Qn("D4.letterSpacing")},DBody:{fontFamily:Qn("DBody.fontFamily"),fontSize:Qn("DBody.fontSize"),fontWeight:Qn("DBody.fontWeight"),lineHeight:Qn("DBody.lineHeight"),letterSpacing:Qn("DBody.letterSpacing")},H1:{fontFamily:Qn("H1.fontFamily"),fontSize:Qn("H1.fontSize"),fontWeight:Qn("H1.fontWeight"),lineHeight:Qn("H1.lineHeight"),letterSpacing:Qn("H1.letterSpacing")},H2:{fontFamily:Qn("H2.fontFamily"),fontSize:Qn("H2.fontSize"),fontWeight:Qn("H2.fontWeight"),lineHeight:Qn("H2.lineHeight"),letterSpacing:Qn("H2.letterSpacing")},H3:{fontFamily:Qn("H3.fontFamily"),fontSize:Qn("H3.fontSize"),fontWeight:Qn("H3.fontWeight"),lineHeight:Qn("H3.lineHeight"),letterSpacing:Qn("H3.letterSpacing")},H4:{fontFamily:Qn("H4.fontFamily"),fontSize:Qn("H4.fontSize"),fontWeight:Qn("H4.fontWeight"),lineHeight:Qn("H4.lineHeight"),letterSpacing:Qn("H4.letterSpacing")},H5:{fontFamily:Qn("H5.fontFamily"),fontSize:Qn("H5.fontSize"),fontWeight:Qn("H5.fontWeight"),lineHeight:Qn("H5.lineHeight"),letterSpacing:Qn("H5.letterSpacing")},H6:{fontFamily:Qn("H6.fontFamily"),fontSize:Qn("H6.fontSize"),fontWeight:Qn("H6.fontWeight"),lineHeight:Qn("H6.lineHeight"),letterSpacing:Qn("H6.letterSpacing")},Body:{fontFamily:Qn("Body.fontFamily"),fontSize:Qn("Body.fontSize"),fontWeight:Qn("Body.fontWeight"),lineHeight:Qn("Body.lineHeight"),letterSpacing:Qn("Body.letterSpacing")},BodySmall:{fontFamily:Qn("BodySmall.fontFamily"),fontSize:Qn("BodySmall.fontSize"),fontWeight:Qn("BodySmall.fontWeight"),lineHeight:Qn("BodySmall.lineHeight"),letterSpacing:Qn("BodySmall.letterSpacing")},XSmall:{fontFamily:Qn("XSmall.fontFamily"),fontSize:Qn("XSmall.fontSize"),fontWeight:Qn("XSmall.fontWeight"),lineHeight:Qn("XSmall.lineHeight"),letterSpacing:Qn("XSmall.letterSpacing")}},tr=t=>{switch(t){case 700:case"bold":return Jn.Bold;case 600:case"semibold":return Jn.Semibold;case 300:case"light":return Jn.Light;case 400:case"regular":return Jn.Regular;default:return""}},er=(t,e)=>n=>{const r=Kn[t].fontFamily(n),i=Kn[t].fontWeight(n);return Object.values(Jn).includes(r)?m`
|
|
24
|
+
font-family: ${tr(e)||tr(i)||r};
|
|
25
25
|
font-weight: normal !important;
|
|
26
26
|
`:m`
|
|
27
27
|
font-family: ${r};
|
|
28
|
-
font-weight: ${(
|
|
29
|
-
`},
|
|
30
|
-
${
|
|
28
|
+
font-weight: ${(nr(e)||i)??"normal"};
|
|
29
|
+
`},nr=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""}},rr=(t,e,n=!1)=>r=>{const i=Kn[t],o=i.fontSize(r);return m`
|
|
30
|
+
${er(t,e)}
|
|
31
31
|
font-size: ${o}rem !important;
|
|
32
32
|
line-height: ${i.lineHeight}rem !important;
|
|
33
33
|
letter-spacing: ${i.letterSpacing(r)||0}rem !important;
|
|
34
34
|
${m`
|
|
35
35
|
margin-bottom: ${o*(n?1.05:0)}rem;
|
|
36
36
|
`}
|
|
37
|
-
`},
|
|
37
|
+
`},ir=(t=!1,e=!1)=>e?m`
|
|
38
38
|
display: block;
|
|
39
39
|
`:t?m`
|
|
40
40
|
display: inline;
|
|
41
41
|
`:m`
|
|
42
42
|
display: block;
|
|
43
|
-
`;var
|
|
43
|
+
`;var or,ar={};Object.defineProperty(ar,"__esModule",{value:!0});var lr=t;const cr=t=>lr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:lr.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 sr;cr.displayName="ExternalIcon",or=ar.ExternalIcon=cr,function(t){t.D1=p.h1`
|
|
44
44
|
${t=>m`
|
|
45
|
-
${
|
|
46
|
-
color: ${
|
|
47
|
-
${
|
|
45
|
+
${rr("D1",t.weight,t.paragraph)}
|
|
46
|
+
color: ${Xn.Neutral[1]};
|
|
47
|
+
${ir(t.inline,t.paragraph)}
|
|
48
48
|
`}
|
|
49
49
|
`,t.D2=p.h1`
|
|
50
50
|
${t=>m`
|
|
51
|
-
${
|
|
52
|
-
color: ${
|
|
53
|
-
${
|
|
51
|
+
${rr("D2",t.weight,t.paragraph)}
|
|
52
|
+
color: ${Xn.Neutral[1]};
|
|
53
|
+
${ir(t.inline,t.paragraph)}
|
|
54
54
|
`}
|
|
55
55
|
`,t.D3=p.h1`
|
|
56
56
|
${t=>m`
|
|
57
|
-
${
|
|
58
|
-
color: ${
|
|
59
|
-
${
|
|
57
|
+
${rr("D3",t.weight,t.paragraph)}
|
|
58
|
+
color: ${Xn.Neutral[1]};
|
|
59
|
+
${ir(t.inline,t.paragraph)}
|
|
60
60
|
`}
|
|
61
61
|
`,t.D4=p.h1`
|
|
62
62
|
${t=>m`
|
|
63
|
-
${
|
|
64
|
-
color: ${
|
|
65
|
-
${
|
|
63
|
+
${rr("D4",t.weight,t.paragraph)}
|
|
64
|
+
color: ${Xn.Neutral[1]};
|
|
65
|
+
${ir(t.inline,t.paragraph)}
|
|
66
66
|
`}
|
|
67
67
|
`,t.DBody=p.h1`
|
|
68
68
|
${t=>m`
|
|
69
|
-
${
|
|
70
|
-
color: ${
|
|
71
|
-
${
|
|
69
|
+
${rr("DBody",t.weight,t.paragraph)}
|
|
70
|
+
color: ${Xn.Neutral[1]};
|
|
71
|
+
${ir(t.inline,t.paragraph)}
|
|
72
72
|
`}
|
|
73
73
|
`,t.H1=p.h1`
|
|
74
74
|
${t=>m`
|
|
75
|
-
${
|
|
76
|
-
color: ${
|
|
77
|
-
${
|
|
75
|
+
${rr("H1",t.weight,t.paragraph)}
|
|
76
|
+
color: ${Xn.Neutral[1]};
|
|
77
|
+
${ir(t.inline,t.paragraph)}
|
|
78
78
|
`}
|
|
79
79
|
`,t.H2=p.h2`
|
|
80
80
|
${t=>m`
|
|
81
|
-
${
|
|
82
|
-
color: ${
|
|
83
|
-
${
|
|
81
|
+
${rr("H2",t.weight,t.paragraph)}
|
|
82
|
+
color: ${Xn.Neutral[1]};
|
|
83
|
+
${ir(t.inline,t.paragraph)}
|
|
84
84
|
`}
|
|
85
85
|
`,t.H3=p.h3`
|
|
86
86
|
${t=>m`
|
|
87
|
-
${
|
|
88
|
-
color: ${
|
|
89
|
-
${
|
|
87
|
+
${rr("H3",t.weight,t.paragraph)}
|
|
88
|
+
color: ${Xn.Neutral[1]};
|
|
89
|
+
${ir(t.inline,t.paragraph)}
|
|
90
90
|
`}
|
|
91
91
|
`,t.H4=p.h4`
|
|
92
92
|
${t=>m`
|
|
93
|
-
${
|
|
94
|
-
color: ${
|
|
95
|
-
${
|
|
93
|
+
${rr("H4",t.weight,t.paragraph)}
|
|
94
|
+
color: ${Xn.Neutral[1]};
|
|
95
|
+
${ir(t.inline,t.paragraph)}
|
|
96
96
|
`}
|
|
97
97
|
`,t.H5=p.h5`
|
|
98
98
|
${t=>m`
|
|
99
|
-
${
|
|
100
|
-
color: ${
|
|
101
|
-
${
|
|
99
|
+
${rr("H5",t.weight,t.paragraph)}
|
|
100
|
+
color: ${Xn.Neutral[1]};
|
|
101
|
+
${ir(t.inline,t.paragraph)}
|
|
102
102
|
`}
|
|
103
103
|
`,t.H6=p.h6`
|
|
104
104
|
${t=>m`
|
|
105
|
-
${
|
|
106
|
-
color: ${
|
|
107
|
-
${
|
|
105
|
+
${rr("H6",t.weight,t.paragraph)}
|
|
106
|
+
color: ${Xn.Neutral[1]};
|
|
107
|
+
${ir(t.inline,t.paragraph)}
|
|
108
108
|
`}
|
|
109
109
|
`,t.Body=p.p`
|
|
110
110
|
${t=>m`
|
|
111
|
-
${
|
|
112
|
-
color: ${
|
|
113
|
-
${
|
|
111
|
+
${rr("Body",t.weight,t.paragraph)}
|
|
112
|
+
color: ${Xn.Neutral[1]};
|
|
113
|
+
${ir(t.inline,t.paragraph)}
|
|
114
114
|
`}
|
|
115
115
|
`,t.BodySmall=p.p`
|
|
116
116
|
${t=>m`
|
|
117
|
-
${
|
|
118
|
-
color: ${
|
|
119
|
-
${
|
|
117
|
+
${rr("BodySmall",t.weight,t.paragraph)}
|
|
118
|
+
color: ${Xn.Neutral[1]};
|
|
119
|
+
${ir(t.inline,t.paragraph)}
|
|
120
120
|
`}
|
|
121
121
|
`,t.XSmall=p.span`
|
|
122
122
|
${t=>m`
|
|
123
|
-
${
|
|
124
|
-
color: ${
|
|
125
|
-
${
|
|
123
|
+
${rr("XSmall",t.weight,t.paragraph)}
|
|
124
|
+
color: ${Xn.Neutral[1]};
|
|
125
|
+
${ir(t.inline,t.paragraph)}
|
|
126
126
|
`}
|
|
127
|
-
`,t.Hyperlink={Default:t=>
|
|
127
|
+
`,t.Hyperlink={Default:t=>fr({...t,textStyle:"Body"}),Small:t=>fr({...t,textStyle:"BodySmall"})}}(sr||(sr={}));const ur=p.a`
|
|
128
128
|
${t=>m`
|
|
129
|
-
${
|
|
130
|
-
color: ${
|
|
129
|
+
${rr(t.textStyle,t.weight)}
|
|
130
|
+
color: ${Xn.Primary};
|
|
131
131
|
text-decoration: none;
|
|
132
132
|
|
|
133
133
|
:hover,
|
|
134
134
|
:active,
|
|
135
135
|
:focus {
|
|
136
|
-
color: ${
|
|
136
|
+
color: ${Xn.Secondary};
|
|
137
137
|
|
|
138
138
|
svg {
|
|
139
|
-
color: ${
|
|
139
|
+
color: ${Xn.Secondary};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
`}
|
|
143
|
-
`,
|
|
143
|
+
`,hr=p(or)`
|
|
144
144
|
height: 1rem;
|
|
145
145
|
width: 1rem;
|
|
146
146
|
margin-left: 0.4rem;
|
|
147
147
|
vertical-align: middle;
|
|
148
|
-
`,
|
|
148
|
+
`,fr=({external:t=!1,children:r,...i})=>n(ur,{...i,children:[r,t&&e(hr,{})]});var dr;!function(t){t[t.Subpage=0]="Subpage",t[t.Domain=1]="Domain"}(dr||(dr={}));const gr=44,pr=p.div`
|
|
149
149
|
position: relative;
|
|
150
150
|
display: flex;
|
|
151
151
|
align-items: center;
|
|
152
|
-
`,
|
|
152
|
+
`,mr=p(Gn)`
|
|
153
153
|
z-index: 2;
|
|
154
154
|
position: absolute;
|
|
155
155
|
bottom: 1rem;
|
|
156
|
-
background-color: ${
|
|
156
|
+
background-color: ${Xn.Neutral[8]};
|
|
157
157
|
box-shadow: 0px 2px 8px rgba(104, 104, 104, 0.5);
|
|
158
158
|
border-radius: 50%;
|
|
159
159
|
padding: 0.5rem;
|
|
@@ -175,37 +175,37 @@ import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import*as i f
|
|
|
175
175
|
&:focus {
|
|
176
176
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
177
177
|
}
|
|
178
|
-
`,
|
|
178
|
+
`,yr=p(Ct)`
|
|
179
179
|
width: 1rem;
|
|
180
180
|
height: 1rem;
|
|
181
|
-
color: ${
|
|
182
|
-
`,
|
|
181
|
+
color: ${Xn.Primary};
|
|
182
|
+
`,vr=p(Ht)`
|
|
183
183
|
font-size: 1rem;
|
|
184
|
-
color: ${
|
|
185
|
-
|
|
184
|
+
color: ${Xn.Primary};
|
|
185
|
+
`,$r=p.div`
|
|
186
186
|
overflow: hidden;
|
|
187
187
|
flex-grow: 1;
|
|
188
188
|
position: relative;
|
|
189
189
|
height: 5rem;
|
|
190
|
-
|
|
190
|
+
`,Sr=p.div`
|
|
191
191
|
position: relative;
|
|
192
192
|
white-space: nowrap;
|
|
193
193
|
height: 1.25rem;
|
|
194
|
-
`,
|
|
194
|
+
`,br=p.div`
|
|
195
195
|
display: flex;
|
|
196
196
|
white-space: nowrap;
|
|
197
|
-
`,
|
|
197
|
+
`,wr=p.div`
|
|
198
198
|
display: inline-block;
|
|
199
|
-
width: ${
|
|
199
|
+
width: ${gr}px;
|
|
200
200
|
height: ${({isHour:t})=>t?"1.25rem":"0.625rem"};
|
|
201
201
|
position: relative;
|
|
202
|
-
border-left: 1px solid ${
|
|
203
|
-
`,
|
|
204
|
-
color: ${
|
|
202
|
+
border-left: 1px solid ${Xn.Neutral[4]};
|
|
203
|
+
`,Dr=p(sr.XSmall)`
|
|
204
|
+
color: ${Xn.Neutral[2]};
|
|
205
205
|
position: absolute;
|
|
206
206
|
bottom: 10%;
|
|
207
207
|
left: 10%;
|
|
208
|
-
`,
|
|
208
|
+
`,Fr=p.div`
|
|
209
209
|
position: absolute;
|
|
210
210
|
height: 3.375rem;
|
|
211
211
|
width: ${({$width:t})=>`${t}px`};
|
|
@@ -216,20 +216,20 @@ import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import*as i f
|
|
|
216
216
|
${t=>"stripes"===t.$styleType&&m`
|
|
217
217
|
background: repeating-linear-gradient(
|
|
218
218
|
135deg,
|
|
219
|
-
${t.$bgColor2||
|
|
220
|
-
${t.$bgColor2||
|
|
219
|
+
${t.$bgColor2||Xn.Neutral[5]} 0px,
|
|
220
|
+
${t.$bgColor2||Xn.Neutral[5]} 10px,
|
|
221
221
|
${t.$bgColor} 10px,
|
|
222
222
|
${t.$bgColor} 20px
|
|
223
223
|
);
|
|
224
224
|
`}
|
|
225
|
-
`,
|
|
225
|
+
`,Hr=p.div`
|
|
226
226
|
position: absolute;
|
|
227
227
|
top: 1.25rem;
|
|
228
228
|
height: 3.375rem;
|
|
229
229
|
z-index: 1;
|
|
230
|
-
border-right: 1px solid ${
|
|
231
|
-
`,
|
|
232
|
-
color: ${t=>t.$color||
|
|
230
|
+
border-right: 1px solid ${Xn.Neutral[4]};
|
|
231
|
+
`,Br=p(sr.XSmall)`
|
|
232
|
+
color: ${t=>t.$color||Xn.Neutral[3](t)};
|
|
233
233
|
position: absolute;
|
|
234
234
|
bottom: 0;
|
|
235
235
|
padding-left: 4px;
|
|
@@ -238,5 +238,5 @@ import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import*as i f
|
|
|
238
238
|
white-space: nowrap;
|
|
239
239
|
overflow: hidden;
|
|
240
240
|
text-overflow: ellipsis;
|
|
241
|
-
`,
|
|
241
|
+
`,Mr=({"data-testid":t,className:i,startTime:o,endTime:a,slots:s,onSlotClick:u,onClick:h,styleAttributes:d})=>{const g=l(null),[p,m]=c(0),[y,v]=c(0);f((()=>{const t=g.current;return t&&t.addEventListener("scroll",S),()=>{t&&t.removeEventListener("scroll",S)}}),[]);const S=()=>{g.current&&m(g.current.scrollLeft)},w=t=>{g.current&&g.current.scrollBy({left:"left"===t?-110:110,behavior:"smooth"})};!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,a=t.refreshOptions,s=t.handleWidth,u=void 0===s||s,h=t.handleHeight,f=void 0===h||h,d=t.targetRef,g=t.observerOptions,p=t.onResize,m=l(n),y=l(null),v=null!=d?d:y,$=l(),S=c({width:void 0,height:void 0}),w=S[0],D=S[1];dt((function(){if(!ut()){var t=ft(p,D,u,f);$.current=ct((function(e){(u||f)&&e.forEach((function(e){var n=e&&e.contentRect||{},r=n.width,i=n.height;!m.current&&!ut()&&t({width:r,height:i}),m.current=!1}))}),r,o,a);var e=new window.ResizeObserver($.current);return v.current&&e.observe(v.current,g),function(){e.disconnect();var t=$.current;t&&t.cancel&&t.cancel()}}}),[r,o,a,u,f,p,g,v.current]),b({ref:v},w)}({onResize:()=>{g.current&&v(g.current.clientWidth)},targetRef:g,refreshMode:"debounce",refreshRate:50});const D=t=>t<=22,F=e=>{if(t)return`${t}-${e}`};return n(pr,{className:i,children:[n($r,{"data-testid":t,ref:g,children:[e(Sr,{"data-testid":F("time-marker-wrapper"),"data-id":"marker-wrapper",children:(()=>{const t=[],n=$(o,"HH:mm"),r=$(a,"HH:mm");for(let i=n;i.isBefore(r);i=i.add(30,"minute")){const n=0===i.minute();t.push(e(wr,{isHour:n,children:n&&e(Dr,{weight:"semibold",children:Ft.formatHourlyDisplay(i.format("HH:mm"))})},i.format("HH:mm")))}return t})()}),n(br,{"data-testid":F("time-slot-wrapper"),"data-id":"slot-wrapper",children:[d&&(()=>{const{backgroundColor:t,backgroundColor2:i,styleType:l="default"}=d,c=Ft.calculateWidth(o,a,gr);return n(r,{children:[e(Hr,{}),e(Fr,{"data-testid":F("default-timeslot"),$width:c,$left:0,$styleType:l,$bgColor:t,$bgColor2:i,$clickable:!!h,onClick:h},"default-timeslot"),e(Hr,{style:{left:`${c}px`}})]})})(),s.map((t=>{const{id:i,startTime:a,endTime:l,label:c,clickable:s=!0,styleAttributes:h}=t,{color:f,styleType:d="default",backgroundColor:g,backgroundColor2:p}=h,m=Ft.calculateWidth(a,l,gr),y=Ft.calculateWidth(o,a,gr);return n(r,{children:[e(Hr,{style:{left:`${y}px`}}),e(Fr,{"data-testid":F(`${i}-timeslot`),$width:m,$left:y,$styleType:d,$bgColor:g,$bgColor2:p,$clickable:s,onClick:()=>s&&u(t),children:c&&e(Br,{$slotWidth:m,$color:f,weight:"semibold",children:D(m)?"...":c})},i),e(Hr,{style:{left:`${y+m}px`}})]})}))]})]}),e(r,{children:p>0&&e(mr,{"data-testid":F("arrow-left"),$direction:"left",focusHighlight:!1,focusOutline:"none",onClick:()=>{w("left")},children:e(vr,{})})}),p+y<Ft.calculateWidth(o,a,gr)?e(mr,{"data-testid":F("arrow-right"),$direction:"right",focusHighlight:!1,focusOutline:"none",onClick:()=>{w("right")},children:e(yr,{})}):e(r,{})]})};export{Mr as TimeSlotBar};
|
|
242
242
|
//# sourceMappingURL=index.js.map
|