1import{r as p,j as i}from"./chunk-JZWAC4HX-BYneAEes.js";import{r as q}from"./rich-text-react-renderer.es5-Bt7HwHZb.js";import{l as Y}from"./index-C29PFdrG.js";import{E as V}from"./ExternalLinkIcon-BXLDVvrk.js";import{c as W}from"./clsx-B-dksMZM.js";import{I as y}from"./index-zd4vzfBs.js";import{C as Q}from"./CallToAction-sozVV1KZ.js";var S={},N={},v;function I(){if(v)return N;v=1,Object.defineProperty(N,"__esModule",{value:!0}),N.BLOCKS=void 0;var r;return(function(a){a.DOCUMENT="document",a.PARAGRAPH="paragraph",a.HEADING_1="heading-1",a.HEADING_2="heading-2",a.HEADING_3="heading-3",a.HEADING_4="heading-4",a.HEADING_5="heading-5",a.HEADING_6="heading-6",a.OL_LIST="ordered-list",a.UL_LIST="unordered-list",a.LIST_ITEM="list-item",a.HR="hr",a.QUOTE="blockquote",a.EMBEDDED_ENTRY="embedded-entry-block",a.EMBEDDED_ASSET="embedded-asset-block",a.EMBEDDED_RESOURCE="embedded-resource-block",a.TABLE="table",a.TABLE_ROW="table-row",a.TABLE_CELL="table-cell",a.TABLE_HEADER_CELL="table-header-cell"})(r||(N.BLOCKS=r={})),N}var T={},g;function b(){if(g)return T;g=1,Object.defineProperty(T,"__esModule",{value:!0}),T.INLINES=void 0;var r;return(function(a){a.ASSET_HYPERLINK="asset-hyperlink",a.EMBEDDED_ENTRY="embedded-entry-inline",a.EMBEDDED_RESOURCE="embedded-resource-inline",a.ENTRY_HYPERLINK="entry-hyperlink",a.HYPERLINK="hyperlink",a.RESOURCE_HYPERLINK="resource-hyperlink"})(r||(T.INLINES=r={})),T}var m={},H;function k(){if(H)return m;H=1,Object.defineProperty(m,"__esModule",{value:!0}),m.MARKS=void 0;var r;return(function(a){a.BOLD="bold",a.ITALIC="italic",a.UNDERLINE="underline",a.CODE="code",a.SUPERSCRIPT="superscript",a.SUBSCRIPT="subscript",a.STRIKETHROUGH="strikethrough"})(r||(m.MARKS=r={})),m}var D={},M;function F(){return M||(M=1,(function(r){var a=D&&D.__spreadArray||function(E,n,t){if(t||arguments.length===2)for(var d=0,O=n.length,s;d<O;d++)(s||!(d in n))&&(s||(s=Array.prototype.slice.call(n,0,d)),s[d]=n[d]);return E.concat(s||Array.prototype.slice.call(n))},l;Object.defineProperty(r,"__esModule",{value:!0}),r.V1_MARKS=r.V1_NODE_TYPES=r.TEXT_CONTAINERS=r.HEADINGS=r.CONTAINERS=r.VOID_BLOCKS=r.TABLE_BLOCKS=r.LIST_ITEM_BLOCKS=r.TOP_LEVEL_BLOCKS=void 0;var e=I(),u=b(),c=k();r.TOP_LEVEL_BLOCKS=[e.BLOCKS.PARAGRAPH,e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6,e.BLOCKS.OL_LIST,e.BLOCKS.UL_LIST,e.BLOCKS.HR,e.BLOCKS.QUOTE,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,e.BLOCKS.EMBEDDED_RESOURCE,e.BLOCKS.TABLE],r.LIST_ITEM_BLOCKS=[e.BLOCKS.PARAGRAPH,e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6,e.BLOCKS.OL_LIST,e.BLOCKS.UL_LIST,e.BLOCKS.HR,e.BLOCKS.QUOTE,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,e.BLOCKS.EMBEDDED_RESOURCE],r.TABLE_BLOCKS=[e.BLOCKS.TABLE,e.BLOCKS.TABLE_ROW,e.BLOCKS.TABLE_CELL,e.BLOCKS.TABLE_HEADER_CELL],r.VOID_BLOCKS=[e.BLOCKS.HR,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,e.BLOCKS.EMBEDDED_RESOURCE],r.CONTAINERS=(l={},l[e.BLOCKS.OL_LIST]=[e.BLOCKS.LIST_ITEM],l[e.BLOCKS.UL_LIST]=[e.BLOCKS.LIST_ITEM],l[e.BLOCKS.LIST_ITEM]=r.LIST_ITEM_BLOCKS,l[e.BLOCKS.QUOTE]=[e.BLOCKS.PARAGRAPH],l[e.BLOCKS.TABLE]=[e.BLOCKS.TABLE_ROW],l[e.BLOCKS.TABLE_ROW]=[e.BLOCKS.TABLE_CELL,e.BLOCKS.TABLE_HEADER_CELL],l[e.BLOCKS.TABLE_CELL]=[e.BLOCKS.PARAGRAPH,e.BLOCKS.UL_LIST,e.BLOCKS.OL_LIST],l[e.BLOCKS.TABLE_HEADER_CELL]=[e.BLOCKS.PARAGRAPH],l),r.HEADINGS=[e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6],r.TEXT_CONTAINERS=a([e.BLOCKS.PARAGRAPH],r.HEADINGS,!0),r.V1_NODE_TYPES=[e.BLOCKS.DOCUMENT,e.BLOCKS.PARAGRAPH,e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6,e.BLOCKS.OL_LIST,e.BLOCKS.UL_LIST,e.BLOCKS.LIST_ITEM,e.BLOCKS.HR,e.BLOCKS.QUOTE,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,u.INLINES.HYPERLINK,u.INLINES.ENTRY_HYPERLINK,u.INLINES.ASSET_HYPERLINK,u.INLINES.EMBEDDED_ENTRY,"text"],r.V1_MARKS=[c.MARKS.BOLD,c.MARKS.CODE,c.MARKS.ITALIC,c.MARKS.UNDERLINE]})(D)),D}var K={},j;function X(){return j||(j=1,Object.defineProperty(K,"__esModule",{value:!0})),K}var R={},x;function Z(){return x||(x=1,Object.defineProperty(R,"__esModule",{value:!0})),R}var h={},P;function z(){if(P)return h;P=1,Object.defineProperty(h,"__esModule",{value:!0}),h.EMPTY_DOCUMENT=void 0;var r=I();return h.EMPTY_DOCUMENT={nodeType:r.BLOCKS.DOCUMENT,data:{},content:[{nodeType:r.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]},h}var C={},G;function J(){if(G)return C;G=1,Object.defineProperty(C,"__esModule",{value:!0}),C.isInline=e,C.isBlock=u,C.isText=c;var r=I(),a=b();function l(E,n){for(var t=0,d=Object.keys(E);t<d.length;t++){var O=d[t];if(n===E[O])return!0}return!1}function e(E){return l(a.INLINES,E.nodeType)}function u(E){return l(r.BLOCKS,E.nodeType)}function c(E){return E.nodeType==="text"}return C}function $(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var A={},U;function ee(){if(U)return A;
1U=1,Object.defineProperty(A,"__esModule",{value:!0}),A.getSchemaWithNodeType=r;function r(a){try{return $("./generated/".concat(a,".json"))}catch{throw new Error('Schema for nodeType "'.concat(a,'" was not found.'))}}return A}var w;function re(){return w||(w=1,(function(r){var a=S&&S.__createBinding||(Object.create?(function(s,L,_,f){f===void 0&&(f=_);var B=Object.getOwnPropertyDescriptor(L,_);(!B||("get"in B?!L.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return L[_]}}),Object.defineProperty(s,f,B)}):(function(s,L,_,f){f===void 0&&(f=_),s[f]=L[_]})),l=S&&S.__setModuleDefault||(Object.create?(function(s,L){Object.defineProperty(s,"default",{enumerable:!0,value:L})}):function(s,L){s.default=L}),e=S&&S.__exportStar||function(s,L){for(var _ in s)_!=="default"&&!Object.prototype.hasOwnProperty.call(L,_)&&a(L,s,_)},u=S&&S.__importStar||function(s){if(s&&s.__esModule)return s;var L={};if(s!=null)for(var _ in s)_!=="default"&&Object.prototype.hasOwnProperty.call(s,_)&&a(L,s,_);return l(L,s),L};Object.defineProperty(r,"__esModule",{value:!0}),r.getSchemaWithNodeType=r.helpers=r.EMPTY_DOCUMENT=r.MARKS=r.INLINES=r.BLOCKS=void 0;var c=I();Object.defineProperty(r,"BLOCKS",{enumerable:!0,get:function(){return c.BLOCKS}});var E=b();Object.defineProperty(r,"INLINES",{enumerable:!0,get:function(){return E.INLINES}});var n=k();Object.defineProperty(r,"MARKS",{enumerable:!0,get:function(){return n.MARKS}}),e(F(),r),e(X(),r),e(Z(),r);var t=z();Object.defineProperty(r,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return t.EMPTY_DOCUMENT}});var d=u(J());r.helpers=d;var O=ee();Object.defineProperty(r,"getSchemaWithNodeType",{enumerable:!0,get:function(){return O.getSchemaWithNodeType}})})(S)),S}var o=re();function te({href:r}
1){const[a,l]=p.useState(0),e=p.useRef(null);return p.useEffect(()=>{const u=e.current;let c;const E=()=>{const n=u?.contentDocument?.body;n&&(c=new MutationObserver(()=>{const t=n.children[0]?.clientHeight||0;l(t)}),c.observe(n,{childList:!0,subtree:!0}))};return u&&u.addEventListener("load",E),()=>{u&&u.removeEventListener("load",E),c&&c.disconnect()}},[]),i.jsxs("span",{className:"relative",children:[i.jsxs("a",{href:r.replace("embed",""),target:"_blank",className:"absolute right-2 top-2 flex items-center gap-1 rounded-lg bg-corporate-navy-0 p-1 text-xs font-medium text-white md:gap-2 md:p-1.5 md:text-s",rel:"noreferrer",children:[i.jsx(V,{className:"size-4"}),"View Volume"]}),i.jsx("iframe",{ref:e,title:"Volume",height:a,width:"100%",scrolling:"no",src:r})]})}function ne({className:r}){return i.jsx("svg",{viewBox:"0 0 72 57",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:i.jsx("path",{d:"M14.1762 0H28.4767L18.7772 27.7597H29.0984V57H0V30.474L14.1762 0ZM57.0777 0H71.3782L61.6788 27.7597H72V57H42.9016V30.474L57.0777 0Z",fill:"currentColor"})})}function ce({content:r,smaller:a=!1,imageCaptions:l=!1,...e}){if(!r||!r.json)return null;const u=new Map;for(const n of r.links?.assets?.block??[])n?.sys?.id&&u.set(n.sys.id,n);const c=new Map;for(const n of r.links?.entries?.block??[])n?.sys?.id&&c.set(n.sys.id,n);const E={renderNode:{[o.BLOCKS.OL_LIST]:(n,t)=>i.jsx("ol",{className:"list-decimal",children:t}),[o.BLOCKS.UL_LIST]:(n,t)=>i.jsx("ul",{className:"list-disc",children:t}),[o.BLOCKS.LIST_ITEM]:(n,t)=>i.jsx("li",{className:"ml-8 pl-2",children:t}),[o.BLOCKS.QUOTE]:(n,t)=>i.jsxs("blockquote",{className:"py-4 [&_p]:font-header [&_p]:text-h4 lg:[&_p]:text-h3 [&_p]:text-headline-blue-1",children:[i.jsx(ne,{className:"w-16 text-insight-green-1 mb-8"}),t]}),[o.BLOCKS.HEADING_1]:(n,t)=>i.jsx("h1",{className:"text-h2 md:text-h1 group-[.print]:text-h3 font-header font-medium",children:t}),[o.BLOCKS.HEADING_2]:(n,t)=>i.jsx("h2",{className:"text-h3 md:text-h2 group-[.print]:text-h4 font-header",children:t}),[o.BLOCKS.HEADING_3]:(n,t)=>i.jsx("h3",{className:"text-h4 md:text-h3 group-[.print]:text-h5 font-header",children:t}),[o.BLOCKS.HEADING_4]:(n,t)=>i.jsx("h4",{className:"md:text-h4 font-header text-xl font-medium group-[.print]:text-xl",children:t}),[o.BLOCKS.HEADING_5]:(n,t)=>i.jsx("h5",{className:"text-p group-[.print]:text-p font-header font-medium md:text-xl",children:t}),[o.BLOCKS.HEADING_6]:(n,t)=>i.jsx("h6",{className:"text-p md:text-l group-[.print]:text-p font-header font-medium",children:t}),[o.BLOCKS.PARAGRAPH]:(n,t)=>i.jsx("p",{className:"text-p md:text-l group-[.print]:text-p",children:t}),[o.BLOCKS.HR]:()=>i.jsx("hr",{className:"my-8 border-gray-500"}),[o.BLOCKS.EMBEDDED_ASSET]:n=>{const t=u.get(n.data.target.sys.id);return l?i.jsxs("div",{className:"flex flex-col items-center max-w-[540px]",children:[i.jsx(y,{src:t?.url??"",alt:t?.description??""}),i.jsx("p",{className:"text-gray-800 text-xs text-center mt-3",children:t?.description})]}):i.jsx(y,{src:t?.url??"",alt:t?.description??""})},[o.BLOCKS.EMBEDDED_ENTRY]:n=>{const t=c.get(n.data.target.sys.id);return t&&t.__typename==="BlockCallToAction"?i.jsx(Q,{...t}):null},[o.BLOCKS.TABLE]:(n,t)=>i.jsx("div",{className:"overflow-hidden rounded-lg",children:i.jsx("table",{className:W(["w-full table-auto rounded-lg","[&>tr]:first:bg-corporate-navy-1 [&>tr]:first:font-header [&>tr>td>p]:text-s [&>tr]:first:text-center [&>tr]:first:font-medium [&>tr]:first:text-white"]),children:t})}),[o.BLOCKS.TABLE_ROW]:(n,t)=>i.jsx("tr",{className:"odd:bg-background-white hover:bg-turquoise-3 border-grey group border-b last:border-none even:bg-gray-100 [&:last-child>td:first-of-type]:rounded-bl-lg [&:last-child>td:last-of-type]:rounded-br-lg",children:t}),[o.BLOCKS.TABLE_CELL]:(n,t)=>i.jsx("td",{className:"border-y p-2",children:t}),[o.BLOCKS.TABLE_HEADER_CELL]:(n,t)=>i.jsx("th",{className:"border p-2 ",children:t}),[o.INLINES.HYPERLINK]:(n,t)=>{let d={pathname:n.data.uri};try{d=new URL(n.data.uri)}catch{}return d.pathname===Y.$path("/app/volumes/embed")?i.jsx(te,{href:n.data.uri}):i.jsx("a",{href:n.data.uri,className:"underline",target:"_blank",rel:"noreferrer",children:t})},[o.INLINES.ENTRY_HYPERLINK]:(n,t)=>i.jsxs(i.Fragment,{children:[JSON.stringify(n.data),i.jsx("br",{}),t]})},renderText:n=>{const t=n.split(` 2`);return t.length===1?n:i.jsx(i.Fragment,{children:t.map((d,O)=>i.jsxs("span",{children:[d,O<t.length-1&&i.jsx("br",{})]},O))})},renderMark:{[o.MARKS.BOLD]:n=>i.jsx("strong",{className:"font-semibold",children:n}),[o.MARKS.ITALIC]:n=>i.jsx("em",{className:"italic",children:n}),[o.MARKS.UNDERLINE]:n=>i.jsx("u",{className:"underline",children:n})}};return i.jsx("div",{className:"space-y-8",...e,children:q.documentToReactComponents(r.json,E)})}export{ce as C,ne as Q};
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.