@everymatrix/lottery-game-page 1.44.0 → 1.45.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.
Files changed (194) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/{helper-filters_2.cjs.entry.js → helper-accordion_13.cjs.entry.js} +3329 -1000
  3. package/dist/cjs/helper-pagination.cjs.entry.js +195 -226
  4. package/dist/cjs/index-f3851683.js +1345 -0
  5. package/dist/cjs/index.cjs.js +0 -2
  6. package/dist/cjs/loader.cjs.js +7 -15
  7. package/dist/cjs/lottery-game-page.cjs.js +16 -12
  8. package/dist/collection/collection-manifest.json +4 -10
  9. package/dist/collection/components/lottery-game-page/index.js +1 -0
  10. package/dist/collection/components/lottery-game-page/lottery-game-page.css +1 -1
  11. package/dist/collection/components/lottery-game-page/lottery-game-page.js +580 -646
  12. package/dist/collection/index.js +0 -1
  13. package/dist/collection/utils/locale.utils.js +117 -118
  14. package/dist/collection/utils/utils.js +4 -5
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/{helper-filters_2.entry.js → helper-accordion_13.entry.js} +3319 -1001
  17. package/dist/esm/helper-pagination.entry.js +195 -226
  18. package/dist/esm/index-8248702b.js +1316 -0
  19. package/dist/esm/index.js +0 -2
  20. package/dist/esm/loader.js +8 -16
  21. package/dist/esm/lottery-game-page.js +14 -13
  22. package/dist/lottery-game-page/index.esm.js +0 -2
  23. package/dist/lottery-game-page/lottery-game-page.esm.js +1 -2
  24. package/dist/lottery-game-page/p-4254ae78.entry.js +3567 -0
  25. package/dist/lottery-game-page/p-89956c67.entry.js +1 -0
  26. package/dist/lottery-game-page/p-8f2c63c7.js +2 -0
  27. package/dist/lottery-game-page/p-e1255160.js +1 -0
  28. package/dist/stencil.config.dev.js +17 -0
  29. package/dist/stencil.config.js +12 -45
  30. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +2 -0
  31. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +2 -0
  32. package/dist/types/components/lottery-game-page/index.d.ts +1 -0
  33. package/dist/types/components/lottery-game-page/lottery-game-page.d.ts +98 -98
  34. package/dist/types/components.d.ts +18 -2
  35. package/dist/types/stencil-public-runtime.d.ts +142 -33
  36. package/loader/cdn.js +1 -3
  37. package/loader/index.cjs.js +1 -3
  38. package/loader/index.d.ts +13 -1
  39. package/loader/index.es2017.js +1 -3
  40. package/loader/index.js +1 -3
  41. package/loader/package.json +1 -0
  42. package/package.json +13 -7
  43. package/dist/assets/chrono_desktop.png +0 -0
  44. package/dist/assets/chrono_lottery_mobile.png +0 -0
  45. package/dist/cjs/helper-accordion.cjs.entry.js +0 -134
  46. package/dist/cjs/helper-accordion.cjs.entry.js.map +0 -1
  47. package/dist/cjs/helper-filters_2.cjs.entry.js.map +0 -1
  48. package/dist/cjs/helper-modal.cjs.entry.js +0 -78
  49. package/dist/cjs/helper-modal.cjs.entry.js.map +0 -1
  50. package/dist/cjs/helper-pagination.cjs.entry.js.map +0 -1
  51. package/dist/cjs/helper-tab.cjs.entry.js +0 -70
  52. package/dist/cjs/helper-tab.cjs.entry.js.map +0 -1
  53. package/dist/cjs/helper-tabs.cjs.entry.js +0 -76
  54. package/dist/cjs/helper-tabs.cjs.entry.js.map +0 -1
  55. package/dist/cjs/index-cd44e726.js +0 -1326
  56. package/dist/cjs/index-cd44e726.js.map +0 -1
  57. package/dist/cjs/index.cjs.js.map +0 -1
  58. package/dist/cjs/loader.cjs.js.map +0 -1
  59. package/dist/cjs/lottery-bullet_2.cjs.entry.js +0 -281
  60. package/dist/cjs/lottery-bullet_2.cjs.entry.js.map +0 -1
  61. package/dist/cjs/lottery-draw-results-history.cjs.entry.js +0 -240
  62. package/dist/cjs/lottery-draw-results-history.cjs.entry.js.map +0 -1
  63. package/dist/cjs/lottery-game-details.cjs.entry.js +0 -53
  64. package/dist/cjs/lottery-game-details.cjs.entry.js.map +0 -1
  65. package/dist/cjs/lottery-game-page.cjs.entry.js +0 -456
  66. package/dist/cjs/lottery-game-page.cjs.entry.js.map +0 -1
  67. package/dist/cjs/lottery-game-page.cjs.js.map +0 -1
  68. package/dist/cjs/lottery-ticket-controller.cjs.entry.js +0 -132
  69. package/dist/cjs/lottery-ticket-controller.cjs.entry.js.map +0 -1
  70. package/dist/cjs/lottery-ticket.cjs.entry.js +0 -233
  71. package/dist/cjs/lottery-ticket.cjs.entry.js.map +0 -1
  72. package/dist/collection/components/lottery-game-page/lottery-game-page.js.map +0 -1
  73. package/dist/collection/index.js.map +0 -1
  74. package/dist/collection/utils/locale.utils.js.map +0 -1
  75. package/dist/collection/utils/utils.js.map +0 -1
  76. package/dist/components/helper-accordion.js +0 -8
  77. package/dist/components/helper-accordion.js.map +0 -1
  78. package/dist/components/helper-accordion2.js +0 -161
  79. package/dist/components/helper-accordion2.js.map +0 -1
  80. package/dist/components/helper-filters.js +0 -8
  81. package/dist/components/helper-filters.js.map +0 -1
  82. package/dist/components/helper-filters2.js +0 -23566
  83. package/dist/components/helper-filters2.js.map +0 -1
  84. package/dist/components/helper-modal.js +0 -8
  85. package/dist/components/helper-modal.js.map +0 -1
  86. package/dist/components/helper-modal2.js +0 -96
  87. package/dist/components/helper-modal2.js.map +0 -1
  88. package/dist/components/helper-pagination.js +0 -293
  89. package/dist/components/helper-pagination.js.map +0 -1
  90. package/dist/components/helper-tab.js +0 -8
  91. package/dist/components/helper-tab.js.map +0 -1
  92. package/dist/components/helper-tab2.js +0 -89
  93. package/dist/components/helper-tab2.js.map +0 -1
  94. package/dist/components/helper-tabs.js +0 -8
  95. package/dist/components/helper-tabs.js.map +0 -1
  96. package/dist/components/helper-tabs2.js +0 -105
  97. package/dist/components/helper-tabs2.js.map +0 -1
  98. package/dist/components/index.d.ts +0 -26
  99. package/dist/components/index.js +0 -3
  100. package/dist/components/index.js.map +0 -1
  101. package/dist/components/lottery-bullet.js +0 -8
  102. package/dist/components/lottery-bullet.js.map +0 -1
  103. package/dist/components/lottery-bullet2.js +0 -94
  104. package/dist/components/lottery-bullet2.js.map +0 -1
  105. package/dist/components/lottery-draw-results-history.js +0 -8
  106. package/dist/components/lottery-draw-results-history.js.map +0 -1
  107. package/dist/components/lottery-draw-results-history2.js +0 -298
  108. package/dist/components/lottery-draw-results-history2.js.map +0 -1
  109. package/dist/components/lottery-draw-results.js +0 -8
  110. package/dist/components/lottery-draw-results.js.map +0 -1
  111. package/dist/components/lottery-draw-results2.js +0 -346
  112. package/dist/components/lottery-draw-results2.js.map +0 -1
  113. package/dist/components/lottery-game-details.js +0 -8
  114. package/dist/components/lottery-game-details.js.map +0 -1
  115. package/dist/components/lottery-game-details2.js +0 -87
  116. package/dist/components/lottery-game-details2.js.map +0 -1
  117. package/dist/components/lottery-game-page.d.ts +0 -11
  118. package/dist/components/lottery-game-page.js +0 -572
  119. package/dist/components/lottery-game-page.js.map +0 -1
  120. package/dist/components/lottery-grid.js +0 -8
  121. package/dist/components/lottery-grid.js.map +0 -1
  122. package/dist/components/lottery-grid2.js +0 -248
  123. package/dist/components/lottery-grid2.js.map +0 -1
  124. package/dist/components/lottery-ticket-controller.js +0 -8
  125. package/dist/components/lottery-ticket-controller.js.map +0 -1
  126. package/dist/components/lottery-ticket-controller2.js +0 -185
  127. package/dist/components/lottery-ticket-controller2.js.map +0 -1
  128. package/dist/components/lottery-ticket.js +0 -8
  129. package/dist/components/lottery-ticket.js.map +0 -1
  130. package/dist/components/lottery-ticket2.js +0 -276
  131. package/dist/components/lottery-ticket2.js.map +0 -1
  132. package/dist/esm/helper-accordion.entry.js +0 -130
  133. package/dist/esm/helper-accordion.entry.js.map +0 -1
  134. package/dist/esm/helper-filters_2.entry.js.map +0 -1
  135. package/dist/esm/helper-modal.entry.js +0 -74
  136. package/dist/esm/helper-modal.entry.js.map +0 -1
  137. package/dist/esm/helper-pagination.entry.js.map +0 -1
  138. package/dist/esm/helper-tab.entry.js +0 -66
  139. package/dist/esm/helper-tab.entry.js.map +0 -1
  140. package/dist/esm/helper-tabs.entry.js +0 -72
  141. package/dist/esm/helper-tabs.entry.js.map +0 -1
  142. package/dist/esm/index-d1baacd4.js +0 -1298
  143. package/dist/esm/index-d1baacd4.js.map +0 -1
  144. package/dist/esm/index.js.map +0 -1
  145. package/dist/esm/loader.js.map +0 -1
  146. package/dist/esm/lottery-bullet_2.entry.js +0 -276
  147. package/dist/esm/lottery-bullet_2.entry.js.map +0 -1
  148. package/dist/esm/lottery-draw-results-history.entry.js +0 -236
  149. package/dist/esm/lottery-draw-results-history.entry.js.map +0 -1
  150. package/dist/esm/lottery-game-details.entry.js +0 -49
  151. package/dist/esm/lottery-game-details.entry.js.map +0 -1
  152. package/dist/esm/lottery-game-page.entry.js +0 -452
  153. package/dist/esm/lottery-game-page.entry.js.map +0 -1
  154. package/dist/esm/lottery-game-page.js.map +0 -1
  155. package/dist/esm/lottery-ticket-controller.entry.js +0 -128
  156. package/dist/esm/lottery-ticket-controller.entry.js.map +0 -1
  157. package/dist/esm/lottery-ticket.entry.js +0 -229
  158. package/dist/esm/lottery-ticket.entry.js.map +0 -1
  159. package/dist/esm/polyfills/core-js.js +0 -11
  160. package/dist/esm/polyfills/css-shim.js +0 -1
  161. package/dist/esm/polyfills/dom.js +0 -79
  162. package/dist/esm/polyfills/es5-html-element.js +0 -1
  163. package/dist/esm/polyfills/index.js +0 -34
  164. package/dist/esm/polyfills/system.js +0 -6
  165. package/dist/lottery-game-page/index.esm.js.map +0 -1
  166. package/dist/lottery-game-page/lottery-game-page.esm.js.map +0 -1
  167. package/dist/lottery-game-page/p-12340c50.entry.js +0 -2921
  168. package/dist/lottery-game-page/p-12340c50.entry.js.map +0 -1
  169. package/dist/lottery-game-page/p-15309f9a.entry.js +0 -2
  170. package/dist/lottery-game-page/p-15309f9a.entry.js.map +0 -1
  171. package/dist/lottery-game-page/p-167c9dbe.entry.js +0 -2
  172. package/dist/lottery-game-page/p-167c9dbe.entry.js.map +0 -1
  173. package/dist/lottery-game-page/p-20e0c81c.entry.js +0 -2
  174. package/dist/lottery-game-page/p-20e0c81c.entry.js.map +0 -1
  175. package/dist/lottery-game-page/p-59a96854.entry.js +0 -2
  176. package/dist/lottery-game-page/p-59a96854.entry.js.map +0 -1
  177. package/dist/lottery-game-page/p-662d9dac.entry.js +0 -2
  178. package/dist/lottery-game-page/p-662d9dac.entry.js.map +0 -1
  179. package/dist/lottery-game-page/p-66729e9c.entry.js +0 -2
  180. package/dist/lottery-game-page/p-66729e9c.entry.js.map +0 -1
  181. package/dist/lottery-game-page/p-721345a7.entry.js +0 -2
  182. package/dist/lottery-game-page/p-721345a7.entry.js.map +0 -1
  183. package/dist/lottery-game-page/p-76c280ec.entry.js +0 -2
  184. package/dist/lottery-game-page/p-76c280ec.entry.js.map +0 -1
  185. package/dist/lottery-game-page/p-cd4aa6a4.entry.js +0 -2
  186. package/dist/lottery-game-page/p-cd4aa6a4.entry.js.map +0 -1
  187. package/dist/lottery-game-page/p-e765c7d9.js +0 -2
  188. package/dist/lottery-game-page/p-e765c7d9.js.map +0 -1
  189. package/dist/lottery-game-page/p-e86e2389.entry.js +0 -2
  190. package/dist/lottery-game-page/p-e86e2389.entry.js.map +0 -1
  191. package/dist/lottery-game-page/p-f399eef1.entry.js +0 -2
  192. package/dist/lottery-game-page/p-f399eef1.entry.js.map +0 -1
  193. package/dist/stencil.config.js.map +0 -1
  194. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/lottery-game-page/.stencil/packages/lottery-game-page/stencil.config.d.ts +0 -2
@@ -1,2921 +0,0 @@
1
- import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en","hr"];const o={en:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ro:{filterOpen:"Filtrare",filterClear:"Stergere",filterModalTicketTitle:"Rezultatele biletelor",filterModalDrawTitle:"Rezultatele draw-urilor",filterTicketPlaceholder:"Cauta ID bilet",filterDrawPlaceholder:"Cauta ID draw",filterDateRangePlaceholder:"Perioada",filterModalButton:"Cauta",filterOrDate:"sau cauta dupa data"},fr:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ar:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},hr:{filterOpen:"Filter",filterClear:"Očisti",filterModalTicketTitle:"Rezultati listića",filterModalDrawTitle:"Povijest rezultata Izvlačenja",filterTicketPlaceholder:"Pretraga ID listića",filterDrawPlaceholder:"Pretraga ID izvlačenja",filterDateRangePlaceholder:"Raspon datuma",filterModalButton:"Traži",filterFromCalendar:"Od",filterToCalendar:"Do",filterOrDate:"ili tražite po datumu"}};const n=(t,e)=>{const i=e;return o[i!==undefined&&r.includes(i)?i:s][t]};
2
- /**
3
- * @license
4
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
5
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
- */function a(t){const e=customElements.get(t.is);if(!e){customElements.define(t.is,t)}else{const i=e.version;if(i&&t.version&&i===t.version){console.warn(`The component ${t.is} has been loaded twice`)}else{console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}}
7
- /**
8
- * @license
9
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
10
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11
- */class l extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}a(l);
12
- /**
13
- * @license
14
- * Copyright 2019 Google LLC
15
- * SPDX-License-Identifier: BSD-3-Clause
16
- */const h=window,c=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),d=new WeakMap;class f{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const p=t=>new f("string"==typeof t?t:t+"",void 0,u),m=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new f(i,t,u)},v=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),s=h.litNonce;void 0!==s&&i.setAttribute("nonce",s),i.textContent=e.cssText,t.appendChild(i)}))},b=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return p(e)})(t):t
17
- /**
18
- * @license
19
- * Copyright 2017 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- */;var g;const y=window,w=y.trustedTypes,x=w?w.emptyScript:"",_=y.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},A=(t,e)=>e!==t&&(e==e||t==t),C={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:A},D="finalized";class T extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))})),t}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}static finalize(){if(this.hasOwnProperty(D))return!1;this[D]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(b(t))}else void 0!==t&&e.push(b(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return v(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=C){var s;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:k).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=s.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:k;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||A)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}T[D]=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},null==_||_({ReactiveElement:T}),(null!==(g=y.reactiveElementVersions)&&void 0!==g?g:y.reactiveElementVersions=[]).push("1.6.3");
22
- /**
23
- * @license
24
- * Copyright 2017 Google LLC
25
- * SPDX-License-Identifier: BSD-3-Clause
26
- */var S;const M=window,z=M.trustedTypes,P=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,E="$lit$",N=`lit$${(Math.random()+"").slice(9)}$`,F="?"+N,O=`<${F}>`,I=document,B=()=>I.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,W=t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,G=/>/g,$=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,Y=/"/g,V=/^(?:script|style|textarea|title)$/i,J=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,Q=I.createTreeWalker(I,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(e):e}const tt=(t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"<svg>":"",n=U;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===U?"!--"===l[1]?n=H:void 0!==l[1]?n=G:void 0!==l[2]?(V.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=$):void 0!==l[3]&&(n=$):n===$?">"===l[0]?(n=null!=r?r:U,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?$:'"'===l[3]?Y:q):n===Y||n===q?n=$:n===H||n===G?n=U:(n=$,r=void 0);const u=n===$&&t[e+1].startsWith("/>")?" ":"";o+=n===U?i+O:h>=0?(s.push(a),i.slice(0,h)+E+i.slice(h)+N+u):i+N+(-2===h?(s.push(void 0),e):u)}return[X(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class et{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const n=t.length-1,a=this.parts,[l,h]=tt(t,e);if(this.el=et.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=Q.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(E)||e.startsWith(N)){const i=h[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+E).split(N),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?lt:"@"===e[1]?ht:ot})}else a.push({type:6,index:r})}for(const e of t)s.removeAttribute(e)}if(V.test(s.tagName)){const t=s.textContent.split(N),e=t.length-1;if(e>0){s.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],B()),Q.nextNode(),a.push({type:2,index:++r});s.append(t[e],B())}}}else if(8===s.nodeType)if(s.data===F)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(N,t+1));)a.push({type:7,index:r}),t+=N.length-1}r++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,s){var r,o,n,a;if(e===J)return e;let l=void 0!==s?null===(r=i._$Co)||void 0===r?void 0:r[s]:i._$Cl;const h=R(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=it(t,l._$AS(t,e.values),l,s)),e}class st{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);Q.currentNode=r;let o=Q.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new rt(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new ct(o,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(o=Q.nextNode(),n++)}return Q.currentNode=I,r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class rt{constructor(t,e,i,s){var r;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(r=null==s?void 0:s.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),R(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):W(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==K&&R(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=et.createElement(X(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new st(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new et(t)),e}T(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new rt(this.k(B()),this.k(B()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{constructor(t,e,i,s,r){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(void 0===r)t=it(this,t,e,0),o=!R(t)||t!==this._$AH&&t!==J,o&&(this._$AH=t);else{const s=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=it(this,s[i+n],e,n),a===J&&(a=this._$AH[n]),o||(o=!R(a)||a!==this._$AH[n]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}o&&!s&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}const at=z?z.emptyScript:"";class lt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends ot{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:K)===J)return;const s=this._$AH,r=t===K&&s!==K||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==K&&(s===K||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const ut=M.litHtmlPolyfillSupport;null==ut||ut(et,rt),(null!==(S=M.litHtmlVersions)&&void 0!==S?S:M.litHtmlVersions=[]).push("2.8.0");const dt=(t,e,i)=>{var s,r;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=o._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=n=new rt(e.insertBefore(B(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
27
- /**
28
- * @license
29
- * Copyright 2017 Google LLC
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- */};var ft,pt;class mt extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=dt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}mt.finalized=!0,mt._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:mt});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:mt});(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.3.3");
32
- /**
33
- * @license
34
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
35
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
- */const bt=t=>class e extends t{static get properties(){return{_theme:{type:String,readOnly:true}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t==="theme"){this._set_theme(i)}}}
37
- /**
38
- * @license
39
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
40
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
41
- */;const gt=[];function yt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function wt(t){return yt(customElements.get(t))}function xt(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof f){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function _t(t,e,i={}){if(t){if(wt(t)){console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`)}}e=xt(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}else{gt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}}function kt(){if(window.Vaadin&&window.Vaadin.styleModules){return window.Vaadin.styleModules.getAllThemes()}return gt}function At(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Ct(t=""){let e=0;if(t.startsWith("lumo-")||t.startsWith("material-")){e=1}else if(t.startsWith("vaadin-")){e=2}return e}function Dt(t){const e=[];if(t.include){[].concat(t.include).forEach((t=>{const i=kt().find((e=>e.moduleId===t));if(i){e.push(...Dt(i),...i.styles)}else{console.warn(`Included moduleId ${t} not found in style registry`)}}),t.styles)}return e}function Tt(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n");e.content.appendChild(i)}function St(t){const e=`${t}-default-theme`;const i=kt().filter((i=>i.moduleId!==e&&At(i.themeFor,t))).map((t=>({...t,styles:[...Dt(t),...t.styles],includePriority:Ct(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));if(i.length>0){return i}return kt().filter((t=>t.moduleId===e))}const Mt=t=>class e extends(bt(t)){static finalize(){super.finalize();if(this.elementStyles){return}const t=this.prototype._template;if(!t||yt(this)){return}Tt(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);const e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...St(this.is)];const i=this.__themes.flatMap((t=>t.styles));return i.filter(((t,e)=>e===i.lastIndexOf(t)))}}
42
- /**
43
- * @license
44
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
45
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
- */;const zt=(t,...e)=>{const i=document.createElement("style");i.id=t;i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html");document.head.insertAdjacentElement("afterbegin",i)};const Pt=(t,...e)=>{zt(`lumo-${t}`,e)};
47
- /**
48
- * @license
49
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
50
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
51
- */const Et=m`
52
- :host {
53
- /* Base (background) */
54
- --lumo-base-color: #fff;
55
-
56
- /* Tint */
57
- --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
58
- --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
59
- --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
60
- --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
61
- --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
62
- --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
63
- --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
64
- --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
65
- --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
66
- --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
67
- --lumo-tint: #fff;
68
-
69
- /* Shade */
70
- --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
71
- --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
72
- --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
73
- --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
74
- --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
75
- --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
76
- --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
77
- --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
78
- --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
79
- --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
80
- --lumo-shade: hsl(214, 35%, 15%);
81
-
82
- /* Contrast */
83
- --lumo-contrast-5pct: var(--lumo-shade-5pct);
84
- --lumo-contrast-10pct: var(--lumo-shade-10pct);
85
- --lumo-contrast-20pct: var(--lumo-shade-20pct);
86
- --lumo-contrast-30pct: var(--lumo-shade-30pct);
87
- --lumo-contrast-40pct: var(--lumo-shade-40pct);
88
- --lumo-contrast-50pct: var(--lumo-shade-50pct);
89
- --lumo-contrast-60pct: var(--lumo-shade-60pct);
90
- --lumo-contrast-70pct: var(--lumo-shade-70pct);
91
- --lumo-contrast-80pct: var(--lumo-shade-80pct);
92
- --lumo-contrast-90pct: var(--lumo-shade-90pct);
93
- --lumo-contrast: var(--lumo-shade);
94
-
95
- /* Text */
96
- --lumo-header-text-color: var(--lumo-contrast);
97
- --lumo-body-text-color: var(--lumo-contrast-90pct);
98
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
99
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
100
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
101
-
102
- /* Primary */
103
- --lumo-primary-color: hsl(214, 100%, 48%);
104
- --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
105
- --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
106
- --lumo-primary-text-color: hsl(214, 100%, 43%);
107
- --lumo-primary-contrast-color: #fff;
108
-
109
- /* Error */
110
- --lumo-error-color: hsl(3, 85%, 48%);
111
- --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
112
- --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
113
- --lumo-error-text-color: hsl(3, 89%, 42%);
114
- --lumo-error-contrast-color: #fff;
115
-
116
- /* Success */
117
- --lumo-success-color: hsl(145, 72%, 30%);
118
- --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
119
- --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
120
- --lumo-success-text-color: hsl(145, 85%, 25%);
121
- --lumo-success-contrast-color: #fff;
122
-
123
- /* Warning */
124
- --lumo-warning-color: hsl(48, 100%, 50%);
125
- --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
126
- --lumo-warning-text-color: hsl(32, 100%, 30%);
127
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
128
- }
129
-
130
- /* forced-colors mode adjustments */
131
- @media (forced-colors: active) {
132
- html {
133
- --lumo-disabled-text-color: GrayText;
134
- }
135
- }
136
- `;Pt("color-props",Et);const Nt=m`
137
- [theme~='dark'] {
138
- /* Base (background) */
139
- --lumo-base-color: hsl(214, 35%, 21%);
140
-
141
- /* Tint */
142
- --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
143
- --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
144
- --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
145
- --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
146
- --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
147
- --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
148
- --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
149
- --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
150
- --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
151
- --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
152
- --lumo-tint: hsl(214, 100%, 98%);
153
-
154
- /* Shade */
155
- --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
156
- --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
157
- --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
158
- --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
159
- --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
160
- --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
161
- --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
162
- --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
163
- --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
164
- --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
165
- --lumo-shade: hsl(214, 33%, 13%);
166
-
167
- /* Contrast */
168
- --lumo-contrast-5pct: var(--lumo-tint-5pct);
169
- --lumo-contrast-10pct: var(--lumo-tint-10pct);
170
- --lumo-contrast-20pct: var(--lumo-tint-20pct);
171
- --lumo-contrast-30pct: var(--lumo-tint-30pct);
172
- --lumo-contrast-40pct: var(--lumo-tint-40pct);
173
- --lumo-contrast-50pct: var(--lumo-tint-50pct);
174
- --lumo-contrast-60pct: var(--lumo-tint-60pct);
175
- --lumo-contrast-70pct: var(--lumo-tint-70pct);
176
- --lumo-contrast-80pct: var(--lumo-tint-80pct);
177
- --lumo-contrast-90pct: var(--lumo-tint-90pct);
178
- --lumo-contrast: var(--lumo-tint);
179
-
180
- /* Text */
181
- --lumo-header-text-color: var(--lumo-contrast);
182
- --lumo-body-text-color: var(--lumo-contrast-90pct);
183
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
184
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
185
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
186
-
187
- /* Primary */
188
- --lumo-primary-color: hsl(214, 90%, 48%);
189
- --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
190
- --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
191
- --lumo-primary-text-color: hsl(214, 90%, 77%);
192
- --lumo-primary-contrast-color: #fff;
193
-
194
- /* Error */
195
- --lumo-error-color: hsl(3, 79%, 49%);
196
- --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
197
- --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
198
- --lumo-error-text-color: hsl(3, 100%, 80%);
199
-
200
- /* Success */
201
- --lumo-success-color: hsl(145, 72%, 30%);
202
- --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
203
- --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
204
- --lumo-success-text-color: hsl(145, 85%, 46%);
205
-
206
- /* Warning */
207
- --lumo-warning-color: hsl(43, 100%, 48%);
208
- --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
209
- --lumo-warning-text-color: hsl(45, 100%, 60%);
210
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
211
- }
212
-
213
- html {
214
- color: var(--lumo-body-text-color);
215
- background-color: var(--lumo-base-color);
216
- color-scheme: light;
217
- }
218
-
219
- [theme~='dark'] {
220
- color: var(--lumo-body-text-color);
221
- background-color: var(--lumo-base-color);
222
- color-scheme: dark;
223
- }
224
-
225
- h1,
226
- h2,
227
- h3,
228
- h4,
229
- h5,
230
- h6 {
231
- color: var(--lumo-header-text-color);
232
- }
233
-
234
- a:where(:any-link) {
235
- color: var(--lumo-primary-text-color);
236
- }
237
-
238
- a:not(:any-link) {
239
- color: var(--lumo-disabled-text-color);
240
- }
241
-
242
- blockquote {
243
- color: var(--lumo-secondary-text-color);
244
- }
245
-
246
- code,
247
- pre {
248
- background-color: var(--lumo-contrast-10pct);
249
- border-radius: var(--lumo-border-radius-m);
250
- }
251
- `;_t("",Nt,{moduleId:"lumo-color"});
252
- /**
253
- * @license
254
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
255
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
256
- */const Ft=m`
257
- :host {
258
- --lumo-size-xs: 1.625rem;
259
- --lumo-size-s: 1.875rem;
260
- --lumo-size-m: 2.25rem;
261
- --lumo-size-l: 2.75rem;
262
- --lumo-size-xl: 3.5rem;
263
-
264
- /* Icons */
265
- --lumo-icon-size-s: 1.25em;
266
- --lumo-icon-size-m: 1.5em;
267
- --lumo-icon-size-l: 2.25em;
268
- /* For backwards compatibility */
269
- --lumo-icon-size: var(--lumo-icon-size-m);
270
- }
271
- `;Pt("sizing-props",Ft);
272
- /**
273
- * @license
274
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
275
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
276
- */const Ot=m`
277
- :host {
278
- /* Border radius */
279
- --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
280
- --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
281
- --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
282
-
283
- /* Shadow */
284
- --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
285
- --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
286
- --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
287
- --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
288
- --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
289
-
290
- /* Clickable element cursor */
291
- --lumo-clickable-cursor: default;
292
- }
293
- `;m`
294
- html {
295
- --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
296
- --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
297
- --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
298
- }
299
- `;Pt("style-props",Ot);
300
- /**
301
- * @license
302
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
303
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
304
- */const It=m`
305
- :host {
306
- /* prettier-ignore */
307
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
308
-
309
- /* Font sizes */
310
- --lumo-font-size-xxs: 0.75rem;
311
- --lumo-font-size-xs: 0.8125rem;
312
- --lumo-font-size-s: 0.875rem;
313
- --lumo-font-size-m: 1rem;
314
- --lumo-font-size-l: 1.125rem;
315
- --lumo-font-size-xl: 1.375rem;
316
- --lumo-font-size-xxl: 1.75rem;
317
- --lumo-font-size-xxxl: 2.5rem;
318
-
319
- /* Line heights */
320
- --lumo-line-height-xs: 1.25;
321
- --lumo-line-height-s: 1.375;
322
- --lumo-line-height-m: 1.625;
323
- }
324
- `;const Bt=m`
325
- body,
326
- :host {
327
- font-family: var(--lumo-font-family);
328
- font-size: var(--lumo-font-size-m);
329
- line-height: var(--lumo-line-height-m);
330
- -webkit-text-size-adjust: 100%;
331
- -webkit-font-smoothing: antialiased;
332
- -moz-osx-font-smoothing: grayscale;
333
- }
334
-
335
- small,
336
- [theme~='font-size-s'] {
337
- font-size: var(--lumo-font-size-s);
338
- line-height: var(--lumo-line-height-s);
339
- }
340
-
341
- [theme~='font-size-xs'] {
342
- font-size: var(--lumo-font-size-xs);
343
- line-height: var(--lumo-line-height-xs);
344
- }
345
-
346
- :where(h1, h2, h3, h4, h5, h6) {
347
- font-weight: 600;
348
- line-height: var(--lumo-line-height-xs);
349
- margin-block: 0;
350
- }
351
-
352
- :where(h1) {
353
- font-size: var(--lumo-font-size-xxxl);
354
- }
355
-
356
- :where(h2) {
357
- font-size: var(--lumo-font-size-xxl);
358
- }
359
-
360
- :where(h3) {
361
- font-size: var(--lumo-font-size-xl);
362
- }
363
-
364
- :where(h4) {
365
- font-size: var(--lumo-font-size-l);
366
- }
367
-
368
- :where(h5) {
369
- font-size: var(--lumo-font-size-m);
370
- }
371
-
372
- :where(h6) {
373
- font-size: var(--lumo-font-size-xs);
374
- text-transform: uppercase;
375
- letter-spacing: 0.03em;
376
- }
377
-
378
- p,
379
- blockquote {
380
- margin-top: 0.5em;
381
- margin-bottom: 0.75em;
382
- }
383
-
384
- a {
385
- text-decoration: none;
386
- }
387
-
388
- a:where(:any-link):hover {
389
- text-decoration: underline;
390
- }
391
-
392
- hr {
393
- display: block;
394
- align-self: stretch;
395
- height: 1px;
396
- border: 0;
397
- padding: 0;
398
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
399
- background-color: var(--lumo-contrast-10pct);
400
- }
401
-
402
- blockquote {
403
- border-left: 2px solid var(--lumo-contrast-30pct);
404
- }
405
-
406
- b,
407
- strong {
408
- font-weight: 600;
409
- }
410
-
411
- /* RTL specific styles */
412
- blockquote[dir='rtl'] {
413
- border-left: none;
414
- border-right: 2px solid var(--lumo-contrast-30pct);
415
- }
416
- `;_t("",Bt,{moduleId:"lumo-typography"});Pt("typography-props",It);_t("vaadin-input-container",m`
417
- :host {
418
- background-color: var(--lumo-contrast-10pct);
419
- padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
420
- font-weight: 500;
421
- line-height: 1;
422
- position: relative;
423
- cursor: text;
424
- box-sizing: border-box;
425
- border-radius:
426
- /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
427
- var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
428
- var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
429
- var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
430
- var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
431
- /* Fallback */
432
- --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
433
- /* Default field border color */
434
- --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
435
- }
436
-
437
- :host([dir='rtl']) {
438
- border-radius:
439
- /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
440
- var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
441
- var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
442
- var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
443
- var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
444
- }
445
-
446
- /* Used for hover and activation effects */
447
- :host::after {
448
- content: '';
449
- position: absolute;
450
- inset: 0;
451
- border-radius: inherit;
452
- pointer-events: none;
453
- background-color: var(--lumo-contrast-50pct);
454
- opacity: 0;
455
- transition: transform 0.15s, opacity 0.2s;
456
- transform-origin: 100% 0;
457
- }
458
-
459
- ::slotted(:not([slot$='fix'])) {
460
- cursor: inherit;
461
- min-height: var(--lumo-text-field-size, var(--lumo-size-m));
462
- padding: 0 0.25em;
463
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
464
- -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
465
- mask-image: var(--_lumo-text-field-overflow-mask-image);
466
- }
467
-
468
- /* Read-only */
469
- :host([readonly]) {
470
- color: var(--lumo-secondary-text-color);
471
- background-color: transparent;
472
- cursor: default;
473
- }
474
-
475
- :host([readonly])::after {
476
- background-color: transparent;
477
- opacity: 1;
478
- border: 1px dashed var(--lumo-contrast-30pct);
479
- }
480
-
481
- /* Disabled */
482
- :host([disabled]) {
483
- background-color: var(--lumo-contrast-5pct);
484
- }
485
-
486
- :host([disabled]) ::slotted(*) {
487
- color: var(--lumo-disabled-text-color);
488
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
489
- }
490
-
491
- /* Invalid */
492
- :host([invalid]) {
493
- background-color: var(--lumo-error-color-10pct);
494
- }
495
-
496
- :host([invalid])::after {
497
- background-color: var(--lumo-error-color-50pct);
498
- }
499
-
500
- /* Slotted icons */
501
- ::slotted(vaadin-icon) {
502
- color: var(--lumo-contrast-60pct);
503
- width: var(--lumo-icon-size-m);
504
- height: var(--lumo-icon-size-m);
505
- }
506
-
507
- /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
508
- ::slotted(vaadin-icon[icon^='vaadin:']) {
509
- padding: 0.25em;
510
- box-sizing: border-box !important;
511
- }
512
-
513
- /* Text align */
514
- :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
515
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
516
- }
517
-
518
- @-moz-document url-prefix() {
519
- :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
520
- mask-image: var(--_lumo-text-field-overflow-mask-image);
521
- }
522
- }
523
-
524
- :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
525
- text-align: start;
526
- --_lumo-text-field-overflow-mask-image: none;
527
- }
528
-
529
- :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
530
- text-align: center;
531
- --_lumo-text-field-overflow-mask-image: none;
532
- }
533
-
534
- :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
535
- text-align: end;
536
- --_lumo-text-field-overflow-mask-image: none;
537
- }
538
-
539
- @-moz-document url-prefix() {
540
- /* Firefox is smart enough to align overflowing text to right */
541
- :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
542
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
543
- }
544
- }
545
-
546
- @-moz-document url-prefix() {
547
- /* Firefox is smart enough to align overflowing text to right */
548
- :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
549
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
550
- }
551
- }
552
-
553
- /* RTL specific styles */
554
- :host([dir='rtl'])::after {
555
- transform-origin: 0% 0;
556
- }
557
-
558
- :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
559
- --_lumo-text-field-overflow-mask-image: none;
560
- }
561
-
562
- :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
563
- --_lumo-text-field-overflow-mask-image: none;
564
- }
565
-
566
- :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
567
- --_lumo-text-field-overflow-mask-image: none;
568
- }
569
-
570
- @-moz-document url-prefix() {
571
- /* Firefox is smart enough to align overflowing text to right */
572
- :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
573
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
574
- }
575
- }
576
-
577
- @-moz-document url-prefix() {
578
- /* Firefox is smart enough to align overflowing text to right */
579
- :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
580
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
581
- }
582
- }
583
- `,{moduleId:"lumo-input-container"});
584
- /**
585
- @license
586
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
587
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
588
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
589
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
590
- Code distributed by Google as part of the polymer project is also
591
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
592
- */window.JSCompiler_renameProperty=function(t,e){return t};
593
- /**
594
- @license
595
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
596
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
597
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
598
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
599
- Code distributed by Google as part of the polymer project is also
600
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
601
- */let Rt=/(url\()([^)]*)(\))/g;let jt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;let Wt;let Lt;function Ut(t,e){if(t&&jt.test(t)){return t}if(t==="//"){return t}if(Wt===undefined){Wt=false;try{const t=new URL("b","http://a");t.pathname="c%20d";Wt=t.href==="http://a/c%20d"}catch(t){}}if(!e){e=document.baseURI||window.location.href}if(Wt){try{return new URL(t,e).href}catch(e){return t}}if(!Lt){Lt=document.implementation.createHTMLDocument("temp");Lt.base=Lt.createElement("base");Lt.head.appendChild(Lt.base);Lt.anchor=Lt.createElement("a");Lt.body.appendChild(Lt.anchor)}Lt.base.href=e;Lt.anchor.href=t;return Lt.anchor.href||t}function Ht(t,e){return t.replace(Rt,(function(t,i,s,r){return i+"'"+Ut(s.replace(/["']/g,""),e)+"'"+r}))}function Gt(t){return t.substring(0,t.lastIndexOf("/")+1)}
602
- /**
603
- @license
604
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
605
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
606
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
607
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
608
- Code distributed by Google as part of the polymer project is also
609
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
610
- */const $t=!window.ShadyDOM||!window.ShadyDOM.inUse;const qt=$t&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");e.attachShadow({mode:"open"});e.shadowRoot.adoptedStyleSheets=[t];return e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return false}})();let Yt=window.Polymer&&window.Polymer.rootPath||Gt(document.baseURI||window.location.href);let Vt=window.Polymer&&window.Polymer.sanitizeDOMValue||undefined;let Jt=window.Polymer&&window.Polymer.strictTemplatePolicy||false;let Kt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||false;let Zt=window.Polymer&&window.Polymer.legacyOptimizations||false;let Qt=window.Polymer&&window.Polymer.legacyWarnings||false;let Xt=window.Polymer&&window.Polymer.syncInitialRender||false;let te=window.Polymer&&window.Polymer.legacyUndefined||false;let ee=window.Polymer&&window.Polymer.orderedComputed||false;let ie=window.Polymer&&window.Polymer.removeNestedTemplates||false;let se=window.Polymer&&window.Polymer.fastDomIf||false;let re=window.Polymer&&window.Polymer.suppressTemplateNotifications||false;let oe=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||false;
611
- /**
612
- @license
613
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
614
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
615
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
616
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
617
- Code distributed by Google as part of the polymer project is also
618
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
619
- */let ne=0;const ae=function(t){let e=t.__mixinApplications;if(!e){e=new WeakMap;t.__mixinApplications=e}let i=ne++;function s(s){let r=s.__mixinSet;if(r&&r[i]){return s}let o=e;let n=o.get(s);if(!n){n=t(s);o.set(s,n);let e=Object.create(n.__mixinSet||r||null);e[i]=true;n.__mixinSet=e}return n}return s};
620
- /**
621
- @license
622
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
623
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
624
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
625
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
626
- Code distributed by Google as part of the polymer project is also
627
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
628
- */let le={};let he={};function ce(t,e){le[t]=he[t.toLowerCase()]=e}function ue(t){return le[t]||he[t.toLowerCase()]}function de(t){if(t.querySelector("style")){console.warn("dom-module %s has style outside template",t.id)}}class fe extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ue(t);if(i&&e){return i.querySelector(e)}return i}return null}attributeChangedCallback(t,e,i,s){if(e!==i){this.register()}}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;const e=Ut(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Gt(e)}return this.__assetpath}register(t){t=t||this.id;if(t){if(Jt&&ue(t)!==undefined){ce(t,null);throw new Error(`strictTemplatePolicy: dom-module ${t} re-registered`)}this.id=t;ce(t,this);de(this)}}}fe.prototype["modules"]=le;customElements.define("dom-module",fe);
629
- /**
630
- @license
631
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
632
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
633
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
634
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
635
- Code distributed by Google as part of the polymer project is also
636
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
637
- */const pe="link[rel=import][type~=css]";const me="include";const ve="shady-unscoped";function be(t){return fe.import(t)}function ge(t){let e=t.body?t.body:t;const i=Ht(e.textContent,t.baseURI);const s=document.createElement("style");s.textContent=i;return s}function ye(t){const e=t.trim().split(/\s+/);const i=[];for(let t=0;t<e.length;t++){i.push(...we(e[t]))}return i}function we(t){const e=be(t);if(!e){console.warn("Could not find style data in module named",t);return[]}if(e._styles===undefined){const t=[];t.push(...ke(e));const i=e.querySelector("template");if(i){t.push(...xe(i,e.assetpath))}e._styles=t}return e._styles}function xe(t,e){if(!t._styles){const i=[];const s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let r=s[t];let o=r.getAttribute(me);if(o){i.push(...ye(o).filter((function(t,e,i){return i.indexOf(t)===e})))}if(e){r.textContent=Ht(r.textContent,e)}i.push(r)}t._styles=i}return t._styles}function _e(t){let e=be(t);return e?ke(e):[]}function ke(t){const e=[];const i=t.querySelectorAll(pe);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import;const i=s.hasAttribute(ve);if(i&&!t._unscopedStyle){const e=ge(t);e.setAttribute(ve,"");t._unscopedStyle=e}else if(!t._style){t._style=ge(t)}e.push(i?t._unscopedStyle:t._style)}}return e}
638
- /**
639
- @license
640
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
641
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
642
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
643
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
644
- Code distributed by Google as part of the polymer project is also
645
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
646
- */const Ae=window["ShadyDOM"]&&window["ShadyDOM"]["noPatch"]&&window["ShadyDOM"]["wrap"]?window["ShadyDOM"]["wrap"]:window["ShadyDOM"]?t=>ShadyDOM["patch"](t):t=>t;
647
- /**
648
- @license
649
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
650
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
651
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
652
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
653
- Code distributed by Google as part of the polymer project is also
654
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
655
- */function Ce(t){return t.indexOf(".")>=0}function De(t){let e=t.indexOf(".");if(e===-1){return t}return t.slice(0,e)}function Te(t,e){return t.indexOf(e+".")===0}function Se(t,e){return e.indexOf(t+".")===0}function Me(t,e,i){return e+i.slice(t.length)}function ze(t,e){return t===e||Te(t,e)||Se(t,e)}function Pe(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++){e.push(s[t])}}return e.join(".")}else{return t}}function Ee(t){if(Array.isArray(t)){return Pe(t).split(".")}return t.toString().split(".")}function Ne(t,e,i){let s=t;let r=Ee(e);for(let t=0;t<r.length;t++){if(!s){return}let e=r[t];s=s[e]}if(i){i.path=r.join(".")}return s}function Fe(t,e,i){let s=t;let r=Ee(e);let o=r[r.length-1];if(r.length>1){for(let t=0;t<r.length-1;t++){let e=r[t];s=s[e];if(!s){return}}s[o]=i}else{s[e]=i}return r.join(".")}
656
- /**
657
- @license
658
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
659
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
660
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
661
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
662
- Code distributed by Google as part of the polymer project is also
663
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
664
- */const Oe={};const Ie=/-[a-z]/g;const Be=/([A-Z])/g;function Re(t){return Oe[t]||(Oe[t]=t.indexOf("-")<0?t:t.replace(Ie,(t=>t[1].toUpperCase())))}function je(t){return Oe[t]||(Oe[t]=t.replace(Be,"-$1").toLowerCase())}
665
- /**
666
- @license
667
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
668
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
669
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
670
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
671
- Code distributed by Google as part of the polymer project is also
672
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
673
- */let We=0;let Le=0;let Ue=[];let He=0;let Ge=false;let $e=document.createTextNode("");new window.MutationObserver(qe).observe($e,{characterData:true});function qe(){Ge=false;const t=Ue.length;for(let e=0;e<t;e++){let t=Ue[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}Ue.splice(0,t);Le+=t}const Ye={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const Ve={run(t){if(!Ge){Ge=true;$e.textContent=He++}Ue.push(t);return We++},cancel(t){const e=t-Le;if(e>=0){if(!Ue[e]){throw new Error("invalid async handle: "+t)}Ue[e]=null}}};
674
- /**
675
- @license
676
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
677
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
678
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
679
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
680
- Code distributed by Google as part of the polymer project is also
681
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
682
- */const Je=Ve;const Ke=ae((t=>{class e extends t{static createProperties(t){const e=this.prototype;for(let i in t){if(!(i in e)){e._createPropertyAccessor(i)}}}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t);if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))){this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)}if(!this.__dataHasAccessor[t]){this.__dataHasAccessor[t]=true;this._definePropertyAccessor(t,e)}}_addPropertyToAttributeMap(t){if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))){this.__dataAttributes=Object.assign({},this.__dataAttributes)}let e=this.__dataAttributes[t];if(!e){e=this.constructor.attributeNameForProperty(t);this.__dataAttributes[e]=t}return e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}})}constructor(){super();this.__dataEnabled=false;this.__dataReady=false;this.__dataInvalid=false;this.__data={};this.__dataPending=null;this.__dataOld=null;this.__dataInstanceProps=null;this.__dataCounter=0;this.__serializing=false;this._initializeProperties()}ready(){this.__dataReady=true;this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor){if(this.hasOwnProperty(t)){this.__dataInstanceProps=this.__dataInstanceProps||{};this.__dataInstanceProps[t]=this[t];delete this[t]}}}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){if(this._setPendingProperty(t,e)){this._invalidateProperties()}}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t];let r=this._shouldPropertyChange(t,e,s);if(r){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(this.__dataOld&&!(t in this.__dataOld)){this.__dataOld[t]=s}this.__data[t]=e;this.__dataPending[t]=e}return r}_isPropertyPending(t){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){if(!this.__dataInvalid&&this.__dataReady){this.__dataInvalid=true;Je.run((()=>{if(this.__dataInvalid){this.__dataInvalid=false;this._flushProperties()}}))}}_enableProperties(){if(!this.__dataEnabled){this.__dataEnabled=true;if(this.__dataInstanceProps){this._initializeInstanceProperties(this.__dataInstanceProps);this.__dataInstanceProps=null}this.ready()}}_flushProperties(){this.__dataCounter++;const t=this.__data;const e=this.__dataPending;const i=this.__dataOld;if(this._shouldPropertiesChange(t,e,i)){this.__dataPending=null;this.__dataOld=null;this._propertiesChanged(t,e,i)}this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i===i||e===e)}attributeChangedCallback(t,e,i,s){if(e!==i){this._attributeToProperty(t,i)}if(super.attributeChangedCallback){super.attributeChangedCallback(t,e,i,s)}}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes;const r=s&&s[t]||t;this[r]=this._deserializeValue(e,i||this.constructor.typeForProperty(r))}}_propertyToAttribute(t,e,i){this.__serializing=true;i=arguments.length<3?this[t]:i;this._valueToNodeAttribute(this,i,e||this.constructor.attributeNameForProperty(t));this.__serializing=false}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);if(i==="class"||i==="name"||i==="slot"){t=Ae(t)}if(s===undefined){t.removeAttribute(i)}else{t.setAttribute(i,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}}_serializeValue(t){switch(typeof t){case"boolean":return t?"":undefined;default:return t!=null?t.toString():undefined}}_deserializeValue(t,e){switch(e){case Boolean:return t!==null;case Number:return Number(t);default:return t}}}return e}));
683
- /**
684
- @license
685
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
686
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
687
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
688
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
689
- Code distributed by Google as part of the polymer project is also
690
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
691
- */const Ze={};let Qe=HTMLElement.prototype;while(Qe){let t=Object.getOwnPropertyNames(Qe);for(let e=0;e<t.length;e++){Ze[t[e]]=true}Qe=Object.getPrototypeOf(Qe)}const Xe=(()=>{if(!window.trustedTypes){return()=>false}return t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)})();function ti(t,e){if(!Ze[e]){let i=t[e];if(i!==undefined){if(t.__data){t._setPendingProperty(e,i)}else{if(!t.__dataProto){t.__dataProto={}}else if(!t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))){t.__dataProto=Object.create(t.__dataProto)}t.__dataProto[e]=i}}}}const ei=ae((t=>{const e=Ke(t);class i extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++){this.prototype._createPropertyAccessor(Re(t[e]))}}static attributeNameForProperty(t){return je(t)}_initializeProperties(){if(this.__dataProto){this._initializeProtoProperties(this.__dataProto);this.__dataProto=null}super._initializeProperties()}_initializeProtoProperties(t){for(let e in t){this._setProperty(e,t[e])}}_ensureAttribute(t,e){const i=this;if(!i.hasAttribute(t)){this._valueToNodeAttribute(i,e,t)}}_serializeValue(t){switch(typeof t){case"object":if(t instanceof Date){return t.toString()}else if(t){if(Xe(t)){return t}try{return JSON.stringify(t)}catch(t){return""}}default:return super._serializeValue(t)}}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null;console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t);i=new Date(i);break;default:i=super._deserializeValue(t,e);break}return i}_definePropertyAccessor(t,e){ti(this,t);super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}return i}));
692
- /**
693
- @license
694
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
695
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
696
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
697
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
698
- Code distributed by Google as part of the polymer project is also
699
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
700
- */const ii={"dom-if":true,"dom-repeat":true};let si=false;let ri=false;function oi(){if(!si){si=true;const t=document.createElement("textarea");t.placeholder="a";ri=t.placeholder===t.textContent}return ri}function ni(t){if(oi()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent){t.textContent=null}}const ai=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const r=i.getAttribute(s);if(t&&s.startsWith("on-")){e.setAttribute(s,t.createScript(r,s));return}e.setAttribute(s,r)}})();function li(t){let e=t.getAttribute("is");if(e&&ii[e]){let i=t;i.removeAttribute("is");t=i.ownerDocument.createElement(e);i.parentNode.replaceChild(t,i);t.appendChild(i);while(i.attributes.length){const{name:e}=i.attributes[0];ai(t,i,e);i.removeAttribute(e)}}return t}function hi(t,e){let i=e.parentInfo&&hi(t,e.parentInfo);if(i){for(let t=i.firstChild,s=0;t;t=t.nextSibling){if(e.parentIndex===s++){return t}}}else{return t}}function ci(t,e,i,s){if(s.id){e[s.id]=i}}function ui(t,e,i){if(i.events&&i.events.length){for(let s=0,r=i.events,o;s<r.length&&(o=r[s]);s++){t._addMethodEventListenerToNode(e,o.name,o.value,t)}}}function di(t,e,i,s){if(i.templateInfo){e._templateInfo=i.templateInfo;e._parentTemplateInfo=s}}function fi(t,e,i){t=t._methodHost||t;let s=function(e){if(t[i]){t[i](e,e.detail)}else{console.warn("listener method `"+i+"` not defined")}};return s}const pi=ae((t=>{class e extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[];i.nestedTemplate=Boolean(e);i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace");this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let s=false;let r=t;if(r.localName=="template"&&!r.hasAttribute("preserve-content")){s=this._parseTemplateNestedTemplate(r,e,i)||s}else if(r.localName==="slot"){e.hasInsertionPoint=true}ni(r);if(r.firstChild){this._parseTemplateChildNodes(r,e,i)}if(r.hasAttributes&&r.hasAttributes()){s=this._parseTemplateNodeAttributes(r,e,i)||s}return s||i.noted}static _parseTemplateChildNodes(t,e,i){if(t.localName==="script"||t.localName==="style"){return}for(let s=t.firstChild,r=0,o;s;s=o){if(s.localName=="template"){s=li(s)}o=s.nextSibling;if(s.nodeType===Node.TEXT_NODE){let i=o;while(i&&i.nodeType===Node.TEXT_NODE){s.textContent+=i.textContent;o=i.nextSibling;t.removeChild(i);i=o}if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let n={parentIndex:r,parentInfo:i};if(this._parseTemplateNode(s,e,n)){n.infoIndex=e.nodeInfoList.push(n)-1}if(s.parentNode){r++}}}static _parseTemplateNestedTemplate(t,e,i){let s=t;let r=this._parseTemplate(s,e);let o=r.content=s.content.ownerDocument.createDocumentFragment();o.appendChild(s.content);i.templateInfo=r;return true}static _parseTemplateNodeAttributes(t,e,i){let s=false;let r=Array.from(t.attributes);for(let o=r.length-1,n;n=r[o];o--){s=this._parseTemplateNodeAttribute(t,e,i,n.name,n.value)||s}return s}static _parseTemplateNodeAttribute(t,e,i,s,r){if(s.slice(0,3)==="on-"){t.removeAttribute(s);i.events=i.events||[];i.events.push({name:s.slice(3),value:r});return true}else if(s==="id"){i.id=r;return true}return false}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){if(t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate){HTMLTemplateElement.decorate(t)}e=e||this.constructor._parseTemplate(t);let i=e.nodeInfoList;let s=e.content||t.content;let r=document.importNode(s,true);r.__noInsertionPoint=!e.hasInsertionPoint;let o=r.nodeList=new Array(i.length);r.$={};for(let t=0,s=i.length,n;t<s&&(n=i[t]);t++){let i=o[t]=hi(r,n);ci(this,r.$,i,n);di(this,i,n,e);ui(this,i,n)}r=r;return r}_addMethodEventListenerToNode(t,e,i,s){s=s||t;let r=fi(s,e,i);this._addEventListenerToNode(t,e,r);return r}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}return e}));
701
- /**
702
- * @fileoverview
703
- * @suppress {checkPrototypalTypes}
704
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
705
- * This code may only be used under the BSD style license found at
706
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
707
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
708
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
709
- * Google as part of the polymer project is also subject to an additional IP
710
- * rights grant found at http://polymer.github.io/PATENTS.txt
711
- */let mi=0;const vi=[];const bi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"};const gi="__computeInfo";const yi=/[A-Z]/;function wi(t,e,i){let s=t[e];if(!s){s=t[e]={}}else if(!t.hasOwnProperty(e)){s=t[e]=Object.create(t[e]);if(i){for(let t in s){let e=s[t];let i=s[t]=Array(e.length);for(let t=0;t<e.length;t++){i[t]=e[t]}}}}return s}function xi(t,e,i,s,r,o){if(e){let n=false;const a=mi++;for(let l in i){let h=r?De(l):l;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==a)&&(!r||ki(l,u.trigger))){if(u.info){u.info.lastRun=a}u.fn(t,l,i,s,u.info,r,o);n=true}}}}return n}return false}function _i(t,e,i,s,r,o,n,a){let l=false;let h=n?De(s):s;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==i)&&(!n||ki(s,u.trigger))){if(u.info){u.info.lastRun=i}u.fn(t,s,r,o,u.info,n,a);l=true}}}return l}function ki(t,e){if(e){let i=e.name;return i==t||!!(e.structured&&Te(i,t))||!!(e.wildcard&&Se(i,t))}else{return true}}function Ai(t,e,i,s,r){let o=typeof r.method==="string"?t[r.method]:r.method;let n=r.property;if(o){o.call(t,t.__data[n],s[n])}else if(!r.dynamicFn){console.warn("observer method `"+r.method+"` not defined")}}function Ci(t,e,i,s,r){let o=t[bi.NOTIFY];let n;let a=mi++;for(let l in e){if(e[l]){if(o&&_i(t,o,a,l,i,s,r)){n=true}else if(r&&Di(t,l,i)){n=true}}}let l;if(n&&(l=t.__dataHost)&&l._invalidateProperties){l._invalidateProperties()}}function Di(t,e,i){let s=De(e);if(s!==e){let r=je(s)+"-changed";Ti(t,r,i[e],e);return true}return false}function Ti(t,e,i,s){let r={value:i,queueProperty:true};if(s){r.path=s}Ae(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Si(t,e,i,s,r,o){let n=o?De(e):e;let a=n!=e?e:null;let l=a?Ne(t,a):t.__data[e];if(a&&l===undefined){l=i[e]}Ti(t,r.eventName,l,a)}function Mi(t,e,i,s,r){let o;let n=t.detail;let a=n&&n.path;if(a){s=Me(i,s,a);o=n&&n.value}else{o=t.currentTarget[i]}o=r?!o:o;if(!e[bi.READ_ONLY]||!e[bi.READ_ONLY][s]){if(e._setPendingPropertyOrPath(s,o,true,Boolean(a))&&(!n||!n.queueProperty)){e._invalidateProperties()}}}function zi(t,e,i,s,r){let o=t.__data[e];if(Vt){o=Vt(o,r.attrName,"attribute",t)}t._propertyToAttribute(e,r.attrName,o)}function Pi(t,e,i,s){let r=t[bi.COMPUTE];if(r){if(ee){mi++;const o=Fi(t);const n=[];for(let t in e){Ni(t,r,n,o,s)}let a;while(a=n.shift()){if(Ii(t,"",e,i,a)){Ni(a.methodInfo,r,n,o,s)}}Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);t.__dataPending=null}else{let o=e;while(xi(t,r,o,i,s)){Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);o=t.__dataPending;t.__dataPending=null}}}}const Ei=(t,e,i)=>{let s=0;let r=e.length-1;let o=-1;while(s<=r){const n=s+r>>1;const a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0){s=n+1}else if(a>0){r=n-1}else{o=n;break}}if(o<0){o=r+1}e.splice(o,0,t)};const Ni=(t,e,i,s,r)=>{const o=r?De(t):t;const n=e[o];if(n){for(let e=0;e<n.length;e++){const o=n[e];if(o.info.lastRun!==mi&&(!r||ki(t,o.trigger))){o.info.lastRun=mi;Ei(o.info,i,s)}}}};function Fi(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[bi.COMPUTE];let{counts:s,ready:r,total:o}=Oi(t);let n;while(n=r.shift()){e.set(n,e.size);const t=i[n];if(t){t.forEach((t=>{const e=t.info.methodInfo;--o;if(--s[e]===0){r.push(e)}}))}}if(o!==0){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}function Oi(t){const e=t[gi];const i={};const s=t[bi.COMPUTE];const r=[];let o=0;for(let t in e){const s=e[t];o+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s){if(!e[t]){r.push(t)}}return{counts:i,ready:r,total:o}}function Ii(t,e,i,s,r){let o=Vi(t,e,i,s,r);if(o===vi){return false}let n=r.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[n]){return t._setPendingProperty(n,o,true)}else{t[n]=o;return false}}function Bi(t,e,i){let s=t.__dataLinkedPaths;if(s){let r;for(let o in s){let n=s[o];if(Se(o,e)){r=Me(o,n,e);t._setPendingPropertyOrPath(r,i,true,true)}else if(Se(n,e)){r=Me(n,o,e);t._setPendingPropertyOrPath(r,i,true,true)}}}}function Ri(t,e,i,s,r,o,n){i.bindings=i.bindings||[];let a={kind:s,target:r,parts:o,literal:n,isCompound:o.length!==1};i.bindings.push(a);if(Hi(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||je(r)+"-changed";a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i;ji(t,e,a,s,l)}}function ji(t,e,i,s,r){if(!s.literal){if(i.kind==="attribute"&&i.target[0]==="-"){console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character')}else{let o=s.dependencies;let n={index:r,binding:i,part:s,evaluator:t};for(let i=0;i<o.length;i++){let s=o[i];if(typeof s=="string"){s=fs(s);s.wildcard=true}t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Wi,info:n,trigger:s})}}}}function Wi(t,e,i,s,r,o,n){let a=n[r.index];let l=r.binding;let h=r.part;if(o&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=Me(h.source,l.target,e);if(a._setPendingPropertyOrPath(e,s,false,true)){t._enqueueClient(a)}}else{let n=r.evaluator._evaluateBinding(t,h,e,i,s,o);if(n!==vi){Li(t,a,l,h,n)}}}function Li(t,e,i,s,r){r=Ui(e,r,i,s);if(Vt){r=Vt(r,i.target,i.kind,e)}if(i.kind=="attribute"){t._valueToNodeAttribute(e,r,i.target)}else{let s=i.target;if(e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]){if(!e[bi.READ_ONLY]||!e[bi.READ_ONLY][s]){if(e._setPendingProperty(s,r)){t._enqueueClient(e)}}}else{t._setUnmanagedPropertyToNode(e,s,r)}}}function Ui(t,e,i,s){if(i.isCompound){let r=t.__dataCompoundStorage[i.target];r[s.compoundIndex]=e;e=r.join("")}if(i.kind!=="attribute"){if(i.target==="textContent"||i.target==="value"&&(t.localName==="input"||t.localName==="textarea")){e=e==undefined?"":e}}return e}function Hi(t){return Boolean(t.target)&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Gi(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length){for(let e=0;e<s.length;e++){let r=s[e];let o=i[e];let n=r.bindings;if(n){for(let e=0;e<n.length;e++){let i=n[e];$i(o,i);qi(o,t,i)}}o.__dataHost=t}}}function $i(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={});let s=e.parts;let r=new Array(s.length);for(let t=0;t<s.length;t++){r[t]=s[t].literal}let o=e.target;i[o]=r;if(e.literal&&e.kind=="property"){if(o==="className"){t=Ae(t)}t[o]=e.literal}}}function qi(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){Mi(t,e,i.target,s.source,s.negate)}))}}function Yi(t,e,i,s,r,o){o=e.static||o&&(typeof o!=="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:o};for(let r=0,o;r<e.args.length&&(o=e.args[r]);r++){if(!o.literal){t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o})}}if(o){t._addPropertyEffect(e.methodName,i,{fn:s,info:n})}return n}function Vi(t,e,i,s,r){let o=t._methodHost||t;let n=o[r.methodName];if(n){let s=t._marshalArgs(r.args,e,i);return s===vi?vi:n.apply(o,s)}else if(!r.dynamicFn){console.warn("method `"+r.methodName+"` not defined")}}const Ji=[];const Ki="(?:"+"[a-zA-Z_$][\\w.:$\\-*]*"+")";const Zi="(?:"+"[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?"+")";const Qi="(?:"+"'(?:[^'\\\\]|\\\\.)*'"+")";const Xi="(?:"+'"(?:[^"\\\\]|\\\\.)*"'+")";const ts="(?:"+Qi+"|"+Xi+")";const es="(?:("+Ki+"|"+Zi+"|"+ts+")\\s*"+")";const is="(?:"+es+"(?:,\\s*"+es+")*"+")";const ss="(?:"+"\\(\\s*"+"(?:"+is+"?"+")"+"\\)\\s*"+")";const rs="("+Ki+"\\s*"+ss+"?"+")";const os="(\\[\\[|{{)"+"\\s*";const ns="(?:]]|}})";const as="(?:(!)\\s*)?";const ls=os+as+rs+ns;const hs=new RegExp(ls,"g");function cs(t){let e="";for(let i=0;i<t.length;i++){let s=t[i].literal;e+=s||""}return e}function us(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t=e[1];let i={methodName:t,static:true,args:Ji};if(e[2].trim()){let t=e[2].replace(/\\,/g,"&comma;").split(",");return ds(t,i)}else{return i}}return null}function ds(t,e){e.args=t.map((function(t){let i=fs(t);if(!i.literal){e.static=false}return i}),this);return e}function fs(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");let i={name:e,value:"",literal:false};let s=e[0];if(s==="-"){s=e[1]}if(s>="0"&&s<="9"){s="#"}switch(s){case"'":case'"':i.value=e.slice(1,-1);i.literal=true;break;case"#":i.value=Number(e);i.literal=true;break}if(!i.literal){i.rootProperty=De(e);i.structured=Ce(e);if(i.structured){i.wildcard=e.slice(-2)==".*";if(i.wildcard){i.name=e.slice(0,-2)}}}return i}function ps(t,e,i){let s=Ne(t,i);if(s===undefined){s=e[i]}return s}function ms(t,e,i,s){const r={indexSplices:s};if(te&&!t._overrideLegacyUndefined){e.splices=r}t.notifyPath(i+".splices",r);t.notifyPath(i+".length",e.length);if(te&&!t._overrideLegacyUndefined){r.indexSplices=[]}}function vs(t,e,i,s,r,o){ms(t,e,i,[{index:s,addedCount:r,removed:o,object:e,type:"splice"}])}function bs(t){return t[0].toUpperCase()+t.substring(1)}const gs=ae((t=>{const e=pi(ei(t));class i extends e{constructor(){super();this.__isPropertyEffectsClient=true}get PROPERTY_EFFECT_TYPES(){return bi}_initializeProperties(){super._initializeProperties();this._registerHost();this.__dataClientsReady=false;this.__dataPendingClients=null;this.__dataToNotify=null;this.__dataLinkedPaths=null;this.__dataHasPaths=false;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=false}_registerHost(){if(ys.length){let t=ys[ys.length-1];t._enqueueClient(this);this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t);this.__dataPending=Object.create(t);this.__dataOld={}}_initializeInstanceProperties(t){let e=this[bi.READ_ONLY];for(let i in t){if(!e||!e[i]){this.__dataPending=this.__dataPending||{};this.__dataOld=this.__dataOld||{};this.__data[i]=this.__dataPending[i]=t[i]}}}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==bi.READ_ONLY);let s=wi(this,e,true)[t];if(!s){s=this[e][t]=[]}s.push(i)}_removePropertyEffect(t,e,i){let s=wi(this,e,true)[t];let r=s.indexOf(i);if(r>=0){s.splice(r,1)}}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,bi.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,bi.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,bi.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,bi.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||De(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Ne(this,t);t=Fe(this,t,e);if(!t||!super._shouldPropertyChange(t,e,i)){return false}}this.__dataHasPaths=true;if(this._setPendingProperty(t,e,i)){Bi(this,t,e);return true}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t]){return this._setPendingProperty(t,e,i)}else{this[t]=e}}return false}_setUnmanagedPropertyToNode(t,e,i){if(i!==t[e]||typeof i=="object"){if(e==="className"){t=Ae(t)}t[e]=i}}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Ce(t);let r=s?this.__dataTemp:this.__data;if(this._shouldPropertyChange(t,e,r[t])){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(!(t in this.__dataOld)){this.__dataOld[t]=this.__data[t]}if(s){this.__dataTemp[t]=e}else{this.__data[t]=e}this.__dataPending[t]=e;if(s||this[bi.NOTIFY]&&this[bi.NOTIFY][t]){this.__dataToNotify=this.__dataToNotify||{};this.__dataToNotify[t]=i}return true}return false}_setProperty(t,e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}_invalidateProperties(){if(this.__dataReady){this._flushProperties()}}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[];if(t!==this){this.__dataPendingClients.push(t)}}_flushClients(){if(!this.__dataClientsReady){this.__dataClientsReady=true;this._readyClients();this.__dataReady=true}else{this.__enableOrFlushClients()}}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];if(!i.__dataEnabled){i._enableProperties()}else if(i.__dataPending){i._flushProperties()}}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t){if(e||!this[bi.READ_ONLY]||!this[bi.READ_ONLY][i]){this._setPendingPropertyOrPath(i,t[i],true)}}this._invalidateProperties()}ready(){this._flushProperties();if(!this.__dataClientsReady){this._flushClients()}if(this.__dataPending){this._flushProperties()}}_propertiesChanged(t,e,i){let s=this.__dataHasPaths;this.__dataHasPaths=false;let r;Pi(this,e,i,s);r=this.__dataToNotify;this.__dataToNotify=null;this._propagatePropertyChanges(e,i,s);this._flushClients();xi(this,this[bi.REFLECT],e,i,s);xi(this,this[bi.OBSERVE],e,i,s);if(r){Ci(this,r,e,i,s)}if(this.__dataCounter==1){this.__dataTemp={}}}_propagatePropertyChanges(t,e,i){if(this[bi.PROPAGATE]){xi(this,this[bi.PROPAGATE],t,e,i)}if(this.__templateInfo){this._runEffectsForTemplate(this.__templateInfo,t,e,i)}}_runEffectsForTemplate(t,e,i,s){const r=(e,s)=>{xi(this,t.propertyEffects,e,i,s,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling){this._runEffectsForTemplate(r,e,i,s)}};if(t.runEffects){t.runEffects(r,e,s)}else{r(e,s)}}linkPaths(t,e){t=Pe(t);e=Pe(e);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Pe(t);if(this.__dataLinkedPaths){delete this.__dataLinkedPaths[t]}}notifySplices(t,e){let i={path:""};let s=Ne(this,t,i);ms(this,s,i.path,e)}get(t,e){return Ne(e||this,t)}set(t,e,i){if(i){Fe(i,t,e)}else{if(!this[bi.READ_ONLY]||!this[bi.READ_ONLY][t]){if(this._setPendingPropertyOrPath(t,e,true)){this._invalidateProperties()}}}}push(t,...e){let i={path:""};let s=Ne(this,t,i);let r=s.length;let o=s.push(...e);if(e.length){vs(this,s,i.path,r,e.length,[])}return o}pop(t){let e={path:""};let i=Ne(this,t,e);let s=Boolean(i.length);let r=i.pop();if(s){vs(this,i,e.path,i.length,0,[r])}return r}splice(t,e,i,...s){let r={path:""};let o=Ne(this,t,r);if(e<0){e=o.length-Math.floor(-e)}else if(e){e=Math.floor(e)}let n;if(arguments.length===2){n=o.splice(e)}else{n=o.splice(e,i,...s)}if(s.length||n.length){vs(this,o,r.path,e,s.length,n)}return n}shift(t){let e={path:""};let i=Ne(this,t,e);let s=Boolean(i.length);let r=i.shift();if(s){vs(this,i,e.path,0,0,[r])}return r}unshift(t,...e){let i={path:""};let s=Ne(this,t,i);let r=s.unshift(...e);if(e.length){vs(this,s,i.path,0,e.length,[])}return r}notifyPath(t,e){let i;if(arguments.length==1){let s={path:""};e=Ne(this,t,s);i=s.path}else if(Array.isArray(t)){i=Pe(t)}else{i=t}if(this._setPendingPropertyOrPath(i,e,true,true)){this._invalidateProperties()}}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,bi.READ_ONLY);if(e){this["_set"+bs(t)]=function(e){this._setProperty(t,e)}}}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,bi.OBSERVE,{fn:Ai,info:s,trigger:{name:t}});if(i){this._addPropertyEffect(e,bi.OBSERVE,{fn:Ai,info:s,trigger:{name:e}})}}_createMethodObserver(t,e){let i=us(t);if(!i){throw new Error("Malformed observer expression '"+t+"'")}Yi(this,i,bi.OBSERVE,Vi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,bi.NOTIFY,{fn:Si,info:{eventName:je(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);if(e[0]==="-"){console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.')}else{this._addPropertyEffect(t,bi.REFLECT,{fn:zi,info:{attrName:e}})}}_createComputedProperty(t,e,i){let s=us(e);if(!s){throw new Error("Malformed computed expression '"+e+"'")}const r=Yi(this,s,bi.COMPUTE,Ii,t,i);wi(this,gi)[t]=r}_marshalArgs(t,e,i){const s=this.__data;const r=[];for(let o=0,n=t.length;o<n;o++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[o];if(!c){if(l){const t=Se(n,e);const r=ps(s,i,t?e:n);h={path:t?e:n,value:r,base:t?Ne(s,n):r}}else{h=a?ps(s,i,n):s[n]}}if(te&&!this._overrideLegacyUndefined&&h===undefined&&t.length>1){return vi}r[o]=h}return r}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t);let s=this.__preBoundTemplateInfo==i;if(!s){for(let t in i.propertyEffects){this._createPropertyAccessor(t)}}if(e){i=Object.create(i);i.wasPreBound=s;if(!this.__templateInfo){this.__templateInfo=i}else{const e=t._parentTemplateInfo||this.__templateInfo;const s=e.lastChild;i.parent=e;e.lastChild=i;i.previousSibling=s;if(s){s.nextSibling=i}else{e.firstChild=i}}}else{this.__preBoundTemplateInfo=i}return i}static _addTemplatePropertyEffect(t,e,i){let s=t.hostProps=t.hostProps||{};s[e]=true;let r=t.propertyEffects=t.propertyEffects||{};let o=r[e]=r[e]||[];o.push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,true);ys.push(this);let i=super._stampTemplate(t,e);ys.pop();e.nodeList=i.nodeList;if(!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling){t.push(e)}}i.templateInfo=e;Gi(this,e);if(this.__dataClientsReady){this._runEffectsForTemplate(e,this.__data,null,false);this._flushClients()}return i}_removeBoundDom(t){const e=t.templateInfo;const{previousSibling:i,nextSibling:s,parent:r}=e;if(i){i.nextSibling=s}else if(r){r.firstChild=s}if(s){s.previousSibling=i}else if(r){r.lastChild=i}e.nextSibling=e.previousSibling=null;let o=e.childNodes;for(let t=0;t<o.length;t++){let e=o[t];Ae(Ae(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let r=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);if(e){t.textContent=cs(e)||" ";Ri(this,i,s,"text","textContent",e);r=true}}return r}static _parseTemplateNodeAttribute(t,i,s,r,o){let n=this._parseBindings(o,i);if(n){let e=r;let o="property";if(yi.test(r)){o="attribute"}else if(r[r.length-1]=="$"){r=r.slice(0,-1);o="attribute"}let a=cs(n);if(a&&o=="attribute"){if(r=="class"&&t.hasAttribute("class")){a+=" "+t.getAttribute(r)}t.setAttribute(r,a)}if(o=="attribute"&&e=="disable-upgrade$"){t.setAttribute(r,"")}if(t.localName==="input"&&e==="value"){t.setAttribute(e,"")}t.removeAttribute(e);if(o==="property"){r=Re(r)}Ri(this,i,s,o,r,n,a);return true}else{return e._parseTemplateNodeAttribute.call(this,t,i,s,r,o)}}static _parseTemplateNestedTemplate(t,i,s){let r=e._parseTemplateNestedTemplate.call(this,t,i,s);const o=t.parentNode;const n=s.templateInfo;const a=o.localName==="dom-if";const l=o.localName==="dom-repeat";if(ie&&(a||l)){o.removeChild(t);s=s.parentInfo;s.templateInfo=n;s.noted=true;r=false}let h=n.hostProps;if(se&&a){if(h){i.hostProps=Object.assign(i.hostProps||{},h);if(!ie){s.parentInfo.noted=true}}}else{let t="{";for(let e in h){let r=[{mode:t,source:e,dependencies:[e],hostProp:true}];Ri(this,i,s,"property","_host_"+e,r)}}return r}static _parseBindings(t,e){let i=[];let s=0;let r;while((r=hs.exec(t))!==null){if(r.index>s){i.push({literal:t.slice(s,r.index)})}let o=r[1][0];let n=Boolean(r[2]);let a=r[3].trim();let l=false,h="",c=-1;if(o=="{"&&(c=a.indexOf("::"))>0){h=a.substring(c+2);a=a.substring(0,c);l=true}let u=us(a);let d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];if(!i.literal){d.push(i)}}let s=e.dynamicFns;if(s&&s[i]||u.static){d.push(i);u.dynamicFn=true}}else{d.push(a)}i.push({source:a,mode:o,negate:n,customEvent:l,signature:u,dependencies:d,event:h});s=hs.lastIndex}if(s&&s<t.length){let e=t.substring(s);if(e){i.push({literal:e})}}if(i.length){return i}else{return null}}static _evaluateBinding(t,e,i,s,r,o){let n;if(e.signature){n=Vi(t,i,s,r,e.signature)}else if(i!=e.source){n=Ne(t,e.source)}else{if(o&&Ce(i)){n=Ne(t,i)}else{n=t.__data[i]}}if(e.negate){n=!n}return n}}return i}));const ys=[];
712
- /**
713
- @license
714
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
715
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
716
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
717
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
718
- Code distributed by Google as part of the polymer project is also
719
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
720
- */function ws(t){const e={};for(let i in t){const s=t[i];e[i]=typeof s==="function"?{type:s}:s}return e}const xs=ae((t=>{const e=Ke(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;if(i){e=ws(i)}}t.__ownProperties=e}return t.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);if(t){t.finalize()}this.__finalized=true;this._finalizeClass()}}static _finalizeClass(){const t=s(this);if(t){this.createProperties(t)}}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize();super._initializeProperties()}connectedCallback(){if(super.connectedCallback){super.connectedCallback()}this._enableProperties()}disconnectedCallback(){if(super.disconnectedCallback){super.disconnectedCallback()}}}return r}));
721
- /**
722
- * @fileoverview
723
- * @suppress {checkPrototypalTypes}
724
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
725
- * This code may only be used under the BSD style license found at
726
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
727
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
728
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
729
- * Google as part of the polymer project is also subject to an additional IP
730
- * rights grant found at http://polymer.github.io/PATENTS.txt
731
- */const _s="3.5.1";const ks=window.ShadyCSS&&window.ShadyCSS["cssBuild"];const As=ae((t=>{const e=xs(gs(t));function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];if("value"in s){t.__propertyDefaults=t.__propertyDefaults||{};t.__propertyDefaults[i]=s}}}return t.__propertyDefaults}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",t))){t.__ownObservers=t.hasOwnProperty(JSCompiler_renameProperty("observers",t))?t.observers:null}return t.__ownObservers}function r(t,e,i,s){if(i.computed){i.readOnly=true}if(i.computed){if(t._hasReadOnlyEffect(e)){console.warn(`Cannot redefine computed property '${e}'.`)}else{t._createComputedProperty(e,i.computed,s)}}if(i.readOnly&&!t._hasReadOnlyEffect(e)){t._createReadOnlyProperty(e,!i.computed)}else if(i.readOnly===false&&t._hasReadOnlyEffect(e)){console.warn(`Cannot make readOnly property '${e}' non-readOnly.`)}if(i.reflectToAttribute&&!t._hasReflectEffect(e)){t._createReflectedProperty(e)}else if(i.reflectToAttribute===false&&t._hasReflectEffect(e)){console.warn(`Cannot make reflected property '${e}' non-reflected.`)}if(i.notify&&!t._hasNotifyEffect(e)){t._createNotifyingProperty(e)}else if(i.notify===false&&t._hasNotifyEffect(e)){console.warn(`Cannot make notify property '${e}' non-notify.`)}if(i.observer){t._createPropertyObserver(e,i.observer,s[i.observer])}t._addPropertyToAttributeMap(e)}function o(t,e,i,s){if(!ks){const r=e.content.querySelectorAll("style");const o=xe(e);const n=_e(i);const a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let r=n[i];r.textContent=t._processStyleText(r.textContent,s);e.content.insertBefore(r,a)}let l=0;for(let e=0;e<o.length;e++){let i=o[e];let n=r[l];if(n!==i){i=i.cloneNode(true);n.parentNode.insertBefore(i,n)}else{l++}i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS){window.ShadyCSS.prepareTemplate(e,i)}if(oe&&ks&&qt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent;t.parentNode.removeChild(t)}));t._styleSheet=new CSSStyleSheet;t._styleSheet.replaceSync(e)}}}function n(t){let e=null;if(t&&(!Jt||Kt)){e=fe.import(t,"template");if(Jt&&!e){throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`)}}return e}class a extends e{static get polymerElementVersion(){return _s}static _finalizeClass(){e._finalizeClass.call(this);const t=s(this);if(t){this.createObservers(t,this._properties)}this._prepareTemplate()}static _prepareTemplate(){let t=this.template;if(t){if(typeof t==="string"){console.error("template getter must return HTMLTemplateElement");t=null}else if(!Zt){t=t.cloneNode(true)}}this.prototype._template=t}static createProperties(t){for(let e in t){r(this.prototype,e,t[e],t)}}static createObservers(t,e){const i=this.prototype;for(let s=0;s<t.length;s++){i._createMethodObserver(t[s],e)}}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:undefined;if(typeof t==="function"){t=t()}this._template=t!==undefined?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t){this._importPath=Gt(t.url)}else{const t=fe.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);super._initializeProperties();this.rootPath=Yt;this.importPath=this.constructor.importPath;let t=i(this.constructor);if(!t){return}for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t=typeof i.value=="function"?i.value.call(this):i.value;if(this._hasAccessor(e)){this._setPendingProperty(e,t,true)}else{this[e]=t}}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Ht(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=true;const i=this.importPath;const s=i?Ut(i):"";o(this,e,t,s);this.prototype._bindTemplate(e)}}connectedCallback(){if(window.ShadyCSS&&this._template){window.ShadyCSS.styleElement(this)}super.connectedCallback()}ready(){if(this._template){this.root=this._stampTemplate(this._template);this.$=this.root.$}super.ready()}_readyClients(){if(this._template){this.root=this._attachDom(this.root)}super._readyClients()}_attachDom(t){const e=Ae(this);if(e.attachShadow){if(t){if(!e.shadowRoot){e.attachShadow({mode:"open",shadyUpgradeFragment:t});e.shadowRoot.appendChild(t);if(this.constructor._styleSheet){e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet]}}if(Xt&&window.ShadyDOM){window.ShadyDOM.flushInitial(e.shadowRoot)}return e.shadowRoot}return null}else{throw new Error("ShadowDOM not available. "+"PolymerElement can create dom as children instead of in "+"ShadowDOM by setting `this.root = this;` before `ready`.")}}updateStyles(t){if(window.ShadyCSS){window.ShadyCSS.styleSubtree(this,t)}}resolveUrl(t,e){if(!e&&this.importPath){e=Ut(this.importPath)}return Ut(t,e)}static _parseTemplateContent(t,i,s){i.dynamicFns=i.dynamicFns||this._properties;return e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){if(Qt&&!(i in this._properties)&&!(s.info.part.signature&&s.info.part.signature.static)&&!s.info.part.hostProp&&!t.nestedTemplate){console.warn(`Property '${i}' used in template but not declared in 'properties'; `+`attribute will not be observed.`)}return e._addTemplatePropertyEffect.call(this,t,i,s)}}return a}));
732
- /**
733
- @license
734
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
735
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
736
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
737
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
738
- Code distributed by Google as part of the polymer project is also
739
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
740
- */const Cs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Ds{constructor(t,e){zs(t,e);const i=e.reduce(((e,i,s)=>e+Ts(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Ts(t){if(t instanceof Ds){return t.value}else{throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}}function Ss(t){if(t instanceof HTMLTemplateElement){return t.innerHTML}else if(t instanceof Ds){return Ts(t)}else{throw new Error(`non-template value passed to Polymer's html function: ${t}`)}}const Ms=function t(e,...i){zs(e,i);const s=document.createElement("template");let r=i.reduce(((t,i,s)=>t+Ss(i)+e[s+1]),e[0]);if(Cs){r=Cs.createHTML(r)}s.innerHTML=r;return s};const zs=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1){throw new TypeError("Invalid call to the html template tag")}};
741
- /**
742
- @license
743
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
744
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
745
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
746
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
747
- Code distributed by Google as part of the polymer project is also
748
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
749
- */const Ps=As(HTMLElement);
750
- /**
751
- * @license
752
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
753
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
754
- */const Es=[];function Ns(t,e,i=t.getAttribute("dir")){if(e){t.setAttribute("dir",e)}else if(i!=null){t.removeAttribute("dir")}}function Fs(){return document.documentElement.getAttribute("dir")}function Os(){const t=Fs();Es.forEach((e=>{Ns(e,t)}))}const Is=new MutationObserver(Os);Is.observe(document.documentElement,{attributes:true,attributeFilter:["dir"]});const Bs=t=>class e extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:true,converter:{fromAttribute:t=>!t?"":t,toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback();if(!this.hasAttribute("dir")||this.__restoreSubscription){this.__subscribe();Ns(this,Fs(),null)}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t!=="dir"){return}const s=Fs();const r=i===s&&Es.indexOf(this)===-1;const o=!i&&e&&Es.indexOf(this)===-1;const n=i!==s&&e===s;if(r||o){this.__subscribe();Ns(this,s,i)}else if(n){this.__unsubscribe()}}disconnectedCallback(){super.disconnectedCallback();this.__restoreSubscription=Es.includes(this);this.__unsubscribe()}_valueToNodeAttribute(t,e,i){if(i==="dir"&&e===""&&!t.hasAttribute("dir")){return}super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){if(t==="dir"&&!e){this.dir=""}else{super._attributeToProperty(t,e,i)}}__subscribe(){if(!Es.includes(this)){Es.push(this)}}__unsubscribe(){if(Es.includes(this)){Es.splice(Es.indexOf(this),1)}}}
755
- /**
756
- * @license
757
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
758
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
759
- */;class Rs extends(Mt(Bs(Ps))){static get is(){return"vaadin-input-container"}static get template(){return Ms`
760
- <style>
761
- :host {
762
- display: flex;
763
- align-items: center;
764
- flex: 0 1 auto;
765
- border-radius:
766
- /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
767
- var(--vaadin-input-field-top-start-radius, var(--__border-radius))
768
- var(--vaadin-input-field-top-end-radius, var(--__border-radius))
769
- var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
770
- var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
771
- --_border-radius: var(--vaadin-input-field-border-radius, 0px);
772
- --_input-border-width: var(--vaadin-input-field-border-width, 0);
773
- --_input-border-color: var(--vaadin-input-field-border-color, transparent);
774
- box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
775
- }
776
-
777
- :host([dir='rtl']) {
778
- border-radius:
779
- /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
780
- var(--vaadin-input-field-top-end-radius, var(--_border-radius))
781
- var(--vaadin-input-field-top-start-radius, var(--_border-radius))
782
- var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
783
- var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
784
- }
785
-
786
- :host([hidden]) {
787
- display: none !important;
788
- }
789
-
790
- /* Reset the native input styles */
791
- ::slotted(input) {
792
- -webkit-appearance: none;
793
- -moz-appearance: none;
794
- flex: auto;
795
- white-space: nowrap;
796
- overflow: hidden;
797
- width: 100%;
798
- height: 100%;
799
- outline: none;
800
- margin: 0;
801
- padding: 0;
802
- border: 0;
803
- border-radius: 0;
804
- min-width: 0;
805
- font: inherit;
806
- line-height: normal;
807
- color: inherit;
808
- background-color: transparent;
809
- /* Disable default invalid style in Firefox */
810
- box-shadow: none;
811
- }
812
-
813
- ::slotted(*) {
814
- flex: none;
815
- }
816
-
817
- ::slotted(:is(input, textarea))::placeholder {
818
- /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
819
- /* because ::slotted(...)::placeholder does not work in Safari. */
820
- font: inherit;
821
- color: inherit;
822
- /* Override default opacity in Firefox */
823
- opacity: 1;
824
- }
825
- </style>
826
- <slot name="prefix"></slot>
827
- <slot></slot>
828
- <slot name="suffix"></slot>
829
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:true},readonly:{type:Boolean,reflectToAttribute:true},invalid:{type:Boolean,reflectToAttribute:true}}}ready(){super.ready();this.addEventListener("pointerdown",(t=>{if(t.target===this){t.preventDefault()}}));this.addEventListener("click",(t=>{if(t.target===this){this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:true}).forEach((t=>t.focus&&t.focus()))}}))}}a(Rs);
830
- /**
831
- * @license
832
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
833
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
834
- */const js=m`
835
- :host {
836
- /* Square */
837
- --lumo-space-xs: 0.25rem;
838
- --lumo-space-s: 0.5rem;
839
- --lumo-space-m: 1rem;
840
- --lumo-space-l: 1.5rem;
841
- --lumo-space-xl: 2.5rem;
842
-
843
- /* Wide */
844
- --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
845
- --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
846
- --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
847
- --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
848
- --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
849
-
850
- /* Tall */
851
- --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
852
- --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
853
- --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
854
- --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
855
- --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
856
- }
857
- `;Pt("spacing-props",js);
858
- /**
859
- * @license
860
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
861
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
862
- */const Ws=m`
863
- :host {
864
- top: var(--lumo-space-m);
865
- right: var(--lumo-space-m);
866
- bottom: var(--lumo-space-m);
867
- left: var(--lumo-space-m);
868
- /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
869
- /* stylelint-disable-next-line */
870
- outline: 0px solid transparent;
871
- }
872
-
873
- [part='overlay'] {
874
- background-color: var(--lumo-base-color);
875
- background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
876
- border-radius: var(--lumo-border-radius-m);
877
- box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
878
- color: var(--lumo-body-text-color);
879
- font-family: var(--lumo-font-family);
880
- font-size: var(--lumo-font-size-m);
881
- font-weight: 400;
882
- line-height: var(--lumo-line-height-m);
883
- letter-spacing: 0;
884
- text-transform: none;
885
- -webkit-text-size-adjust: 100%;
886
- -webkit-font-smoothing: antialiased;
887
- -moz-osx-font-smoothing: grayscale;
888
- }
889
-
890
- [part='content'] {
891
- padding: var(--lumo-space-xs);
892
- }
893
-
894
- [part='backdrop'] {
895
- background-color: var(--lumo-shade-20pct);
896
- animation: 0.2s lumo-overlay-backdrop-enter both;
897
- will-change: opacity;
898
- }
899
-
900
- @keyframes lumo-overlay-backdrop-enter {
901
- 0% {
902
- opacity: 0;
903
- }
904
- }
905
-
906
- :host([closing]) [part='backdrop'] {
907
- animation: 0.2s lumo-overlay-backdrop-exit both;
908
- }
909
-
910
- @keyframes lumo-overlay-backdrop-exit {
911
- 100% {
912
- opacity: 0;
913
- }
914
- }
915
-
916
- @keyframes lumo-overlay-dummy-animation {
917
- 0% {
918
- opacity: 1;
919
- }
920
-
921
- 100% {
922
- opacity: 1;
923
- }
924
- }
925
- `;_t("",Ws,{moduleId:"lumo-overlay"});
926
- /**
927
- * @license
928
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
929
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
930
- */const Ls=m`
931
- :host([opening]),
932
- :host([closing]) {
933
- animation: 0.14s lumo-overlay-dummy-animation;
934
- }
935
-
936
- [part='overlay'] {
937
- will-change: opacity, transform;
938
- }
939
-
940
- :host([opening]) [part='overlay'] {
941
- animation: 0.1s lumo-menu-overlay-enter ease-out both;
942
- }
943
-
944
- @keyframes lumo-menu-overlay-enter {
945
- 0% {
946
- opacity: 0;
947
- transform: translateY(-4px);
948
- }
949
- }
950
-
951
- :host([closing]) [part='overlay'] {
952
- animation: 0.1s lumo-menu-overlay-exit both;
953
- }
954
-
955
- @keyframes lumo-menu-overlay-exit {
956
- 100% {
957
- opacity: 0;
958
- }
959
- }
960
- `;_t("",Ls,{moduleId:"lumo-menu-overlay-core"});const Us=m`
961
- /* Small viewport (bottom sheet) styles */
962
- /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
963
- @media (max-width: 420px), (max-height: 420px) {
964
- :host {
965
- top: 0 !important;
966
- right: 0 !important;
967
- bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
968
- left: 0 !important;
969
- align-items: stretch !important;
970
- justify-content: flex-end !important;
971
- }
972
-
973
- [part='overlay'] {
974
- max-height: 50vh;
975
- width: 100vw;
976
- border-radius: 0;
977
- box-shadow: var(--lumo-box-shadow-xl);
978
- }
979
-
980
- /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
981
- [part='content'] {
982
- padding: 30px var(--lumo-space-m);
983
- max-height: inherit;
984
- box-sizing: border-box;
985
- -webkit-overflow-scrolling: touch;
986
- overflow: auto;
987
- -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
988
- mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
989
- }
990
-
991
- [part='backdrop'] {
992
- display: block;
993
- }
994
-
995
- /* Animations */
996
-
997
- :host([opening]) [part='overlay'] {
998
- animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
999
- }
1000
-
1001
- :host([closing]),
1002
- :host([closing]) [part='backdrop'] {
1003
- animation-delay: 0.14s;
1004
- }
1005
-
1006
- :host([closing]) [part='overlay'] {
1007
- animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
1008
- }
1009
- }
1010
-
1011
- @keyframes lumo-mobile-menu-overlay-enter {
1012
- 0% {
1013
- transform: translateY(150%);
1014
- }
1015
- }
1016
-
1017
- @keyframes lumo-mobile-menu-overlay-exit {
1018
- 100% {
1019
- transform: translateY(150%);
1020
- }
1021
- }
1022
- `;const Hs=[Ws,Ls,Us];_t("",Hs,{moduleId:"lumo-menu-overlay"});const Gs=m`
1023
- [part='overlay'] {
1024
- /*
1025
- Width:
1026
- date cell widths
1027
- + month calendar side padding
1028
- + year scroller width
1029
- */
1030
- /* prettier-ignore */
1031
- width:
1032
- calc(
1033
- var(--lumo-size-m) * 7
1034
- + var(--lumo-space-xs) * 2
1035
- + 57px
1036
- );
1037
- height: 100%;
1038
- max-height: calc(var(--lumo-size-m) * 14);
1039
- overflow: hidden;
1040
- -webkit-tap-highlight-color: transparent;
1041
- }
1042
-
1043
- [part='overlay'] {
1044
- flex-direction: column;
1045
- }
1046
-
1047
- [part='content'] {
1048
- padding: 0;
1049
- height: 100%;
1050
- overflow: hidden;
1051
- -webkit-mask-image: none;
1052
- mask-image: none;
1053
- }
1054
-
1055
- :host([top-aligned]) [part~='overlay'] {
1056
- margin-top: var(--lumo-space-xs);
1057
- }
1058
-
1059
- :host([bottom-aligned]) [part~='overlay'] {
1060
- margin-bottom: var(--lumo-space-xs);
1061
- }
1062
-
1063
- @media (max-width: 420px), (max-height: 420px) {
1064
- [part='overlay'] {
1065
- width: 100vw;
1066
- height: 70vh;
1067
- max-height: 70vh;
1068
- }
1069
- }
1070
- `;_t("vaadin-date-picker-overlay",[Hs,Gs],{moduleId:"lumo-date-picker-overlay"});const $s=m`
1071
- :host {
1072
- /* Sizing */
1073
- --lumo-button-size: var(--lumo-size-m);
1074
- min-width: calc(var(--lumo-button-size) * 2);
1075
- height: var(--lumo-button-size);
1076
- padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
1077
- margin: var(--lumo-space-xs) 0;
1078
- box-sizing: border-box;
1079
- /* Style */
1080
- font-family: var(--lumo-font-family);
1081
- font-size: var(--lumo-font-size-m);
1082
- font-weight: 500;
1083
- color: var(--_lumo-button-color, var(--lumo-primary-text-color));
1084
- background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
1085
- border-radius: var(--lumo-border-radius-m);
1086
- cursor: var(--lumo-clickable-cursor);
1087
- -webkit-tap-highlight-color: transparent;
1088
- -webkit-font-smoothing: antialiased;
1089
- -moz-osx-font-smoothing: grayscale;
1090
- flex-shrink: 0;
1091
- }
1092
-
1093
- /* Set only for the internal parts so we don't affect the host vertical alignment */
1094
- [part='label'],
1095
- [part='prefix'],
1096
- [part='suffix'] {
1097
- line-height: var(--lumo-line-height-xs);
1098
- }
1099
-
1100
- [part='label'] {
1101
- padding: calc(var(--lumo-button-size) / 6) 0;
1102
- }
1103
-
1104
- :host([theme~='small']) {
1105
- font-size: var(--lumo-font-size-s);
1106
- --lumo-button-size: var(--lumo-size-s);
1107
- }
1108
-
1109
- :host([theme~='large']) {
1110
- font-size: var(--lumo-font-size-l);
1111
- --lumo-button-size: var(--lumo-size-l);
1112
- }
1113
-
1114
- /* For interaction states */
1115
- :host::before,
1116
- :host::after {
1117
- content: '';
1118
- /* We rely on the host always being relative */
1119
- position: absolute;
1120
- z-index: 1;
1121
- inset: 0;
1122
- background-color: currentColor;
1123
- border-radius: inherit;
1124
- opacity: 0;
1125
- pointer-events: none;
1126
- }
1127
-
1128
- /* Hover */
1129
-
1130
- @media (any-hover: hover) {
1131
- :host(:hover)::before {
1132
- opacity: 0.02;
1133
- }
1134
- }
1135
-
1136
- /* Active */
1137
-
1138
- :host::after {
1139
- transition: opacity 1.4s, transform 0.1s;
1140
- filter: blur(8px);
1141
- }
1142
-
1143
- :host([active])::before {
1144
- opacity: 0.05;
1145
- transition-duration: 0s;
1146
- }
1147
-
1148
- :host([active])::after {
1149
- opacity: 0.1;
1150
- transition-duration: 0s, 0s;
1151
- transform: scale(0);
1152
- }
1153
-
1154
- /* Keyboard focus */
1155
-
1156
- :host([focus-ring]) {
1157
- box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1158
- }
1159
-
1160
- :host([theme~='primary'][focus-ring]) {
1161
- box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1162
- }
1163
-
1164
- /* Types (primary, tertiary, tertiary-inline */
1165
-
1166
- :host([theme~='tertiary']),
1167
- :host([theme~='tertiary-inline']) {
1168
- background-color: transparent !important;
1169
- min-width: 0;
1170
- }
1171
-
1172
- :host([theme~='tertiary']) {
1173
- padding: 0 calc(var(--lumo-button-size) / 6);
1174
- }
1175
-
1176
- :host([theme~='tertiary-inline'])::before {
1177
- display: none;
1178
- }
1179
-
1180
- :host([theme~='tertiary-inline']) {
1181
- margin: 0;
1182
- height: auto;
1183
- padding: 0;
1184
- line-height: inherit;
1185
- font-size: inherit;
1186
- }
1187
-
1188
- :host([theme~='tertiary-inline']) [part='label'] {
1189
- padding: 0;
1190
- overflow: visible;
1191
- line-height: inherit;
1192
- }
1193
-
1194
- :host([theme~='primary']) {
1195
- background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1196
- color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1197
- font-weight: 600;
1198
- min-width: calc(var(--lumo-button-size) * 2.5);
1199
- }
1200
-
1201
- :host([theme~='primary'])::before {
1202
- background-color: black;
1203
- }
1204
-
1205
- @media (any-hover: hover) {
1206
- :host([theme~='primary']:hover)::before {
1207
- opacity: 0.05;
1208
- }
1209
- }
1210
-
1211
- :host([theme~='primary'][active])::before {
1212
- opacity: 0.1;
1213
- }
1214
-
1215
- :host([theme~='primary'][active])::after {
1216
- opacity: 0.2;
1217
- }
1218
-
1219
- /* Colors (success, error, contrast) */
1220
-
1221
- :host([theme~='success']) {
1222
- color: var(--lumo-success-text-color);
1223
- }
1224
-
1225
- :host([theme~='success'][theme~='primary']) {
1226
- background-color: var(--lumo-success-color);
1227
- color: var(--lumo-success-contrast-color);
1228
- }
1229
-
1230
- :host([theme~='error']) {
1231
- color: var(--lumo-error-text-color);
1232
- }
1233
-
1234
- :host([theme~='error'][theme~='primary']) {
1235
- background-color: var(--lumo-error-color);
1236
- color: var(--lumo-error-contrast-color);
1237
- }
1238
-
1239
- :host([theme~='contrast']) {
1240
- color: var(--lumo-contrast);
1241
- }
1242
-
1243
- :host([theme~='contrast'][theme~='primary']) {
1244
- background-color: var(--lumo-contrast);
1245
- color: var(--lumo-base-color);
1246
- }
1247
-
1248
- /* Disabled state. Keep selectors after other color variants. */
1249
-
1250
- :host([disabled]) {
1251
- pointer-events: none;
1252
- color: var(--lumo-disabled-text-color);
1253
- }
1254
-
1255
- :host([theme~='primary'][disabled]) {
1256
- background-color: var(--lumo-contrast-30pct);
1257
- color: var(--lumo-base-color);
1258
- }
1259
-
1260
- :host([theme~='primary'][disabled]) [part] {
1261
- opacity: 0.7;
1262
- }
1263
-
1264
- /* Icons */
1265
-
1266
- [part] ::slotted(vaadin-icon) {
1267
- display: inline-block;
1268
- width: var(--lumo-icon-size-m);
1269
- height: var(--lumo-icon-size-m);
1270
- }
1271
-
1272
- /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
1273
- [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
1274
- padding: 0.25em;
1275
- box-sizing: border-box !important;
1276
- }
1277
-
1278
- [part='prefix'] {
1279
- margin-left: -0.25em;
1280
- margin-right: 0.25em;
1281
- }
1282
-
1283
- [part='suffix'] {
1284
- margin-left: 0.25em;
1285
- margin-right: -0.25em;
1286
- }
1287
-
1288
- /* Icon-only */
1289
-
1290
- :host([theme~='icon']:not([theme~='tertiary-inline'])) {
1291
- min-width: var(--lumo-button-size);
1292
- padding-left: calc(var(--lumo-button-size) / 4);
1293
- padding-right: calc(var(--lumo-button-size) / 4);
1294
- }
1295
-
1296
- :host([theme~='icon']) [part='prefix'],
1297
- :host([theme~='icon']) [part='suffix'] {
1298
- margin-left: 0;
1299
- margin-right: 0;
1300
- }
1301
-
1302
- /* RTL specific styles */
1303
-
1304
- :host([dir='rtl']) [part='prefix'] {
1305
- margin-left: 0.25em;
1306
- margin-right: -0.25em;
1307
- }
1308
-
1309
- :host([dir='rtl']) [part='suffix'] {
1310
- margin-left: -0.25em;
1311
- margin-right: 0.25em;
1312
- }
1313
-
1314
- :host([dir='rtl'][theme~='icon']) [part='prefix'],
1315
- :host([dir='rtl'][theme~='icon']) [part='suffix'] {
1316
- margin-left: 0;
1317
- margin-right: 0;
1318
- }
1319
- `;_t("vaadin-button",$s,{moduleId:"lumo-button"});
1320
- /**
1321
- * @license
1322
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1323
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1324
- */const qs=ae((t=>{if(typeof t.prototype.addController==="function"){return t}return class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}}));const Ys=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i;const Vs=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Js(){function t(){return true}return tr(t)}function Ks(){try{if(Zs()){return true}if(!Qs()){return false}if(Vs){return!Xs()}return!Js()}catch(t){return false}}function Zs(){return localStorage.getItem("vaadin.developmentmode.force")}function Qs(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Xs(){if(Vs){const t=Object.keys(Vs).map((t=>Vs[t])).filter((t=>t.productionMode));if(t.length>0){return true}}return false}function tr(t,e){if(typeof t!=="function"){return}const i=Ys.exec(t.toString());if(i){try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}}return t(e)}window["Vaadin"]=window["Vaadin"]||{};const er=function(t,e){if(window.Vaadin.developmentMode){return tr(t,e)}};if(window.Vaadin.developmentMode===undefined){window.Vaadin.developmentMode=Ks()}function ir(){}const sr=function(){if(typeof er==="function"){return er(ir)}};
1325
- /**
1326
- * @license
1327
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1328
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1329
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1330
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1331
- * Code distributed by Google as part of the polymer project is also
1332
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1333
- */let rr=0;let or=0;const nr=[];let ar=false;function lr(){ar=false;const t=nr.length;for(let e=0;e<t;e++){const t=nr[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}nr.splice(0,t);or+=t}const hr={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const cr={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){if(window.cancelIdleCallback){window.cancelIdleCallback(t)}else{window.clearTimeout(t)}}};const ur={run(t){if(!ar){ar=true;queueMicrotask((()=>lr()))}nr.push(t);const e=rr;rr+=1;return e},cancel(t){const e=t-or;if(e>=0){if(!nr[e]){throw new Error(`invalid async handle: ${t}`)}nr[e]=null}}};
1334
- /**
1335
- @license
1336
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1337
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1338
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1339
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1340
- Code distributed by Google as part of the polymer project is also
1341
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1342
- */const dr=new Set;class fr{static debounce(t,e,i){if(t instanceof fr){t._cancelAsync()}else{t=new fr}t.setConfig(e,i);return t}constructor(){this._asyncModule=null;this._callback=null;this._timer=null}setConfig(t,e){this._asyncModule=t;this._callback=e;this._timer=this._asyncModule.run((()=>{this._timer=null;dr.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();dr.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}}function pr(t){dr.add(t)}
1343
- /**
1344
- * @license
1345
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1346
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1347
- */if(!window.Vaadin){window.Vaadin={}}if(!window.Vaadin.registrations){window.Vaadin.registrations=[]}if(!window.Vaadin.developmentModeCallback){window.Vaadin.developmentModeCallback={}}window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){sr()};let mr;const vr=new Set;const br=t=>class e extends(Bs(t)){static get version(){return"24.2.5"}static finalize(){super.finalize();const{is:t}=this;if(t&&!vr.has(t)){window.Vaadin.registrations.push(this);vr.add(t);if(window.Vaadin.developmentModeCallback){mr=fr.debounce(mr,cr,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}));pr(mr)}}}constructor(){super();if(document.doctype===null){console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}}
1348
- /**
1349
- * @license
1350
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1351
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1352
- */;function gr(t){const e=[];while(t){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t);t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function yr(t){if(!t){return new Set}return new Set(t.split(" "))}function wr(t){return t?[...t].join(" "):""}function xr(t,e,i){const s=yr(t.getAttribute(e));s.add(i);t.setAttribute(e,wr(s))}function _r(t,e,i){const s=yr(t.getAttribute(e));s.delete(i);if(s.size===0){t.removeAttribute(e);return}t.setAttribute(e,wr(s))}function kr(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}
1353
- /**
1354
- * @license
1355
- * Copyright (c) 2023 Vaadin Ltd.
1356
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1357
- */class Ar{constructor(t,e){this.slot=t;this.callback=e;this._storedNodes=[];this._connected=false;this._scheduled=false;this._boundSchedule=()=>{this._schedule()};this.connect();this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule);this._connected=true}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule);this._connected=false}_schedule(){if(!this._scheduled){this._scheduled=true;queueMicrotask((()=>{this.flush()}))}}flush(){if(!this._connected){return}this._scheduled=false;this._processNodes()}_processNodes(){const t=this.slot.assignedNodes({flatten:true});let e=[];const i=[];const s=[];if(t.length){e=t.filter((t=>!this._storedNodes.includes(t)))}if(this._storedNodes.length){this._storedNodes.forEach(((e,r)=>{const o=t.indexOf(e);if(o===-1){i.push(e)}else if(o!==r){s.push(e)}}))}if(e.length||i.length||s.length){this.callback({addedNodes:e,movedNodes:s,removedNodes:i})}this._storedNodes=t}}
1358
- /**
1359
- * @license
1360
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1361
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1362
- */let Cr=0;function Dr(){return Cr++}
1363
- /**
1364
- * @license
1365
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1366
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1367
- */class Tr extends EventTarget{static generateId(t,e){const i=e||"default";return`${i}-${t.localName}-${Dr()}`}constructor(t,e,i,s={}){super();const{initializer:r,multiple:o,observe:n,useUniqueId:a}=s;this.host=t;this.slotName=e;this.tagName=i;this.observe=typeof n==="boolean"?n:true;this.multiple=typeof o==="boolean"?o:false;this.slotInitializer=r;if(o){this.nodes=[]}if(a){this.defaultId=this.constructor.generateId(t,e)}}hostConnected(){if(!this.initialized){if(this.multiple){this.initMultiple()}else{this.initSingle()}if(this.observe){this.observeSlot()}this.initialized=true}}initSingle(){let t=this.getSlotChild();if(!t){t=this.attachDefaultNode();this.initNode(t)}else{this.node=t;this.initAddedNode(t)}}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const t=this.attachDefaultNode();if(t){this.nodes=[t];this.initNode(t)}}else{this.nodes=t;t.forEach((t=>{this.initAddedNode(t)}))}}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;if(!s&&i){s=document.createElement(i);if(s instanceof Element){if(e!==""){s.setAttribute("slot",e)}this.node=s;this.defaultNode=s}}if(s){t.appendChild(s)}return s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t===""))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;if(e){e(t,this.host)}}initCustomNode(t){}teardownNode(t){}initAddedNode(t){if(t!==this.defaultNode){this.initCustomNode(t);this.initNode(t)}}observeSlot(){const{slotName:t}=this;const e=t===""?"slot:not([name])":`slot[name=${t}]`;const i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ar(i,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node];const s=t.filter((t=>!kr(t)&&!i.includes(t)));if(e.length){this.nodes=i.filter((t=>!e.includes(t)));e.forEach((t=>{this.teardownNode(t)}))}if(s&&s.length>0){if(this.multiple){if(this.defaultNode){this.defaultNode.remove()}this.nodes=[...i,...s].filter((t=>t!==this.defaultNode));s.forEach((t=>{this.initAddedNode(t)}))}else{if(this.node){this.node.remove()}this.node=s[0];this.initAddedNode(this.node)}}}))}}
1368
- /**
1369
- * @license
1370
- * Copyright (c) 2022 - 2023 Vaadin Ltd.
1371
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1372
- */class Sr extends Tr{constructor(t){super(t,"tooltip");this.setTarget(t)}initCustomNode(t){t.target=this.target;if(this.ariaTarget!==undefined){t.ariaTarget=this.ariaTarget}if(this.context!==undefined){t.context=this.context}if(this.manual!==undefined){t.manual=this.manual}if(this.opened!==undefined){t.opened=this.opened}if(this.position!==undefined){t._position=this.position}if(this.shouldShow!==undefined){t.shouldShow=this.shouldShow}this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;if(e){e.ariaTarget=t}}setContext(t){this.context=t;const e=this.node;if(e){e.context=t}}setManual(t){this.manual=t;const e=this.node;if(e){e.manual=t}}setOpened(t){this.opened=t;const e=this.node;if(e){e.opened=t}}setPosition(t){this.position=t;const e=this.node;if(e){e._position=t}}setShouldShow(t){this.shouldShow=t;const e=this.node;if(e){e.shouldShow=t}}setTarget(t){this.target=t;const e=this.node;if(e){e.target=t}}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
1373
- /**
1374
- * @license
1375
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1376
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1377
- */const Mr=m`
1378
- :host {
1379
- display: inline-block;
1380
- position: relative;
1381
- outline: none;
1382
- white-space: nowrap;
1383
- -webkit-user-select: none;
1384
- -moz-user-select: none;
1385
- user-select: none;
1386
- }
1387
-
1388
- :host([hidden]) {
1389
- display: none !important;
1390
- }
1391
-
1392
- /* Aligns the button with form fields when placed on the same line.
1393
- Note, to make it work, the form fields should have the same "::before" pseudo-element. */
1394
- .vaadin-button-container::before {
1395
- content: '\\2003';
1396
- display: inline-block;
1397
- width: 0;
1398
- max-height: 100%;
1399
- }
1400
-
1401
- .vaadin-button-container {
1402
- display: inline-flex;
1403
- align-items: center;
1404
- justify-content: center;
1405
- text-align: center;
1406
- width: 100%;
1407
- height: 100%;
1408
- min-height: inherit;
1409
- text-shadow: inherit;
1410
- }
1411
-
1412
- [part='prefix'],
1413
- [part='suffix'] {
1414
- flex: none;
1415
- }
1416
-
1417
- [part='label'] {
1418
- white-space: nowrap;
1419
- overflow: hidden;
1420
- text-overflow: ellipsis;
1421
- }
1422
-
1423
- @media (forced-colors: active) {
1424
- :host {
1425
- outline: 1px solid;
1426
- outline-offset: -1px;
1427
- }
1428
-
1429
- :host([focused]) {
1430
- outline-width: 2px;
1431
- }
1432
-
1433
- :host([disabled]) {
1434
- outline-color: GrayText;
1435
- }
1436
- }
1437
- `;const zr=t=>t`
1438
- <div class="vaadin-button-container">
1439
- <span part="prefix" aria-hidden="true">
1440
- <slot name="prefix"></slot>
1441
- </span>
1442
- <span part="label">
1443
- <slot></slot>
1444
- </span>
1445
- <span part="suffix" aria-hidden="true">
1446
- <slot name="suffix"></slot>
1447
- </span>
1448
- </div>
1449
- <slot name="tooltip"></slot>
1450
- `
1451
- /**
1452
- @license
1453
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1454
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1455
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1456
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1457
- Code distributed by Google as part of the polymer project is also
1458
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1459
- */;const Pr=false;const Er=t=>t;const Nr=typeof document.head.style.touchAction==="string";const Fr="__polymerGestures";const Or="__polymerGesturesHandled";const Ir="__polymerGesturesTouchAction";const Br=25;const Rr=5;const jr=2;const Wr=["mousedown","mousemove","mouseup","click"];const Lr=[0,1,4,2];const Ur=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return false}}();function Hr(t){return Wr.indexOf(t)>-1}let Gr=false;(function(){try{const t=Object.defineProperty({},"passive",{get(){Gr=true}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(t){}})();function $r(t){if(Hr(t)||t==="touchend"){return}if(Nr&&Gr&&Pr){return{passive:true}}}const qr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u);const Yr={button:true,command:true,fieldset:true,input:true,keygen:true,optgroup:true,option:true,select:true,textarea:true};function Vr(t){const e=t.type;if(!Hr(e)){return false}if(e==="mousemove"){let e=t.buttons===undefined?1:t.buttons;if(t instanceof window.MouseEvent&&!Ur){e=Lr[t.which]||0}return Boolean(e&1)}const i=t.button===undefined?0:t.button;return i===0}function Jr(t){if(t.type==="click"){if(t.detail===0){return true}const e=ro(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE){return true}const i=e.getBoundingClientRect();const s=t.pageX,r=t.pageY;return!(s>=i.left&&s<=i.right&&r>=i.top&&r<=i.bottom)}return false}const Kr={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:false}};function Zr(t){let e="auto";const i=to(t);for(let t=0,s;t<i.length;t++){s=i[t];if(s[Ir]){e=s[Ir];break}}return e}function Qr(t,e,i){t.movefn=e;t.upfn=i;document.addEventListener("mousemove",e);document.addEventListener("mouseup",i)}function Xr(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null}const to=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[];const eo={};const io=[];function so(t,e){let i=document.elementFromPoint(t,e);let s=i;while(s&&s.shadowRoot&&!window.ShadyDOM){const r=s;s=s.shadowRoot.elementFromPoint(t,e);if(r===s){break}if(s){i=s}}return i}function ro(t){const e=to(t);return e.length>0?e[0]:t.target}function oo(t){const e=t.type;const i=t.currentTarget;const s=i[Fr];if(!s){return}const r=s[e];if(!r){return}if(!t[Or]){t[Or]={};if(e.startsWith("touch")){const i=t.changedTouches[0];if(e==="touchstart"){if(t.touches.length===1){Kr.touch.id=i.identifier}}if(Kr.touch.id!==i.identifier){return}if(!Nr){if(e==="touchstart"||e==="touchmove"){no(t)}}}}const o=t[Or];if(o.skip){return}for(let e=0,i;e<io.length;e++){i=io[e];if(r[i.name]&&!o[i.name]){if(i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset){i.reset()}}}for(let i=0,s;i<io.length;i++){s=io[i];if(r[s.name]&&!o[s.name]){o[s.name]=true;s[e](t)}}}function no(t){const e=t.changedTouches[0];const i=t.type;if(i==="touchstart"){Kr.touch.x=e.clientX;Kr.touch.y=e.clientY;Kr.touch.scrollDecided=false}else if(i==="touchmove"){if(Kr.touch.scrollDecided){return}Kr.touch.scrollDecided=true;const i=Zr(t);let s=false;const r=Math.abs(Kr.touch.x-e.clientX);const o=Math.abs(Kr.touch.y-e.clientY);if(!t.cancelable);else if(i==="none"){s=true}else if(i==="pan-x"){s=o>r}else if(i==="pan-y"){s=r>o}if(s){t.preventDefault()}else{po("track")}}}function ao(t,e,i){if(eo[e]){lo(t,e,i);return true}return false}function lo(t,e,i){const s=eo[e];const r=s.deps;const o=s.name;let n=t[Fr];if(!n){t[Fr]=n={}}for(let e=0,i,s;e<r.length;e++){i=r[e];if(qr&&Hr(i)&&i!=="click"){continue}s=n[i];if(!s){n[i]=s={_count:0}}if(s._count===0){t.addEventListener(i,oo,$r(i))}s[o]=(s[o]||0)+1;s._count=(s._count||0)+1}t.addEventListener(e,i);if(s.touchAction){uo(t,s.touchAction)}}function ho(t){io.push(t);t.emits.forEach((e=>{eo[e]=t}))}function co(t){for(let e=0,i;e<io.length;e++){i=io[e];for(let e=0,s;e<i.emits.length;e++){s=i.emits[e];if(s===t){return i}}}return null}function uo(t,e){if(Nr&&t instanceof HTMLElement){ur.run((()=>{t.style.touchAction=e}))}t[Ir]=e}function fo(t,e,i){const s=new Event(e,{bubbles:true,cancelable:true,composed:true});s.detail=i;Er(t).dispatchEvent(s);if(s.defaultPrevented){const t=i.preventer||i.sourceEvent;if(t&&t.preventDefault){t.preventDefault()}}}function po(t){const e=co(t);if(e.info){e.info.prevent=true}}ho({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Xr(this.info)},mousedown(t){if(!Vr(t)){return}const e=ro(t);const i=this;const s=t=>{if(!Vr(t)){mo("up",e,t);Xr(i.info)}};const r=t=>{if(Vr(t)){mo("up",e,t)}Xr(i.info)};Qr(this.info,s,r);mo("down",e,t)},touchstart(t){mo("down",ro(t),t.changedTouches[0],t)},touchend(t){mo("up",ro(t),t.changedTouches[0],t)}});function mo(t,e,i,s){if(!e){return}fo(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent(t){return po(t)}})}ho({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:false,moves:[],addMove(t){if(this.moves.length>jr){this.moves.shift()}this.moves.push(t)},movefn:null,upfn:null,prevent:false},reset(){this.info.state="start";this.info.started=false;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=false;Xr(this.info)},mousedown(t){if(!Vr(t)){return}const e=ro(t);const i=this;const s=t=>{const s=t.clientX,r=t.clientY;if(vo(i.info,s,r)){i.info.state=i.info.started?t.type==="mouseup"?"end":"track":"start";if(i.info.state==="start"){po("tap")}i.info.addMove({x:s,y:r});if(!Vr(t)){i.info.state="end";Xr(i.info)}if(e){bo(i.info,e,t)}i.info.started=true}};const r=t=>{if(i.info.started){s(t)}Xr(i.info)};Qr(this.info,s,r);this.info.x=t.clientX;this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchmove(t){const e=ro(t);const i=t.changedTouches[0];const s=i.clientX,r=i.clientY;if(vo(this.info,s,r)){if(this.info.state==="start"){po("tap")}this.info.addMove({x:s,y:r});bo(this.info,e,i);this.info.state="track";this.info.started=true}},touchend(t){const e=ro(t);const i=t.changedTouches[0];if(this.info.started){this.info.state="end";this.info.addMove({x:i.clientX,y:i.clientY});bo(this.info,e,i)}}});function vo(t,e,i){if(t.prevent){return false}if(t.started){return true}const s=Math.abs(t.x-e);const r=Math.abs(t.y-i);return s>=Rr||r>=Rr}function bo(t,e,i){if(!e){return}const s=t.moves[t.moves.length-2];const r=t.moves[t.moves.length-1];const o=r.x-t.x;const n=r.y-t.y;let a,l=0;if(s){a=r.x-s.x;l=r.y-s.y}fo(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o,dy:n,ddx:a,ddy:l,sourceEvent:i,hover(){return so(i.clientX,i.clientY)}})}ho({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:false},reset(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=false},mousedown(t){if(Vr(t)){this.info.x=t.clientX;this.info.y=t.clientY}},click(t){if(Vr(t)){go(this.info,t)}},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchend(t){go(this.info,t.changedTouches[0],t)}});function go(t,e,i){const s=Math.abs(e.clientX-t.x);const r=Math.abs(e.clientY-t.y);const o=ro(i||e);if(!o||Yr[o.localName]&&o.hasAttribute("disabled")){return}if(isNaN(s)||isNaN(r)||s<=Br&&r<=Br||Jr(e)){if(!t.prevent){fo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}}}
1460
- /**
1461
- * @license
1462
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1463
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1464
- */const yo=ae((t=>class e extends t{static get properties(){return{disabled:{type:Boolean,value:false,observer:"_disabledChanged",reflectToAttribute:true}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){if(t){this.setAttribute("aria-disabled","true")}else{this.removeAttribute("aria-disabled")}}click(){if(!this.disabled){super.click()}}}));
1465
- /**
1466
- * @license
1467
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1468
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1469
- */const wo=ae((t=>class e extends t{ready(){super.ready();this.addEventListener("keydown",(t=>{this._onKeyDown(t)}));this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}));
1470
- /**
1471
- * @license
1472
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1473
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1474
- */const xo=t=>class e extends(yo(wo(t))){get _activeKeys(){return[" "]}ready(){super.ready();ao(this,"down",(t=>{if(this._shouldSetActive(t)){this._setActive(true)}}));ao(this,"up",(()=>{this._setActive(false)}))}disconnectedCallback(){super.disconnectedCallback();this._setActive(false)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t);if(this._shouldSetActive(t)&&this._activeKeys.includes(t.key)){this._setActive(true);document.addEventListener("keyup",(t=>{if(this._activeKeys.includes(t.key)){this._setActive(false)}}),{once:true})}}_setActive(t){this.toggleAttribute("active",t)}}
1475
- /**
1476
- * @license
1477
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1478
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1479
- */;let _o=false;window.addEventListener("keydown",(()=>{_o=true}),{capture:true});window.addEventListener("mousedown",(()=>{_o=false}),{capture:true});function ko(){let t=document.activeElement||document.body;while(t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}return t}function Ao(){return _o}function Co(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none"){return true}const i=window.getComputedStyle(t);if(i.visibility==="hidden"||i.display==="none"){return true}return false}function Do(t,e){const i=Math.max(t.tabIndex,0);const s=Math.max(e.tabIndex,0);return i===0||s===0?s>i:i>s}function To(t,e){const i=[];while(t.length>0&&e.length>0){if(Do(t[0],e[0])){i.push(e.shift())}else{i.push(t.shift())}}return i.concat(t,e)}function So(t){const e=t.length;if(e<2){return t}const i=Math.ceil(e/2);const s=So(t.slice(0,i));const r=So(t.slice(i));return To(s,r)}function Mo(t){if(t.matches('[tabindex="-1"]')){return false}if(t.matches("input, select, textarea, button, object")){return t.matches(":not([disabled])")}return t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function zo(t){return t.getRootNode().activeElement===t}function Po(t){if(!Mo(t)){return-1}const e=t.getAttribute("tabindex")||0;return Number(e)}function Eo(t,e){if(t.nodeType!==Node.ELEMENT_NODE||Co(t)){return false}const i=t;const s=Po(i);let r=s>0;if(s>=0){e.push(i)}let o=[];if(i.localName==="slot"){o=i.assignedNodes({flatten:true})}else{o=(i.shadowRoot||i).children}[...o].forEach((t=>{r=Eo(t,e)||r}));return r}function No(t){const e=[];const i=Eo(t,e);if(i){return So(e)}return e}
1480
- /**
1481
- * @license
1482
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1483
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1484
- */const Fo=ae((t=>class e extends t{get _keyboardActive(){return Ao()}ready(){this.addEventListener("focusin",(t=>{if(this._shouldSetFocus(t)){this._setFocused(true)}}));this.addEventListener("focusout",(t=>{if(this._shouldRemoveFocus(t)){this._setFocused(false)}}));super.ready()}disconnectedCallback(){super.disconnectedCallback();if(this.hasAttribute("focused")){this._setFocused(false)}}_setFocused(t){this.toggleAttribute("focused",t);this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return true}_shouldRemoveFocus(t){return true}}));
1485
- /**
1486
- * @license
1487
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
1488
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1489
- */const Oo=t=>class e extends(yo(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:true,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e);if(t){if(this.tabindex!==undefined){this._lastTabIndex=this.tabindex}this.tabindex=-1}else if(e){this.tabindex=this._lastTabIndex}}_tabindexChanged(t){if(this.disabled&&t!==-1){this._lastTabIndex=t;this.tabindex=-1}}}
1490
- /**
1491
- * @license
1492
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1493
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1494
- */;const Io=t=>class e extends(xo(Oo(Fo(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:true}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready();if(!this.hasAttribute("role")){this.setAttribute("role","button")}}_onKeyDown(t){super._onKeyDown(t);if(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey){return}if(this._activeKeys.includes(t.key)){t.preventDefault();this.click()}}}
1495
- /**
1496
- * @license
1497
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1498
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1499
- */;_t("vaadin-button",Mr,{moduleId:"vaadin-button-styles"});class Bo extends(Io(br(Mt(qs(Ps))))){static get is(){return"vaadin-button"}static get template(){return zr(Ms)}ready(){super.ready();this._tooltipController=new Sr(this);this.addController(this._tooltipController)}}a(Bo);_t("vaadin-date-picker-year",m`
1500
- :host([current]) [part='year-number'] {
1501
- color: var(--lumo-primary-text-color);
1502
- }
1503
-
1504
- :host(:not([current])) [part='year-number'],
1505
- [part='year-separator'] {
1506
- opacity: var(--_lumo-date-picker-year-opacity, 0.7);
1507
- transition: 0.2s opacity;
1508
- }
1509
-
1510
- [part='year-number'],
1511
- [part='year-separator'] {
1512
- display: flex;
1513
- align-items: center;
1514
- justify-content: center;
1515
- height: 50%;
1516
- transform: translateY(-50%);
1517
- }
1518
-
1519
- [part='year-separator']::after {
1520
- color: var(--lumo-disabled-text-color);
1521
- content: '\\2022';
1522
- }
1523
- `,{moduleId:"lumo-date-picker-year"});_t("vaadin-date-picker-overlay-content",m`
1524
- :host {
1525
- position: relative;
1526
- /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
1527
- background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
1528
- background-size: 57px 100%;
1529
- background-position: top right;
1530
- background-repeat: no-repeat;
1531
- cursor: default;
1532
- }
1533
-
1534
- ::slotted([slot='months']) {
1535
- /* Month calendar height:
1536
- header height + margin-bottom
1537
- + weekdays height + margin-bottom
1538
- + date cell heights
1539
- + small margin between month calendars
1540
- */
1541
- /* prettier-ignore */
1542
- --vaadin-infinite-scroller-item-height:
1543
- calc(
1544
- var(--lumo-font-size-l) + var(--lumo-space-m)
1545
- + var(--lumo-font-size-xs) + var(--lumo-space-s)
1546
- + var(--lumo-size-m) * 6
1547
- + var(--lumo-space-s)
1548
- );
1549
- --vaadin-infinite-scroller-buffer-offset: 10%;
1550
- -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1551
- mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1552
- position: relative;
1553
- margin-right: 57px;
1554
- }
1555
-
1556
- ::slotted([slot='years']) {
1557
- /* TODO get rid of fixed magic number */
1558
- --vaadin-infinite-scroller-buffer-width: 97px;
1559
- width: 57px;
1560
- height: auto;
1561
- top: 0;
1562
- bottom: 0;
1563
- font-size: var(--lumo-font-size-s);
1564
- box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
1565
- -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1566
- mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1567
- cursor: var(--lumo-clickable-cursor);
1568
- }
1569
-
1570
- ::slotted([slot='years']:hover) {
1571
- --_lumo-date-picker-year-opacity: 1;
1572
- }
1573
-
1574
- /* TODO unsupported selector */
1575
- #scrollers {
1576
- position: static;
1577
- display: block;
1578
- }
1579
-
1580
- /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
1581
- :host([desktop]) ::slotted([slot='months']) {
1582
- right: auto;
1583
- }
1584
-
1585
- /* Year scroller position indicator */
1586
- ::slotted([slot='years'])::before {
1587
- border: none;
1588
- width: 1em;
1589
- height: 1em;
1590
- background-color: var(--lumo-base-color);
1591
- background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1592
- transform: translate(-75%, -50%) rotate(45deg);
1593
- border-top-right-radius: var(--lumo-border-radius-s);
1594
- box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
1595
- z-index: 1;
1596
- }
1597
-
1598
- [part='toolbar'] {
1599
- padding: var(--lumo-space-s);
1600
- border-bottom-left-radius: var(--lumo-border-radius-l);
1601
- margin-right: 57px;
1602
- }
1603
-
1604
- [part='toolbar'] ::slotted(vaadin-button) {
1605
- margin: 0;
1606
- }
1607
-
1608
- /* Narrow viewport mode (fullscreen) */
1609
-
1610
- :host([fullscreen]) [part='toolbar'] {
1611
- order: -1;
1612
- background-color: var(--lumo-base-color);
1613
- }
1614
-
1615
- :host([fullscreen]) [part='overlay-header'] {
1616
- order: -2;
1617
- height: var(--lumo-size-m);
1618
- padding: var(--lumo-space-s);
1619
- position: absolute;
1620
- left: 0;
1621
- right: 0;
1622
- justify-content: center;
1623
- }
1624
-
1625
- :host([fullscreen]) [part='toggle-button'],
1626
- :host([fullscreen]) [part='clear-button'],
1627
- [part='overlay-header'] [part='label'] {
1628
- display: none;
1629
- }
1630
-
1631
- /* Very narrow screen (year scroller initially hidden) */
1632
-
1633
- [part='years-toggle-button'] {
1634
- display: flex;
1635
- align-items: center;
1636
- height: var(--lumo-size-s);
1637
- padding: 0 0.5em;
1638
- border-radius: var(--lumo-border-radius-m);
1639
- z-index: 3;
1640
- color: var(--lumo-primary-text-color);
1641
- font-weight: 500;
1642
- -webkit-font-smoothing: antialiased;
1643
- -moz-osx-font-smoothing: grayscale;
1644
- }
1645
-
1646
- :host([years-visible]) [part='years-toggle-button'] {
1647
- background-color: var(--lumo-primary-color);
1648
- color: var(--lumo-primary-contrast-color);
1649
- }
1650
-
1651
- /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
1652
- @media screen and (max-width: 374px) {
1653
- :host {
1654
- background-image: none;
1655
- }
1656
-
1657
- [part='toolbar'],
1658
- ::slotted([slot='months']) {
1659
- margin-right: 0;
1660
- }
1661
-
1662
- /* TODO make date-picker adapt to the width of the years part */
1663
- ::slotted([slot='years']) {
1664
- --vaadin-infinite-scroller-buffer-width: 90px;
1665
- width: 50px;
1666
- background-color: var(--lumo-shade-5pct);
1667
- }
1668
-
1669
- :host([years-visible]) ::slotted([slot='months']) {
1670
- padding-left: 50px;
1671
- }
1672
- }
1673
- `,{moduleId:"lumo-date-picker-overlay-content"});_t("vaadin-month-calendar",m`
1674
- :host {
1675
- -moz-user-select: none;
1676
- -webkit-user-select: none;
1677
- -webkit-tap-highlight-color: transparent;
1678
- user-select: none;
1679
- font-size: var(--lumo-font-size-m);
1680
- color: var(--lumo-body-text-color);
1681
- text-align: center;
1682
- padding: 0 var(--lumo-space-xs);
1683
- }
1684
-
1685
- /* Month header */
1686
-
1687
- [part='month-header'] {
1688
- color: var(--lumo-header-text-color);
1689
- font-size: var(--lumo-font-size-l);
1690
- line-height: 1;
1691
- font-weight: 500;
1692
- margin-bottom: var(--lumo-space-m);
1693
- }
1694
-
1695
- /* Week days and numbers */
1696
-
1697
- [part='weekdays'],
1698
- [part='weekday'],
1699
- [part='week-number'] {
1700
- font-size: var(--lumo-font-size-xxs);
1701
- line-height: 1;
1702
- color: var(--lumo-secondary-text-color);
1703
- }
1704
-
1705
- [part='weekdays'] {
1706
- margin-bottom: var(--lumo-space-s);
1707
- }
1708
-
1709
- [part='weekday']:empty,
1710
- [part='week-number'] {
1711
- width: var(--lumo-size-xs);
1712
- }
1713
-
1714
- /* Date and week number cells */
1715
-
1716
- [part~='date'],
1717
- [part='week-number'] {
1718
- box-sizing: border-box;
1719
- display: inline-flex;
1720
- align-items: center;
1721
- justify-content: center;
1722
- height: var(--lumo-size-m);
1723
- position: relative;
1724
- }
1725
-
1726
- [part~='date'] {
1727
- transition: color 0.1s;
1728
- }
1729
-
1730
- [part~='date']:not(:empty) {
1731
- cursor: var(--lumo-clickable-cursor);
1732
- }
1733
-
1734
- :host([week-numbers]) [part='weekday']:not(:empty),
1735
- :host([week-numbers]) [part~='date'] {
1736
- width: calc((100% - var(--lumo-size-xs)) / 7);
1737
- }
1738
-
1739
- /* Today date */
1740
-
1741
- [part~='date'][part~='today'] {
1742
- color: var(--lumo-primary-text-color);
1743
- }
1744
-
1745
- /* Focused date */
1746
-
1747
- [part~='date']::before {
1748
- content: '';
1749
- position: absolute;
1750
- z-index: -1;
1751
- top: 50%;
1752
- left: 50%;
1753
- transform: translate(-50%, -50%);
1754
- min-width: 2em;
1755
- min-height: 2em;
1756
- width: 80%;
1757
- height: 80%;
1758
- max-height: 100%;
1759
- max-width: 100%;
1760
- border-radius: var(--lumo-border-radius-m);
1761
- }
1762
-
1763
- [part~='date'][part~='focused']::before {
1764
- box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1765
- }
1766
-
1767
- :host(:not([focused])) [part~='date'][part~='focused']::before {
1768
- animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
1769
- }
1770
-
1771
- @keyframes vaadin-date-picker-month-calendar-focus-date {
1772
- 50% {
1773
- box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
1774
- }
1775
- }
1776
-
1777
- [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
1778
- background-color: var(--lumo-primary-color-10pct);
1779
- }
1780
-
1781
- [part~='date'][part~='selected'] {
1782
- color: var(--lumo-primary-contrast-color);
1783
- }
1784
-
1785
- [part~='date'][part~='selected']::before {
1786
- background-color: var(--lumo-primary-color);
1787
- }
1788
-
1789
- [part~='date'][part~='disabled'] {
1790
- color: var(--lumo-disabled-text-color);
1791
- }
1792
-
1793
- @media (pointer: coarse) {
1794
- [part~='date']:hover:not([part~='selected'])::before,
1795
- [part~='focused']:not([part~='selected'])::before {
1796
- display: none;
1797
- }
1798
-
1799
- [part~='date']:not(:empty):not([part~='disabled']):active::before {
1800
- display: block;
1801
- }
1802
-
1803
- [part~='date'][part~='selected']::before {
1804
- box-shadow: none;
1805
- }
1806
- }
1807
-
1808
- /* Disabled */
1809
-
1810
- :host([disabled]) * {
1811
- color: var(--lumo-disabled-text-color) !important;
1812
- }
1813
- `,{moduleId:"lumo-month-calendar"});const Ro=document.createElement("template");Ro.innerHTML=`\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n`;document.head.appendChild(Ro.content);
1814
- /**
1815
- * @license
1816
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1817
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1818
- */const jo=m`
1819
- @font-face {
1820
- font-family: 'lumo-icons';
1821
- src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
1822
- format('woff');
1823
- font-weight: normal;
1824
- font-style: normal;
1825
- }
1826
-
1827
- html {
1828
- --lumo-icons-align-center: '\\ea01';
1829
- --lumo-icons-align-left: '\\ea02';
1830
- --lumo-icons-align-right: '\\ea03';
1831
- --lumo-icons-angle-down: '\\ea04';
1832
- --lumo-icons-angle-left: '\\ea05';
1833
- --lumo-icons-angle-right: '\\ea06';
1834
- --lumo-icons-angle-up: '\\ea07';
1835
- --lumo-icons-arrow-down: '\\ea08';
1836
- --lumo-icons-arrow-left: '\\ea09';
1837
- --lumo-icons-arrow-right: '\\ea0a';
1838
- --lumo-icons-arrow-up: '\\ea0b';
1839
- --lumo-icons-bar-chart: '\\ea0c';
1840
- --lumo-icons-bell: '\\ea0d';
1841
- --lumo-icons-calendar: '\\ea0e';
1842
- --lumo-icons-checkmark: '\\ea0f';
1843
- --lumo-icons-chevron-down: '\\ea10';
1844
- --lumo-icons-chevron-left: '\\ea11';
1845
- --lumo-icons-chevron-right: '\\ea12';
1846
- --lumo-icons-chevron-up: '\\ea13';
1847
- --lumo-icons-clock: '\\ea14';
1848
- --lumo-icons-cog: '\\ea15';
1849
- --lumo-icons-cross: '\\ea16';
1850
- --lumo-icons-download: '\\ea17';
1851
- --lumo-icons-dropdown: '\\ea18';
1852
- --lumo-icons-edit: '\\ea19';
1853
- --lumo-icons-error: '\\ea1a';
1854
- --lumo-icons-eye: '\\ea1b';
1855
- --lumo-icons-eye-disabled: '\\ea1c';
1856
- --lumo-icons-menu: '\\ea1d';
1857
- --lumo-icons-minus: '\\ea1e';
1858
- --lumo-icons-ordered-list: '\\ea1f';
1859
- --lumo-icons-phone: '\\ea20';
1860
- --lumo-icons-photo: '\\ea21';
1861
- --lumo-icons-play: '\\ea22';
1862
- --lumo-icons-plus: '\\ea23';
1863
- --lumo-icons-redo: '\\ea24';
1864
- --lumo-icons-reload: '\\ea25';
1865
- --lumo-icons-search: '\\ea26';
1866
- --lumo-icons-undo: '\\ea27';
1867
- --lumo-icons-unordered-list: '\\ea28';
1868
- --lumo-icons-upload: '\\ea29';
1869
- --lumo-icons-user: '\\ea2a';
1870
- }
1871
- `;Pt("font-icons",jo);
1872
- /**
1873
- * @license
1874
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1875
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1876
- */const Wo=m`
1877
- [part$='button'] {
1878
- flex: none;
1879
- width: 1em;
1880
- height: 1em;
1881
- line-height: 1;
1882
- font-size: var(--lumo-icon-size-m);
1883
- text-align: center;
1884
- color: var(--lumo-contrast-60pct);
1885
- transition: 0.2s color;
1886
- cursor: var(--lumo-clickable-cursor);
1887
- }
1888
-
1889
- [part$='button']:hover {
1890
- color: var(--lumo-contrast-90pct);
1891
- }
1892
-
1893
- :host([disabled]) [part$='button'],
1894
- :host([readonly]) [part$='button'] {
1895
- color: var(--lumo-contrast-20pct);
1896
- cursor: default;
1897
- }
1898
-
1899
- [part$='button']::before {
1900
- font-family: 'lumo-icons';
1901
- display: block;
1902
- }
1903
- `;_t("",Wo,{moduleId:"lumo-field-button"});
1904
- /**
1905
- * @license
1906
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1907
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1908
- */const Lo=m`
1909
- :host([has-helper]) [part='helper-text']::before {
1910
- content: '';
1911
- display: block;
1912
- height: 0.4em;
1913
- }
1914
-
1915
- [part='helper-text'] {
1916
- display: block;
1917
- color: var(--lumo-secondary-text-color);
1918
- font-size: var(--lumo-font-size-xs);
1919
- line-height: var(--lumo-line-height-xs);
1920
- margin-left: calc(var(--lumo-border-radius-m) / 4);
1921
- transition: color 0.2s;
1922
- }
1923
-
1924
- :host(:hover:not([readonly])) [part='helper-text'] {
1925
- color: var(--lumo-body-text-color);
1926
- }
1927
-
1928
- :host([disabled]) [part='helper-text'] {
1929
- color: var(--lumo-disabled-text-color);
1930
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
1931
- }
1932
-
1933
- :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
1934
- display: none;
1935
- }
1936
-
1937
- :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
1938
- content: '';
1939
- display: block;
1940
- height: 0.4em;
1941
- }
1942
-
1943
- :host([has-helper][theme~='helper-above-field']) [part='label'] {
1944
- order: 0;
1945
- padding-bottom: 0.4em;
1946
- }
1947
-
1948
- :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
1949
- order: 1;
1950
- }
1951
-
1952
- :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
1953
- order: 2;
1954
- }
1955
-
1956
- :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
1957
- order: 3;
1958
- }
1959
- `
1960
- /**
1961
- * @license
1962
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1963
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1964
- */;const Uo=m`
1965
- [part='label'] {
1966
- align-self: flex-start;
1967
- color: var(--lumo-secondary-text-color);
1968
- font-weight: 500;
1969
- font-size: var(--lumo-font-size-s);
1970
- margin-left: calc(var(--lumo-border-radius-m) / 4);
1971
- transition: color 0.2s;
1972
- line-height: 1;
1973
- padding-right: 1em;
1974
- padding-bottom: 0.5em;
1975
- /* As a workaround for diacritics being cut off, add a top padding and a
1976
- negative margin to compensate */
1977
- padding-top: 0.25em;
1978
- margin-top: -0.25em;
1979
- overflow: hidden;
1980
- white-space: nowrap;
1981
- text-overflow: ellipsis;
1982
- position: relative;
1983
- max-width: 100%;
1984
- box-sizing: border-box;
1985
- }
1986
-
1987
- :host([has-label])::before {
1988
- margin-top: calc(var(--lumo-font-size-s) * 1.5);
1989
- }
1990
-
1991
- :host([has-label][theme~='small'])::before {
1992
- margin-top: calc(var(--lumo-font-size-xs) * 1.5);
1993
- }
1994
-
1995
- :host([has-label]) {
1996
- padding-top: var(--lumo-space-m);
1997
- }
1998
-
1999
- :host([has-label]) ::slotted([slot='tooltip']) {
2000
- --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
2001
- }
2002
-
2003
- :host([required]) [part='required-indicator']::after {
2004
- content: var(--lumo-required-field-indicator, '\\2022');
2005
- transition: opacity 0.2s;
2006
- color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
2007
- position: absolute;
2008
- right: 0;
2009
- width: 1em;
2010
- text-align: center;
2011
- }
2012
-
2013
- :host([invalid]) [part='required-indicator']::after {
2014
- color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
2015
- }
2016
-
2017
- [part='error-message'] {
2018
- margin-left: calc(var(--lumo-border-radius-m) / 4);
2019
- font-size: var(--lumo-font-size-xs);
2020
- line-height: var(--lumo-line-height-xs);
2021
- color: var(--lumo-error-text-color);
2022
- will-change: max-height;
2023
- transition: 0.4s max-height;
2024
- max-height: 5em;
2025
- }
2026
-
2027
- :host([has-error-message]) [part='error-message']::before,
2028
- :host([has-error-message]) [part='error-message']::after {
2029
- content: '';
2030
- display: block;
2031
- height: 0.4em;
2032
- }
2033
-
2034
- :host(:not([invalid])) [part='error-message'] {
2035
- max-height: 0;
2036
- overflow: hidden;
2037
- }
2038
-
2039
- /* RTL specific styles */
2040
-
2041
- :host([dir='rtl']) [part='label'] {
2042
- margin-left: 0;
2043
- margin-right: calc(var(--lumo-border-radius-m) / 4);
2044
- }
2045
-
2046
- :host([dir='rtl']) [part='label'] {
2047
- padding-left: 1em;
2048
- padding-right: 0;
2049
- }
2050
-
2051
- :host([dir='rtl']) [part='required-indicator']::after {
2052
- right: auto;
2053
- left: 0;
2054
- }
2055
-
2056
- :host([dir='rtl']) [part='error-message'] {
2057
- margin-left: 0;
2058
- margin-right: calc(var(--lumo-border-radius-m) / 4);
2059
- }
2060
- `;_t("",Uo,{moduleId:"lumo-required-field"});
2061
- /**
2062
- * @license
2063
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2064
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2065
- */const Ho=m`
2066
- :host {
2067
- --lumo-text-field-size: var(--lumo-size-m);
2068
- color: var(--lumo-body-text-color);
2069
- font-size: var(--lumo-font-size-m);
2070
- font-family: var(--lumo-font-family);
2071
- -webkit-font-smoothing: antialiased;
2072
- -moz-osx-font-smoothing: grayscale;
2073
- -webkit-tap-highlight-color: transparent;
2074
- padding: var(--lumo-space-xs) 0;
2075
- }
2076
-
2077
- :host::before {
2078
- height: var(--lumo-text-field-size);
2079
- box-sizing: border-box;
2080
- display: inline-flex;
2081
- align-items: center;
2082
- }
2083
-
2084
- :host([focused]:not([readonly])) [part='label'] {
2085
- color: var(--lumo-primary-text-color);
2086
- }
2087
-
2088
- :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
2089
- -webkit-mask-image: none;
2090
- mask-image: none;
2091
- }
2092
-
2093
- ::slotted(:is(input, textarea):placeholder-shown) {
2094
- color: var(--lumo-secondary-text-color);
2095
- }
2096
-
2097
- /* Hover */
2098
- :host(:hover:not([readonly]):not([focused])) [part='label'] {
2099
- color: var(--lumo-body-text-color);
2100
- }
2101
-
2102
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2103
- opacity: 0.1;
2104
- }
2105
-
2106
- /* Touch device adjustment */
2107
- @media (pointer: coarse) {
2108
- :host(:hover:not([readonly]):not([focused])) [part='label'] {
2109
- color: var(--lumo-secondary-text-color);
2110
- }
2111
-
2112
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2113
- opacity: 0;
2114
- }
2115
-
2116
- :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
2117
- opacity: 0.2;
2118
- }
2119
- }
2120
-
2121
- /* Trigger when not focusing using the keyboard */
2122
- :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
2123
- transform: scaleX(0);
2124
- transition-duration: 0.15s, 1s;
2125
- }
2126
-
2127
- /* Focus-ring */
2128
- :host([focus-ring]) [part='input-field'] {
2129
- box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
2130
- }
2131
-
2132
- /* Read-only and disabled */
2133
- :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
2134
- opacity: 0;
2135
- }
2136
-
2137
- /* Read-only style */
2138
- :host([readonly]) {
2139
- --vaadin-input-field-border-color: transparent;
2140
- }
2141
-
2142
- /* Disabled style */
2143
- :host([disabled]) {
2144
- pointer-events: none;
2145
- --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
2146
- }
2147
-
2148
- :host([disabled]) [part='label'],
2149
- :host([disabled]) [part='input-field'] ::slotted(*) {
2150
- color: var(--lumo-disabled-text-color);
2151
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
2152
- }
2153
-
2154
- /* Invalid style */
2155
- :host([invalid]) {
2156
- --vaadin-input-field-border-color: var(--lumo-error-color);
2157
- }
2158
-
2159
- :host([invalid][focus-ring]) [part='input-field'] {
2160
- box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
2161
- }
2162
-
2163
- :host([input-prevented]) [part='input-field'] {
2164
- animation: shake 0.15s infinite;
2165
- }
2166
-
2167
- @keyframes shake {
2168
- 25% {
2169
- transform: translateX(4px);
2170
- }
2171
- 75% {
2172
- transform: translateX(-4px);
2173
- }
2174
- }
2175
-
2176
- /* Small theme */
2177
- :host([theme~='small']) {
2178
- font-size: var(--lumo-font-size-s);
2179
- --lumo-text-field-size: var(--lumo-size-s);
2180
- }
2181
-
2182
- :host([theme~='small']) [part='label'] {
2183
- font-size: var(--lumo-font-size-xs);
2184
- }
2185
-
2186
- :host([theme~='small']) [part='error-message'] {
2187
- font-size: var(--lumo-font-size-xxs);
2188
- }
2189
-
2190
- /* Slotted content */
2191
- [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
2192
- color: var(--lumo-secondary-text-color);
2193
- font-weight: 400;
2194
- }
2195
-
2196
- [part='clear-button']::before {
2197
- content: var(--lumo-icons-cross);
2198
- }
2199
- `;const Go=[Uo,Wo,Lo,Ho];_t("",Go,{moduleId:"lumo-input-field-shared-styles"});const $o=m`
2200
- :host {
2201
- outline: none;
2202
- }
2203
-
2204
- [part='toggle-button']::before {
2205
- content: var(--lumo-icons-calendar);
2206
- }
2207
-
2208
- [part='clear-button']::before {
2209
- content: var(--lumo-icons-cross);
2210
- }
2211
-
2212
- @media (max-width: 420px), (max-height: 420px) {
2213
- [part='overlay-content'] {
2214
- height: 70vh;
2215
- }
2216
- }
2217
-
2218
- :host([dir='rtl']) [part='input-field'] ::slotted(input) {
2219
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
2220
- }
2221
-
2222
- :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2223
- --_lumo-text-field-overflow-mask-image: none;
2224
- }
2225
- `;_t("vaadin-date-picker",[Go,$o],{moduleId:"lumo-date-picker"});
2226
- /**
2227
- @license
2228
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2229
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2230
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2231
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2232
- Code distributed by Google as part of the polymer project is also
2233
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2234
- */let qo=false;let Yo=[];let Vo=[];function Jo(){qo=true;requestAnimationFrame((function(){qo=false;Ko(Yo);setTimeout((function(){Zo(Vo)}))}))}function Ko(t){while(t.length){Qo(t.shift())}}function Zo(t){for(let e=0,i=t.length;e<i;e++){Qo(t.shift())}}function Qo(t){const e=t[0];const i=t[1];const s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}function Xo(t,e,i){if(!qo){Jo()}Vo.push([t,e,i])}
2235
- /**
2236
- * @license
2237
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2238
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2239
- */const tn=t=>t.test(navigator.userAgent);const en=t=>t.test(navigator.platform);const sn=t=>t.test(navigator.vendor);tn(/Android/u);tn(/Chrome/u)&&sn(/Google Inc/u);const rn=tn(/Firefox/u);const on=en(/^iPad/u)||en(/^Mac/u)&&navigator.maxTouchPoints>1;const nn=en(/^iPhone/u);const an=nn||on;tn(/^((?!chrome|android).)*safari/iu);const ln=(()=>{try{document.createEvent("TouchEvent");return true}catch(t){return false}})();
2240
- /**
2241
- * @license
2242
- * Copyright (c) 2017 Anton Korzunov
2243
- * SPDX-License-Identifier: MIT
2244
- */let hn=new WeakMap;let cn=new WeakMap;let un={};let dn=0;const fn=t=>t&&t.nodeType===Node.ELEMENT_NODE;const pn=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};const mn=(t,e)=>{if(!fn(t)){pn(t,"is not a valid element");return[]}return e.map((e=>{if(!fn(e)){pn(e,"is not a valid element");return null}let i=e;while(i&&i!==t){if(t.contains(i)){return e}i=i.getRootNode().host}pn(e,"is not contained inside",t);return null})).filter((t=>Boolean(t)))};const vn=(t,e,i,s)=>{const r=mn(e,Array.isArray(t)?t:[t]);if(!un[i]){un[i]=new WeakMap}const o=un[i];const n=[];const a=new Set;const l=new Set(r);const h=t=>{if(!t||a.has(t)){return}a.add(t);const e=t.assignedSlot;if(e){h(e)}h(t.parentNode||t.host)};r.forEach(h);const c=t=>{if(!t||l.has(t)){return}const e=t.shadowRoot;const r=e?[...t.children,...e.children]:[...t.children];r.forEach((t=>{if(["template","script","style"].includes(t.localName)){return}if(a.has(t)){c(t)}else{const e=t.getAttribute(s);const r=e!==null&&e!=="false";const a=(hn.get(t)||0)+1;const l=(o.get(t)||0)+1;hn.set(t,a);o.set(t,l);n.push(t);if(a===1&&r){cn.set(t,true)}if(l===1){t.setAttribute(i,"true")}if(!r){t.setAttribute(s,"true")}}}))};c(e);a.clear();dn+=1;return()=>{n.forEach((t=>{const e=hn.get(t)-1;const r=o.get(t)-1;hn.set(t,e);o.set(t,r);if(!e){if(cn.has(t)){cn.delete(t)}else{t.removeAttribute(s)}}if(!r){t.removeAttribute(i)}}));dn-=1;if(!dn){hn=new WeakMap;hn=new WeakMap;cn=new WeakMap;un={}}}};const bn=(t,e=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);if(e){s.push(...Array.from(e.querySelectorAll("[aria-live]")))}return vn(s,e,i,"aria-hidden")};
2245
- /**
2246
- * @license
2247
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2248
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2249
- */class gn{constructor(t,e){this.host=t;this.callback=typeof e==="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=bn(t)}close(){if(this.__showOthers){this.__showOthers();this.__showOthers=null}}}
2250
- /**
2251
- * @license
2252
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2253
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2254
- */class yn{saveFocus(t){this.focusNode=t||ko()}restoreFocus(){const t=this.focusNode;if(!t){return}if(ko()===document.body){setTimeout((()=>t.focus()))}else{t.focus()}this.focusNode=null}}
2255
- /**
2256
- * @license
2257
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2258
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2259
- */const wn=[];class xn{constructor(t){this.host=t;this.__trapNode=null;this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return No(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(zo).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){this.__trapNode=t;if(this.__focusableElements.length===0){this.__trapNode=null;throw new Error("The trap node should have at least one focusable descendant or be focusable itself.")}wn.push(this);if(this.__focusedElementIndex===-1){this.__focusableElements[0].focus()}}releaseFocus(){this.__trapNode=null;wn.pop()}__onKeyDown(t){if(!this.__trapNode){return}if(this!==Array.from(wn).pop()){return}if(t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=false){const e=this.__focusableElements;const i=t?-1:1;const s=this.__focusedElementIndex;const r=(e.length+s+i)%e.length;const o=e[r];o.focus();if(o.localName==="input"){o.select()}}}
2260
- /**
2261
- * @license
2262
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2263
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2264
- */const _n=t=>class e extends(qs(t)){static get properties(){return{focusTrap:{type:Boolean,value:false},restoreFocusOnClose:{type:Boolean,value:false},restoreFocusNode:{type:HTMLElement}}}constructor(){super();this.__ariaModalController=new gn(this);this.__focusTrapController=new xn(this);this.__focusRestorationController=new yn}ready(){super.ready();this.addController(this.__ariaModalController);this.addController(this.__focusTrapController);this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap){this.__ariaModalController.close();this.__focusTrapController.releaseFocus()}if(this.restoreFocusOnClose&&this._shouldRestoreFocus()){this.__focusRestorationController.restoreFocus()}}_saveFocus(){if(this.restoreFocusOnClose){this.__focusRestorationController.saveFocus(this.restoreFocusNode)}}_trapFocus(){if(this.focusTrap){this.__ariaModalController.showModal();this.__focusTrapController.trapFocus(this.$.overlay)}}_shouldRestoreFocus(){const t=ko();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t)){return true}let e=t;const i=t.ownerDocument;while(e&&e!==i&&e!==this){e=e.parentNode||e.host}return e===this}}
2265
- /**
2266
- * @license
2267
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2268
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2269
- */;const kn=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0));const An=t=>t===kn().pop();const Cn=t=>class e extends t{constructor(){super();this._hasOverlayStackMixin=true}get _last(){return An(this)}bringToFront(){let t="";const e=kn().filter((t=>t!==this)).pop();if(e){const i=e.__zIndex;t=i+1}this.style.zIndex=t;this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){if(document.body.style.pointerEvents!=="none"){this._previousDocumentPointerEvents=document.body.style.pointerEvents;document.body.style.pointerEvents="none"}kn().forEach((t=>{if(t!==this){t.$.overlay.style.pointerEvents="none"}}))}_exitModalState(){if(this._previousDocumentPointerEvents!==undefined){document.body.style.pointerEvents=this._previousDocumentPointerEvents;delete this._previousDocumentPointerEvents}const t=kn();let e;while(e=t.pop()){if(e===this){continue}e.$.overlay.style.removeProperty("pointer-events");if(!e.modeless){break}}}}
2270
- /**
2271
- * @license
2272
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2273
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2274
- */;const Dn=t=>class e extends(_n(Cn(t))){static get properties(){return{opened:{type:Boolean,notify:true,observer:"_openedChanged",reflectToAttribute:true},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:false,reflectToAttribute:true,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:true,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:false,reflectToAttribute:true}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super();this._boundMouseDownListener=this._mouseDownListener.bind(this);this._boundMouseUpListener=this._mouseUpListener.bind(this);this._boundOutsideClickListener=this._outsideClickListener.bind(this);this._boundKeydownListener=this._keydownListener.bind(this);if(an){this._boundIosResizeListener=()=>this._detectIosNavbar()}}ready(){super.ready();this.addEventListener("click",(()=>{}));this.$.backdrop.addEventListener("click",(()=>{}))}connectedCallback(){super.connectedCallback();if(this._boundIosResizeListener){this._detectIosNavbar();window.addEventListener("resize",this._boundIosResizeListener)}}disconnectedCallback(){super.disconnectedCallback();if(this._boundIosResizeListener){window.removeEventListener("resize",this._boundIosResizeListener)}}requestContentUpdate(){if(this.renderer){this.renderer.call(this.owner,this,this.owner,this.model)}}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(!e.defaultPrevented){this.opened=false}}_detectIosNavbar(){if(!this.opened){return}const t=window.innerHeight;const e=window.innerWidth;const i=e>t;const s=document.documentElement.clientHeight;if(i&&s>t){this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-t}px`)}else{this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener);document.addEventListener("mouseup",this._boundMouseUpListener);document.documentElement.addEventListener("click",this._boundOutsideClickListener,true)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener);document.removeEventListener("mouseup",this._boundMouseUpListener);document.documentElement.removeEventListener("click",this._boundOutsideClickListener,true)}_rendererOrDataChanged(t,e,i,s){const r=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i;this._oldOwner=e;const o=this._oldRenderer!==t;this._oldRenderer=t;const n=this._oldOpened!==s;this._oldOpened=s;if(o){this.innerHTML="";delete this._$litPart$}if(s&&t&&(o||n||r)){this.requestContentUpdate()}}_modelessChanged(t){if(!t){if(this.opened){this._addGlobalListeners();this._enterModalState()}}else{this._removeGlobalListeners();this._exitModalState()}}_openedChanged(t,e){if(t){this._saveFocus();this._animatedOpening();Xo(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:true});this.dispatchEvent(t)}));document.addEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._addGlobalListeners()}}else if(e){this._resetFocus();this._animatedClosing();document.removeEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._removeGlobalListeners()}}}_hiddenChanged(t){if(t&&this.hasAttribute("closing")){this._flushAnimation("closing")}}_shouldAnimate(){const t=getComputedStyle(this);const e=t.getPropertyValue("animation-name");const i=t.getPropertyValue("display")==="none";return!i&&e&&e!=="none"}_enqueueAnimation(t,e){const i=`__${t}Handler`;const s=t=>{if(t&&t.target!==this){return}e();this.removeEventListener("animationend",s);delete this[i]};this[i]=s;this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;if(typeof this[e]==="function"){this[e]()}}_animatedOpening(){if(this.parentNode===document.body&&this.hasAttribute("closing")){this._flushAnimation("closing")}this._attachOverlay();if(!this.modeless){this._enterModalState()}this.setAttribute("opening","");if(this._shouldAnimate()){this._enqueueAnimation("opening",(()=>{this._finishOpening()}))}else{this._finishOpening()}}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder");this.parentNode.insertBefore(this._placeholder,this);document.body.appendChild(this);this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay();this.$.overlay.style.removeProperty("pointer-events");this.removeAttribute("closing");this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){if(this.hasAttribute("opening")){this._flushAnimation("opening")}if(this._placeholder){this._exitModalState();this.setAttribute("closing","");this.dispatchEvent(new CustomEvent("vaadin-overlay-closing"));if(this._shouldAnimate()){this._enqueueAnimation("closing",(()=>{this._finishClosing()}))}else{this._finishClosing()}}}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder);this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=false;this._mouseUpInside=false;return}if(!this._shouldCloseOnOutsideClick(t)){return}const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}_keydownListener(t){if(!this._last){return}if(this.modeless&&!t.composedPath().includes(this.$.overlay)){return}if(t.key==="Escape"){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}}}
2275
- /**
2276
- * @license
2277
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2278
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2279
- */;const Tn={start:"top",end:"bottom"};const Sn={start:"left",end:"right"};const Mn=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{if(t.target.__overlay){t.target.__overlay._updatePosition()}}))}))}));const zn=t=>class e extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:false},noVerticalOverlap:{type:Boolean,value:false},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super();this.__onScroll=this.__onScroll.bind(this);this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback();if(this.opened){this.__addUpdatePositionEventListeners()}}disconnectedCallback(){super.disconnectedCallback();this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition);this.__positionTargetAncestorRootNodes=gr(this.positionTarget);this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,true)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition);if(this.__positionTargetAncestorRootNodes){this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,true)}));this.__positionTargetAncestorRootNodes=null}}__overlayOpenedChanged(t,e){this.__removeUpdatePositionEventListeners();if(e){e.__overlay=null;Mn.unobserve(e);if(t){this.__addUpdatePositionEventListeners();e.__overlay=this;Mn.observe(e)}}if(t){const t=getComputedStyle(this);if(!this.__margins){this.__margins={};["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))}this.setAttribute("dir",t.direction);this._updatePosition();requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){if(!this.contains(t.target)){this._updatePosition()}}_updatePosition(){if(!this.positionTarget||!this.opened){return}const t=this.positionTarget.getBoundingClientRect();const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL;const s=this.__shouldAlignStartHorizontally(t,i);const r=!i&&s||i&&!s;this.style.alignItems=r?"flex-start":"flex-end";const o=this.getBoundingClientRect();const n=this.__calculatePositionInOneDimension(t,o,this.noVerticalOverlap,Tn,this,e);const a=this.__calculatePositionInOneDimension(t,o,this.noHorizontalOverlap,Sn,this,s);Object.assign(this.style,n,a);this.toggleAttribute("bottom-aligned",!e);this.toggleAttribute("top-aligned",e);this.toggleAttribute("end-aligned",!r);this.toggleAttribute("start-aligned",r)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);const r=!e&&this.horizontalAlign==="start"||e&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,s,this.__margins,r,this.noHorizontalOverlap,Sn)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);const s=this.verticalAlign==="top";return this.__shouldAlignStart(t,e,i,this.__margins,s,this.noVerticalOverlap,Tn)}__shouldAlignStart(t,e,i,s,r,o,n){const a=i-t[o?n.end:n.start]-s[n.end];const l=t[o?n.start:n.end]-s[n.start];const h=r?a:l;const c=r?l:a;const u=h>c||h>e;return r===u}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Tn.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>t&&this.__oldViewportHeight){const e=this.__oldViewportHeight-t;s=i-e}this.__oldViewportHeight=t}if(e.end===Sn.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>t&&this.__oldViewportWidth){const e=this.__oldViewportWidth-t;s=i-e}this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,r,o){const n=o?s.start:s.end;const a=o?s.end:s.start;const l=parseFloat(r.style[n]||getComputedStyle(r)[n]);const h=this.__adjustBottomProperty(n,s,l);const c=e[o?s.start:s.end]-t[i===o?s.end:s.start];const u=h?`${h}px`:`${l+c*(o?-1:1)}px`;return{[n]:u,[a]:""}}}
2280
- /**
2281
- * @license
2282
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2283
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2284
- */;const Pn=m`
2285
- :host {
2286
- z-index: 200;
2287
- position: fixed;
2288
-
2289
- /* Despite of what the names say, <vaadin-overlay> is just a container
2290
- for position/sizing/alignment. The actual overlay is the overlay part. */
2291
-
2292
- /* Default position constraints: the entire viewport. Note: themes can
2293
- override this to introduce gaps between the overlay and the viewport. */
2294
- inset: 0;
2295
- bottom: var(--vaadin-overlay-viewport-bottom);
2296
-
2297
- /* Use flexbox alignment for the overlay part. */
2298
- display: flex;
2299
- flex-direction: column; /* makes dropdowns sizing easier */
2300
- /* Align to center by default. */
2301
- align-items: center;
2302
- justify-content: center;
2303
-
2304
- /* Allow centering when max-width/max-height applies. */
2305
- margin: auto;
2306
-
2307
- /* The host is not clickable, only the overlay part is. */
2308
- pointer-events: none;
2309
-
2310
- /* Remove tap highlight on touch devices. */
2311
- -webkit-tap-highlight-color: transparent;
2312
-
2313
- /* CSS API for host */
2314
- --vaadin-overlay-viewport-bottom: 0;
2315
- }
2316
-
2317
- :host([hidden]),
2318
- :host(:not([opened]):not([closing])) {
2319
- display: none !important;
2320
- }
2321
-
2322
- [part='overlay'] {
2323
- -webkit-overflow-scrolling: touch;
2324
- overflow: auto;
2325
- pointer-events: auto;
2326
-
2327
- /* Prevent overflowing the host */
2328
- max-width: 100%;
2329
- box-sizing: border-box;
2330
-
2331
- -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
2332
- }
2333
-
2334
- [part='backdrop'] {
2335
- z-index: -1;
2336
- content: '';
2337
- background: rgba(0, 0, 0, 0.5);
2338
- position: fixed;
2339
- inset: 0;
2340
- pointer-events: auto;
2341
- }
2342
- `
2343
- /**
2344
- * @license
2345
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2346
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2347
- */;const En=m`
2348
- [part='overlay'] {
2349
- display: flex;
2350
- flex: auto;
2351
- }
2352
-
2353
- [part~='content'] {
2354
- flex: auto;
2355
- }
2356
-
2357
- @media (forced-colors: active) {
2358
- [part='overlay'] {
2359
- outline: 3px solid;
2360
- }
2361
- }
2362
- `
2363
- /**
2364
- * @license
2365
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2366
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2367
- */;_t("vaadin-date-picker-overlay",[Pn,En],{moduleId:"vaadin-date-picker-overlay-styles"});class Nn extends(zn(Dn(Bs(Mt(Ps))))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ms`
2368
- <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2369
- <div part="overlay" id="overlay">
2370
- <div part="content" id="content">
2371
- <slot></slot>
2372
- </div>
2373
- </div>
2374
- `}}a(Nn);
2375
- /**
2376
- * @license
2377
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2378
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2379
- */function Fn(t){let e=t.getDay();if(e===0){e=7}const i=4-e;const s=new Date(t.getTime()+i*24*3600*1e3);const r=new Date(0,0);r.setFullYear(s.getFullYear());const o=s.getTime()-r.getTime();const n=Math.round(o/(24*3600*1e3));return Math.floor(n/7+1)}function On(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function In(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function Bn(t,e){return e.filter((t=>t!==undefined)).reduce(((e,i)=>{if(!i){return e}if(!e){return i}const s=Math.abs(t.getTime()-i.getTime());const r=Math.abs(e.getTime()-t.getTime());return s<r?i:e}))}function Rn(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function jn(t){const e=new Date;const i=new Date(e);i.setDate(1);i.setMonth(parseInt(t)+e.getMonth());return i}function Wn(t,e,i=0,s=1){if(e>99){throw new Error("The provided year cannot have more than 2 digits.")}if(e<0){throw new Error("The provided year cannot be negative.")}let r=e+Math.floor(t.getFullYear()/100)*100;if(t<new Date(r-50,i,s)){r-=100}else if(t>new Date(r+50,i,s)){r+=100}return r}function Ln(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e){return undefined}const i=new Date(0,0);i.setFullYear(parseInt(e[1],10));i.setMonth(parseInt(e[2],10)-1);i.setDate(parseInt(e[3],10));return i}
2380
- /**
2381
- * @license
2382
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2383
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2384
- */const Un=document.createElement("template");Un.innerHTML=`\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n`;class Hn extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"});t.appendChild(Un.content.cloneNode(true));this.bufferSize=20;this._initialScroll=5e5;this._initialIndex=0;this._activated=false}get active(){return this._activated}set active(t){if(t&&!this._activated){this._createPool();this._activated=true}}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height");const e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e);this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=true;if(t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2){this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY}else{this._initialIndex=~~t;this._reset();this._scrollDisabled=true;this.$.scroller.scrollTop+=t%1*this.itemHeight;this._scrollDisabled=false}if(this._mayHaveMomentum){this.$.scroller.classList.add("notouchscroll");this._mayHaveMomentum=false;setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10)}}connectedCallback(){if(!this._ready){this._ready=true;this.$={};this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t}));this.$.scroller.addEventListener("scroll",(()=>this._scroll()));this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")];this.$.fullHeight.style.height=`${this._initialScroll*2}px`;if(rn){this.$.scroller.tabIndex=-1}}}forceUpdate(){if(this._debouncerUpdateClones){this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones();this._debouncerUpdateClones.cancel()}}_createElement(){}_updateElement(t,e){}_finishInit(){if(!this._initDone){this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))}));if(!this._buffers[0].translateY){this._reset()}this._initDone=true;this.dispatchEvent(new CustomEvent("init-done"))}}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1);this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`;this._buffers[e].updated=false;this._buffers.reverse()}_scroll(){if(this._scrollDisabled){return}const t=this.$.scroller.scrollTop;if(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight){this._initialIndex=~~this.position;this._reset()}const e=this.itemHeight+this.bufferOffset;const i=t>this._buffers[1].translateY+e;const s=t<this._buffers[0].translateY+e;if(i||s){this._translateBuffer(s);this._updateClones()}if(!this._preventScrollEvent){this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:false,composed:true}));this._mayHaveMomentum=true}this._preventScrollEvent=false;this._debouncerScrollFinish=fr.debounce(this._debouncerScrollFinish,hr.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();if(!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)){this.position=this.position}}))}_reset(){this._scrollDisabled=true;this.$.scroller.scrollTop=this._initialScroll;this._buffers[0].translateY=this._initialScroll-this._bufferHeight;this._buffers[1].translateY=this._initialScroll;this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}));this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones(true);this._debouncerUpdateClones=fr.debounce(this._debouncerUpdateClones,hr.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones()}));this._scrollDisabled=false}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`;i.instance={};const s=`vaadin-infinite-scroller-item-content-${Dr()}`;const r=document.createElement("slot");r.setAttribute("name",s);r._itemWrapper=i;e.appendChild(r);i.setAttribute("slot",s);this.appendChild(i);if(this._isVisible(i,t)){this._ensureStampedInstance(i)}}}));requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(t){if(t.firstElementChild){return}const e=t.instance;t.instance=this._createElement();t.appendChild(t.instance);Object.keys(e).forEach((i=>{t.instance[i]=e[i]}))}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():undefined;this._buffers.forEach(((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach(((i,s)=>{const o=i._itemWrapper;if(!t||this._isVisible(o,e)){this._updateElement(o.instance,r+s)}}));i.updated=true}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
2385
- /**
2386
- * @license
2387
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2388
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2389
- */const Gn=document.createElement("template");Gn.innerHTML=`\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n`;class $n extends Hn{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super();this.bufferSize=3;this.shadowRoot.appendChild(Gn.content.cloneNode(true))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=jn(e)}}a($n);
2390
- /**
2391
- * @license
2392
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2393
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2394
- */const qn=document.createElement("template");qn.innerHTML=`\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n`;class Yn extends Hn{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super();this.bufferSize=12;this.shadowRoot.appendChild(qn.content.cloneNode(true))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date;const i=new Date(e);i.setFullYear(parseInt(t)+e.getFullYear());return i.getFullYear()}}a(Yn);
2395
- /**
2396
- * @license
2397
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2398
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2399
- */class Vn extends(Mt(Ps)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ms`
2400
- <style>
2401
- :host {
2402
- display: block;
2403
- height: 100%;
2404
- }
2405
- </style>
2406
- <div part="year-number">[[year]]</div>
2407
- <div part="year-separator" aria-hidden="true"></div>
2408
- `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t);this.toggleAttribute("current",t===(new Date).getFullYear())}}a(Vn);
2409
- /**
2410
- @license
2411
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2412
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2413
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2414
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2415
- Code distributed by Google as part of the polymer project is also
2416
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2417
- */function Jn(t,e,i,s,r){let o;if(r){o=typeof i==="object"&&i!==null;if(o){s=t.__dataTemp[e]}}let n=s!==i&&(s===s||i===i);if(o&&n){t.__dataTemp[e]=i}return n}const Kn=ae((t=>{class e extends t{_shouldPropertyChange(t,e,i){return Jn(this,t,e,i,true)}}return e}));const Zn=ae((t=>{class e extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return Jn(this,t,e,i,this.mutableData)}}return e}));Kn._mutablePropertyChange=Jn;
2418
- /**
2419
- @license
2420
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2421
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2422
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2423
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2424
- Code distributed by Google as part of the polymer project is also
2425
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2426
- */let Qn=null;function Xn(){return Qn}Xn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Xn,writable:true}});const ta=gs(Xn);const ea=Kn(ta);function ia(t,e){Qn=t;Object.setPrototypeOf(t,e.prototype);new e;Qn=null}const sa=gs(class{});function ra(t,e){for(let i=0;i<e.length;i++){let s=e[i];if(Boolean(t)!=Boolean(s.__hideTemplateChildren__)){if(s.nodeType===Node.TEXT_NODE){if(t){s.__polymerTextContent__=s.textContent;s.textContent=""}else{s.textContent=s.__polymerTextContent__}}else if(s.localName==="slot"){if(t){s.__polymerReplaced__=document.createComment("hidden-slot");Ae(Ae(s).parentNode).replaceChild(s.__polymerReplaced__,s)}else{const t=s.__polymerReplaced__;if(t){Ae(Ae(t).parentNode).replaceChild(s,t)}}}else if(s.style){if(t){s.__polymerDisplay__=s.style.display;s.style.display="none"}else{s.style.display=s.__polymerDisplay__}}}s.__hideTemplateChildren__=t;if(s._showHideChildren){s._showHideChildren(t)}}}class oa extends sa{constructor(t){super();this._configureProperties(t);this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling){e.push(t);t.__templatizeInstance=this}if(this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__){this._showHideChildren(true)}let i=this.__templatizeOptions;if(t&&i.instanceProps||!i.instanceProps){this._enableProperties()}}_configureProperties(t){let e=this.__templatizeOptions;if(e.forwardHostProp){for(let t in this.__hostProps){this._setPendingProperty(t,this.__dataHost["_host_"+t])}}for(let e in t){this._setPendingProperty(e,t[e])}}forwardHostProp(t,e){if(this._setPendingPropertyOrPath(t,e,false,true)){this.__dataHost._enqueueClient(this)}}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel){this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this;i(t)}))}else{let s=this.__dataHost.__dataHost;if(s){s._addEventListenerToNode(t,e,i)}}}_showHideChildren(t){ra(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){if(t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"){t.__polymerTextContent__=i}else{super._setUnmanagedPropertyToNode(t,e,i)}}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return true}}const na=Kn(oa);function aa(t){let e=t.__dataHost;return e&&e._methodHost||e}function la(t,e,i){let s=i.mutableData?na:oa;if(pa.mixin){s=pa.mixin(s)}let r=class extends s{};r.prototype.__templatizeOptions=i;r.prototype._bindTemplate(t);ua(r,t,e,i);return r}function ha(t,e,i,s){let r=i.forwardHostProp;if(r&&e.hasHostProps){const o=t.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(o){let t=i.mutableData?ea:ta;class s extends t{}n=e.templatizeTemplateClass=s}else{const i=t.constructor;class s extends i{}n=e.templatizeTemplateClass=s}let a=e.hostProps;for(let t in a){n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:ca(t,r)});n.prototype._createNotifyingProperty("_host_"+t)}if(Qt&&s){ma(e,i,s)}}if(t.__dataProto){Object.assign(t.__data,t.__dataProto)}if(o){ia(t,n);t.__dataTemp={};t.__dataPending=null;t.__dataOld=null;t._enableProperties()}else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i){e="_host_"+e;if(e in t){const i=t[e];delete t[e];t.__data[e]=i}}}}}function ca(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,s.substring("_host_".length),r[s])}}function ua(t,e,i,s){let r=i.hostProps||{};for(let e in s.instanceProps){delete r[e];let i=s.notifyInstanceProp;if(i){t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:da(e,i)})}}if(s.forwardHostProp&&e.__dataHost){for(let e in r){if(!i.hasHostProps){i.hasHostProps=true}t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:fa()})}}}function da(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,i,s,r[s])}}function fa(){return function t(e,i,s){e.__dataHost._setPendingPropertyOrPath("_host_"+i,s[i],true,true)}}function pa(t,e,i){if(Jt&&!aa(t)){throw new Error("strictTemplatePolicy: template owner not trusted")}i=i||{};if(t.__templatizeOwner){throw new Error("A <template> can only be templatized once")}t.__templatizeOwner=e;const s=e?e.constructor:oa;let r=s._parseTemplate(t);let o=r.templatizeInstanceClass;if(!o){o=la(t,r,i);r.templatizeInstanceClass=o}const n=aa(t);ha(t,r,i,n);let a=class t extends o{};a.prototype._methodHost=n;a.prototype.__dataHost=t;a.prototype.__templatizeOwner=e;a.prototype.__hostProps=r.hostProps;a=a;return a}function ma(t,e,i){const s=i.constructor._properties;const{propertyEffects:r}=t;const{instanceProps:o}=e;for(let t in r){if(!s[t]&&!(o&&o[t])){const e=r[t];for(let i=0;i<e.length;i++){const{part:s}=e[i].info;if(!(s.signature&&s.signature.static)){console.warn(`Property '${t}' used in template but not `+`declared in 'properties'; attribute will not be observed.`);break}}}}}function va(t,e){let i;while(e){if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost!=t){e=i.__dataHost}else{return i}}else{e=Ae(e).parentNode}}return null}
2427
- /**
2428
- @license
2429
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2430
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2431
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2432
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2433
- Code distributed by Google as part of the polymer project is also
2434
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2435
- */class ba{constructor(){this._asyncModule=null;this._callback=null;this._timer=null}setConfig(t,e){this._asyncModule=t;this._callback=e;this._timer=this._asyncModule.run((()=>{this._timer=null;ga.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();ga.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}static debounce(t,e,i){if(t instanceof ba){t._cancelAsync()}else{t=new ba}t.setConfig(e,i);return t}}let ga=new Set;const ya=function(t){ga.add(t)};const wa=function(){const t=Boolean(ga.size);ga.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}}));return t};
2436
- /**
2437
- @license
2438
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2439
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2440
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2441
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2442
- Code distributed by Google as part of the polymer project is also
2443
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2444
- */const xa=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush();if(window.ShadyCSS&&window.ShadyCSS.ScopingShim){window.ShadyCSS.ScopingShim.flush()}e=wa()}while(t||e)};
2445
- /**
2446
- @license
2447
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2448
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2449
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2450
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2451
- Code distributed by Google as part of the polymer project is also
2452
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2453
- */let _a=false;function ka(){if(Zt&&!$t){if(!_a){_a=true;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return true}return false}
2454
- /**
2455
- @license
2456
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2457
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2458
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2459
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2460
- Code distributed by Google as part of the polymer project is also
2461
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2462
- */const Aa=Zn(Ps);class Ca extends Aa{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!re,readOnly:true},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super();this.__instances=[];this.__renderDebouncer=null;this.__itemsIdxToInstIdx={};this.__chunkCount=null;this.__renderStartTime=null;this.__itemsArrayChanged=false;this.__shouldMeasureChunk=false;this.__shouldContinueChunking=false;this.__chunkingId=0;this.__sortFn=null;this.__filterFn=null;this.__observePaths=null;this.__ctor=null;this.__isDetached=true;this.template=null}disconnectedCallback(){super.disconnectedCallback();this.__isDetached=true;for(let t=0;t<this.__instances.length;t++){this.__detachInstance(t)}if(this.__chunkingId){cancelAnimationFrame(this.__chunkingId)}}connectedCallback(){super.connectedCallback();if(!ka()){this.style.display="none"}if(this.__isDetached){this.__isDetached=false;let t=Ae(Ae(this).parentNode);for(let e=0;e<this.__instances.length;e++){this.__attachInstance(e,t)}if(this.__chunkingId){this.__render()}}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(this.querySelector("template")){t.disconnect();this.__render()}else{throw new Error("dom-repeat requires a <template> child")}}));t.observe(this,{childList:true});return false}let i={};i[this.as]=true;i[this.indexAs]=true;i[this.itemsIndexAs]=true;this.__ctor=pa(e,this,{mutableData:this.mutableData,parentModel:true,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s=0,r;s<i.length&&(r=i[s]);s++){r.forwardHostProp(t,e)}},notifyInstanceProp:function(t,e,i){if(ze(this.as,e)){let s=t[this.itemsIndexAs];if(e==this.as){this.items[s]=i}let r=Me(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(r,i)}}})}return true}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t==="string"){let e=t;let i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t);if(this.items){this.__debounceRender(this.__render)}}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t);if(this.items){this.__debounceRender(this.__render)}}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t){this.__debounceRender(this.__render,this.delay)}else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++){if(t.indexOf(e[i])===0){this.__debounceRender(this.__render,this.delay)}}}}}__itemsChanged(t){if(this.items&&!Array.isArray(this.items)){console.warn("dom-repeat expected array for `items`, found",this.items)}if(!this.__handleItemPath(t.path,t.value)){if(t.path==="items"){this.__itemsArrayChanged=true}this.__debounceRender(this.__render)}}__debounceRender(t,e=0){this.__renderDebouncer=ba.debounce(this.__renderDebouncer,e>0?Ye.after(e):Ve,t.bind(this));ya(this.__renderDebouncer)}render(){this.__debounceRender(this.__render);xa()}__render(){if(!this.__ensureTemplatized()){return}let t=this.items||[];const e=this.__sortAndFilterItems(t);const i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e);if(this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)){cancelAnimationFrame(this.__chunkingId);this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null;this.__continueChunking()}))}this._setRenderedItemCount(this.__instances.length);if(!re||this.notifyDomChange){this.dispatchEvent(new CustomEvent("dom-change",{bubbles:true,composed:true}))}}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++){e[i]=i}if(this.__filterFn){e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))}if(this.__sortFn){e.sort(((e,i)=>this.__sortFn(t[e],t[i])))}return e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;if(!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances){e=Math.min(t,this.initialCount);s=Math.max(e-i,0);this.__chunkCount=s||1}else{s=Math.min(Math.max(t-i,0),this.__chunkCount);e=Math.min(i+s,t)}this.__shouldMeasureChunk=s===this.__chunkCount;this.__shouldContinueChunking=e<t;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=false;return e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;const e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}if(this.__shouldContinueChunking){this.__debounceRender(this.__render)}}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let e=this.__instances[r];let o=i[r];let n=t[o];s[o]=r;if(e){e._setPendingProperty(this.as,n);e._setPendingProperty(this.indexAs,r);e._setPendingProperty(this.itemsIndexAs,o);e._flushProperties()}else{this.__insertInstance(n,r,o)}}for(let t=this.__instances.length-1;t>=r;t--){this.__detachAndRemoveInstance(t)}}__detachInstance(t){let e=this.__instances[t];const i=Ae(e.root);for(let t=0;t<e.children.length;t++){let s=e.children[t];i.appendChild(s)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t);this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};s[this.as]=t;s[this.indexAs]=e;s[this.itemsIndexAs]=i;return new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1];let o=r?r.children[0]:this;Ae(Ae(this).parentNode).insertBefore(s.root,o);this.__instances[e]=s;return s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++){this.__instances[e]._showHideChildren(t)}}__handleItemPath(t,e){let i=t.slice(6);let s=i.indexOf(".");let r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let o=this.__itemsIdxToInstIdx[r];let n=this.__instances[o];if(n){let i=this.as+(t?"."+t:"");n._setPendingPropertyOrPath(i,e,false,true);n._flushProperties()}return true}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return va(this.template,t)}}customElements.define(Ca.is,Ca);
2463
- /**
2464
- * @license
2465
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2466
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2467
- */const Da=t=>class e extends(Fo(t)){static get properties(){return{month:{type:Object,value:new Date,sync:true},selectedDate:{type:Object,notify:true,sync:true},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:false},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:true},maxDate:{type:Date,value:null,sync:true},disabled:{type:Boolean,reflectToAttribute:true},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((t=>On(t.date,this.focusedDate)))}ready(){super.ready();ao(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const s=new Date(0,0);s.setFullYear(t.getFullYear());s.setMonth(t.getMonth());s.setDate(1);const r=new Date(0,0);r.setFullYear(t.getFullYear());r.setMonth(t.getMonth()+1);r.setDate(0);if(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0){return false}return!In(s,e,i)&&!In(r,e,i)}_getTitle(t,e){if(t===undefined||e===undefined){return}return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(t===undefined||e===undefined){return}return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(t===undefined||e===undefined){return[]}const{weekdays:i,weekdaysShort:s,firstDayOfWeek:r}=t;const o=this._applyFirstDayOfWeek(s,r);const n=this._applyFirstDayOfWeek(i,r);return n.map(((t,e)=>({weekDay:t,weekDayShort:o[e]})))}__focusedDateChanged(t,e){if(Array.isArray(e)&&e.some((e=>On(e,t)))){this.removeAttribute("aria-hidden")}else{this.setAttribute("aria-hidden","true")}}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&e.firstDayOfWeek===1}_isToday(t){return On(new Date,t)}_getDays(t,e){if(t===undefined||e===undefined){return[]}const i=new Date(0,0);i.setFullYear(t.getFullYear());i.setMonth(t.getMonth());i.setDate(1);while(i.getDay()!==e.firstDayOfWeek){this._dateAdd(i,-1)}const s=[];const r=i.getMonth();const o=t.getMonth();while(i.getMonth()===o||i.getMonth()===r){s.push(i.getMonth()===o?new Date(i.getTime()):null);this._dateAdd(i,1)}return s}_getWeeks(t){return t.reduce(((t,e,i)=>{if(i%7===0){t.push([])}t[t.length-1].push(e);return t}),[])}_handleTap(t){if(!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")){this.selectedDate=t.target.date;this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:true,composed:true}))}}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));return Fn(e)}__getDayAriaLabel(t){if(!t){return""}let e=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;if(this._isToday(t)){e+=`, ${this.i18n.today}`}return e}}
2468
- /**
2469
- * @license
2470
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2471
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2472
- */;const Ta=m`
2473
- :host {
2474
- display: block;
2475
- }
2476
-
2477
- #monthGrid {
2478
- width: 100%;
2479
- border-collapse: collapse;
2480
- }
2481
-
2482
- #days-container tr,
2483
- #weekdays-container tr {
2484
- display: flex;
2485
- }
2486
-
2487
- [part~='date'] {
2488
- outline: none;
2489
- }
2490
-
2491
- [part~='disabled'] {
2492
- pointer-events: none;
2493
- }
2494
-
2495
- [part='week-number'][hidden],
2496
- [part='weekday'][hidden] {
2497
- display: none;
2498
- }
2499
-
2500
- [part='weekday'],
2501
- [part~='date'] {
2502
- width: calc(100% / 7);
2503
- padding: 0;
2504
- font-weight: normal;
2505
- }
2506
-
2507
- [part='weekday']:empty,
2508
- [part='week-number'] {
2509
- width: 12.5%;
2510
- flex-shrink: 0;
2511
- padding: 0;
2512
- }
2513
-
2514
- :host([week-numbers]) [part='weekday']:not(:empty),
2515
- :host([week-numbers]) [part~='date'] {
2516
- width: 12.5%;
2517
- }
2518
-
2519
- @media (forced-colors: active) {
2520
- [part~='date'][part~='focused'] {
2521
- outline: 1px solid;
2522
- }
2523
-
2524
- [part~='date'][part~='selected'] {
2525
- outline: 3px solid;
2526
- }
2527
- }
2528
- `
2529
- /**
2530
- * @license
2531
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2532
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2533
- */;_t("vaadin-month-calendar",Ta,{moduleId:"vaadin-month-calendar-styles"});class Sa extends(Da(Mt(Ps))){static get template(){return Ms`
2534
- <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
2535
- <table
2536
- id="monthGrid"
2537
- role="grid"
2538
- aria-labelledby="month-header"
2539
- on-touchend="_preventDefault"
2540
- on-touchstart="_onMonthGridTouchStart"
2541
- >
2542
- <thead id="weekdays-container">
2543
- <tr role="row" part="weekdays">
2544
- <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
2545
- <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
2546
- <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
2547
- [[item.weekDayShort]]
2548
- </th>
2549
- </template>
2550
- </tr>
2551
- </thead>
2552
- <tbody id="days-container">
2553
- <template is="dom-repeat" items="[[_weeks]]" as="week">
2554
- <tr role="row">
2555
- <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
2556
- [[__getWeekNumber(week)]]
2557
- </td>
2558
- <template is="dom-repeat" items="[[week]]">
2559
- <td
2560
- role="gridcell"
2561
- part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
2562
- date="[[item]]"
2563
- tabindex$="[[__getDayTabindex(item, focusedDate)]]"
2564
- disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
2565
- aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
2566
- aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
2567
- aria-label$="[[__getDayAriaLabel(item)]]"
2568
- >[[_getDate(item)]]</td
2569
- >
2570
- </template>
2571
- </tr>
2572
- </template>
2573
- </tbody>
2574
- </table>
2575
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:true,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){if(t&&e&&e.firstDayOfWeek===1){this.setAttribute("week-numbers","")}else{this.removeAttribute("week-numbers")}}__getDatePart(t,e,i,s,r){const o=["date"];if(this.__isDayDisabled(t,s,r)){o.push("disabled")}if(this.__isDayFocused(t,e)){o.push("focused")}if(this.__isDaySelected(t,i)){o.push("selected")}if(this._isToday(t)){o.push("today")}return o.join(" ")}__isDayFocused(t,e){return On(t,e)}__isDaySelected(t,e){return On(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e)){return"true"}}__isDayDisabled(t,e,i){return!In(t,e,i)}__getDayAriaDisabled(t,e,i){if(t===undefined||e===undefined||i===undefined){return}if(this.__isDayDisabled(t,e,i)){return"true"}}__getDayTabindex(t,e){if(this.__isDayFocused(t,e)){return"0"}return"-1"}}a(Sa);
2576
- /**
2577
- * @license
2578
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2579
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2580
- */class Ma{constructor(t,e){this.query=t;this.callback=e;this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener();this._mediaQuery=window.matchMedia(this.query);this._addListener();this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){if(this._mediaQuery){this._mediaQuery.addListener(this._boundQueryHandler)}}_removeListener(){if(this._mediaQuery){this._mediaQuery.removeListener(this._boundQueryHandler)}this._mediaQuery=null}_queryHandler(t){if(typeof this.callback==="function"){this.callback(t.matches)}}}
2581
- /**
2582
- * @license
2583
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2584
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2585
- */const za=t=>class e extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:true},focusedDate:{type:Object,notify:true,observer:"_focusedDateChanged",sync:true},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:false},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:true},maxDate:{type:Object,sync:true},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){uo(this.$.scrollers,"pan-y");ao(this.$.scrollers,"track",this._track.bind(this));ao(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this));ao(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this));ao(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ma(this._desktopMediaQuery,(t=>{this._desktopMode=t})));this.addController(new Tr(this,"today-button","vaadin-button",{observe:false,initializer:t=>{t.setAttribute("theme","tertiary");t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t)));ao(t,"tap",this._onTodayTap.bind(this));this._todayButton=t}}));this.addController(new Tr(this,"cancel-button","vaadin-button",{observe:false,initializer:t=>{t.setAttribute("theme","tertiary");t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t)));ao(t,"tap",this._cancel.bind(this));this._cancelButton=t}}));this.__initMonthScroller();this.__initYearScroller()}reset(){this._closeYearScroller();this._toggleAnimateClass(true)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e);this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Tr(this,"months","vaadin-date-picker-month-scroller",{observe:false,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()}));t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()}));t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)}));t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))}));this.calendars=t}));this._monthScroller=t}}))}__initYearScroller(){this.addController(new Tr(this,"years","vaadin-date-picker-year-scroller",{observe:false,initializer:t=>{t.setAttribute("aria-hidden","true");ao(t,"tap",(t=>{this._onYearTap(t)}));t.addEventListener("custom-scroll",(()=>{this._onYearScroll()}));t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()}));t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}));this._yearScroller=t}}))}__updateCancelButton(t,e){if(t){t.textContent=e&&e.cancel}}__updateTodayButton(t,e,i,s){if(t){t.textContent=e&&e.today;t.disabled=!this._isTodayAllowed(i,s)}}__updateCalendars(t,e,i,s,r,o,n,a,l){if(t&&t.length){t.forEach((t=>{t.i18n=e;t.minDate=i;t.maxDate=s;t.focusedDate=o;t.selectedDate=r;t.showWeekNumbers=n;t.ignoreTaps=a;if(l){t.setAttribute("theme",l)}else{t.removeAttribute("theme")}}))}}__updateYears(t,e,i){if(t&&t.length){t.forEach((t=>{t.selectedDate=e;if(i){t.setAttribute("theme",i)}else{t.removeAttribute("theme")}}))}}_selectDate(t){this.selectedDate=t;this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:true,composed:true}))}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=true){if(!t){return}const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+s,e);return}const s=this._monthScroller.position>i;const r=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2);const o=r/this._monthScroller.itemHeight;const n=this._monthScroller.position+o-1<i;if(s){this._scrollToPosition(i,e)}else if(n){this._scrollToPosition(i-o+1,e)}}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear());e.setMonth(t.getMonth());e.setDate(1);let i=0;while(e.getDate()<t.getDate()){e.setDate(e.getDate()+1);if(e.getDay()===this.i18n.firstDayOfWeek){i+=1}}return i/6}_initialPositionChanged(t){if(this._monthScroller&&this._yearScroller){this._monthScroller.active=true;this._yearScroller.active=true}this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t);this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth();this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller();this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller();this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300);this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=true;this._debouncer=fr.debounce(this._debouncer,hr.after(300),(()=>{this._ignoreTaps=false}))}_formatDisplayed(t,e,i){if(t&&e&&typeof e.formatDate==="function"){return e.formatDate(Rn(t))}return i}_onTodayTap(){const t=new Date;if(Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001){this._selectDate(t);this._close()}else{this._scrollToCurrentMonth()}}_scrollToCurrentMonth(){if(this.focusedDate){this.focusedDate=new Date}this.scrollToDate(new Date,true)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2);const i=e/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,true)}}_scrollToPosition(t,e){if(this._targetPosition!==undefined){this._targetPosition=t;return}if(!e){this._monthScroller.position=t;this._targetPosition=undefined;this._repositionYearScroller();this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise((t=>{i=t}));const s=(t,e,i,s)=>{t/=s/2;if(t<1){return i/2*t*t+e}t-=1;return-i/2*(t*(t-2)-1)+e};let r=0;const o=this._monthScroller.position;const n=t=>{if(!r){r=t}const e=t-r;if(e<this.scrollDuration){const t=s(e,o,this._targetPosition-o,this.scrollDuration);this._monthScroller.position=t;window.requestAnimationFrame(n)}else{this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:true,composed:true,detail:{position:this._targetPosition,oldPosition:o}}));this._monthScroller.position=this._targetPosition;this._targetPosition=undefined;i();this._revealPromise=undefined}setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(n)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10){return}if(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3){this._toggleAnimateClass(true)}const e=this._translateX+t.detail.ddx;this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth})}_track(t){if(this._desktopMode){return}switch(t.detail.state){case"start":this._toggleAnimateClass(false);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(true);if(this._translateX>=this._yearScrollerWidth/2){this._closeYearScroller()}else{this._openYearScroller()}break}}_toggleAnimateClass(t){if(t){this.classList.add("animate")}else{this.classList.remove("animate")}}_toggleYearScroller(){if(this._isYearScrollerVisible()){this._closeYearScroller()}else{this._openYearScroller()}}_openYearScroller(){this._translateX=0;this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible");this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){if(!this._desktopMode){this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`;this._yearScroller.style.transform=`translateX(${t}px)`}}_yearAfterXMonths(t){return jn(t).getFullYear()}_differenceInMonths(t,e){const i=(t.getFullYear()-e.getFullYear())*12;return i-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:true,composed:true}))}_cancel(){this.focusedDate=this.selectedDate;this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){if(On(t,this.selectedDate)){this._clear();this.focusedDate=t}else{this._selectDate(t)}}__onMonthCalendarKeyDown(t){let e=false;switch(t.key){case"ArrowDown":this._moveFocusByDays(7);e=true;break;case"ArrowUp":this._moveFocusByDays(-7);e=true;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1);e=true;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1);e=true;break;case"Enter":this._selectDate(this.focusedDate);this._close();e=true;break;case" ":this.__toggleDate(this.focusedDate);e=true;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate");e=true;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate");e=true;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1);e=true;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1);e=true;break;case"Tab":this._onTabKeyDown(t,"calendar");break}if(e){t.preventDefault();t.stopPropagation()}}_onTabKeyDown(t,e){t.stopPropagation();switch(e){case"calendar":if(t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusCancel()}else{this.__focusInput()}}break;case"today":if(t.shiftKey){t.preventDefault();this.focusDateElement()}break;case"cancel":if(!t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusDateElement()}else{this.__focusInput()}}break}}__onTodayButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"today")}}__onCancelButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"cancel")}}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:true,composed:true}))}__tryFocusDate(){const t=this.__pendingDateFocus;if(t){const t=this.focusableDateElement;if(t&&On(t.date,this.__pendingDateFocus)){delete this.__pendingDateFocus;t.focus()}}}async focusDate(t,e){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i;if(!e){this._focusedMonthDate=i.getDate()}await this.focusDateElement(false)}async focusDateElement(t=true){this.__pendingDateFocus=this.focusedDate;if(!this.calendars.length){await new Promise((t=>{Xo(this,(()=>{xa();t()}))}))}if(t){this.revealDate(this.focusedDate)}if(this._revealPromise){await this._revealPromise}this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(Bn(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){if(this._dateAllowed(t)){this.focusDate(t,i)}else if(this._dateAllowed(this.focusedDate)){if(e>0){this.focusDate(this.maxDate)}else{this.focusDate(this.minDate)}}else{this._focusClosestDate(this.focusedDate)}}_getDateDiff(t,e){const i=new Date(0,0);i.setFullYear(this.focusedDate.getFullYear());i.setMonth(this.focusedDate.getMonth()+t);if(e){i.setDate(this.focusedDate.getDate()+e)}return i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,false)}_moveFocusByMonths(t){const e=this._getDateDiff(t);const i=e.getMonth();if(!this._focusedMonthDate){this._focusedMonthDate=this.focusedDate.getDate()}e.setDate(this._focusedMonthDate);if(e.getMonth()!==i){e.setDate(0)}this._focusAllowedDate(e,t,true)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear());if(e==="minDate"){i.setMonth(t.getMonth());i.setDate(1)}else{i.setMonth(t.getMonth()+1);i.setDate(0)}if(this._dateAllowed(i)){this.focusDate(i)}else if(this._dateAllowed(t)){this.focusDate(this[e])}else{this._focusClosestDate(t)}}_dateAllowed(t,e=this.minDate,i=this.maxDate){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date;const s=new Date(0,0);s.setFullYear(i.getFullYear());s.setMonth(i.getMonth());s.setDate(i.getDate());return this._dateAllowed(s,t,e)}}
2586
- /**
2587
- * @license
2588
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2589
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2590
- */;const Pa=m`
2591
- :host {
2592
- display: flex;
2593
- flex-direction: column;
2594
- height: 100%;
2595
- width: 100%;
2596
- outline: none;
2597
- }
2598
-
2599
- [part='overlay-header'] {
2600
- display: flex;
2601
- flex-shrink: 0;
2602
- flex-wrap: nowrap;
2603
- align-items: center;
2604
- }
2605
-
2606
- :host(:not([fullscreen])) [part='overlay-header'] {
2607
- display: none;
2608
- }
2609
-
2610
- [part='label'] {
2611
- flex-grow: 1;
2612
- }
2613
-
2614
- [hidden] {
2615
- display: none !important;
2616
- }
2617
-
2618
- [part='years-toggle-button'] {
2619
- display: flex;
2620
- }
2621
-
2622
- #scrollers {
2623
- display: flex;
2624
- height: 100%;
2625
- width: 100%;
2626
- position: relative;
2627
- overflow: hidden;
2628
- }
2629
-
2630
- :host([desktop]) ::slotted([slot='months']) {
2631
- right: 50px;
2632
- transform: none !important;
2633
- }
2634
-
2635
- :host([desktop]) ::slotted([slot='years']) {
2636
- transform: none !important;
2637
- }
2638
-
2639
- :host(.animate) ::slotted([slot='months']),
2640
- :host(.animate) ::slotted([slot='years']) {
2641
- transition: all 200ms;
2642
- }
2643
-
2644
- [part='toolbar'] {
2645
- display: flex;
2646
- justify-content: space-between;
2647
- z-index: 2;
2648
- flex-shrink: 0;
2649
- }
2650
- `
2651
- /**
2652
- * @license
2653
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2654
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2655
- */;_t("vaadin-date-picker-overlay-content",Pa,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ea extends(za(qs(Mt(Bs(Ps))))){static get template(){return Ms`
2656
- <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
2657
- <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
2658
- <div part="clear-button" hidden$="[[!selectedDate]]"></div>
2659
- <div part="toggle-button"></div>
2660
-
2661
- <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
2662
- [[_yearAfterXMonths(_visibleMonthIndex)]]
2663
- </div>
2664
- </div>
2665
-
2666
- <div id="scrollers">
2667
- <slot name="months"></slot>
2668
- <slot name="years"></slot>
2669
- </div>
2670
-
2671
- <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
2672
- <slot name="today-button"></slot>
2673
- <slot name="cancel-button"></slot>
2674
- </div>
2675
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready();this.setAttribute("role","dialog");this._addListeners();this._initControllers()}}a(Ea);
2676
- /**
2677
- * @license
2678
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2679
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2680
- */const Na=ae((t=>class e extends(Fo(Oo(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:true,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super();this._boundOnBlur=this._onBlur.bind(this);this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready();if(this.autofocus&&!this.disabled){requestAnimationFrame((()=>{this.focus();this.setAttribute("focus-ring","")}))}}focus(){if(this.focusElement&&!this.disabled){this.focusElement.focus()}}blur(){if(this.focusElement){this.focusElement.blur()}}click(){if(this.focusElement&&!this.disabled){this.focusElement.click()}}_focusElementChanged(t,e){if(t){t.disabled=this.disabled;this._addFocusListeners(t);this.__forwardTabIndex(this.tabindex)}else if(e){this._removeFocusListeners(e)}}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur);t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur);t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation();this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation();this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e);if(this.focusElement){this.focusElement.disabled=t}if(t){this.blur()}}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){if(t!==undefined&&this.focusElement){this.focusElement.tabIndex=t;if(t!==-1){this.tabindex=undefined}}if(this.disabled&&t){if(t!==-1){this._lastTabIndex=t}this.tabindex=undefined}}}));
2681
- /**
2682
- * @license
2683
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2684
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2685
- */const Fa=new WeakMap;function Oa(t){if(!Fa.has(t)){Fa.set(t,new Set)}return Fa.get(t)}function Ia(t,e){const i=document.createElement("style");i.textContent=t;if(e===document){document.head.appendChild(i)}else{e.insertBefore(i,e.firstChild)}}const Ba=ae((t=>class e extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback();this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode();const e=Oa(t);this.slotStyles.forEach((i=>{if(!e.has(i)){Ia(i,t);e.add(i)}}))}}));
2686
- /**
2687
- * @license
2688
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2689
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2690
- */const Ra=ae((t=>class e extends t{static get properties(){return{inputElement:{type:Object,readOnly:true,observer:"_inputElementChanged"},type:{type:String,readOnly:true},value:{type:String,value:"",observer:"_valueChanged",notify:true,sync:true},_hasInputValue:{type:Boolean,value:false,observer:"_hasInputValueChanged"}}}constructor(){super();this._boundOnInput=this.__onInput.bind(this);this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:undefined}set _inputElementValue(t){if(this.inputElement){this.inputElement[this._inputElementValueProperty]=t}}clear(){this._hasInputValue=false;this.value="";this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput);t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput);t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){if(!this.inputElement){return}this._inputElementValue=t!=null?t:""}_inputElementChanged(t,e){if(t){this._addInputListeners(t)}else if(e){this._removeInputListeners(e)}}_hasInputValueChanged(t,e){if(t||e){this.dispatchEvent(new CustomEvent("has-input-value-changed"))}}__onInput(t){this._setHasInputValue(t);this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted;this.value=e.value;this.__userInput=false}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue);if(t===""&&e===undefined){return}if(this.__userInput){return}this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}}));
2691
- /**
2692
- * @license
2693
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2694
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2695
- */const ja=t=>class e extends(Ra(wo(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:true,value:false}}}get clearElement(){console.warn(`Please implement the 'clearElement' property in <${this.localName}>`);return null}ready(){super.ready();if(this.clearElement){this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t)));this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t)))}}_onClearButtonClick(t){t.preventDefault();this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault();if(!ln){this.inputElement.focus()}}_onEscape(t){super._onEscape(t);if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearAction()}}_onClearAction(){this.clear();this.inputElement.dispatchEvent(new Event("input",{bubbles:true,composed:true}));this.inputElement.dispatchEvent(new Event("change",{bubbles:true}))}}
2696
- /**
2697
- * @license
2698
- * Copyright (c) 2023 Vaadin Ltd.
2699
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2700
- */;const Wa=new Map;function La(t){if(!Wa.has(t)){Wa.set(t,new WeakMap)}return Wa.get(t)}function Ua(t,e){if(!t){return}t.removeAttribute(e)}function Ha(t,e){if(!t||!e){return}const i=La(e);if(i.has(t)){return}const s=yr(t.getAttribute(e));i.set(t,new Set(s))}function Ga(t,e){if(!t||!e){return}const i=La(e);const s=i.get(t);if(!s||s.size===0){t.removeAttribute(e)}else{xr(t,e,wr(s))}i.delete(t)}function $a(t,e,i={newId:null,oldId:null,fromUser:false}){if(!t||!e){return}const{newId:s,oldId:r,fromUser:o}=i;const n=La(e);const a=n.get(t);if(!o&&!!a){r&&a.delete(r);s&&a.add(s);return}if(o){if(!a){Ha(t,e)}else if(!s){n.delete(t)}Ua(t,e)}_r(t,e,r);const l=!s?wr(a):s;if(l){xr(t,e,l)}}function qa(t,e){Ha(t,e);Ua(t,e)}
2701
- /**
2702
- * @license
2703
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2704
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2705
- */class Ya{constructor(t){this.host=t;this.__required=false}setTarget(t){this.__target=t;this.__setAriaRequiredAttribute(this.__required);this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId);if(this.__labelIdFromUser!=null){this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,true)}this.__setErrorIdToAriaAttribute(this.__errorId);this.__setHelperIdToAriaAttribute(this.__helperId);this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t);this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t);this.__label=t}setLabelId(t,e=false){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e);if(e){this.__labelIdFromUser=t}else{this.__labelId=t}}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId);this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId);this.__helperId=t}__setAriaLabelToAttribute(t){if(!this.__target){return}if(t){qa(this.__target,"aria-labelledby");this.__target.setAttribute("aria-label",t)}else if(this.__label){Ga(this.__target,"aria-labelledby");this.__target.removeAttribute("aria-label")}}__setLabelIdToAriaAttribute(t,e,i){$a(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){$a(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:false})}__setHelperIdToAriaAttribute(t,e){$a(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:false})}__setAriaRequiredAttribute(t){if(!this.__target){return}if(["input","textarea"].includes(this.__target.localName)){return}if(t){this.__target.setAttribute("aria-required","true")}else{this.__target.removeAttribute("aria-required")}}}
2706
- /**
2707
- * @license
2708
- * Copyright (c) 2022 - 2023 Vaadin Ltd.
2709
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2710
- */class Va extends Tr{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:true})}initCustomNode(t){this.__updateNodeId(t);this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();if(e&&e!==this.defaultNode){this.__notifyChange(e)}else{this.restoreDefaultNode();this.updateDefaultNode(this.node)}}attachDefaultNode(){const t=super.attachDefaultNode();if(t){this.__updateNodeId(t)}return t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){if(this.__nodeObserver){this.__nodeObserver.disconnect()}this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target;const i=e===this.node;if(t.type==="attributes"){if(i){this.__updateNodeId(e)}}else if(i||e.parentElement===this.node){this.__notifyChange(this.node)}}))}));this.__nodeObserver.observe(t,{attributes:true,attributeFilter:["id"],childList:true,subtree:true,characterData:true})}__hasContent(t){if(!t){return false}return t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!==""}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];if(t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id){t.id=this.defaultId}}}
2711
- /**
2712
- * @license
2713
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2714
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2715
- */class Ja extends Va{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t;this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t;this.updateDefaultNode(this.node)}initAddedNode(t){if(t!==this.defaultNode){this.initCustomNode(t)}}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){if(t.textContent&&!this.errorMessage){this.errorMessage=t.textContent.trim()}super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this;const s=Boolean(i&&e&&e.trim()!=="");if(t){t.textContent=s?e:"";t.hidden=!s;if(s){t.setAttribute("role","alert")}else{t.removeAttribute("role")}}super.updateDefaultNode(t)}}
2716
- /**
2717
- * @license
2718
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2719
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2720
- */class Ka extends Va{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t;const e=this.getSlotChild();if(!e){this.restoreDefaultNode()}if(this.node===this.defaultNode){this.updateDefaultNode(this.node)}}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){if(t){t.textContent=this.helperText}super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t);this.observeNode(t)}}
2721
- /**
2722
- * @license
2723
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2724
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2725
- */class Za extends Va{constructor(t){super(t,"label","label")}setLabel(t){this.label=t;const e=this.getSlotChild();if(!e){this.restoreDefaultNode()}if(this.node===this.defaultNode){this.updateDefaultNode(this.node)}}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){if(t){t.textContent=this.label}super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t);this.observeNode(t)}}
2726
- /**
2727
- * @license
2728
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2729
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2730
- */const Qa=ae((t=>class e extends(qs(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super();this._labelController=new Za(this);this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready();this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}}));
2731
- /**
2732
- * @license
2733
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2734
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2735
- */const Xa=ae((t=>class e extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:true,notify:true,value:false},required:{type:Boolean,reflectToAttribute:true}}}validate(){const t=this.checkValidity();this._setInvalid(!t);this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}}));return t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){if(this._shouldSetInvalid(t)){this.invalid=t}}_shouldSetInvalid(t){return true}}));
2736
- /**
2737
- * @license
2738
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2739
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2740
- */const tl=t=>class e extends(Xa(Qa(qs(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super();this._fieldAriaController=new Ya(this);this._helperController=new Ka(this);this._errorController=new Ja(this);this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}));this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)}));this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e);this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready();this.addController(this._fieldAriaController);this.addController(this._helperController);this.addController(this._errorController)}__helperChanged(t,e){if(t){this._fieldAriaController.setHelperId(e.id)}else{this._fieldAriaController.setHelperId(null)}}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,true)}__labelChanged(t,e){if(t){this._fieldAriaController.setLabelId(e.id)}else{this._fieldAriaController.setLabelId(null)}}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){if(t){this._fieldAriaController.setTarget(t)}}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t);setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else{this._fieldAriaController.setErrorId(null)}}))}}
2741
- /**
2742
- * @license
2743
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2744
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2745
- */;const el=ae((t=>class e extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready();this._createDelegateAttrsObserver();this._createDelegatePropsObserver()}_stateTargetChanged(t){if(t){this._ensureAttrsDelegated();this._ensurePropsDelegated()}}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){if(!this.stateTarget){return}if(t==="invalid"){this._delegateAttribute("aria-invalid",e?"true":false)}if(typeof e==="boolean"){this.stateTarget.toggleAttribute(t,e)}else if(e){this.stateTarget.setAttribute(t,e)}else{this.stateTarget.removeAttribute(t)}}_delegateProperty(t,e){if(!this.stateTarget){return}this.stateTarget[t]=e}}));
2746
- /**
2747
- * @license
2748
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2749
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2750
- */const il=ae((t=>class e extends(el(Xa(Ra(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready();this._createConstraintsObserver()}checkValidity(){if(this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))){return this.inputElement.checkValidity()}return!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t){return}const i=this._hasValidConstraints(e);const s=this.__previousHasConstraints&&!i;if((this._hasValue||this.invalid)&&i){this.validate()}else if(s){this._setInvalid(false)}this.__previousHasConstraints=i}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||t===0}}));
2751
- /**
2752
- * @license
2753
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2754
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2755
- */const sl=t=>class e extends(Ba(Na(il(tl(ja(wo(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:false},name:{type:String,reflectToAttribute:true},placeholder:{type:String,reflectToAttribute:true},readonly:{type:Boolean,value:false,reflectToAttribute:true},title:{type:String,reflectToAttribute:true}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super();this._boundOnPaste=this._onPaste.bind(this);this._boundOnDrop=this._onDrop.bind(this);this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n `]}_onFocus(t){super._onFocus(t);if(this.autoselect&&this.inputElement){this.inputElement.select()}}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t);t.addEventListener("paste",this._boundOnPaste);t.addEventListener("drop",this._boundOnDrop);t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t);t.removeEventListener("paste",this._boundOnPaste);t.removeEventListener("drop",this._boundOnDrop);t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t);if(this.allowedCharPattern&&!this.__shouldAcceptKey(t)){t.preventDefault();this._markInputPrevented()}}_markInputPrevented(){this.setAttribute("input-prevented","");this._preventInputDebouncer=fr.debounce(this._preventInputDebouncer,hr.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onBeforeInput(t){if(this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)){t.preventDefault();this._markInputPrevented()}}_allowedCharPatternChanged(t){if(t){try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u");this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}}
2756
- /**
2757
- * @license
2758
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2759
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2760
- */;class rl extends Tr{constructor(t,e){super(t,"input","input",{initializer:(t,i)=>{if(i.value){t.value=i.value}if(i.type){t.setAttribute("type",i.type)}t.id=this.defaultId;if(typeof e==="function"){e(t)}},useUniqueId:true})}}
2761
- /**
2762
- * @license
2763
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2764
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2765
- */class ol{constructor(t,e){this.input=t;this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this);e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)}));this.__initLabel(e.node)}__initLabel(t){if(t){t.addEventListener("click",this.__preventDuplicateLabelClick);if(this.input){t.setAttribute("for",this.input.id)}}}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation();this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2766
- /**
2767
- * @license
2768
- * Copyright (c) 2021 - 2023 Vaadin Ltd..
2769
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2770
- */const nl=m`
2771
- [part='clear-button'] {
2772
- display: none;
2773
- cursor: default;
2774
- }
2775
-
2776
- [part='clear-button']::before {
2777
- content: '\\2715';
2778
- }
2779
-
2780
- :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
2781
- display: block;
2782
- }
2783
- `
2784
- /**
2785
- * @license
2786
- * Copyright (c) 2021 - 2023 Vaadin Ltd..
2787
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2788
- */;const al=m`
2789
- :host {
2790
- display: inline-flex;
2791
- outline: none;
2792
- }
2793
-
2794
- :host::before {
2795
- content: '\\2003';
2796
- width: 0;
2797
- display: inline-block;
2798
- /* Size and position this element on the same vertical position as the input-field element
2799
- to make vertical align for the host element work as expected */
2800
- }
2801
-
2802
- :host([hidden]) {
2803
- display: none !important;
2804
- }
2805
-
2806
- :host(:not([has-label])) [part='label'] {
2807
- display: none;
2808
- }
2809
-
2810
- @media (forced-colors: active) {
2811
- :host(:not([readonly])) [part='input-field'] {
2812
- outline: 1px solid;
2813
- outline-offset: -1px;
2814
- }
2815
- :host([focused]) [part='input-field'] {
2816
- outline-width: 2px;
2817
- }
2818
- :host([disabled]) [part='input-field'] {
2819
- outline-color: GrayText;
2820
- }
2821
- }
2822
- `
2823
- /**
2824
- * @license
2825
- * Copyright (c) 2021 - 2023 Vaadin Ltd..
2826
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2827
- */;const ll=m`
2828
- [class$='container'] {
2829
- display: flex;
2830
- flex-direction: column;
2831
- min-width: 100%;
2832
- max-width: 100%;
2833
- width: var(--vaadin-field-default-width, 12em);
2834
- }
2835
- `
2836
- /**
2837
- * @license
2838
- * Copyright (c) 2021 - 2023 Vaadin Ltd..
2839
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2840
- */;const hl=[al,ll,nl];
2841
- /**
2842
- * @license
2843
- * Copyright (c) 2023 Vaadin Ltd.
2844
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2845
- */const cl=t=>class e extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e){return}if(t===undefined){return}const{classList:i}=e;if(!this.__initialClasses){this.__initialClasses=new Set(i)}if(Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));if(t.length>0){i.remove(...t)}}const s=typeof t==="string"?t.split(" "):[];if(s.length>0){i.add(...s)}this.__previousClasses=s}}
2846
- /**
2847
- * @license
2848
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2849
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2850
- */;class ul{constructor(t){this.host=t;t.addEventListener("opened-changed",(()=>{if(!t.opened){this.__setVirtualKeyboardEnabled(false)}}));t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(true)));t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(true)))}__setVirtualKeyboardEnabled(t){if(this.host.inputElement){this.host.inputElement.inputMode=t?"":"none"}}}
2851
- /**
2852
- * @license
2853
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2854
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2855
- */const dl=t=>class e extends(cl(qs(Na(il(wo(t)))))){static get properties(){return{_selectedDate:{type:Object,sync:true},_focusedDate:{type:Object,sync:true},value:{type:String,notify:true,value:"",sync:true},initialPosition:String,opened:{type:Boolean,reflectToAttribute:true,notify:true,observer:"_openedChanged",sync:true},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:false,sync:true},_fullscreen:{type:Boolean,value:false,sync:true},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:true,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/");const i=new Date;let s,r=i.getMonth(),o=i.getFullYear();if(e.length===3){r=parseInt(e[0])-1;s=parseInt(e[1]);o=parseInt(e[2]);if(e[2].length<3&&o>=0){const t=this.referenceDate?Ln(this.referenceDate):new Date;o=Wn(t,o,r,s)}}else if(e.length===2){r=parseInt(e[0])-1;s=parseInt(e[1])}else if(e.length===1){s=parseInt(e[0])}if(s!==undefined){return{day:s,month:r,year:o}}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:true},max:{type:String,sync:true},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:true},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:true},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:an},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:true},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super();this._boundOnClick=this._onClick.bind(this);this._boundOnScroll=this._onScroll.bind(this);this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t;this._hasInputValue=false}get clearElement(){return null}get _nativeInput(){if(this.inputElement){return this.inputElement.focusElement||this.inputElement}return null}_onFocus(t){super._onFocus(t);if(this._noInput){t.target.blur()}}_onBlur(t){super._onBlur(t);if(!this.opened){this._selectParsedOrFocusedDate();if(document.hasFocus()){this.validate()}}}ready(){super.ready();this.addEventListener("click",this._boundOnClick);this.addController(new Ma(this._fullscreenMediaQuery,(t=>{this._fullscreen=t})));this.addController(new ul(this));const t=this.$.overlay;this._overlayElement=t;t.renderer=this._boundOverlayRenderer;this.addEventListener("mousedown",(()=>this.__bringToFront()));this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback();this.opened=false}open(){if(!this.disabled&&!this.readonly){this.opened=true}}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild){return}const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e);this._overlayContent=e;e.addEventListener("close",(()=>{this._close()}));e.addEventListener("focus-input",this._focusAndSelect.bind(this));e.addEventListener("date-tap",(t=>{this.__userConfirmedDate=true;this._selectDate(t.detail.date);this._close()}));e.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date;this._selectDate(t.detail.date)}));e.addEventListener("focusin",(()=>{if(this._keyboardActive){this._setFocused(true)}}));e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value}))}__parseDate(t){if(!this.i18n.parseDate){return}let e=this.i18n.parseDate(t);if(e){e=Ln(`${e.year}-${e.month+1}-${e.day}`)}if(e&&!isNaN(e.getTime())){return e}}__formatDate(t){if(this.i18n.formatDate){return this.i18n.formatDate(Rn(t))}}checkValidity(){const t=this._inputElementValue;const e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate);const i=!this._selectedDate||In(this._selectedDate,this._minDate,this._maxDate);let s=true;if(this.inputElement){if(this.inputElement.checkValidity){s=this.inputElement.checkValidity()}else if(this.inputElement.validate){s=this.inputElement.validate()}}return e&&i&&s}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t);this._shouldKeepFocusRing=t&&this._keyboardActive}__dispatchChange(){this.validate();this.dispatchEvent(new CustomEvent("change",{bubbles:true}))}_selectDate(t){const e=this.value;this._selectedDate=t;if(e!==this.value){this.__dispatchChange()}}_close(){this._focus();this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,s,r,o){const n=e&&(!o||r);const a=i&&r;return!t||n||a||!s.parseDate}_formatISO(t){if(!(t instanceof Date)){return""}const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="";let s="0000";let r=t.getFullYear();if(r<0){r=-r;i="-";s="000000"}else if(t.getFullYear()>=1e4){i="+";s="000000"}const o=i+e(r,s);const n=e(t.getMonth()+1);const a=e(t.getDate());return[o,n,a].join("-")}_inputElementChanged(t){super._inputElementChanged(t);if(t){t.autocomplete="off";t.setAttribute("role","combobox");t.setAttribute("aria-haspopup","dialog");t.setAttribute("aria-expanded",!!this.opened);this._applyInputValue(this._selectedDate)}}_openedChanged(t){if(this.inputElement){this.inputElement.setAttribute("aria-expanded",t)}}_selectedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this.__keepInputValue){this._applyInputValue(t)}this.value=this._formatISO(t);this._ignoreFocusedDateChange=true;this._focusedDate=t;this._ignoreFocusedDateChange=false}_focusedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this._ignoreFocusedDateChange&&!this._noInput){this._applyInputValue(t)}}_valueChanged(t,e){const i=Ln(t);if(t&&!i){this.value=e;return}if(t){if(!On(this._selectedDate,i)){this._selectedDate=i;if(e!==undefined){this.validate()}}}else{this._selectedDate=null}this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,e,i,s,r,o,n,a){if(t){t.i18n=e;t.label=i;t.minDate=s;t.maxDate=r;t.focusedDate=o;t.selectedDate=n;t.showWeekNumbers=a}}__updateOverlayContentTheme(t,e){if(t){if(e){t.setAttribute("theme",e)}else{t.removeAttribute("theme")}}}__updateOverlayContentFullScreen(t,e){if(t){t.toggleAttribute("fullscreen",e)}}_onOverlayEscapePress(){this._focusedDate=this._selectedDate;this._close()}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i);this._ignoreFocusedDateChange=true;t.focusedDate=i;this._ignoreFocusedDateChange=false;window.addEventListener("scroll",this._boundOnScroll,true);if(this._focusOverlayOnOpen){t.focusDateElement();this._focusOverlayOnOpen=false}else{this._focus()}const s=this._nativeInput;if(this._noInput&&s){s.blur();this._overlayContent.focusDateElement()}const r=this._noInput?t:[s,t];this.__showOthers=bn(r)}_getInitialPosition(){const t=Ln(this.initialPosition);const e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||In(e,this._minDate,this._maxDate)?e:Bn(e,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){this._ignoreFocusedDateChange=true;if(this.i18n.parseDate){const t=this._inputElementValue||"";const e=this.__parseDate(t);if(e){this._selectDate(e)}else{this.__keepInputValue=true;this._selectDate(null);this._selectedDate=null;this.__keepInputValue=false}}else if(this._focusedDate){this._selectDate(this._focusedDate)}this._ignoreFocusedDateChange=false}_onOverlayClosed(){if(this.__showOthers){this.__showOthers();this.__showOthers=null}window.removeEventListener("scroll",this._boundOnScroll,true);if(this.__userConfirmedDate){this.__userConfirmedDate=false}else{this._selectParsedOrFocusedDate()}if(this._nativeInput&&this._nativeInput.selectionStart){this._nativeInput.selectionStart=this._nativeInput.selectionEnd}if(!this.value&&!this._keyboardActive){this.validate()}}_onScroll(t){if(t.target===window||!this._overlayContent.contains(t.target)){this._overlayContent._repositionYearScroller()}}_focus(){if(!this._noInput){this.inputElement.focus()}}_focusAndSelect(){this._focus();this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){if(this._nativeInput&&this._nativeInput.setSelectionRange){this._nativeInput.setSelectionRange(t,e)}}_onChange(t){t.stopPropagation()}_onClick(t){if(!this._isClearButton(t)){this._onHostClick(t)}}_onHostClick(t){if(!this.autoOpenDisabled||this._noInput){t.preventDefault();this.open()}}_onClearButtonClick(t){t.preventDefault();this._inputElementValue="";this.value="";this.__dispatchChange()}_onKeyDown(t){super._onKeyDown(t);if(this._noInput){const e=[9];if(e.indexOf(t.keyCode)===-1){t.preventDefault()}}switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault();if(this.opened){this._overlayContent.focusDateElement()}else{this._focusOverlayOnOpen=true;this.open()}break;case"Tab":if(this.opened){t.preventDefault();t.stopPropagation();this._setSelectionRange(0,0);if(t.shiftKey){this._overlayContent.focusCancel()}else{this._overlayContent.focusDateElement()}}break}}_onEnter(t){const e=this.value;if(this.opened){this.close()}else{this._selectParsedOrFocusedDate()}if(e===this.value){this.validate()}}_onEscape(t){if(this.opened){return}if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearButtonClick(t);return}if(this.autoOpenDisabled){if(this.inputElement.value===""){this._selectDate(null)}this._applyInputValue(this._selectedDate)}else{this._focusedDate=this._selectedDate;this._selectParsedOrFocusedDate()}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled){this.open()}if(this._inputElementValue){const t=this.__parseDate(this._inputElementValue);if(t){this._ignoreFocusedDateChange=true;if(!On(t,this._focusedDate)){this._focusedDate=t}this._ignoreFocusedDateChange=false}}}__computeMinOrMaxDate(t){return Ln(t)}}
2856
- /**
2857
- * @license
2858
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2859
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2860
- */;const fl=m`
2861
- :host([opened]) {
2862
- pointer-events: auto;
2863
- }
2864
-
2865
- :host([dir='rtl']) [part='input-field'] {
2866
- direction: ltr;
2867
- }
2868
-
2869
- :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
2870
- direction: rtl;
2871
- text-align: left;
2872
- }
2873
- `
2874
- /**
2875
- * @license
2876
- * Copyright (c) 2016 - 2023 Vaadin Ltd.
2877
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2878
- */;_t("vaadin-date-picker",[hl,fl],{moduleId:"vaadin-date-picker-styles"});class pl extends(dl(sl(Mt(br(Ps))))){static get is(){return"vaadin-date-picker"}static get template(){return Ms`
2879
- <div class="vaadin-date-picker-container">
2880
- <div part="label">
2881
- <slot name="label"></slot>
2882
- <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
2883
- </div>
2884
-
2885
- <vaadin-input-container
2886
- part="input-field"
2887
- readonly="[[readonly]]"
2888
- disabled="[[disabled]]"
2889
- invalid="[[invalid]]"
2890
- theme$="[[_theme]]"
2891
- >
2892
- <slot name="prefix" slot="prefix"></slot>
2893
- <slot name="input"></slot>
2894
- <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
2895
- <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
2896
- </vaadin-input-container>
2897
-
2898
- <div part="helper-text">
2899
- <slot name="helper"></slot>
2900
- </div>
2901
-
2902
- <div part="error-message">
2903
- <slot name="error-message"></slot>
2904
- </div>
2905
- </div>
2906
-
2907
- <vaadin-date-picker-overlay
2908
- id="overlay"
2909
- fullscreen$="[[_fullscreen]]"
2910
- theme$="[[_theme]]"
2911
- opened="{{opened}}"
2912
- on-vaadin-overlay-escape-press="_onOverlayEscapePress"
2913
- on-vaadin-overlay-open="_onOverlayOpened"
2914
- on-vaadin-overlay-closing="_onOverlayClosed"
2915
- restore-focus-on-close
2916
- restore-focus-node="[[inputElement]]"
2917
- ></vaadin-date-picker-overlay>
2918
-
2919
- <slot name="tooltip"></slot>
2920
- `}get clearElement(){return this.$.clearButton}ready(){super.ready();this.addController(new rl(this,(t=>{this._setInputElement(t);this._setFocusElement(t);this.stateTarget=t;this.ariaTarget=t})));this.addController(new ol(this.inputElement,this._labelController));this._tooltipController=new Sr(this);this.addController(this._tooltipController);this._tooltipController.setPosition("top");this._tooltipController.setAriaTarget(this.inputElement);this._tooltipController.setShouldShow((t=>!t.opened));const t=this.shadowRoot.querySelector('[part="toggle-button"]');t.addEventListener("mousedown",(t=>t.preventDefault()));this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){if(t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)){t.preventDefault()}}_toggle(t){t.stopPropagation();if(this.$.overlay.opened){this.close()}else{this.open()}}_openedChanged(t){super._openedChanged(t);this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]');this.$.overlay.noVerticalOverlap=true}}a(pl);const ml='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.FilterButtonsWrapper{display:flex;justify-content:flex-end;gap:5px}.FilterButtonsWrapper .FilterOpen{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterOpen:hover{background:#00958f;color:#FFF}.FilterButtonsWrapper .FilterClear{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterClear:hover{background:#00958f;color:#FFF}.FilterModalHeader,.FilterModalBody,.FilterModalFooter{display:flex;flex-direction:column;gap:5px;align-items:center;margin:20px 0}.FilterModalHeader .FilterModalTitle,.FilterModalBody .FilterModalTitle,.FilterModalFooter .FilterModalTitle{margin:0;padding:0;font-weight:700;font-size:16px;color:#009993;text-transform:uppercase}.FilterModalHeader .FilterModalSearch,.FilterModalBody .FilterModalSearch,.FilterModalFooter .FilterModalSearch{border-radius:4px;background:#e8ebef;color:#263445;width:100%;height:26px;max-width:280px;padding:5px;font-size:15px;border:none;outline:#009993}.FilterModalHeader .FilterCalendarWrapper,.FilterModalBody .FilterCalendarWrapper,.FilterModalFooter .FilterCalendarWrapper{display:flex;gap:5px}.FilterModalHeader .FilterCalendarWrapper .VaadinDatePicker,.FilterModalBody .FilterCalendarWrapper .VaadinDatePicker,.FilterModalFooter .FilterCalendarWrapper .VaadinDatePicker{width:50%;max-width:143px}.FilterModalHeader .FilterModalButton,.FilterModalBody .FilterModalButton,.FilterModalFooter .FilterModalButton{cursor:pointer;border-radius:4px;padding:8px 60px;width:max-content;margin:5px;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.FilterModalHeader .FilterModalButton:hover,.FilterModalBody .FilterModalButton:hover,.FilterModalFooter .FilterModalButton:hover{background:#00958f;color:#FFF}.FilterModalHeader p,.FilterModalBody p,.FilterModalFooter p{margin:5px 0}';const vl=class{constructor(i){t(this,i);this.filterDraw=e(this,"filterDraw",7);this.filterSelection=e(this,"filterSelection",7);this.filterSelectionReset=e(this,"filterSelectionReset",7);this.showFilterId=true;this.activateTicketSearch=false;this.gameId="";this.playerId="";this.session="";this.postMessage=false;this.language="en";this.quickFiltersActive=false;this.clientStyling="";this.clientStylingUrlContent="";this.showFilterModal=false;this.showClearButton=false;this.filterData={};this.filterDataReset={ticketDrawId:"",filterFromCalendar:"",filterToCalendar:""};this.limitStylingAppends=false;this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling;this.stylingContainer.prepend(t)};this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent;this.stylingContainer.prepend(t)}),1)}}componentDidRender(){if(document.getElementById("#FilterById"))document.getElementById("#FilterById").value="";if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}filterSelectionHandler(t){if(this.postMessage)window.postMessage({type:"filterSelection",event:t},window.location.href);if(this.filterData.ticketDrawId||this.filterData.filterFromCalendar||this.filterData.filterToCalendar)this.filterSelection.emit(t)}filterSelectionResetHandler(t){if(this.postMessage)window.postMessage({type:"filterSelectionReset",event:t},window.location.href);this.filterSelectionReset.emit(t)}modalCloseEvent(){this.showFilterModal=false}toggleFilterModal(){this.showFilterModal=true}filterSearch(){this.modalCloseEvent();this.showClearButton=true;this.filterSelectionHandler(this.filterData);console.log(this.showClearButton)}resetSearch(){this.showClearButton=false;this.filterSelectionResetHandler(this.filterDataReset);this.filterData={}}handleTicketDrawId(t){this.filterData.ticketDrawId=t.target.value}handleFilterFrom(t){this.filterData.filterFromCalendar=new Date(t.target.value).toISOString()}handleFilterTo(t){this.filterData.filterToCalendar=new Date(t.target.value).toISOString()}render(){return i("div",{class:"HelperFilters",ref:t=>this.stylingContainer=t},i("div",{class:"FilterButtonsWrapper"},i("button",{class:"FilterOpen",onClick:()=>this.toggleFilterModal()},n("filterOpen",this.language)),console.log("in filter Open",this.showClearButton,this.quickFiltersActive),this.showClearButton||this.quickFiltersActive?i("button",{class:"FilterClear",onClick:()=>this.resetSearch()},n("filterClear",this.language)):null),i("helper-modal",{"title-modal":"Filter Modal",visible:this.showFilterModal,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent},i("div",{class:"FilterModalHeader"},i("h3",{class:"FilterModalTitle"},this.activateTicketSearch?n("filterModalTicketTitle",this.language):n("filterModalDrawTitle",this.language))),i("div",{class:"FilterModalBody"},i("input",{id:"FilterById",type:"text",value:this.filterData.ticketDrawId,onInput:t=>this.handleTicketDrawId(t),class:"FilterModalSearch",placeholder:this.activateTicketSearch?n("filterTicketPlaceholder",this.language):n("filterDrawPlaceholder",this.language)}),i("p",null,n("filterOrDate",this.language)),i("div",{class:"FilterCalendarWrapper"},i("vaadin-date-picker",{value:this.filterData.filterFromCalendar,onChange:t=>this.handleFilterFrom(t),placeholder:n("filterFromCalendar",this.language),class:"VaadinDatePicker"}),i("vaadin-date-picker",{value:this.filterData.filterToCalendar,onChange:t=>this.handleFilterTo(t),placeholder:n("filterToCalendar",this.language),class:"VaadinDatePicker"}))),i("div",{class:"FilterModalFooter"},i("button",{class:"FilterModalButton",onClick:()=>this.filterSearch()},n("filterModalButton",this.language)))))}};vl.style=ml;const bl="en";const gl=["ro","en","hr"];const yl={en:{drawResultsHeader:"Last draw results",drawId:"Draw ID",drawName:"Game name",drawDate:"Draw Date",drawNumbersGridDraw:"Draw numbers Grid ",drawNumbersGridTicket:"Draw numbers Grid ",ticketResult:"Ticket result",amountWon:"Amount won",numberOfDraws:"Number of draws",multiplier:"Multiplier:",ticketPurchaseDate:"Ticket Purchase Date",ticketStatus:"Ticket Status",ticketId:"Ticket ID",ticketAmount:"Ticket Amount",winUpTo:"Win up to"},ro:{drawResultsHeader:"Ultimele rezultate extragere",drawId:"Id extragere",drawName:"Numele jocului",drawDate:"Data extragerii",drawNumbersGridDraw:"Numerele extrase Grid",drawNumbersGridTicket:"Numerele extrase Grid",ticketResult:"Rezultatul biletului",amountWon:"Suma castigata",numberOfDraws:"Numarul de extrageri",multiplier:"Multiplicator:",ticketPurchaseDate:"Data achizitionarii biletului",ticketStatus:"Statusul biletului",ticketId:"Id biletul",ticketAmount:"Valoarea biletului",winUpTo:"Poti castiga"},fr:{drawResultsHeader:"Résultats du dernier tirage",drawId:"ID de tirage",drawName:"Nom du jeu",drawDate:"Date du tirage",drawNumbersGridDraw:"Tirage des numéros Grille",drawNumbersGridTicket:"Tirage des numéros Grille",ticketResult:"Résultat du ticket",amountWon:"Montant gagné",numberOfDraws:"Nombre de tirages",multiplier:"Multiplicateur",ticketPurchaseDate:"Date d'achat du billet",ticketStatus:"Statut du ticket",ticketId:"ID de billets",ticketAmount:"Montant du billet",winUpTo:"Gagnez jusqu'à"},ar:{drawResultsHeader:"نتائج آخر سحب",drawId:"معرّف السحب",drawName:"اسم اللعبة",drawDate:"تاريخ السحب",drawNumbersGridDraw:"شبكة أرقام السحب",drawNumbersGridTicket:"شبكة أرقام السحب",ticketResult:"نتيجة التذكرة",amountWon:"المبلغ الذي تم ربحه",numberOfDraws:"عدد السحوبات",multiplier:"مضاعف",ticketPurchaseDate:"تاريخ شراء التذكرة",ticketStatus:"حالة التذكرة",ticketId:"معرّف التذكرة",ticketAmount:"مبلغ التذكرة",winUpTo:"ربح يصل إلى"},hr:{drawResultsHeader:"Rezultati posljednjeg izvlačenja",drawId:"ID izvlačenja",drawName:"Naziv igre",drawDate:"Datum izvlačenja",drawNumbersGridDraw:"Tablica izvučenih brojeva",drawNumbersGridTicket:"Tablica izvučenih brojeva",ticketResult:"Rezultat listića",amountWon:"Osvojeni iznos",numberOfDraws:"Broj izvlačenja",multiplier:"Multiplikator",ticketPurchaseDate:"Datum uplate listića",ticketStatus:"Status listića",ticketId:"ID listića",ticketAmount:"Iznos listića",winUpTo:"Osvoji do"}};const wl=(t,e)=>{const i=e;return yl[i!==undefined&&gl.includes(i)?i:bl][t]};const xl='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.TicketInfo{display:flex;flex-direction:row;gap:15px;background-color:#009993;color:#fff;padding:12px;font-size:14px}.DrawResultsArea{margin-top:15px}.DrawResultsArea.TicketDraws .Content{padding:0;border:0}.DrawResultsArea.TicketDraws .DrawResultsBody{padding:0;margin-bottom:5px;border-radius:0;border:0}.DrawResultsSection{max-width:600px;margin:0px auto;border-radius:4px}.DrawResultsHeader{display:flex;justify-content:space-between;padding:10px 20px;background-color:#009993;color:#fff;font-size:14px;border-radius:4px 4px 0 0}.DrawResultsHeader h4{text-transform:uppercase;font-weight:400;margin:0;padding-top:15px}.DrawResultsBody{padding:20px;margin-bottom:5px;border-radius:0 0 4px 4px;border:1px solid #009993}.DrawResultsBody>div{margin:10px 0}.DrawResultsBody .NumberOfDrawsContainer{display:table;width:100%}.DrawNumbersGrid{display:flex;flex-direction:column;gap:5px}.DrawNumbersGrid label{display:block;margin-bottom:7px}.Toggle{cursor:pointer;display:inline-block}.ToggleSwitch{display:inline-block;background:#ccc;border-radius:16px;width:58px;height:24px;position:relative;vertical-align:middle;transition:background 0.25s}.ToggleSwitch:before,.ToggleSwitch:after{content:""}.ToggleSwitch:before{display:block;background:linear-gradient(to bottom, #fff 0%, #eee 100%);border-radius:50%;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.25);width:16px;height:16px;position:absolute;top:4px;left:4px;transition:left 0.25s}.Toggle:hover .ToggleSwitch:before{background:linear-gradient(to bottom, #fff 0%, #fff 100%);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.5)}.ToggleCheckbox:checked+.ToggleSwitch{background:#56c080}.ToggleCheckbox:checked+.ToggleSwitch:before{left:38px}.ToggleCheckbox{position:absolute;visibility:hidden}.Label{position:relative}.DrawTicketsContainer{display:flex;flex-direction:column;margin:20px auto 0}.DrawMultipler{margin-top:15px}.ExpandableBoxes{position:relative;display:flex;flex-direction:column;border:1px solid #ccc;border-radius:5px;background-color:white}.ExpandableBox{border-bottom:1px solid #ccc;transition:height 300ms ease-in-out;overflow:hidden;height:80px}.ExpandableBox:last-child{border-bottom:0}.ExpandableBoxHeader{position:relative;list-style:none;outline:0;cursor:pointer;text-transform:uppercase;transition:color 300ms ease-in-out;margin-bottom:24px;margin-left:5px}.ShowBox>.ExpandableBoxHeader{color:#009993}.ExpandableBoxHeader::-webkit-details-marker{display:none}.ExpandableBoxHeader:before,.ExpandableBoxHeader:after{content:"";position:absolute}.ExpandableBoxHeader:before{right:21px;top:50%;height:2px;margin-top:-1px;width:16px;background:#009993}.ExpandableBoxHeader:after{right:28px;top:50%;height:16px;margin-top:-8px;width:2px;margin-left:-1px;background:#009993;transition:all 300ms ease-in-out}.ShowBox .ExpandableBoxHeader:after{opacity:0;transform:translateY(25%)}.ExpandableBoxBody{padding-top:0;font-weight:lighter;margin-left:5px}.ExpandableBox.ShowBox{height:300px}';const _l=class{constructor(e){t(this,e);this.language="en";this.drawMode=false;this.drawId="";this.gameName="";this.ticketDate="";this.ticketStatus="";this.ticketId="";this.ticketAmount="";this.ticketMultiplier=false;this.ticketDrawCount=0;this.ticketNumbers="";this.sessionId="";this.clientStyling="";this.clientStylingUrlContent="";this.ticketDrawData="";this.multiplier=3;this.isLoading=true;this.hasErrors=false;this.errorText="";this.ticketData=[];this.ticketDataLoaded=false;this.ticketDraws=[];this.toggleDrawer=[false];this.limitStylingAppends=false;this.ticketDrawDetails=[];this.ticketDrawDetailsFlag=true;this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling;this.stylingContainer.prepend(t)};this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent;this.stylingContainer.prepend(t)}),1)}}connectedCallback(){let t=[];if(this.ticketNumbers){this.gridNumbers=JSON.parse(this.ticketNumbers)}if(this.drawId){t.push(this.getDrawData())}Promise.all(t).then((()=>{this.isLoading=false})).catch((t=>{console.log("error ",t);this.isLoading=false}))}componentWillRender(){if(this.ticketDrawData&&this.ticketDrawDetailsFlag){this.ticketDrawDetails=JSON.parse(this.ticketDrawData);this.ticketDrawDetails.forEach((t=>{this.getDrawData(t.drawId).then((e=>t.drawData=e))}));this.ticketDrawDetailsFlag=false}}componentDidRender(){if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}getDrawData(t){this.isLoading=true;return new Promise(((e,i)=>{let s=new URL(`${this.endpoint}/games/${this.gameId}/draws/${t?t:this.drawId}`);fetch(s.href).then((t=>t.json())).then((i=>{if(t){e(i)}else{this.drawData=i;e(true)}this.isLoading=false})).catch((t=>{i(t);this.isLoading=false}))}))}drawerToggle(t){this.toggleDrawer=this.toggleDrawer.map(((e,i)=>{if(i==t){return!e}return e}));if(t>=this.toggleDrawer.length){this.toggleDrawer.push(true)}}render(){if(this.isLoading){return i("p",null,"Loading, please wait ...")}else if(this.hasErrors){i("p",null,this.errorText)}else{return i("section",{class:"DrawResultsSection",ref:t=>this.stylingContainer=t},this.drawMode?i("div",{class:"DrawResultsArea"},this.drawData&&i("div",null,i("div",{class:"DrawResultsHeader"},i("span",null,wl("drawId",this.language),": ",this.drawData.id),i("span",null,wl("drawDate",this.language),": ",this.drawData.date.slice(0,10))),i("div",{class:"DrawResultsBody"},i("div",{class:"DrawNumbersGrid"},i("p",null,wl("drawNumbersGridDraw",this.language),"0:"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":this.drawData.winningNumbers.join(","),"display-selected":true,selectable:false,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},wl("multiplier",this.language)," ",this.multiplier)))))):i("div",{class:"DrawResultsArea TicketDraws"},i("div",{class:"DrawResultsBody"},i("div",{class:"TicketIdContainer"},i("label",{class:"Label"},wl("ticketId",this.language),": ",i("span",null,this.ticketId))),i("div",{class:"TicketAmountContainer"},i("label",{class:"Label"},wl("ticketAmount",this.language)," ",i("span",null,this.ticketAmount))),i("div",{class:"DrawNumbersGrid"},this.gridNumbers.map(((t,e)=>i("div",null,i("label",{class:"Label"},wl("drawNumbersGridTicket",this.language)," ",String.fromCharCode(e+65),":"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":t.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},wl("multiplier",this.language)," ",JSON.stringify(this.ticketMultiplier))),i("div",{class:"NumberOfDrawsContainer"},i("label",{class:"Label"},wl("numberOfDraws",this.language),": ",this.ticketDrawCount),i("div",{class:"DrawTicketsContainer"},this.ticketDrawDetails&&this.ticketDrawDetails.length>0&&i("div",{class:"ExpandableBoxes"},this.ticketDrawDetails.map(((t,e)=>{var s,r,o,n,a;return i("div",{class:{ExpandableBox:true,ShowBox:this.toggleDrawer[e]},onClick:()=>this.drawerToggle(e)},i("div",{class:"ExpandableBoxHeader"},i("div",{class:"TicketResultContainer"},i("p",null,wl("ticketResult",this.language),": ",t.state)),t.state=="won"&&i("div",{class:"AmountWonContainer"},i("p",null,wl("amountWon",this.language),": ",Number(t.amount).toLocaleString("en")," ",t.currency)),t.state=="lost"&&i("div",{class:"DrawIdContainer"},i("p",null,wl("drawId",this.language),": ",t.drawId))),i("div",{class:"ExpandableBoxBody"},i("div",{class:"DrawIdContainer"},i("p",null,wl("drawId",this.language),": ",t.drawId)),i("div",{class:"DrawDateContainer"},i("p",null,wl("drawDate",this.language),": ",(s=t.drawData)===null||s===void 0?void 0:s.date.slice(0,10)," | ",(r=t.drawData)===null||r===void 0?void 0:r.date.slice(11,19))),i("div",{class:"DrawNumbersGrid"},t.drawData&&i("div",{class:"BulletContainer"},i("label",{class:"Label"},wl("drawNumbersGridDraw",this.language)," ",String.fromCharCode(e+10),":"),i("lottery-grid",{"selected-numbers":(n=(o=t.drawData)===null||o===void 0?void 0:o.winningNumbers)===null||n===void 0?void 0:n.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent}))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},wl("multiplier",this.language)," ",(a=t.drawData)===null||a===void 0?void 0:a.multiplier))))}))))))))}}};_l.style=xl;export{vl as helper_filters,_l as lottery_draw_results};
2921
- //# sourceMappingURL=p-12340c50.entry.js.map