1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`c884f511e2637bc8d4525c01a72d90f4a6056222`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2afb0f43-0d94-432e-8820-b8fac8d775e7`,e._sentryDebugIdIdentifier=`sentry-dbid-2afb0f43-0d94-432e-8820-b8fac8d775e7`)}catch{}})();import{o as e}from"./rolldown-runtime-nEP6ovML.js";import{Cr as t,Sr as n}from"./_assets-BoGX2oZD.js";import{Dr as r,Yn as i,_t as a,t as o,tr as s,wr as c,yt as l}from"./_hawky_core-DelcLTZD.js";import{g as u,v as d}from"./_react-DHgdk-tz.js";import{uO as f}from"./payhawk-CMDa5uvV.js";import{n as p}from"./StoreContext-DY87x7Dt.js";import{l as m}from"./_mobx-DuFRY-rR.js";var h=e(t(),1),g=n(),_=({className:e})=>{let{settingsStore:t}=p(),[n,i]=(0,h.useState)(!1);if(!t.sectionActionsMenu)return null;let{buttons:a,menu:l}=t.sectionActionsMenu;return(0,g.jsxs)(`div`,{className:(0,o.default)(`d-flex`,`flex-row`,e),children:[a.map(e=>(0,g.jsx)(`div`,{className:`mr-8`,children:(0,g.jsx)(s,{size:`small`,skin:e.skin,iconName:e.iconName,label:e.label,onClick:e.action,isDisabled:e.isDisabled,isLoading:e.isLoading})},e.label)),l&&(0,g.jsx)(r,{isOpen:n,onToggle:i,position:`bottom-end`,toggleComponent:(0,g.jsx)(s,{iconName:`menu-overflow-horizontal-small`,size:`small`,skin:`secondary`,isDisabled:l.isDisabled,isLoading:l.isLoading}),children:l.items.map(e=>(0,g.jsx)(c,{startIcon:e.iconName,isDisabled:e.isDisabled,onSelect:()=>{i(!1),e.action()},children:e.label},e.label))})]})},v=e=>{let t=e.path.split(`?`)[0];return t===``?2**53-1:t.split(`/`).length},y=m(({subtitle:e,title:t,actions:n,startActions:r,status:i})=>{let{settingsStore:a}=p(),o=d(),s=[...a.breadcrumbs].sort((e,t)=>v(e)-v(t)),c=s[s.length-1]?.label,u=t!==void 0,m=typeof t==`string`?t:!u&&typeof c==`string`?c:void 0,h=!u&&typeof c==`function`?c:void 0,y=u&&typeof t!=`string`?t:h?(0,g.jsx)(h,{labelRenderer:e=>e}):void 0,b=s.slice(0,-1).filter(e=>typeof e.label==`string`).map(e=>({label:e.label,onClick:e.disabled?void 0:()=>o(e.path)})),x=[a.sectionActionsMenu&&(0,g.jsx)(_,{},`section-actions`),...n??[],(0,g.jsx)(f,{},`learn-more`)];return(0,g.jsx)(l,{dataTestId:`settings-panel-header`,breadcrumbs:b,title:m,titleContent:y,status:i,subtitle:e,startToolbar:r,endToolbar:x})}),b=()=>{let e=(0,h.useRef)(null),{pathname:t,search:n}=u();return(0,h.useEffect)(()=>{for(let t=e.current?.parentElement;t;t=t.parentElement)t.scrollTop>0&&(t.scrollTop=0)},[t,n]),(0,g.jsx)(`div`,{ref:e,"aria-hidden":`true`})},x=({subtitle:e,description:t,title:n,actions:r,startActions:o,status:s,tabs:c,footer:l,scrollableContent:u,contentPadding:d,children:f})=>(0,g.jsx)(a,{dataTestId:`settings-subpage`,headerDivider:!!c,header:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(y,{subtitle:e,title:n,actions:r,startActions:o,status:s}),t!==void 0&&(0,g.jsx)(i.BodySmall,{className:`mt-8`,weight:`600`,color:`dark-neutral-1`,children:t})]}),tabs:c,footer:l,scrollableContent:u,contentPadding:d,content:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(b,{}),f]})});export{_ as n,x as t}; 2//# sourceMappingURL=SettingsSubpage-NsJvHV3d.js.map
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.