@meetelise/chat 1.62.0 → 1.63.0

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.
@@ -1,4 +1,4 @@
1
- import { LitElement, TemplateResult } from "lit";
1
+ import { LitElement, TemplateResult, PropertyValues } from "lit";
2
2
  import { Month } from "../utils";
3
3
  export declare class DatePicker extends LitElement {
4
4
  /**
@@ -12,6 +12,14 @@ export declare class DatePicker extends LitElement {
12
12
  */
13
13
  defaultYear?: number;
14
14
  defaultDate?: Date;
15
+ /**
16
+ * Optional "yyyy-MM": show that month, and move there each time it changes.
17
+ * Left unset, the calendar opens on the current month as before.
18
+ */
19
+ shownMonth?: string;
20
+ protected willUpdate(changedProperties: PropertyValues): void;
21
+ /** Tour-scheduler-v2's look: white and bordered, open days tinted with the brand colour. */
22
+ outlined: boolean;
15
23
  availabilities?: {
16
24
  [day: string]: Date[];
17
25
  };
@@ -4,6 +4,8 @@ export declare class TourTypeOption extends LitElement {
4
4
  heading: string;
5
5
  subtitle: string;
6
6
  selected: boolean;
7
+ /** A white row with the icon on the left, marked by a brand-colour tint when selected. */
8
+ outlined: boolean;
7
9
  onClick?: () => void;
8
10
  primaryColor: string;
9
11
  foregroundColorOnPrimaryBackgroundColor: string;
@@ -0,0 +1,2 @@
1
+ import { SVGTemplateResult } from "lit";
2
+ export declare const CalendarCheckIcon: (color?: string) => SVGTemplateResult;
@@ -0,0 +1,2 @@
1
+ import { SVGTemplateResult } from "lit";
2
+ export declare const CheckCircleIcon: (color?: string) => SVGTemplateResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.62.0",
3
+ "version": "1.63.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",
@@ -184,20 +184,20 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
184
184
  flex-basis: 92px;
185
185
  }
186
186
  }
187
- `],Yn([pe({attribute:!1})],Kn.prototype,"country",void 0),Yn([pe({type:String})],Kn.prototype,"value",void 0),Yn([pe({type:Boolean})],Kn.prototype,"invalid",void 0),Yn([pe({type:String})],Kn.prototype,"placeholder",void 0),Yn([fe()],Kn.prototype,"selectedCountry",void 0),Kn=Yn([ce("international-phone-input")],Kn);const Xn=ve(class extends we{constructor(e){var t;if(super(e),e.type!==be||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null==i?t:t+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:n}=e.element;if(void 0===this.ct){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach(e=>{null==t[e]&&(this.ct.delete(e),e.includes("-")?n.removeProperty(e):n[e]="")});for(const e in t){const i=t[e];null!=i&&(this.ct.add(e),e.includes("-")?n.setProperty(e,i):n[e]=i)}return z}}),Zn="#646987",Jn="#ffffff",ei=e=>({r:parseInt(e.substring(1,3),16),g:parseInt(e.substring(3,5),16),b:parseInt(e.substring(5,7),16)}),ti=(e,t,n)=>"#"+[e,t,n].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join(""),ni=(e,t)=>{let n=parseInt(e.substr(1,2),16),i=parseInt(e.substr(3,2),16),r=parseInt(e.substr(5,2),16);return n=Math.round(n*(1-t)+255*t),i=Math.round(i*(1-t)+255*t),r=Math.round(r*(1-t)+255*t),"#"+n.toString(16).padStart(2,"0")+i.toString(16).padStart(2,"0")+r.toString(16).padStart(2,"0")},ii=(e,t)=>2===e||70392===t;var ri=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const oi="#202020";let ai=class extends ue{constructor(){super(...arguments),this.heading="",this.subtitle="",this.selected=!1,this.primaryColor=Zn,this.foregroundColorOnPrimaryBackgroundColor="white"}render(){return H`
187
+ `],Yn([pe({attribute:!1})],Kn.prototype,"country",void 0),Yn([pe({type:String})],Kn.prototype,"value",void 0),Yn([pe({type:Boolean})],Kn.prototype,"invalid",void 0),Yn([pe({type:String})],Kn.prototype,"placeholder",void 0),Yn([fe()],Kn.prototype,"selectedCountry",void 0),Kn=Yn([ce("international-phone-input")],Kn);const Xn=ve(class extends we{constructor(e){var t;if(super(e),e.type!==be||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null==i?t:t+`${n=n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:n}=e.element;if(void 0===this.ct){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach(e=>{null==t[e]&&(this.ct.delete(e),e.includes("-")?n.removeProperty(e):n[e]="")});for(const e in t){const i=t[e];null!=i&&(this.ct.add(e),e.includes("-")?n.setProperty(e,i):n[e]=i)}return z}}),Zn="#646987",Jn="#ffffff",ei=e=>({r:parseInt(e.substring(1,3),16),g:parseInt(e.substring(3,5),16),b:parseInt(e.substring(5,7),16)}),ti=(e,t,n)=>"#"+[e,t,n].map(e=>{const t=e.toString(16);return 1===t.length?"0"+t:t}).join(""),ni=(e,t)=>{let n=parseInt(e.substr(1,2),16),i=parseInt(e.substr(3,2),16),r=parseInt(e.substr(5,2),16);return n=Math.round(n*(1-t)+255*t),i=Math.round(i*(1-t)+255*t),r=Math.round(r*(1-t)+255*t),"#"+n.toString(16).padStart(2,"0")+i.toString(16).padStart(2,"0")+r.toString(16).padStart(2,"0")},ii=(e,t)=>2===e||70392===t;var ri=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const oi="#202020";let ai=class extends ue{constructor(){super(...arguments),this.heading="",this.subtitle="",this.selected=!1,this.outlined=!1,this.primaryColor=Zn,this.foregroundColorOnPrimaryBackgroundColor="white"}render(){return H`
188
188
  <div
189
189
  class="tour-type-option"
190
190
  role="radio"
191
191
  tabindex="0"
192
192
  aria-checked=${this.selected?"true":"false"}
193
193
  aria-label="${this.heading} ${this.subtitle}"
194
- style=${Xn({background:this.selected?this.primaryColor:void 0})}
194
+ style=${Xn(this.outlined?{background:this.selected?`color-mix(in srgb, ${this.primaryColor} 8%, #ffffff)`:void 0,"border-color":this.selected?this.primaryColor:void 0}:{background:this.selected?this.primaryColor:void 0})}
195
195
  >
196
196
  <div class="content">
197
- <slot name="icon"></slot>
197
+ ${this.outlined?H`<span class="icon"><slot name="icon"></slot></span>`:H`<slot name="icon"></slot>`}
198
198
  <div
199
199
  class="text"
200
- style=${Xn({color:this.selected?this.foregroundColorOnPrimaryBackgroundColor:void 0})}
200
+ style=${Xn({color:this.selected&&!this.outlined?this.foregroundColorOnPrimaryBackgroundColor:void 0})}
201
201
  >
202
202
  <span class="heading">${this.heading}</span>
203
203
  <span class="subtitle">${this.subtitle}</span>
@@ -258,7 +258,53 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
258
258
  .subtitle {
259
259
  font-weight: 400;
260
260
  }
261
- `],ri([pe({type:String})],ai.prototype,"heading",void 0),ri([pe({type:String})],ai.prototype,"subtitle",void 0),ri([pe({type:Boolean})],ai.prototype,"selected",void 0),ri([pe({attribute:!1})],ai.prototype,"onClick",void 0),ri([pe({attribute:!0})],ai.prototype,"primaryColor",void 0),ri([pe({attribute:!0})],ai.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),ai=ri([ce("tour-type-option")],ai);var ci={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const hi=function(e,t,n){var i,r=ci[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function pi(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fi={date:pi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:pi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:pi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var gi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const mi=function(e,t,n,i){return gi[e]};function bi(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}}const yi={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:bi({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:bi({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:bi({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:bi({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:bi({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function vi(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var wi,Ci={ordinalNumber:(wi={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(wi.matchPattern);if(!n)return null;var i=n[0],r=e.match(wi.parsePattern);if(!r)return null;var o=wi.valueCallback?wi.valueCallback(r[0]):r[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(i.length)}}),era:vi({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:vi({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:vi({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:vi({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:vi({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const xi={code:"en-US",formatDistance:hi,formatLong:fi,formatRelative:mi,localize:yi,match:Ci,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Si(e,t){si(2,arguments);var n=li(e).getTime(),i=$i(t);return new Date(n+i)}function Ai(e){si(1,arguments);var t=li(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function ki(e){si(1,arguments);var t=li(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=Ai(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Ai(o);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Ei(e){si(1,arguments);var t=li(e),n=Ai(t).getTime()-function(e){si(1,arguments);var t=ki(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Ai(n)}(t).getTime();return Math.round(n/6048e5)+1}function Ti(e,t){si(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.weekStartsOn,o=null==r?0:$i(r),a=null==n.weekStartsOn?o:$i(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=li(e),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function _i(e,t){si(1,arguments);var n=li(e),i=n.getUTCFullYear(),r=t||{},o=r.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:$i(a),l=null==r.firstWeekContainsDate?s:$i(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(i+1,0,l),u.setUTCHours(0,0,0,0);var d=Ti(u,t),c=new Date(0);c.setUTCFullYear(i,0,l),c.setUTCHours(0,0,0,0);var h=Ti(c,t);return n.getTime()>=d.getTime()?i+1:n.getTime()>=h.getTime()?i:i-1}function Oi(e,t){si(1,arguments);var n=li(e),i=Ti(n,t).getTime()-function(e,t){si(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.firstWeekContainsDate,o=null==r?1:$i(r),a=null==n.firstWeekContainsDate?o:$i(n.firstWeekContainsDate),s=_i(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),Ti(l,t)}(n,t).getTime();return Math.round(i/6048e5)+1}function Pi(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}const Ii={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Pi("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Pi(n+1,2)},d:function(e,t){return Pi(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Pi(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Pi(e.getUTCHours(),t.length)},m:function(e,t){return Pi(e.getUTCMinutes(),t.length)},s:function(e,t){return Pi(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return Pi(Math.floor(i*Math.pow(10,n-3)),t.length)}};var Ni="midnight",Mi="noon",Di="morning",Li="afternoon",Ri="evening",Ui="night",Bi={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return Ii.y(e,t)},Y:function(e,t,n,i){var r=_i(e,i),o=r>0?r:1-r;return"YY"===t?Pi(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Pi(o,t.length)},R:function(e,t){return Pi(ki(e),t.length)},u:function(e,t){return Pi(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Pi(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Pi(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return Ii.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Pi(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=Oi(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Pi(r,t.length)},I:function(e,t,n){var i=Ei(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):Pi(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ii.d(e,t)},D:function(e,t,n){var i=function(e){si(1,arguments);var t=li(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=n-t.getTime();return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):Pi(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Pi(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Pi(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return Pi(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?Mi:0===r?Ni:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?Ri:r>=12?Li:r>=4?Di:Ui,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Ii.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ii.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):Pi(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):Pi(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ii.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ii.s(e,t)},S:function(e,t){return Ii.S(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Fi(r);case"XXXX":case"XX":return Hi(r);default:return Hi(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return Fi(r);case"xxxx":case"xx":return Hi(r);default:return Hi(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ji(r,":");default:return"GMT"+Hi(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ji(r,":");default:return"GMT"+Hi(r,":")}},t:function(e,t,n,i){var r=i._originalDate||e;return Pi(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,i){return Pi((i._originalDate||e).getTime(),t.length)}};function ji(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+Pi(o,2)}function Fi(e,t){return e%60==0?(e>0?"-":"+")+Pi(Math.abs(e)/60,2):Hi(e,t)}function Hi(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+Pi(Math.floor(r/60),2)+n+Pi(r%60,2)}const Gi=Bi;function zi(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Qi(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Wi={p:Qi,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return zi(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",zi(r,t)).replace("{{time}}",Qi(o,t))}};const Vi=Wi;function qi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Yi=["D","DD"],Ki=["YY","YYYY"];function Xi(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var Zi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ji=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,er=/^'([^]*?)'?$/,tr=/''/g,nr=/[a-zA-Z]/;function ir(e,t,n){si(2,arguments);var i=String(t),r=n||{},o=r.locale||xi,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:$i(a),l=null==r.firstWeekContainsDate?s:$i(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,d=null==u?0:$i(u),c=null==r.weekStartsOn?d:$i(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=li(e);if(!di(h))throw new RangeError("Invalid time value");var p=function(e,t){return si(2,arguments),Si(e,-$i(t))}(h,qi(h)),f={firstWeekContainsDate:l,weekStartsOn:c,locale:o,_originalDate:h};return i.match(Ji).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,Vi[t])(e,o.formatLong,f):e}).join("").match(Zi).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return n.match(er)[1].replace(tr,"'");var a,s=Gi[i];if(s)return r.useAdditionalWeekYearTokens||(a=n,-1===Ki.indexOf(a))||Xi(n,t,e),!r.useAdditionalDayOfYearTokens&&function(e){return-1!==Yi.indexOf(e)}(n)&&Xi(n,t,e),s(p,n,o.localize,f);if(i.match(nr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}const rr=(e,t)=>new Date(e,t+1,0).getDate(),or=(e,t)=>new Date(e,t,1).getDay(),ar=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],sr=["January","February","March","April","May","June","July","August","September","October","November","December"];function lr(e){si(1,arguments);var t=li(e);return t.setHours(0,0,0,0),t}function ur(e,t){si(2,arguments);var n=lr(e),i=lr(t);return n.getTime()===i.getTime()}var dr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let cr=class extends ue{constructor(){var e;super(...arguments),this._selectedDate=this.defaultDate,this.now=new Date,this._monthShown=this.defaultMonth&&-1!==sr.indexOf(this.defaultMonth)?sr.indexOf(this.defaultMonth):this.now.getMonth(),this.yearShown=null!==(e=this.defaultYear)&&void 0!==e?e:this.now.getFullYear()}set selectedDate(e){const t=this._selectedDate;this._selectedDate=e,this.requestUpdate("selectedDate",t),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}get selectedDate(){return this._selectedDate}updated(e){if(e.has("defaultDate")){const t=e.get("defaultDate");if(!this.defaultDate)return void(this.selectedDate=void 0);t&&ur(this.defaultDate,t)||(this.selectedDate=this.defaultDate)}}set monthShown(e){const t=this._monthShown;12===e?(this._monthShown=0,this.yearShown++):-1===e?(this._monthShown=11,this.yearShown--):this._monthShown=e,this.requestUpdate("monthShown",t)}get monthShown(){return this._monthShown}render(){const e=rr(this.yearShown,this.monthShown),t=ar[or(this.yearShown,this.monthShown)],n=(i=this.yearShown,r=this.monthShown,rr(r>0?i:i-1,(e=>e>0?e-1:11)(r)));var i,r;const o=ar[((e,t)=>(or(e,t)+rr(e,t)%7-1)%7)(this.yearShown,this.monthShown)],a=[];if("Sunday"!==t){for(let e=ar.indexOf(t);e>0;e--)a.push(n+1-e)}const s=new Array(e).fill(null).map((e,t)=>t+1),l=[];if("Saturday"!==o){const e=[...ar].reverse().indexOf(o);for(let t=1;t<=e;t++)l.push(t)}const u=[...a,...s,...l].map((e,t)=>{var n,i,r;const o=this.yearShown<this.now.getFullYear()||this.yearShown===this.now.getFullYear()&&this.monthShown<this.now.getMonth()||this.yearShown===this.now.getFullYear()&&this.monthShown===this.now.getMonth()&&e<this.now.getDate(),l=t<a.length||t>=a.length+s.length,u=!l&&this.now.getMonth()===this.monthShown&&this.now.getDate()===e,d=!!this.selectedDate&&!l&&this.monthShown===function(e){return si(1,arguments),li(e).getMonth()}(this.selectedDate)&&this.yearShown===function(e){return si(1,arguments),li(e).getFullYear()}(this.selectedDate)&&e===function(e){return si(1,arguments),li(e).getDate()}(this.selectedDate),c=ir(new Date(this.yearShown,this.monthShown,e),"y-MM-dd"),h=!(null===(n=this.availabilities)||void 0===n?void 0:n[c])||0===(null===(r=null===(i=this.availabilities)||void 0===i?void 0:i[c])||void 0===r?void 0:r.length),p=t<a.length,f=t>=a.length+s.length,g=ir(new Date(this.yearShown,this.monthShown+(p?-1:f?1:0),e),"MMMM d, y");return H`<button
261
+
262
+ :host([outlined]) .tour-type-option,
263
+ :host([outlined][selected]) .tour-type-option {
264
+ background: #ffffff;
265
+ border: 1px solid #e7e7e7;
266
+ cursor: pointer;
267
+ height: auto;
268
+ padding: 10px 12px;
269
+ }
270
+
271
+ :host([outlined]) .content {
272
+ justify-content: flex-start;
273
+ gap: 12px;
274
+ position: static;
275
+ transform: none;
276
+ }
277
+
278
+ :host([outlined]) .icon {
279
+ align-items: center;
280
+ background: #f8f9fa;
281
+ border-radius: 8px;
282
+ display: flex;
283
+ flex-shrink: 0;
284
+ height: 40px;
285
+ justify-content: center;
286
+ width: 40px;
287
+ }
288
+
289
+ :host([outlined]) ::slotted(svg) {
290
+ height: 20px;
291
+ width: 20px;
292
+ }
293
+
294
+ :host([outlined]) .text,
295
+ :host([outlined][selected]) .text {
296
+ color: #202020;
297
+ }
298
+
299
+ :host([outlined]) .heading {
300
+ font-weight: 400;
301
+ }
302
+
303
+ :host([outlined]) .subtitle {
304
+ color: #737373;
305
+ font-size: 13px;
306
+ }
307
+ `],ri([pe({type:String})],ai.prototype,"heading",void 0),ri([pe({type:String})],ai.prototype,"subtitle",void 0),ri([pe({type:Boolean})],ai.prototype,"selected",void 0),ri([pe({type:Boolean,reflect:!0})],ai.prototype,"outlined",void 0),ri([pe({attribute:!1})],ai.prototype,"onClick",void 0),ri([pe({attribute:!0})],ai.prototype,"primaryColor",void 0),ri([pe({attribute:!0})],ai.prototype,"foregroundColorOnPrimaryBackgroundColor",void 0),ai=ri([ce("tour-type-option")],ai);var ci={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const hi=function(e,t,n){var i,r=ci[e];return i="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function pi(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fi={date:pi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:pi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:pi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var gi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const mi=function(e,t,n,i){return gi[e]};function bi(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(t):t]}}const yi={ordinalNumber:function(e,t){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:bi({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:bi({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:bi({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:bi({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:bi({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function vi(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var wi,Ci={ordinalNumber:(wi={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(wi.matchPattern);if(!n)return null;var i=n[0],r=e.match(wi.parsePattern);if(!r)return null;var o=wi.valueCallback?wi.valueCallback(r[0]):r[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(i.length)}}),era:vi({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:vi({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:vi({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:vi({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:vi({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const xi={code:"en-US",formatDistance:hi,formatLong:fi,formatRelative:mi,localize:yi,match:Ci,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Si(e,t){si(2,arguments);var n=li(e).getTime(),i=$i(t);return new Date(n+i)}function Ai(e){si(1,arguments);var t=li(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function ki(e){si(1,arguments);var t=li(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=Ai(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Ai(o);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Ei(e){si(1,arguments);var t=li(e),n=Ai(t).getTime()-function(e){si(1,arguments);var t=ki(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Ai(n)}(t).getTime();return Math.round(n/6048e5)+1}function Ti(e,t){si(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.weekStartsOn,o=null==r?0:$i(r),a=null==n.weekStartsOn?o:$i(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=li(e),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function _i(e,t){si(1,arguments);var n=li(e),i=n.getUTCFullYear(),r=t||{},o=r.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:$i(a),l=null==r.firstWeekContainsDate?s:$i(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(i+1,0,l),u.setUTCHours(0,0,0,0);var d=Ti(u,t),c=new Date(0);c.setUTCFullYear(i,0,l),c.setUTCHours(0,0,0,0);var h=Ti(c,t);return n.getTime()>=d.getTime()?i+1:n.getTime()>=h.getTime()?i:i-1}function Oi(e,t){si(1,arguments);var n=li(e),i=Ti(n,t).getTime()-function(e,t){si(1,arguments);var n=t||{},i=n.locale,r=i&&i.options&&i.options.firstWeekContainsDate,o=null==r?1:$i(r),a=null==n.firstWeekContainsDate?o:$i(n.firstWeekContainsDate),s=_i(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),Ti(l,t)}(n,t).getTime();return Math.round(i/6048e5)+1}function Pi(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}const Ii={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Pi("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Pi(n+1,2)},d:function(e,t){return Pi(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Pi(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Pi(e.getUTCHours(),t.length)},m:function(e,t){return Pi(e.getUTCMinutes(),t.length)},s:function(e,t){return Pi(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return Pi(Math.floor(i*Math.pow(10,n-3)),t.length)}};var Ni="midnight",Mi="noon",Di="morning",Li="afternoon",Ri="evening",Ui="night",Bi={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return Ii.y(e,t)},Y:function(e,t,n,i){var r=_i(e,i),o=r>0?r:1-r;return"YY"===t?Pi(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Pi(o,t.length)},R:function(e,t){return Pi(ki(e),t.length)},u:function(e,t){return Pi(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Pi(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Pi(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return Ii.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Pi(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var r=Oi(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Pi(r,t.length)},I:function(e,t,n){var i=Ei(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):Pi(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ii.d(e,t)},D:function(e,t,n){var i=function(e){si(1,arguments);var t=li(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=n-t.getTime();return Math.floor(i/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):Pi(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Pi(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var r=e.getUTCDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Pi(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return Pi(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var i,r=e.getUTCHours();switch(i=12===r?Mi:0===r?Ni:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var i,r=e.getUTCHours();switch(i=r>=17?Ri:r>=12?Li:r>=4?Di:Ui,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var i=e.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Ii.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ii.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):Pi(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):Pi(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ii.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ii.s(e,t)},S:function(e,t){return Ii.S(e,t)},X:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Fi(r);case"XXXX":case"XX":return Hi(r);default:return Hi(r,":")}},x:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"x":return Fi(r);case"xxxx":case"xx":return Hi(r);default:return Hi(r,":")}},O:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ji(r,":");default:return"GMT"+Hi(r,":")}},z:function(e,t,n,i){var r=(i._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ji(r,":");default:return"GMT"+Hi(r,":")}},t:function(e,t,n,i){var r=i._originalDate||e;return Pi(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,i){return Pi((i._originalDate||e).getTime(),t.length)}};function ji(e,t){var n=e>0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),o=i%60;if(0===o)return n+String(r);var a=t||"";return n+String(r)+a+Pi(o,2)}function Fi(e,t){return e%60==0?(e>0?"-":"+")+Pi(Math.abs(e)/60,2):Hi(e,t)}function Hi(e,t){var n=t||"",i=e>0?"-":"+",r=Math.abs(e);return i+Pi(Math.floor(r/60),2)+n+Pi(r%60,2)}const Gi=Bi;function zi(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Qi(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Wi={p:Qi,P:function(e,t){var n,i=e.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return zi(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",zi(r,t)).replace("{{time}}",Qi(o,t))}};const Vi=Wi;function qi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Yi=["D","DD"],Ki=["YY","YYYY"];function Xi(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var Zi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ji=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,er=/^'([^]*?)'?$/,tr=/''/g,nr=/[a-zA-Z]/;function ir(e,t,n){si(2,arguments);var i=String(t),r=n||{},o=r.locale||xi,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:$i(a),l=null==r.firstWeekContainsDate?s:$i(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,d=null==u?0:$i(u),c=null==r.weekStartsOn?d:$i(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=li(e);if(!di(h))throw new RangeError("Invalid time value");var p=function(e,t){return si(2,arguments),Si(e,-$i(t))}(h,qi(h)),f={firstWeekContainsDate:l,weekStartsOn:c,locale:o,_originalDate:h};return i.match(Ji).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,Vi[t])(e,o.formatLong,f):e}).join("").match(Zi).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return n.match(er)[1].replace(tr,"'");var a,s=Gi[i];if(s)return r.useAdditionalWeekYearTokens||(a=n,-1===Ki.indexOf(a))||Xi(n,t,e),!r.useAdditionalDayOfYearTokens&&function(e){return-1!==Yi.indexOf(e)}(n)&&Xi(n,t,e),s(p,n,o.localize,f);if(i.match(nr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}const rr=(e,t)=>new Date(e,t+1,0).getDate(),or=(e,t)=>new Date(e,t,1).getDay(),ar=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],sr=["January","February","March","April","May","June","July","August","September","October","November","December"];function lr(e){si(1,arguments);var t=li(e);return t.setHours(0,0,0,0),t}function ur(e,t){si(2,arguments);var n=lr(e),i=lr(t);return n.getTime()===i.getTime()}var dr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let cr=class extends ue{constructor(){var e;super(...arguments),this.outlined=!1,this._selectedDate=this.defaultDate,this.now=new Date,this._monthShown=this.defaultMonth&&-1!==sr.indexOf(this.defaultMonth)?sr.indexOf(this.defaultMonth):this.now.getMonth(),this.yearShown=null!==(e=this.defaultYear)&&void 0!==e?e:this.now.getFullYear()}willUpdate(e){if(e.has("shownMonth")&&this.shownMonth){const[e,t]=this.shownMonth.split("-").map(Number);this.yearShown=e,this.monthShown=t-1}}set selectedDate(e){const t=this._selectedDate;this._selectedDate=e,this.requestUpdate("selectedDate",t),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}get selectedDate(){return this._selectedDate}updated(e){if(e.has("defaultDate")){const t=e.get("defaultDate");if(!this.defaultDate)return void(this.selectedDate=void 0);t&&ur(this.defaultDate,t)||(this.selectedDate=this.defaultDate)}}set monthShown(e){const t=this._monthShown;12===e?(this._monthShown=0,this.yearShown++):-1===e?(this._monthShown=11,this.yearShown--):this._monthShown=e,this.requestUpdate("monthShown",t)}get monthShown(){return this._monthShown}render(){const e=rr(this.yearShown,this.monthShown),t=ar[or(this.yearShown,this.monthShown)],n=(i=this.yearShown,r=this.monthShown,rr(r>0?i:i-1,(e=>e>0?e-1:11)(r)));var i,r;const o=ar[((e,t)=>(or(e,t)+rr(e,t)%7-1)%7)(this.yearShown,this.monthShown)],a=[];if("Sunday"!==t){for(let e=ar.indexOf(t);e>0;e--)a.push(n+1-e)}const s=new Array(e).fill(null).map((e,t)=>t+1),l=[];if("Saturday"!==o){const e=[...ar].reverse().indexOf(o);for(let t=1;t<=e;t++)l.push(t)}const u=[...a,...s,...l].map((e,t)=>{var n,i,r;const o=this.yearShown<this.now.getFullYear()||this.yearShown===this.now.getFullYear()&&this.monthShown<this.now.getMonth()||this.yearShown===this.now.getFullYear()&&this.monthShown===this.now.getMonth()&&e<this.now.getDate(),l=t<a.length||t>=a.length+s.length,u=!l&&this.now.getMonth()===this.monthShown&&this.now.getDate()===e,d=!!this.selectedDate&&!l&&this.monthShown===function(e){return si(1,arguments),li(e).getMonth()}(this.selectedDate)&&this.yearShown===function(e){return si(1,arguments),li(e).getFullYear()}(this.selectedDate)&&e===function(e){return si(1,arguments),li(e).getDate()}(this.selectedDate),c=ir(new Date(this.yearShown,this.monthShown,e),"y-MM-dd"),h=!(null===(n=this.availabilities)||void 0===n?void 0:n[c])||0===(null===(r=null===(i=this.availabilities)||void 0===i?void 0:i[c])||void 0===r?void 0:r.length),p=t<a.length,f=t>=a.length+s.length,g=ir(new Date(this.yearShown,this.monthShown+(p?-1:f?1:0),e),"MMMM d, y");return H`<button
262
308
  ?disabled=${o||h||l}
263
309
  aria-label=${g}
264
310
  aria-pressed=${d?"true":"false"}
@@ -485,7 +531,72 @@ var e={2:(e,t,n)=>{var i=n(2199),r=n(4664),o=n(5950);e.exports=function(e){retur
485
531
  .dayNumber:is(.differentMonth, .past, .noAvailabilities) {
486
532
  opacity: 30%;
487
533
  }
488
- `,dr([pe({attribute:"month",type:String})],cr.prototype,"defaultMonth",void 0),dr([pe({attribute:"year",type:Number})],cr.prototype,"defaultYear",void 0),dr([pe({attribute:!0})],cr.prototype,"defaultDate",void 0),dr([pe({attribute:!1})],cr.prototype,"availabilities",void 0),dr([pe({attribute:!1})],cr.prototype,"selectedDate",null),dr([fe()],cr.prototype,"monthShown",null),dr([fe()],cr.prototype,"yearShown",void 0),cr=dr([ce("date-picker")],cr);const hr=(e,t)=>{const n=[];for(let i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n},pr=e=>{const t=new Date,n=null!=e?e:Intl.DateTimeFormat().resolvedOptions().timeZone,i=(e=>{const t=new Date(e.getFullYear(),0,1),n=new Date(e.getFullYear(),6,1),i=Math.max(t.getTimezoneOffset(),n.getTimezoneOffset());return e.getTimezoneOffset()<i})(t);switch(n){case"America/St_Johns":return i?"NDT":"NST";case"America/Halifax":case"America/Glace_Bay":case"America/Moncton":case"America/Goose_Bay":return i?"ADT":"AST";case"America/Blanc-Sablon":return"AST";case"America/New_York":case"America/Indiana/Indianapolis":case"America/Toronto":case"America/Nipigon":case"America/Thunder_Bay":case"America/Iqaluit":case"America/Pangnirtung":return i?"EDT":"EST";case"America/Atikokan":return"EST";case"America/Chicago":case"America/Indiana/Knox":case"America/Winnipeg":case"America/Rainy_River":case"America/Resolute":case"America/Rankin_Inlet":return i?"CDT":"CST";case"America/Regina":case"America/Swift_Current":return"CST";case"America/Denver":case"America/Edmonton":case"America/Cambridge_Bay":case"America/Yellowknife":case"America/Inuvik":return i?"MDT":"MST";case"America/Phoenix":case"America/Dawson_Creek":case"America/Fort_Nelson":case"America/Creston":case"America/Whitehorse":case"America/Dawson":return"MST";case"America/Los_Angeles":case"America/Vancouver":return i?"PDT":"PST";case"America/Anchorage":return i?"AKDT":"AKST";case"America/Honolulu":return"HST";default:return n}};var fr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const gr=(e,t)=>e.reduce(function(e,t){return e[t.displayTimeZoned]=t,e},{})[t];let mr=class extends ue{constructor(){super(...arguments),this.options=[],this.selectedDateExists=!1,this.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.defaultSelectedTime=null,this.selected=this.defaultSelectedTime}get selectedTime(){return this.selected}updated(e){if(e.has("defaultSelectedTime")){const t=e.get("defaultSelectedTime");if(!this.selected&&this.defaultSelectedTime)return void(this.selected=this.defaultSelectedTime);if(!this.defaultSelectedTime)return void(this.selected=void 0);if(!t||this.defaultSelectedTime.displayTimeZoned!==t.displayTimeZoned)return void(this.selected=this.defaultSelectedTime)}}render(){var e,t;return 1!==(null===(e=this.options)||void 0===e?void 0:e.length)||this.selected||(this.selected=gr(this.options,this.options[0].displayTimeZoned),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),(null===(t=this.options)||void 0===t?void 0:t.length)?H`
534
+
535
+ /* Only with the outlined attribute, which today's scheduler doesn't set. */
536
+ :host([outlined]) #calendar {
537
+ background: #ffffff;
538
+ border: 1px solid #e7e7e7;
539
+ border-radius: 8px;
540
+ max-width: 18rem;
541
+ min-width: 0;
542
+ padding: 12px;
543
+ width: 100%;
544
+ }
545
+
546
+ @media screen and (max-width: 767px) {
547
+ :host([outlined]) #calendar {
548
+ max-width: none;
549
+ }
550
+ }
551
+
552
+ :host([outlined]) #rows {
553
+ gap: 6px;
554
+ }
555
+
556
+ :host([outlined]) .dayNumber {
557
+ height: 28px;
558
+ }
559
+
560
+ :host([outlined]) .dayNumber:not(:disabled) {
561
+ cursor: pointer;
562
+ z-index: 1;
563
+ }
564
+
565
+ :host([outlined]) .dayNumber:not(:disabled):not(.selected)::after {
566
+ background-color: color-mix(
567
+ in srgb,
568
+ var(--primary-color, #202020) 12%,
569
+ #ffffff
570
+ );
571
+ aspect-ratio: 1;
572
+ border: none;
573
+ border-radius: 50%;
574
+ content: "";
575
+ height: 28px;
576
+ left: 50%;
577
+ position: absolute;
578
+ top: 50%;
579
+ transform: translate(-50%, -50%);
580
+ z-index: -1;
581
+ }
582
+
583
+ :host([outlined]) .dayNumber:not(:disabled):not(.selected):hover::after {
584
+ background-color: color-mix(
585
+ in srgb,
586
+ var(--primary-color, #202020) 24%,
587
+ #ffffff
588
+ );
589
+ }
590
+
591
+ :host([outlined]) .dayNumber.selected::after {
592
+ background-color: var(--primary-color, #202020);
593
+ height: 28px;
594
+ }
595
+
596
+ :host([outlined]) .dayNumber.selected {
597
+ color: var(--on-primary-color, #ffffff);
598
+ }
599
+ `,dr([pe({attribute:"month",type:String})],cr.prototype,"defaultMonth",void 0),dr([pe({attribute:"year",type:Number})],cr.prototype,"defaultYear",void 0),dr([pe({attribute:!0})],cr.prototype,"defaultDate",void 0),dr([pe({attribute:!1})],cr.prototype,"shownMonth",void 0),dr([pe({type:Boolean,reflect:!0})],cr.prototype,"outlined",void 0),dr([pe({attribute:!1})],cr.prototype,"availabilities",void 0),dr([pe({attribute:!1})],cr.prototype,"selectedDate",null),dr([fe()],cr.prototype,"monthShown",null),dr([fe()],cr.prototype,"yearShown",void 0),cr=dr([ce("date-picker")],cr);const hr=(e,t)=>{const n=[];for(let i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n},pr=e=>{const t=new Date,n=null!=e?e:Intl.DateTimeFormat().resolvedOptions().timeZone,i=(e=>{const t=new Date(e.getFullYear(),0,1),n=new Date(e.getFullYear(),6,1),i=Math.max(t.getTimezoneOffset(),n.getTimezoneOffset());return e.getTimezoneOffset()<i})(t);switch(n){case"America/St_Johns":return i?"NDT":"NST";case"America/Halifax":case"America/Glace_Bay":case"America/Moncton":case"America/Goose_Bay":return i?"ADT":"AST";case"America/Blanc-Sablon":return"AST";case"America/New_York":case"America/Indiana/Indianapolis":case"America/Toronto":case"America/Nipigon":case"America/Thunder_Bay":case"America/Iqaluit":case"America/Pangnirtung":return i?"EDT":"EST";case"America/Atikokan":return"EST";case"America/Chicago":case"America/Indiana/Knox":case"America/Winnipeg":case"America/Rainy_River":case"America/Resolute":case"America/Rankin_Inlet":return i?"CDT":"CST";case"America/Regina":case"America/Swift_Current":return"CST";case"America/Denver":case"America/Edmonton":case"America/Cambridge_Bay":case"America/Yellowknife":case"America/Inuvik":return i?"MDT":"MST";case"America/Phoenix":case"America/Dawson_Creek":case"America/Fort_Nelson":case"America/Creston":case"America/Whitehorse":case"America/Dawson":return"MST";case"America/Los_Angeles":case"America/Vancouver":return i?"PDT":"PST";case"America/Anchorage":return i?"AKDT":"AKST";case"America/Honolulu":return"HST";default:return n}};var fr=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const gr=(e,t)=>e.reduce(function(e,t){return e[t.displayTimeZoned]=t,e},{})[t];let mr=class extends ue{constructor(){super(...arguments),this.options=[],this.selectedDateExists=!1,this.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.defaultSelectedTime=null,this.selected=this.defaultSelectedTime}get selectedTime(){return this.selected}updated(e){if(e.has("defaultSelectedTime")){const t=e.get("defaultSelectedTime");if(!this.selected&&this.defaultSelectedTime)return void(this.selected=this.defaultSelectedTime);if(!this.defaultSelectedTime)return void(this.selected=void 0);if(!t||this.defaultSelectedTime.displayTimeZoned!==t.displayTimeZoned)return void(this.selected=this.defaultSelectedTime)}}render(){var e,t;return 1!==(null===(e=this.options)||void 0===e?void 0:e.length)||this.selected||(this.selected=gr(this.options,this.options[0].displayTimeZoned),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),(null===(t=this.options)||void 0===t?void 0:t.length)?H`
489
600
  <div>
490
601
  <div
491
602
  id="optionContainer"
@@ -1433,6 +1544,20 @@ otherwise there's some empty space at the bottom of the button, which interferes
1433
1544
  font-size: 14px;
1434
1545
  padding-right: 24px;
1435
1546
  }
1547
+
1548
+ /* A footer whose button sits under its text (tour-scheduler-v2 on phones). */
1549
+ #tour-scheduler-footer.stacked {
1550
+ align-items: stretch;
1551
+ flex-direction: column;
1552
+ gap: 8px;
1553
+ padding-bottom: 12px;
1554
+ padding-top: 12px;
1555
+ }
1556
+
1557
+ #tour-scheduler-footer.stacked .explanation {
1558
+ font-size: 12px;
1559
+ padding-right: 0;
1560
+ }
1436
1561
  #schedule {
1437
1562
  width: 145px;
1438
1563
  height: 50px;
@@ -4175,7 +4300,8 @@ xmlns="http://www.w3.org/2000/svg"
4175
4300
  justify-content: center;
4176
4301
  align-items: center;
4177
4302
 
4178
- background: #000000;
4303
+ /* Black unless a surrounding page sets these, as the v2 scheduler does. */
4304
+ background: var(--action-confirm-button-background, #000000);
4179
4305
  border: none;
4180
4306
 
4181
4307
  border-radius: 20px;
@@ -4186,7 +4312,7 @@ xmlns="http://www.w3.org/2000/svg"
4186
4312
  font-size: 12px;
4187
4313
  line-height: 20px;
4188
4314
 
4189
- color: #ffffff;
4315
+ color: var(--action-confirm-button-color, #ffffff);
4190
4316
  padding: 5px 15px;
4191
4317
  cursor: pointer;
4192
4318
  }
@@ -5534,6 +5660,15 @@ xmlns="http://www.w3.org/2000/svg"
5534
5660
  background-color: #f0f7ff;
5535
5661
  }
5536
5662
 
5663
+ /* A card that can't be chosen right now (the tour scheduler's community cards). */
5664
+ .floorplan-image-card.disabled {
5665
+ opacity: 0.5;
5666
+ }
5667
+
5668
+ .floorplan-image-card.disabled .section-right {
5669
+ cursor: not-allowed;
5670
+ }
5671
+
5537
5672
  .section-right {
5538
5673
  flex: 1 1 auto;
5539
5674
  display: flex;
@@ -36,6 +36,15 @@ const floorplanImageCardStyles = css`
36
36
  background-color: #f0f7ff;
37
37
  }
38
38
 
39
+ /* A card that can't be chosen right now (the tour scheduler's community cards). */
40
+ .floorplan-image-card.disabled {
41
+ opacity: 0.5;
42
+ }
43
+
44
+ .floorplan-image-card.disabled .section-right {
45
+ cursor: not-allowed;
46
+ }
47
+
39
48
  .section-right {
40
49
  flex: 1 1 auto;
41
50
  display: flex;
@@ -3,7 +3,7 @@ import format from "date-fns/format";
3
3
  import getDate from "date-fns/getDate";
4
4
  import getMonth from "date-fns/getMonth";
5
5
  import getYear from "date-fns/getYear";
6
- import { LitElement, html, TemplateResult, css } from "lit";
6
+ import { LitElement, html, TemplateResult, css, PropertyValues } from "lit";
7
7
  import { customElement, property, state } from "lit/decorators.js";
8
8
  import { classMap } from "lit/directives/class-map.js";
9
9
  import {
@@ -36,6 +36,25 @@ export class DatePicker extends LitElement {
36
36
  @property({ attribute: true })
37
37
  defaultDate?: Date;
38
38
 
39
+ /**
40
+ * Optional "yyyy-MM": show that month, and move there each time it changes.
41
+ * Left unset, the calendar opens on the current month as before.
42
+ */
43
+ @property({ attribute: false })
44
+ shownMonth?: string;
45
+
46
+ protected willUpdate(changedProperties: PropertyValues): void {
47
+ if (changedProperties.has("shownMonth") && this.shownMonth) {
48
+ const [year, month] = this.shownMonth.split("-").map(Number);
49
+ this.yearShown = year;
50
+ this.monthShown = month - 1;
51
+ }
52
+ }
53
+
54
+ /** Tour-scheduler-v2's look: white and bordered, open days tinted with the brand colour. */
55
+ @property({ type: Boolean, reflect: true })
56
+ outlined = false;
57
+
39
58
  @property({ attribute: false })
40
59
  availabilities?: {
41
60
  [day: string]: Date[];
@@ -256,6 +275,71 @@ export class DatePicker extends LitElement {
256
275
  .dayNumber:is(.differentMonth, .past, .noAvailabilities) {
257
276
  opacity: 30%;
258
277
  }
278
+
279
+ /* Only with the outlined attribute, which today's scheduler doesn't set. */
280
+ :host([outlined]) #calendar {
281
+ background: #ffffff;
282
+ border: 1px solid #e7e7e7;
283
+ border-radius: 8px;
284
+ max-width: 18rem;
285
+ min-width: 0;
286
+ padding: 12px;
287
+ width: 100%;
288
+ }
289
+
290
+ @media screen and (max-width: 767px) {
291
+ :host([outlined]) #calendar {
292
+ max-width: none;
293
+ }
294
+ }
295
+
296
+ :host([outlined]) #rows {
297
+ gap: 6px;
298
+ }
299
+
300
+ :host([outlined]) .dayNumber {
301
+ height: 28px;
302
+ }
303
+
304
+ :host([outlined]) .dayNumber:not(:disabled) {
305
+ cursor: pointer;
306
+ z-index: 1;
307
+ }
308
+
309
+ :host([outlined]) .dayNumber:not(:disabled):not(.selected)::after {
310
+ background-color: color-mix(
311
+ in srgb,
312
+ var(--primary-color, #202020) 12%,
313
+ #ffffff
314
+ );
315
+ aspect-ratio: 1;
316
+ border: none;
317
+ border-radius: 50%;
318
+ content: "";
319
+ height: 28px;
320
+ left: 50%;
321
+ position: absolute;
322
+ top: 50%;
323
+ transform: translate(-50%, -50%);
324
+ z-index: -1;
325
+ }
326
+
327
+ :host([outlined]) .dayNumber:not(:disabled):not(.selected):hover::after {
328
+ background-color: color-mix(
329
+ in srgb,
330
+ var(--primary-color, #202020) 24%,
331
+ #ffffff
332
+ );
333
+ }
334
+
335
+ :host([outlined]) .dayNumber.selected::after {
336
+ background-color: var(--primary-color, #202020);
337
+ height: 28px;
338
+ }
339
+
340
+ :host([outlined]) .dayNumber.selected {
341
+ color: var(--on-primary-color, #ffffff);
342
+ }
259
343
  `;
260
344
 
261
345
  render(): TemplateResult {
@@ -13,6 +13,9 @@ export class TourTypeOption extends LitElement {
13
13
  subtitle = "";
14
14
  @property({ type: Boolean })
15
15
  selected = false;
16
+ /** A white row with the icon on the left, marked by a brand-colour tint when selected. */
17
+ @property({ type: Boolean, reflect: true })
18
+ outlined = false;
16
19
  @property({ attribute: false })
17
20
  onClick?: () => void;
18
21
 
@@ -77,6 +80,52 @@ export class TourTypeOption extends LitElement {
77
80
  .subtitle {
78
81
  font-weight: 400;
79
82
  }
83
+
84
+ :host([outlined]) .tour-type-option,
85
+ :host([outlined][selected]) .tour-type-option {
86
+ background: #ffffff;
87
+ border: 1px solid #e7e7e7;
88
+ cursor: pointer;
89
+ height: auto;
90
+ padding: 10px 12px;
91
+ }
92
+
93
+ :host([outlined]) .content {
94
+ justify-content: flex-start;
95
+ gap: 12px;
96
+ position: static;
97
+ transform: none;
98
+ }
99
+
100
+ :host([outlined]) .icon {
101
+ align-items: center;
102
+ background: #f8f9fa;
103
+ border-radius: 8px;
104
+ display: flex;
105
+ flex-shrink: 0;
106
+ height: 40px;
107
+ justify-content: center;
108
+ width: 40px;
109
+ }
110
+
111
+ :host([outlined]) ::slotted(svg) {
112
+ height: 20px;
113
+ width: 20px;
114
+ }
115
+
116
+ :host([outlined]) .text,
117
+ :host([outlined][selected]) .text {
118
+ color: #202020;
119
+ }
120
+
121
+ :host([outlined]) .heading {
122
+ font-weight: 400;
123
+ }
124
+
125
+ :host([outlined]) .subtitle {
126
+ color: #737373;
127
+ font-size: 13px;
128
+ }
80
129
  `,
81
130
  ];
82
131
 
@@ -88,18 +137,28 @@ export class TourTypeOption extends LitElement {
88
137
  tabindex="0"
89
138
  aria-checked=${this.selected ? "true" : "false"}
90
139
  aria-label="${this.heading} ${this.subtitle}"
91
- style=${styleMap({
92
- background: this.selected ? this.primaryColor : undefined,
93
- })}
140
+ style=${styleMap(
141
+ this.outlined
142
+ ? {
143
+ background: this.selected
144
+ ? `color-mix(in srgb, ${this.primaryColor} 8%, #ffffff)`
145
+ : undefined,
146
+ "border-color": this.selected ? this.primaryColor : undefined,
147
+ }
148
+ : { background: this.selected ? this.primaryColor : undefined }
149
+ )}
94
150
  >
95
151
  <div class="content">
96
- <slot name="icon"></slot>
152
+ ${this.outlined
153
+ ? html`<span class="icon"><slot name="icon"></slot></span>`
154
+ : html`<slot name="icon"></slot>`}
97
155
  <div
98
156
  class="text"
99
157
  style=${styleMap({
100
- color: this.selected
101
- ? this.foregroundColorOnPrimaryBackgroundColor
102
- : undefined,
158
+ color:
159
+ this.selected && !this.outlined
160
+ ? this.foregroundColorOnPrimaryBackgroundColor
161
+ : undefined,
103
162
  })}
104
163
  >
105
164
  <span class="heading">${this.heading}</span>
@@ -338,6 +338,20 @@ otherwise there's some empty space at the bottom of the button, which interferes
338
338
  font-size: 14px;
339
339
  padding-right: 24px;
340
340
  }
341
+
342
+ /* A footer whose button sits under its text (tour-scheduler-v2 on phones). */
343
+ #tour-scheduler-footer.stacked {
344
+ align-items: stretch;
345
+ flex-direction: column;
346
+ gap: 8px;
347
+ padding-bottom: 12px;
348
+ padding-top: 12px;
349
+ }
350
+
351
+ #tour-scheduler-footer.stacked .explanation {
352
+ font-size: 12px;
353
+ padding-right: 0;
354
+ }
341
355
  #schedule {
342
356
  width: 145px;
343
357
  height: 50px;
@@ -16,7 +16,8 @@ export class ActionConfirmButton extends LitElement {
16
16
  justify-content: center;
17
17
  align-items: center;
18
18
 
19
- background: #000000;
19
+ /* Black unless a surrounding page sets these, as the v2 scheduler does. */
20
+ background: var(--action-confirm-button-background, #000000);
20
21
  border: none;
21
22
 
22
23
  border-radius: 20px;
@@ -27,7 +28,7 @@ export class ActionConfirmButton extends LitElement {
27
28
  font-size: 12px;
28
29
  line-height: 20px;
29
30
 
30
- color: #ffffff;
31
+ color: var(--action-confirm-button-color, #ffffff);
31
32
  padding: 5px 15px;
32
33
  cursor: pointer;
33
34
  }
@@ -0,0 +1,18 @@
1
+ import { svg, SVGTemplateResult } from "lit";
2
+
3
+ export const CalendarCheckIcon = (
4
+ color = "#202020"
5
+ ): SVGTemplateResult => svg`<svg
6
+ aria-hidden="true"
7
+ focusable="false"
8
+ width="20"
9
+ height="20"
10
+ viewBox="0 0 20 20"
11
+ fill="none"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ >
14
+ <path
15
+ d="M7 0V2H13V0H15V2H19C19.2652 2 19.5196 2.10536 19.7071 2.29289C19.8946 2.48043 20 2.73478 20 3V19C20 19.2652 19.8946 19.5196 19.7071 19.7071C19.5196 19.8946 19.2652 20 19 20H1C0.734784 20 0.48043 19.8946 0.292893 19.7071C0.105357 19.5196 0 19.2652 0 19V3C0 2.73478 0.105357 2.48043 0.292893 2.29289C0.48043 2.10536 0.734784 2 1 2H5V0H7ZM18 9H2V18H18V9ZM13.036 10.136L14.45 11.55L9.5 16.5L5.964 12.964L7.38 11.55L9.501 13.672L13.037 10.136H13.036ZM5 4H2V7H18V4H15V5H13V4H7V5H5V4Z"
16
+ fill="${color}"
17
+ />
18
+ </svg>`;
@@ -0,0 +1,22 @@
1
+ import { svg, SVGTemplateResult } from "lit";
2
+
3
+ export const CheckCircleIcon = (
4
+ color = "#202020"
5
+ ): SVGTemplateResult => svg`<svg
6
+ aria-hidden="true"
7
+ focusable="false"
8
+ width="28"
9
+ height="28"
10
+ viewBox="0 0 24 24"
11
+ fill="none"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ >
14
+ <circle cx="12" cy="12" r="10.5" stroke="${color}" stroke-width="1.5" />
15
+ <path
16
+ d="M7.5 12.5L10.5 15.5L16.5 9"
17
+ stroke="${color}"
18
+ stroke-width="1.5"
19
+ stroke-linecap="round"
20
+ stroke-linejoin="round"
21
+ />
22
+ </svg>`;