Current File : /dom405686/wp-content/plugins/wordpress-seo/js/dist/indexation.js
(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.element,s=window.jQuery;var n=e.n(s);const i=window.wp.i18n,r=window.yoast.componentsNew,o=window.yoast.styleGuide,a=window.yoast.propTypes;var d=e.n(a);class c extends Error{constructor(e,t,s,n,i,r={}){var o,a;super(e),this.name="RequestError",this.url=t,this.method=s,this.statusCode=n,this.stackTrace=i,this.objectId=null!==(o=r.objectId)&&void 0!==o?o:null,this.objectType=null!==(a=r.objectType)&&void 0!==a?a:null}}class p extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const l="idle",h="in_progress",u="errored",g="completed";class x extends t.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:l,processed:0,error:null,amount:parseInt(this.settings.amount,10),firstTime:"1"===this.settings.firstTime},this.startIndexing=this.startIndexing.bind(this),this.stopIndexing=this.stopIndexing.bind(this)}getAlreadyIndexedStateName(){return"completed"}async doIndexingRequest(e,t){const s=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),n=await s.text();let i;try{i=JSON.parse(n)}catch(e){throw new p("Error parsing the response to JSON.",n)}if(!s.ok){const t=i.data||{};throw new c(i.message,e,"POST",s.status,t.stackTrace,{objectId:t.object_id,objectType:t.object_type})}return i}async doPreIndexingAction(e){"function"==typeof this.props.preIndexingActions[e]&&await this.props.preIndexingActions[e](this.settings)}async doPostIndexingAction(e,t){"function"==typeof this.props.indexingActions[e]&&await this.props.indexingActions[e](t.objects,this.settings)}detectIndexingLoop(e,t,s,n){if(s.next_url!==t||0===s.objects.length)return null;const i=JSON.stringify(s.objects.map(e=>[e.id,e.object_type,e.object_sub_type,e.object_id]));if(i===n)throw new Error(`Optimization of the '${e}' data is not making progress: the same batch was returned twice. Stopped to prevent an endless loop. This can happen when a plugin conflict or a failing script prevents the returned objects from being processed.`);return i}async doIndexing(e){let s=this.settings.restApi.root+this.settings.restApi.indexing_endpoints[e],n=null;for(;this.isState(h)&&!1!==s;)try{await this.doPreIndexingAction(e);const i=await this.doIndexingRequest(s,this.settings.restApi.nonce);await this.doPostIndexingAction(e,i),n=this.detectIndexingLoop(e,s,i,n),(0,t.flushSync)(()=>{this.setState(e=>({processed:e.processed+i.objects.length,firstTime:!1}))}),s=i.next_url}catch(e){(0,t.flushSync)(()=>{this.setState({state:u,error:e,firstTime:!1})})}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(u)||this.isState(l)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:h},this.index)}completeIndexing(){this.setState({state:g})}stopIndexing(){this.setState(e=>({state:l,processed:0,amount:e.amount-e.processed}))}componentDidMount(){var e,t;if(!this.settings.disabled&&(this.props.indexingStateCallback(0===this.state.amount?this.getAlreadyIndexedStateName():this.state.state),"true"===new URLSearchParams(window.location.search).get("start-indexation"))){const s=function(e){const t=new URL(e);return t.searchParams.delete("start-indexation"),t.href}(window.location.href);e=document.title,t=s,window.history.pushState(null,e,t),this.startIndexing()}}componentDidUpdate(e,t){this.state.state!==t.state&&this.props.indexingStateCallback(this.state.state)}isState(e){return this.state.state===e}}const w={indexingActions:d().object,preIndexingActions:d().object,indexingStateCallback:d().func},y={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{}};x.propTypes=w,x.defaultProps=y;const m=x,j=window.yoast.helpers,f=window.ReactJSXRuntime,{stripTagsFromHtmlString:S}=j.strings,_=["a","p"];function I({title:e,value:t=""}){return t?(0,f.jsxs)("p",{children:[(0,f.jsx)("strong",{children:e}),(0,f.jsx)("br",{}),t]}):null}function b({title:e,value:t=""}){return t?(0,f.jsxs)("details",{children:[(0,f.jsx)("summary",{children:e}),(0,f.jsx)("pre",{style:{overflowX:"scroll",maxWidth:"500px",border:"1px solid",padding:"16px"},children:t})]}):null}function T({message:e,error:t}){let s="";return t.objectType&&(s=t.objectId?`${t.objectType} #${t.objectId}`:t.objectType),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:S(e,_)}}),(0,f.jsxs)("details",{children:[(0,f.jsx)("summary",{children:(0,i.__)("Error details","wordpress-seo")}),(0,f.jsxs)("div",{style:{marginTop:"8px"},children:[(0,f.jsx)(I,{title:(0,i.__)("Failing object","wordpress-seo"),value:s}),(0,f.jsx)(I,{title:(0,i.__)("Request URL","wordpress-seo"),value:t.url}),(0,f.jsx)(I,{title:(0,i.__)("Request method","wordpress-seo"),value:t.method}),(0,f.jsx)(I,{title:(0,i.__)("Status code","wordpress-seo"),value:t.statusCode}),(0,f.jsx)(I,{title:(0,i.__)("Error message","wordpress-seo"),value:t.message}),(0,f.jsx)(b,{title:(0,i.__)("Response","wordpress-seo"),value:t.parseString}),(0,f.jsx)(b,{title:(0,i.__)("Error stack trace","wordpress-seo"),value:t.stackTrace})]})]})]})}function A({message:e,error:t}){return(0,f.jsx)(r.Alert,{type:"error",children:(0,f.jsx)(T,{message:e,error:t})})}I.propTypes={title:d().string.isRequired,value:d().any},b.propTypes={title:d().string.isRequired,value:d().string},T.propTypes={message:d().string.isRequired,error:d().oneOfType([d().instanceOf(Error),d().instanceOf(c)]).isRequired},A.propTypes={message:d().string.isRequired,error:d().oneOfType([d().instanceOf(Error),d().instanceOf(c)]).isRequired};class v extends m{renderFirstIndexationNotice(){return(0,f.jsx)(r.Alert,{type:"info",children:(0,i.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo")})}renderStartButton(){return(0,f.jsx)(r.NewButton,{variant:"primary",onClick:this.startIndexing,children:(0,i.__)("Start SEO data optimization","wordpress-seo")})}renderStopButton(){return(0,f.jsx)(r.NewButton,{variant:"secondary",onClick:this.stopIndexing,children:(0,i.__)("Stop SEO data optimization","wordpress-seo")})}renderDisabledTool(){return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)("p",{children:(0,f.jsx)(r.NewButton,{variant:"secondary",disabled:!0,children:(0,i.__)("Start SEO data optimization","wordpress-seo")})}),(0,f.jsx)(r.Alert,{type:"info",children:(0,i.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")})]})}renderProgressBar(){return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)(r.ProgressBar,{style:{height:"16px",margin:"8px 0"},progressColor:o.colors.$color_pink_dark,max:parseInt(this.state.amount,10),value:this.state.processed}),(0,f.jsx)("p",{style:{color:o.colors.$palette_grey_text},children:(0,i.__)("Optimizing SEO data… This may take a while.","wordpress-seo")})]})}renderErrorAlert(){return(0,f.jsx)(A,{message:yoastIndexingData.errorMessage,error:this.state.error})}renderTool(){return(0,f.jsxs)(t.Fragment,{children:[this.isState(h)&&this.renderProgressBar(),this.isState(u)&&this.renderErrorAlert(),this.isState(l)&&this.state.firstTime&&this.renderFirstIndexationNotice(),this.isState(h)?this.renderStopButton():this.renderStartButton()]})}render(){return this.settings.disabled?this.renderDisabledTool():this.isState(g)||0===this.state.amount?(0,f.jsx)(r.Alert,{type:"success",children:(0,i.__)("SEO data optimization complete","wordpress-seo")}):this.renderTool()}}v.propTypes=w,v.defaultProps=y;const O=v;let E;function P(){var e;null===(e=E)||void 0===e||e.render((0,f.jsx)(O,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions}))}window.yoast=window.yoast||{},window.yoast.indexing=window.yoast.indexing||{},window.yoast.indexing.preIndexingActions={},window.yoast.indexing.indexingActions={},window.yoast.indexing.helpers={doAjaxRequest:function(e,t,s,n){return new Promise((i,r)=>{jQuery.ajax({type:e,url:t,beforeSend:s?e=>{e.setRequestHeader("X-WP-Nonce",s)}:null,data:n,dataType:"json",success:i,error:r})})}},window.yoast.indexing.registerPreIndexingAction=(e,t)=>{window.yoast.indexing.preIndexingActions[e]=t,P()},window.yoast.indexing.registerIndexingAction=(e,t)=>{window.yoast.indexing.indexingActions[e]=t,P()},n()(function(){const e=document.getElementById("yoast-seo-indexing-action");e&&(E=(0,t.createRoot)(e)),P()})})();
Distinguish Your Business From The Rest With The People That Make Up Your Team
We go Beyond a Resume to find high value, committed people
ready, willing, and able to add true value toward your organization's mission.
The right people make or break your business
We focus on resolving two types of challenges surrounding staffing and recruiting at Beyond a Resume: The first challenge comes when a business continues to grow, but does not have the full-time, internal, talent acquisition resources to hire the right people or talent necessary to keep up with their rate of progression as a company.
The second is a business that has a dedicated internal Human Resources Team, but requires outsourced assistance when the volume of people and talent needed exceeds short term internal capacity, OR the position(s) they seek to fill demand a specific skill set that is difficult to find, requiring added bandwidth.
In nearly any line of business, growth is a challenge in and of itself. Yet, the real problems arise in managing growth to ensure your progress remains profitable, sustainable, and repeatable. The biggest factor in this equation is usually found in your people. When you have the right people, success is unlimited. On the other hand, when you don’t have the right people in place or are having trouble finding enough of the right people, failure or stagnation is imminent.
The frustration that comes with the process of “hiring” can bring you to new levels of stress as the time cost involved eats away at your production elsewhere. If you have experienced this in the past, or are currently struggling with this issue, you’re certainly not alone. You may simply need the right partner to take the worst parts of this process off your plate so you can concentrate on your responsibilities, while we work diligently to reduce the noise and deliver only the ideal candidates worth your time and attention.
People can make or break your business and we go Beyond a Resume to find high value, committed people ready, willing, and able to add true value.