@trendyol/baklava 2.3.0-beta.3 → 2.3.0-beta.4

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 (95) hide show
  1. package/dist/baklava.js +1 -1
  2. package/dist/chunk-3USCFSFQ.js +11 -0
  3. package/dist/{chunk-YHVEXQMU.js → chunk-4CK6AU4F.js} +2 -2
  4. package/dist/{chunk-YHVEXQMU.js.map → chunk-4CK6AU4F.js.map} +1 -1
  5. package/dist/chunk-4OT5AMS5.js +41 -0
  6. package/dist/chunk-4OT5AMS5.js.map +7 -0
  7. package/dist/{chunk-MWO4QS7M.js → chunk-5F2BYHAE.js} +2 -2
  8. package/dist/{chunk-MWO4QS7M.js.map → chunk-5F2BYHAE.js.map} +1 -1
  9. package/dist/{chunk-HATECMR4.js → chunk-5HXMVHTD.js} +2 -2
  10. package/dist/{chunk-HATECMR4.js.map → chunk-5HXMVHTD.js.map} +1 -1
  11. package/dist/chunk-6LT7O7T2.js +11 -0
  12. package/dist/{chunk-RLMJN536.js → chunk-7GK5LKBV.js} +1 -1
  13. package/dist/chunk-7GK5LKBV.js.map +7 -0
  14. package/dist/{chunk-X6XFYGPL.js → chunk-7GRSN46E.js} +2 -2
  15. package/dist/{chunk-X6XFYGPL.js.map → chunk-7GRSN46E.js.map} +1 -1
  16. package/dist/{chunk-L2JS4UTL.js → chunk-7RZ45QDQ.js} +2 -2
  17. package/dist/{chunk-L2JS4UTL.js.map → chunk-7RZ45QDQ.js.map} +1 -1
  18. package/dist/{chunk-7KNLLH7B.js → chunk-D6Z66X5E.js} +2 -2
  19. package/dist/{chunk-7KNLLH7B.js.map → chunk-D6Z66X5E.js.map} +1 -1
  20. package/dist/{chunk-3WPZVKAO.js → chunk-DINNT5P2.js} +2 -2
  21. package/dist/{chunk-JZ7OJKA5.js → chunk-DOUEBILK.js} +2 -2
  22. package/dist/{chunk-JZ7OJKA5.js.map → chunk-DOUEBILK.js.map} +1 -1
  23. package/dist/chunk-FAMBVSX3.js +37 -0
  24. package/dist/chunk-FAMBVSX3.js.map +7 -0
  25. package/dist/{chunk-7TAG5ZC5.js → chunk-FJQ4VEP3.js} +2 -2
  26. package/dist/{chunk-7TAG5ZC5.js.map → chunk-FJQ4VEP3.js.map} +1 -1
  27. package/dist/{chunk-AV24QIPP.js → chunk-GN4VGM3Z.js} +2 -2
  28. package/dist/{chunk-AV24QIPP.js.map → chunk-GN4VGM3Z.js.map} +1 -1
  29. package/dist/{chunk-FGTSZ4TU.js → chunk-GTCISDFK.js} +2 -2
  30. package/dist/{chunk-FGTSZ4TU.js.map → chunk-GTCISDFK.js.map} +1 -1
  31. package/dist/{chunk-ENBSRLEQ.js → chunk-GYWKNHAH.js} +2 -2
  32. package/dist/{chunk-ENBSRLEQ.js.map → chunk-GYWKNHAH.js.map} +1 -1
  33. package/dist/{chunk-3ZBFORM2.js → chunk-M4N2NT5C.js} +2 -2
  34. package/dist/{chunk-3ZBFORM2.js.map → chunk-M4N2NT5C.js.map} +1 -1
  35. package/dist/{chunk-J7OMLKGK.js → chunk-NLW5BBOM.js} +3 -3
  36. package/dist/{chunk-J7OMLKGK.js.map → chunk-NLW5BBOM.js.map} +3 -3
  37. package/dist/{chunk-4REWNQVS.js → chunk-O6LROX66.js} +2 -2
  38. package/dist/{chunk-4REWNQVS.js.map → chunk-O6LROX66.js.map} +1 -1
  39. package/dist/{chunk-IKW4G25V.js → chunk-R5GCM62W.js} +2 -2
  40. package/dist/{chunk-IKW4G25V.js.map → chunk-R5GCM62W.js.map} +1 -1
  41. package/dist/{chunk-DELQ7RQJ.js → chunk-RD3RUK2N.js} +2 -2
  42. package/dist/{chunk-DELQ7RQJ.js.map → chunk-RD3RUK2N.js.map} +1 -1
  43. package/dist/{chunk-22WZGKT6.js → chunk-RMYPWPMS.js} +2 -2
  44. package/dist/{chunk-22WZGKT6.js.map → chunk-RMYPWPMS.js.map} +1 -1
  45. package/dist/{chunk-DPAFAORF.js → chunk-SX5PCXCH.js} +2 -2
  46. package/dist/{chunk-DPAFAORF.js.map → chunk-SX5PCXCH.js.map} +1 -1
  47. package/dist/{chunk-KVGYXTYU.js → chunk-UAHVQMUP.js} +2 -2
  48. package/dist/{chunk-KVGYXTYU.js.map → chunk-UAHVQMUP.js.map} +1 -1
  49. package/dist/{chunk-YZFWAQLT.js → chunk-UH64GZL3.js} +2 -2
  50. package/dist/{chunk-YZFWAQLT.js.map → chunk-UH64GZL3.js.map} +1 -1
  51. package/dist/{chunk-LMXC653H.js → chunk-VGRVU3IL.js} +2 -2
  52. package/dist/{chunk-LMXC653H.js.map → chunk-VGRVU3IL.js.map} +1 -1
  53. package/dist/chunk-YOV2DMM7.js +18 -0
  54. package/dist/chunk-YOV2DMM7.js.map +7 -0
  55. package/dist/components/alert/bl-alert.js +1 -1
  56. package/dist/components/badge/bl-badge.js +1 -1
  57. package/dist/components/button/bl-button.js +1 -1
  58. package/dist/components/checkbox-group/bl-checkbox-group.js +1 -1
  59. package/dist/components/checkbox-group/checkbox/bl-checkbox.js +1 -1
  60. package/dist/components/dialog/bl-dialog.js +1 -1
  61. package/dist/components/dialog/bl-dialog.stories.js +1 -1
  62. package/dist/components/dialog/bl-dialog.stories.js.map +1 -1
  63. package/dist/components/drawer/bl-drawer.js +1 -1
  64. package/dist/components/dropdown/bl-dropdown.js +1 -1
  65. package/dist/components/dropdown/group/bl-dropdown-group.js +1 -1
  66. package/dist/components/dropdown/item/bl-dropdown-item.js +1 -1
  67. package/dist/components/icon/bl-icon.js +1 -1
  68. package/dist/components/input/bl-input.js +1 -1
  69. package/dist/components/pagination/bl-pagination.js +1 -1
  70. package/dist/components/popover/bl-popover.d.ts.map +1 -1
  71. package/dist/components/popover/bl-popover.js +1 -1
  72. package/dist/components/progress-indicator/bl-progress-indicator.js +1 -1
  73. package/dist/components/radio-group/bl-radio-group.js +1 -1
  74. package/dist/components/radio-group/radio/bl-radio.js +1 -1
  75. package/dist/components/select/bl-select.js +1 -1
  76. package/dist/components/select/option/bl-select-option.js +1 -1
  77. package/dist/components/switch/bl-switch.js +1 -1
  78. package/dist/components/tab-group/bl-tab-group.js +1 -1
  79. package/dist/components/tab-group/tab/bl-tab.js +1 -1
  80. package/dist/components/tab-group/tab-panel/bl-tab-panel.js +1 -1
  81. package/dist/components/textarea/bl-textarea.js +1 -1
  82. package/dist/components/tooltip/bl-tooltip.js +1 -1
  83. package/package.json +3 -3
  84. package/dist/chunk-6URM6L6I.js +0 -37
  85. package/dist/chunk-6URM6L6I.js.map +0 -7
  86. package/dist/chunk-A42CHPBQ.js +0 -11
  87. package/dist/chunk-A7DGJXEE.js +0 -18
  88. package/dist/chunk-A7DGJXEE.js.map +0 -7
  89. package/dist/chunk-EUBAYBYO.js +0 -43
  90. package/dist/chunk-EUBAYBYO.js.map +0 -7
  91. package/dist/chunk-FPMKZ54Q.js +0 -11
  92. package/dist/chunk-RLMJN536.js.map +0 -7
  93. /package/dist/{chunk-A42CHPBQ.js.map → chunk-3USCFSFQ.js.map} +0 -0
  94. /package/dist/{chunk-FPMKZ54Q.js.map → chunk-6LT7O7T2.js.map} +0 -0
  95. /package/dist/{chunk-3WPZVKAO.js.map → chunk-DINNT5P2.js.map} +0 -0
package/dist/baklava.js CHANGED
@@ -1,2 +1,2 @@
1
- import{c,f as i}from"./chunk-4REWNQVS.js";import{b as S}from"./chunk-JZ7OJKA5.js";import{a as b}from"./chunk-DELQ7RQJ.js";import{a as I}from"./chunk-MWO4QS7M.js";import{a as P}from"./chunk-ENBSRLEQ.js";import{a as g}from"./chunk-6URM6L6I.js";import{a as w}from"./chunk-LMXC653H.js";import{a as u}from"./chunk-YHVEXQMU.js";import{b as T,d as G}from"./chunk-7KNLLH7B.js";import{b as D}from"./chunk-HATECMR4.js";import{a as B}from"./chunk-YZFWAQLT.js";import{a as m}from"./chunk-AV24QIPP.js";import{a as s}from"./chunk-DPAFAORF.js";import{a as x}from"./chunk-X6XFYGPL.js";import"./chunk-OSNB4BPE.js";import"./chunk-3B64VOWB.js";import{a as h}from"./chunk-J7OMLKGK.js";import"./chunk-ANYJUR6Q.js";import{a as n}from"./chunk-22WZGKT6.js";import{a as r}from"./chunk-7TAG5ZC5.js";import{a}from"./chunk-L2JS4UTL.js";import{b as f,e as p}from"./chunk-FGTSZ4TU.js";import"./chunk-A7DGJXEE.js";import"./chunk-DJOD4BTL.js";import{a as d}from"./chunk-3ZBFORM2.js";import{b as l}from"./chunk-IKW4G25V.js";import"./chunk-FPMKZ54Q.js";import{a as o,b as e,c as t}from"./chunk-KVGYXTYU.js";import"./chunk-GRL4DWKG.js";import"./chunk-IRDH7CN2.js";import"./chunk-3WPZVKAO.js";import"./chunk-A42CHPBQ.js";import"./chunk-RLMJN536.js";import"./chunk-EUBAYBYO.js";import"./chunk-VO7C5OZC.js";export{r as BlAlert,a as BlBadge,l as BlButton,f as BlCheckbox,p as BlCheckboxGroup,d as BlDialog,u as BlDrawer,G as BlDropdown,D as BlDropdownGroup,T as BlDropdownItem,t as BlIcon,x as BlInput,B as BlPagination,h as BlPopover,n as BlProgressIndicator,c as BlRadio,i as BlRadioGroup,m as BlSelect,s as BlSelectOption,S as BlSwitch,I as BlTab,b as BlTabGroup,P as BlTabPanel,g as BlTextarea,w as BlTooltip,e as getIconPath,o as setIconPath};
1
+ import{c,f as i}from"./chunk-O6LROX66.js";import{b as S}from"./chunk-DOUEBILK.js";import{a as b}from"./chunk-RD3RUK2N.js";import{a as I}from"./chunk-5F2BYHAE.js";import{a as P}from"./chunk-GYWKNHAH.js";import{a as g}from"./chunk-FAMBVSX3.js";import{a as w}from"./chunk-VGRVU3IL.js";import{a as u}from"./chunk-4CK6AU4F.js";import{b as T,d as G}from"./chunk-D6Z66X5E.js";import{b as D}from"./chunk-5HXMVHTD.js";import{a as B}from"./chunk-UH64GZL3.js";import{a as m}from"./chunk-GN4VGM3Z.js";import{a as s}from"./chunk-SX5PCXCH.js";import{a as x}from"./chunk-7GRSN46E.js";import"./chunk-OSNB4BPE.js";import"./chunk-3B64VOWB.js";import{a as h}from"./chunk-NLW5BBOM.js";import"./chunk-ANYJUR6Q.js";import{a as n}from"./chunk-RMYPWPMS.js";import{a as r}from"./chunk-FJQ4VEP3.js";import{a}from"./chunk-7RZ45QDQ.js";import{b as f,e as p}from"./chunk-GTCISDFK.js";import"./chunk-YOV2DMM7.js";import"./chunk-DJOD4BTL.js";import{a as d}from"./chunk-M4N2NT5C.js";import{b as l}from"./chunk-R5GCM62W.js";import"./chunk-6LT7O7T2.js";import{a as o,b as e,c as t}from"./chunk-UAHVQMUP.js";import"./chunk-GRL4DWKG.js";import"./chunk-IRDH7CN2.js";import"./chunk-DINNT5P2.js";import"./chunk-3USCFSFQ.js";import"./chunk-7GK5LKBV.js";import"./chunk-4OT5AMS5.js";import"./chunk-VO7C5OZC.js";export{r as BlAlert,a as BlBadge,l as BlButton,f as BlCheckbox,p as BlCheckboxGroup,d as BlDialog,u as BlDrawer,G as BlDropdown,D as BlDropdownGroup,T as BlDropdownItem,t as BlIcon,x as BlInput,B as BlPagination,h as BlPopover,n as BlProgressIndicator,c as BlRadio,i as BlRadioGroup,m as BlSelect,s as BlSelectOption,S as BlSwitch,I as BlTab,b as BlTabGroup,P as BlTabPanel,g as BlTextarea,w as BlTooltip,e as getIconPath,o as setIconPath};
2
2
  //# sourceMappingURL=baklava.js.map
@@ -0,0 +1,11 @@
1
+ import{a as n,b as o,c as a}from"./chunk-7GK5LKBV.js";import{c as r,d as i}from"./chunk-4OT5AMS5.js";var e=class extends a{constructor(t){if(super(t),this.et=i,t.type!==n.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===i||t==null)return this.ft=void 0,this.et=t;if(t===r)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;let s=[t];return s.raw=s,this.ft={_$litType$:this.constructor.resultType,strings:s,values:[]}}};e.directiveName="unsafeHTML",e.resultType=1;var f=o(e);export{e as a,f as b};
2
+ /*! Bundled license information:
3
+
4
+ lit-html/directives/unsafe-html.js:
5
+ (**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ *)
10
+ */
11
+ //# sourceMappingURL=chunk-3USCFSFQ.js.map
@@ -1,4 +1,4 @@
1
- import{a}from"./chunk-GRL4DWKG.js";import{a as l,b as n,c as d}from"./chunk-IRDH7CN2.js";import{a as o,b as i,f as s}from"./chunk-EUBAYBYO.js";import{c as t}from"./chunk-VO7C5OZC.js";var h=o`.drawer{box-sizing:border-box;position:fixed;display:flex;top:0;right:-100%;bottom:0;width:424px;padding:var(--bl-size-xl);padding-top:max(env(safe-area-inset-top), var(--bl-size-xl));padding-right:max(env(safe-area-inset-right), var(--bl-size-xl));padding-bottom:max(env(safe-area-inset-bottom), var(--bl-size-xl));background:var(--bl-color-neutral-full);box-shadow:var(--bl-size-xs) 0 var(--bl-size-2xl) rgba(0 0 0 / 50%);transition:right var(--bl-drawer-animation-duration, 0.25s);z-index:var(--bl-index-sticky)}:host([open]) .drawer{right:0}iframe{height:100%;width:100%;border:none}.container{display:flex;flex-direction:column;gap:var(--bl-size-xl);flex:1;width:100%}header{display:flex;justify-content:space-between;align-items:baseline;gap:var(--bl-size-2xs);background-color:white}header .header-buttons{display:flex;gap:var(--bl-size-xl);margin-left:auto}header h2{font:var(--bl-font-title-1-medium);color:var(--bl-color-neutral-darker);overflow:hidden;margin:0;padding:0}.content{flex:1;overflow-y:scroll}.iframe-content{flex:1}@media only screen and (max-width: 424px){:host([open]) .drawer{width:calc(100vw - 24px)}}`,c=h;var e=class extends s{constructor(){super(...arguments);this.open=!1;this.domExistence=!1}static get styles(){return[c]}connectedCallback(){super.connectedCallback(),window==null||window.addEventListener("bl-drawer-open",r=>{r.target!==this&&this.closeDrawer()})}updated(r){r.has("open")&&this.toggleDialogHandler()}toggleDialogHandler(){this.open?(this.domExistenceSchedule&&clearTimeout(this.domExistenceSchedule),this.domExistence=!0,this.onOpen("")):(this.domExistenceSchedule=window.setTimeout(()=>{this.domExistence=!1},1e3),this.onClose(""))}closeDrawer(){this.open=!1}renderContent(){let r=this.embedUrl?i`<iframe src=${this.embedUrl}></iframe>`:i`<slot></slot>`;return i`<section class=${this.embedUrl?"iframe-content":"content"}>
1
+ import{a}from"./chunk-GRL4DWKG.js";import{a as l,b as n,c as d}from"./chunk-IRDH7CN2.js";import{a as o,b as i,f as s}from"./chunk-4OT5AMS5.js";import{c as t}from"./chunk-VO7C5OZC.js";var h=o`.drawer{box-sizing:border-box;position:fixed;display:flex;top:0;right:-100%;bottom:0;width:424px;padding:var(--bl-size-xl);padding-top:max(env(safe-area-inset-top), var(--bl-size-xl));padding-right:max(env(safe-area-inset-right), var(--bl-size-xl));padding-bottom:max(env(safe-area-inset-bottom), var(--bl-size-xl));background:var(--bl-color-neutral-full);box-shadow:var(--bl-size-xs) 0 var(--bl-size-2xl) rgba(0 0 0 / 50%);transition:right var(--bl-drawer-animation-duration, 0.25s);z-index:var(--bl-index-sticky)}:host([open]) .drawer{right:0}iframe{height:100%;width:100%;border:none}.container{display:flex;flex-direction:column;gap:var(--bl-size-xl);flex:1;width:100%}header{display:flex;justify-content:space-between;align-items:baseline;gap:var(--bl-size-2xs);background-color:white}header .header-buttons{display:flex;gap:var(--bl-size-xl);margin-left:auto}header h2{font:var(--bl-font-title-1-medium);color:var(--bl-color-neutral-darker);overflow:hidden;margin:0;padding:0}.content{flex:1;overflow-y:scroll}.iframe-content{flex:1}@media only screen and (max-width: 424px){:host([open]) .drawer{width:calc(100vw - 24px)}}`,c=h;var e=class extends s{constructor(){super(...arguments);this.open=!1;this.domExistence=!1}static get styles(){return[c]}connectedCallback(){super.connectedCallback(),window==null||window.addEventListener("bl-drawer-open",r=>{r.target!==this&&this.closeDrawer()})}updated(r){r.has("open")&&this.toggleDialogHandler()}toggleDialogHandler(){this.open?(this.domExistenceSchedule&&clearTimeout(this.domExistenceSchedule),this.domExistence=!0,this.onOpen("")):(this.domExistenceSchedule=window.setTimeout(()=>{this.domExistence=!1},1e3),this.onClose(""))}closeDrawer(){this.open=!1}renderContent(){let r=this.embedUrl?i`<iframe src=${this.embedUrl}></iframe>`:i`<slot></slot>`;return i`<section class=${this.embedUrl?"iframe-content":"content"}>
2
2
  ${r}
3
3
  </section>`}renderContainer(){let r=this.caption?i`<h2 id="drawer-caption">${this.caption}</h2>`:"",p=this.externalLink?i`<bl-button
4
4
  icon="external_link"
@@ -23,4 +23,4 @@ import{a}from"./chunk-GRL4DWKG.js";import{a as l,b as n,c as d}from"./chunk-IRDH
23
23
  </header>
24
24
  ${this.renderContent()}
25
25
  </div>`}render(){return this.domExistence?i`<div class="drawer">${this.renderContainer()}</div>`:i``}};t([n({type:Boolean,reflect:!0})],e.prototype,"open",2),t([n({type:String})],e.prototype,"caption",2),t([n({type:String,attribute:"embed-url"})],e.prototype,"embedUrl",2),t([n({type:String,attribute:"external-link"})],e.prototype,"externalLink",2),t([a("bl-drawer-open")],e.prototype,"onOpen",2),t([a("bl-drawer-close")],e.prototype,"onClose",2),t([d()],e.prototype,"domExistence",2),e=t([l("bl-drawer")],e);export{e as a};
26
- //# sourceMappingURL=chunk-YHVEXQMU.js.map
26
+ //# sourceMappingURL=chunk-4CK6AU4F.js.map
@@ -3,5 +3,5 @@
3
3
  "sources": ["../src/components/drawer/bl-drawer.css", "../src/components/drawer/bl-drawer.ts"],
4
4
  "sourcesContent": ["import {css} from 'lit';\nexport const styles = css`.drawer{box-sizing:border-box;position:fixed;display:flex;top:0;right:-100%;bottom:0;width:424px;padding:var(--bl-size-xl);padding-top:max(env(safe-area-inset-top), var(--bl-size-xl));padding-right:max(env(safe-area-inset-right), var(--bl-size-xl));padding-bottom:max(env(safe-area-inset-bottom), var(--bl-size-xl));background:var(--bl-color-neutral-full);box-shadow:var(--bl-size-xs) 0 var(--bl-size-2xl) rgba(0 0 0 / 50%);transition:right var(--bl-drawer-animation-duration, 0.25s);z-index:var(--bl-index-sticky)}:host([open]) .drawer{right:0}iframe{height:100%;width:100%;border:none}.container{display:flex;flex-direction:column;gap:var(--bl-size-xl);flex:1;width:100%}header{display:flex;justify-content:space-between;align-items:baseline;gap:var(--bl-size-2xs);background-color:white}header .header-buttons{display:flex;gap:var(--bl-size-xl);margin-left:auto}header h2{font:var(--bl-font-title-1-medium);color:var(--bl-color-neutral-darker);overflow:hidden;margin:0;padding:0}.content{flex:1;overflow-y:scroll}.iframe-content{flex:1}@media only screen and (max-width: 424px){:host([open]) .drawer{width:calc(100vw - 24px)}}`;\nexport default styles;\n", "import { CSSResultGroup, html, LitElement, TemplateResult } from \"lit\";\nimport { PropertyValues } from \"lit\";\nimport { customElement, property, state } from \"lit/decorators.js\";\nimport { event, EventDispatcher } from \"../../utilities/event\";\nimport \"../button/bl-button\";\nimport style from \"./bl-drawer.css\";\n\n/**\n * @tag bl-drawer\n * @summary Baklava Drawer component\n *\n * @cssproperty [--bl-drawer-animation-duration=250ms] Drawer slide in animation duration\n */\n\n@customElement(\"bl-drawer\")\nexport default class BlDrawer extends LitElement {\n static get styles(): CSSResultGroup {\n return [style];\n }\n\n /**\n * Sets drawer open-close status\n */\n @property({ type: Boolean, reflect: true })\n open = false;\n\n /**\n * Sets the drawer title\n */\n @property({ type: String })\n caption?: string;\n\n /**\n * Sets the drawer embed url for iframe\n */\n @property({ type: String, attribute: \"embed-url\" })\n embedUrl?: string;\n\n /**\n * Sets the drawer external link\n */\n @property({ type: String, attribute: \"external-link\" })\n externalLink?: string;\n\n /**\n * Fires when the drawer is opened\n */\n @event(\"bl-drawer-open\") private onOpen: EventDispatcher<string>;\n\n /**\n * Fires when the drawer is closed\n */\n @event(\"bl-drawer-close\") private onClose: EventDispatcher<string>;\n\n connectedCallback() {\n super.connectedCallback();\n window?.addEventListener(\"bl-drawer-open\", event => {\n if (event.target !== this) this.closeDrawer();\n });\n }\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has(\"open\")) {\n this.toggleDialogHandler();\n }\n }\n\n private domExistenceSchedule: number;\n\n private toggleDialogHandler() {\n if (this.open) {\n if (this.domExistenceSchedule) {\n clearTimeout(this.domExistenceSchedule);\n }\n\n this.domExistence = true;\n // FIXME: Allow events without payload\n this.onOpen(\"\");\n } else {\n // Give some time for exit animation\n this.domExistenceSchedule = window.setTimeout(() => {\n this.domExistence = false;\n }, 1000);\n\n // FIXME: Allow events without payload\n this.onClose(\"\");\n }\n }\n\n @state() private domExistence = false;\n\n private closeDrawer() {\n this.open = false;\n }\n\n private renderContent() {\n const content = this.embedUrl\n ? html`<iframe src=${this.embedUrl}></iframe>`\n : html`<slot></slot>`;\n\n return html`<section class=${this.embedUrl ? \"iframe-content\" : \"content\"}>\n ${content}\n </section>`;\n }\n\n private renderContainer() {\n const title = this.caption ? html`<h2 id=\"drawer-caption\">${this.caption}</h2>` : \"\";\n const external_button = this.externalLink\n ? html`<bl-button\n icon=\"external_link\"\n variant=\"tertiary\"\n kind=\"neutral\"\n size=\"small\"\n href=\"${this.externalLink}\"\n target=\"_blank\"\n ></bl-button>`\n : \"\";\n\n return html`<div class=\"container\">\n <header>\n ${title}\n <div class=\"header-buttons\">\n ${external_button}\n <bl-button\n @click=\"${this.closeDrawer}\"\n icon=\"close\"\n size=\"small\"\n variant=\"tertiary\"\n kind=\"neutral\"\n ></bl-button>\n </div>\n </header>\n ${this.renderContent()}\n </div>`;\n }\n\n render(): TemplateResult {\n if (this.domExistence) {\n return html`<div class=\"drawer\">${this.renderContainer()}</div>`;\n } else {\n return html``;\n }\n }\n}\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bl-drawer\": BlDrawer;\n }\n}\n"],
5
5
  "mappings": "uLACO,IAAMA,EAASC,6mCACfC,EAAQF,ECaf,IAAqBG,EAArB,cAAsC,CAAW,CAAjD,kCASE,UAAO,GAiEE,KAAQ,aAAe,GAzEhC,WAAW,QAAyB,CAClC,MAAO,CAACC,CAAK,CACf,CAoCA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,qBAAQ,iBAAiB,iBAAkBC,GAAS,CAC9CA,EAAM,SAAW,MAAM,KAAK,YAAY,CAC9C,EACF,CAEA,QAAQC,EAAyC,CAC3CA,EAAkB,IAAI,MAAM,GAC9B,KAAK,oBAAoB,CAE7B,CAIQ,qBAAsB,CACxB,KAAK,MACH,KAAK,sBACP,aAAa,KAAK,oBAAoB,EAGxC,KAAK,aAAe,GAEpB,KAAK,OAAO,EAAE,IAGd,KAAK,qBAAuB,OAAO,WAAW,IAAM,CAClD,KAAK,aAAe,EACtB,EAAG,GAAI,EAGP,KAAK,QAAQ,EAAE,EAEnB,CAIQ,aAAc,CACpB,KAAK,KAAO,EACd,CAEQ,eAAgB,CACtB,IAAMC,EAAU,KAAK,SACjBC,gBAAmB,KAAK,qBACxBA,iBAEJ,OAAOA,mBAAsB,KAAK,SAAW,iBAAmB;AAAA,QAC5DD;AAAA,eAEN,CAEQ,iBAAkB,CACxB,IAAME,EAAQ,KAAK,QAAUD,4BAA+B,KAAK,eAAiB,GAC5EE,EAAkB,KAAK,aACzBF;AAAA;AAAA;AAAA;AAAA;AAAA,kBAKU,KAAK;AAAA;AAAA,uBAGf,GAEJ,OAAOA;AAAA;AAAA,UAEDC;AAAA;AAAA,YAEEC;AAAA;AAAA,sBAEU,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAQnB,KAAK,cAAc;AAAA,WAEzB,CAEA,QAAyB,CACvB,OAAI,KAAK,aACAF,wBAA2B,KAAK,gBAAgB,UAEhDA,GAEX,CACF,EAvHEG,EAAA,CADCC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GARvBT,EASnB,oBAMAQ,EAAA,CADCC,EAAS,CAAE,KAAM,MAAO,CAAC,GAdPT,EAenB,uBAMAQ,EAAA,CADCC,EAAS,CAAE,KAAM,OAAQ,UAAW,WAAY,CAAC,GApB/BT,EAqBnB,wBAMAQ,EAAA,CADCC,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,GA1BnCT,EA2BnB,4BAKiCQ,EAAA,CAAhCN,EAAM,gBAAgB,GAhCJF,EAgCc,sBAKCQ,EAAA,CAAjCN,EAAM,iBAAiB,GArCLF,EAqCe,uBAqCjBQ,EAAA,CAAhBE,EAAM,GA1EYV,EA0EF,4BA1EEA,EAArBQ,EAAA,CADCC,EAAc,WAAW,GACLT",
6
- "names": ["styles", "i", "bl_drawer_default", "BlDrawer", "bl_drawer_default", "event", "changedProperties", "content", "y", "title", "external_button", "__decorateClass", "e", "t"]
6
+ "names": ["styles", "i", "bl_drawer_default", "BlDrawer", "bl_drawer_default", "event", "changedProperties", "content", "x", "title", "external_button", "__decorateClass", "e", "t"]
7
7
  }
@@ -0,0 +1,41 @@
1
+ var V,O=window,C=O.trustedTypes,Y=C?C.createPolicy("lit-html",{createHTML:n=>n}):void 0,R="$lit$",v=`lit$${(Math.random()+"").slice(9)}$`,q="?"+v,gt=`<${q}>`,g=document,U=()=>g.createComment(""),P=n=>n===null||typeof n!="object"&&typeof n!="function",rt=Array.isArray,lt=n=>rt(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",W=`[
2
+ \f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,f=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,it=/"/g,ht=/^(?:script|style|textarea|title)$/i,at=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),bt=at(1),Ct=at(2),y=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),nt=new WeakMap,m=g.createTreeWalker(g,129,null,!1);function dt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Y!==void 0?Y.createHTML(t):t}var ct=(n,t)=>{let e=n.length-1,s=[],i,r=t===2?"<svg>":"",o=x;for(let a=0;a<e;a++){let l=n[a],h,d,c=-1,p=0;for(;p<l.length&&(o.lastIndex=p,d=o.exec(l),d!==null);)p=o.lastIndex,o===x?d[1]==="!--"?o=tt:d[1]!==void 0?o=et:d[2]!==void 0?(ht.test(d[2])&&(i=RegExp("</"+d[2],"g")),o=f):d[3]!==void 0&&(o=f):o===f?d[0]===">"?(o=i!=null?i:x,c=-1):d[1]===void 0?c=-2:(c=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?f:d[3]==='"'?it:st):o===it||o===st?o=f:o===tt||o===et?o=x:(o=f,i=void 0);let $=o===f&&n[a+1].startsWith("/>")?" ":"";r+=o===x?l+gt:c>=0?(s.push(h),l.slice(0,c)+R+l.slice(c)+v+$):l+v+(c===-2?(s.push(void 0),a):$)}return[dt(n,r+(n[e]||"<?>")+(t===2?"</svg>":"")),s]},S=class{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,o=0,a=t.length-1,l=this.parts,[h,d]=ct(t,e);if(this.el=S.createElement(h,s),m.currentNode=this.el.content,e===2){let c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(i=m.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){let c=[];for(let p of i.getAttributeNames())if(p.endsWith(R)||p.startsWith(v)){let $=d[o++];if(c.push(p),$!==void 0){let mt=i.getAttribute($.toLowerCase()+R).split(v),N=/([.?@])?(.*)/.exec($);l.push({type:1,index:r,name:N[2],strings:mt,ctor:N[1]==="."?M:N[1]==="?"?k:N[1]==="@"?L:b})}else l.push({type:6,index:r})}for(let p of c)i.removeAttribute(p)}if(ht.test(i.tagName)){let c=i.textContent.split(v),p=c.length-1;if(p>0){i.textContent=C?C.emptyScript:"";for(let $=0;$<p;$++)i.append(c[$],U()),m.nextNode(),l.push({type:2,index:++r});i.append(c[p],U())}}}else if(i.nodeType===8)if(i.data===q)l.push({type:2,index:r});else{let c=-1;for(;(c=i.data.indexOf(v,c+1))!==-1;)l.push({type:7,index:r}),c+=v.length-1}r++}}static createElement(t,e){let s=g.createElement("template");return s.innerHTML=t,s}};function E(n,t,e=n,s){var i,r,o,a;if(t===y)return t;let l=s!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[s]:e._$Cl,h=P(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),h===void 0?l=void 0:(l=new h(n),l._$AT(n,e,s)),s!==void 0?((o=(a=e)._$Co)!==null&&o!==void 0?o:a._$Co=[])[s]=l:e._$Cl=l),l!==void 0&&(t=E(n,l._$AS(n,t.values),l,s)),t}var T=class{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;let{el:{content:s},parts:i}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:g).importNode(s,!0);m.currentNode=r;let o=m.nextNode(),a=0,l=0,h=i[0];for(;h!==void 0;){if(a===h.index){let d;h.type===2?d=new A(o,o.nextSibling,this,t):h.type===1?d=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(d=new j(o,this,t)),this._$AV.push(d),h=i[++l]}a!==(h==null?void 0:h.index)&&(o=m.nextNode(),a++)}return m.currentNode=g,r}v(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},A=class{constructor(t,e,s,i){var r;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cp=(r=i==null?void 0:i.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),P(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):lt(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!==u&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(g.createTextNode(t)),this._$AH=t}g(t){var e;let{values:s,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=S.createElement(dt(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(s);else{let o=new T(r,this),a=o.u(this.options);o.v(s),this.$(a),this._$AH=o}}_$AC(t){let e=nt.get(t.strings);return e===void 0&&nt.set(t.strings,e=new S(t)),e}T(t){rt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let r of t)i===e.length?e.push(s=new A(this.k(U()),this.k(U()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},b=class{constructor(t,e,s,i,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){let r=this.strings,o=!1;if(r===void 0)t=E(this,t,e,0),o=!P(t)||t!==this._$AH&&t!==y,o&&(this._$AH=t);else{let a=t,l,h;for(t=r[0],l=0;l<r.length-1;l++)h=E(this,a[s+l],e,l),h===y&&(h=this._$AH[l]),o||(o=!P(h)||h!==this._$AH[l]),h===u?t=u:t!==u&&(t+=(h!=null?h:"")+r[l+1]),this._$AH[l]=h}o&&!i&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},M=class extends b{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},yt=C?C.emptyScript:"",k=class extends b{constructor(){super(...arguments),this.type=4}j(t){t&&t!==u?this.element.setAttribute(this.name,yt):this.element.removeAttribute(this.name)}},L=class extends b{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){var s;if((t=(s=E(this,t,e,0))!==null&&s!==void 0?s:u)===y)return;let i=this._$AH,r=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},j=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}},wt={O:R,P:v,A:q,C:1,M:ct,L:T,R:lt,D:E,I:A,V:b,H:k,N:L,U:M,F:j},ot=O.litHtmlPolyfillSupport;ot==null||ot(S,A),((V=O.litHtmlVersions)!==null&&V!==void 0?V:O.litHtmlVersions=[]).push("2.8.0");var ut=(n,t,e)=>{var s,i;let r=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:t,o=r._$litPart$;if(o===void 0){let a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;r._$litPart$=o=new A(t.insertBefore(U(),a),a,void 0,e!=null?e:{})}return o._$AI(n),o};var B=window,D=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,K=Symbol(),pt=new WeakMap,H=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==K)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(D&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=pt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&pt.set(e,t))}return t}toString(){return this.cssText}},$t=n=>new H(typeof n=="string"?n:n+"",void 0,K),St=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((s,i,r)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[r+1],n[0]);return new H(e,n,K)},J=(n,t)=>{D?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let s=document.createElement("style"),i=B.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)})},I=D?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return $t(e)})(n):n;var F,z=window,vt=z.trustedTypes,Et=vt?vt.emptyScript:"",_t=z.reactiveElementPolyfillSupport,G={toAttribute(n,t){switch(t){case Boolean:n=n?Et:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},At=(n,t)=>t!==n&&(t==t||n==n),Z={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:At},_=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,s)=>{let i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=Z){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){let r=this[t];this[e]=i,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Z}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(I(i))}else t!==void 0&&e.push(I(t));return e}static _$Ep(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||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;let e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return J(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Z){var i;let r=this.constructor._$Ep(t,s);if(r!==void 0&&s.reflect===!0){let o=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:G).toAttribute(e,s.type);this._$El=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var s;let i=this.constructor,r=i._$Ev.get(t);if(r!==void 0&&this._$El!==r){let o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?o.converter:G;this._$El=r,this[r]=a.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||At)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,r)=>this[r]=i),this._$Ei=void 0);let e=!1,s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdate)===null||r===void 0?void 0:r.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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){this._$EC!==void 0&&(this._$EC.forEach((e,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};_.finalized=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},_t==null||_t({ReactiveElement:_}),((F=z.reactiveElementVersions)!==null&&F!==void 0?F:z.reactiveElementVersions=[]).push("1.6.1");var Q,X;var w=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ut(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return y}};w.finalized=!0,w._$litElement$=!0,(Q=globalThis.litElementHydrateSupport)===null||Q===void 0||Q.call(globalThis,{LitElement:w});var ft=globalThis.litElementPolyfillSupport;ft==null||ft({LitElement:w});((X=globalThis.litElementVersions)!==null&&X!==void 0?X:globalThis.litElementVersions=[]).push("3.3.3");export{St as a,bt as b,y as c,u as d,wt as e,w as f};
4
+ /*! Bundled license information:
5
+
6
+ lit-html/lit-html.js:
7
+ (**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ *)
12
+
13
+ @lit/reactive-element/css-tag.js:
14
+ (**
15
+ * @license
16
+ * Copyright 2019 Google LLC
17
+ * SPDX-License-Identifier: BSD-3-Clause
18
+ *)
19
+
20
+ @lit/reactive-element/reactive-element.js:
21
+ (**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ *)
26
+
27
+ lit-element/lit-element.js:
28
+ (**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ *)
33
+
34
+ lit-html/is-server.js:
35
+ (**
36
+ * @license
37
+ * Copyright 2022 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ *)
40
+ */
41
+ //# sourceMappingURL=chunk-4OT5AMS5.js.map