8 lines
20 KiB
JavaScript
8 lines
20 KiB
JavaScript
|
!function(e){var t={};function r(s){if(t[s])return t[s].exports;var a=t[s]={i:s,l:!1,exports:{}};return e[s].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,s){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(s,a,function(t){return e[t]}.bind(null,a));return s},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=293)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return n}));const s={request:"request",success:"success",error:"error"},a={idle:"idle",loading:"loading",success:"success",error:"error"},n={showPlay:"showPlay",askPermission:"askPermission",isPlaying:"isPlaying"}},12:function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,r.apply(this,arguments)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},13:function(e,t){e.exports=window.yoast.reduxJsToolkit},132:function(e,t,r){"use strict";var s=r(3);const a=s.forwardRef((function(e,t){return s.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),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));t.a=a},15:function(e,t){e.exports=window.wp.url},172:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));const s=()=>{const e=document.getElementById("wpcontent"),t=document.getElementById("adminmenuwrap");e&&t&&(e.style.minHeight=t.offsetHeight+"px")}},18:function(e,t){e.exports=window.wp.components},234:function(e,t,r){"use strict";var s=r(3);const a=s.forwardRef((function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),s.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"}))}));t.a=a},24:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"e",(function(){return c})),r.d(t,"k",(function(){return l})),r.d(t,"i",(function(){return d})),r.d(t,"j",(function(){return u})),r.d(t,"b",(function(){return y})),r.d(t,"f",(function(){return m})),r.d(t,"n",(function(){return g})),r.d(t,"l",(function(){return b})),r.d(t,"m",(function(){return h})),r.d(t,"c",(function(){return f})),r.d(t,"g",(function(){return w})),r.d(t,"q",(function(){return j})),r.d(t,"o",(function(){return k})),r.d(t,"p",(function(){return v})),r.d(t,"d",(function(){return P})),r.d(t,"h",(function(){return x})),r.d(t,"u",(function(){return A})),r.d(t,"r",(function(){return M})),r.d(t,"s",(function(){return I})),r.d(t,"t",(function(){return Q}));var s=r(13),a=r(15),n=r(4);const i="linkParams",o=Object(s.createSlice)({name:i,initialState:{},reducers:{setLinkParams:(e,t)=>{let{payload:r}=t;return r}}}),c=o.getInitialState,l={selectLinkParam:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(n.get)(e,`${i}.${t}`,r)},selectLinkParams:e=>Object(n.get)(e,i,{})};l.selectLink=Object(s.createSelector)([l.selectLinkParams
|
||
|
/* translators: %1$s expands to Yoast SEO. */
|
||
|
Object(h.__)("In this course, you'll learn about how to set up and use the %1$s for WordPress plugin so it makes SEO even easier. This course is meant for users of the block editor.","wordpress-seo"),"Yoast SEO"),image:t+"/images/academy/seo_for_wp.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-seo-wordpress-block-editor-start",e),dependencies:{},hasTrial:!0},{id:"all_around_seo",title:"All-around SEO",description:Object(h.__)("In this course, you'll learn practical SEO skills on every key aspect of SEO, to make your site stand out.","wordpress-seo"),image:t+"/images/academy/all_around_seo.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-all-around-seo-start",e),upsellLink:Object(f.addQueryArgs)("https://yoa.st/academy-all-around-seo-unlock",e),dependencies:{PREMIUM:r},hasTrial:!0},{id:"wp_for_beginners",title:"WordPress for beginners",description:Object(h.__)("Do you want to set up your own WordPress site? This course will teach you the ins and outs of creating and maintaining a WordPress website!","wordpress-seo"),image:t+"/images/academy/wp_for_beginners.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-wordpress-beginners-start",e),dependencies:{},hasTrial:!0},{id:"copywriting",title:"SEO copywriting",description:Object(h.__)("In this course, you'll learn how to write awesome copy that is optimized for ranking in search engines.","wordpress-seo"),image:t+"/images/academy/copywriting.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-seo-copywriting-start",e),upsellLink:Object(f.addQueryArgs)("https://yoa.st/academy-seo-copywriting-unlock",e),dependencies:{PREMIUM:r},hasTrial:!0},{id:"structured_data_for_beginners",title:"Structured data for beginners",description:Object(h.__)("Learn how to make your site stand out from the crowd by adding structured data!","wordpress-seo"),image:t+"/images/academy/structured_data_for_beginners.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-structured-data-beginners-start",e),dependencies:{},hasTrial:!0},{id:"keyword_research",title:"Keyword research",description:Object(h.__)("Do you know the essential first step of good SEO? It's keyword research. In this training, you'll learn how to research and select the keywords that will guide searchers to your pages.","wordpress-seo"),image:t+"/images/academy/keyword_research.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-keyword-research-start",e),upsellLink:Object(f.addQueryArgs)("https://yoa.st/academy-keyword-research-unlock",e),dependencies:{PREMIUM:r},hasTrial:!0},{id:"block_editor",title:"Block editor training",description:Object(h.__)("Start creating block-tastic content with the new WordPress block editor! Learn all about the block editor and what you can do with it.","wordpress-seo"),image:t+"/images/academy/block_editor.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-block-editor-start",e),dependencies:{},hasTrial:!0},{id:"site_structure",title:"Site structure",description:Object(h.__)("A clear site structure benefits your users and is of great importance for SEO. Still, most people seem to forget about this. Get ahead of your competition and learn how to improve your site structure!","wordpress-seo"),image:t+"/images/academy/site_structure.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-site-structure-start",e),upsellLink:Object(f.addQueryArgs)("https://yoa.st/academy-site-structure-unlock",e),dependencies:{PREMIUM:r},hasTrial:!0},{id:"local",title:"Local SEO",description:Object(h.__)("Do you own a local business? This course will teach you how to make sure your local audience can find you in the search results and on Google Maps!","wordpress-seo"),image:t+"/images/academy/local.png",startLink:Object(f.addQueryArgs)("https://yoa.st/academy-local-seo-start",e),upsellLink:Object(f.addQueryArgs)("https://yoa.st/academy-local-seo-unlock",e),dependencies:{LOCAL:n},hasTrial:!0},{id:"ecommerce",title:"Ecommerce SEO",description:Object(h.__)("Learn how to optimize your online shop for your customers and for search engines!","wordpr
|
||
|
Object(h.__)("Learn vital SEO skills that you can apply at once! Let us take you by the hand and give you practical SEO tips to help you outrank your competitors. Maximize your SEO game! Because your %s subscription gives you unlimited access to all courses.","wordpress-seo"),"Yoast SEO Premium"),!r&&Object(s.createElement)(s.Fragment,null,Object(h.sprintf)(// translators: %s for Yoast SEO.
|
||
|
Object(h.__)("Learn vital SEO skills that you can apply at once! Let us take you by the hand and give you practical SEO tips to help you outrank your competitors. %s comes with five free courses.","wordpress-seo"),"Yoast SEO")," ",Object(s.createElement)(c.Link,p()({href:Object(f.addQueryArgs)("https://yoa.st/academy-page-upsell/",e),target:"_blank"},i),Object(h.sprintf)(// translators: %s for Yoast SEO Premium.
|
||
|
Object(h.__)("Maximize your SEO game by purchasing %s, which grants you unlimited access to all courses.","wordpress-seo"),"Yoast SEO Premium")))))),Object(s.createElement)("div",{className:"yst-h-full yst-p-8"},Object(s.createElement)("div",{className:"yst-max-w-6xl yst-grid yst-gap-6 yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-4"},d.map(e=>Object(s.createElement)(c.Card,{key:"card-course-"+e.id},Object(s.createElement)(c.Card.Header,{className:"yst-h-auto yst-p-0"},Object(s.createElement)("img",{className:"yst-w-full yst-transition yst-duration-200",src:e.image,alt:"",width:500,height:250,loading:"lazy",decoding:"async"}),((e,t)=>!Object(l.isEmpty)(e)&&(t||e.WOO||e.LOCAL))(e.dependencies,r)&&Object(s.createElement)("div",{className:"yst-absolute yst-top-2 yst-right-2 yst-flex yst-gap-1.5"},Object(s.createElement)(c.Badge,{size:"small",variant:"upsell"},Object(h.__)("Premium","wordpress-seo")))),Object(s.createElement)(c.Card.Content,{className:"yst-flex yst-flex-col yst-gap-3"},Object(s.createElement)(c.Title,{as:"h3"},e.title),e.description,!w(e.dependencies,r)&&Object(s.createElement)(c.Link,{href:e.startLink,className:"yst-flex yst-items-center yst-mt-3 yst-no-underline yst-font-medium yst-text-primary-500",target:"_blank"},Object(h.__)("Start free trial lesson","wordpress-seo"),Object(s.createElement)("span",{className:"yst-sr-only"},Object(h.__)("(Opens in a new browser tab)","wordpress-seo")),Object(s.createElement)(b.a,{className:"yst-h-4 yst-w-4 yst-ml-1 yst-icon-rtl"}))),Object(s.createElement)(c.Card.Footer,null,Object(s.createElement)(s.Fragment,null,!w(e.dependencies,r)&&Object(s.createElement)(c.Button,p()({as:"a",id:"button-get-course-"+e.id,className:"yst-gap-2 yst-w-full yst-px-2",variant:"upsell",href:null==e?void 0:e.upsellLink,target:"_blank",rel:"noopener"},i),Object(s.createElement)(m.a,p()({className:"yst-w-5 yst-h-5 yst--ml-1 yst-shrink-0"},o)),Object(h.sprintf)(
|
||
|
/* translators: %1$s expands to Premium. */
|
||
|
Object(h.__)("Unlock with %1$s","wordpress-seo"),"Premium")),w(e.dependencies,r)&&Object(s.createElement)(c.Button,{as:"a",id:"button-start-course-"+e.id,className:"yst-gap-2 yst-w-full yst-px-2 yst-leading-5",variant:"primary",href:e.startLink,target:"_blank",rel:"noopener"},Object(h.__)("Start the course","wordpress-seo"),Object(s.createElement)(g.a,{className:"yst--mr-1 yst-ml-1 yst-h-5 yst-w-5 yst-text-white"}))))))))))},k=r(13);const v=()=>({...Object(l.get)(window,"wpseoScriptData.preferences",{})}),_=Object(k.createSlice)({name:"preferences",initialState:v(),reducers:{}}),E={selectPreference:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(l.get)(e,"preferences."+t,r)},selectPreferences:e=>Object(l.get)(e,"preferences",{})};E.selectUpsellSettingsAsProps=Object(k.createSelector)([e=>E.selectPreference(e,"upsellSettings",{}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"premiumCtbId";return t}],(e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]}));const S=_.actions;var P=_.reducer;const L=e=>{let{initialState:t}=e;return Object(n.createReduxStore)("@yoast/academy",{actions:{...u.i,...S},selectors:{...u.k,...E},initialState:Object(l.merge)({},{[u.a]:Object(u.e)(),preferences:v()},t),reducer:Object(n.combineReducers)({[u.a]:u.j,preferences:P})})};o()(()=>{const e=document.getElementById("yoast-seo-academy");if(!e)return;(function(){let{initialState:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(n.register)(L({initialState:e}))})({initialState:{[u.a]:Object(l.get)(window,"wpseoScriptData.linkParams",{})}}),Object(d.a)();const t=Object(n.select)("@yoast/academy").selectPreference("isRtl",!1);Object(s.render)(Object(s.createElement)(c.Root,{context:{isRtl:t}},Object(s.createElement)(a.SlotFillProvider,null,Object(s.createElement)(j,null))),e)})},3:function(e,t){e.exports=window.React},4:function(e,t){e.exports=window.lodash},5:function(e,t){e.exports=window.wp.data},52:function(e,t){e.exports=window.wp.domReady},7:function(e,t){e.exports=window.yoast.uiLibrary}});
|