PageSourceSearch

https://ideasbeyondborders.org/wp-content/mu-plugins/ideasbeyondbo…/js/build/index.js?ver=018e0788f3580ea8dd59

js ideasbeyondborders.org collected 2026-10-02 05:25:12 UTC 8,752 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e,t={784:()=>{!function(e={},t={}){let n,i,a,s,o,c=1,l=null,r=t.defaultCategory;const p=t.types,d=t.labels,u=t.popupDataOrder,m={x:0,y:0,country:null,active:!1},h=window.matchMedia("(max-width: 52em)"),v={originX:0,originY:0,x:0,y:0,scale:1,prevScale:1};function b(){s&&l&&(n.classList.remove("is-popup-visible"),l=null,f(),_())}function f(){a.querySelectorAll(".is-selected").forEach(e=>e.classList.remove("is-selected"))}function g(e){e.target.closest(".map-popup__description")?.classList.toggle("is-selected"),e.target.closest(".map-popup__close")&&b(),e.target.closest(".ibb-map")||b()}function y({x:e,y:t}){v.x+=e,v.y+=t,a.classList.add("no-transition"),w(),a.classList.remove("no-transition")}function _(e=null){let{width:t,height:i,left:s}=n.getBoundingClientRect();n.classList.contains("is-popup-visible")&&!h.matches&&(t-=Math.min(320,.4*window.innerWidth));const o=a.getBoundingClientRect();if(e){const t=e.getBoundingClientRect(),n=(t.left+t.width/2-s-o.left)/v.scale,i=(t.top+t.height/2-o.top)/v.scale;v.originX=n,v.originY=i}else v.originX=o.width/2/v.scale,v.originY=o.height/2/v.scale;v.x=t/2-v.originX,v.y=i/2-v.originY,v.prevScale=v.scale,v.scale=c,w()}function x(e=1){const t=i.getBoundingClientRect();L({x:t.width/2+t.left,y:t.height/2+t.top,deltaScale:e})}function L({x:e,y:t,deltaScale:n}){const i=v.scale,s=Math.min(2,Math.max(c,i*n));if(i===s)return;const o=a.getBoundingClientRect(),l=e-o.left,r=t-o.top,p=l/i,d=r/i,u=v.x+(l-v.originX*i)*(1-1/i),m=v.y+(r-v.originY*i)*(1-1/i);v.originX=p,v.originY=d,v.x=u,v.y=m,v.scale=s,w()}function w(){const{originX:e,originY:t,x:i,y:s,scale:o,prevScale:l}=v,r=Math.min(2,Math.max(c,o));let{width:p,height:d}=n.getBoundingClientRect(),{width:u,height:m}=a.getBoundingClientRect();n.classList.contains("is-popup-visible")&&!h.matches&&(p-=Math.min(320,.4*window.innerWidth)),u=u/l*r,m=m/l*r;const b=p-u+e*(r-1),f=d-m+t*(r-1),g=e*(r-1),y=t*(r-1);v.x=Math.max(b,Math.min(g,i)),v.y=Math.max(f,Math.min(y,s)),v.prevScale=r,a.style.transformOrigin=`${e}px ${t}px`,a.style.transform=`matrix(${r}, 0, 0, ${r}, ${v.x}, ${v.y})`}function X(){const{width:e,height:t}=i.getBoundingClientRect(),{width:n,height:s}=a.getBoundingClientRect(),o=v.scale;c=Math.max(e/(n/o),t/(s/o))}!function(){const c=new window.XMLHttpRequest,v=e.theme_uri||"/";c.open("get",v+"wp-content/mu-plugins/ideasbeyondborders-features/assets/img/map.svg",!0),c.onload=function(){2===Math.floor(c.status/100)&&function(e){if(n=document.querySelector(".ibb-map"),!n)return;if(n.innerHTML="",i=document.createElement("div"),i.classList.add("ibb-map-wrapper"),n.appendChild(i),i.innerHTML=e,a=i.querySelector("svg"),!a)return;var c;s||(s=document.createElement("div"),s.classList.add("map-popup"),n.insertBefore(s,i)),c=r,b(),r=c,a.querySelectorAll(".active").forEach(e=>e.classList.remove("active")),t.active&&((t.active[r]||[]).forEach(e=>{if(""===e)return;const t=a.querySelector("#"+e);t?.classList.add("active")}),(t.active.note||[]).forEach(e=>{if(""===e)return;const t=a.querySelector("#"+e);t?.classList.add("has-note")})),document.addEventListener("click",g);const v=document.createElement("button");v.innerText="+",v.classList.add("map-zoom-in");const Y=document.createElement("button");Y.innerText="-",Y.classList.add("map-zoom-out"),o=document.createElement("div"),o.classList.add("map-tooltip"),n.appendChild(v),n.appendChild(Y),n.appendChild(o),function(){let e=!1,c={screenX:0,screenY:0};X(),_(),window.addEventListener("resize",()=>{a.classList.add("no-transition"),X(),w(),_(a.getElementById(l)),a.classList.remove("no-transition")}),i.addEventListener("wheel",function(e){e.ctrlKey&&(e.preventDefault(),L({x:e.clientX,y:e.clientY,deltaScale:e.deltaY>0?.75:1.25}))}),a.addEventListener("dblclick",function(e){e.preventDefault(),L({deltaScale:1.25,x:e.clientX,y:e.clientY})}),i.addEventListener("mousedown",function(t){c={screenX:t.screenX,screenY:t.screenY,startX:t.screenX,startY:t.screenY},e=!0}),a.addEventListener("click",function(e){if(Math.abs(e.screenX-c.startX)>5||Math.abs(e.screenY-c.startY)>5)return void e.preventDefault();const i=e.target.closest(".active");i?function(e,i,a){const o=t[e];if(!o||e===l)return;l=e;const c=o.title||"";let r=0,m='<h3 class="map-popup__title">'+c+"</h3>";m+='<div class="map-popup__body">
1',u[a]?.forEach(e=>{const t=p[e]||"text";if(void 0!==o[e]&&""!==o[e]&&(0!==o[e]||"number"!==t&&"currency"!==t))if(++r,"label-value"===t)o[e].forEach(e=>{m+='<div class="map-popup__data-row">',m+=`<label class="map-popup__data-label" id="map-popup-label-${r}">`,m+=e.label||"",m+=":</label>",m+=`<p class="map-popup__data-value" aria-describedby="map-popup-label-${r}">`,m+=e.value,m+="</p>",m+="</div>",++r});else if("ibb_link"===e){var n;const t=null!==(n=o.ibb_link_text)&&void 0!==n?n:o.ibb_link;m+='<div class="map-popup__data-row map-popup__data-row--link">',m+='<p class="map-popup__link">',m+=`<a href="${o[e]}">${t}</a>`,m+="</p>",m+="</div>"}else if("ibb_description"===e){m+='<div class="map-popup__data-row map-popup__data-row--description">',m+='<p class="map-popup__description">';const t=o[e].split(" "),n=20;t.length>n?(m+=t.slice(0,n-1).join(" "),m+='<span class="ibb-map-read-more-hellip">&hellip;</span>',m+=' <span class="ibb-map-read-more-button" role="button">'+d.read_more+"</span>",m+='<span class="ibb-map-read-more-content">',m+=t.slice(n).join(" "),m+="</span>"):m+=o[e],m+="</p>",m+="</div>"}else"ibb_note"===e?(m+='<div class="map-popup__data-row map-popup__data-row--note">',m+='<p class="map-popup__note">',m+=o[e],m+="</p>",m+="</div>"):(m+='<div class="map-popup__data-row">',m+=`<label class="map-popup__data-label" id="map-popup-label-${r}">`,m+=d[e]||"",m+=":</label>",m+=`<p class="map-popup__data-value" aria-describedby="map-popup-label-${r}">`,m+=o[e],m+="</p>",m+="</div>")}),m+='<button class="map-popup__close">&times;</button>',m+="</div>",s.innerHTML=m,n.classList.add("is-popup-visible"),f(),_(i),i.classList.add("is-selected")}(i.getAttribute("id"),i,r):b()}),document.addEventListener("mouseup",function(t){e&&(t.preventDefault(),t.stopImmediatePropagation()),e=!1}),document.addEventListener("mouseleave",function(){e=!1}),n.addEventListener("mousemove",function(e){m.x=e.clientX,m.y=e.clientY;const n=e.target.closest(".ibb-map .active");n?n.getAttribute("id")!==m.country&&(m.country=t[n.getAttribute("id")]?.title||"",o.innerText=m.country):m.country="",function(){if(!o||h.matches)return;const e=i.getBoundingClientRect();o.style.left=m.x+"px",o.style.top=m.y-e.top+"px",o.classList.toggle("is-visible",""!==m.country)}()}),i.addEventListener("mousemove",function(t){e&&(t.preventDefault(),y({x:t.screenX-c.screenX,y:t.screenY-c.screenY}),c.screenX=t.screenX,c.screenY=t.screenY)}),i.addEventListener("touchstart",function(e){if(2!==e.touches.length)return;const t=(e.touches[0].clientX+e.touches[1].clientX)/2,n=(e.touches[0].clientY+e.touches[1].clientY)/2,i=e.touches[0].clientX-e.touches[1].clientX,a=e.touches[0].clientY-e.touches[1].clientY,s=Math.sqrt(i*i+a*a);c={clientX:t,clientY:n,distance:s,startX:t,startY:n}}),i.addEventListener("touchmove",function(e){if(2!==e.touches.length)return;e.preventDefault(),a.classList.add("no-transition");const t=(e.touches[0].clientX+e.touches[1].clientX)/2,n=(e.touches[0].clientY+e.touches[1].clientY)/2,i=e.touches[0].clientX-e.touches[1].clientX,s=e.touches[0].clientY-e.touches[1].clientY;let o=Math.sqrt(i*i+s*s);Math.abs(c.distance-o)>2?L({x:t,y:n,deltaScale:o/c.distance}):o=c.distance,y({x:t-c.clientX,y:n-c.clientY}),c.clientX=t,c.clientY=n,c.distance=o,a.classList.remove("no-transition")});const v=n.querySelector(".map-zoom-in"),g=n.querySelector(".map-zoom-out");v.addEventListener("click",()=>{x(1.25)}),g.addEventListener("click",()=>{x(.75)})}()}(c.responseText)},c.send()}()}({},window.ibbMapData)}},n={};function i(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,i),s.exports}i.m=t,e=[],i.O=(t,n,a,s)=>{if(!n){var o=1/0;for(p=0;p<e.length;p++){for(var[n,a,s]=e[p],c=!0,l=0;l<n.length;l++)(!1&s||o>=s)&&Object.keys(i.O).every(e=>i.O[e](n[l]))?n.splice(l--,1):(c=!1,s<o&&(o=s));if(c){e.splice(p--,1);var r=a();void 0!==r&&(t=r)}}return t}s=s||0;for(var p=e.length;p>0&&e[p-1][2]>s;p--)e[p]=e[p-1];e[p]=[n,a,s]},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var a,s,[o,c,l]=n,r=0;if(o.some(t=>0!==e[t])){for(a in c)i.o(c,a)&&(i.m[a]=c[a]);if(l)var p=l(i)}for(t&&t(n);r<o.length;r++)s=o[r],i.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return i.O(p)},n=globalThis.webpackChunkideasbeyondborders=globalThis.webpackChunkideasbeyondborders||[];
1n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=i.O(void 0,[350],()=>i(784));a=i.O(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.