PageSourceSearch

https://www.article.com/assets/ContentfulRenderer.4cb9966d.js

js article.com collected 2026-09-24 08:48:18 UTC 4,750 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="425073d1-55a1-4681-937d-4a1b69b2a34f",e._sentryDebugIdIdentifier="sentry-dbid-425073d1-55a1-4681-937d-4a1b69b2a34f")}catch(T){}import{bZ as e,b_ as n,cj as t,ck as s,b$ as o,cl as a,c1 as r,cm as i,cn as l,c7 as d,co as u,cp as c,cq as f,cr as y,c3 as v,c9 as p,ca as g,cb as w,cs as $,ce as b,ct as P,cu as O,cv as R,cw as m,cx as C,cc as q,ci as E,cy as _}from"./index.061e774e.js";const h={name:"ContentfulRenderer",props:{component:{type:Object,required:!0},contentType:{type:String,required:!0},slug:{type:String,default:null},activeOf:{type:String,default:null},isRequired:{type:Boolean,default:!0},isCritical:{type:Boolean,default:!1},showLoader:{type:Boolean,default:!0},class:{type:String,default:""},onEntryNotFound:{type:Function,default:()=>{}}},components:{NotFoundPage:e((()=>n((()=>import("./NotFoundPage.7f313485.js")),["assets/NotFoundPage.7f313485.js","assets/NotFoundPage.f5956f68.css","assets/index.061e774e.js","assets/index.db9dbc77.css","assets/PopularProductsCarousel.bff46f75.js","assets/PopularProductsCarousel.adcea465.css","assets/ProductCarousel.46034838.js","assets/ProductCarousel.3ab5f872.css","assets/BundleProduct.da5ee774.js","assets/BundleProduct.5a3e022b.css","assets/ProductBadgeV2.8a0c29d4.js","assets/ProductBadgeV2.fb912ae2.css","assets/Product.35fc4e5d.js","assets/Product.67883428.css","assets/mediaUtils.018d7373.js","assets/AddToCartButton.7aa082a0.js","assets/AddToCartButton.3c8422b0.css","assets/useAddToCart.5a80e920.js","assets/DeviceUtils.44556013.js","assets/Swipe.0435a3f8.js","assets/ContentfulHeading.326f5d3e.js","assets/slugify.a1a5eaaf.js","assets/CanFavorite.197be563.js","assets/CanFavorite.4c1e6750.css","assets/useProductSearch.74a749f9.js","assets/SortOptions.39674a4b.js","assets/ContentPage.32153b17.js","assets/ContentfulRichText.c69d02f8.js","assets/ContentfulRichText.f171e9ed.css","assets/ContentfulAsset.816d973a.js","assets/ContentfulAsset.a5a58f05.css","assets/useProduct.bdc14900.js","assets/EventAnalytics.7c2eca63.js","assets/ContentfulRichTextRenderer.6fb22222.js","assets/nodeRenderers.7801b185.js","assets/Divider.e0255c1e.js","assets/InjectionKeys.77580dfc.js"])))},async setup(e){var n;const d=t(""),p=s({entry:null}),g=t(!1),w=null==(n=o().currentRoute.value.query)?void 0:n.hasOwnProperty("ctpreview"),{mounted:$}=a(),b=u();await(async()=>{var n,t,s,o;try{const a=e.slug,r=e.isRequired?"none":"ignore";if(a)p.entry=await c(e.contentType,a,2,w,r);else{if(!e.activeOf)throw new Error(`ContentfulRenderer requires one of: activeOf (${e.activeOf}), slug(${a}) for contentType: ${e.contentType}`);{const a=await c("activeVersion",e.activeOf,2,w,r),i=null==(s=null==(t=null==(n=null==a?void 0:a.fields)?void 0:n.contentPage)?void 0:t.sys)?void 0:s.id;if(i)p.entry=await f(i,!1,2,w);else{if(e.isCritical)throw new Error(`invalid contentPageId: ${i} passed to ContentfulRenderer for ${e.activeOf} (${null==(o=null==a?void 0:a.sys)?void 0:o.id})`);e.isRequired&&(d.value=`invalid contentPageId: ${i} passed to ContentfulRenderer for ${e.activeOf}`)}}}if(p.entry||"function"!=typeof e.onEntryNotFound||e.onEntryNotFound(),p.entry)y({currentEntry:p.entry,isPreview:w});else{if(e.isCritical)throw new Error(`ContentfulRenderer failed for activeOf: ${e.activeOf}, slug: ${a}, contentType: ${e.contentType}, isRequired:${e.isRequired} , isCritical: ${e.isCritical}`);e.isRequired&&(d.value=`Content not found: ${e.contentType}/${a} (${e.activeOf})`)}}catch(a){console.error(a),v.sentryCaptureError(a)}finally{g.value=!0}})();const P=r((()=>$.value?i(b.moduleNames):null));return{...l(p),loadedDependencyModules:P,isPreview:w,clazz:e.class,isLoaded:g,isNotFound:d}}},k={key:1},F={key:2,class:"loader-container"};var N=d(h,[["render",function(e,n,t,s,o,a){const r=p("NotFoundPage");return s.isNotFound?(g(),w(r,{key:0,reason:s.isNotFound},null,8,["reason"])):(g(),$("div",k,[(g(),w(E,null,{default:b((()=>[t.component&&e.entry?(g(),$(P,{key:0},[O(e.$slots,"default",{entry:e.entry,isPreview:s.isPreview,slug:t.slug}),(g(),w(R(t.component),m(e.entry,{slug:t.slug,class:s.clazz}),null,16,["slug","class"])),O(e.$slots,"after",{isPreview:s.isPreview,slug:t.slug})],64)):s.isLoaded?O(e.$slots,"fallback",{key:1,isPreview:s.isPreview,slug:t.slug}):t.showLoader?(g(),$("div",F,n[0]||(n[0]=[C("div",{class:"loader"},null,-1)]))):q("",!0)])),_:3})),(g(!0),$(P,null,_(s.loadedDependencyModules,((e,n)=>(g(),$(P,{key:n},[e?(g(),w(R(e),{key:0})):q("",!0)],64)))),128))]))}]]);export{N as default};
2//# sourceMappingURL=ContentfulRenderer.4cb9966d.js.map

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.