← Back
Editing: Index.cb9ff477.js
import{B as P,S as J}from"./Php.224e3c0c.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{o as t,c as n,a as o,t as m,F as w,J as H,x as a,X as D,C as v,m as d,y as q,Q as E,l as _,b as l,g as j,u as B,E as I,q as C}from"./runtime-dom.esm-bundler.647fa2bb.js";import{C as G}from"./SettingsRow.74286c2c.js";import"./translations.d159963e.js";import{C as U}from"./Tooltip.e09c91a9.js";import{S as W}from"./CheckSolid.a71d9642.js";import{c as F}from"./index.6b623118.js";import{_ as u}from"./default-i18n.20001971.js";import{T as M}from"./Slide.44995a8e.js";const R={props:{description:{type:String},attributes:{type:Array,required:!0}}},Q={class:"aioseo-attributes"},X={class:"aioseo-description"},z={class:"aioseo-attributes-list"},K=["innerHTML"];function Y(e,r,i,k,p,s){return t(),n("div",Q,[o("div",X,m(i.description),1),o("ul",z,[(t(!0),n(w,null,H(i.attributes,(h,y)=>(t(),n("li",{key:y},[o("div",null,[o("code",null,m(h.name),1)]),o("div",null,[o("span",{class:"aioseo-description",innerHTML:h.description},null,8,K)])]))),128))])])}const ee=f(R,[["render",Y],["__scopeId","data-v-4823ddd8"]]),T="all-in-one-seo-pack",te={components:{CoreTooltip:U,SvgCircleCheckSolid:W,SvgCopy:F},props:{message:{type:String,required:!0}},data(){return{copied:!1}},computed:{copyText(){return this.copied?u("Copied!",T):u("Click to Copy",T)}},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,r,i,k,p,s){const h=a("svg-copy"),y=a("svg-circle-check-solid"),S=a("core-tooltip"),b=D("clipboard");return t(),n("div",oe,[o("div",se,m(i.message),1),v(S,{class:"copy-tooltip",type:"action"},{tooltip:d(()=>[q(m(s.copyText),1)]),default:d(()=>[E((t(),n("div",ne,[p.copied?l("",!0):(t(),_(h,{key:0})),p.copied?(t(),_(y,{key:1})):l("",!0)])),[[b,i.message,"copy"],[b,s.onCopy,"success"],[b,s.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 r="all-in-one-seo-pack",i=j(!1),k={advancedSettings:u("Advanced Settings",r)};return(p,s)=>(t(),n("div",ce,[e.item.slot!=="extra"?(t(),n("div",le,[o("div",null,[o("div",null,[e.item.desc?(t(),n("div",{key:0,class:"aioseo-description",innerHTML:e.item.desc},null,8,ae)):l("",!0),e.item.copy?(t(),_(B(ie),{key:1,message:e.item.copy},null,8,["message"])):l("",!0),e.item.hasAdvanced&&!i.value?(t(),n("a",{key:2,class:"advanced-settings-link",href:"#",onClick:s[0]||(s[0]=I(h=>i.value=!i.value,["prevent"]))},m(k.advancedSettings),1)):l("",!0)]),p.$slots.advanced?(t(),_(B(M),{key:0,active:i.value},{default:d(()=>[i.value?(t(),n("div",de,[C(p.$slots,"advanced")])):l("",!0)]),_:3},8,["active"])):l("",!0)])])):l("",!0),e.item.slot==="extra"?(t(),n("div",ue,[C(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"},me=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=[me,he];function fe(e,r){return t(),n("svg",ge,ve)}const ye=f(_e,[["render",fe]]),be={},xe={viewBox:"0 0 59 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-shortcode"},ke=o("path",{d:"M0 0.000244141H11V4.31055H5.91633V34.6692H11V39.0002H0V0.000244141Z",fill:"currentColor"},null,-1),Ce=o("path",{d:"M34.1337 0.000244141H40L25.8168 39.0002H20L34.1337 0.000244141Z",fill:"currentColor"},null,-1),Se=o("path",{d:"M59 0.000244141H48V4.31055H53.0837V34.6692H48V39.0002H59V0.000244141Z",fill:"currentColor"},null,-1),we=[ke,Ce,Se];function He(e,r){return t(),n("svg",xe,we)}const Ve=f(be,[["render",He]]),$e={},Be={viewBox:"0 0 57 57",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-widget"},Te=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),Me=[Te];function Le(e,r){return t(),n("svg",Be,Me)}const Ae=f($e,[["render",Le]]),g="all-in-one-seo-pack",Oe={components:{BaseBoxToggle:P,CoreAttributesList:ee,CoreSettingsRow:G,SlideContent:pe,SvgGutenbergBlock:ye,SvgPhp:J,SvgShortcode:Ve,SvgWidget:Ae,TransitionSlide:M},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(r=>({value:r,slot:r,...this.options[r]}))},boxStrings(){return this.plural?this.strings.plural:this.strings.singular}},methods:{slotName(e){return e.hasAdvanced?"advanced":e.slot==="extra"?"extraBox":e.slot}}},Ze={class:"ui-element-slider-content"};function Ne(e,r,i,k,p,s){const h=a("svg-shortcode"),y=a("svg-gutenberg-block"),S=a("svg-php"),b=a("svg-widget"),L=a("base-box-toggle"),V=a("core-attributes-list"),$=a("slide-content"),A=a("transition-slide"),O=a("core-settings-row");return t(),_(O,{class:"aioseo-ui-element-slider",name:i.label},{content:d(()=>[v(L,{modelValue:p.currentItem,"onUpdate:modelValue":r[0]||(r[0]=c=>p.currentItem=c),name:"ui-element-slider",options:s.boxToggleOptions},{extra:d(()=>[C(e.$slots,"extra")]),shortcode:d(()=>[v(h),o("p",null,m(s.boxStrings.shortcode),1)]),block:d(()=>[v(y),o("p",null,m(s.boxStrings.gutenbergBlock),1)]),php:d(()=>[v(S),o("p",null,m(s.boxStrings.phpCode),1)]),widget:d(()=>[v(b),o("p",null,m(s.boxStrings.widget),1)]),_:3},8,["modelValue","options"]),o("div",Ze,[(t(!0),n(w,null,H(s.boxToggleOptions,(c,Z)=>(t(),_(A,{key:Z,active:c.value===p.currentItem},{default:d(()=>[c.multiple?l("",!0):(t(),_($,{key:0,item:c},{[s.slotName(c)]:d(()=>[c.attributes?(t(),_(V,{key:0,attributes:c.attributes,description:c.attributesDescription},null,8,["attributes","description"])):l("",!0),C(e.$slots,s.slotName(c),{item:c})]),_:2},1032,["item"])),c.multiple?(t(!0),n(w,{key:1},H(c.multiple,(x,N)=>(t(),_($,{key:N,item:x},{[s.slotName(x)]:d(()=>[x.attributes?(t(),_(V,{key:0,attributes:x.attributes,description:x.attributesDescription},null,8,["attributes","description"])):l("",!0)]),_:2},1032,["item"]))),128)):l("",!0)]),_:2},1032,["active"]))),128))])]),_:3},8,["name"])}const Fe=f(Oe,[["render",Ne]]);export{Fe as C,ee as a};
Save File
Cancel