photos/js/photos-sidebar.js

3 lines
294 KiB
JavaScript
Raw Permalink Normal View History

/*! For license information please see photos-sidebar.js.LICENSE.txt */
(()=>{var t,e,n={22200:(t,e,n)=>{"use strict";var r=n(57888),o=void 0,i=[];r.subscribe("csrf-token-update",(function(t){o=t.token,i.forEach((function(e){try{e(t.token)}catch(t){console.error("error updating CSRF token observer",t)}}))}));var a=function(t,e){return t?t.getAttribute(e):null},s=void 0;e.getCurrentUser=function(){if(void 0!==s)return s;var t=null===document||void 0===document?void 0:document.getElementsByTagName("head")[0];if(!t)return null;var e=a(t,"data-user");return s=null===e?null:{uid:e,displayName:a(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin}},e.getRequestToken=function(){if(void 0===o){var t=null===document||void 0===document?void 0:document.getElementsByTagName("head")[0];o=t?t.getAttribute("data-requesttoken"):null}return o},e.onRequestTokenUpdate=function(t){i.push(t)}},97842:(t,e,n)=>{"use strict";e.c=void 0,n(15306);e.c=t=>window.location.protocol+"//"+window.location.host+(t=>i()+"/remote.php/"+t)(t);const r=(t,e,n)=>{const r=Object.assign({escape:!0},n||{});return"/"!==t.charAt(0)&&(t="/"+t),o=(o=e||{})||{},t.replace(/{([^{}]*)}/g,(function(t,e){var n=o[e];return r.escape?"string"==typeof n||"number"==typeof n?encodeURIComponent(n.toString()):encodeURIComponent(t):"string"==typeof n||"number"==typeof n?n.toString():t}));var o};const o=(t,e,n)=>{var r;const o=-1!==(null===(r=window)||void 0===r||null===(r=r.OC)||void 0===r||null===(r=r.coreApps)||void 0===r?void 0:r.indexOf(t));let s=i();return"php"!==n.substring(n.length-3)||o?"php"===n.substring(n.length-3)||o?(s+="settings"!==t&&"core"!==t&&"search"!==t||"ajax"!==e?"/":"/index.php/",o||(s+="apps/"),""!==t&&(s+=t+="/"),e&&(s+=e+"/"),s+=n):(s=a(t),e&&(s+="/"+e+"/"),"/"!==s.substring(s.length-1)&&(s+="/"),s+=n):(s+="/index.php/apps/"+t,"index.php"!==n&&(s+="/",e&&(s+=encodeURI(e+"/")),s+=n)),s};function i(){let t=window._oc_webroot;if(void 0===t){t=location.pathname;const e=t.indexOf("/index.php/");t=-1!==e?t.substr(0,e):t.substr(0,t.lastIndexOf("/"))}return t}function a(t){var e,n;return null!==(n=(null!==(e=window._oc_appswebroots)&&void 0!==e?e:{})[t])&&void 0!==n?n:""}},60759:(t,e,n)=>{"use strict";n(15306);const r=(t,e,n)=>{const r=Object.assign({escape:!0},n||{});return"/"!==t.charAt(0)&&(t="/"+t),o=(o=e||{})||{},t.replace(/{([^{}]*)}/g,(function(t,e){var n=o[e];return r.escape?"string"==typeof n||"number"==typeof n?encodeURIComponent(n.toString()):encodeURIComponent(t):"string"==typeof n||"number"==typeof n?n.toString():t}));var o};const o=(t,e,n)=>{var r;const o=-1!==(null===(r=window)||void 0===r||null===(r=r.OC)||void 0===r||null===(r=r.coreApps)||void 0===r?void 0:r.indexOf(t));let s=i();return"php"!==n.substring(n.length-3)||o?"php"===n.substring(n.length-3)||o?(s+="settings"!==t&&"core"!==t&&"search"!==t||"ajax"!==e?"/":"/index.php/",o||(s+="apps/"),""!==t&&(s+=t+="/"),e&&(s+=e+"/"),s+=n):(s=a(t),e&&(s+="/"+e+"/"),"/"!==s.substring(s.length-1)&&(s+="/"),s+=n):(s+="/index.php/apps/"+t,"index.php"!==n&&(s+="/",e&&(s+=encodeURI(e+"/")),s+=n)),s};function i(){let t=window._oc_webroot;if(void 0===t){t=location.pathname;const e=t.indexOf("/index.php/");t=-1!==e?t.substr(0,e):t.substr(0,t.lastIndexOf("/"))}return t}function a(t){var e,n;return null!==(n=(null!==(e=window._oc_appswebroots)&&void 0!==e?e:{})[t])&&void 0!==n?n:""}},71356:(t,e,n)=>{"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleLogger=void 0,e.buildConsoleLogger=function(t){return new s(t)},n(19601),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=n(20006);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"defau
//# sourceMappingURL=photos-sidebar.js.map?v=8ce25876d213fb95eae2