Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/plugins/wordpress-seo/js/dist/externals/relatedKeyphraseSuggestions.js
Arrière
(()=>{var e={54776:(e,a)=>{var l;!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(e=n(e,s(l)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var l in e)t.call(e,l)&&e[l]&&(a=n(a,l));return a}function n(e,a){return a?e?e+" "+a:e+a:e}e.exports?(r.default=r,e.exports=r):void 0===(l=function(){return r}.apply(a,[]))||(e.exports=l)}()}},a={};function l(t){var r=a[t];if(void 0!==r)return r.exports;var s=a[t]={exports:{}};return e[t](s,s.exports,l),s.exports}l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a}),a},l.d=(e,a)=>{for(var t in a)l.o(a,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";l.r(t),l.d(t,{CountrySelector:()=>M,DifficultyBullet:()=>f,IntentBadge:()=>y,KeyphrasesTable:()=>_,TableButton:()=>B,TrendGraph:()=>u});const e=window.React;var a=l.n(e);const r=window.yoast.propTypes;var s=l.n(r);const n=window.wp.i18n,o=[(0,n.__)("Twelve months ago","wordpress-seo"),(0,n.__)("Eleven months ago","wordpress-seo"),(0,n.__)("Ten months ago","wordpress-seo"),(0,n.__)("Nine months ago","wordpress-seo"),(0,n.__)("Eight months ago","wordpress-seo"),(0,n.__)("Seven months ago","wordpress-seo"),(0,n.__)("Six months ago","wordpress-seo"),(0,n.__)("Five months ago","wordpress-seo"),(0,n.__)("Four months ago","wordpress-seo"),(0,n.__)("Three months ago","wordpress-seo"),(0,n.__)("Two months ago","wordpress-seo"),(0,n.__)("Last month","wordpress-seo")],i=({data:e})=>{if(e.length!==o.length)throw new Error("The number of headers and header labels don't match.");return a().createElement("div",{className:"yst-sr-only"},a().createElement("table",null,a().createElement("caption",null,(0,n.__)("Keyphrase volume in the last 12 months on a scale from 0 to 100.","wordpress-seo")),a().createElement("thead",null,a().createElement("tr",null,o.map(((e,l)=>a().createElement("th",{key:l},e))))),a().createElement("tbody",null,a().createElement("tr",null,e.map(((e,l)=>{return a().createElement("td",{key:l},(t=e,Math.round(100*t)));var t}))))))};i.propTypes={data:s().arrayOf(s().number).isRequired};const u=({data:e})=>{if(12!==e.length){const a=12-e.length;for(let l=0;l<a;l++)e.unshift(0)}const l=Math.max(1,...e.map((e=>e))),t=e.map(((e,a)=>`${a/11*66},${22.2-e/l*22.2+1.8}`)).join(" "),r="0,24 "+t+" 66,24";return a().createElement(a().Fragment,null,a().createElement("svg",{width:66,height:24,viewBox:"0 0 66 24",className:"yst-block",role:"img","aria-hidden":"true",focusable:"false"},a().createElement("polygon",{className:"yst-fill-sky-200",points:r}),a().createElement("polyline",{fill:"none",className:"yst-stroke-blue-500",strokeWidth:1.8,strokeLinejoin:"round",strokeLinecap:"round",points:t})),a().createElement(i,{data:e}))};function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var t in l)({}).hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e},c.apply(null,arguments)}u.propTypes={data:s().arrayOf(s().number).isRequired};const d=window.yoast.uiLibrary,m=window.lodash;var b=l(54776),v=l.n(b);const p={i:{title:(0,n.__)("Informational","wordpress-seo"),description:(0,n.__)("The user wants to find an answer to a specific question.","wordpress-seo")},n:{title:(0,n.__)("Navigational","wordpress-seo"),description:(0,n.__)("The user wants to find a specific page or site.","wordpress-seo")},c:{title:(0,n.__)("Commercial","wordpress-seo"),description:(0,n.__)("The user wants to investigate brands or services.","wordpress-seo")},t:{title:(0,n.__)("Transactional","wordpress-seo"),description:(0,n.__)("The user wants to complete an action (conversion).","wordpress-seo")}},y=({value:e,className:l=""})=>{const[t,,,r,s]=(0,d.useToggleState)(!1);return p[e]?a().createElement("span",{"aria-description":`${p[e].title}, ${p[e].description}`,className:v()("yst-intent-badge",`yst-intent-badge--${e}`,l),onMouseEnter:r,onMouseLeave:s},e.toUpperCase(),t&&a().createElement(d.Tooltip,{className:"yst-flex yst-flex-col yst-w-48 yst-text-xs yst-leading-4 yst-font-normal"},a().createElement("span",{className:"yst-font-medium"},p[e].title," "),p[e].description)):null};y.propTypes={value:s().oneOf(["i","n","c","t"]).isRequired,className:s().string};const w=[{min:0,max:14,name:"very-easy",tooltip:{title:(0,n.__)("Very easy","wordpress-seo"),description:(0,n.__)("Your chance to start ranking new pages.","wordpress-seo")}},{min:15,max:29,name:"easy",tooltip:{title:(0,n.__)("Easy","wordpress-seo"),description:(0,n.__)("You will need quality content focused on the keyword’s intent.","wordpress-seo")}},{min:30,max:49,name:"possible",tooltip:{title:(0,n.__)("Possible","wordpress-seo"),description:(0,n.__)("You will need well-structured and unique content.","wordpress-seo")}},{min:50,max:69,name:"difficult",tooltip:{title:(0,n.__)("Difficult","wordpress-seo"),description:(0,n.__)("You will need lots of ref. domains and optimized content.","wordpress-seo")}},{min:70,max:84,name:"hard",tooltip:{title:(0,n.__)("Hard","wordpress-seo"),description:(0,n.__)("You will need lots of high-quality ref. domains and optimized content.","wordpress-seo")}},{min:85,max:100,name:"very-hard",tooltip:{title:(0,n.__)("Very hard","wordpress-seo"),description:(0,n.__)("It will take a lot of on-page SEO, link building, and content promotion efforts.","wordpress-seo")}}],f=({value:e})=>{const[l,,,t,r]=(0,d.useToggleState)(!1),s=(e=>{for(const a of w)if(a.min<=e&&e<=a.max)return a})(e);return s?a().createElement("div",{"aria-description":`${s.tooltip.title}, ${s.tooltip.description}`,className:"yst-flex yst-gap-2 yst-items-center yst-relative yst-w-10",onMouseEnter:t,onMouseLeave:r},a().createElement("div",{className:"yst-text-right yst-w-5"},e),a().createElement("div",{className:v()("yst-w-3 yst-h-3 yst-rounded-full",`yst-difficulty--${s.name}`)}),l&&a().createElement(d.Tooltip,{className:"yst-flex yst-flex-col yst-w-48 yst-text-xs yst-leading-4 yst-font-normal",position:"left"},a().createElement("span",{className:"yst-font-medium"},s.tooltip.title," "),s.tooltip.description)):null};f.propTypes={value:s().number.isRequired};const g=({keyword:e="",searchVolume:l="",trends:t=[],keywordDifficultyIndex:r=-1,intent:s=[],renderButton:n,relatedKeyphrases:o})=>a().createElement(d.Table.Row,null,a().createElement(d.Table.Cell,null,e),a().createElement(d.Table.Cell,null,a().createElement("div",{className:"yst-flex yst-gap-2"},s.length>0&&s.map(((l,t)=>a().createElement(y,{key:`${t}-${e}-${l}`,value:l}))))),a().createElement(d.Table.Cell,null,a().createElement("div",{className:"yst-flex yst-justify-end"},l)),a().createElement(d.Table.Cell,null,a().createElement(u,{data:t})),a().createElement(d.Table.Cell,null,a().createElement("div",{className:"yst-flex yst-justify-end"},a().createElement(f,{value:r}))),(0,m.isFunction)(n)&&a().createElement(d.Table.Cell,null,n(e,o)));g.propTypes={keyword:s().string,searchVolume:s().string,trends:s().arrayOf(s().number),keywordDifficultyIndex:s().number,intent:s().arrayOf(s().string),renderButton:s().func,relatedKeyphrases:s().arrayOf(s().shape({key:s().string,keyword:s().string,results:s().array,score:s().number}))};const h=({withButton:e=!1})=>a().createElement(d.Table.Row,null,a().createElement(d.Table.Cell,{className:"yst-w-56"},a().createElement(d.SkeletonLoader,{className:"yst-w-44 yst-h-5"})),a().createElement(d.Table.Cell,null,a().createElement(d.SkeletonLoader,{className:"yst-w-5 yst-h-5"})),a().createElement(d.Table.Cell,null,a().createElement("div",{className:"yst-flex yst-justify-end"},a().createElement(d.SkeletonLoader,{className:"yst-w-14 yst-h-5"}))),a().createElement(d.Table.Cell,null,a().createElement(d.SkeletonLoader,{className:"yst-w-16 yst-h-5"})),a().createElement(d.Table.Cell,null,a().createElement("div",{className:"yst-flex yst-gap-2 yst-justify-end"},a().createElement(d.SkeletonLoader,{className:"yst-w-4 yst-h-5"}),a().createElement(d.SkeletonLoader,{className:"yst-w-3 yst-h-5"}))),e&&a().createElement(d.Table.Cell,null,a().createElement(d.SkeletonLoader,{className:"yst-w-16 yst-h-7"})));h.propTypes={withButton:s().bool};const E=["i","n","t","c"],_=({columnNames:e=[],data:l,renderButton:t,relatedKeyphrases:r=[],className:s="",isPending:o=!1})=>{const i=null==l?void 0:l.map((a=>((e,a)=>{const l={};return e.forEach(((e,t)=>{switch(e){case"Trends":l.trends=a[t].split(",").map((e=>parseFloat(e)));break;case"Intent":l.intent=a[t].split(",").map((e=>E[Number(e)]));break;case"Keyword Difficulty Index":l.keywordDifficultyIndex=Number(a[t]);break;case"Search Volume":l.searchVolume=a[t];break;default:l[e.toLowerCase()]=a[t]}})),l})(e,a)));return i&&0!==i.length||o?a().createElement(d.Table,{className:s},a().createElement(d.Table.Head,null,a().createElement(d.Table.Row,null,a().createElement(d.Table.Header,null,(0,n.__)("Related keyphrase","wordpress-seo")),a().createElement(d.Table.Header,null,(0,n.__)("Intent","wordpress-seo")),a().createElement(d.Table.Header,null,a().createElement("div",{className:"yst-flex yst-justify-end"},(0,n.__)("Volume","wordpress-seo"))),a().createElement(d.Table.Header,null,(0,n.__)("Trend","wordpress-seo")),a().createElement(d.Table.Header,{className:"yst-whitespace-nowrap"},a().createElement("div",{className:"yst-flex yst-justify-end"},(0,n.__)("Difficulty %","wordpress-seo"))),t&&a().createElement(d.Table.Header,{className:"yst-min-w-28"},a().createElement("div",{className:"yst-flex yst-justify-end"},(0,n.__)("Add keyphrase","wordpress-seo"))))),a().createElement(d.Table.Body,null,i&&i.map(((e,l)=>a().createElement(g,c({key:`related-keyphrase-${l}`,renderButton:t,relatedKeyphrases:r},e)))),o&&Array.from({length:10},((e,l)=>a().createElement(h,{key:`loading-row-${l}`,withButton:(0,m.isFunction)(t)}))))):null};_.propTypes={columnNames:s().arrayOf(s().string),data:s().arrayOf(s().arrayOf(s().string)),relatedKeyphrases:s().arrayOf(s().shape({key:s().string,keyword:s().string,results:s().array,score:s().number})),renderButton:s().func,className:s().string,isPending:s().bool},_.displayName="KeyphrasesTable";const N=e.forwardRef((function(a,l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:l},a),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))})),T=e.forwardRef((function(a,l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:l},a),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))})),k=e.forwardRef((function(a,l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:l},a),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))})),C=e.forwardRef((function(a,l){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:l},a),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),S={add:{button:{Icon:N,label:(0,n.__)("Add","wordpress-seo"),variant:"secondary"},success:{Icon:T,label:(0,n.__)("Added!","wordpress-seo")}},remove:{button:{Icon:k,label:(0,n.__)("Remove","wordpress-seo"),variant:"tertiary"},success:{Icon:C,label:(0,n.__)("Removed!","wordpress-seo")}}},x=({variant:e,className:l=""})=>{const t=S[e].success.Icon;return a().createElement("div",{role:"alert",className:v()("yst-success-message yst-animate-appear-disappear",`yst-success-message-${e}`,l)},a().createElement(t,{className:"yst-success-icon"}),S[e].success.label)};x.propTypes={variant:s().oneOf(["add","remove"]),className:s().string};const B=(0,e.forwardRef)((({variant:e="add",className:l="",...t},r)=>{const s=S[e].button.Icon;return a().createElement(d.Button,c({},t,{ref:r,variant:S[e].button.variant,size:"small",className:v()("yst-table-button",l)}),a().createElement(s,{className:"yst-button-icon"}),S[e].button.label)}));B.propTypes={variant:s().oneOf(["add","remove"]).isRequired,className:s().string},B.displayName="TableButton",B.SuccessMessage=x;const L=[{value:"us",label:"United States - US"},{value:"uk",label:"United Kingdom - UK"},{value:"ca",label:"Canada - CA"},{value:"ru",label:"Russia - RU"},{value:"de",label:"Germany - DE"},{value:"fr",label:"France - FR"},{value:"es",label:"Spain - ES"},{value:"it",label:"Italy - IT"},{value:"br",label:"Brazil - BR"},{value:"au",label:"Australia - AU"},{value:"ar",label:"Argentina - AR"},{value:"be",label:"Belgium - BE"},{value:"ch",label:"Switzerland - CH"},{value:"dk",label:"Denmark - DK"},{value:"fi",label:"Finland - FI"},{value:"hk",label:"Hong Kong - HK"},{value:"ie",label:"Ireland - IE"},{value:"il",label:"Israel - IL"},{value:"mx",label:"Mexico - MX"},{value:"nl",label:"Netherlands - NL"},{value:"no",label:"Norway - NO"},{value:"pl",label:"Poland - PL"},{value:"se",label:"Sweden - SE"},{value:"sg",label:"Singapore - SG"},{value:"tr",label:"Turkey - TR"},{value:"jp",label:"Japan - JP"},{value:"in",label:"India - IN"},{value:"hu",label:"Hungary - HU"},{value:"af",label:"Afghanistan - AF"},{value:"al",label:"Albania - AL"},{value:"dz",label:"Algeria - DZ"},{value:"ao",label:"Angola - AO"},{value:"am",label:"Armenia - AM"},{value:"at",label:"Austria - AT"},{value:"az",label:"Azerbaijan - AZ"},{value:"bh",label:"Bahrain - BH"},{value:"bd",label:"Bangladesh - BD"},{value:"by",label:"Belarus - BY"},{value:"bz",label:"Belize - BZ"},{value:"bo",label:"Bolivia - BO"},{value:"ba",label:"Bosnia and Herzegovina - BA"},{value:"bw",label:"Botswana - BW"},{value:"bn",label:"Brunei - BN"},{value:"bg",label:"Bulgaria - BG"},{value:"cv",label:"Cabo Verde - CV"},{value:"kh",label:"Cambodia - KH"},{value:"cm",label:"Cameroon - CM"},{value:"cl",label:"Chile - CL"},{value:"co",label:"Colombia - CO"},{value:"cr",label:"Costa Rica - CR"},{value:"hr",label:"Croatia - HR"},{value:"cy",label:"Cyprus - CY"},{value:"cz",label:"Czech Republic - CZ"},{value:"cd",label:"Congo - CD"},{value:"do",label:"Dominican Republic - DO"},{value:"ec",label:"Ecuador - EC"},{value:"eg",label:"Egypt - EG"},{value:"sv",label:"El Salvador - SV"},{value:"ee",label:"Estonia - EE"},{value:"et",label:"Ethiopia - ET"},{value:"ge",label:"Georgia - GE"},{value:"gh",label:"Ghana - GH"},{value:"gr",label:"Greece - GR"},{value:"gt",label:"Guatemala - GT"},{value:"gy",label:"Guyana - GY"},{value:"ht",label:"Haiti - HT"},{value:"hn",label:"Honduras - HN"},{value:"is",label:"Iceland - IS"},{value:"id",label:"Indonesia - ID"},{value:"jm",label:"Jamaica - JM"},{value:"jo",label:"Jordan - JO"},{value:"kz",label:"Kazakhstan - KZ"},{value:"kw",label:"Kuwait - KW"},{value:"lv",label:"Latvia - LV"},{value:"lb",label:"Lebanon - LB"},{value:"lt",label:"Lithuania - LT"},{value:"lu",label:"Luxembourg - LU"},{value:"mg",label:"Madagascar - MG"},{value:"my",label:"Malaysia - MY"},{value:"mt",label:"Malta - MT"},{value:"mu",label:"Mauritius - MU"},{value:"md",label:"Moldova - MD"},{value:"mn",label:"Mongolia - MN"},{value:"me",label:"Montenegro - ME"},{value:"ma",label:"Morocco - MA"},{value:"mz",label:"Mozambique - MZ"},{value:"na",label:"Namibia - NA"},{value:"np",label:"Nepal - NP"},{value:"nz",label:"New Zealand - NZ"},{value:"ni",label:"Nicaragua - NI"},{value:"ng",label:"Nigeria - NG"},{value:"om",label:"Oman - OM"},{value:"py",label:"Paraguay - PY"},{value:"pe",label:"Peru - PE"},{value:"ph",label:"Philippines - PH"},{value:"pt",label:"Portugal - PT"},{value:"ro",label:"Romania - RO"},{value:"sa",label:"Saudi Arabia - SA"},{value:"sn",label:"Senegal - SN"},{value:"rs",label:"Serbia - RS"},{value:"sk",label:"Slovakia - SK"},{value:"si",label:"Slovenia - SI"},{value:"za",label:"South Africa - ZA"},{value:"kr",label:"South Korea - KR"},{value:"lk",label:"Sri Lanka - LK"},{value:"th",label:"Thailand - TH"},{value:"bs",label:"Bahamas - BS"},{value:"tt",label:"Trinidad and Tobago - TT"},{value:"tn",label:"Tunisia - TN"},{value:"ua",label:"Ukraine - UA"},{value:"ae",label:"United Arab Emirates - AE"},{value:"uy",label:"Uruguay - UY"},{value:"ve",label:"Venezuela - VE"},{value:"vn",label:"Vietnam - VN"},{value:"zm",label:"Zambia - ZM"},{value:"zw",label:"Zimbabwe - ZW"},{value:"ly",label:"Libya - LY"}],M=({countryCode:l="us",activeCountryCode:t="us",onChange:r,onClick:s,className:o})=>{var i;const u=(0,e.useCallback)((e=>{L.find((a=>a.value===e.target.value))&&r(e.target.value)}),[r]);return a().createElement("div",{className:v()("yst-flex yst-items-end yst-gap-2",o)},a().createElement(d.AutocompleteField,{id:"yst-country-selector__select",label:(0,n.__)("Show results for:","wordpress-seo"),options:L,value:l,selectedLabel:null===(i=L.find((e=>e.value===l)))||void 0===i?void 0:i.label,onChange:r,onQueryChange:u,className:"yst-grow"},L.map((e=>a().createElement(d.AutocompleteField.Option,{key:e.value,value:e.value},e.label)))),a().createElement(d.Button,{id:"yst-country-selector__button",size:"large",variant:t===l?"secondary":"primary",onClick:s},(0,n.__)("Change country","wordpress-seo")))};M.propTypes={countryCode:s().string,activeCountryCode:s().string,onChange:s().func.isRequired,onClick:s().func.isRequired,className:s().string}})(),(window.yoast=window.yoast||{}).relatedKeyphraseSuggestions=t})();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages