summaryrefslogtreecommitdiffstats
path: root/js/photos-main.js
blob: d3e5a199e02a9917681023436b3e60e7c3b04e5a (plain)
1
2
3
/*! For license information please see photos-main.js.LICENSE.txt */
(()=>{var e,n,r={90478:(e,t,n)=>{"use strict";var r=n(50791),a=Object.prototype.hasOwnProperty,i={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function o(e){var t;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(t in i)a.call(i,t)&&void 0!==e.properties[t]&&(s(e,i[t],e.properties[t]),delete e.properties[t])}function s(e,t,n){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var a=r+t+": "+n+";";e.properties.style=a}e.exports=function(e){return r(e,"element",o),e}},93790:e=>{"use strict";function t(e){if("string"==typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return a;if("object"==typeof e)return("length"in e?r:n)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,a=-1;++a<r;)n[a]=t(e[a]);return n}(e),r=n.length;return function(){var e=-1;for(;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function a(){return!0}e.exports=t},11150:(e,t,n)=>{"use strict";e.exports=s;var r=n(93790),a=!0,i="skip",o=!1;function s(e,t,n,a){var s;function u(e,r,c){var d,h=[];return(t&&!s(e,r,c[c.length-1]||null)||(h=l(n(e,c)))[0]!==o)&&e.children&&h[0]!==i?(d=l(function(e,t){var n,r=-1,i=a?-1:1,s=(a?e.length:r)+i;for(;s>r&&s<e.length;){if((n=u(e[s],s,t))[0]===o)return n;s="number"==typeof n[1]?n[1]:s+i}}(e.children,c.concat(e))),d[0]===o?d:h):h}"function"==typeof t&&"function"!=typeof n&&(a=n,n=t,t=null),s=r(t),u(e,null,[])}function l(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[a,e]:[e]}s.CONTINUE=a,s.SKIP=i,s.EXIT=o},50791:(e,t,n)=>{"use strict";e.exports=s;var r=n(11150),a=r.CONTINUE,i=r.SKIP,o=r.EXIT;function s(e,t,n,a){"function"==typeof t&&"function"!=typeof n&&(a=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],a=r?r.children.indexOf(e):null;return n(e,a,r)}),a)}s.CONTINUE=a,s.SKIP=i,s.EXIT=o},22200:(e,t,n)=>{"use strict";var r=n(57888),a=void 0,i=[];r.subscribe("csrf-token-update",(function(e){a=e.token,i.forEach((function(t){try{t(e.token)}catch(e){console.error("error updating CSRF token observer",e)}}))}));var o=function(e,t){return e?e.getAttribute(t):null},s=void 0;t.getCurrentUser=function(){if(void 0!==s)return s;var e=null===document||void 0===document?void 0:document.getElementsByTagName("head")[0];if(!e)return null;var t=o(e,"data-user");return s=null===t?null:{uid:t,displayName:o(e,"data-user-displayname"),isAdmin:"undefined"!=typeof OC&&OC.isUserAdmin()}},t.getRequestToken=function(){if(void 0===a){var e=null===document||void 0===document?void 0:document.getElementsByTagName("head")[0];a=e?e.getAttribute("data-requesttoken"):null}return a},t.onRequestTokenUpdate=function(e){i.push(e)}},42515:(e,t,n)=>{"use strict";t.F=function(){try{return(0,r.loadState)("core","capabilities")}catch(e){return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}};var r=n(20853)},20853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadState=function(e,t,n){var r=document.querySelector("#initial-state-".concat(e,"-").concat(t));if(null===r){if(void 0!==n)return n;throw new Error("Could not find initial state ".concat(t," of ").concat(e))}try{return JSON.parse(atob(r.value))}catch(n){throw new Error("Could not parse initial state ".concat(t," of ").concat(e))}},n(92222)},3094:(e,t,n)=>{"use strict";var r=n(75189),a=n(11642),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(a(e)+" is not a function")}},88347:(e,t,n)=>{"use strict";var r=n(82212),a=n(11642),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(a(e)+" is not a constructor")}},8723:(e,t,n)=>{"use strict";var r=n(75189),a=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+a(e)+" as a prototype")}},62079:(e,t,n)=>{"use strict";var r=n(83193),a=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw a("Incorrect invocation")}},94635:(e,t,n)=>{"use strict";var r=n(47484),a=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(a(e)+" is not an object")}},9686:(e,t,n)=>{"use strict";var r=n