PageSourceSearch

https://www.jared.com/scripts/chunk-J4DCG4SP.js

js jared.com collected 2026-10-04 00:25:17 UTC 2,731 bytes, 1 lines download raw bytes

1import{f as b}from"./chunk-KOUMXYMG.js";import{a as S}from"./chunk-6RXW7FE3.js";import{$c as T}from"./chunk-DM3NC7AB.js";import{Ea as l,Ja as a,K as f,R as v,Sa as h,e as i,fb as y,j as d,o as c,ta as O,w as g,x as C}from"./chunk-WVBH4ZDA.js";import{a as u}from"./chunk-YDOXD4O3.js";var m=class r{constructor(){this.injector=a(h);this._isOpen$=new i(!1);this.isOpen$=this._isOpen$.asObservable();this._vm$=new i(null);this.vm$=this._vm$.asObservable()}open(){this._isOpen$.next(!0)}close(){this._isOpen$.next(!1)}toggle(){this._isOpen$.next(!this._isOpen$.value)}get isOpen(){return this._isOpen$.value}setViewModel(e){this._vm$.next(e)}resolveFromCms(e){let t=this.injector.get(T);return e.pipe(O(o=>{if(!o)return d;let n=(o.categoryTiles??"").trim().split(/\s+/).filter(Boolean);return n.length?C(n.map(s=>t.getComponentData(s).pipe(v(()=>c(null))))).pipe(g(s=>this.buildViewModel(o,s.filter(p=>p!==null)))):c(this.buildViewModel(o,[]))}),f(o=>o!=null))}static isTrueLike(e){return e===!0||typeof e=="string"&&e.trim().toLowerCase()==="true"}buildViewModel(e,t){let o=e.promohubtype??"COLOR",n=e.alignment??"LEFT",s=e.contentTextColor??"ON_LIGHT";return{type:o,alignment:n,color:e.color,carouselEnabled:r.isTrueLike(e.carousel),gradient:r.isTrueLike(e.gradient),contentTextColor:s,tiles:t,triggerLabel:e.triggerLabel??"",styleClasses:b(e.styleClasses??""),panelId:e.uid??"rd_promo_hub_panel",themeClasses:u({rd_promo_hub:!0,"rd_promo_hub--image":o==="IMAGE","rd_promo_hub--color":o==="COLOR",[`rd_promo_hub--${(e.color??"").toLowerCase()}`]:!!e.color,"rd_promo_hub--left":n==="LEFT","rd_promo_hub--center":n==="CENTER","rd_promo_hub--on-dark":s==="ON_DARK","rd_promo_hub--gradient":r.isTrueLike(e.gradient)},Object.fromEntries(b(e.styleClasses??"").map(p=>[p,!0])))}}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}};var x=class r{constructor(){this._isOpen$=new i(!1);this._searchText$=new i("");this.promoHubService=a(m);this.isOpen$=this._isOpen$.asObservable();this.searchText$=this._searchText$.asObservable()}open(){this.promoHubService.close(),this._isOpen$.next(!0)}close(){this._isOpen$.next(!1)}get isOpen(){return this._isOpen$.value}setSearchText(e){this._searchText$.next(e)}get searchTextValue(){return this._searchText$.value}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}};var $=class r extends S{constructor(){super(...arguments);this.filtersDrawerOpen$=new i(!1)}static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(r)))(n||r)}})()}static{this.\u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}};export{m as a,x as b,$ as c};

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.