summaryrefslogtreecommitdiffstats
path: root/js/photos-main.js
blob: a7b2b24e5437dccf8c7aadda328c0c77aeff653a (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:!!window._oc_isadmin}},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)}},81132:(e,t,n)=>{"use strict";t.nu=void 0,n(15306);const r=(e,t,n)=>{const r=Object.assign({escape:!0},n||{});return"/"!==e.charAt(0)&&(e="/"+e),a=(a=t||{})||{},e.replace(/{([^{}]*)}/g,(function(e,t){var n=a[t];return r.escape?"string"==typeof n||"number"==typeof n?encodeURIComponent(n.toString()):encodeURIComponent(e):"string"==typeof n||"number"==typeof n?n.toString():e}));var a};t.nu=(e,t,n)=>{var a;const o=Object.assign({noRewrite:!1},n||{});return!0!==(null===(a=window)||void 0===a||null===(a=a.OC)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.modRewriteWorking)||o.noRewrite?i()+"/index.php"+r(e,t,n):i()+r(e,t,n)};const a=(e,t,n)=>{var r;const a=-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(e));let s=i();return"php"!==n.substring(n.length-3)||a?"php"===n.substring(n.length-3)||a?(s+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",a||(s+="apps/"),""!==e&&(s+=e+="/"),t&&(s+=t+"/"),s+=n):(s=o(e),t&&(s+="/"+t+"/"),"/"!==s.substring(s.length-1)&&(s+="/"),s+=n):(s+="/index.php/apps/"+e,"index.php"!==n&&(s+="/",t&&(s+=encodeURI(t+"/")),s