import{m as x,b as w,u as B,j as D}from"./index.20192476.js";import{u as F}from"./PostTypes.d6c1987b.js";import{A as q,T as L}from"./TitleDescription.d7520ef7.js";import{C as N}from"./Card.46af096e.js";import{C as O}from"./Tabs.2fd33524.js";import{C as P}from"./Tooltip.b6b45c85.js";import{C,S as V}from"./Schema.88fa244a.js";import{_ as k}from"./_plugin-vue_export-helper.249dac1d.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.6789c400.js";import{a as E}from"./index.ee8124c6.js";import"./translations.12335a6a.js";import{_ as a}from"./default-i18n.54b5d8cd.js";import"./helpers.f95d5840.js";import"./constants.2019bcb3.js";import"./JsonValues.892a7505.js";import"./RadioToggle.64619d6b.js";import"./RobotsMeta.923dd147.js";import"./Checkbox.e983780b.js";import"./Checkmark.32f79576.js";import"./Row.f01f32cd.js";import"./SettingsRow.1934f141.js";import"./Editor.5a453aa4.js";import"./isEqual.51bf23f5.js";import"./_baseIsEqual.6bc92395.js";import"./_getTag.8dc22eac.js";import"./_baseClone.e959332d.js";import"./_arrayEach.f4f00336.js";import"./Caret.662da1f3.js";import"./Tags.45075d79.js";import"./postTitle.d67eb903.js";import"./metabox.dc73facf.js";import"./cleanForSlug.f9ffe7db.js";import"./toString.1401d490.js";import"./_baseTrim.940c51cf.js";import"./_stringToArray.08127ca9.js";import"./_baseSet.32e7a763.js";import"./regex.f8017116.js";import"./GoogleSearchPreview.2f81905c.js";import"./HtmlTagsEditor.4c8f78eb.js";import"./UnfilteredHtml.4ebe3c5f.js";import"./Slide.d0517fb0.js";import"./vue-router.fc4966b9.js";import"./ProBadge.7733ac87.js";import"./Information.82968754.js";import"./Textarea.5ebf7ab2.js";import"./Blur.31bfcf06.js";import"./Index.c0a0a208.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 b=c("custom-fields",!0),g=c("custom-fields-lite");return n(),S("div",J,[o.licenseStore.isUnlicensed?y("",!0):(n(),_(b,{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(),_(g,{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 b=c("svg-circle-question-mark"),g=c("core-tooltip"),v=c("core-main-tabs"),j=c("core-card");return n(),S("div",W,[(n(!0),S(M,null,U(f.postTypes,(e,A)=>(n(),_(j,{key:A,slug:`${e.name}SA`},{header:r(()=>[l("div",{class:z(["icon dashicons",o.getPostIconClass(e.icon)])},null,2),h(" "+m(e.label)+" ",1),u(g,{"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(b)]),_:2},1024)]),tabs:r(()=>[u(v,{tabs:p.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${e.name}SA`],internal:"",onChanged:T=>f.processChangeTab(e.name,T)},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 He=k(K,[["render",$]]);export{He as default};
