1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,980075,e=>{"use strict";var t=e.i(243029),s=e.i(817353),r=e.i(981831),i=e.i(639960),a=e.i(269714),n=e.i(181241),d=e.i(12770),l=e.i(796615),o=e.i(842058),c=e.i(754219),h=e.i(568838),u=e.i(927375),x=e.i(519050),m=e.i(478165),p=e.i(812976),f=e.i(152088),g=e.i(613574);e.s(["AppSidebar",0,function({user:e,restrictPersonalAccountMenu:j=!1,showOrganizationSettings:b=!1}){let v=(0,l.useRouter)(),{setOpenMobile:y}=(0,a.useSidebar)(),{mutate:C}=(0,h.useSWRConfig)(),[w,D]=(0,o.useState)(!1);return(0,t.jsxs)(a.Sidebar,{className:"group-data-[side=left]:border-r-0",children:[(0,t.jsxs)(a.SidebarHeader,{className:"flex flex-col gap-2 border-b border-sidebar-border/50 p-2",children:[(0,t.jsx)(d.default,{href:"/",children:(0,t.jsx)(x.LogoFull,{})}),(0,t.jsx)(a.SidebarMenu,{children:(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,t.jsxs)(i.ButtonGroup,{children:[(0,t.jsx)("div",{className:(0,f.cn)((0,r.buttonVariants)({variant:"default"}),"hover:bg-amber-600 border-amber-600"),children:"Chứng từ"}),(0,t.jsx)(r.Button,{className:"p-0 hover:text-primary-foreground hover:bg-blue-600 border-blue-600",onClick:()=>{y(!1)},variant:"outline",children:(0,t.jsx)(d.default,{className:"flex flex-row items-center size-full px-4 py-2",href:"/dashboard",onClick:()=>{y(!1)},children:"HS Code"})})]}),(0,t.jsx)("div",{className:"flex flex-row gap-1",children:(0,t.jsxs)(n.Tooltip,{children:[(0,t.jsx)(n.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(r.Button,{className:"h-8 p-1 md:h-fit md:p-2",onClick:()=>{y(!1),v.push("/dashboard/customs"),v.refresh()},type:"button",variant:"ghost",children:(0,t.jsx)(x.PlusIcon,{})})}),(0,t.jsx)(n.TooltipContent,{align:"end",className:"hidden md:block",children:"Cuá»c trò chuyá»n má»i"})]})})]})})]}),(0,t.jsx)(a.SidebarContent,{children:(0,t.jsx)(g.SidebarHistory,{forAdmin:(0,p.hasPlatformPermission)(e?.role,"admin.chat.read"),user:e})}),(0,t.jsx)(a.SidebarFooter,{children:e&&(0,t.jsx)(m.SidebarUserNav,{restrictPersonalAccountMenu:j,showOrganizationSettings:b,user:e})}),(0,t.jsx)(s.AlertDialog,{onOpenChange:D,open:w,children:(0,t.jsxs)(s.AlertDialogContent,{children:[(0,t.jsxs)(s.AlertDialogHeader,{children:[(0,t.jsx)(s.AlertDialogTitle,{children:"Xóa tất cả cuá»c trò chuyá»n?"}),(0,t.jsx)(s.AlertDialogDescription,{children:"Hà nh Äá»ng nà y không thá» hoà n tác. Äiá»u nà y sẽ xóa vÄ©nh viá»
n tất cả cuá»c trò chuyá»n cá»§a bạn và xóa chúng khá»i máy chá»
1§ cá»§a chúng tôi."})]}),(0,t.jsxs)(s.AlertDialogFooter,{children:[(0,t.jsx)(s.AlertDialogCancel,{children:"Há»§y"}),(0,t.jsx)(s.AlertDialogAction,{onClick:()=>{let e=fetch("/api/history?type=customs",{method:"DELETE"});c.toast.promise(e,{loading:"Äang xóa tất cả cuá»c trò chuyá»n...",success:()=>(C((0,u.unstable_serialize)(g.getChatHistoryPaginationKey)),v.push("/dashboard/customs"),D(!1),"Xóa tất cả cuá»c trò chuyá»n thà nh công"),error:"Xóa tất cả cuá»c trò chuyá»n thất bại"})},children:"Xóa tất cả"})]})]})})]})}])},613574,e=>{"use strict";var t=e.i(243029),s=e.i(817353),r=e.i(325329),i=e.i(183144),a=e.i(269714),n=e.i(349666),d=e.i(673562),l=e.i(278194),o=e.i(64496),c=e.i(24012),h=e.i(796615),u=e.i(842058),x=e.i(754219),m=e.i(927375),p=e.i(152088),f=e.i(519050),g=e.i(509981);let j="customs-chat-history-refresh";function b(e,t,s){if(t&&!1===t.hasMore)return null;if(0===e){let e=s?`&include=${encodeURIComponent(s)}`:"";return`/api/history?type=customs&limit=20${e}`}let r=t.chats.at(-1);return r?`/api/history?type=customs&ending_before=${r.id}&limit=20`:null}function v({filter:e,setFilter:s}){return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)(i.Input,{onChange:t=>s({...e,email:t.target.value}),placeholder:"Tìm kiếm theo email",value:e.email}),(0,t.jsxs)("div",{className:"mt-2 flex flex-row gap-2",children:[(0,t.jsx)(r.Checkbox,{checked:e.paidUser,onCheckedChange:t=>s({...e,paidUser:"indeterminate"===t?void 0:t})}),(0,t.jsx)("p",{children:"Ngưá»i dùng trả tiá»n"})]})]})}e.s(["CUSTOMS_CHAT_HISTORY_REFRESH_EVENT",0,j,"SidebarHistory",0,function({user:e,forAdmin:r=!1}){var i,y;let{setOpenMobile:C}=(0,a.useSidebar)(),{id:w}=(0,h.useParams)(),D=(0,u.useRef)(null),[S,M]=(0,u.useState)({}),{data:N,setSize:k,isValidating:I,isLoading:A,mutate:T}=(0,m.default)((i=S.email,y=S.paidUser,(e,t)=>{let s=b(e,t,w);return r&&(s+="&forAdmin=true",i&&(s+=`&email=${encodeURIComponent(i)}`),y&&(s+=`&paidUser=${y}`)),s}),p.fetcher,{fallbackData:[]});(0,u.useEffect)(()=>{let e=e=>{if(!(e instanceof CustomEvent))return void T();let t=e.detail;t?.chatId&&t.title?T(e=>e?.map(e=>({...e,chats:e.chats.map(e=>e.id===t.chatId?{...e,title:t.title??e.title}:e)})),{revalidate:!0}):T()};return window.addEventListener(j,e),()=>{window.removeEventListener(j,e)}},[T]);let E=(0,h.useRouter)(),[H,P]=(0,u.useState)(null),[z,L]=(0,u.useState)(!1),U=(0,u.useMemo)(()=>N?.flatMap(e=>e.chats)??[],[N]),R=!!w&&U.some(e=>e.id===w),O=(0,u.useMemo)(()=>{let e,t,s;return e=new Date,t=(0,o.subWeeks)(e,1),s=(0,l.subMonths)(e,1),U.reduce((e,r)=>{let i=new Date(r.createdAt);return(0,n.isToday)(i)?e.today.push(r):(0,d.isYesterday)(i)?e.yesterday.push(r):i>t?e.lastWeek.push(r):i>s?e.lastMonth.push(r):e.older.push(r),e},{today:[],yesterday:[],lastWeek:[],lastMonth:[],older:[]})},[U]),B=!!N&&N.some(e=>!1===e.hasMore),G=!!N&&N.every(e=>e.chats?.length===0);return((0,u.useEffect)(()=>{w&&R&&D.current!==w&&window.requestAnimationFrame(()=>{let e=Array.from(document.querySelectorAll("[data-sidebar-chat-id]")).find(e=>e.dataset.sidebarChatId===w);e?.scrollIntoView({block:"center"}),D.current=w})},[w,R]),e)?A?(0,t.jsxs)(a.SidebarGroup,{children:[(0,t.jsx)("div",{className:"px-2 py-1 text-sidebar-foreground/50 text-xs",children:"Hôm nay"}),(0,t.jsx)(a.SidebarGroupContent,{children:(0,t.jsx)("div",{className:"flex flex-col",children:[44,32,28,64,52].map(e=>(0,t.jsx)("div",{className:"flex h-8 items-center gap-2 rounded-md px-2",children:(0,t.jsx)("div",{className:"h-4 max-w-(--skeleton-width) flex-1 rounded-md bg-sidebar-accent-foreground/10",style:{"--skeleton-width":`${e}%`}})},e))})})]}):G?(0,t.jsx)(a.SidebarGroup,{children:(0,t.jsx)(a.SidebarGroupContent,{children:(0,t.jsx)("div",{className:"flex w-full flex-row items-center justify-center gap-2 px-2 text-sm text-zinc-500",children:"Các cuá»c trò chuyá»n cá»§a bạn sẽ xuất hiá»n á» Äây khi bạn bắt Äầu trò chuyá»n!"})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.SidebarGroup,{children:(0,t.jsxs)(a.SidebarGroupContent,{children:[(0,t.jsxs)(a.SidebarMenu,{children:[r&&(0,t.jsx)(v,{filter:S,setFilter:M}),N&&(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[O.today.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"px-2 py-1 text-sidebar-foreground
1/50 text-xs",children:"Hôm nay"}),O.today.map(s=>(0,t.jsx)(g.ChatItem,{chat:s,chatPrefix:"/dashboard/customs",currentUserId:e.id,forAdmin:r,isActive:s.id===w,onDelete:e=>{P(e),L(!0)},setOpenMobile:C},s.id+s.title))]}),O.yesterday.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"px-2 py-1 text-sidebar-foreground/50 text-xs",children:"Hôm qua"}),O.yesterday.map(s=>(0,t.jsx)(g.ChatItem,{chat:s,chatPrefix:"/dashboard/customs",currentUserId:e.id,forAdmin:r,isActive:s.id===w,onDelete:e=>{P(e),L(!0)},setOpenMobile:C},s.id+s.title))]}),O.lastWeek.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"px-2 py-1 text-sidebar-foreground/50 text-xs",children:"7 ngà y qua"}),O.lastWeek.map(s=>(0,t.jsx)(g.ChatItem,{chat:s,chatPrefix:"/dashboard/customs",currentUserId:e.id,forAdmin:r,isActive:s.id===w,onDelete:e=>{P(e),L(!0)},setOpenMobile:C},s.id+s.title))]}),O.lastMonth.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"px-2 py-1 text-sidebar-foreground/50 text-xs",children:"30 ngà y qua"}),O.lastMonth.map(s=>(0,t.jsx)(g.ChatItem,{chat:s,chatPrefix:"/dashboard/customs",currentUserId:e.id,forAdmin:r,isActive:s.id===w,onDelete:e=>{P(e),L(!0)},setOpenMobile:C},s.id+s.title))]}),O.older.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"px-2 py-1 text-sidebar-foreground/50 text-xs",children:"Tháng trưá»c"}),O.older.map(s=>(0,t.jsx)(g.ChatItem,{chat:s,chatPrefix:"/dashboard/customs",currentUserId:e.id,forAdmin:r,isActive:s.id===w,onDelete:e=>{P(e),L(!0)},setOpenMobile:C},s.id+s.title))]})]})]}),(0,t.jsx)(c.motion.div,{onViewportEnter:()=>{I||B||k(e=>e+1)}}),B?(0,t.jsx)("div",{className:"mt-8 flex w-full flex-row items-center justify-center gap-2 px-2 text-sm text-zinc-500",children:"Bạn Äã Äến cuá»i lá»ch sá» trò chuyá»n."}):(0,t.jsxs)("div",{className:"mt-8 flex flex-row items-center gap-2 p-2 text-zinc-500 dark:text-zinc-400",children:[(0,t.jsx)("div",{className:"animate-spin",children:(0,t.jsx)(f.LoaderIcon,{})}),(0,t.jsx)("div",{children:"Äang tải cuá»c trò chuyá»n..."})]})]})}),(0,t.jsx)(s.AlertDialog,{onOpenChange:L,open:z,children:(0,t.jsxs)(s.AlertDialogContent,{children:[(0,t.jsxs)(s.AlertDialogHeader,{children:[(0,t.jsx)(s.AlertDialogTitle,{children:"Bạn có chắc chắn không?"}),(0,t.jsx)(s.AlertDialogDescription,{children:"Hà nh Äá»ng nà y không thá» hoà n tác. Äiá»u nà y sẽ xóa vÄ©nh viá»
n cuá»c trò chuyá»n cá»§a bạn và xóa nó khá»i máy chá»
1§ cá»§a chúng tôi."})]}),(0,t.jsxs)(s.AlertDialogFooter,{children:[(0,t.jsx)(s.AlertDialogCancel,{children:"Há»§y"}),(0,t.jsx)(s.AlertDialogAction,{onClick:()=>{let e=fetch(`/api/chat?id=${H}`,{method:"DELETE"});x.toast.promise(e,{loading:"Äang xóa cuá»c trò chuyá»n...",success:()=>(T(e=>{if(e)return e.map(e=>({...e,chats:e.chats.filter(e=>e.id!==H)}))}),"Xóa cuá»c trò chuyá»n thà nh công"),error:"Xóa cuá»c trò chuyá»n thất bại"}),L(!1),H===w&&E.push("/dashboard/customs")},children:"Tiếp tục"})]})]})})]}):(0,t.jsx)(a.SidebarGroup,{children:(0,t.jsx)(a.SidebarGroupContent,{children:(0,t.jsx)("div",{className:"flex w-full flex-row items-center justify-center gap-2 px-2 text-sm text-zinc-500",children:"ÄÄng nháºp Äá» lưu và xem lại các cuá»c trò chuyá»n trưá»c Äó!"})})})},"getChatHistoryPaginationKey",0,b])},286049,e=>{"use strict";var t=e.i(243029),s=e.i(842058);let r=(0,s.createContext)(null),i=(0,s.createContext)(null);e.s(["DataStreamProvider",0,function({children:e}){let[a,n]=(0,s.useState)([]);return(0,t.jsx)(i.Provider,{value:n,children:(0,t.jsx)(r.Provider,{value:a,children:e})})},"useDataStream",0,function(){let e=(0,s.useContext)(r),t=(0,s.useContext)(i);if(null===e||!t)throw Error("useDataStream must be used within a DataStreamProvider");return(0,s.useMemo)(()=>({dataStream:e,setDataStream:t}),[e,t])},"useSetDataStream",0,function(){let e=(0,s.useContext)(i);if(!e)throw Error("useSetDataStream must be used within a DataStreamProvider");return e}])},478165,e=>{"use strict";var t=e.i(243029),s=e.i(477130),r=e.i(622589),i=e.i(269714),a=e.i(507295),a=a,n=e.i(192331),d=e.i(12770),l=e.i(796615),o=e.i(842058),c=e.i(338554),h=e.i(449438),u=e.i(903511),x=e.i(812976),m=e.i(152088),p=e.i(519050),f=e.i(852757);e.s(["SidebarUserNav",0,function({user:e,restrictPersonalAccountMenu:g=!1,showCustomsAgentRulesSettings:j=!1,showOrganizationSettings:b=!1}){let v=(0,l.useRouter)(),[y,C]=(0,o.useState)(!1),{data:w,isPending:D}=(0,h.useSession)(),S=u.guestRegex.test(w?.user?.email??""),M=j||b||(0,x.hasPlatformPermission)(e.role,"admin.dashboard.read"),{data:N}=(0,c.default)("/api/credit",m.fetcher,{refreshInterval:e=>y?e&&e.credit>=u.UNLIMITED_CREDITS_THRESHOLD?0:5e3:0});return(0,t.jsx)(i.SidebarMenu,{children:(0,t.jsx)(i.SidebarMenuItem,{children:(0,t.jsxs)(r.DropdownMenu,{onOpenChange:C,open:y,children:[(0,t.jsx)(r.DropdownMenuTrigger,{asChild:!0,children:D?(0,t.jsxs)(i.SidebarMenuButton,{className:"h-10 justify-between bg-background data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,t.jsx)("div",{className:"size-6 animate-pulse rounded-full bg-zinc-500/30"}),(0,t.jsx)("span",{className:"animate-pulse rounded-md bg-zinc-500/30 text-transparent",children:"Loading auth status"})]}),(0,t.jsx)("div",{className:"animate-spin text-zinc-500",children:(0,t.jsx)(p.LoaderIcon,{})})]}):(0,t.jsxs)(i.SidebarMenuButton,{className:"h-10 bg-background data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground","data-testid":"user-nav-button",children:[(0,t.jsx)(n.default,{alt:e.email??"User Avatar",className:"rounded-full",height:24,src:e.image||`https://avatar.vercel.sh/${e.email}`,width:24}),(0,t.jsx)("span",{className:"truncate","data-testid":"user-email",children:S?"Guest":e?.email}),(0,t.jsx)(a.default,{className:"ml-auto"})]})}),(0,t.jsxs)(r.DropdownMenuContent,{className:"w-(--radix-popper-anchor-width)","data-testid":"user-nav-menu",side:"top",children:[(0,x.hasPlatformPermission)(e.role,"admin.dashboard.read")&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.DropdownMenuLabel,{children:"Quản trá» viên"}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/admin/chat",children:"Quản lý trò chuyá»n"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/admin/users",children:"Quản lý ngưá»i dùng"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/admin/contact",children:"Tin nhắn liên há»"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/admin/pricing",children:"Bảng giá"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/admin/metrics",children:"Thá»ng kê"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/admin/coupons",children:"Mã coupon"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/admin/settings",children:"Cà i Äặt"})}),(0,t.jsx)(r.DropdownMenuSeparator,{})]}),(0,t.jsxs)(s.Badge,{className:"text-lg my-2",variant:N&&N?.credit<0?"destructive":"default",children:[N&&N?.credit>=u.UNLIMITED_CREDITS_THRESHOLD?"Vô hạn":N?.credit.toFixed(2)," ","credits"]}),g?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/coupons",children:"Mã coupon"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/transactions",children:"Giao dá»ch"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/usage",children:"Lượng sá» dụng"})})]}),b?(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/org/settings",children:"Cà i Äặt tá» chức"})}):null,(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/settings",children:"Cà i Äặt"})}),(0,t.jsx)(r.DropdownMenuSeparator,{}),(0,t.jsx)(r.DropdownMenuLabel,{children:"Tá» khai"}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/customs-settings/product-codes",children:"Lá»ch sá» tá» khai"})}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/customs-settings/companies",children:"Danh bạ công ty"})}),M?(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(d.default,{href:"/dashboard/customs-settings/agent-rules",children:"Agent rules"})}):null,(0,t.jsx)(r.DropdownMenuSeparator,{}),(0,t.jsx)(r.DropdownMenuItem,{asChild:!0,"data-testid":"user-nav-item-auth",children:(0,t.jsx)("button",{className:"w-full cursor-pointer",onClick:async()=>{D?(0,f.toast)({type:"error",description:"Checking authentication status, please try again!"}):(S||await (0,h.signOut)(),v.push("/login"))}
1,type:"button",children:S?"Login to your account":"ÄÄng xuất"})})]})]})})})}],478165)},341593,e=>{"use strict";var t=e.i(243029),s=e.i(981831);let r=(0,e.i(553010).default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);var i=e.i(388349),a=e.i(12770),n=e.i(842058),d=e.i(536925);e.s(["SurveyCtaBanner",0,function({creditReward:e}){let[l,o]=(0,d.useLocalStorage)("xnk-survey-banner-dismissed",!1),[c,h]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{h(!0)},[]),!c||l)?null:(0,t.jsx)("div",{"aria-label":"Khảo sát ngưá»i dùng",className:"border-b border-primary/20 bg-primary/5 px-4 py-3 text-sm",role:"region",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2.5",children:[(0,t.jsx)(r,{className:"size-4 shrink-0 text-primary"}),(0,t.jsxs)("p",{className:"text-pretty leading-normal",children:["Hoà n thà nh khảo sát 2 phút Äá» nháºn"," ",(0,t.jsxs)("strong",{children:[e," credit"]}),"."]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsx)(s.Button,{asChild:!0,size:"sm",children:(0,t.jsx)(a.default,{href:"/dashboard/survey",children:"Là m khảo sát"})}),(0,t.jsx)(s.Button,{"aria-label":"Ẩn thông báo khảo sát",onClick:()=>o(!0),size:"icon-sm",variant:"ghost",children:(0,t.jsx)(i.X,{className:"size-4"})})]})]})})}],341593)},388349,e=>{"use strict";var t=e.i(305209);e.s(["X",()=>t.default])},639960,e=>{"use strict";var t=e.i(243029),s=e.i(294237);e.i(784260);var r=e.i(632137);e.i(765918);let i=(0,s.cva)("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md!",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md!"}},defaultVariants:{orientation:"horizontal"}});e.s(["ButtonGroup",0,function({className:e,orientation:s,...a}){return(0,t.jsx)("div",{className:(0,r.cn)(i({orientation:s}),e),"data-orientation":s,"data-slot":"button-group",role:"group",...a})}])}]);
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.