PageSourceSearch

https://www.easyviaggio.com/build/common/default-BGpcDzVt.js

js easyviaggio.com collected 2026-10-02 07:15:31 UTC 4,057 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{a as t,i as n,n as r,r as i,t as a}from"./tracking-CqKepllz.js";import{y as o}from"./eventEmitter-ssnd685C.js";import{i as s,r as c}from"./jsx-runtime-BY1LKlg2.js";import{n as l,r as u,t as d}from"./highlights-BDSXXZwV.js";import{n as f,r as p}from"./player-C6Zk3O3G.js";import{a as m,c as h,d as g,i as _,l as v,n as y,o as b,r as x,t as S,u as C}from"./loadGtm-9UJZHEYD.js";import{n as w,t as T}from"./advertising-LDdtM01_.js";import{r as E}from"./modal-tp1JL39D.js";import{n as D,t as O}from"./goodDeal-EUnUS1WC.js";import{t as k}from"./newsletter-lCv95p-E.js";import{t as A}from"./Comparator-EFYiGrWM.js";var j=document.querySelectorAll(`.js-search`);function M(){if(!j.length)return!1;j.forEach(e=>{let t=e.querySelector(`.js-input-txt`),n=e.querySelector(`.js-submit-form`);o(t,`keyup`,e=>{e.target.value===``?n.disabled=!0:n.disabled=!1})})}var N=2,P=class extends HTMLElement{async connectedCallback(){let{linkBar:e}=await d(),t=e.filter(e=>l(e)).slice(0,N);if(t.length===0)return;let n=this.querySelector(`template`),r=n?.content.cloneNode(!0),i=(r??this).querySelector(`#link-bar-highlights`);i.replaceWith(...t.map(e=>this.item(i,e))),r&&n.replaceWith(r),a()}item(e,{label:t,url:n,logo:r,campaignId:i,campaignName:a}){let o=e.cloneNode(!0);o.removeAttribute(`id`),o.hidden=!1,o.href=n,o.querySelector(`.link-bar-item-title`).textContent=t;let s=o.querySelector(`.link-bar-item-img`);return r?s.src=r:s.remove(),o.dataset.jan=u(`link_bar`,{campaignId:i,campaignName:a}),o}};customElements.define(`link-bar-highlights`,P);var F=`/_/seo/fragment`,I=`data-seo-item`,L=/^[A-Za-z0-9_]+$/,R=`seo-block:resolved`,z=class extends HTMLElement{#e=!1;connectedCallback(){this.#e||(this.#e=!0,this.#t())}async#t(){try{await this.#n()}catch{}finally{this.removeAttribute(`aria-busy`)}}async#n(){let e=this.dataset.group??``,t=this.dataset.block??``;if(!L.test(e)||!L.test(t))return;let n=await fetch(`${F}/${e}/${t}`,{headers:{Accept:`text/html`},credentials:this.dataset.credentials===`same-origin`?`same-origin`:`omit`,redirect:`error`});n.ok&&this.#r(await n.text())}#r(e){let t=document.createElement(`template`);t.innerHTML=e.trim();let n=Number.parseInt(this.dataset.limit??``,10),r=this.dataset.exclude;r&&t.content.querySelectorAll(`[${I}]`).forEach(e=>e.getAttribute(I)===r&&e.remove()),Number.isInteger(n)&&n>0&&[...t.content.querySelectorAll(`[${I}]`)].slice(n).forEach(e=>e.remove());let i=[...t.content.children],a=this.parentNode;this.replaceWith(t.content),a?.dispatchEvent(new CustomEvent(R,{bubbles:!0,detail:{group:this.dataset.group,block:this.dataset.block,nodes:i}}))}};function B(){customElements.get(`seo-block`)||customElements.define(`seo-block`,z)}function V(e,t){return`${e}${t}&domain=${window.location.host}&referrer=${document.referrer}`}function H(){let e=new Set,t=window.nativePlacementsTrackingData?.elements;if(!t||!Object.keys(t).length)return!1;Object.keys(t).forEach(t=>{e.has(t)?e.delete(t):e.add(t)}),e.forEach(e=>{let i=t[e];if(i){let t=document.getElementById(`${e}`);if(!t)return console.warn(`${e} doesn't exist in DOM`),!1;let a={...i?.ga},s=i?.pixel,c=i?.meta?.action,l=i?.meta?.category;delete a.eventAction,delete a.eventName,(c.includes(`load`)||c===`load`)&&(r(`${l}_load`,a),p(V(s,`load`))),(c.includes(`view`)||c===`view`||c===`impression`)&&n([{element:t,callback:(e,n)=>{e.isIntersecting&&(r(`${l}_view`,a),p(V(s,`view`)),n.unobserve(t))},options:{threshold:.5}}]),(c.includes(`click`)||c===`click`)&&o(t,`click`,()=>{r(`${l}_click`,a),p(V(s,`click`))})}})}function U(){C(()=>{H()})}var W=e(s()),G=c(),K=document.getElementById(`engine`);if(K!=null){let e=W.createElement(A,K.dataset);(0,G.createRoot)(K).render(e)}function q(){let e=document.querySelectorAll(`.subnav-item`);if(e.length)for(let t=0;t<e.length;t++){let n=e[t].offsetWidth;e[t].style.width=n+1+`px`,n%1!=0&&(e[t].offsetWidth=Math.ceil(e[t].offsetWidth))}}q(),t(),g(),v(),h(),m(),i(),w(),T(),f(),b(),x(),_(),y(),S(),k(),E(`newsletter-cta`,`newsletter-container`),M(),U(),O(),D(),B();

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.