plugin updates

This commit is contained in:
Tony Volpe
2024-11-20 22:40:39 -05:00
parent 0238f0c4ca
commit 3362947c6e
434 changed files with 13405 additions and 9202 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -247,8 +247,8 @@
(0,s.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,i.createInterpolateElement)((0,s.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,s.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d))),(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,t.createElement)(me.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:n,target:"_blank",ref:c},(0,t.createElement)(nt,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),a,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,s.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,t.createElement)(me.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:l},(0,s.__)("Close","wordpress-seo"))))};Gt.propTypes={learnMoreLink:l().string.isRequired,upsellLink:l().string.isRequired,thumbnail:l().shape({src:l().string.isRequired,width:l().string,height:l().string}).isRequired,wistiaEmbedPermission:l().shape({value:l().bool.isRequired,status:l().string.isRequired,set:l().func.isRequired}).isRequired,upsellLabel:l().string},Gt.defaultProps={upsellLabel:(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,s.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},t.forwardRef((function(e,s){return t.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:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),l().bool.isRequired,l().func,l().string.isRequired,l().string.isRequired,l().func.isRequired,l().string.isRequired,l().string.isRequired;const Vt="yoast-seo/editor",Qt=()=>{const e=(0,E.useSelect)((e=>e(Vt).selectLink("https://yoa.st/ai-fix-assessments-upsell-learn-more")),[]),r={upsellLink:(0,E.useSelect)((e=>e(Vt).selectLink("https://yoa.st/ai-fix-assessments-upsell")),[]),title:(0,s.__)("Fix assessments with AI!","wordpress-seo"),upsellLabel:(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,s.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},o=(0,E.useSelect)((e=>e(Vt).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),n=(0,i.useMemo)((()=>({src:o,width:"432",height:"244"})),[o]),a=(0,E.useSelect)((e=>e(Vt).selectWistiaEmbedPermissionValue()),[]),l=(0,E.useSelect)((e=>e(Vt).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,E.useDispatch)(Vt),d=(0,i.useMemo)((()=>({value:a,status:l,set:c})),[a,l,c]);return(0,t.createElement)(Gt,{learnMoreLink:e,thumbnail:n,wistiaEmbedPermission:d,...r})},Zt=e=>{let t=[...e];return e.forEach((e=>{e.innerBlocks&&e.innerBlocks.length>0&&(t=[...t,...Zt(e.innerBlocks)])})),t},Jt=({id:e,isPremium:r})=>{const n=e+"AIFixes",[a,,,l,c]=(0,me.useToggleState)(!1),d=(0,E.useSelect)((e=>e("yoast-seo/editor").getActiveAIFixesButton()),[]),p=(0,E.useSelect)((e=>e("yoast-seo/editor").getActiveMarker()),[]),{setActiveAIFixesButton:u,setActiveMarker:m,setMarkerPauseStatus:h,setMarkerStatus:y}=(0,E.useDispatch)("yoast-seo/editor"),g=(0,i.useRef)(null),[w,b]=(0,i.useState)(""),f=(0,s.__)("Optimize with AI","wordpress-seo"),k=(0,s.__)("Please switch to the visual editor to optimize with AI.","wordpress-seo"),x=d===n,{isEnabled:_,ariaLabel:v}=(0,E.useSelect)((e=>{if(null!==d&&!x)return{isEnabled:!1,ariaLabel:null};const t=e("yoast-seo/editor").getDisabledAIFixesButtons();if(Object.keys(t).includes(n))return{isEnabled:!1,ariaLabel:t[n]};if("visual"!==e("core/edit-post").getEditorMode())return{isEnabled:!1,ariaLabel:k};const s=Zt(e("core/block-editor").getBlocks()).every((t=>"visual"===e("core/block-editor").getBlockMode(t.clientId)));return{isEnabled:s,ariaLabel:s?f:k}}),[x,d]),R=()=>{p&&(m(null),h(!1),window.YoastSEO.analysis.applyMarks(new oe.Paper("",{}),[])),n===d?(u(null),y("enabled")):(u(n),y("disabled")),b("")},N=(0,i.useCallback)((()=>{r?((0,ye.doAction)("yoast.ai.fixAssessments",n),R()):l()}),[R,l]),S=(0,i.useCallback)((()=>{v&&b("yoast-tooltip yoast-tooltip-multiline "+(_?"yoast-tooltip-w":"yoast-tooltip-nw"))}),[_,v]),B=(0,i.useCallback)((()=>{b("")}),[]);return(0,t.createElement)(o.IconAIFixesButton,{onClick:N,ariaLabel:v,onPointerEnter:S,onPointerLeave:B,id:n,className:`ai-button ${w}`,pressed:x,disabled:!_},!r&&(0,t.createElement)(he,{className:"yst-fixes-button__lock-icon yst-text-amber-900"}),(0,t.createElement)(o.SparklesIcon,{pressed:x}),a&&(0,t.createElement)(me.Modal,{className:"yst-introduction-modal",isOpen:a,onClose:c,initialFocus:g},(0,t.createElement)(me.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl yst-introduction-modal-panel"},(0,t.createElement)(Qt,{onClose:c,focusElementRef:g}))))};Jt.propTypes={id:l().string.isRequired,isPremium:l().bool},Jt.defaultProps={isPremium:!1};const Xt=Jt,es=d().span`
(0,s.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},t.forwardRef((function(e,s){return t.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:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),l().bool.isRequired,l().func,l().func,l().string.isRequired,l().string.isRequired,l().string.isRequired,l().string.isRequired;const Vt="yoast-seo/editor",Qt=()=>{const e=(0,E.useSelect)((e=>e(Vt).selectLink("https://yoa.st/ai-fix-assessments-upsell-learn-more")),[]),r={upsellLink:(0,E.useSelect)((e=>e(Vt).selectLink("https://yoa.st/ai-fix-assessments-upsell")),[]),title:(0,s.__)("Fix assessments with AI!","wordpress-seo"),upsellLabel:(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,s.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},o=(0,E.useSelect)((e=>e(Vt).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),n=(0,i.useMemo)((()=>({src:o,width:"432",height:"244"})),[o]),a=(0,E.useSelect)((e=>e(Vt).selectWistiaEmbedPermissionValue()),[]),l=(0,E.useSelect)((e=>e(Vt).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,E.useDispatch)(Vt),d=(0,i.useMemo)((()=>({value:a,status:l,set:c})),[a,l,c]);return(0,t.createElement)(Gt,{learnMoreLink:e,thumbnail:n,wistiaEmbedPermission:d,...r})},Zt=e=>{let t=[...e];return e.forEach((e=>{e.innerBlocks&&e.innerBlocks.length>0&&(t=[...t,...Zt(e.innerBlocks)])})),t},Jt=({id:e,isPremium:r})=>{const n=e+"AIFixes",[a,,,l,c]=(0,me.useToggleState)(!1),d=(0,E.useSelect)((e=>e("yoast-seo/editor").getActiveAIFixesButton()),[]),p=(0,E.useSelect)((e=>e("yoast-seo/editor").getActiveMarker()),[]),{setActiveAIFixesButton:u,setActiveMarker:m,setMarkerPauseStatus:h,setMarkerStatus:y}=(0,E.useDispatch)("yoast-seo/editor"),g=(0,i.useRef)(null),[w,b]=(0,i.useState)(""),f=(0,s.__)("Optimize with AI","wordpress-seo"),k=(0,s.__)("Please switch to the visual editor to optimize with AI.","wordpress-seo"),x=d===n,_=(0,E.useSelect)((e=>e("core/edit-post").getEditorMode()),[]),{isEnabled:v,ariaLabel:R}=(0,E.useSelect)((e=>{if(null!==d&&!x)return{isEnabled:!1,ariaLabel:null};const t=e("yoast-seo/editor").getDisabledAIFixesButtons();if(Object.keys(t).includes(n))return{isEnabled:!1,ariaLabel:t[n]};if("visual"!==_)return{isEnabled:!1,ariaLabel:k};const s=Zt(e("core/block-editor").getBlocks()).every((t=>"visual"===e("core/block-editor").getBlockMode(t.clientId)));return{isEnabled:s,ariaLabel:s?f:k}}),[x,d,_]);(0,i.useEffect)((()=>(y("visual"!==_||d?"disabled":"enabled"),()=>{y("disabled")})),[_,d,y]);const N=()=>{p&&(m(null),h(!1),window.YoastSEO.analysis.applyMarks(new oe.Paper("",{}),[])),n===d?(u(null),y("enabled")):(u(n),y("disabled")),b("")},S=(0,i.useCallback)((()=>{r?((0,ye.doAction)("yoast.ai.fixAssessments",n),N()):l()}),[N,l]),B=(0,i.useCallback)((()=>{R&&b("yoast-tooltip yoast-tooltip-multiline "+(v?"yoast-tooltip-w":"yoast-tooltip-nw"))}),[v,R]),C=(0,i.useCallback)((()=>{b("")}),[]);return(0,t.createElement)(o.IconAIFixesButton,{onClick:S,ariaLabel:R,onPointerEnter:B,onPointerLeave:C,id:n,className:`ai-button ${w}`,pressed:x,disabled:!v},!r&&(0,t.createElement)(he,{className:"yst-fixes-button__lock-icon yst-text-amber-900"}),(0,t.createElement)(o.SparklesIcon,{pressed:x}),a&&(0,t.createElement)(me.Modal,{className:"yst-introduction-modal",isOpen:a,onClose:c,initialFocus:g},(0,t.createElement)(me.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl yst-introduction-modal-panel"},(0,t.createElement)(Qt,{onClose:c,focusElementRef:g}))))};Jt.propTypes={id:l().string.isRequired,isPremium:l().bool},Jt.defaultProps={isPremium:!1};const Xt=Jt,es=d().span`
font-size: 1em;
font-weight: bold;
margin: 1.5em 0 1em;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
(()=>{"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 r in s)e.o(s,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:s[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AnalysisList:()=>I,AnalysisResult:()=>R,ContentAnalysis:()=>A,SiteSEOReport:()=>F,renderRatingToColor:()=>w});const s=window.React;var r=e.n(s);const o=window.wp.i18n,n=window.yoast.styledComponents;var i=e.n(n);const a=window.yoast.propTypes;var l=e.n(a);const u=window.lodash.noop;var d=e.n(u);const m=window.yoast.styleGuide,p=window.lodash,g=window.yoast.componentsNew,c=window.yoast.helpers,{stripTagsFromHtmlString:h}=c.strings,B=["a","b","strong","em","i"],k=i().div`
(()=>{"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 r in s)e.o(s,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:s[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AnalysisList:()=>I,AnalysisResult:()=>R,ContentAnalysis:()=>A,SiteSEOReport:()=>F,renderRatingToColor:()=>w});const s=window.React;var r=e.n(s);const o=window.wp.i18n,n=window.yoast.styledComponents;var i=e.n(n);const a=window.yoast.propTypes;var l=e.n(a);const u=window.lodash.noop;var d=e.n(u);const g=window.yoast.styleGuide,m=window.lodash,p=window.yoast.componentsNew,c=window.yoast.helpers,{stripTagsFromHtmlString:h}=c.strings,B=["a","b","strong","em","i"],k=i().div`
display: grid;
grid-template-rows: 1fr;
max-width: 32px;
@@ -13,32 +13,32 @@
align-items: flex-start;
position: relative;
gap: 12px;
`,C=i()(g.SvgIcon)`
`,C=i()(p.SvgIcon)`
margin: 3px 0 0 0;
`,x=i().p`
margin: 0;
flex: 1 1 auto;
color: ${e=>e.suppressedText?"rgba(30,30,30,0.5)":"inherit"};
`,y=({ariaLabel:e,id:t,className:r,status:o,onClick:n,isPressed:i})=>(0,s.createElement)(g.IconButtonToggle,{marksButtonStatus:o,className:r,onClick:n,id:t,icon:"eye",pressed:i,ariaLabel:e}),f=({markButtonFactory:e,...t})=>{const[r,o]=(0,s.useState)(!1),n=(0,s.useCallback)((()=>o(!1)),[]),i=(0,s.useCallback)((()=>o(!0)),[]);e=e||y;const{id:a,marker:l,hasMarksButton:u}=t;let d=null;return function(e){return!e.hasMarksButton||"hidden"===e.marksButtonStatus}(t)||(d=e({onClick:t.shouldUpsellHighlighting?i:t.onButtonClickMarks,status:t.marksButtonStatus,className:t.marksButtonClassName,id:t.buttonIdMarks,isPressed:t.pressed,ariaLabel:t.ariaLabelMarks})),(0,s.useEffect)((()=>{t.onResultChange(a,l,u)}),[a,l,u]),(0,s.createElement)(b,null,(0,s.createElement)(C,{icon:"circle",color:t.bulletColor,size:"13px"}),(0,s.createElement)(x,{suppressedText:t.suppressedText},t.hasBetaBadgeLabel&&(0,s.createElement)(g.BetaBadge,null),(0,s.createElement)("span",{dangerouslySetInnerHTML:{__html:h(t.text,B)}})),(0,s.createElement)(k,null,d,t.renderHighlightingUpsell(r,n),t.hasEditButton&&t.isPremium&&(0,s.createElement)(g.IconCTAEditButton,{className:t.editButtonClassName,onClick:t.onButtonClickEdit,id:t.buttonIdEdit,icon:"edit",ariaLabel:t.ariaLabelEdit}),t.renderAIFixesButton(t.hasAIFixes,t.id)))};f.propTypes={text:l().string.isRequired,suppressedText:l().bool,bulletColor:l().string.isRequired,hasMarksButton:l().bool.isRequired,hasEditButton:l().bool,hasAIButton:l().bool,hasAIFixes:l().bool,buttonIdMarks:l().string.isRequired,buttonIdEdit:l().string,pressed:l().bool.isRequired,ariaLabelMarks:l().string.isRequired,ariaLabelEdit:l().string,onButtonClickMarks:l().func.isRequired,onButtonClickEdit:l().func,marksButtonStatus:l().string,marksButtonClassName:l().string,markButtonFactory:l().func,editButtonClassName:l().string,hasBetaBadgeLabel:l().bool,isPremium:l().bool,onResultChange:l().func,id:l().string,marker:l().oneOfType([l().func,l().array]),shouldUpsellHighlighting:l().bool,renderHighlightingUpsell:l().func,renderAIFixesButton:l().func},f.defaultProps={suppressedText:!1,marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",hasBetaBadgeLabel:!1,hasEditButton:!1,hasAIFixes:!1,buttonIdEdit:"",ariaLabelEdit:"",onButtonClickEdit:p.noop,isPremium:!1,onResultChange:p.noop,id:"",marker:p.noop,shouldUpsellHighlighting:!1,renderHighlightingUpsell:p.noop,renderAIFixesButton:p.noop};const R=f,E=i().ul`
`,y=({ariaLabel:e,id:t,className:r,status:o,onClick:n,isPressed:i})=>(0,s.createElement)(p.IconButtonToggle,{marksButtonStatus:o,className:r,onClick:n,id:t,icon:"eye",pressed:i,ariaLabel:e}),f=({markButtonFactory:e,...t})=>{const[r,o]=(0,s.useState)(!1),n=(0,s.useCallback)((()=>o(!1)),[]),i=(0,s.useCallback)((()=>o(!0)),[]);e=e||y;const{id:a,marker:l,hasMarksButton:u}=t;let d=null;return function(e){return!e.hasMarksButton||"hidden"===e.marksButtonStatus}(t)||(d=e({onClick:t.shouldUpsellHighlighting?i:t.onButtonClickMarks,status:t.marksButtonStatus,className:t.marksButtonClassName,id:t.buttonIdMarks,isPressed:t.pressed,ariaLabel:t.ariaLabelMarks})),(0,s.useEffect)((()=>{t.onResultChange(a,l,u)}),[a,l,u]),(0,s.createElement)(b,null,(0,s.createElement)(C,{icon:"circle",color:t.bulletColor,size:"13px"}),(0,s.createElement)(x,{suppressedText:t.suppressedText},t.hasBetaBadgeLabel&&(0,s.createElement)(p.BetaBadge,null),(0,s.createElement)("span",{dangerouslySetInnerHTML:{__html:h(t.text,B)}})),(0,s.createElement)(k,null,d,t.renderHighlightingUpsell(r,n),t.hasEditButton&&t.isPremium&&(0,s.createElement)(p.IconCTAEditButton,{className:t.editButtonClassName,onClick:t.onButtonClickEdit,id:t.buttonIdEdit,icon:"edit",ariaLabel:t.ariaLabelEdit}),t.renderAIFixesButton(t.hasAIFixes,t.id)))};f.propTypes={text:l().string.isRequired,suppressedText:l().bool,bulletColor:l().string.isRequired,hasMarksButton:l().bool.isRequired,hasEditButton:l().bool,hasAIButton:l().bool,hasAIFixes:l().bool,buttonIdMarks:l().string.isRequired,buttonIdEdit:l().string,pressed:l().bool.isRequired,ariaLabelMarks:l().string.isRequired,ariaLabelEdit:l().string,onButtonClickMarks:l().func.isRequired,onButtonClickEdit:l().func,marksButtonStatus:l().string,marksButtonClassName:l().string,markButtonFactory:l().func,editButtonClassName:l().string,hasBetaBadgeLabel:l().bool,isPremium:l().bool,onResultChange:l().func,id:l().string,marker:l().oneOfType([l().func,l().array]),shouldUpsellHighlighting:l().bool,renderHighlightingUpsell:l().func,renderAIFixesButton:l().func},f.defaultProps={suppressedText:!1,marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",hasBetaBadgeLabel:!1,hasEditButton:!1,hasAIFixes:!1,buttonIdEdit:"",ariaLabelEdit:"",onButtonClickEdit:m.noop,isPremium:!1,onResultChange:m.noop,id:"",marker:m.noop,shouldUpsellHighlighting:!1,renderHighlightingUpsell:m.noop,renderAIFixesButton:m.noop};const R=f,E=i().ul`
margin: 8px 0;
padding: 0;
list-style: none;
`;function w(e){switch(e){case"good":return m.colors.$color_good;case"OK":return m.colors.$color_ok;case"bad":return m.colors.$color_bad;default:return m.colors.$color_score_icon}}function I(e){return(0,s.createElement)(E,{role:"list"},e.results.map((t=>{const r=w(t.rating),n=t.markerId===e.marksButtonActivatedResult,i=t.id+"Mark",a=t.id+"Edit";let l="";l="disabled"===e.marksButtonStatus?(0,o.__)("Marks are disabled in current view","wordpress-seo"):n?(0,o.__)("Remove highlight from the text","wordpress-seo"):(0,o.__)("Highlight this result in the text","wordpress-seo");const u=t.editFieldName,d=""===u?"":(0,o.sprintf)(
`;function w(e){switch(e){case"good":return g.colors.$color_good;case"OK":return g.colors.$color_ok;case"bad":return g.colors.$color_bad;default:return g.colors.$color_score_icon}}function I(e){return(0,s.createElement)(E,{role:"list"},e.results.map((t=>{const r=w(t.rating),n=t.markerId===e.marksButtonActivatedResult,i=t.id+"Mark",a=t.id+"Edit";let l="";l="disabled"===e.marksButtonStatus?(0,o.__)("Highlighting is currently disabled","wordpress-seo"):n?(0,o.__)("Remove highlight from the text","wordpress-seo"):(0,o.__)("Highlight this result in the text","wordpress-seo");const u=t.editFieldName,d=""===u?"":(0,o.sprintf)(
/* Translators: %1$s refers to the name of the field that should be edited (keyphrase, meta description,
slug or SEO title). */
(0,o.__)("Edit your %1$s","wordpress-seo"),u);return(0,s.createElement)(R,{key:t.id,id:t.id,text:t.text,marker:t.marker,bulletColor:r,hasMarksButton:t.hasMarks,hasEditButton:t.hasJumps,hasAIFixes:t.hasAIFixes,ariaLabelMarks:l,ariaLabelEdit:d,pressed:n,suppressedText:"upsell"===t.rating,buttonIdMarks:i,buttonIdEdit:a,onButtonClickMarks:()=>e.onMarksButtonClick(t.id,t.marker),onButtonClickEdit:()=>e.onEditButtonClick(t.id),marksButtonClassName:e.marksButtonClassName,editButtonClassName:e.editButtonClassName,marksButtonStatus:e.marksButtonStatus,hasBetaBadgeLabel:t.hasBetaBadge,isPremium:e.isPremium,onResultChange:e.onResultChange,markButtonFactory:e.markButtonFactory,shouldUpsellHighlighting:e.shouldUpsellHighlighting,renderAIFixesButton:e.renderAIFixesButton,renderHighlightingUpsell:e.renderHighlightingUpsell})})))}I.propTypes={results:l().array.isRequired,marksButtonActivatedResult:l().string,marksButtonStatus:l().string,marksButtonClassName:l().string,editButtonClassName:l().string,markButtonFactory:l().func,onMarksButtonClick:l().func,onEditButtonClick:l().func,isPremium:l().bool,onResultChange:l().func,shouldUpsellHighlighting:l().bool,renderHighlightingUpsell:l().func,renderAIFixesButton:l().func},I.defaultProps={marksButtonActivatedResult:"",marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",onMarksButtonClick:d(),onEditButtonClick:d(),isPremium:!1,onResultChange:d(),shouldUpsellHighlighting:!1,renderHighlightingUpsell:d(),renderAIFixesButton:d()};const v=i().div`
width: 100%;
background-color: white;
border-bottom: 1px solid transparent; // Avoid parent and child margin collapsing.
`,N=i()(g.Collapsible)`
`,N=i()(p.Collapsible)`
margin-bottom: 8px;
${g.StyledIconsButton} {
${p.StyledIconsButton} {
padding: 8px 0;
color: ${m.colors.$color_blue};
color: ${g.colors.$color_blue};
margin: -2px 8px 0 -2px; // Compensate icon size set to 18px.
}
`;class _ extends r().Component{renderCollapsible(e,t,r){return(0,s.createElement)(N,{initialIsOpen:!0,title:`${e} (${r.length})`,prefixIcon:{icon:"angle-up",color:m.colors.$color_grey_dark,size:"18px"},prefixIconCollapsed:{icon:"angle-down",color:m.colors.$color_grey_dark,size:"18px"},suffixIcon:null,suffixIconCollapsed:null,headingProps:{level:t,fontSize:"13px",fontWeight:"500",color:"#1e1e1e"}},(0,s.createElement)(I,{results:r,marksButtonActivatedResult:this.props.activeMarker,marksButtonStatus:this.props.marksButtonStatus,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,markButtonFactory:this.props.markButtonFactory,onMarksButtonClick:this.props.onMarkButtonClick,onEditButtonClick:this.props.onEditButtonClick,renderAIFixesButton:this.props.renderAIFixesButton,isPremium:this.props.isPremium,onResultChange:this.props.onResultChange,shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,renderHighlightingUpsell:this.props.renderHighlightingUpsell}))}render(){const{problemsResults:e,improvementsResults:t,goodResults:r,considerationsResults:n,errorsResults:i,upsellResults:a,headingLevel:l,resultCategoryLabels:u}=this.props,d=i.length,m=e.length,p=t.length,g=n.length,c=r.length,h=a.length,B={errors:(0,o.__)("Errors","wordpress-seo"),problems:(0,o.__)("Problems","wordpress-seo"),improvements:(0,o.__)("Improvements","wordpress-seo"),considerations:(0,o.__)("Considerations","wordpress-seo"),goodResults:(0,o.__)("Good results","wordpress-seo")},k=Object.assign(B,u);return(0,s.createElement)(v,null,d>0&&this.renderCollapsible(k.errors,l,i),m+h>0&&this.renderCollapsible(k.problems,l,[...a,...e]),p>0&&this.renderCollapsible(k.improvements,l,t),g>0&&this.renderCollapsible(k.considerations,l,n),c>0&&this.renderCollapsible(k.goodResults,l,r))}}_.propTypes={onMarkButtonClick:l().func,onEditButtonClick:l().func,problemsResults:l().array,improvementsResults:l().array,goodResults:l().array,considerationsResults:l().array,errorsResults:l().array,upsellResults:l().array,headingLevel:l().number,marksButtonStatus:l().string,marksButtonClassName:l().string,markButtonFactory:l().func,editButtonClassName:l().string,activeMarker:l().string,isPremium:l().bool,resultCategoryLabels:l().shape({errors:l().string,problems:l().string,improvements:l().string,considerations:l().string,goodResults:l().string}),onResultChange:l().func,shouldUpsellHighlighting:l().bool,renderHighlightingUpsell:l().func,renderAIFixesButton:l().func},_.defaultProps={onMarkButtonClick:()=>{},onEditButtonClick:()=>{},problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[],errorsResults:[],upsellResults:[],headingLevel:4,marksButtonStatus:"enabled",marksButtonClassName:"",markButtonFactory:null,editButtonClassName:"",activeMarker:"",isPremium:!1,resultCategoryLabels:{},onResultChange:()=>{},shouldUpsellHighlighting:!1,renderHighlightingUpsell:()=>{},renderAIFixesButton:()=>{}};const A=_,M=i().div`
`;class _ extends r().Component{renderCollapsible(e,t,r){return(0,s.createElement)(N,{initialIsOpen:!0,title:`${e} (${r.length})`,prefixIcon:{icon:"angle-up",color:g.colors.$color_grey_dark,size:"18px"},prefixIconCollapsed:{icon:"angle-down",color:g.colors.$color_grey_dark,size:"18px"},suffixIcon:null,suffixIconCollapsed:null,headingProps:{level:t,fontSize:"13px",fontWeight:"500",color:"#1e1e1e"}},(0,s.createElement)(I,{results:r,marksButtonActivatedResult:this.props.activeMarker,marksButtonStatus:this.props.marksButtonStatus,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,markButtonFactory:this.props.markButtonFactory,onMarksButtonClick:this.props.onMarkButtonClick,onEditButtonClick:this.props.onEditButtonClick,renderAIFixesButton:this.props.renderAIFixesButton,isPremium:this.props.isPremium,onResultChange:this.props.onResultChange,shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,renderHighlightingUpsell:this.props.renderHighlightingUpsell}))}render(){const{problemsResults:e,improvementsResults:t,goodResults:r,considerationsResults:n,errorsResults:i,upsellResults:a,headingLevel:l,resultCategoryLabels:u}=this.props,d=i.length,g=e.length,m=t.length,p=n.length,c=r.length,h=a.length,B={errors:(0,o.__)("Errors","wordpress-seo"),problems:(0,o.__)("Problems","wordpress-seo"),improvements:(0,o.__)("Improvements","wordpress-seo"),considerations:(0,o.__)("Considerations","wordpress-seo"),goodResults:(0,o.__)("Good results","wordpress-seo")},k=Object.assign(B,u);return(0,s.createElement)(v,null,d>0&&this.renderCollapsible(k.errors,l,i),g+h>0&&this.renderCollapsible(k.problems,l,[...a,...e]),m>0&&this.renderCollapsible(k.improvements,l,t),p>0&&this.renderCollapsible(k.considerations,l,n),c>0&&this.renderCollapsible(k.goodResults,l,r))}}_.propTypes={onMarkButtonClick:l().func,onEditButtonClick:l().func,problemsResults:l().array,improvementsResults:l().array,goodResults:l().array,considerationsResults:l().array,errorsResults:l().array,upsellResults:l().array,headingLevel:l().number,marksButtonStatus:l().string,marksButtonClassName:l().string,markButtonFactory:l().func,editButtonClassName:l().string,activeMarker:l().string,isPremium:l().bool,resultCategoryLabels:l().shape({errors:l().string,problems:l().string,improvements:l().string,considerations:l().string,goodResults:l().string}),onResultChange:l().func,shouldUpsellHighlighting:l().bool,renderHighlightingUpsell:l().func,renderAIFixesButton:l().func},_.defaultProps={onMarkButtonClick:()=>{},onEditButtonClick:()=>{},problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[],errorsResults:[],upsellResults:[],headingLevel:4,marksButtonStatus:"enabled",marksButtonClassName:"",markButtonFactory:null,editButtonClassName:"",activeMarker:"",isPremium:!1,resultCategoryLabels:{},onResultChange:()=>{},shouldUpsellHighlighting:!1,renderHighlightingUpsell:()=>{},renderAIFixesButton:()=>{}};const A=_,H=i().div`
`,S=i().p`
font-size: 14px;
`,H=e=>(0,s.createElement)(M,{className:e.className},(0,s.createElement)(S,{className:`${e.className}__text`},e.seoAssessmentText),(0,s.createElement)(g.StackedProgressBar,{className:"progress",items:e.seoAssessmentItems,barHeight:e.barHeight}),(0,s.createElement)(g.ScoreAssessments,{className:"assessments",items:e.seoAssessmentItems}));H.propTypes={className:l().string,seoAssessmentText:l().string,seoAssessmentItems:l().arrayOf(l().shape({html:l().string.isRequired,value:l().number.isRequired,color:l().string.isRequired})),barHeight:l().string},H.defaultProps={className:"seo-assessment",seoAssessmentText:"SEO Assessment",seoAssessmentItems:null,barHeight:"24px"};const F=H;(window.yoast=window.yoast||{}).analysisReport=t})();
`,M=e=>(0,s.createElement)(H,{className:e.className},(0,s.createElement)(S,{className:`${e.className}__text`},e.seoAssessmentText),(0,s.createElement)(p.StackedProgressBar,{className:"progress",items:e.seoAssessmentItems,barHeight:e.barHeight}),(0,s.createElement)(p.ScoreAssessments,{className:"assessments",items:e.seoAssessmentItems}));M.propTypes={className:l().string,seoAssessmentText:l().string,seoAssessmentItems:l().arrayOf(l().shape({html:l().string.isRequired,value:l().number.isRequired,color:l().string.isRequired})),barHeight:l().string},M.defaultProps={className:"seo-assessment",seoAssessmentText:"SEO Assessment",seoAssessmentItems:null,barHeight:"24px"};const F=M;(window.yoast=window.yoast||{}).analysisReport=t})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -10,4 +10,4 @@
(0,Y.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,n.createInterpolateElement)((0,Y.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,Y.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d))),(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,t.createElement)(l.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:c},(0,t.createElement)(D,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),i,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,Y.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,t.createElement)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:o},(0,Y.__)("Close","wordpress-seo"))))};Ce.propTypes={learnMoreLink:V().string.isRequired,upsellLink:V().string.isRequired,thumbnail:V().shape({src:V().string.isRequired,width:V().string,height:V().string}).isRequired,wistiaEmbedPermission:V().shape({value:V().bool.isRequired,status:V().string.isRequired,set:V().func.isRequired}).isRequired,upsellLabel:V().string},Ce.defaultProps={upsellLabel:(0,Y.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,Y.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},t.forwardRef((function(e,s){return t.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:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),V().bool.isRequired,V().func,V().string.isRequired,V().string.isRequired,V().func.isRequired,V().string.isRequired,V().string.isRequired;const qe="yoast-seo/introductions",$e=()=>{const e=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell-learn-more")),[]),r=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell")),[]),a=(0,s.useSelect)((e=>e(qe).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),i=(0,n.useMemo)((()=>({src:a,width:"432",height:"244"})),[a]),l=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionValue()),[]),o=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,s.useDispatch)(qe),d=(0,n.useMemo)((()=>({value:l,status:o,set:c})),[l,o,c]);return(0,t.createElement)(Ce,{learnMoreLink:e,upsellLink:r,thumbnail:i,wistiaEmbedPermission:d})};window.YoastSEO=window.YoastSEO||{};const je=(0,n.createContext)({}),Ae=({children:e,initialComponents:r})=>{const[a,i]=(0,n.useState)(r),l=(0,s.useSelect)((e=>e(qe).selectIntroductions()),[]),c=(0,n.useCallback)(((e,t)=>{(0,o.find)(l,{id:e})?i((s=>({...s,[e]:t}))):console.error("Warning: Introductions received a registration for an unknown key:",e)}),[l,i]);return(0,n.useEffect)((()=>{window.YoastSEO._registerIntroductionComponent=c}),[c]),(0,t.createElement)(je.Provider,{value:a},e)};Ae.propTypes={children:V().node.isRequired,initialComponents:V().object.isRequired};const Me=()=>{const e=(0,s.useSelect)((e=>e(qe).selectCurrentIntroduction()),[]),r=(0,n.useContext)(je),a=(0,n.useMemo)((()=>null==r?void 0:r[null==e?void 0:e.id]),[e,r]);return a?(0,t.createElement)(a,null):null},Be=({children:e})=>{const[s,r]=(0,n.useState)(!0),a=(0,n.useRef)(null),i=(0,n.useCallback)((()=>r(!1)),[]);return(0,t.createElement)(l.Modal,{className:"yst-introduction-modal yst-h-[calc(100vh - 1rem)] sm:yst-h-[calc(100vh - 2rem)] md:yst-h-[calc(100vh - 5rem)]) yst-overflow-y-auto",isOpen:s,onClose:i,initialFocus:a},(0,t.createElement)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl"},e))};Be.propTypes={children:V().node.isRequired};const ze="introductions",Te=(0,c.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.priority===t.priority?0:e.priority<t.priority?-1:1}),Ue=e=>({id:e.id||(0,c.nanoid)(),priority:e.priority||0}),Fe=(0,c.createSlice)({name:ze,initialState:Te.getInitialState({current:0}),reducers:{addIntroduction:{reducer:Te.addOne,prepare:e=>({payload:Ue(e)})},addIntroductions:{reducer:Te.addMany,prepare:e=>({payload:(0,o.map)(e,Ue)})},setIntroductions:{reducer:Te.setAll,prepare:e=>({payload:(0,o.map)(e,Ue)})}}}),We=Fe.getInitialState,Ye=Te.getSelectors((e=>(0,o.get)(e,ze,{}))),He={selectCurrentIntroductionIndex:e=>(0,o.get)(e,[ze,"current"],0),selectIntroduction:Ye.selectById,selectIntroductions:Ye.selectAll};He.selectCurrentIntroduction=(0,c.createSelector)([He.selectCurrentIntroductionIndex,He.selectIntroductions],((e,t)=>t[e]));const Ve=Fe.actions,De=Fe.reducer,Ze="wpseoIntroductions";a()((()=>{const e=(0,o.get)(window,`${Ze}.introductions`,[]);if((0,o.isEmpty)(e))return;((e={})=>{(0,s.register)((e=>(0,s.createReduxStore)(qe,{actions:{...Ve,...f,...k,...U},selectors:{...He,...h,...N,...T},initialState:(0,o.merge)({},{[ze]:We(),[p]:g(),[b]:_(),[M]:z()},e),reducer:(0,s.combineReducers)({[ze]:De,[p]:E,[b]:S,[M]:W}),controls:{...F}}))(e))})({[p]:(0,o.get)(window,`${Ze}.linkParams`,{}),[b]:(0,o.get)(window,`${Ze}.pluginUrl`,""),[M]:{value:"1"===(0,o.get)(window,`${Ze}.wistiaEmbedPermission`,!1)}}),(0,s.dispatch)(qe).setIntroductions(e);const r={isRtl:Boolean((0,o.get)(window,`${Ze}.isRtl`,!1))},a={"ai-fix-assessments-upsell":$e},c=document.createElement("div");c.id="wpseo-introductions",document.body.appendChild(c),(0,n.render)((0,t.createElement)(l.Root,{context:r},(0,t.createElement)(Ae,{initialComponents:a},(0,t.createElement)(Be,null,(0,t.createElement)(Me,null)))),c,(()=>{(0,i.doAction)("yoast.introductions.ready")}))}))})();
(0,Y.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},t.forwardRef((function(e,s){return t.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:s},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),V().bool.isRequired,V().func,V().func,V().string.isRequired,V().string.isRequired,V().string.isRequired,V().string.isRequired;const qe="yoast-seo/introductions",$e=()=>{const e=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell-learn-more")),[]),r=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell")),[]),a=(0,s.useSelect)((e=>e(qe).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),i=(0,n.useMemo)((()=>({src:a,width:"432",height:"244"})),[a]),l=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionValue()),[]),o=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,s.useDispatch)(qe),d=(0,n.useMemo)((()=>({value:l,status:o,set:c})),[l,o,c]);return(0,t.createElement)(Ce,{learnMoreLink:e,upsellLink:r,thumbnail:i,wistiaEmbedPermission:d})};window.YoastSEO=window.YoastSEO||{};const je=(0,n.createContext)({}),Ae=({children:e,initialComponents:r})=>{const[a,i]=(0,n.useState)(r),l=(0,s.useSelect)((e=>e(qe).selectIntroductions()),[]),c=(0,n.useCallback)(((e,t)=>{(0,o.find)(l,{id:e})?i((s=>({...s,[e]:t}))):console.error("Warning: Introductions received a registration for an unknown key:",e)}),[l,i]);return(0,n.useEffect)((()=>{window.YoastSEO._registerIntroductionComponent=c}),[c]),(0,t.createElement)(je.Provider,{value:a},e)};Ae.propTypes={children:V().node.isRequired,initialComponents:V().object.isRequired};const Me=()=>{const e=(0,s.useSelect)((e=>e(qe).selectCurrentIntroduction()),[]),r=(0,n.useContext)(je),a=(0,n.useMemo)((()=>null==r?void 0:r[null==e?void 0:e.id]),[e,r]);return a?(0,t.createElement)(a,null):null},Be=({children:e})=>{const[s,r]=(0,n.useState)(!0),a=(0,n.useRef)(null),i=(0,n.useCallback)((()=>r(!1)),[]);return(0,t.createElement)(l.Modal,{className:"yst-introduction-modal yst-h-[calc(100vh - 1rem)] sm:yst-h-[calc(100vh - 2rem)] md:yst-h-[calc(100vh - 5rem)]) yst-overflow-y-auto",isOpen:s,onClose:i,initialFocus:a},(0,t.createElement)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl"},e))};Be.propTypes={children:V().node.isRequired};const ze="introductions",Te=(0,c.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.priority===t.priority?0:e.priority<t.priority?-1:1}),Ue=e=>({id:e.id||(0,c.nanoid)(),priority:e.priority||0}),Fe=(0,c.createSlice)({name:ze,initialState:Te.getInitialState({current:0}),reducers:{addIntroduction:{reducer:Te.addOne,prepare:e=>({payload:Ue(e)})},addIntroductions:{reducer:Te.addMany,prepare:e=>({payload:(0,o.map)(e,Ue)})},setIntroductions:{reducer:Te.setAll,prepare:e=>({payload:(0,o.map)(e,Ue)})}}}),We=Fe.getInitialState,Ye=Te.getSelectors((e=>(0,o.get)(e,ze,{}))),He={selectCurrentIntroductionIndex:e=>(0,o.get)(e,[ze,"current"],0),selectIntroduction:Ye.selectById,selectIntroductions:Ye.selectAll};He.selectCurrentIntroduction=(0,c.createSelector)([He.selectCurrentIntroductionIndex,He.selectIntroductions],((e,t)=>t[e]));const Ve=Fe.actions,De=Fe.reducer,Ze="wpseoIntroductions";a()((()=>{const e=(0,o.get)(window,`${Ze}.introductions`,[]);if((0,o.isEmpty)(e))return;((e={})=>{(0,s.register)((e=>(0,s.createReduxStore)(qe,{actions:{...Ve,...f,...k,...U},selectors:{...He,...h,...N,...T},initialState:(0,o.merge)({},{[ze]:We(),[p]:g(),[b]:_(),[M]:z()},e),reducer:(0,s.combineReducers)({[ze]:De,[p]:E,[b]:S,[M]:W}),controls:{...F}}))(e))})({[p]:(0,o.get)(window,`${Ze}.linkParams`,{}),[b]:(0,o.get)(window,`${Ze}.pluginUrl`,""),[M]:{value:"1"===(0,o.get)(window,`${Ze}.wistiaEmbedPermission`,!1)}}),(0,s.dispatch)(qe).setIntroductions(e);const r={isRtl:Boolean((0,o.get)(window,`${Ze}.isRtl`,!1))},a={"ai-fix-assessments-upsell":$e},c=document.createElement("div");c.id="wpseo-introductions",document.body.appendChild(c),(0,n.render)((0,t.createElement)(l.Root,{context:r},(0,t.createElement)(Ae,{initialComponents:a},(0,t.createElement)(Be,null,(0,t.createElement)(Me,null)))),c,(()=>{(0,i.doAction)("yoast.introductions.ready")}))}))})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -12,7 +12,7 @@
(0,c.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,e.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,l.createInterpolateElement)((0,c.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,c.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d))),(0,e.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,e.createElement)(i.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:m},(0,e.createElement)(j,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),n,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,c.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,e.createElement)(i.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:o},(0,c.__)("Close","wordpress-seo"))))};_e.propTypes={learnMoreLink:I().string.isRequired,upsellLink:I().string.isRequired,thumbnail:I().shape({src:I().string.isRequired,width:I().string,height:I().string}).isRequired,wistiaEmbedPermission:I().shape({value:I().bool.isRequired,status:I().string.isRequired,set:I().func.isRequired}).isRequired,upsellLabel:I().string},_e.defaultProps={upsellLabel:(0,c.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,c.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},e.forwardRef((function(t,s){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:s},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),I().bool.isRequired,I().func,I().string.isRequired,I().string.isRequired,I().func.isRequired,I().string.isRequired,I().string.isRequired;const ke=({premiumLink:t,premiumUpsellConfig:s,academyLink:r,isPromotionActive:a})=>(0,e.createElement)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4"},(0,e.createElement)(ve,{link:t,linkProps:s,isPromotionActive:a}),(0,e.createElement)(T,{link:r}));ke.propTypes={premiumLink:I().string.isRequired,premiumUpsellConfig:I().object.isRequired,academyLink:I().string.isRequired,isPromotionActive:I().func.isRequired};const Ne=ke,Se="@yoast/support",Pe=(e,t=[],...s)=>(0,r.useSelect)((t=>{var r,a;return null===(r=(a=t(Se))[e])||void 0===r?void 0:r.call(a,...s)}),t),Re=({id:t,children:s,title:r,description:a=null})=>{const n=Pe("selectPreference",[],"isPremium");return(0,e.createElement)(H,{id:t,title:r,description:a,variant:n?"lg":"xl"},s)};Re.propTypes={id:I().string,children:I().node.isRequired,title:I().node.isRequired,description:I().node};const Le=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),qe=({imageSrc:t,title:s,description:r,linkHref:a,linkText:n})=>(0,e.createElement)(i.Card,null,(0,e.createElement)(i.Card.Header,{className:"yst-h-auto yst-p-0"},(0,e.createElement)("img",{className:"yst-w-full yst-transition yst-duration-200",src:t,alt:"",width:500,height:250,loading:"lazy",decoding:"async"})),(0,e.createElement)(i.Card.Content,{className:"yst-flex yst-flex-col yst-gap-3"},(0,e.createElement)(i.Title,{as:"h3"},s),r),(0,e.createElement)(i.Link,{href:a,className:"yst-flex yst-items-center yst-mt-[18px] yst-no-underline yst-font-medium yst-text-primary-500",target:"_blank"},n,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,c.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},e.forwardRef((function(t,s){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:s},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),I().bool.isRequired,I().func,I().func,I().string.isRequired,I().string.isRequired,I().string.isRequired,I().string.isRequired;const ke=({premiumLink:t,premiumUpsellConfig:s,academyLink:r,isPromotionActive:a})=>(0,e.createElement)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4"},(0,e.createElement)(ve,{link:t,linkProps:s,isPromotionActive:a}),(0,e.createElement)(T,{link:r}));ke.propTypes={premiumLink:I().string.isRequired,premiumUpsellConfig:I().object.isRequired,academyLink:I().string.isRequired,isPromotionActive:I().func.isRequired};const Ne=ke,Se="@yoast/support",Pe=(e,t=[],...s)=>(0,r.useSelect)((t=>{var r,a;return null===(r=(a=t(Se))[e])||void 0===r?void 0:r.call(a,...s)}),t),Re=({id:t,children:s,title:r,description:a=null})=>{const n=Pe("selectPreference",[],"isPremium");return(0,e.createElement)(H,{id:t,title:r,description:a,variant:n?"lg":"xl"},s)};Re.propTypes={id:I().string,children:I().node.isRequired,title:I().node.isRequired,description:I().node};const Le=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),qe=({imageSrc:t,title:s,description:r,linkHref:a,linkText:n})=>(0,e.createElement)(i.Card,null,(0,e.createElement)(i.Card.Header,{className:"yst-h-auto yst-p-0"},(0,e.createElement)("img",{className:"yst-w-full yst-transition yst-duration-200",src:t,alt:"",width:500,height:250,loading:"lazy",decoding:"async"})),(0,e.createElement)(i.Card.Content,{className:"yst-flex yst-flex-col yst-gap-3"},(0,e.createElement)(i.Title,{as:"h3"},s),r),(0,e.createElement)(i.Link,{href:a,className:"yst-flex yst-items-center yst-mt-[18px] yst-no-underline yst-font-medium yst-text-primary-500",target:"_blank"},n,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,c.__)("(Opens in a new browser tab)","wordpress-seo")),(0,e.createElement)(Le,{className:"yst-h-4 yst-w-4 yst-ml-1 yst-icon-rtl"})));qe.propTypes={imageSrc:I().string.isRequired,title:I().string.isRequired,description:I().string.isRequired,linkHref:I().string.isRequired,linkText:I().string.isRequired};const Oe=()=>{document.querySelector("#beacon-container .BeaconFabButtonFrame iframe")?window.Beacon("open"):document.querySelector("#yoast-helpscout-beacon button").click()},$e=()=>{const t=Pe("selectPreference",[],"isPremium",!1),s=Pe("selectUpsellSettingsAsProps"),a=Pe("selectPreference",[],"pluginUrl",""),n=Pe("selectLinkParams"),o=Pe("selectLink",[],"https://yoa.st/3t6"),m=Pe("selectLink",[],"https://yoa.st/jj"),d=Pe("selectLink",[],"https://yoa.st/help-center-support-card"),u=Pe("selectLink",[],"https://yoa.st/support-forums-support-card"),p=Pe("selectLink",[],"https://yoa.st/github-repository-support-card"),g=Pe("selectLink",[],"https://yoa.st/contact-support-to-unlock-premium-support-section"),{isPromotionActive:w}=(0,r.useSelect)(Se),f=(0,l.useMemo)((()=>[{title:(0,e.createElement)("span",null,"How do I set up ",(0,e.createElement)("strong",null,"canonical URLs"),"?"),link:(0,y.addQueryArgs)("https://yoa.st/canonical-urls-support-faq",n)},{title:(0,e.createElement)("span",null,"How do I use ",(0,e.createElement)("strong",null,"XML sitemaps"),"?"),link:(0,y.addQueryArgs)("https://yoa.st/xml-sitemaps-support-faq",n)},{title:(0,e.createElement)("span",null,"How do I implement ",(0,e.createElement)("strong",null,"breadcrumbs"),"?"),link:(0,y.addQueryArgs)("https://yoa.st/implement-breadcrumbs-support-faq",n)},{title:(0,e.createElement)("span",null,"How do I ",(0,e.createElement)("strong",null,"submit my sitemap")," to search engines?"),link:(0,y.addQueryArgs)("https://yoa.st/submit-sitemap-support-faq",n)},{title:(0,e.createElement)("span",null,"How do I edit my ",(0,e.createElement)("strong",null,"robots.txt file"),"?"),link:(0,y.addQueryArgs)("https://yoa.st/edit-robots-txt-support-faq",n)},{title:(0,e.createElement)("span",null,"What are the ",(0,e.createElement)("strong",null,"meta robots advanced settings"),"?"),link:(0,y.addQueryArgs)("https://yoa.st/meta-robots-settings-support-faq",n)},{title:(0,e.createElement)("span",null,"Where can I find a ",(0,e.createElement)("strong",null,"glossary")," of SEO terms?"),link:(0,y.addQueryArgs)("https://yoa.st/seo-terms-vocabulary-support-faq",n)},{title:(0,e.createElement)("span",null,"What are ",(0,e.createElement)("strong",null,"transition words"),"?"),link:(0,y.addQueryArgs)("https://yoa.st/transition-words-support-faq",n)}]),[]);return(0,e.createElement)("div",{className:"yst-p-4 min-[783px]:yst-p-8"},(0,e.createElement)("div",{className:C()("yst-flex yst-flex-grow yst-flex-wrap",!t&&"xl:yst-pr-[17.5rem]")},(0,e.createElement)(i.Paper,{as:"main",className:"yst-flex-grow yst-mb-8 xl:yst-mb-0"},(0,e.createElement)(i.Paper.Header,null,(0,e.createElement)("div",{className:"yst-max-w-screen-sm"},(0,e.createElement)(i.Title,null,(0,c.__)("Support","wordpress-seo")),(0,e.createElement)("p",{className:"yst-text-tiny yst-mt-3"},(0,c.__)("If you have any questions, need a hand with a technical issue, or just want to say hi, we've got you covered. Get in touch with us and we'll be happy to assist you!","wordpress-seo")))),(0,e.createElement)(i.Paper.Content,null,(0,e.createElement)("div",{className:"yst-max-w-6xl"},(0,e.createElement)(Re,{title:(0,c.__)("Frequently asked questions","wordpress-seo"),description:(0,c.sprintf)(/* translators: %1$s expands to Yoast SEO. */
(0,c.__)("Here, you'll find answers to commonly asked questions about using %1$s. If you don't see your question listed, you can have a look at the section below.","wordpress-seo"),"Yoast SEO")},(0,e.createElement)("ul",null,f.map((({title:t,link:s},r)=>(0,e.createElement)(l.Fragment,{key:`faq-${r}`},r>0&&(0,e.createElement)("hr",{className:"yst-my-3"}),(0,e.createElement)("li",null,(0,e.createElement)(i.Link,{href:s,className:"yst-flex yst-items-center yst-font-medium yst-no-underline",target:"_blank"},t,(0,e.createElement)(O,{className:"yst-inline-block yst-ml-1.5 yst-h-3 yst-w-3 yst-icon-rtl"})))))))),(0,e.createElement)("hr",{className:"yst-my-8"}),(0,e.createElement)(Re,{title:(0,c.__)("Additional resources","wordpress-seo"),description:(0,c.sprintf)(/* translators: %1$s expands to Yoast SEO. */
(0,c.__)("Need help with %1$s? These resources are a great place to start!","wordpress-seo"),"Yoast SEO")},(0,e.createElement)("div",{className:"yst-grid yst-gap-6 yst-grid-cols-3 max-sm:yst-grid-cols-1"},(0,e.createElement)(qe,{imageSrc:`${a}/images/support/help_center.png`,title:(0,c.sprintf)(/* translators: %1$s expands to Yoast. */
+1 -1
View File
@@ -10,7 +10,7 @@
(0,r.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,vt.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,kt.createInterpolateElement)((0,r.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,r.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),l))),(0,vt.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,vt.createElement)(xt.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:n,target:"_blank",ref:a},(0,vt.createElement)(Pt,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),i,(0,vt.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
(0,r.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,vt.createElement)(xt.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:o},(0,r.__)("Close","wordpress-seo"))))};hs.propTypes={learnMoreLink:Ot().string.isRequired,upsellLink:Ot().string.isRequired,thumbnail:Ot().shape({src:Ot().string.isRequired,width:Ot().string,height:Ot().string}).isRequired,wistiaEmbedPermission:Ot().shape({value:Ot().bool.isRequired,status:Ot().string.isRequired,set:Ot().func.isRequired}).isRequired,upsellLabel:Ot().string},hs.defaultProps={upsellLabel:(0,r.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,r.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},vt.forwardRef((function(e,t){return vt.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:t},e),vt.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Ot().bool.isRequired,Ot().func,Ot().string.isRequired,Ot().string.isRequired,Ot().func.isRequired,Ot().string.isRequired,Ot().string.isRequired;const ms="yoast-seo/editor",gs=()=>{const e=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-learn-more")),[]),t=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-upsell")),[]),s=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-upsell-woo-seo-premium-bundle")),[]),n=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-upsell-woo-seo")),[]),i=(0,l.useSelect)((e=>e(ms).getIsPremium()),[]),o=(0,l.useSelect)((e=>e(ms).getIsWooSeoActive()),[]),a=(0,l.useSelect)((e=>e(ms).getIsWooCommerceActive()),[]),c=(0,l.useSelect)((e=>e(ms).getIsProduct()),[]),d=(0,l.useSelect)((e=>e(ms).getIsProductTerm()),[]),p={upsellLink:t};if(a&&c&&(p.title=(0,r.__)("Generate product titles & descriptions with AI!","wordpress-seo"),p.isProductCopy=!0),a&&(c||d)){const e=(0,r.sprintf)(/* translators: %1$s expands to Yoast SEO Premium, %2$s expands to Yoast WooCommerce SEO. */
(0,r.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},vt.forwardRef((function(e,t){return vt.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:t},e),vt.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),Ot().bool.isRequired,Ot().func,Ot().func,Ot().string.isRequired,Ot().string.isRequired,Ot().string.isRequired,Ot().string.isRequired;const ms="yoast-seo/editor",gs=()=>{const e=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-learn-more")),[]),t=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-upsell")),[]),s=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-upsell-woo-seo-premium-bundle")),[]),n=(0,l.useSelect)((e=>e(ms).selectLink("https://yoa.st/ai-generator-upsell-woo-seo")),[]),i=(0,l.useSelect)((e=>e(ms).getIsPremium()),[]),o=(0,l.useSelect)((e=>e(ms).getIsWooSeoActive()),[]),a=(0,l.useSelect)((e=>e(ms).getIsWooCommerceActive()),[]),c=(0,l.useSelect)((e=>e(ms).getIsProduct()),[]),d=(0,l.useSelect)((e=>e(ms).getIsProductTerm()),[]),p={upsellLink:t};if(a&&c&&(p.title=(0,r.__)("Generate product titles & descriptions with AI!","wordpress-seo"),p.isProductCopy=!0),a&&(c||d)){const e=(0,r.sprintf)(/* translators: %1$s expands to Yoast SEO Premium, %2$s expands to Yoast WooCommerce SEO. */
(0,r.__)("%1$s + %2$s","wordpress-seo"),"Yoast SEO Premium","Yoast WooCommerce SEO");p.newToText=(0,r.sprintf)(/* translators: %1$s expands to Yoast SEO Premium and Yoast WooCommerce SEO. */
(0,r.__)("New in %1$s","wordpress-seo"),e),i?(p.upsellLabel=(0,r.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,r.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO"),p.upsellLink=n):o||(p.upsellLabel=`${(0,r.sprintf)(/* translators: %1$s expands to Woo Premium bundle. */