import{k as y,u as h,l as E}from"./index.506b73e8.js";import{R as A,a as T,G as U,b as v}from"./constants.a8a14dc3.js";import{C as w}from"./Index.73245b8c.js";import{C as P}from"./Blur.edde4939.js";import{C as B}from"./Card.d0e52e4a.js";import{C as D}from"./Table.adfd78ac.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{v as i,o as d,c as x,k as C,l,C as s,b as R,x as g,t as f,G}from"./runtime-dom.esm-bundler.5c3c7d72.js";import{C as I}from"./Index.a76253da.js";import{R as M}from"./RequiredPlans.2a42646b.js";const o="all-in-one-seo-pack",N={components:{CoreAddRedirection:w,CoreBlur:P,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)}]}}},q={class:"aioseo-redirects-blur"};function F(m,k,t,a,r,p){const u=i("core-add-redirection"),c=i("core-blur"),_=i("core-card"),S=i("core-wp-table");return d(),x("div",q,[t.noCoreCard?R("",!0):(d(),C(_,{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(),C(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(S,{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(N,[["render",F]]),n="all-in-one-seo-pack",Y={setup(){return{licenseStore:y(),rootStore:h(),links:E}},components:{Blur:O,Cta:I,RequiredPlans:M},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,k,t,a,r,p){const u=i("blur"),c=i("required-plans"),_=i("cta");return d(),x("div",{class:G({"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),"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(()=>[g(f(r.strings.ctaHeader),1)]),description:l(()=>[s(c,{addon:"aioseo-redirects"}),g(" "+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};
