1import{i as S,E as V,B as E}from"./CvDJfsLU.js";import{n as D,as as w,C as o,W as k,a1 as v,a7 as c,L as d,a8 as e,aa as r,N as m,a0 as b,q as H,aw as L,V as t,Y as M,a6 as p,ax as W,k as q}from"./aGX58C66.js";import C from"./BQwkxuou.js";import F from"./B_V-sL1_.js";import T from"./DJuA8GLO.js";const O={class:"mx-auto w-full max-w-8xl overflow-x-hidden overflow-y-visible px-4 py-6 md:px-8 lg:w-[calc(100%-64px)] lg:px-0 2xl:w-full"},R={key:1,class:"mb-6"},Y={key:2,class:"mb-6"},$={class:"prose max-w-none"},A={class:"overflow-x-auto overflow-y-visible"},G={class:"hidden lg:block"},J={class:"w-full border-collapse"},K={class:"border-b-2 border-dark-grey"},P={class:"sticky left-0 z-10 bg-transparent p-4 text-left font-semibold",scope:"col"},Q={class:"flex items-center gap-2"},U={class:"font-semibold"},X={class:"lg:hidden"},Z={class:"space-y-4"},I={class:"flex items-center justify-between border-b bg-gray-50 p-4"},ee={class:"font-semibold"},te=["aria-expanded","onClick"],se={class:"divide-y divide-dark-grey"},oe={class:"flex items-center justify-between gap-4"},le={class:"flex min-w-0 max-w-[50%] flex-1 items-center justify-start gap-2"},ae={class:"flex min-w-0 items-center gap-1"},ie={class:"hyphens-auto break-words text-sm font-semibold leading-tight"},ne={class:"flex w-full max-w-[50%] justify-end"},re={class:"text-right"},ce=D({name:"CMSComparisonTable",__name:"ComparisonTable",props:{blok:{}},setup(l){const _=l,h=q(new Set),y=H(()=>{if(_.blok.column_headers?.length){const s=_.blok.column_headers[0];if(s?.column_headers)return s.column_headers.split(",").map(u=>u.trim())}return _.blok.column_headers?.length?_.blok.column_headers.map(s=>"header_text"in s?s.header_text:s):[]});function z(s){h.value.has(s)?h.value.delete(s):h.value.add(s)}function x(s){return h.value.has(s)}function f(s,u){return!s||!u?.tooltip_text?null:u.tooltip_text}return(s,u)=>{const j=S,g=V,B=L("editable");return w((t(),o("div",O,[l.blok.headline?(t(),k(j,{key:0,intent:"h2",class:"mb-6"},{default:v(()=>[M(r(l.blok.headline),1)]),_:1})):c("",!0),l.blok.description?(t(),o("div",R,[d(F,{"rich-text":l.blok.description},null,8,["rich-text"])])):c("",!0),l.blok.description&&!l.blok.description.content?.length?(t(),o("div",Y,[e("div",$,[e("p",null,r(l.blok.description),1)])])):c("",!0),e("div",A,[e("div",G,[e("table",J,[e("thead",K,[e("tr",null,[e("th",P,r(l.blok.attribute_header),1),(t(!0),o(m,null,b(y.value,(i,a)=>(t(),o("th",{key:a,class:"min-w-[200px] bg-transparent p-4 text-center font-semibold",scope:"col"},r(i),1))),128))])]),e("tbody",null,[(t(!0),o(m,null,b(l.blok.table_rows,(i,a)=>(t(),o("tr",{key:i._uid,class:p(["border-b border-dark-grey",a%2===1?"bg-light-grey":"bg-white"])},[e("td",{class:p(["sticky left-0 z-10 p-4",a%2===1?"bg-light-grey":"bg-white"])},[e("div",Q,[e("span",U,r(i.attribute),1),f(i.attribute,i)?(t(),k(T,{key:0,"tooltip-text":f(i.attribute,i)},{default:v(()=>[d(g,{name:"ic_info",size:"xs",class:"ml-1 text-gray-400"})]),_:1},8,["tooltip-text"])):c("",!0)])],2),(t(!0),o(m,null,b(i.cell_values||[],n=>(t(),o("td",{key:n._uid,class:"min-w-[200px] p-4 text-center"},[d(C,{blok:n},null,8,["blok"])]))),128))],2))),128))])])]),e("div",X,[e("div",Z,[(t(!0),o(m,null,b(y.value,(i,a)=>(t(),o("div",{key:a,class:"overflow-hidden rounded-lg border bg-white shadow-sm"},[e("div",I,[e("div",ee,r(i),1),a>=0?(t(),o("button",{key:0,class:"flex items-center gap-2 text-sm text-gray-600 hover:text-gray-800","aria-expanded":x(a),onClick:n=>z(a)},[d(g,{name:"ic_chevron",size:"sm",class:p(x(a)?"-rotate-90 transition-transform duration-200":"rotate-90 transition-transform duration-200")},null,8,["class"])],8,te)):c("",!0)]),w(e("div",se,[(t(!0),o(m,null,b(l.blok.table_rows,(n,N)=>(t(),o("div",{key:n._uid,class:p(["p-4",N%2===1?"bg-light-grey":"bg-white"])},[e("div",oe,[e("div",le,[e("div",ae,[e("span",ie,r(n.attribute),1),f(n.attribute,n)?(t(),k(T,{key:0,"tooltip-text":f(n.attribute,n)},{default:v(()=>[d(g,{name:"ic_info",size:"xs",class:"shrink-0 text-gray-400"})]),_:1},8,["tooltip-text"])):c("",!0)])]),e("div",ne,[e("div",re,[d(C,{blok:(n.cell_values||[])[a]},null,8,["blok"])])])])],2))),128))],512),[[W,x(a)]])]))),128))])])])])),[[B,l.blok]])}}}),he=Object.assign(E(ce,[["__scopeId","data-v-f16f0665"]]),{__name:"CMSComparisonTable"});export{he as default};
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.