@foxy.io/elements 1.15.0-beta.8 → 1.16.0-beta.2

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 (266) 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-applied-tax-card.js +1 -1
  5. package/dist/cdn/foxy-attribute-card.js +1 -1
  6. package/dist/cdn/foxy-attribute-form.js +1 -1
  7. package/dist/cdn/foxy-cancellation-form.js +1 -1
  8. package/dist/cdn/foxy-collection-page.js +1 -1
  9. package/dist/cdn/foxy-collection-pages.js +1 -1
  10. package/dist/cdn/foxy-coupon-card.js +1 -1
  11. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  12. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  13. package/dist/cdn/foxy-coupon-form.js +1 -1
  14. package/dist/cdn/foxy-custom-field-card.js +1 -1
  15. package/dist/cdn/foxy-custom-field-form.js +1 -1
  16. package/dist/cdn/foxy-customer-api.js +1 -1
  17. package/dist/cdn/foxy-customer-card.js +1 -1
  18. package/dist/cdn/foxy-customer-form.js +1 -1
  19. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  20. package/dist/cdn/foxy-customer-portal.js +13 -13
  21. package/dist/cdn/foxy-customer.js +3 -3
  22. package/dist/cdn/foxy-customers-table.js +1 -1
  23. package/dist/cdn/foxy-discount-card.js +1 -1
  24. package/dist/cdn/foxy-donation.js +1 -1
  25. package/dist/cdn/foxy-email-template-form.js +1 -1
  26. package/dist/cdn/foxy-error-entry-card.js +1 -1
  27. package/dist/cdn/foxy-form-dialog.js +1 -1
  28. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  29. package/dist/cdn/foxy-gift-card-card.js +1 -1
  30. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  31. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  32. package/dist/cdn/foxy-gift-card-form.js +1 -1
  33. package/dist/cdn/foxy-i18n.js +1 -1
  34. package/dist/cdn/foxy-items-form.js +1 -1
  35. package/dist/cdn/foxy-nucleon-element.js +1 -1
  36. package/dist/cdn/foxy-pagination.js +1 -1
  37. package/dist/cdn/foxy-payment-card.js +1 -1
  38. package/dist/cdn/foxy-payment-method-card.js +1 -1
  39. package/dist/cdn/foxy-query-builder.js +1 -1
  40. package/dist/cdn/foxy-report-form.js +195 -0
  41. package/dist/cdn/foxy-reports-table.js +41 -0
  42. package/dist/cdn/foxy-sign-in-form.js +1 -1
  43. package/dist/cdn/foxy-spinner.js +1 -1
  44. package/dist/cdn/foxy-subscription-card.js +1 -1
  45. package/dist/cdn/foxy-subscription-form.js +5 -5
  46. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  47. package/dist/cdn/foxy-table.js +1 -1
  48. package/dist/cdn/foxy-tax-card.js +1 -1
  49. package/dist/cdn/foxy-tax-form.js +1 -1
  50. package/dist/cdn/foxy-template-config-form.js +1 -1
  51. package/dist/cdn/foxy-template-form.js +1 -1
  52. package/dist/cdn/foxy-transaction-card.js +1 -1
  53. package/dist/cdn/foxy-transactions-table.js +1 -1
  54. package/dist/cdn/foxy-user-form.js +1 -1
  55. package/dist/cdn/foxy-users-table.js +1 -1
  56. package/dist/cdn/{shared-46ee137f.js → shared-01cbd43c.js} +10 -10
  57. package/dist/cdn/{shared-b710881a.js → shared-0389f098.js} +2 -2
  58. package/dist/cdn/{shared-1a67bc75.js → shared-147e571b.js} +4 -4
  59. package/dist/cdn/{shared-c5de42f7.js → shared-1d2cc2fb.js} +1 -1
  60. package/dist/cdn/shared-1e57180b.js +1 -0
  61. package/dist/cdn/{shared-02945b27.js → shared-1fa5f9a9.js} +1 -1
  62. package/dist/cdn/{shared-07134f93.js → shared-2558daa0.js} +1 -1
  63. package/dist/cdn/{shared-59e44f29.js → shared-25f67779.js} +1 -1
  64. package/dist/cdn/{shared-fab8c705.js → shared-269fb742.js} +10 -10
  65. package/dist/cdn/shared-27277bbb.js +1 -0
  66. package/dist/cdn/{shared-218ba06e.js → shared-2b3f17cf.js} +1 -1
  67. package/dist/cdn/{shared-60126eee.js → shared-2f8bf5d9.js} +1 -1
  68. package/dist/cdn/{shared-a23cf7c8.js → shared-312131d3.js} +1 -1
  69. package/dist/cdn/{shared-448781f9.js → shared-34f68715.js} +1 -1
  70. package/dist/cdn/{shared-b5754a42.js → shared-3a06bd7f.js} +1 -1
  71. package/dist/cdn/{shared-1934524e.js → shared-3c85dcd8.js} +2 -2
  72. package/dist/cdn/{shared-e209cb55.js → shared-3f26cae2.js} +1 -1
  73. package/dist/cdn/{shared-a040d79d.js → shared-41272a67.js} +1 -1
  74. package/dist/cdn/shared-41f3f823.js +29 -0
  75. package/dist/cdn/{shared-f4ad24f4.js → shared-44633760.js} +1 -1
  76. package/dist/cdn/{shared-223508ae.js → shared-4dc82211.js} +7 -7
  77. package/dist/cdn/{shared-63eaded9.js → shared-4ec62366.js} +6 -6
  78. package/dist/cdn/{shared-09069d7c.js → shared-57a8ee05.js} +1 -1
  79. package/dist/cdn/{shared-253e59d2.js → shared-5e9d8142.js} +1 -1
  80. package/dist/cdn/shared-5fd50b58.js +1 -0
  81. package/dist/cdn/{shared-21419f10.js → shared-65cfddfd.js} +1 -1
  82. package/dist/cdn/shared-6974569c.js +201 -0
  83. package/dist/cdn/{shared-9221e6b2.js → shared-701d5a7c.js} +1 -1
  84. package/dist/cdn/{shared-7f0a9790.js → shared-7cf914d7.js} +1 -1
  85. package/dist/cdn/{shared-4dc6d228.js → shared-7d337241.js} +1 -1
  86. package/dist/cdn/{shared-dcc9c325.js → shared-7e107668.js} +1 -1
  87. package/dist/cdn/shared-85b8ae57.js +12 -0
  88. package/dist/cdn/{shared-6d45a07b.js → shared-8695b424.js} +1 -1
  89. package/dist/cdn/{shared-39e3ae67.js → shared-8fc0b3ee.js} +1 -1
  90. package/dist/cdn/{shared-756034e4.js → shared-916ef4d3.js} +1 -1
  91. package/dist/cdn/{shared-08c63028.js → shared-9728b5f8.js} +1 -1
  92. package/dist/cdn/{shared-b9f18aaa.js → shared-a42088ee.js} +1 -1
  93. package/dist/cdn/{shared-5a54a9bc.js → shared-a82f8b58.js} +1 -1
  94. package/dist/cdn/{shared-65dfd512.js → shared-b161b269.js} +1 -1
  95. package/dist/cdn/{shared-5535f38f.js → shared-bad032de.js} +1 -1
  96. package/dist/cdn/{shared-20b9ce70.js → shared-bec9e9ce.js} +5 -5
  97. package/dist/cdn/{shared-a7b6feb2.js → shared-c722fc23.js} +1 -1
  98. package/dist/cdn/{shared-e2c878c7.js → shared-cd262e68.js} +10 -10
  99. package/dist/cdn/{shared-df730f90.js → shared-d2228670.js} +1 -1
  100. package/dist/cdn/{shared-b0f0e8b5.js → shared-d3cf78c1.js} +1 -1
  101. package/dist/cdn/{shared-073cb8e9.js → shared-e69e1ca3.js} +1 -1
  102. package/dist/cdn/shared-f0515999.js +1 -0
  103. package/dist/cdn/{shared-0f38a631.js → shared-f1107e25.js} +1 -1
  104. package/dist/cdn/translations/access-recovery-form/en.json +12 -0
  105. package/dist/cdn/translations/address-card/en.json +11 -0
  106. package/dist/cdn/translations/address-form/en.json +27 -0
  107. package/dist/cdn/translations/applied-tax-card/en.json +9 -0
  108. package/dist/cdn/translations/attribute-card/en.json +7 -0
  109. package/dist/cdn/translations/attribute-form/en.json +22 -0
  110. package/dist/cdn/translations/cancellation-form/en.json +10 -0
  111. package/dist/cdn/translations/country/pl.json +251 -0
  112. package/dist/cdn/translations/coupon-card/en.json +36 -0
  113. package/dist/cdn/translations/coupon-code-form/en.json +17 -0
  114. package/dist/cdn/translations/coupon-codes-form/en.json +20 -0
  115. package/dist/cdn/translations/coupon-form/en.json +186 -0
  116. package/dist/cdn/translations/custom-field-card/en.json +7 -0
  117. package/dist/cdn/translations/custom-field-form/en.json +19 -0
  118. package/dist/cdn/translations/customer/en.json +247 -0
  119. package/dist/cdn/translations/customer-card/en.json +7 -0
  120. package/dist/cdn/translations/customer-form/en.json +21 -0
  121. package/dist/cdn/translations/customer-portal/de.json +202 -14
  122. package/dist/cdn/translations/customer-portal/en.json +202 -14
  123. package/dist/cdn/translations/customer-portal/es.json +202 -14
  124. package/dist/cdn/translations/customer-portal/pl.json +223 -0
  125. package/dist/cdn/translations/customer-portal/zh-hk.json +202 -14
  126. package/dist/cdn/translations/customers-table/en.json +9 -0
  127. package/dist/cdn/translations/discount-card/en.json +8 -0
  128. package/dist/cdn/translations/email-template-form/en.json +25 -0
  129. package/dist/cdn/translations/error-entry-card/en.json +7 -0
  130. package/dist/cdn/translations/generate-codes-form/en.json +19 -0
  131. package/dist/cdn/translations/gift-card-card/en.json +9 -0
  132. package/dist/cdn/translations/gift-card-code-form/en.json +19 -0
  133. package/dist/cdn/translations/gift-card-codes-form/en.json +25 -0
  134. package/dist/cdn/translations/gift-card-form/en.json +314 -0
  135. package/dist/cdn/translations/pagination/en.json +7 -0
  136. package/dist/cdn/translations/payment-card/en.json +12 -0
  137. package/dist/cdn/translations/payment-method-card/en.json +13 -0
  138. package/dist/cdn/translations/query-builder/en.json +32 -0
  139. package/dist/cdn/translations/report-form/en.json +38 -0
  140. package/dist/cdn/translations/reports-table/en.json +21 -0
  141. package/dist/cdn/translations/sign-in-form/en.json +21 -0
  142. package/dist/cdn/translations/spinner/en.json +7 -0
  143. package/dist/cdn/translations/subscription-card/en.json +26 -0
  144. package/dist/cdn/translations/subscription-form/en.json +76 -0
  145. package/dist/cdn/translations/subscriptions-table/en.json +26 -0
  146. package/dist/cdn/translations/tax-card/en.json +11 -0
  147. package/dist/cdn/translations/tax-form/en.json +38 -0
  148. package/dist/cdn/translations/template-config-form/en.json +107 -0
  149. package/dist/cdn/translations/template-form/en.json +23 -0
  150. package/dist/cdn/translations/transaction-card/en.json +25 -0
  151. package/dist/cdn/translations/transactions-table/en.json +22 -0
  152. package/dist/cdn/translations/user-form/en.json +26 -0
  153. package/dist/cdn/translations/users-table/en.json +44 -0
  154. package/dist/elements/private/Choice/Choice.js +1 -0
  155. package/dist/elements/private/Choice/Choice.js.map +1 -1
  156. package/dist/elements/private/FrequencyInput/FrequencyInput.d.ts +5 -5
  157. package/dist/elements/private/FrequencyInput/FrequencyInput.js +7 -22
  158. package/dist/elements/private/FrequencyInput/FrequencyInput.js.map +1 -1
  159. package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js +1 -1
  160. package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js.map +1 -1
  161. package/dist/elements/public/AttributeCard/types.d.ts +3 -3
  162. package/dist/elements/public/AttributeCard/types.js.map +1 -1
  163. package/dist/elements/public/AttributeForm/AttributeForm.js +2 -1
  164. package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
  165. package/dist/elements/public/AttributeForm/types.d.ts +3 -3
  166. package/dist/elements/public/AttributeForm/types.js.map +1 -1
  167. package/dist/elements/public/CouponCard/CouponCard.js +2 -1
  168. package/dist/elements/public/CouponCard/CouponCard.js.map +1 -1
  169. package/dist/elements/public/CouponCodeForm/CouponCodeForm.js +5 -5
  170. package/dist/elements/public/CouponCodeForm/CouponCodeForm.js.map +1 -1
  171. package/dist/elements/public/CouponForm/CouponForm.js +199 -164
  172. package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
  173. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.d.ts +4 -3
  174. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.js +5 -4
  175. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPage.js.map +1 -1
  176. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.d.ts +3 -4
  177. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.js +3 -4
  178. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItem.js.map +1 -1
  179. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.d.ts +3 -4
  180. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.js +3 -2
  181. package/dist/elements/public/CouponForm/private/CategoryRestrictionsPageItemContent.js.map +1 -1
  182. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +2 -1
  183. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
  184. package/dist/elements/public/Customer/Customer.js +1 -1
  185. package/dist/elements/public/Customer/Customer.js.map +1 -1
  186. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +18 -5
  187. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
  188. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js +20 -6
  189. package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js.map +1 -1
  190. package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js +2 -1
  191. package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js.map +1 -1
  192. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js +2 -1
  193. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js.map +1 -1
  194. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js +6 -6
  195. package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js.map +1 -1
  196. package/dist/elements/public/GiftCardForm/GiftCardForm.js +103 -85
  197. package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -1
  198. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPage.d.ts +1 -1
  199. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPage.js +3 -3
  200. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPage.js.map +1 -1
  201. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItem.d.ts +1 -3
  202. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItem.js +2 -4
  203. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItem.js.map +1 -1
  204. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItemContent.d.ts +1 -3
  205. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItemContent.js +2 -2
  206. package/dist/elements/public/GiftCardForm/private/CategoryRestrictionsPageItemContent.js.map +1 -1
  207. package/dist/elements/public/I18n/format/discount.js +2 -2
  208. package/dist/elements/public/I18n/format/discount.js.map +1 -1
  209. package/dist/elements/public/Pagination/Pagination.js +4 -0
  210. package/dist/elements/public/Pagination/Pagination.js.map +1 -1
  211. package/dist/elements/public/ReportForm/ReportForm.d.ts +48 -0
  212. package/dist/elements/public/ReportForm/ReportForm.js +391 -0
  213. package/dist/elements/public/ReportForm/ReportForm.js.map +1 -0
  214. package/dist/elements/public/ReportForm/index.d.ts +11 -0
  215. package/dist/elements/public/ReportForm/index.js +13 -0
  216. package/dist/elements/public/ReportForm/index.js.map +1 -0
  217. package/dist/elements/public/ReportForm/types.d.ts +17 -0
  218. package/dist/elements/public/ReportForm/types.js +2 -0
  219. package/dist/elements/public/ReportForm/types.js.map +1 -0
  220. package/dist/elements/public/ReportForm/utils.d.ts +16 -0
  221. package/dist/elements/public/ReportForm/utils.js +73 -0
  222. package/dist/elements/public/ReportForm/utils.js.map +1 -0
  223. package/dist/elements/public/ReportsTable/ReportsTable.d.ts +21 -0
  224. package/dist/elements/public/ReportsTable/ReportsTable.js +101 -0
  225. package/dist/elements/public/ReportsTable/ReportsTable.js.map +1 -0
  226. package/dist/elements/public/ReportsTable/index.d.ts +4 -0
  227. package/dist/elements/public/ReportsTable/index.js +6 -0
  228. package/dist/elements/public/ReportsTable/index.js.map +1 -0
  229. package/dist/elements/public/ReportsTable/types.d.ts +3 -0
  230. package/dist/elements/public/ReportsTable/types.js +2 -0
  231. package/dist/elements/public/ReportsTable/types.js.map +1 -0
  232. package/dist/elements/public/SignInForm/SignInForm.js +1 -1
  233. package/dist/elements/public/SignInForm/SignInForm.js.map +1 -1
  234. package/dist/elements/public/SubscriptionForm/SubscriptionForm.js +1 -1
  235. package/dist/elements/public/SubscriptionForm/SubscriptionForm.js.map +1 -1
  236. package/dist/elements/public/TaxForm/TaxForm.js +16 -14
  237. package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
  238. package/dist/elements/public/TemplateForm/TemplateForm.js +1 -1
  239. package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -1
  240. package/dist/elements/public/UserForm/UserForm.js +2 -1
  241. package/dist/elements/public/UserForm/UserForm.js.map +1 -1
  242. package/dist/elements/public/UsersTable/UsersTable.d.ts +5 -1
  243. package/dist/elements/public/UsersTable/UsersTable.js +2 -1
  244. package/dist/elements/public/UsersTable/UsersTable.js.map +1 -1
  245. package/dist/elements/public/index.d.ts +2 -0
  246. package/dist/elements/public/index.defined.d.ts +2 -0
  247. package/dist/elements/public/index.defined.js +2 -0
  248. package/dist/elements/public/index.defined.js.map +1 -1
  249. package/dist/elements/public/index.js +2 -0
  250. package/dist/elements/public/index.js.map +1 -1
  251. package/dist/mixins/themeable.js +6523 -0
  252. package/dist/mixins/themeable.js.map +1 -1
  253. package/dist/mixins/translatable.js +1 -1
  254. package/dist/mixins/translatable.js.map +1 -1
  255. package/package.json +3 -3
  256. package/dist/cdn/shared-07049bfe.js +0 -1
  257. package/dist/cdn/shared-11708514.js +0 -1
  258. package/dist/cdn/shared-66633ff7.js +0 -1
  259. package/dist/cdn/shared-805d18a2.js +0 -1
  260. package/dist/cdn/shared-8b20bc23.js +0 -12
  261. package/dist/cdn/shared-e68b9c83.js +0 -1
  262. package/dist/cdn/shared-ff79f3f9.js +0 -230
  263. package/dist/cdn/translations/shared/de.json +0 -271
  264. package/dist/cdn/translations/shared/en.json +0 -557
  265. package/dist/cdn/translations/shared/es.json +0 -272
  266. package/dist/cdn/translations/shared/zh-hk.json +0 -179
@@ -1 +1 @@
1
- import"./shared-a040d79d.js";import{C as e,b as t}from"./shared-223508ae.js";import"./shared-5a54a9bc.js";import"./shared-c5de42f7.js";import"./shared-9221e6b2.js";import"./foxy-spinner.js";import"./shared-11708514.js";import{_ as i,j as s,h as a}from"./shared-63eaded9.js";import"./shared-46ee137f.js";import"./shared-8b20bc23.js";import"./shared-073cb8e9.js";import{S as r,T as n,a as o}from"./shared-e68b9c83.js";import{c as d}from"./shared-4e709717.js";import"./shared-66633ff7.js";import"./shared-e2c878c7.js";import"./shared-65dfd512.js";import"./shared-fab8c705.js";import{G as l}from"./shared-02945b27.js";import{P as c}from"./shared-4dc6d228.js";import{C as h}from"./shared-df730f90.js";import{N as m}from"./shared-39e3ae67.js";import{l as p}from"./shared-07134f93.js";import"./shared-ff79f3f9.js";import"./shared-5535f38f.js";import"./shared-b0f0e8b5.js";import"./shared-756034e4.js";import"./shared-60126eee.js";import"./shared-7f0a9790.js";import"./shared-6d45a07b.js";import"./shared-7684cb05.js";let f,u,$,v,y,b,_,x=e=>e;const g=r(n(h(o(m,"template-form"))));class j extends g{constructor(){super(...arguments),this.templates={},this.__cacheState="idle",this.__contentChoice="default"}static get properties(){return i(i({},super.properties),{},{__cacheState:{attribute:!1},__contentChoice:{attribute:!1}})}static get styles(){return[...super.styles,s(f||(f=x`#cached-content::part(input-field){max-height:15em}`))]}static get scopedElements(){return{"foxy-internal-confirm-dialog":customElements.get("foxy-internal-confirm-dialog"),"foxy-internal-sandbox":customElements.get("foxy-internal-sandbox"),"foxy-spinner":customElements.get("foxy-spinner"),"foxy-i18n":customElements.get("foxy-i18n"),"vaadin-text-field":customElements.get("vaadin-text-field"),"vaadin-text-area":customElements.get("vaadin-text-area"),"vaadin-button":customElements.get("vaadin-button"),"x-property-table":c,"x-choice":e,"x-group":l}}render(){var e,t;const{hiddenSelector:i,href:s,lang:r,ns:n}=this,o=s?"delete":"create",l=this.in("busy"),c=this.in("fail");return a(u||(u=x` <div class="space-y-m"> ${0} ${0} ${0} ${0} <div data-testid="spinner" class="${0}"> <foxy-spinner layout="vertical" class="m-auto p-m bg-base shadow-xs rounded-t-l rounded-b-l" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),i.matches("description",!0)?"":this.__renderDescription(),i.matches("content",!0)?"":this.__renderContent(),i.matches("timestamps",!0)||!s?"":this.__renderTimestamps(),i.matches(o)?"":this.__renderAction(o),d({"transition duration-500 ease-in-out absolute inset-0 flex":!0,"opacity-0 pointer-events-none":!l&&!c}),c?"error":l?"busy":"empty",r,n,null!==(t=null===(e=customElements.get("foxy-spinner"))||void 0===e?void 0:e.defaultNS)&&void 0!==t?t:"")}__renderDescription(){var e,t;const i="description";return a($||($=x` <div> ${0} <vaadin-text-field data-testid="${0}" class="w-full mb-s" label="${0}" ?disabled="${0}" ?readonly="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-text-field> ${0} </div> `),this.renderTemplateOrSlot(`${i}:before`),i,this.t(i),!this.in("idle")||this.disabledSelector.matches(i),this.readonlySelector.matches(i),null!==(t=null===(e=this.form)||void 0===e?void 0:e.description)&&void 0!==t?t:"",(e=>"Enter"===e.key&&this.submit()),(e=>{this.edit({description:e.currentTarget.value})}),this.renderTemplateOrSlot(`${i}:after`))}__renderContent(){var e;const i="content",s=!this.in("idle")||this.disabledSelector.matches(i),r=this.readonlySelector.matches(i),n=this.form.content_url?"url":this.form.content?"clipboard":this.__contentChoice;return a(v||(v=x` <div data-testid="content"> ${0} <x-group frame> <foxy-i18n class="${0}" lang="${0}" slot="header" key="template" ns="${0}"> </foxy-i18n> <x-choice data-testid="content-type" .value="${0}" .items="${0}" ?readonly="${0}" ?disabled="${0}" @change="${0}"> ${0} <div slot="url" ?hidden="${0}"> <div class="flex items-center mt-0 mb-m"> <vaadin-text-field data-testid="content-url" class="mr-s flex-grow" ?readonly="${0}" ?disabled="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-text-field> <vaadin-button data-testid="cache" class="relative" ?hidden="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n class="${0}" lang="${0}" key="cache" ns="${0}"> </foxy-i18n> <div class="${0}"> <foxy-spinner layout="no-label" class="m-auto" state="${0}" lang="${0}" ns="${0}"> </foxy-spinner> </div> </vaadin-button> </div> </div> <div slot="clipboard" ?hidden="${0}"> <vaadin-text-area id="cached-content" data-testid="content-clipboard" class="w-full mb-m" ?readonly="${0}" ?disabled="${0}" .value="${0}" @input="${0}"> </vaadin-text-area> </div> </x-choice> </x-group> ${0} </div> `),this.renderTemplateOrSlot("content:before"),d({"transition-colors":!0,"text-disabled":s}),this.lang,this.ns,n,["default","url","clipboard"],r,s,(e=>{e instanceof t&&(this.edit({content:"",content_url:""}),this.__contentChoice=e.detail)}),["default","url","clipboard"].map((e=>a(y||(y=x` <div slot="${0}-label" class="py-s leading-s"> <foxy-i18n class="block" lang="${0}" key="template_${0}" ns="${0}"> </foxy-i18n> <foxy-i18n class="block text-s opacity-70" lang="${0}" key="template_${0}_explainer" ns="${0}"> </foxy-i18n> </div> `),e,this.lang,e,this.ns,this.lang,e,this.ns))),"url"!==n,r,s,this.form.content_url,(e=>"Enter"===e.key&&this.submit()),(e=>{const t=e.currentTarget.value;this.edit({content:"",content_url:t})}),r||this.form.content_url!==(null===(e=this.data)||void 0===e?void 0:e.content_url),s||"busy"===this.__cacheState,this.__cache,d({"relative transition-opacity":!0,"opacity-0":"idle"!==this.__cacheState}),this.lang,this.ns,d({"absolute inset-0 flex transition-opacity":!0,"opacity-0":"idle"===this.__cacheState}),"fail"===this.__cacheState?"error":"busy",this.lang,this.ns,"clipboard"!==n,r,s,p(this.form.content),(e=>{const t=e.currentTarget.value;this.edit({content:t,content_url:""})}),this.renderTemplateOrSlot("content:after"))}__renderTimestamps(){const e="timestamps";return a(b||(b=x` <div> ${0} <x-property-table data-testid="timestamps" .items="${0}"> </x-property-table> ${0} </div> `),this.renderTemplateOrSlot(`${e}:before`),["date_modified","date_created"].map((e=>{var t;return{name:this.t(e),value:(null===(t=this.data)||void 0===t?void 0:t[e])?this.t("date",{value:new Date(this.data[e])}):""}})),this.renderTemplateOrSlot(`${e}:after`))}__renderAction(e){const{disabledSelector:t,href:i,lang:s,ns:r}=this,n=this.in({idle:{template:{dirty:"valid"}}}),o=this.in({idle:{snapshot:{dirty:"valid"}}}),d=!this.in("idle")||t.matches(e,!0),l=n||o;return a(_||(_=x` <div> ${0} <foxy-internal-confirm-dialog message="delete_prompt" confirm="delete" cancel="cancel" header="delete" theme="primary error" lang="${0}" ns="${0}" id="confirm" data-testid="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> <vaadin-button class="w-full" theme="${0}" data-testid="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n ns="${0}" key="${0}" lang="${0}"></foxy-i18n> </vaadin-button> ${0} </div> `),this.renderTemplateOrSlot(`${e}:before`),s,r,(e=>{e.detail.cancelled||this.delete()}),this.in("idle")?"primary "+(i?"error":"success"):"",e,this.in({idle:"template"})&&!l||d,(t=>{if("delete"===e){this.renderRoot.querySelector("#confirm").show(t.currentTarget)}else this.submit()}),r,e,s,this.renderTemplateOrSlot(`${e}:after`))}async __cache(){var e,t;this.__cacheState="busy";try{const i=null!==(t=null===(e=this.data)||void 0===e?void 0:e._links["fx:cache"].href)&&void 0!==t?t:"",s=await new j.API(this).fetch(i,{method:"POST"});this.__cacheState=s.ok?"idle":"fail"}catch(e){this.__cacheState="fail"}}}customElements.define("foxy-template-form",j);export{j as TemplateForm};
1
+ import"./shared-41272a67.js";import{C as t,b as e}from"./shared-4dc82211.js";import"./shared-a82f8b58.js";import"./shared-1d2cc2fb.js";import"./shared-701d5a7c.js";import"./foxy-spinner.js";import"./shared-27277bbb.js";import{_ as i,j as a,h as s}from"./shared-4ec62366.js";import"./shared-01cbd43c.js";import"./shared-85b8ae57.js";import"./shared-e69e1ca3.js";import{S as r,T as n,a as o}from"./shared-41f3f823.js";import{c as d}from"./shared-4e709717.js";import"./shared-f0515999.js";import"./shared-cd262e68.js";import"./shared-b161b269.js";import"./shared-269fb742.js";import{G as l}from"./shared-1fa5f9a9.js";import{P as c}from"./shared-7d337241.js";import{C as h}from"./shared-d2228670.js";import{N as m}from"./shared-8fc0b3ee.js";import{l as p}from"./shared-2558daa0.js";import"./shared-6974569c.js";import"./shared-bad032de.js";import"./shared-d3cf78c1.js";import"./shared-916ef4d3.js";import"./shared-2f8bf5d9.js";import"./shared-7cf914d7.js";import"./shared-8695b424.js";import"./shared-7684cb05.js";let f,u,$,v,y,b,_,x=t=>t;const g=r(n(h(o(m,"template-form"))));class j extends g{constructor(){super(...arguments),this.templates={},this.__cacheState="idle",this.__contentChoice="default"}static get properties(){return i(i({},super.properties),{},{__cacheState:{attribute:!1},__contentChoice:{attribute:!1}})}static get styles(){return[...super.styles,a(f||(f=x`#cached-content::part(input-field){max-height:15em}`))]}static get scopedElements(){return{"foxy-internal-confirm-dialog":customElements.get("foxy-internal-confirm-dialog"),"foxy-internal-sandbox":customElements.get("foxy-internal-sandbox"),"foxy-spinner":customElements.get("foxy-spinner"),"foxy-i18n":customElements.get("foxy-i18n"),"vaadin-text-field":customElements.get("vaadin-text-field"),"vaadin-text-area":customElements.get("vaadin-text-area"),"vaadin-button":customElements.get("vaadin-button"),"x-property-table":c,"x-choice":t,"x-group":l}}render(){var t,e;const{hiddenSelector:i,href:a,lang:r,ns:n}=this,o=a?"delete":"create",l=this.in("busy"),c=this.in("fail");return s(u||(u=x` <div class="space-y-m relative"> ${0} ${0} ${0} ${0} <div data-testid="spinner" class="${0}"> <foxy-spinner layout="vertical" class="m-auto p-m bg-base shadow-xs rounded-t-l rounded-b-l" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),i.matches("description",!0)?"":this.__renderDescription(),i.matches("content",!0)?"":this.__renderContent(),i.matches("timestamps",!0)||!a?"":this.__renderTimestamps(),i.matches(o)?"":this.__renderAction(o),d({"transition duration-500 ease-in-out absolute inset-0 flex":!0,"opacity-0 pointer-events-none":!l&&!c}),c?"error":l?"busy":"empty",r,n,null!==(e=null===(t=customElements.get("foxy-spinner"))||void 0===t?void 0:t.defaultNS)&&void 0!==e?e:"")}__renderDescription(){var t,e;const i="description";return s($||($=x` <div> ${0} <vaadin-text-field data-testid="${0}" class="w-full mb-s" label="${0}" ?disabled="${0}" ?readonly="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-text-field> ${0} </div> `),this.renderTemplateOrSlot(`${i}:before`),i,this.t(i),!this.in("idle")||this.disabledSelector.matches(i),this.readonlySelector.matches(i),null!==(e=null===(t=this.form)||void 0===t?void 0:t.description)&&void 0!==e?e:"",(t=>"Enter"===t.key&&this.submit()),(t=>{this.edit({description:t.currentTarget.value})}),this.renderTemplateOrSlot(`${i}:after`))}__renderContent(){var t;const i="content",a=!this.in("idle")||this.disabledSelector.matches(i),r=this.readonlySelector.matches(i),n=this.form.content_url?"url":this.form.content?"clipboard":this.__contentChoice;return s(v||(v=x` <div data-testid="content"> ${0} <x-group frame> <foxy-i18n class="${0}" lang="${0}" slot="header" key="template" ns="${0}"> </foxy-i18n> <x-choice data-testid="content-type" .value="${0}" .items="${0}" ?readonly="${0}" ?disabled="${0}" @change="${0}"> ${0} <div slot="url" ?hidden="${0}"> <div class="flex items-center mt-0 mb-m"> <vaadin-text-field data-testid="content-url" class="mr-s flex-grow" ?readonly="${0}" ?disabled="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-text-field> <vaadin-button data-testid="cache" class="relative" ?hidden="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n class="${0}" lang="${0}" key="cache" ns="${0}"> </foxy-i18n> <div class="${0}"> <foxy-spinner layout="no-label" class="m-auto" state="${0}" lang="${0}" ns="${0}"> </foxy-spinner> </div> </vaadin-button> </div> </div> <div slot="clipboard" ?hidden="${0}"> <vaadin-text-area id="cached-content" data-testid="content-clipboard" class="w-full mb-m" ?readonly="${0}" ?disabled="${0}" .value="${0}" @input="${0}"> </vaadin-text-area> </div> </x-choice> </x-group> ${0} </div> `),this.renderTemplateOrSlot("content:before"),d({"transition-colors":!0,"text-disabled":a}),this.lang,this.ns,n,["default","url","clipboard"],r,a,(t=>{t instanceof e&&(this.edit({content:"",content_url:""}),this.__contentChoice=t.detail)}),["default","url","clipboard"].map((t=>s(y||(y=x` <div slot="${0}-label" class="py-s leading-s"> <foxy-i18n class="block" lang="${0}" key="template_${0}" ns="${0}"> </foxy-i18n> <foxy-i18n class="block text-s opacity-70" lang="${0}" key="template_${0}_explainer" ns="${0}"> </foxy-i18n> </div> `),t,this.lang,t,this.ns,this.lang,t,this.ns))),"url"!==n,r,a,this.form.content_url,(t=>"Enter"===t.key&&this.submit()),(t=>{const e=t.currentTarget.value;this.edit({content:"",content_url:e})}),r||this.form.content_url!==(null===(t=this.data)||void 0===t?void 0:t.content_url),a||"busy"===this.__cacheState,this.__cache,d({"relative transition-opacity":!0,"opacity-0":"idle"!==this.__cacheState}),this.lang,this.ns,d({"absolute inset-0 flex transition-opacity":!0,"opacity-0":"idle"===this.__cacheState}),"fail"===this.__cacheState?"error":"busy",this.lang,this.ns,"clipboard"!==n,r,a,p(this.form.content),(t=>{const e=t.currentTarget.value;this.edit({content:e,content_url:""})}),this.renderTemplateOrSlot("content:after"))}__renderTimestamps(){const t="timestamps";return s(b||(b=x` <div> ${0} <x-property-table data-testid="timestamps" .items="${0}"> </x-property-table> ${0} </div> `),this.renderTemplateOrSlot(`${t}:before`),["date_modified","date_created"].map((t=>{var e;return{name:this.t(t),value:(null===(e=this.data)||void 0===e?void 0:e[t])?this.t("date",{value:new Date(this.data[t])}):""}})),this.renderTemplateOrSlot(`${t}:after`))}__renderAction(t){const{disabledSelector:e,href:i,lang:a,ns:r}=this,n=this.in({idle:{template:{dirty:"valid"}}}),o=this.in({idle:{snapshot:{dirty:"valid"}}}),d=!this.in("idle")||e.matches(t,!0),l=n||o;return s(_||(_=x` <div> ${0} <foxy-internal-confirm-dialog message="delete_prompt" confirm="delete" cancel="cancel" header="delete" theme="primary error" lang="${0}" ns="${0}" id="confirm" data-testid="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> <vaadin-button class="w-full" theme="${0}" data-testid="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n ns="${0}" key="${0}" lang="${0}"></foxy-i18n> </vaadin-button> ${0} </div> `),this.renderTemplateOrSlot(`${t}:before`),a,r,(t=>{t.detail.cancelled||this.delete()}),this.in("idle")?"primary "+(i?"error":"success"):"",t,this.in({idle:"template"})&&!l||d,(e=>{if("delete"===t){this.renderRoot.querySelector("#confirm").show(e.currentTarget)}else this.submit()}),r,t,a,this.renderTemplateOrSlot(`${t}:after`))}async __cache(){var t,e;this.__cacheState="busy";try{const i=null!==(e=null===(t=this.data)||void 0===t?void 0:t._links["fx:cache"].href)&&void 0!==e?e:"",a=await new j.API(this).fetch(i,{method:"POST"});this.__cacheState=a.ok?"idle":"fail"}catch(t){this.__cacheState="fail"}}}customElements.define("foxy-template-form",j);export{j as TemplateForm};
@@ -1 +1 @@
1
- import"./shared-9221e6b2.js";import"./foxy-spinner.js";import"./shared-11708514.js";import{h as t}from"./shared-63eaded9.js";import{C as e}from"./shared-df730f90.js";import{N as s}from"./shared-39e3ae67.js";import{T as i,a as r}from"./shared-e68b9c83.js";import{c as a}from"./shared-4e709717.js";import"./shared-46ee137f.js";import"./shared-ff79f3f9.js";import"./shared-60126eee.js";import"./shared-5535f38f.js";import"./shared-6d45a07b.js";import"./shared-7f0a9790.js";import"./shared-7684cb05.js";import"./shared-756034e4.js";let n,o,d,c,l,m,h,p,u,f,v,y,_=t=>t;const $=i(e(r(s,"transaction-card")));class x extends ${constructor(){super(...arguments),this.templates={},this.__currencyDisplay=""}render(){var e,s;const i=this.hiddenSelector,r=!i.matches("total",!0),d=!i.matches("status",!0);return t(n||(n=_` <div aria-busy="${0}" aria-live="polite" class="relative leading-m font-lumo text-m"> <div class="${0}"> ${0} ${0} ${0} </div> <div class="${0}"> <foxy-spinner data-testid="spinner" state="${0}" class="m-auto" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),this.in("busy"),a({"transition-opacity":!0,"opacity-0":!this.data}),r||d?t(o||(o=_` <div class="flex items-center justify-between"> ${0} ${0} </div> `),r?this.__renderTotal():"",d?this.__renderStatus():""):"",i.matches("description",!0)?"":this.__renderDescription(),i.matches("customer",!0)?"":this.__renderCustomer(),a({"pointer-events-none absolute inset-0 flex transition-opacity":!0,"opacity-0":!!this.data}),this.in("fail")?"error":this.in({idle:"template"})?"empty":"busy",this.lang,this.ns,null!==(s=null===(e=customElements.get("foxy-spinner"))||void 0===e?void 0:e.defaultNS)&&void 0!==s?s:"")}async _sendGet(){const t=await super._sendGet(),e=await super._fetch(t._links["fx:store"].href);return this.__currencyDisplay=e.use_international_currency_symbol?"code":"symbol",t}__renderTotal(){const e=this.data;let s;if(e){const i=`${e.total_order} ${e.currency_code}`,r=this.__currencyDisplay;s=t(d||(d=_` <foxy-i18n options="${0}" lang="${0}" key="price" ns="${0}"> </foxy-i18n> `),JSON.stringify({amount:i,currencyDisplay:r}),this.lang,this.ns)}else s=t(c||(c=_`&ZeroWidthSpace;`));return t(l||(l=_` <div data-testid="total"> ${0} <div class="font-semibold truncate">${0}</div> ${0} </div> `),this.renderTemplateOrSlot("total:before"),s,this.renderTemplateOrSlot("total:after"))}__renderStatus(){var e,s,i,r;const a=(null===(e=this.data)||void 0===e?void 0:e.status)||"completed";return t(m||(m=_` <div data-testid="status"> ${0} <div class="text-tertiary text-s flex items-center space-x-s"> <foxy-i18n options="${0}" lang="${0}" key="time" ns="${0}"> </foxy-i18n> <iron-icon data-testid="status-icon" class="icon-inline text-l ${0}" title="${0}" icon="${0}"> </iron-icon> </div> ${0} </div> `),this.renderTemplateOrSlot("status:before"),JSON.stringify({value:null===(s=this.data)||void 0===s?void 0:s.transaction_date}),this.lang,this.ns,null!==(i={completed:"text-success",rejected:"text-error",declined:"text-error"}[a])&&void 0!==i?i:"text-tertiary",this.t(`transaction_${a}`),null!==(r={completed:"icons:done-all",refunded:"icons:restore",rejected:"icons:highlight-off",declined:"icons:highlight-off",voided:"icons:remove-circle-outline"}[a])&&void 0!==r?r:"icons:schedule",this.renderTemplateOrSlot("status:after"))}__renderDescription(){var e,s;const i=null===(s=null===(e=this.data)||void 0===e?void 0:e._embedded)||void 0===s?void 0:s["fx:items"];let r;if(i){const e={most_expensive_item:[...i].sort(((t,e)=>t.price-e.price))[0],count:i.length};r=t(h||(h=_` <foxy-i18n options="${0}" lang="${0}" key="transaction_summary" ns="${0}"> </foxy-i18n> `),JSON.stringify(e),this.lang,this.ns)}else r=t(p||(p=_`&ZeroWidthSpace;`));return t(u||(u=_` <div data-testid="description"> ${0} <div class="text-s text-secondary truncate">${0}</div> ${0} </div> `),this.renderTemplateOrSlot("description:before"),r,this.renderTemplateOrSlot("description:after"))}__renderCustomer(){const e=this.data,s=e?t(f||(f=_`${0} ${0} (${0})`),e.customer_first_name,e.customer_last_name,e.customer_email):t(v||(v=_`&ZeroWidthSpace;`));return t(y||(y=_` <div data-testid="customer"> ${0} <div class="text-tertiary truncate text-s">${0}</div> ${0} </div> `),this.renderTemplateOrSlot("customer:before"),s,this.renderTemplateOrSlot("customer:after"))}}customElements.define("foxy-transaction-card",x);export{x as TransactionCard};
1
+ import"./shared-701d5a7c.js";import"./foxy-spinner.js";import"./shared-27277bbb.js";import{h as t}from"./shared-4ec62366.js";import{C as e}from"./shared-d2228670.js";import{N as s}from"./shared-8fc0b3ee.js";import{T as i,a as r}from"./shared-41f3f823.js";import{c as a}from"./shared-4e709717.js";import"./shared-01cbd43c.js";import"./shared-6974569c.js";import"./shared-2f8bf5d9.js";import"./shared-bad032de.js";import"./shared-8695b424.js";import"./shared-7cf914d7.js";import"./shared-7684cb05.js";import"./shared-916ef4d3.js";let n,o,d,c,l,m,h,p,u,f,v,y,_=t=>t;const $=i(e(r(s,"transaction-card")));class x extends ${constructor(){super(...arguments),this.templates={},this.__currencyDisplay=""}render(){var e,s;const i=this.hiddenSelector,r=!i.matches("total",!0),d=!i.matches("status",!0);return t(n||(n=_` <div aria-busy="${0}" aria-live="polite" class="relative leading-m font-lumo text-m"> <div class="${0}"> ${0} ${0} ${0} </div> <div class="${0}"> <foxy-spinner data-testid="spinner" state="${0}" class="m-auto" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),this.in("busy"),a({"transition-opacity":!0,"opacity-0":!this.data}),r||d?t(o||(o=_` <div class="flex items-center justify-between"> ${0} ${0} </div> `),r?this.__renderTotal():"",d?this.__renderStatus():""):"",i.matches("description",!0)?"":this.__renderDescription(),i.matches("customer",!0)?"":this.__renderCustomer(),a({"pointer-events-none absolute inset-0 flex transition-opacity":!0,"opacity-0":!!this.data}),this.in("fail")?"error":this.in({idle:"template"})?"empty":"busy",this.lang,this.ns,null!==(s=null===(e=customElements.get("foxy-spinner"))||void 0===e?void 0:e.defaultNS)&&void 0!==s?s:"")}async _sendGet(){const t=await super._sendGet(),e=await super._fetch(t._links["fx:store"].href);return this.__currencyDisplay=e.use_international_currency_symbol?"code":"symbol",t}__renderTotal(){const e=this.data;let s;if(e){const i=`${e.total_order} ${e.currency_code}`,r=this.__currencyDisplay;s=t(d||(d=_` <foxy-i18n options="${0}" lang="${0}" key="price" ns="${0}"> </foxy-i18n> `),JSON.stringify({amount:i,currencyDisplay:r}),this.lang,this.ns)}else s=t(c||(c=_`&ZeroWidthSpace;`));return t(l||(l=_` <div data-testid="total"> ${0} <div class="font-semibold truncate">${0}</div> ${0} </div> `),this.renderTemplateOrSlot("total:before"),s,this.renderTemplateOrSlot("total:after"))}__renderStatus(){var e,s,i,r;const a=(null===(e=this.data)||void 0===e?void 0:e.status)||"completed";return t(m||(m=_` <div data-testid="status"> ${0} <div class="text-tertiary text-s flex items-center space-x-s"> <foxy-i18n options="${0}" lang="${0}" key="time" ns="${0}"> </foxy-i18n> <iron-icon data-testid="status-icon" class="icon-inline text-l ${0}" title="${0}" icon="${0}"> </iron-icon> </div> ${0} </div> `),this.renderTemplateOrSlot("status:before"),JSON.stringify({value:null===(s=this.data)||void 0===s?void 0:s.transaction_date}),this.lang,this.ns,null!==(i={completed:"text-success",rejected:"text-error",declined:"text-error"}[a])&&void 0!==i?i:"text-tertiary",this.t(`transaction_${a}`),null!==(r={completed:"icons:done-all",refunded:"icons:restore",rejected:"icons:highlight-off",declined:"icons:highlight-off",voided:"icons:remove-circle-outline"}[a])&&void 0!==r?r:"icons:schedule",this.renderTemplateOrSlot("status:after"))}__renderDescription(){var e,s;const i=null===(s=null===(e=this.data)||void 0===e?void 0:e._embedded)||void 0===s?void 0:s["fx:items"];let r;if(i){const e={most_expensive_item:[...i].sort(((t,e)=>t.price-e.price))[0],count:i.length};r=t(h||(h=_` <foxy-i18n options="${0}" lang="${0}" key="transaction_summary" ns="${0}"> </foxy-i18n> `),JSON.stringify(e),this.lang,this.ns)}else r=t(p||(p=_`&ZeroWidthSpace;`));return t(u||(u=_` <div data-testid="description"> ${0} <div class="text-s text-secondary truncate">${0}</div> ${0} </div> `),this.renderTemplateOrSlot("description:before"),r,this.renderTemplateOrSlot("description:after"))}__renderCustomer(){const e=this.data,s=e?t(f||(f=_`${0} ${0} (${0})`),e.customer_first_name,e.customer_last_name,e.customer_email):t(v||(v=_`&ZeroWidthSpace;`));return t(y||(y=_` <div data-testid="customer"> ${0} <div class="text-tertiary truncate text-s">${0}</div> ${0} </div> `),this.renderTemplateOrSlot("customer:before"),s,this.renderTemplateOrSlot("customer:after"))}}customElements.define("foxy-transaction-card",x);export{x as TransactionCard};
@@ -1 +1 @@
1
- import"./shared-60126eee.js";import"./shared-46ee137f.js";import"./foxy-spinner.js";import"./shared-11708514.js";import{T as s}from"./shared-b9f18aaa.js";export{T as TransactionsTable}from"./shared-b9f18aaa.js";import"./shared-ff79f3f9.js";import"./shared-63eaded9.js";import"./shared-e68b9c83.js";import"./shared-5535f38f.js";import"./shared-a23cf7c8.js";import"./shared-df730f90.js";import"./shared-6d45a07b.js";import"./foxy-nucleon-element.js";import"./shared-39e3ae67.js";import"./shared-7f0a9790.js";import"./shared-7684cb05.js";import"./shared-756034e4.js";import"./shared-4e709717.js";customElements.define("foxy-transactions-table",s);
1
+ import"./shared-2f8bf5d9.js";import"./shared-01cbd43c.js";import"./foxy-spinner.js";import"./shared-27277bbb.js";import{T as s}from"./shared-a42088ee.js";export{T as TransactionsTable}from"./shared-a42088ee.js";import"./shared-6974569c.js";import"./shared-41f3f823.js";import"./shared-4ec62366.js";import"./shared-bad032de.js";import"./shared-312131d3.js";import"./shared-d2228670.js";import"./shared-8695b424.js";import"./foxy-nucleon-element.js";import"./shared-8fc0b3ee.js";import"./shared-7cf914d7.js";import"./shared-7684cb05.js";import"./shared-916ef4d3.js";import"./shared-4e709717.js";customElements.define("foxy-transactions-table",s);
@@ -1 +1 @@
1
- import"./shared-a040d79d.js";import"./shared-5a54a9bc.js";import"./shared-c5de42f7.js";import"./foxy-spinner.js";import"./shared-11708514.js";export{U as UserForm}from"./shared-253e59d2.js";import"./shared-8b20bc23.js";import"./shared-ff79f3f9.js";import"./shared-63eaded9.js";import"./shared-66633ff7.js";import"./shared-7f0a9790.js";import"./shared-5535f38f.js";import"./shared-df730f90.js";import"./shared-6d45a07b.js";import"./shared-e68b9c83.js";import"./shared-4e709717.js";import"./shared-46ee137f.js";import"./shared-60126eee.js";import"./shared-b5754a42.js";import"./shared-073cb8e9.js";import"./shared-223508ae.js";import"./shared-65dfd512.js";import"./shared-fab8c705.js";import"./shared-b0f0e8b5.js";import"./shared-756034e4.js";import"./shared-e2c878c7.js";import"./shared-02945b27.js";import"./shared-39e3ae67.js";import"./shared-7684cb05.js";import"./shared-b738ee96.js";
1
+ import"./shared-41272a67.js";import"./shared-a82f8b58.js";import"./shared-1d2cc2fb.js";import"./foxy-spinner.js";import"./shared-27277bbb.js";export{U as UserForm}from"./shared-5e9d8142.js";import"./shared-85b8ae57.js";import"./shared-6974569c.js";import"./shared-41f3f823.js";import"./shared-4ec62366.js";import"./shared-f0515999.js";import"./shared-7cf914d7.js";import"./shared-bad032de.js";import"./shared-d2228670.js";import"./shared-8695b424.js";import"./shared-4e709717.js";import"./shared-01cbd43c.js";import"./shared-2f8bf5d9.js";import"./shared-3a06bd7f.js";import"./shared-e69e1ca3.js";import"./shared-4dc82211.js";import"./shared-b161b269.js";import"./shared-269fb742.js";import"./shared-d3cf78c1.js";import"./shared-916ef4d3.js";import"./shared-cd262e68.js";import"./shared-1fa5f9a9.js";import"./shared-8fc0b3ee.js";import"./shared-7684cb05.js";import"./shared-b738ee96.js";
@@ -1 +1 @@
1
- import"./shared-5a54a9bc.js";import"./foxy-form-dialog.js";import{r as e}from"./shared-253e59d2.js";import"./foxy-spinner.js";import"./shared-11708514.js";import{h as s}from"./shared-63eaded9.js";import{T as a}from"./shared-a23cf7c8.js";import"./shared-8b20bc23.js";import"./shared-ff79f3f9.js";import"./shared-c5de42f7.js";import"./shared-66633ff7.js";import"./shared-7f0a9790.js";import"./shared-5535f38f.js";import"./shared-df730f90.js";import"./shared-6d45a07b.js";import"./shared-e68b9c83.js";import"./shared-4e709717.js";import"./shared-7684cb05.js";import"./shared-a040d79d.js";import"./shared-b5754a42.js";import"./shared-46ee137f.js";import"./shared-073cb8e9.js";import"./shared-223508ae.js";import"./shared-65dfd512.js";import"./shared-fab8c705.js";import"./shared-b0f0e8b5.js";import"./shared-756034e4.js";import"./shared-e2c878c7.js";import"./shared-02945b27.js";import"./shared-39e3ae67.js";import"./shared-b738ee96.js";import"./shared-60126eee.js";import"./foxy-nucleon-element.js";let t,r,o,d,i,m,n,l=e=>e;class p extends a{constructor(){super(...arguments),this.columns=[p.nameColumn,p.emailColumn,p.rolesColumn,p.lastUpdatedColumn,p.actionsColumn]}render(){return s(t||(t=l` <foxy-form-dialog parent="${0}" form="foxy-user-form" lang="${0}" ns="${0}" id="form"> </foxy-form-dialog> ${0} `),this.href,this.lang,this.ns,super.render())}}p.nameColumn={cell:e=>s(r||(r=l` <span data-testclass="name" class="text-m font-medium"> ${0} ${0} </span> `),e.data.first_name,e.data.last_name)},p.emailColumn={hideBelow:"md",cell:e=>s(o||(o=l` <span data-testclass="email" class="text-m text-secondary">${0}</span> `),e.data.email)},p.rolesColumn={cell:a=>s(d||(d=l` <div data-testclass="roles" class="flex space-x-s"> ${0} </div> `),["is_merchant","is_programmer","is_front_end_developer","is_designer"].map((t=>s(i||(i=l` <div class="${0}" style="width:1rem;height:1rem"> ${0} </div> `),a.data[t]?"":"text-disabled",e.find((e=>e.property===t)).icon))))},p.lastUpdatedColumn={hideBelow:"lg",cell:e=>s(m||(m=l` <span data-testclass="lastUpdated" class="text-m text-secondary font-tnum"> <foxy-i18n options="${0}" lang="${0}" key="date" ns="${0}"> </foxy-i18n> <foxy-i18n options="${0}" lang="${0}" key="time" ns="${0}"> </foxy-i18n> </span> `),JSON.stringify({value:e.data.date_modified}),e.lang,e.ns,JSON.stringify({value:e.data.date_modified}),e.lang,e.ns)},p.actionsColumn={cell:e=>s(n||(n=l` <vaadin-button data-testclass="actions" theme="tertiary small" @click="${0}"> <foxy-i18n lang="${0}" key="update" ns="${0}"></foxy-i18n> </vaadin-button> `),(s=>{const a=s.target,t=a.getRootNode().querySelector("#form");t.href=e.data._links.self.href,t.show(a)}),e.lang,e.ns)},customElements.define("foxy-users-table",p);export{p as UsersTable};
1
+ import"./shared-a82f8b58.js";import"./foxy-form-dialog.js";import{r as s}from"./shared-5e9d8142.js";import"./foxy-spinner.js";import"./shared-27277bbb.js";import{h as e}from"./shared-4ec62366.js";import{T as a}from"./shared-312131d3.js";import{a as t}from"./shared-41f3f823.js";import"./shared-85b8ae57.js";import"./shared-6974569c.js";import"./shared-1d2cc2fb.js";import"./shared-f0515999.js";import"./shared-7cf914d7.js";import"./shared-bad032de.js";import"./shared-d2228670.js";import"./shared-8695b424.js";import"./shared-4e709717.js";import"./shared-7684cb05.js";import"./shared-41272a67.js";import"./shared-3a06bd7f.js";import"./shared-01cbd43c.js";import"./shared-e69e1ca3.js";import"./shared-4dc82211.js";import"./shared-b161b269.js";import"./shared-269fb742.js";import"./shared-d3cf78c1.js";import"./shared-916ef4d3.js";import"./shared-cd262e68.js";import"./shared-1fa5f9a9.js";import"./shared-8fc0b3ee.js";import"./shared-b738ee96.js";import"./shared-2f8bf5d9.js";import"./foxy-nucleon-element.js";let r,o,d,i,m,n,l,p=s=>s;class f extends(t(a,"users-table")){constructor(){super(...arguments),this.columns=[f.nameColumn,f.emailColumn,f.rolesColumn,f.lastUpdatedColumn,f.actionsColumn]}render(){return e(r||(r=p` <foxy-form-dialog parent="${0}" form="foxy-user-form" lang="${0}" ns="${0}" id="form"> </foxy-form-dialog> ${0} `),this.href,this.lang,this.ns,super.render())}}f.nameColumn={cell:s=>e(o||(o=p` <span data-testclass="name" class="text-m font-medium"> ${0} ${0} </span> `),s.data.first_name,s.data.last_name)},f.emailColumn={hideBelow:"md",cell:s=>e(d||(d=p` <span data-testclass="email" class="text-m text-secondary">${0}</span> `),s.data.email)},f.rolesColumn={cell:a=>e(i||(i=p` <div data-testclass="roles" class="flex space-x-s"> ${0} </div> `),["is_merchant","is_programmer","is_front_end_developer","is_designer"].map((t=>e(m||(m=p` <div class="${0}" style="width:1rem;height:1rem"> ${0} </div> `),a.data[t]?"":"text-disabled",s.find((s=>s.property===t)).icon))))},f.lastUpdatedColumn={hideBelow:"lg",cell:s=>e(n||(n=p` <span data-testclass="lastUpdated" class="text-m text-secondary font-tnum"> <foxy-i18n options="${0}" lang="${0}" key="date" ns="${0}"> </foxy-i18n> <foxy-i18n options="${0}" lang="${0}" key="time" ns="${0}"> </foxy-i18n> </span> `),JSON.stringify({value:s.data.date_modified}),s.lang,s.ns,JSON.stringify({value:s.data.date_modified}),s.lang,s.ns)},f.actionsColumn={cell:s=>e(l||(l=p` <vaadin-button data-testclass="actions" theme="tertiary small" @click="${0}"> <foxy-i18n lang="${0}" key="update" ns="${0}"></foxy-i18n> </vaadin-button> `),(e=>{const a=e.target,t=a.getRootNode().querySelector("#form");t.href=s.data._links.self.href,t.show(a)}),s.lang,s.ns)},customElements.define("foxy-users-table",f);export{f as UsersTable};
@@ -1,4 +1,4 @@
1
- import{f as e,M as t,n as s,d as i,g as n,j as r,V as o,k as l,l as a,m as h,u as c,o as d,p as u,w as _,q as p,E as f,G as m,r as y,s as g,v as b,x as C,y as v,a as x,t as w,z as S,A as P,B as E,C as I,F as O,P as A,H as k,I as N,J as T,e as M,K as D,L as R,h as F}from"./shared-ff79f3f9.js";
1
+ import{f as e,M as t,n as s,c as i,d as n,g as r,V as o,j as l,k as a,l as h,u as c,m as d,o as u,w as _,p,E as f,G as m,q as y,r as g,s as b,D as C,t as v,v as x,x as w,P as S,y as P,z as E,e as I,A as O,h as A}from"./shared-6974569c.js";import{l as k,b as N,s as T,c as M,u as D,d as R,f as F}from"./shared-41f3f823.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -133,7 +133,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
133
133
  * Google as part of the polymer project is also subject to an additional IP
134
134
  * rights grant found at http://polymer.github.io/PATENTS.txt
135
135
  */
136
- const Ke=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Ge=d((e=>{const t=f(e);let s=Ke(t);return class extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return s.call(this).concat("disable-upgrade")}_initializeProperties(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,s,i){"disable-upgrade"==e?this.__isUpgradeDisabled&&null==s&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,_(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,s,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}));let Xe=window.ShadyCSS;const We=d((e=>{const t=m(f(e)),s=y?t:Ae(t),i=Ke(s),n={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class r extends s{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,s){(this.__dataAttributes&&this.__dataAttributes[e]||"disable-upgrade"===e)&&this.attributeChangedCallback(e,t,s,null)}setAttribute(e,t){if(g&&!this._legacyForceObservedAttributes){const s=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,s,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(g&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return g&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],b(this.prototype)),this.__observedAttributes):i.call(this).concat("disable-upgrade")}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,s,i){t!==s&&("disable-upgrade"==e?this.__isUpgradeDisabled&&null==s&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,_(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,s,i),this.attributeChanged(e,t,s)))}attributeChanged(e,t,s){}_initializeProperties(){if(C&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),g&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,s=e.length;t<s;t++){const s=e[t];this.__attributeReaction(s.name,null,s.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,s){this._propertyToAttribute(e,t,s)}serializeValueToAttribute(e,t,s){this._valueToNodeAttribute(s||this,e,t)}extend(e,t){if(!e||!t)return e||t;let s=Object.getOwnPropertyNames(t);for(let i,n=0;n<s.length&&(i=s[n]);n++){let s=Object.getOwnPropertyDescriptor(t,i);s&&Object.defineProperty(e,i,s)}return e}mixin(e,t){for(let s in t)e[s]=t[s];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){let t=this.constructor._contentForTemplate(e);return document.importNode(t,!0)}fire(e,t,s){s=s||{},t=null==t?{}:t;let i=new Event(e,{bubbles:void 0===s.bubbles||s.bubbles,cancelable:Boolean(s.cancelable),composed:void 0===s.composed||s.composed});i.detail=t;let n=s.node||this;return _(n).dispatchEvent(i),i}listen(e,t,s){e=e||this;let i=this.__boundListeners||(this.__boundListeners=new WeakMap),n=i.get(e);n||(n={},i.set(e,n));let r=t+s;n[r]||(n[r]=this._addMethodEventListenerToNode(e,t,s,this))}unlisten(e,t,s){e=e||this;let i=this.__boundListeners&&this.__boundListeners.get(e),n=t+s,r=i&&i[n];r&&(this._removeEventListenerFromNode(e,t,r),i[n]=null)}setScrollDirection(e,t){v(t||this,n[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=_(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=qe(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return qe(this).getEffectiveChildNodes()}queryDistributedElements(e){return qe(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let s,i=0;s=e[i];i++)s.nodeType!==Node.COMMENT_NODE&&t.push(s.textContent);return t.join("")}queryEffectiveChildren(e){let t=this.queryDistributedElements(e);return t&&t[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){let t=this.root.querySelector(e||"slot");return t?qe(t).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(e){const t=this;return t!==e&&_(t).contains(e)&&_(t).getRootNode()===_(e).getRootNode()}isLocalDescendant(e){return this.root===_(e).getRootNode()}scopeSubtree(e,t=!1){return function(e,t=!1){if(!Je||!Ve)return null;if(!Je.handlesDynamicScoping)return null;const s=Ve.ScopingShim;if(!s)return null;const i=s.scopeForNode(e),n=_(e).getRootNode(),r=e=>{if(!Ye(e,n))return;const t=Array.from(Je.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const r=t[e];if(!Ye(r,n))continue;const o=s.currentScopeForNode(r);o!==i&&(""!==o&&s.unscopeNode(r,o),s.scopeNode(r,i))}};if(r(e),t){const t=new MutationObserver((e=>{for(let t=0;t<e.length;t++){const s=e[t];for(let e=0;e<s.addedNodes.length;e++){const t=s.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&r(t)}}}));return t.observe(e,{childList:!0,subtree:!0}),t}return null}(e,t)}getComputedStyleValue(e){return Xe.getComputedStyleValue(this,e)}debounce(e,t,s){return this._debouncers=this._debouncers||{},this._debouncers[e]=x.debounce(this._debouncers[e],s>0?w.after(s):p,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return t>0?w.run(e.bind(this),t):~p.run(e.bind(this))}cancelAsync(e){e<0?p.cancel(~e):w.cancel(e)}create(e,t){let s=document.createElement(e);if(t)if(s.setProperties)s.setProperties(t);else for(let e in t)s[e]=t[e];return s}elementMatches(e,t){return je(t||this,e)}toggleAttribute(e,t){let s=this;return 3===arguments.length&&(s=arguments[2]),1==arguments.length&&(t=!s.hasAttribute(e)),t?(_(s).setAttribute(e,""),!0):(_(s).removeAttribute(e),!1)}toggleClass(e,t,s){s=s||this,1==arguments.length&&(t=!s.classList.contains(e)),t?s.classList.add(e):s.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,s,i){i=i||this,this.transform("translate3d("+e+","+t+","+s+")",i)}arrayDelete(e,t){let s;if(Array.isArray(e)){if(s=e.indexOf(t),s>=0)return e.splice(s,1)}else{if(s=S(this,e).indexOf(t),s>=0)return this.splice(e,s,1)}return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return r.prototype.is="",r})),Qe={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Ze={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},et=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Ze);
136
+ const Ke=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Ge=d((e=>{const t=f(e);let s=Ke(t);return class extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return s.call(this).concat("disable-upgrade")}_initializeProperties(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,s,i){"disable-upgrade"==e?this.__isUpgradeDisabled&&null==s&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,_(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,s,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}));let Xe=window.ShadyCSS;const We=d((e=>{const t=m(f(e)),s=y?t:Ae(t),i=Ke(s),n={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class r extends s{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,s){(this.__dataAttributes&&this.__dataAttributes[e]||"disable-upgrade"===e)&&this.attributeChangedCallback(e,t,s,null)}setAttribute(e,t){if(k&&!this._legacyForceObservedAttributes){const s=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,s,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(k&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return k&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],g(this.prototype)),this.__observedAttributes):i.call(this).concat("disable-upgrade")}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,s,i){t!==s&&("disable-upgrade"==e?this.__isUpgradeDisabled&&null==s&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,_(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,s,i),this.attributeChanged(e,t,s)))}attributeChanged(e,t,s){}_initializeProperties(){if(N&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),k&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,s=e.length;t<s;t++){const s=e[t];this.__attributeReaction(s.name,null,s.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,s){this._propertyToAttribute(e,t,s)}serializeValueToAttribute(e,t,s){this._valueToNodeAttribute(s||this,e,t)}extend(e,t){if(!e||!t)return e||t;let s=Object.getOwnPropertyNames(t);for(let i,n=0;n<s.length&&(i=s[n]);n++){let s=Object.getOwnPropertyDescriptor(t,i);s&&Object.defineProperty(e,i,s)}return e}mixin(e,t){for(let s in t)e[s]=t[s];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){let t=this.constructor._contentForTemplate(e);return document.importNode(t,!0)}fire(e,t,s){s=s||{},t=null==t?{}:t;let i=new Event(e,{bubbles:void 0===s.bubbles||s.bubbles,cancelable:Boolean(s.cancelable),composed:void 0===s.composed||s.composed});i.detail=t;let n=s.node||this;return _(n).dispatchEvent(i),i}listen(e,t,s){e=e||this;let i=this.__boundListeners||(this.__boundListeners=new WeakMap),n=i.get(e);n||(n={},i.set(e,n));let r=t+s;n[r]||(n[r]=this._addMethodEventListenerToNode(e,t,s,this))}unlisten(e,t,s){e=e||this;let i=this.__boundListeners&&this.__boundListeners.get(e),n=t+s,r=i&&i[n];r&&(this._removeEventListenerFromNode(e,t,r),i[n]=null)}setScrollDirection(e,t){b(t||this,n[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=_(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=qe(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return qe(this).getEffectiveChildNodes()}queryDistributedElements(e){return qe(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let s,i=0;s=e[i];i++)s.nodeType!==Node.COMMENT_NODE&&t.push(s.textContent);return t.join("")}queryEffectiveChildren(e){let t=this.queryDistributedElements(e);return t&&t[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){let t=this.root.querySelector(e||"slot");return t?qe(t).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(e){const t=this;return t!==e&&_(t).contains(e)&&_(t).getRootNode()===_(e).getRootNode()}isLocalDescendant(e){return this.root===_(e).getRootNode()}scopeSubtree(e,t=!1){return function(e,t=!1){if(!Je||!Ve)return null;if(!Je.handlesDynamicScoping)return null;const s=Ve.ScopingShim;if(!s)return null;const i=s.scopeForNode(e),n=_(e).getRootNode(),r=e=>{if(!Ye(e,n))return;const t=Array.from(Je.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const r=t[e];if(!Ye(r,n))continue;const o=s.currentScopeForNode(r);o!==i&&(""!==o&&s.unscopeNode(r,o),s.scopeNode(r,i))}};if(r(e),t){const t=new MutationObserver((e=>{for(let t=0;t<e.length;t++){const s=e[t];for(let e=0;e<s.addedNodes.length;e++){const t=s.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&r(t)}}}));return t.observe(e,{childList:!0,subtree:!0}),t}return null}(e,t)}getComputedStyleValue(e){return Xe.getComputedStyleValue(this,e)}debounce(e,t,s){return this._debouncers=this._debouncers||{},this._debouncers[e]=C.debounce(this._debouncers[e],s>0?v.after(s):p,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return t>0?v.run(e.bind(this),t):~p.run(e.bind(this))}cancelAsync(e){e<0?p.cancel(~e):v.cancel(e)}create(e,t){let s=document.createElement(e);if(t)if(s.setProperties)s.setProperties(t);else for(let e in t)s[e]=t[e];return s}elementMatches(e,t){return je(t||this,e)}toggleAttribute(e,t){let s=this;return 3===arguments.length&&(s=arguments[2]),1==arguments.length&&(t=!s.hasAttribute(e)),t?(_(s).setAttribute(e,""),!0):(_(s).removeAttribute(e),!1)}toggleClass(e,t,s){s=s||this,1==arguments.length&&(t=!s.classList.contains(e)),t?s.classList.add(e):s.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,s,i){i=i||this,this.transform("translate3d("+e+","+t+","+s+")",i)}arrayDelete(e,t){let s;if(Array.isArray(e)){if(s=e.indexOf(t),s>=0)return e.splice(s,1)}else{if(s=x(this,e).indexOf(t),s>=0)return this.splice(e,s,1)}return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return r.prototype.is="",r})),Qe={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Ze={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},et=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Ze);
137
137
  /**
138
138
  @license
139
139
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -142,7 +142,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
142
142
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
143
143
  Code distributed by Google as part of the polymer project is also
144
144
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
145
- */function tt(e,t){return ot({},We(t),e)}function st(e,t,s,i){!function(e,t,s){const i=e._noAccessors,n=Object.getOwnPropertyNames(e);for(let r=0;r<n.length;r++){let o=n[r];if(!(o in s))if(i)t[o]=e[o];else{let s=Object.getOwnPropertyDescriptor(e,o);s&&(s.configurable=!0,Object.defineProperty(t,o,s))}}}(t,e,i);for(let e in Qe)t[e]&&(s[e]=s[e]||[],s[e].push(t[e]))}function it(e,t,s){t=t||[];for(let i=e.length-1;i>=0;i--){let n=e[i];n?Array.isArray(n)?it(n,t):t.indexOf(n)<0&&(!s||s.indexOf(n)<0)&&t.unshift(n):console.warn("behavior is null, check for missing or 404 import")}return t}function nt(e,t){for(const s in t){const i=e[s],n=t[s];e[s]=!("value"in n)&&i&&"value"in i?Object.assign({value:i.value},n):n}}const rt=We(HTMLElement);function ot(e,t,s){let i;const n={};class r extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(i)for(let e,t=0;t<i.length;t++)e=i[t],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){const t={};if(i)for(let e=0;e<i.length;e++)nt(t,i[e].properties);return nt(t,e.properties),t}static get observers(){let t=[];if(i)for(let e,s=0;s<i.length;s++)e=i[s],e.observers&&(t=t.concat(e.observers));return e.observers&&(t=t.concat(e.observers)),t}created(){super.created();const e=n.created;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}_registered(){const e=r.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),C&&o(e);const t=Object.getPrototypeOf(this);let s=n.beforeRegister;if(s)for(let e=0;e<s.length;e++)s[e].call(t);if(s=n.registered,s)for(let e=0;e<s.length;e++)s[e].call(t)}}_applyListeners(){super._applyListeners();const e=n.listeners;if(e)for(let t=0;t<e.length;t++){const s=e[t];if(s)for(let e in s)this._addMethodEventListenerToNode(this,e,s[e])}}_ensureAttributes(){const e=n.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const s=e[t];for(let e in s)this._ensureAttribute(e,s[e])}super._ensureAttributes()}ready(){super.ready();let e=n.ready;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attached(){super.attached();let e=n.attached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}detached(){super.detached();let e=n.detached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attributeChanged(e,t,s){super.attributeChanged();let i=n.attributeChanged;if(i)for(let n=0;n<i.length;n++)i[n].call(this,e,t,s)}}if(s){Array.isArray(s)||(s=[s]);let e=t.prototype.behaviors;i=it(s,null,e),r.prototype.behaviors=e?e.concat(s):i}const o=t=>{i&&function(e,t,s){for(let i=0;i<t.length;i++)st(e,t[i],s,et)}(t,i,n),st(t,e,n,Ze)};return C||o(r.prototype),r.generatedFrom=e,r}const lt=function(e){let t;return t="function"==typeof e?e:lt.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
145
+ */function tt(e,t){return ot({},We(t),e)}function st(e,t,s,i){!function(e,t,s){const i=e._noAccessors,n=Object.getOwnPropertyNames(e);for(let r=0;r<n.length;r++){let o=n[r];if(!(o in s))if(i)t[o]=e[o];else{let s=Object.getOwnPropertyDescriptor(e,o);s&&(s.configurable=!0,Object.defineProperty(t,o,s))}}}(t,e,i);for(let e in Qe)t[e]&&(s[e]=s[e]||[],s[e].push(t[e]))}function it(e,t,s){t=t||[];for(let i=e.length-1;i>=0;i--){let n=e[i];n?Array.isArray(n)?it(n,t):t.indexOf(n)<0&&(!s||s.indexOf(n)<0)&&t.unshift(n):console.warn("behavior is null, check for missing or 404 import")}return t}function nt(e,t){for(const s in t){const i=e[s],n=t[s];e[s]=!("value"in n)&&i&&"value"in i?Object.assign({value:i.value},n):n}}const rt=We(HTMLElement);function ot(e,t,s){let i;const n={};class r extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(i)for(let e,t=0;t<i.length;t++)e=i[t],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){const t={};if(i)for(let e=0;e<i.length;e++)nt(t,i[e].properties);return nt(t,e.properties),t}static get observers(){let t=[];if(i)for(let e,s=0;s<i.length;s++)e=i[s],e.observers&&(t=t.concat(e.observers));return e.observers&&(t=t.concat(e.observers)),t}created(){super.created();const e=n.created;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}_registered(){const e=r.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),N&&o(e);const t=Object.getPrototypeOf(this);let s=n.beforeRegister;if(s)for(let e=0;e<s.length;e++)s[e].call(t);if(s=n.registered,s)for(let e=0;e<s.length;e++)s[e].call(t)}}_applyListeners(){super._applyListeners();const e=n.listeners;if(e)for(let t=0;t<e.length;t++){const s=e[t];if(s)for(let e in s)this._addMethodEventListenerToNode(this,e,s[e])}}_ensureAttributes(){const e=n.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const s=e[t];for(let e in s)this._ensureAttribute(e,s[e])}super._ensureAttributes()}ready(){super.ready();let e=n.ready;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attached(){super.attached();let e=n.attached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}detached(){super.detached();let e=n.detached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attributeChanged(e,t,s){super.attributeChanged();let i=n.attributeChanged;if(i)for(let n=0;n<i.length;n++)i[n].call(this,e,t,s)}}if(s){Array.isArray(s)||(s=[s]);let e=t.prototype.behaviors;i=it(s,null,e),r.prototype.behaviors=e?e.concat(s):i}const o=t=>{i&&function(e,t,s){for(let i=0;i<t.length;i++)st(e,t[i],s,et)}(t,i,n),st(t,e,n,Ze)};return N||o(r.prototype),r.generatedFrom=e,r}const lt=function(e){let t;return t="function"==typeof e?e:lt.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
146
146
  /**
147
147
  @license
148
148
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -171,7 +171,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
171
171
  Code distributed by Google as part of the polymer project is also
172
172
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
173
173
  */
174
- let dt=null;function ut(){return dt}ut.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ut,writable:!0}});const _t=P(ut),pt=ht(_t);const ft=P(class{});function mt(e,t){for(let s=0;s<t.length;s++){let i=t[s];if(Boolean(e)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)e?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(e)i.__polymerReplaced__=document.createComment("hidden-slot"),_(_(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const e=i.__polymerReplaced__;e&&_(_(e).parentNode).replaceChild(i,e)}else i.style&&(e?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=e,i._showHideChildren&&i._showHideChildren(e)}}class yt extends ft{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(e&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,(e=>{e.model=this,s(e)}));else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,s)}}_showHideChildren(e){mt(e,this.children)}_setUnmanagedPropertyToNode(e,t,s){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(e,t,s)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}yt.prototype.__dataHost,yt.prototype.__templatizeOptions,yt.prototype._methodHost,yt.prototype.__templatizeOwner,yt.prototype.__hostProps;const gt=ht(yt);function bt(e){let t=e.__dataHost;return t&&t._methodHost||t}function Ct(e,t,s){let i=s.mutableData?gt:yt;St.mixin&&(i=St.mixin(i));let n=class extends i{};return n.prototype.__templatizeOptions=s,n.prototype._bindTemplate(e),function(e,t,s,i){let n=s.hostProps||{};for(let t in i.instanceProps){delete n[t];let s=i.notifyInstanceProp;s&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wt(t,s)})}if(i.forwardHostProp&&t.__dataHost)for(let t in n)s.hasHostProps||(s.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,s){e.__dataHost._setPendingPropertyOrPath("_host_"+t,s[t],!0,!0)}})}(n,e,t,s),n}function vt(e,t,s,i){let n=s.forwardHostProp;if(n&&t.hasHostProps){const r="template"==e.localName;let o=t.templatizeTemplateClass;if(!o){if(r){let e=s.mutableData?pt:_t;class i extends e{}o=t.templatizeTemplateClass=i}else{const s=e.constructor;class i extends s{}o=t.templatizeTemplateClass=i}let l=t.hostProps;for(let e in l)o.prototype._addPropertyEffect("_host_"+e,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:xt(e,n)}),o.prototype._createNotifyingProperty("_host_"+e);I&&i&&function(e,t,s){const i=s.constructor._properties,{propertyEffects:n}=e,{instanceProps:r}=t;for(let e in n)if(!(i[e]||r&&r[e])){const t=n[e];for(let s=0;s<t.length;s++){const{part:i}=t[s].info;if(!i.signature||!i.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(t,s,i)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),r)!function(e,t){dt=e,Object.setPrototypeOf(e,t.prototype),new t,dt=null}(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const s=t.hostProps;for(let t in s)if(t="_host_"+t,t in e){const s=e[t];delete e[t],e.__data[t]=s}}}}function xt(e,t){return function(e,s,i){t.call(e.__templatizeOwner,s.substring("_host_".length),i[s])}}function wt(e,t){return function(e,s,i){t.call(e.__templatizeOwner,e,s,i[s])}}function St(e,t,s){if(E&&!bt(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(s=s||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:yt)._parseTemplate(e),n=i.templatizeInstanceClass;n||(n=Ct(e,i,s),i.templatizeInstanceClass=n);const r=bt(e);vt(e,i,s,r);let o=class extends n{};return o.prototype._methodHost=r,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=i.hostProps,o=o,o}function Pt(e,t){let s;for(;t;)if(s=t.__dataHost?t:t.__templatizeInstance){if(s.__dataHost==e)return s;t=s.__dataHost}else t=_(t).parentNode;return null}
174
+ let dt=null;function ut(){return dt}ut.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ut,writable:!0}});const _t=w(ut),pt=ht(_t);const ft=w(class{});function mt(e,t){for(let s=0;s<t.length;s++){let i=t[s];if(Boolean(e)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)e?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(e)i.__polymerReplaced__=document.createComment("hidden-slot"),_(_(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const e=i.__polymerReplaced__;e&&_(_(e).parentNode).replaceChild(i,e)}else i.style&&(e?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=e,i._showHideChildren&&i._showHideChildren(e)}}class yt extends ft{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(e&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,(e=>{e.model=this,s(e)}));else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,s)}}_showHideChildren(e){mt(e,this.children)}_setUnmanagedPropertyToNode(e,t,s){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(e,t,s)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}yt.prototype.__dataHost,yt.prototype.__templatizeOptions,yt.prototype._methodHost,yt.prototype.__templatizeOwner,yt.prototype.__hostProps;const gt=ht(yt);function bt(e){let t=e.__dataHost;return t&&t._methodHost||t}function Ct(e,t,s){let i=s.mutableData?gt:yt;St.mixin&&(i=St.mixin(i));let n=class extends i{};return n.prototype.__templatizeOptions=s,n.prototype._bindTemplate(e),function(e,t,s,i){let n=s.hostProps||{};for(let t in i.instanceProps){delete n[t];let s=i.notifyInstanceProp;s&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wt(t,s)})}if(i.forwardHostProp&&t.__dataHost)for(let t in n)s.hasHostProps||(s.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,s){e.__dataHost._setPendingPropertyOrPath("_host_"+t,s[t],!0,!0)}})}(n,e,t,s),n}function vt(e,t,s,i){let n=s.forwardHostProp;if(n&&t.hasHostProps){const r="template"==e.localName;let o=t.templatizeTemplateClass;if(!o){if(r){let e=s.mutableData?pt:_t;class i extends e{}o=t.templatizeTemplateClass=i}else{const s=e.constructor;class i extends s{}o=t.templatizeTemplateClass=i}let l=t.hostProps;for(let e in l)o.prototype._addPropertyEffect("_host_"+e,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:xt(e,n)}),o.prototype._createNotifyingProperty("_host_"+e);M&&i&&function(e,t,s){const i=s.constructor._properties,{propertyEffects:n}=e,{instanceProps:r}=t;for(let e in n)if(!(i[e]||r&&r[e])){const t=n[e];for(let s=0;s<t.length;s++){const{part:i}=t[s].info;if(!i.signature||!i.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(t,s,i)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),r)!function(e,t){dt=e,Object.setPrototypeOf(e,t.prototype),new t,dt=null}(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const s=t.hostProps;for(let t in s)if(t="_host_"+t,t in e){const s=e[t];delete e[t],e.__data[t]=s}}}}function xt(e,t){return function(e,s,i){t.call(e.__templatizeOwner,s.substring("_host_".length),i[s])}}function wt(e,t){return function(e,s,i){t.call(e.__templatizeOwner,e,s,i[s])}}function St(e,t,s){if(T&&!bt(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(s=s||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:yt)._parseTemplate(e),n=i.templatizeInstanceClass;n||(n=Ct(e,i,s),i.templatizeInstanceClass=n);const r=bt(e);vt(e,i,s,r);let o=class extends n{};return o.prototype._methodHost=r,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=i.hostProps,o=o,o}function Pt(e,t){let s;for(;t;)if(s=t.__dataHost?t:t.__templatizeInstance){if(s.__dataHost==e)return s;t=s.__dataHost}else t=_(t).parentNode;return null}
175
175
  /**
176
176
  @license
177
177
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -180,7 +180,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
180
180
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
181
181
  Code distributed by Google as part of the polymer project is also
182
182
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
183
- */let Et=!1;function It(){if(C&&!O){if(!Et){Et=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}
183
+ */let Et=!1;function It(){if(N&&!D){if(!Et){Et=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}
184
184
  /**
185
185
  @license
186
186
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -189,7 +189,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
189
189
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
190
190
  Code distributed by Google as part of the polymer project is also
191
191
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
192
- */const Ot=m(ct(P(HTMLElement)));customElements.define("dom-bind",class extends Ot{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),E)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,s,i){this.mutableData=!0}connectedCallback(){It()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){_(_(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver((()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()}));return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}});
192
+ */const Ot=m(ct(w(HTMLElement)));customElements.define("dom-bind",class extends Ot{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),T)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,s,i){this.mutableData=!0}connectedCallback(){It()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){_(_(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver((()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()}));return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}});
193
193
  /**
194
194
  @license
195
195
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -199,7 +199,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
199
199
  Code distributed by Google as part of the polymer project is also
200
200
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
201
201
  */
202
- const At=ct(A);class kt extends At{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!k,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e)}connectedCallback(){if(super.connectedCallback(),It()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=_(_(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e)}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=St(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(e,t){let s=this.__instances;for(let i,n=0;n<s.length&&(i=s[n]);n++)i.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,s){if(N(this.as,t)){let i=e[this.itemsIndexAs];t==this.as&&(this.items[i]=s);let n=T(this.as,`${JSCompiler_renameProperty("items",this)}.${i}`,t);this.notifyPath(n,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,s=this.__getMethodHost();return function(){return s[t].apply(s,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let s=0;s<t.length;s++)0===e.indexOf(t[s])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=x.debounce(this.__renderDebouncer,t>0?w.after(t):p,e.bind(this)),M(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),L()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),s=this.__calculateLimit(t.length);this.__updateInstances(e,s,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>this.__continueChunking()))),this._setRenderedItemCount(this.__instances.length),k&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let s=0;s<e.length;s++)t[s]=s;return this.__filterFn&&(t=t.filter(((t,s,i)=>this.__filterFn(e[t],s,i)))),this.__sortFn&&t.sort(((t,s)=>this.__sortFn(e[t],e[s]))),t}__calculateLimit(e){let t=e;const s=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-s,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-s,0),this.__chunkCount),t=Math.min(s+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,s){const i=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let t=this.__instances[n],r=s[n],o=e[r];i[r]=n,t?(t._setPendingProperty(this.as,o),t._setPendingProperty(this.indexAs,n),t._setPendingProperty(this.itemsIndexAs,r),t._flushProperties()):this.__insertInstance(o,n,r)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const s=_(t.root);for(let e=0;e<t.children.length;e++){let i=t.children[e];s.appendChild(i)}return t}__attachInstance(e,t){let s=this.__instances[e];t.insertBefore(s.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,s){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=s,new this.__ctor(i)}__insertInstance(e,t,s){const i=this.__stampInstance(e,t,s);let n=this.__instances[t+1],r=n?n.children[0]:this;return _(_(this).parentNode).insertBefore(i.root,r),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let s=e.slice(6),i=s.indexOf("."),n=i<0?s:s.substring(0,i);if(n==parseInt(n,10)){let e=i<0?"":s.substring(i+1);this.__handleObservedPaths(e);let r=this.__itemsIdxToInstIdx[n],o=this.__instances[r];if(o){let s=this.as+(e?"."+e:"");o._setPendingPropertyOrPath(s,t,!1,!0),o._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Pt(this.template,e)}}customElements.define(kt.is,kt);
202
+ const At=ct(S);class kt extends At{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!R,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e)}connectedCallback(){if(super.connectedCallback(),It()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=_(_(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e)}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=St(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(e,t){let s=this.__instances;for(let i,n=0;n<s.length&&(i=s[n]);n++)i.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,s){if(P(this.as,t)){let i=e[this.itemsIndexAs];t==this.as&&(this.items[i]=s);let n=E(this.as,`${JSCompiler_renameProperty("items",this)}.${i}`,t);this.notifyPath(n,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,s=this.__getMethodHost();return function(){return s[t].apply(s,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let s=0;s<t.length;s++)0===e.indexOf(t[s])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=C.debounce(this.__renderDebouncer,t>0?v.after(t):p,e.bind(this)),I(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),L()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),s=this.__calculateLimit(t.length);this.__updateInstances(e,s,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>this.__continueChunking()))),this._setRenderedItemCount(this.__instances.length),R&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let s=0;s<e.length;s++)t[s]=s;return this.__filterFn&&(t=t.filter(((t,s,i)=>this.__filterFn(e[t],s,i)))),this.__sortFn&&t.sort(((t,s)=>this.__sortFn(e[t],e[s]))),t}__calculateLimit(e){let t=e;const s=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-s,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-s,0),this.__chunkCount),t=Math.min(s+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,s){const i=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let t=this.__instances[n],r=s[n],o=e[r];i[r]=n,t?(t._setPendingProperty(this.as,o),t._setPendingProperty(this.indexAs,n),t._setPendingProperty(this.itemsIndexAs,r),t._flushProperties()):this.__insertInstance(o,n,r)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const s=_(t.root);for(let e=0;e<t.children.length;e++){let i=t.children[e];s.appendChild(i)}return t}__attachInstance(e,t){let s=this.__instances[e];t.insertBefore(s.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,s){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=s,new this.__ctor(i)}__insertInstance(e,t,s){const i=this.__stampInstance(e,t,s);let n=this.__instances[t+1],r=n?n.children[0]:this;return _(_(this).parentNode).insertBefore(i.root,r),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let s=e.slice(6),i=s.indexOf("."),n=i<0?s:s.substring(0,i);if(n==parseInt(n,10)){let e=i<0?"":s.substring(i+1);this.__handleObservedPaths(e);let r=this.__itemsIdxToInstIdx[n],o=this.__instances[r];if(o){let s=this.as+(e?"."+e:"");o._setPendingPropertyOrPath(s,t,!1,!0),o._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Pt(this.template,e)}}customElements.define(kt.is,kt);
203
203
  /**
204
204
  @license
205
205
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -209,7 +209,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
209
209
  Code distributed by Google as part of the polymer project is also
210
210
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
211
211
  */
212
- class Nt extends A{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=x.debounce(this.__renderDebouncer,p,(()=>this.__render())),M(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=_(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||_(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),It()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:_(e).querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!_(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=_(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(_(this).previousSibling!==t[t.length-1])for(let s,i=0;i<t.length&&(s=t[i]);i++)_(e).insertBefore(s,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){L()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),k&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}const Tt=D?class extends Nt{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(E&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const s=t._bindTemplate(this.__template,!0);s.runEffects=(e,t,s)=>{let i=this.__syncInfo;if(this.if)i&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(i.changedProps,t)),e(t,s);else if(this.__instance)if(i||(i=this.__syncInfo={runEffects:e,changedProps:{}}),s)for(const e in t){const t=R(e);i.changedProps[t]=this.__dataHost[t]}else Object.assign(i.changedProps,t)},this.__instance=t._stampTemplate(this.__template,s),_(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,mt(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}:class extends Nt{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=St(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[R(e)]=!0))}})),this.__instance=new this.__ctor,_(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=_(e[0]).parentNode;if(t){t=_(t);for(let s,i=0;i<e.length&&(s=e[i]);i++)t.removeChild(s)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let e=this.__invalidProps;if(e){this.__invalidProps=null;for(let t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(Tt.is,Tt);
212
+ class Nt extends S{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=C.debounce(this.__renderDebouncer,p,(()=>this.__render())),I(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=_(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||_(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),It()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:_(e).querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!_(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=_(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(_(this).previousSibling!==t[t.length-1])for(let s,i=0;i<t.length&&(s=t[i]);i++)_(e).insertBefore(s,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){L()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),R&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}const Tt=F?class extends Nt{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(T&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const s=t._bindTemplate(this.__template,!0);s.runEffects=(e,t,s)=>{let i=this.__syncInfo;if(this.if)i&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(i.changedProps,t)),e(t,s);else if(this.__instance)if(i||(i=this.__syncInfo={runEffects:e,changedProps:{}}),s)for(const e in t){const t=O(e);i.changedProps[t]=this.__dataHost[t]}else Object.assign(i.changedProps,t)},this.__instance=t._stampTemplate(this.__template,s),_(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,mt(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}:class extends Nt{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=St(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[O(e)]=!0))}})),this.__instance=new this.__ctor,_(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=_(e[0]).parentNode;if(t){t=_(t);for(let s,i=0;i<e.length&&(s=e[i]);i++)t.removeChild(s)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let e=this.__invalidProps;if(e){this.__invalidProps=null;for(let t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(Tt.is,Tt);
213
213
  /**
214
214
  @license
215
215
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -219,7 +219,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
219
219
  Code distributed by Google as part of the polymer project is also
220
220
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
221
221
  */
222
- let Mt,Dt=d((e=>{let t=f(e);return class extends t{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let s=t.path;if(s==JSCompiler_renameProperty("items",this)){let s=t.base||[],i=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),i){let e=Me(s,i);this.__applySplices(e)}this.__lastItems=s,this.__lastMulti=e}else if(t.path==`${JSCompiler_renameProperty("items",this)}.splices`)this.__applySplices(t.value.indexSplices);else{let e=s.slice(`${JSCompiler_renameProperty("items",this)}.`.length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(e){let t=this.__selectedMap;for(let s=0;s<e.length;s++){let i=e[s];t.forEach(((e,s)=>{e<i.index||(e>=i.index+i.removed.length?t.set(s,e+i.addedCount-i.removed.length):t.set(s,-1))}));for(let e=0;e<i.addedCount;e++){let s=i.index+e;t.has(this.items[s])&&t.set(this.items[s],s)}}this.__updateLinks();let s=0;t.forEach(((e,i)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null,t.delete(i)):s++}))}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let e=0;this.__selectedMap.forEach((t=>{t>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${t}`,`${JSCompiler_renameProperty("selected",this)}.${e++}`)}))}else this.__selectedMap.forEach((e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${e}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${e}`)}))}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let t=this.__selectedIndexForItemIndex(e);if(t>=0){let e=0;this.__selectedMap.forEach(((s,i)=>{t==e++&&this.deselect(i)}))}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.slice(`${JSCompiler_renameProperty("selected",this)}.`.length),10)}deselect(e){let t=this.__selectedMap.get(e);if(t>=0){let s;this.__selectedMap.delete(e),this.multi&&(s=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){let t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}}))(A);class Rt extends Dt{static get is(){return"array-selector"}static get template(){return null}}customElements.define(Rt.is,Rt),Mt=ht._mutablePropertyChange;const Ft={properties:{mutableData:Boolean},_shouldPropertyChange(e,t,s){return Mt(this,e,t,s,this.mutableData)}},Lt=We(HTMLElement).prototype,Ht=F`
222
+ let Mt,Dt=d((e=>{let t=f(e);return class extends t{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let s=t.path;if(s==JSCompiler_renameProperty("items",this)){let s=t.base||[],i=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),i){let e=Me(s,i);this.__applySplices(e)}this.__lastItems=s,this.__lastMulti=e}else if(t.path==`${JSCompiler_renameProperty("items",this)}.splices`)this.__applySplices(t.value.indexSplices);else{let e=s.slice(`${JSCompiler_renameProperty("items",this)}.`.length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(e){let t=this.__selectedMap;for(let s=0;s<e.length;s++){let i=e[s];t.forEach(((e,s)=>{e<i.index||(e>=i.index+i.removed.length?t.set(s,e+i.addedCount-i.removed.length):t.set(s,-1))}));for(let e=0;e<i.addedCount;e++){let s=i.index+e;t.has(this.items[s])&&t.set(this.items[s],s)}}this.__updateLinks();let s=0;t.forEach(((e,i)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null,t.delete(i)):s++}))}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let e=0;this.__selectedMap.forEach((t=>{t>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${t}`,`${JSCompiler_renameProperty("selected",this)}.${e++}`)}))}else this.__selectedMap.forEach((e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${e}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${e}`)}))}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let t=this.__selectedIndexForItemIndex(e);if(t>=0){let e=0;this.__selectedMap.forEach(((s,i)=>{t==e++&&this.deselect(i)}))}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.slice(`${JSCompiler_renameProperty("selected",this)}.`.length),10)}deselect(e){let t=this.__selectedMap.get(e);if(t>=0){let s;this.__selectedMap.delete(e),this.multi&&(s=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){let t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}}))(S);class Rt extends Dt{static get is(){return"array-selector"}static get template(){return null}}customElements.define(Rt.is,Rt),Mt=ht._mutablePropertyChange;const Ft={properties:{mutableData:Boolean},_shouldPropertyChange(e,t,s){return Mt(this,e,t,s,this.mutableData)}},Lt=We(HTMLElement).prototype,Ht=A`
223
223
  <custom-style>
224
224
  <style is="custom-style">
225
225
  [hidden] {
@@ -602,7 +602,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
602
602
  part of the polymer project is also subject to an additional IP rights grant
603
603
  found at http://polymer.github.io/PATENTS.txt
604
604
  */
605
- lt({_template:F`
605
+ lt({_template:A`
606
606
  <style>
607
607
  :host {
608
608
  @apply --layout-inline;
@@ -1,4 +1,4 @@
1
- import{k as e,N as t,q as n,u as o,v as s}from"./shared-63eaded9.js";
1
+ import{k as e,N as t,q as n,u as o,v as s}from"./shared-4ec62366.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -12,4 +12,4 @@ import{k as e,N as t,q as n,u as o,v as s}from"./shared-63eaded9.js";
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- const r=(e,o)=>{const s=e.startNode.parentNode,r=void 0===o?e.endNode:o.startNode,l=s.insertBefore(n(),r);s.insertBefore(n(),r);const a=new t(e.options);return a.insertAfterNode(l),a},l=(e,t)=>(e.setValue(t),e.commit(),e),a=(e,t,n)=>{const s=e.startNode.parentNode,r=n?n.startNode:e.endNode,l=t.endNode.nextSibling;l!==r&&o(s,t.startNode,l,r)},d=e=>{s(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},i=(e,t,n)=>{const o=new Map;for(let s=t;s<=n;s++)o.set(e[s],s);return o},f=new WeakMap,N=new WeakMap,c=e(((e,n,o)=>{let s;return void 0===o?o=n:void 0!==n&&(s=n),n=>{if(!(n instanceof t))throw new Error("repeat can only be used in text bindings");const c=f.get(n)||[],u=N.get(n)||[],p=[],g=[],h=[];let v,w,b=0;for(const t of e)h[b]=s?s(t,b):b,g[b]=o(t,b),b++;let m=0,x=c.length-1,k=0,M=g.length-1;for(;m<=x&&k<=M;)if(null===c[m])m++;else if(null===c[x])x--;else if(u[m]===h[k])p[k]=l(c[m],g[k]),m++,k++;else if(u[x]===h[M])p[M]=l(c[x],g[M]),x--,M--;else if(u[m]===h[M])p[M]=l(c[m],g[M]),a(n,c[m],p[M+1]),m++,M--;else if(u[x]===h[k])p[k]=l(c[x],g[k]),a(n,c[x],c[m]),x--,k++;else if(void 0===v&&(v=i(h,k,M),w=i(u,m,x)),v.has(u[m]))if(v.has(u[x])){const e=w.get(h[k]),t=void 0!==e?c[e]:null;if(null===t){const e=r(n,c[m]);l(e,g[k]),p[k]=e}else p[k]=l(t,g[k]),a(n,t,c[m]),c[e]=null;k++}else d(c[x]),x--;else d(c[m]),m++;for(;k<=M;){const e=r(n,p[M+1]);l(e,g[k]),p[k++]=e}for(;m<=x;){const e=c[m++];null!==e&&d(e)}f.set(n,p),N.set(n,h)}}));export{c as r};
15
+ const r=(e,o)=>{const s=e.startNode.parentNode,r=void 0===o?e.endNode:o.startNode,l=s.insertBefore(n(),r);s.insertBefore(n(),r);const i=new t(e.options);return i.insertAfterNode(l),i},l=(e,t)=>(e.setValue(t),e.commit(),e),i=(e,t,n)=>{const s=e.startNode.parentNode,r=n?n.startNode:e.endNode,l=t.endNode.nextSibling;l!==r&&o(s,t.startNode,l,r)},a=e=>{s(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},d=(e,t,n)=>{const o=new Map;for(let s=t;s<=n;s++)o.set(e[s],s);return o},f=new WeakMap,N=new WeakMap,c=e(((e,n,o)=>{let s;return void 0===o?o=n:void 0!==n&&(s=n),n=>{if(!(n instanceof t))throw new Error("repeat can only be used in text bindings");const c=f.get(n)||[],u=N.get(n)||[],p=[],g=[],h=[];let v,w,b=0;for(const t of e)h[b]=s?s(t,b):b,g[b]=o(t,b),b++;let m=0,x=c.length-1,k=0,M=g.length-1;for(;m<=x&&k<=M;)if(null===c[m])m++;else if(null===c[x])x--;else if(u[m]===h[k])p[k]=l(c[m],g[k]),m++,k++;else if(u[x]===h[M])p[M]=l(c[x],g[M]),x--,M--;else if(u[m]===h[M])p[M]=l(c[m],g[M]),i(n,c[m],p[M+1]),m++,M--;else if(u[x]===h[k])p[k]=l(c[x],g[k]),i(n,c[x],c[m]),x--,k++;else if(void 0===v&&(v=d(h,k,M),w=d(u,m,x)),v.has(u[m]))if(v.has(u[x])){const e=w.get(h[k]),t=void 0!==e?c[e]:null;if(null===t){const e=r(n,c[m]);l(e,g[k]),p[k]=e}else p[k]=l(t,g[k]),i(n,t,c[m]),c[e]=null;k++}else a(c[x]),x--;else a(c[m]),m++;for(;k<=M;){const e=r(n,p[M+1]);l(e,g[k]),p[k++]=e}for(;m<=x;){const e=c[m++];null!==e&&a(e)}f.set(n,p),N.set(n,h)}}));export{c as r};
@@ -1,4 +1,4 @@
1
- import{h as t,D as e}from"./shared-ff79f3f9.js";import{T as l}from"./shared-a040d79d.js";const i=t`<dom-module id="lumo-email-field" theme-for="vaadin-email-field">
1
+ import{h as t}from"./shared-6974569c.js";import{T as e}from"./shared-41272a67.js";import{D as l}from"./shared-41f3f823.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 */
@@ -13,13 +13,13 @@ import{h as t,D as e}from"./shared-ff79f3f9.js";import{T as l}from"./shared-a040
13
13
  }
14
14
  </style>
15
15
  </template>
16
- </dom-module>`;document.head.appendChild(i.content);
16
+ </dom-module>`;document.head.appendChild(r.content);
17
17
  /**
18
18
  @license
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 r=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 r=t`<dom-module id="vaadin-email-field-template">
44
44
  </style>
45
45
  </template>
46
46
 
47
- </dom-module>`;let a;document.head.appendChild(r.content);class o extends l{static get is(){return"vaadin-email-field"}static get version(){return"2.9.2"}static get template(){if(!a){a=super.template.cloneNode(!0);const t=e.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);
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.9.2"}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 +1 @@
1
- import"./shared-5a54a9bc.js";import"./shared-11708514.js";import{_ as t,h as e}from"./shared-63eaded9.js";import{D as s}from"./shared-66633ff7.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.confirm="confirm",this.message="message",this.cancel="cancel",this.theme="primary"}static get properties(){return t(t({},super.properties),{},{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}"> </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.__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-a82f8b58.js";import"./shared-27277bbb.js";import{_ as t,h as e}from"./shared-4ec62366.js";import{D as s}from"./shared-f0515999.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.confirm="confirm",this.message="message",this.cancel="cancel",this.theme="primary"}static get properties(){return t(t({},super.properties),{},{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}"> </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.__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()}});
@@ -0,0 +1 @@
1
+ import{_ as r}from"./shared-4ec62366.js";import{p as s}from"./shared-27277bbb.js";function t(t){var n;const o=s(t),a=null!==(n={y:"yearly",m:"monthly",w:"weekly",d:"daily"}[o.units])&&void 0!==n?n:o.units;return r(r({},o),{},{units:a})}export{t as p};
@@ -1 +1 @@
1
- import{L as e,_ as s,h as t}from"./shared-63eaded9.js";import{b as r}from"./shared-e68b9c83.js";let o,a=e=>e;class d 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(o||(o=a` <section class="space-y-s font-lumo antialiased"> <h3 class="${0}"> <slot name="header"></slot> </h3> <div class="rounded-t-l rounded-b-l ${0}"> <slot></slot> </div> </section> `),"text-s font-medium text-secondary leading-none "+(this.frame?"":"pl-m"),this.frame?"border border-contrast-10 overflow-hidden":"")}}export{d as G};
1
+ import{L as e,_ as s,h as t}from"./shared-4ec62366.js";import{w as r}from"./shared-41f3f823.js";let o,a=e=>e;class n 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(o||(o=a` <section class="space-y-s font-lumo antialiased"> <h3 class="${0}"> <slot name="header"></slot> </h3> <div class="rounded-t-l rounded-b-l ${0}"> <slot></slot> </div> </section> `),"text-s font-medium text-secondary leading-none "+(this.frame?"":"pl-m"),this.frame?"border border-contrast-10 overflow-hidden":"")}}export{n as G};
@@ -1,4 +1,4 @@
1
- import{k as e,E as n,N as t,B as i,P as s,A as r}from"./shared-63eaded9.js";
1
+ import{k as e,E as n,N as t,B as i,P as s,A as r}from"./shared-4ec62366.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.