Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
superstepsgroup.com
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
Editing: publish-panel.593e1d5e.js
import{aq as v,f as a,i as l,j as n,O as k,ad as x,Q as T,P as y,S as C,ae as S,U as u,a0 as _,M as g,an as U}from"./js/vendor-vue-ui.f00a1236.js";import{l as M}from"./js/index.18357c0f.js";import{l as B}from"./js/index.60474bd4.js";import{l as D}from"./js/index.0d80c2c2.js";import{aB as z,ah as L,C as N,a8 as F,ai as I,q as K,u as R,y as G,V as q,i as $,af as H,l as A,b as Y,k as j}from"./js/app-core.b862f9c8.js";import{u as Q}from"./js/Image.bf3f0bdd.js";import{C as W}from"./js/GoogleSearchPreview.14fc9832.js";import{b as J,S as X,a as Z}from"./js/Pencil.1ca5815a.js";import{S as ee}from"./js/Exclamation.2e91b03a.js";import{S as te}from"./js/External.e3085be4.js";import{_ as h}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{_ as i,a as oe,c as se}from"./js/vendor-other.7b559694.js";import{S as ie}from"./js/Twitter.f392aa34.js";import{l as ne}from"./js/loadTruSeo.fff30dff.js";import{s as P}from"./js/vendor-lodash.d3ad8b99.js";import"./js/Button.6c09d515.js";import"./js/Input.af82b72e.js";import"./js/Index.3967c277.js";import"./js/Close.de45e465.js";import"./js/Trash.c3e8db0b.js";import"./js/Select.952b21a0.js";import"./js/Caret.e6c9f7cc.js";import"./js/Toggle.b43ed20a.js";import"./js/Url.2a5968be.js";const r="all-in-one-seo-pack",re={setup(){const{imageUrl:t,setImageUrl:e}=Q(),{parseTags:s}=q({separator:void 0});return{imageUrl:t,optionsStore:G(),parseTags:s,postEditorStore:R(),sanitizeUrl:F,setImageUrl:e,settingsStore:K(),tagsStore:I()}},components:{CoreGoogleSearchPreview:W,SvgCircleCheck:Z,SvgCircleClose:X,SvgCircleExclamation:ee,SvgExternal:te,SvgPencil:J},data(){return{allowed:N,socialImage:null,socialImageKey:0,strings:{serpPreview:i("SERP Preview",r),canonicalUrl:i("Canonical URL",r)}}},computed:{tips(){let t=[{label:i("Visibility",r),name:"visibility",access:"aioseo_page_advanced_settings"},{label:i("SEO Analysis",r),name:"seoAnalysis",access:"aioseo_page_analysis"},{label:i("Readability",r),name:"readabilityAnalysis",access:"aioseo_page_analysis"},{label:i("Focus Keyword",r),name:"focusKeyphrase",access:"aioseo_page_analysis"},{label:i("Social",r),name:"social",access:"aioseo_page_social_settings"}].filter(e=>this.allowed(e.access)&&(e.access!=="aioseo_page_analysis"||L()));return!this.optionsStore.options.social.facebook.general.enable&&!this.optionsStore.options.social.twitter.general.enable&&(t=t.filter(e=>e.name!=="social")),t.forEach((e,s)=>{t[s]={...e,...this.getData(e.name)}}),t},canImprove(){return this.tips.some(t=>t.type==="error")}},methods:{getIcon(t){switch(t){case"error":return"svg-circle-close";case"warning":return"svg-circle-exclamation";default:return"svg-circle-check"}},getData(t){const e={};if(t==="visibility"&&(e.value=i("Good!",r),e.type="success",(this.postEditorStore.currentPost.default?this.optionsStore.dynamicOptions.searchAppearance.postTypes[this.postEditorStore.currentPost.postType]&&!this.optionsStore.dynamicOptions.searchAppearance.postTypes[this.postEditorStore.currentPost.postType].advanced.robotsMeta.default&&this.optionsStore.dynamicOptions.searchAppearance.postTypes[this.postEditorStore.currentPost.postType].advanced.robotsMeta.noindex:this.postEditorStore.currentPost.noindex)&&(e.value=i("Blocked!",r),e.type="error")),t==="seoAnalysis"){e.value=i("N/A",r),e.type="error";const s=this.postEditorStore.currentPost.seo_score;Number.isInteger(s)&&(e.value=s+"/100",e.type=79<s?"success":49<s?"warning":"error")}if(t==="readabilityAnalysis"){e.value=i("Good!",r),e.type="success";const s=this.postEditorStore.currentPost.page_analysis.analysis.readability.errors;s&&0<s&&(e.value=oe(se("%1$s error found!","%1$s errors found!",s,r),s),e.type="error")}if(t==="focusKeyphrase"){e.value=i("No Focus Keyword!",r),e.type="error";const s=this.postEditorStore.currentPost.keyphrases.focus;s&&s.keyphrase&&(e.value=s.score+"/100",e.type=79<s.score?"success":49<s.score?"warning":"error")}if(t==="social"){e.value=i("Good!",r),e.type="success",this.socialImageKey;const s=this.parseTags(this.postEditorStore.currentPost.og_title||this.postEditorStore.currentPost.title||this.postEditorStore.currentPost.tags.title).trim(),o=this.parseTags(this.postEditorStore.currentPost.og_description||this.postEditorStore.currentPost.description||this.postEditorStore.currentPost.tags.description).trim(),c=this.socialImage;(!s||!o||!c)&&(e.value=i("Missing social markup!",r),e.type="error")}return{...e,icon:this.getIcon(e.type)}},openSidebar(t){const{openGeneralSidebar:e}=window.wp.data.dispatch("core/edit-post"),{closePublishSidebar:s}=window.wp.data.dispatch(z(window.aioseo.wpVersion,"6.6","<")?"core/edit-post":"core/editor");s(),e("aioseo-post-settings-sidebar/aioseo-post-settings-sidebar");const o={};switch(t){case"canonical":case"visibility":o.tab="advanced";break;case"seoAnalysis":o.tab="general",o.card="basicseo";break;case"readabilityAnalysis":o.tab="general",o.card="readability";break;case"focusKeyphrase":o.tab="general",o.card="focus";break;case"social":o.tab="social";break}this.settingsStore.changeTabSettings({setting:"mainSidebar",value:o})}},async mounted(){await this.setImageUrl().then(()=>{this.socialImage=this.imageUrl}),window.aioseoBus.$on("updateSocialImagePreview",t=>{this.socialImage=t.image,this.socialImageKey++}),this.$nextTick(()=>{const t=document.querySelector(".aioseo-pre-publish .editor-post-publish-panel__link");t&&(t.innerHTML=this.canImprove?i("Your post needs improvement!",r):i("You're good to go!",r))})}},ae={key:0,class:"seo-overview"},le={class:"pre-publish-checklist"},ce={class:"icon"},pe=["onClick"],de={key:0,class:"snippet-preview"},ue={class:"title"},me={key:1,class:"canonical-url"},ge={class:"title"},he=["href"];function _e(t,e,s,o,c,m){const p=v("svg-pencil"),f=v("core-google-search-preview"),O=v("svg-external");return o.postEditorStore.currentPost.id?(a(),l("div",ae,[n("ul",le,[(a(!0),l(k,null,x(m.tips,(d,V)=>(a(),l("li",{key:V},[n("span",ce,[(a(),T(C(d.icon),{class:y(d.type)},null,8,["class"]))]),n("span",null,[S(u(d.label)+": ",1),n("span",{class:y(["result",d.value.endsWith("/100")?d.type:null])},u(d.value),3)]),o.optionsStore.dynamicOptions.searchAppearance.postTypes[o.postEditorStore.currentPost.postType]&&o.optionsStore.dynamicOptions.searchAppearance.postTypes[o.postEditorStore.currentPost.postType].advanced.showMetaBox?(a(),l("span",{key:0,class:"edit",onClick:ze=>m.openSidebar(d.name)},[_(p)],8,pe)):g("",!0)]))),128))]),c.allowed("aioseo_page_analysis")?(a(),l("div",de,[n("p",ue,u(c.strings.serpPreview)+":",1),_(f,{url:o.tagsStore.liveTags.permalink,title:o.parseTags(o.postEditorStore.currentPost.title||o.postEditorStore.currentPost.tags.title||"#post_title #separator_sa #site_title"),description:o.parseTags(o.postEditorStore.currentPost.description||o.postEditorStore.currentPost.tags.description||"#post_content")},null,8,["url","title","description"])])):g("",!0),c.allowed("aioseo_page_analysis")&&o.postEditorStore.currentPost.canonicalUrl?(a(),l("div",me,[n("p",ge,[S(u(c.strings.canonicalUrl)+": ",1),n("span",{class:"edit",onClick:e[0]||(e[0]=d=>m.openSidebar("canonical"))},[_(p)])]),n("a",{href:o.sanitizeUrl(o.postEditorStore.currentPost.canonicalUrl),target:"_blank",rel:"noopener noreferrer"},[n("span",null,u(o.sanitizeUrl(o.postEditorStore.currentPost.canonicalUrl)),1),_(O)],8,he)])):g("",!0)])):g("",!0)}const w=h(re,[["render",_e]]),fe={},ve={width:"32",height:"32",fill:"none",class:"aioseo-facebook-rounded",xmlns:"http://www.w3.org/2000/svg"};function ye(t,e){return a(),l("svg",ve,[...e[0]||(e[0]=[n("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"},null,-1),n("path",{d:"M24 16c0-4.4-3.6-8-8-8s-8 3.6-8 8c0 4 2.9 7.3 6.7 7.9v-5.6h-2V16h2v-1.8c0-2 1.2-3.1 3-3.1.9 0 1.8.2 1.8.2v2h-1c-1 0-1.3.6-1.3 1.2V16h2.2l-.4 2.3h-1.9V24c4-.6 6.9-4 6.9-8z",fill:"#fff"},null,-1)])])}const Se=h(fe,[["render",ye]]),Pe={},we={width:"32",height:"32",fill:"none",class:"aioseo-linkedin-rounded",xmlns:"http://www.w3.org/2000/svg"};function be(t,e){return a(),l("svg",we,[...e[0]||(e[0]=[n("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"},null,-1),n("path",{d:"M11.6 24H8.2V13.3h3.4V24zM9.9 11.8C8.8 11.8 8 11 8 9.9 8 8.8 8.9 8 9.9 8c1.1 0 1.9.8 1.9 1.9 0 1.1-.8 1.9-1.9 1.9zM24 24h-3.4v-5.8c0-1.7-.7-2.2-1.7-2.2s-2 .8-2 2.3V24h-3.4V13.3h3.2v1.5c.3-.7 1.5-1.8 3.2-1.8 1.9 0 3.9 1.1 3.9 4.4V24h.2z",fill:"#fff"},null,-1)])])}const Ee=h(Pe,[["render",be]]),ke={},xe={width:"32",height:"32",fill:"none",class:"aioseo-pinterest-rounded",xmlns:"http://www.w3.org/2000/svg"};function Te(t,e){return a(),l("svg",xe,[...e[0]||(e[0]=[n("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"},null,-1),n("path",{d:"M16.056 6.583c-5.312 0-9.658 4.346-9.658 9.658a9.581 9.581 0 005.795 8.813c0-.724 0-1.448.12-2.173.242-.845 1.207-5.312 1.207-5.312s-.362-.604-.362-1.57c0-1.448.846-2.535 1.811-2.535.845 0 1.328.604 1.328 1.45 0 .844-.603 2.172-.845 3.38-.241.965.483 1.81 1.57 1.81 1.81 0 3.018-2.293 3.018-5.19 0-2.174-1.449-3.743-3.984-3.743-2.898 0-4.709 2.173-4.709 4.587 0 .845.242 1.449.604 1.932.12.241.242.241.12.483 0 .12-.12.603-.24.724-.121.242-.242.362-.483.242-1.329-.604-1.932-2.053-1.932-3.743 0-2.777 2.294-6.036 6.881-6.036 3.743 0 6.157 2.656 6.157 5.553 0 3.743-2.052 6.64-5.19 6.64-1.087 0-2.053-.603-2.415-1.207 0 0-.604 2.173-.725 2.656a10.702 10.702 0 01-.966 2.052c.846.242 1.811.363 2.777.363 5.312 0 9.658-4.347 9.658-9.659.121-4.829-4.225-9.175-9.537-9.175z",fill:"#fff"},null,-1)])])}const Ce=h(ke,[["render",Te]]),b="all-in-one-seo-pack",Ie={setup(){return{tagsStore:I()}},components:{SvgFacebookRounded:Se,SvgLinkedinRounded:Ee,SvgPinterestRounded:Ce,SvgIconTwitter:ie},data(){return{strings:{title:i("Get out the word!",b),description:i("Share your content on your favorite social media platforms to drive engagement and increase your SEO.",b)}}},computed:{socialNetworks(){return[{icon:"svg-icon-twitter",link:"https://x.com/share?url="},{icon:"svg-facebook-rounded",link:"https://www.facebook.com/sharer/sharer.php?u="},{icon:"svg-pinterest-rounded",link:"https://pinterest.com/pin/create/button/?url="},{icon:"svg-linkedin-rounded",link:"https://www.linkedin.com/shareArticle?url="}].map(t=>({...t,link:t.link+this.tagsStore.liveTags.permalink}))}}},Ae={key:0,class:"aioseo-post-publish"},Oe={class:"title"},Ve={class:"description"},Ue={class:"links"},Me=["href"];function Be(t,e,s,o,c,m){return o.tagsStore.liveTags.permalink?(a(),l("div",Ae,[n("h2",Oe,u(c.strings.title),1),n("p",Ve,u(c.strings.description),1),n("div",Ue,[(a(!0),l(k,null,x(m.socialNetworks,(p,f)=>(a(),l("a",{class:"link",target:"_blank",key:f,href:p.link},[(a(),T(C(p.icon)))],8,Me))),128))])])):g("",!0)}const De=h(Ie,[["render",Be]]);(function(t){if(!$()||!H()||!window.wp?.editor?.PluginDocumentSettingPanel&&!window.wp?.editPost?.PluginDocumentSettingPanel)return;const e=window?.wp?.editor?.PluginDocumentSettingPanel||window.wp?.editPost?.PluginDocumentSettingPanel,s=window?.wp?.editor?.PluginPrePublishPanel||window.wp?.editPost?.PluginPrePublishPanel,o=window?.wp?.editor?.PluginPostPublishPanel||window.wp?.editPost?.PluginPostPublishPanel,c=t.plugins.registerPlugin;A();const p=Y().aioseo.user;!p.capabilities.aioseo_page_analysis&&!p.capabilities.aioseo_page_general_settings&&!p.capabilities.aioseo_page_advanced_settings||c("aioseo-publish-panel",{render:()=>t.element.createElement(t.element.Fragment,{},t.element.createElement(e,{name:"aioseo-publish-panel",title:"AIOSEO",className:"aioseo-document-setting aioseo-seo-overview",icon:t.element.Fragment},t.element.createElement("div",{},t.element.createElement("div",{id:"aioseo-document-setting"}))),t.element.createElement(s,{title:["AIOSEO",":",t.element.createElement("span",{key:"scoreDescription",className:"editor-post-publish-panel__link"})],className:"aioseo-pre-publish aioseo-seo-overview",initialOpen:!0,icon:t.element.Fragment},t.element.createElement("div",{},t.element.createElement("div",{id:"aioseo-pre-publish"}))),t.element.createElement(o,{title:"AIOSEO",initialOpen:!0,icon:t.element.Fragment},t.element.createElement("div",{},t.element.createElement("div",{id:"aioseo-post-publish"}))))})})(window.wp);const E=t=>{let e=U({...t.component,name:"Standalone/PublishPanel"});return e=M(e),e=B(e),e=D(e),A(e),e.mount("#"+t.id),window.addEventListener("load",()=>{ne(e,!1)}),e};window.aioseo.currentPost&&window.aioseo.currentPost.context==="post"&&[{id:"aioseo-pre-publish",component:w},{id:"aioseo-document-setting",component:w},{id:"aioseo-post-publish",component:De}].forEach(e=>{document.getElementById(e.id)?E(e):(j("#"+e.id,P(e.id)),document.addEventListener("animationstart",function(s){P(e.id)===s.animationName&&E(e)},{passive:!0}))});
Save
Cancel