@foxy.io/elements 1.42.0-beta.6 → 1.42.0-beta.7
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.
- package/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +5 -5
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +2 -2
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +1 -1
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +1 -1
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +4 -4
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +10 -10
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-swipe-actions.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +7 -7
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-user-invitation-card.js +1 -1
- package/dist/cdn/foxy-user-invitation-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-864ea319.js → shared-0553380e.js} +1 -1
- package/dist/cdn/{shared-fca3a317.js → shared-0c242246.js} +1 -1
- package/dist/cdn/{shared-25167d28.js → shared-0cc8df04.js} +1 -1
- package/dist/cdn/{shared-4e309d01.js → shared-0cfb1c08.js} +1 -1
- package/dist/cdn/{shared-77f39a8a.js → shared-0f4dfb14.js} +1 -1
- package/dist/cdn/{shared-16ae74b2.js → shared-1aff90a9.js} +1 -1
- package/dist/cdn/shared-1b46df2a.js +417 -0
- package/dist/cdn/{shared-70380f94.js → shared-1d03f911.js} +1 -1
- package/dist/cdn/shared-241b6cca.js +231 -0
- package/dist/cdn/{shared-56d91134.js → shared-2939f350.js} +1 -1
- package/dist/cdn/shared-2b126cea.js +25 -0
- package/dist/cdn/{shared-4ded48ee.js → shared-2fe8aabd.js} +1 -1
- package/dist/cdn/{shared-7a2aaafa.js → shared-330e57d9.js} +1 -1
- package/dist/cdn/shared-35c9fa1d.js +1 -0
- package/dist/cdn/{shared-49337d35.js → shared-393a7ab2.js} +1 -1
- package/dist/cdn/{shared-bc2eb9bb.js → shared-3a2134c8.js} +1 -1
- package/dist/cdn/{shared-7f5f6657.js → shared-3aca4932.js} +1 -1
- package/dist/cdn/{shared-e4768909.js → shared-3cdec25d.js} +9 -9
- package/dist/cdn/{shared-8b891950.js → shared-40028e80.js} +1 -1
- package/dist/cdn/{shared-127ec8a7.js → shared-434cdfec.js} +1 -1
- package/dist/cdn/{shared-df369311.js → shared-46f8e3d9.js} +1 -1
- package/dist/cdn/{shared-5960c279.js → shared-4bd1f3d8.js} +1 -1
- package/dist/cdn/shared-4cae017c.js +1 -0
- package/dist/cdn/{shared-42c91940.js → shared-4d919766.js} +1 -1
- package/dist/cdn/{shared-e55e32dd.js → shared-4f808d2e.js} +1 -1
- package/dist/cdn/{shared-a4ca1c5d.js → shared-53253d60.js} +1 -1
- package/dist/cdn/{shared-663794ff.js → shared-5520b96c.js} +1 -1
- package/dist/cdn/shared-578cde14.js +1 -0
- package/dist/cdn/{shared-7b3aac7e.js → shared-58b6710c.js} +1 -1
- package/dist/cdn/{shared-16d1018b.js → shared-5a04e75c.js} +1 -1
- package/dist/cdn/{shared-92153a7f.js → shared-5d7c4673.js} +1 -1
- package/dist/cdn/{shared-1b7e17c7.js → shared-692691ca.js} +1 -1
- package/dist/cdn/{shared-e653b80e.js → shared-6f08d218.js} +1 -1
- package/dist/cdn/{shared-2a5d1cdf.js → shared-753fdd34.js} +1 -1
- package/dist/cdn/{shared-500b7eb7.js → shared-7977d581.js} +2 -2
- package/dist/cdn/{shared-d5f6483f.js → shared-7eeb591f.js} +1 -1
- package/dist/cdn/{shared-9a4d52dd.js → shared-86337ba8.js} +1 -1
- package/dist/cdn/{shared-3ca95e21.js → shared-8c42634c.js} +1 -1
- package/dist/cdn/{shared-1f6366c0.js → shared-8e010314.js} +1 -1
- package/dist/cdn/{shared-7995cbcf.js → shared-8f81f4ed.js} +1 -1
- package/dist/cdn/{shared-6f1261fa.js → shared-92995c02.js} +1 -1
- package/dist/cdn/{shared-076f086a.js → shared-948919d2.js} +1 -1
- package/dist/cdn/{shared-a1f654fc.js → shared-98f382f3.js} +1 -1
- package/dist/cdn/{shared-76cbea00.js → shared-9d4813e6.js} +1 -1
- package/dist/cdn/{shared-eb086cef.js → shared-a60ca6fe.js} +1 -1
- package/dist/cdn/{shared-ee9ee09a.js → shared-ae2336ab.js} +1 -1
- package/dist/cdn/{shared-6b3b8c63.js → shared-b05ef317.js} +1 -1
- package/dist/cdn/shared-b1c9199f.js +531 -0
- package/dist/cdn/{shared-5714fc55.js → shared-b6c5ac14.js} +2 -2
- package/dist/cdn/{shared-253e51f7.js → shared-c009b9b6.js} +1 -1
- package/dist/cdn/{shared-75e7361d.js → shared-c231e3bf.js} +1 -1
- package/dist/cdn/{shared-a3a18e8d.js → shared-c584966f.js} +1 -1
- package/dist/cdn/{shared-90754404.js → shared-c5b019e5.js} +1 -1
- package/dist/cdn/{shared-eed9b226.js → shared-cae254ee.js} +9 -9
- package/dist/cdn/{shared-771431a9.js → shared-ceeb14e9.js} +1 -1
- package/dist/cdn/{shared-fc66cb5d.js → shared-cf008f13.js} +1 -1
- package/dist/cdn/{shared-f9f64dee.js → shared-d3d4badd.js} +1 -1
- package/dist/cdn/{shared-d2304d50.js → shared-d743d0fd.js} +1 -1
- package/dist/cdn/{shared-a3a4c368.js → shared-d8694661.js} +6 -6
- package/dist/cdn/{shared-1ce5b073.js → shared-e1400289.js} +1 -1
- package/dist/cdn/shared-e615d2d9.js +1 -0
- package/dist/cdn/{shared-677953e0.js → shared-ec9893c7.js} +1 -1
- package/dist/cdn/{shared-68a5368a.js → shared-f79f08cc.js} +1 -1
- package/dist/cdn/translations/admin-subscription-form/en.json +112 -48
- package/dist/cdn/translations/api-browser/en.json +7 -3
- package/dist/cdn/translations/cart-form/en.json +91 -39
- package/dist/cdn/translations/coupon-code-form/en.json +7 -3
- package/dist/cdn/translations/coupon-form/en.json +28 -12
- package/dist/cdn/translations/customer/en.json +28 -12
- package/dist/cdn/translations/customer-portal/de.json +14 -6
- package/dist/cdn/translations/customer-portal/en.json +14 -6
- package/dist/cdn/translations/customer-portal/es.json +14 -6
- package/dist/cdn/translations/customer-portal/fr.json +14 -6
- package/dist/cdn/translations/customer-portal/nl.json +14 -6
- package/dist/cdn/translations/customer-portal/pl.json +14 -6
- package/dist/cdn/translations/customer-portal/sv.json +14 -6
- package/dist/cdn/translations/customer-portal/zh-HK.json +14 -6
- package/dist/cdn/translations/customer-portal-settings-form/en.json +14 -6
- package/dist/cdn/translations/experimental-add-to-cart-builder/en.json +28 -12
- package/dist/cdn/translations/gift-card-code-form/en.json +14 -6
- package/dist/cdn/translations/gift-card-form/en.json +35 -15
- package/dist/cdn/translations/item-category-form/en.json +14 -6
- package/dist/cdn/translations/item-form/en.json +35 -15
- package/dist/cdn/translations/native-integration-form/en.json +14 -6
- package/dist/cdn/translations/pagination/en.json +7 -3
- package/dist/cdn/translations/payment-method-card/en.json +7 -3
- package/dist/cdn/translations/store-shipping-method-form/en.json +28 -12
- package/dist/cdn/translations/subscription-form/en.json +21 -9
- package/dist/cdn/translations/tax-form/en.json +7 -3
- package/dist/cdn/translations/template-set-form/en.json +7 -3
- package/dist/cdn/translations/transaction/en.json +98 -42
- package/dist/cdn/translations/update-payment-method-form/en.json +7 -3
- package/dist/cdn/translations/webhook-form/en.json +14 -6
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +13 -31
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +1 -1
- package/dist/elements/public/Pagination/Pagination.js +98 -91
- package/dist/elements/public/Pagination/Pagination.js.map +1 -1
- package/dist/elements/public/Pagination/index.d.ts +1 -0
- package/dist/elements/public/Pagination/index.js +1 -0
- package/dist/elements/public/Pagination/index.js.map +1 -1
- package/dist/elements/public/SwipeActions/SwipeActions.d.ts +1 -0
- package/dist/elements/public/SwipeActions/SwipeActions.js +8 -5
- package/dist/elements/public/SwipeActions/SwipeActions.js.map +1 -1
- package/dist/mixins/themeable.js +0 -18
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-0662adb7.js +0 -1
- package/dist/cdn/shared-0995ae7c.js +0 -637
- package/dist/cdn/shared-0e1ad508.js +0 -1
- package/dist/cdn/shared-20fb2969.js +0 -88
- package/dist/cdn/shared-21fba20d.js +0 -1
- package/dist/cdn/shared-292dcee0.js +0 -10
- package/dist/cdn/shared-5c057c26.js +0 -419
- package/dist/cdn/shared-651c44fa.js +0 -6
- package/dist/cdn/shared-7a4ca3f1.js +0 -1
- package/dist/cdn/shared-986d0f7f.js +0 -1
- package/dist/cdn/shared-c365c1ae.js +0 -31
- package/dist/cdn/shared-f28e46bf.js +0 -12
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import{f as e,M as t,n as s,c as r,d as n,g as i,V as o,j as l,k as a,l as h,u as d,m as c,o as _,w as u,p,E as m,G as f,q as y,r as b,s as g,D as C,t as S,v,x as P,P as w,y as E,z as O,e as A,A as I}from"./shared-d8694661.js";import{q as x,c as T,k as N,h as D,t as M,v as k,f as R}from"./shared-e1400289.js";
|
|
2
|
+
/**
|
|
3
|
+
@license
|
|
4
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
+
*/const F=function(){let t,s;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),s=e()}while(t||s)};
|
|
11
|
+
/**
|
|
12
|
+
@license
|
|
13
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
14
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
15
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
16
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
17
|
+
Code distributed by Google as part of the polymer project is also
|
|
18
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
19
|
+
*/class L{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function H(e){return j(function(e){let t=new L;t.start=0,t.end=e.length;let s=t;for(let r=0,n=e.length;r<n;r++)if(e[r]===B){s.rules||(s.rules=[]);let e=s,t=e.rules[e.rules.length-1]||null;s=new L,s.start=r+1,s.parent=e,s.previous=t,e.rules.push(s)}else e[r]===q&&(s.end=r+1,s=s.parent||t);return t}(e=e.replace(U.comments,"").replace(U.port,"")),e)}function j(e,t){let s=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=s.trim(),e.parent){let r=e.previous?e.previous.end:e.parent.start;s=t.substring(r,e.start-1),s=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e}))}(s),s=s.replace(U.multipleSpaces," "),s=s.substring(s.lastIndexOf(";")+1);let n=e.parsedSelector=e.selector=s.trim();e.atRule=0===n.indexOf(Y),e.atRule?0===n.indexOf(V)?e.type=z.MEDIA_RULE:n.match(U.keyframesRule)&&(e.type=z.KEYFRAMES_RULE,e.keyframesName=e.selector.split(U.multipleSpaces).pop()):0===n.indexOf(J)?e.type=z.MIXIN_RULE:e.type=z.STYLE_RULE}let r=e.rules;if(r)for(let e,s=0,n=r.length;s<n&&(e=r[s]);s++)j(e,t);return e}function $(e,t,s=""){let r="";if(e.cssText||e.rules){let s=e.rules;if(s&&!function(e){let t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(J)}(s))for(let e,n=0,i=s.length;n<i&&(e=s[n]);n++)r=$(e,t,r);else r=t?e.cssText:function(e){return e=function(e){return e.replace(U.customProp,"").replace(U.mixinProp,"")}(e),function(e){return e.replace(U.mixinApply,"").replace(U.varApply,"")}(e)}(e.cssText),r=r.trim(),r&&(r=" "+r+"\n")}return r&&(e.selector&&(s+=e.selector+" "+B+"\n"),s+=r,e.selector&&(s+=q+"\n\n")),s}const z={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},B="{",q="}",U={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},J="--",V="@media",Y="@",X=new Set,G="shady-unscoped";function K(e){const t=e.textContent;if(!X.has(t)){X.add(t);const e=document.createElement("style");e.setAttribute("shady-unscoped",""),e.textContent=t,document.head.appendChild(e)}}function W(e){return e.hasAttribute(G)}
|
|
20
|
+
/**
|
|
21
|
+
@license
|
|
22
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
23
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
24
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
25
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
26
|
+
Code distributed by Google as part of the polymer project is also
|
|
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=H(e)),t&&ee(e,t),$(e,s)):""}function Z(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=H(e.textContent)),e.__cssRules||null}function ee(e,s,r,n){if(!e)return;let i=!1,o=e.type;if(n&&o===z.MEDIA_RULE){let s=e.selector.match(t);s&&(window.matchMedia(s[1]).matches||(i=!0))}o===z.STYLE_RULE?s(e):r&&o===z.KEYFRAMES_RULE?r(e):o===z.MIXIN_RULE&&(i=!0);let l=e.rules;if(l&&!i)for(let e,t=0,i=l.length;t<i&&(e=l[t]);t++)ee(e,s,r,n)}function te(e,t){let s=e.indexOf("var(");if(-1===s)return t(e,"","","");let r=function(e,t){let s=0;for(let r=t,n=e.length;r<n;r++)if("("===e[r])s++;else if(")"===e[r]&&0==--s)return r;return-1}(e,s+3),n=e.substring(s+4,r),i=e.substring(0,s),o=te(e.substring(r+1),t),l=n.indexOf(",");return-1===l?t(i,n.trim(),"",o):t(i,n.substring(0,l).trim(),n.substring(l+1).trim(),o)}window.ShadyDOM&&window.ShadyDOM.wrap;const se="css-build";function re(e){if(void 0!==n)return n;if(void 0===e.__cssBuild){const t=e.getAttribute(se);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(e[0]===se)return e[1]}return""}(e);""!==t&&function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
|
|
29
|
+
/**
|
|
30
|
+
@license
|
|
31
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
32
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
33
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
34
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
35
|
+
Code distributed by Google as part of the polymer project is also
|
|
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 ne(e){return""!==re(e)}const ie=/;\s*/m,oe=/^\s*(initial)|(inherit)\s*$/,le=/\s*!important/,ae="_-_";class he{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 de=null;class ce{constructor(){this._currentElement=null,this._measureElement=null,this._map=new he}detectMixin(e){return i(e)}gatherStyles(e){const t=function(e){const t=[],s=e.querySelectorAll("style");for(let e=0;e<s.length;e++){const n=s[e];W(n)?r||(K(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,r,n)=>this._produceCssProperties(e,s,r,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 r=!1;return ee(t,(t=>{r=r||t===e,r||t.selector===e.selector&&Object.assign(s,this._cssTextToMap(t.parsedCssText))})),s}_consumeCssProperties(e,t){let s=null;for(;s=l.exec(e);){let r=s[0],n=s[1],i=s.index,o=i+r.indexOf("@apply"),a=i+r.length,h=e.slice(0,o),d=e.slice(a),c=t?this._fallbacksFromPreviousRules(t):{};Object.assign(c,this._cssTextToMap(h));let _=this._atApplyToCssProperties(n,c);e=`${h}${_}${d}`,l.lastIndex=i+_.length}return e}_atApplyToCssProperties(e,t){e=e.replace(ie,"");let s=[],r=this._map.get(e);if(r||(this._map.set(e,{}),r=this._map.get(e)),r){let n,i,o;this._currentElement&&(r.dependants[this._currentElement]=!0);const l=r.properties;for(n in l)o=t&&t[n],i=[n,": var(",e,ae,n],o&&i.push(",",o.replace(le,"")),i.push(")"),le.test(l[n])&&i.push(" !important"),s.push(i.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){let s=oe.exec(t);return s&&(t=s[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let s,r,n=e.split(";"),i={};for(let e,o,l=0;l<n.length;l++)e=n[l],e&&(o=e.split(":"),o.length>1&&(s=o[0].trim(),r=o.slice(1).join(":"),t&&(r=this._replaceInitialOrInherit(s,r)),i[s]=r));return i}_invalidateMixinEntry(e){if(de)for(let t in e.dependants)t!==this._currentElement&&de(t)}_produceCssProperties(e,t,s,r,n){if(s&&te(s,((e,t)=>{t&&this._map.get(t)&&(r=`@apply ${t};`)})),!r)return e;let i=this._consumeCssProperties(""+r,n),o=e.slice(0,e.indexOf("--")),l=this._cssTextToMap(i,!0),a=l,h=this._map.get(t),d=h&&h.properties;d?a=Object.assign(Object.create(d),l):this._map.set(t,a);let c,_,u=[],p=!1;for(c in a)_=l[c],void 0===_&&(_="initial"),d&&!(c in d)&&(p=!0),u.push(`${t}${ae}${c}: ${_}`);return p&&this._invalidateMixinEntry(h),h&&(h.properties=a),s&&(o=`${e};${o}`),`${o}${u.join("; ")};`}}ce.prototype.detectMixin=ce.prototype.detectMixin,ce.prototype.transformStyle=ce.prototype.transformStyle,ce.prototype.transformCustomStyle=ce.prototype.transformCustomStyle,ce.prototype.transformRules=ce.prototype.transformRules,ce.prototype.transformRule=ce.prototype.transformRule,ce.prototype.transformTemplate=ce.prototype.transformTemplate,ce.prototype._separator=ae,Object.defineProperty(ce.prototype,"invalidCallback",{get:()=>de,set(e){de=e}});
|
|
38
|
+
/**
|
|
39
|
+
@license
|
|
40
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
41
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
42
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
43
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
44
|
+
Code distributed by Google as part of the polymer project is also
|
|
45
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
46
|
+
*/
|
|
47
|
+
const _e={},ue="_applyShimCurrentVersion",pe="_applyShimNextVersion",me="_applyShimValidatingVersion",fe=Promise.resolve();
|
|
48
|
+
/**
|
|
49
|
+
@license
|
|
50
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
51
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
52
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
53
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
54
|
+
Code distributed by Google as part of the polymer project is also
|
|
55
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
56
|
+
*/function ye(e){let t=_e[e];t&&function(e){e[ue]=e[ue]||0,e[me]=e[me]||0,e[pe]=(e[pe]||0)+1}(t)}function be(e){return e[ue]===e[pe]}
|
|
57
|
+
/**
|
|
58
|
+
@license
|
|
59
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
60
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
61
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
62
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
63
|
+
Code distributed by Google as part of the polymer project is also
|
|
64
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
65
|
+
*/
|
|
66
|
+
const ge=new ce;class Ce{constructor(){this.customStyleInterface=null,ge.invalidCallback=ye}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{ge.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame((()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()}))})}prepareTemplate(e,t){if(this.ensure(),ne(e))return;_e[t]=e;let s=ge.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],r=this.customStyleInterface.getStyleForCustomStyle(s);r&&ge.transformCustomStyle(r)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&d(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="",r="";return t?t.indexOf("-")>-1?s=t:(r=t,s=e.getAttribute&&e.getAttribute("is")||""):(s=e.is,r=e.extends),{is:s,typeExtension:r}}(e),s=_e[t];if((!s||!ne(s))&&s&&!be(s)){(function(e){return!be(e)&&e[me]===e[pe]})(s)||(this.prepareTemplate(s,t),function(e){e[me]=e[pe],e._validating||(e._validating=!0,fe.then((function(){e[ue]=e[pe],e._validating=!1})))}(s));let r=e.shadowRoot;if(r){let e=r.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 Ce;let t=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(t,s,r){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:s,nativeShadow:r,cssBuild:n,disableRuntime:h},t&&(window.ShadyCSS.CustomStyleInterface=t)}window.ShadyCSS.ApplyShim=ge;
|
|
67
|
+
/**
|
|
68
|
+
* @fileoverview
|
|
69
|
+
* @suppress {checkPrototypalTypes}
|
|
70
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
71
|
+
* This code may only be used under the BSD style license found at
|
|
72
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
73
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
74
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
75
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
76
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
77
|
+
*/
|
|
78
|
+
const Se=/:host\(:dir\((ltr|rtl)\)\)/g,ve=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Pe=/:dir\((?:ltr|rtl)\)/,we=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),Ee=[];let Oe=null,Ae="";function Ie(){Ae=document.documentElement.getAttribute("dir")}function xe(e){if(!e.__autoDirOptOut){e.setAttribute("dir",Ae)}}function Te(){Ie(),Ae=document.documentElement.getAttribute("dir");for(let e=0;e<Ee.length;e++)xe(Ee[e])}const Ne=c((e=>{we||Oe||(Ie(),Oe=new MutationObserver(Te),Oe.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const t=_(e);class s extends t{static _processStyleText(e,s){return e=t._processStyleText.call(this,e,s),!we&&Pe.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(Se,':host([dir="$1"])'),t=t.replace(ve,':host([dir="$2"]) $1'),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){t.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Oe&&Oe.takeRecords().length&&Te(),Ee.push(this),xe(this))}disconnectedCallback(){if(t.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const e=Ee.indexOf(this);e>-1&&Ee.splice(e,1)}}}return s.__activateDir=!1,s}));
|
|
79
|
+
/**
|
|
80
|
+
@license
|
|
81
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
82
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
83
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
84
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
85
|
+
Code distributed by Google as part of the polymer project is also
|
|
86
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
87
|
+
*/function De(){document.body.removeAttribute("unresolved")}
|
|
88
|
+
/**
|
|
89
|
+
@license
|
|
90
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
91
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
92
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
93
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
94
|
+
Code distributed by Google as part of the polymer project is also
|
|
95
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
96
|
+
*/
|
|
97
|
+
function Me(e,t,s){return{index:e,removed:t,addedCount:s}}"interactive"===document.readyState||"complete"===document.readyState?De():window.addEventListener("DOMContentLoaded",De);const ke=0,Re=1,Fe=2,Le=3;function He(e,t,s,r,n,i){let o,l=0,a=0,h=Math.min(s-t,i-n);if(0==t&&0==n&&(l=function(e,t,s){for(let r=0;r<s;r++)if(!$e(e[r],t[r]))return r;return s}(e,r,h)),s==e.length&&i==r.length&&(a=function(e,t,s){let r=e.length,n=t.length,i=0;for(;i<s&&$e(e[--r],t[--n]);)i++;return i}(e,r,h-l)),n+=l,i-=a,(s-=a)-(t+=l)==0&&i-n==0)return[];if(t==s){for(o=Me(t,[],0);n<i;)o.removed.push(r[n++]);return[o]}if(n==i)return[Me(t,[],s-t)];let d=function(e){let t=e.length-1,s=e[0].length-1,r=e[t][s],n=[];for(;t>0||s>0;){if(0==t){n.push(Fe),s--;continue}if(0==s){n.push(Le),t--;continue}let i,o=e[t-1][s-1],l=e[t-1][s],a=e[t][s-1];i=l<a?l<o?l:o:a<o?a:o,i==o?(o==r?n.push(ke):(n.push(Re),r=o),t--,s--):i==l?(n.push(Le),t--,r=l):(n.push(Fe),s--,r=a)}return n.reverse(),n}(function(e,t,s,r,n,i){let o=i-n+1,l=s-t+1,a=new Array(o);for(let e=0;e<o;e++)a[e]=new Array(l),a[e][0]=e;for(let e=0;e<l;e++)a[0][e]=e;for(let s=1;s<o;s++)for(let i=1;i<l;i++)if($e(e[t+i-1],r[n+s-1]))a[s][i]=a[s-1][i-1];else{let e=a[s-1][i]+1,t=a[s][i-1]+1;a[s][i]=e<t?e:t}return a}(e,t,s,r,n,i));o=void 0;let c=[],_=t,u=n;for(let e=0;e<d.length;e++)switch(d[e]){case ke:o&&(c.push(o),o=void 0),_++,u++;break;case Re:o||(o=Me(_,[],0)),o.addedCount++,_++,o.removed.push(r[u]),u++;break;case Fe:o||(o=Me(_,[],0)),o.addedCount++,_++;break;case Le:o||(o=Me(_,[],0)),o.removed.push(r[u]),u++}return o&&c.push(o),c}function je(e,t){return He(e,0,e.length,t,0,t.length)}function $e(e,t){return e===t}
|
|
98
|
+
/**
|
|
99
|
+
@license
|
|
100
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
101
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
102
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
103
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
104
|
+
Code distributed by Google as part of the polymer project is also
|
|
105
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
106
|
+
*/function ze(e){return"slot"===e.localName}let Be=class{static getFlattenedNodes(e){const t=u(e);return ze(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map((e=>ze(e)?u(e).assignedNodes({flatten:!0}):[e])).reduce(((e,t)=>e.concat(t)),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){ze(this._target)?this._listenSlots([this._target]):u(this._target).children&&(this._listenSlots(u(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(e=>{this._processMutations(e)})):(this._nativeChildrenObserver=new MutationObserver((e=>{this._processMutations(e)})),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){ze(this._target)?this._unlistenSlots([this._target]):u(this._target).children&&(this._unlistenSlots(u(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,p.run((()=>this.flush())))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let s=e[t];s.addedNodes&&this._listenSlots(s.addedNodes),s.removedNodes&&this._unlistenSlots(s.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let e={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),s=je(t,this._effectiveNodes);for(let t,r=0;r<s.length&&(t=s[r]);r++)for(let s,r=0;r<t.removed.length&&(s=t.removed[r]);r++)e.removedNodes.push(s);for(let r,n=0;n<s.length&&(r=s[n]);n++)for(let s=r.index;s<r.index+r.addedCount;s++)e.addedNodes.push(t[s]);this._effectiveNodes=t;let r=!1;return(e.addedNodes.length||e.removedNodes.length)&&(r=!0,this.callback.call(this._target,e)),r}_listenSlots(e){for(let t=0;t<e.length;t++){let s=e[t];ze(s)&&s.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let s=e[t];ze(s)&&s.removeEventListener("slotchange",this._boundSchedule)}}};
|
|
107
|
+
/**
|
|
108
|
+
@license
|
|
109
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
110
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
111
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
112
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
113
|
+
Code distributed by Google as part of the polymer project is also
|
|
114
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
115
|
+
*/const qe=Element.prototype,Ue=qe.matches||qe.matchesSelector||qe.mozMatchesSelector||qe.msMatchesSelector||qe.oMatchesSelector||qe.webkitMatchesSelector,Je=function(e,t){return Ue.call(e,t)};class Ve{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new Be(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(u(this.node).contains(e))return!0;let t=e,s=e.ownerDocument;for(;t&&t!==s&&t!==this.node;)t=u(t).parentNode||u(t).host;return t===this.node}getOwnerRoot(){return u(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?u(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=u(this.node).assignedSlot;for(;t;)e.push(t),t=u(t).assignedSlot;return e}importNode(e,t){let s=this.node instanceof Document?this.node:this.node.ownerDocument;return u(s).importNode(e,t)}getEffectiveChildNodes(){return Be.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),s=[];for(let r,n=0,i=t.length;n<i&&(r=t[n]);n++)r.nodeType===Node.ELEMENT_NODE&&Je(r,e)&&s.push(r);return s}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function Ye(e,t){for(let s=0;s<t.length;s++){let r=t[s];Object.defineProperty(e,r,{get:function(){return this.node[r]},configurable:!0})}}class Xe{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}Ve.prototype.cloneNode,Ve.prototype.appendChild,Ve.prototype.insertBefore,Ve.prototype.removeChild,Ve.prototype.replaceChild,Ve.prototype.setAttribute,Ve.prototype.removeAttribute,Ve.prototype.querySelector,Ve.prototype.querySelectorAll,Ve.prototype.parentNode,Ve.prototype.firstChild,Ve.prototype.lastChild,Ve.prototype.nextSibling,Ve.prototype.previousSibling,Ve.prototype.firstElementChild,Ve.prototype.lastElementChild,Ve.prototype.nextElementSibling,Ve.prototype.previousElementSibling,Ve.prototype.childNodes,Ve.prototype.children,Ve.prototype.classList,Ve.prototype.textContent,Ve.prototype.innerHTML;let Ge=Ve;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(Ve.prototype).forEach((t=>{"activeElement"!=t&&(e.prototype[t]=Ve.prototype[t])})),Ye(e.prototype,["classList"]),Ge=e,Object.defineProperties(Xe.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&Ke(e).getOwnerRoot(),s=this.path;for(let e=0;e<s.length;e++){const r=s[e];if(Ke(r).getOwnerRoot()===t)return r}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else!function(e,t){for(let s=0;s<t.length;s++){let r=t[s];e[r]=function(){return this.node[r].apply(this.node,arguments)}}}(Ve.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),Ye(Ve.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),function(e,t){for(let s=0;s<t.length;s++){let r=t[s];Object.defineProperty(e,r,{get:function(){return this.node[r]},set:function(e){this.node[r]=e},configurable:!0})}}(Ve.prototype,["textContent","innerHTML","className"]);const Ke=function(e){if((e=e||document)instanceof Ge)return e;if(e instanceof Xe)return e;let t=e.__domApi;return t||(t=e instanceof Event?new Xe(e):new Ge(e),e.__domApi=t),t},We=window.ShadyDOM,Qe=window.ShadyCSS;
|
|
116
|
+
/**
|
|
117
|
+
@license
|
|
118
|
+
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
|
119
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
120
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
121
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
122
|
+
Code distributed by Google as part of the polymer project is also
|
|
123
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
124
|
+
*/function Ze(e,t){return u(e).getRootNode()===t}
|
|
125
|
+
/**
|
|
126
|
+
* @fileoverview
|
|
127
|
+
* @suppress {checkPrototypalTypes}
|
|
128
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
129
|
+
* This code may only be used under the BSD style license found at
|
|
130
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
131
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
132
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
133
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
134
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
135
|
+
*/
|
|
136
|
+
const et="disable-upgrade",tt=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},st=c((e=>{const t=m(e);let s=tt(t);return class extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return s.call(this).concat(et)}_initializeProperties(){this.hasAttribute(et)?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,r){e==et?this.__isUpgradeDisabled&&null==s&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,u(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,s,r)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}})),rt="disable-upgrade";let nt=window.ShadyCSS;const it=c((e=>{const t=f(m(e)),s=y?t:Ne(t),r=tt(s),n={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class i 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]||e===rt)&&this.attributeChangedCallback(e,t,s,null)}setAttribute(e,t){if(x&&!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(x&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return x&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],b(this.prototype)),this.__observedAttributes):r.call(this).concat(rt)}_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,r){t!==s&&(e==rt?this.__isUpgradeDisabled&&null==s&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,u(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,s,r),this.attributeChanged(e,t,s)))}attributeChanged(e,t,s){}_initializeProperties(){if(T&&this.hasAttribute(rt))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(),x&&!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 r,n=0;n<s.length&&(r=s[n]);n++){let s=Object.getOwnPropertyDescriptor(t,r);s&&Object.defineProperty(e,r,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 r=new Event(e,{bubbles:void 0===s.bubbles||s.bubbles,cancelable:Boolean(s.cancelable),composed:void 0===s.composed||s.composed});r.detail=t;let n=s.node||this;return u(n).dispatchEvent(r),r}listen(e,t,s){e=e||this;let r=this.__boundListeners||(this.__boundListeners=new WeakMap),n=r.get(e);n||(n={},r.set(e,n));let i=t+s;n[i]||(n[i]=this._addMethodEventListenerToNode(e,t,s,this))}unlisten(e,t,s){e=e||this;let r=this.__boundListeners&&this.__boundListeners.get(e),n=t+s,i=r&&r[n];i&&(this._removeEventListenerFromNode(e,t,i),r[n]=null)}setScrollDirection(e,t){g(t||this,n[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=u(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=Ke(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return Ke(this).getEffectiveChildNodes()}queryDistributedElements(e){return Ke(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,r=0;s=e[r];r++)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?Ke(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&&u(t).contains(e)&&u(t).getRootNode()===u(e).getRootNode()}isLocalDescendant(e){return this.root===u(e).getRootNode()}scopeSubtree(e,t=!1){return function(e,t=!1){if(!We||!Qe)return null;if(!We.handlesDynamicScoping)return null;const s=Qe.ScopingShim;if(!s)return null;const r=s.scopeForNode(e),n=u(e).getRootNode(),i=e=>{if(!Ze(e,n))return;const t=Array.from(We.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const i=t[e];if(!Ze(i,n))continue;const o=s.currentScopeForNode(i);o!==r&&(""!==o&&s.unscopeNode(i,o),s.scopeNode(i,r))}};if(i(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&&i(t)}}}));return t.observe(e,{childList:!0,subtree:!0}),t}return null}(e,t)}getComputedStyleValue(e){return nt.getComputedStyleValue(this,e)}debounce(e,t,s){return this._debouncers=this._debouncers||{},this._debouncers[e]=C.debounce(this._debouncers[e],s>0?S.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?S.run(e.bind(this),t):~p.run(e.bind(this))}cancelAsync(e){e<0?p.cancel(~e):S.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?(u(s).setAttribute(e,""),!0):(u(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,r){r=r||this,this.transform("translate3d("+e+","+t+","+s+")",r)}arrayDelete(e,t){let s;if(Array.isArray(e)){if(s=e.indexOf(t),s>=0)return e.splice(s,1)}else{if(s=v(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 i.prototype.is="",i})),ot={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},lt={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},at=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},lt);
|
|
137
|
+
/**
|
|
138
|
+
@license
|
|
139
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
140
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
141
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
142
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
143
|
+
Code distributed by Google as part of the polymer project is also
|
|
144
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
145
|
+
*/function ht(e,t){return pt({},it(t),e)}function dt(e,t,s,r){!function(e,t,s){const r=e._noAccessors,n=Object.getOwnPropertyNames(e);for(let i=0;i<n.length;i++){let o=n[i];if(!(o in s))if(r)t[o]=e[o];else{let s=Object.getOwnPropertyDescriptor(e,o);s&&(s.configurable=!0,Object.defineProperty(t,o,s))}}}(t,e,r);for(let e in ot)t[e]&&(s[e]=s[e]||[],s[e].push(t[e]))}function ct(e,t,s){t=t||[];for(let r=e.length-1;r>=0;r--){let n=e[r];n?Array.isArray(n)?ct(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 _t(e,t){for(const s in t){const r=e[s],n=t[s];e[s]=!("value"in n)&&r&&"value"in r?Object.assign({value:r.value},n):n}}const ut=it(HTMLElement);function pt(e,t,s){let r;const n={};class i extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(r)for(let e,t=0;t<r.length;t++)e=r[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(r)for(let e=0;e<r.length;e++)_t(t,r[e].properties);return _t(t,e.properties),t}static get observers(){let t=[];if(r)for(let e,s=0;s<r.length;s++)e=r[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=i.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),T&&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 r=n.attributeChanged;if(r)for(let n=0;n<r.length;n++)r[n].call(this,e,t,s)}}if(s){Array.isArray(s)||(s=[s]);let e=t.prototype.behaviors;r=ct(s,null,e),i.prototype.behaviors=e?e.concat(s):r}const o=t=>{r&&function(e,t,s){for(let r=0;r<t.length;r++)dt(e,t[r],s,at)}(t,r,n),dt(t,e,n,lt)};return T||o(i.prototype),i.generatedFrom=e,i}const mt=function(e){let t;return t="function"==typeof e?e:mt.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
|
|
146
|
+
/**
|
|
147
|
+
@license
|
|
148
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
149
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
150
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
151
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
152
|
+
Code distributed by Google as part of the polymer project is also
|
|
153
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
154
|
+
*/
|
|
155
|
+
/**
|
|
156
|
+
@license
|
|
157
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
158
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
159
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
160
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
161
|
+
Code distributed by Google as part of the polymer project is also
|
|
162
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
163
|
+
*/
|
|
164
|
+
function ft(e,t,s,r,n){let i;n&&(i="object"==typeof s&&null!==s,i&&(r=e.__dataTemp[t]));let o=r!==s&&(r==r||s==s);return i&&o&&(e.__dataTemp[t]=s),o}mt.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let s=t?t(ut):ut;return s=pt(e,s,e.behaviors),s.is=s.prototype.is=e.is,s};const yt=c((e=>class extends e{_shouldPropertyChange(e,t,s){return ft(this,e,t,s,!0)}})),bt=c((e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,s){return ft(this,e,t,s,this.mutableData)}}));yt._mutablePropertyChange=ft;
|
|
165
|
+
/**
|
|
166
|
+
@license
|
|
167
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
168
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
169
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
170
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
171
|
+
Code distributed by Google as part of the polymer project is also
|
|
172
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
173
|
+
*/
|
|
174
|
+
let gt=null;function Ct(){return gt}Ct.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ct,writable:!0}});const St=P(Ct),vt=yt(St);const Pt=P(class{});function wt(e,t){for(let s=0;s<t.length;s++){let r=t[s];if(Boolean(e)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),u(u(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const e=r.__polymerReplaced__;e&&u(u(e).parentNode).replaceChild(r,e)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}class Et extends Pt{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 r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(e,t,s)}}_showHideChildren(e){wt(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}}Et.prototype.__dataHost,Et.prototype.__templatizeOptions,Et.prototype._methodHost,Et.prototype.__templatizeOwner,Et.prototype.__hostProps;const Ot=yt(Et);function At(e){let t=e.__dataHost;return t&&t._methodHost||t}function It(e,t,s){let r=s.mutableData?Ot:Et;Dt.mixin&&(r=Dt.mixin(r));let n=class extends r{};return n.prototype.__templatizeOptions=s,n.prototype._bindTemplate(e),function(e,t,s,r){let n=s.hostProps||{};for(let t in r.instanceProps){delete n[t];let s=r.notifyInstanceProp;s&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Nt(t,s)})}if(r.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 xt(e,t,s,r){let n=s.forwardHostProp;if(n&&t.hasHostProps){const l="template"==e.localName;let a=t.templatizeTemplateClass;if(!a){if(l){let e=s.mutableData?vt:St;class r extends e{}a=t.templatizeTemplateClass=r}else{const s=e.constructor;class r extends s{}a=t.templatizeTemplateClass=r}let i=t.hostProps;for(let e in i)a.prototype._addPropertyEffect("_host_"+e,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Tt(e,n)}),a.prototype._createNotifyingProperty("_host_"+e);D&&r&&function(e,t,s){const r=s.constructor._properties,{propertyEffects:n}=e,{instanceProps:i}=t;for(let e in n)if(!(r[e]||i&&i[e])){const t=n[e];for(let s=0;s<t.length;s++){const{part:r}=t[s].info;if(!r.signature||!r.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(t,s,r)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),l)o=a,gt=i=e,Object.setPrototypeOf(i,o.prototype),new o,gt=null,e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,a.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}}}var i,o}function Tt(e,t){return function(e,s,r){t.call(e.__templatizeOwner,s.substring(6),r[s])}}function Nt(e,t){return function(e,s,r){t.call(e.__templatizeOwner,e,s,r[s])}}function Dt(e,t,s){if(N&&!At(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 r=(t?t.constructor:Et)._parseTemplate(e),n=r.templatizeInstanceClass;n||(n=It(e,r,s),r.templatizeInstanceClass=n);const i=At(e);xt(e,r,s,i);let o=class extends n{};return o.prototype._methodHost=i,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=r.hostProps,o}function Mt(e,t){let s;for(;t;)if(s=t.__dataHost?t:t.__templatizeInstance){if(s.__dataHost==e)return s;t=s.__dataHost}else t=u(t).parentNode;return null}
|
|
175
|
+
/**
|
|
176
|
+
@license
|
|
177
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
178
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
179
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
180
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
181
|
+
Code distributed by Google as part of the polymer project is also
|
|
182
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
183
|
+
*/let kt=!1;function Rt(){if(T&&!M){if(!kt){kt=!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
|
+
/**
|
|
185
|
+
@license
|
|
186
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
187
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
188
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
189
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
190
|
+
Code distributed by Google as part of the polymer project is also
|
|
191
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
192
|
+
*/const Ft=f(bt(P(HTMLElement)));customElements.define("dom-bind",class extends Ft{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),N)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,s,r){this.mutableData=!0}connectedCallback(){Rt()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){u(u(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
|
+
/**
|
|
194
|
+
@license
|
|
195
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
196
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
197
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
198
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
199
|
+
Code distributed by Google as part of the polymer project is also
|
|
200
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
201
|
+
*/
|
|
202
|
+
const Lt=bt(w);class Ht extends Lt{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);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Rt()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=u(u(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__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=Dt(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(e,t){let s=this.__instances;for(let r,n=0;n<s.length&&(r=s[n]);n++)r.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,s){if(E(this.as,t)){let r=e[this.itemsIndexAs];t==this.as&&(this.items[r]=s);let n=O(this.as,`${JSCompiler_renameProperty("items",this)}.${r}`,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?S.after(t):p,e.bind(this)),A(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),F()}__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.__chunkingId=null,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,r)=>this.__filterFn(e[t],s,r)))),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 r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),r=Math.max(t-s,0),this.__chunkCount=r||1):(r=Math.min(Math.max(e-s,0),this.__chunkCount),t=Math.min(s+r,e)),this.__shouldMeasureChunk=r===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 r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let t=this.__instances[n],i=s[n],o=e[i];r[i]=n,t?(t._setPendingProperty(this.as,o),t._setPendingProperty(this.indexAs,n),t._setPendingProperty(this.itemsIndexAs,i),t._flushProperties()):this.__insertInstance(o,n,i)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const s=u(t.root);for(let e=0;e<t.children.length;e++){let r=t.children[e];s.appendChild(r)}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 r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=s,new this.__ctor(r)}__insertInstance(e,t,s){const r=this.__stampInstance(e,t,s);let n=this.__instances[t+1],i=n?n.children[0]:this;return u(u(this).parentNode).insertBefore(r.root,i),this.__instances[t]=r,r}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let s=e.slice(6),r=s.indexOf("."),n=r<0?s:s.substring(0,r);if(n==parseInt(n,10)){let e=r<0?"":s.substring(r+1);this.__handleObservedPaths(e);let i=this.__itemsIdxToInstIdx[n],o=this.__instances[i];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 Mt(this.template,e)}}customElements.define(Ht.is,Ht);
|
|
203
|
+
/**
|
|
204
|
+
@license
|
|
205
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
206
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
207
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
208
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
209
|
+
Code distributed by Google as part of the polymer project is also
|
|
210
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
211
|
+
*/
|
|
212
|
+
class jt extends w{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())),A(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=u(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||u(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Rt()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:u(e).querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!u(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=u(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(u(this).previousSibling!==t[t.length-1])for(let s,r=0;r<t.length&&(s=t[r]);r++)u(e).insertBefore(s,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){F()}__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 $t=R?class extends jt{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(N&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const s=t._bindTemplate(this.__template,!0);s.runEffects=(e,t,s)=>{let r=this.__syncInfo;if(this.if)r&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(r.changedProps,t)),e(t,s);else if(this.__instance)if(r||(r=this.__syncInfo={runEffects:e,changedProps:{}}),s)for(const e in t){const t=I(e);r.changedProps[t]=this.__dataHost[t]}else Object.assign(r.changedProps,t)},this.__instance=t._stampTemplate(this.__template,s),u(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,wt(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}:class extends jt{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=Dt(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[I(e)]=!0))}})),this.__instance=new this.__ctor,u(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=u(e[0]).parentNode;if(t){t=u(t);for(let s,r=0;r<e.length&&(s=e[r]);r++)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($t.is,$t);
|
|
213
|
+
/**
|
|
214
|
+
@license
|
|
215
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
216
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
217
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
218
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
219
|
+
Code distributed by Google as part of the polymer project is also
|
|
220
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
221
|
+
*/
|
|
222
|
+
let zt,Bt=c((e=>{let t=m(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||[],r=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),r){let e=je(s,r);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 r=e[s];t.forEach(((e,s)=>{e<r.index||(e>=r.index+r.removed.length?t.set(s,e+r.addedCount-r.removed.length):t.set(s,-1))}));for(let e=0;e<r.addedCount;e++){let s=r.index+e;t.has(this.items[s])&&t.set(this.items[s],s)}}this.__updateLinks();let s=0;t.forEach(((e,r)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null,t.delete(r)):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,r)=>{t==e++&&this.deselect(r)}))}}__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)}}}))(w);class qt extends Bt{static get is(){return"array-selector"}static get template(){return null}}customElements.define(qt.is,qt),zt=yt._mutablePropertyChange;const Ut={properties:{mutableData:Boolean},_shouldPropertyChange(e,t,s){return zt(this,e,t,s,this.mutableData)}},Jt=it(HTMLElement).prototype;
|
|
223
|
+
/**
|
|
224
|
+
@license
|
|
225
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
226
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
227
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
228
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
229
|
+
Code distributed by Google as part of the polymer project is also
|
|
230
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
231
|
+
*/export{Jt as B,st as D,Be as F,Ut as O,mt as P,ht as a,Ke as d,F as f,Mt as m,Dt as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as e}from"./shared-
|
|
1
|
+
import{I as e}from"./shared-ec9893c7.js";import"./shared-1d03f911.js";import{_ as t}from"./shared-cb58dfcd.js";import{d as s,N as r,i as o,c as a,h as i,s as n}from"./shared-ba5c42c7.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{t as e}from"./shared-e1400289.js";import{d as t}from"./shared-241b6cca.js";
|
|
2
|
+
/**
|
|
3
|
+
@license
|
|
4
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10
|
+
*/let i=!1,s=[],n=[];function o(){i=!0,requestAnimationFrame((function(){i=!1,function(e){for(;e.length;)r(e.shift())}(s),setTimeout((function(){!function(e){for(let t=0,i=e.length;t<i;t++)r(e.shift())}(n)}))}))}function r(e){const t=e[0],i=e[1],s=e[2];try{i.apply(t,s)}catch(e){setTimeout((()=>{throw e}))}}function a(e,t,s){i||o(),n.push([e,t,s])}
|
|
11
|
+
/**
|
|
12
|
+
@license
|
|
13
|
+
Copyright (c) 2017 Vaadin Ltd.
|
|
14
|
+
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15
|
+
*/const h=e=>class extends e{static get properties(){return{_hasVaadinItemMixin:{value:!0},disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");null!==e&&(this.value=e),this.addEventListener("focus",(e=>this._setFocused(!0)),!0),this.addEventListener("blur",(e=>this._setFocused(!1)),!0),this.addEventListener("mousedown",(e=>{this._setActive(this._mousedown=!0);const t=()=>{this._setActive(this._mousedown=!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)})),this.addEventListener("keydown",(e=>this._onKeydown(e))),this.addEventListener("keyup",(e=>this._onKeyup(e)))}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("active")&&this._setFocused(!1)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){e?(this.selected=!1,this.setAttribute("aria-disabled","true"),this.blur()):this.removeAttribute("aria-disabled")}_setFocused(e){e?(this.setAttribute("focused",""),this._mousedown||this.setAttribute("focus-ring","")):(this.removeAttribute("focused"),this.removeAttribute("focus-ring"),this._setActive(!1))}_setActive(e){e?this.setAttribute("active",""):this.removeAttribute("active")}_onKeydown(e){/^( |SpaceBar|Enter)$/.test(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this._setActive(!0))}_onKeyup(e){this.hasAttribute("active")&&(this._setActive(!1),this.click())}}
|
|
16
|
+
/**
|
|
17
|
+
@license
|
|
18
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
19
|
+
This code may only be used under the BSD style license found at
|
|
20
|
+
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
21
|
+
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
22
|
+
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
23
|
+
part of the polymer project is also subject to an additional IP rights grant
|
|
24
|
+
found at http://polymer.github.io/PATENTS.txt
|
|
25
|
+
*/;var d=new Set;const u={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(d.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach((function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)}),this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),this._parentResizable=e,e&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(t){this._notifyingDescendant?t.stopPropagation():e||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var i=t(e).rootTarget;i!==this&&(i.assignParentResizable(this),this._notifyDescendant(i),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(d.forEach((function(e){e!==this&&e._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?d.delete(this):d.add(this)}};export{h as I,a,u as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-58b6710c.js";import"./shared-5d7c4673.js";import"./shared-9d4813e6.js";import"./shared-d743d0fd.js";import{h as e,D as t,t as i,a,P as r}from"./shared-d8694661.js";import{C as o}from"./shared-f79f08cc.js";import{E as n,T as s}from"./shared-7977d581.js";const l=e`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
|
|
2
2
|
<template>
|
|
3
3
|
<style include="lumo-required-field lumo-field-button">
|
|
4
4
|
:host {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./shared-f79f08cc.js";import"./shared-3aca4932.js";import{I as e}from"./shared-ec9893c7.js";import{I as t}from"./shared-8f81f4ed.js";import"./foxy-copy-to-clipboard.js";import"./foxy-nucleon-element.js";import"./foxy-form-dialog.js";import"./shared-1d03f911.js";import{_ as s,m as i}from"./shared-cb58dfcd.js";import{h as r,s as o}from"./shared-ba5c42c7.js";import{s as l}from"./shared-53e476fd.js";import{g as a}from"./shared-bab2ea2c.js";import{F as n}from"./shared-343d1fd7.js";import{i as d}from"./shared-53e42a77.js";import{c as h}from"./shared-4e709717.js";import{u as c}from"./shared-f83207fb.js";let u,f=e=>e;let p,y,m,v,x,b,g,$,_=e=>e;customElements.define("foxy-internal-resource-picker-control-form",class extends t{constructor(){super(...arguments),this.selectionProps={}}static get properties(){return s(s({},super.properties),{},{selectionProps:{attribute:!1}})}renderBody(){return r(u||(u=f` <foxy-internal-async-list-control infer="selection" form="foxy-null" hide-delete-button hide-create-button @itemclick="${0}" ...="${0}"> </foxy-internal-async-list-control> `),(e=>{e.preventDefault(),this.edit({selection:e.detail}),this.submit()}),l(this.selectionProps))}}),customElements.define("foxy-internal-resource-picker-control",class extends e{constructor(){super(...arguments),this.getDisplayValueOptions=e=>({resource:e}),this.showCopyIdButton=!1,this.virtualHost=c("internal-resource-picker-control-"),this.getItemUrl=null,this.formProps={},this.filters=[],this.layout=null,this.first=null,this.item=null,this.form=null,this.__getItemRenderer=i((e=>new Function("ctx",`return ctx.html\`\n <${null!=e?e:"foxy-null"}\n related=\${JSON.stringify(ctx.related)}\n parent=\${ctx.parent}\n infer="card"\n href=\${ctx.href}\n ...=\${ctx.spread(ctx.props)}\n >\n </${null!=e?e:"foxy-null"}>\``)))}static get properties(){return s(s({},super.properties),{},{getDisplayValueOptions:{attribute:!1},showCopyIdButton:{type:Boolean,attribute:"show-copy-id-button"},virtualHost:{},getItemUrl:{attribute:!1},formProps:{type:Object},filters:{type:Array},layout:{},first:{},item:{},form:{}})}renderControl(){var e;const t=s(s({},this.formProps),{},{".selectionProps":{".filters":this.filters,".first":this.first,".item":this.item}});return r(p||(p=_` <foxy-form-dialog parent="foxy://${0}/select" header="header" infer="dialog" alert .props="${0}" .form="${0}" @fetch="${0}"> </foxy-form-dialog> ${0} `),this.virtualHost,t,null!==(e=this.form)&&void 0!==e?e:"foxy-internal-resource-picker-control-form",this.__handleFetchEvent,"summary-item"===this.layout?this.__renderSummaryItemLayout():this.__renderStandaloneLayout())}updated(e){var t,s;super.updated(e),e.has("item")&&(null===(s=(t=this.__getItemRenderer.cache).clear)||void 0===s||s.call(t))}__clear(){this._value="",this.dispatchEvent(new CustomEvent("clear"))}__renderSummaryItemLayout(){const e=this.renderRoot.querySelector("#value");return r(y||(y=_` <div class="leading-xs"> <div class="flex items-center gap-xs"> <div class="text-m text-body whitespace-nowrap flex-1">${0}</div> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <div class="truncate min-w-0"> ${0} </div> </button> <button aria-label="${0}" class="${0}" style="width:1em;height:1em" ?disabled="${0}" ?hidden="${0}" @click="${0}"> ${0} </button> </div> <div style="max-width:32rem"> <div class="text-xs text-secondary">${0}</div> <div class="text-xs text-error" ?hidden="${0}"> ${0} </div> </div> </div> <foxy-nucleon infer="" href="${0}" id="value" @update="${0}"> </foxy-nucleon> `),this.label,this.t("select"),h({"text-right min-w-0 transition-colors transition-opacity":!0,"rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"text-secondary":this.readonly,"text-disabled":this.disabled,"cursor-pointer text-body hover-opacity-80":!this.disabled&&!this.readonly,"font-medium":!this.readonly}),this.disabled||this.readonly,(e=>{if(this.disabled||this.readonly)return;const t=e.currentTarget,s=this.renderRoot.querySelector("foxy-form-dialog");s.href="",s.show(t)}),this._value?r(m||(m=_` <foxy-i18n infer="" key="value" .options="${0}"> </foxy-i18n> `),(null==e?void 0:e.data)?this.getDisplayValueOptions(e.data):{context:(null==e?void 0:e.in("fail"))?"fail":"busy"}):this.placeholder,this.t("clear"),h({"rounded-full transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"cursor-pointer text-tertiary hover-text-body":!this.disabled,"cursor-default text-disabled":this.disabled}),this.disabled,this.readonly||!this._value,this.__clear,o(v||(v=_`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1em; height: 1em; transform: scale(1.25); margin-right: -0.16em"><path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" /></svg>`)),this.helperText,this.disabled||this.readonly,this._errorMessage,d(this._value||void 0),(()=>this.requestUpdate()))}__renderStandaloneLayout(){var e,t,s,i,o;const n=this.__valueLoader,c="string"==typeof this._value?a(this._value):void 0,u="string"==typeof this._value?null===(e=this.getItemUrl)||void 0===e?void 0:e.call(this,this._value,null!==(t=null==n?void 0:n.data)&&void 0!==t?t:null):void 0;return r(x||(x=_` <div class="block group"> <div class="${0}"> <span class="mr-auto text-l">${0}</span> ${0} ${0} ${0} </div> <div class="text-secondary text-s" ?hidden="${0}">${0}</div> <button class="${0}" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" ?disabled="${0}" @click="${0}"> <div class="${0}"> <foxy-nucleon class="block" infer="" href="${0}" id="valueLoader" @update="${0}"> ${0} </foxy-nucleon> </div> </button> <div class="mt-xs text-xs leading-xs text-error" ?hidden="${0}"> ${0} </div> </div> `),h({"flex items-center gap-s transition-colors font-medium":!0,"text-disabled":this.disabled}),this.label,u?r(b||(b=_` <a class="text-body rounded transition-opacity hover-opacity-90 focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> <foxy-i18n infer="" key="view"></foxy-i18n> </a> `),u):"",this.showCopyIdButton&&null!==c?r(g||(g=_` <foxy-copy-to-clipboard layout="text" theme="contrast tertiary-inline" infer="copy-id" text="${0}"> </foxy-copy-to-clipboard> `),c):"",this.readonly||!this._value?"":r($||($=_` <vaadin-button theme="error tertiary-inline" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="clear"></foxy-i18n> </vaadin-button> `),this.disabled,this.__clear),!this.helperText,this.helperText,h({"block w-full bg-contrast-5 rounded text-left transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"cursor-pointer hover-bg-contrast-10":!this.disabled&&!this.readonly,"cursor-default":this.disabled||this.readonly,"mt-s":!!this.label||!!this.helperText}),this.disabled||this.readonly,(e=>{const t=e.currentTarget,s=this.renderRoot.querySelector("foxy-form-dialog");s.href="",s.show(t)}),h({"transition-opacity":!0,"opacity-50":this.disabled}),d(this._value||void 0),(()=>this.requestUpdate()),this.__getItemRenderer(this.item)({html:r,data:null!==(s=null==n?void 0:n.data)&&void 0!==s?s:null,href:this._value||"",related:[],parent:"",props:{},spread:l,simplifyNsLoading:this.simplifyNsLoading,disabled:this.disabled,disabledControls:this.disabledControls,readonly:this.readonly,readonlyControls:this.readonlyControls,hidden:this.hidden,hiddenControls:this.hiddenControls,templates:this.templates,previous:null,next:null,group:null!==(o=null===(i=this.nucleon)||void 0===i?void 0:i.group)&&void 0!==o?o:"",lang:this.lang,ns:this.ns}),!this._errorMessage||this.disabled||this.readonly,this._errorMessage)}__handleFetchEvent(e){if(!(e instanceof n))return;if(e.defaultPrevented)return;const{url:t,method:s}=e.request;return t===`foxy://${this.virtualHost}/select`&&"POST"===s?e.respondWith(this.__handleSelect(e.request)):t===`foxy://${this.virtualHost}/empty`&&"GET"===s?e.respondWith(this.__handleEmpty()):void 0}async __handleSelect(e){const t=await e.clone().json();return this._value=t.selection,new Response(JSON.stringify({_links:{self:{href:`foxy://${this.virtualHost}/empty`}},message:"Resource selected."}))}async __handleEmpty(){return new Response(JSON.stringify({_links:{self:{href:`foxy://${this.virtualHost}/empty`}},message:"Resource selected."}))}get __valueLoader(){return this.renderRoot.querySelector("#valueLoader")}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as t}from"./shared-5afb584d.js";import{R as e}from"./shared-
|
|
1
|
+
import{C as t}from"./shared-5afb584d.js";import{R as e}from"./shared-e1400289.js";import{I as s}from"./shared-c009b9b6.js";import{h as i}from"./shared-ba5c42c7.js";let r,d,a,l=t=>t;const o=e(t(s));class n extends o{constructor(){super(...arguments),this.__renderTitle=t=>i(r||(r=l` <div data-testid="title"> ${0} <div class="font-medium truncate"> ${0}​ </div> ${0} </div> `),this.renderTemplateOrSlot("title:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("title:after")),this.__renderSubtitle=t=>i(d||(d=l` <div data-testid="subtitle"> ${0} <div class="text-secondary truncate text-s sm-text-m"> ${0}​ </div> ${0} </div> `),this.renderTemplateOrSlot("subtitle:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("subtitle:after"))}renderBody(t){const e=this.hiddenSelector;return i(a||(a=l` <div class="relative text-body text-m font-lumo leading-xs sm-h-auto sm-flex sm-items-center sm-justify-between"> ${0} ${0} </div> `),e.matches("title",!0)?"":this.__renderTitle(null==t?void 0:t.title),e.matches("subtitle",!0)?"":this.__renderSubtitle(null==t?void 0:t.subtitle))}}export{n as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-f79f08cc.js";import"./shared-c231e3bf.js";import"./shared-1b46df2a.js";import{L as t,h as e}from"./shared-ba5c42c7.js";import{T as a}from"./shared-e1400289.js";import{c as s}from"./shared-4e709717.js";import{p as n}from"./shared-43e2c3f6.js";import{s as r}from"./shared-79d0699c.js";let i,o,l,d,c,h=t=>t;class u extends(a(t)){constructor(){super(...arguments),this.checkAvailability=()=>!0,this.readonly=!1,this.disabled=!1,this.value="",this.start="",this.lang=""}static get properties(){return{checkAvailability:{attribute:!1},readonly:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},value:{type:String},start:{type:String},lang:{type:String}}}render(){var t,a;const n=new Date(null!==(a=null!==(t=this.__startAsDate)&&void 0!==t?t:this.__valueAsDate)&&void 0!==a?a:Date.now()),r=new Date(n),o=new Date(n),l=this.lang||navigator.language;return r.setMonth(r.getMonth()-1),o.setMonth(o.getMonth()+1),e(i||(i=h` <div class="text-m text-body font-lumo leading-m"> <div class="grid p-xs" style="grid-template:auto/max-content auto max-content"> <vaadin-button data-testid="prev" aria-label="${0}" theme="icon tertiary" class="px-xs" ?disabled="${0}" @click="${0}"> <iron-icon icon="icons:chevron-left"></iron-icon> </vaadin-button> <span data-testid="month" class="${0}"> ${0} </span> <vaadin-button data-testid="next" aria-label="${0}" theme="icon tertiary" class="px-xs" ?disabled="${0}" @click="${0}"> <iron-icon icon="icons:chevron-right"></iron-icon> </vaadin-button> </div> ${0} </div> `),r.toLocaleString(l,{year:"numeric",month:"long"}),this.disabled,this.__handlePrevButtonClick,s({"text-center self-center font-medium":!0,"text-disabled":this.disabled}),n.toLocaleDateString(l,{month:"long",year:"numeric"}),o.toLocaleString(l,{year:"numeric",month:"long"}),this.disabled,this.__handleNextButtonClick,this.__renderMonth(n.getMonth(),n.getFullYear()))}get __valueAsDate(){return n(this.value)}set __valueAsDate(t){this.value=t?r(t):""}get __startAsDate(){return n(this.start)}set __startAsDate(t){this.start=t?r(t):""}__renderMonth(t,a){var n,r,i;const c=this.lang||navigator.language,u=new Date(a,t,1,0,0,0,0),g=[];for(let t=0;t<7;++t){const a=new Date;for(;a.getDay()!==t;)a.setDate(a.getDate()+1);g.push(e(o||(o=h` <span class="${0}"> ${0} </span> `),s({"self-center text-xxs uppercase font-medium tracking-wider":!0,"text-secondary":!this.disabled,"text-disabled":this.disabled}),a.toLocaleString(c,{weekday:"short"})))}for(;u.getMonth()===t;){const s=u.getFullYear()===(null===(n=this.__valueAsDate)||void 0===n?void 0:n.getFullYear())&&u.getMonth()===(null===(r=this.__valueAsDate)||void 0===r?void 0:r.getMonth())&&u.getDate()===(null===(i=this.__valueAsDate)||void 0===i?void 0:i.getDate());g.push(e(l||(l=h` <div style="grid-column:${0}" data-testclass="day-of-month"> ${0} </div> `),u.getDay()+1,this.__renderDate(u.getDate(),t,a,s))),u.setDate(u.getDate()+1)}return e(d||(d=h` <form data-testid="grid" class="grid gap-s p-s text-center" style="grid-template:auto/repeat(7,1fr)"> ${0} </form> `),g)}__renderDate(t,a,n,r=!1){const i=this.disabled||this.readonly||!this.checkAvailability(new Date(n,a,t));return e(c||(c=h` <label class="${0}"> <input name="date" type="radio" value="${0}" class="sr-only" ?disabled="${0}" @change="${0}"> ${0} </label> `),s({"relative flex w-m h-m items-center justify-center rounded-s":!0,"font-tnum text-l select-none leading-none":!0,"cursor-pointer focus-within-ring-2 focus-within-ring-primary-50":!i,"bg-contrast-5 hover-bg-contrast-10":!r&&!i,"bg-primary text-primary-contrast":r&&!i,"border border-dashed border-contrast-20 text-disabled":!r&&i,"border border-dashed border-primary text-primary":r&&i}),t,this.readonly||this.disabled||i,(()=>{this.__valueAsDate=new Date(n,a,t),this.dispatchEvent(new CustomEvent("change"))}),t)}__handlePrevButtonClick(){var t;const e=null!==(t=this.__startAsDate)&&void 0!==t?t:new Date;this.__startAsDate=new Date(e.setMonth(e.getMonth()-1))}__handleNextButtonClick(){var t;const e=null!==(t=this.__startAsDate)&&void 0!==t?t:new Date;this.__startAsDate=new Date(e.setMonth(e.getMonth()+1))}}customElements.define("foxy-internal-calendar",u);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-58b6710c.js";import{h as t,P as e}from"./shared-d8694661.js";import{F as i,t as o}from"./shared-241b6cca.js";import{T as n,a,E as s}from"./shared-7977d581.js";import"./shared-4d919766.js";import{O as r}from"./shared-b1c9199f.js";import"./shared-f79f08cc.js";import"./shared-2939f350.js";import"./foxy-collection-page.js";import"./foxy-swipe-actions.js";import"./foxy-form-dialog.js";import"./foxy-pagination.js";import"./shared-1d03f911.js";import{I as l}from"./shared-ec9893c7.js";import"./shared-8e010314.js";import{x as d}from"./shared-e1400289.js";import{c,h,r as u}from"./shared-ba5c42c7.js";import{_ as m}from"./shared-cb58dfcd.js";import{i as p}from"./shared-53e42a77.js";import{c as _}from"./shared-4e709717.js";const f=t`<dom-module id="lumo-notification-card" theme-for="vaadin-notification-card">
|
|
2
2
|
<template>
|
|
3
3
|
<style>
|
|
4
4
|
:host {
|