1import{j as e,w as s,K as a,bh as t,aX as r}from"./react-vendor-20261004_155452-CMD9Mu4L.js";import{ap as i}from"./vendor-20261004_155452-C99PGm5B.js";import{a as d}from"./tanstack-20261004_155452-DKr4WzMb.js";import{b as n}from"./app-services-20261004_155452-CqhrjBLd.js";import{b as l}from"./formatters-20261004_155452-DlSOunZv.js";import{ak as c,G as m,R as o,O as x,z as h}from"./index-20261004_155452-i5YY-Rmq.js";import{H as j,I as u}from"./date-utils-20261004_155452-BABpr51X.js";import"./socket-manager-20261004_155452-ZWL0JEUH.js";import"./socket-io-20261004_155452-CfF5R5HA.js";import"./auth-20261004_155452-HLcqn2jx.js";import"./firebase-20261004_155452-bkCdcoUk.js";import"./ui-components-20261004_155452-DP5C5l_T.js";function p(){const p=new URLSearchParams(window.location.search).get("user")||void 0,{data:f,isLoading:g,error:N}=d({queryKey:["admin","abandoned-checkouts",p],queryFn:async()=>await n.get("/orders/checkout-intents/abandoned",{params:p?{search:p,limit:200}:{limit:200}})}),v=f?.data||[];return e.jsxs(e.Fragment,{children:[e.jsx(i,{children:e.jsx("title",{children:"æªå®äºã®æ±ºæ¸ | 管ç"})}),e.jsx(c,{title:"æªå®äºã®æ±ºæ¸ï¼é¢è±æ¤åºï¼",header:{title:"æªå®äºã®æ±ºæ¸ï¼é¢è±æ¤åºï¼",breadcrumbs:[{label:"管çç»é¢",path:"/s"},{label:"æªå®äºã®æ±ºæ¸"}]},loading:g,error:N?"ä¸è¦§ã®åå¾ã«å¤±æãã¾ãã":null,useCard:!1,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(m,{children:e.jsx(o,{className:"py-4 text-sm text-muted-foreground",children:"決æ¸ç»é¢ã¾ã§é²ãã ã®ã«ä¸å®æéï¼æ¢å®60åï¼æ³¨æãæç«ããªãã£ãæ¹ã®ä¸è¦§ã§ãã çºå¸ã®åããã¼ãï¼æå¾ã®ãã¿ã³ã®æ¼ãå¿ãçï¼ããªãããå¿
è¦ã«å¿ãã¦åå¥ã«ãé£çµ¡ãã ããã"})}),0===v.length?e.jsx(m,{children:e.jsx(o,{className:"py-8 text-center text-muted-foreground",children:"æªå®äºã®æ±ºæ¸ã¯ããã¾ãã"})}):e.jsx("div",{className:"space-y-4",children:v.map(i=>{return e.jsxs(m,{children:[e.jsx(x,{className:"pb-2",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(s,{className:"h-4 w-4 text-amber-500"}),e.jsx("span",{className:"font-medium",children:i.userFullName||i.userNickname||i.userSku}),e.jsx(h,{variant:"secondary",children:"æªå®äº"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(a,{className:"h-4 w-4"}),j(new Date(i.updatedAt),"yyyy/MM/dd HH:mm",{locale:u})]})]})}),e.jsxs(o,{children:[e.jsx("div",{className:"space-y-2 mb-4",children:i.itemsSnapshot.map((s,a)=>e.jsxs("div",{className:"flex items-center gap-2 text-sm py-1 border-b last:border-b-0",children:[e.jsx(h,{variant:"outline",className:"text-xs",children:"ticket"===s.type?"ãã±ãã":"åå"}),e.jsx("span",{className:"font-mono text-xs",children:s.sku}),s.quantity>1&&e.jsxs("span",{className:"text-muted-foreground",children:["x",s.quantity]})]},a))}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 text-sm pt-3 border-t",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"h-4 w-4 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground",children:"æ±ºæ¸æ¹æ³"}),e.jsx("div",{children:(d=i.paymentMethod,{square:"ã¯ã¬ã¸ããã«ã¼ã",paypay_store:"PayPay",bank_transfer:"éè¡æ¯è¾¼",venue_payment:"ä¼å ´æã"}[d]||d)})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r,{className:"h-4 w-4 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground",children:"é£çµ¡å
"}),e.jsx("div",{children:i.userPhone||"-"})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-muted-foreground",children:"æ¯æäºå®é¡"}),e.jsx("div",{className:"text-lg font-bold",children:l(i.totalAmount)}),i.pointsUsed>0&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:["ã»ãã«ãã¤ã³ãå©ç¨äºå® ",i.pointsUsed.toLocaleStr
1ing(),"pt"]})]})]})]})]},i.id);var d})})]})})]})}export{p as default};
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.