PageSourceSearch

https://www.elliptic.co/_nuxt/D5PCNRhA.js

js elliptic.co collected 2026-09-24 15:17:37 UTC 2,905 bytes, 1 lines download raw bytes

1import{t as r,u as g,a as u,b as y,M as d,z as p}from"./CHz7KWu6.js";import{B as o,W as f}from"./lQDcGMYq.js";import{D as A,e as m,f as x,p as T,B as S,H as w}from"./BUa1f-qr.js";import{C as B}from"./BmnpE1lZ.js";import{u as C}from"./Hfm2hmmT.js";class N extends o{heading;buttonBlock;articleSelect;channelSelect;categoryTopics;categoryInsightsTypes;categoryNewsTypes;categoryIndustries;categoryRegions;excludeId;featuredArticle;articles=[];constructor(t,e,s){super(t,e),this.channelSelect=t.channelSelect??A,this.articleSelect=t.articleSelect?.length?t.articleSelect:void 0,this.excludeId=s??null,this.categoryTopics=t.categoryTopics??[],this.categoryInsightsTypes=t.categoryInsightsTypes??[],this.categoryNewsTypes=t.categoryNewsTypes??[],this.categoryIndustries=t.categoryIndustries??[],this.categoryRegions=t.categoryRegions??[];const{heading:a,buttonBlock:i}=this.formatArticleFeedHeadingAndButtons(t);this.heading=a,this.buttonBlock=i}async init(){const e=m(this).map(i=>i?.slug).filter(Boolean),a=(await x({channel:this.channelSelect,categorySlugs:e,limit:4,explicitArticles:this.articleSelect??[],excludeId:this.excludeId})).map((i,n)=>T(i,{channelSelect:this.channelSelect,prioritySlugs:e,authorVariant:n===0?"full":"nameOnly"}));return this.articles=a.slice(0,4)||[],this.featuredArticle=this.articles[0],this}formatArticleFeedHeadingAndButtons(t){const e=B[this.channelSelect];if(!e)return{};const s=t.heading?.length?t.heading[0]:{headingType:"h2",headingStyle:"h2",headingTextBlock:{rawHtml:r(e.title)}},a=[{buttonType:"primary",buttonLink:[{ariaLabel:null,target:null,linkUrl:e.uri,text:r(e.buttonText),__typename:"buttonLink_Custom_LinkType"}]}];return{heading:new w(s),buttonBlock:new S(a).buttons}}}const F=f(o);class Q extends F{accordion=[];schemaQuestions=[];faqs;categoryFaqs;categoryTopics;constructor(t,e){super(t,e),this.faqs=t.faqs?.length?t.faqs.filter(s=>!!s&&"title"in s):void 0,this.categoryFaqs=t.categoryFaqs,this.categoryTopics=(t.categoryTopics??[]).filter(s=>!!s&&"slug"in s).map(s=>({text:s.title??void 0,slug:s.slug??void 0}))}
1async init(){const t=this.faqs?.length?this.faqs:await this.fetchCategoryFAQs();return this.accordion=this.formatAccordion(t),this.schemaQuestions=this.getSchemaQuestions(),this}async fetchCategoryFAQs(){const e=[...this.categoryFaqs??[],...this.categoryTopics??[]].map(c=>c?.slug).filter(Boolean);if(e.length===0)return[];const s=5,a=g(),n=`faqs-${await a.runWithContext(()=>u())}-${e.join("-")}-${s}`,{data:h}=await a.runWithContext(()=>y(n,async()=>(await C("faqs",{categories:()=>e,limit:()=>s}))?.value??[],"$9RGfr3zLwn"));return h.value||[]}formatAccordion(t){return t?.length?t.map(e=>({heading:e.title??"",text:e.textBlock?.rawHtml??""})):[]}getSchemaQuestions(){return this.accordion.filter(t=>t.heading&&t.text).map(t=>d({"@type":"Question",name:p(t.heading),acceptedAnswer:{"@type":"Answer",text:t.text}}))}}export{N as A,Q as F};

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.