관리-도구
편집 파일: SearchAppearance.b0d38140.js
import{G as H}from"./constants.24c44c43.js";import{b as P,r as R}from"./index.ae2b6956.js";import{u as B}from"./MaxCounts.7c38e980.js";import{u as G}from"./Tags.36fc4b35.js";import{u as D}from"./Wizard.ae47db5f.js";import{B as N}from"./Checkbox.6db0b9ed.js";import{B as U}from"./RadioToggle.333e7750.js";import{C as M}from"./GoogleSearchPreview.c38187f9.js";import{C as O}from"./HtmlTagsEditor.48d4a46c.js";import{C as E}from"./PostTypeOptions.ea1ca999.js";import{W as I,a as Y,b as j}from"./Header.ac4dbaae.js";import{W as q}from"./CloseAndExit.3af45d2f.js";import{_ as F}from"./Steps.6848faa3.js";import"./translations.d159963e.js";import{c as u,C as i,l as c,v as d,o as m,a as o,x as p,t as n,G as f,b as _,k as J,E as K}from"./runtime-dom.esm-bundler.5c3c7d72.js";import{_ as Q}from"./_plugin-vue_export-helper.eefbdd86.js";import{u as X}from"./SetupWizardStore.5cece966.js";import{_ as a}from"./default-i18n.20001971.js";import"./helpers.c7282833.js";import"./helpers.979ce6ae.js";import"./Caret.d9cc70ba.js";import"./metabox.870afb5f.js";import"./cleanForSlug.c4a9e111.js";import"./toString.a2dfb892.js";import"./_baseTrim.11b89ad9.js";import"./_stringToArray.f9ddb970.js";import"./_baseSet.ab668497.js";import"./regex.8a6101c0.js";import"./addons.2e54f461.js";import"./upperFirst.eac3a366.js";import"./Checkmark.e40641dd.js";import"./Url.e2d414d9.js";import"./Editor.cf7b5e9d.js";import"./isEqual.4981d166.js";import"./_baseIsEqual.44a599a3.js";import"./_getTag.805e37e1.js";import"./_baseClone.6a6e57fd.js";import"./_arrayEach.6af5abac.js";import"./index.8c70464a.js";import"./UnfilteredHtml.e8ff6232.js";import"./PostTypes.dafa8837.js";import"./HighlightToggle.3168783f.js";import"./Radio.7b47f2fa.js";import"./Tooltip.73441134.js";import"./Row.df38a5f6.js";import"./Logo.6c9d2b19.js";import"./Index.4b4d1967.js";const l="all-in-one-seo-pack",Z={setup(){const{parseTags:S}=G({separator:void 0}),{maxRecommendedCount:s}=B(),{strings:C}=D({stage:"search-appearance"});return{GLOBAL_STRINGS:H,composableStrings:C,maxRecommendedCount:s,optionsStore:P(),parseTags:S,setupWizardStore:X()}},components:{BaseCheckbox:N,BaseRadioToggle:U,CoreGoogleSearchPreview:M,CoreHtmlTagsEditor:O,CorePostTypeOptions:E,WizardBody:I,WizardCloseAndExit:q,WizardContainer:Y,WizardHeader:j,WizardSteps:F},data(){return{loaded:!1,titleCount:0,descriptionCount:0,showHoverClass:!1,editing:!1,loading:!1,strings:R(this.composableStrings,{searchAppearance:a("Search Appearance",l),description:a("The way your site is displayed in search results is very important. Take some time to look over these settings and tweak as needed.",l),serpPreview:a("SERP Preview",l),editTitleAndDescription:a("Edit Title and Description",l),clickToAddSiteTitle:a("Click on the tags below to insert variables into your site title.",l),clickToAddSiteDescription:a("Click on the tags below to insert variables into your meta description.",l),siteTitle:a("Home Page Title",l),metaDescription:a("Meta Description",l),isSiteUnderConstruction:a("Is the site under construction or live (ready to be indexed)?",l),underConstruction:a("Under Construction",l),liveSite:a("Live Site",l),includeAllPostTypes:a("Include All Post Types",l),enableSitemap:a("Enable Sitemap",l),doYouHaveMultipleAuthors:a("Do you have multiple authors?",l),redirectAttachmentPages:a("Redirect attachment pages?",l),emailReports:a("Enable Email reports?",l)})}},methods:{addHoverClass(){this.showHoverClass=!0},removeHoverClass(){this.showHoverClass=!1},saveAndContinue(){this.loading=!0,this.setupWizardStore.saveWizard("searchAppearance").then(()=>{this.$router.push(this.setupWizardStore.getNextLink)})},skipStep(){this.setupWizardStore.saveWizard(),this.$router.push(this.setupWizardStore.getNextLink)}},mounted(){this.$nextTick(()=>{this.setupWizardStore.searchAppearance.redirectAttachmentPages=this.optionsStore.dynamicOptions.searchAppearance.postTypes.attachment.redirectAttachmentUrls==="attachment",this.loaded=!0})}},$={class:"aioseo-wizard-search-appearance"},ee={class:"header"},te={class:"description"},se={class:"aioseo-settings-row no-border"},oe={class:"settings-name"},re={class:"name small-margin"},ie={key:1,class:"action"},ne={key:0,class:"site-info"},ae={class:"site-title aioseo-settings-row no-border"},le={class:"settings-name"},de={class:"name small-margin"},ce=["innerHTML"],pe={class:"site-description aioseo-settings-row no-border"},me={class:"settings-name"},ue={class:"name small-margin"},_e=["innerHTML"],ge={class:"settings-name"},he={class:"name small-margin"},ve={key:1,class:"aioseo-settings-row no-border post-types"},Se={key:2,class:"aioseo-settings-row no-border enable-sitemaps"},Ce={key:3,class:"aioseo-settings-row no-border"},Ae={class:"settings-name"},ye={class:"name small-margin"},fe={key:4,class:"aioseo-settings-row no-border"},ze={class:"settings-name"},be={class:"name small-margin"},ke={class:"aioseo-settings-row no-border no-margin small-padding"},Te={class:"settings-name"},We={class:"name small-margin"},we={class:"go-back"},xe=o("div",{class:"spacer"},null,-1);function Ve(S,s,C,e,t,g){const z=d("wizard-header"),b=d("wizard-steps"),k=d("core-google-search-preview"),v=d("base-button"),A=d("core-html-tags-editor"),h=d("base-radio-toggle"),T=d("base-toggle"),W=d("core-post-type-options"),w=d("base-checkbox"),y=d("router-link"),x=d("wizard-body"),V=d("wizard-close-and-exit"),L=d("wizard-container");return m(),u("div",$,[i(z),i(L,null,{default:c(()=>[i(x,null,{footer:c(()=>[o("div",we,[i(y,{to:e.setupWizardStore.getPrevLink,class:"no-underline"},{default:c(()=>[p("←")]),_:1},8,["to"]),p(" "),i(y,{to:e.setupWizardStore.getPrevLink},{default:c(()=>[p(n(t.strings.goBack),1)]),_:1},8,["to"])]),xe,i(v,{type:"gray",onClick:g.skipStep},{default:c(()=>[p(n(t.strings.skipThisStep),1)]),_:1},8,["onClick"]),i(v,{type:"blue",loading:t.loading,onClick:g.saveAndContinue},{default:c(()=>[p(n(t.strings.saveAndContinue)+" →",1)]),_:1},8,["loading","onClick"])]),default:c(()=>[i(b),o("div",ee,n(t.strings.searchAppearance),1),o("div",te,n(t.strings.description),1),o("div",se,[o("div",oe,[o("div",re,n(t.strings.serpPreview),1)]),o("div",{class:f(["edit-site-info-activator",{hover:t.showHoverClass}]),onMouseenter:s[2]||(s[2]=(...r)=>g.addHoverClass&&g.addHoverClass(...r)),onMouseleave:s[3]||(s[3]=(...r)=>g.removeHoverClass&&g.removeHoverClass(...r))},[i(k,{title:e.parseTags(e.setupWizardStore.category.siteTitle),description:e.parseTags(e.setupWizardStore.category.metaDescription)},null,8,["title","description"]),t.showHoverClass&&!t.editing?(m(),u("div",{key:0,class:"background-fade",onClick:s[0]||(s[0]=r=>t.editing=!0)})):_("",!0),t.showHoverClass&&!t.editing?(m(),u("div",ie,[i(v,{size:"small",type:"black",onClick:s[1]||(s[1]=r=>t.editing=!0)},{default:c(()=>[p(n(t.strings.editTitleAndDescription),1)]),_:1})])):_("",!0)],34)]),t.editing?(m(),u("div",ne,[o("div",ae,[o("div",le,[o("div",de,n(t.strings.siteTitle),1)]),i(A,{modelValue:e.setupWizardStore.category.siteTitle,"onUpdate:modelValue":s[4]||(s[4]=r=>e.setupWizardStore.category.siteTitle=r),"line-numbers":!1,single:"",onCounter:s[5]||(s[5]=r=>t.titleCount=r.length),"tags-context":"homePage","default-tags":["site_title","separator_sa","tagline"]},{"tags-description":c(()=>[p(n(t.strings.clickToAddSiteTitle),1)]),_:1},8,["modelValue"]),o("div",{class:"max-recommended-count",innerHTML:e.maxRecommendedCount(t.titleCount,60)},null,8,ce)]),o("div",pe,[o("div",me,[o("div",ue,n(t.strings.metaDescription),1)]),i(A,{modelValue:e.setupWizardStore.category.metaDescription,"onUpdate:modelValue":s[6]||(s[6]=r=>e.setupWizardStore.category.metaDescription=r),"line-numbers":!1,onCounter:s[7]||(s[7]=r=>t.descriptionCount=r.length),"tags-context":"homePage","default-tags":["site_title","separator_sa","tagline"]},{"tags-description":c(()=>[p(n(t.strings.clickToAddSiteDescription),1)]),_:1},8,["modelValue"]),o("div",{class:"max-recommended-count",innerHTML:e.maxRecommendedCount(t.descriptionCount,160)},null,8,_e)])])):_("",!0),o("div",{class:f(["aioseo-settings-row no-border",[{"no-margin":e.setupWizardStore.searchAppearance.underConstruction},{"small-padding":e.setupWizardStore.searchAppearance.underConstruction}]])},[o("div",ge,[o("div",he,n(t.strings.isSiteUnderConstruction),1)]),i(h,{modelValue:e.setupWizardStore.searchAppearance.underConstruction,"onUpdate:modelValue":s[8]||(s[8]=r=>e.setupWizardStore.searchAppearance.underConstruction=r),name:"underConstruction",options:[{label:t.strings.underConstruction,value:!0,activeClass:"dark"},{label:t.strings.liveSite,value:!1}]},null,8,["modelValue","options"])],2),e.setupWizardStore.searchAppearance.underConstruction?_("",!0):(m(),u("div",ve,[i(T,{size:"medium",modelValue:e.setupWizardStore.searchAppearance.postTypes.postTypes.all,"onUpdate:modelValue":s[9]||(s[9]=r=>e.setupWizardStore.searchAppearance.postTypes.postTypes.all=r)},{default:c(()=>[p(n(t.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"]),e.setupWizardStore.searchAppearance.postTypes.postTypes.all?_("",!0):(m(),J(W,{key:0,options:e.setupWizardStore.searchAppearance.postTypes,type:"postTypes"},null,8,["options"]))])),e.setupWizardStore.searchAppearance.underConstruction?_("",!0):(m(),u("div",Se,[i(w,{round:"",class:"no-clicks",type:"green",modelValue:!0,onClick:K(()=>{},["stop","prevent"])},{default:c(()=>[p(n(t.strings.enableSitemap),1)]),_:1})])),e.setupWizardStore.searchAppearance.underConstruction?_("",!0):(m(),u("div",Ce,[o("div",Ae,[o("div",ye,n(t.strings.doYouHaveMultipleAuthors),1)]),i(h,{modelValue:e.setupWizardStore.searchAppearance.multipleAuthors,"onUpdate:modelValue":s[10]||(s[10]=r=>e.setupWizardStore.searchAppearance.multipleAuthors=r),name:"multipleAuthors",class:"small",options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])])),e.setupWizardStore.searchAppearance.underConstruction?_("",!0):(m(),u("div",fe,[o("div",ze,[o("div",be,n(t.strings.redirectAttachmentPages),1)]),i(h,{modelValue:e.setupWizardStore.searchAppearance.redirectAttachmentPages,"onUpdate:modelValue":s[11]||(s[11]=r=>e.setupWizardStore.searchAppearance.redirectAttachmentPages=r),name:"redirectAttachmentPages",class:"small",options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])])),o("div",ke,[o("div",Te,[o("div",We,n(t.strings.emailReports),1)]),i(h,{modelValue:e.setupWizardStore.searchAppearance.emailReports,"onUpdate:modelValue":s[12]||(s[12]=r=>e.setupWizardStore.searchAppearance.emailReports=r),name:"emailReports",class:"small",options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])])]),_:1}),i(V)]),_:1})])}const bt=Q(Z,[["render",Ve]]);export{bt as default};