import{f as A,a as T,u as j,e as w}from"./links.125d59c9.js";import{A as D,T as $}from"./TitleDescription.dfff7bf0.js";import{C as B}from"./Card.24b534de.js";import{C as F}from"./Tabs.14cdc788.js";import{C as L}from"./Tooltip.bcf420d9.js";import{C as g,S as q}from"./Schema.83d7bc02.js";import{x as r,o as s,c as b,k as m,b as S,F as N,L as O,l as n,a as i,I as V,D as f,t as c,C as p,q as M,T as U}from"./vue.runtime.esm-bundler.4a881941.js";import{_ as C}from"./_plugin-vue_export-helper.abeb2ae0.js";import{a as z}from"./index.e978df4e.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.ab8f4241.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./RadioToggle.91b7eae7.js";import"./ProBadge.07a48e27.js";import"./RobotsMeta.ce9c41a7.js";import"./Checkbox.257a03d8.js";import"./Checkmark.aaedf5f6.js";import"./Row.dbbe567c.js";import"./SettingsRow.f729cdc5.js";import"./tags.549c2c20.js";import"./Tags.cb4ba5da.js";import"./postSlug.ffc044fc.js";import"./Caret.02d7c74a.js";import"./metabox.e3fb2d0a.js";import"./cleanForSlug.cc6d9d47.js";import"./toString.7b877a36.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./get.038a6445.js";import"./GoogleSearchPreview.f2ebbae3.js";import"./HtmlTagsEditor.3dd82072.js";import"./Editor.e4c60376.js";import"./UnfilteredHtml.9de32d22.js";import"./Slide.7ee1d0f1.js";import"./TruSeoScore.b474bf15.js";import"./Ellipse.43a094b8.js";import"./Information.8e84b099.js";import"./Textarea.2ff0171c.js";import"./Blur.647f62cf.js";import"./Index.18716c31.js";import"./constants.238e5b7b.js";const R={setup(){return{licenseStore:A()}},components:{CustomFields:g,CustomFieldsLite:g},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 I(a,u,e,o,l,_){const d=r("custom-fields",!0),h=r("custom-fields-lite");return s(),b("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 P=C(R,[["render",I]]);const Q={setup(){return{optionsStore:T(),rootStore:j(),settingsStore:w()}},components:{Advanced:D,CoreCard:B,CoreMainTabs:F,CoreTooltip:L,CustomFields:P,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))}}},G={class:"aioseo-search-appearance-content-types"},H={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"),y=r("core-main-tabs"),k=r("core-card");return s(),b("div",G,[(s(!0),b(N,null,O(_.postTypes,(t,v)=>(s(),m(k,{key:v,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",H,[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(y,{tabs:l.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:x=>_.processChangeTab(t.name,x)},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 Ut=C(Q,[["render",W]]);export{Ut as default};
