uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
link-format.742c554e.js
/
/
import{x as e,o as m,c as p,H as a,a as k,J as r,b as f,Y as _}from"./js/runtime-dom.esm-bundler.5d5e6b71.js";import{l as h}from"./js/index.7c01c5f2.js";import{l as L}from"./js/index.e5bcd650.js";import{l as S}from"./js/index.d80c2c2c.js";import{j as g,b as w,u as A,c as y,l as v}from"./js/index.681f720c.js";import{e as C}from"./js/elemLoaded.2921fc72.js";import{G as F}from"./js/constants.fe8bda37.js";import{a as x}from"./js/addons.f0fb0b6d.js";import{u as E}from"./js/url.72a318ef.js";import{S as V}from"./js/Information.3b2ed489.js";import{b as P}from"./js/Caret.202f7c21.js";import"./js/translations.d159963e.js";import{_ as D}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{s as b,_ as I}from"./js/default-i18n.20001971.js";import"./js/helpers.e8ba8937.js";import"./js/upperFirst.555c1a56.js";import"./js/toString.6346a2b4.js";const N="all-in-one-seo-pack",U={setup(){return{licenseStore:g(),postEditorStore:w(),rootStore:A()}},components:{SvgCircleInformation:V,SvgClose:P},data(){return{linkFormatValue:{},disabled:!1,url:null,strings:{upsell:b(I("Did you know you can automatically add internal links using Link Assistant? %1$s",N),y.getPlainLink(F.learnMore,this.rootStore.aioseo.urls.aio.linkAssistant,!0))}}},computed:{canShowUpsell(){const o=x.getAddon("aioseo-link-assistant"),{options:t}=this.postEditorStore.currentPost,i=t.linkFormat.internalLinkCount,n=t.linkFormat.linkAssistantDismissed;return(this.licenseStore.isUnlicensed||!o||!o.isActive||o.requiresUpgrade)&&2<i&&!n&&!this.disabled&&this.linkFormatValue.url&&this.isInternalLink(this.linkFormatValue.url)}},methods:{async linkAdded(o){var s;await this.$nextTick();const{options:t}=this.postEditorStore.currentPost,i=t.linkFormat.internalLinkCount,n=t.linkFormat.linkAssistantDismissed;2<i||n||this.isInternalLink(o.url||((s=o.suggestion)==null?void 0:s.url)||null)&&this.postEditorStore.incrementInternalLinkCount()},async setLinkFormatValue(){await this.$nextTick();const o=document.querySelector("#aioseo-link-assistant-education input");!this.linkFormatValue.url&&(o!=null&&o.value)&&(this.linkFormatValue=JSON.parse(o.value))},isInternalLink(o){const t=E.parse(o,!1,!0);return o.indexOf("//")===-1&&o.indexOf("/")===0?!0:o.indexOf("#")===0?!1:t.host?t.host===this.rootStore.aioseo.urls.domain:!0}},created(){this.setLinkFormatValue();const{addAction:o,hasAction:t}=window.wp.hooks;t("aioseo-link-format-link-added","aioseo")||o("aioseo-link-format-link-added","aioseo",this.linkAdded)}},B={key:0,class:"aioseo-link-assistant-did-you-know"},O=["innerHTML"];function T(o,t,i,n,s,u){const c=e("svg-circle-information"),d=e("svg-close");return u.canShowUpsell?(m(),p("div",B,[a(c),k("span",{onClick:t[0]||(t[0]=r(Y=>s.disabled=!0,["stop"])),innerHTML:s.strings.upsell},null,8,O),a(d,{onClick:r(n.postEditorStore.disableLinkAssistantEducation,["stop"])},null,8,["onClick"])])):f("",!0)}const M=D(U,[["render",T]]),l=()=>{let o=_({...M,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})));
/home/batcwwjx/www/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/link-format.742c554e.js