@foxy.io/elements 1.16.0-beta.11 → 1.16.0-beta.12

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 (183) 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-api-browser.js +3 -3
  5. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  6. package/dist/cdn/foxy-attribute-card.js +1 -1
  7. package/dist/cdn/foxy-attribute-form.js +1 -1
  8. package/dist/cdn/foxy-cancellation-form.js +1 -1
  9. package/dist/cdn/foxy-collection-page.js +1 -1
  10. package/dist/cdn/foxy-collection-pages.js +1 -1
  11. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  12. package/dist/cdn/foxy-coupon-card.js +1 -1
  13. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  14. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  15. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  16. package/dist/cdn/foxy-coupon-form.js +1 -1
  17. package/dist/cdn/foxy-custom-field-card.js +1 -1
  18. package/dist/cdn/foxy-custom-field-form.js +1 -1
  19. package/dist/cdn/foxy-customer-card.js +1 -1
  20. package/dist/cdn/foxy-customer-form.js +1 -1
  21. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  22. package/dist/cdn/foxy-customer-portal.js +3 -3
  23. package/dist/cdn/foxy-customer.js +1 -1
  24. package/dist/cdn/foxy-customers-table.js +1 -1
  25. package/dist/cdn/foxy-discount-builder.js +1 -1
  26. package/dist/cdn/foxy-discount-card.js +1 -1
  27. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  28. package/dist/cdn/foxy-donation.js +1 -1
  29. package/dist/cdn/foxy-email-template-form.js +1 -1
  30. package/dist/cdn/foxy-error-entry-card.js +1 -1
  31. package/dist/cdn/foxy-form-dialog.js +1 -1
  32. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  33. package/dist/cdn/foxy-gift-card-card.js +1 -1
  34. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  35. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  36. package/dist/cdn/foxy-gift-card-form.js +1 -1
  37. package/dist/cdn/foxy-i18n.js +1 -1
  38. package/dist/cdn/foxy-item-card.js +1 -1
  39. package/dist/cdn/foxy-item-form.js +1 -1
  40. package/dist/cdn/foxy-item-option-card.js +1 -1
  41. package/dist/cdn/foxy-item-option-form.js +1 -1
  42. package/dist/cdn/foxy-items-form.js +1 -1
  43. package/dist/cdn/foxy-pagination.js +1 -1
  44. package/dist/cdn/foxy-payment-card.js +1 -1
  45. package/dist/cdn/foxy-payment-method-card.js +1 -1
  46. package/dist/cdn/foxy-query-builder.js +1 -1
  47. package/dist/cdn/foxy-report-form.js +6 -6
  48. package/dist/cdn/foxy-reports-table.js +6 -6
  49. package/dist/cdn/foxy-shipment-card.js +3 -7
  50. package/dist/cdn/foxy-sign-in-form.js +1 -1
  51. package/dist/cdn/foxy-spinner.js +2 -2
  52. package/dist/cdn/foxy-subscription-card.js +1 -1
  53. package/dist/cdn/foxy-subscription-form.js +4 -4
  54. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  55. package/dist/cdn/foxy-table.js +1 -1
  56. package/dist/cdn/foxy-tax-card.js +1 -1
  57. package/dist/cdn/foxy-tax-form.js +1 -1
  58. package/dist/cdn/foxy-template-config-form.js +1 -1
  59. package/dist/cdn/foxy-template-form.js +1 -1
  60. package/dist/cdn/foxy-transaction-card.js +1 -1
  61. package/dist/cdn/foxy-transaction.js +1 -64
  62. package/dist/cdn/foxy-transactions-table.js +1 -1
  63. package/dist/cdn/foxy-user-form.js +1 -1
  64. package/dist/cdn/foxy-users-table.js +1 -1
  65. package/dist/cdn/foxy-webhook-card.js +1 -1
  66. package/dist/cdn/foxy-webhook-form.js +1 -1
  67. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  68. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  69. package/dist/cdn/{shared-31f90f98.js → shared-04c2479b.js} +1 -1
  70. package/dist/cdn/{shared-1d67ea08.js → shared-0d72f6f1.js} +1 -1
  71. package/dist/cdn/{shared-59a3f7dd.js → shared-0fbac4a9.js} +1 -1
  72. package/dist/cdn/{shared-8be42cfd.js → shared-1424c48d.js} +1 -1
  73. package/dist/cdn/{shared-be26193a.js → shared-1dc8edbe.js} +1 -1
  74. package/dist/cdn/{shared-79bfb59a.js → shared-2394b415.js} +1 -1
  75. package/dist/cdn/{shared-fd789489.js → shared-26980c97.js} +4 -4
  76. package/dist/cdn/{shared-e82cc599.js → shared-3bcc3800.js} +1 -1
  77. package/dist/cdn/{shared-7f264e87.js → shared-52a534b9.js} +1 -1
  78. package/dist/cdn/{shared-4d1b8098.js → shared-57dd3cdb.js} +1 -1
  79. package/dist/cdn/{shared-8c1f3b5d.js → shared-58a0bad5.js} +1 -1
  80. package/dist/cdn/{shared-c0c5d201.js → shared-5aab96dd.js} +2 -2
  81. package/dist/cdn/{shared-d6444ed0.js → shared-5d5c1295.js} +1 -1
  82. package/dist/cdn/{shared-a4f49e9c.js → shared-5df36a69.js} +2 -2
  83. package/dist/cdn/{shared-7b02ce85.js → shared-61893181.js} +1 -1
  84. package/dist/cdn/{shared-f5419ce4.js → shared-61b5e5e2.js} +1 -1
  85. package/dist/cdn/{shared-41df4012.js → shared-62539ace.js} +1 -1
  86. package/dist/cdn/{shared-68ebb1d1.js → shared-69041c94.js} +1 -1
  87. package/dist/cdn/{shared-5323ef71.js → shared-6a4f3dd7.js} +1 -1
  88. package/dist/cdn/shared-7c8bb60c.js +1 -1
  89. package/dist/cdn/{shared-32fe791c.js → shared-80ca55ed.js} +1 -1
  90. package/dist/cdn/{shared-a8bf2435.js → shared-85f1c22d.js} +1 -1
  91. package/dist/cdn/{shared-cfb3d161.js → shared-9419901c.js} +1 -1
  92. package/dist/cdn/{shared-e05209a8.js → shared-950db2d5.js} +1 -1
  93. package/dist/cdn/{shared-d1fae22a.js → shared-a525522f.js} +1 -1
  94. package/dist/cdn/{shared-cf9696be.js → shared-abe7759b.js} +1 -1
  95. package/dist/cdn/{shared-0c806443.js → shared-ad0158dd.js} +1 -1
  96. package/dist/cdn/{shared-17437844.js → shared-adc4bb5b.js} +1 -1
  97. package/dist/cdn/{shared-b76a1f1d.js → shared-afbb10c5.js} +1 -1
  98. package/dist/cdn/{shared-322d50e3.js → shared-b35522f2.js} +1 -1
  99. package/dist/cdn/{shared-3a31785e.js → shared-bdb8e495.js} +1 -1
  100. package/dist/cdn/{shared-f0a57ef6.js → shared-bf51c28e.js} +1 -1
  101. package/dist/cdn/{shared-6762b56b.js → shared-c5d932fe.js} +1 -1
  102. package/dist/cdn/{shared-b2b3f0e0.js → shared-d6353669.js} +2 -2
  103. package/dist/cdn/shared-d996b713.js +1 -0
  104. package/dist/cdn/shared-ebb53e4e.js +1 -0
  105. package/dist/cdn/{shared-b9607e68.js → shared-ec2dd0c8.js} +1 -1
  106. package/dist/cdn/{shared-7e960a32.js → shared-f3e32aee.js} +1 -1
  107. package/dist/cdn/{shared-90553b38.js → shared-fd54992f.js} +1 -1
  108. package/dist/cdn/translations/api-browser/en.json +3 -0
  109. package/dist/elements/internal/InternalAsyncDetailsControl/InternalAsyncDetailsControl.d.ts +1 -0
  110. package/dist/elements/internal/InternalAsyncDetailsControl/InternalAsyncDetailsControl.js +10 -1
  111. package/dist/elements/internal/InternalAsyncDetailsControl/InternalAsyncDetailsControl.js.map +1 -1
  112. package/dist/elements/internal/InternalAsyncDetailsControl/index.d.ts +1 -0
  113. package/dist/elements/internal/InternalAsyncDetailsControl/index.js +1 -0
  114. package/dist/elements/internal/InternalAsyncDetailsControl/index.js.map +1 -1
  115. package/dist/elements/public/ApiBrowser/ApiBrowser.d.ts +1 -1
  116. package/dist/elements/public/ApiBrowser/ApiBrowser.js +12 -6
  117. package/dist/elements/public/ApiBrowser/ApiBrowser.js.map +1 -1
  118. package/dist/elements/public/ApiBrowser/index.d.ts +1 -0
  119. package/dist/elements/public/ApiBrowser/index.js +1 -0
  120. package/dist/elements/public/ApiBrowser/index.js.map +1 -1
  121. package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/InternalApiBrowserResourceForm.d.ts +7 -0
  122. package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/InternalApiBrowserResourceForm.js +15 -3
  123. package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/InternalApiBrowserResourceForm.js.map +1 -1
  124. package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.d.ts +1 -0
  125. package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.js +1 -0
  126. package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.js.map +1 -1
  127. package/dist/elements/public/CouponForm/CouponForm.js +1 -0
  128. package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
  129. package/dist/elements/public/ItemCard/ItemCard.d.ts +6 -0
  130. package/dist/elements/public/ItemCard/ItemCard.js +10 -1
  131. package/dist/elements/public/ItemCard/ItemCard.js.map +1 -1
  132. package/dist/elements/public/ItemForm/ItemForm.d.ts +45 -3
  133. package/dist/elements/public/ItemForm/ItemForm.js +50 -8
  134. package/dist/elements/public/ItemForm/ItemForm.js.map +1 -1
  135. package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js +1 -1
  136. package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js.map +1 -1
  137. package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.d.ts +2 -1
  138. package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js +2 -1
  139. package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js.map +1 -1
  140. package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js +3 -3
  141. package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js.map +1 -1
  142. package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.d.ts +2 -1
  143. package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js +2 -1
  144. package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js.map +1 -1
  145. package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js +16 -6
  146. package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js.map +1 -1
  147. package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js +3 -3
  148. package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js.map +1 -1
  149. package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.d.ts +2 -1
  150. package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js +2 -1
  151. package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js.map +1 -1
  152. package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js +3 -8
  153. package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js.map +1 -1
  154. package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.d.ts +2 -1
  155. package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js +2 -1
  156. package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js.map +1 -1
  157. package/dist/elements/public/ShipmentCard/ShipmentCard.d.ts +6 -0
  158. package/dist/elements/public/ShipmentCard/ShipmentCard.js +7 -5
  159. package/dist/elements/public/ShipmentCard/ShipmentCard.js.map +1 -1
  160. package/dist/elements/public/ShipmentCard/index.d.ts +1 -0
  161. package/dist/elements/public/ShipmentCard/index.js +1 -0
  162. package/dist/elements/public/ShipmentCard/index.js.map +1 -1
  163. package/dist/elements/public/SwipeActions/SwipeActions.d.ts +16 -1
  164. package/dist/elements/public/SwipeActions/SwipeActions.js +15 -1
  165. package/dist/elements/public/SwipeActions/SwipeActions.js.map +1 -1
  166. package/dist/elements/public/Transaction/Transaction.d.ts +6 -0
  167. package/dist/elements/public/Transaction/Transaction.js +8 -2
  168. package/dist/elements/public/Transaction/Transaction.js.map +1 -1
  169. package/dist/elements/public/Transaction/index.d.ts +2 -4
  170. package/dist/elements/public/Transaction/index.js +2 -4
  171. package/dist/elements/public/Transaction/index.js.map +1 -1
  172. package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js +8 -12
  173. package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js.map +1 -1
  174. package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js +1 -1
  175. package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js.map +1 -1
  176. package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.d.ts +4 -5
  177. package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js +15 -15
  178. package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js.map +1 -1
  179. package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js +12 -23
  180. package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js.map +1 -1
  181. package/package.json +9 -7
  182. package/dist/cdn/shared-0504c8dc.js +0 -1
  183. package/dist/cdn/shared-7facf7ba.js +0 -1
@@ -1 +1 @@
1
- import"./shared-0c806443.js";import"./shared-59a3f7dd.js";import{_ as t}from"./shared-fadcb2e1.js";import{h as e}from"./shared-dc73b9a5.js";import{D as s}from"./shared-b9607e68.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-ad0158dd.js";import"./shared-0fbac4a9.js";import{_ as t}from"./shared-fadcb2e1.js";import{h as e}from"./shared-dc73b9a5.js";import{D as s}from"./shared-ec2dd0c8.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,4 +1,4 @@
1
- import{h as e}from"./shared-b2b3f0e0.js";import{N as t}from"./shared-3a31785e.js";
1
+ import{h as e}from"./shared-d6353669.js";import{N as t}from"./shared-bdb8e495.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2019 Vaadin Ltd.
@@ -1 +1 @@
1
- import{I as e,_ as t}from"./shared-fadcb2e1.js";import{h as n,L as r}from"./shared-dc73b9a5.js";import{i as s,a}from"./shared-e82cc599.js";import{F as i,A as o}from"./shared-92327224.js";const c={type:"backend",init:()=>{},read:(e,t,n)=>{const r=async e=>{const t=e.ok?null:new Error(await e.text()),r=!!e.ok&&await e.json();n(t,r)},s=e=>{const t=e instanceof Error?e:new Error(String(e));n(t,!1)},a=new i("fetch",{cancelable:!0,composed:!0,bubbles:!0,request:new o.WHATWGRequest(`foxy://i18n/${t}/${e}`),resolve:r,reject:s});dispatchEvent(a),a.defaultPrevented||fetch(a.request).then(r).catch(s)},create:()=>{throw new Error("foxy-i18n does not support resource creation")}};function l(e,t=!1){var n;const r=e.replace(/(y|m|w|d)/,""),s=e.replace(/\.?\d+/,"");return{count:".5"===r?.5:parseInt(r),units:t&&null!==(n={y:"year",m:"month",w:"week",d:"day"}[s])&&void 0!==n?n:s}}const u={discount:({ns:e,type:t,details:n},r,s)=>{const a=t.endsWith("_percentage")?.01:1,i=n.split("|"),o=`${["allunits","incremental","repeat","single"].includes(i[0])?i.shift():"single"}_${t}_discount_summary`;return i.map((t=>{var n,r;const s=null!==(r=null===(n=/[-+]/.exec(t))||void 0===n?void 0:n.index)&&void 0!==r?r:-1,i=parseFloat(t.substring(s))*a,c=parseFloat(t.substring(0,s));return`$t(${o}, ${JSON.stringify({adjustment:i,from:c,ns:e})})`})).join("; ")},relative:(e,t,n)=>{const r=new Intl.RelativeTimeFormat(n);let{count:s,units:a}=l(e,!0);return.5===s&&"month"===a&&(s=2,a="week"),r.format(s,a)},percent:(e,t,n)=>{let r=null;try{"number"==typeof e&&(r=e.toLocaleString(n,{style:"percent"}))}catch(e){console.warn(`i18next formatter error: ${e.message}`)}return r||String(e)},ordinal:(e,t,n)=>`${e}$t(ordinal_${new Intl.PluralRules(n,{type:"ordinal"}).select(e)})`,price:(e,t,n,r)=>{var s;try{const[t,a]=e.split(" ");return parseFloat(t).toLocaleString(n,{maximumFractionDigits:2,minimumFractionDigits:2,currencyDisplay:null!==(s=null==r?void 0:r.currencyDisplay)&&void 0!==s?s:"symbol",style:"currency",currency:a})}catch(t){return e}},date:(e,t,n)=>{if(!e)return"$t(unknown)";const r=new Date(e),s=(new Date).getFullYear()===r.getFullYear()?void 0:"numeric";return r.toLocaleDateString(n,{month:"long",year:s,day:"numeric"})},time:(e,t,n)=>new Date(e).toLocaleTimeString(n,{hour:"numeric",minute:"numeric"})};let d,p=e=>e;class m extends(a(e(r),"")){constructor(){super(...arguments),this.options={},this.key=""}static onTranslationChange(e){const t=["initialized","loaded"],n=["removed","added"];return t.forEach((t=>m.i18next.on(t,e))),n.forEach((t=>m.i18next.store.on(t,e))),()=>{t.forEach((t=>m.i18next.off(t,e))),n.forEach((t=>m.i18next.store.off(t,e)))}}static onResourceFetch(e){const t=t=>{if(t instanceof i&&t.request.url.startsWith("foxy://i18n/")){const[n,r]=t.request.url.split("/").reverse();t.respondWith(e(r,n))}};return addEventListener("fetch",t),()=>removeEventListener("fetch",t)}static setGateways({values:e}){for(const t in e)this.i18next.addResource("en","gateways",`gateways.${t}`,e[t].name)}static get properties(){return t(t({},super.properties),{},{options:{type:Object},key:{type:String}})}connectedCallback(){super.connectedCallback(),this.__unsubscribe=m.onTranslationChange((()=>this.requestUpdate()))}render(){return n(d||(d=p`<span>${0}</span>`),this.t(this.key,t(t({},this.options),{},{lng:this.lang})))}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__unsubscribe)||void 0===e||e.call(this)}}m.FetchEvent=i,m.i18next=s.createInstance().use(c),m.i18next.init({interpolation:{format:(e,t="",n="en",r={})=>t.split(" ").filter((e=>!!e.trim())).reduce(((e,t)=>{var s,a;return null!==(a=null===(s=u[t])||void 0===s?void 0:s.call(u,e,t,n,r))&&void 0!==a?a:e}),e),escapeValue:!1},fallbackLng:"en",fallbackNS:"shared",defaultNS:"shared",ns:["shared"]}),customElements.define("foxy-i18n",m);export{m as I,l as p};
1
+ import{I as e,_ as t}from"./shared-fadcb2e1.js";import{h as n,L as r}from"./shared-dc73b9a5.js";import{i as s,a}from"./shared-3bcc3800.js";import{F as i,A as o}from"./shared-92327224.js";const c={type:"backend",init:()=>{},read:(e,t,n)=>{const r=async e=>{const t=e.ok?null:new Error(await e.text()),r=!!e.ok&&await e.json();n(t,r)},s=e=>{const t=e instanceof Error?e:new Error(String(e));n(t,!1)},a=new i("fetch",{cancelable:!0,composed:!0,bubbles:!0,request:new o.WHATWGRequest(`foxy://i18n/${t}/${e}`),resolve:r,reject:s});dispatchEvent(a),a.defaultPrevented||fetch(a.request).then(r).catch(s)},create:()=>{throw new Error("foxy-i18n does not support resource creation")}};function l(e,t=!1){var n;const r=e.replace(/(y|m|w|d)/,""),s=e.replace(/\.?\d+/,"");return{count:".5"===r?.5:parseInt(r),units:t&&null!==(n={y:"year",m:"month",w:"week",d:"day"}[s])&&void 0!==n?n:s}}const u={discount:({ns:e,type:t,details:n},r,s)=>{const a=t.endsWith("_percentage")?.01:1,i=n.split("|"),o=`${["allunits","incremental","repeat","single"].includes(i[0])?i.shift():"single"}_${t}_discount_summary`;return i.map((t=>{var n,r;const s=null!==(r=null===(n=/[-+]/.exec(t))||void 0===n?void 0:n.index)&&void 0!==r?r:-1,i=parseFloat(t.substring(s))*a,c=parseFloat(t.substring(0,s));return`$t(${o}, ${JSON.stringify({adjustment:i,from:c,ns:e})})`})).join("; ")},relative:(e,t,n)=>{const r=new Intl.RelativeTimeFormat(n);let{count:s,units:a}=l(e,!0);return.5===s&&"month"===a&&(s=2,a="week"),r.format(s,a)},percent:(e,t,n)=>{let r=null;try{"number"==typeof e&&(r=e.toLocaleString(n,{style:"percent"}))}catch(e){console.warn(`i18next formatter error: ${e.message}`)}return r||String(e)},ordinal:(e,t,n)=>`${e}$t(ordinal_${new Intl.PluralRules(n,{type:"ordinal"}).select(e)})`,price:(e,t,n,r)=>{var s;try{const[t,a]=e.split(" ");return parseFloat(t).toLocaleString(n,{maximumFractionDigits:2,minimumFractionDigits:2,currencyDisplay:null!==(s=null==r?void 0:r.currencyDisplay)&&void 0!==s?s:"symbol",style:"currency",currency:a})}catch(t){return e}},date:(e,t,n)=>{if(!e)return"$t(unknown)";const r=new Date(e),s=(new Date).getFullYear()===r.getFullYear()?void 0:"numeric";return r.toLocaleDateString(n,{month:"long",year:s,day:"numeric"})},time:(e,t,n)=>new Date(e).toLocaleTimeString(n,{hour:"numeric",minute:"numeric"})};let d,p=e=>e;class m extends(a(e(r),"")){constructor(){super(...arguments),this.options={},this.key=""}static onTranslationChange(e){const t=["initialized","loaded"],n=["removed","added"];return t.forEach((t=>m.i18next.on(t,e))),n.forEach((t=>m.i18next.store.on(t,e))),()=>{t.forEach((t=>m.i18next.off(t,e))),n.forEach((t=>m.i18next.store.off(t,e)))}}static onResourceFetch(e){const t=t=>{if(t instanceof i&&t.request.url.startsWith("foxy://i18n/")){const[n,r]=t.request.url.split("/").reverse();t.respondWith(e(r,n))}};return addEventListener("fetch",t),()=>removeEventListener("fetch",t)}static setGateways({values:e}){for(const t in e)this.i18next.addResource("en","gateways",`gateways.${t}`,e[t].name)}static get properties(){return t(t({},super.properties),{},{options:{type:Object},key:{type:String}})}connectedCallback(){super.connectedCallback(),this.__unsubscribe=m.onTranslationChange((()=>this.requestUpdate()))}render(){return n(d||(d=p`<span>${0}</span>`),this.t(this.key,t(t({},this.options),{},{lng:this.lang})))}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__unsubscribe)||void 0===e||e.call(this)}}m.FetchEvent=i,m.i18next=s.createInstance().use(c),m.i18next.init({interpolation:{format:(e,t="",n="en",r={})=>t.split(" ").filter((e=>!!e.trim())).reduce(((e,t)=>{var s,a;return null!==(a=null===(s=u[t])||void 0===s?void 0:s.call(u,e,t,n,r))&&void 0!==a?a:e}),e),escapeValue:!1},fallbackLng:"en",fallbackNS:"shared",defaultNS:"shared",ns:["shared"]}),customElements.define("foxy-i18n",m);export{m as I,l as p};
@@ -1,4 +1,4 @@
1
- import"./shared-fd789489.js";import{h}from"./shared-b2b3f0e0.js";
1
+ import"./shared-26980c97.js";import{h}from"./shared-d6353669.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
@@ -1,4 +1,4 @@
1
- import{_ as t}from"./shared-fadcb2e1.js";import{T as e}from"./shared-7e960a32.js";import{a as s}from"./shared-e82cc599.js";import{p as a}from"./shared-0504c8dc.js";let n,o,r,i,c=t=>t;class l extends(s(e,"subscriptions-table")){constructor(){super(...arguments),this.columns=[l.priceColumn,l.summaryColumn,l.statusColumn,l.subTokenURLColumn]}}l.priceColumn={cell:e=>{const s=e.data._embedded["fx:last_transaction"],o=`${s.total_order} ${s.currency_code}`;return e.html(n||(n=c`
1
+ import{_ as t}from"./shared-fadcb2e1.js";import{T as e}from"./shared-f3e32aee.js";import{a as s}from"./shared-3bcc3800.js";import{p as a}from"./shared-ebb53e4e.js";let n,o,r,i,c=t=>t;class l extends(s(e,"subscriptions-table")){constructor(){super(...arguments),this.columns=[l.priceColumn,l.summaryColumn,l.statusColumn,l.subTokenURLColumn]}}l.priceColumn={cell:e=>{const s=e.data._embedded["fx:last_transaction"],o=`${s.total_order} ${s.currency_code}`;return e.html(n||(n=c`
2
2
  <foxy-i18n
3
3
  data-testclass="i18n frequencies"
4
4
  class="font-semibold text-m font-tnum"
@@ -1 +1 @@
1
- import{_ as t}from"./shared-fadcb2e1.js";import{C as e}from"./shared-98497473.js";import{h as i}from"./shared-dc73b9a5.js";import{N as s}from"./shared-ac44429d.js";import{T as r}from"./shared-e82cc599.js";import{c as a}from"./shared-4e709717.js";let d,l,n,o=t=>t;const h=e(r(s));class p extends h{constructor(){super(...arguments),this.templates={},this.lang="",this.ns="",this.__renderTitle=t=>i(d||(d=o` <div data-testid="title"> ${0} <div class="text-secondary truncate"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("title:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("title:after")),this.__renderSubtitle=t=>i(l||(l=o` <div data-testid="subtitle"> ${0} <div class="font-semibold truncate"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("subtitle:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("subtitle:after"))}static get properties(){return t(t({},super.properties),{},{lang:{type:String},ns:{type:String}})}render(t){var e,s;const r=this.hiddenSelector;return i(n||(n=o` <div aria-live="polite" aria-busy="${0}" class="relative text-body text-m font-lumo leading-m"> ${0} ${0} <div class="${0}"> <foxy-spinner data-testid="spinner" class="m-auto" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),!this.data&&this.in("busy"),r.matches("title",!0)?"":this.__renderTitle(null==t?void 0:t.title),r.matches("subtitle",!0)?"":this.__renderSubtitle(null==t?void 0:t.subtitle),a({"transition duration-250 ease-in-out absolute inset-0 flex":!0,"opacity-0 pointer-events-none":!!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:"")}}export{p as T};
1
+ import{_ as t}from"./shared-fadcb2e1.js";import{C as e}from"./shared-98497473.js";import{h as i}from"./shared-dc73b9a5.js";import{N as s}from"./shared-ac44429d.js";import{T as r}from"./shared-3bcc3800.js";import{c as a}from"./shared-4e709717.js";let d,l,n,o=t=>t;const h=e(r(s));class p extends h{constructor(){super(...arguments),this.templates={},this.lang="",this.ns="",this.__renderTitle=t=>i(d||(d=o` <div data-testid="title"> ${0} <div class="text-secondary truncate"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("title:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("title:after")),this.__renderSubtitle=t=>i(l||(l=o` <div data-testid="subtitle"> ${0} <div class="font-semibold truncate"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("subtitle:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("subtitle:after"))}static get properties(){return t(t({},super.properties),{},{lang:{type:String},ns:{type:String}})}render(t){var e,s;const r=this.hiddenSelector;return i(n||(n=o` <div aria-live="polite" aria-busy="${0}" class="relative text-body text-m font-lumo leading-m"> ${0} ${0} <div class="${0}"> <foxy-spinner data-testid="spinner" class="m-auto" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),!this.data&&this.in("busy"),r.matches("title",!0)?"":this.__renderTitle(null==t?void 0:t.title),r.matches("subtitle",!0)?"":this.__renderSubtitle(null==t?void 0:t.subtitle),a({"transition duration-250 ease-in-out absolute inset-0 flex":!0,"opacity-0 pointer-events-none":!!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:"")}}export{p as T};
@@ -1,4 +1,4 @@
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-b2b3f0e0.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-e82cc599.js";
1
+ import{f as e,M as t,c as s,n 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-d6353669.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-3bcc3800.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -25,7 +25,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
25
25
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
26
26
  Code distributed by Google as part of the polymer project is also
27
27
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
28
- */function Q(e,t){return e?("string"==typeof e&&(e=j(e)),t&&ee(e,t),B(e,n)):""}function Z(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=j(e.textContent)),e.__cssRules||null}function ee(e,s,i,n){if(!e)return;let r=!1,o=e.type;if(n&&o===$.MEDIA_RULE){let s=e.selector.match(t);s&&(window.matchMedia(s[1]).matches||(r=!0))}o===$.STYLE_RULE?s(e):i&&o===$.KEYFRAMES_RULE?i(e):o===$.MIXIN_RULE&&(r=!0);let l=e.rules;if(l&&!r)for(let e,t=0,r=l.length;t<r&&(e=l[t]);t++)ee(e,s,i,n)}function te(e,t){let s=e.indexOf("var(");if(-1===s)return t(e,"","","");let i=function(e,t){let s=0;for(let i=t,n=e.length;i<n;i++)if("("===e[i])s++;else if(")"===e[i]&&0==--s)return i;return-1}(e,s+3),n=e.substring(s+4,i),r=e.substring(0,s),o=te(e.substring(i+1),t),l=n.indexOf(",");return-1===l?t(r,n.trim(),"",o):t(r,n.substring(0,l).trim(),n.substring(l+1).trim(),o)}window.ShadyDOM&&window.ShadyDOM.wrap;function se(e){if(void 0!==i)return i;if(void 0===e.__cssBuild){const t=e.getAttribute("css-build");if(t)e.__cssBuild=t;else{const t=function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if("css-build"===e[0])return e[1]}return""}(e);""!==t&&function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
28
+ */function Q(e,t){return e?("string"==typeof e&&(e=j(e)),t&&ee(e,t),B(e,i)):""}function Z(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=j(e.textContent)),e.__cssRules||null}function ee(e,s,i,n){if(!e)return;let r=!1,o=e.type;if(n&&o===$.MEDIA_RULE){let s=e.selector.match(t);s&&(window.matchMedia(s[1]).matches||(r=!0))}o===$.STYLE_RULE?s(e):i&&o===$.KEYFRAMES_RULE?i(e):o===$.MIXIN_RULE&&(r=!0);let l=e.rules;if(l&&!r)for(let e,t=0,r=l.length;t<r&&(e=l[t]);t++)ee(e,s,i,n)}function te(e,t){let s=e.indexOf("var(");if(-1===s)return t(e,"","","");let i=function(e,t){let s=0;for(let i=t,n=e.length;i<n;i++)if("("===e[i])s++;else if(")"===e[i]&&0==--s)return i;return-1}(e,s+3),n=e.substring(s+4,i),r=e.substring(0,s),o=te(e.substring(i+1),t),l=n.indexOf(",");return-1===l?t(r,n.trim(),"",o):t(r,n.substring(0,l).trim(),n.substring(l+1).trim(),o)}window.ShadyDOM&&window.ShadyDOM.wrap;function se(e){if(void 0!==s)return s;if(void 0===e.__cssBuild){const t=e.getAttribute("css-build");if(t)e.__cssBuild=t;else{const t=function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if("css-build"===e[0])return e[1]}return""}(e);""!==t&&function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
29
29
  /**
30
30
  @license
31
31
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -34,7 +34,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
34
34
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
35
35
  Code distributed by Google as part of the polymer project is also
36
36
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
37
- */(e),e.__cssBuild=t}}return e.__cssBuild||""}function ie(e){return""!==se(e)}const ne=/;\s*/m,re=/^\s*(initial)|(inherit)\s*$/,oe=/\s*!important/;class le{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let ae=null;class he{constructor(){this._currentElement=null,this._measureElement=null,this._map=new le}detectMixin(e){return r(e)}gatherStyles(e){const t=function(e){const t=[],i=e.querySelectorAll("style");for(let e=0;e<i.length;e++){const n=i[e];W(n)?s||(X(n),n.parentNode.removeChild(n)):(t.push(n.textContent),n.parentNode.removeChild(n))}return t.join("").trim()}(e.content);if(t){const s=document.createElement("style");return s.textContent=t,e.content.insertBefore(s,e.content.firstChild),s}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));const s=e._gatheredStyle;return s?this.transformStyle(s,t):null}transformStyle(e,t=""){let s=Z(e);return this.transformRules(s,t),e.textContent=Q(s),s}transformCustomStyle(e){let t=Z(e);return ee(t,(e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)})),e.textContent=Q(t),t}transformRules(e,t){this._currentElement=t,ee(e,(e=>{this.transformRule(e)})),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,t){return e=e.replace(o,((e,s,i,n)=>this._produceCssProperties(e,s,i,n,t))),this._consumeCssProperties(e,t)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(e){let t=e;for(;t.parent;)t=t.parent;const s={};let i=!1;return ee(t,(t=>{i=i||t===e,i||t.selector===e.selector&&Object.assign(s,this._cssTextToMap(t.parsedCssText))})),s}_consumeCssProperties(e,t){let s=null;for(;s=l.exec(e);){let i=s[0],n=s[1],r=s.index,o=r+i.indexOf("@apply"),a=r+i.length,h=e.slice(0,o),c=e.slice(a),d=t?this._fallbacksFromPreviousRules(t):{};Object.assign(d,this._cssTextToMap(h));let u=this._atApplyToCssProperties(n,d);e=`${h}${u}${c}`,l.lastIndex=r+u.length}return e}_atApplyToCssProperties(e,t){e=e.replace(ne,"");let s=[],i=this._map.get(e);if(i||(this._map.set(e,{}),i=this._map.get(e)),i){let n,r,o;this._currentElement&&(i.dependants[this._currentElement]=!0);const l=i.properties;for(n in l)o=t&&t[n],r=[n,": var(",e,"_-_",n],o&&r.push(",",o.replace(oe,"")),r.push(")"),oe.test(l[n])&&r.push(" !important"),s.push(r.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){let s=re.exec(t);return s&&(t=s[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let s,i,n=e.split(";"),r={};for(let e,o,l=0;l<n.length;l++)e=n[l],e&&(o=e.split(":"),o.length>1&&(s=o[0].trim(),i=o.slice(1).join(":"),t&&(i=this._replaceInitialOrInherit(s,i)),r[s]=i));return r}_invalidateMixinEntry(e){if(ae)for(let t in e.dependants)t!==this._currentElement&&ae(t)}_produceCssProperties(e,t,s,i,n){if(s&&te(s,((e,t)=>{t&&this._map.get(t)&&(i=`@apply ${t};`)})),!i)return e;let r=this._consumeCssProperties(""+i,n),o=e.slice(0,e.indexOf("--")),l=this._cssTextToMap(r,!0),a=l,h=this._map.get(t),c=h&&h.properties;c?a=Object.assign(Object.create(c),l):this._map.set(t,a);let d,u,_=[],p=!1;for(d in a)u=l[d],void 0===u&&(u="initial"),c&&!(d in c)&&(p=!0),_.push(`${t}_-_${d}: ${u}`);return p&&this._invalidateMixinEntry(h),h&&(h.properties=a),s&&(o=`${e};${o}`),`${o}${_.join("; ")};`}}he.prototype.detectMixin=he.prototype.detectMixin,he.prototype.transformStyle=he.prototype.transformStyle,he.prototype.transformCustomStyle=he.prototype.transformCustomStyle,he.prototype.transformRules=he.prototype.transformRules,he.prototype.transformRule=he.prototype.transformRule,he.prototype.transformTemplate=he.prototype.transformTemplate,he.prototype._separator="_-_",Object.defineProperty(he.prototype,"invalidCallback",{get:()=>ae,set(e){ae=e}});
37
+ */(e),e.__cssBuild=t}}return e.__cssBuild||""}function ie(e){return""!==se(e)}const ne=/;\s*/m,re=/^\s*(initial)|(inherit)\s*$/,oe=/\s*!important/;class le{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let ae=null;class he{constructor(){this._currentElement=null,this._measureElement=null,this._map=new le}detectMixin(e){return r(e)}gatherStyles(e){const t=function(e){const t=[],s=e.querySelectorAll("style");for(let e=0;e<s.length;e++){const i=s[e];W(i)?n||(X(i),i.parentNode.removeChild(i)):(t.push(i.textContent),i.parentNode.removeChild(i))}return t.join("").trim()}(e.content);if(t){const s=document.createElement("style");return s.textContent=t,e.content.insertBefore(s,e.content.firstChild),s}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));const s=e._gatheredStyle;return s?this.transformStyle(s,t):null}transformStyle(e,t=""){let s=Z(e);return this.transformRules(s,t),e.textContent=Q(s),s}transformCustomStyle(e){let t=Z(e);return ee(t,(e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)})),e.textContent=Q(t),t}transformRules(e,t){this._currentElement=t,ee(e,(e=>{this.transformRule(e)})),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,t){return e=e.replace(o,((e,s,i,n)=>this._produceCssProperties(e,s,i,n,t))),this._consumeCssProperties(e,t)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(e){let t=e;for(;t.parent;)t=t.parent;const s={};let i=!1;return ee(t,(t=>{i=i||t===e,i||t.selector===e.selector&&Object.assign(s,this._cssTextToMap(t.parsedCssText))})),s}_consumeCssProperties(e,t){let s=null;for(;s=l.exec(e);){let i=s[0],n=s[1],r=s.index,o=r+i.indexOf("@apply"),a=r+i.length,h=e.slice(0,o),c=e.slice(a),d=t?this._fallbacksFromPreviousRules(t):{};Object.assign(d,this._cssTextToMap(h));let u=this._atApplyToCssProperties(n,d);e=`${h}${u}${c}`,l.lastIndex=r+u.length}return e}_atApplyToCssProperties(e,t){e=e.replace(ne,"");let s=[],i=this._map.get(e);if(i||(this._map.set(e,{}),i=this._map.get(e)),i){let n,r,o;this._currentElement&&(i.dependants[this._currentElement]=!0);const l=i.properties;for(n in l)o=t&&t[n],r=[n,": var(",e,"_-_",n],o&&r.push(",",o.replace(oe,"")),r.push(")"),oe.test(l[n])&&r.push(" !important"),s.push(r.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){let s=re.exec(t);return s&&(t=s[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let s,i,n=e.split(";"),r={};for(let e,o,l=0;l<n.length;l++)e=n[l],e&&(o=e.split(":"),o.length>1&&(s=o[0].trim(),i=o.slice(1).join(":"),t&&(i=this._replaceInitialOrInherit(s,i)),r[s]=i));return r}_invalidateMixinEntry(e){if(ae)for(let t in e.dependants)t!==this._currentElement&&ae(t)}_produceCssProperties(e,t,s,i,n){if(s&&te(s,((e,t)=>{t&&this._map.get(t)&&(i=`@apply ${t};`)})),!i)return e;let r=this._consumeCssProperties(""+i,n),o=e.slice(0,e.indexOf("--")),l=this._cssTextToMap(r,!0),a=l,h=this._map.get(t),c=h&&h.properties;c?a=Object.assign(Object.create(c),l):this._map.set(t,a);let d,u,_=[],p=!1;for(d in a)u=l[d],void 0===u&&(u="initial"),c&&!(d in c)&&(p=!0),_.push(`${t}_-_${d}: ${u}`);return p&&this._invalidateMixinEntry(h),h&&(h.properties=a),s&&(o=`${e};${o}`),`${o}${_.join("; ")};`}}he.prototype.detectMixin=he.prototype.detectMixin,he.prototype.transformStyle=he.prototype.transformStyle,he.prototype.transformCustomStyle=he.prototype.transformCustomStyle,he.prototype.transformRules=he.prototype.transformRules,he.prototype.transformRule=he.prototype.transformRule,he.prototype.transformTemplate=he.prototype.transformTemplate,he.prototype._separator="_-_",Object.defineProperty(he.prototype,"invalidCallback",{get:()=>ae,set(e){ae=e}});
38
38
  /**
39
39
  @license
40
40
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -63,7 +63,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
63
63
  Code distributed by Google as part of the polymer project is also
64
64
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
65
65
  */
66
- const ye=new he;class ge{constructor(){this.customStyleInterface=null,ye.invalidCallback=fe}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{ye.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame((()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()}))})}prepareTemplate(e,t){if(this.ensure(),ie(e))return;ce[t]=e;let s=ye.transformTemplate(e,t);e._styleAst=s}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let t=0;t<e.length;t++){let s=e[t],i=this.customStyleInterface.getStyleForCustomStyle(s);i&&ye.transformCustomStyle(i)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&c(e,t),e.shadowRoot){this.styleElement(e);let t=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}else{let t=e.children||e.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}}styleElement(e){this.ensure();let{is:t}=function(e){let t=e.localName,s="",i="";return t?t.indexOf("-")>-1?s=t:(i=t,s=e.getAttribute&&e.getAttribute("is")||""):(s=e.is,i=e.extends),{is:s,typeExtension:i}}(e),s=ce[t];if((!s||!ie(s))&&s&&!me(s)){(function(e){return!me(e)&&e[_e]===e[ue]})(s)||(this.prepareTemplate(s,t),function(e){e[_e]=e[ue],e._validating||(e._validating=!0,pe.then((function(){e[de]=e[ue],e._validating=!1})))}(s));let i=e.shadowRoot;if(i){let e=i.querySelector("style");e&&(e.__cssRules=s._styleAst,e.textContent=Q(s._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const e=new ge;let t=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(t,s,i){e.flushCustomStyles(),e.prepareTemplate(t,s)},prepareTemplateStyles(e,t,s){window.ShadyCSS.prepareTemplate(e,t,s)},prepareTemplateDom(e,t){},styleSubtree(t,s){e.flushCustomStyles(),e.styleSubtree(t,s)},styleElement(t){e.flushCustomStyles(),e.styleElement(t)},styleDocument(t){e.flushCustomStyles(),e.styleDocument(t)},getComputedStyleValue:(e,t)=>a(e,t),flushCustomStyles(){e.flushCustomStyles()},nativeCss:n,nativeShadow:s,cssBuild:i,disableRuntime:h},t&&(window.ShadyCSS.CustomStyleInterface=t)}window.ShadyCSS.ApplyShim=ye;
66
+ const ye=new he;class ge{constructor(){this.customStyleInterface=null,ye.invalidCallback=fe}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{ye.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame((()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()}))})}prepareTemplate(e,t){if(this.ensure(),ie(e))return;ce[t]=e;let s=ye.transformTemplate(e,t);e._styleAst=s}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let t=0;t<e.length;t++){let s=e[t],i=this.customStyleInterface.getStyleForCustomStyle(s);i&&ye.transformCustomStyle(i)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&c(e,t),e.shadowRoot){this.styleElement(e);let t=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}else{let t=e.children||e.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}}styleElement(e){this.ensure();let{is:t}=function(e){let t=e.localName,s="",i="";return t?t.indexOf("-")>-1?s=t:(i=t,s=e.getAttribute&&e.getAttribute("is")||""):(s=e.is,i=e.extends),{is:s,typeExtension:i}}(e),s=ce[t];if((!s||!ie(s))&&s&&!me(s)){(function(e){return!me(e)&&e[_e]===e[ue]})(s)||(this.prepareTemplate(s,t),function(e){e[_e]=e[ue],e._validating||(e._validating=!0,pe.then((function(){e[de]=e[ue],e._validating=!1})))}(s));let i=e.shadowRoot;if(i){let e=i.querySelector("style");e&&(e.__cssRules=s._styleAst,e.textContent=Q(s._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const e=new ge;let t=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(t,s,i){e.flushCustomStyles(),e.prepareTemplate(t,s)},prepareTemplateStyles(e,t,s){window.ShadyCSS.prepareTemplate(e,t,s)},prepareTemplateDom(e,t){},styleSubtree(t,s){e.flushCustomStyles(),e.styleSubtree(t,s)},styleElement(t){e.flushCustomStyles(),e.styleElement(t)},styleDocument(t){e.flushCustomStyles(),e.styleDocument(t)},getComputedStyleValue:(e,t)=>a(e,t),flushCustomStyles(){e.flushCustomStyles()},nativeCss:i,nativeShadow:n,cssBuild:s,disableRuntime:h},t&&(window.ShadyCSS.CustomStyleInterface=t)}window.ShadyCSS.ApplyShim=ye;
67
67
  /**
68
68
  * @fileoverview
69
69
  * @suppress {checkPrototypalTypes}