1import{r as x,j as e,m as h,P as Z,M as W,b as E,C as Q,F as P,X as ee,R as se,c as ae,A as te,d as ne,L as g,I as N,e as A,f as ie,h as Y,Z as z,B as v,i as re,k as de,l as u,u as S}from"./index-BYJNLy0J.js";const f=[{id:"review",label:"Review Cart",icon:Z},{id:"customer",label:"Customer Info",icon:W},{id:"shipping",label:"Shipping",icon:E},{id:"payment",label:"Payment",icon:Q},{id:"confirm",label:"Confirm",icon:P}];function ce({cart:c,user:b,retailerProfile:n,onClose:C,onComplete:k}){const[d,$]=x.useState(0),[O,y]=x.useState(!1),[r,T]=x.useState({}),[a,K]=x.useState({company_name:(n==null?void 0:n.company_name)||"",buyer_name:(b==null?void 0:b.full_name)||"",buyer_email:(b==null?void 0:b.email)||"",buyer_phone:(n==null?void 0:n.phone)||"",billing_address:(n==null?void 0:n.billing_address)||"",shipping_address:(n==null?void 0:n.shipping_address)||"",same_as_billing:!1,po_number:"",notes:"",payment_terms:(n==null?void 0:n.payment_terms)||"pay_now"}),[i,V]=x.useState(null),[m,R]=x.useState("standard"),[X,I]=x.useState(!1),j=(c==null?void 0:c.items)||[],_=j.reduce((s,t)=>s+t.unit_price*t.quantity,0),F=i?m==="express"?i.express.cost:i.standard.cost:0,B=_+F,q=async s=>{if(!(!s||s.trim().length<10)){I(!0);try{const{data:t}=await u.functions.invoke("calculateShipping",{shipping_address:s,item_count:j.reduce((l,p)=>l+p.quantity,0),subtotal:_});t.success&&V(t.shipping)}catch(t){console.error("Shipping calculation error:",t)}I(!1)}};x.useEffect(()=>{if(d===2){const s=a.same_as_billing?a.billing_address:a.shipping_address;q(s)}},[d]);const o=(s,t)=>{K(l=>({...l,[s]:t})),r[s]&&T(l=>({...l,[s]:null}))},L=s=>{const t={};return s===1&&(a.company_name.trim()||(t.company_name="Company name is required"),a.buyer_name.trim()||(t.buyer_name="Buyer name is required"),a.buyer_email.trim()||(t.buyer_email="Email is required"),a.buyer_email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a.buyer_email)&&(t.buyer_email="Valid email is required"),a.billing_address.trim()||(t.billing_address="Billing address is required"),(a.same_as_billing?a.billing_address:a.shipping_address).trim()||(t.shipping_address="Shipping address is required")),T(t),Object.keys(t).length===0},G=()=>{L(d)&&$(s=>Math.min(s+1,f.length-1))},H=()=>$(s=>Math.max(s-1,0)),J=async()=>{if(!L(d))return;y(!0);const s=`WO-${Date.now().toString(36).toUpperCase()}`,t=a.same_as_billing?a.billing_address:a.shipping_address,l={order_number:s,type:"outgoing",status:"pending",payment_status:a.payment_terms==="pay_now"?"unpaid":"invoiced",items:j,total_amount:B,shipping_cost:F,customer_or_supplier:a.company_name,company_name:a.company_name,buyer_name:a.buyer_name,buyer_email:a.buyer_email,buyer_phone:a.buyer_phone,billing_address:a.billing_address,shipping_address:t,po_number:a.po_number,payment_terms:a.payment_terms,retailer_profile_id:n==null?void 0:n.id,order_date:new Date().toISOString().split("T")[0],notes:`${a.notes}${a.notes?` 2`:""}Shipping: ${m==="express"?"Express":"Standard"}`},p=await u.entities.Order.create(l);if(await u.functions.invoke("notificationService",{action:"new_order",order_id:p.id,order_number:s,retailer_name:a.company_name,total_amount:B}).catch(console.error),a.payment_terms==="pay_now"){if(window.self!==window.top){S.error("Payment checkout must be done from the published app, not in preview mode."),y(!1);return}try{const w=window.location.origin,U=`${w}/Storefront?payment=success&order=${s}`,M=`${w}/Storefront?payment=cancelled&order=${s}`;console.log("Creating Stripe checkout with URLs:",{successUrl:U,cancelUrl:M});const{data:D}=await u.functions.invoke("createStripeCheckout",{order_id:p.id,success_url:U,cancel_url:M});if(D.checkout_url){c!=null&&c.id&&await u.entities.Cart.update(c.id,{items:[]}),window.location.replace(D.checkout_url);return}else{console.error("No checkout URL returned:",D),S.error("Failed to create payment session. Please try again."),y(!1);return}}catch(w){console.error("Stripe checkout error:",w),S.error("Payment system error. Your order was created - please try paying from your orders page."),y(!1),k(s);return}}c!=null&&c.id&&await u.entities.Cart.update(c.id,{items:[]}),await u.integrations.Core.SendEmail({to:a.buyer_email,subject:`Order Confirmation - ${s}`,body:`Thank you for your order! 3 4Order Number: ${s} 5Company: ${a.company_name} 6Subtotal: $${_.toFixed(2)} 7Shipping: $${F.toFixed(2)} 8Total: $${B.toFixed(2)} 9Payment Terms: ${a.payment_terms==="net_15"?"Net 15":"Net 30"} 10 11We'll notify you when your order ships. 12 13â Drew DeRose Designs`}),y(!1),S.success(`Order ${s} placed successfully!`),k(s)};return e.jsx(h.div,{initial:{opacity:0}
13,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",onClick:C,children:e.jsxs(h.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"bg-white rounded-xl w-full max-w-2xl max-h-[90vh] overflow-hidden flex flex-col",onClick:s=>s.stopPropagation(),children:[e.jsxs("div",{className:"p-5 border-b border-[#E8E2DB] flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-medium text-[#3D3530]",children:"Checkout"}),e.jsxs("p",{className:"text-sm text-[#7A6F66]",children:["Step ",d+1," of ",f.length]})]}),e.jsx("button",{onClick:C,className:"p-2 hover:bg-[#FAF9F7] rounded-lg",children:e.jsx(ee,{className:"w-5 h-5 text-[#6B5B4F]"})})]}),e.jsx("div",{className:"px-5 py-3 border-b border-[#E8E2DB] bg-[#FAF9F7]",children:e.jsx("div",{className:"flex items-center justify-between",children:f.map((s,t)=>{s.icon;const l=t===d,p=t<d;return e.jsxs(se.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-sm font-medium transition-colors ${p||l?"bg-[#6B5B4F] text-white":"bg-[#E8E2DB] text-[#A69080]"}`,children:p?e.jsx(ae,{className:"w-4 h-4"}):t+1}),e.jsx("span",{className:`hidden md:block text-xs ${l?"text-[#3D3530] font-medium":"text-[#A69080]"}`,children:s.label})]}),t<f.length-1&&e.jsx("div",{className:`flex-1 h-px mx-3 ${t<d?"bg-[#6B5B4F]":"bg-[#E8E2DB]"}`})]},s.id)})})}),e.jsx("div",{className:"flex-1 overflow-y-auto p-5",children:e.jsxs(te,{mode:"wait",children:[d===0&&e.jsxs(h.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:[e.jsx("h3",{className:"text-[15px] font-medium text-[#3D3530] mb-4",children:"Review Your Order"}),e.jsx("div",{className:"space-y-3 mb-6",children:j.map((s,t)=>e.jsxs("div",{className:`flex gap-3 p-3 rounded-lg ${s.is_bundle?"bg-[#6B5B4F]/5 border border-[#6B5B4F]/20":"bg-[#FAF9F7]"}`,children:[e.jsxs("div",{className:"w-14 h-14 bg-white rounded overflow-hidden flex-shrink-0 relative",children:[s.image_url?e.jsx("img",{src:s.image_url,alt:s.product_name,className:"w-full h-full object-contain"}):e.jsx(Z,{className:"w-full h-full p-3 text-[#D4C4B5]"}),s.is_bundle&&e.jsx("div",{className:"absolute top-0 left-0 bg-[#6B5B4F] text-white text-[7px] px-1 py-0.5 font-medium",children:"BUNDLE"})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium text-[#3D3530]",children:s.product_name}),e.jsx("p",{className:"text-xs text-[#A69080] font-mono",children:s.sku}),e.jsxs("p",{className:"text-sm text-[#6B5B4F]",children:["$",s.unit_price.toFixed(2)," Ã ",s.quantity,s.is_bundle?" bundle":""]}),s.is_bundle&&s.bundle_items&&e.jsxs("p",{className:"text-[10px] text-[#7A6F66] mt-1",children:["Contains ",s.bundle_items.length," products"]})]}),e.jsxs("p",{className:"text-sm font-semibold text-[#3D3530]",children:["$",(s.unit_price*s.quantity).toFixed(2)]})]},t))}),e.jsxs("div",{className:"border-t border-[#E8E2DB] pt-4",children:[e.jsxs("div",{className:"flex justify-between text-lg font-semibold text-[#3D3530]",children:[e.jsx("span",{children:"Subtotal"}),e.jsxs("span",{children:["$",_.toFixed(2)]})]}),e.jsx("p",{className:"text-xs text-[#A69080] mt-1",children:"Shipping calculated after order confirmation"})]})]},"review"),d===1&&e.jsxs(h.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-5",children:[e.jsx("div",{className:"p-3 bg-amber-50 border border-amber-200 rounded-lg mb-4",children:e.jsxs("p",{className:"text-xs text-amber-800 flex items-center gap-2",children:[e.jsx(ne,{className:"w-4 h-4"}),"All fields marked with * are required to place your order"]})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-[15px] font-medium text-[#3D3530] mb-4",children:"Company Information"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(g,{className:"text-[12px] text-[#6B5B4F]",children:"Company Name *"}),e.jsx(N,{value:a.company_name,onChange:s=>
13o("company_name",s.target.value),className:`mt-1 border-[#E8E2DB] ${r.company_name?"border-rose-500":""}`}),r.company_name&&e.jsx("p",{className:"text-xs text-rose-600 mt-1",children:r.company_name})]}),e.jsxs("div",{children:[e.jsx(g,{className:"text-[12px] text-[#6B5B4F]",children:"Buyer Name *"}),e.jsx(N,{value:a.buyer_name,onChange:s=>o("buyer_name",s.target.value),className:`mt-1 border-[#E8E2DB] ${r.buyer_name?"border-rose-500":""}`}),r.buyer_name&&e.jsx("p",{className:"text-xs text-rose-600 mt-1",children:r.buyer_name})]}),e.jsxs("div",{children:[e.jsx(g,{className:"text-[12px] text-[#6B5B4F]",children:"Email *"}),e.jsx(N,{type:"email",value:a.buyer_email,onChange:s=>o("buyer_email",s.target.value),className:`mt-1 border-[#E8E2DB] ${r.buyer_email?"border-rose-500":""}`}),r.buyer_email&&e.jsx("p",{className:"text-xs text-rose-600 mt-1",children:r.buyer_email})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx(g,{className:"text-[12px] text-[#6B5B4F]",children:"Phone"}),e.jsx(N,{value:a.buyer_phone,onChange:s=>o("buyer_phone",s.target.value),className:"mt-1 border-[#E8E2DB]"})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-[15px] font-medium text-[#3D3530] mb-4",children:"Billing Address *"}),e.jsx(A,{value:a.billing_address,onChange:s=>o("billing_address",s.target.value),placeholder:"Street, City, State, ZIP",className:`border-[#E8E2DB] min-h-[80px] ${r.billing_address?"border-rose-500":""}`}),r.billing_address&&e.jsx("p",{className:"text-xs text-rose-600 mt-1",children:r.billing_address})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("h3",{className:"text-[15px] font-medium text-[#3D3530]",children:"Shipping Address *"}),e.jsxs("label",{className:"flex items-center gap-2 text-[12px] text-[#7A6F66] cursor-pointer",children:[e.jsx(ie,{checked:a.same_as_billing,onCheckedChange:s=>o("same_as_billing",s)}),"Same as billing"]})]}),!a.same_as_billing&&e.jsxs(e.Fragment,{children:[e.jsx(A,{value:a.shipping_address,onChange:s=>o("shipping_address",s.target.value),placeholder:"Street, City, State, ZIP",className:`border-[#E8E2DB] min-h-[80px] ${r.shipping_address?"border-rose-500":""}`}),r.shipping_address&&e.jsx("p",{className:"text-xs text-rose-600 mt-1",children:r.shipping_address})]})]})]},"customer"),d===2&&e.jsxs(h.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-5",children:[e.jsx("h3",{className:"text-[15px] font-medium text-[#3D3530] mb-4",children:"Shipping Method"}),e.jsx("div",{className:"p-3 bg-[#FAF9F7] rounded-lg mb-4",children:e.jsxs("p",{className:"text-xs text-[#7A6F66] flex items-center gap-2",children:[e.jsx(W,{className:"w-3 h-3"}),"Ships from: Bronston, KY 42518"]})}),X?e.jsxs("div",{className:"flex items-center justify-center py-8",children:[e.jsx(Y,{className:"w-6 h-6 animate-spin text-[#6B5B4F]"}),e.jsx("span",{className:"ml-2 text-sm text-[#7A6F66]",children:"Calculating shipping rates..."})]}):i?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("label",{className:`flex items-center gap-4 p-4 border rounded-lg cursor-pointer transition-colors ${m==="standard"?"border-[#6B5B4F] bg-[#FAF9F7]":"border-[#E8E2DB] hover:border-[#D4C4B5]"}`,children:[e.jsx("input",{type:"radio",name:"shipping",value:"standard",checked:m==="standard",onChange:()=>R("standard"),className:"accent-[#6B5B4F]"}),e.jsx(E,{className:"w-5 h-5 text-[#6B5B4F]"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-[#3D3530]",children:"Standard Shipping"}),e.jsxs("p",{className:"text-xs text-[#7A6F66]",children:[i.standard.estimatedDays," business days ⢠",i.zone," zone (",i.distance," mi)"]})]}),e.jsx("div",{className:"text-right",children:i.standard.freeShipping?e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-semibold text-emerald-600",children:"FREE"}),e.jsxs("p",{className:"text-xs text-[#A69080] line-through",children:["$",i.standard.originalCost.toFixed(2)]})]}):e.jsxs("span",{className:"text-sm font-semibold text-[#3D3530]",children:["$",i.standard.cost.toFixed(2)]})})]}),e.jsxs("label",{className:`flex items-center gap-4 p-4 border rounded-lg cursor-pointer transition-colors ${m==="express"?"border-[#6
13B5B4F] bg-[#FAF9F7]":"border-[#E8E2DB] hover:border-[#D4C4B5]"}`,children:[e.jsx("input",{type:"radio",name:"shipping",value:"express",checked:m==="express",onChange:()=>R("express"),className:"accent-[#6B5B4F]"}),e.jsx(z,{className:"w-5 h-5 text-amber-500"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-[#3D3530]",children:"Express Shipping"}),e.jsxs("p",{className:"text-xs text-[#7A6F66]",children:[i.express.estimatedDays," business days"]})]}),e.jsxs("span",{className:"text-sm font-semibold text-[#3D3530]",children:["$",i.express.cost.toFixed(2)]})]}),!i.standard.freeShipping&&i.amountToFreeShipping>0&&e.jsx("div",{className:"p-3 bg-emerald-50 border border-emerald-200 rounded-lg",children:e.jsxs("p",{className:"text-xs text-emerald-700",children:["Add $",i.amountToFreeShipping.toFixed(2)," more for free standard shipping!"]})})]}):e.jsxs("div",{className:"text-center py-6 text-[#7A6F66]",children:[e.jsx("p",{className:"text-sm",children:"Unable to calculate shipping. Please verify shipping address."}),e.jsx(v,{variant:"outline",size:"sm",className:"mt-3 border-[#D4C4B5]",onClick:()=>{const s=a.same_as_billing?a.billing_address:a.shipping_address;q(s)},children:"Recalculate Shipping"})]})]},"shipping"),d===3&&e.jsxs(h.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-5",children:[e.jsx("h3",{className:"text-[15px] font-medium text-[#3D3530] mb-4",children:"Payment Terms"}),e.jsx("div",{className:"space-y-3",children:[{value:"pay_now",label:"Pay Now",desc:"Pay with credit card at checkout"},{value:"net_15",label:"Net 15",desc:"Invoice due in 15 days"},{value:"net_30",label:"Net 30",desc:"Invoice due in 30 days"}].map(s=>{const t=s.value==="pay_now"||(n==null?void 0:n.payment_terms)===s.value||(n==null?void 0:n.payment_terms)==="net_30";return e.jsxs("label",{className:`flex items-center gap-4 p-4 border rounded-lg cursor-pointer transition-colors ${a.payment_terms===s.value?"border-[#6B5B4F] bg-[#FAF9F7]":"border-[#E8E2DB] hover:border-[#D4C4B5]"} ${t?"":"opacity-50 cursor-not-allowed"}`,children:[e.jsx("input",{type:"radio",name:"payment_terms",value:s.value,checked:a.payment_terms===s.value,onChange:l=>o("payment_terms",l.target.value),disabled:!t,className:"accent-[#6B5B4F]"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-[#3D3530]",children:s.label}),e.jsx("p",{className:"text-xs text-[#7A6F66]",children:s.desc})]}),!t&&e.jsx("span",{className:"ml-auto text-xs text-[#A69080]",children:"Not available"})]},s.value)})}),e.jsxs("div",{children:[e.jsx(g,{className:"text-[12px] text-[#6B5B4F]",children:"PO Number (optional)"}),e.jsx(N,{value:a.po_number,onChange:s=>o("po_number",s.target.value),placeholder:"Your purchase order number",className:"mt-1 border-[#E8E2DB]"})]}),e.jsxs("div",{children:[e.jsx(g,{className:"text-[12px] text-[#6B5B4F]",children:"Order Notes (optional)"}),e.jsx(A,{value:a.notes,onChange:s=>o("notes",s.target.value),placeholder:"Special instructions, delivery preferences, etc.",className:"mt-1 border-[#E8E2DB]",rows:3})]})]},"payment"),d===4&&e.jsxs(h.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},children:[e.jsx("h3",{className:"text-[15px] font-medium text-[#3D3530] mb-4",children:"Confirm Your Order"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 bg-[#FAF9F7] rounded-lg",children:[e.jsx("p",{className:"text-xs text-[#A69080] uppercase tracking-wide mb-2",children:"Billing Address"}),e.jsx("p",{className:"text-sm text-[#3D3530] font-medium",children:a.company_name}),e.jsx("p",{className:"text-sm text-[#6B5B4F]",children:a.buyer_name}),e.jsx("p",{className:"text-sm text-[#7A6F66] whitespace-pre-line",children:a.billing_address})]}),e.jsxs("div",{className:"p-4 bg-[#FAF9F7] rounded-lg",children:[e.jsx("p",{className:"text-xs text-[#A69080] uppercase tracking-wide mb-2",children:"Shipping Address"}),e.jsx("p",{className:"text-sm text-[#3D3530] font-medium",children:a.company_name}),e.jsx("p",{className:"text-sm text-[#7A6F66] whitespace-pre-line",children:a.same_as_billing?a.billing_address:a.shipping_address})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 bg-[#FAF9F7] rounded-lg",children:[e.jsx("p",{className:"text-xs text-[#A69080] uppercase tracking-wide mb-2",children:"Shipping Method"}),e.jsxs("p",{className:"text-sm text-[#3D3530] flex items-center gap-2",children:[m==="express"?e.jsx(z,{className:"w-4 h-4 text-amber-500"}):e.jsx(E,{className:"w-4 h-4 text-[#6B5B4F]"}),m==="express"?"Express":"Standard"," Shipping"]}),i&&e.jsxs("p",{className:"text-xs text-[#7A6F66]",children:[m==="express"?i.express.estimatedDays:i.standard.estimatedDays," business days"]})]}),e.jsxs("div",{className:"p-4 bg-[#FAF9F7] rounded-lg",children:[e.jsx("p",{className:"text-xs text-[#A69080] uppercase tracking-wide mb-2",children:"Payment"}),e.jsx("p",{className:"text-sm text-[#3D3530]",children:a.payment_terms==="pay_now"?"Pay Now":a.payment_terms==="net_15"?"Net 15 Terms":"Net 30 Terms"}),a.po_number&&e.jsxs("p",{className:"text-xs text-[#7A6F66]",children:["PO: ",a.po_number]})]})]}
13),e.jsxs("div",{className:"border-t border-[#E8E2DB] pt-4 space-y-2",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("span",{className:"text-[#7A6F66]",children:["Subtotal (",j.length," items)"]}),e.jsxs("span",{className:"text-[#3D3530]",children:["$",_.toFixed(2)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-[#7A6F66]",children:"Shipping"}),i!=null&&i.standard.freeShipping&&m==="standard"?e.jsx("span",{className:"text-emerald-600 font-medium",children:"FREE"}):e.jsxs("span",{className:"text-[#3D3530]",children:["$",F.toFixed(2)]})]}),e.jsxs("div",{className:"flex justify-between text-lg font-semibold text-[#3D3530] pt-2 border-t border-[#E8E2DB]",children:[e.jsx("span",{children:"Total"}),e.jsxs("span",{children:["$",B.toFixed(2)]})]})]})]})]},"confirm")]})}),e.jsxs("div",{className:"p-5 border-t border-[#E8E2DB] flex justify-between",children:[d>0?e.jsxs(v,{variant:"outline",onClick:H,className:"border-[#D4C4B5]",children:[e.jsx(re,{className:"w-4 h-4 mr-1"}),"Back"]}):e.jsx(v,{variant:"outline",onClick:C,className:"border-[#D4C4B5]",children:"Cancel"}),d<f.length-1?e.jsxs(v,{onClick:G,className:"bg-[#6B5B4F] hover:bg-[#5A4A3F]",children:["Continue",e.jsx(de,{className:"w-4 h-4 ml-1"})]}):e.jsx(v,{onClick:J,disabled:O,className:"bg-[#6B5B4F] hover:bg-[#5A4A3F]",children:O?e.jsxs(e.Fragment,{children:[e.jsx(Y,{className:"w-4 h-4 mr-2 animate-spin"}),a.payment_terms==="pay_now"?"Redirecting to Payment...":"Placing Order..."]}):a.payment_terms==="pay_now"?"Proceed to Payment":"Place Order"})]})]})})}export{ce 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.