import"./js/vue2.RHmKp0B5.js";import{o as p,c as i,y as _,a as c,k as d,x as r,F as B,K as F,t as M,N as u,O as m,C as E,H as D,l as A,v as y,X as $}from"./js/vue.esm-bundler.CWQFYt9y.js";import{l as w}from"./js/index.D7hEMYOO.js";import{l as k}from"./js/index.BB7B6rSp.js";import{l as L}from"./js/index.3BJ3ZnWB.js";import{u as S,l as H}from"./js/links.cMjoa9mX.js";import{_ as e}from"./js/_plugin-vue_export-helper.BN1snXvA.js";import{S as b}from"./js/Message.C2EZ7d6W.js";import{S as O}from"./js/Support.B-t20u3s.js";import"./js/translations.Buvln_cw.js";import"./js/default-i18n.Bd0Z306Z.js";import"./js/constants.B6ynd7gz.js";import"./js/Caret.iRBf3wcH.js";import"./js/helpers.D2xRWOvn.js";const x={},U={width:"57",height:"56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V=_('',1),P=[V];function N(a,l){return p(),i("svg",U,P)}const q=e(x,[["render",N]]),R={},j={width:"57",height:"56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I=_('',1),J=[I];function K(a,l){return p(),i("svg",j,J)}const Q=e(R,[["render",K]]),T={props:{active:{type:Boolean,default(){return!1}}}},X={viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-light-bulb"},G=c("path",{fill:"currentColor",d:"M 10.3477 27.595 c 0 0.6655 0.5445 1.21 1.21 1.21 h 4.84 c 0.6655 0 1.21 -0.5445 1.21 -1.21 v -1.21 h -7.26 v 1.21 z m 3.63 -22.99 c -4.6706 0 -8.47 3.7994 -8.47 8.47 c 0 2.8798 1.4399 5.4087 3.63 6.9454 V 22.755 c 0 0.6655 0.5445 1.21 1.21 1.21 h 7.26 c 0.6655 0 1.21 -0.5445 1.21 -1.21 v -2.7346 c 2.1901 -1.5367 3.63 -4.0656 3.63 -6.9454 c 0 -4.6706 -3.7994 -8.47 -8.47 -8.47 z m 3.4485 13.431 l -1.0285 0.726 V 21.545 h -4.84 v -2.783 l -1.0285 -0.726 A 6.0464 6.0464 90 0 1 7.9277 13.075 c 0 -3.3396 2.7104 -6.05 6.05 -6.05 s 6.05 2.7104 6.05 6.05 c 0 1.9723 -0.968 3.8236 -2.6015 4.961 z"},null,-1);function W(a,l,o,z,t,n){return p(),i("svg",X,[G,c("path",{fill:"currentColor",d:"M 13.041 3.717 h 2.334 V 0.799 h -2.334 v 2.918 z M 24.127 14.219 h 2.917 v -2.334 h -2.917 v 2.334 z M 1.956 14.219 h 2.917 v -2.334 H 1.956 v 2.334 z M 23.133 7.52 l 2.062 -2.063 l -1.642 -1.642 l -2.062 2.063 l 1.642 1.642 z M 6.56 7.52 L 4.499 5.457 L 6.14 3.815 l 2.063 2.063 L 6.56 7.52 z",style:d({opacity:o.active?1:0})},null,4)])}const Y=e(T,[["render",W]]),Z={props:{active:{type:Boolean,default(){return!1}}}},l1={viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-star"},t1=c("path",{fill:"currentColor",d:"M10.5 5.13l.97 2.29.47 1.11 1.2.1 2.47.21-1.88 1.63-.91.79.27 1.18.56 2.41-2.12-1.28-1.03-.64-1.03.62-2.12 1.28.56-2.41.27-1.18-.91-.79-1.88-1.63 2.47-.21 1.2-.1.47-1.11.97-2.27zm0-5.13L7.69 6.63.5 7.24l5.46 4.73L4.32 19l6.18-3.73L16.68 19l-1.64-7.03 5.46-4.73-7.19-.61L10.5 0z"},null,-1);function a1(a,l,o,z,t,n){return p(),i("svg",l1,[t1,c("path",{fill:"currentColor",d:"M 10.5 5.13 m 0 -5.13 L 7.69 6.63 L 0.5 7.24 l 5.46 4.73 L 4.32 19 l 6.18 -3.73 L 16.68 19 l -1.64 -7.03 l 5.46 -4.73 l -7.19 -0.61 L 10.5 0 z",style:d({opacity:o.active?1:0})},null,4)])}const c1=e(Z,[["render",a1]]),p1={setup(){return{rootStore:S()}},components:{SvgFlyoutDannie:q,SvgFlyoutDannieUp:Q,SvgLightBulb:Y,SvgMessage:b,SvgStar:c1,SvgSupport:O},data(){return{isOpen:!1,willOpen:!1,hovering:null,strings:{quickLinks:this.$t.__("Quick Links",this.$td)}}},computed:{items(){const a=[{label:this.$t.__("Support & Docs",this.$td),url:this.$links.utmUrl("flyout-menu","support-docs",this.$links.docLinks.home),icon:"svg-support"},{label:this.$t.__("Join Our Community",this.$td),url:this.$links.utmUrl("flyout-menu","join-our-community","plugin/facebook/"),icon:"svg-message"},{label:this.$t.__("Suggest a Feature",this.$td),url:this.$links.utmUrl("flyout-menu","suggest-a-feature","suggest-a-feature/"),icon:"svg-light-bulb"}];return!this.$isPro&&this.rootStore.pong&&a.unshift({label:this.$t.sprintf(this.$t.__("Upgrade to %1$s %2$s",this.$td),"AIOSEO","Pro"),url:this.$links.utmUrl("flyout-menu","upgrade-to-pro"),icon:"svg-star"}),a}},methods:{documentClick(a){if(!this.isOpen)return;const l=this.$refs["aioseo-flyout-menu"];l&&(l===a.target||l.contains(a.target))||(this.isOpen=!1)}},mounted(){this.$nextTick(function(){document.addEventListener("click",this.documentClick)})},beforeUnmount(){document.removeEventListener("click",this.documentClick)}},h1={class:"aioseo-flyout-menu-items"},i1=["href","onMouseover"],f1={class:"aioseo-flyout-menu-label"},e1={class:"aioseo-flyout-menu-label icon"},o1={class:"aioseo-flyout-menu-label"};function n1(a,l,o,z,t,n){const C=r("svg-flyout-dannie-up"),v=r("svg-flyout-dannie");return p(),i("div",{class:D(["aioseo-flyout-menu",[{"is-open":t.isOpen},{"will-open":t.willOpen}]]),ref:"aioseo-flyout-menu"},[c("div",h1,[(p(!0),i(B,null,F(n.items,(f,s)=>(p(),i("a",{key:s,href:f.url,target:"_blank",style:d({transitionDelay:`${n.items.length-s}00ms`}),onMouseover:g=>t.hovering=s,onMouseleave:l[0]||(l[0]=g=>t.hovering=null)},[c("span",f1,M(f.label),1),c("div",e1,[(p(),A(y(f.icon),{active:s===t.hovering},null,8,["active"]))])],44,i1))),128))]),c("div",{class:"aioseo-flyout-menu-button",onClick:l[1]||(l[1]=f=>t.isOpen=!t.isOpen),onMouseover:l[2]||(l[2]=f=>t.willOpen=!0),onMouseleave:l[3]||(l[3]=f=>t.willOpen=!1)},[c("span",o1,M(t.strings.quickLinks),1),u(E(C,null,null,512),[[m,t.isOpen]]),u(E(v,null,null,512),[[m,!t.isOpen]])],32)],2)}const s1=e(p1,[["render",n1]]);let h=$({...s1,name:"Standalone/FlyoutMenu"});h=w(h);h=k(h);h=L(h);H(h);h.mount("#aioseo-flyout-menu");