Gutenberg Blocks and Template Library by Otter - Version 2.0.3

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon wp plugin Gutenberg Blocks and Template Library by Otter
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.3

Files changed (73) hide show
  1. CHANGELOG.md +10 -0
  2. assets/leaflet/leaflet-gesture-handling.min.js +0 -1
  3. assets/leaflet/leaflet.css +657 -1
  4. assets/leaflet/leaflet.js +3 -3
  5. autoloader.php +0 -151
  6. build/animation/anim-count.asset.php +1 -1
  7. build/animation/anim-count.js +1 -1
  8. build/animation/anim-typing.asset.php +1 -1
  9. build/animation/anim-typing.js +1 -1
  10. build/animation/blocks/blocks/about-author/block.json +15 -0
  11. build/animation/blocks/blocks/accordion/group/block.json +38 -0
  12. build/animation/blocks/blocks/accordion/item/block.json +23 -0
  13. build/animation/blocks/blocks/advanced-heading/block.json +200 -0
  14. build/animation/blocks/blocks/button-group/button/block.json +139 -0
  15. build/animation/blocks/blocks/button-group/group/block.json +52 -0
  16. build/animation/blocks/blocks/circle-counter/block.json +57 -0
  17. build/animation/blocks/blocks/countdown/block.json +123 -0
  18. build/animation/blocks/blocks/flip/block.json +155 -0
  19. build/animation/blocks/blocks/font-awesome-icons/block.json +80 -0
  20. build/animation/blocks/blocks/form/block.json +47 -0
  21. build/animation/blocks/blocks/form/input/block.json +35 -0
  22. build/animation/blocks/blocks/form/nonce/block.json +19 -0
  23. build/animation/blocks/blocks/form/textarea/block.json +31 -0
  24. build/animation/blocks/blocks/google-map/block.json +72 -0
  25. build/animation/blocks/blocks/icon-list/block.json +57 -0
  26. build/animation/blocks/blocks/icon-list/item/block.json +34 -0
  27. build/animation/blocks/blocks/leaflet-map/block.json +58 -0
  28. build/animation/blocks/blocks/lottie/block.json +57 -0
  29. build/animation/blocks/blocks/plugin-cards/block.json +20 -0
  30. build/animation/blocks/blocks/popup/block.json +70 -0
  31. build/animation/blocks/blocks/posts/block.json +157 -0
  32. build/animation/blocks/blocks/progress-bar/block.json +57 -0
  33. build/animation/blocks/blocks/review/block.json +117 -0
  34. build/animation/blocks/blocks/section/column/block.json +116 -0
  35. build/animation/blocks/blocks/section/columns/block.json +304 -0
  36. build/animation/blocks/blocks/sharing-icons/block.json +52 -0
  37. build/animation/blocks/blocks/slider/block.json +87 -0
  38. build/animation/blocks/blocks/structural/pricing/block.json +10 -0
  39. build/animation/blocks/blocks/structural/service/block.json +10 -0
  40. build/animation/blocks/blocks/structural/testimonials/block.json +10 -0
  41. build/animation/blocks/blocks/tabs/group/block.json +33 -0
  42. build/animation/blocks/blocks/tabs/item/block.json +20 -0
  43. build/animation/frontend.asset.php +1 -1
  44. build/animation/index.asset.php +1 -1
  45. build/animation/index.js +1 -1
  46. build/{blocks → animation/pro/blocks}/add-to-cart-button/block.json +1 -1
  47. build/{blocks → animation/pro/blocks}/business-hours/block.json +1 -1
  48. build/{blocks/business-hours-item → animation/pro/blocks/business-hours/item}/block.json +1 -1
  49. build/{blocks → animation/pro/blocks}/review-comparison/block.json +1 -1
  50. build/{blocks → animation/pro/blocks}/woo-comparison/block.json +1 -1
  51. build/{blocks/product-add-to-cart → animation/pro/woocommerce/add-to-cart}/block.json +0 -0
  52. build/{blocks/product-images → animation/pro/woocommerce/images}/block.json +0 -0
  53. build/{blocks/product-meta → animation/pro/woocommerce/meta}/block.json +0 -0
  54. build/{blocks/product-price → animation/pro/woocommerce/price}/block.json +0 -0
  55. build/{blocks/product-rating → animation/pro/woocommerce/rating}/block.json +0 -0
  56. build/{blocks/product-related-products → animation/pro/woocommerce/related-products}/block.json +0 -0
  57. build/{blocks/product-short-description → animation/pro/woocommerce/short-description}/block.json +0 -0
  58. build/{blocks/product-stock → animation/pro/woocommerce/stock}/block.json +0 -0
  59. build/{blocks/product-tabs → animation/pro/woocommerce/tabs}/block.json +0 -0
  60. build/{blocks/product-title → animation/pro/woocommerce/title}/block.json +0 -0
  61. build/{blocks/product-upsells → animation/pro/woocommerce/upsells}/block.json +0 -0
  62. build/blocks/about-author/block.json +1 -1
  63. build/blocks/accordion-item/block.json +1 -1
  64. build/blocks/accordion/block.json +1 -1
  65. build/blocks/advanced-column/block.json +1 -1
  66. build/blocks/advanced-columns/block.json +1 -1
  67. build/blocks/advanced-columns/editor.css +1 -1
  68. build/blocks/advanced-columns/editor.css.map +1 -1
  69. build/blocks/advanced-columns/style.css +1 -1
  70. build/blocks/advanced-columns/style.css.map +1 -1
  71. build/blocks/advanced-heading/block.json +3 -4
  72. build/blocks/blocks.asset.php +1 -1
  73. build/blocks/blocks.js +48 -67
CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  ##### [Version 2.0.2](https://github.com/Codeinwp/otter-blocks/compare/v2.0.1...v2.0.2) (2022-04-22)
2
 
3
  - Improvements in Lottie Animations Block
1
+ ##### [Version 2.0.3](https://github.com/Codeinwp/otter-blocks/compare/v2.0.2...v2.0.3) (2022-05-12)
2
+
3
+ - Add Otter Pro support
4
+ - Reduce front-end JS dependencies
5
+ - Enabled SVG/JSON upload by default
6
+ - Add max-width option for Popup Block
7
+ - Update Leaflet to latest version
8
+ - Fix section related issue with used with Media & Text Block
9
+ - Fix word-breaks for Chinese charactersDevelopment
10
+
11
  ##### [Version 2.0.2](https://github.com/Codeinwp/otter-blocks/compare/v2.0.1...v2.0.2) (2022-04-22)
12
 
13
  - Improvements in Lottie Animations Block
assets/leaflet/leaflet-gesture-handling.min.js DELETED
@@ -1 +0,0 @@
1
- !function(a,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("leafletGestureHandling",["exports"],t):t(a.leafletGestureHandling={})}(this,function(a){"use strict";var o={ar:{touch:"استخدم إصبعين لتحريك الخريطة",scroll:"‏استخدم ctrl + scroll لتصغير/تكبير الخريطة",scrollMac:"يمكنك استخدام ⌘ + التمرير لتكبير/تصغير الخريطة"},bg:{touch:"Използвайте два пръста, за да преместите картата",scroll:"Задръжте бутона Ctrl натиснат, докато превъртате, за да промените мащаба на картата",scrollMac:"Задръжте бутона ⌘ натиснат, докато превъртате, за да промените мащаба на картата"},bn:{touch:"মানচিত্রটিকে সরাতে দুটি আঙ্গুল ব্যবহার করুন",scroll:"ম্যাপ জুম করতে ctrl + scroll ব্যবহার করুন",scrollMac:"ম্যাপে জুম করতে ⌘ বোতাম টিপে স্ক্রল করুন"},ca:{touch:"Fes servir dos dits per moure el mapa",scroll:"Prem la tecla Control mentre et desplaces per apropar i allunyar el mapa",scrollMac:"Prem la tecla ⌘ mentre et desplaces per apropar i allunyar el mapa"},cs:{touch:"K posunutí mapy použijte dva prsty",scroll:"Velikost zobrazení mapy změňte podržením klávesy Ctrl a posouváním kolečka myši",scrollMac:"Velikost zobrazení mapy změníte podržením klávesy ⌘ a posunutím kolečka myši / touchpadu"},da:{touch:"Brug to fingre til at flytte kortet",scroll:"Brug ctrl + rullefunktionen til at zoome ind og ud på kortet",scrollMac:"Brug ⌘ + rullefunktionen til at zoome ind og ud på kortet"},de:{touch:"Verschieben der Karte mit zwei Fingern",scroll:"Verwende Strg+Scrollen zum Zoomen der Karte",scrollMac:"⌘"},el:{touch:"Χρησιμοποιήστε δύο δάχτυλα για μετακίνηση στον χάρτη",scroll:"Χρησιμοποιήστε το πλήκτρο Ctrl και κύλιση, για να μεγεθύνετε τον χάρτη",scrollMac:"Χρησιμοποιήστε το πλήκτρο ⌘ + κύλιση για εστίαση στον χάρτη"},en:{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-AU":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-GB":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},es:{touch:"Para mover el mapa, utiliza dos dedos",scroll:"Mantén pulsada la tecla Ctrl mientras te desplazas para acercar o alejar el mapa",scrollMac:"Mantén pulsada la tecla ⌘ mientras te desplazas para acercar o alejar el mapa"},eu:{touch:"Erabili bi hatz mapa mugitzeko",scroll:"Mapan zooma aplikatzeko, sakatu Ktrl eta egin gora edo behera",scrollMac:"Eduki sakatuta ⌘ eta egin gora eta behera mapa handitu eta txikitzeko"},fa:{touch:"برای حرکت دادن نقشه از دو انگشت استفاده کنید.",scroll:"‏برای بزرگ‌نمایی نقشه از ctrl + scroll استفاده کنید",scrollMac:"برای بزرگ‌نمایی نقشه، از ⌘ + پیمایش استفاده کنید."},fi:{touch:"Siirrä karttaa kahdella sormella.",scroll:"Zoomaa karttaa painamalla Ctrl-painiketta ja vierittämällä.",scrollMac:"Zoomaa karttaa pitämällä painike ⌘ painettuna ja vierittämällä."},fil:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},fr:{touch:"Utilisez deux doigts pour déplacer la carte",scroll:"Vous pouvez zoomer sur la carte à l'aide de CTRL+Molette de défilement",scrollMac:"Vous pouvez zoomer sur la carte à l'aide de ⌘+Molette de défilement"},gl:{touch:"Utiliza dous dedos para mover o mapa",scroll:"Preme Ctrl mentres te desprazas para ampliar o mapa",scrollMac:"Preme ⌘ e desprázate para ampliar o mapa"},gu:{touch:"નકશો ખસેડવા બે આંગળીઓનો ઉપયોગ કરો",scroll:"નકશાને ઝૂમ કરવા માટે ctrl + સ્ક્રોલનો ઉપયોગ કરો",scrollMac:"નકશાને ઝૂમ કરવા ⌘ + સ્ક્રોલનો ઉપયોગ કરો"},hi:{touch:"मैप एक जगह से दूसरी जगह ले जाने के लिए दो उंगलियों का इस्तेमाल करें",scroll:"मैप को ज़ूम करने के लिए ctrl + स्क्रोल का उपयोग करें",scrollMac:"मैप को ज़ूम करने के लिए ⌘ + स्क्रोल का उपयोग करें"},hr:{touch:"Pomičite kartu pomoću dva prsta",scroll:"Upotrijebite Ctrl i klizač miša da biste zumirali kartu",scrollMac:"Upotrijebite gumb ⌘ dok se pomičete za zumiranje karte"},hu:{touch:"Két ujjal mozgassa a térképet",scroll:"A térkép a ctrl + görgetés használatával nagyítható",scrollMac:"A térkép a ⌘ + görgetés használatával nagyítható"},id:{touch:"Gunakan dua jari untuk menggerakkan peta",scroll:"Gunakan ctrl + scroll untuk memperbesar atau memperkecil peta",scrollMac:"Gunakan ⌘ + scroll untuk memperbesar atau memperkecil peta"},it:{touch:"Utilizza due dita per spostare la mappa",scroll:"Utilizza CTRL + scorrimento per eseguire lo zoom della mappa",scrollMac:"Utilizza ⌘ + scorrimento per eseguire lo zoom della mappa"},iw:{touch:"הזז את המפה באמצעות שתי אצבעות",scroll:"‏אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ctrl וגלילה",scrollMac:"אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ⌘ וגלילה"},ja:{touch:"地図を移動させるには指 2 本で操作します",scroll:"地図をズームするには、Ctrl キーを押しながらスクロールしてください",scrollMac:"地図をズームするには、⌘ キーを押しながらスクロールしてください"},kn:{touch:"Use two fingers to move the map",scroll:"Use Ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},ko:{touch:"지도를 움직이려면 두 손가락을 사용하세요.",scroll:"지도를 확대/축소하려면 Ctrl을 누른 채 스크롤하세요.",scrollMac:"지도를 확대하려면 ⌘ + 스크롤 사용"},lt:{touch:"Perkelkite žemėlapį dviem pirštais",scroll:"Slinkite nuspaudę klavišą „Ctrl“, kad pakeistumėte žemėlapio mastelį",scrollMac:"Paspauskite klavišą ⌘ ir slinkite, kad priartintumėte žemėlapį"},lv:{touch:"Lai pārvietotu karti, bīdiet to ar diviem pirkstiem",scroll:"Kartes tālummaiņai izmantojiet ctrl + ritināšanu",scrollMac:"Lai veiktu kartes tālummaiņu, izmantojiet ⌘ + ritināšanu"},ml:{touch:"മാപ്പ് നീക്കാൻ രണ്ട് വിരലുകൾ ഉപയോഗിക്കുക",scroll:"കൺട്രോൾ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക",scrollMac:"⌘ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക"},mr:{touch:"नकाशा हलविण्यासाठी दोन बोटे वापरा",scroll:"नकाशा झूम करण्यासाठी ctrl + scroll वापरा",scrollMac:"नकाशावर झूम करण्यासाठी ⌘ + स्क्रोल वापरा"},nl:{touch:"Gebruik twee vingers om de kaart te verplaatsen",scroll:"Gebruik Ctrl + scrollen om in- en uit te zoomen op de kaart",scrollMac:"Gebruik ⌘ + scrollen om in en uit te zoomen op de kaart"},no:{touch:"Bruk to fingre for å flytte kartet",scroll:"Hold ctrl-tasten inne og rull for å zoome på kartet",scrollMac:"Hold inne ⌘-tasten og rull for å zoome på kartet"},pl:{touch:"Przesuń mapę dwoma palcami",scroll:"Naciśnij CTRL i przewiń, by przybliżyć mapę",scrollMac:"Naciśnij ⌘ i przewiń, by przybliżyć mapę"},pt:{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-BR":{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-PT":{touch:"Utilize dois dedos para mover o mapa",scroll:"Utilizar ctrl + deslocar para aumentar/diminuir zoom do mapa",scrollMac:"Utilize ⌘ + deslocar para aumentar/diminuir o zoom do mapa"},ro:{touch:"Folosiți două degete pentru a deplasa harta",scroll:"Apăsați tasta ctrl și derulați simultan pentru a mări harta",scrollMac:"Folosiți ⌘ și derulați pentru a mări/micșora harta"},ru:{touch:"Чтобы переместить карту, проведите по ней двумя пальцами",scroll:"Чтобы изменить масштаб, прокручивайте карту, удерживая клавишу Ctrl.",scrollMac:"Чтобы изменить масштаб, нажмите ⌘ + прокрутка"},sk:{touch:"Mapu môžete posunúť dvoma prstami",scroll:"Ak chcete priblížiť mapu, stlačte kláves ctrl a posúvajte",scrollMac:"Ak chcete priblížiť mapu, stlačte kláves ⌘ a posúvajte kolieskom myši"},sl:{touch:"Premaknite zemljevid z dvema prstoma",scroll:"Zemljevid povečate tako, da držite tipko Ctrl in vrtite kolesce na miški",scrollMac:"Uporabite ⌘ + funkcijo pomika, da povečate ali pomanjšate zemljevid"},sr:{touch:"Мапу померајте помоћу два прста",scroll:"Притисните ctrl тастер док померате да бисте зумирали мапу",scrollMac:"Притисните тастер ⌘ док померате да бисте зумирали мапу"},sv:{touch:"Använd två fingrar för att flytta kartan",scroll:"Använd ctrl + rulla för att zooma kartan",scrollMac:"Använd ⌘ + rulla för att zooma på kartan"},ta:{touch:"மேப்பை நகர்த்த இரண்டு விரல்களைப் பயன்படுத்தவும்",scroll:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ctrl பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்",scrollMac:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ⌘ பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்"},te:{touch:"మ్యాప్‌ని తరలించడం కోసం రెండు వేళ్లను ఉపయోగించండి",scroll:"మ్యాప్‌ని జూమ్ చేయడానికి ctrl బటన్‌ను నొక్కి ఉంచి, స్క్రోల్ చేయండి",scrollMac:"మ్యాప్ జూమ్ చేయాలంటే ⌘ + స్క్రోల్ ఉపయోగించండి"},th:{touch:"ใช้ 2 นิ้วเพื่อเลื่อนแผนที่",scroll:"กด Ctrl ค้างไว้ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่",scrollMac:"กด ⌘ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่"},tl:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},tr:{touch:"Haritada gezinmek için iki parmağınızı kullanın",scroll:"Haritayı yakınlaştırmak için ctrl + kaydırma kombinasyonunu kullanın",scrollMac:"Haritayı yakınlaştırmak için ⌘ tuşuna basıp ekranı kaydırın"},uk:{touch:"Переміщуйте карту двома пальцями",scroll:"Щоб змінювати масштаб карти, прокручуйте коліщатко миші, утримуючи клавішу Ctrl",scrollMac:"Щоб змінити масштаб карти, використовуйте ⌘ + прокручування"},vi:{touch:"Sử dụng hai ngón tay để di chuyển bản đồ",scroll:"Sử dụng ctrl + cuộn để thu phóng bản đồ",scrollMac:"Sử dụng ⌘ + cuộn để thu phóng bản đồ"},"zh-CN":{touch:"使用双指移动地图",scroll:"按住 Ctrl 并滚动鼠标滚轮才可缩放地图",scrollMac:"按住 ⌘ 并滚动鼠标滚轮才可缩放地图"},"zh-TW":{touch:"同時以兩指移動地圖",scroll:"按住 ctrl 鍵加上捲動滑鼠可以縮放地圖",scrollMac:"按 ⌘ 加上滾動捲軸可以縮放地圖"}};L.Map.mergeOptions({gestureHandlingOptions:{text:{},duration:1e3}});var t=!1,e=L.Handler.extend({addHooks:function(){this._handleTouch=this._handleTouch.bind(this),this._setupPluginOptions(),this._setLanguageContent(),this._disableInteractions(),this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.on(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this)},removeHooks:function(){this._enableInteractions(),this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.off(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this)},_handleDragging:function(a){"movestart"==a.type||"move"==a.type?t=!0:"moveend"==a.type&&(t=!1)},_disableInteractions:function(){this._map.dragging.disable(),this._map.scrollWheelZoom.disable(),this._map.tap&&this._map.tap.disable()},_enableInteractions:function(){this._map.dragging.enable(),this._map.scrollWheelZoom.enable(),this._map.tap&&this._map.tap.enable()},_setupPluginOptions:function(){this._map.options.gestureHandlingText&&(this._map.options.gestureHandlingOptions.text=this._map.options.gestureHandlingText)},_setLanguageContent:function(){var a,t=this._map.options.gestureHandlingOptions&&this._map.options.gestureHandlingOptions.text&&this._map.options.gestureHandlingOptions.text.touch&&this._map.options.gestureHandlingOptions.text.scroll&&this._map.options.gestureHandlingOptions.text.scrollMac?this._map.options.gestureHandlingOptions.text:(a=this._getUserLanguage(),o[a=a||"en"]&&(t=o[a]),t||-1===a.indexOf("-")||(a=a.split("-")[0],t=o[a]),t||o[a="en"]),e=!1;0<=navigator.platform.toUpperCase().indexOf("MAC")&&(e=!0);var l=t.scroll;e&&(l=t.scrollMac),this._map._container.setAttribute("data-gesture-handling-touch-content",t.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",l)},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_handleTouch:function(a){for(var t=["leaflet-control-minimap","leaflet-interactive","leaflet-popup-content","leaflet-popup-content-wrapper","leaflet-popup-close-button","leaflet-control-zoom-in","leaflet-control-zoom-out"],e=!1,l=0;l<t.length;l++)L.DomUtil.hasClass(a.target,t[l])&&(e=!0);e?L.DomUtil.hasClass(a.target,"leaflet-interactive")&&"touchmove"===a.type&&1===a.touches.length?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning"):"touchmove"===a.type||"touchstart"===a.type?1===a.touches.length?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):(this._enableInteractions(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")):L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")},_isScrolling:!1,_handleScroll:function(a){a.metaKey||a.ctrlKey?(a.preventDefault(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.enable()):(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.disable(),clearTimeout(this._isScrolling),this._isScrolling=setTimeout(function(){for(var a=document.getElementsByClassName("leaflet-gesture-handling-scroll-warning"),t=0;t<a.length;t++)L.DomUtil.removeClass(a[t],"leaflet-gesture-handling-scroll-warning")},this._map.options.gestureHandlingOptions.duration))},_handleMouseOver:function(a){this._enableInteractions()},_handleMouseOut:function(a){t||this._disableInteractions()}});L.Map.addInitHook("addHandler","gestureHandling",e),a.GestureHandling=e,a.default=e,Object.defineProperty(a,"__esModule",{value:!0})});
 
assets/leaflet/leaflet.css CHANGED
@@ -1 +1,657 @@
1
- .leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-overlay-pane svg,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-bottom,.leaflet-top{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-tile{will-change:opacity}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.leaflet-zoom-anim .leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline:0}.leaflet-container a{color:#0078a8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font:12px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:4px}.leaflet-bar a,.leaflet-bar a:hover{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px 'Lucida Console',Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.7);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;font-size:11px;white-space:nowrap;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;background:rgba(255,255,255,.5)}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 19px;line-height:1.4}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px rgba(0,0,0,.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;padding:4px 4px 0 0;border:none;text-align:center;width:18px;height:14px;font:16px/14px Tahoma,Verdana,sans-serif;color:#c3c3c3;text-decoration:none;font-weight:700;background:0 0}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto}.leaflet-oldie .leaflet-popup-tip-container{margin-top:-1px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,.4)}.leaflet-tooltip.leaflet-clickable{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{position:absolute;pointer-events:none;border:6px solid transparent;background:0 0;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* required styles */
2
+
3
+ .leaflet-pane,
4
+ .leaflet-tile,
5
+ .leaflet-marker-icon,
6
+ .leaflet-marker-shadow,
7
+ .leaflet-tile-container,
8
+ .leaflet-pane > svg,
9
+ .leaflet-pane > canvas,
10
+ .leaflet-zoom-box,
11
+ .leaflet-image-layer,
12
+ .leaflet-layer {
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ }
17
+ .leaflet-container {
18
+ overflow: hidden;
19
+ }
20
+ .leaflet-tile,
21
+ .leaflet-marker-icon,
22
+ .leaflet-marker-shadow {
23
+ -webkit-user-select: none;
24
+ -moz-user-select: none;
25
+ user-select: none;
26
+ -webkit-user-drag: none;
27
+ }
28
+ /* Prevents IE11 from highlighting tiles in blue */
29
+ .leaflet-tile::selection {
30
+ background: transparent;
31
+ }
32
+ /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
33
+ .leaflet-safari .leaflet-tile {
34
+ image-rendering: -webkit-optimize-contrast;
35
+ }
36
+ /* hack that prevents hw layers "stretching" when loading new tiles */
37
+ .leaflet-safari .leaflet-tile-container {
38
+ width: 1600px;
39
+ height: 1600px;
40
+ -webkit-transform-origin: 0 0;
41
+ }
42
+ .leaflet-marker-icon,
43
+ .leaflet-marker-shadow {
44
+ display: block;
45
+ }
46
+ /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
47
+ /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
48
+ .leaflet-container .leaflet-overlay-pane svg {
49
+ max-width: none !important;
50
+ max-height: none !important;
51
+ }
52
+ .leaflet-container .leaflet-marker-pane img,
53
+ .leaflet-container .leaflet-shadow-pane img,
54
+ .leaflet-container .leaflet-tile-pane img,
55
+ .leaflet-container img.leaflet-image-layer,
56
+ .leaflet-container .leaflet-tile {
57
+ max-width: none !important;
58
+ max-height: none !important;
59
+ width: auto;
60
+ padding: 0;
61
+ }
62
+
63
+ .leaflet-container.leaflet-touch-zoom {
64
+ -ms-touch-action: pan-x pan-y;
65
+ touch-action: pan-x pan-y;
66
+ }
67
+ .leaflet-container.leaflet-touch-drag {
68
+ -ms-touch-action: pinch-zoom;
69
+ /* Fallback for FF which doesn't support pinch-zoom */
70
+ touch-action: none;
71
+ touch-action: pinch-zoom;
72
+ }
73
+ .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
74
+ -ms-touch-action: none;
75
+ touch-action: none;
76
+ }
77
+ .leaflet-container {
78
+ -webkit-tap-highlight-color: transparent;
79
+ }
80
+ .leaflet-container a {
81
+ -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
82
+ }
83
+ .leaflet-tile {
84
+ filter: inherit;
85
+ visibility: hidden;
86
+ }
87
+ .leaflet-tile-loaded {
88
+ visibility: inherit;
89
+ }
90
+ .leaflet-zoom-box {
91
+ width: 0;
92
+ height: 0;
93
+ -moz-box-sizing: border-box;
94
+ box-sizing: border-box;
95
+ z-index: 800;
96
+ }
97
+ /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
98
+ .leaflet-overlay-pane svg {
99
+ -moz-user-select: none;
100
+ }
101
+
102
+ .leaflet-pane { z-index: 400; }
103
+
104
+ .leaflet-tile-pane { z-index: 200; }
105
+ .leaflet-overlay-pane { z-index: 400; }
106
+ .leaflet-shadow-pane { z-index: 500; }
107
+ .leaflet-marker-pane { z-index: 600; }
108
+ .leaflet-tooltip-pane { z-index: 650; }
109
+ .leaflet-popup-pane { z-index: 700; }
110
+
111
+ .leaflet-map-pane canvas { z-index: 100; }
112
+ .leaflet-map-pane svg { z-index: 200; }
113
+
114
+ .leaflet-vml-shape {
115
+ width: 1px;
116
+ height: 1px;
117
+ }
118
+ .lvml {
119
+ behavior: url(#default#VML);
120
+ display: inline-block;
121
+ position: absolute;
122
+ }
123
+
124
+
125
+ /* control positioning */
126
+
127
+ .leaflet-control {
128
+ position: relative;
129
+ z-index: 800;
130
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
131
+ pointer-events: auto;
132
+ }
133
+ .leaflet-top,
134
+ .leaflet-bottom {
135
+ position: absolute;
136
+ z-index: 1000;
137
+ pointer-events: none;
138
+ }
139
+ .leaflet-top {
140
+ top: 0;
141
+ }
142
+ .leaflet-right {
143
+ right: 0;
144
+ }
145
+ .leaflet-bottom {
146
+ bottom: 0;
147
+ }
148
+ .leaflet-left {
149
+ left: 0;
150
+ }
151
+ .leaflet-control {
152
+ float: left;
153
+ clear: both;
154
+ }
155
+ .leaflet-right .leaflet-control {
156
+ float: right;
157
+ }
158
+ .leaflet-top .leaflet-control {
159
+ margin-top: 10px;
160
+ }
161
+ .leaflet-bottom .leaflet-control {
162
+ margin-bottom: 10px;
163
+ }
164
+ .leaflet-left .leaflet-control {
165
+ margin-left: 10px;
166
+ }
167
+ .leaflet-right .leaflet-control {
168
+ margin-right: 10px;
169
+ }
170
+
171
+
172
+ /* zoom and fade animations */
173
+
174
+ .leaflet-fade-anim .leaflet-popup {
175
+ opacity: 0;
176
+ -webkit-transition: opacity 0.2s linear;
177
+ -moz-transition: opacity 0.2s linear;
178
+ transition: opacity 0.2s linear;
179
+ }
180
+ .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
181
+ opacity: 1;
182
+ }
183
+ .leaflet-zoom-animated {
184
+ -webkit-transform-origin: 0 0;
185
+ -ms-transform-origin: 0 0;
186
+ transform-origin: 0 0;
187
+ }
188
+ svg.leaflet-zoom-animated {
189
+ will-change: transform;
190
+ }
191
+
192
+ .leaflet-zoom-anim .leaflet-zoom-animated {
193
+ -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
194
+ -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
195
+ transition: transform 0.25s cubic-bezier(0,0,0.25,1);
196
+ }
197
+ .leaflet-zoom-anim .leaflet-tile,
198
+ .leaflet-pan-anim .leaflet-tile {
199
+ -webkit-transition: none;
200
+ -moz-transition: none;
201
+ transition: none;
202
+ }
203
+
204
+ .leaflet-zoom-anim .leaflet-zoom-hide {
205
+ visibility: hidden;
206
+ }
207
+
208
+
209
+ /* cursors */
210
+
211
+ .leaflet-interactive {
212
+ cursor: pointer;
213
+ }
214
+ .leaflet-grab {
215
+ cursor: -webkit-grab;
216
+ cursor: -moz-grab;
217
+ cursor: grab;
218
+ }
219
+ .leaflet-crosshair,
220
+ .leaflet-crosshair .leaflet-interactive {
221
+ cursor: crosshair;
222
+ }
223
+ .leaflet-popup-pane,
224
+ .leaflet-control {
225
+ cursor: auto;
226
+ }
227
+ .leaflet-dragging .leaflet-grab,
228
+ .leaflet-dragging .leaflet-grab .leaflet-interactive,
229
+ .leaflet-dragging .leaflet-marker-draggable {
230
+ cursor: move;
231
+ cursor: -webkit-grabbing;
232
+ cursor: -moz-grabbing;
233
+ cursor: grabbing;
234
+ }
235
+
236
+ /* marker & overlays interactivity */
237
+ .leaflet-marker-icon,
238
+ .leaflet-marker-shadow,
239
+ .leaflet-image-layer,
240
+ .leaflet-pane > svg path,
241
+ .leaflet-tile-container {
242
+ pointer-events: none;
243
+ }
244
+
245
+ .leaflet-marker-icon.leaflet-interactive,
246
+ .leaflet-image-layer.leaflet-interactive,
247
+ .leaflet-pane > svg path.leaflet-interactive,
248
+ svg.leaflet-image-layer.leaflet-interactive path {
249
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
250
+ pointer-events: auto;
251
+ }
252
+
253
+ /* visual tweaks */
254
+
255
+ .leaflet-container {
256
+ background: #ddd;
257
+ outline-offset: 1px;
258
+ }
259
+ .leaflet-container a {
260
+ color: #0078A8;
261
+ }
262
+ .leaflet-zoom-box {
263
+ border: 2px dotted #38f;
264
+ background: rgba(255,255,255,0.5);
265
+ }
266
+
267
+
268
+ /* general typography */
269
+ .leaflet-container {
270
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
271
+ font-size: 12px;
272
+ font-size: 0.75rem;
273
+ line-height: 1.5;
274
+ }
275
+
276
+
277
+ /* general toolbar styles */
278
+
279
+ .leaflet-bar {
280
+ box-shadow: 0 1px 5px rgba(0,0,0,0.65);
281
+ border-radius: 4px;
282
+ }
283
+ .leaflet-bar a {
284
+ background-color: #fff;
285
+ border-bottom: 1px solid #ccc;
286
+ width: 26px;
287
+ height: 26px;
288
+ line-height: 26px;
289
+ display: block;
290
+ text-align: center;
291
+ text-decoration: none;
292
+ color: black;
293
+ }
294
+ .leaflet-bar a,
295
+ .leaflet-control-layers-toggle {
296
+ background-position: 50% 50%;
297
+ background-repeat: no-repeat;
298
+ display: block;
299
+ }
300
+ .leaflet-bar a:hover,
301
+ .leaflet-bar a:focus {
302
+ background-color: #f4f4f4;
303
+ }
304
+ .leaflet-bar a:first-child {
305
+ border-top-left-radius: 4px;
306
+ border-top-right-radius: 4px;
307
+ }
308
+ .leaflet-bar a:last-child {
309
+ border-bottom-left-radius: 4px;
310
+ border-bottom-right-radius: 4px;
311
+ border-bottom: none;
312
+ }
313
+ .leaflet-bar a.leaflet-disabled {
314
+ cursor: default;
315
+ background-color: #f4f4f4;
316
+ color: #bbb;
317
+ }
318
+
319
+ .leaflet-touch .leaflet-bar a {
320
+ width: 30px;
321
+ height: 30px;
322
+ line-height: 30px;
323
+ }
324
+ .leaflet-touch .leaflet-bar a:first-child {
325
+ border-top-left-radius: 2px;
326
+ border-top-right-radius: 2px;
327
+ }
328
+ .leaflet-touch .leaflet-bar a:last-child {
329
+ border-bottom-left-radius: 2px;
330
+ border-bottom-right-radius: 2px;
331
+ }
332
+
333
+ /* zoom control */
334
+
335
+ .leaflet-control-zoom-in,
336
+ .leaflet-control-zoom-out {
337
+ font: bold 18px 'Lucida Console', Monaco, monospace;
338
+ text-indent: 1px;
339
+ }
340
+
341
+ .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
342
+ font-size: 22px;
343
+ }
344
+
345
+
346
+ /* layers control */
347
+
348
+ .leaflet-control-layers {
349
+ box-shadow: 0 1px 5px rgba(0,0,0,0.4);
350
+ background: #fff;
351
+ border-radius: 5px;
352
+ }
353
+ .leaflet-control-layers-toggle {
354
+ background-image: url(images/layers.png);
355
+ width: 36px;
356
+ height: 36px;
357
+ }
358
+ .leaflet-retina .leaflet-control-layers-toggle {
359
+ background-image: url(images/layers-2x.png);
360
+ background-size: 26px 26px;
361
+ }
362
+ .leaflet-touch .leaflet-control-layers-toggle {
363
+ width: 44px;
364
+ height: 44px;
365
+ }
366
+ .leaflet-control-layers .leaflet-control-layers-list,
367
+ .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
368
+ display: none;
369
+ }
370
+ .leaflet-control-layers-expanded .leaflet-control-layers-list {
371
+ display: block;
372
+ position: relative;
373
+ }
374
+ .leaflet-control-layers-expanded {
375
+ padding: 6px 10px 6px 6px;
376
+ color: #333;
377
+ background: #fff;
378
+ }
379
+ .leaflet-control-layers-scrollbar {
380
+ overflow-y: scroll;
381
+ overflow-x: hidden;
382
+ padding-right: 5px;
383
+ }
384
+ .leaflet-control-layers-selector {
385
+ margin-top: 2px;
386
+ position: relative;
387
+ top: 1px;
388
+ }
389
+ .leaflet-control-layers label {
390
+ display: block;
391
+ font-size: 13px;
392
+ font-size: 1.08333em;
393
+ }
394
+ .leaflet-control-layers-separator {
395
+ height: 0;
396
+ border-top: 1px solid #ddd;
397
+ margin: 5px -10px 5px -6px;
398
+ }
399
+
400
+ /* Default icon URLs */
401
+ .leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
402
+ background-image: url(images/marker-icon.png);
403
+ }
404
+
405
+
406
+ /* attribution and scale controls */
407
+
408
+ .leaflet-container .leaflet-control-attribution {
409
+ background: #fff;
410
+ background: rgba(255, 255, 255, 0.8);
411
+ margin: 0;
412
+ }
413
+ .leaflet-control-attribution,
414
+ .leaflet-control-scale-line {
415
+ padding: 0 5px;
416
+ color: #333;
417
+ line-height: 1.4;
418
+ }
419
+ .leaflet-control-attribution a {
420
+ text-decoration: none;
421
+ }
422
+ .leaflet-control-attribution a:hover,
423
+ .leaflet-control-attribution a:focus {
424
+ text-decoration: underline;
425
+ }
426
+ .leaflet-control-attribution svg {
427
+ display: inline !important;
428
+ }
429
+ .leaflet-left .leaflet-control-scale {
430
+ margin-left: 5px;
431
+ }
432
+ .leaflet-bottom .leaflet-control-scale {
433
+ margin-bottom: 5px;
434
+ }
435
+ .leaflet-control-scale-line {
436
+ border: 2px solid #777;
437
+ border-top: none;
438
+ line-height: 1.1;
439
+ padding: 2px 5px 1px;
440
+ white-space: nowrap;
441
+ overflow: hidden;
442
+ -moz-box-sizing: border-box;
443
+ box-sizing: border-box;
444
+
445
+ background: #fff;
446
+ background: rgba(255, 255, 255, 0.5);
447
+ }
448
+ .leaflet-control-scale-line:not(:first-child) {
449
+ border-top: 2px solid #777;
450
+ border-bottom: none;
451
+ margin-top: -2px;
452
+ }
453
+ .leaflet-control-scale-line:not(:first-child):not(:last-child) {
454
+ border-bottom: 2px solid #777;
455
+ }
456
+
457
+ .leaflet-touch .leaflet-control-attribution,
458
+ .leaflet-touch .leaflet-control-layers,
459
+ .leaflet-touch .leaflet-bar {
460
+ box-shadow: none;
461
+ }
462
+ .leaflet-touch .leaflet-control-layers,
463
+ .leaflet-touch .leaflet-bar {
464
+ border: 2px solid rgba(0,0,0,0.2);
465
+ background-clip: padding-box;
466
+ }
467
+
468
+
469
+ /* popup */
470
+
471
+ .leaflet-popup {
472
+ position: absolute;
473
+ text-align: center;
474
+ margin-bottom: 20px;
475
+ }
476
+ .leaflet-popup-content-wrapper {
477
+ padding: 1px;
478
+ text-align: left;
479
+ border-radius: 12px;
480
+ }
481
+ .leaflet-popup-content {
482
+ margin: 13px 24px 13px 20px;
483
+ line-height: 1.3;
484
+ font-size: 13px;
485
+ font-size: 1.08333em;
486
+ min-height: 1px;
487
+ }
488
+ .leaflet-popup-content p {
489
+ margin: 17px 0;
490
+ margin: 1.3em 0;
491
+ }
492
+ .leaflet-popup-tip-container {
493
+ width: 40px;
494
+ height: 20px;
495
+ position: absolute;
496
+ left: 50%;
497
+ margin-top: -1px;
498
+ margin-left: -20px;
499
+ overflow: hidden;
500
+ pointer-events: none;
501
+ }
502
+ .leaflet-popup-tip {
503
+ width: 17px;
504
+ height: 17px;
505
+ padding: 1px;
506
+
507
+ margin: -10px auto 0;
508
+ pointer-events: auto;
509
+
510
+ -webkit-transform: rotate(45deg);
511
+ -moz-transform: rotate(45deg);
512
+ -ms-transform: rotate(45deg);
513
+ transform: rotate(45deg);
514
+ }
515
+ .leaflet-popup-content-wrapper,
516
+ .leaflet-popup-tip {
517
+ background: white;
518
+ color: #333;
519
+ box-shadow: 0 3px 14px rgba(0,0,0,0.4);
520
+ }
521
+ .leaflet-container a.leaflet-popup-close-button {
522
+ position: absolute;
523
+ top: 0;
524
+ right: 0;
525
+ border: none;
526
+ text-align: center;
527
+ width: 24px;
528
+ height: 24px;
529
+ font: 16px/24px Tahoma, Verdana, sans-serif;
530
+ color: #757575;
531
+ text-decoration: none;
532
+ background: transparent;
533
+ }
534
+ .leaflet-container a.leaflet-popup-close-button:hover,
535
+ .leaflet-container a.leaflet-popup-close-button:focus {
536
+ color: #585858;
537
+ }
538
+ .leaflet-popup-scrolled {
539
+ overflow: auto;
540
+ border-bottom: 1px solid #ddd;
541
+ border-top: 1px solid #ddd;
542
+ }
543
+
544
+ .leaflet-oldie .leaflet-popup-content-wrapper {
545
+ -ms-zoom: 1;
546
+ }
547
+ .leaflet-oldie .leaflet-popup-tip {
548
+ width: 24px;
549
+ margin: 0 auto;
550
+
551
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
552
+ filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
553
+ }
554
+
555
+ .leaflet-oldie .leaflet-control-zoom,
556
+ .leaflet-oldie .leaflet-control-layers,
557
+ .leaflet-oldie .leaflet-popup-content-wrapper,
558
+ .leaflet-oldie .leaflet-popup-tip {
559
+ border: 1px solid #999;
560
+ }
561
+
562
+
563
+ /* div icon */
564
+
565
+ .leaflet-div-icon {
566
+ background: #fff;
567
+ border: 1px solid #666;
568
+ }
569
+
570
+
571
+ /* Tooltip */
572
+ /* Base styles for the element that has a tooltip */
573
+ .leaflet-tooltip {
574
+ position: absolute;
575
+ padding: 6px;
576
+ background-color: #fff;
577
+ border: 1px solid #fff;
578
+ border-radius: 3px;
579
+ color: #222;
580
+ white-space: nowrap;
581
+ -webkit-user-select: none;
582
+ -moz-user-select: none;
583
+ -ms-user-select: none;
584
+ user-select: none;
585
+ pointer-events: none;
586
+ box-shadow: 0 1px 3px rgba(0,0,0,0.4);
587
+ }
588
+ .leaflet-tooltip.leaflet-interactive {
589
+ cursor: pointer;
590
+ pointer-events: auto;
591
+ }
592
+ .leaflet-tooltip-top:before,
593
+ .leaflet-tooltip-bottom:before,
594
+ .leaflet-tooltip-left:before,
595
+ .leaflet-tooltip-right:before {
596
+ position: absolute;
597
+ pointer-events: none;
598
+ border: 6px solid transparent;
599
+ background: transparent;
600
+ content: "";
601
+ }
602
+
603
+ /* Directions */
604
+
605
+ .leaflet-tooltip-bottom {
606
+ margin-top: 6px;
607
+ }
608
+ .leaflet-tooltip-top {
609
+ margin-top: -6px;
610
+ }
611
+ .leaflet-tooltip-bottom:before,
612
+ .leaflet-tooltip-top:before {
613
+ left: 50%;
614
+ margin-left: -6px;
615
+ }
616
+ .leaflet-tooltip-top:before {
617
+ bottom: 0;
618
+ margin-bottom: -12px;
619
+ border-top-color: #fff;
620
+ }
621
+ .leaflet-tooltip-bottom:before {
622
+ top: 0;
623
+ margin-top: -12px;
624
+ margin-left: -6px;
625
+ border-bottom-color: #fff;
626
+ }
627
+ .leaflet-tooltip-left {
628
+ margin-left: -6px;
629
+ }
630
+ .leaflet-tooltip-right {
631
+ margin-left: 6px;
632
+ }
633
+ .leaflet-tooltip-left:before,
634
+ .leaflet-tooltip-right:before {
635
+ top: 50%;
636
+ margin-top: -6px;
637
+ }
638
+ .leaflet-tooltip-left:before {
639
+ right: 0;
640
+ margin-right: -12px;
641
+ border-left-color: #fff;
642
+ }
643
+ .leaflet-tooltip-right:before {
644
+ left: 0;
645
+ margin-left: -12px;
646
+ border-right-color: #fff;
647
+ }
648
+
649
+ /* Printing */
650
+
651
+ @media print {
652
+ /* Prevent printers from removing background-images of controls. */
653
+ .leaflet-control {
654
+ -webkit-print-color-adjust: exact;
655
+ color-adjust: exact;
656
+ }
657
+ }
assets/leaflet/leaflet.js CHANGED
@@ -1,5 +1,5 @@
1
  /* @preserve
2
- * Leaflet 1.7.1, a JS library for interactive maps. http://leafletjs.com
3
- * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
  */
5
- !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(t.L={})}(this,function(t){"use strict";function h(t){for(var i,e,n=1,o=arguments.length;n<o;n++)for(i in e=arguments[n])t[i]=e[i];return t}var s=Object.create||function(t){return i.prototype=t,new i};function i(){}function p(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}var e=0;function m(t){return t._leaflet_id=t._leaflet_id||++e,t._leaflet_id}function n(t,i,e){var n,o,s=function(){n=!1,o&&(r.apply(e,o),o=!1)},r=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(s,i),n=!0)};return r}function o(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}function a(){return!1}function r(t,i){var e=Math.pow(10,void 0===i?6:i);return Math.round(t*e)/e}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function l(t){return u(t).split(/\s+/)}function c(t,i){for(var e in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?s(t.options):{}),i)t.options[e]=i[e];return t.options}function _(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&-1!==i.indexOf("?")?"&":"?")+n.join("&")}var d=/\{ *([\w_-]+) *\}/g;function f(t,n){return t.replace(d,function(t,i){var e=n[i];if(void 0===e)throw new Error("No value provided for variable "+t);return"function"==typeof e&&(e=e(n)),e})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function P(t){var i=+new Date,e=Math.max(0,16-(i-w));return w=i+e,window.setTimeout(t,e)}var b=window.requestAnimationFrame||x("RequestAnimationFrame")||P,T=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function M(t,i,e){if(!e||b!==P)return b.call(window,p(t,i));t.call(i)}function z(t){t&&T.call(window,t)}var C={extend:h,create:s,bind:p,lastId:e,stamp:m,throttle:n,wrapNum:o,falseFn:a,formatNum:r,trim:u,splitWords:l,setOptions:c,getParamString:_,template:f,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:b,cancelFn:T,requestAnimFrame:M,cancelAnimFrame:z};function S(){}S.extend=function(t){function i(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var e=i.__super__=this.prototype,n=s(e);for(var o in(n.constructor=i).prototype=n,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(i[o]=this[o]);return t.statics&&(h(i,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"==typeof L||!L||!L.Mixin)return;t=g(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}(t.includes),h.apply(null,[n].concat(t.includes)),delete t.includes),n.options&&(t.options=h(s(n.options),t.options)),h(n,t),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){e.callInitHooks&&e.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=n._initHooks.length;t<i;t++)n._initHooks[t].call(this)}},i},S.include=function(t){return h(this.prototype,t),this},S.mergeOptions=function(t){return h(this.prototype.options,t),this},S.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var Z={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else for(var o=0,s=(t=l(t)).length;o<s;o++)this._on(t[o],i,e);return this},off:function(t,i,e){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],i);else for(var o=0,s=(t=l(t)).length;o<s;o++)this._off(t[o],i,e);else delete this._events;return this},_on:function(t,i,e){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),e===this&&(e=void 0);for(var o={fn:i,ctx:e},s=n,r=0,a=s.length;r<a;r++)if(s[r].fn===i&&s[r].ctx===e)return;s.push(o)},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t]))if(i){if(e===this&&(e=void 0),n)for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx===e&&r.fn===i)return r.fn=a,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,s=n.length;o<s;o++)n[o].fn=a;delete this._events[t]}},fire:function(t,i,e){if(!this.listens(t,e))return this;var n=h({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,r=o.length;s<r;s++){var a=o[s];a.fn.call(a.ctx||this,n)}this._firingCount--}}return e&&this._propagateEvent(n),this},listens:function(t,i){var e=this._events&&this._events[t];if(e&&e.length)return!0;if(i)for(var n in this._eventParents)if(this._eventParents[n].listens(t,i))return!0;return!1},once:function(t,i,e){if("object"==typeof t){for(var n in t)this.once(n,t[n],i);return this}var o=p(function(){this.off(t,i,e).off(t,o,e)},this);return this.on(t,i,e).on(t,o,e)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[m(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[m(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,h({layer:t.target,propagatedFrom:t.target},t),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var E=S.extend(Z);function k(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}var B=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function A(t,i,e){return t instanceof k?t:g(t)?new k(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new k(t.x,t.y):new k(t,i,e)}function I(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function O(t,i){return!t||t instanceof I?t:new I(t,i)}function R(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function N(t,i){return t instanceof R?t:new R(t,i)}function D(t,i,e){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function j(t,i,e){return t instanceof D?t:g(t)&&"object"!=typeof t[0]?3===t.length?new D(t[0],t[1],t[2]):2===t.length?new D(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new D(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new D(t,i,e)}k.prototype={clone:function(){return new k(this.x,this.y)},add:function(t){return this.clone()._add(A(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(A(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new k(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new k(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=B(this.x),this.y=B(this.y),this},distanceTo:function(t){var i=(t=A(t)).x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){return(t=A(t)).x===this.x&&t.y===this.y},contains:function(t){return t=A(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+r(this.x)+", "+r(this.y)+")"}},I.prototype={extend:function(t){return t=A(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new k((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new k(this.min.x,this.max.y)},getTopRight:function(){return new k(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return(t=("number"==typeof t[0]||t instanceof k?A:O)(t))instanceof I?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=O(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.x<e.x,r=o.y>i.y&&n.y<e.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},R.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof D)e=i=t;else{if(!(t instanceof R))return t?this.extend(j(t)||N(t)):this;if(i=t._southWest,e=t._northEast,!i||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new D(i.lat,i.lng),this._northEast=new D(e.lat,e.lng)),this},pad:function(t){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*t,o=Math.abs(i.lng-e.lng)*t;return new R(new D(i.lat-n,i.lng-o),new D(e.lat+n,e.lng+o))},getCenter:function(){return new D((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new D(this.getNorth(),this.getWest())},getSouthEast:function(){return new D(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof D||"lat"in t?j:N)(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof R?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=N(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lat<e.lat,r=o.lng>i.lng&&n.lng<e.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=N(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}};var W,H={latLngToPoint:function(t,i){var e=this.projection.project(t),n=this.scale(i);return this.transformation._transform(e,n)},pointToLatLng:function(t,i){var e=this.scale(i),n=this.transformation.untransform(t,e);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,e=this.scale(t);return new I(this.transformation.transform(i.min,e),this.transformation.transform(i.max,e))},infinite:!(D.prototype={equals:function(t,i){return!!t&&(t=j(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+r(this.lat,t)+", "+r(this.lng,t)+")"},distanceTo:function(t){return F.distance(this,j(t))},wrap:function(){return F.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return N([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new D(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var i=this.wrapLng?o(t.lng,this.wrapLng,!0):t.lng;return new D(this.wrapLat?o(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),n=i.lat-e.lat,o=i.lng-e.lng;if(0==n&&0==o)return t;var s=t.getSouthWest(),r=t.getNorthEast();return new R(new D(s.lat-n,s.lng-o),new D(r.lat-n,r.lng-o))}},F=h({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,n=t.lat*e,o=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),r=Math.sin((i.lng-t.lng)*e/2),a=s*s+Math.cos(n)*Math.cos(o)*r*r,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}}),U=6378137,V={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,n=Math.max(Math.min(e,t.lat),-e),o=Math.sin(n*i);return new k(this.R*t.lng*i,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var i=180/Math.PI;return new D((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:new I([-(W=U*Math.PI),-W],[W,W])};function q(t,i,e,n){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=e,this._d=n}function G(t,i,e,n){return new q(t,i,e,n)}q.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new k((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};var K,Y=h({},F,{code:"EPSG:3857",projection:V,transformation:G(K=.5/(Math.PI*V.R),.5,-K,.5)}),X=h({},Y,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t,i){for(var e,n,o,s,r="",a=0,h=t.length;a<h;a++){for(e=0,n=(o=t[a]).length;e<n;e++)r+=(e?"L":"M")+(s=o[e]).x+" "+s.y;r+=i?Zt?"z":"x":""}return r||"M0 0"}var Q=document.documentElement.style,tt="ActiveXObject"in window,it=tt&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),nt=kt("webkit"),ot=kt("android"),st=kt("android 2")||kt("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),at=ot&&kt("Google")&&rt<537&&!("AudioNode"in window),ht=!!window.opera,ut=!et&&kt("chrome"),lt=kt("gecko")&&!nt&&!ht&&!tt,ct=!ut&&kt("safari"),_t=kt("phantom"),dt="OTransition"in Q,pt=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in Q,ft="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st,gt="MozPerspective"in Q,vt=!window.L_DISABLE_3D&&(mt||ft||gt)&&!dt&&!_t,yt="undefined"!=typeof orientation||kt("mobile"),xt=yt&&nt,wt=yt&&ft,Pt=!window.PointerEvent&&window.MSPointerEvent,Lt=!(!window.PointerEvent&&!Pt),bt=!window.L_NO_TOUCH&&(Lt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Tt=yt&&ht,Mt=yt&&lt,zt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Ct=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",a,i),window.removeEventListener("testPassiveEventSupport",a,i)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Zt=!(!document.createElementNS||!J("svg").createSVGRect),Et=!Zt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}();function kt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Bt={ie:tt,ielt9:it,edge:et,webkit:nt,android:ot,android23:st,androidStock:at,opera:ht,chrome:ut,gecko:lt,safari:ct,phantom:_t,opera12:dt,win:pt,ie3d:mt,webkit3d:ft,gecko3d:gt,any3d:vt,mobile:yt,mobileWebkit:xt,mobileWebkit3d:wt,msPointer:Pt,pointer:Lt,touch:bt,mobileOpera:Tt,mobileGecko:Mt,retina:zt,passiveEvents:Ct,canvas:St,svg:Zt,vml:Et},At=Pt?"MSPointerDown":"pointerdown",It=Pt?"MSPointerMove":"pointermove",Ot=Pt?"MSPointerUp":"pointerup",Rt=Pt?"MSPointerCancel":"pointercancel",Nt={},Dt=!1;function jt(t,i,e,n){function o(t){Ut(t,r)}var s,r,a,h,u,l,c,_;function d(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Ut(t,h)}return"touchstart"===i?(u=t,l=e,c=n,_=p(function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ri(t),Ut(t,l)}),u["_leaflet_touchstart"+c]=_,u.addEventListener(At,_,!1),Dt||(document.addEventListener(At,Wt,!0),document.addEventListener(It,Ht,!0),document.addEventListener(Ot,Ft,!0),document.addEventListener(Rt,Ft,!0),Dt=!0)):"touchmove"===i?(h=e,(a=t)["_leaflet_touchmove"+n]=d,a.addEventListener(It,d,!1)):"touchend"===i&&(r=e,(s=t)["_leaflet_touchend"+n]=o,s.addEventListener(Ot,o,!1),s.addEventListener(Rt,o,!1)),this}function Wt(t){Nt[t.pointerId]=t}function Ht(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function Ft(t){delete Nt[t.pointerId]}function Ut(t,i){for(var e in t.touches=[],Nt)t.touches.push(Nt[e]);t.changedTouches=[t],i(t)}var Vt=Pt?"MSPointerDown":Lt?"pointerdown":"touchstart",qt=Pt?"MSPointerUp":Lt?"pointerup":"touchend",Gt="_leaflet_";var Kt,Yt,Xt,Jt,$t,Qt,ti=fi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ii=fi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ei="webkitTransition"===ii||"OTransition"===ii?ii+"End":"transitionend";function ni(t){return"string"==typeof t?document.getElementById(t):t}function oi(t,i){var e,n=t.style[i]||t.currentStyle&&t.currentStyle[i];return n&&"auto"!==n||!document.defaultView||(n=(e=document.defaultView.getComputedStyle(t,null))?e[i]:null),"auto"===n?null:n}function si(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function ri(t){var i=t.parentNode;i&&i.removeChild(t)}function ai(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function hi(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function ui(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function li(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=pi(t);return 0<e.length&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function ci(t,i){var e;if(void 0!==t.classList)for(var n=l(i),o=0,s=n.length;o<s;o++)t.classList.add(n[o]);else li(t,i)||di(t,((e=pi(t))?e+" ":"")+i)}function _i(t,i){void 0!==t.classList?t.classList.remove(i):di(t,u((" "+pi(t)+" ").replace(" "+i+" "," ")))}function di(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function pi(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function mi(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&function(t,i){var e=!1,n="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(n)}catch(t){if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=" progid:"+n+"(opacity="+i+")"}(t,i)}function fi(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function gi(t,i,e){var n=i||new k(0,0);t.style[ti]=(mt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(e?" scale("+e+")":"")}function vi(t,i){t._leaflet_pos=i,vt?gi(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function yi(t){return t._leaflet_pos||new k(0,0)}function xi(){zi(window,"dragstart",Ri)}function wi(){Si(window,"dragstart",Ri)}function Pi(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Li(),Qt=($t=t).style.outline,t.style.outline="none",zi(window,"keydown",Li))}function Li(){$t&&($t.style.outline=Qt,Qt=$t=void 0,Si(window,"keydown",Li))}function bi(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function Ti(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}Jt="onselectstart"in document?(Xt=function(){zi(window,"selectstart",Ri)},function(){Si(window,"selectstart",Ri)}):(Yt=fi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Xt=function(){var t;Yt&&(t=document.documentElement.style,Kt=t[Yt],t[Yt]="none")},function(){Yt&&(document.documentElement.style[Yt]=Kt,Kt=void 0)});var Mi={TRANSFORM:ti,TRANSITION:ii,TRANSITION_END:ei,get:ni,getStyle:oi,create:si,remove:ri,empty:ai,toFront:hi,toBack:ui,hasClass:li,addClass:ci,removeClass:_i,setClass:di,getClass:pi,setOpacity:mi,testProp:fi,setTransform:gi,setPosition:vi,getPosition:yi,disableTextSelection:Xt,enableTextSelection:Jt,disableImageDrag:xi,enableImageDrag:wi,preventOutline:Pi,restoreOutline:Li,getSizedParentNode:bi,getScale:Ti};function zi(t,i,e,n){if("object"==typeof i)for(var o in i)ki(t,o,i[o],e);else for(var s=0,r=(i=l(i)).length;s<r;s++)ki(t,i[s],e,n);return this}var Ci="_leaflet_events";function Si(t,i,e,n){if("object"==typeof i)for(var o in i)Bi(t,o,i[o],e);else if(i)for(var s=0,r=(i=l(i)).length;s<r;s++)Bi(t,i[s],e,n);else{for(var a in t[Ci])Bi(t,a,t[Ci][a]);delete t[Ci]}return this}function Zi(){return Lt&&(!et&&!ct)}var Ei={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ki(i,t,e,n){var o=t+m(e)+(n?"_"+m(n):"");if(i[Ci]&&i[Ci][o])return this;var s,r,a,h,u,l,c=function(t){return e.call(n||i,t||window.event)},_=c;function d(t){if(Lt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(1<t.touches.length)return;var i=Date.now(),e=i-(h||i);u=t.touches?t.touches[0]:t,l=0<e&&e<=250,h=i}function p(t){if(l&&!u.cancelBubble){if(Lt){if("mouse"===t.pointerType)return;var i,e,n={};for(e in u)i=u[e],n[e]=i&&i.bind?i.bind(u):i;u=n}u.type="dblclick",u.button=0,r(u),h=null}}Lt&&0===t.indexOf("touch")?jt(i,t,c,o):bt&&"dblclick"===t&&!Zi()?(r=c,l=!1,(s=i)[Gt+Vt+(a=o)]=d,s[Gt+qt+a]=p,s[Gt+"dblclick"+a]=r,s.addEventListener(Vt,d,!!Ct&&{passive:!1}),s.addEventListener(qt,p,!!Ct&&{passive:!1}),s.addEventListener("dblclick",r,!1)):"addEventListener"in i?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?i.addEventListener(Ei[t]||t,c,!!Ct&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(c=function(t){t=t||window.event,Vi(i,t)&&_(t)},i.addEventListener(Ei[t],c,!1)):i.addEventListener(t,_,!1):"attachEvent"in i&&i.attachEvent("on"+t,c),i[Ci]=i[Ci]||{},i[Ci][o]=c}function Bi(t,i,e,n){var o,s,r,a,h,u,l,c,_=i+m(e)+(n?"_"+m(n):""),d=t[Ci]&&t[Ci][_];if(!d)return this;Lt&&0===i.indexOf("touch")?(c=(u=t)["_leaflet_"+(l=i)+_],"touchstart"===l?u.removeEventListener(At,c,!1):"touchmove"===l?u.removeEventListener(It,c,!1):"touchend"===l&&(u.removeEventListener(Ot,c,!1),u.removeEventListener(Rt,c,!1))):bt&&"dblclick"===i&&!Zi()?(r=(o=t)[Gt+Vt+(s=_)],a=o[Gt+qt+s],h=o[Gt+"dblclick"+s],o.removeEventListener(Vt,r,!!Ct&&{passive:!1}),o.removeEventListener(qt,a,!!Ct&&{passive:!1}),o.removeEventListener("dblclick",h,!1)):"removeEventListener"in t?t.removeEventListener(Ei[i]||i,d,!1):"detachEvent"in t&&t.detachEvent("on"+i,d),t[Ci][_]=null}function Ai(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Ui(t),this}function Ii(t){return ki(t,"wheel",Ai),this}function Oi(t){return zi(t,"mousedown touchstart dblclick",Ai),ki(t,"click",Fi),this}function Ri(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ni(t){return Ri(t),Ai(t),this}function Di(t,i){if(!i)return new k(t.clientX,t.clientY);var e=Ti(i),n=e.boundingClientRect;return new k((t.clientX-n.left)/e.x-i.clientLeft,(t.clientY-n.top)/e.y-i.clientTop)}var ji=pt&&ut?2*window.devicePixelRatio:lt?window.devicePixelRatio:1;function Wi(t){return et?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ji:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Hi={};function Fi(t){Hi[t.type]=!0}function Ui(t){var i=Hi[t.type];return Hi[t.type]=!1,i}function Vi(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}var qi={on:zi,off:Si,stopPropagation:Ai,disableScrollPropagation:Ii,disableClickPropagation:Oi,preventDefault:Ri,stop:Ni,getMousePosition:Di,getWheelDelta:Wi,fakeStop:Fi,skipped:Ui,isExternalTarget:Vi,addListener:zi,removeListener:Si},Gi=E.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=yi(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=M(this._animate,this),this._step()},_step:function(t){var i=new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));i&&e._round(),vi(this._el,e),this.fire("step")},_complete:function(){z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ki=E.extend({options:{crs:Y,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=c(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=p(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(j(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ii&&vt&&!Tt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),zi(this._proxy,ei,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,e){if((i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(j(t),i,this.options.maxBounds),e=e||{},this._stop(),this._loaded&&!e.reset&&!0!==e)&&(void 0!==e.animate&&(e.zoom=h({animate:e.animate},e.zoom),e.pan=h({animate:e.animate,duration:e.duration},e.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,e.zoom):this._tryAnimatedPan(t,e.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,i),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(vt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var n=this.getZoomScale(i),o=this.getSize().divideBy(2),s=(t instanceof k?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():N(t);var e=A(i.paddingTopLeft||i.padding||[0,0]),n=A(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));if((o="number"==typeof i.maxZoom?Math.min(i.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(e).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(a).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,i){if(!(t=N(t)).isValid())throw new Error("Bounds are not valid.");var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){return i=i||{},(t=A(t).round()).x||t.y?(!0===i.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Gi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate?(ci(this._mapPane,"leaflet-pan-anim"),e=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend");var e},flyTo:function(s,r,t){if(!1===(t=t||{}).animate||!vt)return this.setView(s,r,t);this._stop();var a=this.project(this.getCenter()),h=this.project(s),i=this.getSize(),u=this._zoom;s=j(s),r=void 0===r?u:r;var l=Math.max(i.x,i.y),n=l*this.getZoomScale(u,r),c=h.distanceTo(a)||1,_=1.42,o=_*_;function e(t){var i=(n*n-l*l+(t?-1:1)*o*o*c*c)/(2*(t?n:l)*o*c),e=Math.sqrt(i*i+1)-i;return e<1e-9?-18:Math.log(e)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}var m=e(0);function f(t){return l*(p(m)*(d(i=m+_*t)/p(i))-d(m))/o;var i}var g=Date.now(),v=(e(1)-m)/_,y=t.duration?1e3*t.duration:1e3*v*.8;return this._moveStart(!0,t.noMoveStart),function t(){var i,e,n=(Date.now()-g)/y,o=(i=n,(1-Math.pow(1-i,1.5))*v);n<=1?(this._flyToFrame=M(t,this),this._move(this.unproject(a.add(h.subtract(a).multiplyBy(f(o)/c)),u),this.getScaleZoom(l/(e=o,l*(p(m)/p(m+_*e))),u),{flyTo:!0})):this._move(s,r)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){return(t=N(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,N(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},panInside:function(t,i){var e,n,o=A((i=i||{}).paddingTopLeft||i.padding||[0,0]),s=A(i.paddingBottomRight||i.padding||[0,0]),r=this.getCenter(),a=this.project(r),h=this.project(t),u=this.getPixelBounds(),l=u.getSize().divideBy(2),c=O([u.min.add(o),u.max.subtract(s)]);return c.contains(h)||(this._enforcingBounds=!0,e=a.subtract(h),n=A(h.x+e.x,h.y+e.y),(h.x<c.min.x||h.x>c.max.x)&&(n.x=a.x-e.x,0<e.x?n.x+=l.x-o.x:n.x-=l.x-s.x),(h.y<c.min.y||h.y>c.max.y)&&(n.y=a.y-e.y,0<e.y?n.y+=l.y-o.y:n.y-=l.y-s.y),this.panTo(this.unproject(n),i),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=h({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var e=this.getSize(),n=i.divideBy(2).round(),o=e.divideBy(2).round(),s=n.subtract(o);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(p(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=h({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=p(this._handleGeolocationResponse,this),e=p(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,e,t):navigator.geolocation.getCurrentPosition(i,e,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i,e=new D(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),o=this._locateOptions;o.setView&&(i=this.getBoundsZoom(n),this.setView(e,o.maxZoom?Math.min(i,o.maxZoom):i));var s={latlng:e,bounds:n,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ri(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ri(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e=si("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=N(t),e=A(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=O(this.project(a,n),this.project(r,n)).getSize(),l=vt?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_),n=this.getScaleZoom(d,n);return l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new I(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(j(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(A(t),i)},layerPointToLatLng:function(t){var i=A(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(j(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,i){return this.options.crs.distance(j(t),j(i))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return Di(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=ni(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");zi(i,"scroll",this._onScroll,this),this._containerId=m(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,ci(t,"leaflet-container"+(bt?" leaflet-touch":"")+(zt?" leaflet-retina":"")+(it?" leaflet-oldie":"")+(ct?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=oi(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),vi(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ci(t.markerPane,"leaflet-zoom-hide"),ci(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){vi(this._mapPane,new k(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){vi(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var i=t?Si:zi;i((this._targets[m(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=M(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,r=!1;s;){if((e=this._targets[m(s)])&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){r=!0;break}if(e&&e.listens(i,!0)){if(o&&!Vi(s,t))break;if(n.push(e),o)break}if(s===this._container)break;s=s.parentNode}return n.length||r||o||!Vi(s,t)||(n=[this]),n},_handleDOMEvent:function(t){var i;this._loaded&&!Ui(t)&&("mousedown"!==(i=t.type)&&"keypress"!==i&&"keyup"!==i&&"keydown"!==i||Pi(t.target||t.srcElement),this._fireDOMEvent(t,i))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,e){var n;if("click"===t.type&&((n=h({},t)).type="preclick",this._fireDOMEvent(n,n.type,e)),!t._stopped&&(e=(e||[]).concat(this._findEventTargets(t,i))).length){var o=e[0];"contextmenu"===i&&o.listens(i,!0)&&Ri(t);var s,r={originalEvent:t};"keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(s=o.getLatLng&&(!o._radius||o._radius<=10),r.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?o.getLatLng():this.layerPointToLatLng(r.layerPoint));for(var a=0;a<e.length;a++)if(e[a].fire(i,r,!0),r.originalEvent._stopped||!1===e[a].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return yi(this._mapPane)||new k(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return O([this.project(t.getSouthWest(),i)._subtract(n),this.project(t.getNorthWest(),i)._subtract(n),this.project(t.getSouthEast(),i)._subtract(n),this.project(t.getNorthEast(),i)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e)return t;var n=this.project(t,i),o=this.getSize().divideBy(2),s=new I(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,e,i);return r.round().equals([0,0])?t:this.unproject(n.add(r),i)},_limitOffset:function(t,i){if(!i)return t;var e=this.getPixelBounds(),n=new I(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(n,i))},_getBoundsOffset:function(t,i,e){var n=O(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),o=n.min.subtract(t.min),s=n.max.subtract(t.max);return new k(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,i){return 0<t+i?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=vt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){_i(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=si("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var i=ti,e=this._proxy.style[i];gi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ri(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();gi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(o))&&(M(function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,ci(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),setTimeout(p(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&_i(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),M(function(){this._moveEnd(!0)},this))}});function Yi(t){return new Xi(t)}var Xi=S.extend({options:{position:"topright"},initialize:function(t){c(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return ci(i,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(ri(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}});Ki.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var n=this._controlCorners={},o="leaflet-",s=this._controlContainer=si("div",o+"control-container",this._container);function t(t,i){var e=o+t+" "+o+i;n[t+i]=si("div",e,s)}t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ri(this._controlCorners[t]);ri(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ji=Xi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){for(var n in c(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Xi.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(m(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){ci(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ci(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):_i(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return _i(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=si("div",t),e=this.options.collapsed;i.setAttribute("aria-haspopup",!0),Oi(i),Ii(i);var n=this._section=si("section",t+"-list");e&&(this._map.on("click",this.collapse,this),ot||zi(i,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=si("a",t+"-toggle",i);o.href="#",o.title="Layers",bt?(zi(o,"click",Ni),zi(o,"click",this.expand,this)):zi(o,"focus",this.expand,this),e||this.expand(),this._baseLayersList=si("div",t+"-base",n),this._separator=si("div",t+"-separator",n),this._overlaysList=si("div",t+"-overlays",n),i.appendChild(n)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&m(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,e){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:e}),this.options.sortLayers&&this._layers.sort(p(function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ai(this._baseLayersList),ai(this._overlaysList),this._layerControlInputs=[];for(var t,i,e,n=0,o=0;o<this._layers.length;o++)e=this._layers[o],this._addItem(e),i=i||e.overlay,t=t||!e.overlay,n+=e.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<n,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(m(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers_"+m(this),n),this._layerControlInputs.push(i),i.layerId=m(t.layer),zi(i,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("div");return e.appendChild(s),s.appendChild(i),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;0<=s;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;0<=o;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),$i=Xi.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=si("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=si("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),Oi(s),zi(s,"click",Ni),zi(s,"click",o,this),zi(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";_i(this._zoomInButton,i),_i(this._zoomOutButton,i),!this._disabled&&t._zoom!==t.getMinZoom()||ci(this._zoomOutButton,i),!this._disabled&&t._zoom!==t.getMaxZoom()||ci(this._zoomInButton,i)}});Ki.mergeOptions({zoomControl:!0}),Ki.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new $i,this.addControl(this.zoomControl))});var Qi=Xi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=si("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=si("div",i,e)),t.imperial&&(this._iScale=si("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;5280<o?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return i*(e=10<=e?10:5<=e?5:3<=e?3:2<=e?2:1)}}),te=Xi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){c(this,t),this._attributions={}},onAdd:function(t){for(var i in(t.attributionControl=this)._container=si("div","leaflet-control-attribution"),Oi(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});Ki.mergeOptions({attributionControl:!0}),Ki.addInitHook(function(){this.options.attributionControl&&(new te).addTo(this)});Xi.Layers=Ji,Xi.Zoom=$i,Xi.Scale=Qi,Xi.Attribution=te,Yi.layers=function(t,i,e){return new Ji(t,i,e)},Yi.zoom=function(t){return new $i(t)},Yi.scale=function(t){return new Qi(t)},Yi.attribution=function(t){return new te(t)};var ie=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});ie.addTo=function(t,i){return t.addHandler(i,this),this};var ee,ne={Events:Z},oe=bt?"touchstart mousedown":"mousedown",se={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},re={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},ae=E.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){c(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(zi(this._dragStartTarget,oe,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ae._dragging===this&&this.finishDrag(),Si(this._dragStartTarget,oe,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var i,e;!t._simulated&&this._enabled&&(this._moved=!1,li(this._element,"leaflet-zoom-anim")||ae._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((ae._dragging=this)._preventOutline&&Pi(this._element),xi(),Xt(),this._moving||(this.fire("down"),i=t.touches?t.touches[0]:t,e=bi(this._element),this._startPoint=new k(i.clientX,i.clientY),this._parentScale=Ti(e),zi(document,re[t.type],this._onMove,this),zi(document,se[t.type],this._onUp,this))))},_onMove:function(t){var i,e;!t._simulated&&this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:((e=new k((i=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,i.clientY)._subtract(this._startPoint)).x||e.y)&&(Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,Ri(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=yi(this._element).subtract(e),ci(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ci(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,z(this._animRequest),this._lastEvent=t,this._animRequest=M(this._updatePosition,this,!0))))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),vi(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in _i(document.body,"leaflet-dragging"),this._lastTarget&&(_i(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),re)Si(document,re[t],this._onMove,this),Si(document,se[t],this._onUp,this);wi(),Jt(),this._moved&&this._moving&&(z(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,ae._dragging=!1}});function he(t,i){if(!i||!t.length)return t.slice();var e=i*i;return t=function(t,i){var e=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(e);n[0]=n[e-1]=1,function t(i,e,n,o,s){var r,a,h,u=0;for(a=o+1;a<=s-1;a++)h=de(i[a],i[o],i[s],!0),u<h&&(r=a,u=h);n<u&&(e[r]=1,t(i,e,n,o,r),t(i,e,n,r,s))}(t,n,i,0,e-1);var o,s=[];for(o=0;o<e;o++)n[o]&&s.push(t[o]);return s}(t=function(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;n<s;n++)(function(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n})(t[n],t[o])>i&&(e.push(t[n]),o=n);o<s-1&&e.push(t[s-1]);return e}(t,e),e)}function ue(t,i,e){return Math.sqrt(de(t,i,e,!0))}function le(t,i,e,n,o){var s,r,a,h=n?ee:_e(t,e),u=_e(i,e);for(ee=u;;){if(!(h|u))return[t,i];if(h&u)return!1;a=_e(r=ce(t,i,s=h||u,e,o),e),s===h?(t=r,h=a):(i=r,u=a)}}function ce(t,i,e,n,o){var s,r,a=i.x-t.x,h=i.y-t.y,u=n.min,l=n.max;return 8&e?(s=t.x+a*(l.y-t.y)/h,r=l.y):4&e?(s=t.x+a*(u.y-t.y)/h,r=u.y):2&e?(s=l.x,r=t.y+h*(l.x-t.x)/a):1&e&&(s=u.x,r=t.y+h*(u.x-t.x)/a),new k(s,r,o)}function _e(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function de(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return 0<u&&(1<(o=((t.x-s)*a+(t.y-r)*h)/u)?(s=e.x,r=e.y):0<o&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new k(s,r)}function pe(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function me(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pe(t)}var fe={simplify:he,pointToSegmentDistance:ue,closestPointOnSegment:function(t,i,e){return de(t,i,e)},clipSegment:le,_getEdgeIntersection:ce,_getBitCode:_e,_sqClosestPointOnSegment:de,isFlat:pe,_flat:me};function ge(t,i,e){for(var n,o,s,r,a,h,u,l=[1,4,2,8],c=0,_=t.length;c<_;c++)t[c]._code=_e(t[c],i);for(s=0;s<4;s++){for(h=l[s],n=[],c=0,o=(_=t.length)-1;c<_;o=c++)r=t[c],a=t[o],r._code&h?a._code&h||((u=ce(a,r,h,i,e))._code=_e(u,i),n.push(u)):(a._code&h&&((u=ce(a,r,h,i,e))._code=_e(u,i),n.push(u)),n.push(r));t=n}return t}var ve,ye={clipPolygon:ge},xe={project:function(t){return new k(t.lng,t.lat)},unproject:function(t){return new D(t.y,t.x)},bounds:new I([-180,-90],[180,90])},we={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,n=t.lat*i,o=this.R_MINOR/e,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2),n=-e*Math.log(Math.max(a,1e-10));return new k(t.lng*i*e,n)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,u=.1;h<15&&1e-7<Math.abs(u);h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=u=Math.PI/2-2*Math.atan(r*i)-a;return new D(a*e,t.x*e/n)}},Pe={LonLat:xe,Mercator:we,SphericalMercator:V},Le=h({},F,{code:"EPSG:3395",projection:we,transformation:G(ve=.5/(Math.PI*we.R),.5,-ve,.5)}),be=h({},F,{code:"EPSG:4326",projection:xe,transformation:G(1/180,1,-1/180,.5)}),Te=h({},H,{projection:xe,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});H.Earth=F,H.EPSG3395=Le,H.EPSG3857=Y,H.EPSG900913=X,H.EPSG4326=be,H.Simple=Te;var Me=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[m(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[m(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i,e=t.target;e.hasLayer(this)&&(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents&&(i=this.getEvents(),e.on(i,this),this.once("remove",function(){e.off(i,this)},this)),this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this}))}});Ki.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=m(t);return this._layers[i]||((this._layers[i]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=m(t);return this._layers[i]&&(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&m(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?g(t)?t:[t]:[]).length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[m(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=m(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,e=this._getZoomSpan();for(var n in this._zoomBoundLayers)var o=this._zoomBoundLayers[n].options,t=void 0===o.minZoom?t:Math.min(t,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom);this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,e!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ze=Me.extend({initialize:function(t,i){var e,n;if(c(this,i),this._layers={},t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return!!t&&("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)(e=this._layers[i])[t]&&e[t].apply(e,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:m}),Ce=ze.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),ze.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),ze.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}}),Se=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){c(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(e,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,i){var e=this.options,n=e[i+"Size"];"number"==typeof n&&(n=[n,n]);var o=A(n),s=A("shadow"===i&&e.shadowAnchor||e.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,i){return(i=i||document.createElement("img")).src=t,i},_getIconUrl:function(t){return zt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Ze=Se.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Ze.imagePath||(Ze.imagePath=this._detectIconPath()),(this.options.imagePath||Ze.imagePath)+Se.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=si("div","leaflet-default-icon-path",document.body),i=oi(t,"background-image")||oi(t,"backgroundImage");return document.body.removeChild(t),i=null===i||0!==i.indexOf("url")?"":i.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Ee=ie.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ae(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ci(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&_i(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i,e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,r=yi(e._icon),a=n.getPixelBounds(),h=n.getPixelOrigin(),u=O(a.min._subtract(h).add(s),a.max._subtract(h).subtract(s));u.contains(r)||(i=A((Math.max(u.max.x,r.x)-u.max.x)/(a.max.x-u.max.x)-(Math.min(u.min.x,r.x)-u.min.x)/(a.min.x-u.min.x),(Math.max(u.max.y,r.y)-u.max.y)/(a.max.y-u.max.y)-(Math.min(u.min.y,r.y)-u.min.y)/(a.min.y-u.min.y)).multiplyBy(o),n.panBy(i,{animate:!1}),this._draggable._newPos._add(i),this._draggable._startPos._add(i),vi(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=M(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(z(this._panRequest),this._panRequest=M(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,e=i._shadow,n=yi(i._icon),o=i._map.layerPointToLatLng(n);e&&vi(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ke=Me.extend({options:{icon:new Ze,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){c(this,i),this._latlng=j(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=j(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),e=t.icon.createIcon(this._icon),n=!1;e!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),"IMG"===e.tagName&&(e.alt=t.alt||"")),ci(e,i),t.keyboard&&(e.tabIndex="0"),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(ci(o,i),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ri(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ri(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&vi(this._icon,t),this._shadow&&vi(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){var t;this.options.interactive&&(ci(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ee&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ee(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&mi(this._icon,t),this._shadow&&mi(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var Be=Me.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return c(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),Ae=Be.extend({options:{fill:!0,radius:10},initialize:function(t,i){c(this,i),this._latlng=j(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=j(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return Be.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),n=[t+e,i+e];this._pxBounds=new I(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Ie=Ae.extend({initialize:function(t,i,e){if("number"==typeof i&&(i=h({},e,{radius:i})),c(this,i),this._latlng=j(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Be.prototype.setStyle,_project:function(){var t,i,e,n,o,s,r,a,h=this._latlng.lng,u=this._latlng.lat,l=this._map,c=l.options.crs;c.distance===F.distance?(t=Math.PI/180,i=this._mRadius/F.R/t,e=l.project([u+i,h]),n=l.project([u-i,h]),o=e.add(n).divideBy(2),s=l.unproject(o).lat,r=Math.acos((Math.cos(i*t)-Math.sin(u*t)*Math.sin(s*t))/(Math.cos(u*t)*Math.cos(s*t)))/t,!isNaN(r)&&0!==r||(r=i/Math.cos(Math.PI/180*u)),this._point=o.subtract(l.getPixelOrigin()),this._radius=isNaN(r)?0:o.x-l.project([s,h-r]).x,this._radiusY=o.y-e.y):(a=c.unproject(c.project(this._latlng).subtract([this._mRadius,0])),this._point=l.latLngToLayerPoint(this._latlng),this._radius=this._point.x-l.latLngToLayerPoint(a).x),this._updateBounds()}});var Oe=Be.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){c(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,e,n=1/0,o=null,s=de,r=0,a=this._parts.length;r<a;r++)for(var h=this._parts[r],u=1,l=h.length;u<l;u++){var c=s(t,i=h[u-1],e=h[u],!0);c<n&&(n=c,o=s(t,i,e))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a=this._rings[0],h=a.length;if(!h)return null;for(i=t=0;t<h-1;t++)i+=a[t].distanceTo(a[t+1])/2;if(0===i)return this._map.layerPointToLatLng(a[0]);for(n=t=0;t<h-1;t++)if(o=a[t],s=a[t+1],i<(n+=e=o.distanceTo(s)))return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=j(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return pe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=pe(t),n=0,o=t.length;n<o;n++)e?(i[n]=j(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new k(t,t);this._pxBounds=new I([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)])},_projectLatlngs:function(t,i,e){var n,o,s=t[0]instanceof D,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,e,n,o,s=this._parts,r=0,a=0,h=this._rings.length;r<h;r++)for(i=0,e=(o=this._rings[r]).length;i<e-1;i++)(n=le(o[i],o[i+1],t,i,!0))&&(s[a]=s[a]||[],s[a].push(n[0]),n[1]===o[i+1]&&i!==e-2||(s[a].push(n[1]),a++))},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=he(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,s=this._parts.length;e<s;e++)for(n=0,o=(r=(a=this._parts[e]).length)-1;n<r;o=n++)if((i||0!==n)&&ue(t,a[o],a[n])<=h)return!0;return!1}});Oe._flat=me;var Re=Oe.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a,h,u=this._rings[0],l=u.length;if(!l)return null;for(t=s=r=a=0,i=l-1;t<l;i=t++)e=u[t],n=u[i],o=e.y*n.x-n.y*e.x,r+=(e.x+n.x)*o,a+=(e.y+n.y)*o,s+=3*o;return h=0===s?u[0]:[r/s,a/s],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var i=Oe.prototype._convertLatLngs.call(this,t),e=i.length;return 2<=e&&i[0]instanceof D&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){Oe.prototype._setLatLngs.call(this,t),pe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pe(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new k(i,i),t=new I(t.min.subtract(e),t.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;o<s;o++)(n=ge(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,h,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(h=(i=this._parts[o]).length)-1;s<h;r=s++)e=i[s],n=i[r],e.y>t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||Oe.prototype._containsPoint.call(this,t,!0)}});var Ne=Ce.extend({initialize:function(t,i){c(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=g(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)((n=o[i]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=De(t,s);return r?(r.feature=qe(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=h({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(t){this._setLayerStyle(t,i)},this)},_setLayerStyle:function(t,i){t.setStyle&&("function"==typeof i&&(i=i(t.feature)),t.setStyle(i))}});function De(t,i){var e,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],u=i&&i.pointToLayer,l=i&&i.coordsToLatLng||We;if(!a&&!r)return null;switch(r.type){case"Point":return je(u,t,e=l(a),i);case"MultiPoint":for(o=0,s=a.length;o<s;o++)e=l(a[o]),h.push(je(u,t,e,i));return new Ce(h);case"LineString":case"MultiLineString":return n=He(a,"LineString"===r.type?0:1,l),new Oe(n,i);case"Polygon":case"MultiPolygon":return n=He(a,"Polygon"===r.type?1:2,l),new Re(n,i);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var c=De({geometry:r.geometries[o],type:"Feature",properties:t.properties},i);c&&h.push(c)}return new Ce(h);default:throw new Error("Invalid GeoJSON object.")}}function je(t,i,e,n){return t?t(i,e):new ke(e,n&&n.markersInheritOptions&&n)}function We(t){return new D(t[1],t[0],t[2])}function He(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?He(t[s],i-1,e):(e||We)(t[s]),o.push(n);return o}function Fe(t,i){return i="number"==typeof i?i:6,void 0!==t.alt?[r(t.lng,i),r(t.lat,i),r(t.alt,i)]:[r(t.lng,i),r(t.lat,i)]}function Ue(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?Ue(t[s],i-1,e,n):Fe(t[s],n));return!i&&e&&o.push(o[0]),o}function Ve(t,i){return t.feature?h({},t.feature,{geometry:i}):qe(i)}function qe(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Ge={toGeoJSON:function(t){return Ve(this,{type:"Point",coordinates:Fe(this.getLatLng(),t)})}};function Ke(t,i){return new Ne(t,i)}ke.include(Ge),Ie.include(Ge),Ae.include(Ge),Oe.include({toGeoJSON:function(t){var i=!pe(this._latlngs);return Ve(this,{type:(i?"Multi":"")+"LineString",coordinates:Ue(this._latlngs,i?1:0,!1,t)})}}),Re.include({toGeoJSON:function(t){var i=!pe(this._latlngs),e=i&&!pe(this._latlngs[0]),n=Ue(this._latlngs,e?2:i?1:0,!0,t);return i||(n=[n]),Ve(this,{type:(e?"Multi":"")+"Polygon",coordinates:n})}}),ze.include({toMultiPoint:function(i){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON(i).geometry.coordinates)}),Ve(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(n){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(n);var o="GeometryCollection"===t,s=[];return this.eachLayer(function(t){var i,e;t.toGeoJSON&&(i=t.toGeoJSON(n),o?s.push(i.geometry):"FeatureCollection"===(e=qe(i)).type?s.push.apply(s,e.features):s.push(e))}),o?Ve(this,{geometries:s,type:"GeometryCollection"}):{type:"FeatureCollection",features:s}}});var Ye=Ke,Xe=Me.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t,this._bounds=N(i),c(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ci(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ri(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&hi(this._image),this},bringToBack:function(){return this._map&&ui(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=N(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:si("img");ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onload=p(this.fire,this,"load"),i.onerror=p(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;gi(this._image,e,i)},_reset:function(){var t=this._image,i=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();vi(t,i.min),t.style.width=e.x+"px",t.style.height=e.y+"px"},_updateOpacity:function(){mi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),Je=Xe.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:si("video");if(ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onloadeddata=p(this.fire,this,"load"),t){for(var e=i.getElementsByTagName("source"),n=[],o=0;o<e.length;o++)n.push(e[o].src);this._url=0<e.length?n:[i.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted;for(var s=0;s<this._url.length;s++){var r=si("source");r.src=this._url[s],i.appendChild(r)}}}});var $e=Xe.extend({_initImage:function(){var t=this._image=this._url;ci(t,"leaflet-image-layer"),this._zoomAnimated&&ci(t,"leaflet-zoom-animated"),this.options.className&&ci(t,this.options.className),t.onselectstart=a,t.onmousemove=a}});var Qe=Me.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,i){c(this,t),this._source=i},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&mi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&mi(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(mi(this._container,0),this._removeTimeout=setTimeout(p(ri,void 0,this._container),200)):ri(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=j(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&hi(this._container),this},bringToBack:function(){return this._map&&ui(this._container),this},_prepareOpen:function(t,i,e){if(i instanceof Me||(e=i,i=t),i instanceof Ce)for(var n in t._layers){i=t._layers[n];break}if(!e)if(i.getCenter)e=i.getCenter();else{if(!i.getLatLng)throw new Error("Unable to get source layer LatLng.");e=i.getLatLng()}return this._source=i,this.update(),e},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){var t,i,e,n,o;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),i=A(this.options.offset),e=this._getAnchor(),this._zoomAnimated?vi(this._container,t.add(e)):i=i.add(t).add(e),n=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x,this._container.style.bottom=n+"px",this._container.style.left=o+"px")},_getAnchor:function(){return[0,0]}}),tn=Qe.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Qe.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Be||this._source.on("preclick",Ai))},onRemove:function(t){Qe.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Be||this._source.off("preclick",Ai))},getEvents:function(){var t=Qe.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,i="leaflet-popup",e=this._container=si("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=si("div",i+"-content-wrapper",e);this._contentNode=si("div",i+"-content",n),Oi(e),Ii(this._contentNode),zi(e,"contextmenu",Ai),this._tipContainer=si("div",i+"-tip-container",e),this._tip=si("div",i+"-tip",this._tipContainer),this.options.closeButton&&((t=this._closeButton=si("a",i+"-close-button",e)).href="#close",t.innerHTML="&#215;",zi(t,"click",this._onCloseButtonClick,this))},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var e=t.offsetWidth,e=Math.min(e,this.options.maxWidth);e=Math.max(e,this.options.minWidth),i.width=e+1+"px",i.whiteSpace="",i.height="";var n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&o<n?(i.height=o+"px",ci(t,s)):_i(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();vi(this._container,i.add(e))},_adjustPan:function(){var t,i,e,n,o,s,r,a,h,u,l,c;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),t=this._map,i=parseInt(oi(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,(o=new k(this._containerLeft,-e-this._containerBottom))._add(yi(this._container)),s=t.layerPointToContainerPoint(o),r=A(this.options.autoPanPadding),a=A(this.options.autoPanPaddingTopLeft||r),h=A(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),c=l=0,s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c]))},_onCloseButtonClick:function(t){this._close(),Ni(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ki.mergeOptions({closePopupOnClick:!0}),Ki.include({openPopup:function(t,i,e){return t instanceof tn||(t=new tn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Me.include({bindPopup:function(t,i){return t instanceof tn?(c(t,i),(this._popup=t)._source=this):(this._popup&&!i||(this._popup=new tn(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){return this._popup&&this._map&&(i=this._popup._prepareOpen(this,t,i),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;this._popup&&this._map&&(Ni(t),i instanceof Be?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var en=Qe.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Qe.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Qe.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Qe.prototype.getEvents.call(this);return bt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=si("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e=this._map,n=this._container,o=e.latLngToContainerPoint(e.getCenter()),s=e.layerPointToContainerPoint(t),r=this.options.direction,a=n.offsetWidth,h=n.offsetHeight,u=A(this.options.offset),l=this._getAnchor(),c="top"===r?(i=a/2,h):"bottom"===r?(i=a/2,0):(i="center"===r?a/2:"right"===r?0:"left"===r?a:s.x<o.x?(r="right",0):(r="left",a+2*(u.x+l.x)),h/2);t=t.subtract(A(i,c,!0)).add(u).add(l),_i(n,"leaflet-tooltip-right"),_i(n,"leaflet-tooltip-left"),_i(n,"leaflet-tooltip-top"),_i(n,"leaflet-tooltip-bottom"),ci(n,"leaflet-tooltip-"+r),vi(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&mi(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ki.include({openTooltip:function(t,i,e){return t instanceof en||(t=new en(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Me.include({bindTooltip:function(t,i){return t instanceof en?(c(t,i),(this._tooltip=t)._source=this):(this._tooltip&&!i||(this._tooltip=new en(i,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var i,e;!t&&this._tooltipHandlersAdded||(i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),bt&&(e.click=this._openTooltip)),this[i](e),this._tooltipHandlersAdded=!t)},openTooltip:function(t,i){return this._tooltip&&this._map&&(i=this._tooltip._prepareOpen(this,t,i),this._map.openTooltip(this._tooltip,i),this._tooltip.options.interactive&&this._tooltip._container&&(ci(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(_i(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var i=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(i,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,e,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),e=this._map.containerPointToLayerPoint(i),n=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(n)}});var nn=Se.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i,e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;return n.html instanceof Element?(ai(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos&&(i=A(n.bgPos),e.style.backgroundPosition=-i.x+"px "+-i.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Se.Default=Ze;var on=Me.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){c(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ri(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(hi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ui(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=n(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof k?t:new k(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-1/0,1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!it){mi(this._container,this.options.opacity);var t=+new Date,i=!1,e=!1;for(var n in this._tiles){var o,s=this._tiles[n];s.current&&s.loaded&&(o=Math.min(1,(t-s.loaded)/200),mi(s.el,o),o<1?i=!0:(s.active?e=!0:this._onOpaqueTile(s),s.active=!0))}e&&!this._noPrune&&this._pruneTiles(),i&&(z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this))}},_onOpaqueTile:a,_initContainer:function(){this._container||(this._container=si("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var e in this._levels)e=Number(e),this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(ri(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=si("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),a(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(this._map){var t,i,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles){(e=this._tiles[t]).current&&!e.active&&(i=e.coords,this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2))}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ri(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,e,n){var o=Math.floor(t/2),s=Math.floor(i/2),r=e-1,a=new k(+o,+s);a.z=+r;var h=this._tileCoordsToKey(a),u=this._tiles[h];return u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n<r&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new k(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=Math.round(i),o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,i,e){var n=this._map.getZoomScale(e,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i,e)).round();vt?gi(t.el,o,n):vi(t.el,o)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),n=i.getZoomScale(e,this._tileZoom),o=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(2*n);return new I(o.subtract(s),o.add(s))},_update:function(t){var i=this._map;if(i){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,h=new I(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var l=this._tiles[u].coords;l.z===this._tileZoom&&h.contains(new k(l.x,l.y))||(this._tiles[u].current=!1)}if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d,p=new k(_,c);p.z=this._tileZoom,this._isValidTile(p)&&((d=this._tiles[this._tileCoordsToKey(p)])?d.current=!0:r.push(p))}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));for(var m=document.createDocumentFragment(),_=0;_<r.length;_++)this._addTile(r[_],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return N(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[i.unproject(n,t.z),i.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new R(i[0],i[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new k(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(ri(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ci(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=a,t.onmousemove=a,it&&this.options.opacity<1&&mi(t,this.options.opacity),ot&&!st&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),p(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&M(p(this._tileReady,this,t,null,o)),vi(o,e),this._tiles[n]={el:o,coords:t,current:!0},i.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,i,e){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(mi(e.el,0),z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(ci(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),it||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(p(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new k(this._wrapX?o(t.x,this._wrapX):t.x,this._wrapY?o(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new I(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var sn=on.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,(i=c(this,i)).detectRetina&&zt&&0<i.maxZoom&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),ot||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var e=document.createElement("img");return zi(e,"load",p(this._tileOnLoad,this,i,e)),zi(e,"error",p(this._tileOnError,this,i,e)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e.alt="",e.setAttribute("role","presentation"),e.src=this.getTileUrl(t),e},getTileUrl:function(t){var i,e={r:zt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(i=this._globalTileRange.max.y-t.y,this.options.tms&&(e.y=i),e["-y"]=i),f(this._url,h(e,this.options))},_tileOnLoad:function(t,i){it?setTimeout(p(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom;return this.options.zoomReverse&&(t=i-t),t+this.options.zoomOffset},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=a,i.onerror=a,i.complete||(i.src=y,ri(i),delete this._tiles[t]))},_removeTile:function(t){var i=this._tiles[t];if(i)return at||i.el.setAttribute("src",y),on.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(this._map&&(!e||e.getAttribute("src")!==y))return on.prototype._tileReady.call(this,t,i,e)}});function rn(t,i){return new sn(t,i)}var an=sn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var e=h({},this.defaultWmsParams);for(var n in i)n in this.options||(e[n]=i[n]);var o=(i=c(this,i)).detectRetina&&zt?2:1,s=this.getTileSize();e.width=s.x*o,e.height=s.y*o,this.wmsParams=e},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[i]=this._crs.code,sn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,n=O(e.project(i[0]),e.project(i[1])),o=n.min,s=n.max,r=(1.3<=this._wmsVersion&&this._crs===be?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=sn.prototype.getTileUrl.call(this,t);return a+_(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,i){return h(this.wmsParams,t),i||this.redraw(),this}});sn.WMS=an,rn.wms=function(t,i){return new an(t,i)};var hn=Me.extend({options:{padding:.1,tolerance:0},initialize:function(t){c(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ci(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=yi(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i).subtract(s),a=o.multiplyBy(-e).add(n).add(o).subtract(r);vt?gi(this._container,a,e):vi(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new I(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),un=hn.extend({getEvents:function(){var t=hn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){hn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");zi(t,"mousemove",this._onMouseMove,this),zi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),zi(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,ri(this._container),Si(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,i,e,n;this._map._animatingZoom&&this._bounds||(hn.prototype._update.call(this),t=this._bounds,i=this._container,e=t.getSize(),n=zt?2:1,vi(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",zt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){hn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var i=(this._layers[m(t)]=t)._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,n=i.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[m(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var i,e=t.options.dashArray.split(/[, ]+/),n=[],o=0;o<e.length;o++){if(i=Number(e[o]),isNaN(i))return;n.push(i)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||M(this._redraw,this))},_extendRedrawBounds:function(t){var i;t._pxBounds&&(i=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,i=this._redrawBounds;i?(t=i.getSize(),this._ctx.clearRect(i.min.x,i.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,i,e=this._redrawBounds;this._ctx.save(),e&&(i=e.getSize(),this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(h.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)s=r[e][n],h[n?"lineTo":"moveTo"](s.x,s.y);i&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){var i,e,n,o;this._drawing&&!t._empty()&&(i=t._point,e=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!=o&&e.restore(),this._fillStroke(e,t))},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(n)&&(("click"===t.type||"preclick"!==t.type)&&this._map._draggableMoved(i)||(e=i));e&&(Fi(t),this._fireEvent([e],t))},_onMouseMove:function(t){var i;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(i=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,i))},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(_i(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var e,n,o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(ci(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(p(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i,e,n=t._order;n&&(i=n.next,e=n.prev,i&&((i.prev=e)?e.next=i:i&&(this._drawFirst=i),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var i,e,n=t._order;n&&(i=n.next,(e=n.prev)&&((e.next=i)?i.prev=e:e&&(this._drawLast=e),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function ln(t){return St?new un(t):null}var cn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_n={_initContainer:function(){this._container=si("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(hn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=cn("shape");ci(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=cn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;ri(i),t.removeInteractiveTarget(i),delete this._layers[m(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i=i||(t._stroke=cn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e=e||(t._fill=cn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){hi(t._container)},_bringToBack:function(t){ui(t._container)}},dn=Et?cn:J,pn=hn.extend({getEvents:function(){var t=hn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=dn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=dn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ri(this._container),Si(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){var t,i,e;this._map._animatingZoom&&this._bounds||(hn.prototype._update.call(this),i=(t=this._bounds).getSize(),e=this._container,this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),vi(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update"))},_initPath:function(t){var i=t._path=dn("path");t.options.className&&ci(i,t.options.className),t.options.interactive&&ci(i,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ri(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,$(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,o)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){hi(t._path)},_bringToBack:function(t){ui(t._path)}});function mn(t){return Zt||Et?new pn(t):null}Et&&pn.include(_n),Ki.include({getRenderer:function(t){var i=(i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&ln(t)||mn(t)}});var fn=Re.extend({initialize:function(t,i){Re.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=N(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});pn.create=dn,pn.pointsToPath=$,Ne.geometryToLayer=De,Ne.coordsToLatLng=We,Ne.coordsToLatLngs=He,Ne.latLngToCoords=Fe,Ne.latLngsToCoords=Ue,Ne.getFeature=Ve,Ne.asFeature=qe,Ki.mergeOptions({boxZoom:!0});var gn=ie.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){zi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Si(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ri(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Xt(),xi(),this._startPoint=this._map.mouseEventToContainerPoint(t),zi(document,{contextmenu:Ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=si("div","leaflet-zoom-box",this._container),ci(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new I(this._point,this._startPoint),e=i.getSize();vi(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(ri(this._box),_i(this._container,"leaflet-crosshair")),Jt(),wi(),Si(document,{contextmenu:Ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){var i;1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(p(this._resetState,this),0),i=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})))},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ki.addInitHook("addHandler","boxZoom",gn),Ki.mergeOptions({doubleClickZoom:!0});var vn=ie.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});Ki.addInitHook("addHandler","doubleClickZoom",vn),Ki.mergeOptions({dragging:!0,inertia:!st,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yn=ie.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new ae(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),ci(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){_i(this._map._container,"leaflet-grab"),_i(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,i=this._map;i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=N(this._map.options.maxBounds),this._offsetLimit=O(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var i,e;this._map.options.inertia&&(i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(e),this._times.push(i),this._prunePositions(i)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){var t,i;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit,t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)<Math.abs(s+e)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var i,e,n,o,s,r,a,h,u,l=this._map,c=l.options,_=!c.inertia||this._times.length<2;l.fire("dragend",t),_?l.fire("moveend"):(this._prunePositions(+new Date),i=this._lastPos.subtract(this._positions[0]),e=(this._lastTime-this._times[0])/1e3,n=c.easeLinearity,s=(o=i.multiplyBy(n/e)).distanceTo([0,0]),r=Math.min(c.inertiaMaxSpeed,s),a=o.multiplyBy(r/s),h=r/(c.inertiaDeceleration*n),(u=a.multiplyBy(-h/2).round()).x||u.y?(u=l._limitOffset(u,l.options.maxBounds),M(function(){l.panBy(u,{duration:h,easeLinearity:n,noMoveStart:!0,animate:!0})})):l.fire("moveend"))}});Ki.addInitHook("addHandler","dragging",yn),Ki.mergeOptions({keyboard:!0,keyboardPanDelta:80});var xn=ie.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),zi(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Si(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,i,e,n;this._focused||(t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,n=t.scrollLeft||i.scrollLeft,this._map._container.focus(),window.scrollTo(n,e))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var i=this._panKeys={},e=this.keyCodes,n=0,o=e.left.length;n<o;n++)i[e.left[n]]=[-1*t,0];for(n=0,o=e.right.length;n<o;n++)i[e.right[n]]=[t,0];for(n=0,o=e.down.length;n<o;n++)i[e.down[n]]=[0,t];for(n=0,o=e.up.length;n<o;n++)i[e.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var i=this._zoomKeys={},e=this.keyCodes,n=0,o=e.zoomIn.length;n<o;n++)i[e.zoomIn[n]]=t;for(n=0,o=e.zoomOut.length;n<o;n++)i[e.zoomOut[n]]=-t},_addHooks:function(){zi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Si(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e=t.keyCode,n=this._map;if(e in this._panKeys)n._panAnim&&n._panAnim._inProgress||(i=this._panKeys[e],t.shiftKey&&(i=A(i).multiplyBy(3)),n.panBy(i),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ni(t)}}});Ki.addInitHook("addHandler","keyboard",xn),Ki.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var wn=ie.extend({addHooks:function(){zi(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Si(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Wi(t),e=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(e-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(p(this._performZoom,this),n),Ni(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=e?Math.ceil(o/e)*e:o,r=t._limitZoom(i+(0<this._delta?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});Ki.addInitHook("addHandler","scrollWheelZoom",wn),Ki.mergeOptions({tap:!0,tapTolerance:15});var Pn=ie.extend({addHooks:function(){zi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Si(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ri(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],e=i.target;this._startPos=this._newPos=new k(i.clientX,i.clientY),e.tagName&&"a"===e.tagName.toLowerCase()&&ci(e,"leaflet-active"),this._holdTimeout=setTimeout(p(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),this._simulateEvent("mousedown",i),zi(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){var i,e;clearTimeout(this._holdTimeout),Si(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches&&((e=(i=t.changedTouches[0]).target)&&e.tagName&&"a"===e.tagName.toLowerCase()&&_i(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i))},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new k(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});!bt||Lt&&!ct||Ki.addInitHook("addHandler","tap",Pn),Ki.mergeOptions({touchZoom:bt&&!st,bounceAtZoomLimits:!0});var Ln=ie.extend({addHooks:function(){ci(this._map._container,"leaflet-touch-zoom"),zi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){_i(this._map._container,"leaflet-touch-zoom"),Si(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i,e,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(i=n.mouseEventToContainerPoint(t.touches[0]),e=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(i.add(e)._divideBy(2))),this._startDist=i.distanceTo(e),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),zi(document,"touchmove",this._onTouchMove,this),zi(document,"touchend",this._onTouchEnd,this),Ri(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),o=e.distanceTo(n)/this._startDist;if(this._zoom=i.getScaleZoom(o,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&o<1||this._zoom>i.getMaxZoom()&&1<o)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{var s=e._add(n)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===s.x&&0===s.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var r=p(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=M(r,this,!0),Ri(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,z(this._animRequest),Si(document,"touchmove",this._onTouchMove,this),Si(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ki.addInitHook("addHandler","touchZoom",Ln),Ki.BoxZoom=gn,Ki.DoubleClickZoom=vn,Ki.Drag=yn,Ki.Keyboard=xn,Ki.ScrollWheelZoom=wn,Ki.Tap=Pn,Ki.TouchZoom=Ln,t.version="1.7.1",t.Control=Xi,t.control=Yi,t.Browser=Bt,t.Evented=E,t.Mixin=ne,t.Util=C,t.Class=S,t.Handler=ie,t.extend=h,t.bind=p,t.stamp=m,t.setOptions=c,t.DomEvent=qi,t.DomUtil=Mi,t.PosAnimation=Gi,t.Draggable=ae,t.LineUtil=fe,t.PolyUtil=ye,t.Point=k,t.point=A,t.Bounds=I,t.bounds=O,t.Transformation=q,t.transformation=G,t.Projection=Pe,t.LatLng=D,t.latLng=j,t.LatLngBounds=R,t.latLngBounds=N,t.CRS=H,t.GeoJSON=Ne,t.geoJSON=Ke,t.geoJson=Ye,t.Layer=Me,t.LayerGroup=ze,t.layerGroup=function(t,i){return new ze(t,i)},t.FeatureGroup=Ce,t.featureGroup=function(t,i){return new Ce(t,i)},t.ImageOverlay=Xe,t.imageOverlay=function(t,i,e){return new Xe(t,i,e)},t.VideoOverlay=Je,t.videoOverlay=function(t,i,e){return new Je(t,i,e)},t.SVGOverlay=$e,t.svgOverlay=function(t,i,e){return new $e(t,i,e)},t.DivOverlay=Qe,t.Popup=tn,t.popup=function(t,i){return new tn(t,i)},t.Tooltip=en,t.tooltip=function(t,i){return new en(t,i)},t.Icon=Se,t.icon=function(t){return new Se(t)},t.DivIcon=nn,t.divIcon=function(t){return new nn(t)},t.Marker=ke,t.marker=function(t,i){return new ke(t,i)},t.TileLayer=sn,t.tileLayer=rn,t.GridLayer=on,t.gridLayer=function(t){return new on(t)},t.SVG=pn,t.svg=mn,t.Renderer=hn,t.Canvas=un,t.canvas=ln,t.Path=Be,t.CircleMarker=Ae,t.circleMarker=function(t,i){return new Ae(t,i)},t.Circle=Ie,t.circle=function(t,i,e){return new Ie(t,i,e)},t.Polyline=Oe,t.polyline=function(t,i){return new Oe(t,i)},t.Polygon=Re,t.polygon=function(t,i){return new Re(t,i)},t.Rectangle=fn,t.rectangle=function(t,i){return new fn(t,i)},t.Map=Ki,t.map=function(t,i){return new Ki(t,i)};var bn=window.L;t.noConflict=function(){return window.L=bn,this},window.L=t});
1
  /* @preserve
2
+ * Leaflet 1.8.0, a JS library for interactive maps. https://leafletjs.com
3
+ * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
  */
5
+ !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})}(this,function(t){"use strict";function l(t){for(var i,e,n=1,o=arguments.length;n<o;n++)for(i in e=arguments[n])t[i]=e[i];return t}var R=Object.create||function(t){return N.prototype=t,new N};function N(){}function a(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}var D=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++D),t._leaflet_id}function j(t,i,e){var n,o,s=function(){n=!1,o&&(r.apply(e,o),o=!1)},r=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(s,i),n=!0)};return r}function H(t,i,e){var n=i[1],i=i[0],o=n-i;return t===n&&e?t:((t-i)%o+o)%o+i}function u(){return!1}function e(t,i){if(!1===i)return t;i=Math.pow(10,void 0===i?6:i);return Math.round(t*i)/i}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function F(t){return W(t).split(/\s+/)}function c(t,i){for(var e in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?R(t.options):{}),i)t.options[e]=i[e];return t.options}function U(t,i,e){var n,o=[];for(n in t)o.push(encodeURIComponent(e?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(i&&-1!==i.indexOf("?")?"&":"?")+o.join("&")}var V=/\{ *([\w_ -]+) *\}/g;function q(t,e){return t.replace(V,function(t,i){i=e[i];if(void 0===i)throw new Error("No value provided for variable "+t);return i="function"==typeof i?i(e):i})}var d=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function G(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}var K="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var X=0;function J(t){var i=+new Date,e=Math.max(0,16-(i-X));return X=i+e,window.setTimeout(t,e)}var $=window.requestAnimationFrame||Y("RequestAnimationFrame")||J,Q=window.cancelAnimationFrame||Y("CancelAnimationFrame")||Y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function x(t,i,e){if(!e||$!==J)return $.call(window,a(t,i));t.call(i)}function r(t){t&&Q.call(window,t)}var tt={__proto__:null,extend:l,create:R,bind:a,get lastId(){return D},stamp:h,throttle:j,wrapNum:H,falseFn:u,formatNum:e,trim:W,splitWords:F,setOptions:c,getParamString:U,template:q,isArray:d,indexOf:G,emptyImageUrl:K,requestFn:$,cancelFn:Q,requestAnimFrame:x,cancelAnimFrame:r};function it(){}it.extend=function(t){function i(){c(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var e,n=i.__super__=this.prototype,o=R(n);for(e in(o.constructor=i).prototype=o,this)Object.prototype.hasOwnProperty.call(this,e)&&"prototype"!==e&&"__super__"!==e&&(i[e]=this[e]);if(t.statics&&l(i,t.statics),t.includes){var s=t.includes;if("undefined"!=typeof L&&L&&L.Mixin){s=d(s)?s:[s];for(var r=0;r<s.length;r++)s[r]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}l.apply(null,[o].concat(t.includes))}return l(o,t),delete o.statics,delete o.includes,o.options&&(o.options=n.options?R(n.options):{},l(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=o._initHooks.length;t<i;t++)o._initHooks[t].call(this)}},i},it.include=function(t){var i=this.prototype.options;return l(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},it.mergeOptions=function(t){return l(this.prototype.options,t),this},it.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var i={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else for(var o=0,s=(t=F(t)).length;o<s;o++)this._on(t[o],i,e);return this},off:function(t,i,e){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],i);else{t=F(t);for(var o=1===arguments.length,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],i,e)}else delete this._events;return this},_on:function(t,i,e){if("function"!=typeof i)console.warn("wrong listener type: "+typeof i);else{this._events=this._events||{};for(var n=this._events[t],t=(n||(this._events[t]=n=[]),{fn:i,ctx:e=e===this?void 0:e}),o=n,s=0,r=o.length;s<r;s++)if(o[s].fn===i&&o[s].ctx===e)return;o.push(t)}},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t]))if(1===arguments.length){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=u;delete this._events[t]}else if(e===this&&(e=void 0),"function"!=typeof i)console.warn("wrong listener type: "+typeof i);else{for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx===e&&r.fn===i)return this._firingCount&&(r.fn=u,this._events[t]=n=n.slice()),void n.splice(o,1)}console.warn("listener not found")}},fire:function(t,i,e){if(!this.listens(t,e))return this;var n=l({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,r=o.length;s<r;s++){var a=o[s];a.fn.call(a.ctx||this,n)}this._firingCount--}}return e&&this._propagateEvent(n),this},listens:function(t,i){"string"!=typeof t&&console.warn('"string" type argument expected');var e=this._events&&this._events[t];if(e&&e.length)return!0;if(i)for(var n in this._eventParents)if(this._eventParents[n].listens(t,i))return!0;return!1},once:function(t,i,e){if("object"==typeof t){for(var n in t)this.once(n,t[n],i);return this}var o=a(function(){this.off(t,i,e).off(t,o,e)},this);return this.on(t,i,e).on(t,o,e)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,l({layer:t.target,propagatedFrom:t.target},t),!0)}},et=(i.addEventListener=i.on,i.removeEventListener=i.clearAllEventListeners=i.off,i.addOneTimeEventListener=i.once,i.fireEvent=i.fire,i.hasEventListeners=i.listens,it.extend(i));function p(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}var nt=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function _(t,i,e){return t instanceof p?t:d(t)?new p(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new p(t.x,t.y):new p(t,i,e)}function m(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function f(t,i){return!t||t instanceof m?t:new m(t,i)}function s(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function g(t,i){return t instanceof s?t:new s(t,i)}function v(t,i,e){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function w(t,i,e){return t instanceof v?t:d(t)&&"object"!=typeof t[0]?3===t.length?new v(t[0],t[1],t[2]):2===t.length?new v(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new v(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new v(t,i,e)}p.prototype={clone:function(){return new p(this.x,this.y)},add:function(t){return this.clone()._add(_(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(_(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new p(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new p(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=nt(this.x),this.y=nt(this.y),this},distanceTo:function(t){var i=(t=_(t)).x-this.x,t=t.y-this.y;return Math.sqrt(i*i+t*t)},equals:function(t){return(t=_(t)).x===this.x&&t.y===this.y},contains:function(t){return t=_(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+e(this.x)+", "+e(this.y)+")"}},m.prototype={extend:function(t){return t=_(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new p((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new p(this.min.x,this.max.y)},getTopRight:function(){return new p(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return(t=("number"==typeof t[0]||t instanceof p?_:f)(t))instanceof m?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=f(t);var i=this.min,e=this.max,n=t.min,t=t.max,o=t.x>=i.x&&n.x<=e.x,t=t.y>=i.y&&n.y<=e.y;return o&&t},overlaps:function(t){t=f(t);var i=this.min,e=this.max,n=t.min,t=t.max,o=t.x>i.x&&n.x<e.x,t=t.y>i.y&&n.y<e.y;return o&&t},isValid:function(){return!(!this.min||!this.max)}},s.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof v)e=i=t;else{if(!(t instanceof s))return t?this.extend(w(t)||g(t)):this;if(i=t._southWest,e=t._northEast,!i||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new v(i.lat,i.lng),this._northEast=new v(e.lat,e.lng)),this},pad:function(t){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*t,t=Math.abs(i.lng-e.lng)*t;return new s(new v(i.lat-n,i.lng-t),new v(e.lat+n,e.lng+t))},getCenter:function(){return new v((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new v(this.getNorth(),this.getWest())},getSouthEast:function(){return new v(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof v||"lat"in t?w:g)(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof s?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=g(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>=i.lat&&n.lat<=e.lat,t=t.lng>=i.lng&&n.lng<=e.lng;return o&&t},overlaps:function(t){t=g(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>i.lat&&n.lat<e.lat,t=t.lng>i.lng&&n.lng<e.lng;return o&&t},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=g(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}};var ot={latLngToPoint:function(t,i){t=this.projection.project(t),i=this.scale(i);return this.transformation._transform(t,i)},pointToLatLng:function(t,i){i=this.scale(i),t=this.transformation.untransform(t,i);return this.projection.unproject(t)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,t=this.scale(t);return new m(this.transformation.transform(i.min,t),this.transformation.transform(i.max,t))},infinite:!(v.prototype={equals:function(t,i){return!!t&&(t=w(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+e(this.lat,t)+", "+e(this.lng,t)+")"},distanceTo:function(t){return st.distance(this,w(t))},wrap:function(){return st.wrapLatLng(this)},toBounds:function(t){var t=180*t/40075017,i=t/Math.cos(Math.PI/180*this.lat);return g([this.lat-t,this.lng-i],[this.lat+t,this.lng+i])},clone:function(){return new v(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var i=this.wrapLng?H(t.lng,this.wrapLng,!0):t.lng;return new v(this.wrapLat?H(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),n=i.lat-e.lat,i=i.lng-e.lng;if(0==n&&0==i)return t;e=t.getSouthWest(),t=t.getNorthEast();return new s(new v(e.lat-n,e.lng-i),new v(t.lat-n,t.lng-i))}},st=l({},ot,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,n=t.lat*e,o=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),i=Math.sin((i.lng-t.lng)*e/2),t=s*s+Math.cos(n)*Math.cos(o)*i*i,e=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*e}}),rt=6378137,rt={R:rt,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,e=Math.max(Math.min(e,t.lat),-e),e=Math.sin(e*i);return new p(this.R*t.lng*i,this.R*Math.log((1+e)/(1-e))/2)},unproject:function(t){var i=180/Math.PI;return new v((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:new m([-(rt=rt*Math.PI),-rt],[rt,rt])};function at(t,i,e,n){if(d(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=e,this._d=n}function ht(t,i,e,n){return new at(t,i,e,n)}at.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return t.x=(i=i||1)*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return new p((t.x/(i=i||1)-this._b)/this._a,(t.y/i-this._d)/this._c)}};var lt=l({},st,{code:"EPSG:3857",projection:rt,transformation:ht(lt=.5/(Math.PI*rt.R),.5,-lt,.5)}),ut=l({},lt,{code:"EPSG:900913"});function ct(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function dt(t,i){for(var e,n,o,s,r="",a=0,h=t.length;a<h;a++){for(e=0,n=(o=t[a]).length;e<n;e++)r+=(e?"L":"M")+(s=o[e]).x+" "+s.y;r+=i?P.svg?"z":"x":""}return r||"M0 0"}var _t=document.documentElement.style,pt="ActiveXObject"in window,mt=pt&&!document.addEventListener,n="msLaunchUri"in navigator&&!("documentMode"in document),ft=y("webkit"),gt=y("android"),vt=y("android 2")||y("android 3"),yt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),yt=gt&&y("Google")&&yt<537&&!("AudioNode"in window),xt=!!window.opera,wt=!n&&y("chrome"),Pt=y("gecko")&&!ft&&!xt&&!pt,bt=!wt&&y("safari"),Lt=y("phantom"),o="OTransition"in _t,Tt=0===navigator.platform.indexOf("Win"),zt=pt&&"transition"in _t,Mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!vt,_t="MozPerspective"in _t,Ct=!window.L_DISABLE_3D&&(zt||Mt||_t)&&!o&&!Lt,Zt="undefined"!=typeof orientation||y("mobile"),St=Zt&&ft,kt=Zt&&Mt,Et=!window.PointerEvent&&window.MSPointerEvent,Bt=!(!window.PointerEvent&&!Et),At="ontouchstart"in window||!!window.TouchEvent,It=!window.L_NO_TOUCH&&(At||Bt),Ot=Zt&&xt,Rt=Zt&&Pt,Nt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Dt=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,i),window.removeEventListener("testPassiveEventSupport",u,i)}catch(t){}return t}(),jt=!!document.createElement("canvas").getContext,Ht=!(!document.createElementNS||!ct("svg").createSVGRect),Wt=!!Ht&&((Wt=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Wt.firstChild&&Wt.firstChild.namespaceURI));function y(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var P={ie:pt,ielt9:mt,edge:n,webkit:ft,android:gt,android23:vt,androidStock:yt,opera:xt,chrome:wt,gecko:Pt,safari:bt,phantom:Lt,opera12:o,win:Tt,ie3d:zt,webkit3d:Mt,gecko3d:_t,any3d:Ct,mobile:Zt,mobileWebkit:St,mobileWebkit3d:kt,msPointer:Et,pointer:Bt,touch:It,touchNative:At,mobileOpera:Ot,mobileGecko:Rt,retina:Nt,passiveEvents:Dt,canvas:jt,svg:Ht,vml:!Ht&&function(){try{var t=document.createElement("div"),i=(t.innerHTML='<v:shape adj="1"/>',t.firstChild);return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}(),inlineSvg:Wt},Ft=P.msPointer?"MSPointerDown":"pointerdown",Ut=P.msPointer?"MSPointerMove":"pointermove",Vt=P.msPointer?"MSPointerUp":"pointerup",qt=P.msPointer?"MSPointerCancel":"pointercancel",Gt={touchstart:Ft,touchmove:Ut,touchend:Vt,touchcancel:qt},Kt={touchstart:function(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&B(i);ii(t,i)},touchmove:ii,touchend:ii,touchcancel:ii},Yt={},Xt=!1;function Jt(t,i,e){return"touchstart"!==i||Xt||(document.addEventListener(Ft,$t,!0),document.addEventListener(Ut,Qt,!0),document.addEventListener(Vt,ti,!0),document.addEventListener(qt,ti,!0),Xt=!0),Kt[i]?(e=Kt[i].bind(this,e),t.addEventListener(Gt[i],e,!1),e):(console.warn("wrong event specified:",i),L.Util.falseFn)}function $t(t){Yt[t.pointerId]=t}function Qt(t){Yt[t.pointerId]&&(Yt[t.pointerId]=t)}function ti(t){delete Yt[t.pointerId]}function ii(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){for(var e in i.touches=[],Yt)i.touches.push(Yt[e]);i.changedTouches=[i],t(i)}}var ei=200;function ni(t,e){t.addEventListener("dblclick",e);var n,o=0;function i(t){var i;1!==t.detail?n=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||((i=Date.now())-o<=ei?2===++n&&e(function(t){var i,e,n={};for(e in t)i=t[e],n[e]=i&&i.bind?i.bind(t):i;return(t=n).type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):n=1,o=i)}return t.addEventListener("click",i),{dblclick:e,simDblclick:i}}var oi,si,ri,ai,hi,li,ui=wi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ci=wi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),di="webkitTransition"===ci||"OTransition"===ci?ci+"End":"transitionend";function _i(t){return"string"==typeof t?document.getElementById(t):t}function pi(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];return"auto"===(e=e&&"auto"!==e||!document.defaultView?e:(t=document.defaultView.getComputedStyle(t,null))?t[i]:null)?null:e}function b(t,i,e){t=document.createElement(t);return t.className=i||"",e&&e.appendChild(t),t}function T(t){var i=t.parentNode;i&&i.removeChild(t)}function mi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function fi(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function gi(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function vi(t,i){if(void 0!==t.classList)return t.classList.contains(i);t=xi(t);return 0<t.length&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(t)}function z(t,i){var e;if(void 0!==t.classList)for(var n=F(i),o=0,s=n.length;o<s;o++)t.classList.add(n[o]);else vi(t,i)||yi(t,((e=xi(t))?e+" ":"")+i)}function M(t,i){void 0!==t.classList?t.classList.remove(i):yi(t,W((" "+xi(t)+" ").replace(" "+i+" "," ")))}function yi(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function xi(t){return void 0===(t=t.correspondingElement?t.correspondingElement:t).className.baseVal?t.className:t.className.baseVal}function C(t,i){if("opacity"in t.style)t.style.opacity=i;else if("filter"in t.style){var e=!1,n="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(n)}catch(t){if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=" progid:"+n+"(opacity="+i+")"}}function wi(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function Pi(t,i,e){i=i||new p(0,0);t.style[ui]=(P.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(e?" scale("+e+")":"")}function Z(t,i){t._leaflet_pos=i,P.any3d?Pi(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function bi(t){return t._leaflet_pos||new p(0,0)}function Li(){S(window,"dragstart",B)}function Ti(){E(window,"dragstart",B)}function zi(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Mi(),li=(hi=t).style.outline,t.style.outline="none",S(window,"keydown",Mi))}function Mi(){hi&&(hi.style.outline=li,li=hi=void 0,E(window,"keydown",Mi))}function Ci(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function Zi(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}ai="onselectstart"in document?(ri=function(){S(window,"selectstart",B)},function(){E(window,"selectstart",B)}):(si=wi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),ri=function(){var t;si&&(t=document.documentElement.style,oi=t[si],t[si]="none")},function(){si&&(document.documentElement.style[si]=oi,oi=void 0)});pt={__proto__:null,TRANSFORM:ui,TRANSITION:ci,TRANSITION_END:di,get:_i,getStyle:pi,create:b,remove:T,empty:mi,toFront:fi,toBack:gi,hasClass:vi,addClass:z,removeClass:M,setClass:yi,getClass:xi,setOpacity:C,testProp:wi,setTransform:Pi,setPosition:Z,getPosition:bi,get disableTextSelection(){return ri},get enableTextSelection(){return ai},disableImageDrag:Li,enableImageDrag:Ti,preventOutline:zi,restoreOutline:Mi,getSizedParentNode:Ci,getScale:Zi};function S(t,i,e,n){if(i&&"object"==typeof i)for(var o in i)Ei(t,o,i[o],e);else for(var s=0,r=(i=F(i)).length;s<r;s++)Ei(t,i[s],e,n);return this}var k="_leaflet_events";function E(t,i,e,n){if(1===arguments.length)Si(t),delete t[k];else if(i&&"object"==typeof i)for(var o in i)Bi(t,o,i[o],e);else if(i=F(i),2===arguments.length)Si(t,function(t){return-1!==G(i,t)});else for(var s=0,r=i.length;s<r;s++)Bi(t,i[s],e,n);return this}function Si(t,i){for(var e in t[k]){var n=e.split(/\d/)[0];i&&!i(n)||Bi(t,n,null,null,e)}}var ki={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ei(i,t,e,n){var o,s,r=t+h(e)+(n?"_"+h(n):"");i[k]&&i[k][r]||(s=o=function(t){return e.call(n||i,t||window.event)},!P.touchNative&&P.pointer&&0===t.indexOf("touch")?o=Jt(i,t,o):P.touch&&"dblclick"===t?o=ni(i,o):"addEventListener"in i?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?i.addEventListener(ki[t]||t,o,!!P.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?i.addEventListener(ki[t],o=function(t){t=t||window.event,Hi(i,t)&&s(t)},!1):i.addEventListener(t,s,!1):i.attachEvent("on"+t,o),i[k]=i[k]||{},i[k][r]=o)}function Bi(t,i,e,n,o){o=o||i+h(e)+(n?"_"+h(n):"");var s,r,e=t[k]&&t[k][o];e&&(!P.touchNative&&P.pointer&&0===i.indexOf("touch")?(n=t,r=e,Gt[s=i]?n.removeEventListener(Gt[s],r,!1):console.warn("wrong event specified:",s)):P.touch&&"dblclick"===i?(n=e,(r=t).removeEventListener("dblclick",n.dblclick),r.removeEventListener("click",n.simDblclick)):"removeEventListener"in t?t.removeEventListener(ki[i]||i,e,!1):t.detachEvent("on"+i,e),t[k][o]=null)}function Ai(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ii(t){return Ei(t,"wheel",Ai),this}function Oi(t){return S(t,"mousedown touchstart dblclick contextmenu",Ai),t._leaflet_disable_click=!0,this}function B(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ri(t){return B(t),Ai(t),this}function Ni(t,i){if(!i)return new p(t.clientX,t.clientY);var e=Zi(i),n=e.boundingClientRect;return new p((t.clientX-n.left)/e.x-i.clientLeft,(t.clientY-n.top)/e.y-i.clientTop)}var Di=P.win&&P.chrome?2*window.devicePixelRatio:P.gecko?window.devicePixelRatio:1;function ji(t){return P.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Di:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Hi(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}var mt={__proto__:null,on:S,off:E,stopPropagation:Ai,disableScrollPropagation:Ii,disableClickPropagation:Oi,preventDefault:B,stop:Ri,getMousePosition:Ni,getWheelDelta:ji,isExternalTarget:Hi,addListener:S,removeListener:E},Wi=et.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=bi(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=x(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){t=this._startPos.add(this._offset.multiplyBy(t));i&&t._round(),Z(this._el,t),this.fire("step")},_complete:function(){r(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),A=et.extend({options:{crs:lt,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=c(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(w(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ci&&P.any3d&&!P.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),S(this._proxy,di,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,e){if((i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(w(t),i,this.options.maxBounds),e=e||{},this._stop(),this._loaded&&!e.reset&&!0!==e)&&(void 0!==e.animate&&(e.zoom=l({animate:e.animate},e.zoom),e.pan=l({animate:e.animate,duration:e.duration},e.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,e.zoom):this._tryAnimatedPan(t,e.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,i),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(P.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(P.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var n=this.getZoomScale(i),o=this.getSize().divideBy(2),t=(t instanceof p?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),n=this.containerPointToLatLng(o.add(t));return this.setView(n,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():g(t);var e=_(i.paddingTopLeft||i.padding||[0,0]),n=_(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));if((o="number"==typeof i.maxZoom?Math.min(i.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};i=n.subtract(e).divideBy(2),n=this.project(t.getSouthWest(),o),e=this.project(t.getNorthEast(),o);return{center:this.unproject(n.add(e).divideBy(2).add(i),o),zoom:o}},fitBounds:function(t,i){if(!(t=g(t)).isValid())throw new Error("Bounds are not valid.");t=this._getBoundsCenterZoom(t,i);return this.setView(t.center,t.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){return i=i||{},(t=_(t).round()).x||t.y?(!0===i.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Wi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate?(z(this._mapPane,"leaflet-pan-anim"),e=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend");var e},flyTo:function(n,o,t){if(!1===(t=t||{}).animate||!P.any3d)return this.setView(n,o,t);this._stop();var s=this.project(this.getCenter()),r=this.project(n),i=this.getSize(),a=this._zoom,h=(n=w(n),o=void 0===o?a:o,Math.max(i.x,i.y)),e=h*this.getZoomScale(a,o),l=r.distanceTo(s)||1,u=1.42,c=u*u;function d(t){t=(e*e-h*h+(t?-1:1)*c*c*l*l)/(2*(t?e:h)*c*l),t=Math.sqrt(t*t+1)-t;return t<1e-9?-18:Math.log(t)}function _(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}var m=d(0);function f(t){return h*(p(m)*(_(t=m+u*t)/p(t))-_(m))/c}var g=Date.now(),v=(d(1)-m)/u,y=t.duration?1e3*t.duration:1e3*v*.8;return this._moveStart(!0,t.noMoveStart),function t(){var i=(Date.now()-g)/y,e=(1-Math.pow(1-i,1.5))*v;i<=1?(this._flyToFrame=x(t,this),this._move(this.unproject(s.add(r.subtract(s).multiplyBy(f(e)/l)),a),this.getScaleZoom(h/(i=e,h*(p(m)/p(m+u*i))),a),{flyTo:!0})):this._move(n,o)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,i){t=this._getBoundsCenterZoom(t,i);return this.flyTo(t.center,t.zoom,i)},setMaxBounds:function(t){return(t=g(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),t=this._limitCenter(e,this._zoom,g(t));return e.equals(t)||this.panTo(t,i),this._enforcingBounds=!1,this},panInside:function(t,i){var e=_((i=i||{}).paddingTopLeft||i.padding||[0,0]),n=_(i.paddingBottomRight||i.padding||[0,0]),o=this.project(this.getCenter()),t=this.project(t),s=this.getPixelBounds(),e=f([s.min.add(e),s.max.subtract(n)]),s=e.getSize();return e.contains(t)||(this._enforcingBounds=!0,n=t.subtract(e.getCenter()),e=e.extend(t).getSize().subtract(s),o.x+=n.x<0?-e.x:e.x,o.y+=n.y<0?-e.y:e.y,this.panTo(this.unproject(o),i),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=l({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize(),e=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),n=i.divideBy(2).round(),o=e.divideBy(2).round(),n=n.subtract(o);return n.x||n.y?(t.animate&&t.pan?this.panBy(n):(t.pan&&this._rawPanBy(n),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=l({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=a(this._handleGeolocationResponse,this),e=a(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,e,t):navigator.geolocation.getCurrentPosition(i,e,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i;this._container._leaflet_id&&(i=t.code,t=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i,e,n=new v(t.coords.latitude,t.coords.longitude),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,r=(s.setView&&(i=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(i,s.maxZoom):i)),{latlng:n,bounds:o,timestamp:t.timestamp});for(e in t.coords)"number"==typeof t.coords[e]&&(r[e]=t.coords[e]);this.fire("locationfound",r)}},addHandler:function(t,i){if(!i)return this;i=this[t]=new i(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),T(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(r(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)T(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){i=b("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new s(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=g(t),e=_(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),t=t.getSouthEast(),e=this.getSize().subtract(e),t=f(this.project(t,n),this.project(r,n)).getSize(),r=P.any3d?this.options.zoomSnap:1,a=e.x/t.x,e=e.y/t.y,t=i?Math.max(a,e):Math.min(a,e),n=this.getScaleZoom(t,n);return r&&(n=Math.round(n/(r/100))*(r/100),n=i?Math.ceil(n/r)*r:Math.floor(n/r)*r),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new p(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){t=this._getTopLeftPoint(t,i);return new m(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs,t=(i=void 0===i?this._zoom:i,e.zoom(t*e.scale(i)));return isNaN(t)?1/0:t},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(w(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(_(t),i)},layerPointToLatLng:function(t){t=_(t).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(t){return this.project(w(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(w(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(g(t))},distance:function(t,i){return this.options.crs.distance(w(t),w(i))},containerPointToLayerPoint:function(t){return _(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return _(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){t=this.containerPointToLayerPoint(_(t));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(w(t)))},mouseEventToContainerPoint:function(t){return Ni(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){t=this._container=_i(t);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");S(t,"scroll",this._onScroll,this),this._containerId=h(t)},_initLayout:function(){var t=this._container,i=(this._fadeAnimated=this.options.fadeAnimation&&P.any3d,z(t,"leaflet-container"+(P.touch?" leaflet-touch":"")+(P.retina?" leaflet-retina":"")+(P.ielt9?" leaflet-oldie":"")+(P.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),pi(t,"position"));"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Z(this._mapPane,new p(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(z(t.markerPane,"leaflet-zoom-hide"),z(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){Z(this._mapPane,new p(0,0));var e=!this._loaded,n=(this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset"),this._zoom!==i);this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e,n){void 0===i&&(i=this._zoom);var o=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?e&&e.pinch&&this.fire("zoom",e):((o||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return r(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Z(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var i=t?E:S;i((this._targets[h(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),P.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){r(this._resizeRequest),this._resizeRequest=x(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,n=[],o="mouseout"===i||"mouseover"===i,s=t.target||t.srcElement,r=!1;s;){if((e=this._targets[h(s)])&&("click"===i||"preclick"===i)&&this._draggableMoved(e)){r=!0;break}if(e&&e.listens(i,!0)){if(o&&!Hi(s,t))break;if(n.push(e),o)break}if(s===this._container)break;s=s.parentNode}return n=n.length||r||o||!this.listens(i,!0)?n:[this]},_isClickDisabled:function(t){for(;t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i,e=t.target||t.srcElement;!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e)||("mousedown"===(i=t.type)&&zi(e),this._fireDOMEvent(t,i))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,e){"click"===t.type&&((a=l({},t)).type="preclick",this._fireDOMEvent(a,a.type,e));var n=this._findEventTargets(t,i);if(e){for(var o=[],s=0;s<e.length;s++)e[s].listens(i,!0)&&o.push(e[s]);n=o.concat(n)}if(n.length){"contextmenu"===i&&B(t);var r,a=n[0],h={originalEvent:t};for("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(r=a.getLatLng&&(!a._radius||a._radius<=10),h.containerPoint=r?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),h.layerPoint=this.containerPointToLayerPoint(h.containerPoint),h.latlng=r?a.getLatLng():this.layerPointToLatLng(h.layerPoint)),s=0;s<n.length;s++)if(n[s].fire(i,h,!0),h.originalEvent._stopped||!1===n[s].options.bubblingMouseEvents&&-1!==G(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return bi(this._mapPane)||new p(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){e=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(e)},_latLngBoundsToNewLayerBounds:function(t,i,e){e=this._getNewPixelOrigin(e,i);return f([this.project(t.getSouthWest(),i)._subtract(e),this.project(t.getNorthWest(),i)._subtract(e),this.project(t.getSouthEast(),i)._subtract(e),this.project(t.getNorthEast(),i)._subtract(e)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e)return t;var n=this.project(t,i),o=this.getSize().divideBy(2),o=new m(n.subtract(o),n.add(o)),o=this._getBoundsOffset(o,e,i);return o.round().equals([0,0])?t:this.unproject(n.add(o),i)},_limitOffset:function(t,i){if(!i)return t;var e=this.getPixelBounds(),e=new m(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(e,i))},_getBoundsOffset:function(t,i,e){i=f(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),e=i.min.subtract(t.min),i=i.max.subtract(t.max);return new p(this._rebound(e.x,-i.x),this._rebound(e.y,-i.y))},_rebound:function(t,i){return 0<t+i?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=P.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){M(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){t=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(t))&&(this.panBy(t,i),!0)},_createAnimProxy:function(){var t=this._proxy=b("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var i=ui,e=this._proxy.style[i];Pi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){T(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();Pi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),n=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(n))&&(x(function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,e,n){this._mapPane&&(e&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,z(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&M(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Fi(t){return new I(t)}var Ui,I=it.extend({options:{position:"topright"},initialize:function(t){c(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),t=t._controlCorners[e];return z(i,"leaflet-control"),-1!==e.indexOf("bottom")?t.insertBefore(i,t.firstChild):t.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(T(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}}),Vi=(A.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var e=this._controlCorners={},n="leaflet-",o=this._controlContainer=b("div",n+"control-container",this._container);function t(t,i){e[t+i]=b("div",n+t+" "+n+i,o)}t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)T(this._controlCorners[t]);T(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),I.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){for(var n in c(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return I.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);t=this._getLayer(h(t));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){z(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(z(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):M(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return M(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=b("div",t),e=this.options.collapsed,n=(i.setAttribute("aria-haspopup",!0),Oi(i),Ii(i),this._section=b("section",t+"-list")),o=(e&&(this._map.on("click",this.collapse,this),S(i,{mouseenter:function(){S(n,"click",B),this.expand(),setTimeout(function(){E(n,"click",B)})},mouseleave:this.collapse},this)),this._layersLink=b("a",t+"-toggle",i));o.href="#",o.title="Layers",o.setAttribute("role","button"),S(o,"click",B),S(o,"focus",this.expand,this),e||this.expand(),this._baseLayersList=b("div",t+"-base",n),this._separator=b("div",t+"-separator",n),this._overlaysList=b("div",t+"-overlays",n),i.appendChild(n)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,e){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:e}),this.options.sortLayers&&this._layers.sort(a(function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;mi(this._baseLayersList),mi(this._overlaysList),this._layerControlInputs=[];for(var t,i,e,n=0,o=0;o<this._layers.length;o++)e=this._layers[o],this._addItem(e),i=i||e.overlay,t=t||!e.overlay,n+=e.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&1<n)?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),t=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;t&&this._map.fire(t,i)},_createRadioElement:function(t,i){t='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=t,i.firstChild},_addItem:function(t){var i,e=document.createElement("label"),n=this._map.hasLayer(t.layer),n=(t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=n):i=this._createRadioElement("leaflet-base-layers_"+h(this),n),this._layerControlInputs.push(i),i.layerId=h(t.layer),S(i,"click",this._onInputClick,this),document.createElement("span")),o=(n.innerHTML=" "+t.name,document.createElement("span"));return e.appendChild(o),o.appendChild(i),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;0<=s;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;0<=o;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}})),qi=I.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=b("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){e=b("a",e,n);return e.innerHTML=t,e.href="#",e.title=i,e.setAttribute("role","button"),e.setAttribute("aria-label",i),Oi(e),S(e,"click",Ri),S(e,"click",o,this),S(e,"click",this._refocusOnMap,this),e},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";M(this._zoomInButton,i),M(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(z(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(z(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Gi=(A.mergeOptions({zoomControl:!0}),A.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new qi,this.addControl(this.zoomControl))}),I.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=b("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=b("div",i,e)),t.imperial&&(this._iScale=b("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,t=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(t)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t);this._updateScale(this._mScale,i<1e3?i+" m":i/1e3+" km",i/t)},_updateImperial:function(t){var i,e,t=3.2808399*t;5280<t?(e=this._getRoundNum(i=t/5280),this._updateScale(this._iScale,e+" mi",e/i)):(e=this._getRoundNum(t),this._updateScale(this._iScale,e+" ft",e/t))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),t=t/i;return i*(t=10<=t?10:5<=t?5:3<=t?3:2<=t?2:1)}})),Ki=I.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(P.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){c(this,t),this._attributions={}},onAdd:function(t){for(var i in(t.attributionControl=this)._container=b("div","leaflet-control-attribution"),Oi(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,i=[];for(t in this._attributions)this._attributions[t]&&i.push(t);var e=[];this.options.prefix&&e.push(this.options.prefix),i.length&&e.push(i.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}}}),n=(A.mergeOptions({attributionControl:!0}),A.addInitHook(function(){this.options.attributionControl&&(new Ki).addTo(this)}),I.Layers=Vi,I.Zoom=qi,I.Scale=Gi,I.Attribution=Ki,Fi.layers=function(t,i,e){return new Vi(t,i,e)},Fi.zoom=function(t){return new qi(t)},Fi.scale=function(t){return new Gi(t)},Fi.attribution=function(t){return new Ki(t)},it.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),ft=(n.addTo=function(t,i){return t.addHandler(i,this),this},{Events:i}),Yi=P.touch?"touchstart mousedown":"mousedown",Xi=et.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){c(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(S(this._dragStartTarget,Yi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Xi._dragging===this&&this.finishDrag(!0),E(this._dragStartTarget,Yi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var i,e;this._enabled&&(this._moved=!1,vi(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?Xi._dragging===this&&this.finishDrag():Xi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Xi._dragging=this)._preventOutline&&zi(this._element),Li(),ri(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,i=Ci(this._element),this._startPoint=new p(e.clientX,e.clientY),this._startPos=bi(this._element),this._parentScale=Zi(i),e="mousedown"===t.type,S(document,e?"mousemove":"touchmove",this._onMove,this),S(document,e?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var i;this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:!(i=new p((i=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,i.clientY)._subtract(this._startPoint)).x&&!i.y||Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,B(t),this._moved||(this.fire("dragstart"),this._moved=!0,z(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),z(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Z(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){M(document.body,"leaflet-dragging"),this._lastTarget&&(M(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),E(document,"mousemove touchmove",this._onMove,this),E(document,"mouseup touchend touchcancel",this._onUp,this),Ti(),ai(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,Xi._dragging=!1}});function Ji(t,i){if(!i||!t.length)return t.slice();i*=i;return t=function(t,i){var e=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(e);n[0]=n[e-1]=1,function t(i,e,n,o,s){var r,a,h,l=0;for(a=o+1;a<=s-1;a++)h=ee(i[a],i[o],i[s],!0),l<h&&(r=a,l=h);n<l&&(e[r]=1,t(i,e,n,o,r),t(i,e,n,r,s))}(t,n,i,0,e-1);var o,s=[];for(o=0;o<e;o++)n[o]&&s.push(t[o]);return s}(t=function(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;n<s;n++)(function(t,i){var e=i.x-t.x,i=i.y-t.y;return e*e+i*i})(t[n],t[o])>i&&(e.push(t[n]),o=n);o<s-1&&e.push(t[s-1]);return e}(t,i),i)}function $i(t,i,e){return Math.sqrt(ee(t,i,e,!0))}function Qi(t,i,e,n,o){var s,r,a,h=n?Ui:ie(t,e),l=ie(i,e);for(Ui=l;;){if(!(h|l))return[t,i];if(h&l)return!1;a=ie(r=te(t,i,s=h||l,e,o),e),s===h?(t=r,h=a):(i=r,l=a)}}function te(t,i,e,n,o){var s,r,a=i.x-t.x,i=i.y-t.y,h=n.min,n=n.max;return 8&e?(s=t.x+a*(n.y-t.y)/i,r=n.y):4&e?(s=t.x+a*(h.y-t.y)/i,r=h.y):2&e?(s=n.x,r=t.y+i*(n.x-t.x)/a):1&e&&(s=h.x,r=t.y+i*(h.x-t.x)/a),new p(s,r,o)}function ie(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function ee(t,i,e,n){var o=i.x,i=i.y,s=e.x-o,r=e.y-i,a=s*s+r*r;return 0<a&&(1<(a=((t.x-o)*s+(t.y-i)*r)/a)?(o=e.x,i=e.y):0<a&&(o+=s*a,i+=r*a)),s=t.x-o,r=t.y-i,n?s*s+r*r:new p(o,i)}function ne(t){return!d(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function oe(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ne(t)}gt={__proto__:null,simplify:Ji,pointToSegmentDistance:$i,closestPointOnSegment:function(t,i,e){return ee(t,i,e)},clipSegment:Qi,_getEdgeIntersection:te,_getBitCode:ie,_sqClosestPointOnSegment:ee,isFlat:ne,_flat:oe};function se(t,i,e){for(var n,o,s,r,a,h,l,u=[1,4,2,8],c=0,d=t.length;c<d;c++)t[c]._code=ie(t[c],i);for(s=0;s<4;s++){for(h=u[s],n=[],c=0,o=(d=t.length)-1;c<d;o=c++)r=t[c],a=t[o],r._code&h?a._code&h||((l=te(a,r,h,i,e))._code=ie(l,i),n.push(l)):(a._code&h&&((l=te(a,r,h,i,e))._code=ie(l,i),n.push(l)),n.push(r));t=n}return t}var vt={__proto__:null,clipPolygon:se},yt={project:function(t){return new p(t.lng,t.lat)},unproject:function(t){return new v(t.y,t.x)},bounds:new m([-180,-90],[180,90])},xt={R:6378137,R_MINOR:6356752.314245179,bounds:new m([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,n=t.lat*i,o=this.R_MINOR/e,o=Math.sqrt(1-o*o),s=o*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),o/2),n=-e*Math.log(Math.max(s,1e-10));return new p(t.lng*i*e,n)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,l=.1;h<15&&1e-7<Math.abs(l);h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=l=Math.PI/2-2*Math.atan(r*i)-a;return new v(a*e,t.x*e/n)}},wt={__proto__:null,LonLat:yt,Mercator:xt,SphericalMercator:rt},bt=l({},st,{code:"EPSG:3395",projection:xt,transformation:ht(Pt=.5/(Math.PI*xt.R),.5,-Pt,.5)}),re=l({},st,{code:"EPSG:4326",projection:yt,transformation:ht(1/180,1,-1/180,.5)}),Lt=l({},ot,{projection:yt,transformation:ht(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,i=i.lat-t.lat;return Math.sqrt(e*e+i*i)},infinite:!0}),o=(ot.Earth=st,ot.EPSG3395=bt,ot.EPSG3857=lt,ot.EPSG900913=ut,ot.EPSG4326=re,ot.Simple=Lt,et.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[h(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i,e=t.target;e.hasLayer(this)&&(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents&&(i=this.getEvents(),e.on(i,this),this.once("remove",function(){e.off(i,this)},this)),this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this}))}})),ae=(A.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]||((this._layers[i]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=h(t);return this._layers[i]&&(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?d(t)?t:[t]:[]).length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){t=h(t);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var t,i=1/0,e=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers)var o=this._zoomBoundLayers[t].options,i=void 0===o.minZoom?i:Math.min(i,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom);this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=i===1/0?void 0:i,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),o.extend({initialize:function(t,i){var e,n;if(c(this,i),this._layers={},t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){t=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)(e=this._layers[i])[t]&&e[t].apply(e,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:h})),he=ae.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),ae.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),ae.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t,i=new s;for(t in this._layers){var e=this._layers[t];i.extend(e.getBounds?e.getBounds():e.getLatLng())}return i}}),le=it.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){c(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}e=this._createImg(e,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(e,t),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e},_setIconStyles:function(t,i){var e=this.options,n=e[i+"Size"],n=_(n="number"==typeof n?[n,n]:n),o=_("shadow"===i&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")},_createImg:function(t,i){return(i=i||document.createElement("img")).src=t,i},_getIconUrl:function(t){return P.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var ue=le.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof ue.imagePath&&(ue.imagePath=this._detectIconPath()),(this.options.imagePath||ue.imagePath)+le.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){function i(t,i,e){return(i=i.exec(t))&&i[e]}return(t=i(t,/^url\((['"])?(.+)\1\)$/,2))&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=b("div","leaflet-default-icon-path",document.body),i=pi(t,"background-image")||pi(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i))return i;t=document.querySelector('link[href$="leaflet.css"]');return t?t.href.substring(0,t.href.length-"leaflet.css".length-1):""}}),ce=n.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Xi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),z(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&M(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,e=i._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=bi(i._icon),r=e.getPixelBounds(),a=e.getPixelOrigin(),a=f(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));a.contains(s)||(o=_((Math.max(a.max.x,s.x)-a.max.x)/(r.max.x-a.max.x)-(Math.min(a.min.x,s.x)-a.min.x)/(r.min.x-a.min.x),(Math.max(a.max.y,s.y)-a.max.y)/(r.max.y-a.max.y)-(Math.min(a.min.y,s.y)-a.min.y)/(r.min.y-a.min.y)).multiplyBy(n),e.panBy(o,{animate:!1}),this._draggable._newPos._add(o),this._draggable._startPos._add(o),Z(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=x(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(r(this._panRequest),this._panRequest=x(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,e=i._shadow,n=bi(i._icon),o=i._map.layerPointToLatLng(n);e&&Z(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){r(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),de=o.extend({options:{icon:new ue,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){c(this,i),this._latlng=w(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=w(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),e=t.icon.createIcon(this._icon),n=!1,e=(e!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),"IMG"===e.tagName&&(e.alt=t.alt||"")),z(e,i),t.keyboard&&(e.tabIndex="0",e.setAttribute("role","button")),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&S(e,"focus",this._panOnFocus,this),t.icon.createShadow(this._shadow)),o=!1;e!==this._shadow&&(this._removeShadow(),o=!0),e&&(z(e,i),e.alt=""),this._shadow=e,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),e&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&E(this._icon,"focus",this._panOnFocus,this),T(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&T(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Z(this._icon,t),this._shadow&&Z(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(t)},_initInteraction:function(){var t;this.options.interactive&&(z(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ce&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ce(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&C(this._icon,t),this._shadow&&C(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t,i,e=this._map;e&&(t=(i=this.options.icon.options).iconSize?_(i.iconSize):_(0,0),i=i.iconAnchor?_(i.iconAnchor):_(0,0),e.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:t.subtract(i)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var _e=o.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return c(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),pe=_e.extend({options:{fill:!0,radius:10},initialize:function(t,i){c(this,i),this._latlng=w(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=w(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return _e.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),t=[t+e,i+e];this._pxBounds=new m(this._point.subtract(t),this._point.add(t))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var me=pe.extend({initialize:function(t,i,e){if(c(this,i="number"==typeof i?l({},e,{radius:i}):i),this._latlng=w(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new s(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:_e.prototype.setStyle,_project:function(){var t,i,e,n,o,s=this._latlng.lng,r=this._latlng.lat,a=this._map,h=a.options.crs;h.distance===st.distance?(n=Math.PI/180,o=this._mRadius/st.R/n,t=a.project([r+o,s]),i=a.project([r-o,s]),i=t.add(i).divideBy(2),e=a.unproject(i).lat,n=Math.acos((Math.cos(o*n)-Math.sin(r*n)*Math.sin(e*n))/(Math.cos(r*n)*Math.cos(e*n)))/n,!isNaN(n)&&0!==n||(n=o/Math.cos(Math.PI/180*r)),this._point=i.subtract(a.getPixelOrigin()),this._radius=isNaN(n)?0:i.x-a.project([e,s-n]).x,this._radiusY=i.y-t.y):(o=h.unproject(h.project(this._latlng).subtract([this._mRadius,0])),this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(o).x),this._updateBounds()}});var fe=_e.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){c(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i=1/0,e=null,n=ee,o=0,s=this._parts.length;o<s;o++)for(var r=this._parts[o],a=1,h=r.length;a<h;a++){var l,u,c=n(t,l=r[a-1],u=r[a],!0);c<i&&(i=c,e=n(t,l,u))}return e&&(e.distance=Math.sqrt(i)),e},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r=this._rings[0],a=r.length;if(!a)return null;for(i=t=0;t<a-1;t++)i+=r[t].distanceTo(r[t+1])/2;if(0===i)return this._map.layerPointToLatLng(r[0]);for(e=t=0;t<a-1;t++)if(n=r[t],o=r[t+1],i<(e+=s=n.distanceTo(o)))return this._map.layerPointToLatLng([o.x-(s=(e-i)/s)*(o.x-n.x),o.y-s*(o.y-n.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=w(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new s,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return ne(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=ne(t),n=0,o=t.length;n<o;n++)e?(i[n]=w(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new m;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),t=new p(t,t);this._rawPxBounds&&(this._pxBounds=new m([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(t,i,e){var n,o,s=t[0]instanceof v,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,e,n,o,s=this._parts,r=0,a=0,h=this._rings.length;r<h;r++)for(i=0,e=(o=this._rings[r]).length;i<e-1;i++)(n=Qi(o[i],o[i+1],t,i,!0))&&(s[a]=s[a]||[],s[a].push(n[0]),n[1]===o[i+1]&&i!==e-2||(s[a].push(n[1]),a++))},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=Ji(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,s=this._parts.length;e<s;e++)for(n=0,o=(r=(a=this._parts[e]).length)-1;n<r;o=n++)if((i||0!==n)&&$i(t,a[o],a[n])<=h)return!0;return!1}});fe._flat=oe;var ge=fe.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a,h,l=this._rings[0],u=l.length;if(!u)return null;for(t=s=r=a=0,i=u-1;t<u;i=t++)e=l[t],n=l[i],o=e.y*n.x-n.y*e.x,r+=(e.x+n.x)*o,a+=(e.y+n.y)*o,s+=3*o;return h=0===s?l[0]:[r/s,a/s],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var t=fe.prototype._convertLatLngs.call(this,t),i=t.length;return 2<=i&&t[0]instanceof v&&t[0].equals(t[i-1])&&t.pop(),t},_setLatLngs:function(t){fe.prototype._setLatLngs.call(this,t),ne(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(ne(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,i=new p(i,i),t=new m(t.min.subtract(i),t.max.add(i));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var e,n=0,o=this._rings.length;n<o;n++)(e=se(this._rings[n],t,!0)).length&&this._parts.push(e)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,h,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(h=(i=this._parts[o]).length)-1;s<h;r=s++)e=i[s],n=i[r],e.y>t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(l=!l);return l||fe.prototype._containsPoint.call(this,t,!0)}});var ve=he.extend({initialize:function(t,i){c(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=d(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)((n=o[i]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=ye(t,s);return r?(r.feature=ze(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=l({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(t){this._setLayerStyle(t,i)},this)},_setLayerStyle:function(t,i){t.setStyle&&("function"==typeof i&&(i=i(t.feature)),t.setStyle(i))}});function ye(t,i){var e,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],l=i&&i.pointToLayer,u=i&&i.coordsToLatLng||we;if(!a&&!r)return null;switch(r.type){case"Point":return xe(l,t,e=u(a),i);case"MultiPoint":for(o=0,s=a.length;o<s;o++)e=u(a[o]),h.push(xe(l,t,e,i));return new he(h);case"LineString":case"MultiLineString":return n=Pe(a,"LineString"===r.type?0:1,u),new fe(n,i);case"Polygon":case"MultiPolygon":return n=Pe(a,"Polygon"===r.type?1:2,u),new ge(n,i);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var c=ye({geometry:r.geometries[o],type:"Feature",properties:t.properties},i);c&&h.push(c)}return new he(h);default:throw new Error("Invalid GeoJSON object.")}}function xe(t,i,e,n){return t?t(i,e):new de(e,n&&n.markersInheritOptions&&n)}function we(t){return new v(t[1],t[0],t[2])}function Pe(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?Pe(t[s],i-1,e):(e||we)(t[s]),o.push(n);return o}function be(t,i){return void 0!==(t=w(t)).alt?[e(t.lng,i),e(t.lat,i),e(t.alt,i)]:[e(t.lng,i),e(t.lat,i)]}function Le(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?Le(t[s],i-1,e,n):be(t[s],n));return!i&&e&&o.push(o[0]),o}function Te(t,i){return t.feature?l({},t.feature,{geometry:i}):ze(i)}function ze(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}Tt={toGeoJSON:function(t){return Te(this,{type:"Point",coordinates:be(this.getLatLng(),t)})}};function Me(t,i){return new ve(t,i)}de.include(Tt),me.include(Tt),pe.include(Tt),fe.include({toGeoJSON:function(t){var i=!ne(this._latlngs);return Te(this,{type:(i?"Multi":"")+"LineString",coordinates:Le(this._latlngs,i?1:0,!1,t)})}}),ge.include({toGeoJSON:function(t){var i=!ne(this._latlngs),e=i&&!ne(this._latlngs[0]),t=Le(this._latlngs,e?2:i?1:0,!0,t);return Te(this,{type:(e?"Multi":"")+"Polygon",coordinates:t=i?t:[t]})}}),ae.include({toMultiPoint:function(i){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON(i).geometry.coordinates)}),Te(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(i){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(i);var e="GeometryCollection"===t,n=[];return this.eachLayer(function(t){t.toGeoJSON&&(t=t.toGeoJSON(i),e?n.push(t.geometry):"FeatureCollection"===(t=ze(t)).type?n.push.apply(n,t.features):n.push(t))}),e?Te(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var zt=Me,Ce=o.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t,this._bounds=g(i),c(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(z(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){T(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&fi(this._image),this},bringToBack:function(){return this._map&&gi(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=g(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:b("img");z(i,"leaflet-image-layer"),this._zoomAnimated&&z(i,"leaflet-zoom-animated"),this.options.className&&z(i,this.options.className),i.onselectstart=u,i.onmousemove=u,i.onload=a(this.fire,this,"load"),i.onerror=a(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Pi(this._image,t,i)},_reset:function(){var t=this._image,i=new m(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();Z(t,i.min),t.style.width=e.x+"px",t.style.height=e.y+"px"},_updateOpacity:function(){C(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Ze=Ce.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:b("video");if(z(i,"leaflet-image-layer"),this._zoomAnimated&&z(i,"leaflet-zoom-animated"),this.options.className&&z(i,this.options.className),i.onselectstart=u,i.onmousemove=u,i.onloadeddata=a(this.fire,this,"load"),t){for(var e=i.getElementsByTagName("source"),n=[],o=0;o<e.length;o++)n.push(e[o].src);this._url=0<e.length?n:[i.src]}else{d(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var r=b("source");r.src=this._url[s],i.appendChild(r)}}}});var Se=Ce.extend({_initImage:function(){var t=this._image=this._url;z(t,"leaflet-image-layer"),this._zoomAnimated&&z(t,"leaflet-zoom-animated"),this.options.className&&z(t,this.options.className),t.onselectstart=u,t.onmousemove=u}});var O=o.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(t,i){c(this,t),this._source=i},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&C(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&C(this._container,1),this.bringToFront(),this.options.interactive&&(z(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(C(this._container,0),this._removeTimeout=setTimeout(a(T,void 0,this._container),200)):T(this._container),this.options.interactive&&(M(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=w(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&fi(this._container),this},bringToBack:function(){return this._map&&gi(this._container),this},_prepareOpen:function(t){if(!(e=this._source)._map)return!1;if(e instanceof he){var i,e=null,n=this._source._layers;for(i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){var t,i,e;this._map&&(i=this._map.latLngToLayerPoint(this._latlng),t=_(this.options.offset),e=this._getAnchor(),this._zoomAnimated?Z(this._container,i.add(e)):t=t.add(i).add(e),i=this._containerBottom=-t.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+t.x,this._container.style.bottom=i+"px",this._container.style.left=e+"px")},_getAnchor:function(){return[0,0]}}),ke=(A.include({_initOverlay:function(t,i,e,n){var o=i;return o instanceof t||(o=new t(n).setContent(i)),e&&o.setLatLng(e),o}}),o.include({_initOverlay:function(t,i,e,n){var o=e;return o instanceof t?(c(o,n),o._source=this):(o=i&&!n?i:new t(n,this)).setContent(e),o}}),O.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,O.prototype.openOn.call(this,t)},onAdd:function(t){O.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof _e||this._source.on("preclick",Ai))},onRemove:function(t){O.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof _e||this._source.off("preclick",Ai))},getEvents:function(){var t=O.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=b("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),e=this._wrapper=b("div",t+"-content-wrapper",i);this._contentNode=b("div",t+"-content",e),Oi(i),Ii(this._contentNode),S(i,"contextmenu",Ai),this._tipContainer=b("div",t+"-tip-container",i),this._tip=b("div",t+"-tip",this._tipContainer),this.options.closeButton&&((e=this._closeButton=b("a",t+"-close-button",i)).setAttribute("role","button"),e.setAttribute("aria-label","Close popup"),e.href="#close",e.innerHTML='<span aria-hidden="true">&#215;</span>',S(e,"click",this.close,this))},_updateLayout:function(){var t=this._contentNode,i=t.style,e=(i.width="",i.whiteSpace="nowrap",t.offsetWidth),e=Math.min(e,this.options.maxWidth),e=(e=Math.max(e,this.options.minWidth),i.width=e+1+"px",i.whiteSpace="",i.height="",t.offsetHeight),n=this.options.maxHeight,o="leaflet-popup-scrolled";n&&n<e?(i.height=n+"px",z(t,o)):M(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();Z(this._container,t.add(i))},_adjustPan:function(t){var i,e,n,o,s,r,a,h;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),i=this._map,e=parseInt(pi(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+e,h=this._containerWidth,(n=new p(this._containerLeft,-e-this._containerBottom))._add(bi(this._container)),n=i.layerPointToContainerPoint(n),s=_(this.options.autoPanPadding),o=_(this.options.autoPanPaddingTopLeft||s),s=_(this.options.autoPanPaddingBottomRight||s),r=i.getSize(),a=0,n.x+h+s.x>r.x&&(a=n.x+h-r.x+s.x),n.x-a-o.x<(h=0)&&(a=n.x-o.x),n.y+e+s.y>r.y&&(h=n.y+e-r.y+s.y),n.y-h-o.y<0&&(h=n.y-o.y),(a||h)&&i.fire("autopanstart").panBy([a,h],{animate:t&&"moveend"===t.type}))},_getAnchor:function(){return _(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Ee=(A.mergeOptions({closePopupOnClick:!0}),A.include({openPopup:function(t,i,e){return this._initOverlay(ke,t,i,e).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),o.include({bindPopup:function(t,i){return this._popup=this._initOverlay(ke,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&this._popup._prepareOpen(t)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i;this._popup&&this._map&&(Ri(t),i=t.layer||t.target,this._popup._source!==i||i instanceof _e?(this._popup._source=i,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),O.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){O.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){O.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=O.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=b("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e=this._map,n=this._container,o=e.latLngToContainerPoint(e.getCenter()),e=e.layerPointToContainerPoint(t),s=this.options.direction,r=n.offsetWidth,a=n.offsetHeight,h=_(this.options.offset),l=this._getAnchor(),e="top"===s?(i=r/2,a):"bottom"===s?(i=r/2,0):(i="center"===s?r/2:"right"===s?0:"left"===s?r:e.x<o.x?(s="right",0):(s="left",r+2*(h.x+l.x)),a/2);t=t.subtract(_(i,e,!0)).add(h).add(l),M(n,"leaflet-tooltip-right"),M(n,"leaflet-tooltip-left"),M(n,"leaflet-tooltip-top"),M(n,"leaflet-tooltip-bottom"),z(n,"leaflet-tooltip-"+s),Z(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&C(this._container,t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(t)},_getAnchor:function(){return _(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Be=(A.include({openTooltip:function(t,i,e){return this._initOverlay(Ee,t,i,e).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),o.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ee,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var i,e;!t&&this._tooltipHandlersAdded||(i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,e.click=this._openTooltip),this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),this[i](e),this._tooltipHandlersAdded=!t)},openTooltip:function(t){return this._tooltip&&this._tooltip._prepareOpen(t)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0))},_moveTooltip:function(t){var i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(t=this._map.mouseEventToContainerPoint(t.originalEvent),t=this._map.containerPointToLayerPoint(t),i=this._map.layerPointToLatLng(t)),this._tooltip.setLatLng(i)}}),le.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var t=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;return i.html instanceof Element?(mi(t),t.appendChild(i.html)):t.innerHTML=!1!==i.html?i.html:"",i.bgPos&&(i=_(i.bgPos),t.style.backgroundPosition=-i.x+"px "+-i.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}}));le.Default=ue;var Ae=o.extend({options:{tileSize:256,opacity:1,updateWhenIdle:P.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){c(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),T(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(fi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(gi(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=j(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof p?t:new p(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-1/0,1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!P.ielt9){C(this._container,this.options.opacity);var t,i=+new Date,e=!1,n=!1;for(t in this._tiles){var o,s=this._tiles[t];s.current&&s.loaded&&(o=Math.min(1,(i-s.loaded)/200),C(s.el,o),o<1?e=!0:(s.active?n=!0:this._onOpaqueTile(s),s.active=!0))}n&&!this._noPrune&&this._pruneTiles(),e&&(r(this._fadeFrame),this._fadeFrame=x(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=b("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var e in this._levels)e=Number(e),this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(T(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=b("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),u(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var t,i,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)(e=this._tiles[t]).current&&!e.active&&(i=e.coords,this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)T(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,e,n){var t=Math.floor(t/2),i=Math.floor(i/2),e=e-1,o=new p(+t,+i),o=(o.z=e,this._tileCoordsToKey(o)),o=this._tiles[o];return o&&o.active?o.retain=!0:(o&&o.loaded&&(o.retain=!0),n<e&&this._retainParent(t,i,e,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new p(o,s),r=(r.z=e+1,this._tileCoordsToKey(r)),r=this._tiles[r];r&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){t=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=Math.round(i),o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o),s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,i,e){var n=this._map.getZoomScale(e,t.zoom),i=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i,e)).round();P.any3d?Pi(t.el,i,n):Z(t.el,i)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),e=i.getZoomScale(e,this._tileZoom),t=i.project(t,this._tileZoom).floor(),i=i.getSize().divideBy(2*e);return new m(t.subtract(i),t.add(i))},_update:function(t){var i=this._map;if(i){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n,i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),s=o.getCenter(),r=[],i=this.options.keepBuffer,a=new m(o.getBottomLeft().subtract([i,-i]),o.getTopRight().add([i,-i]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(n in this._tiles){var h=this._tiles[n].coords;h.z===this._tileZoom&&a.contains(new p(h.x,h.y))||(this._tiles[n].current=!1)}if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var l=o.min.y;l<=o.max.y;l++)for(var u=o.min.x;u<=o.max.x;u++){var c,d=new p(u,l);d.z=this._tileZoom,this._isValidTile(d)&&((c=this._tiles[this._tileCoordsToKey(d)])?c.current=!0:r.push(d))}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));for(var _=document.createDocumentFragment(),u=0;u<r.length;u++)this._addTile(r[u],_);this._level.el.appendChild(_)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}if(!this.options.bounds)return!0;i=this._tileCoordsToBounds(t);return g(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),e=n.add(e);return[i.unproject(n,t.z),i.unproject(e,t.z)]},_tileCoordsToBounds:function(t){t=this._tileCoordsToNwSe(t),t=new s(t[0],t[1]);return t=this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var t=t.split(":"),i=new p(+t[0],+t[1]);return i.z=+t[2],i},_removeTile:function(t){var i=this._tiles[t];i&&(T(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){z(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=u,t.onmousemove=u,P.ielt9&&this.options.opacity<1&&C(t,this.options.opacity)},_addTile:function(t,i){var e=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&x(a(this._tileReady,this,t,null,o)),Z(o,e),this._tiles[n]={el:o,coords:t,current:!0},i.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,i,e){i&&this.fire("tileerror",{error:i,tile:e,coords:t});var n=this._tileCoordsToKey(t);(e=this._tiles[n])&&(e.loaded=+new Date,this._map._fadeAnimated?(C(e.el,0),r(this._fadeFrame),this._fadeFrame=x(this._updateOpacity,this)):(e.active=!0,this._pruneTiles()),i||(z(e.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:e.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),P.ielt9||!this._map._fadeAnimated?x(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new p(this._wrapX?H(t.x,this._wrapX):t.x,this._wrapY?H(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new m(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var Ie=Ae.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,(i=c(this,i)).detectRetina&&P.retina&&0<i.maxZoom&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var e=document.createElement("img");return S(e,"load",a(this._tileOnLoad,this,i,e)),S(e,"error",a(this._tileOnError,this,i,e)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(e.referrerPolicy=this.options.referrerPolicy),e.alt="",e.setAttribute("role","presentation"),e.src=this.getTileUrl(t),e},getTileUrl:function(t){var i={r:P.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(i.y=t),i["-y"]=t),q(this._url,l(i,this.options))},_tileOnLoad:function(t,i){P.ielt9?setTimeout(a(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom;return(t=this.options.zoomReverse?i-t:t)+this.options.zoomOffset},_getSubdomain:function(t){t=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var t,i,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=u,e.onerror=u,e.complete||(e.src=K,i=this._tiles[t].coords,T(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})))},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",K),Ae.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(this._map&&(!e||e.getAttribute("src")!==K))return Ae.prototype._tileReady.call(this,t,i,e)}});function Oe(t,i){return new Ie(t,i)}var Re=Ie.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var e,n=l({},this.defaultWmsParams);for(e in i)e in this.options||(n[e]=i[e]);var t=(i=c(this,i)).detectRetina&&P.retina?2:1,o=this.getTileSize();n.width=o.x*t,n.height=o.y*t,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[i]=this._crs.code,Ie.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,e=f(e.project(i[0]),e.project(i[1])),i=e.min,e=e.max,i=(1.3<=this._wmsVersion&&this._crs===re?[i.y,i.x,e.y,e.x]:[i.x,i.y,e.x,e.y]).join(","),e=Ie.prototype.getTileUrl.call(this,t);return e+U(this.wmsParams,e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+i},setParams:function(t,i){return l(this.wmsParams,t),i||this.redraw(),this}});Ie.WMS=Re,Oe.wms=function(t,i){return new Re(t,i)};var Ne=o.extend({options:{padding:.1},initialize:function(t){c(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&z(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,i),n=n.multiplyBy(-e).add(o).subtract(this._map._getNewPixelOrigin(t,i));P.any3d?Pi(this._container,n,e):Z(this._container,n)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new m(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),De=Ne.extend({options:{tolerance:0},getEvents:function(){var t=Ne.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ne.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");S(t,"mousemove",this._onMouseMove,this),S(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),S(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){r(this._redrawRequest),delete this._ctx,T(this._container),E(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,i,e,n;this._map._animatingZoom&&this._bounds||(Ne.prototype._update.call(this),t=this._bounds,i=this._container,e=t.getSize(),n=P.retina?2:1,Z(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",P.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){Ne.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);t=(this._layers[h(t)]=t)._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,i=i.prev;e?e.prev=i:this._drawLast=i,i?i.next=e:this._drawFirst=e,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var i,e=t.options.dashArray.split(/[, ]+/),n=[],o=0;o<e.length;o++){if(i=Number(e[o]),isNaN(i))return;n.push(i)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||x(this._redraw,this))},_extendRedrawBounds:function(t){var i;t._pxBounds&&(i=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new m,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,i=this._redrawBounds;i?(t=i.getSize(),this._ctx.clearRect(i.min.x,i.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,i,e=this._redrawBounds;this._ctx.save(),e&&(i=e.getSize(),this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(h.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)s=r[e][n],h[n?"lineTo":"moveTo"](s.x,s.y);i&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){var i,e,n,o;this._drawing&&!t._empty()&&(i=t._point,e=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!=o&&e.restore(),this._fillStroke(e,t))},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(n)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(i)||(e=i));this._fireEvent(!!e&&[e],t)},_onMouseMove:function(t){var i;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(i=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,i))},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(M(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var e,n,o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(z(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i,e,n=t._order;n&&(i=n.next,e=n.prev,i&&((i.prev=e)?e.next=i:i&&(this._drawFirst=i),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var i,e,n=t._order;n&&(i=n.next,(e=n.prev)&&((e.next=i)?i.prev=e:e&&(this._drawLast=e),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function je(t){return P.canvas?new De(t):null}var He=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Mt={_initContainer:function(){this._container=b("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ne.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=He("shape");z(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=He("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;T(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i=i||(t._stroke=He("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=d(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e=e||(t._fill=He("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){fi(t._container)},_bringToBack:function(t){gi(t._container)}},We=P.vml?He:ct,Fe=Ne.extend({_initContainer:function(){this._container=We("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=We("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){T(this._container),E(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,i,e;this._map._animatingZoom&&this._bounds||(Ne.prototype._update.call(this),i=(t=this._bounds).getSize(),e=this._container,this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),Z(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update"))},_initPath:function(t){var i=t._path=We("path");t.options.className&&z(i,t.options.className),t.options.interactive&&z(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){T(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,t=t.options;i&&(t.stroke?(i.setAttribute("stroke",t.color),i.setAttribute("stroke-opacity",t.opacity),i.setAttribute("stroke-width",t.weight),i.setAttribute("stroke-linecap",t.lineCap),i.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?i.setAttribute("stroke-dasharray",t.dashArray):i.removeAttribute("stroke-dasharray"),t.dashOffset?i.setAttribute("stroke-dashoffset",t.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),t.fill?(i.setAttribute("fill",t.fillColor||t.color),i.setAttribute("fill-opacity",t.fillOpacity),i.setAttribute("fill-rule",t.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,dt(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",i=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,i)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){fi(t._path)},_bringToBack:function(t){gi(t._path)}});function Ue(t){return P.svg||P.vml?new Fe(t):null}P.vml&&Fe.include(Mt),A.include({getRenderer:function(t){t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&je(t)||Ue(t)}});var Ve=ge.extend({initialize:function(t,i){ge.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=g(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Fe.create=We,Fe.pointsToPath=dt,ve.geometryToLayer=ye,ve.coordsToLatLng=we,ve.coordsToLatLngs=Pe,ve.latLngToCoords=be,ve.latLngsToCoords=Le,ve.getFeature=Te,ve.asFeature=ze,A.mergeOptions({boxZoom:!0});var _t=n.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){S(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){E(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){T(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),ri(),Li(),this._startPoint=this._map.mouseEventToContainerPoint(t),S(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=b("div","leaflet-zoom-box",this._container),z(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var t=new m(this._point,this._startPoint),i=t.getSize();Z(this._box,t.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(T(this._box),M(this._container,"leaflet-crosshair")),ai(),Ti(),E(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0),t=new s(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Ct=(A.addInitHook("addHandler","boxZoom",_t),A.mergeOptions({doubleClickZoom:!0}),n.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,e=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(e):i.setZoomAround(t.containerPoint,e)}})),Zt=(A.addInitHook("addHandler","doubleClickZoom",Ct),A.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),n.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new Xi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),z(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){M(this._map._container,"leaflet-grab"),M(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,i=this._map;i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=g(this._map.options.maxBounds),this._offsetLimit=f(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var i,e;this._map.options.inertia&&(i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(e),this._times.push(i),this._prunePositions(i)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){var t,i;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit,t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,n=(n+i+e)%t-i-e,t=Math.abs(o+e)<Math.abs(n+e)?o:n;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd:function(t){var i,e,n,o,s=this._map,r=s.options,a=!r.inertia||t.noInertia||this._times.length<2;s.fire("dragend",t),a?s.fire("moveend"):(this._prunePositions(+new Date),t=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,i=r.easeLinearity,a=(t=t.multiplyBy(i/a)).distanceTo([0,0]),e=Math.min(r.inertiaMaxSpeed,a),t=t.multiplyBy(e/a),n=e/(r.inertiaDeceleration*i),(o=t.multiplyBy(-n/2).round()).x||o.y?(o=s._limitOffset(o,s.options.maxBounds),x(function(){s.panBy(o,{duration:n,easeLinearity:i,noMoveStart:!0,animate:!0})})):s.fire("moveend"))}})),St=(A.addInitHook("addHandler","dragging",Zt),A.mergeOptions({keyboard:!0,keyboardPanDelta:80}),n.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),S(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),E(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,i,e;this._focused||(e=document.body,t=document.documentElement,i=e.scrollTop||t.scrollTop,e=e.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(e,i))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var i=this._panKeys={},e=this.keyCodes,n=0,o=e.left.length;n<o;n++)i[e.left[n]]=[-1*t,0];for(n=0,o=e.right.length;n<o;n++)i[e.right[n]]=[t,0];for(n=0,o=e.down.length;n<o;n++)i[e.down[n]]=[0,t];for(n=0,o=e.up.length;n<o;n++)i[e.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var i=this._zoomKeys={},e=this.keyCodes,n=0,o=e.zoomIn.length;n<o;n++)i[e.zoomIn[n]]=t;for(n=0,o=e.zoomOut.length;n<o;n++)i[e.zoomOut[n]]=-t},_addHooks:function(){S(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){E(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e=t.keyCode,n=this._map;if(e in this._panKeys)n._panAnim&&n._panAnim._inProgress||(i=this._panKeys[e],t.shiftKey&&(i=_(i).multiplyBy(3)),n.panBy(i),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ri(t)}}})),kt=(A.addInitHook("addHandler","keyboard",St),A.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),n.extend({addHooks:function(){S(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){E(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=ji(t),e=this._map.options.wheelDebounceTime,i=(this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),Math.max(e-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),i),Ri(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0,n=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,e=e?Math.ceil(n/e)*e:n,n=t._limitZoom(i+(0<this._delta?e:-e))-i;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(i+n):t.setZoomAround(this._lastMousePos,i+n))}})),Et=(A.addInitHook("addHandler","scrollWheelZoom",kt),A.mergeOptions({tapHold:P.touchNative&&P.safari&&P.mobile,tapTolerance:15}),n.extend({addHooks:function(){S(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){E(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){var i;clearTimeout(this._holdTimeout),1===t.touches.length&&(i=t.touches[0],this._startPos=this._newPos=new p(i.clientX,i.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(S(document,"touchend",B),S(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),600),S(document,"touchend touchcancel contextmenu",this._cancel,this),S(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function t(){E(document,"touchend",B),E(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),E(document,"touchend touchcancel contextmenu",this._cancel,this),E(document,"touchmove",this._onMove,this)},_onMove:function(t){t=t.touches[0];this._newPos=new p(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});t._simulated=!0,i.target.dispatchEvent(t)}})),Bt=(A.addInitHook("addHandler","tapHold",Et),A.mergeOptions({touchZoom:P.touch,bounceAtZoomLimits:!0}),n.extend({addHooks:function(){z(this._map._container,"leaflet-touch-zoom"),S(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){M(this._map._container,"leaflet-touch-zoom"),E(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i,e,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(i=n.mouseEventToContainerPoint(t.touches[0]),e=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(i.add(e)._divideBy(2))),this._startDist=i.distanceTo(e),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),S(document,"touchmove",this._onTouchMove,this),S(document,"touchend touchcancel",this._onTouchEnd,this),B(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),o=e.distanceTo(n)/this._startDist;if(this._zoom=i.getScaleZoom(o,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&o<1||this._zoom>i.getMaxZoom()&&1<o)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{e=e._add(n)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===e.x&&0===e.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(e),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),r(this._animRequest);n=a(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=x(n,this,!0),B(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,r(this._animRequest),E(document,"touchmove",this._onTouchMove,this),E(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),qe=(A.addInitHook("addHandler","touchZoom",Bt),A.BoxZoom=_t,A.DoubleClickZoom=Ct,A.Drag=Zt,A.Keyboard=St,A.ScrollWheelZoom=kt,A.TapHold=Et,A.TouchZoom=Bt,t.Bounds=m,t.Browser=P,t.CRS=ot,t.Canvas=De,t.Circle=me,t.CircleMarker=pe,t.Class=it,t.Control=I,t.DivIcon=Be,t.DivOverlay=O,t.DomEvent=mt,t.DomUtil=pt,t.Draggable=Xi,t.Evented=et,t.FeatureGroup=he,t.GeoJSON=ve,t.GridLayer=Ae,t.Handler=n,t.Icon=le,t.ImageOverlay=Ce,t.LatLng=v,t.LatLngBounds=s,t.Layer=o,t.LayerGroup=ae,t.LineUtil=gt,t.Map=A,t.Marker=de,t.Mixin=ft,t.Path=_e,t.Point=p,t.PolyUtil=vt,t.Polygon=ge,t.Polyline=fe,t.Popup=ke,t.PosAnimation=Wi,t.Projection=wt,t.Rectangle=Ve,t.Renderer=Ne,t.SVG=Fe,t.SVGOverlay=Se,t.TileLayer=Ie,t.Tooltip=Ee,t.Transformation=at,t.Util=tt,t.VideoOverlay=Ze,t.bind=a,t.bounds=f,t.canvas=je,t.circle=function(t,i,e){return new me(t,i,e)},t.circleMarker=function(t,i){return new pe(t,i)},t.control=Fi,t.divIcon=function(t){return new Be(t)},t.extend=l,t.featureGroup=function(t,i){return new he(t,i)},t.geoJSON=Me,t.geoJson=zt,t.gridLayer=function(t){return new Ae(t)},t.icon=function(t){return new le(t)},t.imageOverlay=function(t,i,e){return new Ce(t,i,e)},t.latLng=w,t.latLngBounds=g,t.layerGroup=function(t,i){return new ae(t,i)},t.map=function(t,i){return new A(t,i)},t.marker=function(t,i){return new de(t,i)},t.point=_,t.polygon=function(t,i){return new ge(t,i)},t.polyline=function(t,i){return new fe(t,i)},t.popup=function(t,i){return new ke(t,i)},t.rectangle=function(t,i){return new Ve(t,i)},t.setOptions=c,t.stamp=h,t.svg=Ue,t.svgOverlay=function(t,i,e){return new Se(t,i,e)},t.tileLayer=Oe,t.tooltip=function(t,i){return new Ee(t,i)},t.transformation=ht,t.version="1.8.0",t.videoOverlay=function(t,i,e){return new Ze(t,i,e)},window.L);t.noConflict=function(){return window.L=qe,this},window.L=t});
autoloader.php DELETED
@@ -1,151 +0,0 @@
1
- <?php
2
- /**
3
- * Gutenberg Blocks Autoloader
4
- *
5
- * @package Gutenberg Blocks
6
- */
7
-
8
- namespace ThemeIsle\GutenbergBlocks;
9
-
10
- /**
11
- * Class Autoloader
12
- *
13
- * @package ThemeIsle\GutenbergBlocks
14
- */
15
- class Autoloader {
16
- /**
17
- * An associative array where the key is a namespace prefix and the value
18
- * is an array of base directories for classes in that namespace.
19
- *
20
- * @var array
21
- */
22
- protected $prefixes = array();
23
-
24
- /**
25
- * Register loader with SPL autoloader stack.
26
- *
27
- * @return void
28
- */
29
- public function register() {
30
- spl_autoload_register( array( $this, 'load_class' ) );
31
- }
32
-
33
- /**
34
- * Adds a base directory for a namespace prefix.
35
- *
36
- * @param string $prefix The namespace prefix.
37
- * @param string $base_dir A base directory for class files in the
38
- * namespace.
39
- * @param bool $prepend If true, prepend the base directory to the stack
40
- * instead of appending it; this causes it to be searched first rather
41
- * than last.
42
- * @return void
43
- */
44
- public function add_namespace( $prefix, $base_dir, $prepend = false ) {
45
- // normalize namespace prefix.
46
- $prefix = trim( $prefix, '\\' ) . '\\';
47
-
48
- // normalize the base directory with a trailing separator.
49
- $base_dir = rtrim( $base_dir, DIRECTORY_SEPARATOR ) . '/';
50
-
51
- // initialize the namespace prefix array.
52
- if ( isset( $this->prefixes[ $prefix ] ) === false ) {
53
- $this->prefixes[ $prefix ] = array();
54
- }
55
-
56
- // retain the base directory for the namespace prefix.
57
- if ( $prepend ) {
58
- array_unshift( $this->prefixes[ $prefix ], $base_dir );
59
- } else {
60
- array_push( $this->prefixes[ $prefix ], $base_dir );
61
- }
62
- }
63
-
64
- /**
65
- * Loads the class file for a given class name.
66
- *
67
- * @param string $class The fully-qualified class name.
68
- * @return mixed The mapped file name on success, or boolean false on
69
- * failure.
70
- */
71
- public function load_class( $class ) {
72
- // the current namespace prefix.
73
- $prefix = $class;
74
-
75
- // work backwards through the namespace names of the fully-qualified.
76
- // class name to find a mapped file name.
77
- while ( false !== $pos = strrpos( $prefix, '\\' ) ) { // phpcs:ignore WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
78
-
79
- // retain the trailing namespace separator in the prefix.
80
- $prefix = substr( $class, 0, $pos + 1 );
81
-
82
- // the rest is the relative class name.
83
- $relative_class = substr( $class, $pos + 1 );
84
-
85
- // try to load a mapped file for the prefix and relative class.
86
- $mapped_file = $this->load_mapped_file( $prefix, $relative_class );
87
- if ( $mapped_file ) {
88
- return $mapped_file;
89
- }
90
-
91
- // remove the trailing namespace separator for the next iteration.
92
- // of strrpos().
93
- $prefix = rtrim( $prefix, '\\' );
94
- }
95
-
96
- // never found a mapped file.
97
- return false;
98
- }
99
-
100
- /**
101
- * Load the mapped file for a namespace prefix and relative class.
102
- *
103
- * @param string $prefix The namespace prefix.
104
- * @param string $relative_class The relative class name.
105
- * @return mixed Boolean false if no mapped file can be loaded, or the
106
- * name of the mapped file that was loaded.
107
- */
108
- protected function load_mapped_file( $prefix, $relative_class ) {
109
- // are there any base directories for this namespace prefix?
110
- if ( isset( $this->prefixes[ $prefix ] ) === false ) {
111
- return false;
112
- }
113
-
114
- // look through base directories for this namespace prefix.
115
- foreach ( $this->prefixes[ $prefix ] as $base_dir ) {
116
-
117
- // replace the namespace prefix with the base directory,
118
- // replace namespace separators with directory separators
119
- // in the relative class name, append with .php.
120
- $relative_class = strtolower( str_replace( '\\', '/', $relative_class ) );
121
- $relative_class = str_replace( '_', '-', $relative_class );
122
-
123
- if ( strpos( $relative_class, '/' ) !== false ) {
124
- $relative_class = strrev( implode( strrev( '/class-' ), explode( strrev( '/' ), strrev( $relative_class ), 2 ) ) );
125
- } else {
126
- $relative_class = 'class-' . $relative_class;
127
- }
128
- $file = $base_dir . $relative_class . '.php';
129
-
130
- // if the mapped file exists, require it.
131
- if ( $this->require_file( $file ) ) {
132
- // yes, we're done.
133
- return $file;
134
- }
135
- }
136
-
137
- // never found it.
138
- return false;
139
- }
140
-
141
- /**
142
- * If a file exists, require it from the file system.
143
- *
144
- * @param string $file The file to require.
145
- * @return bool True if the file exists, false if not.
146
- */
147
- protected function require_file( $file ) {
148
- require $file;
149
- return true;
150
- }
151
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
build/animation/anim-count.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-dom-ready'), 'version' => '188e6e1bb7cd7d5ac27162b8d4581ac0');
1
+ <?php return array('dependencies' => array(), 'version' => 'a988b6ee4fe070282409ac6329517cd9');
build/animation/anim-count.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.domReady,n=e.n(t);const o={none:void 0,"o-count-slower":3,"o-count-slow":2,"o-count-fast":1.5,"o-count-fastest":1},r=new Set(Array.from("0123456789,.")),l=new Set(Array.from(","));n()((()=>{const e={root:null,rootMargin:"0px",threshold:[.6]},t=new Set("0123456789");setTimeout((()=>{document.querySelectorAll("o-anim-count").forEach((n=>{if(Array.from(n.innerHTML).some((e=>t.has(e)))){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&0<e.intersectionRect.height&&(t.unobserve(n),(e=>{var t,n,s;const i=(null==e?void 0:e.innerHTML)||"",u=(e=>{let t=e.parentElement;for(let e=0;e<3;++e)if(Array.from(t.classList).some((e=>e.includes("o-count-")))){var n,r;const e=Array.from(t.classList),l=e.filter((e=>e.includes("o-count-delay-"))).pop(),s=parseInt((null==l||null===(n=l.split("-"))||void 0===n?void 0:n[3])||"0"),i=null==l?void 0:l.includes("ms"),u=Object.keys(o),a=(null==e||null===(r=e.filter((e=>u.includes(e))))||void 0===r?void 0:r.pop())||"fast";return{speed:o[a],delay:s*(i?0:1e3)}}})(e),{suffix:a,prefix:c,number:p}=(e=>{const t=Array.from(e),n=[],o=[],l=[];let s=!0,i=!1;for(let e of t)r.has(e)?(s&&(s=!1),i?o.push(e):l.push(e)):s?n.push(e):(i||(i=!0),o.push(e));return{prefix:n.join(""),suffix:o.join(""),number:l}})(i),f=[...p].reverse().map(((e,t)=>l.has(e)?{position:t,character:e}:null)).filter((e=>e)),d=(null===(t=p.join(""))||void 0===t||null===(n=t.split("."))||void 0===n||null===(s=n[1])||void 0===s?void 0:s.length)||0,h=parseFloat(p.filter((e=>","!==e)).join("")),v=i.length-a.length,m=e=>{const t=e.split("").reverse();return f.forEach((e=>{e.position<t.length&&t.splice(e.position,0,e.character)})),((c||"")+t.reverse().join("")).padStart(v," ")+a||""},{start:y,steps:w}=((e,t)=>{let n,o=0;const r=Math.ceil(e/.05)+1||1,l=e=>{clearInterval(n),null==e||e()};return{steps:r,start:(e,t)=>{n=setInterval((()=>{o<r?(null==e||e(o),o+=1):l(t)}),50)},stop:l}})((null==u?void 0:u.speed)||2),g=parseFloat((h/w).toFixed(d||2));if(1e-12>g)return;let b=[0];for(let e=1;e<w;++e)b.push(b[e-1]+g);b=b.map((e=>e.toFixed(d))),0<b.length&&(b[w-1]=h.toFixed(d||0),e.innerHTML=m(b[0]),setTimeout((()=>{e.style.whiteSpace="pre",y((t=>{e.innerHTML=m(b[t])}),(()=>{e.style.whiteSpace="",e.innerHTML=i}))}),(null==u?void 0:u.delay)||0))})(n))}))}),e);t.observe(n)}else console.log(n)}))}),300)}))}();
1
+ !function(){"use strict";const e={none:void 0,"o-count-slower":3,"o-count-slow":2,"o-count-fast":1.5,"o-count-fastest":1},t=new Set(Array.from("0123456789,.")),n=new Set(Array.from(","));var o;o=()=>{const o={root:null,rootMargin:"0px",threshold:[.6]},r=new Set("0123456789");setTimeout((()=>{document.querySelectorAll("o-anim-count").forEach((l=>{if(Array.from(l.innerHTML).some((e=>r.has(e)))){const r=new IntersectionObserver((o=>{o.forEach((o=>{o.isIntersecting&&0<o.intersectionRect.height&&(r.unobserve(l),(o=>{var r,l,s;const i=(null==o?void 0:o.innerHTML)||"",a=(t=>{let n=t.parentElement;for(let t=0;t<3;++t)if(Array.from(n.classList).some((e=>e.includes("o-count-")))){var o,r;const t=Array.from(n.classList),l=t.filter((e=>e.includes("o-count-delay-"))).pop(),s=parseInt((null==l||null===(o=l.split("-"))||void 0===o?void 0:o[3])||"0"),i=null==l?void 0:l.includes("ms"),a=Object.keys(e),u=(null==t||null===(r=t.filter((e=>a.includes(e))))||void 0===r?void 0:r.pop())||"fast";return{speed:e[u],delay:s*(i?0:1e3)}}})(o),{suffix:u,prefix:c,number:d}=(e=>{const n=Array.from(e),o=[],r=[],l=[];let s=!0,i=!1;for(let e of n)t.has(e)?(s&&(s=!1),i?r.push(e):l.push(e)):s?o.push(e):(i||(i=!0),r.push(e));return{prefix:o.join(""),suffix:r.join(""),number:l}})(i),p=[...d].reverse().map(((e,t)=>n.has(e)?{position:t,character:e}:null)).filter((e=>e)),f=(null===(r=d.join(""))||void 0===r||null===(l=r.split("."))||void 0===l||null===(s=l[1])||void 0===s?void 0:s.length)||0,v=parseFloat(d.filter((e=>","!==e)).join("")),h=i.length-u.length,m=e=>{const t=e.split("").reverse();return p.forEach((e=>{e.position<t.length&&t.splice(e.position,0,e.character)})),((c||"")+t.reverse().join("")).padStart(h," ")+u||""},{start:y,steps:g}=((e,t)=>{let n,o=0;const r=Math.ceil(e/.05)+1||1,l=e=>{clearInterval(n),null==e||e()};return{steps:r,start:(e,t)=>{n=setInterval((()=>{o<r?(null==e||e(o),o+=1):l(t)}),50)},stop:l}})((null==a?void 0:a.speed)||2),L=parseFloat((v/g).toFixed(f||2));if(1e-12>L)return;let S=[0];for(let e=1;e<g;++e)S.push(S[e-1]+L);S=S.map((e=>e.toFixed(f))),0<S.length&&(S[g-1]=v.toFixed(f||0),o.innerHTML=m(S[0]),setTimeout((()=>{o.style.whiteSpace="pre",y((e=>{o.innerHTML=m(S[e])}),(()=>{o.style.whiteSpace="",o.innerHTML=i}))}),(null==a?void 0:a.delay)||0))})(l))}))}),o);r.observe(l)}else console.log(l)}))}),300)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",o):o())}();
build/animation/anim-typing.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-dom-ready'), 'version' => 'c9f1f36cdf8bb7f0a3142865884258a7');
1
+ <?php return array('dependencies' => array(), 'version' => '4b7a2cfd199c0db0ebc0adc6953f3c22');
build/animation/anim-typing.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var e={n:function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,{a:t}),t},d:function(n,t){for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},n=window.wp.domReady;const t={none:void 0,"o-typing-slower":.4,"o-typing-slow":.25,"o-typing-fast":.05,"o-typing-faster":.01};e.n(n)()((()=>{const e={root:null,rootMargin:"0px",threshold:[.6]};setTimeout((()=>{document.querySelectorAll("o-anim-typing").forEach((n=>{const r=(e=>{const n=(null==e?void 0:e.innerHTML)||"",r=(e=>{let n=e.parentElement;for(let e=0;e<3;++e)if(Array.from(n.classList).some((e=>e.includes("o-typing-")))){var r,l;const e=Array.from(n.classList),i=e.filter((e=>e.includes("o-typing-delay-"))).pop(),o=parseInt((null==i||null===(r=i.split("-"))||void 0===r?void 0:r[3])||"0"),s=null==i?void 0:i.includes("ms"),c=Object.keys(t),a=(null==e||null===(l=e.filter((e=>c.includes(e))))||void 0===l?void 0:l.pop())||"fast";return{speed:t[a],delay:o*(s?0:1e3)}}})(e);null!=n&&n.length||returnl;const l=n.length,i=((null==r?void 0:r.speed)||.1)*l,{start:o,steps:s,stop:c}=((e,n)=>{let t,r=0;const l=Math.ceil(e/n)+1||1,i=e=>{clearInterval(t),null==e||e()};return{steps:l,start:(e,o)=>{t=setInterval((()=>{r<l?(null==e||e(r),r+=1):i(o)}),1e3*n)},stop:i}})(i,(null==r?void 0:r.speed)||.1),a=document.createElement("span");a.classList.add("o-anim-typing-caret"),a.style.whiteSpace="pre-wrap";const u=document.createElement("span");u.style.whiteSpace="pre-wrap",u.style.visibility="hidden";const d=e.innerHTML;return e.innerHTML="",e.appendChild(a),e.appendChild(u),a.innerHTML=n.slice(0,0),u.innerHTML=n.slice(0),()=>{setTimeout((()=>{o((e=>{a.innerHTML=n.slice(0,e),e<l&&(u.innerHTML=n.slice(e)),l>=s&&c()}),(()=>{e.innerHTML=d}))}),(null==r?void 0:r.delay)||0)}})(n),l=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&0<e.intersectionRect.height&&(l.unobserve(n),r())}))}),e);l.observe(n)}))}),100)}))}();
1
+ !function(){"use strict";const e={none:void 0,"o-typing-slower":.4,"o-typing-slow":.25,"o-typing-fast":.05,"o-typing-faster":.01};var t;t=()=>{const t={root:null,rootMargin:"0px",threshold:[.6]};setTimeout((()=>{document.querySelectorAll("o-anim-typing").forEach((n=>{const l=(t=>{const n=(null==t?void 0:t.innerHTML)||"",l=(t=>{let n=t.parentElement;for(let t=0;t<3;++t)if(Array.from(n.classList).some((e=>e.includes("o-typing-")))){var l,i;const t=Array.from(n.classList),s=t.filter((e=>e.includes("o-typing-delay-"))).pop(),o=parseInt((null==s||null===(l=s.split("-"))||void 0===l?void 0:l[3])||"0"),r=null==s?void 0:s.includes("ms"),c=Object.keys(e),a=(null==t||null===(i=t.filter((e=>c.includes(e))))||void 0===i?void 0:i.pop())||"fast";return{speed:e[a],delay:o*(r?0:1e3)}}})(t);null!=n&&n.length||returnl;const i=n.length,s=((null==l?void 0:l.speed)||.1)*i,{start:o,steps:r,stop:c}=((e,t)=>{let n,l=0;const i=Math.ceil(e/t)+1||1,s=e=>{clearInterval(n),null==e||e()};return{steps:i,start:(e,o)=>{n=setInterval((()=>{l<i?(null==e||e(l),l+=1):s(o)}),1e3*t)},stop:s}})(s,(null==l?void 0:l.speed)||.1),a=document.createElement("span");a.classList.add("o-anim-typing-caret"),a.style.whiteSpace="pre-wrap";const d=document.createElement("span");d.style.whiteSpace="pre-wrap",d.style.visibility="hidden";const p=t.innerHTML;return t.innerHTML="",t.appendChild(a),t.appendChild(d),a.innerHTML=n.slice(0,0),d.innerHTML=n.slice(0),()=>{setTimeout((()=>{o((e=>{a.innerHTML=n.slice(0,e),e<i&&(d.innerHTML=n.slice(e)),i>=r&&c()}),(()=>{t.innerHTML=p}))}),(null==l?void 0:l.delay)||0)}})(n),i=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&0<e.intersectionRect.height&&(i.unobserve(n),l())}))}),t);i.observe(n)}))}),100)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t):t())}();
build/animation/blocks/blocks/about-author/block.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/about-author",
5
+ "title": "About Author",
6
+ "category": "themeisle-blocks",
7
+ "description": "About Author block is the easiest way to add a author bio below your posts. Powered by Otter.",
8
+ "keywords": [ "about", "author", "profile" ],
9
+ "textdomain": "otter-blocks",
10
+ "supports": {
11
+ "html": false
12
+ },
13
+ "editorStyle": "otter-about-author-editor",
14
+ "style": "otter-about-author-style"
15
+ }
build/animation/blocks/blocks/accordion/group/block.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/accordion",
5
+ "title": "Accordion",
6
+ "category": "themeisle-blocks",
7
+ "description": "Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.",
8
+ "keywords": [ "accordions", "collapse", "faq" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "gap": {
15
+ "type": "string"
16
+ },
17
+ "titleColor": {
18
+ "type": "string"
19
+ },
20
+ "titleBackground": {
21
+ "type": "string"
22
+ },
23
+ "contentBackground": {
24
+ "type": "string"
25
+ },
26
+ "borderColor": {
27
+ "type": "string"
28
+ },
29
+ "isSynced": {
30
+ "type": "array"
31
+ }
32
+ },
33
+ "supports": {
34
+ "html": false
35
+ },
36
+ "editorStyle": "otter-accordion-editor",
37
+ "style": "otter-accordion-style"
38
+ }
build/animation/blocks/blocks/accordion/item/block.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/accordion-item",
5
+ "title": "Accordion Item",
6
+ "category": "themeisle-blocks",
7
+ "description": "Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.",
8
+ "keywords": [ "accordions", "collapse", "faq" ],
9
+ "parent": [ "themeisle-blocks/accordion" ],
10
+ "textdomain": "otter-blocks",
11
+ "attributes": {
12
+ "title": {
13
+ "type": "string"
14
+ },
15
+ "initialOpen": {
16
+ "type": "boolean",
17
+ "default": false
18
+ }
19
+ },
20
+ "supports": {
21
+ "reusable": false
22
+ }
23
+ }
build/animation/blocks/blocks/advanced-heading/block.json ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/advanced-heading",
5
+ "title": "Advanced Heading",
6
+ "category": "themeisle-blocks",
7
+ "description": "Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.",
8
+ "keywords": [ "heading", "title", "advanced heading" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "content": {
15
+ "type": "string",
16
+ "source": "html",
17
+ "selector": "h1,h2,h3,h4,h5,h6,div,p,span",
18
+ "default": ""
19
+ },
20
+ "tag": {
21
+ "default": "h2",
22
+ "type": "string"
23
+ },
24
+ "align": {
25
+ "type": "string"
26
+ },
27
+ "alignTablet": {
28
+ "type": "string"
29
+ },
30
+ "alignMobile": {
31
+ "type": "string"
32
+ },
33
+ "headingColor": {
34
+ "type": "string"
35
+ },
36
+ "highlightColor": {
37
+ "type": "string"
38
+ },
39
+ "highlightBackground": {
40
+ "type": "string"
41
+ },
42
+ "fontSize": {
43
+ "type": "number"
44
+ },
45
+ "fontSizeTablet": {
46
+ "type": "number"
47
+ },
48
+ "fontSizeMobile": {
49
+ "type": "number"
50
+ },
51
+ "fontFamily": {
52
+ "type": "string"
53
+ },
54
+ "fontVariant": {
55
+ "type": "string"
56
+ },
57
+ "fontStyle": {
58
+ "type": "string"
59
+ },
60
+ "textTransform": {
61
+ "type": "string"
62
+ },
63
+ "lineHeight": {
64
+ "type": "number"
65
+ },
66
+ "letterSpacing": {
67
+ "type": "number"
68
+ },
69
+ "textShadow": {
70
+ "type": "boolean",
71
+ "default": false
72
+ },
73
+ "textShadowColor": {
74
+ "type": "string",
75
+ "default": "#000000"
76
+ },
77
+ "textShadowColorOpacity": {
78
+ "type": "number",
79
+ "default": 50
80
+ },
81
+ "textShadowBlur": {
82
+ "type": "number",
83
+ "default": 5
84
+ },
85
+ "textShadowHorizontal": {
86
+ "type": "number",
87
+ "default": 0
88
+ },
89
+ "textShadowVertical": {
90
+ "type": "number",
91
+ "default": 0
92
+ },
93
+ "paddingType": {
94
+ "type": "string",
95
+ "default": "linked"
96
+ },
97
+ "paddingTypeTablet": {
98
+ "type": "string",
99
+ "default": "linked"
100
+ },
101
+ "paddingTypeMobile": {
102
+ "type": "string",
103
+ "default": "linked"
104
+ },
105
+ "padding": {
106
+ "type": "number",
107
+ "default": 0
108
+ },
109
+ "paddingTablet": {
110
+ "type": "number"
111
+ },
112
+ "paddingMobile": {
113
+ "type": "number"
114
+ },
115
+ "paddingTop": {
116
+ "type": "number",
117
+ "default": 0
118
+ },
119
+ "paddingTopTablet": {
120
+ "type": "number"
121
+ },
122
+ "paddingTopMobile": {
123
+ "type": "number"
124
+ },
125
+ "paddingRight": {
126
+ "type": "number",
127
+ "default": 0
128
+ },
129
+ "paddingRightTablet": {
130
+ "type": "number"
131
+ },
132
+ "paddingRightMobile": {
133
+ "type": "number"
134
+ },
135
+ "paddingBottom": {
136
+ "type": "number",
137
+ "default": 0
138
+ },
139
+ "paddingBottomTablet": {
140
+ "type": "number"
141
+ },
142
+ "paddingBottomMobile": {
143
+ "type": "number"
144
+ },
145
+ "paddingLeft": {
146
+ "type": "number",
147
+ "default": 0
148
+ },
149
+ "paddingLeftTablet": {
150
+ "type": "number"
151
+ },
152
+ "paddingLeftMobile": {
153
+ "type": "number"
154
+ },
155
+ "marginType": {
156
+ "type": "string",
157
+ "default": "unlinked"
158
+ },
159
+ "marginTypeTablet": {
160
+ "type": "string",
161
+ "default": "unlinked"
162
+ },
163
+ "marginTypeMobile": {
164
+ "type": "string",
165
+ "default": "unlinked"
166
+ },
167
+ "margin": {
168
+ "type": "number",
169
+ "default": 0
170
+ },
171
+ "marginTablet": {
172
+ "type": "number"
173
+ },
174
+ "marginMobile": {
175
+ "type": "number"
176
+ },
177
+ "marginTop": {
178
+ "type": "number",
179
+ "default": 0
180
+ },
181
+ "marginTopTablet": {
182
+ "type": "number"
183
+ },
184
+ "marginTopMobile": {
185
+ "type": "number"
186
+ },
187
+ "marginBottom": {
188
+ "type": "number",
189
+ "default": 25
190
+ },
191
+ "marginBottomTablet": {
192
+ "type": "number"
193
+ },
194
+ "marginBottomMobile": {
195
+ "type": "number"
196
+ }
197
+ },
198
+ "editorStyle": "otter-advanced-heading-editor",
199
+ "style": "otter-advanced-heading-style"
200
+ }
build/animation/blocks/blocks/button-group/button/block.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/button",
5
+ "title": "Button",
6
+ "category": "themeisle-blocks",
7
+ "description": "Prompt visitors to take action with a button group. Powered by Otter.",
8
+ "keywords": [ "button", "buttons", "button group" ],
9
+ "parent": [ "themeisle-blocks/button-group" ],
10
+ "textdomain": "otter-blocks",
11
+ "attributes": {
12
+ "id": {
13
+ "type": "string"
14
+ },
15
+ "text": {
16
+ "type": "string",
17
+ "source": "html",
18
+ "selector": "span"
19
+ },
20
+ "link": {
21
+ "type": "string",
22
+ "source": "attribute",
23
+ "selector": "a",
24
+ "attribute": "href"
25
+ },
26
+ "newTab": {
27
+ "type": "boolean",
28
+ "default": false
29
+ },
30
+ "color": {
31
+ "type": "string"
32
+ },
33
+ "background": {
34
+ "type": "string"
35
+ },
36
+ "backgroundGradient": {
37
+ "type": "string"
38
+ },
39
+ "border": {
40
+ "type": "string"
41
+ },
42
+ "hoverColor": {
43
+ "type": "string"
44
+ },
45
+ "hoverBackground": {
46
+ "type": "string"
47
+ },
48
+ "hoverBackgroundGradient": {
49
+ "type": "string"
50
+ },
51
+ "hoverBorder": {
52
+ "type": "string"
53
+ },
54
+ "borderSize": {
55
+ "type": "number"
56
+ },
57
+ "borderRadius": {
58
+ "type": "number"
59
+ },
60
+ "boxShadow": {
61
+ "type": "boolean",
62
+ "default": false
63
+ },
64
+ "boxShadowColor": {
65
+ "type": "string"
66
+ },
67
+ "boxShadowColorOpacity": {
68
+ "type": "number",
69
+ "default": 50
70
+ },
71
+ "boxShadowBlur": {
72
+ "type": "number",
73
+ "default": 5
74
+ },
75
+ "boxShadowSpread": {
76
+ "type": "number",
77
+ "default": 1
78
+ },
79
+ "boxShadowHorizontal": {
80
+ "type": "number",
81
+ "default": 0
82
+ },
83
+ "boxShadowVertical": {
84
+ "type": "number",
85
+ "default": 0
86
+ },
87
+ "hoverBoxShadowColor": {
88
+ "type": "string"
89
+ },
90
+ "hoverBoxShadowColorOpacity": {
91
+ "type": "number",
92
+ "default": 50
93
+ },
94
+ "hoverBoxShadowBlur": {
95
+ "type": "number",
96
+ "default": 5
97
+ },
98
+ "hoverBoxShadowSpread": {
99
+ "type": "number",
100
+ "default": 1
101
+ },
102
+ "hoverBoxShadowHorizontal": {
103
+ "type": "number",
104
+ "default": 0
105
+ },
106
+ "hoverBoxShadowVertical": {
107
+ "type": "number",
108
+ "default": 0
109
+ },
110
+ "iconType": {
111
+ "type": "string",
112
+ "default": "none"
113
+ },
114
+ "library": {
115
+ "type": "string",
116
+ "default": "fontawesome"
117
+ },
118
+ "prefix": {
119
+ "type": "string"
120
+ },
121
+ "icon": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "supports": {
126
+ "reusable": false
127
+ },
128
+ "styles": [
129
+ {
130
+ "name": "fill",
131
+ "label": "Fill",
132
+ "isDefault": true
133
+ },
134
+ {
135
+ "name": "outline",
136
+ "label": "Outline"
137
+ }
138
+ ]
139
+ }
build/animation/blocks/blocks/button-group/group/block.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/button-group",
5
+ "title": "Button Group",
6
+ "category": "themeisle-blocks",
7
+ "description": "Prompt visitors to take action with a button group. Powered by Otter.",
8
+ "keywords": [ "button", "buttons", "button group" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "align": {
15
+ "type": "string"
16
+ },
17
+ "spacing": {
18
+ "type": "number",
19
+ "default": 20
20
+ },
21
+ "paddingTopBottom": {
22
+ "type": "number"
23
+ },
24
+ "paddingLeftRight": {
25
+ "type": "number"
26
+ },
27
+ "collapse": {
28
+ "type": "string",
29
+ "default": "collapse-none"
30
+ },
31
+ "fontSize": {
32
+ "type": "number"
33
+ },
34
+ "fontFamily": {
35
+ "type": "string"
36
+ },
37
+ "fontVariant": {
38
+ "type": "string"
39
+ },
40
+ "textTransform": {
41
+ "type": "string"
42
+ },
43
+ "fontStyle": {
44
+ "type": "string"
45
+ },
46
+ "lineHeight": {
47
+ "type": "number"
48
+ }
49
+ },
50
+ "editorStyle": "otter-button-group-editor",
51
+ "style": "otter-button-group-style"
52
+ }
build/animation/blocks/blocks/circle-counter/block.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/circle-counter",
5
+ "title": "Circle Counter",
6
+ "category": "themeisle-blocks",
7
+ "description": "Show your progress with a beautiful Circle Counter block. Powered by Otter.",
8
+ "keywords": [ "progress", "circle", "counter" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "default": "Skill"
17
+ },
18
+ "percentage": {
19
+ "type": "number",
20
+ "default": 50
21
+ },
22
+ "duration": {
23
+ "type": "number",
24
+ "default": 2
25
+ },
26
+ "titleStyle": {
27
+ "type": "string",
28
+ "default": "default"
29
+ },
30
+ "height": {
31
+ "type": "number",
32
+ "default": 100
33
+ },
34
+ "fontSizeTitle": {
35
+ "type": "number"
36
+ },
37
+ "fontSizePercent": {
38
+ "type": "number"
39
+ },
40
+ "strokeWidth": {
41
+ "type": "number",
42
+ "default": 10
43
+ },
44
+ "backgroundColor": {
45
+ "type": "string"
46
+ },
47
+ "progressColor": {
48
+ "type": "string"
49
+ },
50
+ "titleColor": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "editorStyle": "otter-circle-counter-editor",
55
+ "style": "otter-circle-counter-style",
56
+ "script": "otter-circle-counter"
57
+ }
build/animation/blocks/blocks/countdown/block.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/countdown",
5
+ "title": "Countdown",
6
+ "category": "themeisle-blocks",
7
+ "description": "Set a countdown for a date. Powered by Otter.",
8
+ "keywords": [ "countdown", "time", "counter" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "date": {
15
+ "type": "string"
16
+ },
17
+ "exclude": {
18
+ "type": "array"
19
+ },
20
+ "backgroundColor": {
21
+ "type": "string"
22
+ },
23
+ "valueColor": {
24
+ "type": "string"
25
+ },
26
+ "labelColor": {
27
+ "type": "string"
28
+ },
29
+ "labelDistance": {
30
+ "type": "number"
31
+ },
32
+ "gap": {
33
+ "type": "number"
34
+ },
35
+ "gapTablet": {
36
+ "type": "number"
37
+ },
38
+ "gapMobile": {
39
+ "type": "number"
40
+ },
41
+ "width": {
42
+ "type": "number"
43
+ },
44
+ "widthTablet": {
45
+ "type": "number"
46
+ },
47
+ "widthMobile": {
48
+ "type": "number"
49
+ },
50
+ "height": {
51
+ "type": "number"
52
+ },
53
+ "heightTablet": {
54
+ "type": "number"
55
+ },
56
+ "heightMobile": {
57
+ "type": "number"
58
+ },
59
+ "borderRadius": {
60
+ "type": "number",
61
+ "default": 0
62
+ },
63
+ "borderRadiusType": {
64
+ "type": "string",
65
+ "default": "linked"
66
+ },
67
+ "borderRadiusTopRight": {
68
+ "type": "number",
69
+ "default": 0
70
+ },
71
+ "borderRadiusTopLeft": {
72
+ "type": "number",
73
+ "default": 0
74
+ },
75
+ "borderRadiusBottomRight": {
76
+ "type": "number",
77
+ "default": 0
78
+ },
79
+ "borderRadiusBottomLeft": {
80
+ "type": "number",
81
+ "default": 0
82
+ },
83
+ "borderWidth": {
84
+ "type": "number"
85
+ },
86
+ "borderWidthTablet": {
87
+ "type": "number"
88
+ },
89
+ "borderWidthMobile": {
90
+ "type": "number"
91
+ },
92
+ "borderColor": {
93
+ "type": "string"
94
+ },
95
+ "valueFontSize": {
96
+ "type": "number"
97
+ },
98
+ "valueFontSizeTablet": {
99
+ "type": "number"
100
+ },
101
+ "valueFontSizeMobile": {
102
+ "type": "number"
103
+ },
104
+ "labelFontSize": {
105
+ "type": "number"
106
+ },
107
+ "labelFontSizeTablet": {
108
+ "type": "number"
109
+ },
110
+ "labelFontSizeMobile": {
111
+ "type": "number"
112
+ },
113
+ "hasSeparators": {
114
+ "type": "boolean"
115
+ }
116
+ },
117
+ "supports": {
118
+ "align": [ "wide", "full" ]
119
+ },
120
+ "editorStyle": "otter-countdown-editor",
121
+ "style": "otter-countdown-style",
122
+ "script": "otter-countdown"
123
+ }
build/animation/blocks/blocks/flip/block.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/flip",
5
+ "title": "Flip Card",
6
+ "category": "themeisle-blocks",
7
+ "description": "Make a card with a flip effect. Powered by Otter.",
8
+ "keywords": [ "flip card", "container", "animation" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "isInverted": {
15
+ "type": "boolean"
16
+ },
17
+ "title": {
18
+ "type": "string"
19
+ },
20
+ "description": {
21
+ "type": "string"
22
+ },
23
+ "animType": {
24
+ "type": "string",
25
+ "default": "flipY"
26
+ },
27
+ "width": {
28
+ "type": "number"
29
+ },
30
+ "height": {
31
+ "type": "number"
32
+ },
33
+ "padding": {
34
+ "type": "number"
35
+ },
36
+ "borderWidth": {
37
+ "type": "string"
38
+ },
39
+ "borderColor": {
40
+ "type": "string"
41
+ },
42
+ "borderRadius": {
43
+ "type": "number"
44
+ },
45
+ "backgroundColor": {
46
+ "type": "string"
47
+ },
48
+ "frontVerticalAlign": {
49
+ "type": "string"
50
+ },
51
+ "frontHorizontalAlign": {
52
+ "type": "string"
53
+ },
54
+ "backVerticalAlign": {
55
+ "type": "string"
56
+ },
57
+ "frontMedia": {
58
+ "type": "object"
59
+ },
60
+ "frontMediaWidth": {
61
+ "type": "number"
62
+ },
63
+ "frontMediaHeight": {
64
+ "type": "number"
65
+ },
66
+ "frontBackgroundImage": {
67
+ "type": "object"
68
+ },
69
+ "frontBackgroundType": {
70
+ "type": "string",
71
+ "default": "color"
72
+ },
73
+ "frontBackgroundColor": {
74
+ "type": "string"
75
+ },
76
+ "frontBackgroundGradient": {
77
+ "type": "string"
78
+ },
79
+ "frontBackgroundPosition": {
80
+ "type": "object"
81
+ },
82
+ "frontBackgroundRepeat": {
83
+ "type": "string"
84
+ },
85
+ "frontBackgroundAttachment": {
86
+ "type": "string"
87
+ },
88
+ "frontBackgroundSize": {
89
+ "type": "string"
90
+ },
91
+ "backBackgroundImage": {
92
+ "type": "object"
93
+ },
94
+ "backBackgroundType": {
95
+ "type": "string",
96
+ "default": "color"
97
+ },
98
+ "backBackgroundColor": {
99
+ "type": "string"
100
+ },
101
+ "backBackgroundGradient": {
102
+ "type": "string"
103
+ },
104
+ "backBackgroundPosition": {
105
+ "type": "object"
106
+ },
107
+ "backBackgroundRepeat": {
108
+ "type": "string"
109
+ },
110
+ "backBackgroundSize": {
111
+ "type": "string"
112
+ },
113
+ "backBackgroundAttachment": {
114
+ "type": "string"
115
+ },
116
+ "boxShadow": {
117
+ "type": "boolean",
118
+ "default": false
119
+ },
120
+ "boxShadowColor": {
121
+ "type": "string",
122
+ "default": "#000000"
123
+ },
124
+ "boxShadowColorOpacity": {
125
+ "type": "number",
126
+ "default": 50
127
+ },
128
+ "boxShadowBlur": {
129
+ "type": "number",
130
+ "default": 5
131
+ },
132
+ "boxShadowHorizontal": {
133
+ "type": "number",
134
+ "default": 0
135
+ },
136
+ "boxShadowVertical": {
137
+ "type": "number",
138
+ "default": 0
139
+ },
140
+ "titleFontSize": {
141
+ "type": "number"
142
+ },
143
+ "descriptionFontSize": {
144
+ "type": "number"
145
+ },
146
+ "titleColor": {
147
+ "type": "string"
148
+ },
149
+ "descriptionColor": {
150
+ "type": "string"
151
+ }
152
+ },
153
+ "editorStyle": "otter-flip-editor",
154
+ "style": "otter-flip-style"
155
+ }
build/animation/blocks/blocks/font-awesome-icons/block.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/font-awesome-icons",
5
+ "title": "Icon",
6
+ "category": "themeisle-blocks",
7
+ "description": "Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.",
8
+ "keywords": [ "font awesome", "dashicons", "icons" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "align": {
15
+ "type": "string"
16
+ },
17
+ "library": {
18
+ "type": "string",
19
+ "default": "fontawesome"
20
+ },
21
+ "prefix": {
22
+ "type": "string",
23
+ "default": "fab"
24
+ },
25
+ "icon": {
26
+ "type": "string",
27
+ "default": "themeisle"
28
+ },
29
+ "link": {
30
+ "type": "string"
31
+ },
32
+ "newTab": {
33
+ "type": "boolean",
34
+ "default": false
35
+ },
36
+ "fontSize": {
37
+ "type": "number",
38
+ "default": 16
39
+ },
40
+ "padding": {
41
+ "type": "number",
42
+ "default": 5
43
+ },
44
+ "margin": {
45
+ "type": "number",
46
+ "default": 5
47
+ },
48
+ "backgroundColor": {
49
+ "type": "string"
50
+ },
51
+ "textColor": {
52
+ "type": "string"
53
+ },
54
+ "borderColor": {
55
+ "type": "string"
56
+ },
57
+ "backgroundColorHover": {
58
+ "type": "string"
59
+ },
60
+ "textColorHover": {
61
+ "type": "string"
62
+ },
63
+ "borderColorHover": {
64
+ "type": "string"
65
+ },
66
+ "borderSize": {
67
+ "type": "number",
68
+ "default": 0
69
+ },
70
+ "borderRadius": {
71
+ "type": "number",
72
+ "default": 0
73
+ },
74
+ "isSynced": {
75
+ "type": "array"
76
+ }
77
+ },
78
+ "editorStyle": "otter-font-awesome-editor",
79
+ "style": "otter-font-awesome-style"
80
+ }
build/animation/blocks/blocks/form/block.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/form",
5
+ "title": "Form",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display a form for your clients. Powered by Otter.",
8
+ "keywords": [ "business", "form", "email" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "subject": {
15
+ "type": "string"
16
+ },
17
+ "emailTo": {
18
+ "type": "string"
19
+ },
20
+ "optionName": {
21
+ "type": "string"
22
+ },
23
+ "hasCaptcha": {
24
+ "type": "boolean"
25
+ },
26
+ "provider": {
27
+ "type": "string",
28
+ "default": ""
29
+ },
30
+ "apiKey": {
31
+ "type": "string"
32
+ },
33
+ "listId": {
34
+ "type": "string"
35
+ },
36
+ "action": {
37
+ "type": "string",
38
+ "default": "subscribe"
39
+ }
40
+ },
41
+ "supports": {
42
+ "align": [ "wide", "full" ]
43
+ },
44
+ "editorStyle": "otter-form-editor",
45
+ "style": "otter-form-style",
46
+ "script": "otter-form"
47
+ }
build/animation/blocks/blocks/form/input/block.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/form-input",
5
+ "title": "Text Field",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display a contact form for your clients.",
8
+ "keywords": [ "input", "text", "email" ],
9
+ "parent": [ "themeisle-blocks/form" ],
10
+ "textdomain": "otter-blocks",
11
+ "attributes": {
12
+ "id": {
13
+ "type": "string"
14
+ },
15
+ "type": {
16
+ "type": "string",
17
+ "default": "text"
18
+ },
19
+ "label": {
20
+ "type": "string"
21
+ },
22
+ "placeholder": {
23
+ "type": "string"
24
+ },
25
+ "isRequired": {
26
+ "type": "boolean"
27
+ },
28
+ "mappedName": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "supports": {
33
+ "align": [ "wide", "full" ]
34
+ }
35
+ }
build/animation/blocks/blocks/form/nonce/block.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/form-nonce",
5
+ "title": "Nonce Field",
6
+ "category": "themeisle-blocks",
7
+ "description": "Protect the form from CSRF.",
8
+ "keywords": [ "protection", "csrf", "field" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "formId": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "supports": {
16
+ "align": [ "wide", "full" ],
17
+ "inserter": false
18
+ }
19
+ }
build/animation/blocks/blocks/form/textarea/block.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/form-textarea",
5
+ "title": "Textarea Field",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display a contact form for your clients.",
8
+ "keywords": [ "textarea", "message", "input" ],
9
+ "parent": [ "themeisle-blocks/form" ],
10
+ "textdomain": "otter-blocks",
11
+ "attributes": {
12
+ "id": {
13
+ "type": "string"
14
+ },
15
+ "label": {
16
+ "type": "string"
17
+ },
18
+ "placeholder": {
19
+ "type": "string"
20
+ },
21
+ "isRequired": {
22
+ "type": "boolean"
23
+ },
24
+ "mappedName": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "supports": {
29
+ "align": [ "wide", "full" ]
30
+ }
31
+ }
build/animation/blocks/blocks/google-map/block.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/google-map",
5
+ "title": "Google Maps",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display Google Maps on your website with Google Map block. Powered by Otter.",
8
+ "keywords": [ "map", "google", "orbitfox" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "style": {
15
+ "type": "string",
16
+ "default": "standard"
17
+ },
18
+ "location": {
19
+ "type": "string",
20
+ "default": "La Sagrada Familia, Barcelona, Spain"
21
+ },
22
+ "latitude": {
23
+ "type": "string"
24
+ },
25
+ "longitude": {
26
+ "type": "string"
27
+ },
28
+ "type": {
29
+ "type": "string",
30
+ "default": "roadmap"
31
+ },
32
+ "zoom": {
33
+ "type": "number",
34
+ "default": 15
35
+ },
36
+ "height": {
37
+ "type": "number",
38
+ "default": 400
39
+ },
40
+ "draggable": {
41
+ "type": "boolean",
42
+ "default": true
43
+ },
44
+ "mapTypeControl": {
45
+ "type": "boolean",
46
+ "default": true
47
+ },
48
+ "zoomControl": {
49
+ "type": "boolean",
50
+ "default": true
51
+ },
52
+ "fullscreenControl": {
53
+ "type": "boolean",
54
+ "default": true
55
+ },
56
+ "streetViewControl": {
57
+ "type": "boolean",
58
+ "default": true
59
+ },
60
+ "markers": {
61
+ "type": "array",
62
+ "default": []
63
+ }
64
+ },
65
+ "supports": {
66
+ "align": [ "wide", "full" ],
67
+ "html": false
68
+ },
69
+ "editorStyle": "otter-google-map-editor",
70
+ "style": "otter-google-map-style",
71
+ "script": "google-maps"
72
+ }
build/animation/blocks/blocks/icon-list/block.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/icon-list",
5
+ "title": "Icon List",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display an icon list in a beautiful layout. Powered by Otter.",
8
+ "keywords": [ "icon", "list", "items" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "defaultLibrary": {
15
+ "type": "string",
16
+ "default": "fontawesome"
17
+ },
18
+ "defaultIconPrefix": {
19
+ "type": "string",
20
+ "default": "fas"
21
+ },
22
+ "defaultIcon": {
23
+ "type": "string",
24
+ "default": "angle-right"
25
+ },
26
+ "defaultContentColor": {
27
+ "type": "string"
28
+ },
29
+ "defaultIconColor": {
30
+ "type": "string"
31
+ },
32
+ "defaultSize": {
33
+ "type": "number",
34
+ "default": 20
35
+ },
36
+ "gap": {
37
+ "type": "number",
38
+ "default": 5
39
+ },
40
+ "horizontalAlign": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ "styles": [
45
+ {
46
+ "name": "vertical",
47
+ "label": "Vertical",
48
+ "isDefault": true
49
+ },
50
+ {
51
+ "name": "horizontal",
52
+ "label": "Horizontal"
53
+ }
54
+ ],
55
+ "editorStyle": "otter-icon-list-editor",
56
+ "style": "otter-icon-list-style"
57
+ }
build/animation/blocks/blocks/icon-list/item/block.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/icon-list-item",
5
+ "title": "Icon List Item",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display an item for the icon list. Powered by Otter.",
8
+ "keywords": [ "icon", "list", "items" ],
9
+ "parent": [ "themeisle-blocks/icon-list" ],
10
+ "textdomain": "otter-blocks",
11
+ "attributes": {
12
+ "id": {
13
+ "type": "string"
14
+ },
15
+ "content": {
16
+ "type": "string"
17
+ },
18
+ "contentColor": {
19
+ "type": "string"
20
+ },
21
+ "iconColor": {
22
+ "type": "string"
23
+ },
24
+ "library": {
25
+ "type": "string"
26
+ },
27
+ "iconPrefix": {
28
+ "type": "string"
29
+ },
30
+ "icon": {
31
+ "type": "string"
32
+ }
33
+ }
34
+ }
build/animation/blocks/blocks/leaflet-map/block.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/leaflet-map",
5
+ "title": "Maps",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display Open Street Maps on your website with Maps block. Powered by Otter.",
8
+ "keywords": [ "map", "opeenstreetmap", "location" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "location": {
15
+ "type": "string",
16
+ "default": "La Sagrada Familia, Barcelona, Spain"
17
+ },
18
+ "latitude": {
19
+ "type": "string",
20
+ "default": "41.4034789"
21
+ },
22
+ "longitude": {
23
+ "type": "string",
24
+ "default": "2.174410333009705"
25
+ },
26
+ "bbox": {
27
+ "type": "string",
28
+ "default": "2.1207046508789067%2C41.34807736149302%2C2.2288513183593754%2C41.45816618938139"
29
+ },
30
+ "zoom": {
31
+ "type": "number"
32
+ },
33
+ "height": {
34
+ "type": "number",
35
+ "default": 400
36
+ },
37
+ "markers": {
38
+ "type": "array",
39
+ "default": []
40
+ },
41
+ "zoomControl": {
42
+ "type": "boolean",
43
+ "default": true
44
+ },
45
+ "draggable": {
46
+ "type": "boolean",
47
+ "default": true
48
+ }
49
+ },
50
+ "supports": {
51
+ "align": [ "wide", "full" ],
52
+ "html": false
53
+ },
54
+ "editorStyle": "otter-leaflet-map-editor",
55
+ "style": "otter-leaflet-map-style",
56
+ "editorScript": "leaflet-gesture-handling",
57
+ "script": "otter-leaflet"
58
+ }
build/animation/blocks/blocks/lottie/block.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/lottie",
5
+ "title": "Lottie Animation",
6
+ "category": "themeisle-blocks",
7
+ "description": "Add Lottie animations to your WordPress. Powered by Otter.",
8
+ "keywords": [ "media", "lottie", "animation" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "file": {
15
+ "type": "object"
16
+ },
17
+ "trigger": {
18
+ "type": "string",
19
+ "default": "none"
20
+ },
21
+ "loop": {
22
+ "type": "boolean",
23
+ "default": false
24
+ },
25
+ "count": {
26
+ "type": "number",
27
+ "default": 0
28
+ },
29
+ "speed": {
30
+ "type": "number",
31
+ "default": 1
32
+ },
33
+ "direction": {
34
+ "type": "boolean",
35
+ "default": false
36
+ },
37
+ "width": {
38
+ "type": [ "string" , "number" ]
39
+ },
40
+ "ariaLabel": {
41
+ "type": "string",
42
+ "default": ""
43
+ },
44
+ "backgroundColor": {
45
+ "type": "string"
46
+ },
47
+ "backgroundGradient": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ "supports": {
52
+ "align": [ "left", "center", "right" ]
53
+ },
54
+ "editorStyle": "otter-lottie-editor",
55
+ "editorScript": "lottie-player",
56
+ "script": "otter-lottie"
57
+ }
build/animation/blocks/blocks/plugin-cards/block.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/plugin-cards",
5
+ "title": "Plugin Card",
6
+ "category": "themeisle-blocks",
7
+ "description": "Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.",
8
+ "keywords": [ "plugin", "card", "orbitfox" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "slug": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "supports": {
16
+ "html": false
17
+ },
18
+ "editorStyle": "otter-plugin-card-editor",
19
+ "style": "otter-plugin-card-style"
20
+ }
build/animation/blocks/blocks/popup/block.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/popup",
5
+ "title": "Popup",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display your content in beautiful popup with many customization options. Powered by Otter.",
8
+ "keywords": [ "popup", "modal", "lightbox" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "minWidth": {
15
+ "type": "number"
16
+ },
17
+ "maxWidth": {
18
+ "type": "number"
19
+ },
20
+ "trigger": {
21
+ "type": "string"
22
+ },
23
+ "wait": {
24
+ "type": "number"
25
+ },
26
+ "anchor": {
27
+ "type": "string"
28
+ },
29
+ "scroll": {
30
+ "type": "number"
31
+ },
32
+ "showClose": {
33
+ "type": "boolean",
34
+ "default": true
35
+ },
36
+ "outsideClose": {
37
+ "type": "boolean",
38
+ "default": true
39
+ },
40
+ "anchorClose": {
41
+ "type": "boolean",
42
+ "default": false
43
+ },
44
+ "closeAnchor": {
45
+ "type": "string"
46
+ },
47
+ "recurringClose": {
48
+ "type": "boolean",
49
+ "default": false
50
+ },
51
+ "recurringTime": {
52
+ "type": "number"
53
+ },
54
+ "backgroundColor": {
55
+ "type": "string"
56
+ },
57
+ "closeColor": {
58
+ "type": "string"
59
+ },
60
+ "overlayColor": {
61
+ "type": "string"
62
+ },
63
+ "overlayOpacity": {
64
+ "type": "number"
65
+ }
66
+ },
67
+ "editorStyle": "otter-popup-editor",
68
+ "style": "otter-popup-style",
69
+ "script": "otter-popup"
70
+ }
build/animation/blocks/blocks/posts/block.json ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/posts-grid",
5
+ "title": "Posts",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display a list of your most recent posts in a beautiful layout. Powered by Otter.",
8
+ "keywords": [ "posts", "grid", "news" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "style": {
15
+ "type": "string",
16
+ "default": "grid"
17
+ },
18
+ "postTypes": {
19
+ "type": "array",
20
+ "default": []
21
+ },
22
+ "columns": {
23
+ "type": "number",
24
+ "default": 3
25
+ },
26
+ "template": {
27
+ "type": "array",
28
+ "default": [
29
+ "category",
30
+ "title",
31
+ "meta",
32
+ "description"
33
+ ]
34
+ },
35
+ "categories": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object"
39
+ }
40
+ },
41
+ "postsToShow": {
42
+ "type": "number",
43
+ "default": 5
44
+ },
45
+ "order": {
46
+ "type": "string",
47
+ "default": "desc"
48
+ },
49
+ "orderBy": {
50
+ "type": "string",
51
+ "default": "date"
52
+ },
53
+ "offset": {
54
+ "type": "number",
55
+ "default": 0
56
+ },
57
+ "imageSize": {
58
+ "type": "string",
59
+ "default": "full"
60
+ },
61
+ "imageBoxShadow": {
62
+ "type": "boolean",
63
+ "default": true
64
+ },
65
+ "displayFeaturedImage": {
66
+ "type": "boolean",
67
+ "default": true
68
+ },
69
+ "displayCategory": {
70
+ "type": "boolean",
71
+ "default": true
72
+ },
73
+ "displayTitle": {
74
+ "type": "boolean",
75
+ "default": true
76
+ },
77
+ "titleTag": {
78
+ "type": "string",
79
+ "default": "h5"
80
+ },
81
+ "displayMeta": {
82
+ "type": "boolean",
83
+ "default": true
84
+ },
85
+ "displayDescription": {
86
+ "type": "boolean",
87
+ "default": true
88
+ },
89
+ "excerptLength": {
90
+ "type": "number",
91
+ "default": 100
92
+ },
93
+ "displayDate": {
94
+ "type": "boolean",
95
+ "default": true
96
+ },
97
+ "displayAuthor": {
98
+ "type": "boolean",
99
+ "default": true
100
+ },
101
+ "displayComments": {
102
+ "type": "boolean",
103
+ "default": true
104
+ },
105
+ "displayPostCategory": {
106
+ "type": "boolean",
107
+ "default": false
108
+ },
109
+ "displayReadMoreLink": {
110
+ "type": "boolean",
111
+ "default": false
112
+ },
113
+ "cropImage": {
114
+ "type": "boolean",
115
+ "default": false
116
+ },
117
+ "customTitleFontSize": {
118
+ "type": "number"
119
+ },
120
+ "customTitleFontSizeTable": {
121
+ "type": "number"
122
+ },
123
+ "customTitleFontSizeMobile": {
124
+ "type": "number"
125
+ },
126
+ "customDescriptionFontSize": {
127
+ "type": "number"
128
+ },
129
+ "customDescriptionFontSizeTablet": {
130
+ "type": "number"
131
+ },
132
+ "customDescriptionFontSizeMobile": {
133
+ "type": "number"
134
+ },
135
+ "borderRadius": {
136
+ "type": "number"
137
+ },
138
+ "textAlign": {
139
+ "type": "string"
140
+ },
141
+ "verticalAlign": {
142
+ "type": "string"
143
+ },
144
+ "enableFeaturedPost": {
145
+ "type": "boolean"
146
+ },
147
+ "imageWidth": {
148
+ "type": "number"
149
+ }
150
+ },
151
+ "supports": {
152
+ "align": [ "wide", "full" ],
153
+ "html": false
154
+ },
155
+ "editorStyle": "otter-posts-grid-editor",
156
+ "style": "otter-posts-grid-style"
157
+ }
build/animation/blocks/blocks/progress-bar/block.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/progress-bar",
5
+ "title": "Progress Bar",
6
+ "category": "themeisle-blocks",
7
+ "description": "Show your progress with a beautiful Progress Bar block. Powered by Otter.",
8
+ "keywords": [ "progress", "bar", "skills" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "default": "Skill"
17
+ },
18
+ "percentage": {
19
+ "type": "number",
20
+ "default": 50
21
+ },
22
+ "duration": {
23
+ "type": "number",
24
+ "default": 2
25
+ },
26
+ "titleStyle": {
27
+ "type": "string",
28
+ "default": "default"
29
+ },
30
+ "percentagePosition": {
31
+ "type": "string",
32
+ "default": "default"
33
+ },
34
+ "height": {
35
+ "type": "number",
36
+ "default": 30
37
+ },
38
+ "borderRadius": {
39
+ "type": "number"
40
+ },
41
+ "backgroundColor": {
42
+ "type": "string"
43
+ },
44
+ "barBackgroundColor": {
45
+ "type": "string"
46
+ },
47
+ "titleColor": {
48
+ "type": "string"
49
+ },
50
+ "percentageColor": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "editorStyle": "otter-progress-bar-editor",
55
+ "style": "otter-progress-bar-style",
56
+ "script": "otter-progress-bar"
57
+ }
build/animation/blocks/blocks/review/block.json ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/review",
5
+ "title": "Product Review",
6
+ "category": "themeisle-blocks",
7
+ "description": "Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.",
8
+ "keywords": [ "product", "review", "stars" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "title": {
15
+ "type": "string"
16
+ },
17
+ "currency": {
18
+ "type": "string",
19
+ "default": "USD"
20
+ },
21
+ "price": {
22
+ "type": "number"
23
+ },
24
+ "discounted": {
25
+ "type": "number"
26
+ },
27
+ "image": {
28
+ "type": "object"
29
+ },
30
+ "description": {
31
+ "type": "string"
32
+ },
33
+ "features": {
34
+ "type": "array",
35
+ "default": [
36
+ {
37
+ "title": "Stability",
38
+ "rating": 9
39
+ },
40
+ {
41
+ "title": "Ease of Use",
42
+ "rating": 4
43
+ },
44
+ {
45
+ "title": "Look & Feel",
46
+ "rating": 9
47
+ },
48
+ {
49
+ "title": "Price",
50
+ "rating": 7
51
+ }
52
+ ]
53
+ },
54
+ "pros": {
55
+ "type": "array",
56
+ "default": [
57
+ "Easy to use",
58
+ "Good price",
59
+ "Sturdy build and ergonomics"
60
+ ]
61
+ },
62
+ "cons": {
63
+ "type": "array",
64
+ "default": [
65
+ "Incompatible with old versions",
66
+ "Hard to assemble",
67
+ "Bad color combination"
68
+ ]
69
+ },
70
+ "links": {
71
+ "type": "array",
72
+ "default": [
73
+ {
74
+ "label": "Buy on Amazon",
75
+ "href": "",
76
+ "isSponsored": false
77
+ },
78
+ {
79
+ "label": "Buy on eBay",
80
+ "href": "",
81
+ "isSponsored": false
82
+ }
83
+ ]
84
+ },
85
+ "primaryColor": {
86
+ "type": "string"
87
+ },
88
+ "backgroundColor": {
89
+ "type": "string"
90
+ },
91
+ "textColor": {
92
+ "type": "string"
93
+ },
94
+ "buttonTextColor": {
95
+ "type": "string"
96
+ },
97
+ "isSynced": {
98
+ "type": "array"
99
+ }
100
+ },
101
+ "styles": [
102
+ {
103
+ "name": "default",
104
+ "label": "Default",
105
+ "isDefault": true
106
+ },
107
+ {
108
+ "name": "single-column",
109
+ "label": "Single Column"
110
+ }
111
+ ],
112
+ "supports": {
113
+ "html": false
114
+ },
115
+ "editorStyle": "otter-review-editor",
116
+ "style": "otter-review-style"
117
+ }
build/animation/blocks/blocks/section/column/block.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/advanced-column",
5
+ "title": "Section Column",
6
+ "category": "themeisle-blocks",
7
+ "description": "A single column within a Section block. Powered by Otter.",
8
+ "parent": [ "themeisle-blocks/advanced-columns" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "padding": {
15
+ "type": "object"
16
+ },
17
+ "paddingTablet": {
18
+ "type": "object"
19
+ },
20
+ "paddingMobile": {
21
+ "type": "object"
22
+ },
23
+ "margin": {
24
+ "type": "object"
25
+ },
26
+ "marginTablet": {
27
+ "type": "object"
28
+ },
29
+ "marginMobile": {
30
+ "type": "object"
31
+ },
32
+ "backgroundType": {
33
+ "type": "string",
34
+ "default": "color"
35
+ },
36
+ "backgroundColor": {
37
+ "type": "string"
38
+ },
39
+ "backgroundImage": {
40
+ "type": "object"
41
+ },
42
+ "backgroundAttachment": {
43
+ "type": "string",
44
+ "default": "scroll"
45
+ },
46
+ "backgroundPosition": {
47
+ "type": "object"
48
+ },
49
+ "backgroundRepeat": {
50
+ "type": "string",
51
+ "default": "repeat"
52
+ },
53
+ "backgroundSize": {
54
+ "type": "string",
55
+ "default": "auto"
56
+ },
57
+ "backgroundGradient": {
58
+ "type": "string",
59
+ "default": "linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"
60
+ },
61
+ "border": {
62
+ "type": "object"
63
+ },
64
+ "borderColor": {
65
+ "type": "string",
66
+ "default": "#000000"
67
+ },
68
+ "borderRadius": {
69
+ "type": "object"
70
+ },
71
+ "boxShadow": {
72
+ "type": "boolean",
73
+ "default": false
74
+ },
75
+ "boxShadowColor": {
76
+ "type": "string",
77
+ "default": "#000000"
78
+ },
79
+ "boxShadowColorOpacity": {
80
+ "type": "number",
81
+ "default": 50
82
+ },
83
+ "boxShadowBlur": {
84
+ "type": "number",
85
+ "default": 5
86
+ },
87
+ "boxShadowSpread": {
88
+ "type": "number",
89
+ "default": 0
90
+ },
91
+ "boxShadowHorizontal": {
92
+ "type": "number",
93
+ "default": 0
94
+ },
95
+ "boxShadowVertical": {
96
+ "type": "number",
97
+ "default": 0
98
+ },
99
+ "columnsHTMLTag": {
100
+ "type": "string",
101
+ "default": "div"
102
+ },
103
+ "columnWidth": {
104
+ "type": "string"
105
+ },
106
+ "isSynced": {
107
+ "type": "array"
108
+ }
109
+ },
110
+ "supports": {
111
+ "inserter": false,
112
+ "html": false
113
+ },
114
+ "editorStyle": "otter-advanced-columns-editor",
115
+ "style": "otter-advanced-columns-style"
116
+ }
build/animation/blocks/blocks/section/columns/block.json ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/advanced-columns",
5
+ "title": "Section",
6
+ "category": "themeisle-blocks",
7
+ "description": "Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.",
8
+ "keywords": [ "advanced columns", "layout", "section" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "columns": {
15
+ "type": "number"
16
+ },
17
+ "layout": {
18
+ "type": "string"
19
+ },
20
+ "layoutTablet": {
21
+ "type": "string",
22
+ "default": "equal"
23
+ },
24
+ "layoutMobile": {
25
+ "type": "string",
26
+ "default": "equal"
27
+ },
28
+ "padding": {
29
+ "type": "object"
30
+ },
31
+ "paddingTablet": {
32
+ "type": "object"
33
+ },
34
+ "paddingMobile": {
35
+ "type": "object"
36
+ },
37
+ "margin": {
38
+ "type": "object"
39
+ },
40
+ "marginTablet": {
41
+ "type": "object"
42
+ },
43
+ "marginMobile": {
44
+ "type": "object"
45
+ },
46
+ "columnsWidth": {
47
+ "type": "number"
48
+ },
49
+ "horizontalAlign": {
50
+ "type": "string",
51
+ "default": "unset"
52
+ },
53
+ "columnsHeight": {
54
+ "type": "string",
55
+ "default": "auto"
56
+ },
57
+ "columnsHeightCustom": {
58
+ "type": "number"
59
+ },
60
+ "columnsHeightCustomTablet": {
61
+ "type": "number"
62
+ },
63
+ "columnsHeightCustomMobile": {
64
+ "type": "number"
65
+ },
66
+ "verticalAlign": {
67
+ "type": "string",
68
+ "default": "unset"
69
+ },
70
+ "backgroundType": {
71
+ "type": "string",
72
+ "default": "color"
73
+ },
74
+ "backgroundColor": {
75
+ "type": "string"
76
+ },
77
+ "backgroundImage": {
78
+ "type": "object"
79
+ },
80
+ "backgroundAttachment": {
81
+ "type": "string",
82
+ "default": "scroll"
83
+ },
84
+ "backgroundPosition": {
85
+ "type": "object"
86
+ },
87
+ "backgroundRepeat": {
88
+ "type": "string",
89
+ "default": "repeat"
90
+ },
91
+ "backgroundSize": {
92
+ "type": "string",
93
+ "default": "auto"
94
+ },
95
+ "backgroundGradient": {
96
+ "type": "string",
97
+ "default": "linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"
98
+ },
99
+ "backgroundOverlayOpacity": {
100
+ "type": "number",
101
+ "default": 50
102
+ },
103
+ "backgroundOverlayType": {
104
+ "type": "string",
105
+ "default": "color"
106
+ },
107
+ "backgroundOverlayColor": {
108
+ "type": "string"
109
+ },
110
+ "backgroundOverlayImage": {
111
+ "type": "object"
112
+ },
113
+ "backgroundOverlayAttachment": {
114
+ "type": "string",
115
+ "default": "scroll"
116
+ },
117
+ "backgroundOverlayPosition": {
118
+ "type": "object"
119
+ },
120
+ "backgroundOverlayRepeat": {
121
+ "type": "string",
122
+ "default": "repeat"
123
+ },
124
+ "backgroundOverlaySize": {
125
+ "type": "string",
126
+ "default": "auto"
127
+ },
128
+ "backgroundOverlayGradient": {
129
+ "type": "string",
130
+ "default": "linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"
131
+ },
132
+ "backgroundOverlayFilterBlur": {
133
+ "type": "number",
134
+ "default": 0
135
+ },
136
+ "backgroundOverlayFilterBrightness": {
137
+ "type": "number",
138
+ "default": 10
139
+ },
140
+ "backgroundOverlayFilterContrast": {
141
+ "type": "number",
142
+ "default": 10
143
+ },
144
+ "backgroundOverlayFilterGrayscale": {
145
+ "type": "number",
146
+ "default": 0
147
+ },
148
+ "backgroundOverlayFilterHue": {
149
+ "type": "number",
150
+ "default": 0
151
+ },
152
+ "backgroundOverlayFilterSaturate": {
153
+ "type": "number",
154
+ "default": 10
155
+ },
156
+ "backgroundOverlayBlend": {
157
+ "type": "string",
158
+ "default": "normal"
159
+ },
160
+ "border": {
161
+ "type": "object"
162
+ },
163
+ "borderColor": {
164
+ "type": "string",
165
+ "default": "#000000"
166
+ },
167
+ "borderRadius": {
168
+ "type": "object"
169
+ },
170
+ "boxShadow": {
171
+ "type": "boolean",
172
+ "default": false
173
+ },
174
+ "boxShadowColor": {
175
+ "type": "string",
176
+ "default": "#000000"
177
+ },
178
+ "boxShadowColorOpacity": {
179
+ "type": "number",
180
+ "default": 50
181
+ },
182
+ "boxShadowBlur": {
183
+ "type": "number",
184
+ "default": 5
185
+ },
186
+ "boxShadowSpread": {
187
+ "type": "number",
188
+ "default": 0
189
+ },
190
+ "boxShadowHorizontal": {
191
+ "type": "number",
192
+ "default": 0
193
+ },
194
+ "boxShadowVertical": {
195
+ "type": "number",
196
+ "default": 0
197
+ },
198
+ "dividerTopType": {
199
+ "type": "string",
200
+ "default": "none"
201
+ },
202
+ "dividerTopColor": {
203
+ "type": "string",
204
+ "default": "#000000"
205
+ },
206
+ "dividerTopWidth": {
207
+ "type": "number",
208
+ "default": 100
209
+ },
210
+ "dividerTopWidthTablet": {
211
+ "type": "number",
212
+ "default": 100
213
+ },
214
+ "dividerTopWidthMobile": {
215
+ "type": "number",
216
+ "default": 100
217
+ },
218
+ "dividerTopHeight": {
219
+ "type": "number",
220
+ "default": 100
221
+ },
222
+ "dividerTopHeightTablet": {
223
+ "type": "number",
224
+ "default": 100
225
+ },
226
+ "dividerTopHeightMobile": {
227
+ "type": "number",
228
+ "default": 100
229
+ },
230
+ "dividerTopInvert": {
231
+ "type": "boolean",
232
+ "default": false
233
+ },
234
+ "dividerBottomType": {
235
+ "type": "string",
236
+ "default": "none"
237
+ },
238
+ "dividerBottomColor": {
239
+ "type": "string",
240
+ "default": "#000000"
241
+ },
242
+ "dividerBottomWidth": {
243
+ "type": "number",
244
+ "default": 100
245
+ },
246
+ "dividerBottomWidthTablet": {
247
+ "type": "number",
248
+ "default": 100
249
+ },
250
+ "dividerBottomWidthMobile": {
251
+ "type": "number",
252
+ "default": 100
253
+ },
254
+ "dividerBottomHeight": {
255
+ "type": "number",
256
+ "default": 100
257
+ },
258
+ "dividerBottomHeightTablet": {
259
+ "type": "number",
260
+ "default": 100
261
+ },
262
+ "dividerBottomHeightMobile": {
263
+ "type": "number",
264
+ "default": 100
265
+ },
266
+ "dividerBottomInvert": {
267
+ "type": "boolean",
268
+ "default": false
269
+ },
270
+ "hide": {
271
+ "type": "boolean",
272
+ "default": false
273
+ },
274
+ "hideTablet": {
275
+ "type": "boolean",
276
+ "default": false
277
+ },
278
+ "hideMobile": {
279
+ "type": "boolean",
280
+ "default": false
281
+ },
282
+ "reverseColumnsTablet": {
283
+ "type": "boolean",
284
+ "default": false
285
+ },
286
+ "reverseColumnsMobile": {
287
+ "type": "boolean",
288
+ "default": false
289
+ },
290
+ "columnsHTMLTag": {
291
+ "type": "string",
292
+ "default": "div"
293
+ },
294
+ "isSynced": {
295
+ "type": "array"
296
+ }
297
+ },
298
+ "supports": {
299
+ "align": [ "wide", "full" ],
300
+ "html": false
301
+ },
302
+ "editorStyle": "otter-advanced-columns-editor",
303
+ "style": "otter-advanced-columns-style"
304
+ }
build/animation/blocks/blocks/sharing-icons/block.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/sharing-icons",
5
+ "title": "Sharing Icons",
6
+ "category": "themeisle-blocks",
7
+ "description": "Share buttons for your website visitors to share content on any social sharing service. Powered by Otter.",
8
+ "keywords": [ "social media", "sharing", "icons" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "facebook": {
12
+ "type": "boolean",
13
+ "default": true
14
+ },
15
+ "twitter": {
16
+ "type": "boolean",
17
+ "default": true
18
+ },
19
+ "linkedin": {
20
+ "type": "boolean",
21
+ "default": true
22
+ },
23
+ "pinterest": {
24
+ "type": "boolean",
25
+ "default": false
26
+ },
27
+ "tumblr": {
28
+ "type": "boolean",
29
+ "default": false
30
+ },
31
+ "reddit": {
32
+ "type": "boolean",
33
+ "default": false
34
+ }
35
+ },
36
+ "styles": [
37
+ {
38
+ "name": "default",
39
+ "label": "Regular",
40
+ "isDefault": true
41
+ },
42
+ {
43
+ "name": "icons",
44
+ "label": "Icons Only"
45
+ }
46
+ ],
47
+ "supports": {
48
+ "align": [ "left", "center", "right" ]
49
+ },
50
+ "editorStyle": "otter-sharing-icons-editor",
51
+ "style": "otter-sharing-icons-style"
52
+ }
build/animation/blocks/blocks/slider/block.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/slider",
5
+ "title": "Slider",
6
+ "category": "themeisle-blocks",
7
+ "description": "Minimal image slider to showcase beautiful images. Powered by Otter.",
8
+ "keywords": [ "slider", "gallery", "carousel" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "images": {
15
+ "type": "array",
16
+ "default": [],
17
+ "source": "query",
18
+ "selector": ".wp-block-themeisle-blocks-slider-item-wrapper",
19
+ "query": {
20
+ "id": {
21
+ "type": "number",
22
+ "source": "attribute",
23
+ "selector": "img",
24
+ "attribute": "data-id"
25
+ },
26
+ "url": {
27
+ "type": "string",
28
+ "source": "attribute",
29
+ "selector": "img",
30
+ "attribute": "src"
31
+ },
32
+ "alt": {
33
+ "type": "string",
34
+ "source": "attribute",
35
+ "selector": "img",
36
+ "attribute": "alt",
37
+ "default": ""
38
+ },
39
+ "caption": {
40
+ "type": "string",
41
+ "source": "html",
42
+ "selector": "figcaption",
43
+ "default": ""
44
+ }
45
+ }
46
+ },
47
+ "perView": {
48
+ "type": "number",
49
+ "default": 1
50
+ },
51
+ "gap": {
52
+ "type": "number",
53
+ "default": 0
54
+ },
55
+ "peek": {
56
+ "type": "number",
57
+ "default": 0
58
+ },
59
+ "autoplay": {
60
+ "type": "boolean",
61
+ "default": true
62
+ },
63
+ "delay": {
64
+ "type": "number",
65
+ "default": 2
66
+ },
67
+ "hideArrows": {
68
+ "type": "boolean",
69
+ "default": false
70
+ },
71
+ "hideBullets": {
72
+ "type": "boolean",
73
+ "default": false
74
+ },
75
+ "height": {
76
+ "type": "number",
77
+ "default": 400
78
+ }
79
+ },
80
+ "supports": {
81
+ "align": [ "wide", "full" ]
82
+ },
83
+ "editorStyle": "otter-slider-editor",
84
+ "style": "otter-slider-style",
85
+ "editorScript": "glidejs",
86
+ "script": "otter-slider"
87
+ }
build/animation/blocks/blocks/structural/pricing/block.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/pricing",
5
+ "title": "Pricing",
6
+ "category": "themeisle-blocks",
7
+ "description": "Pricing tables are a critical part in showcasing your services, prices and overall offerings. Powered by Otter.",
8
+ "keywords": [ "pricing", "table", "money" ],
9
+ "textdomain": "otter-blocks"
10
+ }
build/animation/blocks/blocks/structural/service/block.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/service",
5
+ "title": "Service",
6
+ "category": "themeisle-blocks",
7
+ "description": "Use this Service block to showcase services your website offers. Powered by Otter.",
8
+ "keywords": [ "services", "icon", "features" ],
9
+ "textdomain": "otter-blocks"
10
+ }
build/animation/blocks/blocks/structural/testimonials/block.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/testimonials",
5
+ "title": "Testimonials",
6
+ "category": "themeisle-blocks",
7
+ "description": "Display kudos from customers and clients and display them on your website. Powered by Otter.",
8
+ "keywords": [ "testimonials", "quotes", "business" ],
9
+ "textdomain": "otter-blocks"
10
+ }
build/animation/blocks/blocks/tabs/group/block.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/tabs",
5
+ "title": "Tabs",
6
+ "category": "themeisle-blocks",
7
+ "description": "Organize and allow navigation between groups of content with Tabs block. Powered by Otter.",
8
+ "keywords": [ "media", "tabs", "select" ],
9
+ "textdomain": "otter-blocks",
10
+ "attributes": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "tabColor": {
15
+ "type": "string"
16
+ },
17
+ "borderColor": {
18
+ "type": "string"
19
+ },
20
+ "borderWidth": {
21
+ "type": "number"
22
+ },
23
+ "activeTitleColor": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ "supports": {
28
+ "align": [ "left", "center", "right" ]
29
+ },
30
+ "editorStyle": "otter-tabs-editor",
31
+ "style": "otter-tabs-style",
32
+ "script": "otter-tabs"
33
+ }
build/animation/blocks/blocks/tabs/item/block.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
3
+ "apiVersion": 2,
4
+ "name": "themeisle-blocks/tabs-item",
5
+ "title": "Tab Item",
6
+ "category": "themeisle-blocks",
7
+ "description": "Organize and allow navigation between groups of content with Tabs block. Powered by Otter.",
8
+ "keywords": [ "media", "tab", "item" ],
9
+ "parent": [ "themeisle-blocks/tabs" ],
10
+ "textdomain": "otter-blocks",
11
+ "attributes": {
12
+ "title": {
13
+ "type": "string"
14
+ },
15
+ "defaultOpen": {
16
+ "type": "boolean",
17
+ "default": false
18
+ }
19
+ }
20
+ }
build/animation/frontend.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array(), 'version' => 'f32caf9220a8b240180e4be8da6b255a');
1
+ <?php return array('dependencies' => array(), 'version' => '46ba73bc82a900e7582d4c6d635ccbde');
build/animation/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => 'f4acc1259edacc48365fda06680007c0');
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text'), 'version' => '0b83003cba3e508e33c490e770a526a5');
build/animation/index.js CHANGED
@@ -1 +1 @@
1
- !function(){var e={184:function(e,t){var l;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var a=typeof l;if("string"===a||"number"===a)e.push(l);else if(Array.isArray(l)){if(l.length){var r=n.apply(null,l);r&&e.push(r)}}else if("object"===a)if(l.toString===Object.prototype.toString)for(var i in l)o.call(l,i)&&l[i]&&e.push(i);else e.push(l.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},t={};function l(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,l),a.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e}(),function(){"use strict";var e=window.wp.element,t=window.wp.i18n,o=window.wp.blocks,n=window.wp.components,a=window.wp.compose,r=window.wp.blockEditor,i=window.wp.hooks,c=window.wp.data,s=window.wp.richText;const u=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("Back In Down","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Back In Left","otter-blocks"),value:"backInLeft"},{label:(0,t.__)("Back In Right","otter-blocks"),value:"backInRight"},{label:(0,t.__)("Back In Up","otter-blocks"),value:"backInUp"},{label:(0,t.__)("Bounce","otter-blocks"),value:"bounce"},{label:(0,t.__)("Bounce In","otter-blocks"),value:"bounceIn"},{label:(0,t.__)("Bounce In Down","otter-blocks"),value:"bounceInDown"},{label:(0,t.__)("Bounce In Left","otter-blocks"),value:"bounceInLeft"},{label:(0,t.__)("Bounce In Right","otter-blocks"),value:"bounceInRight"},{label:(0,t.__)("Bounce In Up","otter-blocks"),value:"bounceInUp"},{label:(0,t.__)("Fade In","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Fade In Down","otter-blocks"),value:"fadeInDown"},{label:(0,t.__)("Fade In Down Big","otter-blocks"),value:"fadeInDownBig"},{label:(0,t.__)("Fade In Left","otter-blocks"),value:"fadeInLeft"},{label:(0,t.__)("Fade In Left Big","otter-blocks"),value:"fadeInLeftBig"},{label:(0,t.__)("Fade In Right","otter-blocks"),value:"fadeInRight"},{label:(0,t.__)("Fade In Right Big","otter-blocks"),value:"fadeInRightBig"},{label:(0,t.__)("Fade In Up","otter-blocks"),value:"fadeInUp"},{label:(0,t.__)("Fade In Top Left","otter-blocks"),value:"fadeInTopLeft"},{label:(0,t.__)("Fade In Top Right","otter-blocks"),value:"fadeInTopRight"},{label:(0,t.__)("Fade In Bottom Left","otter-blocks"),value:"fadeInBottomLeft"},{label:(0,t.__)("Fade In Bottom Right","otter-blocks"),value:"fadeInBottomRight"},{label:(0,t.__)("Flip","otter-blocks"),value:"flip"},{label:(0,t.__)("Flip In X","otter-blocks"),value:"flipInX"},{label:(0,t.__)("Flip In Y","otter-blocks"),value:"flipInY"},{label:(0,t.__)("Rotate In","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Rotate In Down Left","otter-blocks"),value:"rotateInDownLeft"},{label:(0,t.__)("Rotate In Down Right","otter-blocks"),value:"rotateInDownRight"},{label:(0,t.__)("Rotate In Up Left","otter-blocks"),value:"rotateInUpLeft"},{label:(0,t.__)("Rotate In Up Right","otter-blocks"),value:"rotateInUpRight"},{label:(0,t.__)("Slide In Down","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Slide In Left","otter-blocks"),value:"slideInLeft"},{label:(0,t.__)("Slide In Right","otter-blocks"),value:"slideInRight"},{label:(0,t.__)("Slide In Up","otter-blocks"),value:"slideInUp"},{label:(0,t.__)("Zoom In","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Zoom In Down","otter-blocks"),value:"zoomInDown"},{label:(0,t.__)("Zoom In Left","otter-blocks"),value:"zoomInLeft"},{label:(0,t.__)("Zoom In Right","otter-blocks"),value:"zoomInRight"},{label:(0,t.__)("Zoom In Up","otter-blocks"),value:"zoomInUp"},{label:(0,t.__)("Roll In","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed In Right","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Light Speed In Left","otter-blocks"),value:"lightSpeedInLeft"},{label:(0,t.__)("Flash","otter-blocks"),value:"flash"},{label:(0,t.__)("Pulse","otter-blocks"),value:"pulse"},{label:(0,t.__)("Rubber Band","otter-blocks"),value:"rubberBand"},{label:(0,t.__)("Shake X","otter-blocks"),value:"shakeX"},{label:(0,t.__)("Shake Y","otter-blocks"),value:"shakeY"},{label:(0,t.__)("Head Shake","otter-blocks"),value:"headShake"},{label:(0,t.__)("Swing","otter-blocks"),value:"swing"},{label:(0,t.__)("TaDa","otter-blocks"),value:"tada"},{label:(0,t.__)("Wobble","otter-blocks"),value:"wobble"},{label:(0,t.__)("Jello","otter-blocks"),value:"jello"},{label:(0,t.__)("Heart Beat","otter-blocks"),value:"heartBeat"},{label:(0,t.__)("Hinge","otter-blocks"),value:"hinge"},{label:(0,t.__)("Jack In The Box","otter-blocks"),value:"jackInTheBox"}],b=[{label:(0,t.__)("Backing","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Bouncing","otter-blocks"),value:"bounce"},{label:(0,t.__)("Fading","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Flipping","otter-blocks"),value:"flip"},{label:(0,t.__)("Rotating","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Sliding","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Zooming","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Rolling","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Other","otter-blocks"),value:"flash"}],m=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],d=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("100 Milliseconds","otter-blocks"),value:"delay-100ms"},{label:(0,t.__)("200 Milliseconds","otter-blocks"),value:"delay-200ms"},{label:(0,t.__)("500 Milliseconds","otter-blocks"),value:"delay-500ms"},{label:(0,t.__)("One Second","otter-blocks"),value:"delay-1s"},{label:(0,t.__)("Two Second","otter-blocks"),value:"delay-2s"},{label:(0,t.__)("Three Second","otter-blocks"),value:"delay-3s"},{label:(0,t.__)("Four Second","otter-blocks"),value:"delay-4s"},{label:(0,t.__)("Five Second","otter-blocks"),value:"delay-5s"}],p=[{label:(0,t.__)("Default","otter-blocks"),value:"none"},{label:(0,t.__)("Slow","otter-blocks"),value:"slow"},{label:(0,t.__)("Slower","otter-blocks"),value:"slower"},{label:(0,t.__)("Fast","otter-blocks"),value:"fast"},{label:(0,t.__)("Faster","otter-blocks"),value:"faster"}];var g=function l(o){let{animationsList:r,updateAnimation:i,currentAnimationLabel:c,setCurrentAnimationLabel:s}=o;const u=(0,a.useInstanceId)(l),[m,_]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),g=`inspector-o-animations-control-${u}`;return(0,e.createElement)(n.BaseControl,{label:(0,t.__)("Animation","otter-blocks"),id:g},(0,e.createElement)(n.Dropdown,{contentClassName:"o-animations-control__popover",position:"bottom center",renderToggle:t=>{let{isOpen:l,onToggle:o}=t;return(0,e.createElement)(n.Button,{className:"o-animations-control__button",id:g,onClick:o,"aria-expanded":l},c)},renderContent:l=>{let{onToggle:o}=l;return(0,e.createElement)(n.MenuGroup,{label:(0,t.__)("Animations","otter-blocks")},(0,e.createElement)(n.TextControl,{placeholder:(0,t.__)("Search","otter-blocks"),value:m,onChange:e=>{_(e),p(!1)}}),(0,e.createElement)("div",{className:"components-popover__items"},r.map((t=>(0,e.createElement)(e.Fragment,null,""===m&&b.map((l=>l.value===t.value?(0,e.createElement)("div",{className:"o-animations-control__category"},l.label):"")),((t,l)=>{let o=!0;return m&&m.toLowerCase().split(" ").forEach((e=>{t.label.toLowerCase().includes(e)||(o=!1)})),o&&!d&&p(!0),o&&(0,e.createElement)(n.MenuItem,{className:c===t.label?"is-selected":"",onClick:()=>{s(t.label),i(t.value),l()}},t.label)})(t,o)))),!d&&(0,e.createElement)("div",null,(0,t.__)("Nothing found. Try searching for something else!","otter-blocks"))))}}))},v=l(184),f=l.n(v),k=function(t){let{icon:l,size:o=24,...n}=t;return(0,e.cloneElement)(l,{width:o,height:o,...n})},h=window.wp.primitives,w=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),I=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const E=l=>{let{label:o,attributes:r,setAttributes:i,resetValues:c,onClick:s,children:u}=l;(0,e.useEffect)((()=>{for(const e in c){if(c[e]!==r[e])return _(!0);_(!1)}}),[r]);const b=(0,a.useInstanceId)(E),[m,_]=(0,e.useState)(!1),d=`inspector-control-panel-control-${b}`;return(0,e.createElement)("div",{className:"o-control-panel-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("div",{className:"components-base-control__title"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:d},o),(0,e.createElement)("div",{className:"floating-controls"},(0,e.createElement)(n.Dropdown,{position:"top left",headerTitle:o,expandOnMobile:!0,renderToggle:l=>{let{isOpen:a,onToggle:r}=l;return(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(n.Button,{icon:(0,e.createElement)(k,{icon:w}),label:(0,t.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>i({...c})}),(0,e.createElement)(n.Button,{id:d,icon:I,label:o,showTooltip:!0,onClick:()=>{r(),s&&s()},"aria-expanded":a,className:f()({"is-active":m})}))},renderContent:()=>(0,e.createElement)("div",{className:"otter-popover-settings"},u)})))))};var y=E,S=l.p+"images/count-animation.1151d25d.png",O=l.p+"images/typing-animation.d84cccd1.png";const B="count",L="typing",R="default";var F=(0,e.memo)((function(l){let{clientId:a,attributes:r,setAttributes:i}=l;(0,e.useEffect)((()=>{let e;if(r.className){e=r.className,e=e.split(" ");let t=Array.from(u).find((t=>e.find((e=>e===t.value))));const l=Array.from(d).find((t=>e.find((e=>e===t.value)))),o=Array.from(p).find((t=>e.find((e=>e===t.value)))),n=Array.from(d).find((t=>e.find((e=>e===`o-count-${t.value}`)))),a=Array.from(p).find((t=>e.find((e=>e===`o-count-${t.value}`)))),i=Array.from(d).find((t=>e.find((e=>e===`o-typing-${t.value}`)))),c=Array.from(p).find((t=>e.find((e=>e===`o-typing-${t.value}`))));k(t?t.value:"none"),w(l?l.value:"none"),E(o?o.value:"none"),C(t?t.label:"none"),A(n?n.value:"none"),D(a?a.value:"none"),U(i?i.value:"none"),$(c?c.value:"none")}}),[]);const{hasCountFormat:b,hasTypingFormat:v}=(0,c.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),l=(0,o.serialize)(t(a)),n=(0,s.create)({html:l});let r=!1,i=!1;return n.formats&&(r=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/count-animation"===e.type)))),i=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/typing-animation"===e.type))))),{hasCountFormat:r,hasTypingFormat:i}}),[]),[f,k]=(0,e.useState)("none"),[h,w]=(0,e.useState)("none"),[I,E]=(0,e.useState)("none"),[F,C]=(0,e.useState)((0,t.__)("None","otter-blocks")),[T,A]=(0,e.useState)("none"),[N,D]=(0,e.useState)("none"),[x,U]=(0,e.useState)("none"),[z,$]=(0,e.useState)("none"),j=(e,t,l,o)=>{let n;switch(e){case B:n="o-count-";break;case L:n="o-typing-";break;case R:n=""}const a=n+t,c="none"!==l?n+l:"";let s;r.className?(s=r.className,s=s.split(" "),s.find((e=>e===a))?s=s.join(" ").replace(a,c):(s.push(c),s=s.join(" ").trim())):s=c,s=s.replace(/\s+/g," "),""===s&&(s=void 0),i({className:s}),null==o||o()};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,t.__)("Loading Animations","otter-blocks")},(0,e.createElement)("div",{className:"o-animations-control"},(0,e.createElement)(g,{animationsList:u,updateAnimation:e=>{let t,l="none"!==e?e:"";if(r.className){t=r.className,t=t.split(" ");const e=t.find((e=>e===f));t.find((e=>"animated"===e))||t.push("animated"),e?t=t.join(" ").replace(f,l):(t.push(l),t=t.join(" "))}else t=`animated ${l}`;"none"===e&&(t=t.replace("animated","").replace(h,"").replace(I,""),w("none"),E("none")),t=t.replace(/\s+/g," ").trim(),""===t&&(t=void 0),k(e),i({className:t});let o=document.querySelector(`#block-${a} .animated`)||document.querySelector(`#block-${a}.animated`);o&&m.forEach((e=>{o.className.includes(e)&&o.addEventListener("animationend",(()=>{o.classList.remove(e),o.addEventListener("animationstart",(()=>{o.classList.remove(e)}))}))}))},currentAnimationLabel:F,setCurrentAnimationLabel:C}),"none"!==f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:h||"none",options:d,onChange:e=>j(R,h,e,(()=>w(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:I||"none",options:p,onChange:e=>j(R,I,e,(()=>E(e)))})))),(0,e.createElement)(y,{label:(0,t.__)("Count Animations","otter-blocks")},b?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:T||"none",options:d,onChange:e=>j(B,T,e,(()=>A(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:N||"none",options:p,onChange:e=>j(B,N,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:O,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))),(0,e.createElement)(y,{label:(0,t.__)("Typing Animations","otter-blocks")},v?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:x||"none",options:d,onChange:e=>j(L,x,e,(()=>U(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:z||"none",options:p,onChange:e=>j(L,z,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:S,alt:_("Using Typing Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add typing animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))))})),C=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const T="themeisle-blocks/count-animation";(0,s.registerFormatType)(T,{title:(0,t.__)("Count Animation","otter-blocks"),tagName:"o-anim-count",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;const i=/^\$?[\d,]+(\.\d*)?$/;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Count Animation","otter-blocks"),isDisabled:!o&&null===i.exec(n.text.substring(n.start,n.end)),onClick:()=>{(o||!o&&null!==i.exec(n.text.substring(n.start,n.end)))&&a((0,s.toggleFormat)(n,{type:T}))},isActive:o}))}});const A="themeisle-blocks/typing-animation";(0,s.registerFormatType)(A,{title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{a((0,s.toggleFormat)(n,{type:A}))},isActive:o}))}});const N=["themeisle-blocks/popup"],D=(0,a.createHigherOrderComponent)((l=>a=>(0,o.hasBlockSupport)(a.name,"customClassName",!0)&&a.isSelected&&!N.includes(a.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,a),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1},(0,e.createElement)(F,{clientId:a.clientId,setAttributes:a.setAttributes,attributes:a.attributes})))):(0,e.createElement)(l,a)),"withInspectorControl");(0,i.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",D)}()}();
1
+ !function(){var e={184:function(e,t){var l;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var a=typeof l;if("string"===a||"number"===a)e.push(l);else if(Array.isArray(l)){if(l.length){var r=n.apply(null,l);r&&e.push(r)}}else if("object"===a)if(l.toString===Object.prototype.toString)for(var i in l)o.call(l,i)&&l[i]&&e.push(i);else e.push(l.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},t={};function l(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,l),a.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e}(),function(){"use strict";var e=window.wp.element,t=window.wp.i18n,o=window.wp.blocks,n=window.wp.components,a=window.wp.compose,r=window.wp.blockEditor,i=window.wp.hooks,s=window.wp.data,c=window.wp.richText;const u=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("Back In Down","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Back In Left","otter-blocks"),value:"backInLeft"},{label:(0,t.__)("Back In Right","otter-blocks"),value:"backInRight"},{label:(0,t.__)("Back In Up","otter-blocks"),value:"backInUp"},{label:(0,t.__)("Bounce","otter-blocks"),value:"bounce"},{label:(0,t.__)("Bounce In","otter-blocks"),value:"bounceIn"},{label:(0,t.__)("Bounce In Down","otter-blocks"),value:"bounceInDown"},{label:(0,t.__)("Bounce In Left","otter-blocks"),value:"bounceInLeft"},{label:(0,t.__)("Bounce In Right","otter-blocks"),value:"bounceInRight"},{label:(0,t.__)("Bounce In Up","otter-blocks"),value:"bounceInUp"},{label:(0,t.__)("Fade In","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Fade In Down","otter-blocks"),value:"fadeInDown"},{label:(0,t.__)("Fade In Down Big","otter-blocks"),value:"fadeInDownBig"},{label:(0,t.__)("Fade In Left","otter-blocks"),value:"fadeInLeft"},{label:(0,t.__)("Fade In Left Big","otter-blocks"),value:"fadeInLeftBig"},{label:(0,t.__)("Fade In Right","otter-blocks"),value:"fadeInRight"},{label:(0,t.__)("Fade In Right Big","otter-blocks"),value:"fadeInRightBig"},{label:(0,t.__)("Fade In Up","otter-blocks"),value:"fadeInUp"},{label:(0,t.__)("Fade In Top Left","otter-blocks"),value:"fadeInTopLeft"},{label:(0,t.__)("Fade In Top Right","otter-blocks"),value:"fadeInTopRight"},{label:(0,t.__)("Fade In Bottom Left","otter-blocks"),value:"fadeInBottomLeft"},{label:(0,t.__)("Fade In Bottom Right","otter-blocks"),value:"fadeInBottomRight"},{label:(0,t.__)("Flip","otter-blocks"),value:"flip"},{label:(0,t.__)("Flip In X","otter-blocks"),value:"flipInX"},{label:(0,t.__)("Flip In Y","otter-blocks"),value:"flipInY"},{label:(0,t.__)("Rotate In","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Rotate In Down Left","otter-blocks"),value:"rotateInDownLeft"},{label:(0,t.__)("Rotate In Down Right","otter-blocks"),value:"rotateInDownRight"},{label:(0,t.__)("Rotate In Up Left","otter-blocks"),value:"rotateInUpLeft"},{label:(0,t.__)("Rotate In Up Right","otter-blocks"),value:"rotateInUpRight"},{label:(0,t.__)("Slide In Down","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Slide In Left","otter-blocks"),value:"slideInLeft"},{label:(0,t.__)("Slide In Right","otter-blocks"),value:"slideInRight"},{label:(0,t.__)("Slide In Up","otter-blocks"),value:"slideInUp"},{label:(0,t.__)("Zoom In","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Zoom In Down","otter-blocks"),value:"zoomInDown"},{label:(0,t.__)("Zoom In Left","otter-blocks"),value:"zoomInLeft"},{label:(0,t.__)("Zoom In Right","otter-blocks"),value:"zoomInRight"},{label:(0,t.__)("Zoom In Up","otter-blocks"),value:"zoomInUp"},{label:(0,t.__)("Roll In","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed In Right","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Light Speed In Left","otter-blocks"),value:"lightSpeedInLeft"},{label:(0,t.__)("Flash","otter-blocks"),value:"flash"},{label:(0,t.__)("Pulse","otter-blocks"),value:"pulse"},{label:(0,t.__)("Rubber Band","otter-blocks"),value:"rubberBand"},{label:(0,t.__)("Shake X","otter-blocks"),value:"shakeX"},{label:(0,t.__)("Shake Y","otter-blocks"),value:"shakeY"},{label:(0,t.__)("Head Shake","otter-blocks"),value:"headShake"},{label:(0,t.__)("Swing","otter-blocks"),value:"swing"},{label:(0,t.__)("TaDa","otter-blocks"),value:"tada"},{label:(0,t.__)("Wobble","otter-blocks"),value:"wobble"},{label:(0,t.__)("Jello","otter-blocks"),value:"jello"},{label:(0,t.__)("Heart Beat","otter-blocks"),value:"heartBeat"},{label:(0,t.__)("Hinge","otter-blocks"),value:"hinge"},{label:(0,t.__)("Jack In The Box","otter-blocks"),value:"jackInTheBox"}],b=[{label:(0,t.__)("Backing","otter-blocks"),value:"backInDown"},{label:(0,t.__)("Bouncing","otter-blocks"),value:"bounce"},{label:(0,t.__)("Fading","otter-blocks"),value:"fadeIn"},{label:(0,t.__)("Flipping","otter-blocks"),value:"flip"},{label:(0,t.__)("Rotating","otter-blocks"),value:"rotateIn"},{label:(0,t.__)("Sliding","otter-blocks"),value:"slideInDown"},{label:(0,t.__)("Zooming","otter-blocks"),value:"zoomIn"},{label:(0,t.__)("Rolling","otter-blocks"),value:"rollIn"},{label:(0,t.__)("Light Speed","otter-blocks"),value:"lightSpeedInRight"},{label:(0,t.__)("Other","otter-blocks"),value:"flash"}],m=["backOutDown","backOutLeft","backOutRight","backOutUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flipOutX","flipOutY","lightSpeedOutRight","lightSpeedOutLeft","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","rollOut"],d=[{label:(0,t.__)("None","otter-blocks"),value:"none"},{label:(0,t.__)("100 Milliseconds","otter-blocks"),value:"delay-100ms"},{label:(0,t.__)("200 Milliseconds","otter-blocks"),value:"delay-200ms"},{label:(0,t.__)("500 Milliseconds","otter-blocks"),value:"delay-500ms"},{label:(0,t.__)("One Second","otter-blocks"),value:"delay-1s"},{label:(0,t.__)("Two Second","otter-blocks"),value:"delay-2s"},{label:(0,t.__)("Three Second","otter-blocks"),value:"delay-3s"},{label:(0,t.__)("Four Second","otter-blocks"),value:"delay-4s"},{label:(0,t.__)("Five Second","otter-blocks"),value:"delay-5s"}],p=[{label:(0,t.__)("Default","otter-blocks"),value:"none"},{label:(0,t.__)("Slow","otter-blocks"),value:"slow"},{label:(0,t.__)("Slower","otter-blocks"),value:"slower"},{label:(0,t.__)("Fast","otter-blocks"),value:"fast"},{label:(0,t.__)("Faster","otter-blocks"),value:"faster"}];var g=function l(o){let{animationsList:r,updateAnimation:i,currentAnimationLabel:s,setCurrentAnimationLabel:c}=o;const u=(0,a.useInstanceId)(l),[m,_]=(0,e.useState)(""),[d,p]=(0,e.useState)(!1),g=`inspector-o-animations-control-${u}`;return(0,e.createElement)(n.BaseControl,{label:(0,t.__)("Animation","otter-blocks"),id:g},(0,e.createElement)(n.Dropdown,{contentClassName:"o-animations-control__popover",position:"bottom center",renderToggle:t=>{let{isOpen:l,onToggle:o}=t;return(0,e.createElement)(n.Button,{className:"o-animations-control__button",id:g,onClick:o,"aria-expanded":l},s)},renderContent:l=>{let{onToggle:o}=l;return(0,e.createElement)(n.MenuGroup,{label:(0,t.__)("Animations","otter-blocks")},(0,e.createElement)(n.TextControl,{placeholder:(0,t.__)("Search","otter-blocks"),value:m,onChange:e=>{_(e),p(!1)}}),(0,e.createElement)("div",{className:"components-popover__items"},r.map((t=>(0,e.createElement)(e.Fragment,null,""===m&&b.map((l=>l.value===t.value?(0,e.createElement)("div",{className:"o-animations-control__category"},l.label):"")),((t,l)=>{let o=!0;return m&&m.toLowerCase().split(" ").forEach((e=>{t.label.toLowerCase().includes(e)||(o=!1)})),o&&!d&&p(!0),o&&(0,e.createElement)(n.MenuItem,{className:s===t.label?"is-selected":"",onClick:()=>{c(t.label),i(t.value),l()}},t.label)})(t,o)))),!d&&(0,e.createElement)("div",null,(0,t.__)("Nothing found. Try searching for something else!","otter-blocks"))))}}))},v=l(184),f=l.n(v),k=function(t){let{icon:l,size:o=24,...n}=t;return(0,e.cloneElement)(l,{width:o,height:o,...n})},h=window.wp.primitives,w=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),I=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const E=l=>{let{label:o,attributes:r,setAttributes:i,resetValues:s,onClick:c,children:u}=l;(0,e.useEffect)((()=>{for(const e in s){if(s[e]!==r[e])return _(!0);_(!1)}}),[r]);const b=(0,a.useInstanceId)(E),[m,_]=(0,e.useState)(!1),d=`inspector-control-panel-control-${b}`;return(0,e.createElement)("div",{className:"o-control-panel-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("div",{className:"components-base-control__title"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:d},o),(0,e.createElement)("div",{className:"floating-controls"},(0,e.createElement)(n.Dropdown,{position:"top left",headerTitle:o,expandOnMobile:!0,renderToggle:l=>{let{isOpen:a,onToggle:r}=l;return(0,e.createElement)(e.Fragment,null,m&&(0,e.createElement)(n.Button,{icon:(0,e.createElement)(k,{icon:w}),label:(0,t.__)("Reset to default","otter-blocks"),showTooltip:!0,isTertiary:!0,onClick:()=>i({...s})}),(0,e.createElement)(n.Button,{id:d,icon:I,label:o,showTooltip:!0,onClick:()=>{r(),c&&c()},"aria-expanded":a,className:f()({"is-active":m})}))},renderContent:()=>(0,e.createElement)("div",{className:"otter-popover-settings"},u)})))))};var y=E,S=l.p+"images/count-animation.1151d25d.png",O=l.p+"images/typing-animation.d84cccd1.png";const L="count",B="typing",R="default";var F=(0,e.memo)((function(l){let{clientId:a,attributes:r,setAttributes:i}=l;(0,e.useEffect)((()=>{let e;if(r.className){e=r.className,e=e.split(" ");let t=Array.from(u).find((t=>e.find((e=>e===t.value))));const l=Array.from(d).find((t=>e.find((e=>e===t.value)))),o=Array.from(p).find((t=>e.find((e=>e===t.value)))),n=Array.from(d).find((t=>e.find((e=>e===`o-count-${t.value}`)))),a=Array.from(p).find((t=>e.find((e=>e===`o-count-${t.value}`)))),i=Array.from(d).find((t=>e.find((e=>e===`o-typing-${t.value}`)))),s=Array.from(p).find((t=>e.find((e=>e===`o-typing-${t.value}`))));k(t?t.value:"none"),w(l?l.value:"none"),E(o?o.value:"none"),C(t?t.label:"none"),N(n?n.value:"none"),D(a?a.value:"none"),U(i?i.value:"none"),$(s?s.value:"none")}}),[]);const{hasCountFormat:b,hasTypingFormat:v}=(0,s.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),l=(0,o.serialize)(t(a)),n=(0,c.create)({html:l});let r=!1,i=!1;return n.formats&&(r=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/count-animation"===e.type)))),i=n.formats.some((e=>!0===e.some((e=>"themeisle-blocks/typing-animation"===e.type))))),{hasCountFormat:r,hasTypingFormat:i}}),[]),[f,k]=(0,e.useState)("none"),[h,w]=(0,e.useState)("none"),[I,E]=(0,e.useState)("none"),[F,C]=(0,e.useState)((0,t.__)("None","otter-blocks")),[T,N]=(0,e.useState)("none"),[A,D]=(0,e.useState)("none"),[x,U]=(0,e.useState)("none"),[z,$]=(0,e.useState)("none"),j=(e,t,l,o)=>{let n;switch(e){case L:n="o-count-";break;case B:n="o-typing-";break;case R:n=""}const a=n+t,s="none"!==l?n+l:"";let c;r.className?(c=r.className,c=c.split(" "),c.find((e=>e===a))?c=c.join(" ").replace(a,s):(c.push(s),c=c.join(" ").trim())):c=s,c=c.replace(/\s+/g," "),""===c&&(c=void 0),i({className:c}),null==o||o()};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(y,{label:(0,t.__)("Loading Animations","otter-blocks")},(0,e.createElement)("div",{className:"o-animations-control"},(0,e.createElement)(g,{animationsList:u,updateAnimation:e=>{let t,l="none"!==e?e:"";if(r.className){t=r.className,t=t.split(" ");const e=t.find((e=>e===f));t.find((e=>"animated"===e))||t.push("animated"),e?t=t.join(" ").replace(f,l):(t.push(l),t=t.join(" "))}else t=`animated ${l}`;"none"===e&&(t=t.replace("animated","").replace(h,"").replace(I,""),w("none"),E("none")),t=t.replace(/\s+/g," ").trim(),""===t&&(t=void 0),k(e),i({className:t});let o=document.querySelector(`#block-${a} .animated`)||document.querySelector(`#block-${a}.animated`);o&&m.forEach((e=>{o.className.includes(e)&&o.addEventListener("animationend",(()=>{o.classList.remove(e),o.addEventListener("animationstart",(()=>{o.classList.remove(e)}))}))}))},currentAnimationLabel:F,setCurrentAnimationLabel:C}),"none"!==f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:h||"none",options:d,onChange:e=>j(R,h,e,(()=>w(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:I||"none",options:p,onChange:e=>j(R,I,e,(()=>E(e)))})))),(0,e.createElement)(y,{label:(0,t.__)("Count Animations","otter-blocks")},b?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:T||"none",options:d,onChange:e=>j(L,T,e,(()=>N(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:A||"none",options:p,onChange:e=>j(L,A,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:O,alt:_("Using Count Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add counting animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))),(0,e.createElement)(y,{label:(0,t.__)("Typing Animations","otter-blocks")},v?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Delay","otter-blocks"),value:x||"none",options:d,onChange:e=>j(B,x,e,(()=>U(e)))}),(0,e.createElement)(n.SelectControl,{label:(0,t.__)("Speed","otter-blocks"),value:z||"none",options:p,onChange:e=>j(B,z,e,(()=>$(e)))})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:S,alt:_("Using Typing Animation in the Block Editor","otter-blocks"),className:"otter-animations-count-image"}),(0,e.createElement)("p",null,(0,t.__)("You can add typing animation from the format toolbar of this block. Once you have added them, you will see customization settings here.","otter-blocks")),(0,e.createElement)("p",null,(0,t.__)("Note: This feature is not available in all the blocks.","otter-blocks")))))})),C=(0,e.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(h.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}));const T="themeisle-blocks/count-animation";(0,c.registerFormatType)(T,{title:(0,t.__)("Count Animation","otter-blocks"),tagName:"o-anim-count",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;const i=/^\$?[\d,]+(\.\d*)?$/;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Count Animation","otter-blocks"),isDisabled:!o&&null===i.exec(n.text.substring(n.start,n.end)),onClick:()=>{(o||!o&&null!==i.exec(n.text.substring(n.start,n.end)))&&a((0,c.toggleFormat)(n,{type:T}))},isActive:o}))}});const N="themeisle-blocks/typing-animation";(0,c.registerFormatType)(N,{title:(0,t.__)("Typing Animation","otter-blocks"),tagName:"o-anim-typing",className:null,edit:l=>{let{isActive:o,value:n,onChange:a}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextToolbarButton,{icon:C,title:(0,t.__)("Typing Animation","otter-blocks"),onClick:()=>{a((0,c.toggleFormat)(n,{type:N}))},isActive:o}))}});const A=["themeisle-blocks/popup"],D=(0,a.createHigherOrderComponent)((l=>a=>(0,o.hasBlockSupport)(a.name,"customClassName",!0)&&a.isSelected&&!A.includes(a.name)?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(l,a),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(n.PanelBody,{title:(0,t.__)("Animations","otter-blocks"),initialOpen:!1,className:"o-is-new"},window.otterComponents&&window.themeisleGutenberg&&(0,e.createElement)(window.otterComponents.Notice,{notice:(0,e.createElement)(n.ExternalLink,{href:window.themeisleGutenberg.optionsPath},(0,t.__)("Disable in Otter Settings","otter-blocks"))}),(0,e.createElement)(F,{clientId:a.clientId,setAttributes:a.setAttributes,attributes:a.attributes})))):(0,e.createElement)(l,a)),"withInspectorControl");(0,i.addFilter)("editor.BlockEdit","themeisle-custom-css/with-inspector-controls",D)}()}();
build/{blocks → animation/pro/blocks}/add-to-cart-button/block.json RENAMED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/add-to-cart-button",
5
  "title": "Add to Cart Button",
6
  "category": "themeisle-blocks",
7
- "description": "Display an Add to Cart button for your WooCommerce products.",
8
  "keywords": [ "woocommerce", "add to cart", "products" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
4
  "name": "themeisle-blocks/add-to-cart-button",
5
  "title": "Add to Cart Button",
6
  "category": "themeisle-blocks",
7
+ "description": "Display an Add to Cart button for your WooCommerce products. Powered by Otter.",
8
  "keywords": [ "woocommerce", "add to cart", "products" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
build/{blocks → animation/pro/blocks}/business-hours/block.json RENAMED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/business-hours",
5
  "title": "Business Hours",
6
  "category": "themeisle-blocks",
7
- "description": "Display your business schedule on your website.",
8
  "keywords": [ "business", "schedule", "time" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
4
  "name": "themeisle-blocks/business-hours",
5
  "title": "Business Hours",
6
  "category": "themeisle-blocks",
7
+ "description": "Display your business schedule on your website. Powered by Otter.",
8
  "keywords": [ "business", "schedule", "time" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
build/{blocks/business-hours-item → animation/pro/blocks/business-hours/item}/block.json RENAMED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/business-hours-item",
5
  "title": "Business Hours Item",
6
  "category": "themeisle-blocks",
7
- "description": "Item used by Business Hours block to display the time.",
8
  "keywords": [ "business", "schedule", "time" ],
9
  "parent": [ "themeisle-blocks/business-hours" ],
10
  "textdomain": "otter-blocks",
4
  "name": "themeisle-blocks/business-hours-item",
5
  "title": "Business Hours Item",
6
  "category": "themeisle-blocks",
7
+ "description": "Item used by Business Hours block to display the time. Powered by Otter.",
8
  "keywords": [ "business", "schedule", "time" ],
9
  "parent": [ "themeisle-blocks/business-hours" ],
10
  "textdomain": "otter-blocks",
build/{blocks → animation/pro/blocks}/review-comparison/block.json RENAMED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/review-comparison",
5
  "title": "Review Comparison Table",
6
  "category": "themeisle-blocks",
7
- "description": "A way to compare different product reviews made on the website.",
8
  "keywords": [ "product", "review", "comparison" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
4
  "name": "themeisle-blocks/review-comparison",
5
  "title": "Review Comparison Table",
6
  "category": "themeisle-blocks",
7
+ "description": "A way to compare different product reviews made on the website. Powered by Otter.",
8
  "keywords": [ "product", "review", "comparison" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
build/{blocks → animation/pro/blocks}/woo-comparison/block.json RENAMED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/woo-comparison",
5
  "title": "WooCommerce Comparison Table",
6
  "category": "themeisle-blocks",
7
- "description": "A way to compare different WooCommerce products made on the website.",
8
  "keywords": [ "woocommerce", "comparison", "table" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
4
  "name": "themeisle-blocks/woo-comparison",
5
  "title": "WooCommerce Comparison Table",
6
  "category": "themeisle-blocks",
7
+ "description": "A way to compare different WooCommerce products made on the website. Powered by Otter.",
8
  "keywords": [ "woocommerce", "comparison", "table" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
build/{blocks/product-add-to-cart → animation/pro/woocommerce/add-to-cart}/block.json RENAMED
File without changes
build/{blocks/product-images → animation/pro/woocommerce/images}/block.json RENAMED
File without changes
build/{blocks/product-meta → animation/pro/woocommerce/meta}/block.json RENAMED
File without changes
build/{blocks/product-price → animation/pro/woocommerce/price}/block.json RENAMED
File without changes
build/{blocks/product-rating → animation/pro/woocommerce/rating}/block.json RENAMED
File without changes
build/{blocks/product-related-products → animation/pro/woocommerce/related-products}/block.json RENAMED
File without changes
build/{blocks/product-short-description → animation/pro/woocommerce/short-description}/block.json RENAMED
File without changes
build/{blocks/product-stock → animation/pro/woocommerce/stock}/block.json RENAMED
File without changes
build/{blocks/product-tabs → animation/pro/woocommerce/tabs}/block.json RENAMED
File without changes
build/{blocks/product-title → animation/pro/woocommerce/title}/block.json RENAMED
File without changes
build/{blocks/product-upsells → animation/pro/woocommerce/upsells}/block.json RENAMED
File without changes
build/blocks/about-author/block.json CHANGED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/about-author",
5
  "title": "About Author",
6
  "category": "themeisle-blocks",
7
- "description": "About Author block is the easiest way to add a author bio below your posts.",
8
  "keywords": [ "about", "author", "profile" ],
9
  "textdomain": "otter-blocks",
10
  "supports": {
4
  "name": "themeisle-blocks/about-author",
5
  "title": "About Author",
6
  "category": "themeisle-blocks",
7
+ "description": "About Author block is the easiest way to add a author bio below your posts. Powered by Otter.",
8
  "keywords": [ "about", "author", "profile" ],
9
  "textdomain": "otter-blocks",
10
  "supports": {
build/blocks/accordion-item/block.json CHANGED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/accordion-item",
5
  "title": "Accordion Item",
6
  "category": "themeisle-blocks",
7
- "description": "Vertically collapsing accordions perfect for displaying your FAQs.",
8
  "keywords": [ "accordions", "collapse", "faq" ],
9
  "parent": [ "themeisle-blocks/accordion" ],
10
  "textdomain": "otter-blocks",
4
  "name": "themeisle-blocks/accordion-item",
5
  "title": "Accordion Item",
6
  "category": "themeisle-blocks",
7
+ "description": "Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.",
8
  "keywords": [ "accordions", "collapse", "faq" ],
9
  "parent": [ "themeisle-blocks/accordion" ],
10
  "textdomain": "otter-blocks",
build/blocks/accordion/block.json CHANGED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/accordion",
5
  "title": "Accordion",
6
  "category": "themeisle-blocks",
7
- "description": "Vertically collapsing accordions perfect for displaying your FAQs.",
8
  "keywords": [ "accordions", "collapse", "faq" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
4
  "name": "themeisle-blocks/accordion",
5
  "title": "Accordion",
6
  "category": "themeisle-blocks",
7
+ "description": "Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.",
8
  "keywords": [ "accordions", "collapse", "faq" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
build/blocks/advanced-column/block.json CHANGED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/advanced-column",
5
  "title": "Section Column",
6
  "category": "themeisle-blocks",
7
- "description": "A single column within a Section block.",
8
  "parent": [ "themeisle-blocks/advanced-columns" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
4
  "name": "themeisle-blocks/advanced-column",
5
  "title": "Section Column",
6
  "category": "themeisle-blocks",
7
+ "description": "A single column within a Section block. Powered by Otter.",
8
  "parent": [ "themeisle-blocks/advanced-columns" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
build/blocks/advanced-columns/block.json CHANGED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/advanced-columns",
5
  "title": "Section",
6
  "category": "themeisle-blocks",
7
- "description": "Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like.",
8
  "keywords": [ "advanced columns", "layout", "section" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
4
  "name": "themeisle-blocks/advanced-columns",
5
  "title": "Section",
6
  "category": "themeisle-blocks",
7
+ "description": "Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like. Powered by Otter.",
8
  "keywords": [ "advanced columns", "layout", "section" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
build/blocks/advanced-columns/editor.css CHANGED
@@ -1 +1 @@
1
- .wp-block-themeisle-blocks-advanced-columns-layout-control{margin:0 0 1.5em 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title{display:flex;justify-content:space-between;margin-bottom:5px}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title label{padding:5px 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout{cursor:pointer;width:33.3333333333%;height:auto;display:inline-block;padding:10px;border-radius:4px}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout svg{fill:#d5dadf}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):not(.selected){box-shadow:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link) svg{fill:#0075af}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected svg{fill:#6d7882}.wp-block-themeisle-onboarding-component{border:1px solid #e7e7e7;padding:25px}.wp-block-themeisle-onboarding-component .components-placeholder__label svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px;margin-right:10px}.wp-block-themeisle-onboarding-component .wp-block-themeisle-layout-picker{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:4px 0}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout{background:#fff;cursor:pointer;border:1px solid #0075af;max-width:68px;line-height:28px;flex-shrink:1;width:68px;height:68px;padding:0 12px 2px;margin:5px 10px 5px 0}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout svg{min-width:42px;fill:#0075af}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none;box-shadow:none}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout:hover svg{fill:#005d8c}.wp-block-themeisle-onboarding-component .components-placeholder__fieldset .wp-block-themeisle-template-library{font-size:12px;height:auto;line-height:28px;padding:4px 10px;margin:15px 0 10px 0;display:flex;align-items:center;align-self:flex-start}.wp-block-themeisle-onboarding-component .components-placeholder__fieldset .wp-block-themeisle-template-library .dashicon{margin-right:10px}.wp-block-themeisle-blocks-advanced-columns-separators{position:absolute;left:0;width:100%}.wp-block-themeisle-blocks-advanced-columns-separators.top{top:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom{bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom svg{position:absolute;bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators .rotate{transform:rotate(180deg)}.wp-block-themeisle-blocks-advanced-columns{--columnsWidth: initial;display:flex}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap{flex-basis:100%;width:100%;word-break:keep-all;max-width:var(--columnsWidth)}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:nowrap}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column{display:flex;max-width:unset;margin:inherit;flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column>.block-editor-inner-blocks{flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-advanced-columns{max-width:unset}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-slider{display:grid}.wp-block-themeisle-blocks-advanced-columns .wp-themeisle-block-overlay,.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-columns-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-themeisle-blocks-advanced-columns.has-default-gap .wp-block-themeisle-blocks-advanced-column{margin-left:10px;margin-right:10px}.wp-block-themeisle-blocks-advanced-columns.has-nogap-gap .wp-block-themeisle-blocks-advanced-column{margin-left:0;margin-right:0}.wp-block-themeisle-blocks-advanced-columns.has-narrow-gap .wp-block-themeisle-blocks-advanced-column{margin-left:5px;margin-right:5px}.wp-block-themeisle-blocks-advanced-columns.has-extended-gap .wp-block-themeisle-blocks-advanced-column{margin-left:15px;margin-right:15px}.wp-block-themeisle-blocks-advanced-columns.has-wide-gap .wp-block-themeisle-blocks-advanced-column{margin-left:20px;margin-right:20px}.wp-block-themeisle-blocks-advanced-columns.has-wider-gap .wp-block-themeisle-blocks-advanced-column{margin-left:30px;margin-right:30px}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top .wp-block-themeisle-blocks-advanced-column{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center .wp-block-themeisle-blocks-advanced-column{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom .wp-block-themeisle-blocks-advanced-column{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-start{justify-content:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-center{justify-content:center}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-end{justify-content:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout.has-reverse-columns-tablet>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout.has-reverse-columns-mobile>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column:before{inset:0}.components-popover.block-editor-block-list__block-popover>.components-popover__content .block-editor-block-contextual-toolbar.wp-block-themeisle-blocks-advanced-column{margin:0}.o-section-header-panel.is-opened{padding:0}.o-section-header-panel .header-tab{display:inline-block;width:33.3333333333%;height:auto;padding:10px 20px;text-align:center;cursor:pointer}.o-section-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.o-section-header-panel .header-tab:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f3f4f5;box-shadow:none}.o-section-header-panel .header-tab span{display:inline-block;font-size:12px}.o-section-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.o-section-border-container.components-panel__body>.components-toggle-control{margin:1.5em 0 0 0}.o-section-border-container.components-panel__body>.components-toggle-control .components-base-control__field{margin-bottom:0}.o-section-layout-picker .components-placeholder.components-placeholder{padding:unset;box-shadow:unset;justify-content:unset;height:max-content;min-height:unset;margin-bottom:10px}.o-section-layout-picker .components-placeholder.components-placeholder .components-placeholder__label{display:none}.o-section-layout-picker .components-placeholder.components-placeholder .components-placeholder__instructions{display:none}#otter-border-raduis-box>.component-box-control__header-control-wrapper>.components-flex-item:first-child{transform:rotate(315deg)}/*# sourceMappingURL=editor.css.map */
1
+ .wp-block-themeisle-blocks-advanced-columns-layout-control{margin:0 0 1.5em 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title{display:flex;justify-content:space-between;margin-bottom:5px}.wp-block-themeisle-blocks-advanced-columns-layout-control .components-base-control__title label{padding:5px 0}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout{cursor:pointer;width:33.3333333333%;height:auto;display:inline-block;padding:10px;border-radius:4px}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout svg{fill:#d5dadf}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):not(.selected){box-shadow:none}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link) svg{fill:#0075af}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected{box-shadow:inset 0 0 0 1px #555d66,inset 0 0 0 2px #fff}.wp-block-themeisle-blocks-advanced-columns-layout-control .wp-block-themeisle-blocks-advanced-column-layout.selected svg{fill:#6d7882}.wp-block-themeisle-onboarding-component{border:1px solid #e7e7e7;padding:25px}.wp-block-themeisle-onboarding-component .components-placeholder__label svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px;margin-right:10px}.wp-block-themeisle-onboarding-component .wp-block-themeisle-layout-picker{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:4px 0}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout{background:#fff;cursor:pointer;border:1px solid #0075af;max-width:68px;line-height:28px;flex-shrink:1;width:68px;height:68px;padding:0 12px 2px;margin:5px 10px 5px 0}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout svg{min-width:42px;fill:#0075af}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f1f1f1;border-color:#005d8c;color:#005d8c;text-decoration:none;box-shadow:none}.wp-block-themeisle-onboarding-component .wp-block-themeisle-blocks-advanced-column-layout:hover svg{fill:#005d8c}.wp-block-themeisle-onboarding-component .components-placeholder__fieldset .wp-block-themeisle-template-library{font-size:12px;height:auto;line-height:28px;padding:4px 10px;margin:15px 0 10px 0;display:flex;align-items:center;align-self:flex-start}.wp-block-themeisle-onboarding-component .components-placeholder__fieldset .wp-block-themeisle-template-library .dashicon{margin-right:10px}.wp-block-themeisle-blocks-advanced-columns-separators{position:absolute;left:0;width:100%}.wp-block-themeisle-blocks-advanced-columns-separators.top{top:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom{bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom svg{position:absolute;bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators .rotate{transform:rotate(180deg)}html[lang=ja] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=ko] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hans] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hant] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{word-break:normal}.wp-block-themeisle-blocks-advanced-columns{--columnsWidth: initial;display:flex}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap{flex-basis:100%;width:100%;word-break:keep-all;max-width:var(--columnsWidth)}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:nowrap}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column{display:flex;max-width:unset;margin:inherit;flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column>.block-editor-inner-blocks{flex:1}.wp-block-themeisle-blocks-advanced-columns>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-advanced-columns{max-width:unset}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-slider{display:grid}.wp-block-themeisle-blocks-advanced-columns .wp-themeisle-block-overlay,.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-columns-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-themeisle-blocks-advanced-columns.has-default-gap .wp-block-themeisle-blocks-advanced-column{margin-left:10px;margin-right:10px}.wp-block-themeisle-blocks-advanced-columns.has-nogap-gap .wp-block-themeisle-blocks-advanced-column{margin-left:0;margin-right:0}.wp-block-themeisle-blocks-advanced-columns.has-narrow-gap .wp-block-themeisle-blocks-advanced-column{margin-left:5px;margin-right:5px}.wp-block-themeisle-blocks-advanced-columns.has-extended-gap .wp-block-themeisle-blocks-advanced-column{margin-left:15px;margin-right:15px}.wp-block-themeisle-blocks-advanced-columns.has-wide-gap .wp-block-themeisle-blocks-advanced-column{margin-left:20px;margin-right:20px}.wp-block-themeisle-blocks-advanced-columns.has-wider-gap .wp-block-themeisle-blocks-advanced-column{margin-left:30px;margin-right:30px}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top .wp-block-themeisle-blocks-advanced-column{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center .wp-block-themeisle-blocks-advanced-column{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .wp-block-themeisle-blocks-advanced-column,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom .wp-block-themeisle-blocks-advanced-column{align-items:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-start{justify-content:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-center{justify-content:center}.wp-block-themeisle-blocks-advanced-columns.has-horizontal-flex-end{justify-content:flex-end}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-collapsedRows-layout.has-reverse-columns-tablet>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-tablet.has-tablet-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-collapsedRows-layout.has-reverse-columns-mobile>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-twoColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto}.wp-block-themeisle-blocks-advanced-columns.has-viewport-mobile.has-mobile-threeColumnGrid-layout>.innerblocks-wrap>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:auto auto auto}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column:before{inset:0}.components-popover.block-editor-block-list__block-popover>.components-popover__content .block-editor-block-contextual-toolbar.wp-block-themeisle-blocks-advanced-column{margin:0}.o-section-header-panel.is-opened{padding:0}.o-section-header-panel .header-tab{display:inline-block;width:33.3333333333%;height:auto;padding:10px 20px;text-align:center;cursor:pointer}.o-section-header-panel .header-tab.is-selected{border-bottom:2px solid #0085ba;background:#f3f4f5}.o-section-header-panel .header-tab:hover:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link){background:#f3f4f5;box-shadow:none}.o-section-header-panel .header-tab span{display:inline-block;font-size:12px}.o-section-header-panel .header-tab span .dashicon{display:block;margin:0 auto;font-size:20px}.o-section-border-container.components-panel__body>.components-toggle-control{margin:1.5em 0 0 0}.o-section-border-container.components-panel__body>.components-toggle-control .components-base-control__field{margin-bottom:0}.o-section-layout-picker .components-placeholder.components-placeholder{padding:unset;box-shadow:unset;justify-content:unset;height:max-content;min-height:unset;margin-bottom:10px}.o-section-layout-picker .components-placeholder.components-placeholder .components-placeholder__label{display:none}.o-section-layout-picker .components-placeholder.components-placeholder .components-placeholder__instructions{display:none}#otter-border-raduis-box>.component-box-control__header-control-wrapper>.components-flex-item:first-child{transform:rotate(315deg)}/*# sourceMappingURL=editor.css.map */
build/blocks/advanced-columns/editor.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/section/components/layout-control/editor.scss","../../../src/blocks/blocks/section/components/onboarding/editor.scss","../../../src/blocks/blocks/section/components/separators/editor.scss","../../../src/blocks/blocks/section/editor.scss"],"names":[],"mappings":"AAAA,2DACC,mBAEA,2FACC,aACA,8BACA,kBAEA,iGACC,cAIF,6GACC,eACA,qBACA,YACA,qBACA,aACA,kBAEA,iHACC,aAIA,gOACC,mBACA,qBACA,cACA,qBAEA,+OACC,gBAGD,oOACC,aAKH,sHACC,wDAEA,0HACC,aC9CJ,yCACC,yBACA,aAGC,4EACC,eACA,gBACA,eACA,gBACA,kBAIF,2EACC,aACA,2BACA,mBACA,eACA,WACA,aAGD,2FACC,gBACA,eACA,yBACA,eACA,iBACA,cACA,WACA,YACA,mBACA,sBAEA,+FACC,eACA,aAIA,8MACC,mBACA,qBACA,cACA,qBACA,gBAGD,qGACC,aAMF,gHACC,eACA,YACA,iBACA,iBACA,qBACA,aACA,mBACA,sBAEA,0HACC,kBCnEJ,uDACC,kBACA,OACA,WAEA,2DACC,MAGD,8DACC,SAEA,kEACC,kBACA,SAIF,+DACC,yBCfF,4CACC,wBACA,aAEA,8DACC,gBACA,WACA,oBACA,8BAEA,0HACC,aACA,iBAEA,qKACC,aACA,gBACA,eACA,OAEA,gMACC,OAGD,iNACC,gBAOH,yHACC,aAIF,wKAEC,kBACA,WACA,YACA,MACA,OAIA,uGACC,iBACA,kBAKD,qGACC,cACA,eAKD,sGACC,gBACA,iBAKD,wGACC,iBACA,kBAKD,oGACC,iBACA,kBAKD,qGACC,iBACA,kBAIF,iIAEC,uBAEA,uNACC,uBAIF,gEACC,mBAEA,2GACC,mBAIF,kIAEC,qBAEA,wNACC,qBAIF,sEACC,2BAGD,kEACC,uBAGD,oEACC,yBAKC,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAOD,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAMF,8FACC,QAOD,yKACC,SAMF,kCACC,UAGD,oCACC,qBACA,qBACA,YACA,kBACA,kBACA,eAEA,gDACC,gCACA,mBAIA,uJACC,mBACA,gBAIF,yCACC,qBACA,eAEA,mDACC,cACA,cACA,eAQF,8EACC,mBAEA,8GACC,gBAOH,wEACC,cACA,iBACA,sBACA,mBACA,iBACA,mBAEA,uGACC,aAGD,8GACC,aAQA,0GACC","file":"editor.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/section/components/layout-control/editor.scss","../../../src/blocks/blocks/section/components/onboarding/editor.scss","../../../src/blocks/blocks/section/components/separators/editor.scss","../../../src/blocks/blocks/section/editor.scss"],"names":[],"mappings":"AAAA,2DACC,mBAEA,2FACC,aACA,8BACA,kBAEA,iGACC,cAIF,6GACC,eACA,qBACA,YACA,qBACA,aACA,kBAEA,iHACC,aAIA,gOACC,mBACA,qBACA,cACA,qBAEA,+OACC,gBAGD,oOACC,aAKH,sHACC,wDAEA,0HACC,aC9CJ,yCACC,yBACA,aAGC,4EACC,eACA,gBACA,eACA,gBACA,kBAIF,2EACC,aACA,2BACA,mBACA,eACA,WACA,aAGD,2FACC,gBACA,eACA,yBACA,eACA,iBACA,cACA,WACA,YACA,mBACA,sBAEA,+FACC,eACA,aAIA,8MACC,mBACA,qBACA,cACA,qBACA,gBAGD,qGACC,aAMF,gHACC,eACA,YACA,iBACA,iBACA,qBACA,aACA,mBACA,sBAEA,0HACC,kBCnEJ,uDACC,kBACA,OACA,WAEA,2DACC,MAGD,8DACC,SAEA,kEACC,kBACA,SAIF,+DACC,yBCdD,sYACC,kBAIF,4CACC,wBACA,aAEA,8DACC,gBACA,WACA,oBACA,8BAEA,0HACC,aACA,iBAEA,qKACC,aACA,gBACA,eACA,OAEA,gMACC,OAGD,iNACC,gBAOH,yHACC,aAIF,wKAEC,kBACA,WACA,YACA,MACA,OAIA,uGACC,iBACA,kBAKD,qGACC,cACA,eAKD,sGACC,gBACA,iBAKD,wGACC,iBACA,kBAKD,oGACC,iBACA,kBAKD,qGACC,iBACA,kBAIF,iIAEC,uBAEA,uNACC,uBAIF,gEACC,mBAEA,2GACC,mBAIF,kIAEC,qBAEA,wNACC,qBAIF,sEACC,2BAGD,kEACC,uBAGD,oEACC,yBAKC,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAOD,8KACC,sBAIA,yMACC,8BAMF,8KACC,aACA,gCAKD,gLACC,aACA,qCAMF,8FACC,QAOD,yKACC,SAMF,kCACC,UAGD,oCACC,qBACA,qBACA,YACA,kBACA,kBACA,eAEA,gDACC,gCACA,mBAIA,uJACC,mBACA,gBAIF,yCACC,qBACA,eAEA,mDACC,cACA,cACA,eAQF,8EACC,mBAEA,8GACC,gBAOH,wEACC,cACA,iBACA,sBACA,mBACA,iBACA,mBAEA,uGACC,aAGD,8GACC,aAQA,0GACC","file":"editor.css"}
build/blocks/advanced-columns/style.css CHANGED
@@ -1 +1 @@
1
- .wp-block-themeisle-blocks-advanced-columns-separators{position:absolute;left:0;width:100%}.wp-block-themeisle-blocks-advanced-columns-separators.top{top:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom{bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom svg{position:absolute;bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators svg{height:100px}.wp-block-themeisle-blocks-advanced-columns-separators .rotate{transform:rotate(180deg)}.wp-block-themeisle-blocks-advanced-columns{--columnsWidth: initial;--horizontalAlign: unset;justify-content:var(--horizontalAlign)}.wp-block-themeisle-blocks-advanced-columns .wp-themeisle-block-overlay,.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-columns-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-slider{display:grid}.wp-block-themeisle-blocks-advanced-columns.has-default-gap .wp-block-themeisle-blocks-advanced-column{margin-left:10px;margin-right:10px}.wp-block-themeisle-blocks-advanced-columns.has-nogap-gap .wp-block-themeisle-blocks-advanced-column{margin-left:0;margin-right:0}.wp-block-themeisle-blocks-advanced-columns.has-narrow-gap .wp-block-themeisle-blocks-advanced-column{margin-left:5px;margin-right:5px}.wp-block-themeisle-blocks-advanced-columns.has-extended-gap .wp-block-themeisle-blocks-advanced-column{margin-left:15px;margin-right:15px}.wp-block-themeisle-blocks-advanced-columns.has-wide-gap .wp-block-themeisle-blocks-advanced-column{margin-left:20px;margin-right:20px}.wp-block-themeisle-blocks-advanced-columns.has-wider-gap .wp-block-themeisle-blocks-advanced-column{margin-left:30px;margin-right:30px}@media(min-width: 600px){.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .innerblocks-wrap,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top .innerblocks-wrap{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center .innerblocks-wrap{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .innerblocks-wrap,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom .innerblocks-wrap{align-items:flex-end}}@media(min-width: 960px){.wp-block-themeisle-blocks-advanced-columns{display:flex;position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{display:flex;flex-basis:100%;word-break:keep-all;max-width:var(--columnsWidth)}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column{position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column:first-child{margin-left:0}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column:last-child{margin-right:0}.wp-block-themeisle-blocks-advanced-columns.hide-in-desktop{display:none}.wp-block-themeisle-blocks-advanced-columns.has-1-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:100%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:33.34%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:66.66%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:33.34%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:66.66%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:33.33%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:60%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:20%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:20%}.wp-block-themeisle-blocks-advanced-columns.has-4-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-5-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:20%}.wp-block-themeisle-blocks-advanced-columns.has-6-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:16.66%}}@media(min-width: 600px)and (max-width: 960px){.wp-block-themeisle-blocks-advanced-columns{display:flex;position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{display:flex;flex-basis:100%;word-break:keep-all;max-width:var(--columnsWidth)}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column{position:relative;flex:1}.wp-block-themeisle-blocks-advanced-columns.hide-in-tablet{display:none}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-tablet-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-tablet-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:3}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-tablet-collapsedRows-layout>.innerblocks-wrap{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-tablet-collapsedRows-layout.has-reverse-columns-tablet>.innerblocks-wrap{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-tablet-twoColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-tablet-twoColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 40%}.wp-block-themeisle-blocks-advanced-columns.has-tablet-threeColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-tablet-threeColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 30%}}@media(max-width: 600px){.wp-block-themeisle-blocks-advanced-columns{display:flex;position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{display:flex;flex-basis:100%;word-break:keep-all}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column{position:relative;flex:1}.wp-block-themeisle-blocks-advanced-columns.hide-in-mobile{display:none}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-mobile-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-mobile-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:3}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-mobile-collapsedRows-layout>.innerblocks-wrap{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-mobile-collapsedRows-layout.has-reverse-columns-mobile>.innerblocks-wrap{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-mobile-twoColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-mobile-twoColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 40%}.wp-block-themeisle-blocks-advanced-columns.has-mobile-threeColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-mobile-threeColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 30%}}/*# sourceMappingURL=style.css.map */
1
+ .wp-block-themeisle-blocks-advanced-columns-separators{position:absolute;left:0;width:100%}.wp-block-themeisle-blocks-advanced-columns-separators.top{top:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom{bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators.bottom svg{position:absolute;bottom:0}.wp-block-themeisle-blocks-advanced-columns-separators svg{height:100px}.wp-block-themeisle-blocks-advanced-columns-separators .rotate{transform:rotate(180deg)}html[lang=ja] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=ko] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hans] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap,html[lang=zh-Hant] .wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{word-break:normal}.wp-block-themeisle-blocks-advanced-columns{--columnsWidth: initial;--horizontalAlign: unset;justify-content:var(--horizontalAlign)}.wp-block-themeisle-blocks-advanced-columns .wp-themeisle-block-overlay,.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-columns-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column:only-child{max-width:var(--columnsWidth)}.wp-block-themeisle-blocks-advanced-columns .wp-block-themeisle-blocks-advanced-column .wp-block-themeisle-blocks-slider{display:grid}.wp-block-themeisle-blocks-advanced-columns.has-default-gap .wp-block-themeisle-blocks-advanced-column{margin-left:10px;margin-right:10px}.wp-block-themeisle-blocks-advanced-columns.has-nogap-gap .wp-block-themeisle-blocks-advanced-column{margin-left:0;margin-right:0}.wp-block-themeisle-blocks-advanced-columns.has-narrow-gap .wp-block-themeisle-blocks-advanced-column{margin-left:5px;margin-right:5px}.wp-block-themeisle-blocks-advanced-columns.has-extended-gap .wp-block-themeisle-blocks-advanced-column{margin-left:15px;margin-right:15px}.wp-block-themeisle-blocks-advanced-columns.has-wide-gap .wp-block-themeisle-blocks-advanced-column{margin-left:20px;margin-right:20px}.wp-block-themeisle-blocks-advanced-columns.has-wider-gap .wp-block-themeisle-blocks-advanced-column{margin-left:30px;margin-right:30px}@media(min-width: 600px){.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-start .innerblocks-wrap,.wp-block-themeisle-blocks-advanced-columns.has-vertical-top .innerblocks-wrap{align-items:flex-start}.wp-block-themeisle-blocks-advanced-columns.has-vertical-center .innerblocks-wrap{align-items:center}.wp-block-themeisle-blocks-advanced-columns.has-vertical-flex-end .innerblocks-wrap,.wp-block-themeisle-blocks-advanced-columns.has-vertical-bottom .innerblocks-wrap{align-items:flex-end}}@media(min-width: 960px){.wp-block-themeisle-blocks-advanced-columns{display:flex;position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{display:flex;flex-basis:100%;word-break:keep-all;max-width:var(--columnsWidth)}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column{position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column:first-child{margin-left:0}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column:last-child{margin-right:0}.wp-block-themeisle-blocks-advanced-columns.hide-in-desktop{display:none}.wp-block-themeisle-blocks-advanced-columns.has-1-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:100%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:33.34%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:66.66%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:33.34%}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-desktop-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:66.66%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:33.33%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:50%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:60%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex-basis:20%}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-desktop-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex-basis:20%}.wp-block-themeisle-blocks-advanced-columns.has-4-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:25%}.wp-block-themeisle-blocks-advanced-columns.has-5-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:20%}.wp-block-themeisle-blocks-advanced-columns.has-6-columns.has-desktop-equal-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex-basis:16.66%}}@media(min-width: 600px)and (max-width: 960px){.wp-block-themeisle-blocks-advanced-columns{display:flex;position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{display:flex;flex-basis:100%;word-break:keep-all;max-width:var(--columnsWidth)}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column{position:relative;flex:1}.wp-block-themeisle-blocks-advanced-columns.hide-in-tablet{display:none}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-tablet-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-tablet-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:3}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-tablet-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-tablet-collapsedRows-layout>.innerblocks-wrap{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-tablet-collapsedRows-layout.has-reverse-columns-tablet>.innerblocks-wrap{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-tablet-twoColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-tablet-twoColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 40%}.wp-block-themeisle-blocks-advanced-columns.has-tablet-threeColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-tablet-threeColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 30%}}@media(max-width: 600px){.wp-block-themeisle-blocks-advanced-columns{display:flex;position:relative}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap{display:flex;flex-basis:100%;word-break:keep-all}.wp-block-themeisle-blocks-advanced-columns .innerblocks-wrap .wp-block-themeisle-blocks-advanced-column{position:relative;flex:1}.wp-block-themeisle-blocks-advanced-columns.hide-in-mobile{display:none}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-mobile-oneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-2-columns.has-mobile-twoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneOneTwo-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-twoOneOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:2}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneTwoOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:3}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:first-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-3-columns.has-mobile-oneThreeOne-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column:last-child{flex:1}.wp-block-themeisle-blocks-advanced-columns.has-mobile-collapsedRows-layout>.innerblocks-wrap{flex-direction:column}.wp-block-themeisle-blocks-advanced-columns.has-mobile-collapsedRows-layout.has-reverse-columns-mobile>.innerblocks-wrap{flex-direction:column-reverse}.wp-block-themeisle-blocks-advanced-columns.has-mobile-twoColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-mobile-twoColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 40%}.wp-block-themeisle-blocks-advanced-columns.has-mobile-threeColumnGrid-layout>.innerblocks-wrap{display:flex;flex-wrap:wrap}.wp-block-themeisle-blocks-advanced-columns.has-mobile-threeColumnGrid-layout>.innerblocks-wrap>.wp-block-themeisle-blocks-advanced-column{flex:1 1 30%}}/*# sourceMappingURL=style.css.map */
build/blocks/advanced-columns/style.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/section/components/separators/style.scss","../../../src/blocks/blocks/section/style.scss"],"names":[],"mappings":"AAAA,uDACC,kBACA,OACA,WAEA,2DACC,MAGD,8DACC,SAEA,kEACC,kBACA,SAIF,2DACC,aAGD,+DACC,yBCrBF,4CACC,wBACA,yBAEA,uCAEA,wKAEC,kBACA,WACA,YACA,MACA,OAIA,yHACC,aAKD,uGACC,iBACA,kBAKD,qGACC,cACA,eAKD,sGACC,gBACA,iBAKD,wGACC,iBACA,kBAKD,oGACC,iBACA,kBAKD,qGACC,iBACA,kBAKH,yBAIG,qKACC,uBAKD,kFACC,mBAMD,sKACC,sBAMJ,yBACC,4CACC,aACA,kBAEA,8DACC,aACA,gBACA,oBACA,8BAEA,yGACC,kBAEA,qHACC,cAGD,oHACC,eAKH,4DACC,aAQE,gJACC,gBAWD,gJACC,eAQD,iJACC,kBAEA,4JACC,kBASF,iJACC,kBAEA,6JACC,kBAYF,gJACC,kBAQD,oJACC,eAEA,+JACC,eASF,oJACC,eAEA,gKACC,eASF,oJACC,eAEA,gKACC,eAGD,+JACC,eASF,sJACC,eAEA,kKACC,eAGD,iKACC,eAYF,gJACC,eAWD,gJACC,eAWD,gJACC,mBAQN,+CACC,4CACC,aACA,kBAEA,8DACC,aACA,gBACA,oBACA,8BAEA,yGACC,kBACA,OAIF,2DACC,aAUG,2JACC,OAWD,4JACC,OAcD,8JACC,OAWD,+JACC,OASF,mJACC,OAEA,+JACC,OAGD,8JACC,OASF,qJACC,OAEA,iKACC,OAGD,gKACC,OAQJ,8FACC,sBAIA,yHACC,8BAMF,8FACC,aACA,eAEA,yIACC,aAMF,gGACC,aACA,eAEA,2IACC,cAOL,yBACC,4CACC,aACA,kBAEA,8DACC,aACA,gBACA,oBAEA,yGACC,kBACA,OAIF,2DACC,aAUG,2JACC,OAWD,4JACC,OAcD,8JACC,OAWD,+JACC,OASF,mJACC,OAEA,+JACC,OAGD,8JACC,OASF,qJACC,OAEA,iKACC,OAGD,gKACC,OAQJ,8FACC,sBAIA,yHACC,8BAMF,8FACC,aACA,eAEA,yIACC,aAMF,gGACC,aACA,eAEA,2IACC","file":"style.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../../src/blocks/blocks/section/components/separators/style.scss","../../../src/blocks/blocks/section/style.scss"],"names":[],"mappings":"AAAA,uDACC,kBACA,OACA,WAEA,2DACC,MAGD,8DACC,SAEA,kEACC,kBACA,SAIF,2DACC,aAGD,+DACC,yBCpBD,sYACC,kBAIF,4CACC,wBACA,yBAEA,uCAEA,wKAEC,kBACA,WACA,YACA,MACA,OAGD,kGACC,8BAIA,yHACC,aAKD,uGACC,iBACA,kBAKD,qGACC,cACA,eAKD,sGACC,gBACA,iBAKD,wGACC,iBACA,kBAKD,oGACC,iBACA,kBAKD,qGACC,iBACA,kBAKH,yBAIG,qKACC,uBAKD,kFACC,mBAMD,sKACC,sBAMJ,yBACC,4CACC,aACA,kBAEA,8DACC,aACA,gBACA,oBACA,8BAEA,yGACC,kBAEA,qHACC,cAGD,oHACC,eAKH,4DACC,aAQE,gJACC,gBAWD,gJACC,eAQD,iJACC,kBAEA,4JACC,kBASF,iJACC,kBAEA,6JACC,kBAYF,gJACC,kBAQD,oJACC,eAEA,+JACC,eASF,oJACC,eAEA,gKACC,eASF,oJACC,eAEA,gKACC,eAGD,+JACC,eASF,sJACC,eAEA,kKACC,eAGD,iKACC,eAYF,gJACC,eAWD,gJACC,eAWD,gJACC,mBAQN,+CACC,4CACC,aACA,kBAEA,8DACC,aACA,gBACA,oBACA,8BAEA,yGACC,kBACA,OAIF,2DACC,aAUG,2JACC,OAWD,4JACC,OAcD,8JACC,OAWD,+JACC,OASF,mJACC,OAEA,+JACC,OAGD,8JACC,OASF,qJACC,OAEA,iKACC,OAGD,gKACC,OAQJ,8FACC,sBAIA,yHACC,8BAMF,8FACC,aACA,eAEA,yIACC,aAMF,gGACC,aACA,eAEA,2IACC,cAOL,yBACC,4CACC,aACA,kBAEA,8DACC,aACA,gBACA,oBAEA,yGACC,kBACA,OAIF,2DACC,aAUG,2JACC,OAWD,4JACC,OAcD,8JACC,OAWD,+JACC,OASF,mJACC,OAEA,+JACC,OAGD,8JACC,OASF,qJACC,OAEA,iKACC,OAGD,gKACC,OAQJ,8FACC,sBAIA,yHACC,8BAMF,8FACC,aACA,eAEA,yIACC,aAMF,gGACC,aACA,eAEA,2IACC","file":"style.css"}
build/blocks/advanced-heading/block.json CHANGED
@@ -4,7 +4,7 @@
4
  "name": "themeisle-blocks/advanced-heading",
5
  "title": "Advanced Heading",
6
  "category": "themeisle-blocks",
7
- "description": "Advanced Heading gives a spin to editor's Heading block with much needed customization options.",
8
  "keywords": [ "heading", "title", "advanced heading" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
@@ -31,8 +31,7 @@
31
  "type": "string"
32
  },
33
  "headingColor": {
34
- "type": "string",
35
- "default": "#000000"
36
  },
37
  "highlightColor": {
38
  "type": "string"
@@ -198,4 +197,4 @@
198
  },
199
  "editorStyle": "otter-advanced-heading-editor",
200
  "style": "otter-advanced-heading-style"
201
- }
4
  "name": "themeisle-blocks/advanced-heading",
5
  "title": "Advanced Heading",
6
  "category": "themeisle-blocks",
7
+ "description": "Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.",
8
  "keywords": [ "heading", "title", "advanced heading" ],
9
  "textdomain": "otter-blocks",
10
  "attributes": {
31
  "type": "string"
32
  },
33
  "headingColor": {
34
+ "type": "string"
 
35
  },
36
  "highlightColor": {
37
  "type": "string"
197
  },
198
  "editorStyle": "otter-advanced-heading-editor",
199
  "style": "otter-advanced-heading-style"
200
+ }
build/blocks/blocks.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => 'ebd99bc5bbb9d5e073259f620f8497b8');
1
+ <?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render'), 'version' => '5ae500cd4e4663f9e3a4d50195c8ca95');
build/blocks/blocks.js CHANGED
@@ -1,36 +1,26 @@
1
- !function(){"use strict";var e,t,o,l={7758:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/about-author","title":"About Author","category":"themeisle-blocks","description":"About Author block is the easiest way to add a author bio below your posts.","keywords":["about","author","profile"],"textdomain":"otter-blocks","supports":{"html":false},"editorStyle":"otter-about-author-editor","style":"otter-about-author-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),u=o.n(d);const{name:m}=r;(0,a.registerBlockType)(m,{...r,title:(0,l.__)("About Author","otter-blocks"),description:(0,l.__)("About Author block is the easiest way to add a author bio below your posts.","otter-blocks"),icon:n.VI,keywords:["about","author","profile"],edit:()=>(0,c.createElement)("div",(0,i.useBlockProps)(),(0,c.createElement)(s.Disabled,null,(0,c.createElement)(u(),{block:"themeisle-blocks/about-author"}))),save:()=>null})},8398:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion","title":"Accordion","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs.","keywords":["accordions","collapse","faq"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"gap":{"type":"string"},"titleColor":{"type":"string"},"titleBackground":{"type":"string"},"contentBackground":{"type":"string"},"borderColor":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"html":false},"editorStyle":"otter-accordion-editor","style":"otter-accordion-style"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(917),u=o(2175),m=o(5609),b=o(3159),p=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(m.SelectControl,{label:(0,l.__)("Gap","otter-blocks"),value:t.gap,options:[{label:(0,l.__)("No Gap","otter-blocks"),value:""},{label:(0,l.__)("Narrow (5px)","otter-blocks"),value:"narrow"},{label:(0,l.__)("Wide (10px)","otter-blocks"),value:"wide"},{label:(0,l.__)("Wider (20px)","otter-blocks"),value:"wider"}],onChange:e=>o({gap:e})})),(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.Z,{field:"titleColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Title","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})})),(0,c.createElement)(b.Z,{field:"titleBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Title Background","otter-blocks"),colorValue:t.titleBackground,onColorChange:e=>o({titleBackground:e})})),(0,c.createElement)(u.ContrastChecker,{textColor:a("titleColor"),backgroundColor:a("titleBackground")}),(0,c.createElement)(b.Z,{field:"contentBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Content Background","otter-blocks"),colorValue:t.contentBackground,onColorChange:e=>o({contentBackground:e})})),(0,c.createElement)(b.Z,{field:"borderColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))))},g=o(5225);const{attributes:h}=r;const{name:k}=r;(0,a.registerBlockType)(k,{...r,title:(0,l.__)("Accordion","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs.","otter-blocks"),icon:n.Se,keywords:["accordions","collapse","faq"],edit:e=>{let{name:t,attributes:o,setAttributes:l,clientId:a,isSelected:r}=e;(0,c.useEffect)((()=>{const e=(0,g.WX)(a,h);return()=>e(o.id)}),[o.id]);const n=e=>(0,g.Ih)({name:t,field:e,defaultAttributes:h,attributes:o}),i=d.iv`
2
  --titleColor: ${n("titleColor")};
3
  --titleBackground: ${n("titleBackground")};
4
  --borderColor: ${n("borderColor")};
5
  --contentBackground: ${n("contentBackground")};
6
- `,m=(0,u.useBlockProps)({id:o.id,className:s()({[`is-${o.gap}-gap`]:o.gap}),css:i});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(p,{attributes:o,setAttributes:l,getValue:n}),(0,d.tZ)("div",m,(0,d.tZ)(u.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:r?u.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=u.useBlockProps.save({id:t.id,className:s()({[`is-${t.gap}-gap`]:t.gap})});return(0,c.createElement)("div",o,(0,c.createElement)(u.InnerBlocks.Content,null))}})},7767:function(e,t,o){o(8398),o(1125)},1125:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion-item","title":"Accordion Item","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs.","keywords":["accordions","collapse","faq"],"parent":["themeisle-blocks/accordion"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"initialOpen":{"type":"boolean","default":false}},"supports":{"reusable":false}}'),n=o(340),c=o(9307),i=o(6015),s=o(3904),d=o(2175),u=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs.","otter-blocks"),icon:n.Se,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!0);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",(0,d.useBlockProps)(),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__title",onClick:e=>{"string"==typeof e.target.className&&e.target.className.includes("block-editor-rich-text__editable")?r(!0):r(!a)}},(0,c.createElement)(d.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||r(!0),o({title:e})},tagName:"span"}),(0,c.createElement)(u.Icon,{icon:a?i.Z:s.Z,size:24})),a&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=d.useBlockProps.save({open:!!t.initialOpen});return(0,c.createElement)("details",o,(0,c.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,c.createElement)(d.RichText.Content,{tagName:"div",value:t.title})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks.Content,null)))}})},9658:function(e,t,o){var l=o(9307),a=o(5736),r=o(4981),n=o(2175),c=o(5609),i=o(3377),s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/add-to-cart-button","title":"Add to Cart Button","category":"themeisle-blocks","description":"Display an Add to Cart button for your WooCommerce products.","keywords":["woocommerce","add to cart","products"],"textdomain":"otter-blocks","attributes":{"product":{"type":"number"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"primary","label":"Primary"},{"name":"secondary","label":"Secondary"}]}'),d=o(8423),u=o.n(d),m=o(4779);const{name:b}=s;Boolean(window.themeisleGutenberg.hasNeveSupport.isBoosterActive)&&Boolean(window.themeisleGutenberg.hasWooCommerce)?(0,r.registerBlockType)(b,{...s,title:(0,a.__)("Add to Cart Button","otter-blocks"),description:(0,a.__)("Display an Add to Cart button for your WooCommerce products.","otter-blocks"),icon:i.Z,keywords:["woocommerce","add to cart","products"],styles:[{name:"default",label:(0,a.__)("Default","otter-blocks"),isDefault:!0},{name:"primary",label:(0,a.__)("Primary","otter-blocks")},{name:"secondary",label:(0,a.__)("Secondary","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o}=e;const r=(0,n.useBlockProps)();return(0,l.createElement)("div",r,t.product?(0,l.createElement)(c.Disabled,null,(0,l.createElement)(u(),{block:"themeisle-blocks/add-to-cart-button",attributes:{...t}})):(0,l.createElement)(c.Placeholder,{icon:i.Z,label:(0,a.__)("Add to Cart Button","otter-blocks"),instructions:(0,a.__)("Select a WooCommerce product for the Add to Cart button.","otter-blocks")},(0,l.createElement)(m.Z,{label:(0,a.__)("Select Product","otter-blocks"),hideLabelFromVision:!0,value:t.product,onChange:e=>o({product:Number(e)})})))},save:()=>null}):(0,r.registerBlockType)(b,{...s,title:(0,a.__)("Add to Cart Button","otter-blocks"),description:(0,a.__)("Display an Add to Cart button for your WooCommerce products.","otter-blocks"),icon:i.Z,keywords:["woocommerce","add to cart","products"],supports:{inserter:!1},edit:()=>(0,l.createElement)("div",(0,n.useBlockProps)(),(0,l.createElement)(c.Placeholder,null,(0,a.__)("You need to have Neve Pro & WooCommerce installed to edit Add to Cart Button block.","otter-blocks"))),save:()=>null})},4443:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-heading","title":"Advanced Heading","category":"themeisle-blocks","description":"Advanced Heading gives a spin to editor\'s Heading block with much needed customization options.","keywords":["heading","title","advanced heading"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string","source":"html","selector":"h1,h2,h3,h4,h5,h6,div,p,span","default":""},"tag":{"default":"h2","type":"string"},"align":{"type":"string"},"alignTablet":{"type":"string"},"alignMobile":{"type":"string"},"headingColor":{"type":"string","default":"#000000"},"highlightColor":{"type":"string"},"highlightBackground":{"type":"string"},"fontSize":{"type":"number"},"fontSizeTablet":{"type":"number"},"fontSizeMobile":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"fontStyle":{"type":"string"},"textTransform":{"type":"string"},"lineHeight":{"type":"number"},"letterSpacing":{"type":"number"},"textShadow":{"type":"boolean","default":false},"textShadowColor":{"type":"string","default":"#000000"},"textShadowColorOpacity":{"type":"number","default":50},"textShadowBlur":{"type":"number","default":5},"textShadowHorizontal":{"type":"number","default":0},"textShadowVertical":{"type":"number","default":0},"paddingType":{"type":"string","default":"linked"},"paddingTypeTablet":{"type":"string","default":"linked"},"paddingTypeMobile":{"type":"string","default":"linked"},"padding":{"type":"number","default":0},"paddingTablet":{"type":"number"},"paddingMobile":{"type":"number"},"paddingTop":{"type":"number","default":0},"paddingTopTablet":{"type":"number"},"paddingTopMobile":{"type":"number"},"paddingRight":{"type":"number","default":0},"paddingRightTablet":{"type":"number"},"paddingRightMobile":{"type":"number"},"paddingBottom":{"type":"number","default":0},"paddingBottomTablet":{"type":"number"},"paddingBottomMobile":{"type":"number"},"paddingLeft":{"type":"number","default":0},"paddingLeftTablet":{"type":"number"},"paddingLeftMobile":{"type":"number"},"marginType":{"type":"string","default":"unlinked"},"marginTypeTablet":{"type":"string","default":"unlinked"},"marginTypeMobile":{"type":"string","default":"unlinked"},"margin":{"type":"number","default":0},"marginTablet":{"type":"number"},"marginMobile":{"type":"number"},"marginTop":{"type":"number","default":0},"marginTopTablet":{"type":"number"},"marginTopMobile":{"type":"number"},"marginBottom":{"type":"number","default":25},"marginBottomTablet":{"type":"number"},"marginBottomMobile":{"type":"number"}},"editorStyle":"otter-advanced-heading-editor","style":"otter-advanced-heading-style"}'),n=o(9307),c=o(6713),i=window.wp.richText,s=o(2175);const d="themeisle-blocks/highlight";(0,i.registerFormatType)(d,{name:d,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const r=()=>a((0,i.toggleFormat)(o,{type:d}));return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.RichTextShortcut,{type:"primary",character:"h",onUse:r}),(0,n.createElement)(s.RichTextToolbarButton,{icon:c.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var u=o(340),m=o(4184),b=o.n(m),p=o(80),g=o.n(p),h=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:e=>{let t,{attributes:o,className:l}=e;o.textShadow&&(t={textShadow:`${o.textShadowHorizontal}px ${o.textShadowVertical}px ${o.textShadowBlur}px ${g()(o.textShadowColor?o.textShadowColor:"#000000",o.textShadowColorOpacity)}`});const a={color:o.headingColor,fontFamily:o.fontFamily,fontWeight:"regular"===o.fontVariant?"normal":o.fontVariant,fontStyle:o.fontStyle,textTransform:o.textTransform,lineHeight:o.lineHeight&&`${o.lineHeight}px`,letterSpacing:o.letterSpacing&&`${o.letterSpacing}px`,...t};return(0,n.createElement)(s.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:b()(o.id,l),style:a})}}],k={from:[{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("core/paragraph",{content:t})}}]},v=o(7462),y=o(5988),_=o(2819),f=o(4333),w=o(9818),C=o(5225),E=o(5609),x=o(9977),T=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},r=e=>{switch(e){case"h1":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},c=e=>{o({tag:e})};return(0,n.createElement)(s.BlockControls,null,(0,n.createElement)(E.DropdownMenu,{icon:r(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:r("h1"),onClick:()=>c("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:r("h2"),onClick:()=>c("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:r("h3"),onClick:()=>c("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:r("h4"),onClick:()=>c("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:r("h5"),onClick:()=>c("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:r("h6"),onClick:()=>c("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:r("div"),onClick:()=>c("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:r("p"),onClick:()=>c("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:r("span"),onClick:()=>c("span")}]}),(0,n.createElement)(E.ToolbarGroup,null,(0,n.createElement)(E.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,n.createElement)(E.Button,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:o,"aria-haspopup":"true","aria-expanded":t,label:(0,l.__)("Typography Settings","otter-blocks"),showTooltip:!0},(0,n.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100}))})))},S=o(2136),M=o(6993),B=o(2372),z=o(1661),P=e=>{let{values:t,setAttributes:o}=e;return(0,n.createElement)("div",{className:"o-clear-button"},(0,n.createElement)(E.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,_.isArray)(t)?t:[t]).map((e=>{if((0,_.isString)(e))return e;if((0,_.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(_.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},V=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[r,c]=(0,n.useState)("style"),i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},d={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},u={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},m=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingTop;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile}else if("right"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingRight;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingBottom;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile}else if("left"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingLeft;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile}},p={top:"marginTop",bottom:"marginBottom"},g={top:"marginTopTablet",bottom:"marginBottomTablet"},h={top:"marginTopMobile",bottom:"marginBottomMobile"},k=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginTop;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginBottom;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile}};return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(E.PanelBody,{className:"o-heading-header-panel"},(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"style"===r}),onClick:()=>c("style")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"advanced"===r}),onClick:()=>c("advanced")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,n.createElement)(M.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,n.createElement)(E.RangeControl,{value:(()=>{switch(a){case"Desktop":return t.fontSize;case"Tablet":return t.fontSizeTablet;case"Mobile":return t.fontSizeMobile;default:return}})()||"",onChange:e=>{"Desktop"===a?o({fontSize:e}):"Tablet"===a?o({fontSizeTablet:e}):"Mobile"===a&&o({fontSizeMobile:e})},min:1,max:500,allowReset:!0})),(0,n.createElement)(M.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,n.createElement)(s.AlignmentToolbar,{value:(()=>{switch(a){case"Desktop":return t.align;case"Tablet":return t.alignTablet;case"Mobile":return t.alignMobile;default:return}})(),onChange:e=>{"Desktop"===a?o({align:e}):"Tablet"===a?o({alignTablet:e}):"Mobile"===a&&o({alignMobile:e})},isCollapsed:!1}))),(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,n.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,n.createElement)(P,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3,allowReset:!0}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100,allowReset:!0}),(0,n.createElement)(E.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,n.createElement)(S.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,n.createElement)(M.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,n.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.paddingType;case"Tablet":return t.paddingTypeTablet;case"Mobile":return t.paddingTypeMobile;default:return}})(),min:0,max:500,changeType:e=>{"Desktop"===a?o({paddingType:e}):"Tablet"===a?o({paddingTypeTablet:e}):"Mobile"===a&&o({paddingTypeMobile:e})},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.paddingType?o({padding:l}):o({[i[e]]:l});break;case"Tablet":"linked"===t.paddingTypeTablet?o({paddingTablet:l}):o({[d[e]]:l});break;case"Mobile":"linked"===t.paddingTypeMobile?o({paddingMobile:l}):o({[u[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:m("top")},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:m("right")},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:m("bottom")},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:m("left")}]})),(0,n.createElement)(P,{values:[{padding:"Desktop"===a&&"linked"===t.paddingType},{paddingTablet:"Tablet"===a&&"linked"===t.paddingType},{paddingMobile:"Mobile"===a&&"linked"===t.paddingType},{paddingRight:"Desktop"===a&&"linked"!==t.paddingType},{paddingRightTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingRightMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingTop:"Desktop"===a&&"linked"!==t.paddingType},{paddingTopTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingTopMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingBottom:"Desktop"===a&&"linked"!==t.paddingType},{paddingBottomTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingBottomMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingLeft:"Desktop"===a&&"linked"!==t.paddingType},{paddingLeftTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingLeftMobile:"Mobile"===a&&"linked"!==t.paddingType}],setAttributes:o}),(0,n.createElement)(M.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,n.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.marginType;case"Tablet":return t.marginTypeTablet;case"Mobile":return t.marginTypeMobile;default:return}})(),min:-500,max:500,changeType:e=>{switch(a){case"Desktop":o({marginType:e});break;case"Tablet":o({marginTypeTablet:e});break;case"Mobile":o({marginTypeMobile:e})}},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.marginType?o({margin:l}):o({[p[e]]:l});break;case"Tablet":"linked"===t.marginTypeTablet?o({marginTablet:l}):o({[g[e]]:l});break;case"Mobile":"linked"===t.marginTypeMobile?o({marginMobile:l}):o({[h[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:k("top")},{label:(0,l.__)("Right","otter-blocks"),disabled:!0},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:k("bottom")},{label:(0,l.__)("Left","otter-blocks"),disabled:!0}]})),(0,n.createElement)(P,{values:[{margin:"Desktop"===a&&"linked"===t.marginType},{marginTablet:"Tablet"===a&&"linked"===t.marginType},{marginMobile:"Mobile"===a&&"linked"===t.marginType},{marginTop:"Desktop"===a&&"linked"!==t.marginType},{marginTopTablet:"Tablet"===a&&"linked"!==t.marginType},{marginTopMobile:"Mobile"===a&&"linked"!==t.marginType},{marginBottom:"Desktop"===a&&"linked"!==t.marginType},{marginBottomTablet:"Tablet"===a&&"linked"!==t.marginType},{marginBottomMobile:"Mobile"===a&&"linked"!==t.marginType}],setAttributes:o})))),(0,n.createElement)(z.Z,{value:t.id,onChange:e=>o({id:e})}))};const{attributes:R}=r;const{name:N}=r;(0,a.registerBlockType)(N,{...r,title:(0,l.__)("Advanced Heading","otter-blocks"),description:(0,l.__)("Advanced Heading gives a spin to editor's Heading block with much needed customization options.","otter-blocks"),icon:u.cZ,keywords:["heading","title","advanced heading"],deprecated:h,transforms:k,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,mergeBlocks:c,insertBlocksAfter:i,onReplace:d}=e;const{isViewportAvailable:u,isPreviewDesktop:m,isPreviewTablet:b,isPreviewMobile:p}=(0,w.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),h=(0,f.useViewportMatch)("large",">="),k=(0,f.useViewportMatch)("large","<="),E=(0,f.useViewportMatch)("small",">="),x=(0,f.useViewportMatch)("small","<=");(0,n.useEffect)((()=>{const e=(0,C.WX)(r,R);return()=>e(t.id)}),[t.id]);let S,M,B,z=h&&!k&&E&&!x,P=!h&&!k&&E&&!x,N=!(h||k||E||x);u&&!N&&(z=m,P=b,N=p),z&&(S={fontSize:t.fontSize?`${t.fontSize}px`:void 0},M={textAlign:t.align,paddingTop:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingTop}px`,paddingRight:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingRight}px`,paddingBottom:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingBottom}px`,paddingLeft:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingLeft}px`,marginTop:"linked"===t.marginType?`${t.margin}px`:`${t.marginTop}px`,marginBottom:"linked"===t.marginType?`${t.margin}px`:`${t.marginBottom}px`}),P&&(S={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},M={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingTopTablet}px`,paddingRight:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingRightTablet}px`,paddingBottom:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingBottomTablet}px`,paddingLeft:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingLeftTablet}px`,marginTop:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginTopTablet}px`,marginBottom:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginBottomTablet}px`}),N&&(S={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},M={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingTopMobile}px`,paddingRight:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingRightMobile}px`,paddingBottom:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingBottomMobile}px`,paddingLeft:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingLeftMobile}px`,marginTop:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginTopMobile}px`,marginBottom:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginBottomMobile}px`}),t.textShadow&&(B={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${g()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const L=(0,_.omitBy)({color:t.headingColor,...S,fontFamily:t.fontFamily||void 0,fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle||void 0,textTransform:t.textTransform||void 0,lineHeight:(3<t.lineHeight?t.lineHeight+"px":t.lineHeight)||void 0,letterSpacing:t.letterSpacing&&`${t.letterSpacing}px`,...M,...B},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),H=(0,s.useBlockProps)({id:t.id,style:L});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("style",null,`#${t.id} mark, #${t.id} .highlight {\n\t\t\t\t\t\tcolor: ${t.highlightColor};\n\t\t\t\t\t\tbackground: ${t.highlightBackground};\n\t\t\t\t\t}`),t.fontFamily&&(0,n.createElement)(y.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,n.createElement)(T,{attributes:t,setAttributes:o}),(0,n.createElement)(V,{attributes:t,setAttributes:o}),(0,n.createElement)(s.RichText,(0,v.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","highlight"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation"],onMerge:c,onSplit:i?function(e,t){o({content:e});for(var l=arguments.length,r=new Array(l>2?l-2:0),n=2;n<l;n++)r[n-2]=arguments[n];i([...r,(0,a.createBlock)("core/paragraph",{content:t})])}:void 0,onRemove:()=>d([]),onChange:e=>{o({content:e})}},H)))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,className:t.id});return(0,n.createElement)(s.RichText.Content,(0,v.Z)({tagName:t.tag,value:t.content},o))}})},7400:function(e,t,o){var l=o(9307),a=o(5736),r=o(4981),n=o(2175),c=o(5609),i=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/business-hours","title":"Business Hours","category":"themeisle-blocks","description":"Display your business schedule on your website.","keywords":["business","schedule","time"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string"},"titleAlignment":{"type":"string"},"titleFontSize":{"type":"number"},"titleColor":{"type":"string"},"itemsFontSize":{"type":"number"},"backgroundColor":{"type":"string"},"gap":{"type":"number"},"borderWidth":{"type":"number"},"borderColor":{"type":"string"},"borderRadius":{"type":"number"}},"supports":{"align":["wide","full"]},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"black-white","label":"Black & White"}],"editorStyle":"otter-business-hours-editor","style":"otter-business-hours-style"}'),s=o(6779),d=o(917),u=o(5225),m=e=>{let{attributes:t,setAttributes:o}=e;const a=n.AlignmentControl||n.AlignmentToolbar;return(0,l.createElement)(n.BlockControls,null,(0,l.createElement)(a,{value:t.titleAlignment,onChange:e=>o({titleAlignment:e})}))},b=e=>{let{attributes:t,setAttributes:o}=e;return(0,l.createElement)(n.InspectorControls,null,(0,l.createElement)(c.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,l.createElement)(c.RangeControl,{label:(0,a.__)("Gap","otter-blocks"),value:t.gap,onChange:e=>o({gap:Number(e)}),min:0,max:60}),(0,l.createElement)(c.RangeControl,{label:(0,a.__)("Title Font Size","otter-blocks"),value:t.titleFontSize,onChange:e=>o({titleFontSize:Number(e)}),min:0,max:60}),(0,l.createElement)(c.RangeControl,{label:(0,a.__)("Items Font Size","otter-blocks"),value:t.itemsFontSize,onChange:e=>o({itemsFontSize:Number(e)}),min:0,max:60}),(0,l.createElement)(c.RangeControl,{label:(0,a.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:Number(e)}),min:0,max:60}),(0,l.createElement)(c.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:t.borderWidth,onChange:e=>o({borderWidth:Number(e)}),min:0,max:120})),(0,l.createElement)(n.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:t.titleColor,onChange:e=>o({titleColor:e}),label:(0,a.__)("Title","otter-blocks")},{value:t.backgroundColor,onChange:e=>o({backgroundColor:e}),label:(0,a.__)("Background","otter-blocks")},{value:t.borderColor,onChange:e=>o({borderColor:e}),label:(0,a.__)("Border","otter-blocks")}]},(0,l.createElement)(n.ContrastChecker,{textColor:t.titleColor,backgroundColor:t.backgroundColor})))};const{attributes:p}=i;var g=e=>{let{attributes:t}=e;const o=n.useBlockProps.save({id:t.id});return(0,l.createElement)("div",o,(0,l.createElement)("div",{className:"otter-business-hour__container"},(0,l.createElement)("div",{className:"otter-business-hour__title"},(0,l.createElement)(n.RichText.Content,{value:t.title,tagName:"span"})),(0,l.createElement)("div",{className:"otter-business-hour__content"},(0,l.createElement)(n.InnerBlocks.Content,null))))};const{name:h}=i;Boolean(window.themeisleGutenberg.hasNeveSupport.isBoosterActive)?(0,r.registerBlockType)(h,{...i,title:(0,a.__)("Business Hours","otter-blocks"),description:(0,a.__)("Display your business schedule on your website.","otter-blocks"),icon:s.Z,keywords:["business","schedule","time"],styles:[{name:"default",label:(0,a.__)("default","otter-blocks"),isDefault:!0},{name:"black-white",label:(0,a.__)("Black & White","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,isSelected:r,clientId:c}=e;(0,l.useEffect)((()=>{const e=(0,u.WX)(c,p);return()=>e(t.id)}),[t.id]);const i={container:{backgroundColor:t.backgroundColor,borderRadius:t.borderRadius+"px",border:t.borderWidth&&`${t.borderWidth}px solid ${t.borderColor||"#000000"}`},title:{textAlign:t.titleAlignment,fontSize:t.titleFontSize+"px",color:t.titleColor}},s=d.iv`
7
- .otter-business-hour__container .otter-business-hour__content .wp-block-themeisle-blocks-business-hours-item {
8
- font-size: ${t.itemsFontSize}px;
9
- padding-top: ${t.gap}px;
10
- padding-bottom: ${t.gap}px;
11
- }
12
-
13
- .otter-business-hour__container .otter-business-hour__content .block-editor-block-list__block:last-child .wp-block-themeisle-blocks-business-hours-item {
14
- border-radius: 0 0 ${t.borderRadius||0}px ${t.borderRadius||0}px;
15
- }
16
- `,g=(0,n.useBlockProps)({id:t.id,style:i.container,css:s});return(0,d.tZ)(l.Fragment,null,(0,d.tZ)(m,{attributes:t,setAttributes:o}),(0,d.tZ)(b,{attributes:t,setAttributes:o}),(0,d.tZ)("div",g,(0,d.tZ)("div",{className:"otter-business-hour__container"},(0,d.tZ)("div",{style:i.title,className:"otter-business-hour__title"},(0,d.tZ)(n.RichText,{placeholder:(0,a.__)("Opening Hours","otter-blocks"),value:t.title,onChange:e=>{o({title:e})},tagName:"span"})),(0,d.tZ)("div",{className:"otter-business-hour__content"},(0,d.tZ)(n.InnerBlocks,{allowedBlocks:["core/separator","themeisle-blocks/business-hours-item"],template:[["themeisle-blocks/business-hours-item",{label:(0,a.__)("Monday","otter-blocks"),time:(0,a.__)("09:00 AM - 05:00 PM","otter-blocks")}],["themeisle-blocks/business-hours-item",{label:(0,a.__)("Tuesday","otter-blocks"),time:(0,a.__)("09:00 AM - 05:00 PM","otter-blocks")}],["themeisle-blocks/business-hours-item",{label:(0,a.__)("Wednesday","otter-blocks"),time:(0,a.__)("09:00 AM - 05:00 PM","otter-blocks")}],["themeisle-blocks/business-hours-item",{label:(0,a.__)("Thursday","otter-blocks"),time:(0,a.__)("09:00 AM - 05:00 PM","otter-blocks")}],["themeisle-blocks/business-hours-item",{label:(0,a.__)("Friday","otter-blocks"),time:(0,a.__)("09:00 AM - 05:00 PM","otter-blocks")}],["themeisle-blocks/business-hours-item",{label:(0,a.__)("Saturday","otter-blocks"),time:(0,a.__)("Closed","otter-blocks"),timeColor:"#F8002A"}],["themeisle-blocks/business-hours-item",{label:(0,a.__)("Sunday","otter-blocks"),time:(0,a.__)("Closed","otter-blocks"),timeColor:"#F8002A"}]],renderAppender:r?n.InnerBlocks.ButtonBlockAppender:""})))))},save:g}):(0,r.registerBlockType)(h,{...i,title:(0,a.__)("Business Hours","otter-blocks"),description:(0,a.__)("Display your business schedule on your website.","otter-blocks"),icon:s.Z,keywords:["business","schedule","time"],supports:{inserter:!1},edit:()=>(0,l.createElement)("div",(0,n.useBlockProps)(),(0,l.createElement)(c.Placeholder,null,(0,a.__)("You need to have Neve Pro installed to edit Business Hours block.","otter-blocks"))),save:g})},4127:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/business-hours-item","title":"Business Hours Item","category":"themeisle-blocks","description":"Item used by Business Hours block to display the time.","keywords":["business","schedule","time"],"parent":["themeisle-blocks/business-hours"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"time":{"type":"string"},"backgroundColor":{"type":"string"},"labelColor":{"type":"string"},"timeColor":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(i.PanelColorSettings,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:t.backgroundColor,onChange:e=>o({backgroundColor:e}),label:(0,l.__)("Background","otter-blocks")},{value:t.labelColor,onChange:e=>o({labelColor:e}),label:(0,l.__)("Label","otter-blocks")},{value:t.timeColor,onChange:e=>o({timeColor:e}),label:(0,l.__)("Time","otter-blocks")}]},(0,c.createElement)(i.ContrastChecker,{textColor:t.labelColor,backgroundColor:t.backgroundColor})))};const{attributes:u}=r;const{name:m}=r;(0,a.registerBlockType)(m,{...r,title:(0,l.__)("Business Hours Item","otter-blocks"),description:(0,l.__)("Item used by Business Hours block to display the time.","otter-blocks"),icon:n.aD,parent:["themeisle-blocks/business-hours"],category:"themeisle-blocks",keywords:["business","time","schedule"],supports:{align:["wide","full"]},edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const r={backgroundColor:t.backgroundColor},n=(0,i.useBlockProps)({id:t.id,style:r});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d,{attributes:t,setAttributes:o}),(0,c.createElement)("div",n,(0,c.createElement)("div",{className:"otter-business-hour-item__label",style:{color:t.labelColor}},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Day","otter-blocks"),value:t.label,onChange:e=>{o({label:e})},tagName:"span"})),(0,c.createElement)("div",{className:"otter-business-hour-item__time",style:{color:t.timeColor}},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Opening Hours","otter-blocks"),value:t.time,onChange:e=>{o({time:e})},tagName:"span"}))))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)("div",{className:"otter-business-hour-item__label"},(0,c.createElement)(i.RichText.Content,{value:t.label,tagName:"span"})),(0,c.createElement)("div",{className:"otter-business-hour-item__time"},(0,c.createElement)(i.RichText.Content,{value:t.time,tagName:"span"})))}})},9078:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button","title":"Button","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group.","keywords":["button","buttons","button group"],"parent":["themeisle-blocks/button-group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"text":{"type":"string","source":"html","selector":"span"},"link":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"newTab":{"type":"boolean","default":false},"color":{"type":"string"},"background":{"type":"string"},"backgroundGradient":{"type":"string"},"border":{"type":"string"},"hoverColor":{"type":"string"},"hoverBackground":{"type":"string"},"hoverBackgroundGradient":{"type":"string"},"hoverBorder":{"type":"string"},"borderSize":{"type":"number"},"borderRadius":{"type":"number"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":1},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"hoverBoxShadowColor":{"type":"string"},"hoverBoxShadowColorOpacity":{"type":"number","default":50},"hoverBoxShadowBlur":{"type":"number","default":5},"hoverBoxShadowSpread":{"type":"number","default":1},"hoverBoxShadowHorizontal":{"type":"number","default":0},"hoverBoxShadowVertical":{"type":"number","default":0},"iconType":{"type":"string","default":"none"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string"},"icon":{"type":"string"}},"supports":{"reusable":false},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}]}'),n=o(340),c=o(9307),i=o(917),s=o(4184),d=o.n(s),u=o(80),m=o.n(u),b=o(2175),p=o(9818),g=o(8504),h=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(g.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},k=o(5609),v=o(2136);const y=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var _=e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!1),n=()=>(0,c.createElement)(k.ButtonGroup,null,(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks")));return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:e=>o({hoverBackground:e}),onGradientChange:e=>o({hoverBackgroundGradient:e})})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(n,null),a?(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:10}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100}),(0,c.createElement)(v.Z,{label:(0,l.__)("Box Shadow","otter-blocks"),attributes:t,setAttributes:o,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:()=>o({boxShadow:!0})},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.SelectControl,{label:(0,l.__)("Icon Position","otter-blocks"),value:t.iconType,options:[{label:(0,l.__)("No Icon","otter-blocks"),value:"none"},{label:(0,l.__)("Left","otter-blocks"),value:"left"},{label:(0,l.__)("Right","otter-blocks"),value:"right"},{label:(0,l.__)("Icon Only","otter-blocks"),value:"only"}],onChange:e=>o({iconType:e})}),"none"!==t.iconType&&(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(k.Placeholder,null,(0,c.createElement)(k.Spinner,null))},(0,c.createElement)(y,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))))},f=o(48),w=o(5225);const{attributes:C}=r;const{name:E}=r;(0,a.registerBlockType)(E,{...r,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group.","otter-blocks"),icon:n.Se,keywords:["button","buttons","button group"],styles:[{name:"fill",label:(0,l.__)("Fill","otter-blocks"),isDefault:!0},{name:"outline",label:(0,l.__)("Outline","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:r}=e;const{hasParent:n,parentAttributes:s}=(0,p.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(r));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,w.WX)(r,C);return()=>e(t.id)}),[]);let u={},g={};t.boxShadow&&(u={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${m()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),n&&(g={paddingTop:`${s.paddingTopBottom}px`,paddingBottom:`${s.paddingTopBottom}px`,paddingLeft:`${s.paddingLeftRight}px`,paddingRight:`${s.paddingLeftRight}px`,fontSize:s.fontSize&&`${s.fontSize}px`,fontFamily:s.fontFamily,fontWeight:s.fontVariant,fontStyle:s.fontStyle,textTransform:s.textTransform,lineHeight:s.lineHeight&&`${s.lineHeight}px`});const k={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...u,...g},v=i.iv`
17
  &:hover {
18
  color: ${t.hoverColor} !important;
19
  background: ${t.hoverBackground||t.hoverBackgroundGradient} !important;
20
  border-color: ${t.hoverBorder} !important;
21
- ${t.boxShadow&&`box-shadow: ${t.hoverBoxShadowHorizontal}px ${t.hoverBoxShadowVertical}px ${t.hoverBoxShadowBlur}px ${t.hoverBoxShadowSpread}px ${m()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)} !important;`}
22
  }
23
 
24
  &:hover svg {
25
  fill: ${t.hoverColor} !important;
26
  }
27
- `,y={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},E=f.ZP.icons[t.icon],x=(0,b.useBlockProps)({id:t.id,className:"wp-block-button",style:{}});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o,isSelected:a}),(0,i.tZ)(_,{attributes:t,setAttributes:o}),(0,i.tZ)("div",x,"none"!==t.iconType?(0,i.tZ)("div",{className:"wp-block-button__link",style:k,css:v},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:d()({"margin-right":"left"===t.iconType}),style:y}):(0,i.tZ)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:"margin-left",style:y}):(0,i.tZ)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:k,css:v})))},save:e=>{let{attributes:t}=e;const o=f.ZP.icons[t.icon],l=b.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,c.createElement)("div",l,(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:d()({"margin-right":"left"===t.iconType})}):(0,c.createElement)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,c.createElement)(b.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:"margin-left"}):(0,c.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))}})},9521:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button-group","title":"Button Group","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group.","keywords":["button","buttons","button group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"spacing":{"type":"number","default":20},"paddingTopBottom":{"type":"number"},"paddingLeftRight":{"type":"number"},"collapse":{"type":"string","default":"collapse-none"},"fontSize":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"textTransform":{"type":"string"},"fontStyle":{"type":"string"},"lineHeight":{"type":"number"}},"editorStyle":"otter-button-group-editor","style":"otter-button-group-style"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(2819),u=o(2175);const m={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},b=[{attributes:m,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(u.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:m,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(u.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:{...m,fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},migrate:(e,t)=>{let o,l,r;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,d.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,d.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),r=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,d.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,d.omit)(e,["buttons","data"]),align:o,...l},[...r,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,c.createElement)("div",{id:t.id,className:s()(o,l,"wp-block-button")},(0,d.times)(t.buttons,(e=>(e=>(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`,"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(u.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var p=b,g=o(5988),h=o(917),k=o(4333),v=o(9818),y=o(1150),_=o(8065),f=o(199),w=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(u.BlockControls,null,(0,c.createElement)(u.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e}),alignmentControls:[{icon:y.Z,title:(0,l.__)("Align left","otter-blocks"),align:"left"},{icon:_.Z,title:(0,l.__)("Align center","otter-blocks"),align:"center"},{icon:f.Z,title:(0,l.__)("Align right","otter-blocks"),align:"right"}]}))},C=o(5609),E=o(9977),x=o(2372),T=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,c.createElement)(x.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||o({paddingTopBottom:t}),"right"!==e&&"left"!==e||o({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:t.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:t.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:t.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:t.paddingLeftRight}]}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:t.spacing,onChange:e=>o({spacing:e}),min:0,max:50}),(0,c.createElement)(C.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:t.collapse,options:[{label:(0,l.__)("None","otter-blocks"),value:"collapse-none"},{label:(0,l.__)("Desktop","otter-blocks"),value:"collapse-desktop"},{label:(0,l.__)("Tablet","otter-blocks"),value:"collapse-tablet"},{label:(0,l.__)("Mobile","otter-blocks"),value:"collapse-mobile"}],onChange:e=>o({collapse:e})})),(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:t.fontSize,onChange:e=>o({fontSize:e}),min:0,max:50}),(0,c.createElement)(E.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,max:200})))},S=o(5225);const{attributes:M}=r;const{name:B}=r;(0,a.registerBlockType)(B,{...r,title:(0,l.__)("Button Group","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group.","otter-blocks"),icon:n.Se,keywords:["button","buttons","button group"],deprecated:p,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:r,isPreviewTablet:n,isPreviewMobile:i}=(0,v.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=(0,k.useViewportMatch)("large",">="),m=(0,k.useViewportMatch)("large","<="),b=(0,k.useViewportMatch)("small",">="),p=(0,k.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,S.WX)(l,M);return()=>e(t.id)}),[]);let y=d&&!m&&b&&!p,_=!d&&!m&&b&&!p,f=!(d||m||b||p);a&&!f&&(y=r,_=n,f=i);const C=(0,u.useBlockProps)({id:t.id,className:s()("wp-block-buttons",{[`align-${t.align}`]:t.align,collapse:"collapse-desktop"===t.collapse&&(y||_||f)||"collapse-tablet"===t.collapse&&(_||f)||"collapse-mobile"===t.collapse&&f}),css:h.iv`
28
  .block-editor-block-list__layout {
29
  gap: ${t.spacing}px;
30
  }
31
- `});return(0,h.tZ)(c.Fragment,null,t.fontFamily&&(0,h.tZ)(g.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,h.tZ)(w,{attributes:t,setAttributes:o}),(0,h.tZ)(T,{attributes:t,setAttributes:o}),(0,h.tZ)("div",C,(0,h.tZ)(u.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:u.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o="collapse-none"!==t.collapse?t.collapse:"",l=u.useBlockProps.save({id:t.id,className:s()(o,"wp-block-buttons",{[`align-${t.align}`]:t.align})});return(0,c.createElement)("div",l,(0,c.createElement)(u.InnerBlocks.Content,null))}})},3312:function(e,t,o){o(9521),o(9078)},469:function(e,t,o){var l=o(269),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/circle-counter","title":"Circle Counter","category":"themeisle-blocks","description":"Show your progress with a beautiful Circle Counter block.","keywords":["progress","circle","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"height":{"type":"number","default":100},"fontSizeTitle":{"type":"number"},"fontSizePercent":{"type":"number"},"strokeWidth":{"type":"number","default":10},"backgroundColor":{"type":"string"},"progressColor":{"type":"string"},"titleColor":{"type":"string"}},"editorStyle":"otter-circle-counter-editor","style":"otter-circle-counter-style","script":"otter-circle-counter"}'),c=o(9307),i=o(917),s=o(2819),d=o(5609),u=o(2175),m=e=>{let{attributes:t,setAttributes:o,onHeightChange:l}=e;return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Percentage","otter-blocks"),help:(0,a.__)("The value of the counter.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Duration","otter-blocks"),help:(0,a.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,a.__)("Default","otter-blocks"),value:"default"},{label:(0,a.__)("Hide","otter-blocks"),value:"hide"},{label:(0,a.__)("Bottom","otter-blocks"),value:"bottom"}],onChange:e=>{o({titleStyle:e})}})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Style","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("The height of the circle counter.","otter-blocks"),value:t.height,onChange:l,min:0,max:240}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Circle Thickness","otter-blocks"),help:(0,a.__)("Change the thickness (stroke width) of the circle.","otter-blocks"),value:t.strokeWidth,onChange:e=>{o({strokeWidth:e})},initialPosition:10,min:0,max:20}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Title","otter-blocks"),help:(0,a.__)("Change the font size of the title.","otter-blocks"),value:t.fontSizeTitle,onChange:e=>{o({fontSizeTitle:e})},initialPosition:37,min:0,max:Math.round(.6*t.height)}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Percent","otter-blocks"),help:(0,a.__)("Change the font size of the inner text.","otter-blocks"),value:t.fontSizePercent,onChange:e=>{o({fontSizePercent:e})},initialPosition:27,min:0,max:Math.round(.27*t.height)}),"hide"!==t.titleStyle&&(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,a.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,a.__)("Progress Color","otter-blocks"),colorValue:t.progressColor,onColorChange:e=>{o({progressColor:e})}}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,a.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))},b=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,r=a/2,n=a/2-t.strokeWidth/2,i=2*Math.PI*n;return 0>n?(0,c.createElement)("div",null):(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar",style:{height:a+"px",width:a+"px"}},(0,c.createElement)("svg",{className:"wp-block-themeisle-blocks-circle-counter-container",width:a,height:a},(0,c.createElement)("circle",{className:"wp-block-themeisle-blocks-circle-counter-bg",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,style:{stroke:t.backgroundColor}}),(0,c.createElement)("circle",{ref:o,className:"wp-block-themeisle-blocks-circle-counter-progress",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,strokeDasharray:i,style:{stroke:t.progressColor}}),(0,c.createElement)("text",{ref:l,className:"wp-block-themeisle-blocks-circle-counter-text",x:"50%",y:"50%",style:{fill:t.progressColor,fontSize:t.fontSizePercent+"px"}},t.percentage,"%")))},p=o(5225);const{attributes:g}=n;const{clamp:h,omit:k}=lodash;var v={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=k(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,r.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:h(e.height/4,0,100),titleStyle:"default"})}}]};const{name:y}=n;(0,r.registerBlockType)(y,{...n,title:(0,a.__)("Circle Counter","otter-blocks"),description:(0,a.__)("Show your progress with a beautiful Circle Counter block.","otter-blocks"),icon:l.Z,keywords:["progress","circle","counter"],transforms:v,edit:e=>{let{clientId:t,attributes:o,setAttributes:l,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,p.WX)(t,g);return()=>e(o.id)}),[o.id]);const h=(0,c.useRef)(null),k=(0,c.useRef)(null),[v,y]=(0,c.useState)({}),_=o.height/2-o.strokeWidth/2,f=2*Math.PI*_;(0,c.useEffect)((()=>{if(!h.current||!h.current||0===o.duration)return;const e=o.percentage/(1e3*o.duration),t=(0,s.range)(0,1e3*o.duration+20,20).map((t=>t*e)).reverse();v&&clearInterval(v),h.current.style.strokeDashoffset=f,k.current.innerText="0%";const l=setInterval((()=>{if(!h.current)return void clearInterval(l);const e=Math.round(t.pop());h.current.style.strokeDashoffset=(100-e)/100*f,k.current.innerHTML=e+"%",0===t.length&&clearInterval(l)}),20);return y(l),()=>{clearInterval(l)}}),[o.duration]),(0,c.useEffect)((()=>{if(h.current&&h.current)return h.current.style.strokeDashoffset=(100-o.percentage)/100*f,k.current.innerHTML=o.percentage+"%",clearInterval(v),()=>{clearInterval(v)}}),[o.percentage,o.height]);const w=e=>{const t=(o.fontSizePercent||27)/o.height,a=(o.fontSizeTitle||37)/o.height;l({height:e,fontSizePercent:Math.round(e*t),fontSizeTitle:Math.round(e*a)})},C=e=>{l({title:e})},E=i.iv`
32
  --fontSizeTitle: ${x=o.fontSizeTitle,x?`${x}px`:x};
33
- `;var x;const T=(0,u.useBlockProps)({id:o.id,css:E});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(m,{attributes:o,setAttributes:l,onHeightChange:w}),(0,i.tZ)("div",T,"default"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(u.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}})),(0,i.tZ)(d.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:r,onResizeStop:(e,t,l,a)=>{w(parseInt(o.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,i.tZ)(b,{attributes:o,progressRef:h,valueRef:k})),"bottom"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(u.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=u.useBlockProps.save({id:t.id,"data-percentage":t.percentage,"data-duration":t.duration,"data-height":t.height,"data-stroke-width":t.strokeWidth,"data-font-size-percent":t.fontSizePercent,"data-background-stroke":t.backgroundColor,"data-progress-stroke":t.progressColor});return(0,c.createElement)("div",o,"default"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))}})},4948:function(e,t,o){var l=o(693),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/countdown","title":"Countdown","category":"themeisle-blocks","description":"Set a countdown for a date.","keywords":["countdown","time","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"date":{"type":"string"},"exclude":{"type":"array"},"backgroundColor":{"type":"string"},"valueColor":{"type":"string"},"labelColor":{"type":"string"},"labelDistance":{"type":"number"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":"number","default":0},"borderRadiusType":{"type":"string","default":"linked"},"borderRadiusTopRight":{"type":"number","default":0},"borderRadiusTopLeft":{"type":"number","default":0},"borderRadiusBottomRight":{"type":"number","default":0},"borderRadiusBottomLeft":{"type":"number","default":0},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":"number"},"valueFontSizeTablet":{"type":"number"},"valueFontSizeMobile":{"type":"number"},"labelFontSize":{"type":"number"},"labelFontSizeTablet":{"type":"number"},"labelFontSizeMobile":{"type":"number"},"hasSeparators":{"type":"boolean"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),c=o(9307),i=o(917),s=o(2175),d=o(4333),u=o(9818),m=window.moment,b=o.n(m),p=o(5225),g=o(5609),h=o(9771),k=o(6993),v=o(2372),y=e=>{var t,o,l,r;let{attributes:n,setAttributes:i}=e;const d=(0,u.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),m=(e,t)=>{var o;i(e?{exclude:null==n||null===(o=n.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=n&&n.exclude?[...null==n?void 0:n.exclude,t]:[t]})},b=e=>{let t;return"top-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopRight),"top-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopLeft),"bottom-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomRight),"bottom-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomLeft),t},p={"top-right":"borderRadiusTopRight","top-left":"borderRadiusTopLeft","bottom-left":"borderRadiusBottomLeft","bottom-right":"borderRadiusBottomRight"},y=(0,h.__experimentalGetSettings)();return(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Time","otter-blocks")},(0,c.createElement)(g.Dropdown,{position:"bottom left",headerTitle:(0,a.__)("Select the date for the deadline","otter-blocks"),renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},n.date?(0,h.format)(y.formats.datetime,n.date):(0,a.__)("Select Date","otter-blocks")))},renderContent:()=>(0,c.createElement)(g.DateTimePicker,{currentDate:n.date,onChange:e=>i({date:e})})})),(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Days","otter-blocks"),checked:!(null!=n&&null!==(t=n.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>m(e,"day")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Hours","otter-blocks"),checked:!(null!=n&&null!==(o=n.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>m(e,"hour")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Minutes","otter-blocks"),checked:!(null!=n&&null!==(l=n.exclude)&&void 0!==l&&l.includes("minute")),onChange:e=>m(e,"minute")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Seconds","otter-blocks"),checked:!(null!=n&&null!==(r=n.exclude)&&void 0!==r&&r.includes("second")),onChange:e=>m(e,"second")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Separators","otter-blocks"),checked:null==n?void 0:n.hasSeparators,onChange:e=>i({hasSeparators:e})}),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Spacing","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.gapMobile:"Tablet"===d?n.gapTablet:n.gap,onChange:e=>{"Desktop"===d&&i({gap:Number(e)}),"Tablet"===d&&i({gapTablet:Number(e)}),"Mobile"===d&&i({gapMobile:Number(e)})},min:0,max:100})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Height","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.heightMobile:"Tablet"===d?n.heightTablet:n.height,onChange:e=>{"Desktop"===d&&i({height:Number(e)}),"Tablet"===d&&i({heightTablet:Number(e)}),"Mobile"===d&&i({heightMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.widthMobile:"Tablet"===d?n.widthTablet:n.width,onChange:e=>{"Desktop"===d&&i({width:Number(e)}),"Tablet"===d&&i({widthTablet:Number(e)}),"Mobile"===d&&i({widthMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Border Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.borderWidthMobile:"Tablet"===d?n.borderWidthTablet:n.borderWidth,onChange:e=>{"Desktop"===d&&i({borderWidth:Number(e)}),"Tablet"===d&&i({borderWidthTablet:Number(e)}),"Mobile"===d&&i({borderWidthMobile:Number(e)})},min:0,max:50})),(0,c.createElement)(k.Z,{label:(0,a.__)("Time Value Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.valueFontSizeMobile:"Tablet"===d?n.valueFontSizeTablet:n.valueFontSize,onChange:e=>{"Desktop"===d&&i({valueFontSize:Number(e)}),"Tablet"===d&&i({valueFontSizeTablet:Number(e)}),"Mobile"===d&&i({valueFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(k.Z,{label:(0,a.__)("Label Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.labelFontSizeMobile:"Tablet"===d?n.labelFontSizeTablet:n.labelFontSize,onChange:e=>{"Desktop"===d&&i({labelFontSize:Number(e)}),"Tablet"===d&&i({labelFontSizeTablet:Number(e)}),"Mobile"===d&&i({labelFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(v.Z,{label:(0,a.__)("Border Radius (%)","otter-blocks"),type:n.borderRadiusType,min:0,max:100,changeType:e=>{i({borderRadiusType:e})},onChange:(e,t)=>{"linked"===n.borderRadiusType?i({borderRadius:t}):i({[p[e]]:t})},options:[{label:(0,a.__)("Top Left","otter-blocks"),type:"top-left",value:b("top-left")},{label:(0,a.__)("Top Right","otter-blocks"),type:"top-right",value:b("top-right")},{label:(0,a.__)("Bottom Right","otter-blocks"),type:"bottom-right",value:b("bottom-right")},{label:(0,a.__)("Bottom Left","otter-blocks"),type:"bottom-left",value:b("bottom-left")}]})),(0,c.createElement)(s.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:n.backgroundColor,onChange:e=>{i({backgroundColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:n.labelColor,onChange:e=>{i({labelColor:e})},label:(0,a.__)("Label","otter-blocks")},{value:n.valueColor,onChange:e=>{i({valueColor:e})},label:(0,a.__)("Value","otter-blocks")},{value:n.borderColor,onChange:e=>{i({borderColor:e})},label:(0,a.__)("Border","otter-blocks")}]},(0,c.createElement)(s.ContrastChecker,{textColor:n.backgroundColor,backgroundColor:n.valueColor})))},_=o(4715),f=o(7462),w=o(4184),C=o.n(w);const E=e=>{let{name:t,value:o,tag:l,styles:a}=e;const r="sep"!==t?{...a.allComponents,...a.mainComponents}:a.allComponents;return(0,c.createElement)("div",{style:r,name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{style:a.value,className:"otter-countdown__value"},o),(0,c.createElement)("div",{style:a.label,className:"otter-countdown__label"},t))};var x=e=>{let{time:t,hasSeparators:o,styles:l}=e;const a=o?(0,_.S3)(t,{name:"sep",value:":",tag:"separator"}):t,r=null==a?void 0:a.map(((e,t)=>(0,c.createElement)(E,(0,f.Z)({},e,{key:t,styles:l}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{style:l.display,className:"otter-countdown__display"},r)):(0,c.createElement)(c.Fragment,null)};const{attributes:T}=n,S=e=>e?`${e}px`:e;const M=e=>{let{name:t,value:o,tag:l}=e;return(0,c.createElement)("div",{name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{className:"otter-countdown__value"},o),(0,c.createElement)("div",{className:"otter-countdown__label"},t))},B=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,_.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,c.createElement)(M,(0,f.Z)({},e,{key:t}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{className:"otter-countdown__display"},a)):(0,c.createElement)(c.Fragment,null)};const{name:z}=n;(0,r.registerBlockType)(z,{...n,title:(0,a.__)("Countdown","otter-blocks"),description:(0,a.__)("Set a countdown for a date.","otter-blocks"),icon:l.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,r]=(0,c.useState)(0);(0,c.useEffect)((()=>{const e=(0,p.WX)(l,T);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,_.EP)();e=1e3*b()(e).unix(),r(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const{isViewportAvailable:n,isPreviewDesktop:m,isPreviewTablet:g,isPreviewMobile:h}=(0,u.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),k=(0,d.useViewportMatch)("large",">="),v=(0,d.useViewportMatch)("large","<="),f=(0,d.useViewportMatch)("small",">="),w=(0,d.useViewportMatch)("small","<=");let C,E=k&&!v&&f&&!w,M=!k&&!v&&f&&!w,B=!(k||v||f||w);n&&!B&&(E=m,M=g,B=h),M?C={value:{fontSize:S(null==t?void 0:t.valueFontSizeTablet)},label:{fontSize:S(null==t?void 0:t.labelFontSizeTablet)},display:{gap:S(t.gapTablet)},allComponents:{height:S(null==t?void 0:t.heightTablet)},mainComponents:{width:S(null==t?void 0:t.widthTablet),borderWidth:S(t.borderWidthTablet)}}:B?C={value:{fontSize:S(t.valueFontSizeMobile)},label:{fontSize:S(t.labelFontSizeMobile)},display:{gap:S(t.gapMobile)},allComponents:{height:S(null==t?void 0:t.heightMobile)},mainComponents:{width:S(null==t?void 0:t.widthMobile),borderWidth:S(t.borderWidthMobile)}}:E&&(C={value:{fontSize:S(t.valueFontSize)},label:{fontSize:S(t.labelFontSize)},display:{gap:S(t.gap)},allComponents:{height:S(t.height)},mainComponents:{width:S(t.width),borderWidth:S(t.borderWidth)}});const z="linked"===t.borderRadiusType?t.borderRadius+"%":`${t.borderRadiusTopLeft}% ${t.borderRadiusTopRight}% ${t.borderRadiusBottomRight}% ${t.borderRadiusBottomLeft}%`,P=i.iv`
34
  --backgroundColor: ${t.backgroundColor};
35
  --borderColor: ${t.borderColor};
36
  --borderRadius: ${z};
@@ -42,52 +32,51 @@
42
  .otter-countdown__display-area .otter-countdown__label {
43
  color: ${t.labelColor};
44
  }
45
- `,V=(0,s.useBlockProps)({id:t.id,css:P});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:t,setAttributes:o}),(0,i.tZ)("div",V,(0,i.tZ)(x,{time:(0,_.Mg)(a,{exclude:null==t?void 0:t.exclude}),styles:C,hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,"data-date":t.date});return(0,c.createElement)("div",o,(0,c.createElement)(B,{time:(0,_.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))}})},9799:function(e,t,o){var l=o(269),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/flip","title":"Flip Card","category":"themeisle-blocks","description":"Make a card with a flip effect.","keywords":["flip card","container","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"isInverted":{"type":"boolean"},"title":{"type":"string"},"description":{"type":"string"},"animType":{"type":"string","default":"flipY"},"width":{"type":"number"},"height":{"type":"number"},"padding":{"type":"number"},"borderWidth":{"type":"string"},"borderColor":{"type":"string"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"frontVerticalAlign":{"type":"string"},"frontHorizontalAlign":{"type":"string"},"backVerticalAlign":{"type":"string"},"frontMedia":{"type":"object"},"frontMediaWidth":{"type":"number"},"frontMediaHeight":{"type":"number"},"frontBackgroundImage":{"type":"object"},"frontBackgroundType":{"type":"string","default":"color"},"frontBackgroundColor":{"type":"string"},"frontBackgroundGradient":{"type":"string"},"frontBackgroundPosition":{"type":"object"},"frontBackgroundRepeat":{"type":"string"},"frontBackgroundAttachment":{"type":"string"},"frontBackgroundSize":{"type":"string"},"backBackgroundImage":{"type":"object"},"backBackgroundType":{"type":"string","default":"color"},"backBackgroundColor":{"type":"string"},"backBackgroundGradient":{"type":"string"},"backBackgroundPosition":{"type":"object"},"backBackgroundRepeat":{"type":"string"},"backBackgroundSize":{"type":"string"},"backBackgroundAttachment":{"type":"string"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"titleFontSize":{"type":"number"},"descriptionFontSize":{"type":"number"},"titleColor":{"type":"string"},"descriptionColor":{"type":"string"}},"editorStyle":"otter-flip-editor","style":"otter-flip-style"}'),c=o(9307),i=o(4184),s=o.n(i),d=o(917),u=o(2175),m=o(5609),b=e=>{let{attributes:t,setAttributes:o,isFliped:l}=e;const r=u.__experimentalBlockAlignmentMatrixControl||u.__experimentalBlockAlignmentMatrixToolbar;return(0,c.createElement)(u.BlockControls,null,(!t.isInverted&&!1===l||t.isInverted&&l)&&(0,c.createElement)(m.Toolbar,null,(0,c.createElement)(r,{label:(0,a.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))},p=o(2819),g=o(2136),h=o(5452),k=e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Width","otter-blocks"),help:(0,a.__)("Width of the container. Make sure that the width match the size of your content.","otter-blocks"),value:o.width,onChange:e=>l({width:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("Height of the container. Make sure that the height match the size of your content.","otter-blocks"),value:o.height,onChange:e=>l({height:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(m.ToggleControl,{label:(0,a.__)("Invert the sides","otter-blocks"),checked:o.isInverted,onChange:e=>l({isInverted:e}),help:(0,a.__)("Use this to display the back side first.","otter-blocks")})),(0,c.createElement)(m.PanelBody,{title:(0,a.__)("Front","otter-blocks"),initialOpen:!1},(0,c.createElement)(m.BaseControl,{label:(0,a.__)("Media Image","otter-blocks"),help:(0,a.__)("Set an image as showcase.","otter-blocks")},null!==(t=o.frontMedia)&&void 0!==t&&t.url?(0,c.createElement)(m.BaseControl,null,(0,c.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,c.createElement)(m.Button,{isSecondary:!0,onClick:()=>l({frontMedia:void 0})},(0,a.__)("Remove image","otter-blocks"))):(0,c.createElement)(u.MediaPlaceholder,{labels:{title:(0,a.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>l({frontMedia:(0,p.pick)(e,["id","alt","url"])})})),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Media Width","otter-blocks"),value:o.frontMediaWidth,onChange:e=>l({frontMediaWidth:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Media Height","otter-blocks"),value:o.frontMediaHeight,onChange:e=>l({frontMediaHeight:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(m.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.frontVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontVerticalAlign:e})}),(0,c.createElement)(m.SelectControl,{label:(0,a.__)("Horizontal Align","otter-blocks"),value:o.frontHorizontalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontHorizontalAlign:e})}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Title Font Size","otter-blocks"),value:o.titleFontSize,onChange:e=>l({titleFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Description Font Size","otter-blocks"),value:o.descriptionFontSize,onChange:e=>l({descriptionFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(h.Z,{backgroundType:o.frontBackgroundType,backgroundColor:o.frontBackgroundColor,image:o.frontBackgroundImage,gradient:o.frontBackgroundGradient,focalPoint:o.frontBackgroundPosition,backgroundAttachment:o.frontBackgroundAttachment,backgroundRepeat:o.frontBackgroundRepeat,backgroundSize:o.frontBackgroundSize,changeBackgroundType:e=>l({frontBackgroundType:e}),changeImage:e=>{l({frontBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({frontBackgroundImage:void 0}),changeColor:e=>l({frontBackgroundColor:e}),changeGradient:e=>l({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>l({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({frontBackgroundRepeat:e}),changeFocalPoint:e=>l({frontBackgroundPosition:e}),changeBackgroundSize:e=>l({frontBackgroundSize:e})})),(0,c.createElement)(m.PanelBody,{title:(0,a.__)("Back","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{backgroundType:o.backBackgroundType,backgroundColor:o.backBackgroundColor,image:o.backBackgroundImage,gradient:o.backBackgroundGradient,focalPoint:o.backBackgroundPosition,backgroundAttachment:o.backBackgroundAttachment,backgroundRepeat:o.backBackgroundRepeat,backgroundSize:o.backBackgroundSize,changeBackgroundType:e=>l({backBackgroundType:e}),changeImage:e=>{l({backBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({backBackgroundImage:void 0}),changeColor:e=>l({backBackgroundColor:e}),changeGradient:e=>l({backBackgroundGradient:e}),changeBackgroundAttachment:e=>l({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({backBackgroundRepeat:e}),changeFocalPoint:e=>l({backBackgroundPosition:e}),changeBackgroundSize:e=>l({backBackgroundSize:e})}),(0,c.createElement)(m.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.backVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({backVerticalAlign:e})})),(0,c.createElement)(m.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(m.SelectControl,{label:(0,a.__)("Flip Type","otter-blocks"),value:o.animType,options:[{label:(0,a.__)("Bottom to Top","otter-blocks"),value:"flipX"},{label:(0,a.__)("Left to right","otter-blocks"),value:"flipY"}],onChange:e=>l({animType:e})}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>l({padding:e}),min:0,max:100}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>l({borderWidth:e}),min:0,max:50}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>l({borderRadius:e}),min:0,max:50})),(0,c.createElement)(u.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.borderColor,onChange:e=>l({borderColor:e}),label:(0,a.__)("Border Color","otter-blocks")},{value:o.titleColor,onChange:e=>l({titleColor:e}),label:(0,a.__)("Title Color","otter-blocks")},{value:o.descriptionColor,onChange:e=>l({descriptionColor:e}),label:(0,a.__)("Description Color","otter-blocks")}]}),(0,c.createElement)(m.PanelBody,{title:(0,a.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(m.ToggleControl,{label:(0,a.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>l({boxShadow:e})}),o.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,a.__)("Color","otter-blocks"),colorValue:o.boxShadowColor,onColorChange:e=>{var t,a;l({boxShadowColor:100>o.boxShadowColorOpacity&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(null==e||null===(a=e.replace("var(",""))||void 0===a?void 0:a.replace(")","")):e})}}),(0,c.createElement)(g.Z,{label:(0,a.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Opacity","otter-blocks"),value:o.boxShadowColorOpacity,onChange:e=>{var t;const a={boxShadowColorOpacity:e};100>e&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")&&(a.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(o.boxShadowColor.replace("var(","").replace(")",""))),l(a)},min:0,max:100}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>l({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>l({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>l({boxShadowVertical:e}),min:-100,max:100})))))},v=o(5225);const{attributes:y}=n;const{name:_}=n;(0,r.registerBlockType)(_,{...n,title:(0,a.__)("Flip Card","otter-blocks"),description:(0,a.__)("Make a card with a flip effect.","otter-blocks"),icon:l.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,l,r,n,i,p,g,h,_;let{attributes:f,setAttributes:w,clientId:C,isSelected:E}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(C,y);return()=>e(f.id)}),[f.id]);const[x,T]=(0,c.useState)(!1),S=d.iv`
46
- ${f.width&&`--width: ${f.width}px;`}
47
- ${f.height&&`--height: ${f.height}px;`}
48
- ${f.borderWidth&&`--borderWidth: ${f.borderWidth}px;`}
49
- --borderColor: ${f.borderColor};
50
- ${f.borderRadius&&`--borderRadius: ${f.borderRadius}px;`}
51
- ${"color"===f.frontBackgroundType&&f.frontBackgroundColor&&`--frontBackground: ${f.frontBackgroundColor};`}
52
- ${"gradient"===f.frontBackgroundType&&f.frontBackgroundGradient&&`--frontBackground: ${f.frontBackgroundGradient};`}
53
- ${"image"===f.frontBackgroundType&&(null===(t=f.frontBackgroundImage)||void 0===t?void 0:t.url)&&`--frontBackground: url( ${null===(o=f.frontBackgroundImage)||void 0===o?void 0:o.url} ) ${f.frontBackgroundRepeat||"repeat"} ${f.frontBackgroundAttachment||"scroll"} ${Math.round(100*(null===(l=f.frontBackgroundPosition)||void 0===l?void 0:l.x))||50}% ${Math.round(100*(null===(r=f.frontBackgroundPosition)||void 0===r?void 0:r.y))||50}%/${f.frontBackgroundSize||"auto"};`}
54
- ${"color"===f.backBackgroundType&&f.backBackgroundColor&&`--backBackground: ${f.backBackgroundColor};`}
55
- ${"gradient"===f.backBackgroundType&&f.backBackgroundGradient&&`--backBackground: ${f.backBackgroundGradient};`}
56
- ${"image"===f.backBackgroundType&&(null===(n=f.backBackgroundImage)||void 0===n?void 0:n.url)&&`--backBackground: url( ${null===(i=f.backBackgroundImage)||void 0===i?void 0:i.url} ) ${f.backBackgroundRepeat||"repeat"} ${f.backBackgroundAttachment||"scroll"} ${Math.round(100*(null===(p=f.backBackgroundPosition)||void 0===p?void 0:p.x))||50}% ${Math.round(100*(null===(g=f.backBackgroundPosition)||void 0===g?void 0:g.y))||50}%/${f.backBackgroundSize||"auto"};`}
57
- ${f.padding&&`--padding: ${f.padding}px;`}
58
- ${f.boxShadow&&`--boxShadow: ${f.boxShadowHorizontal}px ${f.boxShadowVertical}px ${f.boxShadowBlur}px ${f.boxShadowColor?f.boxShadowColor.includes("#")&&0<=f.boxShadowColorOpacity?hexToRgba(f.boxShadowColor,f.boxShadowColorOpacity||1e-5):f.boxShadowColor:hexToRgba("#000000",void 0!==f.boxShadowColorOpacity?f.boxShadowColorOpacity||1e-5:1)};`}
59
- --frontVerticalAlign: ${f.frontVerticalAlign};
60
- --frontHorizontalAlign: ${f.frontHorizontalAlign};
61
- --backVerticalAlign: ${f.backVerticalAlign};
62
- ${f.frontMediaWidth&&`--frontMediaWidth: ${f.frontMediaWidth}px;`}
63
- ${f.frontMediaHeight&&`--frontMediaHeight: ${f.frontMediaHeight}px;`}
64
 
65
  .o-flip-inner {
66
  transform: ${x?"var( --flip-anim )":"unset"};
67
  }
68
 
69
  .o-flip-front .o-flip-content h3 {
70
- color: ${f.titleColor};
71
- ${f.titleFontSize&&`font-size: ${f.titleFontSize}px;`}
72
  }
73
 
74
  .o-flip-front .o-flip-content p {
75
- color: ${f.descriptionColor};
76
- ${f.descriptionFontSize&&`font-size: ${f.descriptionFontSize}px;`}
77
  }
78
- `,M=(0,u.useBlockProps)({id:f.id,className:s()({flipX:"flipX"===f.animType,flipY:"flipY"===f.animType}),css:S});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(b,{attributes:f,setAttributes:w,isFliped:x}),(0,d.tZ)(k,{attributes:f,setAttributes:w}),(0,d.tZ)("div",M,(0,d.tZ)("div",{className:s()("o-flip-inner",{invert:f.isInverted})},(0,d.tZ)("div",{className:"o-flip-front"},(0,d.tZ)("div",{className:"o-flip-content"},(null===(h=f.frontMedia)||void 0===h?void 0:h.url)&&(0,d.tZ)("img",{className:"o-img",srcSet:null===(_=f.frontMedia)||void 0===_?void 0:_.url}),(0,d.tZ)(u.RichText,{tagName:"h3",value:f.title,onChange:e=>w({title:e}),placeholder:(0,a.__)("Insert a title","otter-blocks")}),(0,d.tZ)(u.RichText,{tagName:"p",value:f.description,onChange:e=>w({description:e}),placeholder:(0,a.__)("Insert a description","otter-blocks")}))),(0,d.tZ)("div",{className:"o-flip-back"},(0,d.tZ)(u.InnerBlocks,{renderAppender:E?u.InnerBlocks.ButtonBlockAppender:""}))),E&&(0,d.tZ)("div",{className:"o-switcher"},(0,d.tZ)(m.Button,{isPrimary:!0,onClick:()=>T(!x)},x?(0,a.__)("Flip to front","otter-blocks"):(0,a.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:r}=e;const n=u.useBlockProps.save({id:r.id,className:s()("anim",{flipX:"flipX"===r.animType,flipY:"flipY"===r.animType})});return(0,c.createElement)("div",n,(0,c.createElement)("div",{className:s()("o-flip-inner",{invert:r.isInverted})},(0,c.createElement)("div",{className:"o-flip-front"},(0,c.createElement)("div",{className:"o-flip-content"},(null===(t=r.frontMedia)||void 0===t?void 0:t.url)&&(0,c.createElement)("img",{className:"o-img",src:null===(o=r.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=r.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=r.frontMedia)||void 0===a?void 0:a.alt}),(0,c.createElement)(u.RichText.Content,{tagName:"h3",value:r.title}),(0,c.createElement)(u.RichText.Content,{tagName:"p",value:r.description}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(u.InnerBlocks.Content,null))))}})},191:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/font-awesome-icons","title":"Icon","category":"themeisle-blocks","description":"Add icons from Font Awesome or ThemeIsle Icons library to your website.","keywords":["font awesome","dashicons","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string","default":"fab"},"icon":{"type":"string","default":"themeisle"},"link":{"type":"string"},"newTab":{"type":"boolean","default":false},"fontSize":{"type":"number","default":16},"padding":{"type":"number","default":5},"margin":{"type":"number","default":5},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"backgroundColorHover":{"type":"string"},"textColorHover":{"type":"string"},"borderColorHover":{"type":"string"},"borderSize":{"type":"number","default":0},"borderRadius":{"type":"number","default":0},"isSynced":{"type":"array"}},"editorStyle":"otter-font-awesome-editor","style":"otter-font-awesome-style"}'),n=o(340),c=o(9307);const i={prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},s=[{attributes:i,supports:{align:["left","center","right"]},migrate:e=>{let t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),{...e,align:t,className:""}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:`${o}-container`,style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...i,align:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"undefined-container",style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...i,id:{type:"string"},align:{type:"string"},link:{type:"string"},newTab:{type:"boolean",default:!1},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},r=()=>(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:a});return(0,c.createElement)("p",{className:o,id:t.id,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:l},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},(0,c.createElement)(r,null)):(0,c.createElement)(r,null)))}}];var d=s,u=o(917),m=o(2175),b=o(8504),p=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(m.BlockControls,null,(0,c.createElement)(m.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,c.createElement)(b.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},g=o(5609),h=o(3159);const k=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var v=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(g.Placeholder,null,(0,c.createElement)(g.Spinner,null))},(0,c.createElement)(k,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:"fontawesome"===e?"themeisle":"balance",prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Icon Sizes","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"fontSize",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Icon Size","otter-blocks"),value:a("fontSize")||"",initialPosition:16,onChange:e=>o({fontSize:e}),min:12,max:140})),(0,c.createElement)(h.Z,{field:"padding",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:a("padding")||"",initialPosition:5,onChange:e=>o({padding:e}),min:0,max:100})),(0,c.createElement)(h.Z,{field:"margin",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin")||"",initialPosition:5,onChange:e=>o({margin:e}),min:0,max:100}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ButtonGroup,null,(0,c.createElement)(g.Button,{isSmall:!0,isSecondary:r,isPrimary:!r,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(g.Button,{isSmall:!0,isSecondary:!r,isPrimary:r,onClick:()=>n(!0)},(0,l.__)("Hover","otter-blocks"))),r?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(h.Z,{field:"backgroundColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:a("backgroundColorHover"),onColorChange:e=>o({backgroundColorHover:e})})),(0,c.createElement)(h.Z,{field:"textColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,c.createElement)(m.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.borderColorHover,onColorChange:e=>o({borderColorHover:e})})):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(h.Z,{field:"backgroundColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:a("backgroundColor"),onColorChange:e=>o({backgroundColor:e})})),(0,c.createElement)(h.Z,{field:"textColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,c.createElement)(m.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:120}),(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100})))},y=o(48),_=o(5225);const{attributes:f}=r;const{name:w}=r;(0,a.registerBlockType)(w,{...r,title:(0,l.__)("Icon","otter-blocks"),description:(0,l.__)("Add icons from Font Awesome or ThemeIsle Icons library to your website.","otter-blocks"),icon:n.rL,keywords:["font awesome","dashicons","icons"],deprecated:d,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;(0,c.useEffect)((()=>{const e=(0,_.WX)(r,f);return()=>e(o.id)}),[o.id]);const n=y.ZP.icons[o.icon],i=e=>(0,_.Ih)({name:t,field:e,defaultAttributes:f,attributes:o}),s=u.iv`
79
  --align: ${o.align};
80
  --borderColor: ${o.borderColor};
81
- ${o.borderSize&&`--borderSize: ${o.borderSize}px;`}
82
- ${o.borderRadius&&`--borderRadius: ${o.borderRadius}%;`}
83
- ${o.margin&&`--margin: ${i("margin")}px;`}
84
- ${o.padding&&`--padding: ${i("padding")}px;`}
85
- ${o.fontSize&&`--fontSize: ${i("fontSize")}px;`}
86
 
87
  .wp-block-themeisle-blocks-font-awesome-icons-container {
88
  color: ${i("textColor")};
89
  background-color: ${i("backgroundColor")};
90
- ${"themeisle-icons"===o.library&&i("padding")&&`padding: ${i("padding")}px;`}
91
  }
92
 
93
  .wp-block-themeisle-blocks-font-awesome-icons-container:hover {
@@ -111,31 +100,32 @@
111
  .wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {
112
  fill: ${i("textColorHover")};
113
  }
114
- `,d=(0,m.useBlockProps)({id:o.id,css:s});return(0,u.tZ)(c.Fragment,null,(0,u.tZ)(p,{attributes:o,setAttributes:l,isSelected:a}),(0,u.tZ)(v,{attributes:o,setAttributes:l,getValue:i}),(0,u.tZ)("p",d,(0,u.tZ)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,u.tZ)(n,null):(0,u.tZ)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=y.ZP.icons[t.icon],l=m.useBlockProps.save({id:t.id});return(0,c.createElement)("p",l,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}})},4384:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form","title":"Form","category":"themeisle-blocks","description":"Display a form for your clients.","keywords":["business","form","email"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"subject":{"type":"string"},"emailTo":{"type":"string"},"optionName":{"type":"string"},"hasCaptcha":{"type":"boolean"},"provider":{"type":"string","default":""},"apiKey":{"type":"string"},"listId":{"type":"string"},"action":{"type":"string","default":"subscribe"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-form-editor","style":"otter-form-style","script":"otter-form"}'),n=o(340),c=o(9307),i=o(2819),s=window.wp.api,d=o.n(s),u=o(2175),m=o(9818),b=o(5225),p=o(5609),g=e=>{let{attributes:t,setAttributes:o}=e;const{createNotice:a}=(0,m.dispatch)("core/notices"),[r,n]=(0,c.useState)(""),[i,s]=(0,c.useState)(""),[b,g]=(0,c.useState)(!0),[h,k]=(0,c.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),[v,y]=(0,c.useState)("loading");return(0,c.useEffect)((()=>{let e=!0;return t.optionName&&d().loadPromise.then((()=>{(new(d().models.Settings)).fetch().done((o=>{var l,a;null===(l=o.themeisle_blocks_form_emails)||void 0===l||null===(a=l.filter((e=>{let{form:o}=e;return o===t.optionName})))||void 0===a||a.forEach((t=>{e&&(s(null==t?void 0:t.email),g(!0),n(null==t?void 0:t.email))}))}))})),()=>{e=!1}}),[t.optionName]),(0,c.useEffect)((()=>{let e=!0;var o,r,n,c;return t.apiKey&&t.provider&&(o=t.provider,r=t.apiKey,n=o=>{o.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),e&&(k(o),y("ready"));const r=1===o.map((e=>{let{value:t}=e;return t})).filter((e=>e===t.listId)).length;t.listId&&!r&&a("error",(0,l.__)("The current contact list is invalid! Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})},c=t=>{a("error",null==t?void 0:t.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),e&&y("error")},window.wp.apiFetch({path:"otter/v1/integration",method:"POST",data:{provider:o,apiKey:r}}).then((e=>{if(null!=e&&e.success){var t;const o=(null==e||null===(t=e.list_id)||void 0===t?void 0:t.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];n(o)}else c(e)})).catch((e=>{console.log(e)}))),()=>{e=!1}}),[t.provider,t.apiKey]),(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email Subject","otter-blocks"),placeholder:(0,l.__)("A new submission","otter-blocks"),value:t.subject,onChange:e=>o({subject:e}),help:(0,l.__)("Customize the email title send by this form.","otter-blocks")}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email To","otter-blocks"),placeholder:(0,l.__)("Default is to admin site","otter-blocks"),value:i,onChange:e=>s(e),help:(0,l.__)("Send form data to another email. (Admin is default).","otter-blocks")}),(0,c.createElement)(p.Button,{isPrimary:!0,onClick:()=>{(new(d().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let r=!0,c=!1;if(null==o||o.forEach(((e,l)=>{let{form:a}=e;a===t.optionName&&(o[l].email!==i&&(o[l].email=i,c=!0),r=!1)})),r&&o.push({form:t.optionName,email:i}),r||c){const e=new(d().models.Settings)({themeisle_blocks_form_emails:o});g(!1),e.save().then((e=>{var o;null===(o=e.themeisle_blocks_form_emails)||void 0===o||o.filter((e=>{let{form:o}=e;return o===t.optionName})).forEach((e=>{g(!0),n(null==e?void 0:e.email),a("info",(0,l.__)("Email has been saved!","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}}))},disabled:i===r},(0,c.createElement)(c.Fragment,null,!b&&(0,c.createElement)(p.Spinner,null),(0,l.__)("Save","otter-blocks"))),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Add captcha checkbox","otter-blocks"),checked:t.hasCaptcha,onChange:e=>o({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots.","otter-blocks")}),t.hasCaptcha&&(0,l.__)("You can change the API Keys in Settings > Otter","otter-blocks")),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Integration","otter-blocks"),initialOpen:!1},(0,l.__)("Add your client email to a Digital Marketing provider.","otter-blocks"),(0,c.createElement)("br",null)," ",(0,c.createElement)("br",null),(0,c.createElement)("b",null," ",(0,l.__)("You need to have at least one email field in your form. For multiple email fields, only the first will be used.","otter-blocks")," "),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Provider","otter-blocks"),value:t.provider,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Mailchimp","otter-blocks"),value:"mailchimp"},{label:(0,l.__)("Sendinblue","otter-blocks"),value:"sendinblue"}],onChange:e=>{o({provider:e,apiKey:"",listId:""})}}),t.provider&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("API Key","otter-blocks"),help:(0,l.__)("You can find the key in the provider's website","otter-blocks"),value:t.apiKey,onChange:e=>{y("loading"),k([]),o({apiKey:e,listId:""})}}),t.apiKey&&2>h.length&&"loading"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Fetching data from provider.","otter-blocks")),t.apiKey&&"ready"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Contact List","otter-blocks"),value:t.listId,options:h,onChange:e=>o({listId:e})}),2<=(null==h?void 0:h.length)&&t.listId&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Action","otter-blocks"),value:t.action,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Subscribe","otter-blocks"),value:"subscribe"},{label:(0,l.__)("Submit & Subscribe","otter-blocks"),value:"submit-subscribe"}],onChange:e=>o({action:e})}),"submit-subscribe"===t.action&&(0,l.__)("This action will add the client to the contact list and send a separata email with the form data to administrator or to the email mentioned in 'Form to' field. A checkbox for data-sharing consent with third-party will be added on form.","otter-blocks"))))))},h=e=>{let{className:t,isAPILoaded:o,isAPISaved:a,isSaving:r,saveAPIKey:n,siteKey:i,secretKey:s,setSiteKey:d,setSecretKey:u}=e;return o?a?void 0:(0,c.createElement)(p.Placeholder,{icon:"admin-site",label:(0,l.__)("Google reCaptcha","otter-blocks"),instructions:(0,l.__)("A Google reCaptcha V2 API keys are required, please enter one below.","otter-blocks"),className:t},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:i,className:"components-placeholder__input",onChange:d}),(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:s,className:"components-placeholder__input",onChange:u}),(0,c.createElement)(p.Button,{isPrimary:!0,type:"submit",onClick:n,isBusy:r,disabled:""===i||""===s},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,c.createElement)(p.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks")))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(p.Placeholder,null,(0,c.createElement)("div",null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))))};const{attributes:k}=r;var v=o(4184),y=o.n(v);const{name:_}=r;(0,a.registerBlockType)(_,{...r,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients.","otter-blocks"),icon:n.XQ,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;const[s,p]=(0,c.useState)(""),[v,y]=(0,c.useState)(""),[_,f]=(0,c.useState)(!1),[w,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),[x,T]=(0,c.useState)(!1),{insertBlock:S,removeBlock:M}=(0,m.useDispatch)("core/block-editor"),{replaceInnerBlocks:B}=(0,m.useDispatch)("core/block-editor"),{createNotice:z}=(0,m.dispatch)("core/notices"),P=(0,m.useSelect)((e=>0<e("core/block-editor").getBlocks(r).length),[r]),{blockType:V,defaultVariation:R,variations:N}=(0,m.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(n),defaultVariation:l(n,"block"),variations:t(n,"block")}}),[n]),L=(0,m.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(r).innerBlocks}),[]);(0,c.useEffect)((()=>{const e=(0,b.WX)(r,k);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e;t.id&&(0,m.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,m.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,m.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,c.useEffect)((()=>{if(L){const e=L.filter((e=>{let{name:t}=e;return"themeisle-blocks/form-nonce"===t}));if(2<=(null==e?void 0:e.length))e.slice(1).forEach((e=>{M(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&r){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==S||S(e,(null==L?void 0:L.length)||0,r,!1))}}}),[L]),(0,c.useEffect)((()=>{let e=!0;return d().loadPromise.then((()=>{E.current=new(d().models.Settings),e&&T(!0)})),()=>{e=!1}}),[]),(0,c.useEffect)((()=>{var e;void 0!==t.hasCaptcha&&(null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1;null==o||o.forEach(((e,l)=>{let{form:n}=e;n===t.optionName&&(o[l].hasCaptcha!==t.hasCaptcha&&(r=!0),o[l].hasCaptcha=t.hasCaptcha,a=!1)})),a&&o.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(a||r)&&(new(d().models.Settings)({themeisle_blocks_form_emails:o}).save(),z("info",(0,l.__)("Form preference has been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))})))}),[t.hasCaptcha,E.current]),(0,c.useEffect)((()=>{let e=!0;return x&&t.hasCaptcha&&!w&&(async()=>{var t;_||null==E||null===(t=E.current)||void 0===t||t.fetch().then((t=>{f(!0),""!==t.themeisle_google_captcha_api_site_key&&""!==t.themeisle_google_captcha_api_secret_key&&e&&C(!0)}))})(),()=>{e=!1}}),[x,_,w,t.hasCaptcha]),(0,c.useEffect)((()=>{var e;null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1,n=!1;null==o||o.forEach(((e,l)=>{let{form:c}=e;var i;c===t.optionName&&(null!==(i=o[l])&&void 0!==i&&i.integration||(o[l].integration={}),r=o[l].integration.provider!==t.provider||o[l].integration.apiKey!==t.apiKey||o[l].integration.listId!==t.listId||o[l].integration.action!==t.action,a=!1,n=t.apiKey&&(o[l].integration.listId!==t.listId||o[l].integration.action!==t.action),o[l].integration.provider=t.provider,o[l].integration.apiKey=t.apiKey,o[l].integration.listId=t.listId,o[l].integration.action=t.action)})),a&&o.push({form:t.optionName,integration:{provider:t.provider,apiKey:t.apiKey,listId:t.listId,action:t.action}}),(a||r)&&new(d().models.Settings)({themeisle_blocks_form_emails:o}).save().then((()=>{n&&z("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}),[t.optionName,t.provider,t.apiKey,t.listId,t.action,E.current]);const H=t.provider&&t.apiKey&&t.listId,A=(0,u.useBlockProps)({id:t.id});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g,{attributes:t,setAttributes:o}),(0,c.createElement)("div",A,P?(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(u.InnerBlocks,null),t.hasCaptcha&&(!_||!w)&&(0,c.createElement)(h,{className:"otter-form-captcha",isAPILoaded:_,isAPISaved:w,saveAPIKey:()=>{new window.wp.api.models.Settings({themeisle_google_captcha_api_site_key:s,themeisle_google_captcha_api_secret_key:v}).save().then((e=>{let t=!1;""!==e.themeisle_google_captcha_api_site_key&&""!==e.themeisle_google_captcha_api_secret_key&&(t=!0),C(t),y(""),p(""),z("info",(0,l.__)("API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))},siteKey:s,secretKey:v,setSiteKey:p,setSecretKey:y}),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},H&&"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))):(0,c.createElement)(u.__experimentalBlockVariationPicker,{icon:(0,i.get)(V,["icon","src"]),label:(0,i.get)(V,["title"]),variations:N,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;e&&B(r,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0})))},save:e=>{let{attributes:t}=e;const o=t.provider&&t.apiKey&&t.listId,a=u.useBlockProps.save({id:t.id,className:y()({"is-subscription":o&&"subscribe"===t.action,"can-submit-and-subscribe":o&&"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-email-subject":t.subject,"data-option-name":t.optionName});return(0,c.createElement)("div",a,(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(u.InnerBlocks.Content,null),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))},variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:n.XQ,title:(0,l.__)("Contact Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["themeisle-blocks/form-textarea",{label:(0,l.__)("Message","otter-blocks")}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]},{name:"themeisle-blocks/form-subscribe",description:(0,l.__)("Add the clients to your subscription list","otter-blocks"),icon:n.XQ,title:(0,l.__)("Subscribe Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]}]})},6257:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-input","title":"Text Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["input","text","email"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"type":{"type":"string","default":"text"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),u=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.SelectControl,{label:(0,l.__)("Field Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Text","otter-blocks"),value:"text"},{label:(0,l.__)("Email","otter-blocks"),value:"email"},{label:(0,l.__)("Date","otter-blocks"),value:"date"},{label:(0,l.__)("Number","otter-blocks"),value:"number"}],onChange:e=>o({type:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:m}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.Bd,keywords:["input","text","email"],variations:[{name:"themeisle-blocks/form-input-email",description:(0,l.__)("Insert an email field","otter-blocks"),icon:"email",title:(0,l.__)("Email Field","otter-blocks"),attributes:{type:"email"}},{name:"themeisle-blocks/form-input-number",description:(0,l.__)("Insert a number field","otter-blocks"),icon:"calculator",title:(0,l.__)("Number Field","otter-blocks"),attributes:{type:"number"}},{name:"themeisle-blocks/form-input-date",description:(0,l.__)("Insert a date field","otter-blocks"),icon:"calendar-alt",title:(0,l.__)("Date Field","otter-blocks"),attributes:{type:"date"}}],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,m);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-input-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,className:"otter-form-input components-text-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}})},7440:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-nonce","title":"Nonce Field","category":"themeisle-blocks","description":"Protect the form from CSRF.","keywords":["protection","csrf","field"],"textdomain":"otter-blocks","attributes":{"formId":{"type":"string"}},"supports":{"align":["wide","full"],"inserter":false}}'),n=o(340),c=o(9818),i=o(9307);const{name:s}=r;(0,a.registerBlockType)(s,{...r,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:n.Bd,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,c.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:l}=e("core/block-editor");return{parent:t(l(o))}}),[]);return(0,i.useEffect)((()=>{l&&t({formId:l.attributes.id})}),[l]),null},save:()=>null})},1911:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-textarea","title":"Textarea Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["textarea","message","input"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),u=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:m}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.Bd,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,m);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-textarea-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,rows:10,className:"otter-form-textarea-input components-textarea-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}})},2608:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/google-map","title":"Google Maps","category":"themeisle-blocks","description":"Display Google Maps on your website with Google Map block.","keywords":["map","google","orbitfox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"standard"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string"},"longitude":{"type":"string"},"type":{"type":"string","default":"roadmap"},"zoom":{"type":"number","default":15},"height":{"type":"number","default":400},"draggable":{"type":"boolean","default":true},"mapTypeControl":{"type":"boolean","default":true},"zoomControl":{"type":"boolean","default":true},"fullscreenControl":{"type":"boolean","default":true},"streetViewControl":{"type":"boolean","default":true},"markers":{"type":"array","default":[]}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-google-map-editor","style":"otter-google-map-style","script":"google-maps"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(2045),u=o(2175),m=o(5609),b=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:r,isSaving:n,changeAPI:i,saveAPIKey:d}=e;return a?r?void 0:(0,c.createElement)(m.Placeholder,{icon:"admin-site",label:(0,l.__)("Google Maps","otter-blocks"),instructions:(0,l.__)("A Google Maps API key is required, please enter one below.","otter-blocks")},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(m.TextControl,{type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:t,className:s()("components-placeholder__input",{"is-invalid":o}),onChange:i}),(0,c.createElement)(m.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy:n,disabled:""===t||o},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},o&&(0,c.createElement)("p",null,(0,l.__)("The API key could not be validated.","otter-blocks")),(0,c.createElement)("p",null,(0,l.__)("You need to activate Maps and Places API.","otter-blocks")," ",(0,c.createElement)(m.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))):(0,c.createElement)(m.Placeholder,null,(0,c.createElement)(m.Spinner,null),(0,l.__)("Loading…","otter-blocks"))},p=o(5241),g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{window.wp.oldEditor.initialize(n.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(m.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:r,removeMarker:n,changeMarkerProp:i}=e;const d=(0,c.useRef)(null);return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},(0,c.createElement)(m.Button,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:()=>r(t.id)},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(m.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:()=>n(t.id)})),(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,c.createElement)(m.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${t.id}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:d,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const o=new window.google.maps.places.SearchBox(d.current);o.addListener("places_changed",(()=>{const e=o.getPlaces();e&&0<e.length&&e.forEach((e=>{const o=e.formatted_address||e.name,l=e.geometry.location.lat(),a=e.geometry.location.lng();i(t.id,"location",o),i(t.id,"latitude",l),i(t.id,"longitude",a)}))}))},onChange:e=>i(t.id,"location",e.target.value),disabled:!a}),!a&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(m.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>i(t.id,"latitude",e)}),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>i(t.id,"longitude",e)}),(0,c.createElement)(m.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:e=>i(t.id,"icon",e)}),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>i(t.id,"title",e)}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>i(t.id,"description",e)})))},y=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:r,removeMarker:n,changeMarkerProp:i}=e;(0,c.useEffect)((()=>{!1!==t&&d(t)}),[t]);const[s,d]=(0,c.useState)(null),u=e=>{s===e&&(e=null),d(e)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:s,isPlaceAPIAvailable:a,openMarker:u,removeMarker:n,changeMarkerProp:i})))),(0,c.createElement)(m.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:r},(0,l.__)("Add Marker","otter-blocks")))},_=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:r,isPlaceAPIAvailable:n,isMarkerOpen:i,setMarkerOpen:s,removeMarker:d,changeMarkerProp:b,addMarkerManual:g,api:h,isSaving:k,changeAPI:v,saveAPIKey:_}=e;const f=(0,c.useRef)(null);return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.V,{value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:r})),(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(m.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,c.createElement)("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:f,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(f.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.geometry.location.lat(),l=e.geometry.location.lng(),r=new window.google.maps.LatLng(t,l);a.setCenter(r),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!n}),!n&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(m.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()});const l=Number(e),r=t.longitude,n=new window.google.maps.LatLng(l,r);a.setCenter(n)}}),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()});const l=t.latitude,r=Number(e),n=new window.google.maps.LatLng(l,r);a.setCenter(n)}})),(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(m.SelectControl,{label:(0,l.__)("Map Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Road Map","otter-blocks"),value:"roadmap"},{label:(0,l.__)("Satellite View","otter-blocks"),value:"satellite"},{label:(0,l.__)("Hybrid","otter-blocks"),value:"hybrid"},{label:(0,l.__)("Terrain","otter-blocks"),value:"terrain"}],onChange:e=>{o({type:e}),a.setMapTypeId(window.google.maps.MapTypeId[e.toUpperCase()])}}),(0,c.createElement)(m.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e}),a.setZoom(e)},min:0,max:20}),(0,c.createElement)(m.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(m.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Streen View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==i||void 0,onToggle:()=>{!1!==i&&s(!0)}},(0,c.createElement)(y,{markers:t.markers,removeMarker:d,changeMarkerProp:b,addMarker:g,isPlaceAPIAvailable:n,initialOpen:i})),(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(m.TextControl,{label:(0,l.__)("Google Maps API Key","otter-blocks"),type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:h,className:"components-placeholder__input",onChange:v,help:(0,l.__)("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.","otter-blocks")}),(0,c.createElement)(m.Button,{isSecondary:!0,type:"submit",onClick:_,isBusy:k},(0,l.__)("Save API Key","otter-blocks"))))},f=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:r,close:n}=e;(0,c.useEffect)((()=>{d(t.id),b(t.location),g(t.title),v(t.icon),_(t.description),w(t.latitude),E(t.longitude)}),[t]);const i=(0,c.useRef)(null),[s,d]=(0,c.useState)(t.id),[u,b]=(0,c.useState)(t.location),[p,g]=(0,c.useState)(t.title),[h,v]=(0,c.useState)(t.icon),[y,_]=(0,c.useState)(t.description),[f,w]=(0,c.useState)(t.latitude),[C,E]=(0,c.useState)(t.longitude);return(0,c.createElement)(m.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:n,shouldCloseOnClickOutside:!1},o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${s}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:u,className:"wp-block-themeisle-blocks-google-map-search",ref:i,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(i.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.formatted_address||e.name,o=e.geometry.location.lat(),l=e.geometry.location.lng();b(t),w(o),E(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:f,onChange:w}),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:C,onChange:E})),(0,c.createElement)(m.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:y,onChange:_}),(0,c.createElement)(m.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:v}),(0,c.createElement)(m.ButtonGroup,null,(0,c.createElement)(m.Button,{isPrimary:!0,onClick:()=>r(u,p,h,y,f,C)},(0,l.__)("Add","otter-blocks")),(0,c.createElement)(m.Button,{isSecondary:!0,onClick:n},(0,l.__)("Cancel","otter-blocks"))))},w=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:r,selectMarker:n,isSelectingMarker:i}=e;return(0,c.useEffect)((()=>{a&&o()}),[a]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{id:t.id,className:s()({"is-selecting-marker":i}),style:{height:t.height+"px"}}),r&&(0,c.createElement)(m.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:n},(0,c.createElement)("span",{className:"dashicons dashicons-sticky"})))},C={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]},E=o(5225);const{attributes:x}=r;var T=o(2819),S={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,T.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};const{name:M}=r;(0,a.registerBlockType)(M,{...r,title:(0,l.__)("Google Maps","otter-blocks"),description:(0,l.__)("Display Google Maps on your website with Google Map block.","otter-blocks"),icon:n.aD,keywords:["map","google","orbitfox"],transforms:S,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,E.WX)(a,x);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{let e=!0;return(async()=>{await window.wp.api.loadPromise.then((()=>{g.current=new window.wp.api.models.Settings})),!1===Boolean(window.themeisleGutenberg.mapsAPI)?M||g.current.fetch().then((t=>{e&&(S(t.themeisle_google_map_block_api_key),B(!0),""!==t.themeisle_google_map_block_api_key&&(P(!0),X(t.themeisle_google_map_block_api_key)))})):!M&&e&&(S(window.themeisleGutenberg.mapsAPI),B(!0),P(!0),X(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=oe,window.gm_authFailure=function(){P(!1),Q(!0)},h.current=document.createElement("script"),h.current.type="text/javascript",h.current.async=!0,h.current.defer=!0,h.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,c.useEffect)((()=>{!1!==z&&void 0!==window.google&&k.current.setOptions({mapTypeControl:!!r||t.mapTypeControl,zoomControl:!!r||t.zoomControl,fullscreenControl:!!r||t.fullscreenControl,streetViewControl:!!r||t.streetViewControl})}),[r]),(0,c.useEffect)((()=>{y.current=[...t.markers]}),[t.markers]);const i=(0,c.useRef)([]),g=(0,c.useRef)(null),h=(0,c.useRef)(null),k=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)([...t.markers]),[T,S]=(0,c.useState)(""),[M,B]=(0,c.useState)(!1),[z,P]=(0,c.useState)(!1),[V,R]=(0,c.useState)(!1),[N,L]=(0,c.useState)(!1),[H,A]=(0,c.useState)(!0),[I,O]=(0,c.useState)(!1),[G,$]=(0,c.useState)(!1),[Z,F]=(0,c.useState)(!1),[D,W]=(0,c.useState)(!1),[U,j]=(0,c.useState)(!1),[q,J]=(0,c.useState)({}),[K,Q]=(0,c.useState)(!1),X=e=>{window.isMapLoaded||(window.isMapLoaded=!0,h.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",O(!0)},h.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(h.current)),document.getElementById("themeisle-google-map-api")&&O(!0)},Y=(e,t,o,r)=>{const n=`<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">${o}</h6><div class="wp-block-themeisle-blocks-map-overview-content">${r?`<p>${r}</p>`:""}<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_${a.substr(0,8)}( '${t}' )">${(0,l.__)("Delete Marker","otter-blocks")}</a></div></div>`,c=new window.google.maps.InfoWindow({content:n});e.addListener("click",(()=>{v.current=c,c.open(k.current,e)})),window.google.maps.event.addListener(c,"domready",(()=>{$(t)})),window.google.maps.event.addListener(c,"closeclick",(()=>{$(!1)}))},ee=e=>{e.forEach((e=>{const t=e.latitude,o=e.longitude,l=new window.google.maps.LatLng(t,o),a=new window.google.maps.Marker({position:l,map:k.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});window.google.maps.event.addListener(a,"dragend",(t=>{const o=t.latLng.lat(),l=t.latLng.lng();te(e.id,"latitude",o),te(e.id,"longitude",l)})),i.current.push(a),window.google.maps.event.addListener(a,"click",(()=>{v.current&&v.current.close()})),Y(a,e.id,e.title,e.description)}))},te=(e,t,l)=>{const a=[...y.current];a.find((t=>t.id===e))[t]=l.toString(),le(),ee(a),o({markers:a})},oe=e=>{let t=[...y.current];t=t.filter((t=>t.id!==e)),o({markers:t}),le(),$(!1),0<t.length&&ee(t)},le=()=>{for(let e=0;e<i.current.length;e++)i.current[e].setMap(null);i.current=[]},ae=()=>{!1===Boolean(window.themeisleGutenberg.mapsAPI)&&(L(!0),new window.wp.api.models.Settings({themeisle_google_map_block_api_key:T}).save().then((e=>{let t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),L(!1),P(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,X(e.themeisle_google_map_block_api_key))})))},re=e=>{o({style:e}),k.current.setOptions({styles:C[e]})},ne=(0,u.useBlockProps)({className:s()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":r})});return M&&z?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.d,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:re}),(0,c.createElement)(_,{attributes:t,setAttributes:o,map:k.current,changeStyle:re,isPlaceAPIAvailable:H,isMarkerOpen:G,setMarkerOpen:$,removeMarker:oe,changeMarkerProp:te,addMarkerManual:()=>{const e=(0,d.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=k.current.getCenter(),a=o.lat(),r=o.lng();W(!0),j(!0),J({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})},api:T,isSaving:N,changeAPI:S,saveAPIKey:ae}),D&&(0,c.createElement)(f,{marker:q,isAdvanced:U,isPlaceAPIAvailable:H,close:()=>W(!1),addMarker:(e,l,a,r,n,c)=>{const s=new window.google.maps.LatLng(n,c),u=(0,d.Z)(),m=new window.google.maps.Marker({position:s,map:k.current,title:l,draggable:!0,icon:a});window.google.maps.event.addListener(m,"dragend",(e=>{const t=e.latLng.lat(),o=e.latLng.lng();te(u,"latitude",t),te(u,"longitude",o)})),i.current.push(m);const b=[...t.markers],p={id:u,location:e,title:l,icon:a,description:r,latitude:n,longitude:c};b.push(p),o({markers:b}),window.google.maps.event.addListener(m,"click",(()=>{v.current&&v.current.close()})),Y(m,p.id,l,r),W(!1),F(!1)}}),(0,c.createElement)("div",ne,(0,c.createElement)(m.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),n(!0)}},(0,c.createElement)(w,{attributes:t,initMap:()=>{if(k.current=new window.google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:C[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{t===window.google.maps.places.PlacesServiceStatus.OK&&0<e.length&&k.current.setCenter(e[0].geometry.location)}))}window.google.maps.event.addListenerOnce(k.current,"idle",(()=>{R(!0)})),k.current.addListener("zoom_changed",(()=>{const e=k.current.getZoom();o({zoom:e})})),k.current.addListener("maptypeid_changed",(()=>{const e=k.current.getMapTypeId();o({type:e})})),k.current.addListener("bounds_changed",(()=>{const e=k.current.getCenter(),t=e.lat(),l=e.lng();o({latitude:t.toString(),longitude:l.toString()})})),0<t.markers.length&&ee(t.markers);const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{"REQUEST_DENIED"===t&&A(!1)}))},displayMap:I,isMapLoaded:V,selectMarker:()=>{F(!Z),Z?window.google.maps.event.clearListeners(k.current,"click"):k.current.addListener("click",(e=>{window.google.maps.event.clearListeners(k.current,"click");const t=(0,d.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),r=e.latLng.lng();W(!0),j(!1),J({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})}))},isSelectingMarker:Z})))):(0,c.createElement)("div",ne,(0,c.createElement)(b,{api:T,error:K,isAPILoaded:M,isAPISaved:z,isSaving:N,changeAPI:e=>{S(e),Q(!1)},saveAPIKey:ae}))},save:()=>null})},2925:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list","title":"Icon List","category":"themeisle-blocks","description":"Display an icon list in a beautiful layout.","keywords":["icon","list","items"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"defaultLibrary":{"type":"string","default":"fontawesome"},"defaultIconPrefix":{"type":"string","default":"fas"},"defaultIcon":{"type":"string","default":"angle-right"},"defaultContentColor":{"type":"string"},"defaultIconColor":{"type":"string"},"defaultSize":{"type":"number","default":20},"gap":{"type":"number","default":5},"horizontalAlign":{"type":"string"}},"styles":[{"name":"vertical","label":"Vertical","isDefault":true},{"name":"horizontal","label":"Horizontal"}],"editorStyle":"otter-icon-list-editor","style":"otter-icon-list-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(917),d=o(5225),u=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.AlignmentToolbar,{value:{"flex-start":"left",center:"center","flex-end":"right"}[t.horizontalAlign],onChange:e=>{switch(e){case"left":o({horizontalAlign:"flex-start"});break;case"center":o({horizontalAlign:"center"});break;case"right":o({horizontalAlign:"flex-end"});break;default:o({horizontalAlign:void 0})}}}))},m=o(5609);const b=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var p=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(m.Placeholder,null,(0,c.createElement)(m.Spinner,null))},(0,c.createElement)(b,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.defaultLibrary,prefix:t.defaultPrefix,icon:t.defaultIcon,changeLibrary:e=>{o({defaultLibrary:e,defaultIcon:void 0,defaultPrefix:"fas"})},onChange:e=>{if("image"===t.defaultLibrary&&null!=e&&e.url)return o({defaultIcon:e.url});o("object"==typeof e?{defaultIcon:e.name,defaultPrefix:e.prefix}:{defaultIcon:e})},allowImage:!0})),(0,c.createElement)(m.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),help:(0,l.__)("The size of the font size of the content and icon.","otter-blocks"),value:t.defaultSize,onChange:e=>{o({defaultSize:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(m.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("The distance between the items.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:g}=r;const{name:h}=r;(0,a.registerBlockType)(h,{...r,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout.","otter-blocks"),icon:n.rL,keywords:["icon","list","items"],styles:[{name:"vertical",label:(0,l.__)("Vertical","otter-blocks"),isDefault:!0},{name:"horizontal",label:(0,l.__)("Horizontal","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,d.WX)(l,g);return()=>e(t.id)}),[t.id]);const a=s.iv`
115
  --horizontalAlign: ${t.horizontalAlign};
116
  ${t.gap&&`--gap: ${t.gap}px;`}
117
  ${t.defaultSize&&`--fontSize: ${t.defaultSize}px;`}
118
- `,r=(0,i.useBlockProps)({id:t.id,css:a});return(0,s.tZ)(c.Fragment,null,(0,s.tZ)(u,{attributes:t,setAttributes:o}),(0,s.tZ)(p,{attributes:t,setAttributes:o}),(0,s.tZ)("div",r,(0,s.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/icon-list-item"],__experimentalMoverDirection:"vertical",orientation:"vertical",template:[["themeisle-blocks/icon-list-item"]],renderAppender:i.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)(i.InnerBlocks.Content,null))}})},598:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list-item","title":"Icon List Item","category":"themeisle-blocks","description":"Display an item for the icon list.","keywords":["icon","list","items"],"parent":["themeisle-blocks/icon-list"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string"},"contentColor":{"type":"string"},"iconColor":{"type":"string"},"library":{"type":"string"},"iconPrefix":{"type":"string"},"icon":{"type":"string"}}}'),n=o(340),c=o(9307),i=o(917),s=o(4184),d=o.n(s),u=o(2175),m=o(9818),b=o(5609);const p=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var g=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(b.Placeholder,null,(0,c.createElement)(b.Spinner,null))},(0,c.createElement)(p,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.iconPrefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,iconPrefix:"fab"})},onChange:e=>{if("image"===t.library&&null!=e&&e.url)return o({icon:e.url});o("object"==typeof e?{icon:e.name,iconPrefix:e.prefix}:{icon:e})},allowImage:!0})),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.contentColor,onColorChange:e=>{o({contentColor:e})}}),"image"!==t.library&&(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.iconColor,onColorChange:e=>{o({iconColor:e})}})))},h=o(48),k=o(5225);const{attributes:v}=r;const{name:y}=r;(0,a.registerBlockType)(y,{...r,title:(0,l.__)("Icon List Item","otter-blocks"),description:(0,l.__)("Display an item for the icon list.","otter-blocks"),icon:n.rL,keywords:["item","icon","list"],merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:e=>{let{attributes:t,setAttributes:o,name:r,clientId:n,onReplace:s,onRemove:b,mergeBlocks:p}=e;const[y,_]=(0,c.useState)(!1),{hasParent:f,parentAttributes:w}=(0,m.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(n));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,k.WX)(n,v);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{o({library:t.library||w.defaultLibrary,icon:t.icon||w.defaultIcon,iconPrefix:t.iconPrefix||w.defaultIconPrefix})}),[f,w,t]),(0,c.useEffect)((()=>{if("image"===t.library)try{const e=new URL(t.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||_(!0)}catch(e){_(!1)}}),[t.library,t.icon]);const C=h.ZP.icons[t.icon],E=`${t.iconPrefix||w.defaultIconPrefix} fa-${t.icon||w.defaultIcon}`,x=i.iv`
119
  --contentColor: ${t.contentColor||w.defaultContentColor};
120
  --iconColor: ${t.iconColor||w.defaultIconColor};
121
- `,T=(0,u.useBlockProps)({css:x});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(g,{attributes:t,setAttributes:o}),(0,i.tZ)("div",T,"image"===t.library&&y?(0,i.tZ)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon&&void 0!==C?(0,i.tZ)(C,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,i.tZ)("i",{className:d()(E,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,i.tZ)(u.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content,onChange:e=>{o({content:e})},onSplit:e=>e?(0,a.createBlock)(r,{...t,content:e}):(0,a.createBlock)(r),onMerge:p,onReplace:s,onRemove:b})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=h.ZP.icons[t.icon],a=u.useBlockProps.save({id:t.id});return(0,c.createElement)("div",a,"image"===t.library&&t.icon?(0,c.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,c.createElement)(l,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,c.createElement)("i",{className:d()(o,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,c.createElement)(u.RichText.Content,{tagName:"p",className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content}))}})},1254:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/leaflet-map","title":"Maps","category":"themeisle-blocks","description":"Display Open Street Maps on your website with Maps block.","keywords":["map","opeenstreetmap","location"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string","default":"41.4034789"},"longitude":{"type":"string","default":"2.174410333009705"},"bbox":{"type":"string","default":"2.1207046508789067%2C41.34807736149302%2C2.2288513183593754%2C41.45816618938139"},"zoom":{"type":"number"},"height":{"type":"number","default":400},"markers":{"type":"array","default":[]},"zoomControl":{"type":"boolean","default":true},"draggable":{"type":"boolean","default":true}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-leaflet-map-editor","style":"otter-leaflet-map-style","editorScript":"leaflet-gesture-handling","script":"otter-leaflet"}'),n=o(340),c=o(9307),i=o(2045),s=o(4184),d=o.n(s),u=o(2819),m=o(2175),b=o(5609);async function p(e){const t=await async function(e){if("string"!=typeof e)throw(0,l.__)("Location must be a string","otter-blocks");const t="https://nominatim.openstreetmap.org/search?q="+e.split(" ").map((e=>encodeURIComponent(e))).join("+")+"&format=geojson",o=await fetch(t);return o.ok&&200===o.status?o.json():console.warn((0,l.__)("An error has occured: ","otter-blocks")+o.status)}(e);if(null!=t&&t.features.length){var o;const e=t.features[0];if(null!=e&&null!==(o=e.geometry)&&void 0!==o&&o.coordinates.length)return{longitude:e.geometry.coordinates[0],latitude:e.geometry.coordinates[1]}}return null}var g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{wp.oldEditor.initialize(n.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(b.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:r}=e;const[n,i]=(0,c.useState)(t.location),[s,u]=(0,c.useState)(t.longitude),[m,g]=(0,c.useState)(t.latitude),[h,v]=(0,c.useState)(t.title),[y,_]=(0,c.useState)(t.description),[f,w]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,c.createElement)(b.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>r({type:C.REMOVE,ids:[t.id]})})),o&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===f.target}),value:n,onChange:e=>{i(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{const e=await p(n);e?(r({type:C.UPDATE,ids:[t.id],updatedProps:{location:n,latitude:e.latitude,longitude:e.longitude}}),g(e.latitude),u(e.longitude),"LOCATION"===f.target&&w({})):w({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:m,onChange:e=>{g(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:s,onChange:e=>{u(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:h,onChange:e=>{v(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{_(y),r({type:C.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},y=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:r,setOpenMarker:n}=a;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group"},t.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:r===e.id,openMarker:()=>n(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:C.ADD,marker:{id:(0,i.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},_=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:r}=e;const[n,i]=(0,c.useState)(t.location),[s,u]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===s.target}),placeholder:(0,l.__)("Enter location. E.g: La Sagrada Familia, Barcelona, Spain","otter-blocks"),help:(0,l.__)("Press Enter to search the location","otter-blocks"),value:n,onChange:i,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:n});const e=await p(n);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===s.target&&u({})):u({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,c.createElement)(y,{markers:t.markers,dispatch:a,markersInteraction:r})))},f=o(5225);const{attributes:w}=r,C={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};var E={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};const{name:x}=r;(0,a.registerBlockType)(x,{...r,title:(0,l.__)("Maps","otter-blocks"),description:(0,l.__)("Display Open Street Maps on your website with Maps block.","otter-blocks"),icon:n.aD,keywords:["map","opeenstreetmap","location"],transforms:E,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,f.WX)(t,w);return()=>e(o.id)}),[o.id]);const s=(0,c.useRef)(null),[p,g]=(0,c.useState)(null),[h,k]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),E=(e,t)=>{if(window.L&&p&&t&&e){var o,a,r,n,c;null!==(o=e.id)&&void 0!==o||(e.id=(0,i.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=p.getCenter().lat),null!==(r=e.longitude)&&void 0!==r||(e.longitude=p.getCenter().lng),null!==(n=e.title)&&void 0!==n||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(c=e.description)&&void 0!==c||(e.description="");const s=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return s.on("movestart",(()=>{s.closeTooltip(),s.closePopup()})),s.on("moveend",(()=>{const o=s.getLatLng();t({type:C.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),s.on("click",(()=>{y(e.id)})),s.markerProps=e,s}return null},[x,T]=(0,c.useReducer)(((e,t)=>{switch(t.type){case C.ADD:const o=E(t.marker,t.dispatch);return[...e,o];case C.ADD_MANUAL:if(h){const o=E(t.marker,t.dispatch);return[...e,o]}return e;case C.REMOVE:return e.filter((e=>{let{markerProps:o}=e;return t.ids.includes(o.id)})).forEach((e=>{p.hasLayer(e)&&p.removeLayer(e)})),e.filter((e=>{let{markerProps:o}=e;return!t.ids.includes(o.id)}));case C.INIT:const a=t.markers.map((e=>E(e,t.dispatch)));return[...e,...a];case C.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,u.merge)(e.markerProps,t.updatedProps)),e}));default:console.warn((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: ","otter-blocks")+t.type)}return e}),[],(()=>[]));(0,c.useEffect)((()=>{(()=>{if(!s.current&&!window.L)return;s.current.innerHTML="";const e=window.L.map(s.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(e),e.on("zoom",(()=>{a({zoom:e.getZoom()})})),e.on("moveend",(()=>{const t=e.getCenter();a({latitude:t.lat.toString(),longitude:t.lng.toString()})})),e.on("click",(e=>{T({type:C.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:T}),k(!1)})),window.L.Control.AddMarker=window.L.Control.extend({onAdd:()=>{const e=window.L.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),t=window.L.DomUtil.create("span","dashicons dashicons-sticky",e);return window.L.DomEvent.on(e,"click",(e=>{window.L.DomEvent.stopPropagation(e),k(!h)})),e.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),e.appendChild(t),e},onRemove:()=>{}}),window.L.control.addmarker=e=>new window.L.Control.AddMarker(e),window.L.control.addmarker({position:"bottomleft"}).addTo(e),g(e),T({type:C.INIT,markers:o.markers,dispatch:T})})()}),[]),(0,c.useEffect)((()=>{o.height&&p&&p.invalidateSize(!0)}),[o.height,p]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&p.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,p]),(0,c.useEffect)((()=>{var e;null===(e=s.current)||void 0===e||e.classList.toggle("is-selecting-location",h)}),[h]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&a({bbox:p.getBounds().toBBoxString()})}),[o.latitude,o.longitude,p]),(0,c.useEffect)((()=>{x&&(x.forEach((e=>{p.hasLayer(e)||p.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),a=document.createElement("h6"),r=document.createElement("div"),n=document.createElement("p"),c=document.createElement("button");return a.innerHTML=e.title,n.innerHTML=e.description,c.onclick=()=>t({type:C.REMOVE,ids:[e.id]}),c.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),r.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),c.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(r),o.appendChild(c),r.appendChild(n),o})(t,T))})),o.markers.length!==x.length&&p&&a({markers:x.map((e=>{let{markerProps:t}=e;return t}))}))}),[x,p,o.markers]);const S=(0,m.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(_,{attributes:o,setAttributes:a,dispatch:T,markersInteraction:{openMarker:v,setOpenMarker:y}}),(0,c.createElement)("div",S,(0,c.createElement)(b.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,t,l,r)=>{a({height:parseInt(o.height+r.height,10)}),n(!0)},className:d()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":r})},(0,c.createElement)("div",{id:o.id,ref:s,style:{width:"100%",height:o.height||400}}))))},save:()=>null})},6099:function(e,t,o){var l=o(2553),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","editorScript":"lottie-player","script":"otter-lottie"}'),c=o(9307),i=o(2819),s=o(2175),d=o(5609),u=e=>{var t;let{className:o,file:r,onChange:n,isJSONAllowed:i,attributes:u}=e;const[m,b]=(0,c.useState)((null===(t=u.file)||void 0===t?void 0:t.url)||null),[p,g]=(0,c.useState)(!1);return i&&!Boolean(window.themeisleGutenberg.isWPVIP)?(0,c.createElement)(s.MediaPlaceholder,{labels:{title:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...r},onSelectURL:n,onSelect:n}):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d.Placeholder,{label:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks"),icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),className:o},(0,c.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),n(m))},(0,c.createElement)("input",{type:"url",value:m,className:"components-placeholder__input","aria-label":(0,a.__)("Lottie","otter-blocks"),placeholder:(0,a.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>b(e.target.value)}),(0,c.createElement)(d.Button,{isPrimary:!0,disabled:!m,type:"submit"},(0,a.__)("Embed","otter-blocks")),!Boolean(window.themeisleGutenberg.isWPVIP)&&(0,c.createElement)(d.Button,{isSecondary:!0,onClick:()=>g(!0)},(0,a.__)("Upload","otter-blocks")))),p&&(0,c.createElement)(d.Modal,{title:(0,a.__)("Allow JSON Uploads","otter-blocks"),closeLabel:(0,a.__)("Close"),onRequestClose:()=>g(!1),overlayClassName:"wp-block-themeisle-blocks-lottie-modal"},(0,a.__)("This file type is not permitted for security reasons. Would you still like to enable JSON uploads?","otter-blocks"),(0,c.createElement)("br",null),(0,c.createElement)("br",null),(0,c.createElement)(d.ExternalLink,{href:window.themeisleGutenberg.optionsPath},(0,a.__)("You can enable JSON uploads from Otter.","otter-blocks")),(0,c.createElement)("br",null),(0,c.createElement)("br",null),(0,a.__)("You will have to refresh the page after changing JSON upload settings.","otter-blocks")))},m=e=>{let{attributes:t,setAttributes:o,playerRef:l}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!0},(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Trigger","otter-blocks"),help:(0,a.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:t.trigger,options:[{label:(0,a.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,a.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,a.__)("Hover","otter-blocks"),value:"hover"},{label:(0,a.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{o({trigger:e})}}),"scroll"!==t.trigger&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Loop","otter-blocks"),help:(0,a.__)("Whether to loop animation.","otter-blocks"),checked:t.loop,onChange:e=>{o({loop:e}),l.current.setLooping(e),t.direction&&l.current.seek("100%"),l.current.play()}}),t.loop&&(0,c.createElement)(d.TextControl,{label:(0,a.__)("Numbers of loops","otter-blocks"),help:(0,a.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:t.count,onChange:e=>{o({count:Number(e)}),l.current.load(t.file.url)}}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Speed","otter-blocks"),help:(0,a.__)("Animation speed.","otter-blocks"),value:t.speed,onChange:e=>{o({speed:Number(e)}),l.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Reverse","otter-blocks"),help:(0,a.__)("Direction of animation.","otter-blocks"),checked:t.direction,onChange:e=>{o({direction:e}),l.current.setDirection(e?-1:1),l.current.seek(e?"100%":0)}})),(0,c.createElement)(s.__experimentalUnitControl,{onChange:e=>{const t=parseInt(e.slice(0,-1)),l=e.slice(-1);100<t&&"%"===l&&(e="100%"),o({width:e})},label:(0,a.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:Number.isInteger(t.width)?`${t.width}px`:t.width,units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Background","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,c.createElement)(s.InspectorAdvancedControls,null,(0,c.createElement)(d.TextControl,{label:(0,a.__)("Aria Label","otter-blocks"),help:(0,a.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:t.ariaLabel,onChange:e=>o({ariaLabel:e})})))},b=e=>{let{isEditing:t,setEditing:o}=e;return(0,c.createElement)(s.BlockControls,null,(0,c.createElement)(d.ToolbarGroup,null,(0,c.createElement)(d.Tooltip,{text:t?(0,a.__)("Save","otter-blocks"):(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(d.Button,{onClick:()=>o(!t)},(0,c.createElement)(d.Dashicon,{icon:t?"yes":"edit"})))))},p=o(7462),g=e=>{let{attributes:t,isSelected:o,playerRef:l}=e;(0,c.useEffect)((()=>{!(0,i.isEmpty)(t.file)&&t.loop&&null!==l.current&&l.current.addEventListener("complete",a)}),[]),(0,c.useEffect)((()=>{o?(l.current.play(),t.direction&&l.current.seek("100%")):l.current.stop()}),[o]);const a=()=>{l.current&&(l.current.setLooping(t.loop),l.current.play(),l.current.removeEventListener("complete",a))};return(0,c.createElement)("lottie-player",(0,p.Z)({id:t.id,ref:l,src:t.file.url,autoplay:!0,count:t.count,speed:t.speed,background:t.backgroundColor||t.backgroundGradient,direction:t.direction?-1:1,style:{width:!(!t.width||"%"===t.width.toString().slice(-1))&&`${t.width}px`,maxWidth:!(!t.width||"%"!==t.width.toString().slice(-1))&&`${t.width}`,height:"auto"},mode:"normal"},t.ariaLabel&&{"aria-label":t.ariaLabel}))},h=o(5225);const{attributes:k}=n;const{name:v}=n;(0,r.registerBlockType)(v,{...n,title:(0,a.__)("Lottie Animation","otter-blocks"),description:(0,a.__)("Add Lottie animations to your WordPress.","otter-blocks"),icon:l.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const r=(0,c.useRef)(null),[n,d]=(0,c.useState)(!Boolean(t.file));(0,c.useEffect)((()=>{const e=(0,h.WX)(a,k);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{let e=!0;return window.wp.api.loadPromise.then((()=>{(new window.wp.api.models.Settings).fetch().then((t=>{t.themeisle_allow_json_upload&&e&&v(t.themeisle_allow_json_upload)}))})),()=>{e=!1}}),[]);const[p,v]=(0,c.useState)(!1),y=(0,s.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(!(0,i.isEmpty)(t.file)&&n||!n)&&(0,c.createElement)(b,{isEditing:n,setEditing:d}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(m,{attributes:t,setAttributes:o,playerRef:r}),(0,c.createElement)("div",y,((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(u,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,i.pick)(e,["id","url"]);(0,i.isEmpty)(t)&&(t.url=e),o({file:{...t}}),d(!1)},isJSONAllowed:p,attributes:t}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(g,{attributes:t,isSelected:l,playerRef:r})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,c.createElement)("lottie-player",(0,p.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,c.createElement)("lottie-player",(0,p.Z)({autoplay:!0,loop:!0,count:t.direction?-1*t.count:t.count,speed:t.speed,direction:t.direction?-1:1,trigger:t.trigger,"data-loop":t.loop,mode:"normal",background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o))}})},5319:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/plugin-cards","title":"Plugin Card","category":"themeisle-blocks","description":"Plugin Card block lets you display plugins data in your blog posts.","keywords":["plugin","card","orbitfox"],"textdomain":"otter-blocks","attributes":{"slug":{"type":"string"}},"supports":{"html":false},"editorStyle":"otter-plugin-card-editor","style":"otter-plugin-card-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),u=o.n(d),m=o(4932),b=o(2819),p=o(6989),g=o.n(p),h=o(9630),k=e=>{let{setAttributes:t,hasError:o,setError:a,className:r}=e;const n=(0,c.useRef)(null);let i=!1;const d=[],[u,p]=(0,c.useState)(!1),[k,v]=(0,c.useState)(""),[y,_]=(0,c.useState)({}),[f,w]=(0,c.useState)(null);(0,c.useEffect)((()=>{let e=null;return null===f||i||(i=!0,(0,m.Z)(d[f],n.current,{onlyScrollIfNeeded:!0}),d[f].focus(),e=setTimeout((()=>{i=!1}),100)),()=>{clearTimeout(e)}}),[f]);const C=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=f?f-1:Object.keys(y).length-1;w(t)}},E=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=null===f||f===Object.keys(y).length-1?0:f+1;w(t)}},x=e=>{t({slug:e.slug}),_({})};return(0,c.createElement)(s.Placeholder,{icon:"admin-plugins",label:(0,l.__)("Plugin Card","otter-blocks"),instructions:(0,l.__)("Search for the plugin you want to display.","otter-blocks"),className:r},(0,c.createElement)("div",{className:"o-plugin-cards-search-field"},(0,c.createElement)(s.Dashicon,{icon:"search"}),u&&(0,c.createElement)(s.Spinner,null),(0,c.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Search for plugin…","otter-blocks"),value:k,onChange:v,onKeyDown:e=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:Object.keys(y).length&&!e.shiftKey&&w(0);break;case h.ENTER:(async e=>{t({slug:""}),p(!0),a(!1);const o=await g()({path:`otter/v1/plugins?search=${encodeURIComponent(e)}`});if(o.data.errors)return a(!0),p(!1),w(null),void _({});p(!1),w(null),_(o.data.plugins)})(e.target.value)}},onFocus:()=>w(null)}),y&&(0,c.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results",ref:n},Object.keys(y).map((e=>{const t=y[e];let o;return t.icons.svg&&(o=t.icons.svg),t.icons["2x"]&&(o=t.icons["2x"]),t.icons["1x"]&&(o=t.icons["1x"]),t.icons.default&&(o=t.icons.default),(0,c.createElement)("button",{className:"o-plugin-cards-list-item",key:e,ref:(l=e,e=>{d[l]=e}),onClick:e=>{e.preventDefault(),x(t)},onKeyDown:e=>((e,t)=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:if(e.shiftKey){0!==f&&C(e);break}if(f===Object.keys(y).length-1)break;E(e);break;case h.ENTER:x(t)}})(e,t)},(0,c.createElement)("img",{src:o}),(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,b.unescape)(t.name)}}));var l})))),o&&(0,c.createElement)("div",{className:"o-plugin-cards-error"},(0,c.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},v=e=>{let{setAttributes:t}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,c.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:y}=r;(0,a.registerBlockType)(y,{...r,title:(0,l.__)("Plugin Card","otter-blocks"),description:(0,l.__)("Plugin Card block lets you display plugins data in your blog posts.","otter-blocks"),icon:n.ZV,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,c.useState)(!1),r=(0,i.useBlockProps)();return t.slug?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(v,{setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(u(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,c.createElement)("div",r,(0,c.createElement)(k,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null})},2693:function(e,t,o){var l=o(7682),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":"number"},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),c=o(9307),i=o(917),s=o(6755),d=o(7231),u=o(2175),m=o(5609);const b=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToggleControl,{label:(0,a.__)("Close On Anchor Click","otter-blocks"),checked:t.anchorClose,onChange:()=>o({anchorClose:!t.anchorClose})}),t.anchorClose&&(0,c.createElement)(m.TextControl,{label:(0,a.__)("Close Anchor","otter-blocks"),help:(0,a.__)("You can use this anchor as an anchor link anywhere on the page to close the popup.","otter-blocks"),value:t.closeAnchor,onChange:e=>o({closeAnchor:e.replace(/[^a-zA-Z]/g,"")})}),"onClick"!==t.trigger&&(0,c.createElement)(m.ToggleControl,{label:(0,a.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:t.recurringClose,onChange:()=>o({recurringClose:!t.recurringClose})}),t.recurringClose&&"onClick"!==t.trigger&&(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Display Interval","otter-blocks"),help:(0,a.__)("Number of days until the popup is shown again.","otter-blocks"),min:0,max:100,value:t.recurringTime,onChange:e=>o({recurringTime:Number(e)})}))};var p=e=>{let{attributes:t,setAttributes:o}=e,l=[{label:(0,a.__)("On Load","otter-blocks"),value:"onLoad"}];return Boolean(window.themeisleGutenberg.hasNeveSupport.hasNeve)&&(l=[{label:(0,a.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,a.__)("On Anchor Click","otter-blocks"),value:"onClick",disabled:!Boolean(window.themeisleGutenberg.hasNeveSupport.hasNevePro)},{label:(0,a.__)("On Scroll","otter-blocks"),value:"onScroll",disabled:!Boolean(window.themeisleGutenberg.hasNeveSupport.hasNevePro)},{label:(0,a.__)("On Exit","otter-blocks"),value:"onExit",disabled:!Boolean(window.themeisleGutenberg.hasNeveSupport.hasNevePro)}]),(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(m.SelectControl,{label:(0,a.__)("Open Trigger","otter-blocks"),help:Boolean(window.themeisleGutenberg.hasNeveSupport.hasNeve)&&!Boolean(window.themeisleGutenberg.hasNeveSupport.hasNevePro)&&(0,a.__)("You need to have Neve Pro to activate Pro features.","otter-blocks"),options:l,value:t.trigger,onChange:e=>o({trigger:e})}),(void 0===t.trigger||"onLoad"===t.trigger)&&(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Wait Time","otter-blocks"),help:(0,a.__)("How much time to wait before showing the popup. Leave it empty to open instantly","otter-blocks"),min:0,max:100,value:t.wait,onChange:e=>o({wait:Number(e)})}),"onClick"===t.trigger&&(0,c.createElement)(m.TextControl,{label:(0,a.__)("Anchor","otter-blocks"),help:(0,a.__)("You can use this anchor as an anchor link anywhere on the page to open the popup.","otter-blocks"),value:t.anchor,onChange:e=>o({anchor:e.replace(/[^a-zA-Z]/g,"")})}),"onScroll"===t.trigger&&(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Scroll Distance","otter-blocks"),help:(0,a.__)("Show the modal when this percentage of the page has been scrolled.","otter-blocks"),min:0,max:100,value:t.scroll,onChange:e=>o({scroll:Number(e)})}),"onExit"===t.trigger&&(0,c.createElement)("p",null,(0,a.__)("Shows the modal when the user moves the mouse outside of the top of the window.","otter-blocks")),(0,c.createElement)(m.ToggleControl,{label:(0,a.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,c.createElement)(m.ToggleControl,{label:(0,a.__)("Close on Click Outside","otter-blocks"),checked:t.outsideClose,onChange:()=>o({outsideClose:!t.outsideClose})}),Boolean(window.themeisleGutenberg.hasNeveSupport.hasNeve)&&!Boolean(window.themeisleGutenberg.hasNeveSupport.hasNevePro)&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Disabled,null,(0,c.createElement)(b,{attributes:t,setAttributes:o})),(0,c.createElement)(m.ExternalLink,{href:"https://themeisle.com/themes/neve/pricing"},(0,a.__)("Extend Popup block functionalities with more options in Neve Pro.","otter-blocks"))),Boolean(window.themeisleGutenberg.hasNeveSupport.isBoosterActive)&&(0,c.createElement)(b,{attributes:t,setAttributes:o})),(0,c.createElement)(m.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Minimum Width","otter-blocks"),min:100,max:1e3,value:t.minWidth,onChange:e=>o({minWidth:Number(e)})}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,a.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,a.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,a.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,c.createElement)(m.RangeControl,{label:(0,a.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))},g=o(5225);const{attributes:h}=n;const{name:k}=n;(0,r.registerBlockType)(k,{...n,title:(0,a.__)("Popup","otter-blocks"),description:(0,a.__)("Display your content in beautiful popup with many customization options.","otter-blocks"),icon:l.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,g.WX)(l,h);return()=>e(t.id)}),[]);const[r,n]=(0,c.useState)(!1),b=i.iv`
122
  --minWidth: ${t.minWidth?t.minWidth+"px":"400px"};
 
123
  --backgroundColor: ${t.backgroundColor};
124
  --closeColor: ${t.closeColor};
125
  --overlayColor: ${t.overlayColor};
126
  --overlayOpacity: ${t.overlayOpacity?t.overlayOpacity/100:1};
127
- `,k=(0,u.useBlockProps)({id:t.id,css:b});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(p,{attributes:t,setAttributes:o}),(0,i.tZ)("div",k,(0,i.tZ)(m.Button,{isPrimary:!0,icon:s.Z,onClick:()=>n(!0)},(0,a.__)("Edit Popup","otter-blocks")),r&&(0,i.tZ)("div",{className:"otter-popup__modal_wrap"},(0,i.tZ)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>n(!1)}),(0,i.tZ)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,i.tZ)("div",{className:"otter-popup__modal_header"},(0,i.tZ)(m.Button,{icon:d.Z,onClick:()=>n(!1)})),(0,i.tZ)("div",{className:"otter-popup__modal_body"},(0,i.tZ)(u.InnerBlocks,null))))))},save:e=>{let{attributes:t}=e;const o=u.useBlockProps.save({id:t.id,className:"is-front","data-open":t.trigger,"data-dismiss":t.recurringClose?t.recurringTime:"","data-time":void 0===t.trigger||"onLoad"===t.trigger?t.wait||0:"","data-anchor":"onClick"===t.trigger?t.anchor:"","data-offset":"onScroll"===t.trigger?t.scroll:"","data-outside":t.outsideClose?t.outsideClose:"","data-anchorclose":t.anchorClose?t.closeAnchor:""});return(0,c.createElement)("div",o,(0,c.createElement)("div",{className:"otter-popup__modal_wrap"},(0,c.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay"}),(0,c.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,c.createElement)("div",{className:"otter-popup__modal_header"},(0,c.createElement)("button",{type:"button",class:"components-button has-icon"},(0,c.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},(0,c.createElement)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})))),(0,c.createElement)("div",{className:"otter-popup__modal_body"},(0,c.createElement)(u.InnerBlocks.Content,null)))))}})},374:function(e,t,o){o.d(t,{is:function(){return m},md:function(){return p},te:function(){return u},ue:function(){return b}});var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(198),i=o(4715),s=o(3486);const d=e=>{let{attributes:t,element:o,category:a,categoriesList:r}=e;return void 0!==a&&t.displayCategory&&r?(0,l.createElement)("span",{key:o,className:"o-posts-grid-post-category"},a.name):""},u=e=>{let{attributes:t,element:o,post:a}=e;const r=t.titleTag||"h5";var n;return t.displayTitle?(0,l.createElement)(r,{key:o,className:"o-posts-grid-post-title"},(0,l.createElement)("a",{href:a.link},(0,i.Uo)(null===(n=a.title)||void 0===n?void 0:n.rendered))):""},m=e=>{let{attributes:t,element:o,post:a,author:r,category:c}=e;return t.displayMeta&&(t.displayDate||t.displayAuthor)?(0,l.createElement)("p",{key:o,className:"o-posts-grid-post-meta"},t.displayDate&&
128
  /* translators: %s Date posted */
129
- (0,n.sprintf)((0,n.__)("on %s","otter-blocks"),(0,i.p6)(a.date)),t.displayAuthor&&void 0!==r&&
130
  /* translators: %s Author of the post */
131
- (0,n.sprintf)((0,n.__)(" by %s","otter-blocks"),r.name),t.displayComments&&(0,n.sprintf)(" - %1$s %2$s","0",(0,n.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==c?void 0:c.name)&&(0,n.sprintf)((0,n.__)(" - %s","otter-blocks"),c.name)):""},b=e=>{let{attributes:t,element:o,post:a}=e;var r;return 0<t.excerptLength&&t.displayDescription?(0,l.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,l.createElement)("p",null,(null===(r=a.excerpt)||void 0===r?void 0:r.rendered)&&(0,i.Uo)(a.excerpt.rendered).substring(0,t.excerptLength)+"…"),t.displayReadMoreLink&&(0,l.createElement)("a",{href:a.link,className:"o-posts-read-more"},(0,n.__)("Read more","otter-blocks"))):""},p=e=>{var t,o,a;let{customFieldData:r}=e;if(!r||!r.display||null===(t=window)||void 0===t||null===(o=t.themeisleGutenberg)||void 0===o||null===(a=o.hasNeveSupport)||void 0===a||!a.hasNevePro)return(0,l.createElement)(l.Fragment,null);const{acfFieldDict:n}=(0,l.useContext)(s.r),c=n[r.field];return(0,l.createElement)("div",{className:"o-posts-custom-field"},((null==c?void 0:c.prepend)||"")+(null!=c&&c.value?c.value:(null==c?void 0:c.default_value)||"")+((null==c?void 0:c.append)||""))};t.ZP=e=>{let{attributes:t,posts:o,categoriesList:a,authors:n}=e;return(0,l.createElement)("div",{className:"grid"===t.style?r()("is-grid",`o-posts-grid-columns-${t.columns}`,{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage}):r()("is-list",{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage})},o.filter((e=>e)).slice(t.enableFeaturedPost?1:0).map((e=>{var o,i;const s=a&&0<(null==e||null===(o=e.categories)||void 0===o?void 0:o.length)?a.find((t=>t.id===e.categories[0])):void 0,g=n&&e.author?n.find((t=>t.id===e.author)):void 0;return(0,l.createElement)("div",{key:e.link,className:"o-posts-grid-post-blog o-posts-grid-post-plain"},(0,l.createElement)("div",{className:r()("o-posts-grid-post")},0!==e.featured_media&&t.displayFeaturedImage&&(0,l.createElement)(c.Z,{id:e.featured_media,link:e.link,alt:null===(i=e.title)||void 0===i?void 0:i.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,l.createElement)("div",{className:r()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage})},t.template.map((o=>{var r,n,c;switch(null!=(c=o)&&c.startsWith("custom_")?"custom":c){case"category":return(0,l.createElement)(d,{attributes:t,element:o,category:s,categoriesList:a});case"title":return(0,l.createElement)(u,{attributes:t,element:o,post:e});case"meta":return(0,l.createElement)(m,{attributes:t,element:o,post:e,author:g,category:s});case"description":return(0,l.createElement)(b,{attributes:t,element:o,post:e});case"custom":const c=null===(r=t.customMetas)||void 0===r||null===(n=r.filter((e=>{let{id:t}=e;return t===o})))||void 0===n?void 0:n.pop();return(0,l.createElement)(p,{customFieldData:c});default:return""}})))))})))}},198:function(e,t,o){var l=o(9307),a=o(5609),r=o(9818);t.Z=e=>{let{id:t,link:o,alt:n,size:c,imgStyle:i}=e;const{featuredImage:s,altText:d}=(0,r.useSelect)((e=>{const o=e("core").getMedia(t);return{featuredImage:o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[c]?o.media_details.sizes[c].source_url:o.source_url:null,altText:o&&o.alt_text?o.alt_text:n}}),[c,t]);return null===s?(0,l.createElement)(l.Fragment,null):(0,l.createElement)("div",{className:"o-posts-grid-post-image"},(0,l.createElement)("a",{href:o},s?(0,l.createElement)("img",{src:s,size:c,alt:d,"data-id":t,style:i}):(0,l.createElement)(a.Placeholder,null,(0,l.createElement)(a.Spinner,null))))}},3486:function(e,t,o){o.d(t,{r:function(){return I},Z:function(){return G}});var l=o(7462),a=o(9307),r=o(917),n=o(5736),c=o(2819),i=o(6989),s=o.n(i),d=o(5609),u=o(2175),m=o(9818),b=o(2467),p=e=>{let{attributes:t,setAttributes:o}=e;const l=u.BlockVerticalAlignmentToolbar;return(0,a.createElement)(u.BlockControls,null,(0,a.createElement)(l,{label:(0,n.__)("Change vertical alignment","otter-blocks"),value:t.verticalAlign,onChange:e=>o({verticalAlign:e})}))},g=o(454),h=o.n(g),k=o(4184),v=o.n(k),y=o(2045),_=o(4027),f=o(6993);const w=(0,_.W6)((()=>(0,a.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,a.createElement)("span",null)))),C={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},E=e=>{var t,o,l,r,i,s;let{attributes:u,setAttributes:b,template:p,disabled:g}=e;const[h,k]=(0,a.useState)(!1),y=null==p?void 0:p.startsWith("custom_"),_=null==u||null===(t=u.customMetas)||void 0===t||null===(o=t.filter((e=>{let{id:t}=e;return t===p})))||void 0===o?void 0:o.pop(),E={image:u.displayFeaturedImage,category:u.displayCategory,title:u.displayTitle,meta:u.displayMeta,description:u.displayDescription},x=(0,m.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),T=e=>{const t={..._,...e};b({customMetas:u.customMetas.map((e=>e.id===_.id?t:e))})},{acfData:S,acfFieldDict:M,ALLOWED_ACF_TYPES:B}=(0,a.useContext)(I),z=y?(0,c.startCase)((0,c.toLower)((null===(l=M[_.field])||void 0===l?void 0:l.label)||"Custom Type")):(0,c.startCase)((0,c.toLower)(p)),P=E[p]||(null==_?void 0:_.display),V=P?"visibility":"hidden";
132
  /* translators: %s Label */
133
- let R=(0,n.sprintf)((0,n.__)("Display %s","otter-blocks"),z);return P&&(
134
  /* translators: %s Label */
135
- R=(0,n.sprintf)((0,n.__)("Hide %s","otter-blocks"),z)),(0,a.createElement)("div",{className:v()("o-sortable-item-area",`o-sortable-item-area-${p}`)},(0,a.createElement)("div",{className:v()("o-sortable-item",{disabled:g,hidden:!P,editable:P})},!g&&(0,a.createElement)(w,null),(0,a.createElement)("div",{className:"o-sortable-label"},z),P&&"category"!==p&&(0,a.createElement)(d.Button,{icon:h?"arrow-up-alt2":"arrow-down-alt2",label:h?(0,n.__)("Close Settings","otter-blocks"):(0,n.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>k(!h)}),(0,a.createElement)(d.Button,{icon:V,label:R,showTooltip:!0,className:"o-sortable-button",onClick:()=>{y?T({display:!_.display}):(e=>{const t=C[e]||e;b({[t]:!u[t]})})(p),k(!1)}})),P&&"category"!==p&&(0,a.createElement)("div",{className:v()("o-sortable-control-area",{opened:h&&P})},"image"===p&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.SelectControl,{label:(0,n.__)("Image Size","otter-blocks"),value:u.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,c.startCase)((0,c.toLower)(e)),value:e}))),onChange:e=>b({imageSize:e})}),(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Crop image to fit","otter-blocks"),checked:u.cropImage,onChange:e=>b({cropImage:e})}),(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Display box shadow","otter-blocks"),checked:u.imageBoxShadow,onChange:e=>b({imageBoxShadow:e})}),(0,a.createElement)(d.RangeControl,{label:(0,n.__)("Border Radius","otter-blocks"),value:u.borderRadius,onChange:e=>b({borderRadius:e}),min:0,max:50,allowReset:!0}),(0,a.createElement)(d.RangeControl,{label:(0,n.__)("Image Width","otter-blocks"),value:u.imageWidth,onChange:e=>b({imageWidth:e}),min:0,max:500,allowReset:!0})),"title"===p&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.SelectControl,{label:(0,n.__)("Title Tag","otter-blocks"),value:u.titleTag||"h5",options:[{label:(0,n.__)("H1","otter-blocks"),value:"h1"},{label:(0,n.__)("H2","otter-blocks"),value:"h2"},{label:(0,n.__)("H3","otter-blocks"),value:"h3"},{label:(0,n.__)("H4","otter-blocks"),value:"h4"},{label:(0,n.__)("H5","otter-blocks"),value:"h5"},{label:(0,n.__)("H6","otter-blocks"),value:"h6"}],onChange:e=>b({titleTag:e})}),(0,a.createElement)(f.Z,{label:(0,n.__)("Font size","otter-blocks")},(0,a.createElement)(d.RangeControl,{value:(()=>{switch(x){case"Desktop":return u.customTitleFontSize;case"Tablet":return u.customTitleFontSizeTablet;case"Mobile":return u.customTitleFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===x?b({customTitleFontSize:e}):"Tablet"===x?b({customTitleFontSizeTablet:e}):"Mobile"===x&&b({customTitleFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),"meta"===p&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Display post date","otter-blocks"),checked:u.displayDate,onChange:e=>b({displayDate:e})}),(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Display author","otter-blocks"),checked:u.displayAuthor,onChange:e=>b({displayAuthor:e})}),(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Display comments","otter-blocks"),checked:u.displayComments,onChange:e=>b({displayComments:e})}),(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Display category","otter-blocks"),checked:u.displayPostCategory,onChange:e=>b({displayPostCategory:e})})),"description"===p&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.TextControl,{label:(0,n.__)("Excerpt Limit","otter-blocks"),type:"number",value:u.excerptLength,onChange:e=>b({excerptLength:e})}),(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Display read more link","otter-blocks"),checked:u.displayReadMoreLink,onChange:e=>b({displayReadMoreLink:e})}),(0,a.createElement)(f.Z,{label:(0,n.__)("Font size","otter-blocks")},(0,a.createElement)(d.RangeControl,{value:(()=>{switch(x){case"Desktop":return u.customDescriptionFontSize;case"Tablet":return u.customDescriptionFontSizeTablet;case"Mobile":return u.customDescriptionFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===x?b({customDescriptionFontSize:e}):"Tablet"===x?b({customDescriptionFontSizeTablet:e}):"Mobile"===x&&b({customDescriptionFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),y&&_&&(0,a.createElement)(a.Fragment,null,!(0,c.isEmpty)(S)&&(0,a.createElement)(d.BaseControl,{label:(0,n.__)("Fields","otter-blocks")},(0,a.createElement)("select",{value:M[_.field]?_.field:"none",onChange:e=>T({field:e.target.value}),className:"components-select-control__input"},(0,a.createElement)("option",{value:"none"},(0,n.__)("Select a field","otter-blocks")),S.map((e=>{var t,o;return(0,a.createElement)("optgroup",{label:null==e||null===(t=e.data)||void 0===t?void 0:t.title},null==e||null===(o=e.fields)||void 0===o?void 0:o.filter((e=>{let{key:t,label:o,type:l}=e;return t&&o&&B.includes(l)})).map((e=>{let{key:t,label:o}=e;return(0,a.createElement)("option",{value:t},o)})))})))),!(0,c.isEmpty)(M)&&M[_.field]&&(0,a.createElement)(a.Fragment,null,M[_.field].default_value&&(0,a.createElement)(d.TextControl,{label:(0,n.__)("Default Value","otter-blocks"),value:M[_.field].default_value,disabled:!0}),M[_.field].prepend&&(0,a.createElement)(d.TextControl,{label:(0,n.__)("Before","otter-blocks"),value:M[_.field].prepend,disabled:!0}),M[_.field].append&&(0,a.createElement)(d.TextControl,{label:(0,n.__)("After","otter-blocks"),value:M[_.field].append,disabled:!0})),(null===(r=M[_.field])||void 0===r?void 0:r.urlLocation)&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.ExternalLink,{href:null===(i=M[_.field])||void 0===i?void 0:i.urlLocation,target:"_blank"},(0,n.__)("Edit in ACF","otter-blocks")),(0,a.createElement)("br",null)),(0,c.isEmpty)(S)?(0,a.createElement)(d.ExternalLink,{href:`${(null===(s=window.themeisleGutenberg)||void 0===s?void 0:s.rootUrl)||""}/wp-admin/edit.php?post_type=acf-field-group`,target:"_blank"},(0,n.__)("There are no ACF fields. You can use this option after you add some.","otter-blocks")):!M[_.field]&&(0,n.__)("The selected field does not longer exists. Please select another field.","otter-blocks"),(0,a.createElement)(d.Button,{onClick:()=>{var e,t;b({template:null===(e=u.template)||void 0===e?void 0:e.filter((e=>e!==(null==_?void 0:_.id))),customMetas:null===(t=u.customMetas)||void 0===t?void 0:t.filter((e=>(null==e?void 0:e.id)!==(null==_?void 0:_.id)))})},variant:"secondary",isSecondary:!0,isDestructive:!0,className:"o-conditions__add"},(0,n.__)("Delete","otter-blocks")))))},x=(0,_.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:r}=e;return(0,a.createElement)(E,{attributes:t,setAttributes:o,template:l,disabled:r})})),T=(0,_.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,a.createElement)("div",null,null==o||null===(t=o.template)||void 0===t?void 0:t.filter((e=>{var t,o,l,a;return!(null!=e&&e.startsWith("custom_")&&(void 0===(null===(t=window)||void 0===t?void 0:t.acf)||null===(o=window)||void 0===o||null===(l=o.themeisleGutenberg)||void 0===l||null===(a=l.hasNeveSupport)||void 0===a||!a.hasNevePro))})).map(((e,t)=>(0,a.createElement)(x,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))}));var S=e=>{var t,o,l,r,i,s,u,m,b,p,g,k,_,f,w,C,x;let{attributes:S,setAttributes:M}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:v()("otter-blocks-sortable",S.style)},(0,a.createElement)(E,{attributes:S,setAttributes:M,template:"image",disabled:!0}),(0,a.createElement)(T,{attributes:S,setAttributes:M,onSortEnd:e=>{let{oldIndex:t,newIndex:o}=e;const l=h()(S.template,t,o);M({template:l})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(null===(t=window.themeisleGutenberg)||void 0===t||null===(o=t.hasNeveSupport)||void 0===o?void 0:o.hasNeve)&&(0,a.createElement)(a.Fragment,null,void 0===(null===(l=window)||void 0===l?void 0:l.acf)?(0,a.createElement)(d.ExternalLink,{href:"https://wordpress.org/plugins/advanced-custom-fields/",target:"_blank"},(0,n.__)("Activate Advance Custom Fields to add more fields.","otter-blocks")):(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:void 0===(null===(r=window)||void 0===r?void 0:r.acf)||!(null!==(i=window)&&void 0!==i&&null!==(s=i.themeisleGutenberg)&&void 0!==s&&null!==(u=s.hasNeveSupport)&&void 0!==u&&u.hasNevePro)||!(null!==(m=window)&&void 0!==m&&null!==(b=m.themeisleGutenberg)&&void 0!==b&&null!==(p=b.hasNeveSupport)&&void 0!==p&&p.isBoosterActive),onClick:()=>{let e=(0,y.Z)().slice(0,8);for(;0<(null==S||null===(t=S.customMetas)||void 0===t?void 0:t.some((t=>{let{otherId:o}=t;return o===e})));){var t;e=(0,y.Z)().slice(0,8)}e=`custom_${e}`;const o={id:e,field:"",display:!0},{template:l,customMetas:a}=(()=>{var e,t;const o=(0,c.intersection)(S.template,null==S||null===(e=S.customMetas)||void 0===e?void 0:e.map((e=>{let{id:t}=e;return t})));return{template:null==S?void 0:S.template.filter((e=>!e.startsWith("custom_")||o.includes(e))),customMetas:null===(t=S.customMetas)||void 0===t?void 0:t.filter((e=>{let{id:t}=e;return o.includes(t)}))}})();M({template:[...l,e],customMetas:a?[...a,o]:[o]})}},(0,n.__)("Add Meta Field","otter-blocks")),(!(null!==(g=window.themeisleGutenberg)&&void 0!==g&&null!==(k=g.hasNeveSupport)&&void 0!==k&&k.hasNevePro)||!(null!==(_=window)&&void 0!==_&&null!==(f=_.themeisleGutenberg)&&void 0!==f&&null!==(w=f.hasNeveSupport)&&void 0!==w&&w.isBoosterActive))&&(0,a.createElement)(d.ExternalLink,{href:null!==(C=window.themeisleGutenberg)&&void 0!==C&&null!==(x=C.hasNeveSupport)&&void 0!==x&&x.hasNevePro?window.themeisleGutenberg.hasNeveSupport.optionsPage:"https://themeisle.com/themes/neve/",target:"_blank"},(0,n.__)("Enable ACF fields with Neve Pro's Block Editor Booster.","otter-blocks"))))))},M=o(5241),B=o(8286),z=o(4715),P=e=>{let{attributes:t,setAttributes:o,changeStyle:l,categoriesList:r}=e;const{slugs:c}=(0,m.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),i=r.reduce(((e,t)=>({...e,[t.name]:t})),{}),s=t.categories?t.categories.map((e=>{const t=r.find((t=>t.id===Number(e.id)));return{id:e.id,name:(null==t?void 0:t.name)||(null==t?void 0:t.slug)||""}})):[],b="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,a.createElement)(u.InspectorControls,null,(0,a.createElement)(d.PanelBody,{title:(0,n.__)("Styles","otter-blocks"),initialOpen:!1},(0,a.createElement)(M.V,{value:t.style,options:[{label:(0,n.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,n.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:l})),(0,a.createElement)(d.PanelBody,{title:(0,n.__)("Post Types","otter-blocks"),initialOpen:!1},(0,a.createElement)(d.BaseControl,null,(0,n.__)("Select the types of the post. If none is selected, the default WordPress post will be displayed.","otter-blocks")),(0,a.createElement)(d.SelectControl,{label:(0,n.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:c.map((e=>({label:(0,z.__)(e),value:e})))})),(0,a.createElement)(d.PanelBody,{title:(0,n.__)("Settings","otter-blocks")},"grid"===t.style&&(0,a.createElement)(d.RangeControl,{label:(0,n.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,a.createElement)(d.QueryControls,{order:t.order,orderBy:t.orderBy,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),numberOfItems:t.postsToShow,onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:i,selectedCategoryId:b,selectedCategories:s,onCategoryChange:e=>{let t;"object"==typeof e?0<e.length&&(t=e.map((e=>{if("object"==typeof e)return e;const t=r.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:r.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,a.createElement)(d.TextControl,{label:(0,n.__)("Offset","otter-blocks"),help:(0,n.__)("Number of post to displace or pass over.","otter-blocks"),type:"number",value:t.offset,min:0,onChange:e=>o({offset:Number(e)})}),(0,a.createElement)(d.ToggleControl,{label:(0,n.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,a.createElement)(d.BaseControl,{label:(0,n.__)("Text alignment","otter-blocks")},(0,a.createElement)(B.Z,{value:t.textAlign,options:[{icon:"editor-alignleft",label:(0,n.__)("Left","otter-blocks"),value:"left"},{icon:"editor-aligncenter",label:(0,n.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,n.__)("Right","otter-blocks"),value:"right"}],onChange:e=>o({textAlign:e}),showBottomLabels:!0}))),(0,a.createElement)(d.PanelBody,{title:(0,n.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,a.createElement)(S,{attributes:t,setAttributes:o})))},V=o(5225),R=o(374);const N={posts:{slugs:[],usedSlugs:[]}};(0,m.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=N,o={getPostsSlugs:()=>t.posts.slugs,getPostsUsedSlugs:()=>t.posts.usedSlugs},l={setPostsSlugs(o){t.posts.slugs=o,e()},setPostsUsedSlugs(o){t.posts.usedSlugs.push(...o),e()},setOnlyOneSlug(o){t.posts.usedSlugs=[o],e()},removePostsUsedSlugs(o){t.posts.usedSlugs=t.posts.usedSlugs.filter((e=>!o.includes(e))),e()}};return{getSelectors:()=>o,getActions:()=>l,subscribe(t){e=t}}})());var L=o(198),H=e=>{var t;let{post:o,attributes:l,author:r,category:n}=e;return o?(0,a.createElement)("div",{className:v()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,a.createElement)(L.Z,{id:o.featured_media,link:o.link,alt:null===(t=o.title)||void 0===t?void 0:t.rendered,imgStyle:{borderRadius:void 0!==l.borderRadius?l.borderRadius+"px":void 0}}),(0,a.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{var t,c,i;switch(null!=(i=e)&&i.startsWith("custom_")?"custom":i){case"title":return(0,a.createElement)(R.te,{attributes:l,element:e,post:o});case"meta":return(0,a.createElement)(R.is,{attributes:l,element:e,post:o,author:r,category:n});case"description":return(0,a.createElement)(R.ue,{attributes:l,element:e,post:o});case"custom":const i=null===(t=l.customMetas)||void 0===t||null===(c=t.filter((t=>{let{id:o}=t;return o===e})))||void 0===c?void 0:c.pop();return(0,a.createElement)(R.md,{customFieldData:i});default:return""}})))):""};const{attributes:A}=b,I=(0,a.createContext)({}),O=["text","textarea","range","number","url","email","password"];var G=e=>{let{attributes:t,setAttributes:o,clientId:i}=e;(0,a.useEffect)((()=>{const e=(0,V.WX)(i,A);return()=>e(t.id)}),[t.id]);const[b,g]=(0,a.useState)([]),[h,k]=(0,a.useState)([]),[v,y]=(0,a.useState)({}),{posts:_,categoriesList:f,authors:w}=(0,m.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,c.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,c.isUndefined)(e))),a=t.postTypes;return{posts:0<a.length?a.map((t=>e("core").getEntityRecords("postType",t,l))).flat():e("core").getEntityRecords("postType","post",l),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getUsers({who:"authors"})}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset,t.postTypes]),C=e=>{o({style:e})};(0,a.useEffect)((()=>{(async()=>{g(await(0,z.R3)())})()}),[]),(0,a.useEffect)((()=>{(0,m.dispatch)("otter-store").setPostsSlugs(b)}),[b]),(0,a.useEffect)((()=>{if(!window.acf)return;let e=!0;return s()({path:"otter/v1/acf-fields"}).then((t=>{var o;null!=t&&t.success&&e&&(k(null==t?void 0:t.groups),y(null==t||null===(o=t.groups)||void 0===o?void 0:o.map((e=>{let{fields:t,data:o}=e;return t.map((e=>{var t;return e.urlLocation=`${(null===(t=window.themeisleGutenberg)||void 0===t?void 0:t.rootUrl)||""}/wp-admin/post.php?post=${o.ID}&action=edit`,e}))})).flat().reduce(((e,t)=>(t.key&&t.label&&(e[t.key]=(0,c.pick)(t,["label","type","prepend","append","default_value","value","urlLocation"])),e)),{})))})),()=>{e=!1}}),[]);const E=r.iv`
136
  ${t.imageWidth&&`--imgWidth: ${t.imageWidth}px;`}
137
  ${t.borderRadius&&`--imgBorderRadius: ${t.borderRadius}px;`}
138
- --vertAlign: ${(0,z.Vg)(t.verticalAlign)};
139
  --textAlign: ${t.textAlign};
140
 
141
  @media ( min-width: 960px ) {
@@ -152,7 +142,7 @@ R=(0,n.sprintf)((0,n.__)("Hide %s","otter-blocks"),z)),(0,a.createElement)("div"
152
  ${t.customTitleFontSizeMobile&&`--titleTextSize: ${t.customTitleFontSizeMobile}px;`}
153
  ${t.customDescriptionFontSizeMobile&&`--descriptionTextSize: ${t.customDescriptionFontSizeMobile}px;`}
154
  }
155
- `,x=(0,u.useBlockProps)();return _&&f&&w?0===_.length?(0,r.tZ)(a.Fragment,null,(0,r.tZ)("div",x,(0,r.tZ)(d.Placeholder,null,(0,n.__)("No Posts","otter-blocks"))),f&&t.offset||b.length?(0,r.tZ)(P,{attributes:t,setAttributes:o,changeStyle:C,categoriesList:f}):null):(0,r.tZ)(a.Fragment,null,(0,r.tZ)(I.Provider,{value:{acfData:h,acfFieldDict:v,ALLOWED_ACF_TYPES:O}},(0,r.tZ)(M.d,{label:(0,n.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,n.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,n.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:C}),(0,r.tZ)(P,{attributes:t,setAttributes:o,changeStyle:C,categoriesList:f,posts:_}),(0,r.tZ)(p,{attributes:t,setAttributes:o}),(0,r.tZ)("div",(0,l.Z)({},x,{css:E}),(0,r.tZ)(d.Disabled,null,t.enableFeaturedPost&&(0,r.tZ)(H,{attributes:t,post:null==_?void 0:_[0],category:f[0],author:w[0]}),(0,r.tZ)(R.ZP,{attributes:t,posts:_,categoriesList:f,authors:w}))))):(0,r.tZ)(a.Fragment,null,(0,r.tZ)("div",x,(0,r.tZ)(d.Placeholder,null,(0,r.tZ)(d.Spinner,null),(0,n.__)("Loading Posts","otter-blocks"))),f&&t.offset?(0,r.tZ)(P,{attributes:t,setAttributes:o,changeStyle:C,categoriesList:f}):null)}},9047:function(e,t,o){var l=o(5736),a=o(4981),r=o(2467),n=o(340);const{attributes:c}=r;var i=[{attributes:{...c,categories:{type:"string"}},supports:{align:["wide","full"],html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}],s=o(3486);const{name:d}=r;(0,a.registerBlockType)(d,{...r,title:(0,l.__)("Posts","otter-blocks"),description:(0,l.__)("Display a list of your most recent posts in a beautiful layout.","otter-blocks"),icon:n.ki,keywords:["posts","grid","news"],deprecated:i,edit:s.Z,save:()=>null})},6951:function(e,t,o){var l=o(5736),a=o(4981),r=o(9818),n=o(340),c=JSON.parse('{"kQ":"\x3c!-- wp:themeisle-blocks/advanced-columns {\\"id\\":\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\",\\"columns\\":3,\\"layout\\":\\"equal\\",\\"layoutMobile\\":\\"collapsedRows\\",\\"padding\\":{\\"top\\":\\"80px\\",\\"bottom\\":\\"80px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingTablet\\":{\\"top\\":\\"40px\\",\\"bottom\\":\\"40px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\"},\\"columnsWidth\\":1170,\\"horizontalAlign\\":\\"center\\",\\"verticalAlign\\":\\"flex-start\\",\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"backgroundOverlayPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"columnsHTMLTag\\":\\"section\\",\\"align\\":\\"full\\"} --\x3e\\n<section id=\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\" class=\\"wp-block-themeisle-blocks-advanced-columns alignfull has-3-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-collapsedRows-layout has-vertical-flex-start\\"><div class=\\"wp-block-themeisle-blocks-advanced-columns-overlay\\"></div><div class=\\"innerblocks-wrap\\">\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-43e17023\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-43e17023\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\">Essential</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-7d521980\\"><strong>$59</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-ee4f525b\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-64264549\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-64264549\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e30ccf77\\">Business</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\"><strong>$129</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-fe18de7e\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-09158d16\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-09158d16\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-b3766bd8\\">VIP</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e601353c\\"><strong>$199</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-39d2e261\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-2c744428\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-2c744428\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e</div></section>\\n\x3c!-- /wp:themeisle-blocks/advanced-columns --\x3e"}');const{getBlockType:i}=(0,r.select)("core/blocks"),s=()=>{const e=setInterval((()=>{if(void 0===i("themeisle-blocks/advanced-columns"))return s();const t=(0,a.parse)(c.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:n.S3,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}),clearInterval(e)}),2e3)};s()},3105:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/progress-bar","title":"Progress Bar","category":"themeisle-blocks","description":"Show your progress with a beautiful Progress Bar block.","keywords":["progress","bar","skills"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"percentagePosition":{"type":"string","default":"default"},"height":{"type":"number","default":30},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"barBackgroundColor":{"type":"string"},"titleColor":{"type":"string"},"percentageColor":{"type":"string"}},"editorStyle":"otter-progress-bar-editor","style":"otter-progress-bar-style","script":"otter-progress-bar"}'),n=o(9307),c=o(4184),i=o.n(c),s=o(917),d=o(5609),u=o(2175),m=o(5225),b=o(2819),p=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:r,setHeightMode:c}=e;return(0,n.createElement)(u.InspectorControls,null,(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,n.createElement)(d.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the progress bar.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),30<=t.height&&(0,n.createElement)(d.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Highlight","otter-blocks"),value:"highlight"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"}],onChange:e=>{o({titleStyle:e})}}),(0,n.createElement)(d.SelectControl,{label:(0,l.__)("Show Percentage","otter-blocks"),value:t.percentagePosition,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Append","otter-blocks"),value:"append"},{label:(0,l.__)("Tooltip","otter-blocks"),value:"tooltip"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"}],onChange:e=>{r.isAutomatic&&(r.percentagePosition=e,c({...r})),o({percentagePosition:e})}})),(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:t.height,onChange:a,min:0,max:100}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),help:(0,l.__)("Round the corners of the progress bar.","otter-blocks"),value:t.borderRadius,onChange:e=>{o({borderRadius:e})},initialPosition:5,min:0,max:35}),(0,n.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.barBackgroundColor,onColorChange:e=>{o({barBackgroundColor:e})}}),(0,n.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,n.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Percentage Color","otter-blocks"),colorValue:t.percentageColor,onColorChange:e=>{o({percentageColor:e})}}),(0,n.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))};const{attributes:g}=r;var h={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,b.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,b.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};const{name:k}=r;(0,a.registerBlockType)(k,{...r,title:(0,l.__)("Progress Bar","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Progress Bar block.","otter-blocks"),icon:"minus",keywords:["progress","bar","skills"],transforms:h,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:r}=e;(0,n.useEffect)((()=>{const e=(0,m.WX)(a,g);return()=>e(t.id)}),[t.id]);const[c,b]=(0,n.useState)(!1),[h,k]=(0,n.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),v=(0,n.useRef)(null);(0,n.useEffect)((()=>{let e=null;if(v.current)return b(!1),e=setTimeout((()=>b(!0)),1e3*t.duration),v.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const y=e=>{30>e?(h.isAutomatic||k({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(h.isAutomatic&&k({isAutomatic:!1}),o({titleStyle:h.isAutomatic?h.titleStyle:t.titleStyle,percentagePosition:h.isAutomatic?h.percentagePosition:t.percentagePosition,height:e}))},_=s.iv`
156
  --titleColor: ${t.titleColor};
157
  --percentageColor: ${t.percentageColor};
158
  --percentageColorOuter: ${t.percentageColor};
@@ -162,48 +152,26 @@ R=(0,n.sprintf)((0,n.__)("Hide %s","otter-blocks"),z)),(0,a.createElement)("div"
162
  --borderRadius: ${void 0!==t.borderRadius?t.borderRadius:5}px;
163
  --height: ${void 0!==t.height?t.height:30}px;
164
  --barBackground: ${t.barBackgroundColor};
165
- `,f=(0,u.useBlockProps)({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),css:_});return(0,s.tZ)(n.Fragment,null,(0,s.tZ)(p,{attributes:t,setAttributes:o,onHeightChange:y,heightMode:h,setHeightMode:k}),(0,s.tZ)("div",f,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,s.tZ)(u.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,s.tZ)(d.ResizableBox,{size:{height:t.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:l,onResizeStop:(e,o,l,a)=>{y(parseInt(t.height+a.height,10)),r(!0)},onResizeStart:()=>{r(!1)}},(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,s.tZ)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,s.tZ)(u.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:v},"tooltip"===t.percentagePosition&&c&&(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=u.useBlockProps.save({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,n.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,n.createElement)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,n.createElement)("span",null,t.title)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))}})},9860:function(e,t,o){var l=o(9307),a=o(5736),r=o(4981),n=o(2175),c=o(5609),i=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/review-comparison","title":"Review Comparison Table","category":"themeisle-blocks","description":"A way to compare different product reviews made on the website.","keywords":["product","review","comparison"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"reviews":{"type":"array","default":[]},"buttonColor":{"type":"string"},"buttonText":{"type":"string"}},"supports":{"html":false},"editorStyle":"otter-review-comparison-editor","style":"otter-review-comparison-style"}'),s=o(340),d=o(917),u=o(4184),m=o.n(u),b=o(1463),p=o.n(b),g=o(6989),h=o.n(g),k=o(6030),v=e=>{let{attributes:t,setAttributes:o,data:r,onComplete:n,isLoading:i,isComplete:s,isError:d}=e;const[u,m]=(0,l.useState)(""),b=e=>{const l=[...t.reviews];if(l.includes(e)){const t=l.indexOf(e);-1!==t&&l.splice(t,1)}else l.push(e);o({reviews:l})},p=e=>{let{label:t,value:o}=e;return(0,l.createElement)("span",{className:"o-review-comparison_tag"},(0,l.createElement)("span",{className:"o-review-comparison_tag_title"},t),(0,l.createElement)(c.Button
166
- /* translators: %s Label */,{label:(0,a.sprintf)((0,a.__)("Remove %s","otter-blocks"),t),icon:"dismiss",onClick:()=>b(o)}))};return(0,l.createElement)(c.Placeholder,{label:(0,a.__)("Product Review Comparison","otter-blocks"),instructions:(0,a.__)("Display a selection of product reviews in a comparison table.","otter-blocks"),icon:k.Z,isColumnLayout:!0,className:"o-review-comparison__placeholder"},i&&(0,l.createElement)(c.Spinner,null),d&&(0,a.__)("There seems to have been an error.","otter-blocks"),s&&!Boolean(r.length)&&(0,a.__)("No reviews found.","otter-blocks"),s&&Boolean(r.length)&&(0,l.createElement)("div",{className:"o-review-comparison__placeholder__container"},(0,l.createElement)("div",{className:"o-review-comparison__placeholder__selected"},(0,l.createElement)("div",{className:"o-review-comparison__placeholder__selected_label"},
167
- /* translators: %s Number of selected reviews. */
168
- (0,a.sprintf)((0,a.__)("%s reviews selected","otter-blocks"),t.reviews.length)),t.reviews.filter((e=>{const t=e.split("-");return r.find((e=>e.ID===Number(t[0])&&e.attrs.id.slice(e.attrs.id.length-8)===t[1]))})).map((e=>{const t=e.split("-");return{label:r.find((e=>e.ID===Number(t[0])&&e.attrs.id.slice(e.attrs.id.length-8)===t[1])).attrs.title||(0,a.__)("Untitled review","otter-blocks"),value:e}})).map((e=>(0,l.createElement)(p,{key:e.value,label:e.label,value:e.value})))),(0,l.createElement)(c.TextControl,{label:(0,a.__)("Search for review to display","otter-blocks"),value:u,onChange:m}),(0,l.createElement)(c.MenuGroup,null,r.filter((e=>(e.attrs.title||(0,a.__)("Untitled review","otter-blocks")).toLowerCase().includes(u.toLowerCase()))).map((e=>{const o=e.ID+"-"+e.attrs.id.slice(e.attrs.id.length-8);return(0,l.createElement)(c.CheckboxControl,{key:o,label:e.attrs.title||(0,a.__)("Untitled review","otter-blocks"),checked:t.reviews.includes(o),onChange:()=>b(o)})}))),(0,l.createElement)(c.Button,{isPrimary:!0,onClick:n},(0,a.__)("Done","otter-blocks"))))},y=o(4896),_=e=>{let{onEdit:t}=e;return(0,l.createElement)(n.BlockControls,null,(0,l.createElement)(c.ToolbarGroup,null,(0,l.createElement)(c.ToolbarButton,{label:(0,a.__)("Edit","otter-blocks"),icon:y.Z,onClick:t})))},f=e=>{let{attributes:t,setAttributes:o}=e;return(0,l.createElement)(n.InspectorControls,null,(0,l.createElement)(n.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:t.buttonColor,onChange:e=>o({buttonColor:e}),label:(0,a.__)("Button","otter-blocks")},{value:t.buttonText,onChange:e=>o({buttonText:e}),label:(0,a.__)("Button text","otter-blocks")}]},(0,l.createElement)(n.ContrastChecker,{textColor:t.buttonText,backgroundColor:t.buttonColor})))},w=o(5225),C=o(8388);const{attributes:E}=i,{attributes:x}=C;let T=[],S=[],M=[],B=[],z=[],P=[],V=[];const{name:R}=i;Boolean(window.themeisleGutenberg.hasNeveSupport.isBoosterActive)?(0,r.registerBlockType)(R,{...i,title:(0,a.__)("Review Comparison Table","otter-blocks"),description:(0,a.__)("A way to compare different product reviews made on the website.","otter-blocks"),icon:s.rL,keywords:["product","review","comparison"],supports:{html:!1},edit:e=>{let{attributes:t,setAttributes:o,clientId:r}=e;(0,l.useEffect)((()=>{const e=(0,w.WX)(r,E);return()=>e(t.id)}),[t.id]),(0,l.useEffect)((()=>{let e=!0;return(async()=>{if(e)try{b("loading");const e=await h()({path:"otter/v1/filter_blocks?block=themeisle-blocks/review"});i(e),b("loaded"),k(!Boolean(t.reviews.length))}catch(e){b("error")}})(),()=>{e=!1}}),[]);const[c,i]=(0,l.useState)([]),[u,b]=(0,l.useState)("loading"),[g,k]=(0,l.useState)(!0),y=d.iv`
169
- .o-review-comparison_buttons span {
170
- background: ${t.buttonColor} !important;
171
- color: ${t.buttonText} !important;
172
- }
173
- `;(0,l.useEffect)((()=>{T=[],S=[],M=[],B=[],z=[],P=[],V=[],Boolean(c.length)&&t.reviews.forEach((e=>{var t;const o=e.split("-"),r=c.find((e=>e.ID===Number(o[0])&&e.attrs.id.slice(e.attrs.id.length-8)===o[1]));if(!r)return;const n=null!==(t=p()(r.attrs.currency))&&void 0!==t?t:"$",i=r.attrs.features||x.features.default,s=Math.round(i.reduce(((e,t)=>e+t.rating),0)/i.length)/2,u=r.attrs.links||x.links.default,m=[];i.forEach((e=>{m.push((0,d.tZ)("div",{className:"o-review-comparison_rating_container"},(0,d.tZ)("div",{className:"o-review-comparison_rating_title"},e.title),(0,d.tZ)("div",{className:"o-review-comparison_ratings"},L(e.rating/2))))}));const b=[];u.forEach((e=>{b.push((0,d.tZ)("span",{className:"wp-block-button__link"},e.label))})),T.push((0,d.tZ)("td",null,r.attrs.image&&(0,d.tZ)("img",{src:r.attrs.image.url}))),S.push((0,d.tZ)("td",null,r.attrs.title||(0,a.__)("Untitled review","otter-blocks"))),M.push((0,d.tZ)("td",null,r.attrs.discounted?(0,d.tZ)(l.Fragment,null,(0,d.tZ)("del",null,n+r.attrs.price)," ",n+r.attrs.discounted):r.attrs.price?n+r.attrs.price:"-")),B.push((0,d.tZ)("td",null,(0,d.tZ)("div",{className:"o-review-comparison_ratings"},L(s)))),z.push((0,d.tZ)("td",{dangerouslySetInnerHTML:{__html:r.attrs.description}})),P.push((0,d.tZ)("td",null,m)),V.push((0,d.tZ)("td",null,(0,d.tZ)("div",{className:"o-review-comparison_buttons wp-block-button"},b)))}))}),[t.reviews,c]);const C="loading"===u,R="loaded"===u,N="error"===u,L=e=>{const t=[];for(let o=0;5>o;o++)t.push(o<e&&e<o+1?(0,d.tZ)(s.cV,{className:m()({low:1.5>=e&&o<e,medium:1.5<e&&3.5>=e&&o<e,high:3.5<e&&5>=e&&o<e})}):(0,d.tZ)(s.Rh,{className:m()({low:1.5>=e&&o<e,medium:1.5<e&&3.5>=e&&o<e,high:3.5<e&&5>=e&&o<e})}));return t},H=(0,n.useBlockProps)({id:t.id});return g?(0,d.tZ)("div",H,(0,d.tZ)(v,{attributes:t,setAttributes:o,data:c,onComplete:()=>k(!1),isLoading:C,isComplete:R,isError:N})):(0,d.tZ)(l.Fragment,null,(0,d.tZ)(_,{onEdit:()=>k(!0)}),(0,d.tZ)(f,{attributes:t,setAttributes:o}),(0,d.tZ)("table",H,(0,d.tZ)("thead",null,(0,d.tZ)("tr",null,(0,d.tZ)("th",null),T)),(0,d.tZ)("tbody",null,(0,d.tZ)("tr",null,(0,d.tZ)("th",null,(0,a.__)("Name","otter-blocks")),S),(0,d.tZ)("tr",null,(0,d.tZ)("th",null,(0,a.__)("Price","otter-blocks")),M),(0,d.tZ)("tr",null,(0,d.tZ)("th",null,(0,a.__)("Rating","otter-blocks")),B),(0,d.tZ)("tr",null,(0,d.tZ)("th",null,(0,a.__)("Description","otter-blocks")),z),(0,d.tZ)("tr",null,(0,d.tZ)("th",null,(0,a.__)("Statistics","otter-blocks")),P),(0,d.tZ)("tr",{css:y},(0,d.tZ)("th",null,(0,a.__)("Buy this product","otter-blocks")),V))))},save:()=>null}):(0,r.registerBlockType)(R,{...i,title:(0,a.__)("Review Comparison Table","otter-blocks"),description:(0,a.__)("A way to compare different product reviews made on the website.","otter-blocks"),icon:s.rL,keywords:["product","review","comparison"],supports:{inserter:!1},edit:()=>(0,l.createElement)("div",(0,n.useBlockProps)(),(0,l.createElement)(c.Placeholder,null,(0,a.__)("You need to have Neve Pro installed to edit Review Comparison Table block.","otter-blocks"))),save:()=>null})},5286:function(e,t,o){var l=o(5736),a=o(4981),r=o(8388),n=o(340),c=o(9307),i=o(917),s=o(4184),d=o.n(s),u=o(1463),m=o.n(u),b=o(2175),p=o(5609),g=o(2819),h=o(3159);const k=e=>{let{title:t,remove:o,children:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)("div",{className:"o-review__inspector_panel_item"},(0,c.createElement)("div",{className:"o-review__inspector_panel_item__header"},(0,c.createElement)(p.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>n(!r)},t),(0,c.createElement)(p.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),r&&(0,c.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var v=e=>{var t,o,a,r,n;let{attributes:i,setAttributes:s,getValue:d,productAttributes:u}=e;const m=(e,t)=>{const o=[...i.features];o[e]={...o[e],...t},s({features:o})},v=(e,t)=>{const o=[...i.links];o[e]={...o[e],...t},s({links:o})},y=e=>{let t=[...i.links];t=t.filter(((t,o)=>o!==e)),s({links:t})};return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:(null==u?void 0:u.title)||i.title,disabled:i.product,onChange:e=>s({title:e})}),(0,c.createElement)(p.BaseControl,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:(null==u?void 0:u.currency)||i.currency,disabled:i.product,onChange:e=>s({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,c.createElement)(p.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:(null==u?void 0:u.price)||i.price,disabled:i.product,onChange:e=>s({price:""!==e?Number(e):void 0})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:(null==u?void 0:u.discounted)||i.discounted,disabled:i.product,onChange:e=>s({discounted:""!==e?Number(e):void 0})}),i.image||null!=u&&u.image?(0,c.createElement)(p.BaseControl,{className:"o-review__inspector_image"},(0,c.createElement)("img",{src:(null==u||null===(t=u.image)||void 0===t?void 0:t.url)||i.image.url,alt:(null==u||null===(o=u.image)||void 0===o?void 0:o.url)||i.image.alt}),(0,c.createElement)(p.Button,{isSecondary:!0,onClick:()=>s({image:void 0}),disabled:i.product},(0,l.__)("Remove image","otter-blocks"))):(0,c.createElement)(b.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:i.image,onSelect:e=>s({image:(0,g.pick)(e,["id","alt","url"])})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<i.features.length&&i.features.map(((e,t)=>(0,c.createElement)(k,{title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>(e=>{let t=[...i.features];t=t.filter(((t,o)=>o!==e)),s({features:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>m(t,{title:e})}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>m(t,{rating:Number(e)}),min:1,max:10})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.features];e.push({title:(0,l.__)("Feature","otter-blocks"),rating:9}),s({features:e})}},(0,l.__)("Add Feature","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<i.pros.length&&i.pros.map(((e,t)=>(0,c.createElement)(k,{key:t,title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>(e=>{let t=[...i.pros];t=t.filter(((t,o)=>o!==e)),s({pros:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.pros];o[e]=t,s({pros:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.pros];e.push(""),s({pros:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<i.cons.length&&i.cons.map(((e,t)=>(0,c.createElement)(k,{key:t,title:e||(0,l.__)("Con","otter-blocks"),remove:()=>(e=>{let t=[...i.cons];t=t.filter(((t,o)=>o!==e)),s({cons:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.cons];o[e]=t,s({cons:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.cons];e.push(""),s({cons:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),0<(null==u||null===(a=u.links)||void 0===a?void 0:a.length)&&(null==u||null===(r=u.links)||void 0===r?void 0:r.map(((e,t)=>(0,c.createElement)(k,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>y(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:i.product,value:e.label}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:i.product}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:i.product}))))),!(0<(null==u||null===(n=u.links)||void 0===n?void 0:n.length))&&(0,c.createElement)(c.Fragment,null,0<i.links.length&&i.links.map(((e,t)=>(0,c.createElement)(k,{title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>y(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>v(t,{label:e})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>v(t,{href:e})}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>v(t,{isSponsored:!e.isSponsored})})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.links];e.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""}),s({links:e})}},(0,l.__)("Add Links","otter-blocks")))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"primaryColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:d("primaryColor"),onColorChange:e=>s({primaryColor:e})})),(0,c.createElement)(h.Z,{field:"backgroundColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:d("backgroundColor"),onColorChange:e=>s({backgroundColor:e})})),(0,c.createElement)(b.ContrastChecker,{textColor:d("primaryColor"),backgroundColor:d("backgroundColor")}),(0,c.createElement)(h.Z,{field:"textColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:d("textColor"),onColorChange:e=>s({textColor:e})})),(0,c.createElement)(h.Z,{field:"buttonTextColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:d("buttonTextColor"),onColorChange:e=>s({buttonTextColor:e})}))),Boolean(window.themeisleGutenberg.hasNeveSupport.hasNeve)&&!Boolean(window.themeisleGutenberg.hasNeveSupport.hasNevePro)&&(0,c.createElement)(p.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,c.createElement)("p",null,(0,l.__)("Build comparison tables for reviews, synchronize review data with WooCommerce products and more with Neve Pro. ","otter-blocks")),(0,c.createElement)(p.ExternalLink,{href:"https://themeisle.com/themes/neve/pricing"},(0,l.__)("Get Neve Pro. ","otter-blocks"))))},y=o(5225);const{attributes:_}=r;const{name:f}=r;(0,a.registerBlockType)(f,{...r,title:(0,l.__)("Product Review","otter-blocks"),description:(0,l.__)("Turn your posts into smart reviews with ratings and generate leads with a performing review block.","otter-blocks"),icon:n.rL,keywords:["product","review","stars"],styles:[{name:"default",label:(0,l.__)("Default","otter-blocks"),isDefault:!0},{name:"single-column",label:(0,l.__)("Single Column","otter-blocks")}],edit:e=>{var t,o,a,r,s;let{name:u,attributes:g,setAttributes:h,clientId:k,isSelected:f,status:w="isInactive",productAttributes:C={}}=e;(0,c.useEffect)((()=>{const e=(0,y.WX)(k,_);return()=>e(g.id)}),[g.id]);const E=e=>(0,y.Ih)({name:u,field:e,defaultAttributes:_,attributes:g}),x=(g.features.reduce(((e,t)=>e+t.rating),0)/g.features.length).toFixed(1),T=[];for(let e=0;10>e;e++)T.push((0,i.tZ)(n.Rh,{key:e,className:d()({low:3>=Math.round(x)&&e<Math.round(x),medium:3<Math.round(x)&&8>Math.round(x)&&e<Math.round(x),high:7<Math.round(x)&&10>=Math.round(x)&&e<Math.round(x)})}));const S=i.iv`
174
  --backgroundColor: ${E("backgroundColor")};
175
  --primaryColor: ${E("primaryColor")};
176
  --textColor: ${E("textColor")};
177
  --buttonTextColor: ${E("buttonTextColor")};
178
- `,M="object"==typeof w&&null!==w&&w.isError||"isLoading"===w;let B=(0,b.useBlockProps)({id:g.id,className:M&&"is-placeholder",css:S});return"isLoading"===w?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(v,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,null,(0,i.tZ)(p.Spinner,null)))):"object"==typeof w&&null!==w&&w.isError?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(v,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,{instructions:w.message}))):(0,i.tZ)(c.Fragment,null,(0,i.tZ)(v,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)("div",{className:"o-review__header"},null!=C&&C.title?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==C?void 0:C.title,tagName:"h3"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:g.title,onChange:e=>h({title:e}),tagName:"h3"}),(0,i.tZ)("div",{className:"o-review__header_meta"},(0,i.tZ)("div",{className:"o-review__header_ratings"},T,(0,i.tZ)("span",null,
179
  /** translators: %s Rating score. */
180
- (0,l.sprintf)((0,l.__)("%f out of 10","otter-blocks"),Math.abs(x)||0))),(0,i.tZ)("span",{className:"o-review__header_price"},((null==C?void 0:C.price)&&(null==C?void 0:C.discounted)||g.price&&g.discounted)&&(0,i.tZ)("del",null,(null!==(t=m()((null==C?void 0:C.currency)||g.currency))&&void 0!==t?t:"$")+""+((null==C?void 0:C.price)||g.price)||0),(g.price||g.discounted||(null==C?void 0:C.price)||(null==C?void 0:C.discounted))&&(null!==(o=m()((null==C?void 0:C.currency)||g.currency))&&void 0!==o?o:"$")+""+(null!=C&&C.discounted||g.discounted?(null==C?void 0:C.discounted)||g.discounted:(null==C?void 0:C.price)||g.price)))),(0,i.tZ)("div",{className:"o-review__left"},(0,i.tZ)("div",{className:d()("o-review__left_details",{"is-single":!g.image||!f&&!g.description})},null!=C&&C.image?(0,i.tZ)("img",{src:null==C||null===(a=C.image)||void 0===a?void 0:a.url,alt:null==C||null===(r=C.image)||void 0===r?void 0:r.alt}):g.image&&(0,i.tZ)("img",{src:g.image.url,alt:g.image.alt}),!f&&!g.description||null!=C&&C.description?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:null==C?void 0:C.description,tagName:"p"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Product description or a small review…","otter-blocks"),value:g.description,onChange:e=>h({description:e}),tagName:"p"})),(0,i.tZ)("div",{className:"o-review__left_features"},0<g.features.length&&g.features.map(((e,t)=>{const o=[];for(let t=0;10>t;t++)o.push((0,i.tZ)(n.Rh,{key:t,className:d()({low:3>=Math.round(e.rating)&&t<Math.round(e.rating),medium:3<Math.round(e.rating)&&8>Math.round(e.rating)&&t<Math.round(e.rating),high:7<Math.round(e.rating)&&10>=Math.round(e.rating)&&t<Math.round(e.rating)})}));return(0,i.tZ)("div",{className:"o-review__left_feature",key:t},(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,className:"o-review__left_feature_title",onChange:e=>((e,t)=>{const o=[...g.features];o[e]={...o[e],...t},h({features:o})})(t,{title:e}),tagName:"span"}),(0,i.tZ)("div",{className:"o-review__left_feature_ratings"},o,(0,i.tZ)("span",null,e.rating.toFixed(1),"/10")))})))),(0,i.tZ)("div",{className:"o-review__right"},0<g.pros.length&&(0,i.tZ)("div",{className:"o-review__right_pros"},(0,i.tZ)("h4",null,(0,l.__)("Pros","otter-blocks")),g.pros.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_pros_item",key:t},n.BF,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.pros];o[e]=t,h({pros:o})})(t,e),tagName:"p"}))))),0<g.cons.length&&(0,i.tZ)("div",{className:"o-review__right_cons"},(0,i.tZ)("h4",null,(0,l.__)("Cons","otter-blocks")),g.cons.map(((e,t)=>(0,i.tZ)("div",{className:"o-review__right_cons_item",key:t},n.xv,(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...g.cons];o[e]=t,h({cons:o})})(t,e),tagName:"p"})))))),(0<(null==C||null===(s=C.links)||void 0===s?void 0:s.length)||0<g.links.length)&&(0,i.tZ)("div",{className:"o-review__footer"},(0,i.tZ)("span",{className:"o-review__footer_label"},(0,l.__)("Buy this product","otter-blocks")),(0,i.tZ)("div",{className:"o-review__footer_buttons"},((null==C?void 0:C.links)||g.links).map(((e,t)=>(0,i.tZ)(b.RichText,{key:t,placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,disabled:0<(null==C?void 0:C.links),onChange:e=>((e,t)=>{const o=[...g.links];o[e]={...o[e],...t},h({links:o})})(t,{label:e}),tagName:"span"})))))))},save:()=>null})},3716:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-column","title":"Section Column","category":"themeisle-blocks","description":"A single column within a Section block.","parent":["themeisle-blocks/advanced-columns"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"columnsHTMLTag":{"type":"string","default":"div"},"columnWidth":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"inserter":false,"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}'),n=o(340),c=o(9307),i=o(80),s=o.n(i),d=o(2819),u=o(2175),m=o(4715);const b={id:{type:"string"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginRight:{type:"number",default:0},marginRightTablet:{type:"number",default:0},marginRightMobile:{type:"number",default:0},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},marginLeft:{type:"number",default:0},marginLeftTablet:{type:"number",default:0},marginLeftMobile:{type:"number",default:0},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},columnsHTMLTag:{type:"string",default:"div"},columnWidth:{type:"string"}},p=[{attributes:b,supports:{inserter:!1,reusable:!1,html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(r={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(r={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(n={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(n={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(i={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${s()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const d={...a,...r,...n,...i};return(0,c.createElement)(l,{className:o,id:t.id,style:d},(0,c.createElement)(u.InnerBlocks.Content,null))}},{attributes:{...b,paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{let t="";if("gradient"===e.backgroundType){let o="";"linear"===e.backgroundGradientType&&(o=`${e.backgroundGradientAngle}deg, `),t=`${e.backgroundGradientType}-gradient(${o}${s()(e.backgroundGradientFirstColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientFirstLocation}%, ${s()(e.backgroundGradientSecondColor)||"rgba( 0, 0, 0, 0 )"} ${e.backgroundGradientSecondLocation}%)`}return{...{...(0,d.omit)(e,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),backgroundGradient:t}}},isEligible:e=>"gradient"===e.backgroundType&&void 0!==e.backgroundGradientFirstColor,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(u.InnerBlocks.Content,null))}},{attributes:{...(0,d.omit)(b,["backgroundGradientFirstColor","backgroundGradientFirstLocation","backgroundGradientSecondColor","backgroundGradientSecondLocation","backgroundGradientType","backgroundGradientAngle","backgroundGradientPosition"]),paddingTablet:{type:"number"},paddingMobile:{type:"number"},paddingTopTablet:{type:"number"},paddingTopMobile:{type:"number"},paddingRightTablet:{type:"number"},paddingRightMobile:{type:"number"},paddingBottomTablet:{type:"number"},paddingBottomMobile:{type:"number"},paddingLeftTablet:{type:"number"},paddingLeftMobile:{type:"number"},marginTablet:{type:"number"},marginMobile:{type:"number"},marginTopTablet:{type:"number"},marginTopMobile:{type:"number"},marginRightTablet:{type:"number"},marginRightMobile:{type:"number"},marginBottomTablet:{type:"number"},marginBottomMobile:{type:"number"},marginLeftTablet:{type:"number"},marginLeftMobile:{type:"number"},backgroundGradient:{type:"string",default:"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"}},supports:{inserter:!1,reusable:!1,html:!1},migrate:e=>{const t={},o={},l={},a={},r={},n={},c={},i={};let s={},u={};"unlinked"===e.paddingType?(t.top=(0,d.isUndefined)(e.paddingTop)?"20px":e.paddingTop+"px",t.bottom=(0,d.isUndefined)(e.paddingBottom)?"20px":e.paddingBottom+"px",t.left=(0,d.isUndefined)(e.paddingLeft)?"20px":e.paddingLeft+"px",t.right=(0,d.isUndefined)(e.paddingRight)?"20px":e.paddingRight+"px"):(t.top=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.bottom=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.left=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px",t.right=(0,d.isUndefined)(e.padding)?"20px":e.padding+"px"),"unlinked"===e.paddingTypeTablet?(o.top=(0,d.isUndefined)(e.paddingTopTablet)?null:e.paddingTopTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingBottomTablet)?null:e.paddingBottomTablet+"px",o.left=(0,d.isUndefined)(e.paddingLeftTablet)?null:e.paddingLeftTablet+"px",o.right=(0,d.isUndefined)(e.paddingRightTablet)?null:e.paddingRightTablet+"px"):(o.top=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.bottom=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.left=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px",o.right=(0,d.isUndefined)(e.paddingTablet)?null:e.paddingTablet+"px"),"unlinked"===e.paddingTypeMobile?(l.top=(0,d.isUndefined)(e.paddingMobileTop)?null:e.paddingMobileTop+"px",l.bottom=(0,d.isUndefined)(e.paddingMobileBottom)?null:e.paddingMobileBottom+"px",l.left=(0,d.isUndefined)(e.paddingMobileLeft)?null:e.paddingMobileLeft+"px",l.right=(0,d.isUndefined)(e.paddingMobileRight)?null:e.paddingMobileRight+"px"):(l.top=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.bottom=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.left=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px",l.right=(0,d.isUndefined)(e.paddingMobile)?null:e.paddingMobile+"px"),"linked"===e.marginType?(a.top=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.bottom=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.left=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px",a.right=(0,d.isUndefined)(e.margin)?"20px":e.margin+"px"):(a.top=(0,d.isUndefined)(e.marginTop)?"20px":e.marginTop+"px",a.bottom=(0,d.isUndefined)(e.marginBottom)?"20px":e.marginBottom+"px",a.left=(0,d.isUndefined)(e.marginLeft)?"20px":e.marginLeft+"px",a.right=(0,d.isUndefined)(e.marginRight)?"20px":e.marginRight+"px"),"linked"===e.marginTypeTablet?(r.top=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.bottom=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.left=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px",r.right=(0,d.isUndefined)(e.marginTablet)?null:e.marginTablet+"px"):(r.top=(0,d.isUndefined)(e.marginTopTablet)?null:e.marginTopTablet+"px",r.bottom=(0,d.isUndefined)(e.marginBottomTablet)?null:e.marginBottomTablet+"px",r.left=(0,d.isUndefined)(e.marginLeftTablet)?null:e.marginLeftTablet+"px",r.right=(0,d.isUndefined)(e.marginRightTablet)?null:e.marginRightTablet+"px"),"linked"===e.marginTypeMobile?(n.top=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.bottom=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.left=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px",n.right=(0,d.isUndefined)(e.marginMobile)?null:e.marginMobile+"px"):(n.top=(0,d.isUndefined)(e.marginTopMobile)?null:e.marginTopMobile+"px",n.bottom=(0,d.isUndefined)(e.marginBottomMobile)?null:e.marginBottomMobile+"px",n.left=(0,d.isUndefined)(e.marginLeftMobile)?null:e.marginLeftMobile+"px",n.right=(0,d.isUndefined)(e.marginRightMobile)?null:e.marginRightMobile+"px"),"unlinked"===e.borderType?(c.top=(0,d.isUndefined)(e.borderTop)?null:e.borderTop+"px",c.bottom=(0,d.isUndefined)(e.borderBottom)?null:e.borderBottom+"px",c.left=(0,d.isUndefined)(e.borderLeft)?null:e.borderLeft+"px",c.right=(0,d.isUndefined)(e.borderRight)?null:e.borderRight+"px"):(c.top=(0,d.isUndefined)(e.border)?null:e.border+"px",c.bottom=(0,d.isUndefined)(e.border)?null:e.border+"px",c.left=(0,d.isUndefined)(e.border)?null:e.border+"px",c.right=(0,d.isUndefined)(e.border)?null:e.border+"px"),"unlinked"===e.borderRadiusType?(i.top=(0,d.isUndefined)(e.borderRadiusTop)?null:e.borderRadiusTop+"px",i.bottom=(0,d.isUndefined)(e.borderRadiusBottom)?null:e.borderRadiusBottom+"px",i.left=(0,d.isUndefined)(e.borderRadiusLeft)?null:e.borderRadiusLeft+"px",i.right=(0,d.isUndefined)(e.borderRadiusRight)?null:e.borderRadiusRight+"px"):(i.top=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.bottom=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.left=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px",i.right=(0,d.isUndefined)(e.borderRadius)?null:e.borderRadius+"px"),void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID&&(s={id:e.backgroundImageID,url:e.backgroundImageURL});return void 0!==e.backgroundPosition&&(u={"top left":{x:"0.00",y:"0.00"},"top center":{x:"0.50",y:"0.00"},"top right":{x:"1.00",y:"0.00"},"center left":{x:"0.00",y:"0.50"},"center center":{x:"0.50",y:"0.50"},"center right":{x:"1.00",y:"0.50"},"bottom left":{x:"0.00",y:"1.00"},"bottom center":{x:"0.50",y:"1.00"},"bottom right":{x:"1.00",y:"1.00"}}[e.backgroundPosition]),{...{...(0,d.omit)(e,["paddingType","paddingTypeTablet","paddingTypeMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","marginType","marginTypeTablet","marginTypeMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"]),...!(0,m.FH)(t)&&{padding:t},...!(0,m.FH)(o)&&{paddingTablet:o},...!(0,m.FH)(l)&&{paddingMobile:l},...!(0,m.FH)(a)&&{margin:a},...!(0,m.FH)(r)&&{marginTablet:r},...!(0,m.FH)(n)&&{marginMobile:n},...!(0,m.FH)(c)&&{border:c},...!(0,m.FH)(i)&&{borderRadius:i},...!(0,m.FH)(s)&&{backgroundImage:s},...!(0,m.FH)(u)&&{backgroundPosition:u}}}},isEligible:e=>["padding","paddingTablet","paddingMobile","paddingTop","paddingTopTablet","paddingTopMobile","paddingRight","paddingRightTablet","paddingRightMobile","paddingBottom","paddingBottomTablet","paddingBottomMobile","paddingLeft","paddingLeftTablet","paddingLeftMobile","margin","marginTablet","marginMobile","marginTop","marginTopTablet","marginTopMobile","marginRight","marginRightTablet","marginRightMobile","marginBottom","marginBottomTablet","marginBottomMobile","marginLeft","marginLeftTablet","marginLeftMobile","borderType","border","borderTop","borderRight","borderBottom","borderLeft","borderRadiusType","borderRadius","borderRadiusTop","borderRadiusRight","borderRadiusBottom","borderRadiusLeft"].some((t=>!(0,d.isUndefined)(e[t])&&"number"==typeof e[t]))||void 0!==e.backgroundImageURL&&void 0!==e.backgroundImageID||void 0!==e.backgroundPosition&&"object"!=typeof e.backgroundPosition,save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;return(0,c.createElement)(l,{className:o,id:t.id},(0,c.createElement)(u.InnerBlocks.Content,null))}}];var g=p,h=o(4333),k=o(9818),v=o(2665),y=o(4184),_=o.n(y),f=o(5609),w=o(6993),C=o(5452),E=o(2136),x=o(3159),T=e=>{let{attributes:t,setAttributes:o,getValue:a,parentBlock:r,updateBlockAttributes:n,currentBlockWidth:i,nextBlock:s,nextBlockWidth:b}=e;const p=(0,k.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[g,h]=(0,c.useState)("layout");return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(f.PanelBody,{className:"o-section-header-panel"},(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"layout"===g}),onClick:()=>h("layout")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"editor-table"}),(0,l.__)("Layout","otter-blocks"))),(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"style"===g}),onClick:()=>h("style")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,c.createElement)(f.Button,{className:_()("header-tab",{"is-selected":"advanced"===g}),onClick:()=>h("advanced")},(0,c.createElement)("span",null,(0,c.createElement)(f.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"layout"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},1<r.innerBlocks.length&&(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Column Width","otter-blocks"),value:Number(t.columnWidth),onChange:e=>{const t=e||10,l=Number(i.current)-t+Number(b.current);i.current=t,b.current=l,o({columnWidth:t.toFixed(2)}),n(s.current,{columnWidth:l.toFixed(2)})},min:10,max:Number(t.columnWidth)+Number(b.current)-10}),(0,c.createElement)(w.Z,{label:(0,l.__)("Screen Type","otter-blocks"),className:"otter-section-padding-responsive-control"},(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"padding";case"Tablet":return"paddingTablet";case"Mobile":return"paddingMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Padding","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("padding");case"Tablet":return a("paddingTablet");case"Mobile":return a("paddingMobile");default:return}})(),inputProps:{min:0,max:500},onChange:e=>{switch((0,m.CJ)(e)&&(e=void 0),p){case"Desktop":return o({padding:e});case"Tablet":return o({paddingTablet:e});case"Mobile":return o({paddingMobile:e});default:return}}})),(0,c.createElement)(x.Z,{field:(()=>{switch(p){case"Desktop":return"margin";case"Tablet":return"marginTablet";case"Mobile":return"marginMobile";default:return}})(),isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Margin","otter-blocks"),values:(()=>{switch(p){case"Desktop":return a("margin");case"Tablet":return a("marginTablet");case"Mobile":return a("marginMobile");default:return}})(),inputProps:{min:-500,max:500},onChange:e=>{switch((0,m.CJ)(e)&&(e=void 0),p){case"Desktop":return o({margin:e});case"Tablet":return o({marginTablet:e});case"Mobile":return o({marginMobile:e});default:return}}})))))||"style"===g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Background Settings","otter-blocks")},(0,c.createElement)(C.Z,{backgroundType:t.backgroundType,backgroundColor:t.backgroundColor,image:t.backgroundImage,gradient:t.backgroundGradient,focalPoint:t.backgroundPosition,backgroundAttachment:t.backgroundAttachment,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize,changeBackgroundType:e=>o({backgroundType:e}),changeImage:e=>{o({backgroundImage:(0,d.pick)(e,["id","url"])})},removeImage:()=>o({backgroundImage:void 0}),changeColor:e=>o({backgroundColor:e}),changeGradient:e=>o({backgroundGradient:e}),changeBackgroundAttachment:e=>o({backgroundAttachment:e}),changeBackgroundRepeat:e=>o({backgroundRepeat:e}),changeFocalPoint:e=>o({backgroundPosition:e}),changeBackgroundSize:e=>o({backgroundSize:e})})),(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Border","otter-blocks"),className:"o-section-border-container",initialOpen:!1},(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Border Width","otter-blocks"),values:t.border,inputProps:{min:0,max:500},units:[{value:"px",label:"px"}],onChange:e=>{(0,m.CJ)(e)&&(e=void 0),o({border:e})}}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}),(0,c.createElement)(f.__experimentalBoxControl,{label:(0,l.__)("Border Radius","otter-blocks"),values:t.borderRadius,inputProps:{min:0,max:500},units:[{value:"px",label:"px"},{value:"%",label:"%"}],id:"otter-border-raduis-box",onChange:e=>{(0,m.CJ)(e)&&(e=void 0),o({borderRadius:e})}}),(0,c.createElement)(f.ToggleControl,{label:(0,l.__)("Box Shadow","otter-blocks"),checked:t.boxShadow,onChange:()=>o({boxShadow:!t.boxShadow})}),t.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(E.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(f.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))))||"advanced"===g&&(0,c.createElement)(f.PanelBody,{title:(0,l.__)("Section Settings","otter-blocks")},(0,c.createElement)(f.SelectControl,{label:(0,l.__)("HTML Tag","otter-blocks"),value:t.columnsHTMLTag,options:[{label:(0,l.__)("Default (div)","otter-blocks"),value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"article",value:"article"},{label:"main",value:"main"}],onChange:e=>o({columnsHTMLTag:e})})))},S=o(5225);const{attributes:M}=r;const{name:B}=r;(0,a.registerBlockType)(B,{...r,title:(0,l.__)("Section Column","otter-blocks"),description:(0,l.__)("A single column within a Section block.","otter-blocks"),icon:n.rK,deprecated:g,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;const{updateBlockAttributes:n}=(0,k.useDispatch)("core/block-editor"),{adjacentBlockClientId:i,adjacentBlock:m,parentBlock:b,hasInnerBlocks:p,isViewportAvailable:g,isPreviewDesktop:y,isPreviewTablet:_,isPreviewMobile:f}=(0,k.useSelect)((e=>{const{getAdjacentBlockClientId:t,getBlock:o,getBlockRootClientId:l}=e("core/block-editor"),{__experimentalGetPreviewDeviceType:a}=!!e("core/edit-post")&&e("core/edit-post"),n=o(r),c=t(r);return{adjacentBlockClientId:c,adjacentBlock:o(c),parentBlock:o(l(r)),hasInnerBlocks:!(!n||!n.innerBlocks.length),isViewportAvailable:!!a,isPreviewDesktop:!!a&&"Desktop"===a(),isPreviewTablet:!!a&&"Tablet"===a(),isPreviewMobile:!!a&&"Mobile"===a()}}),[]),w=(0,h.useViewportMatch)("large",">="),C=(0,h.useViewportMatch)("large","<="),E=(0,h.useViewportMatch)("small",">="),x=(0,h.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,S.WX)(r,M);return()=>e(o.id)}),[o.id]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length&&!i){const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.innerBlocks[e-1];z.current=t.clientId,P.current=t.attributes.columnWidth}}),[]),(0,c.useEffect)((()=>{if(1<b.innerBlocks.length)if(i)P.current=m.attributes.columnWidth,z.current=i,B.current=o.columnWidth;else{const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.innerBlocks[e-1];P.current=t.attributes.columnWidth,z.current=t.clientId,B.current=o.columnWidth}}),[a,o.columnWidth,b.innerBlocks.length]);const B=(0,c.useRef)(o.columnWidth),z=(0,c.useRef)(i&&i),P=(0,c.useRef)(m&&m.attributes.columnWidth),V=e=>(0,S.Ih)({name:t,field:e,defaultAttributes:M,attributes:o});let R=w&&!C&&E&&!x,N=!w&&!C&&E&&!x,L=!(w||C||E||x);if(g&&!L&&(R=y,N=_,L=f),void 0===o.columnWidth){const e=b.innerBlocks.findIndex((e=>e.clientId===r)),t=b.attributes.columns,o=b.attributes.layout;n(r,{columnWidth:v.Z[t][o][e]})}const H=o.columnsHTMLTag;let A,I,O,G,$;var Z,F,D,W,U,j,q,J,K,Q,X,Y,ee,te,oe,le,ae,re,ne,ce,ie,se,de,ue,me,be,pe;R&&(A={paddingTop:null===(Z=V("padding"))||void 0===Z?void 0:Z.top,paddingRight:null===(F=V("padding"))||void 0===F?void 0:F.right,paddingBottom:null===(D=V("padding"))||void 0===D?void 0:D.bottom,paddingLeft:null===(W=V("padding"))||void 0===W?void 0:W.left,marginTop:null===(U=V("margin"))||void 0===U?void 0:U.top,marginRight:null===(j=V("margin"))||void 0===j?void 0:j.right,marginBottom:null===(q=V("margin"))||void 0===q?void 0:q.bottom,marginLeft:null===(J=V("margin"))||void 0===J?void 0:J.left}),N&&(A={paddingTop:null===(K=V("paddingTablet"))||void 0===K?void 0:K.top,paddingRight:null===(Q=V("paddingTablet"))||void 0===Q?void 0:Q.right,paddingBottom:null===(X=V("paddingTablet"))||void 0===X?void 0:X.bottom,paddingLeft:null===(Y=V("paddingTablet"))||void 0===Y?void 0:Y.left,marginTop:null===(ee=V("marginTablet"))||void 0===ee?void 0:ee.top,marginRight:null===(te=V("marginTablet"))||void 0===te?void 0:te.right,marginBottom:null===(oe=V("marginTablet"))||void 0===oe?void 0:oe.bottom,marginLeft:null===(le=V("marginTablet"))||void 0===le?void 0:le.left}),L&&(A={paddingTop:null===(ae=V("paddingMobile"))||void 0===ae?void 0:ae.top,paddingRight:null===(re=V("paddingMobile"))||void 0===re?void 0:re.right,paddingBottom:null===(ne=V("paddingMobile"))||void 0===ne?void 0:ne.bottom,paddingLeft:null===(ce=V("paddingMobile"))||void 0===ce?void 0:ce.left,marginTop:null===(ie=V("marginMobile"))||void 0===ie?void 0:ie.top,marginRight:null===(se=V("marginMobile"))||void 0===se?void 0:se.right,marginBottom:null===(de=V("marginMobile"))||void 0===de?void 0:de.bottom,marginLeft:null===(ue=V("marginMobile"))||void 0===ue?void 0:ue.left}),"color"===o.backgroundType&&(I={backgroundColor:o.backgroundColor}),"image"===o.backgroundType&&(I={backgroundImage:`url( '${null===(me=o.backgroundImage)||void 0===me?void 0:me.url}' )`,backgroundAttachment:o.backgroundAttachment,backgroundPosition:`${Math.round(100*(null===(be=o.backgroundPosition)||void 0===be?void 0:be.x))}% ${Math.round(100*(null===(pe=o.backgroundPosition)||void 0===pe?void 0:pe.y))}%`,backgroundRepeat:o.backgroundRepeat,backgroundSize:o.backgroundSize}),"gradient"===o.backgroundType&&(I={backgroundImage:o.backgroundGradient}),o.border&&!(0,d.isEmpty)(o.border)&&(O={borderTopWidth:o.border.top,borderRightWidth:o.border.right,borderBottomWidth:o.border.bottom,borderLeftWidth:o.border.left,borderStyle:"solid",borderColor:o.borderColor}),o.borderRadius&&!(0,d.isEmpty)(o.borderRadius)&&(G={borderTopLeftRadius:o.borderRadius.top,borderTopRightRadius:o.borderRadius.right,borderBottomRightRadius:o.borderRadius.bottom,borderBottomLeftRadius:o.borderRadius.left}),!0===o.boxShadow&&($={boxShadow:`${o.boxShadowHorizontal}px ${o.boxShadowVertical}px ${o.boxShadowBlur}px ${o.boxShadowSpread}px ${s()(o.boxShadowColor?o.boxShadowColor:"#000000",o.boxShadowColorOpacity)}`});const ge={flexBasis:`${o.columnWidth}%`,...A,...I,...O,...G,...$},he=(0,u.useBlockProps)({id:o.id,style:ge});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(T,{attributes:o,setAttributes:l,getValue:V,parentBlock:b,updateBlockAttributes:n,currentBlockWidth:B,nextBlock:z,nextBlockWidth:P}),(0,c.createElement)(H,he,(0,c.createElement)(u.InnerBlocks,{templateLock:!1,renderAppender:!p&&u.InnerBlocks.ButtonBlockAppender})))},save:e=>{let{attributes:t}=e;const o=t.columnsHTMLTag,l=u.useBlockProps.save({id:t.id});return(0,c.createElement)(o,l,(0,c.createElement)(u.InnerBlocks.Content,null))}})},1116:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-columns","title":"Section","category":"themeisle-blocks","description":"Add a Section block that displays content in multiple columns, then add whatever content blocks you’d like.","keywords":["advanced columns","layout","section"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"columns":{"type":"number"},"layout":{"type":"string"},"layoutTablet":{"type":"string","default":"equal"},"layoutMobile":{"type":"string","default":"equal"},"padding":{"type":"object"},"paddingTablet":{"type":"object"},"paddingMobile":{"type":"object"},"margin":{"type":"object"},"marginTablet":{"type":"object"},"marginMobile":{"type":"object"},"columnsWidth":{"type":"number"},"horizontalAlign":{"type":"string","default":"unset"},"columnsHeight":{"type":"string","default":"auto"},"columnsHeightCustom":{"type":"number"},"columnsHeightCustomTablet":{"type":"number"},"columnsHeightCustomMobile":{"type":"number"},"verticalAlign":{"type":"string","default":"unset"},"backgroundType":{"type":"string","default":"color"},"backgroundColor":{"type":"string"},"backgroundImage":{"type":"object"},"backgroundAttachment":{"type":"string","default":"scroll"},"backgroundPosition":{"type":"object"},"backgroundRepeat":{"type":"string","default":"repeat"},"backgroundSize":{"type":"string","default":"auto"},"backgroundGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayOpacity":{"type":"number","default":50},"backgroundOverlayType":{"type":"string","default":"color"},"backgroundOverlayColor":{"type":"string"},"backgroundOverlayImage":{"type":"object"},"backgroundOverlayAttachment":{"type":"string","default":"scroll"},"backgroundOverlayPosition":{"type":"object"},"backgroundOverlayRepeat":{"type":"string","default":"repeat"},"backgroundOverlaySize":{"type":"string","default":"auto"},"backgroundOverlayGradient":{"type":"string","default":"linear-gradient(90deg,rgba(54,209,220,1) 0%,rgba(91,134,229,1) 100%)"},"backgroundOverlayFilterBlur":{"type":"number","default":0},"backgroundOverlayFilterBrightness":{"type":"number","default":10},"backgroundOverlayFilterContrast":{"type":"number","default":10},"backgroundOverlayFilterGrayscale":{"type":"number","default":0},"backgroundOverlayFilterHue":{"type":"number","default":0},"backgroundOverlayFilterSaturate":{"type":"number","default":10},"backgroundOverlayBlend":{"type":"string","default":"normal"},"border":{"type":"object"},"borderColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":0},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"dividerTopType":{"type":"string","default":"none"},"dividerTopColor":{"type":"string","default":"#000000"},"dividerTopWidth":{"type":"number","default":100},"dividerTopWidthTablet":{"type":"number","default":100},"dividerTopWidthMobile":{"type":"number","default":100},"dividerTopHeight":{"type":"number","default":100},"dividerTopHeightTablet":{"type":"number","default":100},"dividerTopHeightMobile":{"type":"number","default":100},"dividerTopInvert":{"type":"boolean","default":false},"dividerBottomType":{"type":"string","default":"none"},"dividerBottomColor":{"type":"string","default":"#000000"},"dividerBottomWidth":{"type":"number","default":100},"dividerBottomWidthTablet":{"type":"number","default":100},"dividerBottomWidthMobile":{"type":"number","default":100},"dividerBottomHeight":{"type":"number","default":100},"dividerBottomHeightTablet":{"type":"number","default":100},"dividerBottomHeightMobile":{"type":"number","default":100},"dividerBottomInvert":{"type":"boolean","default":false},"hide":{"type":"boolean","default":false},"hideTablet":{"type":"boolean","default":false},"hideMobile":{"type":"boolean","default":false},"reverseColumnsTablet":{"type":"boolean","default":false},"reverseColumnsMobile":{"type":"boolean","default":false},"columnsHTMLTag":{"type":"string","default":"div"},"isSynced":{"type":"array"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-advanced-columns-editor","style":"otter-advanced-columns-style"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(80),u=o.n(d),m=o(2819),b=o(2175),p=o(5609),g=o(4715);const h={align:{type:"string"},id:{type:"string"},columns:{type:"number"},layout:{type:"string"},layoutTablet:{type:"string",default:"equal"},layoutMobile:{type:"string",default:"equal"},columnsGap:{type:"string",default:"default"},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:20},paddingTablet:{type:"number",default:20},paddingMobile:{type:"number",default:20},paddingTop:{type:"number",default:20},paddingTopTablet:{type:"number",default:20},paddingTopMobile:{type:"number",default:20},paddingRight:{type:"number",default:20},paddingRightTablet:{type:"number",default:20},paddingRightMobile:{type:"number",default:20},paddingBottom:{type:"number",default:20},paddingBottomTablet:{type:"number",default:20},paddingBottomMobile:{type:"number",default:20},paddingLeft:{type:"number",default:20},paddingLeftTablet:{type:"number",default:20},paddingLeftMobile:{type:"number",default:20},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:20},marginTablet:{type:"number",default:20},marginMobile:{type:"number",default:20},marginTop:{type:"number",default:20},marginTopTablet:{type:"number",default:20},marginTopMobile:{type:"number",default:20},marginBottom:{type:"number",default:20},marginBottomTablet:{type:"number",default:20},marginBottomMobile:{type:"number",default:20},columnsWidth:{type:"number"},columnsHeight:{type:"string",default:"auto"},columnsHeightCustom:{type:"number"},columnsHeightCustomTablet:{type:"number"},columnsHeightCustomMobile:{type:"number"},horizontalAlign:{type:"string",default:"unset"},verticalAlign:{type:"string",default:"unset"},backgroundType:{type:"string",default:"color"},backgroundColor:{type:"string"},backgroundImageID:{type:"number"},backgroundImageURL:{type:"string"},backgroundAttachment:{type:"string",default:"scroll"},backgroundPosition:{type:"string",default:"top left"},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundGradientFirstLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundGradientSecondLocation:{type:"number",default:100},backgroundGradientType:{type:"string",default:"linear"},backgroundGradientAngle:{type:"number",default:90},backgroundGradientPosition:{type:"string",default:"center center"},backgroundOverlayOpacity:{type:"number",default:50},backgroundOverlayType:{type:"string",default:"color"},backgroundOverlayColor:{type:"string"},backgroundOverlayImageID:{type:"number"},backgroundOverlayImageURL:{type:"string"},backgroundOverlayAttachment:{type:"string",default:"scroll"},backgroundOverlayPosition:{type:"string",default:"top left"},backgroundOverlayRepeat:{type:"string",default:"repeat"},backgroundOverlaySize:{type:"string",default:"auto"},backgroundOverlayGradientFirstColor:{type:"string",default:"#36d1dc"},backgroundOverlayGradientFirstLocation:{type:"number",default:0},backgroundOverlayGradientSecondColor:{type:"string",default:"#5b86e5"},backgroundOverlayGradientSecondLocation:{type:"number",default:100},backgroundOverlayGradientType:{type:"string",default:"linear"},backgroundOverlayGradientAngle:{type:"number",default:90},backgroundOverlayGradientPosition:{type:"string",default:"center center"},backgroundOverlayFilterBlur:{type:"number",default:0},backgroundOverlayFilterBrightness:{type:"number",default:10},backgroundOverlayFilterContrast:{type:"number",default:10},backgroundOverlayFilterGrayscale:{type:"number",default:0},backgroundOverlayFilterHue:{type:"number",default:0},backgroundOverlayFilterSaturate:{type:"number",default:10},backgroundOverlayBlend:{type:"string",default:"normal"},borderType:{type:"string",default:"linked"},border:{type:"number",default:0},borderTop:{type:"number",default:0},borderRight:{type:"number",default:0},borderBottom:{type:"number",default:0},borderLeft:{type:"number",default:0},borderColor:{type:"string",default:"#000000"},borderRadiusType:{type:"string",default:"linked"},borderRadius:{type:"number",default:0},borderRadiusTop:{type:"number",default:0},borderRadiusRight:{type:"number",default:0},borderRadiusBottom:{type:"number",default:0},borderRadiusLeft:{type:"number",default:0},boxShadow:{type:"boolean",default:!1},boxShadowColor:{type:"string",default:"#000000"},boxShadowColorOpacity:{type:"number",default:50},boxShadowBlur:{type:"number",default:5},boxShadowSpread:{type:"number",default:0},boxShadowHorizontal:{type:"number",default:0},boxShadowVertical:{type:"number",default:0},dividerTopType:{type:"string",default:"none"},dividerTopColor:{type:"string",default:"#000000"},dividerTopWidth:{type:"number",default:100},dividerTopWidthTablet:{type:"number",default:100},dividerTopWidthMobile:{type:"number",default:100},dividerTopHeight:{type:"number",default:100},dividerTopHeightTablet:{type:"number",default:100},dividerTopHeightMobile:{type:"number",default:100},dividerTopInvert:{type:"boolean",default:!1},dividerBottomType:{type:"string",default:"none"},dividerBottomColor:{type:"string",default:"#000000"},dividerBottomWidth:{type:"number",default:100},dividerBottomWidthTablet:{type:"number",default:100},dividerBottomWidthMobile:{type:"number",default:100},dividerBottomHeight:{type:"number",default:100},dividerBottomHeightTablet:{type:"number",default:100},dividerBottomHeightMobile:{type:"number",default:100},dividerBottomInvert:{type:"boolean",default:!1},hide:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1},columnsHTMLTag:{type:"string",default:"div"}},k=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"bottom"===t?{transform:"bottom"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",style:"top"===t?{transform:"top"===t?"rotate(180deg)":""}:{}},(0,c.createElement)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},v=e=>{let{type:t,front:o,style:l,fill:a,invert:r,width:n,height:i}=e;return"none"!==l&&(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-advanced-columns-separators",t),style:!o&&n?{transform:n?`scaleX( ${n/100} )`:""}:{}},"bigTriangle"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L50 100 L100 0 Z"})),"bigTriangle"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"bigTriangle",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M100, 0l-50, 100l-50, -100l0, 100l100, 0l0, -100Z"})),"rightCurve"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 20 0 50 0 100 100 Z"})),"rightCurve"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"rightCurve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C 50 0 70 0 100 100 Z"})),"curve"===l&&(0,c.createElement)(p.SVG,{id:"curve",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M0 100 C40 0 60 0 100 100 Z"})),"slant"===l&&!1===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L100 100 L100 0 Z"})),"slant"===l&&!0===r&&(0,c.createElement)(p.SVG,{id:"slant",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"bottom"===t})},(0,c.createElement)(p.Path,{d:"M0 0 L0 100 L100 0 Z"})),"cloud"===l&&(0,c.createElement)(p.SVG,{id:"cloud",fill:a,viewBox:"0 0 100 100",width:"100%",height:i?`${i}px`:"100",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",className:s()({rotate:"top"===t})},(0,c.createElement)(p.Path,{d:"M-5 100 Q 10 -100 15 100 Z M10 100 Q 20 -20 30 100 M25 100 Q 35 -70 45 100 M40 100 Q 50 -100 60 100 M55 100 Q 65 -20 75 100 M70 100 Q 75 -45 90 100 M85 100 Q 90 -50 95 100 M90 100 Q 95 -25 105 100 Z"})))},y=[{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(n={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(n={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${u()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...n,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,r={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const p={...r,mixBlendMode:t.backgroundOverlayBlend,filter:`blur( ${t.backgroundOverlayFilterBlur/10}px ) brightness( ${t.backgroundOverlayFilterBrightness/10} ) contrast( ${t.backgroundOverlayFilterContrast/10} ) grayscale( ${t.backgroundOverlayFilterGrayscale/100} ) hue-rotate( ${t.backgroundOverlayFilterHue}deg ) saturate( ${t.backgroundOverlayFilterSaturate/10} )`};let g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,_=s()(o,`has-${t.columns}-columns`,h,v,y,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has-${t.lcolumnsGap}-gap`,`has-vertical-${t.verticalAlign}`);return(0,c.createElement)(l,{className:_,id:t.id,style:m},(0,c.createElement)("div",{className:"wp-themeisle-block-overlay",style:p}),(0,c.createElement)(k,{type:"top",front:!0,style:t.dividerTopType,fill:t.dividerTopColor,invert:t.dividerTopInvert}),(0,c.createElement)("div",{className:"innerblocks-wrap",style:g},(0,c.createElement)(b.InnerBlocks.Content,null)),(0,c.createElement)(k,{type:"bottom",front:!0,style:t.dividerBottomType,fill:t.dividerBottomColor,invert:t.dividerBottomInvert}))}},{attributes:h,supports:{align:["wide","full"],html:!1},save:e=>{let{attributes:t,className:o}=e;const l=t.columnsHTMLTag;let a,r,n,i,d;if("color"===t.backgroundType&&(a={background:t.backgroundColor}),"image"===t.backgroundType&&(a={backgroundImage:`url( '${t.backgroundImageURL}' )`,backgroundAttachment:t.backgroundAttachment,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}),"gradient"===t.backgroundType){let e;e="linear"===t.backgroundGradientType?`${t.backgroundGradientAngle}deg`:`at ${t.backgroundGradientPosition}`,a={background:`${t.backgroundGradientType}-gradient( ${e}, ${t.backgroundGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientFirstLocation}%, ${t.backgroundGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundGradientSecondLocation}% )`}}"linked"===t.borderType&&(n={borderWidth:`${t.border}px`,borderStyle:"solid",borderColor:t.borderColor}),"unlinked"===t.borderType&&(n={borderTopWidth:`${t.borderTop}px`,borderRightWidth:`${t.borderRight}px`,borderBottomWidth:`${t.borderBottom}px`,borderLeftWidth:`${t.borderLeft}px`,borderStyle:"solid",borderColor:t.borderColor}),"linked"===t.borderRadiusType&&(i={borderRadius:`${t.borderRadius}px`}),"unlinked"===t.borderRadiusType&&(i={borderTopLeftRadius:`${t.borderRadiusTop}px`,borderTopRightRadius:`${t.borderRadiusRight}px`,borderBottomRightRadius:`${t.borderRadiusBottom}px`,borderBottomLeftRadius:`${t.borderRadiusLeft}px`}),!0===t.boxShadow&&(d={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${u()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`});const m={...a,...n,...i,...d,justifyContent:t.horizontalAlign};if("color"===t.backgroundOverlayType&&(r={background:t.backgroundOverlayColor,opacity:t.backgroundOverlayOpacity/100}),"image"===t.backgroundOverlayType&&(r={backgroundImage:`url( '${t.backgroundOverlayImageURL}' )`,backgroundAttachment:t.backgroundOverlayAttachment,backgroundPosition:t.backgroundOverlayPosition,backgroundRepeat:t.backgroundOverlayRepeat,backgroundSize:t.backgroundOverlaySize,opacity:t.backgroundOverlayOpacity/100}),"gradient"===t.backgroundOverlayType){let e;e="linear"===t.backgroundOverlayGradientType?`${t.backgroundOverlayGradientAngle}deg`:`at ${t.backgroundOverlayGradientPosition}`,r={background:`${t.backgroundOverlayGradientType}-gradient( ${e}, ${t.backgroundOverlayGradientFirstColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientFirstLocation}%, ${t.backgroundOverlayGradientSecondColor||"rgba( 0, 0, 0, 0 )"} ${t.backgroundOverlayGradientSecondLocation}% )`,opacity:t.backgroundOverlayOpacity/100}}const p={...r,mixBlendMode:t.backgroundOverlayBlend};let g={};t.columnsWidth&&(g={maxWidth:t.columnsWidth+"px"});const h=t.hide?"":`has-desktop-${t.layout}-layout`,v=t.hideTablet?"":`has-tablet-${t.layoutTablet}-layout`,y=t.hideMobile?"":`has-mobile-${t.layoutMobile}-layout`,_=s()(o,`has-${t.columns}-columns`,h,v,y,{"hide-in-desktop":t.hide},{"hide-in-tablet":t.hideTablet},{"hide-in-mobile":t.hideMobile},`has
1
+ !function(){"use strict";var e,t,o,l={7758:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/about-author","title":"About Author","category":"themeisle-blocks","description":"About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","keywords":["about","author","profile"],"textdomain":"otter-blocks","supports":{"html":false},"editorStyle":"otter-about-author-editor","style":"otter-about-author-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d);const{name:u}=r;(0,a.registerBlockType)(u,{...r,title:(0,l.__)("About Author","otter-blocks"),description:(0,l.__)("About Author block is the easiest way to add a author bio below your posts. Powered by Otter.","otter-blocks"),icon:n.authorIcon,keywords:["about","author","profile"],edit:()=>(0,c.createElement)("div",(0,i.useBlockProps)(),(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/about-author"}))),save:()=>null})},8398:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion","title":"Accordion","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"gap":{"type":"string"},"titleColor":{"type":"string"},"titleBackground":{"type":"string"},"contentBackground":{"type":"string"},"borderColor":{"type":"string"},"isSynced":{"type":"array"}},"supports":{"html":false},"editorStyle":"otter-accordion-editor","style":"otter-accordion-style"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(5711),m=o(2175),u=o(5609),b=o(3159),p=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Gap","otter-blocks"),value:t.gap,options:[{label:(0,l.__)("No Gap","otter-blocks"),value:""},{label:(0,l.__)("Narrow (5px)","otter-blocks"),value:"narrow"},{label:(0,l.__)("Wide (10px)","otter-blocks"),value:"wide"},{label:(0,l.__)("Wider (20px)","otter-blocks"),value:"wider"}],onChange:e=>o({gap:e})})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.Z,{field:"titleColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>o({titleColor:e})})),(0,c.createElement)(b.Z,{field:"titleBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title Background","otter-blocks"),colorValue:t.titleBackground,onColorChange:e=>o({titleBackground:e})})),(0,c.createElement)(m.ContrastChecker,{textColor:a("titleColor"),backgroundColor:a("titleBackground")}),(0,c.createElement)(b.Z,{field:"contentBackground",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Content Background","otter-blocks"),colorValue:t.contentBackground,onColorChange:e=>o({contentBackground:e})})),(0,c.createElement)(b.Z,{field:"borderColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Border Color","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))))},g=o(5225);const{attributes:h}=r;const{name:k}=r;(0,a.registerBlockType)(k,{...r,title:(0,l.__)("Accordion","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{name:t,attributes:o,setAttributes:l,clientId:a,isSelected:r}=e;(0,c.useEffect)((()=>{const e=(0,g.WX)(a,h);return()=>e(o.id)}),[o.id]);const n=e=>(0,g.Ih)({name:t,field:e,defaultAttributes:h,attributes:o}),i=d.iv`
2
  --titleColor: ${n("titleColor")};
3
  --titleBackground: ${n("titleBackground")};
4
  --borderColor: ${n("borderColor")};
5
  --contentBackground: ${n("contentBackground")};
6
+ `,u=(0,m.useBlockProps)({id:o.id,className:s()({[`is-${o.gap}-gap`]:o.gap}),css:i});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(p,{attributes:o,setAttributes:l,getValue:n}),(0,d.tZ)("div",u,(0,d.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/accordion-item"],template:[["themeisle-blocks/accordion-item"]],renderAppender:r?m.InnerBlocks.ButtonBlockAppender:""})))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:s()({[`is-${t.gap}-gap`]:t.gap})});return(0,c.createElement)("div",o,(0,c.createElement)(m.InnerBlocks.Content,null))}})},7767:function(e,t,o){o(8398),o(1125)},1125:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/accordion-item","title":"Accordion Item","category":"themeisle-blocks","description":"Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","keywords":["accordions","collapse","faq"],"parent":["themeisle-blocks/accordion"],"textdomain":"otter-blocks","attributes":{"title":{"type":"string"},"initialOpen":{"type":"boolean","default":false}},"supports":{"reusable":false}}'),n=o(340),c=o(9307),i=o(6015),s=o(3904),d=o(2175),m=o(5609),u=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(m.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(m.ToggleControl,{label:(0,l.__)("Initially Open","otter-blocks"),checked:t.initialOpen,onChange:e=>o({initialOpen:e})})))};const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Accordion Item","otter-blocks"),description:(0,l.__)("Vertically collapsing accordions perfect for displaying your FAQs. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["accordions","collapse","faq"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!0);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u,{attributes:t,setAttributes:o}),(0,c.createElement)("div",(0,d.useBlockProps)(),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__title",onClick:e=>{"string"==typeof e.target.className&&e.target.className.includes("block-editor-rich-text__editable")?r(!0):r(!a)}},(0,c.createElement)(d.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.title,onChange:e=>{a||r(!0),o({title:e})},tagName:"span"}),(0,c.createElement)(m.Icon,{icon:a?i.Z:s.Z,size:24})),a&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks,{template:[["core/paragraph"]]}))))},save:e=>{let{attributes:t}=e;const o=d.useBlockProps.save({open:!!t.initialOpen});return(0,c.createElement)("details",o,(0,c.createElement)("summary",{className:"wp-block-themeisle-blocks-accordion-item__title"},(0,c.createElement)(d.RichText.Content,{tagName:"div",value:t.title})),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-accordion-item__content"},(0,c.createElement)(d.InnerBlocks.Content,null)))}})},4443:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/advanced-heading","title":"Advanced Heading","category":"themeisle-blocks","description":"Advanced Heading gives a spin to editor\'s Heading block with much needed customization options. Powered by Otter.","keywords":["heading","title","advanced heading"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string","source":"html","selector":"h1,h2,h3,h4,h5,h6,div,p,span","default":""},"tag":{"default":"h2","type":"string"},"align":{"type":"string"},"alignTablet":{"type":"string"},"alignMobile":{"type":"string"},"headingColor":{"type":"string"},"highlightColor":{"type":"string"},"highlightBackground":{"type":"string"},"fontSize":{"type":"number"},"fontSizeTablet":{"type":"number"},"fontSizeMobile":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"fontStyle":{"type":"string"},"textTransform":{"type":"string"},"lineHeight":{"type":"number"},"letterSpacing":{"type":"number"},"textShadow":{"type":"boolean","default":false},"textShadowColor":{"type":"string","default":"#000000"},"textShadowColorOpacity":{"type":"number","default":50},"textShadowBlur":{"type":"number","default":5},"textShadowHorizontal":{"type":"number","default":0},"textShadowVertical":{"type":"number","default":0},"paddingType":{"type":"string","default":"linked"},"paddingTypeTablet":{"type":"string","default":"linked"},"paddingTypeMobile":{"type":"string","default":"linked"},"padding":{"type":"number","default":0},"paddingTablet":{"type":"number"},"paddingMobile":{"type":"number"},"paddingTop":{"type":"number","default":0},"paddingTopTablet":{"type":"number"},"paddingTopMobile":{"type":"number"},"paddingRight":{"type":"number","default":0},"paddingRightTablet":{"type":"number"},"paddingRightMobile":{"type":"number"},"paddingBottom":{"type":"number","default":0},"paddingBottomTablet":{"type":"number"},"paddingBottomMobile":{"type":"number"},"paddingLeft":{"type":"number","default":0},"paddingLeftTablet":{"type":"number"},"paddingLeftMobile":{"type":"number"},"marginType":{"type":"string","default":"unlinked"},"marginTypeTablet":{"type":"string","default":"unlinked"},"marginTypeMobile":{"type":"string","default":"unlinked"},"margin":{"type":"number","default":0},"marginTablet":{"type":"number"},"marginMobile":{"type":"number"},"marginTop":{"type":"number","default":0},"marginTopTablet":{"type":"number"},"marginTopMobile":{"type":"number"},"marginBottom":{"type":"number","default":25},"marginBottomTablet":{"type":"number"},"marginBottomMobile":{"type":"number"}},"editorStyle":"otter-advanced-heading-editor","style":"otter-advanced-heading-style"}'),n=o(9307),c=o(6713),i=window.wp.richText,s=o(2175);const d="themeisle-blocks/highlight";(0,i.registerFormatType)(d,{name:d,title:(0,l.__)("Highlight","otter-blocks"),tagName:"span",className:"highlight",edit:e=>{let{isActive:t,value:o,onChange:a}=e;const r=()=>a((0,i.toggleFormat)(o,{type:d}));return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.RichTextShortcut,{type:"primary",character:"h",onUse:r}),(0,n.createElement)(s.RichTextToolbarButton,{icon:c.Z,title:(0,l.__)("Highlight","otter-blocks"),onClick:r,isActive:t,shortcutType:"access",shortcutCharacter:"h"}))}});var m=o(340),u=o(4184),b=o.n(u),p=o(80),g=o.n(p),h=[{attributes:{id:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6,div,p,span",default:""},tag:{default:"h2",type:"string"},align:{type:"string"},alignTablet:{type:"string"},alignMobile:{type:"string"},headingColor:{type:"string",default:"#000000"},highlightColor:{type:"string"},highlightBackground:{type:"string"},fontSize:{type:"number"},fontSizeTablet:{type:"number"},fontSizeMobile:{type:"number"},fontFamily:{type:"string"},fontVariant:{type:"string"},fontStyle:{type:"string",default:"normal"},textTransform:{type:"string",default:"none"},lineHeight:{type:"number"},letterSpacing:{type:"number"},textShadow:{type:"boolean",default:!1},textShadowColor:{type:"string",default:"#000000"},textShadowColorOpacity:{type:"number",default:50},textShadowBlur:{type:"number",default:5},textShadowHorizontal:{type:"number",default:0},textShadowVertical:{type:"number",default:0},paddingType:{type:"string",default:"linked"},paddingTypeTablet:{type:"string",default:"linked"},paddingTypeMobile:{type:"string",default:"linked"},padding:{type:"number",default:0},paddingTablet:{type:"number",default:0},paddingMobile:{type:"number",default:0},paddingTop:{type:"number",default:0},paddingTopTablet:{type:"number",default:0},paddingTopMobile:{type:"number",default:0},paddingRight:{type:"number",default:0},paddingRightTablet:{type:"number",default:0},paddingRightMobile:{type:"number",default:0},paddingBottom:{type:"number",default:0},paddingBottomTablet:{type:"number",default:0},paddingBottomMobile:{type:"number",default:0},paddingLeft:{type:"number",default:0},paddingLeftTablet:{type:"number",default:0},paddingLeftMobile:{type:"number",default:0},marginType:{type:"string",default:"unlinked"},marginTypeTablet:{type:"string",default:"unlinked"},marginTypeMobile:{type:"string",default:"unlinked"},margin:{type:"number",default:0},marginTablet:{type:"number",default:0},marginMobile:{type:"number",default:0},marginTop:{type:"number",default:0},marginTopTablet:{type:"number",default:0},marginTopMobile:{type:"number",default:0},marginBottom:{type:"number",default:25},marginBottomTablet:{type:"number",default:25},marginBottomMobile:{type:"number",default:20}},save:e=>{let t,{attributes:o,className:l}=e;o.textShadow&&(t={textShadow:`${o.textShadowHorizontal}px ${o.textShadowVertical}px ${o.textShadowBlur}px ${g()(o.textShadowColor?o.textShadowColor:"#000000",o.textShadowColorOpacity)}`});const a={color:o.headingColor,fontFamily:o.fontFamily,fontWeight:"regular"===o.fontVariant?"normal":o.fontVariant,fontStyle:o.fontStyle,textTransform:o.textTransform,lineHeight:o.lineHeight&&`${o.lineHeight}px`,letterSpacing:o.letterSpacing&&`${o.letterSpacing}px`,...t};return(0,n.createElement)(s.RichText.Content,{tagName:o.tag,value:o.content,id:o.id,className:b()(o.id,l),style:a})}}],k={from:[{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("themeisle-blocks/advanced-heading",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,a.createBlock)("core/paragraph",{content:t})}}]},v=o(7462),y=o(5988),f=o(2819),_=o(4333),w=o(9818),C=o(5225),E=o(5609),x=o(9977),T=e=>{let{attributes:t,setAttributes:o}=e;const a=e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},r=e=>{switch(e){case"h1":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H1"));case"h2":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H2"));case"h3":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H3"));case"h4":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H4"));case"h5":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H5"));case"h6":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"H6"));case"div":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DIV"));case"p":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{x:"0",y:"15"},"P"));case"span":return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"SPAN"));default:return(0,n.createElement)(E.SVG,{style:{width:"25px",height:"20px"}},(0,n.createElement)("text",{style:{fontSize:"12px"},x:"0",y:"15"},"DEFAULT"))}},c=e=>{o({tag:e})};return(0,n.createElement)(s.BlockControls,null,(0,n.createElement)(E.DropdownMenu,{icon:r(t.tag),label:(0,l.__)("Select tag","otter-blocks"),className:"components-toolbar",controls:[{title:(0,l.__)("Heading","otter-blocks")+" 1",icon:r("h1"),onClick:()=>c("h1")},{title:(0,l.__)("Heading","otter-blocks")+" 2",icon:r("h2"),onClick:()=>c("h2")},{title:(0,l.__)("Heading","otter-blocks")+" 3",icon:r("h3"),onClick:()=>c("h3")},{title:(0,l.__)("Heading","otter-blocks")+" 4",icon:r("h4"),onClick:()=>c("h4")},{title:(0,l.__)("Heading","otter-blocks")+" 5",icon:r("h5"),onClick:()=>c("h5")},{title:(0,l.__)("Heading","otter-blocks")+" 6",icon:r("h6"),onClick:()=>c("h6")},{title:(0,l.__)("Division","otter-blocks"),icon:r("div"),onClick:()=>c("div")},{title:(0,l.__)("Paragraph","otter-blocks"),icon:r("p"),onClick:()=>c("p")},{title:(0,l.__)("Span Tag","otter-blocks"),icon:r("span"),onClick:()=>c("span")}]}),(0,n.createElement)(E.ToolbarGroup,null,(0,n.createElement)(E.Dropdown,{contentClassName:"wp-themesiel-blocks-advanced-heading-popover-content",position:"bottom center",renderToggle:e=>{let{isOpen:t,onToggle:o}=e;return(0,n.createElement)(E.Button,{className:"components-dropdown-menu__toggle",icon:"editor-textcolor",onClick:o,"aria-haspopup":"true","aria-expanded":t,label:(0,l.__)("Typography Settings","otter-blocks"),showTooltip:!0},(0,n.createElement)("span",{className:"components-dropdown-menu__indicator"}))},renderContent:()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:a,valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100}))})))},M=o(2136),S=o(6993),B=o(2372),z=o(1661),P=e=>{let{values:t,setAttributes:o}=e;return(0,n.createElement)("div",{className:"o-clear-button"},(0,n.createElement)(E.Button,{isSmall:!0,isSecondary:!0,onClick:()=>{const e=((0,f.isArray)(t)?t:[t]).map((e=>{if((0,f.isString)(e))return e;if((0,f.isObject)(e)){const t=Object.keys(e);if(1===t.length)return e[t[0]]?t[0]:void 0}})).filter(f.isString).reduce(((e,t)=>(e[t]=void 0,e)),{});o(e)}},(0,l.__)("Clear","otter-blocks")))},V=e=>{let{attributes:t,setAttributes:o}=e;const a=(0,w.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),[r,c]=(0,n.useState)("style"),i={top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"},d={top:"paddingTopTablet",right:"paddingRightTablet",bottom:"paddingBottomTablet",left:"paddingLeftTablet"},m={top:"paddingTopMobile",right:"paddingRightMobile",bottom:"paddingBottomMobile",left:"paddingLeftMobile"},u=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingTop;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingTopTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingTopMobile}else if("right"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingRight;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingRightTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingRightMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingBottom;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingBottomTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingBottomMobile}else if("left"==e)switch(a){case"Desktop":return"linked"===t.paddingType?t.padding:t.paddingLeft;case"Tablet":return"linked"===t.paddingTypeTablet?t.paddingTablet:t.paddingLeftTablet;case"Mobile":return"linked"===t.paddingTypeMobile?t.paddingMobile:t.paddingLeftMobile}},p={top:"marginTop",bottom:"marginBottom"},g={top:"marginTopTablet",bottom:"marginBottomTablet"},h={top:"marginTopMobile",bottom:"marginBottomMobile"},k=e=>{if("top"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginTop;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginTopTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginTopMobile}else if("bottom"==e)switch(a){case"Desktop":return"linked"===t.marginType?t.margin:t.marginBottom;case"Tablet":return"linked"===t.marginTypeTablet?t.marginTablet:t.marginBottomTablet;case"Mobile":return"linked"===t.marginTypeMobile?t.marginMobile:t.marginBottomMobile}};return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(E.PanelBody,{className:"o-heading-header-panel"},(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"style"===r}),onClick:()=>c("style")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-customizer"}),(0,l.__)("Style","otter-blocks"))),(0,n.createElement)(E.Button,{className:b()("header-tab",{"is-selected":"advanced"===r}),onClick:()=>c("advanced")},(0,n.createElement)("span",null,(0,n.createElement)(E.Dashicon,{icon:"admin-generic"}),(0,l.__)("Advanced","otter-blocks")))),"style"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("General Settings","otter-blocks"),className:"o-adv-h-panel"},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Heading Color","otter-blocks"),colorValue:t.headingColor,onColorChange:e=>o({headingColor:e})}),(0,n.createElement)(S.Z,{label:(0,l.__)("Font Size","otter-blocks")},(0,n.createElement)(E.RangeControl,{value:(()=>{switch(a){case"Desktop":return t.fontSize;case"Tablet":return t.fontSizeTablet;case"Mobile":return t.fontSizeMobile;default:return}})()||"",onChange:e=>{"Desktop"===a?o({fontSize:e}):"Tablet"===a?o({fontSizeTablet:e}):"Mobile"===a&&o({fontSizeMobile:e})},min:1,max:500,allowReset:!0})),(0,n.createElement)(S.Z,{label:(0,l.__)("Alignment","otter-blocks")},(0,n.createElement)(s.AlignmentToolbar,{value:(()=>{switch(a){case"Desktop":return t.align;case"Tablet":return t.alignTablet;case"Mobile":return t.alignMobile;default:return}})(),onChange:e=>{"Desktop"===a?o({align:e}):"Tablet"===a?o({alignTablet:e}):"Mobile"===a&&o({alignMobile:e})},isCollapsed:!1}))),(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,n.createElement)(x.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:e,fontVariant:e})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,n.createElement)(P,{values:["fontFamily","fontVariant","fontStyle","textTransform"],setAttributes:o}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,step:.1,max:3,allowReset:!0}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Letter Spacing","otter-blocks"),value:t.letterSpacing,onChange:e=>o({letterSpacing:e}),min:-50,max:100,allowReset:!0}),(0,n.createElement)(E.ToggleControl,{label:(0,l.__)("Shadow Properties","otter-blocks"),checked:t.textShadow,onChange:e=>o({textShadow:e})}),t.textShadow&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.textShadowColor,onColorChange:e=>o({textShadowColor:e})}),(0,n.createElement)(M.Z,{label:(0,l.__)("Shadow Properties","otter-blocks")},(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.textShadowColorOpacity,onChange:e=>o({textShadowColorOpacity:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.textShadowBlur,onChange:e=>o({textShadowBlur:e}),min:0,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.textShadowHorizontal,onChange:e=>o({textShadowHorizontal:e}),min:-100,max:100}),(0,n.createElement)(E.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.textShadowVertical,onChange:e=>o({textShadowVertical:e}),min:-100,max:100})))))||"advanced"===r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Highlight Color","otter-blocks")},(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Color","otter-blocks"),colorValue:t.highlightColor,onColorChange:e=>o({highlightColor:e})}),(0,n.createElement)(s.__experimentalColorGradientControl,{label:(0,l.__)("Highlight Background","otter-blocks"),colorValue:t.highlightBackground,onColorChange:e=>o({highlightBackground:e})})),(0,n.createElement)(E.PanelBody,{title:(0,l.__)("Spacing","otter-blocks"),initialOpen:!1},(0,n.createElement)(S.Z,{label:(0,l.__)("Padding","otter-blocks")},(0,n.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.paddingType;case"Tablet":return t.paddingTypeTablet;case"Mobile":return t.paddingTypeMobile;default:return}})(),min:0,max:500,changeType:e=>{"Desktop"===a?o({paddingType:e}):"Tablet"===a?o({paddingTypeTablet:e}):"Mobile"===a&&o({paddingTypeMobile:e})},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.paddingType?o({padding:l}):o({[i[e]]:l});break;case"Tablet":"linked"===t.paddingTypeTablet?o({paddingTablet:l}):o({[d[e]]:l});break;case"Mobile":"linked"===t.paddingTypeMobile?o({paddingMobile:l}):o({[m[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:u("top")},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:u("right")},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:u("bottom")},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:u("left")}]})),(0,n.createElement)(P,{values:[{padding:"Desktop"===a&&"linked"===t.paddingType},{paddingTablet:"Tablet"===a&&"linked"===t.paddingType},{paddingMobile:"Mobile"===a&&"linked"===t.paddingType},{paddingRight:"Desktop"===a&&"linked"!==t.paddingType},{paddingRightTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingRightMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingTop:"Desktop"===a&&"linked"!==t.paddingType},{paddingTopTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingTopMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingBottom:"Desktop"===a&&"linked"!==t.paddingType},{paddingBottomTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingBottomMobile:"Mobile"===a&&"linked"!==t.paddingType},{paddingLeft:"Desktop"===a&&"linked"!==t.paddingType},{paddingLeftTablet:"Tablet"===a&&"linked"!==t.paddingType},{paddingLeftMobile:"Mobile"===a&&"linked"!==t.paddingType}],setAttributes:o}),(0,n.createElement)(S.Z,{label:(0,l.__)("Margin","otter-blocks")},(0,n.createElement)(B.Z,{type:(()=>{switch(a){case"Desktop":return t.marginType;case"Tablet":return t.marginTypeTablet;case"Mobile":return t.marginTypeMobile;default:return}})(),min:-500,max:500,changeType:e=>{switch(a){case"Desktop":o({marginType:e});break;case"Tablet":o({marginTypeTablet:e});break;case"Mobile":o({marginTypeMobile:e})}},onChange:(e,l)=>{switch(a){case"Desktop":"linked"===t.marginType?o({margin:l}):o({[p[e]]:l});break;case"Tablet":"linked"===t.marginTypeTablet?o({marginTablet:l}):o({[g[e]]:l});break;case"Mobile":"linked"===t.marginTypeMobile?o({marginMobile:l}):o({[h[e]]:l})}},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:k("top")},{label:(0,l.__)("Right","otter-blocks"),disabled:!0},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:k("bottom")},{label:(0,l.__)("Left","otter-blocks"),disabled:!0}]})),(0,n.createElement)(P,{values:[{margin:"Desktop"===a&&"linked"===t.marginType},{marginTablet:"Tablet"===a&&"linked"===t.marginType},{marginMobile:"Mobile"===a&&"linked"===t.marginType},{marginTop:"Desktop"===a&&"linked"!==t.marginType},{marginTopTablet:"Tablet"===a&&"linked"!==t.marginType},{marginTopMobile:"Mobile"===a&&"linked"!==t.marginType},{marginBottom:"Desktop"===a&&"linked"!==t.marginType},{marginBottomTablet:"Tablet"===a&&"linked"!==t.marginType},{marginBottomMobile:"Mobile"===a&&"linked"!==t.marginType}],setAttributes:o})))),(0,n.createElement)(z.Z,{value:t.id,onChange:e=>o({id:e})}))};const{attributes:R}=r;const{name:L}=r;(0,a.registerBlockType)(L,{...r,title:(0,l.__)("Advanced Heading","otter-blocks"),description:(0,l.__)("Advanced Heading gives a spin to editor's Heading block with much needed customization options. Powered by Otter.","otter-blocks"),icon:m.headingIcon,keywords:["heading","title","advanced heading"],deprecated:h,transforms:k,edit:e=>{let{attributes:t,setAttributes:o,clientId:r,mergeBlocks:c,insertBlocksAfter:i,onReplace:d}=e;const{isViewportAvailable:m,isPreviewDesktop:u,isPreviewTablet:b,isPreviewMobile:p}=(0,w.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),h=(0,_.useViewportMatch)("large",">="),k=(0,_.useViewportMatch)("large","<="),E=(0,_.useViewportMatch)("small",">="),x=(0,_.useViewportMatch)("small","<=");(0,n.useEffect)((()=>{const e=(0,C.WX)(r,R);return()=>e(t.id)}),[t.id]);let M,S,B,z=h&&!k&&E&&!x,P=!h&&!k&&E&&!x,L=!(h||k||E||x);m&&!L&&(z=u,P=b,L=p),z&&(M={fontSize:t.fontSize?`${t.fontSize}px`:void 0},S={textAlign:t.align,paddingTop:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingTop}px`,paddingRight:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingRight}px`,paddingBottom:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingBottom}px`,paddingLeft:"linked"===t.paddingType?`${t.padding}px`:`${t.paddingLeft}px`,marginTop:"linked"===t.marginType?`${t.margin}px`:`${t.marginTop}px`,marginBottom:"linked"===t.marginType?`${t.margin}px`:`${t.marginBottom}px`}),P&&(M={fontSize:t.fontSizeTablet?`${t.fontSizeTablet}px`:void 0},S={textAlign:t.alignTablet,paddingTop:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingTopTablet}px`,paddingRight:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingRightTablet}px`,paddingBottom:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingBottomTablet}px`,paddingLeft:"linked"===t.paddingTypeTablet?`${t.paddingTablet}px`:`${t.paddingLeftTablet}px`,marginTop:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginTopTablet}px`,marginBottom:"linked"===t.marginTypeTablet?`${t.marginTablet}px`:`${t.marginBottomTablet}px`}),L&&(M={fontSize:t.fontSizeMobile?`${t.fontSizeMobile}px`:void 0},S={textAlign:t.alignMobile,paddingTop:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingTopMobile}px`,paddingRight:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingRightMobile}px`,paddingBottom:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingBottomMobile}px`,paddingLeft:"linked"===t.paddingTypeMobile?`${t.paddingMobile}px`:`${t.paddingLeftMobile}px`,marginTop:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginTopMobile}px`,marginBottom:"linked"===t.marginTypeMobile?`${t.marginMobile}px`:`${t.marginBottomMobile}px`}),t.textShadow&&(B={textShadow:`${t.textShadowHorizontal}px ${t.textShadowVertical}px ${t.textShadowBlur}px ${g()(t.textShadowColor?t.textShadowColor:"#000000",0<=t.textShadowColorOpacity?t.textShadowColorOpacity||1e-5:1)}`});const H=(0,f.omitBy)({color:t.headingColor,...M,fontFamily:t.fontFamily||void 0,fontWeight:"regular"===t.fontVariant?"normal":t.fontVariant,fontStyle:t.fontStyle||void 0,textTransform:t.textTransform||void 0,lineHeight:(3<t.lineHeight?t.lineHeight+"px":t.lineHeight)||void 0,letterSpacing:t.letterSpacing&&`${t.letterSpacing}px`,...S,...B},(e=>{var t;return null==e||null===(t=e.includes)||void 0===t?void 0:t.call(e,"undefined")})),N=(0,s.useBlockProps)({id:t.id,style:H});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("style",null,`#${t.id} mark, #${t.id} .highlight {\n\t\t\t\t\t\tcolor: ${t.highlightColor};\n\t\t\t\t\t\tbackground: ${t.highlightBackground};\n\t\t\t\t\t}`),t.fontFamily&&(0,n.createElement)(y.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,n.createElement)(T,{attributes:t,setAttributes:o}),(0,n.createElement)(V,{attributes:t,setAttributes:o}),(0,n.createElement)(s.RichText,(0,v.Z)({identifier:"content",value:t.content,placeholder:(0,l.__)("Write heading…","otter-blocks"),tagName:t.tag,formattingControls:["bold","italic","link","strikethrough","highlight"],allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","themeisle-blocks/highlight","themeisle-blocks/count-animation","themeisle-blocks/typing-animation"],onMerge:c,onSplit:i?function(e,t){o({content:e});for(var l=arguments.length,r=new Array(l>2?l-2:0),n=2;n<l;n++)r[n-2]=arguments[n];i([...r,(0,a.createBlock)("core/paragraph",{content:t})])}:void 0,onRemove:()=>d([]),onChange:e=>{o({content:e})}},N)))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,className:t.id});return(0,n.createElement)(s.RichText.Content,(0,v.Z)({tagName:t.tag,value:t.content},o))}})},9078:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button","title":"Button","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"parent":["themeisle-blocks/button-group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"text":{"type":"string","source":"html","selector":"span"},"link":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"newTab":{"type":"boolean","default":false},"color":{"type":"string"},"background":{"type":"string"},"backgroundGradient":{"type":"string"},"border":{"type":"string"},"hoverColor":{"type":"string"},"hoverBackground":{"type":"string"},"hoverBackgroundGradient":{"type":"string"},"hoverBorder":{"type":"string"},"borderSize":{"type":"number"},"borderRadius":{"type":"number"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowSpread":{"type":"number","default":1},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"hoverBoxShadowColor":{"type":"string"},"hoverBoxShadowColorOpacity":{"type":"number","default":50},"hoverBoxShadowBlur":{"type":"number","default":5},"hoverBoxShadowSpread":{"type":"number","default":1},"hoverBoxShadowHorizontal":{"type":"number","default":0},"hoverBoxShadowVertical":{"type":"number","default":0},"iconType":{"type":"string","default":"none"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string"},"icon":{"type":"string"}},"supports":{"reusable":false},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}]}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(80),u=o.n(m),b=o(2175),p=o(9818),g=o(8504),h=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(b.BlockControls,null,(0,c.createElement)(g.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},k=o(5609),v=o(2136);const y=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var f=e=>{let{attributes:t,setAttributes:o}=e;const[a,r]=(0,c.useState)(!1),n=()=>(0,c.createElement)(k.ButtonGroup,null,(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:a,isPrimary:!a,onClick:()=>r(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(k.Button,{isSmall:!0,isSecondary:!a,isPrimary:a,onClick:()=>r(!0)},(0,l.__)("Hover","otter-blocks")));return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Color","otter-blocks")},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Color","otter-blocks"),colorValue:t.hoverColor,onColorChange:e=>o({hoverColor:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:t.hoverBackground,gradientValue:t.hoverBackgroundGradient,onColorChange:e=>o({hoverBackground:e}),onGradientChange:e=>o({hoverBackgroundGradient:e})})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Color","otter-blocks"),colorValue:t.color,onColorChange:e=>o({color:e})}),(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:t.background,gradientValue:t.backgroundGradient,onColorChange:e=>o({background:e}),onGradientChange:e=>o({backgroundGradient:e})}))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Border & Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(n,null),a?(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.hoverBorder,onColorChange:e=>o({hoverBorder:e})}):(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.border,onColorChange:e=>o({border:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Width","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:10}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100}),(0,c.createElement)(v.Z,{label:(0,l.__)("Box Shadow","otter-blocks"),attributes:t,setAttributes:o,resetValues:{boxShadow:!1,boxShadowColor:void 0,boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:void 0,hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0},onClick:()=>o({boxShadow:!0})},(0,c.createElement)(n,null),a?(0,c.createElement)(c.Fragment,{key:"with-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color on Hover","otter-blocks"),colorValue:t.hoverBoxShadowColor,onColorChange:e=>o({hoverBoxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.hoverBoxShadowColorOpacity,onChange:e=>o({hoverBoxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.hoverBoxShadowBlur,onChange:e=>o({hoverBoxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.hoverBoxShadowSpread,onChange:e=>o({hoverBoxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.hoverBoxShadowHorizontal,onChange:e=>o({hoverBoxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.hoverBoxShadowVertical,onChange:e=>o({hoverBoxShadowVertical:e}),min:-100,max:100})):(0,c.createElement)(c.Fragment,{key:"without-hover"},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Shadow Color","otter-blocks"),colorValue:t.boxShadowColor,onColorChange:e=>o({boxShadowColor:e})}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Opacity","otter-blocks"),value:t.boxShadowColorOpacity,onChange:e=>o({boxShadowColorOpacity:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Blur","otter-blocks"),value:t.boxShadowBlur,onChange:e=>o({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Spread","otter-blocks"),value:t.boxShadowSpread,onChange:e=>o({boxShadowSpread:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Horizontal","otter-blocks"),value:t.boxShadowHorizontal,onChange:e=>o({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(k.RangeControl,{label:(0,l.__)("Vertical","otter-blocks"),value:t.boxShadowVertical,onChange:e=>o({boxShadowVertical:e}),min:-100,max:100})))),(0,c.createElement)(k.PanelBody,{title:(0,l.__)("Icon Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.SelectControl,{label:(0,l.__)("Icon Position","otter-blocks"),value:t.iconType,options:[{label:(0,l.__)("No Icon","otter-blocks"),value:"none"},{label:(0,l.__)("Left","otter-blocks"),value:"left"},{label:(0,l.__)("Right","otter-blocks"),value:"right"},{label:(0,l.__)("Icon Only","otter-blocks"),value:"only"}],onChange:e=>o({iconType:e})}),"none"!==t.iconType&&(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(k.Placeholder,null,(0,c.createElement)(k.Spinner,null))},(0,c.createElement)(y,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))))},_=o(48),w=o(5225);const{attributes:C}=r;const{name:E}=r;(0,a.registerBlockType)(E,{...r,title:(0,l.__)("Button","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["button","buttons","button group"],styles:[{name:"fill",label:(0,l.__)("Fill","otter-blocks"),isDefault:!0},{name:"outline",label:(0,l.__)("Outline","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,isSelected:a,clientId:r}=e;const{hasParent:n,parentAttributes:s}=(0,p.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(r));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,w.WX)(r,C);return()=>e(t.id)}),[]);let m={},g={};t.boxShadow&&(m={boxShadow:`${t.boxShadowHorizontal}px ${t.boxShadowVertical}px ${t.boxShadowBlur}px ${t.boxShadowSpread}px ${u()(t.boxShadowColor?t.boxShadowColor:"#000000",t.boxShadowColorOpacity)}`}),n&&(g={paddingTop:`${s.paddingTopBottom}px`,paddingBottom:`${s.paddingTopBottom}px`,paddingLeft:`${s.paddingLeftRight}px`,paddingRight:`${s.paddingLeftRight}px`,fontSize:s.fontSize&&`${s.fontSize}px`,fontFamily:s.fontFamily,fontWeight:s.fontVariant,fontStyle:s.fontStyle,textTransform:s.textTransform,lineHeight:s.lineHeight&&`${s.lineHeight}px`});const k={color:t.color,background:t.background||t.backgroundGradient,border:`${t.borderSize}px solid ${t.border}`,borderRadius:t.borderRadius,...m,...g},v=i.iv`
 
 
 
 
 
 
 
 
 
 
7
  &:hover {
8
  color: ${t.hoverColor} !important;
9
  background: ${t.hoverBackground||t.hoverBackgroundGradient} !important;
10
  border-color: ${t.hoverBorder} !important;
11
+ ${t.boxShadow&&`box-shadow: ${t.hoverBoxShadowHorizontal}px ${t.hoverBoxShadowVertical}px ${t.hoverBoxShadowBlur}px ${t.hoverBoxShadowSpread}px ${u()(t.hoverBoxShadowColor?t.hoverBoxShadowColor:"#000000",t.hoverBoxShadowColorOpacity)} !important;`}
12
  }
13
 
14
  &:hover svg {
15
  fill: ${t.hoverColor} !important;
16
  }
17
+ `,y={fill:t.color,width:s.fontSize&&`${s.fontSize}px`},E=_.ZP.icons[t.icon],x=(0,b.useBlockProps)({id:t.id,className:"wp-block-button",style:{}});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o,isSelected:a}),(0,i.tZ)(f,{attributes:t,setAttributes:o}),(0,i.tZ)("div",x,"none"!==t.iconType?(0,i.tZ)("div",{className:"wp-block-button__link",style:k,css:v},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:d()({"margin-right":"left"===t.iconType}),style:y}):(0,i.tZ)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,i.tZ)(E,{className:"margin-left",style:y}):(0,i.tZ)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Add text…","otter-blocks"),value:t.text,onChange:e=>o({text:e}),tagName:"div",withoutInteractiveFormatting:!0,className:"wp-block-button__link",style:k,css:v})))},save:e=>{let{attributes:t}=e;const o=_.ZP.icons[t.icon],l=b.useBlockProps.save({id:t.id,className:"wp-block-button"});return(0,c.createElement)("div",l,(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer",className:"wp-block-button__link"},("left"===t.iconType||"only"===t.iconType)&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:d()({"margin-right":"left"===t.iconType})}):(0,c.createElement)("i",{className:d()(t.prefix,"fa-fw",`fa-${t.icon}`,{"margin-right":"left"===t.iconType})})),"only"!==t.iconType&&(0,c.createElement)(b.RichText.Content,{tagName:"span",value:t.text}),"right"===t.iconType&&("themeisle-icons"===t.library&&t.icon?(0,c.createElement)(o,{className:"margin-left"}):(0,c.createElement)("i",{className:`${t.prefix} fa-fw fa-${t.icon} margin-left`}))))}})},9521:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/button-group","title":"Button Group","category":"themeisle-blocks","description":"Prompt visitors to take action with a button group. Powered by Otter.","keywords":["button","buttons","button group"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"spacing":{"type":"number","default":20},"paddingTopBottom":{"type":"number"},"paddingLeftRight":{"type":"number"},"collapse":{"type":"string","default":"collapse-none"},"fontSize":{"type":"number"},"fontFamily":{"type":"string"},"fontVariant":{"type":"string"},"textTransform":{"type":"string"},"fontStyle":{"type":"string"},"lineHeight":{"type":"number"}},"editorStyle":"otter-button-group-editor","style":"otter-button-group-style"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(2819),m=o(2175);const u={id:{type:"string"},buttons:{type:"number",default:2},align:{type:"string"},spacing:{type:"number",default:20},collapse:{type:"string",default:"collapse-none"},fontSize:{type:"number",default:18},fontFamily:{type:"string"},fontVariant:{type:"string"},textTransform:{type:"string"},fontStyle:{type:"string",default:"normal"},lineHeight:{type:"number"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24},{text:"",link:"",newTab:!1,color:"#ffffff",background:"#32373c",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:0,borderRadius:0,boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:12,paddingLeftRight:24}]}},b=[{attributes:u,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:u,save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"",a={fontSize:`${t.fontSize}px`,fontFamily:t.fontFamily,fontWeight:t.fontVariant,fontStyle:t.fontStyle,textTransform:t.textTransform,lineHeight:t.lineHeight&&`${t.lineHeight}px`};return(0,c.createElement)("div",{id:t.id,className:s()(o,l),style:{justifyContent:t.align,alignItems:t.align?t.align:"flex-start"}},(0,d.times)(t.buttons,(e=>(e=>{const o={...a,borderWidth:`${t.data[e].borderSize}px`,borderRadius:`${t.data[e].borderRadius}px`,padding:`${t.data[e].paddingTopBottom}px ${t.data[e].paddingLeftRight}px`};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`),style:o,rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))})(e))))}},{attributes:{...u,fontSize:{type:"number"},fontStyle:{type:"string"},data:{type:"array",default:[{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""},{text:"",link:"",newTab:!1,color:"",background:"",border:"",hoverColor:"",hoverBackground:"",hoverBorder:"",borderSize:"",borderRadius:"",boxShadow:!1,boxShadowColor:"",boxShadowColorOpacity:50,boxShadowBlur:5,boxShadowSpread:1,boxShadowHorizontal:0,boxShadowVertical:0,hoverBoxShadowColor:"",hoverBoxShadowColorOpacity:50,hoverBoxShadowBlur:5,hoverBoxShadowSpread:1,hoverBoxShadowHorizontal:0,hoverBoxShadowVertical:0,iconType:"none",prefix:"",icon:"",paddingTopBottom:"",paddingLeftRight:""}]}},migrate:(e,t)=>{let o,l,r;return"flex-start"===e.align&&(o="left"),"center"===e.align&&(o="center"),"flex-end"===e.align&&(o="right"),e.data&&(l=(0,d.pick)(e.data[0],["paddingLeftRight","paddingTopBottom"]),1<=Object.keys(l).length&&(l=(0,d.pick)(l,Object.keys(l).filter((e=>""!==l[e])))),r=e.data.filter(((t,o)=>o<e.buttons)).map((e=>{const t=(0,d.omit)(e,["paddingLeftRight","paddingTopBottom"]);return(0,a.createBlock)("themeisle-blocks/button",{...t})}))),[{...(0,d.omit)(e,["buttons","data"]),align:o,...l},[...r,...t]]},save:e=>{let{attributes:t,className:o}=e;const l="collapse-none"!==t.collapse?t.collapse:"";return(0,c.createElement)("div",{id:t.id,className:s()(o,l,"wp-block-button")},(0,d.times)(t.buttons,(e=>(e=>(0,c.createElement)("a",{href:t.data[e].link,target:t.data[e].newTab?"_blank":"_self",className:s()("wp-block-themeisle-blocks-button",`wp-block-themeisle-blocks-button-${e}`,"wp-block-button__link"),rel:"noopener noreferrer"},("left"===t.data[e].iconType||"only"===t.data[e].iconType)&&(0,c.createElement)("i",{className:s()(t.data[e].prefix,"fa-fw",`fa-${t.data[e].icon}`,{"margin-right":"left"===t.data[e].iconType})}),"only"!==t.data[e].iconType&&(0,c.createElement)(m.RichText.Content,{tagName:"span",value:t.data[e].text}),"right"===t.data[e].iconType&&(0,c.createElement)("i",{className:`${t.data[e].prefix} fa-fw fa-${t.data[e].icon} margin-left`})))(e))))}}];var p=b,g=o(5988),h=o(5711),k=o(4333),v=o(9818),y=o(1150),f=o(8065),_=o(199),w=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.BlockControls,null,(0,c.createElement)(m.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e}),alignmentControls:[{icon:y.Z,title:(0,l.__)("Align left","otter-blocks"),align:"left"},{icon:f.Z,title:(0,l.__)("Align center","otter-blocks"),align:"center"},{icon:_.Z,title:(0,l.__)("Align right","otter-blocks"),align:"right"}]}))},C=o(5609),E=o(9977),x=o(2372),T=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Spacing","otter-blocks")},(0,c.createElement)(x.Z,{label:(0,l.__)("Padding","otter-blocks"),min:0,max:100,onChange:(e,t)=>{"top"!==e&&"bottom"!==e||o({paddingTopBottom:t}),"right"!==e&&"left"!==e||o({paddingLeftRight:t})},options:[{label:(0,l.__)("Top","otter-blocks"),type:"top",value:t.paddingTopBottom},{label:(0,l.__)("Right","otter-blocks"),type:"right",value:t.paddingLeftRight},{label:(0,l.__)("Bottom","otter-blocks"),type:"bottom",value:t.paddingTopBottom},{label:(0,l.__)("Left","otter-blocks"),type:"left",value:t.paddingLeftRight}]}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Spacing","otter-blocks"),value:t.spacing,onChange:e=>o({spacing:e}),min:0,max:50}),(0,c.createElement)(C.SelectControl,{label:(0,l.__)("Collapse On","otter-blocks"),value:t.collapse,options:[{label:(0,l.__)("None","otter-blocks"),value:"collapse-none"},{label:(0,l.__)("Desktop","otter-blocks"),value:"collapse-desktop"},{label:(0,l.__)("Tablet","otter-blocks"),value:"collapse-tablet"},{label:(0,l.__)("Mobile","otter-blocks"),value:"collapse-mobile"}],onChange:e=>o({collapse:e})})),(0,c.createElement)(C.PanelBody,{title:(0,l.__)("Typography Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),value:t.fontSize,onChange:e=>o({fontSize:e}),min:0,max:50}),(0,c.createElement)(E.Z,{label:(0,l.__)("Font Family","otter-blocks"),value:t.fontFamily,onChangeFontFamily:e=>{o(e?{fontFamily:e,fontVariant:"normal",fontStyle:"normal"}:{fontFamily:void 0,fontVariant:void 0,fontStyle:void 0})},valueVariant:t.fontVariant,onChangeFontVariant:e=>o({fontVariant:e}),valueStyle:t.fontStyle,onChangeFontStyle:e=>o({fontStyle:e}),valueTransform:t.textTransform,onChangeTextTransform:e=>o({textTransform:e})}),(0,c.createElement)(C.RangeControl,{label:(0,l.__)("Line Height","otter-blocks"),value:t.lineHeight,onChange:e=>o({lineHeight:e}),min:0,max:200})))},M=o(5225);const{attributes:S}=r;const{name:B}=r;(0,a.registerBlockType)(B,{...r,title:(0,l.__)("Button Group","otter-blocks"),description:(0,l.__)("Prompt visitors to take action with a button group. Powered by Otter.","otter-blocks"),icon:n.buttonsIcon,keywords:["button","buttons","button group"],deprecated:p,edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const{isViewportAvailable:a,isPreviewDesktop:r,isPreviewTablet:n,isPreviewMobile:i}=(0,v.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),d=(0,k.useViewportMatch)("large",">="),u=(0,k.useViewportMatch)("large","<="),b=(0,k.useViewportMatch)("small",">="),p=(0,k.useViewportMatch)("small","<=");(0,c.useEffect)((()=>{const e=(0,M.WX)(l,S);return()=>e(t.id)}),[]);let y=d&&!u&&b&&!p,f=!d&&!u&&b&&!p,_=!(d||u||b||p);a&&!_&&(y=r,f=n,_=i);const C=(0,m.useBlockProps)({id:t.id,className:s()("wp-block-buttons",{[`align-${t.align}`]:t.align,collapse:"collapse-desktop"===t.collapse&&(y||f||_)||"collapse-tablet"===t.collapse&&(f||_)||"collapse-mobile"===t.collapse&&_}),css:h.iv`
18
  .block-editor-block-list__layout {
19
  gap: ${t.spacing}px;
20
  }
21
+ `});return(0,h.tZ)(c.Fragment,null,t.fontFamily&&(0,h.tZ)(g.Z,{fonts:[{font:t.fontFamily,weights:t.fontVariant&&[t.fontVariant+("italic"===t.fontStyle?":i":"")]}]}),(0,h.tZ)(w,{attributes:t,setAttributes:o}),(0,h.tZ)(T,{attributes:t,setAttributes:o}),(0,h.tZ)("div",C,(0,h.tZ)(m.InnerBlocks,{allowedBlocks:["themeisle-blocks/button"],__experimentalMoverDirection:"horizontal",orientation:"horizontal",template:[["themeisle-blocks/button"]],renderAppender:m.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o="collapse-none"!==t.collapse?t.collapse:"",l=m.useBlockProps.save({id:t.id,className:s()(o,"wp-block-buttons",{[`align-${t.align}`]:t.align})});return(0,c.createElement)("div",l,(0,c.createElement)(m.InnerBlocks.Content,null))}})},3312:function(e,t,o){o(9521),o(9078)},469:function(e,t,o){var l=o(269),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/circle-counter","title":"Circle Counter","category":"themeisle-blocks","description":"Show your progress with a beautiful Circle Counter block. Powered by Otter.","keywords":["progress","circle","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"height":{"type":"number","default":100},"fontSizeTitle":{"type":"number"},"fontSizePercent":{"type":"number"},"strokeWidth":{"type":"number","default":10},"backgroundColor":{"type":"string"},"progressColor":{"type":"string"},"titleColor":{"type":"string"}},"editorStyle":"otter-circle-counter-editor","style":"otter-circle-counter-style","script":"otter-circle-counter"}'),c=o(9307),i=o(5711),s=o(2819),d=o(5609),m=o(2175),u=e=>{let{attributes:t,setAttributes:o,onHeightChange:l}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Percentage","otter-blocks"),help:(0,a.__)("The value of the counter.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Duration","otter-blocks"),help:(0,a.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,s.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,a.__)("Default","otter-blocks"),value:"default"},{label:(0,a.__)("Hide","otter-blocks"),value:"hide"},{label:(0,a.__)("Bottom","otter-blocks"),value:"bottom"}],onChange:e=>{o({titleStyle:e})}})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Style","otter-blocks")},(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("The height of the circle counter.","otter-blocks"),value:t.height,onChange:l,min:0,max:240}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Circle Thickness","otter-blocks"),help:(0,a.__)("Change the thickness (stroke width) of the circle.","otter-blocks"),value:t.strokeWidth,onChange:e=>{o({strokeWidth:e})},initialPosition:10,min:0,max:20}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Title","otter-blocks"),help:(0,a.__)("Change the font size of the title.","otter-blocks"),value:t.fontSizeTitle,onChange:e=>{o({fontSizeTitle:e})},initialPosition:37,min:0,max:Math.round(.6*t.height)}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Font Size Percent","otter-blocks"),help:(0,a.__)("Change the font size of the inner text.","otter-blocks"),value:t.fontSizePercent,onChange:e=>{o({fontSizePercent:e})},initialPosition:27,min:0,max:Math.round(.27*t.height)}),"hide"!==t.titleStyle&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Progress Color","otter-blocks"),colorValue:t.progressColor,onColorChange:e=>{o({progressColor:e})}}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))},b=e=>{let{attributes:t,progressRef:o,valueRef:l}=e;const a=t.height,r=a/2,n=a/2-t.strokeWidth/2,i=2*Math.PI*n;return 0>n?(0,c.createElement)("div",null):(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar",style:{height:a+"px",width:a+"px"}},(0,c.createElement)("svg",{className:"wp-block-themeisle-blocks-circle-counter-container",width:a,height:a},(0,c.createElement)("circle",{className:"wp-block-themeisle-blocks-circle-counter-bg",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,style:{stroke:t.backgroundColor}}),(0,c.createElement)("circle",{ref:o,className:"wp-block-themeisle-blocks-circle-counter-progress",cx:r,cy:r,r:n,strokeWidth:t.strokeWidth,strokeDasharray:i,style:{stroke:t.progressColor}}),(0,c.createElement)("text",{ref:l,className:"wp-block-themeisle-blocks-circle-counter-text",x:"50%",y:"50%",style:{fill:t.progressColor,fontSize:t.fontSizePercent+"px"}},t.percentage,"%")))},p=o(5225);const{attributes:g}=n;const{clamp:h,omit:k}=lodash;var v={to:[{type:"block",blocks:["themeisle-blocks/progress-bar"],transform:e=>{const t=k(e,["titleStyle","height","fontSize","strokeWidth","progressColor"]);return(0,r.createBlock)("themeisle-blocks/progress-bar",{...t,barBackgroundColor:e.progressColor,height:h(e.height/4,0,100),titleStyle:"default"})}}]};const{name:y}=n;(0,r.registerBlockType)(y,{...n,title:(0,a.__)("Circle Counter","otter-blocks"),description:(0,a.__)("Show your progress with a beautiful Circle Counter block. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["progress","circle","counter"],transforms:v,edit:e=>{let{clientId:t,attributes:o,setAttributes:l,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,p.WX)(t,g);return()=>e(o.id)}),[o.id]);const h=(0,c.useRef)(null),k=(0,c.useRef)(null),[v,y]=(0,c.useState)({}),f=o.height/2-o.strokeWidth/2,_=2*Math.PI*f;(0,c.useEffect)((()=>{if(!h.current||!h.current||0===o.duration)return;const e=o.percentage/(1e3*o.duration),t=(0,s.range)(0,1e3*o.duration+20,20).map((t=>t*e)).reverse();v&&clearInterval(v),h.current.style.strokeDashoffset=_,k.current.innerText="0%";const l=setInterval((()=>{if(!h.current)return void clearInterval(l);const e=Math.round(t.pop());h.current.style.strokeDashoffset=(100-e)/100*_,k.current.innerHTML=e+"%",0===t.length&&clearInterval(l)}),20);return y(l),()=>{clearInterval(l)}}),[o.duration]),(0,c.useEffect)((()=>{if(h.current&&h.current)return h.current.style.strokeDashoffset=(100-o.percentage)/100*_,k.current.innerHTML=o.percentage+"%",clearInterval(v),()=>{clearInterval(v)}}),[o.percentage,o.height]);const w=e=>{const t=(o.fontSizePercent||27)/o.height,a=(o.fontSizeTitle||37)/o.height;l({height:e,fontSizePercent:Math.round(e*t),fontSizeTitle:Math.round(e*a)})},C=e=>{l({title:e})},E=i.iv`
22
  --fontSizeTitle: ${x=o.fontSizeTitle,x?`${x}px`:x};
23
+ `;var x;const T=(0,m.useBlockProps)({id:o.id,css:E});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(u,{attributes:o,setAttributes:l,onHeightChange:w}),(0,i.tZ)("div",T,"default"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}})),(0,i.tZ)(d.ResizableBox,{size:{height:o.height,width:o.height},minHeight:0,maxHeight:240,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:r,onResizeStop:(e,t,l,a)=>{w(parseInt(o.height+a.height,10)),n(!0)},onResizeStart:()=>{n(!1)}},(0,i.tZ)(b,{attributes:o,progressRef:h,valueRef:k})),"bottom"===o.titleStyle&&(0,i.tZ)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,i.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-circle-counter-title__value",placeholder:r?(0,a.__)("Write caption…","otter-blocks"):null,value:o.title,onChange:C,multiline:!1,style:{color:o.titleColor}}))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,"data-percentage":t.percentage,"data-duration":t.duration,"data-height":t.height,"data-stroke-width":t.strokeWidth,"data-font-size-percent":t.fontSizePercent,"data-background-stroke":t.backgroundColor,"data-progress-stroke":t.progressColor});return(0,c.createElement)("div",o,"default"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)),(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter__bar"}),"bottom"===t.titleStyle&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-circle-counter-title__area"},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-circle-counter-title__value"},t.title)))}})},4948:function(e,t,o){var l=o(2506),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/countdown","title":"Countdown","category":"themeisle-blocks","description":"Set a countdown for a date. Powered by Otter.","keywords":["countdown","time","counter"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"date":{"type":"string"},"exclude":{"type":"array"},"backgroundColor":{"type":"string"},"valueColor":{"type":"string"},"labelColor":{"type":"string"},"labelDistance":{"type":"number"},"gap":{"type":"number"},"gapTablet":{"type":"number"},"gapMobile":{"type":"number"},"width":{"type":"number"},"widthTablet":{"type":"number"},"widthMobile":{"type":"number"},"height":{"type":"number"},"heightTablet":{"type":"number"},"heightMobile":{"type":"number"},"borderRadius":{"type":"number","default":0},"borderRadiusType":{"type":"string","default":"linked"},"borderRadiusTopRight":{"type":"number","default":0},"borderRadiusTopLeft":{"type":"number","default":0},"borderRadiusBottomRight":{"type":"number","default":0},"borderRadiusBottomLeft":{"type":"number","default":0},"borderWidth":{"type":"number"},"borderWidthTablet":{"type":"number"},"borderWidthMobile":{"type":"number"},"borderColor":{"type":"string"},"valueFontSize":{"type":"number"},"valueFontSizeTablet":{"type":"number"},"valueFontSizeMobile":{"type":"number"},"labelFontSize":{"type":"number"},"labelFontSizeTablet":{"type":"number"},"labelFontSizeMobile":{"type":"number"},"hasSeparators":{"type":"boolean"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-countdown-editor","style":"otter-countdown-style","script":"otter-countdown"}'),c=o(9307),i=o(5711),s=o(2175),d=o(4333),m=o(9818),u=window.moment,b=o.n(u),p=o(5225),g=o(5609),h=o(9771),k=o(6993),v=o(2372),y=e=>{var t,o,l,r;let{attributes:n,setAttributes:i}=e;const d=(0,m.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),u=(e,t)=>{var o;i(e?{exclude:null==n||null===(o=n.exclude)||void 0===o?void 0:o.filter((e=>e!==t))}:{exclude:null!=n&&n.exclude?[...null==n?void 0:n.exclude,t]:[t]})},b=e=>{let t;return"top-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopRight),"top-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusTopLeft),"bottom-right"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomRight),"bottom-left"===e&&(t="linked"===n.borderRadiusType?n.borderRadius:n.borderRadiusBottomLeft),t},p={"top-right":"borderRadiusTopRight","top-left":"borderRadiusTopLeft","bottom-left":"borderRadiusBottomLeft","bottom-right":"borderRadiusBottomRight"},y=(0,h.__experimentalGetSettings)();return(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Time","otter-blocks")},(0,c.createElement)(g.Dropdown,{position:"bottom left",headerTitle:(0,a.__)("Select the date for the deadline","otter-blocks"),renderToggle:e=>{let{onToggle:t,isOpen:o}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g.Button,{onClick:t,isSecondary:!0,"aria-expanded":o},n.date?(0,h.format)(y.formats.datetime,n.date):(0,a.__)("Select Date","otter-blocks")))},renderContent:()=>(0,c.createElement)(g.DateTimePicker,{currentDate:n.date,onChange:e=>i({date:e})})})),(0,c.createElement)(g.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Days","otter-blocks"),checked:!(null!=n&&null!==(t=n.exclude)&&void 0!==t&&t.includes("day")),onChange:e=>u(e,"day")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Hours","otter-blocks"),checked:!(null!=n&&null!==(o=n.exclude)&&void 0!==o&&o.includes("hour")),onChange:e=>u(e,"hour")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Minutes","otter-blocks"),checked:!(null!=n&&null!==(l=n.exclude)&&void 0!==l&&l.includes("minute")),onChange:e=>u(e,"minute")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Seconds","otter-blocks"),checked:!(null!=n&&null!==(r=n.exclude)&&void 0!==r&&r.includes("second")),onChange:e=>u(e,"second")}),(0,c.createElement)(g.ToggleControl,{label:(0,a.__)("Display Separators","otter-blocks"),checked:null==n?void 0:n.hasSeparators,onChange:e=>i({hasSeparators:e})}),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Spacing","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.gapMobile:"Tablet"===d?n.gapTablet:n.gap,onChange:e=>{"Desktop"===d&&i({gap:Number(e)}),"Tablet"===d&&i({gapTablet:Number(e)}),"Mobile"===d&&i({gapMobile:Number(e)})},min:0,max:100})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Height","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.heightMobile:"Tablet"===d?n.heightTablet:n.height,onChange:e=>{"Desktop"===d&&i({height:Number(e)}),"Tablet"===d&&i({heightTablet:Number(e)}),"Mobile"===d&&i({heightMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Box Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.widthMobile:"Tablet"===d?n.widthTablet:n.width,onChange:e=>{"Desktop"===d&&i({width:Number(e)}),"Tablet"===d&&i({widthTablet:Number(e)}),"Mobile"===d&&i({widthMobile:Number(e)})},min:40,max:300})),(0,c.createElement)(k.Z,{label:(0,a.__)("Border Width","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.borderWidthMobile:"Tablet"===d?n.borderWidthTablet:n.borderWidth,onChange:e=>{"Desktop"===d&&i({borderWidth:Number(e)}),"Tablet"===d&&i({borderWidthTablet:Number(e)}),"Mobile"===d&&i({borderWidthMobile:Number(e)})},min:0,max:50})),(0,c.createElement)(k.Z,{label:(0,a.__)("Time Value Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.valueFontSizeMobile:"Tablet"===d?n.valueFontSizeTablet:n.valueFontSize,onChange:e=>{"Desktop"===d&&i({valueFontSize:Number(e)}),"Tablet"===d&&i({valueFontSizeTablet:Number(e)}),"Mobile"===d&&i({valueFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(k.Z,{label:(0,a.__)("Label Font Size","otter-blocks")},(0,c.createElement)(g.RangeControl,{value:"Mobile"===d?n.labelFontSizeMobile:"Tablet"===d?n.labelFontSizeTablet:n.labelFontSize,onChange:e=>{"Desktop"===d&&i({labelFontSize:Number(e)}),"Tablet"===d&&i({labelFontSizeTablet:Number(e)}),"Mobile"===d&&i({labelFontSizeMobile:Number(e)})},min:0,max:64})),(0,c.createElement)(v.Z,{label:(0,a.__)("Border Radius (%)","otter-blocks"),type:n.borderRadiusType,min:0,max:100,changeType:e=>{i({borderRadiusType:e})},onChange:(e,t)=>{"linked"===n.borderRadiusType?i({borderRadius:t}):i({[p[e]]:t})},options:[{label:(0,a.__)("Top Left","otter-blocks"),type:"top-left",value:b("top-left")},{label:(0,a.__)("Top Right","otter-blocks"),type:"top-right",value:b("top-right")},{label:(0,a.__)("Bottom Right","otter-blocks"),type:"bottom-right",value:b("bottom-right")},{label:(0,a.__)("Bottom Left","otter-blocks"),type:"bottom-left",value:b("bottom-left")}]})),(0,c.createElement)(s.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:n.backgroundColor,onChange:e=>{i({backgroundColor:e})},label:(0,a.__)("Background","otter-blocks")},{value:n.labelColor,onChange:e=>{i({labelColor:e})},label:(0,a.__)("Label","otter-blocks")},{value:n.valueColor,onChange:e=>{i({valueColor:e})},label:(0,a.__)("Value","otter-blocks")},{value:n.borderColor,onChange:e=>{i({borderColor:e})},label:(0,a.__)("Border","otter-blocks")}]},(0,c.createElement)(s.ContrastChecker,{textColor:n.backgroundColor,backgroundColor:n.valueColor})))},f=o(4715),_=o(7462),w=o(4184),C=o.n(w);const E=e=>{let{name:t,value:o,tag:l,styles:a}=e;const r="sep"!==t?{...a.allComponents,...a.mainComponents}:a.allComponents;return(0,c.createElement)("div",{style:r,name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{style:a.value,className:"otter-countdown__value"},o),(0,c.createElement)("div",{style:a.label,className:"otter-countdown__label"},t))};var x=e=>{let{time:t,hasSeparators:o,styles:l}=e;const a=o?(0,f.S3)(t,{name:"sep",value:":",tag:"separator"}):t,r=null==a?void 0:a.map(((e,t)=>(0,c.createElement)(E,(0,_.Z)({},e,{key:t,styles:l}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{style:l.display,className:"otter-countdown__display"},r)):(0,c.createElement)(c.Fragment,null)};const{attributes:T}=n,M=e=>e?`${e}px`:e;const S=e=>{let{name:t,value:o,tag:l}=e;return(0,c.createElement)("div",{name:l,className:C()("otter-countdown__display-area",{"is-main-component":"separator"!==l})},(0,c.createElement)("div",{className:"otter-countdown__value"},o),(0,c.createElement)("div",{className:"otter-countdown__label"},t))},B=e=>{let{time:t,hasSeparators:o}=e;const l=o?(0,f.S3)(t,{name:"sep",value:":",tag:"separator"}):t,a=null==l?void 0:l.map(((e,t)=>(0,c.createElement)(S,(0,_.Z)({},e,{key:t}))));return void 0!==t?(0,c.createElement)("div",{className:"otter-countdown__container"},(0,c.createElement)("div",{className:"otter-countdown__display"},a)):(0,c.createElement)(c.Fragment,null)};const{name:z}=n;(0,r.registerBlockType)(z,{...n,title:(0,a.__)("Countdown","otter-blocks"),description:(0,a.__)("Set a countdown for a date. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["countdown","time","counter"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;const[a,r]=(0,c.useState)(0);(0,c.useEffect)((()=>{const e=(0,p.WX)(l,T);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{const e=setInterval((()=>{if(t.date){let e=t.date+(0,f.EP)();e=1e3*b()(e).unix(),r(new Date(e)-new Date)}}),500);return()=>{clearInterval(e)}}),[t.date]);const{isViewportAvailable:n,isPreviewDesktop:u,isPreviewTablet:g,isPreviewMobile:h}=(0,m.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t}=!!e("core/edit-post")&&e("core/edit-post");return{isViewportAvailable:!!t,isPreviewDesktop:!!t&&"Desktop"===t(),isPreviewTablet:!!t&&"Tablet"===t(),isPreviewMobile:!!t&&"Mobile"===t()}}),[]),k=(0,d.useViewportMatch)("large",">="),v=(0,d.useViewportMatch)("large","<="),_=(0,d.useViewportMatch)("small",">="),w=(0,d.useViewportMatch)("small","<=");let C,E=k&&!v&&_&&!w,S=!k&&!v&&_&&!w,B=!(k||v||_||w);n&&!B&&(E=u,S=g,B=h),S?C={value:{fontSize:M(null==t?void 0:t.valueFontSizeTablet)},label:{fontSize:M(null==t?void 0:t.labelFontSizeTablet)},display:{gap:M(t.gapTablet)},allComponents:{height:M(null==t?void 0:t.heightTablet)},mainComponents:{width:M(null==t?void 0:t.widthTablet),borderWidth:M(t.borderWidthTablet)}}:B?C={value:{fontSize:M(t.valueFontSizeMobile)},label:{fontSize:M(t.labelFontSizeMobile)},display:{gap:M(t.gapMobile)},allComponents:{height:M(null==t?void 0:t.heightMobile)},mainComponents:{width:M(null==t?void 0:t.widthMobile),borderWidth:M(t.borderWidthMobile)}}:E&&(C={value:{fontSize:M(t.valueFontSize)},label:{fontSize:M(t.labelFontSize)},display:{gap:M(t.gap)},allComponents:{height:M(t.height)},mainComponents:{width:M(t.width),borderWidth:M(t.borderWidth)}});const z="linked"===t.borderRadiusType?t.borderRadius+"%":`${t.borderRadiusTopLeft}% ${t.borderRadiusTopRight}% ${t.borderRadiusBottomRight}% ${t.borderRadiusBottomLeft}%`,P=i.iv`
24
  --backgroundColor: ${t.backgroundColor};
25
  --borderColor: ${t.borderColor};
26
  --borderRadius: ${z};
32
  .otter-countdown__display-area .otter-countdown__label {
33
  color: ${t.labelColor};
34
  }
35
+ `,V=(0,s.useBlockProps)({id:t.id,css:P});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:t,setAttributes:o}),(0,i.tZ)("div",V,(0,i.tZ)(x,{time:(0,f.Mg)(a,{exclude:null==t?void 0:t.exclude}),styles:C,hasSeparators:t.hasSeparators})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,"data-date":t.date});return(0,c.createElement)("div",o,(0,c.createElement)(B,{time:(0,f.Mg)(0,{exclude:null==t?void 0:t.exclude}),hasSeparators:null==t?void 0:t.hasSeparators}))}})},9799:function(e,t,o){var l=o(269),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/flip","title":"Flip Card","category":"themeisle-blocks","description":"Make a card with a flip effect. Powered by Otter.","keywords":["flip card","container","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"isInverted":{"type":"boolean"},"title":{"type":"string"},"description":{"type":"string"},"animType":{"type":"string","default":"flipY"},"width":{"type":"number"},"height":{"type":"number"},"padding":{"type":"number"},"borderWidth":{"type":"string"},"borderColor":{"type":"string"},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"frontVerticalAlign":{"type":"string"},"frontHorizontalAlign":{"type":"string"},"backVerticalAlign":{"type":"string"},"frontMedia":{"type":"object"},"frontMediaWidth":{"type":"number"},"frontMediaHeight":{"type":"number"},"frontBackgroundImage":{"type":"object"},"frontBackgroundType":{"type":"string","default":"color"},"frontBackgroundColor":{"type":"string"},"frontBackgroundGradient":{"type":"string"},"frontBackgroundPosition":{"type":"object"},"frontBackgroundRepeat":{"type":"string"},"frontBackgroundAttachment":{"type":"string"},"frontBackgroundSize":{"type":"string"},"backBackgroundImage":{"type":"object"},"backBackgroundType":{"type":"string","default":"color"},"backBackgroundColor":{"type":"string"},"backBackgroundGradient":{"type":"string"},"backBackgroundPosition":{"type":"object"},"backBackgroundRepeat":{"type":"string"},"backBackgroundSize":{"type":"string"},"backBackgroundAttachment":{"type":"string"},"boxShadow":{"type":"boolean","default":false},"boxShadowColor":{"type":"string","default":"#000000"},"boxShadowColorOpacity":{"type":"number","default":50},"boxShadowBlur":{"type":"number","default":5},"boxShadowHorizontal":{"type":"number","default":0},"boxShadowVertical":{"type":"number","default":0},"titleFontSize":{"type":"number"},"descriptionFontSize":{"type":"number"},"titleColor":{"type":"string"},"descriptionColor":{"type":"string"}},"editorStyle":"otter-flip-editor","style":"otter-flip-style"}'),c=o(9307),i=o(4184),s=o.n(i),d=o(5711),m=o(2175),u=o(5609),b=e=>{let{attributes:t,setAttributes:o,isFliped:l}=e;const r=m.__experimentalBlockAlignmentMatrixControl||m.__experimentalBlockAlignmentMatrixToolbar;return(0,c.createElement)(m.BlockControls,null,(!t.isInverted&&!1===l||t.isInverted&&l)&&(0,c.createElement)(u.Toolbar,null,(0,c.createElement)(r,{label:(0,a.__)("Change front side content position","otter-blocks"),value:t.frontAlign,onChange:e=>o({frontAlign:e})})))},p=o(2819),g=o(2136),h=o(5452),k=e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Width","otter-blocks"),help:(0,a.__)("Width of the container. Make sure that the width match the size of your content.","otter-blocks"),value:o.width,onChange:e=>l({width:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Height","otter-blocks"),help:(0,a.__)("Height of the container. Make sure that the height match the size of your content.","otter-blocks"),value:o.height,onChange:e=>l({height:e}),min:0,max:1200,allowReset:!0}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Invert the sides","otter-blocks"),checked:o.isInverted,onChange:e=>l({isInverted:e}),help:(0,a.__)("Use this to display the back side first.","otter-blocks")})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Front","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.BaseControl,{label:(0,a.__)("Media Image","otter-blocks"),help:(0,a.__)("Set an image as showcase.","otter-blocks")},null!==(t=o.frontMedia)&&void 0!==t&&t.url?(0,c.createElement)(u.BaseControl,null,(0,c.createElement)("img",{src:o.frontMedia.url,alt:o.frontMedia.alt,style:{border:"2px solid var( --wp-admin-theme-color)",maxHeight:"250px"}}),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:()=>l({frontMedia:void 0})},(0,a.__)("Remove image","otter-blocks"))):(0,c.createElement)(m.MediaPlaceholder,{labels:{title:(0,a.__)("Media Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:o.frontMedia,onSelect:e=>l({frontMedia:(0,p.pick)(e,["id","alt","url"])})})),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Width","otter-blocks"),value:o.frontMediaWidth,onChange:e=>l({frontMediaWidth:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Media Height","otter-blocks"),value:o.frontMediaHeight,onChange:e=>l({frontMediaHeight:e}),min:0,max:1e3,allowReset:!0}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.frontVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontVerticalAlign:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Horizontal Align","otter-blocks"),value:o.frontHorizontalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Left","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Right","otter-blocks"),value:"flex-end"}],onChange:e=>l({frontHorizontalAlign:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Title Font Size","otter-blocks"),value:o.titleFontSize,onChange:e=>l({titleFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Description Font Size","otter-blocks"),value:o.descriptionFontSize,onChange:e=>l({descriptionFontSize:e}),min:0,max:50,allowReset:!0}),(0,c.createElement)(h.Z,{backgroundType:o.frontBackgroundType,backgroundColor:o.frontBackgroundColor,image:o.frontBackgroundImage,gradient:o.frontBackgroundGradient,focalPoint:o.frontBackgroundPosition,backgroundAttachment:o.frontBackgroundAttachment,backgroundRepeat:o.frontBackgroundRepeat,backgroundSize:o.frontBackgroundSize,changeBackgroundType:e=>l({frontBackgroundType:e}),changeImage:e=>{l({frontBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({frontBackgroundImage:void 0}),changeColor:e=>l({frontBackgroundColor:e}),changeGradient:e=>l({frontBackgroundGradient:e}),changeBackgroundAttachment:e=>l({frontBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({frontBackgroundRepeat:e}),changeFocalPoint:e=>l({frontBackgroundPosition:e}),changeBackgroundSize:e=>l({frontBackgroundSize:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Back","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{backgroundType:o.backBackgroundType,backgroundColor:o.backBackgroundColor,image:o.backBackgroundImage,gradient:o.backBackgroundGradient,focalPoint:o.backBackgroundPosition,backgroundAttachment:o.backBackgroundAttachment,backgroundRepeat:o.backBackgroundRepeat,backgroundSize:o.backBackgroundSize,changeBackgroundType:e=>l({backBackgroundType:e}),changeImage:e=>{l({backBackgroundImage:(0,p.pick)(e,["id","url"])})},removeImage:()=>l({backBackgroundImage:void 0}),changeColor:e=>l({backBackgroundColor:e}),changeGradient:e=>l({backBackgroundGradient:e}),changeBackgroundAttachment:e=>l({backBackgroundAttachment:e}),changeBackgroundRepeat:e=>l({backBackgroundRepeat:e}),changeFocalPoint:e=>l({backBackgroundPosition:e}),changeBackgroundSize:e=>l({backBackgroundSize:e})}),(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Vertical Align","otter-blocks"),value:o.backVerticalAlign,options:[{label:(0,a.__)("Default","otter-blocks"),value:""},{label:(0,a.__)("Top","otter-blocks"),value:"flex-start"},{label:(0,a.__)("Center","otter-blocks"),value:"center"},{label:(0,a.__)("Bottom","otter-blocks"),value:"flex-end"}],onChange:e=>l({backVerticalAlign:e})})),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Flip Type","otter-blocks"),value:o.animType,options:[{label:(0,a.__)("Bottom to Top","otter-blocks"),value:"flipX"},{label:(0,a.__)("Left to right","otter-blocks"),value:"flipY"}],onChange:e=>l({animType:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Padding","otter-blocks"),value:o.padding,onChange:e=>l({padding:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Width","otter-blocks"),value:o.borderWidth,onChange:e=>l({borderWidth:e}),min:0,max:50}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Border Radius","otter-blocks"),value:o.borderRadius,onChange:e=>l({borderRadius:e}),min:0,max:50})),(0,c.createElement)(m.PanelColorSettings,{title:(0,a.__)("Color","otter-blocks"),initialOpen:!1,colorSettings:[{value:o.borderColor,onChange:e=>l({borderColor:e}),label:(0,a.__)("Border Color","otter-blocks")},{value:o.titleColor,onChange:e=>l({titleColor:e}),label:(0,a.__)("Title Color","otter-blocks")},{value:o.descriptionColor,onChange:e=>l({descriptionColor:e}),label:(0,a.__)("Description Color","otter-blocks")}]}),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Box Shadow","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Shadow Properties","otter-blocks"),checked:o.boxShadow,onChange:e=>l({boxShadow:e})}),o.boxShadow&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Color","otter-blocks"),colorValue:o.boxShadowColor,onColorChange:e=>{var t,a;l({boxShadowColor:100>o.boxShadowColorOpacity&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")?getComputedStyle(document.documentElement,null).getPropertyValue(null==e||null===(a=e.replace("var(",""))||void 0===a?void 0:a.replace(")","")):e})}}),(0,c.createElement)(g.Z,{label:(0,a.__)("Shadow Properties","otter-blocks")},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Opacity","otter-blocks"),value:o.boxShadowColorOpacity,onChange:e=>{var t;const a={boxShadowColorOpacity:e};100>e&&null!==(t=o.boxShadowColor)&&void 0!==t&&t.includes("var(")&&(a.boxShadowColor=getComputedStyle(document.documentElement,null).getPropertyValue(o.boxShadowColor.replace("var(","").replace(")",""))),l(a)},min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Blur","otter-blocks"),value:o.boxShadowBlur,onChange:e=>l({boxShadowBlur:e}),min:0,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Horizontal","otter-blocks"),value:o.boxShadowHorizontal,onChange:e=>l({boxShadowHorizontal:e}),min:-100,max:100}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Vertical","otter-blocks"),value:o.boxShadowVertical,onChange:e=>l({boxShadowVertical:e}),min:-100,max:100})))))},v=o(5225);const{attributes:y}=n;const{name:f}=n;(0,r.registerBlockType)(f,{...n,title:(0,a.__)("Flip Card","otter-blocks"),description:(0,a.__)("Make a card with a flip effect. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["flip card","container","animation"],edit:e=>{var t,o,l,r,n,i,p,g,h,f;let{attributes:_,setAttributes:w,clientId:C,isSelected:E}=e;(0,c.useEffect)((()=>{const e=(0,v.WX)(C,y);return()=>e(_.id)}),[_.id]);const[x,T]=(0,c.useState)(!1),M=d.iv`
36
+ ${_.width&&`--width: ${_.width}px;`}
37
+ ${_.height&&`--height: ${_.height}px;`}
38
+ ${_.borderWidth&&`--borderWidth: ${_.borderWidth}px;`}
39
+ --borderColor: ${_.borderColor};
40
+ ${_.borderRadius&&`--borderRadius: ${_.borderRadius}px;`}
41
+ ${"color"===_.frontBackgroundType&&_.frontBackgroundColor&&`--frontBackground: ${_.frontBackgroundColor};`}
42
+ ${"gradient"===_.frontBackgroundType&&_.frontBackgroundGradient&&`--frontBackground: ${_.frontBackgroundGradient};`}
43
+ ${"image"===_.frontBackgroundType&&(null===(t=_.frontBackgroundImage)||void 0===t?void 0:t.url)&&`--frontBackground: url( ${null===(o=_.frontBackgroundImage)||void 0===o?void 0:o.url} ) ${_.frontBackgroundRepeat||"repeat"} ${_.frontBackgroundAttachment||"scroll"} ${Math.round(100*(null===(l=_.frontBackgroundPosition)||void 0===l?void 0:l.x))||50}% ${Math.round(100*(null===(r=_.frontBackgroundPosition)||void 0===r?void 0:r.y))||50}%/${_.frontBackgroundSize||"auto"};`}
44
+ ${"color"===_.backBackgroundType&&_.backBackgroundColor&&`--backBackground: ${_.backBackgroundColor};`}
45
+ ${"gradient"===_.backBackgroundType&&_.backBackgroundGradient&&`--backBackground: ${_.backBackgroundGradient};`}
46
+ ${"image"===_.backBackgroundType&&(null===(n=_.backBackgroundImage)||void 0===n?void 0:n.url)&&`--backBackground: url( ${null===(i=_.backBackgroundImage)||void 0===i?void 0:i.url} ) ${_.backBackgroundRepeat||"repeat"} ${_.backBackgroundAttachment||"scroll"} ${Math.round(100*(null===(p=_.backBackgroundPosition)||void 0===p?void 0:p.x))||50}% ${Math.round(100*(null===(g=_.backBackgroundPosition)||void 0===g?void 0:g.y))||50}%/${_.backBackgroundSize||"auto"};`}
47
+ ${_.padding&&`--padding: ${_.padding}px;`}
48
+ ${_.boxShadow&&`--boxShadow: ${_.boxShadowHorizontal}px ${_.boxShadowVertical}px ${_.boxShadowBlur}px ${_.boxShadowColor?_.boxShadowColor.includes("#")&&0<=_.boxShadowColorOpacity?hexToRgba(_.boxShadowColor,_.boxShadowColorOpacity||1e-5):_.boxShadowColor:hexToRgba("#000000",void 0!==_.boxShadowColorOpacity?_.boxShadowColorOpacity||1e-5:1)};`}
49
+ --frontVerticalAlign: ${_.frontVerticalAlign};
50
+ --frontHorizontalAlign: ${_.frontHorizontalAlign};
51
+ --backVerticalAlign: ${_.backVerticalAlign};
52
+ ${_.frontMediaWidth&&`--frontMediaWidth: ${_.frontMediaWidth}px;`}
53
+ ${_.frontMediaHeight&&`--frontMediaHeight: ${_.frontMediaHeight}px;`}
54
 
55
  .o-flip-inner {
56
  transform: ${x?"var( --flip-anim )":"unset"};
57
  }
58
 
59
  .o-flip-front .o-flip-content h3 {
60
+ color: ${_.titleColor};
61
+ ${_.titleFontSize&&`font-size: ${_.titleFontSize}px;`}
62
  }
63
 
64
  .o-flip-front .o-flip-content p {
65
+ color: ${_.descriptionColor};
66
+ ${_.descriptionFontSize&&`font-size: ${_.descriptionFontSize}px;`}
67
  }
68
+ `,S=(0,m.useBlockProps)({id:_.id,className:s()({flipX:"flipX"===_.animType,flipY:"flipY"===_.animType}),css:M});return(0,d.tZ)(c.Fragment,null,(0,d.tZ)(b,{attributes:_,setAttributes:w,isFliped:x}),(0,d.tZ)(k,{attributes:_,setAttributes:w}),(0,d.tZ)("div",S,(0,d.tZ)("div",{className:s()("o-flip-inner",{invert:_.isInverted})},(0,d.tZ)("div",{className:"o-flip-front"},(0,d.tZ)("div",{className:"o-flip-content"},(null===(h=_.frontMedia)||void 0===h?void 0:h.url)&&(0,d.tZ)("img",{className:"o-img",srcSet:null===(f=_.frontMedia)||void 0===f?void 0:f.url}),(0,d.tZ)(m.RichText,{tagName:"h3",value:_.title,onChange:e=>w({title:e}),placeholder:(0,a.__)("Insert a title","otter-blocks")}),(0,d.tZ)(m.RichText,{tagName:"p",value:_.description,onChange:e=>w({description:e}),placeholder:(0,a.__)("Insert a description","otter-blocks")}))),(0,d.tZ)("div",{className:"o-flip-back"},(0,d.tZ)(m.InnerBlocks,{renderAppender:E?m.InnerBlocks.ButtonBlockAppender:""}))),E&&(0,d.tZ)("div",{className:"o-switcher"},(0,d.tZ)(u.Button,{isPrimary:!0,onClick:()=>T(!x)},x?(0,a.__)("Flip to front","otter-blocks"):(0,a.__)("Flip to back","otter-blocks")))))},save:e=>{var t,o,l,a;let{attributes:r}=e;const n=m.useBlockProps.save({id:r.id,className:s()("anim",{flipX:"flipX"===r.animType,flipY:"flipY"===r.animType})});return(0,c.createElement)("div",n,(0,c.createElement)("div",{className:s()("o-flip-inner",{invert:r.isInverted})},(0,c.createElement)("div",{className:"o-flip-front"},(0,c.createElement)("div",{className:"o-flip-content"},(null===(t=r.frontMedia)||void 0===t?void 0:t.url)&&(0,c.createElement)("img",{className:"o-img",src:null===(o=r.frontMedia)||void 0===o?void 0:o.url,srcSet:null===(l=r.frontMedia)||void 0===l?void 0:l.url,alt:null===(a=r.frontMedia)||void 0===a?void 0:a.alt}),(0,c.createElement)(m.RichText.Content,{tagName:"h3",value:r.title}),(0,c.createElement)(m.RichText.Content,{tagName:"p",value:r.description}))),(0,c.createElement)("div",{className:"o-flip-back"},(0,c.createElement)(m.InnerBlocks.Content,null))))}})},191:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/font-awesome-icons","title":"Icon","category":"themeisle-blocks","description":"Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","keywords":["font awesome","dashicons","icons"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"align":{"type":"string"},"library":{"type":"string","default":"fontawesome"},"prefix":{"type":"string","default":"fab"},"icon":{"type":"string","default":"themeisle"},"link":{"type":"string"},"newTab":{"type":"boolean","default":false},"fontSize":{"type":"number","default":16},"padding":{"type":"number","default":5},"margin":{"type":"number","default":5},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"borderColor":{"type":"string"},"backgroundColorHover":{"type":"string"},"textColorHover":{"type":"string"},"borderColorHover":{"type":"string"},"borderSize":{"type":"number","default":0},"borderRadius":{"type":"number","default":0},"isSynced":{"type":"array"}},"editorStyle":"otter-font-awesome-editor","style":"otter-font-awesome-style"}'),n=o(340),c=o(9307);const i={prefix:{type:"string",default:"fab"},icon:{type:"string",default:"themeisle"},fontSize:{type:"number",default:16},padding:{type:"number",default:5},margin:{type:"number",default:5},backgroundColor:{type:"string"},textColor:{type:"string"},borderColor:{type:"string"},borderSize:{type:"number",default:0},borderRadius:{type:"number",default:0}},s=[{attributes:i,supports:{align:["left","center","right"]},migrate:e=>{let t="center";return e.className.includes("alignleft")&&(t="left"),e.className.includes("aligncenter")&&(t="center"),e.className.includes("alignright")&&(t="right"),{...e,align:t,className:""}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:`${o}-container`,style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...i,align:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},a={color:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"};return(0,c.createElement)("p",{className:o,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"undefined-container",style:a},(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:l})))}},{attributes:{...i,id:{type:"string"},align:{type:"string"},link:{type:"string"},newTab:{type:"boolean",default:!1},backgroundColorHover:{type:"string"},textColorHover:{type:"string"},borderColorHover:{type:"string"}},save:e=>{let{attributes:t,className:o}=e;const l={borderRadius:t.borderRadius+"%",borderStyle:"solid",borderWidth:t.borderSize+"px",display:"inline-block",margin:t.margin+"px"},a={borderRadius:t.borderRadius+"%",fontSize:t.fontSize+"px",padding:t.padding+"px"},r=()=>(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`,style:a});return(0,c.createElement)("p",{className:o,id:t.id,style:{textAlign:t.align}},(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container",style:l},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",style:{color:t.textColor},rel:"noopener noreferrer"},(0,c.createElement)(r,null)):(0,c.createElement)(r,null)))}}];var d=s,m=o(5711),u=o(2175),b=o(8504),p=e=>{let{attributes:t,setAttributes:o,isSelected:l}=e;return(0,c.createElement)(u.BlockControls,null,(0,c.createElement)(u.AlignmentToolbar,{value:t.align,onChange:e=>o({align:e})}),(0,c.createElement)(b.Z,{isSelected:l,setAttributes:o,url:t.link,opensInNewTab:t.newTab}))},g=o(5609),h=o(3159);const k=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var v=e=>{let{attributes:t,setAttributes:o,getValue:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Icon","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(g.Placeholder,null,(0,c.createElement)(g.Spinner,null))},(0,c.createElement)(k,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.prefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:"fontawesome"===e?"themeisle":"balance",prefix:"fab"})},onChange:e=>{o("object"==typeof e?{icon:e.name,prefix:e.prefix}:{icon:e})}}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Icon Sizes","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"fontSize",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Icon Size","otter-blocks"),value:a("fontSize"),initialPosition:16,onChange:e=>o({fontSize:e}),min:12,max:140})),(0,c.createElement)(h.Z,{field:"padding",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Padding","otter-blocks"),value:a("padding"),initialPosition:5,onChange:e=>o({padding:e}),min:0,max:100})),(0,c.createElement)(h.Z,{field:"margin",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Margin","otter-blocks"),value:a("margin"),initialPosition:5,onChange:e=>o({margin:e}),min:0,max:100}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.ButtonGroup,null,(0,c.createElement)(g.Button,{isSmall:!0,isSecondary:r,isPrimary:!r,onClick:()=>n(!1)},(0,l.__)("Normal","otter-blocks")),(0,c.createElement)(g.Button,{isSmall:!0,isSecondary:!r,isPrimary:r,onClick:()=>n(!0)},(0,l.__)("Hover","otter-blocks"))),r?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(h.Z,{field:"backgroundColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Hover Background","otter-blocks"),colorValue:a("backgroundColorHover"),onColorChange:e=>o({backgroundColorHover:e})})),(0,c.createElement)(h.Z,{field:"textColorHover",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Hover Icon","otter-blocks"),colorValue:a("textColorHover"),onColorChange:e=>o({textColorHover:e})})),(0,c.createElement)(u.ContrastChecker,{textColor:a("textColorHover"),backgroundColor:a("backgroundColorHover")}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Hover Border","otter-blocks"),colorValue:t.borderColorHover,onColorChange:e=>o({borderColorHover:e})})):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(h.Z,{field:"backgroundColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:a("backgroundColor"),onColorChange:e=>o({backgroundColor:e})})),(0,c.createElement)(h.Z,{field:"textColor",isSynced:t.isSynced,setAttributes:o},(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Icon","otter-blocks"),colorValue:a("textColor"),onColorChange:e=>o({textColor:e})})),(0,c.createElement)(u.ContrastChecker,{textColor:a("textColor"),backgroundColor:a("backgroundColor")}),(0,c.createElement)(u.__experimentalColorGradientControl,{label:(0,l.__)("Border","otter-blocks"),colorValue:t.borderColor,onColorChange:e=>o({borderColor:e})}))),(0,c.createElement)(g.PanelBody,{title:(0,l.__)("Border Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Size","otter-blocks"),value:t.borderSize,onChange:e=>o({borderSize:e}),min:0,max:120}),(0,c.createElement)(g.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:t.borderRadius,onChange:e=>o({borderRadius:e}),min:0,max:100})))},y=o(48),f=o(5225);const{attributes:_}=r;const{name:w}=r;(0,a.registerBlockType)(w,{...r,title:(0,l.__)("Icon","otter-blocks"),description:(0,l.__)("Add icons from Font Awesome or ThemeIsle Icons library to your website. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["font awesome","dashicons","icons"],deprecated:d,edit:e=>{let{name:t,attributes:o,setAttributes:l,isSelected:a,clientId:r}=e;(0,c.useEffect)((()=>{const e=(0,f.WX)(r,_);return()=>e(o.id)}),[o.id]);const n=y.ZP.icons[o.icon],i=e=>(0,f.Ih)({name:t,field:e,defaultAttributes:_,attributes:o}),s=m.iv`
69
  --align: ${o.align};
70
  --borderColor: ${o.borderColor};
71
+ ${void 0!==o.borderSize&&`--borderSize: ${o.borderSize}px;`}
72
+ ${void 0!==o.borderRadius&&`--borderRadius: ${o.borderRadius}%;`}
73
+ ${void 0!==o.margin&&`--margin: ${i("margin")}px;`}
74
+ ${void 0!==o.padding&&`--padding: ${i("padding")}px;`}
75
+ ${void 0!==o.fontSize&&`--fontSize: ${i("fontSize")}px;`}
76
 
77
  .wp-block-themeisle-blocks-font-awesome-icons-container {
78
  color: ${i("textColor")};
79
  background-color: ${i("backgroundColor")};
 
80
  }
81
 
82
  .wp-block-themeisle-blocks-font-awesome-icons-container:hover {
100
  .wp-block-themeisle-blocks-font-awesome-icons-container:hover svg {
101
  fill: ${i("textColorHover")};
102
  }
103
+ `,d=(0,u.useBlockProps)({id:o.id,css:s});return(0,m.tZ)(c.Fragment,null,(0,m.tZ)(p,{attributes:o,setAttributes:l,isSelected:a}),(0,m.tZ)(v,{attributes:o,setAttributes:l,getValue:i}),(0,m.tZ)("p",d,(0,m.tZ)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},"themeisle-icons"===o.library?(0,m.tZ)(n,null):(0,m.tZ)("i",{className:`${o.prefix} fa-${o.icon}`}))))},save:e=>{let{attributes:t}=e;const o=y.ZP.icons[t.icon],l=u.useBlockProps.save({id:t.id});return(0,c.createElement)("p",l,(0,c.createElement)("span",{className:"wp-block-themeisle-blocks-font-awesome-icons-container"},t.link?(0,c.createElement)("a",{href:t.link,target:t.newTab?"_blank":"_self",rel:"noopener noreferrer"},"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})):"themeisle-icons"===t.library?(0,c.createElement)(o,null):(0,c.createElement)("i",{className:`${t.prefix} fa-${t.icon}`})))}})},4384:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form","title":"Form","category":"themeisle-blocks","description":"Display a form for your clients. Powered by Otter.","keywords":["business","form","email"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"subject":{"type":"string"},"emailTo":{"type":"string"},"optionName":{"type":"string"},"hasCaptcha":{"type":"boolean"},"provider":{"type":"string","default":""},"apiKey":{"type":"string"},"listId":{"type":"string"},"action":{"type":"string","default":"subscribe"}},"supports":{"align":["wide","full"]},"editorStyle":"otter-form-editor","style":"otter-form-style","script":"otter-form"}'),n=o(340),c=o(9307),i=o(2819),s=window.wp.api,d=o.n(s),m=o(2175),u=o(9818),b=o(5225),p=o(5609),g=e=>{let{attributes:t,setAttributes:o}=e;const{createNotice:a}=(0,u.dispatch)("core/notices"),[r,n]=(0,c.useState)(""),[i,s]=(0,c.useState)(""),[b,g]=(0,c.useState)(!0),[h,k]=(0,c.useState)([{label:(0,l.__)("None","otter-blocks"),value:""}]),[v,y]=(0,c.useState)("loading");return(0,c.useEffect)((()=>{let e=!0;return t.optionName&&d().loadPromise.then((()=>{(new(d().models.Settings)).fetch().done((o=>{var l,a;null===(l=o.themeisle_blocks_form_emails)||void 0===l||null===(a=l.filter((e=>{let{form:o}=e;return o===t.optionName})))||void 0===a||a.forEach((t=>{e&&(s(null==t?void 0:t.email),g(!0),n(null==t?void 0:t.email))}))}))})),()=>{e=!1}}),[t.optionName]),(0,c.useEffect)((()=>{let e=!0;var o,r,n,c;return t.apiKey&&t.provider&&(o=t.provider,r=t.apiKey,n=o=>{o.splice(0,0,{label:(0,l.__)("None","otter-blocks"),value:""}),e&&(k(o),y("ready"));const r=1===o.map((e=>{let{value:t}=e;return t})).filter((e=>e===t.listId)).length;t.listId&&!r&&a("error",(0,l.__)("The current contact list is invalid! Please choose a new contact list.","otter-blocks"),{isDismissible:!0,type:"snackbar"})},c=t=>{a("error",null==t?void 0:t.error,{isDismissible:!0,type:"snackbar",id:"themeisle-form-server-error"}),e&&y("error")},window.wp.apiFetch({path:"otter/v1/integration",method:"POST",data:{provider:o,apiKey:r}}).then((e=>{if(null!=e&&e.success){var t;const o=(null==e||null===(t=e.list_id)||void 0===t?void 0:t.map((e=>{var t;return{label:e.name,value:null===(t=e.id)||void 0===t?void 0:t.toString()}})))||[];n(o)}else c(e)})).catch((e=>{console.log(e)}))),()=>{e=!1}}),[t.provider,t.apiKey]),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email Subject","otter-blocks"),placeholder:(0,l.__)("A new submission","otter-blocks"),value:t.subject,onChange:e=>o({subject:e}),help:(0,l.__)("Customize the email title send by this form.","otter-blocks")}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Email To","otter-blocks"),placeholder:(0,l.__)("Default is to admin site","otter-blocks"),value:i,onChange:e=>s(e),help:(0,l.__)("Send form data to another email. (Admin is default).","otter-blocks")}),(0,c.createElement)(p.Button,{isPrimary:!0,onClick:()=>{(new(d().models.Settings)).fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let r=!0,c=!1;if(null==o||o.forEach(((e,l)=>{let{form:a}=e;a===t.optionName&&(o[l].email!==i&&(o[l].email=i,c=!0),r=!1)})),r&&o.push({form:t.optionName,email:i}),r||c){const e=new(d().models.Settings)({themeisle_blocks_form_emails:o});g(!1),e.save().then((e=>{var o;null===(o=e.themeisle_blocks_form_emails)||void 0===o||o.filter((e=>{let{form:o}=e;return o===t.optionName})).forEach((e=>{g(!0),n(null==e?void 0:e.email),a("info",(0,l.__)("Email has been saved!","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}}))},disabled:i===r},(0,c.createElement)(c.Fragment,null,!b&&(0,c.createElement)(p.Spinner,null),(0,l.__)("Save","otter-blocks"))),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Add captcha checkbox","otter-blocks"),checked:t.hasCaptcha,onChange:e=>o({hasCaptcha:e}),help:(0,l.__)("Add Google reCaptcha V2 for protection againts bots.","otter-blocks")}),t.hasCaptcha&&(0,l.__)("You can change the API Keys in Settings > Otter","otter-blocks")),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Integration","otter-blocks"),initialOpen:!1},(0,l.__)("Add your client email to a Digital Marketing provider.","otter-blocks"),(0,c.createElement)("br",null)," ",(0,c.createElement)("br",null),(0,c.createElement)("b",null," ",(0,l.__)("You need to have at least one email field in your form. For multiple email fields, only the first will be used.","otter-blocks")," "),(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Provider","otter-blocks"),value:t.provider,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Mailchimp","otter-blocks"),value:"mailchimp"},{label:(0,l.__)("Sendinblue","otter-blocks"),value:"sendinblue"}],onChange:e=>{o({provider:e,apiKey:"",listId:""})}}),t.provider&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("API Key","otter-blocks"),help:(0,l.__)("You can find the key in the provider's website","otter-blocks"),value:t.apiKey,onChange:e=>{y("loading"),k([]),o({apiKey:e,listId:""})}}),t.apiKey&&2>h.length&&"loading"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Fetching data from provider.","otter-blocks")),t.apiKey&&"ready"===v&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Contact List","otter-blocks"),value:t.listId,options:h,onChange:e=>o({listId:e})}),2<=(null==h?void 0:h.length)&&t.listId&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.SelectControl,{label:(0,l.__)("Action","otter-blocks"),value:t.action,options:[{label:(0,l.__)("None","otter-blocks"),value:""},{label:(0,l.__)("Subscribe","otter-blocks"),value:"subscribe"},{label:(0,l.__)("Submit & Subscribe","otter-blocks"),value:"submit-subscribe"}],onChange:e=>o({action:e})}),"submit-subscribe"===t.action&&(0,l.__)("This action will add the client to the contact list and send a separata email with the form data to administrator or to the email mentioned in 'Form to' field. A checkbox for data-sharing consent with third-party will be added on form.","otter-blocks"))))))},h=e=>{let{className:t,isAPILoaded:o,isAPISaved:a,isSaving:r,saveAPIKey:n,siteKey:i,secretKey:s,setSiteKey:d,setSecretKey:m}=e;return o?a?void 0:(0,c.createElement)(p.Placeholder,{icon:"admin-site",label:(0,l.__)("Google reCaptcha","otter-blocks"),instructions:(0,l.__)("A Google reCaptcha V2 API keys are required, please enter one below.","otter-blocks"),className:t},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Site Key","otter-blocks"),value:i,className:"components-placeholder__input",onChange:d}),(0,c.createElement)(p.TextControl,{type:"text",label:(0,l.__)("Secret Key","otter-blocks"),value:s,className:"components-placeholder__input",onChange:m}),(0,c.createElement)(p.Button,{isPrimary:!0,type:"submit",onClick:n,isBusy:r,disabled:""===i||""===s},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},(0,l.__)("You need to activate reCaptcha API.","otter-blocks")," ",(0,c.createElement)(p.ExternalLink,{href:"http://www.google.com/recaptcha/admin"},(0,l.__)("Need an API key? Get one here.","otter-blocks")))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(p.Placeholder,null,(0,c.createElement)("div",null,(0,c.createElement)(p.Spinner,null),(0,l.__)("Checking the API Keys for reCaptcha","otter-blocks"))))};const{attributes:k}=r;var v=o(4184),y=o.n(v);const{name:f}=r;(0,a.registerBlockType)(f,{...r,title:(0,l.__)("Form","otter-blocks"),description:(0,l.__)("Display a form for your clients. Powered by Otter.","otter-blocks"),icon:n.contactIcon,keywords:["business","form","email"],edit:e=>{let{attributes:t,setAttributes:o,clientId:r,name:n}=e;const[s,p]=(0,c.useState)(""),[v,y]=(0,c.useState)(""),[f,_]=(0,c.useState)(!1),[w,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),[x,T]=(0,c.useState)(!1),{insertBlock:M,removeBlock:S}=(0,u.useDispatch)("core/block-editor"),{replaceInnerBlocks:B}=(0,u.useDispatch)("core/block-editor"),{createNotice:z}=(0,u.dispatch)("core/notices"),P=(0,u.useSelect)((e=>0<e("core/block-editor").getBlocks(r).length),[r]),{blockType:V,defaultVariation:R,variations:L}=(0,u.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:l}=e("core/blocks");return{blockType:o(n),defaultVariation:l(n,"block"),variations:t(n,"block")}}),[n]),H=(0,u.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t(r).innerBlocks}),[]);(0,c.useEffect)((()=>{const e=(0,b.WX)(r,k);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{var e;t.id&&(0,u.select)("core/edit-widgets")?o({optionName:`widget_${t.id.slice(-8)}`}):t.id&&Boolean(window.themeisleGutenberg.isBlockEditor)&&null!==(e=(0,u.select)("core/editor"))&&void 0!==e&&e.getCurrentPostId()&&o({optionName:`${(0,u.select)("core/editor").getCurrentPostId()}_${t.id.slice(-8)}`})}),[t.id]),(0,c.useEffect)((()=>{if(H){const e=H.filter((e=>{let{name:t}=e;return"themeisle-blocks/form-nonce"===t}));if(2<=(null==e?void 0:e.length))e.slice(1).forEach((e=>{S(e.clientId,!1)}));else if(0===(null==e?void 0:e.length)&&r){const e=(0,a.createBlock)("themeisle-blocks/form-nonce");e&&(null==M||M(e,(null==H?void 0:H.length)||0,r,!1))}}}),[H]),(0,c.useEffect)((()=>{let e=!0;return d().loadPromise.then((()=>{E.current=new(d().models.Settings),e&&T(!0)})),()=>{e=!1}}),[]),(0,c.useEffect)((()=>{var e;void 0!==t.hasCaptcha&&(null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1;null==o||o.forEach(((e,l)=>{let{form:n}=e;n===t.optionName&&(o[l].hasCaptcha!==t.hasCaptcha&&(r=!0),o[l].hasCaptcha=t.hasCaptcha,a=!1)})),a&&o.push({form:t.optionName,hasCaptcha:t.hasCaptcha}),(a||r)&&(new(d().models.Settings)({themeisle_blocks_form_emails:o}).save(),z("info",(0,l.__)("Form preference has been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"}))})))}),[t.hasCaptcha,E.current]),(0,c.useEffect)((()=>{let e=!0;return x&&t.hasCaptcha&&!w&&(async()=>{var t;f||null==E||null===(t=E.current)||void 0===t||t.fetch().then((t=>{_(!0),""!==t.themeisle_google_captcha_api_site_key&&""!==t.themeisle_google_captcha_api_secret_key&&e&&C(!0)}))})(),()=>{e=!1}}),[x,f,w,t.hasCaptcha]),(0,c.useEffect)((()=>{var e;null==E||null===(e=E.current)||void 0===e||e.fetch().done((e=>{const o=e.themeisle_blocks_form_emails?e.themeisle_blocks_form_emails:[];let a=!0,r=!1,n=!1;null==o||o.forEach(((e,l)=>{let{form:c}=e;var i;c===t.optionName&&(null!==(i=o[l])&&void 0!==i&&i.integration||(o[l].integration={}),r=o[l].integration.provider!==t.provider||o[l].integration.apiKey!==t.apiKey||o[l].integration.listId!==t.listId||o[l].integration.action!==t.action,a=!1,n=t.apiKey&&(o[l].integration.listId!==t.listId||o[l].integration.action!==t.action),o[l].integration.provider=t.provider,o[l].integration.apiKey=t.apiKey,o[l].integration.listId=t.listId,o[l].integration.action=t.action)})),a&&o.push({form:t.optionName,integration:{provider:t.provider,apiKey:t.apiKey,listId:t.listId,action:t.action}}),(a||r)&&new(d().models.Settings)({themeisle_blocks_form_emails:o}).save().then((()=>{n&&z("info",(0,l.__)("Integration details have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))}))}),[t.optionName,t.provider,t.apiKey,t.listId,t.action,E.current]);const N=t.provider&&t.apiKey&&t.listId,I=(0,m.useBlockProps)({id:t.id});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(g,{attributes:t,setAttributes:o}),(0,c.createElement)("div",I,P?(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks,null),t.hasCaptcha&&(!f||!w)&&(0,c.createElement)(h,{className:"otter-form-captcha",isAPILoaded:f,isAPISaved:w,saveAPIKey:()=>{new window.wp.api.models.Settings({themeisle_google_captcha_api_site_key:s,themeisle_google_captcha_api_secret_key:v}).save().then((e=>{let t=!1;""!==e.themeisle_google_captcha_api_site_key&&""!==e.themeisle_google_captcha_api_secret_key&&(t=!0),C(t),y(""),p(""),z("info",(0,l.__)("API Keys have been saved.","otter-blocks"),{isDismissible:!0,type:"snackbar"})}))},siteKey:s,secretKey:v,setSiteKey:p,setSecretKey:y}),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},N&&"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))):(0,c.createElement)(m.__experimentalBlockVariationPicker,{icon:(0,i.get)(V,["icon","src"]),label:(0,i.get)(V,["title"]),variations:L,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R;e&&B(r,(0,a.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0})))},save:e=>{let{attributes:t}=e;const o=t.provider&&t.apiKey&&t.listId,a=m.useBlockProps.save({id:t.id,className:y()({"is-subscription":o&&"subscribe"===t.action,"can-submit-and-subscribe":o&&"submit-subscribe"===t.action,"has-captcha":t.hasCaptcha}),"data-email-subject":t.subject,"data-option-name":t.optionName});return(0,c.createElement)("div",a,(0,c.createElement)("div",{className:"otter-form__container"},(0,c.createElement)(m.InnerBlocks.Content,null),(0,c.createElement)("div",{className:"wp-block-button"},(0,c.createElement)("button",{className:"wp-block-button__link"},"subscribe"===t.action?(0,l.__)("Subscribe","otter-blocks"):(0,l.__)("Submit","otter-blocks")))))},variations:[{name:"themeisle-blocks/form-contact",description:(0,l.__)("Contact form for clients","otter-blocks"),icon:n.contactIcon,title:(0,l.__)("Contact Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["themeisle-blocks/form-textarea",{label:(0,l.__)("Message","otter-blocks")}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]},{name:"themeisle-blocks/form-subscribe",description:(0,l.__)("Add the clients to your subscription list","otter-blocks"),icon:n.contactIcon,title:(0,l.__)("Subscribe Form","otter-blocks"),innerBlocks:[["themeisle-blocks/form-input",{label:(0,l.__)("Name","otter-blocks"),type:"text",isRequired:!0}],["themeisle-blocks/form-input",{label:(0,l.__)("Email","otter-blocks"),type:"email",isRequired:!0}],["core/paragraph",{content:(0,l.__)("You agree to receive email communication from us by submitting this form and understand that your contact information will be stored with us.","otter-blocks"),fontSize:"extra-small"}]]}]})},6257:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-input","title":"Text Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["input","text","email"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"type":{"type":"string","default":"text"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.SelectControl,{label:(0,l.__)("Field Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Text","otter-blocks"),value:"text"},{label:(0,l.__)("Email","otter-blocks"),value:"email"},{label:(0,l.__)("Date","otter-blocks"),value:"date"},{label:(0,l.__)("Number","otter-blocks"),value:"number"}],onChange:e=>o({type:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Text Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,keywords:["input","text","email"],variations:[{name:"themeisle-blocks/form-input-email",description:(0,l.__)("Insert an email field","otter-blocks"),icon:"email",title:(0,l.__)("Email Field","otter-blocks"),attributes:{type:"email"}},{name:"themeisle-blocks/form-input-number",description:(0,l.__)("Insert a number field","otter-blocks"),icon:"calculator",title:(0,l.__)("Number Field","otter-blocks"),attributes:{type:"number"}},{name:"themeisle-blocks/form-input-date",description:(0,l.__)("Insert a date field","otter-blocks"),icon:"calendar-alt",title:(0,l.__)("Date Field","otter-blocks"),attributes:{type:"date"}}],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-input-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,className:"otter-form-input components-text-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-input-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-input-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("input",{type:t.type,name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,className:"otter-form-input"}))}})},7440:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-nonce","title":"Nonce Field","category":"themeisle-blocks","description":"Protect the form from CSRF.","keywords":["protection","csrf","field"],"textdomain":"otter-blocks","attributes":{"formId":{"type":"string"}},"supports":{"align":["wide","full"],"inserter":false}}'),n=o(340),c=o(9818),i=o(9307);const{name:s}=r;(0,a.registerBlockType)(s,{...r,title:(0,l.__)("Nonce Field","otter-blocks"),description:(0,l.__)("Protect the form from CSRF.","otter-blocks"),icon:n.inputIcon,keywords:["protection","csrf","field"],edit:e=>{let{setAttributes:t,clientId:o}=e;const{parent:l}=(0,c.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:l}=e("core/block-editor");return{parent:t(l(o))}}),[]);return(0,i.useEffect)((()=>{l&&t({formId:l.attributes.id})}),[l]),null},save:()=>null})},1911:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/form-textarea","title":"Textarea Field","category":"themeisle-blocks","description":"Display a contact form for your clients.","keywords":["textarea","message","input"],"parent":["themeisle-blocks/form"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"isRequired":{"type":"boolean"},"mappedName":{"type":"string"}},"supports":{"align":["wide","full"]}}'),n=o(340),c=o(9307),i=o(2175),s=o(5225),d=o(5609),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(d.TextControl,{label:(0,l.__)("Label","otter-blocks"),value:t.label,onChange:e=>o({label:e})}),(0,c.createElement)(d.TextControl,{label:(0,l.__)("Placeholder","otter-blocks"),value:t.placeholer,onChange:e=>o({placeholder:e})}),(0,c.createElement)(d.ToggleControl,{label:(0,l.__)("Is this field required?","otter-blocks"),help:(0,l.__)("If true, the input field must be filled out before submitting the form.","otter-blocks"),checked:t.isRequired,onChange:e=>o({isRequired:e})})))};const{attributes:u}=r;const{name:b}=r;(0,a.registerBlockType)(b,{...r,title:(0,l.__)("Textarea Field","otter-blocks"),description:(0,l.__)("Display a contact form for your clients.","otter-blocks"),icon:n.inputIcon,keywords:["textarea","message","input"],edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,c.useEffect)((()=>{const e=(0,s.WX)(a,u);return()=>e(t.id)}),[t.id]);const r=(0,i.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m,{attributes:t,setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText,{placeholder:(0,l.__)("Type here…","otter-blocks"),className:"otter-form-textarea-label__label",value:t.label,onChange:e=>o({label:e}),tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{placeholder:t.placeholder,name:t.id,id:t.id,required:t.isRequired,disabled:!0,rows:10,className:"otter-form-textarea-input components-textarea-control__input"})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save();return(0,c.createElement)("div",o,(0,c.createElement)("label",{htmlFor:t.id,className:"otter-form-textarea-label"},(0,c.createElement)(i.RichText.Content,{value:t.label,className:"otter-form-textarea-label__label",tagName:"span"}),t.isRequired&&(0,c.createElement)("span",{className:"required"},(0,l.__)("(required)","otter-blocks"))),(0,c.createElement)("textarea",{name:t.mappedName,id:t.id,required:t.isRequired,placeholder:t.placeholder,rows:10,className:"otter-form-textarea-input"}))}})},2608:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/google-map","title":"Google Maps","category":"themeisle-blocks","description":"Display Google Maps on your website with Google Map block. Powered by Otter.","keywords":["map","google","orbitfox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"standard"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string"},"longitude":{"type":"string"},"type":{"type":"string","default":"roadmap"},"zoom":{"type":"number","default":15},"height":{"type":"number","default":400},"draggable":{"type":"boolean","default":true},"mapTypeControl":{"type":"boolean","default":true},"zoomControl":{"type":"boolean","default":true},"fullscreenControl":{"type":"boolean","default":true},"streetViewControl":{"type":"boolean","default":true},"markers":{"type":"array","default":[]}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-google-map-editor","style":"otter-google-map-style","script":"google-maps"}'),n=o(340),c=o(9307),i=o(4184),s=o.n(i),d=o(4586),m=o(2175),u=o(5609),b=e=>{let{api:t,error:o,isAPILoaded:a,isAPISaved:r,isSaving:n,changeAPI:i,saveAPIKey:d}=e;return a?r?void 0:(0,c.createElement)(u.Placeholder,{icon:"admin-site",label:(0,l.__)("Google Maps","otter-blocks"),instructions:(0,l.__)("A Google Maps API key is required, please enter one below.","otter-blocks")},(0,c.createElement)("div",{className:"components-placeholder__actions"},(0,c.createElement)(u.TextControl,{type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:t,className:s()("components-placeholder__input",{"is-invalid":o}),onChange:i}),(0,c.createElement)(u.Button,{isPrimary:!0,type:"submit",onClick:d,isBusy:n,disabled:""===t||o},(0,l.__)("Save","otter-blocks"))),(0,c.createElement)("div",{className:"components-placeholder__learn-more"},o&&(0,c.createElement)("p",null,(0,l.__)("The API key could not be validated.","otter-blocks")),(0,c.createElement)("p",null,(0,l.__)("You need to activate Maps and Places API.","otter-blocks")," ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/maps/documentation/javascript/get-api-key"},(0,l.__)("Need an API key? Get one here.","otter-blocks"))))):(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null),(0,l.__)("Loading…","otter-blocks"))},p=o(5241),g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{window.wp.oldEditor.initialize(n.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>window.wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(u.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,isPlaceAPIAvailable:a,openMarker:r,removeMarker:n,changeMarkerProp:i}=e;const d=(0,c.useRef)(null);return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-title-area"},(0,c.createElement)(u.Button,{className:"wp-block-themeisle-blocks-google-map-marker-title",onClick:()=>r(t.id)},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(u.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-google-map-marker-remove",onClick:()=>n(t.id)})),(0,c.createElement)("div",{className:s()("wp-block-themeisle-blocks-google-map-marker-control-area",{opened:t.id===o})},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${t.id}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:d,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const o=new window.google.maps.places.SearchBox(d.current);o.addListener("places_changed",(()=>{const e=o.getPlaces();e&&0<e.length&&e.forEach((e=>{const o=e.formatted_address||e.name,l=e.geometry.location.lat(),a=e.geometry.location.lng();i(t.id,"location",o),i(t.id,"latitude",l),i(t.id,"longitude",a)}))}))},onChange:e=>i(t.id,"location",e.target.value),disabled:!a}),!a&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:t.latitude,onChange:e=>i(t.id,"latitude",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:t.longitude,onChange:e=>i(t.id,"longitude",e)}),(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:t.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:e=>i(t.id,"icon",e)}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:t.title,onChange:e=>i(t.id,"title",e)}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>i(t.id,"description",e)})))},y=e=>{let{initialOpen:t,markers:o,isPlaceAPIAvailable:a,addMarker:r,removeMarker:n,changeMarkerProp:i}=e;(0,c.useEffect)((()=>{!1!==t&&d(t)}),[t]);const[s,d]=(0,c.useState)(null),m=e=>{s===e&&(e=null),d(e)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-google-map-marker-group"},o.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:s,isPlaceAPIAvailable:a,openMarker:m,removeMarker:n,changeMarkerProp:i})))),(0,c.createElement)(u.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-google-map-marker-add",onClick:r},(0,l.__)("Add Marker","otter-blocks")))},f=e=>{let{attributes:t,setAttributes:o,map:a,changeStyle:r,isPlaceAPIAvailable:n,isMarkerOpen:i,setMarkerOpen:s,removeMarker:d,changeMarkerProp:b,addMarkerManual:g,api:h,isSaving:k,changeAPI:v,saveAPIKey:f}=e;const _=(0,c.useRef)(null);return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,c.createElement)(p.V,{value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:r})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location"),id:"wp-block-themeisle-blocks-google-map-search"},(0,c.createElement)("input",{type:"text",id:"wp-block-themeisle-blocks-google-map-search",placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:t.location,className:"wp-block-themeisle-blocks-google-map-search",ref:_,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(_.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.geometry.location.lat(),l=e.geometry.location.lng(),r=new window.google.maps.LatLng(t,l);a.setCenter(r),o({location:e.formatted_address||e.name,latitude:t.toString(),longitude:l.toString()})}))}))},onChange:e=>{o({location:e.target.value})},disabled:!n}),!n&&(0,c.createElement)("p",null,(0,l.__)("To enable locations earch, please ensure Places API is activated in the Google Developers Console.","otter-blocks")+" ",(0,c.createElement)(u.ExternalLink,{href:"https://developers.google.com/places/web-service/intro"},(0,l.__)("More info.","otter-blocks")))),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()});const l=Number(e),r=t.longitude,n=new window.google.maps.LatLng(l,r);a.setCenter(n)}}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()});const l=t.latitude,r=Number(e),n=new window.google.maps.LatLng(l,r);a.setCenter(n)}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Type","otter-blocks"),value:t.type,options:[{label:(0,l.__)("Road Map","otter-blocks"),value:"roadmap"},{label:(0,l.__)("Satellite View","otter-blocks"),value:"satellite"},{label:(0,l.__)("Hybrid","otter-blocks"),value:"hybrid"},{label:(0,l.__)("Terrain","otter-blocks"),value:"terrain"}],onChange:e=>{o({type:e}),a.setMapTypeId(window.google.maps.MapTypeId[e.toUpperCase()])}}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e}),a.setZoom(e)},min:0,max:20}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Map Type Control","otter-blocks"),checked:t.mapTypeControl,onChange:()=>{o({mapTypeControl:!t.mapTypeControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Full Screen Control","otter-blocks"),checked:t.fullscreenControl,onChange:()=>{o({fullscreenControl:!t.fullscreenControl})}}),(0,c.createElement)(u.ToggleControl,{label:(0,l.__)("Streen View Control","otter-blocks"),checked:t.streetViewControl,onChange:()=>{o({streetViewControl:!t.streetViewControl})}})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1,opened:!1!==i||void 0,onToggle:()=>{!1!==i&&s(!0)}},(0,c.createElement)(y,{markers:t.markers,removeMarker:d,changeMarkerProp:b,addMarker:g,isPlaceAPIAvailable:n,initialOpen:i})),(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Global Settings","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.TextControl,{label:(0,l.__)("Google Maps API Key","otter-blocks"),type:"text",placeholder:(0,l.__)("Google Maps API Key","otter-blocks"),value:h,className:"components-placeholder__input",onChange:v,help:(0,l.__)("Changing the API key effects all Google Map Embed blocks. You will have to refresh the page after changing your API keys.","otter-blocks")}),(0,c.createElement)(u.Button,{isSecondary:!0,type:"submit",onClick:f,isBusy:k},(0,l.__)("Save API Key","otter-blocks"))))},_=e=>{let{marker:t,isAdvanced:o,isPlaceAPIAvailable:a,addMarker:r,close:n}=e;(0,c.useEffect)((()=>{d(t.id),b(t.location),g(t.title),v(t.icon),f(t.description),w(t.latitude),E(t.longitude)}),[t]);const i=(0,c.useRef)(null),[s,d]=(0,c.useState)(t.id),[m,b]=(0,c.useState)(t.location),[p,g]=(0,c.useState)(t.title),[h,v]=(0,c.useState)(t.icon),[y,f]=(0,c.useState)(t.description),[_,w]=(0,c.useState)(t.latitude),[C,E]=(0,c.useState)(t.longitude);return(0,c.createElement)(u.Modal,{title:(0,l.__)("Add Marker","otter-blocks"),onRequestClose:n,shouldCloseOnClickOutside:!1},o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.BaseControl,{label:(0,l.__)("Location","otter-blocks"),id:`themeisle-location-search-${t.id}`},(0,c.createElement)("input",{type:"text",id:`themeisle-location-search-${s}`,placeholder:(0,l.__)("Enter a location…","otter-blocks"),value:m,className:"wp-block-themeisle-blocks-google-map-search",ref:i,onFocus:()=>{const e=document.getElementsByClassName("pac-container");Object.keys(e).forEach((t=>e[t].remove()));const t=new window.google.maps.places.SearchBox(i.current);t.addListener("places_changed",(()=>{const e=t.getPlaces();e&&0<e.length&&e.forEach((e=>{const t=e.formatted_address||e.name,o=e.geometry.location.lat(),l=e.geometry.location.lng();b(t),w(o),E(l)}))}))},onChange:e=>b(e.target.value),disabled:!a})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:_,onChange:w}),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:C,onChange:E})),(0,c.createElement)(u.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:p,onChange:g}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:y,onChange:f}),(0,c.createElement)(u.SelectControl,{label:(0,l.__)("Map Icon","otter-blocks"),value:h||"https://maps.google.com/mapfiles/ms/icons/red-dot.png",options:[{label:(0,l.__)("Red","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/red-dot.png"},{label:(0,l.__)("Blue","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"},{label:(0,l.__)("Yellow","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/yellow-dot.png"},{label:(0,l.__)("Green","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/green-dot.png"},{label:(0,l.__)("Orange","otter-blocks"),value:"https://maps.google.com/mapfiles/ms/icons/orange-dot.png"}],onChange:v}),(0,c.createElement)(u.ButtonGroup,null,(0,c.createElement)(u.Button,{isPrimary:!0,onClick:()=>r(m,p,h,y,_,C)},(0,l.__)("Add","otter-blocks")),(0,c.createElement)(u.Button,{isSecondary:!0,onClick:n},(0,l.__)("Cancel","otter-blocks"))))},w=e=>{let{attributes:t,initMap:o,displayMap:a,isMapLoaded:r,selectMarker:n,isSelectingMarker:i}=e;return(0,c.useEffect)((()=>{a&&o()}),[a]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{id:t.id,className:s()({"is-selecting-marker":i}),style:{height:t.height+"px"}}),r&&(0,c.createElement)(u.Button,{className:"wp-block-themeisle-blocks-google-map-marker-button",title:(0,l.__)("Add Button","otter-blocks"),onClick:n},(0,c.createElement)("span",{className:"dashicons dashicons-sticky"})))},C={standard:[],silver:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}],retro:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}],dark:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}],night:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}],aubergine:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]},E=o(5225);const{attributes:x}=r;var T=o(2819),M={to:[{type:"block",blocks:["themeisle-blocks/leaflet-map"],transform:e=>{const t=(0,T.omit)(e,["style","mapTypeControl","fullscreenControl","streetViewControl"]);return(0,a.createBlock)("themeisle-blocks/leaflet-map",{...t})}}]};const{name:S}=r;(0,a.registerBlockType)(S,{...r,title:(0,l.__)("Google Maps","otter-blocks"),description:(0,l.__)("Display Google Maps on your website with Google Map block. Powered by Otter.","otter-blocks"),icon:n.mapIcon,keywords:["map","google","orbitfox"],transforms:M,edit:e=>{let{attributes:t,setAttributes:o,clientId:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,E.WX)(a,x);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{let e=!0;return(async()=>{await window.wp.api.loadPromise.then((()=>{g.current=new window.wp.api.models.Settings})),!1===Boolean(window.themeisleGutenberg.mapsAPI)?S||g.current.fetch().then((t=>{e&&(M(t.themeisle_google_map_block_api_key),B(!0),""!==t.themeisle_google_map_block_api_key&&(P(!0),X(t.themeisle_google_map_block_api_key)))})):!S&&e&&(M(window.themeisleGutenberg.mapsAPI),B(!0),P(!0),X(window.themeisleGutenberg.mapsAPI))})(),window.isMapLoaded=window.isMapLoaded||!1,window[`removeMarker_${a.substr(0,8)}`]=oe,window.gm_authFailure=function(){P(!1),Q(!0)},h.current=document.createElement("script"),h.current.type="text/javascript",h.current.async=!0,h.current.defer=!0,h.current.id="themeisle-google-map-api-loading",()=>{e=!1}}),[]),(0,c.useEffect)((()=>{!1!==z&&void 0!==window.google&&k.current.setOptions({mapTypeControl:!!r||t.mapTypeControl,zoomControl:!!r||t.zoomControl,fullscreenControl:!!r||t.fullscreenControl,streetViewControl:!!r||t.streetViewControl})}),[r]),(0,c.useEffect)((()=>{y.current=[...t.markers]}),[t.markers]);const i=(0,c.useRef)([]),g=(0,c.useRef)(null),h=(0,c.useRef)(null),k=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)([...t.markers]),[T,M]=(0,c.useState)(""),[S,B]=(0,c.useState)(!1),[z,P]=(0,c.useState)(!1),[V,R]=(0,c.useState)(!1),[L,H]=(0,c.useState)(!1),[N,I]=(0,c.useState)(!0),[O,A]=(0,c.useState)(!1),[G,$]=(0,c.useState)(!1),[Z,F]=(0,c.useState)(!1),[D,W]=(0,c.useState)(!1),[U,j]=(0,c.useState)(!1),[q,J]=(0,c.useState)({}),[K,Q]=(0,c.useState)(!1),X=e=>{window.isMapLoaded||(window.isMapLoaded=!0,h.current.onload=()=>{document.getElementById("themeisle-google-map-api-loading").id="themeisle-google-map-api",A(!0)},h.current.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&cache=${Math.random()}`,document.head.appendChild(h.current)),document.getElementById("themeisle-google-map-api")&&A(!0)},Y=(e,t,o,r)=>{const n=`<div class="wp-block-themeisle-blocks-map-overview"><h6 class="wp-block-themeisle-blocks-map-overview-title">${o}</h6><div class="wp-block-themeisle-blocks-map-overview-content">${r?`<p>${r}</p>`:""}<a class="wp-block-themeisle-blocks-map-overview-delete" onclick="removeMarker_${a.substr(0,8)}( '${t}' )">${(0,l.__)("Delete Marker","otter-blocks")}</a></div></div>`,c=new window.google.maps.InfoWindow({content:n});e.addListener("click",(()=>{v.current=c,c.open(k.current,e)})),window.google.maps.event.addListener(c,"domready",(()=>{$(t)})),window.google.maps.event.addListener(c,"closeclick",(()=>{$(!1)}))},ee=e=>{e.forEach((e=>{const t=e.latitude,o=e.longitude,l=new window.google.maps.LatLng(t,o),a=new window.google.maps.Marker({position:l,map:k.current,title:e.title,draggable:!0,icon:e.icon||"https://maps.google.com/mapfiles/ms/icons/red-dot.png"});window.google.maps.event.addListener(a,"dragend",(t=>{const o=t.latLng.lat(),l=t.latLng.lng();te(e.id,"latitude",o),te(e.id,"longitude",l)})),i.current.push(a),window.google.maps.event.addListener(a,"click",(()=>{v.current&&v.current.close()})),Y(a,e.id,e.title,e.description)}))},te=(e,t,l)=>{const a=[...y.current];a.find((t=>t.id===e))[t]=l.toString(),le(),ee(a),o({markers:a})},oe=e=>{let t=[...y.current];t=t.filter((t=>t.id!==e)),o({markers:t}),le(),$(!1),0<t.length&&ee(t)},le=()=>{for(let e=0;e<i.current.length;e++)i.current[e].setMap(null);i.current=[]},ae=()=>{!1===Boolean(window.themeisleGutenberg.mapsAPI)&&(H(!0),new window.wp.api.models.Settings({themeisle_google_map_block_api_key:T}).save().then((e=>{let t=!1;""!==e.themeisle_google_map_block_api_key&&(t=!0),H(!1),P(t),""!==e.themeisle_google_map_block_api_key&&(window.isMapLoaded=!1,X(e.themeisle_google_map_block_api_key))})))},re=e=>{o({style:e}),k.current.setOptions({styles:C[e]})},ne=(0,m.useBlockProps)({className:s()("wp-block-themeisle-blocks-google-map-resizer",{"is-focused":r})});return S&&z?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(p.d,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Standard","otter-blocks"),value:"standard",image:window.themeisleGutenberg.assetsPath+"/icons/map-standard.png"},{label:(0,l.__)("Silver","otter-blocks"),value:"silver",image:window.themeisleGutenberg.assetsPath+"/icons/map-silver.png"},{label:(0,l.__)("Retro","otter-blocks"),value:"retro",image:window.themeisleGutenberg.assetsPath+"/icons/map-retro.png"},{label:(0,l.__)("Dark","otter-blocks"),value:"dark",image:window.themeisleGutenberg.assetsPath+"/icons/map-dark.png"},{label:(0,l.__)("Night","otter-blocks"),value:"night",image:window.themeisleGutenberg.assetsPath+"/icons/map-night.png"},{label:(0,l.__)("Aubergine","otter-blocks"),value:"aubergine",image:window.themeisleGutenberg.assetsPath+"/icons/map-aubergine.png"}],onChange:re}),(0,c.createElement)(f,{attributes:t,setAttributes:o,map:k.current,changeStyle:re,isPlaceAPIAvailable:N,isMarkerOpen:G,setMarkerOpen:$,removeMarker:oe,changeMarkerProp:te,addMarkerManual:()=>{const e=(0,d.Z)(),t=(0,l.__)("Custom Marker","otter-blocks"),o=k.current.getCenter(),a=o.lat(),r=o.lng();W(!0),j(!0),J({id:e,location:"",title:t,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})},api:T,isSaving:L,changeAPI:M,saveAPIKey:ae}),D&&(0,c.createElement)(_,{marker:q,isAdvanced:U,isPlaceAPIAvailable:N,close:()=>W(!1),addMarker:(e,l,a,r,n,c)=>{const s=new window.google.maps.LatLng(n,c),m=(0,d.Z)(),u=new window.google.maps.Marker({position:s,map:k.current,title:l,draggable:!0,icon:a});window.google.maps.event.addListener(u,"dragend",(e=>{const t=e.latLng.lat(),o=e.latLng.lng();te(m,"latitude",t),te(m,"longitude",o)})),i.current.push(u);const b=[...t.markers],p={id:m,location:e,title:l,icon:a,description:r,latitude:n,longitude:c};b.push(p),o({markers:b}),window.google.maps.event.addListener(u,"click",(()=>{v.current&&v.current.close()})),Y(u,p.id,l,r),W(!1),F(!1)}}),(0,c.createElement)("div",ne,(0,c.createElement)(u.ResizableBox,{size:{height:t.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,l,a,r)=>{o({height:parseInt(t.height+r.height,10)}),n(!0)}},(0,c.createElement)(w,{attributes:t,initMap:()=>{if(k.current=new window.google.maps.Map(document.getElementById(t.id),{center:{lat:Number(t.latitude)||41.4036299,lng:Number(t.longitude)||2.1743558000000576},gestureHandling:"cooperative",zoom:t.zoom,mapTypeId:t.type,styles:C[t.style]}),t.location&&void 0===t.latitude&&void 0===t.longitude){const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{t===window.google.maps.places.PlacesServiceStatus.OK&&0<e.length&&k.current.setCenter(e[0].geometry.location)}))}window.google.maps.event.addListenerOnce(k.current,"idle",(()=>{R(!0)})),k.current.addListener("zoom_changed",(()=>{const e=k.current.getZoom();o({zoom:e})})),k.current.addListener("maptypeid_changed",(()=>{const e=k.current.getMapTypeId();o({type:e})})),k.current.addListener("bounds_changed",(()=>{const e=k.current.getCenter(),t=e.lat(),l=e.lng();o({latitude:t.toString(),longitude:l.toString()})})),0<t.markers.length&&ee(t.markers);const e={query:t.location,fields:["name","geometry"]};new window.google.maps.places.PlacesService(k.current).findPlaceFromQuery(e,((e,t)=>{"REQUEST_DENIED"===t&&I(!1)}))},displayMap:O,isMapLoaded:V,selectMarker:()=>{F(!Z),Z?window.google.maps.event.clearListeners(k.current,"click"):k.current.addListener("click",(e=>{window.google.maps.event.clearListeners(k.current,"click");const t=(0,d.Z)(),o=(0,l.__)("Custom Marker","otter-blocks"),a=e.latLng.lat(),r=e.latLng.lng();W(!0),j(!1),J({id:t,location:"",title:o,icon:"https://maps.google.com/mapfiles/ms/icons/red-dot.png",description:"",latitude:a,longitude:r})}))},isSelectingMarker:Z})))):(0,c.createElement)("div",ne,(0,c.createElement)(b,{api:T,error:K,isAPILoaded:S,isAPISaved:z,isSaving:L,changeAPI:e=>{M(e),Q(!1)},saveAPIKey:ae}))},save:()=>null})},2925:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list","title":"Icon List","category":"themeisle-blocks","description":"Display an icon list in a beautiful layout. Powered by Otter.","keywords":["icon","list","items"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"defaultLibrary":{"type":"string","default":"fontawesome"},"defaultIconPrefix":{"type":"string","default":"fas"},"defaultIcon":{"type":"string","default":"angle-right"},"defaultContentColor":{"type":"string"},"defaultIconColor":{"type":"string"},"defaultSize":{"type":"number","default":20},"gap":{"type":"number","default":5},"horizontalAlign":{"type":"string"}},"styles":[{"name":"vertical","label":"Vertical","isDefault":true},{"name":"horizontal","label":"Horizontal"}],"editorStyle":"otter-icon-list-editor","style":"otter-icon-list-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5711),d=o(5225),m=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(i.AlignmentToolbar,{value:{"flex-start":"left",center:"center","flex-end":"right"}[t.horizontalAlign],onChange:e=>{switch(e){case"left":o({horizontalAlign:"flex-start"});break;case"center":o({horizontalAlign:"center"});break;case"right":o({horizontalAlign:"flex-end"});break;default:o({horizontalAlign:void 0})}}}))},u=o(5609);const b=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var p=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(i.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(u.Placeholder,null,(0,c.createElement)(u.Spinner,null))},(0,c.createElement)(b,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.defaultLibrary,prefix:t.defaultPrefix,icon:t.defaultIcon,changeLibrary:e=>{o({defaultLibrary:e,defaultIcon:void 0,defaultPrefix:"fas"})},onChange:e=>{if("image"===t.defaultLibrary&&null!=e&&e.url)return o({defaultIcon:e.url});o("object"==typeof e?{defaultIcon:e.name,defaultPrefix:e.prefix}:{defaultIcon:e})},allowImage:!0})),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Font Size","otter-blocks"),help:(0,l.__)("The size of the font size of the content and icon.","otter-blocks"),value:t.defaultSize,onChange:e=>{o({defaultSize:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(u.RangeControl,{label:(0,l.__)("Gap","otter-blocks"),help:(0,l.__)("The distance between the items.","otter-blocks"),value:t.gap,onChange:e=>{o({gap:e})},min:0,max:60,allowReset:!0}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.defaultContentColor,onColorChange:e=>{o({defaultContentColor:e})}}),(0,c.createElement)(i.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.defaultIconColor,onColorChange:e=>{o({defaultIconColor:e})}})))};const{attributes:g}=r;const{name:h}=r;(0,a.registerBlockType)(h,{...r,title:(0,l.__)("Icon List","otter-blocks"),description:(0,l.__)("Display an icon list in a beautiful layout. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["icon","list","items"],styles:[{name:"vertical",label:(0,l.__)("Vertical","otter-blocks"),isDefault:!0},{name:"horizontal",label:(0,l.__)("Horizontal","otter-blocks")}],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,d.WX)(l,g);return()=>e(t.id)}),[t.id]);const a=s.iv`
104
  --horizontalAlign: ${t.horizontalAlign};
105
  ${t.gap&&`--gap: ${t.gap}px;`}
106
  ${t.defaultSize&&`--fontSize: ${t.defaultSize}px;`}
107
+ `,r=(0,i.useBlockProps)({id:t.id,css:a});return(0,s.tZ)(c.Fragment,null,(0,s.tZ)(m,{attributes:t,setAttributes:o}),(0,s.tZ)(p,{attributes:t,setAttributes:o}),(0,s.tZ)("div",r,(0,s.tZ)(i.InnerBlocks,{allowedBlocks:["themeisle-blocks/icon-list-item"],__experimentalMoverDirection:"vertical",orientation:"vertical",template:[["themeisle-blocks/icon-list-item"]],renderAppender:i.InnerBlocks.DefaultAppender})))},save:e=>{let{attributes:t}=e;const o=i.useBlockProps.save({id:t.id});return(0,c.createElement)("div",o,(0,c.createElement)(i.InnerBlocks.Content,null))}})},598:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/icon-list-item","title":"Icon List Item","category":"themeisle-blocks","description":"Display an item for the icon list. Powered by Otter.","keywords":["icon","list","items"],"parent":["themeisle-blocks/icon-list"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"content":{"type":"string"},"contentColor":{"type":"string"},"iconColor":{"type":"string"},"library":{"type":"string"},"iconPrefix":{"type":"string"},"icon":{"type":"string"}}}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(2175),u=o(9818),b=o(5609);const p=(0,c.lazy)((()=>Promise.all([o.e(189),o.e(765)]).then(o.bind(o,3765))));var g=e=>{let{attributes:t,setAttributes:o}=e;return(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,c.createElement)(c.Suspense,{fallback:(0,c.createElement)(b.Placeholder,null,(0,c.createElement)(b.Spinner,null))},(0,c.createElement)(p,{label:(0,l.__)("Icon Picker","otter-blocks"),library:t.library,prefix:t.iconPrefix,icon:t.icon,changeLibrary:e=>{o({library:e,icon:void 0,iconPrefix:"fab"})},onChange:e=>{if("image"===t.library&&null!=e&&e.url)return o({icon:e.url});o("object"==typeof e?{icon:e.name,iconPrefix:e.prefix}:{icon:e})},allowImage:!0})),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Content Color","otter-blocks"),colorValue:t.contentColor,onColorChange:e=>{o({contentColor:e})}}),"image"!==t.library&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Icon Color","otter-blocks"),colorValue:t.iconColor,onColorChange:e=>{o({iconColor:e})}})))},h=o(48),k=o(5225);const{attributes:v}=r;const{name:y}=r;(0,a.registerBlockType)(y,{...r,title:(0,l.__)("Icon List Item","otter-blocks"),description:(0,l.__)("Display an item for the icon list. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["item","icon","list"],merge:(e,t)=>({content:(e.content||"")+(t.content||"")}),edit:e=>{let{attributes:t,setAttributes:o,name:r,clientId:n,onReplace:s,onRemove:b,mergeBlocks:p}=e;const[y,f]=(0,c.useState)(!1),{hasParent:_,parentAttributes:w}=(0,u.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:o}=e("core/block-editor"),l=t(o(n));return{hasParent:!!l,parentAttributes:l?l.attributes:{}}}),[]);(0,c.useEffect)((()=>{const e=(0,k.WX)(n,v);return()=>e(t.id)}),[t.id]),(0,c.useEffect)((()=>{o({library:t.library||w.defaultLibrary,icon:t.icon||w.defaultIcon,iconPrefix:t.iconPrefix||w.defaultIconPrefix})}),[_,w,t]),(0,c.useEffect)((()=>{if("image"===t.library)try{const e=new URL(t.icon);"http:"!==(null==e?void 0:e.protocol)&&"https:"!==(null==e?void 0:e.protocol)||f(!0)}catch(e){f(!1)}}),[t.library,t.icon]);const C=h.ZP.icons[t.icon],E=`${t.iconPrefix||w.defaultIconPrefix} fa-${t.icon||w.defaultIcon}`,x=i.iv`
108
  --contentColor: ${t.contentColor||w.defaultContentColor};
109
  --iconColor: ${t.iconColor||w.defaultIconColor};
110
+ `,T=(0,m.useBlockProps)({css:x});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(g,{attributes:t,setAttributes:o}),(0,i.tZ)("div",T,"image"===t.library&&y?(0,i.tZ)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon&&void 0!==C?(0,i.tZ)(C,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,i.tZ)("i",{className:d()(E,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,i.tZ)(m.RichText,{identifier:"content",tagName:"p",placeholder:(0,l.__)("Write your content…","otter-blocks"),className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content,onChange:e=>{o({content:e})},onSplit:e=>e?(0,a.createBlock)(r,{...t,content:e}):(0,a.createBlock)(r),onMerge:p,onReplace:s,onRemove:b})))},save:e=>{let{attributes:t}=e;const o=`${t.iconPrefix} fa-${t.icon}`,l=h.ZP.icons[t.icon],a=m.useBlockProps.save({id:t.id});return(0,c.createElement)("div",a,"image"===t.library&&t.icon?(0,c.createElement)("img",{src:t.icon}):"themeisle-icons"===t.library&&t.icon?(0,c.createElement)(l,{className:d()({"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}):(0,c.createElement)("i",{className:d()(o,{"wp-block-themeisle-blocks-icon-list-item-icon":!t.iconColor},{"wp-block-themeisle-blocks-icon-list-item-icon-custom":t.iconColor})}),(0,c.createElement)(m.RichText.Content,{tagName:"p",className:d()({"wp-block-themeisle-blocks-icon-list-item-content":!t.contentColor},{"wp-block-themeisle-blocks-icon-list-item-content-custom":t.contentColor}),value:t.content}))}})},1254:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/leaflet-map","title":"Maps","category":"themeisle-blocks","description":"Display Open Street Maps on your website with Maps block. Powered by Otter.","keywords":["map","opeenstreetmap","location"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"location":{"type":"string","default":"La Sagrada Familia, Barcelona, Spain"},"latitude":{"type":"string","default":"41.4034789"},"longitude":{"type":"string","default":"2.174410333009705"},"bbox":{"type":"string","default":"2.1207046508789067%2C41.34807736149302%2C2.2288513183593754%2C41.45816618938139"},"zoom":{"type":"number"},"height":{"type":"number","default":400},"markers":{"type":"array","default":[]},"zoomControl":{"type":"boolean","default":true},"draggable":{"type":"boolean","default":true}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-leaflet-map-editor","style":"otter-leaflet-map-style","editorScript":"leaflet-gesture-handling","script":"otter-leaflet"}'),n=o(340),c=o(9307),i=o(4586),s=o(4184),d=o.n(s),m=o(2819),u=o(2175),b=o(5609);async function p(e){const t=await async function(e){if("string"!=typeof e)throw(0,l.__)("Location must be a string","otter-blocks");const t="https://nominatim.openstreetmap.org/search?q="+e.split(" ").map((e=>encodeURIComponent(e))).join("+")+"&format=geojson",o=await fetch(t);return o.ok&&200===o.status?o.json():console.warn((0,l.__)("An error has occured: ","otter-blocks")+o.status)}(e);if(null!=t&&t.features.length){var o;const e=t.features[0];if(null!=e&&null!==(o=e.geometry)&&void 0!==o&&o.coordinates.length)return{longitude:e.geometry.coordinates[0],latitude:e.geometry.coordinates[1]}}return null}var g=o(4333);const h=e=>{let{value:t,onChange:o}=e;const a=(0,g.useInstanceId)(h);(0,c.useEffect)((()=>{wp.oldEditor.initialize(n.current.id,{tinymce:{classic_block_editor:!0,plugins:"lists,media,paste,tabfocus,wordpress,wpautoresize,wpeditimage,wpgallery,wplink,wpdialogs,wptextpattern,wpview",toolbar1:"formatselect,bold,italic,bullist,numlist,alignleft,aligncenter,alignright,link,unlink,spellchecker,wp_add_media"}});const e=window.tinymce.get(n.current.id);return e.on("change",(()=>o(e.getContent()))),()=>wp.oldEditor.remove(n.current.id)}),[]);const r=`inspector-textarea-control-${a}`,n=(0,c.useRef)(null);return(0,c.createElement)(b.BaseControl,{id:r,label:(0,l.__)("Description","otter-blocks")},(0,c.createElement)("textarea",{id:r,className:"components-textarea-control__input",rows:4,value:t,onChange:e=>o(e.target.value),ref:n}))};var k=h,v=e=>{let{marker:t,isOpen:o,openMarker:a,dispatch:r}=e;const[n,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)(t.longitude),[u,g]=(0,c.useState)(t.latitude),[h,v]=(0,c.useState)(t.title),[y,f]=(0,c.useState)(t.description),[_,w]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker"},(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-title-area"},(0,c.createElement)(b.Button,{className:"wp-block-themeisle-blocks-leaflet-map-marker-title",onClick:()=>a()},t.title||(0,l.__)("Custom Marker","otter-blocks")),(0,c.createElement)(b.Button,{icon:"no-alt",label:(0,l.__)("Remove Marker","otter-blocks"),showTooltip:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-remove",onClick:()=>r({type:C.REMOVE,ids:[t.id]})})),o&&(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-control-area"},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===_.target}),value:n,onChange:e=>{i(e)},help:(0,l.__)("Press Enter to search the location","otter-blocks"),onKeyDown:e=>((e,o)=>{e.key===o&&(async()=>{const e=await p(n);e?(r({type:C.UPDATE,ids:[t.id],updatedProps:{location:n,latitude:e.latitude,longitude:e.longitude}}),g(e.latitude),m(e.longitude),"LOCATION"===_.target&&w({})):w({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",value:u,onChange:e=>{g(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{latitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",value:s,onChange:e=>{m(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{longitude:e}})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",value:h,onChange:e=>{v(e),r({type:C.UPDATE,ids:[t.id],updatedProps:{title:e}})}}),(0,c.createElement)(k,{label:(0,l.__)("Description","otter-blocks"),type:"text",value:t.description,onChange:e=>{f(y),r({type:C.UPDATE,ids:[t.id],updatedProps:{description:e}})}})))},y=e=>{let{markers:t,dispatch:o,markersInteraction:a}=e;const{openMarker:r,setOpenMarker:n}=a;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"wp-block-themeisle-blocks-leaflet-map-marker-group"},t.map((e=>(0,c.createElement)(v,{key:e.id,marker:e,isOpen:r===e.id,openMarker:()=>n(a.openMarker!==e.id?e.id:null),dispatch:o})))),(0,c.createElement)(b.Button,{isSecondary:!0,className:"wp-block-themeisle-blocks-leaflet-map-marker-add",onClick:()=>{o({type:C.ADD,marker:{id:(0,i.Z)()},dispatch:o})}},(0,l.__)("Add Marker","otter-blocks")))},f=e=>{let{attributes:t,setAttributes:o,dispatch:a,markersInteraction:r}=e;const[n,i]=(0,c.useState)(t.location),[s,m]=(0,c.useState)({target:"",reason:""});return(0,c.createElement)(u.InspectorControls,null,(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Location","otter-blocks")},(0,c.createElement)(b.TextControl,{label:(0,l.__)("Location","otter-blocks"),type:"text",className:d()({"wp-block-themeisle-blocks-leaflet-map-input-error":"LOCATION"===s.target}),placeholder:(0,l.__)("Enter location. E.g: La Sagrada Familia, Barcelona, Spain","otter-blocks"),help:(0,l.__)("Press Enter to search the location","otter-blocks"),value:n,onChange:i,onKeyDown:e=>((e,t)=>{e.key===t&&(async()=>{o({location:n});const e=await p(n);e?(o({latitude:e.latitude.toString(),longitude:e.longitude.toString()}),"LOCATION"===s.target&&m({})):m({target:"LOCATION",reason:(0,l.__)("Location couldn't been found!","otter-blocks")})})()})(e,"Enter")}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Latitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter latitude…","otter-blocks"),value:t.latitude,onChange:e=>{o({latitude:e.toString()})}}),(0,c.createElement)(b.TextControl,{label:(0,l.__)("Longitude","otter-blocks"),type:"text",placeholder:(0,l.__)("Enter longitude","otter-blocks"),value:t.longitude,onChange:e=>{o({longitude:e.toString()})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Positioning & Zooming","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Zoom Level","otter-blocks"),value:t.zoom,onChange:e=>{o({zoom:e})},min:0,max:20}),(0,c.createElement)(b.RangeControl,{label:(0,l.__)("Map Height","otter-blocks"),value:t.height,onChange:e=>{o({height:e})},min:100,max:1400})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Controls","otter-blocks"),initialOpen:!1},(0,c.createElement)(b.BaseControl,null,(0,l.__)("The following changes will not affect block preview during the editing process. You can click outside the block to see the changes take effect.","otter-blocks")),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Draggable Map","otter-blocks"),checked:t.draggable,onChange:()=>{o({draggable:!t.draggable})}}),(0,c.createElement)(b.ToggleControl,{label:(0,l.__)("Zoom Control","otter-blocks"),checked:t.zoomControl,onChange:()=>{o({zoomControl:!t.zoomControl})}})),(0,c.createElement)(b.PanelBody,{title:(0,l.__)("Markers","otter-blocks"),initialOpen:!1},(0,c.createElement)(y,{markers:t.markers,dispatch:a,markersInteraction:r})))},_=o(5225);const{attributes:w}=r,C={ADD:"ADD",ADD_MANUAL:"ADD_MANUAL",REMOVE:"REMOVE",UPDATE:"UPDATE",INIT:"INIT"};var E={to:[{type:"block",blocks:["themeisle-blocks/google-map"],transform:e=>{const t=e;return(0,a.createBlock)("themeisle-blocks/google-map",{...t})}}]};const{name:x}=r;(0,a.registerBlockType)(x,{...r,title:(0,l.__)("Maps","otter-blocks"),description:(0,l.__)("Display Open Street Maps on your website with Maps block. Powered by Otter.","otter-blocks"),icon:n.mapIcon,keywords:["map","opeenstreetmap","location"],transforms:E,edit:e=>{let{clientId:t,attributes:o,setAttributes:a,isSelected:r,toggleSelection:n}=e;(0,c.useEffect)((()=>{const e=(0,_.WX)(t,w);return()=>e(o.id)}),[o.id]);const s=(0,c.useRef)(null),[p,g]=(0,c.useState)(null),[h,k]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),E=(e,t)=>{if(window.L&&p&&t&&e){var o,a,r,n,c;null!==(o=e.id)&&void 0!==o||(e.id=(0,i.Z)()),null!==(a=e.latitude)&&void 0!==a||(e.latitude=p.getCenter().lat),null!==(r=e.longitude)&&void 0!==r||(e.longitude=p.getCenter().lng),null!==(n=e.title)&&void 0!==n||(e.title=(0,l.__)("Add a title","otter-blocks")),null!==(c=e.description)&&void 0!==c||(e.description="");const s=window.L.marker([e.latitude,e.longitude]||0,{draggable:!0});return s.on("movestart",(()=>{s.closeTooltip(),s.closePopup()})),s.on("moveend",(()=>{const o=s.getLatLng();t({type:C.UPDATE,ids:[e.id],updatedProps:{latitude:o.lat,longitude:o.lng}})})),s.on("click",(()=>{y(e.id)})),s.markerProps=e,s}return null},[x,T]=(0,c.useReducer)(((e,t)=>{switch(t.type){case C.ADD:const o=E(t.marker,t.dispatch);return[...e,o];case C.ADD_MANUAL:if(h){const o=E(t.marker,t.dispatch);return[...e,o]}return e;case C.REMOVE:return e.filter((e=>{let{markerProps:o}=e;return t.ids.includes(o.id)})).forEach((e=>{p.hasLayer(e)&&p.removeLayer(e)})),e.filter((e=>{let{markerProps:o}=e;return!t.ids.includes(o.id)}));case C.INIT:const a=t.markers.map((e=>E(e,t.dispatch)));return[...e,...a];case C.UPDATE:return e.map((e=>{const o=e.markerProps;return t.ids.includes(o.id)&&(e.markerProps=(0,m.merge)(e.markerProps,t.updatedProps)),e}));default:console.warn((0,l.__)("The action for the leaflet block do not have a defined action in marker's reducer: ","otter-blocks")+t.type)}return e}),[],(()=>[]));(0,c.useEffect)((()=>{(()=>{if(!s.current&&!window.L)return;s.current.innerHTML="";const e=window.L.map(s.current,{gestureHandling:!0,gestureHandlingOptions:{text:{touch:(0,l.__)("Use two fingers to move the map","otter-blocks"),scroll:(0,l.__)("Use ctrl + scroll to zoom the map","otter-blocks"),scrollMac:(0,l.__)("Use ⌘ + scroll to zoom the map","otter-blocks")}}});window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(e),e.on("zoom",(()=>{a({zoom:e.getZoom()})})),e.on("moveend",(()=>{const t=e.getCenter();a({latitude:t.lat.toString(),longitude:t.lng.toString()})})),e.on("click",(e=>{T({type:C.ADD_MANUAL,marker:{latitude:e.latlng.lat,longitude:e.latlng.lng},dispatch:T}),k(!1)})),window.L.Control.AddMarker=window.L.Control.extend({onAdd:()=>{const e=window.L.DomUtil.create("button","wp-block-themeisle-blocks-leaflet-map-marker-button"),t=window.L.DomUtil.create("span","dashicons dashicons-sticky",e);return window.L.DomEvent.on(e,"click",(e=>{window.L.DomEvent.stopPropagation(e),k(!h)})),e.title=(0,l.__)("Add marker on the map with a click","otter-blocks"),e.appendChild(t),e},onRemove:()=>{}}),window.L.control.addmarker=e=>new window.L.Control.AddMarker(e),window.L.control.addmarker({position:"bottomleft"}).addTo(e),g(e),T({type:C.INIT,markers:o.markers,dispatch:T})})()}),[]),(0,c.useEffect)((()=>{o.height&&p&&p.invalidateSize(!0)}),[o.height,p]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&p.setView([o.latitude,o.longitude],o.zoom||15)}),[o.latitude,o.longitude,o.zoom,p]),(0,c.useEffect)((()=>{var e;null===(e=s.current)||void 0===e||e.classList.toggle("is-selecting-location",h)}),[h]),(0,c.useEffect)((()=>{o.latitude&&o.longitude&&p&&a({bbox:p.getBounds().toBBoxString()})}),[o.latitude,o.longitude,p]),(0,c.useEffect)((()=>{x&&(x.forEach((e=>{p.hasLayer(e)||p.addLayer(e);const{markerProps:t}=e;e.setLatLng([t.latitude,t.longitude]),e.closeTooltip(),e.unbindTooltip(),e.bindTooltip(t.title,{direction:"auto"}),e.closePopup(),e.unbindPopup(),e.bindPopup(((e,t)=>{const o=document.createElement("div"),a=document.createElement("h6"),r=document.createElement("div"),n=document.createElement("p"),c=document.createElement("button");return a.innerHTML=e.title,n.innerHTML=e.description,c.onclick=()=>t({type:C.REMOVE,ids:[e.id]}),c.innerHTML=(0,l.__)("Delete Marker","otter-blocks"),o.classList.add("wp-block-themeisle-blocks-map-overview"),r.classList.add("wp-block-themeisle-blocks-map-overview-content"),a.classList.add("wp-block-themeisle-blocks-map-overview-title"),c.classList.add("wp-block-themeisle-blocks-map-overview-delete"),o.appendChild(a),o.appendChild(r),o.appendChild(c),r.appendChild(n),o})(t,T))})),o.markers.length!==x.length&&p&&a({markers:x.map((e=>{let{markerProps:t}=e;return t}))}))}),[x,p,o.markers]);const M=(0,u.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f,{attributes:o,setAttributes:a,dispatch:T,markersInteraction:{openMarker:v,setOpenMarker:y}}),(0,c.createElement)("div",M,(0,c.createElement)(b.ResizableBox,{size:{height:o.height},enable:{top:!1,right:!1,bottom:!0,left:!1},minHeight:100,maxHeight:1400,onResizeStart:()=>{n(!1)},onResizeStop:(e,t,l,r)=>{a({height:parseInt(o.height+r.height,10)}),n(!0)},className:d()("wp-block-themeisle-blocks-leaflet-map-resizer",{"is-focused":r})},(0,c.createElement)("div",{id:o.id,ref:s,style:{width:"100%",height:o.height||400}}))))},save:()=>null})},6099:function(e,t,o){var l=o(2553),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/lottie","title":"Lottie Animation","category":"themeisle-blocks","description":"Add Lottie animations to your WordPress. Powered by Otter.","keywords":["media","lottie","animation"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"file":{"type":"object"},"trigger":{"type":"string","default":"none"},"loop":{"type":"boolean","default":false},"count":{"type":"number","default":0},"speed":{"type":"number","default":1},"direction":{"type":"boolean","default":false},"width":{"type":["string","number"]},"ariaLabel":{"type":"string","default":""},"backgroundColor":{"type":"string"},"backgroundGradient":{"type":"string"}},"supports":{"align":["left","center","right"]},"editorStyle":"otter-lottie-editor","editorScript":"lottie-player","script":"otter-lottie"}'),c=o(9307),i=o(2819),s=o(2175),d=o(5609),m=e=>{var t;let{className:o,file:r,onChange:n,attributes:i}=e;const[m,u]=(0,c.useState)((null===(t=i.file)||void 0===t?void 0:t.url)||null);return Boolean(window.themeisleGutenberg.isWPVIP)?(0,c.createElement)(d.Placeholder,{label:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks"),icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),className:o},(0,c.createElement)("form",{onSubmit:e=>(e&&e.preventDefault(),n(m))},(0,c.createElement)("input",{type:"url",value:m||"",className:"components-placeholder__input","aria-label":(0,a.__)("Lottie","otter-blocks"),placeholder:(0,a.__)("Enter URL to embed here…","otter-blocks"),onChange:e=>u(e.target.value)}),(0,c.createElement)(d.Button,{isPrimary:!0,disabled:!m,type:"submit"},(0,a.__)("Embed","otter-blocks")))):(0,c.createElement)(s.MediaPlaceholder,{labels:{title:(0,a.__)("Lottie","otter-blocks"),instructions:(0,a.__)("Add Lottie animations and files to your website.","otter-blocks")},icon:(0,c.createElement)(s.BlockIcon,{icon:l.Z}),accept:["application/json"],allowedTypes:["application/json"],value:{...r},onSelectURL:n,onSelect:n})},u=e=>{let{attributes:t,setAttributes:o,playerRef:l}=e;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.InspectorControls,null,(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Settings","otter-blocks"),initialOpen:!0},(0,c.createElement)(d.SelectControl,{label:(0,a.__)("Trigger","otter-blocks"),help:(0,a.__)("Animation trigger. This will only work on the front-end.","otter-blocks"),value:t.trigger,options:[{label:(0,a.__)("Autoplay","otter-blocks"),value:"none"},{label:(0,a.__)("Scroll","otter-blocks"),value:"scroll"},{label:(0,a.__)("Hover","otter-blocks"),value:"hover"},{label:(0,a.__)("Click","otter-blocks"),value:"click"}],onChange:e=>{o({trigger:e})}}),"scroll"!==t.trigger&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Loop","otter-blocks"),help:(0,a.__)("Whether to loop animation.","otter-blocks"),checked:t.loop,onChange:e=>{o({loop:e}),l.current.setLooping(e),t.direction&&l.current.seek("100%"),l.current.play()}}),t.loop&&(0,c.createElement)(d.TextControl,{label:(0,a.__)("Numbers of loops","otter-blocks"),help:(0,a.__)("Number of times to loop animation.","otter-blocks"),type:"number",value:t.count,onChange:e=>{o({count:Number(e)}),l.current.load(t.file.url)}}),(0,c.createElement)(d.RangeControl,{label:(0,a.__)("Speed","otter-blocks"),help:(0,a.__)("Animation speed.","otter-blocks"),value:t.speed,onChange:e=>{o({speed:Number(e)}),l.current.setSpeed(e)},step:.1,min:.1,max:5}),(0,c.createElement)(d.ToggleControl,{label:(0,a.__)("Reverse","otter-blocks"),help:(0,a.__)("Direction of animation.","otter-blocks"),checked:t.direction,onChange:e=>{o({direction:e}),l.current.setDirection(e?-1:1),l.current.seek(e?"100%":0)}})),(0,c.createElement)(s.__experimentalUnitControl,{onChange:e=>{const t=parseInt(e.slice(0,-1)),l=e.slice(-1);100<t&&"%"===l&&(e="100%"),o({width:e})},label:(0,a.__)("Width","otter-blocks"),isUnitSelectTabbable:!0,isResetValueOnUnitChange:!0,__unstableInputWidth:"50%",value:Number.isInteger(t.width)?`${t.width}px`:t.width,units:[{value:"%",label:"%",default:100},{value:"px",label:"px",default:300}]})),(0,c.createElement)(d.PanelBody,{title:(0,a.__)("Background","otter-blocks"),initialOpen:!1},(0,c.createElement)(s.__experimentalColorGradientControl,{colorValue:t.backgroundColor,gradientValue:t.backgroundGradient,onColorChange:e=>o({backgroundColor:e}),onGradientChange:e=>o({backgroundGradient:e}),className:"otter-lottie-background-control"}))),(0,c.createElement)(s.InspectorAdvancedControls,null,(0,c.createElement)(d.TextControl,{label:(0,a.__)("Aria Label","otter-blocks"),help:(0,a.__)("Describe the purpose of this animation on the page.","otter-blocks"),value:t.ariaLabel,onChange:e=>o({ariaLabel:e})})))},b=e=>{let{isEditing:t,setEditing:o}=e;return(0,c.createElement)(s.BlockControls,null,(0,c.createElement)(d.ToolbarGroup,null,(0,c.createElement)(d.Tooltip,{text:t?(0,a.__)("Save","otter-blocks"):(0,a.__)("Edit","otter-blocks")},(0,c.createElement)(d.Button,{onClick:()=>o(!t)},(0,c.createElement)(d.Dashicon,{icon:t?"yes":"edit"})))))},p=o(7462),g=e=>{let{attributes:t,isSelected:o,playerRef:l}=e;(0,c.useEffect)((()=>{!(0,i.isEmpty)(t.file)&&t.loop&&null!==l.current&&l.current.addEventListener("complete",a)}),[]),(0,c.useEffect)((()=>{o?(l.current.play(),t.direction&&l.current.seek("100%")):l.current.stop()}),[o]);const a=()=>{l.current&&(l.current.setLooping(t.loop),l.current.play(),l.current.removeEventListener("complete",a))};return(0,c.createElement)("lottie-player",(0,p.Z)({id:t.id,ref:l,src:t.file.url,autoplay:!0,count:t.count,speed:t.speed,background:t.backgroundColor||t.backgroundGradient,direction:t.direction?-1:1,style:{width:!(!t.width||"%"===t.width.toString().slice(-1))&&`${t.width}px`,maxWidth:!(!t.width||"%"!==t.width.toString().slice(-1))&&`${t.width}`,height:"auto"},mode:"normal"},t.ariaLabel&&{"aria-label":t.ariaLabel}))},h=o(5225);const{attributes:k}=n;const{name:v}=n;(0,r.registerBlockType)(v,{...n,title:(0,a.__)("Lottie Animation","otter-blocks"),description:(0,a.__)("Add Lottie animations to your WordPress. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["media","lottie","animation"],edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a}=e;const r=(0,c.useRef)(null),[n,d]=(0,c.useState)(!Boolean(t.file));(0,c.useEffect)((()=>{const e=(0,h.WX)(a,k);return()=>e(t.id)}),[t.id]);const p=(0,s.useBlockProps)();return(0,c.createElement)(c.Fragment,null,(!(0,i.isEmpty)(t.file)&&n||!n)&&(0,c.createElement)(b,{isEditing:n,setEditing:d}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(u,{attributes:t,setAttributes:o,playerRef:r}),(0,c.createElement)("div",p,((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(m,{value:t.file,onChange:e=>{if(""===e||null===e)return;const t=(0,i.pick)(e,["id","url"]);(0,i.isEmpty)(t)&&(t.url=e),o({file:{...t}}),d(!1)},attributes:t}),!((0,i.isEmpty)(t.file)||n)&&(0,c.createElement)(g,{attributes:t,isSelected:l,playerRef:r})))},save:e=>{let{attributes:t}=e;const o=s.useBlockProps.save({id:t.id,src:t.file?t.file.url:"",width:t.width});return"scroll"===t.trigger?(0,c.createElement)("lottie-player",(0,p.Z)({trigger:t.trigger,background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o)):(0,c.createElement)("lottie-player",(0,p.Z)({autoplay:!0,loop:!0,count:t.direction?-1*t.count:t.count,speed:t.speed,direction:t.direction?-1:1,trigger:t.trigger,"data-loop":t.loop,mode:"normal",background:t.backgroundColor||t.backgroundGradient},t.ariaLabel&&{"aria-label":t.ariaLabel},o))}})},5319:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/plugin-cards","title":"Plugin Card","category":"themeisle-blocks","description":"Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","keywords":["plugin","card","orbitfox"],"textdomain":"otter-blocks","attributes":{"slug":{"type":"string"}},"supports":{"html":false},"editorStyle":"otter-plugin-card-editor","style":"otter-plugin-card-style"}'),n=o(340),c=o(9307),i=o(2175),s=o(5609),d=o(8423),m=o.n(d),u=o(4932),b=o(2819),p=o(6989),g=o.n(p),h=o(9630),k=e=>{let{setAttributes:t,hasError:o,setError:a,className:r}=e;const n=(0,c.useRef)(null);let i=!1;const d=[],[m,p]=(0,c.useState)(!1),[k,v]=(0,c.useState)(""),[y,f]=(0,c.useState)({}),[_,w]=(0,c.useState)(null);(0,c.useEffect)((()=>{let e=null;return null===_||i||(i=!0,(0,u.Z)(d[_],n.current,{onlyScrollIfNeeded:!0}),d[_].focus(),e=setTimeout((()=>{i=!1}),100)),()=>{clearTimeout(e)}}),[_]);const C=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=_?_-1:Object.keys(y).length-1;w(t)}},E=e=>{if(Object.keys(y).length){e.stopPropagation(),e.preventDefault();const t=null===_||_===Object.keys(y).length-1?0:_+1;w(t)}},x=e=>{t({slug:e.slug}),f({})};return(0,c.createElement)(s.Placeholder,{icon:"admin-plugins",label:(0,l.__)("Plugin Card","otter-blocks"),instructions:(0,l.__)("Search for the plugin you want to display.","otter-blocks"),className:r},(0,c.createElement)("div",{className:"o-plugin-cards-search-field"},(0,c.createElement)(s.Dashicon,{icon:"search"}),m&&(0,c.createElement)(s.Spinner,null),(0,c.createElement)(s.TextControl,{type:"text",placeholder:(0,l.__)("Search for plugin…","otter-blocks"),value:k,onChange:v,onKeyDown:e=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:Object.keys(y).length&&!e.shiftKey&&w(0);break;case h.ENTER:(async e=>{t({slug:""}),p(!0),a(!1);const o=await g()({path:`otter/v1/plugins?search=${encodeURIComponent(e)}`});if(o.data.errors)return a(!0),p(!1),w(null),void f({});p(!1),w(null),f(o.data.plugins)})(e.target.value)}},onFocus:()=>w(null)}),y&&(0,c.createElement)("div",{tabIndex:"-1",className:"o-plugin-cards-search-results",ref:n},Object.keys(y).map((e=>{const t=y[e];let o;return t.icons.svg&&(o=t.icons.svg),t.icons["2x"]&&(o=t.icons["2x"]),t.icons["1x"]&&(o=t.icons["1x"]),t.icons.default&&(o=t.icons.default),(0,c.createElement)("button",{className:"o-plugin-cards-list-item",key:e,ref:(l=e,e=>{d[l]=e}),onClick:e=>{e.preventDefault(),x(t)},onKeyDown:e=>((e,t)=>{switch(e.keyCode){case h.UP:C(e);break;case h.DOWN:E(e);break;case h.TAB:if(e.shiftKey){0!==_&&C(e);break}if(_===Object.keys(y).length-1)break;E(e);break;case h.ENTER:x(t)}})(e,t)},(0,c.createElement)("img",{src:o}),(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,b.unescape)(t.name)}}));var l})))),o&&(0,c.createElement)("div",{className:"o-plugin-cards-error"},(0,c.createElement)("span",null,(0,l.__)("There seems to be an error. Make sure your internet is working properly.","otter-blocks"))))},v=e=>{let{setAttributes:t}=e;return(0,c.createElement)(i.BlockControls,null,(0,c.createElement)(s.ToolbarGroup,null,(0,c.createElement)(s.Tooltip,{text:(0,l.__)("Edit","otter-blocks")},(0,c.createElement)(s.Button,{className:"components-icon-button components-toolbar__control o-plugin-cards-edit-plugin-card",onClick:()=>t({slug:void 0})},(0,c.createElement)(s.Dashicon,{icon:"edit"})))))};const{name:y}=r;(0,a.registerBlockType)(y,{...r,title:(0,l.__)("Plugin Card","otter-blocks"),description:(0,l.__)("Plugin Card block lets you display plugins data in your blog posts. Powered by Otter.","otter-blocks"),icon:n.pluginsIcon,keywords:["plugin","card","orbitfox"],edit:e=>{let{attributes:t,setAttributes:o}=e;const[l,a]=(0,c.useState)(!1),r=(0,i.useBlockProps)();return t.slug?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(v,{setAttributes:o}),(0,c.createElement)("div",r,(0,c.createElement)(s.Disabled,null,(0,c.createElement)(m(),{block:"themeisle-blocks/plugin-cards",attributes:{...t}})))):(0,c.createElement)("div",r,(0,c.createElement)(k,{attributes:t,setAttributes:o,hasError:l,setError:a}))},save:()=>null})},2693:function(e,t,o){var l=o(7682),a=o(5736),r=o(4981),n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/popup","title":"Popup","category":"themeisle-blocks","description":"Display your content in beautiful popup with many customization options. Powered by Otter.","keywords":["popup","modal","lightbox"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"minWidth":{"type":"number"},"maxWidth":{"type":"number"},"trigger":{"type":"string"},"wait":{"type":"number"},"anchor":{"type":"string"},"scroll":{"type":"number"},"showClose":{"type":"boolean","default":true},"outsideClose":{"type":"boolean","default":true},"anchorClose":{"type":"boolean","default":false},"closeAnchor":{"type":"string"},"recurringClose":{"type":"boolean","default":false},"recurringTime":{"type":"number"},"backgroundColor":{"type":"string"},"closeColor":{"type":"string"},"overlayColor":{"type":"string"},"overlayOpacity":{"type":"number"}},"editorStyle":"otter-popup-editor","style":"otter-popup-style","script":"otter-popup"}'),c=o(9307),i=o(5711),s=o(6755),d=o(7231),m=o(2175),u=o(5609),b=o(2694),p=o(9084);const g=()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.Disabled,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close On Anchor Click","otter-blocks"),checked:!1,onChange:()=>{}}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Dismiss for Recurring Visitors","otter-blocks"),checked:!1,onChange:()=>{}})),(0,c.createElement)(p.Z,{notice:(0,c.createElement)(u.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,a.__)("Unlock more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var h=e=>{let{attributes:t,setAttributes:o}=e,l=[{label:(0,a.__)("On Load","otter-blocks"),value:"onLoad"},{label:(0,a.__)("On Anchor Click (Pro)","otter-blocks"),value:"onClick",disabled:!0},{label:(0,a.__)("On Scroll (Pro)","otter-blocks"),value:"onScroll",disabled:!0},{label:(0,a.__)("On Exit (Pro)","otter-blocks"),value:"onExit",disabled:!0}];return l=(0,b.applyFilters)("otter.popupBlock.triggers",l),(0,c.createElement)(m.InspectorControls,null,(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Settings","otter-blocks")},(0,c.createElement)(u.SelectControl,{label:(0,a.__)("Open Trigger","otter-blocks"),help:!Boolean(window.themeisleGutenberg.hasPro)&&(0,a.__)("You need to have Otter Pro to activate Pro features.","otter-blocks"),options:l,value:t.trigger,onChange:e=>o({trigger:e})}),(void 0===t.trigger||"onLoad"===t.trigger)&&(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Wait Time","otter-blocks"),help:(0,a.__)("How much time to wait before showing the popup. Leave it empty to open instantly","otter-blocks"),min:0,max:100,value:t.wait,onChange:e=>o({wait:Number(e)})}),(0,b.applyFilters)("otter.popupBlock.controls",(0,c.createElement)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Show Close Button","otter-blocks"),checked:t.showClose,onChange:()=>o({showClose:!t.showClose})}),(0,c.createElement)(u.ToggleControl,{label:(0,a.__)("Close on Click Outside","otter-blocks"),checked:t.outsideClose,onChange:()=>o({outsideClose:!t.outsideClose})}),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(g,null))),null),t,o)),(0,c.createElement)(u.PanelBody,{title:(0,a.__)("Style","otter-blocks"),initialOpen:!1},(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Minimum Width","otter-blocks"),min:100,max:1e3,value:t.minWidth,allowReset:!0,onChange:e=>o({minWidth:Number(e)})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Maximum Width","otter-blocks"),min:100,max:1e3,value:t.maxWidth,allowReset:!0,onChange:e=>o({maxWidth:Number(e)})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Background","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>o({backgroundColor:e})}),t.showClose&&(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Close Button","otter-blocks"),colorValue:t.closeColor,onColorChange:e=>o({closeColor:e})}),(0,c.createElement)(m.__experimentalColorGradientControl,{label:(0,a.__)("Overlay","otter-blocks"),colorValue:t.overlayColor,onColorChange:e=>o({overlayColor:e})}),(0,c.createElement)(u.RangeControl,{label:(0,a.__)("Overlay Opacity","otter-blocks"),value:t.overlayOpacity,onChange:e=>o({overlayOpacity:Number(e)})})))},k=o(5225);const{attributes:v}=n;const{name:y}=n;(0,r.registerBlockType)(y,{...n,title:(0,a.__)("Popup","otter-blocks"),description:(0,a.__)("Display your content in beautiful popup with many customization options. Powered by Otter.","otter-blocks"),icon:l.Z,keywords:["popup","modal","lightbox"],edit:e=>{let{attributes:t,setAttributes:o,clientId:l}=e;(0,c.useEffect)((()=>{const e=(0,k.WX)(l,v);return()=>e(t.id)}),[]);const[r,n]=(0,c.useState)(!1),b=i.iv`
111
  --minWidth: ${t.minWidth?t.minWidth+"px":"400px"};
112
+ --maxWidth: ${t.maxWidth?t.maxWidth+"px":void 0};
113
  --backgroundColor: ${t.backgroundColor};
114
  --closeColor: ${t.closeColor};
115
  --overlayColor: ${t.overlayColor};
116
  --overlayOpacity: ${t.overlayOpacity?t.overlayOpacity/100:1};
117
+ `,p=(0,m.useBlockProps)({id:t.id,css:b});return(0,i.tZ)(c.Fragment,null,(0,i.tZ)(h,{attributes:t,setAttributes:o}),(0,i.tZ)("div",p,(0,i.tZ)(u.Button,{isPrimary:!0,icon:s.Z,onClick:()=>n(!0)},(0,a.__)("Edit Popup","otter-blocks")),r&&(0,i.tZ)("div",{className:"otter-popup__modal_wrap"},(0,i.tZ)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay",onClick:()=>n(!1)}),(0,i.tZ)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,i.tZ)("div",{className:"otter-popup__modal_header"},(0,i.tZ)(u.Button,{icon:d.Z,onClick:()=>n(!1)})),(0,i.tZ)("div",{className:"otter-popup__modal_body"},(0,i.tZ)(m.InnerBlocks,null))))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:"is-front","data-open":t.trigger,"data-dismiss":t.recurringClose?t.recurringTime:"","data-time":void 0===t.trigger||"onLoad"===t.trigger?t.wait||0:"","data-anchor":"onClick"===t.trigger?t.anchor:"","data-offset":"onScroll"===t.trigger?t.scroll:"","data-outside":t.outsideClose?t.outsideClose:"","data-anchorclose":t.anchorClose?t.closeAnchor:""});return(0,c.createElement)("div",o,(0,c.createElement)("div",{className:"otter-popup__modal_wrap"},(0,c.createElement)("div",{role:"presentation",className:"otter-popup__modal_wrap_overlay"}),(0,c.createElement)("div",{className:"otter-popup__modal_content"},t.showClose&&(0,c.createElement)("div",{className:"otter-popup__modal_header"},(0,c.createElement)("button",{type:"button",class:"components-button has-icon"},(0,c.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},(0,c.createElement)("path",{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})))),(0,c.createElement)("div",{className:"otter-popup__modal_body"},(0,c.createElement)(m.InnerBlocks.Content,null)))))}})},374:function(e,t,o){o.d(t,{is:function(){return u},te:function(){return m},ue:function(){return b}});var l=o(9307),a=o(4184),r=o.n(a),n=o(5736),c=o(2694),i=o(198),s=o(4715);const d=e=>{let{attributes:t,element:o,category:a,categoriesList:r}=e;return void 0!==a&&t.displayCategory&&r?(0,l.createElement)("span",{key:o,className:"o-posts-grid-post-category"},a.name):""},m=e=>{let{attributes:t,element:o,post:a}=e;const r=t.titleTag||"h5";var n;return t.displayTitle?(0,l.createElement)(r,{key:o,className:"o-posts-grid-post-title"},(0,l.createElement)("a",{href:a.link},(0,s.Uo)(null===(n=a.title)||void 0===n?void 0:n.rendered))):""},u=e=>{let{attributes:t,element:o,post:a,author:r,category:c}=e;return t.displayMeta&&(t.displayDate||t.displayAuthor)?(0,l.createElement)("p",{key:o,className:"o-posts-grid-post-meta"},t.displayDate&&
118
  /* translators: %s Date posted */
119
+ (0,n.sprintf)((0,n.__)("on %s","otter-blocks"),(0,s.p6)(a.date)),t.displayAuthor&&void 0!==r&&
120
  /* translators: %s Author of the post */
121
+ (0,n.sprintf)((0,n.__)(" by %s","otter-blocks"),r.name),t.displayComments&&(0,n.sprintf)(" - %1$s %2$s","0",(0,n.__)("comments","otter-blocks")),t.displayPostCategory&&void 0!==(null==c?void 0:c.name)&&(0,n.sprintf)((0,n.__)(" - %s","otter-blocks"),c.name)):""},b=e=>{let{attributes:t,element:o,post:a}=e;var r;return 0<t.excerptLength&&t.displayDescription?(0,l.createElement)("div",{key:o,className:"o-posts-grid-post-description"},(0,l.createElement)("p",null,(null===(r=a.excerpt)||void 0===r?void 0:r.rendered)&&(0,s.Uo)(a.excerpt.rendered).substring(0,t.excerptLength)+"…"),t.displayReadMoreLink&&(0,l.createElement)("a",{href:a.link,className:"o-posts-read-more"},(0,n.__)("Read more","otter-blocks"))):""};t.ZP=e=>{let{attributes:t,posts:o,categoriesList:a,authors:n}=e;return(0,l.createElement)("div",{className:"grid"===t.style?r()("is-grid",`o-posts-grid-columns-${t.columns}`,{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage}):r()("is-list",{"has-shadow":t.imageBoxShadow,"o-crop-img":t.cropImage})},o.filter((e=>e)).slice(t.enableFeaturedPost?1:0).map((e=>{var o,s;const p=a&&0<(null==e||null===(o=e.categories)||void 0===o?void 0:o.length)?a.find((t=>t.id===e.categories[0])):void 0,g=n&&e.author?n.find((t=>t.id===e.author)):void 0;return(0,l.createElement)("div",{key:e.link,className:"o-posts-grid-post-blog o-posts-grid-post-plain"},(0,l.createElement)("div",{className:r()("o-posts-grid-post")},0!==e.featured_media&&t.displayFeaturedImage&&(0,l.createElement)(i.Z,{id:e.featured_media,link:e.link,alt:null===(s=e.title)||void 0===s?void 0:s.rendered,size:t.imageSize,imgStyle:{borderRadius:void 0!==t.borderRadius?t.borderRadius+"px":void 0}}),(0,l.createElement)("div",{className:r()("o-posts-grid-post-body",{"is-full":!t.displayFeaturedImage})},t.template.map((o=>{switch(o){case"category":return(0,l.createElement)(d,{key:o,attributes:t,element:o,category:p,categoriesList:a});case"title":return(0,l.createElement)(m,{key:o,attributes:t,element:o,post:e});case"meta":return(0,l.createElement)(u,{key:o,attributes:t,element:o,post:e,author:g,category:p});case"description":return(0,l.createElement)(b,{key:o,attributes:t,element:o,post:e});default:return(0,c.applyFilters)("otter.postsBlock.templateLoop","",o,t)}})))))})))}},198:function(e,t,o){var l=o(9307),a=o(5609),r=o(9818);t.Z=e=>{let{id:t,link:o,alt:n,size:c,imgStyle:i}=e;const{featuredImage:s,altText:d}=(0,r.useSelect)((e=>{const o=e("core").getMedia(t);return{featuredImage:o?0<Object.keys(o.media_details.sizes).length&&o.media_details.sizes[c]?o.media_details.sizes[c].source_url:o.source_url:null,altText:o&&o.alt_text?o.alt_text:n}}),[c,t]);return null===s?(0,l.createElement)(l.Fragment,null):(0,l.createElement)("div",{className:"o-posts-grid-post-image"},(0,l.createElement)("a",{href:o},s?(0,l.createElement)("img",{src:s,size:c,alt:d,"data-id":t,style:i}):(0,l.createElement)(a.Placeholder,null,(0,l.createElement)(a.Spinner,null))))}},8061:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/posts-grid","title":"Posts","category":"themeisle-blocks","description":"Display a list of your most recent posts in a beautiful layout. Powered by Otter.","keywords":["posts","grid","news"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"style":{"type":"string","default":"grid"},"postTypes":{"type":"array","default":[]},"columns":{"type":"number","default":3},"template":{"type":"array","default":["category","title","meta","description"]},"categories":{"type":"array","items":{"type":"object"}},"postsToShow":{"type":"number","default":5},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"offset":{"type":"number","default":0},"imageSize":{"type":"string","default":"full"},"imageBoxShadow":{"type":"boolean","default":true},"displayFeaturedImage":{"type":"boolean","default":true},"displayCategory":{"type":"boolean","default":true},"displayTitle":{"type":"boolean","default":true},"titleTag":{"type":"string","default":"h5"},"displayMeta":{"type":"boolean","default":true},"displayDescription":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":100},"displayDate":{"type":"boolean","default":true},"displayAuthor":{"type":"boolean","default":true},"displayComments":{"type":"boolean","default":true},"displayPostCategory":{"type":"boolean","default":false},"displayReadMoreLink":{"type":"boolean","default":false},"cropImage":{"type":"boolean","default":false},"customTitleFontSize":{"type":"number"},"customTitleFontSizeTable":{"type":"number"},"customTitleFontSizeMobile":{"type":"number"},"customDescriptionFontSize":{"type":"number"},"customDescriptionFontSizeTablet":{"type":"number"},"customDescriptionFontSizeMobile":{"type":"number"},"borderRadius":{"type":"number"},"textAlign":{"type":"string"},"verticalAlign":{"type":"string"},"enableFeaturedPost":{"type":"boolean"},"imageWidth":{"type":"number"}},"supports":{"align":["wide","full"],"html":false},"editorStyle":"otter-posts-grid-editor","style":"otter-posts-grid-style"}'),n=o(340);const{attributes:c}=r;var i=[{attributes:{...c,categories:{type:"string"}},supports:{align:["wide","full"],html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:e=>{let{categories:t}=e;return t&&"string"==typeof t},save:()=>null}],s=o(7462),d=o(9307),m=o(5711),u=o(2819),b=o(5609),p=o(2175),g=o(9818),h=e=>{let{attributes:t,setAttributes:o}=e;const a=p.BlockVerticalAlignmentToolbar;return(0,d.createElement)(p.BlockControls,null,(0,d.createElement)(a,{label:(0,l.__)("Change vertical alignment","otter-blocks"),value:t.verticalAlign,onChange:e=>o({verticalAlign:e})}))},k=o(454),v=o.n(k),y=o(4184),f=o.n(y),_=o(2694),w=o(1286),C=o(6993);const E=(0,w.W6)((()=>(0,d.createElement)("div",{className:"o-sortable-handle",tabIndex:"0"},(0,d.createElement)("span",null)))),x={image:"displayFeaturedImage",category:"displayCategory",title:"displayTitle",meta:"displayMeta",description:"displayDescription"},T=e=>{var t,o;let{attributes:a,setAttributes:r,template:n,disabled:c}=e;const[i,s]=(0,d.useState)(!1),m=null==n?void 0:n.startsWith("custom_"),p=null==a||null===(t=a.customMetas)||void 0===t||null===(o=t.filter((e=>{let{id:t}=e;return t===n})))||void 0===o?void 0:o.pop(),h={image:a.displayFeaturedImage,category:a.displayCategory,title:a.displayTitle,meta:a.displayMeta,description:a.displayDescription},k=(0,g.useSelect)((e=>{const{getView:t}=e("themeisle-gutenberg/data"),{__experimentalGetPreviewDeviceType:o}=!!e("core/edit-post")&&e("core/edit-post");return o?o():t()}),[]),v=e=>{const t={...p,...e};r({customMetas:a.customMetas.map((e=>e.id===p.id?t:e))})},y=m?(0,_.applyFilters)("otter.postsBlock.panelLabel","",p):(0,u.startCase)((0,u.toLower)(n)),w=h[n]||(null==p?void 0:p.display),T=w?"visibility":"hidden";
122
  /* translators: %s Label */
123
+ let M=(0,l.sprintf)((0,l.__)("Display %s","otter-blocks"),y);return w&&(
124
  /* translators: %s Label */
125
+ M=(0,l.sprintf)((0,l.__)("Hide %s","otter-blocks"),y)),(0,d.createElement)("div",{className:f()("o-sortable-item-area",`o-sortable-item-area-${n}`)},(0,d.createElement)("div",{className:f()("o-sortable-item",{disabled:c,hidden:!w,editable:w})},!c&&(0,d.createElement)(E,null),(0,d.createElement)("div",{className:"o-sortable-label"},y),w&&"category"!==n&&(0,d.createElement)(b.Button,{icon:i?"arrow-up-alt2":"arrow-down-alt2",label:i?(0,l.__)("Close Settings","otter-blocks"):(0,l.__)("Open Settings","otter-blocks"),showTooltip:!0,className:"o-sortable-button",onClick:()=>s(!i)}),(0,d.createElement)(b.Button,{icon:T,label:M,showTooltip:!0,className:"o-sortable-button",onClick:()=>{m?v({display:!p.display}):(e=>{const t=x[e]||e;r({[t]:!a[t]})})(n),s(!1)}})),w&&"category"!==n&&(0,d.createElement)("div",{className:f()("o-sortable-control-area",{opened:i&&w})},"image"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Image Size","otter-blocks"),value:a.imageSize,options:window.themeisleGutenberg.imageSizes.map((e=>({label:(0,u.startCase)((0,u.toLower)(e)),value:e}))),onChange:e=>r({imageSize:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Crop image to fit","otter-blocks"),checked:a.cropImage,onChange:e=>r({cropImage:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display box shadow","otter-blocks"),checked:a.imageBoxShadow,onChange:e=>r({imageBoxShadow:e})}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),value:a.borderRadius,onChange:e=>r({borderRadius:e}),min:0,max:50,allowReset:!0}),(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Image Width","otter-blocks"),value:a.imageWidth,onChange:e=>r({imageWidth:e}),min:0,max:500,allowReset:!0})),"title"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Title Tag","otter-blocks"),value:a.titleTag||"h5",options:[{label:(0,l.__)("H1","otter-blocks"),value:"h1"},{label:(0,l.__)("H2","otter-blocks"),value:"h2"},{label:(0,l.__)("H3","otter-blocks"),value:"h3"},{label:(0,l.__)("H4","otter-blocks"),value:"h4"},{label:(0,l.__)("H5","otter-blocks"),value:"h5"},{label:(0,l.__)("H6","otter-blocks"),value:"h6"}],onChange:e=>r({titleTag:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customTitleFontSize;case"Tablet":return a.customTitleFontSizeTablet;case"Mobile":return a.customTitleFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?r({customTitleFontSize:e}):"Tablet"===k?r({customTitleFontSizeTablet:e}):"Mobile"===k&&r({customTitleFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),"meta"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display post date","otter-blocks"),checked:a.displayDate,onChange:e=>r({displayDate:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display author","otter-blocks"),checked:a.displayAuthor,onChange:e=>r({displayAuthor:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display comments","otter-blocks"),checked:a.displayComments,onChange:e=>r({displayComments:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display category","otter-blocks"),checked:a.displayPostCategory,onChange:e=>r({displayPostCategory:e})})),"description"===n&&(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.TextControl,{label:(0,l.__)("Excerpt Limit","otter-blocks"),type:"number",value:a.excerptLength,onChange:e=>r({excerptLength:e})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Display read more link","otter-blocks"),checked:a.displayReadMoreLink,onChange:e=>r({displayReadMoreLink:e})}),(0,d.createElement)(C.Z,{label:(0,l.__)("Font size","otter-blocks")},(0,d.createElement)(b.RangeControl,{value:(()=>{switch(k){case"Desktop":return a.customDescriptionFontSize;case"Tablet":return a.customDescriptionFontSizeTablet;case"Mobile":return a.customDescriptionFontSizeMobile;default:return}})(),onChange:e=>{"Desktop"===k?r({customDescriptionFontSize:e}):"Tablet"===k?r({customDescriptionFontSizeTablet:e}):"Mobile"===k&&r({customDescriptionFontSizeMobile:e})},min:0,max:50,allowReset:!0}))),(0,_.applyFilters)("otter.postsBlock.controls","",a,r,m,p,v)))},M=(0,w.W8)((e=>{let{attributes:t,setAttributes:o,template:l,disabled:a}=e;return(0,d.createElement)(T,{attributes:t,setAttributes:o,template:l,disabled:a})})),S=(0,w.JN)((e=>{var t;let{attributes:o,setAttributes:l}=e;return(0,d.createElement)("div",null,null==o||null===(t=o.template)||void 0===t?void 0:t.filter((e=>{var t;return!(null!=e&&e.startsWith("custom_")&&(void 0===(null===(t=window)||void 0===t?void 0:t.acf)||!window.themeisleGutenberghasPro))})).map(((e,t)=>(0,d.createElement)(M,{key:`item-${e}`,index:t,attributes:o,setAttributes:l,template:e}))))}));var B=o(9084);const z=()=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.Button,{variant:"secondary",isSecondary:!0,className:"o-conditions__add",disabled:!0,onClick:()=>{}},(0,l.__)("Add Meta Field","otter-blocks")),(0,d.createElement)("br",null),(0,d.createElement)(B.Z,{notice:(0,d.createElement)(b.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Unlock more options with Otter Pro. ","otter-blocks")),variant:"upsell"}));var P=e=>{let{attributes:t,setAttributes:o}=e;return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("div",{className:f()("o-sortable",t.style)},(0,d.createElement)(T,{attributes:t,setAttributes:o,template:"image",disabled:!0}),(0,d.createElement)(S,{attributes:t,setAttributes:o,onSortEnd:e=>{let{oldIndex:l,newIndex:a}=e;const r=v()(t.template,l,a);o({template:r})},useDragHandle:!0,axis:"y",lockAxis:"y"}),(0,_.applyFilters)("otter.postsBlock.sortableContainer",(0,d.createElement)(z,null),t,o)))},V=o(5241),R=o(8286),L=o(4715),H=e=>{let{attributes:t,setAttributes:o,changeStyle:a,categoriesList:r}=e;const{slugs:n}=(0,g.useSelect)((e=>({slugs:e("otter-store").getPostsSlugs()})),[t.postTypes]),c=r.reduce(((e,t)=>({...e,[t.name]:t})),{}),i=t.categories?t.categories.map((e=>{const t=r.find((t=>t.id===Number(e.id)));return{id:e.id,name:(null==t?void 0:t.name)||(null==t?void 0:t.slug)||""}})):[],s="object"==typeof t.categories?1<=t.categories.length?t.categories[0].id:void 0:t.categories;return(0,d.createElement)(p.InspectorControls,null,(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Styles","otter-blocks"),initialOpen:!1},(0,d.createElement)(V.V,{value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:a})),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Post Types","otter-blocks"),initialOpen:!1},(0,d.createElement)(b.BaseControl,null,(0,l.__)("Select the types of the post. If none is selected, the default WordPress post will be displayed.","otter-blocks")),(0,d.createElement)(b.SelectControl,{label:(0,l.__)("Post Type","otter-blocks"),value:t.postTypes[0]||null,onChange:e=>e&&o({postTypes:[e]}),options:n.map((e=>({label:(0,L.__)(e),value:e})))})),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},"grid"===t.style&&(0,d.createElement)(b.RangeControl,{label:(0,l.__)("Columns","otter-blocks"),value:t.columns,onChange:e=>{o({columns:e})},min:1,max:5}),(0,d.createElement)(b.QueryControls,{order:t.order,orderBy:t.orderBy,onOrderChange:e=>o({order:e}),onOrderByChange:e=>o({orderBy:e}),numberOfItems:t.postsToShow,onNumberOfItemsChange:e=>o({postsToShow:e}),categorySuggestions:c,selectedCategoryId:s,selectedCategories:i,onCategoryChange:e=>{let t;"object"==typeof e?0<e.length&&(t=e.map((e=>{if("object"==typeof e)return e;const t=r.find((t=>t.name===e));return t?{id:t.id,name:e}:void 0})).filter((e=>void 0!==e))):""!==e&&(t=[{id:e,name:r.find((t=>t.id===Number(e))).name}]),o({categories:t})}}),(0,d.createElement)(b.TextControl,{label:(0,l.__)("Offset","otter-blocks"),help:(0,l.__)("Number of post to displace or pass over.","otter-blocks"),type:"number",value:t.offset,min:0,onChange:e=>o({offset:Number(e)})}),(0,d.createElement)(b.ToggleControl,{label:(0,l.__)("Enable featured post","otter-blocks"),checked:t.enableFeaturedPost,onChange:e=>o({enableFeaturedPost:e})}),(0,d.createElement)(b.BaseControl,{label:(0,l.__)("Text alignment","otter-blocks")},(0,d.createElement)(R.Z,{value:t.textAlign,options:[{icon:"editor-alignleft",label:(0,l.__)("Left","otter-blocks"),value:"left"},{icon:"editor-aligncenter",label:(0,l.__)("Center","otter-blocks"),value:"center"},{icon:"editor-alignright",label:(0,l.__)("Right","otter-blocks"),value:"right"}],onChange:e=>o({textAlign:e}),showBottomLabels:!0}))),(0,d.createElement)(b.PanelBody,{title:(0,l.__)("Design & Layout","otter-blocks"),initialOpen:!1},(0,d.createElement)(P,{attributes:t,setAttributes:o})))},N=o(5225),I=o(374);const O={posts:{slugs:[],usedSlugs:[]}};(0,g.registerGenericStore)("otter-store",(()=>{let e=()=>{};const t=O,o={getPostsSlugs:()=>t.posts.slugs,getPostsUsedSlugs:()=>t.posts.usedSlugs},l={setPostsSlugs(o){t.posts.slugs=o,e()},setPostsUsedSlugs(o){t.posts.usedSlugs.push(...o),e()},setOnlyOneSlug(o){t.posts.usedSlugs=[o],e()},removePostsUsedSlugs(o){t.posts.usedSlugs=t.posts.usedSlugs.filter((e=>!o.includes(e))),e()}};return{getSelectors:()=>o,getActions:()=>l,subscribe(t){e=t}}})());var A=o(198),G=e=>{var t;let{post:o,attributes:l,author:a,category:r}=e;return o?(0,d.createElement)("div",{className:f()("o-featured-post",{"has-shadow":l.imageBoxShadow})},l.displayFeaturedImage&&(0,d.createElement)(A.Z,{id:o.featured_media,link:o.link,alt:null===(t=o.title)||void 0===t?void 0:t.rendered,imgStyle:{borderRadius:void 0!==l.borderRadius?l.borderRadius+"px":void 0}}),(0,d.createElement)("div",{className:"o-posts-grid-post-body"},l.template.map((e=>{switch(e){case"title":return(0,d.createElement)(I.te,{attributes:l,element:e,post:o});case"meta":return(0,d.createElement)(I.is,{attributes:l,element:e,post:o,author:a,category:r});case"description":return(0,d.createElement)(I.ue,{attributes:l,element:e,post:o});default:return(0,_.applyFilters)("otter.postsBlock.templateLoop","",e,l)}})))):""};const{attributes:$}=r;const{name:Z}=r;(0,a.registerBlockType)(Z,{...r,title:(0,l.__)("Posts","otter-blocks"),description:(0,l.__)("Display a list of your most recent posts in a beautiful layout. Powered by Otter.","otter-blocks"),icon:n.postsIcon,keywords:["posts","grid","news"],deprecated:i,edit:e=>{let{attributes:t,setAttributes:o,clientId:a}=e;(0,d.useEffect)((()=>{const e=(0,N.WX)(a,$);return()=>e(t.id)}),[t.id]);const[r,n]=(0,d.useState)([]),{posts:c,categoriesList:i,authors:k}=(0,g.useSelect)((e=>{const o=t.categories&&0<t.categories.length?t.categories.map((e=>e.id)):[],l=(0,u.pickBy)({categories:o,order:t.order,orderby:t.orderBy,per_page:t.postsToShow,offset:t.offset},(e=>!(0,u.isUndefined)(e))),a=t.postTypes;return{posts:0<a.length?a.map((t=>e("core").getEntityRecords("postType",t,l))).flat():e("core").getEntityRecords("postType","post",l),categoriesList:e("core").getEntityRecords("taxonomy","category",{per_page:100}),authors:e("core").getUsers({who:"authors"})}}),[t.categories,t.order,t.orderBy,t.postsToShow,t.offset,t.postTypes]),v=e=>{o({style:e})};(0,d.useEffect)((()=>{(async()=>{n(await(0,L.R3)())})()}),[]),(0,d.useEffect)((()=>{(0,g.dispatch)("otter-store").setPostsSlugs(r)}),[r]);const y=m.iv`
126
  ${t.imageWidth&&`--imgWidth: ${t.imageWidth}px;`}
127
  ${t.borderRadius&&`--imgBorderRadius: ${t.borderRadius}px;`}
128
+ --vertAlign: ${(0,L.Vg)(t.verticalAlign)};
129
  --textAlign: ${t.textAlign};
130
 
131
  @media ( min-width: 960px ) {
142
  ${t.customTitleFontSizeMobile&&`--titleTextSize: ${t.customTitleFontSizeMobile}px;`}
143
  ${t.customDescriptionFontSizeMobile&&`--descriptionTextSize: ${t.customDescriptionFontSizeMobile}px;`}
144
  }
145
+ `,f=(0,p.useBlockProps)();return c&&i&&k?0===c.length?(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",f,(0,m.tZ)(b.Placeholder,null,(0,l.__)("No Posts","otter-blocks"))),i&&t.offset||r.length?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null):(0,m.tZ)(d.Fragment,null,(0,m.tZ)(V.d,{label:(0,l.__)("Block Styles","otter-blocks"),value:t.style,options:[{label:(0,l.__)("Grid","otter-blocks"),value:"grid",image:window.themeisleGutenberg.assetsPath+"/icons/posts-grid.jpg"},{label:(0,l.__)("List","otter-blocks"),value:"list",image:window.themeisleGutenberg.assetsPath+"/icons/posts-list.jpg"}],onChange:v}),(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i,posts:c}),(0,m.tZ)(h,{attributes:t,setAttributes:o}),(0,m.tZ)("div",(0,s.Z)({},f,{css:y}),(0,m.tZ)(b.Disabled,null,t.enableFeaturedPost&&(0,m.tZ)(G,{attributes:t,post:null==c?void 0:c[0],category:i[0],author:k[0]}),(0,m.tZ)(I.ZP,{attributes:t,posts:c,categoriesList:i,authors:k})))):(0,m.tZ)(d.Fragment,null,(0,m.tZ)("div",f,(0,m.tZ)(b.Placeholder,null,(0,m.tZ)(b.Spinner,null),(0,l.__)("Loading Posts","otter-blocks"))),i&&t.offset?(0,m.tZ)(H,{attributes:t,setAttributes:o,changeStyle:v,categoriesList:i}):null)},save:()=>null})},6951:function(e,t,o){var l=o(5736),a=o(4981),r=o(9818),n=o(340),c=JSON.parse('{"kQ":"\x3c!-- wp:themeisle-blocks/advanced-columns {\\"id\\":\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\",\\"columns\\":3,\\"layout\\":\\"equal\\",\\"layoutMobile\\":\\"collapsedRows\\",\\"padding\\":{\\"top\\":\\"80px\\",\\"bottom\\":\\"80px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingTablet\\":{\\"top\\":\\"40px\\",\\"bottom\\":\\"40px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\"},\\"columnsWidth\\":1170,\\"horizontalAlign\\":\\"center\\",\\"verticalAlign\\":\\"flex-start\\",\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"backgroundOverlayPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"columnsHTMLTag\\":\\"section\\",\\"align\\":\\"full\\"} --\x3e\\n<section id=\\"wp-block-themeisle-blocks-advanced-columns-e0e1ab2e\\" class=\\"wp-block-themeisle-blocks-advanced-columns alignfull has-3-columns has-desktop-equal-layout has-tablet-equal-layout has-mobile-collapsedRows-layout has-vertical-flex-start\\"><div class=\\"wp-block-themeisle-blocks-advanced-columns-overlay\\"></div><div class=\\"innerblocks-wrap\\">\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-43e17023\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-43e17023\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-cd4d5bb0\\">Essential</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-7d521980\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-7d521980\\"><strong>$59</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-ee4f525b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-ee4f525b\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-1806e8e7\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-26b966e4\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-4aebde54\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-64264549\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-64264549\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-2489d76c\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-e30ccf77\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e30ccf77\\">Business</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-01f7ed6b\\"><strong>$129</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-fe18de7e\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-fe18de7e\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-fb8b7e9c\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-78a49dfc\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-f341b063\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-8216d9b3\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-column {\\"id\\":\\"wp-block-themeisle-blocks-advanced-column-09158d16\\",\\"padding\\":{\\"top\\":\\"32px\\",\\"bottom\\":\\"32px\\",\\"left\\":\\"32px\\",\\"right\\":\\"32px\\"},\\"paddingTablet\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"paddingMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"margin\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"marginMobile\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"backgroundPosition\\":{\\"x\\":\\"0.00\\",\\"y\\":\\"0.00\\"},\\"borderRadius\\":{\\"top\\":\\"20px\\",\\"bottom\\":\\"20px\\",\\"left\\":\\"20px\\",\\"right\\":\\"20px\\"},\\"boxShadow\\":true,\\"boxShadowColorOpacity\\":10,\\"boxShadowBlur\\":80,\\"boxShadowVertical\\":2,\\"columnWidth\\":\\"33.33\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-advanced-column-09158d16\\" class=\\"wp-block-themeisle-blocks-advanced-column\\">\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\",\\"tag\\":\\"h3\\",\\"align\\":\\"center\\",\\"marginBottom\\":8} --\x3e\\n<h3 id=\\"wp-block-themeisle-blocks-advanced-heading-b3766bd8\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-b3766bd8\\">VIP</h3>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\",\\"tag\\":\\"span\\",\\"align\\":\\"center\\",\\"fontSize\\":48} --\x3e\\n<span id=\\"wp-block-themeisle-blocks-advanced-heading-e601353c\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-e601353c\\"><strong>$199</strong></span>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/advanced-heading {\\"id\\":\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\",\\"tag\\":\\"p\\",\\"align\\":\\"center\\",\\"headingColor\\":\\"#9b9b9b\\",\\"fontSize\\":15} --\x3e\\n<p id=\\"wp-block-themeisle-blocks-advanced-heading-39d2e261\\" class=\\"wp-block-themeisle-blocks-advanced-heading wp-block-themeisle-blocks-advanced-heading-39d2e261\\">Party snackwave four dollar toast tumeric cold-pressed.</p>\\n\x3c!-- /wp:themeisle-blocks/advanced-heading --\x3e\\n\\n\x3c!-- wp:buttons {\\"layout\\":{\\"type\\":\\"flex\\",\\"justifyContent\\":\\"center\\",\\"orientation\\":\\"horizontal\\"}} --\x3e\\n<div class=\\"wp-block-buttons\\">\x3c!-- wp:button {\\"width\\":100,\\"className\\":\\"is-style-primary\\"} --\x3e\\n<div class=\\"wp-block-button has-custom-width wp-block-button__width-100 is-style-primary\\"><a class=\\"wp-block-button__link\\">Get Started</a></div>\\n\x3c!-- /wp:button --\x3e</div>\\n\x3c!-- /wp:buttons --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":10} --\x3e\\n<div style=\\"height:10px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e\\n\\n\x3c!-- wp:separator {\\"color\\":\\"nv-light-bg\\",\\"className\\":\\"is-style-default\\"} --\x3e\\n<hr class=\\"wp-block-separator has-text-color has-background has-nv-light-bg-background-color has-nv-light-bg-color is-style-default\\"/>\\n\x3c!-- /wp:separator --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-2c744428\\",\\"defaultIcon\\":\\"check\\",\\"defaultIconColor\\":\\"var(\\\\u002d\\\\u002dnv-primary-accent)\\",\\"defaultSize\\":16,\\"gap\\":10} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-2c744428\\" class=\\"wp-block-themeisle-blocks-icon-list\\">\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\",\\"content\\":\\"Custom Layouts \\\\u0026amp; Hooks\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-b78d20f0\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Custom Layouts &amp; Hooks</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\",\\"content\\":\\"Unlimited Website Usage\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-14fe631b\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Unlimited Website Usage</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e\\n\\n\x3c!-- wp:themeisle-blocks/icon-list-item {\\"id\\":\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\",\\"content\\":\\"Risk-Free Guarantee\\",\\"library\\":\\"fontawesome\\",\\"iconPrefix\\":\\"fas\\",\\"icon\\":\\"check\\"} --\x3e\\n<div id=\\"wp-block-themeisle-blocks-icon-list-item-0ce7030d\\" class=\\"wp-block-themeisle-blocks-icon-list-item\\"><i class=\\"fas fa-check wp-block-themeisle-blocks-icon-list-item-icon\\"></i><p class=\\"wp-block-themeisle-blocks-icon-list-item-content\\">Risk-Free Guarantee</p></div>\\n\x3c!-- /wp:themeisle-blocks/icon-list-item --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/icon-list --\x3e\\n\\n\x3c!-- wp:spacer {\\"height\\":20} --\x3e\\n<div style=\\"height:20px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>\\n\x3c!-- /wp:spacer --\x3e</div>\\n\x3c!-- /wp:themeisle-blocks/advanced-column --\x3e</div></section>\\n\x3c!-- /wp:themeisle-blocks/advanced-columns --\x3e"}');const{getBlockType:i}=(0,r.select)("core/blocks"),s=()=>{const e=setInterval((()=>{if(void 0===i("themeisle-blocks/advanced-columns"))return s();const t=(0,a.parse)(c.kQ);(0,a.registerBlockVariation)("themeisle-blocks/advanced-columns",{name:"themeisle-blocks/section-pricing",title:(0,l.__)("Pricing Section","otter-blocks"),icon:n.pricingIcon,scope:"inserter",attributes:t[0].attributes,innerBlocks:t[0].innerBlocks}),clearInterval(e)}),2e3)};s()},3105:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/progress-bar","title":"Progress Bar","category":"themeisle-blocks","description":"Show your progress with a beautiful Progress Bar block. Powered by Otter.","keywords":["progress","bar","skills"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string","default":"Skill"},"percentage":{"type":"number","default":50},"duration":{"type":"number","default":2},"titleStyle":{"type":"string","default":"default"},"percentagePosition":{"type":"string","default":"default"},"height":{"type":"number","default":30},"borderRadius":{"type":"number"},"backgroundColor":{"type":"string"},"barBackgroundColor":{"type":"string"},"titleColor":{"type":"string"},"percentageColor":{"type":"string"}},"editorStyle":"otter-progress-bar-editor","style":"otter-progress-bar-style","script":"otter-progress-bar"}'),n=o(9307),c=o(4184),i=o.n(c),s=o(5711),d=o(5609),m=o(2175),u=o(5225),b=o(2819),p=e=>{let{attributes:t,setAttributes:o,onHeightChange:a,heightMode:r,setHeightMode:c}=e;return(0,n.createElement)(m.InspectorControls,null,(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Settings","otter-blocks")},(0,n.createElement)(d.TextControl,{label:(0,l.__)("Title","otter-blocks"),value:t.title,onChange:e=>{o({title:e})}}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Percentage","otter-blocks"),help:(0,l.__)("The value of the progress bar.","otter-blocks"),value:t.percentage,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,100),o({percentage:e}))},min:0,max:100}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Duration","otter-blocks"),help:(0,l.__)("The duration of the animation.","otter-blocks"),value:t.duration,onChange:e=>{void 0!==e&&(e=(0,b.clamp)(e,0,3),o({duration:e}))},min:0,max:3,step:.1}),30<=t.height&&(0,n.createElement)(d.SelectControl,{label:(0,l.__)("Title Style","otter-blocks"),value:t.titleStyle,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Highlight","otter-blocks"),value:"highlight"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"}],onChange:e=>{o({titleStyle:e})}}),(0,n.createElement)(d.SelectControl,{label:(0,l.__)("Show Percentage","otter-blocks"),value:t.percentagePosition,options:[{label:(0,l.__)("Default","otter-blocks"),value:"default"},{label:(0,l.__)("Append","otter-blocks"),value:"append"},{label:(0,l.__)("Tooltip","otter-blocks"),value:"tooltip"},{label:(0,l.__)("Outer","otter-blocks"),value:"outer"},{label:(0,l.__)("Hide","otter-blocks"),value:"hide"}],onChange:e=>{r.isAutomatic&&(r.percentagePosition=e,c({...r})),o({percentagePosition:e})}})),(0,n.createElement)(d.PanelBody,{title:(0,l.__)("Style","otter-blocks"),initialOpen:!1},(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Height","otter-blocks"),help:(0,l.__)("The height of the progress bar.","otter-blocks"),value:t.height,onChange:a,min:0,max:100}),(0,n.createElement)(d.RangeControl,{label:(0,l.__)("Border Radius","otter-blocks"),help:(0,l.__)("Round the corners of the progress bar.","otter-blocks"),value:t.borderRadius,onChange:e=>{o({borderRadius:e})},initialPosition:5,min:0,max:35}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Progress Color","otter-blocks"),colorValue:t.barBackgroundColor,onColorChange:e=>{o({barBackgroundColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Title Color","otter-blocks"),colorValue:t.titleColor,onColorChange:e=>{o({titleColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Percentage Color","otter-blocks"),colorValue:t.percentageColor,onColorChange:e=>{o({percentageColor:e})}}),(0,n.createElement)(m.__experimentalColorGradientControl,{label:(0,l.__)("Background Color","otter-blocks"),colorValue:t.backgroundColor,onColorChange:e=>{o({backgroundColor:e})}})))};const{attributes:g}=r;var h={to:[{type:"block",blocks:["themeisle-blocks/circle-counter"],transform:e=>{const t=(0,b.omit)(e,["titleStyle","percentagePosition","height","borderRadius","barBackgroundColor","percentageColor"]);return(0,a.createBlock)("themeisle-blocks/circle-counter",{...t,progressColor:e.barBackgroundColor,height:(0,b.clamp)(4*e.height,0,240),titleStyle:"default"})}}]};const{name:k}=r;(0,a.registerBlockType)(k,{...r,title:(0,l.__)("Progress Bar","otter-blocks"),description:(0,l.__)("Show your progress with a beautiful Progress Bar block. Powered by Otter.","otter-blocks"),icon:"minus",keywords:["progress","bar","skills"],transforms:h,edit:e=>{let{attributes:t,setAttributes:o,isSelected:l,clientId:a,toggleSelection:r}=e;(0,n.useEffect)((()=>{const e=(0,u.WX)(a,g);return()=>e(t.id)}),[t.id]);const[c,b]=(0,n.useState)(!1),[h,k]=(0,n.useState)({isAutomatic:!1,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),v=(0,n.useRef)(null);(0,n.useEffect)((()=>{let e=null;if(v.current)return b(!1),e=setTimeout((()=>b(!0)),1e3*t.duration),v.current.animate({width:`${t.percentage}%`},{duration:1e3*t.duration,easing:"linear",fill:"forwards"}),()=>{clearTimeout(e)}}),[t.percentage,t.duration]);const y=e=>{30>e?(h.isAutomatic||k({isAutomatic:!0,titleStyle:t.titleStyle,percentagePosition:t.percentagePosition}),o({height:e,titleStyle:"outer",percentagePosition:"append"===t.percentagePosition||"default"===t.percentagePosition?"outer":t.percentagePosition})):(h.isAutomatic&&k({isAutomatic:!1}),o({titleStyle:h.isAutomatic?h.titleStyle:t.titleStyle,percentagePosition:h.isAutomatic?h.percentagePosition:t.percentagePosition,height:e}))},f=s.iv`
146
  --titleColor: ${t.titleColor};
147
  --percentageColor: ${t.percentageColor};
148
  --percentageColorOuter: ${t.percentageColor};
152
  --borderRadius: ${void 0!==t.borderRadius?t.borderRadius:5}px;
153
  --height: ${void 0!==t.height?t.height:30}px;
154
  --barBackground: ${t.barBackgroundColor};
155
+ `,_=(0,m.useBlockProps)({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),css:f});return(0,s.tZ)(n.Fragment,null,(0,s.tZ)(p,{attributes:t,setAttributes:o,onHeightChange:y,heightMode:h,setHeightMode:k}),(0,s.tZ)("div",_,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],className:"wp-block-themeisle-blocks-progress-bar__outer__title",value:t.title,onChange:e=>o({title:e})}),"outer"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__outer__value"},`${t.percentage}%`)),(0,s.tZ)(d.ResizableBox,{size:{height:t.height},minHeight:5,maxHeight:100,enable:{top:!1,right:!1,bottom:!0,left:!1},showHandle:l,onResizeStop:(e,o,l,a)=>{y(parseInt(t.height+a.height,10)),r(!0)},onResizeStart:()=>{r(!1)}},(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,s.tZ)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,s.tZ)(m.RichText,{tagName:"span",allowedFormats:[],value:t.title,onChange:e=>o({title:e})})),(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar show",ref:v},"tooltip"===t.percentagePosition&&c&&(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip show"},`${t.percentage}%`,(0,s.tZ)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append show"},`${t.percentage}%`)),"default"===t.percentagePosition&&c&&(0,s.tZ)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress"},`${t.percentage}%`)))))},save:e=>{let{attributes:t}=e;const o=m.useBlockProps.save({id:t.id,className:i()({"has-tooltip":"tooltip"===t.percentagePosition}),"data-percent":t.percentage,"data-duration":t.duration});return(0,n.createElement)("div",o,("outer"===t.titleStyle||"outer"===t.percentagePosition)&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer"},"outer"===t.titleStyle&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__outer__title"},t.title),"outer"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__outer__value wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area"},("default"===t.titleStyle||"highlight"===t.titleStyle)&&(0,n.createElement)("div",{className:i()("wp-block-themeisle-blocks-progress-bar__area__title",{highlight:"highlight"===t.titleStyle})},(0,n.createElement)("span",null,t.title)),(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__area__bar"},"tooltip"===t.percentagePosition&&(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__tooltip"},(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__number"},t.percentage),(0,n.createElement)("span",{className:"wp-block-themeisle-blocks-progress-bar__area__arrow"})),"append"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress__append wp-block-themeisle-blocks-progress-bar__number"},t.percentage)),"default"===t.percentagePosition&&(0,n.createElement)("div",{className:"wp-block-themeisle-blocks-progress-bar__progress wp-block-themeisle-blocks-progress-bar__number"},`${t.percentage}%`)))}})},7902:function(e,t,o){var l=o(5736),a=o(4981),r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"themeisle-blocks/review","title":"Product Review","category":"themeisle-blocks","description":"Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","keywords":["product","review","stars"],"textdomain":"otter-blocks","attributes":{"id":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string","default":"USD"},"price":{"type":"number"},"discounted":{"type":"number"},"image":{"type":"object"},"description":{"type":"string"},"features":{"type":"array","default":[{"title":"Stability","rating":9},{"title":"Ease of Use","rating":4},{"title":"Look & Feel","rating":9},{"title":"Price","rating":7}]},"pros":{"type":"array","default":["Easy to use","Good price","Sturdy build and ergonomics"]},"cons":{"type":"array","default":["Incompatible with old versions","Hard to assemble","Bad color combination"]},"links":{"type":"array","default":[{"label":"Buy on Amazon","href":"","isSponsored":false},{"label":"Buy on eBay","href":"","isSponsored":false}]},"primaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"buttonTextColor":{"type":"string"},"isSynced":{"type":"array"}},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"single-column","label":"Single Column"}],"supports":{"html":false},"editorStyle":"otter-review-editor","style":"otter-review-style"}'),n=o(340),c=o(9307),i=o(5711),s=o(4184),d=o.n(s),m=o(1463),u=o.n(m),b=o(2175),p=o(5609),g=o(2819),h=o(3159),k=o(9084);const v=e=>{let{title:t,remove:o,children:a}=e;const[r,n]=(0,c.useState)(!1);return(0,c.createElement)("div",{className:"o-review__inspector_panel_item"},(0,c.createElement)("div",{className:"o-review__inspector_panel_item__header"},(0,c.createElement)(p.Button,{className:"o-review__inspector_panel_item__title",onClick:()=>n(!r)},t),(0,c.createElement)(p.Button,{icon:"no-alt",label:(0,l.__)("Remove","otter-blocks"),showTooltip:!0,className:"o-review__inspector_panel_item__arrow",onClick:o})),r&&(0,c.createElement)("div",{className:"o-review__inspector_panel_item__content"},a))};var y=e=>{var t,o,a,r,n;let{attributes:i,setAttributes:s,getValue:d,productAttributes:m}=e;const u=(e,t)=>{const o=[...i.features];o[e]={...o[e],...t},s({features:o})},y=(e,t)=>{const o=[...i.links];o[e]={...o[e],...t},s({links:o})},f=e=>{let t=[...i.links];t=t.filter(((t,o)=>o!==e)),s({links:t})};return(0,c.createElement)(b.InspectorControls,null,(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Details","otter-blocks")},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Product Name","otter-blocks"),type:"text",placeholder:(0,l.__)("Name of your product…","otter-blocks"),value:(null==m?void 0:m.title)||i.title,disabled:i.product,onChange:e=>s({title:e})}),(0,c.createElement)(p.BaseControl,null,(0,c.createElement)(p.TextControl,{label:(0,l.__)("Currency","otter-blocks"),type:"text",placeholder:(0,l.__)("Currency code, like USD or EUR.","otter-blocks"),value:(null==m?void 0:m.currency)||i.currency,disabled:i.product,onChange:e=>s({currency:e})}),(0,l.__)("Currency code in three digit ISO 4217 code.","otter-blocks")+" ",(0,c.createElement)(p.ExternalLink,{href:"https://en.wikipedia.org/wiki/ISO_4217#Active_codes"},(0,l.__)("List of ISO 4217 codes.","otter-blocks"))),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Price","otter-blocks"),type:"number",value:(null==m?void 0:m.price)||i.price,disabled:i.product,onChange:e=>s({price:""!==e?Number(e):void 0})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Discounted Price","otter-blocks"),type:"number",value:(null==m?void 0:m.discounted)||i.discounted,disabled:i.product,onChange:e=>s({discounted:""!==e?Number(e):void 0})}),i.image||null!=m&&m.image?(0,c.createElement)(p.BaseControl,{className:"o-review__inspector_image"},(0,c.createElement)("img",{src:(null==m||null===(t=m.image)||void 0===t?void 0:t.url)||i.image.url,alt:(null==m||null===(o=m.image)||void 0===o?void 0:o.url)||i.image.alt}),(0,c.createElement)(p.Button,{isSecondary:!0,onClick:()=>s({image:void 0}),disabled:i.product},(0,l.__)("Remove image","otter-blocks"))):(0,c.createElement)(b.MediaPlaceholder,{labels:{title:(0,l.__)("Product Image","otter-blocks")},accept:"image/*",allowedTypes:["image"],value:i.image,onSelect:e=>s({image:(0,g.pick)(e,["id","alt","url"])})})),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Product Features","otter-blocks"),initialOpen:!1},0<i.features.length&&i.features.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.title||(0,l.__)("Feature","otter-blocks"),remove:()=>(e=>{let t=[...i.features];t=t.filter(((t,o)=>o!==e)),s({features:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Feature title","otter-blocks"),value:e.title,onChange:e=>u(t,{title:e})}),(0,c.createElement)(p.RangeControl,{label:(0,l.__)("Rating","otter-blocks"),value:e.rating,onChange:e=>u(t,{rating:Number(e)}),min:1,max:10})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.features];e.push({title:(0,l.__)("Feature","otter-blocks"),rating:9}),s({features:e})}},(0,l.__)("Add Feature","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Pros","otter-blocks"),initialOpen:!1},0<i.pros.length&&i.pros.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Pro","otter-blocks"),remove:()=>(e=>{let t=[...i.pros];t=t.filter(((t,o)=>o!==e)),s({pros:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("Why do you like the product?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.pros];o[e]=t,s({pros:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.pros];e.push(""),s({pros:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Cons","otter-blocks"),initialOpen:!1},0<i.cons.length&&i.cons.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e||(0,l.__)("Con","otter-blocks"),remove:()=>(e=>{let t=[...i.cons];t=t.filter(((t,o)=>o!==e)),s({cons:t})})(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Title","otter-blocks"),type:"text",placeholder:(0,l.__)("What can be improved?","otter-blocks"),value:e,onChange:e=>((e,t)=>{const o=[...i.cons];o[e]=t,s({cons:o})})(t,e)})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.cons];e.push(""),s({cons:e})}},(0,l.__)("Add Item","otter-blocks"))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Links","otter-blocks"),initialOpen:!1},i.product&&(0,c.createElement)(p.Notice,{status:"warning",isDismissible:!1,className:"o-html-anchor-control-notice"},(0,l.__)("WooCommerce product synchronization is active. Some options might be disabled.","otter-blocks")),0<(null==m||null===(a=m.links)||void 0===a?void 0:a.length)&&(null==m||null===(r=m.links)||void 0===r?void 0:r.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>f(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),disabled:i.product,value:e.label}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,disabled:i.product}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,disabled:i.product}))))),!(0<(null==m||null===(n=m.links)||void 0===n?void 0:n.length))&&(0,c.createElement)(c.Fragment,null,0<i.links.length&&i.links.map(((e,t)=>(0,c.createElement)(v,{key:t,title:e.label||(0,l.__)("Link","otter-blocks"),remove:()=>f(t)},(0,c.createElement)(p.TextControl,{label:(0,l.__)("Label","otter-blocks"),type:"text",placeholder:(0,l.__)("Button label","otter-blocks"),value:e.label,onChange:e=>y(t,{label:e})}),(0,c.createElement)(p.TextControl,{label:(0,l.__)("Link","otter-blocks"),type:"url",placeholder:"https://…",value:e.href,onChange:e=>y(t,{href:e})}),(0,c.createElement)(p.ToggleControl,{label:(0,l.__)("Is this Sponsored?","otter-blocks"),checked:e.isSponsored,onChange:()=>y(t,{isSponsored:!e.isSponsored})})))),(0,c.createElement)(p.Button,{isSecondary:!0,className:"o-review__inspector_add",onClick:()=>{const e=[...i.links];e.push({label:(0,l.__)("Buy Now","otter-blocks"),href:""}),s({links:e})}},(0,l.__)("Add Links","otter-blocks")))),(0,c.createElement)(p.PanelBody,{title:(0,l.__)("Color","otter-blocks"),initialOpen:!1},(0,c.createElement)(h.Z,{field:"primaryColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Primary","otter-blocks"),colorValue:d("primaryColor"),onColorChange:e=>s({primaryColor:e})})),(0,c.createElement)(h.Z,{field:"backgroundColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Background","otter-blocks"),colorValue:d("backgroundColor"),onColorChange:e=>s({backgroundColor:e})})),(0,c.createElement)(b.ContrastChecker,{textColor:d("primaryColor"),backgroundColor:d("backgroundColor")}),(0,c.createElement)(h.Z,{field:"textColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Text","otter-blocks"),colorValue:d("textColor"),onColorChange:e=>s({textColor:e})})),(0,c.createElement)(h.Z,{field:"buttonTextColor",isSynced:i.isSynced,setAttributes:s},(0,c.createElement)(b.__experimentalColorGradientControl,{label:(0,l.__)("Button Text","otter-blocks"),colorValue:d("buttonTextColor"),onColorChange:e=>s({buttonTextColor:e})}))),!Boolean(window.themeisleGutenberg.hasPro)&&(0,c.createElement)(p.PanelBody,{title:(0,l.__)("More Features","otter-blocks"),initialOpen:!1},(0,c.createElement)(k.Z,{notice:(0,c.createElement)(p.ExternalLink,{href:window.themeisleGutenberg.upgradeLink},(0,l.__)("Unlock more options with Otter Pro. ","otter-blocks")),variant:"upsell"})))},f=o(5225);const{attributes:_}=r;const{name:w,attributes:C}=r;window.themeisleGutenberg.defaultReviewAttributes=C,(0,a.registerBlockType)(w,{...r,title:(0,l.__)("Product Review","otter-blocks"),description:(0,l.__)("Turn your posts into smart reviews with ratings and generate leads with a performing review block. Powered by Otter.","otter-blocks"),icon:n.faIcon,keywords:["product","review","stars"],styles:[{name:"default",label:(0,l.__)("Default","otter-blocks"),isDefault:!0},{name:"single-column",label:(0,l.__)("Single Column","otter-blocks")}],edit:e=>{var t,o,a,r,s;let{name:m,attributes:g,setAttributes:h,clientId:k,isSelected:v,status:w="isInactive",productAttributes:C={}}=e;(0,c.useEffect)((()=>{const e=(0,f.WX)(k,_);return()=>e(g.id)}),[g.id]);const E=e=>(0,f.Ih)({name:m,field:e,defaultAttributes:_,attributes:g}),x=(g.features.reduce(((e,t)=>e+t.rating),0)/g.features.length).toFixed(1),T=[];for(let e=0;10>e;e++)T.push((0,i.tZ)(n.StarFilled,{key:e,className:d()({low:3>=Math.round(x)&&e<Math.round(x),medium:3<Math.round(x)&&8>Math.round(x)&&e<Math.round(x),high:7<Math.round(x)&&10>=Math.round(x)&&e<Math.round(x)})}));const M=i.iv`
 
 
 
 
 
 
 
 
156
  --backgroundColor: ${E("backgroundColor")};
157
  --primaryColor: ${E("primaryColor")};
158
  --textColor: ${E("textColor")};
159
  --buttonTextColor: ${E("buttonTextColor")};
160
+ `,S="object"==typeof w&&null!==w&&w.isError||"isLoading"===w;let B=(0,b.useBlockProps)({id:g.id,className:S&&"is-placeholder",css:M});return"isLoading"===w?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,null,(0,i.tZ)(p.Spinner,null)))):"object"==typeof w&&null!==w&&w.isError?(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)(p.Placeholder,{instructions:w.message}))):(0,i.tZ)(c.Fragment,null,(0,i.tZ)(y,{attributes:g,setAttributes:h,getValue:E,productAttributes:C}),(0,i.tZ)("div",B,(0,i.tZ)("div",{className:"o-review__header"},null!=C&&C.title?(0,i.tZ)(b.RichText.Content,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:null==C?void 0:C.title,tagName:"h3"}):(0,i.tZ)(b.RichText,{placeholder:(0,l.__)("Name of your product…","otter-blocks"),allowedFormats:[],value:g.title,onChange:e=>h({title:e}),tagName:"h3"}),(0,i.tZ)("div",{className:"o-review__header_meta"},(0,i.tZ)("div",{className:"o-review__header_ratings"},T,(0,i.tZ)("span",null,
161
  /** translators: %s Rating score. */