PageSourceSearch

https://myka.ng/assets/contentfulPreview-UQGJUROZ.js

js myka.ng collected 2026-10-09 22:44:28 UTC 1,078 bytes, 1 lines download raw bytes

1const s={insuranceBlog:"insuranceBlog",carouselCard:"carouselCard-3"},u=["preview","contentful_preview"],y=["entry_id","entry.sys.id"],P=["content_type","contentType"],d=new Set(["1","true","yes"]),T=t=>t!==null&&d.has(t.toLowerCase()),a=(t,e)=>{for(const n of e){const r=t.get(n)?.trim();if(r)return r}},f=t=>t===s.insuranceBlog||t===s.carouselCard,l=t=>{const e=new URLSearchParams(t.startsWith("?")?t.slice(1):t),n=u.some(c=>T(e.get(c))),r=a(e,y),o=a(e,P),i=f(o)?o:void 0;return{isPreview:n,...r?{entryId:r}:{},...i?{contentType:i}:{}}},_=t=>t?.isPreview?{params:{preview:"true"},headers:{"X-Contentful-Preview":"true"}}:{},w=(t,e)=>{if(!e?.isPreview)return t;const n=new URLSearchParams;return n.set("preview","1"),e.entryId&&n.set("entry_id",e.entryId),e.contentType&&n.set("content_type",e.contentType),`${t}?${n.toString()}`},E=(t,e,n={})=>{if(!e?.isPreview||!e.entryId)return t;const r=t.find(o=>o.id===e.entryId);return r?n.isolate?[r]:[r,...t.filter(o=>o.id!==e.entryId)]:t},C=t=>!!(t?.isPreview&&t.contentType===s.carouselCard);export{_ as b,E as f,l as g,C as i,w};

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.