summaryrefslogtreecommitdiffstats
path: root/js/photos-0.js
blob: f909cdfb906591d56576a627aa597e5c08d7a49e (plain)
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{246:function(n,t,e){"use strict";var i=e(57),a=e.n(i);function o(n,t,e,i,a,o,r){try{var s=n[o](r),d=s.value}catch(n){return void e(n)}s.done?t(d):Promise.resolve(d).then(i,a)}t.a=function(n){var t=a.a.CancelToken.source();return{request:function(){var e,i=(e=regeneratorRuntime.mark((function e(i,a){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n(i,Object.assign({cancelToken:t.token},a)));case 1:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(i,a){var r=e.apply(n,t);function s(n){o(r,i,a,s,d,"next",n)}function d(n){o(r,i,a,s,d,"throw",n)}s(void 0)}))});return function(n,t){return i.apply(this,arguments)}}(),cancel:t.cancel}}},262:function(n,t,e){var i=e(151),a=e(527);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[n.i,a,""]]);var o={insert:"head",singleton:!1};i(a,o);n.exports=a.locals||{}},266:function(n,t,e){var i=e(151),a=e(531);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[n.i,a,""]]);var o={insert:"head",singleton:!1};i(a,o);n.exports=a.locals||{}},267:function(n,t,e){var i=e(151),a=e(535);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[n.i,a,""]]);var o={insert:"head",singleton:!1};i(a,o);n.exports=a.locals||{}},299:function(n,t,e){"use strict";function i(n,t,e,i,a,o,r){try{var s=n[o](r),d=s.value}catch(n){return void e(n)}s.done?t(d):Promise.resolve(d).then(i,a)}var a={name:"EmptyContent",props:{illustrationName:{type:String,default:""}},data:function(){return{illustration:""}},computed:{haveIllustration:function(){return""!==this.illustrationName},isLoaded:function(){return!this.haveIllustration||""!==this.illustration},isReady:function(){return!this.haveIllustration||this.haveIllustration&&this.isLoaded}},watch:{illustrationName:function(){this.getIllustration()}},beforeMount:function(){this.getIllustration()},methods:{getIllustration:function(){var n,t=this;return(n=regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.illustration="",""===t.illustrationName){n.next=12;break}return n.prev=2,n.next=5,e(525)("./".concat(t.illustrationName,".svg"));case 5:i=n.sent,t.illustration=i.default,n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),console.error("Could not get the error illustration",n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})),function(){var t=this,e=arguments;return new Promise((function(a,o){var r=n.apply(t,e);function s(n){i(r,a,o,s,d,"next",n)}function d(n){i(r,a,o,s,d,"throw",n)}s(void 0)}))})()}}},o=(e(526),e(40)),r=Object(o.a)(a,(function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.isReady?e("div",{staticClass:"emptycontent"},[n.haveIllustration?e("div",{staticClass:"illustration",domProps:{innerHTML:n._s(n.illustration)}}):e("div",{staticClass:"icon-error"}),n._v(" "),e("h2",[n._t("default")],2),n._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:n.$slots.desc,expression:"$slots.desc"}]},[n._t("desc")],2)]):n._e()}),[],!1,null,null,null);t.a=r.exports},300:function(n,e,i){"use strict";var a=i(14),o=i(22);function r(n,t,e,i,a,o,r){try{var s=n[o](r),d=s.value}catch(n){return void e(n)}s.done?t(d):Promise.resolve(d).then(i,a)}var s={name:"File",mixins:[i(143).a],inheritAttrs:!1,props:{item:{type:Object,required:!0}},data:function(){return{loaded:!1}},computed:{davPath:function(){return Object(a.generateRemoteUrl)("dav/files/".concat(Object(o.getCurrentUser)().uid))+this.item.injected.filename},ariaUuid:function(){return"image-".concat(this.item.injected.fileid)},ariaLabel:function(){return t("photos",'Open the full size "{name}" image',{name:this.item.injected.basename})},isImage:function(){return this.item.injected.mime.startsWith("image")},src:function(){return Object(a.generateUrl)("/core/preview?fileId=".concat(this.item.injected.fileid,"&x=",256,"&y=",256,"&a=").concat(!this.croppedLayout,"&v=").concat(this.item.injected.etag))}},beforeDestroy:function(){this.$refs.src=""},methods:{openViewer:function(){var n,t,e=this;OCA.Viewer.open({path:this.item.injected.filename,list:this.item.injected.list,loadMore:(n=regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.item.injected.loadMore(!0);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})),t=function(){var t=this,e=arguments;return new Promise((function(i,a){var o=n.apply(t,e);function s(n){r(o,i,a,s,d,"next",n)}function d(n){r(o,i,a,s,d,"throw",n)}s(void 0)}))},function(){return t.apply(this,arguments)})})},onLoad:function(){this.loaded=!0}}},d=(i(530),i(40)),c=Object(d.a)(