import{g as y,a as h,l as E}from"./index.ed1fc0db.js";import{R as A,a as T,G as U,b as v}from"./constants.fe8bda37.js";import{C as P}from"./Index.82ced936.js";import{C as w}from"./Blur.0f162340.js";import{C as B}from"./Card.17b56f9a.js";import{C as D}from"./Table.4185d7c6.js";import"./translations.d159963e.js";import{_ as b}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as e,s as L}from"./default-i18n.20001971.js";import{a6 as i,o as d,c as S,a1 as g,a2 as l,m as s,a4 as R,a7 as C,$ as f,ae as I}from"./runtime-core.esm-bundler.4f558f23.js";import{C as M}from"./Index.39bbd6c8.js";import{R as N}from"./RequiredPlans.83142173.js";const o="all-in-one-seo-pack",q={components:{CoreAddRedirection:P,CoreBlur:w,CoreCard:B,CoreWpTable:D},props:{noCoreCard:Boolean},data(){return{REDIRECT_TYPES:A,REDIRECT_QUERY_PARAMS:T,strings:{addNewRedirection:e("Add New Redirection",o),searchUrls:e("Search URLs",o)},bulkOptions:[{label:"",value:""}]}},computed:{columns(){return[{slug:"source_url",label:e("Source URL",o)},{slug:"target_url",label:e("Target URL",o)},{slug:"hits",label:e("Hits",o),width:"97px"},{slug:"type",label:e("Type",o),width:"100px"},{slug:"group",label:e("Group",o),width:"150px"},{slug:"enabled",label:U.enabled,width:"80px"}]},additionalFilters(){return[{label:e("Filter by Group",o),name:"group",options:[{label:e("All Groups",o),value:"all"}].concat(v)}]}}},G={class:"aioseo-redirects-blur"};function F(m,x,t,a,r,p){const u=i("core-add-redirection"),c=i("core-blur"),_=i("core-card"),k=i("core-wp-table");return d(),S("div",G,[t.noCoreCard?R("",!0):(d(),g(_,{key:0,slug:"addNewRedirection","header-text":r.strings.addNewRedirection,noSlide:!0},{default:l(()=>[s(c,null,{default:l(()=>[s(u,{type:r.REDIRECT_TYPES[0].value,query:r.REDIRECT_QUERY_PARAMS[0].value,slash:!0,case:!0},null,8,["type","query"])]),_:1})]),_:1},8,["header-text"])),t.noCoreCard?(d(),g(c,{key:1},{default:l(()=>[s(u,{type:r.REDIRECT_TYPES[0].value,query:r.REDIRECT_QUERY_PARAMS[0].value,slash:!0,case:!0},null,8,["type","query"])]),_:1})):R("",!0),s(c,null,{default:l(()=>[s(k,{filters:[],totals:{total:0,pages:0,page:1},columns:p.columns,rows:[],"search-label":r.strings.searchUrls,"bulk-options":r.bulkOptions,"additional-filters":p.additionalFilters},null,8,["columns","search-label","bulk-options","additional-filters"])]),_:1})])}const O=b(q,[["render",F]]),n="all-in-one-seo-pack",Y={setup(){return{licenseStore:y(),rootStore:h(),links:E}},components:{Blur:O,Cta:M,RequiredPlans:N},props:{noCoreCard:Boolean,parentComponentContext:String},data(){return{strings:{ctaButtonText:e("Unlock Redirects",n),ctaHeader:L(e("Redirects is a %1$s Feature",n),"PRO"),serverRedirects:e("Fast Server Redirects",n),automaticRedirects:e("Automatic Redirects",n),redirectMonitoring:e("Redirect Monitoring",n),monitoring404:e("404 Monitoring",n),fullSiteRedirects:e("Full Site Redirects",n),siteAliases:e("Site Aliases",n),redirectsDescription:e("Our Redirection Manager lets you easily create and manage redirects for broken links to avoid confusing search engines and users and prevents losing backlinks.",n)}}}};function H(m,x,t,a,r,p){const u=i("blur"),c=i("required-plans"),_=i("cta");return d(),S("div",{class:I({"aioseo-redirects":!0,"core-card":!t.noCoreCard})},[s(u,{noCoreCard:t.noCoreCard},null,8,["noCoreCard"]),s(_,{"cta-link":a.links.getPricingUrl("redirects","redirects-upsell",t.parentComponentContext?t.parentComponentContext:null,a.rootStore.isPro?"pricing":"liteUpgrade"),"button-text":r.strings.ctaButtonText,"learn-more-link":a.links.getUpsellUrl("redirects",t.parentComponentContext?t.parentComponentContext:null,a.rootStore.isPro?"pricing":"liteUpgrade"),"feature-list":[r.strings.serverRedirects,r.strings.automaticRedirects,r.strings.redirectMonitoring,r.strings.monitoring404,r.strings.fullSiteRedirects,r.strings.siteAliases],"hide-bonus":!a.licenseStore.isUnlicensed},{"header-text":l(()=>[C(f(r.strings.ctaHeader),1)]),description:l(()=>[s(c,{addon:"aioseo-redirects"}),C(" "+f(r.strings.redirectsDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list","hide-bonus"])],2)}const te=b(Y,[["render",H]]);export{te as L};
