(()=>{"use strict";const e=window.React,t=window.wp.blockEditor,n=window.wp.components,a=window.wp.compose,o=window.wp.hooks,r=window.wp.i18n,l=(0,a.createHigherOrderComponent)((a=>o=>{const{name:l}=o,i="core/image"===l||"core/gallery"===l,c=firelight.activeLightbox,s="Pro Lightbox"===c,g=firelight.isProUser,m=firelight.settingsUrl;return i?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a,{key:"edit",...o}),(0,e.createElement)(t.InspectorControls,null,(0,e.createElement)(n.PanelBody,{className:"fancybox-settings",title:(0,r.__)("Lightbox")},(0,e.createElement)("p",null,(0,r.__)("You are using: "),(0,e.createElement)("span",{className:"fancybox-active-lightbox"},c),"."),!g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:"Use Pro Lightbox?",checked:!1,disabled:!0}),(0,e.createElement)("p",{className:"fancybox-upgrade-notice"},(0,r.__)("Upgrade to enable Pro Lightbox.")),(0,e.createElement)("div",{className:"fancybox-button-container"},(0,e.createElement)(n.Button,{variant:"primary",className:"fancybox-button",href:"https://firelightwp.com/pro-lightbox",target:"_blank"},(0,r.__)("See Demos"))," ",(0,e.createElement)(n.Button,{variant:"primary",className:"fancybox-button",href:"https://firelightwp.com/pro-lightbox/pricing",target:"_blank"},(0,r.__)("Upgrade")))),g&&!s&&(0,e.createElement)("p",null,(0,r.__)("Notice: You have an active Easy Fancybox Pro license and can use the Pro Lightbox!")),(0,e.createElement)("div",{className:"fancybox-settings-link"},(0,e.createElement)(n.Button,{variant:"link",href:m,target:"_blank"},(0,r.__)("View Lightbox Settings")))))):(0,e.createElement)(a,{...o})}),"withLightboxPanelControls");(0,o.addFilter)("editor.BlockEdit","lightpress/lightbox-panel",l)})();