!function(){"use strict";varn,e={30320:function(n,e,a){varo=a(20144),r=a(16453),i=a(22200),s=a(47450),d=a.n(s),c=a(9980),l=a.n(c),A=a(4820),u=a(79753),p={data:function(){return{isMobile:this._isMobile()}},beforeMount:function(){window.addEventListener("resize",this._onResize)},beforeDestroy:function(){window.removeEventListener("resize",this._onResize)},methods:{_onResize:function(){this.isMobile=this._isMobile()},_isMobile:function(){returndocument.documentElement.clientWidth<768}}},g=function(t){return(0,u.generateFilePath)("dashboard","","img/")+t},b=function(t){varn=arguments.length>1&&void0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void0!==arguments[2]?arguments[2]:"";return"default"===t?e&&"backgroundColor"!==e?(0,u.generateUrl)("/apps/theming/image/background")+"?v="+window.OCA.Theming.cacheBuster:window.OCA.Accessibility&&"dark"===window.OCA.Accessibility.theme?g("eduardo-neves-pedra-azul.jpg"):g("kamil-porembinski-clouds.jpg"):"custom"===t?(0,u.generateUrl)("/apps/dashboard/background")+"?v="+n:g(t)};functionC(t,n,e,a,o,r,i){try{vars=t[r](i),d=s.value}catch(t){returnvoide(t)}s.done?n(d):Promise.resolve(d).then(a,o)}functionh(t){returnfunction(){varn=this,e=arguments;returnnewPromise((function(a,o){varr=t.apply(n,e);functioni(t){C(r,a,o,i,s,"next",t)}functions(t){C(r,a,o,i,s,"throw",t)}i(void0)}))}}varf=(0,r.loadState)("dashboard","shippedBackgrounds"),v={name:"BackgroundSettings",props:{background:{type:String,default:"default"},themingDefaultBackground:{type:String,default:""}},data:function(){return{backgroundImage:(0,u.generateUrl)("/apps/dashboard/background")+"?v="+Date.now(),loading:!1}},computed:{shippedBackgrounds:function(){returnObject.keys(f).map((function(t){return{name:t,url:g(t),preview:g("previews/"+t),details:f[t]}}))}},methods:{update:function(t){varn=this;returnh(regeneratorRuntime.mark((functione(){vara,o;returnregeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(a="custom"===t.type||"default"===t.type?t.type:t.value,n.backgroundImage=b(a,t.version,n.themingDefaultBackground),"color"!==t.type&&("default"!==t.type||"backgroundColor"!==n.themingDefaultBackground)){e.next=6;break}returnn.$emit("update:background",t),n.loading=!1,e.abrupt("return");case6:(o=newImage).onload=function(){n.$emit("update:background",t),n.loading=!1},o.src=n.backgroundImage;case9:case"end":returne.stop()}}),e)})))()},setDefault:function(){vart=this;returnh(regeneratorRuntime.mark((functionn(){vare;returnregeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case0:returnt.loading="default",n.next=3,A.default.post((0,u.generateUrl)("/apps/dashboard/background/default"));case3:e=n.sent,t.update(e.data);case5:case"end":returnn.stop()}}),n)})))()},setShipped:function(t){varn=this;returnh(regeneratorRuntime.mark((functione(){vara;returnregeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnn.loading=t,e.next=3,A.default.post((0,u.generateUrl)("/apps/dashboard/background/shipped"),{value:t});case3:a=e.sent,n.update(a.data);case5:case"end":returne.stop()}}),e)})))()},setFile:function(t){varn=this;returnh(regeneratorRuntime.mark((functione(){vara;returnregeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnn.loading="custom",e.next=3,A.default.post((0,u.generateUrl)("/apps/dashboard/background/custom"),{value:t});case3:a=e.sent,n.update(a.data);case5:case"end":returne.stop()}}),e)})))()},pickColor:function(){vart=this;returnh(regeneratorRuntime.mark((functionn(){vare,a;returnregeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case0:returnt.loading="color",e=OCA&&OCA.Theming?OCA.Theming.color:"#0082c9",n.next=4,A.default.post((0,u.generateUrl)("/apps/dashboard/background/color"),{value:e});case4:a=n.sent,t.update(a.data);case6:case"end":returnn.stop()}}),n)})))()},pickFile:function(){varn=this;window.OC.dialogs.filepicker(t("dashboard","Insert from {productName}",{productName:OC.theme.name}),(function(t,e){e===OC.dialogs.FILEPICKER_TYPE_CHOOSE&&n.setFile(