(()=>{vare,o,i,a={67991:(e,o,i)=>{"use strict";vara={};i.r(a),i.d(a,{deleteKey:()=>P,getApps:()=>x,getKeys:()=>k,getValue:()=>E,setValue:()=>B});varr={};i.r(r),i.d(r,{formatLinksPlain:()=>Xe,formatLinksRich:()=>Ve,plainToRich:()=>Ze,richToPlain:()=>Je});vars={};i.r(s),i.d(s,{dismiss:()=>en,query:()=>tn});varl=i(19755),c=i.n(l);letu=!1;constd={enableDynamicSlideToggle(){u=!0},showAppSidebar:function(t){(t||c()("#app-sidebar")).removeClass("disappear").show(),c()("#app-content").trigger(new(c().Event)("appresized"))},hideAppSidebar:function(t){(t||c()("#app-sidebar")).hide().addClass("disappear"),c()("#app-content").trigger(new(c().Event)("appresized"))}};i(28594),i(35666),i(35202);varA=i(69183),p=i(79753),h=i(25108);constm={},f=[];varg=i(18181),v=i(64024),C=i(25108);constb={updatableNotification:null,getDefaultNotificationFunction:null,setDefault(t){this.getDefaultNotificationFunction=t},hide(t,e){g.default.isFunction(t)&&(e=t,t=void0),t?(t.each((function(){c()(this)[0].toastify?c()(this)[0].toastify.hideToast():C.error("cannot hide toast because object is not set"),this===this.updatableNotification&&(this.updatableNotification=null)})),e&&e.call(),this.getDefaultNotificationFunction&&this.getDefaultNotificationFunction()):C.error("Missing argument $row in OC.Notification.hide() call, caller needs to be adjusted to only dismiss its own notification")},showHtml(t,e){(e=e||{}).isHTML=!0,e.timeout=e.timeout?e.timeout:v.Rl;constn=(0,v.PV)(t,e);returnn.toastElement.toastify=n,c()(n.toastElement)},show(t,e){(e=e||{}).timeout=e.timeout?e.timeout:v.Rl;constn=(0,v.PV)(function(t){returnt.toString().split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}(t),e);returnn.toastElement.toastify=n,c()(n.toastElement)},showUpdate(t){returnthis.updatableNotification&&this.updatableNotification.hideToast(),this.updatableNotification=(0,v.PV)(t,{timeout:v.Rl}),this.updatableNotification.toastElement.toastify=this.updatableNotification,c()(this.updatableNotification.toastElement)},showTemporary(t,e){(e=e||{}).timeout=e.timeout||v.TN;constn=(0,v.PV)(t,e);returnn.toastElement.toastify=n,c()(n.toastElement)},isHidden:()=>!c()("#content").find(".toastify").length},w=g.default.throttle((()=>{b.showTemporary(t("core","Connection to server lost"))}),7e3,{trailing:!1});functiony(t,e,n){"post"!==t&&"delete"!==t||!Ft.PasswordConfirmation.requiresPasswordConfirmation()?(n=n||{},c().ajax({type:t.toUpperCase(),url:(0,p.generateOcsUrl)("apps/provisioning_api/api/v1/config/apps")+e,data:n.data||{},success:n.success,error:n.error})):Ft.PasswordConfirmation.requirePasswordConfirmation(_.bind(y,this,t,e,n))}functionx(t){y("get","",t)}functionk(t,e){y("get","/"+t,e)}functionE(t,e,n,o){(o=o||{}).data={defaultValue:n},y("get","/"+t+"/"+e,o)}functionB(t,e,n,o){(o=o||{}).data={value:n},y("post","/"+t+"/"+e,o)}functionP(t,e,n){y("delete","/"+t+"/"+e,n)}constO=window.oc_appconfig||{},T={getValue:function(t,e,n,o){E(t,e,n,{success:o})},setValue:function(t,e,n){B(t,e,n)},getApps:function(t){x({success:t})},getKeys:function(t,e){k(t,{success:e})},deleteKey:function(t,e){P(t,e)}};varD=i(25108);constI=void0!==window._oc_appswebroots&&window._oc_appswebroots;varj=i(72316),z=i.n(j),N=i(76591),S=i(25108);constU={create:"POST",update:"PROPPATCH",patch:"PROPPATCH",delete:"DELETE",read:"PROPFIND"};functionM(t,e){if(g.default.isArray(t))returng.default.map(t,(function(t){returnM(t,e)}));varn={href:t.href};returng.default.each(t.propStat,(function(t){if("HTTP/1.1 200 OK"===t.status)for(varoint.properties){vari=o;oine&&(i=e[o]),n[i]=t.properties[o]}})),n.id||(n.id=L(n.href)),n}functionL(t){vare=t.indexOf("?");e>0&&(t=t.substr(0,e));varn,o=t.split("/");do{n=o[o.length-1],o.pop()}while(!n&&o.length>0);returnn}functionF(t){returnt>=200&&t<=299}functionR(t,e,n,o){returnt.propPatch(e.url,function(t,e){varn,o={};for(nint){vari=e[n],a=t[n];i||(S.warn('No matching DAV property for property "'+n),i=n),(g.default.isBoolean(a)||g.default.isNumber(a))&&(a=""+a),o[i]=a}