@verdocs/web-sdk 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/dist/cjs/{index-961181ce.js → index-7c19ba1d.js} +602 -37
  2. package/dist/cjs/{utils-ce815868.js → utils-ae9b4e3e.js} +1 -1
  3. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +2 -3
  4. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -3
  5. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -2
  6. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +2 -3
  7. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +2 -3
  8. package/dist/cjs/verdocs-field-date.cjs.entry.js +2 -3
  9. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +2 -3
  10. package/dist/cjs/verdocs-field-initial.cjs.entry.js +2 -3
  11. package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -3
  12. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +2 -3
  13. package/dist/cjs/verdocs-field-signature.cjs.entry.js +2 -3
  14. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +2 -3
  15. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +2 -3
  16. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +2 -3
  17. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -2
  18. package/dist/cjs/verdocs-pagination_3.cjs.entry.js +3 -4
  19. package/dist/cjs/verdocs-preview.cjs.entry.js +2 -3
  20. package/dist/cjs/verdocs-send.cjs.entry.js +2 -3
  21. package/dist/cjs/verdocs-sign.cjs.entry.js +2 -3
  22. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -3
  23. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +2 -3
  24. package/dist/cjs/verdocs-templates-list.cjs.entry.js +34 -504
  25. package/dist/cjs/verdocs-view.cjs.entry.js +2 -3
  26. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.css +1 -0
  27. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +23 -29
  28. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +80 -4
  29. package/dist/components/index2.js +1 -1
  30. package/dist/components/verdocs-pagination2.js +1 -1
  31. package/dist/components/verdocs-templates-list.js +20 -490
  32. package/dist/docs.json +37 -1
  33. package/dist/esm/{index-2685d184.js → index-914ed6f7.js} +566 -1
  34. package/dist/esm/{utils-51c8f6c7.js → utils-6412577d.js} +1 -1
  35. package/dist/esm/verdocs-contact-picker.entry.js +2 -3
  36. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -3
  37. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -2
  38. package/dist/esm/verdocs-envelopes-list.entry.js +2 -3
  39. package/dist/esm/verdocs-field-checkbox.entry.js +2 -3
  40. package/dist/esm/verdocs-field-date.entry.js +2 -3
  41. package/dist/esm/verdocs-field-dropdown.entry.js +2 -3
  42. package/dist/esm/verdocs-field-initial.entry.js +2 -3
  43. package/dist/esm/verdocs-field-payment.entry.js +2 -3
  44. package/dist/esm/verdocs-field-radio-button.entry.js +2 -3
  45. package/dist/esm/verdocs-field-signature.entry.js +2 -3
  46. package/dist/esm/verdocs-field-textarea.entry.js +2 -3
  47. package/dist/esm/verdocs-field-textbox.entry.js +2 -3
  48. package/dist/esm/verdocs-field-timestamp.entry.js +2 -3
  49. package/dist/esm/verdocs-organization-card.entry.js +1 -2
  50. package/dist/esm/verdocs-pagination_3.entry.js +3 -4
  51. package/dist/esm/verdocs-preview.entry.js +2 -3
  52. package/dist/esm/verdocs-send.entry.js +2 -3
  53. package/dist/esm/verdocs-sign.entry.js +2 -3
  54. package/dist/esm/verdocs-template-document-page_2.entry.js +2 -3
  55. package/dist/esm/verdocs-template-fields_4.entry.js +2 -3
  56. package/dist/esm/verdocs-templates-list.entry.js +20 -490
  57. package/dist/esm/verdocs-view.entry.js +2 -3
  58. package/dist/esm-es5/index-914ed6f7.js +1 -0
  59. package/dist/esm-es5/{utils-51c8f6c7.js → utils-6412577d.js} +1 -1
  60. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  61. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  62. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  63. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  64. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  65. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  66. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  67. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  68. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  69. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  70. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  71. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  72. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  73. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  74. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  75. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
  76. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  77. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  78. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  79. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  80. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  81. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  82. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  83. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +19 -0
  84. package/dist/types/components.d.ts +16 -0
  85. package/dist/verdocs-web-sdk/p-071697d2.system.entry.js +1 -0
  86. package/dist/verdocs-web-sdk/p-07ec8b75.system.entry.js +1 -0
  87. package/dist/verdocs-web-sdk/p-0867e803.entry.js +1 -0
  88. package/dist/verdocs-web-sdk/p-10b88811.entry.js +1 -0
  89. package/dist/verdocs-web-sdk/p-119c68da.entry.js +1 -0
  90. package/dist/verdocs-web-sdk/{p-62aaeefd.system.js → p-13b3dd46.system.js} +1 -1
  91. package/dist/verdocs-web-sdk/p-1aa15768.system.entry.js +1 -0
  92. package/dist/verdocs-web-sdk/p-1f8f50ec.entry.js +1 -0
  93. package/dist/verdocs-web-sdk/p-216fb277.system.entry.js +1 -0
  94. package/dist/verdocs-web-sdk/p-25332568.system.entry.js +1 -0
  95. package/dist/verdocs-web-sdk/p-27c654c5.system.entry.js +1 -0
  96. package/dist/verdocs-web-sdk/p-2c589cfe.entry.js +1 -0
  97. package/dist/verdocs-web-sdk/p-3f8cb451.entry.js +1 -0
  98. package/dist/verdocs-web-sdk/p-47dd8143.entry.js +1 -0
  99. package/dist/verdocs-web-sdk/p-4a4b097e.system.entry.js +1 -0
  100. package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
  101. package/dist/verdocs-web-sdk/p-653b1563.system.entry.js +1 -0
  102. package/dist/verdocs-web-sdk/p-670a2414.system.entry.js +1 -0
  103. package/dist/verdocs-web-sdk/p-70a1cb8d.entry.js +1 -0
  104. package/dist/verdocs-web-sdk/p-72127c91.entry.js +1 -0
  105. package/dist/verdocs-web-sdk/p-7895b10e.system.entry.js +1 -0
  106. package/dist/verdocs-web-sdk/p-7c72fce6.system.entry.js +1 -0
  107. package/dist/verdocs-web-sdk/p-80177cc3.system.entry.js +1 -0
  108. package/dist/verdocs-web-sdk/p-87a2cd5d.system.entry.js +1 -0
  109. package/dist/verdocs-web-sdk/p-87cf940c.system.entry.js +1 -0
  110. package/dist/verdocs-web-sdk/p-8f370d3a.system.entry.js +1 -0
  111. package/dist/verdocs-web-sdk/p-9176b478.entry.js +1 -0
  112. package/dist/verdocs-web-sdk/p-a31bf4c7.entry.js +1 -0
  113. package/dist/verdocs-web-sdk/p-aadfc04d.system.entry.js +1 -0
  114. package/dist/verdocs-web-sdk/p-b4dee4ca.entry.js +1 -0
  115. package/dist/verdocs-web-sdk/p-ba5565d4.entry.js +1 -0
  116. package/dist/verdocs-web-sdk/p-c079268f.system.entry.js +1 -0
  117. package/dist/verdocs-web-sdk/p-c214b652.entry.js +1 -0
  118. package/dist/verdocs-web-sdk/p-c220af42.js +1 -0
  119. package/dist/verdocs-web-sdk/p-c9a691bf.system.entry.js +1 -0
  120. package/dist/verdocs-web-sdk/p-cbb985f6.system.entry.js +1 -0
  121. package/dist/verdocs-web-sdk/p-ccc162ab.entry.js +1 -0
  122. package/dist/verdocs-web-sdk/p-cfb617a2.system.entry.js +1 -0
  123. package/dist/verdocs-web-sdk/p-d0b40fce.entry.js +1 -0
  124. package/dist/verdocs-web-sdk/p-d0c6885b.entry.js +1 -0
  125. package/dist/verdocs-web-sdk/p-d13da19a.entry.js +1 -0
  126. package/dist/verdocs-web-sdk/p-d145cb63.entry.js +1 -0
  127. package/dist/verdocs-web-sdk/p-dc9c4361.system.js +1 -0
  128. package/dist/verdocs-web-sdk/p-dca1d739.entry.js +1 -0
  129. package/dist/verdocs-web-sdk/p-e01dd4e1.entry.js +1 -0
  130. package/dist/verdocs-web-sdk/p-e40720da.system.entry.js +1 -0
  131. package/dist/verdocs-web-sdk/p-e826490a.entry.js +1 -0
  132. package/dist/verdocs-web-sdk/p-ea87070d.system.entry.js +1 -0
  133. package/dist/verdocs-web-sdk/p-fa7332f2.system.entry.js +1 -0
  134. package/dist/verdocs-web-sdk/{p-ae4c9e4a.js → p-fc6ce0d8.js} +1 -1
  135. package/dist/verdocs-web-sdk/p-fdf8bc45.entry.js +1 -0
  136. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  137. package/package.json +1 -1
  138. package/dist/cjs/index-db620f37.js +0 -575
  139. package/dist/esm/index-8dc8fdc4.js +0 -568
  140. package/dist/esm-es5/index-2685d184.js +0 -1
  141. package/dist/esm-es5/index-8dc8fdc4.js +0 -1
  142. package/dist/verdocs-web-sdk/p-048a6205.system.entry.js +0 -1
  143. package/dist/verdocs-web-sdk/p-11a30706.entry.js +0 -1
  144. package/dist/verdocs-web-sdk/p-19fefdf7.entry.js +0 -1
  145. package/dist/verdocs-web-sdk/p-1d010a79.system.js +0 -1
  146. package/dist/verdocs-web-sdk/p-26417803.system.entry.js +0 -1
  147. package/dist/verdocs-web-sdk/p-2ebc0650.entry.js +0 -1
  148. package/dist/verdocs-web-sdk/p-3561afed.entry.js +0 -1
  149. package/dist/verdocs-web-sdk/p-35841b7c.js +0 -1
  150. package/dist/verdocs-web-sdk/p-403ea34b.system.entry.js +0 -1
  151. package/dist/verdocs-web-sdk/p-42d2c651.system.entry.js +0 -1
  152. package/dist/verdocs-web-sdk/p-450047f1.entry.js +0 -1
  153. package/dist/verdocs-web-sdk/p-455c136c.entry.js +0 -1
  154. package/dist/verdocs-web-sdk/p-485ed6e3.entry.js +0 -1
  155. package/dist/verdocs-web-sdk/p-4fe4e161.js +0 -1
  156. package/dist/verdocs-web-sdk/p-5255e6f7.entry.js +0 -1
  157. package/dist/verdocs-web-sdk/p-5cff7439.system.entry.js +0 -1
  158. package/dist/verdocs-web-sdk/p-5e50330a.system.entry.js +0 -1
  159. package/dist/verdocs-web-sdk/p-5e92d526.system.entry.js +0 -1
  160. package/dist/verdocs-web-sdk/p-6995a8d8.system.entry.js +0 -1
  161. package/dist/verdocs-web-sdk/p-6ac57122.system.entry.js +0 -1
  162. package/dist/verdocs-web-sdk/p-6e8b1251.system.entry.js +0 -1
  163. package/dist/verdocs-web-sdk/p-6ebab009.system.entry.js +0 -1
  164. package/dist/verdocs-web-sdk/p-7cd40ff6.entry.js +0 -1
  165. package/dist/verdocs-web-sdk/p-844f5d1b.system.entry.js +0 -1
  166. package/dist/verdocs-web-sdk/p-87232ec1.system.entry.js +0 -1
  167. package/dist/verdocs-web-sdk/p-88e0bab8.entry.js +0 -1
  168. package/dist/verdocs-web-sdk/p-8b2dc164.system.entry.js +0 -1
  169. package/dist/verdocs-web-sdk/p-8b77a5dc.system.entry.js +0 -1
  170. package/dist/verdocs-web-sdk/p-90565aa6.system.entry.js +0 -1
  171. package/dist/verdocs-web-sdk/p-91b8a076.entry.js +0 -1
  172. package/dist/verdocs-web-sdk/p-92e1ea05.entry.js +0 -1
  173. package/dist/verdocs-web-sdk/p-9cc39dc6.system.entry.js +0 -1
  174. package/dist/verdocs-web-sdk/p-9dde58a8.system.js +0 -1
  175. package/dist/verdocs-web-sdk/p-a106413b.system.entry.js +0 -1
  176. package/dist/verdocs-web-sdk/p-a3c33953.entry.js +0 -1
  177. package/dist/verdocs-web-sdk/p-a88c77bb.entry.js +0 -1
  178. package/dist/verdocs-web-sdk/p-b42c686d.system.entry.js +0 -1
  179. package/dist/verdocs-web-sdk/p-b7b48889.entry.js +0 -1
  180. package/dist/verdocs-web-sdk/p-bd3405ab.entry.js +0 -1
  181. package/dist/verdocs-web-sdk/p-c7cebd38.entry.js +0 -1
  182. package/dist/verdocs-web-sdk/p-c8a1de2c.entry.js +0 -1
  183. package/dist/verdocs-web-sdk/p-c91ad3c7.entry.js +0 -1
  184. package/dist/verdocs-web-sdk/p-cf6d8044.system.entry.js +0 -1
  185. package/dist/verdocs-web-sdk/p-d115c414.entry.js +0 -1
  186. package/dist/verdocs-web-sdk/p-d1809f69.entry.js +0 -1
  187. package/dist/verdocs-web-sdk/p-d3f3c09a.entry.js +0 -1
  188. package/dist/verdocs-web-sdk/p-d45ea55d.system.entry.js +0 -1
  189. package/dist/verdocs-web-sdk/p-f2207c05.system.entry.js +0 -1
  190. package/dist/verdocs-web-sdk/p-fac4806c.system.entry.js +0 -1
  191. package/dist/verdocs-web-sdk/p-fc8bb551.entry.js +0 -1
@@ -2,507 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-1d5fc518.js');
5
+ const index = require('./index-1d5fc518.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
8
8
  const Templates = require('./Templates-f6e75719.js');
9
9
  const Toast = require('./Toast-06880504.js');
10
10
  const errors = require('./errors-0396da3d.js');
11
- const index = require('./index-db620f37.js');
11
+ const index$1 = require('./index-7c19ba1d.js');
12
12
 
13
- /**
14
- * @name compareAsc
15
- * @category Common Helpers
16
- * @summary Compare the two dates and return -1, 0 or 1.
17
- *
18
- * @description
19
- * Compare the two dates and return 1 if the first date is after the second,
20
- * -1 if the first date is before the second or 0 if dates are equal.
21
- *
22
- * @param {Date|Number} dateLeft - the first date to compare
23
- * @param {Date|Number} dateRight - the second date to compare
24
- * @returns {Number} the result of the comparison
25
- * @throws {TypeError} 2 arguments required
26
- *
27
- * @example
28
- * // Compare 11 February 1987 and 10 July 1989:
29
- * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))
30
- * //=> -1
31
- *
32
- * @example
33
- * // Sort the array of dates:
34
- * const result = [
35
- * new Date(1995, 6, 2),
36
- * new Date(1987, 1, 11),
37
- * new Date(1989, 6, 10)
38
- * ].sort(compareAsc)
39
- * //=> [
40
- * // Wed Feb 11 1987 00:00:00,
41
- * // Mon Jul 10 1989 00:00:00,
42
- * // Sun Jul 02 1995 00:00:00
43
- * // ]
44
- */
45
- function compareAsc(dirtyDateLeft, dirtyDateRight) {
46
- index.requiredArgs(2, arguments);
47
- var dateLeft = index.toDate(dirtyDateLeft);
48
- var dateRight = index.toDate(dirtyDateRight);
49
- var diff = dateLeft.getTime() - dateRight.getTime();
50
- if (diff < 0) {
51
- return -1;
52
- } else if (diff > 0) {
53
- return 1;
54
- // Return 0 if diff is 0; return NaN if diff is NaN
55
- } else {
56
- return diff;
57
- }
58
- }
59
-
60
- /**
61
- * @name differenceInCalendarMonths
62
- * @category Month Helpers
63
- * @summary Get the number of calendar months between the given dates.
64
- *
65
- * @description
66
- * Get the number of calendar months between the given dates.
67
- *
68
- * @param {Date|Number} dateLeft - the later date
69
- * @param {Date|Number} dateRight - the earlier date
70
- * @returns {Number} the number of calendar months
71
- * @throws {TypeError} 2 arguments required
72
- *
73
- * @example
74
- * // How many calendar months are between 31 January 2014 and 1 September 2014?
75
- * const result = differenceInCalendarMonths(
76
- * new Date(2014, 8, 1),
77
- * new Date(2014, 0, 31)
78
- * )
79
- * //=> 8
80
- */
81
- function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {
82
- index.requiredArgs(2, arguments);
83
- var dateLeft = index.toDate(dirtyDateLeft);
84
- var dateRight = index.toDate(dirtyDateRight);
85
- var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();
86
- var monthDiff = dateLeft.getMonth() - dateRight.getMonth();
87
- return yearDiff * 12 + monthDiff;
88
- }
89
-
90
- /**
91
- * @name differenceInMilliseconds
92
- * @category Millisecond Helpers
93
- * @summary Get the number of milliseconds between the given dates.
94
- *
95
- * @description
96
- * Get the number of milliseconds between the given dates.
97
- *
98
- * @param {Date|Number} dateLeft - the later date
99
- * @param {Date|Number} dateRight - the earlier date
100
- * @returns {Number} the number of milliseconds
101
- * @throws {TypeError} 2 arguments required
102
- *
103
- * @example
104
- * // How many milliseconds are between
105
- * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
106
- * const result = differenceInMilliseconds(
107
- * new Date(2014, 6, 2, 12, 30, 21, 700),
108
- * new Date(2014, 6, 2, 12, 30, 20, 600)
109
- * )
110
- * //=> 1100
111
- */
112
- function differenceInMilliseconds(dateLeft, dateRight) {
113
- index.requiredArgs(2, arguments);
114
- return index.toDate(dateLeft).getTime() - index.toDate(dateRight).getTime();
115
- }
116
-
117
- var roundingMap = {
118
- ceil: Math.ceil,
119
- round: Math.round,
120
- floor: Math.floor,
121
- trunc: function trunc(value) {
122
- return value < 0 ? Math.ceil(value) : Math.floor(value);
123
- } // Math.trunc is not supported by IE
124
- };
125
-
126
- var defaultRoundingMethod = 'trunc';
127
- function getRoundingMethod(method) {
128
- return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
129
- }
130
-
131
- /**
132
- * @name endOfDay
133
- * @category Day Helpers
134
- * @summary Return the end of a day for the given date.
135
- *
136
- * @description
137
- * Return the end of a day for the given date.
138
- * The result will be in the local timezone.
139
- *
140
- * @param {Date|Number} date - the original date
141
- * @returns {Date} the end of a day
142
- * @throws {TypeError} 1 argument required
143
- *
144
- * @example
145
- * // The end of a day for 2 September 2014 11:55:00:
146
- * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
147
- * //=> Tue Sep 02 2014 23:59:59.999
148
- */
149
- function endOfDay(dirtyDate) {
150
- index.requiredArgs(1, arguments);
151
- var date = index.toDate(dirtyDate);
152
- date.setHours(23, 59, 59, 999);
153
- return date;
154
- }
155
-
156
- /**
157
- * @name endOfMonth
158
- * @category Month Helpers
159
- * @summary Return the end of a month for the given date.
160
- *
161
- * @description
162
- * Return the end of a month for the given date.
163
- * The result will be in the local timezone.
164
- *
165
- * @param {Date|Number} date - the original date
166
- * @returns {Date} the end of a month
167
- * @throws {TypeError} 1 argument required
168
- *
169
- * @example
170
- * // The end of a month for 2 September 2014 11:55:00:
171
- * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
172
- * //=> Tue Sep 30 2014 23:59:59.999
173
- */
174
- function endOfMonth(dirtyDate) {
175
- index.requiredArgs(1, arguments);
176
- var date = index.toDate(dirtyDate);
177
- var month = date.getMonth();
178
- date.setFullYear(date.getFullYear(), month + 1, 0);
179
- date.setHours(23, 59, 59, 999);
180
- return date;
181
- }
182
-
183
- /**
184
- * @name isLastDayOfMonth
185
- * @category Month Helpers
186
- * @summary Is the given date the last day of a month?
187
- *
188
- * @description
189
- * Is the given date the last day of a month?
190
- *
191
- * @param {Date|Number} date - the date to check
192
- * @returns {Boolean} the date is the last day of a month
193
- * @throws {TypeError} 1 argument required
194
- *
195
- * @example
196
- * // Is 28 February 2014 the last day of a month?
197
- * const result = isLastDayOfMonth(new Date(2014, 1, 28))
198
- * //=> true
199
- */
200
- function isLastDayOfMonth(dirtyDate) {
201
- index.requiredArgs(1, arguments);
202
- var date = index.toDate(dirtyDate);
203
- return endOfDay(date).getTime() === endOfMonth(date).getTime();
204
- }
205
-
206
- /**
207
- * @name differenceInMonths
208
- * @category Month Helpers
209
- * @summary Get the number of full months between the given dates.
210
- *
211
- * @description
212
- * Get the number of full months between the given dates using trunc as a default rounding method.
213
- *
214
- * @param {Date|Number} dateLeft - the later date
215
- * @param {Date|Number} dateRight - the earlier date
216
- * @returns {Number} the number of full months
217
- * @throws {TypeError} 2 arguments required
218
- *
219
- * @example
220
- * // How many full months are between 31 January 2014 and 1 September 2014?
221
- * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
222
- * //=> 7
223
- */
224
- function differenceInMonths(dirtyDateLeft, dirtyDateRight) {
225
- index.requiredArgs(2, arguments);
226
- var dateLeft = index.toDate(dirtyDateLeft);
227
- var dateRight = index.toDate(dirtyDateRight);
228
- var sign = compareAsc(dateLeft, dateRight);
229
- var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));
230
- var result;
231
-
232
- // Check for the difference of less than month
233
- if (difference < 1) {
234
- result = 0;
235
- } else {
236
- if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {
237
- // This will check if the date is end of Feb and assign a higher end of month date
238
- // to compare it with Jan
239
- dateLeft.setDate(30);
240
- }
241
- dateLeft.setMonth(dateLeft.getMonth() - sign * difference);
242
-
243
- // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full
244
- // If so, result must be decreased by 1 in absolute value
245
- var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign;
246
-
247
- // Check for cases of one full calendar month
248
- if (isLastDayOfMonth(index.toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {
249
- isLastMonthNotFull = false;
250
- }
251
- result = sign * (difference - Number(isLastMonthNotFull));
252
- }
253
-
254
- // Prevent negative zero
255
- return result === 0 ? 0 : result;
256
- }
257
-
258
- /**
259
- * @name differenceInSeconds
260
- * @category Second Helpers
261
- * @summary Get the number of seconds between the given dates.
262
- *
263
- * @description
264
- * Get the number of seconds between the given dates.
265
- *
266
- * @param {Date|Number} dateLeft - the later date
267
- * @param {Date|Number} dateRight - the earlier date
268
- * @param {Object} [options] - an object with options.
269
- * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
270
- * @returns {Number} the number of seconds
271
- * @throws {TypeError} 2 arguments required
272
- *
273
- * @example
274
- * // How many seconds are between
275
- * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
276
- * const result = differenceInSeconds(
277
- * new Date(2014, 6, 2, 12, 30, 20, 0),
278
- * new Date(2014, 6, 2, 12, 30, 7, 999)
279
- * )
280
- * //=> 12
281
- */
282
- function differenceInSeconds(dateLeft, dateRight, options) {
283
- index.requiredArgs(2, arguments);
284
- var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;
285
- return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
286
- }
287
-
288
- function assign(target, object) {
289
- if (target == null) {
290
- throw new TypeError('assign requires that input parameter not be null or undefined');
291
- }
292
- for (var property in object) {
293
- if (Object.prototype.hasOwnProperty.call(object, property)) {
294
- target[property] = object[property];
295
- }
296
- }
297
- return target;
298
- }
299
-
300
- function cloneObject(object) {
301
- return assign({}, object);
302
- }
303
-
304
- var MINUTES_IN_DAY = 1440;
305
- var MINUTES_IN_ALMOST_TWO_DAYS = 2520;
306
- var MINUTES_IN_MONTH = 43200;
307
- var MINUTES_IN_TWO_MONTHS = 86400;
308
-
309
- /**
310
- * @name formatDistance
311
- * @category Common Helpers
312
- * @summary Return the distance between the given dates in words.
313
- *
314
- * @description
315
- * Return the distance between the given dates in words.
316
- *
317
- * | Distance between dates | Result |
318
- * |-------------------------------------------------------------------|---------------------|
319
- * | 0 ... 30 secs | less than a minute |
320
- * | 30 secs ... 1 min 30 secs | 1 minute |
321
- * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |
322
- * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |
323
- * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |
324
- * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |
325
- * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |
326
- * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |
327
- * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |
328
- * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |
329
- * | 1 yr ... 1 yr 3 months | about 1 year |
330
- * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |
331
- * | 1 yr 9 months ... 2 yrs | almost 2 years |
332
- * | N yrs ... N yrs 3 months | about N years |
333
- * | N yrs 3 months ... N yrs 9 months | over N years |
334
- * | N yrs 9 months ... N+1 yrs | almost N+1 years |
335
- *
336
- * With `options.includeSeconds == true`:
337
- * | Distance between dates | Result |
338
- * |------------------------|----------------------|
339
- * | 0 secs ... 5 secs | less than 5 seconds |
340
- * | 5 secs ... 10 secs | less than 10 seconds |
341
- * | 10 secs ... 20 secs | less than 20 seconds |
342
- * | 20 secs ... 40 secs | half a minute |
343
- * | 40 secs ... 60 secs | less than a minute |
344
- * | 60 secs ... 90 secs | 1 minute |
345
- *
346
- * @param {Date|Number} date - the date
347
- * @param {Date|Number} baseDate - the date to compare with
348
- * @param {Object} [options] - an object with options.
349
- * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed
350
- * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first
351
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
352
- * @returns {String} the distance in words
353
- * @throws {TypeError} 2 arguments required
354
- * @throws {RangeError} `date` must not be Invalid Date
355
- * @throws {RangeError} `baseDate` must not be Invalid Date
356
- * @throws {RangeError} `options.locale` must contain `formatDistance` property
357
- *
358
- * @example
359
- * // What is the distance between 2 July 2014 and 1 January 2015?
360
- * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))
361
- * //=> '6 months'
362
- *
363
- * @example
364
- * // What is the distance between 1 January 2015 00:00:15
365
- * // and 1 January 2015 00:00:00, including seconds?
366
- * const result = formatDistance(
367
- * new Date(2015, 0, 1, 0, 0, 15),
368
- * new Date(2015, 0, 1, 0, 0, 0),
369
- * { includeSeconds: true }
370
- * )
371
- * //=> 'less than 20 seconds'
372
- *
373
- * @example
374
- * // What is the distance from 1 January 2016
375
- * // to 1 January 2015, with a suffix?
376
- * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {
377
- * addSuffix: true
378
- * })
379
- * //=> 'about 1 year ago'
380
- *
381
- * @example
382
- * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?
383
- * import { eoLocale } from 'date-fns/locale/eo'
384
- * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {
385
- * locale: eoLocale
386
- * })
387
- * //=> 'pli ol 1 jaro'
388
- */
389
-
390
- function formatDistance(dirtyDate, dirtyBaseDate, options) {
391
- var _ref, _options$locale;
392
- index.requiredArgs(2, arguments);
393
- var defaultOptions = index.getDefaultOptions();
394
- var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : index.locale;
395
- if (!locale.formatDistance) {
396
- throw new RangeError('locale must contain formatDistance property');
397
- }
398
- var comparison = compareAsc(dirtyDate, dirtyBaseDate);
399
- if (isNaN(comparison)) {
400
- throw new RangeError('Invalid time value');
401
- }
402
- var localizeOptions = assign(cloneObject(options), {
403
- addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),
404
- comparison: comparison
405
- });
406
- var dateLeft;
407
- var dateRight;
408
- if (comparison > 0) {
409
- dateLeft = index.toDate(dirtyBaseDate);
410
- dateRight = index.toDate(dirtyDate);
411
- } else {
412
- dateLeft = index.toDate(dirtyDate);
413
- dateRight = index.toDate(dirtyBaseDate);
414
- }
415
- var seconds = differenceInSeconds(dateRight, dateLeft);
416
- var offsetInSeconds = (index.getTimezoneOffsetInMilliseconds(dateRight) - index.getTimezoneOffsetInMilliseconds(dateLeft)) / 1000;
417
- var minutes = Math.round((seconds - offsetInSeconds) / 60);
418
- var months;
419
-
420
- // 0 up to 2 mins
421
- if (minutes < 2) {
422
- if (options !== null && options !== void 0 && options.includeSeconds) {
423
- if (seconds < 5) {
424
- return locale.formatDistance('lessThanXSeconds', 5, localizeOptions);
425
- } else if (seconds < 10) {
426
- return locale.formatDistance('lessThanXSeconds', 10, localizeOptions);
427
- } else if (seconds < 20) {
428
- return locale.formatDistance('lessThanXSeconds', 20, localizeOptions);
429
- } else if (seconds < 40) {
430
- return locale.formatDistance('halfAMinute', 0, localizeOptions);
431
- } else if (seconds < 60) {
432
- return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);
433
- } else {
434
- return locale.formatDistance('xMinutes', 1, localizeOptions);
435
- }
436
- } else {
437
- if (minutes === 0) {
438
- return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);
439
- } else {
440
- return locale.formatDistance('xMinutes', minutes, localizeOptions);
441
- }
442
- }
443
-
444
- // 2 mins up to 0.75 hrs
445
- } else if (minutes < 45) {
446
- return locale.formatDistance('xMinutes', minutes, localizeOptions);
447
-
448
- // 0.75 hrs up to 1.5 hrs
449
- } else if (minutes < 90) {
450
- return locale.formatDistance('aboutXHours', 1, localizeOptions);
451
-
452
- // 1.5 hrs up to 24 hrs
453
- } else if (minutes < MINUTES_IN_DAY) {
454
- var hours = Math.round(minutes / 60);
455
- return locale.formatDistance('aboutXHours', hours, localizeOptions);
456
-
457
- // 1 day up to 1.75 days
458
- } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {
459
- return locale.formatDistance('xDays', 1, localizeOptions);
460
-
461
- // 1.75 days up to 30 days
462
- } else if (minutes < MINUTES_IN_MONTH) {
463
- var days = Math.round(minutes / MINUTES_IN_DAY);
464
- return locale.formatDistance('xDays', days, localizeOptions);
465
-
466
- // 1 month up to 2 months
467
- } else if (minutes < MINUTES_IN_TWO_MONTHS) {
468
- months = Math.round(minutes / MINUTES_IN_MONTH);
469
- return locale.formatDistance('aboutXMonths', months, localizeOptions);
470
- }
471
- months = differenceInMonths(dateRight, dateLeft);
472
-
473
- // 2 months up to 12 months
474
- if (months < 12) {
475
- var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);
476
- return locale.formatDistance('xMonths', nearestMonth, localizeOptions);
477
-
478
- // 1 year up to max Date
479
- } else {
480
- var monthsSinceStartOfYear = months % 12;
481
- var years = Math.floor(months / 12);
482
-
483
- // N years up to 1 years 3 months
484
- if (monthsSinceStartOfYear < 3) {
485
- return locale.formatDistance('aboutXYears', years, localizeOptions);
486
-
487
- // N years 3 months up to N years 9 months
488
- } else if (monthsSinceStartOfYear < 9) {
489
- return locale.formatDistance('overXYears', years, localizeOptions);
490
-
491
- // N years 9 months up to N year 12 months
492
- } else {
493
- return locale.formatDistance('almostXYears', years + 1, localizeOptions);
494
- }
495
- }
496
- }
497
-
498
- const verdocsTemplatesListCss = "verdocs-templates-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template{width:100%;margin:3px 0;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#f5f5fa}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:18px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .ownership{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 100px;flex:0 0 100px;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .ownership svg{width:24px;height:24px;margin-right:8px}verdocs-templates-list .last-used{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 280px;flex:0 0 280px;font-size:16px;margin:0 0 0 10px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .last-used svg{width:24px;height:24px;margin-right:8px}verdocs-templates-list .usage{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .usage svg{width:24px;height:24px;margin-right:8px}";
13
+ const verdocsTemplatesListCss = "verdocs-templates-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template{width:100%;margin:3px 0;border:1px solid #ffffff;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#ededff;border:1px solid #a7a7f5}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:16px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .usage,verdocs-templates-list .ownership,verdocs-templates-list .last-used{gap:10px;color:#444;display:-ms-flexbox;display:flex;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .usage span,verdocs-templates-list .usage svg,verdocs-templates-list .ownership span,verdocs-templates-list .ownership svg,verdocs-templates-list .last-used span,verdocs-templates-list .last-used svg{width:24px;height:24px}verdocs-templates-list .usage span,verdocs-templates-list .ownership span,verdocs-templates-list .last-used span{display:block}verdocs-templates-list .ownership{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-templates-list .last-used{-ms-flex:0 0 130px;flex:0 0 130px}verdocs-templates-list .usage{-ms-flex:0 0 60px;flex:0 0 60px}";
499
14
 
500
- const TemplateIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></svg>`;
501
15
  const GlobeAltIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>`;
502
16
  const LockClosedIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>`;
503
17
  const BuildingOfficeIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>`;
504
- const CalendarIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5" /></svg>`;
505
18
  const EnvelopeIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>`;
19
+ const CreatedIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>`;
20
+ const LastUsedIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>`;
21
+ const UpdatedIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>`;
506
22
  const SharingFilters = [
507
23
  { value: 'all', label: 'All' },
508
24
  { value: 'personal', label: 'Personal' },
@@ -524,11 +40,15 @@ const SortOptions = [
524
40
  ];
525
41
  const VerdocsTemplatesList = class {
526
42
  constructor(hostRef) {
527
- index$1.registerInstance(this, hostRef);
528
- this.sdkError = index$1.createEvent(this, "sdkError", 7);
529
- this.viewTemplate = index$1.createEvent(this, "viewTemplate", 7);
530
- this.editTemplate = index$1.createEvent(this, "editTemplate", 7);
531
- this.templateDeleted = index$1.createEvent(this, "templateDeleted", 7);
43
+ index.registerInstance(this, hostRef);
44
+ this.sdkError = index.createEvent(this, "sdkError", 7);
45
+ this.viewTemplate = index.createEvent(this, "viewTemplate", 7);
46
+ this.editTemplate = index.createEvent(this, "editTemplate", 7);
47
+ this.templateDeleted = index.createEvent(this, "templateDeleted", 7);
48
+ this.changeSort = index.createEvent(this, "changeSort", 7);
49
+ this.changeSharing = index.createEvent(this, "changeSharing", 7);
50
+ this.changeStarred = index.createEvent(this, "changeStarred", 7);
51
+ this.changeName = index.createEvent(this, "changeName", 7);
532
52
  this.handleOptionSelected = (option, template) => {
533
53
  var _a, _b;
534
54
  if (option === 'send') {
@@ -644,15 +164,25 @@ const VerdocsTemplatesList = class {
644
164
  });
645
165
  }
646
166
  render() {
647
- return (index$1.h(index$1.Host, null, index$1.h("div", { class: "header" }, index$1.h("div", { class: "filter" }, index$1.h("verdocs-text-input", { id: "verdocs-filter-name", value: this.name, autocomplete: "off", placeholder: "Filter by Name...", onFocusout: (e) => {
167
+ return (index.h(index.Host, null, index.h("div", { class: "header" }, index.h("div", { class: "filter" }, index.h("verdocs-text-input", { id: "verdocs-filter-name", value: this.name, autocomplete: "off", placeholder: "Filter by Name...", onFocusout: (e) => {
168
+ var _a;
648
169
  this.name = e.target.value;
649
- } })), index$1.h("verdocs-quick-filter", { label: "Sharing", value: this.sharing, options: SharingFilters, onOptionSelected: e => {
170
+ (_a = this.changeName) === null || _a === void 0 ? void 0 : _a.emit(this.name);
171
+ } })), index.h("verdocs-quick-filter", { label: "Sharing", value: this.sharing, options: SharingFilters, onOptionSelected: e => {
172
+ var _a;
650
173
  this.sharing = e.detail.value;
651
- } }), index$1.h("verdocs-quick-filter", { label: "Starred", value: this.starred, options: StarredFilters, onOptionSelected: e => {
174
+ (_a = this.changeSharing) === null || _a === void 0 ? void 0 : _a.emit(this.sharing);
175
+ } }), index.h("verdocs-quick-filter", { label: "Starred", value: this.starred, options: StarredFilters, onOptionSelected: e => {
176
+ var _a;
652
177
  this.starred = e.detail.value;
653
- } }), index$1.h("verdocs-quick-filter", { label: "Sort By", value: this.sort, options: SortOptions, onOptionSelected: e => {
178
+ (_a = this.changeStarred) === null || _a === void 0 ? void 0 : _a.emit(this.starred);
179
+ } }), index.h("verdocs-quick-filter", { label: "Sort By", value: this.sort, options: SortOptions, onOptionSelected: e => {
180
+ var _a;
654
181
  this.sort = e.detail.value;
655
- } }), this.loading && index$1.h("verdocs-spinner", { mode: "dark", size: 24 }), index$1.h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(template => {
182
+ (_a = this.changeSort) === null || _a === void 0 ? void 0 : _a.emit(this.sort);
183
+ } }), this.loading && index.h("verdocs-spinner", { mode: "dark", size: 24 }), index.h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(template => {
184
+ const dateToShow = this.sort === 'created_at' ? 'created_at' : this.sort === 'updated_at' ? 'updated_at' : 'last_used_at';
185
+ const date = template[dateToShow];
656
186
  const MENU_OPTIONS = [];
657
187
  if (this.allowedActions.includes('send')) {
658
188
  MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(template) });
@@ -679,14 +209,14 @@ const VerdocsTemplatesList = class {
679
209
  MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(template) });
680
210
  }
681
211
  }
682
- return (index$1.h("div", { class: "template", onClick: () => {
212
+ return (index.h("div", { class: "template", onClick: () => {
683
213
  var _a;
684
214
  (_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template });
685
- } }, index$1.h("div", { class: "inner" }, index$1.h("verdocs-template-star", { template: template, endpoint: this.endpoint }), index$1.h("div", { class: "spacer icon-spacer" }), index$1.h("span", { innerHTML: TemplateIcon }), index$1.h("div", { class: "name" }, template.name), index$1.h("div", { class: "spacer usage-spacer" }), index$1.h("div", { class: "usage" }, index$1.h("span", { innerHTML: EnvelopeIcon }), template.counter || '--'), index$1.h("div", { class: "spacer last-used-spacer" }), index$1.h("div", { class: "last-used" }, index$1.h("span", { innerHTML: CalendarIcon }), index$1.h("span", { style: { marginRight: '5px' } }, "Last Used:"), template.last_used_at ? formatDistance(new Date(template.last_used_at), new Date()) : 'Never'), index$1.h("div", { class: "spacer ownership-spacer" }), template.is_public && (index$1.h("div", { class: "ownership" }, index$1.h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (index$1.h("div", { class: "ownership" }, index$1.h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (index$1.h("div", { class: "ownership" }, index$1.h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), index$1.h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
686
- }), !this.templates.length ? (index$1.h("div", { class: "empty-text" }, "No matching templates found. Please adjust your filters and try again.")) : (index$1.h("div", { style: { marginTop: '10px' } }, index$1.h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: 10, itemCount: this.count, onSelectPage: e => {
215
+ } }, index.h("div", { class: "inner" }, index.h("verdocs-template-star", { template: template, endpoint: this.endpoint }), index.h("div", { class: "spacer icon-spacer" }), index.h("div", { class: "name" }, template.name), index.h("div", { class: "spacer usage-spacer" }), index.h("div", { class: "usage" }, index.h("span", { innerHTML: EnvelopeIcon, title: "Usage Counter" }), template.counter || '--'), index.h("div", { class: "spacer last-used-spacer" }), index.h("div", { class: "last-used" }, dateToShow === 'created_at' && index.h("span", { innerHTML: CreatedIcon, title: "Created" }), dateToShow === 'updated_at' && index.h("span", { innerHTML: UpdatedIcon, title: "Last Updated" }), dateToShow === 'last_used_at' && index.h("span", { innerHTML: LastUsedIcon, title: "Last Used" }), date ? index$1.format(new Date(date), 'P') : 'Never'), index.h("div", { class: "spacer ownership-spacer" }), template.is_public && (index.h("div", { class: "ownership" }, index.h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (index.h("div", { class: "ownership" }, index.h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (index.h("div", { class: "ownership" }, index.h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), index.h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
216
+ }), !this.templates.length ? (index.h("div", { class: "empty-text" }, "No matching templates found. Please adjust your filters and try again.")) : (index.h("div", { style: { marginTop: '10px' } }, index.h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: 10, itemCount: this.count, onSelectPage: e => {
687
217
  this.selectedPage = e.detail.selectedPage;
688
218
  return this.queryTemplates();
689
- } }))), this.confirmDelete && (index$1.h("verdocs-ok-dialog", { heading: "Delete this Template?", message: "This operation cannot be undone.", onNext: () => this.deleteTemplate(this.confirmDelete), onExit: () => (this.confirmDelete = null), showCancel: true }))));
219
+ } }))), this.confirmDelete && (index.h("verdocs-ok-dialog", { heading: "Delete this Template?", message: "This operation cannot be undone.", onNext: () => this.deleteTemplate(this.confirmDelete), onExit: () => (this.confirmDelete = null), showCancel: true }))));
690
220
  }
691
221
  static get watchers() { return {
692
222
  "sharing": ["handleSharingUpdated"],
@@ -8,13 +8,12 @@ const Permissions = require('./Permissions-1be8039d.js');
8
8
  require('./Types-f89f9116.js');
9
9
  const VerdocsEndpoint = require('./VerdocsEndpoint-2ff96f90.js');
10
10
  const Primitives = require('./Primitives-be5088cb.js');
11
- const utils = require('./utils-ce815868.js');
11
+ const utils = require('./utils-ae9b4e3e.js');
12
12
  const errors = require('./errors-0396da3d.js');
13
13
  require('./_commonjsHelpers-0c557e26.js');
14
14
  require('./Files-4bdc0c0f.js');
15
15
  require('./Types-ee5afdf8.js');
16
- require('./index-961181ce.js');
17
- require('./index-db620f37.js');
16
+ require('./index-7c19ba1d.js');
18
17
 
19
18
  const verdocsViewCss = "verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}";
20
19
 
@@ -9,6 +9,7 @@ verdocs-pagination .page-button {
9
9
  display: flex;
10
10
  flex: 0 0 38px;
11
11
  cursor: pointer;
12
+ font-size: 16px;
12
13
  font-weight: 600;
13
14
  border-radius: 4px;
14
15
  align-items: center;