@foxy.io/elements 1.46.0 → 1.47.0-beta.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 (164) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +1 -1
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-admin-subscription-form.js +1 -1
  6. package/dist/cdn/foxy-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 +1 -1
  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-coupon-card.js +1 -1
  22. package/dist/cdn/foxy-coupon-code-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  24. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  25. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  26. package/dist/cdn/foxy-coupon-form.js +1 -1
  27. package/dist/cdn/foxy-custom-field-card.js +1 -1
  28. package/dist/cdn/foxy-custom-field-form.js +1 -1
  29. package/dist/cdn/foxy-customer-card.js +1 -1
  30. package/dist/cdn/foxy-customer-form.js +1 -1
  31. package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
  32. package/dist/cdn/foxy-customer-portal.js +1 -1
  33. package/dist/cdn/foxy-customer.js +1 -1
  34. package/dist/cdn/foxy-customers-table.js +1 -1
  35. package/dist/cdn/foxy-discount-card.js +1 -1
  36. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  37. package/dist/cdn/foxy-downloadable-card.js +1 -1
  38. package/dist/cdn/foxy-downloadable-form.js +1 -1
  39. package/dist/cdn/foxy-email-template-card.js +1 -1
  40. package/dist/cdn/foxy-email-template-form.js +1 -1
  41. package/dist/cdn/foxy-error-entry-card.js +1 -1
  42. package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
  43. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  44. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  45. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  46. package/dist/cdn/foxy-gift-card-card.js +1 -1
  47. package/dist/cdn/foxy-gift-card-code-card.js +1 -1
  48. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  49. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  50. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  51. package/dist/cdn/foxy-gift-card-form.js +1 -1
  52. package/dist/cdn/foxy-i18n-editor.js +1 -1
  53. package/dist/cdn/foxy-integration-card.js +1 -1
  54. package/dist/cdn/foxy-integration-form.js +1 -1
  55. package/dist/cdn/foxy-item-card.js +1 -1
  56. package/dist/cdn/foxy-item-category-card.js +1 -1
  57. package/dist/cdn/foxy-item-category-form.js +1 -1
  58. package/dist/cdn/foxy-item-form.js +1 -1
  59. package/dist/cdn/foxy-item-option-card.js +1 -1
  60. package/dist/cdn/foxy-item-option-form.js +1 -1
  61. package/dist/cdn/foxy-native-integration-card.js +1 -1
  62. package/dist/cdn/foxy-native-integration-form.js +1 -1
  63. package/dist/cdn/foxy-nucleon-element.js +1 -1
  64. package/dist/cdn/foxy-pagination.js +1 -1
  65. package/dist/cdn/foxy-passkey-card.js +1 -1
  66. package/dist/cdn/foxy-passkey-form.js +1 -1
  67. package/dist/cdn/foxy-payment-card.js +1 -1
  68. package/dist/cdn/foxy-payment-method-card.js +1 -1
  69. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  70. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  71. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  72. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  73. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  74. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  75. package/dist/cdn/foxy-query-builder.js +1 -1
  76. package/dist/cdn/foxy-report-form.js +1 -1
  77. package/dist/cdn/foxy-reports-table.js +1 -1
  78. package/dist/cdn/foxy-shipment-card.js +1 -1
  79. package/dist/cdn/foxy-shipping-container-card.js +1 -1
  80. package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
  81. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  82. package/dist/cdn/foxy-shipping-service-card.js +1 -1
  83. package/dist/cdn/foxy-sign-in-form.js +1 -1
  84. package/dist/cdn/foxy-store-card.js +1 -1
  85. package/dist/cdn/foxy-store-form.js +1 -1
  86. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  87. package/dist/cdn/foxy-store-transaction-folder-card.js +1 -1
  88. package/dist/cdn/foxy-store-transaction-folder-form.js +1 -1
  89. package/dist/cdn/foxy-subscription-card.js +1 -1
  90. package/dist/cdn/foxy-subscription-form.js +1 -1
  91. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  92. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  93. package/dist/cdn/foxy-table.js +1 -1
  94. package/dist/cdn/foxy-tax-card.js +1 -1
  95. package/dist/cdn/foxy-tax-form.js +1 -1
  96. package/dist/cdn/foxy-template-config-form.js +1 -1
  97. package/dist/cdn/foxy-template-form.js +1 -1
  98. package/dist/cdn/foxy-template-set-card.js +1 -1
  99. package/dist/cdn/foxy-template-set-form.js +1 -1
  100. package/dist/cdn/foxy-transaction-card.js +1 -1
  101. package/dist/cdn/foxy-transaction.js +1 -1
  102. package/dist/cdn/foxy-transactions-table.js +1 -1
  103. package/dist/cdn/foxy-update-payment-method-form.js +1 -1
  104. package/dist/cdn/foxy-user-card.js +1 -1
  105. package/dist/cdn/foxy-user-form.js +1 -1
  106. package/dist/cdn/foxy-user-invitation-card.js +1 -1
  107. package/dist/cdn/foxy-user-invitation-form.js +1 -1
  108. package/dist/cdn/foxy-users-table.js +1 -1
  109. package/dist/cdn/foxy-webhook-card.js +1 -1
  110. package/dist/cdn/foxy-webhook-form.js +1 -1
  111. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  112. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  113. package/dist/cdn/{shared-4498a367.js → shared-01ce5dcd.js} +1 -1
  114. package/dist/cdn/{shared-84e97597.js → shared-19dbc85c.js} +1 -1
  115. package/dist/cdn/{shared-a449033a.js → shared-1bbac55e.js} +1 -1
  116. package/dist/cdn/{shared-16776ac6.js → shared-29a04835.js} +1 -1
  117. package/dist/cdn/{shared-57e94234.js → shared-407080a4.js} +1 -1
  118. package/dist/cdn/{shared-8df4ab18.js → shared-52367e6b.js} +1 -1
  119. package/dist/cdn/{shared-6740e365.js → shared-542c8ef1.js} +1 -1
  120. package/dist/cdn/{shared-5c8931a0.js → shared-56226850.js} +1 -1
  121. package/dist/cdn/{shared-0e5484c2.js → shared-5b0c7c73.js} +1 -1
  122. package/dist/cdn/{shared-4158f91e.js → shared-5b8b7c5f.js} +1 -1
  123. package/dist/cdn/{shared-4eb52fc7.js → shared-65112811.js} +1 -1
  124. package/dist/cdn/{shared-15a75e70.js → shared-69d417c2.js} +1 -1
  125. package/dist/cdn/{shared-742640c2.js → shared-6e92b5fc.js} +1 -1
  126. package/dist/cdn/{shared-e41960a0.js → shared-7329b19c.js} +1 -1
  127. package/dist/cdn/{shared-97fac71c.js → shared-783f37d3.js} +1 -1
  128. package/dist/cdn/shared-8464351f.js +1 -0
  129. package/dist/cdn/{shared-730acf1d.js → shared-a7150987.js} +1 -1
  130. package/dist/cdn/{shared-28ceb7f7.js → shared-adbdfff2.js} +1 -1
  131. package/dist/cdn/{shared-a08e5a5f.js → shared-af6e4823.js} +1 -1
  132. package/dist/cdn/{shared-6f90d987.js → shared-b06c67fa.js} +1 -1
  133. package/dist/cdn/{shared-fc155659.js → shared-c9061102.js} +1 -1
  134. package/dist/cdn/{shared-59128d82.js → shared-d640517d.js} +1 -1
  135. package/dist/cdn/{shared-64231b81.js → shared-dedec962.js} +1 -1
  136. package/dist/cdn/{shared-d46230dc.js → shared-e039657e.js} +1 -1
  137. package/dist/cdn/{shared-2df3c589.js → shared-eba46861.js} +1 -1
  138. package/dist/cdn/{shared-0b8768db.js → shared-ecbd0750.js} +1 -1
  139. package/dist/cdn/{shared-9b138652.js → shared-fd8b44e3.js} +1 -1
  140. package/dist/cdn/translations/admin-subscription-form/en.json +10 -15
  141. package/dist/cdn/translations/email-template-form/en.json +6 -0
  142. package/dist/cdn/translations/store-form/en.json +1 -0
  143. package/dist/cdn/translations/template-form/en.json +3 -0
  144. package/dist/cdn/translations/transaction/en.json +10 -15
  145. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.d.ts +0 -1
  146. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js +24 -13
  147. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js.map +1 -1
  148. package/dist/elements/public/EmailTemplateForm/index.d.ts +1 -0
  149. package/dist/elements/public/EmailTemplateForm/index.js +1 -0
  150. package/dist/elements/public/EmailTemplateForm/index.js.map +1 -1
  151. package/dist/elements/public/NucleonElement/NucleonElement.js +11 -9
  152. package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
  153. package/dist/elements/public/StoreForm/StoreForm.js +10 -0
  154. package/dist/elements/public/StoreForm/StoreForm.js.map +1 -1
  155. package/dist/elements/public/TemplateForm/TemplateForm.d.ts +0 -1
  156. package/dist/elements/public/TemplateForm/TemplateForm.js +12 -8
  157. package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -1
  158. package/dist/elements/public/TemplateForm/index.d.ts +1 -0
  159. package/dist/elements/public/TemplateForm/index.js +1 -0
  160. package/dist/elements/public/TemplateForm/index.js.map +1 -1
  161. package/dist/elements/public/UserInvitationForm/UserInvitationForm.js +5 -4
  162. package/dist/elements/public/UserInvitationForm/UserInvitationForm.js.map +1 -1
  163. package/package.json +1 -1
  164. package/dist/cdn/shared-e2d5673b.js +0 -1
@@ -1,4 +1,4 @@
1
- import"./foxy-customer.js";import"./shared-360196ad.js";import"./shared-b2cbe727.js";import"./shared-d4b77609.js";import"./shared-4158f91e.js";import"./shared-5212ef4f.js";import{I as e}from"./shared-fc155659.js";import"./foxy-access-recovery-form.js";import"./foxy-payment-method-card.js";import{TransactionsTable as t}from"./foxy-transactions-table.js";import"./foxy-subscription-card.js";import"./foxy-subscription-form.js";import"./foxy-collection-pages.js";import"./foxy-collection-page.js";import{u as s}from"./shared-e41960a0.js";import"./foxy-sign-in-form.js";import"./foxy-form-dialog.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{_ as r,B as o,aI as i}from"./shared-8f9014ff.js";import{h as n,L as a,c as d}from"./shared-ba5c42c7.js";import{A as l}from"./shared-7f7d6ceb.js";import"./shared-11de7969.js";import{C as c}from"./shared-803be1e4.js";import{a as m,T as u}from"./shared-47f3f5f5.js";import{U as p}from"./shared-cd96ff03.js";import{i as h}from"./shared-53e42a77.js";import{c as f}from"./shared-4e709717.js";import{A as g}from"./shared-69c98b7b.js";import{C as y}from"./shared-41c9c53f.js";import{I as $}from"./shared-930e68b7.js";import"./shared-5a469962.js";import"./foxy-update-payment-method-form.js";import"./shared-6f90d987.js";import"./shared-4eb52fc7.js";import"./shared-6bf89411.js";import"./shared-eb49be2e.js";import"./shared-66278c21.js";import"./shared-9e0b104a.js";import"./shared-fb859ece.js";import"./shared-4194ffe7.js";import"./shared-27c16d99.js";import"./shared-32b2d003.js";import"./shared-0e25ac65.js";import"./shared-b3fe8c63.js";import"./shared-e55c8dc4.js";import"./shared-28ceb7f7.js";import"./shared-0b8768db.js";import"./shared-9b138652.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./foxy-swipe-actions.js";import"./foxy-pagination.js";import"./shared-742640c2.js";import"./shared-be2ce0e6.js";import"./shared-59128d82.js";import"./shared-1c985317.js";import"./shared-58add5b4.js";import"./foxy-copy-to-clipboard.js";import"./shared-34a87829.js";import"./shared-bf8d95b9.js";import"./foxy-nucleon-element.js";import"./shared-53e476fd.js";import"./shared-bab2ea2c.js";import"./foxy-template-set-card.js";import"./shared-730acf1d.js";import"./shared-6740e365.js";import"./foxy-payment-card-embed.js";import"./shared-18dc7a8a.js";import"./shared-5fd5805c.js";import"./foxy-attribute-card.js";import"./foxy-attribute-form.js";import"./shared-15a75e70.js";import"./shared-57e94234.js";import"./foxy-address-card.js";import"./foxy-address-form.js";import"./shared-d46230dc.js";import"./shared-5c8931a0.js";import"./shared-d0aed1c1.js";import"./foxy-table.js";import"./shared-4498a367.js";import"./shared-2111aa44.js";import"./shared-d9378323.js";import"./shared-0557539b.js";import"./shared-c5a44ef2.js";import"./shared-a6ddec3d.js";import"./shared-b01c3b62.js";import"./shared-14cc889b.js";import"./shared-a08e5a5f.js";import"./shared-8498f274.js";import"./shared-96e4f603.js";import"./shared-cf613436.js";import"./shared-845f968f.js";import"./shared-f0fa0a88.js";import"./shared-2061be9a.js";import"./foxy-transaction-card.js";import"./shared-e2d5673b.js";import"./foxy-customer-card.js";import"./foxy-item-card.js";import"./shared-c84333db.js";import"./shared-a6b2bd14.js";import"./shared-6f071960.js";import"./shared-b738ee96.js";import"./shared-0db4e843.js";
1
+ import"./foxy-customer.js";import"./shared-360196ad.js";import"./shared-b2cbe727.js";import"./shared-d4b77609.js";import"./shared-5b8b7c5f.js";import"./shared-5212ef4f.js";import{I as e}from"./shared-c9061102.js";import"./foxy-access-recovery-form.js";import"./foxy-payment-method-card.js";import{TransactionsTable as t}from"./foxy-transactions-table.js";import"./foxy-subscription-card.js";import"./foxy-subscription-form.js";import"./foxy-collection-pages.js";import"./foxy-collection-page.js";import{u as s}from"./shared-7329b19c.js";import"./foxy-sign-in-form.js";import"./foxy-form-dialog.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{_ as r,B as o,aI as i}from"./shared-8f9014ff.js";import{h as n,L as a,c as d}from"./shared-ba5c42c7.js";import{A as l}from"./shared-7f7d6ceb.js";import"./shared-11de7969.js";import{C as c}from"./shared-803be1e4.js";import{a as m,T as u}from"./shared-47f3f5f5.js";import{U as p}from"./shared-cd96ff03.js";import{i as h}from"./shared-53e42a77.js";import{c as f}from"./shared-4e709717.js";import{A as g}from"./shared-69c98b7b.js";import{C as y}from"./shared-41c9c53f.js";import{I as $}from"./shared-930e68b7.js";import"./shared-5a469962.js";import"./foxy-update-payment-method-form.js";import"./shared-b06c67fa.js";import"./shared-65112811.js";import"./shared-6bf89411.js";import"./shared-eb49be2e.js";import"./shared-66278c21.js";import"./shared-9e0b104a.js";import"./shared-fb859ece.js";import"./shared-4194ffe7.js";import"./shared-27c16d99.js";import"./shared-32b2d003.js";import"./shared-0e25ac65.js";import"./shared-b3fe8c63.js";import"./shared-e55c8dc4.js";import"./shared-adbdfff2.js";import"./shared-ecbd0750.js";import"./shared-fd8b44e3.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./foxy-swipe-actions.js";import"./foxy-pagination.js";import"./shared-6e92b5fc.js";import"./shared-be2ce0e6.js";import"./shared-d640517d.js";import"./shared-1c985317.js";import"./shared-58add5b4.js";import"./foxy-copy-to-clipboard.js";import"./shared-34a87829.js";import"./shared-bf8d95b9.js";import"./foxy-nucleon-element.js";import"./shared-53e476fd.js";import"./shared-bab2ea2c.js";import"./foxy-template-set-card.js";import"./shared-a7150987.js";import"./shared-542c8ef1.js";import"./foxy-payment-card-embed.js";import"./shared-18dc7a8a.js";import"./shared-5fd5805c.js";import"./foxy-attribute-card.js";import"./foxy-attribute-form.js";import"./shared-69d417c2.js";import"./shared-407080a4.js";import"./foxy-address-card.js";import"./foxy-address-form.js";import"./shared-e039657e.js";import"./shared-56226850.js";import"./shared-d0aed1c1.js";import"./foxy-table.js";import"./shared-01ce5dcd.js";import"./shared-2111aa44.js";import"./shared-d9378323.js";import"./shared-0557539b.js";import"./shared-c5a44ef2.js";import"./shared-a6ddec3d.js";import"./shared-b01c3b62.js";import"./shared-14cc889b.js";import"./shared-af6e4823.js";import"./shared-8498f274.js";import"./shared-96e4f603.js";import"./shared-cf613436.js";import"./shared-845f968f.js";import"./shared-f0fa0a88.js";import"./shared-2061be9a.js";import"./foxy-transaction-card.js";import"./shared-8464351f.js";import"./foxy-customer-card.js";import"./foxy-item-card.js";import"./shared-c84333db.js";import"./shared-a6b2bd14.js";import"./shared-6f071960.js";import"./shared-b738ee96.js";import"./shared-0db4e843.js";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -1,4 +1,4 @@
1
- import"./shared-d4b77609.js";import"./shared-b2cbe727.js";import{h as t}from"./shared-5a469962.js";import"./shared-360196ad.js";import"./shared-5212ef4f.js";import"./foxy-payment-method-card.js";import"./foxy-update-payment-method-form.js";import"./foxy-subscription-form.js";import"./foxy-form-dialog.js";import"./foxy-transactions-table.js";import"./foxy-collection-pages.js";import"./foxy-collection-page.js";import"./foxy-attribute-card.js";import"./foxy-attribute-form.js";import"./shared-e41960a0.js";import"./foxy-address-card.js";import"./foxy-address-form.js";import"./foxy-spinner.js";import"./foxy-table.js";import"./shared-3d353eb8.js";import{aI as e,_ as s}from"./shared-8f9014ff.js";import{L as r,h as a,c as o}from"./shared-ba5c42c7.js";import{C as i}from"./shared-41c9c53f.js";import"./shared-6bf89411.js";import"./shared-bf8d95b9.js";import{z as h,S as d,T as n,a as l}from"./shared-47f3f5f5.js";import{c as m}from"./shared-4e709717.js";import{S as c}from"./shared-2111aa44.js";import"./shared-58add5b4.js";import{G as v}from"./shared-14cc889b.js";import"./shared-0e25ac65.js";import"./shared-4194ffe7.js";import"./shared-e55c8dc4.js";import"./shared-18dc7a8a.js";import"./shared-27c16d99.js";import{N as p}from"./shared-9b138652.js";import{S as f}from"./shared-a08e5a5f.js";import{i as g}from"./shared-53e42a77.js";import"./shared-eb49be2e.js";import"./shared-66278c21.js";import"./shared-1c985317.js";import"./shared-cf613436.js";import"./foxy-nucleon-element.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-930e68b7.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-6f90d987.js";import"./shared-4eb52fc7.js";import"./shared-9e0b104a.js";import"./shared-fb859ece.js";import"./shared-32b2d003.js";import"./shared-b3fe8c63.js";import"./shared-28ceb7f7.js";import"./shared-0b8768db.js";import"./foxy-swipe-actions.js";import"./foxy-pagination.js";import"./shared-742640c2.js";import"./shared-be2ce0e6.js";import"./shared-59128d82.js";import"./shared-fc155659.js";import"./foxy-copy-to-clipboard.js";import"./shared-34a87829.js";import"./shared-bab2ea2c.js";import"./shared-53e476fd.js";import"./foxy-template-set-card.js";import"./shared-730acf1d.js";import"./shared-6740e365.js";import"./foxy-payment-card-embed.js";import"./shared-7f7d6ceb.js";import"./shared-11de7969.js";import"./shared-5fd5805c.js";import"./shared-845f968f.js";import"./shared-f0fa0a88.js";import"./shared-2061be9a.js";import"./foxy-transaction-card.js";import"./shared-e2d5673b.js";import"./foxy-customer-card.js";import"./foxy-item-card.js";import"./shared-8498f274.js";import"./shared-c84333db.js";import"./shared-96e4f603.js";import"./shared-4498a367.js";import"./shared-15a75e70.js";import"./shared-57e94234.js";import"./shared-a6b2bd14.js";import"./shared-4158f91e.js";import"./shared-6f071960.js";import"./shared-5c8931a0.js";import"./shared-d0aed1c1.js";import"./shared-b738ee96.js";import"./shared-d46230dc.js";import"./shared-d9378323.js";import"./shared-0557539b.js";import"./shared-c5a44ef2.js";import"./shared-a6ddec3d.js";import"./shared-b01c3b62.js";let z,u,b,$=t=>t;class H extends r{constructor(){super(...arguments),this.value=0,this.size=0}static get properties(){return{value:{type:Number},size:{type:Number}}}static get styles(){return h.styles}render(){const t=[],e=[];for(let s=0;s<this.size;++s)t.push(a(z||(z=$` <button id="tab-${0}" role="tab" class="${0}" aria-controls="panel-${0}" aria-selected="${0}" @click="${0}" @keydown="${0}"> <slot name="tab-${0}"></slot> </button> `),s,m({"text-l font-medium px-s rounded focus-outline-none focus-shadow-outline":!0,"text-tertiary hover-text-body focus-text-body":this.value!==s}),s,this.value===s,(()=>this.value=s),this.__handleKeyDown,s)),e.push(a(u||(u=$` <slot id="panel-${0}" role="tabpanel" name="panel-${0}" class="${0}" aria-hidden="${0}" aria-labelledby="tab-${0}"> </slot> `),s,s,m({hidden:this.value!==s}),this.value!==s,s));return a(b||(b=$` <div role="tablist" aria-orientation="horizontal" class="-mx-s mb-s">${0}</div> ${0} `),t,e)}__handleKeyDown(t){if(t.key.startsWith("Arrow")){t.preventDefault();const e=t.target;let s=null;"ArrowRight"===t.key||"ArrowDown"===t.key?s=e.nextElementSibling:"ArrowLeft"!==t.key&&"ArrowUp"!==t.key||(s=e.previousElementSibling),null==s||s.click(),null==s||s.focus()}}}
1
+ import"./shared-d4b77609.js";import"./shared-b2cbe727.js";import{h as t}from"./shared-5a469962.js";import"./shared-360196ad.js";import"./shared-5212ef4f.js";import"./foxy-payment-method-card.js";import"./foxy-update-payment-method-form.js";import"./foxy-subscription-form.js";import"./foxy-form-dialog.js";import"./foxy-transactions-table.js";import"./foxy-collection-pages.js";import"./foxy-collection-page.js";import"./foxy-attribute-card.js";import"./foxy-attribute-form.js";import"./shared-7329b19c.js";import"./foxy-address-card.js";import"./foxy-address-form.js";import"./foxy-spinner.js";import"./foxy-table.js";import"./shared-3d353eb8.js";import{aI as e,_ as s}from"./shared-8f9014ff.js";import{L as r,h as a,c as o}from"./shared-ba5c42c7.js";import{C as i}from"./shared-41c9c53f.js";import"./shared-6bf89411.js";import"./shared-bf8d95b9.js";import{z as h,S as d,T as n,a as l}from"./shared-47f3f5f5.js";import{c as m}from"./shared-4e709717.js";import{S as c}from"./shared-2111aa44.js";import"./shared-58add5b4.js";import{G as v}from"./shared-14cc889b.js";import"./shared-0e25ac65.js";import"./shared-4194ffe7.js";import"./shared-e55c8dc4.js";import"./shared-18dc7a8a.js";import"./shared-27c16d99.js";import{N as p}from"./shared-fd8b44e3.js";import{S as f}from"./shared-af6e4823.js";import{i as g}from"./shared-53e42a77.js";import"./shared-eb49be2e.js";import"./shared-66278c21.js";import"./shared-1c985317.js";import"./shared-cf613436.js";import"./foxy-nucleon-element.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-930e68b7.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-b06c67fa.js";import"./shared-65112811.js";import"./shared-9e0b104a.js";import"./shared-fb859ece.js";import"./shared-32b2d003.js";import"./shared-b3fe8c63.js";import"./shared-adbdfff2.js";import"./shared-ecbd0750.js";import"./foxy-swipe-actions.js";import"./foxy-pagination.js";import"./shared-6e92b5fc.js";import"./shared-be2ce0e6.js";import"./shared-d640517d.js";import"./shared-c9061102.js";import"./foxy-copy-to-clipboard.js";import"./shared-34a87829.js";import"./shared-bab2ea2c.js";import"./shared-53e476fd.js";import"./foxy-template-set-card.js";import"./shared-a7150987.js";import"./shared-542c8ef1.js";import"./foxy-payment-card-embed.js";import"./shared-7f7d6ceb.js";import"./shared-11de7969.js";import"./shared-5fd5805c.js";import"./shared-845f968f.js";import"./shared-f0fa0a88.js";import"./shared-2061be9a.js";import"./foxy-transaction-card.js";import"./shared-8464351f.js";import"./foxy-customer-card.js";import"./foxy-item-card.js";import"./shared-8498f274.js";import"./shared-c84333db.js";import"./shared-96e4f603.js";import"./shared-01ce5dcd.js";import"./shared-69d417c2.js";import"./shared-407080a4.js";import"./shared-a6b2bd14.js";import"./shared-5b8b7c5f.js";import"./shared-6f071960.js";import"./shared-56226850.js";import"./shared-d0aed1c1.js";import"./shared-b738ee96.js";import"./shared-e039657e.js";import"./shared-d9378323.js";import"./shared-0557539b.js";import"./shared-c5a44ef2.js";import"./shared-a6ddec3d.js";import"./shared-b01c3b62.js";let z,u,b,$=t=>t;class H extends r{constructor(){super(...arguments),this.value=0,this.size=0}static get properties(){return{value:{type:Number},size:{type:Number}}}static get styles(){return h.styles}render(){const t=[],e=[];for(let s=0;s<this.size;++s)t.push(a(z||(z=$` <button id="tab-${0}" role="tab" class="${0}" aria-controls="panel-${0}" aria-selected="${0}" @click="${0}" @keydown="${0}"> <slot name="tab-${0}"></slot> </button> `),s,m({"text-l font-medium px-s rounded focus-outline-none focus-shadow-outline":!0,"text-tertiary hover-text-body focus-text-body":this.value!==s}),s,this.value===s,(()=>this.value=s),this.__handleKeyDown,s)),e.push(a(u||(u=$` <slot id="panel-${0}" role="tabpanel" name="panel-${0}" class="${0}" aria-hidden="${0}" aria-labelledby="tab-${0}"> </slot> `),s,s,m({hidden:this.value!==s}),this.value!==s,s));return a(b||(b=$` <div role="tablist" aria-orientation="horizontal" class="-mx-s mb-s">${0}</div> ${0} `),t,e)}__handleKeyDown(t){if(t.key.startsWith("Arrow")){t.preventDefault();const e=t.target;let s=null;"ArrowRight"===t.key||"ArrowDown"===t.key?s=e.nextElementSibling:"ArrowLeft"!==t.key&&"ArrowUp"!==t.key||(s=e.previousElementSibling),null==s||s.click(),null==s||s.focus()}}}
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
@@ -1 +1 @@
1
- import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{T as s}from"./shared-4498a367.js";import{a}from"./shared-47f3f5f5.js";import{h as e}from"./shared-ba5c42c7.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./foxy-nucleon-element.js";import"./shared-9b138652.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let t,r,o,n,m=s=>s;class d extends(a(s,"customers-table")){constructor(){super(...arguments),this.columns=[d.nameColumn,d.idColumn,d.dateColumn,d.emailColumn]}}d.nameColumn={cell:s=>e(t||(t=m` <span data-testclass="names">${0} ${0}</span> `),s.data.first_name,s.data.last_name)},d.idColumn={hideBelow:"md",cell:s=>e(r||(r=m` <span role="presentation" class="text-m text-tertiary">ID&nbsp;</span> <span data-testclass="ids" class="text-m text-secondary font-tnum">${0}</span> `),s.data.id)},d.dateColumn={hideBelow:"md",cell:s=>e(o||(o=m` <span class="text-m text-secondary font-tnum"> <foxy-i18n data-testclass="i18n" lang="${0}" key="date_created" ns="${0}"> </foxy-i18n> <foxy-i18n data-testclass="dates i18n" lang="${0}" key="date" ns="${0}" .options="${0}"> </foxy-i18n> </span> `),s.lang,s.ns,s.lang,s.ns,{value:s.data.date_created})},d.emailColumn={cell:s=>e(n||(n=m`<span data-testclass="emails" class="text-m text-secondary">${0}</span>`),s.data.email)},d.__ns="customers-table",customElements.define("foxy-customers-table",d);export{d as CustomersTable};
1
+ import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{T as s}from"./shared-01ce5dcd.js";import{a as e}from"./shared-47f3f5f5.js";import{h as a}from"./shared-ba5c42c7.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./foxy-nucleon-element.js";import"./shared-fd8b44e3.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let t,r,o,d,n=s=>s;class m extends(e(s,"customers-table")){constructor(){super(...arguments),this.columns=[m.nameColumn,m.idColumn,m.dateColumn,m.emailColumn]}}m.nameColumn={cell:s=>a(t||(t=n` <span data-testclass="names">${0} ${0}</span> `),s.data.first_name,s.data.last_name)},m.idColumn={hideBelow:"md",cell:s=>a(r||(r=n` <span role="presentation" class="text-m text-tertiary">ID&nbsp;</span> <span data-testclass="ids" class="text-m text-secondary font-tnum">${0}</span> `),s.data.id)},m.dateColumn={hideBelow:"md",cell:s=>a(o||(o=n` <span class="text-m text-secondary font-tnum"> <foxy-i18n data-testclass="i18n" lang="${0}" key="date_created" ns="${0}"> </foxy-i18n> <foxy-i18n data-testclass="dates i18n" lang="${0}" key="date" ns="${0}" .options="${0}"> </foxy-i18n> </span> `),s.lang,s.ns,s.lang,s.ns,{value:s.data.date_created})},m.emailColumn={cell:s=>a(d||(d=n`<span data-testclass="emails" class="text-m text-secondary">${0}</span>`),s.data.email)},m.__ns="customers-table",customElements.define("foxy-customers-table",m);export{m as CustomersTable};
@@ -1 +1 @@
1
- import"./shared-5212ef4f.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{h as r}from"./shared-ba5c42c7.js";import{a as s}from"./shared-47f3f5f5.js";import{T as e}from"./shared-730acf1d.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./shared-6740e365.js";import"./shared-9b138652.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let t,a,i=r=>r;class o extends(s(e,"discount-card")){constructor(){super(...arguments),this.__currencyDisplay="",this.__currency=""}renderBody(){return super.renderBody({title:s=>r(t||(t=i`${0} &bull; ${0}`),s.name,s.code),subtitle:s=>r(a||(a=i` <foxy-i18n options="${0}" class="${0}" lang="${0}" key="price" ns="${0}"> </foxy-i18n> `),JSON.stringify({currencyDisplay:this.__currencyDisplay,amount:`${s.amount} ${this.__currency}`}),s.amount>=0?"text-success":"text-error",this.lang,this.ns)})}async _sendGet(){const r=await super._sendGet(),[s,e]=await Promise.all([super._fetch(r._links["fx:transaction"].href),super._fetch(r._links["fx:store"].href)]);return this.__currency=s.currency_code,this.__currencyDisplay=e.use_international_currency_symbol?"code":"symbol",r}}customElements.define("foxy-discount-card",o);export{o as DiscountCard};
1
+ import"./shared-5212ef4f.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{h as r}from"./shared-ba5c42c7.js";import{a as s}from"./shared-47f3f5f5.js";import{T as e}from"./shared-a7150987.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./shared-542c8ef1.js";import"./shared-fd8b44e3.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let t,a,i=r=>r;class o extends(s(e,"discount-card")){constructor(){super(...arguments),this.__currencyDisplay="",this.__currency=""}renderBody(){return super.renderBody({title:s=>r(t||(t=i`${0} &bull; ${0}`),s.name,s.code),subtitle:s=>r(a||(a=i` <foxy-i18n options="${0}" class="${0}" lang="${0}" key="price" ns="${0}"> </foxy-i18n> `),JSON.stringify({currencyDisplay:this.__currencyDisplay,amount:`${s.amount} ${this.__currency}`}),s.amount>=0?"text-success":"text-error",this.lang,this.ns)})}async _sendGet(){const r=await super._sendGet(),[s,e]=await Promise.all([super._fetch(r._links["fx:transaction"].href),super._fetch(r._links["fx:store"].href)]);return this.__currency=s.currency_code,this.__currencyDisplay=e.use_international_currency_symbol?"code":"symbol",r}}customElements.define("foxy-discount-card",o);export{o as DiscountCard};
@@ -1 +1 @@
1
- import"./shared-5212ef4f.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{h as r}from"./shared-ba5c42c7.js";import{a as s}from"./shared-47f3f5f5.js";import{T as e}from"./shared-730acf1d.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./shared-6740e365.js";import"./shared-9b138652.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let t,a,i=r=>r;const c=s(e,"discount-detail-card");class o extends c{constructor(){super(...arguments),this.__currencyDisplay="",this.__currency=""}renderBody(){return super.renderBody({title:s=>r(t||(t=i`${0}`),s.name),subtitle:s=>{let e;try{e=Math.abs(s.amount_per).toLocaleString(this.lang||"en",{maximumFractionDigits:2,minimumFractionDigits:2,currencyDisplay:this.__currencyDisplay,currency:this.__currency,style:"currency"})}catch(r){e="--"}return r(a||(a=i` <span class="${0}">${0}</span> `),s.amount_per>0?"text-success":"text-error",e)}})}async _sendGet(){const r=await super._sendGet(),[s,e]=await Promise.all([super._fetch(r._links["fx:transaction"].href),super._fetch(r._links["fx:store"].href)]);return this.__currency=s.currency_code,this.__currencyDisplay=e.use_international_currency_symbol?"code":"symbol",r}}customElements.define("foxy-discount-detail-card",o);export{o as DiscountDetailCard};
1
+ import"./shared-5212ef4f.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{h as r}from"./shared-ba5c42c7.js";import{a as s}from"./shared-47f3f5f5.js";import{T as e}from"./shared-a7150987.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./shared-542c8ef1.js";import"./shared-fd8b44e3.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let t,a,i=r=>r;const c=s(e,"discount-detail-card");class o extends c{constructor(){super(...arguments),this.__currencyDisplay="",this.__currency=""}renderBody(){return super.renderBody({title:s=>r(t||(t=i`${0}`),s.name),subtitle:s=>{let e;try{e=Math.abs(s.amount_per).toLocaleString(this.lang||"en",{maximumFractionDigits:2,minimumFractionDigits:2,currencyDisplay:this.__currencyDisplay,currency:this.__currency,style:"currency"})}catch(r){e="--"}return r(a||(a=i` <span class="${0}">${0}</span> `),s.amount_per>0?"text-success":"text-error",e)}})}async _sendGet(){const r=await super._sendGet(),[s,e]=await Promise.all([super._fetch(r._links["fx:transaction"].href),super._fetch(r._links["fx:store"].href)]);return this.__currency=s.currency_code,this.__currencyDisplay=e.use_international_currency_symbol?"code":"symbol",r}}customElements.define("foxy-discount-detail-card",o);export{o as DiscountDetailCard};
@@ -1 +1 @@
1
- import"./shared-5212ef4f.js";import"./shared-e2d5673b.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{a as e}from"./shared-47f3f5f5.js";import{T as s}from"./shared-730acf1d.js";import{h as t,s as r}from"./shared-ba5c42c7.js";import"./shared-6740e365.js";import"./shared-9b138652.js";import"./shared-8f9014ff.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-930e68b7.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";let a,i,o,n,d,l,c=e=>e;const m=e(s,"downloadable-card");class h extends m{renderBody(){const e=this.__extension;return t(a||(a=c` <div class="flex gap-s"> <div class="w-s h-s flex-shrink-0 rounded-s bg-contrast-5 flex" aria-hidden="true"> ${0} </div> <div class="flex-1 min-w-0"> ${0} </div> </div> `),e.length<5?this.__renderExtension(e):r(i||(i=c`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="m-auto" style="width: 64%; height: 64%"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></svg>`)),super.renderBody({title:e=>t(o||(o=c` <span class="inline-flex w-full items-center"> <span class="mr-auto truncate min-w-0">${0} &bull; ${0}</span> <span class="text-s text-tertiary font-normal flex-shrink-0"> ${0} ${0} </span> </span> `),e.name,e.code,r(n||(n=c`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="inline" style="width: 1.15em; height: 1.15em"><path d="M10.75 10.818v2.614A3.13 3.13 0 0011.888 13c.482-.315.612-.648.612-.875 0-.227-.13-.56-.612-.875a3.13 3.13 0 00-1.138-.432zM8.33 8.62c.053.055.115.11.184.164.208.16.46.284.736.363V6.603a2.45 2.45 0 00-.35.13c-.14.065-.27.143-.386.233-.377.292-.514.627-.514.909 0 .184.058.39.202.592.037.051.08.102.128.152z" /><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-6a.75.75 0 01.75.75v.316a3.78 3.78 0 011.653.713c.426.33.744.74.925 1.2a.75.75 0 01-1.395.55 1.35 1.35 0 00-.447-.563 2.187 2.187 0 00-.736-.363V9.3c.698.093 1.383.32 1.959.696.787.514 1.29 1.27 1.29 2.13 0 .86-.504 1.616-1.29 2.13-.576.377-1.261.603-1.96.696v.299a.75.75 0 11-1.5 0v-.3c-.697-.092-1.382-.318-1.958-.695-.482-.315-.857-.717-1.078-1.188a.75.75 0 111.359-.636c.08.173.245.376.54.569.313.205.706.353 1.138.432v-2.748a3.782 3.782 0 01-1.653-.713C6.9 9.433 6.5 8.681 6.5 7.875c0-.805.4-1.558 1.097-2.096a3.78 3.78 0 011.653-.713V4.75A.75.75 0 0110 4z" clip-rule="evenodd" /></svg>`)),this.__formattedPrice),subtitle:e=>t(d||(d=c`${0} (${0})`),e.file_name,this.__formattedFileSize)}))}get __formattedFileSize(){var e,s;const t=null!==(s=null===(e=this.data)||void 0===e?void 0:e.file_size)&&void 0!==s?s:0,r=1024,a=1048576,i=1024*a,o={maximumFractionDigits:2},n=this.lang||"en";try{return t/i>1?`${(t/i).toLocaleString(n,o)} GB`:t/a>1?`${(t/a).toLocaleString(n,o)} MB`:t/r>1?`${(t/r).toLocaleString(n,o)} KB`:`${t.toLocaleString(n,o)} B`}catch(e){return`${t} B`}}get __formattedPrice(){var e,s;const t=null!==(s=null===(e=this.data)||void 0===e?void 0:e.price)&&void 0!==s?s:0;try{return t.toLocaleString(this.lang||"en",{maximumFractionDigits:2,minimumFractionDigits:2})}catch(e){return String(t)}}get __extension(){var e,s;const t=null!==(s=null===(e=this.data)||void 0===e?void 0:e.file_name.split(".").filter((e=>!!e)))&&void 0!==s?s:[];return t.length<2?"?????":t.pop()}__renderExtension(e){const s=`font: 700 calc(var(--lumo-size-s) / ${Math.max(2,e.length)}) sans-serif`;return t(l||(l=c`<span style="${0}" class="m-auto font-medium uppercase">${0}</span>`),s,e)}}customElements.define("foxy-downloadable-card",h);export{h as DownloadableCard};
1
+ import"./shared-5212ef4f.js";import"./shared-8464351f.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{a as e}from"./shared-47f3f5f5.js";import{T as s}from"./shared-a7150987.js";import{h as t,s as r}from"./shared-ba5c42c7.js";import"./shared-542c8ef1.js";import"./shared-fd8b44e3.js";import"./shared-8f9014ff.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-930e68b7.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";let a,i,o,n,d,l,c=e=>e;const m=e(s,"downloadable-card");class h extends m{renderBody(){const e=this.__extension;return t(a||(a=c` <div class="flex gap-s"> <div class="w-s h-s flex-shrink-0 rounded-s bg-contrast-5 flex" aria-hidden="true"> ${0} </div> <div class="flex-1 min-w-0"> ${0} </div> </div> `),e.length<5?this.__renderExtension(e):r(i||(i=c`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="m-auto" style="width: 64%; height: 64%"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></svg>`)),super.renderBody({title:e=>t(o||(o=c` <span class="inline-flex w-full items-center"> <span class="mr-auto truncate min-w-0">${0} &bull; ${0}</span> <span class="text-s text-tertiary font-normal flex-shrink-0"> ${0} ${0} </span> </span> `),e.name,e.code,r(n||(n=c`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="inline" style="width: 1.15em; height: 1.15em"><path d="M10.75 10.818v2.614A3.13 3.13 0 0011.888 13c.482-.315.612-.648.612-.875 0-.227-.13-.56-.612-.875a3.13 3.13 0 00-1.138-.432zM8.33 8.62c.053.055.115.11.184.164.208.16.46.284.736.363V6.603a2.45 2.45 0 00-.35.13c-.14.065-.27.143-.386.233-.377.292-.514.627-.514.909 0 .184.058.39.202.592.037.051.08.102.128.152z" /><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-6a.75.75 0 01.75.75v.316a3.78 3.78 0 011.653.713c.426.33.744.74.925 1.2a.75.75 0 01-1.395.55 1.35 1.35 0 00-.447-.563 2.187 2.187 0 00-.736-.363V9.3c.698.093 1.383.32 1.959.696.787.514 1.29 1.27 1.29 2.13 0 .86-.504 1.616-1.29 2.13-.576.377-1.261.603-1.96.696v.299a.75.75 0 11-1.5 0v-.3c-.697-.092-1.382-.318-1.958-.695-.482-.315-.857-.717-1.078-1.188a.75.75 0 111.359-.636c.08.173.245.376.54.569.313.205.706.353 1.138.432v-2.748a3.782 3.782 0 01-1.653-.713C6.9 9.433 6.5 8.681 6.5 7.875c0-.805.4-1.558 1.097-2.096a3.78 3.78 0 011.653-.713V4.75A.75.75 0 0110 4z" clip-rule="evenodd" /></svg>`)),this.__formattedPrice),subtitle:e=>t(d||(d=c`${0} (${0})`),e.file_name,this.__formattedFileSize)}))}get __formattedFileSize(){var e,s;const t=null!==(s=null===(e=this.data)||void 0===e?void 0:e.file_size)&&void 0!==s?s:0,r=1024,a=1048576,i=1024*a,o={maximumFractionDigits:2},n=this.lang||"en";try{return t/i>1?`${(t/i).toLocaleString(n,o)} GB`:t/a>1?`${(t/a).toLocaleString(n,o)} MB`:t/r>1?`${(t/r).toLocaleString(n,o)} KB`:`${t.toLocaleString(n,o)} B`}catch(e){return`${t} B`}}get __formattedPrice(){var e,s;const t=null!==(s=null===(e=this.data)||void 0===e?void 0:e.price)&&void 0!==s?s:0;try{return t.toLocaleString(this.lang||"en",{maximumFractionDigits:2,minimumFractionDigits:2})}catch(e){return String(t)}}get __extension(){var e,s;const t=null!==(s=null===(e=this.data)||void 0===e?void 0:e.file_name.split(".").filter((e=>!!e)))&&void 0!==s?s:[];return t.length<2?"?????":t.pop()}__renderExtension(e){const s=`font: 700 calc(var(--lumo-size-s) / ${Math.max(2,e.length)}) sans-serif`;return t(l||(l=c`<span style="${0}" class="m-auto font-medium uppercase">${0}</span>`),s,e)}}customElements.define("foxy-downloadable-card",h);export{h as DownloadableCard};
@@ -1,4 +1,4 @@
1
- import{a as e,I as t}from"./shared-0b8768db.js";import"./shared-27c16d99.js";import"./shared-6bf89411.js";import"./shared-0e25ac65.js";import"./shared-360196ad.js";import{h as r,P as a,B as o}from"./shared-5a469962.js";import{E as i,T as s}from"./shared-66278c21.js";import"./shared-eb49be2e.js";import"./shared-3d353eb8.js";import{x as l,a as n}from"./shared-47f3f5f5.js";import{c as d,h as A}from"./shared-ba5c42c7.js";import{i as u}from"./shared-53e42a77.js";import{c as p}from"./shared-4e709717.js";import"./shared-fb859ece.js";import{_ as c,B as m}from"./shared-8f9014ff.js";import{A as h}from"./shared-69c98b7b.js";import"./shared-742640c2.js";import"./shared-5c8931a0.js";import{I as g}from"./shared-fc155659.js";import"./foxy-nucleon-element.js";import"./shared-5212ef4f.js";import"./shared-41c9c53f.js";import"./shared-930e68b7.js";import"./shared-9b138652.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4194ffe7.js";import"./shared-32b2d003.js";import"./shared-b3fe8c63.js";import"./shared-e55c8dc4.js";import"./shared-be2ce0e6.js";import"./shared-d0aed1c1.js";import"./shared-1c985317.js";import"./shared-58add5b4.js";import"./foxy-copy-to-clipboard.js";import"./shared-34a87829.js";import"./shared-d4b77609.js";import"./shared-bf8d95b9.js";import"./shared-b2cbe727.js";import"./foxy-spinner.js";import"./shared-bab2ea2c.js";const f=r`<dom-module id="lumo-progress-bar" theme-for="vaadin-progress-bar">
1
+ import{a as e,I as t}from"./shared-ecbd0750.js";import"./shared-27c16d99.js";import"./shared-6bf89411.js";import"./shared-0e25ac65.js";import"./shared-360196ad.js";import{h as r,P as a,B as o}from"./shared-5a469962.js";import{E as i,T as s}from"./shared-66278c21.js";import"./shared-eb49be2e.js";import"./shared-3d353eb8.js";import{x as l,a as n}from"./shared-47f3f5f5.js";import{c as d,h as A}from"./shared-ba5c42c7.js";import{i as u}from"./shared-53e42a77.js";import{c as p}from"./shared-4e709717.js";import"./shared-fb859ece.js";import{_ as c,B as m}from"./shared-8f9014ff.js";import{A as h}from"./shared-69c98b7b.js";import"./shared-6e92b5fc.js";import"./shared-56226850.js";import{I as g}from"./shared-c9061102.js";import"./foxy-nucleon-element.js";import"./shared-5212ef4f.js";import"./shared-41c9c53f.js";import"./shared-930e68b7.js";import"./shared-fd8b44e3.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4194ffe7.js";import"./shared-32b2d003.js";import"./shared-b3fe8c63.js";import"./shared-e55c8dc4.js";import"./shared-be2ce0e6.js";import"./shared-d0aed1c1.js";import"./shared-1c985317.js";import"./shared-58add5b4.js";import"./foxy-copy-to-clipboard.js";import"./shared-34a87829.js";import"./shared-d4b77609.js";import"./shared-bf8d95b9.js";import"./shared-b2cbe727.js";import"./foxy-spinner.js";import"./shared-bab2ea2c.js";const f=r`<dom-module id="lumo-progress-bar" theme-for="vaadin-progress-bar">
2
2
  <template>
3
3
  <style>
4
4
  :host {
@@ -1 +1 @@
1
- import"./shared-5212ef4f.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{a as e}from"./shared-47f3f5f5.js";import{T as t}from"./shared-730acf1d.js";import{h as r}from"./shared-ba5c42c7.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./shared-6740e365.js";import"./shared-9b138652.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let s,o,m=e=>e;const a=e(t,"email-template-card");class d extends a{renderBody(){return super.renderBody({title:e=>r(s||(s=m`${0}`),e.description),subtitle:e=>r(o||(o=m`<foxy-i18n infer="" key="${0}"></foxy-i18n>`),this.__getType(e))})}__getType(e){const{content_html_url:t,content_text_url:r}=e,{content_html:s,content_text:o}=e;return!o||r||s||t?!s||t||o||r?!t||r||s||o?!r||t||o||s?s||t||o||r?"type_mixed":"type_default":"type_custom_text_url":"type_custom_html_url":"type_custom_html":"type_custom_text"}}customElements.define("foxy-email-template-card",d);export{d as EmailTemplateCard};
1
+ import"./shared-5212ef4f.js";import"./foxy-spinner.js";import"./shared-3d353eb8.js";import{a as e}from"./shared-47f3f5f5.js";import{T as t}from"./shared-a7150987.js";import{h as r}from"./shared-ba5c42c7.js";import"./shared-d4b77609.js";import"./shared-eb49be2e.js";import"./shared-5a469962.js";import"./shared-b2cbe727.js";import"./shared-8f9014ff.js";import"./shared-930e68b7.js";import"./shared-41c9c53f.js";import"./shared-53e42a77.js";import"./shared-542c8ef1.js";import"./shared-fd8b44e3.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";import"./shared-4e709717.js";let s,o,m=e=>e;const a=e(t,"email-template-card");class d extends a{renderBody(){return super.renderBody({title:e=>r(s||(s=m`${0}`),e.description),subtitle:e=>r(o||(o=m`<foxy-i18n infer="" key="${0}"></foxy-i18n>`),this.__getType(e))})}__getType(e){const{content_html_url:t,content_text_url:r}=e,{content_html:s,content_text:o}=e;return!o||r||s||t?!s||t||o||r?!t||r||s||o?!r||t||o||s?s||t||o||r?"type_mixed":"type_default":"type_custom_text_url":"type_custom_html_url":"type_custom_html":"type_custom_text"}}customElements.define("foxy-email-template-card",d);export{d as EmailTemplateCard};
@@ -1 +1 @@
1
- import"./shared-28ceb7f7.js";import"./shared-57e94234.js";import"./shared-59128d82.js";import"./shared-64231b81.js";import"./shared-5c8931a0.js";import{I as t}from"./shared-fc155659.js";import"./shared-360196ad.js";import{a as e}from"./shared-0b8768db.js";import"./shared-3d353eb8.js";import{_ as r,B as s}from"./shared-8f9014ff.js";import{N as o}from"./shared-9b138652.js";import{h as a}from"./shared-ba5c42c7.js";import{a as n}from"./shared-47f3f5f5.js";import{i}from"./shared-53e42a77.js";import"./shared-5fd5805c.js";import"./shared-fb859ece.js";import"./shared-6bf89411.js";import"./shared-5a469962.js";import"./shared-4194ffe7.js";import"./shared-27c16d99.js";import"./shared-66278c21.js";import"./shared-32b2d003.js";import"./shared-eb49be2e.js";import"./shared-0e25ac65.js";import"./shared-b3fe8c63.js";import"./shared-e55c8dc4.js";import"./shared-4e709717.js";import"./shared-34a87829.js";import"./shared-d4b77609.js";import"./shared-bf8d95b9.js";import"./shared-d0aed1c1.js";import"./shared-1c985317.js";import"./shared-58add5b4.js";import"./shared-69c98b7b.js";import"./shared-41c9c53f.js";import"./shared-930e68b7.js";import"./foxy-copy-to-clipboard.js";import"./shared-b2cbe727.js";import"./foxy-spinner.js";import"./shared-bab2ea2c.js";import"./shared-5212ef4f.js";import"./shared-791b4510.js";import"./shared-9496e995.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-0e19bda5.js";let l,c=t=>t;customElements.define("foxy-internal-email-template-form-async-action",class extends e{constructor(){super(...arguments),this.theme=null,this.href=null,this.__state="idle"}static get properties(){return r(r({},super.properties),{},{__state:{type:String},theme:{type:String},href:{type:String}})}renderControl(){const t=this.__state,e="fail"===t?"error":"";return a(l||(l=c` <vaadin-button theme="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n key="${0}" infer=""></foxy-i18n> </vaadin-button> `),`${this.theme} ${null!=e?e:""}`.trim(),"busy"===t||this.disabled,this.__submit,t)}async __submit(){var t,e;if("busy"!==this.__state)try{this.__state="busy";const r=new o.API(this),s=await r.fetch(null!==(t=this.href)&&void 0!==t?t:"",{method:"POST"});this.__state=s.ok?"idle":"fail",s.ok&&(null===(e=this.nucleon)||void 0===e||e.refresh())}catch(t){this.__state="fail"}}});let h,m=t=>t;const u=n(t,"email-template-form");class f extends u{constructor(){super(...arguments),this.defaultSubject=null,this.__templateLanguageOptions=[{rawLabel:"Nunjucks",value:"nunjucks"},{rawLabel:"Handlebars",value:"handlebars"},{rawLabel:"Pug",value:"pug"},{rawLabel:"Twig",value:"twig"},{rawLabel:"EJS",value:"ejs"}],this.__toggleGetValue=()=>!!this.form.subject,this.__toggleSetValue=t=>{var e;t?this.edit({subject:null!==(e=this.defaultSubject)&&void 0!==e?e:this.t("general.subject.default_value")}):this.edit({subject:""})}}static get properties(){return r(r({},super.properties),{},{defaultSubject:{attribute:"default-subject"}})}get readonlySelector(){const t=[super.readonlySelector.toString()],e=this.form.subject;return this.form.content_html_url&&e&&t.unshift("content-html"),this.form.content_text_url&&e&&t.unshift("content-text"),new s(t.join(" ").trim())}get disabledSelector(){const t=[super.disabledSelector.toString()];return this.in({idle:{snapshot:"clean"}})&&this.data.content_html_url&&this.data.content_text_url||t.unshift("html-source:cache","text-source:cache"),this.form.subject||t.unshift("general:template-language","html-source","text-source","content-html","content-text"),new s(t.join(" ").trim())}get hiddenSelector(){var t,e,r;const o=[super.hiddenSelector.toString()];return(null===(t=this.data)||void 0===t?void 0:t.content_html_url)||o.unshift("html-source:cache"),(null===(e=this.data)||void 0===e?void 0:e.content_text_url)||o.unshift("text-source:cache"),(null===(r=this.data)||void 0===r?void 0:r.subject)||this.form.subject||o.unshift("general:template-language","general:subject","html-source","text-source","content-html","content-text"),new s(o.join(" ").trim())}renderBody(){var t,e;return a(h||(h=m` ${0} <foxy-internal-summary-control infer="general"> <foxy-internal-text-control layout="summary-item" infer="description"> </foxy-internal-text-control> <foxy-internal-switch-control infer="toggle" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> <foxy-internal-text-control layout="summary-item" infer="subject"> </foxy-internal-text-control> <foxy-internal-select-control layout="summary-item" infer="template-language" .options="${0}"> </foxy-internal-select-control> </foxy-internal-summary-control> ${0} <foxy-internal-source-control infer="content-html"></foxy-internal-source-control> <foxy-internal-summary-control infer="html-source"> <foxy-internal-text-control layout="summary-item" infer="content-html-url"> </foxy-internal-text-control> <foxy-internal-email-template-form-async-action theme="tertiary-inline" infer="cache" href="${0}"> </foxy-internal-email-template-form-async-action> </foxy-internal-summary-control> <foxy-internal-source-control infer="content-text"></foxy-internal-source-control> <foxy-internal-summary-control infer="text-source"> <foxy-internal-text-control layout="summary-item" infer="content-text-url"> </foxy-internal-text-control> <foxy-internal-email-template-form-async-action theme="tertiary-inline" infer="cache" href="${0}"> </foxy-internal-email-template-form-async-action> </foxy-internal-summary-control> ${0} `),this.renderHeader(),this.__toggleGetValue,this.__toggleSetValue,this.__templateLanguageOptions,this.renderTemplateOrSlot(),i(null===(t=this.data)||void 0===t?void 0:t._links["fx:cache"].href),i(null===(e=this.data)||void 0===e?void 0:e._links["fx:cache"].href),super.renderBody())}async _sendPost(t){const e=await super._sendPost(t);if(t.content_html_url&&t.content_text_url){const t=e._links["fx:cache"].href;if(!(await new f.API(this).fetch(t,{method:"POST"})).ok)throw["error:failed_to_cache"]}return await this._fetch(e._links.self.href)}async _sendPatch(t){const e=await super._sendPatch(t);if(!t.content_html_url&&!t.content_text_url)return e;const r=e._links["fx:cache"].href;if(!(await new f.API(this).fetch(r,{method:"POST"})).ok)throw["error:failed_to_cache"];return await this._fetch(e._links.self.href)}}customElements.define("foxy-email-template-form",f);export{f as EmailTemplateForm};
1
+ import"./shared-adbdfff2.js";import"./shared-407080a4.js";import"./shared-d640517d.js";import"./shared-dedec962.js";import"./shared-56226850.js";import{I as t}from"./shared-c9061102.js";import"./shared-3d353eb8.js";import"./shared-360196ad.js";import{a as e}from"./shared-ecbd0750.js";import{_ as r,B as n}from"./shared-8f9014ff.js";import{N as o}from"./shared-fd8b44e3.js";import{h as s,s as a}from"./shared-ba5c42c7.js";import{a as i}from"./shared-47f3f5f5.js";import{i as l}from"./shared-53e42a77.js";import"./shared-5fd5805c.js";import"./shared-fb859ece.js";import"./shared-6bf89411.js";import"./shared-5a469962.js";import"./shared-4194ffe7.js";import"./shared-27c16d99.js";import"./shared-66278c21.js";import"./shared-32b2d003.js";import"./shared-eb49be2e.js";import"./shared-0e25ac65.js";import"./shared-b3fe8c63.js";import"./shared-e55c8dc4.js";import"./shared-4e709717.js";import"./shared-34a87829.js";import"./shared-d4b77609.js";import"./shared-bf8d95b9.js";import"./shared-d0aed1c1.js";import"./shared-1c985317.js";import"./shared-58add5b4.js";import"./shared-69c98b7b.js";import"./shared-41c9c53f.js";import"./shared-930e68b7.js";import"./foxy-copy-to-clipboard.js";import"./shared-b2cbe727.js";import"./foxy-spinner.js";import"./shared-bab2ea2c.js";import"./shared-5212ef4f.js";import"./shared-791b4510.js";import"./shared-9496e995.js";import"./shared-cd96ff03.js";import"./shared-da4f9115.js";import"./shared-0e19bda5.js";let c,h=t=>t;customElements.define("foxy-internal-email-template-form-async-action",class extends e{constructor(){super(...arguments),this.theme=null,this.href=null,this.__state="idle"}static get properties(){return r(r({},super.properties),{},{__state:{type:String},theme:{type:String},href:{type:String}})}renderControl(){const t=this.__state,e="fail"===t?"error":"";return s(c||(c=h` <vaadin-button theme="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n key="${0}" infer=""></foxy-i18n> </vaadin-button> `),`${this.theme} ${null!=e?e:""}`.trim(),"busy"===t||this.disabled,this.__submit,t)}async __submit(){var t,e;if("busy"!==this.__state)try{this.__state="busy";const r=new o.API(this),n=await r.fetch(null!==(t=this.href)&&void 0!==t?t:"",{method:"POST"});this.__state=n.ok?"idle":"fail",n.ok&&(null===(e=this.nucleon)||void 0===e||e.refresh())}catch(t){this.__state="fail"}}});let m,d,f,u=t=>t;const p=i(t,"email-template-form");class x extends p{constructor(){super(...arguments),this.defaultSubject=null,this.__templateLanguageOptions=[{rawLabel:"Nunjucks",value:"nunjucks"},{rawLabel:"Handlebars",value:"handlebars"},{rawLabel:"Pug",value:"pug"},{rawLabel:"Twig",value:"twig"},{rawLabel:"EJS",value:"ejs"}],this.__toggleGetValue=()=>!!this.form.subject,this.__toggleSetValue=t=>{var e;t?this.edit({subject:null!==(e=this.defaultSubject)&&void 0!==e?e:this.t("general.subject.default_value")}):this.edit({subject:""})}}static get properties(){return r(r({},super.properties),{},{defaultSubject:{attribute:"default-subject"}})}get disabledSelector(){const t=[super.disabledSelector.toString()];return this.in({idle:{snapshot:"clean"}})&&this.data.content_html_url&&this.data.content_text_url||t.unshift("html-source:cache","text-source:cache"),this.form.subject||t.unshift("general:template-language","html-source","text-source","content-html","content-text"),new n(t.join(" ").trim())}get hiddenSelector(){var t,e,r,o,s,a,i;const l=[super.hiddenSelector.toString()];return(null===(t=this.data)||void 0===t?void 0:t.content_html_url)||l.unshift("html-source:cache"),(null===(e=this.data)||void 0===e?void 0:e.content_text_url)||l.unshift("text-source:cache"),this.form.content_html_url&&(null!==(o=null===(r=this.data)||void 0===r?void 0:r.content_html)&&void 0!==o?o:"")!==this.form.content_html||l.unshift("content-html-warning"),this.form.content_text_url&&(null!==(a=null===(s=this.data)||void 0===s?void 0:s.content_text)&&void 0!==a?a:"")!==this.form.content_text||l.unshift("content-text-warning"),(null===(i=this.data)||void 0===i?void 0:i.subject)||this.form.subject||l.unshift("general:template-language","general:subject","html-source","text-source","content-html","content-html-warning","content-text","content-text-warning"),new n(l.join(" ").trim())}renderBody(){var t,e;return s(m||(m=u` ${0} <foxy-internal-summary-control infer="general"> <foxy-internal-text-control layout="summary-item" infer="description"> </foxy-internal-text-control> <foxy-internal-switch-control infer="toggle" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> <foxy-internal-text-control layout="summary-item" infer="subject"> </foxy-internal-text-control> <foxy-internal-select-control layout="summary-item" infer="template-language" .options="${0}"> </foxy-internal-select-control> </foxy-internal-summary-control> ${0} <foxy-internal-source-control infer="content-html"></foxy-internal-source-control> <foxy-internal-summary-control infer="content-html-warning" label="" helper-text=""> <div class="flex gap-s bg-error-10 text-error leading-xs text-s"> ${0} <foxy-i18n infer="" key="text"></foxy-i18n> </div> </foxy-internal-summary-control> <foxy-internal-summary-control infer="html-source"> <foxy-internal-text-control layout="summary-item" infer="content-html-url"> </foxy-internal-text-control> <foxy-internal-email-template-form-async-action theme="tertiary-inline" infer="cache" href="${0}"> </foxy-internal-email-template-form-async-action> </foxy-internal-summary-control> <foxy-internal-source-control infer="content-text"></foxy-internal-source-control> <foxy-internal-summary-control infer="content-text-warning" label="" helper-text=""> <div class="flex gap-s bg-error-10 text-error leading-xs text-s"> ${0} <foxy-i18n infer="" key="text"></foxy-i18n> </div> </foxy-internal-summary-control> <foxy-internal-summary-control infer="text-source"> <foxy-internal-text-control layout="summary-item" infer="content-text-url"> </foxy-internal-text-control> <foxy-internal-email-template-form-async-action theme="tertiary-inline" infer="cache" href="${0}"> </foxy-internal-email-template-form-async-action> </foxy-internal-summary-control> ${0} `),this.renderHeader(),this.__toggleGetValue,this.__toggleSetValue,this.__templateLanguageOptions,this.renderTemplateOrSlot(),a(d||(d=u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1.25em; height: 1.25em; margin-top: 0.1em;" class="flex-shrink-0"><path fill-rule="evenodd" d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" /></svg>`)),l(null===(t=this.data)||void 0===t?void 0:t._links["fx:cache"].href),a(f||(f=u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1.25em; height: 1.25em; margin-top: 0.1em;" class="flex-shrink-0"><path fill-rule="evenodd" d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" /></svg>`)),l(null===(e=this.data)||void 0===e?void 0:e._links["fx:cache"].href),super.renderBody())}async _sendPost(t){const e=await super._sendPost(t);if(t.content_html_url&&t.content_text_url){const t=e._links["fx:cache"].href;if(!(await new x.API(this).fetch(t,{method:"POST"})).ok)throw["error:failed_to_cache"]}return await this._fetch(e._links.self.href)}async _sendPatch(t){const e=await super._sendPatch(t);if(!t.content_html_url&&!t.content_text_url)return e;const r=e._links["fx:cache"].href;if(!(await new x.API(this).fetch(r,{method:"POST"})).ok)throw["error:failed_to_cache"];return await this._fetch(e._links.self.href)}}customElements.define("foxy-email-template-form",x);export{x as EmailTemplateForm};
@@ -1 +1 @@
1
- import{aI as e,_ as s}from"./shared-8f9014ff.js";import{L as r,c as t,h as a}from"./shared-ba5c42c7.js";import{T as i,a as n,S as o}from"./shared-47f3f5f5.js";import{c as l}from"./shared-4e709717.js";import{G as d}from"./shared-14cc889b.js";import"./foxy-nucleon-element.js";import{g as c}from"./shared-bab2ea2c.js";import{N as p}from"./shared-9b138652.js";import{d as u}from"./shared-c84333db.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-930e68b7.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";let m,f,h,y=e=>e;class x extends(i(r)){constructor(){super(...arguments),this.data=[]}static get properties(){return{data:{type:Array}}}static get styles(){return[super.styles,t(m||(m=y`dd,dt{display:inline-block;overflow:hidden;vertical-align:top;overflow-wrap:anywhere}dt{min-width:calc(5 * var(--lumo-size-l));padding-right:.5em}dd{max-width:calc(15 * var(--lumo-size-l));min-width:calc(10 * var(--lumo-size-l))}`))]}render(){return a(f||(f=y` <dl class="space-y-s"> ${0} </dl> `),this.data.map((e=>{const s=String(e[1]).trim();return a(h||(h=y` <div> <dt class="text-secondary truncate">${0}</dt> <dd class="${0}">${0}</dd> </div> `),e[0],l({"text-tertiary":!s}),s||"–")})))}}let g,v,$=e=>e;const _=["_links","_embedded"],b=n(i(o(p)));class j extends b{static get scopedElements(){return{"foxy-spinner":customElements.get("foxy-spinner"),"x-data-list":x}}render(){if(this.in({idle:"snapshot"})){const s=this.data,{_links:r,_embedded:t}=s,i=e(s,_);try{const e=c(r.self.href);null!==e&&(i.id=e)}catch(e){}return a(g||(g=$` <x-data-list aria-live="polite" aria-busy="false" class="leading-s text-s" data="${0}"> </x-data-list> `),JSON.stringify(Array.from(Object.entries(i))))}const s=this.in("busy");return a(v||(v=$` <div aria-live="polite" aria-busy="${0}" data-testid="wrapper" class="flex justify-center"> <foxy-spinner data-testid="spinner" layout="horizontal" state="${0}" lang="${0}" ns="${0}"> </foxy-spinner> </div> `),s,this.in("fail")?"error":s?"busy":"empty",this.lang,this.ns)}}let w,k,S,E,O,N,z,T,G,J,P,A=e=>e;const R=n(i(o(p)),"error-entry-card");class D extends R{constructor(){super(...arguments),this.open=!1}static get scopedElements(){return{"x-resource-viewer":j,"foxy-spinner":customElements.get("foxy-spinner"),"x-data-list":x,"iron-icon":customElements.get("iron-icon"),"foxy-i18n":customElements.get("foxy-i18n"),"x-group":d}}static get properties(){return s(s({},super.properties),{},{open:{type:Boolean,reflect:!0}})}render(){var e,s;const r=this.data,t=this.in("busy");if(r){const{hide_error:e}=r,{open:s}=this;return a(w||(w=A` <details aria-busy="${0}" aria-live="polite" class="text-body w-full" ?open="${0}" @toggle="${0}"> <summary class="rounded-s ring-offset-4 ring-offset-base ring-primary-50 focus-outline-none focus-ring-2"> <div style="padding-left:calc(var(--lumo-space-xs) + var(--lumo-space-s) - 1px)" class="${0}"> ${0} </div> </summary> ${0} </details> `),t,s,this.__handleToggle,l({"border-l-2 leading-s relative cursor-pointer":!0,"border-contrast":e&&!s,"border-primary":!e,"border-error":e&&s,"h-l":!s}),this.__renderSummary(r),s?this.__renderDetails(r):"")}return a(k||(k=A` <div aria-busy="${0}" aria-live="polite" style="padding-left:calc(var(--lumo-space-xs) + var(--lumo-space-s) - 1px)" class="flex items-center justify-center border-l-2 leading-s relative border-contrast-10 h-l"> <foxy-spinner data-testid="spinner" layout="horizontal" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> `),t,t?"busy":this.in("fail")?"error":"empty",this.lang,this.ns,null!==(s=null===(e=customElements.get("foxy-spinner"))||void 0===e?void 0:e.defaultNS)&&void 0!==s?s:"")}__renderGetOrPostValues(e,s){const r=new URLSearchParams(u(e||s));return a(S||(S=A` <div class="relative leading-xs pt-s"> <div class="absolute font-medium right-0 text-tertiary text-xs top-0 mt-s">${0}</div> <x-data-list data="${0}"></x-data-list> </div> `),e?"GET":"POST",JSON.stringify(Array.from(r.entries())))}__renderReferrer(e){return a(E||(E=A` <span class="text-secondary">Navigated from</span> <a target="_blank" class="font-medium text-primary hover-underline" href="${0}" rel="nofollow noopener noreferrer"> ${0} </a> `),e,e)}__renderSummary(e){return a(O||(O=A` <div class="text-s absolute right-0 top-0 text-tertiary"> <iron-icon icon="icons:expand-${0}"></iron-icon> </div> <div class="text-s mb-xs ${0}"> <foxy-i18n options="${0}" lang="${0}" key="date" ns="${0}"> </foxy-i18n> <foxy-i18n options="${0}" lang="${0}" key="time" ns="${0}"> </foxy-i18n> </div> <p class="${0} overflow-hidden font-medium"> ${0} </p> `),this.open?"less":"more",e.hide_error?"text-error":"text-primary",JSON.stringify({value:e.date_created}),this.lang,this.ns,JSON.stringify({value:e.date_created}),this.lang,this.ns,this.open?"":"truncate",e.error_message)}__renderDetails(e){return a(N||(N=A` <div class="space-y-m pt-m"> ${0} ${0} ${0} </div> `),e.referrer||e.get_values||e.post_values?a(z||(z=A` <x-group frame> <foxy-i18n slot="header" lang="${0}" key="request" ns="${0}"></foxy-i18n> <div class="mx-xs p-s text-s divide-y divide-contrast-10 space-y-s"> <p> <span class="block font-medium">${0}</span> ${0} </p> ${0} </div> </x-group> `),this.lang,this.ns,e.url,e.referrer?this.__renderReferrer(e.referrer):"",e.get_values||e.post_values?this.__renderGetOrPostValues(e.get_values,e.post_values):""):"",e.ip_address||e.ip_country||e.user_agent?a(T||(T=A` <x-group frame> <foxy-i18n slot="header" lang="${0}" key="client" ns="${0}"></foxy-i18n> <div class="text-s flex flex-col mx-xs p-s"> <span class="font-medium"> ${0} ${0} </span> ${0} </div> </x-group> `),this.lang,this.ns,e.ip_address,e.ip_country?a(G||(G=A`<span class="text-tertiary"> • </span>${0}`),e.ip_country):"",e.user_agent?a(J||(J=A`<span class="text-secondary">${0}</span>`),e.user_agent):""):"",Object.entries(e._links).map((([e,s])=>["self","fx:store","curies"].includes(e)?"":a(P||(P=A` <x-group frame> <foxy-i18n slot="header" lang="${0}" key="${0}" ns="${0}"> </foxy-i18n> <x-resource-viewer class="p-s mx-xs" href="${0}" lang="${0}" ns="${0}"> </x-resource-viewer> </x-group> `),this.lang,e.substr(3),this.ns,s.href,this.lang,this.ns))))}__handleToggle(e){var s;const r=e.target;r.open&&!1===(null===(s=this.data)||void 0===s?void 0:s.hide_error)&&(this.edit({hide_error:!0}),this.submit()),this.open=r.open}}customElements.define("foxy-error-entry-card",D);export{D as ErrorEntryCard};
1
+ import{aI as e,_ as s}from"./shared-8f9014ff.js";import{L as r,c as t,h as a}from"./shared-ba5c42c7.js";import{T as i,a as n,S as o}from"./shared-47f3f5f5.js";import{c as l}from"./shared-4e709717.js";import{G as d}from"./shared-14cc889b.js";import"./foxy-nucleon-element.js";import{g as c}from"./shared-bab2ea2c.js";import{N as p}from"./shared-fd8b44e3.js";import{d as u}from"./shared-c84333db.js";import"./shared-69c98b7b.js";import"./shared-cd96ff03.js";import"./shared-930e68b7.js";import"./shared-da4f9115.js";import"./shared-9496e995.js";import"./shared-791b4510.js";import"./shared-0e19bda5.js";let m,f,h,y=e=>e;class x extends(i(r)){constructor(){super(...arguments),this.data=[]}static get properties(){return{data:{type:Array}}}static get styles(){return[super.styles,t(m||(m=y`dd,dt{display:inline-block;overflow:hidden;vertical-align:top;overflow-wrap:anywhere}dt{min-width:calc(5 * var(--lumo-size-l));padding-right:.5em}dd{max-width:calc(15 * var(--lumo-size-l));min-width:calc(10 * var(--lumo-size-l))}`))]}render(){return a(f||(f=y` <dl class="space-y-s"> ${0} </dl> `),this.data.map((e=>{const s=String(e[1]).trim();return a(h||(h=y` <div> <dt class="text-secondary truncate">${0}</dt> <dd class="${0}">${0}</dd> </div> `),e[0],l({"text-tertiary":!s}),s||"–")})))}}let g,v,$=e=>e;const _=["_links","_embedded"],b=n(i(o(p)));class j extends b{static get scopedElements(){return{"foxy-spinner":customElements.get("foxy-spinner"),"x-data-list":x}}render(){if(this.in({idle:"snapshot"})){const s=this.data,{_links:r,_embedded:t}=s,i=e(s,_);try{const e=c(r.self.href);null!==e&&(i.id=e)}catch(e){}return a(g||(g=$` <x-data-list aria-live="polite" aria-busy="false" class="leading-s text-s" data="${0}"> </x-data-list> `),JSON.stringify(Array.from(Object.entries(i))))}const s=this.in("busy");return a(v||(v=$` <div aria-live="polite" aria-busy="${0}" data-testid="wrapper" class="flex justify-center"> <foxy-spinner data-testid="spinner" layout="horizontal" state="${0}" lang="${0}" ns="${0}"> </foxy-spinner> </div> `),s,this.in("fail")?"error":s?"busy":"empty",this.lang,this.ns)}}let w,k,S,E,O,N,z,T,G,J,P,A=e=>e;const R=n(i(o(p)),"error-entry-card");class D extends R{constructor(){super(...arguments),this.open=!1}static get scopedElements(){return{"x-resource-viewer":j,"foxy-spinner":customElements.get("foxy-spinner"),"x-data-list":x,"iron-icon":customElements.get("iron-icon"),"foxy-i18n":customElements.get("foxy-i18n"),"x-group":d}}static get properties(){return s(s({},super.properties),{},{open:{type:Boolean,reflect:!0}})}render(){var e,s;const r=this.data,t=this.in("busy");if(r){const{hide_error:e}=r,{open:s}=this;return a(w||(w=A` <details aria-busy="${0}" aria-live="polite" class="text-body w-full" ?open="${0}" @toggle="${0}"> <summary class="rounded-s ring-offset-4 ring-offset-base ring-primary-50 focus-outline-none focus-ring-2"> <div style="padding-left:calc(var(--lumo-space-xs) + var(--lumo-space-s) - 1px)" class="${0}"> ${0} </div> </summary> ${0} </details> `),t,s,this.__handleToggle,l({"border-l-2 leading-s relative cursor-pointer":!0,"border-contrast":e&&!s,"border-primary":!e,"border-error":e&&s,"h-l":!s}),this.__renderSummary(r),s?this.__renderDetails(r):"")}return a(k||(k=A` <div aria-busy="${0}" aria-live="polite" style="padding-left:calc(var(--lumo-space-xs) + var(--lumo-space-s) - 1px)" class="flex items-center justify-center border-l-2 leading-s relative border-contrast-10 h-l"> <foxy-spinner data-testid="spinner" layout="horizontal" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> `),t,t?"busy":this.in("fail")?"error":"empty",this.lang,this.ns,null!==(s=null===(e=customElements.get("foxy-spinner"))||void 0===e?void 0:e.defaultNS)&&void 0!==s?s:"")}__renderGetOrPostValues(e,s){const r=new URLSearchParams(u(e||s));return a(S||(S=A` <div class="relative leading-xs pt-s"> <div class="absolute font-medium right-0 text-tertiary text-xs top-0 mt-s">${0}</div> <x-data-list data="${0}"></x-data-list> </div> `),e?"GET":"POST",JSON.stringify(Array.from(r.entries())))}__renderReferrer(e){return a(E||(E=A` <span class="text-secondary">Navigated from</span> <a target="_blank" class="font-medium text-primary hover-underline" href="${0}" rel="nofollow noopener noreferrer"> ${0} </a> `),e,e)}__renderSummary(e){return a(O||(O=A` <div class="text-s absolute right-0 top-0 text-tertiary"> <iron-icon icon="icons:expand-${0}"></iron-icon> </div> <div class="text-s mb-xs ${0}"> <foxy-i18n options="${0}" lang="${0}" key="date" ns="${0}"> </foxy-i18n> <foxy-i18n options="${0}" lang="${0}" key="time" ns="${0}"> </foxy-i18n> </div> <p class="${0} overflow-hidden font-medium"> ${0} </p> `),this.open?"less":"more",e.hide_error?"text-error":"text-primary",JSON.stringify({value:e.date_created}),this.lang,this.ns,JSON.stringify({value:e.date_created}),this.lang,this.ns,this.open?"":"truncate",e.error_message)}__renderDetails(e){return a(N||(N=A` <div class="space-y-m pt-m"> ${0} ${0} ${0} </div> `),e.referrer||e.get_values||e.post_values?a(z||(z=A` <x-group frame> <foxy-i18n slot="header" lang="${0}" key="request" ns="${0}"></foxy-i18n> <div class="mx-xs p-s text-s divide-y divide-contrast-10 space-y-s"> <p> <span class="block font-medium">${0}</span> ${0} </p> ${0} </div> </x-group> `),this.lang,this.ns,e.url,e.referrer?this.__renderReferrer(e.referrer):"",e.get_values||e.post_values?this.__renderGetOrPostValues(e.get_values,e.post_values):""):"",e.ip_address||e.ip_country||e.user_agent?a(T||(T=A` <x-group frame> <foxy-i18n slot="header" lang="${0}" key="client" ns="${0}"></foxy-i18n> <div class="text-s flex flex-col mx-xs p-s"> <span class="font-medium"> ${0} ${0} </span> ${0} </div> </x-group> `),this.lang,this.ns,e.ip_address,e.ip_country?a(G||(G=A`<span class="text-tertiary"> • </span>${0}`),e.ip_country):"",e.user_agent?a(J||(J=A`<span class="text-secondary">${0}</span>`),e.user_agent):""):"",Object.entries(e._links).map((([e,s])=>["self","fx:store","curies"].includes(e)?"":a(P||(P=A` <x-group frame> <foxy-i18n slot="header" lang="${0}" key="${0}" ns="${0}"> </foxy-i18n> <x-resource-viewer class="p-s mx-xs" href="${0}" lang="${0}" ns="${0}"> </x-resource-viewer> </x-group> `),this.lang,e.substr(3),this.ns,s.href,this.lang,this.ns))))}__handleToggle(e){var s;const r=e.target;r.open&&!1===(null===(s=this.data)||void 0===s?void 0:s.hide_error)&&(this.edit({hide_error:!0}),this.submit()),this.open=r.open}}customElements.define("foxy-error-entry-card",D);export{D as ErrorEntryCard};