1import{v as d,R as n}from"./index-BI4i99S-.js";import{a2 as N,m as I,x as H,a0 as $,a5 as k,p as _,u as P,k as R,d as A,I as L,_ as S,n as T}from"./use-sticky-header-DGh26qUK.js";const D=d.createContext({}),M=e=>{if(!e||typeof e!="string")return;const i=(e.includes("/")?e.split("/")[1]:e).match(/\d+/);return i?parseInt(i[0],10):void 0},m=d.createContext(null),z=m.Provider,U=()=>d.useContext(m),V=e=>{const t=U(),i=d.useMemo(()=>{if(typeof e=="string")return M(e)},[e]);d.useEffect(()=>{var r;if(!((r=t?.headerRef)===null||r===void 0)&&r.current&&i!==void 0)return t.headerRef.current.totalCount=i,()=>{var s;(s=t.headerRef.current)===null||s===void 0||delete s.totalCount}},[t?.headerRef,i])},v={"heading-text":"awsui_heading-text_105ke_268sp_5"},a={root:"awsui_root_2qdw9_1pryo_185",refresh:"awsui_refresh_2qdw9_1pryo_221","root-no-actions":"awsui_root-no-actions_2qdw9_1pryo_221","root-variant-h2":"awsui_root-variant-h2_2qdw9_1pryo_224","root-variant-h3":"awsui_root-variant-h3_2qdw9_1pryo_224","root-has-description":"awsui_root-has-description_2qdw9_1pryo_224","root-variant-h1":"awsui_root-variant-h1_2qdw9_1pryo_233",main:"awsui_main_2qdw9_1pryo_243","no-wrap":"awsui_no-wrap_2qdw9_1pryo_253","main-variant-h1":"awsui_main-variant-h1_2qdw9_1pryo_259",actions:"awsui_actions_2qdw9_1pryo_267","actions-centered":"awsui_actions-centered_2qdw9_1pryo_272","actions-variant-h1":"awsui_actions-variant-h1_2qdw9_1pryo_275","actions-variant-h2":"awsui_actions-variant-h2_2qdw9_1pryo_279","actions-variant-h3":"awsui_actions-variant-h3_2qdw9_1pryo_283",title:"awsui_title_2qdw9_1pryo_299","title-variant-h1":"awsui_title-variant-h1_2qdw9_1pryo_304","title-variant-h2":"awsui_title-variant-h2_2qdw9_1pryo_311","title-variant-h3":"awsui_title-variant-h3_2qdw9_1pryo_317","virtual-space":"awsui_virtual-space_2qdw9_1pryo_338",info:"awsui_info_2qdw9_1pryo_344",description:"awsui_description_2qdw9_1pryo_348","description-variant-h1":"awsui_description-variant-h1_2qdw9_1pryo_355","description-variant-h2":"awsui_description-variant-h2_2qdw9_1pryo_359","description-variant-h3":"awsui_description-variant-h3_2qdw9_1pryo_366",heading:"awsui_heading_2qdw9_1pryo_377","heading-variant-h1":"awsui_heading-variant-h1_2qdw9_1pryo_402","heading-variant-h2":"awsui_heading-variant-h2_2qdw9_1pryo_407","heading-variant-h3":"awsui_heading-variant-h3_2qdw9_1pryo_412","heading-text":"awsui_heading-text_2qdw9_1pryo_418","heading-text-variant-h1":"awsui_heading-text-variant-h1_2qdw9_1pryo_421","heading-text-variant-h2":"awsui_heading-text-variant-h2_2qdw9_1pryo_430","heading-text-variant-h3":"awsui_heading-text-variant-h3_2qdw9_1pryo_439",counter:"awsui_counter_2qdw9_1pryo_449"};function B({variant:e,headingTagOverride:t,children:i,actions:r,counter:s,description:u,info:h,__internalRootRef:y,__disableActionsWrapping:p,__headingTagRef:g,__headingTagTabIndex:f,...q}){const x=N(),C=t??(e==="awsui-h1-sticky"?"h1":e),{isStuck:E}=d.useContext(I),l=H(q),w=d.useContext(D).assignId,b=$(),c=k("heading");V(s),w!==void 0&&w(c);const o=e==="awsui-h1-sticky"?!x&&E?"h2":"h1":e;return n.createElement("div",{...l,className:_(a.root,l.className,a[`root-variant-${o}`],a.refresh,!r&&[a["root-no-actions"]],u&&[a["root-has-description"]]),ref:y},n.createElement("div",{className:_(a.main,a[`main-variant-${o}`],a.refresh,p&&[a["no-wrap"]])},n.createElement("div",{className:_(a.title,a[`title-variant-${o}`],a.refresh)},n.createElement(C,{className:_(a.heading,a[`heading-variant-${o}`]),ref:g,tabIndex:f,...P(`.${v["heading-text"]}`)},n.createElement("span",{...b?{[A]:R}:{},className:_(a["heading-text"],v["heading-text"],a[`heading-text-variant-${o}`]),id:c},i),s!==void 0&&n.createElement("span",{className:a.counter}," ",s)),h&&n.createElement(L.Provider,{value:c},n.createElement("span",{className:a["virtual-space"]}," Â "),n.createElement("span",{className:a.info},h))),r&&n.createElement("div",{className:_(a.actions,a[`actions-variant-${o}`],a.refresh,!p&&[a["actions-centered"]])},r)),n.createElement(F,{variantOverride:o},u))}function F({children:e,variantOverride:t}){return e&&n.createElement("p",{className:_(a.description,a[`description-variant-${t}`],a.refresh)},e)||null}function K({variant:e="h2",...t}){const i=S("Header",{props:{headingTagOverride:t.headingTagOverride,variant:e}}),r=e==="h1"?-1:void 0;return n.createElement(B,{__headingTagTabIndex:r,variant:e,...t,...i})}T(K,"Header");export{D as C,F as D,K as H,B as I,z as T,a as h,M as p,U as u};
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.