@verdocs/web-sdk 4.0.5 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-cfdfab36.js +170 -1
- package/dist/cjs/verdocs-button-panel.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +16 -7
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -20
- package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -12
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -17
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -5
- package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +16 -3
- package/dist/components/verdocs-button-panel.js +2 -2
- package/dist/components/verdocs-button2.js +1 -1
- package/dist/components/verdocs-dropdown2.js +1 -1
- package/dist/components/verdocs-file-chooser2.js +1 -1
- package/dist/components/verdocs-template-field-properties2.js +16 -3
- package/dist/docs.json +5 -5
- package/dist/esm/index-b89cf6a4.js +170 -1
- package/dist/esm/verdocs-button-panel.entry.js +2 -2
- package/dist/esm/verdocs-button_3.entry.js +1 -1
- package/dist/esm/verdocs-checkbox_5.entry.js +16 -3
- package/dist/esm/verdocs-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/index-b89cf6a4.js +1 -2
- package/dist/esm-es5/verdocs-button-panel.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/types/components/controls/verdocs-button/verdocs-button.d.ts +0 -19
- package/dist/types/components/controls/verdocs-button-panel/verdocs-button-panel.d.ts +0 -10
- package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +0 -16
- package/dist/types/components/controls/verdocs-file-chooser/verdocs-file-chooser.d.ts +0 -4
- package/dist/types/components.d.ts +0 -172
- package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-0bd91b17.entry.js → p-3ae988e6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-943c7b8f.system.entry.js → p-3d9d0c2e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-5bc622c5.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-208ba4e2.system.entry.js → p-7db995b0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7c1030dc.system.entry.js → p-8a0fd8b4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9746816b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6890fe65.system.entry.js → p-9a780e51.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1a5cdf1a.entry.js → p-9f7a6ff6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7adbe456.entry.js → p-b952113a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-48d9efa4.entry.js → p-e504ebcd.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -3
- package/dist/collection/components/controls/verdocs-button/test/verdocs-button.e2e.js +0 -8
- package/dist/collection/components/controls/verdocs-button/test/verdocs-button.spec.js +0 -36
- package/dist/collection/components/controls/verdocs-organization-card/test/org-popup.e2e.js +0 -34
- package/dist/collection/components/controls/verdocs-organization-card/test/org-popup.spec.js +0 -64
- package/dist/collection/components/controls/verdocs-text-input/test/verdocs-text-input.js +0 -8
- package/dist/collection/components/controls/verdocs-text-input/test/verdocs-text-input.spec.js +0 -36
- package/dist/custom-elements.json +0 -2134
- package/dist/types/components/controls/verdocs-text-input/test/verdocs-text-input.d.ts +0 -1
- package/dist/verdocs-web-sdk/p-383de7ca.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c0d1020a.system.entry.js +0 -1
@@ -1509,7 +1509,176 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1509
1509
|
if (module) {
|
1510
1510
|
return module[exportName];
|
1511
1511
|
}
|
1512
|
-
|
1512
|
+
|
1513
|
+
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
1514
|
+
const processMod = importedModule => {
|
1515
|
+
cmpModules.set(bundleId, importedModule);
|
1516
|
+
return importedModule[exportName];
|
1517
|
+
}
|
1518
|
+
switch(bundleId) {
|
1519
|
+
|
1520
|
+
case 'verdocs-activity-box':
|
1521
|
+
return import(
|
1522
|
+
/* webpackMode: "lazy" */
|
1523
|
+
'./verdocs-activity-box.entry.js').then(processMod, consoleError);
|
1524
|
+
case 'verdocs-auth':
|
1525
|
+
return import(
|
1526
|
+
/* webpackMode: "lazy" */
|
1527
|
+
'./verdocs-auth.entry.js').then(processMod, consoleError);
|
1528
|
+
case 'verdocs-build':
|
1529
|
+
return import(
|
1530
|
+
/* webpackMode: "lazy" */
|
1531
|
+
'./verdocs-build.entry.js').then(processMod, consoleError);
|
1532
|
+
case 'verdocs-button-panel':
|
1533
|
+
return import(
|
1534
|
+
/* webpackMode: "lazy" */
|
1535
|
+
'./verdocs-button-panel.entry.js').then(processMod, consoleError);
|
1536
|
+
case 'verdocs-envelope-sidebar':
|
1537
|
+
return import(
|
1538
|
+
/* webpackMode: "lazy" */
|
1539
|
+
'./verdocs-envelope-sidebar.entry.js').then(processMod, consoleError);
|
1540
|
+
case 'verdocs-envelopes-list':
|
1541
|
+
return import(
|
1542
|
+
/* webpackMode: "lazy" */
|
1543
|
+
'./verdocs-envelopes-list.entry.js').then(processMod, consoleError);
|
1544
|
+
case 'verdocs-field-payment':
|
1545
|
+
return import(
|
1546
|
+
/* webpackMode: "lazy" */
|
1547
|
+
'./verdocs-field-payment.entry.js').then(processMod, consoleError);
|
1548
|
+
case 'verdocs-floating-menu':
|
1549
|
+
return import(
|
1550
|
+
/* webpackMode: "lazy" */
|
1551
|
+
'./verdocs-floating-menu.entry.js').then(processMod, consoleError);
|
1552
|
+
case 'verdocs-kba-dialog':
|
1553
|
+
return import(
|
1554
|
+
/* webpackMode: "lazy" */
|
1555
|
+
'./verdocs-kba-dialog.entry.js').then(processMod, consoleError);
|
1556
|
+
case 'verdocs-organization-card':
|
1557
|
+
return import(
|
1558
|
+
/* webpackMode: "lazy" */
|
1559
|
+
'./verdocs-organization-card.entry.js').then(processMod, consoleError);
|
1560
|
+
case 'verdocs-search':
|
1561
|
+
return import(
|
1562
|
+
/* webpackMode: "lazy" */
|
1563
|
+
'./verdocs-search.entry.js').then(processMod, consoleError);
|
1564
|
+
case 'verdocs-search-tabs':
|
1565
|
+
return import(
|
1566
|
+
/* webpackMode: "lazy" */
|
1567
|
+
'./verdocs-search-tabs.entry.js').then(processMod, consoleError);
|
1568
|
+
case 'verdocs-settings':
|
1569
|
+
return import(
|
1570
|
+
/* webpackMode: "lazy" */
|
1571
|
+
'./verdocs-settings.entry.js').then(processMod, consoleError);
|
1572
|
+
case 'verdocs-sign':
|
1573
|
+
return import(
|
1574
|
+
/* webpackMode: "lazy" */
|
1575
|
+
'./verdocs-sign.entry.js').then(processMod, consoleError);
|
1576
|
+
case 'verdocs-template-card':
|
1577
|
+
return import(
|
1578
|
+
/* webpackMode: "lazy" */
|
1579
|
+
'./verdocs-template-card.entry.js').then(processMod, consoleError);
|
1580
|
+
case 'verdocs-template-tags':
|
1581
|
+
return import(
|
1582
|
+
/* webpackMode: "lazy" */
|
1583
|
+
'./verdocs-template-tags.entry.js').then(processMod, consoleError);
|
1584
|
+
case 'verdocs-templates-list':
|
1585
|
+
return import(
|
1586
|
+
/* webpackMode: "lazy" */
|
1587
|
+
'./verdocs-templates-list.entry.js').then(processMod, consoleError);
|
1588
|
+
case 'verdocs-toggle':
|
1589
|
+
return import(
|
1590
|
+
/* webpackMode: "lazy" */
|
1591
|
+
'./verdocs-toggle.entry.js').then(processMod, consoleError);
|
1592
|
+
case 'verdocs-envelope-recipient-link_2':
|
1593
|
+
return import(
|
1594
|
+
/* webpackMode: "lazy" */
|
1595
|
+
'./verdocs-envelope-recipient-link_2.entry.js').then(processMod, consoleError);
|
1596
|
+
case 'verdocs-preview_10':
|
1597
|
+
return import(
|
1598
|
+
/* webpackMode: "lazy" */
|
1599
|
+
'./verdocs-preview_10.entry.js').then(processMod, consoleError);
|
1600
|
+
case 'verdocs-quick-functions_2':
|
1601
|
+
return import(
|
1602
|
+
/* webpackMode: "lazy" */
|
1603
|
+
'./verdocs-quick-functions_2.entry.js').then(processMod, consoleError);
|
1604
|
+
case 'verdocs-settings-api-keys_4':
|
1605
|
+
return import(
|
1606
|
+
/* webpackMode: "lazy" */
|
1607
|
+
'./verdocs-settings-api-keys_4.entry.js').then(processMod, consoleError);
|
1608
|
+
case 'verdocs-status-indicator':
|
1609
|
+
return import(
|
1610
|
+
/* webpackMode: "lazy" */
|
1611
|
+
'./verdocs-status-indicator.entry.js').then(processMod, consoleError);
|
1612
|
+
case 'verdocs-template-star':
|
1613
|
+
return import(
|
1614
|
+
/* webpackMode: "lazy" */
|
1615
|
+
'./verdocs-template-star.entry.js').then(processMod, consoleError);
|
1616
|
+
case 'verdocs-view':
|
1617
|
+
return import(
|
1618
|
+
/* webpackMode: "lazy" */
|
1619
|
+
'./verdocs-view.entry.js').then(processMod, consoleError);
|
1620
|
+
case 'verdocs-contact-picker_2':
|
1621
|
+
return import(
|
1622
|
+
/* webpackMode: "lazy" */
|
1623
|
+
'./verdocs-contact-picker_2.entry.js').then(processMod, consoleError);
|
1624
|
+
case 'verdocs-envelope-document-page':
|
1625
|
+
return import(
|
1626
|
+
/* webpackMode: "lazy" */
|
1627
|
+
'./verdocs-envelope-document-page.entry.js').then(processMod, consoleError);
|
1628
|
+
case 'verdocs-file-chooser_2':
|
1629
|
+
return import(
|
1630
|
+
/* webpackMode: "lazy" */
|
1631
|
+
'./verdocs-file-chooser_2.entry.js').then(processMod, consoleError);
|
1632
|
+
case 'verdocs-pagination_2':
|
1633
|
+
return import(
|
1634
|
+
/* webpackMode: "lazy" */
|
1635
|
+
'./verdocs-pagination_2.entry.js').then(processMod, consoleError);
|
1636
|
+
case 'verdocs-radio-button_3':
|
1637
|
+
return import(
|
1638
|
+
/* webpackMode: "lazy" */
|
1639
|
+
'./verdocs-radio-button_3.entry.js').then(processMod, consoleError);
|
1640
|
+
case 'verdocs-dialog_2':
|
1641
|
+
return import(
|
1642
|
+
/* webpackMode: "lazy" */
|
1643
|
+
'./verdocs-dialog_2.entry.js').then(processMod, consoleError);
|
1644
|
+
case 'verdocs-field-attachment_14':
|
1645
|
+
return import(
|
1646
|
+
/* webpackMode: "lazy" */
|
1647
|
+
'./verdocs-field-attachment_14.entry.js').then(processMod, consoleError);
|
1648
|
+
case 'verdocs-toolbar-icon':
|
1649
|
+
return import(
|
1650
|
+
/* webpackMode: "lazy" */
|
1651
|
+
'./verdocs-toolbar-icon.entry.js').then(processMod, consoleError);
|
1652
|
+
case 'verdocs-spinner':
|
1653
|
+
return import(
|
1654
|
+
/* webpackMode: "lazy" */
|
1655
|
+
'./verdocs-spinner.entry.js').then(processMod, consoleError);
|
1656
|
+
case 'verdocs-tabs':
|
1657
|
+
return import(
|
1658
|
+
/* webpackMode: "lazy" */
|
1659
|
+
'./verdocs-tabs.entry.js').then(processMod, consoleError);
|
1660
|
+
case 'verdocs-dropdown':
|
1661
|
+
return import(
|
1662
|
+
/* webpackMode: "lazy" */
|
1663
|
+
'./verdocs-dropdown.entry.js').then(processMod, consoleError);
|
1664
|
+
case 'verdocs-ok-dialog':
|
1665
|
+
return import(
|
1666
|
+
/* webpackMode: "lazy" */
|
1667
|
+
'./verdocs-ok-dialog.entry.js').then(processMod, consoleError);
|
1668
|
+
case 'verdocs-loader':
|
1669
|
+
return import(
|
1670
|
+
/* webpackMode: "lazy" */
|
1671
|
+
'./verdocs-loader.entry.js').then(processMod, consoleError);
|
1672
|
+
case 'verdocs-checkbox_5':
|
1673
|
+
return import(
|
1674
|
+
/* webpackMode: "lazy" */
|
1675
|
+
'./verdocs-checkbox_5.entry.js').then(processMod, consoleError);
|
1676
|
+
case 'verdocs-button_3':
|
1677
|
+
return import(
|
1678
|
+
/* webpackMode: "lazy" */
|
1679
|
+
'./verdocs-button_3.entry.js').then(processMod, consoleError);
|
1680
|
+
}
|
1681
|
+
}
|
1513
1682
|
return import(
|
1514
1683
|
/* @vite-ignore */
|
1515
1684
|
/* webpackInclude: /\.entry\.js$/ */
|
@@ -66,10 +66,10 @@ const VerdocsButtonPanel = class {
|
|
66
66
|
}
|
67
67
|
}
|
68
68
|
render() {
|
69
|
-
return (h(Host, { key: '
|
69
|
+
return (h(Host, { key: '875a734696925dd22625880b694e32c4845e1254' }, h("div", { key: 'cc83aef76b34b3e9031160451f9643168d41cf3b', class: "icon", innerHTML: this.icon, onClick: (e) => {
|
70
70
|
e.stopPropagation();
|
71
71
|
return this.toggle();
|
72
|
-
}, ref: el => (this.iconEl = el) }), h("div", { key: '
|
72
|
+
}, ref: el => (this.iconEl = el) }), h("div", { key: '136375bb517b9d86327c6fa63b115f3f496df7a4', role: "tooltip", class: "verdocs-button-panel-content", "data-popper-placement": "bottom", ref: el => (this.panelEl = el) }, h("div", { key: '065c60cf39be8a608fbc5e2199b09cb55d8a551b', "data-popper-arrow": "true", class: "arrow" }), h("slot", { key: '85af4ff2a549a5d062fff08bf17d1c6c24c439e5' }))));
|
73
73
|
}
|
74
74
|
};
|
75
75
|
VerdocsButtonPanel.style = VerdocsButtonPanelStyle0;
|
@@ -17,7 +17,7 @@ const VerdocsButton = class {
|
|
17
17
|
this.disabled = false;
|
18
18
|
}
|
19
19
|
render() {
|
20
|
-
return (h("button", { key: '
|
20
|
+
return (h("button", { key: '813ea229dd512708d1b1c0fe87cf7462cb2276b7', disabled: this.disabled, type: this.type, class: `${this.variant} ${this.size} ${this.type}` }, this.startIcon ? h("span", { class: "icon start", innerHTML: this.startIcon }) : null, h("span", { key: 'd1ca3189f5513bbe13eeda50aa0dc27a03f67480', class: "button-label" }, this.label), this.endIcon ? h("span", { class: "icon end", innerHTML: this.endIcon }) : null));
|
21
21
|
}
|
22
22
|
};
|
23
23
|
VerdocsButton.style = VerdocsButtonStyle0;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-b89cf6a4.js';
|
2
|
-
import uuidv4 from 'uuid-browser';
|
3
2
|
import { VerdocsEndpoint, updateField, deleteField } from '@verdocs/js-sdk';
|
4
3
|
import { g as getTemplateFieldStore, u as updateStoreField } from './TemplateFieldStore-d7516adf.js';
|
5
4
|
import { g as getTemplateRoleStore } from './TemplateRoleStore-ddc3b96f.js';
|
@@ -136,6 +135,20 @@ const VerdocsTemplateFieldPropertiesStyle0 = verdocsTemplateFieldPropertiesCss;
|
|
136
135
|
const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
137
136
|
const TrashIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>`;
|
138
137
|
const HelpIcon = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';
|
138
|
+
// Credit: https://stackoverflow.com/a/78196510/1812436
|
139
|
+
// NOTE: This is NOT safe or cryptographically strong, so it's not part of our core SDK's or Utils modules.
|
140
|
+
// It should never be used anywhere a real GUID is required. But we don't need one here, we just need a
|
141
|
+
// "GUID-like" value for one step of a field update operation (adding items to lists). There are no security
|
142
|
+
// implications in how we use IDs for list items. They only need to be GUID-like for historical reasons that
|
143
|
+
// we may change shortly anyway.
|
144
|
+
function generateWeakGuid() {
|
145
|
+
const s4 = () => {
|
146
|
+
return Math.floor((1 + Math.random()) * 0x10000)
|
147
|
+
.toString(16)
|
148
|
+
.substring(1);
|
149
|
+
};
|
150
|
+
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
|
151
|
+
}
|
139
152
|
const VerdocsTemplateFieldProperties = class {
|
140
153
|
constructor(hostRef) {
|
141
154
|
registerInstance(this, hostRef);
|
@@ -287,14 +300,14 @@ const VerdocsTemplateFieldProperties = class {
|
|
287
300
|
};
|
288
301
|
this.options.push(this.type === 'radio_button_group'
|
289
302
|
? {
|
290
|
-
id:
|
303
|
+
id: generateWeakGuid(),
|
291
304
|
value: `Option ${this.options.length + 1}`,
|
292
305
|
selected: false,
|
293
306
|
x: this.options.length > 0 ? this.options[this.options.length - 1].x : 20,
|
294
307
|
y: this.options.length > 0 ? this.options[this.options.length - 1].y - 25 : 20,
|
295
308
|
}
|
296
309
|
: {
|
297
|
-
id:
|
310
|
+
id: generateWeakGuid(),
|
298
311
|
value: `Option ${this.options.length + 1}`,
|
299
312
|
checked: false,
|
300
313
|
x: this.options.length > 0 ? this.options[this.options.length - 1].x : 20,
|
@@ -87,7 +87,7 @@ const VerdocsDropdown = class {
|
|
87
87
|
(_a = document.getElementById(MENU_ID)) === null || _a === void 0 ? void 0 : _a.remove();
|
88
88
|
}
|
89
89
|
render() {
|
90
|
-
return (h(Host, { key: '
|
90
|
+
return (h(Host, { key: '068386cdca529f310e7914d475739ca9a574d02d' }, h("button", { key: '557fe893e3123fdff6251992c14a3a803451fd30', class: "arrow", innerHTML: DropdownArrow, "aria-label": "Open Menu", onClick: e => this.toggle(e),
|
91
91
|
// onBlur={() => this.hide()}
|
92
92
|
ref: el => (this.dropdownButton = el) })));
|
93
93
|
}
|
@@ -27,7 +27,7 @@ const VerdocsFileChooser = class {
|
|
27
27
|
}
|
28
28
|
render() {
|
29
29
|
const buttonlabel = this.file ? 'Select a different file' : 'Select a file from your computer';
|
30
|
-
return (h(Host, { key: '
|
30
|
+
return (h(Host, { key: '870f83d51356099942aeb7f50680bff38b946e74' }, h("input", { key: 'a4177207b2d87dd1d7e26093b93e36858a296f65', type: "file", multiple: true, id: "verdocs-file-chooser", accept: "application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document", style: { display: 'none' }, onChange: e => this.handleFileChanged(e) }), h("div", { key: '57e6c23406d1a12bc7b426fe76469c83925692ed', class: "upload-box" }, h("div", { key: '6b05c0bc019af781b632b91761e96b48a7e99623', class: "selected-filename" }, this.file ? this.file.name : 'Drag a file here'), h("div", { key: 'b1ab95cb7d5a19c2d5c3e3a48c073a954bbed454', class: "or-prefer" }, this.file ? unicodeNBSP : 'Or, if you prefer...'), h("verdocs-button", { key: 'bec299eef4e98464c0cd76180c8b2af875ee6243', label: buttonlabel, size: "small", onClick: e => this.handleSelectFile(e) }))));
|
31
31
|
}
|
32
32
|
};
|
33
33
|
VerdocsFileChooser.style = VerdocsFileChooserStyle0;
|
@@ -1,2 +1 @@
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a))e[a]=r[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function a(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?t(e.value):a(e.value).then(o,l)}u((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(r){return u([e,r])}}function u(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(t=0)),t)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;a=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=r.call(e,t)}catch(e){l=[6,e];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++){if(i||!(n in r)){if(!i)i=Array.prototype.slice.call(r,0,n);i[n]=r[n]}}return e.concat(i||Array.prototype.slice.call(r))};var NAMESPACE="verdocs-web-sdk";var BUILD={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:true,connectedCallback:false,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:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",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:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:true,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:false,watchCallback:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var a=null;var i=null;var o=null;var l=false;var u=false;var s=[];var f=function(r){for(var t=0;t<r.length;t++){a=r[t];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(l&&u){s[s.length-1].t+=a}else{s.push(l?newVNode(null,a):a)}u=l}}};f(t);if(r){if(r.key){i=r.key}if(r.name){o=r.name}{var c=r.className||r.class;if(c){r.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,s,vdomFnUtils)}var v=newVNode(e,null);v.i=r;if(s.length>0){v.o=s}{v.l=i}{v.u=o}return v};var newVNode=function(e,r){var t={v:0,p:e,t:r,m:null,o:null};{t.i=null}{t.l=null}{t.u=null}return t};var Host={};var isHost=function(e){return e&&e.p===Host};var vdomFnUtils={forEach:function(e,r){return e.map(convertToPublic).forEach(r)},map:function(e,r){return e.map(convertToPublic).map(r).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.i,vchildren:e.o,vkey:e.l,vname:e.u,vtag:e.p,vtext:e.t}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var r=__assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[],false))}var t=newVNode(e.vtag,e.vtext);t.i=e.vattrs;t.o=e.vchildren;t.l=e.vkey;t.u=e.vname;return t};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,r,t){var n=getElement(e);return{emit:function(e){return emitEvent(n,r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e})}}};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var a=getScopeId(r);var i=styles.get(a);e=e.nodeType===11?e:doc;if(i){if(typeof i==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var l=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{l=doc.createElement("style");l.innerHTML=i;var u=(n=plt.h)!=null?n:queryNonceMetaTagContent(doc);if(u!=null){l.setAttribute("nonce",u)}e.insertBefore(l,e.querySelector("link"))}if(r.v&4){l.innerHTML+=SLOT_FB_CSS}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var attachStyles=function(e){var r=e.S;var t=e.$hostElement$;var n=createTime("attachStyles",r._);addStyle(t.getRootNode(),r);n()};var getScopeId=function(e,r){return"sc-"+e._};var setAccessor=function(e,r,t,n,a,i){if(t!==n){var o=isMemberInElement(e,r);var l=r.toLowerCase();if(r==="class"){var u=e.classList;var s=parseClassList(t);var f=parseClassList(n);u.remove.apply(u,s.filter((function(e){return e&&!f.includes(e)})));u.add.apply(u,f.filter((function(e){return e&&!s.includes(e)})))}else if(r==="style"){{for(var c in t){if(!n||n[c]==null){if(c.includes("-")){e.style.removeProperty(c)}else{e.style[c]=""}}}}for(var c in n){if(!t||n[c]!==t[c]){if(c.includes("-")){e.style.setProperty(c,n[c])}else{e.style[c]=n[c]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!o&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(isMemberInElement(win,l)){r=l.slice(2)}else{r=l[2]+r.slice(3)}if(t||n){var v=r.endsWith(CAPTURE_EVENT_SUFFIX);r=r.replace(CAPTURE_EVENT_REGEX,"");if(t){plt.rel(e,r,t,v)}if(n){plt.ael(e,r,n,v)}}}else{var d=isComplexType(n);if((o||d&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(r==="list"){o=false}else if(t==null||e[r]!=p){e[r]=p}}else{e[r]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!o||i&4||a)&&!d){n=n===true?"":n;{e.setAttribute(r,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,r,t){var n=r.m.nodeType===11&&r.m.host?r.m.host:r.m;var a=e&&e.i||EMPTY_OBJ;var i=r.i||EMPTY_OBJ;{for(var o=0,l=sortedAttrNames(Object.keys(a));o<l.length;o++){var u=l[o];if(!(u in i)){setAccessor(n,u,a[u],void 0,t,r.v)}}}for(var s=0,f=sortedAttrNames(Object.keys(i));s<f.length;s++){var u=f[s];setAccessor(n,u,a[u],i[u],t,r.v)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var createElm=function(e,r,t,n){var a;var i=r.o[t];var o=0;var l;var u;var s;if(!useNativeShadowDom){checkSlotRelocate=true;if(i.p==="slot"){i.v|=i.o?2:1}}if(i.t!==null){l=i.m=doc.createTextNode(i.t)}else if(i.v&1){l=i.m=doc.createTextNode("")}else{if(!isSvgMode){isSvgMode=i.p==="svg"}l=i.m=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,i.v&2?"slot-fb":i.p);if(isSvgMode&&i.p==="foreignObject"){isSvgMode=false}{updateElement(null,i,isSvgMode)}if(i.o){for(o=0;o<i.o.length;++o){u=createElm(e,i,o);if(u){l.appendChild(u)}}}{if(i.p==="svg"){isSvgMode=false}else if(l.tagName==="foreignObject"){isSvgMode=true}}}l["s-hn"]=hostTagName;{if(i.v&(2|1)){l["s-sr"]=true;l["s-cr"]=contentRef;l["s-sn"]=i.u||"";l["s-rf"]=(a=i.i)==null?void 0:a.ref;s=e&&e.o&&e.o[t];if(s&&s.p===i.p&&e.m){{putBackInOriginalLocation(e.m,false)}}}}return l};var putBackInOriginalLocation=function(e,r){plt.v|=1;var t=Array.from(e.childNodes);if(e["s-sr"]&&BUILD.experimentalSlotFixes){var n=e;while(n=n.nextSibling){if(n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===hostTagName){t.push(n)}}}for(var a=t.length-1;a>=0;a--){var i=t[a];if(i["s-hn"]!==hostTagName&&i["s-ol"]){insertBefore(parentReferenceNode(i),i,referenceNode(i));i["s-ol"].remove();i["s-ol"]=void 0;i["s-sh"]=void 0;checkSlotRelocate=true}if(r){putBackInOriginalLocation(i,r)}}plt.v&=~1};var addVnodes=function(e,r,t,n,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;for(;a<=i;++a){if(n[a]){l=createElm(null,t,a);if(l){n[a].m=l;insertBefore(o,l,referenceNode(r))}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var a=e[n];if(a){var i=a.m;nullifyVNodeRefs(a);if(i){{checkSlotFallbackVisibility=true;if(i["s-ol"]){i["s-ol"].remove()}else{putBackInOriginalLocation(i,true)}}i.remove()}}}};var updateChildren=function(e,r,t,n,a){if(a===void 0){a=false}var i=0;var o=0;var l=0;var u=0;var s=r.length-1;var f=r[0];var c=r[s];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(i<=s&&o<=v){if(f==null){f=r[++i]}else if(c==null){c=r[--s]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,a)){patch(f,d,a);f=r[++i];d=n[++o]}else if(isSameVnode(c,p,a)){patch(c,p,a);c=r[--s];p=n[--v]}else if(isSameVnode(f,p,a)){if(f.p==="slot"||p.p==="slot"){putBackInOriginalLocation(f.m.parentNode,false)}patch(f,p,a);insertBefore(e,f.m,c.m.nextSibling);f=r[++i];p=n[--v]}else if(isSameVnode(c,d,a)){if(f.p==="slot"||p.p==="slot"){putBackInOriginalLocation(c.m.parentNode,false)}patch(c,d,a);insertBefore(e,c.m,f.m);c=r[--s];d=n[++o]}else{l=-1;{for(u=i;u<=s;++u){if(r[u]&&r[u].l!==null&&r[u].l===d.l){l=u;break}}}if(l>=0){h=r[l];if(h.p!==d.p){m=createElm(r&&r[o],t,l)}else{patch(h,d,a);r[l]=void 0;m=h.m}d=n[++o]}else{m=createElm(r&&r[o],t,o);d=n[++o]}if(m){{insertBefore(parentReferenceNode(f.m),m,referenceNode(f.m))}}}}if(i>s){addVnodes(e,n[v+1]==null?null:n[v+1].m,t,n,o,v)}else if(o>v){removeVnodes(r,i,s)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.p===r.p){if(e.p==="slot"){return e.u===r.u}if(!t){return e.l===r.l}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.m=e.m;var a=e.o;var i=r.o;var o=r.p;var l=r.t;var u;if(l===null){{isSvgMode=o==="svg"?true:o==="foreignObject"?false:isSvgMode}{if(o==="slot"&&!useNativeShadowDom);else{updateElement(e,r,isSvgMode)}}if(a!==null&&i!==null){updateChildren(n,a,r,i,t)}else if(i!==null){if(e.t!==null){n.textContent=""}addVnodes(n,null,r,i,0,i.length-1)}else if(a!==null){removeVnodes(a,0,a.length-1)}if(isSvgMode&&o==="svg"){isSvgMode=false}}else if(u=n["s-cr"]){u.parentNode.textContent=l}else if(e.t!==l){n.data=l}};var updateFallbackSlotVisibility=function(e){var r=e.childNodes;for(var t=0,n=r;t<n.length;t++){var a=n[t];if(a.nodeType===1){if(a["s-sr"]){var i=a["s-sn"];a.hidden=false;for(var o=0,l=r;o<l.length;o++){var u=l[o];if(u!==a){if(u["s-hn"]!==a["s-hn"]||i!==""){if(u.nodeType===1&&(i===u.getAttribute("slot")||i===u["s-sn"])||u.nodeType===3&&i===u["s-sn"]){a.hidden=true;break}}else{if(u.nodeType===1||u.nodeType===3&&u.textContent.trim()!==""){a.hidden=true;break}}}}}updateFallbackSlotVisibility(a)}}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var r;var t;var n;for(var a=0,i=e.childNodes;a<i.length;a++){var o=i[a];if(o["s-sr"]&&(r=o["s-cr"])&&r.parentNode){t=r.parentNode.childNodes;var l=o["s-sn"];var u=function(){r=t[n];if(!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==o["s-hn"]&&!BUILD.experimentalSlotFixes){if(isNodeLocatedInSlot(r,l)){var e=relocateNodes.find((function(e){return e.C===r}));checkSlotFallbackVisibility=true;r["s-sn"]=r["s-sn"]||l;if(e){e.C["s-sh"]=o["s-hn"];e.T=o}else{r["s-sh"]=o["s-hn"];relocateNodes.push({T:o,C:r})}if(r["s-sr"]){relocateNodes.map((function(t){if(isNodeLocatedInSlot(t.C,r["s-sn"])){e=relocateNodes.find((function(e){return e.C===r}));if(e&&!t.T){t.T=e.T}}}))}}else if(!relocateNodes.some((function(e){return e.C===r}))){relocateNodes.push({C:r})}}};for(n=t.length-1;n>=0;n--){u()}}if(o.nodeType===1){markSlotContentForRelocation(o)}}};var isNodeLocatedInSlot=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var nullifyVNodeRefs=function(e){{e.i&&e.i.ref&&e.i.ref(null);e.o&&e.o.map(nullifyVNodeRefs)}};var insertBefore=function(e,r,t){var n=e==null?void 0:e.insertBefore(r,t);return n};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n,a,i,o;var l=e.$hostElement$;var u=e.S;var s=e.R||newVNode(null,null);var f=isHost(r)?r:h(null,null,r);hostTagName=l.tagName;if(u.k){f.i=f.i||{};u.k.map((function(e){var r=e[0],t=e[1];return f.i[t]=l[r]}))}if(t&&f.i){for(var c=0,v=Object.keys(f.i);c<v.length;c++){var d=v[c];if(l.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){f.i[d]=l[d]}}}f.p=null;f.v|=4;e.R=f;f.m=s.m=l;useNativeShadowDom=(u.v&1)!==0;{contentRef=l["s-cr"];checkSlotFallbackVisibility=false}patch(s,f,t);{plt.v|=1;if(checkSlotRelocate){markSlotContentForRelocation(f.m);for(var p=0,m=relocateNodes;p<m.length;p++){var y=m[p];var g=y.C;if(!g["s-ol"]){var S=doc.createTextNode("");S["s-nr"]=g;insertBefore(g.parentNode,g["s-ol"]=S,g)}}for(var b=0,w=relocateNodes;b<w.length;b++){var y=w[b];var g=y.C;var _=y.T;if(_){var C=_.parentNode;var T=_.nextSibling;{var S=(n=g["s-ol"])==null?void 0:n.previousSibling;while(S){var R=(a=S["s-nr"])!=null?a:null;if(R&&R["s-sn"]===g["s-sn"]&&C===R.parentNode){R=R.nextSibling;while(R===g||(R==null?void 0:R["s-sr"])){R=R==null?void 0:R.nextSibling}if(!R||!R["s-nr"]){T=R;break}}S=S.previousSibling}}if(!T&&C!==g.parentNode||g.nextSibling!==T){if(g!==T){if(!g["s-hn"]&&g["s-ol"]){g["s-hn"]=g["s-ol"].parentNode.nodeName}insertBefore(C,g,T);if(g.nodeType===1){g.hidden=(i=g["s-ih"])!=null?i:false}}}g&&typeof _["s-rf"]==="function"&&_["s-rf"](g)}else{if(g.nodeType===1){if(t){g["s-ih"]=(o=g.hidden)!=null?o:false}g.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(f.m)}plt.v&=~1;relocateNodes.length=0}contentRef=void 0};var attachToAncestor=function(e,r){if(r&&!e.N&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.N=r})))}};var scheduleUpdate=function(e,r){{e.v|=16}if(e.v&4){e.v|=512;return}attachToAncestor(e,e.L);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.S._);var a=e.A;if(!a){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var i;if(r){{e.v|=256;if(e.M){e.M.map((function(e){var r=e[0],t=e[1];return safeCall(a,r,t)}));e.M=void 0}}{i=safeCall(a,"componentWillLoad")}}else{{i=safeCall(a,"componentWillUpdate")}}{i=enqueue(i,(function(){return safeCall(a,"componentWillRender")}))}n();return enqueue(i,(function(){return updateComponent(e,a,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,a,i,o,l,u,s;return __generator(this,(function(f){a=e.$hostElement$;i=createTime("update",e.S._);o=a["s-rc"];if(t){attachStyles(e)}l=createTime("render",e.S._);{callRender(e,r,a,t)}if(o){o.map((function(e){return e()}));a["s-rc"]=void 0}l();i();{u=(n=a["s-p"])!=null?n:[];s=function(){return postUpdateComponent(e)};if(u.length===0){s()}else{Promise.all(u).then(s);e.v|=4;u.length=0}}return[2]}))}))};var renderingRef=null;var callRender=function(e,r,t,n){try{renderingRef=r;r=r.render();{e.v&=~16}{e.v|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}renderingRef=null;return null};var getRenderingRef=function(){return renderingRef};var postUpdateComponent=function(e){var r=e.S._;var t=e.$hostElement$;var n=createTime("postUpdate",r);var a=e.A;var i=e.L;{safeCall(a,"componentDidRender")}if(!(e.v&64)){e.v|=64;{addHydratedFlag(t)}{safeCall(a,"componentDidLoad")}n();{e.V(t);if(!i){appDidLoad()}}}else{{safeCall(a,"componentDidUpdate")}n()}{e.O(t)}{if(e.N){e.N();e.N=void 0}if(e.v&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.v&=~(4|512)}};var forceUpdate=function(e){{var r=getHostRef(e);var t=r.$hostElement$.isConnected;if(t&&(r.v&(2|16))===2){scheduleUpdate(r,false)}return t}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e)}}return void 0};var addHydratedFlag=function(e){var r;return e.classList.add((r=BUILD.hydratedSelectorName)!=null?r:"hydrated")};var getValue=function(e,r){return getHostRef(e).F.get(r)};var setValue=function(e,r,t,n){var a=getHostRef(e);if(!a){throw new Error("Couldn't find host element for \"".concat(n._,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var i=a.$hostElement$;var o=a.F.get(r);var l=a.v;var u=a.A;t=parsePropertyValue(t,n.P[r][0]);var s=Number.isNaN(o)&&Number.isNaN(t);var f=t!==o&&!s;if((!(l&8)||o===void 0)&&f){a.F.set(r,t);if(u){if(n.$&&l&128){var c=n.$[r];if(c){c.map((function(e){try{u[e](t,o,r)}catch(e){consoleError(e,i)}}))}}if((l&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,r,t){var n;var a=e.prototype;if(r.P){if(e.watchers){r.$=e.watchers}var i=Object.entries(r.P);i.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,r)},configurable:true,enumerable:true})}else if(t&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t;var a=getHostRef(this);return(t=a==null?void 0:a.D)==null?void 0:t.then((function(){var r;return(r=a.A)==null?void 0:r[n].apply(r,e)}))}})}}));if(t&1){var o=new Map;a.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var l;var u=o.get(e);if(i.hasOwnProperty(u)){n=i[u];delete i[u]}else if(a.hasOwnProperty(u)&&typeof i[u]==="number"&&i[u]==n){return}else if(u==null){var s=getHostRef(i);var f=s==null?void 0:s.v;if(f&&!(f&8)&&f&128&&n!==t){var c=s.A;var v=(l=r.$)==null?void 0:l[e];v==null?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,n,t,e)}}))}return}i[u]=n===null&&typeof i[u]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((n=r.$)!=null?n:{}),true),i.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var a;var i=n[1]||t;o.set(i,t);if(n[0]&512){(a=r.k)==null?void 0:a.push([t,i])}return i})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,a,i,o,l,u,s,f,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.v&32)===0))return[3,6];r.v|=32;a=t.H;if(!a)return[3,4];i=loadModule(t);if(!(i&&"then"in i))return[3,2];o=uniqueTime();return[4,i];case 1:n=p.sent();o();return[3,3];case 2:n=i;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t._,"#").concat(r.U,'" was not found'))}if(!n.isProxied){{t.$=n.watchers}proxyComponent(n,t,2);n.isProxied=true}l=createTime("createInstance",t._);{r.v|=8}try{new n(r)}catch(e){consoleError(e)}{r.v&=~8}{r.v|=128}l();return[3,5];case 4:n=e.constructor;u=e.localName;customElements.whenDefined(u).then((function(){return r.v|=128}));p.label=5;case 5:if(n&&n.style){s=n.style;f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t._);registerStyle(f,s,!!(t.v&1));c()}}p.label=6;case 6:v=r.L;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.v&1)===0){var r=getHostRef(e);var t=r.S;var n=createTime("connectedCallback",t._);if(!(r.v&1)){r.v|=1;{if(t.v&(4|8)){setContentReference(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(r,r.L=a);break}}}if(t.P){Object.entries(t.P).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var a=e[t];delete e[t];e[t]=a}}))}{initializeComponent(e,r,t)}}else{addHostEventListeners(e,r,t.I);if(r==null?void 0:r.A);else if(r==null?void 0:r.B){r.B.then((function(){return fireConnectedCallback()}))}}n()}};var setContentReference=function(e){var r=e["s-cr"]=doc.createComment("");r["s-cn"]=true;insertBefore(e,r,e.firstChild)};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.v&1)===0){r=getHostRef(e);{if(r.j){r.j.map((function(e){return e()}));r.j=void 0}}if(r==null?void 0:r.A){disconnectInstance(r.A)}else if(r==null?void 0:r.B){r.B.then((function(){return disconnectInstance(r.A)}))}}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;var n=createTime();var a=[];var i=r.exclude||[];var o=win.customElements;var l=doc.head;var u=l.querySelector("meta[charset]");var s=doc.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt.q=new URL(r.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t;var n={v:r[0],_:r[1],P:r[2],I:r[3]};if(n.v&4){d=true}{n.P=r[2]}{n.I=r[3]}{n.k=[]}{n.$=(t=r[4])!=null?t:{}}var l=n._;var u=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;r=t;registerHost(r,n);return t}r.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};r.prototype.componentOnReady=function(){return getHostRef(this).B};return r}(HTMLElement);n.H=e[0];if(!i.includes(l)&&!o.get(l)){a.push(l);o.define(l,proxyComponent(u,n,1))}}))}));if(a.length>0){if(d){s.textContent+=SLOT_FB_CSS}{s.textContent+=a+HYDRATED_CSS}if(s.innerHTML.length){s.setAttribute("data-styles","");var p=(t=plt.h)!=null?t:queryNonceMetaTagContent(doc);if(p!=null){s.setAttribute("nonce",p)}l.insertBefore(s,u?u.nextSibling:l.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var Fragment=function(e,r){return r};var addHostEventListeners=function(e,r,t,n){if(t){t.map((function(t){var n=t[0],a=t[1],i=t[2];var o=getHostListenerTarget(e,n);var l=hostListenerProxy(r,i);var u=hostListenerOpts(n);plt.ael(o,a,l,u);(r.j=r.j||[]).push((function(){return plt.rel(o,a,l,u)}))}))}};var hostListenerProxy=function(e,r){return function(t){var n;try{{if(e.v&256){(n=e.A)==null?void 0:n[r](t)}else{(e.M=e.M||[]).push([r,t])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,r){if(r&4)return doc;if(r&8)return win;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.h=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,r){return hostRefs.set(r.A=e,r)};var registerHost=function(e,r){var t={v:0,$hostElement$:e,S:r,F:new Map};{t.D=new Promise((function(e){return t.O=e}))}{t.B=new Promise((function(e){return t.V=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,t,r.I);return hostRefs.set(e,t)};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e._.replace(/-/g,"_");var a=e.H;if(!a){return void 0}var i=cmpModules.get(a);if(i){return i[n]}
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={v:0,q:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.v&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Fragment as F,Host as H,getRenderingRef as a,bootstrapLazy as b,createEvent as c,forceUpdate as f,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))e[o]=r[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n["throw"](e))}catch(e){a(e)}}function l(e){e.done?t(e.value):o(e.value).then(i,s)}l((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(r){return l([e,r])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(t=0)),t)try{if(n=1,o&&(a=s[0]&2?o["return"]:s[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;if(o=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,a;n<o;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="verdocs-web-sdk";var BUILD={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:true,connectedCallback:false,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:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",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:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:true,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:false,watchCallback:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var o=null;var a=null;var i=null;var s=false;var l=false;var c=[];var u=function(r){for(var t=0;t<r.length;t++){o=r[t];if(Array.isArray(o)){u(o)}else if(o!=null&&typeof o!=="boolean"){if(s=typeof e!=="function"&&!isComplexType(o)){o=String(o)}if(s&&l){c[c.length-1].t+=o}else{c.push(s?newVNode(null,o):o)}l=s}}};u(t);if(r){if(r.key){a=r.key}if(r.name){i=r.name}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,c,vdomFnUtils)}var v=newVNode(e,null);v.o=r;if(c.length>0){v.i=c}{v.l=a}{v.u=i}return v};var newVNode=function(e,r){var t={v:0,p:e,t:r,m:null,i:null};{t.o=null}{t.l=null}{t.u=null}return t};var Host={};var isHost=function(e){return e&&e.p===Host};var vdomFnUtils={forEach:function(e,r){return e.map(convertToPublic).forEach(r)},map:function(e,r){return e.map(convertToPublic).map(r).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.o,vchildren:e.i,vkey:e.l,vname:e.u,vtag:e.p,vtext:e.t}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var r=__assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[],false))}var t=newVNode(e.vtag,e.vtext);t.o=e.vattrs;t.i=e.vchildren;t.l=e.vkey;t.u=e.vname;return t};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,r,t){var n=getElement(e);return{emit:function(e){return emitEvent(n,r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e})}}};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var o=getScopeId(r);var a=styles.get(o);e=e.nodeType===11?e:doc;if(a){if(typeof a==="string"){e=e.head||e;var i=rootAppliedStyles.get(e);var s=void 0;if(!i){rootAppliedStyles.set(e,i=new Set)}if(!i.has(o)){{s=doc.createElement("style");s.innerHTML=a;var l=(n=plt.h)!=null?n:queryNonceMetaTagContent(doc);if(l!=null){s.setAttribute("nonce",l)}e.insertBefore(s,e.querySelector("link"))}if(r.v&4){s.innerHTML+=SLOT_FB_CSS}if(i){i.add(o)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return o};var attachStyles=function(e){var r=e.S;var t=e.$hostElement$;var n=createTime("attachStyles",r._);addStyle(t.getRootNode(),r);n()};var getScopeId=function(e,r){return"sc-"+e._};var setAccessor=function(e,r,t,n,o,a){if(t!==n){var i=isMemberInElement(e,r);var s=r.toLowerCase();if(r==="class"){var l=e.classList;var c=parseClassList(t);var u=parseClassList(n);l.remove.apply(l,c.filter((function(e){return e&&!u.includes(e)})));l.add.apply(l,u.filter((function(e){return e&&!c.includes(e)})))}else if(r==="style"){{for(var f in t){if(!n||n[f]==null){if(f.includes("-")){e.style.removeProperty(f)}else{e.style[f]=""}}}}for(var f in n){if(!t||n[f]!==t[f]){if(f.includes("-")){e.style.setProperty(f,n[f])}else{e.style[f]=n[f]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!i&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(isMemberInElement(win,s)){r=s.slice(2)}else{r=s[2]+r.slice(3)}if(t||n){var v=r.endsWith(CAPTURE_EVENT_SUFFIX);r=r.replace(CAPTURE_EVENT_REGEX,"");if(t){plt.rel(e,r,t,v)}if(n){plt.ael(e,r,n,v)}}}else{var d=isComplexType(n);if((i||d&&n!==null)&&!o){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(r==="list"){i=false}else if(t==null||e[r]!=p){e[r]=p}}else{e[r]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!i||a&4||o)&&!d){n=n===true?"":n;{e.setAttribute(r,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,r,t){var n=r.m.nodeType===11&&r.m.host?r.m.host:r.m;var o=e&&e.o||EMPTY_OBJ;var a=r.o||EMPTY_OBJ;{for(var i=0,s=sortedAttrNames(Object.keys(o));i<s.length;i++){var l=s[i];if(!(l in a)){setAccessor(n,l,o[l],void 0,t,r.v)}}}for(var c=0,u=sortedAttrNames(Object.keys(a));c<u.length;c++){var l=u[c];setAccessor(n,l,o[l],a[l],t,r.v)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var createElm=function(e,r,t,n){var o;var a=r.i[t];var i=0;var s;var l;var c;if(!useNativeShadowDom){checkSlotRelocate=true;if(a.p==="slot"){a.v|=a.i?2:1}}if(a.t!==null){s=a.m=doc.createTextNode(a.t)}else if(a.v&1){s=a.m=doc.createTextNode("")}else{if(!isSvgMode){isSvgMode=a.p==="svg"}s=a.m=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,a.v&2?"slot-fb":a.p);if(isSvgMode&&a.p==="foreignObject"){isSvgMode=false}{updateElement(null,a,isSvgMode)}if(a.i){for(i=0;i<a.i.length;++i){l=createElm(e,a,i);if(l){s.appendChild(l)}}}{if(a.p==="svg"){isSvgMode=false}else if(s.tagName==="foreignObject"){isSvgMode=true}}}s["s-hn"]=hostTagName;{if(a.v&(2|1)){s["s-sr"]=true;s["s-cr"]=contentRef;s["s-sn"]=a.u||"";s["s-rf"]=(o=a.o)==null?void 0:o.ref;c=e&&e.i&&e.i[t];if(c&&c.p===a.p&&e.m){{putBackInOriginalLocation(e.m,false)}}}}return s};var putBackInOriginalLocation=function(e,r){plt.v|=1;var t=Array.from(e.childNodes);if(e["s-sr"]&&BUILD.experimentalSlotFixes){var n=e;while(n=n.nextSibling){if(n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===hostTagName){t.push(n)}}}for(var o=t.length-1;o>=0;o--){var a=t[o];if(a["s-hn"]!==hostTagName&&a["s-ol"]){insertBefore(parentReferenceNode(a),a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=void 0;a["s-sh"]=void 0;checkSlotRelocate=true}if(r){putBackInOriginalLocation(a,r)}}plt.v&=~1};var addVnodes=function(e,r,t,n,o,a){var i=e["s-cr"]&&e["s-cr"].parentNode||e;var s;for(;o<=a;++o){if(n[o]){s=createElm(null,t,o);if(s){n[o].m=s;insertBefore(i,s,referenceNode(r))}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var o=e[n];if(o){var a=o.m;nullifyVNodeRefs(o);if(a){{checkSlotFallbackVisibility=true;if(a["s-ol"]){a["s-ol"].remove()}else{putBackInOriginalLocation(a,true)}}a.remove()}}}};var updateChildren=function(e,r,t,n,o){if(o===void 0){o=false}var a=0;var i=0;var s=0;var l=0;var c=r.length-1;var u=r[0];var f=r[c];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(a<=c&&i<=v){if(u==null){u=r[++a]}else if(f==null){f=r[--c]}else if(d==null){d=n[++i]}else if(p==null){p=n[--v]}else if(isSameVnode(u,d,o)){patch(u,d,o);u=r[++a];d=n[++i]}else if(isSameVnode(f,p,o)){patch(f,p,o);f=r[--c];p=n[--v]}else if(isSameVnode(u,p,o)){if(u.p==="slot"||p.p==="slot"){putBackInOriginalLocation(u.m.parentNode,false)}patch(u,p,o);insertBefore(e,u.m,f.m.nextSibling);u=r[++a];p=n[--v]}else if(isSameVnode(f,d,o)){if(u.p==="slot"||p.p==="slot"){putBackInOriginalLocation(f.m.parentNode,false)}patch(f,d,o);insertBefore(e,f.m,u.m);f=r[--c];d=n[++i]}else{s=-1;{for(l=a;l<=c;++l){if(r[l]&&r[l].l!==null&&r[l].l===d.l){s=l;break}}}if(s>=0){h=r[s];if(h.p!==d.p){m=createElm(r&&r[i],t,s)}else{patch(h,d,o);r[s]=void 0;m=h.m}d=n[++i]}else{m=createElm(r&&r[i],t,i);d=n[++i]}if(m){{insertBefore(parentReferenceNode(u.m),m,referenceNode(u.m))}}}}if(a>c){addVnodes(e,n[v+1]==null?null:n[v+1].m,t,n,i,v)}else if(i>v){removeVnodes(r,a,c)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.p===r.p){if(e.p==="slot"){return e.u===r.u}if(!t){return e.l===r.l}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.m=e.m;var o=e.i;var a=r.i;var i=r.p;var s=r.t;var l;if(s===null){{isSvgMode=i==="svg"?true:i==="foreignObject"?false:isSvgMode}{if(i==="slot"&&!useNativeShadowDom);else{updateElement(e,r,isSvgMode)}}if(o!==null&&a!==null){updateChildren(n,o,r,a,t)}else if(a!==null){if(e.t!==null){n.textContent=""}addVnodes(n,null,r,a,0,a.length-1)}else if(o!==null){removeVnodes(o,0,o.length-1)}if(isSvgMode&&i==="svg"){isSvgMode=false}}else if(l=n["s-cr"]){l.parentNode.textContent=s}else if(e.t!==s){n.data=s}};var updateFallbackSlotVisibility=function(e){var r=e.childNodes;for(var t=0,n=r;t<n.length;t++){var o=n[t];if(o.nodeType===1){if(o["s-sr"]){var a=o["s-sn"];o.hidden=false;for(var i=0,s=r;i<s.length;i++){var l=s[i];if(l!==o){if(l["s-hn"]!==o["s-hn"]||a!==""){if(l.nodeType===1&&(a===l.getAttribute("slot")||a===l["s-sn"])||l.nodeType===3&&a===l["s-sn"]){o.hidden=true;break}}else{if(l.nodeType===1||l.nodeType===3&&l.textContent.trim()!==""){o.hidden=true;break}}}}}updateFallbackSlotVisibility(o)}}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var r;var t;var n;for(var o=0,a=e.childNodes;o<a.length;o++){var i=a[o];if(i["s-sr"]&&(r=i["s-cr"])&&r.parentNode){t=r.parentNode.childNodes;var s=i["s-sn"];var l=function(){r=t[n];if(!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==i["s-hn"]&&!BUILD.experimentalSlotFixes){if(isNodeLocatedInSlot(r,s)){var e=relocateNodes.find((function(e){return e.k===r}));checkSlotFallbackVisibility=true;r["s-sn"]=r["s-sn"]||s;if(e){e.k["s-sh"]=i["s-hn"];e.C=i}else{r["s-sh"]=i["s-hn"];relocateNodes.push({C:i,k:r})}if(r["s-sr"]){relocateNodes.map((function(t){if(isNodeLocatedInSlot(t.k,r["s-sn"])){e=relocateNodes.find((function(e){return e.k===r}));if(e&&!t.C){t.C=e.C}}}))}}else if(!relocateNodes.some((function(e){return e.k===r}))){relocateNodes.push({k:r})}}};for(n=t.length-1;n>=0;n--){l()}}if(i.nodeType===1){markSlotContentForRelocation(i)}}};var isNodeLocatedInSlot=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var nullifyVNodeRefs=function(e){{e.o&&e.o.ref&&e.o.ref(null);e.i&&e.i.map(nullifyVNodeRefs)}};var insertBefore=function(e,r,t){var n=e==null?void 0:e.insertBefore(r,t);return n};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n,o,a,i;var s=e.$hostElement$;var l=e.S;var c=e.T||newVNode(null,null);var u=isHost(r)?r:h(null,null,r);hostTagName=s.tagName;if(l.R){u.o=u.o||{};l.R.map((function(e){var r=e[0],t=e[1];return u.o[t]=s[r]}))}if(t&&u.o){for(var f=0,v=Object.keys(u.o);f<v.length;f++){var d=v[f];if(s.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){u.o[d]=s[d]}}}u.p=null;u.v|=4;e.T=u;u.m=c.m=s;useNativeShadowDom=(l.v&1)!==0;{contentRef=s["s-cr"];checkSlotFallbackVisibility=false}patch(c,u,t);{plt.v|=1;if(checkSlotRelocate){markSlotContentForRelocation(u.m);for(var p=0,m=relocateNodes;p<m.length;p++){var y=m[p];var g=y.k;if(!g["s-ol"]){var b=doc.createTextNode("");b["s-nr"]=g;insertBefore(g.parentNode,g["s-ol"]=b,g)}}for(var S=0,E=relocateNodes;S<E.length;S++){var y=E[S];var g=y.k;var _=y.C;if(_){var w=_.parentNode;var k=_.nextSibling;{var b=(n=g["s-ol"])==null?void 0:n.previousSibling;while(b){var C=(o=b["s-nr"])!=null?o:null;if(C&&C["s-sn"]===g["s-sn"]&&w===C.parentNode){C=C.nextSibling;while(C===g||(C==null?void 0:C["s-sr"])){C=C==null?void 0:C.nextSibling}if(!C||!C["s-nr"]){k=C;break}}b=b.previousSibling}}if(!k&&w!==g.parentNode||g.nextSibling!==k){if(g!==k){if(!g["s-hn"]&&g["s-ol"]){g["s-hn"]=g["s-ol"].parentNode.nodeName}insertBefore(w,g,k);if(g.nodeType===1){g.hidden=(a=g["s-ih"])!=null?a:false}}}g&&typeof _["s-rf"]==="function"&&_["s-rf"](g)}else{if(g.nodeType===1){if(t){g["s-ih"]=(i=g.hidden)!=null?i:false}g.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(u.m)}plt.v&=~1;relocateNodes.length=0}contentRef=void 0};var attachToAncestor=function(e,r){if(r&&!e.j&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.j=r})))}};var scheduleUpdate=function(e,r){{e.v|=16}if(e.v&4){e.v|=512;return}attachToAncestor(e,e.N);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.S._);var o=e.L;if(!o){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){{e.v|=256;if(e.M){e.M.map((function(e){var r=e[0],t=e[1];return safeCall(o,r,t)}));e.M=void 0}}{a=safeCall(o,"componentWillLoad")}}else{{a=safeCall(o,"componentWillUpdate")}}{a=enqueue(a,(function(){return safeCall(o,"componentWillRender")}))}n();return enqueue(a,(function(){return updateComponent(e,o,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,o,a,i,s,l,c;return __generator(this,(function(u){o=e.$hostElement$;a=createTime("update",e.S._);i=o["s-rc"];if(t){attachStyles(e)}s=createTime("render",e.S._);{callRender(e,r,o,t)}if(i){i.map((function(e){return e()}));o["s-rc"]=void 0}s();a();{l=(n=o["s-p"])!=null?n:[];c=function(){return postUpdateComponent(e)};if(l.length===0){c()}else{Promise.all(l).then(c);e.v|=4;l.length=0}}return[2]}))}))};var renderingRef=null;var callRender=function(e,r,t,n){try{renderingRef=r;r=r.render();{e.v&=~16}{e.v|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}renderingRef=null;return null};var getRenderingRef=function(){return renderingRef};var postUpdateComponent=function(e){var r=e.S._;var t=e.$hostElement$;var n=createTime("postUpdate",r);var o=e.L;var a=e.N;{safeCall(o,"componentDidRender")}if(!(e.v&64)){e.v|=64;{addHydratedFlag(t)}{safeCall(o,"componentDidLoad")}n();{e.A(t);if(!a){appDidLoad()}}}else{{safeCall(o,"componentDidUpdate")}n()}{e.V(t)}{if(e.j){e.j();e.j=void 0}if(e.v&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.v&=~(4|512)}};var forceUpdate=function(e){{var r=getHostRef(e);var t=r.$hostElement$.isConnected;if(t&&(r.v&(2|16))===2){scheduleUpdate(r,false)}return t}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e)}}return void 0};var addHydratedFlag=function(e){var r;return e.classList.add((r=BUILD.hydratedSelectorName)!=null?r:"hydrated")};var getValue=function(e,r){return getHostRef(e).O.get(r)};var setValue=function(e,r,t,n){var o=getHostRef(e);if(!o){throw new Error("Couldn't find host element for \"".concat(n._,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=o.$hostElement$;var i=o.O.get(r);var s=o.v;var l=o.L;t=parsePropertyValue(t,n.F[r][0]);var c=Number.isNaN(i)&&Number.isNaN(t);var u=t!==i&&!c;if((!(s&8)||i===void 0)&&u){o.O.set(r,t);if(l){if(n.P&&s&128){var f=n.P[r];if(f){f.map((function(e){try{l[e](t,i,r)}catch(e){consoleError(e,a)}}))}}if((s&(2|16))===2){scheduleUpdate(o,false)}}}};var proxyComponent=function(e,r,t){var n;var o=e.prototype;if(r.F){if(e.watchers){r.P=e.watchers}var a=Object.entries(r.F);a.map((function(e){var n=e[0],a=e[1][0];if(a&31||t&2&&a&32){Object.defineProperty(o,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,r)},configurable:true,enumerable:true})}else if(t&1&&a&64){Object.defineProperty(o,n,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t;var o=getHostRef(this);return(t=o==null?void 0:o.D)==null?void 0:t.then((function(){var r;return(r=o.L)==null?void 0:r[n].apply(r,e)}))}})}}));if(t&1){var i=new Map;o.attributeChangedCallback=function(e,t,n){var a=this;plt.jmp((function(){var s;var l=i.get(e);if(a.hasOwnProperty(l)){n=a[l];delete a[l]}else if(o.hasOwnProperty(l)&&typeof a[l]==="number"&&a[l]==n){return}else if(l==null){var c=getHostRef(a);var u=c==null?void 0:c.v;if(u&&!(u&8)&&u&128&&n!==t){var f=c.L;var v=(s=r.P)==null?void 0:s[e];v==null?void 0:v.forEach((function(r){if(f[r]!=null){f[r].call(f,n,t,e)}}))}return}a[l]=n===null&&typeof a[l]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((n=r.P)!=null?n:{}),true),a.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var o;var a=n[1]||t;i.set(a,t);if(n[0]&512){(o=r.R)==null?void 0:o.push([t,a])}return a})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,o,a,i,s,l,c,u,f,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.v&32)===0))return[3,6];r.v|=32;o=t.$;if(!o)return[3,4];a=loadModule(t);if(!(a&&"then"in a))return[3,2];i=uniqueTime();return[4,a];case 1:n=p.sent();i();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t._,"#").concat(r.H,'" was not found'))}if(!n.isProxied){{t.P=n.watchers}proxyComponent(n,t,2);n.isProxied=true}s=createTime("createInstance",t._);{r.v|=8}try{new n(r)}catch(e){consoleError(e)}{r.v&=~8}{r.v|=128}s();return[3,5];case 4:n=e.constructor;l=e.localName;customElements.whenDefined(l).then((function(){return r.v|=128}));p.label=5;case 5:if(n&&n.style){c=n.style;u=getScopeId(t);if(!styles.has(u)){f=createTime("registerStyles",t._);registerStyle(u,c,!!(t.v&1));f()}}p.label=6;case 6:v=r.N;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.v&1)===0){var r=getHostRef(e);var t=r.S;var n=createTime("connectedCallback",t._);if(!(r.v&1)){r.v|=1;{if(t.v&(4|8)){setContentReference(e)}}{var o=e;while(o=o.parentNode||o.host){if(o["s-p"]){attachToAncestor(r,r.N=o);break}}}if(t.F){Object.entries(t.F).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var o=e[t];delete e[t];e[t]=o}}))}{initializeComponent(e,r,t)}}else{addHostEventListeners(e,r,t.U);if(r==null?void 0:r.L);else if(r==null?void 0:r.I){r.I.then((function(){return fireConnectedCallback()}))}}n()}};var setContentReference=function(e){var r=e["s-cr"]=doc.createComment("");r["s-cn"]=true;insertBefore(e,r,e.firstChild)};var disconnectInstance=function(e){{safeCall(e,"disconnectedCallback")}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.v&1)===0){r=getHostRef(e);{if(r.B){r.B.map((function(e){return e()}));r.B=void 0}}if(r==null?void 0:r.L){disconnectInstance(r.L)}else if(r==null?void 0:r.I){r.I.then((function(){return disconnectInstance(r.L)}))}}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;var n=createTime();var o=[];var a=r.exclude||[];var i=win.customElements;var s=doc.head;var l=s.querySelector("meta[charset]");var c=doc.createElement("style");var u=[];var f;var v=true;Object.assign(plt,r);plt.q=new URL(r.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t;var n={v:r[0],_:r[1],F:r[2],U:r[3]};if(n.v&4){d=true}{n.F=r[2]}{n.U=r[3]}{n.R=[]}{n.P=(t=r[4])!=null?t:{}}var s=n._;var l=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;r=t;registerHost(r,n);return t}r.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if(v){u.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};r.prototype.componentOnReady=function(){return getHostRef(this).I};return r}(HTMLElement);n.$=e[0];if(!a.includes(s)&&!i.get(s)){o.push(s);i.define(s,proxyComponent(l,n,1))}}))}));if(o.length>0){if(d){c.textContent+=SLOT_FB_CSS}{c.textContent+=o+HYDRATED_CSS}if(c.innerHTML.length){c.setAttribute("data-styles","");var p=(t=plt.h)!=null?t:queryNonceMetaTagContent(doc);if(p!=null){c.setAttribute("nonce",p)}s.insertBefore(c,l?l.nextSibling:s.firstChild)}}v=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}n()};var Fragment=function(e,r){return r};var addHostEventListeners=function(e,r,t,n){if(t){t.map((function(t){var n=t[0],o=t[1],a=t[2];var i=getHostListenerTarget(e,n);var s=hostListenerProxy(r,a);var l=hostListenerOpts(n);plt.ael(i,o,s,l);(r.B=r.B||[]).push((function(){return plt.rel(i,o,s,l)}))}))}};var hostListenerProxy=function(e,r){return function(t){var n;try{{if(e.v&256){(n=e.L)==null?void 0:n[r](t)}else{(e.M=e.M||[]).push([r,t])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,r){if(r&4)return doc;if(r&8)return win;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.h=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,r){return hostRefs.set(r.L=e,r)};var registerHost=function(e,r){var t={v:0,$hostElement$:e,S:r,O:new Map};{t.D=new Promise((function(e){return t.V=e}))}{t.I=new Promise((function(e){return t.A=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,t,r.U);return hostRefs.set(e,t)};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e._.replace(/-/g,"_");var o=e.$;if(!o){return void 0}var a=cmpModules.get(o);if(a){return a[n]}if(!t||!BUILD.hotModuleReplacement){var i=function(e){cmpModules.set(o,e);return e[n]};switch(o){case"verdocs-activity-box":return import("./verdocs-activity-box.entry.js").then(i,consoleError);case"verdocs-auth":return import("./verdocs-auth.entry.js").then(i,consoleError);case"verdocs-build":return import("./verdocs-build.entry.js").then(i,consoleError);case"verdocs-button-panel":return import("./verdocs-button-panel.entry.js").then(i,consoleError);case"verdocs-envelope-sidebar":return import("./verdocs-envelope-sidebar.entry.js").then(i,consoleError);case"verdocs-envelopes-list":return import("./verdocs-envelopes-list.entry.js").then(i,consoleError);case"verdocs-field-payment":return import("./verdocs-field-payment.entry.js").then(i,consoleError);case"verdocs-floating-menu":return import("./verdocs-floating-menu.entry.js").then(i,consoleError);case"verdocs-kba-dialog":return import("./verdocs-kba-dialog.entry.js").then(i,consoleError);case"verdocs-organization-card":return import("./verdocs-organization-card.entry.js").then(i,consoleError);case"verdocs-search":return import("./verdocs-search.entry.js").then(i,consoleError);case"verdocs-search-tabs":return import("./verdocs-search-tabs.entry.js").then(i,consoleError);case"verdocs-settings":return import("./verdocs-settings.entry.js").then(i,consoleError);case"verdocs-sign":return import("./verdocs-sign.entry.js").then(i,consoleError);case"verdocs-template-card":return import("./verdocs-template-card.entry.js").then(i,consoleError);case"verdocs-template-tags":return import("./verdocs-template-tags.entry.js").then(i,consoleError);case"verdocs-templates-list":return import("./verdocs-templates-list.entry.js").then(i,consoleError);case"verdocs-toggle":return import("./verdocs-toggle.entry.js").then(i,consoleError);case"verdocs-envelope-recipient-link_2":return import("./verdocs-envelope-recipient-link_2.entry.js").then(i,consoleError);case"verdocs-preview_10":return import("./verdocs-preview_10.entry.js").then(i,consoleError);case"verdocs-quick-functions_2":return import("./verdocs-quick-functions_2.entry.js").then(i,consoleError);case"verdocs-settings-api-keys_4":return import("./verdocs-settings-api-keys_4.entry.js").then(i,consoleError);case"verdocs-status-indicator":return import("./verdocs-status-indicator.entry.js").then(i,consoleError);case"verdocs-template-star":return import("./verdocs-template-star.entry.js").then(i,consoleError);case"verdocs-view":return import("./verdocs-view.entry.js").then(i,consoleError);case"verdocs-contact-picker_2":return import("./verdocs-contact-picker_2.entry.js").then(i,consoleError);case"verdocs-envelope-document-page":return import("./verdocs-envelope-document-page.entry.js").then(i,consoleError);case"verdocs-file-chooser_2":return import("./verdocs-file-chooser_2.entry.js").then(i,consoleError);case"verdocs-pagination_2":return import("./verdocs-pagination_2.entry.js").then(i,consoleError);case"verdocs-radio-button_3":return import("./verdocs-radio-button_3.entry.js").then(i,consoleError);case"verdocs-dialog_2":return import("./verdocs-dialog_2.entry.js").then(i,consoleError);case"verdocs-field-attachment_14":return import("./verdocs-field-attachment_14.entry.js").then(i,consoleError);case"verdocs-toolbar-icon":return import("./verdocs-toolbar-icon.entry.js").then(i,consoleError);case"verdocs-spinner":return import("./verdocs-spinner.entry.js").then(i,consoleError);case"verdocs-tabs":return import("./verdocs-tabs.entry.js").then(i,consoleError);case"verdocs-dropdown":return import("./verdocs-dropdown.entry.js").then(i,consoleError);case"verdocs-ok-dialog":return import("./verdocs-ok-dialog.entry.js").then(i,consoleError);case"verdocs-loader":return import("./verdocs-loader.entry.js").then(i,consoleError);case"verdocs-checkbox_5":return import("./verdocs-checkbox_5.entry.js").then(i,consoleError);case"verdocs-button_3":return import("./verdocs-button_3.entry.js").then(i,consoleError)}}return import("./".concat(o,".entry.js").concat("")).then((function(e){{cmpModules.set(o,e)}return e[n]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={v:0,q:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.v&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Fragment as F,Host as H,getRenderingRef as a,bootstrapLazy as b,createEvent as c,forceUpdate as f,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
@@ -1 +1 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{s(o.next(t))}catch(t){i(t)}}function c(t){try{s(o["throw"](t))}catch(t){i(t)}}function s(t){t.done?n(t.value):r(t.value).then(a,c)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(n=0)),n)try{if(o=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;r=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];r=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";import{c as createPopper}from"./popper-0fbeff6d.js";var verdocsButtonPanelCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-button-panel{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer;opacity:0.6}verdocs-button-panel .icon svg{fill:#707ae5}verdocs-button-panel .icon:hover{opacity:1}.verdocs-button-panel-content{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:320px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{font-size:16px;font-weight:bold;margin:0 0 16px 0;color:#092c4c;border-bottom:1px solid #cccccc}';var VerdocsButtonPanelStyle0=verdocsButtonPanelCss;var VerdocsButtonPanel=function(){function t(t){registerInstance(this,t);this.showing=false;this.icon=""}t.prototype.componentDidRender=function(){document.body.appendChild(this.panelEl);if(this.popperInstance){this.popperInstance.destroy()}this.popperInstance=createPopper(this.iconEl,this.panelEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}if(this.panelEl){this.panelEl.remove()}};t.prototype.showPanel=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var n=this;return __generator(this,(function(o){(t=this.panelEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}));this.showing=true;this.hiderEl=document.createElement("div");this.hiderEl.id="verdocs-button-panel-hider";this.hiderEl.style.zIndex="100";this.hiderEl.style.position="absolute";this.hiderEl.style.top="0px";this.hiderEl.style.left="0px";this.hiderEl.style.right="0px";this.hiderEl.style.bottom="0px";this.hiderEl.onclick=function(t){t.stopPropagation();n.toggle()};document.body.appendChild(this.hiderEl);return[2]}))}))};t.prototype.hidePanel=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){Array.from(document.getElementsByClassName("verdocs-button-panel-content")).forEach((function(t){t.removeAttribute("data-show")}));(t=document.getElementById("verdocs-button-panel-hider"))===null||t===void 0?void 0:t.remove();this.showing=false;return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.showing)return[3,2];return[4,this.hidePanel()];case 1:t.sent();return[3,4];case 2:return[4,this.showPanel()];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.render=function(){var t=this;return h(Host,{key:"
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{s(o.next(t))}catch(t){i(t)}}function c(t){try{s(o["throw"](t))}catch(t){i(t)}}function s(t){t.done?n(t.value):r(t.value).then(a,c)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(c){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(n=0)),n)try{if(o=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;r=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];r=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";import{c as createPopper}from"./popper-0fbeff6d.js";var verdocsButtonPanelCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-button-panel{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer;opacity:0.6}verdocs-button-panel .icon svg{fill:#707ae5}verdocs-button-panel .icon:hover{opacity:1}.verdocs-button-panel-content{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:320px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{font-size:16px;font-weight:bold;margin:0 0 16px 0;color:#092c4c;border-bottom:1px solid #cccccc}';var VerdocsButtonPanelStyle0=verdocsButtonPanelCss;var VerdocsButtonPanel=function(){function t(t){registerInstance(this,t);this.showing=false;this.icon=""}t.prototype.componentDidRender=function(){document.body.appendChild(this.panelEl);if(this.popperInstance){this.popperInstance.destroy()}this.popperInstance=createPopper(this.iconEl,this.panelEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}if(this.panelEl){this.panelEl.remove()}};t.prototype.showPanel=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var n=this;return __generator(this,(function(o){(t=this.panelEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}));this.showing=true;this.hiderEl=document.createElement("div");this.hiderEl.id="verdocs-button-panel-hider";this.hiderEl.style.zIndex="100";this.hiderEl.style.position="absolute";this.hiderEl.style.top="0px";this.hiderEl.style.left="0px";this.hiderEl.style.right="0px";this.hiderEl.style.bottom="0px";this.hiderEl.onclick=function(t){t.stopPropagation();n.toggle()};document.body.appendChild(this.hiderEl);return[2]}))}))};t.prototype.hidePanel=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){Array.from(document.getElementsByClassName("verdocs-button-panel-content")).forEach((function(t){t.removeAttribute("data-show")}));(t=document.getElementById("verdocs-button-panel-hider"))===null||t===void 0?void 0:t.remove();this.showing=false;return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.showing)return[3,2];return[4,this.hidePanel()];case 1:t.sent();return[3,4];case 2:return[4,this.showPanel()];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.render=function(){var t=this;return h(Host,{key:"875a734696925dd22625880b694e32c4845e1254"},h("div",{key:"cc83aef76b34b3e9031160451f9643168d41cf3b",class:"icon",innerHTML:this.icon,onClick:function(e){e.stopPropagation();return t.toggle()},ref:function(e){return t.iconEl=e}}),h("div",{key:"136375bb517b9d86327c6fa63b115f3f496df7a4",role:"tooltip",class:"verdocs-button-panel-content","data-popper-placement":"bottom",ref:function(e){return t.panelEl=e}},h("div",{key:"065c60cf39be8a608fbc5e2199b09cb55d8a551b","data-popper-arrow":"true",class:"arrow"}),h("slot",{key:"85af4ff2a549a5d062fff08bf17d1c6c24c439e5"})))};return t}();VerdocsButtonPanel.style=VerdocsButtonPanelStyle0;export{VerdocsButtonPanel as verdocs_button_panel};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-b89cf6a4.js";import{c as createPopper}from"./popper-0fbeff6d.js";import{V as VerdocsToast}from"./Toast-b71de686.js";var verdocsButtonCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var VerdocsButtonStyle0=verdocsButtonCss;var VerdocsButton=function(){function t(t){registerInstance(this,t);this.label=undefined;this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return h("button",{key:"d796a22dcd2b135f3430d26a4cb4e8caf9109c9b",disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?h("span",{class:"icon start",innerHTML:this.startIcon}):null,h("span",{key:"c1de665728ed0e4bf739e4f5b30efc67cb81cfbf",class:"button-label"},this.label),this.endIcon?h("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}();VerdocsButton.style=VerdocsButtonStyle0;var verdocsHelpIconCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;position:absolute;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var VerdocsHelpIconStyle0=verdocsHelpIconCss;var helpIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var VerdocsHelpIcon=function(){function t(t){registerInstance(this,t);this.text="";this.icon=helpIcon;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.iconEl,this.tooltipEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,e;(t=this.tooltipEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltipEl)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return h(Host,{key:"4efe69ab5b8edeffe892fbce06d31dddf3c17e6b",class:{}},h("div",{key:"05917e2f774970456b6c56a528fbdfe5b1a95586","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(e){return t.iconEl=e}}),h("div",{key:"25c6b233a2e8dc60425d27611d0f9ea1b8804a90",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(e){return t.tooltipEl=e}},h("span",{key:"5ae3b1fce0724c421dc13c4439e79a9e88e4b40a",innerHTML:this.text}),h("div",{key:"136ce3de3ec515328f8b47fb35c052aad6e4e223","data-popper-arrow":"true",class:"arrow"})))};return t}();VerdocsHelpIcon.style=VerdocsHelpIconStyle0;var verdocsTextInputCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';var VerdocsTextInputStyle0=verdocsTextInputCss;var ClearIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>';var CopyIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>';var VerdocsTextInput=function(){function t(t){registerInstance(this,t);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.helpText="";this.clearable=false;this.copyable=false;this.type="text";this.disabled=false;this.required=false}t.prototype.copyToClipboard=function(){this.inputEl.select();navigator.clipboard.writeText(this.value).then((function(){return VerdocsToast("Copied!")})).catch((function(t){return console.log("Error copying to clipboard",t)}))};t.prototype.render=function(){var t=this;return h(Host,{key:"e71c4ce13dfab7ae8c7ca4b7eb64569cb817d8ce",class:"input-field ".concat(this.clearable?"clearable":""," ").concat(this.copyable?"copyable":"")},h("label",{key:"4a2a6be345baebfc23ce46fd765e051e2aca39de"},this.label&&h("div",{key:"2a30635cbee56e7d3024e639366ed2d6618fa526",class:"input-label"},this.label+":",this.required&&h("span",{key:"08a6295cdaf9b96d9b56391395635ddeb4e80a8e",class:"required"},"*")),h("div",{key:"b2a5385fa49b86aef69f2d52a02267d48140fd58",class:"input-container"},h("input",{key:"5b307bf77e7175c65c04e2d7a76e7da8dfc15d7c",type:this.type,value:this.value,required:this.required,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete,ref:function(e){return t.inputEl=e},onInput:function(e){return t.value=e.target.value}}),this.clearable&&this.value&&h("span",{key:"566da7c21ce7fe8f41b08b3b69c8b7435c5aab82",innerHTML:ClearIcon,class:"clear",onClick:function(){setTimeout((function(){var e;t.value="";(e=t.inputEl)===null||e===void 0?void 0:e.setAttribute("value","");setTimeout((function(){var e,o;(e=t.inputEl)===null||e===void 0?void 0:e.dispatchEvent(new Event("focusout"));(o=t.inputEl)===null||o===void 0?void 0:o.blur()}),50)}),50)}}),!this.clearable&&this.copyable&&this.value&&h("span",{key:"02b7f45e12e9cf5810d1acd3b4f33062bd558517",innerHTML:CopyIcon,class:"copy",onClick:function(){return t.copyToClipboard()}})),this.helpText&&h("verdocs-help-icon",{key:"3ddca8b8197c0ba01f6725e57b617f73fd3f0739",text:this.helpText})))};Object.defineProperty(t.prototype,"hostEl",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();VerdocsTextInput.style=VerdocsTextInputStyle0;export{VerdocsButton as verdocs_button,VerdocsHelpIcon as verdocs_help_icon,VerdocsTextInput as verdocs_text_input};
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-b89cf6a4.js";import{c as createPopper}from"./popper-0fbeff6d.js";import{V as VerdocsToast}from"./Toast-b71de686.js";var verdocsButtonCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var VerdocsButtonStyle0=verdocsButtonCss;var VerdocsButton=function(){function t(t){registerInstance(this,t);this.label=undefined;this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return h("button",{key:"813ea229dd512708d1b1c0fe87cf7462cb2276b7",disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?h("span",{class:"icon start",innerHTML:this.startIcon}):null,h("span",{key:"d1ca3189f5513bbe13eeda50aa0dc27a03f67480",class:"button-label"},this.label),this.endIcon?h("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}();VerdocsButton.style=VerdocsButtonStyle0;var verdocsHelpIconCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;position:absolute;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var VerdocsHelpIconStyle0=verdocsHelpIconCss;var helpIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var VerdocsHelpIcon=function(){function t(t){registerInstance(this,t);this.text="";this.icon=helpIcon;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.iconEl,this.tooltipEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,e;(t=this.tooltipEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltipEl)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return h(Host,{key:"4efe69ab5b8edeffe892fbce06d31dddf3c17e6b",class:{}},h("div",{key:"05917e2f774970456b6c56a528fbdfe5b1a95586","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(e){return t.iconEl=e}}),h("div",{key:"25c6b233a2e8dc60425d27611d0f9ea1b8804a90",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(e){return t.tooltipEl=e}},h("span",{key:"5ae3b1fce0724c421dc13c4439e79a9e88e4b40a",innerHTML:this.text}),h("div",{key:"136ce3de3ec515328f8b47fb35c052aad6e4e223","data-popper-arrow":"true",class:"arrow"})))};return t}();VerdocsHelpIcon.style=VerdocsHelpIconStyle0;var verdocsTextInputCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';var VerdocsTextInputStyle0=verdocsTextInputCss;var ClearIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>';var CopyIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>';var VerdocsTextInput=function(){function t(t){registerInstance(this,t);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.helpText="";this.clearable=false;this.copyable=false;this.type="text";this.disabled=false;this.required=false}t.prototype.copyToClipboard=function(){this.inputEl.select();navigator.clipboard.writeText(this.value).then((function(){return VerdocsToast("Copied!")})).catch((function(t){return console.log("Error copying to clipboard",t)}))};t.prototype.render=function(){var t=this;return h(Host,{key:"e71c4ce13dfab7ae8c7ca4b7eb64569cb817d8ce",class:"input-field ".concat(this.clearable?"clearable":""," ").concat(this.copyable?"copyable":"")},h("label",{key:"4a2a6be345baebfc23ce46fd765e051e2aca39de"},this.label&&h("div",{key:"2a30635cbee56e7d3024e639366ed2d6618fa526",class:"input-label"},this.label+":",this.required&&h("span",{key:"08a6295cdaf9b96d9b56391395635ddeb4e80a8e",class:"required"},"*")),h("div",{key:"b2a5385fa49b86aef69f2d52a02267d48140fd58",class:"input-container"},h("input",{key:"5b307bf77e7175c65c04e2d7a76e7da8dfc15d7c",type:this.type,value:this.value,required:this.required,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete,ref:function(e){return t.inputEl=e},onInput:function(e){return t.value=e.target.value}}),this.clearable&&this.value&&h("span",{key:"566da7c21ce7fe8f41b08b3b69c8b7435c5aab82",innerHTML:ClearIcon,class:"clear",onClick:function(){setTimeout((function(){var e;t.value="";(e=t.inputEl)===null||e===void 0?void 0:e.setAttribute("value","");setTimeout((function(){var e,o;(e=t.inputEl)===null||e===void 0?void 0:e.dispatchEvent(new Event("focusout"));(o=t.inputEl)===null||o===void 0?void 0:o.blur()}),50)}),50)}}),!this.clearable&&this.copyable&&this.value&&h("span",{key:"02b7f45e12e9cf5810d1acd3b4f33062bd558517",innerHTML:CopyIcon,class:"copy",onClick:function(){return t.copyToClipboard()}})),this.helpText&&h("verdocs-help-icon",{key:"3ddca8b8197c0ba01f6725e57b617f73fd3f0739",text:this.helpText})))};Object.defineProperty(t.prototype,"hostEl",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();VerdocsTextInput.style=VerdocsTextInputStyle0;export{VerdocsButton as verdocs_button,VerdocsHelpIcon as verdocs_help_icon,VerdocsTextInput as verdocs_text_input};
|