core-global-search.js 55 KB

123
  1. /*! For license information please see core-global-search.js.LICENSE.txt */
  2. (()=>{"use strict";var e,i={73413:(e,i,n)=>{var r=n(17499),s=n(77958),a=n(31352),l=n(20144),o=n(74628),c=n(85989),d=n(73567),u=n(60186);const p={name:"CalendarRangeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var h=n(51900);const A=(0,h.Z)(p,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon calendar-range-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M9,10H7V12H9V10M13,10H11V12H13V10M17,10H15V12H17V10M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V8H19V19Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var m=n(37008),g=n(25475);const f={name:"CustomDateRangeModal",components:{NcButton:o.Z,NcModal:g.Z,CalendarRangeIcon:A,NcDateTimePicker:m.Z},props:{isOpen:{type:Boolean,required:!0}},data:()=>({dateFilter:{startFrom:null,endAt:null}}),computed:{isModalOpen:{get(){return this.isOpen},set(t){this.$emit("update:is-open",t)}}},methods:{closeModal(){this.isModalOpen=!1},applyCustomRange(){this.$emit("set:custom-date-range",this.dateFilter),this.closeModal()}}};var C=n(93379),v=n.n(C),b=n(7795),y=n.n(b),_=n(90569),x=n.n(_),k=n(3565),Z=n.n(k),w=n(19216),I=n.n(w),N=n(44589),M=n.n(N),S=n(2051),D={};D.styleTagTransform=M(),D.setAttributes=Z(),D.insert=x().bind(null,"head"),D.domAPI=y(),D.insertStyleElement=I(),v()(S.Z,D),S.Z&&S.Z.locals&&S.Z.locals;const L=(0,h.Z)(f,(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,T={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},B=(0,h.Z)(T,(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,j={name:"CloseThickIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},F={name:"SearchFilterChip",components:{CloseIcon:(0,h.Z)(j,(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 R=n(38111),z={};z.styleTagTransform=M(),z.setAttributes=Z(),z.insert=x().bind(null,"head"),z.domAPI=y(),z.insertStyleElement=I(),v()(R.Z,z),R.Z&&R.Z.locals&&R.Z.locals;const E=(0,h.Z)(F,(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,P={name:"FlaskEmptyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},O=(0,h.Z)(P,(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,H={name:"ListBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},V=(0,h.Z)(H,(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 G=n(2985),$=n(99059),Y=n(18519),U=n(22175),Q=n(90941),W=n(3172),q=n(66236),K=n(75944),X=n(45157),J=n(26053),tt=n(41989),et=n(99313),it=n(20090),nt=n(96204),rt=n(16894),st=n(94162),at=n(40874),lt=n(27657),ot=n(2047),ct=n(58644),dt=n(82002),ut=n(89998),pt=n(41671),ht=n(36065),At=n(96315),mt=n(66845),gt=n(87875),ft=n(12841),Ct=n(56956),vt=n(42899),bt=n(98445),yt=n(45092),_t=n(36402),xt=n(49231),kt=n(10038),Zt=n(97287),wt=n(73743),It=n(59897),Nt=n(89241),Mt=n(96226),St=n(97947),Dt=n(47953),Lt=n(93757),Tt=n(6318),Bt=n(78573),jt=n(93428),Ft=n(93815),Rt=n(40873),zt=n(64865),Et=n(88175),Pt=n(20435),Ot=n(6156),Ht=n(16972),Vt=n(34246),Gt=n(34854),$t=n(42213),Yt=n(22663),Ut=(n(25057),n(79753)),Qt=n(76311),Wt=n(86665),qt=(n(79845),n(93911)),Kt=n(96251),Xt=n(93664),Jt=n(86884),te=n(49368),ee=(n(69183),n(65507)),ie=n(25854),ne=n(36683),re=n(73045),se=n(25108);const ae={name:"NcAutoCompleteResult",props:{title:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},iconUrl:{type:String,default:null},source:{type:String,required:!0},status:{type:[Object,Array],default:()=>({})}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&"users"===this.source?this.getAvatarUrl(this.id,44):null},haveStatus(){var t,e,i;return(null==(t=this.status)?void 0:t.icon)||(null==(e=this.status)?void 0:e.status)&&"offline"!==(null==(i=this.status)?void 0:i.status)}},methods:{getAvatarUrl:(t,e)=>(0,Ut.generateUrl)("/avatar/{user}/{size}",{user:t,size:e})}};var le=function(){var t=this,e=t._self._c;return e("div",{staticClass:"autocomplete-result"},[e("div",{staticClass:"autocomplete-result__icon",class:[t.icon,"autocomplete-result__icon--"+(t.avatarUrl?"with-avatar":"")],style:t.avatarUrl?{backgroundImage:`url(${t.avatarUrl})`}:null},[t.haveStatus?e("div",{staticClass:"autocomplete-result__status",class:[`autocomplete-result__status--${t.status&&t.status.icon?"icon":t.status.status}`]},[t._v(" "+t._s(t.status&&t.status.icon||"")+" ")]):t._e()]),e("span",{staticClass:"autocomplete-result__content"},[e("span",{staticClass:"autocomplete-result__title",attrs:{title:t.title}},[t._v(" "+t._s(t.title)+" ")]),t.subline?e("span",{staticClass:"autocomplete-result__subline"},[t._v(" "+t._s(t.subline)+" ")]):t._e()])])},oe=[];const ce=(0,Qt.n)(ae,le,oe,!1,null,"25cf09d8",null,null).exports,de={name:"NcRichContenteditable",directives:{tooltip:re.VTooltip},mixins:[Yt.r],props:{value:{type:String,default:"",required:!0},placeholder:{type:String,default:(0,Wt.t)("Write a message …")},autoComplete:{type:Function,default:()=>[]},menuContainer:{type:Element,default:()=>document.body},multiline:{type:Boolean,default:!1},contenteditable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},maxlength:{type:Number,default:null},emojiAutocomplete:{type:Boolean,default:!0},linkAutocomplete:{type:Boolean,default:!0}},emits:["submit","paste","update:value","smart-picker-submit"],data(){return{textSmiles:[],tribute:null,autocompleteOptions:{allowSpaces:!0,fillAttr:"id",lookup:t=>`${t.id} ${t.title}`,menuContainer:this.menuContainer,menuItemTemplate:t=>this.renderComponentHtml(t.original,ce),noMatchTemplate:()=>'<span class="hidden"></span>',selectTemplate:t=>{var e;return this.genSelectTemplate(null==(e=null==t?void 0:t.original)?void 0:e.id)},values:this.debouncedAutoComplete},emojiOptions:{trigger:":",lookup:(t,e)=>e,menuContainer:this.menuContainer,menuItemTemplate:t=>this.textSmiles.includes(t.original)?t.original:`<span class="tribute-container-emoji__item__emoji">${t.original.native}</span> :${t.original.short_name}`,noMatchTemplate:()=>(0,Wt.t)("No emoji found"),selectTemplate:t=>this.textSmiles.includes(t.original)?t.original:((0,qt.R)(t.original),t.original.native),values:(t,e)=>{const i=(0,qt.K)(t);this.textSmiles.includes(":"+t)&&i.unshift(":"+t),e(i)},containerClass:"tribute-container-emoji",itemClass:"tribute-container-emoji__item"},linkOptions:{trigger:"/",lookup:(t,e)=>e,menuContainer:this.menuContainer,menuItemTemplate:t=>`<img class="tribute-container-link__item__icon" src="${t.original.icon_url}"> <span class="tribute-container-link__item__title">${t.original.title}</span>`,noMatchTemplate:()=>(0,Wt.t)("No link provider found"),selectTemplate:this.getLink,values:(t,e)=>e((0,Kt.n)(t)),containerClass:"tribute-container-link",itemClass:"tribute-container-link__item"},localValue:this.value,isComposing:!1}},computed:{isEmptyValue(){return!this.localValue||this.localValue&&""===this.localValue.trim()},isFF:()=>!!navigator.userAgent.match(/firefox/i),isOverMaxlength(){return!(this.isEmptyValue||!this.maxlength)&&(0,ne.default)(this.localValue)>this.maxlength},tooltipString(){return this.isOverMaxlength?{content:(0,Wt.t)("Message limit of {count} characters reached",{count:this.maxlength}),shown:!0,trigger:"manual"}:null},canEdit(){return this.contenteditable&&!this.disabled},listeners(){const t={...this.$listeners};return delete t.paste,t}},watch:{value(){const t=this.$refs.contenteditable.innerHTML;this.value.trim()!==this.parseContent(t).trim()&&this.updateContent(this.value)}},mounted(){this.textSmiles=[],["d","D","p","P","s","S","x","X",")","(","|","/"].forEach((t=>{this.textSmiles.push(":"+t),this.textSmiles.push(":-"+t)})),this.autocompleteTribute=new ee.default(this.autocompleteOptions),this.autocompleteTribute.attach(this.$el),this.emojiAutocomplete&&(this.emojiTribute=new ee.default(this.emojiOptions),this.emojiTribute.attach(this.$el)),this.linkAutocomplete&&(this.linkTribute=new ee.default(this.linkOptions),this.linkTribute.attach(this.$el)),this.updateContent(this.value),this.$refs.contenteditable.contentEditable=this.canEdit},beforeDestroy(){this.autocompleteTribute&&this.autocompleteTribute.detach(this.$el),this.emojiTribute&&this.emojiTribute.detach(this.$el),this.linkTribute&&this.linkTribute.detach(this.$el)},methods:{focus(){this.$refs.contenteditable.focus()},getLink(t){return(0,Kt.j)(t.original.id).then((t=>{const e=document.getElementById("tmp-smart-picker-result-node"),i={result:t,insertText:!0};if(this.$emit("smart-picker-submit",i),i.insertText){const i=document.createTextNode(t);e.replaceWith(i),this.setCursorAfter(i),this.updateValue(this.$refs.contenteditable.innerHTML)}else e.remove()})).catch((t=>{se.debug("Smart picker promise rejected:",t);const e=document.getElementById("tmp-smart-picker-result-node");this.setCursorAfter(e),e.remove()})),'<span id="tmp-smart-picker-result-node"></span>'},setCursorAfter(t){const e=document.createRange();e.setEndAfter(t),e.collapse();const i=window.getSelection();i.removeAllRanges(),i.addRange(e)},onInput(t){this.updateValue(t.target.innerHTML)},onPaste(t){if(!this.canEdit)return;t.preventDefault();const e=t.clipboardData;if(this.$emit("paste",t),0!==e.files.length||!Object.values(e.items).find((t=>null==t?void 0:t.type.startsWith("text"))))return;const i=e.getData("text"),n=window.getSelection();if(!n.rangeCount)return void this.updateValue(i);const r=n.getRangeAt(0);n.deleteFromDocument(),r.insertNode(document.createTextNode(i));const s=document.createRange();s.setStart(t.target,r.endOffset),s.collapse(!0),n.removeAllRanges(),n.addRange(s),this.updateValue(this.$refs.contenteditable.innerHTML)},updateValue(t){const e=this.parseContent(t);this.localValue=e,this.$emit("update:value",e)},updateContent(t){const e=this.renderContent(t);this.$refs.contenteditable.innerHTML=e,this.localValue=t},onDelete(t){if(!this.isFF||!window.getSelection||!this.canEdit)return;const e=window.getSelection(),i=t.target;if(!e.isCollapsed||!e.rangeCount)return;const n=e.getRangeAt(e.rangeCount-1);if(3===n.commonAncestorContainer.nodeType&&n.startOffset>0)return;const r=document.createRange();if(e.anchorNode!==i)r.selectNodeContents(i),r.setEndBefore(e.anchorNode);else{if(!(e.anchorOffset>0))return;r.setEnd(i,e.anchorOffset)}r.setStart(i,r.endOffset-1);const s=r.cloneContents().lastChild;s&&"false"===s.contentEditable&&(r.deleteContents(),t.preventDefault())},onEnter(t){this.multiline||this.isOverMaxlength||this.autocompleteTribute.isActive||this.emojiTribute.isActive||this.linkTribute.isActive||this.isComposing||(t.preventDefault(),t.stopPropagation(),this.$emit("submit",t))},onCtrlEnter(t){this.isOverMaxlength||this.$emit("submit",t)},debouncedAutoComplete:ie((async function(t,e){this.autoComplete(t,e)}),100),onKeyUp(t){t.stopImmediatePropagation()}}};var ue=function(){var t=this;return(0,t._self._c)("div",t._g({directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tooltipString,expression:"tooltipString"}],ref:"contenteditable",staticClass:"rich-contenteditable__input",class:{"rich-contenteditable__input--empty":t.isEmptyValue,"rich-contenteditable__input--multiline":t.multiline,"rich-contenteditable__input--overflow":t.isOverMaxlength,"rich-contenteditable__input--disabled":t.disabled},attrs:{contenteditable:t.canEdit,"aria-placeholder":t.placeholder,"aria-multiline":"true",role:"textbox"},on:{input:t.onInput,compositionstart:function(e){t.isComposing=!0},compositionend:function(e){t.isComposing=!1},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.onDelete.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onEnter.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onCtrlEnter.apply(null,arguments))}],paste:t.onPaste,"!keyup":function(e){return e.stopPropagation(),e.preventDefault(),t.onKeyUp.apply(null,arguments)}}},t.listeners))},pe=[];(0,Qt.n)(de,ue,pe,!1,null,"9e395f41",null,null).exports;var he=n(21623),Ae=n(61170),me=n(90630),ge=n(42977),fe=n(81049),Ce=n(25739),ve=n(39685),be=n(66875),ye=n(72090),_e=n(25108);const xe=/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/gi,ke=/(\s|\(|^)((https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/gi,Ze={name:"NcReferenceList",components:{NcReferenceWidget:Kt.N},props:{text:{type:String,default:""},referenceData:{type:Object,default:null},limit:{type:Number,default:1}},data:()=>({references:null,loading:!0}),computed:{isVisible(){return this.loading||this.displayedReferences},values(){return this.referenceData?this.referenceData:this.references?Object.values(this.references):[]},firstReference(){var t;return null!=(t=this.values[0])?t:null},displayedReferences(){return this.values.slice(0,this.limit)}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){this.loading=!0,this.referenceData?this.loading=!1:new RegExp(xe).exec(this.text)?this.resolve().then((t=>{this.references=t.data.ocs.data.references,this.loading=!1})).catch((t=>{_e.error("Failed to extract references",t),this.loading=!1})):this.loading=!1},resolve(){const t=new RegExp(xe).exec(this.text.trim());return 1===this.limit&&t?Xt.Z.get((0,Ut.generateOcsUrl)("references/resolve",2)+`?reference=${encodeURIComponent(t[0])}`):Xt.Z.post((0,Ut.generateOcsUrl)("references/extract",2),{text:this.text,resolve:!0,limit:this.limit})}}};var we=function(){var t=this,e=t._self._c;return t.isVisible?e("div",{staticClass:"widgets--list",class:{"icon-loading":t.loading}},t._l(t.displayedReferences,(function(t){var i;return e("div",{key:null==(i=null==t?void 0:t.openGraphObject)?void 0:i.id},[e("NcReferenceWidget",{attrs:{reference:t}})],1)})),0):t._e()},Ie=[];const Ne=(0,Qt.n)(Ze,we,Ie,!1,null,"bd1fbb02",null,null).exports,Me={name:"NcLink",props:{href:{type:String,required:!0}},render(t){return t("a",{attrs:{href:this.href,rel:"noopener noreferrer",target:"_blank",class:"rich-text--external-link"}},[this.href.trim()])}},Se=function({autolink:t,useMarkdown:e}){return function(i){!e||!t||(0,he.Vn)(i,(t=>"text"===t.type),((t,e,i)=>{let n=De(t.value);return n=n.map((t=>"string"==typeof t?(0,me.u)("text",t):(0,me.u)("link",{url:t.props.href},[(0,me.u)("text",t.props.href)]))).filter((t=>t)),i.children.splice(e,1,...n.flat()),[Ae.AM,e+n.flat().length]}))}},De=t=>{let e=ke.exec(t);const i=[];let n=0;for(;null!==e;){let r,s=e[2],a=t.substring(n,e.index+e[1].length);" "===s[0]&&(a+=s[0],s=s.substring(1).trim());const l=s[s.length-1];("."===l||","===l||";"===l||"("===e[0][0]&&")"===l)&&(s=s.substring(0,s.length-1),r=l),i.push(a),i.push({component:Me,props:{href:s}}),r&&i.push(r),n=e.index+e[0].length,e=ke.exec(t)}return i.push(t.substring(n)),t===i.map((t=>"string"==typeof t?t:t.props.href)).join("")?i:(_e.error("Failed to reassemble the chunked text: "+t),t)},Le=function(){return function(t){(0,he.Vn)(t,(t=>"text"===t.type),(function(t,e,i){const n=t.value.split(/(\{[a-z\-_.0-9]+\})/gi).map(((t,e,i)=>{const n=t.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!n)return(0,me.u)("text",t);const[,r]=n;return(0,me.u)("element",{tagName:`#${r}`})}));i.children.splice(e,1,...n)}))}},Te={name:"NcRichText",components:{NcReferenceList:Ne},props:{text:{type:String,default:""},arguments:{type:Object,default:()=>({})},referenceLimit:{type:Number,default:0},references:{type:Object,default:null},markdownCssClasses:{type:Object,default:()=>({a:"rich-text--external-link",ol:"rich-text--ordered-list",ul:"rich-text--un-ordered-list",li:"rich-text--list-item",strong:"rich-text--strong",em:"rich-text--italic",h1:"rich-text--heading rich-text--heading-1",h2:"rich-text--heading rich-text--heading-2",h3:"rich-text--heading rich-text--heading-3",h4:"rich-text--heading rich-text--heading-4",h5:"rich-text--heading rich-text--heading-5",h6:"rich-text--heading rich-text--heading-6",hr:"rich-text--hr",table:"rich-text--table",pre:"rich-text--pre",code:"rich-text--code",blockquote:"rich-text--blockquote"})},useMarkdown:{type:Boolean,default:!1},autolink:{type:Boolean,default:!0}},methods:{renderPlaintext(t){const e=this,i=this.text.split(/(\{[a-z\-_.0-9]+\})/gi).map((function(i,n,r){const s=i.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!s)return(({h:t,context:e},i)=>(e.autolink&&(i=De(i)),Array.isArray(i)?i.map((e=>{if("string"==typeof e)return e;const{component:i,props:n}=e,r="NcLink"===i.name?void 0:"rich-text--component";return t(i,{props:n,class:r})})):i))({h:t,context:e},i);const a=s[1],l=e.arguments[a];if("object"==typeof l){const{component:e,props:i}=l;return t(e,{props:i,class:"rich-text--component"})}return l?t("span",{class:"rich-text--fallback"},l):i}));return t("div",{class:"rich-text--wrapper"},[t("div",{},i.flat()),this.referenceLimit>0?t("div",{class:"rich-text--reference-widget"},[t(Ne,{props:{text:this.text,referenceData:this.references}})]):null])},renderMarkdown(t){const e=(0,ge.l)().use(fe.Z).use(Se,{autolink:this.autolink,useMarkdown:this.useMarkdown}).use(Ce.Z).use(ve.Z,{handlers:{component:(t,e)=>t(e,e.component,{value:e.value})}}).use(Le).use(ye.Z,{target:"_blank",rel:["noopener noreferrer"]}).use(be.Z,{createElement:(e,i,n)=>{if(n=null==n?void 0:n.map((t=>"string"==typeof t?t.replace(/&lt;/gim,"<"):t)),!e.startsWith("#"))return t(e,i,n);const r=this.arguments[e.slice(1)];return r?r.component?t(r.component,{attrs:i,props:r.props,class:"rich-text--component"},n):t("span",i,[r]):t("span",{attrs:i,class:"rich-text--fallback"},[`{${e.slice(1)}}`])},prefix:!1}).processSync(this.text.replace(/</gim,"&lt;").replace(/&gt;/gim,">")).result;return t("div",{class:"rich-text--wrapper rich-text--wrapper-markdown"},[e,this.referenceLimit>0?t("div",{class:"rich-text--reference-widget"},[t(Ne,{props:{text:this.text,referenceData:this.references}})]):null])}},render(t){return this.useMarkdown?this.renderMarkdown(t):this.renderPlaintext(t)}};(0,Qt.n)(Te,null,null,!1,null,"5f33f45b",null,null).exports;var Be=n(74911),je=n(35380),Fe=n(56857),Re=n(67912),ze=n(79233),Ee=n(13888),Pe=n(34509),Oe=n(70653),He=(n(52299),n(50279),n(85302),n(90318)),Ve=n(17593);n(84722),n(76692),$.Z,q.Z,K.Z,X.Z,J.Z,tt.Z,et.Z,it.Z,nt.Z,rt.Z,st.Z,G.Z,at.Z,lt.Z,ot.Z,ct.Z,dt.Z,ut.Z,pt.Z,ht.Z,At.Z,mt.Z,gt.Z,ft.Z,Ct.Z,vt.Z,bt.Z,yt.N,_t.Z,xt.Z,o.Z,kt.Z,Zt.Z,wt.Z,It.Z,Nt.Z,Mt.Z,St.Z,Dt.Z,m.Z,Lt.Z,Tt.Z,Bt.Z,U.Z,jt.Z,Ft.Z,Rt.N,zt.Z,W.Z,Et.Z,Pt.Z,Yt.N,g.Z,Ot.Z,Ht.Z,Vt.Z,Gt.Z,$t.Z,Be.Z,Jt.Z,je.Z,Fe.Z,Re.Z,ze.N,Oe.Z,te.Z,Ee.Z,Pe.Z,Symbol.toStringTag,He.X,Ve.X,re.VTooltip,Symbol.toStringTag;var Ge=n(48950);const $e={name:"SearchableList",components:{NcPopover:Vt.Z,NcTextField:te.Z,Magnify:c.default,AlertCircleOutline:Ge.default,NcAvatar:yt.N,NcEmptyContent:U.Z,NcButton:o.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 Ye=n(13006),Ue={};Ue.styleTagTransform=M(),Ue.setAttributes=Z(),Ue.insert=x().bind(null,"head"),Ue.domAPI=y(),Ue.insertStyleElement=I(),v()(Ye.Z,Ue),Ye.Z&&Ye.Z.locals&&Ye.Z.locals;const Qe=(0,h.Z)($e,(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(i){return e("li",{key:i.id,attrs:{title:i.displayName,role:"button"}},[e("NcButton",{attrs:{alignment:"start",type:"tertiary",wide:!0},on:{click:function(e){return t.itemSelected(i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcAvatar",{attrs:{user:i.user,"show-user-status":!1,"hide-favorite":!1}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(i.displayName)+"\n\t\t\t\t")])],1)})),0):e("div",{staticClass:"searchable-list__empty-content"},[e("NcEmptyContent",{attrs:{name:t.emptyContentText},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlertCircleOutline")]},proxy:!0}])})],1)],1)])}),[],!1,null,"2015df7e",null).exports;var We=n(20296),qe=n.n(We),Ke=n(25108);async function Xe(t){let{searchTerm:e}=t;const{data:{contacts:i}}=await Xt.Z.post((0,Ut.generateUrl)("/contactsmenu/contacts"),{filter:e});return i}var Je=n(25108);const ti={name:"GlobalSearchModal",components:{ArrowRight:d.default,AccountGroup:u.Z,CalendarRangeIcon:A,CustomDateRangeModal:L,DotsHorizontalIcon:B,FilterChip:E,FlaskEmpty:O,ListBox:V,NcActions:G.Z,NcActionButton:$.Z,NcAvatar:Y.Z,NcButton:o.Z,NcEmptyContent:U.Z,NcModal:g.Z,NcListItem:W.Z,NcInputField:Q.Z,MagnifyIcon:c.default,SearchableList:Qe},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:qe()(this.find,300),showDateRangeModal:!1}},computed:{userContacts:{get(){return this.contacts}},noContentInfo:{get(){const e=0===this.searchQuery.length,i=this.searchQuery.length>0&&0===this.results.length;return{show:e||i,text:e?t("core","Start typing in search"):t("core","No matching results"),icon:e?c.default:O}}}},mounted(){(async function(){try{const{data:t}=await Xt.Z.get((0,Ut.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){Ke.error(t)}return[]})().then((t=>{this.providers=t,Je.debug("Search providers",this.providers)})),Xe({filter:""}).then((t=>{this.contacts=this.mapContacts(t),Je.debug("Contacts",this.contacts)}))},methods:{find(t){if(0===t.length)return void(this.results=[]);const e=[],i=this.filteredProviders.length>0?this.filteredProviders:this.providers,n=(i,n)=>{const r={type:i.id,query:t,cursor:null};if(n.dateFilterIsApplied){if(!i.filters.since||!i.filters.until)return;r.since=this.dateFilter.startFrom,r.until=this.dateFilter.endAt}if(n.personFilterIsApplied){if(!i.filters.person)return;r.person=this.personFilter.user}this.providerResultLimit>5&&(r.limit=this.providerResultLimit),(0,function(t){let{type:e,query:i,cursor:n,since:r,until:s,limit:a,person:l}=t;const o=Xt.Z.CancelToken.source();return{request:async()=>Xt.Z.get((0,Ut.generateOcsUrl)("search/providers/{type}/search",{type:e}),{cancelToken:o.token,params:{term:i,cursor:n,since:r,until:s,limit:a,person:l,from:window.location.pathname.replace("/index.php","")+window.location.search}}),cancel:o.cancel}}(r).request)().then((t=>{e.push({id:i.id,provider:i.name,inAppSearch:i.inAppSearch,results:t.data.ocs.data.entries}),Je.debug("New results",e),Je.debug("Global search results:",this.results),this.updateResults(e)}))};i.forEach((t=>{const e=this.dateFilterIsApplied,i=this.personFilterIsApplied;n(t,{dateFilterIsApplied:e,personFilterIsApplied:i})}))},updateResults(t){let e=[...this.results];this.filters.length>0&&(e=e.filter((t=>this.filters.some((e=>e.id===t.id))))),t.forEach((t=>{const i=e.findIndex((e=>e.id===t.id));-1!==i?0===t.results.length?e.splice(i,1):e.splice(i,1,t):t.results.length>0&&e.push(t)}));const i=e.slice(0);i.sort(((t,e)=>{const i=this.providers.find((e=>e.id===t.id)),n=this.providers.find((t=>t.id===e.id));return(i?i.order:0)-(n?n.order:0)})),this.results=i},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){Xe({filter:t}).then((e=>{this.contacts=this.mapContacts(e),Je.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),Je.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),Je.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),Je.debug("Search filters (recently removed)",this.filters)}else for(let e=0;e<this.filters.length;e++)if("date"===this.filters[e].id||this.filters[e].id===t.id){this.dateFilterIsApplied=!1,this.filters.splice(e,1),"person"===t.type&&(this.personFilterIsApplied=!1);break}this.debouncedFind(this.searchQuery)},syncProviderFilters(t,e){const i=t.slice();return i.forEach(((t,n)=>{const r=t.id;"provider"===t.type&&(e.some((t=>t.id===r))||i.splice(n,1))})),e.forEach((t=>{const e=t.id;"provider"===t.type&&(i.some((t=>t.id===e))||i.push(t))})),i},updateDateFilter(){const t=this.filters.findIndex((t=>"date"===t.id));-1!==t?this.filters[t]=this.dateFilter:this.filters.push(this.dateFilter),this.dateFilterIsApplied=!0,this.debouncedFind(this.searchQuery)},applyQuickDateRange(e){this.dateActionMenuIsOpen=!1;const i=new Date;let n,r=i;switch(e){case"today":n=i,this.dateFilter.text=t("core","Today");break;case"7days":n=new Date(i),n.setDate(i.getDate()-7),this.dateFilter.text=t("core","Last 7 days");break;case"30days":n=new Date(i),n.setDate(i.getDate()-30),this.dateFilter.text=t("core","Last 30 days");break;case"thisyear":n=new Date(i.getFullYear(),0,1),this.dateFilter.text=t("core","This year");break;case"lastyear":n=new Date(i.getFullYear()-1,0,1),r=new Date(i.getFullYear()-1,11,31),this.dateFilter.text=t("core","Last year");break;case"custom":return void(this.showDateRangeModal=!0);default:return}this.dateFilter.startFrom=n,this.dateFilter.endAt=r,this.updateDateFilter()},setCustomDateRange(e){Je.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 ei=n(71129),ii={};ii.styleTagTransform=M(),ii.setAttributes=Z(),ii.insert=x().bind(null,"head"),ii.domAPI=y(),ii.insertStyleElement=I(),v()(ei.Z,ii),ei.Z&&ei.Z.locals&&ei.Z.locals;const ni=(0,h.Z)(ti,(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(i){return e("NcActionButton",{key:i.id,on:{click:function(e){return t.addProviderFilter(i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("img",{attrs:{src:i.icon}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t"+t._s(t.t("core",i.name))+"\n\t\t\t\t")])}))],2),t._v(" "),e("NcActions",{attrs:{"menu-name":t.t("core","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(i){return e("FilterChip",{key:i.id,attrs:{text:i.name??i.text,pretext:""},on:{delete:function(e){return t.removeFilter(i)}},scopedSlots:t._u([{key:"icon",fn:function(){return["person"===i.type?e("NcAvatar",{attrs:{user:i.user,size:24,"disable-menu":!0,"show-user-status":!1,"hide-favorite":!1}}):"date"===i.type?e("CalendarRangeIcon"):e("img",{attrs:{src:i.icon,alt:""}})]},proxy:!0}],null,!0)})})),1),t._v(" "),t.noContentInfo.show?e("div",{staticClass:"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(i){return e("div",{key:i.id,staticClass:"global-search-modal__results"},[e("div",{staticClass:"results"},[e("div",{staticClass:"result-title"},[e("span",[t._v(t._s(i.provider))])]),t._v(" "),e("ul",{staticClass:"result-items"},t._l(i.results,(function(i,n){return e("NcListItem",{key:n,staticClass:"result-items__item",attrs:{name:i.title??"",bold:!1},on:{click:function(e){return t.openResult(i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[i.icon?e("div",{staticClass:"result-items__item-icon",class:{"result-items__item-icon--no-preview":!t.isValidUrl(i.thumbnailUrl),"result-items__item-icon--with-thumbnail":t.isValidUrl(i.thumbnailUrl),[i.icon]:!t.isValidUrl(i.icon)},style:{backgroundImage:t.isValidUrl(i.icon)?`url(${i.icon})`:""}},[i.thumbnailUrl?e("img",{attrs:{src:i.thumbnailUrl}}):t._e()]):t._e()]},proxy:!0},{key:"subname",fn:function(){return[t._v("\n\t\t\t\t\t\t\t"+t._s(i.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(i.id)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("DotsHorizontalIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("core","Load more results"))+"\n\t\t\t\t\t\t")]),t._v(" "),i.inAppSearch?e("NcButton",{attrs:{alignment:"end-reverse",type:"tertiary-no-background"},scopedSlots:t._u([{key:"icon",fn:function(){return[e("ArrowRight",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("core","Search in"))+" "+t._s(i.provider)+"\n\t\t\t\t\t\t")]):t._e()],1)])])}))],2)],1):t._e()}),[],!1,null,"54d1e356",null).exports;var ri=n(25108);const si={name:"GlobalSearch",components:{NcButton:o.Z,Magnify:c.default,GlobalSearchModal:ni},data:()=>({showGlobalSearch:!1}),mounted(){ri.debug("Global search initialized!")},methods:{toggleGlobalSearch(){this.showGlobalSearch=!this.showGlobalSearch}}};var ai=n(44557),li={};li.styleTagTransform=M(),li.setAttributes=Z(),li.insert=x().bind(null,"head"),li.domAPI=y(),li.insertStyleElement=I(),v()(ai.Z,li),ai.Z&&ai.Z.locals&&ai.Z.locals;const oi=(0,h.Z)(si,(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;n.nc=btoa((0,s.IH)());const ci=(0,r.IY)().setApp("global-search").detectUser().build();l.default.mixin({data:()=>({logger:ci}),methods:{t:a.Iu,n:a.uN}}),new l.default({el:"#global-search",name:"GlobalSearchRoot",render:t=>t(oi)})},2051:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(87537),r=i.n(n),s=i(23645),a=i.n(s)()(r());a.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 l=a},38111:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(87537),r=i.n(n),s=i(23645),a=i.n(s)()(r());a.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 l=a},13006:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(87537),r=i.n(n),s=i(23645),a=i.n(s)()(r());a.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 l=a},44557:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(87537),r=i.n(n),s=i(23645),a=i.n(s)()(r());a.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 l=a},71129:(t,e,i)=>{i.d(e,{Z:()=>l});var n=i(87537),r=i.n(n),s=i(23645),a=i.n(s)()(r());a.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 l=a},42761:t=>{t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},87210:t=>{t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"},94659:t=>{t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="},39896:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE1LjQgMTYuNkwxMC44IDEybDQuNi00LjZMMTQgNmwtNiA2IDYgNiAxLjQtMS40eiIvPjwvc3ZnPg=="},76899:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE4LjQgNy40TDE3IDZsLTYgNiA2IDYgMS40LTEuNC00LjYtNC42IDQuNi00LjZtLTYgMEwxMSA2bC02IDYgNiA2IDEuNC0xLjRMNy44IDEybDQuNi00LjZ6Ii8+PC9zdmc+"},88931:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTUuNiA3LjRMNyA2bDYgNi02IDYtMS40LTEuNCA0LjYtNC42LTQuNi00LjZtNiAwTDEzIDZsNiA2LTYgNi0xLjQtMS40IDQuNi00LjYtNC42LTQuNnoiLz48L3N2Zz4="},16556:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTguNiAxNi42bDQuNi00LjYtNC42LTQuNkwxMCA2bDYgNi02IDYtMS40LTEuNHoiLz48L3N2Zz4="}},n={};function r(t){var e=n[t];if(void 0!==e)return e.exports;var s=n[t]={id:t,loaded:!1,exports:{}};return i[t].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}r.m=i,e=[],r.O=(t,i,n,s)=>{if(!i){var a=1/0;for(d=0;d<e.length;d++){i=e[d][0],n=e[d][1],s=e[d][2];for(var l=!0,o=0;o<i.length;o++)(!1&s||a>=s)&&Object.keys(r.O).every((t=>r.O[t](i[o])))?i.splice(o--,1):(l=!1,s<a&&(a=s));if(l){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[i,n,s]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.e=()=>Promise.resolve(),r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.j=6828,(()=>{r.b=document.baseURI||self.location.href;var t={6828:0};r.O.j=e=>0===t[e];var e=(e,i)=>{var n,s,a=i[0],l=i[1],o=i[2],c=0;if(a.some((e=>0!==t[e]))){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(o)var d=o(r)}for(e&&e(i);c<a.length;c++)s=a[c],r.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return r.O(d)},i=self.webpackChunknextcloud=self.webpackChunknextcloud||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})(),r.nc=void 0;var s=r.O(void 0,[7874],(()=>r(73413)));s=r.O(s)})();
  3. //# sourceMappingURL=core-global-search.js.map?v=4a0126d698acad9a5fe2