(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{38733:function(e,t,r){Promise.resolve().then(r.bind(r,98174)),Promise.resolve().then(r.t.bind(r,84080,23)),Promise.resolve().then(r.t.bind(r,27131,23)),Promise.resolve().then(r.t.bind(r,53054,23)),Promise.resolve().then(r.bind(r,42371)),Promise.resolve().then(r.bind(r,22218))},74697:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let n=(0,r(78030).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},42371:function(e,t,r){"use strict";r.d(t,{Toaster:function(){return ea}});var n=r(57437),o=r(2265),s=r(54887),a=r(78149),i=r(1584),l=r(76402),d=r(98324),u=r(71477),c=r(56935),f=r(31383),p=r(25171),v=r(75137),m=r(91715),w=r(1336),x=r(31725),y="ToastProvider",[h,g,E]=(0,l.B)("Toast"),[T,b]=(0,d.b)("Toast",[E]),[N,j]=T(y),P=e=>{let{__scopeToast:t,label:r="Notification",duration:s=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:l}=e,[d,u]=o.useState(null),[c,f]=o.useState(0),p=o.useRef(!1),v=o.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(y,"`. Expected non-empty `string`.")),(0,n.jsx)(h.Provider,{scope:t,children:(0,n.jsx)(N,{scope:t,label:r,duration:s,swipeDirection:a,swipeThreshold:i,toastCount:c,viewport:d,onViewportChange:u,onToastAdd:o.useCallback(()=>f(e=>e+1),[]),onToastRemove:o.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:v,children:l})})};P.displayName=y;var R="ToastViewport",S=["F8"],C="toast.viewportPause",_="toast.viewportResume",A=o.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:s=S,label:a="Notifications ({hotkey})",...l}=e,d=j(R,r),c=g(r),f=o.useRef(null),v=o.useRef(null),m=o.useRef(null),w=o.useRef(null),x=(0,i.e)(t,w,d.onViewportChange),y=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=d.toastCount>0;o.useEffect(()=>{let e=e=>{var t;0!==s.length&&s.every(t=>e[t]||e.code===t)&&(null===(t=w.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),o.useEffect(()=>{let e=f.current,t=w.current;if(E&&e&&t){let r=()=>{if(!d.isClosePausedRef.current){let e=new CustomEvent(C);t.dispatchEvent(e),d.isClosePausedRef.current=!0}},n=()=>{if(d.isClosePausedRef.current){let e=new CustomEvent(_);t.dispatchEvent(e),d.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[E,d.isClosePausedRef]);let T=o.useCallback(e=>{let{tabbingDirection:t}=e,r=c().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[c]);return o.useEffect(()=>{let e=w.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,o,s;let r=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(n=v.current)||void 0===n||n.focus();return}let i=T({tabbingDirection:a?"backwards":"forwards"}),l=i.findIndex(e=>e===r);B(i.slice(l+1))?t.preventDefault():a?null===(o=v.current)||void 0===o||o.focus():null===(s=m.current)||void 0===s||s.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,T]),(0,n.jsxs)(u.I0,{ref:f,role:"region","aria-label":a.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&(0,n.jsx)(I,{ref:v,onFocusFromOutsideViewport:()=>{B(T({tabbingDirection:"forwards"}))}}),(0,n.jsx)(h.Slot,{scope:r,children:(0,n.jsx)(p.WV.ol,{tabIndex:-1,...l,ref:x})}),E&&(0,n.jsx)(I,{ref:m,onFocusFromOutsideViewport:()=>{B(T({tabbingDirection:"backwards"}))}})]})});A.displayName=R;var D="ToastFocusProxy",I=o.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:o,...s}=e,a=j(D,r);return(0,n.jsx)(x.T,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null===(t=a.viewport)||void 0===t?void 0:t.contains(r))||o()}})});I.displayName=D;var M="Toast",k=o.forwardRef((e,t)=>{let{forceMount:r,open:o,defaultOpen:s,onOpenChange:i,...l}=e,[d=!0,u]=(0,m.T)({prop:o,defaultProp:s,onChange:i});return(0,n.jsx)(f.z,{present:r||d,children:(0,n.jsx)(O,{open:d,...l,ref:t,onClose:()=>u(!1),onPause:(0,v.W)(e.onPause),onResume:(0,v.W)(e.onResume),onSwipeStart:(0,a.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,a.M)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,a.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,a.M)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),u(!1)})})})});k.displayName=M;var[L,F]=T(M,{onClose(){}}),O=o.forwardRef((e,t)=>{let{__scopeToast:r,type:l="foreground",duration:d,open:c,onClose:f,onEscapeKeyDown:m,onPause:w,onResume:x,onSwipeStart:y,onSwipeMove:g,onSwipeCancel:E,onSwipeEnd:T,...b}=e,N=j(M,r),[P,R]=o.useState(null),S=(0,i.e)(t,e=>R(e)),A=o.useRef(null),D=o.useRef(null),I=d||N.duration,k=o.useRef(0),F=o.useRef(I),O=o.useRef(0),{onToastAdd:W,onToastRemove:K}=N,U=(0,v.W)(()=>{var e;(null==P?void 0:P.contains(document.activeElement))&&(null===(e=N.viewport)||void 0===e||e.focus()),f()}),X=o.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(O.current),k.current=new Date().getTime(),O.current=window.setTimeout(U,e))},[U]);o.useEffect(()=>{let e=N.viewport;if(e){let t=()=>{X(F.current),null==x||x()},r=()=>{let e=new Date().getTime()-k.current;F.current=F.current-e,window.clearTimeout(O.current),null==w||w()};return e.addEventListener(C,r),e.addEventListener(_,t),()=>{e.removeEventListener(C,r),e.removeEventListener(_,t)}}},[N.viewport,I,w,x,X]),o.useEffect(()=>{c&&!N.isClosePausedRef.current&&X(I)},[c,I,N.isClosePausedRef,X]),o.useEffect(()=>(W(),()=>K()),[W,K]);let H=o.useMemo(()=>P?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!n){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}}),r}(P):null,[P]);return N.viewport?(0,n.jsxs)(n.Fragment,{children:[H&&(0,n.jsx)(V,{__scopeToast:r,role:"status","aria-live":"foreground"===l?"assertive":"polite","aria-atomic":!0,children:H}),(0,n.jsx)(L,{scope:r,onClose:U,children:s.createPortal((0,n.jsx)(h.ItemSlot,{scope:r,children:(0,n.jsx)(u.fC,{asChild:!0,onEscapeKeyDown:(0,a.M)(m,()=>{N.isFocusedToastEscapeKeyDownRef.current||U(),N.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,n.jsx)(p.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":N.swipeDirection,...b,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==m||m(e.nativeEvent),e.nativeEvent.defaultPrevented||(N.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,a.M)(e.onPointerDown,e=>{0===e.button&&(A.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.M)(e.onPointerMove,e=>{if(!A.current)return;let t=e.clientX-A.current.x,r=e.clientY-A.current.y,n=!!D.current,o=["left","right"].includes(N.swipeDirection),s=["left","up"].includes(N.swipeDirection)?Math.min:Math.max,a=o?s(0,t):0,i=o?0:s(0,r),l="touch"===e.pointerType?10:2,d={x:a,y:i},u={originalEvent:e,delta:d};n?(D.current=d,z("toast.swipeMove",g,u,{discrete:!1})):Y(d,N.swipeDirection,l)?(D.current=d,z("toast.swipeStart",y,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(A.current=null)}),onPointerUp:(0,a.M)(e.onPointerUp,e=>{let t=D.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),D.current=null,A.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};Y(t,N.swipeDirection,N.swipeThreshold)?z("toast.swipeEnd",T,n,{discrete:!0}):z("toast.swipeCancel",E,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),N.viewport)})]}):null}),V=e=>{let{__scopeToast:t,children:r,...s}=e,a=j(M,t),[i,l]=o.useState(!1),[d,u]=o.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,v.W)(e);(0,w.b)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>l(!0)),o.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),d?null:(0,n.jsx)(c.h,{asChild:!0,children:(0,n.jsx)(x.T,{...s,children:i&&(0,n.jsxs)(n.Fragment,{children:[a.label," ",r]})})})},W=o.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(p.WV.div,{...o,ref:t})});W.displayName="ToastTitle";var K=o.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e;return(0,n.jsx)(p.WV.div,{...o,ref:t})});K.displayName="ToastDescription";var U="ToastAction",X=o.forwardRef((e,t)=>{let{altText:r,...o}=e;return r.trim()?(0,n.jsx)(q,{altText:r,asChild:!0,children:(0,n.jsx)(Z,{...o,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(U,"`. Expected non-empty `string`.")),null)});X.displayName=U;var H="ToastClose",Z=o.forwardRef((e,t)=>{let{__scopeToast:r,...o}=e,s=F(H,r);return(0,n.jsx)(q,{asChild:!0,children:(0,n.jsx)(p.WV.button,{type:"button",...o,ref:t,onClick:(0,a.M)(e.onClick,s.onClose)})})});Z.displayName=H;var q=o.forwardRef((e,t)=>{let{__scopeToast:r,altText:o,...s}=e;return(0,n.jsx)(p.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...s,ref:t})});function z(e,t,r,n){let{discrete:o}=n,s=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),o?(0,p.jH)(s,a):s.dispatchEvent(a)}var Y=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),o=Math.abs(e.y),s=n>o;return"left"===t||"right"===t?s&&n>r:!s&&o>r};function B(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var G=r(12218),J=r(74697),Q=r(49354);let $=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(A,{ref:t,className:(0,Q.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...o})});$.displayName=A.displayName;let ee=(0,G.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-[var(--smartrip-popup)] text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),et=o.forwardRef((e,t)=>{let{className:r,variant:o,...s}=e;return(0,n.jsx)(k,{ref:t,className:(0,Q.cn)(ee({variant:o}),r),...s})});et.displayName=k.displayName,o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(X,{ref:t,className:(0,Q.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...o})}).displayName=X.displayName;let er=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(Z,{ref:t,className:(0,Q.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...o,children:(0,n.jsx)(J.Z,{className:"h-4 w-4"})})});er.displayName=Z.displayName;let en=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(W,{ref:t,className:(0,Q.cn)("text-sm font-semibold",r),...o})});en.displayName=W.displayName;let eo=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(K,{ref:t,className:(0,Q.cn)("text-sm opacity-90",r),...o})});eo.displayName=K.displayName;var es=r(78068);function ea(){let{toasts:e}=(0,es.pm)();return(0,n.jsxs)(P,{children:[e.map(function(e){let{id:t,title:r,description:o,action:s,...a}=e;return(0,n.jsxs)(et,{...a,children:[(0,n.jsxs)("div",{className:"grid gap-1",children:[r&&(0,n.jsx)(en,{children:r}),o&&(0,n.jsx)(eo,{children:o})]}),s,(0,n.jsx)(er,{})]},t)}),(0,n.jsx)($,{})]})}},78068:function(e,t,r){"use strict";r.d(t,{Am:function(){return c},pm:function(){return f}});var n=r(2265);let o=0,s=new Map,a=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?a(r):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function u(e){d=i(d,e),l.forEach(e=>{e(d)})}function c(e){let{...t}=e,r=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>u({type:"DISMISS_TOAST",toastId:r});return u({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=n.useState(d);return n.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},22218:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(57437),o=r(2265),s=r(39777),a=r(24857);let i=(0,o.createContext)({});t.default=e=>{let{children:t}=e;return(0,o.useEffect)(()=>{let e=(0,a.k)({sampleRate:10});(0,s.S1)("e61a9b0211d1883398691d750f86a619",void 0,{defaultTracking:{sessions:!0},plugins:[e]})},[]),(0,n.jsx)(i.Provider,{value:{trackAmplitudeEvent:(e,t)=>{(0,s.j)(e,t)}},children:t})}},49354:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(44839),o=r(96164),s=r(20357);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.m6)((0,n.W)(t))}"win32"===s.platform||s.platform},53054:function(){},27131:function(e){e.exports={style:{fontFamily:"'__Inter_d65c78', '__Inter_Fallback_d65c78'",fontStyle:"normal"},className:"__className_d65c78",variable:"__variable_d65c78"}},31725:function(e,t,r){"use strict";r.d(t,{T:function(){return a},f:function(){return i}});var n=r(2265),o=r(25171),s=r(57437),a=n.forwardRef((e,t)=>(0,s.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var i=a}},function(e){e.O(0,[2598,9141,6264,5595,8669,5070,7696,4772,2971,7023,1744],function(){return e(e.s=38733)}),_N_E=e.O()}]);