You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud/dist/core-global-search.js

3 lines
40 KiB
JavaScript

/*! For license information please see core-global-search.js.LICENSE.txt */
(()=>{"use strict";var e,r={98584:(e,r,i)=>{var n=i(17499),a=i(77958),s=i(31352),o=i(20144),l=i(74628),c=i(85989),d=i(73567),u=i(60186);const A={name:"CalendarRangeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var p=i(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 g=i(37008),m=i(25475);const C={name:"CustomDateRangeModal",components:{NcButton:l.Z,NcModal:m.Z,CalendarRangeIcon:h,NcDateTimePicker:g.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 v=i(93379),f=i.n(v),b=i(7795),y=i.n(b),_=i(90569),x=i.n(_),Z=i(3565),I=i.n(Z),k=i(19216),w=i.n(k),N=i(44589),M=i.n(N),D=i(2051),S={};S.styleTagTransform=M(),S.setAttributes=I(),S.insert=x().bind(null,"head"),S.domAPI=y(),S.insertStyleElement=w(),f()(D.Z,S),D.Z&&D.Z.locals&&D.Z.locals;const L=(0,p.Z)(C,(function(){var t=this,e=t._self._c;return t.isModalOpen?e("NcModal",{attrs:{id:"global-search",name:t.t("core","Date range filter"),show:t.isModalOpen,size:"small","clear-view-delay":0,title:t.t("Date range filter")},on:{"update:show":function(e){t.isModalOpen=e},close:t.closeModal}},[e("div",{staticClass:"global-search-custom-date-modal"},[e("h1",[t._v(t._s(t.t("core","Date range filter")))]),t._v(" "),e("div",{staticClass:"global-search-custom-date-modal__pickers"},[e("NcDateTimePicker",{attrs:{id:"globalsearch-custom-date-range-start",max:new Date,label:t.t("core","Pick a 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:"globalsearch-custom-date-range-end",max:new Date,label:t.t("core","Pick an 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("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._s(t.t("core","Apply range"))+"\n\t\t\t")])],1)]):t._e()}),[],!1,null,"320724b4",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:"CloseThickIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},z={name:"SearchFilterChip",components:{CloseIcon:(0,p.Z)(T,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon close-thick-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:"M20 6.91L17.09 4L12 9.09L6.91 4L4 6.91L9.09 12L4 17.09L6.91 20L12 14.91L17.09 20L20 17.09L14.91 12L20 6.91Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports},props:{text:String,pretext:String},methods:{deleteChip(){this.$emit("delete",this.filter)}}};var j=i(38111),R={};R.styleTagTransform=M(),R.setAttributes=I(),R.insert=x().bind(null,"head"),R.domAPI=y(),R.insertStyleElement=w(),f()(j.Z,R),j.Z&&j.Z.locals&&j.Z.locals;const P=(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:16}})],1)])}),[],!1,null,"390019c6",null).exports,H={name:"FlaskEmptyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},E=(0,p.Z)(H,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon flask-empty-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:"M6,22A3,3 0 0,1 3,19C3,18.4 3.18,17.84 3.5,17.37L9,7.81V6A1,1 0 0,1 8,5V4A2,2 0 0,1 10,2H14A2,2 0 0,1 16,4V5A1,1 0 0,1 15,6V7.81L20.5,17.37C20.82,17.84 21,18.4 21,19A3,3 0 0,1 18,22H6Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,G={name:"ListBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Y=(0,p.Z)(G,(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 O=i(2985),V=i(99059),Q=i(18519),U=i(22175),W=i(90941),$=i(3172),X=i(66236),q=i(75944),J=i(45157),K=i(26053),tt=i(41989),et=i(99313),rt=i(20090),it=i(96204),nt=i(16894),at=i(94162),st=i(40874),ot=i(27657),lt=i(2047),ct=i(58644),dt=i(82002),ut=i(89998),At=i(41671),pt=i(36065),ht=i(96315),gt=i(66845),mt=i(87875),Ct=i(12841),vt=i(56956),ft=i(42899),bt=i(98445),yt=i(45092),_t=i(36402),xt=i(49231),Zt=i(10038),It=i(97287),kt=i(73743),wt=i(59897),Nt=i(89241),Mt=i(96226),Dt=i(97947),St=i(47953),Lt=i(93757),Bt=i(6318),Ft=i(78573),Tt=i(93428),zt=i(93815),jt=i(40873),Rt=i(64865),Pt=i(88175),Ht=i(20435),Et=i(6156),Gt=i(16972),Yt=i(34246),Ot=i(34854),Vt=i(42213),Qt=i(22663),Ut=i(98212),Wt=i(61304),$t=(i(96251),i(93664)),Xt=i(79753),qt=i(86884),Jt=(i(86665),i(49368)),Kt=(i(69183),i(74911)),te=i(35380),ee=i(56857),re=i(67912),ie=i(79233),ne=i(13888),ae=i(34509),se=i(70653),oe=(i(52299),i(50279),i(93911),i(85302),i(90318)),le=i(17593),ce=(i(79845),i(84722),i(76692),i(40946),i(73045));V.Z,X.Z,q.Z,J.Z,K.Z,tt.Z,et.Z,rt.Z,it.Z,nt.Z,at.Z,O.Z,st.Z,ot.Z,lt.Z,ct.Z,dt.Z,ut.Z,At.Z,pt.Z,ht.Z,gt.Z,mt.Z,Ct.Z,vt.Z,ft.Z,bt.Z,Ut.NcAutoCompleteResult,yt.N,_t.Z,xt.Z,l.Z,Zt.Z,It.Z,kt.Z,wt.Z,Nt.Z,Mt.Z,Dt.Z,St.Z,g.Z,Lt.Z,Bt.Z,Ft.Z,U.Z,Tt.Z,zt.Z,jt.N,Rt.Z,$.Z,Pt.Z,Ht.Z,Qt.N,m.Z,Et.Z,Gt.Z,Yt.Z,Ot.Z,Vt.Z,Ut.default,Wt.N,Kt.Z,qt.Z,te.Z,ee.Z,re.Z,ie.N,se.Z,Jt.Z,ne.Z,ae.Z,Symbol.toStringTag,oe.X,le.X,ce.VTooltip,Symbol.toStringTag;var de=i(48950);const ue={name:"SearchableList",components:{NcPopover:Yt.Z,NcTextField:Jt.Z,Magnify:c.default,AlertCircleOutline:de.default,NcAvatar:yt.N,NcEmptyContent:U.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}}};var Ae=i(13006),pe={};pe.styleTagTransform=M(),pe.setAttributes=I(),pe.insert=x().bind(null,"head"),pe.domAPI=y(),pe.insertStyleElement=w(),f()(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},"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(r){return e("li",{key:r.id,attrs:{title:r.displayName,role:"button"}},[e("NcButton",{attrs:{alignment:"start",type:"tertiary",wide:!0},on:{click:function(e){return t.itemSelected(r)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcAvatar",{attrs:{user:r.user,"show-user-status":!1,"hide-favorite":!1}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(r.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,"2015df7e",null).exports;var ge=i(20296),me=i.n(ge),Ce=i(25108);async function ve(t){let{searchTerm:e}=t;const{data:{contacts:r}}=await $t.Z.post((0,Xt.generateUrl)("/contactsmenu/contacts"),{filter:e});return r}var fe=i(25108);const be={name:"GlobalSearchModal",components:{ArrowRight:d.default,AccountGroup:u.Z,CalendarRangeIcon:h,CustomDateRangeModal:L,DotsHorizontalIcon:F,FilterChip:P,FlaskEmpty:E,ListBox:Y,NcActions:O.Z,NcActionButton:V.Z,NcAvatar:Q.Z,NcButton:l.Z,NcEmptyContent:U.Z,NcModal:m.Z,NcListItem:$.Z,NcInputField:W.Z,MagnifyIcon:c.default,SearchableList:he},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:[],searchQuery:"",placesFilter:"",dateTimeFilter:null,filters:[],results:[],contacts:[],debouncedFind:me()(this.find,300),showDateRangeModal:!1}},computed:{userContacts:{get(){return this.contacts}},noContentInfo:{get(){const e=0===this.searchQuery.length,r=this.searchQuery.length>0&&0===this.results.length;return{show:e||r,text:e?t("core","Start typing in search"):t("core","No matching results"),icon:e?c.default:E}}}},mounted(){(async function(){try{const{data:t}=await $t.Z.get((0,Xt.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){Ce.error(t)}return[]})().then((t=>{this.providers=t,fe.debug("Search providers",this.providers)})),ve({filter:""}).then((t=>{this.contacts=this.mapContacts(t),fe.debug("Contacts",this.contacts)}))},methods:{find(t){if(0===t.length)return void(this.results=[]);const e=[],r=this.filteredProviders.length>0?this.filteredProviders:this.providers,i=(r,i)=>{const n={type:r.id,query:t,cursor:null};if(i.dateFilterIsApplied){if(!r.filters.since||!r.filters.until)return;n.since=this.dateFilter.startFrom,n.until=this.dateFilter.endAt}if(i.personFilterIsApplied){if(!r.filters.person)return;n.person=this.personFilter.user}this.providerResultLimit>5&&(n.limit=this.providerResultLimit),(0,function(t){let{type:e,query:r,cursor:i,since:n,until:a,limit:s,person:o}=t;const l=$t.Z.CancelToken.source();return{request:async()=>$t.Z.get((0,Xt.generateOcsUrl)("search/providers/{type}/search",{type:e}),{cancelToken:l.token,params:{term:r,cursor:i,since:n,until:a,limit:s,person:o,from:window.location.pathname.replace("/index.php","")+window.location.search}}),cancel:l.cancel}}(n).request)().then((t=>{e.push({id:r.id,provider:r.name,inAppSearch:r.inAppSearch,results:t.data.ocs.data.entries}),fe.debug("New results",e),fe.debug("Global search results:",this.results),this.updateResults(e)}))};r.forEach((t=>{const e=this.dateFilterIsApplied,r=this.personFilterIsApplied;i(t,{dateFilterIsApplied:e,personFilterIsApplied:r})}))},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 r=e.findIndex((e=>e.id===t.id));-1!==r?0===t.results.length?e.splice(r,1):e.splice(r,1,t):t.results.length>0&&e.push(t)}));const r=e.slice(0);r.sort(((t,e)=>{const r=this.providers.find((e=>e.id===t.id)),i=this.providers.find((t=>t.id===e.id));return(r?r.order:0)-(i?i.order:0)})),this.results=r},openResult(t){t.resourceUrl&&(window.location=t.resourceUrl)},mapContacts:t=>t.map((t=>({displayName:t.fullName,isNoUser:!1,subname:t.emailAddresses[0]?t.emailAddresses[0]:"",icon:"",user:t.id}))),filterContacts(t){ve({filter:t}).then((e=>{this.contacts=this.mapContacts(e),fe.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),fe.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),fe.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),fe.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 r=t.slice();return r.forEach(((t,i)=>{const n=t.id;"provider"===t.type&&(e.some((t=>t.id===n))||r.splice(i,1))})),e.forEach((t=>{const e=t.id;"provider"===t.type&&(r.some((t=>t.id===e))||r.push(t))})),r},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 r=new Date;let i,n=r;switch(e){case"today":i=r,this.dateFilter.text=t("core","Today");break;case"7days":i=new Date(r),i.setDate(r.getDate()-7),this.dateFilter.text=t("core","Last 7 days");break;case"30days":i=new Date(r),i.setDate(r.getDate()-30),this.dateFilter.text=t("core","Last 30 days");break;case"thisyear":i=new Date(r.getFullYear(),0,1),this.dateFilter.text=t("core","This year");break;case"lastyear":i=new Date(r.getFullYear()-1,0,1),n=new Date(r.getFullYear()-1,11,31),this.dateFilter.text=t("core","Last year");break;case"custom":return void(this.showDateRangeModal=!0);default:return}this.dateFilter.startFrom=i,this.dateFilter.endAt=n,this.updateDateFilter()},setCustomDateRange(e){fe.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()},isValidUrl:t=>/^https?:\/\//.test(t)||t.startsWith("//"),closeModal(){this.searchQuery=""}}};var ye=i(71129),_e={};_e.styleTagTransform=M(),_e.setAttributes=I(),_e.insert=x().bind(null,"head"),_e.domAPI=y(),_e.insertStyleElement=w(),f()(ye.Z,_e),ye.Z&&ye.Z.locals&&ye.Z.locals;const xe=(0,p.Z)(be,(function(){var t=this,e=t._self._c;return t.isVisible?e("NcModal",{attrs:{id:"global-search",name:t.t("core","Global search"),show:t.isVisible,"clear-view-delay":0,title:t.t("Global search")},on:{"update:show":function(e){t.isVisible=e},close:t.closeModal}},[e("CustomDateRangeModal",{class:"global-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:"globalSearch",staticClass:"global-search-modal"},[e("h1",[t._v(t._s(t.t("core","Global search")))]),t._v(" "),e("NcInputField",{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:"global-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}],null,!1,708608415)},[t._v(" "),t._l(t.providers,(function(r){return e("NcActionButton",{key:r.id,on:{click:function(e){return t.addProviderFilter(r)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{attrs:{src:r.icon}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(t.t("core",r.name))+"\n\t\t\t\t")])}))],2),t._v(" "),e("NcActions",{attrs:{"menu-name":t.t("core","Modified"),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}],null,!1,3084610734)},[t._v(" "),e("NcActionButton",{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",{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",{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",{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",{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",{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:{"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}],null,!1,4176711638)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("core","People"))+"\n\t\t\t\t\t")])]},proxy:!0}],null,!1,2895708030)})],1),t._v(" "),e("div",{staticClass:"global-search-modal__filters-applied"},t._l(t.filters,(function(r){return e("FilterChip",{key:r.id,attrs:{text:r.name??r.text,pretext:""},on:{delete:function(e){return t.removeFilter(r)}},scopedSlots:t._u([{key:"icon",fn:function(){return["person"===r.type?e("NcAvatar",{attrs:{user:r.user,size:24,"disable-menu":!0,"show-user-status":!1,"hide-favorite":!1}}):"date"===r.type?e("CalendarRangeIcon"):e("img",{attrs:{src:r.icon,alt:""}})]},proxy:!0}],null,!0)})})),1),t._v(" "),t.noContentInfo.show?e("div",{staticClass:"global-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(r){return e("div",{key:r.id,staticClass:"global-search-modal__results"},[e("div",{staticClass:"results"},[e("div",{staticClass:"result-title"},[e("span",[t._v(t._s(r.provider))])]),t._v(" "),e("ul",{staticClass:"result-items"},t._l(r.results,(function(r,i){return e("NcListItem",{key:i,staticClass:"result-items__item",attrs:{name:r.title??"",bold:!1},on:{click:function(e){return t.openResult(r)}},scopedSlots:t._u([{key:"icon",fn:function(){return[r.icon?e("div",{staticClass:"result-items__item-icon",class:{"result-items__item-icon--no-preview":!t.isValidUrl(r.thumbnailUrl),"result-items__item-icon--with-thumbnail":t.isValidUrl(r.thumbnailUrl),[r.icon]:!t.isValidUrl(r.icon)},style:{backgroundImage:t.isValidUrl(r.icon)?`url(${r.icon})`:""}},[r.thumbnailUrl?e("img",{attrs:{src:r.thumbnailUrl}}):t._e()]):t._e()]},proxy:!0},{key:"subname",fn:function(){return[t._v("\n\t\t\t\t\t\t\t"+t._s(r.subline)+"\n\t\t\t\t\t\t")]},proxy:!0}],null,!0)})})),1),t._v(" "),e("div",{staticClass:"result-footer"},[e("NcButton",{attrs:{type:"tertiary-no-background"},on:{click:function(e){return t.loadMoreResultsForProvider(r.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(" "),r.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(r.provider)+"\n\t\t\t\t\t\t")]):t._e()],1)])])}))],2)],1):t._e()}),[],!1,null,"54d1e356",null).exports;var Ze=i(25108);const Ie={name:"GlobalSearch",components:{NcButton:l.Z,Magnify:c.default,GlobalSearchModal:xe},data:()=>({showGlobalSearch:!1}),mounted(){Ze.debug("Global search initialized!")},methods:{toggleGlobalSearch(){this.showGlobalSearch=!this.showGlobalSearch}}};var ke=i(44557),we={};we.styleTagTransform=M(),we.setAttributes=I(),we.insert=x().bind(null,"head"),we.domAPI=y(),we.insertStyleElement=w(),f()(ke.Z,we),ke.Z&&ke.Z.locals&&ke.Z.locals;const Ne=(0,p.Z)(Ie,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-menu"},[e("NcButton",{staticClass:"global-search__button",attrs:{"aria-label":t.t("core","Global search")},on:{click:t.toggleGlobalSearch},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Magnify",{staticClass:"global-search__trigger",attrs:{size:22}})]},proxy:!0}])}),t._v(" "),e("GlobalSearchModal",{class:"global-search-modal",attrs:{"is-visible":t.showGlobalSearch}})],1)}),[],!1,null,"a0c987cc",null).exports;i.nc=btoa((0,a.IH)());const Me=(0,n.IY)().setApp("global-search").detectUser().build();o.default.mixin({data:()=>({logger:Me}),methods:{t:s.Iu,n:s.uN}}),new o.default({el:"#global-search",name:"GlobalSearchRoot",render:t=>t(Ne)})},2051:(t,e,r)=>{r.d(e,{Z:()=>o});var i=r(87537),n=r.n(i),a=r(23645),s=r.n(a)()(n());s.push([t.id,".global-search-custom-date-modal[data-v-320724b4]{padding:10px 20px 10px 20px}.global-search-custom-date-modal h1[data-v-320724b4]{font-size:16px;font-weight:bolder;line-height:2em}.global-search-custom-date-modal__pickers[data-v-320724b4]{display:flex;flex-direction:column}","",{version:3,sources:["webpack://./core/src/components/GlobalSearch/CustomDateRangeModal.vue"],names:[],mappings:"AACA,kDACC,2BAAA,CAEA,qDACC,cAAA,CACA,kBAAA,CACA,eAAA,CAGD,2DACC,YAAA,CACA,qBAAA",sourcesContent:["\n.global-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}\n"],sourceRoot:""}]);const o=s},38111:(t,e,r)=>{r.d(e,{Z:()=>o});var i=r(87537),n=r.n(i),a=r(23645),s=r.n(a)()(n());s.push([t.id,".chip[data-v-390019c6]{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;font-size:10px;font-weight:bolder}.chip .icon[data-v-390019c6]{display:flex;align-items:center;padding-right:5px}.chip .icon img[data-v-390019c6]{width:20px;padding:2px;border-radius:20px;filter:var(--background-invert-if-bright)}.chip .text[data-v-390019c6]{margin:0 2px}.chip .close-icon[data-v-390019c6]{cursor:pointer}.chip .close-icon[data-v-390019c6] :hover{filter:invert(20%)}","",{version:3,sources:["webpack://./core/src/components/GlobalSearch/SearchFilterChip.vue"],names:[],mappings:"AACA,uBACI,YAAA,CACA,kBAAA,CACA,eAAA,CACA,mDAAA,CACA,kBAAA,CACA,mDAAA,CACA,UAAA,CACA,cAAA,CACA,kBAAA,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 font-size: 10px;\n font-weight: bolder;\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},13006:(t,e,r)=>{r.d(e,{Z:()=>o});var i=r(87537),n=r.n(i),a=r(23645),s=r.n(a)()(n());s.push([t.id,".searchable-list__wrapper[data-v-2015df7e]{padding:calc(var(--default-grid-baseline)*3);display:flex;flex-direction:column;align-items:center;width:250px}.searchable-list__list[data-v-2015df7e]{width:100%;max-height:284px;overflow-y:auto;margin-top:var(--default-grid-baseline);padding:var(--default-grid-baseline)}.searchable-list__list[data-v-2015df7e] .button-vue{border-radius:var(--border-radius-large) !important}.searchable-list__empty-content[data-v-2015df7e]{margin-top:calc(var(--default-grid-baseline)*3)}","",{version:3,sources:["webpack://./core/src/components/GlobalSearch/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,CAIF,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}\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},44557:(t,e,r)=>{r.d(e,{Z:()=>o});var i=r(87537),n=r.n(i),a=r(23645),s=r.n(a)()(n());s.push([t.id,".header-menu[data-v-a0c987cc]{display:flex;align-items:center;justify-content:center}.header-menu .global-search__button[data-v-a0c987cc]{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 .global-search__button[data-v-a0c987cc]:hover{background-color:rgba(0,0,0,0) !important}.global-search-modal[data-v-a0c987cc] .modal-container{height:80%}","",{version:3,sources:["webpack://./core/src/views/GlobalSearch.vue"],names:[],mappings:"AACA,8BACC,YAAA,CACA,kBAAA,CACA,sBAAA,CAEA,qDACC,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,0BAAA,CAEA,QAAA,CACA,SAAA,CACA,cAAA,CACA,WAAA,CACA,8BAAA,CACA,WAAA,CACA,sBAAA,CACA,0CAAA,CAEA,2DACC,yCAAA,CAMF,uDACC,UAAA",sourcesContent:["\n.header-menu {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t.global-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.global-search-modal {\n\t::v-deep .modal-container {\n\t\theight: 80%;\n\t}\n}\n"],sourceRoot:""}]);const o=s},71129:(t,e,r)=>{r.d(e,{Z:()=>o});var i=r(87537),n=r.n(i),a=r(23645),s=r.n(a)()(n());s.push([t.id,".global-search-modal[data-v-54d1e356]{padding:10px 20px 10px 20px;height:60%}.global-search-modal h1[data-v-54d1e356]{font-size:16px;font-weight:bolder;line-height:2em}.global-search-modal__filters[data-v-54d1e356]{display:flex;padding-top:4px;justify-content:left}.global-search-modal__filters>*[data-v-54d1e356]{margin-right:4px}.global-search-modal__filters-applied[data-v-54d1e356]{padding-top:4px;display:flex;flex-wrap:wrap}.global-search-modal__no-content[data-v-54d1e356]{display:flex;align-items:center;height:100%}.global-search-modal__results[data-v-54d1e356]{padding:10px}.global-search-modal__results .results .result-title span[data-v-54d1e356]{color:var(--color-primary-element);font-weight:bolder;font-size:16px}[data-v-54d1e356] .global-search-modal__results .results .result-items__item a{border-radius:12px;border:2px solid rgba(0,0,0,0);border-radius:var(--border-radius-large) !important}[data-v-54d1e356] .global-search-modal__results .results .result-items__item a--focused{background-color:var(--color-background-hover)}[data-v-54d1e356] .global-search-modal__results .results .result-items__item a:active,[data-v-54d1e356] .global-search-modal__results .results .result-items__item a:hover,[data-v-54d1e356] .global-search-modal__results .results .result-items__item a:focus{background-color:var(--color-background-hover);border:2px solid var(--color-border-maxcontrast)}[data-v-54d1e356] .global-search-modal__results .results .result-items__item a *{cursor:pointer}[data-v-54d1e356] .global-search-modal__results .results .result-items__item-icon{overflow:hidden;width:44px;height:44px;border-radius:var(--border-radius);background-repeat:no-repeat;background-position:center center;background-size:32px}[data-v-54d1e356] .global-search-modal__results .results .result-items__item-icon--rounded{border-radius:22px}[data-v-54d1e356] .global-search-modal__results .results .result-items__item-icon--no-preview{background-size:32px}[data-v-54d1e356] .global-search-modal__results .results .result-items__item-icon--with-thumbnail{background-size:cover}[data-v-54d1e356] .global-search-modal__results .results .result-items__item-icon--with-thumbnail:not(::v-deep .global-search-modal__results .results .result-items__item-icon--rounded){max-width:42px;max-height:42px;border:1px solid var(--color-border)}[data-v-54d1e356] .global-search-modal__results .results .result-items__item-icon img{width:100%;height:100%;object-fit:cover;object-position:center}.global-search-modal__results .results .result-footer[data-v-54d1e356]{justify-content:space-between;align-items:center;display:flex}div.v-popper__wrapper ul li[data-v-54d1e356] button.action-button{align-items:center !important}div.v-popper__wrapper ul li[data-v-54d1e356] button.action-button img{width:24px;margin:0 4px;filter:var(--background-invert-if-bright)}","",{version:3,sources:["webpack://./core/src/views/GlobalSearchModal.vue"],names:[],mappings:"AAKA,sCACC,2BAAA,CACA,UAAA,CAEA,yCACC,cAAA,CACA,kBAAA,CACA,eAAA,CAGD,+CACC,YAAA,CACA,eAAA,CACA,oBAAA,CAEA,iDACC,gBAAA,CAMF,uDACC,eAAA,CACA,YAAA,CACA,cAAA,CAGD,kDACC,YAAA,CACA,kBAAA,CACA,WAAA,CAGD,+CACC,YAAA,CAKE,2EACC,kCAAA,CACA,kBAAA,CACA,cAAA,CAMA,+EACC,kBAAA,CACA,8BAAA,CACA,mDAAA,CAEA,wFACC,8CAAA,CAGD,gQAGC,8CAAA,CACA,gDAAA,CAGD,iFACC,cAAA,CAKF,kFACC,eAAA,CACA,UA5EW,CA6EX,WA7EW,CA8EX,kCAAA,CACA,2BAAA,CACA,iCAAA,CACA,oBAAA,CAEA,2FACC,kBAAA,CAGD,8FACC,oBAAA,CAGD,kGACC,qBAAA,CAGD,yLAEC,cAAA,CACA,eAAA,CACA,oCAAA,CAGD,sFAEC,UAAA,CACA,WAAA,CAEA,gBAAA,CACA,sBAAA,CAOJ,uEACC,6BAAA,CACA,kBAAA,CACA,YAAA,CAUD,kEACC,6BAAA,CAEA,sEACC,UAAA,CACA,YAAA,CACA,yCAAA",sourcesContent:['\n@use "sass:math";\n$clickable-area: 44px;\n$margin: 10px;\n\n.global-search-modal {\n\tpadding: 10px 20px 10px 20px;\n\theight: 60%;\n\n\th1 {\n\t\tfont-size: 16px;\n\t\tfont-weight: bolder;\n\t\tline-height: 2em;\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-items {\n\t\t\t\t::v-deep &__item {\n\t\t\t\t\ta {\n\t\t\t\t\t\tborder-radius: 12px;\n\t\t\t\t\t\tborder: 2px solid transparent;\n\t\t\t\t\t\tborder-radius: var(--border-radius-large) !important;\n\n\t\t\t\t\t\t&--focused {\n\t\t\t\t\t\t\tbackground-color: var(--color-background-hover);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&:active,\n\t\t\t\t\t\t&:hover,\n\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\tbackground-color: var(--color-background-hover);\n\t\t\t\t\t\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t* {\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t&-icon {\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t\t\twidth: $clickable-area;\n\t\t\t\t\t\theight: $clickable-area;\n\t\t\t\t\t\tborder-radius: var(--border-radius);\n\t\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\t\tbackground-position: center center;\n\t\t\t\t\t\tbackground-size: 32px;\n\n\t\t\t\t\t\t&--rounded {\n\t\t\t\t\t\t\tborder-radius: math.div($clickable-area, 2);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&--no-preview {\n\t\t\t\t\t\t\tbackground-size: 32px;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&--with-thumbnail {\n\t\t\t\t\t\t\tbackground-size: cover;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&--with-thumbnail:not(&--rounded) {\n\t\t\t\t\t\t\t// compensate for border\n\t\t\t\t\t\t\tmax-width: $clickable-area - 2px;\n\t\t\t\t\t\t\tmax-height: $clickable-area - 2px;\n\t\t\t\t\t\t\tborder: 1px solid var(--color-border);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\timg {\n\t\t\t\t\t\t\t// Make sure to keep ratio\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\theight: 100%;\n\n\t\t\t\t\t\t\tobject-fit: cover;\n\t\t\t\t\t\t\tobject-position: center;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\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: 24px;\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="}},i={};function n(t){var e=i[t];if(void 0!==e)return e.exports;var a=i[t]={id:t,loaded:!1,exports:{}};return r[t].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=r,e=[],n.O=(t,r,i,a)=>{if(!r){var s=1/0;for(d=0;d<e.length;d++){r=e[d][0],i=e[d][1],a=e[d][2];for(var o=!0,l=0;l<r.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every((t=>n.O[t](r[l])))?r.splice(l--,1):(o=!1,a<s&&(s=a));if(o){e.splice(d--,1);var c=i();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]=[r,i,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.e=()=>Promise.resolve(),n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.j=6828,(()=>{n.b=document.baseURI||self.location.href;var t={6828:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var i,a,s=r[0],o=r[1],l=r[2],c=0;if(s.some((e=>0!==t[e]))){for(i in o)n.o(o,i)&&(n.m[i]=o[i]);if(l)var d=l(n)}for(e&&e(r);c<s.length;c++)a=s[c],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(d)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),n.nc=void 0;var a=n.O(void 0,[7874],(()=>n(98584)));a=n.O(a)})();
//# sourceMappingURL=core-global-search.js.map?v=402ebc713388dd110675