@jumpgroup/jump-design-system 0.3.9 → 0.3.14

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 (119) hide show
  1. package/dist/cjs/chunk.H33C3MRM-2c09acb5.js +547 -0
  2. package/dist/cjs/chunk.H33C3MRM-2c09acb5.js.map +1 -0
  3. package/dist/cjs/jump-button_2.cjs.entry.js +3 -525
  4. package/dist/cjs/jump-button_2.cjs.entry.js.map +1 -1
  5. package/dist/cjs/jump-design-system.cjs.js +1 -1
  6. package/dist/cjs/jump-filter-checkbox.cjs.entry.js +845 -0
  7. package/dist/cjs/jump-filter-checkbox.cjs.entry.js.map +1 -0
  8. package/dist/cjs/jump-filter.cjs.entry.js +5 -4
  9. package/dist/cjs/jump-filter.cjs.entry.js.map +1 -1
  10. package/dist/cjs/jump-filtergroup.cjs.entry.js +19 -3
  11. package/dist/cjs/jump-filtergroup.cjs.entry.js.map +1 -1
  12. package/dist/cjs/jump-pagination-table.cjs.entry.js +3 -3
  13. package/dist/cjs/jump-pagination.cjs.entry.js +3 -3
  14. package/dist/cjs/jump-quantity.cjs.entry.js +4 -4
  15. package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -1
  16. package/dist/cjs/jump-tab-item.cjs.entry.js +2 -2
  17. package/dist/cjs/jump-tab-panel.cjs.entry.js +1 -1
  18. package/dist/cjs/jump-tab.cjs.entry.js +1 -1
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/jump-filter/jump-filter.css +8 -1
  22. package/dist/collection/components/jump-filter/jump-filter.js +5 -4
  23. package/dist/collection/components/jump-filter/jump-filter.js.map +1 -1
  24. package/dist/collection/components/jump-filter/jump-filter.stories.js +5 -4
  25. package/dist/collection/components/jump-filter/jump-filter.stories.js.map +1 -1
  26. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.css +31 -0
  27. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.js +161 -0
  28. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.js.map +1 -0
  29. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js +51 -0
  30. package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js.map +1 -0
  31. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +21 -5
  32. package/dist/collection/components/jump-filtergroup/jump-filtergroup.js.map +1 -1
  33. package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js +1 -1
  34. package/dist/collection/components/jump-filtergroup/jump-filtergroup.stories.js.map +1 -1
  35. package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
  36. package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
  37. package/dist/collection/components/jump-quantity/jump-quantity.css +6 -3
  38. package/dist/collection/components/jump-quantity/jump-quantity.js +3 -3
  39. package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -1
  40. package/dist/collection/components/jump-tab/jump-tab.js +1 -1
  41. package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
  42. package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
  43. package/dist/components/chunk.H33C3MRM.js +529 -0
  44. package/dist/components/chunk.H33C3MRM.js.map +1 -0
  45. package/dist/components/jump-filter-checkbox.d.ts +11 -0
  46. package/dist/components/jump-filter-checkbox.js +865 -0
  47. package/dist/components/jump-filter-checkbox.js.map +1 -0
  48. package/dist/components/jump-filter.js +5 -4
  49. package/dist/components/jump-filter.js.map +1 -1
  50. package/dist/components/jump-filtergroup.js +20 -4
  51. package/dist/components/jump-filtergroup.js.map +1 -1
  52. package/dist/components/jump-icon2.js +6 -528
  53. package/dist/components/jump-icon2.js.map +1 -1
  54. package/dist/components/jump-pagination-table.js +3 -3
  55. package/dist/components/jump-pagination.js +3 -3
  56. package/dist/components/jump-quantity.js +4 -4
  57. package/dist/components/jump-quantity.js.map +1 -1
  58. package/dist/components/jump-tab-item.js +2 -2
  59. package/dist/components/jump-tab-panel.js +1 -1
  60. package/dist/components/jump-tab.js +1 -1
  61. package/dist/esm/chunk.H33C3MRM-d1872e67.js +529 -0
  62. package/dist/esm/chunk.H33C3MRM-d1872e67.js.map +1 -0
  63. package/dist/esm/jump-button_2.entry.js +6 -528
  64. package/dist/esm/jump-button_2.entry.js.map +1 -1
  65. package/dist/esm/jump-design-system.js +1 -1
  66. package/dist/esm/jump-filter-checkbox.entry.js +841 -0
  67. package/dist/esm/jump-filter-checkbox.entry.js.map +1 -0
  68. package/dist/esm/jump-filter.entry.js +5 -4
  69. package/dist/esm/jump-filter.entry.js.map +1 -1
  70. package/dist/esm/jump-filtergroup.entry.js +19 -3
  71. package/dist/esm/jump-filtergroup.entry.js.map +1 -1
  72. package/dist/esm/jump-pagination-table.entry.js +3 -3
  73. package/dist/esm/jump-pagination.entry.js +3 -3
  74. package/dist/esm/jump-quantity.entry.js +4 -4
  75. package/dist/esm/jump-quantity.entry.js.map +1 -1
  76. package/dist/esm/jump-tab-item.entry.js +2 -2
  77. package/dist/esm/jump-tab-panel.entry.js +1 -1
  78. package/dist/esm/jump-tab.entry.js +1 -1
  79. package/dist/esm/loader.js +1 -1
  80. package/dist/jump-design-system/jump-design-system.esm.js +1 -1
  81. package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
  82. package/dist/jump-design-system/{p-95460fa4.entry.js → p-4302b229.entry.js} +2 -2
  83. package/dist/jump-design-system/p-60849b83.entry.js +2 -0
  84. package/dist/jump-design-system/p-60849b83.entry.js.map +1 -0
  85. package/dist/jump-design-system/p-839e054d.entry.js +2 -0
  86. package/dist/jump-design-system/p-839e054d.entry.js.map +1 -0
  87. package/dist/jump-design-system/{p-d2ee7b9b.entry.js → p-9d9b0076.entry.js} +2 -2
  88. package/dist/jump-design-system/p-a00d20d8.entry.js +264 -0
  89. package/dist/jump-design-system/p-a00d20d8.entry.js.map +1 -0
  90. package/dist/jump-design-system/p-a41ca036.entry.js +2 -0
  91. package/dist/jump-design-system/p-a41ca036.entry.js.map +1 -0
  92. package/dist/jump-design-system/p-a4b9515b.js +66 -0
  93. package/dist/jump-design-system/p-a4b9515b.js.map +1 -0
  94. package/dist/jump-design-system/p-aee5a8c3.entry.js +2 -0
  95. package/dist/jump-design-system/{p-37114ce3.entry.js → p-c8733544.entry.js} +2 -2
  96. package/dist/jump-design-system/{p-8efeaa79.entry.js → p-ed897778.entry.js} +2 -2
  97. package/dist/jump-design-system/p-fde99383.entry.js +2 -0
  98. package/dist/jump-design-system/p-fde99383.entry.js.map +1 -0
  99. package/dist/jump-design-system-elements.json +29 -4
  100. package/dist/types/components/jump-filter-checkbox/jump-filter-checkbox.d.ts +15 -0
  101. package/dist/types/components/jump-filter-checkbox/jump-filter-checkbox.stories.d.ts +30 -0
  102. package/dist/types/components/jump-filtergroup/jump-filtergroup.d.ts +2 -1
  103. package/dist/types/components/jump-filtergroup/jump-filtergroup.stories.d.ts +1 -1
  104. package/dist/types/components.d.ts +40 -2
  105. package/package.json +1 -1
  106. package/dist/jump-design-system/p-529a09f6.entry.js +0 -2
  107. package/dist/jump-design-system/p-529a09f6.entry.js.map +0 -1
  108. package/dist/jump-design-system/p-5da7839d.entry.js +0 -2
  109. package/dist/jump-design-system/p-8628896f.entry.js +0 -2
  110. package/dist/jump-design-system/p-8628896f.entry.js.map +0 -1
  111. package/dist/jump-design-system/p-c2bc6395.entry.js +0 -66
  112. package/dist/jump-design-system/p-c2bc6395.entry.js.map +0 -1
  113. package/dist/jump-design-system/p-d1e411fd.entry.js +0 -2
  114. package/dist/jump-design-system/p-d1e411fd.entry.js.map +0 -1
  115. /package/dist/jump-design-system/{p-95460fa4.entry.js.map → p-4302b229.entry.js.map} +0 -0
  116. /package/dist/jump-design-system/{p-d2ee7b9b.entry.js.map → p-9d9b0076.entry.js.map} +0 -0
  117. /package/dist/jump-design-system/{p-5da7839d.entry.js.map → p-aee5a8c3.entry.js.map} +0 -0
  118. /package/dist/jump-design-system/{p-37114ce3.entry.js.map → p-c8733544.entry.js.map} +0 -0
  119. /package/dist/jump-design-system/{p-8efeaa79.entry.js.map → p-ed897778.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"jump-quantity.js","sourceRoot":"","sources":["../../../src/components/jump-quantity/jump-quantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAQzG,MAAM,OAAO,YAAY;;mBAKD,CAAC;;oBAEA,CAAC;qBACA,EAAE;oBACuB,SAAS;uBACb,UAAU;2BACxB,IAAI;;;IAQnC,aAAa,CAAC,QAAQ,EAAE,QAAQ;QAC9B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YACf,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,QAAQ;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAGD,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;IACxB,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;QACtB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,KAAK;QAChB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,CAAC;IAED,+CAA+C;IAC/C,UAAU,CAAC,KAAK;QACd,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;QACxB,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,KAAK,kBAAgB,IAAI,CAAC,OAAO,qBAAmB,IAAI,CAAC,WAAW;YACnF,IAAI,CAAC,KAAK,IAAI,gEAAQ,IAAI,CAAC,KAAK,CAAS;YAC1C,4DAAK,KAAK,EAAE,6BAA6B;gBACxC,IAAI,CAAC,WAAW;oBACb,oEAAa,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,EACpF,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO;wBACzC,kEAAW,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,GAAa,CACtD;gBAChB,8DAAO,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE;wBACjB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;oBACpB,CAAC,EACM,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAC5C,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,qBACE,IAAI,CAAC,WAAW,GACtC;gBACD,IAAI,CAAC,WAAW;oBACf,oEAAa,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,EACpF,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO;wBACzC,kEAAW,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,GAAa,CACrD,CACZ,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, AttachInternals, Watch, Method, Prop, h, Event, Element } from '@stencil/core';\n\n@Component({\n tag: 'jump-quantity',\n styleUrl: 'jump-quantity.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class JumpQuantity {\n\n @AttachInternals() internals: ElementInternals;\n @Element() el;\n\n @Prop() min: number = 1;\n @Prop() max: number;\n @Prop() step: number = 1;\n @Prop() label: string = '';\n @Prop() type: 'buttons' | 'dropdown' | 'input' = 'buttons';\n @Prop() variant: 'vertical' | 'horizontal' = 'vertical';\n @Prop() showButtons: boolean = true;\n @Prop() value: number;\n\n @Event({ eventName: 'jump-change' }) change;\n\n inputEl: HTMLInputElement;\n\n @Watch('value')\n onValueChange(newValue, oldValue) {\n this.change.emit({\n value: newValue,\n oldValue: oldValue,\n });\n this.internals.setFormValue(newValue);\n }\n\n /**\n * Get the current value\n */\n @Method()\n async getValue() {\n return this.value;\n }\n\n @Method()\n async reset() {\n this.value = this.min;\n }\n\n componentWillLoad() {\n this.value = this.min;\n this.internals.setFormValue(this.value.toString());\n }\n\n formResetCallback() {\n this.internals.setValidity({});\n this.internals.setFormValue('');\n }\n\n handleChange(event) {\n this.value = event.target.value;\n }\n\n //avoid user can change the value below the min\n handleBlur(event) {\n if (event.target.value < this.min) {\n this.value = this.min;\n }\n }\n\n render() {\n return (\n <Host value={this.value} data-variant={this.variant} data-hasbuttons={this.showButtons}>\n {this.label && <label>{this.label}</label>}\n <div class={`jump-quantity__InnerWrapper`}>\n {this.showButtons &&\n <jump-button onClick={() => this.value = this.value - this.step} disabled={this.value <= this.min}\n variant='neutral' size='small'>\n <jump-icon library=\"lucide\" name=\"minus\" size=\"small\"></jump-icon>\n </jump-button>}\n <input ref={(el) => {\n this.inputEl = el;\n }}\n type='number'\n value={this.value}\n onInput={(event) => this.handleChange(event)}\n min={this.min}\n max={this.max}\n step={this.step}\n aria-hasbuttons={this.showButtons}\n />\n {this.showButtons &&\n <jump-button onClick={() => this.value = this.value + this.step} disabled={this.value >= this.max}\n variant='neutral' size='small'>\n <jump-icon library=\"lucide\" name=\"plus\" size=\"small\"></jump-icon>\n </jump-button>}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"jump-quantity.js","sourceRoot":"","sources":["../../../src/components/jump-quantity/jump-quantity.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, AttachInternals, Watch, Method, Prop, h, Event, Element } from '@stencil/core';\n\n@Component({\n tag: 'jump-quantity',\n styleUrl: 'jump-quantity.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class JumpQuantity {\n\n @AttachInternals() internals: ElementInternals;\n @Element() el;\n\n @Prop() min: number = 1;\n @Prop() max: number;\n @Prop() step: number = 1;\n @Prop() label: string = '';\n @Prop() type: 'buttons' | 'dropdown' | 'input' = 'buttons';\n @Prop() variant: 'vertical' | 'horizontal' = 'vertical';\n @Prop() showButtons: boolean = true;\n @Prop() value: number;\n\n @Event({ eventName: 'jump-change' }) change;\n\n inputEl: HTMLInputElement;\n\n @Watch('value')\n onValueChange(newValue, oldValue) {\n this.change.emit({\n value: newValue,\n oldValue: oldValue,\n });\n this.internals.setFormValue(newValue);\n }\n\n /**\n * Get the current value\n */\n @Method()\n async getValue() {\n return this.value;\n }\n\n @Method()\n async reset() {\n this.value = this.min;\n }\n\n componentWillLoad() {\n this.value = this.min;\n this.internals.setFormValue(this.value.toString());\n }\n\n formResetCallback() {\n this.internals.setValidity({});\n this.internals.setFormValue('');\n }\n\n handleChange(event) {\n this.value = event.target.value;\n }\n\n //avoid user can change the value below the min\n handleBlur(event) {\n if (event.target.value < this.min) {\n this.value = this.min;\n }\n }\n\n render() {\n return (\n <Host value={this.value} data-variant={this.variant} data-hasbuttons={this.showButtons}>\n {this.label && <label>{this.label}</label>}\n <div class={`jump-quantity__InnerWrapper`}>\n {this.showButtons &&\n <jump-button onClick={() => this.value = this.value - this.step} disabled={this.value <= this.min}\n variant='neutral' size='custom'>\n <jump-icon library=\"lucide\" name=\"minus\" size=\"small\"></jump-icon>\n </jump-button>}\n <input ref={(el) => {\n this.inputEl = el;\n }}\n type='number'\n value={this.value}\n onInput={(event) => this.handleChange(event)}\n min={this.min}\n max={this.max}\n step={this.step}\n aria-hasbuttons={this.showButtons}\n />\n {this.showButtons &&\n <jump-button onClick={() => this.value = this.value + this.step} disabled={this.value >= this.max}\n variant='neutral' size='custom'>\n <jump-icon library=\"lucide\" name=\"plus\" size=\"small\"></jump-icon>\n </jump-button>}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -72,7 +72,7 @@ export class JumpTab {
72
72
  }
73
73
  }
74
74
  render() {
75
- return (h(Host, { key: '141d0932c588a4644d67abf4378858eb8a3771f7', class: "JumpTab", id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, h("div", { key: '2b84773fbb263e8a593793da0db59c0110566ad7', class: "Wrapper " + this.variant }, h("slot", { key: '559a5801972af5c746cfca3d0a387855316d10ee', name: "tab-item" })), h("div", { key: '5d2c365e4e6d9694faa073025560e1984135af47' }, h("slot", { key: 'ebf5b38c8a196ed002c88c24360942d05eb04ef7', name: "tab-content" }))));
75
+ return (h(Host, { key: '8bee60d35e49d0afbc66a258108abc0242897206', class: "JumpTab", id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, h("div", { key: '8328fe6bee0408102e0cba38f90c58b883908d3d', class: "Wrapper " + this.variant }, h("slot", { key: '0e4fd0e4d93148cdf01ff78abc36373dda53ae93', name: "tab-item" })), h("div", { key: '9540449ea09f1373e8aefd3fa1c503553e2077ae' }, h("slot", { key: 'e3bca29c3edb9f3ac12816ddebc8ac7b760d40a2', name: "tab-content" }))));
76
76
  }
77
77
  static get is() { return "jump-tab"; }
78
78
  static get encapsulation() { return "shadow"; }
@@ -19,8 +19,8 @@ export class JumpTabItem {
19
19
  this.variant = parentVariant;
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: 'abb94cf6de77cb1e4b4364d3b391c2174949f60f', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) }, h("div", { key: '240bb79a1e9159b2568b6d98c502841bb3445bf5', class: "Content " + (this.iconName ? this.iconPosition : '') + " " + (this.variant) + " " + (this.active ? 'active' : '') + " " + (this.disabled ? 'disabled' : ''), onClick: () => this.changeTab(this.identifier), id: this.identifier }, (this.iconName && (this.variant == 'inline' || this.variant == 'boxed')) &&
23
- h("jump-icon", { key: '2aa6dd7c0028f31f2a90a41e08517d1e2d475ab3', library: "fa", category: "regular", name: this.iconName, size: "small" }), h("span", { key: '7104baeadfefd66bfa057e66955067de8988a89e', class: "label" }, this.label))));
22
+ return (h(Host, { key: 'ec76b7696f1bfe7383b816ef98aa4eda777d4db6', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) }, h("div", { key: '2aba84741fcbed6a07c403f3f99aa8013c8bd3b9', class: "Content " + (this.iconName ? this.iconPosition : '') + " " + (this.variant) + " " + (this.active ? 'active' : '') + " " + (this.disabled ? 'disabled' : ''), onClick: () => this.changeTab(this.identifier), id: this.identifier }, (this.iconName && (this.variant == 'inline' || this.variant == 'boxed')) &&
23
+ h("jump-icon", { key: '69b1e176bc299254220f5f8993168952c5390b8e', library: "fa", category: "regular", name: this.iconName, size: "small" }), h("span", { key: 'aad7e1ce02c76e0a1dd2edc954a1d00c80e2ab4f', class: "label" }, this.label))));
24
24
  }
25
25
  static get is() { return "jump-tab-item"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ export class JumpTabPanel {
5
5
  this.active = false;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: 'fc2eef0c94e117a26077c230693995b20acc7f3c', class: "JumpTabPanel", id: this.identifier }, h("div", { key: '9b924fa9506c131757cad87fbc1f5bed6a9c93f4', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, h("slot", { key: '01d32accd80af80358dbf2c247d5ce2c94b6c86e' }))));
8
+ return (h(Host, { key: 'cbfc39294110b805fa22518b6d8d169267d4b12b', class: "JumpTabPanel", id: this.identifier }, h("div", { key: '69b7bf0909ab5d36d1a04492ee1e2d9234f766cc', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, h("slot", { key: '15176a1a4877ce88539c74b3d80fe9e8ab052bb7' }))));
9
9
  }
10
10
  static get is() { return "jump-tab-panel"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,529 @@
1
+ // src/utilities/base-path.ts
2
+ var basePath = "";
3
+ function setBasePath(path) {
4
+ basePath = path;
5
+ }
6
+ function getBasePath(subpath = "") {
7
+ if (!basePath) {
8
+ const scripts = [...document.getElementsByTagName("script")];
9
+ const configScript = scripts.find((script) => script.hasAttribute("data-shoelace"));
10
+ if (configScript) {
11
+ setBasePath(configScript.getAttribute("data-shoelace"));
12
+ } else {
13
+ const fallbackScript = scripts.find((s) => {
14
+ return /shoelace(\.min)?\.js($|\?)/.test(s.src) || /shoelace-autoloader(\.min)?\.js($|\?)/.test(s.src);
15
+ });
16
+ let path = "";
17
+ if (fallbackScript) {
18
+ path = fallbackScript.getAttribute("src");
19
+ }
20
+ setBasePath(path.split("/").slice(0, -1).join("/"));
21
+ }
22
+ }
23
+ return basePath.replace(/\/$/, "") + (subpath ? `/${subpath.replace(/^\//, "")}` : ``);
24
+ }
25
+
26
+ // src/components/icon/library.default.ts
27
+ var library = {
28
+ name: "default",
29
+ resolver: (name) => getBasePath(`assets/icons/${name}.svg`)
30
+ };
31
+ var library_default_default = library;
32
+
33
+ // src/components/icon/library.system.ts
34
+ var icons = {
35
+ caret: `
36
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
37
+ <polyline points="6 9 12 15 18 9"></polyline>
38
+ </svg>
39
+ `,
40
+ check: `
41
+ <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
42
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
43
+ <g stroke="currentColor">
44
+ <g transform="translate(3.428571, 3.428571)">
45
+ <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
46
+ <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
47
+ </g>
48
+ </g>
49
+ </g>
50
+ </svg>
51
+ `,
52
+ "chevron-down": `
53
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
54
+ <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
55
+ </svg>
56
+ `,
57
+ "chevron-left": `
58
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
59
+ <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
60
+ </svg>
61
+ `,
62
+ "chevron-right": `
63
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
64
+ <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
65
+ </svg>
66
+ `,
67
+ copy: `
68
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
69
+ <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
70
+ </svg>
71
+ `,
72
+ eye: `
73
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
74
+ <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
75
+ <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
76
+ </svg>
77
+ `,
78
+ "eye-slash": `
79
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
80
+ <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
81
+ <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
82
+ <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
83
+ </svg>
84
+ `,
85
+ eyedropper: `
86
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
87
+ <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
88
+ </svg>
89
+ `,
90
+ "grip-vertical": `
91
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
92
+ <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
93
+ </svg>
94
+ `,
95
+ indeterminate: `
96
+ <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
97
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
98
+ <g stroke="currentColor" stroke-width="2">
99
+ <g transform="translate(2.285714, 6.857143)">
100
+ <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
101
+ </g>
102
+ </g>
103
+ </g>
104
+ </svg>
105
+ `,
106
+ "person-fill": `
107
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
108
+ <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
109
+ </svg>
110
+ `,
111
+ "play-fill": `
112
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
113
+ <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
114
+ </svg>
115
+ `,
116
+ "pause-fill": `
117
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
118
+ <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
119
+ </svg>
120
+ `,
121
+ radio: `
122
+ <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
123
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
124
+ <g fill="currentColor">
125
+ <circle cx="8" cy="8" r="3.42857143"></circle>
126
+ </g>
127
+ </g>
128
+ </svg>
129
+ `,
130
+ "star-fill": `
131
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
132
+ <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
133
+ </svg>
134
+ `,
135
+ "x-lg": `
136
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
137
+ <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
138
+ </svg>
139
+ `,
140
+ "x-circle-fill": `
141
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
142
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
143
+ </svg>
144
+ `
145
+ };
146
+ var systemLibrary = {
147
+ name: "system",
148
+ resolver: (name) => {
149
+ if (name in icons) {
150
+ return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
151
+ }
152
+ return "";
153
+ }
154
+ };
155
+ var library_system_default = systemLibrary;
156
+
157
+ // src/components/icon/library.ts
158
+ var registry = [library_default_default, library_system_default];
159
+ var watchedIcons = [];
160
+ function watchIcon(icon) {
161
+ watchedIcons.push(icon);
162
+ }
163
+ function unwatchIcon(icon) {
164
+ watchedIcons = watchedIcons.filter((el) => el !== icon);
165
+ }
166
+ function getIconLibrary(name) {
167
+ return registry.find((lib) => lib.name === name);
168
+ }
169
+ function registerIconLibrary(name, options) {
170
+ unregisterIconLibrary(name);
171
+ registry.push({
172
+ name,
173
+ resolver: options.resolver,
174
+ mutator: options.mutator,
175
+ spriteSheet: options.spriteSheet
176
+ });
177
+ watchedIcons.forEach((icon) => {
178
+ if (icon.library === name) {
179
+ icon.setIcon();
180
+ }
181
+ });
182
+ }
183
+ function unregisterIconLibrary(name) {
184
+ registry = registry.filter((lib) => lib.name !== name);
185
+ }
186
+
187
+ /**
188
+ * @license
189
+ * Copyright 2019 Google LLC
190
+ * SPDX-License-Identifier: BSD-3-Clause
191
+ */
192
+ const t$1=globalThis,e$3=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$3=new WeakMap;class n$3{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$3&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$3.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$3.set(s,t));}return t}toString(){return this.cssText}}const r$5=t=>new n$3("string"==typeof t?t:t+"",void 0,s$2),i$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>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.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},S$1=(s,o)=>{if(e$3)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$5(e)})(t):t;
193
+
194
+ /**
195
+ * @license
196
+ * Copyright 2017 Google LLC
197
+ * SPDX-License-Identifier: BSD-3-Clause
198
+ */const {is:i$1,defineProperty:e$2,getOwnPropertyDescriptor:r$4,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$2,getPrototypeOf:n$2}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){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}},f$2=(t,s)=>!i$1(t,s),y$1={attribute:!0,type:String,converter:u$2,reflect:!1,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$4(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$2(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return !1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=!0;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$1.reactiveElementVersions??=[]).push("2.0.4");
199
+
200
+ /**
201
+ * @license
202
+ * Copyright 2017 Google LLC
203
+ * SPDX-License-Identifier: BSD-3-Clause
204
+ */
205
+ const t=globalThis,i=t.trustedTypes,s$1=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$1="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$1="?"+h,n$1=`<${o$1}>`,r$3=document,l=()=>r$3.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u$1=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m$1=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),w=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),A=new WeakMap,E=r$3.createTreeWalker(r$3,129);function C(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1?s$1.createHTML(i):i}const P=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":"",c=f$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$1,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g:p):c===g||c===p?c=m$1:c===v||c===_?c=f$1:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$1:d>=0?(o.push(a),s.slice(0,d)+e$1+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [C(t,l+(t[s]||"<?>")+(2===i?"</svg>":"")),o]};class V{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=P(t,s);if(this.el=V.createElement(f,n),E.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=E.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$1)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?k:"?"===e[1]?H:"@"===e[1]?I:R}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),E.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o$1)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function N(t,i,s=t,e){if(i===w)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=N(t,h._$AS(t,i.values),h,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,!0);E.currentNode=e;let h=E.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new M(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new L(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=E.nextNode(),o++);}return E.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),c(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$1(t)?this.k(t):this._(t);}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t));}_(t){this._$AH!==T&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(C(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new S(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new V(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new M(this.S(l()),this.S(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=N(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=N(this,e[s+n],i,n),r===w&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===T?t=T:t!==T&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class k extends R{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===T?void 0:t;}}class H extends R{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T);}}class I extends R{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=N(this,t,i,0)??T)===w)return;const s=this._$AH,e=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==T&&(s===T||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t);}}const Z=t.litHtmlPolyfillSupport;Z?.(V,M),(t.litHtmlVersions??=[]).push("3.1.3");const j=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new M(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
206
+
207
+ /**
208
+ * @license
209
+ * Copyright 2017 Google LLC
210
+ * SPDX-License-Identifier: BSD-3-Clause
211
+ */class s extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=j(i,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return w}}s._$litElement$=!0,s[("finalized")]=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const r$2=globalThis.litElementPolyfillSupport;r$2?.({LitElement:s});(globalThis.litElementVersions??=[]).push("4.0.5");
212
+
213
+ // src/components/icon/icon.styles.ts
214
+ var icon_styles_default = i$2`
215
+ :host {
216
+ display: inline-block;
217
+ width: 1em;
218
+ height: 1em;
219
+ box-sizing: content-box !important;
220
+ }
221
+
222
+ svg {
223
+ display: block;
224
+ height: 100%;
225
+ width: 100%;
226
+ }
227
+ `;
228
+
229
+ var __defProp = Object.defineProperty;
230
+ var __defProps = Object.defineProperties;
231
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
232
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
233
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
234
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
235
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
236
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
237
+ var __spreadValues = (a, b) => {
238
+ for (var prop in b || (b = {}))
239
+ if (__hasOwnProp.call(b, prop))
240
+ __defNormalProp(a, prop, b[prop]);
241
+ if (__getOwnPropSymbols)
242
+ for (var prop of __getOwnPropSymbols(b)) {
243
+ if (__propIsEnum.call(b, prop))
244
+ __defNormalProp(a, prop, b[prop]);
245
+ }
246
+ return a;
247
+ };
248
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
249
+ var __decorateClass = (decorators, target, key, kind) => {
250
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
251
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
252
+ if (decorator = decorators[i])
253
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
254
+ if (kind && result)
255
+ __defProp(target, key, result);
256
+ return result;
257
+ };
258
+
259
+ // src/internal/watch.ts
260
+ function watch(propertyName, options) {
261
+ const resolvedOptions = __spreadValues({
262
+ waitUntilFirstUpdate: false
263
+ }, options);
264
+ return (proto, decoratedFnName) => {
265
+ const { update } = proto;
266
+ const watchedProperties = Array.isArray(propertyName) ? propertyName : [propertyName];
267
+ proto.update = function(changedProps) {
268
+ watchedProperties.forEach((property) => {
269
+ const key = property;
270
+ if (changedProps.has(key)) {
271
+ const oldValue = changedProps.get(key);
272
+ const newValue = this[key];
273
+ if (oldValue !== newValue) {
274
+ if (!resolvedOptions.waitUntilFirstUpdate || this.hasUpdated) {
275
+ this[decoratedFnName](oldValue, newValue);
276
+ }
277
+ }
278
+ }
279
+ });
280
+ update.call(this, changedProps);
281
+ };
282
+ };
283
+ }
284
+
285
+ // src/styles/component.styles.ts
286
+ var component_styles_default = i$2`
287
+ :host {
288
+ box-sizing: border-box;
289
+ }
290
+
291
+ :host *,
292
+ :host *::before,
293
+ :host *::after {
294
+ box-sizing: inherit;
295
+ }
296
+
297
+ [hidden] {
298
+ display: none !important;
299
+ }
300
+ `;
301
+
302
+ /**
303
+ * @license
304
+ * Copyright 2017 Google LLC
305
+ * SPDX-License-Identifier: BSD-3-Clause
306
+ */const o={attribute:!0,type:String,converter:u$2,reflect:!1,hasChanged:f$2},r$1=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n(t){return (e,o)=>"object"==typeof o?r$1(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}
307
+
308
+ /**
309
+ * @license
310
+ * Copyright 2017 Google LLC
311
+ * SPDX-License-Identifier: BSD-3-Clause
312
+ */function r(r){return n({...r,state:!0,attribute:!1})}
313
+
314
+ var ShoelaceElement = class extends s {
315
+ constructor() {
316
+ super();
317
+ Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
318
+ this.constructor.define(name, component);
319
+ });
320
+ }
321
+ emit(name, options) {
322
+ const event = new CustomEvent(name, __spreadValues({
323
+ bubbles: true,
324
+ cancelable: false,
325
+ composed: true,
326
+ detail: {}
327
+ }, options));
328
+ this.dispatchEvent(event);
329
+ return event;
330
+ }
331
+ /* eslint-enable */
332
+ static define(name, elementConstructor = this, options = {}) {
333
+ const currentlyRegisteredConstructor = customElements.get(name);
334
+ if (!currentlyRegisteredConstructor) {
335
+ customElements.define(name, class extends elementConstructor {
336
+ }, options);
337
+ return;
338
+ }
339
+ let newVersion = " (unknown version)";
340
+ let existingVersion = newVersion;
341
+ if ("version" in elementConstructor && elementConstructor.version) {
342
+ newVersion = " v" + elementConstructor.version;
343
+ }
344
+ if ("version" in currentlyRegisteredConstructor && currentlyRegisteredConstructor.version) {
345
+ existingVersion = " v" + currentlyRegisteredConstructor.version;
346
+ }
347
+ if (newVersion && existingVersion && newVersion === existingVersion) {
348
+ return;
349
+ }
350
+ console.warn(
351
+ `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
352
+ );
353
+ }
354
+ };
355
+ /* eslint-disable */
356
+ // @ts-expect-error This is auto-injected at build time.
357
+ ShoelaceElement.version = "2.15.0";
358
+ ShoelaceElement.dependencies = {};
359
+ __decorateClass([
360
+ n()
361
+ ], ShoelaceElement.prototype, "dir", 2);
362
+ __decorateClass([
363
+ n()
364
+ ], ShoelaceElement.prototype, "lang", 2);
365
+
366
+ /**
367
+ * @license
368
+ * Copyright 2020 Google LLC
369
+ * SPDX-License-Identifier: BSD-3-Clause
370
+ */const e=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,f=o=>void 0===o.strings,u={},m=(o,t=u)=>o._$AH=t;
371
+
372
+ var CACHEABLE_ERROR = Symbol();
373
+ var RETRYABLE_ERROR = Symbol();
374
+ var parser;
375
+ var iconCache = /* @__PURE__ */ new Map();
376
+ var SlIcon = class extends ShoelaceElement {
377
+ constructor() {
378
+ super(...arguments);
379
+ this.initialRender = false;
380
+ this.svg = null;
381
+ this.label = "";
382
+ this.library = "default";
383
+ }
384
+ /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */
385
+ async resolveIcon(url, library) {
386
+ var _a;
387
+ let fileData;
388
+ if (library == null ? void 0 : library.spriteSheet) {
389
+ this.svg = x`<svg part="svg">
390
+ <use part="use" href="${url}"></use>
391
+ </svg>`;
392
+ await this.updateComplete;
393
+ const svg = this.shadowRoot.querySelector("[part='svg']");
394
+ if (typeof library.mutator === "function") {
395
+ library.mutator(svg);
396
+ }
397
+ return this.svg;
398
+ }
399
+ try {
400
+ fileData = await fetch(url, { mode: "cors" });
401
+ if (!fileData.ok)
402
+ return fileData.status === 410 ? CACHEABLE_ERROR : RETRYABLE_ERROR;
403
+ } catch (e) {
404
+ return RETRYABLE_ERROR;
405
+ }
406
+ try {
407
+ const div = document.createElement("div");
408
+ div.innerHTML = await fileData.text();
409
+ const svg = div.firstElementChild;
410
+ if (((_a = svg == null ? void 0 : svg.tagName) == null ? void 0 : _a.toLowerCase()) !== "svg")
411
+ return CACHEABLE_ERROR;
412
+ if (!parser)
413
+ parser = new DOMParser();
414
+ const doc = parser.parseFromString(svg.outerHTML, "text/html");
415
+ const svgEl = doc.body.querySelector("svg");
416
+ if (!svgEl)
417
+ return CACHEABLE_ERROR;
418
+ svgEl.part.add("svg");
419
+ return document.adoptNode(svgEl);
420
+ } catch (e) {
421
+ return CACHEABLE_ERROR;
422
+ }
423
+ }
424
+ connectedCallback() {
425
+ super.connectedCallback();
426
+ watchIcon(this);
427
+ }
428
+ firstUpdated() {
429
+ this.initialRender = true;
430
+ this.setIcon();
431
+ }
432
+ disconnectedCallback() {
433
+ super.disconnectedCallback();
434
+ unwatchIcon(this);
435
+ }
436
+ getIconSource() {
437
+ const library = getIconLibrary(this.library);
438
+ if (this.name && library) {
439
+ return {
440
+ url: library.resolver(this.name),
441
+ fromLibrary: true
442
+ };
443
+ }
444
+ return {
445
+ url: this.src,
446
+ fromLibrary: false
447
+ };
448
+ }
449
+ handleLabelChange() {
450
+ const hasLabel = typeof this.label === "string" && this.label.length > 0;
451
+ if (hasLabel) {
452
+ this.setAttribute("role", "img");
453
+ this.setAttribute("aria-label", this.label);
454
+ this.removeAttribute("aria-hidden");
455
+ } else {
456
+ this.removeAttribute("role");
457
+ this.removeAttribute("aria-label");
458
+ this.setAttribute("aria-hidden", "true");
459
+ }
460
+ }
461
+ async setIcon() {
462
+ var _a;
463
+ const { url, fromLibrary } = this.getIconSource();
464
+ const library = fromLibrary ? getIconLibrary(this.library) : void 0;
465
+ if (!url) {
466
+ this.svg = null;
467
+ return;
468
+ }
469
+ let iconResolver = iconCache.get(url);
470
+ if (!iconResolver) {
471
+ iconResolver = this.resolveIcon(url, library);
472
+ iconCache.set(url, iconResolver);
473
+ }
474
+ if (!this.initialRender) {
475
+ return;
476
+ }
477
+ const svg = await iconResolver;
478
+ if (svg === RETRYABLE_ERROR) {
479
+ iconCache.delete(url);
480
+ }
481
+ if (url !== this.getIconSource().url) {
482
+ return;
483
+ }
484
+ if (e(svg)) {
485
+ this.svg = svg;
486
+ return;
487
+ }
488
+ switch (svg) {
489
+ case RETRYABLE_ERROR:
490
+ case CACHEABLE_ERROR:
491
+ this.svg = null;
492
+ this.emit("sl-error");
493
+ break;
494
+ default:
495
+ this.svg = svg.cloneNode(true);
496
+ (_a = library == null ? void 0 : library.mutator) == null ? void 0 : _a.call(library, this.svg);
497
+ this.emit("sl-load");
498
+ }
499
+ }
500
+ render() {
501
+ return this.svg;
502
+ }
503
+ };
504
+ SlIcon.styles = [component_styles_default, icon_styles_default];
505
+ __decorateClass([
506
+ r()
507
+ ], SlIcon.prototype, "svg", 2);
508
+ __decorateClass([
509
+ n({ reflect: true })
510
+ ], SlIcon.prototype, "name", 2);
511
+ __decorateClass([
512
+ n()
513
+ ], SlIcon.prototype, "src", 2);
514
+ __decorateClass([
515
+ n()
516
+ ], SlIcon.prototype, "label", 2);
517
+ __decorateClass([
518
+ n({ reflect: true })
519
+ ], SlIcon.prototype, "library", 2);
520
+ __decorateClass([
521
+ watch("label")
522
+ ], SlIcon.prototype, "handleLabelChange", 1);
523
+ __decorateClass([
524
+ watch(["name", "src", "library"])
525
+ ], SlIcon.prototype, "setIcon", 1);
526
+
527
+ export { SlIcon as S, T, __spreadProps as _, __spreadValues as a, __decorateClass as b, component_styles_default as c, watch as d, ShoelaceElement as e, f, r as g, i$2 as i, m, n, registerIconLibrary as r, u$2 as u, w, x };
528
+
529
+ //# sourceMappingURL=chunk.H33C3MRM.js.map