You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

core-unified-search.js 43KB

123
  1. /*! For license information please see core-unified-search.js.LICENSE.txt */
  2. (()=>{"use strict";var e,i={67001:(e,i,n)=>{var r=n(17499),a=n(77958),s=n(31352),o=n(20144),l=n(74628),c=n(85989),d=n(73567),u=n(60186);const A={name:"CalendarRangeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var p=n(51900);const h=(0,p.Z)(A,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon calendar-range-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),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M9,10H7V12H9V10M13,10H11V12H13V10M17,10H15V12H17V10M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V8H19V19Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var m=n(37008),g=n(25475);const f={name:"CustomDateRangeModal",components:{NcButton:l.Z,NcModal:g.Z,CalendarRangeIcon:h,NcDateTimePicker:m.Z},props:{isOpen:{type:Boolean,required:!0}},data:()=>({dateFilter:{startFrom:null,endAt:null}}),computed:{isModalOpen:{get(){return this.isOpen},set(t){this.$emit("update:is-open",t)}}},methods:{closeModal(){this.isModalOpen=!1},applyCustomRange(){this.$emit("set:custom-date-range",this.dateFilter),this.closeModal()}}};var C=n(93379),v=n.n(C),y=n(7795),b=n.n(y),_=n(90569),x=n.n(_),I=n(3565),Z=n.n(I),w=n(19216),k=n.n(w),N=n(44589),M=n.n(N),S=n(72343),D={};D.styleTagTransform=M(),D.setAttributes=Z(),D.insert=x().bind(null,"head"),D.domAPI=b(),D.insertStyleElement=k(),v()(S.Z,D),S.Z&&S.Z.locals&&S.Z.locals;const L=(0,p.Z)(f,(function(){var t=this,e=t._self._c;return t.isModalOpen?e("NcModal",{attrs:{id:"unified-search",name:t.t("core","Custom date range"),show:t.isModalOpen,size:"small","clear-view-delay":0,title:t.t("core","Custom date range")},on:{"update:show":function(e){t.isModalOpen=e},close:t.closeModal}},[e("div",{staticClass:"unified-search-custom-date-modal"},[e("h1",[t._v(t._s(t.t("core","Custom date range")))]),t._v(" "),e("div",{staticClass:"unified-search-custom-date-modal__pickers"},[e("NcDateTimePicker",{attrs:{id:"unifiedsearch-custom-date-range-start",label:t.t("core","Pick start date"),type:"date"},model:{value:t.dateFilter.startFrom,callback:function(e){t.$set(t.dateFilter,"startFrom",e)},expression:"dateFilter.startFrom"}}),t._v(" "),e("NcDateTimePicker",{attrs:{id:"unifiedsearch-custom-date-range-end",label:t.t("core","Pick end date"),type:"date"},model:{value:t.dateFilter.endAt,callback:function(e){t.$set(t.dateFilter,"endAt",e)},expression:"dateFilter.endAt"}})],1),t._v(" "),e("div",{staticClass:"unified-search-custom-date-modal__footer"},[e("NcButton",{on:{click:t.applyCustomRange},scopedSlots:t._u([{key:"icon",fn:function(){return[e("CalendarRangeIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,3084610734)},[t._v("\n\t\t\t\t"+t._s(t.t("core","Search in date range"))+"\n\t\t\t\t")])],1)])]):t._e()}),[],!1,null,"99abc4fc",null).exports,B={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},F=(0,p.Z)(B,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon dots-horizontal-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),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,T={name:"FilterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},j=(0,p.Z)(T,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon filter-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),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,z={name:"SearchFilterChip",components:{CloseIcon:n(44893).default},props:{text:{type:String,required:!0},pretext:{type:String,required:!0}},methods:{deleteChip(){this.$emit("delete",this.filter)}}};var R=n(53523),P={};P.styleTagTransform=M(),P.setAttributes=Z(),P.insert=x().bind(null,"head"),P.domAPI=b(),P.insertStyleElement=k(),v()(R.Z,P),R.Z&&R.Z.locals&&R.Z.locals;const H=(0,p.Z)(z,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"chip"},[e("span",{staticClass:"icon"},[t._t("icon"),t._v(" "),t.pretext.length?e("span",[t._v(" "+t._s(t.pretext)+" : ")]):t._e()],2),t._v(" "),e("span",{staticClass:"text"},[t._v(t._s(t.text))]),t._v(" "),e("span",{staticClass:"close-icon",on:{click:t.deleteChip}},[e("CloseIcon",{attrs:{size:18}})],1)])}),[],!1,null,"5dc4d462",null).exports,E={name:"ListBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},U=(0,p.Z)(E,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon list-box-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),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M7 7H9V9H7V7M7 11H9V13H7V11M7 15H9V17H7V15M17 17H11V15H17V17M17 13H11V11H17V13M17 9H11V7H17V9Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var Y=n(55212),V=n(72155),O=n(18519),G=n(22175),Q=n(6905),$=n(66236),W=n(75944),q=n(45157),J=n(26053),X=n(41989),K=n(99313),tt=n(20090),et=n(96204),it=n(16894),nt=n(94162),rt=n(40874),at=n(27657),st=n(2047),ot=n(92870),lt=n(26022),ct=n(89998),dt=n(51235),ut=n(36065),At=n(96315),pt=n(66845),ht=n(87875),mt=n(33429),gt=n(56956),ft=n(42899),Ct=n(98445),vt=n(13887),yt=n(36402),bt=n(49231),_t=n(34741),xt=n(13607),It=n(73743),Zt=n(59897),wt=n(89241),kt=n(96226),Nt=n(97947),Mt=n(26939),St=n(74764),Dt=n(6318),Lt=n(78573),Bt=n(93428),Ft=n(93815),Tt=n(40873),jt=n(64865),zt=n(3172),Rt=n(88175),Pt=n(20435),Ht=n(6156),Et=n(16972),Ut=n(34246),Yt=n(34854),Vt=n(42213),Ot=n(22663),Gt=n(98212),Qt=n(13372),$t=(n(29612),n(93664)),Wt=n(79753),qt=n(86884),Jt=(n(60577),n(49368)),Xt=n(69183),Kt=n(74911),te=n(35380),ee=n(56857),ie=n(67912),ne=n(13199),re=n(13888),ae=n(34509),se=n(70653),oe=(n(52299),n(50279),n(93911),n(85302),n(90318)),le=n(17593),ce=(n(79845),n(84722),n(76692),n(40946),n(73045));V.Z,$.Z,W.Z,q.Z,J.Z,X.Z,K.Z,tt.Z,et.Z,it.Z,nt.Z,Y.Z,rt.Z,at.Z,st.Z,ot.Z,lt.Z,ct.Z,dt.Z,ut.Z,At.Z,pt.Z,ht.Z,mt.Z,gt.Z,ft.Z,Ct.Z,Gt.NcAutoCompleteResult,vt.N,yt.Z,bt.Z,l.Z,_t.Z,xt.Z,It.Z,Zt.Z,wt.Z,kt.Z,Nt.Z,Mt.Z,m.Z,St.Z,Dt.Z,Lt.Z,G.Z,Bt.Z,Ft.Z,Tt.N,jt.Z,zt.Z,Rt.Z,Pt.Z,Ot.N,g.Z,Ht.Z,Et.Z,Ut.Z,Yt.Z,Vt.Z,Gt.default,Qt.N,Kt.Z,qt.Z,te.Z,ee.Z,ie.Z,ne.N,se.Z,Jt.Z,re.Z,ae.Z,Symbol.toStringTag,oe.X,le.X,ce.VTooltip,Symbol.toStringTag;var de=n(48950);const ue={name:"SearchableList",components:{NcPopover:Ut.Z,NcTextField:Jt.Z,Magnify:c.default,AlertCircleOutline:de.default,NcAvatar:vt.N,NcEmptyContent:G.Z,NcButton:l.Z},props:{labelText:{type:String,default:"this is a label"},searchList:{type:Array,required:!0},emptyContentText:{type:String,required:!0}},data:()=>({opened:!1,error:!1,searchTerm:""}),computed:{filteredList(){return this.searchList.filter((t=>!this.searchTerm.toLowerCase().length||["displayName"].some((e=>t[e].toLowerCase().includes(this.searchTerm.toLowerCase())))))}},methods:{clearSearch(){this.searchTerm=""},itemSelected(t){this.$emit("item-selected",t),this.clearSearch(),this.opened=!1},searchTermChanged(t){this.$emit("search-term-change",t)}}};var Ae=n(3955),pe={};pe.styleTagTransform=M(),pe.setAttributes=Z(),pe.insert=x().bind(null,"head"),pe.domAPI=b(),pe.insertStyleElement=k(),v()(Ae.Z,pe),Ae.Z&&Ae.Z.locals&&Ae.Z.locals;const he=(0,p.Z)(ue,(function(){var t=this,e=t._self._c;return e("NcPopover",{attrs:{shown:t.opened},on:{show:function(e){t.opened=!0},hide:function(e){t.opened=!1}},scopedSlots:t._u([{key:"trigger",fn:function(){return[t._t("trigger")]},proxy:!0}],null,!0)},[t._v(" "),e("div",{staticClass:"searchable-list__wrapper"},[e("NcTextField",{attrs:{value:t.searchTerm,label:t.labelText,"trailing-button-icon":"close","show-trailing-button":""!==t.searchTerm},on:{"update:value":[function(e){t.searchTerm=e},t.searchTermChanged],"trailing-button-click":t.clearSearch}},[e("Magnify",{attrs:{size:20}})],1),t._v(" "),t.filteredList.length>0?e("ul",{staticClass:"searchable-list__list"},t._l(t.filteredList,(function(i){return e("li",{key:i.id,attrs:{title:i.displayName,role:"button"}},[e("NcButton",{attrs:{alignment:"start",type:"tertiary",wide:!0},on:{click:function(e){return t.itemSelected(i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcAvatar",{attrs:{user:i.user,"show-user-status":!1,"hide-favorite":!1}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(i.displayName)+"\n\t\t\t\t")])],1)})),0):e("div",{staticClass:"searchable-list__empty-content"},[e("NcEmptyContent",{attrs:{name:t.emptyContentText},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlertCircleOutline")]},proxy:!0}])})],1)],1)])}),[],!1,null,"7cf71a2c",null).exports,me={name:"SearchResult",components:{NcListItem:zt.Z},props:{thumbnailUrl:{type:String,default:null},title:{type:String,required:!0},subline:{type:String,default:null},resourceUrl:{type:String,default:null},icon:{type:String,default:""},rounded:{type:Boolean,default:!1},query:{type:String,default:""},focused:{type:Boolean,default:!1}},data:()=>({thumbnailHasError:!1}),watch:{thumbnailUrl(){this.thumbnailHasError=!1}},methods:{isValidIconOrPreviewUrl:t=>/^https?:\/\//.test(t)||t.startsWith("/"),thumbnailErrorHandler(){this.thumbnailHasError=!0}}};var ge=n(48043),fe={};fe.styleTagTransform=M(),fe.setAttributes=Z(),fe.insert=x().bind(null,"head"),fe.domAPI=b(),fe.insertStyleElement=k(),v()(ge.Z,fe),ge.Z&&ge.Z.locals&&ge.Z.locals;const Ce=(0,p.Z)(me,(function(){var t=this,e=t._self._c;return e("NcListItem",{staticClass:"result-items__item",attrs:{name:t.title,bold:!1,href:t.resourceUrl,target:"_self"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("div",{staticClass:"result-items__item-icon",class:{"result-items__item-icon--rounded":t.rounded,"result-items__item-icon--no-preview":!t.isValidIconOrPreviewUrl(t.thumbnailUrl),"result-items__item-icon--with-thumbnail":t.isValidIconOrPreviewUrl(t.thumbnailUrl),[t.icon]:!t.isValidIconOrPreviewUrl(t.icon)},style:{backgroundImage:t.isValidIconOrPreviewUrl(t.icon)?`url(${t.icon})`:""},attrs:{"aria-hidden":"true"}},[t.isValidIconOrPreviewUrl(t.thumbnailUrl)&&!t.thumbnailHasError?e("img",{attrs:{src:t.thumbnailUrl},on:{error:t.thumbnailErrorHandler}}):t._e()])]},proxy:!0},{key:"subname",fn:function(){return[t._v("\n\t\t"+t._s(t.subline)+"\n\t")]},proxy:!0}])})}),[],!1,null,"67d9a3cf",null).exports;var ve=n(20296),ye=n.n(ve),be=n(25108);async function _e(t){let{searchTerm:e}=t;const{data:{contacts:i}}=await $t.Z.post((0,Wt.generateUrl)("/contactsmenu/contacts"),{filter:e});if(!e){let t=(0,a.ts)();return t={id:t.uid,fullName:t.displayName,emailAddresses:[]},i.unshift(t),i}return i}var xe=n(25108);const Ie={name:"UnifiedSearchModal",components:{ArrowRight:d.default,AccountGroup:u.Z,CalendarRangeIcon:h,CustomDateRangeModal:L,DotsHorizontalIcon:F,FilterIcon:j,FilterChip:H,ListBox:U,NcActions:Y.Z,NcActionButton:V.Z,NcAvatar:O.Z,NcButton:l.Z,NcEmptyContent:G.Z,NcModal:g.Z,NcInputField:Q.Z,MagnifyIcon:c.default,SearchableList:he,SearchResult:Ce},props:{isVisible:{type:Boolean,required:!0}},data(){return{providers:[],providerActionMenuIsOpen:!1,dateActionMenuIsOpen:!1,providerResultLimit:5,dateFilter:{id:"date",type:"date",text:"",startFrom:null,endAt:null},personFilter:{id:"person",type:"person",name:""},dateFilterIsApplied:!1,personFilterIsApplied:!1,filteredProviders:[],searching:!1,searchQuery:"",placessearchTerm:"",dateTimeFilter:null,filters:[],results:[],contacts:[],debouncedFind:ye()(this.find,300),debouncedFilterContacts:ye()(this.filterContacts,300),showDateRangeModal:!1,internalIsVisible:!1}},computed:{userContacts:{get(){return this.contacts}},noContentInfo:{get(){const e=0===this.searchQuery.length,i=this.searchQuery.length>0&&0===this.results.length;return{show:e||i,text:this.searching&&i?t("core","Searching …"):e?t("core","Start typing to search"):t("core","No matching results"),icon:c.default}}}},watch:{isVisible(t){this.internalIsVisible=t},internalIsVisible(t){this.$emit("update:isVisible",t),this.$nextTick((()=>{t&&this.focusInput()}))}},mounted(){(async function(){try{const{data:t}=await $t.Z.get((0,Wt.generateOcsUrl)("search/providers"),{params:{from:window.location.pathname.replace("/index.php","")+window.location.search}});if("ocs"in t&&"data"in t.ocs&&Array.isArray(t.ocs.data)&&t.ocs.data.length>0)return t.ocs.data}catch(t){be.error(t)}return[]})().then((t=>{this.providers=t,xe.debug("Search providers",this.providers)})),_e({searchTerm:""}).then((t=>{this.contacts=this.mapContacts(t),xe.debug("Contacts",this.contacts)}))},methods:{find(t){if(this.searching=!0,0===t.length)return this.results=[],void(this.searching=!1);(0,Xt.j8)("nextcloud:unified-search.search",{query:t});const e=[],i=this.filteredProviders.length>0?this.filteredProviders:this.providers,n=(i,n)=>{const r={type:i.id,query:t,cursor:null};if(n.dateFilterIsApplied){if(!i.filters.since||!i.filters.until)return;r.since=this.dateFilter.startFrom,r.until=this.dateFilter.endAt}if(n.personFilterIsApplied){if(!i.filters.person)return;r.person=this.personFilter.user}this.providerResultLimit>5&&(r.limit=this.providerResultLimit),(0,function(t){let{type:e,query:i,cursor:n,since:r,until:a,limit:s,person:o}=t;const l=$t.Z.CancelToken.source();return{request:async()=>$t.Z.get((0,Wt.generateOcsUrl)("search/providers/{type}/search",{type:e}),{cancelToken:l.token,params:{term:i,cursor:n,since:r,until:a,limit:s,person:o,from:window.location.pathname.replace("/index.php","")+window.location.search}}),cancel:l.cancel}}(r).request)().then((t=>{e.push({id:i.id,provider:i.name,inAppSearch:i.inAppSearch,results:t.data.ocs.data.entries}),xe.debug("New results",e),xe.debug("Unified search results:",this.results),this.updateResults(e),this.searching=!1}))};i.forEach((t=>{const e=this.dateFilterIsApplied,i=this.personFilterIsApplied;n(t,{dateFilterIsApplied:e,personFilterIsApplied:i})}))},updateResults(t){let e=[...this.results];this.filters.length>0&&(e=e.filter((t=>this.filters.some((e=>e.id===t.id))))),t.forEach((t=>{const i=e.findIndex((e=>e.id===t.id));-1!==i?0===t.results.length?e.splice(i,1):e.splice(i,1,t):t.results.length>0&&e.push(t)}));const i=e.slice(0);i.sort(((t,e)=>{const i=this.providers.find((e=>e.id===t.id)),n=this.providers.find((t=>t.id===e.id));return(i?i.order:0)-(n?n.order:0)})),this.results=i},mapContacts:t=>t.map((t=>({displayName:t.fullName,isNoUser:!1,subname:t.emailAddresses[0]?t.emailAddresses[0]:"",icon:"",user:t.id}))),filterContacts(t){_e({searchTerm:t}).then((e=>{this.contacts=this.mapContacts(e),xe.debug(`Contacts filtered by ${t}`,this.contacts)}))},applyPersonFilter(t){this.personFilterIsApplied=!0;const e=this.filters.findIndex((e=>e.id===t.id));-1===e?(this.personFilter.id=t.id,this.personFilter.user=t.user,this.personFilter.name=t.displayName,this.filters.push(this.personFilter)):(this.filters[e].id=t.id,this.filters[e].user=t.user,this.filters[e].name=t.displayName),this.debouncedFind(this.searchQuery),xe.debug("Person filter applied",t)},loadMoreResultsForProvider(t){this.providerResultLimit+=5,this.filters=this.filters.filter((t=>"provider"!==t.type));const e=this.providers.find((e=>e.id===t));this.addProviderFilter(e,!0)},addProviderFilter(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.id&&(this.providerResultLimit=e?this.providerResultLimit:5,this.providerActionMenuIsOpen=!1,this.filteredProviders.find((e=>e.id===t.id))||this.filteredProviders.push({id:t.id,name:t.name,icon:t.icon,type:"provider",filters:t.filters}),this.filters=this.syncProviderFilters(this.filters,this.filteredProviders),xe.debug("Search filters (newly added)",this.filters),this.debouncedFind(this.searchQuery))},removeFilter(t){if("provider"===t.type){for(let e=0;e<this.filteredProviders.length;e++)if(this.filteredProviders[e].id===t.id){this.filteredProviders.splice(e,1);break}this.filters=this.syncProviderFilters(this.filters,this.filteredProviders),xe.debug("Search filters (recently removed)",this.filters)}else for(let e=0;e<this.filters.length;e++)if("date"===this.filters[e].id||this.filters[e].id===t.id){this.dateFilterIsApplied=!1,this.filters.splice(e,1),"person"===t.type&&(this.personFilterIsApplied=!1);break}this.debouncedFind(this.searchQuery)},syncProviderFilters(t,e){const i=t.slice();return i.forEach(((t,n)=>{const r=t.id;"provider"===t.type&&(e.some((t=>t.id===r))||i.splice(n,1))})),e.forEach((t=>{const e=t.id;"provider"===t.type&&(i.some((t=>t.id===e))||i.push(t))})),i},updateDateFilter(){const t=this.filters.findIndex((t=>"date"===t.id));-1!==t?this.filters[t]=this.dateFilter:this.filters.push(this.dateFilter),this.dateFilterIsApplied=!0,this.debouncedFind(this.searchQuery)},applyQuickDateRange(e){this.dateActionMenuIsOpen=!1;const i=new Date;let n,r;switch(e){case"today":n=new Date(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0,0),r=new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,59,59,999),this.dateFilter.text=t("core","Today");break;case"7days":n=new Date(i.getFullYear(),i.getMonth(),i.getDate()-6,0,0,0,0),this.dateFilter.text=t("core","Last 7 days");break;case"30days":n=new Date(i.getFullYear(),i.getMonth(),i.getDate()-29,0,0,0,0),this.dateFilter.text=t("core","Last 30 days");break;case"thisyear":n=new Date(i.getFullYear(),0,1,0,0,0,0),r=new Date(i.getFullYear(),11,31,23,59,59,999),this.dateFilter.text=t("core","This year");break;case"lastyear":n=new Date(i.getFullYear()-1,0,1,0,0,0,0),r=new Date(i.getFullYear()-1,11,31,23,59,59,999),this.dateFilter.text=t("core","Last year");break;case"custom":return void(this.showDateRangeModal=!0);default:return}this.dateFilter.startFrom=n,this.dateFilter.endAt=r,this.updateDateFilter()},setCustomDateRange(e){xe.debug("Custom date range",e),this.dateFilter.startFrom=e.startFrom,this.dateFilter.endAt=e.endAt,this.dateFilter.text=t("core",`Between ${this.dateFilter.startFrom.toLocaleDateString()} and ${this.dateFilter.endAt.toLocaleDateString()}`),this.updateDateFilter()},focusInput(){this.$refs.searchInput.$el.children[0].children[0].focus()},closeModal(){this.internalIsVisible=!1,this.searchQuery=""},supportFiltering(){const t=window.location.pathname.replace("/index.php","");return["/settings/users","/apps/files","/apps/deck"].some((e=>t.includes(e)))}}};var Ze=n(93818),we={};we.styleTagTransform=M(),we.setAttributes=Z(),we.insert=x().bind(null,"head"),we.domAPI=b(),we.insertStyleElement=k(),v()(Ze.Z,we),Ze.Z&&Ze.Z.locals&&Ze.Z.locals;const ke=(0,p.Z)(Ie,(function(){var t=this,e=t._self._c;return e("NcModal",{ref:"unifiedSearchModal",attrs:{id:"unified-search",name:t.t("core","Unified search"),show:t.internalIsVisible,"clear-view-delay":0},on:{"update:show":function(e){t.internalIsVisible=e},close:t.closeModal}},[e("CustomDateRangeModal",{staticClass:"unified-search__date-range",attrs:{"is-open":t.showDateRangeModal},on:{"set:custom-date-range":t.setCustomDateRange,"update:is-open":function(e){t.showDateRangeModal=e}}}),t._v(" "),e("div",{ref:"unifiedSearch",staticClass:"unified-search-modal"},[e("h1",[t._v(t._s(t.t("core","Unified search")))]),t._v(" "),e("NcInputField",{ref:"searchInput",attrs:{value:t.searchQuery,type:"text",label:t.t("core","Search apps, files, tags, messages")+"..."},on:{"update:value":[function(e){t.searchQuery=e},t.debouncedFind]}}),t._v(" "),e("div",{staticClass:"unified-search-modal__filters"},[e("NcActions",{attrs:{"menu-name":t.t("core","Apps and Settings"),open:t.providerActionMenuIsOpen},on:{"update:open":function(e){t.providerActionMenuIsOpen=e}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("ListBox",{attrs:{size:20}})]},proxy:!0}])},[t._v(" "),t._l(t.providers,(function(i){return e("NcActionButton",{key:i.id,on:{click:function(e){return t.addProviderFilter(i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{attrs:{src:i.icon}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(t.t("core",i.name))+"\n\t\t\t\t")])}))],2),t._v(" "),e("NcActions",{attrs:{"menu-name":t.t("core","Date"),open:t.dateActionMenuIsOpen},on:{"update:open":function(e){t.dateActionMenuIsOpen=e}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("CalendarRangeIcon",{attrs:{size:20}})]},proxy:!0}])},[t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.applyQuickDateRange("today")}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Today"))+"\n\t\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.applyQuickDateRange("7days")}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Last 7 days"))+"\n\t\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.applyQuickDateRange("30days")}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Last 30 days"))+"\n\t\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.applyQuickDateRange("thisyear")}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","This year"))+"\n\t\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.applyQuickDateRange("lastyear")}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Last year"))+"\n\t\t\t\t")]),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.applyQuickDateRange("custom")}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Custom date range"))+"\n\t\t\t\t")])],1),t._v(" "),e("SearchableList",{attrs:{"label-text":t.t("core","Search people"),"search-list":t.userContacts,"empty-content-text":t.t("core","Not found")},on:{"search-term-change":t.debouncedFilterContacts,"item-selected":t.applyPersonFilter},scopedSlots:t._u([{key:"trigger",fn:function(){return[e("NcButton",{scopedSlots:t._u([{key:"icon",fn:function(){return[e("AccountGroup",{attrs:{size:20}})]},proxy:!0}])},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("core","People"))+"\n\t\t\t\t\t")])]},proxy:!0}])})],1),t._v(" "),e("div",{staticClass:"unified-search-modal__filters-applied"},t._l(t.filters,(function(i){return e("FilterChip",{key:i.id,attrs:{text:i.name??i.text,pretext:""},on:{delete:function(e){return t.removeFilter(i)}},scopedSlots:t._u([{key:"icon",fn:function(){return["person"===i.type?e("NcAvatar",{attrs:{user:i.user,size:24,"disable-menu":!0,"show-user-status":!1,"hide-favorite":!1}}):"date"===i.type?e("CalendarRangeIcon"):e("img",{attrs:{src:i.icon,alt:""}})]},proxy:!0}],null,!0)})})),1),t._v(" "),t.noContentInfo.show?e("div",{staticClass:"unified-search-modal__no-content"},[e("NcEmptyContent",{attrs:{name:t.noContentInfo.text},scopedSlots:t._u([{key:"icon",fn:function(){return[e(t.noContentInfo.icon,{tag:"component"})]},proxy:!0}],null,!1,604901229)})],1):t._e(),t._v(" "),t._l(t.results,(function(i){return e("div",{key:i.id,staticClass:"unified-search-modal__results"},[e("div",{staticClass:"results"},[e("div",{staticClass:"result-title"},[e("span",[t._v(t._s(i.provider))])]),t._v(" "),e("ul",{staticClass:"result-items"},t._l(i.results,(function(i,n){return e("SearchResult",t._b({key:n},"SearchResult",i,!1))})),1),t._v(" "),e("div",{staticClass:"result-footer"},[e("NcButton",{attrs:{type:"tertiary-no-background"},on:{click:function(e){return t.loadMoreResultsForProvider(i.id)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DotsHorizontalIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("core","Load more results"))+"\n\t\t\t\t\t\t")]),t._v(" "),i.inAppSearch?e("NcButton",{attrs:{alignment:"end-reverse",type:"tertiary-no-background"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("ArrowRight",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("core","Search in"))+" "+t._s(i.provider)+"\n\t\t\t\t\t\t")]):t._e()],1)])])})),t._v(" "),t.supportFiltering()?e("div",{staticClass:"unified-search-modal__results"},[e("NcButton",{on:{click:t.closeModal},scopedSlots:t._u([{key:"icon",fn:function(){return[e("FilterIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2021673347)},[t._v("\n\t\t\t\t"+t._s(t.t("core","Filter in current view"))+"\n\t\t\t\t")])],1):t._e()],2)],1)}),[],!1,null,"91bd0074",null).exports;var Ne=n(25108);const Me={name:"UnifiedSearch",components:{NcButton:l.Z,Magnify:c.default,UnifiedSearchModal:ke},data:()=>({showUnifiedSearch:!1}),mounted(){Ne.debug("Unified search initialized!")},methods:{toggleUnifiedSearch(){this.showUnifiedSearch=!this.showUnifiedSearch},handleModalVisibilityChange(t){this.showUnifiedSearch=t}}};var Se=n(50222),De={};De.styleTagTransform=M(),De.setAttributes=Z(),De.insert=x().bind(null,"head"),De.domAPI=b(),De.insertStyleElement=k(),v()(Se.Z,De),Se.Z&&Se.Z.locals&&Se.Z.locals;const Le=(0,p.Z)(Me,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-menu"},[e("NcButton",{staticClass:"unified-search__button",attrs:{"aria-label":t.t("core","Unified search")},on:{click:t.toggleUnifiedSearch},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Magnify",{staticClass:"unified-search__trigger",attrs:{size:22}})]},proxy:!0}])}),t._v(" "),e("UnifiedSearchModal",{class:"unified-search-modal",attrs:{"is-visible":t.showUnifiedSearch},on:{"update:isVisible":t.handleModalVisibilityChange}})],1)}),[],!1,null,"3883344d",null).exports;n.nc=btoa((0,a.IH)());const Be=(0,r.IY)().setApp("unified-search").detectUser().build();o.default.mixin({data:()=>({logger:Be}),methods:{t:s.Iu,n:s.uN}}),new o.default({el:"#unified-search",name:"UnifiedSearchRoot",render:t=>t(Le)})},72343:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(87537),r=i.n(n),a=i(23645),s=i.n(a)()(r());s.push([t.id,".unified-search-custom-date-modal[data-v-99abc4fc]{padding:10px 20px 10px 20px}.unified-search-custom-date-modal h1[data-v-99abc4fc]{font-size:16px;font-weight:bolder;line-height:2em}.unified-search-custom-date-modal__pickers[data-v-99abc4fc]{display:flex;flex-direction:column}.unified-search-custom-date-modal__footer[data-v-99abc4fc]{display:flex;justify-content:end}","",{version:3,sources:["webpack://./core/src/components/UnifiedSearch/CustomDateRangeModal.vue"],names:[],mappings:"AACA,mDACC,2BAAA,CAEA,sDACC,cAAA,CACA,kBAAA,CACA,eAAA,CAGD,4DACC,YAAA,CACA,qBAAA,CAGD,2DACC,YAAA,CACA,mBAAA",sourcesContent:["\n.unified-search-custom-date-modal {\n\tpadding: 10px 20px 10px 20px;\n\n\th1 {\n\t\tfont-size: 16px;\n\t\tfont-weight: bolder;\n\t\tline-height: 2em;\n\t}\n\n\t&__pickers {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t}\n\n\t&__footer {\n\t\tdisplay: flex;\n\t\tjustify-content: end;\n\t}\n\n}\n"],sourceRoot:""}]);const o=s},53523:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(87537),r=i.n(n),a=i(23645),s=i.n(a)()(r());s.push([t.id,".chip[data-v-5dc4d462]{display:flex;align-items:center;padding:2px 4px;border:1px solid var(--color-primary-element-light);border-radius:20px;background-color:var(--color-primary-element-light);margin:2px}.chip .icon[data-v-5dc4d462]{display:flex;align-items:center;padding-right:5px}.chip .icon img[data-v-5dc4d462]{width:20px;padding:2px;border-radius:20px;filter:var(--background-invert-if-bright)}.chip .text[data-v-5dc4d462]{margin:0 2px}.chip .close-icon[data-v-5dc4d462]{cursor:pointer}.chip .close-icon[data-v-5dc4d462] :hover{filter:invert(20%)}","",{version:3,sources:["webpack://./core/src/components/UnifiedSearch/SearchFilterChip.vue"],names:[],mappings:"AACA,uBACI,YAAA,CACA,kBAAA,CACA,eAAA,CACA,mDAAA,CACA,kBAAA,CACA,mDAAA,CACA,UAAA,CAEA,6BACI,YAAA,CACA,kBAAA,CACA,iBAAA,CAEA,iCACI,UAAA,CACA,WAAA,CACA,kBAAA,CACA,yCAAA,CAIR,6BACI,YAAA,CAGJ,mCACI,cAAA,CAEA,0CACI,kBAAA",sourcesContent:["\n.chip {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n border: 1px solid var(--color-primary-element-light);\n border-radius: 20px;\n background-color: var(--color-primary-element-light);\n margin: 2px;\n\n .icon {\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n img {\n width: 20px;\n padding: 2px;\n border-radius: 20px;\n filter: var(--background-invert-if-bright);\n }\n }\n\n .text {\n margin: 0 2px;\n }\n\n .close-icon {\n cursor: pointer ;\n\n :hover {\n filter: invert(20%);\n }\n }\n}\n"],sourceRoot:""}]);const o=s},48043:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(87537),r=i.n(n),a=i(23645),s=i.n(a)()(r());s.push([t.id,".result-items__item[data-v-67d9a3cf] a{border-radius:12px;border:2px solid rgba(0,0,0,0);border-radius:var(--border-radius-large) !important}.result-items__item[data-v-67d9a3cf] a--focused{background-color:var(--color-background-hover)}.result-items__item[data-v-67d9a3cf] a:active,.result-items__item[data-v-67d9a3cf] a:hover,.result-items__item[data-v-67d9a3cf] a:focus{background-color:var(--color-background-hover);border:2px solid var(--color-border-maxcontrast)}.result-items__item[data-v-67d9a3cf] a *{cursor:pointer}.result-items__item-icon[data-v-67d9a3cf]{overflow:hidden;width:44px;height:44px;border-radius:var(--border-radius);background-repeat:no-repeat;background-position:center center;background-size:32px}.result-items__item-icon--rounded[data-v-67d9a3cf]{border-radius:22px}.result-items__item-icon--no-preview[data-v-67d9a3cf]{background-size:32px}.result-items__item-icon--with-thumbnail[data-v-67d9a3cf]{background-size:cover}.result-items__item-icon--with-thumbnail[data-v-67d9a3cf]:not(.result-items__item-icon--rounded){max-width:42px;max-height:42px;border:1px solid var(--color-border)}.result-items__item-icon img[data-v-67d9a3cf]{width:100%;height:100%;object-fit:cover;object-position:center}","",{version:3,sources:["webpack://./core/src/components/UnifiedSearch/SearchResult.vue"],names:[],mappings:"AAQI,uCACQ,kBAAA,CACA,8BAAA,CACA,mDAAA,CAEA,gDACI,8CAAA,CAGJ,wIAGI,8CAAA,CACA,gDAAA,CAGJ,yCACI,cAAA,CAKR,0CACI,eAAA,CACA,UA9BK,CA+BL,WA/BK,CAgCL,kCAAA,CACA,2BAAA,CACA,iCAAA,CACA,oBAAA,CAEA,mDACI,kBAAA,CAGJ,sDACI,oBAAA,CAGJ,0DACI,qBAAA,CAGJ,iGAEI,cAAA,CACA,eAAA,CACA,oCAAA,CAGJ,8CAEI,UAAA,CACA,WAAA,CAEA,gBAAA,CACA,sBAAA",sourcesContent:['\n@use "sass:math";\n$clickable-area: 44px;\n$margin: 10px;\n\n.result-items {\n &__item {\n\n ::v-deep a {\n border-radius: 12px;\n border: 2px solid transparent;\n border-radius: var(--border-radius-large) !important;\n\n &--focused {\n background-color: var(--color-background-hover);\n }\n\n &:active,\n &:hover,\n &:focus {\n background-color: var(--color-background-hover);\n border: 2px solid var(--color-border-maxcontrast);\n }\n\n * {\n cursor: pointer;\n }\n\n }\n\n &-icon {\n overflow: hidden;\n width: $clickable-area;\n height: $clickable-area;\n border-radius: var(--border-radius);\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 32px;\n\n &--rounded {\n border-radius: math.div($clickable-area, 2);\n }\n\n &--no-preview {\n background-size: 32px;\n }\n\n &--with-thumbnail {\n background-size: cover;\n }\n\n &--with-thumbnail:not(&--rounded) {\n // compensate for border\n max-width: $clickable-area - 2px;\n max-height: $clickable-area - 2px;\n border: 1px solid var(--color-border);\n }\n\n img {\n // Make sure to keep ratio\n width: 100%;\n height: 100%;\n\n object-fit: cover;\n object-position: center;\n }\n }\n\n }\n}\n'],sourceRoot:""}]);const o=s},3955:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(87537),r=i.n(n),a=i(23645),s=i.n(a)()(r());s.push([t.id,".searchable-list__wrapper[data-v-7cf71a2c]{padding:calc(var(--default-grid-baseline)*3);display:flex;flex-direction:column;align-items:center;width:250px}.searchable-list__list[data-v-7cf71a2c]{width:100%;max-height:284px;overflow-y:auto;margin-top:var(--default-grid-baseline);padding:var(--default-grid-baseline)}.searchable-list__list[data-v-7cf71a2c] .button-vue{border-radius:var(--border-radius-large) !important}.searchable-list__list[data-v-7cf71a2c] .button-vue span{font-weight:initial}.searchable-list__empty-content[data-v-7cf71a2c]{margin-top:calc(var(--default-grid-baseline)*3)}","",{version:3,sources:["webpack://./core/src/components/UnifiedSearch/SearchableList.vue"],names:[],mappings:"AAEC,2CACC,4CAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,WAAA,CAGD,wCACC,UAAA,CACA,gBAAA,CACA,eAAA,CACA,uCAAA,CACA,oCAAA,CAEA,oDACC,mDAAA,CACA,yDACC,mBAAA,CAKH,iDACC,+CAAA",sourcesContent:["\n.searchable-list {\n\t&__wrapper {\n\t\tpadding: calc(var(--default-grid-baseline) * 3);\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\twidth: 250px;\n\t}\n\n\t&__list {\n\t\twidth: 100%;\n\t\tmax-height: 284px;\n\t\toverflow-y: auto;\n\t\tmargin-top: var(--default-grid-baseline);\n\t\tpadding: var(--default-grid-baseline);\n\n\t\t:deep(.button-vue) {\n\t\t\tborder-radius: var(--border-radius-large) !important;\n\t\t\tspan {\n\t\t\t\tfont-weight: initial;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__empty-content {\n\t\tmargin-top: calc(var(--default-grid-baseline) * 3);\n\t}\n}\n"],sourceRoot:""}]);const o=s},50222:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(87537),r=i.n(n),a=i(23645),s=i.n(a)()(r());s.push([t.id,".header-menu[data-v-3883344d]{display:flex;align-items:center;justify-content:center}.header-menu .unified-search__button[data-v-3883344d]{display:flex;align-items:center;justify-content:center;width:var(--header-height);margin:0;padding:0;cursor:pointer;opacity:.85;background-color:rgba(0,0,0,0);border:none;filter:none !important;color:var(--color-primary-text) !important}.header-menu .unified-search__button[data-v-3883344d]:hover{background-color:rgba(0,0,0,0) !important}.unified-search-modal[data-v-3883344d] .modal-container{height:80%}","",{version:3,sources:["webpack://./core/src/views/UnifiedSearch.vue"],names:[],mappings:"AACA,8BACC,YAAA,CACA,kBAAA,CACA,sBAAA,CAEA,sDACC,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,0BAAA,CAEA,QAAA,CACA,SAAA,CACA,cAAA,CACA,WAAA,CACA,8BAAA,CACA,WAAA,CACA,sBAAA,CACA,0CAAA,CAEA,4DACC,yCAAA,CAMF,wDACC,UAAA",sourcesContent:["\n.header-menu {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t.unified-search__button {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: var(--header-height);\n\t\t// height: var(--header-height);\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tcursor: pointer;\n\t\topacity: .85;\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tfilter: none !important;\n\t\tcolor: var(--color-primary-text) !important;\n\n\t\t&:hover {\n\t\t\tbackground-color: transparent !important;\n\t\t}\n\t}\n}\n\n.unified-search-modal {\n\t::v-deep .modal-container {\n\t\theight: 80%;\n\t}\n}\n"],sourceRoot:""}]);const o=s},93818:(t,e,i)=>{i.d(e,{Z:()=>o});var n=i(87537),r=i.n(n),a=i(23645),s=i.n(a)()(r());s.push([t.id,".unified-search-modal[data-v-91bd0074]{padding:10px 20px 10px 20px;height:60%}.unified-search-modal__heading[data-v-91bd0074]{font-size:16px;font-weight:bolder;line-height:2em;margin-bottom:0}.unified-search-modal__filters[data-v-91bd0074]{display:flex;padding-top:4px;justify-content:left}.unified-search-modal__filters>*[data-v-91bd0074]{margin-right:4px}.unified-search-modal__filters-applied[data-v-91bd0074]{padding-top:4px;display:flex;flex-wrap:wrap}.unified-search-modal__no-content[data-v-91bd0074]{display:flex;align-items:center;height:100%}.unified-search-modal__results[data-v-91bd0074]{padding:10px}.unified-search-modal__results .results .result-title span[data-v-91bd0074]{color:var(--color-primary-element);font-weight:bolder;font-size:16px}.unified-search-modal__results .results .result-footer[data-v-91bd0074]{justify-content:space-between;align-items:center;display:flex}div.v-popper__wrapper ul li[data-v-91bd0074] button.action-button{align-items:center !important}div.v-popper__wrapper ul li[data-v-91bd0074] button.action-button img{width:20px;margin:0 4px;filter:var(--background-invert-if-bright)}","",{version:3,sources:["webpack://./core/src/views/UnifiedSearchModal.vue"],names:[],mappings:"AACA,uCACC,2BAAA,CACA,UAAA,CAEA,gDACC,cAAA,CACA,kBAAA,CACA,eAAA,CACA,eAAA,CAGD,gDACC,YAAA,CACA,eAAA,CACA,oBAAA,CAEA,kDACC,gBAAA,CAMF,wDACC,eAAA,CACA,YAAA,CACA,cAAA,CAGD,mDACC,YAAA,CACA,kBAAA,CACA,WAAA,CAGD,gDACC,YAAA,CAKE,4EACC,kCAAA,CACA,kBAAA,CACA,cAAA,CAIF,wEACC,6BAAA,CACA,kBAAA,CACA,YAAA,CAUD,kEACC,6BAAA,CAEA,sEACC,UAAA,CACA,YAAA,CACA,yCAAA",sourcesContent:["\n.unified-search-modal {\n\tpadding: 10px 20px 10px 20px;\n\theight: 60%;\n\n\t&__heading {\n\t\tfont-size: 16px;\n\t\tfont-weight: bolder;\n\t\tline-height: 2em;\n\t\tmargin-bottom: 0;\n\t}\n\n\t&__filters {\n\t\tdisplay: flex;\n\t\tpadding-top: 4px;\n\t\tjustify-content: left;\n\n\t\t>* {\n\t\t\tmargin-right: 4px;\n\n\t\t}\n\n\t}\n\n\t&__filters-applied {\n\t\tpadding-top: 4px;\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n\n\t&__no-content {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\theight: 100%;\n\t}\n\n\t&__results {\n\t\tpadding: 10px;\n\n\t\t.results {\n\n\t\t\t.result-title {\n\t\t\t\tspan {\n\t\t\t\t\tcolor: var(--color-primary-element);\n\t\t\t\t\tfont-weight: bolder;\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.result-footer {\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t}\n}\n\ndiv.v-popper__wrapper {\n\tul {\n\t\tli {\n\t\t\t::v-deep button.action-button {\n\t\t\t\talign-items: center !important;\n\n\t\t\t\timg {\n\t\t\t\t\twidth: 20px;\n\t\t\t\t\tmargin: 0 4px;\n\t\t\t\t\tfilter: var(--background-invert-if-bright);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const o=s},42761:t=>{t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},87210:t=>{t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"},94659:t=>{t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="},39896:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE1LjQgMTYuNkwxMC44IDEybDQuNi00LjZMMTQgNmwtNiA2IDYgNiAxLjQtMS40eiIvPjwvc3ZnPg=="},76899:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE4LjQgNy40TDE3IDZsLTYgNiA2IDYgMS40LTEuNC00LjYtNC42IDQuNi00LjZtLTYgMEwxMSA2bC02IDYgNiA2IDEuNC0xLjRMNy44IDEybDQuNi00LjZ6Ii8+PC9zdmc+"},88931:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTUuNiA3LjRMNyA2bDYgNi02IDYtMS40LTEuNCA0LjYtNC42LTQuNi00LjZtNiAwTDEzIDZsNiA2LTYgNi0xLjQtMS40IDQuNi00LjYtNC42LTQuNnoiLz48L3N2Zz4="},16556:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTguNiAxNi42bDQuNi00LjYtNC42LTQuNkwxMCA2bDYgNi02IDYtMS40LTEuNHoiLz48L3N2Zz4="}},n={};function r(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return i[t].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=i,e=[],r.O=(t,i,n,a)=>{if(!i){var s=1/0;for(d=0;d<e.length;d++){i=e[d][0],n=e[d][1],a=e[d][2];for(var o=!0,l=0;l<i.length;l++)(!1&a||s>=a)&&Object.keys(r.O).every((t=>r.O[t](i[l])))?i.splice(l--,1):(o=!1,a<s&&(s=a));if(o){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[i,n,a]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.e=()=>Promise.resolve(),r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.j=9671,(()=>{r.b=document.baseURI||self.location.href;var t={9671:0};r.O.j=e=>0===t[e];var e=(e,i)=>{var n,a,s=i[0],o=i[1],l=i[2],c=0;if(s.some((e=>0!==t[e]))){for(n in o)r.o(o,n)&&(r.m[n]=o[n]);if(l)var d=l(r)}for(e&&e(i);c<s.length;c++)a=s[c],r.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return r.O(d)},i=self.webpackChunknextcloud=self.webpackChunknextcloud||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})(),r.nc=void 0;var a=r.O(void 0,[7874],(()=>r(67001)));a=r.O(a)})();
  3. //# sourceMappingURL=core-unified-search.js.map?v=2a930ac6513d6625415b