(()=>{"use strict";const e=window.React,t=window.wp.i18n,l=window.wp.plugins,r=window.wp.components,a=window.wp.data,o=l=>{let o=l.label?l.label:(0,t.__)("Unlock Pro Feature","firebox");const{setUpgradeFeatureModal:n,setShowUpgradeModal:i}=(0,a.dispatch)("firebox_editor");return(0,e.createElement)(r.Button,{variant:"primary",isDestructive:!0,className:"firebox-upgrade-pro-button",size:l?.size||"default",onClick:e=>{e.preventDefault(),l.feature?n({key:l.feature,label:l.feature}):i(!0)}},(0,e.createElement)("svg",{className:"fb-locks-icon lock-closed",xmlns:"http://www.w3.org/2000/svg",height:"18px",viewBox:"0 -960 960 960",width:"18px",fill:"#e8eaed"},(0,e.createElement)("path",{d:"M263.72-96Q234-96 213-117.15T192-168v-384q0-29.7 21.15-50.85Q234.3-624 264-624h24v-96q0-79.68 56.23-135.84 56.22-56.16 136-56.16Q560-912 616-855.84q56 56.16 56 135.84v96h24q29.7 0 50.85 21.15Q768-581.7 768-552v384q0 29.7-21.16 50.85Q725.68-96 695.96-96H263.72Zm.28-72h432v-384H264v384Zm216.21-120Q510-288 531-309.21t21-51Q552-390 530.79-411t-51-21Q450-432 429-410.79t-21 51Q408-330 429.21-309t51 21ZM360-624h240v-96q0-50-35-85t-85-35q-50 0-85 35t-35 85v96Zm-96 456v-384 384Z"})),(0,e.createElement)("svg",{className:"fb-locks-icon lock-open",xmlns:"http://www.w3.org/2000/svg",height:"18px",viewBox:"0 -960 960 960",width:"18px",fill:"#e8eaed"},(0,e.createElement)("path",{d:"M264-624h336v-96q0-50-35-85t-85-35q-50 0-85 35t-35 85h-72q0-80 56.23-136 56.22-56 136-56Q560-912 616-855.84q56 56.16 56 135.84v96h24q29.7 0 50.85 21.15Q768-581.7 768-552v384q0 29.7-21.16 50.85Q725.68-96 695.96-96H263.72Q234-96 213-117.15T192-168v-384q0-29.7 21.15-50.85Q234.3-624 264-624Zm0 456h432v-384H264v384Zm216.21-120Q510-288 531-309.21t21-51Q552-390 530.79-411t-51-21Q450-432 429-410.79t-21 51Q408-330 429.21-309t51 21ZM264-168v-384 384Z"})),(0,e.createElement)("span",{className:"text"},o))},{Fill:n,Slot:i}=(0,r.createSlotFill)("FireBox_Map_Repeater_Slotfill"),s=({children:t})=>(0,e.createElement)(n,null,t);s.Slot=({fillProps:t})=>(0,e.createElement)(i,{fillProps:t},(e=>e.length?e:null));const{Fill:c,Slot:m}=(0,r.createSlotFill)("FireBox_Map_Inspector_Controls_Controls_Slotfill"),p=({children:t})=>(0,e.createElement)(c,null,t);p.Slot=({fillProps:t})=>(0,e.createElement)(m,{fillProps:t},(e=>e.length?e:null)),(0,l.registerPlugin)("firebox-general-free-slot-fills",{render:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(s,null,(({markers:l,onNewItemAdd:a})=>(0,e.createElement)(e.Fragment,null,0===l.length&&(0,e.createElement)(r.Button,{variant:"primary",className:"fpframework-button-fullwidth",onClick:a},(0,t.__)("Add Marker","firebox")),1===l.length&&(0,e.createElement)(r.Button,{variant:"primary",disabled:!0,className:"fpframework-button-fullwidth",onClick:a},(0,t.__)("Add Marker","firebox")),(0,e.createElement)(r.BaseControl,{label:(0,t.__)("Map Markers","firebox"),help:(0,t.__)("Upgrade to add multiple markers.","firebox")},(0,e.createElement)(o,{feature:(0,t.__)("More Map Markers","firebox"),plugin:"FireBox"}))))),(0,e.createElement)(p,null,(({attributes:l,setAttributes:a})=>(0,e.createElement)(r.BaseControl,{label:(0,t.__)("Scale","firebox"),help:(0,t.__)("Select whether to have a map scale in metric or imperial system.","firebox")},(0,e.createElement)(o,{feature:(0,t.__)("Scale","firebox"),plugin:"FireBox"})))))})})();