import{aq as e,f as m,i as p,a0 as a,j as k,T as r,M as f,an as _}from"./js/vendor-vue-ui.f00a1236.js";import{l as h}from"./js/index.18357c0f.js";import{l as L}from"./js/index.60474bd4.js";import{l as S}from"./js/index.0d80c2c2.js";import{x as g,c as w,G as A,b as y,u as F,h as v,k as C,l as V}from"./js/app-core.b862f9c8.js";import{M as x,a as E,_ as P}from"./js/vendor-other.7b559694.js";import{S as D}from"./js/Information.bbfb3caf.js";import{S as I}from"./js/Close.de45e465.js";import{_ as M}from"./js/_plugin-vue_export-helper.eefbdd86.js";import"./js/Button.6c09d515.js";import"./js/Input.af82b72e.js";import"./js/Index.3967c277.js";import"./js/Pencil.1ca5815a.js";import"./js/Trash.c3e8db0b.js";import"./js/Select.952b21a0.js";import"./js/Caret.e6c9f7cc.js";import"./js/Toggle.b43ed20a.js";import"./js/vendor-lodash.d3ad8b99.js";const N="all-in-one-seo-pack",T={setup(){return{licenseStore:v(),postEditorStore:F(),rootStore:y()}},components:{SvgCircleInformation:D,SvgClose:I},data(){return{linkFormatValue:{},disabled:!1,url:null,strings:{upsell:E(P("Did you know you can automatically add internal links using Link Assistant? %1$s",N),w.getPlainLink(A.learnMore,this.rootStore.aioseo.urls.aio.linkAssistant,!0))}}},computed:{canShowUpsell(){const o=g.getAddon("aioseo-link-assistant"),{options:t}=this.postEditorStore.currentPost,s=t.linkFormat.internalLinkCount,n=t.linkFormat.linkAssistantDismissed;return(this.licenseStore.isUnlicensed||!o||!o.isActive||o.requiresUpgrade)&&2i.disabled=!0,["stop"])),innerHTML:i.strings.upsell},null,8,b),a(d,{onClick:r(n.postEditorStore.disableLinkAssistantEducation,["stop"])},null,8,["onClick"])])):f("",!0)}const O=M(T,[["render",B]]),l=()=>{let o=_({...O,name:"Standalone/LinkFormat"});o=h(o),o=L(o),o=S(o),V(o),o.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(t){t.animationName==="aioseoLaDidYouKnow"&&l()},{passive:!0})));