"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),B=require("../features/icons/ArrowLeftPrimaryIcon.cjs"),g=require("../features/icons/CrossSecondaryIcon.cjs"),p=require("../features/icons/PlusSecondaryIcon.cjs"),t=require("@chakra-ui/react"),u=require("react-i18next");require("./Typography.cjs");const d=require("../hooks/useNavigateBack.cjs"),j=require("./typography.generated.cjs"),a=14,b=t.chakra(t.Flex,{baseStyle:{alignItems:"center",bottom:"initial",h:a,px:3,py:2,transitionProperty:"background",transitionDuration:"fast",flexShrink:0,zIndex:1}}),s=({children:n,...o})=>e.jsx(t.Button,{color:"icon-secondary",colorScheme:"transparent",padding:"1.5",fontSize:"xl",size:"auto",rounded:"full",...o,children:n}),f=n=>{const{t:o}=u.useTranslation(),r=d.useNavigateBack();return e.jsx(s,{"aria-label":o("navigationBar.back"),onClick:r,...n,children:e.jsx(B,{})})},k=n=>{const{t:o}=u.useTranslation(),r=d.useNavigateBack();return e.jsx(s,{"aria-label":o("navigationBar.close"),onClick:r,...n,children:e.jsx(g,{})})},v=n=>e.jsx(s,{"aria-label":"add",...n,children:e.jsx(p,{})}),S=({isAbsolute:n,leftButton:o,rightButton:r,title:i,scroll:c,children:x,...h})=>{const l=((c==null?void 0:c.scrollTop)??0)<=16;return e.jsxs(b,{bg:l?"transparent":"surface-default",boxShadow:l?"none":"menu",position:n?"absolute":"relative",w:"full",...h,children:[i&&e.jsx(t.Center,{position:"absolute",left:a,right:a,top:0,bottom:0,children:typeof i=="string"?e.jsx(j.H5,{w:"full",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:"center",children:i}):e.jsx(e.Fragment,{children:i})}),o&&e.jsx(t.Center,{position:"absolute",left:3,top:2,bottom:2,children:o}),r&&e.jsx(t.Center,{position:"absolute",right:3,top:2,bottom:2,children:r}),x]})},w=()=>e.jsxs(t.Flex,{alignItems:"center",justifyContent:"space-between",px:3,py:2,height:a,children:[e.jsx(t.Center,{w:8,h:8,children:e.jsx(t.SkeletonCircle,{w:5,h:5})}),e.jsx(t.SkeletonText,{h:2,w:"33.3%",noOfLines:1}),e.jsx(t.Center,{w:8,h:8,children:e.jsx(t.SkeletonCircle,{w:5,h:5})})]});exports.BarAddButton=v;exports.BarBackButton=f;exports.BarCloseButton=k;exports.BarIconButton=s;exports.NavigationBar=S;exports.NavigationBarHeight=a;exports.NavigationBarSkeleton=w;
