PageSourceSearch

https://www.digitalcameraworld.com/vite/assets/Region/LocaleSelector/LocaleSelector.ts-LhBGDQvt.js

js digitalcameraworld.com collected 2026-09-24 08:25:51 UTC 2,862 bytes, 1 lines download raw bytes

1import{g as e}from"../Region.ts-7wa4IiTr.js";const t=t=>{const a=e(),n=new Date;n.setDate(n.getDate()+365),t.addEventListener("click",(e=>{if(!(e.target instanceof Element))return;const t=e.target.closest("a");if(!t)return;const i=t.getAttribute("data-country"),r=t.getAttribute("data-homepage");((e,t,a)=>{window.utils.setCookie({name:"FTR_User_Defined_Country_Code",value:e,expireDate:t,secure:!1,path:"/",domain:a})})(i??"",n,a),((e,t,a)=>{window.utils.setCookie({name:"FTR_User_Defined_Homepage",value:e,expireDate:t,secure:!1,path:"/",domain:a}),window.utils.setCookie({name:"FTR_User_Defined_Homepage_Link",value:e,expireDate:t,secure:!1,path:"/",domain:a}),window.utils.setCookie({name:"FTR_User_Defined_Homepage_URL",value:e,expireDate:t,secure:!1,path:"/",domain:a})})(r??"",n,a)}))};window.reliableDOMContentLoaded.then((async()=>{const e=document.querySelector("[data-component-name='Region:LocaleSelector']>button"),a=document.querySelector('[data-component-name="RegionSelector:Dropdown"]');if(a&&e){const n=e.getAttribute("data-current-region")||"",i=(e=>window.utils.getCookieValue("FTR_User_Defined_Country_Code")||e)(n);n!==i&&((e,t)=>{const a=e.querySelector("img"),n=a.src;a.src=n.replace(/\/[^/]+\.svg$/,`/${t}.svg`),e.querySelector("span").textContent=t+" Edition"})(e,i),((e,t)=>{e.querySelectorAll("a[data-country]").forEach((e=>{const a=e.getAttribute("data-country"),n=e.querySelector("[data-check-icon]");a===t?n.classList.remove("hidden"):n.classList.add("hidden")}))})(a,i),e.addEventListener("click",(()=>(e=>{if(!e.classList.toggle("hidden")){const t=()=>{e.classList.add("hidden"),window.removeEventListener("resize",t)};window.addEventListener("resize",t,{once:!0})}})(a))),((e,t)=>{e.querySelectorAll("[data-accordion-trigger]").forEach((a=>{var n;window.innerWidth<700&&(a.setAttribute("aria-expanded","false"),null==(n=a.nextElementSibling)||n.setAttribute("aria-hidden","true")),a.addEventListener("click",(n=>{if(!(n.target instanceof Element))return;const i=n.currentTarget;if(!i)return;const r=n=>{var i;const r=n.nextElementSibling;null==r||r.classList.remove("flex-1","py-1","max-sm:max-h-96","transition-max-height"),null==r||r.classList.add("max-sm:max-h-0","flex-0","transition-max-height"),null==r||r.setAttribute("aria-hidden","true"),null==(i=a.querySelector("svg"))||i.classList.remove("rotate-180"),n.setAttribute("aria-expanded","false"),t.delete(e)},s=t.get(e);s&&s!==i&&(r(s),t.delete(e)),"true"===a.getAttribute("aria-expanded")?r(a):(()=>{var n;const i=a.nextElementSibling;i.setAttribute("aria-hidden","false"),i.classList.remove("max-sm:max-h-0","flex-0","transition-max-height"),i.classList.add("flex-1","py-1","max-sm:max-h-96","transition-max-height"),null==(n=a.querySelector("svg"))||n.classList.add("rotate-180"),a.setAttribute("aria-expanded","true"),t.set(e,a)})()}))}))})(a,new WeakMap),t(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.