관리-도구
편집 파일: Category.40338360.js
import{b as A,u as P,r as D}from"./index.5a710757.js";import{u as U}from"./Wizard.f0faf80a.js";import{B as O}from"./HighlightToggle.6ee9eb70.js";import{C as N}from"./HtmlTagsEditor.b85e0cfa.js";import{G as E,a as F}from"./Row.f01f32cd.js";import{_ as f}from"./_plugin-vue_export-helper.249dac1d.js";import{o as c,c as g,a as s,C as r,l as u,v as a,x as h,t as p,F as G,J as I,k as v,q as C,b as V}from"./runtime-dom.esm-bundler.6789c400.js";import{a as R,S as q}from"./ImageSeo.6ff5a6fb.js";import{f as Y}from"./Caret.662da1f3.js";import{W as J,a as j,b as K}from"./Header.141374e8.js";import{W as Q}from"./CloseAndExit.7f340eb6.js";import{_ as X}from"./Steps.bdb4957a.js";import"./translations.12335a6a.js";import{u as $}from"./SetupWizardStore.f2a8f9f3.js";import{_ as n}from"./default-i18n.54b5d8cd.js";import"./helpers.f95d5840.js";import"./addons.ef42f038.js";import"./upperFirst.96c04516.js";import"./_stringToArray.08127ca9.js";import"./toString.1401d490.js";import"./Checkbox.e983780b.js";import"./Checkmark.32f79576.js";import"./Radio.e92f8160.js";import"./Editor.e5877fb8.js";import"./isEqual.51bf23f5.js";import"./_baseIsEqual.6bc92395.js";import"./_getTag.8dc22eac.js";import"./_baseClone.50c6045c.js";import"./_arrayEach.f4f00336.js";import"./index.ee8124c6.js";import"./UnfilteredHtml.559aa5ad.js";import"./constants.2019bcb3.js";import"./Logo.f6ea28bf.js";import"./Index.c4d148bc.js";const ee={},oe={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-blog"},te=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),se=[te];function ie(o,e){return c(),g("svg",oe,se)}const re=f(ee,[["render",ie]]),ae={},ne={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-corporation"},le=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),ce=[le];function de(o,e){return c(),g("svg",ne,ce)}const ue=f(ae,[["render",de]]),pe={},me={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-news-channel"},ge=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),_e=[ge];function he(o,e){return c(),g("svg",me,_e)}const fe=f(pe,[["render",he]]),ve={},Ve={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-online-store"},He=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),ye=[He];function we(o,e){return c(),g("svg",Ve,ye)}const Ce=f(ve,[["render",we]]),l="all-in-one-seo-pack",Se={setup(){const{strings:o}=U({stage:"category"});return{optionsStore:A(),rootStore:P(),setupWizardStore:$(),composableStrings:o}},components:{BaseHighlightToggle:O,CoreHtmlTagsEditor:N,GridColumn:E,GridRow:F,SvgBlog:re,SvgCorporation:ue,SvgLocalBusiness:R,SvgImageSeo:q,SvgNewsChannel:fe,SvgOnlineStore:Ce,SvgPencil:Y,WizardBody:J,WizardCloseAndExit:Q,WizardContainer:j,WizardHeader:K,WizardSteps:X},data(){return{loaded:!1,titleCount:0,descriptionCount:0,loading:!1,strings:D(this.composableStrings,{category:n("Which category best describes your website?",l),selectCategory:n("Select a category to help us narrow down the SEO options that work best for you and your site.",l),enterYourAnswer:n("Enter your answer",l),siteTitle:n("Home Page Title",l),metaDescription:n("Home Page Meta Description",l)}),categories:[{value:"blog",name:n("Blog",l),icon:"svg-blog"},{value:"news-channel",name:n("News Channel",l),icon:"svg-news-channel"},{value:"online-store",name:n("Online Store",l),icon:"svg-online-store"},{value:"small-offline-business",name:n("Small Offline Business",l),icon:"svg-local-business"},{value:"corporation",name:n("Corporation",l),icon:"svg-corporation"},{value:"portfolio",name:n("Portfolio",l),icon:"svg-image-seo"}],otherCategory:{value:"other",name:n("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","aioseo-redirects","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(_=>_.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 _=this.rootStore.aioseo.data.staticHomePage?this.rootStore.aioseo.data.staticHomePageDescription:this.optionsStore.options.searchAppearance.global.metaDescription;_&&this.setupWizardStore.category.metaDescription!==_&&(this.setupWizardStore.category.metaDescription=_),this.loaded=!0})}},be={class:"aioseo-wizard-category"},ze={class:"header"},xe={class:"description"},ke={class:"categories"},We={key:0,class:"site-info"},Me={class:"site-title aioseo-settings-row no-border"},Ze={class:"settings-name"},Be={class:"name small-margin"},Le={class:"site-description aioseo-settings-row no-border no-margin small-padding"},Te={class:"settings-name"},Ae={class:"name small-margin"},Pe={class:"go-back"},De=s("div",{class:"spacer"},null,-1);function Ue(o,e,_,d,t,m){const S=a("wizard-header"),b=a("wizard-steps"),H=a("base-highlight-toggle"),z=a("grid-column"),x=a("grid-row"),k=a("base-input"),y=a("core-html-tags-editor"),w=a("router-link"),W=a("base-button"),M=a("wizard-body"),Z=a("wizard-close-and-exit"),B=a("wizard-container");return c(),g("div",be,[r(S),r(B,null,{default:u(()=>[r(M,null,{footer:u(()=>[s("div",Pe,[r(w,{to:d.setupWizardStore.getPrevLink,class:"no-underline"},{default:u(()=>[h("←")]),_:1},8,["to"]),h(" "),r(w,{to:d.setupWizardStore.getPrevLink},{default:u(()=>[h(p(t.strings.goBack),1)]),_:1},8,["to"])]),De,r(W,{type:"blue",loading:t.loading,onClick:m.saveAndContinue},{default:u(()=>[h(p(t.strings.saveAndContinue)+" →",1)]),_:1},8,["loading","onClick"])]),default:u(()=>[r(b),s("div",ze,p(t.strings.category),1),s("div",xe,p(t.strings.selectCategory),1),s("div",ke,[r(x,null,{default:u(()=>[(c(!0),g(G,null,I(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),h(" "+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),h(" "+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",We,[s("div",Me,[s("div",Ze,[s("div",Be,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",Le,[s("div",Te,[s("div",Ae,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 Ho=f(Se,[["render",Ue]]);export{Ho as default};