kollapsminoriteten/wp-content/plugins/jetpack/_inc/blocks/map/view.js

1 line
9.5 KiB
JavaScript
Raw Normal View History

2023-04-26 17:39:43 +02:00
!function(){var t={90055:function(t,e,o){"use strict";function i(t,e){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[t][e?"details":"no_details"]}o.d(e,{h:function(){return i}})},84634:function(t,e,o){"use strict";o.d(e,{YB:function(){return n},b2:function(){return i},k:function(){return r},sy:function(){return s},xt:function(){return l},zb:function(){return a}});const i=t=>t.hasOwnProperty("lat")&&t.hasOwnProperty("lng")?t:{lat:t.latitude||0,lng:t.longitude||0};function n(t,e){const o=new t.LngLatBounds;return e.forEach((t=>{o.extend([t.coordinates.longitude,t.coordinates.latitude])})),o}function r(t,e){t.fitBounds(e,{padding:{top:80,bottom:80,left:40,right:40}})}function s(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)t.style.height=e+"px";else{const e=t.offsetWidth,o=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,i=Math.min(e*(3/4),o);t.style.height=i+"px"}}function a(t,e){t.innerHTML=`\n\t\t<?xml version="1.0" encoding="UTF-8"?>\n\t\t<svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t\t<g fill-rule="evenodd">\n\t\t\t\t<path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="${e}"/>\n\t\t\t</g>\n\t\t</svg>\n\t`}function l(t){return new t.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}})}},85007:function(t,e,o){"use strict";function i(t){const e=t.ownerDocument;return{currentDoc:e,currentWindow:e.defaultView||e.parentWindow}}function n(t,e,o){const n=`${window.Jetpack_Block_Assets_Base_Url.url}editor-assets`,{currentDoc:r}=i(o),s=r.getElementsByTagName("head")[0];t.forEach((t=>{const[o,i]=t.file.split("/").pop().split(".");if("css"===i){if(r.getElementById(t.id))return;const e=r.createElement("link");e.id=t.id,e.rel="stylesheet",e.href=`${n}/${o}-${t.version}.${i}`,s.appendChild(e)}if("js"===i){const a=e[t.id]?e[t.id]:null;if(r.getElementById(t.id))return a();const l=r.createElement("script");l.id=t.id,l.type="text/javascript",l.src=`${n}/${o}-${t.version}.${i}`,l.onload=a,s.appendChild(l)}}))}function r(t,e){return new Promise((o=>{const i=()=>{t[e]?o(t[e]):t.requestAnimationFrame(i)};i()}))}o.d(e,{Dz:function(){return r},Pp:function(){return n},bL:function(){return i}})},24393:function(t,e,o){"use strict";function i(t,e){let o;return function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];clearTimeout(o),o=setTimeout((()=>t.apply(this,n)),e)}}o.d(e,{D:function(){return i}})},80425:function(t,e,o){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(o.p=window.Jetpack_Block_Assets_Base_Url.url)},47701:function(t){"use strict";t.exports=window.wp.domReady},90017:function(t,e,o){var i=o(96930);t.exports=function(t,e,o){return(e=i(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t},t.exports.__esModule=!0,t.exports.default=t.exports},45061:function(t,e,o){var i=o(73522).default;t.exports=function(t,e){if("object"!==i(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},96930:function(t,e,o){var i=o(73522).default,n=o(45061);t.exports=function(t){var e=n(t,"string");return"symbol"===i(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},735