PageSourceSearch

https://esim.holafly.com/_astro/LanguageAndCurrencySelector.astro_astro_type_script_index_1_lang.CZHqWL8S.js

js holafly.com collected 2026-09-24 08:44:11 UTC 2,002 bytes, 9 lines download raw bytes

1import{c as e,n as t}from"./settingsStore.EsqibLdw.js";import{a as n,o as r}from"./intercomStore.B2v7mxy_.js";function i(e,t){let{code:n,symbol:r,title:i,subtitle:a}=e,o=n===t;return`
2    <div class="card-column" data-code="${n}" data-symbol="${r}">
3      <a href="#" title="${i}" class="card-flag currency-card card-flag--selector-currency card-flag--link card-flag--s ${o?`card-flag--selected`:``}">
4        <div class="card-flag__flag"><div class="card-flag__flag-content"><span>${r}</span></div></div>
5        <div class="card-flag__info"><span class="card-flag__title" style="font-size: 14px;">${i}</span><span class="card-flag__subtitle">${a}</span></div>
6        <div class="card-flag__radio-button"><input name="currency-selector" class="card-flag__radio-button__radio" type="radio" ${o?`checked`:``} /></div>
7      </a>
8    </div>
9`}function a(){let a=document.getElementById(`currency-selector-container`);if(!a)return;let o=JSON.parse(a.dataset.currenciesData||`[]`),s=a.querySelector(`.card-container-currencies`);if(!s)return;let c=t.get(),l=``;for(let e of o)l+=i(e,c);s.innerHTML=l;let u=document.querySelectorAll(`.card-container-currencies .card-column`),d=document.getElementById(`current-currency`),f=document.getElementById(`current-currency-display`),p=document.getElementById(`modal-container`);for(let t of u)t.addEventListener(`click`,()=>{let i=document.getElementById(`overlay-template`),a=t.dataset.code,o=t.dataset.symbol;a&&o&&(e(a),f&&(f.textContent=` ${a} (${o}) `),p&&p.classList.remove(`modal--active`),i&&i.classList.remove(`overlay-full`),document.body.style.overflow=`auto`,n(!1),r(!1))});t.subscribe(e=>{if(!e)return;let t=null;for(let n of u){let r=n,i=r.querySelector(`.card-flag`),a=r.querySelector(`.card-flag__radio-button__radio`),o=r.dataset.code===e;i?.classList.toggle(`card-flag--selected`,o),a&&(a.checked=o),o&&(t=r)}if(d&&(d.textContent=e),t&&f){let n=t.dataset.symbol||``;f.textContent=`${e} (${n})`}})}document.addEventListener(`DOMContentLoaded`,a);

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.