@pine-ds/core 0.1.5 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index2.js +9 -0
- package/components/index2.js.map +1 -0
- package/components/pds-accordion.js +9 -2
- package/components/pds-accordion.js.map +1 -1
- package/components/pds-avatar.js +4 -3
- package/components/pds-avatar.js.map +1 -1
- package/components/pds-icon2.js +1 -1
- package/components/pds-icon2.js.map +1 -1
- package/components/pds-link.js +2 -4
- package/components/pds-link.js.map +1 -1
- package/dist/cjs/index-968864bf.js +14 -0
- package/dist/cjs/index-968864bf.js.map +1 -0
- package/dist/cjs/{index-4cd639bf.js → index-9b7c547c.js} +15 -3
- package/dist/cjs/index-9b7c547c.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-accordion.cjs.entry.js +10 -3
- package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +5 -4
- package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/pds-chip.cjs.entry.js +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js +2 -2
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-image.cjs.entry.js +1 -1
- package/dist/cjs/pds-input.cjs.entry.js +2 -2
- package/dist/cjs/{pds-label-c988430d.js → pds-label-b30f3c13.js} +2 -2
- package/dist/cjs/{pds-label-c988430d.js.map → pds-label-b30f3c13.js.map} +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +4 -6
- package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-progress.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js +2 -2
- package/dist/cjs/pds-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +2 -2
- package/dist/cjs/pds-tab.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-table.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +2 -2
- package/dist/cjs/pds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/pine-core.cjs.js +2 -2
- package/dist/cjs/pine-core.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/pds-accordion/pds-accordion.css +24 -1
- package/dist/collection/components/pds-accordion/pds-accordion.js +8 -1
- package/dist/collection/components/pds-accordion/pds-accordion.js.map +1 -1
- package/dist/collection/components/pds-avatar/pds-avatar.js +4 -3
- package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
- package/dist/collection/components/pds-link/pds-link.css +4 -3
- package/dist/docs.json +3 -3
- package/dist/esm/{index-09d6e504.js → index-5e54ea50.js} +15 -3
- package/dist/esm/index-5e54ea50.js.map +1 -0
- package/dist/esm/index-9835dc94.js +9 -0
- package/dist/esm/index-9835dc94.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/pds-accordion.entry.js +10 -3
- package/dist/esm/pds-accordion.entry.js.map +1 -1
- package/dist/esm/pds-avatar.entry.js +5 -4
- package/dist/esm/pds-avatar.entry.js.map +1 -1
- package/dist/esm/pds-box.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-checkbox_2.entry.js +2 -2
- package/dist/esm/pds-chip.entry.js +1 -1
- package/dist/esm/pds-copytext.entry.js +1 -1
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-icon.entry.js +2 -2
- package/dist/esm/pds-icon.entry.js.map +1 -1
- package/dist/esm/pds-image.entry.js +1 -1
- package/dist/esm/pds-input.entry.js +2 -2
- package/dist/esm/{pds-label-ea621e18.js → pds-label-39814469.js} +2 -2
- package/dist/esm/{pds-label-ea621e18.js.map → pds-label-39814469.js.map} +1 -1
- package/dist/esm/pds-link.entry.js +3 -5
- package/dist/esm/pds-link.entry.js.map +1 -1
- package/dist/esm/pds-progress.entry.js +1 -1
- package/dist/esm/pds-radio.entry.js +2 -2
- package/dist/esm/pds-row.entry.js +1 -1
- package/dist/esm/pds-sortable-item.entry.js +1 -1
- package/dist/esm/pds-sortable.entry.js +1 -1
- package/dist/esm/pds-switch.entry.js +2 -2
- package/dist/esm/pds-tab.entry.js +1 -1
- package/dist/esm/pds-table-body.entry.js +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +1 -1
- package/dist/esm/pds-table-head.entry.js +1 -1
- package/dist/esm/pds-table-row.entry.js +1 -1
- package/dist/esm/pds-table.entry.js +1 -1
- package/dist/esm/pds-tabpanel.entry.js +1 -1
- package/dist/esm/pds-tabs.entry.js +1 -1
- package/dist/esm/pds-textarea.entry.js +2 -2
- package/dist/esm/pds-tooltip.entry.js +1 -1
- package/dist/esm/pine-core.js +3 -3
- package/dist/esm/pine-core.js.map +1 -1
- package/dist/esm-es5/index-5e54ea50.js +3 -0
- package/dist/esm-es5/index-5e54ea50.js.map +1 -0
- package/dist/esm-es5/index-9835dc94.js +2 -0
- package/dist/esm-es5/index-9835dc94.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js.map +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-icon.entry.js +1 -1
- package/dist/esm-es5/pds-icon.entry.js.map +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/{pds-label-ea621e18.js → pds-label-39814469.js} +2 -2
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js.map +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-table-body.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table.entry.js +1 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/pine-core.js.map +1 -1
- package/dist/pine-core/{p-4b3e96c0.system.entry.js → p-02ff0a87.system.entry.js} +2 -2
- package/dist/pine-core/{p-671527a0.entry.js → p-08c496ee.entry.js} +2 -2
- package/dist/pine-core/{p-ea131385.system.entry.js → p-0b4a3e15.system.entry.js} +2 -2
- package/dist/pine-core/{p-41ca8678.system.entry.js → p-1176b1ae.system.entry.js} +2 -2
- package/dist/pine-core/{p-e8b02bb3.system.entry.js → p-19cb2923.system.entry.js} +2 -2
- package/dist/pine-core/{p-76dd047d.entry.js → p-1a8582cd.entry.js} +2 -2
- package/dist/pine-core/{p-c1c8ded7.entry.js → p-1acdba43.entry.js} +2 -2
- package/dist/pine-core/p-2ca5f853.system.js +2 -0
- package/dist/pine-core/p-2ca5f853.system.js.map +1 -0
- package/dist/pine-core/{p-48669610.system.entry.js → p-2e9881db.system.entry.js} +2 -2
- package/dist/pine-core/p-36a8c980.system.entry.js +2 -0
- package/dist/pine-core/p-36a8c980.system.entry.js.map +1 -0
- package/dist/pine-core/{p-c29d23a4.entry.js → p-37977a94.entry.js} +2 -2
- package/dist/pine-core/p-394e00a2.entry.js +2 -0
- package/dist/pine-core/p-394e00a2.entry.js.map +1 -0
- package/dist/pine-core/p-395cf3d0.entry.js +2 -0
- package/dist/pine-core/p-395cf3d0.entry.js.map +1 -0
- package/dist/pine-core/p-445792b5.system.js +3 -0
- package/dist/pine-core/p-445792b5.system.js.map +1 -0
- package/dist/pine-core/{p-daba2a44.system.entry.js → p-44be28a1.system.entry.js} +2 -2
- package/dist/pine-core/p-450da80f.js +2 -0
- package/dist/pine-core/p-450da80f.js.map +1 -0
- package/dist/pine-core/p-452d82a8.system.entry.js +2 -0
- package/dist/pine-core/p-452d82a8.system.entry.js.map +1 -0
- package/dist/pine-core/{p-151aafa9.entry.js → p-46d00870.entry.js} +2 -2
- package/dist/pine-core/{p-0b0d7886.system.js → p-480a95e5.system.js} +2 -2
- package/dist/pine-core/{p-0b0d7886.system.js.map → p-480a95e5.system.js.map} +1 -1
- package/dist/pine-core/p-483b873b.system.entry.js +2 -0
- package/dist/pine-core/p-483b873b.system.entry.js.map +1 -0
- package/dist/pine-core/{p-2e531f68.entry.js → p-4b5956a3.entry.js} +2 -2
- package/dist/pine-core/{p-341eb1ee.system.entry.js → p-4f3c9367.system.entry.js} +2 -2
- package/dist/pine-core/{p-1e8a1f31.system.entry.js → p-50222d44.system.entry.js} +2 -2
- package/dist/pine-core/{p-45160e15.entry.js → p-525195d2.entry.js} +2 -2
- package/dist/pine-core/{p-25cf60f1.system.entry.js → p-5729cd96.system.entry.js} +2 -2
- package/dist/pine-core/{p-3b3f8185.entry.js → p-5eb56ebf.entry.js} +2 -2
- package/dist/pine-core/{p-aa285167.entry.js → p-6a7259df.entry.js} +2 -2
- package/dist/pine-core/p-722c93b9.entry.js +2 -0
- package/dist/pine-core/p-722c93b9.entry.js.map +1 -0
- package/dist/pine-core/{p-e411498b.entry.js → p-752dfaa6.entry.js} +2 -2
- package/dist/pine-core/p-780136bd.entry.js +2 -0
- package/dist/pine-core/p-780136bd.entry.js.map +1 -0
- package/dist/pine-core/{p-f544d96d.entry.js → p-7835a3e2.entry.js} +2 -2
- package/dist/pine-core/{p-fe4fb39f.entry.js → p-7e75c2e3.entry.js} +2 -2
- package/dist/pine-core/{p-a49d36be.entry.js → p-820c8929.entry.js} +2 -2
- package/dist/pine-core/{p-57a0a6c5.entry.js → p-869e7901.entry.js} +2 -2
- package/dist/pine-core/{p-485d225c.entry.js → p-8cad6b7a.entry.js} +2 -2
- package/dist/pine-core/{p-eeaa22fa.entry.js → p-93dd9bc7.entry.js} +2 -2
- package/dist/pine-core/{p-be64d326.system.entry.js → p-99e033f1.system.entry.js} +2 -2
- package/dist/pine-core/{p-95958653.entry.js → p-9a89fdb8.entry.js} +2 -2
- package/dist/pine-core/{p-315a1809.system.entry.js → p-a0368388.system.entry.js} +2 -2
- package/dist/pine-core/{p-0a62887c.system.entry.js → p-a3c3dae3.system.entry.js} +2 -2
- package/dist/pine-core/{p-7cd9020d.entry.js → p-aaced44a.entry.js} +2 -2
- package/dist/pine-core/{p-bb0f674a.system.entry.js → p-b851f394.system.entry.js} +2 -2
- package/dist/pine-core/{p-2dd4eacc.system.entry.js → p-c04fb6c0.system.entry.js} +2 -2
- package/dist/pine-core/{p-4b7083de.entry.js → p-c0713e59.entry.js} +2 -2
- package/dist/pine-core/{p-a219ad37.system.entry.js → p-c0c0038a.system.entry.js} +2 -2
- package/dist/pine-core/{p-fe79bcc0.system.entry.js → p-c20075a6.system.entry.js} +2 -2
- package/dist/pine-core/{p-770e1547.system.entry.js → p-c6448545.system.entry.js} +2 -2
- package/dist/pine-core/{p-87cc56ab.entry.js → p-c707d9d0.entry.js} +2 -2
- package/dist/pine-core/{p-17ba6ff2.js → p-caa88065.js} +2 -2
- package/dist/pine-core/{p-7c8acdb3.system.entry.js → p-cbe37d9d.system.entry.js} +2 -2
- package/dist/pine-core/{p-c834304b.entry.js → p-ccb0d9ee.entry.js} +2 -2
- package/dist/pine-core/{p-20e8c2e6.system.entry.js → p-ce887d74.system.entry.js} +2 -2
- package/dist/pine-core/{p-cfa7ba93.entry.js → p-d3fe5de5.entry.js} +2 -2
- package/dist/pine-core/{p-9fd21396.system.entry.js → p-d7606cb1.system.entry.js} +2 -2
- package/dist/pine-core/{p-c5ada91d.system.entry.js → p-df656817.system.entry.js} +2 -2
- package/dist/pine-core/{p-c88139ec.system.entry.js → p-e20cf701.system.entry.js} +2 -2
- package/dist/pine-core/p-e74f35bd.js +3 -0
- package/dist/pine-core/p-e74f35bd.js.map +1 -0
- package/dist/pine-core/p-e7ea6002.system.entry.js +2 -0
- package/dist/pine-core/p-e7ea6002.system.entry.js.map +1 -0
- package/dist/pine-core/{p-11b9aebc.system.entry.js → p-f30b2078.system.entry.js} +2 -2
- package/dist/pine-core/{p-c68421c3.entry.js → p-f403ff37.entry.js} +2 -2
- package/dist/pine-core/{p-4da2e899.system.js → p-f5826ecc.system.js} +2 -2
- package/dist/pine-core/{p-8cc2e2f8.entry.js → p-f72dc7fd.entry.js} +2 -2
- package/dist/pine-core/{p-0bcc6945.system.entry.js → p-fe949ea3.system.entry.js} +2 -2
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/pine-core.esm.js.map +1 -1
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/pine-core/svg/add-square.svg +1 -0
- package/dist/pine-core/svg/block.svg +1 -0
- package/dist/pine-core/svg/button.svg +1 -0
- package/dist/pine-core/svg/code-block.svg +1 -0
- package/dist/pine-core/svg/floppy-disk.svg +1 -0
- package/dist/pine-core/svg/fullscreen.svg +1 -1
- package/dist/pine-core/svg/heading-1.svg +1 -0
- package/dist/pine-core/svg/heading-2.svg +1 -0
- package/dist/pine-core/svg/heading-3.svg +1 -0
- package/dist/pine-core/svg/heading-4.svg +1 -0
- package/dist/pine-core/svg/heading-5.svg +1 -0
- package/dist/pine-core/svg/heading-6.svg +1 -0
- package/dist/pine-core/svg/heading-small.svg +1 -1
- package/dist/pine-core/svg/list-numbers.svg +1 -1
- package/dist/pine-core/svg/redo.svg +1 -1
- package/dist/pine-core/svg/sales-filled.svg +1 -1
- package/dist/pine-core/svg/sales-outline.svg +1 -1
- package/dist/pine-core/svg/user-filled.svg +1 -1
- package/dist/types/components/pds-accordion/pds-accordion.d.ts +1 -0
- package/hydrate/index.js +48 -25
- package/package.json +3 -3
- package/dist/cjs/index-4cd639bf.js.map +0 -1
- package/dist/esm/index-09d6e504.js.map +0 -1
- package/dist/esm-es5/index-09d6e504.js +0 -3
- package/dist/esm-es5/index-09d6e504.js.map +0 -1
- package/dist/pine-core/p-01af198f.entry.js +0 -2
- package/dist/pine-core/p-01af198f.entry.js.map +0 -1
- package/dist/pine-core/p-7248b927.entry.js +0 -2
- package/dist/pine-core/p-7248b927.entry.js.map +0 -1
- package/dist/pine-core/p-857685c4.entry.js +0 -2
- package/dist/pine-core/p-857685c4.entry.js.map +0 -1
- package/dist/pine-core/p-b4226e23.system.entry.js +0 -2
- package/dist/pine-core/p-b4226e23.system.entry.js.map +0 -1
- package/dist/pine-core/p-b5b5ce83.js +0 -3
- package/dist/pine-core/p-b5b5ce83.js.map +0 -1
- package/dist/pine-core/p-ba2d9e1b.entry.js +0 -2
- package/dist/pine-core/p-ba2d9e1b.entry.js.map +0 -1
- package/dist/pine-core/p-bc2b13f3.system.entry.js +0 -2
- package/dist/pine-core/p-bc2b13f3.system.entry.js.map +0 -1
- package/dist/pine-core/p-c563d4e7.system.js +0 -3
- package/dist/pine-core/p-c563d4e7.system.js.map +0 -1
- package/dist/pine-core/p-ebc52456.system.entry.js +0 -2
- package/dist/pine-core/p-ebc52456.system.entry.js.map +0 -1
- package/dist/pine-core/p-f89b8c59.system.entry.js +0 -2
- package/dist/pine-core/p-f89b8c59.system.entry.js.map +0 -1
- /package/dist/esm-es5/{pds-label-ea621e18.js.map → pds-label-39814469.js.map} +0 -0
- /package/dist/pine-core/{p-4b3e96c0.system.entry.js.map → p-02ff0a87.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-671527a0.entry.js.map → p-08c496ee.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ea131385.system.entry.js.map → p-0b4a3e15.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-41ca8678.system.entry.js.map → p-1176b1ae.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e8b02bb3.system.entry.js.map → p-19cb2923.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-76dd047d.entry.js.map → p-1a8582cd.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c1c8ded7.entry.js.map → p-1acdba43.entry.js.map} +0 -0
- /package/dist/pine-core/{p-48669610.system.entry.js.map → p-2e9881db.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c29d23a4.entry.js.map → p-37977a94.entry.js.map} +0 -0
- /package/dist/pine-core/{p-daba2a44.system.entry.js.map → p-44be28a1.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-151aafa9.entry.js.map → p-46d00870.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2e531f68.entry.js.map → p-4b5956a3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-341eb1ee.system.entry.js.map → p-4f3c9367.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-1e8a1f31.system.entry.js.map → p-50222d44.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-45160e15.entry.js.map → p-525195d2.entry.js.map} +0 -0
- /package/dist/pine-core/{p-25cf60f1.system.entry.js.map → p-5729cd96.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3b3f8185.entry.js.map → p-5eb56ebf.entry.js.map} +0 -0
- /package/dist/pine-core/{p-aa285167.entry.js.map → p-6a7259df.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e411498b.entry.js.map → p-752dfaa6.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f544d96d.entry.js.map → p-7835a3e2.entry.js.map} +0 -0
- /package/dist/pine-core/{p-fe4fb39f.entry.js.map → p-7e75c2e3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a49d36be.entry.js.map → p-820c8929.entry.js.map} +0 -0
- /package/dist/pine-core/{p-57a0a6c5.entry.js.map → p-869e7901.entry.js.map} +0 -0
- /package/dist/pine-core/{p-485d225c.entry.js.map → p-8cad6b7a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-eeaa22fa.entry.js.map → p-93dd9bc7.entry.js.map} +0 -0
- /package/dist/pine-core/{p-be64d326.system.entry.js.map → p-99e033f1.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-95958653.entry.js.map → p-9a89fdb8.entry.js.map} +0 -0
- /package/dist/pine-core/{p-315a1809.system.entry.js.map → p-a0368388.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0a62887c.system.entry.js.map → p-a3c3dae3.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7cd9020d.entry.js.map → p-aaced44a.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bb0f674a.system.entry.js.map → p-b851f394.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-2dd4eacc.system.entry.js.map → p-c04fb6c0.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4b7083de.entry.js.map → p-c0713e59.entry.js.map} +0 -0
- /package/dist/pine-core/{p-a219ad37.system.entry.js.map → p-c0c0038a.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-fe79bcc0.system.entry.js.map → p-c20075a6.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-770e1547.system.entry.js.map → p-c6448545.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-87cc56ab.entry.js.map → p-c707d9d0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-17ba6ff2.js.map → p-caa88065.js.map} +0 -0
- /package/dist/pine-core/{p-7c8acdb3.system.entry.js.map → p-cbe37d9d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c834304b.entry.js.map → p-ccb0d9ee.entry.js.map} +0 -0
- /package/dist/pine-core/{p-20e8c2e6.system.entry.js.map → p-ce887d74.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-cfa7ba93.entry.js.map → p-d3fe5de5.entry.js.map} +0 -0
- /package/dist/pine-core/{p-9fd21396.system.entry.js.map → p-d7606cb1.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c5ada91d.system.entry.js.map → p-df656817.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c88139ec.system.entry.js.map → p-e20cf701.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-11b9aebc.system.entry.js.map → p-f30b2078.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c68421c3.entry.js.map → p-f403ff37.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4da2e899.system.js.map → p-f5826ecc.system.js.map} +0 -0
- /package/dist/pine-core/{p-8cc2e2f8.entry.js.map → p-f72dc7fd.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0bcc6945.system.entry.js.map → p-fe949ea3.system.entry.js.map} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e,H as n}from"./p-b5b5ce83.js";const r=":host{display:block}details{--border-radius:var(--pine-spacing-xs);--box-shadow-focus:0 0 0 4px var(--pine-color-primary-200);--color-content-background:var(--pine-base-color-white);--color-background-hover:var(--pine-color-neutral-grey-300);--color-font:var(--pine-color-neutral-charcoal-200);--color-font-active:var(--pine-color-neutral-charcoal-500);--color-font-hover:var(--pine-color-neutral-charcoal-300);--font-weight:var(--pine-font-weight-semibold);--spacing-details-padding-inline:12px;--spacing-summary-padding-block:var(--pine-spacing-xxs);--spacing-summary-padding-inline-start:var(--pine-spacing-xs);--spacing-summary-padding-inline-end:var(--pine-spacing-xxs);border-radius:var(--border-radius);padding-inline:var(--spacing-details-padding-inline)}details[open]{background-color:var(--color-content-background)}details[open] summary{color:var(--color-font-active);font-weight:var(--font-weight)}summary{border-radius:var(--border-radius);color:var(--color-font);font-weight:var(--font-weight);padding-block:var(--spacing-summary-padding-block);-webkit-padding-end:var(--spacing-summary-padding-inline-end);padding-inline-end:var(--spacing-summary-padding-inline-end);-webkit-padding-start:var(--spacing-summary-padding-inline-start);padding-inline-start:var(--spacing-summary-padding-inline-start);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}summary::-webkit-details-marker{display:none}summary:hover{background:var(--color-background-hover);color:var(--color-font-hover);cursor:pointer}summary:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}summary pds-icon{-webkit-margin-start:auto;margin-inline-start:auto}";const i=r;const o=class{constructor(e){a(this,e);this.handleToggle=()=>{this.isOpen=this.detailsEl.open};this.getOpenAttribute=()=>{if(this.isOpen!==false){return{open:true}}return""};this.componentId=undefined;this.isOpen=false}handleOpenState(a){this.isOpen=a}componentDidLoad(){this.detailsEl.addEventListener("toggle",this.handleToggle)}render(){return e(n,{key:"e2e795c93ddd812acd5f9ac26546953d7172ba39",class:"pds-accordion",id:this.componentId},e("details",Object.assign({key:"772f09a0f28f03a0feffa7a6ea1fd0cbf0947c56"},this.getOpenAttribute(),{ref:a=>this.detailsEl=a}),e("summary",{key:"f8987032a8e8468f9e8728ed673c26210fd0c2a2"},e("slot",{key:"5dfcd343dfdc7b5eb6f75e75dff494aab0fbea36",name:"label"},"Details"),e("pds-icon",{key:"2e6cd67ca003428c48b0c0545287b629918f243a",name:this.isOpen?"up-small":"down-small"})),e("div",{key:"508b2e5d33c4a83e6f569ba30ef042e5ffc01318",class:"pds-accordion__body"},e("slot",{key:"13bc1ae447df49043efbbf631844add1245fbabe"}))))}static get watchers(){return{isOpen:["handleOpenState"]}}};o.style=i;export{o as pds_accordion};
|
|
2
|
-
//# sourceMappingURL=p-01af198f.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pdsAccordionCss","PdsAccordionStyle0","PdsAccordion","this","handleToggle","isOpen","detailsEl","open","getOpenAttribute","handleOpenState","newValue","componentDidLoad","addEventListener","render","h","Host","key","class","id","componentId","Object","assign","ref","el","name"],"sources":["src/components/pds-accordion/pds-accordion.scss?tag=pds-accordion&encapsulation=shadow","src/components/pds-accordion/pds-accordion.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\ndetails {\n --border-radius: var(--pine-spacing-xs);\n --box-shadow-focus: 0 0 0 4px var(--pine-color-primary-200);\n --color-content-background: var(--pine-base-color-white);\n --color-background-hover: var(--pine-color-neutral-grey-300);\n --color-font: var(--pine-color-neutral-charcoal-200);\n --color-font-active: var(--pine-color-neutral-charcoal-500);\n --color-font-hover: var(--pine-color-neutral-charcoal-300);\n --font-weight: var(--pine-font-weight-semibold);\n --spacing-details-padding-inline: 12px;\n --spacing-summary-padding-block: var(--pine-spacing-xxs);\n --spacing-summary-padding-inline-start: var(--pine-spacing-xs);\n --spacing-summary-padding-inline-end: var(--pine-spacing-xxs);\n\n border-radius: var(--border-radius);\n padding-inline: var(--spacing-details-padding-inline)\n}\n\n/* stylelint-disable-next-line */\ndetails[open] {\n background-color: var(--color-content-background);\n\n summary {\n color: var(--color-font-active);\n font-weight: var(--font-weight);\n }\n}\n\nsummary {\n border-radius: var(--border-radius);\n color: var(--color-font);\n font-weight: var(--font-weight);\n padding-block: var(--spacing-summary-padding-block);\n padding-inline-end: var(--spacing-summary-padding-inline-end);\n padding-inline-start: var(--spacing-summary-padding-inline-start);\n\n // Removes marker on Firefox/Chrome\n /* stylelint-disable-next-line */\n align-items: center;\n display: flex;\n\n // Removes marker on Safari\n &::-webkit-details-marker {\n display: none;\n }\n\n &:hover {\n background: var(--color-background-hover);\n color: var(--color-font-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n }\n\n pds-icon {\n margin-inline-start: auto;\n }\n}\n","import { Component, h, Host, Prop, Watch } from '@stencil/core';\n\n/**\n * @slot (default) - Accordion body content.\n * @slot label - Accordion trigger button content.\n */\n@Component({\n tag: 'pds-accordion',\n styleUrl: 'pds-accordion.scss',\n shadow: true,\n})\nexport class PdsAccordion {\n private detailsEl: HTMLDetailsElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n * @defaultValue null\n */\n @Prop() componentId: string;\n\n /**\n * Can be used to manually set the open state of the accordion.\n * @defaultValue false\n */\n @Prop({ \n attribute: 'open',\n mutable: true,\n reflect: true \n }) isOpen: boolean = false;\n\n @Watch('isOpen')\n handleOpenState(newValue: boolean) {\n this.isOpen = newValue;\n }\n\n private handleToggle = () => {\n this.isOpen = this.detailsEl.open;\n }\n\n private getOpenAttribute = () => {\n if (this.isOpen !== false) {\n return { open: true };\n }\n return '';\n }\n\n componentDidLoad() {\n this.detailsEl.addEventListener('toggle', this.handleToggle);\n }\n\n render() {\n return (\n <Host class=\"pds-accordion\" id={this.componentId}>\n <details {...this.getOpenAttribute()} ref={(el) => this.detailsEl = el as HTMLDetailsElement}>\n <summary>\n <slot name=\"label\">Details</slot>\n <pds-icon name={this.isOpen ? 'up-small' : 'down-small'} />\n </summary>\n <div class=\"pds-accordion__body\">\n <slot />\n </div>\n </details>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAkB,orDACxB,MAAAC,EAAeD,E,MCUFE,EAAY,M,yBAwBfC,KAAAC,aAAe,KACrBD,KAAKE,OAASF,KAAKG,UAAUC,IAAI,EAG3BJ,KAAAK,iBAAmB,KACzB,GAAIL,KAAKE,SAAW,MAAO,CACzB,MAAO,CAAEE,KAAM,K,CAEjB,MAAO,EAAE,E,uCAfU,K,CAGrB,eAAAE,CAAgBC,GACdP,KAAKE,OAASK,C,CAchB,gBAAAC,GACER,KAAKG,UAAUM,iBAAiB,SAAUT,KAAKC,a,CAGjD,MAAAS,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,gBAAgBC,GAAIf,KAAKgB,aACnCL,EAAA,UAAAM,OAAAC,OAAA,CAAAL,IAAA,4CAAab,KAAKK,mBAAkB,CAAEc,IAAMC,GAAOpB,KAAKG,UAAYiB,IAClET,EAAA,WAAAE,IAAA,4CACEF,EAAA,QAAAE,IAAA,2CAAMQ,KAAK,SAAO,WAClBV,EAAA,YAAAE,IAAA,2CAAUQ,KAAMrB,KAAKE,OAAS,WAAa,gBAE7CS,EAAA,OAAAE,IAAA,2CAAKC,MAAM,uBACTH,EAAA,QAAAE,IAAA,+C"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as n,H as e,g as i}from"./p-b5b5ce83.js";let s=false;const r=t=>{var n;const e=(n=document.head.querySelector("meta[data-pine-asset-path]"))===null||n===void 0?void 0:n.dataset.pineAssetPath;const i=window.__PINE_ASSET_PATH__;const r="https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/";const o=e||i||r||"/";if(o.startsWith("https://cdn.jsdelivr.net/npm/")&&!s){s=true;console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:\n `)}let c=t;if(t.startsWith("./")){c=t.substring(2)}if(!o.endsWith("/")){c="/"+c}return o+c};let o;const c=()=>{if(typeof window==="undefined"){return new Map}else{if(!o){const t=window;t.PdsIcons=t.PdsIcons||{};o=t.PdsIcons.map=t.PdsIcons.map||new Map}return o}};const l=(t,n)=>{if(!t&&n&&!u(n)){t=n}if(h(t)){t=p(t)}if(!h(t)||t.trim()===""){return null}const e=t.replace(/[a-z]|-|\d/gi,"");if(e!=""){return null}return t};const d=t=>{const n=c().get(t);if(n){return n}return r(`svg/${t}.svg`)};const a=t=>{if(h(t)){t=t.trim();if(u(t)){return t}}return null};const f=t=>{let n=a(t.src);if(n){return n}n=l(t.name,t.icon);if(n){return d(n)}if(t.icon){n=a(t.icon);if(n){return n}}return null};const u=t=>t.length>0&&/(\/|\.)/.test(t);const h=t=>typeof t==="string";const p=t=>t.toLowerCase();const g=(t,n=[])=>{const e={};n.forEach((n=>{if(t.hasAttribute(n)){const i=t.getAttribute(n);if(i!==null){e[n]=t.getAttribute(n)}t.removeAttribute(n)}}));return e};const m=t=>{const n=document.createElement("div");n.innerHTML=t;for(let t=n.childNodes.length-1;t>=0;t--){if(n.childNodes[t].nodeName.toLowerCase()!=="svg"){n.removeChild(n.childNodes[t])}}const e=n.firstElementChild;if(e&&e.nodeName.toLowerCase()==="svg"){const t=e.getAttribute("class")||"";e.setAttribute("class",(t+" s-pds-icon").trim());if(w(e)){return n.innerHTML}}return""};const w=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let n=0;n<t.attributes.length;n++){const e=t.attributes[n].name;if(h(e)&&e.toLowerCase().indexOf("on")===0){return false}}for(let n=0;n<t.childNodes.length;n++){if(!w(t.childNodes[n])){return false}}}return true};const v=t=>t.startsWith("data:image/svg+xml");const b=t=>t.indexOf(";utf8,")!==-1;const y=new Map;const x=new Map;let M;const j=(t,n=false)=>{let e=x.get(t);if(!e){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(v(t)&&b(t)){if(!M){M=new DOMParser}const n=M.parseFromString(t,"text/html");const e=n.querySelector("svg");if(e){y.set(t,e.outerHTML)}return Promise.resolve()}else{e=fetch(t).then((e=>{if(e.ok){return e.text().then((e=>{if(e&&n!==false){e=m(e)}y.set(t,e||"")}))}y.set(t,"")}));x.set(t,e)}}else{y.set(t,"");return Promise.resolve()}}return e};const C=":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";const I=C;const P=class{constructor(n){t(this,n);this.inheritedAttributes={};this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")==="true"};this.ariaLabel=undefined;this.isVisible=false;this.svgContent=undefined;this.color=undefined;this.icon=undefined;this.name=undefined;this.size="regular";this.src=undefined}iconSize(){const t={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(t[this.size]){return t[this.size]}else{return this.size}}componentWillLoad(){this.inheritedAttributes=g(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}loadIcon(){if(this.isVisible){const t=f(this);if(t){if(y.has(t)){this.svgContent=y.get(t)}else{j(t).then((()=>this.svgContent=y.get(t)))}}}const t=l(this.name,this.icon);if(t){this.ariaLabel=t.replace(/\-/g," ")}}render(){const{ariaLabel:t,inheritedAttributes:i}=this;const s={height:this.iconSize(),width:this.iconSize(),color:this.color};return n(e,Object.assign({"aria-label":t!==undefined&&!this.hasAriaHidden()?t:null,role:"img",style:s,class:Object.assign({},k(this.color))},i),this.svgContent?n("div",{class:"icon-inner",innerHTML:this.svgContent}):n("div",{class:"icon-inner"}))}waitUntilVisible(t,n,e){if(typeof window!=="undefined"&&window.IntersectionObserver){const i=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){i.disconnect();this.io=undefined;e()}}),{rootMargin:n});i.observe(t)}else{e()}}static get assetsDirs(){return["svg"]}get el(){return i(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}}};const k=t=>t?{"pds-color":true,[`pds-color-${t}`]:true}:null;P.style=I;export{P as pds_icon};
|
|
2
|
-
//# sourceMappingURL=p-7248b927.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["missingAssetPathWarning","getAssetPath","path","_a","metaPineAssetPath","document","head","querySelector","dataset","pineAssetPath","windowAssetPath","window","__PINE_ASSET_PATH__","cdnAssetPath","assetBasePath","startsWith","console","warn","assetPath","substring","endsWith","CACHED_MAP","getIconMap","Map","win","PdsIcons","map","getName","iconName","icon","isSrc","isStr","toLower","trim","invalidChars","replace","getNamedUrl","url","get","getSrc","src","getUrl","pdsIcon","name","str","length","test","val","toLowerCase","inheritAttributes","el","attributes","attributeObject","forEach","attr","hasAttribute","value","getAttribute","removeAttribute","validateContent","svgContent","div","createElement","innerHTML","i","childNodes","nodeName","removeChild","svgElm","firstElementChild","svgClass","setAttribute","isValid","elm","nodeType","indexOf","isSvgDataUrl","isEncodedDataUrl","pdsIconContent","requests","parser","getSvgContent","sanitize","req","fetch","DOMParser","doc","parseFromString","svg","set","outerHTML","Promise","resolve","then","rsp","ok","text","pdsIconCss","PdsIconStyle0","PdsIcon","constructor","hostRef","this","inheritedAttributes","hasAriaHidden","ariaLabel","undefined","isVisible","color","size","iconSize","sizes","small","regular","medium","large","componentWillLoad","connectedCallback","waitUntilVisible","loadIcon","disconnectedCallback","io","disconnect","has","label","render","style","height","width","h","Host","Object","assign","role","class","createColorClasses","rootMargin","cb","IntersectionObserver","data","isIntersecting","observe","assetsDirs"],"sources":["../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/assetPath.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/utils.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/validate.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/request.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.css?tag=pds-icon&encapsulation=shadow","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.js"],"sourcesContent":["import { Build } from \"@stencil/core\";\nlet missingAssetPathWarning = false;\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path) => {\n var _a;\n const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';\n // Display a warning if the assets are fetched from the CDN.\n if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\n `);\n }\n let assetPath = path;\n if (path.startsWith('./')) {\n assetPath = path.substring(2);\n }\n if (!assetBasePath.endsWith('/')) {\n assetPath = '/' + assetPath;\n }\n return assetBasePath + assetPath;\n};\n//# sourceMappingURL=assetPath.js.map\n","import { getAssetPath } from \"./assetPath\";\nlet CACHED_MAP;\nexport const addIcons = (icons) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n};\nexport const getIconMap = () => {\n if (typeof window === 'undefined') {\n return new Map();\n }\n else {\n if (!CACHED_MAP) {\n const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\nexport const getName = (iconName, icon) => {\n if (!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars != '') {\n return null;\n }\n return iconName;\n};\nconst getNamedUrl = (iconName) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${iconName}.svg`);\n};\nexport const getSrc = (src) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\nexport const getUrl = (pdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n if (url) {\n return url;\n }\n }\n return null;\n};\nexport const isSrc = (str) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val) => val.toLowerCase();\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el, attributes = []) => {\n const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n return attributeObject;\n};\n//# sourceMappingURL=utils.js.map\n","import { isStr } from \"./utils\";\nexport const validateContent = (svgContent) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm)) {\n return div.innerHTML;\n }\n }\n return '';\n};\nexport const isValid = (elm) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i])) {\n return false;\n }\n }\n }\n return true;\n};\nexport const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url) => url.indexOf(';utf8,') !== -1;\n//# sourceMappingURL=validate.js.map\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from \"./validate\";\nexport const pdsIconContent = new Map();\nconst requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any\nlet parser;\nexport const getSvgContent = (url, sanitize = false) => {\n let req = requests.get(url);\n if (!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n return Promise.resolve();\n }\n else {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n requests.set(url, req);\n }\n }\n else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n return req;\n};\n//# sourceMappingURL=request.js.map\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n}\n:host .pdsicon {\n fill: currentColor;\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}","import { Build, Host, h } from \"@stencil/core\";\nimport { getSvgContent, pdsIconContent } from \"./request\";\nimport { getName, getUrl, inheritAttributes } from \"./utils\";\nexport class PdsIcon {\n constructor() {\n this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n this.hasAriaHidden = () => {\n const { el } = this;\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n };\n this.ariaLabel = undefined;\n this.isVisible = false;\n this.svgContent = undefined;\n this.color = undefined;\n this.icon = undefined;\n this.name = undefined;\n this.size = 'regular';\n this.src = undefined;\n }\n iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n };\n if (sizes[this.size]) {\n return sizes[this.size];\n }\n else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n });\n }\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n }\n else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n const label = getName(this.name, this.icon);\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n };\n return (h(Host, Object.assign({ \"aria-label\": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, role: \"img\", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), Build.isBrowser && this.svgContent ? (h(\"div\", { class: \"icon-inner\", innerHTML: this.svgContent })) : (h(\"div\", { class: \"icon-inner\" }))));\n }\n /*****\n * Private Methods\n ****/\n waitUntilVisible(el, rootMargin, cb) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver((data) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n }, { rootMargin }));\n io.observe(el);\n }\n else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n static get is() { return \"pds-icon\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"pds-icon.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"pds-icon.css\"]\n };\n }\n static get assetsDirs() { return [\"svg\"]; }\n static get properties() {\n return {\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nThe color of the icon\"\n },\n \"attribute\": \"color\",\n \"reflect\": false\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This a combination of both `name` and `src`. If a `src` url is detected\\nit will set the `src` property. Otherwise it assumes it's a built-in named\\nSVG and set the `name` property.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the icon to use from\\nthe built-in set.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"| 'small' // 12px\\n | 'regular' // 16px\\n | 'medium' // 20px\\n | 'large' // 24px\\n | 'auto'\\n | string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the icon. This can be\\n'small', 'regular', 'medium', large, or a\\ncustom value (40px, 1rem, etc)\"\n },\n \"attribute\": \"size\",\n \"reflect\": true,\n \"defaultValue\": \"'regular'\"\n },\n \"src\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nSpecifies the exact `src` of an SVG file to use.\"\n },\n \"attribute\": \"src\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"ariaLabel\": {},\n \"isVisible\": {},\n \"svgContent\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"name\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"src\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"icon\",\n \"methodName\": \"loadIcon\"\n }];\n }\n}\nconst createColorClasses = (color) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n};\n//# sourceMappingURL=pds-icon.js.map\n"],"mappings":"yDACA,IAAIA,EAA0B,MAU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GAAM,CACzBiE,KAAK1C,WAAakB,EAAexC,IAAID,E,KAEpC,CACD4C,EAAc5C,GAAKwD,MAAK,IAAOS,KAAK1C,WAAakB,EAAexC,IAAID,I,GAIhF,MAAMuF,EAAQjG,EAAQ2E,KAAK3D,KAAM2D,KAAKzE,MACtC,GAAI+F,EAAO,CACPtB,KAAKG,UAAYmB,EAAMzF,QAAQ,MAAO,I,EAG9C,MAAA0F,GACI,MAAMpB,UAAEA,EAASF,oBAAEA,GAAwBD,KAC3C,MAAMwB,EAAQ,CACVC,OAAQzB,KAAKQ,WACbkB,MAAO1B,KAAKQ,WACZF,MAAON,KAAKM,OAEhB,OAAQqB,EAAEC,EAAMC,OAAOC,OAAO,CAAE,aAAc3B,IAAcC,YAAcJ,KAAKE,gBAAkBC,EAAY,KAAM4B,KAAM,MAAOP,MAAOA,EAAOQ,MAAOH,OAAOC,OAAO,GAAIG,EAAmBjC,KAAKM,SAAWL,GAAyCD,KAAK1C,WAAcqE,EAAE,MAAO,CAAEK,MAAO,aAAcvE,UAAWuC,KAAK1C,aAAkBqE,EAAE,MAAO,CAAEK,MAAO,e,CAK9V,gBAAAhB,CAAiBpE,EAAIsF,EAAYC,GAC7B,UAA8B9H,SAAW,aAAe,OAAS+H,qBAAsB,CACnF,MAAMjB,EAAMnB,KAAKmB,GAAK,IAAI,OAASiB,sBAAsBC,IACrD,GAAIA,EAAK,GAAGC,eAAgB,CACxBnB,EAAGC,aACHpB,KAAKmB,GAAKf,UACV+B,G,IAEL,CAAED,eACLf,EAAGoB,QAAQ3F,E,KAEV,CAGDuF,G,EAeR,qBAAWK,GAAe,MAAO,CAAC,MAAO,C,6GAgH7C,MAAMP,EAAsB3B,GACjBA,EACD,CACE,YAAa,KACb,CAAC,aAAaA,KAAU,MAE1B,K"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,h as r,H as s}from"./p-b5b5ce83.js";const i=":host{display:inline-block}div{--background-color:var(--pine-color-primary-100);--badge-background-color:var(--pine-color-base-white);--border:var(--pine-border-default);--radius-round:50%;-ms-flex-align:center;align-items:center;background-color:var(--background-color);border-radius:var(--admin-radius-round, var(--radius-round));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{--admin-radius-round:12px;border-radius:var(--admin-radius-round)}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{--box-shadow-focus:0 0 0 4px var(--pine-color-primary-200);-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--radius-round);cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-avatar__button:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-avatar__badge{background-color:var(--badge-background-color);border:var(--border);border-color:var(--badge-background-color);border-radius:var(--radius-round);bottom:0;position:absolute;right:0}img{border-radius:var(--admin-radius-round, var(--radius-round));height:100%;-o-object-fit:cover;object-fit:cover;width:100%}";const t=i;const o=class{constructor(s){a(this,s);this.renderAssetWrapper=()=>{const a={height:this.avatarSize(),width:this.avatarSize()};return r("div",{style:a,part:"asset-wrapper"},this.renderIconOrImage(),this.renderBadge())};this.renderAvatar=()=>this.dropdown?r("button",{class:"pds-avatar__button",type:"button"},this.renderAssetWrapper()):this.renderAssetWrapper();this.renderBadge=()=>this.badge&&r("pds-icon",{class:"pds-avatar__badge",name:"check-circle-filled",size:"33.53%"});this.renderIconOrImage=()=>this.image?r("img",{alt:this.alt,src:this.image}):r("pds-icon",{name:"user-filled",size:"33.53%"});this.classNames=()=>({"pds-avatar":true,[`pds-avatar--has-image`]:this.image!==""&&this.image!==null,[`pds-avatar--${this.variant}`]:this.variant==="admin"});this.alt=null;this.badge=false;this.componentId=undefined;this.dropdown=false;this.image=null;this.size="lg";this.variant="customer"}avatarSize(){const a={xs:"24px",sm:"32px",md:"40px",lg:"56px",xl:"64px"};if(a[this.size]){return a[this.size]}else{return this.size}}render(){return r(s,{key:"e934e89ad98ccb12b0efa4daffa0449b989cdf53",id:this.componentId,class:Object.assign({},this.classNames())},this.renderAvatar())}};o.style=t;export{o as pds_avatar};
|
|
2
|
-
//# sourceMappingURL=p-857685c4.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["pdsAvatarCss","PdsAvatarStyle0","PdsAvatar","this","renderAssetWrapper","style","height","avatarSize","width","h","part","renderIconOrImage","renderBadge","renderAvatar","dropdown","class","type","badge","name","size","image","alt","src","classNames","variant","sizes","xs","sm","md","lg","xl","render","Host","key","id","componentId","Object","assign"],"sources":["src/components/pds-avatar/pds-avatar.scss?tag=pds-avatar&encapsulation=shadow","src/components/pds-avatar/pds-avatar.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\ndiv {\n // These custom props are not reachable\n --background-color: var(--pine-color-primary-100);\n --badge-background-color: var(--pine-color-base-white);\n --border: var(--pine-border-default);\n --radius-round: 50%;\n\n align-items: center;\n background-color: var(--background-color);\n border-radius: var(--admin-radius-round, var(--radius-round));\n display: inline-flex;\n justify-content: center;\n position: relative;\n\n :host(.pds-avatar--admin) & {\n --admin-radius-round: 12px;\n border-radius: var(--admin-radius-round);\n }\n\n // Remove when FF has support for :has\n :host(.pds-avatar--has-image) & {\n background: transparent\n }\n\n @supports selector(:has) {\n &:has(img) {\n background-color: transparent\n }\n }\n}\n\n.pds-avatar__button {\n --box-shadow-focus: 0 0 0 4px var(--pine-color-primary-200);\n\n align-items: center;\n appearance: none;\n background: transparent;\n border: 0;\n border-radius: var(--radius-round);\n cursor: pointer;\n display: flex;\n padding: 0;\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n }\n}\n\n.pds-avatar__badge {\n background-color: var(--badge-background-color);\n border: var(--border);\n border-color: var(--badge-background-color);\n border-radius: var(--radius-round);\n bottom: 0;\n position: absolute;\n right: 0;\n}\n\nimg {\n border-radius: var(--admin-radius-round, var(--radius-round));\n height: 100%;\n object-fit: cover;\n width: 100%;\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n/**\n * @part image - The main image element that represents the avatar component.\n*/\n@Component({\n tag: 'pds-avatar',\n styleUrl: 'pds-avatar.scss',\n shadow: true,\n})\nexport class PdsAvatar {\n\n /**\n * The alt for a custom user image.\n * @defaultValue null\n */\n @Prop() alt?: string | null = null;\n\n /**\n * Determines whether the badge is visible or not.\n * @defaultValue false\n */\n @Prop() badge? = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether the avatar functions as a dropdown trigger.\n * @defaultValue false\n */\n @Prop() dropdown? = false;\n\n /**\n * The src for a custom user image.\n * @defaultValue null\n */\n @Prop() image?: string | null = null;\n\n /**\n * Size of the avatar. Value can be preset or custom.\n * @defaultValue lg\n */\n @Prop({ reflect: true }) size?:\n | 'xl' // 64px\n | 'lg' // 56px\n | 'md' // 40px\n | 'sm' // 32px\n | 'xs' // 24px\n | string = 'lg';\n\n /**\n * Determines the variant of avatar. Changes appearance accordingly.\n * @defaultValue customer\n */\n @Prop({ reflect: true }) variant?: 'customer' | 'admin' = 'customer';\n\n private avatarSize() {\n const sizes: { [key: string]: any } = {\n xs: '24px',\n sm: '32px',\n md: '40px',\n lg: '56px',\n xl: '64px',\n }\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size\n }\n }\n\n private renderAssetWrapper = () => {\n const style = {\n height: this.avatarSize(),\n width: this.avatarSize()\n };\n \n return (\n <div style={style} part=\"asset-wrapper\">\n {this.renderIconOrImage()}\n {this.renderBadge()}\n </div>\n )\n };\n\n private renderAvatar = () => {\n return (\n this.dropdown\n ?\n <button class=\"pds-avatar__button\" type=\"button\">\n {this.renderAssetWrapper()}\n </button>\n :\n this.renderAssetWrapper()\n )\n };\n\n private renderBadge = () => (\n this.badge\n // Percentage is average size of icon in relation to total avatar size\n // of all preset sizes found in Figma.\n // Used to allow icons to scale to container size\n && <pds-icon class=\"pds-avatar__badge\" name=\"check-circle-filled\" size=\"33.53%\"></pds-icon>\n );\n\n private renderIconOrImage = () => (\n this.image\n ? <img alt={this.alt} src={this.image} />\n // Percentage is average size of icon in relation to total avatar size\n // of all preset sizes found in Figma.\n // Used to allow icons to scale to container size\n : <pds-icon name=\"user-filled\" size=\"33.53%\"></pds-icon>\n );\n\n private classNames = () => (\n {\n 'pds-avatar': true,\n [`pds-avatar--has-image`]: this.image !== '' && this.image !== null, // Remove when FF supports :has selector\n [`pds-avatar--${this.variant}`]: this.variant === 'admin'\n }\n );\n\n render() {\n\n return (\n <Host\n id={this.componentId}\n class={{...this.classNames()}}\n >\n {this.renderAvatar()}\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAe,24CACrB,MAAAC,EAAeD,E,MCSFE,EAAS,M,yBAiEZC,KAAAC,mBAAqB,KAC3B,MAAMC,EAAQ,CACZC,OAAQH,KAAKI,aACbC,MAAOL,KAAKI,cAGd,OACEE,EAAA,OAAKJ,MAAOA,EAAOK,KAAK,iBACrBP,KAAKQ,oBACLR,KAAKS,cACF,EAIFT,KAAAU,aAAe,IAEnBV,KAAKW,SAEHL,EAAA,UAAQM,MAAM,qBAAqBC,KAAK,UACrCb,KAAKC,sBAGRD,KAAKC,qBAIHD,KAAAS,YAAc,IACpBT,KAAKc,OAIAR,EAAA,YAAUM,MAAM,oBAAoBG,KAAK,sBAAsBC,KAAK,WAGnEhB,KAAAQ,kBAAoB,IAC1BR,KAAKiB,MACDX,EAAA,OAAKY,IAAKlB,KAAKkB,IAAKC,IAAKnB,KAAKiB,QAI9BX,EAAA,YAAUS,KAAK,cAAcC,KAAK,WAGhChB,KAAAoB,WAAa,MAEjB,aAAc,KACd,CAAC,yBAA0BpB,KAAKiB,QAAU,IAAMjB,KAAKiB,QAAU,KAC/D,CAAC,eAAejB,KAAKqB,WAAYrB,KAAKqB,UAAY,U,SA1GxB,K,WAMb,M,yCAWG,M,WAMY,K,UAYrB,K,aAM+C,U,CAElD,UAAAjB,GACN,MAAMkB,EAAgC,CACpCC,GAAI,OACJC,GAAI,OACJC,GAAI,OACJC,GAAI,OACJC,GAAI,QAGN,GAAIL,EAAMtB,KAAKgB,MAAO,CACpB,OAAOM,EAAMtB,KAAKgB,K,KACb,CACL,OAAOhB,KAAKgB,I,EAuDhB,MAAAY,GAEE,OACEtB,EAACuB,EAAI,CAAAC,IAAA,2CACHC,GAAI/B,KAAKgC,YACTpB,MAAKqB,OAAAC,OAAA,GAAMlC,KAAKoB,eAEfpB,KAAKU,e"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["./p-c563d4e7.system.js"],(function(n){"use strict";var i,r,t,e;return{setters:[function(n){i=n.r;r=n.h;t=n.H;e=n.g}],execute:function(){var s=false;var u=function(n){var i;var r=(i=document.head.querySelector("meta[data-pine-asset-path]"))===null||i===void 0?void 0:i.dataset.pineAssetPath;var t=window.__PINE_ASSET_PATH__;var e="https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/";var u=r||t||e||"/";if(u.startsWith("https://cdn.jsdelivr.net/npm/")&&!s){s=true;console.warn("\n Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation:\n ")}var a=n;if(n.startsWith("./")){a=n.substring(2)}if(!u.endsWith("/")){a="/"+a}return u+a};var a;var f=function(){if(typeof window==="undefined"){return new Map}else{if(!a){var n=window;n.PdsIcons=n.PdsIcons||{};a=n.PdsIcons.map=n.PdsIcons.map||new Map}return a}};var o=function(n,i){if(!n&&i&&!v(i)){n=i}if(h(n)){n=p(n)}if(!h(n)||n.trim()===""){return null}var r=n.replace(/[a-z]|-|\d/gi,"");if(r!=""){return null}return n};var c=function(n){var i=f().get(n);if(i){return i}return u("svg/".concat(n,".svg"))};var l=function(n){if(h(n)){n=n.trim();if(v(n)){return n}}return null};var d=function(n){var i=l(n.src);if(i){return i}i=o(n.name,n.icon);if(i){return c(i)}if(n.icon){i=l(n.icon);if(i){return i}}return null};var v=function(n){return n.length>0&&/(\/|\.)/.test(n)};var h=function(n){return typeof n==="string"};var p=function(n){return n.toLowerCase()};var g=function(n,i){if(i===void 0){i=[]}var r={};i.forEach((function(i){if(n.hasAttribute(i)){var t=n.getAttribute(i);if(t!==null){r[i]=n.getAttribute(i)}n.removeAttribute(i)}}));return r};var m=function(n){var i=document.createElement("div");i.innerHTML=n;for(var r=i.childNodes.length-1;r>=0;r--){if(i.childNodes[r].nodeName.toLowerCase()!=="svg"){i.removeChild(i.childNodes[r])}}var t=i.firstElementChild;if(t&&t.nodeName.toLowerCase()==="svg"){var e=t.getAttribute("class")||"";t.setAttribute("class",(e+" s-pds-icon").trim());if(w(t)){return i.innerHTML}}return""};var w=function(n){if(n.nodeType===1){if(n.nodeName.toLowerCase()==="script"){return false}for(var i=0;i<n.attributes.length;i++){var r=n.attributes[i].name;if(h(r)&&r.toLowerCase().indexOf("on")===0){return false}}for(var i=0;i<n.childNodes.length;i++){if(!w(n.childNodes[i])){return false}}}return true};var b=function(n){return n.startsWith("data:image/svg+xml")};var y=function(n){return n.indexOf(";utf8,")!==-1};var j=new Map;var x=new Map;var M;var O=function(n,i){if(i===void 0){i=false}var r=x.get(n);if(!r){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(b(n)&&y(n)){if(!M){M=new DOMParser}var t=M.parseFromString(n,"text/html");var e=t.querySelector("svg");if(e){j.set(n,e.outerHTML)}return Promise.resolve()}else{r=fetch(n).then((function(r){if(r.ok){return r.text().then((function(r){if(r&&i!==false){r=m(r)}j.set(n,r||"")}))}j.set(n,"")}));x.set(n,r)}}else{j.set(n,"");return Promise.resolve()}}return r};var P=":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";var D=P;var I=n("pds_icon",function(){function n(n){var r=this;i(this,n);this.inheritedAttributes={};this.hasAriaHidden=function(){var n=r.el;return n.hasAttribute("aria-hidden")&&n.getAttribute("aria-hidden")==="true"};this.ariaLabel=undefined;this.isVisible=false;this.svgContent=undefined;this.color=undefined;this.icon=undefined;this.name=undefined;this.size="regular";this.src=undefined}n.prototype.iconSize=function(){var n={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(n[this.size]){return n[this.size]}else{return this.size}};n.prototype.componentWillLoad=function(){this.inheritedAttributes=g(this.el,["aria-label"])};n.prototype.connectedCallback=function(){var n=this;this.waitUntilVisible(this.el,"50px",(function(){n.isVisible=true;n.loadIcon()}))};n.prototype.disconnectedCallback=function(){if(this.io){this.io.disconnect();this.io=undefined}};n.prototype.loadIcon=function(){var n=this;if(this.isVisible){var i=d(this);if(i){if(j.has(i)){this.svgContent=j.get(i)}else{O(i).then((function(){return n.svgContent=j.get(i)}))}}}var r=o(this.name,this.icon);if(r){this.ariaLabel=r.replace(/\-/g," ")}};n.prototype.render=function(){var n=this,i=n.ariaLabel,e=n.inheritedAttributes;var s={height:this.iconSize(),width:this.iconSize(),color:this.color};return r(t,Object.assign({"aria-label":i!==undefined&&!this.hasAriaHidden()?i:null,role:"img",style:s,class:Object.assign({},C(this.color))},e),this.svgContent?r("div",{class:"icon-inner",innerHTML:this.svgContent}):r("div",{class:"icon-inner"}))};n.prototype.waitUntilVisible=function(n,i,r){var t=this;if(typeof window!=="undefined"&&window.IntersectionObserver){var e=this.io=new window.IntersectionObserver((function(n){if(n[0].isIntersecting){e.disconnect();t.io=undefined;r()}}),{rootMargin:i});e.observe(n)}else{r()}};Object.defineProperty(n,"assetsDirs",{get:function(){return["svg"]},enumerable:false,configurable:true});Object.defineProperty(n.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}},enumerable:false,configurable:true});return n}());var C=function(n){var i;return n?(i={"pds-color":true},i["pds-color-".concat(n)]=true,i):null};I.style=D}}}));
|
|
2
|
-
//# sourceMappingURL=p-b4226e23.system.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["missingAssetPathWarning","getAssetPath","path","_a","metaPineAssetPath","document","head","querySelector","dataset","pineAssetPath","windowAssetPath","window","__PINE_ASSET_PATH__","cdnAssetPath","assetBasePath","startsWith","console","warn","assetPath","substring","endsWith","CACHED_MAP","getIconMap","Map","win","PdsIcons","map","getName","iconName","icon","isSrc","isStr","toLower","trim","invalidChars","replace","getNamedUrl","url","get","concat","getSrc","src","getUrl","pdsIcon","name","str","length","test","val","toLowerCase","inheritAttributes","el","attributes","attributeObject","forEach","attr","hasAttribute","value","getAttribute","removeAttribute","validateContent","svgContent","div","createElement","innerHTML","i","childNodes","nodeName","removeChild","svgElm","firstElementChild","svgClass","setAttribute","isValid","elm","nodeType","indexOf","isSvgDataUrl","isEncodedDataUrl","pdsIconContent","requests","parser","getSvgContent","sanitize","req","fetch","DOMParser","doc","parseFromString","svg","set","outerHTML","Promise","resolve","then","rsp","ok","text","pdsIconCss","PdsIconStyle0","PdsIcon","exports","class_1","hostRef","_this","this","inheritedAttributes","hasAriaHidden","ariaLabel","undefined","isVisible","color","size","prototype","iconSize","sizes","small","regular","medium","large","componentWillLoad","connectedCallback","waitUntilVisible","loadIcon","disconnectedCallback","io","disconnect","url_1","has","label","render","_b","style","height","width","h","Host","Object","assign","role","class","createColorClasses","rootMargin","cb","IntersectionObserver","io_1","data","isIntersecting","observe","defineProperty"],"sources":["../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/assetPath.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/utils.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/validate.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/request.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.css?tag=pds-icon&encapsulation=shadow","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.js"],"sourcesContent":["import { Build } from \"@stencil/core\";\nlet missingAssetPathWarning = false;\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path) => {\n var _a;\n const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';\n // Display a warning if the assets are fetched from the CDN.\n if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation:\n `);\n }\n let assetPath = path;\n if (path.startsWith('./')) {\n assetPath = path.substring(2);\n }\n if (!assetBasePath.endsWith('/')) {\n assetPath = '/' + assetPath;\n }\n return assetBasePath + assetPath;\n};\n//# sourceMappingURL=assetPath.js.map\n","import { getAssetPath } from \"./assetPath\";\nlet CACHED_MAP;\nexport const addIcons = (icons) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n};\nexport const getIconMap = () => {\n if (typeof window === 'undefined') {\n return new Map();\n }\n else {\n if (!CACHED_MAP) {\n const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\nexport const getName = (iconName, icon) => {\n if (!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars != '') {\n return null;\n }\n return iconName;\n};\nconst getNamedUrl = (iconName) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${iconName}.svg`);\n};\nexport const getSrc = (src) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\nexport const getUrl = (pdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n if (url) {\n return url;\n }\n }\n return null;\n};\nexport const isSrc = (str) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val) => val.toLowerCase();\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el, attributes = []) => {\n const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n return attributeObject;\n};\n//# sourceMappingURL=utils.js.map\n","import { isStr } from \"./utils\";\nexport const validateContent = (svgContent) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm)) {\n return div.innerHTML;\n }\n }\n return '';\n};\nexport const isValid = (elm) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i])) {\n return false;\n }\n }\n }\n return true;\n};\nexport const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url) => url.indexOf(';utf8,') !== -1;\n//# sourceMappingURL=validate.js.map\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from \"./validate\";\nexport const pdsIconContent = new Map();\nconst requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any\nlet parser;\nexport const getSvgContent = (url, sanitize = false) => {\n let req = requests.get(url);\n if (!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n return Promise.resolve();\n }\n else {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n requests.set(url, req);\n }\n }\n else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n return req;\n};\n//# sourceMappingURL=request.js.map\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n}\n:host .pdsicon {\n fill: currentColor;\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}","import { Build, Host, h } from \"@stencil/core\";\nimport { getSvgContent, pdsIconContent } from \"./request\";\nimport { getName, getUrl, inheritAttributes } from \"./utils\";\nexport class PdsIcon {\n constructor() {\n this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n this.hasAriaHidden = () => {\n const { el } = this;\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n };\n this.ariaLabel = undefined;\n this.isVisible = false;\n this.svgContent = undefined;\n this.color = undefined;\n this.icon = undefined;\n this.name = undefined;\n this.size = 'regular';\n this.src = undefined;\n }\n iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n };\n if (sizes[this.size]) {\n return sizes[this.size];\n }\n else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n });\n }\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n }\n else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n const label = getName(this.name, this.icon);\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n };\n return (h(Host, Object.assign({ \"aria-label\": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, role: \"img\", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), Build.isBrowser && this.svgContent ? (h(\"div\", { class: \"icon-inner\", innerHTML: this.svgContent })) : (h(\"div\", { class: \"icon-inner\" }))));\n }\n /*****\n * Private Methods\n ****/\n waitUntilVisible(el, rootMargin, cb) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver((data) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n }, { rootMargin }));\n io.observe(el);\n }\n else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n static get is() { return \"pds-icon\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"pds-icon.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"pds-icon.css\"]\n };\n }\n static get assetsDirs() { return [\"svg\"]; }\n static get properties() {\n return {\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nThe color of the icon\"\n },\n \"attribute\": \"color\",\n \"reflect\": false\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This a combination of both `name` and `src`. If a `src` url is detected\\nit will set the `src` property. Otherwise it assumes it's a built-in named\\nSVG and set the `name` property.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the icon to use from\\nthe built-in set.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"| 'small' // 12px\\n | 'regular' // 16px\\n | 'medium' // 20px\\n | 'large' // 24px\\n | 'auto'\\n | string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the icon. This can be\\n'small', 'regular', 'medium', large, or a\\ncustom value (40px, 1rem, etc)\"\n },\n \"attribute\": \"size\",\n \"reflect\": true,\n \"defaultValue\": \"'regular'\"\n },\n \"src\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nSpecifies the exact `src` of an SVG file to use.\"\n },\n \"attribute\": \"src\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"ariaLabel\": {},\n \"isVisible\": {},\n \"svgContent\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"name\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"src\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"icon\",\n \"methodName\": \"loadIcon\"\n }];\n }\n}\nconst createColorClasses = (color) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n};\n//# sourceMappingURL=pds-icon.js.map\n"],"mappings":"0JACA,I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,IAAMC,EAAMxC,KAAKoB,GAAK,IAAI,OAASmB,sBAAqB,SAACE,GACrD,GAAIA,EAAK,GAAGC,eAAgB,CACxBF,EAAGnB,aACHtB,EAAKqB,GAAKhB,UACVkC,G,IAEL,CAAED,WAAUA,IACfG,EAAGG,QAAQjG,E,KAEV,CAGD4F,G,GAeRN,OAAAY,eAAW/C,EAAA,aAAU,C,IAArB,WAA0B,MAAO,CAAC,MAAO,E,gTAxGzB,IAwNpB,IAAMuC,EAAqB,SAAC9B,G,MACxB,OAAOA,G,GAEC,YAAa,MACboB,EAAC,aAAA5F,OAAawE,IAAU,K,GAE1B,IACV,E"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e="pine-core";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};let n;let s;let l;let o=false;let i=false;let f=false;let c=false;let r=false;const u=(e,t="")=>{{return()=>{}}};const a=(e,t)=>{{return()=>{}}};const d="r";const p="o";const $="s";const m="t";const v="s-id";const h="sty-id";const y="c-id";const b="{visibility:hidden}.hydrated{visibility:inherit}";const g="slot-fb{display:contents}slot-fb[hidden]{display:none}";const w="http://www.w3.org/1999/xlink";const S={};const k=e=>e!=null;const C=e=>{e=typeof e;return e==="object"||e==="function"};function x(e){var t,n,s;return(s=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const R=(e,t,...n)=>{let s=null;let l=null;let o=null;let i=false;let f=false;const c=[];const r=t=>{for(let n=0;n<t.length;n++){s=t[n];if(Array.isArray(s)){r(s)}else if(s!=null&&typeof s!=="boolean"){if(i=typeof e!=="function"&&!C(s)){s=String(s)}if(i&&f){c[c.length-1].t+=s}else{c.push(i?T(null,s):s)}f=i}}};r(n);if(t){if(t.key){l=t.key}if(t.name){o=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,c,D)}const u=T(e,null);u.l=t;if(c.length>0){u.o=c}{u.i=l}{u.u=o}return u};const T=(e,t)=>{const n={p:0,$:e,t,m:null,o:null};{n.l=null}{n.i=null}{n.u=null}return n};const L={};const j=e=>e&&e.$===L;const D={forEach:(e,t)=>e.map(O).forEach(t),map:(e,t)=>e.map(O).map(t).map(M)};const O=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.u,vtag:e.$,vtext:e.t});const M=e=>{if(typeof e.vtag==="function"){const t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return R(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);t.l=e.vattrs;t.o=e.vchildren;t.i=e.vkey;t.u=e.vname;return t};const F=(e,t,n,s)=>{const l=u("hydrateClient",t);const o=e.shadowRoot;const i=[];const f=[];const c=o?[]:null;const r=s.v=T(t,null);if(!Ge.h){N(_e.body,Ge.h=new Map)}e[v]=n;e.removeAttribute(v);A(r,i,f,c,e,e,n);i.map((e=>{const n=e.S+"."+e.k;const s=Ge.h.get(n);const l=e.m;if(s&&Je&&s["s-en"]===""){s.parentNode.insertBefore(l,s.nextSibling)}if(!o){l["s-hn"]=t;if(s){l["s-ol"]=s;l["s-ol"]["s-nr"]=l}}Ge.h.delete(n)}));if(o){c.map((e=>{if(e){o.appendChild(e)}}))}l()};const A=(e,t,n,s,l,o,i)=>{let f;let c;let r;let u;if(o.nodeType===1){f=o.getAttribute(y);if(f){c=f.split(".");if(c[0]===i||c[0]==="0"){r={p:0,S:c[0],k:c[1],C:c[2],R:c[3],$:o.tagName.toLowerCase(),m:o,l:null,o:null,i:null,u:null,t:null};t.push(r);o.removeAttribute(y);if(!e.o){e.o=[]}e.o[r.R]=r;e=r;if(s&&r.C==="0"){s[r.R]=r.m}}}for(u=o.childNodes.length-1;u>=0;u--){A(e,t,n,s,l,o.childNodes[u],i)}if(o.shadowRoot){for(u=o.shadowRoot.childNodes.length-1;u>=0;u--){A(e,t,n,s,l,o.shadowRoot.childNodes[u],i)}}}else if(o.nodeType===8){c=o.nodeValue.split(".");if(c[1]===i||c[1]==="0"){f=c[0];r={p:0,S:c[1],k:c[2],C:c[3],R:c[4],m:o,l:null,o:null,i:null,u:null,$:null,t:null};if(f===m){r.m=o.nextSibling;if(r.m&&r.m.nodeType===3){r.t=r.m.textContent;t.push(r);o.remove();if(!e.o){e.o=[]}e.o[r.R]=r;if(s&&r.C==="0"){s[r.R]=r.m}}}else if(r.S===i){if(f===$){r.$="slot";if(c[5]){o["s-sn"]=r.u=c[5]}else{o["s-sn"]=""}o["s-sr"]=true;if(s){r.m=_e.createElement(r.$);if(r.u){r.m.setAttribute("name",r.u)}o.parentNode.insertBefore(r.m,o);o.remove();if(r.C==="0"){s[r.R]=r.m}}n.push(r);if(!e.o){e.o=[]}e.o[r.R]=r}else if(f===d){if(s){o.remove()}else{l["s-cr"]=o;o["s-cn"]=true}}}}}else if(e&&e.$==="style"){const t=T(null,o.textContent);t.m=o;t.R="0";e.o=[t]}};const N=(e,t)=>{if(e.nodeType===1){let n=0;for(;n<e.childNodes.length;n++){N(e.childNodes[n],t)}if(e.shadowRoot){for(n=0;n<e.shadowRoot.childNodes.length;n++){N(e.shadowRoot.childNodes[n],t)}}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===p){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};const P=(e,t)=>{if(e!=null&&!C(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};const U=e=>Ie(e).$hostElement$;const W=(e,t,n)=>{const s=U(e);return{emit:e=>E(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};const E=(e,t,n)=>{const s=Ge.ce(t,n);e.dispatchEvent(s);return s};const I=new WeakMap;const z=(e,t,n)=>{let s=Ve.get(e);if(et&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=t}else{s.replaceSync(t)}}else{s=t}Ve.set(e,s)};const B=(e,t,n)=>{var s;const l=Q(t);const o=Ve.get(l);e=e.nodeType===11?e:_e;if(o){if(typeof o==="string"){e=e.head||e;let n=I.get(e);let i;if(!n){I.set(e,n=new Set)}if(!n.has(l)){if(e.host&&(i=e.querySelector(`[${h}="${l}"]`))){i.innerHTML=o}else{i=_e.createElement("style");i.innerHTML=o;const t=(s=Ge.T)!==null&&s!==void 0?s:x(_e);if(t!=null){i.setAttribute("nonce",t)}e.insertBefore(i,e.querySelector("link"))}if(t.p&4){i.innerHTML+=g}if(n){n.add(l)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]}}return l};const H=e=>{const t=e.L;const n=e.$hostElement$;const s=t.p;const l=u("attachStyles",t.j);const o=B(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(s&10){n["s-sc"]=o;n.classList.add(o+"-h");if(s&2){n.classList.add(o+"-s")}}l()};const Q=(e,t)=>"sc-"+e.j;const q=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{");const K=(e,t,n,s,l,o)=>{if(n!==s){let i=He(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const l=X(n);const o=X(s);t.remove(...l.filter((e=>e&&!o.includes(e))));t.add(...o.filter((e=>e&&!l.includes(e))))}else if(t==="style"){{for(const t in n){if(!s||s[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in s){if(!n||s[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,s[t])}else{e.style[t]=s[t]}}}}else if(t==="key");else if(t==="ref"){if(s){s(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(He(Xe,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||s){const l=t.endsWith(_);t=t.replace(G,"");if(n){Ge.rel(e,t,n,l)}if(s){Ge.ael(e,t,s,l)}}}else{const c=C(s);if((i||c&&s!==null)&&!l){try{if(!e.tagName.includes("-")){const l=s==null?"":s;if(t==="list"){i=false}else if(n==null||e[t]!=l){e[t]=l}}else{e[t]=s}}catch(e){}}let r=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;r=true}}if(s==null||s===false){if(s!==false||e.getAttribute(t)===""){if(r){e.removeAttributeNS(w,t)}else{e.removeAttribute(t)}}}else if((!i||o&4||l)&&!c){s=s===true?"":s;if(r){e.setAttributeNS(w,t,s)}else{e.setAttribute(t,s)}}}}};const V=/\s/;const X=e=>!e?[]:e.split(V);const _="Capture";const G=new RegExp(_+"$");const J=(e,t,n,s)=>{const l=t.m.nodeType===11&&t.m.host?t.m.host:t.m;const o=e&&e.l||S;const i=t.l||S;{for(s in o){if(!(s in i)){K(l,s,o[s],undefined,n,t.p)}}}for(s in i){K(l,s,o[s],i[s],n,t.p)}};const Y=(e,t,i,r)=>{const u=t.o[i];let a=0;let d;let p;let $;if(!o){f=true;if(u.$==="slot"){if(n){r.classList.add(n+"-s")}u.p|=u.o?2:1}}if(u.t!==null){d=u.m=_e.createTextNode(u.t)}else if(u.p&1){d=u.m=_e.createTextNode("")}else{d=u.m=_e.createElement(u.p&2?"slot-fb":u.$);{J(null,u,c)}if(k(n)&&d["s-si"]!==n){d.classList.add(d["s-si"]=n)}if(u.o){for(a=0;a<u.o.length;++a){p=Y(e,u,a,d);if(p){d.appendChild(p)}}}}d["s-hn"]=l;{if(u.p&(2|1)){d["s-sr"]=true;d["s-cr"]=s;d["s-sn"]=u.u||"";$=e&&e.o&&e.o[i];if($&&$.$===u.$&&e.m){{Z(e.m,false)}}}}return d};const Z=(e,t)=>{Ge.p|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const s=n[e];if(s["s-hn"]!==l&&s["s-ol"]){oe(s).insertBefore(s,le(s));s["s-ol"].remove();s["s-ol"]=undefined;s["s-sh"]=undefined;f=true}if(t){Z(s,t)}}Ge.p&=~1};const ee=(e,t,n,s,o,i)=>{let f=e["s-cr"]&&e["s-cr"].parentNode||e;let c;if(f.shadowRoot&&f.tagName===l){f=f.shadowRoot}for(;o<=i;++o){if(s[o]){c=Y(null,n,o,e);if(c){s[o].m=c;f.insertBefore(c,le(t))}}}};const te=(e,t,n)=>{for(let s=t;s<=n;++s){const t=e[s];if(t){const e=t.m;ae(t);if(e){{i=true;if(e["s-ol"]){e["s-ol"].remove()}else{Z(e,true)}}e.remove()}}}};const ne=(e,t,n,s,l=false)=>{let o=0;let i=0;let f=0;let c=0;let r=t.length-1;let u=t[0];let a=t[r];let d=s.length-1;let p=s[0];let $=s[d];let m;let v;while(o<=r&&i<=d){if(u==null){u=t[++o]}else if(a==null){a=t[--r]}else if(p==null){p=s[++i]}else if($==null){$=s[--d]}else if(se(u,p,l)){ie(u,p,l);u=t[++o];p=s[++i]}else if(se(a,$,l)){ie(a,$,l);a=t[--r];$=s[--d]}else if(se(u,$,l)){if(u.$==="slot"||$.$==="slot"){Z(u.m.parentNode,false)}ie(u,$,l);e.insertBefore(u.m,a.m.nextSibling);u=t[++o];$=s[--d]}else if(se(a,p,l)){if(u.$==="slot"||$.$==="slot"){Z(a.m.parentNode,false)}ie(a,p,l);e.insertBefore(a.m,u.m);a=t[--r];p=s[++i]}else{f=-1;{for(c=o;c<=r;++c){if(t[c]&&t[c].i!==null&&t[c].i===p.i){f=c;break}}}if(f>=0){v=t[f];if(v.$!==p.$){m=Y(t&&t[i],n,f,e)}else{ie(v,p,l);t[f]=undefined;m=v.m}p=s[++i]}else{m=Y(t&&t[i],n,i,e);p=s[++i]}if(m){{oe(u.m).insertBefore(m,le(u.m))}}}}if(o>r){ee(e,s[d+1]==null?null:s[d+1].m,n,s,i,d)}else if(i>d){te(t,o,r)}};const se=(e,t,n=false)=>{if(e.$===t.$){if(e.$==="slot"){return e.u===t.u}if(!n){return e.i===t.i}return true}return false};const le=e=>e&&e["s-ol"]||e;const oe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode;const ie=(e,t,n=false)=>{const s=t.m=e.m;const l=e.o;const i=t.o;const f=t.$;const r=t.t;let u;if(r===null){{if(f==="slot"&&!o);else{J(e,t,c)}}if(l!==null&&i!==null){ne(s,l,t,i,n)}else if(i!==null){if(e.t!==null){s.textContent=""}ee(s,null,t,i,0,i.length-1)}else if(l!==null){te(l,0,l.length-1)}}else if(u=s["s-cr"]){u.parentNode.textContent=r}else if(e.t!==r){s.data=r}};const fe=e=>{const t=e.childNodes;for(const e of t){if(e.nodeType===1){if(e["s-sr"]){const n=e["s-sn"];e.hidden=false;for(const s of t){if(s!==e){if(s["s-hn"]!==e["s-hn"]||n!==""){if(s.nodeType===1&&(n===s.getAttribute("slot")||n===s["s-sn"])){e.hidden=true;break}}else{if(s.nodeType===1||s.nodeType===3&&s.textContent.trim()!==""){e.hidden=true;break}}}}}fe(e)}}};const ce=[];const re=e=>{let n;let s;let l;for(const o of e.childNodes){if(o["s-sr"]&&(n=o["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;const e=o["s-sn"];for(l=s.length-1;l>=0;l--){n=s[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==o["s-hn"]&&!t.experimentalSlotFixes){if(ue(n,e)){let t=ce.find((e=>e.D===n));i=true;n["s-sn"]=n["s-sn"]||e;if(t){t.D["s-sh"]=o["s-hn"];t.O=o}else{n["s-sh"]=o["s-hn"];ce.push({O:o,D:n})}if(n["s-sr"]){ce.map((e=>{if(ue(e.D,n["s-sn"])){t=ce.find((e=>e.D===n));if(t&&!e.O){e.O=t.O}}}))}}else if(!ce.some((e=>e.D===n))){ce.push({D:n})}}}}if(o.nodeType===1){re(o)}}};const ue=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};const ae=e=>{{e.l&&e.l.ref&&e.l.ref(null);e.o&&e.o.map(ae)}};const de=(e,t,c=false)=>{var r,u,a,d;const p=e.$hostElement$;const $=e.L;const m=e.v||T(null,null);const v=j(t)?t:R(null,null,t);l=p.tagName;if($.M){v.l=v.l||{};$.M.map((([e,t])=>v.l[t]=p[e]))}if(c&&v.l){for(const e of Object.keys(v.l)){if(p.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){v.l[e]=p[e]}}}v.$=null;v.p|=4;e.v=v;v.m=m.m=p.shadowRoot||p;{n=p["s-sc"]}o=($.p&1)!==0;{s=p["s-cr"];i=false}ie(m,v,c);{Ge.p|=1;if(f){re(v.m);for(const e of ce){const t=e.D;if(!t["s-ol"]){const e=_e.createTextNode("");e["s-nr"]=t;t.parentNode.insertBefore(t["s-ol"]=e,t)}}for(const e of ce){const t=e.D;const n=e.O;if(n){const e=n.parentNode;let s=n.nextSibling;{let n=(r=t["s-ol"])===null||r===void 0?void 0:r.previousSibling;while(n){let l=(u=n["s-nr"])!==null&&u!==void 0?u:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){l=l.nextSibling;if(!l||!l["s-nr"]){s=l;break}}n=n.previousSibling}}if(!s&&e!==t.parentNode||t.nextSibling!==s){if(t!==s){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}e.insertBefore(t,s);if(t.nodeType===1){t.hidden=(a=t["s-ih"])!==null&&a!==void 0?a:false}}}}else{if(t.nodeType===1){if(c){t["s-ih"]=(d=t.hidden)!==null&&d!==void 0?d:false}t.hidden=true}}}}if(i){fe(v.m)}Ge.p&=~1;ce.length=0}s=undefined};const pe=(e,t)=>{if(t&&!e.F&&t["s-p"]){t["s-p"].push(new Promise((t=>e.F=t)))}};const $e=(e,t)=>{{e.p|=16}if(e.p&4){e.p|=512;return}pe(e,e.A);const n=()=>me(e,t);return ft(n)};const me=(e,t)=>{const n=u("scheduleUpdate",e.L.j);const s=e.N;let l;if(t){{e.p|=256;if(e.P){e.P.map((([e,t])=>Se(s,e,t)));e.P=undefined}}{l=Se(s,"componentWillLoad")}}{l=ve(l,(()=>Se(s,"componentWillRender")))}n();return ve(l,(()=>ye(e,s,t)))};const ve=(e,t)=>he(e)?e.then(t):t();const he=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";const ye=async(e,t,n)=>{var s;const l=e.$hostElement$;const o=u("update",e.L.j);const i=l["s-rc"];if(n){H(e)}const f=u("render",e.L.j);{be(e,t,l,n)}if(i){i.map((e=>e()));l["s-rc"]=undefined}f();o();{const t=(s=l["s-p"])!==null&&s!==void 0?s:[];const n=()=>ge(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.p|=4;t.length=0}}};const be=(e,t,n,s)=>{try{t=t.render();{e.p&=~16}{e.p|=2}{{{de(e,t,s)}}}}catch(t){Qe(t,e.$hostElement$)}return null};const ge=e=>{const t=e.L.j;const n=e.$hostElement$;const s=u("postUpdate",t);const l=e.N;const o=e.A;{Se(l,"componentDidRender")}if(!(e.p&64)){e.p|=64;{ke(n)}{Se(l,"componentDidLoad")}s();{e.U(n);if(!o){we()}}}else{{Se(l,"componentDidUpdate")}s()}{e.W(n)}{if(e.F){e.F();e.F=undefined}if(e.p&512){it((()=>$e(e,false)))}e.p&=~(4|512)}};const we=t=>{{ke(_e.documentElement)}it((()=>E(Xe,"appload",{detail:{namespace:e}})))};const Se=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){Qe(e)}}return undefined};const ke=e=>e.classList.add("hydrated");const Ce=(e,t)=>Ie(e).I.get(t);const xe=(e,t,n,s)=>{const l=Ie(e);const o=l.$hostElement$;const i=l.I.get(t);const f=l.p;const c=l.N;n=P(n,s.B[t][0]);const r=Number.isNaN(i)&&Number.isNaN(n);const u=n!==i&&!r;if((!(f&8)||i===undefined)&&u){l.I.set(t,n);if(c){if(s.H&&f&128){const e=s.H[t];if(e){e.map((e=>{try{c[e](n,i,t)}catch(e){Qe(e,o)}}))}}if((f&(2|16))===2){$e(l,false)}}}};const Re=(e,t,n)=>{var s;const l=e.prototype;if(t.B){if(e.watchers){t.H=e.watchers}const o=Object.entries(t.B);o.map((([e,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,e,{get(){return Ce(this,e)},set(n){xe(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,e,{value(...t){var n;const s=Ie(this);return(n=s===null||s===void 0?void 0:s.q)===null||n===void 0?void 0:n.then((()=>{var n;return(n=s.N)===null||n===void 0?void 0:n[e](...t)}))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(e,s,o){Ge.jmp((()=>{var i;const f=n.get(e);if(this.hasOwnProperty(f)){o=this[f];delete this[f]}else if(l.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==o){return}else if(f==null){const n=Ie(this);const l=n===null||n===void 0?void 0:n.p;if(l&&!(l&8)&&l&128&&o!==s){const l=n.N;const f=(i=t.H)===null||i===void 0?void 0:i[e];f===null||f===void 0?void 0:f.forEach((t=>{if(l[t]!=null){l[t].call(l,o,s,e)}}))}return}this[f]=o===null&&typeof this[f]==="boolean"?false:o}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=t.H)!==null&&s!==void 0?s:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,s])=>{var l;const o=s[1]||e;n.set(o,e);if(s[0]&512){(l=t.M)===null||l===void 0?void 0:l.push([e,o])}return o}))]))}}return e};const Te=async(e,t,n,s)=>{let l;if((t.p&32)===0){t.p|=32;const s=n.K;if(s){l=Ke(n);if(l.then){const e=a();l=await l;e()}if(!l.isProxied){{n.H=l.watchers}Re(l,n,2);l.isProxied=true}const e=u("createInstance",n.j);{t.p|=8}try{new l(t)}catch(e){Qe(e)}{t.p&=~8}{t.p|=128}e();Le(t.N)}else{l=e.constructor;customElements.whenDefined(n.j).then((()=>t.p|=128))}if(l.style){let e=l.style;const t=Q(n);if(!Ve.has(t)){const s=u("registerStyles",n.j);z(t,e,!!(n.p&1));s()}}}const o=t.A;const i=()=>$e(t,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}};const Le=e=>{{Se(e,"connectedCallback")}};const je=e=>{if((Ge.p&1)===0){const t=Ie(e);const n=t.L;const s=u("connectedCallback",n.j);if(!(t.p&1)){t.p|=1;let s;{s=e.getAttribute(v);if(s){if(n.p&1){const t=B(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}F(e,n.j,s,t)}}if(!s){if(n.p&(4|8)){De(e)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){pe(t,t.A=n);break}}}if(n.B){Object.entries(n.B).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{Te(e,t,n)}}else{Ae(e,t,n.V);if(t===null||t===void 0?void 0:t.N){Le(t.N)}else if(t===null||t===void 0?void 0:t.X){t.X.then((()=>Le(t.N)))}}s()}};const De=e=>{const t=e["s-cr"]=_e.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};const Oe=e=>{{Se(e,"disconnectedCallback")}};const Me=async e=>{if((Ge.p&1)===0){const t=Ie(e);{if(t._){t._.map((e=>e()));t._=undefined}}if(t===null||t===void 0?void 0:t.N){Oe(t.N)}else if(t===null||t===void 0?void 0:t.X){t.X.then((()=>Oe(t.N)))}}};const Fe=(e,t={})=>{var n;const s=u();const l=[];const o=t.exclude||[];const i=Xe.customElements;const f=_e.head;const c=f.querySelector("meta[charset]");const r=_e.createElement("style");const a=[];const d=_e.querySelectorAll(`[${h}]`);let p;let $=true;let m=0;Object.assign(Ge,t);Ge.G=new URL(t.resourcesUrl||"./",_e.baseURI).href;{Ge.p|=2}{for(;m<d.length;m++){z(d[m].getAttribute(h),q(d[m].innerHTML),true)}}let v=false;e.map((e=>{e[1].map((t=>{var n;const s={p:t[0],j:t[1],B:t[2],V:t[3]};if(s.p&4){v=true}{s.B=t[2]}{s.V=t[3]}{s.M=[]}{s.H=(n=t[4])!==null&&n!==void 0?n:{}}const f=s.j;const c=class extends HTMLElement{constructor(e){super(e);e=this;Be(e,s);if(s.p&1){{{e.attachShadow({mode:"open"})}}}}connectedCallback(){if(p){clearTimeout(p);p=null}if($){a.push(this)}else{Ge.jmp((()=>je(this)))}}disconnectedCallback(){Ge.jmp((()=>Me(this)))}componentOnReady(){return Ie(this).X}};s.K=e[0];if(!o.includes(f)&&!i.get(f)){l.push(f);i.define(f,Re(c,s,1))}}))}));if(l.length>0){if(v){r.textContent+=g}{r.textContent+=l+b}if(r.innerHTML.length){r.setAttribute("data-styles","");const e=(n=Ge.T)!==null&&n!==void 0?n:x(_e);if(e!=null){r.setAttribute("nonce",e)}f.insertBefore(r,c?c.nextSibling:f.firstChild)}}$=false;if(a.length){a.map((e=>e.connectedCallback()))}else{{Ge.jmp((()=>p=setTimeout(we,30)))}}s()};const Ae=(e,t,n,s)=>{if(n){n.map((([n,s,l])=>{const o=Pe(e,n);const i=Ne(t,l);const f=Ue(n);Ge.ael(o,s,i,f);(t._=t._||[]).push((()=>Ge.rel(o,s,i,f)))}))}};const Ne=(e,t)=>n=>{try{{if(e.p&256){e.N[t](n)}else{(e.P=e.P||[]).push([t,n])}}}catch(e){Qe(e)}};const Pe=(e,t)=>{if(t&16)return _e.body;return e};const Ue=e=>Ye?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;const We=e=>Ge.T=e;const Ee=new WeakMap;const Ie=e=>Ee.get(e);const ze=(e,t)=>Ee.set(t.N=e,t);const Be=(e,t)=>{const n={p:0,$hostElement$:e,L:t,I:new Map};{n.q=new Promise((e=>n.W=e))}{n.X=new Promise((e=>n.U=e));e["s-p"]=[];e["s-rc"]=[]}Ae(e,n,t.V);return Ee.set(e,n)};const He=(e,t)=>t in e;const Qe=(e,t)=>(0,console.error)(e,t);const qe=new Map;const Ke=(e,t,n)=>{const s=e.j.replace(/-/g,"_");const l=e.K;const o=qe.get(l);if(o){return o[s]}
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((e=>{{qe.set(l,e)}return e[s]}),Qe)};const Ve=new Map;const Xe=typeof window!=="undefined"?window:{};const _e=Xe.document||{head:{}};const Ge={p:0,G:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)};const Je=true;const Ye=(()=>{let e=false;try{_e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();const Ze=e=>Promise.resolve(e);const et=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();const tt=[];const nt=[];const st=(e,t)=>n=>{e.push(n);if(!r){r=true;if(t&&Ge.p&4){it(ot)}else{Ge.raf(ot)}}};const lt=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){Qe(e)}}e.length=0};const ot=()=>{lt(tt);{lt(nt);if(r=tt.length>0){Ge.raf(ot)}}};const it=e=>Ze().then(e);const ft=st(nt,true);export{L as H,Fe as b,W as c,U as g,R as h,Ze as p,ze as r,We as s};
|
|
3
|
-
//# sourceMappingURL=p-b5b5ce83.js.map
|