@foxy.io/elements 1.58.1 → 1.59.1

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 (683) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +2 -2
  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-admin-transaction-card.js +1 -1
  7. package/dist/cdn/foxy-api-browser.js +1 -1
  8. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  9. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  10. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  11. package/dist/cdn/foxy-attribute-card.js +1 -1
  12. package/dist/cdn/foxy-attribute-form.js +1 -1
  13. package/dist/cdn/foxy-billing-address-card.js +1 -1
  14. package/dist/cdn/foxy-cancellation-form.js +1 -1
  15. package/dist/cdn/foxy-cart-card.js +1 -1
  16. package/dist/cdn/foxy-cart-form.js +2 -2
  17. package/dist/cdn/foxy-client-card.js +1 -1
  18. package/dist/cdn/foxy-client-form.js +1 -1
  19. package/dist/cdn/foxy-collection-page.js +1 -1
  20. package/dist/cdn/foxy-collection-pages.js +1 -1
  21. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  22. package/dist/cdn/foxy-coupon-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-code-card.js +1 -1
  24. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  25. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  26. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  27. package/dist/cdn/foxy-coupon-form.js +1 -1
  28. package/dist/cdn/foxy-custom-field-card.js +1 -1
  29. package/dist/cdn/foxy-custom-field-form.js +1 -1
  30. package/dist/cdn/foxy-customer-api.js +1 -1
  31. package/dist/cdn/foxy-customer-card.js +1 -1
  32. package/dist/cdn/foxy-customer-form.js +1 -1
  33. package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
  34. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  35. package/dist/cdn/foxy-customer-portal.js +11 -11
  36. package/dist/cdn/foxy-customer.js +7 -7
  37. package/dist/cdn/foxy-customers-table.js +1 -1
  38. package/dist/cdn/foxy-discount-builder.js +1 -1
  39. package/dist/cdn/foxy-discount-card.js +1 -1
  40. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  41. package/dist/cdn/foxy-donation.js +1 -1
  42. package/dist/cdn/foxy-downloadable-card.js +1 -1
  43. package/dist/cdn/foxy-downloadable-form.js +2 -2
  44. package/dist/cdn/foxy-email-template-card.js +1 -1
  45. package/dist/cdn/foxy-email-template-form.js +1 -1
  46. package/dist/cdn/foxy-error-entry-card.js +1 -1
  47. package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
  48. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  49. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  50. package/dist/cdn/foxy-form-dialog.js +1 -1
  51. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  52. package/dist/cdn/foxy-gift-card-card.js +1 -1
  53. package/dist/cdn/foxy-gift-card-code-card.js +1 -1
  54. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  55. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  56. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  57. package/dist/cdn/foxy-gift-card-form.js +1 -1
  58. package/dist/cdn/foxy-i18n-editor.js +3 -3
  59. package/dist/cdn/foxy-i18n.js +1 -1
  60. package/dist/cdn/foxy-integration-card.js +1 -1
  61. package/dist/cdn/foxy-integration-form.js +1 -1
  62. package/dist/cdn/foxy-item-card.js +1 -1
  63. package/dist/cdn/foxy-item-category-card.js +1 -1
  64. package/dist/cdn/foxy-item-category-form.js +1 -1
  65. package/dist/cdn/foxy-item-form.js +1 -1
  66. package/dist/cdn/foxy-item-option-card.js +1 -1
  67. package/dist/cdn/foxy-item-option-form.js +1 -1
  68. package/dist/cdn/foxy-items-form.js +1 -1
  69. package/dist/cdn/foxy-native-integration-card.js +1 -1
  70. package/dist/cdn/foxy-native-integration-form.js +1 -1
  71. package/dist/cdn/foxy-nucleon-element.js +1 -1
  72. package/dist/cdn/foxy-pagination.js +1 -1
  73. package/dist/cdn/foxy-passkey-card.js +1 -1
  74. package/dist/cdn/foxy-passkey-form.js +1 -1
  75. package/dist/cdn/foxy-payment-card-embed.js +1 -1
  76. package/dist/cdn/foxy-payment-card.js +1 -1
  77. package/dist/cdn/foxy-payment-method-card.js +1 -1
  78. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  79. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  80. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  81. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  82. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  83. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  84. package/dist/cdn/foxy-payments-api.js +1 -1
  85. package/dist/cdn/foxy-query-builder.js +1 -1
  86. package/dist/cdn/foxy-report-form.js +1 -1
  87. package/dist/cdn/foxy-reports-table.js +1 -1
  88. package/dist/cdn/foxy-shipment-card.js +1 -1
  89. package/dist/cdn/foxy-shipping-container-card.js +1 -1
  90. package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
  91. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  92. package/dist/cdn/foxy-shipping-service-card.js +1 -1
  93. package/dist/cdn/foxy-sign-in-form.js +1 -1
  94. package/dist/cdn/foxy-spinner.js +2 -2
  95. package/dist/cdn/foxy-store-card.js +1 -1
  96. package/dist/cdn/foxy-store-form.js +1 -1
  97. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  98. package/dist/cdn/foxy-store-transaction-folder-card.js +1 -1
  99. package/dist/cdn/foxy-store-transaction-folder-form.js +1 -1
  100. package/dist/cdn/foxy-subscription-card.js +1 -1
  101. package/dist/cdn/foxy-subscription-form.js +1 -1
  102. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  103. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  104. package/dist/cdn/foxy-table.js +1 -1
  105. package/dist/cdn/foxy-tax-card.js +1 -1
  106. package/dist/cdn/foxy-tax-form.js +1 -1
  107. package/dist/cdn/foxy-template-config-form.js +1 -1
  108. package/dist/cdn/foxy-template-form.js +1 -1
  109. package/dist/cdn/foxy-template-set-card.js +1 -1
  110. package/dist/cdn/foxy-template-set-form.js +1 -1
  111. package/dist/cdn/foxy-transaction-card.js +1 -1
  112. package/dist/cdn/foxy-transaction.js +1 -1
  113. package/dist/cdn/foxy-transactions-table.js +7 -7
  114. package/dist/cdn/foxy-update-payment-method-form.js +1 -1
  115. package/dist/cdn/foxy-user-card.js +1 -1
  116. package/dist/cdn/foxy-user-form.js +1 -1
  117. package/dist/cdn/foxy-user-invitation-card.js +1 -1
  118. package/dist/cdn/foxy-user-invitation-form.js +1 -1
  119. package/dist/cdn/foxy-users-table.js +1 -1
  120. package/dist/cdn/foxy-webhook-card.js +1 -1
  121. package/dist/cdn/foxy-webhook-form.js +1 -1
  122. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  123. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  124. package/dist/cdn/{shared-1d5baaf5.js → shared-0811ea40.js} +1 -1
  125. package/dist/cdn/{shared-80950330.js → shared-142df717.js} +1 -1
  126. package/dist/cdn/{shared-73b1e51b.js → shared-14713ead.js} +1 -1
  127. package/dist/cdn/{shared-efe0bfd2.js → shared-19b475f7.js} +1 -1
  128. package/dist/cdn/{shared-f9e4a1cc.js → shared-19c47f53.js} +1 -1
  129. package/dist/cdn/{shared-9154f04d.js → shared-1a814f90.js} +1 -1
  130. package/dist/cdn/shared-1b414966.js +1 -0
  131. package/dist/cdn/{shared-9c1f1c3b.js → shared-1e9df11c.js} +1 -1
  132. package/dist/cdn/shared-20841d9c.js +1 -0
  133. package/dist/cdn/shared-2652e98e.js +1 -0
  134. package/dist/cdn/{shared-9a3bf65c.js → shared-28cc8aa1.js} +1 -1
  135. package/dist/cdn/{shared-3b5a845e.js → shared-28fa98d7.js} +1 -1
  136. package/dist/cdn/{shared-7892fd3f.js → shared-2fbfbe12.js} +1 -1
  137. package/dist/cdn/shared-336e73ce.js +1 -0
  138. package/dist/cdn/{shared-b4b6bd8b.js → shared-33d770fe.js} +1 -1
  139. package/dist/cdn/{shared-a0309d5f.js → shared-34262bb8.js} +1 -1
  140. package/dist/cdn/shared-36f1e29f.js +1 -0
  141. package/dist/cdn/{shared-e2e5d7d0.js → shared-38e0a818.js} +1 -1
  142. package/dist/cdn/{shared-803be1e4.js → shared-3991076b.js} +1 -1
  143. package/dist/cdn/{shared-5d7439e3.js → shared-3baa9cc9.js} +1 -1
  144. package/dist/cdn/{shared-305a1f88.js → shared-3bb289b3.js} +1 -1
  145. package/dist/cdn/{shared-d81149d8.js → shared-3eca56ee.js} +1 -1
  146. package/dist/cdn/{shared-377cce47.js → shared-3fd75ee6.js} +1 -1
  147. package/dist/cdn/shared-453bc087.js +1 -0
  148. package/dist/cdn/{shared-486d4db3.js → shared-45649d84.js} +1 -1
  149. package/dist/cdn/{shared-b948488a.js → shared-48910b3f.js} +1 -1
  150. package/dist/cdn/{shared-8ff47d1a.js → shared-4cc16cdf.js} +1 -1
  151. package/dist/cdn/shared-50ef1d5a.js +1 -0
  152. package/dist/cdn/{shared-a0baefff.js → shared-53a5212e.js} +1 -1
  153. package/dist/cdn/shared-559b648a.js +1 -0
  154. package/dist/cdn/{shared-8df8e77c.js → shared-56741bad.js} +1 -1
  155. package/dist/cdn/{shared-2cab5d23.js → shared-59dfee2c.js} +1 -1
  156. package/dist/cdn/{shared-887ac0b0.js → shared-5b8c7250.js} +1 -1
  157. package/dist/cdn/{shared-ce05e482.js → shared-5dbd66e3.js} +1 -1
  158. package/dist/cdn/{shared-b5e048f5.js → shared-6262e0d6.js} +1 -1
  159. package/dist/cdn/{shared-3eac4b7c.js → shared-62ee726e.js} +1 -1
  160. package/dist/cdn/{shared-3a91efdc.js → shared-760a2243.js} +1 -1
  161. package/dist/cdn/{shared-f6416c66.js → shared-7b6a899b.js} +1 -1
  162. package/dist/cdn/{shared-6c167083.js → shared-8ec1b077.js} +1 -1
  163. package/dist/cdn/{shared-65094878.js → shared-91483320.js} +1 -1
  164. package/dist/cdn/{shared-6a0e1b94.js → shared-98457d79.js} +3 -3
  165. package/dist/cdn/{shared-37a12ea3.js → shared-9f8b593b.js} +5 -5
  166. package/dist/cdn/{shared-faa174b6.js → shared-a08f594b.js} +1 -1
  167. package/dist/cdn/shared-a1bec4a0.js +1 -0
  168. package/dist/cdn/shared-a44fcc6a.js +1 -0
  169. package/dist/cdn/{shared-515003f6.js → shared-a8ae24f0.js} +1 -1
  170. package/dist/cdn/shared-ab1f5f1f.js +1 -0
  171. package/dist/cdn/{shared-9687ab7b.js → shared-affe06c0.js} +1 -1
  172. package/dist/cdn/{shared-afdf7b0c.js → shared-b48cd5d3.js} +1 -1
  173. package/dist/cdn/shared-b84996e5.js +1 -0
  174. package/dist/cdn/{shared-772990cd.js → shared-bc74cd11.js} +4 -4
  175. package/dist/cdn/{shared-2a678cc8.js → shared-be20875c.js} +1 -1
  176. package/dist/cdn/{shared-a95d3946.js → shared-c066b7fd.js} +1 -1
  177. package/dist/cdn/{shared-6cdfb858.js → shared-c3d6bcc0.js} +1 -1
  178. package/dist/cdn/{shared-f8e360e6.js → shared-c56c3e1e.js} +1 -1
  179. package/dist/cdn/{shared-db623837.js → shared-c59277a4.js} +1 -1
  180. package/dist/cdn/{shared-058530fc.js → shared-cb5305b9.js} +1 -1
  181. package/dist/cdn/{shared-19073761.js → shared-cf1965cb.js} +1 -1
  182. package/dist/cdn/{shared-0f92b865.js → shared-cfc6735e.js} +1 -1
  183. package/dist/cdn/{shared-b8f09caa.js → shared-d743ec15.js} +1 -1
  184. package/dist/cdn/{shared-a20ef119.js → shared-d8b880bb.js} +1 -1
  185. package/dist/cdn/shared-da3393a5.js +1 -0
  186. package/dist/cdn/{shared-adfa4b7a.js → shared-db17c9ee.js} +1 -1
  187. package/dist/cdn/{shared-99c53365.js → shared-dc6e5879.js} +1 -1
  188. package/dist/cdn/{shared-60497743.js → shared-e2a5457f.js} +1 -1
  189. package/dist/cdn/{shared-a5d6db21.js → shared-e9f51baa.js} +1 -1
  190. package/dist/cdn/{shared-0fd68dc0.js → shared-f410644a.js} +1 -1
  191. package/dist/cdn/{shared-8d8975d5.js → shared-f77994ad.js} +1 -1
  192. package/dist/cdn/{shared-0cf593c8.js → shared-fdf6df5c.js} +1 -1
  193. package/dist/cdn/translations/access-recovery-form/en.json +2 -1
  194. package/dist/cdn/translations/address-card/en.json +2 -1
  195. package/dist/cdn/translations/address-form/en.json +2 -1
  196. package/dist/cdn/translations/admin-subscription-card/en.json +3 -1
  197. package/dist/cdn/translations/admin-subscription-form/en.json +60 -25
  198. package/dist/cdn/translations/admin-transaction-card/en.json +2 -1
  199. package/dist/cdn/translations/applied-coupon-code-card/en.json +2 -1
  200. package/dist/cdn/translations/applied-coupon-code-form/en.json +2 -1
  201. package/dist/cdn/translations/applied-tax-card/en.json +2 -1
  202. package/dist/cdn/translations/attribute-card/en.json +2 -1
  203. package/dist/cdn/translations/attribute-form/en.json +2 -1
  204. package/dist/cdn/translations/billing-address-card/en.json +2 -1
  205. package/dist/cdn/translations/cancellation-form/en.json +2 -1
  206. package/dist/cdn/translations/cart-card/en.json +2 -1
  207. package/dist/cdn/translations/cart-form/en.json +48 -23
  208. package/dist/cdn/translations/client-card/en.json +2 -1
  209. package/dist/cdn/translations/client-form/en.json +2 -1
  210. package/dist/cdn/translations/coupon-card/en.json +2 -1
  211. package/dist/cdn/translations/coupon-code-card/en.json +2 -1
  212. package/dist/cdn/translations/coupon-code-form/en.json +4 -2
  213. package/dist/cdn/translations/coupon-codes-form/en.json +2 -1
  214. package/dist/cdn/translations/coupon-form/en.json +23 -10
  215. package/dist/cdn/translations/custom-field-card/en.json +2 -1
  216. package/dist/cdn/translations/custom-field-form/en.json +2 -1
  217. package/dist/cdn/translations/customer/en.json +35 -17
  218. package/dist/cdn/translations/customer-card/en.json +2 -1
  219. package/dist/cdn/translations/customer-form/en.json +2 -1
  220. package/dist/cdn/translations/customer-portal/en.json +29 -14
  221. package/dist/cdn/translations/customer-portal-settings-form/en.json +10 -5
  222. package/dist/cdn/translations/customers-table/en.json +1 -0
  223. package/dist/cdn/translations/discount-card/en.json +2 -1
  224. package/dist/cdn/translations/downloadable-card/en.json +2 -1
  225. package/dist/cdn/translations/downloadable-form/en.json +4 -2
  226. package/dist/cdn/translations/email-template-card/en.json +2 -1
  227. package/dist/cdn/translations/email-template-form/en.json +6 -3
  228. package/dist/cdn/translations/error-entry-card/en.json +2 -1
  229. package/dist/cdn/translations/experimental-add-to-cart-builder/en.json +18 -8
  230. package/dist/cdn/translations/filter-attribute-card/en.json +2 -1
  231. package/dist/cdn/translations/filter-attribute-form/en.json +2 -1
  232. package/dist/cdn/translations/generate-codes-form/en.json +2 -1
  233. package/dist/cdn/translations/gift-card-card/en.json +2 -1
  234. package/dist/cdn/translations/gift-card-code-card/en.json +2 -1
  235. package/dist/cdn/translations/gift-card-code-form/en.json +10 -5
  236. package/dist/cdn/translations/gift-card-code-log-card/en.json +2 -1
  237. package/dist/cdn/translations/gift-card-codes-form/en.json +2 -1
  238. package/dist/cdn/translations/gift-card-form/en.json +29 -13
  239. package/dist/cdn/translations/i18n-editor/en.json +2 -1
  240. package/dist/cdn/translations/integration-card/en.json +2 -1
  241. package/dist/cdn/translations/integration-form/en.json +2 -1
  242. package/dist/cdn/translations/item-card/en.json +2 -1
  243. package/dist/cdn/translations/item-category-card/en.json +2 -1
  244. package/dist/cdn/translations/item-category-form/en.json +11 -4
  245. package/dist/cdn/translations/item-form/en.json +19 -9
  246. package/dist/cdn/translations/item-option-form/en.json +2 -1
  247. package/dist/cdn/translations/native-integration-card/en.json +2 -1
  248. package/dist/cdn/translations/native-integration-form/en.json +6 -3
  249. package/dist/cdn/translations/passkey-card/en.json +2 -1
  250. package/dist/cdn/translations/passkey-form/en.json +2 -1
  251. package/dist/cdn/translations/payment-card/en.json +2 -1
  252. package/dist/cdn/translations/payment-method-card/en.json +7 -3
  253. package/dist/cdn/translations/payments-api-fraud-protection-card/en.json +2 -1
  254. package/dist/cdn/translations/payments-api-fraud-protection-form/en.json +4 -2
  255. package/dist/cdn/translations/payments-api-payment-method-card/en.json +2 -1
  256. package/dist/cdn/translations/payments-api-payment-method-form/en.json +3 -1
  257. package/dist/cdn/translations/payments-api-payment-preset-card/en.json +2 -1
  258. package/dist/cdn/translations/payments-api-payment-preset-form/en.json +10 -5
  259. package/dist/cdn/translations/report-form/en.json +2 -1
  260. package/dist/cdn/translations/reports-table/en.json +4 -2
  261. package/dist/cdn/translations/shipment-card/en.json +2 -1
  262. package/dist/cdn/translations/shipping-container-card/en.json +2 -1
  263. package/dist/cdn/translations/shipping-drop-type-card/en.json +2 -1
  264. package/dist/cdn/translations/shipping-method-card/en.json +2 -1
  265. package/dist/cdn/translations/shipping-service-card/en.json +2 -1
  266. package/dist/cdn/translations/sign-in-form/en.json +2 -1
  267. package/dist/cdn/translations/spinner/en.json +2 -0
  268. package/dist/cdn/translations/store-card/en.json +2 -1
  269. package/dist/cdn/translations/store-form/en.json +2 -1
  270. package/dist/cdn/translations/store-shipping-method-form/en.json +21 -9
  271. package/dist/cdn/translations/store-transaction-folder-card/en.json +2 -1
  272. package/dist/cdn/translations/store-transaction-folder-form/en.json +2 -1
  273. package/dist/cdn/translations/subscription-card/en.json +2 -1
  274. package/dist/cdn/translations/subscription-form/en.json +12 -6
  275. package/dist/cdn/translations/subscription-settings-form/en.json +2 -1
  276. package/dist/cdn/translations/subscriptions-table/en.json +2 -1
  277. package/dist/cdn/translations/tax-card/en.json +2 -1
  278. package/dist/cdn/translations/tax-form/en.json +10 -3
  279. package/dist/cdn/translations/template-config-form/en.json +2 -1
  280. package/dist/cdn/translations/template-form/en.json +4 -2
  281. package/dist/cdn/translations/template-set-card/en.json +2 -1
  282. package/dist/cdn/translations/template-set-form/en.json +8 -4
  283. package/dist/cdn/translations/transaction/en.json +51 -21
  284. package/dist/cdn/translations/transaction-card/en.json +2 -1
  285. package/dist/cdn/translations/transactions-table/en.json +2 -1
  286. package/dist/cdn/translations/update-payment-method-form/en.json +5 -2
  287. package/dist/cdn/translations/user-card/en.json +2 -1
  288. package/dist/cdn/translations/user-form/en.json +2 -1
  289. package/dist/cdn/translations/user-invitation-card/en.json +42 -12
  290. package/dist/cdn/translations/user-invitation-form/en.json +65 -9
  291. package/dist/cdn/translations/users-table/en.json +4 -2
  292. package/dist/cdn/translations/webhook-card/en.json +1 -0
  293. package/dist/cdn/translations/webhook-form/en.json +4 -1
  294. package/dist/cdn/translations/webhook-log-card/en.json +1 -0
  295. package/dist/cdn/translations/webhook-status-card/en.json +1 -0
  296. package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.d.ts +1 -0
  297. package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js +17 -10
  298. package/dist/elements/internal/InternalAsyncListControl/InternalAsyncListControl.js.map +1 -1
  299. package/dist/elements/internal/InternalAsyncResourceLinkListControl/InternalAsyncResourceLinkListControl.d.ts +3 -0
  300. package/dist/elements/internal/InternalAsyncResourceLinkListControl/InternalAsyncResourceLinkListControl.js +68 -26
  301. package/dist/elements/internal/InternalAsyncResourceLinkListControl/InternalAsyncResourceLinkListControl.js.map +1 -1
  302. package/dist/elements/internal/InternalCard/InternalCard.js +17 -7
  303. package/dist/elements/internal/InternalCard/InternalCard.js.map +1 -1
  304. package/dist/elements/internal/InternalForm/InternalForm.js +4 -2
  305. package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
  306. package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js +2 -0
  307. package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js.map +1 -1
  308. package/dist/elements/internal/InternalPostActionControl/InternalPostActionControlDialog.js +17 -4
  309. package/dist/elements/internal/InternalPostActionControl/InternalPostActionControlDialog.js.map +1 -1
  310. package/dist/elements/internal/InternalSelectControl/InternalSelectControl.js +24 -0
  311. package/dist/elements/internal/InternalSelectControl/InternalSelectControl.js.map +1 -1
  312. package/dist/elements/public/AddressCard/AddressCard.d.ts +2 -0
  313. package/dist/elements/public/AddressCard/AddressCard.js +4 -0
  314. package/dist/elements/public/AddressCard/AddressCard.js.map +1 -1
  315. package/dist/elements/public/AddressForm/AddressForm.d.ts +2 -0
  316. package/dist/elements/public/AddressForm/AddressForm.js +10 -0
  317. package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
  318. package/dist/elements/public/AdminSubscriptionCard/AdminSubscriptionCard.d.ts +2 -0
  319. package/dist/elements/public/AdminSubscriptionCard/AdminSubscriptionCard.js +37 -10
  320. package/dist/elements/public/AdminSubscriptionCard/AdminSubscriptionCard.js.map +1 -1
  321. package/dist/elements/public/AdminSubscriptionForm/AdminSubscriptionForm.d.ts +2 -0
  322. package/dist/elements/public/AdminSubscriptionForm/AdminSubscriptionForm.js +15 -4
  323. package/dist/elements/public/AdminSubscriptionForm/AdminSubscriptionForm.js.map +1 -1
  324. package/dist/elements/public/AdminTransactionCard/AdminTransactionCard.d.ts +3 -0
  325. package/dist/elements/public/AdminTransactionCard/AdminTransactionCard.js +11 -2
  326. package/dist/elements/public/AdminTransactionCard/AdminTransactionCard.js.map +1 -1
  327. package/dist/elements/public/AppliedCouponCodeCard/AppliedCouponCodeCard.d.ts +3 -0
  328. package/dist/elements/public/AppliedCouponCodeCard/AppliedCouponCodeCard.js +11 -2
  329. package/dist/elements/public/AppliedCouponCodeCard/AppliedCouponCodeCard.js.map +1 -1
  330. package/dist/elements/public/AppliedCouponCodeForm/AppliedCouponCodeForm.d.ts +2 -0
  331. package/dist/elements/public/AppliedCouponCodeForm/AppliedCouponCodeForm.js +11 -0
  332. package/dist/elements/public/AppliedCouponCodeForm/AppliedCouponCodeForm.js.map +1 -1
  333. package/dist/elements/public/AppliedTaxCard/AppliedTaxCard.d.ts +2 -0
  334. package/dist/elements/public/AppliedTaxCard/AppliedTaxCard.js +10 -4
  335. package/dist/elements/public/AppliedTaxCard/AppliedTaxCard.js.map +1 -1
  336. package/dist/elements/public/AttributeCard/AttributeCard.js +1 -0
  337. package/dist/elements/public/AttributeCard/AttributeCard.js.map +1 -1
  338. package/dist/elements/public/CancellationForm/CancellationForm.d.ts +3 -0
  339. package/dist/elements/public/CancellationForm/CancellationForm.js +10 -1
  340. package/dist/elements/public/CancellationForm/CancellationForm.js.map +1 -1
  341. package/dist/elements/public/CartCard/CartCard.d.ts +4 -0
  342. package/dist/elements/public/CartCard/CartCard.js +28 -6
  343. package/dist/elements/public/CartCard/CartCard.js.map +1 -1
  344. package/dist/elements/public/CartForm/CartForm.d.ts +2 -0
  345. package/dist/elements/public/CartForm/CartForm.js +21 -0
  346. package/dist/elements/public/CartForm/CartForm.js.map +1 -1
  347. package/dist/elements/public/CartForm/internal/InternalCartFormCreateSessionAction/InternalCartFormCreateSessionAction.js +5 -2
  348. package/dist/elements/public/CartForm/internal/InternalCartFormCreateSessionAction/InternalCartFormCreateSessionAction.js.map +1 -1
  349. package/dist/elements/public/CollectionPage/CollectionPage.js +7 -1
  350. package/dist/elements/public/CollectionPage/CollectionPage.js.map +1 -1
  351. package/dist/elements/public/CollectionPages/CollectionPages.js +5 -2
  352. package/dist/elements/public/CollectionPages/CollectionPages.js.map +1 -1
  353. package/dist/elements/public/CouponCard/CouponCard.d.ts +2 -0
  354. package/dist/elements/public/CouponCard/CouponCard.js +4 -0
  355. package/dist/elements/public/CouponCard/CouponCard.js.map +1 -1
  356. package/dist/elements/public/CouponCodeCard/CouponCodeCard.d.ts +3 -1
  357. package/dist/elements/public/CouponCodeCard/CouponCodeCard.js +5 -1
  358. package/dist/elements/public/CouponCodeCard/CouponCodeCard.js.map +1 -1
  359. package/dist/elements/public/CouponCodeForm/CouponCodeForm.d.ts +3 -0
  360. package/dist/elements/public/CouponCodeForm/CouponCodeForm.js +7 -0
  361. package/dist/elements/public/CouponCodeForm/CouponCodeForm.js.map +1 -1
  362. package/dist/elements/public/CouponCodesForm/CouponCodesForm.d.ts +2 -0
  363. package/dist/elements/public/CouponCodesForm/CouponCodesForm.js +3 -0
  364. package/dist/elements/public/CouponCodesForm/CouponCodesForm.js.map +1 -1
  365. package/dist/elements/public/CouponDetailCard/CouponDetailCard.d.ts +2 -0
  366. package/dist/elements/public/CouponDetailCard/CouponDetailCard.js +10 -4
  367. package/dist/elements/public/CouponDetailCard/CouponDetailCard.js.map +1 -1
  368. package/dist/elements/public/CouponForm/CouponForm.d.ts +3 -0
  369. package/dist/elements/public/CouponForm/CouponForm.js +11 -0
  370. package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
  371. package/dist/elements/public/CustomFieldCard/CustomFieldCard.d.ts +2 -0
  372. package/dist/elements/public/CustomFieldCard/CustomFieldCard.js +4 -0
  373. package/dist/elements/public/CustomFieldCard/CustomFieldCard.js.map +1 -1
  374. package/dist/elements/public/CustomFieldForm/CustomFieldForm.d.ts +2 -0
  375. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +4 -0
  376. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
  377. package/dist/elements/public/Customer/Customer.d.ts +2 -0
  378. package/dist/elements/public/Customer/Customer.js +25 -2
  379. package/dist/elements/public/Customer/Customer.js.map +1 -1
  380. package/dist/elements/public/CustomerCard/CustomerCard.d.ts +2 -0
  381. package/dist/elements/public/CustomerCard/CustomerCard.js +4 -0
  382. package/dist/elements/public/CustomerCard/CustomerCard.js.map +1 -1
  383. package/dist/elements/public/CustomerForm/CustomerForm.d.ts +2 -0
  384. package/dist/elements/public/CustomerForm/CustomerForm.js +3 -0
  385. package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
  386. package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.d.ts +2 -0
  387. package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.js +3 -0
  388. package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.js.map +1 -1
  389. package/dist/elements/public/CustomersTable/CustomersTable.d.ts +2 -0
  390. package/dist/elements/public/CustomersTable/CustomersTable.js +3 -0
  391. package/dist/elements/public/CustomersTable/CustomersTable.js.map +1 -1
  392. package/dist/elements/public/DiscountCard/DiscountCard.d.ts +2 -0
  393. package/dist/elements/public/DiscountCard/DiscountCard.js +10 -4
  394. package/dist/elements/public/DiscountCard/DiscountCard.js.map +1 -1
  395. package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.d.ts +2 -0
  396. package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js +10 -4
  397. package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js.map +1 -1
  398. package/dist/elements/public/DownloadableCard/DownloadableCard.d.ts +2 -0
  399. package/dist/elements/public/DownloadableCard/DownloadableCard.js +3 -0
  400. package/dist/elements/public/DownloadableCard/DownloadableCard.js.map +1 -1
  401. package/dist/elements/public/DownloadableForm/DownloadableForm.d.ts +3 -0
  402. package/dist/elements/public/DownloadableForm/DownloadableForm.js +9 -0
  403. package/dist/elements/public/DownloadableForm/DownloadableForm.js.map +1 -1
  404. package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.d.ts +2 -0
  405. package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.js +3 -0
  406. package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.js.map +1 -1
  407. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.d.ts +3 -0
  408. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js +9 -0
  409. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js.map +1 -1
  410. package/dist/elements/public/EmailTemplateForm/internal/InternalEmailTemplateFormAsyncAction/InternalEmailTemplateFormAsyncAction.js +7 -2
  411. package/dist/elements/public/EmailTemplateForm/internal/InternalEmailTemplateFormAsyncAction/InternalEmailTemplateFormAsyncAction.js.map +1 -1
  412. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.d.ts +5 -2
  413. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js +13 -4
  414. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js.map +1 -1
  415. package/dist/elements/public/ErrorEntryCard/ResourceViewer.js +1 -0
  416. package/dist/elements/public/ErrorEntryCard/ResourceViewer.js.map +1 -1
  417. package/dist/elements/public/ExperimentalAddToCartBuilder/ExperimentalAddToCartBuilder.d.ts +3 -0
  418. package/dist/elements/public/ExperimentalAddToCartBuilder/ExperimentalAddToCartBuilder.js +34 -0
  419. package/dist/elements/public/ExperimentalAddToCartBuilder/ExperimentalAddToCartBuilder.js.map +1 -1
  420. package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.d.ts +3 -1
  421. package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js +5 -1
  422. package/dist/elements/public/FilterAttributeCard/FilterAttributeCard.js.map +1 -1
  423. package/dist/elements/public/FormDialog/FormDialog.js +1 -0
  424. package/dist/elements/public/FormDialog/FormDialog.js.map +1 -1
  425. package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.d.ts +2 -0
  426. package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js +9 -0
  427. package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js.map +1 -1
  428. package/dist/elements/public/GiftCardCard/GiftCardCard.d.ts +2 -0
  429. package/dist/elements/public/GiftCardCard/GiftCardCard.js +4 -0
  430. package/dist/elements/public/GiftCardCard/GiftCardCard.js.map +1 -1
  431. package/dist/elements/public/GiftCardCodeCard/GiftCardCodeCard.d.ts +4 -1
  432. package/dist/elements/public/GiftCardCodeCard/GiftCardCodeCard.js +13 -3
  433. package/dist/elements/public/GiftCardCodeCard/GiftCardCodeCard.js.map +1 -1
  434. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.d.ts +3 -0
  435. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js +10 -0
  436. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js.map +1 -1
  437. package/dist/elements/public/GiftCardCodeLogCard/GiftCardCodeLogCard.d.ts +2 -1
  438. package/dist/elements/public/GiftCardCodeLogCard/GiftCardCodeLogCard.js +10 -3
  439. package/dist/elements/public/GiftCardCodeLogCard/GiftCardCodeLogCard.js.map +1 -1
  440. package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.d.ts +2 -0
  441. package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.js +3 -0
  442. package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.js.map +1 -1
  443. package/dist/elements/public/GiftCardForm/GiftCardForm.d.ts +3 -0
  444. package/dist/elements/public/GiftCardForm/GiftCardForm.js +10 -0
  445. package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -1
  446. package/dist/elements/public/I18nEditor/I18nEditor.js +1 -0
  447. package/dist/elements/public/I18nEditor/I18nEditor.js.map +1 -1
  448. package/dist/elements/public/I18nEditor/internal/InternalI18nEditorEntry/InternalI18nEditorEntry.js +1 -1
  449. package/dist/elements/public/I18nEditor/internal/InternalI18nEditorEntry/InternalI18nEditorEntry.js.map +1 -1
  450. package/dist/elements/public/IntegrationCard/IntegrationCard.d.ts +3 -1
  451. package/dist/elements/public/IntegrationCard/IntegrationCard.js +5 -1
  452. package/dist/elements/public/IntegrationCard/IntegrationCard.js.map +1 -1
  453. package/dist/elements/public/IntegrationForm/IntegrationForm.d.ts +2 -0
  454. package/dist/elements/public/IntegrationForm/IntegrationForm.js +9 -6
  455. package/dist/elements/public/IntegrationForm/IntegrationForm.js.map +1 -1
  456. package/dist/elements/public/ItemCard/ItemCard.d.ts +4 -0
  457. package/dist/elements/public/ItemCard/ItemCard.js +26 -7
  458. package/dist/elements/public/ItemCard/ItemCard.js.map +1 -1
  459. package/dist/elements/public/ItemCategoryCard/ItemCategoryCard.d.ts +2 -0
  460. package/dist/elements/public/ItemCategoryCard/ItemCategoryCard.js +3 -0
  461. package/dist/elements/public/ItemCategoryCard/ItemCategoryCard.js.map +1 -1
  462. package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.d.ts +2 -0
  463. package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.js +14 -0
  464. package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.js.map +1 -1
  465. package/dist/elements/public/ItemForm/ItemForm.d.ts +3 -0
  466. package/dist/elements/public/ItemForm/ItemForm.js +26 -9
  467. package/dist/elements/public/ItemForm/ItemForm.js.map +1 -1
  468. package/dist/elements/public/ItemOptionCard/ItemOptionCard.d.ts +2 -0
  469. package/dist/elements/public/ItemOptionCard/ItemOptionCard.js +21 -7
  470. package/dist/elements/public/ItemOptionCard/ItemOptionCard.js.map +1 -1
  471. package/dist/elements/public/ItemOptionForm/ItemOptionForm.d.ts +2 -0
  472. package/dist/elements/public/ItemOptionForm/ItemOptionForm.js +4 -0
  473. package/dist/elements/public/ItemOptionForm/ItemOptionForm.js.map +1 -1
  474. package/dist/elements/public/NativeIntegrationCard/NativeIntegrationCard.d.ts +3 -1
  475. package/dist/elements/public/NativeIntegrationCard/NativeIntegrationCard.js +7 -1
  476. package/dist/elements/public/NativeIntegrationCard/NativeIntegrationCard.js.map +1 -1
  477. package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.d.ts +3 -0
  478. package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js +19 -0
  479. package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js.map +1 -1
  480. package/dist/elements/public/NucleonElement/NucleonElement.d.ts +9 -0
  481. package/dist/elements/public/NucleonElement/NucleonElement.js +27 -1
  482. package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
  483. package/dist/elements/public/PasskeyCard/PasskeyCard.d.ts +2 -0
  484. package/dist/elements/public/PasskeyCard/PasskeyCard.js +3 -0
  485. package/dist/elements/public/PasskeyCard/PasskeyCard.js.map +1 -1
  486. package/dist/elements/public/PasskeyForm/PasskeyForm.d.ts +2 -0
  487. package/dist/elements/public/PasskeyForm/PasskeyForm.js +3 -0
  488. package/dist/elements/public/PasskeyForm/PasskeyForm.js.map +1 -1
  489. package/dist/elements/public/PaymentCard/PaymentCard.d.ts +2 -1
  490. package/dist/elements/public/PaymentCard/PaymentCard.js +11 -2
  491. package/dist/elements/public/PaymentCard/PaymentCard.js.map +1 -1
  492. package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.d.ts +3 -0
  493. package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.js +14 -2
  494. package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.js.map +1 -1
  495. package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.js +2 -2
  496. package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.js.map +1 -1
  497. package/dist/elements/public/PaymentsApi/api/handlers/available_payment_methods.js +2 -2
  498. package/dist/elements/public/PaymentsApi/api/handlers/available_payment_methods.js.map +1 -1
  499. package/dist/elements/public/PaymentsApi/api/handlers/fraud_protection.js +2 -2
  500. package/dist/elements/public/PaymentsApi/api/handlers/fraud_protection.js.map +1 -1
  501. package/dist/elements/public/PaymentsApi/api/handlers/fraud_protections.js +2 -2
  502. package/dist/elements/public/PaymentsApi/api/handlers/fraud_protections.js.map +1 -1
  503. package/dist/elements/public/PaymentsApi/api/handlers/payment_method.js +2 -2
  504. package/dist/elements/public/PaymentsApi/api/handlers/payment_method.js.map +1 -1
  505. package/dist/elements/public/PaymentsApi/api/handlers/payment_methods.js +2 -2
  506. package/dist/elements/public/PaymentsApi/api/handlers/payment_methods.js.map +1 -1
  507. package/dist/elements/public/PaymentsApi/api/handlers/payment_preset.js +2 -2
  508. package/dist/elements/public/PaymentsApi/api/handlers/payment_preset.js.map +1 -1
  509. package/dist/elements/public/PaymentsApi/api/handlers/payment_presets.js +2 -2
  510. package/dist/elements/public/PaymentsApi/api/handlers/payment_presets.js.map +1 -1
  511. package/dist/elements/public/PaymentsApi/api/utils.d.ts +5 -0
  512. package/dist/elements/public/PaymentsApi/api/utils.js +8 -1
  513. package/dist/elements/public/PaymentsApi/api/utils.js.map +1 -1
  514. package/dist/elements/public/PaymentsApiFraudProtectionCard/PaymentsApiFraudProtectionCard.d.ts +2 -0
  515. package/dist/elements/public/PaymentsApiFraudProtectionCard/PaymentsApiFraudProtectionCard.js +3 -0
  516. package/dist/elements/public/PaymentsApiFraudProtectionCard/PaymentsApiFraudProtectionCard.js.map +1 -1
  517. package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.d.ts +2 -0
  518. package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js +8 -1
  519. package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js.map +1 -1
  520. package/dist/elements/public/PaymentsApiPaymentMethodCard/PaymentsApiPaymentMethodCard.d.ts +3 -1
  521. package/dist/elements/public/PaymentsApiPaymentMethodCard/PaymentsApiPaymentMethodCard.js +5 -1
  522. package/dist/elements/public/PaymentsApiPaymentMethodCard/PaymentsApiPaymentMethodCard.js.map +1 -1
  523. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.d.ts +2 -0
  524. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js +14 -3
  525. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js.map +1 -1
  526. package/dist/elements/public/PaymentsApiPaymentPresetCard/PaymentsApiPaymentPresetCard.d.ts +2 -0
  527. package/dist/elements/public/PaymentsApiPaymentPresetCard/PaymentsApiPaymentPresetCard.js +3 -0
  528. package/dist/elements/public/PaymentsApiPaymentPresetCard/PaymentsApiPaymentPresetCard.js.map +1 -1
  529. package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.d.ts +3 -0
  530. package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js +22 -15
  531. package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js.map +1 -1
  532. package/dist/elements/public/ReportForm/ReportForm.d.ts +2 -0
  533. package/dist/elements/public/ReportForm/ReportForm.js +3 -0
  534. package/dist/elements/public/ReportForm/ReportForm.js.map +1 -1
  535. package/dist/elements/public/ReportsTable/ReportsTable.d.ts +2 -0
  536. package/dist/elements/public/ReportsTable/ReportsTable.js +3 -0
  537. package/dist/elements/public/ReportsTable/ReportsTable.js.map +1 -1
  538. package/dist/elements/public/ShipmentCard/ShipmentCard.d.ts +2 -1
  539. package/dist/elements/public/ShipmentCard/ShipmentCard.js +11 -2
  540. package/dist/elements/public/ShipmentCard/ShipmentCard.js.map +1 -1
  541. package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.d.ts +2 -1
  542. package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.js +21 -5
  543. package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.js.map +1 -1
  544. package/dist/elements/public/Spinner/Spinner.d.ts +12 -0
  545. package/dist/elements/public/Spinner/Spinner.js +18 -2
  546. package/dist/elements/public/Spinner/Spinner.js.map +1 -1
  547. package/dist/elements/public/StoreCard/StoreCard.d.ts +2 -0
  548. package/dist/elements/public/StoreCard/StoreCard.js +3 -0
  549. package/dist/elements/public/StoreCard/StoreCard.js.map +1 -1
  550. package/dist/elements/public/StoreForm/StoreForm.d.ts +2 -0
  551. package/dist/elements/public/StoreForm/StoreForm.js +7 -1
  552. package/dist/elements/public/StoreForm/StoreForm.js.map +1 -1
  553. package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.d.ts +2 -0
  554. package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js +4 -0
  555. package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js.map +1 -1
  556. package/dist/elements/public/StoreTransactionFolderForm/StoreTransactionFolderForm.d.ts +2 -0
  557. package/dist/elements/public/StoreTransactionFolderForm/StoreTransactionFolderForm.js +3 -0
  558. package/dist/elements/public/StoreTransactionFolderForm/StoreTransactionFolderForm.js.map +1 -1
  559. package/dist/elements/public/SubscriptionCard/SubscriptionCard.d.ts +2 -0
  560. package/dist/elements/public/SubscriptionCard/SubscriptionCard.js +4 -0
  561. package/dist/elements/public/SubscriptionCard/SubscriptionCard.js.map +1 -1
  562. package/dist/elements/public/SubscriptionForm/SubscriptionForm.d.ts +2 -0
  563. package/dist/elements/public/SubscriptionForm/SubscriptionForm.js +15 -0
  564. package/dist/elements/public/SubscriptionForm/SubscriptionForm.js.map +1 -1
  565. package/dist/elements/public/SubscriptionSettingsForm/SubscriptionSettingsForm.d.ts +2 -0
  566. package/dist/elements/public/SubscriptionSettingsForm/SubscriptionSettingsForm.js +3 -0
  567. package/dist/elements/public/SubscriptionSettingsForm/SubscriptionSettingsForm.js.map +1 -1
  568. package/dist/elements/public/SubscriptionsTable/SubscriptionsTable.d.ts +2 -0
  569. package/dist/elements/public/SubscriptionsTable/SubscriptionsTable.js +12 -2
  570. package/dist/elements/public/SubscriptionsTable/SubscriptionsTable.js.map +1 -1
  571. package/dist/elements/public/Table/Table.js +1 -0
  572. package/dist/elements/public/Table/Table.js.map +1 -1
  573. package/dist/elements/public/TaxCard/TaxCard.d.ts +3 -1
  574. package/dist/elements/public/TaxCard/TaxCard.js +5 -1
  575. package/dist/elements/public/TaxCard/TaxCard.js.map +1 -1
  576. package/dist/elements/public/TaxForm/TaxForm.d.ts +3 -0
  577. package/dist/elements/public/TaxForm/TaxForm.js +7 -0
  578. package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
  579. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +2 -0
  580. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +7 -1
  581. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -1
  582. package/dist/elements/public/TemplateForm/TemplateForm.d.ts +3 -0
  583. package/dist/elements/public/TemplateForm/TemplateForm.js +6 -0
  584. package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -1
  585. package/dist/elements/public/TemplateForm/internal/InternalTemplateFormAsyncAction/InternalTemplateFormAsyncAction.js +7 -2
  586. package/dist/elements/public/TemplateForm/internal/InternalTemplateFormAsyncAction/InternalTemplateFormAsyncAction.js.map +1 -1
  587. package/dist/elements/public/TemplateSetCard/TemplateSetCard.d.ts +2 -0
  588. package/dist/elements/public/TemplateSetCard/TemplateSetCard.js +3 -0
  589. package/dist/elements/public/TemplateSetCard/TemplateSetCard.js.map +1 -1
  590. package/dist/elements/public/TemplateSetForm/TemplateSetForm.d.ts +3 -0
  591. package/dist/elements/public/TemplateSetForm/TemplateSetForm.js +6 -0
  592. package/dist/elements/public/TemplateSetForm/TemplateSetForm.js.map +1 -1
  593. package/dist/elements/public/Transaction/Transaction.d.ts +8 -0
  594. package/dist/elements/public/Transaction/Transaction.js +51 -6
  595. package/dist/elements/public/Transaction/Transaction.js.map +1 -1
  596. package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js +8 -3
  597. package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js.map +1 -1
  598. package/dist/elements/public/TransactionCard/TransactionCard.d.ts +2 -0
  599. package/dist/elements/public/TransactionCard/TransactionCard.js +7 -2
  600. package/dist/elements/public/TransactionCard/TransactionCard.js.map +1 -1
  601. package/dist/elements/public/TransactionsTable/TransactionsTable.d.ts +2 -0
  602. package/dist/elements/public/TransactionsTable/TransactionsTable.js +3 -0
  603. package/dist/elements/public/TransactionsTable/TransactionsTable.js.map +1 -1
  604. package/dist/elements/public/UpdatePaymentMethodForm/UpdatePaymentMethodForm.d.ts +3 -0
  605. package/dist/elements/public/UpdatePaymentMethodForm/UpdatePaymentMethodForm.js +12 -0
  606. package/dist/elements/public/UpdatePaymentMethodForm/UpdatePaymentMethodForm.js.map +1 -1
  607. package/dist/elements/public/UserCard/UserCard.d.ts +2 -0
  608. package/dist/elements/public/UserCard/UserCard.js +3 -0
  609. package/dist/elements/public/UserCard/UserCard.js.map +1 -1
  610. package/dist/elements/public/UserForm/UserForm.d.ts +2 -0
  611. package/dist/elements/public/UserForm/UserForm.js +3 -0
  612. package/dist/elements/public/UserForm/UserForm.js.map +1 -1
  613. package/dist/elements/public/UserInvitationCard/UserInvitationCard.d.ts +8 -0
  614. package/dist/elements/public/UserInvitationCard/UserInvitationCard.js +63 -1
  615. package/dist/elements/public/UserInvitationCard/UserInvitationCard.js.map +1 -1
  616. package/dist/elements/public/UserInvitationCard/types.d.ts +3 -1
  617. package/dist/elements/public/UserInvitationCard/types.js.map +1 -1
  618. package/dist/elements/public/UserInvitationForm/UserInvitationForm.d.ts +36 -1
  619. package/dist/elements/public/UserInvitationForm/UserInvitationForm.js +149 -25
  620. package/dist/elements/public/UserInvitationForm/UserInvitationForm.js.map +1 -1
  621. package/dist/elements/public/UserInvitationForm/index.d.ts +1 -0
  622. package/dist/elements/public/UserInvitationForm/index.js +1 -0
  623. package/dist/elements/public/UserInvitationForm/index.js.map +1 -1
  624. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/InternalUserInvitationFormAsyncAction.js +3 -2
  625. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormAsyncAction/InternalUserInvitationFormAsyncAction.js.map +1 -1
  626. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormScopeControl/InternalUserInvitationFormScopeControl.d.ts +101 -0
  627. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormScopeControl/InternalUserInvitationFormScopeControl.js +373 -0
  628. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormScopeControl/InternalUserInvitationFormScopeControl.js.map +1 -0
  629. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormScopeControl/index.d.ts +6 -0
  630. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormScopeControl/index.js +8 -0
  631. package/dist/elements/public/UserInvitationForm/internal/InternalUserInvitationFormScopeControl/index.js.map +1 -0
  632. package/dist/elements/public/UserInvitationForm/types.d.ts +3 -1
  633. package/dist/elements/public/UserInvitationForm/types.js.map +1 -1
  634. package/dist/elements/public/UsersTable/UsersTable.js +1 -0
  635. package/dist/elements/public/UsersTable/UsersTable.js.map +1 -1
  636. package/dist/elements/public/WebhookCard/WebhookCard.d.ts +4 -1
  637. package/dist/elements/public/WebhookCard/WebhookCard.js +27 -11
  638. package/dist/elements/public/WebhookCard/WebhookCard.js.map +1 -1
  639. package/dist/elements/public/WebhookForm/WebhookForm.d.ts +2 -0
  640. package/dist/elements/public/WebhookForm/WebhookForm.js +4 -0
  641. package/dist/elements/public/WebhookForm/WebhookForm.js.map +1 -1
  642. package/dist/elements/public/WebhookLogCard/WebhookLogCard.d.ts +3 -1
  643. package/dist/elements/public/WebhookLogCard/WebhookLogCard.js +5 -1
  644. package/dist/elements/public/WebhookLogCard/WebhookLogCard.js.map +1 -1
  645. package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.d.ts +3 -1
  646. package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.js +5 -1
  647. package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.js.map +1 -1
  648. package/dist/mixins/configurable.d.ts +14 -0
  649. package/dist/mixins/configurable.js +72 -2
  650. package/dist/mixins/configurable.js.map +1 -1
  651. package/dist/mixins/themeable.js +6 -0
  652. package/dist/mixins/themeable.js.map +1 -1
  653. package/dist/utils/group-invitation-scopes.d.ts +38 -0
  654. package/dist/utils/group-invitation-scopes.js +70 -0
  655. package/dist/utils/group-invitation-scopes.js.map +1 -0
  656. package/dist/utils/ignore-access-denied.d.ts +8 -0
  657. package/dist/utils/ignore-access-denied.js +19 -0
  658. package/dist/utils/ignore-access-denied.js.map +1 -0
  659. package/dist/utils/invitation-scope.d.ts +46 -0
  660. package/dist/utils/invitation-scope.js +119 -0
  661. package/dist/utils/invitation-scope.js.map +1 -0
  662. package/dist/utils/is-access-denied.d.ts +12 -0
  663. package/dist/utils/is-access-denied.js +37 -0
  664. package/dist/utils/is-access-denied.js.map +1 -0
  665. package/dist/utils/item-scope-collection.d.ts +22 -0
  666. package/dist/utils/item-scope-collection.js +38 -0
  667. package/dist/utils/item-scope-collection.js.map +1 -0
  668. package/dist/utils/native-integration-scope-collection.d.ts +6 -0
  669. package/dist/utils/native-integration-scope-collection.js +20 -0
  670. package/dist/utils/native-integration-scope-collection.js.map +1 -0
  671. package/dist/utils/user-scope.d.ts +40 -0
  672. package/dist/utils/user-scope.js +112 -0
  673. package/dist/utils/user-scope.js.map +1 -0
  674. package/package.json +1 -1
  675. package/dist/cdn/shared-23baaa34.js +0 -1
  676. package/dist/cdn/shared-276618b9.js +0 -1
  677. package/dist/cdn/shared-2e56ae76.js +0 -1
  678. package/dist/cdn/shared-37fe7ec4.js +0 -1
  679. package/dist/cdn/shared-41c9c53f.js +0 -1
  680. package/dist/cdn/shared-49e95410.js +0 -1
  681. package/dist/cdn/shared-4b3bdf49.js +0 -1
  682. package/dist/cdn/shared-b4816a44.js +0 -1
  683. package/dist/cdn/shared-c6c81c1b.js +0 -1
@@ -1 +1 @@
1
- import"./shared-99c53365.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);const e=document.createElement("template");e.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(e.content);
1
+ import"./shared-dc6e5879.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);const e=document.createElement("template");e.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(e.content);
@@ -1,4 +1,4 @@
1
- import"./shared-99c53365.js";import{h as e,P as t}from"./shared-0fd68dc0.js";import{a}from"./shared-a0baefff.js";import{C as i}from"./shared-515003f6.js";import{E as r,T as l}from"./shared-8d8975d5.js";const o=e`<dom-module id="lumo-text-area" theme-for="vaadin-text-area">
1
+ import"./shared-dc6e5879.js";import{h as e,P as t}from"./shared-f410644a.js";import{a}from"./shared-53a5212e.js";import{C as i}from"./shared-a8ae24f0.js";import{E as r,T as l}from"./shared-f77994ad.js";const o=e`<dom-module id="lumo-text-area" theme-for="vaadin-text-area">
2
2
  <template>
3
3
  <style include="lumo-text-field">
4
4
  [part="input-field"],
@@ -1 +1 @@
1
- import"./shared-515003f6.js";import"./shared-a95d3946.js";import{_ as t}from"./shared-8f9014ff.js";import{h as e}from"./shared-ba5c42c7.js";import{D as s}from"./shared-058530fc.js";let i,n=t=>t;customElements.define("foxy-internal-confirm-dialog",class extends s{constructor(){super(...arguments),this.closable=!1,this.editable=!1,this.alert=!0,this.messageOptions={},this.confirm="confirm",this.message="message",this.cancel="cancel",this.theme="primary"}static get properties(){return t(t({},super.properties),{},{messageOptions:{type:Object,attribute:"message-options"},confirm:{type:String},message:{type:String},cancel:{type:String},theme:{type:String}})}render(){return super.render((()=>e(i||(i=n` <foxy-i18n class="block font-lumo text-m text-body text-center mb-m" lang="${0}" key="${0}" ns="${0}" .options="${0}"> </foxy-i18n> <div class="grid grid-cols-2 gap-m"> <vaadin-button data-testid="cancelButton" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </vaadin-button> <vaadin-button theme="${0}" data-testid="confirmButton" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </vaadin-button> </div> `),this.lang,this.message,this.ns,this.messageOptions,this.__handleCancel,this.ns,this.lang,this.cancel,this.theme,this.__handleConfirm,this.ns,this.lang,this.confirm)))}async __handleCancel(){await this.hide(!0)}async __handleConfirm(){await this.hide()}});
1
+ import"./shared-a8ae24f0.js";import"./shared-c066b7fd.js";import{_ as t}from"./shared-8f9014ff.js";import{h as e}from"./shared-ba5c42c7.js";import{D as s}from"./shared-cb5305b9.js";let i,n=t=>t;customElements.define("foxy-internal-confirm-dialog",class extends s{constructor(){super(...arguments),this.closable=!1,this.editable=!1,this.alert=!0,this.messageOptions={},this.confirm="confirm",this.message="message",this.cancel="cancel",this.theme="primary"}static get properties(){return t(t({},super.properties),{},{messageOptions:{type:Object,attribute:"message-options"},confirm:{type:String},message:{type:String},cancel:{type:String},theme:{type:String}})}render(){return super.render((()=>e(i||(i=n` <foxy-i18n class="block font-lumo text-m text-body text-center mb-m" lang="${0}" key="${0}" ns="${0}" .options="${0}"> </foxy-i18n> <div class="grid grid-cols-2 gap-m"> <vaadin-button data-testid="cancelButton" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </vaadin-button> <vaadin-button theme="${0}" data-testid="confirmButton" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </vaadin-button> </div> `),this.lang,this.message,this.ns,this.messageOptions,this.__handleCancel,this.ns,this.lang,this.cancel,this.theme,this.__handleConfirm,this.ns,this.lang,this.confirm)))}async __handleCancel(){await this.hide(!0)}async __handleConfirm(){await this.hide()}});
@@ -1 +1 @@
1
- import"./shared-a0baefff.js";import{I as e}from"./shared-486d4db3.js";import{_ as t}from"./shared-8f9014ff.js";import{c as s,h as i,s as r}from"./shared-ba5c42c7.js";import{i as l}from"./shared-53e42a77.js";import{c as a}from"./shared-4e709717.js";import{l as o}from"./shared-d0aed1c1.js";let n,d,u,h,c,p,f,m,v,x=e=>e;customElements.define("foxy-internal-text-control",class extends e{constructor(){super(...arguments),this.layout=null,this.prefix=null,this.suffix=null,this.__isErrorVisible=!1}static get properties(){return t(t({},super.properties),{},{layout:{},prefix:{},suffix:{},__isErrorVisible:{attribute:!1}})}static get styles(){return[super.styles,s(n||(n=x`input::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important;pointer-events:none;position:absolute;right:0}`))]}reportValidity(){this.__isErrorVisible=!0,super.reportValidity()}renderControl(){return"summary-item"===this.layout?this.__renderSummaryItemLayout():"pill"===this.layout?this.__renderPillLayout():i(d||(d=x` <vaadin-text-field error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?clear-button-visible="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> ${0} ${0} </vaadin-text-field> `),l(this._errorMessage),this.helperText,this.placeholder,this.label,!this.suffix,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{const t=e.currentTarget;this._value=t.value}),this.prefix?i(u||(u=x`<div slot="prefix">${0}</div>`),this.prefix):"",this.suffix?i(h||(h=x`<div class="pr-s font-medium" slot="suffix">${0}</div>`),this.suffix):"")}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}_handleHostClick(e){var t;if("summary-item"!==this.layout)return;const s=e.composedPath(),i=new Set(["INPUT","LABEL","BUTTON"]);s.some((e=>i.has(e.tagName)))||(null===(t=this.renderRoot.querySelector("input"))||void 0===t||t.focus(),super._handleHostClick(e))}__renderSummaryItemLayout(){return i(c||(c=x` <div class="leading-xs"> <div class="flex items-center gap-xs"> <label class="text-m text-body flex-1 whitespace-nowrap" for="input">${0}</label> ${0} <input placeholder="${0}" class="${0}" type="text" id="input" .value="${0}" ?disabled="${0}" ?readonly="${0}" @keydown="${0}" @blur="${0}" @input="${0}"> ${0} <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"> <p class="text-xs text-secondary">${0}</p> <p class="text-xs text-error" ?hidden="${0}"> ${0} </p> </div> </div> `),this.label,this.prefix?i(p||(p=x`<div>${0}</div>`),this.prefix):"",this.placeholder,a({"w-full appearance-none text-right bg-transparent transition-colors":!0,"text-m rounded-s focus-outline-none":!0,"text-secondary":this.readonly,"text-disabled":this.disabled,"font-medium":!this.readonly}),o(this._value),this.disabled,this.readonly,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(()=>this.__isErrorVisible=!0),(e=>{e.stopPropagation(),this._value=e.target.value}),this.suffix?i(f||(f=x`<div class="font-medium text-secondary">${0}</div>`),this.suffix):"",this.t("clear"),a({"flex-shrink-0 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._value="",this.dispatchEvent(new CustomEvent("clear"))}),r(m||(m=x`<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.__isErrorVisible||this.disabled||this.readonly,this._errorMessage)}__renderPillLayout(){var e;const t=this._value||this.placeholder;return i(v||(v=x` <div class="text-center flex items-center gap-s relative" style="min-width:6rem"> <span class="${0}">${0}</span> <input placeholder="${0}" aria-label="${0}" class="${0}" ?disabled="${0}" ?readonly="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </div> `),"relative block whitespace-pre text-center text-xl font-medium px-s py-xs -my-xs opacity-0",t,this.placeholder,this.label,a({"text-center appearance-none transition-all text-xl font-medium rounded":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"px-s py-xs -my-xs absolute inset-0":!0,"hover-bg-contrast-10":!this.disabled&&!this.readonly,"bg-transparent":this.readonly,"bg-contrast-5":!this.readonly,"text-disabled":this.disabled&&!this.readonly}),this.disabled,this.readonly,null!==(e=this._value)&&void 0!==e?e:"",(e=>{var t;"Enter"===e.key&&(e.preventDefault(),null===(t=this.nucleon)||void 0===t||t.submit())}),(e=>{const t=e.currentTarget;this._value=t.value}))}});
1
+ import"./shared-53a5212e.js";import{I as e}from"./shared-45649d84.js";import{_ as t}from"./shared-8f9014ff.js";import{c as s,h as i,s as r}from"./shared-ba5c42c7.js";import{i as l}from"./shared-53e42a77.js";import{c as a}from"./shared-4e709717.js";import{l as o}from"./shared-d0aed1c1.js";let n,d,u,h,c,p,m,v,f,x=e=>e;customElements.define("foxy-internal-text-control",class extends e{constructor(){super(...arguments),this.layout=null,this.prefix=null,this.suffix=null,this.__isErrorVisible=!1}static get properties(){return t(t({},super.properties),{},{layout:{},prefix:{},suffix:{},__isErrorVisible:{attribute:!1}})}static get styles(){return[super.styles,s(n||(n=x`input::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important;pointer-events:none;position:absolute;right:0}`))]}reportValidity(){this.__isErrorVisible=!0,super.reportValidity()}renderControl(){return"summary-item"===this.layout?this.__renderSummaryItemLayout():"pill"===this.layout?this.__renderPillLayout():i(d||(d=x` <vaadin-text-field error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?clear-button-visible="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> ${0} ${0} </vaadin-text-field> `),l(this._errorMessage),this.helperText,this.placeholder,this.label,!this.suffix,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{const t=e.currentTarget;this._value=t.value}),this.prefix?i(u||(u=x`<div slot="prefix">${0}</div>`),this.prefix):"",this.suffix?i(h||(h=x`<div class="pr-s font-medium" slot="suffix">${0}</div>`),this.suffix):"")}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}_handleHostClick(e){var t;if("summary-item"!==this.layout)return;const s=e.composedPath(),i=new Set(["INPUT","LABEL","BUTTON"]);s.some((e=>i.has(e.tagName)))||(null===(t=this.renderRoot.querySelector("input"))||void 0===t||t.focus(),super._handleHostClick(e))}__renderSummaryItemLayout(){return i(c||(c=x` <div class="leading-xs"> <div class="flex items-center gap-xs"> <label class="text-m text-body flex-1 whitespace-nowrap" for="input">${0}</label> ${0} <input placeholder="${0}" class="${0}" type="text" id="input" .value="${0}" ?disabled="${0}" ?readonly="${0}" @keydown="${0}" @blur="${0}" @input="${0}"> ${0} <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"> <p class="text-xs text-secondary">${0}</p> <p class="text-xs text-error" ?hidden="${0}"> ${0} </p> </div> </div> `),this.label,this.prefix?i(p||(p=x`<div>${0}</div>`),this.prefix):"",this.placeholder,a({"w-full appearance-none text-right bg-transparent transition-colors":!0,"text-m rounded-s focus-outline-none":!0,"text-secondary":this.readonly,"text-disabled":this.disabled,"font-medium":!this.readonly}),o(this._value),this.disabled,this.readonly,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(()=>this.__isErrorVisible=!0),(e=>{e.stopPropagation(),this._value=e.target.value}),this.suffix?i(m||(m=x`<div class="font-medium text-secondary">${0}</div>`),this.suffix):"",this.t("clear"),a({"flex-shrink-0 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._value="",this.dispatchEvent(new CustomEvent("clear"))}),r(v||(v=x`<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.__isErrorVisible||this.disabled||this.readonly,this._errorMessage)}__renderPillLayout(){var e;const t=this._value||this.placeholder;return i(f||(f=x` <div class="text-center flex items-center gap-s relative" style="min-width:6rem"> <span class="${0}">${0}</span> <input placeholder="${0}" aria-label="${0}" class="${0}" ?disabled="${0}" ?readonly="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </div> `),"relative block whitespace-pre text-center text-xl font-medium px-s py-xs -my-xs opacity-0",t,this.placeholder,this.label,a({"text-center appearance-none transition-all text-xl font-medium rounded":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"px-s py-xs -my-xs absolute inset-0":!0,"hover-bg-contrast-10":!this.disabled&&!this.readonly,"bg-transparent":this.readonly,"bg-contrast-5":!this.readonly,"text-disabled":this.disabled&&!this.readonly}),this.disabled,this.readonly,null!==(e=this._value)&&void 0!==e?e:"",(e=>{var t;"Enter"===e.key&&(e.preventDefault(),null===(t=this.nucleon)||void 0===t||t.submit())}),(e=>{const t=e.currentTarget;this._value=t.value}))}});
@@ -1 +1 @@
1
- import"./shared-ce05e482.js";import"./shared-a0baefff.js";import"./foxy-copy-to-clipboard.js";import{I as e}from"./shared-486d4db3.js";import{x as t}from"./shared-887ac0b0.js";import{c as r,h as o,s as a}from"./shared-ba5c42c7.js";import{_ as i}from"./shared-8f9014ff.js";import{i as l}from"./shared-53e42a77.js";import{c as s}from"./shared-4e709717.js";let n;function m(e){var t,r,o;const a=null!==(t=null==e?void 0:e.separator)&&void 0!==t?t:"-",i=null!==(r=null==e?void 0:e.charset)&&void 0!==r?r:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=null!==(o=null==e?void 0:e.length)&&void 0!==o?o:18;let s="";for(let e=0;e<l;e++)a&&e>0&&e%6==0&&(s+=a),s+=i[Math.floor(Math.random()*i.length)];return s}t("vaadin-password-field",r(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 auto;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}`)));let d,h,u,p,c=e=>e;customElements.define("foxy-internal-password-control",class extends e{constructor(){super(...arguments),this.generatorOptions=null,this.visibilityToggle=null,this.showGenerator=!1,this.layout=null}static get properties(){return i(i({},super.properties),{},{generatorOptions:{type:Object,attribute:"generator-options"},visibilityToggle:{attribute:"visibility-toggle"},showGenerator:{type:Boolean,attribute:"show-generator"},layout:{}})}renderControl(){var e;return o(d||(d=c` <vaadin-password-field error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" theme="${0}" class="w-full" ?reveal-button-hidden="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> ${0} ${0} </vaadin-password-field> `),l(this._errorMessage),this.helperText,this.placeholder,this.label,l(null!==(e=this.layout)&&void 0!==e?e:void 0),"copy"===this.visibilityToggle,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{const t=e.currentTarget;this._value=t.value}),this.showGenerator?this.__renderGenerator():"","copy"===this.visibilityToggle?this.__renderCopyButton():"")}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}__renderCopyButton(){return o(h||(h=c` <foxy-copy-to-clipboard layout="icon-inline" infer="" slot="suffix" text="${0}"> </foxy-copy-to-clipboard> `),this._value)}__renderGenerator(){return o(u||(u=c` <div data-testid="generator" class="${0}" slot="suffix" @click="${0}"> ${0} </div> `),s({"w-s h-s flex items-center justify-center cursor-default transition-colors":!0,"text-contrast-60 hover-text-contrast-80":!this.disabled&&!this.readonly,"text-contrast-20":this.disabled||this.readonly}),(()=>{var e,t,r,o;let a,i=!1,l=0;do{a=m(null!==(e=this.generatorOptions)&&void 0!==e?e:void 0),i=null===(o=null===(r=null===(t=this.generatorOptions)||void 0===t?void 0:t.checkStrength)||void 0===r?void 0:r.call(t,a))||void 0===o||o,l++}while(!i&&l<100);if(!i)throw new Error("Failed to generate a strong password.");this._value=a;const s=this.renderRoot.querySelector("vaadin-password-field");null==s||s._setPasswordVisible(!0)}),a(p||(p=c`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1.15em; height: 1.15em"><path d="M15.98 1.804a1 1 0 00-1.96 0l-.24 1.192a1 1 0 01-.784.785l-1.192.238a1 1 0 000 1.962l1.192.238a1 1 0 01.785.785l.238 1.192a1 1 0 001.962 0l.238-1.192a1 1 0 01.785-.785l1.192-.238a1 1 0 000-1.962l-1.192-.238a1 1 0 01-.785-.785l-.238-1.192zM6.949 5.684a1 1 0 00-1.898 0l-.683 2.051a1 1 0 01-.633.633l-2.051.683a1 1 0 000 1.898l2.051.684a1 1 0 01.633.632l.683 2.051a1 1 0 001.898 0l.683-2.051a1 1 0 01.633-.633l2.051-.683a1 1 0 000-1.898l-2.051-.683a1 1 0 01-.633-.633L6.95 5.684zM13.949 13.684a1 1 0 00-1.898 0l-.184.551a1 1 0 01-.632.633l-.551.183a1 1 0 000 1.898l.551.183a1 1 0 01.633.633l.183.551a1 1 0 001.898 0l.184-.551a1 1 0 01.632-.633l.551-.183a1 1 0 000-1.898l-.551-.184a1 1 0 01-.633-.632l-.183-.551z" /></svg>`)))}});
1
+ import"./shared-5dbd66e3.js";import"./shared-53a5212e.js";import"./foxy-copy-to-clipboard.js";import{I as e}from"./shared-45649d84.js";import{x as t}from"./shared-5b8c7250.js";import{c as r,h as o,s as a}from"./shared-ba5c42c7.js";import{_ as i}from"./shared-8f9014ff.js";import{i as l}from"./shared-53e42a77.js";import{c as s}from"./shared-4e709717.js";let n;function m(e){var t,r,o;const a=null!==(t=null==e?void 0:e.separator)&&void 0!==t?t:"-",i=null!==(r=null==e?void 0:e.charset)&&void 0!==r?r:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",l=null!==(o=null==e?void 0:e.length)&&void 0!==o?o:18;let s="";for(let e=0;e<l;e++)a&&e>0&&e%6==0&&(s+=a),s+=i[Math.floor(Math.random()*i.length)];return s}t("vaadin-password-field",r(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 auto;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}`)));let d,h,u,p,c=e=>e;customElements.define("foxy-internal-password-control",class extends e{constructor(){super(...arguments),this.generatorOptions=null,this.visibilityToggle=null,this.showGenerator=!1,this.layout=null}static get properties(){return i(i({},super.properties),{},{generatorOptions:{type:Object,attribute:"generator-options"},visibilityToggle:{attribute:"visibility-toggle"},showGenerator:{type:Boolean,attribute:"show-generator"},layout:{}})}renderControl(){var e;return o(d||(d=c` <vaadin-password-field error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" theme="${0}" class="w-full" ?reveal-button-hidden="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> ${0} ${0} </vaadin-password-field> `),l(this._errorMessage),this.helperText,this.placeholder,this.label,l(null!==(e=this.layout)&&void 0!==e?e:void 0),"copy"===this.visibilityToggle,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{const t=e.currentTarget;this._value=t.value}),this.showGenerator?this.__renderGenerator():"","copy"===this.visibilityToggle?this.__renderCopyButton():"")}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}__renderCopyButton(){return o(h||(h=c` <foxy-copy-to-clipboard layout="icon-inline" infer="" slot="suffix" text="${0}"> </foxy-copy-to-clipboard> `),this._value)}__renderGenerator(){return o(u||(u=c` <div data-testid="generator" class="${0}" slot="suffix" @click="${0}"> ${0} </div> `),s({"w-s h-s flex items-center justify-center cursor-default transition-colors":!0,"text-contrast-60 hover-text-contrast-80":!this.disabled&&!this.readonly,"text-contrast-20":this.disabled||this.readonly}),(()=>{var e,t,r,o;if(this.disabled||this.readonly)return;let a,i=!1,l=0;do{a=m(null!==(e=this.generatorOptions)&&void 0!==e?e:void 0),i=null===(o=null===(r=null===(t=this.generatorOptions)||void 0===t?void 0:t.checkStrength)||void 0===r?void 0:r.call(t,a))||void 0===o||o,l++}while(!i&&l<100);if(!i)throw new Error("Failed to generate a strong password.");this._value=a;const s=this.renderRoot.querySelector("vaadin-password-field");null==s||s._setPasswordVisible(!0)}),a(p||(p=c`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1.15em; height: 1.15em"><path d="M15.98 1.804a1 1 0 00-1.96 0l-.24 1.192a1 1 0 01-.784.785l-1.192.238a1 1 0 000 1.962l1.192.238a1 1 0 01.785.785l.238 1.192a1 1 0 001.962 0l.238-1.192a1 1 0 01.785-.785l1.192-.238a1 1 0 000-1.962l-1.192-.238a1 1 0 01-.785-.785l-.238-1.192zM6.949 5.684a1 1 0 00-1.898 0l-.683 2.051a1 1 0 01-.633.633l-2.051.683a1 1 0 000 1.898l2.051.684a1 1 0 01.633.632l.683 2.051a1 1 0 001.898 0l.683-2.051a1 1 0 01.633-.633l2.051-.683a1 1 0 000-1.898l-2.051-.683a1 1 0 01-.633-.633L6.95 5.684zM13.949 13.684a1 1 0 00-1.898 0l-.184.551a1 1 0 01-.632.633l-.551.183a1 1 0 000 1.898l.551.183a1 1 0 01.633.633l.183.551a1 1 0 001.898 0l.184-.551a1 1 0 01.632-.633l.551-.183a1 1 0 000-1.898l-.551-.184a1 1 0 01-.633-.632l-.183-.551z" /></svg>`)))}});
@@ -1,4 +1,4 @@
1
- import"./shared-99c53365.js";import{h as e,G as t,P as o}from"./shared-0fd68dc0.js";import{E as i,T as r}from"./shared-8d8975d5.js";import{C as a}from"./shared-515003f6.js";const s=e`<dom-module id="lumo-checkbox" theme-for="vaadin-checkbox">
1
+ import"./shared-dc6e5879.js";import{h as e,G as t,P as o}from"./shared-f410644a.js";import{E as i,T as r}from"./shared-f77994ad.js";import{C as a}from"./shared-a8ae24f0.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,4 +1,4 @@
1
- import{h as t}from"./shared-0fd68dc0.js";import{T as e}from"./shared-a0baefff.js";import{D as l}from"./shared-887ac0b0.js";const r=t`<dom-module id="lumo-email-field" theme-for="vaadin-email-field">
1
+ import{h as t}from"./shared-f410644a.js";import{T as e}from"./shared-53a5212e.js";import{D as l}from"./shared-5b8c7250.js";const r=t`<dom-module id="lumo-email-field" theme-for="vaadin-email-field">
2
2
  <template>
3
3
  <style>
4
4
  :not(*):placeholder-shown, /* to prevent broken styles on IE */
@@ -19,7 +19,7 @@ import{h as t}from"./shared-0fd68dc0.js";import{T as e}from"./shared-a0baefff.js
19
19
  Copyright (c) 2018 Vaadin Ltd.
20
20
  This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
21
21
  */
22
- const a=t`<dom-module id="vaadin-email-field-template">
22
+ const i=t`<dom-module id="vaadin-email-field-template">
23
23
  <template>
24
24
  <style>
25
25
  :host([dir="rtl"]) [part="input-field"] {
@@ -44,4 +44,4 @@ const a=t`<dom-module id="vaadin-email-field-template">
44
44
  </style>
45
45
  </template>
46
46
 
47
- </dom-module>`;let i;document.head.appendChild(a.content);class o extends e{static get is(){return"vaadin-email-field"}static get version(){return"2.10.0"}static get template(){if(!i){i=super.template.cloneNode(!0);const t=l.import(this.is+"-template","template").content.querySelector("style");i.content.appendChild(t)}return i}ready(){super.ready(),this.inputElement.type="email",this.inputElement.autocapitalize="off"}_createConstraintsObserver(){this.pattern=this.pattern||"^([a-zA-Z0-9_\\.\\-+])+@[a-zA-Z0-9-.]+\\.[a-zA-Z0-9-]{2,}$",super._createConstraintsObserver()}}customElements.define(o.is,o);
47
+ </dom-module>`;let a;document.head.appendChild(i.content);class o extends e{static get is(){return"vaadin-email-field"}static get version(){return"2.10.0"}static get template(){if(!a){a=super.template.cloneNode(!0);const t=l.import(this.is+"-template","template").content.querySelector("style");a.content.appendChild(t)}return a}ready(){super.ready(),this.inputElement.type="email",this.inputElement.autocapitalize="off"}_createConstraintsObserver(){this.pattern=this.pattern||"^([a-zA-Z0-9_\\.\\-+])+@[a-zA-Z0-9-.]+\\.[a-zA-Z0-9-]{2,}$",super._createConstraintsObserver()}}customElements.define(o.is,o);
@@ -1,4 +1,4 @@
1
- import{_ as t}from"./shared-8f9014ff.js";import{T as s}from"./shared-9c1f1c3b.js";import{a as e}from"./shared-887ac0b0.js";import{p as n}from"./shared-49e95410.js";import{g as a}from"./shared-96e4f603.js";import{c as o}from"./shared-4e709717.js";let r,l,m,i,c=t=>t;class u extends(e(s,"subscriptions-table")){constructor(){super(...arguments),this.columns=[u.priceColumn,u.summaryColumn,u.statusColumn,u.subTokenURLColumn]}}u.priceColumn={cell:s=>{const e=s.data._embedded["fx:transaction_template"],a=`${e.total_order} ${e.currency_code}`;return s.html(r||(r=c`
1
+ import{_ as t}from"./shared-8f9014ff.js";import{T as s}from"./shared-1e9df11c.js";import{a as e}from"./shared-5b8c7250.js";import{p as n}from"./shared-1b414966.js";import{g as a}from"./shared-96e4f603.js";import{c as o}from"./shared-4e709717.js";let r,l,i,m,u,c,d=t=>t;class f extends(e(s,"subscriptions-table")){constructor(){super(...arguments),this.columns=[f.priceColumn,f.summaryColumn,f.statusColumn,f.subTokenURLColumn]}get scopeCollection(){return"subscriptions"}}f.priceColumn={cell:s=>{var e;const a=null===(e=s.data._embedded)||void 0===e?void 0:e["fx:transaction_template"];if(!a)return s.html(r||(r=d``));const o=`${a.total_order} ${a.currency_code}`;return s.html(l||(l=d`
2
2
  <foxy-i18n
3
3
  data-testclass="i18n frequencies"
4
4
  class="font-medium text-m font-tnum"
@@ -8,7 +8,7 @@ import{_ as t}from"./shared-8f9014ff.js";import{T as s}from"./shared-9c1f1c3b.js
8
8
  .options=${0}
9
9
  >
10
10
  </foxy-i18n>
11
- `),s.lang,".5m"===s.data.frequency?"twice_a_month":"recurring",s.ns,t(t({},n(s.data.frequency)),{},{amount:a}))}},u.summaryColumn={cell:t=>{const s=t.data._embedded["fx:transaction_template"]._embedded["fx:items"],e={count_minus_one:s.length-1,first_item:s[0],count:s.length};return t.html(l||(l=c`
11
+ `),s.lang,".5m"===s.data.frequency?"twice_a_month":"recurring",s.ns,t(t({},n(s.data.frequency)),{},{amount:o}))}},f.summaryColumn={cell:t=>{var s,e;const n=null===(e=null===(s=t.data._embedded)||void 0===s?void 0:s["fx:transaction_template"])||void 0===e?void 0:e._embedded["fx:items"];if(!n)return t.html(i||(i=d``));const a={count_minus_one:n.length-1,first_item:n[0],count:n.length};return t.html(m||(m=d`
12
12
  <foxy-i18n
13
13
  data-testclass="i18n summaries"
14
14
  class="text-m"
@@ -18,7 +18,7 @@ import{_ as t}from"./shared-8f9014ff.js";import{T as s}from"./shared-9c1f1c3b.js
18
18
  .options=${0}
19
19
  >
20
20
  </foxy-i18n>
21
- `),t.lang,t.ns,e)}},u.statusColumn={hideBelow:"sm",cell:({ns:t,lang:s,data:e,html:n})=>{const r=a(e),l="failed"===r,i="next_payment"===r||!!(null==r?void 0:r.startsWith("will_end"));return n(m||(m=c`
21
+ `),t.lang,t.ns,a)}},f.statusColumn={hideBelow:"sm",cell:({ns:t,lang:s,data:e,html:n})=>{const r=a(e),l="failed"===r,i="next_payment"===r||!!(null==r?void 0:r.startsWith("will_end"));return n(u||(u=d`
22
22
  <foxy-i18n
23
23
  data-testclass="i18n statuses"
24
24
  class=${0}
@@ -28,7 +28,7 @@ import{_ as t}from"./shared-8f9014ff.js";import{T as s}from"./shared-9c1f1c3b.js
28
28
  .options=${0}
29
29
  >
30
30
  </foxy-i18n>
31
- `),o({"px-s py-xs text-m font-medium inline-block whitespace-normal rounded":!0,"text-secondary bg-contrast-5":!i&&!l,"text-success bg-success-10":i,"text-error bg-error-10":l}),s,r,t,e)}},u.subTokenURLColumn={cell:t=>t.html(i||(i=c`
31
+ `),o({"px-s py-xs text-m font-medium inline-block whitespace-normal rounded":!0,"text-secondary bg-contrast-5":!i&&!l,"text-success bg-success-10":i,"text-error bg-error-10":l}),s,r,t,e)}},f.subTokenURLColumn={cell:t=>t.html(c||(c=d`
32
32
  <a
33
33
  data-testclass="links"
34
34
  target="_blank"
@@ -43,4 +43,4 @@ import{_ as t}from"./shared-8f9014ff.js";import{T as s}from"./shared-9c1f1c3b.js
43
43
  >
44
44
  </foxy-i18n>
45
45
  </a>
46
- `),t.data._links["fx:sub_token_url"].href,t.lang,t.ns)};export{u as S};
46
+ `),t.data._links["fx:sub_token_url"].href,t.lang,t.ns)};export{f as S};
@@ -1,4 +1,4 @@
1
- import{F as t}from"./shared-6cdfb858.js";import{b as e}from"./shared-8d8975d5.js";import{D as s,t as i}from"./shared-0fd68dc0.js";
1
+ import{F as t}from"./shared-c3d6bcc0.js";import{b as e}from"./shared-f77994ad.js";import{D as s,t as i}from"./shared-f410644a.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 Vaadin Ltd.
@@ -0,0 +1 @@
1
+ import"./shared-a8ae24f0.js";import{a as t}from"./shared-45649d84.js";import"./foxy-spinner.js";import"./shared-c066b7fd.js";import{_ as e,B as s}from"./shared-8f9014ff.js";import{h as i,s as o}from"./shared-ba5c42c7.js";import{D as r}from"./shared-cb5305b9.js";import{A as n}from"./shared-69c98b7b.js";import{i as a}from"./shared-50ef1d5a.js";import{i as l}from"./shared-53e42a77.js";let d,c,h,f,m,u,p,_=t=>t;let y,v=t=>t;customElements.define("foxy-internal-post-action-control",class extends t{constructor(){super(...arguments),this.messageOptions={},this.theme=null,this.href=null}static get properties(){return e(e({},super.properties),{},{messageOptions:{type:Object,attribute:"message-options"},theme:{},href:{}})}renderControl(){var t,e;return i(y||(y=v` <foxy-internal-post-action-control-dialog message-options="${0}" infer="" href="${0}" @hide="${0}"> </foxy-internal-post-action-control-dialog> <vaadin-button theme="${0}" class="w-full" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="button"></foxy-i18n> </vaadin-button> `),JSON.stringify(this.messageOptions),l(null!==(t=this.href)&&void 0!==t?t:void 0),(t=>{t.detail.cancelled||this.dispatchEvent(new CustomEvent("success"))}),l(null!==(e=this.theme)&&void 0!==e?e:void 0),this.disabled||this.readonly,(t=>{const e=t.currentTarget,s=this.renderRoot.querySelector("foxy-internal-post-action-control-dialog");null==s||s.show(e)}))}}),customElements.define("foxy-internal-post-action-control-dialog",class extends r{constructor(){super(...arguments),this.messageOptions={},this.closable=!0,this.header="header",this.alert=!0,this.href=null,this.__api=new n(this),this.__state="idle"}static get properties(){return e(e({},super.properties),{},{messageOptions:{type:Object,attribute:"message-options"},href:{},__state:{attribute:!1}})}get hiddenSelector(){const t=["close-button",super.hiddenSelector.toString()];return new s(t.join(" ").trim())}render(){var t=this;return super.render((()=>i(d||(d=_` <div class="relative"> <div class="mb-m mt-xs flex justify-center"> ${0} </div> <foxy-i18n class="block font-lumo text-m text-body text-center mb-l" infer="" key="message_${0}" .options="${0}"> </foxy-i18n> <div class="grid grid-cols-2 gap-m"> ${0} </div> ${0} </div> `),"done"===this.__state?o(c||(c=_`<svg class="text-success" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 2rem; height: 2rem;"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /></svg>`)):"fail"===this.__state||"access_denied"===this.__state?o(h||(h=_`<svg class="text-error" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 2rem; height: 2rem;"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z" /></svg>`)):o(f||(f=_`<svg class="text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 2rem; height: 2rem;"><path stroke-linecap="round" stroke-linejoin="round" d="M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z" /></svg>`)),"busy"===this.__state?"idle":this.__state,this.messageOptions,"done"===this.__state||"fail"===this.__state||"access_denied"===this.__state?i(m||(m=_` <vaadin-button class="col-span-2" theme="contrast" @click="${0}"> <foxy-i18n infer="" key="button_close"></foxy-i18n> </vaadin-button> `),(()=>this.hide())):i(u||(u=_` <vaadin-button ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="button_cancel"></foxy-i18n> </vaadin-button> <vaadin-button theme="primary" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="button_confirm"></foxy-i18n> </vaadin-button> `),this.disabled||this.readonly,(()=>this.hide()),this.disabled||this.readonly,(async function(){if(t.href&&"idle"===t.__state){t.__state="busy",t.closable=!1;try{const e=await t.__api.fetch(t.href,{method:"POST"});e.ok?t.__state="done":t.__state=await a(e)?"access_denied":"fail"}catch(e){t.__state="fail"}t.closable=!0}})),"busy"===this.__state?i(p||(p=_` <div class="bg-base absolute inset-0 flex items-center justify-center"> <foxy-spinner layout="vertical" infer=""></foxy-spinner> </div> `)):"")))}async hide(){await super.hide("done"!==this.__state),this.__state="idle"}});
@@ -0,0 +1 @@
1
+ import"./shared-a6b2bd14.js";import"./shared-38e0a818.js";import"./shared-8ec1b077.js";import"./shared-7b6a899b.js";import{I as e}from"./shared-be20875c.js";import{a as t}from"./shared-45649d84.js";import"./shared-c066b7fd.js";import{i as s}from"./shared-53e42a77.js";import{h as o}from"./shared-ba5c42c7.js";import{c as r,_ as n,B as i}from"./shared-8f9014ff.js";import{S as a,a as l}from"./shared-5b8c7250.js";import{v as d}from"./shared-b738ee96.js";import{c}from"./shared-4e709717.js";let h,p=e=>e;customElements.define("foxy-internal-customer-form-legal-notice-control",class extends t{renderControl(){var e,t;const r=this.nucleon;return o(h||(h=p` <p class="leading-s text-xs text-secondary"> <foxy-i18n infer="" key="text"></foxy-i18n> <a class="font-medium text-body rounded hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50" target="_blank" href="${0}" rel="noopener noreferrer"> <foxy-i18n infer="" key="link"></foxy-i18n> </a> </p> `),s(null===(t=null===(e=null==r?void 0:r.settings)||void 0===e?void 0:e.tos_checkbox_settings)||void 0===t?void 0:t.url))}});var u=r((function(e){!function(){const t=[{id:0,value:"Too weak",minDiversity:0,minLength:0},{id:1,value:"Weak",minDiversity:2,minLength:6},{id:2,value:"Medium",minDiversity:4,minLength:8},{id:3,value:"Strong",minDiversity:4,minLength:10}],s=(e,s=t,o="!\"#$%&'()*+,-./:;<=>?@[\\\\\\]^_`{|}~")=>{let r=e||"";s[0].minDiversity=0,s[0].minLength=0;const n=[{regex:"[a-z]",message:"lowercase"},{regex:"[A-Z]",message:"uppercase"},{regex:"[0-9]",message:"number"}];o&&n.push({regex:`[${o}]`,message:"symbol"});let i={};i.contains=n.filter((e=>new RegExp(`${e.regex}`).test(r))).map((e=>e.message)),i.length=r.length;let a=s.filter((e=>i.contains.length>=e.minDiversity)).filter((e=>i.length>=e.minLength)).sort(((e,t)=>t.id-e.id)).map((e=>({id:e.id,value:e.value})));return Object.assign(i,a[0]),i};e.exports={passwordStrength:s,defaultOptions:t}}()}));let m,f,_=e=>e;const g=a(l(e,"customer-form")),x=u.passwordStrength;class v extends g{constructor(){super(...arguments),this.passwordless=!1,this.settings=null,this.__passwordGeneratorOptions={checkStrength:e=>x(e).id>=2},this.__isAnonymousGetValue=()=>{var e;return!1===(null===(e=this.form)||void 0===e?void 0:e.is_anonymous)?"false":"true"},this.__isAnonymousSetValue=e=>{const t="true"===e;this.edit({is_anonymous:t}),t&&this.form.password&&this.edit({password:""}),t&&this.form.password_old&&this.edit({password_old:""}),t&&this.form.forgot_password&&this.edit({forgot_password:""})},this.__isAnonymousOptions=[{value:"true",label:"option_true"},{value:"false",label:"option_false"}],this.__refreshInterval=null}static get scopedElements(){return{"foxy-internal-customer-form-legal-notice-control":customElements.get("foxy-internal-customer-form-legal-notice-control"),"foxy-internal-radio-group-control":customElements.get("foxy-internal-radio-group-control"),"foxy-internal-timestamps-control":customElements.get("foxy-internal-timestamps-control"),"foxy-internal-password-control":customElements.get("foxy-internal-password-control"),"foxy-internal-submit-control":customElements.get("foxy-internal-submit-control"),"foxy-internal-delete-control":customElements.get("foxy-internal-delete-control"),"foxy-internal-text-control":customElements.get("foxy-internal-text-control"),"foxy-internal-undo-control":customElements.get("foxy-internal-undo-control"),"foxy-copy-to-clipboard":customElements.get("foxy-copy-to-clipboard"),"foxy-spinner":customElements.get("foxy-spinner"),"vcf-tooltip":customElements.get("vcf-tooltip"),"foxy-i18n":customElements.get("foxy-i18n"),"h-captcha":customElements.get("h-captcha"),"vaadin-button":customElements.get("vaadin-button")}}static get properties(){return n(n({},super.properties),{},{passwordless:{type:Boolean},settings:{type:Object}})}static get v8n(){return[({password:e,_links:t,is_anonymous:s=!0},o)=>!!o.passwordless||(!!(t||s||e)||"password:v8n_required"),({password_old:e,password:t,_links:s},o)=>{var r;return!s||(void 0===(null===(r=o.settings)||void 0===r?void 0:r.sign_up)||(!(t&&!e)||"password-old:v8n_required"))},({first_name:e})=>!e||e.length<=50||"first-name:v8n_too_long",({last_name:e})=>!e||e.length<=50||"last-name:v8n_too_long",({password:e})=>!e||x(e).id>=2||"password:v8n_too_weak",({password:e})=>!e||e.length<=50||"password:v8n_too_long",({tax_id:e})=>!e||e.length<=50||"tax-id:v8n_too_long",({email:e})=>e&&e.length>0||"email:v8n_required",({email:e})=>!e||e.length<=100||"email:v8n_too_long",({email:e})=>!e||d(e)||"email:v8n_invalid_email"]}get scopeCollection(){return"customers"}get hiddenSelector(){const e=new Set(super.hiddenSelector.toString().split(" "));return this.settings?(e.add("forgot-password"),e.add("is-anonymous"),this.form.password||e.add("password-old"),"none"===this.settings.tos_checkbox_settings.usage&&e.add("legal-notice")):(!1!==this.form.is_anonymous&&(e.add("forgot-password"),e.add("password")),e.add("password-old"),e.add("legal-notice")),this.href&&(e.add("is-anonymous"),e.add("legal-notice")),new i(Array.from(e).join(" ").trim())}get headerTitleOptions(){var e,t;const s=this.data;return!s||(null===(e=s.first_name)||void 0===e?void 0:e.trim())||(null===(t=s.last_name)||void 0===t?void 0:t.trim())?super.headerTitleOptions:n(n({},super.headerTitleOptions),{},{context:"no_name"})}get headerSubtitleKey(){var e;return(null===(e=this.data)||void 0===e?void 0:e.is_anonymous)?"subtitle_anonymous":"subtitle_registered"}get headerSubtitleOptions(){return n(n({},super.headerSubtitleOptions),{},{id:this.headerCopyIdValue})}disconnectedCallback(){super.disconnectedCallback();const e=this.__refreshInterval;e&&clearInterval(e)}connectedCallback(){super.connectedCallback();const e=setInterval((()=>this.requestUpdate()),6e4);this.__refreshInterval=e}renderBody(){var e,t,s,r;const n=this.hiddenSelector.matches("first-name",!0),i=this.hiddenSelector.matches("last-name",!0);return o(m||(m=_` ${0} <div class="${0}"> <foxy-internal-text-control infer="first-name"></foxy-internal-text-control> <foxy-internal-text-control infer="last-name"></foxy-internal-text-control> </div> <foxy-internal-text-control helper-text="${0}" infer="email"> </foxy-internal-text-control> <foxy-internal-radio-group-control infer="is-anonymous" .getValue="${0}" .setValue="${0}" .options="${0}"> </foxy-internal-radio-group-control> <foxy-internal-password-control placeholder="${0}" helper-text="${0}" infer="password" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> <foxy-internal-password-control infer="password-old"></foxy-internal-password-control> <foxy-internal-password-control helper-text="${0}" infer="forgot-password" show-generator> </foxy-internal-password-control> <foxy-internal-text-control infer="tax-id"></foxy-internal-text-control> <foxy-internal-customer-form-legal-notice-control infer="legal-notice"> </foxy-internal-customer-form-legal-notice-control> ${0} ${0} `),this.renderHeader(),c({"grid-cols-2":!n&&!i,hidden:n&&i,"gap-m":!0,grid:!n||!i}),this.__emailHelperText,this.__isAnonymousGetValue,this.__isAnonymousSetValue,this.__isAnonymousOptions,this.__passwordPlaceholder,this.__passwordHelperText,this.__passwordGeneratorOptions,this.__forgotPasswordHelperText,!this.data&&(null===(t=null===(e=this.settings)||void 0===e?void 0:e.sign_up)||void 0===t?void 0:t.enabled)&&"hcaptcha"===(null===(r=null===(s=this.settings)||void 0===s?void 0:s.sign_up)||void 0===r?void 0:r.verification.type)?o(f||(f=_` <h-captcha site-key="${0}" class="hidden" size="invisible" hl="${0}" @verified="${0}"> </h-captcha> `),this.settings.sign_up.verification.site_key,this.lang,(({token:e})=>{this.edit({verification:{type:"hcaptcha",token:e}}),super.submit()})):"",super.renderBody())}submit(){var e,t,s,o,r;"hcaptcha"!==(null===(s=null===(t=null===(e=this.settings)||void 0===e?void 0:e.sign_up)||void 0===t?void 0:t.verification)||void 0===s?void 0:s.type)||this.data?super.submit():(null===(o=this.__hcaptcha)||void 0===o||o.reset(),null===(r=this.__hcaptcha)||void 0===r||r.execute())}async _sendPatch(e){const t=await super._sendPatch(e);if(e.password){const e={key:"password_change_success",options:{email:t.email}};this.status=e}return t}async _sendGet(){return this.status=null,await super._sendGet()}async _fetch(...e){try{return await super._fetch(...e)}catch(e){let t;try{t=(await e.json())._embedded["fx:errors"][0].message}catch(t){throw e}throw"Conflict"===t||t.startsWith("This email address is already in use")?["error:email_already_used"]:t.startsWith("Customer registration is disabled")?["error:registration_disabled"]:t.startsWith("Client verification failed")?["error:verification_failed"]:t.startsWith("Provided password is incorrect")?["error:old_password_incorrect"]:e}}get __forgotPasswordHelperText(){var e,t;const s=null===(e=this.data)||void 0===e?void 0:e.forgot_password_timestamp,o="forgot-password.helper_text";if((null===(t=this.data)||void 0===t?void 0:t.forgot_password)&&s){const e=new Date(new Date(s).getTime()+18e5),t=Math.floor((e.getTime()-Date.now())/1e3/60);return t<=0?this.t(`${o}_expired_on`,{expiresOn:e}):this.t(`${o}_expires_in`,{expiresInMin:`${t}minutes`})}return this.t(o)}get __passwordPlaceholder(){return this.data?this.t("password.placeholder_new"):this.t("password.placeholder")}get __passwordHelperText(){return this.data?this.t("password.helper_text_new"):this.t("password.helper_text")}get __emailHelperText(){var e;return(null===(e=this.data)||void 0===e?void 0:e.last_login_date)?this.t("email.helper_text_last_login_date",{date:this.data.last_login_date}):this.t("email.helper_text")}get __hcaptcha(){return this.renderRoot.querySelector("h-captcha")}}customElements.define("foxy-customer-form",v);export{v as C,u};
@@ -1,4 +1,4 @@
1
- import"./shared-99c53365.js";import{h as t,G as e,P as o,b as i}from"./shared-0fd68dc0.js";import{E as r,T as s}from"./shared-8d8975d5.js";
1
+ import"./shared-dc6e5879.js";import{h as t,G as e,P as o,b as i}from"./shared-f410644a.js";import{E as r,T as s}from"./shared-f77994ad.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 Vaadin Ltd.
@@ -0,0 +1 @@
1
+ import{p as t,c as n}from"./shared-da3393a5.js";function r(t){return(null==t?void 0:t._links["fx:cart"])?"carts":(null==t?void 0:t._links["fx:transaction"])?"transactions":null}function s(r,s,a){var i;if(!t(r))return!0;const c=t=>n(r,t),o=null!==(i=null==s?void 0:s._links)&&void 0!==i?i:{};if(o["fx:transaction"]&&c("transactions"))return!0;return!(!c("carts")||!o["fx:cart"]&&(!o["fx:subscription"]||!c("subscriptions")))&&(!(a&&!a.currency_code)||!!c("templates")&&(""!==a.template_set_uri||c("stores")))}export{s as c,r as g};
@@ -1,4 +1,4 @@
1
- import{h as t,P as e}from"./shared-0fd68dc0.js";import{E as i,T as o}from"./shared-8d8975d5.js";import"./shared-99c53365.js";import"./shared-db623837.js";import"./shared-0f92b865.js";import{x as s}from"./shared-887ac0b0.js";import{c as n}from"./shared-ba5c42c7.js";s("vcf-tooltip",n`
1
+ import{h as t,P as e}from"./shared-f410644a.js";import{E as i,T as o}from"./shared-f77994ad.js";import"./shared-dc6e5879.js";import"./shared-c59277a4.js";import"./shared-cfc6735e.js";import{x as s}from"./shared-5b8c7250.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{_ as s}from"./shared-8f9014ff.js";import{L as e,h as t}from"./shared-ba5c42c7.js";import{z as r}from"./shared-887ac0b0.js";let a,o=s=>s;class i extends e{constructor(){super(...arguments),this.frame=!1}static get properties(){return s(s({},super.properties),{},{frame:{type:Boolean}})}static get styles(){return r.styles}render(){return t(a||(a=o` <section class="space-y-s font-lumo antialiased"> <h3 class="${0}"> <slot name="header"></slot> </h3> <div class="rounded ${0}"> <slot></slot> </div> </section> `),"text-l font-medium text-body leading-none "+(this.frame?"":"pl-m"),this.frame?"bg-contrast-5 overflow-hidden":"")}}export{i as G};
1
+ import{_ as s}from"./shared-8f9014ff.js";import{L as e,h as t}from"./shared-ba5c42c7.js";import{z as r}from"./shared-5b8c7250.js";let a,o=s=>s;class i extends e{constructor(){super(...arguments),this.frame=!1}static get properties(){return s(s({},super.properties),{},{frame:{type:Boolean}})}static get styles(){return r.styles}render(){return t(a||(a=o` <section class="space-y-s font-lumo antialiased"> <h3 class="${0}"> <slot name="header"></slot> </h3> <div class="rounded ${0}"> <slot></slot> </div> </section> `),"text-l font-medium text-body leading-none "+(this.frame?"":"pl-m"),this.frame?"bg-contrast-5 overflow-hidden":"")}}export{i as G};
@@ -0,0 +1 @@
1
+ import"./shared-d8b880bb.js";import{I as e}from"./shared-45649d84.js";import"./shared-c066b7fd.js";import{_ as t}from"./shared-8f9014ff.js";import{i as s}from"./shared-53e42a77.js";import{h as i,s as a}from"./shared-ba5c42c7.js";import{c as l}from"./shared-4e709717.js";let r,o,d,n,h=e=>e;customElements.define("foxy-internal-select-control",class extends e{constructor(){super(...arguments),this.options=[],this.layout=null,this.theme=null,this.__isErrorVisible=!1}static get properties(){return t(t({},super.properties),{},{options:{type:Array},layout:{},theme:{type:String},__isErrorVisible:{attribute:!1}})}renderControl(){var e;return"summary-item"===this.layout?this.__renderSummaryItemLayout():i(r||(r=h` <vaadin-combo-box item-value-path="value" item-label-path="label" error-message="${0}" item-id-path="value" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" theme="${0}" ?disabled="${0}" ?readonly="${0}" clear-button-visible .checkValidity="${0}" .items="${0}" .value="${0}" @change="${0}"> </vaadin-combo-box> `),s(this._errorMessage),this.helperText,this.placeholder,this.label,s(null!==(e=this.theme)&&void 0!==e?e:void 0),this.disabled,this.readonly,this._checkValidity,this.options.map((e=>({label:"label"in e?this.t(e.label):e.rawLabel,value:e.value}))),this._value,(e=>{e.stopPropagation();const t=e.currentTarget;this._value=t.value,t.validate()}))}reportValidity(){this.__isErrorVisible=!0,super.reportValidity()}updated(e){var t,s;super.updated(e);const i=this.renderRoot.querySelector("vaadin-combo-box");i&&i.value!==this._value&&(i.value=this._value);const a=this.getAttribute("aria-label");if(a&&(null==i?void 0:i.focusElement)){const e=i.focusElement;e.setAttribute("aria-label",a),null===(s=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector("input"))||void 0===s||s.setAttribute("aria-label",a)}}__renderSummaryItemLayout(){const e=this.options.find((e=>e.value===this._value));return i(o||(o=h` <div class="leading-xs"> <div class="flex items-center gap-s"> <label class="text-m text-body flex-1 whitespace-nowrap" for="select"> ${0} </label> <div class="${0}"> <div class="flex items-center gap-xs min-w-0"> <div class="truncate min-w-0"> ${0} </div> ${0} </div> <select class="${0}" id="select" ?disabled="${0}" ?hidden="${0}" @blur="${0}" @change="${0}"> <option value="" ?selected="${0}" disabled="disabled" hidden>${0}</option> ${0} </select> </div> </div> <div style="max-width:32rem"> <p class="text-xs text-secondary">${0}</p> <p class="text-xs text-error" ?hidden="${0}"> ${0} </p> </div> </div> `),this.label,l({"relative rounded-s transition-colors transition-opacity min-w-0":!0,"focus-within-ring-2 focus-within-ring-primary-50":!this.disabled&&!this.readonly,"text-body hover-opacity-80 cursor-pointer":!this.disabled&&!this.readonly,"text-secondary":this.readonly,"text-disabled":this.disabled,"font-medium":!this.readonly}),e?"label"in e?this.t(e.label):e.rawLabel:this.placeholder,this.readonly?"":a(d||(d=h`<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>`)),l({"absolute inset-0 opacity-0":!0,"cursor-pointer":!this.disabled&&!this.readonly}),this.disabled,this.readonly,(()=>this.__isErrorVisible=!0),(e=>{e.stopPropagation(),this._value=e.target.value}),!e,this.placeholder,this.options.map((t=>i(n||(n=h` <option value="${0}" ?selected="${0}"> ${0} </option> `),t.value,e&&t.value===this._value,"label"in t?this.t(t.label):t.rawLabel))),this.helperText,!this.__isErrorVisible||this.disabled||this.readonly,this._errorMessage)}_handleHostClick(e){var t;if("summary-item"!==this.layout)return;const s=e.composedPath(),i=new Set(["SELECT","LABEL","BUTTON"]);s.some((e=>i.has(e.tagName)))||(null===(t=this.renderRoot.querySelector("select"))||void 0===t||t.focus(),super._handleHostClick(e))}});
@@ -1,4 +1,4 @@
1
- import"./shared-99c53365.js";import{h as t,P as e}from"./shared-0fd68dc0.js";import{F as i,t as o}from"./shared-6cdfb858.js";import{T as n,a,E as s}from"./shared-8d8975d5.js";import"./shared-65094878.js";import{O as r}from"./shared-a20ef119.js";import"./shared-515003f6.js";import"./shared-d81149d8.js";import"./foxy-collection-page.js";import"./foxy-swipe-actions.js";import"./foxy-form-dialog.js";import"./foxy-pagination.js";import"./shared-a95d3946.js";import{I as l}from"./shared-486d4db3.js";import"./shared-3a91efdc.js";import{x as d}from"./shared-887ac0b0.js";import{c,h,r as u}from"./shared-ba5c42c7.js";import{_ as m}from"./shared-8f9014ff.js";import{i as p}from"./shared-53e42a77.js";import{c as _}from"./shared-4e709717.js";const f=t`<dom-module id="lumo-notification-card" theme-for="vaadin-notification-card">
1
+ import"./shared-dc6e5879.js";import{h as t,P as e}from"./shared-f410644a.js";import{F as i,t as o}from"./shared-c3d6bcc0.js";import{T as n,a,E as s}from"./shared-f77994ad.js";import"./shared-91483320.js";import{O as r}from"./shared-d8b880bb.js";import"./shared-a8ae24f0.js";import"./shared-3eca56ee.js";import"./foxy-collection-page.js";import"./foxy-swipe-actions.js";import"./foxy-form-dialog.js";import"./foxy-pagination.js";import"./shared-c066b7fd.js";import{I as l}from"./shared-45649d84.js";import"./shared-760a2243.js";import{x as d}from"./shared-5b8c7250.js";import{c,h,r as u}from"./shared-ba5c42c7.js";import{_ as m}from"./shared-8f9014ff.js";import{i as p}from"./shared-53e42a77.js";import{c as _}from"./shared-4e709717.js";const f=t`<dom-module id="lumo-notification-card" theme-for="vaadin-notification-card">
2
2
  <template>
3
3
  <style>
4
4
  :host {
@@ -253,7 +253,7 @@ class v extends(n(s(e))){static get template(){return t`
253
253
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
254
254
  </div>
255
255
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
256
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_detectIosNavbar(){const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.bottom=e&&i>t?i-t+"px":"0"}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault()}}class y extends(n(e)){static get template(){return t`
256
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}_openedChanged(t){t?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),/iPad|iPhone|iPod/.test(navigator.userAgent)&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_detectIosNavbar(){const t=window.innerHeight,e=window.innerWidth>t,i=document.documentElement.clientHeight;this.style.bottom=e&&i>t?i-t+"px":"0"}_onVaadinOverlayClose(t){const e=t.detail.sourceEvent;e&&e.composedPath().indexOf(this)>=0&&t.preventDefault()}}class g extends(n(e)){static get template(){return t`
257
257
  <style>
258
258
  :host {
259
259
  display: block;
@@ -269,7 +269,7 @@ class v extends(n(s(e))){static get template(){return t`
269
269
  <slot></slot>
270
270
  </div>
271
271
  </div>
272
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class g extends(a(s(e))){static get template(){return t`
272
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class y extends(a(s(e))){static get template(){return t`
273
273
  <style>
274
274
  :host {
275
275
  display: none;
@@ -277,4 +277,4 @@ class v extends(n(s(e))){static get template(){return t`
277
277
  </style>
278
278
  <vaadin-notification-card id="vaadin-notification-card" theme\$="[[theme]]">
279
279
  </vaadin-notification-card>
280
- `}static get is(){return"vaadin-notification"}static get version(){return"1.6.2"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function,_notificationTemplate:Object}}static get observers(){return["_durationChanged(duration, opened)","_templateOrRendererChanged(_notificationTemplate, renderer, opened)"]}ready(){super.ready(),this._observer=new i(this,(t=>{this._setTemplateFromNodes(t.addedNodes)}))}_setTemplateFromNodes(t){this._notificationTemplate=t.filter((t=>t.localName&&"template"===t.localName))[0]||this._notificationTemplate}render(){"function"==typeof this.renderer&&this.renderer(this._card,this)}_removeNewRendererOrTemplate(t,e,i,o){t!==e?this._notificationTemplate=void 0:i!==o&&(this.renderer=void 0)}_templateOrRendererChanged(t,e,i){if(t&&e)throw this._removeNewRendererOrTemplate(t,this._oldTemplate,e,this._oldRenderer),new Error("You should only use either a renderer or a template for notification content");this._oldTemplate=t;const o=this._oldRenderer!==e;if(this._oldRenderer=e,e){if(this._card=this.$["vaadin-notification-card"],o)for(;this._card.firstChild;)this._card.removeChild(this._card.firstChild);i&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.render())}}open(){this.opened=!0}close(){this.opened=!1}get _container(){return g._container||(g._container=document.createElement("vaadin-notification-container"),document.body.appendChild(g._container)),g._container}_openedChanged(t){t?(this._container.opened=!0,this._instance||this.renderer||this._ensureTemplatized(),this._animatedAppendNotificationCard(),setTimeout((()=>this._updateShadyButtonStyles()))):this._card&&this._closeNotificationCard()}_ensureTemplatized(){if(this._notificationTemplate=this.querySelector("template")||this._notificationTemplate,!this._notificationTemplate)return;this._notificationTemplate._Templatizer||(this._notificationTemplate._Templatizer=o(this._notificationTemplate,this,{forwardHostProp:function(t,e){this._instance&&this._instance.forwardHostProp(t,e)}})),this._instance=new this._notificationTemplate._Templatizer({});const t=this._notificationTemplate.getRootNode(),e=t!==document;if(this._card=this.$["vaadin-notification-card"],this._cardContent=this._card.shadowRoot.querySelector('[part~="content"]'),e){if(this._cardContent.shadowRoot||this._cardContent.attachShadow({mode:"open"}),window.ShadyCSS&&!window.ShadyCSS.nativeShadow){var i=t.host&&t.host.localName;i&&-1===i.indexOf("-")&&(i=t.host.getAttribute("is")),i&&this._cardContent.setAttribute("is",i)}else{const e=Array.from(t.querySelectorAll("style")).reduce(((t,e)=>t+e.textContent),"").replace(/:host/g,":host-nomatch");if(e){const t=document.createElement("style");t.textContent=e,this._cardContent.shadowRoot.appendChild(t)}}this._cardContent.shadowRoot.appendChild(this._instance.root)}else this._card.appendChild(this._instance.root);this._card.setAttribute("aria-label",this._card.textContent.trim())}_animatedAppendNotificationCard(){if(this._card){this._card.setAttribute("opening",""),this._appendNotificationCard();const t=()=>{this._card.removeEventListener("animationend",t),this._card.removeAttribute("opening")};this._card.addEventListener("animationend",t),this._didAnimateNotificationAppend=!0}else this._didAnimateNotificationAppend=!1}_appendNotificationCard(){this._card&&(this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)?(this._card.slot=this.position,this._container.firstElementChild&&/top/.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)):window.console.warn(`Invalid alignment parameter provided: position=${this.position}`))}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=Boolean(this._container.firstElementChild)}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");if(t&&"none"!=t){const t=()=>{this._removeNotificationCard(),this._card.removeEventListener("animationend",t)};this._card.addEventListener("animationend",t)}else this._removeNotificationCard()}_positionChanged(t){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}_updateShadyButtonStyles(){window.ShadyCSS&&!this.__buttonStylesPending&&(customElements.whenDefined("vaadin-button").then((()=>{Array.from(this._card.querySelectorAll("*")).filter((t=>t instanceof customElements.get("vaadin-button"))).forEach((t=>{const e=["--_lumo-button-color","--_lumo-button-background-color","--_lumo-button-primary-color","--_lumo-button-primary-background-color"].reduce(((t,e)=>{const i=window.ShadyCSS.getComputedStyleValue(this._card,e);return i&&(t[e]=i),t}),{});t.updateStyles(e)})),this.__buttonStylesPending=!1})),this.__buttonStylesPending=!0)}}customElements.define(v.is,v),customElements.define(y.is,y),customElements.define(g.is,g);let b;d("vaadin-checkbox",c(b||(b=(t=>t)`:host([data-async-list-control]) label{display:flex}:host([data-async-list-control]) [part=label]{width:100%;margin:0!important}`)));let x,$=t=>t;const C=t=>class e extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1}}}static get observers(){return["__positionSettingsChanged(positionTarget, horizontalAlign, verticalAlign,\n noHorizontalOverlap, noVerticalOverlap)"]}constructor(){super();const t=this._updatePosition.bind(this);this.addEventListener("opened-changed",(e=>{const i=e.detail.value?"addEventListener":"removeEventListener";window[i]("scroll",t),window[i]("resize",t),e.detail.value&&this._updatePosition()}))}ready(){super.ready(),console.warn("PositionMixin is not considered stable and might change any time")}__positionSettingsChanged(){this._updatePosition()}_updatePosition(){if(!this.positionTarget)return;const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)})));const e="rtl"===t.direction,i=this.positionTarget.getBoundingClientRect(),o=this.__calculateHorizontalPosition(i,e),n=this.__calculateVerticalPosition(i),a=Object.assign({},o,n);this.__doSetPosition(a,e)}__calculateHorizontalPosition(t,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!i&&"start"===this.horizontalAlign||i&&"end"===this.horizontalAlign,s=!!this.style.left;return e.__calculatePositionInOneDimension(t,o,n,this.__margins,a,s,this.noHorizontalOverlap,{start:"left",end:"right"})}__calculateVerticalPosition(t){const i=Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),n="top"===this.verticalAlign,a=!!this.style.top;return e.__calculatePositionInOneDimension(t,i,o,this.__margins,n,a,this.noVerticalOverlap,{start:"top",end:"bottom"})}static __calculatePositionInOneDimension(t,e,i,o,n,a,s,r){const l=i-t[s?r.end:r.start]-o[r.end],d=t[s?r.start:r.end]-o[r.start],c=n?l:d,h=n===(c>(n?d:l)||c>e),u=h?r.start:r.end,m=h?r.end:r.start,p=(h?t[s?r.end:r.start]:i-t[s?r.start:r.end])+"px",_={};return _[u]=p,_[m]="",_}__doSetPosition(t,e){Object.assign(this.style,t);const i=!e&&t.left||e&&t.right;this.style.alignItems=i?"flex-start":"flex-end",this.style.justifyContent=t.top?"flex-start":"flex-end"}};class w extends(C(r)){constructor(){super(...arguments),this.renderer=(t,e,i)=>{var o;const n=null!==(o=t.firstElementChild)&&void 0!==o?o:document.createElement("div");t.firstElementChild||t.appendChild(n);const a=i,s=h(x||(x=$` <div style="display:grid;gap:var(--lumo-space-m);padding:var(--lumo-space-s);min-width:22rem;max-width:35rem"> <foxy-query-builder lang="${0}" ns="${0}" .options="${0}" .value="${0}"> </foxy-query-builder> <div style="display:flex;justify-content:space-between"> <vaadin-button theme="primary" style="margin:0" @click="${0}"> <foxy-i18n lang="${0}" ns="${0}" key="search"></foxy-i18n> </vaadin-button> <vaadin-button theme="secondary contrast" style="margin:0" @click="${0}"> <foxy-i18n lang="${0}" ns="${0}" key="clear"></foxy-i18n> </vaadin-button> </div> </div> `),a.lang,`${a.ns} query-builder`.trim(),a.options,a.value,(()=>{var t;const e=null!==(t=n.querySelector("foxy-query-builder").value)&&void 0!==t?t:"";this.dispatchEvent(new CustomEvent("search",{detail:e}))}),a.lang,a.ns,(()=>this.dispatchEvent(new CustomEvent("search"))),a.lang,a.ns);u(s,n)}}static get is(){return"foxy-internal-async-list-control-filter-overlay"}}let k,S,E,P,T,A,O,R,j,B,N,z,I,H,D,L,V,q,F,W,M,Y,U,J,G=t=>t;customElements.define("foxy-internal-async-list-control",class extends l{constructor(){super(...arguments),this.keepDialogOpenOnDelete=!1,this.keepDialogOpenOnPost=!1,this.createPageHref=null,this.bulkActions=[],this.related=[],this.layout=null,this.actions=[],this.filters=[],this.limit=20,this.first=null,this.form=null,this.formProps={},this.item=null,this.itemProps={},this.wide=!1,this.hideWhenEmpty=!1,this.open=!1,this.alert=!1,this.hideDeleteButton=!1,this.hideCreateButton=!1,this.getPageHref=null,this.filter=null,this.extendFilter=null,this.__deletionConfimationCallback=null,this.__cachedCardRenderer=null,this.__activeBulkAction=null,this.__isFilterVisible=!1,this.__notification=null,this.__isSelecting=!1,this.__totalItems=0,this.__selection=[],this.__itemRenderer=t=>{var e;const i=this.__cardRenderer(t),o=h(k||(k=G`<div class="bg-contrast-5">${0}</div>`),i);if(!t.data)return o;if(this.__isSelecting)return h(S||(S=G` <vaadin-checkbox class="${0}" style="padding-left:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" data-async-list-control ?disabled="${0}" ?checked="${0}" @change="${0}"> ${0} </vaadin-checkbox> `),_({"block w-full":!0,"bg-contrast-5":"details"===this.layout}),this.disabled||!!this.__activeBulkAction,this.__selection.find((e=>e._links.self.href===t.data._links.self.href)),(e=>{e.currentTarget.checked?this.__selection=[...this.__selection,t.data]:this.__selection=this.__selection.filter((e=>e._links.self.href!==t.data._links.self.href))}),this.__cardRenderer(t));if("string"!=typeof(null===(e=this.getPageHref)||void 0===e?void 0:e.call(this,t.href,t.data))&&!this.form)return o;const n=this.disabledSelector.matches("card",!0),a=this.__cardRenderer(t);let s;const r=_({"rounded-t":"details"!==this.layout&&!t.previous,"rounded-b":!t.next,"focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50":!0,"text-left w-full block bg-contrast-5 transition-colors":!0,"hover-bg-contrast-10":!n});if(this.getPageHref)if(n)s=h(E||(E=G`<div class="${0}">${0}</div>`),r,a);else{const e=this.getPageHref(t.href,t.data);s=h(P||(P=G`<a class="${0}" href="${0}">${0}</a>`),r,e,a)}else{s=h(T||(T=G` <button ?disabled="${0}" class="${0}" @click="${0}">${0}</button> `),n,r,(e=>{const i=new CustomEvent("itemclick",{cancelable:!0,composed:!0,bubbles:!0,detail:t.href});if(this.dispatchEvent(i)){const i=e.currentTarget,o=this.__dialog;o.header="header_update",o.href=t.href,o.show(i)}}),a)}return this.hideDeleteButton&&!this.actions.length||this.readonly?s:h(A||(A=G` <foxy-swipe-actions class="block"> ${0} ${0} ${0} </foxy-swipe-actions> `),s,this.actions.map((e=>h(O||(O=G` <vaadin-button data-testclass="action" theme="${0}" class="h-full rounded-none relative" slot="action" ?disabled="${0}" @click="${0}"> <foxy-i18n class="${0}" infer="" key="${0}"> </foxy-i18n> <div class="${0}"> <foxy-spinner layout="no-label" infer="spinner" state="${0}"> </foxy-spinner> </div> </vaadin-button> `),e.theme,this.disabled,(()=>e.onClick(t.data)),_({"transition-opacity":!0,"opacity-0":"idle"!==e.state}),e.text,_({"absolute inset-0 flex items-center justify-center transition-opacity":!0,"opacity-0":"idle"===e.state}),e.state))),this.hideDeleteButton?"":h(R||(R=G` <vaadin-button theme="primary error" class="h-full rounded-none" slot="action" @click="${0}"> <foxy-i18n infer="" key="delete_button_text"></foxy-i18n> </vaadin-button> `),(t=>{const e=t.currentTarget;this.renderRoot.querySelector("#confirm").show(e),this.__deletionConfimationCallback=()=>{const t=e.parentElement.firstElementChild.querySelector("[href]");null==t||t.delete(),this.__deletionConfimationCallback=null}})))}}static get properties(){return m(m({},super.properties),{},{keepDialogOpenOnDelete:{type:Boolean,attribute:"keep-dialog-open-on-delete"},keepDialogOpenOnPost:{type:Boolean,attribute:"keep-dialog-open-on-post"},hideDeleteButton:{type:Boolean,attribute:"hide-delete-button"},hideCreateButton:{type:Boolean,attribute:"hide-create-button"},createPageHref:{attribute:"create-page-href"},getPageHref:{attribute:!1},related:{type:Array},layout:{},first:{},limit:{type:Number},form:{},formProps:{type:Object,attribute:"form-props"},item:{},itemProps:{type:Object,attribute:"item-props"},wide:{type:Boolean},open:{type:Boolean},hideWhenEmpty:{type:Boolean,attribute:"hide-when-empty"},alert:{type:Boolean},actions:{attribute:!1},bulkActions:{attribute:!1},filters:{type:Array},filter:{},extendFilter:{type:Function,attribute:!1},__selection:{attribute:!1},__totalItems:{attribute:!1},__isSelecting:{attribute:!1},__notification:{attribute:!1},__isFilterVisible:{attribute:!1},__activeBulkAction:{attribute:!1}})}render(){const t=this.hideWhenEmpty&&!this.__totalItems;return h(j||(j=G`<div class="${0}">${0}</div>`),_({hidden:t}),super.render())}renderControl(){var t,e;const i=this.__renderActions(),o=this.__renderContent();return h(B||(B=G` ${0} ${0} ${0} <div class="mt-s text-s leading-xs text-error" ?hidden="${0}"> ${0} </div> <vaadin-notification position="bottom-end" duration="3000" theme="${0}" .renderer="${0}"> </vaadin-notification> `),this.form&&!this.__isSelecting?h(N||(N=G` <foxy-form-dialog parent="${0}" infer="dialog" id="form" ?wide="${0}" ?alert="${0}" ?keep-open-on-post="${0}" ?keep-open-on-delete="${0}" .related="${0}" .props="${0}" .form="${0}"> </foxy-form-dialog> `),p(null!==(t=this.first)&&void 0!==t?t:void 0),this.wide,this.alert,this.keepDialogOpenOnPost,this.keepDialogOpenOnDelete,this.related,this.formProps,this.form):"",this.hideDeleteButton||this.readonly||this.__isSelecting?"":h(z||(z=G` <foxy-internal-confirm-dialog message="delete_message" confirm="delete_confirm" cancel="delete_cancel" header="delete_header" theme="error" infer="" id="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> `),(t=>{var e;t.detail.cancelled||null===(e=this.__deletionConfimationCallback)||void 0===e||e.call(this)})),"details"===this.layout?h(I||(I=G` <foxy-internal-summary-control layout="details" count="${0}" infer="" ?open="${0}" @toggle="${0}"> ${0} <div class="p-0 bg-transparent">${0}</div> </foxy-internal-summary-control> `),p(this.open?void 0:`${this.__totalItems}`),this.open,(t=>{const e=t.currentTarget;this.open=e.open,t.composed||t.bubbles||this.dispatchEvent(new CustomEvent("toggle"))}),i.length?h(H||(H=G` <div class="flex gap-s"> <foxy-i18n infer="" class="mr-auto text-tertiary" key="total_items" .options="${0}"> </foxy-i18n> ${0} </div> `),{count:this.__totalItems},i):"",o):h(D||(D=G` <div class="flex gap-s items-center justify-between font-medium"> <span class="text-body mr-auto text-l"> ${0} </span> ${0} </div> <div class="text-secondary text-s" ?hidden="${0}"> ${0} </div> ${0} `),this.label&&"label"!==this.label?this.label:"",i,!this.helperText||"helper_text"===this.helperText,this.helperText,o),!this._errorMessage||this.disabled||this.readonly||this.__isSelecting,this._errorMessage,p(null===(e=this.__notification)||void 0===e?void 0:e.theme),(t=>{var e,i;t.firstElementChild||(t.innerHTML="<span></span>");const o=null===(e=this.__notification)||void 0===e?void 0:e.theme,n=h(L||(L=G` <foxy-i18n style="color:var(--lumo-${0}-color)" lang="${0}" key="${0}" ns="${0} pagination"> </foxy-i18n> `),o?`${o}-contrast`:"body-text",this.lang,null===(i=this.__notification)||void 0===i?void 0:i.key,this.ns);u(n,t.firstElementChild)}))}get __cardRenderer(){var t;const e=this.item;return(null===(t=this.__cachedCardRenderer)||void 0===t?void 0:t.item)!==e&&(this.__cachedCardRenderer={item:e,render:"string"==typeof e?new Function("ctx",`return ctx.html\`\n <${e}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n style="padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)"\n infer=""\n href=\${ctx.href}\n ...=\${ctx.spread(ctx.props)}\n >\n </${e}>\``):t=>h(V||(V=G` <div style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> ${0} </div> `),null==e?void 0:e(t))}),this.__cachedCardRenderer.render}get __dialog(){return this.renderRoot.querySelector("#form")}__renderActions(){var t,e=this;return[this.filters.length>0&&!this.__isSelecting?h(q||(q=G` <foxy-internal-async-list-control-filter-overlay .noVerticalOverlap="${0}" .positionTarget="${0}" .model="${0}" ?opened="${0}" @vaadin-overlay-close="${0}" @search="${0}"> </foxy-internal-async-list-control-filter-overlay> <vaadin-button theme="tertiary-inline contrast" id="filters" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="search_button_text"></foxy-i18n> ${0} </vaadin-button> `),!0,this.renderRoot.querySelector("#filters"),{options:this.filters,value:null!==(t=this.filter)&&void 0!==t?t:"",lang:this.lang,ns:this.ns},this.__isFilterVisible,(()=>this.__isFilterVisible=!1),(t=>{var e;this.filter=null!==(e=t.detail)&&void 0!==e?e:""}),this.disabled,(()=>this.__isFilterVisible=!this.__isFilterVisible),this.filter?h(F||(F=G`<span>(${0})</span>`),this.filter.split("&").length):""):"",this.bulkActions.length>0&&this.first?h(W||(W=G` ${0} <vaadin-button theme="tertiary-inline contrast" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="${0}"> </foxy-i18n> </vaadin-button> `),this.__selection.length>0?this.bulkActions.map((t=>{var i;const o=`${t.name}_bulk_action_notification`,n=`${t.name}_bulk_action_caption`,a=(null===(i=this.__activeBulkAction)||void 0===i?void 0:i.name)===t.name;return h(M||(M=G` <vaadin-button data-testclass="bulk-action" theme="tertiary-inline" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="${0}_${0}" .options="${0}"> </foxy-i18n> </vaadin-button> `),this.disabled||!!this.__activeBulkAction,(async function(){var i;e.__activeBulkAction=t;try{await t.onClick(e.__selection),e.__selection=[],e.__isSelecting=!1,e.__notification={key:`${o}_done`,theme:"success"}}catch(t){e.__notification={key:`${o}_fail`,theme:"error"}}finally{e.__activeBulkAction=null,null===(i=e.renderRoot.querySelector("vaadin-notification"))||void 0===i||i.open()}}),n,a?"busy":"idle",{count:this.__selection.length})})):"",this.disabled||!!this.__activeBulkAction,(()=>{this.__isSelecting=!this.__isSelecting,this.__selection=[]}),this.__isSelecting?"cancel_button_text":"select_button_text"):"",!this.form&&!this.createPageHref||this.readonly||this.hideCreateButton||this.__isSelecting?"":this.createPageHref&&!this.disabled?h(Y||(Y=G` <a class="rounded-s text-primary group focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> <foxy-i18n class="transition-opacity group-hover-opacity-80" infer="" key="create_button_text"> </foxy-i18n> </a> `),this.createPageHref):h(U||(U=G` <vaadin-button theme="tertiary-inline" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="create_button_text"></foxy-i18n> </vaadin-button> `),this.disabled,(t=>{t.preventDefault(),t.stopPropagation();const e=this.__dialog,i=t.currentTarget;e.header="header_create",e.href="",e.show(i)}))].filter((t=>!!t))}__renderContent(){var t,e,i;const o=this.helperText,n="details"===this.layout,a=this.label;let s;try{const o=new URL(null!==(t=this.first)&&void 0!==t?t:""),n=new URLSearchParams(null!==(e=this.filter)&&void 0!==e?e:"");o.searchParams.set("limit",String(this.limit)),n.forEach(((t,e)=>o.searchParams.set(e,t))),null===(i=this.extendFilter)||void 0===i||i.call(this,o.searchParams),s=o.toString()}catch(t){s=void 0}return h(J||(J=G` <foxy-pagination first="${0}" infer="pagination" class="${0}"> <foxy-collection-page class="${0}" style="gap:1px" infer="card" .related="${0}" .props="${0}" .item="${0}" @update="${0}"> </foxy-collection-page> </foxy-pagination> `),p(s),_({hidden:n&&0===this.__totalItems}),_({"grid grid-cols-1 overflow-hidden":!0,rounded:!n,"mt-s":!n&&(!!a&&"label"!==a||!!o&&"helper_text"!==o)}),this.related,this.itemProps,this.__itemRenderer,(t=>{var e,i;const o=t.currentTarget;this.__totalItems=parseInt(null!==(i=null===(e=o.data)||void 0===e?void 0:e.total_items)&&void 0!==i?i:0)}))}}),customElements.define(w.is,w);
280
+ `}static get is(){return"vaadin-notification"}static get version(){return"1.6.2"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function,_notificationTemplate:Object}}static get observers(){return["_durationChanged(duration, opened)","_templateOrRendererChanged(_notificationTemplate, renderer, opened)"]}ready(){super.ready(),this._observer=new i(this,(t=>{this._setTemplateFromNodes(t.addedNodes)}))}_setTemplateFromNodes(t){this._notificationTemplate=t.filter((t=>t.localName&&"template"===t.localName))[0]||this._notificationTemplate}render(){"function"==typeof this.renderer&&this.renderer(this._card,this)}_removeNewRendererOrTemplate(t,e,i,o){t!==e?this._notificationTemplate=void 0:i!==o&&(this.renderer=void 0)}_templateOrRendererChanged(t,e,i){if(t&&e)throw this._removeNewRendererOrTemplate(t,this._oldTemplate,e,this._oldRenderer),new Error("You should only use either a renderer or a template for notification content");this._oldTemplate=t;const o=this._oldRenderer!==e;if(this._oldRenderer=e,e){if(this._card=this.$["vaadin-notification-card"],o)for(;this._card.firstChild;)this._card.removeChild(this._card.firstChild);i&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.render())}}open(){this.opened=!0}close(){this.opened=!1}get _container(){return y._container||(y._container=document.createElement("vaadin-notification-container"),document.body.appendChild(y._container)),y._container}_openedChanged(t){t?(this._container.opened=!0,this._instance||this.renderer||this._ensureTemplatized(),this._animatedAppendNotificationCard(),setTimeout((()=>this._updateShadyButtonStyles()))):this._card&&this._closeNotificationCard()}_ensureTemplatized(){if(this._notificationTemplate=this.querySelector("template")||this._notificationTemplate,!this._notificationTemplate)return;this._notificationTemplate._Templatizer||(this._notificationTemplate._Templatizer=o(this._notificationTemplate,this,{forwardHostProp:function(t,e){this._instance&&this._instance.forwardHostProp(t,e)}})),this._instance=new this._notificationTemplate._Templatizer({});const t=this._notificationTemplate.getRootNode(),e=t!==document;if(this._card=this.$["vaadin-notification-card"],this._cardContent=this._card.shadowRoot.querySelector('[part~="content"]'),e){if(this._cardContent.shadowRoot||this._cardContent.attachShadow({mode:"open"}),window.ShadyCSS&&!window.ShadyCSS.nativeShadow){var i=t.host&&t.host.localName;i&&-1===i.indexOf("-")&&(i=t.host.getAttribute("is")),i&&this._cardContent.setAttribute("is",i)}else{const e=Array.from(t.querySelectorAll("style")).reduce(((t,e)=>t+e.textContent),"").replace(/:host/g,":host-nomatch");if(e){const t=document.createElement("style");t.textContent=e,this._cardContent.shadowRoot.appendChild(t)}}this._cardContent.shadowRoot.appendChild(this._instance.root)}else this._card.appendChild(this._instance.root);this._card.setAttribute("aria-label",this._card.textContent.trim())}_animatedAppendNotificationCard(){if(this._card){this._card.setAttribute("opening",""),this._appendNotificationCard();const t=()=>{this._card.removeEventListener("animationend",t),this._card.removeAttribute("opening")};this._card.addEventListener("animationend",t),this._didAnimateNotificationAppend=!0}else this._didAnimateNotificationAppend=!1}_appendNotificationCard(){this._card&&(this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)?(this._card.slot=this.position,this._container.firstElementChild&&/top/.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)):window.console.warn(`Invalid alignment parameter provided: position=${this.position}`))}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=Boolean(this._container.firstElementChild)}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");if(t&&"none"!=t){const t=()=>{this._removeNotificationCard(),this._card.removeEventListener("animationend",t)};this._card.addEventListener("animationend",t)}else this._removeNotificationCard()}_positionChanged(t){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout((()=>this.close()),t)))}_updateShadyButtonStyles(){window.ShadyCSS&&!this.__buttonStylesPending&&(customElements.whenDefined("vaadin-button").then((()=>{Array.from(this._card.querySelectorAll("*")).filter((t=>t instanceof customElements.get("vaadin-button"))).forEach((t=>{const e=["--_lumo-button-color","--_lumo-button-background-color","--_lumo-button-primary-color","--_lumo-button-primary-background-color"].reduce(((t,e)=>{const i=window.ShadyCSS.getComputedStyleValue(this._card,e);return i&&(t[e]=i),t}),{});t.updateStyles(e)})),this.__buttonStylesPending=!1})),this.__buttonStylesPending=!0)}}customElements.define(v.is,v),customElements.define(g.is,g),customElements.define(y.is,y);let b;d("vaadin-checkbox",c(b||(b=(t=>t)`:host([data-async-list-control]) label{display:flex}:host([data-async-list-control]) [part=label]{width:100%;margin:0!important}`)));let x,$=t=>t;const C=t=>class e extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1}}}static get observers(){return["__positionSettingsChanged(positionTarget, horizontalAlign, verticalAlign,\n noHorizontalOverlap, noVerticalOverlap)"]}constructor(){super();const t=this._updatePosition.bind(this);this.addEventListener("opened-changed",(e=>{const i=e.detail.value?"addEventListener":"removeEventListener";window[i]("scroll",t),window[i]("resize",t),e.detail.value&&this._updatePosition()}))}ready(){super.ready(),console.warn("PositionMixin is not considered stable and might change any time")}__positionSettingsChanged(){this._updatePosition()}_updatePosition(){if(!this.positionTarget)return;const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)})));const e="rtl"===t.direction,i=this.positionTarget.getBoundingClientRect(),o=this.__calculateHorizontalPosition(i,e),n=this.__calculateVerticalPosition(i),a=Object.assign({},o,n);this.__doSetPosition(a,e)}__calculateHorizontalPosition(t,i){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!i&&"start"===this.horizontalAlign||i&&"end"===this.horizontalAlign,s=!!this.style.left;return e.__calculatePositionInOneDimension(t,o,n,this.__margins,a,s,this.noHorizontalOverlap,{start:"left",end:"right"})}__calculateVerticalPosition(t){const i=Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),n="top"===this.verticalAlign,a=!!this.style.top;return e.__calculatePositionInOneDimension(t,i,o,this.__margins,n,a,this.noVerticalOverlap,{start:"top",end:"bottom"})}static __calculatePositionInOneDimension(t,e,i,o,n,a,s,r){const l=i-t[s?r.end:r.start]-o[r.end],d=t[s?r.start:r.end]-o[r.start],c=n?l:d,h=n===(c>(n?d:l)||c>e),u=h?r.start:r.end,m=h?r.end:r.start,p=(h?t[s?r.end:r.start]:i-t[s?r.start:r.end])+"px",_={};return _[u]=p,_[m]="",_}__doSetPosition(t,e){Object.assign(this.style,t);const i=!e&&t.left||e&&t.right;this.style.alignItems=i?"flex-start":"flex-end",this.style.justifyContent=t.top?"flex-start":"flex-end"}};class w extends(C(r)){constructor(){super(...arguments),this.renderer=(t,e,i)=>{var o;const n=null!==(o=t.firstElementChild)&&void 0!==o?o:document.createElement("div");t.firstElementChild||t.appendChild(n);const a=i,s=h(x||(x=$` <div style="display:grid;gap:var(--lumo-space-m);padding:var(--lumo-space-s);min-width:22rem;max-width:35rem"> <foxy-query-builder lang="${0}" ns="${0}" .options="${0}" .value="${0}"> </foxy-query-builder> <div style="display:flex;justify-content:space-between"> <vaadin-button theme="primary" style="margin:0" @click="${0}"> <foxy-i18n lang="${0}" ns="${0}" key="search"></foxy-i18n> </vaadin-button> <vaadin-button theme="secondary contrast" style="margin:0" @click="${0}"> <foxy-i18n lang="${0}" ns="${0}" key="clear"></foxy-i18n> </vaadin-button> </div> </div> `),a.lang,`${a.ns} query-builder`.trim(),a.options,a.value,(()=>{var t;const e=null!==(t=n.querySelector("foxy-query-builder").value)&&void 0!==t?t:"";this.dispatchEvent(new CustomEvent("search",{detail:e}))}),a.lang,a.ns,(()=>this.dispatchEvent(new CustomEvent("search"))),a.lang,a.ns);u(s,n)}}static get is(){return"foxy-internal-async-list-control-filter-overlay"}}let k,S,P,E,T,A,O,R,j,B,N,z,I,H,F,D,L,V,q,W,M,Y,U,J,G,K,Q=t=>t;customElements.define("foxy-internal-async-list-control",class extends l{constructor(){super(...arguments),this.keepDialogOpenOnDelete=!1,this.keepDialogOpenOnPost=!1,this.createPageHref=null,this.bulkActions=[],this.related=[],this.layout=null,this.actions=[],this.filters=[],this.limit=20,this.first=null,this.form=null,this.formProps={},this.item=null,this.itemProps={},this.wide=!1,this.hideWhenEmpty=!1,this.open=!1,this.alert=!1,this.hideDeleteButton=!1,this.hideCreateButton=!1,this.getPageHref=null,this.filter=null,this.extendFilter=null,this.__deletionConfimationCallback=null,this.__cachedCardRenderer=null,this.__activeBulkAction=null,this.__isFilterVisible=!1,this.__notification=null,this.__isSelecting=!1,this.__totalItems=0,this.__isPageFailed=!1,this.__selection=[],this.__itemRenderer=t=>{var e;const i=this.__cardRenderer(t),o=h(k||(k=Q`<div class="bg-contrast-5">${0}</div>`),i);if(!t.data)return o;if(this.__isSelecting)return h(S||(S=Q` <vaadin-checkbox class="${0}" style="padding-left:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" data-async-list-control ?disabled="${0}" ?checked="${0}" @change="${0}"> ${0} </vaadin-checkbox> `),_({"block w-full":!0,"bg-contrast-5":"details"===this.layout}),this.disabled||!!this.__activeBulkAction,this.__selection.find((e=>e._links.self.href===t.data._links.self.href)),(e=>{e.currentTarget.checked?this.__selection=[...this.__selection,t.data]:this.__selection=this.__selection.filter((e=>e._links.self.href!==t.data._links.self.href))}),this.__cardRenderer(t));if("string"!=typeof(null===(e=this.getPageHref)||void 0===e?void 0:e.call(this,t.href,t.data))&&!this.form)return o;const n=this.disabledSelector.matches("card",!0),a=this.__cardRenderer(t);let s;const r=_({"rounded-t":"details"!==this.layout&&!t.previous,"rounded-b":!t.next,"focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50":!0,"text-left w-full block bg-contrast-5 transition-colors":!0,"hover-bg-contrast-10":!n});if(this.getPageHref)if(n)s=h(P||(P=Q`<div class="${0}">${0}</div>`),r,a);else{const e=this.getPageHref(t.href,t.data);s=h(E||(E=Q`<a class="${0}" href="${0}">${0}</a>`),r,e,a)}else{s=h(T||(T=Q` <button ?disabled="${0}" class="${0}" @click="${0}">${0}</button> `),n,r,(e=>{const i=new CustomEvent("itemclick",{cancelable:!0,composed:!0,bubbles:!0,detail:t.href});if(this.dispatchEvent(i)){const i=e.currentTarget,o=this.__dialog;o.header="header_update",o.href=t.href,o.show(i)}}),a)}return this.hideDeleteButton&&!this.actions.length||this.readonly?s:h(A||(A=Q` <foxy-swipe-actions class="block"> ${0} ${0} ${0} </foxy-swipe-actions> `),s,this.actions.map((e=>h(O||(O=Q` <vaadin-button data-testclass="action" theme="${0}" class="h-full rounded-none relative" slot="action" ?disabled="${0}" @click="${0}"> <foxy-i18n class="${0}" infer="" key="${0}"> </foxy-i18n> <div class="${0}"> <foxy-spinner layout="no-label" infer="spinner" state="${0}"> </foxy-spinner> </div> </vaadin-button> `),e.theme,this.disabled,(()=>e.onClick(t.data)),_({"transition-opacity":!0,"opacity-0":"idle"!==e.state}),e.text,_({"absolute inset-0 flex items-center justify-center transition-opacity":!0,"opacity-0":"idle"===e.state}),e.state))),this.hideDeleteButton?"":h(R||(R=Q` <vaadin-button theme="primary error" class="h-full rounded-none" slot="action" @click="${0}"> <foxy-i18n infer="" key="delete_button_text"></foxy-i18n> </vaadin-button> `),(t=>{const e=t.currentTarget;this.renderRoot.querySelector("#confirm").show(e),this.__deletionConfimationCallback=()=>{const t=e.parentElement.firstElementChild.querySelector("[href]");null==t||t.delete(),this.__deletionConfimationCallback=null}})))}}static get properties(){return m(m({},super.properties),{},{keepDialogOpenOnDelete:{type:Boolean,attribute:"keep-dialog-open-on-delete"},keepDialogOpenOnPost:{type:Boolean,attribute:"keep-dialog-open-on-post"},hideDeleteButton:{type:Boolean,attribute:"hide-delete-button"},hideCreateButton:{type:Boolean,attribute:"hide-create-button"},createPageHref:{attribute:"create-page-href"},getPageHref:{attribute:!1},related:{type:Array},layout:{},first:{},limit:{type:Number},form:{},formProps:{type:Object,attribute:"form-props"},item:{},itemProps:{type:Object,attribute:"item-props"},wide:{type:Boolean},open:{type:Boolean},hideWhenEmpty:{type:Boolean,attribute:"hide-when-empty"},alert:{type:Boolean},actions:{attribute:!1},bulkActions:{attribute:!1},filters:{type:Array},filter:{},extendFilter:{type:Function,attribute:!1},__selection:{attribute:!1},__totalItems:{attribute:!1},__isPageFailed:{attribute:!1},__isSelecting:{attribute:!1},__notification:{attribute:!1},__isFilterVisible:{attribute:!1},__activeBulkAction:{attribute:!1}})}render(){const t=this.hideWhenEmpty&&!this.__totalItems&&!this.__isPageFailed;return h(j||(j=Q`<div class="${0}">${0}</div>`),_({hidden:t}),super.render())}renderControl(){var t,e;const i=this.__renderActions(),o=this.__renderContent();return h(B||(B=Q` ${0} ${0} ${0} <div class="mt-s text-s leading-xs text-error" ?hidden="${0}"> ${0} </div> <vaadin-notification position="bottom-end" duration="3000" theme="${0}" .renderer="${0}"> </vaadin-notification> `),this.form&&!this.__isSelecting?h(N||(N=Q` <foxy-form-dialog parent="${0}" infer="dialog" id="form" ?wide="${0}" ?alert="${0}" ?keep-open-on-post="${0}" ?keep-open-on-delete="${0}" .related="${0}" .props="${0}" .form="${0}"> </foxy-form-dialog> `),p(null!==(t=this.first)&&void 0!==t?t:void 0),this.wide,this.alert,this.keepDialogOpenOnPost,this.keepDialogOpenOnDelete,this.related,this.formProps,this.form):"",this.hideDeleteButton||this.readonly||this.__isSelecting?"":h(z||(z=Q` <foxy-internal-confirm-dialog message="delete_message" confirm="delete_confirm" cancel="delete_cancel" header="delete_header" theme="error" infer="" id="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> `),(t=>{var e;t.detail.cancelled||null===(e=this.__deletionConfimationCallback)||void 0===e||e.call(this)})),"details"===this.layout?h(I||(I=Q` <foxy-internal-summary-control layout="details" count="${0}" infer="" ?open="${0}" @toggle="${0}"> ${0} <div class="p-0 bg-transparent">${0}</div> </foxy-internal-summary-control> `),p(this.open||this.__isPageFailed?void 0:`${this.__totalItems}`),this.open,(t=>{const e=t.currentTarget;this.open=e.open,t.composed||t.bubbles||this.dispatchEvent(new CustomEvent("toggle"))}),i.length?h(H||(H=Q` <div class="flex gap-s"> ${0} ${0} </div> `),this.__isPageFailed?h(F||(F=Q`<span class="mr-auto"></span>`)):h(D||(D=Q` <foxy-i18n infer="" class="mr-auto text-tertiary" key="total_items" .options="${0}"> </foxy-i18n> `),{count:this.__totalItems}),i):"",o):h(L||(L=Q` <div class="flex gap-s items-center justify-between font-medium"> <span class="text-body mr-auto text-l"> ${0} </span> ${0} </div> <div class="text-secondary text-s" ?hidden="${0}"> ${0} </div> ${0} `),this.label&&"label"!==this.label?this.label:"",i,!this.helperText||"helper_text"===this.helperText,this.helperText,o),!this._errorMessage||this.disabled||this.readonly||this.__isSelecting,this._errorMessage,p(null===(e=this.__notification)||void 0===e?void 0:e.theme),(t=>{var e,i;t.firstElementChild||(t.innerHTML="<span></span>");const o=null===(e=this.__notification)||void 0===e?void 0:e.theme,n=h(V||(V=Q` <foxy-i18n style="color:var(--lumo-${0}-color)" lang="${0}" key="${0}" ns="${0} pagination"> </foxy-i18n> `),o?`${o}-contrast`:"body-text",this.lang,null===(i=this.__notification)||void 0===i?void 0:i.key,this.ns);u(n,t.firstElementChild)}))}get __cardRenderer(){var t;const e=this.item;return(null===(t=this.__cachedCardRenderer)||void 0===t?void 0:t.item)!==e&&(this.__cachedCardRenderer={item:e,render:"string"==typeof e?new Function("ctx",`return ctx.html\`\n <${e}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n style="padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)"\n infer=""\n href=\${ctx.href}\n ...=\${ctx.spread(ctx.props)}\n >\n </${e}>\``):t=>h(q||(q=Q` <div style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> ${0} </div> `),null==e?void 0:e(t))}),this.__cachedCardRenderer.render}get __dialog(){return this.renderRoot.querySelector("#form")}__renderActions(){var t,e=this;return[this.filters.length>0&&!this.__isSelecting?h(W||(W=Q` <foxy-internal-async-list-control-filter-overlay .noVerticalOverlap="${0}" .positionTarget="${0}" .model="${0}" ?opened="${0}" @vaadin-overlay-close="${0}" @search="${0}"> </foxy-internal-async-list-control-filter-overlay> <vaadin-button theme="tertiary-inline contrast" id="filters" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="search_button_text"></foxy-i18n> ${0} </vaadin-button> `),!0,this.renderRoot.querySelector("#filters"),{options:this.filters,value:null!==(t=this.filter)&&void 0!==t?t:"",lang:this.lang,ns:this.ns},this.__isFilterVisible,(()=>this.__isFilterVisible=!1),(t=>{var e;this.filter=null!==(e=t.detail)&&void 0!==e?e:""}),this.disabled,(()=>this.__isFilterVisible=!this.__isFilterVisible),this.filter?h(M||(M=Q`<span>(${0})</span>`),this.filter.split("&").length):""):"",this.bulkActions.length>0&&this.first?h(Y||(Y=Q` ${0} <vaadin-button theme="tertiary-inline contrast" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="${0}"> </foxy-i18n> </vaadin-button> `),this.__selection.length>0?this.bulkActions.map((t=>{var i;const o=`${t.name}_bulk_action_notification`,n=`${t.name}_bulk_action_caption`,a=(null===(i=this.__activeBulkAction)||void 0===i?void 0:i.name)===t.name;return h(U||(U=Q` <vaadin-button data-testclass="bulk-action" theme="tertiary-inline" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="${0}_${0}" .options="${0}"> </foxy-i18n> </vaadin-button> `),this.disabled||!!this.__activeBulkAction,(async function(){var i;e.__activeBulkAction=t;try{await t.onClick(e.__selection),e.__selection=[],e.__isSelecting=!1,e.__notification={key:`${o}_done`,theme:"success"}}catch(t){e.__notification={key:`${o}_fail`,theme:"error"}}finally{e.__activeBulkAction=null,null===(i=e.renderRoot.querySelector("vaadin-notification"))||void 0===i||i.open()}}),n,a?"busy":"idle",{count:this.__selection.length})})):"",this.disabled||!!this.__activeBulkAction,(()=>{this.__isSelecting=!this.__isSelecting,this.__selection=[]}),this.__isSelecting?"cancel_button_text":"select_button_text"):"",!this.form&&!this.createPageHref||this.readonly||this.hideCreateButton||this.__isSelecting?"":this.createPageHref&&!this.disabled?h(J||(J=Q` <a class="rounded-s text-primary group focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> <foxy-i18n class="transition-opacity group-hover-opacity-80" infer="" key="create_button_text"> </foxy-i18n> </a> `),this.createPageHref):h(G||(G=Q` <vaadin-button theme="tertiary-inline" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="pagination" key="create_button_text"></foxy-i18n> </vaadin-button> `),this.disabled,(t=>{t.preventDefault(),t.stopPropagation();const e=this.__dialog,i=t.currentTarget;e.header="header_create",e.href="",e.show(i)}))].filter((t=>!!t))}__renderContent(){var t,e,i;const o=this.helperText,n="details"===this.layout,a=this.label;let s;try{const o=new URL(null!==(t=this.first)&&void 0!==t?t:""),n=new URLSearchParams(null!==(e=this.filter)&&void 0!==e?e:"");o.searchParams.set("limit",String(this.limit)),n.forEach(((t,e)=>o.searchParams.set(e,t))),null===(i=this.extendFilter)||void 0===i||i.call(this,o.searchParams),s=o.toString()}catch(t){s=void 0}return h(K||(K=Q` <foxy-pagination first="${0}" infer="pagination" class="${0}"> <foxy-collection-page class="${0}" style="gap:1px" infer="card" .related="${0}" .props="${0}" .item="${0}" @update="${0}"> </foxy-collection-page> </foxy-pagination> `),p(s),_({hidden:n&&0===this.__totalItems&&!this.__isPageFailed}),_({"grid grid-cols-1 overflow-hidden":!0,rounded:!n,"mt-s":!n&&(!!a&&"label"!==a||!!o&&"helper_text"!==o)}),this.related,this.itemProps,this.__itemRenderer,(t=>{var e,i;const o=t.currentTarget;this.__totalItems=parseInt(null!==(i=null===(e=o.data)||void 0===e?void 0:e.total_items)&&void 0!==i?i:0),this.__isPageFailed=o.in("fail")}))}}),customElements.define(w.is,w);
@@ -1 +1 @@
1
- import"./shared-515003f6.js";import"./shared-a95d3946.js";import{a as e}from"./shared-486d4db3.js";import{h as t}from"./shared-ba5c42c7.js";import{l as r,_ as i,B as s}from"./shared-8f9014ff.js";import"./shared-3a91efdc.js";import"./foxy-copy-to-clipboard.js";import"./foxy-spinner.js";import{g as n}from"./shared-bab2ea2c.js";import{C as o}from"./shared-41c9c53f.js";import{T as a}from"./shared-887ac0b0.js";import{N as l}from"./shared-276618b9.js";import{c as d}from"./shared-4e709717.js";let c,f=e=>e;customElements.define("foxy-internal-timestamps-control",class extends e{renderControl(){return t(c||(c=f` <p class="font-lumo text-s leading-s text-secondary"> <foxy-i18n infer="" key="date_created"></foxy-i18n> <foxy-i18n .options="${0}" infer="" key="date"> </foxy-i18n> <span>&bull;<span> <foxy-i18n infer="" key="date_modified"></foxy-i18n> <foxy-i18n .options="${0}" infer="" key="date"> </foxy-i18n> </span></span></p> `),{value:r(this,"nucleon.data.date_created")},{value:r(this,"nucleon.data.date_modified")})}});let h,u=e=>e;customElements.define("foxy-internal-submit-control",class extends e{constructor(){super(...arguments),this.theme="primary"}static get properties(){return i(i({},super.properties),{},{theme:{type:String}})}renderControl(){return t(h||(h=u` <vaadin-button theme="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="caption"></foxy-i18n> </vaadin-button> `),this.theme,this.disabled,(()=>{var e;return null===(e=this.nucleon)||void 0===e?void 0:e.submit()}))}});let p,y=e=>e;customElements.define("foxy-internal-delete-control",class extends e{constructor(){super(...arguments),this.theme="error"}static get properties(){return i(i({},super.properties),{},{theme:{type:String}})}renderControl(){return t(p||(p=y` <foxy-internal-confirm-dialog message="delete_prompt" confirm="delete" cancel="cancel" header="delete" theme="primary error" infer="" id="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> <vaadin-button data-testid="delete" theme="${0}" class="w-full" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="delete"></foxy-i18n> </vaadin-button> `),(e=>{var t;return!e.detail.cancelled&&(null===(t=this.nucleon)||void 0===t?void 0:t.delete())}),this.theme,this.disabled||this.readonly,(e=>{this.renderRoot.querySelector("#confirm").show(e.currentTarget)}))}});let m,x=e=>e;customElements.define("foxy-internal-undo-control",class extends e{constructor(){super(...arguments),this.theme="secondary"}static get properties(){return i(i({},super.properties),{},{theme:{type:String}})}renderControl(){return t(m||(m=x` <vaadin-button theme="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="caption"></foxy-i18n> </vaadin-button> `),this.theme,this.disabled,(()=>{var e;return null===(e=this.nucleon)||void 0===e?void 0:e.undo()}))}});let b,g,v,$,k,S,_,j,E,O,T,C,w,B,K=e=>e;const H=o(a(l));class I extends H{constructor(){super(...arguments),this.status=null}static get properties(){return i(i({},super.properties),{},{status:{type:Object}})}renderHeaderActions(e){return null}get headerTitleKey(){return"title"}get headerTitleOptions(){return i(i({},this.data),{},{context:this.data?"existing":"new",id:this.data?n(this.data._links.self.href):null})}get headerSubtitleKey(){return"subtitle"}get headerSubtitleOptions(){var e;return null!==(e=this.data)&&void 0!==e?e:{}}get headerSubtitleBadges(){return[]}get headerCopyIdValue(){var e;return this.data&&null!==(e=n(this.data._links.self.href))&&void 0!==e?e:""}get hiddenSelector(){const e=[super.hiddenSelector.toString()];return this.href&&e.unshift("create"),this.href||e.unshift("delete","timestamps","submit"),this.in({idle:{snapshot:"dirty"}})||e.unshift("undo","submit"),new s(e.join(" ").trim())}renderHeader(){if(this.hiddenSelector.matches("header",!0))return t(b||(b=K``));const e=this.data,r=e?this.renderHeaderActions(e):null;return t(g||(g=K` <div> ${0} <h2 class="grid gap-xs"> <span class="flex items-center gap-s leading-none text-xl font-medium break-all"> <foxy-i18n options="${0}" infer="header" key="${0}"> </foxy-i18n> ${0} </span> ${0} </h2> ${0} </div> `),this.renderTemplateOrSlot("header:before"),JSON.stringify(this.headerTitleOptions),this.headerTitleKey,e?t(v||(v=K` ${0} ${0} `),this.hiddenSelector.matches("header:copy-id",!0)?"":t($||($=K` <foxy-copy-to-clipboard infer="header copy-id" class="text-m" text="${0}"> </foxy-copy-to-clipboard> `),this.headerCopyIdValue),this.hiddenSelector.matches("header:copy-json",!0)?"":t(k||(k=K` <foxy-copy-to-clipboard infer="header copy-json" class="text-m" icon="icons:code" text="${0}"> </foxy-copy-to-clipboard> `),JSON.stringify(e,null,2))):"",e?t(S||(S=K` <div class="flex flex-wrap items-center gap-s leading-xs"> ${0} <foxy-i18n infer="header" class="text-secondary" key="${0}" .options="${0}"> </foxy-i18n> </div> ${0} `),this.headerSubtitleBadges.map((e=>{var r;return t(_||(_=K` <span data-testclass="badge" class="${0}"> ${0} ${0} </span> `),d({"inline-flex gap-xs items-center rounded-s px-xs":!0,[null!==(r=e.class)&&void 0!==r?r:"bg-contrast-5"]:!0}),e.icon,"text"in e?e.text:t(j||(j=K`<foxy-i18n infer="header badges" key="${0}"></foxy-i18n>`),e.key))})),this.headerSubtitleKey,this.headerSubtitleOptions,r?t(E||(E=K`<div class="flex gap-x-m">${0}</div>`),r):""):"",this.renderTemplateOrSlot("header:after"))}renderBody(){return t(O||(O=K` <foxy-internal-timestamps-control infer="timestamps"></foxy-internal-timestamps-control> <div class="flex gap-m" ?hidden="${0}"> <foxy-internal-delete-control infer="delete"></foxy-internal-delete-control> <div class="w-full"></div> <foxy-internal-undo-control infer="undo"> </foxy-internal-undo-control> <foxy-internal-submit-control infer="submit"> </foxy-internal-submit-control> <foxy-internal-submit-control infer="create" theme="primary success"> </foxy-internal-submit-control> </div> `),["delete","undo","submit","create"].every((e=>this.hiddenSelector.matches(e,!0))))}render(){const e=!(this.in("idle")||this.in({busy:"fetching"})&&this.data);return t(T||(T=K` <div aria-busy="${0}" aria-live="polite" class="relative"> <div class="${0}"> ${0} ${0} ${0} </div> <div data-testid="spinner" class="${0}"> <foxy-spinner layout="${0}" state="${0}" infer="spinner"> </foxy-spinner> ${0} </div> </div> `),this.in("busy"),d({"space-y-m":!0,"transition-all filter":!0,"opacity-30 blur-sm pointer-events-none":e}),this.__generalErrors.map((e=>this.__renderGeneralError(e))),this.status?this.__renderStatus(this.status):"",this.renderBody(),d({"flex flex-col items-center justify-center gap-m":!0,"transition-opacity absolute inset-0":!0,"opacity-0 pointer-events-none":!e}),this.in("fail")?"vertical":"no-label",this.in("fail")?"error":"busy",this.href&&this.in("fail")?t(C||(C=K` <vaadin-button theme="small contrast" @click="${0}"> <foxy-i18n infer="spinner" key="refresh"></foxy-i18n> </vaadin-button> `),(()=>this.refresh())):"")}get __generalErrors(){const e=this.constructor.generalErrorPrefix;return this.errors.filter((t=>t.startsWith(e)))}__renderGeneralError(e){return t(w||(w=K` <foxy-i18n class="leading-xs text-body rounded bg-error-10 block" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" infer="error" key="${0}"> </foxy-i18n> `),e.replace("error:",""))}__renderStatus({key:e,options:r,type:i="success"}){if(!this.hiddenSelector.matches("status",!0))return t(B||(B=K` <p data-testid="status" class="leading-xs text-body rounded ${0} flex items-start gap-m" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <foxy-i18n class="flex-1" infer="status" key="${0}" .options="${0}"></foxy-i18n> <vaadin-button class="flex-shrink-0" theme="${0} tertiary-inline" @click="${0}"> <foxy-i18n class="flex-1" infer="status" key="close"></foxy-i18n> </vaadin-button> </p> `),"error"===i?"bg-error-10":"bg-success-10",e,r,i,(()=>this.status=null))}}I.generalErrorPrefix="error:",customElements.define("foxy-internal-form",I);export{I};
1
+ import"./shared-a8ae24f0.js";import"./shared-c066b7fd.js";import{a as e}from"./shared-45649d84.js";import{h as t}from"./shared-ba5c42c7.js";import{l as r,_ as i,B as s}from"./shared-8f9014ff.js";import"./shared-760a2243.js";import"./foxy-copy-to-clipboard.js";import"./foxy-spinner.js";import{g as n}from"./shared-bab2ea2c.js";import{C as a}from"./shared-336e73ce.js";import{T as o}from"./shared-5b8c7250.js";import{N as d}from"./shared-50ef1d5a.js";import{c as l}from"./shared-4e709717.js";let c,f=e=>e;customElements.define("foxy-internal-timestamps-control",class extends e{renderControl(){return t(c||(c=f` <p class="font-lumo text-s leading-s text-secondary"> <foxy-i18n infer="" key="date_created"></foxy-i18n> <foxy-i18n .options="${0}" infer="" key="date"> </foxy-i18n> <span>&bull;<span> <foxy-i18n infer="" key="date_modified"></foxy-i18n> <foxy-i18n .options="${0}" infer="" key="date"> </foxy-i18n> </span></span></p> `),{value:r(this,"nucleon.data.date_created")},{value:r(this,"nucleon.data.date_modified")})}});let h,u=e=>e;customElements.define("foxy-internal-submit-control",class extends e{constructor(){super(...arguments),this.theme="primary"}static get properties(){return i(i({},super.properties),{},{theme:{type:String}})}renderControl(){return t(h||(h=u` <vaadin-button theme="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="caption"></foxy-i18n> </vaadin-button> `),this.theme,this.disabled,(()=>{var e;return null===(e=this.nucleon)||void 0===e?void 0:e.submit()}))}});let p,y=e=>e;customElements.define("foxy-internal-delete-control",class extends e{constructor(){super(...arguments),this.theme="error"}static get properties(){return i(i({},super.properties),{},{theme:{type:String}})}renderControl(){return t(p||(p=y` <foxy-internal-confirm-dialog message="delete_prompt" confirm="delete" cancel="cancel" header="delete" theme="primary error" infer="" id="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> <vaadin-button data-testid="delete" theme="${0}" class="w-full" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="delete"></foxy-i18n> </vaadin-button> `),(e=>{var t;return!e.detail.cancelled&&(null===(t=this.nucleon)||void 0===t?void 0:t.delete())}),this.theme,this.disabled||this.readonly,(e=>{this.renderRoot.querySelector("#confirm").show(e.currentTarget)}))}});let m,x=e=>e;customElements.define("foxy-internal-undo-control",class extends e{constructor(){super(...arguments),this.theme="secondary"}static get properties(){return i(i({},super.properties),{},{theme:{type:String}})}renderControl(){return t(m||(m=x` <vaadin-button theme="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="caption"></foxy-i18n> </vaadin-button> `),this.theme,this.disabled,(()=>{var e;return null===(e=this.nucleon)||void 0===e?void 0:e.undo()}))}});let b,g,v,$,k,S,_,j,E,O,T,C,w,B,K=e=>e;const H=a(o(d));class I extends H{constructor(){super(...arguments),this.status=null}static get properties(){return i(i({},super.properties),{},{status:{type:Object}})}renderHeaderActions(e){return null}get headerTitleKey(){return"title"}get headerTitleOptions(){return i(i({},this.data),{},{context:this.data?"existing":"new",id:this.data?n(this.data._links.self.href):null})}get headerSubtitleKey(){return"subtitle"}get headerSubtitleOptions(){var e;return null!==(e=this.data)&&void 0!==e?e:{}}get headerSubtitleBadges(){return[]}get headerCopyIdValue(){var e;return this.data&&null!==(e=n(this.data._links.self.href))&&void 0!==e?e:""}get hiddenSelector(){const e=[super.hiddenSelector.toString()];return this.href&&e.unshift("create"),this.href||e.unshift("delete","timestamps","submit"),this.in({idle:{snapshot:"dirty"}})||e.unshift("undo","submit"),new s(e.join(" ").trim())}renderHeader(){if(this.hiddenSelector.matches("header",!0))return t(b||(b=K``));const e=this.data,r=e?this.renderHeaderActions(e):null;return t(g||(g=K` <div> ${0} <h2 class="grid gap-xs"> <span class="flex items-center gap-s leading-none text-xl font-medium break-all"> <foxy-i18n options="${0}" infer="header" key="${0}"> </foxy-i18n> ${0} </span> ${0} </h2> ${0} </div> `),this.renderTemplateOrSlot("header:before"),JSON.stringify(this.headerTitleOptions),this.headerTitleKey,e?t(v||(v=K` ${0} ${0} `),this.hiddenSelector.matches("header:copy-id",!0)?"":t($||($=K` <foxy-copy-to-clipboard infer="header copy-id" class="text-m" text="${0}"> </foxy-copy-to-clipboard> `),this.headerCopyIdValue),this.hiddenSelector.matches("header:copy-json",!0)?"":t(k||(k=K` <foxy-copy-to-clipboard infer="header copy-json" class="text-m" icon="icons:code" text="${0}"> </foxy-copy-to-clipboard> `),JSON.stringify(e,null,2))):"",e?t(S||(S=K` <div class="flex flex-wrap items-center gap-s leading-xs"> ${0} <foxy-i18n infer="header" class="text-secondary" key="${0}" .options="${0}"> </foxy-i18n> </div> ${0} `),this.headerSubtitleBadges.map((e=>{var r;return t(_||(_=K` <span data-testclass="badge" class="${0}"> ${0} ${0} </span> `),l({"inline-flex gap-xs items-center rounded-s px-xs":!0,[null!==(r=e.class)&&void 0!==r?r:"bg-contrast-5"]:!0}),e.icon,"text"in e?e.text:t(j||(j=K`<foxy-i18n infer="header badges" key="${0}"></foxy-i18n>`),e.key))})),this.headerSubtitleKey,this.headerSubtitleOptions,r?t(E||(E=K`<div class="flex gap-x-m">${0}</div>`),r):""):"",this.renderTemplateOrSlot("header:after"))}renderBody(){return t(O||(O=K` <foxy-internal-timestamps-control infer="timestamps"></foxy-internal-timestamps-control> <div class="flex gap-m" ?hidden="${0}"> <foxy-internal-delete-control infer="delete"></foxy-internal-delete-control> <div class="w-full"></div> <foxy-internal-undo-control infer="undo"> </foxy-internal-undo-control> <foxy-internal-submit-control infer="submit"> </foxy-internal-submit-control> <foxy-internal-submit-control infer="create" theme="primary success"> </foxy-internal-submit-control> </div> `),["delete","undo","submit","create"].every((e=>this.hiddenSelector.matches(e,!0))))}render(){const e=!(this.in("idle")||this.in({busy:"fetching"})&&this.data);return t(T||(T=K` <div aria-busy="${0}" aria-live="polite" class="relative"> <div class="${0}"> ${0} ${0} ${0} </div> <div data-testid="spinner" class="${0}"> <foxy-spinner layout="${0}" state="${0}" error-type="${0}" infer="spinner"> </foxy-spinner> ${0} </div> </div> `),this.in("busy"),l({"space-y-m":!0,"transition-all filter":!0,"opacity-30 blur-sm pointer-events-none":e}),this.__generalErrors.map((e=>this.__renderGeneralError(e))),this.status?this.__renderStatus(this.status):"",this.renderBody(),l({"flex flex-col items-center justify-center gap-m":!0,"transition-opacity absolute inset-0":!0,"opacity-0 pointer-events-none":!e}),this.in("fail")?"vertical":"no-label",this.in("fail")?"error":"busy",this.accessDenied?"access-denied":"generic",this.href&&this.in("fail")?t(C||(C=K` <vaadin-button theme="small contrast" @click="${0}"> <foxy-i18n infer="spinner" key="refresh"></foxy-i18n> </vaadin-button> `),(()=>this.refresh())):"")}get __generalErrors(){const e=this.constructor.generalErrorPrefix;return this.errors.filter((t=>t.startsWith(e)))}__renderGeneralError(e){const r="error:access_denied"===e;return t(w||(w=K` <foxy-i18n class="leading-xs text-body rounded bg-error-10 block" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" infer="${0}" key="${0}"> </foxy-i18n> `),r?"spinner":"error",r?"loading_access_denied":e.replace("error:",""))}__renderStatus({key:e,options:r,type:i="success"}){if(!this.hiddenSelector.matches("status",!0))return t(B||(B=K` <p data-testid="status" class="leading-xs text-body rounded ${0} flex items-start gap-m" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <foxy-i18n class="flex-1" infer="status" key="${0}" .options="${0}"></foxy-i18n> <vaadin-button class="flex-shrink-0" theme="${0} tertiary-inline" @click="${0}"> <foxy-i18n class="flex-1" infer="status" key="close"></foxy-i18n> </vaadin-button> </p> `),"error"===i?"bg-error-10":"bg-success-10",e,r,i,(()=>this.status=null))}}I.generalErrorPrefix="error:",customElements.define("foxy-internal-form",I);export{I};
@@ -1 +1 @@
1
- import{F as e,A as t,_ as n}from"./shared-8f9014ff.js";import{h as r,L as s}from"./shared-ba5c42c7.js";import{i,a}from"./shared-887ac0b0.js";import{I as o}from"./shared-930e68b7.js";const l={type:"backend",init:()=>{},read:(n,r,s)=>{const i=async e=>{const t=e.ok?null:new Error(await e.text()),n=!!e.ok&&await e.json();s(t,n)},a=e=>{const t=e instanceof Error?e:new Error(String(e));s(t,!1)},o=new e("fetch",{cancelable:!0,composed:!0,bubbles:!0,request:new t.WHATWGRequest(`foxy://i18n/${r}/${n}`),resolve:i,reject:a});dispatchEvent(o),o.defaultPrevented||fetch(o.request).then(i).catch(a)},create:()=>{throw new Error("foxy-i18n does not support resource creation")}};function c(e,t=!1){var n;const r=e.replace(/^\.?\d+/,""),s=e.substring(0,e.length-r.length);return{count:".5"===s?.5:parseInt(s),units:t&&null!==(n={y:"year",m:"month",w:"week",d:"day"}[r])&&void 0!==n?n:r}}const u={discount:({ns:e,type:t,details:n},r,s)=>{const i=t.endsWith("_percentage")?.01:1,a=n.split("|"),o=["allunits","incremental","repeat","single"].includes(a[0])?a.shift():"single",l=e.split(" "),c=l.shift(),u=[...l,`${o}_${t}_discount_summary`].join(".");return a.map((e=>{var t,n;const r=null!==(n=null===(t=/[-+]/.exec(e))||void 0===t?void 0:t.index)&&void 0!==n?n:-1,s=parseFloat(e.substring(r))*i,a=parseFloat(e.substring(0,r));return`$t(${u}, ${JSON.stringify({maximumFractionDigits:10,adjustment:s,from:a,ns:c})})`})).join("; ")},relative:(e,t,n)=>{const r=new Intl.RelativeTimeFormat(n);let{count:s,units:i}=c(e,!0);return.5===s&&"month"===i&&(s=2,i="week"),r.format(s,i)},percent:(e,t,r,s)=>{let i=null;try{"number"==typeof e&&(i=e.toLocaleString(r,n(n({maximumFractionDigits:4},s),{},{style:"percent"})))}catch(e){console.warn(`i18next formatter error: ${e.message}`)}return i||String(e)},ordinal:(e,t,n,r)=>{var s,i;const a=new Intl.PluralRules(n,{type:"ordinal"}),o=null!==(i=null===(s=null==r?void 0:r.ns)||void 0===s?void 0:s.split(" "))&&void 0!==i?i:[];null==o||o.shift();return`${e}$t(${[...o,`ordinal_${a.select(e)}`].join(".")})`},price:(e,t,n,r)=>{var s;try{const[t,i]=e.split(" ");return parseFloat(t).toLocaleString(n,{maximumFractionDigits:2,minimumFractionDigits:2,currencyDisplay:null!==(s=null==r?void 0:r.currencyDisplay)&&void 0!==s?s:"symbol",signDisplay:null==r?void 0:r.signDisplay,style:"currency",currency:i})}catch(t){return e}},date:(e,t,n,r)=>{var s,i,a;if(!e)return"$t(unknown)";const o=new Date(e),l=null!==(s=null==r?void 0:r.month)&&void 0!==s?s:"long",c=null!==(i=null==r?void 0:r.year)&&void 0!==i?i:"numeric",u=null!==(a=null==r?void 0:r.day)&&void 0!==a?a:"numeric";return o.toLocaleDateString(n,{month:l,year:c,day:u})},time:(e,t,n)=>new Date(e).toLocaleTimeString(n,{hour:"numeric",minute:"numeric"})};let d,p=e=>e;class m extends(a(o(s),"")){constructor(){super(...arguments),this.options={},this.key=""}static onTranslationChange(e){const t=["initialized","loaded"],n=["removed","added"];return t.forEach((t=>m.i18next.on(t,e))),n.forEach((t=>m.i18next.store.on(t,e))),()=>{t.forEach((t=>m.i18next.off(t,e))),n.forEach((t=>m.i18next.store.off(t,e)))}}static onResourceFetch(t){const n=n=>{if(n instanceof e&&n.request.url.startsWith("foxy://i18n/")){const[e,r]=n.request.url.split("/").reverse();n.respondWith(t(r,e))}};return addEventListener("fetch",n),()=>removeEventListener("fetch",n)}static setGateways({values:e}){for(const t in e)this.i18next.addResource("en","gateways",`gateways.${t}`,e[t].name)}static get properties(){return n(n({},super.properties),{},{options:{type:Object},key:{type:String}})}connectedCallback(){super.connectedCallback(),this.__unsubscribe=m.onTranslationChange((()=>this.requestUpdate()))}render(){return r(d||(d=p`<span>${0}</span>`),this.t(this.key,n(n({},this.options),{},{lng:this.lang})))}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__unsubscribe)||void 0===e||e.call(this)}}m.FetchEvent=e,m.i18next=i.createInstance().use(l),m.i18next.init({interpolation:{format:(e,t="",n="en",r={})=>t.split(" ").filter((e=>!!e.trim())).reduce(((e,t)=>{var s,i;return null!==(i=null===(s=u[t])||void 0===s?void 0:s.call(u,e,t,n,r))&&void 0!==i?i:e}),e),escapeValue:!1},fallbackLng:"en",fallbackNS:"shared",defaultNS:"shared",ns:["shared"]}),customElements.define("foxy-i18n",m);export{m as I,c as p};
1
+ import{F as e,A as t,_ as n}from"./shared-8f9014ff.js";import{h as r,L as s}from"./shared-ba5c42c7.js";import{i,a}from"./shared-5b8c7250.js";import{I as o}from"./shared-930e68b7.js";const l={type:"backend",init:()=>{},read:(n,r,s)=>{const i=async e=>{const t=e.ok?null:new Error(await e.text()),n=!!e.ok&&await e.json();s(t,n)},a=e=>{const t=e instanceof Error?e:new Error(String(e));s(t,!1)},o=new e("fetch",{cancelable:!0,composed:!0,bubbles:!0,request:new t.WHATWGRequest(`foxy://i18n/${r}/${n}`),resolve:i,reject:a});dispatchEvent(o),o.defaultPrevented||fetch(o.request).then(i).catch(a)},create:()=>{throw new Error("foxy-i18n does not support resource creation")}};function c(e,t=!1){var n;const r=e.replace(/^\.?\d+/,""),s=e.substring(0,e.length-r.length);return{count:".5"===s?.5:parseInt(s),units:t&&null!==(n={y:"year",m:"month",w:"week",d:"day"}[r])&&void 0!==n?n:r}}const u={discount:({ns:e,type:t,details:n},r,s)=>{const i=t.endsWith("_percentage")?.01:1,a=n.split("|"),o=["allunits","incremental","repeat","single"].includes(a[0])?a.shift():"single",l=e.split(" "),c=l.shift(),u=[...l,`${o}_${t}_discount_summary`].join(".");return a.map((e=>{var t,n;const r=null!==(n=null===(t=/[-+]/.exec(e))||void 0===t?void 0:t.index)&&void 0!==n?n:-1,s=parseFloat(e.substring(r))*i,a=parseFloat(e.substring(0,r));return`$t(${u}, ${JSON.stringify({maximumFractionDigits:10,adjustment:s,from:a,ns:c})})`})).join("; ")},relative:(e,t,n)=>{const r=new Intl.RelativeTimeFormat(n);let{count:s,units:i}=c(e,!0);return.5===s&&"month"===i&&(s=2,i="week"),r.format(s,i)},percent:(e,t,r,s)=>{let i=null;try{"number"==typeof e&&(i=e.toLocaleString(r,n(n({maximumFractionDigits:4},s),{},{style:"percent"})))}catch(e){console.warn(`i18next formatter error: ${e.message}`)}return i||String(e)},ordinal:(e,t,n,r)=>{var s,i;const a=new Intl.PluralRules(n,{type:"ordinal"}),o=null!==(i=null===(s=null==r?void 0:r.ns)||void 0===s?void 0:s.split(" "))&&void 0!==i?i:[];null==o||o.shift();return`${e}$t(${[...o,`ordinal_${a.select(e)}`].join(".")})`},price:(e,t,n,r)=>{var s;try{const[t,i]=e.split(" ");return parseFloat(t).toLocaleString(n,{maximumFractionDigits:2,minimumFractionDigits:2,currencyDisplay:null!==(s=null==r?void 0:r.currencyDisplay)&&void 0!==s?s:"symbol",signDisplay:null==r?void 0:r.signDisplay,style:"currency",currency:i})}catch(t){return e}},date:(e,t,n,r)=>{var s,i,a;if(!e)return"$t(unknown)";const o=new Date(e),l=null!==(s=null==r?void 0:r.month)&&void 0!==s?s:"long",c=null!==(i=null==r?void 0:r.year)&&void 0!==i?i:"numeric",u=null!==(a=null==r?void 0:r.day)&&void 0!==a?a:"numeric";return o.toLocaleDateString(n,{month:l,year:c,day:u})},time:(e,t,n)=>new Date(e).toLocaleTimeString(n,{hour:"numeric",minute:"numeric"})};let d,p=e=>e;class m extends(a(o(s),"")){constructor(){super(...arguments),this.options={},this.key=""}static onTranslationChange(e){const t=["initialized","loaded"],n=["removed","added"];return t.forEach((t=>m.i18next.on(t,e))),n.forEach((t=>m.i18next.store.on(t,e))),()=>{t.forEach((t=>m.i18next.off(t,e))),n.forEach((t=>m.i18next.store.off(t,e)))}}static onResourceFetch(t){const n=n=>{if(n instanceof e&&n.request.url.startsWith("foxy://i18n/")){const[e,r]=n.request.url.split("/").reverse();n.respondWith(t(r,e))}};return addEventListener("fetch",n),()=>removeEventListener("fetch",n)}static setGateways({values:e}){for(const t in e)this.i18next.addResource("en","gateways",`gateways.${t}`,e[t].name)}static get properties(){return n(n({},super.properties),{},{options:{type:Object},key:{type:String}})}connectedCallback(){super.connectedCallback(),this.__unsubscribe=m.onTranslationChange((()=>this.requestUpdate()))}render(){return r(d||(d=p`<span>${0}</span>`),this.t(this.key,n(n({},this.options),{},{lng:this.lang})))}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__unsubscribe)||void 0===e||e.call(this)}}m.FetchEvent=e,m.i18next=i.createInstance().use(l),m.i18next.init({interpolation:{format:(e,t="",n="en",r={})=>t.split(" ").filter((e=>!!e.trim())).reduce(((e,t)=>{var s,i;return null!==(i=null===(s=u[t])||void 0===s?void 0:s.call(u,e,t,n,r))&&void 0!==i?i:e}),e),escapeValue:!1},fallbackLng:"en",fallbackNS:"shared",defaultNS:"shared",ns:["shared"]}),customElements.define("foxy-i18n",m);export{m as I,c as p};
@@ -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-0fd68dc0.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-887ac0b0.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-f410644a.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-5b8c7250.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1 +1 @@
1
- import"./shared-99c53365.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);
1
+ import"./shared-dc6e5879.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);
@@ -1,4 +1,4 @@
1
- import{P as e,B as t,d as i}from"./shared-6cdfb858.js";import{h as n}from"./shared-0fd68dc0.js";
1
+ import{P as e,B as t,d as i}from"./shared-c3d6bcc0.js";import{h as n}from"./shared-f410644a.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2015 The Polymer Project Authors. All rights reserved.