JezK
Edit File: view.js
(()=>{"use strict";var t={5338:(t,e,n)=>{var o=n(5795);e.H=o.createRoot,o.hydrateRoot},5795:t=>{t.exports=window.ReactDOM}},e={};const n=window.React;var o=function n(o){var r=e[o];if(void 0!==r)return r.exports;var a=e[o]={exports:{}};return t[o](a,a.exports,n),a.exports}(5338);const r=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}};const a="@media only screen and (max-width: 1024px)",i="@media only screen and (max-width: 640px)",s="linear-gradient(135deg, #0040E3, #18D4FD)",l=t=>{const e=r(t);if(!e)return"none";return`url('${e.replace(/['"()]/g,"")}')`},c=(t,e)=>{return null==(n=e)||""===n||Array.isArray(n)&&0===n.length||"object"==typeof n&&0===Object.keys(n).length||"string"==typeof n&&""===n.trim()||"number"==typeof n&&0===n?"":`${t}: ${e};`;var n},p=(t,e=!0,n=!0,o=!0)=>{const{type:r="solid",color:a="",gradient:i=s,image:p={},position:d="center center",attachment:m="",repeat:u="no-repeat",size:g="",overlayColor:b=""}=t||{};return"gradient"===r&&n?c("background",i):"image"===r&&o?`background: ${l(p?.url)};\n\t\t\t\t${c("background-color",b)}\n\t\t\t\t${c("background-position",d)}\n\t\t\t\t${c("background-size",g)}\n\t\t\t\t${c("background-repeat",u)}\n\t\t\t\t${c("background-attachment",m)}\n\t\t\t\t${c("background-repeat",u)}\n\t\t\t\tbackground-blend-mode: overlay;`:e&&c("background",a)},d=t=>{const{width:e="",style:n="solid",color:o="",side:r="all",radius:a=""}=t||{},i=t=>{const e=r?.toLowerCase();return e?.includes("all")||e?.includes(t)},s=`${e} ${n} ${o}`,l=`\n\t\t${e&&0!==parseInt(e)?["top","right","bottom","left"].map((t=>i(t)?`border-${t}: ${s};`:"")).join(""):""}\n\t\t${c("border-radius",a)}\n\t`;return l},m=t=>{const{color:e="",bgType:n="solid",bg:o="",gradient:r=s}=t||{};return`\n\t\t${c("color",e)}\n\t\t${r||o?c("background","gradient"===n?r:o):""}\n\t`},u=(t,e,n=!0)=>{const{fontFamily:o="Default",fontCategory:r="sans-serif",fontVariant:s=400,fontWeight:l,isUploadFont:p=!0,fontSize:d={desktop:null,tablet:null,mobile:null},fontStyle:m,textTransform:u,textDecoration:g,lineHeight:b,letterSpace:$}=e||{},h=!n||!o||"Default"===o,f=d?.desktop||d,y=d?.tablet||f,x=d?.mobile||y,w=t=>{const e=String(t);return["px","em","rem","%","vh","vw"].some((t=>e.endsWith(t)))?e:"number"==typeof t?`${e}px`:""},v=`\n\t\t${h?"":`font-family: '${o}', ${r};`}\n\t\t${c("font-weight",l)}\n\t\t${c("font-size",w(f))}\n\t\t${c("font-style",m)}\n\t\t${c("text-transform",u)}\n\t\t${c("text-decoration",g)}\n\t\t${c("line-height",b)}\n\t\t${c("letter-spacing",$)}\n\t`,M=s&&400!==s?"400i"===s?":ital@1":s?.includes("00i")?`: ital, wght@1, ${s?.replace("00i","00")} `:`: wght@${s} `:"",k=h?"":`https://fonts.googleapis.com/css2?family=${o?.split(" ").join("+")}${M.replace(/ /g,"")}&display=swap`;return{googleFontLink:!p||h?"":`@import url(${k});`,styles:`${t}{\n\t\t\t${v}\n\t\t}\n\t\t${a} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",w(y))}\n\t\t\t}\n\t\t}\n\t\t${i} {\n\t\t\t${t}{\n\t\t\t\t${c("font-size",w(x))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},g=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},b=["http","https","mailto","tel","sms","ftp","ftps"],$=(t,e="#")=>{if(!t)return e;const n=String(t).split("").filter((t=>{const e=t.charCodeAt(0);return!(e<32||127===e||e>=8203&&e<=8205||65279===e)})).join("").trim();if(""===n)return e;if(/^(\/|\.|#|\?)/.test(n))return n;const o=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);return o?b.includes(o[1].toLowerCase())?n:e:n},h=new Set(["svg","g","defs","symbol","use","title","desc","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","textpath","lineargradient","radialgradient","stop","clippath","mask","pattern","filter","fegaussianblur","feoffset","feblend","femerge","femergenode","fecolormatrix","fecomposite","feflood","i","span","b","strong","em","small","br","div","p","img"]),f=new Set(["viewbox","xmlns","xmlns:xlink","version","width","height","class","id","fill","fill-rule","fill-opacity","clip-rule","clip-path","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","d","points","x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","transform","transform-origin","opacity","offset","stop-color","stop-opacity","gradientunits","gradienttransform","patternunits","maskunits","clippathunits","preserveaspectratio","aria-hidden","aria-label","role","focusable","style","font-size","font-family","font-weight","text-anchor","dominant-baseline","mix-blend-mode","vector-effect","paint-order","shape-rendering","alt","src","title","data-name","xml:space"]),y=/(expression|javascript:|vbscript:|@import|behaviou?r\s*:|-moz-binding|url\s*\(\s*['"]?\s*(javascript|data):)/i,x=t=>{if(!t)return"";const e=String(t);if("undefined"==typeof window||!window.DOMParser)return"";let n;try{n=(new window.DOMParser).parseFromString(`<div>${e}</div>`,"text/html")}catch(t){return""}const o=n.body.firstChild;if(!o)return"";const r=Array.from(o.querySelectorAll("*"));for(const t of r){const e=t.tagName.toLowerCase();if(h.has(e))for(const e of Array.from(t.attributes)){const n=e.name.toLowerCase();!n.startsWith("on")&&f.has(n)?("src"===n&&"#"===$(e.value)&&t.removeAttribute(e.name),"style"===n&&y.test(e.value)&&t.removeAttribute(e.name)):t.removeAttribute(e.name)}else t.remove()}return o.innerHTML},w=({attributes:t,id:e})=>{const{section:o,layout:r,contentBox:s,mapBox:l,header:b,contactStyle:$,button:h,map:f}=t,y=`${`#${e}`} .bpscMsSection`,w=`${y} .bpscMsWrapper`,v=`${y} .bpscMsInner`,M=`${y} .bpscMsContent`,k=`${y} .bpscMsMap`,_=`${y} .bpscMsMapEl`,C=`${y} .bpscMsBadge`,S=`${y} .bpscMsTitle`,T=`${y} .bpscMsDescription`,E=`${y} .bpscMsContacts`,z=`${y} .bpscMsContactItem`,B=`${z} .bpscMsContactIcon`,N=`${B} svg`,A=`${z} .bpscMsContactLabel`,L=`${z} .bpscMsContactValue`,R=`${y} .bpscMsButton`,D=`${R} .bpscMsButtonIcon svg`,I=t=>{const e=((t,e="box")=>{let n="";return t?.map(((o,r)=>{const{hOffset:a="0px",vOffset:i="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:p=!1}=o||{},d=p?"inset":"",m=`${a} ${i} ${s}`,u=r+1>=t.length?"":", ";n+="text"===e?`${m} ${c}${u}`:`${m} ${l} ${c} ${d}${u}`})),n||""})(t);return e?`box-shadow: ${e};`:""},O=b?.badgeTypo&&u(C,b.badgeTypo)||{},W=b?.titleTypo&&u(S,b.titleTypo)||{},Z=b?.descriptionTypo&&u(T,b.descriptionTypo)||{},F=$?.labelTypo&&u(A,$.labelTypo)||{},j=$?.valueTypo&&u(L,$.valueTypo)||{},H=h?.typo&&u(R,h.typo)||{},P=[O.googleFontLink,W.googleFontLink,Z.googleFontLink,F.googleFontLink,j.googleFontLink,H.googleFontLink].filter(Boolean).join("\n");return(0,n.createElement)("style",{dangerouslySetInnerHTML:{__html:x(`\n\t\t\t\t${P}\n\n\t\t\t\t/* ===== Section (inner wrapper, not the block element) ===== */\n\t\t\t\t${y} {\n\t\t\t\t\t${p(o?.bg)}\n\t\t\t\t\tpadding: ${g(o?.padding?.desktop)};\n\t\t\t\t\tmargin: ${g(o?.margin?.desktop)};\n\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t\t${w} {\n\t\t\t\t\t${c("max-width",o?.maxWidth?.desktop)}\n\t\t\t\t\tmargin-left: auto;\n\t\t\t\t\tmargin-right: auto;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\n\t\t\t\t/* ===== Inner Layout ===== */\n\t\t\t\t${v} {\n\t\t\t\t\tgap: ${r?.gap?.desktop||"32px"};\n\t\t\t\t\tmin-width: 0;\n\t\t\t\t}\n\t\t\t\t${M} {\n\t\t\t\t\t${c("flex-basis",r?.contentWidth?.desktop)}\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 1;\n\t\t\t\t\tmin-width: 0;\n\t\t\t\t}\n\t\t\t\t${k} {\n\t\t\t\t\t${c("flex-basis",r?.mapWidth?.desktop)}\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 1;\n\t\t\t\t\tmin-width: 0;\n\t\t\t\t\tmin-height: ${f?.height?.desktop||"480px"};\n\t\t\t\t\t${d(l?.border)}\n\t\t\t\t\t${c("border-radius",l?.borderRadius)}\n\t\t\t\t\t${I(l?.shadow)}\n\t\t\t\t}\n\t\t\t\t${_} {\n\t\t\t\t\t${c("border-radius",l?.borderRadius)}\n\t\t\t\t}\n\n\t\t\t\t/* ===== Content Box ===== */\n\t\t\t\t${M} {\n\t\t\t\t\t${p(s?.bg)}\n\t\t\t\t\t${d(s?.border)}\n\t\t\t\t\t${c("border-radius",s?.borderRadius)}\n\t\t\t\t\t${I(s?.shadow)}\n\t\t\t\t\tpadding: ${g(s?.padding?.desktop)};\n\t\t\t\t}\n\n\t\t\t\t/* ===== Badge ===== */\n\t\t\t\t${O.styles||""}\n\t\t\t\t${C} {\n\t\t\t\t\t${c("color",b?.badgeColor)}\n\t\t\t\t\t${c("background",b?.badgeBg)}\n\t\t\t\t}\n\n\t\t\t\t/* ===== Title / Description ===== */\n\t\t\t\t${W.styles||""}\n\t\t\t\t${S} {\n\t\t\t\t\t${c("color",b?.titleColor)}\n\t\t\t\t}\n\t\t\t\t${Z.styles||""}\n\t\t\t\t${T} {\n\t\t\t\t\t${c("color",b?.descriptionColor)}\n\t\t\t\t}\n\t\t\t\t${y} .bpscMsHeader {\n\t\t\t\t\tmargin: ${g(b?.margin)};\n\t\t\t\t}\n\n\t\t\t\t/* ===== Contacts ===== */\n\t\t\t\t${E} {\n\t\t\t\t\tgap: ${$?.itemGap?.desktop||"20px"};\n\t\t\t\t\tmargin: ${g($?.margin)};\n\t\t\t\t}\n\t\t\t\t${B} {\n\t\t\t\t\t${c("color",$?.iconColor)}\n\t\t\t\t\t${c("background",$?.iconBg)}\n\t\t\t\t\t${c("width",$?.iconBoxSize)}\n\t\t\t\t\t${c("height",$?.iconBoxSize)}\n\t\t\t\t\t${c("border-radius",$?.iconRadius)}\n\t\t\t\t}\n\t\t\t\t${N} {\n\t\t\t\t\t${c("width",$?.iconSize)}\n\t\t\t\t\t${c("height",$?.iconSize)}\n\t\t\t\t\tdisplay: block;\n\t\t\t\t}\n\t\t\t\t${F.styles||""}\n\t\t\t\t${A} {\n\t\t\t\t\t${c("color",$?.labelColor)}\n\t\t\t\t}\n\t\t\t\t${j.styles||""}\n\t\t\t\t${L} {\n\t\t\t\t\t${c("color",$?.valueColor)}\n\t\t\t\t}\n\n\t\t\t\t/* ===== Button ===== */\n\t\t\t\t${H.styles||""}\n\t\t\t\t${R} {\n\t\t\t\t\t${m(h?.colors)}\n\t\t\t\t\t${d(h?.border)}\n\t\t\t\t\t${c("border-radius",h?.borderRadius)}\n\t\t\t\t\tpadding: ${g(h?.padding)};\n\t\t\t\t\t${I(h?.shadow)}\n\t\t\t\t\tgap: ${h?.iconGap||"8px"};\n\t\t\t\t}\n\t\t\t\t${R}:hover {\n\t\t\t\t\t${m(h?.hoverColors)}\n\t\t\t\t\t${c("border-color",h?.hoverBorderColor)}\n\t\t\t\t\t${I(h?.hoverShadow)}\n\t\t\t\t}\n\t\t\t\t${D} {\n\t\t\t\t\twidth: 1em;\n\t\t\t\t\theight: 1em;\n\t\t\t\t\tdisplay: block;\n\t\t\t\t}\n\n\t\t\t\t/* ===== Responsive: Tablet ===== */\n\t\t\t\t${a} {\n\t\t\t\t\t${y} {\n\t\t\t\t\t\tpadding: ${g(o?.padding?.tablet)};\n\t\t\t\t\t\tmargin: ${g(o?.margin?.tablet)};\n\t\t\t\t\t}\n\t\t\t\t\t${w} {\n\t\t\t\t\t\t${c("max-width",o?.maxWidth?.tablet)}\n\t\t\t\t\t}\n\t\t\t\t\t${v} {\n\t\t\t\t\t\tflex-direction: column !important;\n\t\t\t\t\t\tgap: ${r?.gap?.tablet||"24px"};\n\t\t\t\t\t}\n\t\t\t\t\t${M} {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\tflex-basis: 100%;\n\t\t\t\t\t\tpadding: ${g(s?.padding?.tablet)};\n\t\t\t\t\t}\n\t\t\t\t\t${k} {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\tflex-basis: 100%;\n\t\t\t\t\t\theight: ${f?.height?.tablet||"420px"};\n\t\t\t\t\t}\n\t\t\t\t\t${E} {\n\t\t\t\t\t\tgap: ${$?.itemGap?.tablet||"16px"};\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* ===== Responsive: Mobile ===== */\n\t\t\t\t${i} {\n\t\t\t\t\t${y} {\n\t\t\t\t\t\tpadding: ${g(o?.padding?.mobile)};\n\t\t\t\t\t\tmargin: ${g(o?.margin?.mobile)};\n\t\t\t\t\t}\n\t\t\t\t\t${w} {\n\t\t\t\t\t\t${c("max-width",o?.maxWidth?.mobile)}\n\t\t\t\t\t}\n\t\t\t\t\t${v} {\n\t\t\t\t\t\tgap: ${r?.gap?.mobile||"20px"};\n\t\t\t\t\t}\n\t\t\t\t\t${M} {\n\t\t\t\t\t\tpadding: ${g(s?.padding?.mobile)};\n\t\t\t\t\t}\n\t\t\t\t\t${k} {\n\t\t\t\t\t\theight: ${f?.height?.mobile||"360px"};\n\t\t\t\t\t}\n\t\t\t\t\t${E} {\n\t\t\t\t\t\tgap: ${$?.itemGap?.mobile||"16px"};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t`)}})},v=window.wp.i18n,M=((0,v.__)("General","section-collection"),(0,v.__)("Style","section-collection"),(0,v.__)("Normal","section-collection"),(0,v.__)("Hover","section-collection"),(0,v.__)("Map on Right","section-collection"),(0,v.__)("Map on Left","section-collection"),(0,v.__)("Map on Top","section-collection"),(0,v.__)("Map on Bottom","section-collection"),(0,v.__)("Content over Map","section-collection"),(0,v.__)("Same Window","section-collection"),(0,v.__)("New Tab","section-collection"),(0,v.__)("Before Text","section-collection"),(0,v.__)("After Text","section-collection"),(0,v.__)("OpenStreetMap (Default)","section-collection"),(0,v.__)("CartoDB Voyager","section-collection"),(0,v.__)("CartoDB Light (Positron)","section-collection"),(0,v.__)("CartoDB Dark (Dark Matter)","section-collection"),(0,v.__)("Esri WorldStreetMap","section-collection"),(0,v.__)("OpenTopoMap","section-collection"),{osm:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',maxZoom:19},"carto-voyager":{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:20},"carto-light":{url:"https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:20},"carto-dark":{url:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:20},"esri-street":{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",attribution:"Tiles © Esri",maxZoom:19},opentopo:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",attribution:'Map data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, SRTM | Map style: © <a href="https://opentopomap.org">OpenTopoMap</a>',maxZoom:17}}),k=(t="#4f46e5")=>{const e=`\n\t\t<svg xmlns="http://www.w3.org/2000/svg" width="36" height="46" viewBox="0 0 36 46">\n\t\t\t<defs>\n\t\t\t\t<filter id="s" x="-50%" y="-30%" width="200%" height="160%">\n\t\t\t\t\t<feDropShadow dx="0" dy="2" stdDeviation="2" flood-opacity="0.35"/>\n\t\t\t\t</filter>\n\t\t\t</defs>\n\t\t\t<path filter="url(#s)" fill="${t}" d="M18 0C8.06 0 0 8.06 0 18c0 13.5 18 28 18 28s18-14.5 18-28C36 8.06 27.94 0 18 0z"/>\n\t\t\t<circle cx="18" cy="18" r="6.5" fill="#ffffff"/>\n\t\t</svg>\n\t`.trim();return"data:image/svg+xml;base64,"+("undefined"!=typeof btoa?btoa(e):Buffer.from(e).toString("base64"))},_=({map:t,marker:e,blockId:o,isEditor:r=!1})=>{const a=(0,n.useRef)(null),i=(0,n.useRef)(null),s=M[t?.tileProvider]||M["carto-voyager"],l=t?.zoom||14,c=parseFloat(e?.lat),p=parseFloat(e?.lng),d=!isNaN(c)&&!isNaN(p),m=d?[c,p]:[40.7589,-73.9851];(0,n.useEffect)((()=>{if("undefined"==typeof window||!window.L||!a.current)return;const n=window.L;i.current&&(i.current.remove(),i.current=null);const o=n.map(a.current,{center:m,zoom:l,scrollWheelZoom:!r&&!!t?.scrollWheelZoom,dragging:!r&&!1!==t?.dragging,doubleClickZoom:!r&&!1!==t?.doubleClickZoom,zoomControl:!r&&!!t?.showZoomControl,attributionControl:!!t?.showAttribution,tap:!r});if(n.tileLayer(s.url,{attribution:s.attribution,maxZoom:s.maxZoom||19,subdomains:s.subdomains||"abc"}).addTo(o),d){const t=n.icon({iconUrl:k(e?.color||"#4f46e5"),iconSize:[36,46],iconAnchor:[18,46],popupAnchor:[0,-42]}),r=n.marker([c,p],{icon:t}).addTo(o),a=`\n\t\t\t\t${e?.title?`<div class="bpscMsPopupTitle">${e.title}</div>`:""}\n\t\t\t\t${e?.description?`<div class="bpscMsPopupDesc">${e.description}</div>`:""}\n\t\t\t`.trim();a&&r.bindPopup(a)}i.current=o,setTimeout((()=>{i.current&&i.current.invalidateSize()}),100);let u=null,g=null,b=0,$=0;return"undefined"!=typeof ResizeObserver&&a.current&&(u=new ResizeObserver((t=>{const e=t[0]?.contentRect;if(!e)return;const n=Math.round(e.width),o=Math.round(e.height);Math.abs(n-b)<2&&Math.abs(o-$)<2||(b=n,$=o,g&&cancelAnimationFrame(g),g=requestAnimationFrame((()=>{g=null,i.current&&i.current.invalidateSize()})))})),u.observe(a.current)),()=>{g&&(cancelAnimationFrame(g),g=null),u&&(u.disconnect(),u=null),i.current&&(i.current.remove(),i.current=null)}}),[t?.tileProvider,t?.zoom,t?.scrollWheelZoom,t?.dragging,t?.doubleClickZoom,t?.showZoomControl,t?.showAttribution,e?.lat,e?.lng,e?.title,e?.description,e?.color,r]);const u=`${o||"bpscMs"}-mapEl`;return(0,n.createElement)("div",{className:"bpscMsMapEl",ref:a,id:u})},C=({attributes:t,blockId:e})=>{const{header:o,contacts:r,button:a,map:i,marker:s,layout:l,alignment:c}=t,p=o?.titleTag||"h2";return(0,n.createElement)("div",{className:"bpscMsSection","data-alignment":c||"left"},(0,n.createElement)("div",{className:"bpscMsWrapper"},(0,n.createElement)("div",{className:"bpscMsInner","data-layout":l?.mode||"side-by-side-right"},(0,n.createElement)("div",{className:"bpscMsContent"},o?.show&&(0,n.createElement)("div",{className:"bpscMsHeader"},o?.showBadge&&o?.badge&&(0,n.createElement)("div",{className:"bpscMsBadge"},o.badge),o?.title&&(0,n.createElement)(p,{className:"bpscMsTitle"},o.title),o?.description&&(0,n.createElement)("div",{className:"bpscMsDescription"},o.description)),(r||[]).length>0&&(0,n.createElement)("div",{className:"bpscMsContacts"},(r||[]).map(((t,e)=>(0,n.createElement)("div",{className:"bpscMsContactItem",key:e},t?.icon&&(0,n.createElement)("div",{className:"bpscMsContactIcon",dangerouslySetInnerHTML:{__html:x(t.icon)}}),(0,n.createElement)("div",{className:"bpscMsContactBody"},t?.label&&(0,n.createElement)("div",{className:"bpscMsContactLabel"},t.label),t?.value&&(0,n.createElement)("div",{className:"bpscMsContactValue"},t.value)))))),a?.show&&a?.text&&(0,n.createElement)("a",{className:"bpscMsButton",href:$(a.link||"#"),target:a.target||"_self",rel:a.rel||("_blank"===a.target?"noopener noreferrer":"")},a.icon&&"before"===a.iconPosition&&(0,n.createElement)("span",{className:"bpscMsButtonIcon",dangerouslySetInnerHTML:{__html:x(a.icon)}}),(0,n.createElement)("span",{className:"bpscMsButtonText"},a.text),a.icon&&"after"===a.iconPosition&&(0,n.createElement)("span",{className:"bpscMsButtonIcon",dangerouslySetInnerHTML:{__html:x(a.icon)}}))),(0,n.createElement)("div",{className:"bpscMsMap"},(0,n.createElement)(_,{map:i,marker:s,blockId:e,isEditor:!1})))))};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-bpsc-map-section").forEach((t=>{const e=JSON.parse(t.dataset.attributes);(0,o.H)(t).render((0,n.createElement)(n.Fragment,null,(0,n.createElement)(w,{attributes:e,id:t.id}),(0,n.createElement)(C,{attributes:e,blockId:t.id}))),t?.removeAttribute("data-attributes")}))}))})();