HEX
Server: LiteSpeed
System: Linux premium235.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: beaupptk (733)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/beaupptk/abdulfashion.shop/wp-content/plugins/surerank/build/admin-onboarding/index.js
"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[438],{1455:e=>{e.exports=window.wp.apiFetch},6498:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(51609),n=a(27723),l=a(74443);const s=({plugin:e,value:t,onChange:a})=>e?(0,r.createElement)("div",{className:"flex items-start mt-4 bg-background-secondary p-2 rounded-md border border-solid border-border-subtle"},(0,r.createElement)("div",{className:"mt-0.5 mr-1.5"},(0,r.createElement)(l.A,{checked:t,size:"sm",onChange:a,label:{heading:(0,n.sprintf)((0,n.__)("%s will be deactivated after migration. Uncheck to keep it active.","surerank"),e?.name||(0,n.__)("The plugin","surerank"))}}))):null},9607:(e,t,a)=>{a.d(t,{EJ:()=>p,MI:()=>V,OY:()=>x,P$:()=>y,P3:()=>b,PA:()=>k,RL:()=>F,XY:()=>d,ZV:()=>N,_t:()=>O,b7:()=>H,bF:()=>g,cn:()=>f,d_:()=>B,e$:()=>_,jP:()=>E,jT:()=>M,mT:()=>I,mv:()=>L,ns:()=>P,pk:()=>w,rt:()=>U,sI:()=>T,sL:()=>A,sz:()=>j,tI:()=>G,tX:()=>S,we:()=>D,x7:()=>R,xZ:()=>z,xx:()=>v});var r=a(27723),n=a(65313),l=a(6463),s=a(80696),i=a(81301),o=a(34164),c=a(75795),m=a(50856),u=a(76016);const d=e=>{const t=e.match(/<p>(.*?)<\/p>/g);return t?.length?t[0].replace(/(<([^>]+)>)/gi,""):e.replace(/(<([^>]+)>)/gi,"").replace(/\s+/g," ")},p=(e,t,a="...")=>!e?.length||!t||t<0||e.length<=t?e:e.slice(0,t)+a,g=(e,t,a=100)=>{if("string"!==typeof e||!e.trim())return;if(!h(t))return;const r=document.querySelector(e);r&&setTimeout(()=>{(0,c.createRoot)(r).render(t)},a)},h=e=>e&&e?.$$typeof===Symbol.for("react.element"),_=()=>({surerank_general:"general_settings",surerank_social:"social_settings",surerank_advanced:"advanced_settings"}[new URLSearchParams(window.location.search).get("page")]||"general_settings"),f=(...e)=>(0,m.QP)((0,o.A)(...e)),b=(e,t="value")=>{const a=e?.root?.children[0]?.children;if(!a||!a?.length)return"";let r="";return a.forEach(e=>{switch(e.type){case"text":r+=e.text;break;case"mention":r+=e.data[t];break;case"linebreak":r+="\n"}}),r},w=(e,t=[],a="value",r={type:"mention",version:1,data:{},size:"md",by:"label"})=>{const n={root:{children:[{children:[],direction:null,format:"",indent:0,type:"paragraph",version:1,textFormat:0,textStyle:""}],direction:null,format:"",indent:0,type:"root",version:1}};return("string"===typeof e?e:"").trim().split(/(\s+|%[\w\-_.]+%)/).filter(Boolean).forEach(e=>{if("\n"===e)n.root.children[0].children.push({type:"linebreak",version:1});else if(e?.startsWith("%")&&e?.endsWith("%")){const l=t?.find(t=>t[a]===e.trim());l&&n.root.children[0].children.push({...r,data:{...l}})}else n.root.children[0].children.push({detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1})}),JSON.stringify(n)};function E(e,t=65){const a=e.split("/");let r=`${a.slice(0,3).join("/")} \u203a ${a.slice(3).filter(Boolean).join(" \u203a ")}`;return r.length>t&&(r=r.substring(0,t-3)+"..."),r}const y=e=>{const t=window.location.pathname;return Array.isArray(e)?e.some(e=>t.includes(e)):t.includes(e)},k=(e,t={})=>{if(!e)return;const{delay:a=1e3,retryDelay:r=200,maxRetries:n=5}=t,l=(t=0)=>{const s=document.getElementById(e);s?setTimeout(()=>{s.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},a):t<n&&setTimeout(()=>{l(t+1)},r)};window.requestAnimationFrame(()=>{l()})},v=(e,t)=>{try{return new URL(window.location.href).searchParams.get(e)===t}catch(a){return!1}},C=(e,t="yyyy-MM-dd")=>{try{if(!e||isNaN(new Date(e).getTime()))throw new Error((0,r.__)("Invalid Date","surerank"));return(0,n.GP)(new Date(e),t)}catch(a){return(0,r.__)("No Date","surerank")}},x=(e,t=!0)=>{if(isNaN(e))return{from:"",to:""};const a=t?(0,s.R)():(0,i.K)();let r=new Date(a);return r.setDate(a.getDate()-e),r=(0,l.o)(r),{from:r,to:a}},N=(e,t={})=>{const{decimals:a=1,forceDecimals:r=!1}=t;if("number"!==typeof e||isNaN(e))return"0";const n=e<0,l=Math.abs(e);if(l<1e3)return n?`-${l}`:l.toString();const s=[{value:1e3,suffix:"k"},{value:1e6,suffix:"m"},{value:1e9,suffix:"b"},{value:1e12,suffix:"t"},{value:1e15,suffix:"p"},{value:1e18,suffix:"e"},{value:1e21,suffix:"z"},{value:1e24,suffix:"y"},{value:1e27,suffix:"r"},{value:1e30,suffix:"q"}],i=s.find(({value:e})=>l<1e3*e)||s[s.length-1],o=(l/i.value).toFixed(a);return`${n?"-":""}${r?o:o.replace(/\.?0+$/,"")}${i.suffix}`},A=e=>{const t=new Date(e);return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString()},S=(e,t,a,n="MMM dd, yyyy")=>{if(!e)return"";const l=new Date(e),s=t?new Date(t):null,i=a?new Date(a):null;return isNaN(l.getTime())?(0,r.__)("Invalid Date","surerank"):s&&i?s.getMonth()===i.getMonth()&&s.getFullYear()===i.getFullYear()?C(l,"dd"):s.getFullYear()===i.getFullYear()?C(l,"MMM dd"):C(l,n):C(l,n)},T=e=>{let t,a="pending";const r=e.then(e=>{a="success",t=e},e=>{a="error",t=e});return{read(){if("pending"===a)throw r;if("error"===a)throw t;if("success"===a)return t}}},M=e=>{var t;return e&&"string"===typeof e&&null!==(t=(new DOMParser).parseFromString(e,"text/html").documentElement.textContent)&&void 0!==t?t:e},L=e=>{try{return/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|localhost|\d{1,3}(\.\d{1,3}){3})(:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?(\s.*)?$/i.test(e)}catch(t){return!1}},I=e=>e?Object.entries(e).map(([e,t])=>{const a=e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase());return{...t,id:e,title:t?.message||a,data:t?.description,showImages:"image_alt_text"===e}}):[],z=(e,t=[])=>e.filter(Boolean).reduce((e,a)=>(t.includes(a.id)?(a.ignore=!0,e.ignoredChecks.push(a)):(a.ignore=!1,"error"===a.status?e.badChecks.push(a):"warning"===a.status?e.fairChecks.push(a):"suggestion"===a.status?e.suggestionChecks.push(a):"success"===a.status&&e.passedChecks.push(a)),e),{badChecks:[],fairChecks:[],suggestionChecks:[],passedChecks:[],ignoredChecks:[]}),O=(e,t)=>"error"===e?(0,r.sprintf)("%1$s %2$s",t,(0,r._n)("Issue","Issues",t,"surerank")):"warning"===e?(0,r.sprintf)("%1$s %2$s",t,(0,r._n)("Warning","Warnings",t,"surerank")):(0,r.__)("SEO is Optimized","surerank"),P=e=>{switch(e){case"error":return"bg-support-error";case"warning":return"bg-support-warning";case"suggestion":return"bg-support-info";case"success":return"bg-support-success";default:return"bg-background-secondary"}},R=e=>e>0?(0,r.sprintf)((0,r.__)("%1$d %2$s need attention.","surerank"),e,(0,r._n)("issue","issues",e,"surerank")):(0,r.__)("All SEO checks passed.","surerank"),V=(e,t="")=>{try{const a=new URL(e,window.location.origin).searchParams;return t?a.get(t)||"":Object.fromEntries(a.entries())}catch(a){return t?"":{}}},H=(e,t)=>{try{const a=new URL(e,window.location.origin),r=a.searchParams;return Array.isArray(t)?t.forEach(e=>r.delete(e)):r.delete(t),a.toString()}catch(a){return e}},D=(e,t)=>(e&&"object"===typeof e&&Object.keys(e).forEach(a=>{e[a]&&"object"===typeof e[a]&&(e[a].category=t)}),e),F=(e,t,a)=>{const r=[];return u.Tv.forEach(n=>{if(n===t)r.push(...a);else{const t=j(n).type;r.push(...e.pageSeoChecks?.[t]||[])}}),r},j=e=>({type:`${e}Checks`,categorizedType:`categorized${e.charAt(0).toUpperCase()+e.slice(1)}Checks`}),G=e=>{let t=null!==e&&void 0!==e?e:"";return t.includes("sc-domain:")&&(t=t.replace(/sc-domain:/,"")),t.includes("https://")||t.includes("http://")||(t=`https://${t}`),t},B=e=>{let t="";switch(e.percentageType){case"danger":t="text-support-error [&>*]:text-support-error";break;case"success":t="text-support-success [&>*]:text-support-success";break;default:t=""}let a="";return null===e.value&&null===e.previous&&(a="text-text-tertiary [&>*]:text-text-tertiary"),{differenceClassName:t,fallbackClassName:a}},U=e=>({renderValue:null===e.value&&null===e.previous?"N/A":N(e.value),renderDifference:null===e.value&&null===e.previous?"N/A":N(Math.abs(e?.value-e?.previous))})},9757:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(51609),n=a(30732),l=a(27723),s=a(9607),i=a(72956),o=a(22861);const c=({title:e=(0,l.__)("Wants to unlock advanced SEO features?","surerank"),description:t=(0,l.__)("Upgrade to unlock Video / News Sitemaps, Instant Indexing, Redirect Manager, and more.","surerank"),buttonLabel:a=(0,l.__)("Upgrade now","surerank"),onButtonClick:c,position:m="right",className:u="",variant:d="blue",utmMedium:p,...g})=>(0,i.qP)()?null:(0,r.createElement)("div",{className:(0,s.cn)("flex flex-row items-stretch gap-2 p-3 rounded-lg border border-solid shadow-sm",{blue:"bg-brand-background-50 border-indigo-300",green:"bg-badge-background-green border-green-300",purple:"bg-purple-50 border-purple-300"}[d],u),role:"banner",...g},(0,r.createElement)("div",{className:"flex flex-row items-center gap-2 flex-1"},(0,r.createElement)("div",{className:"flex flex-col gap-1 flex-1"},(0,r.createElement)(n.E,{size:14,weight:600,color:"primary",lineHeight:20},e),(0,r.createElement)(n.E,{size:14,weight:400,color:"secondary",lineHeight:20},t)),(0,r.createElement)("div",{className:"flex items-center gap-2"},(0,r.createElement)(o.A,{label:a,variant:"link",size:"md",iconPosition:null!==m&&void 0!==m?m:"right",onClick:c,utmMedium:p}))))},10960:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(51609),n=a(30732),l=a(418),s=a(45773),i=a(97213),o=a(9607);const c=({title:e="",message:t="",showIcon:a=!1,className:c="",color:m="success",footer:u=null,renderIcon:d=null,action:p=null,...g})=>{const h={success:"text-support-success",error:"text-support-error",warning:"text-support-warning",info:"text-support-info"}[m]||"text-support-success",_={success:s.A,error:l.A,warning:l.A,info:i.A}[m]||s.A;return(0,r.createElement)("div",{className:(0,o.cn)("flex flex-row self-stretch gap-2 p-3 border border-solid rounded-lg",{success:"border-alert-border-green",error:"border-alert-border-danger",warning:"border-alert-border-warning",info:"border-alert-border-info"}[m]||"border-alert-border-green",{success:"bg-alert-background-green",error:"bg-alert-background-danger",warning:"bg-alert-background-warning",info:"bg-alert-background-info"}[m]||"bg-alert-background-green",c),role:"alert",...g},!!d&&d,a&&!d&&(0,r.createElement)(_,{className:(0,o.cn)(h,"shrink-0"),size:20}),(0,r.createElement)("div",{className:"flex flex-col gap-3 pl-1 pr-5 py-0 flex-1"},(0,r.createElement)("div",{className:"flex flex-col justify-center self-stretch gap-0.5"},e&&(0,r.createElement)(n.E,{size:14,weight:600,color:"primary",className:"leading-[1.43]"},e),t&&(0,r.createElement)(n.E,{size:14,weight:400,color:"primary",className:"self-stretch"},t)),u),p)}},17331:(e,t,a)=>{a.d(t,{Ay:()=>d,W2:()=>m});var r=a(51609),n=a(27723),l=a(20019),s=a(47579),i=a(17479),o=a(62e3),c=a(46037);const m=[{container:{direction:"column",gap:6},content:[{id:"facebook_preview",type:"custom",component:(0,r.createElement)(o.A,{platform:"facebook"})},{id:"facebook_page_url",type:"text",label:(0,n.__)("Site Facebook Page","surerank"),placeholder:"https://www.facebook.com/YourPage",storeKey:"facebook_page_url",tooltip:(0,n.__)("Provide the full URL of your official Facebook Page. This URL will be used in your site\u2019s structured data under the Schema \u2192 Organization \u2192 SameAs field to associate your brand with its verified social profile.","surerank")},{id:"facebook_author_fallback",type:"text",label:(0,n.__)("Author Facebook Page","surerank"),placeholder:"https://www.facebook.com/YourPersonalProfile",storeKey:"facebook_author_fallback",tooltip:(0,n.__)("Enter the URL of your default Facebook author page. It will be used in structured data when a post doesn\u2019t have a specific author profile set - useful for multi-author sites.","surerank")}]}],u=()=>(0,r.createElement)(l.A,{title:(0,n.__)("Facebook","surerank"),description:(0,n.__)("Control how your pages appear when shared on Facebook. Set attribution and preview settings here.","surerank")},(0,r.createElement)(i.Ay,{json:m})),d=((0,c.AF)("/social/facebook")({component:(0,s.A)(u)}),(0,s.A)(u))},17479:(e,t,a)=>{a.d(t,{Ay:()=>V,hX:()=>P});var r=a(51609),n=a(86087),l=a(71087),s=a(45350),i=a(62163),o=a(65650),c=a(16162),m=a(16145),u=a(43953),d=a(74443),p=a(19781),g=a(15415),h=a(60443),_=a(27723),f=a(9607),b=a(97213),w=a(94879);const E=({length:e,maxLength:t,align:a="right"})=>(0,r.createElement)("span",{className:(0,f.cn)("text-xs leading-4 font-normal text-field-helper",{"ml-auto":"right"===a,"mr-auto":"left"===a})},(0,r.createElement)("span",{className:(0,f.cn)({"text-text-error":e>t})},null!==e&&void 0!==e?e:0),"/",t);var y=a(54429);const k=({field:e,formValues:t,setFormValues:a})=>{var l;const[s,i]=(0,n.useState)(null!==(l=e?.defaultValue)&&void 0!==l?l:e?.tabs[0]?.slug);return(0,r.createElement)(y.Ay,{activeItem:s},(0,r.createElement)(y.Ay.Group,{variant:"rounded",width:"full",className:"w-full",onChange:({value:e})=>{i(e.slug)}},e?.tabs?.map(e=>(0,r.createElement)(y.Ay.Tab,{key:e.slug,slug:e.slug,text:e.label}))),(0,r.createElement)("div",{className:"w-full"},e?.tabs?.map(e=>(0,r.createElement)(y.Ay.Panel,{key:e.slug,slug:e.slug},(0,r.createElement)("div",{className:"w-full flex flex-col gap-6"},e.content?.map((r,n)=>P({...r,id:r.id||`${e.slug}-field-${n}`},t,a)))))))};var v=a(27165),C=a(47143),x=a(46615),N=a(87096);const A=["checkbox","switch"],S={0:"gap-0",1:"gap-1",1.5:"gap-1.5",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9",10:"gap-10"},T=({label:e,tag:t="label",size:a="sm",variant:i="neutral",className:o="",required:c=!1,tooltip:m="",currentLength:u=null,maxLength:d=null,htmlFor:p=""})=>{if(!e)return null;const g=m?(0,r.createElement)(n.Fragment,null,(0,r.createElement)("span",null,e),(0,r.createElement)(w.m_,{content:m,placement:"top",arrow:!0,className:"z-999999"},(0,r.createElement)(b.A,{className:"size-4"}))):e,h=(0,r.createElement)(l.A,{tag:t,className:(0,f.cn)("space-x-0.5",o,"[&>svg]:text-icon-secondary"),variant:i,size:a,required:c,...p?{htmlFor:p}:{}},g);return d?(0,r.createElement)(s.mc,{direction:"row",align:"center",justify:"start",className:"gap-1 w-full"},(0,r.createElement)("div",{className:"inline-flex"},h),(0,r.createElement)(E,{length:u,maxLength:d,align:"right"})):h},M=({tag:e="p",size:t="xs",variant:a="help",className:n="",description:s=""})=>s?(0,r.createElement)(l.A,{tag:e,size:t,variant:a,className:(0,f.cn)("m-0",n)},s):null,L=({id:e,name:t,value:a,onChange:n,field:l})=>{var s;return(0,r.createElement)("div",{className:"w-full"},(0,r.createElement)(i.A,{id:e,name:t,className:(0,f.cn)("w-full",l?.className),value:a,onChange:n,type:l.type,placeholder:l?.placeholder,size:null!==(s=l?.size)&&void 0!==s?s:"md",autoComplete:"off"}))},I=({id:e,name:t,value:a,onChange:n,field:l})=>{var s,i,c;return(0,r.createElement)(o.A,{id:e,...l?.className?{className:l.className}:{},name:t,defaultValue:(0,f.pk)(a),onChange:e=>{n((0,f.P3)(e.toJSON()))},trigger:"@",by:null!==(s=l?.by)&&void 0!==s?s:"label",options:null!==(i=l?.options)&&void 0!==i?i:[],placeholder:null!==(c=l?.placeholder)&&void 0!==c?c:(0,_.__)("Type @ to view variable suggestions","surerank")})},z=({id:e,name:t,value:a,onChange:n,field:l})=>{var s,i,o;return(0,r.createElement)(c.Ay.Group,{id:e,name:t,value:a,onChange:n,style:null!==(s=l?.style)&&void 0!==s?s:"simple",columns:null!==(i=l?.options?.length)&&void 0!==i?i:2,size:null!==(o=l?.size)&&void 0!==o?o:"sm"},l?.options?.map((e,t)=>{var a,n,s;return(0,r.createElement)(c.Ay.Button,{buttonWrapperClasses:null!==(a=l?.optionWrapperClassName)&&void 0!==a?a:"",borderOn:null!==(n=l?.showBorder)&&void 0!==n&&n,borderOnActive:null!==(s=l?.showBorderOnActive)&&void 0!==s&&s,key:e.id||`${e.value}-${t}`,value:e.value,label:{heading:e.label,description:e?.description}})}))},O=({field:e,formValues:t,setFormValues:a})=>{var n,l;const{handleChange:i,stateValue:o,isChecked:c,fieldValue:g}=((e,t,a)=>{const r=(n=t,(l=e.storeKey)&&n?("string"===typeof l?l.split("."):l).reduce((e,t)=>e?.[t],n):n);var n,l;const s="array"===e?.dataType?r?.includes(e.value):!!r;let i;switch(e?.dataType){case"object":i=r[e.name];break;case"array":case"boolean":i=s;break;default:i=r,e.transform&&"function"===typeof e.transform&&void 0!==i&&(i=e.transform(i))}return{handleChange:n=>{let l=n,s=r;switch(e?.dataType){case"array":l=((e,t,a)=>{switch(Array.isArray(e)||(e=[]),a){case"add":return[...new Set([...e,t])];case"toggle":return e.includes(t)?e.filter(e=>e!==t):[...new Set([...e,t])];default:return e.filter(e=>e!==t)}})(s||[],e.value,l?"add":"remove");break;case"boolean":l=!!n;break;case"object":s=Array.isArray(s)?{}:s,l={...s,[e.name]:n};break;default:e.transform&&"function"===typeof e.transform&&(l=e.transform(n))}if(e.pendingAction&&Array.isArray(e.pendingAction)&&e.pendingAction.includes(l))try{const t=e.id||e.storeKey,a=JSON.parse(window.localStorage.getItem("surerank_pending_actions")||"[]");a.includes(t)||(a.push(t),window.localStorage.setItem("surerank_pending_actions",JSON.stringify(a)))}catch(c){}const[i,o]=e.storeKey.split(".");a(o?{[i]:{...t[i],[o]:l}}:{[i]:l})},stateValue:r,isChecked:s,fieldValue:i}})(e,t,a),h=null!==g&&void 0!==g?g:e.defaultValue,_=null!==(n=e?.name)&&void 0!==n?n:e?.id,b=null!==(l=e?.name)&&void 0!==l?l:e?.id,w="function"===typeof e?.disabled?e.disabled(t):e?.disabled,E="function"===typeof e?.className?e.className(t):e?.className,y={...w&&{disabled:w},...E&&{className:E}};return(0,r.createElement)(s.mc,{direction:"column",align:"start",justify:"start",className:(0,f.cn)("gap-1.5 w-full","function"===typeof e.wrapperClassName?e.wrapperClassName(t):e.wrapperClassName)},!A.includes(e?.type)&&(0,r.createElement)(T,{htmlFor:_,label:e?.label,tag:e?.label?.tag,size:e?.label?.size,variant:e?.label?.variant,className:e?.label?.className,required:e?.label?.required,tooltip:e?.tooltip,currentLength:o?.length,maxLength:e?.maxLength}),(()=>{var t,a,n;switch(e.type){case"text":case"number":case"email":case"password":return(0,r.createElement)(L,{id:_,name:b,value:h,onChange:i,field:e,...y});case"editor":return(0,r.createElement)(I,{id:_,name:b,value:h,onChange:i,field:e});case"textarea":return(0,r.createElement)(m.A,{id:_,name:b,value:h,onChange:i,...y});case"select":return(0,r.createElement)(u.Ay,{id:_,name:b,value:h,onChange:i,...y});case"checkbox":return(0,r.createElement)(d.A,{id:_,name:b,value:e?.value,checked:c,onChange:i,label:{heading:e?.label,description:e?.description},size:null!==(t=e?.size)&&void 0!==t?t:"sm",...y});case"switch":return(0,r.createElement)(p.Ay,{id:_,name:b,value:g,onChange:i,label:{heading:e?.label,description:e?.description},size:null!==(a=e?.size)&&void 0!==a?a:"sm",...y});case"radio":return(0,r.createElement)(z,{id:_,name:b,value:h,onChange:i,field:e});case"custom":var l;return Object.keys(y).length?(0,r.createElement)("div",{...y},null!==(l=e?.component)&&void 0!==l?l:null):null!==(n=e?.component)&&void 0!==n?n:null;default:return null}})(),!A.includes(e?.type)&&(0,r.createElement)(M,{description:e?.description}))},P=(e,t,a)=>{var n,l,s,i;if(void 0!==e.container)return R(e.content,t,a,e.container);switch(e.type){case"label":return(0,r.createElement)(T,{key:e?.id,id:e?.id,label:e?.label,tag:null!==(n=e?.tag)&&void 0!==n?n:"label",size:null!==(l=e?.size)&&void 0!==l?l:"sm",variant:null!==(s=e?.variant)&&void 0!==s?s:"neutral",className:(0,f.cn)("m-0",e?.className),tooltip:e?.tooltip});case"title":return(0,r.createElement)("div",{id:e?.id},(0,r.createElement)(g.h,{key:e?.id,tag:null!==(i=e?.tag)&&void 0!==i?i:"h5",className:(0,f.cn)("m-0",e?.className),title:e?.label}));case"tabs":return(0,r.createElement)(k,{key:e?.id,field:e,formValues:t,setFormValues:a});default:return(0,r.createElement)(O,{key:e?.id,field:e,formValues:t,setFormValues:a})}},R=(e,t,a,l,i={},o=!1)=>{var c;if(!e?.length)return null;const m=(e=>{const t={};if(!e||!Array.isArray(e))return;const a=e=>{e&&Array.isArray(e)&&e.forEach(e=>{e.content&&Array.isArray(e.content)?a(e.content):e.storeKey&&e.shouldReload&&(t[e.storeKey]=!0)})};return e.forEach(e=>{e.content&&a(e.content)}),t})(e),u=()=>{h.o.success((0,_.__)("Settings saved successfully","surerank"),{description:(0,_.__)("To apply the new settings, the page will refresh automatically in 3 seconds.","surerank")}),setTimeout(()=>{window.location.reload()},500)},d=Object.keys(i).some(e=>m[e]),p=e.map((e,l)=>{var i;return(0,r.createElement)(s.mc,{key:e.container?.id||`section-${l}`,direction:e.container?.direction||"column",align:e.container?.align||"start",justify:e.container?.justify||"start",className:(0,f.cn)("p-6 bg-white shadow-sm rounded-xl",S[null!==(i=e.container?.gap)&&void 0!==i?i:6],e.container?.className)},e.content?.map((e,l)=>(0,r.createElement)(n.Fragment,{key:e.id||`content-item-${l}`},((e,t,a,l)=>{if(e?.content){const o=e.content.map((e,t)=>{const s=e.id||`field-${t}`;return(0,r.createElement)(n.Fragment,{key:s},P({...e,id:s},a,l))});var i;return e.container?(0,r.createElement)(s.mc,{key:e.container?.id||`content-${t}`,direction:e.container?.direction||"column",align:e.container?.align||"start",justify:e.container?.justify||"start",className:(0,f.cn)(S[null!==(i=e.container?.gap)&&void 0!==i?i:6],e.container?.className)},o):(0,r.createElement)(n.Fragment,{key:`content-fragment-${t}`},o)}return P({...e,id:e.id||`field-${t}`},a,l)})(e,l,t,a))),!o&&(0,r.createElement)(N.j,{onSuccess:d?u:void 0}))});return(0,r.createElement)(x.P.div,{key:l?.id,className:"w-full",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,type:"tween",ease:"easeInOut",delay:.1}},(0,r.createElement)(s.mc,{direction:l?.direction||"column",align:l?.align||"",justify:l?.justify||"",className:(0,f.cn)("w-full",S[null!==(c=l?.gap)&&void 0!==c?c:6],l?.className)},p))},V=({json:e,hideGlobalSaveButton:t=!1})=>{const{setMetaSettings:a}=(0,C.useDispatch)(v.E),{stateValue:r,unsavedSettings:n}=(0,C.useSuspenseSelect)(e=>{const{getMetaSettings:t,getUnsavedSettings:a}=e(v.E);return{stateValue:t(),unsavedSettings:a()}},[]);return R(e,r,a,{},n,t)}},17845:(e,t,a)=>{a.d(t,{T:()=>p,b9:()=>d,j0:()=>i,kl:()=>h,rG:()=>c,w5:()=>u,z6:()=>g,z_:()=>o});var r,n,l=a(27723),s=a(83649);const i=(0,l.__)("Migrate","surerank"),o=(0,l.__)("Simplify your SEO management by migrating your settings from a plugin to SureRank, ensuring a seamless transition and consistent optimization across your website.","surerank"),c=Object.entries(null!==(r=surerank_admin_common?.plugins_for_migration)&&void 0!==r?r:{}).map(([e,t])=>({slug:e,name:t.name,active:!!t.active})),m=Object.keys(null!==(n=surerank_admin_common?.migration_completed_plugins)&&void 0!==n?n:{}),u=c.filter(e=>e.active).filter(({slug:e})=>m.includes(e)),d=[...new Set((0,s.t)().flatMap(e=>e.links.filter(e=>e.migratable).map(e=>e.label)))],p=[(0,l.__)("Schema","surerank")],g="surerank_migration_progress",h={INIT_MIGRATION:"INIT_MIGRATION",SET_PLUGIN:"SET_PLUGIN",START_MIGRATION:"START_MIGRATION",COMPLETE_GLOBAL_SETTINGS:"COMPLETE_GLOBAL_SETTINGS",COMPLETE_TERM:"COMPLETE_TERM",COMPLETE_POST:"COMPLETE_POST",SET_ERROR:"SET_ERROR",COMPLETE_MIGRATION:"COMPLETE_MIGRATION",RESET_MIGRATION:"RESET_MIGRATION",LOAD_SAVED_STATE:"LOAD_SAVED_STATE",SET_MIGRATION_DATA:"SET_MIGRATION_DATA",SET_MIGRATION_STATUS:"SET_MIGRATION_STATUS",SET_DEACTIVATE_PLUGIN:"SET_DEACTIVATE_PLUGIN"}},19715:(e,t,a)=>{a.d(t,{A:()=>i,W:()=>s});var r=a(51609),n=a(27723),l=a(17479);const s=[{container:{id:"advanced",direction:"column",gap:6},content:[{container:{id:"robot-instructions",direction:"column",gap:2},content:[{id:"robot-instructions-label",type:"label",label:(0,n.__)("Robot Instructions","surerank"),size:"sm",tag:"p",tooltip:(0,n.__)("These settings help search engines understand how to treat your home page in search results. Enabling \u2018No Index\u2019 will prevent the home page from appearing in search results. \u2018No Follow\u2019 tells search engines not to follow any links on the page, and \u2018No Archive\u2019 prevents search engines from storing a cached version of the page. These settings apply only to your website\u2019s home page.","surerank")},{id:"noindex",type:"checkbox",label:(0,n.__)("No Index","surerank"),description:(0,n.__)("Prevents search engines from listing your home page in search results.","surerank"),size:"sm",storeKey:"home_page_robots.general",value:"noindex",dataType:"array"},{id:"nofollow",type:"checkbox",label:(0,n.__)("No Follow","surerank"),description:(0,n.__)("Tells search engines not to follow any links on your home page.","surerank"),size:"sm",storeKey:"home_page_robots.general",value:"nofollow",dataType:"array"},{id:"noarchive",type:"checkbox",label:(0,n.__)("No Archive","surerank"),description:(0,n.__)("Blocks search engines from storing a cached version of your home page.","surerank"),size:"sm",storeKey:"home_page_robots.general",value:"noarchive",dataType:"array"},{id:"robot-instructions-label-description",type:"label",variant:"help",tag:"p",label:(0,n.__)("This is only for Home Page. These settings will not affect any other pages.","surerank"),size:"sm",searchable:!1}]}]}],i=()=>(0,r.createElement)(l.Ay,{json:s})},20019:(e,t,a)=>{a.d(t,{A:()=>p});var r=a(51609),n=a(45350),l=a(15415),s=a(30732),i=a(47143),o=a(27165),c=a(94879),m=a(86087);const u=({title:e="",description:t="",icon:a=null,secondaryButton:u=null,info_tooltip:d=null,afterDescription:p=null})=>{const{unsavedSettings:g}=(0,i.useSelect)(e=>{const{getUnsavedSettings:t}=e(o.E);return{unsavedSettings:t()||{}}},[]),h=Object.keys(g||{}).length>0,_=(0,m.useCallback)(e=>{e.preventDefault(),e.returnValue=""},[g]);return(0,m.useEffect)(()=>{if(h)return window.addEventListener("beforeunload",_),()=>{window.removeEventListener("beforeunload",_)}},[_,h]),(0,r.createElement)(n.mc,{direction:"column",className:"gap-3"},(0,r.createElement)("div",{className:"flex items-center justify-between gap-3 flex-1"},(0,r.createElement)(n.mc,{direction:"column",className:"gap-0.5"},(0,r.createElement)(n.mc,{direction:"row",className:"gap-2"},(0,r.createElement)(l.h,{className:"[&_h2]:text-text-primary [&_h2]:leading-[1.875rem]",title:e,icon:!!a&&(0,r.createElement)(a,{className:"size-5 text-text-primary"}),iconPosition:"left",size:"md"}),d&&(0,r.createElement)("div",{className:"mt-[7px]"},(0,r.createElement)(c.ID,{content:d,interactive:!0}))),(0,r.createElement)(s.E,{size:14,weight:400,color:"secondary"},t)),!!u&&u),(0,m.isValidElement)(p)&&p)};var d=a(9607);const p=({children:e,title:t,description:a,icon:n,secondaryButton:l,info_tooltip:s=null,className:i,afterDescription:o=null})=>e?(0,r.createElement)("div",{className:(0,d.cn)("flex flex-col justify-start-start gap-7 w-full h-full",i)},(0,r.createElement)(u,{title:t,description:a,icon:n,secondaryButton:l,info_tooltip:s,afterDescription:o}),e):null},21732:(e,t,a)=>{a.d(t,{W2:()=>k,Ay:()=>C});var r=a(51609),n=a(20019),l=a(27723),s=a(86087),i=a(45350),o=a(71087),c=a(62163),m=a(30732),u=a(59612),d=a(47143),p=a(27165),g=a(9607),h=a(94879),_=a(68458),f=a(60249);const b=(0,s.memo)(()=>{const{setMetaSettings:e}=(0,d.useDispatch)(p.E),t=(0,d.useSuspenseSelect)(e=>{const{getMetaSettings:t}=e(p.E);return t()},[]),a=(0,s.useCallback)(t=>{t.preventDefault();const a=(0,f.a)({title:(0,l.__)("Select Default Image","surerank"),button:{text:(0,l.__)("Set Default Image","surerank")},multiple:!1});a.on("select",()=>{const t=a.state().get("selection").first().toJSON();e({fallback_image:t.url,fallback_image_id:t.id})}),a.open()},[e]),n=(0,s.useCallback)(()=>{e({fallback_image:"",fallback_image_id:""})},[e]),b=t.fallback_image;return(0,r.createElement)(i.mc,{direction:"column",className:"w-full"},(0,r.createElement)(i.mc.Item,{className:"md:w-full lg:w-full"},(0,r.createElement)("div",{className:"flex flex-row items-center justify-between w-full"},(0,r.createElement)("div",{className:"flex flex-col gap-1.5 size-full"},(0,r.createElement)("div",{className:"flex items-center justify-start gap-1"},(0,r.createElement)(o.A,{htmlFor:"fallbackImage",size:"sm",className:"text-sm font-medium text-field-label",variant:"neutral"},(0,l.__)("Default Image","surerank")),(0,r.createElement)(h.ID,{content:(0,l.__)("Set a default image that will be used for social sharing when no featured or social-specific image is available. This ensures your content always has a visual when shared on platforms like Facebook or X (Twitter).","surerank")})),(0,r.createElement)(c.A,{type:"file",size:"md",onClick:a}),(0,r.createElement)(m.E,{color:"help"},(0,l.__)("Recommended size: 1200 x 630 px. Use JPG or PNG format for best results.","surerank")," ",(0,r.createElement)(m.E,{as:"a",href:"https://surerank.com/docs/general-settings/",target:"_blank",rel:"noopener noreferrer",color:"help"},(0,l.__)("Learn more","surerank"))),(0,r.createElement)(_.A,{imageUrl:t.fallback_image,onRemove:n})))),(0,r.createElement)(i.mc.Item,{className:"md:w-full lg:w-full"},(0,r.createElement)("div",{className:"flex flex-row items-center justify-between w-full"},(0,r.createElement)("div",{className:"flex flex-col gap-2 size-full"},(0,r.createElement)(o.A,{size:"sm",variant:"label"},(0,l.__)("Preview","surerank")),(0,r.createElement)("div",{className:(0,g.cn)("relative flex items-center justify-center bg-field-primary-background rounded-lg w-full",b?"h-auto":"h-[280px]")},b?(0,r.createElement)("div",{className:"relative w-full h-full"},(0,r.createElement)("img",{src:b,alt:(0,l.__)("Fallback","surerank"),className:"object-cover rounded-lg max-h-[280px] w-full h-auto mx-auto"})):(0,r.createElement)("div",{className:"[&>*]:text-icon-secondary [&>*:svg]:h-8"},(0,r.createElement)(u.A,{strokeWidth:1,size:32})))))))});var w=a(47579),E=a(17479),y=a(46037);const k=[{container:{direction:"column",gap:6},content:[{id:"fallback_image",type:"custom",component:(0,r.createElement)(b,null)}]}],v=()=>(0,r.createElement)(n.A,{title:(0,l.__)("Default Social Image","surerank"),description:(0,l.__)("This is your site's default social sharing image (Open Graph). It shows up when your pages are shared on social platforms - unless a custom image is set on that page.","surerank")},(0,r.createElement)(E.Ay,{json:k})),C=((0,y.AF)("/social")({component:(0,w.A)(v)}),(0,w.A)(v))},22861:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(51609),n=a(88029),l=a(27723),s=a(33167),i=a(9607),o=a(72956);const c=({label:e=(0,l.__)("Upgrade Now","surerank"),variant:t="primary",size:a="md",icon:c,iconPosition:m="right",showIcon:u,onClick:d,className:p="",showUnderline:g=!1,utmMedium:h,..._})=>{let f;f=void 0!==c?c:(void 0!==u?u:"link"===t)?(0,r.createElement)(s.A,{className:"w-5 h-5"}):void 0;const{showUnderLine:b,...w}=_;return(0,r.createElement)(n.A,{size:a,variant:t,onClick:()=>{d&&"function"===typeof d?d():(0,o.n$)(h)},className:(0,i.cn)("no-underline ring-0",{"underline ring-0":g},p),icon:f,iconPosition:m,...w},e)}},27165:(e,t,a)=>{a.d(t,{E:()=>r});const r="surerank-admin"},27278:(e,t,a)=>{a.d(t,{g:()=>_});var r=a(51609),n=a(27723),l=a(86087),s=a(56231),i=a(29767),o=a(30732),c=a(8723),m=a(45773),u=a(86241),d=a(9607),p=a(17845);const g=e=>"completed"===e?"bg-badge-background-green border-badge-border-green":"bg-badge-background-gray border-badge-border-gray",h=({title:e,status:t,completed:a,total:l})=>(0,r.createElement)("div",{className:"flex items-center p-2 bg-white border border-solid border-border-subtle rounded-lg"},(0,r.createElement)("div",{className:"flex items-center gap-2"},(0,r.createElement)("div",{className:(0,d.cn)("flex items-center justify-center w-5 h-5 rounded-full",g(t))},(e=>{switch(e){case"completed":return(0,r.createElement)(m.A,{size:12,className:"text-badge-color-green"});case"in_progress":return(0,r.createElement)(c.A,{size:12,className:"text-badge-color-gray animate-spin"});default:return(0,r.createElement)(u.A,{size:12,className:"text-badge-color-gray"})}})(t)),(0,r.createElement)(o.E,{size:14,weight:500,color:"secondary"},e)),(0,r.createElement)(o.E,{as:"span",color:"secondary",className:"mx-0.5"},"-"),(0,r.createElement)(o.E,{size:12,weight:400,color:"tertiary"},"completed"===t?(0,n.sprintf)((0,n.__)("%s completed","surerank"),"100%"):(0,n.sprintf)((0,n.__)("%1$s/%2$s imported","surerank"),a,l))),_=({migrationData:e,currentStatus:t,pluginSlug:a,progress:c})=>{const m=(0,l.useCallback)((a,r=null)=>{if(!t)return"pending";if("global"===a)return e?.global_settings_migrated?"completed":"global_settings"===t.type?"in_progress":"pending";if("term"===a&&r){const a=e?.terms?.[r];return a?a.completed?.length===a.total&&a.total>0?"completed":"terms"===t.type&&t.taxonomy===r||a.completed?.length>0?"in_progress":"pending":"pending"}if("post"===a&&r){const a=e?.posts?.[r];return a?a.completed?.length===a.total&&a.total>0?"completed":"posts"===t.type&&t.postType===r||a.completed?.length>0?"in_progress":"pending":"pending"}return"pending"},[t,e]),u=(0,l.useCallback)(()=>{if(!t)return(0,n.__)("Preparing migration\u2026","surerank");switch(t.type){case"reading_terms":return t.taxonomy&&e?.terms?.[t.taxonomy]?(0,n.sprintf)((0,n.__)("Reading %s\u2026","surerank"),e.terms[t.taxonomy].title):(0,n.__)("Reading taxonomies\u2026","surerank");case"reading_posts":return t.postType&&e?.posts?.[t.postType]?(0,n.sprintf)((0,n.__)("Reading %s\u2026","surerank"),e.posts[t.postType].title):(0,n.__)("Reading content\u2026","surerank");case"global_settings":return(0,n.__)("Migrating global settings\u2026","surerank");case"terms":return t.taxonomy&&e?.terms?.[t.taxonomy]?(0,n.sprintf)((0,n.__)("Migrating %s\u2026","surerank"),e.terms[t.taxonomy].title):(0,n.__)("Migrating taxonomies\u2026","surerank");case"posts":return t.postType&&e?.posts?.[t.postType]?(0,n.sprintf)((0,n.__)("Migrating %s\u2026","surerank"),e.posts[t.postType].title):(0,n.__)("Migrating content\u2026","surerank");default:return(0,n.__)("Processing\u2026","surerank")}},[t]),d=m("global");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.E,{color:"label",weight:600,size:16},(0,n.__)("Importing SEO Settings from","surerank")," ",p.rG.find(e=>e.slug===a)?.name,"..."),(0,r.createElement)("div",{className:"w-full space-y-2"},(0,r.createElement)(s.z,{progress:c}),(0,r.createElement)("div",{className:"flex items-center justify-between"},(0,r.createElement)(o.E,{color:"help",weight:400,size:12},u()),(0,r.createElement)(o.E,{color:"help",weight:400,size:12},c,"%"))),t.type?.match(/^reading_\S+/i)?(0,r.createElement)("div",{className:"flex flex-col gap-2 mt-4"},Array.from({length:3}).map((e,t)=>(0,r.createElement)(i.A,{key:t,className:"h-[2.375rem] w-full"}))):(0,r.createElement)("div",{className:"flex flex-col gap-2 mt-4"},(0,r.createElement)("div",{className:"flex flex-col gap-2"},(0,r.createElement)(h,{title:(0,n.__)("Global Settings","surerank"),status:d,completed:e?.global_settings_migrated?1:0,total:1}),Object.entries(e?.terms||{}).map(([e,t])=>(0,r.createElement)(h,{key:`term-${e}`,title:t.title,status:m("term",e),completed:t.completed?.length||0,total:t.total||0})),Object.entries(e?.posts||{}).map(([e,t])=>(0,r.createElement)(h,{key:`post-${e}`,title:t.title,status:m("post",e),completed:t.completed?.length||0,total:t.total||0})))))}},27723:e=>{e.exports=window.wp.i18n},38502:(e,t,a)=>{a.d(t,{A:()=>b});var r=a(51609),n=a(27723),l=a(59612),s=a(66803),i=a(56523),o=a(30732),c=a(9607),m=a(48697),u=a(88029),d=a(99019);const p=({variant:e="outline",size:t="xs",strokeWidth:a=2,icon:n=(0,r.createElement)(m.A,{strokeWidth:a,className:"h-4 w-4"}),onClick:l,className:s="absolute top-2 right-2 flex items-center p-1 h-8 w-8 rounded leading-[0]",disabled:i=!1,tooltip_label:o})=>{const c=(0,r.createElement)(u.A,{variant:e,size:t,className:s,onClick:l,disabled:i},n);return o?(0,r.createElement)(d.m,{placement:"top",offset:10,variant:"dark",title:o,tooltipPortalId:"surerank-root"},c):c};var g=a(86087);const h=e=>{const t=new Date,a=t.toLocaleString("default",{month:"long"}),r=t.getDate();return"twitter"===e?`${a?.slice(0,3)} ${r}`:`${a} ${r}`},_=({className:e,...t})=>(0,r.createElement)("div",{className:(0,c.cn)("w-full h-full bg-background-secondary flex items-center justify-center",e),...t},(0,r.createElement)(l.A,{className:"size-6 m-auto"})),f=({displayName:e="Name",username:t="@username",timeLabel:a="28m",postText:l="Sample Post Title",title:m=(0,n.__)("Modern WordPress SEO Plugin Without the Bloat - SureRank","surerank"),description:u="",imageURL:d="",siteURL:h="surerank.com",onClickRemove:f,hideRemoveButton:b=!0,forMetaBox:w=!1,cardType:E="summary_large_image"})=>{const y=(0,c.jT)(m),k=(0,c.jT)(u),v={id:"x-preview-large",className:"[#x-preview-large&_*]:font-twitter"},C=(0,r.createElement)(i.A,{className:"flex-shrink-0",size:w?"sm":"md",variant:"primary",src:"https://www.gravatar.com/avatar/?d=mp"},"User"),x=(0,r.createElement)("div",{className:"inline-flex items-center gap-1"},(0,r.createElement)(o.E,{as:"p",className:"m-0",size:16,weight:500,color:"secondary"},e),(0,r.createElement)(s.A,{className:"size-5 text-white fill-[#1d9bf0]","aria-label":(0,n.__)("Verified account","surerank")}),(0,r.createElement)(o.E,{as:"p",className:"m-0",size:16,weight:400,color:"secondary"},t," \xb7 ",a));if("summary_large_image"===E){const e=(0,n.sprintf)((0,n.__)("Check out my page: %s","surerank"),(0,g.renderToString)((0,r.createElement)(o.E,{className:"inline text-[#1d9bf0] m-0 hover:underline",as:"p"},h.startsWith("http")?h:`https://${h}`)));return(0,r.createElement)("div",{...v},(0,r.createElement)("div",{className:"p-3 flex items-start gap-3"},C,(0,r.createElement)("div",{className:"flex-1"},x,l?(0,r.createElement)(o.E,{as:"p",className:"mt-0.5 mb-0 line-clamp-2",size:14,color:"secondary"},l):(0,r.createElement)(o.E,{as:"p",color:"secondary",size:14,className:"mt-0.5 mb-0 line-clamp-2",dangerouslySetInnerHTML:{__html:e}}),(0,r.createElement)("div",{className:"relative mt-3 rounded-2xl border border-solid border-border-subtle overflow-hidden"},d?(0,r.createElement)("div",{className:(0,c.cn)("relative w-full h-[16.8125rem]",w&&"h-52")},(0,r.createElement)("img",{src:d,alt:"Shared link preview",className:"w-full h-full object-cover"}),!b&&(0,r.createElement)(p,{onClick:f})):(0,r.createElement)("div",{className:"h-[16.8125rem]"},(0,r.createElement)(_,null)),(0,r.createElement)("div",{className:"inline-block w-fit px-2 rounded absolute bottom-3 left-3 right-3 text-xs text-white bg-black/[0.77]"},(0,r.createElement)(o.E,{as:"p",className:"m-0 line-clamp-1 text-inherit"},y))),(0,r.createElement)(o.E,{as:"p",color:"secondary",size:14,weight:400,className:"mt-2 mb-1"},(0,n.__)("From","surerank")," ",(0,r.createElement)("span",{className:"hover:underline"},h)))))}return(0,r.createElement)("div",{id:v.id,className:(0,c.cn)("p-3",v.className)},(0,r.createElement)("div",{className:"flex gap-3 justify-start items-start"},C,(0,r.createElement)("div",{className:"space-y-4"},x,(0,r.createElement)("div",{className:"grid overflow-hidden min-h-[7.75rem] grid-cols-[7.5rem_1fr] rounded-2xl border border-solid border-border-subtle"},d?(0,r.createElement)("div",{className:"relative w-full h-full inline-flex"},(0,r.createElement)("img",{className:"w-full h-full object-cover m-0 max-h-[7.625rem] border-y-0 border-l-0 border-r border-solid border-border-subtle",src:d,alt:"thumbnail"}),!b&&(0,r.createElement)(p,{onClick:f})):(0,r.createElement)(_,{className:"border-y-0 border-l-0 border-r border-solid border-border-subtle"}),(0,r.createElement)("div",{className:"inline-grid items-center justify-start gap-0.5 px-3 py-5"},(0,r.createElement)("p",{className:"m-0 font-normal text-text-secondary leading-4 text-xs"},h),(0,r.createElement)("div",{className:"w-full overflow-hidden"},(0,r.createElement)("p",{className:"m-0 text-[0.9375rem] font-semibold text-text-primary whitespace-nowrap leading-5"},y)),(0,r.createElement)("p",{className:"m-0 font-normal text-text-secondary line-clamp-3 leading-5 text-sm"},k||""))))))},b=({displayName:e="Name",username:t="@username",type:a="facebook",title:l=(0,n.__)("Sample Post - Testing Site","surerank"),description:s="",imageURL:i="",siteURL:o="surerank.com",twitterLargePreview:m=!1,onClickRemove:u,hideRemoveButton:d=!0,forMetaBox:g=!1})=>{let b=null;const w=(0,c.jT)(s),E=(0,c.jT)(l),y=w||"";switch(a){case"twitter":b=(0,r.createElement)(f,{displayName:e,username:t,timeLabel:h("twitter"),title:E,description:w,imageURL:i,siteURL:o,onClickRemove:u,hideRemoveButton:d,forMetaBox:g,cardType:m?"summary_large_image":"summary"});break;case"facebook":b=(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"w-full h-[16.8125rem] overflow-clip"},i?(0,r.createElement)("div",{className:"relative w-full h-full"},(0,r.createElement)("img",{src:i,alt:"Social Post",className:"w-full h-full object-cover"}),!d&&(0,r.createElement)(p,{onClick:u})):(0,r.createElement)(_,null)),(0,r.createElement)("div",{className:"p-3 w-full"},(0,r.createElement)("p",{className:"m-0 text-xs leading-4 font-normal text-text-secondary"},o),(0,r.createElement)("p",{className:"mt-1.5 mb-1 text-base leading-6 font-semibold text-text-primary line-clamp-2"},E),(0,r.createElement)("p",{className:"m-0 text-sm leading-5 font-normal line-clamp-2"},y)));break;default:b=null}return(0,r.createElement)("div",{className:"p-2 rounded-lg bg-background-secondary"},(0,r.createElement)("div",{className:"flex flex-col rounded-md border border-solid border-border-subtle shadow-sm overflow-hidden bg-background-primary"},b))}},41668:(e,t,a)=>{a.d(t,{A:()=>y,W:()=>E});var r=a(51609),n=a(27723),l=a(88029),s=a(16145),i=a(45350),o=a(30732),c=a(60443),m=a(71149),u=a(8723),d=a(17479),p=a(20019),g=a(47579),h=a(1455),_=a.n(h),f=a(86087),b=a(62220),w=a(9607);const E=[{container:null,content:[{id:"robots-txt-editor-settings",type:"custom",component:(0,r.createElement)(()=>{const{robots_data:e={},wp_reading_settings_url:t=""}=window?.surerank_admin_common||{},{robots_txt_content:a="",search_engine_visibility:d=!1,robots_file_exists:p=!1,robot_file_content:g="",default_robots_txt:h=""}=e,[E,y]=(0,f.useState)(p?g||"":a),[k,v]=(0,f.useState)(!1),[C,x]=(0,f.useState)(!1),N="0"===d||p,A=(0,f.useCallback)(async e=>{if(!k){v(!0);try{const a=await _()({path:b.DN,method:"POST",data:{robots_txt_content:e}});var t;if(!a?.success)throw new Error(null!==(t=a?.message)&&void 0!==t?t:(0,n.__)("Failed to update robots.txt file.","surerank"));y(e),x(!1),c.o.success((0,n.__)("Settings saved successfully","surerank"),{description:(0,n.__)("To apply the new settings, the page will refresh automatically in 3 seconds.","surerank")}),setTimeout(()=>{window.location.reload()},1500)}catch(a){c.o.error(a.message,{description:(0,n.__)("An unexpected error occurred while updating the robots.txt content. Please try again later.","surerank")})}finally{v(!1)}}},[k]);return(0,r.createElement)(i.mc,{direction:"column",className:"w-full gap-6"},(0,r.createElement)(s.A,{value:E,onChange:e=>{y(e),x(e!==a)},rows:10,size:"md",disabled:N,title:(0,n.__)("This field is disabled when a physical robots.txt file exists.","surerank"),className:(0,w.cn)("font-mono text-sm w-full bg-background-inverse text-background-tertiary",N&&"cursor-not-allowed"),placeholder:g||h}),(0,r.createElement)("div",{className:"w-full"},(0,r.createElement)(o.E,{id:"robots-txt-warning",size:"sm",weight:400},(()=>{const e=`${window?.surerank_globals?.site_url}/robots.txt`;return p?(0,n.__)("We found a physical robots.txt file on your server. To use this feature in SureRank, you'll need to delete that file first.","surerank"):"0"===d?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",null,(0,n.__)("Warning:","surerank"))," ",(0,n.__)("Your site's search engine visibility is currently set to Hidden in ","surerank"),(0,r.createElement)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-badge-color-sky no-underline hover:no-underline cursor-pointer bg-transparent border-none p-0 outline-none shadow-none focus:ring-0"},(0,n.__)("Settings > Reading","surerank")),(0,n.__)(". Any changes made here will not be applied until you set the search engine visibility to Public. This is required to update the robots.txt content.","surerank")):(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:(0,n.sprintf)((0,n.__)("Open %1$s on your website. If you want to verify the contents of robots.txt, click %2$s","surerank"),(0,f.renderToString)((0,r.createElement)(o.E,{as:"a",color:"link",href:e,target:"_blank",rel:"noopener noreferrer",className:"no-underline focus:ring-0 hover:no-underline"},(0,n.__)("robots.txt","surerank"))),(0,f.renderToString)((0,r.createElement)(o.E,{as:"a",color:"link",href:"https://technicalseo.com/tools/robots-txt/",target:"_blank",rel:"noopener noreferrer",className:"no-underline focus:ring-0 hover:no-underline"},(0,n.__)("here.","surerank"))))}})})())),(0,r.createElement)("div",null,(0,r.createElement)(l.A,{onClick:()=>A(E),variant:"primary",icon:k?(0,r.createElement)(u.A,{className:"animate-spin"}):C?(0,r.createElement)(m.Zy,null):null,className:(0,w.cn)(k||!C?"opacity-60 bg-background-brand cursor-not-allowed pointer-events-none":""),size:"md"},(0,n.__)(k?"Saving\u2026":"Save","surerank"))))},null),searchKeywords:["robots.txt","robots txt editor","robots file"]}]}],y=(0,g.A)(()=>(0,r.createElement)(p.A,{title:(0,n.__)("Robots.txt Editor","surerank"),description:(0,n.__)("Manage your robots.txt file to control what search engines can see on your website.","surerank")},(0,r.createElement)(d.Ay,{json:E,hideGlobalSaveButton:!0})))},47143:e=>{e.exports=window.wp.data},47521:(e,t,a)=>{a.d(t,{Ay:()=>u,W2:()=>c});var r=a(51609),n=a(20019),l=a(27723),s=a(47579),i=a(17479),o=a(46037);const c=[{type:"container",content:[...(()=>{var e;return(null!==(e=surerank_admin_common?.social_profiles)&&void 0!==e?e:[]).filter(e=>!1!==e.show_in_dashboard).map(e=>({id:e.id,name:e.id,label:e.label,placeholder:e.placeholder,type:"text",storeKey:"social_profiles",dataType:"object"}))})()]}],m=()=>(0,r.createElement)(n.A,{title:(0,l.__)("Other Accounts","surerank"),description:(0,l.__)("Enter the full URLs of your official profiles. These will be added to the Organization schema under SameAs to help search engines verify your online presence.","surerank")},(0,r.createElement)(i.Ay,{json:c})),u=((0,o.AF)("/social/accounts")({component:(0,s.A)(m)}),(0,s.A)(m))},47579:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(51609),n=a(86087),l=a(29767),s=a(9607);const i=()=>{const e=["aspect-video","aspect-[7/2]","aspect-[8/1]","aspect-[8/2]","aspect-[8/3]","aspect-[8/4]"],t=["w-1/5","w-1/4","w-1/6","w-1/7","w-1/8","w-1/9","w-5/12","w-4/12","w-3/6"],a=Math.floor(5*Math.random()+3);return(0,r.createElement)("div",{className:"flex-1 flex flex-col gap-7 w-full"},(0,r.createElement)("div",{className:"flex items-center justify-between w-full"},(0,r.createElement)(l.A,{variant:"rectangular",className:"w-1/4 h-8"}),(0,r.createElement)(l.A,{variant:"rectangular",className:"w-20 h-12"})),(0,r.createElement)("div",{className:"w-full flex flex-col gap-10 p-4 bg-background-primary shadow-sm rounded-xl"},Array.from({length:a},(a,n)=>{const i=e[Math.floor(Math.random()*e.length)];return(0,r.createElement)("div",{key:n,className:"w-full h-fit space-y-5"},(0,r.createElement)("div",{className:"flex items-center justify-between gap-4"},(0,r.createElement)(l.A,{variant:"rectangular",className:(0,s.cn)("w-24 h-8",t[Math.floor(Math.random()*t.length)])})),(0,r.createElement)("div",{key:n,className:i},(0,r.createElement)(l.A,{variant:"rectangular",className:"w-full h-full"})))})))},o=(e,t=i)=>a=>(0,r.createElement)(n.Suspense,{fallback:(0,r.createElement)(t,null)},(0,r.createElement)(e,{...a}))},50459:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(51609),n=a(27723),l=a(10960),s=a(17845);const i=()=>{const{active_cache_plugins:e=!1}=window?.surerank_admin_common||{};return e&&s.rG.length?(0,r.createElement)(l.A,{color:"warning",title:(0,n.__)("SureRank migration will run smoothly if the cache plugin is temporarily paused","surerank"),message:(0,n.__)("We\u2019ve detected a cache plugin on your site. While not required, we recommend turning it off during migration to avoid any possible conflicts. You can keep it active if you prefer, but disabling it for now may help ensure everything runs smoothly.","surerank")}):null}},50995:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(51609),n=a(27723),l=a(88029),s=a(10960);const i=({error:e,onRetry:t,isDisabled:a})=>(0,r.createElement)("div",{className:"flex flex-col gap-2"},(0,r.createElement)(s.A,{title:(0,n.__)("Migration Error","surerank"),message:e,showIcon:!0,color:"error"}),"function"===typeof t&&(0,r.createElement)("div",{className:"flex mt-2"},(0,r.createElement)(l.A,{size:"md",variant:"primary",onClick:t,disabled:a},(0,n.__)("Try Again","surerank"))))},51609:e=>{e.exports=window.React},52619:e=>{e.exports=window.wp.hooks},55396:(e,t,a)=>{a.d(t,{A:()=>c,W:()=>o});var r=a(51609),n=a(20019),l=a(27723),s=a(47579),i=a(17479);const o=[{container:{direction:"column",gap:6},content:[{id:"author_archive",type:"switch",storeKey:"author_archive",label:(0,l.__)("Remove Author Pages & Redirect to Home","surerank"),description:(0,l.__)("Author pages list all posts written by a specific author. On single-author sites, these pages duplicate your main blog and can confuse search engines. Enable this to redirect them to your homepage.","surerank"),transform:e=>!e},{id:"date_archive",type:"switch",storeKey:"date_archive",label:(0,l.__)("Remove Date Archive Pages & Redirect to Home","surerank"),description:(0,l.__)("WordPress creates archive pages for each month or year of your posts. These pages often add no real value and can lead to duplicate content. Enable this to redirect them to your homepage.","surerank"),transform:e=>!e}]}],c=(0,s.A)(()=>(0,r.createElement)(n.A,{title:(0,l.__)("Archive Pages","surerank"),description:(0,l.__)("Archive Pages let visitors access links to view posts by author or by date. This makes it easier for people to find content based on who wrote it or when it was published.","surerank")},(0,r.createElement)(i.Ay,{json:o})))},56904:(e,t,a)=>{a.d(t,{A:()=>f,W:()=>_});var r=a(51609),n=a(20019),l=a(27723),s=a(47579),i=a(17479),o=a(9757),c=a(30732),m=a(52619),u=a(86087);const d=()=>(0,r.createElement)("div",{className:"flex items-center justify-between p-3 gap-2 relative ring-1 rounded-lg ring-alert-border-warning bg-alert-background-warning shadow-none"},(0,r.createElement)("div",{className:"w-full gap-2"},(0,r.createElement)(c.E,{size:14,weight:400,color:"primary",className:"mb-2"},(0,l.__)("Without AI, meta tags will be added to images using the file name and post title. However, this data is often repetitive or too generic and doesn't describe the image accurately. Search engines may even treat such tags as spammy.","surerank")),(0,r.createElement)(c.E,{size:14,weight:400,color:"primary"},(0,l.__)("For the best results, we strongly recommend using AI to generate authentic, context-aware image descriptions that truly optimize your image SEO.","surerank")))),p=()=>(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:(0,l.sprintf)((0,l.__)("%1$s to use AI image SEO","surerank"),(0,u.renderToString)((0,r.createElement)(c.E,{as:"a",color:"link",href:"https://surerank.com/pro/?utm_medium=surerank_image_seo",target:"_blank",rel:"noopener noreferrer",className:"no-underline focus:ring-0 hover:no-underline"},(0,l.__)("Upgrade to pro","surerank"))))}}),g=()=>[{id:"redirect_attachment_pages_to_post_parent",type:"switch",storeKey:"redirect_attachment_pages_to_post_parent",label:(0,l.__)("Redirect Attachment Pages to Parent Post","surerank"),description:(0,l.__)("Enable this to redirect all attachment pages to their parent post or to the homepage. This avoids low-content pages and improves SEO.","surerank"),searchKeywords:["Redirect Attachment Pages"]},{id:"image_seo_seperator",type:"custom",storeKey:"image_seo_helptext",dataType:"string",component:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"w-full block"},(0,r.createElement)("hr",{className:"border-border-subtle border-b border-t-0 border-x-0 my-0 w-full"})))},{id:"generate_alt_with_ai",type:"switch",disabled:!0,storeKey:"generate_alt_with_ai",label:(0,l.__)("Optimize Image SEO with AI","surerank"),description:(0,r.createElement)(p,null)},{id:"auto_set_image_alt",type:"switch",storeKey:"auto_set_image_alt",label:(0,l.__)("Optimize Image SEO without AI","surerank"),description:(0,l.__)("Auto-add basic alt text for images that don\u2019t have one, using the file name or post title.","surerank"),searchKeywords:["Optimize Image","Image Alt Text","Add Missing Alt Text","Image Alt Text Attribute"]}],h=()=>{const e=g(),t=(0,m.applyFilters)("surerank-pro.image-seo-settings",[{container:{direction:"column",gap:6},content:e}],e);return t[0]&&t[0].content&&t[0].content.push({type:"custom",id:"image_seo_helptext",storeKey:"image_seo_helptext",dataType:"string",component:(0,r.createElement)(d,null),wrapperClassName:e=>e.auto_set_image_alt?"":"hidden"}),t},_=[{container:{direction:"column",gap:6},content:g()}],f=(0,s.A)(()=>(0,r.createElement)(n.A,{title:(0,l.__)("Image SEO","surerank"),description:(0,l.__)("Generate SEO-friendly image alt text automatically with SureRank AI to improve accessibility and boost your image search visibility.","surerank")},(0,r.createElement)(i.Ay,{json:h()}),(0,r.createElement)(o.A,{title:(0,l.__)("Optimize Image SEO with AI","surerank"),description:(0,l.__)("Generate authentic, context-aware image descriptions that truly optimize your image SEO.","surerank"),utmMedium:"surerank_image_seo"})))},60249:(e,t,a)=>{a.d(t,{a:()=>r});const r=e=>{const t=wp.media({...e,library:{type:"image",...e.library||{}}});return e.button&&e.button.text&&((e,t)=>{const a=()=>{const a=[".media-button-select",".media-button-insert",".button-primary"];for(const r of a){const a=e.$(r);if(a.length&&a.is(":visible")){a.text(t);break}}};e.on("ready",a),e.on("selection:toggle",a),e.on("content:render",a)})(t,e.button.text),t}},60388:()=>{},61456:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(51609),n=a(3213),l=a(9607),s=a(71149);const i=({deviceType:e="desktop",faviconURL:t="",title:a="",description:i="",permalink:o="",siteTitle:c=""})=>{const m=(0,l.jT)(a),u=(0,l.jT)(i);return(0,r.createElement)("div",{className:"p-2 rounded-lg bg-background-secondary"},(0,r.createElement)("div",{className:"rounded-md border border-solid border-border-subtle bg-background-primary p-4 space-y-1.5 shadow-sm"},(0,r.createElement)("div",{className:"grid grid-cols-[1.75rem_1fr] items-center gap-3"},t?(0,r.createElement)("div",{className:"relative w-7 h-7"},(0,r.createElement)("img",{className:"w-full h-full object-cover m-0",src:t,alt:"favicon"})):(0,r.createElement)(s.V_,{className:"size-7"}),(0,r.createElement)("div",{className:"flex flex-col gap-0.5"},(0,r.createElement)("span",{className:"text-text-primary font-semibold"},c),(0,r.createElement)("div",{className:"flex items-center justify-start gap-2"},(0,r.createElement)("span",{className:"text-text-secondary line-clamp-1 break-all"},o),(0,r.createElement)(n.A,{className:"size-3.5 text-icon-secondary"})))),(0,r.createElement)("div",{className:"space-y-1"},(0,r.createElement)("p",{className:"text-xl leading-8 font-normal text-text-seo-title m-0 line-clamp-1 break-all"},m),(0,r.createElement)("p",{className:(0,l.cn)("text-sm leading-5 font-medium text-text-secondary m-0 break-words","mobile"===e&&"text-2xl leading-9.5 line-clamp-2")},u))))}},62e3:(e,t,a)=>{a.d(t,{A:()=>g});var r=a(51609),n=a(27723),l=a(71087),s=a(38502),i=a(64506),o=a(9607),c=a(47143),m=a(27165),u=a(86087),d=a(46615);const p=(0,u.memo)(({children:e,className:t,animationDuration:a=.3})=>{const n=(0,u.useRef)(null),[l,s]=(0,u.useState)("auto");return(0,u.useEffect)(()=>{if(n.current){const e=new ResizeObserver(e=>{s(e[0].contentRect.height)});return e.observe(n.current),()=>{e.disconnect()}}},[]),(0,r.createElement)(d.P.div,{className:(0,o.cn)("overflow-hidden",t),style:{height:l},animate:{height:l,opacity:1},exit:{height:l,opacity:0},transition:{duration:a}},(0,r.createElement)("div",{ref:n},e))}),g=({platform:e="facebook"})=>{const{fallback_image:t,page_title:a,page_description:u,site:d,home_page_featured_image:g,home_page_facebook_image_url:h,home_page_twitter_image_url:_,twitter_card_type:f}=(0,c.useSuspenseSelect)(e=>{const t=e(m.E);return{...t.getSiteSettings(),...t.getMetaSettings()}},[]),{site_url:b}=d,w="facebook"===e?h:_,E=(0,o.EJ)((0,i.A)(a,d)||"",60),y=(0,o.EJ)((0,i.A)(u,d)||"",117),k=g||"",v=k&&""!==k?k:!1!==w&&""!==w?w:t,C=(0,o.jT)(E),x=(0,o.jT)(y);return(0,r.createElement)(p,{className:"[&>div]:space-y-2 w-full"},(0,r.createElement)(l.A,{tag:"span",size:"sm",className:"space-x-0.5"},(0,n.__)("facebook"===e?"Facebook Preview":"X Preview","surerank")),(0,r.createElement)(s.A,{title:C,description:x,imageURL:v,siteURL:b.replace(/(^\w+:|^)\/\//,""),hideRemoveButton:!0,type:e,twitterLargePreview:"twitter"===e&&"summary_large_image"===f}))}},62220:(e,t,a)=>{a.d(t,{CS:()=>m,DN:()=>u,EJ:()=>o,Li:()=>i,MF:()=>c,W9:()=>r,qh:()=>s,uX:()=>l,wX:()=>n});const r="/surerank/v1/admin/global-settings",n="/surerank/v1/admin/site-settings",l="/surerank/v1/admin/editor",s="/surerank/v1/onboarding",i="/surerank/v1/admin/post-content",o="/surerank/v1/term/settings",c="/surerank/v1/post/settings",m="/surerank/v1/admin/posts",u="/surerank/v1/robots-txt"},64506:(e,t,a)=>{a.d(t,{A:()=>r});const r=(e,t,a={})=>{if(!e||!t)return e;const r=(e=>{const t=e.match(/%([^%\s]+)%/g);return t?t.map(e=>e.replace(/%/g,"")):[]})(e),n=[];return r.forEach(e=>{n[e]||(n[e]=["title","excerpt","content"].includes(e)&&a?.[e]?a[e]:t[e]||"")}),e.replace(/%([^%\s]+)%/g,(e,t)=>n[t]||"")}},64894:(e,t,a)=>{a.d(t,{Af:()=>u,Lx:()=>p,ih:()=>m,lX:()=>g,lr:()=>c,xI:()=>d});var r=a(1455),n=a.n(r),l=a(93832),s=a(62220),i=a(9607);const o="/surerank/v1",c=async()=>{const e=new URLSearchParams;(0,i.P$)("term.php")?e.append("term_id",surerank_seo_popup?.term_id):e.append("post_id",surerank_seo_popup?.post_id),e.append("post_type",surerank_seo_popup?.post_type),e.append("is_taxonomy",surerank_seo_popup?.is_taxonomy);try{const t=await n()({path:`${(0,i.P$)("term.php")?s.EJ:s.MF}?${e.toString()}`,method:"GET"});if(!t.success)throw new Error(t.message);return t}catch(t){throw new Error(t.message)}},m=async e=>{if(!e)return null;const t=new URL(e).pathname.split("/").pop().split("?")[0],a=t.replace(/-\d+x\d+\.(jpg|jpeg|png|gif|webp)$/i,"").replace(/-scaled\.(jpg|jpeg|png|gif|webp)$/i,"").replace(/\.(webp)$/i,"").replace(/(-optimized|-compressed)/i,""),r=[{search:t},{search:a},{search:t.replace(/\.[^/.]+$/,"")},{search:a.replace(/\.[^/.]+$/,"")}];for(const i of r)try{const e=await n()({path:(0,l.addQueryArgs)("/wp/v2/media",{search:i.search,media_type:"image",slug:i.search,per_page:20}),method:"GET"});if(e&&e.length>0)return e.find(e=>{const r=e.source_url||e.url,n=r.split("/").pop().split("?")[0];return n===t||r.includes(a)||n.includes(a)})||e[0]}catch(s){continue}try{const e=a.split("-")[0],t=await n()({path:(0,l.addQueryArgs)("/wp/v2/media",{search:e,media_type:"image",per_page:50}),method:"GET"});if(t&&t.length>0)return t[0]}catch(s){}return null},u=()=>n()({path:`${o}/migration/migrated-data`,method:"GET"}),d=()=>n()({path:`${o}/ai/auth`}),p=e=>n()({path:`${o}/ai/auth`,method:"POST",data:{accessKey:e}}),g=(e,t,a)=>{const r={type:e};return t&&(r.post_id=t),a&&(r.is_taxonomy=a),n()({path:`${o}/generate-content`,method:"POST",data:r})}},68458:(e,t,a)=>{a.d(t,{A:()=>p});var r=a(51609),n=a(86087),l=a(29767),s=a(9655);const i=class extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?(0,r.createElement)("div",{className:"text-base font-medium text-text-error p-4 border border-solid border-border-error rounded-lg"},"Error: ",this.state.error.message||"Unknown error"):this.props.children}};var o=a(9607),c=a(64894);const m=new Map,u=()=>(0,r.createElement)(l.A,{className:"h-14 w-full"}),d=({imageId:e,imageUrl:t,onRemove:a})=>{let n=(({imageId:e="",imageUrl:t=""})=>{if(m.has(e||t))return m.get(e||t);const a=(0,o.sI)(new Promise(a=>{if(!e&&!t)return void a({});const r=e=>{if(!e)return void a({});const t=(e=>wp.media.attachment(e).fetch())(e);t&&"function"===typeof t.then?t.then(()=>{a(t)}).catch(()=>{a({})}):a(t)};t?(0,c.ih)(t).then(e=>{e?r(e.id):a({})}).catch(()=>{a({})}):e?r(e):a({})}));return m.set(e||t,a),a})({imageId:e,imageUrl:t}).read()||{};return"attributes"in n&&(n=n.attributes),(0,r.createElement)("div",{className:"[&>div]:m-0"},(0,r.createElement)(s.d,{file:{name:n.filename||"",url:n.url||"",type:n.type||"",size:n.filesizeInBytes||""},onRemove:a,size:"md"}))},p=(0,n.memo)(({imageId:e,imageUrl:t,onRemove:a})=>((0,n.useEffect)(()=>{const a=()=>{(e||t)&&m.delete(e||t)};return window.addEventListener("beforeunload",a),()=>{window.removeEventListener("beforeunload",a)}},[e,t]),e||t?(0,r.createElement)(i,null,(0,r.createElement)(n.Suspense,{fallback:(0,r.createElement)(u,null)},(0,r.createElement)(d,{imageId:e,imageUrl:t,onRemove:a}))):null))},70097:(e,t,a)=>{a.d(t,{A:()=>h});var r=a(27723),n=a(86087),l=a(15959),s=a(1455),i=a.n(s),o=a(93832),c=a(17845);const m={plugin_slug:"",isMigrating:!1,isDone:!1,error:null,progress:0,showResume:!1,deactivatePlugin:!0,currentStatus:null,migrationData:{global_settings_migrated:!1,terms:{},posts:{},pagination:{terms:{current_page:1,total_pages:1},posts:{current_page:1,total_pages:1}},total_items:0,migrated_items:0}},u=e=>{const{migrationData:t}=e;return t&&0!==t.total_items?Math.round(t.migrated_items/t.total_items*100):0},d=(e,t=c.z6)=>{window.localStorage.setItem(t,JSON.stringify(e))},p=(e=c.z6)=>{const t=window.localStorage.getItem(e);return t?JSON.parse(t):null},g=(e=c.z6)=>{window.localStorage.removeItem(e)},h=({externalState:e=null,externalDispatch:t=null,localStorageKey:a=c.z6,initialState:s={}}={})=>{const h=((e=c.z6)=>(t,a)=>{let r;switch(a.type){case c.kl.SET_PLUGIN:return{...t,plugin_slug:a.payload};case c.kl.START_MIGRATION:return r={...t,isMigrating:!0,showResume:!1,error:null},d(r,e),{...r,progress:u(r)};case c.kl.SET_MIGRATION_DATA:return r={...t,migrationData:{...t.migrationData,...a.payload}},d(r,e),{...r,progress:u(r)};case c.kl.COMPLETE_GLOBAL_SETTINGS:return r={...t,migrationData:{...t.migrationData,global_settings_migrated:!0,migrated_items:t.migrationData.migrated_items+1}},d(r,e),{...r,progress:u(r)};case c.kl.COMPLETE_TERM:const{taxonomy:n,termId:l}=a.payload,s={...t.migrationData.terms};return s[n]={...s[n],completed:[...s[n].completed,l],remaining:s[n].remaining.filter(e=>e!==l)},r={...t,migrationData:{...t.migrationData,terms:s,migrated_items:t.migrationData.migrated_items+1}},d(r,e),{...r,progress:u(r)};case c.kl.COMPLETE_POST:const{postType:i,postId:o}=a.payload,p={...t.migrationData.posts};return p[i]={...p[i],completed:[...p[i].completed,o],remaining:p[i].remaining.filter(e=>e!==o)},r={...t,migrationData:{...t.migrationData,posts:p,migrated_items:t.migrationData.migrated_items+1}},d(r,e),{...r,progress:u(r)};case c.kl.SET_ERROR:return{...t,error:a.payload,isMigrating:!1};case c.kl.COMPLETE_MIGRATION:return g(e),{...t,isDone:!0,isMigrating:!1,progress:100};case c.kl.RESET_MIGRATION:return g(e),{...m,plugin_slug:t.plugin_slug};case c.kl.LOAD_SAVED_STATE:return{...t,...a.payload,showResume:!0};case c.kl.SET_MIGRATION_STATUS:return{...t,currentStatus:a.payload};case c.kl.SET_DEACTIVATE_PLUGIN:return{...t,deactivatePlugin:a.payload};default:return t}})(a),[_,f]=(0,n.useReducer)(h,{...m,...s}),b=e||_,w=t||f,{plugin_slug:E,isMigrating:y,isDone:k,error:v,showResume:C,deactivatePlugin:x}=b,N=(0,n.useCallback)(()=>!!y&&!confirm((0,r.__)("Migration is in progress. Are you sure you want to leave? Unsaved changes may be lost.","surerank")),[y]);(0,l.K)({shouldBlockFn:N,enableBeforeUnload:y}),(0,n.useEffect)(()=>{const e=p(a);e&&w({type:c.kl.LOAD_SAVED_STATE,payload:e})},[a]);const A=async(e,t,a=null,n=!1)=>{try{const l=await i()({path:e,method:t,data:a});if(!l.success&&!n)throw new Error(l.message||(0,r.__)("API request failed","surerank"));return l}catch(l){throw new Error(l.message||(0,r.__)("API request failed","surerank"))}},S=async(e=1)=>(w({type:c.kl.SET_MIGRATION_STATUS,payload:{type:"reading_terms",page:e}}),A((0,o.addQueryArgs)("/surerank/v1/migration/terms",{page:e,plugin_slug:E}),"GET")),T=async(e=1)=>(w({type:c.kl.SET_MIGRATION_STATUS,payload:{type:"reading_posts",page:e}}),A((0,o.addQueryArgs)("/surerank/v1/migration/posts",{page:e,plugin_slug:E}),"GET")),M=async(e,t)=>{try{w({type:c.kl.SET_MIGRATION_STATUS,payload:{type:"terms",taxonomy:e}}),await A("/surerank/v1/migration/terms","POST",{plugin_slug:E,term_ids:[t],cleanup:!1},!0),w({type:c.kl.COMPLETE_TERM,payload:{taxonomy:e,termId:t}})}catch(a){throw w({type:c.kl.SET_ERROR,payload:a.message}),a}},L=async(e,t)=>{try{w({type:c.kl.SET_MIGRATION_STATUS,payload:{type:"posts",postType:e}}),await A("/surerank/v1/migration/posts","POST",{plugin_slug:E,post_ids:[t],cleanup:!1},!0),w({type:c.kl.COMPLETE_POST,payload:{postType:e,postId:t}})}catch(a){throw w({type:c.kl.SET_ERROR,payload:a.message}),a}},I=async(e=E)=>{try{await A("/surerank/v1/plugins/deactivate","POST",{plugin_slug:e})}catch(t){}},z=async(e={},t=!1)=>{try{const{global_settings_migrated:a,terms:r,posts:n}=e;a||await(async()=>{try{w({type:c.kl.SET_MIGRATION_STATUS,payload:{type:"global_settings"}}),await A("/surerank/v1/migration/global-settings","POST",{plugin_slug:E,cleanup:!1}),w({type:c.kl.COMPLETE_GLOBAL_SETTINGS})}catch(e){throw w({type:c.kl.SET_ERROR,payload:e.message}),e}})();for(const e in r){const t=r[e];w({type:c.kl.SET_MIGRATION_STATUS,payload:{type:"terms",taxonomy:e}});for(const a of[...t.remaining])await M(e,a)}for(const e in n){const t=n[e];w({type:c.kl.SET_MIGRATION_STATUS,payload:{type:"posts",postType:e}});for(const a of[...t.remaining])await L(e,a)}t&&await I(E),await(async e=>{try{await A("/surerank/v1/migration/completed","POST",{plugin_slug:e},!0)}catch(t){}})(b.plugin_slug),w({type:c.kl.COMPLETE_MIGRATION})}catch(a){w({type:c.kl.SET_ERROR,payload:a.message||(0,r.__)("Migration failed","surerank")})}},O=async()=>{try{w({type:c.kl.START_MIGRATION});const e=await(async()=>{let e=0;const t={global_settings_migrated:!1,terms:{},posts:{},pagination:{terms:{current_page:1,total_pages:1},posts:{current_page:1,total_pages:1}},total_items:0,migrated_items:0};let a=1,r=1;do{const n=await S(a);r=n.pagination.total_pages,Object.entries(n.data).forEach(([a,r])=>{t.terms[a]?(t.terms[a].total+=r.count,t.terms[a].remaining.push(...r.term_ids)):t.terms[a]={total:r.count,title:r.title,completed:[],remaining:[...r.term_ids]},e+=r.count}),a++}while(a<=r);t.pagination.terms.current_page=1,t.pagination.terms.total_pages=r;let n=1,l=1;do{const a=await T(n);l=a.pagination.total_pages,Object.entries(a.data).forEach(([a,r])=>{t.posts[a]?(t.posts[a].total+=r.count,t.posts[a].remaining.push(...r.post_ids)):t.posts[a]={total:r.count,title:r.title,completed:[],remaining:[...r.post_ids]},e+=r.count}),n++}while(n<=l);return t.pagination.posts.current_page=1,t.pagination.posts.total_pages=l,e+=1,t.total_items=e,t})();w({type:c.kl.SET_MIGRATION_DATA,payload:e}),await z(e,x)}catch(e){w({type:c.kl.SET_ERROR,payload:e.message||(0,r.__)("Migration failed. Please try again.","surerank")})}},{migration_ever_completed:P=!1,migration_completed_plugins:R=[]}=window?.surerank_admin_common||{};return{state:b,alreadyMigrated:P,completedPlugins:R,plugin_slug:E,isMigrating:y,isDone:k,error:v,showResume:C,localStorageKey:a,dispatch:w,handleSelectPlugin:e=>{e&&("string"===typeof e&&(e=c.rG.find(t=>t.slug===e)),w({type:c.kl.SET_PLUGIN,payload:e.slug}))},handleMigrate:O,handleResumeMigration:async()=>{const e=p(a);e&&(w({type:c.kl.START_MIGRATION}),await z(e?.migrationData,e?.deactivatePlugin))},handleStartOver:()=>{w({type:c.kl.RESET_MIGRATION}),O()},handleCancelMigration:()=>{g(a),w({type:c.kl.RESET_MIGRATION})},handleChangeDeactivate:e=>{w({type:c.kl.SET_DEACTIVATE_PLUGIN,payload:e})},deactivatePlugin:x,deactivatePluginAPI:I}}},71149:(e,t,a)=>{a.d(t,{B0:()=>o,BZ:()=>m,CX:()=>s,V_:()=>l,Wn:()=>u,Zy:()=>c,bk:()=>i,jf:()=>d,uw:()=>n});var r=a(51609);const n=e=>(0,r.createElement)("svg",{width:"538",height:"84",viewBox:"0 0 538 84",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M74.7021 31.1187C74.7021 13.9953 60.8924 0.118378 43.8521 0.118378H0.670166V83.7997H7.9266C20.5234 83.7997 30.9189 74.347 32.4782 62.1087H32.4986L32.5496 49.1228H31.459C22.735 49.1228 15.6417 42.1383 15.3971 33.4332H15.3869V29.2957H19.5145C25.2829 29.2957 30.3889 32.1633 33.5076 36.5465C36.4835 25.9468 46.1859 18.1737 57.6821 18.1737V22.3112V27.8722C57.6821 39.5575 48.9275 49.0409 37.3192 49.1126V62.1087C38.8276 74.3777 49.2434 83.8816 61.8708 83.8816H74.7225V59.0056H57.3356C67.6291 53.9772 74.7225 43.3774 74.7225 31.1084L74.7021 31.1187Z",fill:"#4338CA"}),(0,r.createElement)("path",{d:"M219.188 21.9015V12.4591H210.261V71.5512H219.188V29.7259C220.513 27.2987 222.786 25.1275 226.017 23.2124C229.248 21.2563 232.234 20.2834 234.996 20.2834C235.892 20.2834 237.034 20.3654 238.44 20.519V11.0765C234.71 11.0765 231.194 12.0699 227.882 14.067C224.58 16.0231 221.685 18.6243 219.188 21.8913V21.9015Z",fill:"#1B1933"}),(0,r.createElement)("path",{d:"M284.874 15.2037C280.634 12.3772 275.681 10.9639 270.004 10.9639C264.327 10.9639 259.721 12.3567 255.369 15.1423C251.017 17.887 247.613 21.6353 245.167 26.377C242.752 31.0777 241.549 36.2598 241.549 41.913C241.549 51.1096 244.311 58.6062 249.835 64.3823C255.359 70.1583 262.432 73.0464 271.064 73.0464C280.237 73.0464 287.88 69.974 293.985 63.8497L289.725 57.8791C287.391 60.3063 284.65 62.1804 281.5 63.4913C278.392 64.8022 275.141 65.4678 271.757 65.4678C265.764 65.4678 260.903 63.5118 257.173 59.6098C253.484 55.7079 251.455 50.8433 251.109 45.0365H297.715V42.7015C297.715 36.7309 296.625 31.3645 294.454 26.633C292.314 21.8503 289.124 18.0508 284.884 15.2242L284.874 15.2037ZM250.976 38.1544C251.089 35.8399 251.578 33.5766 252.434 31.344C253.29 29.0704 254.452 26.9812 255.93 25.0661C257.448 23.11 259.415 21.5431 261.82 20.3449C264.226 19.1466 266.916 18.5526 269.872 18.5526C273.021 18.5526 275.844 19.1671 278.331 20.4063C280.817 21.6045 282.805 23.1714 284.283 25.1275C285.76 27.0836 286.871 29.1728 287.605 31.4054C288.38 33.638 288.798 35.8911 288.828 38.1544H250.976Z",fill:"#1B1933"}),(0,r.createElement)("path",{d:"M132.336 41.913C130.277 40.6738 127.963 39.6394 125.395 38.8098C122.868 37.9701 120.32 37.2737 117.751 36.7206C115.224 36.1266 112.91 35.5019 110.811 34.867C108.752 34.191 107.06 33.2693 105.735 32.1223C104.41 30.9241 103.748 29.4698 103.748 27.7595C103.748 25.0866 104.91 22.8847 107.244 21.1232C109.578 19.331 112.666 18.4297 116.518 18.4297C120.371 18.4297 123.499 19.1262 126.496 20.519C129.523 21.8708 131.938 23.663 133.732 25.8956L137.87 19.5665C132.427 13.8314 125.313 10.9639 116.518 10.9639C109.863 10.9639 104.635 12.5922 100.823 15.8592C97.0114 19.0852 95.1055 23.1305 95.1055 27.9848C95.1055 30.9343 95.768 33.4844 97.0929 35.6351C98.4178 37.7448 100.13 39.3834 102.229 40.5304C104.329 41.6876 106.642 42.6606 109.17 43.4594C111.738 44.2582 114.286 44.9546 116.814 45.5486C119.341 46.1426 121.655 46.8083 123.754 47.5149C125.854 48.2318 127.566 49.2457 128.891 50.5668C130.216 51.8777 130.878 53.4958 130.878 55.4109C130.878 58.4423 129.655 60.89 127.199 62.7641C124.794 64.6383 121.43 65.5703 117.109 65.5703C113.338 65.5703 109.741 64.7509 106.316 63.1226C102.892 61.4942 100.15 59.4767 98.0917 57.0905L93.5972 63.7268C99.4268 69.9433 107.183 73.0464 116.865 73.0464C124.019 73.0464 129.563 71.377 133.487 68.0282C137.452 64.6383 139.439 60.3575 139.439 55.1856C139.439 52.0825 138.777 49.3891 137.452 47.1155C136.127 44.8419 134.415 43.1112 132.315 41.913H132.336Z",fill:"#1B1933"}),(0,r.createElement)("path",{d:"M188.155 55.8923C186.402 58.4014 183.976 60.5111 180.868 62.2214C177.76 63.9317 174.529 64.7919 171.186 64.7919C166.946 64.7919 163.716 63.7985 161.504 61.8015C159.292 59.7737 158.182 56.2815 158.182 51.3452V12.4591H149.254V54.1615C149.254 66.748 155.379 73.0464 167.629 73.0464C171.675 73.0464 175.507 72.1144 179.125 70.2403C182.743 68.3661 185.76 66.0414 188.165 63.2455V71.5512H197.144V12.4591H188.165V55.8923H188.155Z",fill:"#1B1933"}),(0,r.createElement)("path",{d:"M340.917 48.6312C344.332 46.9209 347.002 44.5552 348.948 41.534C350.946 38.4617 351.955 34.9694 351.955 31.0675C351.955 27.1656 351.017 23.6426 349.132 20.6931C347.246 17.6821 344.627 15.3164 341.274 13.5959C337.921 11.8856 334.069 11.0253 329.717 11.0253H306.775V73.1078H318.863V51.1096H328.127L340.744 73.1078H354.421L340.122 48.9897C340.387 48.877 340.652 48.7644 340.917 48.6312ZM338.094 35.6863C337.269 37.0484 336.127 38.1135 334.649 38.8815C333.233 39.6496 331.623 40.0388 329.798 40.0388H318.852V22.1269H329.177C332.183 22.1269 334.619 22.9564 336.504 24.6052C338.451 26.2643 339.419 28.415 339.419 31.0777C339.419 32.788 338.981 34.3344 338.094 35.6863Z",fill:"#1B1933"}),(0,r.createElement)("path",{d:"M394.607 11.0356H382.52L358.162 73.1181H370.962L376.17 59.4562H401.772L406.98 73.1181H419.78L395.422 11.0356H394.627H394.607ZM380.247 48.7234L388.961 25.8547L397.675 48.7234H380.247Z",fill:"#1B1933"}),(0,r.createElement)("path",{d:"M467.701 52.7175L437.524 11.0356H424.906V73.1078H436.994V30.6271L467.701 73.1078H479.707V11.0356H467.701V52.7175Z",fill:"#1B1933"}),(0,r.createElement)("path",{d:"M510.302 39.0352L536.362 11.0356H520.738L497.878 35.6146V11.0356H485.964V73.1078H497.878V52.3898L502.434 47.4944L522.409 73.1078H537.33L510.302 39.0352Z",fill:"#1B1933"})),l=({enableFill:e=!0,...t})=>(0,r.createElement)("svg",{width:"128",height:"128",viewBox:"0 0 128 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e&&(0,r.createElement)("rect",{width:"128",height:"128",fill:"white"}),(0,r.createElement)("path",{d:"M73.4731 0C99.6321 6.3594e-05 120.838 21.2062 120.838 47.3652C120.838 66.1146 109.944 82.3181 94.1401 89.9941H120.838V128H101.114C81.7276 128 65.7331 113.485 63.4018 94.7305H63.4008L63.4125 74.8838C81.2408 74.7673 94.685 60.2785 94.685 42.4229V33.9307H94.6879V27.6074C77.0272 27.6075 62.1389 39.4779 57.5649 55.6748C52.7868 48.9672 44.9453 44.5928 36.0825 44.5928H29.7495V50.915H29.7719C30.1453 64.2164 41.0453 74.8848 54.437 74.8848H56.1166L56.0356 94.7305H56.0073C53.6177 113.422 37.6508 127.868 18.31 127.868H7.16156V0H73.4731Z",fill:"#4338CA"})),s=e=>(0,r.createElement)("svg",{width:"128",height:"128",viewBox:"0 0 128 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M73.4731 0C99.6321 6.3594e-05 120.838 21.2062 120.838 47.3652C120.838 66.1146 109.944 82.3181 94.1401 89.9941H120.838V128H101.114C81.7276 128 65.7331 113.485 63.4018 94.7305H63.4008L63.4125 74.8838C81.2408 74.7673 94.685 60.2785 94.685 42.4229V33.9307H94.6879V27.6074C77.0272 27.6075 62.1389 39.4779 57.5649 55.6748C52.7868 48.9672 44.9453 44.5928 36.0825 44.5928H29.7495V50.915H29.7719C30.1453 64.2164 41.0453 74.8848 54.437 74.8848H56.1166L56.0356 94.7305H56.0073C53.6177 113.422 37.6508 127.868 18.31 127.868H7.16156V0H73.4731Z",fill:"currentColor"})),i=e=>(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M13.5537 1.5C17.8453 1.5 21.3251 4.97895 21.3252 9.27051C21.3252 12.347 19.5368 15.0056 16.9434 16.2646H21.3252V22.5H18.0889C14.9086 22.5 12.2861 20.1186 11.9033 17.042H11.9014L11.9033 13.7852C14.8283 13.7661 17.0342 11.3894 17.0342 8.45996V6.0293C14.137 6.02947 11.6948 7.97682 10.9443 10.6338C10.1605 9.53345 8.87383 8.8165 7.41992 8.81641H6.38086V9.85352H6.38379C6.44515 12.0356 8.23375 13.786 10.4307 13.7861H10.7061L10.6934 17.042H10.6865C10.2943 20.1082 7.67678 22.4785 4.50391 22.4785H2.6748V1.5H13.5537Z",fill:"currentColor"})),o=e=>(0,r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M12.2149 1.26929H14.4639L9.55054 6.88495L15.3307 14.5266H10.8049L7.26009 9.89198L3.20403 14.5266H0.953684L6.20902 8.52002L0.664062 1.26929H5.3048L8.50899 5.50551L12.2149 1.26929ZM11.4256 13.1805H12.6718L4.62766 2.54471H3.29037L11.4256 13.1805Z",fill:"#111827"})),c=e=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M13.1667 10C13.1667 11.7489 11.7489 13.1667 10 13.1667C8.25113 13.1667 6.83337 11.7489 6.83337 10C6.83337 8.25113 8.25113 6.83337 10 6.83337C11.7489 6.83337 13.1667 8.25113 13.1667 10Z",fill:"#FFFFFF"})),m=e=>(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M9.93548 15.5002C9.8462 15.1542 9.66581 14.8384 9.41309 14.5856C9.16037 14.3329 8.84455 14.1525 8.49848 14.0632L2.36348 12.4812C2.25881 12.4515 2.16668 12.3885 2.10109 12.3017C2.03549 12.2149 2 12.1091 2 12.0002C2 11.8914 2.03549 11.7856 2.10109 11.6988C2.16668 11.612 2.25881 11.549 2.36348 11.5192L8.49848 9.93625C8.84442 9.84706 9.16017 9.66682 9.41288 9.41429C9.66559 9.16175 9.84604 8.84614 9.93548 8.50025L11.5175 2.36525C11.5469 2.26017 11.6099 2.16759 11.6968 2.10164C11.7837 2.0357 11.8899 2 11.999 2C12.1081 2 12.2142 2.0357 12.3012 2.10164C12.3881 2.16759 12.4511 2.26017 12.4805 2.36525L14.0615 8.50025C14.1508 8.84632 14.3311 9.16215 14.5839 9.41487C14.8366 9.66759 15.1524 9.84797 15.4985 9.93725L21.6335 11.5182C21.739 11.5473 21.832 11.6103 21.8983 11.6973C21.9646 11.7844 22.0005 11.8908 22.0005 12.0002C22.0005 12.1097 21.9646 12.2161 21.8983 12.3032C21.832 12.3902 21.739 12.4531 21.6335 12.4822L15.4985 14.0632C15.1524 14.1525 14.8366 14.3329 14.5839 14.5856C14.3311 14.8384 14.1508 15.1542 14.0615 15.5002L12.4795 21.6353C12.4501 21.7403 12.3871 21.8329 12.3002 21.8989C12.2132 21.9648 12.1071 22.0005 11.998 22.0005C11.8889 22.0005 11.7827 21.9648 11.6958 21.8989C11.6089 21.8329 11.5459 21.7403 11.5165 21.6353L9.93548 15.5002Z",stroke:"#111827",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M20 3V7",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M22 5H18",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M4 17V19",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)("path",{d:"M5 18H3",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})),u=e=>(0,r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M6.64847 3.71638L7.04997 4.83138C7.49597 6.06888 8.47047 7.04338 9.70797 7.48938L10.823 7.89087C10.9235 7.92737 10.9235 8.06988 10.823 8.10588L9.70797 8.50737C8.47047 8.95337 7.49597 9.92787 7.04997 11.1654L6.64847 12.2804C6.61197 12.3809 6.46947 12.3809 6.43347 12.2804L6.03197 11.1654C5.58597 9.92787 4.61147 8.95337 3.37397 8.50737L2.25897 8.10588C2.15847 8.06938 2.15847 7.92687 2.25897 7.89087L3.37397 7.48938C4.61147 7.04338 5.58597 6.06888 6.03197 4.83138L6.43347 3.71638C6.46947 3.61537 6.61197 3.61537 6.64847 3.71638Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M11.6675 1.03863L11.871 1.60313C12.097 2.22963 12.5905 2.72312 13.217 2.94912L13.7815 3.15262C13.8325 3.17112 13.8325 3.24312 13.7815 3.26162L13.217 3.46512C12.5905 3.69112 12.097 4.18462 11.871 4.81112L11.6675 5.37563C11.649 5.42663 11.577 5.42663 11.5585 5.37563L11.355 4.81112C11.129 4.18462 10.6355 3.69112 10.009 3.46512L9.4445 3.26162C9.3935 3.24312 9.3935 3.17112 9.4445 3.15262L10.009 2.94912C10.6355 2.72312 11.129 2.22963 11.355 1.60313L11.5585 1.03863C11.577 0.987125 11.6495 0.987125 11.6675 1.03863Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M11.6675 10.6242L11.871 11.1887C12.097 11.8152 12.5905 12.3087 13.217 12.5347L13.7815 12.7382C13.8325 12.7567 13.8325 12.8287 13.7815 12.8472L13.217 13.0507C12.5905 13.2767 12.097 13.7702 11.871 14.3967L11.6675 14.9612C11.649 15.0122 11.577 15.0122 11.5585 14.9612L11.355 14.3967C11.129 13.7702 10.6355 13.2767 10.009 13.0507L9.4445 12.8472C9.3935 12.8287 9.3935 12.7567 9.4445 12.7382L10.009 12.5347C10.6355 12.3087 11.129 11.8152 11.355 11.1887L11.5585 10.6242C11.577 10.5732 11.6495 10.5732 11.6675 10.6242Z",fill:"currentColor"})),d=e=>(0,r.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.91255 5.99999C0.91255 3.44174 2.9291 0.902258 6.06843 0.902258C8.60378 0.902258 9.85689 2.75767 10.3909 3.74438H8.80609C8.55414 3.74438 8.34982 3.94635 8.34982 4.1955C8.34982 4.44465 8.55414 4.64663 8.80609 4.64663H11.5437C11.7957 4.64663 12 4.44465 12 4.1955V1.48874C12 1.23959 11.7957 1.03761 11.5437 1.03761C11.2918 1.03761 11.0875 1.23959 11.0875 1.48874V3.12469C10.4446 2.00416 8.95748 0 6.06843 0C2.36092 0 0 3.00937 0 5.99999C0 8.99062 2.36092 12 6.06843 12C7.84228 12 9.31912 11.306 10.3707 10.2482C10.9337 9.68175 11.3734 9.01264 11.6731 8.29237C11.769 8.06199 11.6579 7.79834 11.4249 7.70352C11.1918 7.60869 10.9252 7.71861 10.8293 7.94901C10.5731 8.56467 10.1978 9.13489 9.71982 9.6157C8.83301 10.5079 7.58788 11.0977 6.06843 11.0977C2.9291 11.0977 0.91255 8.55826 0.91255 5.99999Z",fill:"currentColor"}))},72956:(e,t,a)=>{a.d(t,{n$:()=>r,qP:()=>n});const r=e=>{const t=((e="surerank_plugin")=>window?.surerank_globals?.pricing_link+`?utm_medium=${e}`)(e);window.open(t,"_blank","noopener,noreferrer")},n=()=>window?.surerank_globals?.is_pro_active},75795:e=>{e.exports=window.ReactDOM},76016:(e,t,a)=>{a.d(t,{$K:()=>_,Et:()=>y,HH:()=>S,Jj:()=>v,KT:()=>C,Op:()=>g,Rw:()=>x,Tv:()=>A,UM:()=>b,X:()=>E,dc:()=>N,de:()=>f,qt:()=>w,vr:()=>h,x8:()=>k});var r,n,l,s,i,o,c,m,u,d=a(51609),p=a(27723);const g=null!==(r=window?.surerank_globals?.input_variable_suggestions)&&void 0!==r?r:null,h=[{id:"post_no_index",value:"no",label:(0,p.__)("No index","surerank"),description:(0,p.__)("Prevents search engines from listing your page in search results.","surerank")},{id:"post_no_follow",value:"no",label:(0,p.__)("No follow","surerank"),description:(0,p.__)("Tells search engines not to follow any links on your page.","surerank")},{id:"post_no_archive",value:"no",label:(0,p.__)("No archive","surerank"),description:(0,p.__)("Blocks search engines from storing a cached version of your page.","surerank")}],_=()=>(0,p.__)("This content will be set as the meta description tag and may appear in search results. Keep it short and clearly explain what the page is about.","surerank"),f=null!==(n=window?.surerank_globals?.wp_dashboard_url)&&void 0!==n?n:"",b=null!==(l=window?.surerank_globals?.description_length)&&void 0!==l?l:160,w=null!==(s=window?.surerank_globals?.title_length)&&void 0!==s?s:60,E=null!==(i=window?.surerank_globals?.url_length)&&void 0!==i?i:90,y=()=>{var e;return(0,d.createElement)(d.Fragment,null,(0,p.__)("View a preview of how your page may appear in search engine results. This preview is for guidance only and might not exactly match how search engines display your content.","surerank"),(0,d.createElement)("div",{className:"mt-2"},(0,d.createElement)("strong",null,(0,p.__)("Site Icon: ","surerank")),(0,d.createElement)("span",null,(0,p.__)("The site icon (favicon) appears in browser tabs, bookmarks, and mobile devices. To update it, go to General Settings \u2192 Site Icon and upload a new image under Site Identity.","surerank")," ",(0,d.createElement)("a",{href:null!==(e=window?.surerank_globals?.wp_general_settings_url)&&void 0!==e?e:"",target:"_blank",rel:"noopener noreferrer",className:"block mt-2 no-underline hover:no-underline focus:[box-shadow:none] text-link-inverse hover:text-link-inverse-hover"},(0,p.__)("Change Here","surerank")))))},k=500,v=null!==(o=window?.surerank_globals?.enable_page_level_seo)&&void 0!==o&&o,C=null!==(c=window?.surerank_globals?.enable_google_console)&&void 0!==c&&c,x=null!==(m=window?.surerank_globals?.enable_schemas)&&void 0!==m&&m,N=null!==(u=window?.surerank_globals?.enable_migration)&&void 0!==u&&u,A=["page","keyword"],S="https://surerank.com/surerank-ai/?utm_medium=surerank_plugin"},76596:(e,t,a)=>{a.d(t,{Ay:()=>x,W2:()=>v});var r=a(51609),n=a(20019),l=a(94879),s=a(47143),i=a(27165),o=a(76016),c=a(27723),m=a(86087),u=a(71087),d=a(45350),p=a(65650),g=a(30732),h=a(9607),_=a(61456),f=a(64506),b=a(47579),w=a(17479),E=a(46037),y=a(52619),k=a(9757);const v=[{container:null,content:[{id:"search-engine-preview",type:"custom",component:(0,r.createElement)(()=>{var e;const{siteSettings:t,metaSettings:a}=(0,s.useSuspenseSelect)(e=>{const{getSiteSettings:t,getMetaSettings:a}=e(i.E);return{siteSettings:t(),metaSettings:a()}},[]),{page_title:n,page_description:b}=a,{setMetaSetting:w}=(0,s.useDispatch)(i.E),E=(0,m.useRef)(null),y=(0,m.useRef)(null),k=(e,t)=>{a[e]!==t&&w(e,t)},v=t?.site?.favicon?t?.site?.favicon:"",C=(0,f.A)(n,t?.site),x=(0,f.A)(b,t?.site),N=(0,h.EJ)(C,o.qt),A=(0,h.EJ)(x,o.UM);return(0,r.createElement)(d.mc,{direction:"column",className:"w-full gap-6"},(0,r.createElement)("div",{className:"space-y-1.5"},(0,r.createElement)("div",{className:"flex items-center justify-start gap-1"},(0,r.createElement)(u.A,{tag:"span",size:"sm",className:"space-x-0.5"},(0,r.createElement)("span",null,(0,c.__)("Search Engine Title","surerank"))),(0,r.createElement)(l.ID,{content:(0,c.__)("Set a default title for all individual post pages to help define how they appear in search engines. You can override this title for any post by editing it directly.","surerank")})),(0,r.createElement)(p.A,{key:"title",ref:E,by:"label",trigger:"@",defaultValue:(0,h.pk)(""!==a.page_title?a.page_title:a?.global_default?.page_title,o.Op,"value"),options:o.Op,onChange:e=>{k("page_title",""!==(0,h.P3)(e.toJSON())?(0,h.P3)(e.toJSON()):a?.global_default?.page_title)},placeholder:""}),(0,r.createElement)(g.E,{size:14,weight:400,color:"help"},(0,c.__)("Type @ to view variable suggestions","surerank"))),(0,r.createElement)("div",{className:"space-y-1.5"},(0,r.createElement)("div",{className:"flex items-center justify-between gap-1"},(0,r.createElement)("div",{className:"flex items-center gap-1"},(0,r.createElement)(u.A,{tag:"span",size:"sm",className:"space-x-0.5"},(0,r.createElement)("span",null,(0,c.__)("Search Engine Description","surerank"))),(0,r.createElement)(l.ID,{content:(0,c.__)("Set a default description for all individual post pages to help define how they appear in search engines. You can override this description for any post by editing it directly.","surerank")}))),(0,r.createElement)(p.A,{ref:y,className:"[&+div]:items-start [&+div]:pt-1",by:"label",trigger:"@",defaultValue:(0,h.pk)(a.page_description,o.Op,"value"),options:o.Op,onChange:e=>{k("page_description",(0,h.P3)(e.toJSON()))},placeholder:"",maxLength:o.UM}),(0,r.createElement)(g.E,{size:14,weight:400,color:"help"},(0,c.__)("Type @ to view variable suggestions","surerank"))),(0,r.createElement)("div",{className:"space-y-2.5 px-0"},(0,r.createElement)("div",{className:"flex items-center justify-start gap-1"},(0,r.createElement)(u.A,{tag:"span",size:"sm",className:"space-x-0.5"},(0,r.createElement)("span",null,(0,c.__)("Search Engine Preview","surerank"))),(0,r.createElement)(l.ID,{content:(0,o.Et)(),interactive:!0})),(0,r.createElement)(_.A,{siteTitle:t?.site?.site_name,title:N,faviconURL:v,description:A||(0,o.$K)(),permalink:null!==(e=t?.site?.site_url)&&void 0!==e?e:""})))},null),searchKeywords:["page title","search engine preview"]}]}],C=()=>(0,r.createElement)(n.A,{title:(0,c.__)("Meta Templates","surerank"),info_tooltip:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("strong",null,(0,c.__)("Site Name: ","surerank"))," ",(0,r.createElement)("span",null,(0,c.__)('The site name used in meta titles and descriptions is taken from the WordPress General Settings, where it is defined under "Site Title."',"surerank")," ")),description:(0,y.applyFilters)("surerank.extended-meta.description",(0,c.__)("Create a default template for how your pages appear in Google search. You can still set custom titles and descriptions for individual pages.","surerank"))},(0,r.createElement)(w.Ay,{json:v}),(0,r.createElement)(k.A,{title:(0,c.__)("Looking for options to set meta by post type or taxonomy?","surerank"),description:(0,c.__)("Upgrade to unlock meta template editing for specific post types and taxonomies.","surerank"),utmMedium:"surerank_meta_templates"})),x=((0,E.AF)("/")({component:(0,b.A)(C)}),(0,b.A)(C))},83649:(e,t,a)=>{a.d(t,{t:()=>L});var r=a(20468),n=a(91805),l=a(60927),s=a(98645),i=a(42640),o=a(41316),c=a(18931),m=a(80827),u=a(30684),d=a(59612),p=a(55687),g=a(28117),h=a(80964),_=a(50205),f=a(3549),b=a(52619),w=a(27723),E=a(21732),y=a(17331),k=a(84225),v=a(86826),C=a(56904),x=a(55396),N=a(19715),A=a(47521),S=a(76596),T=a(41668),M=a(76016);const L=()=>{const e=[{section:(0,w.__)("Dashboard","surerank"),sectionId:"dashboard",links:[{label:(0,w.__)("Dashboard","surerank"),path:"/dashboard",icon:n.A},{label:(0,w.__)("Site SEO Audit","surerank"),path:"/site-seo-analysis",icon:n.A}]},{section:(0,w.__)("General","surerank"),sectionId:"general",links:[{path:"/general",label:(0,w.__)("Meta Templates","surerank"),icon:f.A,pageContent:S.W2,migratable:!0},{label:(0,w.__)("Social","surerank"),path:"/general/social",icon:_.A,migratable:!0,submenu:[{path:"/general/social",label:(0,w.__)("Default Social Image","surerank"),pageContent:E.W2},{path:"/general/social/facebook",label:(0,w.__)("Facebook","surerank"),pageContent:y.W2},{path:"/general/social/x",label:(0,w.__)("X","surerank"),pageContent:k.W2},{path:"/general/social/accounts",label:(0,w.__)("Other Accounts","surerank"),pageContent:A.W2}]},{path:"/general/homepage",label:(0,w.__)("Home Page","surerank"),icon:n.A,migratable:!0,submenu:[{path:"/general/homepage",label:(0,w.__)("General","surerank")},{path:"/general/homepage/social",label:(0,w.__)("Social","surerank")},{path:"/general/homepage/advanced",label:(0,w.__)("Advanced","surerank"),pageContent:N.W}]},{path:"/general/archive_pages",label:(0,w.__)("Archive Pages","surerank"),icon:g.A,migratable:!0,pageContent:x.W}]},{section:(0,w.__)("Advanced","surerank"),sectionId:"advanced",links:[{path:"/advanced/robot_instructions",label:(0,w.__)("Robot Instructions","surerank"),icon:i.A,migratable:!0,submenu:[{path:"/advanced/robot_instructions/indexing",label:(0,w.__)("No Index","surerank")},{path:"/advanced/robot_instructions/following",label:(0,w.__)("No Follow","surerank")},{path:"/advanced/robot_instructions/archiving",label:(0,w.__)("No Archive","surerank")}]},{path:"/advanced/sitemaps",label:(0,w.__)("Sitemaps","surerank"),icon:p.A,pageContent:v.W,migratable:!0},...M.Rw?[{path:"/advanced/schema",label:(0,w.__)("Schema","surerank"),icon:u.A,migratable:!1}]:[],{path:"/advanced/robots-txt-editor",label:(0,w.__)("Robots.txt Editor","surerank"),icon:m.A,pageContent:T.W,migratable:!1},{path:"/advanced/image-seo",label:(0,w.__)("Image SEO","surerank"),icon:d.A,pageContent:C.W,migratable:!0},{path:"/advanced/instant-indexing",label:(0,w.__)("Instant Indexing","surerank"),icon:o.A,submenu:[{path:"/advanced/instant-indexing/settings",label:(0,w.__)("Settings","surerank")},{path:"/advanced/instant-indexing/logs",label:(0,w.__)("Logs","surerank")}]}]},...M.KT?[{section:(0,w.__)("Search Console","surerank"),sectionId:"search-console",links:[{path:"/search-console",label:(0,w.__)("Search Console","surerank"),icon:p.A,pageContent:[],migratable:!1},{label:(0,w.__)("Content Performance","surerank"),path:"/content-performance",icon:n.A,migratable:!1}]}]:[],{section:(0,w.__)("Redirections","surerank"),sectionId:"link-manager",links:[{path:"/link-manager/redirection-manager",label:(0,w.__)("Redirections","surerank"),icon:c.A,migratable:!1}]},{section:(0,w.__)("Tools","surerank"),sectionId:"tools",links:[{path:"/tools/manage-features",label:(0,w.__)("Manage Features","surerank"),icon:r.A,migratable:!1},{path:"/tools/import-export",label:(0,w.__)("Import/Export","surerank"),icon:s.A,migratable:!1},...M.dc?[{path:"/tools/migrate",label:(0,w.__)("Migrate to SureRank","surerank"),icon:l.A,migratable:!1}]:[],{path:"/tools/miscellaneous",label:(0,w.__)("Miscellaneous","surerank"),icon:h.A,migratable:!1}]}],t=(0,b.applyFilters)("surerank-pro.nav-links",e),a=new Map;return t.forEach(e=>{if(e.links){const t=new Map;e.links.forEach(e=>{t.set(e.path,e)}),e.links=Array.from(t.values())}a.set(e.sectionId,e)}),Array.from(a.values())}},84225:(e,t,a)=>{a.d(t,{Ay:()=>p,W2:()=>u});var r=a(51609),n=a(27723),l=a(20019),s=a(62e3),i=a(47579),o=a(17479),c=a(46037);const m=[{value:"summary_large_image",label:(0,n.__)("Summary Large Image","surerank")},{value:"summary",label:(0,n.__)("Summary","surerank")}],u=[{container:{direction:"column",gap:6},content:[{id:"twitter_preview",type:"custom",component:(0,r.createElement)(s.A,{platform:"twitter"})},{id:"twitter_card_type",type:"radio",label:(0,n.__)("X Card Type","surerank"),options:m,storeKey:"twitter_card_type",tooltip:(0,n.__)("Choose how your content will appear when shared on X. This setting determines the card type\u2014either a summary or a summary with a large image\u2014used in the post preview.","surerank"),showBorder:!0,showBorderOnActive:!0,optionWrapperClassName:"pl-3.5 py-2.5 pr-10"},{id:"twitter_profile_username",type:"text",label:(0,n.__)("Site's X Profile","surerank"),storeKey:"twitter_profile_username",placeholder:"https://www.x.com/your-site-username",tooltip:(0,n.__)("Provide the full URL of your official X (Twitter) profile. This URL will be used in your site\u2019s structured data under the Schema \u2192 Organization \u2192 SameAs field to associate your brand with its verified social profile.","surerank")},{id:"twitter_profile_fallback",type:"text",label:(0,n.__)("Author\u2019s X Profile","surerank"),storeKey:"twitter_profile_fallback",placeholder:"https://www.x.com/your-personal-username",tooltip:(0,n.__)("Enter the URL of your fallback Twitter author page. This will be used if an individual author URL is not provided.","surerank")}]}],d=()=>(0,r.createElement)(l.A,{title:(0,n.__)("X","surerank"),description:(0,n.__)("Control how your pages appear when shared on X. Set attribution and preview settings here.","surerank")},(0,r.createElement)(o.Ay,{json:u})),p=((0,c.AF)("/social/x")({component:(0,i.A)(d)}),(0,i.A)(d))},86087:e=>{e.exports=window.wp.element},86826:(e,t,a)=>{a.d(t,{A:()=>x,W:()=>C});var r=a(51609),n=a(20019),l=a(27723),s=a(88029),i=a(60443),o=a(47143),c=a(27165),m=a(47579),u=a(8723),d=a(15977),p=a(94879),g=a(17479),h=a(9607),_=a(52619),f=a(86087),b=a(1455),w=a.n(b),E=a(9757),y=a(10960);const k=e=>{const t=(e=>[{type:"switch",id:"enable_xml_sitemap",storeKey:"enable_xml_sitemap",dataType:"boolean",label:(0,l.__)("Enable XML Sitemap","surerank"),description:(0,r.createElement)(r.Fragment,null,(0,l.__)("Create a sitemap that helps search engines discover and index your pages faster.","surerank")," ",(0,r.createElement)(s.A,{variant:"link",size:"sm",className:(0,h.cn)("p-0 h-auto inline-flex !text-link-primary focus:ring-0",{"cursor-not-allowed !text-field-color-disabled":!e?.enable_xml_sitemap}),onClick:e?.enable_xml_sitemap?()=>window.open(surerank_admin_common?.sitemap_url,"_blank","noopener,noreferrer"):void 0,disabled:!e?.enable_xml_sitemap},(0,l.__)("View Sitemap","surerank")))},{type:"switch",id:"enable_xml_image_sitemap",storeKey:"enable_xml_image_sitemap",dataType:"boolean",label:(0,l.__)("Include Images in XML Sitemap","surerank"),description:(0,l.__)("Include images so search engines can index them and show them in image results.","surerank"),disabled:e=>!e.enable_xml_sitemap}])(e);return(0,_.applyFilters)("surerank-pro.sitemap-settings",[{container:null,content:[{id:"xml-settings",type:"title",label:(0,l.__)("XML","surerank")}]},{container:null,content:t}],t)},v=e=>[{container:{id:"xml-settings-container",direction:"column",gap:6},content:k(e)}],C=[{container:{id:"xml-settings-container",direction:"column",gap:6},content:k({})}],x=(0,m.A)(()=>{const{metaSettings:e}=(0,o.useSuspenseSelect)(e=>{const{getMetaSettings:t}=e(c.E);return{metaSettings:t()}},[]);return(0,r.createElement)(n.A,{title:(0,l.__)("Sitemaps","surerank"),secondaryButton:(0,r.createElement)(()=>{const[t,a]=(0,f.useState)(!1),[n,o]=(0,f.useState)(0),[c,m]=(0,f.useState)(""),g=!e.enable_xml_sitemap;return(0,r.createElement)(p.m_,{className:"max-w-[18rem]",content:t?c?(0,l.sprintf)((0,l.__)("Cache generation in progress for %1$s (%2$s%%)","surerank"),c,n):(0,l.__)("Sitemap cache generation is in progress\u2026","surerank"):(0,l.__)("Generate sitemap cache","surerank"),arrow:!0},(0,r.createElement)(s.A,{variant:"outline",size:"md",className:(0,h.cn)("min-w-fit flex items-center gap-2",{"cursor-not-allowed":g}),disabled:g||t,onClick:async()=>{a(!0),o(0),m("");try{const e=surerank_admin_common?.crons_available;if(e){const e=await w()({path:"/surerank/v1/sitemap/generate-cache",method:"POST"});i.o.warning(e.message,{description:e.description,icon:(0,r.createElement)(u.A,{className:"animate-spin"})})}else{i.o.warning((0,l.__)("Sitemap cache generation started\u2026","surerank"),{description:(0,l.__)("Processing items in batches it will take some time, please stay on the page.","surerank"),icon:(0,r.createElement)(u.A,{className:"animate-spin"})});const e=(await w()({path:"/surerank/v1/prepare-cache",method:"GET"})).data;for(let t=0;t<e.length;t++){const a=e[t],r=Math.round((t+1)/e.length*100);m(`${a.type}: ${a.slug}`),o(r),await w()({path:"/surerank/v1/sitemap/generate-cache-manual",method:"POST",data:{page:a.page,slug:a.slug,type:a.type}})}i.o.success((0,l.__)("Sitemap cache generation completed!","surerank"),{description:(0,l.__)("All content has been processed successfully.","surerank")})}}catch(e){i.o.error(e.message||(0,l.__)("Error generating sitemap cache. Please try again.","surerank"))}finally{a(!1),o(0),m("")}},icon:(0,r.createElement)(d.A,{className:(0,h.cn)({"animate-spin":t})}),iconPosition:"right"},(0,l.__)(t?"Generating\u2026":"Regenerate","surerank")))},null),description:(0,l.__)("Generates a sitemap to help search engines find and index your content more efficiently.","surerank"),afterDescription:surerank_admin_common?.crons_available?null:(0,r.createElement)(y.A,{color:"warning",message:(0,l.__)('It seems CRON is not enabled on your site. You can use the "Regenerate" button to generate the sitemap cache manually.',"surerank")})},(0,r.createElement)(g.Ay,{json:v(e)}),(0,r.createElement)(E.A,{title:(0,l.__)("Want to unlock advanced sitemap types?","surerank"),description:(0,l.__)("Upgrade to generate Video, News, HTML, and Author Sitemaps for better search visibility.","surerank"),utmMedium:"surerank_sitemaps"}))})},87096:(e,t,a)=>{a.d(t,{A:()=>b,j:()=>f});var r=a(51609),n=a(86087),l=a(88029),s=a(60443),i=a(8723),o=a(45773),c=a(27723),m=a(62220),u=a(27165),d=a(47143),p=a(1455),g=a.n(p),h=a(71149);const _=({onClick:e,onSuccess:t,buttonTextInitial:a=(0,c.__)("Save","surerank"),icon:m,disabled:u,...d})=>{const[p,g]=(0,n.useState)(a),[h,_]=(0,n.useState)(!1),f=(0,n.useRef)(!0);return(0,r.createElement)(l.A,{onClick:async()=>{if(!h&&!u&&f.current){f.current=!1,_(!0),g((0,c.__)("Saving..","surerank"));try{const r=await e();if(!r.success)throw new Error(r.message);return g((0,c.__)("Saved","surerank")),t&&"function"===typeof t?await t(r):s.o.success((0,c.__)("Settings saved successfully.","surerank")),new Promise(e=>{setTimeout(()=>{g(a),f.current=!0,e(r)},1e3)})}catch(r){s.o.error(r.message),g(a),f.current=!0}finally{_(!1)}}},icon:h?(0,r.createElement)(i.A,{className:"animate-spin"}):p===(0,c.__)("Saved","surerank")?(0,r.createElement)(o.A,null):m||null,...d},p)},f=({onSuccess:e})=>{const{unsavedSettings:t}=(0,d.useSelect)(e=>{const{getUnsavedSettings:t}=e(u.E);return{unsavedSettings:t()||{}}},[]),{resetUnsavedSettings:a}=(0,d.useDispatch)(u.E),n=Object.keys(t||{}).length>0;return(0,r.createElement)(_,{onClick:async()=>{const e={data:t},r=await g()({path:m.W9,method:"POST",data:e});return r.success&&a(),r},onSuccess:e,className:n?"":"opacity-60 bg-background-brand cursor-not-allowed pointer-events-none",icon:n?(0,r.createElement)(h.Zy,null):null},(0,c.__)("Save","surerank"))},b=_},90886:(e,t,a)=>{a.d(t,{Z:()=>Ne});var r=a(51609),n=a(37003),l=a(78997),s=a(21315),i=a(40284),o=a(9607),c=a(27723),m=a(86087),u=a(30732),d=a(74443),p=a(71087),g=a(16145),h=a(62163),_=a(43953),f=a(68458),b=a(60249);const w=new WeakMap,E=e=>{e&&"function"===typeof e.focus&&!w.get(e)&&(setTimeout(()=>{e.focus()},0),w.set(e,!0))},y=(e,t,a,n,l)=>{const{label:s,name:i,type:_,options:w,defaultValue:y,width:v="full",combobox:x=!1,size:N="md",description:A=null}=e,S=t=>{t.preventDefault();const r=(0,b.a)({title:e?.label,button:{text:e?.label},multiple:!1});r.on("select",()=>{const e=r.state().get("selection").first().toJSON(),t=e.id||null,n=e.filename||null,l=e.url||null,s=e?.type||null;a({attachment_id:t,name:n,size:e?.filesizeInBytes||null,url:l,type:s}),r.close()}),r.open()};let T={};l&&"initialFocus"in l&&l.initialFocus&&(T={ref:E});const M=A?(0,r.createElement)(u.E,{size:14,weight:400,color:"help"},A):null;let L=null;switch(_){case"select":L=(0,r.createElement)(k,{key:i,id:i,searchFn:e.searchFn,size:N,combobox:x,label:s,value:t,defaultValue:y,onChange:a,options:w,by:e.by||"value",...T});break;case"selectGroup":L=(0,r.createElement)(C,{key:i,id:i,label:s,value:t,options:w,onChange:a,...T});break;case"checkbox":L=(0,r.createElement)("div",{className:"space-y-1.5",key:i},(0,r.createElement)(d.A,{size:N,id:i,name:i,label:{heading:s},checked:t,onChange:a}),n&&(0,r.createElement)(p.A,{variant:"error",className:"ml-8"},(0,c.__)("This is required","surerank")));break;case"textarea":L=(0,r.createElement)("div",{className:"space-y-1.5"},(0,r.createElement)(p.A,{htmlFor:i},s),(0,r.createElement)(g.A,{id:i,rows:e.rows||4,placeholder:e.placeholder||"",value:t,onChange:a,className:"w-full",size:"md"}));break;case"file":const l={imageUrl:"string"===typeof t?t:void 0,imageId:"object"===typeof t?t?.attachment_id:void 0,onRemove:()=>a(null)};L=(0,r.createElement)("div",{key:i,className:"space-y-1.5"},(0,r.createElement)(h.A,{id:i,label:s,type:"file",size:"md",onClick:S}),M,t&&0!==t.attachment_id&&(0,r.createElement)("div",{className:"pt-0.5"},(0,r.createElement)(f.A,{...l})));break;default:L=(0,r.createElement)(m.Fragment,{key:i},(0,r.createElement)("div",{className:"space-y-1.5"},(0,r.createElement)(h.A,{id:i,size:N,name:i,label:s,type:_,value:t,onChange:a,autoComplete:"off",error:n,...T}),n&&(0,r.createElement)(p.A,{variant:"error"},n)))}return(0,r.createElement)("div",{className:(0,o.cn)("full"!==v?"grow w-full md:w-5/12":"w-full")},L)},k=(0,m.forwardRef)(({id:e,searchFn:t,size:a,combobox:n,label:l,defaultValue:s,value:i,onChange:o,options:u=[],by:d="value"},p)=>{const[g,h]=(0,m.useState)(u),f=t?async e=>{const a=await t(e);h(a)}:void 0,b=g.find(e=>e.value===i);return(0,r.createElement)(_.Ay,{id:e,size:a,by:d,combobox:n,value:b||s?.value,onChange:o,...n&&"function"===typeof t&&{searchFn:f}},(0,r.createElement)(_.Ay.Button,{label:l,render:e=>e?.label||s?.label,type:"button",ref:p}),(0,r.createElement)(_.Ay.Portal,{id:"surerank-root"},(0,r.createElement)(_.Ay.Options,null,g.length>0?g.map(e=>(0,r.createElement)(_.Ay.Option,{key:e.value,value:e,selected:b?.value===e.value||String(s?.value)===String(e.value)},e.label)):(0,r.createElement)(_.Ay.Option,{disabled:!0},(0,c.__)("No options available","surerank")))))}),v=e=>e&&"string"===typeof e?e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"):e,C=(0,m.forwardRef)(({id:e,label:t,value:a,onChange:n,options:l=[]},s)=>(0,r.createElement)(_.Ay,{size:"md",value:a,onChange:n},(0,r.createElement)(_.Ay.Button,{id:e,label:t,render:e=>v(e),type:"button",ref:s}),(0,r.createElement)(_.Ay.Portal,{id:"surerank-root"},(0,r.createElement)(_.Ay.Options,null,l.map((e,t)=>(0,r.createElement)(_.Ay.OptionGroup,{key:t,label:e.label},Object.entries(e.options).map(([e,t])=>(0,r.createElement)(_.Ay.Option,{key:e,value:e},v(t)))))))));var x=a(60443),N=a(3535),A=a(88029),S=a(60250),T=a(87677),M=a(98590),L=a(52166);const I=()=>{var e,t,a,r,n,l,s;const i=(0,M.z)({select:e=>e.pathname}),o=(0,L.Z)(),c=Ne.findIndex(e=>e.path===i),m=null!==(e=Ne[c+1])&&void 0!==e?e:null,u=null!==(t=Ne[c-1])&&void 0!==t?t:null,d=e=>()=>{e&&o({to:e.path})},p=d(m),g=d(u);return Object.freeze({nextStep:p,previousStep:g,nextStepPath:null!==(a=m?.path)&&void 0!==a?a:null,previousStepPath:null!==(r=u?.path)&&void 0!==r?r:null,currentStepConfig:null!==(n=Ne[c]?.config)&&void 0!==n?n:{},nextStepConfig:null!==(l=m?.config)&&void 0!==l?l:{},previousStepConfig:null!==(s=u?.config)&&void 0!==s?s:{}})},z={},O=(e=z,t)=>({...e,...t}),P="surerank_onboarding_state",R=(0,m.createContext)(),V=()=>(0,m.useContext)(R),H=({children:e})=>{const[t,a]=(0,m.useReducer)(O,(()=>{try{const e=sessionStorage.getItem(P);return e?JSON.parse(e):z}catch(e){return z}})());(0,m.useEffect)(()=>{(e=>{try{sessionStorage.setItem(P,JSON.stringify(e))}catch(t){}})(t)},[t]);const n=(0,m.useCallback)(e=>{if("/finish"===e?.currentStep||e?.isExiting)return(()=>{try{sessionStorage.removeItem(P)}catch(e){}})();a(e)},[a]);return(0,r.createElement)(R.Provider,{value:[t,n]},e)},D={back:{key:"back",variant:"outline",iconPosition:"left",className:"mr-auto",children:(0,c.__)("Back","surerank")},skip:{key:"skip",variant:"ghost",iconPosition:"left",className:"ml-auto text-text-tertiary hover:text-text-primary",children:(0,c.__)("Skip","surerank")},next:{key:"next",variant:"primary",iconPosition:"right",type:"submit",children:(0,c.__)("Next","surerank")}},F=({backProps:e={},skipProps:t={},nextProps:a={},className:n})=>{const[l,s]=(0,m.useState)({back:!1,skip:!1,next:!1}),{nextStep:i,previousStep:u,currentStepConfig:d,nextStepPath:p}=I(),[,g]=V(),h=e=>{if(l[e])return(0,r.createElement)(N.a,null);switch(e){case"back":return(0,r.createElement)(S.A,null);case"next":return(0,r.createElement)(T.A,null);default:return null}},_=(e,t)=>{const a={type:"button",icon:h(e)},r=D[e],{onClick:n,disableNavigation:m=!1,...d}=t,_=((e,t,a=!1)=>async()=>{if("function"===typeof e)try{await e(s)}catch(n){var r;if("cause"in n&&"form-validation"===n.cause)return;return void x.o.error(null!==(r=n?.message)&&void 0!==r?r:(0,c.__)("An error occurred","surerank"))}if(s({...l,[t]:!1}),u&&!a)switch(t){case"back":u();break;case"skip":i();break;case"next":const e=Ne.at(-1).path;p===e&&g({currentStep:e}),i()}})(n,e,m),f=(0,o.cn)(r?.className,t?.className);return{...a,...r,onClick:_,disabled:l[e],loading:l[e],...d,className:f}};return(0,r.createElement)("div",{className:(0,o.cn)("w-full flex gap-3 my-2",n)},!d?.hideBackButton&&(0,r.createElement)(A.A,{..._("back",e)}),!d?.hideSkipButton&&(0,r.createElement)(A.A,{..._("skip",t)}),!d?.hideNextButton&&(0,r.createElement)(A.A,{..._("next",a)}))};var j=a(15415),G=a(1455),B=a.n(G),U=a(94879);const $=[{label:(0,c.__)("Personal Website","surerank"),value:"personal"},{label:(0,c.__)("Business Website","surerank"),value:"business"},{label:(0,c.__)("Organization","surerank"),value:"organization"},{label:(0,c.__)("Personal Blog","surerank"),value:"blog"},{label:(0,c.__)("Community Blog/News Website","surerank"),value:"community"},{label:(0,c.__)("E-commerce Store","surerank"),value:"ecommerce"}];var Z=a(62220),W=a(87909);const K=[{label:(0,c.__)("First Name","surerank"),name:"first_name",type:"text",width:"half",required:!0},{label:(0,c.__)("Last Name","surerank"),name:"last_name",type:"text",width:"half",required:!1},{label:(0,c.__)("Email Address","surerank"),name:"email",type:"email",width:"full",required:!0},{label:(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:(0,c.sprintf)((0,c.__)("Get notified about SEO issues on your website. Plus help improve SureRank by sharing how you use the plugin. %1$s","surerank"),(0,m.renderToString)((0,r.createElement)("a",{className:"no-underline focus:ring-0",href:surerank_globals.privacy_policy_url,target:"_blank",rel:"noopener noreferrer"},(0,c.__)("View our Privacy Policy","surerank"))))}}),name:"agree_to_terms",value:"agree_to_terms",type:"checkbox",required:!0}];var q=a(45350),J=a(45773);const Y=surerank_globals.admin_assets_url+"/images/onboarding-welcome-banner.svg",X=[(0,c.__)("Identify and fix SEO issues effortlessly","surerank"),(0,c.__)("Analyze and track website's performance in search engines","surerank"),(0,c.__)("Optimize website for better rankings","surerank"),(0,c.__)("Use AI to optimize your website","surerank"),(0,c.__)("Enjoy an easy, simple setup","surerank")];var Q=a(48697);const ee=`${surerank_globals.site_url}/wp-admin/admin.php?page=surerank&skip_onboarding=true`,te=()=>{const[,e]=V();return(0,r.createElement)(A.A,{className:"text-text-primary no-underline hover:no-underline",variant:"link",size:"xs",icon:(0,r.createElement)(Q.A,null),iconPosition:"right",onClick:()=>{e({isExiting:!0}),window.open(ee,"_self","noopener,noreferrer")}},(0,c.__)("Exit Guided Setup","surerank"))},ae=`${window.surerank_globals.admin_assets_url}/images/`;var re=a(55462),ne=a(82853),le=a(80697);const se={facebook:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("g",{clipPath:"url(#clip0_7896_51189)"},(0,r.createElement)("path",{d:"M48 24C48 10.7453 37.2547 0 24 0C10.7453 0 0 10.7453 0 24C0 35.255 7.74912 44.6995 18.2026 47.2934V31.3344H13.2538V24H18.2026V20.8397C18.2026 12.671 21.8995 8.8848 29.9194 8.8848C31.44 8.8848 34.0637 9.18336 35.137 9.48096V16.129C34.5706 16.0694 33.5866 16.0397 32.3645 16.0397C28.4294 16.0397 26.9088 17.5306 26.9088 21.4061V24H34.7482L33.4013 31.3344H26.9088V47.8243C38.7926 46.3891 48.001 36.2707 48.001 24H48Z",fill:"#0866FF"}),(0,r.createElement)("path",{d:"M33.4005 31.3344L34.7473 24H26.908V21.4061C26.908 17.5306 28.4286 16.0397 32.3636 16.0397C33.5857 16.0397 34.5697 16.0695 35.1361 16.129V9.48099C34.0628 9.18243 31.4392 8.88483 29.9185 8.88483C21.8987 8.88483 18.2017 12.6711 18.2017 20.8397V24H13.2529V31.3344H18.2017V47.2935C20.0584 47.7543 22.0005 48 23.9992 48C24.9832 48 25.9537 47.9395 26.907 47.8243V31.3344H33.3995H33.4005Z",fill:"white"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_7896_51189"},(0,r.createElement)("rect",{width:"48",height:"48",fill:"white"})))),twitter:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M36.6526 3.8078H43.3995L28.6594 20.6548L46 43.5797H32.4225L21.7881 29.6759L9.61989 43.5797H2.86886L18.6349 25.56L2 3.8078H15.9222L25.5348 16.5165L36.6526 3.8078ZM34.2846 39.5414H38.0232L13.8908 7.63406H9.87892L34.2846 39.5414Z",fill:"black"})),instagram:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("g",{clipPath:"url(#clip0_7896_51183)"},(0,r.createElement)("path",{d:"M24 4.32187C30.4125 4.32187 31.1719 4.35 33.6938 4.4625C36.0375 4.56562 37.3031 4.95938 38.1469 5.2875C39.2625 5.71875 40.0688 6.24375 40.9031 7.07812C41.7469 7.92188 42.2625 8.71875 42.6938 9.83438C43.0219 10.6781 43.4156 11.9531 43.5188 14.2875C43.6313 16.8187 43.6594 17.5781 43.6594 23.9813C43.6594 30.3938 43.6313 31.1531 43.5188 33.675C43.4156 36.0188 43.0219 37.2844 42.6938 38.1281C42.2625 39.2438 41.7375 40.05 40.9031 40.8844C40.0594 41.7281 39.2625 42.2438 38.1469 42.675C37.3031 43.0031 36.0281 43.3969 33.6938 43.5C31.1625 43.6125 30.4031 43.6406 24 43.6406C17.5875 43.6406 16.8281 43.6125 14.3063 43.5C11.9625 43.3969 10.6969 43.0031 9.85313 42.675C8.7375 42.2438 7.93125 41.7188 7.09688 40.8844C6.25313 40.0406 5.7375 39.2438 5.30625 38.1281C4.97813 37.2844 4.58438 36.0094 4.48125 33.675C4.36875 31.1438 4.34063 30.3844 4.34063 23.9813C4.34063 17.5688 4.36875 16.8094 4.48125 14.2875C4.58438 11.9437 4.97813 10.6781 5.30625 9.83438C5.7375 8.71875 6.2625 7.9125 7.09688 7.07812C7.94063 6.23438 8.7375 5.71875 9.85313 5.2875C10.6969 4.95938 11.9719 4.56562 14.3063 4.4625C16.8281 4.35 17.5875 4.32187 24 4.32187ZM24 0C17.4844 0 16.6688 0.028125 14.1094 0.140625C11.5594 0.253125 9.80625 0.665625 8.2875 1.25625C6.70312 1.875 5.3625 2.69062 4.03125 4.03125C2.69063 5.3625 1.875 6.70313 1.25625 8.27813C0.665625 9.80625 0.253125 11.55 0.140625 14.1C0.028125 16.6687 0 17.4844 0 24C0 30.5156 0.028125 31.3312 0.140625 33.8906C0.253125 36.4406 0.665625 38.1938 1.25625 39.7125C1.875 41.2969 2.69063 42.6375 4.03125 43.9688C5.3625 45.3 6.70313 46.125 8.27813 46.7344C9.80625 47.325 11.55 47.7375 14.1 47.85C16.6594 47.9625 17.475 47.9906 23.9906 47.9906C30.5063 47.9906 31.3219 47.9625 33.8813 47.85C36.4313 47.7375 38.1844 47.325 39.7031 46.7344C41.2781 46.125 42.6188 45.3 43.95 43.9688C45.2812 42.6375 46.1063 41.2969 46.7156 39.7219C47.3063 38.1938 47.7188 36.45 47.8313 33.9C47.9438 31.3406 47.9719 30.525 47.9719 24.0094C47.9719 17.4938 47.9438 16.6781 47.8313 14.1188C47.7188 11.5688 47.3063 9.81563 46.7156 8.29688C46.125 6.70312 45.3094 5.3625 43.9688 4.03125C42.6375 2.7 41.2969 1.875 39.7219 1.26562C38.1938 0.675 36.45 0.2625 33.9 0.15C31.3313 0.028125 30.5156 0 24 0Z",fill:"#000100"}),(0,r.createElement)("path",{d:"M24 11.6719C17.1938 11.6719 11.6719 17.1938 11.6719 24C11.6719 30.8062 17.1938 36.3281 24 36.3281C30.8062 36.3281 36.3281 30.8062 36.3281 24C36.3281 17.1938 30.8062 11.6719 24 11.6719ZM24 31.9969C19.5844 31.9969 16.0031 28.4156 16.0031 24C16.0031 19.5844 19.5844 16.0031 24 16.0031C28.4156 16.0031 31.9969 19.5844 31.9969 24C31.9969 28.4156 28.4156 31.9969 24 31.9969Z",fill:"#000100"}),(0,r.createElement)("path",{d:"M39.6937 11.1844C39.6937 12.7782 38.4 14.0625 36.8156 14.0625C35.2219 14.0625 33.9375 12.7688 33.9375 11.1844C33.9375 9.59065 35.2313 8.30627 36.8156 8.30627C38.4 8.30627 39.6937 9.60003 39.6937 11.1844Z",fill:"#000100"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_7896_51183"},(0,r.createElement)("rect",{width:"48",height:"48",fill:"white"})))),linkedin:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("g",{clipPath:"url(#clip0_7896_51181)"},(0,r.createElement)("path",{d:"M44.4567 0H3.54333C2.60358 0 1.70232 0.373315 1.03782 1.03782C0.373315 1.70232 0 2.60358 0 3.54333V44.4567C0 45.3964 0.373315 46.2977 1.03782 46.9622C1.70232 47.6267 2.60358 48 3.54333 48H44.4567C45.3964 48 46.2977 47.6267 46.9622 46.9622C47.6267 46.2977 48 45.3964 48 44.4567V3.54333C48 2.60358 47.6267 1.70232 46.9622 1.03782C46.2977 0.373315 45.3964 0 44.4567 0ZM14.3067 40.89H7.09V17.9667H14.3067V40.89ZM10.6933 14.79C9.87473 14.7854 9.07583 14.5384 8.39747 14.0802C7.71911 13.622 7.19168 12.9731 6.88175 12.2154C6.57183 11.4577 6.4933 10.6252 6.65606 9.82291C6.81883 9.02063 7.2156 8.28455 7.79631 7.70756C8.37702 7.13057 9.11563 6.73853 9.91893 6.58092C10.7222 6.42331 11.5542 6.50719 12.3099 6.82197C13.0656 7.13675 13.7111 7.66833 14.1649 8.34962C14.6188 9.03092 14.8606 9.83138 14.86 10.65C14.8677 11.1981 14.765 11.7421 14.558 12.2496C14.351 12.7571 14.044 13.2178 13.6551 13.6041C13.2663 13.9905 12.8037 14.2946 12.2948 14.4983C11.786 14.702 11.2413 14.8012 10.6933 14.79ZM40.9067 40.91H33.6933V28.3867C33.6933 24.6933 32.1233 23.5533 30.0967 23.5533C27.9567 23.5533 25.8567 25.1667 25.8567 28.48V40.91H18.64V17.9833H25.58V21.16H25.6733C26.37 19.75 28.81 17.34 32.5333 17.34C36.56 17.34 40.91 19.73 40.91 26.73L40.9067 40.91Z",fill:"#0A66C2"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_7896_51181"},(0,r.createElement)("rect",{width:"48",height:"48",fill:"white"})))),youtube:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("g",{clipPath:"url(#clip0_7896_51172)"},(0,r.createElement)("path",{d:"M47.0442 12.3709C46.7728 11.3498 46.238 10.4178 45.4933 9.66825C44.7485 8.91872 43.82 8.37794 42.8006 8.10003C39.0479 7.09094 24.0479 7.09094 24.0479 7.09094C24.0479 7.09094 9.04785 7.09094 5.29512 8.10003C4.27571 8.37794 3.34717 8.91872 2.60243 9.66825C1.85768 10.4178 1.32286 11.3498 1.05149 12.3709C0.0478517 16.14 0.0478516 24 0.0478516 24C0.0478516 24 0.0478517 31.86 1.05149 35.6291C1.32286 36.6503 1.85768 37.5823 2.60243 38.3318C3.34717 39.0813 4.27571 39.6221 5.29512 39.9C9.04785 40.9091 24.0479 40.9091 24.0479 40.9091C24.0479 40.9091 39.0479 40.9091 42.8006 39.9C43.82 39.6221 44.7485 39.0813 45.4933 38.3318C46.238 37.5823 46.7728 36.6503 47.0442 35.6291C48.0479 31.86 48.0479 24 48.0479 24C48.0479 24 48.0479 16.14 47.0442 12.3709Z",fill:"#FF0302"}),(0,r.createElement)("path",{d:"M19.1387 31.1373V16.8628L31.6841 24.0001L19.1387 31.1373Z",fill:"#FEFEFE"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_7896_51172"},(0,r.createElement)("rect",{width:"48",height:"48",fill:"white"})))),pinterest:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("g",{clipPath:"url(#clip0_7896_51164)"},(0,r.createElement)("path",{d:"M24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48Z",fill:"white"}),(0,r.createElement)("path",{d:"M24 0C10.7457 0 0 10.7457 0 24C0 34.1728 6.32099 42.8642 15.2494 46.3605C15.0321 44.4642 14.8543 41.5407 15.3284 39.4667C15.763 37.5901 18.1333 27.5358 18.1333 27.5358C18.1333 27.5358 17.4222 26.0938 17.4222 23.9802C17.4222 20.642 19.358 18.1531 21.7679 18.1531C23.8222 18.1531 24.8099 19.6938 24.8099 21.5309C24.8099 23.5852 23.5062 26.6667 22.8148 29.5309C22.242 31.921 24.0198 33.8765 26.3704 33.8765C30.637 33.8765 33.916 29.3728 33.916 22.8938C33.916 17.1457 29.7877 13.1358 23.8815 13.1358C17.0469 13.1358 13.037 18.2519 13.037 23.5457C13.037 25.6 13.8272 27.8123 14.8148 29.0173C15.0123 29.2543 15.0321 29.4716 14.9728 29.7086C14.7951 30.4593 14.3802 32.0988 14.3012 32.4346C14.2025 32.8691 13.9457 32.9679 13.4914 32.7506C10.4889 31.3481 8.61235 26.9827 8.61235 23.4469C8.61235 15.8815 14.1037 8.9284 24.4741 8.9284C32.7901 8.9284 39.2691 14.8543 39.2691 22.7951C39.2691 31.0716 34.0543 37.7284 26.8247 37.7284C24.3951 37.7284 22.1037 36.4642 21.3333 34.963C21.3333 34.963 20.1284 39.5457 19.8321 40.6716C19.2988 42.7654 17.837 45.3728 16.8494 46.9728C19.1012 47.6642 21.4716 48.0395 23.9605 48.0395C37.2148 48.0395 47.9605 37.2938 47.9605 24.0395C48 10.7457 37.2543 0 24 0Z",fill:"#E60019"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_7896_51164"},(0,r.createElement)("rect",{width:"48",height:"48",fill:"white"})))),tiktok:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M34.3529 17.3269C37.4396 19.5413 41.221 20.8442 45.305 20.8442V12.9572C44.5321 12.9574 43.7612 12.8765 43.005 12.7157V18.9239C38.9213 18.9239 35.1404 17.621 32.0529 15.4068V31.5017C32.0529 39.5533 25.5491 46.0798 17.5267 46.0798C14.5333 46.0798 11.7511 45.1716 9.43994 43.6141C12.0778 46.3208 15.7564 48 19.8262 48C27.8491 48 34.3533 41.4734 34.3533 33.4215V17.3269H34.3529ZM37.1902 9.36999C35.6128 7.64045 34.577 5.40535 34.3529 2.93435V1.91992H32.1733C32.722 5.06056 34.5933 7.74374 37.1902 9.36999ZM14.5141 37.4356C13.6328 36.2759 13.1565 34.8572 13.1586 33.3985C13.1586 29.716 16.1334 26.7302 19.8035 26.7302C20.4875 26.7301 21.1674 26.8352 21.8192 27.0427V18.9795C21.0575 18.8748 20.2887 18.8303 19.5202 18.8466V25.1226C18.8679 24.915 18.1877 24.8096 17.5035 24.8103C13.8334 24.8103 10.8588 27.7957 10.8588 31.4787C10.8588 34.0828 12.3457 36.3373 14.5141 37.4356Z",fill:"#FF004F"}),(0,r.createElement)("path",{d:"M32.0529 15.4066C35.1404 17.6208 38.9213 18.9237 43.005 18.9237V12.7156C40.7255 12.2283 38.7075 11.0328 37.1903 9.36999C34.5931 7.74358 32.722 5.0604 32.1733 1.91992H26.4482V33.4212C26.4352 37.0936 23.4655 40.0672 19.8032 40.0672C17.6451 40.0672 15.7279 39.0348 14.5136 37.4356C12.3454 36.3373 10.8585 34.0826 10.8585 31.4788C10.8585 27.7962 13.8331 24.8104 17.5032 24.8104C18.2064 24.8104 18.8842 24.9203 19.5199 25.1228V18.8468C11.6384 19.0102 5.2998 25.473 5.2998 33.4214C5.2998 37.3892 6.87827 40.9861 9.44013 43.6143C11.7513 45.1716 14.5335 46.08 17.5268 46.08C25.5494 46.08 32.0531 39.5531 32.0531 31.5017V15.4066H32.0529Z",fill:"black"}),(0,r.createElement)("path",{d:"M43.0051 12.7156V11.037C40.9495 11.0401 38.9343 10.4624 37.1903 9.36987C38.7342 11.0661 40.7671 12.2357 43.0051 12.7156ZM32.1734 1.91997C32.1211 1.61982 32.0809 1.3177 32.053 1.01443V0H24.148V31.5016C24.1354 35.1735 21.1658 38.1471 17.5033 38.1471C16.428 38.1471 15.4128 37.891 14.5137 37.4358C15.7279 39.0349 17.6452 40.0671 19.8033 40.0671C23.4652 40.0671 26.4354 37.0938 26.4482 33.4214V1.91997H32.1734ZM19.5203 18.8468V17.0598C18.8598 16.9692 18.1938 16.9237 17.5271 16.924C9.50383 16.9239 3 23.4508 3 31.5016C3 36.5491 5.55612 40.9974 9.44034 43.614C6.87848 40.986 5.30002 37.3889 5.30002 33.4213C5.30002 25.473 11.6385 19.0102 19.5203 18.8468Z",fill:"#00F2EA"})),medium:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M48 23.6554C48 30.0141 46.9344 35.1719 45.6194 35.1719C44.3045 35.1719 43.2393 30.0154 43.2393 23.6554C43.2393 17.2954 44.3049 12.1389 45.6194 12.1389C46.9339 12.1389 48 17.2949 48 23.6554Z",fill:"black"}),(0,r.createElement)("path",{d:"M41.9254 23.6554C41.9254 30.7541 38.8949 36.5109 35.1565 36.5109C31.4182 36.5109 28.3877 30.7541 28.3877 23.6554C28.3877 16.5568 31.4177 10.7999 35.1561 10.7999C38.8944 10.7999 41.9249 16.555 41.9249 23.6554",fill:"black"}),(0,r.createElement)("path",{d:"M27.0749 23.6554C27.0749 31.1968 21.0139 37.3103 13.5377 37.3103C6.06146 37.3103 0 31.1955 0 23.6554C0 16.1153 6.061 10 13.5377 10C21.0143 10 27.0749 16.114 27.0749 23.6554Z",fill:"black"})),tumblr:e=>(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M14.563 24C9.47 24 7.532 20.244 7.532 17.589V9.747H5.116V6.648C8.746 5.335 9.628 2.052 9.826 0.179C9.84 0.051 9.941 0 9.999 0H13.516V6.114H18.317V9.747H13.497V17.217C13.513 18.218 13.872 19.588 15.704 19.588H15.794C16.425 19.568 17.28 19.383 17.73 19.169L18.886 22.594C18.45 23.23 16.486 23.968 14.73 23.998H14.552L14.563 24Z",fill:"#36465D"})),threads:e=>(0,r.createElement)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M35.3843 22.2471C35.1775 22.148 34.9675 22.0526 34.7547 21.9613C34.3842 15.1346 30.654 11.2262 24.3905 11.1862C24.3621 11.1861 24.3339 11.1861 24.3055 11.1861C20.5591 11.1861 17.4433 12.7852 15.5255 15.6952L18.9702 18.0582C20.4029 15.8846 22.6513 15.4212 24.3071 15.4212C24.3263 15.4212 24.3455 15.4212 24.3644 15.4214C26.4268 15.4345 27.983 16.0342 28.9902 17.2035C29.7232 18.0548 30.2135 19.2313 30.4562 20.716C28.6277 20.4052 26.6502 20.3096 24.5362 20.4308C18.5812 20.7738 14.7528 24.247 15.0099 29.073C15.1404 31.521 16.3599 33.627 18.4438 35.0028C20.2056 36.1657 22.4748 36.7345 24.8331 36.6058C27.9475 36.435 30.3907 35.2467 32.0952 33.074C33.3897 31.424 34.2085 29.2857 34.57 26.5915C36.0542 27.4872 37.1543 28.666 37.7617 30.083C38.7948 32.4917 38.855 36.45 35.6253 39.677C32.7955 42.504 29.394 43.727 24.2534 43.7648C18.551 43.7225 14.2384 41.8937 11.4345 38.3293C8.80887 34.9915 7.45192 30.1705 7.4013 24C7.45192 17.8295 8.80887 13.0084 11.4345 9.67068C14.2384 6.10623 18.551 4.2775 24.2533 4.23513C29.997 4.27782 34.3848 6.11535 37.296 9.697C38.7235 11.4534 39.7998 13.6622 40.5093 16.2376L44.546 15.1606C43.686 11.9906 42.3327 9.25893 40.4912 6.9935C36.759 2.40167 31.3005 0.048787 24.2674 0H24.2392C17.2204 0.0486175 11.823 2.41045 8.19707 7.01982C4.97047 11.1216 3.3061 16.8289 3.25017 23.9831L3.25 24L3.25017 24.0169C3.3061 31.171 4.97047 36.8785 8.19707 40.9803C11.823 45.5895 17.2204 47.9515 24.2392 48H24.2674C30.5075 47.9567 34.906 46.323 38.5295 42.7028C43.2702 37.9665 43.1275 32.0298 41.565 28.3853C40.444 25.7717 38.3068 23.649 35.3843 22.2471ZM24.6101 32.3768C22.0001 32.5238 19.2886 31.3523 19.1549 28.843C19.0558 26.9825 20.479 24.9065 24.7703 24.6592C25.2617 24.6308 25.744 24.617 26.2178 24.617C27.7765 24.617 29.2347 24.7684 30.5605 25.0583C30.066 31.2337 27.1655 32.2365 24.6101 32.3768Z",fill:"black"})),yelp:e=>(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("g",{clipPath:"url(#clip0_1_8)"},(0,r.createElement)("path",{d:"M7.6885 15.1415L4.017 15.9898C3.6401 16.0769 3.262 16.1728 2.8718 16.1448C2.6107 16.126 2.3596 16.1034 2.1112 15.9318C1.97698 15.8364 1.86423 15.714 1.7802 15.5724C1.4316 15.0205 1.4146 14.2063 1.4105 13.572C1.405 12.8703 1.51701 12.1725 1.7419 11.5078C1.77163 11.4228 1.80749 11.3402 1.8492 11.2604C1.88715 11.186 1.92904 11.1138 1.9747 11.0439C2.02339 10.9754 2.07556 10.9095 2.131 10.8464C2.24264 10.725 2.37859 10.6286 2.53 10.5633C2.67516 10.5023 2.83187 10.4738 2.9892 10.4796C3.2247 10.4812 3.5031 10.5316 3.8992 10.653C3.9547 10.6721 4.0229 10.6912 4.0848 10.7102C4.4125 10.8115 4.7896 10.9506 5.2347 11.1089C5.921 11.3493 6.601 11.5959 7.281 11.8486L8.4927 12.2909C8.7144 12.3716 8.929 12.4709 9.1339 12.5879C9.3079 12.6863 9.4612 12.8177 9.5851 12.9749C9.67659 13.1046 9.74182 13.251 9.7771 13.4058C9.84794 13.7136 9.79666 14.037 9.63404 14.3078C9.47142 14.5786 9.21013 14.7758 8.9051 14.858C8.8583 14.8731 8.8199 14.8819 8.7966 14.8873L7.6916 15.1426L7.6885 15.1415ZM18.8208 7.56499C18.7571 7.50165 18.6888 7.44303 18.6166 7.38959C18.5498 7.33956 18.4805 7.29303 18.4089 7.25019C18.3353 7.20985 18.2595 7.17347 18.182 7.14119C18.0287 7.08106 17.8645 7.05393 17.7 7.06159C17.5427 7.07057 17.3892 7.11367 17.2502 7.18789C17.0395 7.29269 16.8114 7.46109 16.5082 7.74299C16.4662 7.78469 16.4135 7.83159 16.3662 7.87599C16.116 8.11109 15.8376 8.4012 15.5063 8.739C14.9958 9.25515 14.4903 9.77614 13.9897 10.3019L13.0935 11.2312C12.9294 11.401 12.7801 11.5845 12.6469 11.7795C12.5334 11.9444 12.4531 12.1298 12.4105 12.3254C12.3859 12.4753 12.3895 12.6286 12.4212 12.7772L12.4258 12.7972C12.4965 13.1049 12.6839 13.3731 12.9485 13.5453C13.2131 13.7174 13.5343 13.7802 13.8442 13.7202C13.8814 13.7149 13.9182 13.7078 13.9547 13.6989L18.7328 12.5949C19.1094 12.5079 19.4915 12.4282 19.8298 12.2318C20.0567 12.1002 20.2726 11.9698 20.4207 11.7066C20.4997 11.562 20.5476 11.4025 20.5612 11.2383C20.6345 10.5871 20.2944 9.8475 20.0209 9.2753C19.7192 8.64218 19.3135 8.06407 18.8208 7.56499ZM8.9703 0.0753949C8.69126 0.114017 8.41426 0.166212 8.1403 0.231795C7.8649 0.297795 7.5923 0.370095 7.3257 0.455395C6.4577 0.739795 5.2373 1.26169 5.0307 2.26189C4.9142 2.82739 5.1902 3.40579 5.4044 3.92189C5.6639 4.54729 6.0184 5.11079 6.3417 5.69959C7.196 7.25409 8.0662 8.7989 8.9339 10.3453C9.1929 10.807 9.4755 11.3917 9.9769 11.6309C10.01 11.6454 10.0438 11.6582 10.0782 11.6692C10.303 11.7543 10.5481 11.7708 10.7823 11.7163C10.7963 11.7131 10.8102 11.7099 10.8241 11.7066C11.0405 11.6478 11.2363 11.5302 11.3899 11.3669C11.4176 11.3409 11.444 11.3134 11.4689 11.2847C11.8152 10.8497 11.8143 10.2014 11.8453 9.6713C11.9495 7.9003 12.0592 6.12899 12.1462 4.35709C12.1794 3.68589 12.2517 3.02379 12.2117 2.34749C12.1789 1.78959 12.1749 1.14909 11.8226 0.691195C11.2008 -0.116105 9.875 -0.0498051 8.9703 0.0753949ZM11.0543 16.0259C10.9192 15.8358 10.7273 15.6933 10.5063 15.6189C10.2852 15.5444 10.0463 15.5418 9.8237 15.6114C9.77137 15.6288 9.72037 15.6499 9.6711 15.6747C9.59496 15.7135 9.52233 15.7588 9.454 15.8101C9.2548 15.9576 9.0872 16.1493 8.9344 16.3416C8.8958 16.3906 8.8604 16.4559 8.8144 16.4978L8.0458 17.5551C7.6096 18.1472 7.17915 18.7436 6.7545 19.3441C6.4765 19.7336 6.2361 20.0625 6.0462 20.3535C6.0102 20.4082 5.9728 20.4695 5.9387 20.5182C5.711 20.8704 5.5821 21.1274 5.5159 21.3563C5.46624 21.5084 5.45054 21.6696 5.4699 21.8284C5.491 21.9939 5.5467 22.153 5.6334 22.2954C5.6794 22.3669 5.7291 22.436 5.7821 22.5024C5.83723 22.5664 5.89578 22.6273 5.9575 22.6849C6.02339 22.7478 6.09385 22.8056 6.1683 22.8581C6.6987 23.2271 7.2795 23.4923 7.8903 23.6972C8.39869 23.8659 8.92711 23.9669 9.4619 23.9976C9.5529 24.0022 9.644 24.0001 9.7347 23.9916C9.8188 23.9843 9.90245 23.9726 9.9853 23.9565C10.0681 23.9372 10.1498 23.9135 10.23 23.8855C10.3862 23.8271 10.5285 23.7365 10.6475 23.6197C10.7602 23.5067 10.8469 23.3707 10.9016 23.2208C10.9905 22.9994 11.0489 22.7182 11.0873 22.3008C11.0907 22.2415 11.0991 22.1703 11.105 22.105C11.1354 21.7587 11.1493 21.3519 11.1716 20.8735C11.2091 20.1378 11.2386 19.4054 11.2619 18.6709C11.2619 18.6709 11.3114 17.3656 11.3113 17.3649C11.3226 17.0641 11.3133 16.7307 11.2299 16.4313C11.1933 16.2877 11.134 16.1509 11.0543 16.0259ZM19.7297 18.0698C19.5692 17.8938 19.3419 17.7184 18.9835 17.5016C18.9317 17.4728 18.8711 17.4342 18.8151 17.4007C18.5166 17.2212 18.1571 17.0323 17.7371 16.8042C17.0927 16.451 16.4451 16.1036 15.7944 15.7622L14.6429 15.1515C14.5832 15.134 14.5226 15.0908 14.4663 15.0637C14.2451 14.9579 14.0105 14.8592 13.7671 14.8139C13.6832 14.7978 13.598 14.7889 13.5126 14.7874C13.4575 14.7868 13.4024 14.7901 13.3478 14.7974C13.1175 14.8332 12.9043 14.9407 12.7386 15.1047C12.573 15.2687 12.4632 15.4807 12.4251 15.7107C12.4076 15.857 12.4129 16.0051 12.441 16.1497C12.4973 16.4562 12.6342 16.7593 12.7756 17.0247L13.3906 18.1773C13.7328 18.8273 14.079 19.4736 14.4341 20.1179C14.6631 20.5381 14.8537 20.8978 15.0323 21.1959C15.0661 21.2519 15.1044 21.3122 15.1334 21.3641C15.3507 21.7225 15.5254 21.9481 15.7024 22.1099C15.817 22.2206 15.9544 22.3049 16.105 22.3569C16.2633 22.4094 16.431 22.4279 16.5969 22.4115C16.6813 22.4015 16.7651 22.387 16.8479 22.368C16.9296 22.346 17.0101 22.32 17.0889 22.2896C17.1741 22.2576 17.2568 22.2194 17.3364 22.1753C17.804 21.9131 18.2349 21.5904 18.6182 21.2156C19.0778 20.7634 19.4841 20.2702 19.8002 19.7056C19.8442 19.6256 19.8821 19.5426 19.914 19.4573C19.9438 19.3783 19.9696 19.2978 19.9913 19.2162C20.0099 19.1332 20.0243 19.0493 20.0342 18.9649C20.05 18.7991 20.0307 18.6318 19.9777 18.4739C19.9256 18.3227 19.8409 18.1847 19.7297 18.0698ZM22.5897 21.8118C22.5902 21.9603 22.552 22.1063 22.4787 22.2354C22.4047 22.3674 22.3007 22.4731 22.1672 22.5526C22.0347 22.6317 21.883 22.6728 21.7287 22.6716C21.5749 22.6727 21.4238 22.632 21.2914 22.5537C21.161 22.4775 21.0531 22.3681 20.9789 22.2366C20.9055 22.1071 20.8673 21.9606 20.8679 21.8118C20.8679 21.6592 20.9059 21.516 20.9822 21.3824C21.0568 21.2506 21.1657 21.1415 21.2972 21.0665C21.4281 20.9901 21.5771 20.9502 21.7287 20.9509C21.8794 20.9503 22.0276 20.9898 22.1581 21.0653C22.2899 21.1398 22.3991 21.2486 22.4741 21.3801C22.5505 21.5111 22.5904 21.6602 22.5897 21.8118ZM22.4695 21.8118C22.4695 21.679 22.4363 21.5558 22.3699 21.442C22.3035 21.3282 22.2135 21.2382 22.0997 21.1718C21.9876 21.1049 21.8593 21.07 21.7287 21.0711C21.5987 21.0703 21.4709 21.1047 21.3589 21.1707C21.2466 21.2357 21.1531 21.3288 21.0876 21.4409C21.0213 21.5532 20.9869 21.6814 20.988 21.8118C20.988 21.9438 21.0212 22.0675 21.0876 22.1828C21.1524 22.2956 21.2461 22.3893 21.3589 22.4541C21.4713 22.519 21.5989 22.553 21.7287 22.5526C21.8587 22.5534 21.9865 22.5189 22.0985 22.453C22.2105 22.3884 22.3036 22.2956 22.3687 22.1839C22.4356 22.0714 22.4704 21.9427 22.4695 21.8118ZM21.8925 21.8702L22.1649 22.3224H21.9727L21.7357 21.9172H21.5811V22.3224H21.4116V21.3024H21.7104C21.8372 21.3024 21.9299 21.3271 21.9887 21.3768C22.0482 21.4264 22.0779 21.502 22.0779 21.6035C22.0788 21.6615 22.0616 21.7183 22.0287 21.766C21.9967 21.8126 21.9512 21.8473 21.8925 21.8702ZM21.8513 21.7294C21.8692 21.7147 21.8835 21.6962 21.8932 21.6751C21.9029 21.6541 21.9078 21.6311 21.9073 21.608C21.9073 21.5507 21.8909 21.5099 21.8582 21.4855C21.8253 21.4604 21.7735 21.4478 21.7025 21.4478H21.5811V21.7763H21.7048C21.7658 21.7763 21.8146 21.7607 21.8513 21.7294Z",fill:"#FF1A1A"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_1_8"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"white"})))),whatsapp:e=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("path",{d:"M0 20L1.40583 14.8642C0.538332 13.3608 0.0824998 11.6567 0.0833332 9.90917C0.0858331 4.44583 4.53166 0 9.99414 0C12.645 0.000833333 15.1333 1.03333 17.005 2.90667C18.8758 4.78 19.9058 7.27 19.905 9.91833C19.9025 15.3825 15.4566 19.8283 9.99414 19.8283C8.33581 19.8275 6.70165 19.4117 5.25415 18.6217L0 20ZM5.49749 16.8275C6.89415 17.6567 8.22748 18.1533 9.99081 18.1542C14.5308 18.1542 18.2291 14.4592 18.2316 9.91667C18.2333 5.365 14.5525 1.675 9.99748 1.67333C5.45415 1.67333 1.75833 5.36833 1.75666 9.91C1.75583 11.7642 2.29916 13.1525 3.21166 14.605L2.37916 17.645L5.49749 16.8275ZM14.9866 12.2742C14.925 12.1708 14.76 12.1092 14.5116 11.985C14.2641 11.8608 13.0466 11.2617 12.8191 11.1792C12.5925 11.0967 12.4275 11.055 12.2616 11.3033C12.0966 11.5508 11.6216 12.1092 11.4775 12.2742C11.3333 12.4392 11.1883 12.46 10.9408 12.3358C10.6933 12.2117 9.89498 11.9508 8.94915 11.1067C8.21331 10.45 7.71582 9.63917 7.57165 9.39083C7.42748 9.14333 7.55665 9.00917 7.67998 8.88583C7.79165 8.775 7.92748 8.59667 8.05165 8.45167C8.17748 8.30833 8.21832 8.205 8.30165 8.03917C8.38415 7.87417 8.34332 7.72917 8.28082 7.605C8.21832 7.48167 7.72332 6.2625 7.51748 5.76667C7.31582 5.28417 7.11165 5.34917 6.95998 5.34167L6.48499 5.33333C6.31999 5.33333 6.05165 5.395 5.82499 5.64333C5.59832 5.89167 4.95832 6.49 4.95832 7.70917C4.95832 8.92833 5.84582 10.1058 5.96915 10.2708C6.09332 10.4358 7.71498 12.9375 10.1991 14.01C10.79 14.265 11.2516 14.4175 11.6108 14.5317C12.2041 14.72 12.7441 14.6933 13.1708 14.63C13.6466 14.5592 14.6358 14.0308 14.8425 13.4525C15.0491 12.8733 15.0491 12.3775 14.9866 12.2742Z",fill:"#25D366"})),telegram:e=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,r.createElement)("g",{clipPath:"url(#clip0_15046_51595)"},(0,r.createElement)("path",{d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",fill:"url(#paint0_linear_15046_51595)"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.52587 9.89397C7.44107 8.62386 9.38499 7.78653 10.3576 7.38197C13.1347 6.22688 13.7118 6.02623 14.0879 6.0196C14.1707 6.01814 14.3556 6.03865 14.4754 6.13587C14.5766 6.21796 14.6044 6.32885 14.6177 6.40668C14.6311 6.48451 14.6477 6.66181 14.6345 6.80034C14.484 8.38158 13.8328 12.2188 13.5015 13.9898C13.3613 14.7392 13.0853 14.9905 12.8181 15.0151C12.2374 15.0685 11.7964 14.6313 11.234 14.2626C10.3538 13.6856 9.85662 13.3265 9.0023 12.7635C8.01499 12.1129 8.65502 11.7553 9.21769 11.1709C9.36494 11.018 11.9236 8.69066 11.9731 8.47953C11.9793 8.45313 11.9851 8.35471 11.9266 8.30274C11.8681 8.25077 11.7818 8.26854 11.7195 8.28267C11.6313 8.30271 10.2253 9.23203 7.50149 11.0706C7.10239 11.3447 6.74091 11.4782 6.41703 11.4712C6.05998 11.4635 5.37315 11.2693 4.86257 11.1034C4.23632 10.8998 3.73859 10.7922 3.78193 10.4465C3.8045 10.2664 4.05248 10.0822 4.52587 9.89397Z",fill:"white"})),(0,r.createElement)("defs",null,(0,r.createElement)("linearGradient",{id:"paint0_linear_15046_51595",x1:"10",y1:"0",x2:"10",y2:"19.8517",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{stopColor:"#2AABEE"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#229ED9"})),(0,r.createElement)("clipPath",{id:"clip0_15046_51595"},(0,r.createElement)("rect",{width:"20",height:"20",fill:"white"})))),link:ne.A,bluesky:e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e},(0,r.createElement)("path",{fill:"#007BFF",d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))},ie=surerank_admin_common?.social_profiles.filter(e=>!e.extra).map(e=>({...e,icon:se[e.id]||se.link})),oe=surerank_admin_common?.social_profiles.filter(e=>e.extra).map(e=>({...e,icon:se[e.id]||se.link}));var ce=a(30758),me=a(59909),ue=a(66893),de=a(71149),pe=a(18306);const ge=()=>null,he=()=>{const e=(0,M.z)({select:e=>e.pathname}),t=Ne.findIndex(t=>t.path===e),{config:{containerSize:a="sm"}}=Ne[t]||{config:{containerSize:"sm"}};let n;switch(a){case"sm":default:n="max-w-onboarding-container-1";break;case"md":n="max-w-onboarding-container-2 p-7";break;case"lg":n="max-w-onboarding-container-3 p-8"}return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ce.Ay,null),(0,r.createElement)(H,null,(0,r.createElement)("div",{className:"grid grid-cols-1 grid-rows-[3.5rem_1fr] w-full h-full"},(0,r.createElement)(me.bx,{className:(0,o.cn)("z-[1] p-4 min-h-14 bg-transparent")},(0,r.createElement)(me.bx.Left,null,(0,r.createElement)(me.bx.Item,null,(0,r.createElement)(de.uw,{className:"w-[127px] h-[20px]"}))),(0,r.createElement)(me.bx.Middle,{align:"center",className:"w-full max-w-95 hidden md:flex"},(0,r.createElement)(ue.Jc,{currentStep:t+1,size:"md",type:"inline",variant:"number",completedVariant:"number"},Array.from({length:Ne.length-1}).map((e,t)=>(0,r.createElement)(ue.Jc.Step,{key:t})))),(0,r.createElement)(me.bx.Right,null,(0,r.createElement)(te,null))),(0,r.createElement)("div",{className:"flex flex-col items-center justify-start p-10"},(0,r.createElement)("div",{className:(0,o.cn)("w-full h-full max-w-onboarding-container mx-auto border border-border-subtle rounded-xl p-6 bg-background-primary shadow-sm",n)},(0,r.createElement)(pe.sv,null))))),(0,r.createElement)(ge,null))};var _e=a(16162),fe=a(17845),be=a(6498),we=a(27278),Ee=a(94583),ye=a(50995),ke=a(70097),ve=a(64894),Ce=a(50459),xe=a(76016);a(60388);const Ne=[{path:"/",component:()=>{const{nextStep:e}=I();return(0,r.createElement)("form",{className:"flex flex-col gap-4",onSubmit:e=>{e.preventDefault()}},(0,r.createElement)(q.mc,{className:"p-1 gap-1.5",direction:"column"},(0,r.createElement)(j.h,{tag:"h2",title:(0,c.__)("Welcome to SureRank!","surerank"),size:"lg",className:"[&>h2]:text-3xl [&>h2]:leading-9.5"}),(0,r.createElement)(p.A,{tag:"p",className:"text-base"},(0,c.__)("Set up your site\u2019s SEO easily\u2014no advanced skills needed!","surerank"))),(0,r.createElement)("div",{className:"p-1"},(0,r.createElement)("img",{src:Y,alt:"Onboarding Welcome Banner",className:"w-full h-full object-cover"})),(0,r.createElement)("ul",{className:"space-y-1.5 p-1","aria-label":(0,c.__)("List of features","surerank")},X.map(e=>(0,r.createElement)("li",{key:e,className:"flex items-center gap-2","aria-label":e},(0,r.createElement)(J.A,{className:"size-3 text-icon-primary","aria-hidden":"true"}),(0,r.createElement)(p.A,{size:"sm",tag:"p",className:"font-medium text-field-label"},e)))),(0,r.createElement)("hr",{className:"border-t border-b-0 border-x-0 border-solid border-border-subtle m-1"}),(0,r.createElement)("div",{className:"p-1"},(0,r.createElement)(A.A,{variant:"primary",size:"md",icon:(0,r.createElement)(T.A,null),iconPosition:"right",onClick:()=>e(),className:"w-fit mr-auto"},(0,c.__)("Let's Get Started","surerank"))))},config:{containerSize:"sm"}},...xe.dc&&fe.rG?.length?[{path:"/migration",component:()=>{const{nextStep:e,previousStep:t}=I(),[{isMigrationDone:a=!1},n]=V(),{state:l,plugin_slug:s,isMigrating:i,isDone:d,error:p,showResume:g,handleSelectPlugin:h,handleMigrate:_,handleResumeMigration:f,handleStartOver:b,handleCancelMigration:w,deactivatePlugin:E,handleChangeDeactivate:y}=(0,ke.A)({localStorageKey:"surerank_onboarding_migration_progress"}),k=fe.rG.find(e=>e.slug===s),v=(0,m.useMemo)(()=>d||a,[d,a]);if(g)return(0,r.createElement)(Ee.i,{onResume:f,onStartOver:b,onCancel:w});let C=(0,r.createElement)("div",{className:"flex flex-col gap-6 w-full"},(0,r.createElement)("div",{className:"space-y-1"},(0,r.createElement)(u.E,{size:20,weight:600,color:"primary"},(0,c.__)("Bring Your SEO Settings into SureRank","surerank")),(0,r.createElement)(u.E,{size:14,weight:400,color:"secondary"},(0,c.__)("We found other SEO plugins installed on your website. Choose the ones you'd like to import data from into SureRank.","surerank"))),(0,r.createElement)("div",{className:"flex flex-col gap-4 w-full"},(0,r.createElement)("div",{className:"flex items-start gap-4 w-full"},(0,r.createElement)("div",{className:"flex-grow"},(0,r.createElement)(_e.Ay.Group,{columns:1,onChange:e=>{h(e)},value:s,vertical:!0,size:"md",name:"import_from"},fe.rG.filter(e=>!i&&!p||e.slug===s).map(e=>(0,r.createElement)(_e.Ay.Button,{key:e.slug,buttonWrapperClasses:"pl-3 py-3",label:{heading:e.name},value:e.slug,borderOn:!0}))))),k&&k.active&&!i&&!d&&!p&&(0,r.createElement)(be.A,{plugin:k,value:E,onChange:y}),p&&(0,r.createElement)(ye.A,{error:p,isDisabled:i||!s}),i&&(0,r.createElement)("div",{className:"flex flex-col gap-2 mt-4 w-full"},(0,r.createElement)(we.g,{migrationData:l.migrationData,pluginSlug:s,currentStatus:l.currentStatus,progress:l.progress}))));return v&&(C=(0,r.createElement)(Ee.G,{hideAcknowledge:!0})),(0,r.createElement)(r.Fragment,null,C,(0,r.createElement)("div",{className:"mt-6"},(0,r.createElement)(Ce.A,null)),!g&&(0,r.createElement)(F,{className:"mt-12",skipProps:{onClick:e,disabled:i,className:(0,o.cn)(v&&"hidden")},backProps:{onClick:t},nextProps:{children:(0,c.__)(i?"Migrating":p?"Retry":v?"Next":"Migrate","surerank"),onClick:async()=>{if(s){if(v)return e(),void n({isMigrationDone:!0});if(!i&&s){await _();try{const e=await(0,ve.Af)();n({socialProfilesURLs:e.social_profiles,websiteDetails:e.website_details,isMigrationDone:!0})}catch(t){}}}},disableNavigation:!v,type:"button",className:(0,o.cn)((i||!s&&!v)&&"opacity-70 cursor-not-allowed focus:ring-0",v&&"ml-auto"),...i&&{icon:(0,r.createElement)(N.a,{variant:"secondary"})}}}))},config:{containerSize:"lg",hideBackButton:!0}}]:[],{path:"/website-details",component:()=>{const[{pages:e=[],websiteDetails:t={},userDetails:a={}},n]=V(),l=Object.values(surerank_globals?.schema_type_options?.Organization||{}),[s,i]=(0,m.useState)(t),[o,u]=(0,m.useState)(e),d=async(e="")=>{try{return(await B()({path:"/wp/v2/pages?per_page=10"+(e?`&search=${encodeURIComponent(e)}`:""),method:"GET"})).map(e=>({label:e.title.rendered||(0,c.__)("Untitled","surerank"),value:e.id}))}catch(t){return[]}};(0,m.useEffect)(()=>{(async()=>{try{const e=await d();n({pages:e}),u(e)}catch(e){n({pages:[]}),u([])}})()},[]),(0,m.useEffect)(()=>{const e=surerank_admin_common?.website_details,r={website_type:t?.website_type||e?.website_represents||"",website_name:t?.website_name||e?.website_name||"",website_owner_name:t?.website_owner_name||e?.website_owner_name||"",organization_type:t?.organization_type||"Organization",website_owner_phone:t?.website_owner_phone||e?.website_owner_phone||"",business_description:t?.business_description||e?.business_description||"",website_logo:t?.website_logo||e?.website_logo||"",about_page:t?.about_page||e?.website_about_us||"",contact_page:t?.contact_page||e?.website_contact_us||"",first_name:a?.first_name||e?.website_lead_details?.first_name||"",last_name:a?.last_name||e?.website_lead_details?.last_name||"",email:a?.email||e?.website_lead_details?.email||""};n({websiteDetails:r,userDetails:{first_name:a?.first_name||e?.website_lead_details?.first_name||"",last_name:a?.last_name||e?.website_lead_details?.last_name||"",email:a?.email||e?.website_lead_details?.email||""}}),i(r)},[]);const g=e=>t=>{i(a=>{var r;return{...a,[e]:null!==(r=t?.value)&&void 0!==r?r:t}})},h=[{label:(0,c.__)("This Website Represents","surerank"),name:"website_type",type:"select",options:$||[],width:"half"},{label:(0,c.__)("Organization Type","surerank"),name:"organization_type",type:"selectGroup",options:l,width:"half",conditionalOn:"website_type",conditionalValues:["business","organization","ecommerce","community"]},{label:(0,c.__)("Website Name","surerank"),name:"website_name",type:"text",width:"half",conditionalOn:"website_type",conditionalValues:["business","organization","ecommerce","community"]},{label:(0,c.__)("Phone Number (Optional)","surerank"),name:"website_owner_phone",type:"text",width:"half"},{label:(0,r.createElement)(m.Fragment,null,(0,r.createElement)("div",{className:"flex items-center justify-start gap-1"},(0,r.createElement)(p.A,{tag:"span",size:"sm"},(0,c.__)("Describe what you do","surerank")),(0,r.createElement)(U.ID,{content:(0,c.__)("Please describe what you do in a few sentences. This description will be used for content generation and other purposes.","surerank")}))),name:"business_description",type:"textarea",width:"full",rows:3},{label:(0,c.__)("Website Owner Name","surerank"),name:"website_owner_name",type:"text",width:"half",conditionalOn:"website_type",conditionalValues:["personal","blog"]},{label:(0,c.__)("Website Logo","surerank"),name:"website_logo",type:"file",width:"full",accept:"image/*",description:(0,c.__)("Recommended Logo size 112 X 112 or more, PNG / JPG format","surerank")}],_=(0,m.useMemo)(()=>[{label:(0,c.__)("Select About Page","surerank"),name:"about_page",type:"select",defaultValue:s?.about_page||{},options:o||[],width:"half",combobox:!0,by:"value",searchFn:d},{label:(0,c.__)("Select Contact Page","surerank"),name:"contact_page",type:"select",defaultValue:s?.contact_page||{},options:o||[],width:"half",combobox:!0,searchFn:d,by:"value"}],[o,s]),f=()=>{n({websiteDetails:s})},b=h.filter(e=>void 0===e.conditionalOn||e.conditionalValues?.includes(s[e.conditionalOn]));return(0,r.createElement)("form",{className:"flex flex-col gap-6",onSubmit:e=>{e.preventDefault()}},(0,r.createElement)("div",{className:"space-y-1"},(0,r.createElement)(j.h,{tag:"h4",title:(0,c.__)("Your Website Basic Details","surerank"),size:"md"}),(0,r.createElement)("p",null,(0,c.__)("Let\u2019s start with some basic information about your website. This info helps personalize your site and may be used in things like search results, structured data, and public details about your site.","surerank"))),(0,r.createElement)("div",{className:"flex flex-wrap gap-6"},b.map((e,t)=>(0,r.createElement)(m.Fragment,{key:e.name},y(e,s[e.name],g(e.name),null,{initialFocus:0===t}))),_.map(e=>{var t;return(0,r.createElement)(m.Fragment,{key:e.name},y(e,null!==(t=s[e.name])&&void 0!==t?t:"",g(e.name)))})),(0,r.createElement)(F,{nextProps:{onClick:f},backProps:{onClick:f}}))},config:{containerSize:"lg"}},{path:"/social-profiles",component:()=>{const[{socialProfilesURLs:e={}},t]=V(),[a,n]=(0,m.useState)(e),[l,s]=(0,m.useState)((e=>[...ie,...oe.filter(t=>t.id in e)])(a)),i=(0,m.useMemo)(()=>oe.filter(e=>!l.some(t=>t.id===e.id)),[l]),o=e=>t=>{n(a=>({...a,[e]:t.target.value}))},u=()=>{t({socialProfilesURLs:a})};return(0,r.createElement)("form",{className:"flex flex-col gap-6",onSubmit:e=>{e.preventDefault()}},(0,r.createElement)("div",{className:"space-y-1"},(0,r.createElement)(j.h,{tag:"h4",title:(0,c.__)("Social Profiles","surerank"),size:"md"}),(0,r.createElement)("p",{className:"w-full"},(0,c.__)("Please enter your social media profiles. These links can appear in the knowledge panel of the search results for your website.","surerank"))),(0,r.createElement)("div",{className:"flex flex-col border border-solid border-border-subtle rounded-lg p-1"},l.map(({label:e,id:t,placeholder:n,icon:s},c)=>(0,r.createElement)(m.Fragment,{key:t},(0,r.createElement)("div",{className:"flex items-center gap-3 w-full p-2.5"},(0,r.createElement)("div",{className:"flex items-center gap-3 w-2/4"},(0,r.createElement)(s,{className:"size-5"}),(0,r.createElement)("span",{className:"hidden md:inline-block text-field-label text-sm font-medium whitespace-nowrap"},e)),(0,r.createElement)("input",{className:"text-sm text-right text-text-primary placeholder:text-text-tertiary w-full border-none bg-transparent focus:outline-none focus:ring-0",placeholder:n,onChange:o(t),value:a[t]||"",...0===c&&{ref:E}})),(!!i.length||c<l.length-1)&&(0,r.createElement)("span",{className:"w-full block px-2.5"},(0,r.createElement)("hr",{className:"border-border-subtle border-b border-t-0 border-x-0 my-1 w-full"})))),!!i.length&&(0,r.createElement)(re.rI,null,(0,r.createElement)(re.rI.Trigger,null,(0,r.createElement)(A.A,{type:"button",variant:"ghost",className:"w-max my-2 mx-auto",size:"xs",icon:(0,r.createElement)(le.A,{className:"size-4"}),iconPosition:"right"},(0,c.__)("Add another profile","surerank"))),(0,r.createElement)(re.rI.Portal,{id:"surerank-root"},(0,r.createElement)(re.rI.ContentWrapper,null,(0,r.createElement)(re.rI.Content,{className:"w-60"},(0,r.createElement)(re.rI.List,null,i.map(({label:e,id:t,icon:a,placeholder:n})=>(0,r.createElement)(re.rI.Item,{key:t,onClick:()=>{return r={label:e,id:t,icon:a,placeholder:n},void s(e=>[...e,r]);var r}},(0,r.createElement)("div",{className:"flex items-center gap-3 w-full"},(0,r.createElement)(a,{className:"size-4"}),(0,r.createElement)("span",{className:"text-field-label text-sm font-medium"},e)))))))))),(0,r.createElement)(F,{className:"my-0",nextProps:{onClick:u},backProps:{onClick:u}}))},config:{containerSize:"lg"}},{path:"/user-details",component:()=>{const[{userDetails:e={},websiteDetails:t={},socialProfilesURLs:a={}},n]=V(),[l,s]=(0,m.useState)(e),{errors:i,validate:o,clearFieldError:u}=((e,t)=>{const[a,r]=(0,m.useState)({}),n=(e,t)=>{const a=(0,c.sprintf)((0,c.__)("%s is required","surerank"),t),r=(0,c.sprintf)((0,c.__)("%1$s must be a %2$s","surerank"),t,e.expected);return void 0===e.input?a:r},l=(0,m.useCallback)(()=>{const e={};return t.forEach(t=>{let a;const r=(0,c.sprintf)((0,c.__)("%s is required","surerank"),t.label);switch(t.type){case"text":case"textarea":default:a=W.YjP({error:e=>n(e,t.label)});break;case"email":a=W.YjP({required_error:r}).email((0,c.__)("Please enter a valid email address","surerank"));break;case"number":a=W.aig({error:e=>n(e,t.label)});break;case"url":a=W.YjP({required_error:r}).url((0,c.__)("Please enter a valid URL","surerank"));break;case"file":a=W.Nlp(File);break;case"checkbox":a=W.zMY()}t.required&&(a="checkbox"===t.type?a.refine(e=>!0===e,(0,c.__)("This field is required","surerank")):a.min(1,(0,c.sprintf)((0,c.__)("%s is required","surerank"),t.label))),e[t.name]=t.required?a:a.optional()}),W.Ikc(e)},[t]);return{errors:a,validate:(0,m.useCallback)(()=>{const t=l();try{return t.parse(e),r({}),!0}catch(a){const e={},t=a?.issues||a?.errors||[];if(Array.isArray(t)&&t.length>0){t.forEach(t=>{const a=t.path[0];a&&(e[a]=t.message)});const a=t[0]?.path?.[0];if(a){const e=document.querySelector(`[name="${a}"]`);e?.focus()}}return r(e),!1}},[e,l]),clearFieldError:e=>{r(t=>{if(!t[e])return t;const a={...t};return a[e]="",a})},isValid:0===Object.keys(a).length}})(l,K),d=()=>{n({userDetails:l})},p=(e=!1)=>async r=>{if(r(e=>({...e,next:!0})),!e&&!o())throw r(e=>({...e,next:!1})),new Error("Form validation error!",{cause:"form-validation"});try{var n,s;const r=null!==(n=t?.about_page?.value)&&void 0!==n?n:t?.about_page,i=null!==(s=t?.contact_page?.value)&&void 0!==s?s:t?.contact_page,o={website_type:t.website_type||"",website_name:t.website_name||"",website_owner_name:t.website_owner_name||"",business_description:t.business_description||"",organization_type:t.organization_type||"Organization",website_owner_phone:t.website_owner_phone||"",website_logo:t.website_logo?.url||"",about_page:r?parseInt(r):0,contact_page:i?parseInt(i):0,social_profiles:a||[],...!e&&{first_name:l.first_name||"",last_name:l.last_name||"",email:l.email||""}};await B()({path:Z.qh,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})}catch(i){}};return(0,r.createElement)("form",{className:"flex flex-col gap-6",onSubmit:e=>{e.preventDefault()},noValidate:!0},(0,r.createElement)("div",{className:"space-y-1"},(0,r.createElement)(j.h,{tag:"h4",title:(0,c.__)("Okay, just one last step\u2026","surerank"),size:"md"}),(0,r.createElement)("p",null,(0,c.__)("Help us tailor your SureRank experience and keep you updated with SEO tips, feature improvements, and helpful recommendations.","surerank"))),(0,r.createElement)("div",{className:"flex flex-wrap gap-6"},K.map((e,t)=>{return(0,r.createElement)(m.Fragment,{key:e.name},y(e,l[e.name],(a=e.name,e=>{u(a),s({...l,[a]:e}),d()}),i[e.name],{initialFocus:0===t}));var a})),(0,r.createElement)(F,{nextProps:{onClick:p(!1),children:(0,c.__)("Finish","surerank")},backProps:{onClick:d},skipProps:{onClick:p(!0)}}))},config:{containerSize:"lg"}},{path:"/finish",component:()=>(0,r.createElement)("form",{className:"flex flex-col gap-4",onSubmit:e=>{e.preventDefault()}},(0,r.createElement)("div",{className:"flex gap-4 flex-col md:flex-row"},(0,r.createElement)("div",{className:"space-y-6 max-w-full md:max-w-[75%]"},(0,r.createElement)("div",{className:"space-y-2"},(0,r.createElement)(j.h,{tag:"h3",title:(0,c.__)("You're Good to Go! \ud83d\ude80","surerank"),size:"lg"}),(0,r.createElement)("p",null,(0,c.__)("You've successfully set up SureRank, the first step to SEO success and your site is ready. Now, let's optimize your website for search engines.","surerank"))),(0,r.createElement)("div",{className:"space-y-2"},(0,r.createElement)(u.E,{as:"p",size:14,weight:600},(0,c.__)("Here's What You Can Do With SureRank:","surerank")),(0,r.createElement)("ul",{className:"list-none space-y-2 "},[(0,c.__)("Fix SEO issues, if any","surerank"),(0,c.__)("Analyze your website","surerank"),(0,c.__)("Optimize your content","surerank")].map(e=>(0,r.createElement)("li",{key:e,className:"flex items-center gap-1.5 justify-start"},(0,r.createElement)(T.A,{className:"size-3.5"}),(0,r.createElement)("span",{className:"text-sm font-normal text-field-label"},e)))))),(0,r.createElement)("img",{className:"w-1/2 md:w-[25%] h-full mx-auto",src:`${ae}/onboarding-success.svg`,alt:(0,c.__)("Solar system and a rocket","surerank")})),(0,r.createElement)("div",null,(0,r.createElement)("hr",{className:"border-b border-t-0 border-x-0 border-solid border-border-subtle mt-0 mb-4"}),(0,r.createElement)("div",{className:"flex justify-start gap-3 flex-col md:flex-row"},(0,r.createElement)(A.A,{variant:"primary",size:"md",className:"w-full md:w-auto",onClick:()=>{window.open(ee,"_self","noopener,noreferrer")}},(0,c.__)("Go To Dashboard","surerank"))))),config:{containerSize:"lg"}}],Ae=(e=>{const t=(0,n.gI)({component:he}),a=e.map(e=>(0,n.un)({getParentRoute:()=>t,path:e.path,component:e.component})),r=t.addChildren(a);return(0,l.a)({routeTree:r,history:(0,s.TM)()})})(Ne);(0,o.bF)("#surerank-root",(0,r.createElement)(i.p,{router:Ae}))},93832:e=>{e.exports=window.wp.url},94583:(e,t,a)=>{a.d(t,{G:()=>h,i:()=>g});var r=a(51609),n=a(27723),l=a(30732),s=a(88029),i=a(45773),o=a(86241),c=a(45350),m=a(9607);const u={green:"bg-badge-background-green border-badge-border-green text-badge-color-green",red:"bg-badge-background-red border-badge-border-red text-badge-color-red",yellow:"bg-badge-background-yellow border-badge-border-yellow text-badge-color-yellow",gray:"bg-badge-background-gray border-badge-border-gray text-badge-color-gray"},d=({icon:e,color:t="green",className:a,...n})=>(0,r.createElement)(c.mc,{align:"center",justify:"center",className:(0,m.cn)("size-5 rounded-full border border-solid [&>svg]:shrink-0 [&>svg]:size-3",u[t],a),...n},e);var p=a(17845);const g=({onResume:e,onStartOver:t,onCancel:a})=>(0,r.createElement)("div",{className:"flex flex-col gap-6 w-full"},(0,r.createElement)(l.E,{size:18,weight:600,color:"primary"},(0,n.__)("Your SEO Settings Migration is Paused","surerank")),(0,r.createElement)("div",{className:"flex flex-col gap-2 p-3 bg-alert-background-warning border border-solid border-alert-border-warning rounded-lg"},(0,r.createElement)(l.E,{size:14,weight:400,color:"primary"},(0,n.__)("We've successfully imported some of your SEO settings, but the migration wasn't completed. This may happen if the process was interrupted or exited early. Don't worry \u2014 everything imported so far is safely saved, and no duplicate data will be created.","surerank"))),(0,r.createElement)("div",{className:"flex flex-row justify-between items-center gap-2"},(0,r.createElement)("div",{className:"flex gap-2"},(0,r.createElement)(s.A,{variant:"primary",size:"sm",onClick:e},(0,n.__)("Resume Migration","surerank")),(0,r.createElement)(s.A,{variant:"outline",size:"sm",onClick:t},(0,n.__)("Start Over","surerank"))),(0,r.createElement)(s.A,{variant:"ghost",size:"sm",onClick:a},(0,n.__)("Cancel Migration","surerank")))),h=({hideAcknowledge:e=!1})=>(0,r.createElement)("div",{className:"flex flex-col gap-6 w-full"},(0,r.createElement)(l.E,{size:18,weight:600,color:"primary"},(0,n.__)("We've Imported SEO Settings. Here's What's Done:","surerank")),(0,r.createElement)("div",{className:"grid grid-cols-2 gap-2"},p.b9.map(e=>(0,r.createElement)("div",{key:e,className:"flex items-center gap-2 p-1"},(0,r.createElement)(d,{icon:(0,r.createElement)(i.A,null),color:"green"}),(0,r.createElement)(l.E,{size:14,weight:500,color:"secondary"},e)))),(0,r.createElement)("div",{className:"flex items-center p-4 bg-alert-background-info border border-solid border-alert-border-info rounded-lg",role:"alert"},(0,r.createElement)(l.E,{size:14,weight:400,color:"primary"},(0,n.__)("Since SureRank has different features compared to the plugin you imported from, and this was an automatic migration, some settings may not have carried over. Please review and test everything to ensure it works as expected.","surerank"))),(0,r.createElement)(l.E,{size:16,weight:600,color:"primary"},(0,n.__)("Settings which may not be migrated completely.","surerank")),(0,r.createElement)("div",{className:"grid grid-cols-2 gap-2"},p.T.map(e=>(0,r.createElement)("div",{key:e,className:"flex items-center gap-2 p-1"},(0,r.createElement)(d,{icon:(0,r.createElement)(o.A,null),color:"gray"}),(0,r.createElement)(l.E,{size:14,weight:500,color:"secondary"},e)))),!e&&(0,r.createElement)(s.A,{variant:"primary",className:"w-fit",size:"sm",onClick:()=>{window.location.reload()}},(0,n.__)("Done","surerank")))},94879:(e,t,a)=>{a.d(t,{$w:()=>c,ID:()=>o,Nr:()=>m,m_:()=>i});var r=a(51609),n=a(9607),l=a(99019),s=a(97213);const i=e=>e.content||e.title?(0,r.createElement)(l.m,{...e,tooltipPortalId:"surerank-root",boundary:document?.querySelector("#surerank-root")||"clippingAncestors"}):e.children,o=({content:e,...t})=>(0,r.createElement)(i,{content:e,placement:"top",arrow:!0,className:(0,n.cn)("max-w-95 z-[99999]",t?.className),...t},(0,r.createElement)(s.A,{className:"size-4 text-icon-secondary"})),c=e=>e.content||e.title?(0,r.createElement)(l.m,{...e,className:(0,n.cn)("z-[99999] max-w-95",e.className),tooltipPortalId:"surerank-root",boundary:document?.querySelector("#surerank-seo-popup-modal-container")||"clippingAncestors"}):e.children,m=({content:e,className:t,...a})=>(0,r.createElement)(c,{className:(0,n.cn)("z-[99999] max-w-95",t),content:e,placement:"top",arrow:!0,...a},(0,r.createElement)(s.A,{className:"shrink-0 size-4 !text-icon-secondary"}))}},e=>{e.O(0,[9603,4631,5769,4795,7167,862,5988,9743,4912,4865,5608,6115,1085,6152,359,9545,641,6018,2691,8426,9254,2584,418,5555,6770,938,8427,9526,8871,2002,908,8789,9658,8645,4973,5043,8732,5599,1811,4160,7683,5408,7040,703,4634,4787,8433,1624],()=>e(e.s=90886)),e.O()}]);