import{w as A,b as P,y as D}from"./app-core.3e3b5f4b.js";import{u as U}from"./Wizard.d9e6928e.js";import{B as O}from"./HighlightToggle.90649f68.js";import{C as N}from"./HtmlTagsEditor.47d8abe4.js";import{G as E,a as F}from"./Row.35464476.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{f as c,i as g,j as s,aq as n,a0 as r,R as u,U as p,O as R,ad as G,Q as v,S as C,M as V,ae as _}from"./vendor-vue-ui.65fbb3e9.js";import{a as I,S as q}from"./ImageSeo.7273797f.js";import{b as Y}from"./Pencil.b9e32152.js";import{W as j,a as Q,b as J}from"./Header.a4be7ab7.js";import{W as K}from"./CloseAndExit.255a89fa.js";import{_ as X}from"./Steps.7089a3fd.js";import{m as $}from"./vendor-lodash.a7229f96.js";import{_ as a}from"./vendor-other.ac1169a2.js";import"./Checkbox.6b6a136d.js";import"./Checkmark.429c2d8c.js";import"./Radio.dee751bb.js";import"./Editor.44b793c8.js";import"./vendor-quill.6939af0e.js";import"./Input.32b40815.js";import"./Index.792b437f.js";import"./Close.3dad5b8a.js";import"./Trash.c607f240.js";import"./Caret.bc946270.js";import"./UnfilteredHtml.91062b48.js";import"./vendor-emoji.92c96208.js";import"./Logo.c2e102ac.js";import"./Index.ce0c115a.js";const ee={},oe={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-blog"};function te(o,e){return c(),g("svg",oe,[...e[0]||(e[0]=[s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6667 1.66667H5.00001C4.08334 1.66667 3.33334 2.41667 3.33334 3.33333V16.6667C3.33334 17.5833 4.07501 18.3333 4.99168 18.3333H15C15.9167 18.3333 16.6667 17.5833 16.6667 16.6667V6.66667L11.6667 1.66667ZM13.3333 10H6.66668V11.6667H13.3333V10ZM13.3333 13.3333H6.66668V15H13.3333V13.3333ZM5.00001 16.6667H15V7.5H10.8333V3.33333H5.00001V16.6667Z",fill:"currentColor"},null,-1)])])}const se=f(ee,[["render",te]]),ie={},re={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-corporation"};function ne(o,e){return c(),g("svg",re,[...e[0]||(e[0]=[s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99999 5.83333H18.3333V17.5H1.66666V2.5H9.99999V5.83333ZM3.33332 15.8333H4.99999V14.1667H3.33332V15.8333ZM4.99999 12.5H3.33332V10.8333H4.99999V12.5ZM3.33332 9.16667H4.99999V7.5H3.33332V9.16667ZM4.99999 5.83333H3.33332V4.16667H4.99999V5.83333ZM6.66666 15.8333H8.33332V14.1667H6.66666V15.8333ZM8.33332 12.5H6.66666V10.8333H8.33332V12.5ZM6.66666 9.16667H8.33332V7.5H6.66666V9.16667ZM8.33332 5.83333H6.66666V4.16667H8.33332V5.83333ZM9.99999 15.8333H16.6667V7.5H9.99999V9.16667H11.6667V10.8333H9.99999V12.5H11.6667V14.1667H9.99999V15.8333ZM15 9.16667H13.3333V10.8333H15V9.16667ZM13.3333 12.5H15V14.1667H13.3333V12.5Z",fill:"currentColor"},null,-1)])])}const ae=f(ie,[["render",ne]]),le={},ce={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-news-channel"};function de(o,e){return c(),g("svg",ce,[...e[0]||(e[0]=[s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.8333 3.33333H15V1.66667H13.3333V3.33333H6.66667V1.66667H5V3.33333H4.16667C3.25 3.33333 2.5 4.08333 2.5 5V16.6667C2.5 17.5833 3.25 18.3333 4.16667 18.3333H15.8333C16.75 18.3333 17.5 17.5833 17.5 16.6667V5C17.5 4.08333 16.75 3.33333 15.8333 3.33333ZM15.8333 16.6667H4.16667V8.33333H15.8333V16.6667ZM4.16667 5V6.66667H15.8333V5H4.16667ZM5.83333 10H14.1667V11.6667H5.83333V10ZM11.6667 13.3333H5.83333V15H11.6667V13.3333Z",fill:"currentColor"},null,-1)])])}const ue=f(le,[["render",de]]),pe={},me={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-online-store"};function ge(o,e){return c(),g("svg",me,[...e[0]||(e[0]=[s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.2469 9.975C14.9636 10.4917 14.4136 10.8333 13.7886 10.8333H7.58027L6.6636 12.5H16.6636V14.1667H6.6636C5.39694 14.1667 4.59694 12.8083 5.20527 11.6917L6.33027 9.65833L3.33027 3.33333H1.6636V1.66666H4.3886L5.17194 3.33333H17.5053C18.1386 3.33333 18.5386 4.01666 18.2303 4.56666L15.2469 9.975ZM16.0886 5H5.96358L7.93858 9.16666H13.7886L16.0886 5ZM6.66364 15C5.74698 15 5.00531 15.75 5.00531 16.6667C5.00531 17.5833 5.74698 18.3333 6.66364 18.3333C7.58031 18.3333 8.33031 17.5833 8.33031 16.6667C8.33031 15.75 7.58031 15 6.66364 15ZM13.3386 16.6667C13.3386 15.75 14.0803 15 14.997 15C15.9136 15 16.6636 15.75 16.6636 16.6667C16.6636 17.5833 15.9136 18.3333 14.997 18.3333C14.0803 18.3333 13.3386 17.5833 13.3386 16.6667Z",fill:"currentColor"},null,-1)])])}const he=f(pe,[["render",ge]]),l="all-in-one-seo-pack",_e={setup(){const{strings:o}=U({stage:"category"});return{optionsStore:D(),rootStore:P(),setupWizardStore:A(),composableStrings:o}},components:{BaseHighlightToggle:O,CoreHtmlTagsEditor:N,GridColumn:F,GridRow:E,SvgBlog:se,SvgCorporation:ae,SvgLocalBusiness:q,SvgImageSeo:I,SvgNewsChannel:ue,SvgOnlineStore:he,SvgPencil:Y,WizardBody:J,WizardCloseAndExit:K,WizardContainer:Q,WizardHeader:j,WizardSteps:X},data(){return{loaded:!1,titleCount:0,descriptionCount:0,loading:!1,strings:$(this.composableStrings,{category:a("Which category best describes your website?",l),selectCategory:a("Select a category to help us narrow down the SEO options that work best for you and your site.",l),enterYourAnswer:a("Enter your answer",l),siteTitle:a("Home Page Title",l),metaDescription:a("Home Page Meta Description",l)}),categories:[{value:"blog",name:a("Blog",l),icon:"svg-blog"},{value:"news-channel",name:a("News Channel",l),icon:"svg-news-channel"},{value:"online-store",name:a("Online Store",l),icon:"svg-online-store"},{value:"small-offline-business",name:a("Small Offline Business",l),icon:"svg-local-business"},{value:"corporation",name:a("Corporation",l),icon:"svg-corporation"},{value:"portfolio",name:a("Portfolio",l),icon:"svg-image-seo"}],otherCategory:{value:"other",name:a("Other:",l),icon:"svg-pencil",valueInput:null},selected:[]}},watch:{selected(o){this.setupWizardStore.category.category=o[0].value,this.triggerFeaturesUpdate(o[0].value)}},methods:{triggerFeaturesUpdate(o){const e=["aioseo-eeat","aioseo-image-seo","analytics","broken-link-checker","conversion-tools","optimized-search-appearance","sitemaps"];switch(o){case"blog":case"portfolio":case"other":e.push("aioseo-index-now"),e.push("aioseo-link-assistant");break;case"news-channel":e.push("aioseo-index-now"),e.push("aioseo-link-assistant"),e.push("aioseo-news-sitemap"),e.push("aioseo-rest-api"),e.push("aioseo-video-sitemap");break;case"online-store":e.push("aioseo-index-now"),e.push("aioseo-link-assistant"),e.push("aioseo-rest-api"),e.push("aioseo-video-sitemap");break;case"small-offline-business":e.push("aioseo-local-business"),e.push("aioseo-rest-api"),e.push("aioseo-video-sitemap");break;case"corporation":e.push("aioseo-index-now"),e.push("aioseo-link-assistant"),e.push("aioseo-local-business"),e.push("aioseo-news-sitemap"),e.push("aioseo-rest-api"),e.push("aioseo-video-sitemap");break}this.setupWizardStore.features=e},updateValue(o,e){this.selected=[],o&&(this.selected.push(e),e.value==="other"&&this.$nextTick(()=>{this.$refs["other-category"].$el.querySelector("input").focus()}))},getValue(o){return this.selected.includes(o)},isActive(o){return this.selected.findIndex(h=>h.value===o.value)!==-1},saveAndContinue(){this.loading=!0,this.setupWizardStore.saveWizard("category").then(()=>{this.$router.push(this.setupWizardStore.getNextLink)})}},mounted(){this.$nextTick(()=>{const o=this.categories.find(d=>d.value===this.setupWizardStore.category.category)||this.categories[0];this.selected.push(o),this.triggerFeaturesUpdate(o);const e=this.rootStore.aioseo.data.staticHomePage?this.rootStore.aioseo.data.staticHomePageTitle:this.optionsStore.options.searchAppearance.global.siteTitle;e&&this.setupWizardStore.category.siteTitle!==e&&(this.setupWizardStore.category.siteTitle=e);const h=this.rootStore.aioseo.data.staticHomePage?this.rootStore.aioseo.data.staticHomePageDescription:this.optionsStore.options.searchAppearance.global.metaDescription;h&&this.setupWizardStore.category.metaDescription!==h&&(this.setupWizardStore.category.metaDescription=h),this.loaded=!0})}},fe={class:"aioseo-wizard-category"},ve={class:"header"},Ve={class:"description"},He={class:"categories"},ye={key:0,class:"site-info"},we={class:"site-title aioseo-settings-row no-border"},Ce={class:"settings-name"},Se={class:"name small-margin"},be={class:"site-description aioseo-settings-row no-border no-margin small-padding"},ze={class:"settings-name"},xe={class:"name small-margin"},ke={class:"go-back"};function We(o,e,h,d,t,m){const S=n("wizard-header"),b=n("wizard-steps"),H=n("base-highlight-toggle"),z=n("grid-column"),x=n("grid-row"),k=n("base-input"),y=n("core-html-tags-editor"),w=n("router-link"),W=n("base-button"),M=n("wizard-body"),Z=n("wizard-close-and-exit"),B=n("wizard-container");return c(),g("div",fe,[r(S),r(B,null,{default:u(()=>[r(M,null,{footer:u(()=>[s("div",ke,[r(w,{to:d.setupWizardStore.getPrevLink,class:"no-underline"},{default:u(()=>[...e[4]||(e[4]=[_("←",-1)])]),_:1},8,["to"]),e[5]||(e[5]=_("   ",-1)),r(w,{to:d.setupWizardStore.getPrevLink},{default:u(()=>[_(p(t.strings.goBack),1)]),_:1},8,["to"])]),e[6]||(e[6]=s("div",{class:"spacer"},null,-1)),r(W,{type:"blue",loading:t.loading,onClick:m.saveAndContinue},{default:u(()=>[_(p(t.strings.saveAndContinue)+" →",1)]),_:1},8,["loading","onClick"])]),default:u(()=>[r(b),s("div",ve,p(t.strings.category),1),s("div",Ve,p(t.strings.selectCategory),1),s("div",He,[r(x,null,{default:u(()=>[(c(!0),g(R,null,G(t.categories,(i,L)=>(c(),v(z,{key:L,md:"6"},{default:u(()=>[r(H,{type:"radio",size:"medium",active:m.isActive(i),name:"category",modelValue:m.getValue(i),"onUpdate:modelValue":T=>m.updateValue(T,i)},{default:u(()=>[i.icon?(c(),v(C(i.icon),{key:0,class:"icon"})):V("",!0),_(" "+p(i.name),1)]),_:2},1032,["active","modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1}),r(H,{class:"other-category",type:"radio",size:"medium",active:m.isActive(t.otherCategory),name:"category",modelValue:m.getValue(t.otherCategory),"onUpdate:modelValue":e[1]||(e[1]=i=>m.updateValue(i,t.otherCategory))},{default:u(()=>[t.otherCategory.icon?(c(),v(C(t.otherCategory.icon),{key:0,class:"icon"})):V("",!0),_(" "+p(t.otherCategory.name)+" ",1),t.selected.length?(c(),v(k,{key:1,disabled:t.selected[0].value!=="other",size:"medium",modelValue:d.setupWizardStore.category.categoryOther,"onUpdate:modelValue":e[0]||(e[0]=i=>d.setupWizardStore.category.categoryOther=i),placeholder:t.strings.enterYourAnswer,ref:"other-category"},null,8,["disabled","modelValue","placeholder"])):V("",!0)]),_:1},8,["active","modelValue"])]),t.loaded?(c(),g("div",ye,[s("div",we,[s("div",Ce,[s("div",Se,p(t.strings.siteTitle),1)]),r(y,{modelValue:d.setupWizardStore.category.siteTitle,"onUpdate:modelValue":e[2]||(e[2]=i=>d.setupWizardStore.category.siteTitle=i),"line-numbers":!1,single:"","tags-context":"homePage","default-tags":["site_title","separator_sa","tagline"]},null,8,["modelValue"])]),s("div",be,[s("div",ze,[s("div",xe,p(t.strings.metaDescription),1)]),r(y,{modelValue:d.setupWizardStore.category.metaDescription,"onUpdate:modelValue":e[3]||(e[3]=i=>d.setupWizardStore.category.metaDescription=i),"line-numbers":!1,description:"","tags-context":"homePage","default-tags":["site_title","separator_sa","tagline"]},null,8,["modelValue"])])])):V("",!0)]),_:1}),r(Z)]),_:1})])}const io=f(_e,[["render",We]]);export{io as default};