Files
doormile_crm_build/dist/assets/Bookings-BbGscC3O.js

2 lines
18 KiB
JavaScript

import{r as H,j as e,i as q,b as u,B as j,T as g,S as ae,l as re,C as te,f as se,I as ie,M as J}from"./index-D7LVXeIK.js";import{d as L,D as ne,a as oe,b as le,c as ce}from"./Close-D3HB9j5y.js";import{T as de,d as ue}from"./DeleteOutline-Dhk3Cr2d.js";import{d as Q}from"./LocalShippingOutlined-C1uYlQnS.js";import{P as he,G as i,C as O,A as me}from"./PageHeader-naLAT9xr.js";import{S as T,E as pe}from"./EmptyState-B9FcYx_n.js";import{A as z,C as ge}from"./ClientFormDialog-Clwkcvac.js";import{C as xe}from"./Link-BEif5YS2.js";import{T as c}from"./TextField-Sd_pshci.js";import{I as je}from"./InputAdornment-CMIlL2rx.js";import{B as _}from"./Button-Bqp5awT1.js";import{T as ve,a as E}from"./Tabs-BUgAhQiL.js";import{T as fe,a as ye,b as be,c as U,d as Ce}from"./TableRow-jBgitpDf.js";import{T as m}from"./TableCell-DreGbAeW.js";import{S as ke}from"./Snackbar-DOheZfWW.js";import{F as we,C as Se}from"./FormControlLabel-Bp5Li47e.js";import"./SwitchBase-CWj2k0Bo.js";var K={},Pe=q;Object.defineProperty(K,"__esModule",{value:!0});var X=K.default=void 0,Ae=Pe(H()),_e=e;X=K.default=(0,Ae.default)((0,_e.jsx)("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphoneOutlined");var G={},Be=q;Object.defineProperty(G,"__esModule",{value:!0});var Y=G.default=void 0,Ie=Be(H()),Fe=e;Y=G.default=(0,Ie.default)((0,Fe.jsx)("path",{d:"M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H3V4h18z"}),"DesktopWindowsOutlined");var V={},De=q;Object.defineProperty(V,"__esModule",{value:!0});var Z=V.default=void 0,Te=De(H()),ze=e;Z=V.default=(0,Te.default)((0,ze.jsx)("path",{d:"M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11c-.59-.57-1.07-1.25-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2m-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"PendingActionsOutlined");const W="https://api.doormile.com/api/v1",We=["Chennai","Coimbatore","Madurai","Tiruchirappalli","Salem","Tuticorin","Tirupur","Erode","Vellore","Tirunelveli","Thanjavur","Dindigul","Hosur","Nagercoil","Karur","Namakkal","Kanchipuram","Cuddalore","Thoothukudi","Bengaluru","Mysuru","Mangaluru","Hubli","Belagavi","Kalaburagi","Davangere","Ballari","Kochi","Thiruvananthapuram","Kozhikode","Kannur","Thrissur","Kollam","Hyderabad","Warangal","Visakhapatnam","Vijayawada","Tirupati","Guntur","Rajahmundry","Nellore","Mumbai","Pune","Nagpur","Nashik","Aurangabad","Kolhapur","Solapur","New Delhi","Gurugram","Noida","Faridabad","Chandigarh","Amritsar","Ludhiana","Jalandhar","Ahmedabad","Surat","Vadodara","Rajkot","Bhavnagar","Jamnagar","Kolkata","Howrah","Durgapur","Asansol","Siliguri","Lucknow","Kanpur","Agra","Varanasi","Allahabad","Meerut","Bhopal","Indore","Gwalior","Jabalpur","Jaipur","Jodhpur","Udaipur","Kota","Bikaner","Patna","Gaya","Bhagalpur","Bhubaneswar","Cuttack","Rourkela","Guwahati","Raipur","Ranchi","Dehradun"],R=()=>{const o=localStorage.getItem("auth_token");return{"Content-Type":"application/json",...o?{Authorization:`Bearer ${o}`}:{}}};async function Re(){const o=await fetch(`${W}/admin/bookings`,{headers:R()});if(!o.ok)throw new Error("Failed to fetch bookings");const d=await o.json();return Array.isArray(d)?d:d.data||[]}async function $e(){const o=await fetch(`${W}/admin/competitor-branches?limit=1000`,{headers:R()});if(!o.ok)throw new Error("Failed to fetch surveys");const d=await o.json();return Array.isArray(d)?d:d.data||[]}async function Ne(o){const d=await fetch(`${W}/admin/crmbooking`,{method:"POST",headers:R(),body:JSON.stringify(o)});if(!d.ok){const y=await d.json().catch(()=>({}));throw new Error(y.error||"Failed to create booking")}return d.json()}function Me({open:o,onClose:d,onSave:y,clients:$,surveys:B}){var p;const[I,b]=u.useState(!1),[s,l]=u.useState({customer_name:"",customer_phone:"",pickupaddress:"",pickuppincode:"",deliveryaddress:"",deliverypincode:"",deliverycity:"",providercompany:"",providerlocation:"",notes:"",service_option:"Normal",finalprice:"",insuranceamount:"",needsinsurance:!1,declaredvalue:"",parcels:[{itemcategory:"",weight:"",length:"",width:"",height:""}]}),[C,k]=u.useState(!1),[F,v]=u.useState(null),[w,S]=u.useState(null);u.useEffect(()=>{o&&(l({customer_name:"",customer_phone:"",pickupaddress:"",pickuppincode:"",deliveryaddress:"",deliverypincode:"",deliverycity:"",providercompany:"",providerlocation:"",notes:"",service_option:"Normal",finalprice:"",insuranceamount:"",needsinsurance:!1,declaredvalue:"",parcels:[{itemcategory:"",weight:"",length:"",width:"",height:""}]}),v(null),S(null))},[o]);const h=a=>r=>l(n=>({...n,[a]:r.target.value})),x=(a,r)=>n=>{const A=[...s.parcels];A[a]={...A[a],[r]:n.target.value},l(ee=>({...ee,parcels:A}))},N=()=>{l(a=>({...a,parcels:[...a.parcels,{itemcategory:"",weight:"",length:"",width:"",height:""}]}))},D=a=>{if(s.parcels.length<=1)return;const r=[...s.parcels];r.splice(a,1),l(n=>({...n,parcels:r}))},f=async()=>{k(!0),v(null);try{if(!s.pickupaddress||!s.pickuppincode)throw new Error("Pickup Address and Pincode are required");const a={...s,finalprice:parseFloat(s.finalprice)||0,insuranceamount:parseFloat(s.insuranceamount)||0,parcels:s.parcels.map(r=>({itemcategory:r.itemcategory||"General",weight:parseFloat(r.weight)||1,length:parseFloat(r.length)||1,width:parseFloat(r.width)||1,height:parseFloat(r.height)||1}))};await Ne(a),y(),d()}catch(a){console.error(a),v(a.message||"Failed to create booking")}finally{k(!1)}},M=async()=>{try{const a=await fetch(`${W}/admin/pricing/quote`,{method:"POST",headers:R(),body:JSON.stringify({parcels:s.parcels.map(r=>({weight:parseFloat(r.weight)||1,length:parseFloat(r.length)||1,width:parseFloat(r.width)||1,height:parseFloat(r.height)||1}))})});if(a.ok){const r=await a.json();S(r),s.finalprice||l(n=>{var A;return{...n,finalprice:((A=r.basequote)==null?void 0:A.toFixed(2))||""}})}}catch(a){console.error(a)}},P=Array.from(new Set(B.map(a=>a.company).filter(Boolean))),t=B.filter(a=>a.company===s.providercompany).map(a=>a.area||a.address).filter(Boolean);return e.jsxs(e.Fragment,{children:[e.jsx(ke,{open:!!F,autoHideDuration:6e3,onClose:()=>v(null),anchorOrigin:{vertical:"top",horizontal:"right"},sx:{zIndex:9999},children:e.jsx(me,{onClose:()=>v(null),severity:"error",variant:"filled",sx:{width:"100%",boxShadow:3},children:F})}),e.jsxs(ne,{open:o,onClose:C?void 0:d,maxWidth:"md",fullWidth:!0,children:[e.jsx(oe,{sx:{fontWeight:800},children:"Create New Booking"}),e.jsxs(le,{dividers:!0,children:[e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,mb:1,color:"primary.main"},children:"Customer Details"}),e.jsx(i,{container:!0,spacing:2,sx:{mb:3},children:e.jsx(i,{item:!0,xs:12,children:e.jsxs(j,{sx:{display:"flex",gap:2,alignItems:"center"},children:[e.jsx(z,{options:$,sx:{flexGrow:1},getOptionLabel:a=>typeof a=="string"?a:`${a.first_name||""} ${a.last_name||""} - ${a.phone||""}`,onChange:(a,r)=>{l(r&&typeof r=="object"?n=>({...n,customer_name:`${r.first_name||""} ${r.last_name||""}`.trim(),customer_phone:r.phone||""}):n=>({...n,customer_name:"",customer_phone:""}))},renderInput:a=>e.jsx(c,{...a,label:"Select Existing Client",size:"small"})}),e.jsx(_,{variant:"outlined",startIcon:e.jsx(L,{}),onClick:()=>b(!0),sx:{whiteSpace:"nowrap"},children:"New Client"})]})})}),e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,mb:1,color:"primary.main"},children:"Assigned Provider (From Survey)"}),e.jsxs(i,{container:!0,spacing:2,sx:{mb:3},children:[e.jsx(i,{item:!0,xs:12,sm:6,children:e.jsx(z,{options:P,value:s.providercompany,onChange:(a,r)=>l(n=>({...n,providercompany:r||"",providerlocation:""})),renderInput:a=>e.jsx(c,{...a,label:"Provider Name",size:"small"})})}),e.jsx(i,{item:!0,xs:12,sm:6,children:e.jsx(z,{options:t,value:s.providerlocation,onChange:(a,r)=>l(n=>({...n,providerlocation:r||""})),renderInput:a=>e.jsx(c,{...a,label:"Provider Location / Sub Hub",size:"small"}),disabled:!s.providercompany})})]}),e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,mb:1,color:"primary.main"},children:"Pickup Location"}),e.jsxs(i,{container:!0,spacing:2,sx:{mb:3},children:[e.jsx(i,{item:!0,xs:12,sm:8,children:e.jsx(c,{fullWidth:!0,label:"Pickup Address *",value:s.pickupaddress,onChange:h("pickupaddress"),size:"small"})}),e.jsx(i,{item:!0,xs:12,sm:4,children:e.jsx(c,{fullWidth:!0,label:"Pickup Pincode *",value:s.pickuppincode,onChange:h("pickuppincode"),size:"small"})})]}),e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,mb:1,color:"primary.main"},children:"Delivery Destination"}),e.jsxs(i,{container:!0,spacing:2,sx:{mb:3},children:[e.jsx(i,{item:!0,xs:12,sm:12,children:e.jsx(c,{fullWidth:!0,label:"Delivery Address",value:s.deliveryaddress,onChange:h("deliveryaddress"),size:"small"})}),e.jsx(i,{item:!0,xs:12,sm:8,children:e.jsx(z,{freeSolo:!0,options:We,value:s.deliverycity,onChange:(a,r)=>l(n=>({...n,deliverycity:r||""})),onInputChange:(a,r)=>l(n=>({...n,deliverycity:r||""})),renderInput:a=>e.jsx(c,{...a,label:"Search City",size:"small"})})}),e.jsx(i,{item:!0,xs:12,sm:4,children:e.jsx(c,{fullWidth:!0,label:"Delivery Pincode",value:s.deliverypincode,onChange:h("deliverypincode"),size:"small"})})]}),e.jsxs(j,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,color:"primary.main"},children:"Parcel Details"}),e.jsx(_,{size:"small",startIcon:e.jsx(L,{}),onClick:N,children:"Add Parcel"})]}),s.parcels.map((a,r)=>e.jsxs(i,{container:!0,spacing:2,sx:{mb:2,alignItems:"center"},children:[e.jsx(i,{item:!0,xs:12,sm:3,children:e.jsx(c,{fullWidth:!0,label:"Category (e.g. Box)",value:a.itemcategory,onChange:x(r,"itemcategory"),size:"small"})}),e.jsx(i,{item:!0,xs:6,sm:2,children:e.jsx(c,{fullWidth:!0,label:"Weight (kg)",type:"number",value:a.weight,onChange:x(r,"weight"),size:"small"})}),e.jsx(i,{item:!0,xs:6,sm:2,children:e.jsx(c,{fullWidth:!0,label:"Length (cm)",type:"number",value:a.length,onChange:x(r,"length"),size:"small"})}),e.jsx(i,{item:!0,xs:6,sm:2,children:e.jsx(c,{fullWidth:!0,label:"Width (cm)",type:"number",value:a.width,onChange:x(r,"width"),size:"small"})}),e.jsx(i,{item:!0,xs:4,sm:2,children:e.jsx(c,{fullWidth:!0,label:"Height (cm)",type:"number",value:a.height,onChange:x(r,"height"),size:"small"})}),e.jsx(i,{item:!0,xs:2,sm:1,children:e.jsx(ie,{color:"error",onClick:()=>D(r),disabled:s.parcels.length===1,children:e.jsx(ue,{})})})]},r)),e.jsxs(j,{sx:{display:"flex",gap:2,alignItems:"center",mb:1},children:[e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,color:"primary.main"},children:"Price & Insurance"}),e.jsx(_,{size:"small",variant:"outlined",onClick:M,children:"Check Price Estimate"})]}),w&&e.jsxs(g,{variant:"body2",color:"text.secondary",sx:{mb:2,px:1,borderLeft:"4px solid #3b82f6",bgcolor:"#eff6ff",py:1},children:["Estimated Base Price: ",e.jsxs("strong",{children:["₹",(p=w.basequote)==null?void 0:p.toFixed(2)]})," (Chargeable Weight: ",w.chargeableweight," kg)"]}),e.jsxs(i,{container:!0,spacing:2,sx:{mb:3},children:[e.jsx(i,{item:!0,xs:12,sm:3,children:e.jsx(c,{fullWidth:!0,label:"Final Price (₹)",type:"number",value:s.finalprice,onChange:h("finalprice"),size:"small"})}),e.jsx(i,{item:!0,xs:12,sm:9,children:e.jsxs(j,{sx:{display:"flex",gap:2,alignItems:"center"},children:[e.jsx(we,{control:e.jsx(Se,{checked:s.needsinsurance,onChange:a=>{const r=a.target.checked;l(n=>({...n,needsinsurance:r,insuranceamount:r&&n.declaredvalue?(parseFloat(n.declaredvalue)*.01).toFixed(2):n.insuranceamount}))}}),label:"Needs Insurance? (1%)",sx:{whiteSpace:"nowrap"}}),e.jsx(c,{label:"Declared Value (₹)",type:"number",size:"small",sx:{width:150},value:s.declaredvalue,onChange:a=>{const r=a.target.value;l(n=>({...n,declaredvalue:r,insuranceamount:n.needsinsurance&&r?(parseFloat(r)*.01).toFixed(2):n.insuranceamount}))}}),e.jsx(c,{label:"Insurance Amount (₹)",type:"number",size:"small",sx:{width:150},value:s.insuranceamount,onChange:h("insuranceamount")})]})})]}),e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,mb:1,color:"primary.main"},children:"Additional Information"}),e.jsxs(i,{container:!0,spacing:2,children:[e.jsx(i,{item:!0,xs:12,sm:6,children:e.jsxs(c,{select:!0,fullWidth:!0,label:"Select Speed",value:s.service_option,onChange:h("service_option"),size:"small",children:[e.jsx(J,{value:"Normal",children:"Normal"}),e.jsx(J,{value:"Fast",children:"Fast Express"})]})}),e.jsx(i,{item:!0,xs:12,sm:6,children:e.jsx(c,{fullWidth:!0,label:"Notes / Remarks",value:s.notes,onChange:h("notes"),size:"small"})})]})]}),e.jsxs(ce,{sx:{px:3,py:2},children:[e.jsx(_,{onClick:d,disabled:C,children:"Cancel"}),e.jsx(_,{variant:"contained",onClick:f,disabled:C||!s.customer_phone,sx:{bgcolor:"primary.main","&:hover":{bgcolor:"primary.dark"}},children:C?"Creating...":"Create Booking"})]})]}),I&&e.jsx(ge,{open:I,mode:"create",onClose:()=>b(!1),onSaved:()=>{b(!1),y()}})]})}function ta(){const[o,d]=u.useState([]),[y,$]=u.useState([]),[B,I]=u.useState([]),[b,s]=u.useState(!0),[l,C]=u.useState(""),[k,F]=u.useState("All"),[v,w]=u.useState(!1),[S,h]=u.useState(0),[x,N]=u.useState(10),D=async()=>{s(!0);try{const[t,p,a]=await Promise.all([Re(),se().catch(()=>[]),$e().catch(()=>[])]);d(Array.isArray(t)?t:[]),$(Array.isArray(p)?p:[]),I(Array.isArray(a)?a:[])}catch(t){console.error(t)}finally{s(!1)}};u.useEffect(()=>{D()},[]);const f=o.filter(t=>{const p=(t.bookingno||"").toLowerCase().includes(l.toLowerCase())||(t.pickupaddress||"").toLowerCase().includes(l.toLowerCase())||(t.deliverycity||"").toLowerCase().includes(l.toLowerCase())||(t.providercompany||"").toLowerCase().includes(l.toLowerCase()),a=k==="All"||t.bookingsource===k;return p&&a}),M=f.slice(S*x,S*x+x),P={total:o.length,app:o.filter(t=>t.bookingsource==="Customer_App").length,crm:o.filter(t=>t.bookingsource==="CRM_Console").length,pending:o.filter(t=>t.status==="Pending_Pickup").length};return e.jsxs(e.Fragment,{children:[e.jsx(he,{title:"Bookings Management",breadcrumbs:[{label:"Bookings"}]}),e.jsxs(i,{container:!0,spacing:2.5,sx:{mb:3},children:[e.jsx(i,{item:!0,xs:12,sm:6,lg:3,children:e.jsx(T,{accent:!0,title:"Total Bookings",value:P.total,icon:Q,color:"primary",caption:"All sources"})}),e.jsx(i,{item:!0,xs:12,sm:6,lg:3,children:e.jsx(T,{accent:!0,title:"App Bookings",value:P.app,icon:X,color:"primary",caption:"Via customer app"})}),e.jsx(i,{item:!0,xs:12,sm:6,lg:3,children:e.jsx(T,{accent:!0,title:"CRM Bookings",value:P.crm,icon:Y,color:"primary",caption:"Created in console"})}),e.jsx(i,{item:!0,xs:12,sm:6,lg:3,children:e.jsx(T,{accent:!0,title:"Pending Pickup",value:P.pending,icon:Z,color:"primary",caption:"Awaiting collection"})})]}),e.jsxs(xe,{sx:{overflow:"hidden"},children:[e.jsxs(j,{sx:{px:{xs:2,sm:2.5},py:2,borderBottom:1,borderColor:"divider",display:"flex",alignItems:"center",gap:1.5,background:t=>`linear-gradient(90deg, ${t.palette.primary.lighter}66 0%, ${t.palette.background.paper} 70%)`},children:[e.jsx(j,{sx:{width:40,height:40,borderRadius:2,bgcolor:"primary.lighter",color:"primary.main",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:e.jsx(Q,{fontSize:"small"})}),e.jsxs(j,{children:[e.jsx(g,{variant:"subtitle1",sx:{fontWeight:700,color:"grey.800",lineHeight:1.2},children:"All Bookings"}),e.jsx(g,{variant:"caption",color:"text.secondary",children:"Track and manage every shipment booking"})]})]}),e.jsxs(ae,{direction:{xs:"column",md:"row"},spacing:1.5,sx:{p:2},alignItems:{md:"center"},children:[e.jsx(c,{size:"small",placeholder:"Search bookings…",value:l,onChange:t=>{C(t.target.value),h(0)},sx:{width:{xs:"100%",md:300}},InputProps:{startAdornment:e.jsx(je,{position:"start",children:e.jsx(re,{fontSize:"small"})})}}),e.jsx(j,{sx:{flexGrow:1}}),!b&&e.jsxs(g,{variant:"body2",color:"text.secondary",children:[f.length," ",f.length===1?"booking":"bookings"]}),e.jsx(_,{variant:"contained",startIcon:e.jsx(L,{}),onClick:()=>w(!0),sx:{flex:{xs:1,md:"none"}},children:"New Booking"})]}),e.jsx(j,{sx:{px:2,borderBottom:1,borderColor:"divider"},children:e.jsxs(ve,{value:k,onChange:(t,p)=>{F(p),h(0)},"aria-label":"booking source filter tabs",children:[e.jsx(E,{label:"All Bookings",value:"All"}),e.jsx(E,{label:"App Bookings",value:"Customer_App"}),e.jsx(E,{label:"CRM Bookings",value:"CRM_Console"})]})}),b?e.jsx(j,{sx:{display:"flex",justifyContent:"center",py:6},children:e.jsx(te,{})}):f.length===0?e.jsx(pe,{title:"No bookings found",caption:"Try a different filter or search term."}):e.jsx(fe,{children:e.jsxs(ye,{children:[e.jsx(be,{children:e.jsxs(U,{sx:{"& th":{bgcolor:"grey.50",fontWeight:700,color:"grey.700",textTransform:"uppercase",fontSize:"0.72rem",letterSpacing:.4}},children:[e.jsx(m,{children:"Booking No"}),e.jsx(m,{children:"Delivery City"}),e.jsx(m,{children:"Provider"}),e.jsx(m,{children:"Source"}),e.jsx(m,{children:"Price"}),e.jsx(m,{children:"Status"})]})}),e.jsx(Ce,{children:M.map(t=>e.jsxs(U,{hover:!0,children:[e.jsx(m,{sx:{fontWeight:600},children:t.bookingno}),e.jsx(m,{children:t.deliverycity||t.deliverypincode||"N/A"}),e.jsx(m,{children:t.providercompany?e.jsx(O,{label:t.providercompany,size:"small",sx:{mr:1}}):"N/A"}),e.jsx(m,{children:e.jsx(O,{label:t.bookingsource==="CRM_Console"?"CRM":"App",size:"small",variant:"outlined",color:t.bookingsource==="CRM_Console"?"secondary":"primary"})}),e.jsx(m,{children:t.serviceoptions&&t.serviceoptions.length>0?`${t.serviceoptions[0].estimatedprice}`:"N/A"}),e.jsx(m,{children:e.jsx(O,{label:t.status,size:"small",color:t.status==="Pending_Pickup"?"warning":"primary"})})]},t.bookingid))})]})}),e.jsx(de,{component:"div",count:f.length,page:S,onPageChange:(t,p)=>h(p),rowsPerPage:x,onRowsPerPageChange:t=>{N(+t.target.value),h(0)},rowsPerPageOptions:[5,10,25]})]}),e.jsx(Me,{open:v,onClose:()=>w(!1),onSave:()=>{D()},clients:y,surveys:B})]})}export{ta as default};