관리-도구
편집 파일: SetupWizardStore.hjajzbq0.js
import{d as l,u as o,h as i,l as u,a as c,b as g}from"./index.ba51ghj9.js";const d=l("SetupWizardStore",{state:()=>({currentStage:"welcome",stages:["import","category","additional-information","features","search-appearance","smart-recommendations","search-console","license-key"],importers:[],category:{category:"blog",categoryOther:null,siteTitle:"",metaDescription:""},additionalInformation:{siteRepresents:"organization",person:null,organizationName:null,orgnaizationDescription:null,organizationLogo:null,personName:null,personLogo:null,phone:null,socialShareImage:null,social:{profiles:{sameUsername:{enable:!0,username:null,included:["facebookPageUrl","twitterUrl","pinterestUrl","instagramUrl","youtubeUrl","linkedinUrl"]},urls:{facebookPageUrl:null,twitterUrl:null,instagramUrl:null,pinterestUrl:null,youtubeUrl:null,linkedinUrl:null,tumblrUrl:null,yelpPageUrl:null,soundCloudUrl:null,wikipediaUrl:null,myspaceUrl:null,googlePlacesUrl:null,wordPressUrl:null}}}},features:[],searchAppearance:{underConstruction:!1,postTypes:{postTypes:{all:!0,included:["post","page","attachment","product"]}},multipleAuthors:!0,redirectAttachmentPages:!0},smartRecommendations:{accountInfo:null,usageTracking:!0},licenseKey:null,showUsageTrackingModal:!1}),getters:{shouldShowImportStep:()=>o().aioseo.importers.filter(n=>n.canImport).length,getNextLink:e=>{const n={name:e.stages[0]},t=e.stages.findIndex(r=>r===e.currentStage);return t===-1||(n.name=e.stages[t+1]?e.stages[t+1]:"success"),n},getPrevLink:e=>{const n={name:e.stages[0]},t=e.stages.findIndex(r=>r===e.currentStage);return t===-1||(n.name=e.stages[t-1]?e.stages[t-1]:"welcome"),n},getCurrentStageCount:e=>{const n=e.stages.findIndex(t=>t===e.currentStage);return n===-1?e.currentStage==="success"?e.getTotalStageCount:0:n+1},getTotalStageCount:e=>e.stages.length},actions:{saveWizard(e){const n=o(),t={...this.$state};return t.showUsageTrackingModal=!1,i.post(u.restUrl("wizard")).send({section:e,wizard:t,network:n.aioseo.data.isNetworkAdmin}).then(r=>{if(r.body.options){const s=c(),a=g();a.options=r.body.options,s.updateOriginalOptions("options",r.body.options)}})},loadState(e){Object.keys(e).forEach(n=>{this[n]=e[n]})}}});export{d as u};