memories/js/polaroid-main.js

3 lines
1.1 MiB
JavaScript
Raw Normal View History

2022-08-18 03:54:25 +00:00
/*! For license information please see polaroid-main.js.LICENSE.txt */
2022-08-18 05:33:38 +00:00
(()=>{var e={22200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRequestToken",{enumerable:!0,get:function(){return r.getRequestToken}}),Object.defineProperty(t,"onRequestTokenUpdate",{enumerable:!0,get:function(){return r.onRequestTokenUpdate}}),Object.defineProperty(t,"getCurrentUser",{enumerable:!0,get:function(){return o.getCurrentUser}});var r=n(71894),o=n(31618)},71894:(e,t,n)=>{"use strict";var r=n(25108);n(89554),Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return a},t.onRequestTokenUpdate=function(e){s.push(e)};var o=n(70903),i=document.getElementsByTagName("head")[0],a=i?i.getAttribute("data-requesttoken"):null,s=[];(0,o.subscribe)("csrf-token-update",(function(e){a=e.token,s.forEach((function(t){try{t(e.token)}catch(e){r.error("error updating CSRF token observer",e)}}))}))},31618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===r)return null;return{uid:r,displayName:i,isAdmin:a}};var n=document.getElementsByTagName("head")[0],r=n?n.getAttribute("data-user"):null,o=document.getElementsByTagName("head")[0],i=o?o.getAttribute("data-user-displayname"):null,a="undefined"!=typeof OC&&OC.isUserAdmin()},70903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{emit:()=>Zo,subscribe:()=>Ho,unsubscribe:()=>Wo});var r=n(34155),o=n(25108),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var s=function(e){return e&&e.Math==Math&&e},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d={f:f&&!p.call({1:2},1)?function(e){var t=f(this,e);return!!t&&t.enumerable}:p},h=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},m={}.toString,g=function(e){return m.call(e).slice(8,-1)},v="".split,y=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==g(e)?v.call(e,""):Object(e)}:Object,b=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},A=function(e){return y(b(e))},w=function(e){return"object"==typeof e?null!==e:"function"==typeof e},C=function(e,t){if(!w(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!w(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},x=function(e){return Object(b(e))},S={}.hasOwnProperty,k=function(e,t){return S.call(x(e),t)},_=l.document,E=w(_)&&w(_.createElement),O=function(e){return E?_.createElement(e):{}},j=!u&&!c((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,T={f:u?N:function(e,t){if(e=A(e),t=C(t,!0),j)try{return N(e,t)}catch(e){}if(k(e,t))return h(!d.f.call(e,t),e[t])}},P=function(e){if(!w(e))throw TypeError(String(e)+" is not an object");return e},I=Object.defineProperty,D={f:u?I:function(e,t,n){if(P(e),t=C(t,!0),P(n),j)try{return I(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},R=u?function(e,t,n){return D.f(e,t,h(1,n))}:function(e,t,n){return e[t]=n,e},z=function(e,t){try{R(l,e,t)}catch(n){l[e]=t}return t},L="__core-js_shared__",B=l[L]||z(L,{}),F=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(e){return F.call(e)});var $,M,U,q=B.inspectSource,G=l.WeakMap,V="function"==typeof G&&/native code/.test(q(G)),H=a((function(e){(e.exports=function(e,t){return B[e]||(B[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.11.2",mode:"global",copyright:"© 2021 Denis Push
//# sourceMappingURL=polaroid-main.js.map?v=f7af28156ceda5ff74a9