Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer - Version 3.0.4

Version Description

Release date: July 19, 2022

Changelog: - Added a Google maps button action. - Made the button action request text a little bit more understandable. - Fixed some bugs - Some UI improvements

If you experience bugs, problems or you just have some feedback, let us know on our Buttonizer community!

Download this release

Release Info

Developer buttonizer
Plugin Icon wp plugin Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer
Version 3.0.4
Comparing to
See all releases

Code changes from version 3.0.3 to 3.0.4

assets/app/{index.ae956e44.js → index.6db39498.js} RENAMED
@@ -1,3 +1,3 @@
1
  var qe=Object.defineProperty,je=Object.defineProperties;var Ge=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var _e=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable;var ke=(t,n,o)=>n in t?qe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,b=(t,n)=>{for(var o in n||(n={}))_e.call(n,o)&&ke(t,o,n[o]);if(ee)for(var o of ee(n))ze.call(n,o)&&ke(t,o,n[o]);return t},W=(t,n)=>je(t,Ge(n));var Ce=(t,n)=>{var o={};for(var i in t)_e.call(t,i)&&n.indexOf(i)<0&&(o[i]=t[i]);if(t!=null&&ee)for(var i of ee(t))n.indexOf(i)<0&&ze.call(t,i)&&(o[i]=t[i]);return o};import{c as Re,a as xe,b as ge,R as fe,u as K,r as l,j as e,d as r,J as Ye,e as ye,F as x,L as Ve,C as X,B as u,E as Je,T as Ae,S as Ke,H as Xe,A as be,I as De,f as Me,g as Y,h as d,i as Qe,k as Ze,l as T,m as et,n as tt,P as ve,G as _,o as nt,p as rt,q as ot,s as ne,t as de,v as H,w as it,x as E,y as re,z as at,D as st,O as lt,K as ct,M as oe,N as ie,Q as ae,U as se,V as U,W as le,X as dt,Y as V,Z as Ee,_ as Ne,$ as we,a0 as ut,a1 as Se,a2 as J,a3 as pt,a4 as ht,a5 as mt,a6 as gt,a7 as ft,a8 as yt,a9 as bt,aa as Te,ab as vt,ac as wt,ad as kt,ae as _t,af as zt,ag as Ct,ah as xt,ai as F,aj as St,ak as Tt,al as Bt,am as Pt,an as $t}from"./vendor.68b22057.js";const It=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function o(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerpolicy&&(s.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?s.credentials="include":a.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(a){if(a.ep)return;a.ep=!0;const s=o(a);fetch(a.href,s)}};It();let v=Re({palette:{primary:{main:"#2D7789",contrastText:"#FFFFFF"},secondary:{main:"#f08419",contrastText:"#FFFFFF"},white:{main:"#FFFFFF",contrastText:"#2D7789"},black:{main:"#111111",contrastText:"#2D7789"}},typography:{fontFamily:["BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","sans-serif"].join(",")},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,navigation:1090}}});v=Re(v,{components:{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:v.palette.secondary.main,backgroundColor:xe(v.palette.secondary.main,.08),"&:hover":{backgroundColor:xe(v.palette.secondary.main,.12)},"& .MuiListItemIcon-root":{color:v.palette.secondary.main}}}}},MuiLink:{styleOverrides:{root:{textDecoration:"none","&:hover":{textDecoration:"underline"}}}},MuiButton:{styleOverrides:{root:{borderRadius:50,padding:"8px 18px"}},variants:[{props:{type:"link"},style:({ownerState:t})=>b({},t.variant==="contained"?{color:v.palette[t.color].contrastText,"&:focus":{outline:"unset",boxShadow:"unset",color:v.palette[t.color].contrastText},"&:hover":{color:v.palette[t.color].contrastText}}:{color:v.palette[t.color].main,"&:focus":{outline:"unset",boxShadow:"unset",color:v.palette[t.color].main},"&:hover":{color:v.palette[t.color].main}})},{props:{type:"link-small"},style:{padding:"5px 5px",textTransform:"none",minWidth:35,color:v.palette.primary.main,"&:focus":{outline:"unset",boxShadow:"unset",color:v.palette.primary.main},"&:hover":{color:v.palette.primary.main}}}]},MuiPaper:{styleOverrides:{root:{borderRadius:10,position:"relative"}},variants:[{props:{type:"wrapper"},style:{padding:"15px 30px"}}]},MuiTypography:{variants:[{props:{type:"header"},style:{fontSize:"1rem",fontWeight:600}},{props:{type:"content"},style:{fontSize:"1em"}}]},MuiTab:{variants:[{props:{size:"small"},style:{textTransform:"unset",minHeight:42}}]},MuiList:{variants:[{props:{size:"large"},style:{"& .MuiListItem-root":{padding:"5px 16px"},"& .MuiAvatar-root":{width:30,height:30},"& .MuiTypography-root":{fontSize:"1.2rem"}}}]}}});var We=v;function B(t,n={},o="POST"){return ge({url:`${buttonizer_admin.api}buttonizer${t}?nonce=${buttonizer_admin.nonce}`,method:o,data:n,headers:{"X-WP-Nonce":buttonizer_admin.nonce}})}const Fe=fe.createContext(),Lt=t=>{const n=K(),[o,i]=l.exports.useState("no-lock"),[a,s]=l.exports.useState(!1),[c,p]=l.exports.useState(!1),[m,f]=l.exports.useState(!1),[h,y]=l.exports.useState(!1),[w,z]=l.exports.useState({}),[L,P]=l.exports.useState({}),[C,R]=l.exports.useState({}),[j,A]=l.exports.useState(!1);l.exports.useState(null);const[O,Q]=l.exports.useState(null),$=g=>{z({name:g==null?void 0:g.name,id:g==null?void 0:g.uid}),P({id:g==null?void 0:g.site_id,timezone:g==null?void 0:g.site_timezone,isPremium:g==null?void 0:g.site_licensed}),R({name:g==null?void 0:g.plan_name,id:g==null?void 0:g.plan_id,hasPlan:(g==null?void 0:g.plan_id)!==null,cancelled:g==null?void 0:g.plan_cancelled})},I=()=>{j||(O!==null&&n("/editor"),A(!0),B("/editor_start_session").then(({data:g})=>{Q(g),n("/editor")}).catch(()=>{}).then(()=>A(!1)))};l.exports.useEffect(()=>{i(window.buttonizer_admin.actionLock),s(!!window.buttonizer_admin.hasMigrated),f(!!window.buttonizer_admin.requestReview),$(window.buttonizer_admin.account)},[]);const S={actionLock:o,hasMigrated:a,legacyBackupDeleted:c,connectionSuccesfull:h,isPremium:L.isPremium,accountData:w,siteInfo:L,planInfo:C,sessionStarting:j,cachedEditorSession:O,requestReview:m},Z={setActionLock:i,setHasMigrated:s,setLegacyBackupDeleted:p,parseAccountData:$,setConnectionSuccessfull:y,setCachedEditorSession:Q,setRequestReview:f,startSession:I};return e(Fe.Provider,b({value:b(b({},S),Z)},t))},k=()=>{const t=fe.useContext(Fe);if(t===void 0)throw new Error("useApp must be used within a AppProvider");return t},Rt="https://app.buttonizer.io",At="https://editor.buttonizer.io/site/";function q(t="/"){return Rt+t}function Dt(t){return`${At}${t.redirect_id}#auth-token=${t.token}`}function ce({text:t="Loading..."}){return r("div",{className:"buzzy-animation",children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/icon-animated.svg`})," ",e("span",{children:t})]})}const Oe=new Ye;let ue=null,D=null;function He({buttonProps:t,buttonText:n="Connect",onConnect:o,onLoading:i=()=>{},reconnect:a=!1}){const{enqueueSnackbar:s,closeSnackbar:c}=ye(),[p,m]=l.exports.useState(!1),[f,h]=l.exports.useState(!1),[y,w]=l.exports.useState(!1),z=buttonizer_admin.site,L=()=>{if(p&&D){D.focus();return}m(!0),h(!1);const P=q(`/apps/onboard?app_origin=wordpress&site_name=${encodeURIComponent(z.name)}&domain=${encodeURIComponent(z.domain)}&email=${encodeURIComponent(z.user.email)}&first_name=${encodeURIComponent(z.user.firstName)}&last_name=${encodeURIComponent(z.user.lastName)}`);D=window.open(P,"connectPopup",`width=500,height=580,top=${window.innerHeight/2-580/2},left=${window.innerWidth/2-500/2},status=no,scrollbars=yes,resizable=no`);try{D.focus()}catch{s("Could not open authorization popup. Your browser might have blocked it. Please add this site to your exception list.",{anchorOrigin:{vertical:"bottom",horizontal:"center",autoHideDuration:1e4},action:R=>[e(u,{href:"https://community.buttonizer.pro/knowledgebase/1208",target:"_blank",color:"secondary",children:"More information"}),e(u,{onClick:()=>c(R),children:"Close"})]})}ue=setInterval(()=>{if(!D){clearInterval(ue);return}D.closed&&(clearInterval(ue),D=null,m(!1))})};return l.exports.useEffect(()=>{const P=C=>{!C.isTrusted||C.origin!==q("")||C.data.messageType==="connect-info"&&(D.close(),w(!0),i(!0),B("/connect",{siteId:C.data.id,authorization:C.data.authorization,reconnect:a}).then(({data:R})=>{Oe.addConfetti(),o(R)}).catch(()=>{w(!1),i(!1),h(!0)}))};return window.addEventListener("message",P),function(){window.removeEventListener("message",P)}},[]),e(x,{children:e(Ve,W(b({onClick:L,loading:y,loadingIndicator:e(X,{size:20,style:{color:"white"}})},t),{children:n}))})}function Mt({children:t}){const{parseAccountData:n,setConnectionSuccessfull:o}=k(),{enqueueSnackbar:i,closeSnackbar:a}=ye();return l.exports.useEffect(()=>{ge.interceptors.response.use(s=>s,s=>{let c=`Oops, something went wrong. Error status ${s.response.status} (${s.response.statusText}). Your webserver might be unable to handle this request, there's an issue with your WordPress instance or you have insufficient permissions to execute this request.`,p=!0,m=!1,f=1207,h=null;return s.response.data&&(s.response.data.code==="buttonizer_api_server_error"?f=1213:p=!1,s.response.data.code==="buttonizer_token_expired"&&(m=!0),s.response.data.data&&s.response.data.data.message&&s.response.data.data.message!==""&&(h=s.response.data.data.message),c=`${s.response.data.message} (Error code: ${s.response.data.code})`),i(c,{anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:null,action:y=>[p&&e(u,{href:`https://community.buttonizer.pro/knowledgebase/${f}`,target:"_blank",color:"secondary",children:"More information"}),m&&e(He,{onConnect:w=>{a(y),n(w.data),o(!0)},reconnect:!0,buttonProps:{color:"secondary"},buttonText:"Reconnect"}),h!==null&&e(u,{color:"secondary",onClick:()=>alert(`The response message we received was:
2
 
3
- ${h}`),children:"Debug"}),e(u,{onClick:()=>a(y),children:"Close"})]}),Promise.reject(s)})},[]),t}function Et({children:t}){return e(fe.StrictMode,{children:e(Je,{fallback:r("p",{children:["We're sorry! Our dashboard has crashed, we have been notified about the error. Please refresh the page"," ",e("a",{href:"./admin.php?page=Buttonizer",children:"or start from the beginning"}),"."]}),showDialog:!0,children:e(Ae,{theme:We,children:e(Ke,{maxSnack:3,children:e(Xe,{children:e(Lt,{children:e(Mt,{children:t})})})})})})})}const Nt="_title_ld712_1",Wt="_logo_ld712_9",Ft="_navLinks_ld712_15";var pe={title:Nt,logo:Wt,navLinks:Ft};function Ot(){const{connectionSuccesfull:t,setConnectionSuccessfull:n,hasMigrated:o}=k(),i=()=>{n(!1)};return t?r(be,{severity:"success",variant:"outlined",action:e(De,{"aria-label":"close",color:"inherit",size:"small",onClick:i,children:e(Me,{fontSize:"inherit"})}),style:{marginTop:15,background:"#edf7ed"},children:[!o&&r(x,{children:[e(Y,{children:"Buttonizer has been set up. Happy conversion \u{1F680}"}),r(d,{variant:"body1",children:["Start building by clicking the '",e("b",{children:"Edit buttons"}),"' button in the section below."]})]}),o&&r(x,{children:[e(Y,{children:"Your Buttonizer account has been connected. Happy conversion \u{1F680}"}),r(d,{variant:"body1",children:["Buttonizer should now be visible on your WordPress website. Manage your buttons by clicking the '",e("b",{children:"Edit buttons"}),"' button in the section below."]}),r(d,{variant:"body1",style:{marginTop:15},children:[e("b",{children:"Tip:"})," If you have a caching plugin active, we recommend to clear your site's cache."]})]})]}):null}function Be(t){return B("/settings",{data:t})}function Ht(){const{requestReview:t,setRequestReview:n}=k(),[o,i]=l.exports.useState(!1),[a,s]=l.exports.useState(!1),[c,p]=l.exports.useState(!1),m=()=>{n(!1)},f=()=>{c||(p(!0),Be({remindForReview:!0}).then(()=>m()).catch(()=>{}).then(()=>p(!1)))},h=()=>{c||(p(!0),Be({markAsReviewed:!0}).then(()=>m()).catch(()=>{}).then(()=>p(!1)))};return t?r(be,{severity:"info",variant:"outlined",style:{marginTop:15,background:"#e5f6fd"},children:[!o&&!a&&r(x,{children:[e(Y,{children:"Are you enjoying Buttonizer? We really hope you do!"}),e(d,{variant:"body1",children:"Would you like to review us on WordPress and share your experience? This way you support us developing new features for Buttonizer and spread the love!"}),r("div",{style:{marginTop:15},children:[e(u,{variant:"outlined",href:"https://r.buttonizer.io/review/wordpress",target:"_blank",startIcon:e(Qe,{}),style:{marginRight:15},onClick:()=>i(!0),disabled:c,children:"Yes, I like Buttonizer"}),e(u,{startIcon:e(Ze,{}),style:{marginRight:15},href:"https://r.buttonizer.io/feedback",target:"_blank",disabled:c,onClick:()=>s(!0),children:"No, send feedback"}),e("div",{style:{float:"right"},children:e(u,{disabled:c,onClick:f,children:"Remind me later"})})]})]}),(o||a)&&r(x,{children:[e(Y,{children:o?"We're really happy to hear that \u{1F389}":"We'll do better! We promise"}),o&&r(x,{children:[r(d,{variant:"body1",children:["If we can help you with anything, or you have cool idea's or great feedback,"," ",e(T,{href:"https://r.buttonizer.io/feedback",target:"_blank",color:"secondary",children:"just reach out to us"}),"! We always reply :)"]}),r(d,{variant:"body1",style:{marginTop:15},children:["If you have closed the window that just opened and you still like to review us,"," ",e(T,{href:"https://r.buttonizer.io/review/wordpress",target:"_blank",color:"secondary",children:"click this link"}),"!"]})]}),!o&&r(d,{variant:"body1",children:["If there's anything else what we can help you with,"," ",e(T,{href:"https://r.buttonizer.io/feedback",target:"_blank",color:"secondary",children:"just reach out to us"}),"! We always reply :)"]}),e("div",{style:{marginTop:15},children:e(u,{startIcon:e(et,{}),onClick:()=>{Oe.addConfetti(),n(!1),h()},disabled:c,children:o?"Celebrate in silence":"Close with confetti"})})]})]}):null}function Ut(){const{startSession:t,sessionStarting:n}=k();let o=K(),i=tt();const[a,s]=l.exports.useState(!1),c=l.exports.useRef();return r("div",{style:{marginBottom:40},children:[e(ve,{type:"wrapper",children:r(_,{container:!0,children:[r(_,{item:!0,container:!0,style:{alignItems:"center"},navigation:!0,children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/buttonizer-logo.png`,alt:"buttonizerlogo",className:pe.logo,draggable:!1}),e(d,{className:pe.title,color:"primary",children:"Buttonizer for WordPress"})]}),r(_,{item:!0,container:!0,justifyContent:"space-between",navigation:"auto",className:pe.navLinks,children:[e(u,{onClick:()=>{o("/overview")},color:i.pathname==="/overview"?"secondary":"primary",children:"Home"}),e(u,{onClick:()=>{o("/settings")},color:i.pathname==="/settings"?"secondary":"primary",children:"Settings"}),e(u,{onClick:()=>{s(!0)},ref:c,endIcon:a?e(nt,{}):e(rt,{}),color:i.pathname==="/support"?"secondary":"primary",children:"More actions"}),e(u,{variant:"contained",onClick:t,endIcon:n&&e(X,{size:20,style:{marginLeft:8}}),disabled:n,children:"Edit buttons"})]})]})}),e(Ot,{}),e(Ht,{}),e(ot,{open:a&&c.current,anchorEl:c.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{s(!1)},onClick:()=>s(!1),children:r(ne,{children:[r(de,{onClick:()=>{o("/support")},selected:i.pathname==="/support",children:[e(H,{children:e(it,{})}),e(E,{primary:"Support"})]}),r(de,{onClick:()=>{window.open("https://app.buttonizer.io/")},children:[e(H,{children:e(re,{})}),e(E,{primary:"Open Buttonizer dashboard"})]}),r(de,{onClick:()=>{window.open("https://app.buttonizer.io/account")},children:[e(H,{children:e(at,{})}),e(E,{primary:"Account Settings"})]})]})})]})}const qt="_footer_svg59_1";var jt={footer:qt};function Gt(){return r("div",{className:jt.footer,children:["Need some assistance? Get free support via our"," ",e(T,{href:"https://r.buttonizer.io/support/community?utm_source=wp-plugin-footer",target:"_blank",color:"secondary",children:"Buttonizer Community"}),". Do you have feedback?"," ",e(T,{href:"https://r.buttonizer.io/feedback?utm_source=wp-plugin-footer",target:"_blank",color:"secondary",children:"Give feedback"}),"."]})}function Yt(){return r(st,{style:{maxWidth:1100},children:[r("div",{style:{padding:"50px 0 0",height:"100%"},children:[e(Ut,{}),e(lt,{})]}),e(Gt,{})]})}const Vt="_avatar_1ciu2_5",Jt="_listItem_1ciu2_9",Kt="_secondaryInfo_1ciu2_13",Xt="_knowledgebase_1ciu2_17",Qt="_knowledgebaseText_1ciu2_24";var G={"migratePage-container":"_migratePage-container_1ciu2_1",avatar:Vt,listItem:Jt,secondaryInfo:Kt,knowledgebase:Xt,knowledgebaseText:Qt};const Zt="_buttonizerPaper_131bh_1";var en={buttonizerPaper:Zt};function Ue({children:t,containerProps:n}){return e(x,{children:r(ct,W(b({className:"migratePage-container",style:{marginTop:50,maxWidth:1130}},n),{children:[e("div",{style:{alignItems:"center",justifyContent:"center",display:"flex",marginBottom:30},children:e("img",{src:`${buttonizer_admin.assetsPath}/images/logo.png`,alt:"buttonizerlogo",style:{height:70}})}),e(ve,{className:en.buttonizerPaper,sx:{"&::before":{background:`url(${buttonizer_admin.assetsPath}/images/waves.svg)`}},children:t})]}))})}const tn="_code_1iwn6_1";var nn={code:tn};const rn=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function on({open:t,onClose:n=()=>{},onConfirm:o=()=>{}}){const i=l.exports.useRef(),a=()=>{i.current.focus(),i.current.select(),navigator.clipboard&&navigator.clipboard.writeText(i.current.value)};return r(ie,{open:t,onClose:close,TransitionComponent:rn,"aria-labelledby":"migrate-title","aria-describedby":"migrate-description",children:[e(ae,{id:"migrate-title",children:"Before you migrate"}),r(se,{children:[r(U,{id:"migrate-description",children:["It seems that you're currently using a deprecated custom JavaScript feature of Buttonizer which is not supported on Buttonizer 3.0 in favour of the advanced"," ",e(T,{href:"https://community.buttonizer.pro/knowledgebase/435",target:"_blank",color:"secondary",children:"Buttonizer JavaScript API"}),"."]}),r(U,{style:{margin:"15px 0"},children:["Please copy all the code from the block below and add it to a"," ",e(T,{href:"https://community.buttonizer.pro/knowledgebase/1011",target:"_blank",color:"secondary",children:"Headers Footers"})," ","plugin of your choice. Your click actions will stay working as they are now."]}),e("textarea",{className:nn.code,onClick:a,ref:i,readOnly:!0,children:buttonizer_admin.beforeMigrate})]}),r(le,{children:[e(u,{onClick:n,children:"Cancel"}),e(u,{color:"secondary",onClick:()=>o(!0),autoFocus:!0,children:"I am ready"})]})]})}let he=null,M=null;function an(){const t=K(),{enqueueSnackbar:n,closeSnackbar:o}=ye(),{setActionLock:i,parseAccountData:a,setConnectionSuccessfull:s,setHasMigrated:c}=k(),[p,m]=l.exports.useState(!1),[f,h]=l.exports.useState(!1),[y,w]=l.exports.useState(!1),[z,L]=l.exports.useState(!1),[P,C]=l.exports.useState(null),[R,j]=l.exports.useState(!0),A=buttonizer_admin.site,O=(I=!1)=>{if((buttonizer_admin==null?void 0:buttonizer_admin.beforeMigrate)!==null&&I!==!0){h(!0);return}if(p&&M){M.focus();return}m(!0),L(!1);const S=q(`/apps/onboard?app_origin=wordpress&site_name=${encodeURIComponent(A.name)}&domain=${encodeURIComponent(A.domain)}&email=${encodeURIComponent(A.user.email)}&first_name=${encodeURIComponent(A.user.firstName)}&last_name=${encodeURIComponent(A.user.lastName)}`);M=window.open(S,"connectPopup",`width=500,height=580,top=${window.innerHeight/2-580/2},left=${window.innerWidth/2-500/2},status=no,scrollbars=yes,resizable=no`),he=setInterval(()=>{if(!M){clearInterval(he);return}M.closed&&(clearInterval(he),M=null,m(!1))});try{M.focus()}catch{n("Could not open authorization popup. Your browser might have blocked it. Please add this site to your exception list.",{anchorOrigin:{vertical:"bottom",horizontal:"center",autoHideDuration:1e4},action:g=>[e(u,{href:"https://community.buttonizer.pro/knowledgebase/1208",target:"_blank",color:"secondary",children:"More information"}),e(u,{onClick:()=>o(g),children:"Close"})]})}},Q=()=>{y||(w(!0),C("skipping"),B("/migrate",{skip:!0}).then(({data:I})=>{document.location.href=`${buttonizer_admin.admin}?page=Buttonizer`}).catch(()=>{L(!0),w(!1)}))};if(l.exports.useEffect(()=>{const I=S=>{!S.isTrusted||S.origin!==q("")||S.data.messageType==="connect-info"&&(M.close(),C("connecting"),B("/migrate",{siteId:S.data.id,authorization:S.data.authorization,shouldMigrate:R}).then(({data:Z})=>{i("no-lock"),a(Z.data),s(!0),c(!0),t("/")}).catch(()=>{C(null),L(!0)}))};return window.addEventListener("message",I),function(){window.removeEventListener("message",I)}},[R]),P!==null)return e(ce,{text:sn(P)});const $=(I,S)=>r(V,{className:G.listItem,children:[e(Ee,{children:e(Ne,{className:G.avatar,children:e(we,{})})}),e(E,{secondary:S,secondaryTypographyProps:{className:G.secondaryInfo},primary:I})]});return r(Ue,{children:[r(u,{href:"https://community.buttonizer.pro/knowledgebase/1122-standalone-vs-wordpress",target:"_blank",type:"link-small",className:G.knowledgebase,children:[e(dt,{}),e("span",{className:G.knowledgebaseText,children:"Learn more about Buttonizer Standalone"})]}),r(_,{container:!0,style:{height:"100%"},direction:"row",children:[e(_,{item:!0,container:!0,justifyContent:"center",direction:"column",alignContent:"center",md:6,sm:12,sx:{margin:"20px 0"},children:r("div",{children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/buttonizer-logo.png`,alt:"buttonizerlogo",style:{height:50}}),e(d,{style:{fontSize:27,fontWeight:600,marginTop:30},children:"Buttonizer just got an upgrade!"}),e(d,{style:{fontSize:"1.2rem",maxWidth:"fit-content",marginTop:10},component:"div",children:"Easier to manage, faster and more features."}),e("div",{style:{marginTop:30,maxWidth:300},children:r(u,{variant:"contained",onClick:()=>{j(!0),O()},color:"secondary",size:"small",sx:{padding:"15px 30px"},children:["Start migrating",e(re,{style:{marginLeft:15}})]})}),e(d,{style:{marginTop:20,fontSize:"0.875rem",maxWidth:"fit-content"},component:"div",children:"Already using Buttonizer Standalone? Connect without migrating your buttons."}),r("div",{style:{marginTop:20,marginBottom:100,alignItems:"center",display:"flex"},children:[e(u,{variant:"outlined",size:"small",onClick:()=>{j(!1),O()},color:"secondary",sx:{padding:"10px 20px",marginRight:"10px"},children:"Connect now"}),e(u,{size:"small",onClick:Q,disabled:p,children:"Stay in old version"})]})]})}),r(_,{item:!0,md:6,sm:12,container:!0,justifyContent:"center",alignContent:"center",direction:"column",sx:{margin:"20px 0"},children:[e(d,{style:{fontSize:27,fontWeight:600,paddingLeft:15},children:"New in 3.0"}),r(ne,{size:"large",children:[$("More free styling options","Imagine what you can do now"),$("Conversion analytics (coming soon)","Privacy focused conversion analytics"),$("Now available on any platform","Try out on WordPress, Shopify, Wix and more"),$("Manage multiple sites with one account","Great for agencies & businesses with multiple sites"),$("Content Delivery Network (CDN)","Lightning fast around the world \u{1F680}"),$("And much more!")]})]})]}),e(on,{open:f,onClose:()=>h(!1),onConfirm:O})]})}function sn(t){switch(t){case"initializing":return"Initializing...";case"skipping":return"Skipping...";case"migrating":return"Migrating data..."}}function N(i){var a=i,{children:t,paperStyle:n}=a,o=Ce(a,["children","paperStyle"]);return e("div",{style:{margin:"20px 0"},children:e(ve,W(b({sx:b({"& > *":{marginTop:"20px !important",marginBottom:"20px !important"},"& > *:first-child":{marginTop:"10px !important",marginBottom:"20px !important"}},n),type:"wrapper"},o),{children:t}))})}const ln="_analytics_1650v_1";var cn={analytics:ln};function dn(){const{siteInfo:t,startSession:n,sessionStarting:o}=k();return r(x,{children:[r(N,{children:[e(d,{type:"header",color:"primary",children:"Manage your Buttonizer instance"}),e(d,{type:"content",color:"primary",children:"Welcome to your Buttonizer for WordPress dashboard. Here are a few quick-tools to manage your Buttonizer."}),e(u,{variant:"outlined",onClick:n,endIcon:o&&e(X,{size:20,style:{marginLeft:8}}),disabled:o,children:"Edit buttons"}),e(u,{style:{marginLeft:10},color:"secondary",href:q(`/sites/${t.id}`),target:"_blank",type:"link",children:"Open site settings"})]}),r(N,{className:cn.analytics,children:[r(ut,{value:0,children:[e(Se,{value:0,icon:e(J,{size:"small",label:"Coming soon"}),iconPosition:"end",label:"Analytics",size:"small",disabled:!0}),e(Se,{value:1,icon:e(J,{size:"small",label:"Coming soon"}),iconPosition:"end",label:"Conversions",size:"small",disabled:!0})]}),r(d,{type:"content",color:"primary",component:"div",children:["Buttonizer is your converison companion. We will monitor conversions made via Buttonizer for you and give you an easy-to-understand metrics. ",e("br",{}),e("b",{children:"This feature will soon be available"}),"."]}),e(u,{variant:"outlined",startIcon:e(pt,{}),disabled:!0,style:{margin:"10px 0"},children:"Open analytics"})]})]})}const un=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function pn({open:t,onClose:n=()=>{}}){var p;const{setActionLock:o}=k(),[i,a]=l.exports.useState(!1),s=()=>{i||n()},c=()=>{i||(a(!0),B("/disconnect").then(({data:m})=>{o("setup"),n()}).catch(()=>a(!1)))};return r(ie,{open:t,onClose:s,TransitionComponent:un,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[e(ae,{id:"alert-dialog-title",children:"Are you sure you want to disconnect?"}),r(se,{children:[r(U,{id:"alert-dialog-description",children:["You will disconnect your Buttonizer instance from your site"," ",e("b",{children:(p=buttonizer_admin==null?void 0:buttonizer_admin.site)==null?void 0:p.domain}),". You will be able to sign in with another account."]}),e(U,{id:"alert-dialog-description-p2",style:{marginTop:15},children:"Are you sure you want to disconnect?"})]}),r(le,{children:[e(u,{disabled:i,onClick:s,children:"Cancel"}),e(u,{disabled:i,color:"secondary",onClick:c,autoFocus:!0,children:"Disconnect"})]})]})}function hn(){const[t,n]=l.exports.useState(!1);return r(x,{children:[r(N,{children:[e(d,{type:"header",color:"primary",children:"Disconnect Buttonizer"}),e(d,{variant:"body1",color:"primary",children:"Did you create a new instance or do you want to sign in with a different account? Disconnect Buttonizer from your WordPress site."}),e(u,{variant:"outlined",onClick:()=>n(!0),children:"Disconnect"})]}),e(pn,{open:t,onClose:()=>n(!1)})]})}const mn="_table_13k7q_1";var Pe={table:mn};function gn(){const{parseAccountData:t,isPremium:n,accountData:o,siteInfo:i,planInfo:a}=k(),[s,c]=l.exports.useState(!1),[p,m]=l.exports.useState(!1),f=()=>{s||(c(!0),B("/sync").then(({data:y})=>{t(y.data),m(!0),setTimeout(()=>{m(!1)},5e3)}).catch(()=>{}).then(()=>c(!1)))},h=()=>n?e(J,{label:"PRO",color:"secondary"}):e(J,{label:"FREE"});return r(N,{children:[r(_,{container:!0,children:[e(_,{item:!0,md:6,children:r("table",{className:Pe.table,children:[e("tr",{colspan:"2",children:e("th",{children:e(d,{variant:"body1",color:"primary",style:{fontWeight:600},children:"Site information:"})})}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Account name:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:o.name})})]}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Site ID:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:i.id})})]}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Timezone:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:i.timezone})})]})]})}),e(_,{item:!0,md:6,children:r("table",{className:Pe.table,children:[e("tr",{colspan:"2",children:e("th",{children:e(d,{variant:"body1",color:"primary",style:{fontWeight:600},children:"License information:"})})}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Plan:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:a.name})})]}),a.hasPlan&&r(x,{children:[r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Subscription status:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:a.cancelled?"Cancelled":"Active"})})]}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"License status:"})}),e("td",{children:h()})]})]})]})})]}),e(d,{variant:"body2",color:"primary",children:"Did you change a button or account information in the Buttonizer dashboard and do not see the changes in the Buttonizer for WordPress plugin?"}),e(d,{variant:"body2",color:"primary",children:"Click the sync button below to retrieve the data from the Buttonizer dashboard."}),r(_,{container:!0,justifyContent:"space-between",children:[e(u,{variant:"outlined",onClick:f,disabled:s||p,endIcon:s&&e(X,{size:20,style:{marginLeft:8}})||p&&e(we,{}),children:"Sync with dashboard"}),e(u,{color:"secondary",endIcon:e(re,{}),href:q(`/sites/${i.id}`),target:"_blank",type:"link",children:"View more site info"})]})]})}const fn=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function yn({open:t,onClose:n=()=>{}}){const{setHasMigrated:o,setLegacyBackupDeleted:i}=k(),[a,s]=l.exports.useState(!1),c=()=>{a||n()};return r(ie,{open:t,onClose:c,TransitionComponent:fn,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[e(ae,{id:"alert-dialog-title",children:"Happy with the upgrade?"}),e(se,{children:e(U,{id:"alert-dialog-description",children:"Are you satiesfied with the 3.0 update? If so then you can remove the old Buttonizer data to clean up unused data in your database."})}),r(le,{children:[e(u,{disabled:a,onClick:c,children:"Cancel"}),e(u,{disabled:a,color:"secondary",onClick:()=>{a||(s(!0),B("/delete_legacy_backup").then(()=>{i(!0),o(!1),n()}).catch(()=>s(!1)))},autoFocus:!0,children:"Confirm"})]})]})}const bn=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function vn({open:t,onClose:n=()=>{}}){const[o,i]=l.exports.useState(!1),a=()=>{o||n()},s=()=>{o||(i(!0),B("/revert_legacy").then(()=>{document.location.href=`${buttonizer_admin.admin}?page=Buttonizer`}).catch(()=>i(!1)))};return o&&t?r(ht,{open:t,sx:{background:"#f0f0f1"},children:[e(mt,{styles:{body:{overflow:"hidden"}}}),e(ce,{text:"Reverting..."})]}):r(ie,{open:t,onClose:a,TransitionComponent:bn,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[e(ae,{id:"alert-dialog-title",children:"Go back Buttonizer version 2.x"}),e(se,{children:r(U,{id:"alert-dialog-description",children:["Don't like the changes in the 3.0 update? Did you perhaps encounter any issues or have any feedback? Please let us know so that we may improve it in the future."," ",e(T,{color:"secondary",href:"mailto:contact@buttonizer.pro",children:"contact@buttonizer.pro"})]})}),r(le,{children:[e(u,{disabled:o,onClick:a,children:"Cancel"}),e(u,{disabled:o,color:"secondary",onClick:s,autoFocus:!0,children:"I am sure"})]})]})}function wn(){const[t,n]=l.exports.useState(!1),[o,i]=l.exports.useState(!1);return r(x,{children:[r(N,{children:[e(d,{type:"header",color:"primary",children:"Remove unused 2.x data"}),e(d,{variant:"body1",color:"primary",children:"Remove the old Buttonizer data in your database."}),e(u,{variant:"outlined",onClick:()=>n(!0),children:"Remove 2.x data"}),e(d,{type:"header",color:"primary",children:"Go back to Buttonizer version 2.x"}),e(d,{variant:"body1",color:"primary",children:"Don't like the changes in the new version?"}),e(u,{variant:"outlined",onClick:()=>i(!0),children:"Return to 2.x"})]}),e(yn,{open:t,onClose:()=>n(!1)}),e(vn,{open:o,onClose:()=>i(!1)})]})}const kn="_listItem_8c466_1",_n="_selectContainer_8c466_5";var $e={listItem:kn,selectContainer:_n};function zn(t,n){const o=[];return t||(t=[]),n.forEach(i=>{(t.indexOf(i.id)!==-1||i.id==="administrator")&&o.push(i)}),o}function Cn({additionalPermissions:t,setAdditionalPermissions:n,saving:o=!1}){const i=window.buttonizer_admin.available_roles,[a,s]=l.exports.useState(zn(t,i)),[c,p]=l.exports.useState(!1),m=f=>{const h=[];f.forEach(y=>{y.id!=="administrator"&&h.push(y.id)}),n(h)};return r(V,{disableGutters:!0,className:$e.listItem,children:[e(H,{children:e(gt,{})}),e(E,{primary:"Permissions",secondary:"You can grant more roles to access the Buttonizer settings who are not an administrator."}),e("div",{className:$e.selectContainer,children:e(ft,{multiple:!0,size:"small",disableCloseOnSelect:!0,disableClearable:!0,options:i.filter(f=>f.id!=="guest"),filterSelectedOptions:!0,getOptionLabel:f=>f.name,value:a,style:{marginTop:10},fullWidth:!0,onOpen:()=>p(!0),onClose:()=>{p(!1),m(a)},loading:o,onChange:(f,h)=>{h.length!=0&&(s(h),c||m(h))},renderTags:(f,h)=>f.map((y,w)=>e(J,W(b({label:y.name},h({index:w})),{disabled:y.id==="administrator"}))),noOptionsText:"Role not found",renderInput:f=>e(yt,W(b({},f),{variant:"outlined",label:"Select roles",placeholder:"Select one or more items",disabled:o,InputProps:W(b({},f.InputProps),{"data-testid":"pagerule:autocomplete-input"}),helperText:e(T,{href:"https://community.buttonizer.pro/knowledgebase/507",target:"_blank",children:"Need help? Learn how to use Permissions."})}))})})]})}function xn(){const[t,n]=l.exports.useState(window.buttonizer_admin.settings),[o,i]=l.exports.useState(!1),[a,s]=l.exports.useState(!1),[c,p]=l.exports.useState(window.buttonizer_admin.settings.adminTopBarButtonEnabled),[m,f]=l.exports.useState(window.buttonizer_admin.settings.canSendErrors),[h,y]=l.exports.useState(window.buttonizer_admin.settings.accessRoles),w=()=>{a||(s(!0),B("/settings",{data:{admin_top_bar_show_button:c,can_send_errors:m,additional_permissions:h}}).then(()=>{}).catch(()=>{}).then(()=>{n({adminTopBarButtonEnabled:c,canSendErrors:m,accessRoles:h}),i(!1),s(!1)}))};return l.exports.useEffect(()=>{i(t.adminTopBarButtonEnabled!==c||t.canSendErrors!==m||t.accessRoles!==h)},[c,m,h]),r(N,{children:[e(d,{type:"header",color:"primary",children:"Preferences"}),r(ne,{disablePadding:!0,dense:!0,children:[r(V,{disableGutters:!0,children:[e(H,{children:e(bt,{})}),e(E,{primary:"Show admin top bar",secondary:"Hide Buttonizer in the admin top bar by disabling this setting.",onClick:()=>{a||p(!c)}}),e(Te,{edge:"end",color:"primary",checked:c,onChange:z=>p(z.target.checked),disabled:a})]}),r(V,{disableGutters:!0,children:[e(H,{children:e(vt,{})}),e(E,{primary:"Automatic error logging and crash reporting",secondary:"Enable automatic error logging and crash reporting in order to help us solve issues within Buttonizer! All data is anonymized automatically.",onClick:()=>{a||f(!m)}}),e(Te,{edge:"end",color:"primary",checked:m,onChange:z=>f(z.target.checked),disabled:a})]}),e(Cn,{saving:a,additionalPermissions:h,setAdditionalPermissions:y}),e(u,{variant:"contained",onClick:w,disabled:!o||a,endIcon:a&&e(X,{size:20,style:{marginLeft:8}}),style:{marginTop:15},children:"Save changes"})]})]})}function Sn(){const{setLegacyBackupDeleted:t}=k();return r(be,{severity:"success",variant:"outlined",action:e(De,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{t(!1)},children:e(Me,{fontSize:"inherit"})}),style:{marginTop:15,background:"#edf7ed"},children:[e(Y,{children:"You have deleted your old data."}),"Have fun with the new version of Buttonizer! :)"]})}function Tn(){const{hasMigrated:t,legacyBackupDeleted:n}=k();return r(x,{children:[e(xn,{}),e(gn,{}),e(hn,{}),t&&window.buttonizer_admin.isAdmin==="1"&&e(wn,{}),n&&e(Sn,{})]})}const Bn="_avatar_yq9q0_1",Pn="_listItem_yq9q0_5",$n="_secondaryInfo_yq9q0_9";var me={avatar:Bn,listItem:Pn,secondaryInfo:$n};function In(){const t=K(),{parseAccountData:n,setConnectionSuccessfull:o,setActionLock:i}=k(),[a,s]=l.exports.useState(!1);if(a)return e(ce,{text:"Connecting..."});const c=(p,m)=>r(V,{className:me.listItem,children:[e(Ee,{children:e(Ne,{className:me.avatar,children:e(we,{})})}),e(E,{secondary:m,secondaryTypographyProps:{className:me.secondaryInfo},primary:p})]});return e(Ue,{children:r(_,{container:!0,style:{height:"100%"},direction:"row",children:[e(_,{item:!0,container:!0,justifyContent:"center",direction:"column",alignContent:"center",md:6,sm:12,sx:{margin:"20px 0"},children:r("div",{children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/buttonizer-logo.png`,alt:"buttonizerlogo",style:{height:50}}),e(d,{style:{fontSize:27,fontWeight:600,marginTop:30},children:"Buttonizer has been installed,"}),e(d,{style:{fontSize:25},children:"you are ready to make some buttons!"}),r("div",{style:{marginTop:30,maxWidth:300},children:[e(He,{buttonProps:{variant:"contained",size:"large",color:"secondary",endIcon:e(re,{}),sx:{padding:"15px 30px"}},buttonText:"Go to your dashboard",onConnect:p=>{s(!1),i("no-lock"),n(p.data),o(!0),t("/")},onLoading:p=>s(p)}),e(d,{style:{fontSize:15,marginTop:20,marginBottom:60},children:"Go to your dashboard to create, manage and edit your buttons."})]})]})}),r(_,{container:!0,justifyContent:"center",alignContent:"center",direction:"column",item:!0,md:6,sm:12,sx:{margin:"20px 0"},children:[e(d,{style:{fontSize:27,fontWeight:600},children:"This is Buttonizer"}),r(ne,{size:"large",children:[c("WhatsApp Button"),c("Facebook messenger"),c("Social media sharing"),c("Navigate with URL"),c("Open pop up"),c("And many more options!")]})]})]})})}const Ln="_helpContainer_jsvok_1",Rn="_cardButton_jsvok_5",An="_helpContainerText_jsvok_33";var te={helpContainer:Ln,cardButton:Rn,helpContainerText:An};function Dn(){const t=({imgSrc:n,href:o,title:i,description:a,button:s="Learn more"})=>e(wt,{children:e(kt,{href:`${o}?utm_source=wp-plugin-support`,type:"link",target:"_blank",className:te.cardButton,children:r(_t,{className:te.cardContent,children:[e("img",{src:n,alt:"Knowledge base",draggable:!1}),e(d,{variant:"h5",children:i}),e(d,{className:te.helpContainerText,color:"textSecondary",component:"div",children:a}),e(u,{endIcon:e(zt,{}),color:"secondary",children:s})]})})});return r("div",{children:[r(N,{children:[e(d,{color:"primary",type:"header",children:"Need some help?"}),e(d,{type:"content",color:"primary",children:"Do you need some help? We can help you with everything! Check out our Buttonizer Community, knowledge base or we can help you with our support."})]}),r("div",{className:te.helpContainer,children:[e(t,{imgSrc:`${buttonizer_admin.assetsPath}/images/support/knowledge-base.svg`,title:"Knowledge base",description:"Learn how to use our application like a pro",href:"https://r.buttonizer.io/support/knowledgebase"}),e(t,{imgSrc:`${buttonizer_admin.assetsPath}/images/support/community.svg`,title:"Forums",description:"Give and Get help from your peers and our team",href:"https://r.buttonizer.io/support/community"}),e(t,{imgSrc:`${buttonizer_admin.assetsPath}/images/support/tickets.svg`,title:"Tickets",description:"Need support that requires privacy? Submit a private ticket",href:"https://r.buttonizer.io/support/tickets"})]})]})}function Mn(){return r(N,{children:[e(d,{type:"header",color:"primary",children:"Oh no! Page not found :("}),r(d,{type:"body1",color:"primary",children:["Sorry about that. If we linked to something wrong in our plugin, please let us know by giving us feedback"," ",e(T,{href:"https://community.buttonizer.pro/",target:"_blank",color:"secondary",children:"on our Buttonizer Community!"})]}),e(u,{component:Ct,to:"/",variant:"outlined",type:"link",children:"Back to overview"})]})}const En={blogs:"wp/v2/posts?_fields[]=title&_fields[]=id",pages:"wp/v2/pages?_fields[]=title&_fields[]=id",categories:"wp/v2/categories?_fields[]=name&_fields[]=id"};function Nn(t,n){if(t==="roles"){n(window.buttonizer_admin.available_roles);return}return ge({url:`${buttonizer_admin.api}${En[t]}&per_page=100`,method:"GET",headers:{"X-WP-Nonce":buttonizer_admin.nonce}}).then(({data:o})=>{n(o.map(({id:i,title:a,name:s=null})=>{var c;return{id:i,name:(c=a==null?void 0:a.rendered)!=null?c:s}}))}).catch(()=>{})}const Wn="_iframe_13azj_1";var Fn={iframe:Wn};const Ie=(t,n,o,i={})=>{t.contentWindow.postMessage({eventType:"buttonizer",messageType:o,message:i},n)};function Le(){const t=K(),n=l.exports.useRef(),{cachedEditorSession:o,setCachedEditorSession:i,sessionStarting:a,startSession:s}=k();return l.exports.useEffect(()=>{o===null&&!a&&s()},[o]),l.exports.useEffect(()=>{const c=({data:p,origin:m})=>{const{eventType:f,messageType:h,message:y}=p;f==="buttonizer"&&(h==="connection"&&y==="ready"&&Ie(n.current,m,"platform","wordpress"),h==="close_editor"&&t("/"),h==="request_data"&&Nn(y,w=>{Ie(n.current,m,`reply_${y}`,w)}))};return window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c),i(null)}},[]),!o||a?e(ce,{text:"Starting editor session..."}):e("iframe",{src:Dt(o),className:Fn.iframe,ref:n,referrerPolicy:"origin"})}function On(){const{actionLock:t}=k();return t==="editor"?e(Le,{}):t==="migration"?e(an,{}):t==="setup"?e(In,{}):e(xt,{children:r(F,{path:"/",element:e(Yt,{}),children:[e(F,{path:"/",element:e(St,{to:"/overview",replace:!0})}),e(F,{path:"/overview",element:e(dn,{})}),e(F,{path:"/settings",element:e(Tn,{})}),e(F,{path:"/support",element:e(Dn,{})}),e(F,{path:"/editor",element:e(Le,{})}),e(F,{path:"*",element:e(Mn,{})})]})})}const Hn="https://84c09e1dec414d9aa9a7663511fb3027@tracker.buttonizer.pro/7",Un={}.VITE_APP_VERSION;Tt({dsn:Hn,integrations:[new Bt],release:Un,environment:"development",tracesSampleRate:1,beforeSend:t=>{var n;return(n=buttonizer_admin==null?void 0:buttonizer_admin.settings)!=null&&n.canSendErrors?t:null}});Pt.createRoot(document.getElementById("root")).render(e($t,{injectFirst:!0,children:e(Ae,{theme:We,children:e(Et,{children:e(On,{})})})}));
1
  var qe=Object.defineProperty,je=Object.defineProperties;var Ge=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var _e=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable;var ke=(t,n,o)=>n in t?qe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,b=(t,n)=>{for(var o in n||(n={}))_e.call(n,o)&&ke(t,o,n[o]);if(ee)for(var o of ee(n))ze.call(n,o)&&ke(t,o,n[o]);return t},W=(t,n)=>je(t,Ge(n));var Ce=(t,n)=>{var o={};for(var i in t)_e.call(t,i)&&n.indexOf(i)<0&&(o[i]=t[i]);if(t!=null&&ee)for(var i of ee(t))n.indexOf(i)<0&&ze.call(t,i)&&(o[i]=t[i]);return o};import{c as Re,a as xe,b as ge,R as fe,u as K,r as l,j as e,d as r,J as Ye,e as ye,F as x,L as Ve,C as X,B as u,E as Je,T as Ae,S as Ke,H as Xe,A as be,I as De,f as Me,g as Y,h as d,i as Qe,k as Ze,l as T,m as et,n as tt,P as ve,G as _,o as nt,p as rt,q as ot,s as ne,t as de,v as H,w as it,x as E,y as re,z as at,D as st,O as lt,K as ct,M as oe,N as ie,Q as ae,U as se,V as U,W as le,X as dt,Y as V,Z as Ee,_ as Ne,$ as we,a0 as ut,a1 as Se,a2 as J,a3 as pt,a4 as ht,a5 as mt,a6 as gt,a7 as ft,a8 as yt,a9 as bt,aa as Te,ab as vt,ac as wt,ad as kt,ae as _t,af as zt,ag as Ct,ah as xt,ai as F,aj as St,ak as Tt,al as Bt,am as Pt,an as $t}from"./vendor.68b22057.js";const It=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function o(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerpolicy&&(s.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?s.credentials="include":a.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(a){if(a.ep)return;a.ep=!0;const s=o(a);fetch(a.href,s)}};It();let v=Re({palette:{primary:{main:"#2D7789",contrastText:"#FFFFFF"},secondary:{main:"#f08419",contrastText:"#FFFFFF"},white:{main:"#FFFFFF",contrastText:"#2D7789"},black:{main:"#111111",contrastText:"#2D7789"}},typography:{fontFamily:["BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue","sans-serif"].join(",")},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,navigation:1090}}});v=Re(v,{components:{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:v.palette.secondary.main,backgroundColor:xe(v.palette.secondary.main,.08),"&:hover":{backgroundColor:xe(v.palette.secondary.main,.12)},"& .MuiListItemIcon-root":{color:v.palette.secondary.main}}}}},MuiLink:{styleOverrides:{root:{textDecoration:"none","&:hover":{textDecoration:"underline"}}}},MuiButton:{styleOverrides:{root:{borderRadius:50,padding:"8px 18px"}},variants:[{props:{type:"link"},style:({ownerState:t})=>b({},t.variant==="contained"?{color:v.palette[t.color].contrastText,"&:focus":{outline:"unset",boxShadow:"unset",color:v.palette[t.color].contrastText},"&:hover":{color:v.palette[t.color].contrastText}}:{color:v.palette[t.color].main,"&:focus":{outline:"unset",boxShadow:"unset",color:v.palette[t.color].main},"&:hover":{color:v.palette[t.color].main}})},{props:{type:"link-small"},style:{padding:"5px 5px",textTransform:"none",minWidth:35,color:v.palette.primary.main,"&:focus":{outline:"unset",boxShadow:"unset",color:v.palette.primary.main},"&:hover":{color:v.palette.primary.main}}}]},MuiPaper:{styleOverrides:{root:{borderRadius:10,position:"relative"}},variants:[{props:{type:"wrapper"},style:{padding:"15px 30px"}}]},MuiTypography:{variants:[{props:{type:"header"},style:{fontSize:"1rem",fontWeight:600}},{props:{type:"content"},style:{fontSize:"1em"}}]},MuiTab:{variants:[{props:{size:"small"},style:{textTransform:"unset",minHeight:42}}]},MuiList:{variants:[{props:{size:"large"},style:{"& .MuiListItem-root":{padding:"5px 16px"},"& .MuiAvatar-root":{width:30,height:30},"& .MuiTypography-root":{fontSize:"1.2rem"}}}]}}});var We=v;function B(t,n={},o="POST"){return ge({url:`${buttonizer_admin.api}buttonizer${t}?nonce=${buttonizer_admin.nonce}`,method:o,data:n,headers:{"X-WP-Nonce":buttonizer_admin.nonce}})}const Fe=fe.createContext(),Lt=t=>{const n=K(),[o,i]=l.exports.useState("no-lock"),[a,s]=l.exports.useState(!1),[c,p]=l.exports.useState(!1),[m,f]=l.exports.useState(!1),[h,y]=l.exports.useState(!1),[w,z]=l.exports.useState({}),[L,P]=l.exports.useState({}),[C,R]=l.exports.useState({}),[j,A]=l.exports.useState(!1);l.exports.useState(null);const[O,Q]=l.exports.useState(null),$=g=>{z({name:g==null?void 0:g.name,id:g==null?void 0:g.uid}),P({id:g==null?void 0:g.site_id,timezone:g==null?void 0:g.site_timezone,isPremium:g==null?void 0:g.site_licensed}),R({name:g==null?void 0:g.plan_name,id:g==null?void 0:g.plan_id,hasPlan:(g==null?void 0:g.plan_id)!==null,cancelled:g==null?void 0:g.plan_cancelled})},I=()=>{j||(O!==null&&n("/editor"),A(!0),B("/editor_start_session").then(({data:g})=>{Q(g),n("/editor")}).catch(()=>{}).then(()=>A(!1)))};l.exports.useEffect(()=>{i(window.buttonizer_admin.actionLock),s(!!window.buttonizer_admin.hasMigrated),f(!!window.buttonizer_admin.requestReview),$(window.buttonizer_admin.account)},[]);const S={actionLock:o,hasMigrated:a,legacyBackupDeleted:c,connectionSuccesfull:h,isPremium:L.isPremium,accountData:w,siteInfo:L,planInfo:C,sessionStarting:j,cachedEditorSession:O,requestReview:m},Z={setActionLock:i,setHasMigrated:s,setLegacyBackupDeleted:p,parseAccountData:$,setConnectionSuccessfull:y,setCachedEditorSession:Q,setRequestReview:f,startSession:I};return e(Fe.Provider,b({value:b(b({},S),Z)},t))},k=()=>{const t=fe.useContext(Fe);if(t===void 0)throw new Error("useApp must be used within a AppProvider");return t},Rt="https://app.buttonizer.io",At="https://editor.buttonizer.io/site/";function q(t="/"){return Rt+t}function Dt(t){return`${At}${t.redirect_id}#auth-token=${t.token}`}function ce({text:t="Loading..."}){return r("div",{className:"buzzy-animation",children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/icon-animated.svg`})," ",e("span",{children:t})]})}const Oe=new Ye;let ue=null,D=null;function He({buttonProps:t,buttonText:n="Connect",onConnect:o,onLoading:i=()=>{},reconnect:a=!1}){const{enqueueSnackbar:s,closeSnackbar:c}=ye(),[p,m]=l.exports.useState(!1),[f,h]=l.exports.useState(!1),[y,w]=l.exports.useState(!1),z=buttonizer_admin.site,L=()=>{if(p&&D){D.focus();return}m(!0),h(!1);const P=q(`/apps/onboard?app_origin=wordpress&site_name=${encodeURIComponent(z.name)}&domain=${encodeURIComponent(z.domain)}&email=${encodeURIComponent(z.user.email)}&first_name=${encodeURIComponent(z.user.firstName)}&last_name=${encodeURIComponent(z.user.lastName)}`);D=window.open(P,"connectPopup",`width=500,height=580,top=${window.innerHeight/2-580/2},left=${window.innerWidth/2-500/2},status=no,scrollbars=yes,resizable=no`);try{D.focus()}catch{s("Could not open authorization popup. Your browser might have blocked it. Please add this site to your exception list.",{anchorOrigin:{vertical:"bottom",horizontal:"center",autoHideDuration:1e4},action:R=>[e(u,{href:"https://community.buttonizer.pro/knowledgebase/1208",target:"_blank",color:"secondary",children:"More information"}),e(u,{onClick:()=>c(R),children:"Close"})]})}ue=setInterval(()=>{if(!D){clearInterval(ue);return}D.closed&&(clearInterval(ue),D=null,m(!1))})};return l.exports.useEffect(()=>{const P=C=>{!C.isTrusted||C.origin!==q("")||C.data.messageType==="connect-info"&&(D.close(),w(!0),i(!0),B("/connect",{siteId:C.data.id,authorization:C.data.authorization,reconnect:a}).then(({data:R})=>{Oe.addConfetti(),o(R)}).catch(()=>{w(!1),i(!1),h(!0)}))};return window.addEventListener("message",P),function(){window.removeEventListener("message",P)}},[]),e(x,{children:e(Ve,W(b({onClick:L,loading:y,loadingIndicator:e(X,{size:20,style:{color:"white"}})},t),{children:n}))})}function Mt({children:t}){const{parseAccountData:n,setConnectionSuccessfull:o}=k(),{enqueueSnackbar:i,closeSnackbar:a}=ye();return l.exports.useEffect(()=>{ge.interceptors.response.use(s=>s,s=>{let c=`Oops, something went wrong. Error status ${s.response.status} (${s.response.statusText}). Your webserver might be unable to handle this request, there's an issue with your WordPress instance or you have insufficient permissions to execute this request.`,p=!0,m=!1,f=1207,h=null;return s.response.data&&(s.response.data.code==="buttonizer_api_server_error"?f=1213:p=!1,s.response.data.code==="buttonizer_token_expired"&&(m=!0),s.response.data.data&&s.response.data.data.message&&s.response.data.data.message!==""&&(h=s.response.data.data.message),c=`${s.response.data.message} (Error code: ${s.response.data.code})`),i(c,{anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:null,action:y=>[p&&e(u,{href:`https://community.buttonizer.pro/knowledgebase/${f}`,target:"_blank",color:"secondary",children:"More information"}),m&&e(He,{onConnect:w=>{a(y),n(w.data),o(!0)},reconnect:!0,buttonProps:{color:"secondary"},buttonText:"Reconnect"}),h!==null&&e(u,{color:"secondary",onClick:()=>alert(`The response message we received was:
2
 
3
+ ${h}`),children:"Debug"}),e(u,{onClick:()=>a(y),children:"Close"})]}),Promise.reject(s)})},[]),t}function Et({children:t}){return e(fe.StrictMode,{children:e(Je,{fallback:r("p",{children:["We're sorry! Our dashboard has crashed, we have been notified about the error. Please refresh the page"," ",e("a",{href:"./admin.php?page=Buttonizer",children:"or start from the beginning"}),"."]}),showDialog:!0,children:e(Ae,{theme:We,children:e(Ke,{maxSnack:3,children:e(Xe,{children:e(Lt,{children:e(Mt,{children:t})})})})})})})}const Nt="_title_ld712_1",Wt="_logo_ld712_9",Ft="_navLinks_ld712_15";var pe={title:Nt,logo:Wt,navLinks:Ft};function Ot(){const{connectionSuccesfull:t,setConnectionSuccessfull:n,hasMigrated:o}=k(),i=()=>{n(!1)};return t?r(be,{severity:"success",variant:"outlined",action:e(De,{"aria-label":"close",color:"inherit",size:"small",onClick:i,children:e(Me,{fontSize:"inherit"})}),style:{marginTop:15,background:"#edf7ed"},children:[!o&&r(x,{children:[e(Y,{children:"Buttonizer has been set up. Happy conversion \u{1F680}"}),r(d,{variant:"body1",children:["Start building by clicking the '",e("b",{children:"Edit buttons"}),"' button in the section below."]})]}),o&&r(x,{children:[e(Y,{children:"Your Buttonizer account has been connected. Happy conversion \u{1F680}"}),r(d,{variant:"body1",children:["Buttonizer should now be visible on your WordPress website. Manage your buttons by clicking the '",e("b",{children:"Edit buttons"}),"' button in the section below."]}),r(d,{variant:"body1",style:{marginTop:15},children:[e("b",{children:"Tip:"})," If you have a caching plugin active, we recommend to clear your site's cache."]})]})]}):null}function Be(t){return B("/settings",{data:t})}function Ht(){const{requestReview:t,setRequestReview:n}=k(),[o,i]=l.exports.useState(!1),[a,s]=l.exports.useState(!1),[c,p]=l.exports.useState(!1),m=()=>{n(!1)},f=()=>{c||(p(!0),Be({remindForReview:!0}).then(()=>m()).catch(()=>{}).then(()=>p(!1)))},h=()=>{c||(p(!0),Be({markAsReviewed:!0}).then(()=>m()).catch(()=>{}).then(()=>p(!1)))};return t?r(be,{severity:"info",variant:"outlined",style:{marginTop:15,background:"#e5f6fd"},children:[!o&&!a&&r(x,{children:[e(Y,{children:"Are you enjoying Buttonizer? We really hope you do!"}),e(d,{variant:"body1",children:"Would you like to review us on WordPress and share your experience? This way you support us developing new features for Buttonizer and spread the love!"}),r("div",{style:{marginTop:15},children:[e(u,{variant:"outlined",href:"https://r.buttonizer.io/review/wordpress",target:"_blank",startIcon:e(Qe,{}),style:{marginRight:15},onClick:()=>i(!0),disabled:c,children:"Yes, I like Buttonizer"}),e(u,{startIcon:e(Ze,{}),style:{marginRight:15},href:"https://r.buttonizer.io/feedback",target:"_blank",disabled:c,onClick:()=>s(!0),children:"No, send feedback"}),e("div",{style:{float:"right"},children:e(u,{disabled:c,onClick:f,children:"Remind me later"})})]})]}),(o||a)&&r(x,{children:[e(Y,{children:o?"We're really happy to hear that \u{1F389}":"We'll do better! We promise"}),o&&r(x,{children:[r(d,{variant:"body1",children:["If we can help you with anything, or you have cool idea's or great feedback,"," ",e(T,{href:"https://r.buttonizer.io/feedback",target:"_blank",color:"secondary",children:"just reach out to us"}),"! We always reply :)"]}),r(d,{variant:"body1",style:{marginTop:15},children:["If you have closed the window that just opened and you still like to review us,"," ",e(T,{href:"https://r.buttonizer.io/review/wordpress",target:"_blank",color:"secondary",children:"click this link"}),"!"]})]}),!o&&r(d,{variant:"body1",children:["If there's anything else what we can help you with,"," ",e(T,{href:"https://r.buttonizer.io/feedback",target:"_blank",color:"secondary",children:"just reach out to us"}),"! We always reply :)"]}),e("div",{style:{marginTop:15},children:e(u,{startIcon:e(et,{}),onClick:()=>{Oe.addConfetti(),n(!1),h()},disabled:c,children:o?"Celebrate in silence":"Close with confetti"})})]})]}):null}function Ut(){const{startSession:t,sessionStarting:n}=k();let o=K(),i=tt();const[a,s]=l.exports.useState(!1),c=l.exports.useRef();return r("div",{style:{marginBottom:40},children:[e(ve,{type:"wrapper",children:r(_,{container:!0,children:[r(_,{item:!0,container:!0,style:{alignItems:"center"},navigation:!0,children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/buttonizer-logo.png`,alt:"buttonizerlogo",className:pe.logo,draggable:!1}),e(d,{className:pe.title,color:"primary",children:"Buttonizer for WordPress"})]}),r(_,{item:!0,container:!0,justifyContent:"space-between",navigation:"auto",className:pe.navLinks,children:[e(u,{onClick:()=>{o("/overview")},color:i.pathname==="/overview"?"secondary":"primary",children:"Home"}),e(u,{onClick:()=>{o("/settings")},color:i.pathname==="/settings"?"secondary":"primary",children:"Settings"}),e(u,{onClick:()=>{s(!0)},ref:c,endIcon:a?e(nt,{}):e(rt,{}),color:i.pathname==="/support"?"secondary":"primary",children:"More actions"}),e(u,{variant:"contained",onClick:t,endIcon:n&&e(X,{size:20,style:{marginLeft:8}}),disabled:n,children:"Edit buttons"})]})]})}),e(Ot,{}),e(Ht,{}),e(ot,{open:a&&c.current,anchorEl:c.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:()=>{s(!1)},onClick:()=>s(!1),children:r(ne,{children:[r(de,{onClick:()=>{o("/support")},selected:i.pathname==="/support",children:[e(H,{children:e(it,{})}),e(E,{primary:"Support"})]}),r(de,{onClick:()=>{window.open("https://app.buttonizer.io/")},children:[e(H,{children:e(re,{})}),e(E,{primary:"Open Buttonizer dashboard"})]}),r(de,{onClick:()=>{window.open("https://app.buttonizer.io/account")},children:[e(H,{children:e(at,{})}),e(E,{primary:"Account Settings"})]})]})})]})}const qt="_footer_svg59_1";var jt={footer:qt};function Gt(){return r("div",{className:jt.footer,children:["Need some assistance? Get free support via our"," ",e(T,{href:"https://r.buttonizer.io/support/community?utm_source=wp-plugin-footer",target:"_blank",color:"secondary",children:"Buttonizer Community"}),". Do you have feedback?"," ",e(T,{href:"https://r.buttonizer.io/feedback?utm_source=wp-plugin-footer",target:"_blank",color:"secondary",children:"Give feedback"}),"."]})}function Yt(){return r(st,{style:{maxWidth:1100},children:[r("div",{style:{padding:"50px 0 0",height:"100%"},children:[e(Ut,{}),e(lt,{})]}),e(Gt,{})]})}const Vt="_avatar_1ciu2_5",Jt="_listItem_1ciu2_9",Kt="_secondaryInfo_1ciu2_13",Xt="_knowledgebase_1ciu2_17",Qt="_knowledgebaseText_1ciu2_24";var G={"migratePage-container":"_migratePage-container_1ciu2_1",avatar:Vt,listItem:Jt,secondaryInfo:Kt,knowledgebase:Xt,knowledgebaseText:Qt};const Zt="_buttonizerPaper_131bh_1";var en={buttonizerPaper:Zt};function Ue({children:t,containerProps:n}){return e(x,{children:r(ct,W(b({className:"migratePage-container",style:{marginTop:50,maxWidth:1130}},n),{children:[e("div",{style:{alignItems:"center",justifyContent:"center",display:"flex",marginBottom:30},children:e("img",{src:`${buttonizer_admin.assetsPath}/images/logo.png`,alt:"buttonizerlogo",style:{height:70}})}),e(ve,{className:en.buttonizerPaper,sx:{"&::before":{background:`url(${buttonizer_admin.assetsPath}/images/waves.svg)`}},children:t})]}))})}const tn="_code_1iwn6_1";var nn={code:tn};const rn=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function on({open:t,onClose:n=()=>{},onConfirm:o=()=>{}}){const i=l.exports.useRef(),a=()=>{i.current.focus(),i.current.select(),navigator.clipboard&&navigator.clipboard.writeText(i.current.value)};return r(ie,{open:t,onClose:close,TransitionComponent:rn,"aria-labelledby":"migrate-title","aria-describedby":"migrate-description",children:[e(ae,{id:"migrate-title",children:"Before you migrate"}),r(se,{children:[r(U,{id:"migrate-description",children:["It seems that you're currently using a deprecated custom JavaScript feature of Buttonizer which is not supported on Buttonizer 3.0 in favour of the advanced"," ",e(T,{href:"https://community.buttonizer.pro/knowledgebase/435",target:"_blank",color:"secondary",children:"Buttonizer JavaScript API"}),"."]}),r(U,{style:{margin:"15px 0"},children:["Please copy all the code from the block below and add it to a"," ",e(T,{href:"https://community.buttonizer.pro/knowledgebase/1011",target:"_blank",color:"secondary",children:"Headers Footers"})," ","plugin of your choice. Your click actions will stay working as they are now."]}),e("textarea",{className:nn.code,onClick:a,ref:i,readOnly:!0,children:buttonizer_admin.beforeMigrate})]}),r(le,{children:[e(u,{onClick:n,children:"Cancel"}),e(u,{color:"secondary",onClick:()=>o(!0),autoFocus:!0,children:"I am ready"})]})]})}let he=null,M=null;function an(){const t=K(),{enqueueSnackbar:n,closeSnackbar:o}=ye(),{setActionLock:i,parseAccountData:a,setConnectionSuccessfull:s,setHasMigrated:c}=k(),[p,m]=l.exports.useState(!1),[f,h]=l.exports.useState(!1),[y,w]=l.exports.useState(!1),[z,L]=l.exports.useState(!1),[P,C]=l.exports.useState(null),[R,j]=l.exports.useState(!0),A=buttonizer_admin.site,O=(I=!1)=>{if((buttonizer_admin==null?void 0:buttonizer_admin.beforeMigrate)!==null&&I!==!0){h(!0);return}if(p&&M){M.focus();return}m(!0),L(!1);const S=q(`/apps/onboard?app_origin=wordpress&site_name=${encodeURIComponent(A.name)}&domain=${encodeURIComponent(A.domain)}&email=${encodeURIComponent(A.user.email)}&first_name=${encodeURIComponent(A.user.firstName)}&last_name=${encodeURIComponent(A.user.lastName)}`);M=window.open(S,"connectPopup",`width=500,height=580,top=${window.innerHeight/2-580/2},left=${window.innerWidth/2-500/2},status=no,scrollbars=yes,resizable=no`),he=setInterval(()=>{if(!M){clearInterval(he);return}M.closed&&(clearInterval(he),M=null,m(!1))});try{M.focus()}catch{n("Could not open authorization popup. Your browser might have blocked it. Please add this site to your exception list.",{anchorOrigin:{vertical:"bottom",horizontal:"center",autoHideDuration:1e4},action:g=>[e(u,{href:"https://community.buttonizer.pro/knowledgebase/1208",target:"_blank",color:"secondary",children:"More information"}),e(u,{onClick:()=>o(g),children:"Close"})]})}},Q=()=>{y||(w(!0),C("skipping"),B("/migrate",{skip:!0}).then(({data:I})=>{document.location.href=`${buttonizer_admin.admin}?page=Buttonizer`}).catch(()=>{L(!0),w(!1)}))};if(l.exports.useEffect(()=>{const I=S=>{!S.isTrusted||S.origin!==q("")||S.data.messageType==="connect-info"&&(M.close(),C("connecting"),B("/migrate",{siteId:S.data.id,authorization:S.data.authorization,shouldMigrate:R}).then(({data:Z})=>{i("no-lock"),a(Z.data),s(!0),c(!0),t("/")}).catch(()=>{C(null),L(!0)}))};return window.addEventListener("message",I),function(){window.removeEventListener("message",I)}},[R]),P!==null)return e(ce,{text:sn(P)});const $=(I,S)=>r(V,{className:G.listItem,children:[e(Ee,{children:e(Ne,{className:G.avatar,children:e(we,{})})}),e(E,{secondary:S,secondaryTypographyProps:{className:G.secondaryInfo},primary:I})]});return r(Ue,{children:[r(u,{href:"https://community.buttonizer.pro/knowledgebase/1122-standalone-vs-wordpress",target:"_blank",type:"link-small",className:G.knowledgebase,children:[e(dt,{}),e("span",{className:G.knowledgebaseText,children:"Learn more about Buttonizer Standalone"})]}),r(_,{container:!0,style:{height:"100%"},direction:"row",children:[e(_,{item:!0,container:!0,justifyContent:"center",direction:"column",alignContent:"center",md:6,sm:12,sx:{margin:"20px 0"},children:r("div",{children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/buttonizer-logo.png`,alt:"buttonizerlogo",style:{height:50}}),e(d,{style:{fontSize:27,fontWeight:600,marginTop:30},children:"Buttonizer just got an upgrade!"}),e(d,{style:{fontSize:"1.2rem",maxWidth:"fit-content",marginTop:10},component:"div",children:"Easier to manage, faster and more features."}),e("div",{style:{marginTop:30,maxWidth:300},children:r(u,{variant:"contained",onClick:()=>{j(!0),O()},color:"secondary",size:"small",sx:{padding:"15px 30px"},children:["Start migrating",e(re,{style:{marginLeft:15}})]})}),e(d,{style:{marginTop:20,fontSize:"0.875rem",maxWidth:"fit-content"},component:"div",children:"Already using Buttonizer Standalone? Connect without migrating your buttons."}),r("div",{style:{marginTop:20,marginBottom:100,alignItems:"center",display:"flex"},children:[e(u,{variant:"outlined",size:"small",onClick:()=>{j(!1),O()},color:"secondary",sx:{padding:"10px 20px",marginRight:"10px"},children:"Connect now"}),e(u,{size:"small",onClick:Q,disabled:p,children:"Stay in old version"})]})]})}),r(_,{item:!0,md:6,sm:12,container:!0,justifyContent:"center",alignContent:"center",direction:"column",sx:{margin:"20px 0"},children:[e(d,{style:{fontSize:27,fontWeight:600,paddingLeft:15},children:"New in 3.0"}),r(ne,{size:"large",children:[$("More free styling options","Imagine what you can do now"),$("Conversion analytics (coming soon)","Privacy focused conversion analytics"),$("Now available on any platform","Try out on WordPress, Shopify, Wix and more"),$("Manage multiple sites with one account","Great for agencies & businesses with multiple sites"),$("Content Delivery Network (CDN)","Lightning fast around the world \u{1F680}"),$("And much more!")]})]})]}),e(on,{open:f,onClose:()=>h(!1),onConfirm:O})]})}function sn(t){switch(t){case"initializing":return"Initializing...";case"skipping":return"Skipping...";case"migrating":return"Migrating data..."}}function N(i){var a=i,{children:t,paperStyle:n}=a,o=Ce(a,["children","paperStyle"]);return e("div",{style:{margin:"20px 0"},children:e(ve,W(b({sx:b({"& > *":{marginTop:"20px !important",marginBottom:"20px !important"},"& > *:first-child":{marginTop:"10px !important",marginBottom:"20px !important"}},n),type:"wrapper"},o),{children:t}))})}const ln="_analytics_1650v_1";var cn={analytics:ln};function dn(){const{siteInfo:t,startSession:n,sessionStarting:o}=k();return r(x,{children:[r(N,{children:[e(d,{type:"header",color:"primary",children:"Manage your Buttonizer instance"}),e(d,{type:"content",color:"primary",children:"Welcome to your Buttonizer for WordPress dashboard. Here are a few quick-tools to manage your Buttonizer."}),e(u,{variant:"outlined",onClick:n,endIcon:o&&e(X,{size:20,style:{marginLeft:8}}),disabled:o,children:"Edit buttons"}),e(u,{style:{marginLeft:10},color:"secondary",href:q(`/sites/${t.id}`),target:"_blank",type:"link",children:"Open site settings"})]}),r(N,{className:cn.analytics,children:[r(ut,{value:0,children:[e(Se,{value:0,icon:e(J,{size:"small",label:"Coming soon"}),iconPosition:"end",label:"Analytics",size:"small",disabled:!0}),e(Se,{value:1,icon:e(J,{size:"small",label:"Coming soon"}),iconPosition:"end",label:"Conversions",size:"small",disabled:!0})]}),r(d,{type:"content",color:"primary",component:"div",children:["Buttonizer is your converison companion. We will monitor conversions made via Buttonizer for you and give you an easy-to-understand metrics. ",e("br",{}),e("b",{children:"This feature will soon be available"}),"."]}),e(u,{variant:"outlined",startIcon:e(pt,{}),disabled:!0,style:{margin:"10px 0"},children:"Open analytics"})]})]})}const un=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function pn({open:t,onClose:n=()=>{}}){var p;const{setActionLock:o}=k(),[i,a]=l.exports.useState(!1),s=()=>{i||n()},c=()=>{i||(a(!0),B("/disconnect").then(({data:m})=>{o("setup"),n()}).catch(()=>a(!1)))};return r(ie,{open:t,onClose:s,TransitionComponent:un,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[e(ae,{id:"alert-dialog-title",children:"Are you sure you want to disconnect?"}),r(se,{children:[r(U,{id:"alert-dialog-description",children:["You will disconnect your Buttonizer instance from your site"," ",e("b",{children:(p=buttonizer_admin==null?void 0:buttonizer_admin.site)==null?void 0:p.domain}),". You will be able to sign in with another account."]}),e(U,{id:"alert-dialog-description-p2",style:{marginTop:15},children:"Are you sure you want to disconnect?"})]}),r(le,{children:[e(u,{disabled:i,onClick:s,children:"Cancel"}),e(u,{disabled:i,color:"secondary",onClick:c,autoFocus:!0,children:"Disconnect"})]})]})}function hn(){const[t,n]=l.exports.useState(!1);return r(x,{children:[r(N,{children:[e(d,{type:"header",color:"primary",children:"Disconnect Buttonizer"}),e(d,{variant:"body1",color:"primary",children:"Did you create a new instance or do you want to sign in with a different account? Disconnect Buttonizer from your WordPress site."}),e(u,{variant:"outlined",onClick:()=>n(!0),children:"Disconnect"})]}),e(pn,{open:t,onClose:()=>n(!1)})]})}const mn="_table_13k7q_1";var Pe={table:mn};function gn(){const{parseAccountData:t,isPremium:n,accountData:o,siteInfo:i,planInfo:a}=k(),[s,c]=l.exports.useState(!1),[p,m]=l.exports.useState(!1),f=()=>{s||(c(!0),B("/sync").then(({data:y})=>{t(y.data),m(!0),setTimeout(()=>{m(!1)},5e3)}).catch(()=>{}).then(()=>c(!1)))},h=()=>n?e(J,{label:"PRO",color:"secondary"}):e(J,{label:"FREE"});return r(N,{children:[r(_,{container:!0,children:[e(_,{item:!0,md:6,children:r("table",{className:Pe.table,children:[e("tr",{colspan:"2",children:e("th",{children:e(d,{variant:"body1",color:"primary",style:{fontWeight:600},children:"Site information:"})})}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Account name:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:o.name})})]}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Site ID:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:i.id})})]}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Timezone:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:i.timezone})})]})]})}),e(_,{item:!0,md:6,children:r("table",{className:Pe.table,children:[e("tr",{colspan:"2",children:e("th",{children:e(d,{variant:"body1",color:"primary",style:{fontWeight:600},children:"License information:"})})}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Plan:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:a.name})})]}),a.hasPlan&&r(x,{children:[r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"Subscription status:"})}),e("td",{children:e(d,{variant:"body2",color:"primary",children:a.cancelled?"Cancelled":"Active"})})]}),r("tr",{children:[e("td",{children:e(d,{variant:"body2",color:"primary",children:"License status:"})}),e("td",{children:h()})]})]})]})})]}),e(d,{variant:"body2",color:"primary",children:"Did you change a button or account information in the Buttonizer dashboard and do not see the changes in the Buttonizer for WordPress plugin?"}),e(d,{variant:"body2",color:"primary",children:"Click the sync button below to retrieve the data from the Buttonizer dashboard."}),r(_,{container:!0,justifyContent:"space-between",children:[e(u,{variant:"outlined",onClick:f,disabled:s||p,endIcon:s&&e(X,{size:20,style:{marginLeft:8}})||p&&e(we,{}),children:"Sync with dashboard"}),e(u,{color:"secondary",endIcon:e(re,{}),href:q(`/sites/${i.id}`),target:"_blank",type:"link",children:"View more site info"})]})]})}const fn=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function yn({open:t,onClose:n=()=>{}}){const{setHasMigrated:o,setLegacyBackupDeleted:i}=k(),[a,s]=l.exports.useState(!1),c=()=>{a||n()};return r(ie,{open:t,onClose:c,TransitionComponent:fn,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[e(ae,{id:"alert-dialog-title",children:"Happy with the upgrade?"}),e(se,{children:e(U,{id:"alert-dialog-description",children:"Are you satiesfied with the 3.0 update? If so then you can remove the old Buttonizer data to clean up unused data in your database."})}),r(le,{children:[e(u,{disabled:a,onClick:c,children:"Cancel"}),e(u,{disabled:a,color:"secondary",onClick:()=>{a||(s(!0),B("/delete_legacy_backup").then(()=>{i(!0),o(!1),n()}).catch(()=>s(!1)))},autoFocus:!0,children:"Confirm"})]})]})}const bn=l.exports.forwardRef(function(n,o){return e(oe,b({direction:"up",ref:o},n))});function vn({open:t,onClose:n=()=>{}}){const[o,i]=l.exports.useState(!1),a=()=>{o||n()},s=()=>{o||(i(!0),B("/revert_legacy").then(()=>{document.location.href=`${buttonizer_admin.admin}?page=Buttonizer`}).catch(()=>i(!1)))};return o&&t?r(ht,{open:t,sx:{background:"#f0f0f1"},children:[e(mt,{styles:{body:{overflow:"hidden"}}}),e(ce,{text:"Reverting..."})]}):r(ie,{open:t,onClose:a,TransitionComponent:bn,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[e(ae,{id:"alert-dialog-title",children:"Go back Buttonizer version 2.x"}),e(se,{children:r(U,{id:"alert-dialog-description",children:["Don't like the changes in the 3.0 update? Did you perhaps encounter any issues or have any feedback? Please let us know so that we may improve it in the future."," ",e(T,{color:"secondary",href:"mailto:contact@buttonizer.pro",children:"contact@buttonizer.pro"})]})}),r(le,{children:[e(u,{disabled:o,onClick:a,children:"Cancel"}),e(u,{disabled:o,color:"secondary",onClick:s,autoFocus:!0,children:"I am sure"})]})]})}function wn(){const[t,n]=l.exports.useState(!1),[o,i]=l.exports.useState(!1);return r(x,{children:[r(N,{children:[e(d,{type:"header",color:"primary",children:"Remove unused 2.x data"}),e(d,{variant:"body1",color:"primary",children:"Remove the old Buttonizer data in your database."}),e(u,{variant:"outlined",onClick:()=>n(!0),children:"Remove 2.x data"}),e(d,{type:"header",color:"primary",children:"Go back to Buttonizer version 2.x"}),e(d,{variant:"body1",color:"primary",children:"Don't like the changes in the new version?"}),e(u,{variant:"outlined",onClick:()=>i(!0),children:"Return to 2.x"})]}),e(yn,{open:t,onClose:()=>n(!1)}),e(vn,{open:o,onClose:()=>i(!1)})]})}const kn="_listItem_8c466_1",_n="_selectContainer_8c466_5";var $e={listItem:kn,selectContainer:_n};function zn(t,n){const o=[];return t||(t=[]),n.forEach(i=>{(t.indexOf(i.id)!==-1||i.id==="administrator")&&o.push(i)}),o}function Cn({additionalPermissions:t,setAdditionalPermissions:n,saving:o=!1}){const i=window.buttonizer_admin.available_roles,[a,s]=l.exports.useState(zn(t,i)),[c,p]=l.exports.useState(!1),m=f=>{const h=[];f.forEach(y=>{y.id!=="administrator"&&h.push(y.id)}),n(h)};return r(V,{disableGutters:!0,className:$e.listItem,children:[e(H,{children:e(gt,{})}),e(E,{primary:"Permissions",secondary:"You can grant more roles to access the Buttonizer settings who are not an administrator."}),e("div",{className:$e.selectContainer,children:e(ft,{multiple:!0,size:"small",disableCloseOnSelect:!0,disableClearable:!0,options:i.filter(f=>f.id!=="guest"),filterSelectedOptions:!0,getOptionLabel:f=>f.name,value:a,style:{marginTop:10},fullWidth:!0,onOpen:()=>p(!0),onClose:()=>{p(!1),m(a)},loading:o,onChange:(f,h)=>{h.length!=0&&(s(h),c||m(h))},renderTags:(f,h)=>f.map((y,w)=>e(J,W(b({label:y.name},h({index:w})),{disabled:y.id==="administrator"}))),noOptionsText:"Role not found",renderInput:f=>e(yt,W(b({},f),{variant:"outlined",label:"Select roles",placeholder:"Select one or more items",disabled:o,InputProps:W(b({},f.InputProps),{"data-testid":"pagerule:autocomplete-input"}),helperText:e(T,{href:"https://community.buttonizer.pro/knowledgebase/507",target:"_blank",children:"Need help? Learn how to use Permissions."})}))})})]})}function xn(){const[t,n]=l.exports.useState(window.buttonizer_admin.settings),[o,i]=l.exports.useState(!1),[a,s]=l.exports.useState(!1),[c,p]=l.exports.useState(window.buttonizer_admin.settings.adminTopBarButtonEnabled),[m,f]=l.exports.useState(window.buttonizer_admin.settings.canSendErrors),[h,y]=l.exports.useState(window.buttonizer_admin.settings.accessRoles),w=()=>{a||(s(!0),B("/settings",{data:{admin_top_bar_show_button:c,can_send_errors:m,additional_permissions:h}}).then(()=>{}).catch(()=>{}).then(()=>{n({adminTopBarButtonEnabled:c,canSendErrors:m,accessRoles:h}),i(!1),s(!1)}))};return l.exports.useEffect(()=>{i(t.adminTopBarButtonEnabled!==c||t.canSendErrors!==m||t.accessRoles!==h)},[c,m,h]),r(N,{children:[e(d,{type:"header",color:"primary",children:"Preferences"}),r(ne,{disablePadding:!0,dense:!0,children:[r(V,{disableGutters:!0,children:[e(H,{children:e(bt,{})}),e(E,{primary:"Show admin top bar",secondary:"Hide Buttonizer in the admin top bar by disabling this setting.",onClick:()=>{a||p(!c)}}),e(Te,{edge:"end",color:"primary",checked:c,onChange:z=>p(z.target.checked),disabled:a})]}),r(V,{disableGutters:!0,children:[e(H,{children:e(vt,{})}),e(E,{primary:"Automatic error logging and crash reporting",secondary:"Enable automatic error logging and crash reporting in order to help us solve issues within Buttonizer! All data is anonymized automatically.",onClick:()=>{a||f(!m)}}),e(Te,{edge:"end",color:"primary",checked:m,onChange:z=>f(z.target.checked),disabled:a})]}),e(Cn,{saving:a,additionalPermissions:h,setAdditionalPermissions:y}),e(u,{variant:"contained",onClick:w,disabled:!o||a,endIcon:a&&e(X,{size:20,style:{marginLeft:8}}),style:{marginTop:15},children:"Save changes"})]})]})}function Sn(){const{setLegacyBackupDeleted:t}=k();return r(be,{severity:"success",variant:"outlined",action:e(De,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{t(!1)},children:e(Me,{fontSize:"inherit"})}),style:{marginTop:15,background:"#edf7ed"},children:[e(Y,{children:"You have deleted your old data."}),"Have fun with the new version of Buttonizer! :)"]})}function Tn(){const{hasMigrated:t,legacyBackupDeleted:n}=k();return r(x,{children:[e(xn,{}),e(gn,{}),e(hn,{}),t&&window.buttonizer_admin.isAdmin==="1"&&e(wn,{}),n&&e(Sn,{})]})}const Bn="_avatar_yq9q0_1",Pn="_listItem_yq9q0_5",$n="_secondaryInfo_yq9q0_9";var me={avatar:Bn,listItem:Pn,secondaryInfo:$n};function In(){const t=K(),{parseAccountData:n,setConnectionSuccessfull:o,setActionLock:i}=k(),[a,s]=l.exports.useState(!1);if(a)return e(ce,{text:"Connecting..."});const c=(p,m)=>r(V,{className:me.listItem,children:[e(Ee,{children:e(Ne,{className:me.avatar,children:e(we,{})})}),e(E,{secondary:m,secondaryTypographyProps:{className:me.secondaryInfo},primary:p})]});return e(Ue,{children:r(_,{container:!0,style:{height:"100%"},direction:"row",children:[e(_,{item:!0,container:!0,justifyContent:"center",direction:"column",alignContent:"center",md:6,sm:12,sx:{margin:"20px 0"},children:r("div",{children:[e("img",{src:`${buttonizer_admin.assetsPath}/images/buttonizer-logo.png`,alt:"buttonizerlogo",style:{height:50}}),e(d,{style:{fontSize:27,fontWeight:600,marginTop:30},children:"Buttonizer has been installed,"}),e(d,{style:{fontSize:25},children:"you are ready to make some buttons!"}),r("div",{style:{marginTop:30,maxWidth:300},children:[e(He,{buttonProps:{variant:"contained",size:"large",color:"secondary",endIcon:e(re,{}),sx:{padding:"15px 30px"}},buttonText:"Start using Buttonizer",onConnect:p=>{s(!1),i("no-lock"),n(p.data),o(!0),t("/")},onLoading:p=>s(p)}),e(d,{style:{fontSize:15,marginTop:20,marginBottom:60},children:"Go to your dashboard to create, manage and edit your buttons."})]})]})}),r(_,{container:!0,justifyContent:"center",alignContent:"center",direction:"column",item:!0,md:6,sm:12,sx:{margin:"20px 0"},children:[e(d,{style:{fontSize:27,fontWeight:600},children:"This is Buttonizer"}),r(ne,{size:"large",children:[c("WhatsApp Button"),c("Facebook messenger"),c("Social media sharing"),c("Navigate with URL"),c("Open pop up"),c("And many more options!")]})]})]})})}const Ln="_helpContainer_jsvok_1",Rn="_cardButton_jsvok_5",An="_helpContainerText_jsvok_33";var te={helpContainer:Ln,cardButton:Rn,helpContainerText:An};function Dn(){const t=({imgSrc:n,href:o,title:i,description:a,button:s="Learn more"})=>e(wt,{children:e(kt,{href:`${o}?utm_source=wp-plugin-support`,type:"link",target:"_blank",className:te.cardButton,children:r(_t,{className:te.cardContent,children:[e("img",{src:n,alt:"Knowledge base",draggable:!1}),e(d,{variant:"h5",children:i}),e(d,{className:te.helpContainerText,color:"textSecondary",component:"div",children:a}),e(u,{endIcon:e(zt,{}),color:"secondary",children:s})]})})});return r("div",{children:[r(N,{children:[e(d,{color:"primary",type:"header",children:"Need some help?"}),e(d,{type:"content",color:"primary",children:"Do you need some help? We can help you with everything! Check out our Buttonizer Community, knowledge base or we can help you with our support."})]}),r("div",{className:te.helpContainer,children:[e(t,{imgSrc:`${buttonizer_admin.assetsPath}/images/support/knowledge-base.svg`,title:"Knowledge base",description:"Learn how to use our application like a pro",href:"https://r.buttonizer.io/support/knowledgebase"}),e(t,{imgSrc:`${buttonizer_admin.assetsPath}/images/support/community.svg`,title:"Forums",description:"Give and Get help from your peers and our team",href:"https://r.buttonizer.io/support/community"}),e(t,{imgSrc:`${buttonizer_admin.assetsPath}/images/support/tickets.svg`,title:"Tickets",description:"Need support that requires privacy? Submit a private ticket",href:"https://r.buttonizer.io/support/tickets"})]})]})}function Mn(){return r(N,{children:[e(d,{type:"header",color:"primary",children:"Oh no! Page not found :("}),r(d,{type:"body1",color:"primary",children:["Sorry about that. If we linked to something wrong in our plugin, please let us know by giving us feedback"," ",e(T,{href:"https://community.buttonizer.pro/",target:"_blank",color:"secondary",children:"on our Buttonizer Community!"})]}),e(u,{component:Ct,to:"/",variant:"outlined",type:"link",children:"Back to overview"})]})}const En={blogs:"wp/v2/posts?_fields[]=title&_fields[]=id",pages:"wp/v2/pages?_fields[]=title&_fields[]=id",categories:"wp/v2/categories?_fields[]=name&_fields[]=id"};function Nn(t,n){if(t==="roles"){n(window.buttonizer_admin.available_roles);return}return ge({url:`${buttonizer_admin.api}${En[t]}&per_page=100`,method:"GET",headers:{"X-WP-Nonce":buttonizer_admin.nonce}}).then(({data:o})=>{n(o.map(({id:i,title:a,name:s=null})=>{var c;return{id:i,name:(c=a==null?void 0:a.rendered)!=null?c:s}}))}).catch(()=>{})}const Wn="_iframe_13azj_1";var Fn={iframe:Wn};const Ie=(t,n,o,i={})=>{t.contentWindow.postMessage({eventType:"buttonizer",messageType:o,message:i},n)};function Le(){const t=K(),n=l.exports.useRef(),{cachedEditorSession:o,setCachedEditorSession:i,sessionStarting:a,startSession:s}=k();return l.exports.useEffect(()=>{o===null&&!a&&s()},[o]),l.exports.useEffect(()=>{const c=({data:p,origin:m})=>{const{eventType:f,messageType:h,message:y}=p;f==="buttonizer"&&(h==="connection"&&y==="ready"&&Ie(n.current,m,"platform","wordpress"),h==="close_editor"&&t("/"),h==="request_data"&&Nn(y,w=>{Ie(n.current,m,`reply_${y}`,w)}))};return window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c),i(null)}},[]),!o||a?e(ce,{text:"Starting editor session..."}):e("iframe",{src:Dt(o),className:Fn.iframe,ref:n,referrerPolicy:"origin"})}function On(){const{actionLock:t}=k();return t==="editor"?e(Le,{}):t==="migration"?e(an,{}):t==="setup"?e(In,{}):e(xt,{children:r(F,{path:"/",element:e(Yt,{}),children:[e(F,{path:"/",element:e(St,{to:"/overview",replace:!0})}),e(F,{path:"/overview",element:e(dn,{})}),e(F,{path:"/settings",element:e(Tn,{})}),e(F,{path:"/support",element:e(Dn,{})}),e(F,{path:"/editor",element:e(Le,{})}),e(F,{path:"*",element:e(Mn,{})})]})})}const Hn="https://84c09e1dec414d9aa9a7663511fb3027@tracker.buttonizer.pro/7",Un={}.VITE_APP_VERSION;Tt({dsn:Hn,integrations:[new Bt],release:Un,environment:"development",tracesSampleRate:1,beforeSend:t=>{var n;return(n=buttonizer_admin==null?void 0:buttonizer_admin.settings)!=null&&n.canSendErrors?t:null}});Pt.createRoot(document.getElementById("root")).render(e($t,{injectFirst:!0,children:e(Ae,{theme:We,children:e(Et,{children:e(On,{})})})}));
assets/app/index.html CHANGED
@@ -5,7 +5,7 @@
5
  <link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>Vite App</title>
8
- <script type="module" crossorigin src="/index.ae956e44.js"></script>
9
  <link rel="modulepreload" href="/vendor.68b22057.js">
10
  <link rel="stylesheet" href="/index.1667de10.css">
11
  </head>
5
  <link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
  <title>Vite App</title>
8
+ <script type="module" crossorigin src="/index.6db39498.js"></script>
9
  <link rel="modulepreload" href="/vendor.68b22057.js">
10
  <link rel="stylesheet" href="/index.1667de10.css">
11
  </head>
assets/app/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "index.html": {
3
- "file": "index.ae956e44.js",
4
  "src": "index.html",
5
  "isEntry": true,
6
  "imports": [
1
  {
2
  "index.html": {
3
+ "file": "index.6db39498.js",
4
  "src": "index.html",
5
  "isEntry": true,
6
  "imports": [
buttonizer.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Buttonizer - Smart Floating Action Button
4
  * Plugin URI: https://buttonizer.io
5
  * Description: The Buttonizer is a new way to give a boost to your number of interactions, actions and conversions from your website visitor by adding one or multiple Customizable Smart Floating Button in the corner of your website.
6
- * Version: 3.0.3
7
  * Author: Buttonizer
8
  * Author URI: https://buttonizer.pro
9
  * License: GPLv3
@@ -24,7 +24,7 @@
24
  */
25
 
26
  // Define current Buttonizer version
27
- define('BUTTONIZER_VERSION', '3.0.3');
28
  define('BUTTONIZER_PLUGIN_FILE', __FILE__);
29
 
30
  // Get environment vars
3
  * Plugin Name: Buttonizer - Smart Floating Action Button
4
  * Plugin URI: https://buttonizer.io
5
  * Description: The Buttonizer is a new way to give a boost to your number of interactions, actions and conversions from your website visitor by adding one or multiple Customizable Smart Floating Button in the corner of your website.
6
+ * Version: 3.0.4
7
  * Author: Buttonizer
8
  * Author URI: https://buttonizer.pro
9
  * License: GPLv3
24
  */
25
 
26
  // Define current Buttonizer version
27
+ define('BUTTONIZER_VERSION', '3.0.4');
28
  define('BUTTONIZER_PLUGIN_FILE', __FILE__);
29
 
30
  // Get environment vars
readme.txt CHANGED
@@ -4,7 +4,7 @@ Buy plugin: https://buttonizer.io
4
  Tags: Conversion, action button, call, marketing, Social Sharing
5
  Requires at least: 4.7
6
  Tested up to: 6.0
7
- Stable tag: 3.0.3
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -193,6 +193,17 @@ Languages can have a different direction of writing and reading? While languages
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
 
 
 
196
  = 3.0.3 =
197
  Release date: July 8, 2022
198
 
4
  Tags: Conversion, action button, call, marketing, Social Sharing
5
  Requires at least: 4.7
6
  Tested up to: 6.0
7
+ Stable tag: 3.0.4
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
193
 
194
  == Changelog ==
195
 
196
+ = 3.0.4 =
197
+ Release date: July 19, 2022
198
+
199
+ **Changelog:**
200
+ - Added a Google maps button action.
201
+ - Made the button action request text a little bit more understandable.
202
+ - Fixed some bugs
203
+ - Some UI improvements
204
+
205
+ If you experience bugs, problems or you just have some feedback, let us know on our [Buttonizer community](https://community.buttonizer.pro/)!
206
+
207
  = 3.0.3 =
208
  Release date: July 8, 2022
209