|
1
|
|
-(()=>{var e={52755(e,t,r){"use strict";const o=/([^/]+$)/,n=e=>{let t;t=0===e.indexOf("https")?new URL(e):new URL("https:"+e);const r=t.pathname.match(o);if(r)return t.origin+"/embed/"+r[1]};r.d(t,["X2",0,e=>{const t=document.getElementById(e),r=t.querySelector("a"),o={width:"100%",height:"200",frameborder:"0",title:r.getAttribute("title"),src:n(r.href)},s=document.createElement("iframe");window.addEventListener("message",e=>{e.origin.startsWith("https://nextdoor")&&e.source===s.contentWindow&&s.setAttribute("height",e.data.height+"px")}),Object.keys(o).forEach(e=>s.setAttribute(e,o[e])),t.replaceChild(s,r)}])},79366(e,t,r){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(r.p=window.Jetpack_Block_Assets_Base_Url)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const s=t[o]={exports:{}};return e[o](s,s.exports,r),s.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],s=t[o++],i=0===s?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:s};r.o(e,n)||Object.defineProperty(e,n,i)}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";r(79366)})(),(()=>{"use strict";var e=r(52755);document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("figure").forEach(t=>{t.id.startsWith("nextdoor-block")&&(0,e.X2)(t.id)})})})()})(); |
|
1
|
+(()=>{var e={52755(e,t,r){"use strict";const o=/(^|\.)nextdoor\.[a-z]{2,3}(\.[a-z]{2})?$/i,n=/([^/]+$)/,s=e=>{let t;try{t=new URL(0===e.indexOf("https")?e:"https://"+e)}catch{return}if("https:"!==t.protocol||!o.test(t.host))return;const r=t.pathname.match(n);return r?t.origin+"/embed/"+r[1]:void 0};r.d(t,["X2",0,e=>{const t=document.getElementById(e),r=t.querySelector("a"),o={width:"100%",height:"200",frameborder:"0",title:r.getAttribute("title"),src:s(r.href)},n=document.createElement("iframe");window.addEventListener("message",e=>{e.origin.startsWith("https://nextdoor")&&e.source===n.contentWindow&&n.setAttribute("height",e.data.height+"px")}),Object.keys(o).forEach(e=>n.setAttribute(e,o[e])),t.replaceChild(n,r)}])},79366(e,t,r){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(r.p=window.Jetpack_Block_Assets_Base_Url)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const s=t[o]={exports:{}};return e[o](s,s.exports,r),s.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],s=t[o++],i=0===s?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:s};r.o(e,n)||Object.defineProperty(e,n,i)}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";r(79366)})(),(()=>{"use strict";var e=r(52755);document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("figure").forEach(t=>{t.id.startsWith("nextdoor-block")&&(0,e.X2)(t.id)})})})()})(); |