Welcome to mirror list, hosted at ThFree Co, Russian Federation.

photos-src_views_FaceContent_vue.js « js - github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1644dc86f2d4318435513d4af4a08964f1bc5292 (plain)
1
2
3
/*! For license information please see photos-src_views_FaceContent_vue.js.LICENSE.txt */
"use strict";(self.webpackChunkphotos=self.webpackChunkphotos||[]).push([["src_views_FaceContent_vue"],{46116:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(20629),i=n(86492),o=n.n(i);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"FaceCoverMixin",computed:c({},(0,r.Se)(["faces","facesFiles","files"])),methods:{getFaceCover:function(t){var e=this;return(this.facesFiles[t]||[]).slice(0,25).map((function(t){return e.files[t]})).map((function(t){return c(c({},t),{},{faceDetections:JSON.parse(o().decode(t.faceDetections))})})).sort((function(e,n){return n.faceDetections.find((function(e){return e.title===t})).width-e.faceDetections.find((function(e){return e.title===t})).width})).sort((function(t,e){return t.faceDetections.length-e.faceDetections.length}))[0]},getCoverStyle:function(t){var e=this.getFaceCover(t);if(!e)return{};var n=e.faceDetections.find((function(e){return e.title===t})),r=Math.max(1,1/n.width*.4),i=100*(n.x+n.width/2),o=100*(n.y+n.height/2);return{width:"100%",transform:"translate(calc( var(--photos-face-width)/2 - ".concat(i,"% ), calc( var(--photos-face-width)/2 - ").concat(o,"% )) scale(").concat(r,")"),transformOrigin:"".concat(i,"% ").concat(o,"%")}}}}},99751:(e,n,r)=>{r.d(n,{Z:()=>A});var i=r(20629),o=r(82880),a=r(45994),c=r(81067),s=r(59537),l=r(2161),u=r(94236);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function m(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){h(o,r,i,a,c,"next",t)}function c(t){h(o,r,i,a,c,"throw",t)}a(void 0)}))}}const A={name:"FetchFacesMixin",data:function(){return{errorFetchingFaces:null,loadingFaces:!1,errorFetchingFiles:null,loadingFiles:!1}},mixins:[r(69363).Z],beforeMount:function(){var t=this;return m(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.fetchFaces();case 1:case"end":return e.stop()}}),e)})))()},computed:f({},(0,i.Se)(["faces"])),methods:f(f({},(0,i.nv)(["appendFiles"])),{},{fetchFaces:function(){var e=this;return m(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.loadingFaces){n.next=2;break}return n.abrupt("return");case 2:if(!Object.keys(e.faces).length){n.next=4;break}return n.abrupt("return");case 4:return n.prev=4,e.loadingFaces=!0,e.errorFetchingFaces=null,n.next=9,c.Z.getDirectoryContents("/recognize/".concat(null===(r=(0,a.ts)())||void 0===r?void 0:r.uid,"/faces/"),{signal:e.abortController.signal});case 9:i=n.sent,e.$store.dispatch("addFaces",{faces:i}),s.Z.debug("[FetchFacesMixin] Fetched ".concat(i.length," new faces: "),i),n.next=19;break;case 14:n.prev=14,n.t0=n.catch(4),n.t0.response&&n.t0.response.status&&(404===n.t0.response.status?e.errorFetchingFaces=404:e.errorFetchingFaces=n.t0),s.Z.error(t("photos","Failed to fetch faces list."),n.t0),(0,o.x2)(t("photos","Failed to fetch faces list."));case 19:return n.prev=19,e.loadingFaces=!1,n.finish(19);case 22:case"end":return n.stop()}}),n,null,[[4,14,19,22]])})))()},fetchFaceContent:function(t,e){var n=this;return m(regeneratorRuntime.mark((function r(){var i,o,d,p;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.loadingFiles){r.next=2;break}return r.abrupt("return");case 2:if(e||!n.facesFiles[t]||!n.facesFiles[t].length){r.next=4;break}return r.abrupt("return");case 4:return r.prev=4,n.errorFetchingFiles=null,n.loadingFiles=!0,r.next=9,c.Z.getDirectoryContents("/recognize/".concat(null===(i=(0,a.ts)())||void 0===i?void 0:i.uid,"/faces/").concat(t),{data:l.Z,details:!0,signal:n.abortController.signal});case 9:if(o=r.sent,d=(d=o.data).map((function(t){return(0,u.AX)(t)})).map((function(t){return f(f({},t),{},{filename:t.realpath.replace("/".concat((0,a.ts)().uid,"/files"),"")})})),p=d.map((function(t){return""+t.fileid})),n.appendFiles(d),!(d.length>0)){r.next=17;break}return r.next=17,n.$store.commit("addFilesToFace",{faceName:t,fileIdsToAdd:p});case 17:s.Z.debug("[FetchFacesMixin] Fetched ".concat(p.length," new files: "),p),r.next=24;break;case 20:r.prev=20,r.t0=r.catch(4),r.t0.response&&r.t0.response.status&&(404===r.t0.response.status?n.errorFetchingFiles=404:n.errorFetchingFiles=r.t0),s.Z.error("Error fetching face files",r.t0);case 24:return r.prev=24,n.loadingFiles=!1,r.finish(24);case 27:case"end":return r.stop()}}),r,null,[[4,20,24,27]])})))()}})}},66951:(t,e,n)=>{n.d(e,{Z:()=>j});var r=n(59537),i=n(94236),o=n(45994),a=n(3301),c=n(81067),s=n(2161),l=n(80351),u=n.n(l);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function m(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){h(o,r,i,a,c,"next",t)}function c(t){h(o,r,i,a,c,"throw",t)}a(void 0)}))}}function A(){return g.apply(this,arguments)}function g(){return g=m(regeneratorRuntime.mark((function t(){var e,n,r,l,d,p,h,m=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=m.length>0&&void 0!==m[0]?m[0]:"",n=m.length>1&&void 0!==m[1]?m[1]:{},n=f({firstResult:0,nbResults:200,mimesType:a.Oj,onThisDay:!1,onlyFavorites:!1},n),r="/files/".concat((0,o.ts)().uid),l=n.mimesType.reduce((function(t,e){return"".concat(t,"\n\t\t<d:eq>\n\t\t\t<d:prop>\n\t\t\t\t<d:getcontenttype/>\n\t\t\t</d:prop>\n\t\t\t<d:literal>").concat(e,"</d:literal>\n\t\t</d:eq>\n\t")}),""),d=n.onlyFavorites?"<d:eq>\n\t\t\t\t<d:prop>\n\t\t\t\t\t<oc:favorite/>\n\t\t\t\t</d:prop>\n\t\t\t\t<d:literal>1</d:literal>\n\t\t\t</d:eq>":"",p=n.onThisDay?"<d:or>".concat(Array(20).fill(1).map((function(t,e){var n=u()(Date.now()).startOf("day").subtract(3,"d").subtract(e+1,"y"),r=u()(Date.now()).endOf("day").add(3,"d").subtract(e+1,"y");return"<d:and>\n\t\t\t\t<d:gt>\n\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t<d:getlastmodified />\n\t\t\t\t\t</d:prop>\n\t\t\t\t\t<d:literal>".concat(n.format(u().defaultFormatUtc),"</d:literal>\n\t\t\t\t</d:gt>\n\t\t\t\t<d:lt>\n\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t<d:getlastmodified />\n\t\t\t\t\t</d:prop>\n\t\t\t\t\t<d:literal>").concat(r.format(u().defaultFormatUtc),"</d:literal>\n\t\t\t\t</d:lt>\n\t\t\t</d:and>")})).join("\n"),"</d:or>"):"",n=Object.assign({method:"SEARCH",headers:{"content-Type":"text/xml"},data:'<?xml version="1.0" encoding="UTF-8"?>\n\t\t\t<d:searchrequest xmlns:d="DAV:"\n\t\t\t\txmlns:oc="http://owncloud.org/ns"\n\t\t\t\txmlns:nc="http://nextcloud.org/ns"\n\t\t\t\txmlns:ns="https://github.com/icewind1991/SearchDAV/ns"\n\t\t\t\txmlns:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<d:basicsearch>\n\t\t\t\t\t<d:select>\n\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t'.concat(s.N,"\n\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t</d:select>\n\t\t\t\t\t<d:from>\n\t\t\t\t\t\t<d:scope>\n\t\t\t\t\t\t\t<d:href>").concat(r,"/").concat(e,"</d:href>\n\t\t\t\t\t\t\t<d:depth>infinity</d:depth>\n\t\t\t\t\t\t</d:scope>\n\t\t\t\t\t</d:from>\n\t\t\t\t\t<d:where>\n\t\t\t\t\t\t<d:and>\n\t\t\t\t\t\t\t<d:or>\n\t\t\t\t\t\t\t\t").concat(l,"\n\t\t\t\t\t\t\t</d:or>\n\t\t\t\t\t\t\t").concat(d,"\n\t\t\t\t\t\t\t").concat(p,"\n\t\t\t\t\t\t</d:and>\n\t\t\t\t\t</d:where>\n\t\t\t\t\t<d:orderby>\n\t\t\t\t\t\t<d:order>\n\t\t\t\t\t\t\t<d:prop><d:getlastmodified/></d:prop>\n\t\t\t\t\t\t\t<d:descending/>\n\t\t\t\t\t\t</d:order>\n\t\t\t\t\t</d:orderby>\n\t\t\t\t\t<d:limit>\n\t\t\t\t\t\t<d:nresults>").concat(n.nbResults,"</d:nresults>\n\t\t\t\t\t\t<ns:firstresult>").concat(n.firstResult,"</ns:firstresult>\n\t\t\t\t\t</d:limit>\n\t\t\t\t</d:basicsearch>\n\t\t\t</d:searchrequest>"),deep:!0,details:!0},n),t.next=10,c.Z.getDirectoryContents("",n);case 10:return h=t.sent,t.abrupt("return",h.data.map((function(t){return(0,i.AX)(t)})).map((function(t){return f(f({},t),{},{filename:t.filename.replace(r,"")})})));case 12:case"end":return t.stop()}}),t)}))),g.apply(this,arguments)}var v=n(32114),C=n(69363),b=n(25108);function y(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function O(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){k(o,r,i,a,c,"next",t)}function c(t){k(o,r,i,a,c,"throw",t)}a(void 0)}))}}const j={name:"FetchFilesMixin",mixins:[C.Z],data:function(){return{errorFetchingFiles:null,loadingFiles:!1,doneFetchingFiles:!1,semaphore:new v.Z(30),fetchSemaphore:new v.Z(1),semaphoreSymbol:null,fetchedFileIds:[]}},watch:{$route:function(){this.resetFetchFilesState()}},methods:{fetchFiles:function(){var t=arguments,e=this;return O(regeneratorRuntime.mark((function n(){var i,o,a,c,s,l,u,d,f,p;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]?t[0]:"",o=t.length>1&&void 0!==t[1]?t[1]:{},a=t.length>2&&void 0!==t[2]?t[2]:[],!e.doneFetchingFiles&&!e.loadingFiles){n.next=5;break}return n.abrupt("return",[]);case 5:return n.next=7,e.semaphore.acquire((function(){return 0}),"fetchFiles");case 7:return c=n.sent,n.next=10,e.fetchSemaphore.acquire();case 10:return s=n.sent,n.prev=11,e.errorFetchingFiles=null,e.loadingFiles=!0,e.semaphoreSymbol=c,u=200,n.next=18,A(i,F(F({firstResult:e.fetchedFileIds.length,nbResults:u},o),{},{signal:e.abortController.signal}));case 18:return(d=n.sent).length!==u&&(e.doneFetchingFiles=!0),f=d.map((function(t){return t.fileid})).filter((function(t){return!e.fetchedFileIds.includes(t)})),(l=e.fetchedFileIds).push.apply(l,y(f.map((function(t){return t.toString()})).filter((function(t){return!a.includes(t)})))),e.$store.dispatch("appendFiles",d),r.Z.debug("[FetchFilesMixin] Fetched ".concat(f.length," new files: "),f),n.abrupt("return",f);case 27:if(n.prev=27,n.t0=n.catch(11),404!==(null===(p=n.t0.response)||void 0===p?void 0:p.status)){n.next=33;break}e.errorFetchingFiles=404,n.next=38;break;case 33:if("ERR_CANCELED"!==n.t0.code){n.next=37;break}return n.abrupt("return",[]);case 37:e.errorFetchingFiles=n.t0;case 38:r.Z.error("Error fetching files",n.t0),b.error(n.t0);case 40:return n.prev=40,e.loadingFiles=!1,e.semaphore.release(c),e.fetchSemaphore.release(s),n.finish(40);case 45:return n.abrupt("return",[]);case 46:case"end":return n.stop()}}),n,null,[[11,27,40,45]])})))()},resetFetchFilesState:function(){this.doneFetchingFiles=!1,this.errorFetchingFiles=null,this.loadingFiles=!1,this.fetchedFileIds=[]}}}},97669:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(87537),i=n.n(r),o=n(23645),a=n.n(o)()(i());a.push([t.id,".face-list[data-v-47cd75ce]{display:flex;flex-direction:row;height:350px;flex-wrap:wrap;padding:12px}.face-list__item[data-v-47cd75ce]{display:flex;flex-direction:column;padding:10px;border-radius:var(--border-radius);align-items:center;cursor:pointer;width:120px}.face-list__item *[data-v-47cd75ce]{cursor:pointer}.face-list__item__crop-container[data-v-47cd75ce]{overflow:hidden;width:60px;height:60px;border-radius:60px;position:relative;background:var(--color-background-darker);--photos-face-width: 60px}.face-list__item[data-v-47cd75ce]:hover,.face-list__item[data-v-47cd75ce]:focus{background:var(--color-background-hover)}.face-list__item__details[data-v-47cd75ce]{padding:10px;height:1em;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}.loader[data-v-47cd75ce]{margin-top:25%}","",{version:3,sources:["webpack://./src/components/FaceMergeForm.vue"],names:[],mappings:"AA2GA,4BACC,YAAA,CACA,kBAAA,CACA,YAAA,CACA,cAAA,CACA,YAAA,CAEA,kCACC,YAAA,CACA,qBAAA,CACA,YAAA,CACA,kCAAA,CACA,kBAAA,CACA,cAAA,CACA,WAAA,CAEA,oCACC,cAAA,CAGD,kDACC,eAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,iBAAA,CACA,yCAAA,CACA,yBAAA,CAGD,gFACC,wCAAA,CAGD,2CACC,YAAA,CACA,UAAA,CACA,eAAA,CACA,sBAAA,CACA,UAAA,CACA,iBAAA,CAKH,yBACC,cAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.face-list {\n\tdisplay: flex;\n\tflex-direction: row;\n\theight: 350px;\n\tflex-wrap: wrap;\n\tpadding: 12px;\n\n\t&__item {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpadding: 10px;\n\t\tborder-radius: var(--border-radius);\n\t\talign-items: center;\n\t\tcursor: pointer;\n\t\twidth: 120px;\n\n\t\t* {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&__crop-container {\n\t\t\toverflow: hidden;\n\t\t\twidth: 60px;\n\t\t\theight: 60px;\n\t\t\tborder-radius: 60px;\n\t\t\tposition: relative;\n\t\t\tbackground: var(--color-background-darker);\n\t\t\t--photos-face-width: 60px;\n\t\t}\n\n\t\t&:hover, &:focus {\n\t\t\tbackground: var(--color-background-hover);\n\t\t}\n\n\t\t&__details {\n\t\t\tpadding: 10px;\n\t\t\theight: 1em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twidth: 100%;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n}\n\n.loader {\n\tmargin-top: 25%;\n}\n'],sourceRoot:""}]);const c=a},61923:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(87537),i=n.n(r),o=n(23645),a=n.n(o)()(i());a.push([t.id,".face[data-v-42c3678c]{display:flex;flex-direction:column}.face__empty[data-v-42c3678c]{display:flex;flex-direction:column;align-items:center}.face__empty__button[data-v-42c3678c]{margin-top:32px}.face__header[data-v-42c3678c]{display:flex;min-height:60px;align-items:center;justify-content:space-between;position:-webkit-sticky;position:sticky;top:var(--header-height);z-index:3;background:var(--color-main-background);padding:0 64px}@media only screen and (max-width: 1020px){.face__header[data-v-42c3678c]{padding:0;padding-left:64px}}.face__header__left[data-v-42c3678c]{height:100%;display:flex;align-items:center}.face__header__title[data-v-42c3678c]{margin-left:10px}.face__header__title h2[data-v-42c3678c]{margin-bottom:0}.face__header__loader[data-v-42c3678c]{margin-left:32px}.face__header__actions[data-v-42c3678c]{display:flex;align-items:center}.face__header__actions button[data-v-42c3678c]{margin-left:16px}.face__photos[data-v-42c3678c]{margin-top:16px;height:100%;min-height:0;padding:0 64px}@media only screen and (max-width: 1020px){.face__photos[data-v-42c3678c]{padding:0}}.empty-content-with-illustration[data-v-42c3678c]  .empty-content__icon{width:200px;height:200px}.empty-content-with-illustration[data-v-42c3678c]  .empty-content__icon svg{width:200px;height:200px}.rename-form[data-v-42c3678c]{display:flex;flex-direction:row;align-items:center;height:70px;padding:16px}.rename-form input[data-v-42c3678c]{width:80%}","",{version:3,sources:["webpack://./src/views/FaceContent.vue"],names:[],mappings:"AAkYA,uBACC,YAAA,CACA,qBAAA,CAEA,8BACC,YAAA,CACA,qBAAA,CACA,kBAAA,CAEA,sCACC,eAAA,CAKF,+BACC,YAAA,CACA,eAAA,CACA,kBAAA,CACA,6BAAA,CACA,uBAAA,CAAA,eAAA,CACA,wBAAA,CACA,SAAA,CACA,uCAAA,CACA,cAAA,CAEA,2CAXD,+BAYE,SAAA,CACA,iBAAA,CAAA,CAGD,qCACC,WAAA,CACA,YAAA,CACA,kBAAA,CAGD,sCACC,gBAAA,CACA,yCACC,eAAA,CAIF,uCACC,gBAAA,CAGD,wCACC,YAAA,CACA,kBAAA,CAEA,+CACC,gBAAA,CAKH,+BACC,eAAA,CACA,WAAA,CACA,YAAA,CACA,cAAA,CAEA,2CAND,+BAOE,SAAA,CAAA,CAKH,wEACC,WAAA,CACA,YAAA,CAEA,4EACC,WAAA,CACA,YAAA,CAIF,8BACC,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,WAAA,CACA,YAAA,CAEA,oCACC,SAAA",sourcesContent:['$sizes: ("400": ("count": 3, "marginTop": 66, "marginW": 8), "700": ("count": 4, "marginTop": 66, "marginW": 8), "1024": ("count": 5, "marginTop": 66, "marginW": 44), "1280": ("count": 4, "marginTop": 66, "marginW": 44), "1440": ("count": 5, "marginTop": 88, "marginW": 66), "1600": ("count": 6, "marginTop": 88, "marginW": 66), "2048": ("count": 7, "marginTop": 88, "marginW": 66), "2560": ("count": 8, "marginTop": 88, "marginW": 88), "3440": ("count": 9, "marginTop": 88, "marginW": 88), "max": ("count": 10, "marginTop": 88, "marginW": 88));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.face {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t&__empty {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t&__button {\n\t\t\tmargin-top: 32px;\n\t\t}\n\n\t}\n\n\t&__header {\n\t\tdisplay: flex;\n\t\tmin-height: 60px;\n\t\talign-items: center;\n\t\tjustify-content: space-between;\n\t\tposition: sticky;\n\t\ttop: var(--header-height);\n\t\tz-index: 3;\n\t\tbackground: var(--color-main-background);\n\t\tpadding: 0 64px;\n\n\t\t@media only screen and (max-width: 1020px) {\n\t\t\tpadding: 0;\n\t\t\tpadding-left: 64px;\n\t\t}\n\n\t\t&__left {\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t}\n\n\t\t&__title {\n\t\t\tmargin-left: 10px;\n\t\t\th2 {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\n\t\t&__loader {\n\t\t\tmargin-left: 32px;\n\t\t}\n\n\t\t&__actions {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\tbutton {\n\t\t\t\tmargin-left: 16px;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__photos {\n\t\tmargin-top: 16px;\n\t\theight: 100%;\n\t\tmin-height: 0; // Prevent it from overflowing in a flex context.\n\t\tpadding: 0 64px;\n\n\t\t@media only screen and (max-width: 1020px) {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n}\n\n.empty-content-with-illustration ::v-deep .empty-content__icon {\n\twidth: 200px;\n\theight: 200px;\n\n\tsvg {\n\t\twidth: 200px;\n\t\theight: 200px;\n\t}\n}\n\n.rename-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\theight: 70px;\n\tpadding: 16px;\n\n\tinput {\n\t\twidth: 80%;\n\t}\n}\n'],sourceRoot:""}]);const c=a},24777:(t,e,n)=>{n.d(e,{Z:()=>i});const r={name:"AlertCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const i=(0,n(51900).Z)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._b({staticClass:"material-design-icon alert-circle-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},2470:(t,e,n)=>{n.d(e,{Z:()=>i});const r={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const i=(0,n(51900).Z)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._b({staticClass:"material-design-icon download-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},75400:(t,e,n)=>{n.d(e,{Z:()=>i});const r={name:"SendIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};const i=(0,n(51900).Z)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._b({staticClass:"material-design-icon send-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M2,21L23,12L2,3V10L17,12L2,14V21Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},49163:(t,e,n)=>{n.r(e),n.d(e,{default:()=>J});var r=n(20629),i=n(91482),o=n(31894),a=n(24777),c=n(75760),s=n(2470),l=n(75400);const u={name:"MergeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var d=n(51900);const f=(0,d.Z)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._b({staticClass:"material-design-icon merge-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M8 17L12 13H15.2C15.6 14.2 16.7 15 18 15C19.7 15 21 13.7 21 12S19.7 9 18 9C16.7 9 15.6 9.8 15.2 11H12L8 7V3H3V8H6L10.2 12L6 16H3V21H8V17Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var p=n(76240),h=n(24073),m=n(33476),A=n(66951),g=n(98171),v=n(23565),C=n(77571),b=n(59537),y=n(99751),_=n(20144),w=n(79753),F=n(46116);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const j={name:"FaceMergeForm",components:{NcLoadingIcon:m.NcLoadingIcon},mixins:[F.Z,y.Z],props:{firstFace:{type:String,required:!0}},data:function(){return{loading:!1}},computed:k(k({},(0,r.Se)(["files","faces","facesFiles"])),{},{filteredFaces:function(){var t=this;return Object.values(this.faces).filter((function(e){return e.basename!==t.firstFace})).sort((function(e,n){return t.facesFiles[n.basename]&&t.facesFiles[e.basename]?t.facesFiles[n.basename].length-t.facesFiles[e.basename].length:0}))}}),methods:{getCoverUrl:function(t){var e=this.getFaceCover(t);return e?(0,w.generateUrl)("/core/preview?fileId=".concat(e.fileid,"&x=",512,"&y=",512,"&forceIcon=0&a=1")):(this.fetchFaceContent(t),"")},handleSelect:function(t){this.$emit("select",t),this.loading=!0}}};var S=n(93379),P=n.n(S),N=n(7795),Z=n.n(N),D=n(90569),R=n.n(D),M=n(3565),B=n.n(M),E=n(19216),I=n.n(E),T=n(44589),$=n.n(T),W=n(97669),L={};L.styleTagTransform=$(),L.setAttributes=B(),L.insert=R().bind(null,"head"),L.domAPI=Z(),L.insertStyleElement=I();P()(W.Z,L);W.Z&&W.Z.locals&&W.Z.locals;const H=(0,d.Z)(j,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"merge-form face-list"},[t.loading?[n("NcLoadingIcon",{staticClass:"loader"})]:t._l(t.filteredFaces,(function(e){return n("div",{key:e.basename,staticClass:"face-list__item",on:{click:function(n){return t.handleSelect(e.basename)}}},[n("div",{staticClass:"face-list__item__crop-container"},[n("img",{staticClass:"face-list__item__image",style:t.getCoverStyle(e.basename),attrs:{src:t.getCoverUrl(e.basename)}})]),t._v(" "),n("div",{staticClass:"face-list__item__details"},[n("span",{class:{"hidden-visually":e.basename.match(/^[0-9]+$/)}},[t._v(t._s(e.basename))])])])}))],2)}),[],!1,null,"47cd75ce",null).exports;function z(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function V(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){z(o,r,i,a,c,"next",t)}function c(t){z(o,r,i,a,c,"throw",t)}a(void 0)}))}}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){U(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function U(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const G={name:"FaceContent",components:{Pencil:i.default,Star:c.default,Download:s.Z,Close:o.default,AlertCircle:a.Z,Send:l.Z,Merge:f,ArrowLeft:p.default,AccountBoxMultipleOutline:h.Z,FaceMergeForm:H,FilesListViewer:v.Z,File:C.Z,NcLoadingIcon:m.NcLoadingIcon,NcEmptyContent:m.NcEmptyContent,NcActions:m.NcActions,NcActionButton:m.NcActionButton,NcModal:m.NcModal,NcButton:m.NcButton},directives:{focus:function(t){_.ZP.nextTick((function(){return t.focus()}))}},mixins:[y.Z,A.Z,g.Z],props:{faceName:{type:String,default:"/"}},data:function(){return{showMergeModal:!1,showRenameModal:!1,loadingCount:0}},computed:q(q({},(0,r.Se)(["files","facesFiles"])),{},{face:function(){return this.faces[this.faceName]},faceFileIds:function(){return this.facesFiles[this.faceName]||[]},shouldFavoriteSelection:function(){var t=this;return this.selectedFileIds.some((function(e){return 0===t.$store.state.files.files[e].favorite}))}}),watch:{face:function(){this.face&&this.fetchFaceContent(this.faceName)}},methods:q(q({},(0,r.nv)(["appendFiles","deleteFace","renameFace","downloadFiles","toggleFavoriteForFiles","removeFilesFromFace","moveFilesToFace"])),{},{openViewer:function(t){var e=this,n=this.files[t];OCA.Viewer.open({path:n.filename,list:this.faceFileIds.map((function(t){return q(q({},e.files[t]),{},{basename:e.files[t].basename.split("-",2)[1]})})).filter((function(t){return!t.sectionHeader})),loadMore:n.loadMore?V(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.loadMore(!0);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))):function(){return[]},canLoop:n.canLoop})},handleRemoveFilesFromFace:function(t){var e=this;return V(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.loadingCount++,n.next=4,e.removeFilesFromFace({faceName:e.faceName,fileIdsToRemove:t});case 4:e.resetSelection(),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),b.Z.error(n.t0);case 10:return n.prev=10,e.loadingCount--,n.finish(10);case 13:case"end":return n.stop()}}),n,null,[[0,7,10,13]])})))()},handleDeleteFace:function(){var t=this;return V(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loadingCount++,e.next=4,t.deleteFace({faceName:t.faceName});case 4:t.$router.push("/faces"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),b.Z.error(e.t0);case 10:return e.prev=10,t.loadingCount--,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,7,10,13]])})))()},handleRenameFace:function(t){var e=this;return V(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.loadingCount++,e.showRenameModal=!1,r=e.faceName,n.next=6,e.renameFace({oldName:r,faceName:t});case 6:e.$router.push({name:"facecontent",params:{faceName:t}}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),b.Z.error(n.t0);case 12:return n.prev=12,e.loadingCount--,n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[0,9,12,15]])})))()},handleMerge:function(t){var e=this;return V(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.loadingCount++,n.next=4,e.moveFilesToFace({oldFace:e.faceName,faceName:t,fileIdsToMove:e.facesFiles[e.faceName]});case 4:return n.next=6,e.deleteFace({faceName:e.faceName});case 6:e.showMergeModal=!1,e.$router.push({name:"facecontent",params:{faceName:t}}),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),b.Z.error(n.t0);case 13:return n.prev=13,e.loadingCount--,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[0,10,13,16]])})))()},favoriteSelection:function(){var t=this;return V(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loadingCount++,e.next=4,t.toggleFavoriteForFiles({fileIds:t.selectedFileIds,favoriteState:!0});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),b.Z.error(e.t0);case 9:return e.prev=9,t.loadingCount--,e.finish(9);case 12:case"end":return e.stop()}}),e,null,[[0,6,9,12]])})))()},unFavoriteSelection:function(){var t=this;return V(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loadingCount++,e.next=4,t.toggleFavoriteForFiles({fileIds:t.selectedFileIds,favoriteState:!1});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),b.Z.error(e.t0);case 9:return e.prev=9,t.loadingCount--,e.finish(9);case 12:case"end":return e.stop()}}),e,null,[[0,6,9,12]])})))()},downloadSelection:function(){var t=this;return V(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loadingCount++,e.next=4,t.downloadFiles(t.selectedFileIds);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),b.Z.error(e.t0);case 9:return e.prev=9,t.loadingCount--,e.finish(9);case 12:case"end":return e.stop()}}),e,null,[[0,6,9,12]])})))()}})};var K=n(61923),X={};X.styleTagTransform=$(),X.setAttributes=B(),X.insert=R().bind(null,"head"),X.domAPI=Z(),X.insertStyleElement=I();P()(K.Z,X);K.Z&&K.Z.locals&&K.Z.locals;const J=(0,d.Z)(G,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return void 0!==t.face||t.loadingFiles||t.loadingFaces?t.errorFetchingFiles||t.errorFetchingFaces?n("NcEmptyContent",{scopedSlots:t._u([{key:"icon",fn:function(){return[n("AlertCircle")]},proxy:!0}])},[t._v("\n\t"+t._s(t.t("photos","An error occurred"))+"\n")]):n("div",{staticClass:"face"},[n("div",{staticClass:"face__header"},[n("div",{staticClass:"face__header__left"},[n("NcActions",[n("NcActionButton",{on:{click:function(e){return t.$router.push("/faces/")}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("ArrowLeft")]},proxy:!0}])},[t._v(t._s(t.t("photos","Back"))+"\n\t\t\t\t")])],1),t._v(" "),n("div",{staticClass:"face__header__title"},[void 0!==t.face?n("h2",{class:{"face-name":!0,"hidden-visually":t.face.basename.match(/^[0-9]+$/)}},[t._v("\n\t\t\t\t\t"+t._s(t.face.basename)+"\n\t\t\t\t")]):t._e()]),t._v(" "),t.loadingCount>0||t.loadingFaces?n("NcLoadingIcon"):t._e()],1),t._v(" "),void 0!==t.face?n("div",{staticClass:"face__header__actions"},[n("NcActions",[n("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Rename person")},on:{click:function(e){t.showRenameModal=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("Pencil")]},proxy:!0}],null,!1,514409694)},[t._v("\n\t\t\t\t\t"+t._s(t.t("photos","Rename person"))+"\n\t\t\t\t")])],1),t._v(" "),n("NcActions",{attrs:{"force-menu":!0}},[Object.keys(t.faces).length>1?n("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Merge with different person")},on:{click:function(e){t.showMergeModal=!0}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("Merge")]},proxy:!0}],null,!1,3117189691)},[t._v("\n\t\t\t\t\t"+t._s(t.t("photos","Merge with different person"))+"\n\t\t\t\t")]):t._e(),t._v(" "),t.selectedFileIds.length?[n("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Download selected files")},on:{click:t.downloadSelection}},[n("Download",{attrs:{slot:"icon"},slot:"icon"}),t._v("\n\t\t\t\t\t\t"+t._s(t.t("photos","Download selected photos"))+"\n\t\t\t\t\t")],1),t._v(" "),t.shouldFavoriteSelection?n("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Mark selection as favorite")},on:{click:t.favoriteSelection}},[n("Star",{attrs:{slot:"icon"},slot:"icon"}),t._v("\n\t\t\t\t\t\t"+t._s(t.t("photos","Favorite"))+"\n\t\t\t\t\t")],1):n("NcActionButton",{attrs:{"close-after-click":!0,"aria-label":t.t("photos","Remove selection from favorites")},on:{click:t.unFavoriteSelection}},[n("Star",{attrs:{slot:"icon"},slot:"icon"}),t._v("\n\t\t\t\t\t\t"+t._s(t.t("photos","Remove from favorites"))+"\n\t\t\t\t\t")],1),t._v(" "),n("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.handleRemoveFilesFromFace(t.selectedFileIds)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("Close")]},proxy:!0}],null,!1,1051939733)},[t._v("\n\t\t\t\t\t\t"+t._s(t.n("photos","Remove photo from person","Remove photos from person",t.selectedFileIds.length))+"\n\t\t\t\t\t")])]:t._e(),t._v(" "),n("NcActionButton",{attrs:{"close-after-click":!0},on:{click:t.handleDeleteFace},scopedSlots:t._u([{key:"icon",fn:function(){return[n("Close")]},proxy:!0}],null,!1,1051939733)},[t._v("\n\t\t\t\t\t"+t._s(t.t("photos","Remove person"))+"\n\t\t\t\t")])],2)],1):t._e()]),t._v(" "),void 0!==t.face?n("FilesListViewer",{staticClass:"face__photos",attrs:{"use-window":!0,"file-ids":t.faceFileIds,loading:t.loadingFiles||t.loadingFaces},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.file,i=e.visibility;return n("File",{attrs:{file:t.files[r.id],"allow-selection":!0,selected:!0===t.selection[r.id],visibility:i,semaphore:t.semaphore},on:{click:t.openViewer,"select-toggled":t.onFileSelectToggle}})}}],null,!1,3592900521)}):t._e(),t._v(" "),t.showRenameModal?n("NcModal",{attrs:{title:t.t("photos","Rename person")},on:{close:function(e){t.showRenameModal=!1}}},[n("div",{staticClass:"rename-form"},[n("input",{directives:[{name:"focus",rawName:"v-focus"}],ref:"nameInput",attrs:{type:"text",name:"name",required:"",placeholder:t.t("photos","Name of this person")},domProps:{value:t.faceName},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleRenameFace(t.$refs.nameInput.value)}}}),t._v(" "),n("NcButton",{attrs:{"aria-label":t.t("photos","Save."),type:"primary",disabled:t.$refs.nameInput&&""===t.$refs.nameInput.value.trim()},on:{click:function(e){return t.handleRenameFace(t.$refs.nameInput.value)}},scopedSlots:t._u([{key:"icon",fn:function(){return[t.loadingCount?n("NcLoadingIcon"):n("Send")]},proxy:!0}],null,!1,564208483)},[t._v("\n\t\t\t\t"+t._s(t.t("photos","Save"))+"\n\t\t\t")])],1)]):t._e(),t._v(" "),t.showMergeModal?n("NcModal",{attrs:{title:t.t("photos","Merge person")},on:{close:function(e){t.showMergeModal=!1}}},[n("FaceMergeForm",{attrs:{"first-face":t.faceName},on:{select:function(e){return t.handleMerge(e)}}})],1):t._e()],1):n("NcEmptyContent",{staticClass:"empty-content-with-illustration",scopedSlots:t._u([{key:"icon",fn:function(){return[n("AccountBoxMultipleOutline")]},proxy:!0}],null,!1,2861705255)},[t._v("\n\t"+t._s(t.t("photos","This person could not be found"))+"\n")])}),[],!1,null,"42c3678c",null).exports}}]);
//# sourceMappingURL=photos-src_views_FaceContent_vue.js.map?v=df317491ca766042d233