1import{j as t,A as v,T as E,S}from"../js/app.DBQURsxG.js";import{B as h}from"./Button.BkhlNZuL.js";import{W as y}from"./Wrapper.Cjc4gxtt.js";import{E as A}from"./EmptyState.CTCoYbam.js";import{E as w}from"./ErrorBoundary.C3jFYOOM.js";import"./elastic.CDqqVJuy.js";import{F as T}from"./FetchModel.ZlcilBl9.js";import{a as C,k as I,O as P,D as Q,E as B,T as G,w as z,C as L,S as M,_ as R,d as D,x as H,y as O,e as N,g as W,v as _,h as F,m as V,p as Y,f as Z,i as $}from"./index.CaBFNySS.js";import{e as m}from"./error.BZboM8T-.js";import{d as q,e as J,h as K,f as U}from"./productObjectTable.BmziY019.js";import{f as X,z as r}from"./index.Cs3sfIVF.js";import"./vendor.CLXKpVbq.js";import"./lodash.B7ss2v9R.js";import"./LoadingButton.BldJMeql.js";import"./extends.Ba-yMveS.js";import"./Button.C6UKXuNC.js";import"./button.ByCG42iX.js";const tt=r.enum(["none","booklet","catalogue","distributor","eula","info","installation","installation-v2","installation-v21","instruction-manual","layers","lease","map-pin-outline","menu-grid-v2","open-magazine","poster","product-information-management","product-specs","registration","shopping","task-list","templates"]),et=r.object({icon:tt.optional(),link:U.optional()}),st=r.enum(["u-heading-lg","u-heading-md","u-heading-sm","u-heading-xs","u-heading-xxs"]),at=q.extend({content:K.optional(),quickLinks:r.array(et).optional(),titleSize:st.optional(),configuration:J.nullish()}),ot=({componentModel:c})=>{var p,d,u,x,k;const i=at.safeParse(c);if(!i.success){const{error:a}=i;return console.error(`AEHProductGridQuickLinks: ${X(a).toString()}`),t.jsx(A,{illustration:t.jsx(m.illustration,{}),title:m.title,description:m.description})}const{data:s}=i;function l(a,o){if(o&&window){let e;if(o&&(o.charAt(0)==="#"?e=document.querySelector(o):e=document.getElementById(o)),e){const n=e.getBoundingClientRect().top;window.scrollTo({top:n+window.scrollY-100,behavior:"smooth"})}}}return t.jsx("div",{className:"u-visibility--is-visible",children:t.jsxs(y,{organismName:"o-QuickLinks",paddingTop:(d=(p=s.configuration)==null?void 0:p.padding)==null?void 0:d.top,paddingBottom:(x=(u=s.configuration)==null?void 0:u.padding)==null?void 0:x.bottom,children:[((k=s.content)==null?void 0:k.title)&&t.jsx(E,{size:"h5",type:s.titleSize,text:s.content.title}),s.quickLinks&&s.quickLinks.length>0&&t.jsx(S,{direction:"row",gap:1,sx:{mt:"12px"},flexWrap:"wrap",children:s.quickLinks.map((a,o)=>{var f,g;let e;switch(a.icon){case"none":e=void 0;break;case"booklet":e=t.jsx($,{});break;case"catalogue":e=t.jsx(Z,{});break;case"distributor":e=t.jsx(Y,{});break;case"eula":e=t.jsx(V,{});break;case"info":e=t.jsx(F,{});break;case"installation":e=t.jsx(_,{});break;case"installation-v2":e=t.jsx(W,{});break;case"installation-v21":e=t.jsx(N,{});break;case"instruction-manual":e=t.jsx(O,{});break;case"lease":e=t.jsx(H,{});break;case"layers":e=t.jsx(D,{});break;case"map-pin-outline":e=t.jsx(R,{});break;case"menu-grid-v2":e=t.jsx(M,{});break;case"open-magazine":e=t.jsx(L,{});break;case"poster":e=t.jsx(z,{});break;case"product-information-management":e=t.jsx(G,{});break;case"product-specs":e=t.jsx(B,{});break;case"registration":e=t.jsx(Q,{});break;case"shopping":e=t.jsx(P,{});break;case"task-list":e=t.jsx(I,{});break;case"templates":e=t.jsx(C,{});break;default:e=void 0}const n={display:"flex",flexBasis:{xs:"100%",sm:"auto"},flexGrow:s.quickLinks&&((f=s.quickLinks)==null?void 0:f.length)>2?1:0,justifyContent:"flex-start"};return((g=a==null?void 0:a.link)==null?void 0:g.target)==="slug"?t.jsx(h,{hasIcon:!1,startIcon:e,sx:n,clickOverride:b=>{var j;l(b,(j=a.link)==null?void 0:j.url)},text:a.link.text,type:a.link.type},o):t.jsx(h,{hasIcon:!1,startIcon:e,sx:n,...a.link},o)})})]})})},Et=({pathModelHTLAttribute:c,componentModelHTLAttribute:i})=>t.jsx(w,{children:t.jsx(v,{componentName:"aeh-product-grid-quick-links",children:t.jsx(T,{pathModelHTLAttribute:c,componentModelHTLAttribute:i,children:(s,l)=>t.jsx(ot,{pathModel:s,componentModel:l})})})});export{Et as AEHProductGridQuickLinks};
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.