"use strict";var e=require("react/jsx-runtime");require("../containers/button.js"),require("../containers/card.js"),require("@styled/css");var l=require("@styled/jsx"),m=require("../containers/drawer.js"),V=require("react");require("../utils/client-asset-logo.js");var v=require("@styled/tokens");require("react-qrcode-logo"),require("../utils/secured-by-magic.js");var A=require("../icons/ico-caret-left.js"),w=require("../icons/ico-magic.js"),G=require("../icons/ico-question-circle-fill.js");require("../containers/header.js");var S=require("../containers/menu.js"),I=require("../containers/modal.js");require("../containers/overlay.js"),require("../info/copy-button.js"),require("../info/email-wbr.js"),require("../info/security-otp.js"),require("../info/text-box.js");var L=require("../info/wallet-address.js"),n=require("../primitives/button.js"),f=require("../primitives/popover.js"),j=require("../primitives/text.js"),a=require("create-slots");const C=a.createSlot(({children:r})=>V.Children.map(r,t=>e.jsx(n.default,{expand:!0,...t.props}))),b=a.createSlot(n.default),P=a.createSlot(n.default),y=a.createSlot(({children:r})=>e.jsxs(f.Popover,{textStyle:"subtle",variant:"text",children:[e.jsx(f.Popover.TrailingIcon,{children:e.jsx(G.default,{})}),e.jsx(f.Popover.Content,{children:r})]})),k=a.createSlot(({branding:r,title:t})=>t?e.jsx(j.default,{size:"sm",fontColor:"text.secondary",children:t}):e.jsx(w.default,{color:v.token(r==="light"?"colors.text.primary":"colors.neutral.primary")})),B=a.createSlot(({children:r,height:t="auto",flexGrow:s=0})=>e.jsx(l.VStack,{w:"full",justify:"center",height:t,flexGrow:s,children:r})),H=a.createSlot(S.Menu),z=a.createSlot(m.Drawer),M=a.createSlot(({children:r})=>e.jsx(l.Center,{pt:3,w:"full",children:r})),D=a.createSlot(({children:r,domain:t,name:s,logoUrl:o})=>e.jsxs(l.HStack,{borderBottomColor:"neutral.primary",borderBottomWidth:"1px",p:3,width:"full",children:[o?e.jsx("img",{src:o,alt:s,width:24,height:24}):e.jsx(w.default,{color:v.token("colors.brand.base"),height:24,width:24}),e.jsx(j.default,{size:"sm",fontWeight:"semibold",children:s}),t&&e.jsx(j.default,{size:"sm",fontColor:"text.tertiary",children:t}),r]})),K=({actionDirection:r="row",address:t,children:s,onBack:o,onCancel:d,hideHeader:F=!1,...W})=>a.createHost(s,i=>{const c=i.getProps(b),u=i.getProps(P),p=i.getProps(z),x=i.getProps(H),g=i.get(C),q=i.get(y),T=i.get(k),h=r==="row";return e.jsxs(I.Modal,{...W,fullscreen:!0,paddingType:"none",gap:0,children:[!F&&e.jsxs(l.VStack,{gap:0,width:"full",children:[e.jsxs(l.HStack,{borderBottomColor:"neutral.primary",borderBottomWidth:"1px",justifyContent:"space-between",p:3,width:"full",children:[o&&e.jsx(n.default,{onPress:o,size:"md",textStyle:"neutral",variant:"text",children:e.jsx(n.default.LeadingIcon,{children:e.jsx(A.default,{})})}),d&&e.jsx(n.default,{onPress:d,label:"Cancel",size:"sm",textStyle:"neutral",variant:"text"}),!(o||d)&&e.jsx(l.Box,{w:6}),T,t||q||x?e.jsxs(l.HStack,{children:[t&&e.jsx(L.default,{address:t}),q,x&&e.jsx(S.Menu,{...x})]}):e.jsx(l.Box,{w:6})]}),i.get(D)]}),e.jsxs(l.VStack,{h:"full",w:"full",justify:"space-between",p:6,maxW:393,children:[i.get(B),e.jsxs(l.VStack,{w:"full",gap:3,children:[i.get(M),(c||u)&&e.jsxs(l.Flex,{direction:h?"row":"column-reverse",gap:h?4:3,width:"full",children:[c&&e.jsx(n.default,{expand:!0,label:"Cancel",variant:"neutral",...c}),u&&e.jsx(n.default,{expand:!0,label:"Confirm",variant:"inverse",...u})]}),g&&e.jsx(l.Flex,{direction:r,gap:h?4:3,width:"full",children:g})]})]}),p&&e.jsx(m.Drawer,{...p})]})}),O=Object.assign(K,{Actions:C,Cancel:b,Confirm:P,Content:B,Menu:H,Drawer:z,Footer:M,Header:D,Info:y,Title:k});exports.PassportPage=O;
//# sourceMappingURL=passport-page.js.map
