@foxy.io/elements 1.43.0-beta.3 → 1.43.0-beta.5

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 (235) 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 +2 -2
  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-a3234358.js → shared-107dc7d7.js} +4 -4
  123. package/dist/cdn/{shared-6540a584.js → shared-140c6b70.js} +1 -1
  124. package/dist/cdn/{shared-a715e3e5.js → shared-160072f2.js} +1 -1
  125. package/dist/cdn/{shared-7b5bdf0e.js → shared-1b4a3e56.js} +1 -1
  126. package/dist/cdn/{shared-0993c2f5.js → shared-1f95aa71.js} +1 -1
  127. package/dist/cdn/{shared-2ebcaabc.js → shared-28253ef3.js} +1 -1
  128. package/dist/cdn/{shared-5aacbf1f.js → shared-2b328555.js} +1 -1
  129. package/dist/cdn/{shared-8b0d25e5.js → shared-2c7e0ed1.js} +1 -1
  130. package/dist/cdn/shared-2d3bdc6b.js +1 -0
  131. package/dist/cdn/{shared-21a445d9.js → shared-34a7df04.js} +1 -1
  132. package/dist/cdn/{shared-aab4ed2b.js → shared-364b98a1.js} +1 -1
  133. package/dist/cdn/{shared-2c00e6b1.js → shared-3c64ecdd.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/cdn/translations/admin-subscription-form/en.json +2 -2
  182. package/dist/cdn/translations/coupon-code-form/en.json +2 -2
  183. package/dist/cdn/translations/coupon-form/en.json +2 -2
  184. package/dist/cdn/translations/customer/en.json +5 -5
  185. package/dist/cdn/translations/customer-portal/de.json +6 -5
  186. package/dist/cdn/translations/customer-portal/en.json +6 -5
  187. package/dist/cdn/translations/customer-portal/es.json +6 -5
  188. package/dist/cdn/translations/customer-portal/fr.json +6 -5
  189. package/dist/cdn/translations/customer-portal/nl.json +6 -5
  190. package/dist/cdn/translations/customer-portal/pl.json +6 -5
  191. package/dist/cdn/translations/customer-portal/sv.json +6 -5
  192. package/dist/cdn/translations/customer-portal/zh-HK.json +6 -5
  193. package/dist/cdn/translations/subscription-card/en.json +2 -1
  194. package/dist/cdn/translations/subscription-form/en.json +2 -2
  195. package/dist/cdn/translations/subscriptions-table/en.json +2 -1
  196. package/dist/cdn/translations/transaction-card/en.json +2 -2
  197. package/dist/cdn/translations/transactions-table/en.json +3 -3
  198. package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js +5 -4
  199. package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js.map +1 -1
  200. package/dist/elements/internal/InternalSummaryControl/InternalSummaryControl.js +6 -6
  201. package/dist/elements/internal/InternalSummaryControl/InternalSummaryControl.js.map +1 -1
  202. package/dist/elements/public/Donation/Donation.d.ts +4 -1
  203. package/dist/elements/public/Donation/Donation.js +22 -1
  204. package/dist/elements/public/Donation/Donation.js.map +1 -1
  205. package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js +4 -15
  206. package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js.map +1 -1
  207. package/dist/elements/public/QueryBuilder/QueryBuilder.d.ts +2 -0
  208. package/dist/elements/public/QueryBuilder/QueryBuilder.js +5 -0
  209. package/dist/elements/public/QueryBuilder/QueryBuilder.js.map +1 -1
  210. package/dist/elements/public/QueryBuilder/components/AdvancedInput.js +2 -1
  211. package/dist/elements/public/QueryBuilder/components/AdvancedInput.js.map +1 -1
  212. package/dist/elements/public/QueryBuilder/components/SimpleInput.js +9 -2
  213. package/dist/elements/public/QueryBuilder/components/SimpleInput.js.map +1 -1
  214. package/dist/elements/public/QueryBuilder/utils/parse.js +19 -16
  215. package/dist/elements/public/QueryBuilder/utils/parse.js.map +1 -1
  216. package/dist/elements/public/QueryBuilder/utils/stringify.js +22 -45
  217. package/dist/elements/public/QueryBuilder/utils/stringify.js.map +1 -1
  218. package/dist/elements/public/QueryBuilder/utils/zoom.d.ts +3 -0
  219. package/dist/elements/public/QueryBuilder/utils/zoom.js +29 -0
  220. package/dist/elements/public/QueryBuilder/utils/zoom.js.map +1 -0
  221. package/dist/elements/public/SubscriptionCard/SubscriptionCard.js +1 -1
  222. package/dist/elements/public/SubscriptionCard/SubscriptionCard.js.map +1 -1
  223. package/dist/elements/public/SubscriptionsTable/SubscriptionsTable.js +1 -1
  224. package/dist/elements/public/SubscriptionsTable/SubscriptionsTable.js.map +1 -1
  225. package/dist/elements/public/TransactionCard/TransactionCard.js +1 -1
  226. package/dist/elements/public/TransactionCard/TransactionCard.js.map +1 -1
  227. package/dist/elements/public/TransactionsTable/TransactionsTable.js +1 -1
  228. package/dist/elements/public/TransactionsTable/TransactionsTable.js.map +1 -1
  229. package/dist/mixins/themeable.js +0 -6
  230. package/dist/mixins/themeable.js.map +1 -1
  231. package/package.json +1 -1
  232. package/dist/cdn/shared-2f1ced90.js +0 -1
  233. package/dist/cdn/shared-88a59a2e.js +0 -1
  234. package/dist/cdn/shared-dd7e85be.js +0 -1
  235. package/dist/cdn/shared-f4be6924.js +0 -40
@@ -1,4 +1,4 @@
1
- import"./shared-12bab9de.js";import{h as e,G as t,P as o}from"./shared-3e3c5095.js";import{E as i,T as r}from"./shared-03b67a3d.js";import{C as a}from"./shared-2db6b377.js";const s=e`<dom-module id="lumo-checkbox" theme-for="vaadin-checkbox">
1
+ import"./shared-3f4549ba.js";import{h as e,G as t,P as o}from"./shared-5af5ab06.js";import{E as i,T as r}from"./shared-6313b188.js";import{C as a}from"./shared-b15efc37.js";const s=e`<dom-module id="lumo-checkbox" theme-for="vaadin-checkbox">
2
2
  <template>
3
3
  <style include="lumo-checkbox-style lumo-checkbox-effects">
4
4
  /* IE11 only */
@@ -1 +1 @@
1
- import"./shared-2db6b377.js";import"./shared-3ffa26c1.js";import{I as e}from"./shared-049295b7.js";import{I as t}from"./shared-3558bfae.js";import"./foxy-copy-to-clipboard.js";import"./foxy-nucleon-element.js";import"./foxy-form-dialog.js";import"./shared-7b5bdf0e.js";import{_ as s,m as i,F as r}from"./shared-7fec42f2.js";import{h as o,s as l}from"./shared-ba5c42c7.js";import{s as a}from"./shared-53e476fd.js";import{g as n}from"./shared-bab2ea2c.js";import{i as d}from"./shared-53e42a77.js";import{c as h}from"./shared-4e709717.js";import{u}from"./shared-da95bb48.js";let c,f=e=>e;let p,y,m,v,x,b,g,$,_=e=>e;customElements.define("foxy-internal-resource-picker-control-form",class extends t{constructor(){super(...arguments),this.selectionProps={}}static get properties(){return s(s({},super.properties),{},{selectionProps:{attribute:!1}})}renderBody(){return o(c||(c=f` <foxy-internal-async-list-control infer="selection" form="foxy-null" hide-delete-button hide-create-button @itemclick="${0}" ...="${0}"> </foxy-internal-async-list-control> `),(e=>{e.preventDefault(),this.edit({selection:e.detail}),this.submit()}),a(this.selectionProps))}}),customElements.define("foxy-internal-resource-picker-control",class extends e{constructor(){super(...arguments),this.getDisplayValueOptions=e=>({resource:e}),this.showCopyIdButton=!1,this.virtualHost=u("internal-resource-picker-control-"),this.getItemUrl=null,this.formProps={},this.filters=[],this.layout=null,this.first=null,this.item=null,this.form=null,this.__getItemRenderer=i((e=>new Function("ctx",`return ctx.html\`\n <${null!=e?e:"foxy-null"}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n infer="card"\n href=\${ctx.href}\n ...=\${ctx.spread(ctx.props)}\n >\n </${null!=e?e:"foxy-null"}>\``)))}static get properties(){return s(s({},super.properties),{},{getDisplayValueOptions:{attribute:!1},showCopyIdButton:{type:Boolean,attribute:"show-copy-id-button"},virtualHost:{},getItemUrl:{attribute:!1},formProps:{type:Object},filters:{type:Array},layout:{},first:{},item:{},form:{}})}renderControl(){var e;const t=s(s({},this.formProps),{},{".selectionProps":{".filters":this.filters,".first":this.first,".item":this.item}});return o(p||(p=_` <foxy-form-dialog parent="foxy://${0}/select" header="header" infer="dialog" alert .props="${0}" .form="${0}" @fetch="${0}"> </foxy-form-dialog> ${0} `),this.virtualHost,t,null!==(e=this.form)&&void 0!==e?e:"foxy-internal-resource-picker-control-form",this.__handleFetchEvent,"summary-item"===this.layout?this.__renderSummaryItemLayout():this.__renderStandaloneLayout())}updated(e){var t,s;super.updated(e),e.has("item")&&(null===(s=(t=this.__getItemRenderer.cache).clear)||void 0===s||s.call(t))}__clear(){this._value="",this.dispatchEvent(new CustomEvent("clear"))}__renderSummaryItemLayout(){const e=this.renderRoot.querySelector("#value");return o(y||(y=_` <div class="leading-xs"> <div class="flex items-center gap-xs"> <div class="text-m text-body whitespace-nowrap flex-1">${0}</div> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <div class="truncate min-w-0"> ${0} </div> </button> <button aria-label="${0}" class="${0}" style="width:1em;height:1em" ?disabled="${0}" ?hidden="${0}" @click="${0}"> ${0} </button> </div> <div style="max-width:32rem"> <div class="text-xs text-secondary">${0}</div> <div class="text-xs text-error" ?hidden="${0}"> ${0} </div> </div> </div> <foxy-nucleon infer="" href="${0}" id="value" @update="${0}"> </foxy-nucleon> `),this.label,this.t("select"),h({"text-right min-w-0 transition-colors transition-opacity":!0,"rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"text-secondary":this.readonly,"text-disabled":this.disabled,"cursor-pointer text-body hover-opacity-80":!this.disabled&&!this.readonly,"font-medium":!this.readonly}),this.disabled||this.readonly,(e=>{if(this.disabled||this.readonly)return;const t=e.currentTarget,s=this.renderRoot.querySelector("foxy-form-dialog");s.href="",s.show(t)}),this._value?o(m||(m=_` <foxy-i18n infer="" key="value" .options="${0}"> </foxy-i18n> `),(null==e?void 0:e.data)?this.getDisplayValueOptions(e.data):{context:(null==e?void 0:e.in("fail"))?"fail":"busy"}):this.placeholder,this.t("clear"),h({"rounded-full transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"cursor-pointer text-tertiary hover-text-body":!this.disabled,"cursor-default text-disabled":this.disabled}),this.disabled,this.readonly||!this._value,this.__clear,l(v||(v=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1em; height: 1em; transform: scale(1.25); margin-right: -0.16em"><path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" /></svg>`)),this.helperText,this.disabled||this.readonly,this._errorMessage,d(this._value||void 0),(()=>this.requestUpdate()))}__renderStandaloneLayout(){var e,t,s,i,r;const l=this.__valueLoader,u="string"==typeof this._value?n(this._value):void 0,c="string"==typeof this._value?null===(e=this.getItemUrl)||void 0===e?void 0:e.call(this,this._value,null!==(t=null==l?void 0:l.data)&&void 0!==t?t:null):void 0;return o(x||(x=_` <div class="block group"> <div class="${0}"> <span class="mr-auto text-l">${0}</span> ${0} ${0} ${0} </div> <div class="text-secondary text-s" ?hidden="${0}">${0}</div> <button class="${0}" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" ?disabled="${0}" @click="${0}"> <div class="${0}"> <foxy-nucleon class="block" infer="" href="${0}" id="valueLoader" @update="${0}"> ${0} </foxy-nucleon> </div> </button> <div class="mt-xs text-xs leading-xs text-error" ?hidden="${0}"> ${0} </div> </div> `),h({"flex items-center gap-s transition-colors font-medium":!0,"text-disabled":this.disabled}),this.label,c?o(b||(b=_` <a class="text-body rounded transition-opacity hover-opacity-90 focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> <foxy-i18n infer="" key="view"></foxy-i18n> </a> `),c):"",this.showCopyIdButton&&null!==u?o(g||(g=_` <foxy-copy-to-clipboard layout="text" theme="contrast tertiary-inline" infer="copy-id" text="${0}"> </foxy-copy-to-clipboard> `),u):"",this.readonly||!this._value?"":o($||($=_` <vaadin-button theme="error tertiary-inline" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="clear"></foxy-i18n> </vaadin-button> `),this.disabled,this.__clear),!this.helperText,this.helperText,h({"block w-full bg-contrast-5 rounded text-left transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"cursor-pointer hover-bg-contrast-10":!this.disabled&&!this.readonly,"cursor-default":this.disabled||this.readonly,"mt-s":!!this.label||!!this.helperText}),this.disabled||this.readonly,(e=>{const t=e.currentTarget,s=this.renderRoot.querySelector("foxy-form-dialog");s.href="",s.show(t)}),h({"transition-opacity":!0,"opacity-50":this.disabled}),d(this._value||void 0),(()=>this.requestUpdate()),this.__getItemRenderer(this.item)({html:o,data:null!==(s=null==l?void 0:l.data)&&void 0!==s?s:null,href:this._value||"",related:[],parent:"",props:{},spread:a,simplifyNsLoading:this.simplifyNsLoading,disabled:this.disabled,disabledControls:this.disabledControls,readonly:this.readonly,readonlyControls:this.readonlyControls,hidden:this.hidden,hiddenControls:this.hiddenControls,templates:this.templates,previous:null,next:null,group:null!==(r=null===(i=this.nucleon)||void 0===i?void 0:i.group)&&void 0!==r?r:"",lang:this.lang,ns:this.ns}),!this._errorMessage||this.disabled||this.readonly,this._errorMessage)}__handleFetchEvent(e){if(!(e instanceof r))return;if(e.defaultPrevented)return;const{url:t,method:s}=e.request;return t===`foxy://${this.virtualHost}/select`&&"POST"===s?e.respondWith(this.__handleSelect(e.request)):t===`foxy://${this.virtualHost}/empty`&&"GET"===s?e.respondWith(this.__handleEmpty()):void 0}async __handleSelect(e){const t=await e.clone().json();return this._value=t.selection,new Response(JSON.stringify({_links:{self:{href:`foxy://${this.virtualHost}/empty`}},message:"Resource selected."}))}async __handleEmpty(){return new Response(JSON.stringify({_links:{self:{href:`foxy://${this.virtualHost}/empty`}},message:"Resource selected."}))}get __valueLoader(){return this.renderRoot.querySelector("#valueLoader")}});
1
+ import"./shared-b15efc37.js";import"./shared-8530fbae.js";import{I as e}from"./shared-f7b4a4f6.js";import{I as t}from"./shared-070211c0.js";import"./foxy-copy-to-clipboard.js";import"./foxy-nucleon-element.js";import"./foxy-form-dialog.js";import"./shared-1b4a3e56.js";import{_ as s,m as i,F as r}from"./shared-7fec42f2.js";import{h as o,s as l}from"./shared-ba5c42c7.js";import{s as a}from"./shared-53e476fd.js";import{g as n}from"./shared-bab2ea2c.js";import{i as d}from"./shared-53e42a77.js";import{c as h}from"./shared-4e709717.js";import{u}from"./shared-da95bb48.js";let c,f=e=>e;let p,y,m,v,x,b,g,$,_=e=>e;customElements.define("foxy-internal-resource-picker-control-form",class extends t{constructor(){super(...arguments),this.selectionProps={}}static get properties(){return s(s({},super.properties),{},{selectionProps:{attribute:!1}})}renderBody(){return o(c||(c=f` <foxy-internal-async-list-control infer="selection" form="foxy-null" hide-delete-button hide-create-button @itemclick="${0}" ...="${0}"> </foxy-internal-async-list-control> `),(e=>{e.preventDefault(),this.edit({selection:e.detail}),this.submit()}),a(this.selectionProps))}}),customElements.define("foxy-internal-resource-picker-control",class extends e{constructor(){super(...arguments),this.getDisplayValueOptions=e=>({resource:e}),this.showCopyIdButton=!1,this.virtualHost=u("internal-resource-picker-control-"),this.getItemUrl=null,this.formProps={},this.filters=[],this.layout=null,this.first=null,this.item=null,this.form=null,this.__getItemRenderer=i((e=>new Function("ctx",`return ctx.html\`\n <${null!=e?e:"foxy-null"}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n infer="card"\n href=\${ctx.href}\n ...=\${ctx.spread(ctx.props)}\n >\n </${null!=e?e:"foxy-null"}>\``)))}static get properties(){return s(s({},super.properties),{},{getDisplayValueOptions:{attribute:!1},showCopyIdButton:{type:Boolean,attribute:"show-copy-id-button"},virtualHost:{},getItemUrl:{attribute:!1},formProps:{type:Object},filters:{type:Array},layout:{},first:{},item:{},form:{}})}renderControl(){var e;const t=s(s({},this.formProps),{},{".selectionProps":{".filters":this.filters,".first":this.first,".item":this.item}});return o(p||(p=_` <foxy-form-dialog parent="foxy://${0}/select" header="header" infer="dialog" alert .props="${0}" .form="${0}" @fetch="${0}"> </foxy-form-dialog> ${0} `),this.virtualHost,t,null!==(e=this.form)&&void 0!==e?e:"foxy-internal-resource-picker-control-form",this.__handleFetchEvent,"summary-item"===this.layout?this.__renderSummaryItemLayout():this.__renderStandaloneLayout())}updated(e){var t,s;super.updated(e),e.has("item")&&(null===(s=(t=this.__getItemRenderer.cache).clear)||void 0===s||s.call(t))}__clear(){this._value="",this.dispatchEvent(new CustomEvent("clear"))}__renderSummaryItemLayout(){const e=this.renderRoot.querySelector("#value");return o(y||(y=_` <div class="leading-xs"> <div class="flex items-center gap-xs"> <div class="text-m text-body whitespace-nowrap flex-1">${0}</div> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <div class="truncate min-w-0"> ${0} </div> </button> <button aria-label="${0}" class="${0}" style="width:1em;height:1em" ?disabled="${0}" ?hidden="${0}" @click="${0}"> ${0} </button> </div> <div style="max-width:32rem"> <div class="text-xs text-secondary">${0}</div> <div class="text-xs text-error" ?hidden="${0}"> ${0} </div> </div> </div> <foxy-nucleon infer="" href="${0}" id="value" @update="${0}"> </foxy-nucleon> `),this.label,this.t("select"),h({"text-right min-w-0 transition-colors transition-opacity":!0,"rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"text-secondary":this.readonly,"text-disabled":this.disabled,"cursor-pointer text-body hover-opacity-80":!this.disabled&&!this.readonly,"font-medium":!this.readonly}),this.disabled||this.readonly,(e=>{if(this.disabled||this.readonly)return;const t=e.currentTarget,s=this.renderRoot.querySelector("foxy-form-dialog");s.href="",s.show(t)}),this._value?o(m||(m=_` <foxy-i18n infer="" key="value" .options="${0}"> </foxy-i18n> `),(null==e?void 0:e.data)?this.getDisplayValueOptions(e.data):{context:(null==e?void 0:e.in("fail"))?"fail":"busy"}):this.placeholder,this.t("clear"),h({"rounded-full transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"cursor-pointer text-tertiary hover-text-body":!this.disabled,"cursor-default text-disabled":this.disabled}),this.disabled,this.readonly||!this._value,this.__clear,l(v||(v=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1em; height: 1em; transform: scale(1.25); margin-right: -0.16em"><path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" /></svg>`)),this.helperText,this.disabled||this.readonly,this._errorMessage,d(this._value||void 0),(()=>this.requestUpdate()))}__renderStandaloneLayout(){var e,t,s,i,r;const l=this.__valueLoader,u="string"==typeof this._value?n(this._value):void 0,c="string"==typeof this._value?null===(e=this.getItemUrl)||void 0===e?void 0:e.call(this,this._value,null!==(t=null==l?void 0:l.data)&&void 0!==t?t:null):void 0;return o(x||(x=_` <div class="block group"> <div class="${0}"> <span class="mr-auto text-l">${0}</span> ${0} ${0} ${0} </div> <div class="text-secondary text-s" ?hidden="${0}">${0}</div> <button class="${0}" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" ?disabled="${0}" @click="${0}"> <div class="${0}"> <foxy-nucleon class="block" infer="" href="${0}" id="valueLoader" @update="${0}"> ${0} </foxy-nucleon> </div> </button> <div class="mt-xs text-xs leading-xs text-error" ?hidden="${0}"> ${0} </div> </div> `),h({"flex items-center gap-s transition-colors font-medium":!0,"text-disabled":this.disabled}),this.label,c?o(b||(b=_` <a class="text-body rounded transition-opacity hover-opacity-90 focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> <foxy-i18n infer="" key="view"></foxy-i18n> </a> `),c):"",this.showCopyIdButton&&null!==u?o(g||(g=_` <foxy-copy-to-clipboard layout="text" theme="contrast tertiary-inline" infer="copy-id" text="${0}"> </foxy-copy-to-clipboard> `),u):"",this.readonly||!this._value?"":o($||($=_` <vaadin-button theme="error tertiary-inline" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="clear"></foxy-i18n> </vaadin-button> `),this.disabled,this.__clear),!this.helperText,this.helperText,h({"block w-full bg-contrast-5 rounded text-left transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"cursor-pointer hover-bg-contrast-10":!this.disabled&&!this.readonly,"cursor-default":this.disabled||this.readonly,"mt-s":!!this.label||!!this.helperText}),this.disabled||this.readonly,(e=>{const t=e.currentTarget,s=this.renderRoot.querySelector("foxy-form-dialog");s.href="",s.show(t)}),h({"transition-opacity":!0,"opacity-50":this.disabled}),d(this._value||void 0),(()=>this.requestUpdate()),this.__getItemRenderer(this.item)({html:o,data:null!==(s=null==l?void 0:l.data)&&void 0!==s?s:null,href:this._value||"",related:[],parent:"",props:{},spread:a,simplifyNsLoading:this.simplifyNsLoading,disabled:this.disabled,disabledControls:this.disabledControls,readonly:this.readonly,readonlyControls:this.readonlyControls,hidden:this.hidden,hiddenControls:this.hiddenControls,templates:this.templates,previous:null,next:null,group:null!==(r=null===(i=this.nucleon)||void 0===i?void 0:i.group)&&void 0!==r?r:"",lang:this.lang,ns:this.ns}),!this._errorMessage||this.disabled||this.readonly,this._errorMessage)}__handleFetchEvent(e){if(!(e instanceof r))return;if(e.defaultPrevented)return;const{url:t,method:s}=e.request;return t===`foxy://${this.virtualHost}/select`&&"POST"===s?e.respondWith(this.__handleSelect(e.request)):t===`foxy://${this.virtualHost}/empty`&&"GET"===s?e.respondWith(this.__handleEmpty()):void 0}async __handleSelect(e){const t=await e.clone().json();return this._value=t.selection,new Response(JSON.stringify({_links:{self:{href:`foxy://${this.virtualHost}/empty`}},message:"Resource selected."}))}async __handleEmpty(){return new Response(JSON.stringify({_links:{self:{href:`foxy://${this.virtualHost}/empty`}},message:"Resource selected."}))}get __valueLoader(){return this.renderRoot.querySelector("#valueLoader")}});
@@ -1,4 +1,4 @@
1
- import{I as e}from"./shared-049295b7.js";import"./shared-7b5bdf0e.js";import{_ as t}from"./shared-7fec42f2.js";import{d as s,N as r,i as o,c as a,h as i,s as n}from"./shared-ba5c42c7.js";
1
+ import{I as e}from"./shared-f7b4a4f6.js";import"./shared-1b4a3e56.js";import{_ as t}from"./shared-7fec42f2.js";import{d as s,N as r,i as o,c as a,h as i,s as n}from"./shared-ba5c42c7.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -12,4 +12,4 @@ import{I as e}from"./shared-049295b7.js";import"./shared-7b5bdf0e.js";import{_ a
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- const l=new WeakMap,d=s((e=>t=>{if(!(t instanceof r))throw new Error("unsafeHTML can only be used in text bindings");const s=l.get(t);if(void 0!==s&&o(e)&&e===s.value&&t.value===s.fragment)return;const a=document.createElement("template");a.innerHTML=e;const i=document.importNode(a.content,!0);t.setValue(i),l.set(t,{value:e,fragment:i})}));let u,p,c,h,m=e=>e;customElements.define("foxy-internal-summary-control",class extends e{constructor(){super(...arguments),this.unsafeHelperText=!1,this.layout=null,this.count=null,this.open=!1}static get properties(){return t(t({},super.properties),{},{unsafeHelperText:{type:Boolean,attribute:"unsafe-helper-text"},layout:{},count:{type:Number},open:{type:Boolean,reflect:!0}})}static get styles(){return[...super.styles,a(u||(u=m`::slotted(*){min-width:100%}:host(:not([layout=section])) slot::slotted(*){background-color:var(--lumo-contrast-5pct);padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)}details summary>div{border-radius:var(--lumo-border-radius)}details[open] summary>div{border-radius:var(--lumo-border-radius) var(--lumo-border-radius) 0 0}.with-unsafe a{text-decoration:underline;transition:color .1s ease-in-out}.with-unsafe a:hover{color:var(--lumo-primary-text-color)}.with-unsafe a:focus{outline:0;box-shadow:0 0 0 2px var(--lumo-primary-color-50pct);border-radius:var(--lumo-border-radius-s)}`))]}renderLightDom(){}renderControl(){return"details"===this.layout?i(p||(p=m` <details class="rounded overflow-hidden" ?open="${0}" @toggle="${0}"> <summary class="select-none cursor-pointer focus-outline-none group"> <div class="leading-xs bg-contrast-5 group-focus-ring-2 group-focus-ring-inset group-focus-ring-primary-50" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" ?hidden="${0}"> <p class="flex items-center justify-between gap-s" ?hidden="${0}"> <span> ${0}${0} </span> <span class="flex items-center justify-center transition-colors text-tertiary group-hover-text-body" style="transform:scale(1.35)"> ${0} </span> </p> <p class="text-xs text-secondary with-unsafe" ?hidden="${0}"> ${0} </p> </div> </summary> <div class="overflow-hidden grid" style="gap:1px"> <slot></slot> </div> </details> `),this.open,(e=>{const t=e.currentTarget;this.open=t.open,e.composed||e.bubbles||this.dispatchEvent(new CustomEvent("toggle"))}),!this.label&&!this.helperText,!this.label,this.label,"number"==typeof this.count?` (${this.count})`:"",n(c||(c=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1.2em; height: 1.2em"><path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" /></svg>`)),!this.helperText,this.unsafeHelperText?d(this.helperText):this.helperText):i(h||(h=m` <div class="leading-s mb-s" ?hidden="${0}"> <p class="font-medium text-body text-l" ?hidden="${0}">${0}</p> <p class="text-s text-secondary with-unsafe" ?hidden="${0}"> ${0} </p> </div> <div class="rounded overflow-hidden grid" style="gap:1px"> <slot></slot> </div> `),!this.label&&!this.helperText,!this.label,this.label,!this.helperText,this.unsafeHelperText?d(this.helperText):this.helperText)}});export{d as u};
15
+ const l=new WeakMap,d=s((e=>t=>{if(!(t instanceof r))throw new Error("unsafeHTML can only be used in text bindings");const s=l.get(t);if(void 0!==s&&o(e)&&e===s.value&&t.value===s.fragment)return;const a=document.createElement("template");a.innerHTML=e;const i=document.importNode(a.content,!0);t.setValue(i),l.set(t,{value:e,fragment:i})}));let u,p,c,h,m=e=>e;customElements.define("foxy-internal-summary-control",class extends e{constructor(){super(...arguments),this.unsafeHelperText=!1,this.layout=null,this.count=null,this.open=!1}static get properties(){return t(t({},super.properties),{},{unsafeHelperText:{type:Boolean,attribute:"unsafe-helper-text"},layout:{},count:{type:Number},open:{type:Boolean,reflect:!0}})}static get styles(){return[...super.styles,a(u||(u=m`::slotted(*){min-width:100%}:host(:not([layout=section])) slot::slotted(*){background-color:var(--lumo-contrast-5pct);padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)}details summary>div{border-radius:var(--lumo-border-radius)}details[open] summary>div{border-radius:var(--lumo-border-radius) var(--lumo-border-radius) 0 0}.with-unsafe a{text-decoration:underline;transition:color .1s ease-in-out}.with-unsafe a:hover{color:var(--lumo-primary-text-color)}.with-unsafe a:focus{outline:0;box-shadow:0 0 0 2px var(--lumo-primary-color-50pct);border-radius:var(--lumo-border-radius-s)}`))]}renderLightDom(){}renderControl(){return"details"===this.layout?i(p||(p=m` <details class="rounded overflow-hidden" ?open="${0}" @toggle="${0}"> <summary class="select-none cursor-pointer focus-outline-none group"> <div class="leading-xs bg-contrast-5 group-focus-ring-2 group-focus-ring-inset group-focus-ring-primary-50" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" ?hidden="${0}"> <p class="flex items-center justify-between gap-s transition-opacity group-hover-opacity-80" ?hidden="${0}"> <span class="font-medium"> ${0}${0} </span> <span class="flex items-center justify-center" style="transform:scale(1.35)"> ${0} </span> </p> <p class="text-xs text-secondary with-unsafe" ?hidden="${0}"> ${0} </p> </div> </summary> <div class="overflow-hidden grid" style="gap:1px"> <slot></slot> </div> </details> `),this.open,(e=>{const t=e.currentTarget;this.open=t.open,e.composed||e.bubbles||this.dispatchEvent(new CustomEvent("toggle"))}),!this.label&&!this.helperText,!this.label,this.label,"number"==typeof this.count?` (${this.count})`:"",n(c||(c=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1.2em; height: 1.2em"><path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" /></svg>`)),!this.helperText,this.unsafeHelperText?d(this.helperText):this.helperText):i(h||(h=m` <div class="leading-s mb-s" ?hidden="${0}"> <p class="font-medium text-body text-l" ?hidden="${0}">${0}</p> <p class="text-s text-secondary with-unsafe" ?hidden="${0}"> ${0} </p> </div> <div class="rounded overflow-hidden grid" style="gap:1px"> <slot></slot> </div> `),!this.label&&!this.helperText,!this.label,this.label,!this.helperText,this.unsafeHelperText?d(this.helperText):this.helperText)}});export{d as u};
@@ -1 +1 @@
1
- import"./shared-5212ef4f.js";import"./shared-7b5bdf0e.js";import{_ as e,l as t}from"./shared-7fec42f2.js";import{C as r}from"./shared-c782b9fa.js";import{a as s,T as i,w as n}from"./shared-ddda911c.js";import{h as l,r as o,L as h}from"./shared-ba5c42c7.js";import{I as a}from"./shared-0ea750af.js";import{N as p}from"./shared-da95bb48.js";import{s as u}from"./shared-1da47f50.js";let c,d,_,f,v=e=>e;class y extends(r(s(i(a(h))))){constructor(){super(...arguments),this.nucleon=null}static get inferredProperties(){return[...super.inferredProperties,"nucleon"]}static get properties(){return e(e({},super.properties),{},{nucleon:{attribute:!1}})}inferFromElement(e,t){return"nucleon"===e&&t instanceof p?t:super.inferFromElement(e,t)}applyInferredProperties(e){var t,r;super.applyInferredProperties(e),this.nucleon=null!==(t=e.get("nucleon"))&&void 0!==t?t:null,!1===(null===(r=this.nucleon)||void 0===r?void 0:r.in("idle"))&&(this.disabled=!0)}renderLightDom(){if("string"!=typeof this.infer)return;const e=l(c||(c=v` <slot name="${0}:before" slot="before"></slot> <slot name="${0}:after" slot="after"></slot> `),this.infer,this.infer);o(e,this)}updated(e){super.updated(e),this.renderLightDom()}renderControl(){return l(d||(d=v``))}render(){return this.hidden?l(_||(_=v``)):l(f||(f=v` ${0} ${0} ${0} `),this.renderTemplateOrSlot("before",this.nucleon),this.renderControl(),this.renderTemplateOrSlot("after",this.nucleon))}}function m(e){try{return JSON.parse(e)}catch(e){return null}}customElements.define("foxy-internal-control",y);class b extends y{constructor(){var e;super(...arguments),e=this,this.checkValidityAsync=null,this.jsonTemplate=null,this.jsonPath=null,this.getValue=()=>{var e;const r=t(null===(e=this.nucleon)||void 0===e?void 0:e.form,this.property);if(this.jsonPath){const e=m(r),s=m(this.jsonTemplate);return t(e,this.jsonPath,t(s,this.jsonPath))}return r},this.setValue=e=>{var t,r,s,i,n,l,o,h,a;const[p,...c]=this.property.split(".");if(c.length){const l=null!==(r=null===(t=this.nucleon)||void 0===t?void 0:t.form[p])&&void 0!==r?r:{};if(this.jsonPath){const t=null!==(i=m(null===(s=this.nucleon)||void 0===s?void 0:s.form[p]))&&void 0!==i?i:m(this.jsonTemplate);u(t,this.jsonPath,e),u(l,c,JSON.stringify(t))}else u(l,c,e);null===(n=this.nucleon)||void 0===n||n.edit({[p]:l})}else if(this.jsonPath){const t=null!==(o=m(null===(l=this.nucleon)||void 0===l?void 0:l.form[p]))&&void 0!==o?o:m(this.jsonTemplate);u(t,this.jsonPath,e),null===(h=this.nucleon)||void 0===h||h.edit({[p]:JSON.stringify(t)})}else null===(a=this.nucleon)||void 0===a||a.edit({[p]:e})},this.__debouncedCheckValidityAsync=n((async function(t){var r;const s=await(null===(r=e.checkValidityAsync)||void 0===r?void 0:r.call(e,t));e._value===t&&(e.__asyncError=!0===s?null:null!=s?s:null)}),300),this.__previousValue=null,this.__placeholder=null,this.__helperText=null,this.__asyncError=null,this.__v8nPrefix=null,this.__property=null,this.__label=null}static get properties(){return e(e({},super.properties),{},{checkValidityAsync:{attribute:!1},jsonTemplate:{attribute:"json-template"},placeholder:{type:String,noAccessor:!0},helperText:{type:String,attribute:"helper-text",noAccessor:!0},v8nPrefix:{type:String,attribute:"v8n-prefix",noAccessor:!0},jsonPath:{attribute:"json-path"},getValue:{attribute:!1},setValue:{attribute:!1},property:{type:String,noAccessor:!0},label:{type:String,noAccessor:!0},__asyncError:{attribute:!1}})}get placeholder(){return"string"==typeof this.__placeholder?this.__placeholder:this.t("placeholder")}set placeholder(e){const t=this.__placeholder;this.__placeholder=e,this.requestUpdate("placeholder",t)}get helperText(){return"string"==typeof this.__helperText?this.__helperText:this.t("helper_text")}set helperText(e){const t=this.__helperText;this.__helperText=e,this.requestUpdate("helperText",t)}get v8nPrefix(){return"string"==typeof this.__v8nPrefix?this.__v8nPrefix:"string"==typeof this.infer?`${this.infer}:`:""}set v8nPrefix(e){const t=this.__v8nPrefix;this.__v8nPrefix=e,this.requestUpdate("v8nPrefix",t)}get property(){return"string"==typeof this.__property?this.__property:"string"==typeof this.infer?this.infer.replace(/-/g,"_"):""}set property(e){const t=this.__property;this.__property=e,this.requestUpdate("property",t)}get label(){return"string"==typeof this.__label?this.__label:this.t("label")}set label(e){const t=this.__label;this.__label=e,this.requestUpdate("label",t)}resetPlaceholder(){const e=this.__placeholder;this.__placeholder=null,this.requestUpdate("placeholder",e)}resetHelperText(){const e=this.__helperText;this.__helperText=null,this.requestUpdate("helperText",e)}resetV8nPrefix(){const e=this.__v8nPrefix;this.__v8nPrefix=null,this.requestUpdate("v8nPrefix",e)}resetProperty(){const e=this.__property;this.__property=null,this.requestUpdate("property",e)}resetLabel(){const e=this.__label;this.__label=null,this.requestUpdate("label",e)}reportValidity(){const e=this.ownerDocument.createTreeWalker(this.renderRoot,NodeFilter.SHOW_ELEMENT);do{const t=e.currentNode,r=["reportValidity","validate"];for(const e of r)if(e in t)try{t[e]();break}catch(e){continue}}while(e.nextNode())}get _value(){return this.getValue()}set _value(e){this.__previousValue=this._value,this.__asyncError=null,this._error||this.__previousValue===e||this.__debouncedCheckValidityAsync(e);const t=new CustomEvent("change",{cancelable:!0,detail:e});this.dispatchEvent(t)&&this.setValue(e)}get _error(){var e,t;const r=null===(e=this.nucleon)||void 0===e?void 0:e.errors.find((e=>e.startsWith(this.v8nPrefix)));return null!==(t=null!=r?r:this.__asyncError)&&void 0!==t?t:void 0}get _errorMessage(){return this._error?this.t(this._error.substring(this.v8nPrefix.length)):void 0}get _checkValidity(){return()=>!this._error}}customElements.define("foxy-internal-editable-control",b);export{b as I,y as a};
1
+ import"./shared-5212ef4f.js";import"./shared-1b4a3e56.js";import{_ as e,l as t}from"./shared-7fec42f2.js";import{C as r}from"./shared-c782b9fa.js";import{a as s,T as i,w as n}from"./shared-a89e8a07.js";import{h as l,r as o,L as h}from"./shared-ba5c42c7.js";import{I as a}from"./shared-0ea750af.js";import{N as p}from"./shared-da95bb48.js";import{s as u}from"./shared-1da47f50.js";let c,d,_,f,v=e=>e;class y extends(r(s(i(a(h))))){constructor(){super(...arguments),this.nucleon=null}static get inferredProperties(){return[...super.inferredProperties,"nucleon"]}static get properties(){return e(e({},super.properties),{},{nucleon:{attribute:!1}})}inferFromElement(e,t){return"nucleon"===e&&t instanceof p?t:super.inferFromElement(e,t)}applyInferredProperties(e){var t,r;super.applyInferredProperties(e),this.nucleon=null!==(t=e.get("nucleon"))&&void 0!==t?t:null,!1===(null===(r=this.nucleon)||void 0===r?void 0:r.in("idle"))&&(this.disabled=!0)}renderLightDom(){if("string"!=typeof this.infer)return;const e=l(c||(c=v` <slot name="${0}:before" slot="before"></slot> <slot name="${0}:after" slot="after"></slot> `),this.infer,this.infer);o(e,this)}updated(e){super.updated(e),this.renderLightDom()}renderControl(){return l(d||(d=v``))}render(){return this.hidden?l(_||(_=v``)):l(f||(f=v` ${0} ${0} ${0} `),this.renderTemplateOrSlot("before",this.nucleon),this.renderControl(),this.renderTemplateOrSlot("after",this.nucleon))}}function m(e){try{return JSON.parse(e)}catch(e){return null}}customElements.define("foxy-internal-control",y);class g extends y{constructor(){var e;super(...arguments),e=this,this.checkValidityAsync=null,this.jsonTemplate=null,this.jsonPath=null,this.getValue=()=>{var e;const r=t(null===(e=this.nucleon)||void 0===e?void 0:e.form,this.property);if(this.jsonPath){const e=m(r),s=m(this.jsonTemplate);return t(e,this.jsonPath,t(s,this.jsonPath))}return r},this.setValue=e=>{var t,r,s,i,n,l,o,h,a;const[p,...c]=this.property.split(".");if(c.length){const l=null!==(r=null===(t=this.nucleon)||void 0===t?void 0:t.form[p])&&void 0!==r?r:{};if(this.jsonPath){const t=null!==(i=m(null===(s=this.nucleon)||void 0===s?void 0:s.form[p]))&&void 0!==i?i:m(this.jsonTemplate);u(t,this.jsonPath,e),u(l,c,JSON.stringify(t))}else u(l,c,e);null===(n=this.nucleon)||void 0===n||n.edit({[p]:l})}else if(this.jsonPath){const t=null!==(o=m(null===(l=this.nucleon)||void 0===l?void 0:l.form[p]))&&void 0!==o?o:m(this.jsonTemplate);u(t,this.jsonPath,e),null===(h=this.nucleon)||void 0===h||h.edit({[p]:JSON.stringify(t)})}else null===(a=this.nucleon)||void 0===a||a.edit({[p]:e})},this.__debouncedCheckValidityAsync=n((async function(t){var r;const s=await(null===(r=e.checkValidityAsync)||void 0===r?void 0:r.call(e,t));e._value===t&&(e.__asyncError=!0===s?null:null!=s?s:null)}),300),this.__previousValue=null,this.__placeholder=null,this.__helperText=null,this.__asyncError=null,this.__v8nPrefix=null,this.__property=null,this.__label=null}static get properties(){return e(e({},super.properties),{},{checkValidityAsync:{attribute:!1},jsonTemplate:{attribute:"json-template"},placeholder:{type:String,noAccessor:!0},helperText:{type:String,attribute:"helper-text",noAccessor:!0},v8nPrefix:{type:String,attribute:"v8n-prefix",noAccessor:!0},jsonPath:{attribute:"json-path"},getValue:{attribute:!1},setValue:{attribute:!1},property:{type:String,noAccessor:!0},label:{type:String,noAccessor:!0},__asyncError:{attribute:!1}})}get placeholder(){return"string"==typeof this.__placeholder?this.__placeholder:this.t("placeholder")}set placeholder(e){const t=this.__placeholder;this.__placeholder=e,this.requestUpdate("placeholder",t)}get helperText(){return"string"==typeof this.__helperText?this.__helperText:this.t("helper_text")}set helperText(e){const t=this.__helperText;this.__helperText=e,this.requestUpdate("helperText",t)}get v8nPrefix(){return"string"==typeof this.__v8nPrefix?this.__v8nPrefix:"string"==typeof this.infer?`${this.infer}:`:""}set v8nPrefix(e){const t=this.__v8nPrefix;this.__v8nPrefix=e,this.requestUpdate("v8nPrefix",t)}get property(){return"string"==typeof this.__property?this.__property:"string"==typeof this.infer?this.infer.replace(/-/g,"_"):""}set property(e){const t=this.__property;this.__property=e,this.requestUpdate("property",t)}get label(){return"string"==typeof this.__label?this.__label:this.t("label")}set label(e){const t=this.__label;this.__label=e,this.requestUpdate("label",t)}resetPlaceholder(){const e=this.__placeholder;this.__placeholder=null,this.requestUpdate("placeholder",e)}resetHelperText(){const e=this.__helperText;this.__helperText=null,this.requestUpdate("helperText",e)}resetV8nPrefix(){const e=this.__v8nPrefix;this.__v8nPrefix=null,this.requestUpdate("v8nPrefix",e)}resetProperty(){const e=this.__property;this.__property=null,this.requestUpdate("property",e)}resetLabel(){const e=this.__label;this.__label=null,this.requestUpdate("label",e)}reportValidity(){const e=this.ownerDocument.createTreeWalker(this.renderRoot,NodeFilter.SHOW_ELEMENT);do{const t=e.currentNode,r=["reportValidity","validate"];for(const e of r)if(e in t)try{t[e]();break}catch(e){continue}}while(e.nextNode())}get _value(){return this.getValue()}set _value(e){this.__previousValue=this._value,this.__asyncError=null,this._error||this.__previousValue===e||this.__debouncedCheckValidityAsync(e);const t=new CustomEvent("change",{cancelable:!0,detail:e});this.dispatchEvent(t)&&this.setValue(e)}get _error(){var e,t;const r=null===(e=this.nucleon)||void 0===e?void 0:e.errors.find((e=>e.startsWith(this.v8nPrefix)));return null!==(t=null!=r?r:this.__asyncError)&&void 0!==t?t:void 0}get _errorMessage(){return this._error?this.t(this._error.substring(this.v8nPrefix.length)):void 0}get _checkValidity(){return()=>!this._error}}customElements.define("foxy-internal-editable-control",g);export{g as I,y as a};
@@ -1,4 +1,4 @@
1
- import{h as e}from"./shared-3e3c5095.js";import{N as t}from"./shared-f497cd69.js";
1
+ import{h as e}from"./shared-5af5ab06.js";import{N as t}from"./shared-acee789f.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2019 Vaadin Ltd.
@@ -291,8 +291,8 @@
291
291
  "status_refunded": "Refunded",
292
292
  "status_voided": "Voided",
293
293
  "status_verified": "Verified",
294
- "summary": "{{most_expensive_item.name}}",
295
- "summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
294
+ "summary": "{{first_item.name}}",
295
+ "summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
296
296
  "summary_payment_method_change": "Payment method change",
297
297
  "summary_subscription_modification": "Subscription modification",
298
298
  "summary_subscription_cancellation": "Subscription cancellation",
@@ -61,8 +61,8 @@
61
61
  "status_refunded": "Refunded",
62
62
  "status_voided": "Voided",
63
63
  "status_verified": "Verified",
64
- "summary": "{{most_expensive_item.name}}",
65
- "summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
64
+ "summary": "{{first_item.name}}",
65
+ "summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
66
66
  "summary_payment_method_change": "Payment method change",
67
67
  "summary_subscription_modification": "Subscription modification",
68
68
  "summary_subscription_cancellation": "Subscription cancellation",
@@ -257,8 +257,8 @@
257
257
  "status_refunded": "Refunded",
258
258
  "status_voided": "Voided",
259
259
  "status_verified": "Verified",
260
- "summary": "{{most_expensive_item.name}}",
261
- "summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
260
+ "summary": "{{first_item.name}}",
261
+ "summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
262
262
  "summary_payment_method_change": "Payment method change",
263
263
  "summary_subscription_modification": "Subscription modification",
264
264
  "summary_subscription_cancellation": "Subscription cancellation",
@@ -1278,8 +1278,8 @@
1278
1278
  "status_refunded": "Refunded",
1279
1279
  "status_voided": "Voided",
1280
1280
  "status_verified": "Verified",
1281
- "summary": "{{most_expensive_item.name}}",
1282
- "summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
1281
+ "summary": "{{first_item.name}}",
1282
+ "summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
1283
1283
  "summary_payment_method_change": "Payment method change",
1284
1284
  "summary_subscription_modification": "Subscription modification",
1285
1285
  "summary_subscription_cancellation": "Subscription cancellation",
@@ -1320,7 +1320,7 @@
1320
1320
  "status_ended": "Ended on {{ end_date, date }}",
1321
1321
  "status_next_payment": "Next payment on {{ next_transaction_date, date }}",
1322
1322
  "status_inactive": "Inactive",
1323
- "transaction_summary": "{{most_expensive_item.name}}",
1323
+ "transaction_summary": "{{first_item.name}}",
1324
1324
  "twice_a_month": "Twice a month",
1325
1325
  "update": "Update",
1326
1326
  "weekly": "Weekly",
@@ -1346,8 +1346,8 @@
1346
1346
  "transaction_pending": "Pending",
1347
1347
  "transaction_refunded": "Refunded",
1348
1348
  "transaction_rejected": "Rejected",
1349
- "transaction_summary": "{{most_expensive_item.name}}",
1350
- "transaction_summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
1349
+ "transaction_summary": "{{first_item.name}}",
1350
+ "transaction_summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
1351
1351
  "transaction_verified": "Verified",
1352
1352
  "transaction_voided": "Voided",
1353
1353
  "spinner": {
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "Ausstehend",
59
59
  "transaction_refunded": "Erstattet",
60
60
  "transaction_rejected": "Abgelehnt",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} Und {{count_minus_one}} mehr",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} Und {{count_minus_one}} mehr",
63
63
  "transaction_verified": "Verifiziert",
64
64
  "transaction_voided": "Entwertet",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "Nächste Zahlung am {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "Aktiv",
940
940
  "status_inactive": "Inaktiv",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} Und {{count_minus_one}} mehr",
942
943
  "fees_hint": "inc. ",
943
944
  "fees_explainer": "Steuern, Versand und Rabatte können den berechneten Betrag ändern.",
944
945
  "twice_a_month": "zweimal im Monat",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "Erstattet",
1091
1092
  "status_voided": "Entwertet",
1092
1093
  "status_verified": "Verifiziert",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} Und {{count_minus_one}} mehr",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} Und {{count_minus_one}} mehr",
1095
1096
  "summary_payment_method_change": "Änderung der Zahlungsmethode",
1096
1097
  "summary_subscription_modification": "Abonnementänderung",
1097
1098
  "summary_subscription_cancellation": "Kündigung des Abonnements",
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "Pending",
59
59
  "transaction_refunded": "Refunded",
60
60
  "transaction_rejected": "Rejected",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
63
63
  "transaction_verified": "Verified",
64
64
  "transaction_voided": "Voided",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "Next payment on {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "Active",
940
940
  "status_inactive": "Inactive",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
942
943
  "fees_hint": "inc. shipping, taxes, etc.",
943
944
  "fees_explainer": "Taxes, shipping, and discounts may change the amount charged.",
944
945
  "twice_a_month": "twice a month",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "Refunded",
1091
1092
  "status_voided": "Voided",
1092
1093
  "status_verified": "Verified",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
1095
1096
  "summary_payment_method_change": "Payment method change",
1096
1097
  "summary_subscription_modification": "Subscription modification",
1097
1098
  "summary_subscription_cancellation": "Subscription cancellation",
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "Pendiente",
59
59
  "transaction_refunded": "Reintegrado",
60
60
  "transaction_rejected": "Rechazado",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} y {{count_minus_one}} más",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} y {{count_minus_one}} más",
63
63
  "transaction_verified": "Verificado",
64
64
  "transaction_voided": "Anulado",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "Próximo pago el {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "Activo",
940
940
  "status_inactive": "Inactivo",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} y {{count_minus_one}} más",
942
943
  "fees_hint": "incluye envío, impuestos, etc.",
943
944
  "fees_explainer": "Los impuestos, el envío y los descuentos pueden cambiar el monto cobrado.",
944
945
  "twice_a_month": "dos veces al mes",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "Reintegrado",
1091
1092
  "status_voided": "anulado",
1092
1093
  "status_verified": "Verificado",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} y {{count_minus_one}} más",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} y {{count_minus_one}} más",
1095
1096
  "summary_payment_method_change": "cambio de método de pago",
1096
1097
  "summary_subscription_modification": "Modificación de suscripción",
1097
1098
  "summary_subscription_cancellation": "Cancelación de suscripción",
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "En attente",
59
59
  "transaction_refunded": "Remboursé",
60
60
  "transaction_rejected": "Rejeté",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} et {{count_minus_one}} plus",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} et {{count_minus_one}} plus",
63
63
  "transaction_verified": "Vérifié",
64
64
  "transaction_voided": "Annulé",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "Prochain paiement le {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "Actif",
940
940
  "status_inactive": "Inactif",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} et {{count_minus_one}} plus",
942
943
  "fees_hint": "inc. ",
943
944
  "fees_explainer": "Les taxes, les frais d'expédition et les réductions peuvent modifier le montant facturé.",
944
945
  "twice_a_month": "deux fois par mois",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "Remboursé",
1091
1092
  "status_voided": "Annulé",
1092
1093
  "status_verified": "Vérifié",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} et {{count_minus_one}} plus",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} et {{count_minus_one}} plus",
1095
1096
  "summary_payment_method_change": "Changement de mode de paiement",
1096
1097
  "summary_subscription_modification": "Modification d'abonnement",
1097
1098
  "summary_subscription_cancellation": "Annulation de l'abonnement",
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "In behandeling",
59
59
  "transaction_refunded": "Terugbetaald",
60
60
  "transaction_rejected": "Afgewezen",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} En {{count_minus_one}} meer",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} En {{count_minus_one}} meer",
63
63
  "transaction_verified": "Geverifieerd",
64
64
  "transaction_voided": "Ongeldig gemaakt",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "Volgende betaling op {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "Actief",
940
940
  "status_inactive": "Inactief",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} En {{count_minus_one}} meer",
942
943
  "fees_hint": "incl. ",
943
944
  "fees_explainer": "Belastingen, verzendkosten en kortingen kunnen het in rekening gebrachte bedrag wijzigen.",
944
945
  "twice_a_month": "twee keer per maand",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "Terugbetaald",
1091
1092
  "status_voided": "Ongeldig gemaakt",
1092
1093
  "status_verified": "Geverifieerd",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} En {{count_minus_one}} meer",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} En {{count_minus_one}} meer",
1095
1096
  "summary_payment_method_change": "Wijziging betaalwijze",
1096
1097
  "summary_subscription_modification": "Wijziging abonnement",
1097
1098
  "summary_subscription_cancellation": "Abonnement opzeggen",
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "Aż do",
59
59
  "transaction_refunded": "Zwrócono pieniądze",
60
60
  "transaction_rejected": "Odrzucony",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} I {{count_minus_one}} więcej",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} I {{count_minus_one}} więcej",
63
63
  "transaction_verified": "Zweryfikowano",
64
64
  "transaction_voided": "Unieważnione",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "Następna płatność dnia {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "Aktywne",
940
940
  "status_inactive": "Nieaktywny",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} I {{count_minus_one}} więcej",
942
943
  "fees_hint": "Inc. ",
943
944
  "fees_explainer": "Podatki, koszty wysyłki i rabaty mogą zmienić pobraną kwotę.",
944
945
  "twice_a_month": "dwa razy w miesiącu",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "Zwrócono pieniądze",
1091
1092
  "status_voided": "Unieważnione",
1092
1093
  "status_verified": "Zweryfikowano",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} I {{count_minus_one}} więcej",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} I {{count_minus_one}} więcej",
1095
1096
  "summary_payment_method_change": "Zmiana sposobu płatności",
1096
1097
  "summary_subscription_modification": "Modyfikacja subskrypcji",
1097
1098
  "summary_subscription_cancellation": "Anulowanie subskrypcji",
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "I väntan på",
59
59
  "transaction_refunded": "Återbetalas",
60
60
  "transaction_rejected": "avvisade",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} och {{count_minus_one}} Mer",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} och {{count_minus_one}} Mer",
63
63
  "transaction_verified": "Verifierad",
64
64
  "transaction_voided": "Ogiltigförklarad",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "Nästa betalning den {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "Aktiv",
940
940
  "status_inactive": "Inaktiv",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} och {{count_minus_one}} Mer",
942
943
  "fees_hint": "inkl. ",
943
944
  "fees_explainer": "Skatter, frakt och rabatter kan ändra beloppet som debiteras.",
944
945
  "twice_a_month": "två gånger i månaden",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "Återbetalas",
1091
1092
  "status_voided": "Ogiltigförklarad",
1092
1093
  "status_verified": "Verifierad",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} och {{count_minus_one}} Mer",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} och {{count_minus_one}} Mer",
1095
1096
  "summary_payment_method_change": "Ändring av betalningsmetod",
1096
1097
  "summary_subscription_modification": "Ändring av abonnemang",
1097
1098
  "summary_subscription_cancellation": "Uppsägning av prenumeration",
@@ -58,8 +58,8 @@
58
58
  "transaction_pending": "待办的",
59
59
  "transaction_refunded": "已退款",
60
60
  "transaction_rejected": "拒绝",
61
- "transaction_summary": "{{most_expensive_item.name}}",
62
- "transaction_summary_plural": "{{most_expensive_item.name}} 和 {{count_minus_one}} 更多的",
61
+ "transaction_summary": "{{first_item.name}}",
62
+ "transaction_summary_plural": "{{first_item.name}} 和 {{count_minus_one}} 更多的",
63
63
  "transaction_verified": "已验证",
64
64
  "transaction_voided": "作废",
65
65
  "spinner": {
@@ -938,7 +938,8 @@
938
938
  "status_next_payment": "下次付款日期为 {{ next_transaction_date, date }}",
939
939
  "status_next_payment_no_nextdate": "活跃",
940
940
  "status_inactive": "不活跃",
941
- "transaction_summary": "{{most_expensive_item.name}}",
941
+ "transaction_summary": "{{first_item.name}}",
942
+ "transaction_summary_plural": "{{first_item.name}} 和 {{count_minus_one}} 更多的",
942
943
  "fees_hint": "公司",
943
944
  "fees_explainer": "税费、运费和折扣可能会改变收费金额。",
944
945
  "twice_a_month": "每月两次",
@@ -1090,8 +1091,8 @@
1090
1091
  "status_refunded": "已退款",
1091
1092
  "status_voided": "作废",
1092
1093
  "status_verified": "已验证",
1093
- "summary": "{{most_expensive_item.name}}",
1094
- "summary_plural": "{{most_expensive_item.name}} 和 {{count_minus_one}} 更多的",
1094
+ "summary": "{{first_item.name}}",
1095
+ "summary_plural": "{{first_item.name}} 和 {{count_minus_one}} 更多的",
1095
1096
  "summary_payment_method_change": "付款方式变更",
1096
1097
  "summary_subscription_modification": "订阅修改",
1097
1098
  "summary_subscription_cancellation": "取消订阅",
@@ -22,7 +22,8 @@
22
22
  "status_next_payment": "Next payment on {{ next_transaction_date, date }}",
23
23
  "status_next_payment_no_nextdate": "Active",
24
24
  "status_inactive": "Inactive",
25
- "transaction_summary": "{{most_expensive_item.name}}",
25
+ "transaction_summary": "{{first_item.name}}",
26
+ "transaction_summary_plural": "{{first_item.name}} and {{ count_minus_one }} more",
26
27
  "fees_hint": "inc. shipping, taxes, etc.",
27
28
  "fees_explainer": "Taxes, shipping, and discounts may change the amount charged.",
28
29
  "twice_a_month": "Twice a month",
@@ -202,8 +202,8 @@
202
202
  "status_refunded": "Refunded",
203
203
  "status_voided": "Voided",
204
204
  "status_verified": "Verified",
205
- "summary": "{{most_expensive_item.name}}",
206
- "summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
205
+ "summary": "{{first_item.name}}",
206
+ "summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
207
207
  "summary_payment_method_change": "Payment method change",
208
208
  "summary_subscription_modification": "Subscription modification",
209
209
  "summary_subscription_cancellation": "Subscription cancellation",
@@ -14,7 +14,8 @@
14
14
  "status_ended": "Ended on {{ end_date, date }}",
15
15
  "status_next_payment": "Next payment on {{ next_transaction_date, date }}",
16
16
  "status_inactive": "Inactive",
17
- "transaction_summary": "{{most_expensive_item.name}}",
17
+ "transaction_summary": "{{first_item.name}}",
18
+ "transaction_summary_plural": "{{first_item.name}} and {{ count_minus_one }} more",
18
19
  "twice_a_month": "Twice a month",
19
20
  "update": "Update",
20
21
  "weekly": "Weekly",
@@ -20,8 +20,8 @@
20
20
  "status_refunded": "Refunded",
21
21
  "status_voided": "Voided",
22
22
  "status_verified": "Verified",
23
- "summary": "{{most_expensive_item.name}}",
24
- "summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
23
+ "summary": "{{first_item.name}}",
24
+ "summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
25
25
  "summary_payment_method_change": "Payment method change",
26
26
  "summary_subscription_modification": "Subscription modification",
27
27
  "summary_subscription_cancellation": "Subscription cancellation",
@@ -10,8 +10,8 @@
10
10
  "transaction_pending": "Pending",
11
11
  "transaction_refunded": "Refunded",
12
12
  "transaction_rejected": "Rejected",
13
- "transaction_summary": "{{most_expensive_item.name}}",
14
- "transaction_summary_plural": "{{most_expensive_item.name}} and {{count_minus_one}} more",
13
+ "transaction_summary": "{{first_item.name}}",
14
+ "transaction_summary_plural": "{{first_item.name}} and {{count_minus_one}} more",
15
15
  "transaction_verified": "Verified",
16
16
  "transaction_voided": "Voided",
17
17
  "spinner": {
@@ -20,4 +20,4 @@
20
20
  "loading_empty": "No data",
21
21
  "loading_error": "Unknown error"
22
22
  }
23
- }
23
+ }
@@ -72,12 +72,13 @@ div:has(> select)::after{
72
72
  'h-m': !isSummaryItem,
73
73
  });
74
74
  const isAddButtonDisabled = this.disabled || !this.__newItem;
75
- const addItem = () => {
75
+ const addItem = (split = false) => {
76
76
  var _a;
77
77
  const newValue = [...this._value];
78
+ const splitBy = split && this.__newItem.includes(',') ? ',' : '\n';
78
79
  const unit = (_a = this.renderRoot.querySelector('select')) === null || _a === void 0 ? void 0 : _a.value;
79
80
  this.__newItem
80
- .split('\n')
81
+ .split(splitBy)
81
82
  .map(code => code.trim())
82
83
  .filter(code => code.length > 0)
83
84
  .forEach(value => {
@@ -246,8 +247,8 @@ div:has(> select)::after{
246
247
  var _a, _b;
247
248
  evt.preventDefault();
248
249
  this.__newItem = (_b = (_a = evt.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text')) !== null && _b !== void 0 ? _b : '';
249
- if (this.__newItem.includes('\n'))
250
- addItem();
250
+ if (this.__newItem.includes('\n') || this.__newItem.includes(','))
251
+ addItem(true);
251
252
  }}
252
253
  @blur=${() => {
253
254
  this.__isErrorVisible = true;