import"./js/vue2.RHmKp0B5.js";import{x as e,o as m,c as p,C as a,a as k,G as r,d as f,X as _}from"./js/vue.esm-bundler.CWQFYt9y.js";import{l as h}from"./js/index.D7hEMYOO.js";import{l as L}from"./js/index.BB7B6rSp.js";import{l as S}from"./js/index.3BJ3ZnWB.js";import{f as g,b as w,u as A,l as y}from"./js/links.cMjoa9mX.js";import{e as C}from"./js/elemLoaded.COgXIo-H.js";import{a as v}from"./js/addons.CjB9Xv4t.js";import{u as F}from"./js/url.CXm_MEQz.js";import{S as x}from"./js/Information.CESrgQJV.js";import{S as E}from"./js/Caret.iRBf3wcH.js";import{_ as V}from"./js/_plugin-vue_export-helper.BN1snXvA.js";import"./js/translations.Buvln_cw.js";import"./js/default-i18n.Bd0Z306Z.js";import"./js/constants.B6ynd7gz.js";import"./js/helpers.D2xRWOvn.js";import"./js/upperFirst.CP4N4hLd.js";import"./js/_stringToArray.DnK4tKcY.js";import"./js/toString.XwB3Xa5p.js";const P={setup(){return{licenseStore:g(),postEditorStore:w(),rootStore:A()}},components:{SvgCircleInformation:x,SvgClose:E},data(){return{linkFormatValue:{},disabled:!1,url:null,strings:{upsell:this.$t.sprintf(this.$t.__("Did you know you can automatically add internal links using Link Assistant? %1$s",this.$td),this.$links.getPlainLink(this.$constants.GLOBAL_STRINGS.learnMore,this.rootStore.aioseo.urls.aio.linkAssistant,!0))}}},computed:{canShowUpsell(){const t=v.getAddon("aioseo-link-assistant"),{options:o}=this.postEditorStore.currentPost,i=o.linkFormat.internalLinkCount,n=o.linkFormat.linkAssistantDismissed;return(this.licenseStore.isUnlicensed||!t||!t.isActive||t.requiresUpgrade)&&2s.disabled=!0,["stop"])),innerHTML:s.strings.upsell},null,8,I),a(d,{onClick:r(n.postEditorStore.disableLinkAssistantEducation,["stop"])},null,8,["onClick"])])):f("",!0)}const U=V(P,[["render",N]]),l=()=>{let t=_({...U,name:"Standalone/LinkFormat"});t=h(t),t=L(t),t=S(t),y(t),t.mount("#aioseo-link-assistant-education-mount")};window.aioseo&&window.aioseo.currentPost&&window.aioseo.currentPost.context==="post"&&(document.getElementById("aioseo-link-assistant-education")?l():(C("#aioseo-link-assistant-education","aioseoLaDidYouKnow"),document.addEventListener("animationstart",function(o){o.animationName==="aioseoLaDidYouKnow"&&l()},{passive:!0})));