PageSourceSearch

https://www.europasur.es/europasur/7700.h-4dc41c7d89da8652ffe5.js

js europasur.es collected 2026-10-02 02:24:17 UTC 6,900 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[7700],{3198:(function(L,I,l){var b="Expected a function",g=NaN,k="[object Symbol]",T=/^\s+|\s+$/g,R=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,j=/^0o[0-7]+$/i,C=parseInt,w=typeof l.g=="object"&&l.g&&l.g.Object===Object&&l.g,$=typeof self=="object"&&self&&self.Object===Object&&self,S=w||$||Function("return this")(),O=Object.prototype,f=O.toString,N=Math.max,H=Math.min,p=function(){return S.Date.now()};function A(s,a,c){var e,t,n,u,r,o,d=0,M=!1,v=!1,q=!0;if(typeof s!="function")throw new TypeError(b);a=x(a)||0,m(c)&&(M=!!c.leading,v="maxWait"in c,n=v?N(x(c.maxWait)||0,a):n,q="trailing"in c?!!c.trailing:q);function D(i){var h=e,y=t;return e=t=void 0,d=i,u=s.apply(y,h),u}function K(i){return d=i,r=setTimeout(_,a),M?D(i):u}function U(i){var h=i-o,y=i-d,W=a-h;return v?H(W,n-y):W}function Z(i){var h=i-o,y=i-d;return o===void 0||h>=a||h<0||v&&y>=n}function _(){var i=p();if(Z(i))return z(i);r=setTimeout(_,U(i))}function z(i){return r=void 0,q&&e?D(i):(e=t=void 0,u)}function V(){r!==void 0&&clearTimeout(r),d=0,e=o=t=r=void 0}function G(){return r===void 0?u:z(p())}function F(){var i=p(),h=Z(i);if(e=arguments,t=this,o=i,h){if(r===void 0)return K(o);if(v)return r=setTimeout(_,a),D(o)}return r===void 0&&(r=setTimeout(_,a)),u}return F.cancel=V,F.flush=G,F}function m(s){var a=typeof s;return!!s&&(a=="object"||a=="function")}function B(s){return!!s&&typeof s=="object"}function P(s){return typeof s=="symbol"||B(s)&&f.call(s)==k}function x(s){if(typeof s=="number")return s;if(P(s))return g;if(m(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=m(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=s.replace(T,"");var c=E.test(s);return c||j.test(s)?C(s.slice(2),c?2:8):R.test(s)?g:+s}L.exports=A}),7700:(function(L,I,l){"use strict";l.r(I),l.d(I,{default:function(){return c}});var b=function(){var t=this,n=t._self._c,u=t._self._setupProxy;return n("div",{staticClass:"author-search"},[n("nx-predictive-search",{attrs:{items:t.searchResults,searchBy:"name",placeholder:t.$t("search.author")},on:{input:t.searchText,select:t.goToAuthor}})],1)},g=[],k=l(3198),T=l.n(k),R=function(){var t=this,n=t._self._c,u=t._self._setupProxy;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideResults,expression:"hideResults"}],staticClass:"bbnx-predictive-search"},[n("nx-search-input",{attrs:{placeholder:t.placeholder},on:{keydown:t.onKeyDown,input:t.input},model:{value:t.query,callback:function(r){t.query=r},expression:"query"}}),t._v(" "),n("transition",{attrs:{name:"accordion"},on:{"before-enter":t.clearHeight,enter:t.updateHeight,"before-leave":t.updateHeight,leave:t.clearHeight}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showResults,expression:"showResults"}],staticClass:"search-results",style:{height:t.height}},[n("div",{ref:"results",staticClass:"search-results--content"},[t._l(t.filteredItems,function(r,o){return[n("a",{key:o,class:{selected:t.selectedIndex===o},attrs:{href:r.href,title:r.title},domProps:{innerHTML:t._s(t.getItemText(r))},on:{click:function(d){return t.select(r)},mouseover:function(d){t.selectedIndex=o}}})]})],2)])])],1)},E=[],j=l(7957),C=function(){var t=this,n=t._self._c,u=t._self._setupProxy;return n("div",{staticClass:"search-input"},[n("div",{staticClass:"search-input-wrapper",class:{filled:!!t.query.length}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"input",attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.query},on:{keyup:function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"enter",13,r.key,"Enter")?null:t.onEnter.apply(null,arguments)},keydown:t.onKeyDown,input:function(r){r.target.composing||(t.query=r.target.value)}}}),t._v(" "),n("span",{staticClass:"icon"},[n("nx-icon",{attrs:{icon:"search"}})],1)])])},w=[],$=l(2967),S={name:"nx-search-input",components:{NxIcon:$.Z},props:{value:{type:String},placeholder:{type:String,default:"Buscar"}},computed:{query:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{onEnter(){this.$emit("enter",this.query)},onKeyDown(e){this.$emit("keydown",e)}}},O=S,f=l(810),N=(0,f.Z)(O,C,w,!1,null,null,null),H=N.exports,p={name:"nx-predictive-search",directives:{clickOutside:j.Z},props:{items:{type:Array,required:!0},searchBy:{type:String,default:"text"},placeholder:{type:String}},components:{NxSearchInput:H},data:()=>({height:"0",limit:10,query:"",showResults:!1,selectedIndex:0}),computed:{filteredItems(){return this.query.length?this.items.filter(e=>this.normalizeText(e[this.searchBy]).match(new RegExp(`(${this.normalizeText(this.query)})`,"gi"))).slice(0,this.limit):[]}},watch:{"filteredItems.length":{handler(e){this.selectedIndex=0,e===1&&this.query===this.filteredItems[0].NOMBRE?(this.showResults=!1,this.select(this.filteredItems[0])):this.showResults=!!e,this.updateHeight()},immediate:!0}},mounted(){this.clearHeight()},methods:{getItemText(e){return e[this.searchBy].replace(new RegExp(`(${this.query})`,"gi"),"<b>$1</b>")},normalizeText(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")},clear(){this.query="",this.$refs.input.focus()},select(e){this.query=e[this.searchBy],this.$emit("select",e),this.hideResults()},input(e){this.$emit("input",e)},clearHeight(){this.$nextTick(()=>{this.height="0"})},updateHeight(){this.$nextTick(()=>{this.height=this.$refs.results?`${this.$refs.results.scrollHeight}px`:"0"})},hideResults(){this.showResults=!1}
1,onKeyDown(e){this.showResults&&((e.key==="ArrowDown"||e.keyCode===40)&&(this.cancelEvent(e),this.selectedIndex+=1,this.filteredItems.length===1?this.selectedIndex=0:this.selectedIndex>=this.filteredItems.length&&(this.selectedIndex=0)),(e.key==="ArrowUp"||e.keyCode===38)&&(this.cancelEvent(e),this.selectedIndex-=1,this.filteredItems.length===1?this.selectedIndex=0:this.selectedIndex<0&&(this.selectedIndex=this.filteredItems.length-1)),(e.key==="Enter"||e.keyCode===13)&&this.filteredItems.length>0&&(this.cancelEvent(e),this.select(this.filteredItems[this.selectedIndex]),this.$refs.input.focus()),(e.key==="Tab"||e.keyCode===9)&&this.filteredItems.length>0&&(this.cancelEvent(e),this.select(this.filteredItems[this.selectedIndex])),(e.key==="Escape"||e.keyCode===27)&&(this.cancelEvent(e),this.hideResults()))},cancelEvent(e){e.preventDefault(),e.stopPropagation()}}},A=p,m=(0,f.Z)(A,R,E,!1,null,"b723abd4",null),B=m.exports,P=l(2234),x={name:"nx-author-search",props:{},components:{NxPredictiveSearch:B},data(){return{searchResults:[]}},methods:{goToAuthor(e){window.location=e.url},searchText:T()(function(e){(e==null?void 0:e.length)>3&&this.getAuthors(e)},400),getAuthors(e){P.Z.searchWithFilter({categoryId:null,dateValue:[],filterValues:{},limit:12,moduleId:null,type:"author",searchText:e}).then(t=>{this.searchResults=t.results}).catch(t=>console.error(t))}}},s=x,a=(0,f.Z)(s,b,g,!1,null,null,null),c=a.exports})}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.