import{i as x,a as w,u as B,g as D}from"./index.ByF2aI-G.js";import{u as F}from"./PostTypes.DQr7JgPS.js";import{A as q,T as L}from"./TitleDescription.BRSz3uWv.js";import{C as N}from"./Card.Bqq4cvaT.js";import{C as O}from"./Tabs.BGx54iMB.js";import{C as P}from"./Tooltip.B0brI66q.js";import{C,S as V}from"./Schema.Bzak8Red.js";import{_ as k}from"./_plugin-vue_export-helper.BN1snXvA.js";import{v as c,o as n,c as S,k as _,b as y,F as M,J as U,l as r,a as l,G as z,x as h,t as m,C as u,q as I,T as R}from"./runtime-dom.esm-bundler.DKw-RQqs.js";import{a as E}from"./index.Olu2afa7.js";import"./translations.Ur07Kmot.js";import{_ as a}from"./default-i18n.DvLqo3S3.js";import"./helpers.yjC6K_2A.js";import"./constants.DfsCWbZk.js";import"./JsonValues.CjR5TkFn.js";import"./RadioToggle.Cv8la4G_.js";import"./RobotsMeta.C2jPAXOo.js";import"./Checkbox.BAIONgTE.js";import"./Checkmark.BedAg8BV.js";import"./Row.D0941SYu.js";import"./SettingsRow.Ch1FEDlp.js";import"./Editor.Bq1LihFR.js";import"./isEqual.DPyFnjxk.js";import"./_baseIsEqual.BLPD4oRg.js";import"./_getTag.KnvRqur7.js";import"./_baseClone.B3PqkIxk.js";import"./_arrayEach.Fgt6pfHj.js";import"./Caret.DMa7g0j7.js";import"./Tags.CWcNgqQw.js";import"./postSlug.Bl0Z6T8y.js";import"./metabox.SRNlGbGk.js";import"./cleanForSlug.DaL6KzBn.js";import"./toString.Dc7QMRQR.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.Bbqt6CgN.js";import"./GoogleSearchPreview.CgoMblv2.js";import"./HtmlTagsEditor.CJg9npyw.js";import"./UnfilteredHtml.CeQlPW48.js";import"./Slide.CdVEnD7S.js";import"./vue-router.CGjDmB5N.js";import"./TruSeoScore.D1tEO-2v.js";import"./ProBadge.BJ3spTo5.js";import"./Information.CzCa0jo7.js";import"./Ellipse.Bgc7-2f7.js";import"./Textarea.B0Pj3aXn.js";import"./Blur.D3p3Plqi.js";import"./Index.BQLC1nYH.js";const G={setup(){return{licenseStore:x()}},components:{CustomFields:C,CustomFieldsLite:C},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean}},J={class:"aioseo-sa-ct-custom-fields-view"};function Q(s,d,t,o,p,f){const g=c("custom-fields",!0),b=c("custom-fields-lite");return n(),S("div",J,[o.licenseStore.isUnlicensed?y("",!0):(n(),_(g,{key:0,type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk},null,8,["type","object","options","show-bulk"])),o.licenseStore.isUnlicensed?(n(),_(b,{key:1,type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk},null,8,["type","object","options","show-bulk"])):y("",!0)])}const H=k(G,[["render",Q]]),i="all-in-one-seo-pack",K={setup(){const{getPostIconClass:s}=F();return{getPostIconClass:s,optionsStore:w(),rootStore:B(),settingsStore:D()}},components:{Advanced:q,CoreCard:N,CoreMainTabs:O,CoreTooltip:P,CustomFields:H,Schema:V,SvgCircleQuestionMark:E,TitleDescription:L},data(){return{internalDebounce:null,strings:{label:a("Label:",i),name:a("Slug:",i)},tabs:[{slug:"title-description",name:a("Title & Description",i),access:"aioseo_search_appearance_settings",pro:!1},{slug:"schema",name:a("Schema Markup",i),access:"aioseo_search_appearance_settings",pro:!0},{slug:"custom-fields",name:a("Custom Fields",i),access:"aioseo_search_appearance_settings",pro:!0},{slug:"advanced",name:a("Advanced",i),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{postTypes(){return this.rootStore.aioseo.postData.postTypes.filter(s=>s.name!=="attachment")}},methods:{processChangeTab(s,d){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${s}SA`,value:d}),setTimeout(()=>{this.internalDebounce=!1},50))}}},W={class:"aioseo-search-appearance-content-types"},X={class:"aioseo-description"},Y=l("br",null,null,-1),Z=l("br",null,null,-1);function $(s,d,t,o,p,f){const g=c("svg-circle-question-mark"),b=c("core-tooltip"),v=c("core-main-tabs"),A=c("core-card");return n(),S("div",W,[(n(!0),S(M,null,U(f.postTypes,(e,T)=>(n(),_(A,{key:T,slug:`${e.name}SA`},{header:r(()=>[l("div",{class:z(["icon dashicons",o.getPostIconClass(e.icon)])},null,2),h(" "+m(e.label)+" ",1),u(b,{"z-index":"99999"},{tooltip:r(()=>[l("div",X,[h(m(p.strings.label)+" ",1),l("strong",null,m(e.label),1),Y,h(" "+m(p.strings.name)+" ",1),l("strong",null,m(e.name),1),Z])]),default:r(()=>[u(g)]),_:2},1024)]),tabs:r(()=>[u(v,{tabs:p.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${e.name}SA`],internal:"",onChanged:j=>f.processChangeTab(e.name,j)},null,8,["tabs","active","onChanged"])]),default:r(()=>[u(R,{name:"route-fade",mode:"out-in"},{default:r(()=>[(n(),_(I(o.settingsStore.settings.internalTabs[`${e.name}SA`]),{object:e,separator:o.optionsStore.options.searchAppearance.global.separator,options:o.optionsStore.dynamicOptions.searchAppearance.postTypes[e.name],type:"postTypes"},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Ke=k(K,[["render",$]]);export{Ke as default};
