관리-도구
편집 파일: user-profile-tab.1bd81a38.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.5c3c7d72.js";import{l as F}from"./js/index.7c01c5f2.js";import{d as R,B as k,l as N}from"./js/index.8c70464a.js";import{l as q}from"./js/index.d80c2c2c.js";import{m as z,u as x,l as V,k as G,c as H}from"./js/index.ae2b6956.js";import{C as I}from"./js/Card.109b77eb.js";import{C as j}from"./js/SocialProfiles.d6a45187.js";import{u as J}from"./js/EeatCta.dac28812.js";import{C as M}from"./js/ProBadge.751e0b85.js";import{C as $}from"./js/Index.0e872043.js";import{C as W}from"./js/Blur.edde4939.js";import{C}from"./js/SettingsRow.9f92e269.js";import"./js/translations.d159963e.js";import{_ as a}from"./js/default-i18n.20001971.js";import{R as Y}from"./js/RequiredPlans.78e071b4.js";import{_ as A}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{u as K}from"./js/AddonConditions.d3341742.js";import{S as Q}from"./js/LogoGear.cb664d3b.js";import{e as X}from"./js/elemLoaded.2921fc72.js";import"./js/Caret.d9cc70ba.js";import"./js/helpers.c7282833.js";import"./js/Tooltip.73441134.js";import"./js/Slide.39c07c03.js";import"./js/Checkbox.6db0b9ed.js";import"./js/Checkmark.e40641dd.js";import"./js/Textarea.97983cdc.js";import"./js/Row.df38a5f6.js";import"./js/Facebook.c0193ddb.js";import"./js/Twitter.f6341402.js";import"./js/constants.24c44c43.js";import"./js/addons.2e54f461.js";import"./js/upperFirst.eac3a366.js";import"./js/_stringToArray.f9ddb970.js";import"./js/toString.a2dfb892.js";import"./js/license.306f6adb.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())});