1
0

core-unified-search.js 43 KB

123
  1. /*! For license information please see core-unified-search.js.LICENSE.txt */
  2. !function(){"use strict";var n,e={41415:function(n,e,r){var i=r(17499),a=r(22200),o=r(9944),s=r(20144),u=r(78595),c=r(79753),l=r(16453),d=r(4820);function A(n,e,t,r,i,a,o){try{var s=n[a](o),u=s.value}catch(n){return void t(n)}s.done?e(u):Promise.resolve(u).then(r,i)}function h(n){return function(){var e=this,t=arguments;return new Promise((function(r,i){var a=n.apply(e,t);function o(n){A(a,r,i,o,s,"next",n)}function s(n){A(a,r,i,o,s,"throw",n)}o(void 0)}))}}var p=(0,l.loadState)("unified-search","limit-default"),f=(0,l.loadState)("unified-search","min-search-length",1),g=(0,l.loadState)("unified-search","live-search",!0),m=/(^|\s)in:([a-z_-]+)/gi,C=/(^|\s)-in:([a-z_-]+)/gi;function v(){return _.apply(this,arguments)}function _(){return(_=h(regeneratorRuntime.mark((function n(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,d.default.get((0,c.generateOcsUrl)("search/providers"),{params:{from:window.location.pathname.replace("/index.php","")+window.location.search}});case 3:if(e=n.sent,!("ocs"in(t=e.data)&&"data"in t.ocs&&Array.isArray(t.ocs.data)&&t.ocs.data.length>0)){n.next=7;break}return n.abrupt("return",t.ocs.data);case 7:n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),console.error(n.t0);case 12:return n.abrupt("return",[]);case 13:case"end":return n.stop()}}),n,null,[[0,9]])})))).apply(this,arguments)}function b(n){var e=n.type,t=n.query,r=n.cursor,i=d.default.CancelToken.source(),a=function(){var n=h(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.default.get((0,c.generateOcsUrl)("search/providers/{type}/search",{type:e}),{cancelToken:i.token,params:{term:t,cursor:r,from:window.location.pathname.replace("/index.php","")+window.location.search}}));case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return{request:a,cancel:i.cancel}}var y=r(26932),x=r(45400),w=r.n(x),k=r(12945),S=r.n(k),D=r(20296),$=r.n(D),B=r(93455),I=r.n(B),q=r(72875),E=r.n(q),R=r(38530),O=r(67536),L=r(85354),U=r.n(L),M={name:"HeaderMenu",directives:{ClickOutside:O.directive},mixins:[U()],props:{id:{type:String,required:!0},ariaLabel:{type:String,default:""},open:{type:Boolean,default:!1}},data:function(){return{opened:this.open,clickOutsideConfig:{handler:this.closeMenu,middleware:this.clickOutsideMiddleware},shortcutsDisabled:OCP.Accessibility.disableKeyboardShortcuts()}},watch:{open:function(n){var e=this;this.opened=n,this.$nextTick((function(){e.opened?e.openMenu():e.closeMenu()}))}},mounted:function(){document.addEventListener("keydown",this.onKeyDown)},beforeDestroy:function(){document.removeEventListener("keydown",this.onKeyDown)},methods:{toggleMenu:function(){this.opened?this.closeMenu():this.openMenu()},closeMenu:function(){this.opened&&(this.opened=!1,this.$emit("close"),this.$emit("update:open",!1))},openMenu:function(){this.opened||(this.opened=!0,this.$emit("open"),this.$emit("update:open",!0))},onKeyDown:function(n){this.shortcutsDisabled||"Escape"===n.key&&this.opened&&(n.preventDefault(),this.$emit("cancel"),this.opened=!1,this.$emit("update:open",!1))},handleFocusOut:function(n){n.currentTarget.contains(n.relatedTarget)||this.closeMenu()}}},P=r(93379),F=r.n(P),z=r(7795),j=r.n(z),N=r(90569),T=r.n(N),Z=r(3565),G=r.n(Z),W=r(19216),Y=r.n(W),H=r(44589),Q=r.n(H),K=r(11390),V={};V.styleTagTransform=Q(),V.setAttributes=G(),V.insert=T().bind(null,"head"),V.domAPI=j(),V.insertStyleElement=Y(),F()(K.Z,V),K.Z&&K.Z.locals&&K.Z.locals;var X=r(51900),J=(0,X.Z)(M,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:n.clickOutsideConfig,expression:"clickOutsideConfig"}],staticClass:"header-menu",class:{"header-menu--opened":n.opened},attrs:{id:n.id}},[t("a",{staticClass:"header-menu__trigger",attrs:{href:"#","aria-label":n.ariaLabel,"aria-controls":"header-menu-"+n.id,"aria-expanded":n.opened.toString()},on:{click:function(e){return e.preventDefault(),n.toggleMenu.apply(null,arguments)}}},[n._t("trigger")],2),n._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.opened,expression:"opened"}],staticClass:"header-menu__carret"}),n._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.opened,expression:"opened"}],staticClass:"header-menu__wrapper",attrs:{id:"header-menu-"+n.id,role:"menu"},on:{focusout:n.handleFocusOut}},[t("div",{staticClass:"header-menu__content"},[n._t("default")],2)])])}),[],!1,null,"79c00176",null),nn=J.exports,en={name:"SearchResult",components:{NcHighlight:E()},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:function(){return{hasValidThumbnail:this.thumbnailUrl&&""!==this.thumbnailUrl.trim(),loaded:!1}},computed:{isIconUrl:function(){if(this.icon.startsWith("/"))return!0;try{new URL(this.icon)}catch(n){return!1}return!0}},watch:{thumbnailUrl:function(){this.hasValidThumbnail=this.thumbnailUrl&&""!==this.thumbnailUrl.trim(),this.loaded=!1}},methods:{reEmitEvent:function(n){this.$emit(n.type,n)},onError:function(){this.hasValidThumbnail=!1},onLoad:function(){this.loaded=!0}}},tn=r(17543),rn={};rn.styleTagTransform=Q(),rn.setAttributes=G(),rn.insert=T().bind(null,"head"),rn.domAPI=j(),rn.insertStyleElement=Y(),F()(tn.Z,rn),tn.Z&&tn.Z.locals&&tn.Z.locals;var an=(0,X.Z)(en,(function(){var n,e=this,t=e.$createElement,r=e._self._c||t;return r("a",{staticClass:"unified-search__result",class:{"unified-search__result--focused":e.focused},attrs:{href:e.resourceUrl||"#"},on:{click:e.reEmitEvent,focus:e.reEmitEvent}},[r("div",{staticClass:"unified-search__result-icon",class:(n={"unified-search__result-icon--rounded":e.rounded,"unified-search__result-icon--no-preview":!e.hasValidThumbnail&&!e.loaded,"unified-search__result-icon--with-thumbnail":e.hasValidThumbnail&&e.loaded},n[e.icon]=!e.loaded&&!e.isIconUrl,n),style:{backgroundImage:e.isIconUrl?"url("+e.icon+")":""}},[e.hasValidThumbnail?r("img",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],attrs:{src:e.thumbnailUrl,alt:""},on:{error:e.onError,load:e.onLoad}}):e._e()]),e._v(" "),r("span",{staticClass:"unified-search__result-content"},[r("span",{staticClass:"unified-search__result-line-one",attrs:{title:e.title}},[r("NcHighlight",{attrs:{text:e.title,search:e.query}})],1),e._v(" "),e.subline?r("span",{staticClass:"unified-search__result-line-two",attrs:{title:e.subline}},[e._v(e._s(e.subline))]):e._e()])])}),[],!1,null,"288e1e92",null).exports,on={name:"SearchResultPlaceholders",data:function(){return{light:null,dark:null}},mounted:function(){var n=getComputedStyle(document.documentElement);this.dark=n.getPropertyValue("--color-placeholder-dark"),this.light=n.getPropertyValue("--color-placeholder-light")},methods:{randWidth:function(){return Math.floor(20*Math.random())+30}}},sn=r(44201),un={};un.styleTagTransform=Q(),un.setAttributes=G(),un.insert=T().bind(null,"head"),un.domAPI=j(),un.insertStyleElement=Y(),F()(sn.Z,un),sn.Z&&sn.Z.locals&&sn.Z.locals;var cn=(0,X.Z)(on,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("ul",[t("svg",{staticClass:"unified-search__result-placeholder-gradient"},[t("defs",[t("linearGradient",{attrs:{id:"unified-search__result-placeholder-gradient"}},[t("stop",{attrs:{offset:"0%","stop-color":n.light}},[t("animate",{attrs:{attributeName:"stop-color",values:n.light+"; "+n.light+"; "+n.dark+"; "+n.dark+"; "+n.light,dur:"2s",repeatCount:"indefinite"}})]),n._v(" "),t("stop",{attrs:{offset:"100%","stop-color":n.dark}},[t("animate",{attrs:{attributeName:"stop-color",values:n.dark+"; "+n.light+"; "+n.light+"; "+n.dark+"; "+n.dark,dur:"2s",repeatCount:"indefinite"}})])],1)],1)]),n._v(" "),n._l([1,2,3],(function(e){return t("li",{key:e},[t("svg",{staticClass:"unified-search__result-placeholder",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"url(#unified-search__result-placeholder-gradient)"}},[t("rect",{staticClass:"unified-search__result-placeholder-icon"}),n._v(" "),t("rect",{staticClass:"unified-search__result-placeholder-line-one"}),n._v(" "),t("rect",{staticClass:"unified-search__result-placeholder-line-two",style:{width:"calc("+n.randWidth()+"%)"}})])])}))],2)}),[],!1,null,"9ed03c40",null).exports;function ln(n){return function(n){if(Array.isArray(n))return hn(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||An(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=An(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return o=n.done,n},e:function(n){s=!0,a=n},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw a}}}}function An(n,e){if(n){if("string"==typeof n)return hn(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?hn(n,e):void 0}}function hn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function pn(n,e,t,r,i,a,o){try{var s=n[a](o),u=s.value}catch(n){return void t(n)}s.done?e(u):Promise.resolve(u).then(r,i)}function fn(n){return function(){var e=this,t=arguments;return new Promise((function(r,i){var a=n.apply(e,t);function o(n){pn(a,r,i,o,s,"next",n)}function s(n){pn(a,r,i,o,s,"throw",n)}o(void 0)}))}}var gn={name:"UnifiedSearch",components:{NcActionButton:w(),NcActions:S(),NcEmptyContent:I(),HeaderMenu:nn,NcHighlight:E(),Magnify:R.Z,SearchResult:an,SearchResultPlaceholders:cn},data:function(){return{types:[],cursors:{},limits:{},loading:{},reached:{},requests:[],results:{},query:"",focused:null,triggered:!1,defaultLimit:p,minSearchLength:f,enableLiveSearch:g,open:!1}},computed:{typesIDs:function(){return this.types.map((function(n){return n.id}))},typesNames:function(){return this.types.map((function(n){return n.name}))},typesMap:function(){return this.types.reduce((function(n,e){return n[e.id]=e.name,n}),{})},ariaLabel:function(){return t("core","Search")},hasResults:function(){return 0!==Object.keys(this.results).length},orderedResults:function(){var n=this;return this.typesIDs.filter((function(e){return e in n.results})).map((function(e){return{type:e,list:n.results[e]}}))},availableFilters:function(){return Object.keys(this.results)},usedFiltersIn:function(){for(var n,e=[];null!==(n=m.exec(this.query));)e.push(n[2]);return e},usedFiltersNot:function(){for(var n,e=[];null!==(n=C.exec(this.query));)e.push(n[2]);return e},isShortQuery:function(){return this.query&&this.query.trim().length<f},isValidQuery:function(){return this.query&&""!==this.query.trim()&&!this.isShortQuery},isDoneSearching:function(){return Object.values(this.reached).every((function(n){return!1===n}))},isLoading:function(){return Object.values(this.loading).some((function(n){return!0===n}))}},created:function(){var n=this;return fn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,u.Ld)("files:navigation:changed",n.resetForm),e.next=3,v();case 3:n.types=e.sent,n.logger.debug("Unified Search initialized with the following providers",n.types);case 5:case"end":return e.stop()}}),e)})))()},beforeDestroy:function(){(0,u.r1)("files:navigation:changed",this.resetForm)},mounted:function(){var n=this;OCP.Accessibility.disableKeyboardShortcuts()||document.addEventListener("keydown",(function(e){e.ctrlKey&&"f"===e.key&&!n.open&&(e.preventDefault(),n.open=!0,n.focusInput()),n.open&&("ArrowDown"===e.key&&n.focusNext(e),"ArrowUp"===e.key&&n.focusPrev(e))}))},methods:{onOpen:function(){var n=this;return fn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.focusInput(),e.next=3,v();case 3:n.types=e.sent;case 4:case"end":return e.stop()}}),e)})))()},onClose:function(){(0,u.j8)("nextcloud:unified-search.close")},resetForm:function(){this.$el.querySelector('form[role="search"]').reset()},onReset:function(){(0,u.j8)("nextcloud:unified-search.reset"),this.logger.debug("Search reset"),this.query="",this.resetState(),this.focusInput()},resetState:function(){var n=this;return fn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.cursors={},n.limits={},n.reached={},n.results={},n.focused=null,n.triggered=!1,e.next=8,n.cancelPendingRequests();case 8:case"end":return e.stop()}}),e)})))()},cancelPendingRequests:function(){var n=this;return fn(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.requests.slice(0),n.requests=[],e.next=4,Promise.all(t.map((function(n){return n()})));case 4:case"end":return e.stop()}}),e)})))()},focusInput:function(){var n=this;this.$nextTick((function(){n.$refs.input.focus(),n.$refs.input.select()}))},onInputEnter:function(){this.hasResults?this.getResultsList()[0].click():this.onInput()},onInput:function(){var n=this;return fn(regeneratorRuntime.mark((function e(){var t,r,i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,u.j8)("nextcloud:unified-search.search",{query:n.query}),""!==n.query.trim()&&!n.isShortQuery){e.next=5;break}t=dn(n.typesIDs);try{for(t.s();!(r=t.n()).done;)i=r.value,n.$delete(n.results,i)}catch(n){t.e(n)}finally{t.f()}return e.abrupt("return");case 5:return a=n.typesIDs,o=n.query,n.usedFiltersNot.length>0&&(a=n.typesIDs.filter((function(e){return-1===n.usedFiltersNot.indexOf(e)}))),n.usedFiltersIn.length>0&&(a=n.typesIDs.filter((function(e){return n.usedFiltersIn.indexOf(e)>-1}))),o=o.replace(m,"").replace(C,""),e.next=12,n.resetState();case 12:if(n.triggered=!0,a.length){e.next=16;break}return n.logger.error("No types to search in"),e.abrupt("return");case 16:n.$set(n.loading,"all",!0),n.logger.debug("Searching ".concat(o," in"),a),Promise.all(a.map(function(){var e=fn(regeneratorRuntime.mark((function e(t){var r,i,a,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=b({type:t,query:o}),i=r.request,a=r.cancel,n.requests.push(a),e.next=5,i();case 5:return s=e.sent,(u=s.data).ocs.data.entries.length>0?n.$set(n.results,t,u.ocs.data.entries):n.$delete(n.results,t),u.ocs.data.cursor?n.$set(n.cursors,t,u.ocs.data.cursor):u.ocs.data.isPaginated||n.$set(n.limits,t,n.defaultLimit),u.ocs.data.entries.length<n.defaultLimit&&n.$set(n.reached,t,!0),null===n.focused&&(n.focused=0),e.abrupt("return",1);case 14:if(e.prev=14,e.t0=e.catch(0),n.$delete(n.results,t),!e.t0.response||!e.t0.response.status){e.next=21;break}return n.logger.error("Error searching for ".concat(n.typesMap[t]),e.t0),(0,y.x2)(n.t("core","An error occurred while searching for {type}",{type:n.typesMap[t]})),e.abrupt("return",0);case 21:return e.abrupt("return",2);case 22:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(n){return e.apply(this,arguments)}}())).then((function(e){e.some((function(n){return 2===n}))||(n.loading={})}));case 19:case"end":return e.stop()}}),e)})))()},onInputDebounced:g?$()((function(n){this.onInput(n)}),500):function(){this.triggered=!1},loadMore:function(n){var e=this;return fn(regeneratorRuntime.mark((function t(){var r,i,a,o,s,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.loading[n]){t.next=2;break}return t.abrupt("return");case 2:if(!e.cursors[n]){t.next=14;break}return r=b({type:n,query:e.query,cursor:e.cursors[n]}),i=r.request,a=r.cancel,e.requests.push(a),t.next=7,i();case 7:o=t.sent,(s=o.data).ocs.data.cursor&&e.$set(e.cursors,n,s.ocs.data.cursor),s.ocs.data.entries.length>0&&(u=e.results[n]).push.apply(u,ln(s.ocs.data.entries)),s.ocs.data.entries.length<e.defaultLimit&&e.$set(e.reached,n,!0),t.next=15;break;case 14:e.limits[n]&&e.limits[n]>=0&&(e.limits[n]+=e.defaultLimit,e.limits[n]>=e.results[n].length&&e.$set(e.reached,n,!0));case 15:null!==e.focused&&e.$nextTick((function(){e.focusIndex(e.focused)}));case 16:case"end":return t.stop()}}),t)})))()},limitIfAny:function(n,e){return e in this.limits?n.slice(0,this.limits[e]):n},getResultsList:function(){return this.$el.querySelectorAll(".unified-search__results .unified-search__result")},focusFirst:function(n){var e=this.getResultsList();e&&e.length>0&&(n&&n.preventDefault(),this.focused=0,this.focusIndex(this.focused))},focusNext:function(n){if(null!==this.focused){var e=this.getResultsList();e&&e.length>0&&this.focused+1<e.length&&(n.preventDefault(),this.focused++,this.focusIndex(this.focused))}else this.focusFirst(n)},focusPrev:function(n){if(null!==this.focused){var e=this.getResultsList();e&&e.length>0&&this.focused>0&&(n.preventDefault(),this.focused--,this.focusIndex(this.focused))}else this.focusFirst(n)},focusIndex:function(n){var e=this.getResultsList();e&&e[n]&&e[n].focus()},setFocusedIndex:function(n){var e=n.target,t=ln(this.getResultsList()).findIndex((function(n){return n===e}));t>-1&&(this.focused=t)},onClickFilter:function(n){this.query="".concat(this.query," ").concat(n).replace(/ {2}/g," ").trim(),this.onInput()}}},mn=gn,Cn=r(49936),vn={};vn.styleTagTransform=Q(),vn.setAttributes=G(),vn.insert=T().bind(null,"head"),vn.domAPI=j(),vn.insertStyleElement=Y(),F()(Cn.Z,vn),Cn.Z&&Cn.Z.locals&&Cn.Z.locals;var _n=(0,X.Z)(mn,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("HeaderMenu",{staticClass:"unified-search",attrs:{id:"unified-search","exclude-click-outside-classes":"popover",open:n.open,"aria-label":n.ariaLabel},on:{"update:open":function(e){n.open=e},open:n.onOpen,close:n.onClose},scopedSlots:n._u([{key:"trigger",fn:function(){return[t("Magnify",{staticClass:"unified-search__trigger",attrs:{size:22,"fill-color":"var(--color-primary-text)"}})]},proxy:!0}])},[n._v(" "),t("div",{staticClass:"unified-search__input-wrapper"},[t("label",{attrs:{for:"unified-search__input"}},[n._v(n._s(n.ariaLabel))]),n._v(" "),t("div",{staticClass:"unified-search__input-row"},[t("form",{staticClass:"unified-search__form",class:{"icon-loading-small":n.isLoading},attrs:{role:"search"},on:{submit:function(e){return e.preventDefault(),e.stopPropagation(),n.onInputEnter.apply(null,arguments)},reset:function(e){return e.preventDefault(),e.stopPropagation(),n.onReset.apply(null,arguments)}}},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.query,expression:"query"}],ref:"input",staticClass:"unified-search__form-input",class:{"unified-search__form-input--with-reset":!!n.query},attrs:{id:"unified-search__input",type:"search",placeholder:n.t("core","Search {types} …",{types:n.typesNames.join(", ")}),"aria-describedby":"unified-search-desc"},domProps:{value:n.query},on:{input:[function(e){e.target.composing||(n.query=e.target.value)},n.onInputDebounced],keypress:function(e){return!e.type.indexOf("key")&&n._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.stopPropagation(),n.onInputEnter.apply(null,arguments))}}}),n._v(" "),t("p",{staticClass:"hidden-visually",attrs:{id:"unified-search-desc"}},[n._v("\n\t\t\t\t\t"+n._s(n.t("core","Search starts once you start typing and results may be reached with the arrow keys"))+"\n\t\t\t\t")]),n._v(" "),n.query&&!n.isLoading?t("input",{staticClass:"unified-search__form-reset icon-close",attrs:{type:"reset","aria-label":n.t("core","Reset search"),value:""}}):n._e(),n._v(" "),!n.query||n.isLoading||n.enableLiveSearch?n._e():t("input",{staticClass:"unified-search__form-submit icon-confirm",attrs:{type:"submit","aria-label":n.t("core","Start search"),value:""}})]),n._v(" "),n.availableFilters.length>1?t("NcActions",{staticClass:"unified-search__filters",attrs:{placement:"bottom",container:".unified-search__input-wrapper"}},n._l(n.availableFilters,(function(e){return t("NcActionButton",{key:e,attrs:{icon:"icon-filter",title:n.t("core","Search for {name} only",{name:n.typesMap[e]})},on:{click:function(t){return t.stopPropagation(),n.onClickFilter("in:"+e)}}},[n._v("\n\t\t\t\t\t"+n._s("in:"+e)+"\n\t\t\t\t")])})),1):n._e()],1)]),n._v(" "),n.hasResults?n._l(n.orderedResults,(function(e,r){var i=e.list,a=e.type;return t("ul",{key:a,staticClass:"unified-search__results",class:"unified-search__results-"+a,attrs:{"aria-label":n.typesMap[a]}},[t("h2",{staticClass:"unified-search__results-header"},[n._v("\n\t\t\t\t"+n._s(n.typesMap[a])+"\n\t\t\t")]),n._v(" "),n._l(n.limitIfAny(i,a),(function(e,i){return t("li",{key:e.resourceUrl},[t("SearchResult",n._b({attrs:{query:n.query,focused:0===n.focused&&0===r&&0===i},on:{focus:n.setFocusedIndex}},"SearchResult",e,!1))],1)})),n._v(" "),t("li",[n.reached[a]?n._e():t("SearchResult",{staticClass:"unified-search__result-more",attrs:{title:n.loading[a]?n.t("core","Loading more results …"):n.t("core","Load more results"),"icon-class":n.loading[a]?"icon-loading-small":""},on:{click:function(e){return e.stopPropagation(),n.loadMore(a)},focus:n.setFocusedIndex}})],1)],2)})):[n.isLoading?t("SearchResultPlaceholders"):n.isValidQuery?t("NcEmptyContent",{scopedSlots:n._u([{key:"icon",fn:function(){return[t("Magnify")]},proxy:!0}],null,!1,931131664)},[n.triggered?t("NcHighlight",{attrs:{text:n.t("core","No results for {query}",{query:n.query}),search:n.query}}):t("div",[n._v("\n\t\t\t\t"+n._s(n.t("core","Press enter to start searching"))+"\n\t\t\t")])],1):!n.isLoading||n.isShortQuery?t("NcEmptyContent",{scopedSlots:n._u([{key:"icon",fn:function(){return[t("Magnify")]},proxy:!0},n.isShortQuery?{key:"desc",fn:function(){return[n._v("\n\t\t\t\t"+n._s(n.n("core","Please enter {minSearchLength} character or more to search","Please enter {minSearchLength} characters or more to search",n.minSearchLength,{minSearchLength:n.minSearchLength}))+"\n\t\t\t")]},proxy:!0}:null],null,!0)},[n._v("\n\t\t\t"+n._s(n.t("core","Start typing to search"))+"\n\t\t\t")]):n._e()]],2)}),[],!1,null,"3d447e9e",null),bn=_n.exports;r.nc=btoa((0,a.getRequestToken)());var yn=(0,i.IY)().setApp("unified-search").detectUser().build();s.ZP.mixin({data:function(){return{logger:yn}},methods:{t:o.translate,n:o.translatePlural}}),new s.ZP({el:"#unified-search",name:"UnifiedSearchRoot",render:function(n){return n(bn)}})},11390:function(n,e,t){var r=t(87537),i=t.n(r),a=t(23645),o=t.n(a)()(i());o.push([n.id,'.header-menu__trigger[data-v-79c00176]{display:flex;align-items:center;justify-content:center;width:50px;height:44px;margin:2px 0;padding:0;cursor:pointer;opacity:.85}.header-menu--opened .header-menu__trigger[data-v-79c00176],.header-menu__trigger[data-v-79c00176]:hover,.header-menu__trigger[data-v-79c00176]:focus,.header-menu__trigger[data-v-79c00176]:active{opacity:1}.header-menu__trigger[data-v-79c00176]:focus-visible{outline:none}.header-menu__wrapper[data-v-79c00176]{position:fixed;z-index:2000;top:50px;right:0;box-sizing:border-box;margin:0 8px;border-radius:0 0 var(--border-radius) var(--border-radius);background-color:var(--color-main-background);filter:drop-shadow(0 1px 5px var(--color-box-shadow));padding:8px;border-radius:var(--border-radius-large)}.header-menu__carret[data-v-79c00176]{position:absolute;z-index:2001;left:calc(50% - 10px);bottom:0;width:0;height:0;content:" ";pointer-events:none;border:10px solid rgba(0,0,0,0);border-bottom-color:var(--color-main-background)}.header-menu__content[data-v-79c00176]{overflow:auto;width:350px;max-width:calc(100vw - 16px);min-height:66px;max-height:calc(100vh - 100px)}',"",{version:3,sources:["webpack://./core/src/components/HeaderMenu.vue"],names:[],mappings:"AAkLC,uCACC,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,YAAA,CACA,SAAA,CACA,cAAA,CACA,WAAA,CAGD,oMAIC,SAAA,CAGD,qDACC,YAAA,CAGD,uCACC,cAAA,CACA,YAAA,CACA,QAAA,CACA,OAAA,CACA,qBAAA,CACA,YAAA,CACA,2DAAA,CACA,6CAAA,CACA,qDAAA,CACA,WAAA,CACA,wCAAA,CAGD,sCACC,iBAAA,CACA,YAAA,CACA,qBAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,WAAA,CACA,mBAAA,CACA,+BAAA,CACA,gDAAA,CAGD,uCACC,aAAA,CACA,WAAA,CACA,4BAAA,CACA,eAAA,CACA,8BAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$externalMargin: 8px;\n\n.header-menu {\n\t&__trigger {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 50px;\n\t\theight: 44px;\n\t\tmargin: 2px 0;\n\t\tpadding: 0;\n\t\tcursor: pointer;\n\t\topacity: .85;\n\t}\n\n\t&--opened &__trigger,\n\t&__trigger:hover,\n\t&__trigger:focus,\n\t&__trigger:active {\n\t\topacity: 1;\n\t}\n\n\t&__trigger:focus-visible {\n\t\toutline: none;\n\t}\n\n\t&__wrapper {\n\t\tposition: fixed;\n\t\tz-index: 2000;\n\t\ttop: 50px;\n\t\tright: 0;\n\t\tbox-sizing: border-box;\n\t\tmargin: 0 $externalMargin;\n\t\tborder-radius: 0 0 var(--border-radius) var(--border-radius);\n\t\tbackground-color: var(--color-main-background);\n\t\tfilter: drop-shadow(0 1px 5px var(--color-box-shadow));\n\t\tpadding: 8px;\n\t\tborder-radius: var(--border-radius-large);\n\t}\n\n\t&__carret {\n\t\tposition: absolute;\n\t\tz-index: 2001; // Because __wrapper is 2000.\n\t\tleft: calc(50% - 10px);\n\t\tbottom: 0;\n\t\twidth: 0;\n\t\theight: 0;\n\t\tcontent: ' ';\n\t\tpointer-events: none;\n\t\tborder: 10px solid transparent;\n\t\tborder-bottom-color: var(--color-main-background);\n\t}\n\n\t&__content {\n\t\toverflow: auto;\n\t\twidth: 350px;\n\t\tmax-width: calc(100vw - 2 * $externalMargin);\n\t\tmin-height: calc(44px * 1.5);\n\t\tmax-height: calc(100vh - 50px * 2);\n\t}\n}\n\n"],sourceRoot:""}]),e.Z=o},17543:function(n,e,t){var r=t(87537),i=t.n(r),a=t(23645),o=t.n(a)()(i());o.push([n.id,".unified-search__result[data-v-288e1e92]{display:flex;align-items:center;height:44px;padding:10px;border-bottom:1px solid var(--color-border);border-radius:var(--border-radius-large) !important}.unified-search__result[data-v-288e1e92]:last-child{border-bottom:none}.unified-search__result--focused[data-v-288e1e92],.unified-search__result[data-v-288e1e92]:active,.unified-search__result[data-v-288e1e92]:hover,.unified-search__result[data-v-288e1e92]:focus{background-color:var(--color-background-hover)}.unified-search__result *[data-v-288e1e92]{cursor:pointer}.unified-search__result-icon[data-v-288e1e92]{overflow:hidden;width:44px;height:44px;border-radius:var(--border-radius);background-repeat:no-repeat;background-position:center center;background-size:32px}.unified-search__result-icon--rounded[data-v-288e1e92]{border-radius:22px}.unified-search__result-icon--no-preview[data-v-288e1e92]{background-size:32px}.unified-search__result-icon--with-thumbnail[data-v-288e1e92]{background-size:cover}.unified-search__result-icon--with-thumbnail[data-v-288e1e92]:not(.unified-search__result-icon--rounded){max-width:42px;max-height:42px;border:1px solid var(--color-border)}.unified-search__result-icon img[data-v-288e1e92]{width:100%;height:100%;object-fit:cover;object-position:center}.unified-search__result-icon[data-v-288e1e92],.unified-search__result-actions[data-v-288e1e92]{flex:0 0 44px}.unified-search__result-content[data-v-288e1e92]{display:flex;align-items:center;flex:1 1 100%;flex-wrap:wrap;min-width:0;padding-left:10px}.unified-search__result-line-one[data-v-288e1e92],.unified-search__result-line-two[data-v-288e1e92]{overflow:hidden;flex:1 1 100%;margin:1px 0;white-space:nowrap;text-overflow:ellipsis;color:inherit;font-size:inherit}.unified-search__result-line-two[data-v-288e1e92]{opacity:.7;font-size:var(--default-font-size)}","",{version:3,sources:["webpack://./core/src/components/UnifiedSearch/SearchResult.vue"],names:[],mappings:"AAyKA,yCACC,YAAA,CACA,kBAAA,CACA,WANgB,CAOhB,YANQ,CAOR,2CAAA,CACA,mDAAA,CAGA,oDACC,kBAAA,CAGD,gMAIC,8CAAA,CAGD,2CACC,cAAA,CAGD,8CACC,eAAA,CACA,UA7Be,CA8Bf,WA9Be,CA+Bf,kCAAA,CACA,2BAAA,CACA,iCAAA,CACA,oBAAA,CACA,uDACC,kBAAA,CAED,0DACC,oBAAA,CAED,8DACC,qBAAA,CAED,yGAEC,cAAA,CACA,eAAA,CACA,oCAAA,CAGD,kDAEC,UAAA,CACA,WAAA,CAEA,gBAAA,CACA,sBAAA,CAIF,+FAEC,aAAA,CAGD,iDACC,YAAA,CACA,kBAAA,CACA,aAAA,CACA,cAAA,CAEA,WAAA,CACA,iBAxEO,CA2ER,oGAEC,eAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAEA,aAAA,CACA,iBAAA,CAED,kDACC,UAAA,CACA,kCAAA",sourcesContent:['\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n@use "sass:math";\n\n$clickable-area: 44px;\n$margin: 10px;\n\n.unified-search__result {\n\tdisplay: flex;\n\talign-items: center;\n\theight: $clickable-area;\n\tpadding: $margin;\n\tborder-bottom: 1px solid var(--color-border);\n\tborder-radius: var(--border-radius-large) !important;\n\n\t// Load more entry,\n\t&:last-child {\n\t\tborder-bottom: none;\n\t}\n\n\t&--focused,\n\t&:active,\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: var(--color-background-hover);\n\t}\n\n\t* {\n\t\tcursor: pointer;\n\t}\n\n\t&-icon {\n\t\toverflow: hidden;\n\t\twidth: $clickable-area;\n\t\theight: $clickable-area;\n\t\tborder-radius: var(--border-radius);\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center center;\n\t\tbackground-size: 32px;\n\t\t&--rounded {\n\t\t\tborder-radius: math.div($clickable-area, 2);\n\t\t}\n\t\t&--no-preview {\n\t\t\tbackground-size: 32px;\n\t\t}\n\t\t&--with-thumbnail {\n\t\t\tbackground-size: cover;\n\t\t}\n\t\t&--with-thumbnail:not(&--rounded) {\n\t\t\t// compensate for border\n\t\t\tmax-width: $clickable-area - 2px;\n\t\t\tmax-height: $clickable-area - 2px;\n\t\t\tborder: 1px solid var(--color-border);\n\t\t}\n\n\t\timg {\n\t\t\t// Make sure to keep ratio\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\n\t\t\tobject-fit: cover;\n\t\t\tobject-position: center;\n\t\t}\n\t}\n\n\t&-icon,\n\t&-actions {\n\t\tflex: 0 0 $clickable-area;\n\t}\n\n\t&-content {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex: 1 1 100%;\n\t\tflex-wrap: wrap;\n\t\t// Set to minimum and gro from it\n\t\tmin-width: 0;\n\t\tpadding-left: $margin;\n\t}\n\n\t&-line-one,\n\t&-line-two {\n\t\toverflow: hidden;\n\t\tflex: 1 1 100%;\n\t\tmargin: 1px 0;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\t// Use the same color as the `a`\n\t\tcolor: inherit;\n\t\tfont-size: inherit;\n\t}\n\t&-line-two {\n\t\topacity: .7;\n\t\tfont-size: var(--default-font-size);\n\t}\n}\n\n'],sourceRoot:""}]),e.Z=o},44201:function(n,e,t){var r=t(87537),i=t.n(r),a=t(23645),o=t.n(a)()(i());o.push([n.id,".unified-search__result-placeholder-gradient[data-v-9ed03c40]{position:fixed;height:0;width:0;z-index:-1}.unified-search__result-placeholder[data-v-9ed03c40]{width:calc(100% - 2 * 10px);height:44px;margin:10px}.unified-search__result-placeholder-icon[data-v-9ed03c40]{width:44px;height:44px;rx:var(--border-radius);ry:var(--border-radius)}.unified-search__result-placeholder-line-one[data-v-9ed03c40],.unified-search__result-placeholder-line-two[data-v-9ed03c40]{width:calc(100% - 54px);height:1em;x:54px}.unified-search__result-placeholder-line-one[data-v-9ed03c40]{y:5px}.unified-search__result-placeholder-line-two[data-v-9ed03c40]{y:25px}","",{version:3,sources:["webpack://./core/src/components/UnifiedSearch/SearchResultPlaceholders.vue"],names:[],mappings:"AA+DA,8DACC,cAAA,CACA,QAAA,CACA,OAAA,CACA,UAAA,CAGD,qDACC,2BAAA,CACA,WAZgB,CAahB,WAZQ,CAcR,0DACC,UAhBe,CAiBf,WAjBe,CAkBf,uBAAA,CACA,uBAAA,CAGD,4HAEC,uBAAA,CACA,UAAA,CACA,MAAA,CAGD,8DACC,KAAA,CAGD,8DACC,MAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$clickable-area: 44px;\n$margin: 10px;\n\n.unified-search__result-placeholder-gradient {\n\tposition: fixed;\n\theight: 0;\n\twidth: 0;\n\tz-index: -1;\n}\n\n.unified-search__result-placeholder {\n\twidth: calc(100% - 2 * #{$margin});\n\theight: $clickable-area;\n\tmargin: $margin;\n\n\t&-icon {\n\t\twidth: $clickable-area;\n\t\theight: $clickable-area;\n\t\trx: var(--border-radius);\n\t\try: var(--border-radius);\n\t}\n\n\t&-line-one,\n\t&-line-two {\n\t\twidth: calc(100% - #{$margin + $clickable-area});\n\t\theight: 1em;\n\t\tx: $margin + $clickable-area;\n\t}\n\n\t&-line-one {\n\t\ty: 5px;\n\t}\n\n\t&-line-two {\n\t\ty: 25px;\n\t}\n}\n\n"],sourceRoot:""}]),e.Z=o},49936:function(n,e,t){var r=t(87537),i=t.n(r),a=t(23645),o=t.n(a)()(i());o.push([n.id,".unified-search__trigger[data-v-3d447e9e]{filter:var(--background-image-invert-if-bright)}.unified-search__input-wrapper[data-v-3d447e9e]{position:sticky;z-index:2;top:0;display:inline-flex;flex-direction:column;align-items:center;width:100%;background-color:var(--color-main-background)}.unified-search__input-wrapper label[for=unified-search__input][data-v-3d447e9e]{align-self:flex-start;font-weight:bold;font-size:19px;margin-left:13px}.unified-search__form-input[data-v-3d447e9e]{margin:0 !important}.unified-search__input-row[data-v-3d447e9e]{display:flex;width:100%;align-items:center}.unified-search__filters[data-v-3d447e9e]{margin:10px 0 10px 5px}.unified-search__filters ul[data-v-3d447e9e]{display:inline-flex;justify-content:space-between}.unified-search__form[data-v-3d447e9e]{position:relative;width:100%;margin:10px 0}.unified-search__form[data-v-3d447e9e]::after{right:6px;left:auto}.unified-search__form-input[data-v-3d447e9e],.unified-search__form-reset[data-v-3d447e9e]{margin:3px}.unified-search__form-input[data-v-3d447e9e]{width:100%;height:34px;padding:6px}.unified-search__form-input[data-v-3d447e9e],.unified-search__form-input[placeholder][data-v-3d447e9e],.unified-search__form-input[data-v-3d447e9e]::placeholder{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.unified-search__form-input[data-v-3d447e9e]::-webkit-search-decoration,.unified-search__form-input[data-v-3d447e9e]::-webkit-search-cancel-button,.unified-search__form-input[data-v-3d447e9e]::-webkit-search-results-button,.unified-search__form-input[data-v-3d447e9e]::-webkit-search-results-decoration{-webkit-appearance:none}.icon-loading-small .unified-search__form-input[data-v-3d447e9e],.unified-search__form-input--with-reset[data-v-3d447e9e]{padding-right:34px}.unified-search__form-reset[data-v-3d447e9e],.unified-search__form-submit[data-v-3d447e9e]{position:absolute;top:0;right:4px;width:28px;height:28px;min-height:30px;padding:0;opacity:.5;border:none;background-color:rgba(0,0,0,0);margin-right:0}.unified-search__form-reset[data-v-3d447e9e]:hover,.unified-search__form-reset[data-v-3d447e9e]:focus,.unified-search__form-reset[data-v-3d447e9e]:active,.unified-search__form-submit[data-v-3d447e9e]:hover,.unified-search__form-submit[data-v-3d447e9e]:focus,.unified-search__form-submit[data-v-3d447e9e]:active{opacity:1}.unified-search__form-submit[data-v-3d447e9e]{right:28px}.unified-search__results[data-v-3d447e9e]{display:flex;flex-direction:column;gap:4px}.unified-search__results-header[data-v-3d447e9e]{display:block;margin:10px;margin-bottom:6px;margin-left:13px;color:var(--color-primary-element);font-size:19px;font-weight:bold}.unified-search .unified-search__result-more[data-v-3d447e9e]{color:var(--color-text-maxcontrast)}.unified-search .empty-content[data-v-3d447e9e]{margin:10vh 0}.unified-search .empty-content[data-v-3d447e9e] .empty-content__title{font-weight:normal;font-size:var(--default-font-size);padding:0 15px;text-align:center}","",{version:3,sources:["webpack://./core/src/views/UnifiedSearch.vue"],names:[],mappings:"AAotBC,0CACC,+CAAA,CAGD,gDACC,eAAA,CAEA,SAAA,CACA,KAAA,CACA,mBAAA,CACA,qBAAA,CACA,kBAAA,CACA,UAAA,CACA,6CAAA,CAEA,iFACC,qBAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CAIF,6CACC,mBAAA,CAGD,4CACC,YAAA,CACA,UAAA,CACA,kBAAA,CAGD,0CACC,sBAAA,CACA,6CACC,mBAAA,CACA,6BAAA,CAIF,uCACC,iBAAA,CACA,UAAA,CACA,aAAA,CAGA,8CACC,SAnDa,CAoDb,SAAA,CAGD,0FAEC,UAAA,CAGD,6CACC,UAAA,CACA,WA/DY,CAgEZ,WA/Da,CAiEb,iKAGC,eAAA,CACA,kBAAA,CACA,sBAAA,CAID,+SAIC,uBAAA,CAID,0HAEC,kBArFW,CAyFb,2FACC,iBAAA,CACA,KAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,8BAAA,CACA,cAAA,CAEA,uTAGC,SAAA,CAIF,8CACC,UAAA,CAIF,0CAUC,YAAA,CACA,qBAAA,CACA,OAAA,CAXA,iDACC,aAAA,CACA,WAtHM,CAuHN,iBAAA,CACA,gBAAA,CACA,kCAAA,CACA,cAAA,CACA,gBAAA,CAOF,8DACC,mCAAA,CAGD,gDACC,aAAA,CAEA,uEACC,kBAAA,CACS,kCAAA,CACT,cAAA,CACA,iBAAA",sourcesContent:['\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n@use "sass:math";\n\n$margin: 10px;\n$input-height: 34px;\n$input-padding: 6px;\n\n.unified-search {\n\t&__trigger {\n\t\tfilter: var(--background-image-invert-if-bright);\n\t}\n\n\t&__input-wrapper {\n\t\tposition: sticky;\n\t\t// above search results\n\t\tz-index: 2;\n\t\ttop: 0;\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tbackground-color: var(--color-main-background);\n\n\t\tlabel[for="unified-search__input"] {\n\t\t\talign-self: flex-start;\n\t\t\tfont-weight: bold;\n\t\t\tfont-size: 19px;\n\t\t\tmargin-left: 13px;\n\t\t}\n\t}\n\n\t&__form-input {\n\t\tmargin: 0 !important;\n\t}\n\n\t&__input-row {\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\talign-items: center;\n\t}\n\n\t&__filters {\n\t\tmargin: $margin 0 $margin math.div($margin, 2);\n\t\tul {\n\t\t\tdisplay: inline-flex;\n\t\t\tjustify-content: space-between;\n\t\t}\n\t}\n\n\t&__form {\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\tmargin: $margin 0;\n\n\t\t// Loading spinner\n\t\t&::after {\n\t\t\tright: $input-padding;\n\t\t\tleft: auto;\n\t\t}\n\n\t\t&-input,\n\t\t&-reset {\n\t\t\tmargin: math.div($input-padding, 2);\n\t\t}\n\n\t\t&-input {\n\t\t\twidth: 100%;\n\t\t\theight: $input-height;\n\t\t\tpadding: $input-padding;\n\n\t\t\t&,\n\t\t\t&[placeholder],\n\t\t\t&::placeholder {\n\t\t\t\toverflow: hidden;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t}\n\n\t\t\t// Hide webkit clear search\n\t\t\t&::-webkit-search-decoration,\n\t\t\t&::-webkit-search-cancel-button,\n\t\t\t&::-webkit-search-results-button,\n\t\t\t&::-webkit-search-results-decoration {\n\t\t\t\t-webkit-appearance: none;\n\t\t\t}\n\n\t\t\t// Ellipsis earlier if reset button is here\n\t\t\t.icon-loading-small &,\n\t\t\t&--with-reset {\n\t\t\t\tpadding-right: $input-height;\n\t\t\t}\n\t\t}\n\n\t\t&-reset, &-submit {\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tright: 4px;\n\t\t\twidth: $input-height - $input-padding;\n\t\t\theight: $input-height - $input-padding;\n\t\t\tmin-height: 30px;\n\t\t\tpadding: 0;\n\t\t\topacity: .5;\n\t\t\tborder: none;\n\t\t\tbackground-color: transparent;\n\t\t\tmargin-right: 0;\n\n\t\t\t&:hover,\n\t\t\t&:focus,\n\t\t\t&:active {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&-submit {\n\t\t\tright: 28px;\n\t\t}\n\t}\n\n\t&__results {\n\t\t&-header {\n\t\t\tdisplay: block;\n\t\t\tmargin: $margin;\n\t\t\tmargin-bottom: $margin - 4px;\n\t\t\tmargin-left: 13px;\n\t\t\tcolor: var(--color-primary-element);\n\t\t\tfont-size: 19px;\n\t\t\tfont-weight: bold;\n\t\t}\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 4px;\n\t}\n\n\t.unified-search__result-more::v-deep {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\t.empty-content {\n\t\tmargin: 10vh 0;\n\n\t\t::v-deep .empty-content__title {\n\t\t\tfont-weight: normal;\n font-size: var(--default-font-size);\n\t\t\tpadding: 0 15px;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]),e.Z=o}},r={};function i(n){var t=r[n];if(void 0!==t)return t.exports;var a=r[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}i.m=e,i.amdD=function(){throw new Error("define cannot be used indirect")},i.amdO={},n=[],i.O=function(e,t,r,a){if(!t){var o=1/0;for(l=0;l<n.length;l++){t=n[l][0],r=n[l][1],a=n[l][2];for(var s=!0,u=0;u<t.length;u++)(!1&a||o>=a)&&Object.keys(i.O).every((function(n){return i.O[n](t[u])}))?t.splice(u--,1):(s=!1,a<o&&(o=a));if(s){n.splice(l--,1);var c=r();void 0!==c&&(e=c)}}return e}a=a||0;for(var l=n.length;l>0&&n[l-1][2]>a;l--)n[l]=n[l-1];n[l]=[t,r,a]},i.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(e,{a:e}),e},i.d=function(n,e){for(var t in e)i.o(e,t)&&!i.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),i.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},i.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n},i.j=9671,function(){i.b=document.baseURI||self.location.href;var n={9671:0};i.O.j=function(e){return 0===n[e]};var e=function(e,t){var r,a,o=t[0],s=t[1],u=t[2],c=0;if(o.some((function(e){return 0!==n[e]}))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(u)var l=u(i)}for(e&&e(t);c<o.length;c++)a=o[c],i.o(n,a)&&n[a]&&n[a][0](),n[a]=0;return i.O(l)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))}(),i.nc=void 0;var a=i.O(void 0,[7874],(function(){return i(41415)}));a=i.O(a)}();
  3. //# sourceMappingURL=core-unified-search.js.map?v=3b4dbb02a22ee6d2b3e8