PageSourceSearch

https://www.corbinrusswin.com/etc.clientlibs/aeh/clientlibs/depend…/resources/chunks/index.CpnLwWDu.js

js corbinrusswin.com collected 2026-10-02 12:34:10 UTC 3,698 bytes, 1 lines download raw bytes

1import{j as t,A as F,_ as c,a as q,R as z,S as H,T as G,B as b,b as V,s as A,W as L,X as N}from"../js/app.CzHXv3OC.js";import{r as s}from"./elastic.CDqqVJuy.js";import{W}from"./Wrapper.DVjqp0wx.js";import{E as _}from"./EmptyState.CRCj9Gxe.js";import{E as D}from"./ErrorBoundary.BSDeRbzo.js";import{p as Q}from"./productAttributes.CaCCGjBi.js";import{p as U}from"./productIsEmpty.CCfoVqob.js";import{p as X}from"./productURL.IJsGy0ON.js";import{F as Z}from"./FetchModel.b4lX_zup.js";import{e as h}from"./error.ME9RekgK.js";import{l as J,e as K,A as Y,a as tt}from"./productObjectTable.8lbMw21N.js";import{f as et}from"./index.D6mVWLHx.js";import"./vendor.CLXKpVbq.js";import"./lodash.B7ss2v9R.js";import"./button.BLXcxSDr.js";const I="AEHProductGridObjectsIFrame",x=new V({name:I,prefix:"o-"}),rt=J.extend({configuration:K.extend({table:tt.nullish(),color:Y.nullish()})}).nullable(),st=A(i=>t.jsx(N,{...i}))(({theme:i})=>({color:"var(--aa-one-cms-palette-text-primary)","&.Mui-selected":{color:"var(--aa-one-cms-palette-text-primary)"}})),at=A(L)({borderBottom:"3px solid var(--aa-one-cms-palette-divider)","& .MuiTabs-indicator":{height:4,backgroundColor:"var(--aa-one-cms-palette-primary-main)"}}),ot=({componentModel:i})=>{var E,y,S,v,k;const n=c.uniqueId("quickSearch_"),[m,u]=s.useState(!1),[l,P]=s.useState([]),M=s.useRef(null),[g,B]=s.useState("0px"),[d,C]=s.useState(0),{productState:a}=q();s.useEffect(()=>{if(typeof window.quicksearch<"u")try{window.quicksearch.init(`#${n}`)}catch(e){console.error("Error: ",e)}},[n]);const $=(e,r)=>{C(r)},p=rt.safeParse(i);if(!p.success){const{error:e}=p;return console.error(`${I}
1: ${et(e).toString()}`),t.jsx(_,{illustration:t.jsx(h.illustration,{}),title:h.title,description:h.description})}const{data:o}=p,[j,O]=s.useState();return s.useEffect(()=>{a&&O({attributes:a.meta,name:a.name,content:a.description,productId:a.pimID})},[a]),s.useEffect(()=>{var r;const e=Q(o,j);if(!U(e)){const w=[];for(const f in e)for(const T in e[f]){const R={id:{raw:e[f][T].link}};w.push({title:c.get(e[f][T],"title",""),link:X((r=o.link)==null?void 0:r.url,R)})}u(!0),P(w)}},[j]),s.useEffect(()=>{const e=r=>{typeof r.data=="object"&&r.data.type&&r.data.type==="resize"&&r.data.message&&B(`${r.data.message}px`)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),!a||!a.meta||!m?null:t.jsx("div",{id:n,className:"u-visibility--is-visible",children:t.jsx(z,{quickSearchId:n,children:t.jsx(W,{organismName:"o-ProductGridObjectsIframe",paddingTop:(y=(E=o.configuration)==null?void 0:E.padding)==null?void 0:y.top,paddingBottom:(v=(S=o.configuration)==null?void 0:S.padding)==null?void 0:v.bottom,children:t.jsxs(H,{spacing:2,children:[((k=o.content)==null?void 0:k.title)&&t.jsx(G,{size:"h5",type:o.titleSize,text:o.content.title}),t.jsxs(b,{sx:{width:"100%"},...x("tabs"),children:[t.jsx(at,{value:d,onChange:$,variant:"scrollable",scrollButtons:!0,allowScrollButtonsMobile:!0,children:l.map((e,r)=>t.jsx(st,{...x("tab"),label:e.title,"data-iframe-src":c.get(l[r],"link","")},`tab-${e.title}`))}),t.jsx(b,{sx:{p:3},children:t.jsx(b,{children:s.createElement("iframe",{...x("iframe",void 0,`lazyload ${g}`!="0px"?"lazyload":""),ref:M,"data-src":c.get(l[d],"link",""),key:c.get(l[d],"title",""),title:c.get(l[d],"title",""),scrolling:"no",style:{width:"100%",height:g,overflow:"hidden",border:0}})})})]})]})})})})},yt=({pathModelHTLAttribute:i,componentModelHTLAttribute:n})=>t.jsx(D,{children:t.jsx(F,{componentName:"aeh-product-grid-objects-iframe",children:t.jsx(Z,{pathModelHTLAttribute:i,componentModelHTLAttribute:n,children:(m,u)=>t.jsx(ot,{pathModel:m,componentModel:u})})})});export{yt as AEHProductGridObjectsIFrame};

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.