123 |
- /*! For license information please see core-unified-search.js.LICENSE.txt */
- (()=>{"use strict";var e,n={66686:(e,n,i)=>{var r=i(53529),a=i(92457),s=i(53334),o=i(19166),l=i(63757),c=i(96763);let d;const u=t=>d=t,p=Symbol();function h(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var A;!function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"}(A||(A={}));const f="undefined"!=typeof window,m="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&f,g=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function v(t,e,n){const i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){x(i.response,e,n)},i.onerror=function(){c.error("could not download file")},i.send()}function C(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function y(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const b="object"==typeof navigator?navigator:{userAgent:""},_=(()=>/Macintosh/.test(b.userAgent)&&/AppleWebKit/.test(b.userAgent)&&!/Safari/.test(b.userAgent))(),x=f?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!_?function(t,e="download",n){const i=document.createElement("a");i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?C(i.href)?v(t,e,n):(i.target="_blank",y(i)):y(i)):(i.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(i.href)}),4e4),setTimeout((function(){y(i)}),0))}:"msSaveOrOpenBlob"in b?function(t,e="download",n){if("string"==typeof t)if(C(t))v(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){y(e)}))}else navigator.msSaveOrOpenBlob(function(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return v(t,e,n);const r="application/octet-stream"===t.type,a=/constructor/i.test(String(g.HTMLElement))||"safari"in g,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||r&&a||_)&&"undefined"!=typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!=typeof t)throw i=null,new Error("Wrong reader.result type");t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location.assign(t),i=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);i?i.location.assign(e):location.href=e,i=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}:()=>{};function w(t,e){const n="🍍 "+t;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?c.error(n):"warn"===e?c.warn(n):c.log(n)}function k(t){return"_a"in t&&"install"in t}function S(){if(!("clipboard"in navigator))return w("Your browser doesn't support the Clipboard API","error"),!0}function I(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(w('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let F;function N(t,e){for(const n in e){const i=t.state.value[n];i?Object.assign(i,e[n]):t.state.value[n]=e[n]}}function E(t){return{_custom:{display:t}}}const O="🍍 Pinia (root)",P="_root";function D(t){return k(t)?{id:P,label:O}:{id:t.$id,label:t.$id}}function $(t){return t?Array.isArray(t)?t.reduce(((t,e)=>(t.keys.push(e.key),t.operations.push(e.type),t.oldValue[e.key]=e.oldValue,t.newValue[e.key]=e.newValue,t)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:E(t.type),key:E(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function M(t){switch(t){case A.direct:return"mutation";case A.patchFunction:case A.patchObject:return"$patch";default:return"unknown"}}let B=!0;const T=[],L="pinia:mutations",R="pinia",{assign:V}=Object,U=t=>"🍍 "+t;function j(t,e){(0,l.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:T,app:t},(n=>{"function"!=typeof n.now&&w("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:L,label:"Pinia 🍍",color:15064968}),n.addInspector({id:R,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!S())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),w("Global state copied to clipboard.")}catch(t){if(I(t))return;w("Failed to serialize the state. Check the console for more details.","error"),c.error(t)}}(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(t){if(!S())try{N(t,JSON.parse(await navigator.clipboard.readText())),w("Global state pasted from clipboard.")}catch(t){if(I(t))return;w("Failed to deserialize the state from clipboard. Check the console for more details.","error"),c.error(t)}}(e),n.sendInspectorTree(R),n.sendInspectorState(R)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(t){try{x(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){w("Failed to export the state as JSON. Check the console for more details.","error"),c.error(t)}}(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(t){try{const e=(F||(F=document.createElement("input"),F.type="file",F.accept=".json"),function(){return new Promise(((t,e)=>{F.onchange=async()=>{const e=F.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},F.oncancel=()=>t(null),F.onerror=e,F.click()}))}),n=await e();if(!n)return;const{text:i,file:r}=n;N(t,JSON.parse(i)),w(`Global state imported from "${r.name}".`)}catch(t){w("Failed to import the state from JSON. Check the console for more details.","error"),c.error(t)}}(e),n.sendInspectorTree(R),n.sendInspectorState(R)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:t=>{const n=e._s.get(t);n?"function"!=typeof n.$reset?w(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),w(`Store "${t}" reset.`)):w(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((t,e)=>{const n=t.componentInstance&&t.componentInstance.proxy;if(n&&n._pStores){const e=t.componentInstance.proxy._pStores;Object.values(e).forEach((e=>{t.instanceData.state.push({type:U(e.$id),key:"state",editable:!0,value:e._isOptionsAPI?{_custom:{value:(0,o.ux)(e.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>e.$reset()}]}}:Object.keys(e.$state).reduce(((t,n)=>(t[n]=e.$state[n],t)),{})}),e._getters&&e._getters.length&&t.instanceData.state.push({type:U(e.$id),key:"getters",editable:!1,value:e._getters.reduce(((t,n)=>{try{t[n]=e[n]}catch(e){t[n]=e}return t}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===t&&n.inspectorId===R){let t=[e];t=t.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(n.filter.toLowerCase()):O.toLowerCase().includes(n.filter.toLowerCase()))):t).map(D)}})),n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===R){const t=n.nodeId===P?e:e._s.get(n.nodeId);if(!t)return;t&&(n.state=function(t){if(k(t)){const e=Array.from(t._s.keys()),n=t._s,i={state:e.map((e=>({editable:!0,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:!1,key:t,value:e._getters.reduce(((t,n)=>(t[n]=e[n],t)),{})}}))};return i}const e={state:Object.keys(t.$state).map((e=>({editable:!0,key:e,value:t.$state[e]})))};return t._getters&&t._getters.length&&(e.getters=t._getters.map((e=>({editable:!1,key:e,value:t[e]})))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map((e=>({editable:!0,key:e,value:t[e]})))),e}(t))}})),n.on.editInspectorState(((n,i)=>{if(n.app===t&&n.inspectorId===R){const t=n.nodeId===P?e:e._s.get(n.nodeId);if(!t)return w(`store "${n.nodeId}" not found`,"error");const{path:i}=n;k(t)?i.unshift("state"):1===i.length&&t._customProperties.has(i[0])&&!(i[0]in t.$state)||i.unshift("$state"),B=!1,n.set(t,i,n.state.value),B=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("🍍")){const n=t.type.replace(/^🍍\s*/,""),i=e._s.get(n);if(!i)return w(`store "${n}" not found`,"error");const{path:r}=t;if("state"!==r[0])return w(`Invalid path for store "${n}":\n${r}\nOnly state can be modified.`);r[0]="$state",B=!1,t.set(i,r,t.state.value),B=!0}}))}))}let z,H=0;function G(t,e,n){const i=e.reduce(((e,n)=>(e[n]=(0,o.ux)(t)[n],e)),{});for(const e in i)t[e]=function(){const r=H,a=n?new Proxy(t,{get:(...t)=>(z=r,Reflect.get(...t)),set:(...t)=>(z=r,Reflect.set(...t))}):t;z=r;const s=i[e].apply(a,arguments);return z=void 0,s}}function Y({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,G(e,Object.keys(n.actions),e._isOptionsAPI);const i=e._hotUpdate;(0,o.ux)(e)._hotUpdate=function(t){i.apply(this,arguments),G(e,Object.keys(t._hmrPayload.actions),!!e._isOptionsAPI)},function(t,e){T.includes(U(e.$id))||T.push(U(e.$id)),(0,l.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:T,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(t=>{const n="function"==typeof t.now?t.now.bind(t):Date.now;e.$onAction((({after:i,onError:r,name:a,args:s})=>{const o=H++;t.addTimelineEvent({layerId:L,event:{time:n(),title:"🛫 "+a,subtitle:"start",data:{store:E(e.$id),action:E(a),args:s},groupId:o}}),i((i=>{z=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),title:"🛬 "+a,subtitle:"end",data:{store:E(e.$id),action:E(a),args:s,result:i},groupId:o}})})),r((i=>{z=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),logType:"error",title:"💥 "+a,subtitle:"end",data:{store:E(e.$id),action:E(a),args:s,error:i},groupId:o}})}))}),!0),e._customProperties.forEach((i=>{(0,o.wB)((()=>(0,o.R1)(e[i])),((e,r)=>{t.notifyComponentUpdate(),t.sendInspectorState(R),B&&t.addTimelineEvent({layerId:L,event:{time:n(),title:"Change",subtitle:i,data:{newValue:e,oldValue:r},groupId:z}})}),{deep:!0})})),e.$subscribe((({events:i,type:r},a)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(R),!B)return;const s={time:n(),title:M(r),data:V({store:E(e.$id)},$(i)),groupId:z};r===A.patchFunction?s.subtitle="⤵️":r===A.patchObject?s.subtitle="🧩":i&&!Array.isArray(i)&&(s.subtitle=i.type),i&&(s.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),t.addTimelineEvent({layerId:L,event:s})}),{detached:!0,flush:"sync"});const i=e._hotUpdate;e._hotUpdate=(0,o.IG)((r=>{i(r),t.addTimelineEvent({layerId:L,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:E(e.$id),info:E("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R)}));const{$dispose:r}=e;e.$dispose=()=>{r(),t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R),t.getSettings().logStoreChanges&&w(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R),t.getSettings().logStoreChanges&&w(`"${e.$id}" store installed 🆕`)}))}(t,e)}const q=()=>{};function Q(t,e,n,i=q){t.push(e);const r=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i())};return!n&&(0,o.o5)()&&(0,o.jr)(r),r}function W(t,...e){t.slice().forEach((t=>{t(...e)}))}const J=t=>t();function K(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],r=t[n];h(r)&&h(i)&&t.hasOwnProperty(n)&&!(0,o.i9)(i)&&!(0,o.g8)(i)?t[n]=K(r,i):t[n]=i}return t}const Z=Symbol(),X=new WeakMap,{assign:tt}=Object;function et(t,e,n={},i,r,a){let s;const l=tt({actions:{}},n),c={deep:!0};let d,p,f,g=[],v=[];const C=i.state.value[t];a||C||(o.LE?(0,o.hZ)(i.state.value,t,{}):i.state.value[t]={});const y=(0,o.KR)({});let b;function _(e){let n;d=p=!1,"function"==typeof e?(e(i.state.value[t]),n={type:A.patchFunction,storeId:t,events:f}):(K(i.state.value[t],e),n={type:A.patchObject,payload:e,storeId:t,events:f});const r=b=Symbol();(0,o.dY)().then((()=>{b===r&&(d=!0)})),p=!0,W(g,n,i.state.value[t])}const x=a?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{tt(t,e)}))}:q;function w(e,n){return function(){u(i);const r=Array.from(arguments),a=[],s=[];let o;W(v,{args:r,name:e,store:I,after:function(t){a.push(t)},onError:function(t){s.push(t)}});try{o=n.apply(this&&this.$id===t?this:I,r)}catch(t){throw W(s,t),t}return o instanceof Promise?o.then((t=>(W(a,t),t))).catch((t=>(W(s,t),Promise.reject(t)))):(W(a,o),o)}}const k=(0,o.IG)({actions:{},getters:{},state:[],hotState:y}),S={_p:i,$id:t,$onAction:Q.bind(null,v),$patch:_,$reset:x,$subscribe(e,n={}){const r=Q(g,e,n.detached,(()=>a())),a=s.run((()=>(0,o.wB)((()=>i.state.value[t]),(i=>{("sync"===n.flush?p:d)&&e({storeId:t,type:A.direct,events:f},i)}),tt({},c,n))));return r},$dispose:function(){s.stop(),g=[],v=[],i._s.delete(t)}};o.LE&&(S._r=!1);const I=(0,o.Kh)(m?tt({_hmrPayload:k,_customProperties:(0,o.IG)(new Set)},S):S);i._s.set(t,I);const F=(i._a&&i._a.runWithContext||J)((()=>i._e.run((()=>(s=(0,o.uY)()).run(e)))));for(const e in F){const n=F[e];if((0,o.i9)(n)&&(E=n,!(0,o.i9)(E)||!E.effect)||(0,o.g8)(n))a||(!C||(N=n,o.LE?X.has(N):h(N)&&N.hasOwnProperty(Z))||((0,o.i9)(n)?n.value=C[e]:K(n,C[e])),o.LE?(0,o.hZ)(i.state.value[t],e,n):i.state.value[t][e]=n);else if("function"==typeof n){const t=w(e,n);o.LE?(0,o.hZ)(F,e,t):F[e]=t,l.actions[e]=n}}var N,E;if(o.LE?Object.keys(F).forEach((t=>{(0,o.hZ)(I,t,F[t])})):(tt(I,F),tt((0,o.ux)(I),F)),Object.defineProperty(I,"$state",{get:()=>i.state.value[t],set:t=>{_((e=>{tt(e,t)}))}}),m){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(I,e,tt({value:I[e]},t))}))}return o.LE&&(I._r=!0),i._p.forEach((t=>{if(m){const e=s.run((()=>t({store:I,app:i._a,pinia:i,options:l})));Object.keys(e||{}).forEach((t=>I._customProperties.add(t))),tt(I,e)}else tt(I,s.run((()=>t({store:I,app:i._a,pinia:i,options:l}))))})),C&&a&&n.hydrate&&n.hydrate(I.$state,C),d=!0,p=!0,I}var nt=i(85471),it=i(9518),rt=i(55602),at=i(9191),st=i(72755);const ot={name:"CalendarRangeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lt=i(14486);const ct=(0,lt.A)(ot,(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||null,"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 dt=i(43899),ut=i(53278);const pt={name:"CustomDateRangeModal",components:{NcButton:it.A,NcModal:ut.A,CalendarRangeIcon:ct,NcDateTimePicker:dt.A},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 ht=i(85072),At=i.n(ht),ft=i(97825),mt=i.n(ft),gt=i(77659),vt=i.n(gt),Ct=i(55056),yt=i.n(Ct),bt=i(10540),_t=i.n(bt),xt=i(41113),wt=i.n(xt),kt=i(63571),St={};St.styleTagTransform=wt(),St.setAttributes=yt(),St.insert=vt().bind(null,"head"),St.domAPI=mt(),St.insertStyleElement=_t(),At()(kt.A,St),kt.A&&kt.A.locals&&kt.A.locals;const It=(0,lt.A)(pt,(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,Ft={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Nt=(0,lt.A)(Ft,(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||null,"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,Et={name:"FilterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ot=(0,lt.A)(Et,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon filter-icon",attrs:{"aria-hidden":!t.title||null,"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,Pt={name:"SearchFilterChip",components:{CloseIcon:i(24325).A},props:{text:{type:String,required:!0},pretext:{type:String,required:!0}},methods:{deleteChip(){this.$emit("delete",this.filter)}}};var Dt=i(68179),$t={};$t.styleTagTransform=wt(),$t.setAttributes=yt(),$t.insert=vt().bind(null,"head"),$t.domAPI=mt(),$t.insertStyleElement=_t(),At()(Dt.A,$t),Dt.A&&Dt.A.locals&&Dt.A.locals;const Mt=(0,lt.A)(Pt,(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,Bt={name:"ListBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tt=(0,lt.A)(Bt,(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||null,"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 Lt=i(24764),Rt=i(63420),Vt=i(41944),Ut=i(10833),jt=i(44492),zt=(i(72558),i(17086)),Ht=i(50953),Gt=i(63127),Yt=i(38034),qt=i(10700),Qt=i(51246),Wt=i(59594),Jt=i(79466),Kt=i(10501),Zt=i(63961),Xt=i(34375),te=i(46399),ee=i(47611),ne=i(10363),ie=i(42577),re=i(77191),ae=i(68776),se=i(3842),oe=i(31927),le=i(46447),ce=i(37425),de=i(36201),ue=i(14645),pe=i(15869),he=i(947),Ae=i(77650),fe=i(18503),me=i(1953),ge=i(5554),ve=i(89743),Ce=i(7655),ye=i(48532),be=i(62773),_e=i(70563),xe=i(56440),we=i(67298),ke=i(93148),Se=i(24620),Ie=i(96077),Fe=i(84003),Ne=i(86017),Ee=i(1620),Oe=i(59103),Pe=i(27720),De=i(6936),$e=i(88936),Me=i(46653),Be=i(46222),Te=i(48934),Le=i(8059),Re=i(28690),Ve=i(15224),Ue=i(81808),je=i(96982),ze=i(7679),He=i(81028),Ge=(i(78460),i(72996),i(26287)),Ye=i(43382),qe=i(47375),Qe=i(61338),We=i(64981),Je=i(71248),Ke=i(13802),Ze=i(49199),Xe=i(72791),tn=i(66680),en=i(12871),nn=i(8562),rn=i(47732),an=(i(23020),i(53429),i(58995),i(66662),i(42892)),sn=i(65842),on=(i(57874),i(75105),i(92471),i(16406),i(2508));Rt.A,zt.N,Ht.A,Gt.A,Yt.N,qt.A,Qt.A,Wt.A,Kt.A,Zt.A,Xt.A,Jt.N,te.N,ee.A,ne.A,ie.N,re.N,ae.A,se.N,oe.A,le.A,ce.N,de.N,ue.A,pe.N,he.A,Ae.N,fe.A,ze.N,me.N,ge.N,ve.N,it.A,Ce.N,ye.N,be.N,_e.A,xe.N,we.N,ke.N,Se.A,dt.A,Ie.N,Fe.N,Ne.N,Ut.A,Ee.A,Oe.N,Pe.N,De.N,$e.N,Me.N,Be.A,je.N,ut.A,Te.A,Le.N,Re.N,Ve.N,Ue.N,ze.a,He.N,We.N,Ye.N,Je.N,Ke.N,Ze.N,Xe.N,rn.A,qe.N,tn.N,en.N,nn.N,Symbol.toStringTag,an.u,sn.u,on.yw,Symbol.toStringTag;const ln={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cn=(0,lt.A)(ln,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":!t.title||null,"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:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,dn={name:"SearchableList",components:{NcPopover:Re.N,NcTextField:qe.N,Magnify:rt.A,AlertCircleOutline:cn,NcAvatar:me.N,NcEmptyContent:Ut.A,NcButton:it.A},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 un=i(33665),pn={};pn.styleTagTransform=wt(),pn.setAttributes=yt(),pn.insert=vt().bind(null,"head"),pn.domAPI=mt(),pn.insertStyleElement=_t(),At()(un.A,pn),un.A&&un.A.locals&&un.A.locals;const hn=(0,lt.A)(dn,(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(n){return e("li",{key:n.id,attrs:{title:n.displayName,role:"button"}},[e("NcButton",{attrs:{alignment:"start",type:"tertiary",wide:!0},on:{click:function(e){return t.itemSelected(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcAvatar",{attrs:{user:n.user,"show-user-status":!1,"hide-favorite":!1}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(n.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,An={name:"SearchResult",components:{NcListItem:$e.N},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 fn=i(84359),mn={};mn.styleTagTransform=wt(),mn.setAttributes=yt(),mn.insert=vt().bind(null,"head"),mn.domAPI=mt(),mn.insertStyleElement=_t(),At()(fn.A,mn),fn.A&&fn.A.locals&&fn.A.locals;const gn=(0,lt.A)(An,(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(".concat(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 vn=i(17334),Cn=i.n(vn),yn=i(97786),bn=i(99498),_n=i(96763);async function xn(t){let{searchTerm:e}=t;const{data:{contacts:n}}=await Ge.A.post((0,bn.Jv)("/contactsmenu/contacts"),{filter:e});if(!e){let t=(0,a.HW)();return t={id:t.uid,fullName:t.displayName,emailAddresses:[]},n.unshift(t),n}return n}const wn=function(t,e,n){let i,r;function a(t,e){const n=(0,o.PS)();return(t=t||(n?(0,o.WQ)(p,null):null))&&u(t),(t=d)._s.has(i)||function(t,e,n,i){const{state:r,actions:a,getters:s}=e,l=n.state.value[t];let c;c=et(t,(function(){l||(o.LE?(0,o.hZ)(n.state.value,t,r?r():{}):n.state.value[t]=r?r():{});const e=(0,o.QW)(n.state.value[t]);return tt(e,a,Object.keys(s||{}).reduce(((e,i)=>(e[i]=(0,o.IG)((0,o.EW)((()=>{u(n);const e=n._s.get(t);if(!o.LE||e._r)return s[i].call(e,e)}))),e)),{}))}),e,n,0,!0)}(i,r,t),t._s.get(i)}return"string"==typeof t?(i=t,r=e):(r=t,i=t.id),a.$id=i,a}({id:"search",state:()=>({externalFilters:[]}),actions:{registerExternalFilter(t){let{id:e,appId:n,label:i,callback:r,icon:a}=t;this.externalFilters.push({id:e,appId:n,name:i,callback:r,icon:a,isPluginFilter:!0})}}});var kn=i(96763);const Sn={name:"UnifiedSearchModal",components:{ArrowRight:at.A,AccountGroup:st.A,CalendarRangeIcon:ct,CustomDateRangeModal:It,DotsHorizontalIcon:Nt,FilterIcon:Ot,FilterChip:Mt,ListBox:Tt,NcActions:Lt.A,NcActionButton:Rt.A,NcAvatar:Vt.A,NcButton:it.A,NcEmptyContent:Ut.A,NcModal:ut.A,NcInputField:jt.A,MagnifyIcon:rt.A,SearchableList:hn,SearchResult:gn},props:{isVisible:{type:Boolean,required:!0}},setup:()=>({currentLocation:(0,yn.ZDG)(),externalFilters:wn().externalFilters}),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:Cn()(this.find,300),debouncedFilterContacts:Cn()(this.filterContacts,300),showDateRangeModal:!1,internalIsVisible:!1}},computed:{userContacts(){return this.contacts},noContentInfo(){const e=0===this.searchQuery.length,n=this.searchQuery.length>0&&0===this.results.length;return{show:e||n,text:this.searching&&n?t("core","Searching …"):e?t("core","Start typing to search"):t("core","No matching results"),icon:rt.A}},supportFiltering(){return["/settings/users","/apps/files","/apps/deck"].some((t=>{var e,n;return null===(e=this.currentLocation.pathname)||void 0===e||null===(n=e.includes)||void 0===n?void 0:n.call(e,t)}))}},watch:{isVisible(t){t&&(0,Qe.Ic)("nextcloud:unified-search.reset",{query:""}),this.internalIsVisible=t},internalIsVisible(t){this.$emit("update:isVisible",t),this.$nextTick((()=>{t&&this.focusInput()}))}},mounted(){(0,Qe.B1)("nextcloud:unified-search:add-filter",this.handlePluginFilter),async function(){try{const{data:t}=await Ge.A.get((0,bn.KT)("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){_n.error(t)}return[]}().then((t=>{this.providers=t,this.externalFilters.forEach((t=>{this.providers.push(t)})),this.providers=this.groupProvidersByApp(this.providers),kn.debug("Search providers",this.providers)})),xn({searchTerm:""}).then((t=>{this.contacts=this.mapContacts(t),kn.debug("Contacts",this.contacts)}))},methods:{find(t){if(this.searching=!0,0===t.length)return this.results=[],this.searching=!1,void(0,Qe.Ic)("nextcloud:unified-search.reset",{query:t});(0,Qe.Ic)("nextcloud:unified-search.search",{query:t});const e=[],n=this.filteredProviders.length>0?this.filteredProviders:this.providers,i=(n,i)=>{const r={type:n.id,query:t,cursor:null,extraQueries:n.extraParams};if(i.dateFilterIsApplied){if(!n.filters.since||!n.filters.until)return;r.since=this.dateFilter.startFrom,r.until=this.dateFilter.endAt}if(i.personFilterIsApplied){if(!n.filters.person)return;r.person=this.personFilter.user}this.providerResultLimit>5&&(r.limit=this.providerResultLimit),(0,function(t){let{type:e,query:n,cursor:i,since:r,until:a,limit:s,person:o,extraQueries:l={}}=t;const c=Ge.A.CancelToken.source();return{request:async()=>Ge.A.get((0,bn.KT)("search/providers/{type}/search",{type:e}),{cancelToken:c.token,params:{term:n,cursor:i,since:r,until:a,limit:s,person:o,from:window.location.pathname.replace("/index.php","")+window.location.search,...l}}),cancel:c.cancel}}(r).request)().then((t=>{e.push({id:n.id,provider:n.name,inAppSearch:n.inAppSearch,results:t.data.ocs.data.entries}),kn.debug("New results",e),kn.debug("Unified search results:",this.results),this.updateResults(e),this.searching=!1}))};n.forEach((t=>{const e=this.dateFilterIsApplied,n=this.personFilterIsApplied;i(t,{dateFilterIsApplied:e,personFilterIsApplied:n})}))},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 n=e.findIndex((e=>e.id===t.id));-1!==n?0===t.results.length?e.splice(n,1):e.splice(n,1,t):t.results.length>0&&e.push(t)}));const n=e.slice(0);n.sort(((t,e)=>{const n=this.providers.find((e=>e.id===t.id)),i=this.providers.find((t=>t.id===e.id));return(n?n.order:0)-(i?i.order:0)})),this.results=n},mapContacts:t=>t.map((t=>({displayName:t.fullName,isNoUser:!1,subname:t.emailAddresses[0]?t.emailAddresses[0]:"",icon:"",user:t.id}))),filterContacts(t){xn({searchTerm:t}).then((e=>{this.contacts=this.mapContacts(e),kn.debug("Contacts filtered by ".concat(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),kn.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];if(!t.id)return;t.isPluginFilter&&t.callback(),this.providerResultLimit=e?this.providerResultLimit:5,this.providerActionMenuIsOpen=!1;const n=this.filteredProviders.findIndex((e=>e.id===t.id));n>-1&&(this.filteredProviders.splice(n,1),this.filters=this.syncProviderFilters(this.filters,this.filteredProviders)),this.filteredProviders.push({id:t.id,name:t.name,icon:t.icon,type:t.type||"provider",filters:t.filters,isPluginFilter:t.isPluginFilter||!1}),this.filters=this.syncProviderFilters(this.filters,this.filteredProviders),kn.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),kn.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 n=t.slice();return n.forEach(((t,i)=>{const r=t.id;"provider"===t.type&&(e.some((t=>t.id===r))||n.splice(i,1))})),e.forEach((t=>{const e=t.id;"provider"===t.type&&(n.some((t=>t.id===e))||n.push(t))})),n},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 n=new Date;let i,r;switch(e){case"today":i=new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0),r=new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59,999),this.dateFilter.text=t("core","Today");break;case"7days":i=new Date(n.getFullYear(),n.getMonth(),n.getDate()-6,0,0,0,0),this.dateFilter.text=t("core","Last 7 days");break;case"30days":i=new Date(n.getFullYear(),n.getMonth(),n.getDate()-29,0,0,0,0),this.dateFilter.text=t("core","Last 30 days");break;case"thisyear":i=new Date(n.getFullYear(),0,1,0,0,0,0),r=new Date(n.getFullYear(),11,31,23,59,59,999),this.dateFilter.text=t("core","This year");break;case"lastyear":i=new Date(n.getFullYear()-1,0,1,0,0,0,0),r=new Date(n.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=i,this.dateFilter.endAt=r,this.updateDateFilter()},setCustomDateRange(e){kn.debug("Custom date range",e),this.dateFilter.startFrom=e.startFrom,this.dateFilter.endAt=e.endAt,this.dateFilter.text=t("core","Between ".concat(this.dateFilter.startFrom.toLocaleDateString()," and ").concat(this.dateFilter.endAt.toLocaleDateString())),this.updateDateFilter()},handlePluginFilter(t){for(let e=0;e<this.filteredProviders.length;e++){const n=this.filteredProviders[e];if(n.id===t.id){n.name=t.filterUpdateText;const i=this.providers.findIndex((e=>e.id===t.id));i>-1&&(n.extraParams=t.filterParams,this.filteredProviders[e]=n);break}}this.debouncedFind(this.searchQuery)},groupProvidersByApp(t){const e={};t.forEach((t=>{const n=t.appId?t.appId:"general";e[n]||(e[n]=[]),e[n].push(t)}));const n=[];return Object.values(e).forEach((t=>{n.push(...t)})),n},focusInput(){this.$refs.searchInput.$el.children[0].children[0].focus()},closeModal(){this.internalIsVisible=!1,this.searchQuery=""}}};var In=i(75277),Fn={};Fn.styleTagTransform=wt(),Fn.setAttributes=yt(),Fn.insert=vt().bind(null,"head"),Fn.domAPI=mt(),Fn.insertStyleElement=_t(),At()(In.A,Fn),In.A&&In.A.locals&&In.A.locals;const Nn=(0,lt.A)(Sn,(function(){var t=this,e=t._self._c;return e("NcModal",{ref:"unifiedSearchModal",attrs:{id:"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("div",{staticClass:"unified-search-modal__header"},[e("h2",[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","Places"),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(n){return e("NcActionButton",{key:"".concat(n.id,"-").concat(n.name.replace(/\s/g,"")),on:{click:function(e){return t.addProviderFilter(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{staticClass:"filter-button__icon",attrs:{src:n.icon,alt:""}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t"+t._s(n.name)+"\n\t\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"+t._s(t.t("core","Today"))+"\n\t\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"+t._s(t.t("core","Last 7 days"))+"\n\t\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"+t._s(t.t("core","Last 30 days"))+"\n\t\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"+t._s(t.t("core","This year"))+"\n\t\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"+t._s(t.t("core","Last year"))+"\n\t\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"+t._s(t.t("core","Custom date range"))+"\n\t\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"+t._s(t.t("core","People"))+"\n\t\t\t\t\t\t")])]},proxy:!0}])}),t._v(" "),t.supportFiltering?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"+t._s(t.t("core","Filter in current view"))+"\n\t\t\t\t\t")]):t._e()],1),t._v(" "),e("div",{staticClass:"unified-search-modal__filters-applied"},t._l(t.filters,(function(n){var i;return e("FilterChip",{key:n.id,attrs:{text:null!==(i=n.name)&&void 0!==i?i:n.text,pretext:""},on:{delete:function(e){return t.removeFilter(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return["person"===n.type?e("NcAvatar",{attrs:{user:n.user,size:24,"disable-menu":!0,"show-user-status":!1,"hide-favorite":!1}}):"date"===n.type?e("CalendarRangeIcon"):e("img",{attrs:{src:n.icon,alt:""}})]},proxy:!0}],null,!0)})})),1)],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):e("div",{staticClass:"unified-search-modal__results"},t._l(t.results,(function(n){return e("div",{key:n.id,staticClass:"result"},[e("div",{staticClass:"result-title"},[e("span",[t._v(t._s(n.provider))])]),t._v(" "),e("ul",{staticClass:"result-items"},t._l(n.results,(function(n,i){return e("SearchResult",t._b({key:i},"SearchResult",n,!1))})),1),t._v(" "),e("div",{staticClass:"result-footer"},[e("NcButton",{attrs:{type:"tertiary-no-background"},on:{click:function(e){return t.loadMoreResultsForProvider(n.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(" "),n.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(n.provider)+"\n\t\t\t\t\t\t")]):t._e()],1)])})),0)])],1)}),[],!1,null,"45d54e50",null).exports;var En=i(96763);const On={name:"UnifiedSearch",components:{NcButton:it.A,Magnify:rt.A,UnifiedSearchModal:Nn},data:()=>({showUnifiedSearch:!1}),mounted(){En.debug("Unified search initialized!")},methods:{toggleUnifiedSearch(){this.showUnifiedSearch=!this.showUnifiedSearch},handleModalVisibilityChange(t){this.showUnifiedSearch=t}}};var Pn=i(42256),Dn={};Dn.styleTagTransform=wt(),Dn.setAttributes=yt(),Dn.insert=vt().bind(null,"head"),Dn.domAPI=mt(),Dn.insertStyleElement=_t(),At()(Pn.A,Dn),Pn.A&&Pn.A.locals&&Pn.A.locals;const $n=(0,lt.A)(On,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-menu unified-search-menu"},[e("NcButton",{staticClass:"header-menu__trigger",attrs:{"aria-label":t.t("core","Unified search"),type:"tertiary-no-background"},on:{click:t.toggleUnifiedSearch},scopedSlots:t._u([{key:"icon",fn:function(){return[e("Magnify",{staticClass:"header-menu__trigger-icon",attrs:{size:20}})]},proxy:!0}])}),t._v(" "),e("UnifiedSearchModal",{attrs:{"is-visible":t.showUnifiedSearch},on:{"update:isVisible":t.handleModalVisibilityChange}})],1)}),[],!1,null,"4621f4fc",null).exports;i.nc=btoa((0,a.do)());const Mn=(0,r.YK)().setApp("unified-search").detectUser().build();nt.Ay.mixin({data:()=>({logger:Mn}),methods:{t:s.Tl,n:s.zw}}),window.OCA=window.OCA||{},window.OCA.UnifiedSearch={registerFilterAction:t=>{let{id:e,appId:n,label:i,callback:r,icon:a}=t;wn().registerExternalFilter({id:e,appId:n,label:i,callback:r,icon:a})}},nt.Ay.use((function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[p]=e,this.$pinia||(this.$pinia=e),e._a=this,f&&u(e),m&&j(e._a,e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})}));const Bn=function(){const t=(0,o.uY)(!0),e=t.run((()=>(0,o.KR)({})));let n=[],i=[];const r=(0,o.IG)({install(t){u(r),o.LE||(r._a=t,t.provide(p,r),t.config.globalProperties.$pinia=r,m&&j(t,r),i.forEach((t=>n.push(t))),i=[])},use(t){return this._a||o.LE?n.push(t):i.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return m&&"undefined"!=typeof Proxy&&r.use(Y),r}();new nt.Ay({el:"#unified-search",pinia:Bn,name:"UnifiedSearchRoot",render:t=>t($n)})},63571:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(71354),r=n.n(i),a=n(76314),s=n.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},68179:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(71354),r=n.n(i),a=n(76314),s=n.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},84359:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(71354),r=n.n(i),a=n(76314),s=n.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},33665:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(71354),r=n.n(i),a=n(76314),s=n.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},42256:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(71354),r=n.n(i),a=n(76314),s=n.n(a)()(r());s.push([t.id,"#header .header-menu[data-v-4621f4fc]{display:flex;align-items:center;justify-content:center}#header .header-menu__trigger[data-v-4621f4fc]{height:var(--header-height);width:var(--header-height) !important}#header .header-menu__trigger[data-v-4621f4fc]:focus-visible{outline:none !important;box-shadow:none !important}#header .header-menu__trigger[data-v-4621f4fc]:not(:hover,:focus,:focus-visible){opacity:.85}#header .header-menu__trigger-icon[data-v-4621f4fc]{color:var(--color-primary-text) !important}","",{version:3,sources:["webpack://./core/src/views/UnifiedSearch.vue"],names:[],mappings:"AAGC,sCACC,YAAA,CACA,kBAAA,CACA,sBAAA,CAEA,+CACC,2BAAA,CACA,qCAAA,CAEA,6DAEC,uBAAA,CACA,0BAAA,CAGD,iFACC,WAAA,CAGD,oDAEC,0CAAA",sourcesContent:["\n// this is needed to allow us overriding component styles (focus-visible)\n#header {\n\t.header-menu {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t&__trigger {\n\t\t\theight: var(--header-height);\n\t\t\twidth: var(--header-height) !important;\n\n\t\t\t&:focus-visible {\n\t\t\t\t// align with other header menu entries\n\t\t\t\toutline: none !important;\n\t\t\t\tbox-shadow: none !important;\n\t\t\t}\n\n\t\t\t&:not(:hover,:focus,:focus-visible) {\n\t\t\t\topacity: .85;\n\t\t\t}\n\n\t\t\t&-icon {\n\t\t\t\t// ensure the icon has the correct color\n\t\t\t\tcolor: var(--color-primary-text) !important;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const o=s},75277:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(71354),r=n.n(i),a=n(76314),s=n.n(a)()(r());s.push([t.id,".unified-search-modal[data-v-45d54e50]{box-sizing:border-box;height:100%;min-height:80vh;display:flex;flex-direction:column;padding-block:10px 0}.unified-search-modal>*[data-v-45d54e50]{padding-inline:20px}.unified-search-modal__header[data-v-45d54e50]{padding-block-end:8px}.unified-search-modal__heading[data-v-45d54e50]{font-size:16px;font-weight:bolder;line-height:2em;margin-bottom:0}.unified-search-modal__filters[data-v-45d54e50]{display:flex;flex-wrap:wrap;gap:4px;justify-content:start;padding-top:4px}.unified-search-modal__filters-applied[data-v-45d54e50]{padding-top:4px;display:flex;flex-wrap:wrap}.unified-search-modal__no-content[data-v-45d54e50]{display:flex;align-items:center;height:100%}.unified-search-modal__results[data-v-45d54e50]{overflow:hidden scroll;padding-block:0 10px}.unified-search-modal__results .result-title span[data-v-45d54e50]{color:var(--color-primary-element);font-weight:bolder;font-size:16px}.unified-search-modal__results .result-footer[data-v-45d54e50]{justify-content:space-between;align-items:center;display:flex}.filter-button__icon[data-v-45d54e50]{height:20px;width:20px;object-fit:contain;filter:var(--background-invert-if-bright);padding:11px}@media only screen and (max-height: 400px){.unified-search-modal__results[data-v-45d54e50]{overflow:unset}}","",{version:3,sources:["webpack://./core/src/views/UnifiedSearchModal.vue"],names:[],mappings:"AACA,uCACC,qBAAA,CACA,WAAA,CACA,eAAA,CAEA,YAAA,CACA,qBAAA,CACA,oBAAA,CAGA,yCACC,mBAAA,CAGD,+CACC,qBAAA,CAGD,gDACC,cAAA,CACA,kBAAA,CACA,eAAA,CACA,eAAA,CAGD,gDACC,YAAA,CACA,cAAA,CACA,OAAA,CACA,qBAAA,CACA,eAAA,CAGD,wDACC,eAAA,CACA,YAAA,CACA,cAAA,CAGD,mDACC,YAAA,CACA,kBAAA,CACA,WAAA,CAGD,gDACC,sBAAA,CACA,oBAAA,CAIE,mEACC,kCAAA,CACA,kBAAA,CACA,cAAA,CAIF,+DACC,6BAAA,CACA,kBAAA,CACA,YAAA,CAOJ,sCACC,WAAA,CACA,UAAA,CACA,kBAAA,CACA,yCAAA,CACA,YAAA,CAID,2CACC,gDACC,cAAA,CAAA",sourcesContent:["\n.unified-search-modal {\n\tbox-sizing: border-box;\n\theight: 100%;\n\tmin-height: 80vh;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tpadding-block: 10px 0;\n\n\t// inline padding on direct children to make sure the scrollbar is on the modal container\n\t>* {\n\t\tpadding-inline: 20px;\n\t}\n\n\t&__header {\n\t\tpadding-block-end: 8px;\n\t}\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\tflex-wrap: wrap;\n\t\tgap: 4px;\n\t\tjustify-content: start;\n\t\tpadding-top: 4px;\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\toverflow: hidden scroll;\n\t\tpadding-block: 0 10px;\n\n\t\t.result {\n\t\t\t&-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&-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\n.filter-button__icon {\n\theight: 20px;\n\twidth: 20px;\n\tobject-fit: contain;\n\tfilter: var(--background-invert-if-bright);\n\tpadding: 11px; // align with text to fit at least 44px\n}\n\n// Ensure modal is accessible on small devices\n@media only screen and (max-height: 400px) {\n\t.unified-search-modal__results {\n\t\toverflow: unset;\n\t}\n}\n"],sourceRoot:""}]);const o=s},26734:t=>{t.exports="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M15.4%2016.6L10.8%2012l4.6-4.6L14%206l-6%206%206%206%201.4-1.4z%27/%3e%3c/svg%3e"},51338:t=>{t.exports="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M18.4%207.4L17%206l-6%206%206%206%201.4-1.4-4.6-4.6%204.6-4.6m-6%200L11%206l-6%206%206%206%201.4-1.4L7.8%2012l4.6-4.6z%27/%3e%3c/svg%3e"},57818:t=>{t.exports="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M5.6%207.4L7%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6m6%200L13%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6z%27/%3e%3c/svg%3e"},31926:t=>{t.exports="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M8.6%2016.6l4.6-4.6-4.6-4.6L10%206l6%206-6%206-1.4-1.4z%27/%3e%3c/svg%3e"}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var a=i[t]={id:t,loaded:!1,exports:{}};return n[t].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=n,e=[],r.O=(t,n,i,a)=>{if(!n){var s=1/0;for(d=0;d<e.length;d++){n=e[d][0],i=e[d][1],a=e[d][2];for(var o=!0,l=0;l<n.length;l++)(!1&a||s>=a)&&Object.keys(r.O).every((t=>r.O[t](n[l])))?n.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]=[n,i,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 n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},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=6776,(()=>{r.b=document.baseURI||self.location.href;var t={6776:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var i,a,s=n[0],o=n[1],l=n[2],c=0;if(s.some((e=>0!==t[e]))){for(i in o)r.o(o,i)&&(r.m[i]=o[i]);if(l)var d=l(r)}for(e&&e(n);c<s.length;c++)a=s[c],r.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return r.O(d)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),r.nc=void 0;var a=r.O(void 0,[4208],(()=>r(66686)));a=r.O(a)})();
- //# sourceMappingURL=core-unified-search.js.map?v=013ab63aeddc02208837
|