@getflip/swirl-components 0.34.2 → 0.34.3

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.
@@ -2,6 +2,169 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { c as classnames } from './index2.js';
3
3
  import { b as balancetext } from './balancetext.js';
4
4
 
5
+ /**
6
+ shave - Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
7
+ @version v5.0.2
8
+ @link https://github.com/yowainwright/shave#readme
9
+ @author Jeff Wainwright <yowainwright@gmail.com> (jeffry.in)
10
+ @license MIT
11
+ **/
12
+ /******************************************************************************
13
+ Copyright (c) Microsoft Corporation.
14
+
15
+ Permission to use, copy, modify, and/or distribute this software for any
16
+ purpose with or without fee is hereby granted.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
+ PERFORMANCE OF THIS SOFTWARE.
25
+ ***************************************************************************** */
26
+
27
+ function __read(o, n) {
28
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
29
+ if (!m) return o;
30
+ var i = m.call(o), r, ar = [], e;
31
+ try {
32
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
33
+ }
34
+ catch (error) { e = { error: error }; }
35
+ finally {
36
+ try {
37
+ if (r && !r.done && (m = i["return"])) m.call(i);
38
+ }
39
+ finally { if (e) throw e.error; }
40
+ }
41
+ return ar;
42
+ }
43
+
44
+ function __spreadArray(to, from, pack) {
45
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
46
+ if (ar || !(i in from)) {
47
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
48
+ ar[i] = from[i];
49
+ }
50
+ }
51
+ return to.concat(ar || Array.prototype.slice.call(from));
52
+ }
53
+
54
+ function generateArrayOfNodes(target) {
55
+ if (typeof target === 'string') {
56
+ return __spreadArray([], __read(document.querySelectorAll(target)), false);
57
+ }
58
+ else if ('length' in target) {
59
+ return __spreadArray([], __read(target), false);
60
+ }
61
+ else {
62
+ return [target];
63
+ }
64
+ }
65
+ function shave(target, maxHeight, opts) {
66
+ if (opts === void 0) { opts = {}; }
67
+ if (typeof maxHeight === 'undefined' || isNaN(maxHeight)) {
68
+ throw Error('maxHeight is required');
69
+ }
70
+ var els = generateArrayOfNodes(target);
71
+ if (!els.length) {
72
+ return;
73
+ }
74
+ var _a = opts.character, character = _a === void 0 ? '…' : _a, _b = opts.classname, classname = _b === void 0 ? 'js-shave' : _b, _c = opts.spaces, initialSpaces = _c === void 0 ? true : _c, _d = opts.charclassname, charclassname = _d === void 0 ? 'js-shave-char' : _d, _e = opts.link, link = _e === void 0 ? {} : _e;
75
+ /**
76
+ * @notes
77
+ * the initialSpaces + spaces variable definition below fixes
78
+ * a previous bug where spaces being a boolean type wasn't clear
79
+ * meaning people were using (a string, in example—which is truthy)
80
+ * hence, doing it this way is a non-breaking change
81
+ */
82
+ var spaces = typeof initialSpaces === 'boolean' ? initialSpaces : true;
83
+ /**
84
+ * @notes
85
+ * - create a span or anchor element and assign properties to it
86
+ * - JSON.stringify is used to support IE8+
87
+ * - if link.href is not provided, link object properties are ignored
88
+ */
89
+ var isLink = link && JSON.stringify(link) !== '{}' && link.href;
90
+ var shavedTextElType = isLink ? 'a' : 'span';
91
+ for (var i = 0; i < els.length; i += 1) {
92
+ var el = els[i];
93
+ var styles = el.style;
94
+ var span = el.querySelector('.' + classname);
95
+ var textProp = el.textContent === undefined ? 'innerText' : 'textContent';
96
+ // If element text has already been shaved
97
+ if (span) {
98
+ // Remove the ellipsis to recapture the original text
99
+ el.removeChild(el.querySelector('.' + charclassname));
100
+ el[textProp] = el[textProp]; // eslint-disable-line
101
+ // nuke span, recombine text
102
+ }
103
+ var fullText = el[textProp];
104
+ var words = spaces ? fullText.split(' ') : fullText;
105
+ // If 0 or 1 words, we're done
106
+ if (words.length < 2) {
107
+ continue;
108
+ }
109
+ // Temporarily remove any CSS height for text height calculation
110
+ var heightStyle = styles.height;
111
+ styles.height = 'auto';
112
+ var maxHeightStyle = styles.maxHeight;
113
+ styles.maxHeight = 'none';
114
+ // If already short enough, we're done
115
+ if (el.offsetHeight <= maxHeight) {
116
+ styles.height = heightStyle;
117
+ styles.maxHeight = maxHeightStyle;
118
+ continue;
119
+ }
120
+ var textContent = isLink && link.textContent ? link.textContent : character;
121
+ var shavedTextEl = document.createElement(shavedTextElType);
122
+ var shavedTextElAttributes = {
123
+ className: charclassname,
124
+ textContent: textContent,
125
+ };
126
+ for (var property in shavedTextElAttributes) {
127
+ shavedTextEl[property] = shavedTextElAttributes[property];
128
+ shavedTextEl.textContent = character;
129
+ }
130
+ if (isLink) {
131
+ for (var linkProperty in link) {
132
+ shavedTextEl[linkProperty] = link[linkProperty];
133
+ }
134
+ }
135
+ // Binary search for number of words which can fit in allotted height
136
+ var max = words.length - 1;
137
+ var min = 0;
138
+ var pivot = void 0;
139
+ while (min < max) {
140
+ pivot = (min + max + 1) >> 1; // eslint-disable-line no-bitwise
141
+ el[textProp] = spaces
142
+ ? words.slice(0, pivot).join(' ')
143
+ : words.slice(0, pivot);
144
+ el.insertAdjacentElement('beforeend', shavedTextEl);
145
+ if (el.offsetHeight > maxHeight) {
146
+ max = pivot - 1;
147
+ }
148
+ else {
149
+ min = pivot;
150
+ }
151
+ }
152
+ el[textProp] = spaces ? words.slice(0, max).join(' ') : words.slice(0, max);
153
+ el.insertAdjacentElement('beforeend', shavedTextEl);
154
+ var diff = spaces
155
+ ? " ".concat(words.slice(max).join(' '))
156
+ : words.slice(max);
157
+ var shavedText = document.createTextNode(diff);
158
+ var elWithShavedText = document.createElement('span');
159
+ elWithShavedText.classList.add(classname);
160
+ elWithShavedText.style.display = 'none';
161
+ elWithShavedText.appendChild(shavedText);
162
+ el.insertAdjacentElement('beforeend', elWithShavedText);
163
+ styles.height = heightStyle;
164
+ styles.maxHeight = maxHeightStyle;
165
+ }
166
+ }
167
+
5
168
  const swirlTextCss = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-swirl-text{box-sizing:border-box}.text.sc-swirl-text{overflow:hidden;margin:0;padding:0}.text--align-start.sc-swirl-text{text-align:start}.text--align-center.sc-swirl-text{text-align:center}.text--align-end.sc-swirl-text{text-align:end}.text--color-default.sc-swirl-text{color:var(--s-text-default)}.text--color-subdued.sc-swirl-text{color:var(--s-text-subdued)}.text--color-critical.sc-swirl-text{color:var(--s-text-critical)}.text--color-success.sc-swirl-text{color:var(--s-text-success)}.text--color-warning.sc-swirl-text{color:var(--s-text-warning)}.text--size-sm.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.text--size-base.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-base.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-lg);line-height:var(--s-line-height-lg)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text--weight-normal.sc-swirl-text{font-weight:var(--s-font-weight-normal)}.text--weight-medium.sc-swirl-text{font-weight:var(--s-font-weight-medium)}.text--weight-semibold.sc-swirl-text{font-weight:var(--s-font-weight-semibold)}.text--weight-bold.sc-swirl-text{font-weight:var(--s-font-weight-bold)}.text--font-style-normal.sc-swirl-text{font-style:normal}.text--font-style-italic.sc-swirl-text{font-style:italic}.text--truncate.sc-swirl-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";
6
169
 
7
170
  const SwirlText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
@@ -20,9 +183,23 @@ const SwirlText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
20
183
  }
21
184
  componentDidRender() {
22
185
  this.rebalance();
186
+ this.handleTruncation();
23
187
  }
24
188
  onWindowResize() {
25
189
  this.rebalance();
190
+ this.handleTruncation();
191
+ }
192
+ handleTruncation() {
193
+ if (!this.truncate || !Boolean(this.lines) || this.lines === 1) {
194
+ return;
195
+ }
196
+ const lineHeight = +window
197
+ .getComputedStyle(this.textEl, null)
198
+ .getPropertyValue("line-height")
199
+ .replace("px", "");
200
+ if (lineHeight > 0) {
201
+ shave(this.textEl, lineHeight * this.lines);
202
+ }
26
203
  }
27
204
  rebalance() {
28
205
  if (!this.balance || !Boolean(this.textEl)) {
@@ -32,16 +209,10 @@ const SwirlText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
32
209
  }
33
210
  render() {
34
211
  const Tag = this.as;
35
- const styles = Boolean(this.lines)
36
- ? {
37
- display: "-webkit-box",
38
- "-webkit-line-clamp": String(this.lines),
39
- "-webkit-box-orient": "vertical",
40
- whiteSpace: "normal",
41
- }
42
- : undefined;
43
- const className = classnames("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--weight-${this.weight}`, { "text--truncate": this.truncate });
44
- return (h(Host, null, h(Tag, { class: className, ref: (el) => (this.textEl = el), style: styles }, h("slot", null))));
212
+ const className = classnames("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--weight-${this.weight}`, {
213
+ "text--truncate": this.truncate && (!Boolean(this.lines) || this.lines === 1),
214
+ });
215
+ return (h(Host, null, h(Tag, { class: className, ref: (el) => (this.textEl = el) }, h("slot", null))));
45
216
  }
46
217
  get el() { return this; }
47
218
  static get style() { return swirlTextCss; }
@@ -2,6 +2,169 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-0f
2
2
  import { c as classnames } from './index-d280dafb.js';
3
3
  import { b as balancetext } from './balancetext-fa49c64f.js';
4
4
 
5
+ /**
6
+ shave - Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
7
+ @version v5.0.2
8
+ @link https://github.com/yowainwright/shave#readme
9
+ @author Jeff Wainwright <yowainwright@gmail.com> (jeffry.in)
10
+ @license MIT
11
+ **/
12
+ /******************************************************************************
13
+ Copyright (c) Microsoft Corporation.
14
+
15
+ Permission to use, copy, modify, and/or distribute this software for any
16
+ purpose with or without fee is hereby granted.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
+ PERFORMANCE OF THIS SOFTWARE.
25
+ ***************************************************************************** */
26
+
27
+ function __read(o, n) {
28
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
29
+ if (!m) return o;
30
+ var i = m.call(o), r, ar = [], e;
31
+ try {
32
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
33
+ }
34
+ catch (error) { e = { error: error }; }
35
+ finally {
36
+ try {
37
+ if (r && !r.done && (m = i["return"])) m.call(i);
38
+ }
39
+ finally { if (e) throw e.error; }
40
+ }
41
+ return ar;
42
+ }
43
+
44
+ function __spreadArray(to, from, pack) {
45
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
46
+ if (ar || !(i in from)) {
47
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
48
+ ar[i] = from[i];
49
+ }
50
+ }
51
+ return to.concat(ar || Array.prototype.slice.call(from));
52
+ }
53
+
54
+ function generateArrayOfNodes(target) {
55
+ if (typeof target === 'string') {
56
+ return __spreadArray([], __read(document.querySelectorAll(target)), false);
57
+ }
58
+ else if ('length' in target) {
59
+ return __spreadArray([], __read(target), false);
60
+ }
61
+ else {
62
+ return [target];
63
+ }
64
+ }
65
+ function shave(target, maxHeight, opts) {
66
+ if (opts === void 0) { opts = {}; }
67
+ if (typeof maxHeight === 'undefined' || isNaN(maxHeight)) {
68
+ throw Error('maxHeight is required');
69
+ }
70
+ var els = generateArrayOfNodes(target);
71
+ if (!els.length) {
72
+ return;
73
+ }
74
+ var _a = opts.character, character = _a === void 0 ? '…' : _a, _b = opts.classname, classname = _b === void 0 ? 'js-shave' : _b, _c = opts.spaces, initialSpaces = _c === void 0 ? true : _c, _d = opts.charclassname, charclassname = _d === void 0 ? 'js-shave-char' : _d, _e = opts.link, link = _e === void 0 ? {} : _e;
75
+ /**
76
+ * @notes
77
+ * the initialSpaces + spaces variable definition below fixes
78
+ * a previous bug where spaces being a boolean type wasn't clear
79
+ * meaning people were using (a string, in example—which is truthy)
80
+ * hence, doing it this way is a non-breaking change
81
+ */
82
+ var spaces = typeof initialSpaces === 'boolean' ? initialSpaces : true;
83
+ /**
84
+ * @notes
85
+ * - create a span or anchor element and assign properties to it
86
+ * - JSON.stringify is used to support IE8+
87
+ * - if link.href is not provided, link object properties are ignored
88
+ */
89
+ var isLink = link && JSON.stringify(link) !== '{}' && link.href;
90
+ var shavedTextElType = isLink ? 'a' : 'span';
91
+ for (var i = 0; i < els.length; i += 1) {
92
+ var el = els[i];
93
+ var styles = el.style;
94
+ var span = el.querySelector('.' + classname);
95
+ var textProp = el.textContent === undefined ? 'innerText' : 'textContent';
96
+ // If element text has already been shaved
97
+ if (span) {
98
+ // Remove the ellipsis to recapture the original text
99
+ el.removeChild(el.querySelector('.' + charclassname));
100
+ el[textProp] = el[textProp]; // eslint-disable-line
101
+ // nuke span, recombine text
102
+ }
103
+ var fullText = el[textProp];
104
+ var words = spaces ? fullText.split(' ') : fullText;
105
+ // If 0 or 1 words, we're done
106
+ if (words.length < 2) {
107
+ continue;
108
+ }
109
+ // Temporarily remove any CSS height for text height calculation
110
+ var heightStyle = styles.height;
111
+ styles.height = 'auto';
112
+ var maxHeightStyle = styles.maxHeight;
113
+ styles.maxHeight = 'none';
114
+ // If already short enough, we're done
115
+ if (el.offsetHeight <= maxHeight) {
116
+ styles.height = heightStyle;
117
+ styles.maxHeight = maxHeightStyle;
118
+ continue;
119
+ }
120
+ var textContent = isLink && link.textContent ? link.textContent : character;
121
+ var shavedTextEl = document.createElement(shavedTextElType);
122
+ var shavedTextElAttributes = {
123
+ className: charclassname,
124
+ textContent: textContent,
125
+ };
126
+ for (var property in shavedTextElAttributes) {
127
+ shavedTextEl[property] = shavedTextElAttributes[property];
128
+ shavedTextEl.textContent = character;
129
+ }
130
+ if (isLink) {
131
+ for (var linkProperty in link) {
132
+ shavedTextEl[linkProperty] = link[linkProperty];
133
+ }
134
+ }
135
+ // Binary search for number of words which can fit in allotted height
136
+ var max = words.length - 1;
137
+ var min = 0;
138
+ var pivot = void 0;
139
+ while (min < max) {
140
+ pivot = (min + max + 1) >> 1; // eslint-disable-line no-bitwise
141
+ el[textProp] = spaces
142
+ ? words.slice(0, pivot).join(' ')
143
+ : words.slice(0, pivot);
144
+ el.insertAdjacentElement('beforeend', shavedTextEl);
145
+ if (el.offsetHeight > maxHeight) {
146
+ max = pivot - 1;
147
+ }
148
+ else {
149
+ min = pivot;
150
+ }
151
+ }
152
+ el[textProp] = spaces ? words.slice(0, max).join(' ') : words.slice(0, max);
153
+ el.insertAdjacentElement('beforeend', shavedTextEl);
154
+ var diff = spaces
155
+ ? " ".concat(words.slice(max).join(' '))
156
+ : words.slice(max);
157
+ var shavedText = document.createTextNode(diff);
158
+ var elWithShavedText = document.createElement('span');
159
+ elWithShavedText.classList.add(classname);
160
+ elWithShavedText.style.display = 'none';
161
+ elWithShavedText.appendChild(shavedText);
162
+ el.insertAdjacentElement('beforeend', elWithShavedText);
163
+ styles.height = heightStyle;
164
+ styles.maxHeight = maxHeightStyle;
165
+ }
166
+ }
167
+
5
168
  const swirlTextCss = ".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-swirl-text{box-sizing:border-box}.text.sc-swirl-text{overflow:hidden;margin:0;padding:0}.text--align-start.sc-swirl-text{text-align:start}.text--align-center.sc-swirl-text{text-align:center}.text--align-end.sc-swirl-text{text-align:end}.text--color-default.sc-swirl-text{color:var(--s-text-default)}.text--color-subdued.sc-swirl-text{color:var(--s-text-subdued)}.text--color-critical.sc-swirl-text{color:var(--s-text-critical)}.text--color-success.sc-swirl-text{color:var(--s-text-success)}.text--color-warning.sc-swirl-text{color:var(--s-text-warning)}.text--size-sm.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.text--size-base.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-base.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-lg);line-height:var(--s-line-height-lg)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text--weight-normal.sc-swirl-text{font-weight:var(--s-font-weight-normal)}.text--weight-medium.sc-swirl-text{font-weight:var(--s-font-weight-medium)}.text--weight-semibold.sc-swirl-text{font-weight:var(--s-font-weight-semibold)}.text--weight-bold.sc-swirl-text{font-weight:var(--s-font-weight-bold)}.text--font-style-normal.sc-swirl-text{font-style:normal}.text--font-style-italic.sc-swirl-text{font-style:italic}.text--truncate.sc-swirl-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";
6
169
 
7
170
  const SwirlText = class {
@@ -19,9 +182,23 @@ const SwirlText = class {
19
182
  }
20
183
  componentDidRender() {
21
184
  this.rebalance();
185
+ this.handleTruncation();
22
186
  }
23
187
  onWindowResize() {
24
188
  this.rebalance();
189
+ this.handleTruncation();
190
+ }
191
+ handleTruncation() {
192
+ if (!this.truncate || !Boolean(this.lines) || this.lines === 1) {
193
+ return;
194
+ }
195
+ const lineHeight = +window
196
+ .getComputedStyle(this.textEl, null)
197
+ .getPropertyValue("line-height")
198
+ .replace("px", "");
199
+ if (lineHeight > 0) {
200
+ shave(this.textEl, lineHeight * this.lines);
201
+ }
25
202
  }
26
203
  rebalance() {
27
204
  if (!this.balance || !Boolean(this.textEl)) {
@@ -31,16 +208,10 @@ const SwirlText = class {
31
208
  }
32
209
  render() {
33
210
  const Tag = this.as;
34
- const styles = Boolean(this.lines)
35
- ? {
36
- display: "-webkit-box",
37
- "-webkit-line-clamp": String(this.lines),
38
- "-webkit-box-orient": "vertical",
39
- whiteSpace: "normal",
40
- }
41
- : undefined;
42
- const className = classnames("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--weight-${this.weight}`, { "text--truncate": this.truncate });
43
- return (h(Host, null, h(Tag, { class: className, ref: (el) => (this.textEl = el), style: styles }, h("slot", null))));
211
+ const className = classnames("text", `text--align-${this.align}`, `text--color-${this.color}`, `text--font-style-${this.fontStyle}`, `text--size-${this.size}`, `text--weight-${this.weight}`, {
212
+ "text--truncate": this.truncate && (!Boolean(this.lines) || this.lines === 1),
213
+ });
214
+ return (h(Host, null, h(Tag, { class: className, ref: (el) => (this.textEl = el) }, h("slot", null))));
44
215
  }
45
216
  get el() { return getElement(this); }
46
217
  };
@@ -0,0 +1,8 @@
1
+ import{r as t,h as e,H as i,g as s}from"./p-05c15d47.js";import{c as r}from"./p-b7898321.js";import{b as o}from"./p-f83a5757.js";
2
+ /**
3
+ shave - Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
4
+ @version v5.0.2
5
+ @link https://github.com/yowainwright/shave#readme
6
+ @author Jeff Wainwright <yowainwright@gmail.com> (jeffry.in)
7
+ @license MIT
8
+ **/function n(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var s,r,o=i.call(t),n=[];try{for(;(void 0===e||e-- >0)&&!(s=o.next()).done;)n.push(s.value)}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return n}function a(t,e,i){if(i||2===arguments.length)for(var s,r=0,o=e.length;r<o;r++)!s&&r in e||(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}const l=class{constructor(e){t(this,e),this.align="start",this.as="p",this.balance=void 0,this.color="default",this.fontStyle="normal",this.lines=void 0,this.size="base",this.truncate=void 0,this.weight="normal"}componentDidRender(){this.rebalance(),this.handleTruncation()}onWindowResize(){this.rebalance(),this.handleTruncation()}handleTruncation(){if(!this.truncate||!Boolean(this.lines)||1===this.lines)return;const t=+window.getComputedStyle(this.textEl,null).getPropertyValue("line-height").replace("px","");t>0&&function(t,e,i){if(void 0===i&&(i={}),void 0===e||isNaN(e))throw Error("maxHeight is required");var s=function(t){return"string"==typeof t?a([],n(document.querySelectorAll(t)),!1):"length"in t?a([],n(t),!1):[t]}(t);if(s.length)for(var r=i.character,o=void 0===r?"…":r,l=i.classname,h=void 0===l?"js-shave":l,x=i.spaces,c=void 0===x||x,d=i.charclassname,f=void 0===d?"js-shave-char":d,w=i.link,v=void 0===w?{}:w,g="boolean"!=typeof c||c,m=v&&"{}"!==JSON.stringify(v)&&v.href,u=m?"a":"span",b=0;b<s.length;b+=1){var p=s[b],z=p.style,y=p.querySelector("."+h),j=void 0===p.textContent?"innerText":"textContent";y&&(p.removeChild(p.querySelector("."+f)),p[j]=p[j]);var $=p[j],N=g?$.split(" "):$;if(!(N.length<2)){var B=z.height;z.height="auto";var S=z.maxHeight;if(z.maxHeight="none",p.offsetHeight<=e)z.height=B,z.maxHeight=S;else{var A=m&&v.textContent?v.textContent:o,C=document.createElement(u),H={className:f,textContent:A};for(var R in H)C[R]=H[R],C.textContent=o;if(m)for(var T in v)C[T]=v[T];for(var k=N.length-1,q=0,D=void 0;q<k;)D=q+k+1>>1,p[j]=g?N.slice(0,D).join(" "):N.slice(0,D),p.insertAdjacentElement("beforeend",C),p.offsetHeight>e?k=D-1:q=D;p[j]=g?N.slice(0,k).join(" "):N.slice(0,k),p.insertAdjacentElement("beforeend",C);var E=g?" ".concat(N.slice(k).join(" ")):N.slice(k),J=document.createTextNode(E),O=document.createElement("span");O.classList.add(h),O.style.display="none",O.appendChild(J),p.insertAdjacentElement("beforeend",O),z.height=B,z.maxHeight=S}}}}(this.textEl,t*this.lines)}rebalance(){this.balance&&Boolean(this.textEl)&&o(this.textEl)}render(){const t=this.as,s=r("text",`text--align-${this.align}`,`text--color-${this.color}`,`text--font-style-${this.fontStyle}`,`text--size-${this.size}`,`text--weight-${this.weight}`,{"text--truncate":this.truncate&&(!Boolean(this.lines)||1===this.lines)});return e(i,null,e(t,{class:s,ref:t=>this.textEl=t},e("slot",null)))}get el(){return s(this)}};l.style=".sc-swirl-text-h{display:block;max-width:100%}.sc-swirl-text-h *.sc-swirl-text{box-sizing:border-box}.text.sc-swirl-text{overflow:hidden;margin:0;padding:0}.text--align-start.sc-swirl-text{text-align:start}.text--align-center.sc-swirl-text{text-align:center}.text--align-end.sc-swirl-text{text-align:end}.text--color-default.sc-swirl-text{color:var(--s-text-default)}.text--color-subdued.sc-swirl-text{color:var(--s-text-subdued)}.text--color-critical.sc-swirl-text{color:var(--s-text-critical)}.text--color-success.sc-swirl-text{color:var(--s-text-success)}.text--color-warning.sc-swirl-text{color:var(--s-text-warning)}.text--size-sm.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}.text--size-base.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-base.sc-swirl-text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-lg);line-height:var(--s-line-height-lg)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.text--size-lg.sc-swirl-text{font-size:var(--s-font-size-base);line-height:var(--s-line-height-base)}}.text--weight-normal.sc-swirl-text{font-weight:var(--s-font-weight-normal)}.text--weight-medium.sc-swirl-text{font-weight:var(--s-font-weight-medium)}.text--weight-semibold.sc-swirl-text{font-weight:var(--s-font-weight-semibold)}.text--weight-bold.sc-swirl-text{font-weight:var(--s-font-weight-bold)}.text--font-style-normal.sc-swirl-text{font-style:normal}.text--font-style-italic.sc-swirl-text{font-style:italic}.text--truncate.sc-swirl-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";export{l as swirl_text}
@@ -1 +1 @@
1
- import{p as e,b as i}from"./p-05c15d47.js";export{s as setNonce}from"./p-05c15d47.js";(()=>{const i=import.meta.url,l={};return""!==i&&(l.resourcesUrl=new URL(".",i).href),e(l)})().then((e=>i(JSON.parse('[["p-fd8dd92d",[[1,"file-manager",{"selectedDirectory":[32],"selectedFile":[32]}]]],["p-e9433d98",[[1,"swirl-pdf-reader",{"autoZoomLabel":[1,"auto-zoom-label"],"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"file":[1],"fileTypeLabel":[1,"file-type-label"],"label":[1],"menuLabel":[1,"menu-label"],"menuTriggerLabel":[1,"menu-trigger-label"],"printButtonLabel":[1,"print-button-label"],"sideBySideButtonLabel":[1,"side-by-side-button-label"],"thumbnailButtonLabel":[1,"thumbnail-button-label"],"thumbnailsButtonLabel":[1,"thumbnails-button-label"],"thumbnailsLabel":[1,"thumbnails-label"],"zoomInButtonLabel":[1,"zoom-in-button-label"],"zoomOutButtonLabel":[1,"zoom-out-button-label"],"zoomSelectLabel":[1,"zoom-select-label"],"active":[32],"closing":[32],"downloading":[32],"thumbnails":[32],"showThumbnails":[32],"viewMode":[32],"visiblePages":[32],"zoom":[32],"zoomSteps":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-b76df929",[[2,"swirl-autocomplete",{"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"generateSuggestions":[1040],"inline":[4],"invalid":[4],"maxLength":[2,"max-length"],"menuLabel":[1,"menu-label"],"mode":[1],"required":[4],"spellCheck":[4,"spell-check"],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1537],"active":[32],"loading":[32],"position":[32],"suggestions":[32]},[[8,"click","onWindowClick"]]]]],["p-638b7fd9",[[1,"swirl-lightbox",{"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"label":[1],"menuLabel":[1,"menu-label"],"menuTriggerLabel":[1,"menu-trigger-label"],"nextSlideButtonLabel":[1,"next-slide-button-label"],"previousSlideButtonLabel":[1,"previous-slide-button-label"],"activeSlideIndex":[32],"closing":[32],"slides":[32],"open":[64],"close":[64],"activateSlide":[64]}]]],["p-4f44b9e7",[[1,"swirl-resource-list-file-item",{"description":[1],"errorMessage":[1,"error-message"],"icon":[1],"label":[1],"loading":[4],"removable":[4],"removeButtonLabel":[1,"remove-button-label"]}]]],["p-0511c7be",[[6,"swirl-select",{"disabled":[4],"inline":[4],"invalid":[4],"label":[1],"multiSelect":[4,"multi-select"],"required":[4],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1040],"options":[32],"open":[32]},[[8,"focusin","onWindowFocusIn"]]]]],["p-5dd48e42",[[2,"swirl-date-input",{"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"datePickerLabel":[1,"date-picker-label"],"datePickerTriggerLabel":[1,"date-picker-trigger-label"],"disabled":[4],"format":[1],"inline":[4],"invalid":[4],"labels":[16],"locale":[1],"placeholder":[1],"required":[4],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1537],"iconSize":[32]}]]],["p-66782dbd",[[1,"swirl-modal",{"closeButtonLabel":[1,"close-button-label"],"hideCloseButton":[4,"hide-close-button"],"hideLabel":[4,"hide-label"],"label":[1],"maxWidth":[1,"max-width"],"padded":[4],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"hasCustomHeader":[32],"scrollable":[32],"scrolled":[32],"scrolledDown":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-da4958ec",[[1,"swirl-console-layout",{"appName":[1,"app-name"],"backButonLabel":[1,"back-buton-label"],"heading":[1],"helpButonLabel":[1,"help-buton-label"],"hideNavigationButtonLabel":[1,"hide-navigation-button-label"],"logoText":[1,"logo-text"],"showNavigationButtonLabel":[1,"show-navigation-button-label"],"navigationLabel":[1,"navigation-label"],"showBackButton":[4,"show-back-button"],"showHelpButton":[4,"show-help-button"],"subheading":[1],"sidebarActive":[32],"toggleSidebar":[64],"showSidebar":[64],"hideSidebar":[64]},[[9,"resize","onWindowResize"]]]]],["p-c17b8536",[[1,"swirl-dialog",{"hideLabel":[4,"hide-label"],"intent":[1],"label":[1],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"open":[64],"close":[64]}]]],["p-968773d7",[[1,"swirl-pagination",{"accessibleNextButtonLabel":[1,"accessible-next-button-label"],"accessiblePrevButtonLabel":[1,"accessible-prev-button-label"],"nextButtonLabel":[1,"next-button-label"],"pageLabel":[1,"page-label"],"prevButtonLabel":[1,"prev-button-label"],"label":[1],"page":[2],"pages":[2],"pageSelectLabel":[1,"page-select-label"],"variant":[1]}]]],["p-cddec2c8",[[1,"swirl-toast-provider",{"globalDuration":[2,"global-duration"],"toasts":[32],"clearAll":[64],"dismiss":[64],"toast":[64]}]]],["p-d5a55beb",[[2,"swirl-checkbox",{"checked":[1032],"description":[1],"disabled":[4],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"swirlAriaLabel":[1,"swirl-aria-label"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-c0cf7a5e",[[2,"swirl-file-uploader",{"accept":[1],"ctaLabel":[1,"cta-label"],"description":[1],"disabled":[4],"dragDropLabel":[1,"drag-drop-label"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"multiple":[4],"showDropzone":[4,"show-dropzone"],"uploadButtonLabel":[1,"upload-button-label"],"reset":[64]}]]],["p-0cb23149",[[6,"swirl-form-control",{"description":[1],"disabled":[4],"errorMessage":[1,"error-message"],"inline":[4],"invalid":[4],"label":[1],"hasFocus":[32],"inputValue":[32]},[[8,"click","onWindowClick"]]]]],["p-774483bc",[[2,"swirl-search",{"autoFocus":[4,"auto-focus"],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"inputName":[1,"input-name"],"inputId":[1,"input-id"],"label":[1],"placeholder":[1],"value":[1025]},[[8,"keydown","onKeyDown"]]]]],["p-3c7eb982",[[1,"swirl-table",{"caption":[1],"emptyStateLabel":[1,"empty-state-label"],"label":[1],"empty":[32],"scrollable":[32],"scrolled":[32],"scrolledToEnd":[32]},[[9,"resize","onWindowResize"]]]]],["p-50430bab",[[1,"swirl-table-column",{"sort":[1],"sortable":[4],"maxWidth":[1,"max-width"],"minWidth":[1,"min-width"],"sticky":[4],"width":[1]}]]],["p-490aca41",[[1,"swirl-app-bar",{"backButtonLabel":[1,"back-button-label"],"closeButtonLabel":[1,"close-button-label"],"stepUpButtonLabel":[1,"step-up-button-label"],"stepDownButtonLabel":[1,"step-down-button-label"],"showBackButton":[4,"show-back-button"],"showCloseButton":[4,"show-close-button"],"showStepperControls":[4,"show-stepper-controls"],"hasCta":[32]}]]],["p-8f839867",[[1,"swirl-avatar",{"badge":[1],"badgePosition":[1,"badge-position"],"color":[1],"icon":[1],"initials":[1],"interactive":[4],"label":[1],"showLabel":[4,"show-label"],"size":[1],"src":[1],"variant":[1],"imageAvailable":[32]}]]],["p-5b691374",[[1,"swirl-banner",{"actionLabel":[1,"action-label"],"content":[1],"dismissable":[4],"dismissLabel":[1,"dismiss-label"],"importance":[1],"intent":[1],"showIcon":[4,"show-icon"],"size":[1]}]]],["p-61a52a24",[[1,"swirl-carousel",{"label":[1],"nextSlideButtonLabel":[1,"next-slide-button-label"],"previousSlideButtonLabel":[1,"previous-slide-button-label"],"loopAround":[4,"loop-around"],"isAtEnd":[32],"isAtStart":[32],"isScrollable":[32],"scrollToSlide":[64]},[[9,"resize","onWindowResize"]]]]],["p-8c8a717e",[[2,"swirl-radio",{"checked":[1032],"description":[1],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-dc60aa35",[[1,"swirl-shell-layout",{"hideSidebar":[4,"hide-sidebar"],"mainNavigationLabel":[1,"main-navigation-label"],"sidebarToggleLabel":[1,"sidebar-toggle-label"],"collapsedSidebar":[32],"collapsing":[32],"sidebarHovered":[32],"collapseSidebar":[64],"extendSidebar":[64]}]]],["p-8e64456c",[[1,"swirl-shell-navigation-item",{"active":[4],"badgeLabel":[1,"badge-label"],"label":[1]}]]],["p-394568d3",[[2,"swirl-switch",{"checked":[1028],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"size":[1],"value":[1]},[[9,"pointerup","onWindowPointerUp"]]]]],["p-01aff357",[[1,"swirl-tag",{"intent":[1],"label":[1],"removable":[4],"removalButtonLabel":[1,"removal-button-label"]}]]],["p-c783221d",[[1,"swirl-video-thumbnail",{"durationLabel":[1,"duration-label"],"duration":[1],"label":[1],"src":[1]}]]],["p-ddd49304",[[1,"swirl-action-list-section",{"label":[1]}]]],["p-e7489a17",[[1,"swirl-app-icon",{"icon":[1],"src":[1],"hideBorder":[4,"hide-border"],"imageAvailable":[32]}]]],["p-a8acfcc3",[[1,"swirl-avatar-group",{"badge":[1]}]]],["p-80610550",[[1,"swirl-card",{"as":[1],"borderRadius":[1,"border-radius"],"elevated":[4],"height":[1],"highlighted":[4],"href":[1],"imageAspectRatio":[1,"image-aspect-ratio"],"isBorderless":[4,"is-borderless"],"interactive":[4],"justifyContent":[1,"justify-content"],"linkTarget":[1,"link-target"],"swirlAriaLabel":[1,"swirl-aria-label"]}]]],["p-5540e1a5",[[1,"swirl-carousel-slide",{"label":[1],"minHeight":[1,"min-height"],"width":[1]}]]],["p-3a763e22",[[1,"swirl-chip",{"icon":[1],"intent":[1],"interactive":[4],"label":[1],"variant":[1]}]]],["p-83392d53",[[1,"swirl-columns",{"columns":[1],"spacing":[1]}]]],["p-93173ef4",[[1,"swirl-description-list"]]],["p-1aaa2dbd",[[1,"swirl-description-list-item",{"orientation":[1],"term":[1]}]]],["p-24a2fc70",[[6,"swirl-form-group",{"orientation":[1]}]]],["p-b20dc745",[[1,"swirl-icon-add-photo",{"size":[2]}]]],["p-6f5a740c",[[1,"swirl-icon-admin-panel-settings",{"size":[2]}]]],["p-4002c5ae",[[1,"swirl-icon-arrow-back",{"size":[2]}]]],["p-1760180b",[[1,"swirl-icon-arrow-forward",{"size":[2]}]]],["p-7c2b4953",[[1,"swirl-icon-arrow-right-small",{"size":[2]}]]],["p-59a5aafb",[[1,"swirl-icon-attachment",{"size":[2]}]]],["p-904b5a82",[[1,"swirl-icon-block",{"size":[2]}]]],["p-51e63ec1",[[1,"swirl-icon-bookmark",{"size":[2]}]]],["p-d9724ad8",[[1,"swirl-icon-chat-bubble",{"size":[2]}]]],["p-8444953b",[[1,"swirl-icon-chats-filled",{"size":[2]}]]],["p-1901ff35",[[1,"swirl-icon-chats-outlined",{"size":[2]}]]],["p-ff74e4c3",[[1,"swirl-icon-check",{"size":[2]}]]],["p-6d136f16",[[1,"swirl-icon-check-circle",{"size":[2]}]]],["p-cf4767a5",[[1,"swirl-icon-chevron-left",{"size":[2]}]]],["p-fe5a1737",[[1,"swirl-icon-chevron-right",{"size":[2]}]]],["p-ae6f7f6d",[[1,"swirl-icon-close-small",{"size":[2]}]]],["p-cd83c309",[[1,"swirl-icon-column",{"size":[2]}]]],["p-498e2b6e",[[1,"swirl-icon-comment",{"size":[2]}]]],["p-6ad5a67b",[[1,"swirl-icon-copy",{"size":[2]}]]],["p-82be9389",[[1,"swirl-icon-date-range",{"size":[2]}]]],["p-f9bbeefe",[[1,"swirl-icon-delete",{"size":[2]}]]],["p-93023904",[[1,"swirl-icon-description",{"size":[2]}]]],["p-77d3f063",[[1,"swirl-icon-double-arrow-left",{"size":[2]}]]],["p-d781dcfb",[[1,"swirl-icon-double-arrow-right",{"size":[2]}]]],["p-3a7170ec",[[1,"swirl-icon-download",{"size":[2]}]]],["p-7a832eb6",[[1,"swirl-icon-edit",{"size":[2]}]]],["p-4c3c4647",[[1,"swirl-icon-emoji-mood",{"size":[2]}]]],["p-3ef45c79",[[1,"swirl-icon-emoji-satisfied",{"size":[2]}]]],["p-ada20ae7",[[1,"swirl-icon-filter",{"size":[2]}]]],["p-91cc9591",[[1,"swirl-icon-folder",{"size":[2]}]]],["p-1c4fa7e9",[[1,"swirl-icon-group-assign",{"size":[2]}]]],["p-1782d1ea",[[1,"swirl-icon-groups",{"size":[2]}]]],["p-8decc967",[[1,"swirl-icon-groups-custom",{"size":[2]}]]],["p-e08e9e53",[[1,"swirl-icon-groups-filled",{"size":[2]}]]],["p-9648bfbf",[[1,"swirl-icon-groups-outlined",{"size":[2]}]]],["p-c3c29b93",[[1,"swirl-icon-help",{"size":[2]}]]],["p-fe33a054",[[1,"swirl-icon-image",{"size":[2]}]]],["p-b490d8f3",[[1,"swirl-icon-info",{"size":[2]}]]],["p-5282350f",[[1,"swirl-icon-inventory",{"size":[2]}]]],["p-6ef1f4ef",[[1,"swirl-icon-like",{"size":[2]}]]],["p-28fdee3b",[[1,"swirl-icon-link",{"size":[2]}]]],["p-f7f1c29f",[[1,"swirl-icon-lock",{"size":[2]}]]],["p-1091d3dc",[[1,"swirl-icon-logout",{"size":[2]}]]],["p-fff59050",[[1,"swirl-icon-mail",{"size":[2]}]]],["p-f8b08507",[[1,"swirl-icon-manage-accounts",{"size":[2]}]]],["p-7c2ca02f",[[1,"swirl-icon-mention",{"size":[2]}]]],["p-3a182222",[[1,"swirl-icon-menu",{"size":[2]}]]],["p-8b7e33aa",[[1,"swirl-icon-menu-filled",{"size":[2]}]]],["p-a4d24a90",[[1,"swirl-icon-menu-outlined",{"size":[2]}]]],["p-fa2ebe9e",[[1,"swirl-icon-message",{"size":[2]}]]],["p-453dc25e",[[1,"swirl-icon-more-horizontal",{"size":[2]}]]],["p-5d744993",[[1,"swirl-icon-news-filled",{"size":[2]}]]],["p-0336b920",[[1,"swirl-icon-news-outlined",{"size":[2]}]]],["p-2ea247c5",[[1,"swirl-icon-notifications",{"size":[2]}]]],["p-398854b7",[[1,"swirl-icon-notifications-active",{"size":[2]}]]],["p-9f341e18",[[1,"swirl-icon-notifications-off",{"size":[2]}]]],["p-92f1a11f",[[1,"swirl-icon-open-in-new",{"size":[2]}]]],["p-e793fedc",[[1,"swirl-icon-people-alt",{"size":[2]}]]],["p-fad5447d",[[1,"swirl-icon-person-off",{"size":[2]}]]],["p-387a3853",[[1,"swirl-icon-phone",{"size":[2]}]]],["p-2c4d446e",[[1,"swirl-icon-poll",{"size":[2]}]]],["p-85aa0c88",[[1,"swirl-icon-print",{"size":[2]}]]],["p-b626b11e",[[1,"swirl-icon-recieved",{"size":[2]}]]],["p-66643855",[[1,"swirl-icon-search-strong",{"size":[2]}]]],["p-4e5fd3bf",[[1,"swirl-icon-send",{"size":[2]}]]],["p-bea1351f",[[1,"swirl-icon-settings",{"size":[2]}]]],["p-a4ad540a",[[1,"swirl-icon-sync",{"size":[2]}]]],["p-a9f9ef54",[[1,"swirl-icon-tasks-filled",{"size":[2]}]]],["p-85c38084",[[1,"swirl-icon-tasks-outlined",{"size":[2]}]]],["p-2071a452",[[1,"swirl-icon-time-filled",{"size":[2]}]]],["p-649f1a2f",[[1,"swirl-icon-time-outlined",{"size":[2]}]]],["p-20fd87e7",[[1,"swirl-icon-user-assign",{"size":[2]}]]],["p-b39a0256",[[1,"swirl-icon-video-camera",{"size":[2]}]]],["p-fa18c6f8",[[1,"swirl-icon-warning",{"size":[2]}]]],["p-c0036f1f",[[1,"swirl-link",{"href":[1],"label":[1],"target":[1]}]]],["p-d82fce3d",[[4,"swirl-list"]]],["p-f5c1afb6",[[1,"swirl-option-list-section",{"label":[1]}]]],["p-825ca193",[[1,"swirl-progress-indicator",{"label":[1],"size":[1],"value":[2],"variant":[1]}]]],["p-8317b681",[[6,"swirl-radio-group",{"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1537]}]]],["p-d5f2df64",[[1,"swirl-skeleton-box",{"animated":[4],"aspectRatio":[1,"aspect-ratio"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1]}]]],["p-1e60fa61",[[1,"swirl-skeleton-text",{"animated":[4],"lines":[2],"size":[1]}]]],["p-891737c7",[[1,"swirl-tab",{"active":[4],"label":[1],"tabId":[1,"tab-id"]}]]],["p-27566da1",[[1,"swirl-table-cell"]]],["p-98844f25",[[1,"swirl-table-row",{"highlighted":[4],"index":[2]}]]],["p-1aa44f84",[[1,"swirl-table-row-group",{"label":[1]}]]],["p-9ef30977",[[6,"swirl-tabs",{"initialTab":[1,"initial-tab"],"label":[1],"activeTab":[32],"activateTab":[64]}]]],["p-c3badef7",[[6,"swirl-theme-provider",{"config":[16],"getActiveTheme":[64],"getPreferredTheme":[64],"setPreferredTheme":[64],"resetPreferredTheme":[64]}]]],["p-13376409",[[1,"swirl-tooltip",{"content":[1],"delay":[2],"position":[1],"actualPosition":[32],"visible":[32]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]]]]],["p-eef15ebc",[[1,"swirl-tree-navigation-item",{"active":[4],"icon":[1],"label":[1]}]]],["p-4f7f5e02",[[2,"swirl-text-input",{"autoComplete":[1,"auto-complete"],"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"disableDynamicWidth":[4,"disable-dynamic-width"],"swirlAriaAutocomplete":[1,"swirl-aria-autocomplete"],"swirlAriaControls":[1,"swirl-aria-controls"],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"swirlAriaExpanded":[1,"swirl-aria-expanded"],"swirlRole":[1,"swirl-role"],"inline":[4],"invalid":[4],"maxLength":[2,"max-length"],"max":[2],"min":[2],"mode":[1],"prefixLabel":[1,"prefix-label"],"required":[4],"rows":[2],"showCharacterCounter":[4,"show-character-counter"],"spellCheck":[4,"spell-check"],"suffixLabel":[1,"suffix-label"],"step":[2],"passwordToggleLabel":[1,"password-toggle-label"],"type":[1],"value":[1537],"iconSize":[32],"showPassword":[32]}]]],["p-da7879cd",[[1,"swirl-toast",{"accessibleDismissLabel":[1,"accessible-dismiss-label"],"content":[1],"dismissLabel":[1,"dismiss-label"],"duration":[2],"icon":[1],"intent":[1],"toastId":[1,"toast-id"]}]]],["p-f11f705c",[[1,"swirl-badge",{"icon":[1],"intent":[1],"label":[1],"size":[1],"variant":[1]}]]],["p-2ee1c66d",[[1,"swirl-icon-cloud-upload",{"size":[2]}]]],["p-5f53b9ed",[[1,"swirl-icon-person",{"size":[2]}]]],["p-c731c32c",[[1,"swirl-icon-search",{"size":[2]}]]],["p-8189d59b",[[1,"swirl-date-picker",{"labels":[16],"locale":[1],"range":[4],"startDate":[16],"value":[1040]}],[1,"swirl-icon-today",{"size":[2]}]]],["p-2acbafe5",[[1,"swirl-button-group",{"orientation":[1],"segmented":[4],"stretch":[4],"wrap":[4]}]]],["p-5636fc57",[[1,"swirl-icon-arrow-downward",{"size":[2]}],[1,"swirl-icon-arrow-upward",{"size":[2]}]]],["p-ada769a2",[[2,"wc-datepicker",{"clearButtonContent":[1,"clear-button-content"],"disabled":[4],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"range":[4],"labels":[16],"locale":[1],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"previousMonthButtonContent":[1,"previous-month-button-content"],"previousYearButtonContent":[1,"previous-year-button-content"],"showClearButton":[4,"show-clear-button"],"showMonthStepper":[4,"show-month-stepper"],"showTodayButton":[4,"show-today-button"],"showYearStepper":[4,"show-year-stepper"],"startDate":[1,"start-date"],"todayButtonContent":[1,"today-button-content"],"value":[1040],"currentDate":[32],"hoveredDate":[32],"weekdays":[32]}]]],["p-ddecb3fb",[[1,"swirl-icon-arrow-left",{"size":[2]}],[1,"swirl-icon-arrow-right",{"size":[2]}],[1,"swirl-icon-more-vertikal",{"size":[2]}],[1,"swirl-thumbnail",{"alt":[1],"format":[1],"size":[1],"src":[1]}]]],["p-bb84c103",[[2,"swirl-heading",{"align":[1],"as":[1],"balance":[4],"headingId":[1,"heading-id"],"level":[2],"lines":[2],"text":[1],"truncate":[4]},[[9,"resize","onWindowResize"]]]]],["p-b006fef3",[[1,"swirl-icon-check-strong",{"size":[2]}]]],["p-83e3fa78",[[1,"swirl-icon-close",{"size":[2]}]]],["p-92fd5b6e",[[1,"swirl-icon-expand-more",{"size":[2]}]]],["p-08f10dc8",[[1,"swirl-popover",{"animation":[1],"disableScrollLock":[4,"disable-scroll-lock"],"enableFlip":[4,"enable-flip"],"label":[1],"offset":[2],"placement":[1],"popoverId":[1,"popover-id"],"trigger":[1],"useContainerWidth":[8,"use-container-width"],"active":[32],"closing":[32],"position":[32],"close":[64],"open":[64]},[[8,"focusin","onWindowFocusIn"],[8,"click","onWindowClick"]]]]],["p-fffab440",[[1,"swirl-icon-add",{"size":[2]}],[1,"swirl-icon-file-copy",{"size":[2]}],[1,"swirl-icon-fullscreen",{"size":[2]}],[1,"swirl-icon-fullscreen-exit",{"size":[2]}],[1,"swirl-icon-menu-book",{"size":[2]}],[1,"swirl-icon-remove",{"size":[2]}]]],["p-c2167151",[[1,"swirl-action-list"],[1,"swirl-action-list-item",{"disabled":[4],"description":[1],"icon":[1],"intent":[1],"label":[1],"size":[1],"suffix":[1]}],[1,"swirl-separator"]]],["p-0f186daa",[[6,"swirl-text",{"align":[1],"as":[1],"balance":[4],"color":[1],"fontStyle":[1,"font-style"],"lines":[2],"size":[1],"truncate":[4],"weight":[1]},[[9,"resize","onWindowResize"]]]]],["p-5fdfd6ff",[[1,"swirl-stack",{"align":[1],"as":[1],"justify":[1],"orientation":[1],"spacing":[1],"wrap":[4]}]]],["p-16864f08",[[1,"swirl-app-layout",{"appName":[1,"app-name"],"backToNavigationViewButtonLabel":[1,"back-to-navigation-view-button-label"],"ctaIcon":[1,"cta-icon"],"ctaLabel":[1,"cta-label"],"navigationBackButtonLabel":[1,"navigation-back-button-label"],"navigationLabel":[1,"navigation-label"],"showNavigationBackButton":[4,"show-navigation-back-button"],"sidebarCloseButtonLabel":[1,"sidebar-close-button-label"],"sidebarHeading":[1,"sidebar-heading"],"transitionStyle":[1,"transition-style"],"hasNavigation":[32],"hasSidebar":[32],"mobileView":[32],"sidebarActive":[32],"sidebarClosing":[32],"transitioningFrom":[32],"transitioningTo":[32],"showSidebar":[64],"hideSidebar":[64],"toggleSidebar":[64],"changeMobileView":[64]}],[1,"swirl-empty-state",{"heading":[1],"illustration":[1]}],[1,"swirl-resource-list-item",{"checked":[1028],"description":[1],"disabled":[4],"hideDivider":[4,"hide-divider"],"href":[1],"label":[1],"menuTriggerId":[1,"menu-trigger-id"],"menuTriggerLabel":[1,"menu-trigger-label"],"meta":[1],"selectable":[4],"value":[1],"hasMedia":[32]}],[1,"swirl-resource-list",{"label":[1]}],[1,"swirl-box",{"bordered":[4],"centerBlock":[4,"center-block"],"centerInline":[4,"center-inline"],"cover":[4],"maxWidth":[1,"max-width"],"overflow":[1],"padding":[1]}],[1,"swirl-icon-file",{"size":[2]}],[1,"swirl-icon-folder-shared",{"size":[2]}]]],["p-c78c2b0f",[[1,"swirl-icon-visibility",{"size":[2]}],[1,"swirl-icon-visibility-off",{"size":[2]}],[1,"swirl-icon-cancel",{"size":[2]}],[1,"swirl-icon-expand-less",{"size":[2]}]]],["p-0f3b28e9",[[1,"swirl-visually-hidden"]]],["p-100b503e",[[2,"swirl-option-list-item",{"allowDrag":[4,"allow-drag"],"context":[1025],"disabled":[4],"dragging":[4],"dragHandleDescription":[1,"drag-handle-description"],"dragHandleLabel":[1,"drag-handle-label"],"icon":[1],"label":[1],"selected":[1028],"value":[1],"iconSize":[32]}],[6,"swirl-option-list",{"allowDrag":[4,"allow-drag"],"assistiveTextItemGrabbed":[1,"assistive-text-item-grabbed"],"assistiveTextItemMoving":[1,"assistive-text-item-moving"],"assistiveTextItemMoved":[1,"assistive-text-item-moved"],"disabled":[4],"label":[1],"optionListId":[1,"option-list-id"],"multiSelect":[4,"multi-select"],"value":[1040],"assistiveText":[32]}],[1,"swirl-icon-check-small",{"size":[2]}],[1,"swirl-icon-drag-handle",{"size":[2]}]]],["p-7405beba",[[2,"swirl-button",{"disabled":[4],"download":[1],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"swirlAriaExpanded":[1,"swirl-aria-expanded"],"swirlAriaLabel":[1,"swirl-aria-label"],"form":[1],"hideLabel":[4,"hide-label"],"href":[1],"icon":[1],"iconPosition":[1,"icon-position"],"intent":[1],"label":[1],"name":[1],"pill":[4],"size":[1],"target":[1],"type":[1],"value":[1],"variant":[1]}]]],["p-e13a3215",[[1,"swirl-inline-error",{"message":[1],"size":[1]}],[1,"swirl-spinner",{"label":[1],"size":[8]}],[1,"swirl-icon-error",{"size":[2]}]]],["p-9b0a9699",[[1,"swirl-file-viewer",{"active":[4],"autoplay":[4],"description":[1],"errorMessage":[1,"error-message"],"file":[1],"thumbnailUrl":[1,"thumbnail-url"],"type":[1],"typeUnsupportedMessage":[1,"type-unsupported-message"],"viewMode":[1,"view-mode"],"zoom":[8],"download":[64],"print":[64]}],[1,"swirl-file-viewer-csv",{"errorMessage":[1,"error-message"],"file":[1],"data":[32],"error":[32],"loading":[32]}],[1,"swirl-file-viewer-image",{"description":[1],"errorMessage":[1,"error-message"],"file":[1],"maxZoom":[2,"max-zoom"],"error":[32],"loading":[32],"getZoom":[64],"resetZoom":[64]}],[1,"swirl-file-viewer-pdf",{"errorMessage":[1,"error-message"],"file":[1],"singlePageMode":[4,"single-page-mode"],"viewMode":[1,"view-mode"],"zoom":[8],"doc":[32],"error":[32],"loading":[32],"renderedPages":[32],"scrolledDown":[32],"singlePageModePage":[32],"visiblePages":[32],"getThumbnails":[64],"print":[64],"nextPage":[64],"previousPage":[64],"setPage":[64]},[[9,"resize","onWindowResize"]]],[1,"swirl-file-viewer-text",{"errorMessage":[1,"error-message"],"file":[1],"error":[32],"loading":[32],"text":[32]}],[1,"swirl-file-viewer-audio",{"autoplay":[4],"file":[1],"type":[1]}],[1,"swirl-file-viewer-video",{"autoplay":[4],"file":[1],"type":[1]}]]]]'),e)));
1
+ import{p as e,b as i}from"./p-05c15d47.js";export{s as setNonce}from"./p-05c15d47.js";(()=>{const i=import.meta.url,l={};return""!==i&&(l.resourcesUrl=new URL(".",i).href),e(l)})().then((e=>i(JSON.parse('[["p-fd8dd92d",[[1,"file-manager",{"selectedDirectory":[32],"selectedFile":[32]}]]],["p-e9433d98",[[1,"swirl-pdf-reader",{"autoZoomLabel":[1,"auto-zoom-label"],"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"file":[1],"fileTypeLabel":[1,"file-type-label"],"label":[1],"menuLabel":[1,"menu-label"],"menuTriggerLabel":[1,"menu-trigger-label"],"printButtonLabel":[1,"print-button-label"],"sideBySideButtonLabel":[1,"side-by-side-button-label"],"thumbnailButtonLabel":[1,"thumbnail-button-label"],"thumbnailsButtonLabel":[1,"thumbnails-button-label"],"thumbnailsLabel":[1,"thumbnails-label"],"zoomInButtonLabel":[1,"zoom-in-button-label"],"zoomOutButtonLabel":[1,"zoom-out-button-label"],"zoomSelectLabel":[1,"zoom-select-label"],"active":[32],"closing":[32],"downloading":[32],"thumbnails":[32],"showThumbnails":[32],"viewMode":[32],"visiblePages":[32],"zoom":[32],"zoomSteps":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-b76df929",[[2,"swirl-autocomplete",{"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"generateSuggestions":[1040],"inline":[4],"invalid":[4],"maxLength":[2,"max-length"],"menuLabel":[1,"menu-label"],"mode":[1],"required":[4],"spellCheck":[4,"spell-check"],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1537],"active":[32],"loading":[32],"position":[32],"suggestions":[32]},[[8,"click","onWindowClick"]]]]],["p-638b7fd9",[[1,"swirl-lightbox",{"closeButtonLabel":[1,"close-button-label"],"downloadButtonLabel":[1,"download-button-label"],"label":[1],"menuLabel":[1,"menu-label"],"menuTriggerLabel":[1,"menu-trigger-label"],"nextSlideButtonLabel":[1,"next-slide-button-label"],"previousSlideButtonLabel":[1,"previous-slide-button-label"],"activeSlideIndex":[32],"closing":[32],"slides":[32],"open":[64],"close":[64],"activateSlide":[64]}]]],["p-4f44b9e7",[[1,"swirl-resource-list-file-item",{"description":[1],"errorMessage":[1,"error-message"],"icon":[1],"label":[1],"loading":[4],"removable":[4],"removeButtonLabel":[1,"remove-button-label"]}]]],["p-0511c7be",[[6,"swirl-select",{"disabled":[4],"inline":[4],"invalid":[4],"label":[1],"multiSelect":[4,"multi-select"],"required":[4],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1040],"options":[32],"open":[32]},[[8,"focusin","onWindowFocusIn"]]]]],["p-5dd48e42",[[2,"swirl-date-input",{"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"datePickerLabel":[1,"date-picker-label"],"datePickerTriggerLabel":[1,"date-picker-trigger-label"],"disabled":[4],"format":[1],"inline":[4],"invalid":[4],"labels":[16],"locale":[1],"placeholder":[1],"required":[4],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1537],"iconSize":[32]}]]],["p-66782dbd",[[1,"swirl-modal",{"closeButtonLabel":[1,"close-button-label"],"hideCloseButton":[4,"hide-close-button"],"hideLabel":[4,"hide-label"],"label":[1],"maxWidth":[1,"max-width"],"padded":[4],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"hasCustomHeader":[32],"scrollable":[32],"scrolled":[32],"scrolledDown":[32],"open":[64],"close":[64]},[[9,"resize","onWindowResize"]]]]],["p-da4958ec",[[1,"swirl-console-layout",{"appName":[1,"app-name"],"backButonLabel":[1,"back-buton-label"],"heading":[1],"helpButonLabel":[1,"help-buton-label"],"hideNavigationButtonLabel":[1,"hide-navigation-button-label"],"logoText":[1,"logo-text"],"showNavigationButtonLabel":[1,"show-navigation-button-label"],"navigationLabel":[1,"navigation-label"],"showBackButton":[4,"show-back-button"],"showHelpButton":[4,"show-help-button"],"subheading":[1],"sidebarActive":[32],"toggleSidebar":[64],"showSidebar":[64],"hideSidebar":[64]},[[9,"resize","onWindowResize"]]]]],["p-c17b8536",[[1,"swirl-dialog",{"hideLabel":[4,"hide-label"],"intent":[1],"label":[1],"primaryActionLabel":[1,"primary-action-label"],"secondaryActionLabel":[1,"secondary-action-label"],"closing":[32],"open":[64],"close":[64]}]]],["p-968773d7",[[1,"swirl-pagination",{"accessibleNextButtonLabel":[1,"accessible-next-button-label"],"accessiblePrevButtonLabel":[1,"accessible-prev-button-label"],"nextButtonLabel":[1,"next-button-label"],"pageLabel":[1,"page-label"],"prevButtonLabel":[1,"prev-button-label"],"label":[1],"page":[2],"pages":[2],"pageSelectLabel":[1,"page-select-label"],"variant":[1]}]]],["p-cddec2c8",[[1,"swirl-toast-provider",{"globalDuration":[2,"global-duration"],"toasts":[32],"clearAll":[64],"dismiss":[64],"toast":[64]}]]],["p-d5a55beb",[[2,"swirl-checkbox",{"checked":[1032],"description":[1],"disabled":[4],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"swirlAriaLabel":[1,"swirl-aria-label"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-c0cf7a5e",[[2,"swirl-file-uploader",{"accept":[1],"ctaLabel":[1,"cta-label"],"description":[1],"disabled":[4],"dragDropLabel":[1,"drag-drop-label"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"multiple":[4],"showDropzone":[4,"show-dropzone"],"uploadButtonLabel":[1,"upload-button-label"],"reset":[64]}]]],["p-0cb23149",[[6,"swirl-form-control",{"description":[1],"disabled":[4],"errorMessage":[1,"error-message"],"inline":[4],"invalid":[4],"label":[1],"hasFocus":[32],"inputValue":[32]},[[8,"click","onWindowClick"]]]]],["p-774483bc",[[2,"swirl-search",{"autoFocus":[4,"auto-focus"],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"inputName":[1,"input-name"],"inputId":[1,"input-id"],"label":[1],"placeholder":[1],"value":[1025]},[[8,"keydown","onKeyDown"]]]]],["p-3c7eb982",[[1,"swirl-table",{"caption":[1],"emptyStateLabel":[1,"empty-state-label"],"label":[1],"empty":[32],"scrollable":[32],"scrolled":[32],"scrolledToEnd":[32]},[[9,"resize","onWindowResize"]]]]],["p-50430bab",[[1,"swirl-table-column",{"sort":[1],"sortable":[4],"maxWidth":[1,"max-width"],"minWidth":[1,"min-width"],"sticky":[4],"width":[1]}]]],["p-490aca41",[[1,"swirl-app-bar",{"backButtonLabel":[1,"back-button-label"],"closeButtonLabel":[1,"close-button-label"],"stepUpButtonLabel":[1,"step-up-button-label"],"stepDownButtonLabel":[1,"step-down-button-label"],"showBackButton":[4,"show-back-button"],"showCloseButton":[4,"show-close-button"],"showStepperControls":[4,"show-stepper-controls"],"hasCta":[32]}]]],["p-8f839867",[[1,"swirl-avatar",{"badge":[1],"badgePosition":[1,"badge-position"],"color":[1],"icon":[1],"initials":[1],"interactive":[4],"label":[1],"showLabel":[4,"show-label"],"size":[1],"src":[1],"variant":[1],"imageAvailable":[32]}]]],["p-5b691374",[[1,"swirl-banner",{"actionLabel":[1,"action-label"],"content":[1],"dismissable":[4],"dismissLabel":[1,"dismiss-label"],"importance":[1],"intent":[1],"showIcon":[4,"show-icon"],"size":[1]}]]],["p-61a52a24",[[1,"swirl-carousel",{"label":[1],"nextSlideButtonLabel":[1,"next-slide-button-label"],"previousSlideButtonLabel":[1,"previous-slide-button-label"],"loopAround":[4,"loop-around"],"isAtEnd":[32],"isAtStart":[32],"isScrollable":[32],"scrollToSlide":[64]},[[9,"resize","onWindowResize"]]]]],["p-8c8a717e",[[2,"swirl-radio",{"checked":[1032],"description":[1],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"invalid":[4],"label":[1],"value":[1]}]]],["p-dc60aa35",[[1,"swirl-shell-layout",{"hideSidebar":[4,"hide-sidebar"],"mainNavigationLabel":[1,"main-navigation-label"],"sidebarToggleLabel":[1,"sidebar-toggle-label"],"collapsedSidebar":[32],"collapsing":[32],"sidebarHovered":[32],"collapseSidebar":[64],"extendSidebar":[64]}]]],["p-8e64456c",[[1,"swirl-shell-navigation-item",{"active":[4],"badgeLabel":[1,"badge-label"],"label":[1]}]]],["p-394568d3",[[2,"swirl-switch",{"checked":[1028],"disabled":[4],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"label":[1],"size":[1],"value":[1]},[[9,"pointerup","onWindowPointerUp"]]]]],["p-01aff357",[[1,"swirl-tag",{"intent":[1],"label":[1],"removable":[4],"removalButtonLabel":[1,"removal-button-label"]}]]],["p-c783221d",[[1,"swirl-video-thumbnail",{"durationLabel":[1,"duration-label"],"duration":[1],"label":[1],"src":[1]}]]],["p-ddd49304",[[1,"swirl-action-list-section",{"label":[1]}]]],["p-e7489a17",[[1,"swirl-app-icon",{"icon":[1],"src":[1],"hideBorder":[4,"hide-border"],"imageAvailable":[32]}]]],["p-a8acfcc3",[[1,"swirl-avatar-group",{"badge":[1]}]]],["p-80610550",[[1,"swirl-card",{"as":[1],"borderRadius":[1,"border-radius"],"elevated":[4],"height":[1],"highlighted":[4],"href":[1],"imageAspectRatio":[1,"image-aspect-ratio"],"isBorderless":[4,"is-borderless"],"interactive":[4],"justifyContent":[1,"justify-content"],"linkTarget":[1,"link-target"],"swirlAriaLabel":[1,"swirl-aria-label"]}]]],["p-5540e1a5",[[1,"swirl-carousel-slide",{"label":[1],"minHeight":[1,"min-height"],"width":[1]}]]],["p-3a763e22",[[1,"swirl-chip",{"icon":[1],"intent":[1],"interactive":[4],"label":[1],"variant":[1]}]]],["p-83392d53",[[1,"swirl-columns",{"columns":[1],"spacing":[1]}]]],["p-93173ef4",[[1,"swirl-description-list"]]],["p-1aaa2dbd",[[1,"swirl-description-list-item",{"orientation":[1],"term":[1]}]]],["p-24a2fc70",[[6,"swirl-form-group",{"orientation":[1]}]]],["p-b20dc745",[[1,"swirl-icon-add-photo",{"size":[2]}]]],["p-6f5a740c",[[1,"swirl-icon-admin-panel-settings",{"size":[2]}]]],["p-4002c5ae",[[1,"swirl-icon-arrow-back",{"size":[2]}]]],["p-1760180b",[[1,"swirl-icon-arrow-forward",{"size":[2]}]]],["p-7c2b4953",[[1,"swirl-icon-arrow-right-small",{"size":[2]}]]],["p-59a5aafb",[[1,"swirl-icon-attachment",{"size":[2]}]]],["p-904b5a82",[[1,"swirl-icon-block",{"size":[2]}]]],["p-51e63ec1",[[1,"swirl-icon-bookmark",{"size":[2]}]]],["p-d9724ad8",[[1,"swirl-icon-chat-bubble",{"size":[2]}]]],["p-8444953b",[[1,"swirl-icon-chats-filled",{"size":[2]}]]],["p-1901ff35",[[1,"swirl-icon-chats-outlined",{"size":[2]}]]],["p-ff74e4c3",[[1,"swirl-icon-check",{"size":[2]}]]],["p-6d136f16",[[1,"swirl-icon-check-circle",{"size":[2]}]]],["p-cf4767a5",[[1,"swirl-icon-chevron-left",{"size":[2]}]]],["p-fe5a1737",[[1,"swirl-icon-chevron-right",{"size":[2]}]]],["p-ae6f7f6d",[[1,"swirl-icon-close-small",{"size":[2]}]]],["p-cd83c309",[[1,"swirl-icon-column",{"size":[2]}]]],["p-498e2b6e",[[1,"swirl-icon-comment",{"size":[2]}]]],["p-6ad5a67b",[[1,"swirl-icon-copy",{"size":[2]}]]],["p-82be9389",[[1,"swirl-icon-date-range",{"size":[2]}]]],["p-f9bbeefe",[[1,"swirl-icon-delete",{"size":[2]}]]],["p-93023904",[[1,"swirl-icon-description",{"size":[2]}]]],["p-77d3f063",[[1,"swirl-icon-double-arrow-left",{"size":[2]}]]],["p-d781dcfb",[[1,"swirl-icon-double-arrow-right",{"size":[2]}]]],["p-3a7170ec",[[1,"swirl-icon-download",{"size":[2]}]]],["p-7a832eb6",[[1,"swirl-icon-edit",{"size":[2]}]]],["p-4c3c4647",[[1,"swirl-icon-emoji-mood",{"size":[2]}]]],["p-3ef45c79",[[1,"swirl-icon-emoji-satisfied",{"size":[2]}]]],["p-ada20ae7",[[1,"swirl-icon-filter",{"size":[2]}]]],["p-91cc9591",[[1,"swirl-icon-folder",{"size":[2]}]]],["p-1c4fa7e9",[[1,"swirl-icon-group-assign",{"size":[2]}]]],["p-1782d1ea",[[1,"swirl-icon-groups",{"size":[2]}]]],["p-8decc967",[[1,"swirl-icon-groups-custom",{"size":[2]}]]],["p-e08e9e53",[[1,"swirl-icon-groups-filled",{"size":[2]}]]],["p-9648bfbf",[[1,"swirl-icon-groups-outlined",{"size":[2]}]]],["p-c3c29b93",[[1,"swirl-icon-help",{"size":[2]}]]],["p-fe33a054",[[1,"swirl-icon-image",{"size":[2]}]]],["p-b490d8f3",[[1,"swirl-icon-info",{"size":[2]}]]],["p-5282350f",[[1,"swirl-icon-inventory",{"size":[2]}]]],["p-6ef1f4ef",[[1,"swirl-icon-like",{"size":[2]}]]],["p-28fdee3b",[[1,"swirl-icon-link",{"size":[2]}]]],["p-f7f1c29f",[[1,"swirl-icon-lock",{"size":[2]}]]],["p-1091d3dc",[[1,"swirl-icon-logout",{"size":[2]}]]],["p-fff59050",[[1,"swirl-icon-mail",{"size":[2]}]]],["p-f8b08507",[[1,"swirl-icon-manage-accounts",{"size":[2]}]]],["p-7c2ca02f",[[1,"swirl-icon-mention",{"size":[2]}]]],["p-3a182222",[[1,"swirl-icon-menu",{"size":[2]}]]],["p-8b7e33aa",[[1,"swirl-icon-menu-filled",{"size":[2]}]]],["p-a4d24a90",[[1,"swirl-icon-menu-outlined",{"size":[2]}]]],["p-fa2ebe9e",[[1,"swirl-icon-message",{"size":[2]}]]],["p-453dc25e",[[1,"swirl-icon-more-horizontal",{"size":[2]}]]],["p-5d744993",[[1,"swirl-icon-news-filled",{"size":[2]}]]],["p-0336b920",[[1,"swirl-icon-news-outlined",{"size":[2]}]]],["p-2ea247c5",[[1,"swirl-icon-notifications",{"size":[2]}]]],["p-398854b7",[[1,"swirl-icon-notifications-active",{"size":[2]}]]],["p-9f341e18",[[1,"swirl-icon-notifications-off",{"size":[2]}]]],["p-92f1a11f",[[1,"swirl-icon-open-in-new",{"size":[2]}]]],["p-e793fedc",[[1,"swirl-icon-people-alt",{"size":[2]}]]],["p-fad5447d",[[1,"swirl-icon-person-off",{"size":[2]}]]],["p-387a3853",[[1,"swirl-icon-phone",{"size":[2]}]]],["p-2c4d446e",[[1,"swirl-icon-poll",{"size":[2]}]]],["p-85aa0c88",[[1,"swirl-icon-print",{"size":[2]}]]],["p-b626b11e",[[1,"swirl-icon-recieved",{"size":[2]}]]],["p-66643855",[[1,"swirl-icon-search-strong",{"size":[2]}]]],["p-4e5fd3bf",[[1,"swirl-icon-send",{"size":[2]}]]],["p-bea1351f",[[1,"swirl-icon-settings",{"size":[2]}]]],["p-a4ad540a",[[1,"swirl-icon-sync",{"size":[2]}]]],["p-a9f9ef54",[[1,"swirl-icon-tasks-filled",{"size":[2]}]]],["p-85c38084",[[1,"swirl-icon-tasks-outlined",{"size":[2]}]]],["p-2071a452",[[1,"swirl-icon-time-filled",{"size":[2]}]]],["p-649f1a2f",[[1,"swirl-icon-time-outlined",{"size":[2]}]]],["p-20fd87e7",[[1,"swirl-icon-user-assign",{"size":[2]}]]],["p-b39a0256",[[1,"swirl-icon-video-camera",{"size":[2]}]]],["p-fa18c6f8",[[1,"swirl-icon-warning",{"size":[2]}]]],["p-c0036f1f",[[1,"swirl-link",{"href":[1],"label":[1],"target":[1]}]]],["p-d82fce3d",[[4,"swirl-list"]]],["p-f5c1afb6",[[1,"swirl-option-list-section",{"label":[1]}]]],["p-825ca193",[[1,"swirl-progress-indicator",{"label":[1],"size":[1],"value":[2],"variant":[1]}]]],["p-8317b681",[[6,"swirl-radio-group",{"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"value":[1537]}]]],["p-d5f2df64",[[1,"swirl-skeleton-box",{"animated":[4],"aspectRatio":[1,"aspect-ratio"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1]}]]],["p-1e60fa61",[[1,"swirl-skeleton-text",{"animated":[4],"lines":[2],"size":[1]}]]],["p-891737c7",[[1,"swirl-tab",{"active":[4],"label":[1],"tabId":[1,"tab-id"]}]]],["p-27566da1",[[1,"swirl-table-cell"]]],["p-98844f25",[[1,"swirl-table-row",{"highlighted":[4],"index":[2]}]]],["p-1aa44f84",[[1,"swirl-table-row-group",{"label":[1]}]]],["p-9ef30977",[[6,"swirl-tabs",{"initialTab":[1,"initial-tab"],"label":[1],"activeTab":[32],"activateTab":[64]}]]],["p-c3badef7",[[6,"swirl-theme-provider",{"config":[16],"getActiveTheme":[64],"getPreferredTheme":[64],"setPreferredTheme":[64],"resetPreferredTheme":[64]}]]],["p-13376409",[[1,"swirl-tooltip",{"content":[1],"delay":[2],"position":[1],"actualPosition":[32],"visible":[32]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"],[9,"resize","onWindowResize"],[9,"scroll","onWindowScroll"]]]]],["p-eef15ebc",[[1,"swirl-tree-navigation-item",{"active":[4],"icon":[1],"label":[1]}]]],["p-4f7f5e02",[[2,"swirl-text-input",{"autoComplete":[1,"auto-complete"],"autoFocus":[4,"auto-focus"],"autoSelect":[4,"auto-select"],"clearable":[4],"clearButtonLabel":[1,"clear-button-label"],"disabled":[4],"disableDynamicWidth":[4,"disable-dynamic-width"],"swirlAriaAutocomplete":[1,"swirl-aria-autocomplete"],"swirlAriaControls":[1,"swirl-aria-controls"],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"swirlAriaExpanded":[1,"swirl-aria-expanded"],"swirlRole":[1,"swirl-role"],"inline":[4],"invalid":[4],"maxLength":[2,"max-length"],"max":[2],"min":[2],"mode":[1],"prefixLabel":[1,"prefix-label"],"required":[4],"rows":[2],"showCharacterCounter":[4,"show-character-counter"],"spellCheck":[4,"spell-check"],"suffixLabel":[1,"suffix-label"],"step":[2],"passwordToggleLabel":[1,"password-toggle-label"],"type":[1],"value":[1537],"iconSize":[32],"showPassword":[32]}]]],["p-da7879cd",[[1,"swirl-toast",{"accessibleDismissLabel":[1,"accessible-dismiss-label"],"content":[1],"dismissLabel":[1,"dismiss-label"],"duration":[2],"icon":[1],"intent":[1],"toastId":[1,"toast-id"]}]]],["p-f11f705c",[[1,"swirl-badge",{"icon":[1],"intent":[1],"label":[1],"size":[1],"variant":[1]}]]],["p-2ee1c66d",[[1,"swirl-icon-cloud-upload",{"size":[2]}]]],["p-5f53b9ed",[[1,"swirl-icon-person",{"size":[2]}]]],["p-c731c32c",[[1,"swirl-icon-search",{"size":[2]}]]],["p-8189d59b",[[1,"swirl-date-picker",{"labels":[16],"locale":[1],"range":[4],"startDate":[16],"value":[1040]}],[1,"swirl-icon-today",{"size":[2]}]]],["p-2acbafe5",[[1,"swirl-button-group",{"orientation":[1],"segmented":[4],"stretch":[4],"wrap":[4]}]]],["p-5636fc57",[[1,"swirl-icon-arrow-downward",{"size":[2]}],[1,"swirl-icon-arrow-upward",{"size":[2]}]]],["p-ada769a2",[[2,"wc-datepicker",{"clearButtonContent":[1,"clear-button-content"],"disabled":[4],"disableDate":[16],"elementClassName":[1,"element-class-name"],"firstDayOfWeek":[2,"first-day-of-week"],"range":[4],"labels":[16],"locale":[1],"nextMonthButtonContent":[1,"next-month-button-content"],"nextYearButtonContent":[1,"next-year-button-content"],"previousMonthButtonContent":[1,"previous-month-button-content"],"previousYearButtonContent":[1,"previous-year-button-content"],"showClearButton":[4,"show-clear-button"],"showMonthStepper":[4,"show-month-stepper"],"showTodayButton":[4,"show-today-button"],"showYearStepper":[4,"show-year-stepper"],"startDate":[1,"start-date"],"todayButtonContent":[1,"today-button-content"],"value":[1040],"currentDate":[32],"hoveredDate":[32],"weekdays":[32]}]]],["p-ddecb3fb",[[1,"swirl-icon-arrow-left",{"size":[2]}],[1,"swirl-icon-arrow-right",{"size":[2]}],[1,"swirl-icon-more-vertikal",{"size":[2]}],[1,"swirl-thumbnail",{"alt":[1],"format":[1],"size":[1],"src":[1]}]]],["p-bb84c103",[[2,"swirl-heading",{"align":[1],"as":[1],"balance":[4],"headingId":[1,"heading-id"],"level":[2],"lines":[2],"text":[1],"truncate":[4]},[[9,"resize","onWindowResize"]]]]],["p-b006fef3",[[1,"swirl-icon-check-strong",{"size":[2]}]]],["p-83e3fa78",[[1,"swirl-icon-close",{"size":[2]}]]],["p-92fd5b6e",[[1,"swirl-icon-expand-more",{"size":[2]}]]],["p-08f10dc8",[[1,"swirl-popover",{"animation":[1],"disableScrollLock":[4,"disable-scroll-lock"],"enableFlip":[4,"enable-flip"],"label":[1],"offset":[2],"placement":[1],"popoverId":[1,"popover-id"],"trigger":[1],"useContainerWidth":[8,"use-container-width"],"active":[32],"closing":[32],"position":[32],"close":[64],"open":[64]},[[8,"focusin","onWindowFocusIn"],[8,"click","onWindowClick"]]]]],["p-fffab440",[[1,"swirl-icon-add",{"size":[2]}],[1,"swirl-icon-file-copy",{"size":[2]}],[1,"swirl-icon-fullscreen",{"size":[2]}],[1,"swirl-icon-fullscreen-exit",{"size":[2]}],[1,"swirl-icon-menu-book",{"size":[2]}],[1,"swirl-icon-remove",{"size":[2]}]]],["p-c2167151",[[1,"swirl-action-list"],[1,"swirl-action-list-item",{"disabled":[4],"description":[1],"icon":[1],"intent":[1],"label":[1],"size":[1],"suffix":[1]}],[1,"swirl-separator"]]],["p-5f05c203",[[6,"swirl-text",{"align":[1],"as":[1],"balance":[4],"color":[1],"fontStyle":[1,"font-style"],"lines":[2],"size":[1],"truncate":[4],"weight":[1]},[[9,"resize","onWindowResize"]]]]],["p-5fdfd6ff",[[1,"swirl-stack",{"align":[1],"as":[1],"justify":[1],"orientation":[1],"spacing":[1],"wrap":[4]}]]],["p-16864f08",[[1,"swirl-app-layout",{"appName":[1,"app-name"],"backToNavigationViewButtonLabel":[1,"back-to-navigation-view-button-label"],"ctaIcon":[1,"cta-icon"],"ctaLabel":[1,"cta-label"],"navigationBackButtonLabel":[1,"navigation-back-button-label"],"navigationLabel":[1,"navigation-label"],"showNavigationBackButton":[4,"show-navigation-back-button"],"sidebarCloseButtonLabel":[1,"sidebar-close-button-label"],"sidebarHeading":[1,"sidebar-heading"],"transitionStyle":[1,"transition-style"],"hasNavigation":[32],"hasSidebar":[32],"mobileView":[32],"sidebarActive":[32],"sidebarClosing":[32],"transitioningFrom":[32],"transitioningTo":[32],"showSidebar":[64],"hideSidebar":[64],"toggleSidebar":[64],"changeMobileView":[64]}],[1,"swirl-empty-state",{"heading":[1],"illustration":[1]}],[1,"swirl-resource-list-item",{"checked":[1028],"description":[1],"disabled":[4],"hideDivider":[4,"hide-divider"],"href":[1],"label":[1],"menuTriggerId":[1,"menu-trigger-id"],"menuTriggerLabel":[1,"menu-trigger-label"],"meta":[1],"selectable":[4],"value":[1],"hasMedia":[32]}],[1,"swirl-resource-list",{"label":[1]}],[1,"swirl-box",{"bordered":[4],"centerBlock":[4,"center-block"],"centerInline":[4,"center-inline"],"cover":[4],"maxWidth":[1,"max-width"],"overflow":[1],"padding":[1]}],[1,"swirl-icon-file",{"size":[2]}],[1,"swirl-icon-folder-shared",{"size":[2]}]]],["p-c78c2b0f",[[1,"swirl-icon-visibility",{"size":[2]}],[1,"swirl-icon-visibility-off",{"size":[2]}],[1,"swirl-icon-cancel",{"size":[2]}],[1,"swirl-icon-expand-less",{"size":[2]}]]],["p-0f3b28e9",[[1,"swirl-visually-hidden"]]],["p-100b503e",[[2,"swirl-option-list-item",{"allowDrag":[4,"allow-drag"],"context":[1025],"disabled":[4],"dragging":[4],"dragHandleDescription":[1,"drag-handle-description"],"dragHandleLabel":[1,"drag-handle-label"],"icon":[1],"label":[1],"selected":[1028],"value":[1],"iconSize":[32]}],[6,"swirl-option-list",{"allowDrag":[4,"allow-drag"],"assistiveTextItemGrabbed":[1,"assistive-text-item-grabbed"],"assistiveTextItemMoving":[1,"assistive-text-item-moving"],"assistiveTextItemMoved":[1,"assistive-text-item-moved"],"disabled":[4],"label":[1],"optionListId":[1,"option-list-id"],"multiSelect":[4,"multi-select"],"value":[1040],"assistiveText":[32]}],[1,"swirl-icon-check-small",{"size":[2]}],[1,"swirl-icon-drag-handle",{"size":[2]}]]],["p-7405beba",[[2,"swirl-button",{"disabled":[4],"download":[1],"swirlAriaDescribedby":[1,"swirl-aria-describedby"],"swirlAriaExpanded":[1,"swirl-aria-expanded"],"swirlAriaLabel":[1,"swirl-aria-label"],"form":[1],"hideLabel":[4,"hide-label"],"href":[1],"icon":[1],"iconPosition":[1,"icon-position"],"intent":[1],"label":[1],"name":[1],"pill":[4],"size":[1],"target":[1],"type":[1],"value":[1],"variant":[1]}]]],["p-e13a3215",[[1,"swirl-inline-error",{"message":[1],"size":[1]}],[1,"swirl-spinner",{"label":[1],"size":[8]}],[1,"swirl-icon-error",{"size":[2]}]]],["p-9b0a9699",[[1,"swirl-file-viewer",{"active":[4],"autoplay":[4],"description":[1],"errorMessage":[1,"error-message"],"file":[1],"thumbnailUrl":[1,"thumbnail-url"],"type":[1],"typeUnsupportedMessage":[1,"type-unsupported-message"],"viewMode":[1,"view-mode"],"zoom":[8],"download":[64],"print":[64]}],[1,"swirl-file-viewer-csv",{"errorMessage":[1,"error-message"],"file":[1],"data":[32],"error":[32],"loading":[32]}],[1,"swirl-file-viewer-image",{"description":[1],"errorMessage":[1,"error-message"],"file":[1],"maxZoom":[2,"max-zoom"],"error":[32],"loading":[32],"getZoom":[64],"resetZoom":[64]}],[1,"swirl-file-viewer-pdf",{"errorMessage":[1,"error-message"],"file":[1],"singlePageMode":[4,"single-page-mode"],"viewMode":[1,"view-mode"],"zoom":[8],"doc":[32],"error":[32],"loading":[32],"renderedPages":[32],"scrolledDown":[32],"singlePageModePage":[32],"visiblePages":[32],"getThumbnails":[64],"print":[64],"nextPage":[64],"previousPage":[64],"setPage":[64]},[[9,"resize","onWindowResize"]]],[1,"swirl-file-viewer-text",{"errorMessage":[1,"error-message"],"file":[1],"error":[32],"loading":[32],"text":[32]}],[1,"swirl-file-viewer-audio",{"autoplay":[4],"file":[1],"type":[1]}],[1,"swirl-file-viewer-video",{"autoplay":[4],"file":[1],"type":[1]}]]]]'),e)));
@@ -17,6 +17,7 @@ export declare class SwirlText {
17
17
  private textEl;
18
18
  componentDidRender(): void;
19
19
  onWindowResize(): void;
20
+ private handleTruncation;
20
21
  private rebalance;
21
22
  render(): any;
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/swirl-components",
3
- "version": "0.34.2",
3
+ "version": "0.34.3",
4
4
  "description": "Swirl Design System Web Component Library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -55,6 +55,7 @@
55
55
  "maska": "^1.5.0",
56
56
  "papaparse": "^5.3.2",
57
57
  "pdfjs-dist": "^2.16.105",
58
+ "shave": "^5.0.2",
58
59
  "sortablejs": "^1.15.0",
59
60
  "wc-datepicker": "^0.5.1"
60
61
  },