PageSourceSearch

https://assets.niche.com/production/bundle.2752.f33618c1a55e5f63304f.js

js niche.com collected 2026-09-24 08:31:53 UTC 2,476 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkWebsite=self.webpackChunkWebsite||[]).push([[2752,3032],{3032:function(e,t,n){n.r(t),n.d(t,{getCampaignTypeQuery:function(){return i},getFeaturedResponse:function(){return o},healthCheck:function(){return u}});var a=n(69834),r=n(806),c=n(71446);const i=e=>e?`&campaignType=${e}`:"",o=async function(e){let{limit:t,vertical:n,contentGuid:o,payload:u,campaignType:l,exclusionGuids:s,signal:d}=e,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{buildURL:c.kZ,post:a.bE};const p=h.buildURL("",`/api/featured?limit=${t}${y=n,y?`&t=${y}`:""}${(e=>e?`&c=${e}`:"")(o)}${i(l)}${g=s,g&&g.length?`&exclude=${g.join("&exclude=")}`:""}`);var g,y;try{return(await h.post(p,{payload:u,signal:d})).content}catch(e){return r.A.error("[ getFeaturedResponse error ]",e),e}},u=()=>Promise.reject(new Error("healthCheck is not implemented on client"));t.default={getFeaturedResponse:o,healthCheck:u}},22752:function(e,t,n){n.r(t),n.d(t,{default:function(){return m},getFeaturedResponse:function(){return g},healthCheck:function(){return y}});var a=n(96044),r=n(98144),c=n(806),i=n(8322),o=n(72142),u=n(29119),l=n(69834),s=n(23256),d=n(3032);const h=e=>{let{limit:t,types:n=[],contentGuid:a,payload:r,campaignType:c,exclusionGuids:i=[],algorithm:o,signal:u}=e;return l.Ay.post(`${s.qw}/featured?limit=${t}${(e=>e&&e.length?`&t=${e.join("&t=")}`:"")(n)}${(e=>e?`&c=${e}
1`:"")(a)}${(0,d.getCampaignTypeQuery)(c)}${h=i,h&&h.length?`&exclude=${h.join("&exclude=")}`:""}${(e=>e?`&algorithm=${e}`:"")(o)}`,{payload:r,signal:u}).then(e=>e.content);var h},p=()=>l.Ay.get(`${s.qw}/health`);const g=async e=>{let{limit:t,vertical:n,contentGuid:l,payload:s,campaignType:d,exclusionGuids:p,signal:g}=e;const y=(e=>{switch(e){case o._w.Local.Subdomain:case o._w.K12.Subdomain:return[r.ck.School,r.ck.SchoolNetwork,r.ck.SchoolDistrict];case o._w.Colleges.Subdomain:return[r.ck.College];case o._w.GraduateSchools.Subdomain:return[r.ck.GradSchool];default:return[]}})(n);if(!y||!y.length)return{featured:[]};const m=h({limit:t,types:y,contentGuid:l,payload:s,campaignType:d,exclusionGuids:p,signal:g});if(d===u.b5.SEARCH)try{const e=await m;return await(0,i.MH)(e)}catch(e){c.A.error("[Featured Service - getFeaturedResponse/hydrateFeaturedSearchResults]",e,{productArea:a.B.FEATURED})}else try{return await m}catch(e){c.A.error("[Featured Service - getFeaturedResponse]",e,{productArea:a.B.FEATURED})}return{featured:[]}},y=p;var m={getFeaturedResponse:g,healthCheck:p}}}]);

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.