You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud/dist/core-main.js

3 lines
909 KiB
JavaScript

/*! For license information please see core-main.js.LICENSE.txt */
(()=>{var e,i,o,r={41548:(e,i,o)=>{"use strict";var r={};o.r(r),o.d(r,{deleteKey:()=>k,getApps:()=>v,getKeys:()=>x,getValue:()=>w,setValue:()=>y});var s={};o.r(s),o.d(s,{formatLinksPlain:()=>fi,formatLinksRich:()=>Ai,plainToRich:()=>di,richToPlain:()=>pi});var a={};o.r(a),o.d(a,{dismiss:()=>bi,query:()=>mi}),o(84315),o(7452);var c=o(61338),l=o(4523),u=o(74692),h=o.n(u),d=o(85168),p=o(96763);const A={updatableNotification:null,getDefaultNotificationFunction:null,setDefault(t){this.getDefaultNotificationFunction=t},hide(t,e){l.default.isFunction(t)&&(e=t,t=void 0),t?(t.each((function(){h()(this)[0].toastify?h()(this)[0].toastify.hideToast():p.error("cannot hide toast because object is not set"),this===this.updatableNotification&&(this.updatableNotification=null)})),e&&e.call(),this.getDefaultNotificationFunction&&this.getDefaultNotificationFunction()):p.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:d.DH;const i=(0,d.rG)(t,e);return i.toastElement.toastify=i,h()(i.toastElement)},show(t,e){(e=e||{}).timeout=e.timeout?e.timeout:d.DH;const i=(0,d.rG)(function(t){return t.toString().split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;").split("'").join("&#039;")}(t),e);return i.toastElement.toastify=i,h()(i.toastElement)},showUpdate(t){return this.updatableNotification&&this.updatableNotification.hideToast(),this.updatableNotification=(0,d.rG)(t,{timeout:d.DH}),this.updatableNotification.toastElement.toastify=this.updatableNotification,h()(this.updatableNotification.toastElement)},showTemporary(t,e){(e=e||{}).timeout=e.timeout||d.aR;const i=(0,d.rG)(t,e);return i.toastElement.toastify=i,h()(i.toastElement)},isHidden:()=>!h()("#content").find(".toastify").length},f=l.default.throttle((()=>{A.showTemporary(t("core","Connection to server lost"))}),7e3,{trailing:!1});let g=!1;const m={enableDynamicSlideToggle(){g=!0},showAppSidebar:function(t){(t||h()("#app-sidebar")).removeClass("disappear").show(),h()("#app-content").trigger(new(h().Event)("appresized"))},hideAppSidebar:function(t){(t||h()("#app-sidebar")).hide().addClass("disappear"),h()("#app-content").trigger(new(h().Event)("appresized"))}};var b=o(99498);function C(t,e,i){"post"!==t&&"delete"!==t||!_t.PasswordConfirmation.requiresPasswordConfirmation()?(i=i||{},h().ajax({type:t.toUpperCase(),url:(0,b.KT)("apps/provisioning_api/api/v1/config/apps")+e,data:i.data||{},success:i.success,error:i.error})):_t.PasswordConfirmation.requirePasswordConfirmation(_.bind(C,this,t,e,i))}function v(t){C("get","",t)}function x(t,e){C("get","/"+t,e)}function w(t,e,i,n){(n=n||{}).data={defaultValue:i},C("get","/"+t+"/"+e,n)}function y(t,e,i,n){(n=n||{}).data={value:i},C("post","/"+t+"/"+e,n)}function k(t,e,i){C("delete","/"+t+"/"+e,i)}const B=window.oc_appconfig||{},E={getValue:function(t,e,i,n){w(t,e,i,{success:n})},setValue:function(t,e,i){y(t,e,i)},getApps:function(t){v({success:t})},getKeys:function(t,e){x(t,{success:e})},deleteKey:function(t,e){k(t,e)}},D=void 0!==window._oc_appswebroots&&window._oc_appswebroots;var I=o(21391),S=o.n(I),T=o(78112),M=o(96763);const P={create:"POST",update:"PROPPATCH",patch:"PROPPATCH",delete:"DELETE",read:"PROPFIND"};function O(t,e){if(l.default.isArray(t))return l.default.map(t,(function(t){return O(t,e)}));var i={href:t.href};return l.default.each(t.propStat,(function(t){if("HTTP/1.1 200 OK"===t.status)for(var n in t.properties){var o=n;n in e&&(o=e[n]),i[o]=t.properties[n]}})),i.id||(i.id=z(i.href)),i}function z(t){var e=t.indexOf("?");e>0&&(t=t.substr(0,e));var i,n=t.split("/");do{i=n[n.length-1],n.pop()}while(!i&&n.length>0);return i}function R(t){return t>=200&&t<=299}function H(t,e,i,n){return t.propPatch(e.url,function(t,e){var i,n={};for(i in t){var o=e[i],r=t[i];o||(M.warn('No matching DAV property for property "'+i),o=i),(l.default.isBoolean(r)||l.default.isNumber(r))&&(r=""+r),n[o]=r}return n}(i.changed,e.davProperties),n).then((function(t){R(t.status)?l.def
//# sourceMappingURL=core-main.js.map?v=1b47810c0aff9204f044