| 1 |
import{r as u,j as a,S as y,u as f,a as c,D as m,b as h,c as b,d as l,e as w,B as p,w as v,f as L}from"./vendor.a9e440ab.js";const T=function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?t.credentials="include":e.crossorigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=r(e);fetch(e.href,t)}};T();const z=u.exports.forwardRef(function(o,r){return a(y,{direction:"up",ref:r,...o})});function S({open:n,onClose:o=()=>{}}){var g;const{startLegacy:r,legacyModule:i}=f(),[e,t]=u.exports.useState(!1),s=(g=i==null?void 0:i.label)!=null?g:"the plugin",d=()=>{e||o()};return c(m,{open:n,onClose:d,TransitionComponent:z,"aria-labelledby":"legacy-dialog-title","aria-describedby":"legacy-dialog-description",children:[a(h,{id:"legacy-dialog-title",children:"Back to the legacy version"}),c(b,{children:[c(l,{id:"legacy-dialog-description",children:["Your buttons from the legacy version of ",s," are still on this site, exactly as you left them. Buttonizer will go back to showing them."]}),c(l,{id:"legacy-dialog-description-p2",style:{marginTop:15},children:["New features only arrive in Buttonizer, the legacy version is"," ",a("b",{children:"deprecated"})," and receives security updates only. You can come back at any time by signing up."]}),a(l,{id:"legacy-dialog-description-p3",style:{marginTop:15},children:"Are you sure you want to use the legacy version?"})]}),c(w,{children:[a(p,{disabled:e,onClick:d,children:"Cancel"}),a(p,{disabled:e,color:"secondary",onClick:()=>{e||(t(!0),r())},autoFocus:!0,children:"Use legacy"})]})]})}function x(){var e;const[n,o]=u.exports.useState(!1),r=(e=window.buttonizer_admin)==null?void 0:e.legacyModule;return r?{isGoingToLegacy:n,startLegacy:()=>{n||(o(!0),v("/use_legacy_module").then(({data:t})=>{document.location.href=t.redirect}).catch(t=>{console.error(t),o(!1)}))},legacyModule:r}:{isGoingToLegacy:!1,startLegacy:null}}var _=Object.freeze(Object.defineProperty({__proto__:null,useLegacy:x,LegacyModal:S},Symbol.toStringTag,{value:"Module"})),O={pluginName:"Buttonizer",appOrigin:"wordpress",reviewUrl:"https://r.buttonizer.io/review/wordpress",reviewUrlFooter:"https://r.buttonizer.io/review/wordpress?utm_source=wp-plugin-footer",communityUrl:"https://r.buttonizer.io/support/community?utm_source=wp-plugin-footer",feedbackUrl:"https://r.buttonizer.io/feedback?utm_source=wp-plugin-footer",features:{alwaysShowSentry:!0},welcomeFeatures:[{primary:"Widgets",secondary:"WhatsApp, Messenger and contact form"},"Navigate with URL","Open pop up","Social media sharing",{primary:"Fully customizable",secondary:"Style your floating content"},{primary:"Over 40+ actions",secondary:"And much more"}],footerRateText:"Rate Buttonizer",extensions:{legacy:_}};L(O); |