import{c as A,e as w,u as x,d as T}from"./links.23796d97.js";import{A as D,T as $}from"./TitleDescription.6798b858.js";import{C as B}from"./Card.79fe964d.js";import{C as F}from"./Tabs.8ec856a5.js";import{C as L}from"./Tooltip.6979830f.js";import{C as b,S as q}from"./Schema.2874d32b.js";import{r,o as s,c as g,b as m,f as S,F as N,h as O,w as n,a as i,n as V,g as f,t as c,d as p,D as M,j as U}from"./vue.runtime.esm-bundler.b39e1078.js";import{_ as y}from"./_plugin-vue_export-helper.b97bdf23.js";import{a as z}from"./index.0eabb636.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.22a096cb.js";import"./Caret.164d8058.js";/* empty css                                            *//* empty css                                              */import"./constants.1758f66e.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";/* empty css                                              */import"./RadioToggle.334ba6b1.js";import"./ProBadge.34da75c2.js";import"./RobotsMeta.5e9193c1.js";import"./Checkbox.17c05fc5.js";import"./Checkmark.e0bb6305.js";import"./Row.5242dafa.js";import"./SettingsRow.1adac8e2.js";import"./tags.1952ae10.js";import"./Tags.49706f1a.js";import"./postContent.dbf3451c.js";import"./cleanForSlug.383040f4.js";import"./toString.0891eb3e.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./html.e224f763.js";import"./get.ebf1fee6.js";import"./GoogleSearchPreview.104cd74f.js";import"./HtmlTagsEditor.b31d68d2.js";import"./Editor.5c187525.js";import"./UnfilteredHtml.2e4271be.js";import"./Slide.cdf6c622.js";import"./TruSeoScore.29220195.js";import"./Ellipse.1be120e0.js";import"./Information.70c6532e.js";import"./Textarea.844f418e.js";import"./Blur.8cc39c73.js";import"./Index.f7bbb33f.js";const R={setup(){return{licenseStore:A()}},components:{CustomFields:b,CustomFieldsLite:b},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean}},E={class:"aioseo-sa-ct-custom-fields-view"};function P(a,u,e,o,l,_){const d=r("custom-fields",!0),h=r("custom-fields-lite");return s(),g("div",E,[o.licenseStore.isUnlicensed?S("",!0):(s(),m(d,{key:0,type:e.type,object:e.object,options:e.options,"show-bulk":e.showBulk},null,8,["type","object","options","show-bulk"])),o.licenseStore.isUnlicensed?(s(),m(h,{key:1,type:e.type,object:e.object,options:e.options,"show-bulk":e.showBulk},null,8,["type","object","options","show-bulk"])):S("",!0)])}const Q=y(R,[["render",P]]);const G={setup(){return{optionsStore:w(),rootStore:x(),settingsStore:T()}},components:{Advanced:D,CoreCard:B,CoreMainTabs:F,CoreTooltip:L,CustomFields:Q,Schema:q,SvgCircleQuestionMark:z,TitleDescription:$},data(){return{internalDebounce:null,strings:{label:this.$t.__("Label:",this.$td),name:this.$t.__("Slug:",this.$td)},tabs:[{slug:"title-description",name:this.$t.__("Title & Description",this.$td),access:"aioseo_search_appearance_settings",pro:!1},{slug:"schema",name:this.$t.__("Schema Markup",this.$td),access:"aioseo_search_appearance_settings",pro:!0},{slug:"custom-fields",name:this.$t.__("Custom Fields",this.$td),access:"aioseo_search_appearance_settings",pro:!0},{slug:"advanced",name:this.$t.__("Advanced",this.$td),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{postTypes(){return this.rootStore.aioseo.postData.postTypes.filter(a=>a.name!=="attachment")}},methods:{processChangeTab(a,u){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${a}SA`,value:u}),setTimeout(()=>{this.internalDebounce=!1},50))}}},H={class:"aioseo-search-appearance-content-types"},I={class:"aioseo-description"},J=i("br",null,null,-1),K=i("br",null,null,-1);function W(a,u,e,o,l,_){const d=r("svg-circle-question-mark"),h=r("core-tooltip"),C=r("core-main-tabs"),v=r("core-card");return s(),g("div",H,[(s(!0),g(N,null,O(_.postTypes,(t,k)=>(s(),m(v,{key:k,slug:`${t.name}SA`},{header:n(()=>[i("div",{class:V(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},null,2),f(" "+c(t.label)+" ",1),p(h,{"z-index":"99999"},{tooltip:n(()=>[i("div",I,[f(c(l.strings.label)+" ",1),i("strong",null,c(t.label),1),J,f(" "+c(l.strings.name)+" ",1),i("strong",null,c(t.name),1),K])]),default:n(()=>[p(d)]),_:2},1024)]),tabs:n(()=>[p(C,{tabs:l.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:j=>_.processChangeTab(t.name,j)},null,8,["tabs","active","onChanged"])]),default:n(()=>[p(U,{name:"route-fade",mode:"out-in"},{default:n(()=>[(s(),m(M(o.settingsStore.settings.internalTabs[`${t.name}SA`]),{object:t,separator:o.optionsStore.options.searchAppearance.global.separator,options:o.optionsStore.dynamicOptions.searchAppearance.postTypes[t.name],type:"postTypes"},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Et=y(G,[["render",W]]);export{Et as default};
