import{c as M,j as o}from"./index-D9pJRAs5.js";import{c as R,g as z,R as L,r as j,f as W,b as O}from"./vendor-D6aTFYy9.js";import{bQ as U,bR as F,bS as b,E,C as k,a7 as A,q as B,X as I}from"./ui-CtYVlq7P.js";import{_ as q,a as V,b as $,c as H}from"./utils-BowMT5us.js";import"./pdf-Bz_mU5mG.js";function X(e,n){if(e==null)return{};var a,t,r=U(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(t=0;t<s.length;t++)a=s[t],n.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}/*!
 * Signature Pad v2.3.2
 * https://github.com/szimek/signature_pad
 *
 * Copyright 2017 Szymon Nowak
 * Released under the MIT license
 *
 * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
 * http://corner.squareup.com/2012/07/smoother-signatures.html
 *
 * Implementation of interpolation using cubic Bézier curves is taken from:
 * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
 *
 * Algorithm for approximated length of a Bézier curve is taken from:
 * http://www.lemoda.net/maths/bezier-length/index.html
 *
 */function N(e,n,a){this.x=e,this.y=n,this.time=a||new Date().getTime()}N.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1};N.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))};N.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time};function D(e,n,a,t){this.startPoint=e,this.control1=n,this.control2=a,this.endPoint=t}D.prototype.length=function(){for(var e=10,n=0,a=void 0,t=void 0,r=0;r<=e;r+=1){var s=r/e,l=this._point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),i=this._point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var d=l-a,c=i-t;n+=Math.sqrt(d*d+c*c)}a=l,t=i}return n};D.prototype._point=function(e,n,a,t,r){return n*(1-e)*(1-e)*(1-e)+3*a*(1-e)*(1-e)*e+3*t*(1-e)*e*e+r*e*e*e};function Y(e,n,a){var t,r,s,l=null,i=0;a||(a={});var d=function(){i=a.leading===!1?0:Date.now(),l=null,s=e.apply(t,r),l||(t=r=null)};return function(){var c=Date.now();!i&&a.leading===!1&&(i=c);var u=n-(c-i);return t=this,r=arguments,u<=0||u>n?(l&&(clearTimeout(l),l=null),i=c,s=e.apply(t,r),l||(t=r=null)):!l&&a.trailing!==!1&&(l=setTimeout(d,u)),s}}function f(e,n){var a=this,t=n||{};this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.throttle?this._strokeMoveUpdate=Y(f.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=f.prototype._strokeUpdate,this.dotSize=t.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.onBegin=t.onBegin,this.onEnd=t.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(r){r.which===1&&(a._mouseButtonDown=!0,a._strokeBegin(r))},this._handleMouseMove=function(r){a._mouseButtonDown&&a._strokeMoveUpdate(r)},this._handleMouseUp=function(r){r.which===1&&a._mouseButtonDown&&(a._mouseButtonDown=!1,a._strokeEnd(r))},this._handleTouchStart=function(r){if(r.targetTouches.length===1){var s=r.changedTouches[0];a._strokeBegin(s)}},this._handleTouchMove=function(r){r.preventDefault();var s=r.targetTouches[0];a._strokeMoveUpdate(s)},this._handleTouchEnd=function(r){var s=r.target===a._canvas;s&&(r.preventDefault(),a._strokeEnd(r))},this.on()}f.prototype.clear=function(){var e=this._ctx,n=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,n.width,n.height),e.fillRect(0,0,n.width,n.height),this._data=[],this._reset(),this._isEmpty=!0};f.prototype.fromDataURL=function(e){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=new Image,r=a.ratio||window.devicePixelRatio||1,s=a.width||this._canvas.width/r,l=a.height||this._canvas.height/r;this._reset(),t.src=e,t.onload=function(){n._ctx.drawImage(t,0,0,s,l)},this._isEmpty=!1};f.prototype.toDataURL=function(e){var n;switch(e){case"image/svg+xml":return this._toSVG();default:for(var a=arguments.length,t=Array(a>1?a-1:0),r=1;r<a;r++)t[r-1]=arguments[r];return(n=this._canvas).toDataURL.apply(n,[e].concat(t))}};f.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()};f.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)};f.prototype.isEmpty=function(){return this._isEmpty};f.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),typeof this.onBegin=="function"&&this.onBegin(e)};f.prototype._strokeUpdate=function(e){var n=e.clientX,a=e.clientY,t=this._createPoint(n,a),r=this._data[this._data.length-1],s=r&&r[r.length-1],l=s&&t.distanceTo(s)<this.minDistance;if(!(s&&l)){var i=this._addPoint(t),d=i.curve,c=i.widths;d&&c&&this._drawCurve(d,c.start,c.end),this._data[this._data.length-1].push({x:t.x,y:t.y,time:t.time,color:this.penColor})}};f.prototype._strokeEnd=function(e){var n=this.points.length>2,a=this.points[0];if(!n&&a&&this._drawDot(a),a){var t=this._data[this._data.length-1],r=t[t.length-1];a.equals(r)||t.push({x:a.x,y:a.y,time:a.time,color:this.penColor})}typeof this.onEnd=="function"&&this.onEnd(e)};f.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)};f.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)};f.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor};f.prototype._createPoint=function(e,n,a){var t=this._canvas.getBoundingClientRect();return new N(e-t.left,n-t.top,a||new Date().getTime())};f.prototype._addPoint=function(e){var n=this.points,a=void 0;if(n.push(e),n.length>2){n.length===3&&n.unshift(n[0]),a=this._calculateCurveControlPoints(n[0],n[1],n[2]);var t=a.c2;a=this._calculateCurveControlPoints(n[1],n[2],n[3]);var r=a.c1,s=new D(n[1],t,r,n[2]),l=this._calculateCurveWidths(s);return n.shift(),{curve:s,widths:l}}return{}};f.prototype._calculateCurveControlPoints=function(e,n,a){var t=e.x-n.x,r=e.y-n.y,s=n.x-a.x,l=n.y-a.y,i={x:(e.x+n.x)/2,y:(e.y+n.y)/2},d={x:(n.x+a.x)/2,y:(n.y+a.y)/2},c=Math.sqrt(t*t+r*r),u=Math.sqrt(s*s+l*l),v=i.x-d.x,h=i.y-d.y,m=u/(c+u),_={x:d.x+v*m,y:d.y+h*m},x=n.x-_.x,p=n.y-_.y;return{c1:new N(i.x+x,i.y+p),c2:new N(d.x+x,d.y+p)}};f.prototype._calculateCurveWidths=function(e){var n=e.startPoint,a=e.endPoint,t={start:null,end:null},r=this.velocityFilterWeight*a.velocityFrom(n)+(1-this.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(r);return t.start=this._lastWidth,t.end=s,this._lastVelocity=r,this._lastWidth=s,t};f.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)};f.prototype._drawPoint=function(e,n,a){var t=this._ctx;t.moveTo(e,n),t.arc(e,n,a,0,2*Math.PI,!1),this._isEmpty=!1};f.prototype._drawCurve=function(e,n,a){var t=this._ctx,r=a-n,s=Math.floor(e.length());t.beginPath();for(var l=0;l<s;l+=1){var i=l/s,d=i*i,c=d*i,u=1-i,v=u*u,h=v*u,m=h*e.startPoint.x;m+=3*v*i*e.control1.x,m+=3*u*d*e.control2.x,m+=c*e.endPoint.x;var _=h*e.startPoint.y;_+=3*v*i*e.control1.y,_+=3*u*d*e.control2.y,_+=c*e.endPoint.y;var x=n+c*r;this._drawPoint(m,_,x)}t.closePath(),t.fill()};f.prototype._drawDot=function(e){var n=this._ctx,a=typeof this.dotSize=="function"?this.dotSize():this.dotSize;n.beginPath(),this._drawPoint(e.x,e.y,a),n.closePath(),n.fill()};f.prototype._fromData=function(e,n,a){for(var t=0;t<e.length;t+=1){var r=e[t];if(r.length>1)for(var s=0;s<r.length;s+=1){var l=r[s],i=new N(l.x,l.y,l.time),d=l.color;if(s===0)this.penColor=d,this._reset(),this._addPoint(i);else if(s!==r.length-1){var c=this._addPoint(i),u=c.curve,v=c.widths;u&&v&&n(u,v,d)}}else{this._reset();var h=r[0];a(h)}}};f.prototype._toSVG=function(){var e=this,n=this._data,a=this._canvas,t=Math.max(window.devicePixelRatio||1,1),r=0,s=0,l=a.width/t,i=a.height/t,d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttributeNS(null,"width",a.width),d.setAttributeNS(null,"height",a.height),this._fromData(n,function(g,y,P){var w=document.createElement("path");if(!isNaN(g.control1.x)&&!isNaN(g.control1.y)&&!isNaN(g.control2.x)&&!isNaN(g.control2.y)){var T="M "+g.startPoint.x.toFixed(3)+","+g.startPoint.y.toFixed(3)+" "+("C "+g.control1.x.toFixed(3)+","+g.control1.y.toFixed(3)+" ")+(g.control2.x.toFixed(3)+","+g.control2.y.toFixed(3)+" ")+(g.endPoint.x.toFixed(3)+","+g.endPoint.y.toFixed(3));w.setAttribute("d",T),w.setAttribute("stroke-width",(y.end*2.25).toFixed(3)),w.setAttribute("stroke",P),w.setAttribute("fill","none"),w.setAttribute("stroke-linecap","round"),d.appendChild(w)}},function(g){var y=document.createElement("circle"),P=typeof e.dotSize=="function"?e.dotSize():e.dotSize;y.setAttribute("r",P),y.setAttribute("cx",g.x),y.setAttribute("cy",g.y),y.setAttribute("fill",g.color),d.appendChild(y)});var c="data:image/svg+xml;base64,",u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"'+(' viewBox="'+r+" "+s+" "+l+" "+i+'"')+(' width="'+l+'"')+(' height="'+i+'"')+">",v=d.innerHTML;if(v===void 0){var h=document.createElement("dummy"),m=d.childNodes;h.innerHTML="";for(var _=0;_<m.length;_+=1)h.appendChild(m[_].cloneNode(!0));v=h.innerHTML}var x="</svg>",p=u+v+x;return c+btoa(p)};f.prototype.fromData=function(e){var n=this;this.clear(),this._fromData(e,function(a,t){return n._drawCurve(a,t.start,t.end)},function(a){return n._drawDot(a)}),this._data=e};f.prototype.toData=function(){return this._data};var S={exports:{}};(function(e,n){(function(a,t){e.exports=t()})(R,function(){return function(a){function t(s){if(r[s])return r[s].exports;var l=r[s]={exports:{},id:s,loaded:!1};return a[s].call(l.exports,l,l.exports,t),l.loaded=!0,l.exports}var r={};return t.m=a,t.c=r,t.p="",t(0)}([function(a,t){function r(c){var u=c.getContext("2d"),v=c.width,h=c.height,m=u.getImageData(0,0,v,h).data,_=i(!0,v,h,m),x=i(!1,v,h,m),p=d(!0,v,h,m),g=d(!1,v,h,m),y=g-p+1,P=x-_+1,w=u.getImageData(p,_,y,P);return c.width=y,c.height=P,u.clearRect(0,0,y,P),u.putImageData(w,0,0),c}function s(c,u,v,h){return{red:h[4*(v*u+c)],green:h[4*(v*u+c)+1],blue:h[4*(v*u+c)+2],alpha:h[4*(v*u+c)+3]}}function l(c,u,v,h){return s(c,u,v,h).alpha}function i(c,u,v,h){for(var m=c?1:-1,_=c?0:v-1,x=_;c?x<v:x>-1;x+=m)for(var p=0;p<u;p++)if(l(p,x,u,h))return x;return null}function d(c,u,v,h){for(var m=c?1:-1,_=c?0:u-1,x=_;c?x<u:x>-1;x+=m)for(var p=0;p<v;p++)if(l(x,p,u,h))return x;return null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}])})})(S);var G=S.exports;const J=z(G);var Q=["canvasProps","clearOnResize"],C=function(e){q(a,e);var n=V(a);function a(){var t;H(this,a);for(var r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];return t=n.call.apply(n,[this].concat(s)),t.staticThis=t.constructor,t._sigPad=null,t._canvas=null,t.setRef=function(i){t._canvas=i,t._canvas===null&&(t._sigPad=null)},t._excludeOurProps=function(){var i=t.props;i.canvasProps,i.clearOnResize;var d=X(i,Q);return d},t.componentDidMount=function(){var i=t.getCanvas();t._sigPad=new f(i,t._excludeOurProps()),t._resizeCanvas(),t.on()},t.componentWillUnmount=function(){t.off()},t.componentDidUpdate=function(){Object.assign(t._sigPad,t._excludeOurProps())},t.getCanvas=function(){if(t._canvas===null)throw t.staticThis.refNullError;return t._canvas},t.getTrimmedCanvas=function(){var i=t.getCanvas(),d=document.createElement("canvas");return d.width=i.width,d.height=i.height,d.getContext("2d").drawImage(i,0,0),J(d)},t.getSignaturePad=function(){if(t._sigPad===null)throw t.staticThis.refNullError;return t._sigPad},t._checkClearOnResize=function(){t.props.clearOnResize&&t._resizeCanvas()},t._resizeCanvas=function(){var i,d,c=(i=t.props.canvasProps)!==null&&i!==void 0?i:{},u=c.width,v=c.height;if(!(typeof u<"u"&&typeof v<"u")){var h=t.getCanvas(),m=Math.max((d=window.devicePixelRatio)!==null&&d!==void 0?d:1,1);typeof u>"u"&&(h.width=h.offsetWidth*m),typeof v>"u"&&(h.height=h.offsetHeight*m),h.getContext("2d").scale(m,m),t.clear()}},t.render=function(){var i=t.props.canvasProps;return L.createElement("canvas",F({ref:t.setRef},i))},t.on=function(){return window.addEventListener("resize",t._checkClearOnResize),t.getSignaturePad().on()},t.off=function(){return window.removeEventListener("resize",t._checkClearOnResize),t.getSignaturePad().off()},t.clear=function(){return t.getSignaturePad().clear()},t.isEmpty=function(){return t.getSignaturePad().isEmpty()},t.fromDataURL=function(i,d){return t.getSignaturePad().fromDataURL(i,d)},t.toDataURL=function(i,d){return t.getSignaturePad().toDataURL(i,d)},t.fromData=function(i){return t.getSignaturePad().fromData(i)},t.toData=function(){return t.getSignaturePad().toData()},t}return $(a)}(j.Component);C.propTypes={velocityFilterWeight:b.number,minWidth:b.number,maxWidth:b.number,minDistance:b.number,dotSize:b.oneOfType([b.number,b.func]),penColor:b.string,throttle:b.number,onEnd:b.func,onBegin:b.func,canvasProps:b.object,clearOnResize:b.bool};C.defaultProps={clearOnResize:!0};C.refNullError=new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");const nt=()=>{var x;const{orderId:e}=W();O();const{orders:n,updateOrderStatus:a}=M(),t=j.useRef(null),[r,s]=j.useState(!1),[l,i]=j.useState(""),[d,c]=j.useState(null),[u,v]=j.useState(!1),h=n.find(p=>p.id===e);if(!h)return o.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col items-center justify-center p-6 text-center",children:[o.jsx(E,{size:64,className:"text-slate-300 mb-4"}),o.jsx("h1",{className:"text-2xl font-black text-slate-800 uppercase tracking-tight mb-2",children:"Delivery Not Found"}),o.jsx("p",{className:"text-slate-500",children:"The requested delivery link is invalid or has expired."})]});if(h.status==="delivered"||h.status==="completed")return o.jsxs("div",{className:"min-h-screen bg-emerald-50 flex flex-col items-center justify-center p-6 text-center",children:[o.jsx("div",{className:"w-20 h-20 rounded-full bg-emerald-500 text-white flex items-center justify-center mb-6 shadow-xl shadow-emerald-500/30",children:o.jsx(k,{size:40})}),o.jsx("h1",{className:"text-3xl font-black text-emerald-900 uppercase tracking-tight mb-2",children:"Delivered!"}),o.jsx("p",{className:"text-emerald-700 font-medium",children:"This order was successfully delivered."})]});const m=()=>{var p;(p=t.current)==null||p.clear(),c(null)},_=async()=>{var p,g;if(!l.trim()){alert("Please enter the name of the person receiving the goods.");return}if((p=t.current)!=null&&p.isEmpty()){alert("Please provide a signature.");return}s(!0);try{const y=(g=t.current)==null?void 0:g.getTrimmedCanvas().toDataURL("image/png");await a(h.id,"delivered"),v(!0)}catch(y){console.error(y),alert("Failed to submit delivery proof.")}finally{s(!1)}};return u?o.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col items-center justify-center p-6 text-center",children:[o.jsx("div",{className:"w-24 h-24 rounded-full bg-emerald-500 text-white flex items-center justify-center mb-6 shadow-2xl shadow-emerald-500/50 scale-in",children:o.jsx(k,{size:48})}),o.jsx("h1",{className:"text-4xl font-black text-white uppercase tracking-tight mb-4",children:"Dropoff Complete"}),o.jsx("p",{className:"text-slate-400 max-w-sm",children:"The ERP has been updated, invoice triggered, and revenues booked."}),o.jsxs("div",{className:"mt-12 bg-slate-800 p-6 rounded-3xl border border-slate-700 w-full max-w-sm text-left",children:[o.jsx("p",{className:"text-slate-500 text-xs font-bold uppercase tracking-widest mb-1",children:"Signed By"}),o.jsx("p",{className:"text-white text-lg font-medium",children:l})]})]}):o.jsxs("div",{className:"min-h-screen bg-slate-50 flex flex-col max-w-md mx-auto shadow-2xl relative",children:[o.jsxs("div",{className:"bg-slate-900 p-6 text-white shrink-0",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[o.jsx("div",{className:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center backdrop-blur-md",children:o.jsx(E,{size:20,className:"text-indigo-400"})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-indigo-300 text-xs font-bold uppercase tracking-widest",children:"Driver Portal"}),o.jsx("h1",{className:"text-xl font-black tracking-tight leading-none",children:"Dropoff Task"})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-slate-400 text-xs font-bold mb-1",children:"Customer"}),o.jsx("p",{className:"text-lg font-bold truncate",children:h.customerName})]}),o.jsxs("div",{children:[o.jsxs("p",{className:"text-slate-400 text-xs font-bold flex gap-1 items-center mb-1",children:[o.jsx(A,{size:12})," Address"]}),o.jsx("p",{className:"text-sm text-slate-300 leading-relaxed font-medium",children:h.customerAddress||"No address specified"})]})]})]}),o.jsxs("div",{className:"flex-1 p-6 space-y-6 overflow-y-auto bg-white rounded-t-[2rem] -mt-4 relative z-10",children:[o.jsxs("div",{className:"flex bg-slate-50 p-4 rounded-xl items-center justify-between border border-slate-100",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(B,{size:20,className:"text-slate-400"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs text-slate-500 font-bold uppercase",children:"Order No"}),o.jsx("p",{className:"font-bold text-slate-900",children:h.invoiceNumber})]})]}),o.jsxs("div",{className:"text-right",children:[o.jsx("p",{className:"text-xs text-slate-500 font-bold uppercase",children:"Cartons"}),o.jsx("p",{className:"font-bold text-slate-900",children:((x=h.shippingDetails)==null?void 0:x.numberOfBoxes)||"Not specific"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs font-bold uppercase text-slate-500 mb-2 tracking-widest",children:"Receiver Name"}),o.jsx("input",{type:"text",value:l,onChange:p=>i(p.target.value),placeholder:"John Doe",className:"w-full bg-slate-50 border border-slate-200 outline-none p-4 rounded-xl focus:border-indigo-500 focus:ring-2 focus:ring-indigo-500/20 transition-all font-medium text-lg placeholder:text-slate-300"})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex justify-between items-center mb-2",children:[o.jsx("label",{className:"block text-xs font-bold uppercase text-slate-500 tracking-widest",children:"Digital Signature"}),o.jsxs("button",{onClick:m,className:"text-xs text-slate-400 hover:text-red-500 font-bold tracking-widest flex items-center gap-1",children:[o.jsx(I,{size:12})," CLEAR"]})]}),o.jsx("div",{className:"border-2 border-dashed border-slate-200 rounded-2xl overflow-hidden bg-slate-50",children:o.jsx(C,{ref:t,penColor:"black",canvasProps:{className:"signature-canvas w-full h-[200px] cursor-crosshair"}})})]})]}),o.jsx("div",{className:"p-6 bg-white border-t border-slate-100",children:o.jsx("button",{onClick:_,disabled:r,className:"w-full py-4 rounded-xl bg-slate-900 hover:bg-slate-800 text-white font-black uppercase text-sm tracking-widest transition-all disabled:opacity-50",children:r?"Confirming...":"Confirm Delivery"})})]})};export{nt as default};
