Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../js/dist
File: elementor.js
justify-content: center;
[500] Fix | Delete
}
[501] Fix | Delete
`,hl=Hs().div`
[502] Fix | Delete
display: flex;
[503] Fix | Delete
align-items: center;
[504] Fix | Delete
& > a {
[505] Fix | Delete
box-sizing: border-box;
[506] Fix | Delete
}
[507] Fix | Delete
`,gl=Hs().button`
[508] Fix | Delete
background: none;
[509] Fix | Delete
color: inherit;
[510] Fix | Delete
border: none;
[511] Fix | Delete
padding: 0;
[512] Fix | Delete
font: inherit;
[513] Fix | Delete
cursor: pointer;
[514] Fix | Delete
outline: inherit;
[515] Fix | Delete
display: flex;
[516] Fix | Delete
align-items: center;
[517] Fix | Delete
`,yl=Hs().tr`
[518] Fix | Delete
background-color: ${e=>e.isEnabled?"#FFFFFF":"#F9F9F9"} !important;
[519] Fix | Delete
`;function fl(e){return Math.round(100*e)}function wl({chartData:e}){if((0,J.isEmpty)(e)||(0,J.isEmpty)(e.position))return"?";const t=function(e){return Array.from({length:e.position.history.length},((e,t)=>t+1)).map((e=>(0,p.sprintf)((0,p._n)("%d day","%d days",e,"wordpress-seo"),e)))}(e),s=e.position.history.map(((e,t)=>({x:t,y:101-e.value})));return(0,i.createElement)(xi,{width:66,height:24,data:s,strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc",mapChartDataToTableData:fl,dataTableCaption:(0,p.__)("Keyphrase position in the last 90 days on a scale from 0 to 100.","wordpress-seo"),dataTableHeaderLabels:t})}wl.propTypes={chartData:h().object},wl.defaultProps={chartData:{}};const bl=({rowData:e})=>{var t;if(null==e||null===(t=e.position)||void 0===t||!t.change)return(0,i.createElement)(wl,{chartData:e});const s=e.position.change<0;return(0,i.createElement)(d.Fragment,null,(0,i.createElement)(wl,{chartData:e}),(0,i.createElement)(dl,{isImproving:s},Math.abs(e.position.change)),(0,i.createElement)(cl,{icon:"caret-right",color:s?"#69AB56":"#DC3332",size:"14px",isImproving:s}))};function El(e){var t;const{keyphrase:s,rowData:a,onTrackKeyphrase:n,onUntrackKeyphrase:r,isFocusKeyphrase:o,isDisabled:l,isLoading:c,isSelected:u,onSelectKeyphrases:m}=e,h=!(0,J.isEmpty)(a),g=!(0,J.isEmpty)(null==a||null===(t=a.position)||void 0===t?void 0:t.history),y=(0,d.useCallback)((()=>{l||(h?r(s,a.id):n(s))}),[s,n,r,h,a,l]),f=(0,d.useCallback)((()=>{m((e=>u?e.filter((e=>e!==s)):e.concat(s)))}),[m,u,s]);return(0,i.createElement)(yl,{isEnabled:h},(0,i.createElement)(pl,null,g&&(0,i.createElement)(Bs.Checkbox,{id:"select-"+s,onChange:f,checked:u,label:""})),(0,i.createElement)(ul,null,s,o&&(0,i.createElement)("span",null,"*")),function(e){const{rowData:t,websiteId:s,keyphrase:a,onSelectKeyphrases:n}=e,r=(0,d.useCallback)((()=>{n([a])}),[n,a]),o=!(0,J.isEmpty)(t),l=t&&t.updated_at&&$i()(t.updated_at)>=$i()().subtract(7,"days"),c=t?(0,p.sprintf)("https://app.wincher.com/websites/%s/keywords?serp=%s&utm_medium=plugin&utm_source=yoast&referer=yoast&partner=yoast",s,t.id):null;return o?l?(0,i.createElement)(d.Fragment,null,(0,i.createElement)("td",null,(0,i.createElement)(hl,null,function(e){return!e||!e.position||e.position.value>100?"> 100":e.position.value}(t),(0,i.createElement)(Bs.ButtonStyledLink,{variant:"secondary",href:c,style:{height:28,marginLeft:12},rel:"noopener",target:"_blank"},(0,p.__)("View","wordpress-seo")))),(0,i.createElement)("td",{className:"yoast-table--nopadding"},(0,i.createElement)(gl,{type:"button",onClick:r},(0,i.createElement)(bl,{rowData:t}))),(0,i.createElement)("td",null,(u=t.updated_at,$i()(u).fromNow()))):(0,i.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,i.createElement)(ll,null)):(0,i.createElement)("td",{className:"yoast-table--nopadding",colSpan:"3"},(0,i.createElement)("i",null,(0,p.__)("Activate tracking to show the ranking position","wordpress-seo")));var u}(e),(0,i.createElement)(ml,null,function({keyphrase:e,isEnabled:t,toggleAction:s,isLoading:a}){return a?(0,i.createElement)(Bs.SvgIcon,{icon:"loading-spinner"}):(0,i.createElement)(Bs.Toggle,{id:`toggle-keyphrase-tracking-${e}`,className:"wincher-toggle",isEnabled:t,onSetToggleState:s,showToggleStateLabel:!1})}({keyphrase:s,isEnabled:h,toggleAction:y,isLoading:c})))}bl.propTypes={rowData:h().object},El.propTypes={rowData:h().object,keyphrase:h().string.isRequired,onTrackKeyphrase:h().func,onUntrackKeyphrase:h().func,isFocusKeyphrase:h().bool,isDisabled:h().bool,isLoading:h().bool,websiteId:h().string,isSelected:h().bool.isRequired,onSelectKeyphrases:h().func.isRequired},El.defaultProps={rowData:{},onTrackKeyphrase:()=>{},onUntrackKeyphrase:()=>{},isFocusKeyphrase:!1,isDisabled:!1,isLoading:!1,websiteId:""};const vl=(0,_e.makeOutboundLink)(),_l=Hs().span`
[520] Fix | Delete
display: block;
[521] Fix | Delete
font-style: italic;
[522] Fix | Delete
[523] Fix | Delete
@media (min-width: 782px) {
[524] Fix | Delete
display: inline;
[525] Fix | Delete
position: absolute;
[526] Fix | Delete
${(0,_e.getDirectionalStyle)("right","left")}: 8px;
[527] Fix | Delete
}
[528] Fix | Delete
`,kl=Hs().div`
[529] Fix | Delete
width: 100%;
[530] Fix | Delete
overflow-y: auto;
[531] Fix | Delete
`,xl=Hs().th`
[532] Fix | Delete
pointer-events: ${e=>e.isDisabled?"none":"initial"};
[533] Fix | Delete
padding-right: 0 !important;
[534] Fix | Delete
[535] Fix | Delete
& > div {
[536] Fix | Delete
margin: 0px;
[537] Fix | Delete
}
[538] Fix | Delete
`,Sl=Hs().th`
[539] Fix | Delete
padding-left: 2px !important;
[540] Fix | Delete
`,Tl=e=>{const t=(0,d.useRef)();return(0,d.useEffect)((()=>{t.current=e})),t.current},Rl=(0,J.debounce)((async function(e=null,t=null,s=null,a){return await ji({path:"yoast/v1/wincher/keyphrases",method:"POST",data:{keyphrases:e,permalink:s,startAt:t},signal:a})}),500,{leading:!0}),Cl=e=>{const{addTrackedKeyphrase:t,isLoggedIn:s,keyphrases:a,permalink:n,removeTrackedKeyphrase:r,setKeyphraseLimitReached:o,setRequestFailed:l,setRequestSucceeded:c,setTrackedKeyphrases:u,setHasTrackedAll:m,trackAll:h,trackedKeyphrases:g,isNewlyAuthenticated:y,websiteId:f,focusKeyphrase:w,newRequest:b,startAt:E,selectedKeyphrases:v,onSelectKeyphrases:_}=e,k=(0,d.useRef)(),x=(0,d.useRef)(),S=(0,d.useRef)(!1),[T,R]=(0,d.useState)([]),C=(0,d.useCallback)((e=>{const t=e.toLowerCase();return g&&!(0,J.isEmpty)(g)&&g.hasOwnProperty(t)?g[t]:null}),[g]),I=(0,d.useMemo)((()=>async()=>{await zi((()=>(x.current&&x.current.abort(),x.current="undefined"==typeof AbortController?null:new AbortController,Rl(a,E,n,x.current.signal))),(e=>{c(e),u(e.results)}),(e=>{l(e)}))}),[c,l,u,a,n,E]),L=(0,d.useCallback)((async e=>{const s=(Array.isArray(e)?e:[e]).map((e=>e.toLowerCase()));R((e=>[...e,...s])),await zi((()=>Vi(s)),(e=>{c(e),t(e.results),I()}),(e=>{400===e.status&&e.limit&&o(e.limit),l(e)}),201),R((e=>(0,J.without)(e,...s)))}),[c,l,o,t,I]),P=(0,d.useCallback)((async(e,t)=>{e=e.toLowerCase(),R((t=>[...t,e])),await zi((()=>async function(e){return await ji({path:"yoast/v1/wincher/keyphrases/untrack",method:"DELETE",data:{keyphraseID:e}})}(t)),(t=>{c(t),r(e)}),(e=>{l(e)})),R((t=>(0,J.without)(t,e)))}),[c,r,l]),A=(0,d.useCallback)((async e=>{b(),await L(e)}),[b,L]),O=Tl(n),M=Tl(a),D=Tl(E),F=n&&E;(0,d.useEffect)((()=>{s&&F&&(n!==O||(0,J.difference)(a,M).length||E!==D)&&I()}),[s,n,O,a,M,I,F,E,D]),(0,d.useEffect)((()=>{if(s&&h&&null!==g){const e=a.filter((e=>!C(e)));e.length&&L(e),m()}}),[s,h,g,L,m,C,a]),(0,d.useEffect)((()=>{y&&!S.current&&(I(),S.current=!0)}),[y,I]),(0,d.useEffect)((()=>{if(s&&!(0,J.isEmpty)(g))return(0,J.filter)(g,(e=>(0,J.isEmpty)(e.updated_at))).length>0&&(k.current=setInterval((()=>{I()}),1e4)),()=>{clearInterval(k.current)}}),[s,g,I]);const N=s&&null===g,q=(0,d.useMemo)((()=>(0,J.isEmpty)(g)?[]:Object.values(g).filter((e=>{var t;return!(0,J.isEmpty)(null==e||null===(t=e.position)||void 0===t?void 0:t.history)})).map((e=>e.keyword))),[g]),U=(0,d.useMemo)((()=>v.length>0&&q.length>0&&q.every((e=>v.includes(e)))),[v,q]),B=(0,d.useCallback)((()=>{_(U?[]:q)}),[_,U,q]),$=(0,d.useMemo)((()=>(0,J.orderBy)(a,[e=>Object.values(g||{}).map((e=>e.keyword)).includes(e)],["desc"])),[a,g]);return a&&!(0,J.isEmpty)(a)&&(0,i.createElement)(d.Fragment,null,(0,i.createElement)(kl,null,(0,i.createElement)("table",{className:"yoast yoast-table"},(0,i.createElement)("thead",null,(0,i.createElement)("tr",null,(0,i.createElement)(xl,{isDisabled:0===q.length},(0,i.createElement)(Bs.Checkbox,{id:"select-all",onChange:B,checked:U,label:""})),(0,i.createElement)(Sl,{scope:"col",abbr:(0,p.__)("Keyphrase","wordpress-seo")},(0,p.__)("Keyphrase","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Position","wordpress-seo")},(0,p.__)("Position","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Position over time","wordpress-seo")},(0,p.__)("Position over time","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Last updated","wordpress-seo")},(0,p.__)("Last updated","wordpress-seo")),(0,i.createElement)("th",{scope:"col",abbr:(0,p.__)("Tracking","wordpress-seo")},(0,p.__)("Tracking","wordpress-seo")))),(0,i.createElement)("tbody",null,$.map(((e,t)=>(0,i.createElement)(El,{key:`trackable-keyphrase-${t}`,keyphrase:e,onTrackKeyphrase:A,onUntrackKeyphrase:P,rowData:C(e),isFocusKeyphrase:e===w.trim().toLowerCase(),websiteId:f,isDisabled:!s,isLoading:N||T.indexOf(e.toLowerCase())>=0,isSelected:v.includes(e),onSelectKeyphrases:_})))))),(0,i.createElement)("p",{style:{marginBottom:0,position:"relative"}},(0,i.createElement)(vl,{href:wpseoAdminGlobalL10n["links.wincher.login"]},(0,p.sprintf)(/* translators: %s expands to Wincher */
[541] Fix | Delete
(0,p.__)("Get more insights over at %s","wordpress-seo"),"Wincher")),(0,i.createElement)(_l,null,(0,p.__)("* focus keyphrase","wordpress-seo"))))};Cl.propTypes={addTrackedKeyphrase:h().func.isRequired,isLoggedIn:h().bool,isNewlyAuthenticated:h().bool,keyphrases:h().array,newRequest:h().func.isRequired,removeTrackedKeyphrase:h().func.isRequired,setRequestFailed:h().func.isRequired,setKeyphraseLimitReached:h().func.isRequired,setRequestSucceeded:h().func.isRequired,setTrackedKeyphrases:h().func.isRequired,setHasTrackedAll:h().func.isRequired,trackAll:h().bool,trackedKeyphrases:h().object,websiteId:h().string,permalink:h().string.isRequired,focusKeyphrase:h().string,startAt:h().string,selectedKeyphrases:h().arrayOf(h().string).isRequired,onSelectKeyphrases:h().func.isRequired},Cl.defaultProps={isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],trackAll:!1,websiteId:"",focusKeyphrase:""};const Il=Cl,Ll=(0,Os.compose)([(0,r.withSelect)((e=>{const{getWincherWebsiteId:t,getWincherTrackableKeyphrases:s,getWincherLoginStatus:a,getWincherPermalink:n,getFocusKeyphrase:r,isWincherNewlyAuthenticated:o,shouldWincherTrackAll:i}=e("yoast-seo/editor");return{focusKeyphrase:r(),keyphrases:s(),isLoggedIn:a(),trackAll:i(),websiteId:t(),isNewlyAuthenticated:o(),permalink:n()}})),(0,r.withDispatch)((e=>{const{setWincherNewRequest:t,setWincherRequestSucceeded:s,setWincherRequestFailed:a,setWincherSetKeyphraseLimitReached:n,setWincherTrackedKeyphrases:r,setWincherTrackingForKeyphrase:o,setWincherTrackAllKeyphrases:i,unsetWincherTrackingForKeyphrase:l}=e("yoast-seo/editor");return{newRequest:()=>{t()},setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{a(e)},setKeyphraseLimitReached:e=>{n(e)},addTrackedKeyphrase:e=>{o(e)},removeTrackedKeyphrase:e=>{l(e)},setTrackedKeyphrases:e=>{r(e)},setHasTrackedAll:()=>{i(!1)}}}))])(Il),Pl=(0,_e.makeOutboundLink)(),Al=(0,_e.makeOutboundLink)(),Ol=()=>{const e=(0,p.sprintf)((0,p.__)(/* translators: %1$s expands to a link to Wincher, %2$s expands to a link to the keyphrase tracking article on Yoast.com */
[542] Fix | Delete
"With %1$s you can track the ranking position of your page in the search results based on your keyphrase(s). %2$s","wordpress-seo"),"{{wincherLink/}}","{{wincherReadMoreLink/}}");return(0,i.createElement)("p",null,(0,zo.Z)({mixedString:e,components:{wincherLink:(0,i.createElement)(Pl,{href:wpseoAdminGlobalL10n["links.wincher.website"]},"Wincher"),wincherReadMoreLink:(0,i.createElement)(Al,{href:wpseoAdminL10n["shortlinks.wincher.seo_performance"]},(0,p.__)("Read more about keyphrase tracking with Wincher","wordpress-seo"))}}))},Ml=()=>(0,i.createElement)(Bs.Alert,{type:"error"},(0,p.__)("No keyphrase has been set. Please set a keyphrase first.","wordpress-seo")),Dl=()=>(0,i.createElement)(Bs.Alert,{type:"info"},(0,p.sprintf)(/* translators: %s: Expands to "Wincher". */
[543] Fix | Delete
(0,p.__)("Automatic tracking of keyphrases is enabled. Your keyphrase(s) will automatically be tracked by %s when you publish your post.","wordpress-seo"),"Wincher"));class Fl{constructor(e,t={},s={}){this.url=e,this.origin=new URL(e).origin,this.eventHandlers=Object.assign({success:{type:"",callback:()=>{}},error:{type:"",callback:()=>{}}},t),this.options=Object.assign({height:570,width:340,title:""},s),this.popup=null,this.createPopup=this.createPopup.bind(this),this.messageHandler=this.messageHandler.bind(this),this.getPopup=this.getPopup.bind(this)}createPopup(){const{height:e,width:t,title:s}=this.options,a=["top="+(window.top.outerHeight/2+window.top.screenY-e/2),"left="+(window.top.outerWidth/2+window.top.screenX-t/2),"width="+t,"height="+e,"resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(this.url,s,a.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.messageHandler,!1)}async messageHandler(e){const{data:t,source:s,origin:a}=e;a===this.origin&&this.popup===s&&(t.type===this.eventHandlers.success.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.success.callback(t)),t.type===this.eventHandlers.error.type&&(this.popup.close(),window.removeEventListener("message",this.messageHandler,!1),await this.eventHandlers.error.callback(t)))}getPopup(){return this.popup}isClosed(){return!this.popup||this.popup.closed}focus(){this.isClosed()||this.popup.focus()}}const Nl=e=>{const t=(0,p.sprintf)(/* translators: %s expands to a link to open the Wincher login popup. */
[544] Fix | Delete
(0,p.__)("It seems like something went wrong when retrieving your website's data. Please %s and try again.","wordpress-seo"),"{{reconnectToWincher/}}","Wincher");return(0,i.createElement)(Bs.Alert,{type:"error",className:e.className},(0,zo.Z)({mixedString:t,components:{reconnectToWincher:(0,i.createElement)("a",{href:"#",onClick:t=>{t.preventDefault(),e.onReconnect()}},(0,p.sprintf)(/* translators: %s : Expands to "Wincher". */
[545] Fix | Delete
(0,p.__)("reconnect to %s","wordpress-seo"),"Wincher"))}}))};Nl.propTypes={onReconnect:h().func.isRequired,className:h().string},Nl.defaultProps={className:""};const ql=Nl,Ul=()=>(0,i.createElement)(Bs.Alert,{type:"error"},(0,p.__)("Before you can track your SEO performance make sure to set either the post’s title and save it as a draft or manually set the post’s slug.","wordpress-seo")),Bl=window.yoast["chart.js"],$l="label";function Wl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Kl(e,t){e.labels=t}function Hl(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$l;const a=[];e.datasets=t.map((t=>{const n=e.datasets.find((e=>e[s]===t[s]));return n&&t.data&&!a.includes(n)?(a.push(n),Object.assign(n,t),n):{...t}}))}function Yl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$l;const s={labels:[],datasets:[]};return Kl(s,e.labels),Hl(s,e.datasets,t),s}function zl(e,t){const{height:s=150,width:a=300,redraw:n=!1,datasetIdKey:r,type:o,data:l,options:c,plugins:d=[],fallbackContent:p,updateMode:u,...m}=e,h=(0,i.useRef)(null),g=(0,i.useRef)(),y=()=>{h.current&&(g.current=new Bl.Chart(h.current,{type:o,data:Yl(l,r),options:c&&{...c},plugins:d}),Wl(t,g.current))},f=()=>{Wl(t,null),g.current&&(g.current.destroy(),g.current=null)};return(0,i.useEffect)((()=>{!n&&g.current&&c&&function(e,t){const s=e.options;s&&t&&Object.assign(s,t)}(g.current,c)}),[n,c]),(0,i.useEffect)((()=>{!n&&g.current&&Kl(g.current.config.data,l.labels)}),[n,l.labels]),(0,i.useEffect)((()=>{!n&&g.current&&l.datasets&&Hl(g.current.config.data,l.datasets,r)}),[n,l.datasets]),(0,i.useEffect)((()=>{g.current&&(n?(f(),setTimeout(y)):g.current.update(u))}),[n,c,l.labels,l.datasets,u]),(0,i.useEffect)((()=>{g.current&&(f(),setTimeout(y))}),[o]),(0,i.useEffect)((()=>(y(),()=>f())),[]),i.createElement("canvas",Object.assign({ref:h,role:"img",height:s,width:a},m),p)}const jl=(0,i.forwardRef)(zl);function Vl(e,t){return Bl.Chart.register(t),(0,i.forwardRef)(((t,s)=>i.createElement(jl,Object.assign({},t,{ref:s,type:e}))))}const Gl=Vl("line",Bl.LineController),Zl={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Bl._adapters._date.override("function"==typeof $i()?{_id:"moment",formats:function(){return Zl},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=$i()(e,t):e instanceof $i()||(e=$i()(e)),e.isValid()?e.valueOf():null},format:function(e,t){return $i()(e).format(t)},add:function(e,t,s){return $i()(e).add(t,s).valueOf()},diff:function(e,t,s){return $i()(e).diff($i()(t),s)},startOf:function(e,t,s){return e=$i()(e),"isoWeek"===t?(s=Math.trunc(Math.min(Math.max(0,s),6)),e.isoWeekday(s).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return $i()(e).endOf(t).valueOf()}}:{}),Math.PI,Number.POSITIVE_INFINITY,Math.log10,Math.sign,"undefined"==typeof window||window.requestAnimationFrame,new Map,Object.create(null),Object.create(null),Number.EPSILON;const Ql=["top","right","bottom","left"];function Xl(e,t,s){const a={};s=s?"-"+s:"";for(let n=0;n<4;n++){const r=Ql[n];a[r]=parseFloat(e[t+"-"+r+s])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}!function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}(),Bl.Chart.register(Bl.CategoryScale,Bl.LineController,Bl.LineElement,Bl.PointElement,Bl.LinearScale,Bl.TimeScale,Bl.Legend,Bl.Tooltip);const Jl=["#ff983b","#ffa3f7","#3798ff","#ff3b3b","#acce81","#b51751","#3949ab","#26c6da","#ccb800","#de66ff","#4db6ac","#ffab91","#45f5f1","#77f210","#90a4ae","#ffd54f","#006b5e","#8ec7d2","#b1887c","#cc9300"];function ec({datasets:e,isChartShown:t,keyphrases:s}){if(!t)return null;const a=(0,d.useMemo)((()=>Object.fromEntries([...s].sort().map(((e,t)=>[e,Jl[t%Jl.length]])))),[s]),n=e.map((e=>{const t=a[e.label];return{...e,data:e.data.map((({datetime:e,value:t})=>({x:e,y:t}))),lineTension:0,pointRadius:1,pointHoverRadius:4,borderWidth:2,pointHitRadius:6,backgroundColor:t,borderColor:t}})).filter((e=>!1!==e.selected));return(0,i.createElement)(Gl,{height:100,data:{datasets:n},options:{plugins:{legend:{display:!0,position:"bottom",labels:{color:"black",usePointStyle:!0,boxHeight:7,boxWidth:7},onClick:J.noop},tooltip:{enabled:!0,callbacks:{title:e=>$i()(e[0].raw.x).utc().format("YYYY-MM-DD")},titleAlign:"center",mode:"xPoint",position:"nearest",usePointStyle:!0,boxHeight:7,boxWidth:7,boxPadding:2}},scales:{x:{bounds:"ticks",type:"time",time:{unit:"day",minUnit:"day"},grid:{display:!1},ticks:{autoSkipPadding:50,maxRotation:0,color:"black"}},y:{bounds:"ticks",offset:!0,reverse:!0,ticks:{precision:0,color:"black"},max:101}}}})}Bl.Interaction.modes.xPoint=(e,t,s,a)=>{const n=function(e,t){if("native"in e)return e;const{canvas:s,currentDevicePixelRatio:a}=t,n=(m=s).ownerDocument.defaultView.getComputedStyle(m,null),r="border-box"===n.boxSizing,o=Xl(n,"padding"),i=Xl(n,"border","width"),{x:l,y:c,box:d}=function(e,t){const s=e.touches,a=s&&s.length?s[0]:e,{offsetX:n,offsetY:r}=a;let o,i,l=!1;if(((e,t,s)=>(e>0||t>0)&&(!s||!s.shadowRoot))(n,r,e.target))o=n,i=r;else{const e=t.getBoundingClientRect();o=a.clientX-e.left,i=a.clientY-e.top,l=!0}return{x:o,y:i,box:l}}(e,s),p=o.left+(d&&i.left),u=o.top+(d&&i.top);var m;let{width:h,height:g}=t;return r&&(h-=o.width+i.width,g-=o.height+i.height),{x:Math.round((l-p)/h*s.width/a),y:Math.round((c-u)/g*s.height/a)}}(t,e);let r=[];if(Bl.Interaction.evaluateInteractionItems(e,"x",n,((e,t,s)=>{e.inXRange(n.x,a)&&r.push({element:e,datasetIndex:t,index:s})})),0===r.length)return r;const o=r.reduce(((e,t)=>Math.abs(n.x-e.element.x)<Math.abs(n.x-t.element.x)?e:t)).element.x;return r=r.filter((e=>e.element.x===o)),r.some((e=>Math.abs(e.element.y-n.y)<10))?r:[]},ec.propTypes={datasets:h().arrayOf(h().shape({label:h().string.isRequired,data:h().arrayOf(h().shape({datetime:h().string.isRequired,value:h().number.isRequired})).isRequired,selected:h().bool})).isRequired,isChartShown:h().bool.isRequired,keyphrases:h().array.isRequired};const tc=({response:e,onLogin:t})=>[401,403,404].includes(e.status)?(0,i.createElement)(ql,{onReconnect:t}):(0,i.createElement)(Yi,null);tc.propTypes={response:h().object.isRequired,onLogin:h().func.isRequired};const sc=({isSuccess:e,response:t,allKeyphrasesMissRanking:s,onLogin:a,keyphraseLimitReached:n,limit:r})=>n?(0,i.createElement)(Hi,{limit:r}):(0,J.isEmpty)(t)||e?s?(0,i.createElement)(il,null):null:(0,i.createElement)(tc,{response:t,onLogin:a});sc.propTypes={isSuccess:h().bool.isRequired,allKeyphrasesMissRanking:h().bool.isRequired,response:h().object,onLogin:h().func.isRequired,keyphraseLimitReached:h().bool.isRequired,limit:h().number.isRequired},sc.defaultProps={response:{}};let ac=null;const nc=async e=>{if(ac&&!ac.isClosed())return void ac.focus();const{url:t}=await async function(){return await ji({path:"yoast/v1/wincher/authorization-url",method:"GET"})}();ac=new Fl(t,{success:{type:"wincher:oauth:success",callback:t=>(async(e,t)=>{const{onAuthentication:s,setRequestSucceeded:a,setRequestFailed:n,keyphrases:r,addTrackedKeyphrase:o,setKeyphraseLimitReached:i}=e;await zi((()=>async function(e){const{code:t,websiteId:s}=e;return await ji({path:"yoast/v1/wincher/authenticate",method:"POST",data:{code:t,websiteId:s}})}(t)),(async e=>{s(!0,!0,t.websiteId.toString()),a(e);const l=(Array.isArray(r)?r:[r]).map((e=>e.toLowerCase()));await zi((()=>Vi(l)),(e=>{a(e),o(e.results)}),(e=>{400===e.status&&e.limit&&i(e.limit),n(e)}),201);const c=ac.getPopup();c&&c.close()}),(async e=>n(e)))})(e,t)},error:{type:"wincher:oauth:error",callback:()=>e.onAuthentication(!1,!1)}},{title:"Wincher_login",width:500,height:700}),ac.createPopup()},rc=e=>e.isLoggedIn?null:(0,i.createElement)("p",null,(0,i.createElement)(Bs.NewButton,{onClick:e.onLogin,variant:"primary"},(0,p.sprintf)(/* translators: %s expands to Wincher */
[546] Fix | Delete
(0,p.__)("Connect with %s","wordpress-seo"),"Wincher")));rc.propTypes={isLoggedIn:h().bool.isRequired,onLogin:h().func.isRequired};const oc=Hs().div`
[547] Fix | Delete
p {
[548] Fix | Delete
margin: 1em 0;
[549] Fix | Delete
}
[550] Fix | Delete
`,ic=Hs().div`
[551] Fix | Delete
${e=>e.isDisabled&&"\n\t\topacity: .5;\n\t\tpointer-events: none;\n\t"};
[552] Fix | Delete
`,lc=Hs().div`
[553] Fix | Delete
font-weight: var(--yoast-font-weight-bold);
[554] Fix | Delete
color: var(--yoast-color-label);
[555] Fix | Delete
font-size: var(--yoast-font-size-default);
[556] Fix | Delete
`,cc=Hs().div.attrs({className:"yoast-field-group"})`
[557] Fix | Delete
display: flex;
[558] Fix | Delete
justify-content: space-between;
[559] Fix | Delete
align-items: center;
[560] Fix | Delete
margin-bottom: 14px;
[561] Fix | Delete
`,dc=Hs().div`
[562] Fix | Delete
margin: 8px 0;
[563] Fix | Delete
`,pc=$i().utc().startOf("day"),uc=[{name:(0,p.__)("Last day","wordpress-seo"),value:$i()(pc).subtract(1,"days").format(),defaultIndex:1},{name:(0,p.__)("Last week","wordpress-seo"),value:$i()(pc).subtract(1,"week").format(),defaultIndex:2},{name:(0,p.__)("Last month","wordpress-seo"),value:$i()(pc).subtract(1,"month").format(),defaultIndex:3},{name:(0,p.__)("Last year","wordpress-seo"),value:$i()(pc).subtract(1,"year").format(),defaultIndex:0}],mc=e=>{const{onSelect:t,selected:s,options:a,isLoggedIn:n}=e;return n?a.length<1?null:(0,i.createElement)("select",{className:"components-select-control__input",id:"wincher-period-picker",value:(null==s?void 0:s.value)||a[0].value,onChange:t},a.map((e=>(0,i.createElement)("option",{key:e.name,value:e.value},e.name)))):null};mc.propTypes={onSelect:h().func.isRequired,selected:h().object,options:h().array.isRequired,isLoggedIn:h().bool.isRequired};const hc=e=>{const{trackedKeyphrases:t,isLoggedIn:s,keyphrases:a,shouldTrackAll:n,permalink:r,historyDaysLimit:o}=e;if(!r&&s)return(0,i.createElement)(Ul,null);if(0===a.length)return(0,i.createElement)(Ml,null);const l=$i()(pc).subtract(o,"days"),c=uc.filter((e=>$i()(e.value).isSameOrAfter(l))),u=(0,J.orderBy)(c,(e=>e.defaultIndex),"desc")[0],[m,h]=(0,d.useState)(u),[g,y]=(0,d.useState)([]),f=g.length>0,w=(0,Os.usePrevious)(t);(0,d.useEffect)((()=>{if(!(0,J.isEmpty)(t)&&(0,J.difference)(Object.keys(t),Object.keys(w||[])).length){const e=Object.values(t).map((e=>e.keyword));y(e)}}),[t,w]),(0,d.useEffect)((()=>{h(u)}),[null==u?void 0:u.name]);const b=(0,d.useCallback)((e=>{const t=uc.find((t=>t.value===e.target.value));t&&h(t)}),[h]),E=(0,d.useMemo)((()=>(0,J.isEmpty)(g)||(0,J.isEmpty)(t)?[]:Object.values(t).filter((e=>{var t;return!(null==e||null===(t=e.position)||void 0===t||!t.history)})).map((e=>{var t;return{label:e.keyword,data:e.position.history,selected:g.includes(e.keyword)&&!(0,J.isEmpty)(null===(t=e.position)||void 0===t?void 0:t.history)}}))),[g,t]);return(0,i.createElement)(ic,{isDisabled:!s},(0,i.createElement)("p",null,(0,p.__)("You can enable / disable tracking the SEO performance for each keyphrase below.","wordpress-seo")),s&&n&&(0,i.createElement)(Dl,null),(0,i.createElement)(cc,null,(0,i.createElement)(mc,{selected:m,onSelect:b,options:c,isLoggedIn:s})),(0,i.createElement)(dc,null,(0,i.createElement)(ec,{isChartShown:f,datasets:E,keyphrases:a})),(0,i.createElement)(Ll,{startAt:null==m?void 0:m.value,selectedKeyphrases:g,onSelectKeyphrases:y,trackedKeyphrases:t}))};function gc(e){const{isNewlyAuthenticated:t,isLoggedIn:s}=e,a=(0,d.useCallback)((()=>{nc(e)}),[nc,e]),n=el(s);return(0,i.createElement)(oc,null,t&&(0,i.createElement)(ol,null),s&&(0,i.createElement)(rl,{trackingInfo:n}),(0,i.createElement)(lc,null,(0,p.__)("SEO performance","wordpress-seo"),(0,i.createElement)(Bs.HelpIcon,{linkTo:wpseoAdminL10n["shortlinks.wincher.seo_performance"]
[564] Fix | Delete
/* translators: Hidden accessibility text. */,linkText:(0,p.__)("Learn more about the SEO performance feature.","wordpress-seo")})),(0,i.createElement)(Ol,null),(0,i.createElement)(rc,{isLoggedIn:s,onLogin:a}),(0,i.createElement)(sc,{...e,onLogin:a}),(0,i.createElement)(hc,{...e,historyDaysLimit:(null==n?void 0:n.historyDays)||31}))}hc.propTypes={trackedKeyphrases:h().object,keyphrases:h().array.isRequired,isLoggedIn:h().bool.isRequired,shouldTrackAll:h().bool.isRequired,permalink:h().string.isRequired,historyDaysLimit:h().number},gc.propTypes={trackedKeyphrases:h().object,addTrackedKeyphrase:h().func.isRequired,isLoggedIn:h().bool,isNewlyAuthenticated:h().bool,keyphrases:h().array,response:h().object,shouldTrackAll:h().bool,permalink:h().string,historyDaysLimit:h().number},gc.defaultProps={trackedKeyphrases:null,isLoggedIn:!1,isNewlyAuthenticated:!1,keyphrases:[],response:{},shouldTrackAll:!1,permalink:"",historyDaysLimit:0};const yc=(0,Os.compose)([(0,r.withSelect)((e=>{const{isWincherNewlyAuthenticated:t,getWincherKeyphraseLimitReached:s,getWincherLimit:a,getWincherHistoryDaysLimit:n,getWincherLoginStatus:r,getWincherRequestIsSuccess:o,getWincherRequestResponse:i,getWincherTrackableKeyphrases:l,getWincherTrackedKeyphrases:c,getWincherAllKeyphrasesMissRanking:d,getWincherPermalink:p,shouldWincherAutomaticallyTrackAll:u}=e("yoast-seo/editor");return{keyphrases:l(),trackedKeyphrases:c(),allKeyphrasesMissRanking:d(),isLoggedIn:r(),isNewlyAuthenticated:t(),isSuccess:o(),keyphraseLimitReached:s(),limit:a(),response:i(),shouldTrackAll:u(),permalink:p(),historyDaysLimit:n()}})),(0,r.withDispatch)((e=>{const{setWincherWebsiteId:t,setWincherRequestSucceeded:s,setWincherRequestFailed:a,setWincherTrackingForKeyphrase:n,setWincherSetKeyphraseLimitReached:r,setWincherLoginStatus:o}=e("yoast-seo/editor");return{setRequestSucceeded:e=>{s(e)},setRequestFailed:e=>{a(e)},addTrackedKeyphrase:e=>{n(e)},setKeyphraseLimitReached:e=>{r(e)},onAuthentication:(e,s,a)=>{t(a),o(e,s)}}}))])(gc),fc=Hs()(Di)`
[565] Fix | Delete
width: 18px;
[566] Fix | Delete
height: 18px;
[567] Fix | Delete
margin: 3px;
[568] Fix | Delete
`;function wc(e){const{keyphrases:t,onNoKeyphraseSet:s,onOpen:a,location:n}=e;if(!t.length){let e=document.querySelector("#focus-keyword-input-metabox");return e||(e=document.querySelector("#focus-keyword-input-sidebar")),e.focus(),void s()}a(n)}function bc(e){const{location:t,whichModalOpen:s,shouldCloseOnClickOutside:a}=e,n=(0,d.useCallback)((()=>{wc(e)}),[wc,e]),r=(0,p.__)("Track SEO performance","wordpress-seo"),o=xn();return(0,i.createElement)(d.Fragment,null,s===t&&(0,i.createElement)(oa,{title:r,onRequestClose:e.onClose,icon:(0,i.createElement)(Ui,null),additionalClassName:"yoast-wincher-seo-performance-modal yoast-gutenberg-modal__no-padding",shouldCloseOnClickOutside:a},(0,i.createElement)(sa,{className:"yoast-gutenberg-modal__content yoast-wincher-seo-performance-modal__content"},(0,i.createElement)(yc,null))),"sidebar"===t&&(0,i.createElement)(Ws,{id:`wincher-open-button-${t}`,title:r,SuffixHeroIcon:(0,i.createElement)(fc,{className:"yst-text-slate-500",...o}),onClick:n}),"metabox"===t&&(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(Us,{id:`wincher-open-button-${t}`,onClick:n},(0,i.createElement)(Us.Text,null,r),(0,i.createElement)(Di,{className:"yst-h-5 yst-w-5 yst-text-slate-500",...o}))))}bc.propTypes={location:h().string,whichModalOpen:h().oneOf(["none","metabox","sidebar","postpublish"]),shouldCloseOnClickOutside:h().bool,keyphrases:h().array.isRequired,onNoKeyphraseSet:h().func.isRequired,onOpen:h().func.isRequired,onClose:h().func.isRequired},bc.defaultProps={location:"",whichModalOpen:"none",shouldCloseOnClickOutside:!0};const Ec=(0,Os.compose)([(0,r.withSelect)((e=>{const{getWincherModalOpen:t,getWincherTrackableKeyphrases:s}=e("yoast-seo/editor");return{keyphrases:s(),whichModalOpen:t()}})),(0,r.withDispatch)((e=>{const{setWincherOpenModal:t,setWincherDismissModal:s,setWincherNoKeyphrase:a}=e("yoast-seo/editor");return{onOpen:e=>{t(e)},onClose:()=>{s()},onNoKeyphraseSet:()=>{a()}}}))])(bc),vc=e=>(0,i.createElement)(ta,{title:(0,p.__)("Reach a wider audience","wordpress-seo"),description:(0,p.__)("Get help optimizing for up to 5 related keyphrases. This helps you reach a wider audience and get more traffic.","wordpress-seo"),benefitsTitle:/* translators: %s expands to 'Yoast SEO Premium'. */
[569] Fix | Delete
(0,p.sprintf)("%s also gives you:","Yoast SEO Premium"),benefits:Ds(),upsellButtonText:(0,p.sprintf)(/* translators: %s expands to 'Yoast SEO Premium'. */
[570] Fix | Delete
(0,p.__)("Unlock with %s","wordpress-seo"),"Yoast SEO Premium"),upsellButton:{href:e.buyLink,className:"yoast-button-upsell",rel:null,"data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2","data-action":"load-nfd-ctb"},upsellButtonLabel:(0,p.__)("1 year free support and updates included!","wordpress-seo")});vc.propTypes={buyLink:h().string.isRequired};const _c=vc,kc=()=>{const[e,,,t,s]=(0,u.useToggleState)(!1),a=(0,d.useContext)(Rs.LocationContext),{locationContext:n}=(0,Rs.useRootContext)(),r=(0,u.useSvgAria)(),o=wpseoAdminL10n["sidebar"===a.toLowerCase()?"shortlinks.upsell.sidebar.additional_button":"shortlinks.upsell.metabox.additional_button"];return(0,i.createElement)(i.Fragment,null,e&&(0,i.createElement)(oa,{title:(0,p.__)("Add related keyphrases","wordpress-seo"),onRequestClose:s,additionalClassName:"",id:"yoast-additional-keyphrases-modal",className:`${na} yoast-gutenberg-modal__box yoast-gutenberg-modal__no-padding`,shouldCloseOnClickOutside:!0},(0,i.createElement)(aa,null,(0,i.createElement)(_c,{buyLink:(0,te.addQueryArgs)(o,{context:n})}))),"sidebar"===a&&(0,i.createElement)(Ws,{id:"yoast-additional-keyphrase-modal-open-button",title:(0,p.__)("Add related keyphrase","wordpress-seo"),prefixIcon:{icon:"plus",color:Cr.colors.$color_grey_medium_dark},onClick:t},(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(Ms,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...r})))),"metabox"===a&&(0,i.createElement)("div",{className:"yst-root"},(0,i.createElement)(Us,{id:"yoast-additional-keyphrase-metabox-modal-open-button",onClick:t},(0,i.createElement)(Bs.SvgIcon,{icon:"plus",color:Cr.colors.$color_grey_medium_dark}),(0,i.createElement)(Us.Text,null,(0,p.__)("Add related keyphrase","wordpress-seo")),(0,i.createElement)(u.Badge,{size:"small",variant:"upsell"},(0,i.createElement)(Ms,{className:"yst-w-2.5 yst-h-2.5 yst-mr-1 yst-shrink-0",...r}),(0,i.createElement)("span",null,"Premium")))))};function xc({isLoading:e,onLoad:t,settings:s}){const a=(({webinarIntroUrl:e})=>{const{shouldShow:t}=ba(),s=(e=>{for(const t of e)if(null!=t&&t.getIsEligible())return t;return null})([{getIsEligible:()=>t,component:va},{getIsEligible:vn,component:()=>(0,i.createElement)(bn,{hasIcon:!1,image:null,url:e})},{getIsEligible:En,component:()=>(0,i.createElement)(ya,{hasIcon:!1})},{getIsEligible:()=>!0,component:()=>(0,i.createElement)(ga,{hasIcon:!1})}]);return(null==s?void 0:s.component)||null})({webinarIntroUrl:(0,J.get)(window,"wpseoScriptData.webinarIntroElementorUrl","https://yoa.st/webinar-intro-elementor")});return(0,d.useEffect)((()=>{setTimeout((()=>{e&&t()}))})),e?null:(0,i.createElement)(d.Fragment,null,(0,i.createElement)(c.Fill,{name:"YoastElementor"},(0,i.createElement)(rr,{renderPriority:1},(0,i.createElement)(ar,null),a&&(0,i.createElement)(a,null)),s.isKeywordAnalysisActive&&(0,i.createElement)(rr,{renderPriority:8},(0,i.createElement)(la.KeywordInput,{isSEMrushIntegrationActive:s.isSEMrushIntegrationActive}),!window.wpseoScriptData.metabox.isPremium&&(0,i.createElement)(c.Fill,{name:"YoastRelatedKeyphrases"},(0,i.createElement)(Mi,null))),s.isKeywordAnalysisActive&&(0,i.createElement)(rr,{renderPriority:10},(0,i.createElement)(d.Fragment,null,(0,i.createElement)(la.SeoAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellWordFormRecognition:s.isWordFormRecognitionActive,shouldUpsellHighlighting:s.shouldUpsell}),s.shouldUpsell&&(0,i.createElement)(Ko,null))),s.isContentAnalysisActive&&(0,i.createElement)(rr,{renderPriority:15},(0,i.createElement)(la.ReadabilityAnalysis,{shouldUpsell:s.shouldUpsell,shouldUpsellHighlighting:s.shouldUpsell})),s.isInclusiveLanguageAnalysisActive&&(0,i.createElement)(rr,{renderPriority:19},(0,i.createElement)(la.InclusiveLanguageAnalysis,{shouldUpsellHighlighting:s.shouldUpsell})),s.isKeywordAnalysisActive&&(0,i.createElement)(rr,{key:"additional-keywords-upsell",renderPriority:22},s.shouldUpsell&&(0,i.createElement)(kc,null)),s.isKeywordAnalysisActive&&s.isWincherIntegrationActive&&(0,i.createElement)(rr,{key:"wincher-seo-performance",renderPriority:23},(0,i.createElement)(Ec,{location:"sidebar",shouldCloseOnClickOutside:!1})),s.shouldUpsell&&(0,i.createElement)(rr,{key:"internal-linking-suggestions-upsell",renderPriority:24},(0,i.createElement)(ia,null)),(0,i.createElement)(rr,{renderPriority:25},(0,i.createElement)(_r,null)),(s.useOpenGraphData||s.useTwitterData)&&(0,i.createElement)(rr,{key:"social-appearance",renderPriority:26},(0,i.createElement)(qo,{useOpenGraphData:s.useOpenGraphData,useTwitterData:s.useTwitterData})),s.displaySchemaSettings&&(0,i.createElement)(rr,{renderPriority:28},(0,i.createElement)(Yo,{title:(0,p.__)("Schema","wordpress-seo")},(0,i.createElement)(ri,null))),s.displayAdvancedTab&&(0,i.createElement)(rr,{renderPriority:29},(0,i.createElement)(Yo,{title:(0,p.__)("Advanced","wordpress-seo"),buttonId:"yoast-seo-elementor-advanced-button"},(0,i.createElement)(mi,{location:"sidebar"}))),s.isCornerstoneActive&&(0,i.createElement)(rr,{renderPriority:30},(0,i.createElement)(da,null)),s.isInsightsEnabled&&(0,i.createElement)(rr,{renderPriority:32},(0,i.createElement)(tr,{location:"elementor"}))))}xc.propTypes={isLoading:h().bool.isRequired,onLoad:h().func.isRequired,settings:h().object.isRequired};const Sc=(0,Os.compose)([(0,r.withSelect)((e=>{const{getPreferences:t,getSnippetEditorIsLoading:s}=e("yoast-seo/editor");return{settings:t(),isLoading:s()}})),(0,r.withDispatch)((e=>{const{loadSnippetEditorData:t}=e("yoast-seo/editor");return{onLoad:t}}))])(xc);class Tc extends $e.modules.hookUI.Base{constructor(e,t,s){super(),this.hook=e,this.id=t,this.callback=s}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}class Rc extends $e.modules.hookData.Base{constructor(e,t,s){super(),this.hook=e,this.id=t,this.callback=s}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}function Cc(e,t,s){$e.hooks.registerUIAfter(new Tc(e,t,s))}function Ic(e,t,s){$e.hooks.registerUIBefore(new Tc(e,t,s))}const Lc=({theme:e,location:t,children:s})=>(0,i.createElement)(Rs.LocationProvider,{value:t},(0,i.createElement)(Ks.ThemeProvider,{theme:e},s));Lc.propTypes={theme:h().object.isRequired,location:h().oneOf(["sidebar","metabox","modal"]).isRequired,children:h().element.isRequired};const Pc=Lc,Ac=[];let Oc=null;class Mc extends d.Component{constructor(e){super(e),this.state={registeredComponents:[]}}registerComponent(e,t){this.setState({registeredComponents:[...this.state.registeredComponents,{key:e,Component:t}]})}render(){return this.state.registeredComponents.map((({Component:e,key:t})=>(0,i.createElement)(e,{key:t})))}}function Dc(e,t){null===Oc||null===Oc.current?Ac.push({key:e,Component:t}):Oc.current.registerComponent(e,t)}const Fc="yoast-elementor-react-tab";let Nc,qc=!1;function Uc(e){e.oldValue=e.value}function Bc(){Nc.forEach((e=>Uc(e)))}const $c=(0,J.debounce)((function(){let e;qc&&(
[571] Fix | Delete
/* Translators: %1$s translates to the Post Label in singular form */
[572] Fix | Delete
e=(0,p.sprintf)((0,p.__)("Unfortunately we cannot save changes to your SEO settings while you are working on a draft of an already-published %1$s. If you want to save your SEO changes, make sure to click 'Update', or wait to make your SEO changes until you are ready to update the %1$s.","wordpress-seo"),window.wpseoAdminL10n.postTypeNameSingular.toLowerCase())),"draft"===window.elementor.settings.page.model.get("post_status")&&(e=""),(0,r.dispatch)("yoast-seo/editor").setWarningMessage(e)}),500,{trailing:!0});function Wc(e){var t;(function(e){return["yoast_wpseo_linkdex","yoast_wpseo_content_score","yoast_wpseo_inclusive_language_score","yoast_wpseo_words_for_linking","yoast_wpseo_estimated-reading-time-minutes"].includes(e.name)})(e)||(t=e.name,["yoast_wpseo_focuskeywords","hidden_wpseo_focuskeywords"].includes(t)&&function(e,t){if(t===e)return!0;if(""===t||""===e)return!1;const s=JSON.parse(t),a=JSON.parse(e);return s.length===a.length&&s.every(((e,t)=>e.keyword===a[t].keyword))}(e.oldValue,e.value)||e.value!==e.oldValue&&(qc=!0,$c(),window.$e.internal("document/save/set-is-modified",{status:!0}),Uc(e)))}function Kc(e){qc=!1;const t=jQuery(e).serializeArray().reduce(((e,{name:t,value:s})=>(e[t]=s,e)),{});jQuery.post(e.getAttribute("action"),t,(({success:e,data:s},a,n)=>{e?((0,o.doAction)("yoast.elementor.save.success",n),s.slug&&s.slug!==t.slug&&(0,r.dispatch)("yoast-seo/editor").updateData({slug:s.slug}),Bc(),$c()):qc=!0}))}const Hc=({id:e,children:t})=>{const[s,a]=(0,d.useState)(null);return((e,t,s={childList:!0,subtree:!0})=>{(0,d.useEffect)((()=>{const a=new MutationObserver(t);return a.observe(e,s),()=>a.disconnect()}),[e,t])})(document.body,(()=>{const n=document.getElementById(e);n?null===s&&a((0,d.createPortal)(t,n)):null!==s&&a(null)})),s},Yc=()=>{var e;const t=document.getElementById("elementor-panel-page-settings-controls");if(!t)return;const s=null===(e=t.getElementsByClassName("elementor-control"))||void 0===e?void 0:e[0];s&&(s.style.display="none");const a=document.createElement("div");a.id=Fc,a.className="yoast yoast-elementor-panel__fills",t.appendChild(a)},zc=()=>{const e=document.createElement("div");e.id="yoast-elementor-react-root",document.body.appendChild(e),function(e,t){const s=ze();Oc=(0,d.createRef)();const a={isRtl:s.isRtl};(0,d.render)((0,i.createElement)(Pc,{theme:a,location:"sidebar"},(0,i.createElement)(c.SlotFillProvider,null,(0,i.createElement)(d.Fragment,null,t,(0,i.createElement)(Mc,{ref:Oc})))),document.getElementById(e)),Ac.forEach((e=>{Oc.current.registerComponent(e.key,e.Component)}))}(e.id,(0,i.createElement)(Rs.Root,{context:{locationContext:"elementor-sidebar"}},(0,i.createElement)(Hc,{id:Fc},(0,i.createElement)(As,null),(0,i.createElement)(Sc,null))))};function jc(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO._registerReactComponent=Dc,Ts()(zc),window.elementor.settings.page.model.on("change",(e=>{e.changed&&e.changed.post_status&&$c()}));const e=Kc.bind(null,document.getElementById("yoast-form"));$e.hooks.registerDataAfter(new Rc("document/save/save","yoast-seo-save",(()=>{window.elementor.config.document.id===window.elementor.config.document.revisions.current_id&&e()}))),window.elementor.modules.layouts.panel.pages.menu.Menu.addItem({name:"yoast",icon:"yoast yoast-element-menu-icon",title:"Yoast SEO",type:"page",callback:()=>{try{window.$e.route("panel/page-settings/yoast-tab")}catch(e){window.$e.route("panel/page-settings/settings"),window.$e.route("panel/page-settings/yoast-tab")}Yc()}},"more"),jQuery(document).on("click",'[data-tab="yoast-tab"]:not(.elementor-active)',Yc).on("keyup",'[data-tab="yoast-tab"]:not(.elementor-active)',(e=>{13!==e.keyCode&&32!==e.keyCode||e.currentTarget.click()})),Nc=document.querySelectorAll("input[name^='yoast']"),Bc(),setInterval((()=>Nc.forEach(Wc)),500)}const Vc=()=>{const{getContentLocale:e}=(0,r.select)("yoast-seo/editor"),t=((...e)=>()=>e.map((e=>e())))(e,ks),s=(()=>{const{setEstimatedReadingTime:e,setFleschReadingEase:t,setTextLength:s}=(0,r.dispatch)("yoast-seo/editor"),a=(0,J.get)(window,"YoastSEO.analysis.worker.runResearch",J.noop);return()=>{const n=Ke.Paper.parse(ks());a("readingTime",n).then((t=>e(t.result))),a("getFleschReadingScore",n).then((e=>{e.result&&t(e.result)})),a("wordCountInText",n).then((e=>s(e.result)))}})();return setTimeout(s,1500),((e,t)=>{let s=e();return()=>{const a=e();(0,J.isEqual)(a,s)||(s=a,t((0,J.clone)(a)))}})(t,s)},Gc={content:"",title:"",excerpt:"",slug:"",imageUrl:""},Zc="yoastmark";function Qc(e){const t=window.elementor.settings.page.model.get("post_featured_image"),s=(0,J.get)(t,"url","");return""===s?function(e){const t=Ke.languageProcessing.imageInText(e);if(0===t.length)return"";const s=jQuery.parseHTML(t.join(""));for(const e of s)if(e.src)return e.src;return""}(e):s}function Xc(){window.elementor.documents.getCurrent().$element.find(".elementor-widget-container").each(((e,t)=>{-1!==t.innerHTML.indexOf("<"+Zc)&&(t.innerHTML=Ke.markers.removeMarks(t.innerHTML))})),(0,r.dispatch)("yoast-seo/editor").setActiveMarker(null),(0,r.dispatch)("yoast-seo/editor").setMarkerPauseStatus(!1),window.YoastSEO.analysis.applyMarks(new Ke.Paper("",{}),[])}const Jc=(0,J.debounce)((function(){const e=window.elementor.documents.getCurrent();if(!["wp-post","wp-page"].includes(e.config.type))return;if((0,r.select)("yoast-seo/editor").getActiveMarker())return;const t=function(e){const t=function(e){const t=[];return e.$element.find(".elementor-widget-container").each(((e,s)=>{const a=s.innerHTML.replace(/[\n\t]/g,"").trim();t.push(a)})),t.join("")}(e);return{content:t,title:window.elementor.settings.page.model.get("post_title"),excerpt:window.elementor.settings.page.model.get("post_excerpt")||"",imageUrl:Qc(t),status:window.elementor.settings.page.model.get("post_status")}}(e);t.content!==Gc.content&&(Gc.content=t.content,(0,r.dispatch)("yoast-seo/editor").setEditorDataContent(Gc.content)),t.title!==Gc.title&&(Gc.title=t.title,(0,r.dispatch)("yoast-seo/editor").setEditorDataTitle(Gc.title),"draft"!==t.status&&"auto-draft"!==t.status||(0,r.dispatch)("yoast-seo/editor").updateData({slug:(0,te.cleanForSlug)(Gc.title)})),t.excerpt!==Gc.excerpt&&(Gc.excerpt=t.excerpt,(0,r.dispatch)("yoast-seo/editor").setEditorDataExcerpt(Gc.excerpt)),t.imageUrl!==Gc.imageUrl&&(Gc.imageUrl=t.imageUrl,(0,r.dispatch)("yoast-seo/editor").setEditorDataImageUrl(Gc.imageUrl))}),$t);function ed(){new MutationObserver(Jc).observe(window.document,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function td(){window.YoastSEO=window.YoastSEO||{},window.YoastSEO.store=function(){const s=(0,r.registerStore)("yoast-seo/editor",{reducer:(0,r.combineReducers)(X.reducers),selectors:{...X.selectors,...a},actions:(0,J.pickBy)({...X.actions,...t},(e=>"function"==typeof e)),controls:e});return(e=>{e.dispatch(X.actions.loadCornerstoneContent()),e.dispatch(X.actions.loadFocusKeyword()),e.dispatch(X.actions.setMarkerStatus(window.wpseoScriptData.metabox.elementorMarkerStatus)),e.dispatch(X.actions.setSettings({socialPreviews:{sitewideImage:window.wpseoScriptData.metabox.sitewide_social_image,siteName:window.wpseoScriptData.metabox.site_name,contentImage:window.wpseoScriptData.metabox.first_content_image,twitterCardType:window.wpseoScriptData.metabox.twitterCardType},snippetEditor:{baseUrl:window.wpseoScriptData.metabox.base_url,date:window.wpseoScriptData.metabox.metaDescriptionDate,recommendedReplacementVariables:window.wpseoScriptData.analysis.plugins.replaceVars.recommended_replace_vars,siteIconUrl:window.wpseoScriptData.metabox.siteIconUrl}}));const{facebook:t,twitter:s}=window.wpseoScriptData.metabox.showSocial;t&&e.dispatch(X.actions.loadFacebookPreviewData()),s&&e.dispatch(X.actions.loadTwitterPreviewData()),e.dispatch(X.actions.setSEMrushChangeCountry(window.wpseoScriptData.metabox.countryCode)),e.dispatch(X.actions.setSEMrushLoginStatus(window.wpseoScriptData.metabox.SEMrushLoginStatus)),e.dispatch(X.actions.setWincherLoginStatus(window.wpseoScriptData.metabox.wincherLoginStatus,!1)),e.dispatch(X.actions.setWincherWebsiteId(window.wpseoScriptData.metabox.wincherWebsiteId)),e.dispatch(X.actions.setWincherAutomaticKeyphaseTracking(window.wpseoScriptData.metabox.wincherAutoAddKeyphrases)),e.dispatch(X.actions.setDismissedAlerts((0,J.get)(window,"wpseoScriptData.dismissedAlerts",{}))),e.dispatch(X.actions.setCurrentPromotions((0,J.get)(window,"wpseoScriptData.currentPromotions",{}))),e.dispatch(X.actions.setIsPremium(Boolean((0,J.get)(window,"wpseoScriptData.metabox.isPremium",!1)))),e.dispatch(X.actions.setLinkParams((0,J.get)(window,"wpseoScriptData.linkParams",{}))),e.dispatch(X.actions.setPluginUrl((0,J.get)(window,"wpseoScriptData.pluginUrl",""))),e.dispatch(X.actions.setWistiaEmbedPermissionValue("1"===(0,J.get)(window,"wpseoScriptData.wistiaEmbedPermission",!1)))})(s),s}(),Ic("panel/editor/open","yoast-seo-reset-marks-edit",(0,J.debounce)(Xc,$t)),Ic("document/save/save","yoast-seo-reset-marks-save",Xc),Cc("editor/documents/attach-preview","yoast-seo-content-scraper-initial",Jc),Cc("editor/documents/attach-preview","yoast-seo-content-scraper",(0,J.debounce)(ed,$t)),Cc("document/save/set-is-modified","yoast-seo-content-scraper-on-modified",Jc),window.YoastSEO.pluginReady=Ce,window.YoastSEO.pluginReloaded=Ie,window.YoastSEO.registerModification=Le,window.YoastSEO.registerPlugin=Pe,window.YoastSEO.applyModifications=Ae,window.YoastSEO.analysis=window.YoastSEO.analysis||{},window.YoastSEO.analysis.run=(0,r.dispatch)("yoast-seo/editor").runAnalysis,window.YoastSEO.analysis.worker=xs(),window.YoastSEO.analysis.collectData=ks,Pe(Mt,{status:"ready"}),qt().forEach((e=>{const t=null==n?void 0:n[e];if(t){const e=(({getReplacement:e,regexp:t})=>s=>s.replace(t,e()))(t);Nt(e)}})),window.YoastSEO.wp=window.YoastSEO.wp||{},window.YoastSEO.wp.replaceVarsPlugin={addReplacement:Ut,ReplaceVar:Ot},function(){const e=ze(),t=(0,J.get)(window,["wpseoScriptData","analysis","worker","keywords_assessment_url"],"used-keywords-assessment.js"),s=(0,J.get)(window,["wpseoScriptData","usedKeywordsNonce"],""),a=new Ve("get_focus_keyword_usage_and_post_types",e,(0,r.dispatch)("yoast-seo/editor").runAnalysis,t,s);a.init();let n="";(0,r.subscribe)((()=>{const e=(0,r.select)("yoast-seo/editor").getFocusKeyphrase();e!==n&&(n=e,a.setKeyword(e))}))}(),(()=>{if((0,r.select)("yoast-seo/editor").getPreference("isInsightsEnabled",!1))(0,r.dispatch)("yoast-seo/editor").loadEstimatedReadingTime(),(0,r.subscribe)((0,J.debounce)(Vc(),1500,{maxWait:3e3}))})(),function(e){const{getFocusKeyphrase:t}=(0,r.select)("yoast-seo/editor");let s=t();He(e,s),(0,r.subscribe)((()=>{const a=t();s!==a&&(s=a,Ye(e,a))}))}(window.YoastSEO.analysis.worker.runResearch),window.elementorFrontend.config.experimentalFeatures.editor_v2?function(){if(!0===window.elementor.config.user.introduction["yoast-introduction-editor-v2"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction-editor-v2",dialogOptions:{id:"yoast-introduction-editor-v2",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,p.__)("Yoast SEO for Elementor","wordpress-seo"),message:(0,p.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"center top",at:"center bottom+20",of:document.querySelector("button[value='document-settings']"),using:function(e,t){this.style.setProperty("--yoast-elementor-introduction-arrow",t.target.left-t.element.left+8+"px");const s=t.target.element.closest("#elementor-editor-wrapper-v2 header");s&&s.offsetHeight>e.top-12?this.style.top=s.offsetHeight+20+"px":(0,J.isObject)(s)&&s[0].offsetHeight>e.top-12?this.style.top=s[0].offsetHeight+12+"px":this.style.top=e.top+"px",this.style.left=e.left+"px"},autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/page-settings/settings"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,p.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show()}catch(e){setTimeout(t,100)}}),100)}():function(){if(!0===window.elementor.config.user.introduction["yoast-introduction"])return;const e=new window.elementorModules.editor.utils.Introduction({introductionKey:"yoast-introduction",dialogOptions:{id:"yoast-introduction",className:"elementor-right-click-introduction yoast-elementor-introduction",headerMessage:(0,p.__)("New: Yoast SEO for Elementor","wordpress-seo"),message:(0,p.__)("Get started with Yoast SEO's content analysis for Elementor!","wordpress-seo"),position:{my:"left top",at:"right top",autoRefresh:!0},hide:{onOutsideClick:!1}},onDialogInitCallback:t=>{window.$e.routes.on("run:after",(function(e,s){"panel/menu"===s&&t.getElements("ok").trigger("click")})),t.addButton({name:"ok",text:(0,p.__)("Got it","wordpress-seo"),callback:()=>e.setViewed()}),t.getElements("ok").addClass("elementor-button elementor-button-success")}});setTimeout((function t(){try{e.show(window.elementor.getPanelView().header.currentView.ui.menuButton[0])}catch(e){setTimeout(t,100)}}),100)}(),jc(),window.wpseoScriptData.postType&&!["attachment","product"].includes(window.wpseoScriptData.postType)&&(()=>{const e=(0,r.select)(Q).getIsPremium(),t=(0,r.select)(Q).getIsWooSeoUpsell(),s=(0,r.select)(Q).getIsProduct()?!e||t:!e;(0,o.addFilter)("yoast.replacementVariableEditor.additionalButtons","yoast/yoast-seo-premium/AiGenerator",((e,{fieldId:t})=>(s&&e.push((0,i.createElement)(c.Fill,{name:`yoast.replacementVariableEditor.additionalButtons.${t}`},(0,i.createElement)(Z,{fieldId:t}))),e)))})(),(0,o.doAction)("yoast.elementor.loaded")}jQuery(window).on("elementor:init",(()=>{window.elementor.on("panel:init",(()=>{setTimeout(td)}))}))})()})();
[573] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function