관리-도구
편집 파일: user-profile-tab.0b8cfe7c.js
import{o as n,k as b,l,a as c,t as u,C as s,u as i,v as p,x as T,c as g,b as v,F as P,J as B,G as U,E as L,q as O,Y as D}from"./js/runtime-dom.esm-bundler.6789c400.js";import{l as F}from"./js/index.3eb8f806.js";import{d as R,B as k,l as N}from"./js/index.01e1b194.js";import{l as q}from"./js/index.1ca84f0e.js";import{m as z,u as x,l as V,k as G,c as H}from"./js/index.5a710757.js";import{C as I}from"./js/Card.2a757b17.js";import{C as j}from"./js/SocialProfiles.d63993ec.js";import{u as J}from"./js/EeatCta.42ef6766.js";import{C as M}from"./js/ProBadge.7733ac87.js";import{C as $}from"./js/Index.c0a0a208.js";import{C as W}from"./js/Blur.31bfcf06.js";import{C}from"./js/SettingsRow.1934f141.js";import"./js/translations.12335a6a.js";import{_ as a}from"./js/default-i18n.54b5d8cd.js";import{R as Y}from"./js/RequiredPlans.7723218f.js";import{_ as A}from"./js/_plugin-vue_export-helper.249dac1d.js";import{u as K}from"./js/AddonConditions.5faef184.js";import{S as Q}from"./js/LogoGear.29bd352d.js";import{e as X}from"./js/elemLoaded.5e0343ce.js";import"./js/Caret.662da1f3.js";import"./js/helpers.f95d5840.js";import"./js/Tooltip.b6b45c85.js";import"./js/Slide.d0517fb0.js";import"./js/Checkbox.e983780b.js";import"./js/Checkmark.32f79576.js";import"./js/Textarea.5ebf7ab2.js";import"./js/Row.f01f32cd.js";import"./js/Facebook.889f0b59.js";import"./js/Twitter.faae4f4e.js";import"./js/constants.2019bcb3.js";import"./js/addons.ef42f038.js";import"./js/upperFirst.96c04516.js";import"./js/_stringToArray.08127ca9.js";import"./js/toString.1401d490.js";import"./js/license.03044dbc.js";const Z={class:"aioseo-settings-row aioseo-section-description"},ee={class:"aioseo-description"},oe=c("br",null,null,-1),te={class:"aioseo-description"},re={class:"aioseo-description"},se={__name:"EeatBlur",setup(e){const t="all-in-one-seo-pack",o={description:a("The fields below provide structured information for search engines about the current author. By filling out these fields, you will enhance your online presence and improve search engine visibility. This increases the chances of your author details appearing prominently in search results, making it easier for readers, publishers, and media representatives to discover and connect with you.",t),enable:a("Enable Author Info",t),alumniOf:a("Alumni Of",t),alumniOfDescription:a("The school, college, or university where the author studied.",t),alumniOfUrl:a("School, college, or university URL",t),alumniOfUrlDescription:a("The URL of the school, college, or university where the author studied.",t),worksFor:a("Employer",t),worksForDescription:a("The organization the author works for.",t)};return(r,m)=>(n(),b(i(W),{id:"aioseo-author-seo-meta-data"},{default:l(()=>[c("div",Z,u(o.description),1),s(i(C),{name:o.enable},{content:l(()=>[s(i(R))]),_:1},8,["name"]),s(i(C),{name:o.alumniOf},{content:l(()=>[s(i(k),{size:"medium",placeholder:o.alumniOf},null,8,["placeholder"]),c("div",ee,u(o.alumniOfDescription),1),oe,s(i(k),{size:"medium",placeholder:o.alumniOfUrl},null,8,["placeholder"]),c("div",te,u(o.alumniOfUrlDescription),1)]),_:1},8,["name"]),s(i(C),{name:o.worksFor},{content:l(()=>[s(i(k),{size:"medium",placeholder:o.worksFor},null,8,["placeholder"]),c("div",re,u(o.worksForDescription),1)]),_:1},8,["name"])]),_:1}))}},ie={setup(){const{addonSlug:e,features:t,strings:o}=J();return{addonSlug:e,features:t,licenseStore:z(),rootStore:x(),links:V,strings:o}},components:{CoreCard:I,CoreProBadge:M,Cta:$,EeatBlur:se,RequiredPlans:Y}};function ae(e,t,o,r,m,f){const y=p("core-pro-badge"),w=p("eeat-blur"),S=p("required-plans"),d=p("cta"),h=p("core-card");return n(),b(h,{noSlide:""},{header:l(()=>[c("span",null,u(r.strings.authorInfo),1),s(y)]),default:l(()=>[s(w),s(d,{"cta-link":r.links.getPricingUrl("eeat","eeat-upsell"),"button-text":r.strings.ctaButtonText,"learn-more-link":r.links.getUpsellUrl("eeat",null,r.rootStore.isPro?"pricing":"liteUpgrade"),"feature-list":r.features},{"header-text":l(()=>[T(u(r.strings.headerText),1)]),description:l(()=>[s(S,{addon:"aioseo-eeat"}),T(" "+u(r.strings.description),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"])]),_:1})}const E=A(ie,[["render",ae]]),ne={__name:"EeatCta",setup(e){const{shouldShowActivate:t,shouldShowLite:o,shouldShowUpdate:r}=K({addonSlug:"aioseo-eeat"});return(m,f)=>(n(),g("div",null,[i(r)||i(t)?(n(),b(i(E),{key:0})):v("",!0),i(o)?(n(),b(i(E),{key:1})):v("",!0)]))}},_="all-in-one-seo-pack",le={setup(){return{rootStore:x(),settingsStore:G()}},components:{CoreCard:I,CoreSocialProfiles:j,EeatCta:ne,SvgLogoGear:Q},data(){return{activeTabIndex:0,strings:{socialProfiles:a("Social Profiles",_),description:a("To let search engines know which profiles are associated with this user, enter them below:",_)}}},computed:{tabs(){const e=[{label:a("Personal Options",_),slug:"personal-options"},{label:a("Author SEO",_),slug:"author-seo",svg:"svg-logo-gear"}];return this.settingsStore.userProfile.isWooCommerceFollowupEmailsActive&&e.push({label:a("Customer Data",_),slug:"customer-data"}),e},activeTabObject(){return this.tabs[this.activeTabIndex]}},methods:{setActiveTab(e){var o;const t=this.activeTabIndex;switch(this.activeTabIndex=e,this.activeTabObject.slug){case"personal-options":document.getElementById("your-profile").childNodes.forEach(r=>{r.style&&(r.style.display="block")});break;case"author-seo":document.getElementById("your-profile").childNodes.forEach(r=>{r.id==="aioseo-user-profile-tab-wrapper"||r.className==="submit"||!r.style||(r.style.display="none")});break;case"customer-data":this.activeTabIndex=t,window.location.href=this.rootStore.aioseo.urls.home+"/wp-admin/admin.php?page=followup-emails-reports&tab=reportuser_view&email="+encodeURIComponent(this.settingsStore.userProfile.userData.user_email)+"&user_id="+this.settingsStore.userProfile.userData.ID;break}location.hash=(o=this.activeTabObject)==null?void 0:o.slug},updateHiddenInputField(e){document.getElementById("aioseo-user-social-profiles").value=JSON.stringify(e)}},async created(){this.updateHiddenInputField(this.settingsStore.userProfile.profiles)},beforeMount(){new URLSearchParams(window.location.search).has("authorInfo")&&this.setActiveTab(1)},mounted(){const e=new URLSearchParams(window.location.search)||null;(e!=null&&e.get("author-seo")||location!=null&&location.hash.includes("author-seo"))&&this.setActiveTab(1)}},ce={id:"aioseo-user-profile-tab"},ue={class:"navigation-bar"},pe=["onClick"],de={class:"aioseo-user-profile-fields"},me={class:"aioseo-settings-row aioseo-section-description"};function fe(e,t,o,r,m,f){const y=p("eeat-cta"),w=p("core-social-profiles"),S=p("core-card");return n(),g("div",ce,[c("div",ue,[(n(!0),g(P,null,B(f.tabs,(d,h)=>(n(),g("a",{key:h,class:U({active:h===m.activeTabIndex}),href:"#",onClick:L(be=>f.setActiveTab(h),["prevent"])},[d.svg?(n(),b(O(d.svg),{key:0})):v("",!0),T(" "+u(d.label),1)],10,pe))),128))]),f.activeTabObject.slug==="author-seo"?(n(),g(P,{key:0},[s(y),c("div",de,[s(S,{slug:"userProfiles","header-text":m.strings.socialProfiles},{default:l(()=>[c("div",me,u(m.strings.description),1),s(w,{userProfiles:r.settingsStore.userProfile.profiles,onUpdated:t[0]||(t[0]=d=>f.updateHiddenInputField(d))},null,8,["userProfiles"])]),_:1},8,["header-text"])])],64)):v("",!0)])}const he=A(le,[["render",fe]]),_e=()=>{const e=document.getElementById("your-profile");if(!e)return;const t=document.createElement("div");t.id="aioseo-user-profile-tab-wrapper";const o=document.createElement("input");o.id="aioseo-user-social-profiles",o.name="aioseo-user-social-profiles",o.type="hidden",e.prepend(o),e.prepend(t)},ge=()=>{let e=D({...he,name:"Standalone/UserProfileTab"});e=F(e),e=N(e),e=q(e),H(e),e.mount("#aioseo-user-profile-tab-wrapper")};X("#your-profile","profilePageLoaded");document.addEventListener("animationstart",function(e){e.animationName==="profilePageLoaded"&&(_e(),ge())});