diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-06 12:09:42 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-06 15:04:24 +0100 |
commit | 63f4c79e691a05003fc7345afbcfcb9cf8fd437f (patch) | |
tree | 15eddb7d73cd81a57e691c20063811471eac5975 /dist/theming-admin-theming.js | |
parent | 8e53a882a5af1d828f736666f6357de4d7bf2c98 (diff) | |
download | nextcloud-server-63f4c79e691a05003fc7345afbcfcb9cf8fd437f.tar.gz nextcloud-server-63f4c79e691a05003fc7345afbcfcb9cf8fd437f.zip |
chore: Compile assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'dist/theming-admin-theming.js')
-rw-r--r-- | dist/theming-admin-theming.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/theming-admin-theming.js b/dist/theming-admin-theming.js index 5573d25dcde..41e9c7988eb 100644 --- a/dist/theming-admin-theming.js +++ b/dist/theming-admin-theming.js @@ -1,3 +1,3 @@ /*! For license information please see theming-admin-theming.js.LICENSE.txt */ -(()=>{"use strict";var e,n,a,o={56085:(e,n,a)=>{var o=a(92457),i=a(85471),r=a(38613),l=a(12256),s=a(88837),c=a(32073),d=a(26287),u=a(99498);const p=["color","logo","background","logoheader","favicon","disable-user-theming"],h={emits:["update:theming"],data:()=>({showSuccess:!1,errorMessage:""}),computed:{id(){return"admin-theming-".concat(this.name)}},methods:{reset(){this.showSuccess=!1,this.errorMessage=""},handleSuccess(){this.showSuccess=!0,setTimeout((()=>{this.showSuccess=!1}),2e3),p.includes(this.name)&&this.$emit("update:theming")}}},m={mixins:[h],watch:{value(e){this.localValue=e}},data(){return{localValue:this.value}},methods:{async save(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/updateStylesheet"),t=!0===this.localValue?"yes":!1===this.localValue?"no":this.localValue;try{await d.A.post(e,{setting:this.name,value:t}),this.$emit("update:value",this.localValue),this.handleSuccess()}catch(e){var n;this.errorMessage=null===(n=e.response.data.data)||void 0===n?void 0:n.message}},async undo(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/undoChanges");try{await d.A.post(e,{setting:this.name}),this.$emit("update:value",this.defaultValue),this.handleSuccess()}catch(e){var t;this.errorMessage=null===(t=e.response.data.data)||void 0===t?void 0:t.message}}}},g={name:"CheckboxField",components:{NcCheckboxRadioSwitch:c.A,NcNoteCard:l.A},mixins:[m],props:{name:{type:String,required:!0},value:{type:Boolean,required:!0},defaultValue:{type:Boolean,required:!0},displayName:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,required:!0}}};var f=a(85072),v=a.n(f),A=a(97825),b=a.n(A),y=a(77659),w=a.n(y),C=a(55056),_=a.n(C),x=a(10540),S=a.n(x),N=a(41113),T=a.n(N),E=a(36728),k={};k.styleTagTransform=T(),k.setAttributes=_(),k.insert=w().bind(null,"head"),k.domAPI=b(),k.insertStyleElement=S(),v()(E.A,k),E.A&&E.A.locals&&E.A.locals;var D=a(14486);const M=(0,D.A)(g,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("label",{attrs:{for:e.id}},[e._v(e._s(e.displayName))]),e._v(" "),t("div",{staticClass:"field__row"},[t("NcCheckboxRadioSwitch",{attrs:{type:"switch",id:e.id,checked:e.localValue},on:{"update:checked":[function(t){e.localValue=t},e.save]}},[e._v("\n\t\t\t"+e._s(e.label)+"\n\t\t")])],1),e._v(" "),t("p",{staticClass:"field__description"},[e._v(e._s(e.description))]),e._v(" "),e.errorMessage?t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.errorMessage))])]):e._e()],1)}),[],!1,null,"c41a3e80",null).exports;var I=a(17334),O=a(54576),P=a(15360);const L={name:"UndoVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},F=(0,D.A)(L,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon undo-variant-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,B={name:"PaletteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},R=(0,D.A)(B,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon palette-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,j={name:"ColorPickerField",components:{NcButton:O.A,NcColorPicker:P.N,NcNoteCard:l.A,Undo:F,Palette:R},mixins:[m],props:{name:{type:String,required:!0},value:{type:String,required:!0},defaultValue:{type:String,required:!0},displayName:{type:String,required:!0}},methods:{debounceSave:(0,I.debounce)((async function(){await this.save()}),200)}};var Y=a(47937),z={};z.styleTagTransform=T(),z.setAttributes=_(),z.insert=w().bind(null,"head"),z.domAPI=b(),z.insertStyleElement=S(),v()(Y.A,z),Y.A&&Y.A.locals&&Y.A.locals;const U=(0,D.A)(j,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("label",{attrs:{for:e.id}},[e._v(e._s(e.displayName))]),e._v(" "),t("div",{staticClass:"field__row"},[t("NcColorPicker",{attrs:{value:e.localValue,"advanced-fields":!0,"data-admin-theming-setting-primary-color-picker":""},on:{"update:value":[function(t){e.localValue=t},e.debounceSave]}},[t("NcButton",{attrs:{type:"secondary",id:e.id},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Palette",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t\t\t"+e._s(e.t("theming","Change color"))+"\n\t\t\t")])],1),e._v(" "),t("div",{staticClass:"field__color-preview",attrs:{"data-admin-theming-setting-primary-color":""}}),e._v(" "),e.value!==e.defaultValue?t("NcButton",{attrs:{type:"tertiary","aria-label":e.t("theming","Reset to default"),"data-admin-theming-setting-primary-color-reset":""},on:{click:e.undo},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Undo",{attrs:{size:20}})]},proxy:!0}],null,!1,33666776)}):e._e()],1),e._v(" "),e.errorMessage?t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.errorMessage))])]):e._e()],1)}),[],!1,null,"25e8f76e",null).exports;var V=a(69977),G=a(11037),X=a(45821);const{allowedMimeTypes:q}=(0,r.C)("theming","adminThemingParameters",{}),H={name:"FileInputField",components:{Delete:G.A,NcButton:O.A,NcLoadingIcon:V.A,NcNoteCard:l.A,Undo:F,Upload:X.A},mixins:[h],props:{name:{type:String,required:!0},mimeName:{type:String,required:!0},mimeValue:{type:String,required:!0},defaultMimeValue:{type:String,required:!0},displayName:{type:String,required:!0},ariaLabel:{type:String,required:!0}},data(){return{showLoading:!1,acceptMime:(q[this.name]||["image/jpeg","image/png","image/gif","image/webp"]).join(",")}},computed:{showReset(){return this.mimeValue!==this.defaultMimeValue},showRemove(){if("background"===this.name){if(this.mimeValue.startsWith("image/"))return!0;if(this.mimeValue===this.defaultMimeValue)return!0}return!1}},methods:{activateLocalFilePicker(){this.reset(),this.$refs.input.value=null,this.$refs.input.click()},async onChange(e){const t=e.target.files[0],n=new FormData;n.append("key",this.name),n.append("image",t);const a=(0,u.Jv)("/apps/theming/ajax/uploadImage");try{this.showLoading=!0,await d.A.post(a,n),this.showLoading=!1,this.$emit("update:mime-value",t.type),this.handleSuccess()}catch(e){var o;this.showLoading=!1,this.errorMessage=null===(o=e.response.data.data)||void 0===o?void 0:o.message}},async undo(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/undoChanges");try{await d.A.post(e,{setting:this.mimeName}),this.$emit("update:mime-value",this.defaultMimeValue),this.handleSuccess()}catch(e){var t;this.errorMessage=null===(t=e.response.data.data)||void 0===t?void 0:t.message}},async removeBackground(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/updateStylesheet");try{await d.A.post(e,{setting:this.mimeName,value:"backgroundColor"}),this.$emit("update:mime-value","backgroundColor"),this.handleSuccess()}catch(e){var t;this.errorMessage=null===(t=e.response.data.data)||void 0===t?void 0:t.message}}}},W=H;var $=a(9710),Q={};Q.styleTagTransform=T(),Q.setAttributes=_(),Q.insert=w().bind(null,"head"),Q.domAPI=b(),Q.insertStyleElement=S(),v()($.A,Q),$.A&&$.A.locals&&$.A.locals;const Z=(0,D.A)(W,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("label",{attrs:{for:e.id}},[e._v(e._s(e.displayName))]),e._v(" "),t("div",{staticClass:"field__row"},[t("NcButton",{attrs:{type:"secondary",id:e.id,"aria-label":e.ariaLabel,"data-admin-theming-setting-file-picker":""},on:{click:e.activateLocalFilePicker},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Upload",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t\t"+e._s(e.t("theming","Upload"))+"\n\t\t")]),e._v(" "),e.showReset?t("NcButton",{attrs:{type:"tertiary","aria-label":e.t("theming","Reset to default"),"data-admin-theming-setting-file-reset":""},on:{click:e.undo},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Undo",{attrs:{size:20}})]},proxy:!0}],null,!1,33666776)}):e._e(),e._v(" "),e.showRemove?t("NcButton",{attrs:{type:"tertiary","aria-label":e.t("theming","Remove background image"),"data-admin-theming-setting-file-remove":""},on:{click:e.removeBackground},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Delete",{attrs:{size:20}})]},proxy:!0}],null,!1,2705356561)}):e._e(),e._v(" "),e.showLoading?t("NcLoadingIcon",{staticClass:"field__loading-icon",attrs:{size:20}}):e._e()],1),e._v(" "),"logoheader"!==e.name&&"favicon"!==e.name||e.mimeValue===e.defaultMimeValue?e._e():t("div",{staticClass:"field__preview",class:{"field__preview--logoheader":"logoheader"===e.name,"field__preview--favicon":"favicon"===e.name}}),e._v(" "),e.errorMessage?t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.errorMessage))])]):e._e(),e._v(" "),t("input",{ref:"input",attrs:{accept:e.acceptMime,type:"file"},on:{change:e.onChange}})],1)}),[],!1,null,"36abeca7",null).exports,J={name:"TextField",components:{NcTextField:a(82182).A},mixins:[m],props:{name:{type:String,required:!0},value:{type:String,required:!0},defaultValue:{type:String,required:!0},type:{type:String,required:!0},displayName:{type:String,required:!0},placeholder:{type:String,required:!0},maxlength:{type:Number,required:!0}}};var K=a(94087),ee={};ee.styleTagTransform=T(),ee.setAttributes=_(),ee.insert=w().bind(null,"head"),ee.domAPI=b(),ee.insertStyleElement=S(),v()(K.A,ee),K.A&&K.A.locals&&K.A.locals;const te=(0,D.A)(J,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("NcTextField",{attrs:{value:e.localValue,label:e.displayName,placeholder:e.placeholder,type:e.type,maxlength:e.maxlength,spellcheck:!1,success:e.showSuccess,error:Boolean(e.errorMessage),"helper-text":e.errorMessage,"show-trailing-button":e.value!==e.defaultValue,"trailing-button-icon":"undo"},on:{"update:value":function(t){e.localValue=t},"trailing-button-click":e.undo,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.save.apply(null,arguments)},blur:e.save}})],1)}),[],!1,null,"31f08db0",null).exports;var ne=a(85168),ae=a(53334),oe=a(67607);function ie(e){return"function"==typeof e?e():(0,i.R1)(e)}i.Ay.util.warn,a(96763);const re="undefined"!=typeof window&&"undefined"!=typeof document;function le(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),Object.prototype.toString;const se=/\B([A-Z])/g,ce=(le((e=>e.replace(se,"-$1").toLowerCase())),/-(\w)/g);le((e=>e.replace(ce,((e,t)=>t?t.toUpperCase():"")))),i.Ay.util.warn,a(96763),re&&window;const de=re?window.document:void 0;function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(){return he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},he.apply(this,arguments)}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){pe(e,t,n[t])}))}return e}function ge(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}re&&window.navigator,re&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY;var fe=ge(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ve=ge(/Edge/i),Ae=ge(/firefox/i),be=ge(/safari/i)&&!ge(/chrome/i)&&!ge(/android/i),ye=ge(/iP(ad|od|hone)/i),we=ge(/chrome/i)&&ge(/android/i),Ce={capture:!1,passive:!1};function _e(e,t,n){e.addEventListener(t,n,!fe&&Ce)}function xe(e,t,n){e.removeEventListener(t,n,!fe&&Ce)}function Se(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Ne(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Te(e,t,n,a){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Se(e,t):Se(e,t))||a&&e===n)return e;if(e===n)break}while(e=Ne(e))}return null}var Ee,ke=/\s+/g;function De(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(ke," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(ke," ")}}function Me(e,t,n){var a=e&&e.style;if(a){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=n+("string"==typeof n?"":"px")}}function Ie(e,t){var n="";if("string"==typeof e)n=e;else do{var a=Me(e,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Oe(e,t,n){if(e){var a=e.getElementsByTagName(t),o=0,i=a.length;if(n)for(;o<i;o++)n(a[o],o);return a}return[]}function Pe(){return document.scrollingElement||document.documentElement}function Le(e,t,n,a,o){if(e.getBoundingClientRect||e===window){var i,r,l,s,c,d,u;if(e!==window&&e!==Pe()?(r=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,d=i.height,u=i.width):(r=0,l=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!fe))do{if(o&&o.getBoundingClientRect&&("none"!==Me(o,"transform")||n&&"static"!==Me(o,"position"))){var p=o.getBoundingClientRect();r-=p.top+parseInt(Me(o,"border-top-width")),l-=p.left+parseInt(Me(o,"border-left-width")),s=r+i.height,c=l+i.width;break}}while(o=o.parentNode);if(a&&e!==window){var h=Ie(o||e),m=h&&h.a,g=h&&h.d;h&&(s=(r/=g)+(d/=g),c=(l/=m)+(u/=m))}return{top:r,left:l,bottom:s,right:c,width:u,height:d}}}function Fe(e,t,n){for(var a=ze(e,!0),o=Le(e)[t];a;){var i=Le(a)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return a;if(a===Pe())break;a=ze(a,!1)}return!1}function Be(e,t,n){for(var a=0,o=0,i=e.children;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Ut.ghost&&i[o]!==Ut.dragged&&Te(i[o],n.draggable,e,!1)){if(a===t)return i[o];a++}o++}return null}function Re(e,t){for(var n=e.lastElementChild;n&&(n===Ut.ghost||"none"===Me(n,"display")||t&&!Se(n,t));)n=n.previousElementSibling;return n||null}function je(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ut.clone||t&&!Se(e,t)||n++;return n}function Ye(e){var t=0,n=0,a=Pe();if(e)do{var o=Ie(e),i=o.a,r=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*r}while(e!==a&&(e=e.parentNode));return[t,n]}function ze(e,t){if(!e||!e.getBoundingClientRect)return Pe();var n=e,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Me(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Pe();if(a||t)return n;a=!0}}}while(n=n.parentNode);return Pe()}function Ue(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Ve(e,t){return function(){if(!Ee){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Ee=setTimeout((function(){Ee=void 0}),t)}}}function Ge(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Xe(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var qe="Sortable"+(new Date).getTime();var He=[],We={initializeByDefault:!0},$e={mount:function(e){for(var t in We)We.hasOwnProperty(t)&&!(t in e)&&(e[t]=We[t]);He.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=e+"Global";He.forEach((function(a){t[a.pluginName]&&(t[a.pluginName][o]&&t[a.pluginName][o](me({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](me({sortable:t},n)))}))},initializePlugins:function(e,t,n,a){for(var o in He.forEach((function(a){var o=a.pluginName;if(e.options[o]||a.initializeByDefault){var i=new a(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,he(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return He.forEach((function(a){"function"==typeof a.eventProperties&&he(n,a.eventProperties.call(t[a.pluginName],e))})),n},modifyOption:function(e,t,n){var a;return He.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(a=o.optionListeners[t].call(e[o.pluginName],n))})),a}};var Qe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,o=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["evt"]);$e.pluginEvent.bind(Ut)(e,t,me({dragEl:Je,parentEl:Ke,ghostEl:et,rootEl:tt,nextEl:nt,lastDownEl:at,cloneEl:ot,cloneHidden:it,dragStarted:At,putSortable:ut,activeSortable:Ut.active,originalEvent:a,oldIndex:rt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:ct,hideGhostForTarget:Rt,unhideGhostForTarget:jt,cloneNowHidden:function(){it=!0},cloneNowShown:function(){it=!1},dispatchSortableEvent:function(e){Ze({sortable:t,name:e,originalEvent:a})}},o))};function Ze(e){!function(e){var t=e.sortable,n=e.rootEl,a=e.name,o=e.targetEl,i=e.cloneEl,r=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[qe]){var g,f=t.options,v="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||fe||ve?(g=document.createEvent("Event")).initEvent(a,!0,!0):g=new CustomEvent(a,{bubbles:!0,cancelable:!0}),g.to=r||n,g.from=l||n,g.item=o||n,g.clone=i,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=u,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var A=me({},m,$e.getEventProperties(a,t));for(var b in A)g[b]=A[b];n&&n.dispatchEvent(g),f[v]&&f[v].call(t,g)}}(me({putSortable:ut,cloneEl:ot,targetEl:Je,rootEl:tt,oldIndex:rt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:ct},e))}var Je,Ke,et,tt,nt,at,ot,it,rt,lt,st,ct,dt,ut,pt,ht,mt,gt,ft,vt,At,bt,yt,wt,Ct,_t=!1,xt=!1,St=[],Nt=!1,Tt=!1,Et=[],kt=!1,Dt=[],Mt="undefined"!=typeof document,It=ye,Ot=ve||fe?"cssFloat":"float",Pt=Mt&&!we&&!ye&&"draggable"in document.createElement("div"),Lt=function(){if(Mt){if(fe)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ft=function(e,t){var n=Me(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Be(e,0,t),i=Be(e,1,t),r=o&&Me(o),l=i&&Me(i),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Le(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Le(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&r.float&&"none"!==r.float){var d="left"===r.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==d?"horizontal":"vertical"}return o&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||s>=a&&"none"===n[Ot]||i&&"none"===n[Ot]&&s+c>a)?"vertical":"horizontal"},Bt=function(e){function t(e,n){return function(a,o,i,r){var l=a.options.group.name&&o.options.group.name&&a.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(a,o,i,r),n)(a,o,i,r);var s=(n?a:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},a=e.group;a&&"object"==ue(a)||(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Rt=function(){!Lt&&et&&Me(et,"display","none")},jt=function(){!Lt&&et&&Me(et,"display","")};Mt&&document.addEventListener("click",(function(e){if(xt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xt=!1,!1}),!0);var Yt=function(e){if(Je){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,St.some((function(e){if(!Re(e)){var t=Le(e),n=e[qe].options.emptyInsertThreshold,a=o>=t.left-n&&o<=t.right+n,l=i>=t.top-n&&i<=t.bottom+n;return n&&a&&l?r=e:void 0}})),r);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[qe]._onDragOver(n)}}var o,i,r},zt=function(e){Je&&Je.parentNode[qe]._isOutsideThisEl(e.target)};function Ut(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=he({},t),e[qe]=this;var n,a,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ft(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ut.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in $e.initializePlugins(this,e,o),o)!(i in t)&&(t[i]=o[i]);for(var r in Bt(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Pt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_e(e,"pointerdown",this._onTapStart):(_e(e,"mousedown",this._onTapStart),_e(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_e(e,"dragover",this),_e(e,"dragenter",this)),St.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),he(this,(a=[],{captureAnimationState:function(){a=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Me(e,"display")&&e!==Ut.ghost){a.push({target:e,rect:Le(e)});var t=me({},a[a.length-1].rect);if(e.thisAnimationDuration){var n=Ie(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){a.push(e)},removeAnimationState:function(e){a.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[n][a])return Number(n);return-1}(a,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,i=0;a.forEach((function(e){var n=0,a=e.target,r=a.fromRect,l=Le(a),s=a.prevFromRect,c=a.prevToRect,d=e.rect,u=Ie(a,!0);u&&(l.top-=u.f,l.left-=u.e),a.toRect=l,a.thisAnimationDuration&&Ue(s,l)&&!Ue(r,l)&&(d.top-l.top)/(d.left-l.left)==(r.top-l.top)/(r.left-l.left)&&(n=function(e,t,n,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*a.animation}(d,s,c,t.options)),Ue(l,r)||(a.prevFromRect=r,a.prevToRect=l,n||(n=t.options.animation),t.animate(a,d,l,n)),n&&(o=!0,i=Math.max(i,n),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout((function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null}),n),a.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),a=[]},animate:function(e,t,n,a){if(a){Me(e,"transition",""),Me(e,"transform","");var o=Ie(this.el),i=o&&o.a,r=o&&o.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(r||1);e.animatingX=!!l,e.animatingY=!!s,Me(e,"transform","translate3d("+l+"px,"+s+"px,0)"),function(e){e.offsetWidth}(e),Me(e,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Me(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Me(e,"transition",""),Me(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),a)}}}))}function Vt(e,t,n,a,o,i,r,l){var s,c,d=e[qe],u=d.options.onMove;return!window.CustomEvent||fe||ve?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=a,s.related=o||t,s.relatedRect=i||Le(t),s.willInsertAfter=l,s.originalEvent=r,e.dispatchEvent(s),u&&(c=u.call(d,s,r)),c}function Gt(e){e.draggable=!1}function Xt(){kt=!1}function qt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,a=0;n--;)a+=t.charCodeAt(n);return a.toString(36)}function Ht(e){return setTimeout(e,0)}function Wt(e){return clearTimeout(e)}Ut.prototype={constructor:Ut,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(bt=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Je):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,o=a.preventOnFilter,i=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(r||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=a.filter;if(function(e){Dt.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var a=t[n];a.checked&&Dt.push(a)}}(n),!Je&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||a.disabled||s.isContentEditable||(l=Te(l,a.draggable,n,!1))&&l.animated||at===l)){if(rt=je(l),st=je(l,a.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Ze({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Qe("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(a){if(a=Te(s,a.trim(),n,!1))return Ze({sortable:t,rootEl:a,name:"filter",targetEl:l,fromEl:n,toEl:n}),Qe("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());a.handle&&!Te(s,a.handle,n,!1)||this._prepareDragStart(e,r,l)}}},_prepareDragStart:function(e,t,n){var a,o=this,i=o.el,r=o.options,l=i.ownerDocument;if(n&&!Je&&n.parentNode===i){var s=Le(n);if(tt=i,Ke=(Je=n).parentNode,nt=Je.nextSibling,at=n,dt=r.group,Ut.dragged=Je,pt={target:Je,clientX:(t||e).clientX,clientY:(t||e).clientY},ft=pt.clientX-s.left,vt=pt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Je.style["will-change"]="all",a=function(){Qe("delayEnded",o,{evt:e}),Ut.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Ae&&o.nativeDraggable&&(Je.draggable=!0),o._triggerDragStart(e,t),Ze({sortable:o,name:"choose",originalEvent:e}),De(Je,r.chosenClass,!0))},r.ignore.split(",").forEach((function(e){Oe(Je,e.trim(),Gt)})),_e(l,"dragover",Yt),_e(l,"mousemove",Yt),_e(l,"touchmove",Yt),_e(l,"mouseup",o._onDrop),_e(l,"touchend",o._onDrop),_e(l,"touchcancel",o._onDrop),Ae&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Je.draggable=!0),Qe("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(ve||fe))a();else{if(Ut.eventCanceled)return void this._onDrop();_e(l,"mouseup",o._disableDelayedDrag),_e(l,"touchend",o._disableDelayedDrag),_e(l,"touchcancel",o._disableDelayedDrag),_e(l,"mousemove",o._delayedDragTouchMoveHandler),_e(l,"touchmove",o._delayedDragTouchMoveHandler),r.supportPointer&&_e(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Je&&Gt(Je),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._disableDelayedDrag),xe(e,"touchend",this._disableDelayedDrag),xe(e,"touchcancel",this._disableDelayedDrag),xe(e,"mousemove",this._delayedDragTouchMoveHandler),xe(e,"touchmove",this._delayedDragTouchMoveHandler),xe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_e(document,"pointermove",this._onTouchMove):_e(document,t?"touchmove":"mousemove",this._onTouchMove):(_e(Je,"dragend",this),_e(tt,"dragstart",this._onDragStart));try{document.selection?Ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(_t=!1,tt&&Je){Qe("dragStarted",this,{evt:t}),this.nativeDraggable&&_e(document,"dragover",zt);var n=this.options;!e&&De(Je,n.dragClass,!1),De(Je,n.ghostClass,!0),Ut.active=this,e&&this._appendGhost(),Ze({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ht){this._lastX=ht.clientX,this._lastY=ht.clientY,Rt();for(var e=document.elementFromPoint(ht.clientX,ht.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ht.clientX,ht.clientY))!==t;)t=e;if(Je.parentNode[qe]._isOutsideThisEl(e),t)do{if(t[qe]&&t[qe]._onDragOver({clientX:ht.clientX,clientY:ht.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);jt()}},_onTouchMove:function(e){if(pt){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=et&&Ie(et,!0),r=et&&i&&i.a,l=et&&i&&i.d,s=It&&Ct&&Ye(Ct),c=(o.clientX-pt.clientX+a.x)/(r||1)+(s?s[0]-Et[0]:0)/(r||1),d=(o.clientY-pt.clientY+a.y)/(l||1)+(s?s[1]-Et[1]:0)/(l||1);if(!Ut.active&&!_t){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(et){i?(i.e+=c-(mt||0),i.f+=d-(gt||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Me(et,"webkitTransform",u),Me(et,"mozTransform",u),Me(et,"msTransform",u),Me(et,"transform",u),mt=c,gt=d,ht=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!et){var e=this.options.fallbackOnBody?document.body:tt,t=Le(Je,!0,It,!0,e),n=this.options;if(It){for(Ct=e;"static"===Me(Ct,"position")&&"none"===Me(Ct,"transform")&&Ct!==document;)Ct=Ct.parentNode;Ct!==document.body&&Ct!==document.documentElement?(Ct===document&&(Ct=Pe()),t.top+=Ct.scrollTop,t.left+=Ct.scrollLeft):Ct=Pe(),Et=Ye(Ct)}De(et=Je.cloneNode(!0),n.ghostClass,!1),De(et,n.fallbackClass,!0),De(et,n.dragClass,!0),Me(et,"transition",""),Me(et,"transform",""),Me(et,"box-sizing","border-box"),Me(et,"margin",0),Me(et,"top",t.top),Me(et,"left",t.left),Me(et,"width",t.width),Me(et,"height",t.height),Me(et,"opacity","0.8"),Me(et,"position",It?"absolute":"fixed"),Me(et,"zIndex","100000"),Me(et,"pointerEvents","none"),Ut.ghost=et,e.appendChild(et),Me(et,"transform-origin",ft/parseInt(et.style.width)*100+"% "+vt/parseInt(et.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,o=n.options;Qe("dragStart",this,{evt:e}),Ut.eventCanceled?this._onDrop():(Qe("setupClone",this),Ut.eventCanceled||((ot=Xe(Je)).draggable=!1,ot.style["will-change"]="",this._hideClone(),De(ot,this.options.chosenClass,!1),Ut.clone=ot),n.cloneId=Ht((function(){Qe("clone",n),Ut.eventCanceled||(n.options.removeCloneOnHide||tt.insertBefore(ot,Je),n._hideClone(),Ze({sortable:n,name:"clone"}))})),!t&&De(Je,o.dragClass,!0),t?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(xe(document,"mouseup",n._onDrop),xe(document,"touchend",n._onDrop),xe(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,Je)),_e(document,"drop",n),Me(Je,"transform","translateZ(0)")),_t=!0,n._dragStartId=Ht(n._dragStarted.bind(n,t,e)),_e(document,"selectstart",n),At=!0,be&&Me(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,a,o,i=this.el,r=e.target,l=this.options,s=l.group,c=Ut.active,d=dt===s,u=l.sort,p=ut||c,h=this,m=!1;if(!kt){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),r=Te(r,l.draggable,i,!0),E("dragOver"),Ut.eventCanceled)return m;if(Je.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return D(!1);if(xt=!1,c&&!l.disabled&&(d?u||(a=!tt.contains(Je)):ut===this||(this.lastPutMode=dt.checkPull(this,c,Je,e))&&s.checkPut(this,c,Je,e))){if(o="vertical"===this._getDirection(e,r),t=Le(Je),E("dragOverValid"),Ut.eventCanceled)return m;if(a)return Ke=tt,k(),this._hideClone(),E("revert"),Ut.eventCanceled||(nt?tt.insertBefore(Je,nt):tt.appendChild(Je)),D(!0);var g=Re(i,l.draggable);if(!g||function(e,t,n){var a=Le(Re(n.el,n.options.draggable));return t?e.clientX>a.right+10||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+10}(e,o,this)&&!g.animated){if(g===Je)return D(!1);if(g&&i===e.target&&(r=g),r&&(n=Le(r)),!1!==Vt(tt,i,Je,t,r,n,e,!!r))return k(),i.appendChild(Je),Ke=i,M(),D(!0)}else if(r.parentNode===i){n=Le(r);var f,v,A,b=Je.parentNode!==i,y=!function(e,t,n){var a=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,r=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return a===r||o===l||a+i/2===r+s/2}(Je.animated&&Je.toRect||t,r.animated&&r.toRect||n,o),w=o?"top":"left",C=Fe(r,"top","top")||Fe(Je,"top","top"),_=C?C.scrollTop:void 0;if(bt!==r&&(v=n[w],Nt=!1,Tt=!y&&l.invertSwap||b),f=function(e,t,n,a,o,i,r,l){var s=a?e.clientY:e.clientX,c=a?n.height:n.width,d=a?n.top:n.left,u=a?n.bottom:n.right,p=!1;if(!r)if(l&&wt<c*o){if(!Nt&&(1===yt?s>d+c*i/2:s<u-c*i/2)&&(Nt=!0),Nt)p=!0;else if(1===yt?s<d+wt:s>u-wt)return-yt}else if(s>d+c*(1-o)/2&&s<u-c*(1-o)/2)return function(e){return je(Je)<je(e)?1:-1}(t);return(p=p||r)&&(s<d+c*i/2||s>u-c*i/2)?s>d+c/2?1:-1:0}(e,r,n,o,y?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Tt,bt===r),0!==f){var x=je(Je);do{x-=f,A=Ke.children[x]}while(A&&("none"===Me(A,"display")||A===et))}if(0===f||A===r)return D(!1);bt=r,yt=f;var S=r.nextElementSibling,N=!1,T=Vt(tt,i,Je,t,r,n,e,N=1===f);if(!1!==T)return 1!==T&&-1!==T||(N=1===T),kt=!0,setTimeout(Xt,30),k(),N&&!S?i.appendChild(Je):r.parentNode.insertBefore(Je,N?S:r),C&&Ge(C,0,_-C.scrollTop),Ke=Je.parentNode,void 0===v||Tt||(wt=Math.abs(v-Le(r)[w])),M(),D(!0)}if(i.contains(Je))return D(!1)}return!1}function E(l,s){Qe(l,h,me({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:a,dragRect:t,targetRect:n,canSort:u,fromSortable:p,target:r,completed:D,onMove:function(n,a){return Vt(tt,i,Je,t,n,Le(n),e,a)},changed:M},s))}function k(){E("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function D(t){return E("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(h),h!==p&&(De(Je,ut?ut.options.ghostClass:c.options.ghostClass,!1),De(Je,l.ghostClass,!0)),ut!==h&&h!==Ut.active?ut=h:h===Ut.active&&ut&&(ut=null),p===h&&(h._ignoreWhileAnimating=r),h.animateAll((function(){E("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===Je&&!Je.animated||r===i&&!r.animated)&&(bt=null),l.dragoverBubble||e.rootEl||r===document||(Je.parentNode[qe]._isOutsideThisEl(e.target),!t&&Yt(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function M(){lt=je(Je),ct=je(Je,l.draggable),Ze({sortable:h,name:"change",toEl:i,newIndex:lt,newDraggableIndex:ct,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){xe(document,"mousemove",this._onTouchMove),xe(document,"touchmove",this._onTouchMove),xe(document,"pointermove",this._onTouchMove),xe(document,"dragover",Yt),xe(document,"mousemove",Yt),xe(document,"touchmove",Yt)},_offUpEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._onDrop),xe(e,"touchend",this._onDrop),xe(e,"pointerup",this._onDrop),xe(e,"touchcancel",this._onDrop),xe(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;lt=je(Je),ct=je(Je,n.draggable),Qe("drop",this,{evt:e}),Ke=Je&&Je.parentNode,lt=je(Je),ct=je(Je,n.draggable),Ut.eventCanceled||(_t=!1,Tt=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wt(this.cloneId),Wt(this._dragStartId),this.nativeDraggable&&(xe(document,"drop",this),xe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),be&&Me(document.body,"user-select",""),Me(Je,"transform",""),e&&(At&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(tt===Ke||ut&&"clone"!==ut.lastPutMode)&&ot&&ot.parentNode&&ot.parentNode.removeChild(ot),Je&&(this.nativeDraggable&&xe(Je,"dragend",this),Gt(Je),Je.style["will-change"]="",At&&!_t&&De(Je,ut?ut.options.ghostClass:this.options.ghostClass,!1),De(Je,this.options.chosenClass,!1),Ze({sortable:this,name:"unchoose",toEl:Ke,newIndex:null,newDraggableIndex:null,originalEvent:e}),tt!==Ke?(lt>=0&&(Ze({rootEl:Ke,name:"add",toEl:Ke,fromEl:tt,originalEvent:e}),Ze({sortable:this,name:"remove",toEl:Ke,originalEvent:e}),Ze({rootEl:Ke,name:"sort",toEl:Ke,fromEl:tt,originalEvent:e}),Ze({sortable:this,name:"sort",toEl:Ke,originalEvent:e})),ut&&ut.save()):lt!==rt&<>=0&&(Ze({sortable:this,name:"update",toEl:Ke,originalEvent:e}),Ze({sortable:this,name:"sort",toEl:Ke,originalEvent:e})),Ut.active&&(null!=lt&&-1!==lt||(lt=rt,ct=st),Ze({sortable:this,name:"end",toEl:Ke,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Qe("nulling",this),tt=Je=Ke=et=nt=ot=at=it=pt=ht=At=lt=ct=rt=st=bt=yt=ut=dt=Ut.dragged=Ut.ghost=Ut.clone=Ut.active=null,Dt.forEach((function(e){e.checked=!0})),Dt.length=mt=gt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Je&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,a=0,o=n.length,i=this.options;a<o;a++)Te(e=n[a],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||qt(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,a){var o=n.children[a];Te(o,this.options.draggable,n,!1)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Te(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var a=$e.modifyOption(this,e,t);n[e]=void 0!==a?a:t,"group"===e&&Bt(n)},destroy:function(){Qe("destroy",this);var e=this.el;e[qe]=null,xe(e,"mousedown",this._onTapStart),xe(e,"touchstart",this._onTapStart),xe(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(xe(e,"dragover",this),xe(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),St.splice(St.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!it){if(Qe("hideClone",this),Ut.eventCanceled)return;Me(ot,"display","none"),this.options.removeCloneOnHide&&ot.parentNode&&ot.parentNode.removeChild(ot),it=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(it){if(Qe("showClone",this),Ut.eventCanceled)return;tt.contains(Je)&&!this.options.group.revertClone?tt.insertBefore(ot,Je):nt?tt.insertBefore(ot,nt):tt.appendChild(ot),this.options.group.revertClone&&this.animate(Je,ot),Me(ot,"display",""),it=!1}}else this._hideClone()}},Mt&&_e(document,"touchmove",(function(e){(Ut.active||_t)&&e.cancelable&&e.preventDefault()})),Ut.utils={on:_e,off:xe,css:Me,find:Oe,is:function(e,t){return!!Te(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Ve,closest:Te,toggleClass:De,clone:Xe,index:je,nextTick:Ht,cancelNextTick:Wt,detectDirection:Ft,getChild:Be},Ut.get=function(e){return e[qe]},Ut.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ut.utils=me({},Ut.utils,e.utils)),$e.mount(e)}))},Ut.create=function(e,t){return new Ut(e,t)},Ut.version="1.10.2";var $t,Qt,Zt,Jt,Kt,en,tn=[],nn=!1;function an(){tn.forEach((function(e){clearInterval(e.pid)})),tn=[]}function on(){clearInterval(en)}var rn=Ve((function(e,t,n,a){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=Pe(),d=!1;Qt!==n&&(Qt=n,an(),$t=t.scroll,o=t.scrollFn,!0===$t&&($t=ze(n,!0)));var u=0,p=$t;do{var h=p,m=Le(h),g=m.top,f=m.bottom,v=m.left,A=m.right,b=m.width,y=m.height,w=void 0,C=void 0,_=h.scrollWidth,x=h.scrollHeight,S=Me(h),N=h.scrollLeft,T=h.scrollTop;h===c?(w=b<_&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),C=y<x&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=b<_&&("auto"===S.overflowX||"scroll"===S.overflowX),C=y<x&&("auto"===S.overflowY||"scroll"===S.overflowY));var E=w&&(Math.abs(A-i)<=l&&N+b<_)-(Math.abs(v-i)<=l&&!!N),k=C&&(Math.abs(f-r)<=l&&T+y<x)-(Math.abs(g-r)<=l&&!!T);if(!tn[u])for(var D=0;D<=u;D++)tn[D]||(tn[D]={});tn[u].vx==E&&tn[u].vy==k&&tn[u].el===h||(tn[u].el=h,tn[u].vx=E,tn[u].vy=k,clearInterval(tn[u].pid),0==E&&0==k||(d=!0,tn[u].pid=setInterval(function(){a&&0===this.layer&&Ut.active._onTouchMove(Kt);var t=tn[this.layer].vy?tn[this.layer].vy*s:0,n=tn[this.layer].vx?tn[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(Ut.dragged.parentNode[qe],n,t,e,Kt,tn[this.layer].el)||Ge(tn[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==c&&(p=ze(p,!1)));nn=d}}),30),ln=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,r=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;r();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(d)&&(i("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function sn(){}function cn(){}sn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=Be(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ln},he(sn,{pluginName:"revertOnSpill"}),cn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ln},he(cn,{pluginName:"removeOnSpill"}),Ut.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_e(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_e(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_e(document,"touchmove",this._handleFallbackAutoScroll):_e(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):(xe(document,"pointermove",this._handleFallbackAutoScroll),xe(document,"touchmove",this._handleFallbackAutoScroll),xe(document,"mousemove",this._handleFallbackAutoScroll)),on(),an(),clearTimeout(Ee),Ee=void 0},nulling:function(){Kt=Qt=$t=nn=en=Zt=Jt=null,tn.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,a=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(a,o);if(Kt=e,t||ve||fe||be){rn(e,this.options,i,t);var r=ze(i,!0);!nn||en&&a===Zt&&o===Jt||(en&&on(),en=setInterval((function(){var i=ze(document.elementFromPoint(a,o),!0);i!==r&&(r=i,an()),rn(e,n.options,i,t)}),10),Zt=a,Jt=o)}else{if(!this.options.bubbleScroll||ze(i,!0)===Pe())return void an();rn(e,this.options,ze(i,!1),!1)}}},he(e,{pluginName:"scroll",initializeByDefault:!0})}),Ut.mount(cn,sn);const dn=Ut;function un(e,t,n={}){let a;const{document:o=de,...r}=n,l={onUpdate:e=>{!function(e,t,n){const a=(0,i.i9)(e),o=a?[...ie(e)]:ie(e);if(n>=0&&n<o.length){const r=o.splice(t,1)[0];(0,i.dY)((()=>{o.splice(n,0,r),a&&(e.value=o)}))}}(t,e.oldIndex,e.newIndex)}},s=()=>{const t="string"==typeof e?null==o?void 0:o.querySelector(e):function(e){var t;const n=ie(e);return null!=(t=null==n?void 0:n.$el)?t:n}(e);t&&void 0===a&&(a=new dn(t,{...l,...r}))},c=()=>{null==a||a.destroy(),a=void 0};return function(e,t=!0,n){!function(e){return e||(0,i.nI)()}()?t?e():(0,i.dY)(e):(0,i.sV)(e,n)}(s),d=c,!!(0,i.o5)()&&(0,i.jr)(d),{stop:c,start:s,option:(e,t)=>{if(void 0===t)return null==a?void 0:a.option(e);null==a||a.option(e,t)}};var d}var pn=a(54914),hn=a(10620),mn=a(41645);const gn=(0,i.pM)({name:"AppOrderSelectorElement",components:{IconArrowDown:hn.A,IconArrowUp:mn.A,NcButton:O.A},props:{ariaDescribedby:{type:String,default:null},ariaDetails:{type:String,default:null},app:{type:Object,required:!0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1}},emits:{"move:up":()=>!0,"move:down":()=>!0,"update:focus":()=>!0},setup(e,t){let{emit:n}=t;const a=(0,i.KR)(),o=(0,i.KR)();let r=0;return{buttonUp:a,buttonDown:o,moveUp:()=>{n("move:up"),r=1},moveDown:()=>{n("move:down"),r=-1},keepFocus:()=>{0!==r&&(1!==r&&!e.isLast||e.isFirst?(0,i.dY)((()=>o.value.$el.focus())):(0,i.dY)((()=>a.value.$el.focus()))),r=0},t:ae.Tl}}});var fn=a(12182),vn={};vn.styleTagTransform=T(),vn.setAttributes=_(),vn.insert=w().bind(null,"head"),vn.domAPI=b(),vn.insertStyleElement=S(),v()(fn.A,vn),fn.A&&fn.A.locals&&fn.A.locals;const An=(0,D.A)(gn,(function(){var e,t=this,n=t._self._c;return t._self._setupProxy,n("li",{class:{"order-selector-element":!0,"order-selector-element--disabled":t.app.default},attrs:{"data-cy-app-order-element":t.app.id},on:{focusin:function(e){return t.$emit("update:focus")}}},[n("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",role:"presentation"}},[n("image",{staticClass:"order-selector-element__icon",attrs:{preserveAspectRatio:"xMinYMin meet",x:"0",y:"0",width:"20",height:"20","xlink:href":t.app.icon}})]),t._v(" "),n("div",{staticClass:"order-selector-element__label"},[t._v("\n\t\t"+t._s(null!==(e=t.app.label)&&void 0!==e?e:t.app.id)+"\n\t")]),t._v(" "),n("div",{staticClass:"order-selector-element__actions"},[n("NcButton",{directives:[{name:"show",rawName:"v-show",value:!t.isFirst&&!t.app.default,expression:"!isFirst && !app.default"}],ref:"buttonUp",attrs:{"aria-label":t.t("settings","Move up"),"aria-describedby":t.ariaDescribedby,"aria-details":t.ariaDetails,"data-cy-app-order-button":"up",type:"tertiary-no-background"},on:{click:t.moveUp},scopedSlots:t._u([{key:"icon",fn:function(){return[n("IconArrowUp",{attrs:{size:20}})]},proxy:!0}])}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isFirst||!!t.app.default,expression:"isFirst || !!app.default"}],staticClass:"order-selector-element__placeholder",attrs:{"aria-hidden":"true"}}),t._v(" "),n("NcButton",{directives:[{name:"show",rawName:"v-show",value:!t.isLast&&!t.app.default,expression:"!isLast && !app.default"}],ref:"buttonDown",attrs:{"aria-label":t.t("settings","Move down"),"aria-describedby":t.ariaDescribedby,"aria-details":t.ariaDetails,"data-cy-app-order-button":"down",type:"tertiary-no-background"},on:{click:t.moveDown},scopedSlots:t._u([{key:"icon",fn:function(){return[n("IconArrowDown",{attrs:{size:20}})]},proxy:!0}])}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isLast||!!t.app.default,expression:"isLast || !!app.default"}],staticClass:"order-selector-element__placeholder",attrs:{"aria-hidden":"true"}})],1)])}),[],!1,null,"081ebc45",null).exports,bn=(0,i.pM)({name:"AppOrderSelector",components:{AppOrderSelectorElement:An,Fragment:pn.F},props:{ariaDetails:{type:String,default:null},value:{type:Array,required:!0}},emits:{"update:value":e=>Array.isArray(e)},setup(e,t){let{emit:n}=t;const a=(0,i.KR)(null),o=(0,i.EW)({get:()=>e.value,set:t=>{const a=[...t].sort(((e,n)=>(n.default?1:0)-(e.default?1:0)||t.indexOf(e)-t.indexOf(n)));a.some(((t,n)=>{let{id:a}=t;return a!==e.value[n].id}))?n("update:value",a):r.value+=1}}),r=(0,i.KR)(0);un(a,o,{filter:".order-selector-element--disabled"});const l=(0,i.KR)([]);(0,i.$u)((()=>{l.value.forEach((e=>e.keepFocus()))}));const s=(0,i.KR)("");return{appList:o,listElement:a,moveDown:t=>{const a=t>0?e.value.slice(0,t):[];a.push(e.value[t+1]);const o=t<e.value.length-2?e.value.slice(t+2):[];n("update:value",[...a,e.value[t],...o])},moveUp:t=>{var a;const o=t>1?e.value.slice(0,t-1):[];if(null!==(a=e.value[t-1])&&void 0!==a&&a.default)return;const i=[e.value[t-1]];t<e.value.length-1&&i.push(...e.value.slice(t+1)),n("update:value",[...o,e.value[t],...i])},statusInfoId:"sorting-status-info-".concat((Math.random()+1).toString(36).substring(7)),statusInfo:s,updateStatusInfo:t=>{s.value=(0,ae.Tl)("theming","Current selected app: {app}, position {position} of {total}",{app:e.value[t].label,position:t+1,total:e.value.length})},renderCount:r,selectorElements:l}}}),yn=bn;var wn=a(12467),Cn={};Cn.styleTagTransform=T(),Cn.setAttributes=_(),Cn.insert=w().bind(null,"head"),Cn.domAPI=b(),Cn.insertStyleElement=S(),v()(wn.A,Cn),wn.A&&wn.A.locals&&wn.A.locals;var _n=(0,D.A)(yn,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Fragment",[t("div",{staticClass:"hidden-visually",attrs:{id:e.statusInfoId,"aria-live":"polite",role:"status"}},[e._v("\n\t\t"+e._s(e.statusInfo)+"\n\t")]),e._v(" "),t("ol",{ref:"listElement",staticClass:"order-selector",attrs:{"data-cy-app-order":""}},e._l(e.appList,(function(n,a){return t("AppOrderSelectorElement",e._g({key:"".concat(n.id).concat(e.renderCount),ref:"selectorElements",refInFor:!0,attrs:{app:n,"aria-details":e.ariaDetails,"aria-describedby":e.statusInfoId,"is-first":0===a||!!e.appList[a-1].default,"is-last":a===e.value.length-1}},n.default?{}:{"move:up":()=>e.moveUp(a),"move:down":()=>e.moveDown(a),"update:focus":()=>e.updateStatusInfo(a)}))})),1)])}),[],!1,null,"76d01da8",null);const xn=_n.exports,Sn=(0,i.pM)({name:"AppMenuSection",components:{AppOrderSelector:xn,NcCheckboxRadioSwitch:c.A,NcSelect:oe.A,NcSettingsSection:s.A},props:{defaultApps:{type:Array,required:!0}},emits:{"update:defaultApps":e=>Array.isArray(e)&&e.every((e=>"string"==typeof e))},setup(e,t){let{emit:n}=t;const a=(0,i.EW)({get:()=>e.defaultApps.length>0,set:e=>{e?n("update:defaultApps",["dashboard","files"]):l.value=[]}}),o=Object.values((0,r.C)("core","apps")).map((e=>{let{id:t,name:n,icon:a}=e;return{label:n,id:t,icon:a}})),l=(0,i.EW)({get:()=>e.defaultApps.map((e=>o.filter((t=>t.id===e))[0])),set(e){s("defaultApps",e.map((e=>e.id))).then((()=>n("update:defaultApps",e.map((e=>e.id))))).catch((()=>(0,ne.Qg)((0,ae.Tl)("theming","Could not set global default apps"))))}}),s=async(e,t)=>{const n=(0,u.Jv)("/apps/theming/ajax/updateAppMenu");return await d.A.put(n,{setting:e,value:t})};return{allApps:o,selectedApps:l,hasCustomDefaultApp:a,t:ae.Tl}}}),Nn=Sn;var Tn=a(17446),En={};En.styleTagTransform=T(),En.setAttributes=_(),En.insert=w().bind(null,"head"),En.domAPI=b(),En.insertStyleElement=S(),v()(Tn.A,En),Tn.A&&Tn.A.locals&&Tn.A.locals;const kn=(0,D.A)(Nn,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcSettingsSection",{attrs:{name:e.t("theming","Navigation bar settings")}},[t("h3",[e._v(e._s(e.t("theming","Default app")))]),e._v(" "),t("p",{staticClass:"info-note"},[e._v("\n\t\t"+e._s(e.t("theming","The default app is the app that is e.g. opened after login or when the logo in the menu is clicked."))+"\n\t")]),e._v(" "),t("NcCheckboxRadioSwitch",{attrs:{checked:e.hasCustomDefaultApp,type:"switch","data-cy-switch-default-app":""},on:{"update:checked":function(t){e.hasCustomDefaultApp=t}}},[e._v("\n\t\t"+e._s(e.t("theming","Use custom default app"))+"\n\t")]),e._v(" "),e.hasCustomDefaultApp?[t("h4",[e._v(e._s(e.t("theming","Global default app")))]),e._v(" "),t("NcSelect",{attrs:{"close-on-select":!1,placeholder:e.t("theming","Global default apps"),options:e.allApps,multiple:!0},model:{value:e.selectedApps,callback:function(t){e.selectedApps=t},expression:"selectedApps"}}),e._v(" "),t("h5",[e._v(e._s(e.t("theming","Default app priority")))]),e._v(" "),t("p",{staticClass:"info-note"},[e._v("\n\t\t\t"+e._s(e.t("theming","If an app is not enabled for a user, the next app with lower priority is used."))+"\n\t\t")]),e._v(" "),t("AppOrderSelector",{attrs:{value:e.selectedApps},on:{"update:value":function(t){e.selectedApps=t}}})]:e._e()],2)}),[],!1,null,"90f2e098",null).exports,{backgroundMime:Dn,canThemeIcons:Mn,color:In,docUrl:On,docUrlIcons:Pn,faviconMime:Ln,isThemable:Fn,legalNoticeUrl:Bn,logoheaderMime:Rn,logoMime:jn,name:Yn,notThemableErrorMessage:zn,privacyPolicyUrl:Un,slogan:Vn,url:Gn,userThemingDisabled:Xn,defaultApps:qn}=(0,r.C)("theming","adminThemingParameters"),Hn=[{name:"name",value:Yn,defaultValue:"Nextcloud",type:"text",displayName:t("theming","Name"),placeholder:t("theming","Name"),maxlength:250},{name:"url",value:Gn,defaultValue:"https://nextcloud.com",type:"url",displayName:t("theming","Web link"),placeholder:"https://…",maxlength:500},{name:"slogan",value:Vn,defaultValue:t("theming","a safe home for all your data"),type:"text",displayName:t("theming","Slogan"),placeholder:t("theming","Slogan"),maxlength:500}],Wn={name:"color",value:In,defaultValue:"#0082c9",displayName:t("theming","Color")},$n=[{name:"logo",mimeName:"logoMime",mimeValue:jn,defaultMimeValue:"",displayName:t("theming","Logo"),ariaLabel:t("theming","Upload new logo")},{name:"background",mimeName:"backgroundMime",mimeValue:Dn,defaultMimeValue:"",displayName:t("theming","Background and login image"),ariaLabel:t("theming","Upload new background and login image")}],Qn=[{name:"imprintUrl",value:Bn,defaultValue:"",type:"url",displayName:t("theming","Legal notice link"),placeholder:"https://…",maxlength:500},{name:"privacyUrl",value:Un,defaultValue:"",type:"url",displayName:t("theming","Privacy policy link"),placeholder:"https://…",maxlength:500}],Zn=[{name:"logoheader",mimeName:"logoheaderMime",mimeValue:Rn,defaultMimeValue:"",displayName:t("theming","Header logo"),ariaLabel:t("theming","Upload new header logo")},{name:"favicon",mimeName:"faviconMime",mimeValue:Ln,defaultMimeValue:"",displayName:t("theming","Favicon"),ariaLabel:t("theming","Upload new favicon")}],Jn={name:"disable-user-theming",value:Xn,defaultValue:!1,displayName:t("theming","User settings"),label:t("theming","Disable user theming"),description:t("theming","Although you can select and customize your instance, users can change their background and colors. If you want to enforce your customization, you can toggle this on.")},Kn={name:"AdminTheming",components:{AppMenuSection:kn,CheckboxField:M,ColorPickerField:U,FileInputField:Z,NcNoteCard:l.A,NcSettingsSection:s.A,TextField:te},emits:["update:theming"],textFields:Hn,data:()=>({textFields:Hn,colorPickerField:Wn,fileInputFields:$n,advancedTextFields:Qn,advancedFileInputFields:Zn,userThemingField:Jn,defaultApps:qn,canThemeIcons:Mn,docUrl:On,docUrlIcons:Pn,isThemable:Fn,notThemableErrorMessage:zn})};var ea=a(9408),ta={};ta.styleTagTransform=T(),ta.setAttributes=_(),ta.insert=w().bind(null,"head"),ta.domAPI=b(),ta.insertStyleElement=S(),v()(ea.A,ta),ea.A&&ea.A.locals&&ea.A.locals;const na=(0,D.A)(Kn,(function(){var e=this,t=e._self._c;return t("section",[t("NcSettingsSection",{attrs:{name:e.t("theming","Theming"),description:e.t("theming","Theming makes it possible to easily customize the look and feel of your instance and supported clients. This will be visible for all users."),"doc-url":e.docUrl,"data-admin-theming-settings":""}},[t("div",{staticClass:"admin-theming"},[e.isThemable?e._e():t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.notThemableErrorMessage))])]),e._v(" "),e._l(e.textFields,(function(n){return t("TextField",{key:n.name,attrs:{"data-admin-theming-setting-field":n.name,"default-value":n.defaultValue,"display-name":n.displayName,maxlength:n.maxlength,name:n.name,placeholder:n.placeholder,type:n.type,value:n.value},on:{"update:value":function(t){return e.$set(n,"value",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),t("ColorPickerField",{attrs:{name:e.colorPickerField.name,"default-value":e.colorPickerField.defaultValue,"display-name":e.colorPickerField.displayName,value:e.colorPickerField.value},on:{"update:value":function(t){return e.$set(e.colorPickerField,"value",t)},"update:theming":function(t){return e.$emit("update:theming")}}}),e._v(" "),e._l(e.fileInputFields,(function(n){return t("FileInputField",{key:n.name,attrs:{"aria-label":n.ariaLabel,"data-admin-theming-setting-file":n.name,"default-mime-value":n.defaultMimeValue,"display-name":n.displayName,"mime-name":n.mimeName,"mime-value":n.mimeValue,name:n.name},on:{"update:mimeValue":function(t){return e.$set(n,"mimeValue",t)},"update:mime-value":function(t){return e.$set(n,"mimeValue",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),t("div",{staticClass:"admin-theming__preview",attrs:{"data-admin-theming-preview":""}},[t("div",{staticClass:"admin-theming__preview-logo",attrs:{"data-admin-theming-preview-logo":""}})])],2)]),e._v(" "),t("NcSettingsSection",{attrs:{name:e.t("theming","Advanced options")}},[t("div",{staticClass:"admin-theming-advanced"},[e._l(e.advancedTextFields,(function(n){return t("TextField",{key:n.name,attrs:{name:n.name,value:n.value,"default-value":n.defaultValue,type:n.type,"display-name":n.displayName,placeholder:n.placeholder,maxlength:n.maxlength},on:{"update:value":function(t){return e.$set(n,"value",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),e._l(e.advancedFileInputFields,(function(n){return t("FileInputField",{key:n.name,attrs:{name:n.name,"mime-name":n.mimeName,"mime-value":n.mimeValue,"default-mime-value":n.defaultMimeValue,"display-name":n.displayName,"aria-label":n.ariaLabel},on:{"update:mimeValue":function(t){return e.$set(n,"mimeValue",t)},"update:mime-value":function(t){return e.$set(n,"mimeValue",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),t("CheckboxField",{attrs:{name:e.userThemingField.name,value:e.userThemingField.value,"default-value":e.userThemingField.defaultValue,"display-name":e.userThemingField.displayName,label:e.userThemingField.label,description:e.userThemingField.description,"data-admin-theming-setting-disable-user-theming":""},on:{"update:theming":function(t){return e.$emit("update:theming")}}}),e._v(" "),e.canThemeIcons?e._e():t("a",{attrs:{href:e.docUrlIcons,rel:"noreferrer noopener"}},[t("em",[e._v(e._s(e.t("theming","Install the ImageMagick PHP extension with support for SVG images to automatically generate favicons based on the uploaded logo and color.")))])])],2)]),e._v(" "),t("AppMenuSection",{attrs:{"default-apps":e.defaultApps},on:{"update:defaultApps":function(t){e.defaultApps=t},"update:default-apps":function(t){e.defaultApps=t}}})],1)}),[],!1,null,"e3cd61f0",null).exports;a.nc=btoa((0,o.do)()),i.Ay.prototype.OC=OC,i.Ay.prototype.t=t;const aa=new(i.Ay.extend(na));aa.$mount("#admin-theming"),aa.$on("update:theming",(()=>{[...document.head.querySelectorAll("link.theme")].forEach((e=>{const t=new URL(e.href);t.searchParams.set("v",Date.now());const n=e.cloneNode();n.href=t.toString(),n.onload=()=>e.remove(),document.head.append(n)}))}))},9408:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i),l=n(4417),s=n.n(l),c=new URL(n(92281),n.b),d=r()(o()),u=s()(c);d.push([e.id,`.admin-theming[data-v-e3cd61f0],.admin-theming-advanced[data-v-e3cd61f0]{display:flex;flex-direction:column;gap:8px 0}.admin-theming__preview[data-v-e3cd61f0]{width:230px;height:140px;background-size:cover;background-position:center;text-align:center;margin-top:10px;background-color:var(--color-primary-element-default);background-image:var(--image-background-plain, var(--image-background-default))}.admin-theming__preview-logo[data-v-e3cd61f0]{width:20%;height:20%;margin-top:20px;display:inline-block;background-size:contain;background-position:center;background-repeat:no-repeat;background-image:var(--image-logo, url(${u}))}`,"",{version:3,sources:["webpack://./apps/theming/src/AdminTheming.vue"],names:[],mappings:"AACA,yEAEC,YAAA,CACA,qBAAA,CACA,SAAA,CAIA,yCACC,WAAA,CACA,YAAA,CACA,qBAAA,CACA,0BAAA,CACA,iBAAA,CACA,eAAA,CAIA,qDAAA,CAKA,+EAAA,CAEA,8CACC,SAAA,CACA,UAAA,CACA,eAAA,CACA,oBAAA,CACA,uBAAA,CACA,0BAAA,CACA,2BAAA,CACA,2EAAA",sourcesContent:["\n.admin-theming,\n.admin-theming-advanced {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px 0;\n}\n\n.admin-theming {\n\t&__preview {\n\t\twidth: 230px;\n\t\theight: 140px;\n\t\tbackground-size: cover;\n\t\tbackground-position: center;\n\t\ttext-align: center;\n\t\tmargin-top: 10px;\n\t\t/* This is basically https://github.com/nextcloud/server/blob/master/core/css/guest.css\n\t\t But without the user variables. That way the admin can preview the render as guest*/\n\t\t/* As guest, there is no user color color-background-plain */\n\t\tbackground-color: var(--color-primary-element-default);\n\t\t/* As guest, there is no user background (--image-background)\n\t\t1. Empty background if defined\n\t\t2. Else default background\n\t\t3. Finally default gradient (should not happened, the background is always defined anyway) */\n\t\tbackground-image: var(--image-background-plain, var(--image-background-default));\n\n\t\t&-logo {\n\t\t\twidth: 20%;\n\t\t\theight: 20%;\n\t\t\tmargin-top: 20px;\n\t\t\tdisplay: inline-block;\n\t\t\tbackground-size: contain;\n\t\t\tbackground-position: center;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-image: var(--image-logo, url('../../../core/img/logo/logo.svg'));\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const p=d},12467:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".order-selector[data-v-76d01da8]{width:max-content;min-width:260px}","",{version:3,sources:["webpack://./apps/theming/src/components/AppOrderSelector.vue"],names:[],mappings:"AACA,iCACC,iBAAA,CACA,eAAA",sourcesContent:["\n.order-selector {\n\twidth: max-content;\n\tmin-width: 260px; // align with NcSelect\n}\n"],sourceRoot:""}]);const l=r},12182:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".order-selector-element[data-v-081ebc45]{list-style:none;display:flex;flex-direction:row;align-items:center;gap:12px;padding-inline:12px}.order-selector-element[data-v-081ebc45]:hover{background-color:var(--color-background-hover);border-radius:var(--border-radius-large)}.order-selector-element--disabled[data-v-081ebc45]{border-color:var(--color-text-maxcontrast);color:var(--color-text-maxcontrast)}.order-selector-element--disabled .order-selector-element__icon[data-v-081ebc45]{opacity:75%}.order-selector-element__actions[data-v-081ebc45]{flex:0 0;display:flex;flex-direction:row;gap:6px}.order-selector-element__label[data-v-081ebc45]{flex:1 1;text-overflow:ellipsis;overflow:hidden}.order-selector-element__placeholder[data-v-081ebc45]{height:44px;width:44px}.order-selector-element__icon[data-v-081ebc45]{filter:var(--background-invert-if-bright)}","",{version:3,sources:["webpack://./apps/theming/src/components/AppOrderSelectorElement.vue"],names:[],mappings:"AACA,yCAEC,eAAA,CAEA,YAAA,CACA,kBAAA,CACA,kBAAA,CAEA,QAAA,CACA,mBAAA,CAEA,+CACC,8CAAA,CACA,wCAAA,CAGD,mDACC,0CAAA,CACA,mCAAA,CAEA,iFACC,WAAA,CAIF,kDACC,QAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CAGD,gDACC,QAAA,CACA,sBAAA,CACA,eAAA,CAGD,sDACC,WAAA,CACA,UAAA,CAGD,+CACC,yCAAA",sourcesContent:["\n.order-selector-element {\n\t// hide default styling\n\tlist-style: none;\n\t// Align children\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\t// Spacing\n\tgap: 12px;\n\tpadding-inline: 12px;\n\n\t&:hover {\n\t\tbackground-color: var(--color-background-hover);\n\t\tborder-radius: var(--border-radius-large);\n\t}\n\n\t&--disabled {\n\t\tborder-color: var(--color-text-maxcontrast);\n\t\tcolor: var(--color-text-maxcontrast);\n\n\t\t.order-selector-element__icon {\n\t\t\topacity: 75%;\n\t\t}\n\t}\n\n\t&__actions {\n\t\tflex: 0 0;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tgap: 6px;\n\t}\n\n\t&__label {\n\t\tflex: 1 1;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t&__placeholder {\n\t\theight: 44px;\n\t\twidth: 44px;\n\t}\n\n\t&__icon {\n\t\tfilter: var(--background-invert-if-bright);\n\t}\n}\n"],sourceRoot:""}]);const l=r},17446:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,"h3[data-v-90f2e098],h4[data-v-90f2e098]{font-weight:bold}h4[data-v-90f2e098],h5[data-v-90f2e098]{margin-block-start:12px}.info-note[data-v-90f2e098]{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/AppMenuSection.vue"],names:[],mappings:"AACA,wCACC,gBAAA,CAED,wCACC,uBAAA,CAGD,4BACC,mCAAA",sourcesContent:["\nh3, h4 {\n\tfont-weight: bold;\n}\nh4, h5 {\n\tmargin-block-start: 12px;\n}\n\n.info-note {\n\tcolor: var(--color-text-maxcontrast);\n}\n"],sourceRoot:""}]);const l=r},36728:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-c41a3e80]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-c41a3e80]{display:flex;gap:0 4px}.field__description[data-v-c41a3e80]{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/CheckboxField.vue"],names:[],mappings:"AAsBA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCzBD,qCACC,mCAAA",sourcesContent:["/**\n * @copyright 2022 Christopher Ng <chrng8@gmail.com>\n *\n * @author Christopher Ng <chrng8@gmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n.field {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px 0;\n\n\t&__row {\n\t\tdisplay: flex;\n\t\tgap: 0 4px;\n\t}\n}\n","\n@import './shared/field.scss';\n\n.field {\n\t&__description {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n}\n"],sourceRoot:""}]);const l=r},47937:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-25e8f76e]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-25e8f76e]{display:flex;gap:0 4px}.field__color-preview[data-v-25e8f76e]{width:var(--default-clickable-area);border-radius:var(--border-radius-large);background-color:var(--color-primary-default)}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/ColorPickerField.vue"],names:[],mappings:"AAsBA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCzBD,uCACC,mCAAA,CACA,wCAAA,CACA,6CAAA",sourcesContent:["/**\n * @copyright 2022 Christopher Ng <chrng8@gmail.com>\n *\n * @author Christopher Ng <chrng8@gmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n.field {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px 0;\n\n\t&__row {\n\t\tdisplay: flex;\n\t\tgap: 0 4px;\n\t}\n}\n","\n@import './shared/field.scss';\n\n.field {\n\t&__color-preview {\n\t\twidth: var(--default-clickable-area);\n\t\tborder-radius: var(--border-radius-large);\n\t\tbackground-color: var(--color-primary-default);\n\t}\n}\n"],sourceRoot:""}]);const l=r},9710:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-36abeca7]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-36abeca7]{display:flex;gap:0 4px}.field__loading-icon[data-v-36abeca7]{width:44px;height:44px}.field__preview[data-v-36abeca7]{width:70px;height:70px;background-size:contain;background-position:center;background-repeat:no-repeat;margin:10px 0}.field__preview--logoheader[data-v-36abeca7]{background-image:var(--image-logoheader)}.field__preview--favicon[data-v-36abeca7]{background-image:var(--image-favicon)}input[type=file][data-v-36abeca7]{display:none}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/FileInputField.vue"],names:[],mappings:"AAsBA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCzBD,sCACC,UAAA,CACA,WAAA,CAGD,iCACC,UAAA,CACA,WAAA,CACA,uBAAA,CACA,0BAAA,CACA,2BAAA,CACA,aAAA,CAEA,6CACC,wCAAA,CAGD,0CACC,qCAAA,CAKH,kCACC,YAAA",sourcesContent:["/**\n * @copyright 2022 Christopher Ng <chrng8@gmail.com>\n *\n * @author Christopher Ng <chrng8@gmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n.field {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px 0;\n\n\t&__row {\n\t\tdisplay: flex;\n\t\tgap: 0 4px;\n\t}\n}\n","\n@import './shared/field.scss';\n\n.field {\n\t&__loading-icon {\n\t\twidth: 44px;\n\t\theight: 44px;\n\t}\n\n\t&__preview {\n\t\twidth: 70px;\n\t\theight: 70px;\n\t\tbackground-size: contain;\n\t\tbackground-position: center;\n\t\tbackground-repeat: no-repeat;\n\t\tmargin: 10px 0;\n\n\t\t&--logoheader {\n\t\t\tbackground-image: var(--image-logoheader);\n\t\t}\n\n\t\t&--favicon {\n\t\t\tbackground-image: var(--image-favicon);\n\t\t}\n\t}\n}\n\ninput[type=\"file\"] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const l=r},94087:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-31f08db0]{max-width:400px}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/TextField.vue"],names:[],mappings:"AACA,wBACC,eAAA",sourcesContent:["\n.field {\n\tmax-width: 400px;\n}\n"],sourceRoot:""}]);const l=r},92281:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjEyOCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMjU2IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTI4IDdjLTI1Ljg3MSAwLTQ3LjgxNyAxNy40ODUtNTQuNzEzIDQxLjIwOS01Ljk3OTUtMTIuNDYxLTE4LjY0Mi0yMS4yMDktMzMuMjg3LTIxLjIwOS0yMC4zMDQgMC0zNyAxNi42OTYtMzcgMzdzMTYuNjk2IDM3IDM3IDM3YzE0LjY0NSAwIDI3LjMwOC04Ljc0ODEgMzMuMjg3LTIxLjIwOSA2Ljg5NTcgMjMuNzI0IDI4Ljg0MiA0MS4yMDkgNTQuNzEzIDQxLjIwOXM0Ny44MTctMTcuNDg1IDU0LjcxMy00MS4yMDljNS45Nzk1IDEyLjQ2MSAxOC42NDIgMjEuMjA5IDMzLjI4NyAyMS4yMDkgMjAuMzA0IDAgMzctMTYuNjk2IDM3LTM3cy0xNi42OTYtMzctMzctMzdjLTE0LjY0NSAwLTI3LjMwOCA4Ljc0ODEtMzMuMjg3IDIxLjIwOS02Ljg5NTctMjMuNzI0LTI4Ljg0Mi00MS4yMDktNTQuNzEzLTQxLjIwOXptMCAyMmMxOS40NiAwIDM1IDE1LjU0IDM1IDM1cy0xNS41NCAzNS0zNSAzNS0zNS0xNS41NC0zNS0zNSAxNS41NC0zNSAzNS0zNXptLTg4IDIwYzguNDE0NiAwIDE1IDYuNTg1NCAxNSAxNXMtNi41ODU0IDE1LTE1IDE1LTE1LTYuNTg1NC0xNS0xNSA2LjU4NTQtMTUgMTUtMTV6bTE3NiAwYzguNDE0NiAwIDE1IDYuNTg1NCAxNSAxNXMtNi41ODU0IDE1LTE1IDE1LTE1LTYuNTg1NC0xNS0xNSA2LjU4NTQtMTUgMTUtMTV6IiBjb2xvcj0iIzAwMDAwMCIgZmlsbD0iI2ZmZiIgc3R5bGU9Ii1pbmtzY2FwZS1zdHJva2U6bm9uZSIvPjwvc3ZnPgo="}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=o,e=[],r.O=(t,n,a,o)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){n=e[d][0],a=e[d][1],o=e[d][2];for(var l=!0,s=0;s<n.length;s++)(!1&o||i>=o)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(l=!1,o<i&&(i=o));if(l){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,a,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>e+"-"+e+".js?v="+{3747:"a0c35d7fa3efb5b66f6c",5662:"d1f20e62402d8be29948"}[e],r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="nextcloud:",r.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+o){l=u;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",a+o),l.src=e),n[e]=[t];var p=(t,a)=>{l.onerror=l.onload=null,clearTimeout(h);var o=n[e];if(delete n[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(a))),t)return t(a)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=1320,(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{r.b=document.baseURI||self.location.href;var e={1320:0};r.f.j=(t,n)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var o=new Promise(((n,o)=>a=e[t]=[n,o]));n.push(a[2]=o);var i=r.p+r.u(t),l=new Error;r.l(i,(n=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,a[1](l)}}),"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var a,o,i=n[0],l=n[1],s=n[2],c=0;if(i.some((t=>0!==e[t]))){for(a in l)r.o(l,a)&&(r.m[a]=l[a]);if(s)var d=s(r)}for(t&&t(n);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(d)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.nc=void 0;var l=r.O(void 0,[4208],(()=>r(56085)));l=r.O(l)})(); -//# sourceMappingURL=theming-admin-theming.js.map?v=b030563c8862166de754
\ No newline at end of file +(()=>{"use strict";var e,n,a,o={56085:(e,n,a)=>{var o=a(92457),i=a(85471),r=a(38613),l=a(12256),s=a(88837),c=a(32073),d=a(26287),u=a(99498);const p=["color","logo","background","logoheader","favicon","disable-user-theming"],h={emits:["update:theming"],data:()=>({showSuccess:!1,errorMessage:""}),computed:{id(){return"admin-theming-".concat(this.name)}},methods:{reset(){this.showSuccess=!1,this.errorMessage=""},handleSuccess(){this.showSuccess=!0,setTimeout((()=>{this.showSuccess=!1}),2e3),p.includes(this.name)&&this.$emit("update:theming")}}},m={mixins:[h],watch:{value(e){this.localValue=e}},data(){return{localValue:this.value}},methods:{async save(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/updateStylesheet"),t=!0===this.localValue?"yes":!1===this.localValue?"no":this.localValue;try{await d.A.post(e,{setting:this.name,value:t}),this.$emit("update:value",this.localValue),this.handleSuccess()}catch(e){var n;this.errorMessage=null===(n=e.response.data.data)||void 0===n?void 0:n.message}},async undo(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/undoChanges");try{await d.A.post(e,{setting:this.name}),this.$emit("update:value",this.defaultValue),this.handleSuccess()}catch(e){var t;this.errorMessage=null===(t=e.response.data.data)||void 0===t?void 0:t.message}}}},g={name:"CheckboxField",components:{NcCheckboxRadioSwitch:c.A,NcNoteCard:l.A},mixins:[m],props:{name:{type:String,required:!0},value:{type:Boolean,required:!0},defaultValue:{type:Boolean,required:!0},displayName:{type:String,required:!0},label:{type:String,required:!0},description:{type:String,required:!0}}};var f=a(85072),v=a.n(f),A=a(97825),b=a.n(A),y=a(77659),w=a.n(y),C=a(55056),_=a.n(C),x=a(10540),S=a.n(x),N=a(41113),T=a.n(N),E=a(36728),k={};k.styleTagTransform=T(),k.setAttributes=_(),k.insert=w().bind(null,"head"),k.domAPI=b(),k.insertStyleElement=S(),v()(E.A,k),E.A&&E.A.locals&&E.A.locals;var D=a(14486);const M=(0,D.A)(g,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("label",{attrs:{for:e.id}},[e._v(e._s(e.displayName))]),e._v(" "),t("div",{staticClass:"field__row"},[t("NcCheckboxRadioSwitch",{attrs:{type:"switch",id:e.id,checked:e.localValue},on:{"update:checked":[function(t){e.localValue=t},e.save]}},[e._v("\n\t\t\t"+e._s(e.label)+"\n\t\t")])],1),e._v(" "),t("p",{staticClass:"field__description"},[e._v(e._s(e.description))]),e._v(" "),e.errorMessage?t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.errorMessage))])]):e._e()],1)}),[],!1,null,"c41a3e80",null).exports;var I=a(17334),O=a(54576),P=a(15360);const L={name:"UndoVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},F=(0,D.A)(L,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon undo-variant-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,B={name:"PaletteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},R=(0,D.A)(B,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon palette-icon",attrs:{"aria-hidden":!e.title||null,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,j={name:"ColorPickerField",components:{NcButton:O.A,NcColorPicker:P.N,NcNoteCard:l.A,Undo:F,Palette:R},mixins:[m],props:{name:{type:String,required:!0},value:{type:String,required:!0},defaultValue:{type:String,required:!0},displayName:{type:String,required:!0}},methods:{debounceSave:(0,I.debounce)((async function(){await this.save()}),200)}};var Y=a(47937),z={};z.styleTagTransform=T(),z.setAttributes=_(),z.insert=w().bind(null,"head"),z.domAPI=b(),z.insertStyleElement=S(),v()(Y.A,z),Y.A&&Y.A.locals&&Y.A.locals;const U=(0,D.A)(j,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("label",{attrs:{for:e.id}},[e._v(e._s(e.displayName))]),e._v(" "),t("div",{staticClass:"field__row"},[t("NcColorPicker",{attrs:{value:e.localValue,"advanced-fields":!0,"data-admin-theming-setting-primary-color-picker":""},on:{"update:value":[function(t){e.localValue=t},e.debounceSave]}},[t("NcButton",{attrs:{type:"secondary",id:e.id},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Palette",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t\t\t"+e._s(e.t("theming","Change color"))+"\n\t\t\t")])],1),e._v(" "),t("div",{staticClass:"field__color-preview",attrs:{"data-admin-theming-setting-primary-color":""}}),e._v(" "),e.value!==e.defaultValue?t("NcButton",{attrs:{type:"tertiary","aria-label":e.t("theming","Reset to default"),"data-admin-theming-setting-primary-color-reset":""},on:{click:e.undo},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Undo",{attrs:{size:20}})]},proxy:!0}],null,!1,33666776)}):e._e()],1),e._v(" "),e.errorMessage?t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.errorMessage))])]):e._e()],1)}),[],!1,null,"25e8f76e",null).exports;var V=a(69977),G=a(11037),X=a(45821);const{allowedMimeTypes:q}=(0,r.C)("theming","adminThemingParameters",{}),H={name:"FileInputField",components:{Delete:G.A,NcButton:O.A,NcLoadingIcon:V.A,NcNoteCard:l.A,Undo:F,Upload:X.A},mixins:[h],props:{name:{type:String,required:!0},mimeName:{type:String,required:!0},mimeValue:{type:String,required:!0},defaultMimeValue:{type:String,required:!0},displayName:{type:String,required:!0},ariaLabel:{type:String,required:!0}},data(){return{showLoading:!1,acceptMime:(q[this.name]||["image/jpeg","image/png","image/gif","image/webp"]).join(",")}},computed:{showReset(){return this.mimeValue!==this.defaultMimeValue},showRemove(){if("background"===this.name){if(this.mimeValue.startsWith("image/"))return!0;if(this.mimeValue===this.defaultMimeValue)return!0}return!1}},methods:{activateLocalFilePicker(){this.reset(),this.$refs.input.value=null,this.$refs.input.click()},async onChange(e){const t=e.target.files[0],n=new FormData;n.append("key",this.name),n.append("image",t);const a=(0,u.Jv)("/apps/theming/ajax/uploadImage");try{this.showLoading=!0,await d.A.post(a,n),this.showLoading=!1,this.$emit("update:mime-value",t.type),this.handleSuccess()}catch(e){var o;this.showLoading=!1,this.errorMessage=null===(o=e.response.data.data)||void 0===o?void 0:o.message}},async undo(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/undoChanges");try{await d.A.post(e,{setting:this.mimeName}),this.$emit("update:mime-value",this.defaultMimeValue),this.handleSuccess()}catch(e){var t;this.errorMessage=null===(t=e.response.data.data)||void 0===t?void 0:t.message}},async removeBackground(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/updateStylesheet");try{await d.A.post(e,{setting:this.mimeName,value:"backgroundColor"}),this.$emit("update:mime-value","backgroundColor"),this.handleSuccess()}catch(e){var t;this.errorMessage=null===(t=e.response.data.data)||void 0===t?void 0:t.message}}}},W=H;var $=a(9710),Q={};Q.styleTagTransform=T(),Q.setAttributes=_(),Q.insert=w().bind(null,"head"),Q.domAPI=b(),Q.insertStyleElement=S(),v()($.A,Q),$.A&&$.A.locals&&$.A.locals;const Z=(0,D.A)(W,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("label",{attrs:{for:e.id}},[e._v(e._s(e.displayName))]),e._v(" "),t("div",{staticClass:"field__row"},[t("NcButton",{attrs:{type:"secondary",id:e.id,"aria-label":e.ariaLabel,"data-admin-theming-setting-file-picker":""},on:{click:e.activateLocalFilePicker},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Upload",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t\t"+e._s(e.t("theming","Upload"))+"\n\t\t")]),e._v(" "),e.showReset?t("NcButton",{attrs:{type:"tertiary","aria-label":e.t("theming","Reset to default"),"data-admin-theming-setting-file-reset":""},on:{click:e.undo},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Undo",{attrs:{size:20}})]},proxy:!0}],null,!1,33666776)}):e._e(),e._v(" "),e.showRemove?t("NcButton",{attrs:{type:"tertiary","aria-label":e.t("theming","Remove background image"),"data-admin-theming-setting-file-remove":""},on:{click:e.removeBackground},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Delete",{attrs:{size:20}})]},proxy:!0}],null,!1,2705356561)}):e._e(),e._v(" "),e.showLoading?t("NcLoadingIcon",{staticClass:"field__loading-icon",attrs:{size:20}}):e._e()],1),e._v(" "),"logoheader"!==e.name&&"favicon"!==e.name||e.mimeValue===e.defaultMimeValue?e._e():t("div",{staticClass:"field__preview",class:{"field__preview--logoheader":"logoheader"===e.name,"field__preview--favicon":"favicon"===e.name}}),e._v(" "),e.errorMessage?t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.errorMessage))])]):e._e(),e._v(" "),t("input",{ref:"input",attrs:{accept:e.acceptMime,type:"file"},on:{change:e.onChange}})],1)}),[],!1,null,"36abeca7",null).exports,J={name:"TextField",components:{NcTextField:a(82182).A},mixins:[m],props:{name:{type:String,required:!0},value:{type:String,required:!0},defaultValue:{type:String,required:!0},type:{type:String,required:!0},displayName:{type:String,required:!0},placeholder:{type:String,required:!0},maxlength:{type:Number,required:!0}}};var K=a(94087),ee={};ee.styleTagTransform=T(),ee.setAttributes=_(),ee.insert=w().bind(null,"head"),ee.domAPI=b(),ee.insertStyleElement=S(),v()(K.A,ee),K.A&&K.A.locals&&K.A.locals;const te=(0,D.A)(J,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"field"},[t("NcTextField",{attrs:{value:e.localValue,label:e.displayName,placeholder:e.placeholder,type:e.type,maxlength:e.maxlength,spellcheck:!1,success:e.showSuccess,error:Boolean(e.errorMessage),"helper-text":e.errorMessage,"show-trailing-button":e.value!==e.defaultValue,"trailing-button-icon":"undo"},on:{"update:value":function(t){e.localValue=t},"trailing-button-click":e.undo,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.save.apply(null,arguments)},blur:e.save}})],1)}),[],!1,null,"31f08db0",null).exports;var ne=a(85168),ae=a(53334),oe=a(67607);function ie(e){return"function"==typeof e?e():(0,i.R1)(e)}i.Ay.util.warn,a(96763);const re="undefined"!=typeof window&&"undefined"!=typeof document;function le(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),Object.prototype.toString;const se=/\B([A-Z])/g,ce=(le((e=>e.replace(se,"-$1").toLowerCase())),/-(\w)/g);le((e=>e.replace(ce,((e,t)=>t?t.toUpperCase():"")))),i.Ay.util.warn,a(96763),re&&window;const de=re?window.document:void 0;function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(){return he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},he.apply(this,arguments)}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){pe(e,t,n[t])}))}return e}function ge(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}re&&window.navigator,re&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY;var fe=ge(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ve=ge(/Edge/i),Ae=ge(/firefox/i),be=ge(/safari/i)&&!ge(/chrome/i)&&!ge(/android/i),ye=ge(/iP(ad|od|hone)/i),we=ge(/chrome/i)&&ge(/android/i),Ce={capture:!1,passive:!1};function _e(e,t,n){e.addEventListener(t,n,!fe&&Ce)}function xe(e,t,n){e.removeEventListener(t,n,!fe&&Ce)}function Se(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Ne(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Te(e,t,n,a){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Se(e,t):Se(e,t))||a&&e===n)return e;if(e===n)break}while(e=Ne(e))}return null}var Ee,ke=/\s+/g;function De(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(ke," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(ke," ")}}function Me(e,t,n){var a=e&&e.style;if(a){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=n+("string"==typeof n?"":"px")}}function Ie(e,t){var n="";if("string"==typeof e)n=e;else do{var a=Me(e,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Oe(e,t,n){if(e){var a=e.getElementsByTagName(t),o=0,i=a.length;if(n)for(;o<i;o++)n(a[o],o);return a}return[]}function Pe(){return document.scrollingElement||document.documentElement}function Le(e,t,n,a,o){if(e.getBoundingClientRect||e===window){var i,r,l,s,c,d,u;if(e!==window&&e!==Pe()?(r=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,d=i.height,u=i.width):(r=0,l=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!fe))do{if(o&&o.getBoundingClientRect&&("none"!==Me(o,"transform")||n&&"static"!==Me(o,"position"))){var p=o.getBoundingClientRect();r-=p.top+parseInt(Me(o,"border-top-width")),l-=p.left+parseInt(Me(o,"border-left-width")),s=r+i.height,c=l+i.width;break}}while(o=o.parentNode);if(a&&e!==window){var h=Ie(o||e),m=h&&h.a,g=h&&h.d;h&&(s=(r/=g)+(d/=g),c=(l/=m)+(u/=m))}return{top:r,left:l,bottom:s,right:c,width:u,height:d}}}function Fe(e,t,n){for(var a=ze(e,!0),o=Le(e)[t];a;){var i=Le(a)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return a;if(a===Pe())break;a=ze(a,!1)}return!1}function Be(e,t,n){for(var a=0,o=0,i=e.children;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Ut.ghost&&i[o]!==Ut.dragged&&Te(i[o],n.draggable,e,!1)){if(a===t)return i[o];a++}o++}return null}function Re(e,t){for(var n=e.lastElementChild;n&&(n===Ut.ghost||"none"===Me(n,"display")||t&&!Se(n,t));)n=n.previousElementSibling;return n||null}function je(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ut.clone||t&&!Se(e,t)||n++;return n}function Ye(e){var t=0,n=0,a=Pe();if(e)do{var o=Ie(e),i=o.a,r=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*r}while(e!==a&&(e=e.parentNode));return[t,n]}function ze(e,t){if(!e||!e.getBoundingClientRect)return Pe();var n=e,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Me(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Pe();if(a||t)return n;a=!0}}}while(n=n.parentNode);return Pe()}function Ue(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Ve(e,t){return function(){if(!Ee){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Ee=setTimeout((function(){Ee=void 0}),t)}}}function Ge(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Xe(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var qe="Sortable"+(new Date).getTime();var He=[],We={initializeByDefault:!0},$e={mount:function(e){for(var t in We)We.hasOwnProperty(t)&&!(t in e)&&(e[t]=We[t]);He.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=e+"Global";He.forEach((function(a){t[a.pluginName]&&(t[a.pluginName][o]&&t[a.pluginName][o](me({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](me({sortable:t},n)))}))},initializePlugins:function(e,t,n,a){for(var o in He.forEach((function(a){var o=a.pluginName;if(e.options[o]||a.initializeByDefault){var i=new a(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,he(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return He.forEach((function(a){"function"==typeof a.eventProperties&&he(n,a.eventProperties.call(t[a.pluginName],e))})),n},modifyOption:function(e,t,n){var a;return He.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(a=o.optionListeners[t].call(e[o.pluginName],n))})),a}};var Qe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,o=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["evt"]);$e.pluginEvent.bind(Ut)(e,t,me({dragEl:Je,parentEl:Ke,ghostEl:et,rootEl:tt,nextEl:nt,lastDownEl:at,cloneEl:ot,cloneHidden:it,dragStarted:At,putSortable:ut,activeSortable:Ut.active,originalEvent:a,oldIndex:rt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:ct,hideGhostForTarget:Rt,unhideGhostForTarget:jt,cloneNowHidden:function(){it=!0},cloneNowShown:function(){it=!1},dispatchSortableEvent:function(e){Ze({sortable:t,name:e,originalEvent:a})}},o))};function Ze(e){!function(e){var t=e.sortable,n=e.rootEl,a=e.name,o=e.targetEl,i=e.cloneEl,r=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[qe]){var g,f=t.options,v="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||fe||ve?(g=document.createEvent("Event")).initEvent(a,!0,!0):g=new CustomEvent(a,{bubbles:!0,cancelable:!0}),g.to=r||n,g.from=l||n,g.item=o||n,g.clone=i,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=u,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var A=me({},m,$e.getEventProperties(a,t));for(var b in A)g[b]=A[b];n&&n.dispatchEvent(g),f[v]&&f[v].call(t,g)}}(me({putSortable:ut,cloneEl:ot,targetEl:Je,rootEl:tt,oldIndex:rt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:ct},e))}var Je,Ke,et,tt,nt,at,ot,it,rt,lt,st,ct,dt,ut,pt,ht,mt,gt,ft,vt,At,bt,yt,wt,Ct,_t=!1,xt=!1,St=[],Nt=!1,Tt=!1,Et=[],kt=!1,Dt=[],Mt="undefined"!=typeof document,It=ye,Ot=ve||fe?"cssFloat":"float",Pt=Mt&&!we&&!ye&&"draggable"in document.createElement("div"),Lt=function(){if(Mt){if(fe)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ft=function(e,t){var n=Me(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Be(e,0,t),i=Be(e,1,t),r=o&&Me(o),l=i&&Me(i),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Le(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Le(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&r.float&&"none"!==r.float){var d="left"===r.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==d?"horizontal":"vertical"}return o&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||s>=a&&"none"===n[Ot]||i&&"none"===n[Ot]&&s+c>a)?"vertical":"horizontal"},Bt=function(e){function t(e,n){return function(a,o,i,r){var l=a.options.group.name&&o.options.group.name&&a.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(a,o,i,r),n)(a,o,i,r);var s=(n?a:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},a=e.group;a&&"object"==ue(a)||(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Rt=function(){!Lt&&et&&Me(et,"display","none")},jt=function(){!Lt&&et&&Me(et,"display","")};Mt&&document.addEventListener("click",(function(e){if(xt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xt=!1,!1}),!0);var Yt=function(e){if(Je){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,St.some((function(e){if(!Re(e)){var t=Le(e),n=e[qe].options.emptyInsertThreshold,a=o>=t.left-n&&o<=t.right+n,l=i>=t.top-n&&i<=t.bottom+n;return n&&a&&l?r=e:void 0}})),r);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[qe]._onDragOver(n)}}var o,i,r},zt=function(e){Je&&Je.parentNode[qe]._isOutsideThisEl(e.target)};function Ut(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=he({},t),e[qe]=this;var n,a,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ft(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ut.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in $e.initializePlugins(this,e,o),o)!(i in t)&&(t[i]=o[i]);for(var r in Bt(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Pt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_e(e,"pointerdown",this._onTapStart):(_e(e,"mousedown",this._onTapStart),_e(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_e(e,"dragover",this),_e(e,"dragenter",this)),St.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),he(this,(a=[],{captureAnimationState:function(){a=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Me(e,"display")&&e!==Ut.ghost){a.push({target:e,rect:Le(e)});var t=me({},a[a.length-1].rect);if(e.thisAnimationDuration){var n=Ie(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){a.push(e)},removeAnimationState:function(e){a.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[n][a])return Number(n);return-1}(a,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,i=0;a.forEach((function(e){var n=0,a=e.target,r=a.fromRect,l=Le(a),s=a.prevFromRect,c=a.prevToRect,d=e.rect,u=Ie(a,!0);u&&(l.top-=u.f,l.left-=u.e),a.toRect=l,a.thisAnimationDuration&&Ue(s,l)&&!Ue(r,l)&&(d.top-l.top)/(d.left-l.left)==(r.top-l.top)/(r.left-l.left)&&(n=function(e,t,n,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*a.animation}(d,s,c,t.options)),Ue(l,r)||(a.prevFromRect=r,a.prevToRect=l,n||(n=t.options.animation),t.animate(a,d,l,n)),n&&(o=!0,i=Math.max(i,n),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout((function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null}),n),a.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),a=[]},animate:function(e,t,n,a){if(a){Me(e,"transition",""),Me(e,"transform","");var o=Ie(this.el),i=o&&o.a,r=o&&o.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(r||1);e.animatingX=!!l,e.animatingY=!!s,Me(e,"transform","translate3d("+l+"px,"+s+"px,0)"),function(e){e.offsetWidth}(e),Me(e,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Me(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Me(e,"transition",""),Me(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),a)}}}))}function Vt(e,t,n,a,o,i,r,l){var s,c,d=e[qe],u=d.options.onMove;return!window.CustomEvent||fe||ve?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=a,s.related=o||t,s.relatedRect=i||Le(t),s.willInsertAfter=l,s.originalEvent=r,e.dispatchEvent(s),u&&(c=u.call(d,s,r)),c}function Gt(e){e.draggable=!1}function Xt(){kt=!1}function qt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,a=0;n--;)a+=t.charCodeAt(n);return a.toString(36)}function Ht(e){return setTimeout(e,0)}function Wt(e){return clearTimeout(e)}Ut.prototype={constructor:Ut,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(bt=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Je):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,o=a.preventOnFilter,i=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(r||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=a.filter;if(function(e){Dt.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var a=t[n];a.checked&&Dt.push(a)}}(n),!Je&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||a.disabled||s.isContentEditable||(l=Te(l,a.draggable,n,!1))&&l.animated||at===l)){if(rt=je(l),st=je(l,a.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Ze({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Qe("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(a){if(a=Te(s,a.trim(),n,!1))return Ze({sortable:t,rootEl:a,name:"filter",targetEl:l,fromEl:n,toEl:n}),Qe("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());a.handle&&!Te(s,a.handle,n,!1)||this._prepareDragStart(e,r,l)}}},_prepareDragStart:function(e,t,n){var a,o=this,i=o.el,r=o.options,l=i.ownerDocument;if(n&&!Je&&n.parentNode===i){var s=Le(n);if(tt=i,Ke=(Je=n).parentNode,nt=Je.nextSibling,at=n,dt=r.group,Ut.dragged=Je,pt={target:Je,clientX:(t||e).clientX,clientY:(t||e).clientY},ft=pt.clientX-s.left,vt=pt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Je.style["will-change"]="all",a=function(){Qe("delayEnded",o,{evt:e}),Ut.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Ae&&o.nativeDraggable&&(Je.draggable=!0),o._triggerDragStart(e,t),Ze({sortable:o,name:"choose",originalEvent:e}),De(Je,r.chosenClass,!0))},r.ignore.split(",").forEach((function(e){Oe(Je,e.trim(),Gt)})),_e(l,"dragover",Yt),_e(l,"mousemove",Yt),_e(l,"touchmove",Yt),_e(l,"mouseup",o._onDrop),_e(l,"touchend",o._onDrop),_e(l,"touchcancel",o._onDrop),Ae&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Je.draggable=!0),Qe("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(ve||fe))a();else{if(Ut.eventCanceled)return void this._onDrop();_e(l,"mouseup",o._disableDelayedDrag),_e(l,"touchend",o._disableDelayedDrag),_e(l,"touchcancel",o._disableDelayedDrag),_e(l,"mousemove",o._delayedDragTouchMoveHandler),_e(l,"touchmove",o._delayedDragTouchMoveHandler),r.supportPointer&&_e(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Je&&Gt(Je),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._disableDelayedDrag),xe(e,"touchend",this._disableDelayedDrag),xe(e,"touchcancel",this._disableDelayedDrag),xe(e,"mousemove",this._delayedDragTouchMoveHandler),xe(e,"touchmove",this._delayedDragTouchMoveHandler),xe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_e(document,"pointermove",this._onTouchMove):_e(document,t?"touchmove":"mousemove",this._onTouchMove):(_e(Je,"dragend",this),_e(tt,"dragstart",this._onDragStart));try{document.selection?Ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(_t=!1,tt&&Je){Qe("dragStarted",this,{evt:t}),this.nativeDraggable&&_e(document,"dragover",zt);var n=this.options;!e&&De(Je,n.dragClass,!1),De(Je,n.ghostClass,!0),Ut.active=this,e&&this._appendGhost(),Ze({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ht){this._lastX=ht.clientX,this._lastY=ht.clientY,Rt();for(var e=document.elementFromPoint(ht.clientX,ht.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ht.clientX,ht.clientY))!==t;)t=e;if(Je.parentNode[qe]._isOutsideThisEl(e),t)do{if(t[qe]&&t[qe]._onDragOver({clientX:ht.clientX,clientY:ht.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);jt()}},_onTouchMove:function(e){if(pt){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=et&&Ie(et,!0),r=et&&i&&i.a,l=et&&i&&i.d,s=It&&Ct&&Ye(Ct),c=(o.clientX-pt.clientX+a.x)/(r||1)+(s?s[0]-Et[0]:0)/(r||1),d=(o.clientY-pt.clientY+a.y)/(l||1)+(s?s[1]-Et[1]:0)/(l||1);if(!Ut.active&&!_t){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(et){i?(i.e+=c-(mt||0),i.f+=d-(gt||0)):i={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Me(et,"webkitTransform",u),Me(et,"mozTransform",u),Me(et,"msTransform",u),Me(et,"transform",u),mt=c,gt=d,ht=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!et){var e=this.options.fallbackOnBody?document.body:tt,t=Le(Je,!0,It,!0,e),n=this.options;if(It){for(Ct=e;"static"===Me(Ct,"position")&&"none"===Me(Ct,"transform")&&Ct!==document;)Ct=Ct.parentNode;Ct!==document.body&&Ct!==document.documentElement?(Ct===document&&(Ct=Pe()),t.top+=Ct.scrollTop,t.left+=Ct.scrollLeft):Ct=Pe(),Et=Ye(Ct)}De(et=Je.cloneNode(!0),n.ghostClass,!1),De(et,n.fallbackClass,!0),De(et,n.dragClass,!0),Me(et,"transition",""),Me(et,"transform",""),Me(et,"box-sizing","border-box"),Me(et,"margin",0),Me(et,"top",t.top),Me(et,"left",t.left),Me(et,"width",t.width),Me(et,"height",t.height),Me(et,"opacity","0.8"),Me(et,"position",It?"absolute":"fixed"),Me(et,"zIndex","100000"),Me(et,"pointerEvents","none"),Ut.ghost=et,e.appendChild(et),Me(et,"transform-origin",ft/parseInt(et.style.width)*100+"% "+vt/parseInt(et.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,o=n.options;Qe("dragStart",this,{evt:e}),Ut.eventCanceled?this._onDrop():(Qe("setupClone",this),Ut.eventCanceled||((ot=Xe(Je)).draggable=!1,ot.style["will-change"]="",this._hideClone(),De(ot,this.options.chosenClass,!1),Ut.clone=ot),n.cloneId=Ht((function(){Qe("clone",n),Ut.eventCanceled||(n.options.removeCloneOnHide||tt.insertBefore(ot,Je),n._hideClone(),Ze({sortable:n,name:"clone"}))})),!t&&De(Je,o.dragClass,!0),t?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(xe(document,"mouseup",n._onDrop),xe(document,"touchend",n._onDrop),xe(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,Je)),_e(document,"drop",n),Me(Je,"transform","translateZ(0)")),_t=!0,n._dragStartId=Ht(n._dragStarted.bind(n,t,e)),_e(document,"selectstart",n),At=!0,be&&Me(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,a,o,i=this.el,r=e.target,l=this.options,s=l.group,c=Ut.active,d=dt===s,u=l.sort,p=ut||c,h=this,m=!1;if(!kt){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),r=Te(r,l.draggable,i,!0),E("dragOver"),Ut.eventCanceled)return m;if(Je.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return D(!1);if(xt=!1,c&&!l.disabled&&(d?u||(a=!tt.contains(Je)):ut===this||(this.lastPutMode=dt.checkPull(this,c,Je,e))&&s.checkPut(this,c,Je,e))){if(o="vertical"===this._getDirection(e,r),t=Le(Je),E("dragOverValid"),Ut.eventCanceled)return m;if(a)return Ke=tt,k(),this._hideClone(),E("revert"),Ut.eventCanceled||(nt?tt.insertBefore(Je,nt):tt.appendChild(Je)),D(!0);var g=Re(i,l.draggable);if(!g||function(e,t,n){var a=Le(Re(n.el,n.options.draggable));return t?e.clientX>a.right+10||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+10}(e,o,this)&&!g.animated){if(g===Je)return D(!1);if(g&&i===e.target&&(r=g),r&&(n=Le(r)),!1!==Vt(tt,i,Je,t,r,n,e,!!r))return k(),i.appendChild(Je),Ke=i,M(),D(!0)}else if(r.parentNode===i){n=Le(r);var f,v,A,b=Je.parentNode!==i,y=!function(e,t,n){var a=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,r=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return a===r||o===l||a+i/2===r+s/2}(Je.animated&&Je.toRect||t,r.animated&&r.toRect||n,o),w=o?"top":"left",C=Fe(r,"top","top")||Fe(Je,"top","top"),_=C?C.scrollTop:void 0;if(bt!==r&&(v=n[w],Nt=!1,Tt=!y&&l.invertSwap||b),f=function(e,t,n,a,o,i,r,l){var s=a?e.clientY:e.clientX,c=a?n.height:n.width,d=a?n.top:n.left,u=a?n.bottom:n.right,p=!1;if(!r)if(l&&wt<c*o){if(!Nt&&(1===yt?s>d+c*i/2:s<u-c*i/2)&&(Nt=!0),Nt)p=!0;else if(1===yt?s<d+wt:s>u-wt)return-yt}else if(s>d+c*(1-o)/2&&s<u-c*(1-o)/2)return function(e){return je(Je)<je(e)?1:-1}(t);return(p=p||r)&&(s<d+c*i/2||s>u-c*i/2)?s>d+c/2?1:-1:0}(e,r,n,o,y?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Tt,bt===r),0!==f){var x=je(Je);do{x-=f,A=Ke.children[x]}while(A&&("none"===Me(A,"display")||A===et))}if(0===f||A===r)return D(!1);bt=r,yt=f;var S=r.nextElementSibling,N=!1,T=Vt(tt,i,Je,t,r,n,e,N=1===f);if(!1!==T)return 1!==T&&-1!==T||(N=1===T),kt=!0,setTimeout(Xt,30),k(),N&&!S?i.appendChild(Je):r.parentNode.insertBefore(Je,N?S:r),C&&Ge(C,0,_-C.scrollTop),Ke=Je.parentNode,void 0===v||Tt||(wt=Math.abs(v-Le(r)[w])),M(),D(!0)}if(i.contains(Je))return D(!1)}return!1}function E(l,s){Qe(l,h,me({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:a,dragRect:t,targetRect:n,canSort:u,fromSortable:p,target:r,completed:D,onMove:function(n,a){return Vt(tt,i,Je,t,n,Le(n),e,a)},changed:M},s))}function k(){E("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function D(t){return E("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(h),h!==p&&(De(Je,ut?ut.options.ghostClass:c.options.ghostClass,!1),De(Je,l.ghostClass,!0)),ut!==h&&h!==Ut.active?ut=h:h===Ut.active&&ut&&(ut=null),p===h&&(h._ignoreWhileAnimating=r),h.animateAll((function(){E("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===Je&&!Je.animated||r===i&&!r.animated)&&(bt=null),l.dragoverBubble||e.rootEl||r===document||(Je.parentNode[qe]._isOutsideThisEl(e.target),!t&&Yt(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function M(){lt=je(Je),ct=je(Je,l.draggable),Ze({sortable:h,name:"change",toEl:i,newIndex:lt,newDraggableIndex:ct,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){xe(document,"mousemove",this._onTouchMove),xe(document,"touchmove",this._onTouchMove),xe(document,"pointermove",this._onTouchMove),xe(document,"dragover",Yt),xe(document,"mousemove",Yt),xe(document,"touchmove",Yt)},_offUpEvents:function(){var e=this.el.ownerDocument;xe(e,"mouseup",this._onDrop),xe(e,"touchend",this._onDrop),xe(e,"pointerup",this._onDrop),xe(e,"touchcancel",this._onDrop),xe(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;lt=je(Je),ct=je(Je,n.draggable),Qe("drop",this,{evt:e}),Ke=Je&&Je.parentNode,lt=je(Je),ct=je(Je,n.draggable),Ut.eventCanceled||(_t=!1,Tt=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wt(this.cloneId),Wt(this._dragStartId),this.nativeDraggable&&(xe(document,"drop",this),xe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),be&&Me(document.body,"user-select",""),Me(Je,"transform",""),e&&(At&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(tt===Ke||ut&&"clone"!==ut.lastPutMode)&&ot&&ot.parentNode&&ot.parentNode.removeChild(ot),Je&&(this.nativeDraggable&&xe(Je,"dragend",this),Gt(Je),Je.style["will-change"]="",At&&!_t&&De(Je,ut?ut.options.ghostClass:this.options.ghostClass,!1),De(Je,this.options.chosenClass,!1),Ze({sortable:this,name:"unchoose",toEl:Ke,newIndex:null,newDraggableIndex:null,originalEvent:e}),tt!==Ke?(lt>=0&&(Ze({rootEl:Ke,name:"add",toEl:Ke,fromEl:tt,originalEvent:e}),Ze({sortable:this,name:"remove",toEl:Ke,originalEvent:e}),Ze({rootEl:Ke,name:"sort",toEl:Ke,fromEl:tt,originalEvent:e}),Ze({sortable:this,name:"sort",toEl:Ke,originalEvent:e})),ut&&ut.save()):lt!==rt&<>=0&&(Ze({sortable:this,name:"update",toEl:Ke,originalEvent:e}),Ze({sortable:this,name:"sort",toEl:Ke,originalEvent:e})),Ut.active&&(null!=lt&&-1!==lt||(lt=rt,ct=st),Ze({sortable:this,name:"end",toEl:Ke,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Qe("nulling",this),tt=Je=Ke=et=nt=ot=at=it=pt=ht=At=lt=ct=rt=st=bt=yt=ut=dt=Ut.dragged=Ut.ghost=Ut.clone=Ut.active=null,Dt.forEach((function(e){e.checked=!0})),Dt.length=mt=gt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Je&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,a=0,o=n.length,i=this.options;a<o;a++)Te(e=n[a],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||qt(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,a){var o=n.children[a];Te(o,this.options.draggable,n,!1)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Te(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var a=$e.modifyOption(this,e,t);n[e]=void 0!==a?a:t,"group"===e&&Bt(n)},destroy:function(){Qe("destroy",this);var e=this.el;e[qe]=null,xe(e,"mousedown",this._onTapStart),xe(e,"touchstart",this._onTapStart),xe(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(xe(e,"dragover",this),xe(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),St.splice(St.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!it){if(Qe("hideClone",this),Ut.eventCanceled)return;Me(ot,"display","none"),this.options.removeCloneOnHide&&ot.parentNode&&ot.parentNode.removeChild(ot),it=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(it){if(Qe("showClone",this),Ut.eventCanceled)return;tt.contains(Je)&&!this.options.group.revertClone?tt.insertBefore(ot,Je):nt?tt.insertBefore(ot,nt):tt.appendChild(ot),this.options.group.revertClone&&this.animate(Je,ot),Me(ot,"display",""),it=!1}}else this._hideClone()}},Mt&&_e(document,"touchmove",(function(e){(Ut.active||_t)&&e.cancelable&&e.preventDefault()})),Ut.utils={on:_e,off:xe,css:Me,find:Oe,is:function(e,t){return!!Te(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Ve,closest:Te,toggleClass:De,clone:Xe,index:je,nextTick:Ht,cancelNextTick:Wt,detectDirection:Ft,getChild:Be},Ut.get=function(e){return e[qe]},Ut.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ut.utils=me({},Ut.utils,e.utils)),$e.mount(e)}))},Ut.create=function(e,t){return new Ut(e,t)},Ut.version="1.10.2";var $t,Qt,Zt,Jt,Kt,en,tn=[],nn=!1;function an(){tn.forEach((function(e){clearInterval(e.pid)})),tn=[]}function on(){clearInterval(en)}var rn=Ve((function(e,t,n,a){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=Pe(),d=!1;Qt!==n&&(Qt=n,an(),$t=t.scroll,o=t.scrollFn,!0===$t&&($t=ze(n,!0)));var u=0,p=$t;do{var h=p,m=Le(h),g=m.top,f=m.bottom,v=m.left,A=m.right,b=m.width,y=m.height,w=void 0,C=void 0,_=h.scrollWidth,x=h.scrollHeight,S=Me(h),N=h.scrollLeft,T=h.scrollTop;h===c?(w=b<_&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),C=y<x&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=b<_&&("auto"===S.overflowX||"scroll"===S.overflowX),C=y<x&&("auto"===S.overflowY||"scroll"===S.overflowY));var E=w&&(Math.abs(A-i)<=l&&N+b<_)-(Math.abs(v-i)<=l&&!!N),k=C&&(Math.abs(f-r)<=l&&T+y<x)-(Math.abs(g-r)<=l&&!!T);if(!tn[u])for(var D=0;D<=u;D++)tn[D]||(tn[D]={});tn[u].vx==E&&tn[u].vy==k&&tn[u].el===h||(tn[u].el=h,tn[u].vx=E,tn[u].vy=k,clearInterval(tn[u].pid),0==E&&0==k||(d=!0,tn[u].pid=setInterval(function(){a&&0===this.layer&&Ut.active._onTouchMove(Kt);var t=tn[this.layer].vy?tn[this.layer].vy*s:0,n=tn[this.layer].vx?tn[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(Ut.dragged.parentNode[qe],n,t,e,Kt,tn[this.layer].el)||Ge(tn[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==c&&(p=ze(p,!1)));nn=d}}),30),ln=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,r=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;r();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(d)&&(i("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function sn(){}function cn(){}sn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=Be(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ln},he(sn,{pluginName:"revertOnSpill"}),cn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ln},he(cn,{pluginName:"removeOnSpill"}),Ut.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_e(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_e(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_e(document,"touchmove",this._handleFallbackAutoScroll):_e(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):(xe(document,"pointermove",this._handleFallbackAutoScroll),xe(document,"touchmove",this._handleFallbackAutoScroll),xe(document,"mousemove",this._handleFallbackAutoScroll)),on(),an(),clearTimeout(Ee),Ee=void 0},nulling:function(){Kt=Qt=$t=nn=en=Zt=Jt=null,tn.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,a=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(a,o);if(Kt=e,t||ve||fe||be){rn(e,this.options,i,t);var r=ze(i,!0);!nn||en&&a===Zt&&o===Jt||(en&&on(),en=setInterval((function(){var i=ze(document.elementFromPoint(a,o),!0);i!==r&&(r=i,an()),rn(e,n.options,i,t)}),10),Zt=a,Jt=o)}else{if(!this.options.bubbleScroll||ze(i,!0)===Pe())return void an();rn(e,this.options,ze(i,!1),!1)}}},he(e,{pluginName:"scroll",initializeByDefault:!0})}),Ut.mount(cn,sn);const dn=Ut;function un(e,t,n={}){let a;const{document:o=de,...r}=n,l={onUpdate:e=>{!function(e,t,n){const a=(0,i.i9)(e),o=a?[...ie(e)]:ie(e);if(n>=0&&n<o.length){const r=o.splice(t,1)[0];(0,i.dY)((()=>{o.splice(n,0,r),a&&(e.value=o)}))}}(t,e.oldIndex,e.newIndex)}},s=()=>{const t="string"==typeof e?null==o?void 0:o.querySelector(e):function(e){var t;const n=ie(e);return null!=(t=null==n?void 0:n.$el)?t:n}(e);t&&void 0===a&&(a=new dn(t,{...l,...r}))},c=()=>{null==a||a.destroy(),a=void 0};return function(e,t=!0,n){!function(e){return e||(0,i.nI)()}()?t?e():(0,i.dY)(e):(0,i.sV)(e,n)}(s),d=c,!!(0,i.o5)()&&(0,i.jr)(d),{stop:c,start:s,option:(e,t)=>{if(void 0===t)return null==a?void 0:a.option(e);null==a||a.option(e,t)}};var d}var pn=a(54914),hn=a(10620),mn=a(41645);const gn=(0,i.pM)({name:"AppOrderSelectorElement",components:{IconArrowDown:hn.A,IconArrowUp:mn.A,NcButton:O.A},props:{ariaDescribedby:{type:String,default:null},ariaDetails:{type:String,default:null},app:{type:Object,required:!0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1}},emits:{"move:up":()=>!0,"move:down":()=>!0,"update:focus":()=>!0},setup(e,t){let{emit:n}=t;const a=(0,i.KR)(),o=(0,i.KR)();let r=0;return{buttonUp:a,buttonDown:o,moveUp:()=>{n("move:up"),r=1},moveDown:()=>{n("move:down"),r=-1},keepFocus:()=>{0!==r&&(1!==r&&!e.isLast||e.isFirst?(0,i.dY)((()=>o.value.$el.focus())):(0,i.dY)((()=>a.value.$el.focus()))),r=0},t:ae.Tl}}});var fn=a(12182),vn={};vn.styleTagTransform=T(),vn.setAttributes=_(),vn.insert=w().bind(null,"head"),vn.domAPI=b(),vn.insertStyleElement=S(),v()(fn.A,vn),fn.A&&fn.A.locals&&fn.A.locals;const An=(0,D.A)(gn,(function(){var e,t=this,n=t._self._c;return t._self._setupProxy,n("li",{class:{"order-selector-element":!0,"order-selector-element--disabled":t.app.default},attrs:{"data-cy-app-order-element":t.app.id},on:{focusin:function(e){return t.$emit("update:focus")}}},[n("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",role:"presentation"}},[n("image",{staticClass:"order-selector-element__icon",attrs:{preserveAspectRatio:"xMinYMin meet",x:"0",y:"0",width:"20",height:"20","xlink:href":t.app.icon}})]),t._v(" "),n("div",{staticClass:"order-selector-element__label"},[t._v("\n\t\t"+t._s(null!==(e=t.app.label)&&void 0!==e?e:t.app.id)+"\n\t")]),t._v(" "),n("div",{staticClass:"order-selector-element__actions"},[n("NcButton",{directives:[{name:"show",rawName:"v-show",value:!t.isFirst&&!t.app.default,expression:"!isFirst && !app.default"}],ref:"buttonUp",attrs:{"aria-label":t.t("settings","Move up"),"aria-describedby":t.ariaDescribedby,"aria-details":t.ariaDetails,"data-cy-app-order-button":"up",type:"tertiary-no-background"},on:{click:t.moveUp},scopedSlots:t._u([{key:"icon",fn:function(){return[n("IconArrowUp",{attrs:{size:20}})]},proxy:!0}])}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isFirst||!!t.app.default,expression:"isFirst || !!app.default"}],staticClass:"order-selector-element__placeholder",attrs:{"aria-hidden":"true"}}),t._v(" "),n("NcButton",{directives:[{name:"show",rawName:"v-show",value:!t.isLast&&!t.app.default,expression:"!isLast && !app.default"}],ref:"buttonDown",attrs:{"aria-label":t.t("settings","Move down"),"aria-describedby":t.ariaDescribedby,"aria-details":t.ariaDetails,"data-cy-app-order-button":"down",type:"tertiary-no-background"},on:{click:t.moveDown},scopedSlots:t._u([{key:"icon",fn:function(){return[n("IconArrowDown",{attrs:{size:20}})]},proxy:!0}])}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isLast||!!t.app.default,expression:"isLast || !!app.default"}],staticClass:"order-selector-element__placeholder",attrs:{"aria-hidden":"true"}})],1)])}),[],!1,null,"081ebc45",null).exports,bn=(0,i.pM)({name:"AppOrderSelector",components:{AppOrderSelectorElement:An,Fragment:pn.F},props:{ariaDetails:{type:String,default:null},value:{type:Array,required:!0}},emits:{"update:value":e=>Array.isArray(e)},setup(e,t){let{emit:n}=t;const a=(0,i.KR)(null),o=(0,i.EW)({get:()=>e.value,set:t=>{const a=[...t].sort(((e,n)=>(n.default?1:0)-(e.default?1:0)||t.indexOf(e)-t.indexOf(n)));a.some(((t,n)=>{let{id:a}=t;return a!==e.value[n].id}))?n("update:value",a):r.value+=1}}),r=(0,i.KR)(0);un(a,o,{filter:".order-selector-element--disabled"});const l=(0,i.KR)([]);(0,i.$u)((()=>{l.value.forEach((e=>e.keepFocus()))}));const s=(0,i.KR)("");return{appList:o,listElement:a,moveDown:t=>{const a=t>0?e.value.slice(0,t):[];a.push(e.value[t+1]);const o=t<e.value.length-2?e.value.slice(t+2):[];n("update:value",[...a,e.value[t],...o])},moveUp:t=>{var a;const o=t>1?e.value.slice(0,t-1):[];if(null!==(a=e.value[t-1])&&void 0!==a&&a.default)return;const i=[e.value[t-1]];t<e.value.length-1&&i.push(...e.value.slice(t+1)),n("update:value",[...o,e.value[t],...i])},statusInfoId:"sorting-status-info-".concat((Math.random()+1).toString(36).substring(7)),statusInfo:s,updateStatusInfo:t=>{s.value=(0,ae.Tl)("theming","Current selected app: {app}, position {position} of {total}",{app:e.value[t].label,position:t+1,total:e.value.length})},renderCount:r,selectorElements:l}}}),yn=bn;var wn=a(12467),Cn={};Cn.styleTagTransform=T(),Cn.setAttributes=_(),Cn.insert=w().bind(null,"head"),Cn.domAPI=b(),Cn.insertStyleElement=S(),v()(wn.A,Cn),wn.A&&wn.A.locals&&wn.A.locals;var _n=(0,D.A)(yn,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Fragment",[t("div",{staticClass:"hidden-visually",attrs:{id:e.statusInfoId,"aria-live":"polite",role:"status"}},[e._v("\n\t\t"+e._s(e.statusInfo)+"\n\t")]),e._v(" "),t("ol",{ref:"listElement",staticClass:"order-selector",attrs:{"data-cy-app-order":""}},e._l(e.appList,(function(n,a){return t("AppOrderSelectorElement",e._g({key:"".concat(n.id).concat(e.renderCount),ref:"selectorElements",refInFor:!0,attrs:{app:n,"aria-details":e.ariaDetails,"aria-describedby":e.statusInfoId,"is-first":0===a||!!e.appList[a-1].default,"is-last":a===e.value.length-1}},n.default?{}:{"move:up":()=>e.moveUp(a),"move:down":()=>e.moveDown(a),"update:focus":()=>e.updateStatusInfo(a)}))})),1)])}),[],!1,null,"76d01da8",null);const xn=_n.exports,Sn=(0,i.pM)({name:"AppMenuSection",components:{AppOrderSelector:xn,NcCheckboxRadioSwitch:c.A,NcSelect:oe.A,NcSettingsSection:s.A},props:{defaultApps:{type:Array,required:!0}},emits:{"update:defaultApps":e=>Array.isArray(e)&&e.every((e=>"string"==typeof e))},setup(e,t){let{emit:n}=t;const a=(0,i.EW)({get:()=>e.defaultApps.length>0,set:e=>{e?n("update:defaultApps",["dashboard","files"]):l.value=[]}}),o=Object.values((0,r.C)("core","apps")).map((e=>{let{id:t,name:n,icon:a}=e;return{label:n,id:t,icon:a}})),l=(0,i.EW)({get:()=>e.defaultApps.map((e=>o.filter((t=>t.id===e))[0])),set(e){s("defaultApps",e.map((e=>e.id))).then((()=>n("update:defaultApps",e.map((e=>e.id))))).catch((()=>(0,ne.Qg)((0,ae.Tl)("theming","Could not set global default apps"))))}}),s=async(e,t)=>{const n=(0,u.Jv)("/apps/theming/ajax/updateAppMenu");return await d.A.put(n,{setting:e,value:t})};return{allApps:o,selectedApps:l,hasCustomDefaultApp:a,t:ae.Tl}}}),Nn=Sn;var Tn=a(17446),En={};En.styleTagTransform=T(),En.setAttributes=_(),En.insert=w().bind(null,"head"),En.domAPI=b(),En.insertStyleElement=S(),v()(Tn.A,En),Tn.A&&Tn.A.locals&&Tn.A.locals;const kn=(0,D.A)(Nn,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcSettingsSection",{attrs:{name:e.t("theming","Navigation bar settings")}},[t("h3",[e._v(e._s(e.t("theming","Default app")))]),e._v(" "),t("p",{staticClass:"info-note"},[e._v("\n\t\t"+e._s(e.t("theming","The default app is the app that is e.g. opened after login or when the logo in the menu is clicked."))+"\n\t")]),e._v(" "),t("NcCheckboxRadioSwitch",{attrs:{checked:e.hasCustomDefaultApp,type:"switch","data-cy-switch-default-app":""},on:{"update:checked":function(t){e.hasCustomDefaultApp=t}}},[e._v("\n\t\t"+e._s(e.t("theming","Use custom default app"))+"\n\t")]),e._v(" "),e.hasCustomDefaultApp?[t("h4",[e._v(e._s(e.t("theming","Global default app")))]),e._v(" "),t("NcSelect",{attrs:{"close-on-select":!1,placeholder:e.t("theming","Global default apps"),options:e.allApps,multiple:!0},model:{value:e.selectedApps,callback:function(t){e.selectedApps=t},expression:"selectedApps"}}),e._v(" "),t("h5",[e._v(e._s(e.t("theming","Default app priority")))]),e._v(" "),t("p",{staticClass:"info-note"},[e._v("\n\t\t\t"+e._s(e.t("theming","If an app is not enabled for a user, the next app with lower priority is used."))+"\n\t\t")]),e._v(" "),t("AppOrderSelector",{attrs:{value:e.selectedApps},on:{"update:value":function(t){e.selectedApps=t}}})]:e._e()],2)}),[],!1,null,"90f2e098",null).exports,{backgroundMime:Dn,canThemeIcons:Mn,color:In,docUrl:On,docUrlIcons:Pn,faviconMime:Ln,isThemable:Fn,legalNoticeUrl:Bn,logoheaderMime:Rn,logoMime:jn,name:Yn,notThemableErrorMessage:zn,privacyPolicyUrl:Un,slogan:Vn,url:Gn,userThemingDisabled:Xn,defaultApps:qn}=(0,r.C)("theming","adminThemingParameters"),Hn=[{name:"name",value:Yn,defaultValue:"Nextcloud",type:"text",displayName:t("theming","Name"),placeholder:t("theming","Name"),maxlength:250},{name:"url",value:Gn,defaultValue:"https://nextcloud.com",type:"url",displayName:t("theming","Web link"),placeholder:"https://…",maxlength:500},{name:"slogan",value:Vn,defaultValue:t("theming","a safe home for all your data"),type:"text",displayName:t("theming","Slogan"),placeholder:t("theming","Slogan"),maxlength:500}],Wn={name:"color",value:In,defaultValue:"#0082c9",displayName:t("theming","Color")},$n=[{name:"logo",mimeName:"logoMime",mimeValue:jn,defaultMimeValue:"",displayName:t("theming","Logo"),ariaLabel:t("theming","Upload new logo")},{name:"background",mimeName:"backgroundMime",mimeValue:Dn,defaultMimeValue:"",displayName:t("theming","Background and login image"),ariaLabel:t("theming","Upload new background and login image")}],Qn=[{name:"imprintUrl",value:Bn,defaultValue:"",type:"url",displayName:t("theming","Legal notice link"),placeholder:"https://…",maxlength:500},{name:"privacyUrl",value:Un,defaultValue:"",type:"url",displayName:t("theming","Privacy policy link"),placeholder:"https://…",maxlength:500}],Zn=[{name:"logoheader",mimeName:"logoheaderMime",mimeValue:Rn,defaultMimeValue:"",displayName:t("theming","Header logo"),ariaLabel:t("theming","Upload new header logo")},{name:"favicon",mimeName:"faviconMime",mimeValue:Ln,defaultMimeValue:"",displayName:t("theming","Favicon"),ariaLabel:t("theming","Upload new favicon")}],Jn={name:"disable-user-theming",value:Xn,defaultValue:!1,displayName:t("theming","User settings"),label:t("theming","Disable user theming"),description:t("theming","Although you can select and customize your instance, users can change their background and colors. If you want to enforce your customization, you can toggle this on.")},Kn={name:"AdminTheming",components:{AppMenuSection:kn,CheckboxField:M,ColorPickerField:U,FileInputField:Z,NcNoteCard:l.A,NcSettingsSection:s.A,TextField:te},emits:["update:theming"],textFields:Hn,data:()=>({textFields:Hn,colorPickerField:Wn,fileInputFields:$n,advancedTextFields:Qn,advancedFileInputFields:Zn,userThemingField:Jn,defaultApps:qn,canThemeIcons:Mn,docUrl:On,docUrlIcons:Pn,isThemable:Fn,notThemableErrorMessage:zn})};var ea=a(9408),ta={};ta.styleTagTransform=T(),ta.setAttributes=_(),ta.insert=w().bind(null,"head"),ta.domAPI=b(),ta.insertStyleElement=S(),v()(ea.A,ta),ea.A&&ea.A.locals&&ea.A.locals;const na=(0,D.A)(Kn,(function(){var e=this,t=e._self._c;return t("section",[t("NcSettingsSection",{attrs:{name:e.t("theming","Theming"),description:e.t("theming","Theming makes it possible to easily customize the look and feel of your instance and supported clients. This will be visible for all users."),"doc-url":e.docUrl,"data-admin-theming-settings":""}},[t("div",{staticClass:"admin-theming"},[e.isThemable?e._e():t("NcNoteCard",{attrs:{type:"error","show-alert":!0}},[t("p",[e._v(e._s(e.notThemableErrorMessage))])]),e._v(" "),e._l(e.textFields,(function(n){return t("TextField",{key:n.name,attrs:{"data-admin-theming-setting-field":n.name,"default-value":n.defaultValue,"display-name":n.displayName,maxlength:n.maxlength,name:n.name,placeholder:n.placeholder,type:n.type,value:n.value},on:{"update:value":function(t){return e.$set(n,"value",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),t("ColorPickerField",{attrs:{name:e.colorPickerField.name,"default-value":e.colorPickerField.defaultValue,"display-name":e.colorPickerField.displayName,value:e.colorPickerField.value},on:{"update:value":function(t){return e.$set(e.colorPickerField,"value",t)},"update:theming":function(t){return e.$emit("update:theming")}}}),e._v(" "),e._l(e.fileInputFields,(function(n){return t("FileInputField",{key:n.name,attrs:{"aria-label":n.ariaLabel,"data-admin-theming-setting-file":n.name,"default-mime-value":n.defaultMimeValue,"display-name":n.displayName,"mime-name":n.mimeName,"mime-value":n.mimeValue,name:n.name},on:{"update:mimeValue":function(t){return e.$set(n,"mimeValue",t)},"update:mime-value":function(t){return e.$set(n,"mimeValue",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),t("div",{staticClass:"admin-theming__preview",attrs:{"data-admin-theming-preview":""}},[t("div",{staticClass:"admin-theming__preview-logo",attrs:{"data-admin-theming-preview-logo":""}})])],2)]),e._v(" "),t("NcSettingsSection",{attrs:{name:e.t("theming","Advanced options")}},[t("div",{staticClass:"admin-theming-advanced"},[e._l(e.advancedTextFields,(function(n){return t("TextField",{key:n.name,attrs:{name:n.name,value:n.value,"default-value":n.defaultValue,type:n.type,"display-name":n.displayName,placeholder:n.placeholder,maxlength:n.maxlength},on:{"update:value":function(t){return e.$set(n,"value",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),e._l(e.advancedFileInputFields,(function(n){return t("FileInputField",{key:n.name,attrs:{name:n.name,"mime-name":n.mimeName,"mime-value":n.mimeValue,"default-mime-value":n.defaultMimeValue,"display-name":n.displayName,"aria-label":n.ariaLabel},on:{"update:mimeValue":function(t){return e.$set(n,"mimeValue",t)},"update:mime-value":function(t){return e.$set(n,"mimeValue",t)},"update:theming":function(t){return e.$emit("update:theming")}}})})),e._v(" "),t("CheckboxField",{attrs:{name:e.userThemingField.name,value:e.userThemingField.value,"default-value":e.userThemingField.defaultValue,"display-name":e.userThemingField.displayName,label:e.userThemingField.label,description:e.userThemingField.description,"data-admin-theming-setting-disable-user-theming":""},on:{"update:theming":function(t){return e.$emit("update:theming")}}}),e._v(" "),e.canThemeIcons?e._e():t("a",{attrs:{href:e.docUrlIcons,rel:"noreferrer noopener"}},[t("em",[e._v(e._s(e.t("theming","Install the ImageMagick PHP extension with support for SVG images to automatically generate favicons based on the uploaded logo and color.")))])])],2)]),e._v(" "),t("AppMenuSection",{attrs:{"default-apps":e.defaultApps},on:{"update:defaultApps":function(t){e.defaultApps=t},"update:default-apps":function(t){e.defaultApps=t}}})],1)}),[],!1,null,"e3cd61f0",null).exports;a.nc=btoa((0,o.do)()),i.Ay.prototype.OC=OC,i.Ay.prototype.t=t;const aa=new(i.Ay.extend(na));aa.$mount("#admin-theming"),aa.$on("update:theming",(()=>{[...document.head.querySelectorAll("link.theme")].forEach((e=>{const t=new URL(e.href);t.searchParams.set("v",Date.now());const n=e.cloneNode();n.href=t.toString(),n.onload=()=>e.remove(),document.head.append(n)}))}))},9408:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i),l=n(4417),s=n.n(l),c=new URL(n(92281),n.b),d=r()(o()),u=s()(c);d.push([e.id,`.admin-theming[data-v-e3cd61f0],.admin-theming-advanced[data-v-e3cd61f0]{display:flex;flex-direction:column;gap:8px 0}.admin-theming__preview[data-v-e3cd61f0]{width:230px;height:140px;background-size:cover;background-position:center;text-align:center;margin-top:10px;background-color:var(--color-primary-element-default);background-image:var(--image-background-plain, var(--image-background-default))}.admin-theming__preview-logo[data-v-e3cd61f0]{width:20%;height:20%;margin-top:20px;display:inline-block;background-size:contain;background-position:center;background-repeat:no-repeat;background-image:var(--image-logo, url(${u}))}`,"",{version:3,sources:["webpack://./apps/theming/src/AdminTheming.vue"],names:[],mappings:"AACA,yEAEC,YAAA,CACA,qBAAA,CACA,SAAA,CAIA,yCACC,WAAA,CACA,YAAA,CACA,qBAAA,CACA,0BAAA,CACA,iBAAA,CACA,eAAA,CAIA,qDAAA,CAKA,+EAAA,CAEA,8CACC,SAAA,CACA,UAAA,CACA,eAAA,CACA,oBAAA,CACA,uBAAA,CACA,0BAAA,CACA,2BAAA,CACA,2EAAA",sourcesContent:["\n.admin-theming,\n.admin-theming-advanced {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px 0;\n}\n\n.admin-theming {\n\t&__preview {\n\t\twidth: 230px;\n\t\theight: 140px;\n\t\tbackground-size: cover;\n\t\tbackground-position: center;\n\t\ttext-align: center;\n\t\tmargin-top: 10px;\n\t\t/* This is basically https://github.com/nextcloud/server/blob/master/core/css/guest.css\n\t\t But without the user variables. That way the admin can preview the render as guest*/\n\t\t/* As guest, there is no user color color-background-plain */\n\t\tbackground-color: var(--color-primary-element-default);\n\t\t/* As guest, there is no user background (--image-background)\n\t\t1. Empty background if defined\n\t\t2. Else default background\n\t\t3. Finally default gradient (should not happened, the background is always defined anyway) */\n\t\tbackground-image: var(--image-background-plain, var(--image-background-default));\n\n\t\t&-logo {\n\t\t\twidth: 20%;\n\t\t\theight: 20%;\n\t\t\tmargin-top: 20px;\n\t\t\tdisplay: inline-block;\n\t\t\tbackground-size: contain;\n\t\t\tbackground-position: center;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-image: var(--image-logo, url('../../../core/img/logo/logo.svg'));\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const p=d},12467:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".order-selector[data-v-76d01da8]{width:max-content;min-width:260px}","",{version:3,sources:["webpack://./apps/theming/src/components/AppOrderSelector.vue"],names:[],mappings:"AACA,iCACC,iBAAA,CACA,eAAA",sourcesContent:["\n.order-selector {\n\twidth: max-content;\n\tmin-width: 260px; // align with NcSelect\n}\n"],sourceRoot:""}]);const l=r},12182:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".order-selector-element[data-v-081ebc45]{list-style:none;display:flex;flex-direction:row;align-items:center;gap:12px;padding-inline:12px}.order-selector-element[data-v-081ebc45]:hover{background-color:var(--color-background-hover);border-radius:var(--border-radius-large)}.order-selector-element--disabled[data-v-081ebc45]{border-color:var(--color-text-maxcontrast);color:var(--color-text-maxcontrast)}.order-selector-element--disabled .order-selector-element__icon[data-v-081ebc45]{opacity:75%}.order-selector-element__actions[data-v-081ebc45]{flex:0 0;display:flex;flex-direction:row;gap:6px}.order-selector-element__label[data-v-081ebc45]{flex:1 1;text-overflow:ellipsis;overflow:hidden}.order-selector-element__placeholder[data-v-081ebc45]{height:44px;width:44px}.order-selector-element__icon[data-v-081ebc45]{filter:var(--background-invert-if-bright)}","",{version:3,sources:["webpack://./apps/theming/src/components/AppOrderSelectorElement.vue"],names:[],mappings:"AACA,yCAEC,eAAA,CAEA,YAAA,CACA,kBAAA,CACA,kBAAA,CAEA,QAAA,CACA,mBAAA,CAEA,+CACC,8CAAA,CACA,wCAAA,CAGD,mDACC,0CAAA,CACA,mCAAA,CAEA,iFACC,WAAA,CAIF,kDACC,QAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CAGD,gDACC,QAAA,CACA,sBAAA,CACA,eAAA,CAGD,sDACC,WAAA,CACA,UAAA,CAGD,+CACC,yCAAA",sourcesContent:["\n.order-selector-element {\n\t// hide default styling\n\tlist-style: none;\n\t// Align children\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\t// Spacing\n\tgap: 12px;\n\tpadding-inline: 12px;\n\n\t&:hover {\n\t\tbackground-color: var(--color-background-hover);\n\t\tborder-radius: var(--border-radius-large);\n\t}\n\n\t&--disabled {\n\t\tborder-color: var(--color-text-maxcontrast);\n\t\tcolor: var(--color-text-maxcontrast);\n\n\t\t.order-selector-element__icon {\n\t\t\topacity: 75%;\n\t\t}\n\t}\n\n\t&__actions {\n\t\tflex: 0 0;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tgap: 6px;\n\t}\n\n\t&__label {\n\t\tflex: 1 1;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t&__placeholder {\n\t\theight: 44px;\n\t\twidth: 44px;\n\t}\n\n\t&__icon {\n\t\tfilter: var(--background-invert-if-bright);\n\t}\n}\n"],sourceRoot:""}]);const l=r},17446:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,"h3[data-v-90f2e098],h4[data-v-90f2e098]{font-weight:bold}h4[data-v-90f2e098],h5[data-v-90f2e098]{margin-block-start:12px}.info-note[data-v-90f2e098]{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/AppMenuSection.vue"],names:[],mappings:"AACA,wCACC,gBAAA,CAED,wCACC,uBAAA,CAGD,4BACC,mCAAA",sourcesContent:["\nh3, h4 {\n\tfont-weight: bold;\n}\nh4, h5 {\n\tmargin-block-start: 12px;\n}\n\n.info-note {\n\tcolor: var(--color-text-maxcontrast);\n}\n"],sourceRoot:""}]);const l=r},36728:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-c41a3e80]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-c41a3e80]{display:flex;gap:0 4px}.field__description[data-v-c41a3e80]{color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/CheckboxField.vue"],names:[],mappings:"AAsBA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCzBD,qCACC,mCAAA",sourcesContent:["/**\n * @copyright 2022 Christopher Ng <chrng8@gmail.com>\n *\n * @author Christopher Ng <chrng8@gmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n.field {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px 0;\n\n\t&__row {\n\t\tdisplay: flex;\n\t\tgap: 0 4px;\n\t}\n}\n","\n@import './shared/field.scss';\n\n.field {\n\t&__description {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n}\n"],sourceRoot:""}]);const l=r},47937:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-25e8f76e]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-25e8f76e]{display:flex;gap:0 4px}.field__color-preview[data-v-25e8f76e]{width:var(--default-clickable-area);border-radius:var(--border-radius-large);background-color:var(--color-primary-default)}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/ColorPickerField.vue"],names:[],mappings:"AAsBA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCzBD,uCACC,mCAAA,CACA,wCAAA,CACA,6CAAA",sourcesContent:["/**\n * @copyright 2022 Christopher Ng <chrng8@gmail.com>\n *\n * @author Christopher Ng <chrng8@gmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n.field {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px 0;\n\n\t&__row {\n\t\tdisplay: flex;\n\t\tgap: 0 4px;\n\t}\n}\n","\n@import './shared/field.scss';\n\n.field {\n\t&__color-preview {\n\t\twidth: var(--default-clickable-area);\n\t\tborder-radius: var(--border-radius-large);\n\t\tbackground-color: var(--color-primary-default);\n\t}\n}\n"],sourceRoot:""}]);const l=r},9710:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-36abeca7]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-36abeca7]{display:flex;gap:0 4px}.field__loading-icon[data-v-36abeca7]{width:44px;height:44px}.field__preview[data-v-36abeca7]{width:70px;height:70px;background-size:contain;background-position:center;background-repeat:no-repeat;margin:10px 0}.field__preview--logoheader[data-v-36abeca7]{background-image:var(--image-logoheader)}.field__preview--favicon[data-v-36abeca7]{background-image:var(--image-favicon)}input[type=file][data-v-36abeca7]{display:none}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/FileInputField.vue"],names:[],mappings:"AAsBA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCzBD,sCACC,UAAA,CACA,WAAA,CAGD,iCACC,UAAA,CACA,WAAA,CACA,uBAAA,CACA,0BAAA,CACA,2BAAA,CACA,aAAA,CAEA,6CACC,wCAAA,CAGD,0CACC,qCAAA,CAKH,kCACC,YAAA",sourcesContent:["/**\n * @copyright 2022 Christopher Ng <chrng8@gmail.com>\n *\n * @author Christopher Ng <chrng8@gmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n.field {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px 0;\n\n\t&__row {\n\t\tdisplay: flex;\n\t\tgap: 0 4px;\n\t}\n}\n","\n@import './shared/field.scss';\n\n.field {\n\t&__loading-icon {\n\t\twidth: 44px;\n\t\theight: 44px;\n\t}\n\n\t&__preview {\n\t\twidth: 70px;\n\t\theight: 70px;\n\t\tbackground-size: contain;\n\t\tbackground-position: center;\n\t\tbackground-repeat: no-repeat;\n\t\tmargin: 10px 0;\n\n\t\t&--logoheader {\n\t\t\tbackground-image: var(--image-logoheader);\n\t\t}\n\n\t\t&--favicon {\n\t\t\tbackground-image: var(--image-favicon);\n\t\t}\n\t}\n}\n\ninput[type=\"file\"] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const l=r},94087:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),i=n(76314),r=n.n(i)()(o());r.push([e.id,".field[data-v-31f08db0]{max-width:400px}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/TextField.vue"],names:[],mappings:"AACA,wBACC,eAAA",sourcesContent:["\n.field {\n\tmax-width: 400px;\n}\n"],sourceRoot:""}]);const l=r},92281:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjEyOCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMjU2IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTI4IDdjLTI1Ljg3MSAwLTQ3LjgxNyAxNy40ODUtNTQuNzEzIDQxLjIwOS01Ljk3OTUtMTIuNDYxLTE4LjY0Mi0yMS4yMDktMzMuMjg3LTIxLjIwOS0yMC4zMDQgMC0zNyAxNi42OTYtMzcgMzdzMTYuNjk2IDM3IDM3IDM3YzE0LjY0NSAwIDI3LjMwOC04Ljc0ODEgMzMuMjg3LTIxLjIwOSA2Ljg5NTcgMjMuNzI0IDI4Ljg0MiA0MS4yMDkgNTQuNzEzIDQxLjIwOXM0Ny44MTctMTcuNDg1IDU0LjcxMy00MS4yMDljNS45Nzk1IDEyLjQ2MSAxOC42NDIgMjEuMjA5IDMzLjI4NyAyMS4yMDkgMjAuMzA0IDAgMzctMTYuNjk2IDM3LTM3cy0xNi42OTYtMzctMzctMzdjLTE0LjY0NSAwLTI3LjMwOCA4Ljc0ODEtMzMuMjg3IDIxLjIwOS02Ljg5NTctMjMuNzI0LTI4Ljg0Mi00MS4yMDktNTQuNzEzLTQxLjIwOXptMCAyMmMxOS40NiAwIDM1IDE1LjU0IDM1IDM1cy0xNS41NCAzNS0zNSAzNS0zNS0xNS41NC0zNS0zNSAxNS41NC0zNSAzNS0zNXptLTg4IDIwYzguNDE0NiAwIDE1IDYuNTg1NCAxNSAxNXMtNi41ODU0IDE1LTE1IDE1LTE1LTYuNTg1NC0xNS0xNSA2LjU4NTQtMTUgMTUtMTV6bTE3NiAwYzguNDE0NiAwIDE1IDYuNTg1NCAxNSAxNXMtNi41ODU0IDE1LTE1IDE1LTE1LTYuNTg1NC0xNS0xNSA2LjU4NTQtMTUgMTUtMTV6IiBjb2xvcj0iIzAwMDAwMCIgZmlsbD0iI2ZmZiIgc3R5bGU9Ii1pbmtzY2FwZS1zdHJva2U6bm9uZSIvPjwvc3ZnPgo="}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=o,e=[],r.O=(t,n,a,o)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){n=e[d][0],a=e[d][1],o=e[d][2];for(var l=!0,s=0;s<n.length;s++)(!1&o||i>=o)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(l=!1,o<i&&(i=o));if(l){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,a,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>e+"-"+e+".js?v="+{3747:"2e4fdaf3b51865d93608",5662:"d1f20e62402d8be29948"}[e],r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="nextcloud:",r.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+o){l=u;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",a+o),l.src=e),n[e]=[t];var p=(t,a)=>{l.onerror=l.onload=null,clearTimeout(h);var o=n[e];if(delete n[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(a))),t)return t(a)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=1320,(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{r.b=document.baseURI||self.location.href;var e={1320:0};r.f.j=(t,n)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var o=new Promise(((n,o)=>a=e[t]=[n,o]));n.push(a[2]=o);var i=r.p+r.u(t),l=new Error;r.l(i,(n=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,a[1](l)}}),"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var a,o,i=n[0],l=n[1],s=n[2],c=0;if(i.some((t=>0!==e[t]))){for(a in l)r.o(l,a)&&(r.m[a]=l[a]);if(s)var d=s(r)}for(t&&t(n);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(d)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.nc=void 0;var l=r.O(void 0,[4208],(()=>r(56085)));l=r.O(l)})(); +//# sourceMappingURL=theming-admin-theming.js.map?v=b4719bcf196f8333687d
\ No newline at end of file |