1import{j as e}from"./app-CixExHVM.js";import{d}from"./dayjs-C2eAEgLB.js";const y=({subscriptions:o,className:t,isPreview:a=!1})=>{const n=[{key:"name",label:"Product Name",Cell:({subscription:l})=>e.jsxs("dl",{children:[e.jsx("dt",{className:"sr-only",children:"Product Name"}),e.jsxs("dd",{className:"font-bold",children:[l.subscriptionName,e.jsx("span",{className:"absolute inset-0"})]}),e.jsx("dt",{className:"sr-only",children:"Organization Name"}),e.jsx("dd",{className:"text-[11px]/4 font-normal text-type-black-tertiary",children:l.organizationName})]})},{key:"type",label:"Type",Cell:({subscription:l,price:s})=>e.jsxs("dl",{children:[e.jsx("dt",{className:"sr-only",children:"Type"}),e.jsx("dd",{className:"font-bold",children:s.type})]})},{key:"amount",label:"Amount",Cell:({subscription:l,price:s})=>e.jsxs("dl",{children:[e.jsx("dt",{className:"sr-only",children:"Amount"}),e.jsx("dd",{className:"font-bold",children:s.formatted})]})},{key:"total_seats",label:"Total Seats",Cell:({subscription:l,price:s})=>e.jsxs("dl",{children:[e.jsx("dt",{className:"sr-only",children:"Type"}),e.jsx("dd",{className:"font-bold",children:s.availableSeats})]})},{key:"payment_option",label:"Payment Option",Cell:({subscription:l})=>e.jsxs("dl",{children:[e.jsx("dt",{className:"sr-only",children:"Payment Option"}),e.jsx("dd",{className:"font-bold",children:l.subscriptionCycle})]})},{key:"current_renewal",label:a?e.jsx("span",{className:"text-utility-warning-dark",children:"New Renewal Date"}):"Current Renewal",Cell:({subscription:l})=>a?e.jsx("span",{className:"text-utility-warning",children:l.subscriptionRenewalDate?d(l.subscriptionRenewalDate).format("MM/DD/YYYY"):"Non renewing"}):e.jsx("span",{children:l.subscriptionRenewalDate?d(l.subscriptionRenewalDate).format("MM/DD/YYYY"):"Non renewing"})}],i=a?t:`rounded-lg border border-utility-stroke-tertiary ${t}`;return e.jsx("div",{className:i,children:e.jsxs("table",{className:"min-w-full text-left text-[13px]/4",children:[e.jsx("thead",{className:"font-bold text-neutral-dark",children:e.jsx("tr",{children:n.map(({key:l,label:s})=>e.jsx("th",{className:"border-stroke-secondary border-b px-3 py-4.5",children:s},l))})}),e.jsx("tbody",{className:"font-bold text-type-black-primary",children:o?.map((l,s)=>l.subscriptionPrice.map((r,c)=>e.jsx("tr",{className:`group ${r.canBeMerged!==!1?"focus-within:bg-neutral-light hover:bg-neutral-light":"bg-red-50 focus-within:bg-red-100 hover:bg-red-100"}`,children:n.map(({key:m,Cell:x=({value:b})=>b})=>e.jsx("td",{className:"relative border-b border-utility-stroke-tertiary px-3.5 py-4",children:e.jsx(x,{subscription:l,price:r})},m))},`${l.id}-${s}-${c}`)))})]})})};export{y 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.