File "index.js"

Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/surerank/build/elementor/index.js
File size: 22.39 KB
MIME-type: text/plain
Charset: utf-8

"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[322],{1455:e=>{e.exports=window.wp.apiFetch},1671:(e,t,n)=>{n.d(t,{E:()=>r});const r="surerank"},9607:(e,t,n)=>{n.d(t,{EJ:()=>g,OY:()=>x,P$:()=>b,P3:()=>m,PA:()=>v,XY:()=>d,ZV:()=>S,_t:()=>D,bF:()=>h,cn:()=>f,e$:()=>p,jP:()=>_,jT:()=>T,mT:()=>$,mv:()=>P,ns:()=>N,pk:()=>w,sI:()=>A,sL:()=>L,tX:()=>E,we:()=>z,x7:()=>I,xZ:()=>O,xx:()=>y});var r=n(27723),s=n(42274),a=n(6463),i=n(80696),o=n(81301),l=n(34164),u=n(75795),c=n(50856);const d=e=>{const t=e.match(/<p>(.*?)<\/p>/g);return t?.length?t[0].replace(/(<([^>]+)>)/gi,""):e.replace(/(<([^>]+)>)/gi,"").replace(/\s+/g," ")},g=(e,t,n="...")=>!e?.length||!t||t<0||e.length<=t?e:e.slice(0,t)+n,h=(e,t,n=100)=>{if("string"!==typeof e||!e.trim())return;if(!k(t))return;const r=document.querySelector(e);r&&setTimeout(()=>{(0,u.createRoot)(r).render(t)},n)},k=e=>e&&e?.$$typeof===Symbol.for("react.element"),p=()=>({surerank_general:"general_settings",surerank_social:"social_settings",surerank_advanced:"advanced_settings"}[new URLSearchParams(window.location.search).get("page")]||"general_settings"),f=(...e)=>(0,c.QP)((0,l.A)(...e)),m=(e,t="value")=>{const n=e?.root?.children[0]?.children;if(!n||!n?.length)return"";let r="";return n.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=[],n="value",r={type:"mention",version:1,data:{},size:"md",by:"label"})=>{const s={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)s.root.children[0].children.push({type:"linebreak",version:1});else if(e?.startsWith("%")&&e?.endsWith("%")){const a=t?.find(t=>t[n]===e.trim());a&&s.root.children[0].children.push({...r,data:{...a}})}else s.root.children[0].children.push({detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1})}),JSON.stringify(s)};function _(e,t=65){const n=e.split("/");let r=`${n.slice(0,3).join("/")} \u203a ${n.slice(3).filter(Boolean).join(" \u203a ")}`;return r.length>t&&(r=r.substring(0,t-3)+"..."),r}const b=e=>{const t=window.location.pathname;return Array.isArray(e)?e.some(e=>t.includes(e)):t.includes(e)},v=(e,t={})=>{if(!e)return;const{delay:n=1e3,retryDelay:r=200,maxRetries:s=5}=t,a=(t=0)=>{const i=document.getElementById(e);i?setTimeout(()=>{i.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},n):t<s&&setTimeout(()=>{a(t+1)},r)};window.requestAnimationFrame(()=>{a()})},y=(e,t)=>{try{return new URL(window.location.href).searchParams.get(e)===t}catch(n){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,s.GP)(new Date(e),t)}catch(n){return(0,r.__)("No Date","surerank")}},x=(e,t=!0)=>{if(isNaN(e))return{from:"",to:""};const n=t?(0,i.R)():(0,o.K)();let r=new Date(n);return r.setDate(n.getDate()-e),r=(0,a.o)(r),{from:r,to:n}},S=(e,t={})=>{const{decimals:n=1,forceDecimals:r=!1}=t;if("number"!==typeof e||isNaN(e))return"0";const s=e<0,a=Math.abs(e);if(a<1e3)return s?`-${a}`:a.toString();const i=[{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"}],o=i.find(({value:e})=>a<1e3*e)||i[i.length-1],l=(a/o.value).toFixed(n);return`${s?"-":""}${r?l:l.replace(/\.?0+$/,"")}${o.suffix}`},L=e=>{const t=new Date(e);return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString()},E=(e,t,n,s="MMM dd, yyyy")=>{if(!e)return"";const a=new Date(e),i=t?new Date(t):null,o=n?new Date(n):null;return isNaN(a.getTime())?(0,r.__)("Invalid Date","surerank"):i&&o?i.getMonth()===o.getMonth()&&i.getFullYear()===o.getFullYear()?C(a,"dd"):i.getFullYear()===o.getFullYear()?C(a,"MMM dd"):C(a,s):C(a,s)},A=e=>{let t,n="pending";const r=e.then(e=>{n="success",t=e},e=>{n="error",t=e});return{read(){if("pending"===n)throw r;if("error"===n)throw t;if("success"===n)return t}}},T=e=>{var t;return e&&"string"===typeof e&&null!==(t=(new DOMParser).parseFromString(e,"text/html").documentElement.textContent)&&void 0!==t?t:e},P=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}},$=e=>e?Object.entries(e).map(([e,t])=>{const n=e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase());return{...t,id:e,title:t?.message||n,data:t?.description,showImages:"image_alt_text"===e}}):[],O=(e,t=[])=>e.filter(Boolean).reduce((e,n)=>(t.includes(n.id)?(n.ignore=!0,e.ignoredChecks.push(n)):(n.ignore=!1,"error"===n.status?e.badChecks.push(n):"warning"===n.status?e.fairChecks.push(n):"suggestion"===n.status?e.suggestionChecks.push(n):"success"===n.status&&e.passedChecks.push(n)),e),{badChecks:[],fairChecks:[],suggestionChecks:[],passedChecks:[],ignoredChecks:[]}),D=(e,t)=>"error"===e?(0,r.sprintf)("%1$s %2$s Detected",t,(0,r._n)("Issue","Issues",t,"surerank")):"warning"===e?(0,r.sprintf)("%1$s %2$s Detected",t,(0,r._n)("Warning","Warnings",t,"surerank")):(0,r.__)("SEO is Optimized","surerank"),N=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"}},I=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"),z=(e,t)=>(e&&"object"===typeof e&&Object.keys(e).forEach(n=>{e[n]&&"object"===typeof e[n]&&(e[n].category=t)}),e)},11936:(e,t,n)=>{n.d(t,{R:()=>s});var r=n(27723);const s=e=>{if(!e||"object"!==typeof e)return(0,r.__)("SureRank Meta Box","surerank");const t="number"===typeof e.error?e.error:0,n="number"===typeof e.warning?e.warning:0;return t>0?(0,r.sprintf)((0,r._n)("%s Issue Detected","%s Issues Detected",t,"surerank"),t):n>0?(0,r.sprintf)((0,r._n)("%s Warning Detected","%s Warnings Detected",n,"surerank"),n):(0,r.__)("SureRank Meta Box","surerank")}},18947:(e,t,n)=>{n.d(t,{SZ:()=>u,_e:()=>d,aS:()=>l,bY:()=>a,cd:()=>c,jU:()=>o});var r=n(27723),s=n(76016);const a=({id:e,title:t,status:n,description:r,data:s,showImages:a})=>({id:e,title:t,status:n,description:r,data:s,showImages:a}),i=async()=>{if(window?.tinymce?.editors?.length)return document.querySelector("#set-post-thumbnail>img");const e=window?.wp?.data?.select("core/editor");if(e&&"function"===typeof e.getEditedPostContent){const r=e.getEditedPostAttribute("featured_media");if(r){var t,n;const e=await new Promise(e=>{const t=wp.media.attachment(r);"function"===typeof t.fetch&&t.fetch().then(t=>e(t)).catch(()=>{e({})})});return{alt:null!==(t=e?.alt)&&void 0!==t?t:"",src:null!==(n=e?.url)&&void 0!==n?n:""}}}},o=async e=>{let t=[];const n=await i();if(n&&t.push(n),t=[...t,...Array.from(e.querySelectorAll("img"))?.filter(e=>e?.src)],0===t.length)return;const s=t.filter(Boolean).filter(e=>!e?.alt?.trim());if(0===s.length)return a({id:"image_alt_text",title:(0,r.__)("All images on this page have alt text attributes.","surerank"),status:"success"});const o=window?.surerank_seo_popup?.image_seo,l=(0,r.__)("One or more images are missing alt text attributes.","surerank");let u=`${l} ${(0,r.__)("You can add them manually or turn on auto-set image title and alt in the settings.","surerank")}`;return o&&(u=`${l} ${(0,r.__)("But don't worry, we will add them automatically for you.","surerank")}`),a({id:"image_alt_text",title:u,status:"suggestion",data:Array.from(new Set(s.map(e=>e.src))),showImages:!0})},l=async e=>{const t=!!await i(),n=e.querySelectorAll("img, figure img, figure picture, figure.is-type-photo").length>0||t,s=e.querySelectorAll("video, figure.is-type-video").length>0;return a(n||s?!n&&s?{id:"media_present",title:(0,r.__)("This page includes video(s) but no images.","surerank"),status:"warning"}:{id:"media_present",title:(0,r.__)("This page includes images or videos to enhance content.","surerank"),status:"success"}:{id:"media_present",title:(0,r.__)("No images or videos found on this page.","surerank"),status:"warning"})},u=e=>{const t=Array.from(e.querySelectorAll("a[href]"));return 0===t.length?a({id:"links_present",title:(0,r.__)("No links found on this page.","surerank"),status:"warning"}):t.length>0?a({id:"links_present",title:(0,r.__)("Links are present on this page.","surerank"),status:"success"}):void 0},c=e=>{const t=e.length,n=(0,r.sprintf)((0,r.__)("Page URL is longer than %s characters and may affect SEO and readability.","surerank"),s.X);return a(t>s.X?{id:"url_length",title:n,status:"warning"}:{id:"url_length",title:(0,r.__)("Page URL is short and SEO-friendly.","surerank"),status:"success"})},d=e=>{const t=Array.from(e.querySelectorAll("h2, h3, h4, h5, h6"));return a(t.length?{id:"h2_subheadings",title:(0,r.__)("Page contains at least one subheading.","surerank"),status:"success"}:{id:"h2_subheadings",title:(0,r.__)("Page does not contain at least one subheading.","surerank"),status:"warning"})}},27723:e=>{e.exports=window.wp.i18n},47143:e=>{e.exports=window.wp.data},51609:e=>{e.exports=window.React},54486:(e,t,n)=>{n.d(t,{F:()=>r,Q:()=>s});const r=(e={})=>{const t=e.badChecks||[],n=e.fairChecks||[],r=e.suggestionChecks||[];let s="success";return t.length>0?s="error":n.length>0?s="warning":r.length>0&&(s="suggestion"),{status:s,counts:{errorAndWarnings:t.length+n.length,success:(e.passedChecks||[]).length,error:t.length,warning:n.length,suggestion:r.length}}},s=(e,t)=>{const n={badChecks:[...e.counts?.error?Array(e.counts.error).fill({status:"error"}):[],...t.counts?.error?Array(t.counts.error).fill({status:"error"}):[]],fairChecks:[...e.counts?.warning?Array(e.counts.warning).fill({status:"warning"}):[],...t.counts?.warning?Array(t.counts.warning).fill({status:"warning"}):[]],suggestionChecks:[...e.counts?.suggestion?Array(e.counts.suggestion).fill({status:"suggestion"}):[],...t.counts?.suggestion?Array(t.counts.suggestion).fill({status:"suggestion"}):[]]};let r="success";return n.badChecks.length>0?r="error":n.fairChecks.length>0?r="warning":n.suggestionChecks.length>0&&(r="suggestion"),{status:r,counts:{errorAndWarnings:n.badChecks.length+n.fairChecks.length,success:n.counts?.success||0,error:n.badChecks.length,warning:n.fairChecks.length,suggestion:n.suggestionChecks.length}}}},61701:(e,t,n)=>{n.d(t,{J:()=>i,R:()=>o});var r=n(9607),s=n(1671),a=n(47143);const i=()=>{(0,a.dispatch)(s.E).updateModalState(!0)},o=e=>`<svg class="${(0,r.cn)(e)}" width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n          <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="white"/>\n        </svg>`},74801:(e,t,n)=>{n.d(t,{OV:()=>h,ep:()=>p,jK:()=>f,jp:()=>k,sv:()=>m});var r=n(51609),s=n(1455),a=n.n(s),i=n(27723),o=n(88029),l=n(60443),u=n(9607),c=n(1671),d=n(84038),g=n(14060);const h=async(e,t,n,r,s,o)=>{const g=r(c.E).getVariables()?.post?.ID?.value||0;e(!0);try{const e=await a()({path:`/surerank/v1/checks/page?post_id=${g}&_t=${Date.now()}`,method:"GET"}),r=(0,u.mT)(e?.checks),s=e?.checks?.all_links||[];t(e=>{const t=new Set(s),n=new Set;return e.brokenLinks.forEach(e=>{t.has(e)&&n.add(e)}),{isChecking:!1,checkedLinks:new Set,brokenLinks:n,allLinks:s}});const o=[...r].filter(e=>"broken_links"!==e.id);n("checks",o),0===s.length?(n("isCheckingLinks",!1),n("linkCheckProgress",{current:0,total:0})):(n("isCheckingLinks",!0),n("linkCheckProgress",{current:0,total:s.length}),await(async(e,t,n,r,s,a,o)=>{const l=n.length,u=[];for(const i of e){let e=!1;try{(await(0,d.Q7)({postId:t,userAgent:window.navigator.userAgent,url:i,allLinks:n})).success||(e=!0)}catch{e=!0}r(t=>{const n=new Set(t.checkedLinks),r=new Set(t.brokenLinks);return n.add(i),e&&(r.add(i),u.push(i)),s("linkCheckProgress",{current:n.size,total:l}),{...t,checkedLinks:n,brokenLinks:r}})}r(e=>{const t=[...o].filter(e=>"broken_links"!==e.id);return u.length>0&&t.push({id:"broken_links",title:(0,i.__)("One or more broken links found on the page.","surerank"),status:"error",data:[(0,i.__)("These broken links were found on the page:","surerank"),{list:[...u]}]}),s("checks",t),s("isCheckingLinks",!1),s("linkCheckProgress",{current:l,total:l}),{...e,isChecking:!1}})})(s,g,s,t,n,0,o))}catch(h){l.o.error(h.message),t({isChecking:!1,checkedLinks:new Set,brokenLinks:new Set,allLinks:[]}),n("isCheckingLinks",!1),n("linkCheckProgress",{current:0,total:0})}finally{e(!1)}},k=()=>"undefined"!==typeof window&&"undefined"!==typeof window.elementor&&window.elementor.hasOwnProperty("elements"),p=()=>!!surerank_globals?.is_bricks,f=()=>p()||k(),m=({isRefreshing:e,isChecking:t,onClick:n})=>(0,r.createElement)(o.A,{variant:"outline",size:"xs",onClick:n,disabled:e||t,icon:(0,r.createElement)(g.A,{className:(0,u.cn)("size-4",(e||t)&&"animate-spin")})},(0,i.__)(e||t?"Refreshing":"Refresh","surerank"))},75795:e=>{e.exports=window.ReactDOM},76016:(e,t,n)=>{n.d(t,{$K:()=>f,Et:()=>v,Jj:()=>C,KT:()=>x,Op:()=>k,Rw:()=>S,UM:()=>w,X:()=>b,dc:()=>L,de:()=>m,qt:()=>_,vr:()=>p,x8:()=>y});var r,s,a,i,o,l,u,c,d,g=n(51609),h=n(27723);const k=null!==(r=window?.surerank_globals?.input_variable_suggestions)&&void 0!==r?r:null,p=[{id:"post_no_index",value:"no",label:(0,h.__)("No index","surerank"),description:(0,h.__)("Prevents search engines from listing your page in search results.","surerank")},{id:"post_no_follow",value:"no",label:(0,h.__)("No follow","surerank"),description:(0,h.__)("Tells search engines not to follow any links on your page.","surerank")},{id:"post_no_archive",value:"no",label:(0,h.__)("No archive","surerank"),description:(0,h.__)("Blocks search engines from storing a cached version of your page.","surerank")}],f=()=>(0,h.__)("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"),m=null!==(s=window?.surerank_globals?.wp_dashboard_url)&&void 0!==s?s:"",w=null!==(a=window?.surerank_globals?.description_length)&&void 0!==a?a:160,_=null!==(i=window?.surerank_globals?.title_length)&&void 0!==i?i:60,b=null!==(o=window?.surerank_globals?.url_length)&&void 0!==o?o:90,v=()=>{var e;return(0,g.createElement)(g.Fragment,null,(0,h.__)("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,g.createElement)("div",{className:"mt-2"},(0,g.createElement)("strong",null,(0,h.__)("Site Icon: ","surerank")),(0,g.createElement)("span",null,(0,h.__)("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,g.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,h.__)("Change Here","surerank")))))},y=500,C=null!==(l=window?.surerank_globals?.enable_page_level_seo)&&void 0!==l&&l,x=null!==(u=window?.surerank_globals?.enable_google_console)&&void 0!==u&&u,S=null!==(c=window?.surerank_globals?.enable_schemas)&&void 0!==c&&c,L=null!==(d=window?.surerank_globals?.enable_migration)&&void 0!==d&&d},84038:(e,t,n)=>{n.d(t,{Q7:()=>d,Tq:()=>u,aO:()=>c});var r=n(27723),s=n(18947),a=n(1455),i=n.n(a);const o=new Map,l=e=>{if(!e?.length)return[];const t=[];for(const n of e){const e=o.get(n);e?.broken&&t.push({url:n,...e})}return t},u=async(e,t,n=window.navigator.userAgent,a)=>{if(!e||!t)return;const i=(e=>{if(!e)return[];const t=Array.from(e.querySelectorAll("a[href]")).map(e=>{if("a"===e.tagName.toLowerCase()){let t=e.getAttribute("href");if(!t.startsWith("http")){const e=(t.startsWith("/")?"":"/")+t;t=`${surerank_globals.site_url}${e}`}return t}return null});return Array.from(new Set(t.filter(e=>e&&!e.startsWith("#")&&!e.toLowerCase().startsWith("javascript:"))))})(e);if(!i.length)return;const u=await(async({links:e,postId:t,userAgent:n,onProgress:s})=>{if((e=>{if(!e?.length)return o.clear();Array.from(o.keys()).forEach(t=>{e.includes(t)||o.delete(t)})})(e),!e.length)return[];const a=e.filter(e=>!o.has(e)),i=l(e);if(0===a.length)return i;const u=e.length;let c=e.length-a.length;"function"===typeof s&&(s("isCheckingLinks",!0),s("linkCheckProgress",{current:c,total:u}));for(const l of a){try{const r=await d({postId:t,userAgent:n,url:l,allLinks:e}),{success:s,...a}=r;o.set(l,{broken:!s,...a})}catch(k){var g,h;o.set(l,{broken:!0,status:null!==(g=null!==(h=k?.data?.status)&&void 0!==h?h:k?.code)&&void 0!==g?g:"error",details:k.message,message:(0,r.__)("Failed to check link","surerank")})}c++,"function"===typeof s&&s("linkCheckProgress",{current:c,total:u}),c<u&&await new Promise(e=>setTimeout(e,100))}return s("isCheckingLinks",!1),l(e)})({links:i,postId:t,userAgent:n,onProgress:a});return(0,s.bY)(u.length?{id:"broken_links",title:(0,r.__)("One or more broken links found on the page.","surerank"),status:"error",data:u}:{id:"broken_links",title:(0,r.__)("No broken links found on the page.","surerank"),status:"success",description:[]})},c=e=>(0,s.bY)(e?{id:"canonical_url",title:(0,r.__)("Canonical tag is present on the page.","surerank"),status:"success"}:{id:"canonical_url",title:(0,r.__)("Canonical tag is not present on the page.","surerank"),status:"warning"}),d=async({postId:e,userAgent:t,url:n,allLinks:r})=>await i()({path:"/surerank/v1/checks/broken-link",method:"POST",data:{post_id:e,user_agent:t,url:n,urls:r}})},90742:(e,t,n)=>{var r=n(9607),s=n(1671),a=n(47143),i=n(27723),o=n(54486),l=n(74801),u=n(11936),c=n(61701),d=n(76016);const g=(e,t)=>{if(!e||!t)return;const n=document.createElement("div");n.className="surerank-root";const s=document.createElement("div");s.className=(0,r.cn)("surerank-tooltip","absolute","bg-gray-700","text-white","px-2","py-0.5","rounded","text-[0.6875rem]","font-medium","leading-tight","tracking-wide","invisible","opacity-0","pointer-events-none","origin-top","z-[9999]","top-0","left-0"),s.textContent=t;const a=document.createElement("div");a.className=(0,r.cn)("absolute","-top-[0.4375rem]","left-1/2","w-0","h-0","border-solid","border-l-[0.375rem]","border-r-[0.375rem]","border-b-[0.375rem]","border-l-transparent","border-r-transparent","border-t-transparent","border-b-gray-700","translate-x-[-50%]","bg-transparent"),s.appendChild(a),n.appendChild(s),document.body.appendChild(n);const i=()=>{(()=>{const t=e.getBoundingClientRect(),n=t.left+t.width/2;s.style.top=t.bottom+16+"px",s.style.left=n+"px"})(),s.classList.remove("invisible","opacity-0","surerank-tooltip--hidden"),s.classList.add("visible","opacity-100","surerank-tooltip--visible")};let o,l,u;const c=()=>{clearTimeout(u),s.classList.remove("opacity-100"),s.classList.add("opacity-0"),u=setTimeout(()=>{s.classList.remove("visible"),s.classList.add("invisible","surerank-tooltip--hidden")},250)},d=()=>{clearTimeout(l),o=setTimeout(i,200)},g=()=>{clearTimeout(o),l=setTimeout(c,0)},h=()=>{clearTimeout(l),i()},k=()=>{clearTimeout(o),c()};return e.addEventListener("mouseenter",d),e.addEventListener("mouseleave",g),e.addEventListener("focus",h),e.addEventListener("blur",k),()=>{clearTimeout(o),clearTimeout(l),clearTimeout(u),e.removeEventListener("mouseenter",d),e.removeEventListener("mouseleave",g),e.removeEventListener("focus",h),e.removeEventListener("blur",k),n.parentNode&&n.parentNode.removeChild(n)}},h=()=>{try{const e=(0,a.select)(s.E);if(!e||"function"!==typeof e.getPageSeoChecks)return{status:null,initializing:!0,counts:{errorAndWarnings:0,error:0,warning:0}};const t=e.getPageSeoChecks()||{},{categorizedChecks:n={},initializing:r=!0}=t,{status:i,counts:l}=(0,o.F)(n);return r&&(0,a.dispatch)(s.E).setPageSeoCheck("initializing",!1),{status:i,initializing:r,counts:l}}catch(e){return{status:null,initializing:!1,counts:{errorAndWarnings:0,error:0,warning:0}}}};!function(e){let t=null,n=null,o=null,k={isChecking:!1,checkedLinks:new Set,brokenLinks:new Set,allLinks:[]},p=!1;const f=e=>{k="function"===typeof e?e(k):e},m=()=>{const n=e("#elementor-editor-wrapper-v2 header .MuiGrid-root:nth-child(3) .MuiStack-root"),m=n.last(),w=m.find("button").attr("class"),_=m.find("svg").attr("class"),b=e('<div class="surerank-root"></div>'),v=e('<div class="relative"></div>'),y=e(`<button type="button" class="${w}" aria-label="${(0,i.__)("Open SureRank SEO","surerank")}" tabindex="0">\n\t\t\t\t${(0,c.R)(_)}\n\t\t\t</button>`).on("click",c.J);v.append(y),b.append(v),n.children().first().after(b);const C=()=>{v.find(".surerank-status-indicator").remove();const t=(e=>{const{status:t,counts:n}=h();if(!t||!d.Jj)return null;const s=(0,r.ns)(t),a=(0,r.x7)(n.errorAndWarnings),i=e("<div></div>");return i.addClass((0,r.cn)("absolute top-1.5 right-1.5 size-2 rounded-full z-10 duration-200",s)),i.attr("aria-label",a),i.attr("title",a),i})(e);t&&(t.addClass("surerank-status-indicator"),v.append(t))};C(),p||(async()=>{const e=(0,a.dispatch)(s.E),t=(0,a.select)(s.E);if(t&&e&&d.Jj)try{p=!0;const n=t.getPageSeoChecks()||{};await(0,l.OV)(()=>{},f,e.setPageSeoCheck,a.select,n,k)}catch(n){}})(),o=wp?.data?.subscribe?.(()=>{C(),(()=>{t&&t();const{counts:e}=h();t=g(y[0],(0,u.R)(e))})()});const{counts:x}=h();t=g(y[0],(0,u.R)(x))};e(window).on("load",function(){(()=>{let e=0,t=null,n=!1;const r=()=>{t&&"function"===typeof t&&(t(),t=null)},i=()=>{if(!n)try{const o=(0,a.select)(s.E);if(!o||"function"!==typeof o.getVariables)return void(e<50&&(e++,setTimeout(i,100)));o.getVariables()?(n=!0,r(),m()):t||(t=wp?.data?.subscribe?.(()=>{try{const e=(0,a.select)(s.E)?.getVariables();e&&!n&&(n=!0,r(),m())}catch(e){}}),setTimeout(()=>{if(!n){const e=(0,a.select)(s.E)?.getVariables();e&&(n=!0,r(),m())}},3e3))}catch(o){e<50&&(e++,setTimeout(i,100))}};i()})()}),e(window).on("beforeunload",function(){t&&(t(),t=null),n&&(clearInterval(n),n=null),o&&"function"===typeof o&&(o(),o=null)})}(jQuery)}},e=>{e.O(0,[795,167,392,115,85,359,620,691,426,254,440,584,418,555,770,427,658,973,43,732,599,811,160,683,408,40,703,634,61],()=>e(e.s=90742)),e.O()}]);