import{B as P}from"./BoxToggle.cc3b8153.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{f as t,i as r,j as s,U as m,O as k,ad as w,aq as a,ai as D,a0 as C,R as d,Y as J,Q as _,M as l,ae as j,v as M,T as q,B as x,r as E,ar as I}from"./vendor-vue-ui.de3ab35f.js";import{C as U}from"./SettingsRow.0c329e43.js";import"./app-core.ae890a3f.js";import{C as G}from"./Tooltip.ae7a1028.js";import{S as R}from"./CheckSolid.7f805a48.js";import{S as W}from"./Input.8918dec2.js";import{_ as u}from"./vendor-other.7b559694.js";import{T as B}from"./Slide.e6618126.js";const F={props:{description:{type:String},attributes:{type:Array,required:!0}}},Q={class:"aioseo-attributes"},Y={class:"aioseo-description"},z={class:"aioseo-attributes-list"},K=["innerHTML"];function X(e,o,i,b,p,n){return t(),r("div",Q,[s("div",Y,m(i.description),1),s("ul",z,[(t(!0),r(k,null,w(i.attributes,(h,v)=>(t(),r("li",{key:v},[s("div",null,[s("code",null,m(h.name),1)]),s("div",null,[s("span",{class:"aioseo-description",innerHTML:h.description},null,8,K)])]))),128))])])}const ee=f(F,[["render",X],["__scopeId","data-v-4823ddd8"]]),$="all-in-one-seo-pack",te={components:{CoreTooltip:G,SvgCircleCheckSolid:R,SvgCopy:W},props:{message:{type:String,required:!0}},data(){return{copied:!1}},computed:{copyText(){return this.copied?u("Copied!",$):u("Click to Copy",$)}},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(){}}},oe={class:"aioseo-copy-block"},se={class:"message"},ne={ref:"copy",class:"copy"};function re(e,o,i,b,p,n){const h=a("svg-copy"),v=a("svg-circle-check-solid"),V=a("core-tooltip"),y=D("clipboard");return t(),r("div",oe,[s("div",se,m(i.message),1),C(V,{class:"copy-tooltip",type:"action"},{tooltip:d(()=>[j(m(n.copyText),1)]),default:d(()=>[J((t(),r("div",ne,[p.copied?l("",!0):(t(),_(h,{key:0})),p.copied?(t(),_(v,{key:1})):l("",!0)])),[[y,i.message,"copy"],[y,n.onCopy,"success"],[y,n.onError,"error"]])]),_:1})])}const ie=f(te,[["render",re]]),ce={class:"aioseo-slide-content"},le={key:0,class:"main-box"},ae=["innerHTML"],de={key:0,class:"advanced-settings"},ue={key:1,class:"extra-box"},pe={__name:"SlideContent",props:{item:{type:Object,required:!0}},setup(e){const o="all-in-one-seo-pack",i=E(!1),b={advancedSettings:u("Advanced Settings",o)};return(p,n)=>(t(),r("div",ce,[e.item.slot!=="extra"?(t(),r("div",le,[s("div",null,[s("div",null,[e.item.desc?(t(),r("div",{key:0,class:"aioseo-description",innerHTML:e.item.desc},null,8,ae)):l("",!0),e.item.copy?(t(),_(M(ie),{key:1,message:e.item.copy},null,8,["message"])):l("",!0),e.item.hasAdvanced&&!i.value?(t(),r("a",{key:2,class:"advanced-settings-link",href:"#",onClick:n[0]||(n[0]=q(h=>i.value=!i.value,["prevent"]))},m(b.advancedSettings),1)):l("",!0)]),p.$slots.advanced?(t(),_(M(B),{key:0,active:i.value},{default:d(()=>[i.value?(t(),r("div",de,[x(p.$slots,"advanced")])):l("",!0)]),_:3},8,["active"])):l("",!0)])])):l("",!0),e.item.slot==="extra"?(t(),r("div",ue,[x(p.$slots,"extraBox")])):l("",!0)]))}},_e={},ge={viewBox:"0 0 59 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-gutenberg-block"};function me(e,o){return t(),r("svg",ge,[...o[0]||(o[0]=[s("rect",{x:"1.5",y:"1.50024",stroke:"currentColor","stroke-width":"3","stroke-dasharray":"5 3"},null,-1),s("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)])])}const he=f(_e,[["render",me]]),fe={},Ce={viewBox:"0 0 110 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-php"};function ve(e,o){return t(),r("svg",Ce,[...o[0]||(o[0]=[I('',6)])])}const ye=f(fe,[["render",ve]]),He={},be={viewBox:"0 0 59 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-shortcode"};function xe(e,o){return t(),r("svg",be,[...o[0]||(o[0]=[s("path",{d:"M0 0.000244141H11V4.31055H5.91633V34.6692H11V39.0002H0V0.000244141Z",fill:"currentColor"},null,-1),s("path",{d:"M34.1337 0.000244141H40L25.8168 39.0002H20L34.1337 0.000244141Z",fill:"currentColor"},null,-1),s("path",{d:"M59 0.000244141H48V4.31055H53.0837V34.6692H48V39.0002H59V0.000244141Z",fill:"currentColor"},null,-1)])])}const Ve=f(He,[["render",xe]]),ke={},we={viewBox:"0 0 57 57",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-widget"};function Se(e,o){return t(),r("svg",we,[...o[0]||(o[0]=[s("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)])])}const Le=f(ke,[["render",Se]]),g="all-in-one-seo-pack",Me={components:{BaseBoxToggle:P,CoreAttributesList:ee,CoreSettingsRow:U,SlideContent:pe,SvgGutenbergBlock:he,SvgPhp:ye,SvgShortcode:Ve,SvgWidget:Le,TransitionSlide:B},props:{label:{type:String,default(){return u("Display Info",g)}},options:{type:Object,required:!0},plural:{type:Boolean,default(){return!1}}},data(){return{currentItem:Object.keys(this.options)[0],strings:{singular:{gutenbergBlock:u("Gutenberg Block",g),phpCode:u("PHP Code",g),shortcode:u("Shortcode",g),widget:u("Widget",g)},plural:{gutenbergBlock:u("Gutenberg Blocks",g),phpCode:u("PHP Code",g),shortcode:u("Shortcodes",g),widget:u("Widgets",g)}}}},watch:{currentItem(e){this.currentItem=e}},computed:{boxToggleOptions(){return Object.keys(this.options).map(o=>({value:o,slot:o,...this.options[o]}))},boxStrings(){return this.plural?this.strings.plural:this.strings.singular}},methods:{slotName(e){return e.hasAdvanced?"advanced":e.slot==="extra"?"extraBox":e.slot}}},$e={class:"ui-element-slider-content"};function Be(e,o,i,b,p,n){const h=a("svg-shortcode"),v=a("svg-gutenberg-block"),V=a("svg-php"),y=a("svg-widget"),Z=a("base-box-toggle"),S=a("core-attributes-list"),L=a("slide-content"),T=a("transition-slide"),O=a("core-settings-row");return t(),_(O,{class:"aioseo-ui-element-slider",name:i.label},{content:d(()=>[C(Z,{modelValue:p.currentItem,"onUpdate:modelValue":o[0]||(o[0]=c=>p.currentItem=c),name:"ui-element-slider",options:n.boxToggleOptions},{extra:d(()=>[x(e.$slots,"extra")]),shortcode:d(()=>[C(h),s("p",null,m(n.boxStrings.shortcode),1)]),block:d(()=>[C(v),s("p",null,m(n.boxStrings.gutenbergBlock),1)]),php:d(()=>[C(V),s("p",null,m(n.boxStrings.phpCode),1)]),widget:d(()=>[C(y),s("p",null,m(n.boxStrings.widget),1)]),_:3},8,["modelValue","options"]),s("div",$e,[(t(!0),r(k,null,w(n.boxToggleOptions,(c,A)=>(t(),_(T,{key:A,active:c.value===p.currentItem},{default:d(()=>[c.multiple?l("",!0):(t(),_(L,{key:0,item:c},{[n.slotName(c)]:d(()=>[c.attributes?(t(),_(S,{key:0,attributes:c.attributes,description:c.attributesDescription},null,8,["attributes","description"])):l("",!0),x(e.$slots,n.slotName(c),{item:c})]),_:2},1032,["item"])),c.multiple?(t(!0),r(k,{key:1},w(c.multiple,(H,N)=>(t(),_(L,{key:N,item:H},{[n.slotName(H)]:d(()=>[H.attributes?(t(),_(S,{key:0,attributes:H.attributes,description:H.attributesDescription},null,8,["attributes","description"])):l("",!0)]),_:2},1032,["item"]))),128)):l("",!0)]),_:2},1032,["active"]))),128))])]),_:3},8,["name"])}const Ee=f(Me,[["render",Be]]);export{Ee as C,ee as a};