import{ki as e}from"./vendor-frame-CwiylG4Y.js";import{nn as s,rn as a}from"./vendor-all-2-BJdkbLSj.js";import{$ as t,R as r,w as o}from"./shared-frame-DbQbH4Yr.js";var l=e(),i="border-border-300 bg-bg-100 fixed inset-0 m-auto h-fit max-h-[calc(100dvh-2rem)] w-[calc(100vw-2rem)] max-w-[602px] overflow-y-auto rounded-3xl border-[0.5px] p-8 shadow-xl focus:outline-none";function n({onBack:e,title:n,children:d}){const c=a();return(0,l.jsxs)(o.Popup,{unstyled:!0,"aria-describedby":void 0,className:i,children:[(0,l.jsx)("div",{className:"absolute top-[22px] right-6",children:(0,l.jsx)(o.Close,{render:(0,l.jsx)(r,{variant:"ghost",size:"sm",iconOnly:!0,icon:"X",className:"text-text-400 hover:text-text-200","aria-label":c.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"}),tooltip:!1})})}),(0,l.jsxs)("div",{className:"flex flex-col gap-[22px]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("button",{type:"button",onClick:e,className:"cds-reset inline-flex items-center gap-xs text-footnote text-muted transition-colors hover:text-primary focus-visible:shadow-focus rounded self-start -ml-0.5",children:[(0,l.jsx)(t,{name:"CaretLeft",size:"sm"}),(0,l.jsx)(s,{defaultMessage:"Back",id:"cyR7KhiuaU"})]}),(0,l.jsx)(o.Title,{render:(0,l.jsx)("h1",{className:"font-title"}),children:n})]}),d]})]})}export{n,i as t};