import{G as P,a as J}from"./Row.DRnp1mVs.js";import{_ as C}from"./_plugin-vue_export-helper.BN1snXvA.js";import{v as c,o as t,c as n,B as b,l,F as k,J as x,k as _,a as o,m as $,C as B,t as g,U as q,M as D,b as d,g as G,u as M,E as I,x as E}from"./runtime-dom.esm-bundler.tPRhSV4q.js";import{C as j}from"./SettingsRow.BwYvQArk.js";import{_ as p}from"./default-i18n.DXRQgkn2.js";import{C as U}from"./Tooltip.DhkkBQWW.js";import{S as R}from"./CheckSolid.CDvG9IOI.js";import{c as W}from"./index.Dbgw3oZ8.js";import{T as Z}from"./Slide.fjAuzpC8.js";const F={components:{GridColumn:P,GridRow:J},props:{options:{type:Array,required:!0},name:{type:String,required:!0},modelValue:String}},z={class:"aioseo-box-toggle"},K=["id","name","onInput","checked"],Q=["for"];function X(e,i,s,H,u,r){const h=c("grid-column"),y=c("grid-row");return t(),n("div",z,[b(y,null,{default:l(()=>[(t(!0),n(k,null,x(s.options,(v,m)=>(t(),_(h,{key:m,sm:"6",md:"4"},{default:l(()=>[o("input",{id:`id_${s.name}_${m}`,name:s.name,type:"radio",onInput:w=>e.$emit("update:modelValue",v.value),checked:v.value===s.modelValue},null,40,K),o("label",{for:`id_${s.name}_${m}`},[$(e.$slots,v.slot,{},()=>[B(g(v.label),1)])],8,Q)]),_:2},1024))),128))]),_:3})])}const Y=C(F,[["render",X]]),ee={props:{description:{type:String},attributes:{type:Array,required:!0}}},te={class:"aioseo-attributes"},oe={class:"aioseo-description"},se={class:"aioseo-attributes-list"},ne=["innerHTML"];function re(e,i,s,H,u,r){return t(),n("div",te,[o("div",oe,g(s.description),1),o("ul",se,[(t(!0),n(k,null,x(s.attributes,(h,y)=>(t(),n("li",{key:y},[o("div",null,[o("code",null,g(h.name),1)]),o("div",null,[o("span",{class:"aioseo-description",innerHTML:h.description},null,8,ne)])]))),128))])])}const ie=C(ee,[["render",re],["__scopeId","data-v-4823ddd8"]]),ce={components:{CoreTooltip:U,SvgCircleCheckSolid:R,SvgCopy:W},props:{message:{type:String,required:!0}},data(){return{copied:!1}},computed:{copyText(){return this.copied?this.$t.__("Copied!",this.$td):this.$t.__("Click to Copy",this.$td)}},methods:{onCopy(){this.copied=!0;const e=this.$refs.copy;e.popperJS&&(e.popperJS.destroy(),e.popperJS=null),e.showPopper=!1,setTimeout(()=>{e.popperJS&&(e.popperJS.destroy(),e.popperJS=null),e.showPopper=!1,this.copied=!1},2e3)},onError(){}}},le={class:"aioseo-copy-block"},ae={class:"message"},de={ref:"copy",class:"copy"};function ue(e,i,s,H,u,r){const h=c("svg-copy"),y=c("svg-circle-check-solid"),v=c("core-tooltip"),m=q("clipboard");return t(),n("div",le,[o("div",ae,g(s.message),1),b(v,{class:"copy-tooltip",type:"action"},{tooltip:l(()=>[B(g(r.copyText),1)]),default:l(()=>[D((t(),n("div",de,[u.copied?d("",!0):(t(),_(h,{key:0})),u.copied?(t(),_(y,{key:1})):d("",!0)])),[[m,s.message,"copy"],[m,r.onCopy,"success"],[m,r.onError,"error"]])]),_:1})])}const _e=C(ce,[["render",ue]]),pe={class:"aioseo-slide-content"},ge={key:0,class:"main-box"},he=["innerHTML"],me={key:0,class:"advanced-settings"},fe={key:1,class:"extra-box"},ve={__name:"SlideContent",props:{item:{type:Object,required:!0}},setup(e){const i="all-in-one-seo-pack",s=G(!1),H={advancedSettings:p("Advanced Settings",i)};return(u,r)=>(t(),n("div",pe,[e.item.slot!=="extra"?(t(),n("div",ge,[o("div",null,[o("div",null,[e.item.desc?(t(),n("div",{key:0,class:"aioseo-description",innerHTML:e.item.desc},null,8,he)):d("",!0),e.item.copy?(t(),_(M(_e),{key:1,message:e.item.copy},null,8,["message"])):d("",!0),e.item.hasAdvanced&&!s.value?(t(),n("a",{key:2,class:"advanced-settings-link",href:"#",onClick:r[0]||(r[0]=I(h=>s.value=!s.value,["prevent"]))},g(H.advancedSettings),1)):d("",!0)]),u.$slots.advanced?(t(),_(M(Z),{key:0,active:s.value},{default:l(()=>[s.value?(t(),n("div",me,[$(u.$slots,"advanced")])):d("",!0)]),_:3},8,["active"])):d("",!0)])])):d("",!0),e.item.slot==="extra"?(t(),n("div",fe,[$(u.$slots,"extraBox")])):d("",!0)]))}},Ce={},ye={viewBox:"0 0 59 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-gutenberg-block"},be=o("rect",{x:"1.5",y:"1.50024",stroke:"currentColor","stroke-width":"3","stroke-dasharray":"5 3"},null,-1),He=o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M47.6849 10.0276H11.3151V43.9728H47.6849V10.0276ZM22.6301 25.8377V28.1766H28.7115V34.2742H31.0967V28.1766H37.1781V25.8377H31.0967V19.7262H28.7115V25.8377H22.6301Z",fill:"currentcolor"},null,-1),Ve=[be,He];function $e(e,i){return t(),n("svg",ye,Ve)}const ke=C(Ce,[["render",$e]]),xe={},we={viewBox:"0 0 110 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-php"},Se=E('',6),Le=[Se];function Me(e,i){return t(),n("svg",we,Le)}const Be=C(xe,[["render",Me]]),Ze={},Te={viewBox:"0 0 59 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-shortcode"},Ae=o("path",{d:"M0 0.000244141H11V4.31055H5.91633V34.6692H11V39.0002H0V0.000244141Z",fill:"currentColor"},null,-1),Ne=o("path",{d:"M34.1337 0.000244141H40L25.8168 39.0002H20L34.1337 0.000244141Z",fill:"currentColor"},null,-1),Oe=o("path",{d:"M59 0.000244141H48V4.31055H53.0837V34.6692H48V39.0002H59V0.000244141Z",fill:"currentColor"},null,-1),Pe=[Ae,Ne,Oe];function Je(e,i){return t(),n("svg",Te,Pe)}const qe=C(Ze,[["render",Je]]),De={},Ge={viewBox:"0 0 57 57",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-widget"},Ie=o("path",{d:"M48.6875 7.12506H8.3125C7.00625 7.12506 5.9375 8.19381 5.9375 9.50006V23.7501C5.9375 25.0563 7.00625 26.1251 8.3125 26.1251H48.6875C49.9938 26.1251 51.0625 25.0563 51.0625 23.7501V9.50006C51.0625 8.19381 49.9938 7.12506 48.6875 7.12506ZM46.3125 21.3751V11.8751H10.6875V21.3751H46.3125ZM46.3125 45.1251V35.6251H10.6875V45.1251H46.3125ZM8.3125 30.8751H48.6875C49.9938 30.8751 51.0625 31.9438 51.0625 33.2501V47.5001C51.0625 48.8063 49.9938 49.8751 48.6875 49.8751H8.3125C7.00625 49.8751 5.9375 48.8063 5.9375 47.5001V33.2501C5.9375 31.9438 7.00625 30.8751 8.3125 30.8751Z",fill:"currentColor"},null,-1),Ee=[Ie];function je(e,i){return t(),n("svg",Ge,Ee)}const Ue=C(De,[["render",je]]),f="all-in-one-seo-pack",Re={components:{BaseBoxToggle:Y,CoreAttributesList:ie,CoreSettingsRow:j,SlideContent:ve,SvgGutenbergBlock:ke,SvgPhp:Be,SvgShortcode:qe,SvgWidget:Ue,TransitionSlide:Z},props:{label:{type:String,default(){return p("Display Info",f)}},options:{type:Object,required:!0},plural:{type:Boolean,default(){return!1}}},data(){return{currentItem:Object.keys(this.options)[0],strings:{singular:{gutenbergBlock:p("Gutenberg Block",f),phpCode:p("PHP Code",f),shortcode:p("Shortcode",f),widget:p("Widget",f)},plural:{gutenbergBlock:p("Gutenberg Blocks",f),phpCode:p("PHP Code",f),shortcode:p("Shortcodes",f),widget:p("Widgets",f)}}}},computed:{boxToggleOptions(){return Object.keys(this.options).map(i=>({value:i,slot:i,...this.options[i]}))},boxStrings(){return this.plural?this.strings.plural:this.strings.singular}},methods:{slotName(e){return e.hasAdvanced?"advanced":e.slot==="extra"?"extraBox":e.slot}},watch:{currentItem(e){this.currentItem=e}}},We={class:"ui-element-slider-content"};function Fe(e,i,s,H,u,r){const h=c("svg-shortcode"),y=c("svg-gutenberg-block"),v=c("svg-php"),m=c("svg-widget"),w=c("base-box-toggle"),S=c("core-attributes-list"),L=c("slide-content"),T=c("transition-slide"),A=c("core-settings-row");return t(),_(A,{class:"aioseo-ui-element-slider",name:s.label},{content:l(()=>[b(w,{modelValue:u.currentItem,"onUpdate:modelValue":i[0]||(i[0]=a=>u.currentItem=a),name:"ui-element-slider",options:r.boxToggleOptions},{extra:l(()=>[$(e.$slots,"extra")]),shortcode:l(()=>[b(h),o("p",null,g(r.boxStrings.shortcode),1)]),block:l(()=>[b(y),o("p",null,g(r.boxStrings.gutenbergBlock),1)]),php:l(()=>[b(v),o("p",null,g(r.boxStrings.phpCode),1)]),widget:l(()=>[b(m),o("p",null,g(r.boxStrings.widget),1)]),_:3},8,["modelValue","options"]),o("div",We,[(t(!0),n(k,null,x(r.boxToggleOptions,(a,N)=>(t(),_(T,{key:N,active:a.value===u.currentItem},{default:l(()=>[a.multiple?d("",!0):(t(),_(L,{key:0,item:a},{[r.slotName(a)]:l(()=>[a.attributes?(t(),_(S,{key:0,attributes:a.attributes,description:a.attributesDescription},null,8,["attributes","description"])):d("",!0),$(e.$slots,r.slotName(a),{item:a})]),_:2},1032,["item"])),a.multiple?(t(!0),n(k,{key:1},x(a.multiple,(V,O)=>(t(),_(L,{key:O,item:V},{[r.slotName(V)]:l(()=>[V.attributes?(t(),_(S,{key:0,attributes:V.attributes,description:V.attributesDescription},null,8,["attributes","description"])):d("",!0)]),_:2},1032,["item"]))),128)):d("",!0)]),_:2},1032,["active"]))),128))])]),_:3},8,["name"])}const nt=C(Re,[["render",Fe]]);export{nt as C};