@oiz/stzh-components 2.14.1 → 2.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-8d05cb28.js → app-globals-5a798c55.js} +2 -2
- package/dist/cjs/{app-globals-8d05cb28.js.map → app-globals-5a798c55.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actionset_4.cjs.entry.js +18 -27
- package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-appnav.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/collection/components/stzh-actionset/stzh-actionset.js +3 -9
- package/dist/collection/components/stzh-actionset/stzh-actionset.js.map +1 -1
- package/dist/collection/components/stzh-appnav/stzh-appnav.css +0 -3
- package/dist/collection/components/stzh-card/stzh-card.css +0 -37
- package/dist/collection/components/stzh-card/stzh-card.js +48 -17
- package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
- package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -2
- package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +0 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-actionset2.js +3 -9
- package/dist/components/stzh-actionset2.js.map +1 -1
- package/dist/components/stzh-appnav.js +1 -1
- package/dist/components/stzh-appnav.js.map +1 -1
- package/dist/components/stzh-card2.js +17 -18
- package/dist/components/stzh-card2.js.map +1 -1
- package/dist/esm/{app-globals-fb258145.js → app-globals-0d709c6e.js} +2 -2
- package/dist/esm/{app-globals-fb258145.js.map → app-globals-0d709c6e.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actionset_4.entry.js +18 -27
- package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-appnav.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm-es5/{app-globals-fb258145.js → app-globals-0d709c6e.js} +2 -2
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-actionset_4.entry.js +2 -2
- package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
- package/dist/stzh-components/{p-90df75de.system.entry.js → p-5733dcff.system.entry.js} +2 -2
- package/dist/stzh-components/p-5733dcff.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-592a0a81.system.js → p-5846073b.system.js} +2 -2
- package/dist/stzh-components/{p-592a0a81.system.js.map → p-5846073b.system.js.map} +1 -1
- package/dist/stzh-components/p-682bbd00.system.entry.js +8 -0
- package/dist/stzh-components/p-682bbd00.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-4926cc0e.entry.js → p-bb571b2d.entry.js} +2 -2
- package/dist/stzh-components/p-bb571b2d.entry.js.map +1 -0
- package/dist/stzh-components/{p-61209b86.system.js → p-cf85da9a.system.js} +2 -2
- package/dist/stzh-components/{p-c53ea563.entry.js → p-de184696.entry.js} +2 -2
- package/dist/stzh-components/p-de184696.entry.js.map +1 -0
- package/dist/stzh-components/{p-ae0889eb.js → p-e82271a0.js} +2 -2
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-card/stzh-card.d.ts +9 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/vscode-data.json +25 -0
- package/package.json +1 -1
- package/dist/stzh-components/p-4926cc0e.entry.js.map +0 -1
- package/dist/stzh-components/p-6a2947fe.system.entry.js +0 -8
- package/dist/stzh-components/p-6a2947fe.system.entry.js.map +0 -1
- package/dist/stzh-components/p-90df75de.system.entry.js.map +0 -1
- package/dist/stzh-components/p-c53ea563.entry.js.map +0 -1
- /package/dist/esm-es5/{app-globals-fb258145.js.map → app-globals-0d709c6e.js.map} +0 -0
- /package/dist/stzh-components/{p-61209b86.system.js.map → p-cf85da9a.system.js.map} +0 -0
- /package/dist/stzh-components/{p-ae0889eb.js.map → p-e82271a0.js.map} +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,s){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function n(t){try{l(s.next(t))}catch(t){a(t)}}function o(t){try{l(s["throw"](t))}catch(t){a(t)}}function l(t){t.done?i(t.value):r(t.value).then(n,o)}l((s=s.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,r,a,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return l([t,e])}}function l(o){if(s)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(i=0)),i)try{if(s=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];r=0}finally{s=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0)i[s]=t[s];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r<s.length;r++){if(e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r]))i[s[r]]=t[s[r]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var s=0,r=e.length,a;s<r;s++){if(a||!(s in e)){if(!a)a=Array.prototype.slice.call(e,0,s);a[s]=e[s]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-290fcb28.system.js","./p-bd1030c9.system.js","./p-f9cb0fcd.system.js","./p-774595ba.system.js"],(function(t){"use strict";var e,i,s,r,a,n,o,l,c,h,d,u;return{setters:[function(t){e=t.r;i=t.c;s=t.h;r=t.a;a=t.g;n=t.f;o=t.F},function(t){l=t.m;c=t.a;h=t.r},function(t){d=t.s;u=t.h},function(){}],execute:function(){var f=".sc-stzh-actionset-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-actionset-h{display:none}.sc-stzh-actionset-h *.sc-stzh-actionset,.sc-stzh-actionset-h *.sc-stzh-actionset::before,.sc-stzh-actionset-h *.sc-stzh-actionset::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-actionset-h .has-focus.sc-stzh-actionset{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-actionset-h .stzh-fylingfocus-focused.sc-stzh-actionset{outline-style:none !important}.sc-stzh-actionset-h .stzh-fylingfocus-focused.sc-stzh-actionset::-moz-focus-inner{border:0 !important}.stzh-actionset__actions.sc-stzh-actionset{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-actionset__actions-wrapper.sc-stzh-actionset{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}.stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-right:var(--stzh-space-xsmall)}.stzh-actionset__action-popover.sc-stzh-actionset{opacity:0}.stzh-actionset--has-collapsed-items.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{--width:auto;opacity:1}@media screen and (min-width: 1024px){.stzh-actionset--overflow.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset{--white-space:nowrap}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__actions-wrapper.sc-stzh-actionset{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}}@media screen and (min-width: 600px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset{--white-space:nowrap}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action.sc-stzh-actionset:not(:last-child){margin-bottom:var(--stzh-space-xsmall);margin-right:0}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset .stzh-actionset__action-popover.sc-stzh-actionset{margin-top:var(--stzh-space-xsmall)}}@media screen and (max-width: 599px){.stzh-actionset--stack.sc-stzh-actionset:not(.stzh-actionset--has-collapsed-items) .stzh-actionset__action-popover.sc-stzh-actionset{display:none}}";var p=t("stzh_actionset",function(){function t(t){var s=this;e(this,t);this.stzhActionClick=i(this,"stzhActionClick",7);this._actions=[];this.actionClick=function(t,e){s.stzhActionClick.emit({component:"stzh-actionset",action:t,originalEvent:e})};this.update=function(){s.isSmall=l("small").matches;s.isMedium=l("medium").matches;if(!s.actionsElement){return}Object.assign(s.actionsElement.style,{width:null,height:null});var t=0;if(s.variant==="overflow"&&s.isMedium||s.variant==="stack"&&s.isSmall){s.dynamicActions=true;var e=0;var i=0;Array.from(s.actionsElement.children).forEach((function(s){if(s.offsetTop===0){t++;var r=getComputedStyle(s);var a=parseInt(r.marginLeft);var n=parseInt(r.marginRight);var o=parseInt(r.marginTop);var l=parseInt(r.marginBottom);var c=s.offsetWidth+a+n;var h=s.offsetHeight+o+l;if(e<h){e=h}i=i+c+1}}));Object.assign(s.actionsElement.style,{width:"".concat(i,"px"),height:"".concat(e,"px")})}else{s.dynamicActions=false;if(s.variant==="overflow"){t=0}else if(s.variant==="stack"){t=s._actions.length<=3?s._actions.length:2}}s.actionsCollapsed=s._actions.slice(t)};this.handleResize=function(){if(s.debounceResize){window.cancelAnimationFrame(s.debounceResize)}s.debounceResize=requestAnimationFrame(s.update)};this.mediaChangeHandler=function(){s.actionsCollapsed=[];requestAnimationFrame(s.update)};this.localization=undefined;this.variant="stack";this.popoverButtonVariant="";this.popoverButtonSize="";this.popoverPlacement="bottom-end";this.actions=[];this.actionsCollapsed=[];this.dynamicActions=undefined;this.isSmall=undefined;this.isMedium=undefined}t.prototype.actionsWatcher=function(t){if(typeof t==="string"){this._actions=JSON.parse(t)}else{this._actions=t}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.actionsWatcher(this.actions);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"actionset")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.connectedCallback=function(){c(this.mediaChangeHandler);this.resizeObserver=new ResizeObserver(this.handleResize);this.resizeObserver.observe(this.element)};t.prototype.disconnectedCallback=function(){h(this.mediaChangeHandler);if(this.resizeObserver){this.resizeObserver.disconnect()}};t.prototype.componentDidLoad=function(){this.update()};t.prototype.render=function(){var t;var e=this;var i=(t={"stzh-actionset":true,"stzh-actionset--has-collapsed-items":this.actionsCollapsed.length>0},t["stzh-actionset--".concat(this.variant)]=!!this.variant,t);var a=function(t){return s("stzh-button",{class:{"stzh-actionset__action":true,"is-button":true},icon:t.icon,iconPosition:t.iconPosition,iconOnly:t.iconOnly,badge:t.badge,variant:t.variant?t.variant:e.variant==="stack"?"secondary":"tertiary",size:t.size?t.size:e.variant==="stack"?"default":"tiny",badgePosition:"icon",onClick:function(i){e.actionClick(t,i)}},s("span",{class:{}},t.label))};return s(r,{"has-collapsed-items":this.actionsCollapsed.length>0},s("div",{class:i},s("div",{class:"stzh-actionset__actions",role:"group"},s("div",{ref:function(t){return e.actionsElement=t},class:"stzh-actionset__actions-wrapper"},this._actions.map((function(t){return(e.dynamicActions||!e.dynamicActions&&e.actionsCollapsed.indexOf(t)===-1)&&(t.tooltipContent?s("stzh-tooltip",{strategy:"fixed",content:t.tooltipContent},a(t)):a(t))}))),s("stzh-popover",{label:this.variant==="stack"?this.localization.furtherActions:!this.isMedium?this.localization.actions:"",strategy:"fixed",placement:this.popoverPlacement,class:"stzh-actionset__action-popover"},s("stzh-button",{fullwidth:true,disabled:this.actionsCollapsed.length===0,class:"stzh-actionset__action is-further",variant:this.popoverButtonVariant!==""?this.popoverButtonVariant:this.variant==="stack"?"secondary":"tertiary",size:this.popoverButtonSize!==""?this.popoverButtonSize:this.variant==="stack"?"default":"tiny",icon:this.variant==="stack"?"angle-down":"more-vertical",iconOnly:this.variant==="overflow"&&this.isMedium,iconPosition:"right",label:this.variant==="stack"?this.localization.furtherActions:!this.isMedium?this.localization.actions:""}),s("stzh-menu",{slot:"content"},this.actionsCollapsed.map((function(t){return s("stzh-menu-item",{icon:t.icon,badge:t.badge,badgeEmpty:t.badgeEmpty,badgeType:t.badgeType,onClick:function(i){e.actionClick(t,i)}},t.label)})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{actions:["actionsWatcher"]}},enumerable:false,configurable:true});return t}());p.style=f;var m='.sc-stzh-card-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-card-h{display:none}.sc-stzh-card-h *.sc-stzh-card,.sc-stzh-card-h *.sc-stzh-card::before,.sc-stzh-card-h *.sc-stzh-card::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-card-h .has-focus.sc-stzh-card{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-card-h .stzh-fylingfocus-focused.sc-stzh-card{outline-style:none !important}.sc-stzh-card-h .stzh-fylingfocus-focused.sc-stzh-card::-moz-focus-inner{border:0 !important}.sc-stzh-card-h{--box-shadow:var(--stzh-box-shadow-popover);--border-color:var(--stzh-base-border-color);--border-radius:0.1875rem;--content-min-height:7.5rem;--dnd-visibility:hidden;--dnd-opacity:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative;border-radius:var(--border-radius)}@media print{.sc-stzh-card-h{page-break-inside:avoid;-moz-column-break-inside:avoid;-webkit-column-break-inside:avoid;break-inside:avoid}}[collapsed].sc-stzh-card-h:not([collapsed=false]){--content-min-height:none}[checked].sc-stzh-card-h:not([checked=false]){outline:0.1875rem solid var(--stzh-color-primary, var(--stzh-color-zueriblue))}[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]){--box-shadow:none}[hide-elevation].sc-stzh-card-h:not([hide-elevation=false])[href]:hover,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false])[href]:focus-within,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]).is-selected,[hide-elevation].sc-stzh-card-h:not([hide-elevation=false]).is-chosen,.is-selected [hide-elevation].sc-stzh-card-h:not([hide-elevation=false]),.is-chosen [hide-elevation].sc-stzh-card-h:not([hide-elevation=false]){--box-shadow:var(--stzh-box-shadow-popover)}.is-ghost.sc-stzh-card-h::after,.is-ghost .sc-stzh-card-h::after{border-radius:var(--border-radius)}[href].sc-stzh-card-h:hover,[href].sc-stzh-card-h:focus-within,.is-selected.sc-stzh-card-h,.is-chosen.sc-stzh-card-h,.is-selected .sc-stzh-card-h,.is-chosen .sc-stzh-card-h{--box-shadow:var(--stzh-box-shadow-overlay)}.is-ghost.sc-stzh-card-h,.is-ghost .sc-stzh-card-h{--box-shadow:none;--border-color:transparent;overflow:hidden}.is-drag.sc-stzh-card-h,.is-chosen.sc-stzh-card-h,.is-ghost.sc-stzh-card-h,.is-selected.sc-stzh-card-h,.is-drag .sc-stzh-card-h,.is-chosen .sc-stzh-card-h,.is-ghost .sc-stzh-card-h,.is-selected .sc-stzh-card-h,[is-sortable].sc-stzh-card-h:hover{--dnd-visibility:visible;--dnd-opacity:1}.sc-stzh-card-h .sc-stzh-card-s>*{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing)}.sc-stzh-card-h .sc-stzh-card-s>[slot=image]{width:100%;max-width:100%;background-color:var(--stzh-color-grey13)}.sc-stzh-card-h .sc-stzh-card-s>img[slot=image]{display:block}.sc-stzh-card-h .sc-stzh-card-s>[slot=meta]:not(:last-child){margin-right:var(--stzh-space-xsmall)}.sc-stzh-card-h .sc-stzh-card-s>table{border:0;border-spacing:0}.sc-stzh-card-h .sc-stzh-card-s>table th{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular)}.sc-stzh-card-h .sc-stzh-card-s>table td,.sc-stzh-card-h .sc-stzh-card-s>table th{padding:0}.sc-stzh-card-h .sc-stzh-card-s>table td{color:var(--stzh-color-black);padding-left:var(--stzh-space-xsmall)}.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:var(--stzh-font-style-heavy);font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-default-heading-letter-spacing)}@media screen and (min-width: 600px){.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-heading-line-height, var(--stzh-font-deci-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-small-heading-letter-spacing)}}@media screen and (min-width: 1024px){.sc-stzh-card-h .sc-stzh-card-s>[slot=heading],.stzh-card__title.sc-stzh-card{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-heading-line-height, var(--stzh-font-regular-heading-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-heading-letter-spacing)}}.stzh-card.sc-stzh-card{-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--stzh-color-white);border-radius:var(--border-radius);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);border-width:0.0625rem;border-style:solid;border-color:var(--border-color);-webkit-transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:-webkit-box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed);transition:box-shadow var(--stzh-base-transition-animation-speed), -webkit-box-shadow var(--stzh-base-transition-animation-speed)}@media screen and (max-width: 1023px){.stzh-card.sc-stzh-card .vshow-medium.sc-stzh-card{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}}@media screen and (max-width: 1023px){.stzh-card.sc-stzh-card .show-medium.sc-stzh-card{display:none}}@media screen and (min-width: 1024px){.stzh-card.sc-stzh-card .hide-medium.sc-stzh-card{display:none}}.stzh-card__content-wrapper.sc-stzh-card{position:relative;-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:var(--content-min-height)}.stzh-card__dnd.sc-stzh-card{--size:var(--stzh-icon-size-xsmall);position:absolute;left:0.1875rem;top:1.4375rem;display:-ms-flexbox;display:flex;visibility:var(--dnd-visibility);opacity:var(--dnd-opacity);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);display:none}@media screen and (min-width: 1024px){.stzh-card__dnd.sc-stzh-card{display:block}}@media screen and (min-width: 1260px){.stzh-card__dnd.sc-stzh-card{left:0.25rem;top:1.6875rem}}.stzh-card__header-top.sc-stzh-card{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}.stzh-card__header-meta.sc-stzh-card:not(:empty){display:-ms-inline-flexbox;display:inline-flex;margin-top:var(--stzh-space-xsmall)}.stzh-card__header-left.sc-stzh-card,.stzh-card__header-right.sc-stzh-card{display:-ms-flexbox;display:flex}.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-small)}}@media screen and (min-width: 1260px){.stzh-card__header-right.sc-stzh-card{padding-left:var(--stzh-space-medium)}}.stzh-card__left.sc-stzh-card{-ms-flex-item-align:center;align-self:center}.stzh-card__title-area.sc-stzh-card{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden}.stzh-card__title.sc-stzh-card,.stzh-card__subtitle.sc-stzh-card{margin:0}.stzh-card__title-link.sc-stzh-card{color:inherit;-webkit-text-decoration-line:none;text-decoration-line:none}.stzh-card__image-link.sc-stzh-card{display:block}.stzh-card__subtitle.sc-stzh-card{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-text-decoration-line:none;text-decoration-line:none;margin-left:-0.5625em}@media screen and (min-width: 1024px){.stzh-card__subtitle.sc-stzh-card{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-card__subtitle-text.sc-stzh-card{position:relative;display:-ms-inline-flexbox;display:inline-flex;padding-left:0.5625em}.stzh-card__subtitle-text.sc-stzh-card::after{content:",";position:absolute;left:0}.stzh-card__content.sc-stzh-card{-ms-flex-positive:1;flex-grow:1}.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card__content.sc-stzh-card:not(:empty){padding:var(--stzh-space-xlarge)}}.stzh-card__footer-arrow.sc-stzh-card{--size:var(--stzh-icon-size-medium);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card__card-actions.sc-stzh-card{display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}@media screen and (max-width: 1023px){.stzh-card__card-action.sc-stzh-card{--icon-text-margin:0px;--badge-icon-text-margin:0px}}.stzh-card__card-action[variant=tertiary].sc-stzh-card{--color:var(--stzh-color-grey70)}.stzh-card__card-action.is-button.sc-stzh-card{--icon-size:var(--stzh-icon-size-small)}.stzh-card__card-action.is-placeholder.sc-stzh-card{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge)}.stzh-card__card-action-popover.sc-stzh-card{--width:auto}.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-medium);border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card--has-header.sc-stzh-card .stzh-card__header.sc-stzh-card{padding:var(--stzh-space-xlarge)}}.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card{padding:var(--stzh-space-medium);border-top:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card{padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card--has-footer.sc-stzh-card .stzh-card__footer.sc-stzh-card{padding:var(--stzh-space-xlarge)}}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card{color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-text-decoration-line:none;text-decoration-line:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::before,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::after{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%}.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card::after{z-index:1}.stzh-card--has-link.sc-stzh-card .stzh-card__card-actions.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__header-meta.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__footer-actionset.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__footer-select-button.sc-stzh-card{position:relative;z-index:2}.stzh-card--has-link.sc-stzh-card .stzh-card__image-link.sc-stzh-card:hover+.stzh-card__content-wrapper.sc-stzh-card .stzh-card__title-link.sc-stzh-card,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card:hover,.stzh-card--has-link.sc-stzh-card .stzh-card__title-link.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-link.sc-stzh-card:hover .stzh-card__footer-arrow.sc-stzh-card{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card{cursor:pointer;font-family:inherit;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card:hover,.stzh-card--has-subtitle-interactive.sc-stzh-card .stzh-card__subtitle.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--is-collapsible.sc-stzh-card .stzh-card__header.sc-stzh-card{cursor:pointer}.stzh-card--is-collapsed.sc-stzh-card .vhide-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .vhide-when-collapsed.sc-stzh-card{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-card--is-collapsed.sc-stzh-card .hide-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .hide-when-collapsed.sc-stzh-card{display:none}.stzh-card--is-collapsed.sc-stzh-card .show-when-collapsed.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__header.sc-stzh-card .show-when-collapsed.sc-stzh-card{display:block}.stzh-card--is-collapsed.sc-stzh-card .stzh-card__header.sc-stzh-card{border-bottom:none}.stzh-card--is-collapsed.sc-stzh-card .stzh-card__card-action.sc-stzh-card,.stzh-card--has-collapsed-header.sc-stzh-card .stzh-card__card-action.sc-stzh-card{--icon-text-margin:0px;--badge-icon-text-margin:0px}.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card:hover,.stzh-card--is-starred.sc-stzh-card .stzh-card__card-action.is-star.sc-stzh-card:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-card--has-hidden-header-border.sc-stzh-card .stzh-card__header.sc-stzh-card{border-bottom:none;padding-bottom:0}.stzh-card--has-hidden-footer-border.sc-stzh-card .stzh-card__footer.sc-stzh-card:not(:empty){padding-top:0;border-top:none}';var v=t("stzh_card",function(){function t(t){var s=this;e(this,t);this.stzhClick=i(this,"stzhClick",7);this.stzhCollapse=i(this,"stzhCollapse",7);this.stzhSubtitleClick=i(this,"stzhSubtitleClick",7);this.stzhStarClick=i(this,"stzhStarClick",7);this.stzhHeaderActionClick=i(this,"stzhHeaderActionClick",7);this._subtitles=[];this.nodeChange=function(t){var e=false;t.forEach((function(t){if(t.target.closest("[slot]")||t.target.hasAttribute("slot")){e=true}}));if(e){n(s.element)}};this.update=function(){if(!s.mainElement){return}s.mainElement.classList.remove("stzh-card--has-collapsed-header");if(l("medium").matches){var t=s.headerElement.clientWidth;var e=s.headerLeftElement.clientWidth;var i=s.headerRightElement.clientWidth;if(t-e<=i){s.mainElement.classList.add("stzh-card--has-collapsed-header")}}};this.headerClick=function(t){if(!s.collapsible){return}var e=["stzh-popover","stzh-tooltip","button","a","input","select","textarea","iframe","details","label","area"];var i=t.composedPath().map((function(t){var e;return(e=t.tagName)===null||e===void 0?void 0:e.toLowerCase()}));var r=i.some((function(t){return e.includes(t)}));if(!r){s.collapsed=!s.collapsed;s.stzhCollapse.emit({component:"stzh-card",collapsed:s.collapsed})}};this.subtitleClick=function(){if(s.subtitleInteractive){s.stzhSubtitleClick.emit({component:"stzh-card"})}};this.starToggleClick=function(){s.stzhStarClick.emit({component:"stzh-card",starred:s.starred})};this.actionClick=function(t){s.stzhHeaderActionClick.emit({component:"stzh-card",action:t})};this.arrowUpClick=function(){var t=s.element.closest("stzh-sortable");if(t){var e=s.findSortableChildElement();t.moveItem(e,"up")}};this.arrowDownClick=function(){var t=s.element.closest("stzh-sortable");if(t){var e=s.findSortableChildElement();t.moveItem(e,"down")}};this.updateElementInsideSortable=function(){var t=s.element.closest("stzh-sortable");if(!t){s.sortable.removeEventListener("stzhUpdate",s.updateElementInsideSortable);s.sortable.removeEventListener("stzhDisable",s.updateElementInsideSortable);return}if(s.element){n(s.element)}};this.init=function(){var t=s.element.querySelectorAll('stzh-chip[slot="meta"], [slot="meta"] stzh-chip');t.forEach((function(t){d(t,{size:"small"})}))};this.handleResize=function(){if(s.debounceResize){window.cancelAnimationFrame(s.debounceResize)}s.debounceResize=requestAnimationFrame(s.update)};this.handleMutation=function(t){s.init();s.nodeChange(t)};this.handleSelectionChange=function(t){s.checked=t.detail.checked};this.cardClick=function(t){s.stzhClick.emit({component:"stzh-card",originalEvent:t})};this.localization=undefined;this.collapsed=false;this.starred=false;this.starrable=false;this.selectable=false;this.checked=false;this.name="";this.href=undefined;this.target=undefined;this.value="";this.disabled=false;this.withArrow=false;this.heading="";this.headingLevel="3";this.subtitle="";this.headerActions=[];this.footerActions=[];this.subtitleInteractive=false;this.sortableDisabled=false;this.collapsible=false;this.hideHeaderBorder=false;this.hideFooterBorder=false;this.hideElevation=false;this.hideMovementActions=false;this.analyticsId=undefined}t.prototype.subtitleWatcher=function(t){if(typeof t==="string"){if(t===""){this._subtitles=[]}else{try{this._subtitles=JSON.parse(t)}catch(e){this._subtitles=[t]}}}else{this._subtitles=t}};t.prototype.headerActionsWatcher=function(t){if(typeof t==="string"){this._headerActions=JSON.parse(t)}else{this._headerActions=t}};t.prototype.footerActionsWatcher=function(t){if(typeof t==="string"){this._footerActions=JSON.parse(t)}else{this._footerActions=t}};t.prototype.collapsedWatcher=function(){this.handleResize()};t.prototype.findSortableChildElement=function(){var t=this.element.closest("stzh-sortable");if(t){var e=this.element;var i=null;if(typeof t.container==="function"){i=t.container()}else{i=t.container}while(e.parentElement&&e.parentElement!==i){e=e.parentElement}return e}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.subtitleWatcher(this.subtitle);this.headerActionsWatcher(this.headerActions);this.footerActionsWatcher(this.footerActions);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"card")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.sortable=this.element.closest("stzh-sortable");if(this.sortable){this.sortable.addEventListener("stzhUpdate",this.updateElementInsideSortable);this.sortable.addEventListener("stzhDisable",this.updateElementInsideSortable)}};t.prototype.componentDidRender=function(){var t=this;requestAnimationFrame((function(){var e,i,s;var r=t.analyticsId||((e=t.headingTextElement)===null||e===void 0?void 0:e.innerText);if(r){(i=t.imageLinkElement)===null||i===void 0?void 0:i.setAttribute("s-object-id",r);(s=t.titleLinkElement)===null||s===void 0?void 0:s.setAttribute("s-object-id",r)}}))};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.handleMutation);this.observer.observe(this.element,{childList:true,subtree:true});this.resizeObserver=new ResizeObserver(this.handleResize);this.resizeObserver.observe(this.element)};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}if(this.resizeObserver){this.resizeObserver.disconnect()}};t.prototype.render=function(){var t=this;var e,i,a;var n=u(this.element,"image");var l=u(this.element,"heading");var c=u(this.element,"footer");var h=u(this.element,"content");var d="h".concat(this.headingLevel);var f="".concat(this.subtitleInteractive?"button":"span");var p=this.findSortableChildElement();var m=(p===null||p===void 0?void 0:p.parentElement)&&Array.from((e=p===null||p===void 0?void 0:p.parentElement)===null||e===void 0?void 0:e.children).indexOf(p)===0;var v=(p===null||p===void 0?void 0:p.parentElement)&&Array.from((i=p===null||p===void 0?void 0:p.parentElement)===null||i===void 0?void 0:i.children).indexOf(p)===((a=p===null||p===void 0?void 0:p.parentElement)===null||a===void 0?void 0:a.children.length)-1;var g=!this.sortableDisabled&&this.sortable&&!this.sortable.disabled;var b=g&&!this.hideMovementActions;var z=this._headerActions.filter((function(t){return!t.onlyCollapseText}));var _=!!this.heading||l;var y=_||this._subtitles.length>0||this._headerActions.length>0||z.length>0||this.starrable||b;var w=c||this._footerActions.length>0||this.selectable||this.withArrow;var x={"stzh-card":true,"stzh-card--has-link":!!this.href,"stzh-card--has-image":n,"stzh-card--has-content":h,"stzh-card--has-subtitle":!!this.subtitle,"stzh-card--has-subtitle-interactive":!!this.subtitle&&this.subtitleInteractive,"stzh-card--has-hidden-header-border":this.hideHeaderBorder,"stzh-card--has-hidden-footer-border":this.hideFooterBorder,"stzh-card--has-header":y,"stzh-card--has-footer":w,"stzh-card--is-collapsible":this.collapsible,"stzh-card--is-collapsed":this.collapsed,"stzh-card--is-starred":this.starred,"stzh-card--is-checked":this.checked,"stzh-card--is-sortable":g};return s(r,{role:"listitem","aria-label":this.heading,"is-sortable":g},s("article",{ref:function(e){return t.mainElement=e},class:x},s("a",{ref:function(e){return t.imageLinkElement=e},"aria-hidden":"true",tabindex:"-1",class:"stzh-card__image-link",href:this.href,target:this.target,onClick:this.href?this.cardClick:null},s("slot",{name:"image"})),s("div",{class:"stzh-card__content-wrapper"},s("stzh-icon",{class:"stzh-card__dnd",name:"drag"}),s("header",{ref:function(e){return t.headerElement=e},class:"stzh-card__header",onClick:this.headerClick},s("div",{class:"stzh-card__header-top"},s("div",{ref:function(e){return t.headerLeftElement=e},class:"stzh-card__header-left"},s("div",{class:"stzh-card__title-area"},_&&s(d,{class:"stzh-card__title"},s("a",{ref:function(e){return t.titleLinkElement=e},class:"stzh-card__title-link",href:this.href,target:this.target,onClick:this.href?this.cardClick:null},s("div",{ref:function(e){return t.headingTextElement=e}},this.heading?this.heading:s("slot",{name:"heading"})))),this._subtitles.length>0&&s(f,{class:"stzh-card__subtitle",onClick:this.subtitleClick},this._subtitles.map((function(t){return s("span",{class:"stzh-card__subtitle-text"},t)}))))),s("div",{ref:function(e){return t.headerRightElement=e},class:"stzh-card__header-right"},s("div",{class:"stzh-card__card-actions"},this._headerActions.map((function(e){return s("stzh-button",{class:{"stzh-card__card-action":true,"is-button":true,"show-medium":!e.onlyCollapseText,"hide-when-collapsed":!e.onlyCollapseText,"hide-text-when-collapsed":e.onlyCollapseText},icon:e.icon,badge:e.badge,badgeEmpty:e.badgeEmpty,badgeType:e.badgeType,variant:"tertiary",size:"tiny",badgePosition:"icon",onClick:function(){t.actionClick(e)}},s("span",{class:{"vshow-medium":e.onlyCollapseText,"vhide-when-collapsed":e.onlyCollapseText}},e.label))})),this.starrable&&s("stzh-tooltip",null,s("stzh-button",{class:"stzh-card__card-action is-star",icon:this.starred?"star-filled":"star",variant:"tertiary",size:"tiny",iconOnly:true,onClick:this.starToggleClick}),s("div",{slot:"content"},this.starred?this.localization.actionRemove:this.localization.actionAdd)),(z.length>0||this.starrable||b)&&s("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:{"stzh-card__card-action-popover":true,"hide-medium show-when-collapsed":!this.starrable&&!b}},s("stzh-button",{class:"stzh-card__card-action is-further",variant:"tertiary",size:"tiny",icon:"more-vertical",iconOnly:true}),s("stzh-menu",{slot:"content"},this.starrable&&s("stzh-menu-item",{icon:this.starred?"star-filled":"star",onClick:this.starToggleClick},this.starred?this.localization.actionRemove:this.localization.actionAdd),z.map((function(e){return s("stzh-menu-item",{class:"hide-medium show-when-collapsed",icon:e.icon,badge:e.badge,badgeEmpty:e.badgeEmpty,badgeType:e.badgeType,onClick:function(){t.actionClick(e)}},e.label)})),b&&s(o,null,!m&&s("stzh-menu-item",{icon:"arrow-up",onClick:this.arrowUpClick},this.localization.actionMoveUp),!v&&s("stzh-menu-item",{icon:"arrow-down",onClick:this.arrowDownClick},this.localization.actionMoveDown))))))),s("div",{class:"stzh-card__header-meta"},s("slot",{name:"meta"}))),s("div",{class:"stzh-card__content hide-when-collapsed"},s("slot",{name:"content"})),s("div",{class:"stzh-card__footer hide-when-collapsed"},s("slot",{name:"footer"},this._footerActions.length>0&&s("stzh-actionset",{class:"stzh-card__footer-actionset",actions:this._footerActions}),this.selectable&&s("stzh-button",{class:"stzh-card__footer-select-button",fullwidth:true,type:"radio",variant:"secondary",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,label:this.localization.select,onStzhChange:this.handleSelectionChange}),this.withArrow&&s("stzh-icon",{class:"stzh-card__footer-arrow",name:"arrow-right-long"}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{subtitle:["subtitleWatcher"],headerActions:["headerActionsWatcher"],footerActions:["footerActionsWatcher"],collapsed:["collapsedWatcher"]}},enumerable:false,configurable:true});return t}());v.style=m;var g=".sc-stzh-card-list-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-card-list-h{display:none}.sc-stzh-card-list-h *.sc-stzh-card-list,.sc-stzh-card-list-h *.sc-stzh-card-list::before,.sc-stzh-card-list-h *.sc-stzh-card-list::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-card-list-h .has-focus.sc-stzh-card-list{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-card-list-h .stzh-fylingfocus-focused.sc-stzh-card-list{outline-style:none !important}.sc-stzh-card-list-h .stzh-fylingfocus-focused.sc-stzh-card-list::-moz-focus-inner{border:0 !important}.sc-stzh-card-list-h .sc-stzh-card-list-s>[slot=description] stzh-icon{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.sc-stzh-card-list-h .sc-stzh-card-list-s>stzh-text[slot=description]{--color:inherit}.stzh-card-list__cards.sc-stzh-card-list{display:grid;gap:var(--stzh-grid-gutter)}@media screen and (min-width: 600px){.stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-grid-gutter-small)}}@media screen and (min-width: 1024px){.stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-grid-gutter-medium)}}.stzh-card-list__header.sc-stzh-card-list{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}@media screen and (min-width: 800px){.stzh-card-list__header.sc-stzh-card-list{-ms-flex-direction:row;flex-direction:row}}.stzh-card-list__description.sc-stzh-card-list{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-card-list__description.sc-stzh-card-list{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-card-list__description.sc-stzh-card-list:not(:empty){margin-bottom:0}}.stzh-card-list__switch.sc-stzh-card-list{--color:var(--stzh-base-lead-color);-ms-flex-item-align:end;align-self:end}.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card-list--has-header.sc-stzh-card-list .stzh-card-list__header.sc-stzh-card-list{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 600px){.stzh-card-list--layout-subpages.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media screen and (min-width: 1024px){.stzh-card-list--layout-subpages.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{grid-template-columns:repeat(3, minmax(0, 1fr))}}.stzh-card-list--layout-fullwidth.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-card-list--layout-fullwidth.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-card-list--layout-fullwidth.sc-stzh-card-list .stzh-card-list__cards.sc-stzh-card-list{gap:var(--stzh-space-xlarge)}}";var b=t("stzh_card_list",function(){function t(t){var s=this;e(this,t);this.stzhCollapseAll=i(this,"stzhCollapseAll",7);this.collapseClick=function(){var t=Array.from(s.element.querySelectorAll("stzh-card"));t.forEach((function(t){if(t.collapsible){t.collapsed=!s.allCollapsed}}));s.allCollapsed=!s.allCollapsed;s.stzhCollapseAll.emit({component:"stzh-card-list",allCollapsed:s.allCollapsed})};this.updateCollapsedState=function(){var t=Array.from(s.element.querySelectorAll("stzh-card"));s.allCollapsed=!t.some((function(t){return!t.collapsed}))};this.sortableGhostClone=function(t){var e=t.tagName.toLowerCase()==="stzh-card"?t:t.querySelector("stzh-card");if(e){var i=t;var s=t.cloneNode(true);s.heading=i.heading;s.subtitle=i.subtitle;s.headerActions=i.headerActions;s.footerActions=i.footerActions;s.hideMovementActions=i.hideMovementActions;return s}};this.localization=undefined;this.layout="fullwidth";this.description=undefined;this.showToggleLink=false;this.sortableEnabled=false;this.sortableDataIdAttribute="data-id";this.allCollapsed=false}t.prototype.collapseListener=function(){this.updateCollapsedState()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"card-list")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateCollapsedState()};t.prototype.render=function(){var t;var e=u(this.element,"description")||!!this.description;var i=(t={"stzh-card-list":true,"stzh-card-list--has-header":this.showToggleLink||e},t["stzh-card-list--layout-".concat(this.layout)]=!!this.layout,t);return s(r,null,s("div",{class:i},s("div",{class:"stzh-card-list__header"},s("div",{class:"stzh-card-list__description"},this.description?this.description:s("slot",{name:"description"})),this.showToggleLink&&s("stzh-link",{class:"stzh-card-list__switch",icon:this.allCollapsed?"list-expanded":"list-shrinked",label:this.allCollapsed?this.localization.expandAll:this.localization.collapseAll,onClick:this.collapseClick})),s("stzh-sortable",{disabled:!this.sortableEnabled,dataIdAttribute:this.sortableDataIdAttribute,ghostClone:this.sortableGhostClone},s("div",{class:"stzh-card-list__cards",role:"list"},s("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());b.style=g;var z=function(t){return"object"==typeof t&&null!=t&&1===t.nodeType},_=function(t,e){return(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t)},y=function(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var i=getComputedStyle(t,null);return _(i.overflowY,e)||_(i.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1},w=function(t,e,i,s,r,a,n,o){return a<t&&n>e||a>t&&n<e?0:a<=t&&o<=i||n>=e&&o>=i?a-t-s:n>e&&o<i||a<t&&o>i?n-e+r:0},x=function(t){var e=t.parentElement;return null==e?t.getRootNode().host||null:e},E=function(t,e){var i,s,r,a;if("undefined"==typeof document)return[];var n=e.scrollMode,o=e.block,l=e.inline,c=e.boundary,h=e.skipOverflowHiddenElements,d="function"==typeof c?c:function(t){return t!==c};if(!z(t))throw new TypeError("Invalid target");var u=document.scrollingElement||document.documentElement,f=[];var p=t;for(;z(p)&&d(p);){if(p=x(p),p===u){f.push(p);break}null!=p&&p===document.body&&y(p)&&!y(document.documentElement)||null!=p&&y(p,h)&&f.push(p)}var m=null!=(s=null==(i=window.visualViewport)?void 0:i.width)?s:innerWidth,v=null!=(a=null==(r=window.visualViewport)?void 0:r.height)?a:innerHeight,g=window.scrollX,b=window.scrollY,_=t.getBoundingClientRect(),E=_.height,C=_.width,k=_.top,D=_.right,S=_.bottom,A=_.left;var I="start"===o||"nearest"===o?k:"end"===o?S:k+E/2,T="center"===l?A+C/2:"end"===l?D:A;var O=[];for(var M=0;M<f.length;M++){var N=f[M],P=N.getBoundingClientRect(),L=P.height,R=P.width,W=P.top,B=P.right,H=P.bottom,F=P.left;if("if-needed"===n&&k>=0&&A>=0&&S<=v&&D<=m&&k>=W&&S<=H&&A>=F&&D<=B)return O;var X=getComputedStyle(N),Y=parseInt(X.borderLeftWidth,10),j=parseInt(X.borderTopWidth,10),U=parseInt(X.borderRightWidth,10),K=parseInt(X.borderBottomWidth,10);var q=0,G=0;var V="offsetWidth"in N?N.offsetWidth-N.clientWidth-Y-U:0,J="offsetHeight"in N?N.offsetHeight-N.clientHeight-j-K:0,Z="offsetWidth"in N?0===N.offsetWidth?0:R/N.offsetWidth:0,Q="offsetHeight"in N?0===N.offsetHeight?0:L/N.offsetHeight:0;if(u===N)q="start"===o?I:"end"===o?I-v:"nearest"===o?w(b,b+v,v,j,K,b+I,b+I+E,E):I-v/2,G="start"===l?T:"center"===l?T-m/2:"end"===l?T-m:w(g,g+m,m,Y,U,g+T,g+T+C,C),q=Math.max(0,q+b),G=Math.max(0,G+g);else{q="start"===o?I-W-j:"end"===o?I-H+K+J:"nearest"===o?w(W,H,L,j,K+J,I,I+E,E):I-(W+L/2)+J/2,G="start"===l?T-F-Y:"center"===l?T-(F+R/2)+V/2:"end"===l?T-B+U+V:w(F,B,R,Y,U+V,T,T+C,C);var $=N.scrollLeft,tt=N.scrollTop;q=Math.max(0,Math.min(tt+q/Q,N.scrollHeight-L/Q+J)),G=Math.max(0,Math.min($+G/Z,N.scrollWidth-R/Z+V)),I+=tt-q,T+=$-G}O.push({el:N,top:q,left:G})}return O};var C=function(t){return!1===t?{block:"end",inline:"nearest"}:function(t){return t===Object(t)&&0!==Object.keys(t).length}(t)?t:{block:"start",inline:"nearest"}};function k(t,e){if(!t.isConnected||!function(t){var e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1}(t))return;var i=function(t){var e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}}(t);if(function(t){return"object"==typeof t&&"function"==typeof t.behavior}(e))return e.behavior(E(t,e));var s="boolean"==typeof e||null==e?void 0:e.behavior;for(var r=0,a=E(t,C(e));r<a.length;r++){var n=a[r],o=n.el,l=n.top,c=n.left;var h=l-i.top+i.bottom,d=c-i.left+i.right;o.scroll({top:h,left:d,behavior:s})}}
|
|
2
|
-
/**!
|
|
3
|
-
* Sortable 1.15.0
|
|
4
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
5
|
-
* @author owenm <owen23355@gmail.com>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/function D(){D=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i){if(Object.prototype.hasOwnProperty.call(i,s)){t[s]=i[s]}}}return t};return D.apply(this,arguments)}var S="1.15.0";function A(t){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(t)}}var I=A(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var T=A(/Edge/i);var O=A(/firefox/i);var M=A(/safari/i)&&!A(/chrome/i)&&!A(/android/i);var N=A(/iP(ad|od|hone)/i);var P=A(/chrome/i)&&A(/android/i);var L={capture:false,passive:false};function R(t,e,i){t.addEventListener(e,i,!I&&L)}function W(t,e,i){t.removeEventListener(e,i,!I&&L)}function B(t,e){if(!e)return;e[0]===">"&&(e=e.substring(1));if(t){try{if(t.matches){return t.matches(e)}else if(t.msMatchesSelector){return t.msMatchesSelector(e)}else if(t.webkitMatchesSelector){return t.webkitMatchesSelector(e)}}catch(t){return false}}return false}function H(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function F(t,e,i,s){if(t){i=i||document;do{if(e!=null&&(e[0]===">"?t.parentNode===i&&B(t,e):B(t,e))||s&&t===i){return t}if(t===i)break}while(t=H(t))}return null}var X=/\s+/g;function Y(t,e,i){if(t&&e){if(t.classList){t.classList[i?"add":"remove"](e)}else{var s=(" "+t.className+" ").replace(X," ").replace(" "+e+" "," ");t.className=(s+(i?" "+e:"")).replace(X," ")}}}function j(t,e,i){var s=t&&t.style;if(s){if(i===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){i=document.defaultView.getComputedStyle(t,"")}else if(t.currentStyle){i=t.currentStyle}return e===void 0?i:i[e]}else{if(!(e in s)&&e.indexOf("webkit")===-1){e="-webkit-"+e}s[e]=i+(typeof i==="string"?"":"px")}}}function U(t,e){var i="";if(typeof t==="string"){i=t}else{do{var s=j(t,"transform");if(s&&s!=="none"){i=s+" "+i}}while(!e&&(t=t.parentNode))}var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function K(t,e,i){if(t){var s=t.getElementsByTagName(e),r=0,a=s.length;if(i){for(;r<a;r++){i(s[r],r)}}return s}return[]}function q(){var t=document.scrollingElement;if(t){return t}else{return document.documentElement}}function G(t,e,i,s,r){if(!t.getBoundingClientRect&&t!==window)return;var a,n,o,l,c,h,d;if(t!==window&&t.parentNode&&t!==q()){a=t.getBoundingClientRect();n=a.top;o=a.left;l=a.bottom;c=a.right;h=a.height;d=a.width}else{n=0;o=0;l=window.innerHeight;c=window.innerWidth;h=window.innerHeight;d=window.innerWidth}if((e||i)&&t!==window){r=r||t.parentNode;if(!I){do{if(r&&r.getBoundingClientRect&&(j(r,"transform")!=="none"||i&&j(r,"position")!=="static")){var u=r.getBoundingClientRect();n-=u.top+parseInt(j(r,"border-top-width"));o-=u.left+parseInt(j(r,"border-left-width"));l=n+a.height;c=o+a.width;break}}while(r=r.parentNode)}}if(s&&t!==window){var f=U(r||t),p=f&&f.a,m=f&&f.d;if(f){n/=m;o/=p;d/=p;h/=m;l=n+h;c=o+d}}return{top:n,left:o,bottom:l,right:c,width:d,height:h}}function V(t,e,i){var s=et(t,true),r=G(t)[e];while(s){var a=G(s)[i],n=void 0;if(i==="top"||i==="left"){n=r>=a}else{n=r<=a}if(!n)return s;if(s===q())break;s=et(s,false)}return false}function J(t,e,i,s){var r=0,a=0,n=t.children;while(a<n.length){if(n[a].style.display!=="none"&&n[a]!==fe.ghost&&(s||n[a]!==fe.dragged)&&F(n[a],i.draggable,t,false)){if(r===e){return n[a]}r++}a++}return null}function Z(t,e){var i=t.lastElementChild;while(i&&(i===fe.ghost||j(i,"display")==="none"||e&&!B(i,e))){i=i.previousElementSibling}return i||null}function Q(t,e){var i=0;if(!t||!t.parentNode){return-1}while(t=t.previousElementSibling){if(t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==fe.clone&&(!e||B(t,e))){i++}}return i}function $(t){var e=0,i=0,s=q();if(t){do{var r=U(t),a=r.a,n=r.d;e+=t.scrollLeft*a;i+=t.scrollTop*n}while(t!==s&&(t=t.parentNode))}return[e,i]}function tt(t,e){for(var i in t){if(!t.hasOwnProperty(i))continue;for(var s in e){if(e.hasOwnProperty(s)&&e[s]===t[i][s])return Number(i)}}return-1}function et(t,e){if(!t||!t.getBoundingClientRect)return q();var i=t;var s=false;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=j(i);if(i.clientWidth<i.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return q();if(s||e)return i;s=true}}}while(i=i.parentNode);return q()}function it(t,e){if(t&&e){for(var i in e){if(e.hasOwnProperty(i)){t[i]=e[i]}}}return t}function st(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var rt;function at(t,e){return function(){if(!rt){var i=arguments,s=this;if(i.length===1){t.call(s,i[0])}else{t.apply(s,i)}rt=setTimeout((function(){rt=void 0}),e)}}}function nt(){clearTimeout(rt);rt=void 0}function ot(t,e,i){t.scrollLeft+=e;t.scrollTop+=i}function lt(t){var e=window.Polymer;var i=window.jQuery||window.Zepto;if(e&&e.dom){return e.dom(t).cloneNode(true)}else if(i){return i(t).clone(true)[0]}else{return t.cloneNode(true)}}function ct(t,e){j(t,"position","absolute");j(t,"top",e.top);j(t,"left",e.left);j(t,"width",e.width);j(t,"height",e.height)}function ht(t){j(t,"position","");j(t,"top","");j(t,"left","");j(t,"width","");j(t,"height","")}var dt="Sortable"+(new Date).getTime();function ut(){var t=[],e;return{captureAnimationState:function(){t=[];if(!this.options.animation)return;var e=[].slice.call(this.el.children);e.forEach((function(e){if(j(e,"display")==="none"||e===fe.ghost)return;t.push({target:e,rect:G(e)});var i=__assign({},t[t.length-1].rect);if(e.thisAnimationDuration){var s=U(e,true);if(s){i.top-=s.f;i.left-=s.e}}e.fromRect=i}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(tt(t,{target:e}),1)},animateAll:function(i){var s=this;if(!this.options.animation){clearTimeout(e);if(typeof i==="function")i();return}var r=false,a=0;t.forEach((function(t){var e=0,i=t.target,n=i.fromRect,o=G(i),l=i.prevFromRect,c=i.prevToRect,h=t.rect,d=U(i,true);if(d){o.top-=d.f;o.left-=d.e}i.toRect=o;if(i.thisAnimationDuration){if(st(l,o)&&!st(n,o)&&(h.top-o.top)/(h.left-o.left)===(n.top-o.top)/(n.left-o.left)){e=pt(h,l,c,s.options)}}if(!st(o,n)){i.prevFromRect=n;i.prevToRect=o;if(!e){e=s.options.animation}s.animate(i,h,o,e)}if(e){r=true;a=Math.max(a,e);clearTimeout(i.animationResetTimer);i.animationResetTimer=setTimeout((function(){i.animationTime=0;i.prevFromRect=null;i.fromRect=null;i.prevToRect=null;i.thisAnimationDuration=null}),e);i.thisAnimationDuration=e}}));clearTimeout(e);if(!r){if(typeof i==="function")i()}else{e=setTimeout((function(){if(typeof i==="function")i()}),a)}t=[]},animate:function(t,e,i,s){if(s){j(t,"transition","");j(t,"transform","");var r=U(this.el),a=r&&r.a,n=r&&r.d,o=(e.left-i.left)/(a||1),l=(e.top-i.top)/(n||1);t.animatingX=!!o;t.animatingY=!!l;j(t,"transform","translate3d("+o+"px,"+l+"px,0)");this.forRepaintDummy=ft(t);j(t,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:""));j(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){j(t,"transition","");j(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),s)}}}}function ft(t){return t.offsetWidth}function pt(t,e,i,s){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*s.animation}var mt=[];var vt={initializeByDefault:true};var gt={mount:function(t){for(var e in vt){if(vt.hasOwnProperty(e)&&!(e in t)){t[e]=vt[e]}}mt.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));mt.push(t)},pluginEvent:function(t,e,i){var s=this;this.eventCanceled=false;i.cancel=function(){s.eventCanceled=true};var r=t+"Global";mt.forEach((function(s){if(!e[s.pluginName])return;if(e[s.pluginName][r]){e[s.pluginName][r](__assign({sortable:e},i))}if(e.options[s.pluginName]&&e[s.pluginName][t]){e[s.pluginName][t](__assign({sortable:e},i))}}))},initializePlugins:function(t,e,i,s){mt.forEach((function(s){var r=s.pluginName;if(!t.options[r]&&!s.initializeByDefault)return;var a=new s(t,e,t.options);a.sortable=t;a.options=t.options;t[r]=a;D(i,a.defaults)}));for(var r in t.options){if(!t.options.hasOwnProperty(r))continue;var a=this.modifyOption(t,r,t.options[r]);if(typeof a!=="undefined"){t.options[r]=a}}},getEventProperties:function(t,e){var i={};mt.forEach((function(s){if(typeof s.eventProperties!=="function")return;D(i,s.eventProperties.call(e[s.pluginName],t))}));return i},modifyOption:function(t,e,i){var s;mt.forEach((function(r){if(!t[r.pluginName])return;if(r.optionListeners&&typeof r.optionListeners[e]==="function"){s=r.optionListeners[e].call(t[r.pluginName],i)}}));return s}};function bt(t){var e=t.sortable,i=t.rootEl,s=t.name,r=t.targetEl,a=t.cloneEl,n=t.toEl,o=t.fromEl,l=t.oldIndex,c=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,u=t.originalEvent,f=t.putSortable,p=t.extraEventProperties;e=e||i&&i[dt];if(!e)return;var m,v=e.options,g="on"+s.charAt(0).toUpperCase()+s.substr(1);if(window.CustomEvent&&!I&&!T){m=new CustomEvent(s,{bubbles:true,cancelable:true})}else{m=document.createEvent("Event");m.initEvent(s,true,true)}m.to=n||i;m.from=o||i;m.item=r||i;m.clone=a;m.oldIndex=l;m.newIndex=c;m.oldDraggableIndex=h;m.newDraggableIndex=d;m.originalEvent=u;m.pullMode=f?f.lastPutMode:undefined;var b=__assign(__assign({},p),gt.getEventProperties(s,e));for(var z in b){m[z]=b[z]}if(i){i.dispatchEvent(m)}if(v[g]){v[g].call(e,m)}}var zt=function(t,e,i){if(i===void 0){i={}}var s=i.evt,r=__rest(i,["evt"]);gt.pluginEvent.bind(fe)(t,e,__assign({dragEl:yt,parentEl:wt,ghostEl:xt,rootEl:Et,nextEl:Ct,lastDownEl:kt,cloneEl:Dt,cloneHidden:St,dragStarted:jt,putSortable:Nt,activeSortable:fe.active,originalEvent:s,oldIndex:At,oldDraggableIndex:Tt,newIndex:It,newDraggableIndex:Ot,hideGhostForTarget:ce,unhideGhostForTarget:he,cloneNowHidden:function(){St=true},cloneNowShown:function(){St=false},dispatchSortableEvent:function(t){_t({sortable:e,name:t,originalEvent:s})}},r))};function _t(t){bt(__assign({putSortable:Nt,cloneEl:Dt,targetEl:yt,rootEl:Et,oldIndex:At,oldDraggableIndex:Tt,newIndex:It,newDraggableIndex:Ot},t))}var yt,wt,xt,Et,Ct,kt,Dt,St,At,It,Tt,Ot,Mt,Nt,Pt=false,Lt=false,Rt=[],Wt,Bt,Ht,Ft,Xt,Yt,jt,Ut,Kt,qt=false,Gt=false,Vt,Jt,Zt=[],Qt=false,$t=[];var te=typeof document!=="undefined",ee=N,ie=T||I?"cssFloat":"float",se=te&&!P&&!N&&"draggable"in document.createElement("div"),re=function(){if(!te)return;if(I){return false}var t=document.createElement("x");t.style.cssText="pointer-events:auto";return t.style.pointerEvents==="auto"}(),ae=function(t,e){var i=j(t),s=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=J(t,0,e),a=J(t,1,e),n=r&&j(r),o=a&&j(a),l=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+G(r).width,c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+G(a).width;if(i.display==="flex"){return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal"}if(i.display==="grid"){return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(r&&n.float&&n.float!=="none"){var h=n.float==="left"?"left":"right";return a&&(o.clear==="both"||o.clear===h)?"vertical":"horizontal"}return r&&(n.display==="block"||n.display==="flex"||n.display==="table"||n.display==="grid"||l>=s&&i[ie]==="none"||a&&i[ie]==="none"&&l+c>s)?"vertical":"horizontal"},ne=function(t,e,i){var s=i?t.left:t.top,r=i?t.right:t.bottom,a=i?t.width:t.height,n=i?e.left:e.top,o=i?e.right:e.bottom,l=i?e.width:e.height;return s===n||r===o||s+a/2===n+l/2},oe=function(t,e){var i;Rt.some((function(s){var r=s[dt].options.emptyInsertThreshold;if(!r||Z(s))return;var a=G(s),n=t>=a.left-r&&t<=a.right+r,o=e>=a.top-r&&e<=a.bottom+r;if(n&&o){return i=s}}));return i},le=function(t){function e(t,i){return function(s,r,a,n){var o=s.options.group.name&&r.options.group.name&&s.options.group.name===r.options.group.name;if(t==null&&(i||o)){return true}else if(t==null||t===false){return false}else if(i&&t==="clone"){return t}else if(typeof t==="function"){return e(t(s,r,a,n),i)(s,r,a,n)}else{var l=(i?s:r).options.group.name;return t===true||typeof t==="string"&&t===l||t.join&&t.indexOf(l)>-1}}}var i={};var s=t.group;if(!s||typeof s!="object"){s={name:s}}i.name=s.name;i.checkPull=e(s.pull,true);i.checkPut=e(s.put);i.revertClone=s.revertClone;t.group=i},ce=function(){if(!re&&xt){j(xt,"display","none")}},he=function(){if(!re&&xt){j(xt,"display","")}};if(te&&!P){document.addEventListener("click",(function(t){if(Lt){t.preventDefault();t.stopPropagation&&t.stopPropagation();t.stopImmediatePropagation&&t.stopImmediatePropagation();Lt=false;return false}}),true)}var de=function(t){if(yt){t=t.touches?t.touches[0]:t;var e=oe(t.clientX,t.clientY);if(e){var i={};for(var s in t){if(t.hasOwnProperty(s)){i[s]=t[s]}}i.target=i.rootEl=e;i.preventDefault=void 0;i.stopPropagation=void 0;e[dt]._onDragOver(i)}}};var ue=function(t){if(yt){yt.parentNode[dt]._isOutsideThisEl(t.target)}};function fe(t,e){if(!(t&&t.nodeType&&t.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t))}this.el=t;this.options=e=D({},e);t[dt]=this;var i={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function(){return ae(t,this.options)},ghostClone:function(t){return t.cloneNode(true)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:fe.supportPointer!==false&&"PointerEvent"in window&&!M,emptyInsertThreshold:5};gt.initializePlugins(this,t,i);for(var s in i){!(s in e)&&(e[s]=i[s])}le(e);for(var r in this){if(r.charAt(0)==="_"&&typeof this[r]==="function"){this[r]=this[r].bind(this)}}this.nativeDraggable=e.forceFallback?false:se;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(e.supportPointer){R(t,"pointerdown",this._onTapStart)}else{R(t,"mousedown",this._onTapStart);R(t,"touchstart",this._onTapStart)}if(this.nativeDraggable){R(t,"dragover",this);R(t,"dragenter",this)}Rt.push(this.el);e.store&&e.store.get&&this.sort(e.store.get(this)||[]);D(this,ut())}fe.prototype={constructor:fe,_isOutsideThisEl:function(t){if(!this.el.contains(t)&&t!==this.el){Ut=null}},_getDirection:function(t,e){return typeof this.options.direction==="function"?this.options.direction.call(this,t,e,yt):this.options.direction},_onTapStart:function(t){if(!t.cancelable)return;var e=this,i=this.el,s=this.options,r=s.preventOnFilter,a=t.type,n=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,o=(n||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||o,c=s.filter;xe(i);if(yt){return}if(/mousedown|pointerdown/.test(a)&&t.button!==0||s.disabled){return}if(l.isContentEditable){return}if(!this.nativeDraggable&&M&&o&&o.tagName.toUpperCase()==="SELECT"){return}o=F(o,s.draggable,i,false);if(o&&o.animated){return}if(kt===o){return}At=Q(o);Tt=Q(o,s.draggable);if(typeof c==="function"){if(c.call(this,t,o,this)){_t({sortable:e,rootEl:l,name:"filter",targetEl:o,toEl:i,fromEl:i});zt("filter",e,{evt:t});r&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(s){s=F(l,s.trim(),i,false);if(s){_t({sortable:e,rootEl:s,name:"filter",targetEl:o,fromEl:i,toEl:i});zt("filter",e,{evt:t});return true}}));if(c){r&&t.cancelable&&t.preventDefault();return}}if(s.handle&&!F(l,s.handle,i,false)){return}this._prepareDragStart(t,n,o)},_prepareDragStart:function(t,e,i){var s=this,r=s.el,a=s.options,n=r.ownerDocument,o;if(i&&!yt&&i.parentNode===r){var l=G(i);Et=r;yt=i;wt=yt.parentNode;Ct=yt.nextSibling;kt=i;Mt=a.group;fe.dragged=yt;Wt={target:yt,clientX:(e||t).clientX,clientY:(e||t).clientY};Xt=Wt.clientX-l.left;Yt=Wt.clientY-l.top;this._lastX=(e||t).clientX;this._lastY=(e||t).clientY;yt.style["will-change"]="all";o=function(){zt("delayEnded",s,{evt:t});if(fe.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents();if(!O&&s.nativeDraggable){yt.draggable=true}s._triggerDragStart(t,e);_t({sortable:s,name:"choose",originalEvent:t});Y(yt,a.chosenClass,true)};a.ignore.split(",").forEach((function(t){K(yt,t.trim(),ve)}));R(n,"dragover",de);R(n,"mousemove",de);R(n,"touchmove",de);R(n,"mouseup",s._onDrop);R(n,"touchend",s._onDrop);R(n,"touchcancel",s._onDrop);if(O&&this.nativeDraggable){this.options.touchStartThreshold=4;yt.draggable=true}zt("delayStart",this,{evt:t});if(a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(T||I))){if(fe.eventCanceled){this._onDrop();return}R(n,"mouseup",s._disableDelayedDrag);R(n,"touchend",s._disableDelayedDrag);R(n,"touchcancel",s._disableDelayedDrag);R(n,"mousemove",s._delayedDragTouchMoveHandler);R(n,"touchmove",s._delayedDragTouchMoveHandler);a.supportPointer&&R(n,"pointermove",s._delayedDragTouchMoveHandler);s._dragStartTimer=setTimeout(o,a.delay)}else{o()}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;if(Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function(){yt&&ve(yt);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;W(t,"mouseup",this._disableDelayedDrag);W(t,"touchend",this._disableDelayedDrag);W(t,"touchcancel",this._disableDelayedDrag);W(t,"mousemove",this._delayedDragTouchMoveHandler);W(t,"touchmove",this._delayedDragTouchMoveHandler);W(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t;if(!this.nativeDraggable||e){if(this.options.supportPointer){R(document,"pointermove",this._onTouchMove)}else if(e){R(document,"touchmove",this._onTouchMove)}else{R(document,"mousemove",this._onTouchMove)}}else{R(yt,"dragend",this);R(Et,"dragstart",this._onDragStart)}try{if(document.selection){Ee((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(t){}},_dragStarted:function(t,e){Pt=false;if(Et&&yt){zt("dragStarted",this,{evt:e});if(this.nativeDraggable){R(document,"dragover",ue)}var i=this.options;!t&&Y(yt,i.dragClass,false);Y(yt,i.ghostClass,true);fe.active=this;t&&this._appendGhost();_t({sortable:this,name:"start",originalEvent:e})}else{this._nulling()}},_emulateDragOver:function(){if(Bt){this._lastX=Bt.clientX;this._lastY=Bt.clientY;ce();var t=document.elementFromPoint(Bt.clientX,Bt.clientY);var e=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(Bt.clientX,Bt.clientY);if(t===e)break;e=t}yt.parentNode[dt]._isOutsideThisEl(t);if(e){do{if(e[dt]){var i=void 0;i=e[dt]._onDragOver({clientX:Bt.clientX,clientY:Bt.clientY,target:t,rootEl:e});if(i&&!this.options.dragoverBubble){break}}t=e}while(e=e.parentNode)}he()}},_onTouchMove:function(t){if(Wt){var e=this.options,i=e.fallbackTolerance,s=e.fallbackOffset,r=t.touches?t.touches[0]:t,a=xt&&U(xt,true),n=xt&&a&&a.a,o=xt&&a&&a.d,l=ee&&Jt&&$(Jt),c=(r.clientX-Wt.clientX+s.x)/(n||1)+(l?l[0]-Zt[0]:0)/(n||1),h=(r.clientY-Wt.clientY+s.y)/(o||1)+(l?l[1]-Zt[1]:0)/(o||1);if(!fe.active&&!Pt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i){return}this._onDragStart(t,true)}if(xt){if(a){a.e+=c-(Ht||0);a.f+=h-(Ft||0)}else{a={a:1,b:0,c:0,d:1,e:c,f:h}}var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");j(xt,"webkitTransform",d);j(xt,"mozTransform",d);j(xt,"msTransform",d);j(xt,"transform",d);Ht=c;Ft=h;Bt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!xt){var t=this.options.fallbackOnBody?document.body:Et,e=G(yt,true,ee,true,t),i=this.options;if(ee){Jt=t;while(j(Jt,"position")==="static"&&j(Jt,"transform")==="none"&&Jt!==document){Jt=Jt.parentNode}if(Jt!==document.body&&Jt!==document.documentElement){if(Jt===document)Jt=q();e.top+=Jt.scrollTop;e.left+=Jt.scrollLeft}else{Jt=q()}Zt=$(Jt)}xt=i.ghostClone(yt);Y(xt,i.ghostClass,false);Y(xt,i.fallbackClass,true);Y(xt,i.dragClass,true);j(xt,"transition","");j(xt,"transform","");j(xt,"box-sizing","border-box");j(xt,"margin",0);j(xt,"top",e.top);j(xt,"left",e.left);j(xt,"width",e.width);j(xt,"height",e.height);j(xt,"opacity","0.8");j(xt,"position",ee?"absolute":"fixed");j(xt,"zIndex","100000");j(xt,"pointerEvents","none");fe.ghost=xt;t.appendChild(xt);j(xt,"transform-origin",Xt/parseInt(xt.style.width)*100+"% "+Yt/parseInt(xt.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this;var s=t.dataTransfer;var r=i.options;zt("dragStart",this,{evt:t});if(fe.eventCanceled){this._onDrop();return}zt("setupClone",this);if(!fe.eventCanceled){Dt=lt(yt);Dt.removeAttribute("id");Dt.draggable=false;Dt.style["will-change"]="";this._hideClone();Y(Dt,this.options.chosenClass,false);fe.clone=Dt}i.cloneId=Ee((function(){zt("clone",i);if(fe.eventCanceled)return;if(!i.options.removeCloneOnHide){Et.insertBefore(Dt,yt)}i._hideClone();_t({sortable:i,name:"clone"})}));!e&&Y(yt,r.dragClass,true);if(e){Lt=true;i._loopId=setInterval(i._emulateDragOver,50)}else{W(document,"mouseup",i._onDrop);W(document,"touchend",i._onDrop);W(document,"touchcancel",i._onDrop);if(s){s.effectAllowed="move";r.setData&&r.setData.call(i,s,yt)}R(document,"drop",i);j(yt,"transform","translateZ(0)")}Pt=true;i._dragStartId=Ee(i._dragStarted.bind(i,e,t));R(document,"selectstart",i);jt=true;if(M){j(document.body,"user-select","none")}},_onDragOver:function(t){var e=this.el,i=t.target,s,r,a,n=this.options,o=n.group,l=fe.active,c=Mt===o,h=n.sort,d=Nt||l,u,f=this,p=false;if(Qt)return;function m(n,o){zt(n,f,__assign({evt:t,isOwner:c,axis:u?"vertical":"horizontal",revert:a,dragRect:s,targetRect:r,canSort:h,fromSortable:d,target:i,completed:g,onMove:function(i,r){return me(Et,e,yt,s,i,G(i),t,r)},changed:b},o))}function v(){m("dragOverAnimationCapture");f.captureAnimationState();if(f!==d){d.captureAnimationState()}}function g(s){m("dragOverCompleted",{insertion:s});if(s){if(c){l._hideClone()}else{l._showClone(f)}if(f!==d){Y(yt,Nt?Nt.options.ghostClass:l.options.ghostClass,false);Y(yt,n.ghostClass,true)}if(Nt!==f&&f!==fe.active){Nt=f}else if(f===fe.active&&Nt){Nt=null}if(d===f){f._ignoreWhileAnimating=i}f.animateAll((function(){m("dragOverAnimationComplete");f._ignoreWhileAnimating=null}));if(f!==d){d.animateAll();d._ignoreWhileAnimating=null}}if(i===yt&&!yt.animated||i===e&&!i.animated){Ut=null}if(!n.dragoverBubble&&!t.rootEl&&i!==document){yt.parentNode[dt]._isOutsideThisEl(t.target);!s&&de(t)}!n.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return p=true}function b(){It=Q(yt);Ot=Q(yt,n.draggable);_t({sortable:f,name:"change",toEl:e,newIndex:It,newDraggableIndex:Ot,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}i=F(i,n.draggable,e,true);m("dragOver");if(fe.eventCanceled)return p;if(yt.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i){return g(false)}Lt=false;if(l&&!n.disabled&&(c?h||(a=wt!==Et):Nt===this||(this.lastPutMode=Mt.checkPull(this,l,yt,t))&&o.checkPut(this,l,yt,t))){u=this._getDirection(t,i)==="vertical";s=G(yt);m("dragOverValid");if(fe.eventCanceled)return p;if(a){wt=Et;v();this._hideClone();m("revert");if(!fe.eventCanceled){if(Ct){Et.insertBefore(yt,Ct)}else{Et.appendChild(yt)}}return g(true)}var z=Z(e,n.draggable);if(!z||ze(t,u,this)&&!z.animated){if(z===yt){return g(false)}if(z&&e===t.target){i=z}if(i){r=G(i)}if(me(Et,e,yt,s,i,r,t,!!i)!==false){v();if(z&&z.nextSibling){e.insertBefore(yt,z.nextSibling)}else{e.appendChild(yt)}wt=e;b();return g(true)}}else if(z&&be(t,u,this)){var _=J(e,0,n,true);if(_===yt){return g(false)}i=_;r=G(i);if(me(Et,e,yt,s,i,r,t,false)!==false){v();e.insertBefore(yt,_);wt=e;b();return g(true)}}else if(i.parentNode===e){r=G(i);var y=0,w=void 0,x=yt.parentNode!==e,E=!ne(yt.animated&&yt.toRect||s,i.animated&&i.toRect||r,u),C=u?"top":"left",k=V(i,"top","top")||V(yt,"top","top"),D=k?k.scrollTop:void 0;if(Ut!==i){w=r[C];qt=false;Gt=!E&&n.invertSwap||x}y=_e(t,i,r,u,E?1:n.swapThreshold,n.invertedSwapThreshold==null?n.swapThreshold:n.invertedSwapThreshold,Gt,Ut===i);var S=void 0;if(y!==0){var A=Q(yt);do{A-=y;S=wt.children[A]}while(S&&(j(S,"display")==="none"||S===xt))}if(y===0||S===i){return g(false)}Ut=i;Kt=y;var I=i.nextElementSibling,T=false;T=y===1;var O=me(Et,e,yt,s,i,r,t,T);if(O!==false){if(O===1||O===-1){T=O===1}Qt=true;setTimeout(ge,30);v();if(T&&!I){e.appendChild(yt)}else{i.parentNode.insertBefore(yt,T?I:i)}if(k){ot(k,0,D-k.scrollTop)}wt=yt.parentNode;if(w!==undefined&&!Gt){Vt=Math.abs(w-G(i)[C])}b();return g(true)}}if(e.contains(yt)){return g(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function(){W(document,"mousemove",this._onTouchMove);W(document,"touchmove",this._onTouchMove);W(document,"pointermove",this._onTouchMove);W(document,"dragover",de);W(document,"mousemove",de);W(document,"touchmove",de)},_offUpEvents:function(){var t=this.el.ownerDocument;W(t,"mouseup",this._onDrop);W(t,"touchend",this._onDrop);W(t,"pointerup",this._onDrop);W(t,"touchcancel",this._onDrop);W(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;It=Q(yt);Ot=Q(yt,i.draggable);zt("drop",this,{evt:t});wt=yt&&yt.parentNode;It=Q(yt);Ot=Q(yt,i.draggable);if(fe.eventCanceled){this._nulling();return}Pt=false;Gt=false;qt=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);Ce(this.cloneId);Ce(this._dragStartId);if(this.nativeDraggable){W(document,"drop",this);W(e,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(M){j(document.body,"user-select","")}j(yt,"transform","");if(t){if(jt){t.cancelable&&t.preventDefault();!i.dropBubble&&t.stopPropagation()}xt&&xt.parentNode&&xt.parentNode.removeChild(xt);if(Et===wt||Nt&&Nt.lastPutMode!=="clone"){Dt&&Dt.parentNode&&Dt.parentNode.removeChild(Dt)}if(yt){if(this.nativeDraggable){W(yt,"dragend",this)}ve(yt);yt.style["will-change"]="";if(jt&&!Pt){Y(yt,Nt?Nt.options.ghostClass:this.options.ghostClass,false)}Y(yt,this.options.chosenClass,false);_t({sortable:this,name:"unchoose",toEl:wt,newIndex:null,newDraggableIndex:null,originalEvent:t});if(Et!==wt){if(It>=0){_t({rootEl:wt,name:"add",toEl:wt,fromEl:Et,originalEvent:t});_t({sortable:this,name:"remove",toEl:wt,originalEvent:t});_t({rootEl:wt,name:"sort",toEl:wt,fromEl:Et,originalEvent:t});_t({sortable:this,name:"sort",toEl:wt,originalEvent:t})}Nt&&Nt.save()}else{if(It!==At){if(It>=0){_t({sortable:this,name:"update",toEl:wt,originalEvent:t});_t({sortable:this,name:"sort",toEl:wt,originalEvent:t})}}}if(fe.active){if(It==null||It===-1){It=At;Ot=Tt}_t({sortable:this,name:"end",toEl:wt,originalEvent:t});this.save()}}}this._nulling()},_nulling:function(){zt("nulling",this);Et=yt=wt=xt=Ct=Dt=kt=St=Wt=Bt=jt=It=Ot=At=Tt=Ut=Kt=Nt=Mt=fe.dragged=fe.ghost=fe.clone=fe.active=null;$t.forEach((function(t){t.checked=true}));$t.length=Ht=Ft=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(yt){this._onDragOver(t);pe(t)}break;case"selectstart":t.preventDefault();break}},toArray:function(){var t=[],e,i=this.el.children,s=0,r=i.length,a=this.options;for(;s<r;s++){e=i[s];if(F(e,a.draggable,this.el,false)){t.push(e.getAttribute(a.dataIdAttr)||we(e))}}return t},sort:function(t,e){var i={},s=this.el;this.toArray().forEach((function(t,e){var r=s.children[e];if(F(r,this.options.draggable,s,false)){i[t]=r}}),this);e&&this.captureAnimationState();t.forEach((function(t){if(i[t]){s.removeChild(i[t]);s.appendChild(i[t])}}));e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return F(t,e||this.options.draggable,this.el,false)},option:function(t,e){var i=this.options;if(e===void 0){return i[t]}else{var s=gt.modifyOption(this,t,e);if(typeof s!=="undefined"){i[t]=s}else{i[t]=e}if(t==="group"){le(i)}}},destroy:function(){zt("destroy",this);var t=this.el;t[dt]=null;W(t,"mousedown",this._onTapStart);W(t,"touchstart",this._onTapStart);W(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){W(t,"dragover",this);W(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();Rt.splice(Rt.indexOf(this.el),1);this.el=t=null},_hideClone:function(){if(!St){zt("hideClone",this);if(fe.eventCanceled)return;j(Dt,"display","none");if(this.options.removeCloneOnHide&&Dt.parentNode){Dt.parentNode.removeChild(Dt)}St=true}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(St){zt("showClone",this);if(fe.eventCanceled)return;if(yt.parentNode==Et&&!this.options.group.revertClone){Et.insertBefore(Dt,yt)}else if(Ct){Et.insertBefore(Dt,Ct)}else{Et.appendChild(Dt)}if(this.options.group.revertClone){this.animate(yt,Dt)}j(Dt,"display","");St=false}}};function pe(t){if(t.dataTransfer){t.dataTransfer.dropEffect="move"}t.cancelable&&t.preventDefault()}function me(t,e,i,s,r,a,n,o){var l,c=t[dt],h=c.options.onMove,d;if(window.CustomEvent&&!I&&!T){l=new CustomEvent("move",{bubbles:true,cancelable:true})}else{l=document.createEvent("Event");l.initEvent("move",true,true)}l.to=e;l.from=t;l.dragged=i;l.draggedRect=s;l.related=r||e;l.relatedRect=a||G(e);l.willInsertAfter=o;l.originalEvent=n;t.dispatchEvent(l);if(h){d=h.call(c,l,n)}return d}function ve(t){t.draggable=false}function ge(){Qt=false}function be(t,e,i){var s=G(J(i.el,0,i.options,true));var r=10;return e?t.clientX<s.left-r||t.clientY<s.top&&t.clientX<s.right:t.clientY<s.top-r||t.clientY<s.bottom&&t.clientX<s.left}function ze(t,e,i){var s=G(Z(i.el,i.options.draggable));var r=10;return e?t.clientX>s.right+r||t.clientX<=s.right&&t.clientY>s.bottom&&t.clientX>=s.left:t.clientX>s.right&&t.clientY>s.top||t.clientX<=s.right&&t.clientY>s.bottom+r}function _e(t,e,i,s,r,a,n,o){var l=s?t.clientY:t.clientX,c=s?i.height:i.width,h=s?i.top:i.left,d=s?i.bottom:i.right,u=false;if(!n){if(o&&Vt<c*r){if(!qt&&(Kt===1?l>h+c*a/2:l<d-c*a/2)){qt=true}if(!qt){if(Kt===1?l<h+Vt:l>d-Vt){return-Kt}}else{u=true}}else{if(l>h+c*(1-r)/2&&l<d-c*(1-r)/2){return ye(e)}}}u=u||n;if(u){if(l<h+c*a/2||l>d-c*a/2){return l>h+c/2?1:-1}}return 0}function ye(t){if(Q(yt)<Q(t)){return 1}else{return-1}}function we(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,s=0;while(i--){s+=e.charCodeAt(i)}return s.toString(36)}function xe(t){$t.length=0;var e=t.getElementsByTagName("input");var i=e.length;while(i--){var s=e[i];s.checked&&$t.push(s)}}function Ee(t){return setTimeout(t,0)}function Ce(t){return clearTimeout(t)}if(te){R(document,"touchmove",(function(t){if((fe.active||Pt)&&t.cancelable){t.preventDefault()}}))}fe.utils={on:R,off:W,css:j,find:K,is:function(t,e){return!!F(t,e,t,false)},extend:it,throttle:at,closest:F,toggleClass:Y,clone:lt,index:Q,nextTick:Ee,cancelNextTick:Ce,detectDirection:ae,getChild:J};fe.get=function(t){return t[dt]};fe.mount=function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}if(t[0].constructor===Array)t=t[0];t.forEach((function(t){if(!t.prototype||!t.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t))}if(t.utils)fe.utils=__assign(__assign({},fe.utils),t.utils);gt.mount(t)}))};fe.create=function(t,e){return new fe(t,e)};fe.version=S;var ke=[],De,Se,Ae=false,Ie,Te,Oe,Me;function Ne(){function t(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var t in this){if(t.charAt(0)==="_"&&typeof this[t]==="function"){this[t]=this[t].bind(this)}}}t.prototype={dragStarted:function(t){var e=t.originalEvent;if(this.sortable.nativeDraggable){R(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){R(document,"pointermove",this._handleFallbackAutoScroll)}else if(e.touches){R(document,"touchmove",this._handleFallbackAutoScroll)}else{R(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function(t){var e=t.originalEvent;if(!this.options.dragOverBubble&&!e.rootEl){this._handleAutoScroll(e)}},drop:function(){if(this.sortable.nativeDraggable){W(document,"dragover",this._handleAutoScroll)}else{W(document,"pointermove",this._handleFallbackAutoScroll);W(document,"touchmove",this._handleFallbackAutoScroll);W(document,"mousemove",this._handleFallbackAutoScroll)}Le();Pe();nt()},nulling:function(){Oe=Se=De=Ae=Me=Ie=Te=null;ke.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function(t,e){var i=this;var s=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(s,r);Oe=t;if(e||this.options.forceAutoScrollFallback||T||I||M){Re(t,this.options,a,e);var n=et(a,true);if(Ae&&(!Me||s!==Ie||r!==Te)){Me&&Le();Me=setInterval((function(){var a=et(document.elementFromPoint(s,r),true);if(a!==n){n=a;Pe()}Re(t,i.options,a,e)}),10);Ie=s;Te=r}}else{if(!this.options.bubbleScroll||et(a,true)===q()){Pe();return}Re(t,this.options,et(a,false),false)}}};return D(t,{pluginName:"scroll",initializeByDefault:true})}function Pe(){ke.forEach((function(t){clearInterval(t.pid)}));ke=[]}function Le(){clearInterval(Me)}var Re=at((function(t,e,i,s){if(!e.scroll)return;var r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,n=e.scrollSensitivity,o=e.scrollSpeed,l=q();var c=false,h;if(Se!==i){Se=i;Pe();De=e.scroll;h=e.scrollFn;if(De===true){De=et(i,true)}}var d=0;var u=De;do{var f=u,p=G(f),m=p.top,v=p.bottom,g=p.left,b=p.right,z=p.width,_=p.height,y=void 0,w=void 0,x=f.scrollWidth,E=f.scrollHeight,C=j(f),k=f.scrollLeft,D=f.scrollTop;if(f===l){y=z<x&&(C.overflowX==="auto"||C.overflowX==="scroll"||C.overflowX==="visible");w=_<E&&(C.overflowY==="auto"||C.overflowY==="scroll"||C.overflowY==="visible")}else{y=z<x&&(C.overflowX==="auto"||C.overflowX==="scroll");w=_<E&&(C.overflowY==="auto"||C.overflowY==="scroll")}var S=y&&(Math.abs(b-r)<=n&&k+z<x)-(Math.abs(g-r)<=n&&!!k);var A=w&&(Math.abs(v-a)<=n&&D+_<E)-(Math.abs(m-a)<=n&&!!D);if(!ke[d]){for(var I=0;I<=d;I++){if(!ke[I]){ke[I]={}}}}if(ke[d].vx!=S||ke[d].vy!=A||ke[d].el!==f){ke[d].el=f;ke[d].vx=S;ke[d].vy=A;clearInterval(ke[d].pid);if(S!=0||A!=0){c=true;ke[d].pid=setInterval(function(){if(s&&this.layer===0){fe.active._onTouchMove(Oe)}var e=ke[this.layer].vy?ke[this.layer].vy*o:0;var i=ke[this.layer].vx?ke[this.layer].vx*o:0;if(typeof h==="function"){if(h.call(fe.dragged.parentNode[dt],i,e,t,Oe,ke[this.layer].el)!=="continue"){return}}ot(ke[this.layer].el,i,e)}.bind({layer:d}),24)}}d++}while(e.bubbleScroll&&u!==l&&(u=et(u,false)));Ae=c}),30);var We=function(t){var e=t.originalEvent,i=t.putSortable,s=t.dragEl,r=t.activeSortable,a=t.dispatchSortableEvent,n=t.hideGhostForTarget,o=t.unhideGhostForTarget;if(!e)return;var l=i||r;n();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;var h=document.elementFromPoint(c.clientX,c.clientY);o();if(l&&!l.el.contains(h)){a("spill");this.onSpill({dragEl:s,putSortable:i})}};function Be(){}Be.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState();if(i){i.captureAnimationState()}var s=J(this.sortable.el,this.startIndex,this.options);if(s){this.sortable.el.insertBefore(e,s)}else{this.sortable.el.appendChild(e)}this.sortable.animateAll();if(i){i.animateAll()}},drop:We};D(Be,{pluginName:"revertOnSpill"});function He(){}He.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable;var s=i||this.sortable;s.captureAnimationState();e.parentNode&&e.parentNode.removeChild(e);s.animateAll()},drop:We};D(He,{pluginName:"removeOnSpill"});var Fe;function Xe(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}t.prototype={dragStart:function(t){var e=t.dragEl;Fe=e},dragOverValid:function(t){var e=t.completed,i=t.target,s=t.onMove,r=t.activeSortable,a=t.changed,n=t.cancel;if(!r.options.swap)return;var o=this.sortable.el,l=this.options;if(i&&i!==o){var c=Fe;if(s(i)!==false){Y(i,l.swapClass,true);Fe=i}else{Fe=null}if(c&&c!==Fe){Y(c,l.swapClass,false)}}a();e(true);n()},drop:function(t){var e=t.activeSortable,i=t.putSortable,s=t.dragEl;var r=i||this.sortable;var a=this.options;Fe&&Y(Fe,a.swapClass,false);if(Fe&&(a.swap||i&&i.options.swap)){if(s!==Fe){r.captureAnimationState();if(r!==e)e.captureAnimationState();Ye(s,Fe);r.animateAll();if(r!==e)e.animateAll()}}},nulling:function(){Fe=null}};return D(t,{pluginName:"swap",eventProperties:function(){return{swapItem:Fe}}})}function Ye(t,e){var i=t.parentNode,s=e.parentNode,r,a;if(!i||!s||i.isEqualNode(e)||s.isEqualNode(t))return;r=Q(t);a=Q(e);if(i.isEqualNode(s)&&r<a){a++}i.insertBefore(e,i.children[r]);s.insertBefore(t,s.children[a])}var je=[],Ue=[],Ke,qe,Ge=false,Ve=false,Je=false,Ze,Qe,$e;function ti(){function t(t){for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}if(!t.options.avoidImplicitDeselect){if(t.options.supportPointer){R(document,"pointerup",this._deselectMultiDrag)}else{R(document,"mouseup",this._deselectMultiDrag);R(document,"touchend",this._deselectMultiDrag)}}R(document,"keydown",this._checkKeyDown);R(document,"keyup",this._checkKeyUp);this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:false,setData:function(e,i){var s="";if(je.length&&qe===t){je.forEach((function(t,e){s+=(!e?"":", ")+t.textContent}))}else{s=i.textContent}e.setData("Text",s)}}}t.prototype={multiDragKeyDown:false,isMultiDrag:false,delayStartGlobal:function(t){var e=t.dragEl;Ze=e},delayEnded:function(){this.isMultiDrag=~je.indexOf(Ze)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(!this.isMultiDrag)return;for(var s=0;s<je.length;s++){Ue.push(lt(je[s]));Ue[s].sortableIndex=je[s].sortableIndex;Ue[s].draggable=false;Ue[s].style["will-change"]="";Y(Ue[s],this.options.selectedClass,false);je[s]===Ze&&Y(Ue[s],this.options.chosenClass,false)}e._hideClone();i()},clone:function(t){var e=t.sortable,i=t.rootEl,s=t.dispatchSortableEvent,r=t.cancel;if(!this.isMultiDrag)return;if(!this.options.removeCloneOnHide){if(je.length&&qe===e){ii(true,i);s("clone");r()}}},showClone:function(t){var e=t.cloneNowShown,i=t.rootEl,s=t.cancel;if(!this.isMultiDrag)return;ii(false,i);Ue.forEach((function(t){j(t,"display","")}));e();$e=false;s()},hideClone:function(t){var e=this;var i=t.sortable,s=t.cloneNowHidden,r=t.cancel;if(!this.isMultiDrag)return;Ue.forEach((function(t){j(t,"display","none");if(e.options.removeCloneOnHide&&t.parentNode){t.parentNode.removeChild(t)}}));s();$e=true;r()},dragStartGlobal:function(t){var e=t.sortable;if(!this.isMultiDrag&&qe){qe.multiDrag._deselectMultiDrag()}je.forEach((function(t){t.sortableIndex=Q(t)}));je=je.sort((function(t,e){return t.sortableIndex-e.sortableIndex}));Je=true},dragStarted:function(t){var e=this;var i=t.sortable;if(!this.isMultiDrag)return;if(this.options.sort){i.captureAnimationState();if(this.options.animation){je.forEach((function(t){if(t===Ze)return;j(t,"position","absolute")}));var s=G(Ze,false,true,true);je.forEach((function(t){if(t===Ze)return;ct(t,s)}));Ve=true;Ge=true}}i.animateAll((function(){Ve=false;Ge=false;if(e.options.animation){je.forEach((function(t){ht(t)}))}if(e.options.sort){si()}}))},dragOver:function(t){var e=t.target,i=t.completed,s=t.cancel;if(Ve&&~je.indexOf(e)){i(false);s()}},revert:function(t){var e=t.fromSortable,i=t.rootEl,s=t.sortable,r=t.dragRect;if(je.length>1){je.forEach((function(t){s.addAnimationState({target:t,rect:Ve?G(t):r});ht(t);t.fromRect=r;e.removeAnimationState(t)}));Ve=false;ei(!this.options.removeCloneOnHide,i)}},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,s=t.insertion,r=t.activeSortable,a=t.parentEl,n=t.putSortable;var o=this.options;if(s){if(i){r._hideClone()}Ge=false;if(o.animation&&je.length>1&&(Ve||!i&&!r.options.sort&&!n)){var l=G(Ze,false,true,true);je.forEach((function(t){if(t===Ze)return;ct(t,l);a.appendChild(t)}));Ve=true}if(!i){if(!Ve){si()}if(je.length>1){var c=$e;r._showClone(e);if(r.options.animation&&!$e&&c){Ue.forEach((function(t){r.addAnimationState({target:t,rect:Qe});t.fromRect=Qe;t.thisAnimationDuration=null}))}}else{r._showClone(e)}}}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,s=t.activeSortable;je.forEach((function(t){t.thisAnimationDuration=null}));if(s.options.animation&&!i&&s.multiDrag.isMultiDrag){Qe=D({},e);var r=U(Ze,true);Qe.top-=r.f;Qe.left-=r.e}},dragOverAnimationComplete:function(){if(Ve){Ve=false;si()}},drop:function(t){var e=t.originalEvent,i=t.rootEl,s=t.parentEl,r=t.sortable,a=t.dispatchSortableEvent,n=t.oldIndex,o=t.putSortable;var l=o||this.sortable;if(!e)return;var c=this.options,h=s.children;if(!Je){if(c.multiDragKey&&!this.multiDragKeyDown){this._deselectMultiDrag()}Y(Ze,c.selectedClass,!~je.indexOf(Ze));if(!~je.indexOf(Ze)){je.push(Ze);bt({sortable:r,rootEl:i,name:"select",targetEl:Ze,originalEvent:e});if(e.shiftKey&&Ke&&r.el.contains(Ke)){var d=Q(Ke),u=Q(Ze);if(~d&&~u&&d!==u){var f,p;if(u>d){p=d;f=u}else{p=u;f=d+1}for(;p<f;p++){if(~je.indexOf(h[p]))continue;Y(h[p],c.selectedClass,true);je.push(h[p]);bt({sortable:r,rootEl:i,name:"select",targetEl:h[p],originalEvent:e})}}}else{Ke=Ze}qe=l}else{je.splice(je.indexOf(Ze),1);Ke=null;bt({sortable:r,rootEl:i,name:"deselect",targetEl:Ze,originalEvent:e})}}if(Je&&this.isMultiDrag){Ve=false;if((s[dt].options.sort||s!==i)&&je.length>1){var m=G(Ze),v=Q(Ze,":not(."+this.options.selectedClass+")");if(!Ge&&c.animation)Ze.thisAnimationDuration=null;l.captureAnimationState();if(!Ge){if(c.animation){Ze.fromRect=m;je.forEach((function(t){t.thisAnimationDuration=null;if(t!==Ze){var e=Ve?G(t):m;t.fromRect=e;l.addAnimationState({target:t,rect:e})}}))}si();je.forEach((function(t){if(h[v]){s.insertBefore(t,h[v])}else{s.appendChild(t)}v++}));if(n===Q(Ze)){var g=false;je.forEach((function(t){if(t.sortableIndex!==Q(t)){g=true;return}}));if(g){a("update")}}}je.forEach((function(t){ht(t)}));l.animateAll()}qe=l}if(i===s||o&&o.lastPutMode!=="clone"){Ue.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Je=false;Ue.length=0},destroyGlobal:function(){this._deselectMultiDrag();W(document,"pointerup",this._deselectMultiDrag);W(document,"mouseup",this._deselectMultiDrag);W(document,"touchend",this._deselectMultiDrag);W(document,"keydown",this._checkKeyDown);W(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(typeof Je!=="undefined"&&Je)return;if(qe!==this.sortable)return;if(t&&F(t.target,this.options.draggable,this.sortable.el,false))return;if(t&&t.button!==0)return;while(je.length){var e=je[0];Y(e,this.options.selectedClass,false);je.shift();bt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=true}},_checkKeyUp:function(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=false}}};return D(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[dt];if(!e||!e.options.multiDrag||~je.indexOf(t))return;if(qe&&qe!==e){qe.multiDrag._deselectMultiDrag();qe=e}Y(t,e.options.selectedClass,true);je.push(t)},deselect:function(t){var e=t.parentNode[dt],i=je.indexOf(t);if(!e||!e.options.multiDrag||!~i)return;Y(t,e.options.selectedClass,false);je.splice(i,1)}},eventProperties:function(){var t=this;var e=[],i=[];je.forEach((function(s){e.push({multiDragElement:s,index:s.sortableIndex});var r;if(Ve&&s!==Ze){r=-1}else if(Ve){r=Q(s,":not(."+t.options.selectedClass+")")}else{r=Q(s)}i.push({multiDragElement:s,index:r})}));return{items:__spreadArray([],je,true),clones:__spreadArray([],Ue,true),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){t=t.toLowerCase();if(t==="ctrl"){t="Control"}else if(t.length>1){t=t.charAt(0).toUpperCase()+t.substr(1)}return t}}})}function ei(t,e){je.forEach((function(i,s){var r=e.children[i.sortableIndex+(t?Number(s):0)];if(r){e.insertBefore(i,r)}else{e.appendChild(i)}}))}function ii(t,e){Ue.forEach((function(i,s){var r=e.children[i.sortableIndex+(t?Number(s):0)];if(r){e.insertBefore(i,r)}else{e.appendChild(i)}}))}function si(){je.forEach((function(t){if(t===Ze)return;t.parentNode&&t.parentNode.removeChild(t)}))}fe.mount(new Ne);fe.mount(He,Be);fe.mount(new Xe);fe.mount(new ti);var ri='.sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:var(--stzh-font-style-regular);color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-sortable-h .has-focus.sc-stzh-sortable{outline:var(--stzh-flyingfocus-color) solid 0.125rem;outline-offset:0.3125rem}.sc-stzh-sortable-h .stzh-fylingfocus-focused.sc-stzh-sortable{outline-style:none !important}.sc-stzh-sortable-h .stzh-fylingfocus-focused.sc-stzh-sortable::-moz-focus-inner{border:0 !important}.sc-stzh-sortable-h{--cursor:grab;--grabbing-cursor:grabbing;--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0px 0px 0.5rem rgba(0, 0, 0, 0.32)}[disabled].sc-stzh-sortable-h{--cursor:inherit}.sc-stzh-sortable-h[disabled] .sc-stzh-sortable-s *.is-sortable-item{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:var(--cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:var(--grabbing-cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}';var ai="is-sortable-item";var ni="is-ghost";var oi="is-selected";var li="is-chosen";var ci="is-drag";var hi="has-item-selected";var di=0;var ui=t("stzh_sortable",function(){function t(t){var s=this;e(this,t);this.stzhUpdate=i(this,"stzhUpdate",7);this.stzhDisable=i(this,"stzhDisable",7);this.selectedItem=null;this.resetItemOnBlur=false;this.init=function(){if(!s.getContainer()||s.disabled){return}s.setAttributes()};this.updated=function(t){return __awaiter(s,void 0,void 0,(function(){var e,i,s,r,a;var n;return __generator(this,(function(o){switch(o.label){case 0:if(t){e=t.newIndex;i=t.oldIndex;s=t.item}else{e=this.getIndexOfSelectedItem();i=this.lastIndex;s=this.selectedItem}if(!(e!==i))return[3,2];a=(r=this.stzhUpdate).emit;n={component:"stzh-sortable"};return[4,this.toArray()];case 1:a.apply(r,[(n.data=o.sent(),n.item=s,n.newIndex=e,n.oldIndex=i,n)]);o.label=2;case 2:return[2]}}))}))};this.onKeydown=function(t){var e=t.currentTarget;var i=t.target;if(!s.getContainer()||s.disabled||e!==i){return}if(t.key===" "){t.preventDefault();if(!s.selectedItem){s.selectedItem=e;s.selectedItem.parentElement.classList.add(hi);s.selectedItem.classList.add(oi);s.lastIndex=s.getIndexOfSelectedItem();s.resetItemOnBlur=true;s.updateAriaLive(s.localization.started)}else{s.resetItemOnBlur=false;s.updateAriaLive(s.localization.dropped);s.updated();s.resetActiveItem()}}else if(t.key==="Tab"&&s.selectedItem&&s.selectedItem===t.currentTarget){t.preventDefault()}else if(t.key==="Escape"&&s.selectedItem){s.resetItemOnBlur=false;s.updateAriaLive(s.localization.canceled);s.resetActiveItem(true)}else if(t.key==="ArrowUp"){t.preventDefault();if(s.selectedItem){s.moveItem(s.selectedItem,"up")}else{s.focusItem(e.previousElementSibling)}}else if(t.key==="ArrowDown"){t.preventDefault();if(s.selectedItem){s.moveItem(s.selectedItem,"down")}else{s.focusItem(e.nextElementSibling)}}};this.onBlur=function(){if(s.resetItemOnBlur){s.resetItemOnBlur=false;s.updateAriaLive(s.localization.dropped);s.updated();s.resetActiveItem()}};this.localization=undefined;this.disabled=false;this.dataIdAttribute="data-id";this.container=function(){var t;return(t=s.containerElement)===null||t===void 0?void 0:t.firstElementChild};this.ghostClone=function(t){return t.cloneNode(true)};this.filterElements=["[data-stzh-sortable-filtered]","[sortable-disabled]","button","a[href]","input","select","textarea","label","iframe","details","area","stzh-sortable"]}t.prototype.toArray=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.sortable.toArray()]}))}))};t.prototype.sort=function(t,e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.sortable.sort(t,e)]}))}))};t.prototype.moveItem=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,s,r,a;var n;return __generator(this,(function(o){switch(o.label){case 0:if(!t||!t.nextElementSibling&&e==="down"||!t.previousElementSibling&&e==="up"){return[2]}this.resetItemOnBlur=false;if(e==="up"){t.previousElementSibling.before(t)}else if(e==="down"){t.nextElementSibling.after(t)}this.updateAriaLive(this.localization.moved,t);this.focusItem(t);s=Array.from((i=t.parentElement)===null||i===void 0?void 0:i.children).indexOf(t);a=(r=this.stzhUpdate).emit;n={component:"stzh-sortable"};return[4,this.toArray()];case 1:a.apply(r,[(n.data=o.sent(),n.item=t,n.newIndex=s,n.oldIndex=s+(e==="up"?1:-1),n)]);this.resetItemOnBlur=true;return[2]}}))}))};t.prototype.disabledWatcher=function(t){if(t){this.setAttributes()}else{this.unsetAttributes()}this.stzhDisable.emit({component:"stzh-sortable",disabled:t})};t.prototype.filterElementsWatcher=function(t){if(typeof t==="string"){this._filterElements=JSON.parse(t)}else{this._filterElements=t}};t.prototype.getContainer=function(){return typeof this.container==="function"?this.container():this.container};t.prototype.updateAriaLive=function(t,e){if(e===void 0){e=this.selectedItem}if(!this.getContainer()){return}if(e){var i=e.getAttribute("aria-label")||"";var s=this.getIndexOfSelectedItem(e);t=t.replace("{title}",i).replace("{current}",(s+1).toString())}var r=this.getContainer().children.length;t=t.replace(/\{total\}/gi,r.toString());this.ariaLiveElement.textContent=t};t.prototype.getIndexOfSelectedItem=function(t){if(t===void 0){t=this.selectedItem}if(t){return Array.from(t.parentElement.children).indexOf(t)}};t.prototype.resetActiveItem=function(t){if(t===void 0){t=false}if(!this.selectedItem){return}var e=this.getIndexOfSelectedItem();var i=this.selectedItem.parentElement;if(t&&this.lastIndex!==e){if(this.lastIndex>e){i.children[this.lastIndex].after(this.selectedItem)}else{i.children[this.lastIndex].before(this.selectedItem)}this.selectedItem.focus()}i.classList.remove(hi);this.selectedItem.classList.remove(oi);this.selectedItem=null;this.lastIndex=null};t.prototype.focusItem=function(t){if(!t){return}t.focus();var e=document.querySelector("stzh-flyingfocus");if(e){e.reposition()}k(t,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})};t.prototype.setAttributes=function(){var t=this;Array.from(this.getContainer().children).forEach((function(e){e.classList.add(ai);e.addEventListener("blur",t.onBlur);e.addEventListener("keydown",t.onKeydown);e.setAttribute("tabindex","0");e.setAttribute("aria-describedby","".concat(t.sortableId,"-description"))}))};t.prototype.unsetAttributes=function(){var t=this;Array.from(this.getContainer().children).forEach((function(e){e.classList.remove(ai);e.removeEventListener("blur",t.onBlur);e.removeEventListener("keydown",t.onKeydown);e.removeAttribute("tabindex");e.removeAttribute("aria-describedby")}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.sortableId="stzh-sortable-".concat(di++);this.filterElementsWatcher(this.filterElements);if(!!this.localization)return[3,2];t=this;return[4,window.stzhComponents.utils.fetchTranslations(this.element,"sortable")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentWillUpdate=function(){if(this.sortable){this.sortable.destroy();this.sortable=null}};t.prototype.componentDidRender=function(){if(this.sortable){return}this.sortable=new fe(this.getContainer(),{animation:150,filter:this._filterElements.join(", "),ghostClass:ni,chosenClass:li,dragClass:ci,dataIdAttr:this.dataIdAttribute,preventOnFilter:false,forceFallback:true,delay:200,delayOnTouchOnly:true,disabled:this.disabled,ghostClone:this.ghostClone,onUpdate:this.updated})};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}this.unsetAttributes();if(this.sortable){this.sortable.destroy();this.sortable=null}};t.prototype.render=function(){var t=this;var e={"stzh-sortable":true,"stzh-sortable--disabled":this.disabled};return s(r,null,s("div",{class:e},s("div",{id:"".concat(this.sortableId,"-description"),class:"stzh-sortable__description"},this.localization.description),s("div",{ref:function(e){return t.ariaLiveElement=e},"aria-live":"assertive",class:"stzh-sortable__aria-live"}),s("div",{ref:function(e){return t.containerElement=e},class:"stzh-sortable__container"},s("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledWatcher"],filterElements:["filterElementsWatcher"]}},enumerable:false,configurable:true});return t}());ui.style=ri}}}));
|
|
8
|
-
//# sourceMappingURL=p-6a2947fe.system.entry.js.map
|