PageSourceSearch

https://www.unep-wcmc.org/_nuxt/2a67405.js

js unep-wcmc.org collected 2026-10-01 08:44:29 UTC 8,659 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{543:function(t,e,r){"use strict";r(5),r(22);var c=r(544),n=r.n(c);e.a=function(t){return Array.prototype.reduce.call(Object.keys(t),(function(e,r){return e[n()(r)]=t[r],e}),{})}},545:function(t,e,r){"use strict";r(25),r(72);e.a=function(t){return t.replace(/(<([^>]+)>)/gi,"")}},546:function(t,e,r){"use strict";r.d(e,"a",(function(){return J}));r(22),r(17),r(31),r(26),r(32);var c=r(9),n=r(55),o=r(56),l=r(13),h=r(43),O=(r(24),r(16),r(5),r(25),r(72),r(23),r(52)),j=r(544),f=r.n(j),d=(r(113),r(543)),m=Object(h.a)("block"),y=Object(h.a)("mapBlockComponentName"),v=Object(h.a)("mapBlock"),w=function(){function t(e){Object(n.a)(this,t),Object.defineProperty(this,v,{value:_}),Object.defineProperty(this,y,{value:k}),Object.defineProperty(this,m,{writable:!0,value:void 0}),Object(l.a)(this,m)[m]=e}return Object(o.a)(t,[{key:"toObject",value:function(){return Object(l.a)(this,v)[v](Object(l.a)(this,m)[m])}}]),t}();function k(t){var e=String.prototype.replace.call(t,/[^A-z]/g,"-");return e=String.prototype.replace.call(e,/^genesis-custom-blocks-/,"wp-")}function _(t){var e=this,r=Array.isArray(t.innerBlocks)?t.innerBlocks.map((function(b){return Object(l.a)(e,v)[v](b)})):[];return"core/list"===t.blockName?{name:t.attrs&&t.attrs.ordered?"ol":"ul",props:Object(d.a)(t.attrs),children:r}:"core/list-item"===t.blockName||"core/paragraph"===t.blockName||String.prototype.startsWith.call(t.blockName,"core/")?{name:"v-runtime-template",props:{template:t.innerHTML},children:r}:{name:Object(l.a)(this,y)[y](t.blockName),props:Object(d.a)(t.attrs),children:r}}var N=r(180),A=(r(560),r(561),r(44),r(36),r(562)),P=Object(h.a)("meta"),x=Object(h.a)("toOGMetaTag"),H=function(){function t(meta){Object(n.a)(this,t),Object.defineProperty(this,x,{value:C}),Object.defineProperty(this,P,{writable:!0,value:void 0}),Object(l.a)(this,P)[P]=meta}return Object(o.a)(t,[{key:"toArray",value:function(){return[this.locale,this.siteName,this.title,this.type,this.url,this.description,this.twitterCard,this.updatedTime,this.image].flat().filter((function(t){return t}))}},{key:"locale",get:function(){return Object(l.a)(this,x)[x]("locale",Object(l.a)(this,P)[P].og_locale)}},{key:"siteName",get:function(){return Object(l.a)(this,x)[x]("site_name",Object(l.a)(this,P)[P].og_site_name)}},{key:"title",get:function(){return Object(l.a)(this,x)[x]("title",Object(A.decode)(Object(l.a)(this,P)[P].og_title))}},{key:"type",get:function(){return Object(l.a)(this,x)[x]("type",Object(l.a)(this,P)[P].og_type)}},{key:"url",get:function(){return Object(l.a)(this,x)[x]("url",Object(l.a)(this,P)[P].og_url)}},{key:"description",get:function(){return Object(l.a)(this,x)[x]("description",Object(A.decode)(Object(l.a)(this,P)[P].og_description))}},{key:"twitterCard",get:function(){return Object(l.a)(this,x)[x]("twitter:card",Object(l.a)(this,P)[P].twitter_card,!0)}},{key:"updatedTime",get:function(){return Object(l.a)(this,x)[x]("updated_time",new Date(Object(l.a)(this,P)[P].article_modified_time).getTime()/1e3)}},{key:"image",get:function(){var t=this;try{var image=Object(l.a)(this,P)[P].og_image[0];return[Object(l.a)(this,x)[x]("image",image.url)].concat(["height","type","url","width"].map((function(e){return Object(l.a)(t,x)[x]("image:".concat(e),image[e])})).filter((function(meta){return meta})))}catch(t){return null}}}]),t}();function C(t,content){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t:"og:".concat(t);try{return{hid:r,name:r,content:content}}catch(t){return null}}var I=r(545);function B(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var D=Object(h.a)("post"),S=Object(h.a)("getBlocks"),T=Object(h.a)("getExcerpt"),$=Object(h.a)("getImage"),E=Object(h.a)("getLayout"),M=Object(h.a)("getHead"),R=Object(h.a)("getHero"),z=Object(h.a)("mapCategories"),J=function(){function t(e){Object(n.a)(this,t),Object.defineProperty(this,z,{value:U}),Object.defineProperty(this,R,{value:Q}),Object.defineProperty(this,M,{value:K}),Object.defineProperty(this,E,{value:F}),Object.defineProperty(this,$,{value:W}),Object.defineProperty(this,T,{value:G}
1),Object.defineProperty(this,S,{value:L}),Object.defineProperty(this,D,{writable:!0,value:void 0}),Object(l.a)(this,D)[D]=e;var object=this.toObject();for(var r in object)this[r]=object[r]}return Object(o.a)(t,[{key:"toObject",value:function(){try{return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?B(Object(source),!0).forEach((function(e){Object(c.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):B(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({id:Object(l.a)(this,D)[D].id,author:Object(l.a)(this,D)[D].author,blocks:Object(l.a)(this,S)[S](),categories:Object(l.a)(this,z)[z](),date:Object(l.a)(this,D)[D].date,excerpt:Object(l.a)(this,T)[T](),image:Object(l.a)(this,$)[$](),head:Object(l.a)(this,M)[M](),hero:Object(l.a)(this,R)[R](),layout:Object(l.a)(this,E)[E](),slug:Object(l.a)(this,D)[D].slug,status:Object(l.a)(this,D)[D].status,title:Object(l.a)(this,D)[D].title.rendered,type:f()(Object(l.a)(this,D)[D].type)},Object(d.a)(Object(l.a)(this,D)[D].acf))}catch(t){return console.error(t.message),null}}}]),t}();function L(){return Object(l.a)(this,D)[D].gutenberg_blocks?Object(l.a)(this,D)[D].gutenberg_blocks.filter((function(t){return t.blockName})).map((function(t){return new w(t).toObject()})):[]}function G(){if(Object(l.a)(this,D)[D].excerpt){var t=Object(O.get)(Object(l.a)(this,D)[D],"excerpt.rendered",void 0);return Object(I.a)(t)}}function W(){try{var image=Object(O.get)(Object(l.a)(this,D)[D],"_embedded['wp:featuredmedia'][0]",void 0);if(image)return new N.a(image).toObject()}catch(t){console.error(t)}return null}function F(){var t=Object(l.a)(this,D)[D].template;return"string"==typeof t&&t.length>0?t.replace(/^page-/g,"").replace(/\.php$/g,""):"default"}function K(){var t=Object(l.a)(this,D)[D].yoast_head_json;return{title:null==t?void 0:t.title,meta:t&&new H(t).toArray()}}function Q(){try{var t={title:Object(l.a)(this,D)[D].acf.hero_title?Object(l.a)(this,D)[D].acf.hero_title:Object(l.a)(this,D)[D].title.rendered,text:Object(l.a)(this,D)[D].acf.hero_text,backgroundImageId:Object(l.a)(this,D)[D].featured_media,overlayOpacity:Object(l.a)(this,D)[D].acf.overlay_opacity?Object(l.a)(this,D)[D].acf.overlay_opacity:0}
1;return"none"!==Object(l.a)(this,D)[D].acf.icon_name&&(t.iconName=Object(l.a)(this,D)[D].acf.icon_name),t}catch(t){return void console.error(t)}}function U(){try{return Object(O.get)(Object(l.a)(this,D)[D],"_embedded['wp:term'][0]",[]).map((function(t){return{id:t.id,name:t.name,slug:t.slug}}))}catch(t){return console.warn(t),[]}}},889:function(t,e,r){"use strict";r.r(e);var c=r(6),n=(r(24),r(16),r(5),r(41),r(546)),o={props:{newsArticles:{type:Object,default:void 0}},fetch:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.initialize();case 2:case"end":return e.stop()}}),e)})))()},data:function(){return{mappedNewsArticles:[]}},computed:{hasMappedNewsArticles:function(){return this.mappedNewsArticles.length>0},mappedNewsArticleIds:function(){try{return this.newsArticles.rows.map((function(t){return t["news-article"].id}))}catch(t){console.warn(t)}return[]}},methods:{initialize:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,t.fetchNewsArticles();case 3:e.t1=e.sent,t.mappedNewsArticles=e.t0.mapNewsArticles.call(e.t0,e.t1).filter((function(t){return t}));case 5:case"end":return e.stop()}}),e)})))()},fetchNewsArticles:function(){return this.mappedNewsArticleIds.length>0?this.$axios.$get("/wp/v2/posts",{params:{_embed:1,include:this.mappedNewsArticleIds,wpml_language:this.$i18n.locale}}):Promise.resolve([])},mapNewsArticles:function(t){return t.map((function(t){return new n.a(t).toObject()}))}}},l=r(2),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.hasMappedNewsArticles?r("HeroHomeCarousel",t._b({},"HeroHomeCarousel",{newsArticles:t.mappedNewsArticles},!1)):t._e()}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{HeroHomeCarousel:r(856).default})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.