import{j as k,u as h,b as E}from"./index.bd66e758.js";import{R as A,a as T,G as U,b as v}from"./constants.fe8bda37.js";import{C as P}from"./Index.5950d497.js";import{C as w}from"./Blur.4fe4b9a3.js";import{C as B}from"./Card.88a70537.js";import{C as D}from"./Table.ede098b2.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{x as i,o as d,c as x,l as g,m as a,H as s,b as R,y as C,t as f,K as I}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{C as M}from"./Index.1a358ca4.js";import{R as N}from"./RequiredPlans.54d3867a.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,S,t,l,r,p){const u=i("core-add-redirection"),c=i("core-blur"),_=i("core-card"),y=i("core-wp-table");return d(),x("div",G,[t.noCoreCard?R("",!0):(d(),g(_,{key:0,slug:"addNewRedirection","header-text":r.strings.addNewRedirection,noSlide:!0},{default:a(()=>[s(c,null,{default:a(()=>[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:a(()=>[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:a(()=>[s(y,{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:k(),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,S,t,l,r,p){const u=i("blur"),c=i("required-plans"),_=i("cta");return d(),x("div",{class:I({"aioseo-redirects":!0,"core-card":!t.noCoreCard})},[s(u,{noCoreCard:t.noCoreCard},null,8,["noCoreCard"]),s(_,{"cta-link":l.links.getPricingUrl("redirects","redirects-upsell",t.parentComponentContext?t.parentComponentContext:null,l.rootStore.isPro?"pricing":"liteUpgrade"),"button-text":r.strings.ctaButtonText,"learn-more-link":l.links.getUpsellUrl("redirects",t.parentComponentContext?t.parentComponentContext:null,l.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":!l.licenseStore.isUnlicensed},{"header-text":a(()=>[C(f(r.strings.ctaHeader),1)]),description:a(()=>[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};
