@getflip/swirl-components 0.38.1 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.json +1 -1
- package/dist/cjs/swirl-icon-check-small_4.cjs.entry.js +2 -1
- package/dist/cjs/swirl-table.cjs.entry.js +19 -0
- package/dist/collection/components/swirl-option-list/swirl-option-list.js +2 -1
- package/dist/collection/components/swirl-table/swirl-table.js +19 -0
- package/dist/components/swirl-option-list2.js +2 -1
- package/dist/components/swirl-table.js +19 -0
- package/dist/esm/swirl-icon-check-small_4.entry.js +2 -1
- package/dist/esm/swirl-table.entry.js +19 -0
- package/dist/swirl-components/p-514fcbf9.entry.js +1 -0
- package/dist/swirl-components/p-e5a8868e.entry.js +8 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-table/swirl-table.d.ts +4 -0
- package/package.json +1 -1
- package/dist/swirl-components/p-4c3c8ce8.entry.js +0 -8
- package/dist/swirl-components/p-b5bcf47f.entry.js +0 -1
package/components.json
CHANGED
|
@@ -3309,7 +3309,8 @@ const SwirlOptionList = class {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
syncItemsWithValue() {
|
|
3312
|
-
|
|
3312
|
+
var _a;
|
|
3313
|
+
(_a = this.items) === null || _a === void 0 ? void 0 : _a.forEach((item) => (item.selected = this.value.includes(item.value)));
|
|
3313
3314
|
}
|
|
3314
3315
|
focusItem(index) {
|
|
3315
3316
|
var _a;
|
|
@@ -107,6 +107,13 @@ const SwirlTable = class {
|
|
|
107
107
|
this.scrolled = undefined;
|
|
108
108
|
this.scrolledToEnd = undefined;
|
|
109
109
|
}
|
|
110
|
+
componentDidLoad() {
|
|
111
|
+
this.observeColumnChanges();
|
|
112
|
+
}
|
|
113
|
+
disconnectedCallback() {
|
|
114
|
+
var _a;
|
|
115
|
+
(_a = this.columnObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
116
|
+
}
|
|
110
117
|
async componentDidRender() {
|
|
111
118
|
await this.updateLayout();
|
|
112
119
|
this.updateScrolledState();
|
|
@@ -116,6 +123,18 @@ const SwirlTable = class {
|
|
|
116
123
|
await this.updateLayout();
|
|
117
124
|
this.updateScrolledState();
|
|
118
125
|
}
|
|
126
|
+
observeColumnChanges() {
|
|
127
|
+
var _a, _b, _c;
|
|
128
|
+
this.columnObserver = new MutationObserver(this.onSlotChange);
|
|
129
|
+
const columnsContainer = (_c = (_b = (_a = this.el.shadowRoot
|
|
130
|
+
.querySelector('slot[name="columns"]')).assignedElements) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c[0];
|
|
131
|
+
if (!Boolean(columnsContainer)) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.columnObserver.observe(columnsContainer, {
|
|
135
|
+
childList: true,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
119
138
|
updateScrolledState() {
|
|
120
139
|
const isMobile = utils.isMobileViewport();
|
|
121
140
|
const scrollable = this.container.scrollWidth > this.container.clientWidth;
|
|
@@ -249,7 +249,8 @@ export class SwirlOptionList {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
syncItemsWithValue() {
|
|
252
|
-
|
|
252
|
+
var _a;
|
|
253
|
+
(_a = this.items) === null || _a === void 0 ? void 0 : _a.forEach((item) => (item.selected = this.value.includes(item.value)));
|
|
253
254
|
}
|
|
254
255
|
focusItem(index) {
|
|
255
256
|
var _a;
|
|
@@ -33,6 +33,13 @@ export class SwirlTable {
|
|
|
33
33
|
this.scrolled = undefined;
|
|
34
34
|
this.scrolledToEnd = undefined;
|
|
35
35
|
}
|
|
36
|
+
componentDidLoad() {
|
|
37
|
+
this.observeColumnChanges();
|
|
38
|
+
}
|
|
39
|
+
disconnectedCallback() {
|
|
40
|
+
var _a;
|
|
41
|
+
(_a = this.columnObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
42
|
+
}
|
|
36
43
|
async componentDidRender() {
|
|
37
44
|
await this.updateLayout();
|
|
38
45
|
this.updateScrolledState();
|
|
@@ -42,6 +49,18 @@ export class SwirlTable {
|
|
|
42
49
|
await this.updateLayout();
|
|
43
50
|
this.updateScrolledState();
|
|
44
51
|
}
|
|
52
|
+
observeColumnChanges() {
|
|
53
|
+
var _a, _b, _c;
|
|
54
|
+
this.columnObserver = new MutationObserver(this.onSlotChange);
|
|
55
|
+
const columnsContainer = (_c = (_b = (_a = this.el.shadowRoot
|
|
56
|
+
.querySelector('slot[name="columns"]')).assignedElements) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c[0];
|
|
57
|
+
if (!Boolean(columnsContainer)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
this.columnObserver.observe(columnsContainer, {
|
|
61
|
+
childList: true,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
45
64
|
updateScrolledState() {
|
|
46
65
|
const isMobile = isMobileViewport();
|
|
47
66
|
const scrollable = this.container.scrollWidth > this.container.clientWidth;
|
|
@@ -3276,7 +3276,8 @@ const SwirlOptionList = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
3276
3276
|
}
|
|
3277
3277
|
}
|
|
3278
3278
|
syncItemsWithValue() {
|
|
3279
|
-
|
|
3279
|
+
var _a;
|
|
3280
|
+
(_a = this.items) === null || _a === void 0 ? void 0 : _a.forEach((item) => (item.selected = this.value.includes(item.value)));
|
|
3280
3281
|
}
|
|
3281
3282
|
focusItem(index) {
|
|
3282
3283
|
var _a;
|
|
@@ -107,6 +107,13 @@ const SwirlTable$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
107
107
|
this.scrolled = undefined;
|
|
108
108
|
this.scrolledToEnd = undefined;
|
|
109
109
|
}
|
|
110
|
+
componentDidLoad() {
|
|
111
|
+
this.observeColumnChanges();
|
|
112
|
+
}
|
|
113
|
+
disconnectedCallback() {
|
|
114
|
+
var _a;
|
|
115
|
+
(_a = this.columnObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
116
|
+
}
|
|
110
117
|
async componentDidRender() {
|
|
111
118
|
await this.updateLayout();
|
|
112
119
|
this.updateScrolledState();
|
|
@@ -116,6 +123,18 @@ const SwirlTable$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
116
123
|
await this.updateLayout();
|
|
117
124
|
this.updateScrolledState();
|
|
118
125
|
}
|
|
126
|
+
observeColumnChanges() {
|
|
127
|
+
var _a, _b, _c;
|
|
128
|
+
this.columnObserver = new MutationObserver(this.onSlotChange);
|
|
129
|
+
const columnsContainer = (_c = (_b = (_a = this.el.shadowRoot
|
|
130
|
+
.querySelector('slot[name="columns"]')).assignedElements) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c[0];
|
|
131
|
+
if (!Boolean(columnsContainer)) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.columnObserver.observe(columnsContainer, {
|
|
135
|
+
childList: true,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
119
138
|
updateScrolledState() {
|
|
120
139
|
const isMobile = isMobileViewport();
|
|
121
140
|
const scrollable = this.container.scrollWidth > this.container.clientWidth;
|
|
@@ -3305,7 +3305,8 @@ const SwirlOptionList = class {
|
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
3307
|
syncItemsWithValue() {
|
|
3308
|
-
|
|
3308
|
+
var _a;
|
|
3309
|
+
(_a = this.items) === null || _a === void 0 ? void 0 : _a.forEach((item) => (item.selected = this.value.includes(item.value)));
|
|
3309
3310
|
}
|
|
3310
3311
|
focusItem(index) {
|
|
3311
3312
|
var _a;
|
|
@@ -103,6 +103,13 @@ const SwirlTable = class {
|
|
|
103
103
|
this.scrolled = undefined;
|
|
104
104
|
this.scrolledToEnd = undefined;
|
|
105
105
|
}
|
|
106
|
+
componentDidLoad() {
|
|
107
|
+
this.observeColumnChanges();
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
var _a;
|
|
111
|
+
(_a = this.columnObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
112
|
+
}
|
|
106
113
|
async componentDidRender() {
|
|
107
114
|
await this.updateLayout();
|
|
108
115
|
this.updateScrolledState();
|
|
@@ -112,6 +119,18 @@ const SwirlTable = class {
|
|
|
112
119
|
await this.updateLayout();
|
|
113
120
|
this.updateScrolledState();
|
|
114
121
|
}
|
|
122
|
+
observeColumnChanges() {
|
|
123
|
+
var _a, _b, _c;
|
|
124
|
+
this.columnObserver = new MutationObserver(this.onSlotChange);
|
|
125
|
+
const columnsContainer = (_c = (_b = (_a = this.el.shadowRoot
|
|
126
|
+
.querySelector('slot[name="columns"]')).assignedElements) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c[0];
|
|
127
|
+
if (!Boolean(columnsContainer)) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this.columnObserver.observe(columnsContainer, {
|
|
131
|
+
childList: true,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
115
134
|
updateScrolledState() {
|
|
116
135
|
const isMobile = isMobileViewport();
|
|
117
136
|
const scrollable = this.container.scrollWidth > this.container.clientWidth;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as s,g as a}from"./p-05c15d47.js";import{i}from"./p-438b3941.js";function o(t){return"function"==typeof t?t():t}function r(){var t={};return t.promise=new Promise((function(e,s){t.resolve=e,t.reject=s})),t}const l=class{constructor(e){t(this,e),this.updateLayout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=void 0,i=void 0,l=void 0,n=[];return function(){var d=o(e),c=(new Date).getTime(),b=!a||c-a>d;a=c;for(var u=arguments.length,w=Array(u),m=0;m<u;m++)w[m]=arguments[m];if(b&&s.leading)return s.accumulate?Promise.resolve(t.call(this,[w])).then((function(t){return t[0]})):Promise.resolve(t.call.apply(t,[this].concat(w)));if(i?clearTimeout(l):i=r(),n.push(w),l=setTimeout(h.bind(this),d),s.accumulate){var v=n.length-1;return i.promise.then((function(t){return t[v]}))}return i.promise};function h(){var e=i;clearTimeout(l),Promise.resolve(s.accumulate?t.call(this,n):t.apply(this,n[n.length-1])).then(e.resolve,e.reject),n=[],i=null}}((async()=>{await this.resetEmptyRowStyles(),await this.resetRowGroupStyles(),await this.resetCellStyles(),await this.resetColumnStyles(),await this.layoutEmptyRow(),await this.layoutRowGroups(),await this.layOutColumns(),this.layOutCells()}),100),this.onScroll=()=>{this.updateScrolledState()},this.onSlotChange=async()=>{await this.updateLayout(),this.updateScrolledState(),this.updateEmptyState()},this.caption=void 0,this.emptyStateLabel="No results found.",this.label=void 0,this.empty=void 0,this.scrollable=void 0,this.scrolled=void 0,this.scrolledToEnd=void 0}componentDidLoad(){this.observeColumnChanges()}disconnectedCallback(){var t;null===(t=this.columnObserver)||void 0===t||t.disconnect()}async componentDidRender(){await this.updateLayout(),this.updateScrolledState(),this.updateEmptyState()}async onWindowResize(){await this.updateLayout(),this.updateScrolledState()}observeColumnChanges(){var t,e,s;this.columnObserver=new MutationObserver(this.onSlotChange);const a=null===(s=null===(e=(t=this.el.shadowRoot.querySelector('slot[name="columns"]')).assignedElements)||void 0===e?void 0:e.call(t))||void 0===s?void 0:s[0];Boolean(a)&&this.columnObserver.observe(a,{childList:!0})}updateScrolledState(){const t=i(),e=this.container.scrollWidth>this.container.clientWidth,s=this.container.scrollLeft>0,a=Math.ceil(this.container.clientWidth+this.container.scrollLeft)>=Math.floor(this.container.scrollWidth);e!==this.scrollable&&(e&&!t?this.container.classList.add("table__container--scrollable"):this.container.classList.remove("table__container--scrollable")),s!==this.scrolled&&(s&&!t?this.container.classList.add("table__container--scrolled"):this.container.classList.remove("table__container--scrolled")),a!==this.scrolledToEnd&&(a&&!t?this.container.classList.add("table__container--scrolled-to-end"):this.container.classList.remove("table__container--scrolled-to-end"))}getColumns(){return Array.from(this.el.querySelectorAll("swirl-table-column"))}getCells(){return Array.from(this.el.querySelectorAll("swirl-table-cell"))}async resetEmptyRowStyles(){const t=this.el.shadowRoot.querySelector(".table__empty-row");Boolean(t)&&(t.style.width="",await new Promise((t=>setTimeout(t))))}async resetRowGroupStyles(){Array.from(this.el.querySelectorAll("swirl-table-row-group")).forEach((t=>{t.shadowRoot.querySelector(".table-row-group__header-row").style.width=""})),await new Promise((t=>setTimeout(t)))}async resetColumnStyles(){this.getColumns().forEach((t=>{t.classList.remove("table-column--has-shadow"),t.style.right="",t.style.left="",t.style.position="",t.style.zIndex=""})),await new Promise((t=>setTimeout(t)))}async resetCellStyles(){this.getCells().forEach((t=>{t.classList.remove("table-cell--has-shadow"),t.style.flex="",t.style.left="",t.style.right="",t.style.position="",t.style.zIndex=""})),await new Promise((t=>setTimeout(t)))}async layoutEmptyRow(){const t=this.el.shadowRoot.querySelector(".table__empty-row");if(!Boolean(t))return;const e=`${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;t.style.width=e}async layoutRowGroups(){const t=Array.from(this.el.querySelectorAll("swirl-table-row-group")),e=`${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;t.forEach((t=>{t.shadowRoot.querySelector(".table-row-group__header-row").style.width=e}))}async layOutColumns(){const t=this.getColumns(),e=this.container.clientWidth;t.forEach(((s,a)=>{var o,r;if(!s.sticky||i())return;const l=a<=Math.floor(t.length/2),n=null===(o=t[a+1])||void 0===o?void 0:o.sticky,h=null===(r=t[a-1])||void 0===r?void 0:r.sticky;s.style.zIndex=l&&n?"1":"",l&&!n||!l&&!h?s.classList.add(l?"table-column--has-shadow-right":"table-column--has-shadow-left"):(s.classList.remove("table-column--has-shadow-right"),s.classList.remove("table-column--has-shadow-left"));const d=l?s.offsetLeft:Math.max(0,e-(s.offsetLeft+s.getBoundingClientRect().width));s.style.position="sticky",l?s.style.left=`${d}px`:s.style.right=`${d}px`})),await new Promise((t=>setTimeout(t)))}layOutCells(){const t=this.getColumns(),e=this.getCells();t.forEach(((s,a)=>{var o,r;const l=e.filter(((e,s)=>(a-s)%t.length==0)),n=a<=Math.floor(t.length/2),h=n?window.getComputedStyle(s).left:window.getComputedStyle(s).right,d=null===(o=t[a+1])||void 0===o?void 0:o.sticky,c=null===(r=t[a-1])||void 0===r?void 0:r.sticky,b=s.sticky,u=s.width||`${s.getBoundingClientRect().width}px`;l.forEach((t=>{const e=b&&n,s=b&&!n,a=n&&d;if(t.style.flex=Boolean(u)?`0 0 ${u}`:"",i())return t.classList.remove("table-cell--has-shadow"),t.style.left="",t.style.right="",t.style.position="",void(t.style.zIndex="");t.style.left=e?h:"",t.style.right=s?h:"",t.style.position=b?"sticky":"",t.style.zIndex=a?"1":"",b&&(n&&!d||!n&&!c)?t.classList.add(n?"table-cell--has-shadow-right":"table-cell--has-shadow-left"):(t.classList.remove("table-cell--has-shadow-right"),t.classList.remove("table-cell--has-shadow-left"))}))}))}updateEmptyState(){const t=this.el.querySelector('[slot="rows"]');this.empty=!Boolean(t)||0===t.children.length}render(){return e(s,null,e("div",{class:"table"},e("div",{class:"table__container",onScroll:this.onScroll,ref:t=>this.container=t},e("div",{"aria-describedby":Boolean(this.caption)?"caption":void 0,"aria-label":this.label,role:"table",class:"table__table"},this.caption&&e("swirl-visually-hidden",null,e("div",{id:"caption"},this.caption)),e("div",{role:"rowgroup"},e("div",{class:"table__header",role:"row"},e("slot",{name:"columns",onSlotchange:this.onSlotChange}))),e("div",{class:"table__body"},e("slot",{name:"rows",onSlotchange:this.onSlotChange}),this.empty&&e("div",{class:"table__empty-row",role:"row"},e("div",{"aria-colspan":this.getColumns().length,class:"table__empty-row-cell",role:"cell"},e("swirl-text",{align:"center",size:"sm"},this.emptyStateLabel))))))))}get el(){return a(this)}};l.style=":host{position:relative;display:block}:host *{box-sizing:border-box}.table__container{position:relative;overflow:auto;width:100%}.table__container--scrolled{--swirl-table-sticky-right-shadow:0.0625rem 0 0 0 var(--s-border-default),\n -0.0625rem 0 0 0 var(--s-border-default),\n 0 0.25rem 1rem rgba(25, 26, 28, 0.04),\n 0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__container--scrollable:not(.table__container--scrolled-to-end){--swirl-table-sticky-left-shadow:0.0625rem 0 0 0 var(--s-border-default),\n -0.0625rem 0 0 0 var(--s-border-default),\n 0 0.25rem 1rem rgba(25, 26, 28, 0.04),\n 0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header ::slotted(*){display:flex}.table__empty-row{display:flex}.table__empty-row-cell{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-right:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);border-left:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.table__empty-row-cell>*{flex-grow:1}";export{l as swirl_table}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{r as t,h as i,F as o,c as e,H as n,g as r}from"./p-05c15d47.js";import{c as s}from"./p-b7898321.js";import{c as l,q as a,g as h}from"./p-438b3941.js";const c=class{constructor(i){t(this,i),this.size=24}render(){const t=20===this.size?24:this.size,e=s("swirl-icon",`swirl-icon--size-${this.size}`);return i("svg",{class:e,fill:"none",height:this.size,part:"icon",viewBox:`0 0 ${t} ${t}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},16===this.size&&i(o,null,i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4142 4.91924C12.8047 5.30976 12.8047 5.94293 12.4142 6.33345L7.08086 11.6667C6.69033 12.0572 6.05717 12.0572 5.66664 11.6667L3.70711 9.70707C3.31658 9.31655 3.31658 8.68338 3.70711 8.29286C4.09763 7.90233 4.7308 7.90233 5.12132 8.29286L6.37375 9.54539L11 4.91924C11.3905 4.52871 12.0237 4.52871 12.4142 4.91924Z",fill:"currentColor"})),(20===this.size||24===this.size)&&i(o,null,i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.6213 7.37879C19.2071 7.96458 19.2071 8.91433 18.6213 9.50011L10.6213 17.5C10.0355 18.0858 9.08577 18.0858 8.49998 17.5L5.56068 14.5605C4.97489 13.9748 4.97489 13.025 5.56068 12.4392C6.14646 11.8534 7.09621 11.8534 7.682 12.4392L9.56064 14.318L16.5 7.37879C17.0858 6.79301 18.0355 6.79301 18.6213 7.37879Z",fill:"currentColor"})),28===this.size&&i(o,null,i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.7248 8.60863C22.4083 9.29205 22.4083 10.4001 21.7248 11.0835L12.3915 20.4167C11.7081 21.1001 10.6001 21.1001 9.91663 20.4167L6.48744 16.9873C5.80403 16.3039 5.80403 15.1959 6.48744 14.5125C7.17086 13.8291 8.2789 13.8291 8.96232 14.5125L11.1541 16.7044L19.25 8.60863C19.9334 7.92521 21.0414 7.92521 21.7248 8.60863Z",fill:"currentColor"})))}};c.style=":host{display:inline-flex}";const u=class{constructor(i){t(this,i),this.size=24}render(){const t=20===this.size?24:this.size,e=s("swirl-icon",`swirl-icon--size-${this.size}`);return i("svg",{class:e,fill:"none",height:this.size,part:"icon",viewBox:`0 0 ${t} ${t}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},16===this.size&&i(o,null,i("rect",{x:"9",y:"3",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"9",y:"7",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"9",y:"11",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"5",y:"3",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"5",y:"7",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"5",y:"11",width:"2",height:"2",rx:"1",fill:"currentColor"})),(20===this.size||24===this.size)&&i(o,null,i("rect",{x:"13.5",y:"4.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"13.5",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"13.5",y:"16.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"7.5",y:"4.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"7.5",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"7.5",y:"16.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"})),28===this.size&&i(o,null,i("rect",{x:"15.75",y:"5.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"15.75",y:"12.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"15.75",y:"19.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"8.75",y:"5.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"8.75",y:"12.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"8.75",y:"19.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"})))}};
|
|
2
|
+
/**!
|
|
3
|
+
* Sortable 1.15.0
|
|
4
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
5
|
+
* @author owenm <owen23355@gmail.com>
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/
|
|
8
|
+
function d(t,i){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.push.apply(o,e)}return o}function f(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?d(Object(o),!0).forEach((function(i){v(t,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))}))}return t}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function v(t,i,o){return i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o,t}function p(){return p=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},p.apply(this,arguments)}function g(t,i){if(null==t)return{};var o,e,n=function(t,i){if(null==t)return{};var o,e,n={},r=Object.keys(t);for(e=0;e<r.length;e++)i.indexOf(o=r[e])>=0||(n[o]=t[o]);return n}(t,i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(e=0;e<r.length;e++)i.indexOf(o=r[e])>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function w(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}u.style=":host{display:inline-flex}";var b=w(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),x=w(/Edge/i),y=w(/firefox/i),_=w(/safari/i)&&!w(/chrome/i)&&!w(/android/i),E=w(/iP(ad|od|hone)/i),I=w(/chrome/i)&&w(/android/i),C={capture:!1,passive:!1};function S(t,i,o){t.addEventListener(i,o,!b&&C)}function k(t,i,o){t.removeEventListener(i,o,!b&&C)}function D(t,i){if(i){if(">"===i[0]&&(i=i.substring(1)),t)try{if(t.matches)return t.matches(i);if(t.msMatchesSelector)return t.msMatchesSelector(i);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(i)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function T(t,i,o,e){if(t){o=o||document;do{if(null!=i&&(">"===i[0]?t.parentNode===o&&D(t,i):D(t,i))||e&&t===o)return t;if(t===o)break}while(t=M(t))}return null}var O,z=/\s+/g;function A(t,i,o){if(t&&i)if(t.classList)t.classList[o?"add":"remove"](i);else{var e=(" "+t.className+" ").replace(z," ").replace(" "+i+" "," ");t.className=(e+(o?" "+i:"")).replace(z," ")}}function j(t,i,o){var e=t&&t.style;if(e){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),void 0===i?o:o[i];i in e||-1!==i.indexOf("webkit")||(i="-webkit-"+i),e[i]=o+("string"==typeof o?"":"px")}}function B(t,i){var o="";if("string"==typeof t)o=t;else do{var e=j(t,"transform");e&&"none"!==e&&(o=e+" "+o)}while(!i&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function L(t,i,o){if(t){var e=t.getElementsByTagName(i),n=0,r=e.length;if(o)for(;n<r;n++)o(e[n],n);return e}return[]}function $(){return document.scrollingElement||document.documentElement}function N(t,i,o,e,n){if(t.getBoundingClientRect||t===window){var r,s,l,a,h,c,u;if(t!==window&&t.parentNode&&t!==$()?(s=(r=t.getBoundingClientRect()).top,l=r.left,a=r.bottom,h=r.right,c=r.height,u=r.width):(s=0,l=0,a=window.innerHeight,h=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(i||o)&&t!==window&&(n=n||t.parentNode,!b))do{if(n&&n.getBoundingClientRect&&("none"!==j(n,"transform")||o&&"static"!==j(n,"position"))){var d=n.getBoundingClientRect();s-=d.top+parseInt(j(n,"border-top-width")),l-=d.left+parseInt(j(n,"border-left-width")),a=s+r.height,h=l+r.width;break}}while(n=n.parentNode);if(e&&t!==window){var f=B(n||t),m=f&&f.a,v=f&&f.d;f&&(a=(s/=v)+(c/=v),h=(l/=m)+(u/=m))}return{top:s,left:l,bottom:a,right:h,width:u,height:c}}}function P(t,i,o){for(var e=G(t,!0),n=N(t)[i];e;){var r=N(e)[o];if(!("top"===o||"left"===o?n>=r:n<=r))return e;if(e===$())break;e=G(e,!1)}return!1}function F(t,i,o,e){for(var n=0,r=0,s=t.children;r<s.length;){if("none"!==s[r].style.display&&s[r]!==Kt.ghost&&(e||s[r]!==Kt.dragged)&&T(s[r],o.draggable,t,!1)){if(n===i)return s[r];n++}r++}return null}function H(t,i){for(var o=t.lastElementChild;o&&(o===Kt.ghost||"none"===j(o,"display")||i&&!D(o,i));)o=o.previousElementSibling;return o||null}function U(t,i){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Kt.clone||i&&!D(t,i)||o++;return o}function V(t){var i=0,o=0,e=$();if(t)do{var n=B(t);i+=t.scrollLeft*n.a,o+=t.scrollTop*n.d}while(t!==e&&(t=t.parentNode));return[i,o]}function G(t,i){if(!t||!t.getBoundingClientRect)return $();var o=t,e=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=j(o);if(o.clientWidth<o.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!o.getBoundingClientRect||o===document.body)return $();if(e||i)return o;e=!0}}}while(o=o.parentNode);return $()}function Z(t,i){return Math.round(t.top)===Math.round(i.top)&&Math.round(t.left)===Math.round(i.left)&&Math.round(t.height)===Math.round(i.height)&&Math.round(t.width)===Math.round(i.width)}function K(t,i){return function(){if(!O){var o=arguments,e=this;1===o.length?t.call(e,o[0]):t.apply(e,o),O=setTimeout((function(){O=void 0}),i)}}}function W(t,i,o){t.scrollLeft+=i,t.scrollTop+=o}function Y(t){var i=window.Polymer,o=window.jQuery||window.Zepto;return i&&i.dom?i.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}var R="Sortable"+(new Date).getTime();var X=[],q={initializeByDefault:!0},J={mount:function(t){for(var i in q)q.hasOwnProperty(i)&&!(i in t)&&(t[i]=q[i]);X.forEach((function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),X.push(t)},pluginEvent:function(t,i,o){var e=this;this.eventCanceled=!1,o.cancel=function(){e.eventCanceled=!0};var n=t+"Global";X.forEach((function(e){i[e.pluginName]&&(i[e.pluginName][n]&&i[e.pluginName][n](f({sortable:i},o)),i.options[e.pluginName]&&i[e.pluginName][t]&&i[e.pluginName][t](f({sortable:i},o)))}))},initializePlugins:function(t,i,o){for(var e in X.forEach((function(e){var n=e.pluginName;if(t.options[n]||e.initializeByDefault){var r=new e(t,i,t.options);r.sortable=t,r.options=t.options,t[n]=r,p(o,r.defaults)}})),t.options)if(t.options.hasOwnProperty(e)){var n=this.modifyOption(t,e,t.options[e]);void 0!==n&&(t.options[e]=n)}},getEventProperties:function(t,i){var o={};return X.forEach((function(e){"function"==typeof e.eventProperties&&p(o,e.eventProperties.call(i[e.pluginName],t))})),o},modifyOption:function(t,i,o){var e;return X.forEach((function(n){t[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[i]&&(e=n.optionListeners[i].call(t[n.pluginName],o))})),e}},Q=["evt"],tt=function(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=o.evt,n=g(o,Q);J.pluginEvent.bind(Kt)(t,i,f({dragEl:ot,parentEl:et,ghostEl:nt,rootEl:rt,nextEl:st,lastDownEl:lt,cloneEl:at,cloneHidden:ht,dragStarted:_t,putSortable:vt,activeSortable:Kt.active,originalEvent:e,oldIndex:ct,oldDraggableIndex:dt,newIndex:ut,newDraggableIndex:ft,hideGhostForTarget:Ut,unhideGhostForTarget:Vt,cloneNowHidden:function(){ht=!0},cloneNowShown:function(){ht=!1},dispatchSortableEvent:function(t){it({sortable:i,name:t,originalEvent:e})}},n))};function it(t){!function(t){var i=t.sortable,o=t.rootEl,e=t.name,n=t.targetEl,r=t.cloneEl,s=t.toEl,l=t.fromEl,a=t.oldIndex,h=t.newIndex,c=t.oldDraggableIndex,u=t.newDraggableIndex,d=t.originalEvent,m=t.putSortable,v=t.extraEventProperties;if(i=i||o&&o[R]){var p,g=i.options,w="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||b||x?(p=document.createEvent("Event")).initEvent(e,!0,!0):p=new CustomEvent(e,{bubbles:!0,cancelable:!0}),p.to=s||o,p.from=l||o,p.item=n||o,p.clone=r,p.oldIndex=a,p.newIndex=h,p.oldDraggableIndex=c,p.newDraggableIndex=u,p.originalEvent=d,p.pullMode=m?m.lastPutMode:void 0;var y=f(f({},v),J.getEventProperties(e,i));for(var _ in y)p[_]=y[_];o&&o.dispatchEvent(p),g[w]&&g[w].call(i,p)}}(f({putSortable:vt,cloneEl:at,targetEl:ot,rootEl:rt,oldIndex:ct,oldDraggableIndex:dt,newIndex:ut,newDraggableIndex:ft},t))}var ot,et,nt,rt,st,lt,at,ht,ct,ut,dt,ft,mt,vt,pt,gt,wt,bt,xt,yt,_t,Et,It,Ct,St,kt=!1,Dt=!1,Mt=[],Tt=!1,Ot=!1,zt=[],At=!1,jt=[],Bt="undefined"!=typeof document,Lt=E,$t=x||b?"cssFloat":"float",Nt=Bt&&!I&&!E&&"draggable"in document.createElement("div"),Pt=function(){if(Bt){if(b)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ft=function(t,i){var o=j(t),e=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),n=F(t,0,i),r=F(t,1,i),s=n&&j(n),l=r&&j(r),a=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(n).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+N(r).width;return"flex"===o.display?"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal":"grid"===o.display?o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":n&&s.float&&"none"!==s.float?!r||"both"!==l.clear&&l.clear!==("left"===s.float?"left":"right")?"horizontal":"vertical":n&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||a>=e&&"none"===o[$t]||r&&"none"===o[$t]&&a+h>e)?"vertical":"horizontal"},Ht=function(t){function i(t,o){return function(e,n,r,s){if(null==t&&(o||e.options.group.name&&n.options.group.name&&e.options.group.name===n.options.group.name))return!0;if(null==t||!1===t)return!1;if(o&&"clone"===t)return t;if("function"==typeof t)return i(t(e,n,r,s),o)(e,n,r,s);var l=(o?e:n).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var o={},e=t.group;e&&"object"==m(e)||(e={name:e}),o.name=e.name,o.checkPull=i(e.pull,!0),o.checkPut=i(e.put),o.revertClone=e.revertClone,t.group=o},Ut=function(){!Pt&&nt&&j(nt,"display","none")},Vt=function(){!Pt&&nt&&j(nt,"display","")};Bt&&!I&&document.addEventListener("click",(function(t){if(Dt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Dt=!1,!1}),!0);var Gt=function(t){if(ot){var i=(n=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,Mt.some((function(t){var i=t[R].options.emptyInsertThreshold;if(i&&!H(t)){var o=N(t);return n>=o.left-i&&n<=o.right+i&&r>=o.top-i&&r<=o.bottom+i?s=t:void 0}})),s);if(i){var o={};for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);o.target=o.rootEl=i,o.preventDefault=void 0,o.stopPropagation=void 0,i[R]._onDragOver(o)}}var n,r,s},Zt=function(t){ot&&ot.parentNode[R]._isOutsideThisEl(t.target)};function Kt(t,i){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=i=p({},i),t[R]=this;var o,e,n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ft(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,i){t.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Kt.supportPointer&&"PointerEvent"in window&&!_,emptyInsertThreshold:5};for(var r in J.initializePlugins(this,t,n),n)!(r in i)&&(i[r]=n[r]);for(var s in Ht(i),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!i.forceFallback&&Nt,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?S(t,"pointerdown",this._onTapStart):(S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Mt.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),p(this,(e=[],{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==j(t,"display")&&t!==Kt.ghost){e.push({target:t,rect:N(t)});var i=f({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=B(t,!0);o&&(i.top-=o.f,i.left-=o.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,i){for(var o in t)if(t.hasOwnProperty(o))for(var e in i)if(i.hasOwnProperty(e)&&i[e]===t[o][e])return Number(o);return-1}(e,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation)return clearTimeout(o),void("function"==typeof t&&t());var n=!1,r=0;e.forEach((function(t){var o=0,e=t.target,s=e.fromRect,l=N(e),a=e.prevFromRect,h=e.prevToRect,c=t.rect,u=B(e,!0);u&&(l.top-=u.f,l.left-=u.e),e.toRect=l,e.thisAnimationDuration&&Z(a,l)&&!Z(s,l)&&(c.top-l.top)/(c.left-l.left)==(s.top-l.top)/(s.left-l.left)&&(o=function(t,i,o,e){return Math.sqrt(Math.pow(i.top-t.top,2)+Math.pow(i.left-t.left,2))/Math.sqrt(Math.pow(i.top-o.top,2)+Math.pow(i.left-o.left,2))*e.animation}(c,a,h,i.options)),Z(l,s)||(e.prevFromRect=s,e.prevToRect=l,o||(o=i.options.animation),i.animate(e,c,l,o)),o&&(n=!0,r=Math.max(r,o),clearTimeout(e.animationResetTimer),e.animationResetTimer=setTimeout((function(){e.animationTime=0,e.prevFromRect=null,e.fromRect=null,e.prevToRect=null,e.thisAnimationDuration=null}),o),e.thisAnimationDuration=o)})),clearTimeout(o),n?o=setTimeout((function(){"function"==typeof t&&t()}),r):"function"==typeof t&&t(),e=[]},animate:function(t,i,o,e){if(e){j(t,"transition",""),j(t,"transform","");var n=B(this.el),r=(i.left-o.left)/(n&&n.a||1),s=(i.top-o.top)/(n&&n.d||1);t.animatingX=!!r,t.animatingY=!!s,j(t,"transform","translate3d("+r+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),j(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),j(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){j(t,"transition",""),j(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function Wt(t,i,o,e,n,r,s,l){var a,h,c=t[R],u=c.options.onMove;return!window.CustomEvent||b||x?(a=document.createEvent("Event")).initEvent("move",!0,!0):a=new CustomEvent("move",{bubbles:!0,cancelable:!0}),a.to=i,a.from=t,a.dragged=o,a.draggedRect=e,a.related=n||i,a.relatedRect=r||N(i),a.willInsertAfter=l,a.originalEvent=s,t.dispatchEvent(a),u&&(h=u.call(c,a,s)),h}function Yt(t){t.draggable=!1}function Rt(){At=!1}function Xt(t){for(var i=t.tagName+t.className+t.src+t.href+t.textContent,o=i.length,e=0;o--;)e+=i.charCodeAt(o);return e.toString(36)}function qt(t){return setTimeout(t,0)}function Jt(t){return clearTimeout(t)}Kt.prototype={constructor:Kt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Et=null)},_getDirection:function(t,i){return"function"==typeof this.options.direction?this.options.direction.call(this,t,i,ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,o=this.el,e=this.options,n=e.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(s||t).target,a=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,h=e.filter;if(function(t){jt.length=0;for(var i=t.getElementsByTagName("input"),o=i.length;o--;){var e=i[o];e.checked&&jt.push(e)}}(o),!ot&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||e.disabled)&&!a.isContentEditable&&(this.nativeDraggable||!_||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=T(l,e.draggable,o,!1))&&l.animated||lt===l)){if(ct=U(l),dt=U(l,e.draggable),"function"==typeof h){if(h.call(this,t,l,this))return it({sortable:i,rootEl:a,name:"filter",targetEl:l,toEl:o,fromEl:o}),tt("filter",i,{evt:t}),void(n&&t.cancelable&&t.preventDefault())}else if(h&&(h=h.split(",").some((function(e){if(e=T(a,e.trim(),o,!1))return it({sortable:i,rootEl:e,name:"filter",targetEl:l,fromEl:o,toEl:o}),tt("filter",i,{evt:t}),!0}))))return void(n&&t.cancelable&&t.preventDefault());e.handle&&!T(a,e.handle,o,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,i,o){var e,n=this,r=n.el,s=n.options,l=r.ownerDocument;if(o&&!ot&&o.parentNode===r){var a=N(o);if(rt=r,et=(ot=o).parentNode,st=ot.nextSibling,lt=o,mt=s.group,Kt.dragged=ot,xt=(pt={target:ot,clientX:(i||t).clientX,clientY:(i||t).clientY}).clientX-a.left,yt=pt.clientY-a.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,ot.style["will-change"]="all",e=function(){tt("delayEnded",n,{evt:t}),Kt.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!y&&n.nativeDraggable&&(ot.draggable=!0),n._triggerDragStart(t,i),it({sortable:n,name:"choose",originalEvent:t}),A(ot,s.chosenClass,!0))},s.ignore.split(",").forEach((function(t){L(ot,t.trim(),Yt)})),S(l,"dragover",Gt),S(l,"mousemove",Gt),S(l,"touchmove",Gt),S(l,"mouseup",n._onDrop),S(l,"touchend",n._onDrop),S(l,"touchcancel",n._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),tt("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!i||this.nativeDraggable&&(x||b))e();else{if(Kt.eventCanceled)return void this._onDrop();S(l,"mouseup",n._disableDelayedDrag),S(l,"touchend",n._disableDelayedDrag),S(l,"touchcancel",n._disableDelayedDrag),S(l,"mousemove",n._delayedDragTouchMoveHandler),S(l,"touchmove",n._delayedDragTouchMoveHandler),s.supportPointer&&S(l,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(e,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&Yt(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;k(t,"mouseup",this._disableDelayedDrag),k(t,"touchend",this._disableDelayedDrag),k(t,"touchcancel",this._disableDelayedDrag),k(t,"mousemove",this._delayedDragTouchMoveHandler),k(t,"touchmove",this._delayedDragTouchMoveHandler),k(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||"touch"==t.pointerType&&t,!this.nativeDraggable||i?S(document,this.options.supportPointer?"pointermove":i?"touchmove":"mousemove",this._onTouchMove):(S(ot,"dragend",this),S(rt,"dragstart",this._onDragStart));try{document.selection?qt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,i){if(kt=!1,rt&&ot){tt("dragStarted",this,{evt:i}),this.nativeDraggable&&S(document,"dragover",Zt);var o=this.options;!t&&A(ot,o.dragClass,!1),A(ot,o.ghostClass,!0),Kt.active=this,t&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(gt){this._lastX=gt.clientX,this._lastY=gt.clientY,Ut();for(var t=document.elementFromPoint(gt.clientX,gt.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(gt.clientX,gt.clientY))!==i;)i=t;if(ot.parentNode[R]._isOutsideThisEl(t),i)do{if(i[R]&&i[R]._onDragOver({clientX:gt.clientX,clientY:gt.clientY,target:t,rootEl:i})&&!this.options.dragoverBubble)break;t=i}while(i=i.parentNode);Vt()}},_onTouchMove:function(t){if(pt){var i=this.options,o=i.fallbackTolerance,e=i.fallbackOffset,n=t.touches?t.touches[0]:t,r=nt&&B(nt,!0),s=nt&&r&&r.a,l=nt&&r&&r.d,a=Lt&&St&&V(St),h=(n.clientX-pt.clientX+e.x)/(s||1)+(a?a[0]-zt[0]:0)/(s||1),c=(n.clientY-pt.clientY+e.y)/(l||1)+(a?a[1]-zt[1]:0)/(l||1);if(!Kt.active&&!kt){if(o&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(nt){r?(r.e+=h-(wt||0),r.f+=c-(bt||0)):r={a:1,b:0,c:0,d:1,e:h,f:c};var u="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");j(nt,"webkitTransform",u),j(nt,"mozTransform",u),j(nt,"msTransform",u),j(nt,"transform",u),wt=h,bt=c,gt=n}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!nt){var t=this.options.fallbackOnBody?document.body:rt,i=N(ot,!0,Lt,!0,t),o=this.options;if(Lt){for(St=t;"static"===j(St,"position")&&"none"===j(St,"transform")&&St!==document;)St=St.parentNode;St!==document.body&&St!==document.documentElement?(St===document&&(St=$()),i.top+=St.scrollTop,i.left+=St.scrollLeft):St=$(),zt=V(St)}A(nt=ot.cloneNode(!0),o.ghostClass,!1),A(nt,o.fallbackClass,!0),A(nt,o.dragClass,!0),j(nt,"transition",""),j(nt,"transform",""),j(nt,"box-sizing","border-box"),j(nt,"margin",0),j(nt,"top",i.top),j(nt,"left",i.left),j(nt,"width",i.width),j(nt,"height",i.height),j(nt,"opacity","0.8"),j(nt,"position",Lt?"absolute":"fixed"),j(nt,"zIndex","100000"),j(nt,"pointerEvents","none"),Kt.ghost=nt,t.appendChild(nt),j(nt,"transform-origin",xt/parseInt(nt.style.width)*100+"% "+yt/parseInt(nt.style.height)*100+"%")}},_onDragStart:function(t,i){var o=this,e=t.dataTransfer,n=o.options;tt("dragStart",this,{evt:t}),Kt.eventCanceled?this._onDrop():(tt("setupClone",this),Kt.eventCanceled||((at=Y(ot)).removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),A(at,this.options.chosenClass,!1),Kt.clone=at),o.cloneId=qt((function(){tt("clone",o),Kt.eventCanceled||(o.options.removeCloneOnHide||rt.insertBefore(at,ot),o._hideClone(),it({sortable:o,name:"clone"}))})),!i&&A(ot,n.dragClass,!0),i?(Dt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(k(document,"mouseup",o._onDrop),k(document,"touchend",o._onDrop),k(document,"touchcancel",o._onDrop),e&&(e.effectAllowed="move",n.setData&&n.setData.call(o,e,ot)),S(document,"drop",o),j(ot,"transform","translateZ(0)")),kt=!0,o._dragStartId=qt(o._dragStarted.bind(o,i,t)),S(document,"selectstart",o),_t=!0,_&&j(document.body,"user-select","none"))},_onDragOver:function(t){var i,o,e,n,r=this.el,s=t.target,l=this.options,a=l.group,h=Kt.active,c=mt===a,u=l.sort,d=vt||h,m=this,v=!1;if(!At){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=T(s,l.draggable,r,!0),O("dragOver"),Kt.eventCanceled)return v;if(ot.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||m._ignoreWhileAnimating===s)return B(!1);if(Dt=!1,h&&!l.disabled&&(c?u||(e=et!==rt):vt===this||(this.lastPutMode=mt.checkPull(this,h,ot,t))&&a.checkPut(this,h,ot,t))){if(n="vertical"===this._getDirection(t,s),i=N(ot),O("dragOverValid"),Kt.eventCanceled)return v;if(e)return et=rt,z(),this._hideClone(),O("revert"),Kt.eventCanceled||(st?rt.insertBefore(ot,st):rt.appendChild(ot)),B(!0);var p=H(r,l.draggable);if(!p||function(t,i,o){var e=N(H(o.el,o.options.draggable));return i?t.clientX>e.right+10||t.clientX<=e.right&&t.clientY>e.bottom&&t.clientX>=e.left:t.clientX>e.right&&t.clientY>e.top||t.clientX<=e.right&&t.clientY>e.bottom+10}(t,n,this)&&!p.animated){if(p===ot)return B(!1);if(p&&r===t.target&&(s=p),s&&(o=N(s)),!1!==Wt(rt,r,ot,i,s,o,t,!!s))return z(),p&&p.nextSibling?r.insertBefore(ot,p.nextSibling):r.appendChild(ot),et=r,L(),B(!0)}else if(p&&function(t,i,o){var e=N(F(o.el,0,o.options,!0));return i?t.clientX<e.left-10||t.clientY<e.top&&t.clientX<e.right:t.clientY<e.top-10||t.clientY<e.bottom&&t.clientX<e.left}(t,n,this)){var g=F(r,0,l,!0);if(g===ot)return B(!1);if(o=N(s=g),!1!==Wt(rt,r,ot,i,s,o,t,!1))return z(),r.insertBefore(ot,g),et=r,L(),B(!0)}else if(s.parentNode===r){o=N(s);var w,b,x,y=ot.parentNode!==r,_=!function(t,i,o){var e=o?t.left:t.top,n=o?i.left:i.top;return e===n||(o?t.right:t.bottom)===(o?i.right:i.bottom)||e+(o?t.width:t.height)/2===n+(o?i.width:i.height)/2}(ot.animated&&ot.toRect||i,s.animated&&s.toRect||o,n),E=n?"top":"left",I=P(s,"top","top")||P(ot,"top","top"),C=I?I.scrollTop:void 0;if(Et!==s&&(b=o[E],Tt=!1,Ot=!_&&l.invertSwap||y),w=function(t,i,o,e,n,r,s,l){var a=e?t.clientY:t.clientX,h=e?o.height:o.width,c=e?o.top:o.left,u=e?o.bottom:o.right,d=!1;if(!s)if(l&&Ct<h*n){if(!Tt&&(1===It?a>c+h*r/2:a<u-h*r/2)&&(Tt=!0),Tt)d=!0;else if(1===It?a<c+Ct:a>u-Ct)return-It}else if(a>c+h*(1-n)/2&&a<u-h*(1-n)/2)return function(t){return U(ot)<U(t)?1:-1}(i);return(d=d||s)&&(a<c+h*r/2||a>u-h*r/2)?a>c+h/2?1:-1:0}(t,s,o,n,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ot,Et===s),0!==w){var S=U(ot);do{x=et.children[S-=w]}while(x&&("none"===j(x,"display")||x===nt))}if(0===w||x===s)return B(!1);Et=s,It=w;var k=s.nextElementSibling,D=!1,M=Wt(rt,r,ot,i,s,o,t,D=1===w);if(!1!==M)return 1!==M&&-1!==M||(D=1===M),At=!0,setTimeout(Rt,30),z(),D&&!k?r.appendChild(ot):s.parentNode.insertBefore(ot,D?k:s),I&&W(I,0,C-I.scrollTop),et=ot.parentNode,void 0===b||Ot||(Ct=Math.abs(b-N(s)[E])),L(),B(!0)}if(r.contains(ot))return B(!1)}return!1}function O(l,a){tt(l,m,f({evt:t,isOwner:c,axis:n?"vertical":"horizontal",revert:e,dragRect:i,targetRect:o,canSort:u,fromSortable:d,target:s,completed:B,onMove:function(o,e){return Wt(rt,r,ot,i,o,N(o),t,e)},changed:L},a))}function z(){O("dragOverAnimationCapture"),m.captureAnimationState(),m!==d&&d.captureAnimationState()}function B(i){return O("dragOverCompleted",{insertion:i}),i&&(c?h._hideClone():h._showClone(m),m!==d&&(A(ot,vt?vt.options.ghostClass:h.options.ghostClass,!1),A(ot,l.ghostClass,!0)),vt!==m&&m!==Kt.active?vt=m:m===Kt.active&&vt&&(vt=null),d===m&&(m._ignoreWhileAnimating=s),m.animateAll((function(){O("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(s===ot&&!ot.animated||s===r&&!s.animated)&&(Et=null),l.dragoverBubble||t.rootEl||s===document||(ot.parentNode[R]._isOutsideThisEl(t.target),!i&&Gt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function L(){ut=U(ot),ft=U(ot,l.draggable),it({sortable:m,name:"change",toEl:r,newIndex:ut,newDraggableIndex:ft,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){k(document,"mousemove",this._onTouchMove),k(document,"touchmove",this._onTouchMove),k(document,"pointermove",this._onTouchMove),k(document,"dragover",Gt),k(document,"mousemove",Gt),k(document,"touchmove",Gt)},_offUpEvents:function(){var t=this.el.ownerDocument;k(t,"mouseup",this._onDrop),k(t,"touchend",this._onDrop),k(t,"pointerup",this._onDrop),k(t,"touchcancel",this._onDrop),k(document,"selectstart",this)},_onDrop:function(t){var i=this.el,o=this.options;ut=U(ot),ft=U(ot,o.draggable),tt("drop",this,{evt:t}),et=ot&&ot.parentNode,ut=U(ot),ft=U(ot,o.draggable),Kt.eventCanceled||(kt=!1,Ot=!1,Tt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Jt(this.cloneId),Jt(this._dragStartId),this.nativeDraggable&&(k(document,"drop",this),k(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&j(document.body,"user-select",""),j(ot,"transform",""),t&&(_t&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),nt&&nt.parentNode&&nt.parentNode.removeChild(nt),(rt===et||vt&&"clone"!==vt.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),ot&&(this.nativeDraggable&&k(ot,"dragend",this),Yt(ot),ot.style["will-change"]="",_t&&!kt&&A(ot,vt?vt.options.ghostClass:this.options.ghostClass,!1),A(ot,this.options.chosenClass,!1),it({sortable:this,name:"unchoose",toEl:et,newIndex:null,newDraggableIndex:null,originalEvent:t}),rt!==et?(ut>=0&&(it({rootEl:et,name:"add",toEl:et,fromEl:rt,originalEvent:t}),it({sortable:this,name:"remove",toEl:et,originalEvent:t}),it({rootEl:et,name:"sort",toEl:et,fromEl:rt,originalEvent:t}),it({sortable:this,name:"sort",toEl:et,originalEvent:t})),vt&&vt.save()):ut!==ct&&ut>=0&&(it({sortable:this,name:"update",toEl:et,originalEvent:t}),it({sortable:this,name:"sort",toEl:et,originalEvent:t})),Kt.active&&(null!=ut&&-1!==ut||(ut=ct,ft=dt),it({sortable:this,name:"end",toEl:et,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){tt("nulling",this),rt=ot=et=nt=st=at=lt=ht=pt=gt=_t=ut=ft=ct=dt=Et=It=vt=mt=Kt.dragged=Kt.ghost=Kt.clone=Kt.active=null,jt.forEach((function(t){t.checked=!0})),jt.length=wt=bt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,i=[],o=this.el.children,e=0,n=o.length,r=this.options;e<n;e++)T(t=o[e],r.draggable,this.el,!1)&&i.push(t.getAttribute(r.dataIdAttr)||Xt(t));return i},sort:function(t,i){var o={},e=this.el;this.toArray().forEach((function(t,i){var n=e.children[i];T(n,this.options.draggable,e,!1)&&(o[t]=n)}),this),i&&this.captureAnimationState(),t.forEach((function(t){o[t]&&(e.removeChild(o[t]),e.appendChild(o[t]))})),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return T(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var o=this.options;if(void 0===i)return o[t];var e=J.modifyOption(this,t,i);o[t]=void 0!==e?e:i,"group"===t&&Ht(o)},destroy:function(){tt("destroy",this);var t=this.el;t[R]=null,k(t,"mousedown",this._onTapStart),k(t,"touchstart",this._onTapStart),k(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(k(t,"dragover",this),k(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ht){if(tt("hideClone",this),Kt.eventCanceled)return;j(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),ht=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ht){if(tt("showClone",this),Kt.eventCanceled)return;ot.parentNode!=rt||this.options.group.revertClone?st?rt.insertBefore(at,st):rt.appendChild(at):rt.insertBefore(at,ot),this.options.group.revertClone&&this.animate(ot,at),j(at,"display",""),ht=!1}}else this._hideClone()}},Bt&&S(document,"touchmove",(function(t){(Kt.active||kt)&&t.cancelable&&t.preventDefault()})),Kt.utils={on:S,off:k,css:j,find:L,is:function(t,i){return!!T(t,i,t,!1)},extend:function(t,i){if(t&&i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);return t},throttle:K,closest:T,toggleClass:A,clone:Y,index:U,nextTick:qt,cancelNextTick:Jt,detectDirection:Ft,getChild:F},Kt.get=function(t){return t[R]},Kt.mount=function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];i[0].constructor===Array&&(i=i[0]),i.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Kt.utils=f(f({},Kt.utils),t.utils)),J.mount(t)}))},Kt.create=function(t,i){return new Kt(t,i)},Kt.version="1.15.0";var Qt,ti,ii,oi,ei,ni,ri=[],si=!1;function li(){ri.forEach((function(t){clearInterval(t.pid)})),ri=[]}function ai(){clearInterval(ni)}var hi=K((function(t,i,o,e){if(i.scroll){var n,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=i.scrollSensitivity,a=i.scrollSpeed,h=$(),c=!1;ti!==o&&(ti=o,li(),n=i.scrollFn,!0===(Qt=i.scroll)&&(Qt=G(o,!0)));var u=0,d=Qt;do{var f=d,m=N(f),v=m.top,p=m.bottom,g=m.left,w=m.right,b=m.width,x=m.height,y=void 0,_=void 0,E=f.scrollWidth,I=f.scrollHeight,C=j(f),S=f.scrollLeft,k=f.scrollTop;f===h?(y=b<E&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),_=x<I&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(y=b<E&&("auto"===C.overflowX||"scroll"===C.overflowX),_=x<I&&("auto"===C.overflowY||"scroll"===C.overflowY));var D=y&&(Math.abs(w-r)<=l&&S+b<E)-(Math.abs(g-r)<=l&&!!S),M=_&&(Math.abs(p-s)<=l&&k+x<I)-(Math.abs(v-s)<=l&&!!k);if(!ri[u])for(var T=0;T<=u;T++)ri[T]||(ri[T]={});ri[u].vx==D&&ri[u].vy==M&&ri[u].el===f||(ri[u].el=f,ri[u].vx=D,ri[u].vy=M,clearInterval(ri[u].pid),0==D&&0==M||(c=!0,ri[u].pid=setInterval(function(){e&&0===this.layer&&Kt.active._onTouchMove(ei);var i=ri[this.layer].vy?ri[this.layer].vy*a:0,o=ri[this.layer].vx?ri[this.layer].vx*a:0;"function"==typeof n&&"continue"!==n.call(Kt.dragged.parentNode[R],o,i,t,ei,ri[this.layer].el)||W(ri[this.layer].el,o,i)}.bind({layer:u}),24))),u++}while(i.bubbleScroll&&d!==h&&(d=G(d,!1)));si=c}}),30),ci=function(t){var i=t.originalEvent,o=t.putSortable,e=t.dragEl,n=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(i){var s=o||t.activeSortable;(0,t.hideGhostForTarget)();var l=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,a=document.elementFromPoint(l.clientX,l.clientY);r(),s&&!s.el.contains(a)&&(n("spill"),this.onSpill({dragEl:e,putSortable:o}))}};function ui(){}function di(){}ui.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var i=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var e=F(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(i,e):this.sortable.el.appendChild(i),this.sortable.animateAll(),o&&o.animateAll()},drop:ci},p(ui,{pluginName:"revertOnSpill"}),di.prototype={onSpill:function(t){var i=t.dragEl,o=t.putSortable||this.sortable;o.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),o.animateAll()},drop:ci},p(di,{pluginName:"removeOnSpill"}),Kt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):S(document,this.options.supportPointer?"pointermove":i.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;this.options.dragOverBubble||i.rootEl||this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):(k(document,"pointermove",this._handleFallbackAutoScroll),k(document,"touchmove",this._handleFallbackAutoScroll),k(document,"mousemove",this._handleFallbackAutoScroll)),ai(),li(),clearTimeout(O),O=void 0},nulling:function(){ei=ti=Qt=si=ni=ii=oi=null,ri.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var o=this,e=(t.touches?t.touches[0]:t).clientX,n=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(e,n);if(ei=t,i||this.options.forceAutoScrollFallback||x||b||_){hi(t,this.options,r,i);var s=G(r,!0);!si||ni&&e===ii&&n===oi||(ni&&ai(),ni=setInterval((function(){var r=G(document.elementFromPoint(e,n),!0);r!==s&&(s=r,li()),hi(t,o.options,r,i)}),10),ii=e,oi=n)}else{if(!this.options.bubbleScroll||G(r,!0)===$())return void li();hi(t,this.options,G(r,!1),!1)}}},p(t,{pluginName:"scroll",initializeByDefault:!0})}),Kt.mount(di,ui);const fi=class{constructor(i){t(this,i),this.itemDrop=e(this,"itemDrop",7),this.valueChange=e(this,"valueChange",7),this.onFocus=async()=>{await new Promise((t=>setTimeout(t))),Boolean(this.focusedItem)?this.focusItem(this.getActiveItemIndex()):this.focusItem(0)},this.onClick=t=>{t.preventDefault();const i=t.target,o=null==i?void 0:i.closest("swirl-option-list-item"),e=t.composedPath()[0],n=Boolean(l(e,'[role="option"]'));Boolean(o)&&n?this.selectItem(this.items.findIndex((t=>t.value===o.value))):t.preventDefault()},this.onKeyDown=t=>{if("ArrowDown"===t.code)t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemDown():this.focusNextItem();else if("ArrowUp"===t.code)t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemUp():this.focusPreviousItem();else if("Space"===t.code||"Enter"===t.code){const i=t.composedPath()[0];if(!Boolean(l(i,'[role="option"]')))return;t.preventDefault(),Boolean(this.dragging)?this.stopDrag(this.dragging):this.selectFocusedItem()}else"Home"===t.code?(t.preventDefault(),this.focusItem(0)):"End"===t.code?(t.preventDefault(),this.focusItem(this.items.length-1)):"KeyA"===t.code&&(t.metaKey||t.ctrlKey)&&this.multiSelect?(t.preventDefault(),this.selectAllItems()):"Tab"===t.code&&Boolean(this.dragging)&&t.preventDefault()},this.toggleDrag=t=>{const i=t.detail;Boolean(this.dragging)?this.stopDrag(i):this.startDrag(i)},this.startDrag=t=>{this.dragging=t,this.draggingStartIndex=this.getItemIndex(this.dragging),t.setAttribute("dragging","true");const i=this.getItemIndex(this.dragging);this.focusItem(i),this.assistiveText=this.assistiveTextItemGrabbed},this.stopDrag=t=>{this.dragging=void 0,t.removeAttribute("dragging");const i=this.getActiveItemIndex();this.assistiveText=`${this.assistiveTextItemMoved} ${i+1}`,this.itemDrop.emit({item:t,oldIndex:this.draggingStartIndex,newIndex:i}),this.draggingStartIndex=void 0},this.allowDrag=void 0,this.assistiveTextItemGrabbed="Item grabbed. Use arrow keys to move item up or down. Use spacebar to save position.",this.assistiveTextItemMoving="Current position:",this.assistiveTextItemMoved="Item moved. New position:",this.disabled=void 0,this.label=void 0,this.optionListId=void 0,this.multiSelect=void 0,this.value=[],this.assistiveText=void 0}componentDidLoad(){this.updateItems(),this.observeSlotChanges(),this.setItemAllowDragState(),this.setItemDisabledState(),this.setItemContext(),this.syncItemsWithValue(),this.setupDragDrop()}disconnectedCallback(){var t,i;null===(t=this.observer)||void 0===t||t.disconnect(),null===(i=this.sortable)||void 0===i||i.destroy()}watchAllowDrag(){this.setItemAllowDragState(),this.setupDragDrop()}watchDisabled(){this.setItemDisabledState()}watchMultiSelect(){this.setItemContext()}watchValue(){this.syncItemsWithValue()}observeSlotChanges(){this.observer=new MutationObserver((()=>{this.updateItems()})),this.observer.observe(this.listboxEl,{childList:!0})}updateItems(){this.items=a(this.el,"swirl-option-list-item")}setItemDisabledState(){this.items.forEach((t=>t.disabled=this.disabled))}setItemContext(){this.multiSelect?this.items.forEach((t=>t.context="multi-select")):(this.items.forEach((t=>t.context="single-select")),this.value.length>1&&this.updateValue([this.value[0]]))}setupDragDrop(){Boolean(this.sortable)&&this.sortable.destroy(),this.allowDrag&&(this.sortable=Kt.create(this.listboxEl,{animation:150,draggable:"swirl-option-list-item",handle:".option-list-item__drag-handle",onEnd:t=>{this.itemDrop.emit({item:t.item,oldIndex:t.oldIndex,newIndex:t.newIndex})}}))}setItemAllowDragState(){if(this.allowDrag&&!this.multiSelect)return void console.error("[SwirlOptionList] Drag can only be allowed for multi select lists.");const t=a(this.el,"swirl-option-list-section");this.allowDrag&&t.length>0?console.error("[SwirlOptionList] Drag can only be allowed for lists without sections."):this.items.forEach(this.allowDrag?t=>{t.setAttribute("allow-drag","true"),t.addEventListener("toggleDrag",this.toggleDrag)}:t=>{t.removeAttribute("allow-drag"),t.removeEventListener("toggleDrag",this.toggleDrag)})}selectItem(t){if(this.disabled)return;const i=this.items[t];if(i.disabled)return;const o=this.value.includes(i.value);this.multiSelect||(this.value=[]),this.updateValue(o?this.value.filter((t=>t!==i.value)):[...this.value,i.value])}updateValue(t){this.value=t,this.valueChange.emit(this.value)}selectFocusedItem(){this.disabled||-1===this.getActiveItemIndex()||this.selectItem(this.getActiveItemIndex())}selectAllItems(){if(this.disabled)return;const t=this.items.every((t=>this.value.includes(t.value)));this.updateValue(t?[]:this.items.map((t=>t.value)))}syncItemsWithValue(){var t;null===(t=this.items)||void 0===t||t.forEach((t=>t.selected=this.value.includes(t.value)))}focusItem(t){var i;if(this.disabled)return;this.items.forEach((t=>t.querySelector('[role="option"]').removeAttribute("tabIndex")));const o=null===(i=this.items[t])||void 0===i?void 0:i.querySelector('[role="option"]');Boolean(o)&&(o.setAttribute("tabIndex","0"),o.focus(),this.focusedItem=o)}focusNextItem(){if(this.disabled)return;const t=this.getActiveItemIndex(),i=Math.min(t+1,this.items.length-1);this.focusItem(i)}focusPreviousItem(){const t=this.getActiveItemIndex(),i=Math.max(t-1,0);this.focusItem(i)}getActiveItemIndex(){return this.items.map((t=>t.querySelector('[role="option"]'))).findIndex((t=>t===this.focusedItem))}getItemIndex(t){return this.items.map((t=>t)).findIndex((i=>i===t))}moveDraggedItemDown(){const t=this.dragging.nextElementSibling;Boolean(t)&&(t.after(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getActiveItemIndex()+1}`)}moveDraggedItemUp(){const t=this.dragging.previousElementSibling;Boolean(t)&&(t.before(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging)+1}`)}render(){const t=this.multiSelect?"true":void 0,o=this.disabled?-1:0;return i(n,null,i("swirl-visually-hidden",{role:"alert"},this.assistiveText),i("div",{"aria-label":this.label,"aria-multiselectable":t,class:"option-list",id:this.optionListId,onClick:this.onClick,onFocus:this.onFocus,onKeyDown:this.onKeyDown,ref:t=>this.listboxEl=t,role:"listbox",tabIndex:o},i("slot",null)))}get el(){return r(this)}static get watchers(){return{allowDrag:["watchAllowDrag"],disabled:["watchDisabled"],multiSelect:["watchMultiSelect"],value:["watchValue"]}}};fi.style=".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}";const mi=class{constructor(i){t(this,i),this.toggleDrag=e(this,"toggleDrag",7),this.desktopMediaQuery=h(),this.desktopMediaQueryHandler=t=>{this.forceIconProps(t.matches),this.updateIconSize(t.matches)},this.onDragHandleKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),this.toggleDrag.emit(this.el))},this.allowDrag=void 0,this.context="single-select",this.disabled=void 0,this.dragging=void 0,this.dragHandleDescription="Press spacebar to toggle grab",this.dragHandleLabel="Move option",this.icon=void 0,this.label=void 0,this.selected=!1,this.value=void 0,this.iconSize=24}componentDidLoad(){var t,i;this.forceIconProps(this.desktopMediaQuery.matches),this.updateIconSize(this.desktopMediaQuery.matches),null===(i=(t=this.desktopMediaQuery).addEventListener)||void 0===i||i.call(t,"change",this.desktopMediaQueryHandler)}disconnectedCallback(){var t,i;null===(i=(t=this.desktopMediaQuery).removeEventListener)||void 0===i||i.call(t,"change",this.desktopMediaQueryHandler)}forceIconProps(t){var i;const o=null===(i=this.iconEl)||void 0===i?void 0:i.children[0];null==o||o.setAttribute("size",t?"20":"24")}updateIconSize(t){this.iconSize=t?20:24}render(){const t=this.disabled?"true":void 0,o=String(this.selected),e="multi-select"===this.context,r=Boolean(this.icon)&&"single-select"===this.context,l=this.selected&&"single-select"===this.context,a=s("option-list-item",`option-list-item--context-${this.context}`,{"option-list-item--disabled":this.disabled,"option-list-item--draggable":this.allowDrag,"option-list-item--dragging":this.dragging,"option-list-item--selected":this.selected});return i(n,null,i("div",{"aria-disabled":t,"aria-selected":o,class:a,part:"option-list-item",role:"option"},r&&i("span",{class:"option-list-item__icon",innerHTML:this.icon,ref:t=>this.iconEl=t}),e&&i("span",{class:"option-list-item__checkbox"},i("span",{class:"option-list-item__checkbox-box"},this.selected&&i("swirl-icon-check-strong",{class:"option-list-item__checkbox-icon",size:16}))),i("span",{class:"option-list-item__label",part:"option-list-item__label"},this.label),l&&i("span",{class:"option-list-item__selection-icon"},i("swirl-icon-check-small",{size:this.iconSize}))),this.allowDrag&&i("button",{"aria-describedby":this.dragHandleDescription,"aria-label":`${this.dragHandleLabel} "${this.label}"`,class:"option-list-item__drag-handle",onKeyDown:this.onDragHandleKeyDown,type:"button"},i("swirl-icon-drag-handle",{size:this.iconSize})))}get el(){return r(this)}};mi.style=".sc-swirl-option-list-item-h{position:relative;display:inline-flex;width:100%}.sc-swirl-option-list-item-h *.sc-swirl-option-list-item{box-sizing:border-box}.option-list-item.sc-swirl-option-list-item{display:inline-flex;width:100%;min-height:3rem;padding:var(--s-space-12) var(--s-space-16);align-items:center;background-color:var(--s-surface-overlay-default);cursor:pointer;gap:var(--s-space-12)}.option-list-item.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-hovered)}.option-list-item.sc-swirl-option-list-item:active:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item.sc-swirl-option-list-item:focus{outline:none}.option-list-item.sc-swirl-option-list-item:focus-visible{background-color:var(--s-surface-overlay-hovered)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item.sc-swirl-option-list-item{min-height:0;padding:var(--s-space-12);gap:var(--s-space-8)}}.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1.5rem)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1rem)}}.option-list-item--dragging.sc-swirl-option-list-item{z-index:1;border-radius:var(--s-border-radius-s);background-color:var(--s-surface-overlay-pressed);box-shadow:0 0.0625rem 0.125rem rgba(25, 26, 28, 0.08),\n 0 0.25rem 2rem rgba(25, 26, 28, 0.16)}.option-list-item--dragging.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item{color:var(--s-icon-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.option-list-item--disabled.sc-swirl-option-list-item{cursor:default}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{background-color:var(--s-icon-disabled)}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-text-on-status)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__selection-icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-icon-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-disabled);background-color:var(--s-surface-overlay-default)}.option-list-item__label.sc-swirl-option-list-item{flex-grow:1;color:var(--s-text-default);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__label.sc-swirl-option-list-item{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.option-list-item__icon.sc-swirl-option-list-item{display:inline-flex;flex-shrink:0;color:var(--s-icon-default)}.option-list-item__selection-icon.sc-swirl-option-list-item{display:inline-flex;flex-shrink:0;color:var(--s-icon-highlight)}.option-list-item__checkbox.sc-swirl-option-list-item{display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__checkbox.sc-swirl-option-list-item{width:1.375rem;height:1.375rem}}.option-list-item__checkbox-box.sc-swirl-option-list-item{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s)}.option-list-item__checkbox-icon.sc-swirl-option-list-item{display:inline-flex}.option-list-item__drag-handle.sc-swirl-option-list-item{position:absolute;z-index:1;top:50%;right:var(--s-space-4);display:inline-flex;margin:0;padding:0;padding:var(--s-space-8);flex-shrink:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:-webkit-grab;cursor:grab;transform:translateY(-50%)}.option-list-item__drag-handle.sc-swirl-option-list-item:active{cursor:-webkit-grabbing;cursor:grabbing}.option-list-item__drag-handle.sc-swirl-option-list-item:focus:not(:focus-visible){outline:none}.option-list-item__drag-handle.sc-swirl-option-list-item:focus-visible{outline-color:var(--s-focus-default)}";export{c as swirl_icon_check_small,u as swirl_icon_drag_handle,fi as swirl_option_list,mi as swirl_option_list_item}
|
|
@@ -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-73a4a99a",[[1,"swirl-inline-notification",{"heading":[1],"importance":[1],"intent":[1]}]]],["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-30e7d460",[[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-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-3c2325ba",[[1,"swirl-pagination",{"firstPageButtonLabel":[1,"first-page-button-label"],"lastPageButtonLabel":[1,"last-page-button-label"],"label":[1],"nextButtonLabel":[1,"next-button-label"],"page":[2],"pageLabel":[1,"page-label"],"pages":[2],"pageSelectLabel":[1,"page-select-label"],"prevButtonLabel":[1,"prev-button-label"],"variant":[1]}]]],["p-dbe4ee1a",[[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],"variant":[1]},[[8,"keydown","onKeyDown"]]]]],["p-b5bcf47f",[[1,"swirl-table",{"caption":[1],"emptyStateLabel":[1,"empty-state-label"],"label":[1],"empty":[32],"scrollable":[32],"scrolled":[32],"scrolledToEnd":[32]},[[9,"resize","onWindowResize"]]]]],["p-7d7f11e8",[[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-c9a34a56",[[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"],"padding":[1],"paddingBlockEnd":[1,"padding-block-end"],"paddingBlockStart":[1,"padding-block-start"],"paddingInlineEnd":[1,"padding-inline-end"],"paddingInlineStart":[1,"padding-inline-start"],"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-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-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-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-cbcc0e42",[[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-3ddaceac",[[1,"swirl-icon-check-circle",{"size":[2]}],[1,"swirl-icon-info",{"size":[2]}],[1,"swirl-icon-warning",{"size":[2]}]]],["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-92fd5b6e",[[1,"swirl-icon-expand-more",{"size":[2]}]]],["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-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-94c348ae",[[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",{"spacing":[1]}]]],["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-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-4c3c8ce8",[[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-d5032332",[[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],"paddingBlockEnd":[1,"padding-block-end"],"paddingBlockStart":[1,"padding-block-start"],"paddingInlineEnd":[1,"padding-inline-end"],"paddingInlineStart":[1,"padding-inline-start"]}],[1,"swirl-icon-file",{"size":[2]}],[1,"swirl-icon-folder-shared",{"size":[2]}]]],["p-0f3b28e9",[[1,"swirl-visually-hidden"]]],["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-73a4a99a",[[1,"swirl-inline-notification",{"heading":[1],"importance":[1],"intent":[1]}]]],["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-30e7d460",[[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-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-3c2325ba",[[1,"swirl-pagination",{"firstPageButtonLabel":[1,"first-page-button-label"],"lastPageButtonLabel":[1,"last-page-button-label"],"label":[1],"nextButtonLabel":[1,"next-button-label"],"page":[2],"pageLabel":[1,"page-label"],"pages":[2],"pageSelectLabel":[1,"page-select-label"],"prevButtonLabel":[1,"prev-button-label"],"variant":[1]}]]],["p-dbe4ee1a",[[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],"variant":[1]},[[8,"keydown","onKeyDown"]]]]],["p-514fcbf9",[[1,"swirl-table",{"caption":[1],"emptyStateLabel":[1,"empty-state-label"],"label":[1],"empty":[32],"scrollable":[32],"scrolled":[32],"scrolledToEnd":[32]},[[9,"resize","onWindowResize"]]]]],["p-7d7f11e8",[[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-c9a34a56",[[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"],"padding":[1],"paddingBlockEnd":[1,"padding-block-end"],"paddingBlockStart":[1,"padding-block-start"],"paddingInlineEnd":[1,"padding-inline-end"],"paddingInlineStart":[1,"padding-inline-start"],"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-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-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-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-cbcc0e42",[[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-3ddaceac",[[1,"swirl-icon-check-circle",{"size":[2]}],[1,"swirl-icon-info",{"size":[2]}],[1,"swirl-icon-warning",{"size":[2]}]]],["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-92fd5b6e",[[1,"swirl-icon-expand-more",{"size":[2]}]]],["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-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-94c348ae",[[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",{"spacing":[1]}]]],["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-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-e5a8868e",[[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-d5032332",[[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],"paddingBlockEnd":[1,"padding-block-end"],"paddingBlockStart":[1,"padding-block-start"],"paddingInlineEnd":[1,"padding-inline-end"],"paddingInlineStart":[1,"padding-inline-start"]}],[1,"swirl-icon-file",{"size":[2]}],[1,"swirl-icon-folder-shared",{"size":[2]}]]],["p-0f3b28e9",[[1,"swirl-visually-hidden"]]],["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)));
|
|
@@ -12,8 +12,12 @@ export declare class SwirlTable {
|
|
|
12
12
|
scrolled: boolean;
|
|
13
13
|
scrolledToEnd: boolean;
|
|
14
14
|
private container;
|
|
15
|
+
private columnObserver;
|
|
16
|
+
componentDidLoad(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
15
18
|
componentDidRender(): Promise<void>;
|
|
16
19
|
onWindowResize(): Promise<void>;
|
|
20
|
+
private observeColumnChanges;
|
|
17
21
|
private updateScrolledState;
|
|
18
22
|
private getColumns;
|
|
19
23
|
private getCells;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,F as e,c as o,H as n,g as r}from"./p-05c15d47.js";import{c as s}from"./p-b7898321.js";import{c as l,q as a,g as h}from"./p-438b3941.js";const c=class{constructor(i){t(this,i),this.size=24}render(){const t=20===this.size?24:this.size,o=s("swirl-icon",`swirl-icon--size-${this.size}`);return i("svg",{class:o,fill:"none",height:this.size,part:"icon",viewBox:`0 0 ${t} ${t}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},16===this.size&&i(e,null,i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4142 4.91924C12.8047 5.30976 12.8047 5.94293 12.4142 6.33345L7.08086 11.6667C6.69033 12.0572 6.05717 12.0572 5.66664 11.6667L3.70711 9.70707C3.31658 9.31655 3.31658 8.68338 3.70711 8.29286C4.09763 7.90233 4.7308 7.90233 5.12132 8.29286L6.37375 9.54539L11 4.91924C11.3905 4.52871 12.0237 4.52871 12.4142 4.91924Z",fill:"currentColor"})),(20===this.size||24===this.size)&&i(e,null,i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.6213 7.37879C19.2071 7.96458 19.2071 8.91433 18.6213 9.50011L10.6213 17.5C10.0355 18.0858 9.08577 18.0858 8.49998 17.5L5.56068 14.5605C4.97489 13.9748 4.97489 13.025 5.56068 12.4392C6.14646 11.8534 7.09621 11.8534 7.682 12.4392L9.56064 14.318L16.5 7.37879C17.0858 6.79301 18.0355 6.79301 18.6213 7.37879Z",fill:"currentColor"})),28===this.size&&i(e,null,i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.7248 8.60863C22.4083 9.29205 22.4083 10.4001 21.7248 11.0835L12.3915 20.4167C11.7081 21.1001 10.6001 21.1001 9.91663 20.4167L6.48744 16.9873C5.80403 16.3039 5.80403 15.1959 6.48744 14.5125C7.17086 13.8291 8.2789 13.8291 8.96232 14.5125L11.1541 16.7044L19.25 8.60863C19.9334 7.92521 21.0414 7.92521 21.7248 8.60863Z",fill:"currentColor"})))}};c.style=":host{display:inline-flex}";const u=class{constructor(i){t(this,i),this.size=24}render(){const t=20===this.size?24:this.size,o=s("swirl-icon",`swirl-icon--size-${this.size}`);return i("svg",{class:o,fill:"none",height:this.size,part:"icon",viewBox:`0 0 ${t} ${t}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},16===this.size&&i(e,null,i("rect",{x:"9",y:"3",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"9",y:"7",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"9",y:"11",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"5",y:"3",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"5",y:"7",width:"2",height:"2",rx:"1",fill:"currentColor"}),i("rect",{x:"5",y:"11",width:"2",height:"2",rx:"1",fill:"currentColor"})),(20===this.size||24===this.size)&&i(e,null,i("rect",{x:"13.5",y:"4.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"13.5",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"13.5",y:"16.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"7.5",y:"4.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"7.5",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),i("rect",{x:"7.5",y:"16.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"})),28===this.size&&i(e,null,i("rect",{x:"15.75",y:"5.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"15.75",y:"12.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"15.75",y:"19.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"8.75",y:"5.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"8.75",y:"12.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"}),i("rect",{x:"8.75",y:"19.25",width:"3.5",height:"3.5",rx:"1.75",fill:"currentColor"})))}};
|
|
2
|
-
/**!
|
|
3
|
-
* Sortable 1.15.0
|
|
4
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
5
|
-
* @author owenm <owen23355@gmail.com>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
function d(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,o)}return e}function f(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?d(Object(e),!0).forEach((function(i){v(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function v(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function p(){return p=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},p.apply(this,arguments)}function g(t,i){if(null==t)return{};var e,o,n=function(t,i){if(null==t)return{};var e,o,n={},r=Object.keys(t);for(o=0;o<r.length;o++)i.indexOf(e=r[o])>=0||(n[e]=t[e]);return n}(t,i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)i.indexOf(e=r[o])>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(n[e]=t[e])}return n}function w(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}u.style=":host{display:inline-flex}";var b=w(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),x=w(/Edge/i),y=w(/firefox/i),_=w(/safari/i)&&!w(/chrome/i)&&!w(/android/i),E=w(/iP(ad|od|hone)/i),I=w(/chrome/i)&&w(/android/i),C={capture:!1,passive:!1};function S(t,i,e){t.addEventListener(i,e,!b&&C)}function k(t,i,e){t.removeEventListener(i,e,!b&&C)}function D(t,i){if(i){if(">"===i[0]&&(i=i.substring(1)),t)try{if(t.matches)return t.matches(i);if(t.msMatchesSelector)return t.msMatchesSelector(i);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(i)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function T(t,i,e,o){if(t){e=e||document;do{if(null!=i&&(">"===i[0]?t.parentNode===e&&D(t,i):D(t,i))||o&&t===e)return t;if(t===e)break}while(t=M(t))}return null}var O,z=/\s+/g;function A(t,i,e){if(t&&i)if(t.classList)t.classList[e?"add":"remove"](i);else{var o=(" "+t.className+" ").replace(z," ").replace(" "+i+" "," ");t.className=(o+(e?" "+i:"")).replace(z," ")}}function j(t,i,e){var o=t&&t.style;if(o){if(void 0===e)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),void 0===i?e:e[i];i in o||-1!==i.indexOf("webkit")||(i="-webkit-"+i),o[i]=e+("string"==typeof e?"":"px")}}function B(t,i){var e="";if("string"==typeof t)e=t;else do{var o=j(t,"transform");o&&"none"!==o&&(e=o+" "+e)}while(!i&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(e)}function L(t,i,e){if(t){var o=t.getElementsByTagName(i),n=0,r=o.length;if(e)for(;n<r;n++)e(o[n],n);return o}return[]}function $(){return document.scrollingElement||document.documentElement}function N(t,i,e,o,n){if(t.getBoundingClientRect||t===window){var r,s,l,a,h,c,u;if(t!==window&&t.parentNode&&t!==$()?(s=(r=t.getBoundingClientRect()).top,l=r.left,a=r.bottom,h=r.right,c=r.height,u=r.width):(s=0,l=0,a=window.innerHeight,h=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(i||e)&&t!==window&&(n=n||t.parentNode,!b))do{if(n&&n.getBoundingClientRect&&("none"!==j(n,"transform")||e&&"static"!==j(n,"position"))){var d=n.getBoundingClientRect();s-=d.top+parseInt(j(n,"border-top-width")),l-=d.left+parseInt(j(n,"border-left-width")),a=s+r.height,h=l+r.width;break}}while(n=n.parentNode);if(o&&t!==window){var f=B(n||t),m=f&&f.a,v=f&&f.d;f&&(a=(s/=v)+(c/=v),h=(l/=m)+(u/=m))}return{top:s,left:l,bottom:a,right:h,width:u,height:c}}}function P(t,i,e){for(var o=G(t,!0),n=N(t)[i];o;){var r=N(o)[e];if(!("top"===e||"left"===e?n>=r:n<=r))return o;if(o===$())break;o=G(o,!1)}return!1}function F(t,i,e,o){for(var n=0,r=0,s=t.children;r<s.length;){if("none"!==s[r].style.display&&s[r]!==Kt.ghost&&(o||s[r]!==Kt.dragged)&&T(s[r],e.draggable,t,!1)){if(n===i)return s[r];n++}r++}return null}function H(t,i){for(var e=t.lastElementChild;e&&(e===Kt.ghost||"none"===j(e,"display")||i&&!D(e,i));)e=e.previousElementSibling;return e||null}function U(t,i){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Kt.clone||i&&!D(t,i)||e++;return e}function V(t){var i=0,e=0,o=$();if(t)do{var n=B(t);i+=t.scrollLeft*n.a,e+=t.scrollTop*n.d}while(t!==o&&(t=t.parentNode));return[i,e]}function G(t,i){if(!t||!t.getBoundingClientRect)return $();var e=t,o=!1;do{if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var n=j(e);if(e.clientWidth<e.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||e.clientHeight<e.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!e.getBoundingClientRect||e===document.body)return $();if(o||i)return e;o=!0}}}while(e=e.parentNode);return $()}function Z(t,i){return Math.round(t.top)===Math.round(i.top)&&Math.round(t.left)===Math.round(i.left)&&Math.round(t.height)===Math.round(i.height)&&Math.round(t.width)===Math.round(i.width)}function K(t,i){return function(){if(!O){var e=arguments,o=this;1===e.length?t.call(o,e[0]):t.apply(o,e),O=setTimeout((function(){O=void 0}),i)}}}function W(t,i,e){t.scrollLeft+=i,t.scrollTop+=e}function Y(t){var i=window.Polymer,e=window.jQuery||window.Zepto;return i&&i.dom?i.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}var R="Sortable"+(new Date).getTime();var X=[],q={initializeByDefault:!0},J={mount:function(t){for(var i in q)q.hasOwnProperty(i)&&!(i in t)&&(t[i]=q[i]);X.forEach((function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),X.push(t)},pluginEvent:function(t,i,e){var o=this;this.eventCanceled=!1,e.cancel=function(){o.eventCanceled=!0};var n=t+"Global";X.forEach((function(o){i[o.pluginName]&&(i[o.pluginName][n]&&i[o.pluginName][n](f({sortable:i},e)),i.options[o.pluginName]&&i[o.pluginName][t]&&i[o.pluginName][t](f({sortable:i},e)))}))},initializePlugins:function(t,i,e){for(var o in X.forEach((function(o){var n=o.pluginName;if(t.options[n]||o.initializeByDefault){var r=new o(t,i,t.options);r.sortable=t,r.options=t.options,t[n]=r,p(e,r.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var n=this.modifyOption(t,o,t.options[o]);void 0!==n&&(t.options[o]=n)}},getEventProperties:function(t,i){var e={};return X.forEach((function(o){"function"==typeof o.eventProperties&&p(e,o.eventProperties.call(i[o.pluginName],t))})),e},modifyOption:function(t,i,e){var o;return X.forEach((function(n){t[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[i]&&(o=n.optionListeners[i].call(t[n.pluginName],e))})),o}},Q=["evt"],tt=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.evt,n=g(e,Q);J.pluginEvent.bind(Kt)(t,i,f({dragEl:et,parentEl:ot,ghostEl:nt,rootEl:rt,nextEl:st,lastDownEl:lt,cloneEl:at,cloneHidden:ht,dragStarted:_t,putSortable:vt,activeSortable:Kt.active,originalEvent:o,oldIndex:ct,oldDraggableIndex:dt,newIndex:ut,newDraggableIndex:ft,hideGhostForTarget:Ut,unhideGhostForTarget:Vt,cloneNowHidden:function(){ht=!0},cloneNowShown:function(){ht=!1},dispatchSortableEvent:function(t){it({sortable:i,name:t,originalEvent:o})}},n))};function it(t){!function(t){var i=t.sortable,e=t.rootEl,o=t.name,n=t.targetEl,r=t.cloneEl,s=t.toEl,l=t.fromEl,a=t.oldIndex,h=t.newIndex,c=t.oldDraggableIndex,u=t.newDraggableIndex,d=t.originalEvent,m=t.putSortable,v=t.extraEventProperties;if(i=i||e&&e[R]){var p,g=i.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||b||x?(p=document.createEvent("Event")).initEvent(o,!0,!0):p=new CustomEvent(o,{bubbles:!0,cancelable:!0}),p.to=s||e,p.from=l||e,p.item=n||e,p.clone=r,p.oldIndex=a,p.newIndex=h,p.oldDraggableIndex=c,p.newDraggableIndex=u,p.originalEvent=d,p.pullMode=m?m.lastPutMode:void 0;var y=f(f({},v),J.getEventProperties(o,i));for(var _ in y)p[_]=y[_];e&&e.dispatchEvent(p),g[w]&&g[w].call(i,p)}}(f({putSortable:vt,cloneEl:at,targetEl:et,rootEl:rt,oldIndex:ct,oldDraggableIndex:dt,newIndex:ut,newDraggableIndex:ft},t))}var et,ot,nt,rt,st,lt,at,ht,ct,ut,dt,ft,mt,vt,pt,gt,wt,bt,xt,yt,_t,Et,It,Ct,St,kt=!1,Dt=!1,Mt=[],Tt=!1,Ot=!1,zt=[],At=!1,jt=[],Bt="undefined"!=typeof document,Lt=E,$t=x||b?"cssFloat":"float",Nt=Bt&&!I&&!E&&"draggable"in document.createElement("div"),Pt=function(){if(Bt){if(b)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ft=function(t,i){var e=j(t),o=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),n=F(t,0,i),r=F(t,1,i),s=n&&j(n),l=r&&j(r),a=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(n).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+N(r).width;return"flex"===e.display?"column"===e.flexDirection||"column-reverse"===e.flexDirection?"vertical":"horizontal":"grid"===e.display?e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":n&&s.float&&"none"!==s.float?!r||"both"!==l.clear&&l.clear!==("left"===s.float?"left":"right")?"horizontal":"vertical":n&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||a>=o&&"none"===e[$t]||r&&"none"===e[$t]&&a+h>o)?"vertical":"horizontal"},Ht=function(t){function i(t,e){return function(o,n,r,s){if(null==t&&(e||o.options.group.name&&n.options.group.name&&o.options.group.name===n.options.group.name))return!0;if(null==t||!1===t)return!1;if(e&&"clone"===t)return t;if("function"==typeof t)return i(t(o,n,r,s),e)(o,n,r,s);var l=(e?o:n).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var e={},o=t.group;o&&"object"==m(o)||(o={name:o}),e.name=o.name,e.checkPull=i(o.pull,!0),e.checkPut=i(o.put),e.revertClone=o.revertClone,t.group=e},Ut=function(){!Pt&&nt&&j(nt,"display","none")},Vt=function(){!Pt&&nt&&j(nt,"display","")};Bt&&!I&&document.addEventListener("click",(function(t){if(Dt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Dt=!1,!1}),!0);var Gt=function(t){if(et){var i=(n=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,Mt.some((function(t){var i=t[R].options.emptyInsertThreshold;if(i&&!H(t)){var e=N(t);return n>=e.left-i&&n<=e.right+i&&r>=e.top-i&&r<=e.bottom+i?s=t:void 0}})),s);if(i){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.target=e.rootEl=i,e.preventDefault=void 0,e.stopPropagation=void 0,i[R]._onDragOver(e)}}var n,r,s},Zt=function(t){et&&et.parentNode[R]._isOutsideThisEl(t.target)};function Kt(t,i){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=i=p({},i),t[R]=this;var e,o,n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ft(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,i){t.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Kt.supportPointer&&"PointerEvent"in window&&!_,emptyInsertThreshold:5};for(var r in J.initializePlugins(this,t,n),n)!(r in i)&&(i[r]=n[r]);for(var s in Ht(i),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!i.forceFallback&&Nt,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?S(t,"pointerdown",this._onTapStart):(S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Mt.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),p(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==j(t,"display")&&t!==Kt.ghost){o.push({target:t,rect:N(t)});var i=f({},o[o.length-1].rect);if(t.thisAnimationDuration){var e=B(t,!0);e&&(i.top-=e.f,i.left-=e.e)}t.fromRect=i}}))},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(function(t,i){for(var e in t)if(t.hasOwnProperty(e))for(var o in i)if(i.hasOwnProperty(o)&&i[o]===t[e][o])return Number(e);return-1}(o,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof t&&t());var n=!1,r=0;o.forEach((function(t){var e=0,o=t.target,s=o.fromRect,l=N(o),a=o.prevFromRect,h=o.prevToRect,c=t.rect,u=B(o,!0);u&&(l.top-=u.f,l.left-=u.e),o.toRect=l,o.thisAnimationDuration&&Z(a,l)&&!Z(s,l)&&(c.top-l.top)/(c.left-l.left)==(s.top-l.top)/(s.left-l.left)&&(e=function(t,i,e,o){return Math.sqrt(Math.pow(i.top-t.top,2)+Math.pow(i.left-t.left,2))/Math.sqrt(Math.pow(i.top-e.top,2)+Math.pow(i.left-e.left,2))*o.animation}(c,a,h,i.options)),Z(l,s)||(o.prevFromRect=s,o.prevToRect=l,e||(e=i.options.animation),i.animate(o,c,l,e)),e&&(n=!0,r=Math.max(r,e),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),e),o.thisAnimationDuration=e)})),clearTimeout(e),n?e=setTimeout((function(){"function"==typeof t&&t()}),r):"function"==typeof t&&t(),o=[]},animate:function(t,i,e,o){if(o){j(t,"transition",""),j(t,"transform","");var n=B(this.el),r=(i.left-e.left)/(n&&n.a||1),s=(i.top-e.top)/(n&&n.d||1);t.animatingX=!!r,t.animatingY=!!s,j(t,"transform","translate3d("+r+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),j(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),j(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){j(t,"transition",""),j(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}))}function Wt(t,i,e,o,n,r,s,l){var a,h,c=t[R],u=c.options.onMove;return!window.CustomEvent||b||x?(a=document.createEvent("Event")).initEvent("move",!0,!0):a=new CustomEvent("move",{bubbles:!0,cancelable:!0}),a.to=i,a.from=t,a.dragged=e,a.draggedRect=o,a.related=n||i,a.relatedRect=r||N(i),a.willInsertAfter=l,a.originalEvent=s,t.dispatchEvent(a),u&&(h=u.call(c,a,s)),h}function Yt(t){t.draggable=!1}function Rt(){At=!1}function Xt(t){for(var i=t.tagName+t.className+t.src+t.href+t.textContent,e=i.length,o=0;e--;)o+=i.charCodeAt(e);return o.toString(36)}function qt(t){return setTimeout(t,0)}function Jt(t){return clearTimeout(t)}Kt.prototype={constructor:Kt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Et=null)},_getDirection:function(t,i){return"function"==typeof this.options.direction?this.options.direction.call(this,t,i,et):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,e=this.el,o=this.options,n=o.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(s||t).target,a=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,h=o.filter;if(function(t){jt.length=0;for(var i=t.getElementsByTagName("input"),e=i.length;e--;){var o=i[e];o.checked&&jt.push(o)}}(e),!et&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!a.isContentEditable&&(this.nativeDraggable||!_||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=T(l,o.draggable,e,!1))&&l.animated||lt===l)){if(ct=U(l),dt=U(l,o.draggable),"function"==typeof h){if(h.call(this,t,l,this))return it({sortable:i,rootEl:a,name:"filter",targetEl:l,toEl:e,fromEl:e}),tt("filter",i,{evt:t}),void(n&&t.cancelable&&t.preventDefault())}else if(h&&(h=h.split(",").some((function(o){if(o=T(a,o.trim(),e,!1))return it({sortable:i,rootEl:o,name:"filter",targetEl:l,fromEl:e,toEl:e}),tt("filter",i,{evt:t}),!0}))))return void(n&&t.cancelable&&t.preventDefault());o.handle&&!T(a,o.handle,e,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,i,e){var o,n=this,r=n.el,s=n.options,l=r.ownerDocument;if(e&&!et&&e.parentNode===r){var a=N(e);if(rt=r,ot=(et=e).parentNode,st=et.nextSibling,lt=e,mt=s.group,Kt.dragged=et,xt=(pt={target:et,clientX:(i||t).clientX,clientY:(i||t).clientY}).clientX-a.left,yt=pt.clientY-a.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,et.style["will-change"]="all",o=function(){tt("delayEnded",n,{evt:t}),Kt.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!y&&n.nativeDraggable&&(et.draggable=!0),n._triggerDragStart(t,i),it({sortable:n,name:"choose",originalEvent:t}),A(et,s.chosenClass,!0))},s.ignore.split(",").forEach((function(t){L(et,t.trim(),Yt)})),S(l,"dragover",Gt),S(l,"mousemove",Gt),S(l,"touchmove",Gt),S(l,"mouseup",n._onDrop),S(l,"touchend",n._onDrop),S(l,"touchcancel",n._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,et.draggable=!0),tt("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!i||this.nativeDraggable&&(x||b))o();else{if(Kt.eventCanceled)return void this._onDrop();S(l,"mouseup",n._disableDelayedDrag),S(l,"touchend",n._disableDelayedDrag),S(l,"touchcancel",n._disableDelayedDrag),S(l,"mousemove",n._delayedDragTouchMoveHandler),S(l,"touchmove",n._delayedDragTouchMoveHandler),s.supportPointer&&S(l,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(o,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){et&&Yt(et),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;k(t,"mouseup",this._disableDelayedDrag),k(t,"touchend",this._disableDelayedDrag),k(t,"touchcancel",this._disableDelayedDrag),k(t,"mousemove",this._delayedDragTouchMoveHandler),k(t,"touchmove",this._delayedDragTouchMoveHandler),k(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||"touch"==t.pointerType&&t,!this.nativeDraggable||i?S(document,this.options.supportPointer?"pointermove":i?"touchmove":"mousemove",this._onTouchMove):(S(et,"dragend",this),S(rt,"dragstart",this._onDragStart));try{document.selection?qt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,i){if(kt=!1,rt&&et){tt("dragStarted",this,{evt:i}),this.nativeDraggable&&S(document,"dragover",Zt);var e=this.options;!t&&A(et,e.dragClass,!1),A(et,e.ghostClass,!0),Kt.active=this,t&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(gt){this._lastX=gt.clientX,this._lastY=gt.clientY,Ut();for(var t=document.elementFromPoint(gt.clientX,gt.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(gt.clientX,gt.clientY))!==i;)i=t;if(et.parentNode[R]._isOutsideThisEl(t),i)do{if(i[R]&&i[R]._onDragOver({clientX:gt.clientX,clientY:gt.clientY,target:t,rootEl:i})&&!this.options.dragoverBubble)break;t=i}while(i=i.parentNode);Vt()}},_onTouchMove:function(t){if(pt){var i=this.options,e=i.fallbackTolerance,o=i.fallbackOffset,n=t.touches?t.touches[0]:t,r=nt&&B(nt,!0),s=nt&&r&&r.a,l=nt&&r&&r.d,a=Lt&&St&&V(St),h=(n.clientX-pt.clientX+o.x)/(s||1)+(a?a[0]-zt[0]:0)/(s||1),c=(n.clientY-pt.clientY+o.y)/(l||1)+(a?a[1]-zt[1]:0)/(l||1);if(!Kt.active&&!kt){if(e&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(nt){r?(r.e+=h-(wt||0),r.f+=c-(bt||0)):r={a:1,b:0,c:0,d:1,e:h,f:c};var u="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");j(nt,"webkitTransform",u),j(nt,"mozTransform",u),j(nt,"msTransform",u),j(nt,"transform",u),wt=h,bt=c,gt=n}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!nt){var t=this.options.fallbackOnBody?document.body:rt,i=N(et,!0,Lt,!0,t),e=this.options;if(Lt){for(St=t;"static"===j(St,"position")&&"none"===j(St,"transform")&&St!==document;)St=St.parentNode;St!==document.body&&St!==document.documentElement?(St===document&&(St=$()),i.top+=St.scrollTop,i.left+=St.scrollLeft):St=$(),zt=V(St)}A(nt=et.cloneNode(!0),e.ghostClass,!1),A(nt,e.fallbackClass,!0),A(nt,e.dragClass,!0),j(nt,"transition",""),j(nt,"transform",""),j(nt,"box-sizing","border-box"),j(nt,"margin",0),j(nt,"top",i.top),j(nt,"left",i.left),j(nt,"width",i.width),j(nt,"height",i.height),j(nt,"opacity","0.8"),j(nt,"position",Lt?"absolute":"fixed"),j(nt,"zIndex","100000"),j(nt,"pointerEvents","none"),Kt.ghost=nt,t.appendChild(nt),j(nt,"transform-origin",xt/parseInt(nt.style.width)*100+"% "+yt/parseInt(nt.style.height)*100+"%")}},_onDragStart:function(t,i){var e=this,o=t.dataTransfer,n=e.options;tt("dragStart",this,{evt:t}),Kt.eventCanceled?this._onDrop():(tt("setupClone",this),Kt.eventCanceled||((at=Y(et)).removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),A(at,this.options.chosenClass,!1),Kt.clone=at),e.cloneId=qt((function(){tt("clone",e),Kt.eventCanceled||(e.options.removeCloneOnHide||rt.insertBefore(at,et),e._hideClone(),it({sortable:e,name:"clone"}))})),!i&&A(et,n.dragClass,!0),i?(Dt=!0,e._loopId=setInterval(e._emulateDragOver,50)):(k(document,"mouseup",e._onDrop),k(document,"touchend",e._onDrop),k(document,"touchcancel",e._onDrop),o&&(o.effectAllowed="move",n.setData&&n.setData.call(e,o,et)),S(document,"drop",e),j(et,"transform","translateZ(0)")),kt=!0,e._dragStartId=qt(e._dragStarted.bind(e,i,t)),S(document,"selectstart",e),_t=!0,_&&j(document.body,"user-select","none"))},_onDragOver:function(t){var i,e,o,n,r=this.el,s=t.target,l=this.options,a=l.group,h=Kt.active,c=mt===a,u=l.sort,d=vt||h,m=this,v=!1;if(!At){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=T(s,l.draggable,r,!0),O("dragOver"),Kt.eventCanceled)return v;if(et.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||m._ignoreWhileAnimating===s)return B(!1);if(Dt=!1,h&&!l.disabled&&(c?u||(o=ot!==rt):vt===this||(this.lastPutMode=mt.checkPull(this,h,et,t))&&a.checkPut(this,h,et,t))){if(n="vertical"===this._getDirection(t,s),i=N(et),O("dragOverValid"),Kt.eventCanceled)return v;if(o)return ot=rt,z(),this._hideClone(),O("revert"),Kt.eventCanceled||(st?rt.insertBefore(et,st):rt.appendChild(et)),B(!0);var p=H(r,l.draggable);if(!p||function(t,i,e){var o=N(H(e.el,e.options.draggable));return i?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,n,this)&&!p.animated){if(p===et)return B(!1);if(p&&r===t.target&&(s=p),s&&(e=N(s)),!1!==Wt(rt,r,et,i,s,e,t,!!s))return z(),p&&p.nextSibling?r.insertBefore(et,p.nextSibling):r.appendChild(et),ot=r,L(),B(!0)}else if(p&&function(t,i,e){var o=N(F(e.el,0,e.options,!0));return i?t.clientX<o.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,n,this)){var g=F(r,0,l,!0);if(g===et)return B(!1);if(e=N(s=g),!1!==Wt(rt,r,et,i,s,e,t,!1))return z(),r.insertBefore(et,g),ot=r,L(),B(!0)}else if(s.parentNode===r){e=N(s);var w,b,x,y=et.parentNode!==r,_=!function(t,i,e){var o=e?t.left:t.top,n=e?i.left:i.top;return o===n||(e?t.right:t.bottom)===(e?i.right:i.bottom)||o+(e?t.width:t.height)/2===n+(e?i.width:i.height)/2}(et.animated&&et.toRect||i,s.animated&&s.toRect||e,n),E=n?"top":"left",I=P(s,"top","top")||P(et,"top","top"),C=I?I.scrollTop:void 0;if(Et!==s&&(b=e[E],Tt=!1,Ot=!_&&l.invertSwap||y),w=function(t,i,e,o,n,r,s,l){var a=o?t.clientY:t.clientX,h=o?e.height:e.width,c=o?e.top:e.left,u=o?e.bottom:e.right,d=!1;if(!s)if(l&&Ct<h*n){if(!Tt&&(1===It?a>c+h*r/2:a<u-h*r/2)&&(Tt=!0),Tt)d=!0;else if(1===It?a<c+Ct:a>u-Ct)return-It}else if(a>c+h*(1-n)/2&&a<u-h*(1-n)/2)return function(t){return U(et)<U(t)?1:-1}(i);return(d=d||s)&&(a<c+h*r/2||a>u-h*r/2)?a>c+h/2?1:-1:0}(t,s,e,n,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ot,Et===s),0!==w){var S=U(et);do{x=ot.children[S-=w]}while(x&&("none"===j(x,"display")||x===nt))}if(0===w||x===s)return B(!1);Et=s,It=w;var k=s.nextElementSibling,D=!1,M=Wt(rt,r,et,i,s,e,t,D=1===w);if(!1!==M)return 1!==M&&-1!==M||(D=1===M),At=!0,setTimeout(Rt,30),z(),D&&!k?r.appendChild(et):s.parentNode.insertBefore(et,D?k:s),I&&W(I,0,C-I.scrollTop),ot=et.parentNode,void 0===b||Ot||(Ct=Math.abs(b-N(s)[E])),L(),B(!0)}if(r.contains(et))return B(!1)}return!1}function O(l,a){tt(l,m,f({evt:t,isOwner:c,axis:n?"vertical":"horizontal",revert:o,dragRect:i,targetRect:e,canSort:u,fromSortable:d,target:s,completed:B,onMove:function(e,o){return Wt(rt,r,et,i,e,N(e),t,o)},changed:L},a))}function z(){O("dragOverAnimationCapture"),m.captureAnimationState(),m!==d&&d.captureAnimationState()}function B(i){return O("dragOverCompleted",{insertion:i}),i&&(c?h._hideClone():h._showClone(m),m!==d&&(A(et,vt?vt.options.ghostClass:h.options.ghostClass,!1),A(et,l.ghostClass,!0)),vt!==m&&m!==Kt.active?vt=m:m===Kt.active&&vt&&(vt=null),d===m&&(m._ignoreWhileAnimating=s),m.animateAll((function(){O("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(s===et&&!et.animated||s===r&&!s.animated)&&(Et=null),l.dragoverBubble||t.rootEl||s===document||(et.parentNode[R]._isOutsideThisEl(t.target),!i&&Gt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function L(){ut=U(et),ft=U(et,l.draggable),it({sortable:m,name:"change",toEl:r,newIndex:ut,newDraggableIndex:ft,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){k(document,"mousemove",this._onTouchMove),k(document,"touchmove",this._onTouchMove),k(document,"pointermove",this._onTouchMove),k(document,"dragover",Gt),k(document,"mousemove",Gt),k(document,"touchmove",Gt)},_offUpEvents:function(){var t=this.el.ownerDocument;k(t,"mouseup",this._onDrop),k(t,"touchend",this._onDrop),k(t,"pointerup",this._onDrop),k(t,"touchcancel",this._onDrop),k(document,"selectstart",this)},_onDrop:function(t){var i=this.el,e=this.options;ut=U(et),ft=U(et,e.draggable),tt("drop",this,{evt:t}),ot=et&&et.parentNode,ut=U(et),ft=U(et,e.draggable),Kt.eventCanceled||(kt=!1,Ot=!1,Tt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Jt(this.cloneId),Jt(this._dragStartId),this.nativeDraggable&&(k(document,"drop",this),k(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&j(document.body,"user-select",""),j(et,"transform",""),t&&(_t&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),nt&&nt.parentNode&&nt.parentNode.removeChild(nt),(rt===ot||vt&&"clone"!==vt.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),et&&(this.nativeDraggable&&k(et,"dragend",this),Yt(et),et.style["will-change"]="",_t&&!kt&&A(et,vt?vt.options.ghostClass:this.options.ghostClass,!1),A(et,this.options.chosenClass,!1),it({sortable:this,name:"unchoose",toEl:ot,newIndex:null,newDraggableIndex:null,originalEvent:t}),rt!==ot?(ut>=0&&(it({rootEl:ot,name:"add",toEl:ot,fromEl:rt,originalEvent:t}),it({sortable:this,name:"remove",toEl:ot,originalEvent:t}),it({rootEl:ot,name:"sort",toEl:ot,fromEl:rt,originalEvent:t}),it({sortable:this,name:"sort",toEl:ot,originalEvent:t})),vt&&vt.save()):ut!==ct&&ut>=0&&(it({sortable:this,name:"update",toEl:ot,originalEvent:t}),it({sortable:this,name:"sort",toEl:ot,originalEvent:t})),Kt.active&&(null!=ut&&-1!==ut||(ut=ct,ft=dt),it({sortable:this,name:"end",toEl:ot,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){tt("nulling",this),rt=et=ot=nt=st=at=lt=ht=pt=gt=_t=ut=ft=ct=dt=Et=It=vt=mt=Kt.dragged=Kt.ghost=Kt.clone=Kt.active=null,jt.forEach((function(t){t.checked=!0})),jt.length=wt=bt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":et&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,i=[],e=this.el.children,o=0,n=e.length,r=this.options;o<n;o++)T(t=e[o],r.draggable,this.el,!1)&&i.push(t.getAttribute(r.dataIdAttr)||Xt(t));return i},sort:function(t,i){var e={},o=this.el;this.toArray().forEach((function(t,i){var n=o.children[i];T(n,this.options.draggable,o,!1)&&(e[t]=n)}),this),i&&this.captureAnimationState(),t.forEach((function(t){e[t]&&(o.removeChild(e[t]),o.appendChild(e[t]))})),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return T(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var e=this.options;if(void 0===i)return e[t];var o=J.modifyOption(this,t,i);e[t]=void 0!==o?o:i,"group"===t&&Ht(e)},destroy:function(){tt("destroy",this);var t=this.el;t[R]=null,k(t,"mousedown",this._onTapStart),k(t,"touchstart",this._onTapStart),k(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(k(t,"dragover",this),k(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ht){if(tt("hideClone",this),Kt.eventCanceled)return;j(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),ht=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ht){if(tt("showClone",this),Kt.eventCanceled)return;et.parentNode!=rt||this.options.group.revertClone?st?rt.insertBefore(at,st):rt.appendChild(at):rt.insertBefore(at,et),this.options.group.revertClone&&this.animate(et,at),j(at,"display",""),ht=!1}}else this._hideClone()}},Bt&&S(document,"touchmove",(function(t){(Kt.active||kt)&&t.cancelable&&t.preventDefault()})),Kt.utils={on:S,off:k,css:j,find:L,is:function(t,i){return!!T(t,i,t,!1)},extend:function(t,i){if(t&&i)for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t},throttle:K,closest:T,toggleClass:A,clone:Y,index:U,nextTick:qt,cancelNextTick:Jt,detectDirection:Ft,getChild:F},Kt.get=function(t){return t[R]},Kt.mount=function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];i[0].constructor===Array&&(i=i[0]),i.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Kt.utils=f(f({},Kt.utils),t.utils)),J.mount(t)}))},Kt.create=function(t,i){return new Kt(t,i)},Kt.version="1.15.0";var Qt,ti,ii,ei,oi,ni,ri=[],si=!1;function li(){ri.forEach((function(t){clearInterval(t.pid)})),ri=[]}function ai(){clearInterval(ni)}var hi=K((function(t,i,e,o){if(i.scroll){var n,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=i.scrollSensitivity,a=i.scrollSpeed,h=$(),c=!1;ti!==e&&(ti=e,li(),n=i.scrollFn,!0===(Qt=i.scroll)&&(Qt=G(e,!0)));var u=0,d=Qt;do{var f=d,m=N(f),v=m.top,p=m.bottom,g=m.left,w=m.right,b=m.width,x=m.height,y=void 0,_=void 0,E=f.scrollWidth,I=f.scrollHeight,C=j(f),S=f.scrollLeft,k=f.scrollTop;f===h?(y=b<E&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),_=x<I&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(y=b<E&&("auto"===C.overflowX||"scroll"===C.overflowX),_=x<I&&("auto"===C.overflowY||"scroll"===C.overflowY));var D=y&&(Math.abs(w-r)<=l&&S+b<E)-(Math.abs(g-r)<=l&&!!S),M=_&&(Math.abs(p-s)<=l&&k+x<I)-(Math.abs(v-s)<=l&&!!k);if(!ri[u])for(var T=0;T<=u;T++)ri[T]||(ri[T]={});ri[u].vx==D&&ri[u].vy==M&&ri[u].el===f||(ri[u].el=f,ri[u].vx=D,ri[u].vy=M,clearInterval(ri[u].pid),0==D&&0==M||(c=!0,ri[u].pid=setInterval(function(){o&&0===this.layer&&Kt.active._onTouchMove(oi);var i=ri[this.layer].vy?ri[this.layer].vy*a:0,e=ri[this.layer].vx?ri[this.layer].vx*a:0;"function"==typeof n&&"continue"!==n.call(Kt.dragged.parentNode[R],e,i,t,oi,ri[this.layer].el)||W(ri[this.layer].el,e,i)}.bind({layer:u}),24))),u++}while(i.bubbleScroll&&d!==h&&(d=G(d,!1)));si=c}}),30),ci=function(t){var i=t.originalEvent,e=t.putSortable,o=t.dragEl,n=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(i){var s=e||t.activeSortable;(0,t.hideGhostForTarget)();var l=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,a=document.elementFromPoint(l.clientX,l.clientY);r(),s&&!s.el.contains(a)&&(n("spill"),this.onSpill({dragEl:o,putSortable:e}))}};function ui(){}function di(){}ui.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var i=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var o=F(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(i,o):this.sortable.el.appendChild(i),this.sortable.animateAll(),e&&e.animateAll()},drop:ci},p(ui,{pluginName:"revertOnSpill"}),di.prototype={onSpill:function(t){var i=t.dragEl,e=t.putSortable||this.sortable;e.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),e.animateAll()},drop:ci},p(di,{pluginName:"removeOnSpill"}),Kt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):S(document,this.options.supportPointer?"pointermove":i.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;this.options.dragOverBubble||i.rootEl||this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):(k(document,"pointermove",this._handleFallbackAutoScroll),k(document,"touchmove",this._handleFallbackAutoScroll),k(document,"mousemove",this._handleFallbackAutoScroll)),ai(),li(),clearTimeout(O),O=void 0},nulling:function(){oi=ti=Qt=si=ni=ii=ei=null,ri.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var e=this,o=(t.touches?t.touches[0]:t).clientX,n=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,n);if(oi=t,i||this.options.forceAutoScrollFallback||x||b||_){hi(t,this.options,r,i);var s=G(r,!0);!si||ni&&o===ii&&n===ei||(ni&&ai(),ni=setInterval((function(){var r=G(document.elementFromPoint(o,n),!0);r!==s&&(s=r,li()),hi(t,e.options,r,i)}),10),ii=o,ei=n)}else{if(!this.options.bubbleScroll||G(r,!0)===$())return void li();hi(t,this.options,G(r,!1),!1)}}},p(t,{pluginName:"scroll",initializeByDefault:!0})}),Kt.mount(di,ui);const fi=class{constructor(i){t(this,i),this.itemDrop=o(this,"itemDrop",7),this.valueChange=o(this,"valueChange",7),this.onFocus=async()=>{await new Promise((t=>setTimeout(t))),Boolean(this.focusedItem)?this.focusItem(this.getActiveItemIndex()):this.focusItem(0)},this.onClick=t=>{t.preventDefault();const i=t.target,e=null==i?void 0:i.closest("swirl-option-list-item"),o=t.composedPath()[0],n=Boolean(l(o,'[role="option"]'));Boolean(e)&&n?this.selectItem(this.items.findIndex((t=>t.value===e.value))):t.preventDefault()},this.onKeyDown=t=>{if("ArrowDown"===t.code)t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemDown():this.focusNextItem();else if("ArrowUp"===t.code)t.preventDefault(),Boolean(this.dragging)?this.moveDraggedItemUp():this.focusPreviousItem();else if("Space"===t.code||"Enter"===t.code){const i=t.composedPath()[0];if(!Boolean(l(i,'[role="option"]')))return;t.preventDefault(),Boolean(this.dragging)?this.stopDrag(this.dragging):this.selectFocusedItem()}else"Home"===t.code?(t.preventDefault(),this.focusItem(0)):"End"===t.code?(t.preventDefault(),this.focusItem(this.items.length-1)):"KeyA"===t.code&&(t.metaKey||t.ctrlKey)&&this.multiSelect?(t.preventDefault(),this.selectAllItems()):"Tab"===t.code&&Boolean(this.dragging)&&t.preventDefault()},this.toggleDrag=t=>{const i=t.detail;Boolean(this.dragging)?this.stopDrag(i):this.startDrag(i)},this.startDrag=t=>{this.dragging=t,this.draggingStartIndex=this.getItemIndex(this.dragging),t.setAttribute("dragging","true");const i=this.getItemIndex(this.dragging);this.focusItem(i),this.assistiveText=this.assistiveTextItemGrabbed},this.stopDrag=t=>{this.dragging=void 0,t.removeAttribute("dragging");const i=this.getActiveItemIndex();this.assistiveText=`${this.assistiveTextItemMoved} ${i+1}`,this.itemDrop.emit({item:t,oldIndex:this.draggingStartIndex,newIndex:i}),this.draggingStartIndex=void 0},this.allowDrag=void 0,this.assistiveTextItemGrabbed="Item grabbed. Use arrow keys to move item up or down. Use spacebar to save position.",this.assistiveTextItemMoving="Current position:",this.assistiveTextItemMoved="Item moved. New position:",this.disabled=void 0,this.label=void 0,this.optionListId=void 0,this.multiSelect=void 0,this.value=[],this.assistiveText=void 0}componentDidLoad(){this.updateItems(),this.observeSlotChanges(),this.setItemAllowDragState(),this.setItemDisabledState(),this.setItemContext(),this.syncItemsWithValue(),this.setupDragDrop()}disconnectedCallback(){var t,i;null===(t=this.observer)||void 0===t||t.disconnect(),null===(i=this.sortable)||void 0===i||i.destroy()}watchAllowDrag(){this.setItemAllowDragState(),this.setupDragDrop()}watchDisabled(){this.setItemDisabledState()}watchMultiSelect(){this.setItemContext()}watchValue(){this.syncItemsWithValue()}observeSlotChanges(){this.observer=new MutationObserver((()=>{this.updateItems()})),this.observer.observe(this.listboxEl,{childList:!0})}updateItems(){this.items=a(this.el,"swirl-option-list-item")}setItemDisabledState(){this.items.forEach((t=>t.disabled=this.disabled))}setItemContext(){this.multiSelect?this.items.forEach((t=>t.context="multi-select")):(this.items.forEach((t=>t.context="single-select")),this.value.length>1&&this.updateValue([this.value[0]]))}setupDragDrop(){Boolean(this.sortable)&&this.sortable.destroy(),this.allowDrag&&(this.sortable=Kt.create(this.listboxEl,{animation:150,draggable:"swirl-option-list-item",handle:".option-list-item__drag-handle",onEnd:t=>{this.itemDrop.emit({item:t.item,oldIndex:t.oldIndex,newIndex:t.newIndex})}}))}setItemAllowDragState(){if(this.allowDrag&&!this.multiSelect)return void console.error("[SwirlOptionList] Drag can only be allowed for multi select lists.");const t=a(this.el,"swirl-option-list-section");this.allowDrag&&t.length>0?console.error("[SwirlOptionList] Drag can only be allowed for lists without sections."):this.items.forEach(this.allowDrag?t=>{t.setAttribute("allow-drag","true"),t.addEventListener("toggleDrag",this.toggleDrag)}:t=>{t.removeAttribute("allow-drag"),t.removeEventListener("toggleDrag",this.toggleDrag)})}selectItem(t){if(this.disabled)return;const i=this.items[t];if(i.disabled)return;const e=this.value.includes(i.value);this.multiSelect||(this.value=[]),this.updateValue(e?this.value.filter((t=>t!==i.value)):[...this.value,i.value])}updateValue(t){this.value=t,this.valueChange.emit(this.value)}selectFocusedItem(){this.disabled||-1===this.getActiveItemIndex()||this.selectItem(this.getActiveItemIndex())}selectAllItems(){if(this.disabled)return;const t=this.items.every((t=>this.value.includes(t.value)));this.updateValue(t?[]:this.items.map((t=>t.value)))}syncItemsWithValue(){this.items.forEach((t=>t.selected=this.value.includes(t.value)))}focusItem(t){var i;if(this.disabled)return;this.items.forEach((t=>t.querySelector('[role="option"]').removeAttribute("tabIndex")));const e=null===(i=this.items[t])||void 0===i?void 0:i.querySelector('[role="option"]');Boolean(e)&&(e.setAttribute("tabIndex","0"),e.focus(),this.focusedItem=e)}focusNextItem(){if(this.disabled)return;const t=this.getActiveItemIndex(),i=Math.min(t+1,this.items.length-1);this.focusItem(i)}focusPreviousItem(){const t=this.getActiveItemIndex(),i=Math.max(t-1,0);this.focusItem(i)}getActiveItemIndex(){return this.items.map((t=>t.querySelector('[role="option"]'))).findIndex((t=>t===this.focusedItem))}getItemIndex(t){return this.items.map((t=>t)).findIndex((i=>i===t))}moveDraggedItemDown(){const t=this.dragging.nextElementSibling;Boolean(t)&&(t.after(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getActiveItemIndex()+1}`)}moveDraggedItemUp(){const t=this.dragging.previousElementSibling;Boolean(t)&&(t.before(this.dragging),this.updateItems(),this.listboxEl.focus(),this.assistiveText=`${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging)+1}`)}render(){const t=this.multiSelect?"true":void 0,e=this.disabled?-1:0;return i(n,null,i("swirl-visually-hidden",{role:"alert"},this.assistiveText),i("div",{"aria-label":this.label,"aria-multiselectable":t,class:"option-list",id:this.optionListId,onClick:this.onClick,onFocus:this.onFocus,onKeyDown:this.onKeyDown,ref:t=>this.listboxEl=t,role:"listbox",tabIndex:e},i("slot",null)))}get el(){return r(this)}static get watchers(){return{allowDrag:["watchAllowDrag"],disabled:["watchDisabled"],multiSelect:["watchMultiSelect"],value:["watchValue"]}}};fi.style=".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}";const mi=class{constructor(i){t(this,i),this.toggleDrag=o(this,"toggleDrag",7),this.desktopMediaQuery=h(),this.desktopMediaQueryHandler=t=>{this.forceIconProps(t.matches),this.updateIconSize(t.matches)},this.onDragHandleKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),this.toggleDrag.emit(this.el))},this.allowDrag=void 0,this.context="single-select",this.disabled=void 0,this.dragging=void 0,this.dragHandleDescription="Press spacebar to toggle grab",this.dragHandleLabel="Move option",this.icon=void 0,this.label=void 0,this.selected=!1,this.value=void 0,this.iconSize=24}componentDidLoad(){var t,i;this.forceIconProps(this.desktopMediaQuery.matches),this.updateIconSize(this.desktopMediaQuery.matches),null===(i=(t=this.desktopMediaQuery).addEventListener)||void 0===i||i.call(t,"change",this.desktopMediaQueryHandler)}disconnectedCallback(){var t,i;null===(i=(t=this.desktopMediaQuery).removeEventListener)||void 0===i||i.call(t,"change",this.desktopMediaQueryHandler)}forceIconProps(t){var i;const e=null===(i=this.iconEl)||void 0===i?void 0:i.children[0];null==e||e.setAttribute("size",t?"20":"24")}updateIconSize(t){this.iconSize=t?20:24}render(){const t=this.disabled?"true":void 0,e=String(this.selected),o="multi-select"===this.context,r=Boolean(this.icon)&&"single-select"===this.context,l=this.selected&&"single-select"===this.context,a=s("option-list-item",`option-list-item--context-${this.context}`,{"option-list-item--disabled":this.disabled,"option-list-item--draggable":this.allowDrag,"option-list-item--dragging":this.dragging,"option-list-item--selected":this.selected});return i(n,null,i("div",{"aria-disabled":t,"aria-selected":e,class:a,part:"option-list-item",role:"option"},r&&i("span",{class:"option-list-item__icon",innerHTML:this.icon,ref:t=>this.iconEl=t}),o&&i("span",{class:"option-list-item__checkbox"},i("span",{class:"option-list-item__checkbox-box"},this.selected&&i("swirl-icon-check-strong",{class:"option-list-item__checkbox-icon",size:16}))),i("span",{class:"option-list-item__label",part:"option-list-item__label"},this.label),l&&i("span",{class:"option-list-item__selection-icon"},i("swirl-icon-check-small",{size:this.iconSize}))),this.allowDrag&&i("button",{"aria-describedby":this.dragHandleDescription,"aria-label":`${this.dragHandleLabel} "${this.label}"`,class:"option-list-item__drag-handle",onKeyDown:this.onDragHandleKeyDown,type:"button"},i("swirl-icon-drag-handle",{size:this.iconSize})))}get el(){return r(this)}};mi.style=".sc-swirl-option-list-item-h{position:relative;display:inline-flex;width:100%}.sc-swirl-option-list-item-h *.sc-swirl-option-list-item{box-sizing:border-box}.option-list-item.sc-swirl-option-list-item{display:inline-flex;width:100%;min-height:3rem;padding:var(--s-space-12) var(--s-space-16);align-items:center;background-color:var(--s-surface-overlay-default);cursor:pointer;gap:var(--s-space-12)}.option-list-item.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-hovered)}.option-list-item.sc-swirl-option-list-item:active:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item.sc-swirl-option-list-item:focus{outline:none}.option-list-item.sc-swirl-option-list-item:focus-visible{background-color:var(--s-surface-overlay-hovered)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item.sc-swirl-option-list-item{min-height:0;padding:var(--s-space-12);gap:var(--s-space-8)}}.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1.5rem)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1rem)}}.option-list-item--dragging.sc-swirl-option-list-item{z-index:1;border-radius:var(--s-border-radius-s);background-color:var(--s-surface-overlay-pressed);box-shadow:0 0.0625rem 0.125rem rgba(25, 26, 28, 0.08),\n 0 0.25rem 2rem rgba(25, 26, 28, 0.16)}.option-list-item--dragging.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item{color:var(--s-icon-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.option-list-item--disabled.sc-swirl-option-list-item{cursor:default}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{background-color:var(--s-icon-disabled)}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-text-on-status)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__selection-icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-icon-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-disabled);background-color:var(--s-surface-overlay-default)}.option-list-item__label.sc-swirl-option-list-item{flex-grow:1;color:var(--s-text-default);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__label.sc-swirl-option-list-item{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.option-list-item__icon.sc-swirl-option-list-item{display:inline-flex;flex-shrink:0;color:var(--s-icon-default)}.option-list-item__selection-icon.sc-swirl-option-list-item{display:inline-flex;flex-shrink:0;color:var(--s-icon-highlight)}.option-list-item__checkbox.sc-swirl-option-list-item{display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__checkbox.sc-swirl-option-list-item{width:1.375rem;height:1.375rem}}.option-list-item__checkbox-box.sc-swirl-option-list-item{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s)}.option-list-item__checkbox-icon.sc-swirl-option-list-item{display:inline-flex}.option-list-item__drag-handle.sc-swirl-option-list-item{position:absolute;z-index:1;top:50%;right:var(--s-space-4);display:inline-flex;margin:0;padding:0;padding:var(--s-space-8);flex-shrink:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:-webkit-grab;cursor:grab;transform:translateY(-50%)}.option-list-item__drag-handle.sc-swirl-option-list-item:active{cursor:-webkit-grabbing;cursor:grabbing}.option-list-item__drag-handle.sc-swirl-option-list-item:focus:not(:focus-visible){outline:none}.option-list-item__drag-handle.sc-swirl-option-list-item:focus-visible{outline-color:var(--s-focus-default)}";export{c as swirl_icon_check_small,u as swirl_icon_drag_handle,fi as swirl_option_list,mi as swirl_option_list_item}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as a,g as s}from"./p-05c15d47.js";import{i}from"./p-438b3941.js";function o(t){return"function"==typeof t?t():t}function r(){var t={};return t.promise=new Promise((function(e,a){t.resolve=e,t.reject=a})),t}const l=class{constructor(e){t(this,e),this.updateLayout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=void 0,i=void 0,l=void 0,n=[];return function(){var d=o(e),c=(new Date).getTime(),b=!s||c-s>d;s=c;for(var w=arguments.length,u=Array(w),m=0;m<w;m++)u[m]=arguments[m];if(b&&a.leading)return a.accumulate?Promise.resolve(t.call(this,[u])).then((function(t){return t[0]})):Promise.resolve(t.call.apply(t,[this].concat(u)));if(i?clearTimeout(l):i=r(),n.push(u),l=setTimeout(h.bind(this),d),a.accumulate){var v=n.length-1;return i.promise.then((function(t){return t[v]}))}return i.promise};function h(){var e=i;clearTimeout(l),Promise.resolve(a.accumulate?t.call(this,n):t.apply(this,n[n.length-1])).then(e.resolve,e.reject),n=[],i=null}}((async()=>{await this.resetEmptyRowStyles(),await this.resetRowGroupStyles(),await this.resetCellStyles(),await this.resetColumnStyles(),await this.layoutEmptyRow(),await this.layoutRowGroups(),await this.layOutColumns(),this.layOutCells()}),100),this.onScroll=()=>{this.updateScrolledState()},this.onSlotChange=async()=>{await this.updateLayout(),this.updateScrolledState(),this.updateEmptyState()},this.caption=void 0,this.emptyStateLabel="No results found.",this.label=void 0,this.empty=void 0,this.scrollable=void 0,this.scrolled=void 0,this.scrolledToEnd=void 0}async componentDidRender(){await this.updateLayout(),this.updateScrolledState(),this.updateEmptyState()}async onWindowResize(){await this.updateLayout(),this.updateScrolledState()}updateScrolledState(){const t=i(),e=this.container.scrollWidth>this.container.clientWidth,a=this.container.scrollLeft>0,s=Math.ceil(this.container.clientWidth+this.container.scrollLeft)>=Math.floor(this.container.scrollWidth);e!==this.scrollable&&(e&&!t?this.container.classList.add("table__container--scrollable"):this.container.classList.remove("table__container--scrollable")),a!==this.scrolled&&(a&&!t?this.container.classList.add("table__container--scrolled"):this.container.classList.remove("table__container--scrolled")),s!==this.scrolledToEnd&&(s&&!t?this.container.classList.add("table__container--scrolled-to-end"):this.container.classList.remove("table__container--scrolled-to-end"))}getColumns(){return Array.from(this.el.querySelectorAll("swirl-table-column"))}getCells(){return Array.from(this.el.querySelectorAll("swirl-table-cell"))}async resetEmptyRowStyles(){const t=this.el.shadowRoot.querySelector(".table__empty-row");Boolean(t)&&(t.style.width="",await new Promise((t=>setTimeout(t))))}async resetRowGroupStyles(){Array.from(this.el.querySelectorAll("swirl-table-row-group")).forEach((t=>{t.shadowRoot.querySelector(".table-row-group__header-row").style.width=""})),await new Promise((t=>setTimeout(t)))}async resetColumnStyles(){this.getColumns().forEach((t=>{t.classList.remove("table-column--has-shadow"),t.style.right="",t.style.left="",t.style.position="",t.style.zIndex=""})),await new Promise((t=>setTimeout(t)))}async resetCellStyles(){this.getCells().forEach((t=>{t.classList.remove("table-cell--has-shadow"),t.style.flex="",t.style.left="",t.style.right="",t.style.position="",t.style.zIndex=""})),await new Promise((t=>setTimeout(t)))}async layoutEmptyRow(){const t=this.el.shadowRoot.querySelector(".table__empty-row");if(!Boolean(t))return;const e=`${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;t.style.width=e}async layoutRowGroups(){const t=Array.from(this.el.querySelectorAll("swirl-table-row-group")),e=`${this.el.shadowRoot.querySelector(".table__container").scrollWidth}px`;t.forEach((t=>{t.shadowRoot.querySelector(".table-row-group__header-row").style.width=e}))}async layOutColumns(){const t=this.getColumns(),e=this.container.clientWidth;t.forEach(((a,s)=>{var o,r;if(!a.sticky||i())return;const l=s<=Math.floor(t.length/2),n=null===(o=t[s+1])||void 0===o?void 0:o.sticky,h=null===(r=t[s-1])||void 0===r?void 0:r.sticky;a.style.zIndex=l&&n?"1":"",l&&!n||!l&&!h?a.classList.add(l?"table-column--has-shadow-right":"table-column--has-shadow-left"):(a.classList.remove("table-column--has-shadow-right"),a.classList.remove("table-column--has-shadow-left"));const d=l?a.offsetLeft:Math.max(0,e-(a.offsetLeft+a.getBoundingClientRect().width));a.style.position="sticky",l?a.style.left=`${d}px`:a.style.right=`${d}px`})),await new Promise((t=>setTimeout(t)))}layOutCells(){const t=this.getColumns(),e=this.getCells();t.forEach(((a,s)=>{var o,r;const l=e.filter(((e,a)=>(s-a)%t.length==0)),n=s<=Math.floor(t.length/2),h=n?window.getComputedStyle(a).left:window.getComputedStyle(a).right,d=null===(o=t[s+1])||void 0===o?void 0:o.sticky,c=null===(r=t[s-1])||void 0===r?void 0:r.sticky,b=a.sticky,w=a.width||`${a.getBoundingClientRect().width}px`;l.forEach((t=>{const e=b&&n,a=b&&!n,s=n&&d;if(t.style.flex=Boolean(w)?`0 0 ${w}`:"",i())return t.classList.remove("table-cell--has-shadow"),t.style.left="",t.style.right="",t.style.position="",void(t.style.zIndex="");t.style.left=e?h:"",t.style.right=a?h:"",t.style.position=b?"sticky":"",t.style.zIndex=s?"1":"",b&&(n&&!d||!n&&!c)?t.classList.add(n?"table-cell--has-shadow-right":"table-cell--has-shadow-left"):(t.classList.remove("table-cell--has-shadow-right"),t.classList.remove("table-cell--has-shadow-left"))}))}))}updateEmptyState(){const t=this.el.querySelector('[slot="rows"]');this.empty=!Boolean(t)||0===t.children.length}render(){return e(a,null,e("div",{class:"table"},e("div",{class:"table__container",onScroll:this.onScroll,ref:t=>this.container=t},e("div",{"aria-describedby":Boolean(this.caption)?"caption":void 0,"aria-label":this.label,role:"table",class:"table__table"},this.caption&&e("swirl-visually-hidden",null,e("div",{id:"caption"},this.caption)),e("div",{role:"rowgroup"},e("div",{class:"table__header",role:"row"},e("slot",{name:"columns",onSlotchange:this.onSlotChange}))),e("div",{class:"table__body"},e("slot",{name:"rows",onSlotchange:this.onSlotChange}),this.empty&&e("div",{class:"table__empty-row",role:"row"},e("div",{"aria-colspan":this.getColumns().length,class:"table__empty-row-cell",role:"cell"},e("swirl-text",{align:"center",size:"sm"},this.emptyStateLabel))))))))}get el(){return s(this)}};l.style=":host{position:relative;display:block}:host *{box-sizing:border-box}.table__container{position:relative;overflow:auto;width:100%}.table__container--scrolled{--swirl-table-sticky-right-shadow:0.0625rem 0 0 0 var(--s-border-default),\n -0.0625rem 0 0 0 var(--s-border-default),\n 0 0.25rem 1rem rgba(25, 26, 28, 0.04),\n 0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__container--scrollable:not(.table__container--scrolled-to-end){--swirl-table-sticky-left-shadow:0.0625rem 0 0 0 var(--s-border-default),\n -0.0625rem 0 0 0 var(--s-border-default),\n 0 0.25rem 1rem rgba(25, 26, 28, 0.04),\n 0 0.0625rem 0.25rem rgba(25, 26, 28, 0.16)}.table__table{width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:max(20rem, 100%)}.table__header ::slotted(*){display:flex}.table__empty-row{display:flex}.table__empty-row-cell{display:flex;overflow:auto;padding-top:var(--s-space-8);padding-right:var(--s-space-16);padding-bottom:var(--s-space-8);padding-left:var(--s-space-16);flex-basis:0;flex-grow:1;flex-shrink:1;align-items:center;border-right:var(--s-border-width-default) solid var(--s-border-default);border-bottom:var(--s-border-width-default) solid var(--s-border-default);border-left:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default)}.table__empty-row-cell>*{flex-grow:1}";export{l as swirl_table}
|