관리-도구
편집 파일: SocialProfiles.lzm92wzs.js
import{a as R}from"./index.jlplx4ex.js";import{B as D}from"./Checkbox.fww0datn.js";import{B as M}from"./Textarea.h6l2nel1.js";import{C as Y}from"./Caret.hnvbzqgq.js";import{C as I}from"./SettingsRow.1l1umqn0.js";import{G as A,a as T}from"./Row.o0q8mn7y.js";import{S as H}from"./Facebook.ocagzcrv.js";import{_ as d}from"./_plugin-vue_export-helper.oebm7xum.js";import{o as n,c as l,a as s,z as Z,v as f,C as p,l as h,t as g,k as m,F as b,J as x,G as C,x as $,b as v,q as B}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{S as W}from"./Twitter.k05mazyy.js";import"./translations.b896ab1m.js";import{_ as i}from"./default-i18n.hohxoesu.js";const F={},K={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-instagram"},E=s("circle",{cx:"12",cy:"12",r:"12",fill:"#f00073"},null,-1),N=s("path",{d:"M12 7.084h2.458c.578 0 .867.145 1.084.217.289.145.506.217.723.434a1.5 1.5 0 0 1 .434.723c.072.217.145.506.217 1.084V12v2.458c0 .578-.145.867-.217 1.084-.145.289-.217.506-.434.723a1.5 1.5 0 0 1-.723.434c-.217.072-.506.145-1.084.217H12 9.542c-.578 0-.867-.145-1.084-.217-.289-.145-.506-.217-.723-.434s-.361-.434-.434-.723c-.072-.217-.145-.506-.217-1.084V12 9.542c0-.578.145-.867.217-1.084.145-.289.217-.506.434-.723s.434-.361.723-.434c.217-.072.506-.145 1.084-.217H12zM12 6H9.542a3.64 3.64 0 0 0-1.446.289 3.13 3.13 0 0 0-1.084.723c-.361.362-.506.651-.723 1.084-.145.361-.217.795-.289 1.446V12v2.458a3.64 3.64 0 0 0 .289 1.446 3.13 3.13 0 0 0 .723 1.084c.362.361.651.506 1.084.723.361.145.795.217 1.446.289H12h2.458a3.64 3.64 0 0 0 1.446-.289 3.13 3.13 0 0 0 1.084-.723c.361-.362.506-.651.723-1.084.145-.361.217-.795.289-1.446V12 9.542a3.64 3.64 0 0 0-.289-1.446 3.13 3.13 0 0 0-.723-1.084c-.362-.361-.651-.506-1.084-.723-.361-.145-.795-.217-1.446-.289H12zm0 2.892c-1.735 0-3.108 1.374-3.108 3.108s1.374 3.108 3.108 3.108 3.108-1.373 3.108-3.108S13.735 8.892 12 8.892zm0 5.133a2.024 2.024 0 1 1 0-4.048A2.02 2.02 0 0 1 14.024 12c0 1.084-.94 2.024-2.024 2.024zm3.181-4.483c.399 0 .723-.324.723-.723s-.324-.723-.723-.723-.723.324-.723.723.324.723.723.723z",fill:"#fff"},null,-1),G=[E,N];function X(e,t){return n(),l("svg",K,G)}const j=d(F,[["render",X]]),q={},O={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"-5 -5 34 34",class:"aioseo-icon-tiktok"},J=s("circle",{cx:"12",cy:"12",r:"17",fill:"##100f0d"},null,-1),Q=s("path",{d:"M19.589 6.686a4.793 4.793 0 0 1-3.77-4.245V2h-3.445v13.672a2.896 2.896 0 0 1-5.201 1.743l-.002-.001.002.001a2.895 2.895 0 0 1 3.183-4.51v-3.5a6.329 6.329 0 0 0-5.394 10.692 6.33 6.33 0 0 0 10.857-4.424V8.687a8.182 8.182 0 0 0 4.773 1.526V6.79a4.831 4.831 0 0 1-1.003-.104z",fill:"#fff"},null,-1),e1=[J,Q];function t1(e,t){return n(),l("svg",O,e1)}const s1=d(q,[["render",t1]]),a1={},n1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-linkedin"},o1=s("circle",{cx:"12",cy:"12",r:"12",fill:"#2867b2"},null,-1),i1=s("path",{d:"M8.7 18H6.15V9.975H8.7V18zM7.425 8.85C6.6 8.85 6 8.25 6 7.425S6.675 6 7.425 6c.825 0 1.425.6 1.425 1.425S8.25 8.85 7.425 8.85zM18 18h-2.55v-4.35c0-1.275-.525-1.65-1.275-1.65s-1.5.6-1.5 1.725V18h-2.55V9.975h2.4V11.1c.225-.525 1.125-1.35 2.4-1.35 1.425 0 2.925.825 2.925 3.3V18H18z",fill:"#fff"},null,-1),r1=[o1,i1];function l1(e,t){return n(),l("svg",n1,r1)}const c1=d(a1,[["render",l1]]),d1={},u1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-myspace"},h1=Z('<circle cx="12" cy="12" r="12" fill="#100f0d"></circle><g clip-path="url(#A)" fill="#fff"><path d="M16.682 12.168c1.265 0 2.291-1.019 2.291-2.277s-1.026-2.277-2.291-2.277-2.292 1.02-2.292 2.277 1.026 2.277 2.292 2.277zm-5.163.421c1.139 0 2.063-.918 2.063-2.049s-.924-2.05-2.062-2.05-2.063.917-2.063 2.05.923 2.049 2.063 2.049zm-4.681.38a1.85 1.85 0 0 0 1.856-1.844 1.85 1.85 0 0 0-1.856-1.844 1.85 1.85 0 0 0-1.856 1.844 1.85 1.85 0 0 0 1.856 1.844zm0 .419c-1.177 0-2.04 1.03-2.04 2.095v.716c0 .101.083.184.185.184h.066 3.578.066c.103 0 .186-.083.186-.184v-.716c0-1.064-.863-2.095-2.04-2.095z"></path><path d="M11.519 13.056c-1.308 0-2.267 1.145-2.267 2.328v.796c0 .113.092.205.206.205h.073 3.975.073c.114 0 .206-.093.206-.205v-.796c0-1.183-.959-2.328-2.267-2.328zm5.162-.369c-1.453 0-2.519 1.272-2.519 2.586v.884a.23.23 0 0 0 .229.228h.081 4.417.081a.23.23 0 0 0 .23-.228v-.884c0-1.314-1.065-2.586-2.519-2.586z"></path></g><defs><clipPath id="A"><path fill="#fff" transform="translate(4.798 7.613)" d="M0 0h14.402v8.771H0z"></path></clipPath></defs>',3),m1=[h1];function _1(e,t){return n(),l("svg",u1,m1)}const f1=d(d1,[["render",_1]]),p1={},g1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-pinterest"},v1=s("circle",{cx:"12",cy:"12",r:"12",fill:"#e60023"},null,-1),w1=s("path",{d:"M12.042 4.937c-3.984 0-7.244 3.26-7.244 7.244 0 2.988 1.811 5.523 4.346 6.61 0-.543 0-1.087.091-1.63.181-.634.905-3.984.905-3.984s-.272-.453-.272-1.177c0-1.087.634-1.901 1.358-1.901.634 0 .996.453.996 1.086s-.453 1.63-.634 2.535c-.181.724.362 1.358 1.177 1.358 1.358 0 2.264-1.72 2.264-3.894 0-1.63-1.086-2.807-2.988-2.807-2.173 0-3.531 1.63-3.531 3.441 0 .634.181 1.087.453 1.449.091.181.181.181.091.362 0 .091-.091.453-.181.543-.091.181-.181.272-.362.181-.996-.453-1.449-1.539-1.449-2.807 0-2.083 1.72-4.527 5.161-4.527 2.807 0 4.618 1.992 4.618 4.165 0 2.807-1.539 4.98-3.894 4.98-.815 0-1.539-.453-1.811-.905l-.543 1.992c-.181.543-.453 1.087-.724 1.539.634.181 1.358.272 2.083.272 3.984 0 7.244-3.26 7.244-7.244.09-3.622-3.169-6.881-7.153-6.881z",fill:"#fff"},null,-1),k1=[v1,w1];function y1(e,t){return n(),l("svg",g1,k1)}const U1=d(p1,[["render",y1]]),z1={},b1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-sound-cloud"},x1=s("circle",{cx:"12",cy:"12",r:"12",fill:"#ff5502"},null,-1),C1=s("path",{d:"M16.954 15.667h-5.457V9.074a2.77 2.77 0 0 1 1.876-.74c1.583 0 2.87 1.364 2.899 3.059.213-.081.443-.125.683-.125 1.13 0 2.047.985 2.047 2.2s-.916 2.2-2.047 2.2zm-5.954-6h-.667v6H11v-6zm-2 .666h.667v5.333H9v-5.333zm-.667 1.334h-.667v4h.667v-4zm-2-.667H7v4.667h-.667V11zm-.666 1.333H5v3.333h.667v-3.333z",fill:"#fff"},null,-1),$1=[x1,C1];function L1(e,t){return n(),l("svg",b1,$1)}const S1=d(z1,[["render",L1]]),P1={},V1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-tumblr"},R1=s("circle",{cx:"12",cy:"12",r:"12",fill:"#001935"},null,-1),D1=s("path",{d:"M13.38 18c-1.791 0-3.119-.927-3.119-3.149v-3.556H8.635V9.367C10.426 8.9 11.172 7.348 11.254 6h1.858v3.058h2.164v2.237h-2.164v3.096c0 .927.463 1.251 1.201 1.251h1.052V18H13.38z",fill:"#fff"},null,-1),M1=[R1,D1];function Y1(e,t){return n(),l("svg",V1,M1)}const I1=d(P1,[["render",Y1]]),A1={},T1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-wikipedia"},H1=s("circle",{cx:"12",cy:"12",r:"12",fill:"#100f0d"},null,-1),Z1=s("path",{d:"M14.079 16.515l-1.793-4.223-2.171 4.221c-.004.007-.326.003-.326-.001L6.659 9.323c-.24-.587-1.08-1.531-1.654-1.525L5 7.485l3.544-.002-.002.308c-.416.019-1.135.285-.949.744l2.746 6.317 1.648-3.129-1.592-3.5c-.225-.378-.788-.424-1.223-.431l.003-.304 3.116.01v.283c-.422.012-.821.169-.64.572l1.049 2.294 1.053-2.209c.182-.453-.089-.623-.848-.644.01-.075.003-.224.01-.296l2.69-.011.002.294c-.495.019-1.006.283-1.273.691l-1.296 2.687 1.519 3.43 2.679-6.182c-.191-.501-.799-.612-1.036-.618l.002-.303 2.796.021.004.014-.005.266c-.613.018-.993.346-1.22.884l-3.398 7.843c-.002.001-.298 0-.299-.001z",fill:"#fff"},null,-1),B1=[H1,Z1];function W1(e,t){return n(),l("svg",T1,B1)}const F1=d(A1,[["render",W1]]),K1={},E1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 28 28"},N1=s("path",{fill:"currentColor",d:"M13.6052 0.923525C16.1432 0.923525 18.6137 1.67953 20.7062 3.09703C22.7447 4.47403 24.3512 6.41803 25.3097 8.68603C26.9837 12.6415 26.5382 17.164 24.1352 20.7145C22.7582 22.753 20.8142 24.3595 18.5462 25.318C14.5907 26.992 10.0682 26.5465 6.51772 24.1435C4.47922 22.7665 2.87272 20.8225 1.91422 18.5545C0.240225 14.599 0.685725 10.0765 3.08872 6.52603C4.46572 4.48753 6.40973 2.88103 8.67772 1.92253C10.2302 1.26103 11.9177 0.923525 13.6052 0.923525ZM13.6052 0.113525C6.15322 0.113525 0.105225 6.16153 0.105225 13.6135C0.105225 21.0655 6.15322 27.1135 13.6052 27.1135C21.0572 27.1135 27.1052 21.0655 27.1052 13.6135C27.1052 6.16153 21.0572 0.113525 13.6052 0.113525Z"},null,-1),G1=s("path",{fill:"currentColor",d:"M2.36011 13.6133C2.36011 17.9198 4.81711 21.8618 8.70511 23.7383L3.33211 9.03684C2.68411 10.4813 2.36011 12.0338 2.36011 13.6133ZM21.2061 13.0463C21.2061 11.6558 20.7066 10.6973 20.2746 9.94134C19.8426 9.18534 19.1676 8.22684 19.1676 7.30884C19.1676 6.39084 19.9506 5.31084 21.0576 5.31084H21.2061C16.6296 1.11234 9.51511 1.42284 5.31661 6.01284C4.91161 6.45834 4.53361 6.93084 4.20961 7.43034H4.93861C6.11311 7.43034 7.93561 7.28184 7.93561 7.28184C8.54311 7.24134 8.61061 8.13234 8.00311 8.21334C8.00311 8.21334 7.39561 8.28084 6.72061 8.32134L10.8111 20.5118L13.2681 13.1273L11.5131 8.32134C10.9056 8.28084 10.3386 8.21334 10.3386 8.21334C9.73111 8.17284 9.79861 7.25484 10.4061 7.28184C10.4061 7.28184 12.2691 7.43034 13.3626 7.43034C14.4561 7.43034 16.3596 7.28184 16.3596 7.28184C16.9671 7.24134 17.0346 8.13234 16.4271 8.21334C16.4271 8.21334 15.8196 8.28084 15.1446 8.32134L19.2081 20.4173L20.3691 16.7453C20.8821 15.1388 21.1926 14.0048 21.1926 13.0328L21.2061 13.0463ZM13.7946 14.5853L10.4196 24.3998C12.6876 25.0613 15.1041 25.0073 17.3316 24.2243L17.2506 24.0758L13.7946 14.5853ZM23.4741 8.21334C23.5281 8.59134 23.5551 8.98284 23.5551 9.37434C23.5551 10.5218 23.3391 11.8043 22.7046 13.3973L19.2621 23.3333C24.5271 20.2688 26.4036 13.5593 23.4741 8.21334Z"},null,-1),X1=[N1,G1];function j1(e,t){return n(),l("svg",E1,X1)}const q1=d(K1,[["render",j1]]),O1={},J1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-yelp"},Q1=s("circle",{cx:"12",cy:"12",r:"12",fill:"#c1272d"},null,-1),e2=s("path",{d:"M15.632 9.177c.504.416 1.885 1.558 1.66 2.36-.104.36-.518.475-.824.588a15.22 15.22 0 0 1-2.169.608c-.596.121-1.871.385-1.635-.67.093-.408.422-.754.687-1.061.543-.639 1.097-1.314 1.753-1.837a.23.23 0 0 1 .175-.045c.11-.045.242-.039.354.056zm-.743 8.417c-.442-.357-.754-.917-1.024-1.407-.264-.473-.681-1.097-.751-1.646-.143-1.128 1.491-.45 1.961-.287.625.219 2.299.461 2.113 1.438-.155.796-1.114 1.767-1.916 1.89-.008.003-.02 0-.031 0a.62.62 0 0 1-.082.045c-.096.051-.189.031-.27-.034zm-3.654-2.903c.889-.368.971.624.965 1.227l-.084 2.152c-.02.29-.008.639-.284.822-.34.225-.996.048-1.348-.062-.011-.006-.022-.011-.034-.014-.74-.129-1.643-.47-1.73-1.153a.26.26 0 0 1 .07-.203l.07-.118c.11-.152.236-.287.363-.425a11.52 11.52 0 0 1 .689-.92c.354-.428.79-1.086 1.322-1.305zm.13-3.083c-1.297-1.066-2.56-2.718-3.213-4.245-.498-1.162.768-1.871 1.744-2.192 1.317-.433 1.84-.056 1.972 1.26a33 33 0 0 1 .152 3.415c-.003.481.132 1.258-.149 1.691.045.177-.222.304-.374.183-.023-.017-.045-.039-.07-.059-.022-.014-.042-.031-.062-.053zm-.141 1.651c.104.461-.222.647-.605.822a15.22 15.22 0 0 1-2.113.754c-.416.115-1.055.391-1.457.084-.304-.231-.324-.712-.352-1.061-.062-.779.056-2.639 1.137-2.718.529-.037 1.19.436 1.623.684.577.332 1.196.712 1.626 1.232.065.037.118.101.141.202z",fill:"#fff"},null,-1),t2=[Q1,e2];function s2(e,t){return n(),l("svg",J1,t2)}const a2=d(O1,[["render",s2]]),n2={},o2={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","xmlns:v":"https://vecta.io/nano",class:"aioseo-icon-youtube"},i2=s("circle",{cx:"12",cy:"12",r:"12",fill:"#D63E22"},null,-1),r2=s("path",{d:"M18.65 8.588a1.73 1.73 0 0 0-1.225-1.225c-1.05-.263-5.513-.263-5.513-.263L6.4 7.363a1.73 1.73 0 0 0-1.225 1.225C5 9.725 5 12 5 12s0 2.275.263 3.412a1.73 1.73 0 0 0 1.225 1.225C7.538 16.9 12 16.9 12 16.9l5.512-.262a1.73 1.73 0 0 0 1.225-1.225C19 14.275 19 12 19 12s0-2.275-.35-3.412zM10.6 14.1V9.9l3.675 2.1-3.675 2.1z",fill:"#fff"},null,-1),l2=[i2,r2];function c2(e,t){return n(),l("svg",o2,l2)}const d2=d(n2,[["render",c2]]),r="all-in-one-seo-pack",u2={emits:["updated"],setup(){return{optionsStore:R()}},components:{BaseCheckbox:D,BaseTextarea:M,CoreAlert:Y,CoreSettingsRow:I,GridColumn:A,GridRow:T,SvgIconFacebook:H,SvgIconInstagram:j,SvgIconTiktok:s1,SvgIconLinkedin:c1,SvgIconMyspace:f1,SvgIconPinterest:U1,SvgIconSoundCloud:S1,SvgIconTumblr:I1,SvgIconTwitter:W,SvgIconWikipedia:F1,SvgIconWordPress:q1,SvgIconYelp:a2,SvgIconYoutube:d2},props:{leftSize:{type:String,default(){return"3"}},rightSize:{type:String,default(){return"9"}},sameUsernameWidth:{type:String,default(){return"3"}},userProfiles:{type:Object,required:!1},hideAdditionalProfiles:{type:Boolean,default(){return!1}}},data(){return{pagePostOptions:[],errors:{},errorsKey:0,strings:{useSameUsername:i("Use the same username for multiple social networks",r),yourUsername:i("Your Username:",r),additionalProfiles:i("Additional Profiles",r),additionalProfilesDescription:i("You can add additional social profile URLs here, separated by a new line.",r)}}},watch:{userProfiles:{deep:!0,handler(){this.$emit("updated",this.userProfiles)}}},computed:{profileData(){return this.userProfiles||this.optionsStore.options.social.profiles},profiles(){return[{key:"facebookPageUrl",name:"Facebook",label:this.userProfiles?"Facebook URL":"Facebook Page URL",url:"https://facebook.com",svg:"svg-icon-facebook",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?facebook\.[a-z.]+\/.*$/.test(e)||i("Your Facebook URL is invalid. Please check the format and try again.",r)]},{key:"twitterUrl",name:"X (Twitter)",label:"X (Twitter) URL",url:"https://x.com",svg:"svg-icon-twitter",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?(twitter|x)\.[a-z.]+\/.*$/.test(e)||i("Your X (Twitter) URL is invalid. Please check the format and try again.",r)]},{key:"instagramUrl",name:"Instagram",label:"Instagram URL",url:"https://instagram.com",svg:"svg-icon-instagram",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?instagram\.[a-z.]+\/.*$/.test(e)||i("Your Instagram URL is invalid. Please check the format and try again.",r)]},{key:"tiktokUrl",name:"TikTok",label:"TikTok URL",url:"https://tiktok.com/@",svg:"svg-icon-tiktok",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?tiktok\.[a-z.]+\/@.*$/.test(e)||i("Your TikTok URL is invalid. Please check the format and try again.",r)]},{key:"pinterestUrl",name:"Pinterest",label:"Pinterest URL",url:"https://pinterest.com",svg:"svg-icon-pinterest",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?pinterest\.[a-z.]+\/.*$/.test(e)||i("Your Pinterest URL is invalid. Please check the format and try again.",r)]},{key:"youtubeUrl",name:"YouTube",label:"YouTube URL",url:"https://youtube.com",svg:"svg-icon-youtube",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?youtube\.[a-z.]+\/.*$/.test(e)||i("Your YouTube URL is invalid. Please check the format and try again.",r)]},{key:"linkedinUrl",name:"LinkedIn",label:"LinkedIn URL",url:"https://linkedin.com/in",svg:"svg-icon-linkedin",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?linkedin\.[a-z.]+\/(?:in|company|school|groups|showcase)\/.*$/.test(e)||i("Your LinkedIn URL is invalid. Please check the format and try again.",r)]},{key:"tumblrUrl",name:"Tumblr",label:"Tumblr URL",url:"https://{profile}.tumblr.com",svg:"svg-icon-tumblr",validation:[e=>/^https:\/\/([^/]+)\.tumblr\.[a-z.]+.*$/.test(e)||i("Your Tumblr URL is invalid. Please check the format and try again.",r)]},{key:"yelpPageUrl",name:"Yelp",label:"Yelp Page URL",url:"https://yelp.com/biz",svg:"svg-icon-yelp",validation:[e=>/^https:\/\/(?:www\.)?yelp\.[a-z.]+\/biz\/.*$/.test(e)||i("Your Yelp URL is invalid. Please check the format and try again.",r)]},{key:"soundCloudUrl",name:"SoundCloud",label:"SoundCloud URL",url:"https://soundcloud.com",svg:"svg-icon-sound-cloud",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?soundcloud\.[a-z.]+\/.*$/.test(e)||i("Your SoundCloud URL is invalid. Please check the format and try again.",r)]},{key:"wikipediaUrl",name:"Wikipedia",label:"Wikipedia URL",url:"https://en.wikipedia.org/wiki",svg:"svg-icon-wikipedia",validation:[e=>/^https:\/\/([a-z-]+)\.wikipedia\.org\/wiki\/.*$/.test(e)||i("Your Wikipedia URL is invalid. Please check the format and try again.",r)]},{key:"myspaceUrl",name:"MySpace",label:"MySpace URL",url:"https://myspace.com",svg:"svg-icon-myspace",validation:[e=>/^https:\/\/(?:www\.)?(?:[a-zA-Z0-9]+.)?myspace\.[a-z.]+\/.*$/.test(e)||i("Your MySpace URL is invalid. Please check the format and try again.",r)]},{key:"wordPressUrl",name:"WordPress",label:"WordPress URL",url:"https://profiles.wordpress.org",svg:"svg-icon-word-press",validation:[e=>/^https:\/\/profiles\.wordpress\.org\/[a-zA-Z0-9-]+\/?$/.test(e)||i("Your WordPress URL is invalid. Please check the format and try again.",r)]}]}},methods:{updateValue(e,t){if(e){this.profileData.sameUsername.included.push(t.key);return}const c=this.profileData.sameUsername.included.findIndex(_=>_===t.key);c!==-1&&this.profileData.sameUsername.included.splice(c,1)},getValue(e){return this.profileData.sameUsername.included.includes(e.key)},getUrl(e){const t=this.profileData.sameUsername.username||"";return e.key==="tumblrUrl"?e.url.replace("{profile}",t):e.key==="tiktokUrl"?e.url+t:e.url+"/"+t},validateUrl(e,t){if(e.startsWith("http://")&&(e=e.replace("http://","https://")),e&&!e.startsWith("https://")&&(e=`https://${e}`),this.profileData.urls[t.key]=e,!t.validation||!e){this.errors[t.key]="",this.errorsKey++;return}const c=[];t.validation.forEach(_=>{const u=_(e);u!==!0&&c.push(u)}),c.length?this.errors[t.key]=c.join(", "):this.errors[t.key]="",this.errorsKey++},getKey(e){return this.userProfiles?e.name.toLowerCase():e.value}},mounted(){this.profiles.forEach(e=>{const t=[];e.validation.forEach(c=>{if(!this.profileData.urls[e.key])return;const _=c(this.profileData.urls[e.key]);_!==!0&&t.push(_)}),t.length?this.errors[e.key]=t.join(", "):this.errors[e.key]=""}),this.errorsKey++}},h2={class:"aioseo-social-profiles"},m2={class:"same-username"},_2={class:"use-same"},f2={class:"aioseo-social-profile-list"},p2={class:"aioseo-description"};function g2(e,t,c,_,u,o){const z=f("base-checkbox"),w=f("base-input"),L=f("grid-column"),S=f("grid-row"),k=f("core-settings-row"),P=f("core-alert"),V=f("base-textarea");return n(),l("div",h2,[s("div",m2,[s("div",_2,[p(z,{size:"medium",modelValue:o.profileData.sameUsername.enable,"onUpdate:modelValue":t[0]||(t[0]=a=>o.profileData.sameUsername.enable=a)},{default:h(()=>[s("span",null,g(u.strings.useSameUsername),1)]),_:1},8,["modelValue"]),o.profileData.sameUsername.enable?(n(),m(k,{key:0,name:u.strings.yourUsername,align:""},{content:h(()=>[p(w,{size:"medium",modelValue:o.profileData.sameUsername.username,"onUpdate:modelValue":t[1]||(t[1]=a=>o.profileData.sameUsername.username=a)},null,8,["modelValue"]),p(S,{class:"profiles"},{default:h(()=>[(n(!0),l(b,null,x(o.profiles,(a,y)=>(n(),m(L,{key:y,md:c.sameUsernameWidth,sm:"6",class:C(a.key)},{default:h(()=>[p(z,{size:"medium",modelValue:o.getValue(a),"onUpdate:modelValue":U=>o.updateValue(U,a)},{default:h(()=>[$(g(a.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["md","class"]))),128))]),_:1})]),_:1},8,["name"])):v("",!0)])]),s("div",f2,[(n(!0),l(b,null,x(o.profiles,(a,y)=>(n(),m(k,{align:"",class:C(["social-profile",a.key]),key:a.key+u.errorsKey,leftSize:c.leftSize,rightSize:c.rightSize},{name:h(()=>[(n(),m(B(a.svg),{class:"logo-svg"})),$(" "+g(a.label),1)]),content:h(()=>[!o.profileData.sameUsername.enable||!o.profileData.sameUsername.included.includes(a.key)?(n(),m(w,{key:0,size:"medium",modelValue:o.profileData.urls[a.key],onBlur:U=>o.validateUrl(U,a),tabindex:y},null,8,["modelValue","onBlur","tabindex"])):v("",!0),u.errors[a.key]&&(!o.profileData.sameUsername.enable||!o.profileData.sameUsername.included.includes(a.key))?(n(),m(P,{key:1,class:"profile-error",type:"red"},{default:h(()=>[s("strong",null,g(u.errors[a.key]),1)]),_:2},1024)):v("",!0),o.profileData.sameUsername.enable&&o.profileData.sameUsername.included.includes(a.key)?(n(),m(w,{key:2,size:"medium",disabled:"",modelValue:o.getUrl(a)},null,8,["modelValue"])):v("",!0)]),_:2},1032,["class","leftSize","rightSize"]))),128))]),c.hideAdditionalProfiles?v("",!0):(n(),m(k,{key:0,class:"additional-social-profiles",name:u.strings.additionalProfiles},{content:h(()=>[p(V,{minHeight:100,modelValue:o.profileData.additionalUrls,"onUpdate:modelValue":t[2]||(t[2]=a=>o.profileData.additionalUrls=a)},null,8,["modelValue"]),s("div",p2,g(u.strings.additionalProfilesDescription),1)]),_:1},8,["name"]))])}const P2=d(u2,[["render",g2]]);export{P2 as C};