@foxy.io/elements 1.43.0-beta.3 → 1.43.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 (210) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +1 -1
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-admin-subscription-form.js +1 -1
  6. package/dist/cdn/foxy-api-browser.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  8. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  9. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-card.js +1 -1
  11. package/dist/cdn/foxy-attribute-form.js +1 -1
  12. package/dist/cdn/foxy-billing-address-card.js +1 -1
  13. package/dist/cdn/foxy-cancellation-form.js +1 -1
  14. package/dist/cdn/foxy-cart-card.js +1 -1
  15. package/dist/cdn/foxy-cart-form.js +1 -1
  16. package/dist/cdn/foxy-client-card.js +1 -1
  17. package/dist/cdn/foxy-client-form.js +1 -1
  18. package/dist/cdn/foxy-collection-page.js +1 -1
  19. package/dist/cdn/foxy-collection-pages.js +1 -1
  20. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  21. package/dist/cdn/foxy-coupon-card.js +1 -1
  22. package/dist/cdn/foxy-coupon-code-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  24. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  25. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  26. package/dist/cdn/foxy-coupon-form.js +1 -1
  27. package/dist/cdn/foxy-custom-field-card.js +1 -1
  28. package/dist/cdn/foxy-custom-field-form.js +1 -1
  29. package/dist/cdn/foxy-customer-card.js +1 -1
  30. package/dist/cdn/foxy-customer-form.js +1 -1
  31. package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
  32. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  33. package/dist/cdn/foxy-customer-portal.js +11 -11
  34. package/dist/cdn/foxy-customer.js +1 -1
  35. package/dist/cdn/foxy-customers-table.js +1 -1
  36. package/dist/cdn/foxy-discount-builder.js +1 -1
  37. package/dist/cdn/foxy-discount-card.js +1 -1
  38. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  39. package/dist/cdn/foxy-donation.js +1 -1
  40. package/dist/cdn/foxy-downloadable-card.js +1 -1
  41. package/dist/cdn/foxy-downloadable-form.js +1 -1
  42. package/dist/cdn/foxy-email-template-card.js +1 -1
  43. package/dist/cdn/foxy-email-template-form.js +1 -1
  44. package/dist/cdn/foxy-error-entry-card.js +1 -1
  45. package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
  46. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  47. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  48. package/dist/cdn/foxy-form-dialog.js +1 -1
  49. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  50. package/dist/cdn/foxy-gift-card-card.js +1 -1
  51. package/dist/cdn/foxy-gift-card-code-card.js +1 -1
  52. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  53. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  54. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  55. package/dist/cdn/foxy-gift-card-form.js +1 -1
  56. package/dist/cdn/foxy-i18n-editor.js +1 -1
  57. package/dist/cdn/foxy-i18n.js +1 -1
  58. package/dist/cdn/foxy-integration-card.js +1 -1
  59. package/dist/cdn/foxy-integration-form.js +1 -1
  60. package/dist/cdn/foxy-item-card.js +1 -1
  61. package/dist/cdn/foxy-item-category-card.js +1 -1
  62. package/dist/cdn/foxy-item-category-form.js +1 -1
  63. package/dist/cdn/foxy-item-form.js +1 -1
  64. package/dist/cdn/foxy-item-option-card.js +1 -1
  65. package/dist/cdn/foxy-item-option-form.js +1 -1
  66. package/dist/cdn/foxy-items-form.js +1 -1
  67. package/dist/cdn/foxy-native-integration-card.js +1 -1
  68. package/dist/cdn/foxy-native-integration-form.js +1 -1
  69. package/dist/cdn/foxy-pagination.js +1 -1
  70. package/dist/cdn/foxy-passkey-card.js +1 -1
  71. package/dist/cdn/foxy-passkey-form.js +1 -1
  72. package/dist/cdn/foxy-payment-card-embed.js +1 -1
  73. package/dist/cdn/foxy-payment-card.js +1 -1
  74. package/dist/cdn/foxy-payment-method-card.js +1 -1
  75. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  76. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  77. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  78. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  79. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  80. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  81. package/dist/cdn/foxy-query-builder.js +1 -1
  82. package/dist/cdn/foxy-report-form.js +1 -1
  83. package/dist/cdn/foxy-reports-table.js +1 -1
  84. package/dist/cdn/foxy-shipment-card.js +1 -1
  85. package/dist/cdn/foxy-shipping-container-card.js +1 -1
  86. package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
  87. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  88. package/dist/cdn/foxy-shipping-service-card.js +1 -1
  89. package/dist/cdn/foxy-sign-in-form.js +1 -1
  90. package/dist/cdn/foxy-spinner.js +2 -2
  91. package/dist/cdn/foxy-store-card.js +1 -1
  92. package/dist/cdn/foxy-store-form.js +1 -1
  93. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  94. package/dist/cdn/foxy-subscription-card.js +1 -1
  95. package/dist/cdn/foxy-subscription-form.js +1 -1
  96. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  97. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  98. package/dist/cdn/foxy-table.js +1 -1
  99. package/dist/cdn/foxy-tax-card.js +1 -1
  100. package/dist/cdn/foxy-tax-form.js +1 -1
  101. package/dist/cdn/foxy-template-config-form.js +1 -1
  102. package/dist/cdn/foxy-template-form.js +1 -1
  103. package/dist/cdn/foxy-template-set-card.js +1 -1
  104. package/dist/cdn/foxy-template-set-form.js +1 -1
  105. package/dist/cdn/foxy-transaction-card.js +1 -1
  106. package/dist/cdn/foxy-transaction.js +1 -1
  107. package/dist/cdn/foxy-transactions-table.js +7 -7
  108. package/dist/cdn/foxy-update-payment-method-form.js +1 -1
  109. package/dist/cdn/foxy-user-card.js +1 -1
  110. package/dist/cdn/foxy-user-form.js +1 -1
  111. package/dist/cdn/foxy-user-invitation-card.js +1 -1
  112. package/dist/cdn/foxy-user-invitation-form.js +1 -1
  113. package/dist/cdn/foxy-users-table.js +1 -1
  114. package/dist/cdn/foxy-webhook-card.js +1 -1
  115. package/dist/cdn/foxy-webhook-form.js +1 -1
  116. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  117. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  118. package/dist/cdn/{shared-3558bfae.js → shared-070211c0.js} +1 -1
  119. package/dist/cdn/{shared-457789d7.js → shared-0e605594.js} +1 -1
  120. package/dist/cdn/{shared-206d3153.js → shared-0fa21237.js} +1 -1
  121. package/dist/cdn/{shared-cd3cfea5.js → shared-0fb90a71.js} +1 -1
  122. package/dist/cdn/{shared-6540a584.js → shared-140c6b70.js} +1 -1
  123. package/dist/cdn/{shared-a715e3e5.js → shared-160072f2.js} +1 -1
  124. package/dist/cdn/{shared-7b5bdf0e.js → shared-1b4a3e56.js} +1 -1
  125. package/dist/cdn/{shared-0993c2f5.js → shared-1f95aa71.js} +1 -1
  126. package/dist/cdn/{shared-2ebcaabc.js → shared-28253ef3.js} +1 -1
  127. package/dist/cdn/{shared-5aacbf1f.js → shared-2b328555.js} +1 -1
  128. package/dist/cdn/{shared-8b0d25e5.js → shared-2c7e0ed1.js} +1 -1
  129. package/dist/cdn/shared-2d3bdc6b.js +1 -0
  130. package/dist/cdn/{shared-21a445d9.js → shared-34a7df04.js} +1 -1
  131. package/dist/cdn/{shared-aab4ed2b.js → shared-364b98a1.js} +1 -1
  132. package/dist/cdn/{shared-2c00e6b1.js → shared-3c64ecdd.js} +1 -1
  133. package/dist/cdn/{shared-a3234358.js → shared-3eb6e232.js} +1 -1
  134. package/dist/cdn/{shared-12bab9de.js → shared-3f4549ba.js} +1 -1
  135. package/dist/cdn/{shared-ee689ddc.js → shared-4388f7ea.js} +1 -1
  136. package/dist/cdn/{shared-2f17b0fa.js → shared-46a20973.js} +1 -1
  137. package/dist/cdn/{shared-264bea6b.js → shared-48129732.js} +1 -1
  138. package/dist/cdn/{shared-0584a904.js → shared-50a355d6.js} +1 -1
  139. package/dist/cdn/{shared-9363a954.js → shared-5492f8eb.js} +1 -1
  140. package/dist/cdn/{shared-9006bac2.js → shared-59c064c2.js} +1 -1
  141. package/dist/cdn/{shared-e52d2fdd.js → shared-5a6e4a7b.js} +1 -1
  142. package/dist/cdn/{shared-3e3c5095.js → shared-5af5ab06.js} +1 -1
  143. package/dist/cdn/{shared-03b67a3d.js → shared-6313b188.js} +1 -1
  144. package/dist/cdn/{shared-6a65acb4.js → shared-69c7ad04.js} +1 -1
  145. package/dist/cdn/{shared-5700fbfd.js → shared-742899dc.js} +1 -1
  146. package/dist/cdn/{shared-bdbdf963.js → shared-7d1512e1.js} +1 -1
  147. package/dist/cdn/{shared-74a5f2a4.js → shared-7e18a7d9.js} +1 -1
  148. package/dist/cdn/{shared-3ffa26c1.js → shared-8530fbae.js} +1 -1
  149. package/dist/cdn/{shared-944fab16.js → shared-88a1cb23.js} +1 -1
  150. package/dist/cdn/{shared-90a8d5cf.js → shared-8a570d01.js} +1 -1
  151. package/dist/cdn/{shared-1b627cc5.js → shared-8a743005.js} +1 -1
  152. package/dist/cdn/{shared-76c608e2.js → shared-9884fb7d.js} +1 -1
  153. package/dist/cdn/{shared-ab0bbad5.js → shared-9bfb584b.js} +1 -1
  154. package/dist/cdn/{shared-1af6aa1d.js → shared-a0fbe3ef.js} +5 -5
  155. package/dist/cdn/{shared-998c0ace.js → shared-a16ef278.js} +1 -1
  156. package/dist/cdn/{shared-68d1075b.js → shared-a41ccdc7.js} +3 -3
  157. package/dist/cdn/{shared-aedaf182.js → shared-a4871405.js} +1 -1
  158. package/dist/cdn/{shared-ddda911c.js → shared-a89e8a07.js} +1 -1
  159. package/dist/cdn/{shared-f497cd69.js → shared-acee789f.js} +1 -1
  160. package/dist/cdn/{shared-80dafe85.js → shared-ad8d209a.js} +1 -1
  161. package/dist/cdn/{shared-2db6b377.js → shared-b15efc37.js} +1 -1
  162. package/dist/cdn/{shared-02acac7f.js → shared-c16f05d9.js} +1 -1
  163. package/dist/cdn/{shared-8dd6f543.js → shared-ce0df878.js} +1 -1
  164. package/dist/cdn/{shared-2557c0c4.js → shared-cf6122d9.js} +1 -1
  165. package/dist/cdn/{shared-10c8f21c.js → shared-d3aefd9b.js} +1 -1
  166. package/dist/cdn/{shared-be7af87f.js → shared-d3f37507.js} +1 -1
  167. package/dist/cdn/{shared-19b43f73.js → shared-d4928805.js} +1 -1
  168. package/dist/cdn/{shared-6ebe5ef5.js → shared-d8b0432a.js} +1 -1
  169. package/dist/cdn/{shared-b2bd7666.js → shared-db50afd9.js} +1 -1
  170. package/dist/cdn/shared-dc1fc2e6.js +1 -0
  171. package/dist/cdn/shared-dfe59df6.js +1 -0
  172. package/dist/cdn/{shared-cd0ae051.js → shared-e02936f0.js} +3 -3
  173. package/dist/cdn/{shared-6eebe353.js → shared-e126cf44.js} +2 -2
  174. package/dist/cdn/shared-e82550b1.js +40 -0
  175. package/dist/cdn/{shared-8259d01b.js → shared-ebfb86b5.js} +1 -1
  176. package/dist/cdn/{shared-1c252319.js → shared-f2be9863.js} +1 -1
  177. package/dist/cdn/{shared-109cfbba.js → shared-f2e8070b.js} +1 -1
  178. package/dist/cdn/{shared-13ba9f3a.js → shared-f3590d20.js} +2 -2
  179. package/dist/cdn/{shared-049295b7.js → shared-f7b4a4f6.js} +1 -1
  180. package/dist/cdn/{shared-3e0b2588.js → shared-fa482a7d.js} +1 -1
  181. package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js +5 -4
  182. package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js.map +1 -1
  183. package/dist/elements/internal/InternalSummaryControl/InternalSummaryControl.js +6 -6
  184. package/dist/elements/internal/InternalSummaryControl/InternalSummaryControl.js.map +1 -1
  185. package/dist/elements/public/Donation/Donation.d.ts +3 -0
  186. package/dist/elements/public/Donation/Donation.js +19 -0
  187. package/dist/elements/public/Donation/Donation.js.map +1 -1
  188. package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js +4 -15
  189. package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js.map +1 -1
  190. package/dist/elements/public/QueryBuilder/QueryBuilder.d.ts +2 -0
  191. package/dist/elements/public/QueryBuilder/QueryBuilder.js +5 -0
  192. package/dist/elements/public/QueryBuilder/QueryBuilder.js.map +1 -1
  193. package/dist/elements/public/QueryBuilder/components/AdvancedInput.js +2 -1
  194. package/dist/elements/public/QueryBuilder/components/AdvancedInput.js.map +1 -1
  195. package/dist/elements/public/QueryBuilder/components/SimpleInput.js +9 -2
  196. package/dist/elements/public/QueryBuilder/components/SimpleInput.js.map +1 -1
  197. package/dist/elements/public/QueryBuilder/utils/parse.js +19 -16
  198. package/dist/elements/public/QueryBuilder/utils/parse.js.map +1 -1
  199. package/dist/elements/public/QueryBuilder/utils/stringify.js +22 -45
  200. package/dist/elements/public/QueryBuilder/utils/stringify.js.map +1 -1
  201. package/dist/elements/public/QueryBuilder/utils/zoom.d.ts +3 -0
  202. package/dist/elements/public/QueryBuilder/utils/zoom.js +29 -0
  203. package/dist/elements/public/QueryBuilder/utils/zoom.js.map +1 -0
  204. package/dist/mixins/themeable.js +0 -6
  205. package/dist/mixins/themeable.js.map +1 -1
  206. package/package.json +1 -1
  207. package/dist/cdn/shared-2f1ced90.js +0 -1
  208. package/dist/cdn/shared-88a59a2e.js +0 -1
  209. package/dist/cdn/shared-dd7e85be.js +0 -1
  210. package/dist/cdn/shared-f4be6924.js +0 -40
@@ -1 +1 @@
1
- import"./shared-1af6aa1d.js";import{I as e}from"./shared-049295b7.js";import{x as t}from"./shared-ddda911c.js";import{c as a,h as r}from"./shared-ba5c42c7.js";import{_ as o}from"./shared-7fec42f2.js";import{s as i}from"./shared-2061be9a.js";import{p as l}from"./shared-43e2c3f6.js";import{i as s}from"./shared-53e42a77.js";let n;function m(e){return new Array(7).fill(new Date).map(((t,a)=>{for(;t.getDay()!==a;)t.setDate(t.getDate()+1);return t.toLocaleDateString(e,{weekday:"short"})}))}function h(e){return new Array(7).fill(new Date).map(((t,a)=>{for(;t.getDay()!==a;)t.setDate(t.getDate()+1);return t.toLocaleDateString(e,{weekday:"long"})}))}t("vaadin-date-picker-text-field",a(n||(n=(e=>e)`:host([theme~=summary-item])::before{display:none}:host([theme~=summary-item]) .vaadin-text-field-container{display:grid;grid-template-columns:auto 1fr;grid-template-rows:repeat(3,min-content);gap:0 var(--lumo-space-m)}:host([theme~=summary-item]) [part=label]{font:normal var(--lumo-font-size-m) var(--lumo-font-family);color:var(--lumo-body-text-color)!important;grid-row:1;-webkit-text-fill-color:var(--lumo-body-text-color)!important}:host([theme~=summary-item]) [part=helper-text]{font:normal var(--lumo-font-size-s) var(--lumo-font-family);color:var(--lumo-secondary-text-color)!important;grid-row:2}:host([theme~=summary-item]) [part=helper-text]::before{display:none}:host([theme~=summary-item]) [part=error-message]{font:normal var(--lumo-font-size-s) var(--lumo-font-family);color:var(--lumo-error-text-color);grid-row:3}:host([theme~=summary-item]) [part=error-message],:host([theme~=summary-item]) [part=helper-text],:host([theme~=summary-item]) [part=label]{line-height:var(--lumo-line-height-xs);grid-column:1;padding:0}:host([theme~=summary-item]) [part=input-field]{grid-column:2;grid-row:1;padding:0;background:0 0;align-self:start;height:1em;--lumo-icon-size-m:1rem}:host([theme~=summary-item]) [part=input-field]::after,:host([theme~=summary-item][readonly]) [part=input-field] slot[name=suffix]{display:none}:host([theme~=summary-item]) [part=value]{line-height:var(--lumo-line-height-xs);text-align:right;min-height:auto;padding:0;margin-right:var(--lumo-space-xs);-webkit-mask-image:none}:host([theme~=summary-item][readonly]) [part=value]{margin-right:0}:host([theme~=summary-item]) [part=clear-button]{transform:scale(1.5)}:host([has-value]) slot[name=suffix]{display:none}`)));let u,d=e=>e;customElements.define("foxy-internal-date-control",class extends e{constructor(){super(...arguments),this.format=null,this.layout=null}static get properties(){return o(o({},super.properties),{},{format:{},layout:{}})}renderControl(){var e,t,a;let o;return o="0000-00-00"!==this._value&&this._value?"unix"===this.format?i(new Date(1e3*(null!==(e=this._value)&&void 0!==e?e:0))):"iso-long"===this.format?i(new Date(this._value)):(null!==(t=this._value)&&void 0!==t?t:"").substring(0,10):"",r(u||(u=d` <vaadin-date-picker error-message="${0}" placeholder="${0}" helper-text="${0}" label="${0}" class="w-full" theme="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" .i18n="${0}" clear-button-visible @keydown="${0}" @change="${0}"> </vaadin-date-picker> `),s(this._errorMessage),this.placeholder,this.helperText,this.label,null!==(a=this.layout)&&void 0!==a?a:"standalone",this.disabled,this.readonly,this._checkValidity,o,this.__pickerI18n,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{var t,a,r,o;const i=e.currentTarget;"unix"===this.format?this._value=Math.floor((null!==(a=null===(t=l(i.value))||void 0===t?void 0:t.getTime())&&void 0!==a?a:0)/1e3):"iso-long"===this.format?this._value=null!==(o=null===(r=l(i.value))||void 0===r?void 0:r.toISOString())&&void 0!==o?o:null:this._value=i.value}))}get __pickerI18n(){return{monthNames:(e=this.lang||"en",new Array(12).fill(new Date).map(((t,a)=>(t.setMonth(a),t.toLocaleDateString(e,{month:"long"}))))),weekdays:h(this.lang||"en"),weekdaysShort:m(this.lang||"en"),firstDayOfWeek:0,week:this.t("week"),calendar:this.t("calendar"),clear:this.t("clear"),today:this.t("today"),cancel:this.t("cancel"),referenceDate:"",parseDate:null,formatTitle:(e,t)=>e+" "+t,formatDate:e=>this.t("display_value",{value:new Date(e.year,e.month,e.day)})};var e}});
1
+ import"./shared-a0fbe3ef.js";import{I as e}from"./shared-f7b4a4f6.js";import{x as t}from"./shared-a89e8a07.js";import{c as a,h as r}from"./shared-ba5c42c7.js";import{_ as o}from"./shared-7fec42f2.js";import{s as i}from"./shared-2061be9a.js";import{p as l}from"./shared-43e2c3f6.js";import{i as s}from"./shared-53e42a77.js";let n;function m(e){return new Array(7).fill(new Date).map(((t,a)=>{for(;t.getDay()!==a;)t.setDate(t.getDate()+1);return t.toLocaleDateString(e,{weekday:"short"})}))}function h(e){return new Array(7).fill(new Date).map(((t,a)=>{for(;t.getDay()!==a;)t.setDate(t.getDate()+1);return t.toLocaleDateString(e,{weekday:"long"})}))}t("vaadin-date-picker-text-field",a(n||(n=(e=>e)`:host([theme~=summary-item])::before{display:none}:host([theme~=summary-item]) .vaadin-text-field-container{display:grid;grid-template-columns:auto 1fr;grid-template-rows:repeat(3,min-content);gap:0 var(--lumo-space-m)}:host([theme~=summary-item]) [part=label]{font:normal var(--lumo-font-size-m) var(--lumo-font-family);color:var(--lumo-body-text-color)!important;grid-row:1;-webkit-text-fill-color:var(--lumo-body-text-color)!important}:host([theme~=summary-item]) [part=helper-text]{font:normal var(--lumo-font-size-s) var(--lumo-font-family);color:var(--lumo-secondary-text-color)!important;grid-row:2}:host([theme~=summary-item]) [part=helper-text]::before{display:none}:host([theme~=summary-item]) [part=error-message]{font:normal var(--lumo-font-size-s) var(--lumo-font-family);color:var(--lumo-error-text-color);grid-row:3}:host([theme~=summary-item]) [part=error-message],:host([theme~=summary-item]) [part=helper-text],:host([theme~=summary-item]) [part=label]{line-height:var(--lumo-line-height-xs);grid-column:1;padding:0}:host([theme~=summary-item]) [part=input-field]{grid-column:2;grid-row:1;padding:0;background:0 0;align-self:start;height:1em;--lumo-icon-size-m:1rem}:host([theme~=summary-item]) [part=input-field]::after,:host([theme~=summary-item][readonly]) [part=input-field] slot[name=suffix]{display:none}:host([theme~=summary-item]) [part=value]{line-height:var(--lumo-line-height-xs);text-align:right;min-height:auto;padding:0;margin-right:var(--lumo-space-xs);-webkit-mask-image:none}:host([theme~=summary-item][readonly]) [part=value]{margin-right:0}:host([theme~=summary-item]) [part=clear-button]{transform:scale(1.5)}:host([has-value]) slot[name=suffix]{display:none}`)));let u,d=e=>e;customElements.define("foxy-internal-date-control",class extends e{constructor(){super(...arguments),this.format=null,this.layout=null}static get properties(){return o(o({},super.properties),{},{format:{},layout:{}})}renderControl(){var e,t,a;let o;return o="0000-00-00"!==this._value&&this._value?"unix"===this.format?i(new Date(1e3*(null!==(e=this._value)&&void 0!==e?e:0))):"iso-long"===this.format?i(new Date(this._value)):(null!==(t=this._value)&&void 0!==t?t:"").substring(0,10):"",r(u||(u=d` <vaadin-date-picker error-message="${0}" placeholder="${0}" helper-text="${0}" label="${0}" class="w-full" theme="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" .i18n="${0}" clear-button-visible @keydown="${0}" @change="${0}"> </vaadin-date-picker> `),s(this._errorMessage),this.placeholder,this.helperText,this.label,null!==(a=this.layout)&&void 0!==a?a:"standalone",this.disabled,this.readonly,this._checkValidity,o,this.__pickerI18n,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{var t,a,r,o;const i=e.currentTarget;"unix"===this.format?this._value=Math.floor((null!==(a=null===(t=l(i.value))||void 0===t?void 0:t.getTime())&&void 0!==a?a:0)/1e3):"iso-long"===this.format?this._value=null!==(o=null===(r=l(i.value))||void 0===r?void 0:r.toISOString())&&void 0!==o?o:null:this._value=i.value}))}get __pickerI18n(){return{monthNames:(e=this.lang||"en",new Array(12).fill(new Date).map(((t,a)=>(t.setMonth(a),t.toLocaleDateString(e,{month:"long"}))))),weekdays:h(this.lang||"en"),weekdaysShort:m(this.lang||"en"),firstDayOfWeek:0,week:this.t("week"),calendar:this.t("calendar"),clear:this.t("clear"),today:this.t("today"),cancel:this.t("cancel"),referenceDate:"",parseDate:null,formatTitle:(e,t)=>e+" "+t,formatDate:e=>this.t("display_value",{value:new Date(e.year,e.month,e.day)})};var e}});
@@ -1,4 +1,4 @@
1
- import"./shared-12bab9de.js";import"./shared-2c00e6b1.js";import"./shared-0993c2f5.js";import"./shared-ab0bbad5.js";import{h as e,D as t,t as i,a,P as r}from"./shared-3e3c5095.js";import{C as o}from"./shared-2db6b377.js";import{E as n,T as s}from"./shared-03b67a3d.js";const l=e`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
1
+ import"./shared-3f4549ba.js";import"./shared-3c64ecdd.js";import"./shared-1f95aa71.js";import"./shared-9bfb584b.js";import{h as e,D as t,t as i,a,P as r}from"./shared-5af5ab06.js";import{C as o}from"./shared-b15efc37.js";import{E as n,T as s}from"./shared-6313b188.js";const l=e`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
2
2
  <template>
3
3
  <style include="lumo-required-field lumo-field-button">
4
4
  :host {
@@ -1,4 +1,4 @@
1
- import{h as t,P as e}from"./shared-3e3c5095.js";import{E as i,T as o}from"./shared-03b67a3d.js";import"./shared-12bab9de.js";import"./shared-80dafe85.js";import"./shared-aedaf182.js";import{x as s}from"./shared-ddda911c.js";import{c as n}from"./shared-ba5c42c7.js";s("vcf-tooltip",n`
1
+ import{h as t,P as e}from"./shared-5af5ab06.js";import{E as i,T as o}from"./shared-6313b188.js";import"./shared-3f4549ba.js";import"./shared-ad8d209a.js";import"./shared-a4871405.js";import{x as s}from"./shared-a89e8a07.js";import{c as n}from"./shared-ba5c42c7.js";s("vcf-tooltip",n`
2
2
  :host {
3
3
  /* Sizing */
4
4
  --lumo-tooltip-size: var(--lumo-size-m);
@@ -1 +1 @@
1
- import"./shared-1c252319.js";import"./foxy-collection-page.js";import"./foxy-nucleon-element.js";import"./foxy-pagination.js";import"./shared-7b5bdf0e.js";import{I as e}from"./shared-049295b7.js";import{m as t,_ as i}from"./shared-7fec42f2.js";import{N as r}from"./shared-da95bb48.js";import{i as s}from"./shared-53e42a77.js";import{c as n}from"./shared-4e709717.js";import{h as o,c as l}from"./shared-ba5c42c7.js";import{x as a}from"./shared-ddda911c.js";let d,h,c,u,f,m=e=>e;let p,v=e=>e;customElements.define("foxy-internal-async-resource-link-list-control",class extends e{constructor(){super(...arguments),this.foreignKeyForUri=null,this.foreignKeyForId=null,this.ownKeyForUri=null,this.optionsHref=null,this.linksHref=null,this.embedKey=null,this.ownUri=null,this.limit=20,this.item=null,this.__getItemRenderer=t(((e,t)=>new Function("ctx",`return ctx.html\`\n <${null!=e?e:"foxy-null"}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n infer=""\n ${t?".data=${ctx.data}":"href=${ctx.href}"}\n ...=\${ctx.spread(ctx.props)}\n >\n </${null!=e?e:"foxy-null"}>\``)),((...e)=>e.join())),this.__renderItem=e=>{var t;const i=this.__getItemRenderer(this.item,!!e.data),r=e=>o(d||(d=m` <div style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)">${0}</div> `),e);if(!e.href||e.href.startsWith("foxy://"))return r(i(e));if(this.readonly)return r(i(e));const s=this.foreignKeyForUri,n=s?null===(t=this.__allLinks)||void 0===t?void 0:t.find((t=>t[s]===e.href)):void 0,l=this.disabled||!this.__allLinks||this.__isFetching;return r(o(h||(h=m` <vaadin-checkbox class="block foxy-internal-checkbox-style-0" ?disabled="${0}" ?checked="${0}" @change="${0}"> <div class="transition-opacity ${0}"> ${0} </div> </vaadin-checkbox> `),l,!!n,(t=>{var i,r,s;t.currentTarget.checked?this.__insertLink(null!==(r=null===(i=e.data)||void 0===i?void 0:i._links.self.href)&&void 0!==r?r:""):this.__deleteLink(null!==(s=null==n?void 0:n._links.self.href)&&void 0!==s?s:"")}),l?"opacity-50":"opacity-100",i(e)))},this.__isFetching=!1}static get properties(){return i(i({},super.properties),{},{foreignKeyForUri:{attribute:"foreign-key-for-uri"},foreignKeyForId:{attribute:"foreign-key-for-id"},ownKeyForUri:{attribute:"own-key-for-uri"},optionsHref:{attribute:"options-href"},linksHref:{attribute:"links-href"},embedKey:{attribute:"embed-key"},ownUri:{attribute:"own-uri"},limit:{type:Number},item:{},__isFetching:{attribute:!1}})}static get styles(){return[super.styles,l(c||(c=m`vaadin-checkbox::part(label){margin:0 0 0 calc(.625em + (var(--lumo-border-radius)/ 4) - 1px);align-self:center;flex:1}`))]}renderControl(){var e;let t;try{const i=new URL(null!==(e=this.optionsHref)&&void 0!==e?e:"");i.searchParams.set("limit",this.limit.toString()),t=i.toString()}catch(e){t=void 0}const i=this.__isFetching||!this.__allLinks;return o(u||(u=m` <div class="group"> <div class="mb-s" ?hidden="${0}"> <div class="flex justify-between font-medium text-l" ?hidden="${0}"> <span>${0}</span> <foxy-i18n class="text-m text-tertiary font-normal transition-opacity ${0}" infer="" key="${0}"> </foxy-i18n> </div> <div class="text-secondary text-s" ?hidden="${0}">${0}</div> </div> <foxy-pagination first="${0}" infer="pagination"> <foxy-collection-page infer="card" class="${0}" .item="${0}"> </foxy-collection-page> </foxy-pagination> <div class="mt-s text-s leading-xs text-error" ?hidden="${0}"> ${0} </div> ${0} </div> `),!this.label&&!this.helperText,!this.label,this.label,i?"opacity-100":"opacity-0",this.__isFetching?"status_saving":"status_loading",!this.helperText,this.helperText,s(t),n({"block transition-colors divide-y rounded overflow-hidden":!0,"bg-contrast-5 divide-base":!0}),this.__renderItem,!this._errorMessage||this.disabled||this.readonly,this._errorMessage,this.__renderLinkResourceLoaders())}updated(e){var t,i;super.updated(e),e.has("item")&&(null===(i=(t=this.__getItemRenderer.cache).clear)||void 0===i||i.call(t))}async __insertLink(e){var t,i,s,n,o,l,a;this.__isFetching=!0;const d=new r.API(this),h=await d.fetch(null!==(t=this.linksHref)&&void 0!==t?t:"",{method:"POST",body:JSON.stringify({[null!==(i=this.foreignKeyForUri)&&void 0!==i?i:""]:e,[null!==(s=this.ownKeyForUri)&&void 0!==s?s:""]:this.ownUri})});if(h.ok){const e=await h.json(),t=await d.fetch(e._links.self.href);if(t.ok){const i=r.Rumour(null!==(o=null===(n=this.nucleon)||void 0===n?void 0:n.group)&&void 0!==o?o:""),s=await t.json();console.log({related:[null!==(l=this.linksHref)&&void 0!==l?l:""],source:e._links.self.href,data:s}),i.share({related:[null!==(a=this.linksHref)&&void 0!==a?a:""],source:e._links.self.href,data:s})}}this.__isFetching=!1}async __deleteLink(e){var t,i,s;this.__isFetching=!0;const n=new r.API(this);if((await n.fetch(e,{method:"DELETE"})).ok){r.Rumour(null!==(i=null===(t=this.nucleon)||void 0===t?void 0:t.group)&&void 0!==i?i:"").share({related:[null!==(s=this.linksHref)&&void 0!==s?s:""],source:e,data:null})}this.__isFetching=!1}__renderLinkResourceLoaders(){var e,t,i;const r=200,s=this.renderRoot.querySelector("[data-link-page]"),n=Number(null!==(t=null===(e=null==s?void 0:s.data)||void 0===e?void 0:e.total_items)&&void 0!==t?t:r),l=[];try{for(let e=0;e<Math.max(1,Math.ceil(n/r));e++){const t=new URL(null!==(i=this.linksHref)&&void 0!==i?i:"");t.searchParams.set("offset",String(e*r)),t.searchParams.set("limit",String(r)),l.push(t.toString())}}catch(e){}return l.map((e=>o(f||(f=m` <foxy-nucleon class="hidden" data-link-page infer="" href="${0}" @update="${0}"> </foxy-nucleon> `),e,(()=>this.requestUpdate()))))}get __allLinks(){var e,t;const i=this.embedKey;if(!i)return null;const r=this.renderRoot.querySelectorAll("[data-link-page]"),s=[];for(const n of r){const r=null===(t=null===(e=n.data)||void 0===e?void 0:e._embedded)||void 0===t?void 0:t[i];if(!r)return null;s.push(...r)}return s}});try{a("vaadin-checkbox",l(p||(p=v`:host(.foxy-internal-checkbox-style-0) label{display:flex}`)))}catch(e){}
1
+ import"./shared-f2be9863.js";import"./foxy-collection-page.js";import"./foxy-nucleon-element.js";import"./foxy-pagination.js";import"./shared-1b4a3e56.js";import{I as e}from"./shared-f7b4a4f6.js";import{m as t,_ as i}from"./shared-7fec42f2.js";import{N as r}from"./shared-da95bb48.js";import{i as s}from"./shared-53e42a77.js";import{c as n}from"./shared-4e709717.js";import{h as o,c as a}from"./shared-ba5c42c7.js";import{x as l}from"./shared-a89e8a07.js";let d,h,c,u,f,m=e=>e;let p,v=e=>e;customElements.define("foxy-internal-async-resource-link-list-control",class extends e{constructor(){super(...arguments),this.foreignKeyForUri=null,this.foreignKeyForId=null,this.ownKeyForUri=null,this.optionsHref=null,this.linksHref=null,this.embedKey=null,this.ownUri=null,this.limit=20,this.item=null,this.__getItemRenderer=t(((e,t)=>new Function("ctx",`return ctx.html\`\n <${null!=e?e:"foxy-null"}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n infer=""\n ${t?".data=${ctx.data}":"href=${ctx.href}"}\n ...=\${ctx.spread(ctx.props)}\n >\n </${null!=e?e:"foxy-null"}>\``)),((...e)=>e.join())),this.__renderItem=e=>{var t;const i=this.__getItemRenderer(this.item,!!e.data),r=e=>o(d||(d=m` <div style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)">${0}</div> `),e);if(!e.href||e.href.startsWith("foxy://"))return r(i(e));if(this.readonly)return r(i(e));const s=this.foreignKeyForUri,n=s?null===(t=this.__allLinks)||void 0===t?void 0:t.find((t=>t[s]===e.href)):void 0,a=this.disabled||!this.__allLinks||this.__isFetching;return r(o(h||(h=m` <vaadin-checkbox class="block foxy-internal-checkbox-style-0" ?disabled="${0}" ?checked="${0}" @change="${0}"> <div class="transition-opacity ${0}"> ${0} </div> </vaadin-checkbox> `),a,!!n,(t=>{var i,r,s;t.currentTarget.checked?this.__insertLink(null!==(r=null===(i=e.data)||void 0===i?void 0:i._links.self.href)&&void 0!==r?r:""):this.__deleteLink(null!==(s=null==n?void 0:n._links.self.href)&&void 0!==s?s:"")}),a?"opacity-50":"opacity-100",i(e)))},this.__isFetching=!1}static get properties(){return i(i({},super.properties),{},{foreignKeyForUri:{attribute:"foreign-key-for-uri"},foreignKeyForId:{attribute:"foreign-key-for-id"},ownKeyForUri:{attribute:"own-key-for-uri"},optionsHref:{attribute:"options-href"},linksHref:{attribute:"links-href"},embedKey:{attribute:"embed-key"},ownUri:{attribute:"own-uri"},limit:{type:Number},item:{},__isFetching:{attribute:!1}})}static get styles(){return[super.styles,a(c||(c=m`vaadin-checkbox::part(label){margin:0 0 0 calc(.625em + (var(--lumo-border-radius)/ 4) - 1px);align-self:center;flex:1}`))]}renderControl(){var e;let t;try{const i=new URL(null!==(e=this.optionsHref)&&void 0!==e?e:"");i.searchParams.set("limit",this.limit.toString()),t=i.toString()}catch(e){t=void 0}const i=this.__isFetching||!this.__allLinks;return o(u||(u=m` <div class="group"> <div class="mb-s" ?hidden="${0}"> <div class="flex justify-between font-medium text-l" ?hidden="${0}"> <span>${0}</span> <foxy-i18n class="text-m text-tertiary font-normal transition-opacity ${0}" infer="" key="${0}"> </foxy-i18n> </div> <div class="text-secondary text-s" ?hidden="${0}">${0}</div> </div> <foxy-pagination first="${0}" infer="pagination"> <foxy-collection-page infer="card" class="${0}" .item="${0}"> </foxy-collection-page> </foxy-pagination> <div class="mt-s text-s leading-xs text-error" ?hidden="${0}"> ${0} </div> ${0} </div> `),!this.label&&!this.helperText,!this.label,this.label,i?"opacity-100":"opacity-0",this.__isFetching?"status_saving":"status_loading",!this.helperText,this.helperText,s(t),n({"block transition-colors divide-y rounded overflow-hidden":!0,"bg-contrast-5 divide-base":!0}),this.__renderItem,!this._errorMessage||this.disabled||this.readonly,this._errorMessage,this.__renderLinkResourceLoaders())}updated(e){var t,i;super.updated(e),e.has("item")&&(null===(i=(t=this.__getItemRenderer.cache).clear)||void 0===i||i.call(t))}async __insertLink(e){var t,i,s,n,o,a,l;this.__isFetching=!0;const d=new r.API(this),h=await d.fetch(null!==(t=this.linksHref)&&void 0!==t?t:"",{method:"POST",body:JSON.stringify({[null!==(i=this.foreignKeyForUri)&&void 0!==i?i:""]:e,[null!==(s=this.ownKeyForUri)&&void 0!==s?s:""]:this.ownUri})});if(h.ok){const e=await h.json(),t=await d.fetch(e._links.self.href);if(t.ok){const i=r.Rumour(null!==(o=null===(n=this.nucleon)||void 0===n?void 0:n.group)&&void 0!==o?o:""),s=await t.json();console.log({related:[null!==(a=this.linksHref)&&void 0!==a?a:""],source:e._links.self.href,data:s}),i.share({related:[null!==(l=this.linksHref)&&void 0!==l?l:""],source:e._links.self.href,data:s})}}this.__isFetching=!1}async __deleteLink(e){var t,i,s;this.__isFetching=!0;const n=new r.API(this);if((await n.fetch(e,{method:"DELETE"})).ok){r.Rumour(null!==(i=null===(t=this.nucleon)||void 0===t?void 0:t.group)&&void 0!==i?i:"").share({related:[null!==(s=this.linksHref)&&void 0!==s?s:""],source:e,data:null})}this.__isFetching=!1}__renderLinkResourceLoaders(){var e,t,i;const r=200,s=this.renderRoot.querySelector("[data-link-page]"),n=Number(null!==(t=null===(e=null==s?void 0:s.data)||void 0===e?void 0:e.total_items)&&void 0!==t?t:r),a=[];try{for(let e=0;e<Math.max(1,Math.ceil(n/r));e++){const t=new URL(null!==(i=this.linksHref)&&void 0!==i?i:"");t.searchParams.set("offset",String(e*r)),t.searchParams.set("limit",String(r)),a.push(t.toString())}}catch(e){}return a.map((e=>o(f||(f=m` <foxy-nucleon class="hidden" data-link-page infer="" href="${0}" @update="${0}"> </foxy-nucleon> `),e,(()=>this.requestUpdate()))))}get __allLinks(){var e,t;const i=this.embedKey;if(!i)return null;const r=this.renderRoot.querySelectorAll("[data-link-page]"),s=[];for(const n of r){const r=null===(t=null===(e=n.data)||void 0===e?void 0:e._embedded)||void 0===t?void 0:t[i];if(!r)return null;s.push(...r)}return s}});try{l("vaadin-checkbox",a(p||(p=v`:host(.foxy-internal-checkbox-style-0) label{display:flex}`)))}catch(e){}
@@ -1,4 +1,4 @@
1
- import{f as e,M as t,n as s,c as r,d as n,g as i,V as o,j as l,k as a,l as h,u as d,m as c,o as _,w as u,p,E as m,G as f,q as y,r as b,s as g,D as C,t as S,v,x as P,P as w,y as E,z as O,e as A,A as I}from"./shared-3e3c5095.js";import{q as x,c as T,k as N,h as D,t as M,v as k,f as R}from"./shared-ddda911c.js";
1
+ import{f as e,M as t,n as s,c as r,d as n,g as i,V as o,j as l,k as a,l as h,u as d,m as c,o as _,w as u,p,E as m,G as f,q as y,r as b,s as g,D as C,t as S,v,x as P,P as w,y as E,z as O,e as A,A as I}from"./shared-5af5ab06.js";import{q as x,c as T,k as N,h as D,t as M,v as k,f as R}from"./shared-a89e8a07.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1 +1 @@
1
- import"./shared-12bab9de.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-badge">\n <template>\n <style>\n [theme~="badge"] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 0.4em calc(0.5em + var(--lumo-border-radius-s) / 4);\n color: var(--lumo-primary-text-color);\n background-color: var(--lumo-primary-color-10pct);\n border-radius: var(--lumo-border-radius-s);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-s);\n line-height: 1;\n font-weight: 500;\n text-transform: initial;\n letter-spacing: initial;\n min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);\n }\n\n /* Ensure proper vertical alignment */\n [theme~="badge"]::before {\n display: inline-block;\n content: "\\2003";\n width: 0;\n }\n\n [theme~="badge"][theme~="small"] {\n font-size: var(--lumo-font-size-xxs);\n line-height: 1;\n }\n\n /* Colors */\n\n [theme~="badge"][theme~="success"] {\n color: var(--lumo-success-text-color);\n background-color: var(--lumo-success-color-10pct);\n }\n\n [theme~="badge"][theme~="error"] {\n color: var(--lumo-error-text-color);\n background-color: var(--lumo-error-color-10pct);\n }\n\n [theme~="badge"][theme~="contrast"] {\n color: var(--lumo-contrast-80pct);\n background-color: var(--lumo-contrast-5pct);\n }\n\n /* Primary */\n\n [theme~="badge"][theme~="primary"] {\n color: var(--lumo-primary-contrast-color);\n background-color: var(--lumo-primary-color);\n }\n\n [theme~="badge"][theme~="success"][theme~="primary"] {\n color: var(--lumo-success-contrast-color);\n background-color: var(--lumo-success-color);\n }\n\n [theme~="badge"][theme~="error"][theme~="primary"] {\n color: var(--lumo-error-contrast-color);\n background-color: var(--lumo-error-color);\n }\n\n [theme~="badge"][theme~="contrast"][theme~="primary"] {\n color: var(--lumo-base-color);\n background-color: var(--lumo-contrast);\n }\n\n /* Links */\n\n [theme~="badge"][href]:hover {\n text-decoration: none;\n }\n\n /* Icon */\n\n [theme~="badge"] iron-icon {\n margin: -0.25em 0;\n --iron-icon-width: 1.5em;\n --iron-icon-height: 1.5em;\n }\n\n [theme~="badge"] iron-icon:first-child {\n margin-left: -0.375em;\n }\n\n [theme~="badge"] iron-icon:last-child {\n margin-right: -0.375em;\n }\n\n [theme~="badge"][icon] {\n min-width: 0;\n padding: 0;\n font-size: 1rem;\n --iron-icon-width: var(--lumo-icon-size-m);\n --iron-icon-height: var(--lumo-icon-size-m);\n }\n\n [theme~="badge"][icon][theme~="small"] {\n --iron-icon-width: var(--lumo-icon-size-s);\n --iron-icon-height: var(--lumo-icon-size-s);\n }\n\n /* Empty */\n\n [theme~="badge"]:not([icon]):empty {\n min-width: 0;\n width: 1em;\n height: 1em;\n padding: 0;\n border-radius: 50%;\n background-color: var(--lumo-primary-color);\n }\n\n [theme~="badge"][theme~="small"]:not([icon]):empty {\n width: 0.75em;\n height: 0.75em;\n }\n\n [theme~="badge"][theme~="contrast"]:not([icon]):empty {\n background-color: var(--lumo-contrast);\n }\n\n [theme~="badge"][theme~="success"]:not([icon]):empty {\n background-color: var(--lumo-success-color);\n }\n\n [theme~="badge"][theme~="error"]:not([icon]):empty {\n background-color: var(--lumo-error-color);\n }\n\n /* Pill */\n\n [theme~="badge"][theme~="pill"] {\n --lumo-border-radius-s: 1em;\n }\n\n /* RTL specific styles */\n\n [dir="rtl"][theme~="badge"] iron-icon:first-child {\n margin-right: -0.375em;\n margin-left: 0;\n }\n\n [dir="rtl"][theme~="badge"] iron-icon:last-child {\n margin-left: -0.375em;\n margin-right: 0;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);
1
+ import"./shared-3f4549ba.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-badge">\n <template>\n <style>\n [theme~="badge"] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n padding: 0.4em calc(0.5em + var(--lumo-border-radius-s) / 4);\n color: var(--lumo-primary-text-color);\n background-color: var(--lumo-primary-color-10pct);\n border-radius: var(--lumo-border-radius-s);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-s);\n line-height: 1;\n font-weight: 500;\n text-transform: initial;\n letter-spacing: initial;\n min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);\n }\n\n /* Ensure proper vertical alignment */\n [theme~="badge"]::before {\n display: inline-block;\n content: "\\2003";\n width: 0;\n }\n\n [theme~="badge"][theme~="small"] {\n font-size: var(--lumo-font-size-xxs);\n line-height: 1;\n }\n\n /* Colors */\n\n [theme~="badge"][theme~="success"] {\n color: var(--lumo-success-text-color);\n background-color: var(--lumo-success-color-10pct);\n }\n\n [theme~="badge"][theme~="error"] {\n color: var(--lumo-error-text-color);\n background-color: var(--lumo-error-color-10pct);\n }\n\n [theme~="badge"][theme~="contrast"] {\n color: var(--lumo-contrast-80pct);\n background-color: var(--lumo-contrast-5pct);\n }\n\n /* Primary */\n\n [theme~="badge"][theme~="primary"] {\n color: var(--lumo-primary-contrast-color);\n background-color: var(--lumo-primary-color);\n }\n\n [theme~="badge"][theme~="success"][theme~="primary"] {\n color: var(--lumo-success-contrast-color);\n background-color: var(--lumo-success-color);\n }\n\n [theme~="badge"][theme~="error"][theme~="primary"] {\n color: var(--lumo-error-contrast-color);\n background-color: var(--lumo-error-color);\n }\n\n [theme~="badge"][theme~="contrast"][theme~="primary"] {\n color: var(--lumo-base-color);\n background-color: var(--lumo-contrast);\n }\n\n /* Links */\n\n [theme~="badge"][href]:hover {\n text-decoration: none;\n }\n\n /* Icon */\n\n [theme~="badge"] iron-icon {\n margin: -0.25em 0;\n --iron-icon-width: 1.5em;\n --iron-icon-height: 1.5em;\n }\n\n [theme~="badge"] iron-icon:first-child {\n margin-left: -0.375em;\n }\n\n [theme~="badge"] iron-icon:last-child {\n margin-right: -0.375em;\n }\n\n [theme~="badge"][icon] {\n min-width: 0;\n padding: 0;\n font-size: 1rem;\n --iron-icon-width: var(--lumo-icon-size-m);\n --iron-icon-height: var(--lumo-icon-size-m);\n }\n\n [theme~="badge"][icon][theme~="small"] {\n --iron-icon-width: var(--lumo-icon-size-s);\n --iron-icon-height: var(--lumo-icon-size-s);\n }\n\n /* Empty */\n\n [theme~="badge"]:not([icon]):empty {\n min-width: 0;\n width: 1em;\n height: 1em;\n padding: 0;\n border-radius: 50%;\n background-color: var(--lumo-primary-color);\n }\n\n [theme~="badge"][theme~="small"]:not([icon]):empty {\n width: 0.75em;\n height: 0.75em;\n }\n\n [theme~="badge"][theme~="contrast"]:not([icon]):empty {\n background-color: var(--lumo-contrast);\n }\n\n [theme~="badge"][theme~="success"]:not([icon]):empty {\n background-color: var(--lumo-success-color);\n }\n\n [theme~="badge"][theme~="error"]:not([icon]):empty {\n background-color: var(--lumo-error-color);\n }\n\n /* Pill */\n\n [theme~="badge"][theme~="pill"] {\n --lumo-border-radius-s: 1em;\n }\n\n /* RTL specific styles */\n\n [dir="rtl"][theme~="badge"] iron-icon:first-child {\n margin-right: -0.375em;\n margin-left: 0;\n }\n\n [dir="rtl"][theme~="badge"] iron-icon:last-child {\n margin-left: -0.375em;\n margin-right: 0;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);
@@ -1,4 +1,4 @@
1
- import"./shared-12bab9de.js";import"./shared-9006bac2.js";import{h as e,P as t,D as i,t as s,a as o,p as n,i as r,e as a,y as l,z as h}from"./shared-3e3c5095.js";import"./shared-0993c2f5.js";import{T as d,D as c,E as u}from"./shared-03b67a3d.js";import{a as _,I as m,b as p}from"./shared-cd0ae051.js";import"./shared-ab0bbad5.js";import"./shared-8dd6f543.js";import{C as v}from"./shared-2db6b377.js";import{t as f,m as g,F as y,P as b,f as I,d as x,O as w,D as S,a as C}from"./shared-be7af87f.js";
1
+ import"./shared-3f4549ba.js";import"./shared-59c064c2.js";import{h as e,P as t,D as i,t as s,a as o,p as n,i as r,e as a,y as l,z as h}from"./shared-5af5ab06.js";import"./shared-1f95aa71.js";import{T as d,D as c,E as u}from"./shared-6313b188.js";import{a as _,I as m,b as p}from"./shared-e02936f0.js";import"./shared-9bfb584b.js";import"./shared-ce0df878.js";import{C as v}from"./shared-b15efc37.js";import{t as f,m as g,F as y,P as b,f as I,d as x,O as w,D as S,a as C}from"./shared-d3f37507.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1,4 +1,4 @@
1
- import"./shared-12bab9de.js";import{h as e,G as t,P as r}from"./shared-3e3c5095.js";import{E as o,T as i,D as s}from"./shared-03b67a3d.js";import{C as a}from"./shared-2db6b377.js";import"./shared-2c00e6b1.js";import{F as l}from"./shared-be7af87f.js";import{I as n}from"./shared-049295b7.js";import"./shared-7b5bdf0e.js";import{_ as d}from"./shared-7fec42f2.js";import{i as h}from"./shared-53e42a77.js";import{c,h as u}from"./shared-ba5c42c7.js";import{c as p}from"./shared-4e709717.js";import{x as b}from"./shared-ddda911c.js";const m=e`<dom-module id="lumo-radio-button" theme-for="vaadin-radio-button">
1
+ import"./shared-3f4549ba.js";import{h as e,G as t,P as r}from"./shared-5af5ab06.js";import{E as o,T as i,D as s}from"./shared-6313b188.js";import{C as a}from"./shared-b15efc37.js";import"./shared-3c64ecdd.js";import{F as l}from"./shared-d3f37507.js";import{I as n}from"./shared-f7b4a4f6.js";import"./shared-1b4a3e56.js";import{_ as d}from"./shared-7fec42f2.js";import{i as h}from"./shared-53e42a77.js";import{c,h as u}from"./shared-ba5c42c7.js";import{c as p}from"./shared-4e709717.js";import{x as b}from"./shared-a89e8a07.js";const m=e`<dom-module id="lumo-radio-button" theme-for="vaadin-radio-button">
2
2
  <template>
3
3
  <style>
4
4
  :host {
@@ -0,0 +1 @@
1
+ import"./shared-742899dc.js";import"./shared-ce0df878.js";import{I as e}from"./shared-f7b4a4f6.js";import{i as a}from"./shared-53e42a77.js";import{h as r}from"./shared-ba5c42c7.js";let t,s=e=>e;customElements.define("foxy-internal-text-area-control",class extends e{renderControl(){return r(t||(t=s` <vaadin-text-area error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-text-area> `),a(this._errorMessage),this.helperText,this.placeholder,this.label,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var a;return"Enter"===e.key&&(null===(a=this.nucleon)||void 0===a?void 0:a.submit())}),(e=>{const a=e.currentTarget;this._value=a.value}))}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}});
@@ -0,0 +1 @@
1
+ import"./foxy-spinner.js";import{I as e}from"./shared-160072f2.js";customElements.define("foxy-internal-card",e);
@@ -1,4 +1,4 @@
1
- import{t as e}from"./shared-ddda911c.js";import{d as t}from"./shared-be7af87f.js";
1
+ import{t as e}from"./shared-a89e8a07.js";import{d as t}from"./shared-d3f37507.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -12,7 +12,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12
12
  @license
13
13
  Copyright (c) 2017 Vaadin Ltd.
14
14
  This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
15
- */const d=e=>class extends e{static get properties(){return{_hasVaadinItemMixin:{value:!0},disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");null!==e&&(this.value=e),this.addEventListener("focus",(e=>this._setFocused(!0)),!0),this.addEventListener("blur",(e=>this._setFocused(!1)),!0),this.addEventListener("mousedown",(e=>{this._setActive(this._mousedown=!0);const t=()=>{this._setActive(this._mousedown=!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)})),this.addEventListener("keydown",(e=>this._onKeydown(e))),this.addEventListener("keyup",(e=>this._onKeyup(e)))}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("active")&&this._setFocused(!1)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){e?(this.selected=!1,this.setAttribute("aria-disabled","true"),this.blur()):this.removeAttribute("aria-disabled")}_setFocused(e){e?(this.setAttribute("focused",""),this._mousedown||this.setAttribute("focus-ring","")):(this.removeAttribute("focused"),this.removeAttribute("focus-ring"),this._setActive(!1))}_setActive(e){e?this.setAttribute("active",""):this.removeAttribute("active")}_onKeydown(e){/^( |SpaceBar|Enter)$/.test(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this._setActive(!0))}_onKeyup(e){this.hasAttribute("active")&&(this._setActive(!1),this.click())}}
15
+ */const h=e=>class extends e{static get properties(){return{_hasVaadinItemMixin:{value:!0},disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");null!==e&&(this.value=e),this.addEventListener("focus",(e=>this._setFocused(!0)),!0),this.addEventListener("blur",(e=>this._setFocused(!1)),!0),this.addEventListener("mousedown",(e=>{this._setActive(this._mousedown=!0);const t=()=>{this._setActive(this._mousedown=!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)})),this.addEventListener("keydown",(e=>this._onKeydown(e))),this.addEventListener("keyup",(e=>this._onKeyup(e)))}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("active")&&this._setFocused(!1)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){e?(this.selected=!1,this.setAttribute("aria-disabled","true"),this.blur()):this.removeAttribute("aria-disabled")}_setFocused(e){e?(this.setAttribute("focused",""),this._mousedown||this.setAttribute("focus-ring","")):(this.removeAttribute("focused"),this.removeAttribute("focus-ring"),this._setActive(!1))}_setActive(e){e?this.setAttribute("active",""):this.removeAttribute("active")}_onKeydown(e){/^( |SpaceBar|Enter)$/.test(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this._setActive(!0))}_onKeyup(e){this.hasAttribute("active")&&(this._setActive(!1),this.click())}}
16
16
  /**
17
17
  @license
18
18
  Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
@@ -22,4 +22,4 @@ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
22
22
  found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
23
23
  part of the polymer project is also subject to an additional IP rights grant
24
24
  found at http://polymer.github.io/PATENTS.txt
25
- */;var h=new Set;const u={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(h.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach((function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)}),this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),this._parentResizable=e,e&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(t){this._notifyingDescendant?t.stopPropagation():e||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var i=t(e).rootTarget;i!==this&&(i.assignParentResizable(this),this._notifyDescendant(i),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(h.forEach((function(e){e!==this&&e._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?h.delete(this):h.add(this)}};export{d as I,r as a,u as b};
25
+ */;var d=new Set;const u={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(d.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach((function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)}),this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),this._parentResizable=e,e&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(t){this._notifyingDescendant?t.stopPropagation():e||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var i=t(e).rootTarget;i!==this&&(i.assignParentResizable(this),this._notifyDescendant(i),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(d.forEach((function(e){e!==this&&e._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?d.delete(this):d.add(this)}};export{h as I,r as a,u as b};
@@ -1,4 +1,4 @@
1
- import{C as e}from"./shared-1c252319.js";import"./shared-12bab9de.js";import"./shared-2c00e6b1.js";import{h as t,P as r}from"./shared-3e3c5095.js";import{F as o}from"./shared-be7af87f.js";import{T as a,D as s}from"./shared-03b67a3d.js";import{I as l}from"./shared-049295b7.js";import"./shared-7b5bdf0e.js";import{_ as i}from"./shared-7fec42f2.js";import{i as h}from"./shared-53e42a77.js";import{h as d}from"./shared-ba5c42c7.js";const n=t`<dom-module id="lumo-checkbox-group" theme-for="vaadin-checkbox-group">
1
+ import{C as e}from"./shared-f2be9863.js";import"./shared-3f4549ba.js";import"./shared-3c64ecdd.js";import{h as t,P as r}from"./shared-5af5ab06.js";import{F as o}from"./shared-d3f37507.js";import{T as a,D as s}from"./shared-6313b188.js";import{I as l}from"./shared-f7b4a4f6.js";import"./shared-1b4a3e56.js";import{_ as i}from"./shared-7fec42f2.js";import{i as h}from"./shared-53e42a77.js";import{h as d}from"./shared-ba5c42c7.js";const n=t`<dom-module id="lumo-checkbox-group" theme-for="vaadin-checkbox-group">
2
2
  <template>
3
3
  <style include="lumo-required-field">
4
4
  :host {
@@ -147,4 +147,4 @@ class c extends(a(s(r))){static get template(){return t`
147
147
  <div part="error-message" aria-live="assertive" aria-hidden\$="[[_getErrorMessageAriaHidden(invalid, errorMessage)]]">[[errorMessage]]</div>
148
148
 
149
149
  </div>
150
- `}static get is(){return"vaadin-checkbox-group"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0,observer:"_disabledChanged"},label:{type:String,value:"",observer:"_labelChanged"},value:{type:Array,value:()=>[],notify:!0},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},required:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_hasSlottedHelper:Boolean}}static get observers(){return["_updateValue(value, value.splices)"]}ready(){super.ready(),this.addEventListener("focusin",(()=>this._setFocused(this._containsFocus()))),this.addEventListener("focusout",(e=>{this._checkboxes.some((t=>e.relatedTarget===t||t.shadowRoot.contains(e.relatedTarget)))||(this.validate(),this._setFocused(!1))}));const e=e=>{this._changeSelectedCheckbox(e.target)};this._observer=new o(this,(t=>{const r=this._filterCheckboxes(t.addedNodes);r.forEach((t=>{t.addEventListener("checked-changed",e),this.disabled&&(t.disabled=!0),t.checked?this._addCheckboxToValue(t.value):this.value.indexOf(t.value)>-1&&(t.checked=!0)})),this._filterCheckboxes(t.removedNodes).forEach((t=>{t.removeEventListener("checked-changed",e),t.checked&&this._removeCheckboxFromValue(t.value)})),this._setOrToggleHasHelperAttribute();r.every((e=>{const{value:t}=e;return e.hasAttribute("value")||t&&"on"!==t}))||console.warn("Please add value attribute to all checkboxes in checkbox group")}))}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}validate(){const e=!(this.required&&0===this.value.length);return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}get _checkboxes(){return this._filterCheckboxes(this.querySelectorAll("*"))}_filterCheckboxes(t){return Array.from(t).filter((t=>t instanceof e))}_disabledChanged(e){this.setAttribute("aria-disabled",e),this._checkboxes.forEach((t=>t.disabled=e))}_addCheckboxToValue(e){-1===this.value.indexOf(e)&&(this.value=this.value.concat(e))}_removeCheckboxFromValue(e){this.value=this.value.filter((t=>t!==e))}_changeSelectedCheckbox(e){this._updatingValue||(e.checked?this._addCheckboxToValue(e.value):this._removeCheckboxFromValue(e.value))}_updateValue(e,t){0===e.length&&void 0===this._oldValue||(e.length?this.setAttribute("has-value",""):this.removeAttribute("has-value"),this._oldValue=e,this._updatingValue=!0,this._checkboxes.forEach((t=>{t.checked=e.indexOf(t.value)>-1})),this._updatingValue=!1,this.validate())}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e)}_setOrToggleAttribute(e,t){e&&(t?this.setAttribute(e,"boolean"==typeof t?"":t):this.removeAttribute(e))}_getErrorMessageAriaHidden(e,t){return(!t||!e).toString()}_containsFocus(){const e=this.getRootNode(),t=void 0!==e._activeElement?e._activeElement:e.activeElement;return this.contains(t)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused")}_setOrToggleHasHelperAttribute(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes();this._hasSlottedHelper=e.filter((e=>3!==e.nodeType)).length>0,this._setOrToggleAttribute("has-helper",this._hasSlottedHelper?"slotted":!!this.helperText)}_getHelperTextAriaHidden(e,t){return(!(e||t)).toString()}}customElements.define(c.is,c);let u,p,b=e=>e;customElements.define("foxy-internal-checkbox-group-control",class extends l{constructor(){super(...arguments),this.options=[],this.theme=null}static get properties(){return i(i({},super.properties),{},{options:{type:Array},theme:{type:String}})}renderControl(){var e;return d(u||(u=b` <vaadin-checkbox-group error-message="${0}" helper-text="${0}" label="${0}" class="w-full" theme="${0}" ?disabled="${0}" .checkValidity="${0}" .value="${0}"> ${0} </vaadin-checkbox-group> `),h(this._errorMessage),this.helperText,this.label,h(null!==(e=this.theme)&&void 0!==e?e:void 0),this.disabled||this.readonly,this._checkValidity,this._value,this.options.map((e=>d(p||(p=b` <vaadin-checkbox value="${0}" @change="${0}"> <foxy-i18n infer="" key="${0}"></foxy-i18n> </vaadin-checkbox> `),e.value,(e=>{const t=e.currentTarget.closest("vaadin-checkbox-group").querySelectorAll("vaadin-checkbox");this._value=Array.from(t).reduce(((e,t)=>t.checked?[...e,t.value]:e),[])}),e.label))))}});
150
+ `}static get is(){return"vaadin-checkbox-group"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0,observer:"_disabledChanged"},label:{type:String,value:"",observer:"_labelChanged"},value:{type:Array,value:()=>[],notify:!0},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},required:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_hasSlottedHelper:Boolean}}static get observers(){return["_updateValue(value, value.splices)"]}ready(){super.ready(),this.addEventListener("focusin",(()=>this._setFocused(this._containsFocus()))),this.addEventListener("focusout",(e=>{this._checkboxes.some((t=>e.relatedTarget===t||t.shadowRoot.contains(e.relatedTarget)))||(this.validate(),this._setFocused(!1))}));const e=e=>{this._changeSelectedCheckbox(e.target)};this._observer=new o(this,(t=>{const r=this._filterCheckboxes(t.addedNodes);r.forEach((t=>{t.addEventListener("checked-changed",e),this.disabled&&(t.disabled=!0),t.checked?this._addCheckboxToValue(t.value):this.value.indexOf(t.value)>-1&&(t.checked=!0)})),this._filterCheckboxes(t.removedNodes).forEach((t=>{t.removeEventListener("checked-changed",e),t.checked&&this._removeCheckboxFromValue(t.value)})),this._setOrToggleHasHelperAttribute();r.every((e=>{const{value:t}=e;return e.hasAttribute("value")||t&&"on"!==t}))||console.warn("Please add value attribute to all checkboxes in checkbox group")}))}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}validate(){const e=!(this.required&&0===this.value.length);return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}get _checkboxes(){return this._filterCheckboxes(this.querySelectorAll("*"))}_filterCheckboxes(t){return Array.from(t).filter((t=>t instanceof e))}_disabledChanged(e){this.setAttribute("aria-disabled",e),this._checkboxes.forEach((t=>t.disabled=e))}_addCheckboxToValue(e){-1===this.value.indexOf(e)&&(this.value=this.value.concat(e))}_removeCheckboxFromValue(e){this.value=this.value.filter((t=>t!==e))}_changeSelectedCheckbox(e){this._updatingValue||(e.checked?this._addCheckboxToValue(e.value):this._removeCheckboxFromValue(e.value))}_updateValue(e,t){0===e.length&&void 0===this._oldValue||(e.length?this.setAttribute("has-value",""):this.removeAttribute("has-value"),this._oldValue=e,this._updatingValue=!0,this._checkboxes.forEach((t=>{t.checked=e.indexOf(t.value)>-1})),this._updatingValue=!1,this.validate())}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e)}_setOrToggleAttribute(e,t){e&&(t?this.setAttribute(e,"boolean"==typeof t?"":t):this.removeAttribute(e))}_getErrorMessageAriaHidden(e,t){return(!t||!e).toString()}_containsFocus(){const e=this.getRootNode(),t=void 0!==e._activeElement?e._activeElement:e.activeElement;return this.contains(t)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused")}_setOrToggleHasHelperAttribute(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes();this._hasSlottedHelper=e.filter((e=>3!==e.nodeType)).length>0,this._setOrToggleAttribute("has-helper",this._hasSlottedHelper?"slotted":!!this.helperText)}_getHelperTextAriaHidden(e,t){return(!(e||t)).toString()}}customElements.define(c.is,c);let u,p,v=e=>e;customElements.define("foxy-internal-checkbox-group-control",class extends l{constructor(){super(...arguments),this.options=[],this.theme=null}static get properties(){return i(i({},super.properties),{},{options:{type:Array},theme:{type:String}})}renderControl(){var e;return d(u||(u=v` <vaadin-checkbox-group error-message="${0}" helper-text="${0}" label="${0}" class="w-full" theme="${0}" ?disabled="${0}" .checkValidity="${0}" .value="${0}"> ${0} </vaadin-checkbox-group> `),h(this._errorMessage),this.helperText,this.label,h(null!==(e=this.theme)&&void 0!==e?e:void 0),this.disabled||this.readonly,this._checkValidity,this._value,this.options.map((e=>d(p||(p=v` <vaadin-checkbox value="${0}" @change="${0}"> <foxy-i18n infer="" key="${0}"></foxy-i18n> </vaadin-checkbox> `),e.value,(e=>{const t=e.currentTarget.closest("vaadin-checkbox-group").querySelectorAll("vaadin-checkbox");this._value=Array.from(t).reduce(((e,t)=>t.checked?[...e,t.value]:e),[])}),e.label))))}});
@@ -0,0 +1,40 @@
1
+ import"./shared-9884fb7d.js";import"./shared-ad8d209a.js";import"./shared-f3590d20.js";import"./shared-1b4a3e56.js";import{_ as e}from"./shared-7fec42f2.js";import{R as l,T as a,a as n}from"./shared-a89e8a07.js";import{C as t}from"./shared-c782b9fa.js";import{s as r,h as o,c as s,L as i}from"./shared-ba5c42c7.js";import{I as u}from"./shared-0ea750af.js";import{O as d,T as v}from"./shared-8874ec69.js";import{o as c}from"./shared-63c32024.js";import{c as p}from"./shared-4e709717.js";import{r as h}from"./shared-5fd5805c.js";import{i as f}from"./shared-53e42a77.js";import{s as b}from"./shared-2061be9a.js";import{p as g}from"./shared-43e2c3f6.js";let m;const y=r(m||(m=(e=>e)`
2
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M26.4 14.7399C26.4 15.2922 25.9523 15.7399 25.4 15.7399H10.6C10.0477 15.7399 9.60001 15.2922 9.60001 14.7399V14.2C9.60001 13.6477 10.0477 13.2 10.6 13.2H25.4C25.9523 13.2 26.4 13.6477 26.4 14.2V14.7399ZM26.4 21.8C26.4 22.3523 25.9523 22.8 25.4 22.8H10.6C10.0477 22.8 9.60001 22.3523 9.60001 21.8V21.2601C9.60001 20.7078 10.0477 20.2601 10.6 20.2601H25.4C25.9523 20.2601 26.4 20.7078 26.4 21.2601V21.8Z" class="fill-current"/>
4
+ </svg>
5
+ `));let x;const $=r(x||(x=(e=>e)`
6
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
7
+ <path d="M12.8656 14.6695C12.3425 14.4581 12 13.9503 12 13.386C12 12.3748 13.0489 11.7048 13.9663 12.1299L23.8937 16.7295C24.5323 17.0254 24.941 17.6652 24.941 18.369C24.941 19.0735 24.5316 19.7137 23.8921 20.0092L13.971 24.5938C13.0509 25.019 12 24.347 12 23.3334C12 22.7709 12.3394 22.264 12.8594 22.0496L21.341 18.3046L12.8656 14.6695Z" class="fill-current"/>
8
+ </svg>
9
+ `));let C;const w=r(C||(C=(e=>e)`
10
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
11
+ <path d="M12.5 9.8C11.0088 9.8 9.8 11.0088 9.8 12.5V23.5C9.8 24.9912 11.0088 26.2 12.5 26.2H14C14.6627 26.2 15.2 25.6627 15.2 25C15.2 24.3373 14.6627 23.8 14 23.8H13.5C12.782 23.8 12.2 23.218 12.2 22.5V13.5C12.2 12.782 12.782 12.2 13.5 12.2H14C14.6627 12.2 15.2 11.6627 15.2 11C15.2 10.3373 14.6627 9.8 14 9.8H12.5Z" class="fill-current"/>
12
+ <path d="M22 9.8C21.3373 9.8 20.8 10.3373 20.8 11C20.8 11.6627 21.3373 12.2 22 12.2H22.5C23.218 12.2 23.8 12.782 23.8 13.5V22.5C23.8 23.218 23.218 23.8 22.5 23.8H22C21.3373 23.8 20.8 24.3373 20.8 25C20.8 25.6627 21.3373 26.2 22 26.2H23.5C24.9912 26.2 26.2 24.9912 26.2 23.5V12.5C26.2 11.0088 24.9912 9.8 23.5 9.8H22Z" class="fill-current"/>
13
+ </svg>
14
+ `));let _;const L=r(_||(_=(e=>e)`
15
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
16
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.05 23.58L20.04 23.59L17.64 21.19L18.7 20.13L20.05 21.48L22.54 19L23.6 20.06L20.06 23.6L20.05 23.58ZM18 8C12.5 8 8 12.5 8 18C8 23.5 12.5 28 18 28C23.5 28 28 23.5 28 18C28 12.5 23.5 8 18 8ZM13.34 12.28L14.75 13.69L16.16 12.28L17.22 13.34L15.81 14.75L17.22 16.16L16.16 17.22L14.75 15.81L13.34 17.22L12.28 16.16L13.69 14.75L12.28 13.34L13.34 12.28ZM18 26C15.8 26 13.8 25.1 12.3 23.7L23.7 12.3C25.1 13.8 26 15.8 26 18C26 22.4 22.4 26 18 26Z" class="fill-current"/>
17
+ </svg>
18
+ `));let M;const q=r(M||(M=(e=>e)`
19
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
20
+ <path d="M22.8754 22.054C23.3985 22.2655 23.741 22.7733 23.741 23.3375C23.741 24.3487 22.6922 25.0187 21.7747 24.5936L11.8473 19.994C11.2087 19.6981 10.8 19.0583 10.8 18.3545C10.8 17.65 11.2094 17.0098 11.8489 16.7143L21.7701 12.1297C22.6902 11.7045 23.741 12.3765 23.741 13.3902C23.741 13.9526 23.4017 14.4596 22.8816 14.6739L14.4 18.4189L22.8754 22.054Z" class="fill-current"/>
21
+ </svg>
22
+ `));let k;const O=r(k||(k=(e=>e)`
23
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
24
+ <path d="M22.8754 19.654C23.3985 19.8655 23.741 20.3733 23.741 20.9375C23.741 21.9487 22.6922 22.6187 21.7747 22.1936L11.8473 17.594C11.2087 17.2981 10.8 16.6584 10.8 15.9545C10.8 15.25 11.2094 14.6098 11.8489 14.3143L21.7701 9.72971C22.6902 9.30453 23.741 9.97655 23.741 10.9902C23.741 11.5527 23.4017 12.0596 22.8816 12.2739L14.4 16.0189L22.8754 19.654Z" class="fill-current"/>
25
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.9169 20.9941C11.2134 20.3281 11.9937 20.0286 12.6597 20.3251L22.8548 24.8643C23.5208 25.1608 23.8203 25.9411 23.5238 26.6071C23.2273 27.2731 22.447 27.5726 21.781 27.2761L11.5859 22.7369C10.9199 22.4404 10.6204 21.6601 10.9169 20.9941Z" class="fill-current"/>
26
+ </svg>
27
+ `));let S;const H=r(S||(S=(e=>e)`
28
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
29
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M24.0049 7.11C24.6649 7.49107 24.8911 8.33507 24.51 8.99511L13.1621 28.6503C12.781 29.3103 11.937 29.5365 11.277 29.1554C10.6169 28.7743 10.3908 27.9303 10.7719 27.2703L22.1198 7.61511C22.5009 6.95507 23.3448 6.72892 24.0049 7.11Z" class="fill-current"/>
30
+ <path d="M17.5097 13.2H10.8C10.1373 13.2 9.60001 13.7373 9.60001 14.4V14.5399C9.60001 15.2026 10.1373 15.7399 10.8 15.7399H16.0433L17.5097 13.2Z" class="fill-current"/>
31
+ <path d="M13.4336 20.2601H10.8C10.1373 20.2601 9.60001 20.7973 9.60001 21.4601V21.6C9.60001 22.2627 10.1373 22.8 10.8 22.8H11.9671L13.4336 20.2601Z" class="fill-current"/>
32
+ <path d="M17.9254 22.8H25.2C25.8627 22.8 26.4 22.2627 26.4 21.6V21.4601C26.4 20.7973 25.8627 20.2601 25.2 20.2601H19.3918L17.9254 22.8Z" class="fill-current"/>
33
+ <path d="M22.0015 15.7399H25.2C25.8627 15.7399 26.4 15.2026 26.4 14.5399V14.4C26.4 13.7373 25.8627 13.2 25.2 13.2H23.468L22.0015 15.7399Z" class="fill-current"/>
34
+ </svg>
35
+ `));let A;const D=r(A||(A=(e=>e)`
36
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
37
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18 8C12.48 8 8 12.48 8 18C8 23.52 12.48 28 18 28C23.52 28 28 23.52 28 18C28 12.48 23.52 8 18 8ZM18 26C13.59 26 10 22.41 10 18C10 13.59 13.59 10 18 10C22.41 10 26 13.59 26 18C26 22.41 22.41 26 18 26Z" class="fill-current"/>
38
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.49 17.38C19.92 16.16 19.66 14.74 18.68 13.76C17.57 12.65 15.89 12.46 14.58 13.17L16.93 15.52L15.52 16.93L13.17 14.58C12.46 15.9 12.65 17.57 13.76 18.68C14.74 19.66 16.16 19.92 17.38 19.49L20.79 22.9C20.99 23.1 21.3 23.1 21.5 22.9L22.9 21.5C23.1 21.3 23.1 20.99 22.9 20.79L19.49 17.38Z" class="fill-current"/>
39
+ </svg>
40
+ `));let j,Z=e=>e;let I,T,N=e=>e;function z(e){return o(I||(I=N` <label class="relative flex items-center cursor-text group text-tertiary"> <div class="relative flex-1 min-w-0 overflow-hidden"> <input placeholder="${0}" class="${0}" .value="${0}" ?disabled="${0}" @keydown="${0}" @input="${0}"> </div> <span class="${0}"> ${0} </span> ${0} </label> `),e.t(e.label),p({"bg-base relative flex h-m px-s font-medium w-full":!0,"text-body":!e.disabled&&!e.readonly,"text-disabled":e.disabled,"text-secondary":e.readonly,"flex max-w-full whitespace-nowrap":!0,"focus-outline-none":!0}),e.value,e.disabled||e.readonly,(e=>"|"===e.key&&e.preventDefault()),(l=>{const a=l.currentTarget;e.onChange(a.value.replace(/\|/gi,""))}),p({"font-tnum text-xs font-medium border border-current mr-s px-xs rounded-s":!0,"inline-block":!!e.value,"sr-only":!e.value,"text-body":!e.disabled&&!e.readonly,"text-disabled":e.disabled,"text-secondary":e.readonly}),e.t(e.label),e.disabled||e.readonly?"":o(T||(T=N` <div class="absolute inset-0 transition-colors bg-transparent group-hover-bg-contrast-5 pointer-events-none"></div> `)))}let B,V,E=e=>e;function G(l){var a,n;const{isFullSize:t,isNested:r,disableOr:s,readonly:i,disabled:u,rule:v}=l,{t:h,onConvert:f,onDelete:b,onChange:g}=l;return o(B||(B=E` <div class="flex items-center space-x-s" aria-label="${0}"> <div class="${0}"> <div class="bg-contrast-10"> <div class="grid gap-1px grid-vertical sm-grid-horizontal"> <div class="bg-base"> <div aria-hidden="true" class="${0}"> ${0} </div> </div> <div class="bg-base"> ${0} </div> <div class="bg-base">${0}</div> <div class="bg-base"> ${0} </div> </div> </div> </div> <div class="${0}"> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon aria-hidden="true" class="m-auto icon-inline text-xl" icon="icons:remove-circle-outline"> </iron-icon> </button> <button aria-label="${0}" class="${0}" ?disabled="${0}" ?hidden="${0}" @click="${0}"> <iron-icon aria-hidden="true" class="m-auto icon-inline text-xl" icon="icons:add-circle-outline"> </iron-icon> </button> </div> </div> `),h("query_builder_rule"),p({"flex-1 bg-base rounded overflow-hidden border":!0,"border-contrast-10":!r&&!i,"border-contrast-50":!!r||i,"border-dashed":i,"border-solid":!i}),p({"text-tertiary":!i&&!u,"text-disabled":i||u,"w-m h-m":!0}),D,v.path&&v.name?o(V||(V=E` <div class="bg-contrast-10 grid gap-1px grid-cols-1 sm-grid-cols-2"> <div class="bg-base"> ${0} </div> <div class="bg-base"> ${0} </div> </div> `),z(e(e({},l),{},{value:v.path,label:"field",onChange:e=>{g({operator:null,value:"",path:e})}})),z(e(e({},l),{},{value:null!==(a=v.name)&&void 0!==a?a:"",label:"name",onChange:l=>g(e(e({},v),{},{name:l}))}))):z(e(e({},l),{},{value:v.path,label:"field",onChange:e=>g({operator:null,value:"",path:e})})),function(l){const{rule:a,operators:n,disabled:t,readonly:r,t:s,onChange:i}=l,{operator:u,value:v,path:h,name:f}=a,b={[d.GreaterThan]:$,[d.GreaterThanOrEqual]:c,[d.In]:w,[d.IsDefined]:L,[d.LessThan]:q,[d.LessThanOrEqual]:O,[d.Not]:H},g=Object.values(d).filter((e=>n.includes(e)&&(!!f||e!==d.IsDefined))),m=t||r||!g.length||!h;return o(j||(j=Z` <button title="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <div aria-hidden="true">${0}</div> </button> `),s(`operator_${null!=u?u:"equal"}`),p({"flex items-center justify-center w-m h-m transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50":!0,"text-body hover-bg-contrast-5":!m&&g.length>1,"cursor-default text-tertiary":!m&&g.length<=1,"text-disabled cursor-default":m}),m||g.length<=1,(()=>{var l;const n=u?g.indexOf(u):-1,t=null!==(l=g[n+1])&&void 0!==l?l:null;i(e(e({},a),{},{operator:t,value:v}))}),u?b[u]:y)}(l),z(e(e({},l),{},{disabled:u||!v.path,value:null!==(n=v.value)&&void 0!==n?n:"",label:"value",onChange:l=>g(e(e({},v),{},{value:l}))})),p({"-mr-s self-start flex-col sm-flex-row flex-shrink-0 items-center":!0,"border-t border-b border-transparent divide-y divide-transparent":!0,hidden:!!t||i,flex:!t}),h("delete"),p({"box-content flex w-m h-m rounded-full transition-colors":!0,"text-secondary hover-bg-contrast-5 hover-text-error":!u,"cursor-default text-disabled":u,"focus-outline-none focus-ring-2 ring-primary-50":!0,"opacity-0 pointer-events-none":!v.path}),u||i||!v.path,b,h("add_or_clause"),p({"box-content flex w-m h-m rounded-full transition-colors":!0,"text-success hover-bg-contrast-5":!u,"cursor-default text-disabled":u,"focus-outline-none focus-ring-2 ring-primary-50":!0,"opacity-0 pointer-events-none":!v.path||!!r||s}),u||i||!v.path||!!r||s,s,f)}let P,R,F,U,W=e=>e;function Q(l){const a=l.rules.some((e=>Array.isArray(e))),n=o(P||(P=W`<div class="${0}"></div>`),a?"h-xs":"mt-s"),t=o(R||(R=W` <div class="flex items-center h-s"> <div class="w-m text-center leading-none uppercase font-medium text-xs text-contrast-30"> ${0} </div> <div class="flex-1 border-t border-contrast-20"></div> <div class="w-m ml-s flex-shrink-0"></div> <div class="hidden sm-block w-m flex-shrink-0"></div> </div> `),l.t("or"));return o(F||(F=W` <div aria-label="${0}"> ${0} </div> `),l.t("query_builder_group"),h([...l.rules,null],((e,l)=>String(l)),((a,r)=>{const s=r>0?l.isNested?t:n:"";return null===a?[s,G(e(e({},l),{},{rule:{path:"",operator:null,value:""},isFullSize:!l.isNested&&0===l.rules.length,onChange:e=>l.onChange([...l.rules,e])}))]:Array.isArray(a)?[s,o(U||(U=W` <div class="bg-contrast-10 rounded-t-l rounded-b-l p-s -m-s"> ${0} </div> `),Q(e(e({},l),{},{rules:a,isNested:!0,onChange:e=>{const a=[...l.rules],n=e;a[r]=e.length>1?n:n[0],l.onChange(a)}})))]:[s,G(e(e({},l),{},{rule:a,onChange:e=>{const a=[...l.rules];a[r]=e,l.onChange(a)},onDelete:()=>{const e=l.rules.filter(((e,l)=>l!==r));l.onChange(e)},onConvert:()=>{const n=[...l.rules];n[r]=[a,e(e({},a),{},{operator:null,value:""})],l.onChange(n)}}))]})))}let J,K,X,Y,ee,le,ae=e=>e;function ne(e){const{t:l,disabled:a,readonly:n,current:t,options:s,onChange:i}=e;return o(J||(J=ae` <div class="${0}"> ${0} ${0} </div> `),p({"relative flex items-center gap-xs leading-m px-xs -m-xs rounded-s transition-colors":!0,"focus-within-ring-2 focus-within-ring-primary-50":!0,"text-contrast":!a&&!n,"hover-text-contrast-80":!a&&!n,"text-disabled":a,"text-contrast-80":n,"font-medium":!n}),"label"in t?o(K||(K=ae`<foxy-i18n infer="" key="${0}"></foxy-i18n>`),t.label):o(X||(X=ae`<span>${0}</span>`),t.rawLabel),n?"":o(Y||(Y=ae` ${0} <select class="${0}" ?disabled="${0}" @change="${0}"> ${0} </select> `),r(ee||(ee=ae`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="flex-shrink-0" style="width: 1em; height: 1em; transform: scale(1.25)"><path fill-rule="evenodd" d="M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z" clip-rule="evenodd" /></svg>`)),p({"absolute inset-0 opacity-0 focus-outline-none":!0,"cursor-pointer":!a,"cursor-default":a}),a,(e=>i(e.target.value)),s.map((e=>o(le||(le=ae` <option value="${0}" ?selected="${0}"> ${0} </option> `),e.value,e.value===t.value,"label"in e?l(e.label):e.rawLabel)))))}let te,re,oe,se=e=>e;function ie(e){const{disabled:l,readonly:a,layout:n,label:t,value:r,type:s,min:i,t:u,onChange:d}=e;return o(te||(te=se` <label class="flex-shrink-0 flex items-center gap-s relative" style="min-width:${0}rem;max-width:50%"> <foxy-i18n infer="" class="${0}" key="${0}"> </foxy-i18n> <span class="${0}" ?hidden="${0}">${0}</span> ${0} </label> `),"number"===s?"4":"date"===s?"6":"8",p({"sr-only":"fixed"!==n}),t,p({"relative block whitespace-pre text-m":!0,"px-s py-xs -my-xs font-medium opacity-0":!a,"text-contrast-80":a}),"auto-grow"!==n&&!a,r||o(re||(re=se`<foxy-i18n infer="" key="value_empty"></foxy-i18n>`)),a?"":o(oe||(oe=se` <input placeholder="${0}" class="${0}" ?disabled="${0}" type="${0}" min="${0}" .value="${0}" @keydown="${0}" @input="${0}"> `),u("value_empty"),p({"appearance-none transition-all text-body text-m font-medium rounded-s":!0,"bg-base px-s py-xs -my-xs":!0,"opacity-50":l,"absolute inset-0":"auto-grow"===n,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0}),l,f(s),f(i),r,(e=>"|"===e.key&&e.preventDefault()),(e=>{const l=e.currentTarget;d(l.value.replace(/\|/gi,""))})))}let ue,de=e=>e;const ve=e=>{var l;const{operator:a,value:n,name:t}=null!==(l=e.rule)&&void 0!==l?l:{},{disabled:r,readonly:s,t:i}=e,u=d.Not,v=p({"text-disabled":r,"text-contrast-80":s}),c=null===a?"equal":a===u?u:null;return o(ue||(ue=de` <foxy-i18n class="${0}" infer="" key="name"></foxy-i18n> ${0} <foxy-i18n class="${0}" infer="" key="value"></foxy-i18n> ${0} ${0} `),v,ie({layout:"auto-grow",value:t||"",label:"name",type:"text",disabled:r,readonly:s,t:i,onChange:l=>{if(!l)return e.onChange(null);n?e.onChange({name:l}):e.onChange({name:l,operator:d.IsDefined,value:"true"})}}),v,ne({current:{label:c?`operator_${c}`:"value_any",value:null!=c?c:"any"},options:[{label:"value_any",value:"any"},{label:"operator_equal",value:"equal"},{label:"operator_not",value:u}],disabled:r,readonly:s,t:i,onChange:l=>{if("any"!==l)return e.onChange({operator:"equal"===l?null:l,value:a===d.IsDefined?"":null!=n?n:"",name:null!=t?t:""});e.onChange(t?{operator:d.IsDefined,value:"true"}:null)}}),void 0===n||a===d.IsDefined?"":ie({layout:"auto-grow",label:"value",value:n||"",type:"text",disabled:r,readonly:s,t:i,onChange:l=>e.onChange({value:l})}))},ce=l=>{var a;const n=[{label:"value_any",value:"any"},{label:`${l.option.label}_true`,value:"true"},{label:`${l.option.label}_false`,value:"false"}];return ne(e(e({},l),{},{onChange:e=>l.onChange("any"===e?null:{value:e}),current:null!==(a=n.find((e=>{var a;return e.value===(null===(a=l.rule)||void 0===a?void 0:a.value)})))&&void 0!==a?a:n[0],options:n}))};let pe,he,fe=e=>e;const be=e=>{const{disabled:l,readonly:a,option:n,rule:t,t:r,onChange:s}=e,{min:i,label:u}=n,v=null==t?void 0:t.operator,c=null==t?void 0:t.value.includes(".."),p=null!=v?v:c?"range":"equal",h=void 0===v?"value_any":"range"===p?"range":`operator_${p}`;return o(pe||(pe=fe` ${0} ${0} `),ne({disabled:l,readonly:a,current:{label:h,value:void 0===v?"any":p},options:[{label:"value_any",value:"any"},{label:"operator_equal",value:"equal"},{label:"operator_not",value:d.Not},{label:"operator_lessthanorequal",value:d.LessThanOrEqual},{label:"operator_lessthan",value:d.LessThan},{label:"operator_greaterthanorequal",value:d.GreaterThanOrEqual},{label:"operator_greaterthan",value:d.GreaterThan},{label:"range",value:"range"}],t:r,onChange:e=>{var l,a,r,o;if("any"===e)return s(null);if("range"===e){let e=parseFloat(null!==(l=null==t?void 0:t.value)&&void 0!==l?l:"");return isNaN(e)&&(e=0),s({operator:null,value:`${e}..${e+10}`})}return s({operator:"equal"===e?null:e,value:null!==(o=null!==(a=null==t?void 0:t.value)&&void 0!==a?a:null===(r=n.min)||void 0===r?void 0:r.toString())&&void 0!==o?o:"0"})}}),void 0===(null==t?void 0:t.value)?"":c?o(he||(he=fe` <foxy-i18n infer="" key="range_from"></foxy-i18n> ${0} <foxy-i18n infer="" key="range_to"></foxy-i18n> ${0} `),ie({disabled:l,readonly:a,layout:"auto-grow",label:"range_from",value:null==t?void 0:t.value.split("..")[0],type:"number",min:i,t:r,onChange:e=>{const l=null==t?void 0:t.value.split("..")[1];s({value:`${e||"0"}..${l}`})}}),ie({disabled:l,readonly:a,layout:"auto-grow",label:"range_to",value:null==t?void 0:t.value.split("..")[1],type:"number",min:i,t:r,onChange:e=>{const l=null==t?void 0:t.value.split("..")[0];s({value:`${l}..${e||"0"}`})}})):ie({disabled:l,readonly:a,layout:"auto-grow",label:u,value:(null==t?void 0:t.value)||"",type:"number",min:i,t:r,onChange:e=>s({value:e})}))};let ge,me=e=>e;const ye=e=>{const{disabled:l,readonly:a,option:n,rule:t,t:r,onChange:s}=e,{operator:i}=null!=t?t:{},{label:u}=n;return o(ge||(ge=me` ${0} ${0} `),ne({disabled:l,readonly:a,current:{label:void 0===i?"value_any":`operator_${null!=i?i:"equal"}`,value:void 0===i?"any":null!=i?i:"equal"},options:[{label:"value_any",value:"any"},{label:"operator_equal",value:"equal"},{label:"operator_not",value:d.Not}],t:r,onChange:e=>{var l;return s("any"===e?null:{operator:"equal"===e?null:e,value:null!==(l=null==t?void 0:t.value)&&void 0!==l?l:""})}}),void 0===(null==t?void 0:t.value)?"":ie({disabled:l,readonly:a,layout:"auto-grow",label:u,value:(null==t?void 0:t.value)||"",t:r,onChange:e=>s({value:e})}))};let xe,$e,Ce=e=>e;const we=e=>{var l;const{operator:a,value:n}=null!==(l=e.rule)&&void 0!==l?l:{},{min:t,label:r}=e.option,{disabled:s,readonly:i,t:u,onChange:v}=e,c=null==n?void 0:n.includes(".."),p=null!=a?a:c?"range":"equal",h=void 0===a?"value_any":"range"===p?"range":`operator_${p}`;return o(xe||(xe=Ce` ${0} ${0} `),ne({disabled:s,readonly:i,t:u,current:{label:h,value:void 0===a?"any":p},options:[{label:"value_any",value:"any"},{label:"operator_equal",value:"equal"},{label:"operator_not",value:d.Not},{label:"operator_lessthanorequal",value:d.LessThanOrEqual},{label:"operator_lessthan",value:d.LessThan},{label:"operator_greaterthanorequal",value:d.GreaterThanOrEqual},{label:"operator_greaterthan",value:d.GreaterThan},{label:"range",value:"range"}],onChange:e=>{if("any"===e)return v(null);if("range"===e){const e=new Date(null!=n?n:(new Date).toISOString()),l=new Date(e);e.setMonth(e.getMonth()-1),e.setHours(0,0,0,0),l.setHours(23,59,59,999);const a=e.toISOString(),t=l.toISOString();return v({operator:null,value:`${a}..${t}`})}return v({operator:"equal"===e?null:e,value:null!=n?n:(new Date).toISOString()})}}),void 0===n?"":c?o($e||($e=Ce` ${0} ${0} `),ie({disabled:s,readonly:i,layout:"fixed",label:"range_from",value:b(new Date(n.split("..")[0])),type:"date",min:t,t:u,onChange:e=>{var l,a;const t=null!==(l=g(e))&&void 0!==l?l:new Date,r=new Date(null!==(a=n.split("..")[1])&&void 0!==a?a:Date.now());t.setHours(0,0,0,0),r.setHours(23,59,59,999),v({value:`${t.toISOString()}..${r.toISOString()}`})}}),ie({disabled:s,readonly:i,layout:"fixed",label:"range_to",value:b(new Date(n.split("..")[1])),type:"date",min:t,t:u,onChange:e=>{var l,a;const t=new Date(null!==(l=n.split("..")[0])&&void 0!==l?l:Date.now()),r=null!==(a=g(e))&&void 0!==a?a:new Date;t.setHours(0,0,0,0),r.setHours(23,59,59,999),v({value:`${t.toISOString()}..${r.toISOString()}`})}})):ie({disabled:s,readonly:i,label:r,value:b(new Date(null!=n?n:Date.now())),type:"date",min:t,t:u,onChange:e=>{var l;v({value:(null!==(l=g(e))&&void 0!==l?l:new Date).toISOString()})}}))};let _e,Le=e=>e;const Me=e=>{const{disabled:l,readonly:a,option:n,rule:t,t:r,onChange:s}=e,{list:i}=n,u=null==i?void 0:i.find((e=>e.value===(null==t?void 0:t.value))),v=null==t?void 0:t.operator;return o(_e||(_e=Le` ${0} ${0} `),ne({disabled:l,readonly:a,current:{label:void 0===v?"value_any":`operator_${null!=v?v:"equal"}`,value:void 0===v?"any":null!=v?v:"equal"},options:[{label:"value_any",value:"any"},{label:"operator_equal",value:"equal"},{label:"operator_not",value:d.Not}],t:r,onChange:e=>{var l,a,n;return s("any"===e?null:{operator:"equal"===e?null:e,value:null!==(n=null!==(l=null==t?void 0:t.value)&&void 0!==l?l:null===(a=null==i?void 0:i[0])||void 0===a?void 0:a.value)&&void 0!==n?n:""})}}),void 0===(null==t?void 0:t.value)?"":ne({disabled:l,readonly:a,current:null!=u?u:{label:"value_any",value:""},options:null!=i?i:[],t:r,onChange:e=>s({value:e})}))};let qe,ke,Oe=e=>e;function Se(e){const l=new Set,a=e=>{let a;if("string"==typeof e.name)a=e.path;else{const l=e.path.lastIndexOf(":");if(-1===l)return;a=e.path.substring(0,l)}a.length>0&&l.add(a)};for(const l of e)if(Array.isArray(l))for(const e of l)a(e);else a(l);return Array.from(l).join()}function He(e){let l=e.path;return e.name&&(l+=`:name[${e.name}]`),e.operator&&(l+=`:${e.operator}`),[l,e.value]}function Ae(e,l=!1){const a=new URLSearchParams;for(const l of e)if(Array.isArray(l)){const[e,...n]=l.map(He);if(e&&e[0]){const l=[e[1],...n.map((e=>e.join("=")))];a.append(e[0],l.join("|"))}}else{const[e,n]=He(l);e&&a.append(e,n)}if(!l){const l=Se(e);l?a.set("zoom",l):a.delete("zoom")}return a.toString()}let De;const je=s(De||(De=(e=>e)`.gap-1px{gap:1px}.grid-vertical{grid-template:auto/var(--lumo-size-m) 1fr}:host([sm]) .sm-grid-horizontal{grid-template:auto/var(--lumo-size-m) 1fr var(--lumo-size-m) 1fr}input::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important;pointer-events:none;position:absolute;right:0}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input{-moz-appearance:textfield}foxy-internal-summary-control[layout=details][count]:not([open]){--lumo-contrast-5pct:var(--lumo-primary-color-10pct);color:var(--lumo-primary-text-color)}`));function Ze(e,l){var a;const n=null!==(a=Object.values(d).find((l=>e.endsWith(`:${l}`))))&&void 0!==a?a:null;let t,r=e.substring(0,n?e.lastIndexOf(":"):void 0);const o=e.lastIndexOf("[");return r.endsWith("]")&&-1!==o&&(t=r.substring(o+1,r.length-1),r=r.substring(0,o),r.endsWith(":name")&&(r=r.substring(0,r.length-5))),{name:t,path:r,value:l,operator:n}}function Ie(e){const l=new URLSearchParams(e),a=[];for(const[e,n]of l.entries())n.includes("|")?a.push(n.split("|").map(((l,a)=>0===a?Ze(e,l):Ze(...l.split("="))))):a.push(Ze(e,n));return a}let Te,Ne,ze=e=>e;const Be=t(l(a(n(u(i),"query-builder"))));class Ve extends Be{constructor(){super(...arguments),this.reservedPaths=["zoom","limit","offset","order","fields"],this.disableZoom=!1,this.disableOr=!1,this.operators=Object.values(d),this.docsHref=null,this.options=null,this.value=null,this.__isAdvancedMode=!1}static zoom(e){return Se(Ie(e))}static get properties(){return e(e({},super.properties),{},{reservedPaths:{type:Array,attribute:"reserved-paths"},disableZoom:{type:Boolean,attribute:"disable-zoom"},disableOr:{type:Boolean,attribute:"disable-or"},operators:{type:Array},docsHref:{attribute:"docs-href"},options:{type:Array},value:{},__isAdvancedMode:{attribute:!1}})}static get styles(){return[super.styles,je]}render(){var l,a,n,t,r,s;const i=this.__isSimpleModeSupported,u=Ie(null!==(l=this.value)&&void 0!==l?l:""),d=null!==(a=this.operators)&&void 0!==a?a:[],c=null!==(n=this.options)&&void 0!==n?n:[],h=this.t.bind(this),b=e=>{this.value=Ae(e,this.disableZoom),this.dispatchEvent(new Ve.ChangeEvent("change"))};return i||this.__isAdvancedMode||(this.__isAdvancedMode=!0),o(Te||(Te=ze` <div class="space-y-m"> <div class="grid grid-cols-2 gap-xs p-xs bg-contrast-5 rounded" ?hidden="${0}"> <label class="${0}"> <foxy-i18n infer="" key="mode_simple${0}"> </foxy-i18n> <input class="sr-only" type="radio" name="mode" ?disabled="${0}" ?checked="${0}" @change="${0}"> </label> <label class="${0}"> <foxy-i18n infer="" key="mode_advanced"></foxy-i18n> <input class="sr-only" type="radio" name="mode" ?checked="${0}" @change="${0}"> </label> </div> ${0} </div> `),!(null===(t=this.options)||void 0===t?void 0:t.length),p({"p-xs rounded-s text-center font-medium transition-colors":!0,"bg-base ring-1 ring-contrast-5":!this.__isAdvancedMode&&i,"hover-bg-contrast-5":this.__isAdvancedMode&&i,"focus-within-ring-2 focus-within-ring-inset focus-within-ring-primary-50":!0,"cursor-pointer":i,"text-disabled":!i}),i?"":"_unsupported",!i,!this.__isAdvancedMode,(()=>this.__isAdvancedMode=!1),p({"p-xs rounded-s text-center font-medium cursor-pointer transition-colors":!0,"bg-base ring-1 ring-contrast-5":this.__isAdvancedMode,"hover-bg-contrast-5":!this.__isAdvancedMode,"focus-within-ring-2 focus-within-ring-inset focus-within-ring-primary-50":!0}),this.__isAdvancedMode,(()=>this.__isAdvancedMode=!0),this.__isAdvancedMode||!i?o(Ne||(Ne=ze` <p class="leading-s text-tertiary" ?hidden="${0}"> <foxy-i18n infer="" key="advanced_mode_notice"></foxy-i18n> <a target="_blank" class="cursor-pointer rounded-s text-secondary font-medium hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}" rel="nofollow noreferrer noopener"> <foxy-i18n infer="" key="api_reference_link"></foxy-i18n> </a> </p> ${0} `),null===this.docsHref,f(null!==(r=this.docsHref)&&void 0!==r?r:void 0),Q({disableOr:this.disableOr,disabled:this.disabled,readonly:this.readonly,rules:u,operators:d,onChange:b,options:c,t:h})):null===(s=this.__simpleModeOptions)||void 0===s?void 0:s.map((l=>function(l){var a;const{options:n,layout:t,rules:r,name:s,disabled:i,readonly:u,t:d,onChange:c}=l,h=n.filter((e=>r.find((l=>l.path===e.path)))),b=r.find((e=>"order"===e.path)),g=null===(a=null==b?void 0:b.value)||void 0===a?void 0:a.split(",").map((e=>{const[l,a="asc"]=decodeURIComponent(e).split(" ");return{path:l.trim(),order:a.trim()}}));return o(qe||(qe=Oe` <foxy-internal-summary-control aria-label="${0}" helper-text="" layout="${0}" label="${0}" count="${0}" infer=""> ${0} </foxy-internal-summary-control> `),l.t("query_builder_group"),f(t),t&&s?d(s):"",f(h.length||void 0),n.map((l=>{var a;const{type:n,label:t,list:s,path:h}=l,f={[v.Attribute]:ve,[v.Boolean]:ce,[v.String]:ye,[v.Number]:be,[v.Date]:we,[v.Any]:ye},b=s?Me:f[n],m=null===(a=null==g?void 0:g.find((e=>e.path===h)))||void 0===a?void 0:a.order,y=r.find((e=>e.path===h)),x=!!y||!!m;return o(ke||(ke=Oe` <div aria-label="${0}" class="${0}"> <foxy-i18n infer="" key="${0}"></foxy-i18n> <span class="transform scale-150 mr-auto ${0}">&bull;</span> ${0} ${0} </div> `),d("query_builder_rule"),p({"flex flex-wrap items-center justify-end gap-s":!0,"bg-primary-10 text-primary":x}),t,x?"":"opacity-0",b({disabled:i,readonly:u,option:l,rule:y,t:d,onChange:l=>{if(l&&y)return Object.assign(y,l),c(r);if(l){const a={path:h,value:"",operator:null};return c([...r,e(e({},a),l)])}return c(r.filter((e=>e.path!==h)))}}),n===v.Date||n===v.Number?ne({disabled:i,readonly:u,t:d,current:{label:`order_${null!=m?m:"none"}${m?`_${n}`:""}`,value:null!=m?m:"none"},options:[{label:"order_none",value:"none"},{label:`order_asc_${n}`,value:"asc"},{label:`order_desc_${n}`,value:"desc"}],onChange:e=>{const l=(null!=g?g:[]).filter((e=>e.path!==h)).concat([{path:h,order:e}]).filter((e=>"none"!==e.order)).map((e=>`${e.path} ${e.order}`)).join(),a=r.filter((e=>"order"!==e.path));l&&a.push({path:"order",value:l,operator:null}),c(a)}}):"")})))}(e(e({},l),{},{disabled:this.disabled,readonly:this.readonly,rules:u,onChange:b,t:h})))))}get __isSimpleModeSupported(){var e;if(null===this.options)return!1;if(0===this.options.length)return!1;const l=Ie(null!==(e=this.value)&&void 0!==e?e:"");return 0===l.length||l.every((e=>{var l;return!Array.isArray(e)&&(e.operator!==d.In&&((e.operator!==d.IsDefined||"true"===e.value)&&!(!this.reservedPaths.includes(e.path)&&!(null===(l=this.options)||void 0===l?void 0:l.find((l=>l.path===e.path))))))}))}get __simpleModeOptions(){var l;return null===(l=this.options)||void 0===l?void 0:l.reduce(((l,a)=>{const n=l.find((e=>{var l;return e.name===(null===(l=a.group)||void 0===l?void 0:l.name)}));return n?n.options.push(a):l.push(e(e({},a.group),{},{options:[a]})),l}),[])}}Ve.ChangeEvent=class extends CustomEvent{},Ve.Operator=d,Ve.Type=v,customElements.define("foxy-query-builder",Ve);export{Ve as Q,Ie as p,Ae as s};