1(()=>{"use strict";var e={794:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(307),l=n(196);const a=function(){return(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",fill:"none",viewBox:"0 0 24 25"},(0,o.createElement)("g",{clipPath:"url(#clip0_73_143)"},(0,o.createElement)("g",{clipPath:"url(#clip1_73_143)"},(0,o.createElement)("path",{stroke:"#000",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:"2",d:"M7.757 8.257L12 12.5m0 0l4.243 4.243M12 12.5l4.243-4.243M12 12.5l-4.243 4.243"}))),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_73_143"},(0,o.createElement)("path",{fill:"#fff",d:"M0 0H24V24H0z",transform:"translate(0 .5)"})),(0,o.createElement)("clipPath",{id:"clip1_73_143"},(0,o.createElement)("path",{fill:"#fff",d:"M0 0H24V24H0z",transform:"translate(0 .5)"}))))},r=e=>(console.log("Location List:",e.replace(/\/+$/,"").toLowerCase()),e.replace(/\/+$/,"").toLowerCase());function s(){const[e,t]=(0,l.useState)(null),[n,s]=(0,l.useState)(!1),[c,i]=(0,l.useState)([]);(0,l.useEffect)((()=>{setTimeout((()=>{m()}),3e3)}),[]);const m=async()=>{(async()=>{try{const e=await fetch("/wp-json/geo-location-banner/v1/get-location",{method:"GET",headers:{"Content-Type":"application/json"}});if(console.log(e),!e.ok)throw new Error("Network response was not ok "+e);return await e.json()}catch(e){throw console.error("There has been a problem with your fetch operation:",e),e}})().then((e=>{console.log(e),e.success&&e.locations&&e.locations.length>0?(e=>{const t=r(window.location.origin+window.location.pathname);return console.log("Current Domain",t),e.locations.some((e=>r(e.website)===t))})(e)?s(!1):(t(e.country),i(e.locations),s(!0)):s(!1)})).catch((e=>{console.error("Error fetching location:",e),s(!1)}))};return n?(0,o.createElement)("div",{style:{height:"100vh"},className:"w-full z-[999] bg-black/80 text-white fixed top-0 left-0"},(0,o.createElement)("div",{className:" relative h-full w-full"},(0,o.createElement)("div",{className:" w-full md:w-[400px] md:min-h-[300px] h-[-webkit-max-content] fixed bottom-0 left-0 md:top-1/2 md:left-1/2 transform-center"},(0,o.createElement)("div",{className:" w-full h-[-webkit-max-content] p-6 bg-white flex flex-col justify-start items-center relative"},(0,o.createElement)("div",{className:"min-h-[5px] bg-[#DE522E] w-full absolute top-0 left-0"}),(0,o.createElement)("div",{className:"w-full h-auto mt-[5px] gap-3 flex flex-row justify-between items-center"},(0,o.createElement)("h3",{className:" text-[#262626] text-[16px] md:text-[20px] font-bold leading-6 font-inter"},"Change country/region?"),(0,o.createElement)("span",{className:"cursor-pointer",onClick:()=>s(!1)},(0,o.createElement)(a,null))),(0,o.createElement)("div",{className:"min-h-[1px] bg-[#7B7B7B]/20 w-full mt-[4px]"}),(0,o.createElement)("p",{className:" text-[12px] font-light font-inter leading-[18px] mt-3 text-[#262626] text-left"},"It looks like we have a dedicated website for your market. Would you like to switch to the ",(0,o.createElement)("strong",{className:"font-bold font-inter"},e)," site?"),c.map(((e,t)=>(0,o.createElement)("a",{key:t,href:`${e.website}`,"data-country":e.name,id:"geoLocationButton",className:"geoLocationButton rounded-[10000px] hover:bg-black/80 bg-[#DE522E] flex justify-center items-center text-center py-[12px] px-6 w-full h-auto text-white mt-3 text-[14px] md:text-[16px] font-light leading-[24px] font-inter"},"Switch to ",(0,o.createElement)("strong",{className:" font-bold font-inter"},e.name)))),(0,o.createElement)("button",{onClick:()=>s(!1),className:"rounded-[10000px] hover:bg-white/80 bg-white text-[#241F21] border-[#241F21] border border-solid flex justify-center items-center text-center py-[12px] px-6 w-full h-auto mt-3 text-[14px] md:text-[16px] font-light leading-[24px] font-inter"},"No, stay on global site"),(0,o.createElement)("div",{className:" w-full flex justify-start items-start mt-3"},(0,o.createElement)("p",{className:" font-inter font-normal text-[10px] leading-[18px] text-[#7B7B7B]"},"See the full list of available markets ",(0,o.createElement)("a",{href:"https://www.mitsubishi-fuso.com/en/distributor-network/",className:" underline text-[#DE522E] font-bold"},"here."))))))):null}},196:e=>{e.exports=window.React},307:e=>{e.exports=window.wp.element}},t={};function n(o){var l=t[o];if(void 0!==l)return l.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=n(307);n(196);const t=n(794).Z;document.addEventListener("DOMContentLoaded",(()=>{if(document.body.classList.contains("home")){const n=document.createElement("div");n.classList.add("geo-location-banner"),document.body.prepend(n),ReactDOM.render((0,e.createElement)(t,null),n)}}))})()})();
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.