0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-01-30 22:37:01 +00:00
nextcloud_server/dist/theming-admin-theming.js
Ferdinand Thiessen ef5dc058a4 chore: Compile assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-01-27 18:37:55 +00:00

2 lines
No EOL
83 KiB
JavaScript

(()=>{"use strict";var e,n,a,o={26571:(e,n,a)=>{var o=a(21777),r=a(85471),i=a(32981),l=a(80910),s=a(88837),d=a(32073),c=a(65043),u=a(63814);const p=["color","logo","background","logoheader","favicon","disable-user-theming"],h={emits:["update:theming"],data:()=>({showSuccess:!1,errorMessage:""}),computed:{id(){return`admin-theming-${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")}}};var g=a(96763);const m={mixins:[h],watch:{value(e){this.localValue=e}},data(){return{localValue:this.value}},computed:{valueToPost(){return"url"===this.type?this.isUrlEncoded(this.localValue)?this.localValue.replaceAll('"',"%22"):encodeURI(this.localValue):"boolean"==typeof this.localValue?this.localValue?"yes":"no":this.localValue}},methods:{isUrlEncoded(e){try{return decodeURI(e)!==e}catch{return!1}},async save(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/updateStylesheet");try{await c.Ay.post(e,{setting:this.name,value:this.valueToPost}),this.$emit("update:value",this.localValue),this.handleSuccess()}catch(e){g.error("Failed to save changes",e),this.errorMessage=e.response?.data.data?.message}},async undo(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/undoChanges");try{const{data:t}=await c.Ay.post(e,{setting:this.name});t.data.value&&this.$emit("update:defaultValue",t.data.value),this.$emit("update:value",t.data.value||this.defaultValue),this.handleSuccess()}catch(e){this.errorMessage=e.response.data.data?.message}}}},f={name:"CheckboxField",components:{NcCheckboxRadioSwitch:d.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 v=a(85072),A=a.n(v),b=a(97825),y=a.n(b),C=a(77659),w=a.n(C),_=a(55056),x=a.n(_),S=a(10540),k=a.n(S),N=a(41113),D=a.n(N),T=a(21627),M={};M.styleTagTransform=D(),M.setAttributes=x(),M.insert=w().bind(null,"head"),M.domAPI=y(),M.insertStyleElement=k(),A()(T.A,M),T.A&&T.A.locals&&T.A.locals;var E=a(14486);const I=(0,E.A)(f,(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:{id:e.id,type:"switch",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("\n\t\t"+e._s(e.description)+"\n\t")]),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,"01119e21",null).exports;var P={grad:.9,turn:360,rad:360/(2*Math.PI)},L=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},O=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},F=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},B=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},j=function(e){return{r:F(e.r,0,255),g:F(e.g,0,255),b:F(e.b,0,255),a:F(e.a)}},R=function(e){return{r:O(e.r),g:O(e.g),b:O(e.b),a:O(e.a,3)}},U=/^#([0-9a-f]{3,8})$/i,z=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},V=function(e){var t=e.r,n=e.g,a=e.b,o=e.a,r=Math.max(t,n,a),i=r-Math.min(t,n,a),l=i?r===t?(n-a)/i:r===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(l<0?l+6:l),s:r?i/r*100:0,v:r/255*100,a:o}},Y=function(e){var t=e.h,n=e.s,a=e.v,o=e.a;t=t/360*6,n/=100,a/=100;var r=Math.floor(t),i=a*(1-n),l=a*(1-(t-r)*n),s=a*(1-(1-t+r)*n),d=r%6;return{r:255*[a,l,i,i,s,a][d],g:255*[s,a,a,l,i,i][d],b:255*[i,i,s,a,a,l][d],a:o}},X=function(e){return{h:B(e.h),s:F(e.s,0,100),l:F(e.l,0,100),a:F(e.a)}},H=function(e){return{h:O(e.h),s:O(e.s),l:O(e.l),a:O(e.a,3)}},$=function(e){return Y((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},q=function(e){return{h:(t=V(e)).h,s:(o=(200-(n=t.s))*(a=t.v)/100)>0&&o<200?n*a/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,a,o},G=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,W=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Q=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Z=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,K={string:[[function(e){var t=U.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?O(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?O(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Q.exec(e)||Z.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:j({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=G.exec(e)||W.exec(e);if(!t)return null;var n,a,o=X({h:(n=t[1],a=t[2],void 0===a&&(a="deg"),Number(n)*(P[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return $(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,o=e.a,r=void 0===o?1:o;return L(t)&&L(n)&&L(a)?j({r:Number(t),g:Number(n),b:Number(a),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,o=e.a,r=void 0===o?1:o;if(!L(t)||!L(n)||!L(a))return null;var i=X({h:Number(t),s:Number(n),l:Number(a),a:Number(r)});return $(i)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,o=e.a,r=void 0===o?1:o;if(!L(t)||!L(n)||!L(a))return null;var i=function(e){return{h:B(e.h),s:F(e.s,0,100),v:F(e.v,0,100),a:F(e.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(r)});return Y(i)},"hsv"]]},J=function(e,t){for(var n=0;n<t.length;n++){var a=t[n][0](e);if(a)return[a,t[n][1]]}return[null,void 0]},ee=function(e,t){var n=q(e);return{h:n.h,s:F(n.s+100*t,0,100),l:n.l,a:n.a}},te=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},ne=function(e,t){var n=q(e);return{h:n.h,s:n.s,l:F(n.l+100*t,0,100),a:n.a}},ae=function(){function e(e){this.parsed=function(e){return"string"==typeof e?J(e.trim(),K.string):"object"==typeof e&&null!==e?J(e,K.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return O(te(this.rgba),2)},e.prototype.isDark=function(){return te(this.rgba)<.5},e.prototype.isLight=function(){return te(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=R(this.rgba)).r,n=e.g,a=e.b,r=(o=e.a)<1?z(O(255*o)):"","#"+z(t)+z(n)+z(a)+r;var e,t,n,a,o,r},e.prototype.toRgb=function(){return R(this.rgba)},e.prototype.toRgbString=function(){return t=(e=R(this.rgba)).r,n=e.g,a=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+a+", "+o+")":"rgb("+t+", "+n+", "+a+")";var e,t,n,a,o},e.prototype.toHsl=function(){return H(q(this.rgba))},e.prototype.toHslString=function(){return t=(e=H(q(this.rgba))).h,n=e.s,a=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+a+"%, "+o+")":"hsl("+t+", "+n+"%, "+a+"%)";var e,t,n,a,o},e.prototype.toHsv=function(){return e=V(this.rgba),{h:O(e.h),s:O(e.s),v:O(e.v),a:O(e.a,3)};var e},e.prototype.invert=function(){return oe({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),oe(ee(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),oe(ee(this.rgba,-e))},e.prototype.grayscale=function(){return oe(ee(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),oe(ne(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),oe(ne(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?oe({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):O(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=q(this.rgba);return"number"==typeof e?oe({h:e,s:t.s,l:t.l,a:t.a}):O(t.h)},e.prototype.isEqual=function(e){return this.toHex()===oe(e).toHex()},e}(),oe=function(e){return e instanceof ae?e:new ae(e)},re=a(17334),ie=a.n(re),le=a(18740),se=a(63536),de=a(84237);const ce={name:"UndoVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ue=(0,E.A)(ce,(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:"true","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,pe={name:"PaletteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},he=(0,E.A)(pe,(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:"true","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,ge={name:"ColorPickerField",components:{NcButton:le.A,NcColorPicker:se.N,NcLoadingIcon:de.A,NcNoteCard:l.A,Undo:ue,Palette:he},mixins:[m],props:{name:{type:String,required:!0},description:{type:String,default:""},value:{type:String,required:!0},textColor:{type:String,default:null},defaultValue:{type:String,required:!0},displayName:{type:String,required:!0}},emits:["update:theming"],data:()=>({loading:!1}),computed:{calculatedTextColor(){return oe(this.value).isLight()?"#000000":"#ffffff"},usedTextColor(){return this.textColor?this.textColor:this.calculatedTextColor}},methods:{debounceSave:ie()((async function(){this.loading=!0,await this.save(),this.$emit("update:theming"),this.loading=!1}),200)}},me=()=>{(0,r.$9)(((e,t)=>({a6aba0da:e.value,"203da31b":e.usedTextColor})))},fe=ge.setup;ge.setup=fe?(e,t)=>(me(),fe(e,t)):me;const ve=ge;var Ae=a(965),be={};be.styleTagTransform=D(),be.setAttributes=x(),be.insert=w().bind(null,"head"),be.domAPI=y(),be.insertStyleElement=k(),A()(Ae.A,be),Ae.A&&Ae.A.locals&&Ae.A.locals;const ye=(0,E.A)(ve,(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},on:{"update:value":[function(t){e.localValue=t},e.debounceSave]}},[t("NcButton",{staticClass:"field__button",attrs:{id:e.id,type:"primary","aria-label":e.t("theming","Select a custom color"),"data-admin-theming-setting-color-picker":""},scopedSlots:e._u([{key:"icon",fn:function(){return[e.loading?t("NcLoadingIcon",{attrs:{appearance:"#ffffff"===e.calculatedTextColor?"light":"dark",size:20}}):t("Palette",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t\t\t"+e._s(e.value)+"\n\t\t\t")])],1),e._v(" "),t("div",{staticClass:"field__color-preview",attrs:{"data-admin-theming-setting-color":""}}),e._v(" "),e.value!==e.defaultValue?t("NcButton",{attrs:{type:"tertiary","aria-label":e.t("theming","Reset to default"),"data-admin-theming-setting-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.description?t("div",{staticClass:"description"},[e._v("\n\t\t"+e._s(e.description)+"\n\t")]):e._e(),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,"444a87fb",null).exports;var Ce=a(79759),we=a(65422);const{allowedMimeTypes:_e}=(0,i.C)("theming","adminThemingParameters",{}),xe={name:"FileInputField",components:{Delete:Ce.A,NcButton:le.A,NcLoadingIcon:de.A,NcNoteCard:l.A,Undo:ue,Upload:we.A},mixins:[h],props:{name:{type:String,required:!0},mimeName:{type:String,required:!0},mimeValue:{type:String,required:!0},defaultMimeValue:{type:String,default:""},displayName:{type:String,required:!0},ariaLabel:{type:String,required:!0}},data(){return{showLoading:!1,acceptMime:(_e[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;const{data:e}=await c.Ay.post(a,n);this.showLoading=!1,this.$emit("update:mime-value",t.type),this.$emit("uploaded",e.data.url),this.handleSuccess()}catch(e){this.showLoading=!1,this.errorMessage=e.response.data.data?.message}},async undo(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/undoChanges");try{await c.Ay.post(e,{setting:this.mimeName}),this.$emit("update:mime-value",this.defaultMimeValue),this.handleSuccess()}catch(e){this.errorMessage=e.response.data.data?.message}},async removeBackground(){this.reset();const e=(0,u.Jv)("/apps/theming/ajax/updateStylesheet");try{await c.Ay.post(e,{setting:this.mimeName,value:"backgroundColor"}),this.$emit("update:mime-value","backgroundColor"),this.handleSuccess()}catch(e){this.errorMessage=e.response.data.data?.message}}}},Se=xe;var ke=a(63240),Ne={};Ne.styleTagTransform=D(),Ne.setAttributes=x(),Ne.insert=w().bind(null,"head"),Ne.domAPI=y(),Ne.insertStyleElement=k(),A()(ke.A,Ne),ke.A&&ke.A.locals&&ke.A.locals;const De=(0,E.A)(Se,(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:{id:e.id,type:"secondary","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,"aad790f8",null).exports,Te={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 Me=a(18847),Ee={};Ee.styleTagTransform=D(),Ee.setAttributes=x(),Ee.insert=w().bind(null,"head"),Ee.domAPI=y(),Ee.insertStyleElement=k(),A()(Me.A,Ee),Me.A&&Me.A.locals&&Me.A.locals;const Ie=(0,E.A)(Te,(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,"2839f6ea",null).exports;var Pe=a(85168),Le=a(53334),Oe=a(67607),Fe=a(59271);r.Ay.util.warn,a(96763),Fe.oc&&window;const Be=Fe.oc?window.document:void 0;Fe.oc&&window.navigator,Fe.oc&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY;function je(e){return je="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},je(e)}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(){return Ue=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},Ue.apply(this,arguments)}function ze(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){Re(e,t,n[t])}))}return e}function Ve(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}Fe.D_;var Ye=Ve(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Xe=Ve(/Edge/i),He=Ve(/firefox/i),$e=Ve(/safari/i)&&!Ve(/chrome/i)&&!Ve(/android/i),qe=Ve(/iP(ad|od|hone)/i),Ge=Ve(/chrome/i)&&Ve(/android/i),We={capture:!1,passive:!1};function Qe(e,t,n){e.addEventListener(t,n,!Ye&&We)}function Ze(e,t,n){e.removeEventListener(t,n,!Ye&&We)}function Ke(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 Je(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function et(e,t,n,a){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Ke(e,t):Ke(e,t))||a&&e===n)return e;if(e===n)break}while(e=Je(e))}return null}var tt,nt=/\s+/g;function at(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(nt," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(nt," ")}}function ot(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 rt(e,t){var n="";if("string"==typeof e)n=e;else do{var a=ot(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 it(e,t,n){if(e){var a=e.getElementsByTagName(t),o=0,r=a.length;if(n)for(;o<r;o++)n(a[o],o);return a}return[]}function lt(){return document.scrollingElement||document.documentElement}function st(e,t,n,a,o){if(e.getBoundingClientRect||e===window){var r,i,l,s,d,c,u;if(e!==window&&e!==lt()?(i=(r=e.getBoundingClientRect()).top,l=r.left,s=r.bottom,d=r.right,c=r.height,u=r.width):(i=0,l=0,s=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Ye))do{if(o&&o.getBoundingClientRect&&("none"!==ot(o,"transform")||n&&"static"!==ot(o,"position"))){var p=o.getBoundingClientRect();i-=p.top+parseInt(ot(o,"border-top-width")),l-=p.left+parseInt(ot(o,"border-left-width")),s=i+r.height,d=l+r.width;break}}while(o=o.parentNode);if(a&&e!==window){var h=rt(o||e),g=h&&h.a,m=h&&h.d;h&&(s=(i/=m)+(c/=m),d=(l/=g)+(u/=g))}return{top:i,left:l,bottom:s,right:d,width:u,height:c}}}function dt(e,t,n){for(var a=gt(e,!0),o=st(e)[t];a;){var r=st(a)[n];if(!("top"===n||"left"===n?o>=r:o<=r))return a;if(a===lt())break;a=gt(a,!1)}return!1}function ct(e,t,n){for(var a=0,o=0,r=e.children;o<r.length;){if("none"!==r[o].style.display&&r[o]!==fn.ghost&&r[o]!==fn.dragged&&et(r[o],n.draggable,e,!1)){if(a===t)return r[o];a++}o++}return null}function ut(e,t){for(var n=e.lastElementChild;n&&(n===fn.ghost||"none"===ot(n,"display")||t&&!Ke(n,t));)n=n.previousElementSibling;return n||null}function pt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===fn.clone||t&&!Ke(e,t)||n++;return n}function ht(e){var t=0,n=0,a=lt();if(e)do{var o=rt(e),r=o.a,i=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*i}while(e!==a&&(e=e.parentNode));return[t,n]}function gt(e,t){if(!e||!e.getBoundingClientRect)return lt();var n=e,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=ot(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 lt();if(a||t)return n;a=!0}}}while(n=n.parentNode);return lt()}function mt(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 ft(e,t){return function(){if(!tt){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),tt=setTimeout((function(){tt=void 0}),t)}}}function vt(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function At(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 bt="Sortable"+(new Date).getTime();var yt=[],Ct={initializeByDefault:!0},wt={mount:function(e){for(var t in Ct)Ct.hasOwnProperty(t)&&!(t in e)&&(e[t]=Ct[t]);yt.push(e)},pluginEvent:function(e,t,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=e+"Global";yt.forEach((function(a){t[a.pluginName]&&(t[a.pluginName][o]&&t[a.pluginName][o](ze({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](ze({sortable:t},n)))}))},initializePlugins:function(e,t,n,a){for(var o in yt.forEach((function(a){var o=a.pluginName;if(e.options[o]||a.initializeByDefault){var r=new a(e,t,e.options);r.sortable=e,r.options=e.options,e[o]=r,Ue(n,r.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var r=this.modifyOption(e,o,e.options[o]);void 0!==r&&(e.options[o]=r)}},getEventProperties:function(e,t){var n={};return yt.forEach((function(a){"function"==typeof a.eventProperties&&Ue(n,a.eventProperties.call(t[a.pluginName],e))})),n},modifyOption:function(e,t,n){var a;return yt.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(a=o.optionListeners[t].call(e[o.pluginName],n))})),a}};var _t=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={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["evt"]);wt.pluginEvent.bind(fn)(e,t,ze({dragEl:St,parentEl:kt,ghostEl:Nt,rootEl:Dt,nextEl:Tt,lastDownEl:Mt,cloneEl:Et,cloneHidden:It,dragStarted:Ht,putSortable:jt,activeSortable:fn.active,originalEvent:a,oldIndex:Pt,oldDraggableIndex:Ot,newIndex:Lt,newDraggableIndex:Ft,hideGhostForTarget:pn,unhideGhostForTarget:hn,cloneNowHidden:function(){It=!0},cloneNowShown:function(){It=!1},dispatchSortableEvent:function(e){xt({sortable:t,name:e,originalEvent:a})}},o))};function xt(e){!function(e){var t=e.sortable,n=e.rootEl,a=e.name,o=e.targetEl,r=e.cloneEl,i=e.toEl,l=e.fromEl,s=e.oldIndex,d=e.newIndex,c=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[bt]){var m,f=t.options,v="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||Ye||Xe?(m=document.createEvent("Event")).initEvent(a,!0,!0):m=new CustomEvent(a,{bubbles:!0,cancelable:!0}),m.to=i||n,m.from=l||n,m.item=o||n,m.clone=r,m.oldIndex=s,m.newIndex=d,m.oldDraggableIndex=c,m.newDraggableIndex=u,m.originalEvent=p,m.pullMode=h?h.lastPutMode:void 0;var A=ze({},g,wt.getEventProperties(a,t));for(var b in A)m[b]=A[b];n&&n.dispatchEvent(m),f[v]&&f[v].call(t,m)}}(ze({putSortable:jt,cloneEl:Et,targetEl:St,rootEl:Dt,oldIndex:Pt,oldDraggableIndex:Ot,newIndex:Lt,newDraggableIndex:Ft},e))}var St,kt,Nt,Dt,Tt,Mt,Et,It,Pt,Lt,Ot,Ft,Bt,jt,Rt,Ut,zt,Vt,Yt,Xt,Ht,$t,qt,Gt,Wt,Qt=!1,Zt=!1,Kt=[],Jt=!1,en=!1,tn=[],nn=!1,an=[],on="undefined"!=typeof document,rn=qe,ln=Xe||Ye?"cssFloat":"float",sn=on&&!Ge&&!qe&&"draggable"in document.createElement("div"),dn=function(){if(on){if(Ye)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),cn=function(e,t){var n=ot(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=ct(e,0,t),r=ct(e,1,t),i=o&&ot(o),l=r&&ot(r),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+st(o).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+st(r).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&&i.float&&"none"!==i.float){var c="left"===i.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=a&&"none"===n[ln]||r&&"none"===n[ln]&&s+d>a)?"vertical":"horizontal"},un=function(e){function t(e,n){return function(a,o,r,i){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,r,i),n)(a,o,r,i);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"==je(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},pn=function(){!dn&&Nt&&ot(Nt,"display","none")},hn=function(){!dn&&Nt&&ot(Nt,"display","")};on&&document.addEventListener("click",(function(e){if(Zt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Zt=!1,!1}),!0);var gn=function(e){if(St){var t=function(e,t){var n;return Kt.some((function(a){if(!ut(a)){var o=st(a),r=a[bt].options.emptyInsertThreshold,i=e>=o.left-r&&e<=o.right+r,l=t>=o.top-r&&t<=o.bottom+r;return r&&i&&l?n=a:void 0}})),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);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[bt]._onDragOver(n)}}},mn=function(e){St&&St.parentNode[bt]._isOutsideThisEl(e.target)};function fn(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=Ue({},t),e[bt]=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 cn(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!==fn.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in wt.initializePlugins(this,e,o),o)!(r in t)&&(t[r]=o[r]);for(var i in un(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&sn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Qe(e,"pointerdown",this._onTapStart):(Qe(e,"mousedown",this._onTapStart),Qe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Qe(e,"dragover",this),Qe(e,"dragenter",this)),Kt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ue(this,(a=[],{captureAnimationState:function(){a=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==ot(e,"display")&&e!==fn.ghost){a.push({target:e,rect:st(e)});var t=ze({},a[a.length-1].rect);if(e.thisAnimationDuration){var n=rt(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,r=0;a.forEach((function(e){var n=0,a=e.target,i=a.fromRect,l=st(a),s=a.prevFromRect,d=a.prevToRect,c=e.rect,u=rt(a,!0);u&&(l.top-=u.f,l.left-=u.e),a.toRect=l,a.thisAnimationDuration&&mt(s,l)&&!mt(i,l)&&(c.top-l.top)/(c.left-l.left)==(i.top-l.top)/(i.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}(c,s,d,t.options)),mt(l,i)||(a.prevFromRect=i,a.prevToRect=l,n||(n=t.options.animation),t.animate(a,c,l,n)),n&&(o=!0,r=Math.max(r,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()}),r):"function"==typeof e&&e(),a=[]},animate:function(e,t,n,a){if(a){ot(e,"transition",""),ot(e,"transform","");var o=rt(this.el),r=o&&o.a,i=o&&o.d,l=(t.left-n.left)/(r||1),s=(t.top-n.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,ot(e,"transform","translate3d("+l+"px,"+s+"px,0)"),function(e){e.offsetWidth}(e),ot(e,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),ot(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){ot(e,"transition",""),ot(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),a)}}}))}function vn(e,t,n,a,o,r,i,l){var s,d,c=e[bt],u=c.options.onMove;return!window.CustomEvent||Ye||Xe?(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=r||st(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),u&&(d=u.call(c,s,i)),d}function An(e){e.draggable=!1}function bn(){nn=!1}function yn(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 Cn(e){return setTimeout(e,0)}function wn(e){return clearTimeout(e)}fn.prototype={constructor:fn,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||($t=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,St):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,o=a.preventOnFilter,r=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,d=a.filter;if(function(e){an.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var a=t[n];a.checked&&an.push(a)}}(n),!St&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||a.disabled||s.isContentEditable||(l=et(l,a.draggable,n,!1))&&l.animated||Mt===l)){if(Pt=pt(l),Ot=pt(l,a.draggable),"function"==typeof d){if(d.call(this,e,l,this))return xt({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),_t("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(d&&(d=d.split(",").some((function(a){if(a=et(s,a.trim(),n,!1))return xt({sortable:t,rootEl:a,name:"filter",targetEl:l,fromEl:n,toEl:n}),_t("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());a.handle&&!et(s,a.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var a,o=this,r=o.el,i=o.options,l=r.ownerDocument;if(n&&!St&&n.parentNode===r){var s=st(n);if(Dt=r,kt=(St=n).parentNode,Tt=St.nextSibling,Mt=n,Bt=i.group,fn.dragged=St,Rt={target:St,clientX:(t||e).clientX,clientY:(t||e).clientY},Yt=Rt.clientX-s.left,Xt=Rt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,St.style["will-change"]="all",a=function(){_t("delayEnded",o,{evt:e}),fn.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!He&&o.nativeDraggable&&(St.draggable=!0),o._triggerDragStart(e,t),xt({sortable:o,name:"choose",originalEvent:e}),at(St,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){it(St,e.trim(),An)})),Qe(l,"dragover",gn),Qe(l,"mousemove",gn),Qe(l,"touchmove",gn),Qe(l,"mouseup",o._onDrop),Qe(l,"touchend",o._onDrop),Qe(l,"touchcancel",o._onDrop),He&&this.nativeDraggable&&(this.options.touchStartThreshold=4,St.draggable=!0),_t("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(Xe||Ye))a();else{if(fn.eventCanceled)return void this._onDrop();Qe(l,"mouseup",o._disableDelayedDrag),Qe(l,"touchend",o._disableDelayedDrag),Qe(l,"touchcancel",o._disableDelayedDrag),Qe(l,"mousemove",o._delayedDragTouchMoveHandler),Qe(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&Qe(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,i.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(){St&&An(St),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ze(e,"mouseup",this._disableDelayedDrag),Ze(e,"touchend",this._disableDelayedDrag),Ze(e,"touchcancel",this._disableDelayedDrag),Ze(e,"mousemove",this._delayedDragTouchMoveHandler),Ze(e,"touchmove",this._delayedDragTouchMoveHandler),Ze(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Qe(document,"pointermove",this._onTouchMove):Qe(document,t?"touchmove":"mousemove",this._onTouchMove):(Qe(St,"dragend",this),Qe(Dt,"dragstart",this._onDragStart));try{document.selection?Cn((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Qt=!1,Dt&&St){_t("dragStarted",this,{evt:t}),this.nativeDraggable&&Qe(document,"dragover",mn);var n=this.options;!e&&at(St,n.dragClass,!1),at(St,n.ghostClass,!0),fn.active=this,e&&this._appendGhost(),xt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ut){this._lastX=Ut.clientX,this._lastY=Ut.clientY,pn();for(var e=document.elementFromPoint(Ut.clientX,Ut.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ut.clientX,Ut.clientY))!==t;)t=e;if(St.parentNode[bt]._isOutsideThisEl(e),t)do{if(t[bt]&&t[bt]._onDragOver({clientX:Ut.clientX,clientY:Ut.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);hn()}},_onTouchMove:function(e){if(Rt){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,o=e.touches?e.touches[0]:e,r=Nt&&rt(Nt,!0),i=Nt&&r&&r.a,l=Nt&&r&&r.d,s=rn&&Wt&&ht(Wt),d=(o.clientX-Rt.clientX+a.x)/(i||1)+(s?s[0]-tn[0]:0)/(i||1),c=(o.clientY-Rt.clientY+a.y)/(l||1)+(s?s[1]-tn[1]:0)/(l||1);if(!fn.active&&!Qt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Nt){r?(r.e+=d-(zt||0),r.f+=c-(Vt||0)):r={a:1,b:0,c:0,d:1,e:d,f:c};var u="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");ot(Nt,"webkitTransform",u),ot(Nt,"mozTransform",u),ot(Nt,"msTransform",u),ot(Nt,"transform",u),zt=d,Vt=c,Ut=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Nt){var e=this.options.fallbackOnBody?document.body:Dt,t=st(St,!0,rn,!0,e),n=this.options;if(rn){for(Wt=e;"static"===ot(Wt,"position")&&"none"===ot(Wt,"transform")&&Wt!==document;)Wt=Wt.parentNode;Wt!==document.body&&Wt!==document.documentElement?(Wt===document&&(Wt=lt()),t.top+=Wt.scrollTop,t.left+=Wt.scrollLeft):Wt=lt(),tn=ht(Wt)}at(Nt=St.cloneNode(!0),n.ghostClass,!1),at(Nt,n.fallbackClass,!0),at(Nt,n.dragClass,!0),ot(Nt,"transition",""),ot(Nt,"transform",""),ot(Nt,"box-sizing","border-box"),ot(Nt,"margin",0),ot(Nt,"top",t.top),ot(Nt,"left",t.left),ot(Nt,"width",t.width),ot(Nt,"height",t.height),ot(Nt,"opacity","0.8"),ot(Nt,"position",rn?"absolute":"fixed"),ot(Nt,"zIndex","100000"),ot(Nt,"pointerEvents","none"),fn.ghost=Nt,e.appendChild(Nt),ot(Nt,"transform-origin",Yt/parseInt(Nt.style.width)*100+"% "+Xt/parseInt(Nt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,a=e.dataTransfer,o=n.options;_t("dragStart",this,{evt:e}),fn.eventCanceled?this._onDrop():(_t("setupClone",this),fn.eventCanceled||((Et=At(St)).draggable=!1,Et.style["will-change"]="",this._hideClone(),at(Et,this.options.chosenClass,!1),fn.clone=Et),n.cloneId=Cn((function(){_t("clone",n),fn.eventCanceled||(n.options.removeCloneOnHide||Dt.insertBefore(Et,St),n._hideClone(),xt({sortable:n,name:"clone"}))})),!t&&at(St,o.dragClass,!0),t?(Zt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ze(document,"mouseup",n._onDrop),Ze(document,"touchend",n._onDrop),Ze(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,St)),Qe(document,"drop",n),ot(St,"transform","translateZ(0)")),Qt=!0,n._dragStartId=Cn(n._dragStarted.bind(n,t,e)),Qe(document,"selectstart",n),Ht=!0,$e&&ot(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,a,o,r=this.el,i=e.target,l=this.options,s=l.group,d=fn.active,c=Bt===s,u=l.sort,p=jt||d,h=this,g=!1;if(!nn){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),i=et(i,l.draggable,r,!0),D("dragOver"),fn.eventCanceled)return g;if(St.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||h._ignoreWhileAnimating===i)return M(!1);if(Zt=!1,d&&!l.disabled&&(c?u||(a=!Dt.contains(St)):jt===this||(this.lastPutMode=Bt.checkPull(this,d,St,e))&&s.checkPut(this,d,St,e))){if(o="vertical"===this._getDirection(e,i),t=st(St),D("dragOverValid"),fn.eventCanceled)return g;if(a)return kt=Dt,T(),this._hideClone(),D("revert"),fn.eventCanceled||(Tt?Dt.insertBefore(St,Tt):Dt.appendChild(St)),M(!0);var m=ut(r,l.draggable);if(!m||function(e,t,n){var a=st(ut(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)&&!m.animated){if(m===St)return M(!1);if(m&&r===e.target&&(i=m),i&&(n=st(i)),!1!==vn(Dt,r,St,t,i,n,e,!!i))return T(),r.appendChild(St),kt=r,E(),M(!0)}else if(i.parentNode===r){n=st(i);var f,v,A,b=St.parentNode!==r,y=!function(e,t,n){var a=n?e.left:e.top,o=n?e.right:e.bottom,r=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return a===i||o===l||a+r/2===i+s/2}(St.animated&&St.toRect||t,i.animated&&i.toRect||n,o),C=o?"top":"left",w=dt(i,"top","top")||dt(St,"top","top"),_=w?w.scrollTop:void 0;if($t!==i&&(v=n[C],Jt=!1,en=!y&&l.invertSwap||b),f=function(e,t,n,a,o,r,i,l){var s=a?e.clientY:e.clientX,d=a?n.height:n.width,c=a?n.top:n.left,u=a?n.bottom:n.right,p=!1;if(!i)if(l&&Gt<d*o){if(!Jt&&(1===qt?s>c+d*r/2:s<u-d*r/2)&&(Jt=!0),Jt)p=!0;else if(1===qt?s<c+Gt:s>u-Gt)return-qt}else if(s>c+d*(1-o)/2&&s<u-d*(1-o)/2)return function(e){return pt(St)<pt(e)?1:-1}(t);return(p=p||i)&&(s<c+d*r/2||s>u-d*r/2)?s>c+d/2?1:-1:0}(e,i,n,o,y?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,en,$t===i),0!==f){var x=pt(St);do{x-=f,A=kt.children[x]}while(A&&("none"===ot(A,"display")||A===Nt))}if(0===f||A===i)return M(!1);$t=i,qt=f;var S=i.nextElementSibling,k=!1,N=vn(Dt,r,St,t,i,n,e,k=1===f);if(!1!==N)return 1!==N&&-1!==N||(k=1===N),nn=!0,setTimeout(bn,30),T(),k&&!S?r.appendChild(St):i.parentNode.insertBefore(St,k?S:i),w&&vt(w,0,_-w.scrollTop),kt=St.parentNode,void 0===v||en||(Gt=Math.abs(v-st(i)[C])),E(),M(!0)}if(r.contains(St))return M(!1)}return!1}function D(l,s){_t(l,h,ze({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:a,dragRect:t,targetRect:n,canSort:u,fromSortable:p,target:i,completed:M,onMove:function(n,a){return vn(Dt,r,St,t,n,st(n),e,a)},changed:E},s))}function T(){D("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function M(t){return D("dragOverCompleted",{insertion:t}),t&&(c?d._hideClone():d._showClone(h),h!==p&&(at(St,jt?jt.options.ghostClass:d.options.ghostClass,!1),at(St,l.ghostClass,!0)),jt!==h&&h!==fn.active?jt=h:h===fn.active&&jt&&(jt=null),p===h&&(h._ignoreWhileAnimating=i),h.animateAll((function(){D("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===St&&!St.animated||i===r&&!i.animated)&&($t=null),l.dragoverBubble||e.rootEl||i===document||(St.parentNode[bt]._isOutsideThisEl(e.target),!t&&gn(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function E(){Lt=pt(St),Ft=pt(St,l.draggable),xt({sortable:h,name:"change",toEl:r,newIndex:Lt,newDraggableIndex:Ft,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ze(document,"mousemove",this._onTouchMove),Ze(document,"touchmove",this._onTouchMove),Ze(document,"pointermove",this._onTouchMove),Ze(document,"dragover",gn),Ze(document,"mousemove",gn),Ze(document,"touchmove",gn)},_offUpEvents:function(){var e=this.el.ownerDocument;Ze(e,"mouseup",this._onDrop),Ze(e,"touchend",this._onDrop),Ze(e,"pointerup",this._onDrop),Ze(e,"touchcancel",this._onDrop),Ze(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Lt=pt(St),Ft=pt(St,n.draggable),_t("drop",this,{evt:e}),kt=St&&St.parentNode,Lt=pt(St),Ft=pt(St,n.draggable),fn.eventCanceled||(Qt=!1,en=!1,Jt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),wn(this.cloneId),wn(this._dragStartId),this.nativeDraggable&&(Ze(document,"drop",this),Ze(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),$e&&ot(document.body,"user-select",""),ot(St,"transform",""),e&&(Ht&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),(Dt===kt||jt&&"clone"!==jt.lastPutMode)&&Et&&Et.parentNode&&Et.parentNode.removeChild(Et),St&&(this.nativeDraggable&&Ze(St,"dragend",this),An(St),St.style["will-change"]="",Ht&&!Qt&&at(St,jt?jt.options.ghostClass:this.options.ghostClass,!1),at(St,this.options.chosenClass,!1),xt({sortable:this,name:"unchoose",toEl:kt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Dt!==kt?(Lt>=0&&(xt({rootEl:kt,name:"add",toEl:kt,fromEl:Dt,originalEvent:e}),xt({sortable:this,name:"remove",toEl:kt,originalEvent:e}),xt({rootEl:kt,name:"sort",toEl:kt,fromEl:Dt,originalEvent:e}),xt({sortable:this,name:"sort",toEl:kt,originalEvent:e})),jt&&jt.save()):Lt!==Pt&&Lt>=0&&(xt({sortable:this,name:"update",toEl:kt,originalEvent:e}),xt({sortable:this,name:"sort",toEl:kt,originalEvent:e})),fn.active&&(null!=Lt&&-1!==Lt||(Lt=Pt,Ft=Ot),xt({sortable:this,name:"end",toEl:kt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){_t("nulling",this),Dt=St=kt=Nt=Tt=Et=Mt=It=Rt=Ut=Ht=Lt=Ft=Pt=Ot=$t=qt=jt=Bt=fn.dragged=fn.ghost=fn.clone=fn.active=null,an.forEach((function(e){e.checked=!0})),an.length=zt=Vt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":St&&(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,r=this.options;a<o;a++)et(e=n[a],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||yn(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,a){var o=n.children[a];et(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 et(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=wt.modifyOption(this,e,t);n[e]=void 0!==a?a:t,"group"===e&&un(n)},destroy:function(){_t("destroy",this);var e=this.el;e[bt]=null,Ze(e,"mousedown",this._onTapStart),Ze(e,"touchstart",this._onTapStart),Ze(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ze(e,"dragover",this),Ze(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Kt.splice(Kt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!It){if(_t("hideClone",this),fn.eventCanceled)return;ot(Et,"display","none"),this.options.removeCloneOnHide&&Et.parentNode&&Et.parentNode.removeChild(Et),It=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(It){if(_t("showClone",this),fn.eventCanceled)return;Dt.contains(St)&&!this.options.group.revertClone?Dt.insertBefore(Et,St):Tt?Dt.insertBefore(Et,Tt):Dt.appendChild(Et),this.options.group.revertClone&&this.animate(St,Et),ot(Et,"display",""),It=!1}}else this._hideClone()}},on&&Qe(document,"touchmove",(function(e){(fn.active||Qt)&&e.cancelable&&e.preventDefault()})),fn.utils={on:Qe,off:Ze,css:ot,find:it,is:function(e,t){return!!et(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:ft,closest:et,toggleClass:at,clone:At,index:pt,nextTick:Cn,cancelNextTick:wn,detectDirection:cn,getChild:ct},fn.get=function(e){return e[bt]},fn.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&&(fn.utils=ze({},fn.utils,e.utils)),wt.mount(e)}))},fn.create=function(e,t){return new fn(e,t)},fn.version="1.10.2";var _n,xn,Sn,kn,Nn,Dn,Tn=[],Mn=!1;function En(){Tn.forEach((function(e){clearInterval(e.pid)})),Tn=[]}function In(){clearInterval(Dn)}var Pn=ft((function(e,t,n,a){if(t.scroll){var o,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,d=lt(),c=!1;xn!==n&&(xn=n,En(),_n=t.scroll,o=t.scrollFn,!0===_n&&(_n=gt(n,!0)));var u=0,p=_n;do{var h=p,g=st(h),m=g.top,f=g.bottom,v=g.left,A=g.right,b=g.width,y=g.height,C=void 0,w=void 0,_=h.scrollWidth,x=h.scrollHeight,S=ot(h),k=h.scrollLeft,N=h.scrollTop;h===d?(C=b<_&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),w=y<x&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(C=b<_&&("auto"===S.overflowX||"scroll"===S.overflowX),w=y<x&&("auto"===S.overflowY||"scroll"===S.overflowY));var D=C&&(Math.abs(A-r)<=l&&k+b<_)-(Math.abs(v-r)<=l&&!!k),T=w&&(Math.abs(f-i)<=l&&N+y<x)-(Math.abs(m-i)<=l&&!!N);if(!Tn[u])for(var M=0;M<=u;M++)Tn[M]||(Tn[M]={});Tn[u].vx==D&&Tn[u].vy==T&&Tn[u].el===h||(Tn[u].el=h,Tn[u].vx=D,Tn[u].vy=T,clearInterval(Tn[u].pid),0==D&&0==T||(c=!0,Tn[u].pid=setInterval(function(){a&&0===this.layer&&fn.active._onTouchMove(Nn);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(fn.dragged.parentNode[bt],n,t,e,Nn,Tn[this.layer].el)||vt(Tn[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==d&&(p=gt(p,!1)));Mn=c}}),30),Ln=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;i();var d=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(d.clientX,d.clientY);l(),s&&!s.el.contains(c)&&(r("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function On(){}function Fn(){}On.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=ct(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},Ue(On,{pluginName:"revertOnSpill"}),Fn.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},Ue(Fn,{pluginName:"removeOnSpill"}),fn.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?Qe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Qe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Qe(document,"touchmove",this._handleFallbackAutoScroll):Qe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ze(document,"dragover",this._handleAutoScroll):(Ze(document,"pointermove",this._handleFallbackAutoScroll),Ze(document,"touchmove",this._handleFallbackAutoScroll),Ze(document,"mousemove",this._handleFallbackAutoScroll)),In(),En(),clearTimeout(tt),tt=void 0},nulling:function(){Nn=xn=_n=Mn=Dn=Sn=kn=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,r=document.elementFromPoint(a,o);if(Nn=e,t||Xe||Ye||$e){Pn(e,this.options,r,t);var i=gt(r,!0);!Mn||Dn&&a===Sn&&o===kn||(Dn&&In(),Dn=setInterval((function(){var r=gt(document.elementFromPoint(a,o),!0);r!==i&&(i=r,En()),Pn(e,n.options,r,t)}),10),Sn=a,kn=o)}else{if(!this.options.bubbleScroll||gt(r,!0)===lt())return void En();Pn(e,this.options,gt(r,!1),!1)}}},Ue(e,{pluginName:"scroll",initializeByDefault:!0})}),fn.mount(Fn,On);const Bn=fn;function jn(e,t,n={}){let a;const{document:o=Be,...i}=n,l={onUpdate:e=>{!function(e,t,n){const a=(0,r.i9)(e),o=a?[...(0,Fe.BA)(e)]:(0,Fe.BA)(e);if(n>=0&&n<o.length){const i=o.splice(t,1)[0];(0,r.dY)((()=>{o.splice(n,0,i),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=(0,Fe.BA)(e);return null!=(t=null==n?void 0:n.$el)?t:n}(e);t&&void 0===a&&(a=new Bn(t,{...l,...i}))},d=()=>{null==a||a.destroy(),a=void 0};return(0,Fe.rd)(s),(0,Fe.Uo)(d),{stop:d,start:s,option:(e,t)=>{if(void 0===t)return null==a?void 0:a.option(e);null==a||a.option(e,t)}}}var Rn=a(54914),Un=a(39017),zn=a(68560);const Vn=(0,r.pM)({name:"AppOrderSelectorElement",components:{IconArrowDown:Un.A,IconArrowUp:zn.A,NcButton:le.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,r.KR)(),o=(0,r.KR)();let i=0;return{buttonUp:a,buttonDown:o,moveUp:()=>{n("move:up"),i=1},moveDown:()=>{n("move:down"),i=-1},keepFocus:()=>{0!==i&&(1!==i&&!e.isLast||e.isFirst?(0,r.dY)((()=>o.value.$el.focus())):(0,r.dY)((()=>a.value.$el.focus()))),i=0},t:Le.Tl}}});var Yn=a(56725),Xn={};Xn.styleTagTransform=D(),Xn.setAttributes=x(),Xn.insert=w().bind(null,"head"),Xn.domAPI=y(),Xn.insertStyleElement=k(),A()(Yn.A,Xn),Yn.A&&Yn.A.locals&&Yn.A.locals;const Hn=(0,E.A)(Vn,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{class:{"order-selector-element":!0,"order-selector-element--disabled":e.app.default},attrs:{"data-cy-app-order-element":e.app.id},on:{focusin:function(t){return e.$emit("update:focus")}}},[t("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 20 20",role:"presentation"}},[t("image",{staticClass:"order-selector-element__icon",attrs:{preserveAspectRatio:"xMinYMin meet",x:"0",y:"0",width:"20",height:"20","xlink:href":e.app.icon}})]),e._v(" "),t("div",{staticClass:"order-selector-element__label"},[e._v("\n\t\t"+e._s(e.app.label??e.app.id)+"\n\t")]),e._v(" "),t("div",{staticClass:"order-selector-element__actions"},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:!e.isFirst&&!e.app.default,expression:"!isFirst && !app.default"}],ref:"buttonUp",attrs:{"aria-label":e.t("settings","Move up"),"aria-describedby":e.ariaDescribedby,"aria-details":e.ariaDetails,"data-cy-app-order-button":"up",type:"tertiary-no-background"},on:{click:e.moveUp},scopedSlots:e._u([{key:"icon",fn:function(){return[t("IconArrowUp",{attrs:{size:20}})]},proxy:!0}])}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isFirst||!!e.app.default,expression:"isFirst || !!app.default"}],staticClass:"order-selector-element__placeholder",attrs:{"aria-hidden":"true"}}),e._v(" "),t("NcButton",{directives:[{name:"show",rawName:"v-show",value:!e.isLast&&!e.app.default,expression:"!isLast && !app.default"}],ref:"buttonDown",attrs:{"aria-label":e.t("settings","Move down"),"aria-describedby":e.ariaDescribedby,"aria-details":e.ariaDetails,"data-cy-app-order-button":"down",type:"tertiary-no-background"},on:{click:e.moveDown},scopedSlots:e._u([{key:"icon",fn:function(){return[t("IconArrowDown",{attrs:{size:20}})]},proxy:!0}])}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isLast||!!e.app.default,expression:"isLast || !!app.default"}],staticClass:"order-selector-element__placeholder",attrs:{"aria-hidden":"true"}})],1)])}),[],!1,null,"e25020e8",null).exports,$n=(0,r.pM)({name:"AppOrderSelector",components:{AppOrderSelectorElement:Hn,Fragment:Rn.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,r.KR)(null),o=(0,r.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):i.value+=1}}),i=(0,r.KR)(0);jn(a,o,{filter:".order-selector-element--disabled"});const l=(0,r.KR)([]);(0,r.$u)((()=>{l.value.forEach((e=>e.keepFocus()))}));const s=(0,r.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=>{const a=t>1?e.value.slice(0,t-1):[];if(e.value[t-1]?.default)return;const o=[e.value[t-1]];t<e.value.length-1&&o.push(...e.value.slice(t+1)),n("update:value",[...a,e.value[t],...o])},statusInfoId:`sorting-status-info-${(Math.random()+1).toString(36).substring(7)}`,statusInfo:s,updateStatusInfo:t=>{s.value=(0,Le.Tl)("theming","Current selected app: {app}, position {position} of {total}",{app:e.value[t].label,position:t+1,total:e.value.length})},renderCount:i,selectorElements:l}}}),qn=$n;var Gn=a(42797),Wn={};Wn.styleTagTransform=D(),Wn.setAttributes=x(),Wn.insert=w().bind(null,"head"),Wn.domAPI=y(),Wn.insertStyleElement=k(),A()(Gn.A,Wn),Gn.A&&Gn.A.locals&&Gn.A.locals;var Qn=(0,E.A)(qn,(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:`${n.id}${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,"3c4840b5",null);const Zn=Qn.exports,Kn=(0,r.pM)({name:"AppMenuSection",components:{AppOrderSelector:Zn,NcCheckboxRadioSwitch:d.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,r.EW)({get:()=>e.defaultApps.length>0,set:e=>{e?n("update:defaultApps",["dashboard","files"]):l.value=[]}}),o=(0,i.C)("core","apps").map((e=>{let{id:t,name:n,icon:a}=e;return{label:n,id:t,icon:a}})),l=(0,r.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,Pe.Qg)((0,Le.Tl)("theming","Could not set global default apps"))))}}),s=async(e,t)=>{const n=(0,u.Jv)("/apps/theming/ajax/updateAppMenu");return await c.Ay.put(n,{setting:e,value:t})};return{allApps:o,selectedApps:l,hasCustomDefaultApp:a,t:Le.Tl}}}),Jn=Kn;var ea=a(66301),ta={};ta.styleTagTransform=D(),ta.setAttributes=x(),ta.insert=w().bind(null,"head"),ta.domAPI=y(),ta.insertStyleElement=k(),A()(ea.A,ta),ea.A&&ea.A.locals&&ea.A.locals;const na=(0,E.A)(Jn,(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,"a77172e2",null).exports,{defaultBackgroundURL:aa,backgroundMime:oa,backgroundURL:ra,backgroundColor:ia,canThemeIcons:la,docUrl:sa,docUrlIcons:da,faviconMime:ca,isThemable:ua,legalNoticeUrl:pa,logoheaderMime:ha,logoMime:ga,name:ma,notThemableErrorMessage:fa,primaryColor:va,privacyPolicyUrl:Aa,slogan:ba,url:ya,userThemingDisabled:Ca,defaultApps:wa}=(0,i.C)("theming","adminThemingParameters"),_a=[{name:"name",value:ma,defaultValue:"Nextcloud",type:"text",displayName:t("theming","Name"),placeholder:t("theming","Name"),maxlength:250},{name:"url",value:ya,defaultValue:"https://nextcloud.com",type:"url",displayName:t("theming","Web link"),placeholder:"https://…",maxlength:500},{name:"slogan",value:ba,defaultValue:t("theming","a safe home for all your data"),type:"text",displayName:t("theming","Slogan"),placeholder:t("theming","Slogan"),maxlength:500}],xa={name:"primary_color",value:va,defaultValue:"#0082c9",displayName:t("theming","Primary color"),description:t("theming","The primary color is used for highlighting elements like important buttons. It might get slightly adjusted depending on the current color schema.")},Sa=[{name:"imprintUrl",value:pa,defaultValue:"",type:"url",displayName:t("theming","Legal notice link"),placeholder:"https://…",maxlength:500},{name:"privacyUrl",value:Aa,defaultValue:"",type:"url",displayName:t("theming","Privacy policy link"),placeholder:"https://…",maxlength:500}],ka=[{name:"logoheader",mimeName:"logoheaderMime",mimeValue:ha,defaultMimeValue:"",displayName:t("theming","Header logo"),ariaLabel:t("theming","Upload new header logo")},{name:"favicon",mimeName:"faviconMime",mimeValue:ca,defaultMimeValue:"",displayName:t("theming","Favicon"),ariaLabel:t("theming","Upload new favicon")}],Na={name:"disable-user-theming",value:Ca,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.")},Da={name:"AdminTheming",components:{AppMenuSection:na,CheckboxField:I,ColorPickerField:ye,FileInputField:De,NcNoteCard:l.A,NcSettingsSection:s.A,TextField:Ie},data:()=>({backgroundMime:oa,backgroundURL:ra,backgroundColor:ia,defaultBackgroundColor:"#0069c3",logoMime:ga,textFields:_a,primaryColorPickerField:xa,advancedTextFields:Sa,advancedFileInputFields:ka,userThemingField:Na,defaultApps:wa,canThemeIcons:la,docUrl:sa,docUrlIcons:da,isThemable:ua,notThemableErrorMessage:fa}),computed:{cssBackgroundImage(){return this.backgroundURL?`url('${this.backgroundURL}')`:"unset"}},watch:{backgroundMime(){""===this.backgroundMime?this.backgroundURL=aa:"backgroundColor"===this.backgroundMime&&(this.backgroundURL="")},async backgroundURL(){if(""!==this.backgroundURL){const e=await this.calculateDefaultBackground();this.defaultBackgroundColor=e,this.backgroundColor=e}}},async mounted(){this.backgroundURL&&(this.defaultBackgroundColor=await this.calculateDefaultBackground())},methods:{refreshStyles:async function(){const e=[...document.head.querySelectorAll("link.theme")].map((e=>new Promise((t=>{const n=new URL(e.href);n.searchParams.set("v",Date.now());const a=e.cloneNode();a.href=n.toString(),a.onload=()=>{e.remove(),t()},document.head.append(a)}))));await Promise.allSettled(e)},calculateDefaultBackground(){const e=e=>`00${e.toString(16)}`.slice(-2);return new Promise(((t,n)=>{const a=new Image;a.src=this.backgroundURL,a.onload=()=>{const n=document.createElement("canvas").getContext("2d");n.imageSmoothingEnabled=!0,n.drawImage(a,0,0,1,1),t("#"+[...n.getImageData(0,0,1,1).data.slice(0,3)].map(e).join(""))},a.onerror=n}))}}},Ta=()=>{(0,r.$9)(((e,t)=>({d24be8b0:e.backgroundColor,ca1952d2:e.cssBackgroundImage})))},Ma=Da.setup;Da.setup=Ma?(e,t)=>(Ta(),Ma(e,t)):Ta;const Ea=Da;var Ia=a(28695),Pa={};Pa.styleTagTransform=D(),Pa.setAttributes=x(),Pa.insert=w().bind(null,"head"),Pa.domAPI=y(),Pa.insertStyleElement=k(),A()(Ia.A,Pa),Ia.A&&Ia.A.locals&&Ia.A.locals;const La=(0,E.A)(Ea,(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":e.refreshStyles}})})),e._v(" "),t("ColorPickerField",{attrs:{name:e.primaryColorPickerField.name,description:e.primaryColorPickerField.description,"default-value":e.primaryColorPickerField.defaultValue,"display-name":e.primaryColorPickerField.displayName,value:e.primaryColorPickerField.value,"data-admin-theming-setting-primary-color":""},on:{"update:value":function(t){return e.$set(e.primaryColorPickerField,"value",t)},"update:theming":e.refreshStyles}}),e._v(" "),t("ColorPickerField",{attrs:{name:"background_color",description:e.t("theming","Instead of a background image you can also configure a plain background color. If you use a background image changing this color will influence the color of the app menu icons."),"default-value":e.defaultBackgroundColor,"display-name":e.t("theming","Background color"),value:e.backgroundColor,"data-admin-theming-setting-background-color":""},on:{"update:defaultValue":function(t){e.defaultBackgroundColor=t},"update:default-value":function(t){e.defaultBackgroundColor=t},"update:value":function(t){e.backgroundColor=t},"update:theming":e.refreshStyles}}),e._v(" "),t("FileInputField",{attrs:{"aria-label":e.t("theming","Upload new logo"),"data-admin-theming-setting-file":"logo","display-name":e.t("theming","Logo"),"mime-name":"logoMime","mime-value":e.logoMime,name:"logo"},on:{"update:mimeValue":function(t){e.logoMime=t},"update:mime-value":function(t){e.logoMime=t},"update:theming":e.refreshStyles}}),e._v(" "),t("FileInputField",{attrs:{"aria-label":e.t("theming","Upload new background and login image"),"data-admin-theming-setting-file":"background","display-name":e.t("theming","Background and login image"),"mime-name":"backgroundMime","mime-value":e.backgroundMime,name:"background"},on:{"update:mimeValue":function(t){e.backgroundMime=t},"update:mime-value":function(t){e.backgroundMime=t},uploaded:function(t){e.backgroundURL=t},"update:theming":e.refreshStyles}}),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":e.refreshStyles}})})),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":e.refreshStyles}})})),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":e.refreshStyles}}),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,"4d6a2a5b",null).exports;a.nc=(0,o.aV)(),r.Ay.prototype.OC=OC,r.Ay.prototype.t=t,(new(r.Ay.extend(La))).$mount("#admin-theming")},28695:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r),l=n(4417),s=n.n(l),d=new URL(n(92281),n.b),c=i()(o()),u=s()(d);c.push([e.id,`.admin-theming[data-v-4d6a2a5b],.admin-theming-advanced[data-v-4d6a2a5b]{display:flex;flex-direction:column;gap:8px 0}.admin-theming__preview[data-v-4d6a2a5b]{width:230px;height:140px;background-size:cover;background-position:center;text-align:center;margin-top:10px;background-color:var(--d24be8b0);background-image:var(--ca1952d2)}.admin-theming__preview-logo[data-v-4d6a2a5b]{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,CACA,gCAAA,CACA,gCAAA,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\tbackground-color: v-bind('backgroundColor');\n\t\tbackground-image: v-bind('cssBackgroundImage');\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=c},42797:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r)()(o());i.push([e.id,".order-selector[data-v-3c4840b5]{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=i},56725:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r)()(o());i.push([e.id,".order-selector-element[data-v-e25020e8]{list-style:none;display:flex;flex-direction:row;align-items:center;gap:12px;padding-inline:12px}.order-selector-element[data-v-e25020e8]:hover{background-color:var(--color-background-hover);border-radius:var(--border-radius-large)}.order-selector-element--disabled[data-v-e25020e8]{border-color:var(--color-text-maxcontrast);color:var(--color-text-maxcontrast)}.order-selector-element--disabled .order-selector-element__icon[data-v-e25020e8]{opacity:75%}.order-selector-element__actions[data-v-e25020e8]{flex:0 0;display:flex;flex-direction:row;gap:6px}.order-selector-element__label[data-v-e25020e8]{flex:1 1;text-overflow:ellipsis;overflow:hidden}.order-selector-element__placeholder[data-v-e25020e8]{height:44px;width:44px}.order-selector-element__icon[data-v-e25020e8]{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=i},66301:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r)()(o());i.push([e.id,"h3[data-v-a77172e2],h4[data-v-a77172e2]{font-weight:bold}h4[data-v-a77172e2],h5[data-v-a77172e2]{margin-block-start:12px}.info-note[data-v-a77172e2]{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=i},21627:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r)()(o());i.push([e.id,"/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */.field[data-v-01119e21]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-01119e21]{display:flex;gap:0 4px}.field__description[data-v-01119e21]{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:"AAAA;;;EAAA,CAKA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCRD,qCACC,mCAAA",sourcesContent:["/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\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=i},965:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r)()(o());i.push([e.id,"/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */.field[data-v-444a87fb]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-444a87fb]{display:flex;gap:0 4px}.description[data-v-444a87fb]{color:var(--color-text-maxcontrast)}.field__button[data-v-444a87fb]{background-color:var(--a6aba0da) !important;color:var(--203da31b) !important}.field__color-preview[data-v-444a87fb]{width:var(--default-clickable-area);border-radius:var(--border-radius-large);background-color:var(--a6aba0da)}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/ColorPickerField.vue"],names:[],mappings:"AAAA;;;EAAA,CAKA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCVF,8BACC,mCAAA,CAIA,gCACC,2CAAA,CACA,gCAAA,CAGD,uCACC,mCAAA,CACA,wCAAA,CACA,gCAAA",sourcesContent:["/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\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.description {\n\tcolor: var(--color-text-maxcontrast);\n}\n\n.field {\n\t&__button {\n\t\tbackground-color: v-bind('value') !important;\n\t\tcolor: v-bind('usedTextColor') !important;\n\t}\n\n\t&__color-preview {\n\t\twidth: var(--default-clickable-area);\n\t\tborder-radius: var(--border-radius-large);\n\t\tbackground-color: v-bind('value');\n\t}\n}\n"],sourceRoot:""}]);const l=i},63240:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r)()(o());i.push([e.id,"/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */.field[data-v-aad790f8]{display:flex;flex-direction:column;gap:4px 0}.field__row[data-v-aad790f8]{display:flex;gap:0 4px}.field__loading-icon[data-v-aad790f8]{width:44px;height:44px}.field__preview[data-v-aad790f8]{width:70px;height:70px;background-size:contain;background-position:center;background-repeat:no-repeat;margin:10px 0}.field__preview--logoheader[data-v-aad790f8]{background-image:var(--image-logoheader)}.field__preview--favicon[data-v-aad790f8]{background-image:var(--image-favicon)}input[type=file][data-v-aad790f8]{display:none}","",{version:3,sources:["webpack://./apps/theming/src/components/admin/shared/field.scss","webpack://./apps/theming/src/components/admin/FileInputField.vue"],names:[],mappings:"AAAA;;;EAAA,CAKA,wBACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,6BACC,YAAA,CACA,SAAA,CCRD,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 * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\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=i},18847:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(71354),o=n.n(a),r=n(76314),i=n.n(r)()(o());i.push([e.id,".field[data-v-2839f6ea]{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=i},92281:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjEyOCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMjU2IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTI4IDdjLTI1Ljg3MSAwLTQ3LjgxNyAxNy40ODUtNTQuNzEzIDQxLjIwOS01Ljk3OTUtMTIuNDYxLTE4LjY0Mi0yMS4yMDktMzMuMjg3LTIxLjIwOS0yMC4zMDQgMC0zNyAxNi42OTYtMzcgMzdzMTYuNjk2IDM3IDM3IDM3YzE0LjY0NSAwIDI3LjMwOC04Ljc0ODEgMzMuMjg3LTIxLjIwOSA2Ljg5NTcgMjMuNzI0IDI4Ljg0MiA0MS4yMDkgNTQuNzEzIDQxLjIwOXM0Ny44MTctMTcuNDg1IDU0LjcxMy00MS4yMDljNS45Nzk1IDEyLjQ2MSAxOC42NDIgMjEuMjA5IDMzLjI4NyAyMS4yMDkgMjAuMzA0IDAgMzctMTYuNjk2IDM3LTM3cy0xNi42OTYtMzctMzctMzdjLTE0LjY0NSAwLTI3LjMwOCA4Ljc0ODEtMzMuMjg3IDIxLjIwOS02Ljg5NTctMjMuNzI0LTI4Ljg0Mi00MS4yMDktNTQuNzEzLTQxLjIwOXptMCAyMmMxOS40NiAwIDM1IDE1LjU0IDM1IDM1cy0xNS41NCAzNS0zNSAzNS0zNS0xNS41NC0zNS0zNSAxNS41NC0zNSAzNS0zNXptLTg4IDIwYzguNDE0NiAwIDE1IDYuNTg1NCAxNSAxNXMtNi41ODU0IDE1LTE1IDE1LTE1LTYuNTg1NC0xNS0xNSA2LjU4NTQtMTUgMTUtMTV6bTE3NiAwYzguNDE0NiAwIDE1IDYuNTg1NCAxNSAxNXMtNi41ODU0IDE1LTE1IDE1LTE1LTYuNTg1NC0xNS0xNSA2LjU4NTQtMTUgMTUtMTV6IiBjb2xvcj0iIzAwMDAwMCIgZmlsbD0iI2ZmZiIgc3R5bGU9Ii1pbmtzY2FwZS1zdHJva2U6bm9uZSIvPjwvc3ZnPgo="}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,e=[],i.O=(t,n,a,o)=>{if(!n){var r=1/0;for(c=0;c<e.length;c++){n=e[c][0],a=e[c][1],o=e[c][2];for(var l=!0,s=0;s<n.length;s++)(!1&o||r>=o)&&Object.keys(i.O).every((e=>i.O[e](n[s])))?n.splice(s--,1):(l=!1,o<r&&(r=o));if(l){e.splice(c--,1);var d=a();void 0!==d&&(t=d)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,a,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+"-"+e+".js?v="+{5706:"3153330af47fc26a725a",6127:"f0d0bf8b1ad724c3254b"}[e],i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},a="nextcloud:",i.l=(e,t,o,r)=>{if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];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,i.nc&&l.setAttribute("nonce",i.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)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=1320,(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(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(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{i.b=document.baseURI||self.location.href;var e={1320:0};i.f.j=(t,n)=>{var a=i.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 r=i.p+i.u(t),l=new Error;i.l(r,(n=>{if(i.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+r+")",l.name="ChunkLoadError",l.type=o,l.request=r,a[1](l)}}),"chunk-"+t,t)}},i.O.j=t=>0===e[t];var t=(t,n)=>{var a,o,r=n[0],l=n[1],s=n[2],d=0;if(r.some((t=>0!==e[t]))){for(a in l)i.o(l,a)&&(i.m[a]=l[a]);if(s)var c=s(i)}for(t&&t(n);d<r.length;d++)o=r[d],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(c)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var l=i.O(void 0,[4208],(()=>i(26571)));l=i.O(l)})();
//# sourceMappingURL=theming-admin-theming.js.map?v=b9c7968db4b99cb4be9f