PageSourceSearch

https://logystix.cloud/assets/index-CvrbYQit.js

js logystix.cloud collected 2026-09-25 18:34:04 UTC 373,135 bytes, 508 lines download raw bytes

1import{O as rr,Q as C,S as Wt,r as a,N as t,T as Le,U as je,R as X,V as pt,W as yo,X as Ze,P,Y as se,Z as Je,_ as Oe,$ as ze,a0 as Ve,a1 as xo,a2 as He,a3 as We,a4 as Pe,a5 as vt,a6 as q,a7 as _a,a8 as Eo,a9 as Ta,aa as Dr,ab as Lt,ac as Ct,ad as Xe,ae as So,af as _o,ag as Ir,ah as et,ai as To,aj as fe,ak as V,al as w,am as A,an as u,ao as ct,ap as Aa,aq as Ao,ar as vo,as as Lo,at as Co,au as Do,av as Io,aw as jo,ax as wo,ay as Ro,az as ko,aA as Po,aB as Oo,aC as Bo,aD as ar,aE as No,aF as Fo,aG as Mo,aH as Uo,aI as Go,aJ as $o,aK as zo,aL as Vo,aM as Ho,aN as jr,aO as wr,aP as Mt,aQ as Wo,aR as Rr,aS as Jo,aT as qo,aU as Qo,aV as Yo,aW as Ko,aX as Zo,aY as Xo,aZ as en,a_ as tn,a$ as rn,b0 as an,b1 as sn,b2 as on,b3 as nn,b4 as cn,b5 as ln,b6 as dn,b7 as pn,b8 as Jt,b9 as un,ba as gn,bb as sr,bc as mn,bd as hn,be as fn,bf as wt,bg as Dt,bh as kr,bi as va,bj as qt,bk as bn,bl as yn,bm as xn,bn as Pr,bo as La,bp as En,bq as Sn,br as _n,bs as Tn,bt as An,bu as vn,bv as Or,bw as Ca,bx as Ln,by as Cn,bz as yt,bA as Da,bB as Dn,bC as In,bD as jn,bE as wn,bF as Rn,bG as at,bH as kn,bI as Pn,bJ as On,bK as Bn,bL as Nn,bM as Fn}from"./vendor-B37zWZef.js";import"./vendor-lottie-qO2cA9l8.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function s(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=s(n);fetch(n.href,i)}})();const Br="app_build_version",Mn=["authUser","accessToken","refreshToken","user","userData","identity","tenant_id","theme","I18N_LANGUAGE","hasSeenDisclaimer"];function Un(){try{const e="muh261hx";typeof window<"u"&&(window.__APP_BUILD_VERSION__=e);const r=localStorage.getItem(Br);if(r===e)return;console.info(`[build-version] new build detected (${r||"none"} → ${e}); clearing storage`);const s={};for(const o of Mn){const n=localStorage.getItem(o);n!==null&&(s[o]=n)}localStorage.clear(),sessionStorage.clear();for(const[o,n]of Object.entries(s))localStorage.setItem(o,n);localStorage.setItem(Br,e)}catch{}}Un();const Gn="modulepreload",$n=function(e){return"/"+e},Nr={},g=function(r,s,o){let n=Promise.resolve();return s&&s.length>0&&(document.getElementsByTagName("link"),n=Promise.all(s.map(i=>{if(i=$n(i),i in Nr)return;Nr[i]=!0;const c=i.endsWith(".css"),m=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${m}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Gn,c||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),c)return new Promise((y,p)=>{f.addEventListener("load",y),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))),n.then(()=>r()).catch(i=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i})},ut=()=>{try{const e=localStorage.getItem("authUser");return e?JSON.parse(e):null}catch(e){return console.error("Error parsing authUser:",e),null}},or="https://api.logystix.cloud",Ia=async()=>{try{const e=ut();return!(!(e?.access_token||e?.token)||(await B("/user/profileData")).error===!0)}catch{return!1}},Ie=rr.create({baseURL:or});let Fr=!1;const ja="user/refresh-token";let xt=!1,Qt=[];const Ut=e=>{Qt.forEach(r=>r(e)),Qt=[]},zn=e=>{Qt.push(e)},Vn=({access_token:e,refresh_token:r})=>{const o={...ut()||{},access_token:e,...r?{refresh_token:r}:{}};return localStorage.setItem("authUser",JSON.stringify(o)),o},Hn=async()=>{const r=ut()?.refresh_token;if(!r)return null;const s=await rr.post(`${or}${ja}`,{refresh_token:r}),o=s?.data?.data;return s?.data?.error||!o?.access_token?null:(Vn(o),o.access_token)},Et=(e="session_expired")=>{Fr||(Fr=!0,localStorage.clear(),sessionStorage.clear(),sessionStorage.setItem("showSessionExpiredToast",e),window.location.replace("/login"))},It=e=>{if(typeof e=="string")return/<script\b[^>]*>|<\/script>/gi.test(e);
1if(e&&typeof e=="object"){if(e instanceof FormData||e instanceof Blob||e instanceof File||e instanceof Date)return!1;if(Array.isArray(e))return e.some(r=>It(r));for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&It(e[r]))return!0}return!1};let Fe=null,st=null;const Wn=async()=>{if(Fe)return Fe;try{const e=sessionStorage.getItem("clientIp");if(e)return Fe=e,Fe}catch(e){console.error("sessionStorage access error:",e)}return st||(st=(async()=>{try{const e=await fetch("https://api.ipify.org?format=json");if(e.ok){const r=await e.json();if(r&&r.ip){Fe=r.ip;try{sessionStorage.setItem("clientIp",Fe)}catch(s){console.error("Failed to write IP to sessionStorage:",s)}return Fe}}}catch(e){console.warn("Failed to fetch client IP from ipify:",e)}finally{st=null}return null})(),st)};Ie.interceptors.request.use(async e=>{if(e.data&&It(e.data)||e.params&&It(e.params))return C.error("Security Error: Script tags are not allowed in input."),Promise.reject(new Error("Security Error: Script tags are not allowed in input."));const r=ut(),s=r?.access_token||r?.token;s&&(e.headers.Authorization=`Bearer ${s}`);const o=localStorage.getItem("I18N_LANGUAGE")||"en";e.headers["Accept-Language"]=o;try{const n=await Wn();n&&(e.headers["X-Forwarded-For"]=n)}catch(n){console.warn("Failed to attach X-Forwarded-For header:",n)}return e},e=>Promise.reject(e));Ie.interceptors.response.use(e=>e,async e=>{if(e?.message==="Network Error")return C.error("Network Error. Please check your connection."),Promise.reject("Network Error");if(e?.response?.status===500)return C.error(e?.response?.data?.message||"Internal Server Error"),Promise.reject(e?.response?.data?.message);const r=e.config;if(e.response?.status===401){if(r?.url?.includes(ja)||r?._retry||!ut()?.refresh_token)return Et(),Promise.reject(e);if(r._retry=!0,xt)return new Promise((o,n)=>{zn(i=>{if(!i){n(e);return}r.headers.Authorization=`Bearer ${i}`,o(Ie(r))})});xt=!0;try{const o=await Hn();return xt=!1,o?(Ut(o),r.headers.Authorization=`Bearer ${o}`,Ie(r)):(Ut(null),Et(),Promise.reject(e))}catch(o){return xt=!1,Ut(null),Et(),Promise.reject(o)}}return e.response?.status===429?(C.error(e?.response?.data?.message),Promise.reject(e)):(e.response?.status===403&&Et("access_denied"),Promise.reject(e))});async function B(e,r={}){return await Ie.get(e,{...r}).then(s=>s.data)}async function N(e,r,s={}){const o=r instanceof FormData?{"Content-Type":"multipart/form-data",...s.headers}:{...s.headers};return Ie.post(e,r,{...s,headers:o}).then(n=>n.data).catch(n=>{throw console.error("Error in post request:",n),n})}async function Jn(e,r,s={}){const o=r instanceof FormData?{"Content-Type":"multipart/form-data",...s.headers}:{...s.headers};return Ie.patch(e,r,{...s,headers:o}).then(n=>n.data).catch(n=>{throw console.error("Error in patch request:",n),n})}async function ue(e,r,s={}){const o=r instanceof FormData?{"Content-Type":"multipart/form-data",...s.headers}:{...s.headers},n=r instanceof FormData?r:{...r};return Ie.put(e,n,{...s,headers:o}).then(i=>i.data)}async function ie(e,r={}){return await Ie.delete(e,{...r}).then(s=>s.data)}const DD=Object.freeze(Object.defineProperty({__proto__:null,API_URL:or,del:ie,get:B,patch:Jn,post:N,put:ue,verifyToken:Ia},Symbol.toStringTag,{value:"Module"}));const qn="/user/signin";const Qn="/jwt-forget-pwd",Yn="/post-jwt-profile";const Kn="/products",Zn="/product",Xn="/mailslists",ei="/folders",ti="/selectedmails",ri="/setfolderonmail",ai="/delete/mail",si="/trash/mail",oi="/stared/mail",ni="/mail:id",ii="/events",ci="/add/event",li="/update/event",di="/delete/event",pi="/categories",ui="/chats",gi="/groups",mi="/contacts",hi="/messages",fi="/add/messages",bi="/delete/message",yi="/orders",xi="/add/order",Ei="/update/order",Si="/delete/order",_i="/cart",Ti="/customers",Ai="/add/customer",vi="/update/customer",Li="/delete/customer",Ci="/shops",Di="/wallet",Ii="/crypto/orders",ji="/crypto-products",wi="/invoices",Ri="/invoice",ki="/notifications/get",Pi="/jobs",Oi="/add/job",Bi="/update/job",Ni="/delete/job",Fi="/jobApply",Mi="add/applyjob",Ui="/projects",Gi="/project",$i="/update/project",zi="/delete/project",Vi="/tasks",Hi="/delete/tasks",Wi="/add/tasks",Ji="/update/tasks",qi="/u
1sers",Qi="/user",Yi="/add/user",Ki="/update/user",Zi="/delete/user",Xi="/visitor-data",ec="/top-selling-data",tc="/dashboard/email-chart",rc="/wallet-balance-data",ac="/Statistics-data",sc="/earning-charts-data",oc="/comments-product",wa="/comments-product-action",nc="/comments-product-add-reply",ic="/comments-product-add-comment",cc="/ai/chat/session",lc="/ai/chat/message",dc="/ai/chat/feedback",Rt="/ai/knowledge/gaps",gt="/ai/knowledge/entries",pc="/ai/mail/auth-url",uc="/ai/mail/exchange",gc="/ai/mail/status",mc="/ai/mail/disconnect",hc="/ai/comms/reply",Ra="/ai/comms/drafts",fc="/ai/comms/conversations",bc="/ai/comms/conversation",yc="/inquiry/approve",xc="/inquiry/updateStatus",Ec="/einvoice/listing",Sc="/einvoice/irn/preview",_c="/einvoice/irn/generate",Tc="/einvoice/irn/generate-approved",Ac="/einvoice/ewb/generate",vc="/einvoice/irn/cancel",Lc="/einvoice/ewb/cancel",Cc="/einvoice/download-pdf",Dc="/einvoice/download-irn-ewb-pdf",Ic="/einvoice/packing-list",jc="/einvoice/invoice-preview",wc="/einvoice/billing-document/texts",Rc="/einvoice/send-invoice-email",kc="/user/auth-profile",Pc="/user/my-tenants",Oc="/user/switch-tenant",ID="/parties",jD="/parties/submit-location",Bc="/service-desk/requests",nr="/service-desk/tickets",Nc="/service-desk/tickets/counts",Fc="/service-desk/my-tickets",ir="/service-desk/team",ka="/service-desk/assignee",wD="/customer-truck/fcm-token",RD="/customer-truck/trips",kD="/customer-truck/driver/trip-history",PD="/customer-truck/status-track-list",OD="/customer-truck/profile",BD="/customer-truck/start-trip",ND="/customer-truck/live-tracking-interval",FD="/customer-truck/driver/location",MD="/customer-truck/driver/pause",UD="/customer-truck/driver/resume",GD="/customer-truck/status-updates",$D="/customer-truck/request-complete-trip-otp",zD="/customer-truck/verify-complete-trip-otp",VD="/customer-truck/destination/request-otp",HD="/customer-truck/destination/verify-otp",WD="/trip-exception/submit",Mc="/audit-log/list",Uc="/audit-log/entity-types",Gc="/audit-log/detail",Pa="/user-preference",Oa=()=>{try{const e=localStorage.getItem("user");if(e)return JSON.parse(e)}catch(e){console.error("Error parsing user:",e),localStorage.removeItem("user")}return null},cr=()=>{try{const e=localStorage.getItem("authUser");if(e)return JSON.parse(e)}catch(e){console.error("Error parsing authUser:",e),localStorage.removeItem("authUser")}return!1},Mr=e=>N(cc,e),$c=e=>N(lc,e),zc=e=>N(dc,e),JD=e=>B(Rt,{params:e}),qD=(e,r)=>N(`${Rt}/${e}/teach`,r),QD=e=>N(`${Rt}/${e}/dismiss`,{}),YD=e=>N(`${Rt}/${e}/analyse`,{}),KD=()=>B(gt),ZD=e=>N(gt,e),XD=(e,r)=>ue(`${gt}/${e}`,r),eI=(e,r)=>N(`${gt}/${e}/toggle`,{enabled:r}),tI=e=>ie(`${gt}/${e}`),rI=e=>N(Bc,e),aI=e=>B(nr,{params:e}),sI=()=>B(Nc),oI=e=>B(`${nr}/${e}`),nI=e=>ue(nr,e),iI=e=>B(Fc,{params:e}),cI=e=>B(ir,{params:e}),lI=e=>N(ir,e),dI=e=>ue(ir,e),pI=e=>B(`${ka}/${e}`),uI=e=>N(`${ka}/update`,e),Vc=()=>B(pc),gI=e=>N(uc,e),Hc=()=>B(gc),Wc=()=>N(mc,{}),Jc=e=>ue(yc,{inquiry_id:e}),qc=(e,r)=>ue(xc,{inquiry_id:e,status:"Rejected",rejected_reason:r}),Qc=e=>N(hc,e),Yc=()=>B(fc),Kc=e=>B(bc,{params:e}),Zc=e=>N(`${Ra}/${e}/send`,{}),Xc=e=>N(`${Ra}/${e}/reject`,{}),mI=e=>B(Ec,{params:e}),hI=e=>N(Sc,e),fI=e=>N(_c,e),bI=e=>N(Tc,e),yI=e=>N(Ac,e),xI=e=>N(vc,e),EI=e=>N(Lc,e),SI=e=>N(Cc,e,{responseType:"arraybuffer"}),_I=e=>N(Dc,e,{responseType:"arraybuffer"}),TI=e=>N(Ic,e,{responseType:"arraybuffer"}),AI=e=>N(jc,e,{responseType:"arraybuffer"}),vI=e=>N(wc,e),LI=e=>N(Rc,e),Ba=()=>B(kc),el=()=>B(Pc),tl=e=>N(Oc,e),CI=e=>N(Mc,e),DI=()=>B(Uc),II=e=>B(`${Gc}/${e}`),rl=e=>B(Pa,{params:{module:e}}),al=(e,r)=>N(Pa,{module:e,preferences:r}),jt=JSON.parse(localStorage.getItem("user")),sl=jt?jt.tenant_uuid:null,jI=!!(jt&&jt.tenant_transport_type!=="auction"),wI=sl==="f6f7c8a1-2d19-4b5d-bb3c-92d289cae35b",lr=e=>e?.dispatch_category==="STO",RI=e=>lr(e)?"PO":"SO",kI=e=>lr(e)?"PO No.":"SO No.",PI=e=>{if(!lr(e))return"Sales Order";const r=(e?.inquiry_source?.name||"").toLowerCase();return r.includes("intra")?"Stock Transfer PO (Intra-Company)":r.includes("inter")?"Stock Transfer PO (Inter-Company)":"Stock Transfer PO"},OI=(e="")=>e?e.charAt(0).toUpperCase()+e.slice(1):"",BI=e=>
1e?new Date(e).toLocaleString("en-IN",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):"",NI=e=>{if(typeof e=="object"&&e!==null)return e;try{return JSON.parse(e)}catch{return e}},FI=(e,r="INR")=>new Intl.NumberFormat("en-IN",{style:"currency",currency:r}).format(e),MI=e=>{if(!e)return"₹";let r=e;if(typeof e=="object"&&e!==null&&(r=e.symbol||e.currency||e.code||e.name||"INR"),typeof r!="string")return"₹";r=r.trim();const s=r.toUpperCase();if(s==="INR"||r==="₹")return"₹";if(s==="USD"||r==="$")return"$";if(s==="EUR"||r==="€")return"€";if(s==="GBP"||r==="£")return"£";if(s==="JPY"||r==="¥")return"¥";if(s==="AED")return"AED ";try{const n=new Intl.NumberFormat("en-IN",{style:"currency",currency:s}).formatToParts(0).find(i=>i.type==="currency")?.value;if(n)return n}catch{}return r?`${r} `:"₹"},UI=(e,r={})=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric",...r}).format(new Date(e)),GI=(e="id")=>`${e}-${Math.random().toString(36).substr(2,9)}`,$I=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},zI=e=>e?Wt(e).format("MMM DD, YYYY"):"N/A",VI=/^(?:[A-Z]{2}[- ]?\d{1,2}[- ]?[A-Z]{1,3}[- ]?\d{1,4}|[A-Z]{2}[- ]?\d{1,2}[- ]?\d{1,4}|[A-Z]{3}[- ]?\d{1,4}|[A-Z]{2}[- ]?\d{1,4}|\d{2}[- ]?BH[- ]?\d{4}[- ]?[A-Z]{1,2})$/i,HI=/^[6-9]\d{9}$/,WI={truck:e=>e.toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,12),mobile:e=>e.replace(/\D/g,"").slice(0,10),license:e=>e.toUpperCase().replace(/[^A-Z0-9]/g,"").slice(0,16)},JI=/^[A-Z]{2}[A-Z0-9]{13,15}$/,qI=(e="")=>{if(!e)return"N/A";const r=e.replace(/[^A-Za-z0-9]/g,"").toUpperCase(),s=r.match(/^(\d{2}BH)(\d{4})([A-Z]{1,2})$/);if(s)return`${s[1]} ${s[2]} ${s[3]}`;const o=r.match(/^([A-Z]{2})(\d{1,2})([A-Z]{1,2})(\d{1,4})$/);if(o)return`${o[1]} ${o[2]} ${o[3]} ${o[4]}`;const n=r.match(/^([A-Z]{2})(\d{1,2})(\d{1,4})$/);if(n)return`${n[1]} ${n[2]} ${n[3]}`;const i=r.match(/^([A-Z]{3})(\d{1,4})$/);if(i)return`${i[1]} ${i[2]}`;const c=r.match(/^([A-Z]{2})(\d{1,4})$/);if(c)return`${c[1]} ${c[2]}`;const m=r.match(/^([A-Z]{2}\d{1,2})TR(\d{1,4})$/);if(m)return`${m[1]} TR ${m[2]}`;const f=r.match(/^([A-Z]{2})VA(\d{1,4})$/);if(f)return`${f[1]} VA ${f[2]}`;const y=r.match(/^(\d{1,3})CD(\d{1,4})$/);return y?`${y[1]} CD ${y[2]}`:r},QI=e=>{if(!e)return"";const r=String(e).match(/\d+/);return r?r[0]:""},YI=e=>{if(!e)return"N/A";const r=new Date(e);return`${r.getDate()} ${r.toLocaleString("default",{month:"short"})}, ${r.getFullYear()}`},KI=e=>{if(!e)return"";const r=e?.toLowerCase();return r.includes("metric ton")||r.includes("tons")||r==="mt"?"MT":r.includes("kilogram")?"KG":r.includes("ton")?"Ton":e},Na=/[,;/|\\]/,ol=/[\d(){}[\]<>*#@_"~^=+:!?]/,nl=e=>!e||typeof e!="string"?"":e.split(Na)[0].replace(/\([^)]*\)|\[[^\]]*\]/g," ").replace(/[^\p{L}\s.'-]/gu," ").replace(/\s+/g," ").replace(/^[.'\-\s]+|[.'\-\s]+$/g,"").trim(),ZI=e=>{if(!e||typeof e!="string")return!1;const r=e.trim();return r?Na.test(r)||ol.test(r)||/\s{2,}/.test(r)?!0:nl(r)!==r:!1},XI=(e,r="loading")=>{const s=r==="discharge";let o=s?e?.discharge_port_details:e?.loading_port_details||e?.port_details,n=s?e?.discharge_port:e?.loading_port;return!o&&n&&typeof n=="object"&&(o=n),{code:o?.port_code||o?.code||(typeof n=="string"?n:"")||"",description:o?.port_description||o?.description||"",country:o?.country||"",region:o?.region||null,postal_code:o?.postal_code||null,original:o||null}};function e5(e){if(e==null)return e;const r=String(e).trim();return r===""?r:r.replace(/^0+(?=\d)/,"")}const t5=e=>{const r=e?.status==="Truck Assigned",s=!!e?.is_multimodal,o=Array.isArray(e?.inquiry_truck_details)&&e.inquiry_truck_details.length>0;return r||s&&o},St=e=>e?typeof e=="string"?e:typeof e=="object"&&e.name||"":"",r5=(e,r={})=>{if(!e||typeof e!="object")return"";const s=St(e.city)||St(r.city),o=St(e.state)||St(r.state);return[e.address_line1,e.address_line2,s,o,e.pincode].filter(i=>i&&String(i).trim()).join(", ")},il=a.lazy(()=>g(()=>import("./user-profile-UfVP-f5H.js"),__vite__mapDeps([0,1,2,3,4,5]))),cl=a.lazy(()=>g(()=>import("./Login-B2FRJICa.js"),__vite__mapDeps([6,1,2,3,7,5]))),ll=a.lazy(()=>g(()=>import("./Logout-DXprntz2.js"),__vite__mapDeps([8,1,2,3]))),dl=a.lazy(()=>g(()=>import("./ForgetPassword-BY2F4-3d.js"),__vite__mapDeps([9,1,2,3]))),Ur=a.lazy(()=>g(()=>import("./MicrosoftCallback-C_oLb5_D.js"),__vite__mapDeps([10,1,2,3]))),pl
1=a.lazy(()=>g(()=>import("./KnowledgeLearning-CmmvCrE3.js"),__vite__mapDeps([11,1,2,3,12,5]))),ul=a.lazy(()=>g(()=>import("./index-DaEJYc90.js"),__vite__mapDeps([13,1,2,3,14,15,16,17,18,19,20,21,22,23]))),gl=a.lazy(()=>g(()=>import("./NegotiationDetail-CKZE2y_G.js"),__vite__mapDeps([24,1,2,3,20,21,25,26,27,23]))),ml=a.lazy(()=>g(()=>import("./index-DsN7w2fy.js"),__vite__mapDeps([28,1,2,3,17,29,30,5]))),hl=a.lazy(()=>g(()=>import("./MyRequests-BRqCIHat.js"),__vite__mapDeps([31,1,2,3,20,29,30,17,14,15,16,18,19]))),fl=a.lazy(()=>g(()=>import("./TicketAction-dxSflgMy.js"),__vite__mapDeps([32,1,2,3,17,29])));a.lazy(()=>g(()=>import("./index-jgL9ImWk.js"),__vite__mapDeps([33,1,2,3,20])));const bl=a.lazy(()=>g(()=>import("./index-NMPEmERq.js"),__vite__mapDeps([34,1,2,3,20,17,35,16,36,5,27,37,38,39]))),yl=a.lazy(()=>g(()=>import("./DashboardGuard-BPDbCj6T.js"),__vite__mapDeps([40,1,2,3]))),xl=a.lazy(()=>g(()=>import("./index-DuuxHEnP.js"),__vite__mapDeps([41,1,2,3,20,14,15,16,17,18,19,42,21]))),El=a.lazy(()=>g(()=>import("./index-DtDJmDWt.js"),__vite__mapDeps([43,1,2,3,14,15,16,17,18,19,37,36]))),Sl=a.lazy(()=>g(()=>import("./index-3CyOaqB0.js"),__vite__mapDeps([44,1,2,3,14,15,16,17,18,19]))),_l=a.lazy(()=>g(()=>import("./index-D1sBKSjQ.js"),__vite__mapDeps([45,1,2,3,17,14,15,16,18,19]))),Tl=a.lazy(()=>g(()=>import("./index-Jm3lR9Fl.js"),__vite__mapDeps([46,1,2,3,47]))),Al=a.lazy(()=>g(()=>import("./index-vgF5Y7B7.js"),__vite__mapDeps([48,1,2,3,49]))),vl=a.lazy(()=>g(()=>import("./index-opIAFN-d.js"),__vite__mapDeps([50,1,2,3,14,15,16,17,18,19,36]))),Ll=a.lazy(()=>g(()=>import("./index-D_Es8N5M.js"),__vite__mapDeps([51,1,2,3]))),Cl=a.lazy(()=>g(()=>import("./TenantFormPage-CTViYSB8.js"),__vite__mapDeps([52,1,2,3,53]))),Dl=a.lazy(()=>g(()=>import("./TenantViewPage-7lNWWCCM.js"),__vite__mapDeps([54,1,2,3,55,53]))),Il=a.lazy(()=>g(()=>import("./index-C5xhZOZ2.js"),__vite__mapDeps([56,1,2,3,14,15,16,17,18,19]))),jl=a.lazy(()=>g(()=>import("./index-B10GpbPf.js"),__vite__mapDeps([57,1,2,3,58]))),wl=a.lazy(()=>g(()=>import("./index-FuWL6WF0.js"),__vite__mapDeps([59,1,2,3,15,21,17,60,61]))),Rl=a.lazy(()=>g(()=>import("./index-CrPanKyR.js"),__vite__mapDeps([62,1,2,3,15,21,17,60,63]))),kl=a.lazy(()=>g(()=>import("./AppDetailPage-B1teD0_z.js"),__vite__mapDeps([64,1,2,3,60,21,17,63]))),Pl=a.lazy(()=>g(()=>import("./index-BkV-KQB5.js"),__vite__mapDeps([65,1,2,3,66]))),Ol=a.lazy(()=>g(()=>import("./index-CCAzwy5N.js"),__vite__mapDeps([67,1,2,3,60,61]))),Bl=a.lazy(()=>g(()=>import("./index-Bxv1vFix.js"),__vite__mapDeps([68,1,2,3,21,15,61]))),Nl=a.lazy(()=>g(()=>import("./pages-maintenance-CpsFXI6-.js"),__vite__mapDeps([69,1,2,3]))),Fl=a.lazy(()=>g(()=>import("./pages-comingsoon-Dv9Sh20h.js"),__vite__mapDeps([70,1,2,3]))),Ml=a.lazy(()=>g(()=>Promise.resolve().then(()=>lD),void 0)),Ul=a.lazy(()=>g(()=>import("./thank-you-BDBlUTfC.js"),__vite__mapDeps([71,1,2,3]))),Gl=a.lazy(()=>g(()=>import("./pages-500-DZBa2UeE.js"),__vite__mapDeps([72,1,2,3]))),Fa=a.lazy(()=>g(()=>import("./Home-BPtzaSEY.js"),__vite__mapDeps([73,1,2,3,74,75,76,77]))),$l=a.lazy(()=>g(()=>import("./PrivacyPolicy-NgZOhQr7.js"),__vite__mapDeps([78,1,2,3,79,74,75]))),Gr=a.lazy(()=>g(()=>import("./TermsAndConditions-DgOz7boi.js"),__vite__mapDeps([80,1,2,3,79,74,75]))),zl=a.lazy(()=>g(()=>import("./Disclaimer-DT2yc5IV.js"),__vite__mapDeps([81,1,2,3]))),Vl=a.lazy(()=>g(()=>import("./share-location-DVM-YJmA.js"),__vite__mapDeps([82,1,2,3]))),Hl=a.lazy(()=>g(()=>import("./privacyPolicy-ohFTQGi2.js"),__vite__mapDeps([83,1,2,3]))),Wl=a.lazy(()=>g(()=>import("./PrivacyPolicyios-CtnYFPSY.js"),__vite__mapDeps([84,1,2,3]))),Jl=a.lazy(()=>g(()=>import("./DriverAppDetector-BFCGlvoK.js"),__vite__mapDeps([85,1,2,3]))),ql=a.lazy(()=>g(()=>import("./data_already_exist-BHayzsX1.js"),__vite__mapDeps([86,1,2,3]))),Ql=a.lazy(()=>g(()=>import("./index-BrK9I-2O.js"),__vite__mapDeps([87,1,2,3,12,88,89,14,15,16,17,18,19,20,90,91,4,92,93,94]))),Yl=a.lazy(()=>g(()=>import("./index-OTIrGFay.js"),__vite__mapDeps([95,1,2,3,12,88,89,96,97]))),Kl=a.lazy(()=>g(()=>import("./index-sdMyeszY.js").then(e=>e.i),__vite__mapDeps([98,1,2,3,99,100,21,77,101,42,88,89,14,15,16,17,18,19,102,103,104,105,106,107,20,22,90,108,109,110,111,112,113,114,115,116,117]))),Zl=a.lazy(()=>g(()=>import("./CreateInquiry-QlQ0U17t.js"),__vite__mapDeps([118,1,2,3,119,104,17,120,5,121,99,122,60,108,123,20,124,125,77,126,110,111,114,113,127,128,112,21,116,117])));a.lazy(()=>g(()=>import("./UpdateInquiry-HLZ0n6WS.js"),__vite__mapDeps([129,1,2,3,130,119,104,17,120,5,112,113,114,21,111,110,121,99,122,60,108,20,123,125,77,116,117])));const Xl=a.lazy(()=>g(()=>import("./InquiryViewPage-BYwcoow9.js"),__vite__mapDeps([131,1,2,3,132,77,76,133,134,96,103,104,105,5,135,36,7,123,136,124,125,137,113,114,112,21,111,110,138,139,12,17,140,23,94,141,106,27,142,143,144,20,145,88,89,107,15,108,60,146]))),ed=a.lazy(()=>g(()=>import("./DynamicUpdateInquiry-FKnxJV9J.js"),__vite__mapDeps([130,1,2,3,119,104,17,120,5,112,113,114,21,111,110,121,99,122,60,108,20,123,125,77,116,117]))),td=a.lazy(()=>g(()=>import("./viewReport-ByJtKdbW.js"),__vite__mapDeps([147,1,2,3,27,20,17,35,148,149,150,18,151,21,14,15,16,19]))),rd=a.lazy(()=>g(()=>import("./HurlReport-DCS7GMsy.js"),__vite__mapDeps([152,1,2,3,20,17,14,15,16,18,19,27,21,116]))),ad=a.lazy(()=>g(()=>import("./index-DsFB5Kyp.js"),__vite__mapDeps([153,1,2,3,99,12,88,89,14,15,16,17,18,19,102,103,104,105,21,106,20,154,76,144,155,115,156,117]))),sd=a.lazy(()=>g(()=>import("./index-CLhITLRu.js"),__vite__mapDeps([157,1,2,3,20,14,15,16,17,18,19,42,22,158]))),od=a.lazy(()=>g(()=>import("./PartyDetail-Bi7cKJ3W.js"),__vite__mapDeps([159,1,2,3,20,12,17,158]))),nd=a.lazy(()=>g(()=>import("./index-DZU2RpFl.js"),__vite__mapDeps([160,1,2,3]))),id=a.lazy(()=>g(()=>import("./index-C3H7SumQ.js"),__vite__mapDeps([161,1,2,3,12,88,89,14,15,16,17,18,19,20,90,91,94]))),cd=a.lazy(()=>g(()=>import("./Role_Permission-CMc3kW_H.js"),__vite__mapDeps([162,1,2,3,12,14,15,16,17,18,19,20,94]))),ld=a.lazy(()=>g(()=>import("./RoleUpdate-C_Fu3QKb.js"),__vite__mapDeps([163,1,2,3,14,15,16,17,18,19,20,94]))),dd=a.lazy(()=>g(()=>import("./index-Bu_0jQDJ.js"),__vite__mapDeps([132,1,2,3,77,76,133,134,96,103,104,105,5,135,36,7,123,136,124,125,137,113,114,112,21,111,110,138]))),pd=a.lazy(()=>g(()=>import("./index-CXghY_Tv.js"),__vite__mapDeps([164,1,2,3,15,27,23,25,26,165,166,36,144,155,108]))),ud=a.lazy(()=>g(()=>import("./index-CM7rX8N8.js"),__vite__mapDeps([167,1,2,3,14,15,16,17,18,19,21,20,94]))),gd=a.lazy(()=>g(()=>import("./AddQuotation-C5aIZYdk.js"),__vite__mapDeps([168,1,2,3,12,135,105,7]))),md=a.lazy(()=>g(()=>import("./index--hmrRrZ0.js"),__vite__mapDeps([169,1,2,3,170,88,89,14,15,16,17,18,19,22,21,90,91,5,92,93,23,171]))),hd=a.lazy(()=>g(()=>import("./index-senUAj5N.js"),__vite__mapDeps([172,1,2,3,173,174]))),fd=a.lazy(()=>g(()=>import("./index-CHwrlkf1.js"),__vite__mapDeps([175,1,2,3,173,174,5,
1135,17,176]))),$r=a.lazy(()=>g(()=>import("./index-DJqXEpVq.js"),__vite__mapDeps([177,1,2,3,23]))),bd=a.lazy(()=>g(()=>import("./index-Dg9XQVSx.js").then(e=>e.i),__vite__mapDeps([139,1,2,3,12,123,76,5,134,96,103,104,105,17,113,111,110,140,136,23,94]))),yd=a.lazy(()=>g(()=>import("./index-R8MKPM8r.js"),__vite__mapDeps([178,1,2,3,20,27,17,109,179]))),xd=a.lazy(()=>g(()=>import("./index-DqI2ICBt.js"),__vite__mapDeps([180,1,2,3,20,14,15,16,17,18,19,181,90,182]))),Ed=a.lazy(()=>g(()=>import("./index-BLBwkc-h.js"),__vite__mapDeps([183,1,2,3,20,14,15,16,17,18,19,182,90]))),Sd=a.lazy(()=>g(()=>import("./index-vFbxnUGN.js"),__vite__mapDeps([184,1,2,3,12,20]))),_d=a.lazy(()=>g(()=>import("./index-CynMUk-I.js"),__vite__mapDeps([185,1,2,3,12,20]))),Td=a.lazy(()=>g(()=>import("./index-LLowq-KF.js"),__vite__mapDeps([186,1,2,3,14,15,16,17,18,19,21,20,120,123,100]))),Ad=a.lazy(()=>g(()=>import("./SalesOrder-BbMXZahH.js"),__vite__mapDeps([187,1,2,3,14,15,16,17,18,19,20,76,77,36,100,108,188,116]))),vd=a.lazy(()=>g(()=>import("./SapSalesOrder-BEXCEaCY.js"),__vite__mapDeps([189,1,2,3,14,15,16,17,18,19,20,123,120,108,101,190])));a.lazy(()=>g(()=>import("./TransportPlanningView-C7bmyACN.js"),__vite__mapDeps([191,1,2,3,20])));const zr=a.lazy(()=>g(()=>import("./TransportPlanningCreate-Bfd_xZPv.js"),__vite__mapDeps([192,1,2,3,119,104,17,120,5,121,99,123,100,136,20,116]))),Ld=a.lazy(()=>g(()=>import("./TransportPlanningUpdate-DXTFpx6N.js"),__vite__mapDeps([193,1,2,3,17,20,104,99,119,120,5,121]))),Cd=a.lazy(()=>g(()=>import("./CreateTransportRequest-VMmwzuSe.js"),__vite__mapDeps([194,1,2,3,195,121,99,122,60,17,108,104,20,120,124,125,77,5,116,117]))),Dd=a.lazy(()=>g(()=>import("./CreateTransportRequestAutofill-B3PNiO9v.js"),__vite__mapDeps([196,1,2,3,195,121,99,122,60,17,108,104,20,120,124,125,77,5,116,117]))),Id=a.lazy(()=>g(()=>import("./index-Zi8pO_yf.js"),__vite__mapDeps([197,1,2,3,14,15,16,17,18,19,20,21,22]))),jd=a.lazy(()=>g(()=>import("./ReturnProcess-BYHvOoVp.js"),__vite__mapDeps([198,1,2,3,20,17,21,123]))),wd=a.lazy(()=>g(()=>import("./index-CGfHg6_M.js"),__vite__mapDeps([199,1,2,3,14,15,16,17,18,19,20,108,21,22,200]))),Rd=a.lazy(()=>g(()=>import("./CreateStockTransferTR-DSI5awAu.js"),__vite__mapDeps([201,1,2,3,119,104,17,120,5,121,99,122,60,108,133,202,105,123,20,124,125,77,126,200,117]))),kd=a.lazy(()=>g(()=>import("./EditStockTransferTR-CZo9m7CQ.js"),__vite__mapDeps([203,1,2,3,119,104,17,120,5,121,99,122,60,108,133,202,105,123,20,124,125,77,126,200,117]))),Pd=a.lazy(()=>g(()=>import("./DispatchPlanList-BTjKWKrT.js"),__vite__mapDeps([204,1,2,3,14,15,16,17,18,19,20]))),Od=a.lazy(()=>g(()=>import("./DispatchPlanListCreate-DTMXddXm.js"),__vite__mapDeps([205,1,2,3,20,17]))),Bd=a.lazy(()=>g(()=>import("./index-Cjdc3twt.js"),__vite__mapDeps([206,1,2,3,12,17,77,14,15,16,18,19,96,207,98,99,100,21,101,42,88,89,102,103,104,105,106,107,20,22,90,108,109,110,111,112,113,114,115,116,117,141,146,123,208,124,125,144,76,209,5,60,143]))),Nd=a.lazy(()=>g(()=>
1import("./SunderGatePassSteps-BDIbeTeT.js"),__vite__mapDeps([210,1,2,3,208,146,105,123,124,125,77,17,144,76,209,5,104,15,60,21,20,143,211]))),Vr=a.lazy(()=>g(()=>import("./GatePassViewPage-DqvMUj5Z.js"),__vite__mapDeps([212,1,2,3,20,142,143,144,21,209,103,104,105,76,123,27,145,101,77,176]))),Fd=a.lazy(()=>g(()=>import("./GateEntry-CC35tGh8.js").then(e=>e.a),__vite__mapDeps([208,1,2,3,146,105,123,124,125,77,17,144,76,209,5,104,15,60,21,20,143]))),Md=a.lazy(()=>g(()=>import("./GatePassStepperNonSAP-DhqpiuEW.js"),__vite__mapDeps([213,1,2,3,20,208,146,105,123,124,125,77,17,144,76,209,5,104,15,60,21,143]))),Hr=a.lazy(()=>g(()=>import("./ePOD-CMTZGyoj.js"),__vite__mapDeps([214,1,2,3]))),Ud=a.lazy(()=>g(()=>import("./index-BvKGz2Mf.js"),__vite__mapDeps([215,1,2,3,27,20,88,89,14,15,16,17,18,19,216,7,104,126,5,217,90,91,218,219,22,220,154,76,221,21,115]))),Wr=a.lazy(()=>g(()=>import("./createContract-BMakzzzc.js"),__vite__mapDeps([216,1,2,3,7,104,17,20,126,5,217]))),Gd=a.lazy(()=>g(()=>import("./ContractViewPage-CDFY5xf0.js"),__vite__mapDeps([222,1,2,3,176,27,20,137,140,103,104,105,15,145]))),$d=a.lazy(()=>g(()=>import("./ContractVersionViewPage-DR-y4ytL.js"),__vite__mapDeps([223,1,2,3,20,137,176]))),zd=a.lazy(()=>g(()=>import("./index-BbeoMzei.js"),__vite__mapDeps([224,1,2,3,12,88,89,14,15,16,17,18,19,22,220,218,20,225]))),Vd=a.lazy(()=>g(()=>import("./index-RKYnNuoN.js"),__vite__mapDeps([226,1,2,3,170,88,89,14,15,16,17,18,19,22,21,90,91,5,92,93,23,171,211,114,113,111,60,128,127,12,124,125,77,227,20,151,228]))),Hd=a.lazy(()=>g(()=>import("./TransporterViewPage-B6IKPrKk.js"),__vite__mapDeps([229,1,2,3,20,137,21,145,92,93]))),Wd=a.lazy(()=>g(()=>import("./index-BiX3pnbf.js"),__vite__mapDeps([230,1,2,3,14,15,16,17,18,19,27,20,5,21,220,91,90,221,219,42]))),Jd=a.lazy(()=>g(()=>import("./EInvoiceDashboard-FQzW0F7B.js"),__vite__mapDeps([38,1,2,3,37,20,36]))),qd=a.lazy(()=>g(()=>import("./LdReminderLog-BlpyWSF7.js"),__vite__mapDeps([231,1,2,3,14,15,16,17,18,19,20]))),Qd=a.lazy(()=>g(()=>import("./LdReminderConfig-wDTzfrXo.js"),__vite__mapDeps([232,1,2,3,20]))),Yd=a.lazy(()=>g(()=>import("./index-BOIc31Uy.js"),__vite__mapDeps([233,1,2,3,20,17,114,113,110,234]))),Jr=a.lazy(()=>g(()=>import("./index-UkwegYbm.js"),__vite__mapDeps([235,1,2,3,76,20,36,236]))),qr=a.lazy(()=>g(()=>import("./index-Di0aaK3-.js"),__vite__mapDeps([237,1,2,3,140,20,36,238]))),Gt=a.lazy(()=>g(()=>import("./CreatePreshipment-Dlj518DE.js"),__vite__mapDeps([239,1,2,3,20,240,5,17]))),Kd=a.lazy(()=>g(()=>import("./PreshipmentList-DvBfRZqv.js"),__vite__mapDeps([241,1,2,3,14,15,16,17,18,19,22,42,242,243]))),Qr=a.lazy(()=>g(()=>import("./ViewPreshipment-BwqTOtO9.js"),__vite__mapDeps([244,1,2,3,20,145,242,42,166,108]))),Zd=a.lazy(()=>g(()=>import("./index-n9mD212H.js"),__vite__mapDeps([245,1,2,3,20,17,246,35,148,149,150,18,151]))),Xd=a.lazy(()=>g(()=>import("./index-DukCCwBc.js"),__vite__mapDeps([247,1,2,3,20,17,21,105,104,246,35,149,150,240,5,103]))),ep=a.lazy(()=>g(()=>import("./CreateExportBooking-DI8x19L7.js"),__vite__mapDeps([248,1,2,3,20,17]))),tp=a.lazy(()=>g(()=>import("./ExportSalesOrders-CiQPrKUS.js"),__vite__mapDeps([249,1,2,3,14,15,16,17,18,19,20,25,26,165,22,250,108,21,145,42,242,243,115,123,190]))),rp=a.lazy(()=>g(()=>import("./index-DUSDE_up.js"),__vite__mapDeps([251,1,2,3,14,15,16,17,18,19,20,22,108,145,27,21,42,25,26,165]))),ap=a.lazy(()=>g(()=>import("./index-Dz1s9d_U.js"),__vite__mapDeps([252,1,2,3,17,14,15,16,18,19,20,253,25,26,165,254,221,219,22,250,21,255,115]))),sp=a.lazy(()=>g(()=>import("./CreateFreightCostSheet-BUEZG_c-.js"),__vite__mapDeps([256,1,2,3,20,17,253,254]))),op=a.lazy(()=>g(()=>import("./FreightCostSheetDetail-Sl7lu2LR.js"),__vite__mapDeps([257,1,2,3,20,145,253,254,42,15,21,27,255,17,123,103,104,105]))),np=a.lazy(()=>g(()=>import("./FreightCostSheetSettings-CQyGaWGd.js"),__vite__mapDeps([258,1,2,3,20,253]))),ip=a.lazy(()=>g(()=>import("./FreightCostSheetVersionView-KwzsK_0P.js"),__vite__mapDeps([259,1,2,3,20,253,254,176])));a.lazy(()=>g(()=>import("./index-CwXE339E.js"),__vite__mapDeps([260,1,2,3,261,14,15,16,17,18,19,253,254,255])));a.lazy(()=>g(()=>import("./FreightCostSheetApprovalsPage-DJnalaZf.js"),__vite__mapDeps([262,1,2,3,14,15,16,17,18,19,253,254,221,22,261,21,250])));const cp=a.lazy(()=>g(()=>import("./FreightRateApprovalsPage-BYgPLHqM.js"),__vite__mapDeps([263,1,2,3,20,262,14,15,16,17,18,19,253,254,221,22,261,21,250,260,255]))),lp=a.lazy(()=>g(()=>import("./index-CqSpg3iC.js"),__vite__mapDeps([264,1,2,3,20,14,15,16,17,18,19,90,181,253,108,182]))),dp=a.lazy(()=>g(()=>import("./index-DSg4bUd9.js"),__vite__mapDeps([265,1,2,3,14,15,16,17,18,19,20,21,108,154,76,144,266,60,115]))),pp=a.lazy(()=>g(()=>import("./index-ryIuwgZZ.js"),__vite__mapDeps([267,1,2,3,20,14,15,16,17,18,19,22,266,21])
1)),up=a.lazy(()=>g(()=>import("./index-CfmmfhHm.js"),__vite__mapDeps([268,1,2,3,20,14,15,16,17,18,19,90,91,88,89,181,182]))),gp=a.lazy(()=>g(()=>import("./index-cXxi8v43.js"),__vite__mapDeps([269,1,2,3,14,15,16,17,18,19,20,91,90,21,113,127,60,5]))),mp=a.lazy(()=>g(()=>import("./index-BE7sIyG-.js"),__vite__mapDeps([270,1,2,3,14,15,16,17,18,19,20,22,21,271,272]))),Yr=a.lazy(()=>g(()=>import("./BookAndParkInvoice-BJzmkQq6.js"),__vite__mapDeps([273,1,2,3,20,17,5,271]))),hp=a.lazy(()=>g(()=>import("./PaymentVoucher-BVmFj7db.js"),__vite__mapDeps([274,1,2,3,20,17,5,271]))),fp=a.lazy(()=>g(()=>import("./index-utEtTR2a.js"),__vite__mapDeps([275,1,2,3,20,14,15,16,17,18,19,22,271,272]))),bp=a.lazy(()=>g(()=>import("./index-Dg0fnGCF.js"),__vite__mapDeps([276,1,2,3,20,14,15,16,17,18,19,90,91,88,89,181,182]))),yp=a.lazy(()=>g(()=>import("./index-D57N4QaQ.js"),__vite__mapDeps([277,1,2,3,17,90,14,15,16,18,19,20,278]))),xp=a.lazy(()=>g(()=>import("./UnmappedPorts-DlpH5gXe.js"),__vite__mapDeps([279,1,2,3,14,15,16,17,18,19,20,278]))),Ep=a.lazy(()=>g(()=>import("./index-BY-9HLgG.js"),__vite__mapDeps([280,1,2,3,20,14,15,16,17,18,19,90,91]))),Sp=a.lazy(()=>g(()=>import("./index-C7qCVwot.js"),__vite__mapDeps([227,1,2,3,20,14,15,16,17,18,19,151])));a.lazy(()=>g(()=>
1import("./Scanner-DArKlwoE.js"),__vite__mapDeps([207,1,2,3,98,99,100,21,77,101,42,88,89,14,15,16,17,18,19,102,103,104,105,106,107,20,22,90,108,109,110,111,112,113,114,115,116,117])));const _p=a.lazy(()=>g(()=>import("./index-BsQc3YHY.js"),__vite__mapDeps([281,1,2,3,20,14,15,16,17,18,19]))),Kr=a.lazy(()=>g(()=>import("./index-4xEiZi_b.js"),__vite__mapDeps([282,1,2,3]))),Tp=a.lazy(()=>g(()=>import("./index-qWiW71yH.js"),__vite__mapDeps([283,1,2,3,20,27,14,15,16,17,18,19,35,22]))),Ap=a.lazy(()=>g(()=>import("./StatusIndicators-kzTEESuX.js"),__vite__mapDeps([284,1,2,3,20,21]))),vp=a.lazy(()=>g(()=>import("./index-BQW7zaoB.js"),__vite__mapDeps([285,1,2,3,286,287]))),Lp=a.lazy(()=>g(()=>import("./DriverActiveTrip-bUIJWNjs.js"),__vite__mapDeps([288,1,2,3,286,287,289]))),Cp=a.lazy(()=>g(()=>import("./DriverHistory-DpjlNskd.js"),__vite__mapDeps([290,1,2,3,286,287,289]))),Ma=()=>{if(cr()){const r=Oa();return r?.roleName==="Transporter"?t.jsx(Le,{to:"/transporter-dashboard",replace:!0}):r?.is_superadmin??!1?t.jsx(Le,{to:"/superadmin/dashboard",replace:!0}):t.jsx(Le,{to:"/dashboard",replace:!0})}return t.jsx(Fa,{})},Dp=()=>{if(cr()){const r=Oa();return r?.roleName==="Transporter"?t.jsx(Le,{to:"/transporter-dashboard",replace:!0}):r?.is_superadmin?t.jsx(Le,{to:"/superadmin/dashboard",replace:!0}):t.jsx(Le,{to:"/dashboard",replace:!0})}return t.jsx(cl,{})},Ip=[{path:"/dashboard",component:t.jsx(yl,{children:t.jsx(bl,{})})},{path:"/auth/microsoft/callback",component:t.jsx(Ur,{})},{path:"/auth/outlook/callback",component:t.jsx(Ur,{})},{path:"/ai/knowledge-learning",component:t.jsx(pl,{})},{path:"/ai/negotiation-agent",component:t.jsx(ul,{})},{path:"/ai/negotiation-agent/:id",component:t.jsx(gl,{})},{path:"/support",component:t.jsx(hl,{})},{path:"/gate-pass",component:t.jsx(Bd,{})},{path:"/gate-pass/view",component:t.jsx(Vr,{})},{path:"/gate-pass/view/:id",component:t.jsx(Vr,{})},{path:"/tracking-dashboard",component:t.jsx(Yd,{})},{path:"/gate-pass/workflow/:inquiryId/:driverId?",component:t.jsx(Fd,{})},{path:"/gate-pass/workflow-manual/:inquiryId/:driverId?",component:t.jsx(Md,{})},{path:"/gate-pass/dispatch/:inquiryId/:driverId?",component:t.jsx(Nd,{})},{path:"/profile",component:t.jsx(il,{})},{path:"/",exact:!0,component:t.jsx(Ma,{})},{path:"/users",component:t.jsx(Ql,{})},{path:"/suppliers",component:t.jsx(Yl,{})},{path:"/parties",component:t.jsx(sd,{})},{path:"/parties/:id",component:t.jsx(od,{})},{path:"/transporter-invoice",component:t.jsx(ad,{})},{path:"/transport-planning",component:t.jsx(Td,{})},{path:"/transport-requests/update/:id",component:t.jsx(Ld,{})},{path:"/sales-order/add/:id",component:t.jsx(zr,{})},{path:"/sales-order/add",component:t.jsx(zr,{})},{path:"/sales-order",component:t.jsx(Ad,{})},{path:"/sales-orders",component:t.jsx(vd,{})},{path:"/stock-transfer",component:t.jsx(wd,{})},{path:"/stock-transfer/create-tr",component:t.jsx(Rd,{})},{path:"/stock-transfer/edit-tr/:inquiryId",component:t.jsx(kd,{})},{path:"/sales-order-returns",component:t.jsx(Id,{})},{path:"/sales-order-returns/process/:id",component:t.jsx(jd,{})},{path:"/preshipment/list",component:t.jsx(Kd,{})},{path:"/preshipment/create",component:t.jsx(Gt,{})},{path:"/preshipment/edit/:id",component:t.jsx(Gt,{})},{path:"/preshipment/edit",component:t.jsx(Gt,{})},{path:"/preshipment/view/:id",component:t.jsx(Qr,{})},{path:"/preshipment/view",component:t.jsx(Qr,{})},{path:"/cost-sheet-report",component:t.jsx(Zd,{})},{path:"/provisional-posting",component:t.jsx(Xd,{})},{path:"/export-booking/create",component:t.jsx(ep,{})},{path:"/export-orders",component:t.jsx(tp,{})},{path:"/generate-invoice",component:t.jsx(rp,{})},{path:"/freight-cost-sheet",component:t.jsx(ap,{})},{path:"/freight-cost-sheet/create",component:t.jsx(sp,{})},{path:"/freight-cost-sheet/settings",component:t.jsx(np,{})},{path:"/freight-cost-sheet/version/:id",component:t.jsx(ip,{})},{path:"/freight-rate-approvals",component:t.jsx(cp,{})},{path:"/freight-cost-sheet/:id",component:t.jsx(op,{})},{path:"/domestic-invoice-booking",component:t.jsx(dp,{})},{path:"/domestic-invoice-approvals",component:t.jsx(pp,{})},{path:"/domestic-invoice-booking-config",component:t.jsx(up,{})},{path:"/facility-master",component:t.jsx(gp,{})},{path:"/shipping-line-invoice-booking",component:t.jsx(mp,{})},{path:"/shipping-line-invoice-booking/new",component:t.jsx(Yr,{})},{path:"/shipping-line-invoice-booking/:id/park",component:t.jsx(Yr,{})},{path:"/shipping-line-invoice-booking/:id/payment-voucher",component:t.jsx(hp,{})},{path:"/shipping-line-invoice-approvals",component:t.jsx(fp,{})},{path:"/shipping-line-invoice-booking-config",component:t.jsx(bp,{})}
1,{path:"/freight-port-alias/unmapped",component:t.jsx(xp,{})},{path:"/freight-port-alias",component:t.jsx(yp,{})},{path:"/dispatch-plan",component:t.jsx(Pd,{})},{path:"/dispatch-plan/create",component:t.jsx(Od,{})},{path:"/transport-request/create-tr",component:t.jsx(Dd,{})},{path:"/transport-request/create",component:t.jsx(Cd,{})},{path:"/transport-request/add",component:t.jsx(Zl,{})},{path:"/transport-request",component:t.jsx(Kl,{})},{path:"/view-report",component:t.jsx(td,{})},{path:"/hurl-report",component:t.jsx(rd,{})},{path:"/transport-request/update/:inquiryId",component:t.jsx(ed,{})},{path:"/transport-request/view/:inquiryId",component:t.jsx(Xl,{})},{path:"/trip-exception",component:t.jsx(xl,{})},{path:"/settings",component:t.jsx(yd,{})},{path:"/config",component:t.jsx(Sd,{})},{path:"/contract-config",component:t.jsx(xd,{})},{path:"/freight-cost-sheet-config",component:t.jsx(lp,{})},{path:"/invoice-config",component:t.jsx(Ed,{})},{path:"/inquiry-field-setting",component:t.jsx(_d,{})},{path:"/custom-fx-rates",component:t.jsx(Ep,{})},{path:"/exchange-rates",component:t.jsx(Sp,{})},{path:"/user-roles",component:t.jsx(id,{})},{path:"/user-roles/assign",component:t.jsx(cd,{})},{path:"/user-roles/update/:roleId",component:t.jsx(ld,{})},{path:"/quotation/:inquiry_id",component:t.jsx(dd,{})},{path:"/add-quotation/:inquiryId",component:t.jsx(gd,{})},{path:"/transporter-dashboard",component:t.jsx(pd,{})},{path:"/transporter-inquiry",component:t.jsx(ud,{})},{path:"/transporter-list/:inquiry_id",component:t.jsx(bd,{})},{path:"/contract/add",component:t.jsx(Wr,{})},{path:"/contract/view/:id",component:t.jsx(Gd,{})},{path:"/contract/version/:id",component:t.jsx($d,{})},{path:"/contract-master/:id",component:t.jsx(Wr,{})},{path:"/contract/approvals",component:t.jsx(zd,{})},{path:"/master-records",component:t.jsx(Vd,{})},{path:"/master-records/transporter/:id",component:t.jsx(Hd,{})},{path:"/contract",component:t.jsx(Ud,{})},{path:"/einvoice",component:t.jsx(Wd,{})},{path:"/einvoice-dashboard",component:t.jsx(Jd,{})},{path:"/ld-reminder-log",component:t.jsx(qd,{})},{path:"/ld-reminder-config",component:t.jsx(Qd,{})},{path:"/transporter-360",component:t.jsx(Jr,{})},{path:"/transporter-360/:id",component:t.jsx(Jr,{})},{path:"/contract-360",component:t.jsx(qr,{})},{path:"/contract-360/:id",component:t.jsx(qr,{})},{path:"/hurl-log",component:t.jsx(_p,{})},{path:"/logs",component:t.jsx(Tp,{})},{path:"/subscription",component:t.jsx(Bl,{})},{path:"/design-system/status-indicators",component:t.jsx(Ap,{})}],jp=[{path:"/driver",component:t.jsx(vp,{})},{path:"/driver/history",component:t.jsx(Cp,{})},{path:"/driver/trip/:tripId",component:t.jsx(Lp,{})}],wp=[{path:"/",exact:!0,component:t.jsx(Ma,{})},{path:"/logout",component:t.jsx(ll,{})},{path:"/landing-page",component:t.jsx(Fa,{})},{path:"/privacy",component:t.jsx($l,{})},{path:"/terms",component:t.jsx(Gr,{})},{path:"/terms-and-conditions",component:t.jsx(Gr,{})},{path:"/login",exact:!0,component:t.jsx(Dp,{})},{path:"/forgot-password",component:t.jsx(dl,{})},{path:"/transporter-registration",component:t.jsx(fd,{})},{path:"/transporter-register/:token",component:t.jsx(hd,{})},{path:"/transporter-consent",component:t.jsx($r,{})},{path:"/transporter-consent/:token",component:t.jsx($r,{})},{path:"/fill-quotation/:token",component:t.jsx(md,{})},{path:"/epod/:token",component:t.jsx(Hr,{})},{path:"/epod-test",component:t.jsx(Hr,{})},{path:"/ticket-action/:token",component:t.jsx(fl,{})},{path:"/rate/:token",component:t.jsx(Kr,{})},{path:"/rate-test",component:t.jsx(Kr,{})},{path:"/party-location/:token",component:t.jsx(nd,{})},{path:"/pages-maintenance",component:t.jsx(Nl,{})},{path:"/coming-soon",component:t.jsx(Fl,{})},{path:"/pages-404",component:t.jsx(Ml,{})},{path:"/thank-you",component:t.jsx(Ul,{})},{path:"/submitted",component:t.jsx(ql,{})},{path:"/pages-500",component:t.jsx(Gl,{})},{path:"/disclaimer",component:t.jsx(zl,{})},{path:"/share-location/:token",component:t.jsx(Vl,{})},{path:"/privacypolicy",component:t.jsx(Hl,{})},{path:"/privacy-policy",component:t.jsx(Wl,{})},{path:"/driver-app-detector",component:t.jsx(Jl,{})},{path:"/aws-marketplace/register",component:t.jsx(Ol,{})}
1],Rp=[{path:"/superadmin/dashboard",component:t.jsx(El,{})},{path:"/superadmin/tenants",component:t.jsx(Sl,{})},{path:"/superadmin/tenants/form",component:t.jsx(Cl,{})},{path:"/superadmin/tenants/:id",component:t.jsx(Dl,{})},{path:"/superadmin/master-data",component:t.jsx(_l,{})},{path:"/superadmin/inquiry-settings",component:t.jsx(Tl,{})},{path:"/superadmin/dashboard-permissions",component:t.jsx(Al,{})},{path:"/superadmin/aiu-stats",component:t.jsx(vl,{})},{path:"/superadmin/ai-control-plane",component:t.jsx(Ll,{})},{path:"/superadmin/testimonials",component:t.jsx(Il,{})},{path:"/superadmin/service-desk",component:t.jsx(ml,{})},{path:"/superadmin/system-config",component:t.jsx(jl,{})},{path:"/superadmin/marketplace-registrations",component:t.jsx(wl,{})},{path:"/superadmin/connected-apps",component:t.jsx(Rl,{})},{path:"/superadmin/connected-apps/:tenantId/:appId",component:t.jsx(kl,{})},{path:"/superadmin/whatsapp-provider",component:t.jsx(Pl,{})}],kp=e=>{const r=je(),[s,o]=a.useState(!0),[n,i]=a.useState(!1);return a.useEffect(()=>{const c=localStorage.getItem("authUser");if(c)try{JSON.parse(c),i(!0)}catch{localStorage.clear(),i(!1)}else i(!1);o(!1)},[]),s?t.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},children:t.jsx("div",{style:{width:"50px",height:"50px",border:"3px solid rgba(1, 169, 155, 0.1)",borderTop:"3px solid #01A99B",borderRadius:"50%",animation:"spin 1s linear infinite"},children:t.jsx("style",{children:`
2              @keyframes spin {
3                0% { transform: rotate(0deg); }
4                100% { transform: rotate(360deg); }
5              }
6            `})})}):n?t.jsx(X.Fragment,{children:e.children}):t.jsx(Le,{to:"/login",state:{from:r},replace:!0})},Pp=({children:e})=>{const r=je(),[s,o]=a.useState("checking");return a.useEffect(()=>{const n=localStorage.getItem("authUser");if(!n){o("unauthenticated");return}try{JSON.parse(n)}catch{localStorage.clear(),o("unauthenticated");return}try{const c=!!(JSON.parse(localStorage.getItem("user")||"{}")?.is_superadmin??!1);o(c?"superadmin":"regular")}catch{o("regular")}},[]),s==="checking"?t.jsxs("div",{style:{position:"fixed",inset:0,background:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},children:[t.jsx("div",{style:{width:48,height:48,border:"3px solid rgba(1,169,155,0.15)",borderTop:"3px solid #01A99B",borderRadius:"50%",animation:"sa-spin 0.9s linear infinite"}}),t.jsx("style",{children:"@keyframes sa-spin { to { transform: rotate(360deg); } }"})]}):s==="unauthenticated"?t.jsx(Le,{to:"/login",state:{from:r},replace:!0}):s==="regular"?t.jsx(Le,{to:"/dashboard",replace:!0}):t.jsx(X.Fragment,{children:e})};function mt(e){function r(s){let o=je(),n=pt(),i=yo();return t.jsx(e,{...s,router:{location:o,navigate:n,params:i}})}return r}const dr="CHANGE_LAYOUT",pr="CHANGE_LAYOUT_WIDTH",ur="CHANGE_SIDEBAR_THEME",gr="CHANGE_SIDEBAR_THEME_IMAGE",mr="CHANGE_SIDEBAR_TYPE",hr="CHANGE_TOPBAR_THEME",Op="SHOW_SIDEBAR",Ua="TOGGLE_LEFTMENU",fr="SHOW_RIGHT_SIDEBAR",Ga="CHANGE_PRELOADER",br="CHANGE_LAYOUT_MODE",yr=e=>({type:dr,payload:e}),Bp=e=>({type:Ga,payload:e}),kt=e=>({type:br,payload:e}),xr=e=>({type:pr,payload:e}),$a=e=>({type:ur,payload:e}),za=e=>({type:gr,payload:e}),ve=(e,r)=>({type:mr,payload:{sidebarType:e,isMobile:r}}),Er=e=>({type:hr,payload:e}),ht=e=>({type:fr,payload:e}),Va=e=>({type:Ua,payload:e}),Ha="register_user",Wa="register_user_successfull",Ja="register_user_failed",Np=e=>({type:Wa,payload:e}),Fp=e=>({type:Ja,payload:e}),Sr="LOGIN_USER",qa="LOGIN_SUCCESS",Qa="LOGIN_API_ERRO",_r="LOGOUT_USER",Mp="LOGOUT_USER_SUCCESS",Ya="LOGIN_API_ERROR",Up="SOCIAL_LOGIN",a5=(e,r)=>({type:Sr,payload:{user:e,history:r}}),Ka=e=>({type:qa,payload:e}),Gp=()=>({type:Qa,payload:{}}),s5=e=>({type:_r,payload:{history:e}}),$p=e=>({type:Ya,payload:e}),Za="FORGET_PASSWORD",Xa="FORGET_PASSWORD_SUCCESS",es="FORGET_PASSWORD_ERROR",zp=e=>({type:Xa,payload:e}),Vp=e=>({type:es,payload:e}),ts="EDIT_PROFILE",rs="PROFILE_SUCCESS",as="PROFILE_ERROR",Hp="RESET_PROFILE_FLAG",Wp=e=>({type:rs,payload:e}),Jp=e=>({type:as,payload:e}),Tr="GET_NOTIFICATION",ss="GET_INOTIFICATION_SUCCESS",os="GET_NOTIFICATION_FAIL",ns="SET_NOTIFICATION_ID",o5=()=>({type:Tr}),qp=e=>({type:ss,payload:e}),Qp=e=>({type:os,payload:e}),Yp=e=>({type:ns,payload:e}),Kp="UPDATE_FORM_DATA",Zp="ADD_NEW_ROUTE",Xp="REMOVE_ROUTE",eu="SET_STATES_DATA",tu="HANDLE_ROUTE_CHANGE",ru="HANDLE_ADD_MULTIPLE_DESTINATION",au="HANDLE_REMOVE_MULTIPLE_DESTINATION",su="SET_VALIDATION_ERRORS",ou="HANDLE_VALIDATION_ERRORS",nu="REDUX_STATE_CLEAR",n5="SUBMIT_REGISTRATION",iu="UPDATE_FORM_DATA",cu="SET_VALIDATION_ERRORS",lu="HANDLE_VALIDATION_ERRORS",du="ADD_NEW_ROUTE",pu="REMOVE_ROUTE",uu="SET_STATES_DATA",gu="HANDLE_ROUTE_CHANGE",mu="HANDLE_ADD_MULTIPLE_DESTINATION",hu="HANDLE_REMOVE_MULTIPLE_DESTINATION",fu="REDUX_STATE_CLEAR",bu="GET_PROJECTS",is="GET_PROJECTS_SUCCESS",cs="GET_PROJECTS_FAIL",yu="GET_PROJECT_DETAIL",ls="GET_PROJECT_DETAIL_SUCCESS",ds="GET_PROJECT_DETAIL_FAIL",xu="UPDATE_PROJECT",ps="UPDATE_PROJECT_SUCCESS",us="UPDATE_PROJECT_FAIL",Eu="DELETE_PROJECT",gs="DELETE_PROJECT_SUCCESS",ms="DELETE_PROJECT_FAIL",Su=e=>({type:is,payload:e}),_u=e=>({type:ps,payload:e}),Tu=e=>({type:us,payload:e}),Au=e=>({type:gs,payload:e}),vu=e=>({type:ms,payload:e}),Lu=e=>({type:cs,payload:e}),Cu=e=>({type:ls,payload:e}),Du=e=>({type:ds,payload:e}),hs="API_SUCCESS",fs="API_FAIL",lt="GET_DASHBOARD_EMAILCHART",Iu="SET_INQUIRY_STATUS",ju=(e,r)=>({type:hs,payload:{actionType:e,data:r}}),wu=(e,r)=>({type:fs,payload:{actionType:e,error:r}}),bs="API_SUCCESS",ys="API_FAIL",dt="GET_WALLET_DATA",Ru=(e,r)=>({type:bs,payload:{actionType:e,data:r}}),ku=(e,r)=>({type:ys,payload:{actionType:e,error:r}}),xs="dashboardCache/FETCH_DASHBOARD_DROPDOWNS",Pu="dashboardCache/FETCH_DASHBOARD_COUNTS",Es="dashboardCache/SET_DASHBOARD_DROPDOWNS",Ss="dashboardCache/SET_DASHBOARD_COUNTS",_s="dashboardCache/SET_DROPDOWNS_STATUS",Ts="dashboardCache/SET_COUNTS_STATUS",As="dashboardCache/CLEAR_DASHBOARD_CACHE",i5=(e=!1)=>({type:xs,payload:{force:e}}),Ou=e=>({type:Es,payload:e}),Zr=e=>({type:_s,payload:e}),Bu=e=>({type:Ss,payload:e}),$t=e=>({type:Ts,payload:e}),Nu=()=>({type:As}),T={primary:{50:"#EFFEFB",100:"#C8FFF3",200:"#91FEEA",400:"#1EE3CB",500:"#05C7B2",600:"#01A99B",700:"#067F77",800:"#0A6560",900:"#0E534F",950:"#003332"},secondary:{50:"#F3F6FC",100:"#E6EDF8",600:"#2B63A8"},slate:{50:"#F9FAFC",100:"#F1F5F9",200:"#E2E8F1",300:"#CAD5E2",400:"#90A2B9",500:"#63758E",700:"#324158",800:"#1C293D",900:"#0E172B"},light:{100:"#EFEFF1",300:"#C2C5CC",700:"#6B7280",800:"#515761",900:"#383C43"},gray:{100:"#EDEDED",600:"#888888"},warning:{50:"#FDFBE9",100:"#FDF5C4",500:"#F1AD0E",600:"#C57D09",700:"#9D590B"},danger:{100:"#FEE2E2",400:"#FA6F6F",500:"#F13232",600:"#DF2323",700:"#BC1919",800:"#9B1919",900:"#811B1B"},success:{100:"#D0FBE0",700:"#007C4B",800:"#03623C"},information:{50:"#EFF7FF",100:"#DAEBFF",600:"#1F69F1"},background:{100:"#EEEEE7",800:"#615A4B"}},xe="#FFFFFF",Fu={bodyBg:"#ffffff",cardBg:"#ffffff",inputDisabledBg:"#EFEFF1",sidebarBg:"#f5f5f1",headerBg:"#f5f5f1",footerBg:"#ffffff",cardbg2:"#ffffff",focu
6sBg:"#f8f9fa",hoverBg:"#f9f9f9",cardHeaderBg:"#FAFAFB",cardBgTwo:"#f5f5f1",cardBgThree:"#FAFAFB",tabButton:"#effefb",counterBg:"#91FEEA",counterInactiveBg:"#E4E5E8",versionCardBg:"#EFFEFB",versionCardBorder:"#91FEEA",textPrimary:"#495057",textSecondary:"#74788d",textMuted:"#74788d",headingColor:"#495057",inputDisabledText:"#c2c5cc",borderColor:"#e5e7eb",primary:"#01A99B",primaryHover:"#018C81",primaryDeep:"#067F77",secondary:"#3979BE",success:"#34c38f",info:"#50a5f1",warning:"#f1b44c",danger:"#f46a6a",sidebarMenuItemColor:"#545a6d",sidebarMenuItemIconColor:"#7f8387",sidebarMenuItemHoverColor:"#383c40",sidebarMenuItemActiveColor:"#ffffff",sidebarMenuItemActiveBg:"#067F77",headerItemColor:"#555b6d",itemHoverBg:"#eeeee7",selectOptionHoverBg:"#F5F5F1",selectMultiValueBg:"#D8FFF6",selectMultiValueColor:"#333",subitemHoverBg:"#c8fff3",statCardHoverBg:"#f8faff",statLabelColor:"#555b6d",statValueColor:"#111827",ringBg:"rgba(0, 0, 0, 0.08)",loadingOverlayBg:"rgba(255, 255, 255, 0.75)",toggleBtnText:"#6b7280",gradientAccent:"#AEEAE5",gradientSecondary:"#1B3161",dividerColor:"#E4E5E8",positiveTrend:"#019A5A",negativeTrend:"#DF2323",chartPrimary:"#1EE3CB",chartSecondary:"#1B3161",chartTertiary:"#F39C12",chartGridBorder:"#f1f1f1",chartLabelColor:"#666",chartAxisBorder:"#999",chartTooltipText:"#333",chartTooltipBorder:"#eee",chartTooltipBg:"#fff",truckBulker:"#47A8E5",truckContainer:"#F9A11B",truckContainer20ft:"#3352A3",truckContainer40ft:"#75CCB9",truckTrilor:"#9D597F",truckGeneral:"#71A1E5",truckFreightKm:"#D9450B",truckFreightTon:"#000000",tableRowHoverBg:"#f8f9fa",stepperActiveBg:"#EFF7FF",stepperValidBg:"#ebfef3",stepperActiveColor:"#1F69F1",stepperInactiveText:"#6B7280",stepperValidText:"#333",stepperBorderColor:"#dee2e6",stepperWhiteText:"#FFFFFF",stepperHoverBg:"#FAFAFB",chatPrimary:"#EFEFF1",aiCardBorder:"#E0E0E0",utilizationHigh:"#DC2626",utilizationMedium:"#F59E0B",utilizationLow:"#019A5A",utilizationHighBg:"#FEE2E2",utilizationMediumBg:"#FDF5C4",utilizationLowBg:"#D0FBE0",utilizationHighText:"#DF2323",utilizationMediumText:"#C57D09",utilizationLowText:"#019A5A",aiProgressTrack:"#E0E0E0",btnInverseText:"#ffffff",btnPrimaryGradient:"linear-gradient(to right, #018A7E, #01C4B4)",btnPrimaryHoverGradient:"linear-gradient(to top, rgba(0,0,0,0.12), transparent)",btnDangerGradient:"linear-gradient(to right, #e03535, #ff8080)",btnDangerHoverGradient:"linear-gradient(to top, rgba(0,0,0,0.12), transparent)",btnSecondaryGradient:"linear-gradient(to right, #2a5fa0, #4a90d4)",btnSecondaryHoverGradient:"linear-gradient(to top, rgba(0,0,0,0.12), transparent)",btnResetHoverGradient:"linear-gradient(to top, #fff5f5, #ffe5e5)",btnCancelHoverGradient:"linear-gradient(to top, #f9fafb, #f3f4f6)",btnBlackHoverGradient:"linear-gradient(to top, #1a202c, #2d3748)",softBlueBg:"#EEF6FF",toneNeutralBg:"#FAFAFB",toneNeutralBorder:"#EFEFF1",toneGrayBg:"#F7F7F7",toneGrayStrong:"#EDEDED",toneGrayText:"#888888",tonePrimaryBg:"#EFFEFB",tonePrimaryBorder:"#91FEEA",toneSuccessBg:"#EBFEF3",toneSuccessBorder:"#ABF6CB",toneSuccessText:"#007C4B",toneSuccessStrong:"#D0FBE0",toneWarningBg:"#FDFBE9",toneWarningBorder:"#FBE88D",toneWarningText:"#C57D09",toneWarningStrong:"#9D590B",toneDangerBg:"#FEF2F2",toneDangerBorder:"#FECACA",toneDangerText:"#B91C1C",toneVioletBg:"#F4F4FE",toneVioletBorder:"#D9DAFB",toneVioletSolid:"#7266EC",toneInfoBg:"#EFF7FF",toneInfoBorder:"#C7DDFC",toneInfoText:"#1F69F1",textDisabled:"#C2C5CC",successTagBg:T.success[100],successTagText:T.success[700],successTagTextStrong:T.success[800],warningTagBg:T.warning[100],warningTagText:T.warning[600],dangerTagBg:T.danger[100],dangerTagText:T.danger[600],infoTagBg:T.information[100],infoTagSoftBg:T.information[50],infoTagText:T.information[600],secondaryTagBg:T.secondary[100],secondaryTagText:T.secondary[600],violetTagBg:"#EAEAFD",violetTagSoftBg:"#F4F4FE",violetTagText:"#5E46E1",primaryTagBg:T.primary[100],primaryTagSoftBg:T.primary[50],primaryTagText:T.primary[800],lightTagBg:T.light[100],lightTagText:"#333333",mutedTagText:T.light[700],grayTagBg:T.gray[100],grayTagText:T.gray[600],neutralTagBg:T.background[100],neutralTagText:T.background[800],disabledTagBg:T.light[100],disabledTagText:T.light[300],modeRoadBg:T.primary[50],modeRoadText:T.primary[700],modeRailBg:"#F4F4FE",modeRailText:"#5E46E1",modeSeaBg:T.secondary[50],modeSeaText:T.secondary[600],modeAirBg:T.warning[50],modeAirText:T.warning[700],orderSingleBorder:T.primary[400],orderSingleBg:"linear-gradient(to bottom, #F9FFFE, #D6FFF7)",orderSingleInk:T.primary[700],orderMultipleBorder:"#7266EC",orderMultipleBg:"linear-gradient(to bottom, #FFFFFF, #E7E7FF)",orderMultipleInk:"#5E46E1",orderMultimodalBorder:T.warning[500],orderMultimodalBg:"linear-gradient(to bottom, #FFFEF3, #FFFACD)",orderMultimodalInk:T.warning[600],sectionTealFadeBg:`linear-gradient(to bottom, ${T.primary[100]}, #feffff)`,sectionTealFadeBorder:T.primary[200],sectionTealFadeInk:T.primary[800],lightboxBg:"rgba(17, 17, 19, 0.94)",lightboxChromeBg:"rgba(255, 255, 255, 0.12)",lightboxChromeBgHover:"rgba(255, 255, 255, 0.22)",lightboxInk:xe,avatarToneText:xe,avatarTone1:T.primary[700],avatarTone2:T.light[900],avatarTone3:T.secondary[600],avatarTone4:T.slate[400],btnFilledText:xe,btnPrimaryBg:T.primary[700],bt
6nPrimaryBgHover:T.primary[600],btnPrimaryBgActive:T.primary[800],btnDestructiveBg:T.danger[500],btnDestructiveBgHover:T.danger[800],btnDestructiveBgActive:T.danger[900],btnOutlineBg:xe,btnOutlineBgHover:T.slate[50],btnOutlineBgActive:T.slate[100],btnOutlineBorder:T.slate[300],btnOutlineBorderHover:T.slate[400],btnOutlineBorderActive:T.slate[500],btnOutlineText:T.slate[800],btnGhostBgHover:T.slate[100],btnGhostBgActive:T.slate[200],btnGhostText:T.slate[800],btnDisabledBg:T.slate[200],btnDisabledText:T.slate[400],btnDisabledBorder:T.slate[200],btnDisabledTextSubtle:T.slate[300],fieldBg:xe,fieldBorder:T.slate[200],fieldText:T.slate[900],fieldPlaceholder:T.slate[400],fieldLabel:"#74788d",fieldLabelDisabled:T.slate[400],fieldHelperText:T.slate[400],fieldBorderFocus:T.primary[500],fieldBorderError:T.danger[500],fieldErrorText:T.danger[500],fieldReadonlyBg:T.slate[50],fieldReadonlyText:T.slate[400],fieldDisabledBg:T.slate[50],fieldDisabledBorder:T.slate[200],fieldDisabledText:T.slate[400],fieldDisabledPlaceholder:T.slate[400],selectBorderOpen:T.primary[600],selectMenuBg:xe,selectMenuBorder:T.slate[200],selectOptionText:T.slate[900],selectOptionSelectedBg:T.primary[50],controlBorder:T.slate[300],controlCheckedBg:T.primary[500],controlCheckMark:xe,controlDisabledBg:T.slate[100],controlDisabledBorder:T.slate[200],controlLabel:T.slate[700],controlLabelDisabled:T.slate[400],toggleTrackOff:T.slate[200],toggleTrackOn:T.primary[500],toggleTrackDisabled:T.slate[100],toggleKnob:xe,toggleKnobDisabled:T.slate[300]},Mu={bodyBg:"#121212",cardBg:"#1c1c1e",inputDisabledBg:"#1b1c1e",sidebarBg:"#252527",headerBg:"#252527",footerBg:"#252527",cardbg2:"#121212",focusBg:"#000",hoverBg:"#1a1d29",cardHeaderBg:"#252527",cardBgTwo:"#353a4e",cardBgThree:"#353a4e",tabButton:"#242837",counterBg:"#0A6560",counterInactiveBg:"#2E3339",versionCardBg:"#003332",versionCardBorder:"#067F77",textPrimary:"#e4e6eb",textSecondary:"#a6b0cf",textMuted:"#8891a8",headingColor:"#f6f6f6",inputDisabledText:"#383c43",borderColor:"#2E3339",primary:"#14b8a6",primaryHover:"#0d9488",primaryDeep:"#0f766e",secondary:"#06b6d4",success:"#10b981",info:"#3b82f6",warning:"#f59e0b",danger:"#ef4444",sidebarMenuItemColor:"#a6b0cf",sidebarMenuItemIconColor:"#6a7187",sidebarMenuItemHoverColor:"#ffffff",sidebarMenuItemActiveColor:"#14b8a6",sidebarMenuItemActiveBg:"rgba(20, 184, 166, 0.15)",headerItemColor:"#a6b0cf",itemHoverBg:"#2d3348",selectOptionHoverBg:"rgba(20, 184, 166, 0.15)",selectMultiValueBg:"rgba(20, 184, 166, 0.15)",selectMultiValueColor:"#14b8a6",subitemHoverBg:"#0e534f",statCardHoverBg:"#2d3348",statLabelColor:"#8891a8",statValueColor:"#f6f6f6",ringBg:"rgba(255, 255, 255, 0.1)",loadingOverlayBg:"rgba(0, 0, 0, 0.55)",toggleBtnText:"#a6b0cf",gradientAccent:"#14b8a6",gradientSecondary:"#1e3a5f",dividerColor:"#2d3348",positiveTrend:"#10b981",negativeTrend:"#ef4444",chartPrimary:"#14b8a6",chartSecondary:"#06b6d4",chartTertiary:"#f59e0b",chartGridBorder:"#2d3348",chartLabelColor:"#a6b0cf",chartAxisBorder:"#4a5568",chartTooltipText:"#e4e6eb",chartTooltipBorder:"#2d3348",chartTooltipBg:"#1f2330",truckBulker:"#60a5fa",truckContainer:"#fb923c",truckContainer20ft:"#6366f1",truckContainer40ft:"#34d399",truckTrilor:"#c084fc",truckGeneral:"#38bdf8",truckFreightKm:"#f97316",truckFreightTon:"#e4e6eb",tableRowHoverBg:"#2d3348",stepperActiveBg:"rgba(59, 130, 246, 0.15)",stepperValidBg:"rgba(16, 185, 129, 0.15)",stepperActiveColor:"#3b82f6",stepperInactiveText:"#8891a8",stepperValidText:"#e4e6eb",stepperBorderColor:"#2d3348",stepperWhiteText:"#FFFFFF",stepperHoverBg:"rgba(255, 255, 255, 0.05)",chatPrimary:"#2C2E33",aiCardBorder:"#2d3348",utilizationHigh:"#ef4444",utilizationMedium:"#f59e0b",utilizationLow:"#10b981",utilizationHighBg:"rgba(239, 68, 68, 0.15)",utilizationMediumBg:"rgba(245, 158, 11, 0.15)",utilizationLowBg:"rgba(16, 185, 129, 0.15)",utilizationHighText:"#ef4444",utilizationMediumText:"#f59e0b",utilizationLowText:"#10b981",aiProgressTrack:"#2d3348",btnInverseText:"#ffffff",btnPrimaryGradient:"linear-gradient(to right, #0d9488, #2dd4c4)",btnPrimaryHoverGradient:"linear-gradient(to top, rgba(0,0,0,0.15), transparent)",btnDangerGradient:"linear-gradient(to right, #dc2626, #f87171)",btnDangerHoverGradient:"linear-gradient(to top, rgba(0,0,0,0.15), transparent)",btnSecondaryGradient:"linear-gradient(to right, #0891b2, #22d3ee)",btnSecondaryHoverGradient:"linear-gradient(to top, rgba(0,0,0,0.15), transparent)",btnResetHoverGradient:"linear-gradient(to top, #2d1d1d, #3d2323)",btnCancelHoverGradient:"linear-gradient(to top, #2d3348, #373e57)",btnBlackHoverGradient:"linear-gradient(to top, #e5e7eb, #f9fafb)",softBlueBg:"rgba(31, 105, 241, 0.15)",toneNeutralBg:"rgba(255, 255, 255, 0.04)",toneNeutralBorder:"rgba(255, 255, 255, 0.10)",toneGrayBg:"rgba(255, 255, 255, 0.05)",toneGrayStrong:"rgba(255, 255, 255, 0.12)",toneGrayText:"#9ca3af",tonePrimaryBg:"rgba(1, 169, 155, 0.15)",tonePrimaryBorder:"rgba(1, 169, 155, 0.35)",toneSuccessBg:"rgba(1, 154, 90, 0.15)",toneSuccessBorder:"rgba(1, 154, 90, 0.35)",toneSuccessText:"#34d399",toneSuccessStrong:"rgba(1, 154, 90, 0.28)",toneWarningBg:"rgba(245, 158, 11, 0.14)",toneWarningBorder:"rgba(245, 158, 11, 0.34)",toneWarningText:"#fbbf24",toneWarningStrong:"#fcd34d",toneDangerBg:"rgba(239, 68, 68, 0.14)",toneDangerBorder:"rgba(239, 68, 68, 0.34)",toneDangerText:"#f87171",toneVioletBg:"rgba(114, 102, 236, 0.15)",toneVioletBorder:"rgba(114, 102, 236, 0.35)",toneVioletSolid:"#8b7ff0",toneInfoBg:"rgba(31, 105, 241, 0.18)",toneInfoBorder:"rgba(31, 105, 241, 0.38)",toneInfoText:"#6ea8fe",textDisabled:"#6b7280",successTagBg:"rgba(1, 154, 90, 0.22)",successTagText:"#34d399",successTagTextStrong:"#6ee7b7",warningTagBg:"rgba(245, 158, 11, 0.20)",warningTagText:"#fbbf24",dangerTagBg:"rgba(239, 68, 68, 0.20)",dangerTagText:"#f87171",infoTagBg:"rgba(31, 105, 241, 0.24)",infoTagSoftBg:"rgba(31, 105, 241, 0.14)",infoTagText:"#6ea8fe",secondaryTagBg:"rgba(57, 121, 190, 0.24)",secondaryTagText:"#93b8e8",violetTagBg:"rgba(114, 102, 236, 0.24)",violetTagSoftBg:"rgba(114, 102, 236, 0.14)",violetTagText:"#a99ff5",primaryTagBg:"rgba(1, 169, 155, 0.24)",primaryTagSoftBg:"rgba(1, 169, 155, 0.14)",primaryTagText:"#5eead4",lightTagBg:"rgba(255, 255, 255, 0.10)",lightTagText:"#e5e7eb",mutedTagText:"#9ca3af",grayTagBg:"rgba(255, 255, 255, 0.12)",grayTagText:"#9ca3af",neutralTagBg:"rgba(215, 205, 180, 0.14)",neutralTagText:"#cfc7b4",disabledTagBg:"rgba(255, 255, 255, 0.06)",disabledTagText:"#6b7280",modeRoadBg:"rgba(1, 169, 155, 0.20)",modeRoadText:"#5eead4",modeRailBg:"rgba(114, 102, 236, 0.20)",modeRailText:"#a99ff5",modeSeaBg:"rgba(57, 121, 190, 0.22)",modeSeaText:"#93b8e8",modeAirBg:"rgba(245, 189, 26, 0.20)",modeAirText:"#f9d34b",orderSingleBorder:"#1EE3CB",orderSingleBg:"linear-gradient(to bottom, rgba(30, 227, 203, 0.05), rgba(30, 227, 203, 0.18))",orderSingleInk:"#5eead4",orderMultipleBorder:"#7266EC",orderMultipleBg:"linear-gradient(to bottom, rgba(114, 102, 236, 0.05), rgba(114, 102, 236, 0.20))",orderMultipleInk:"#a99ff5",orderMultimodalBorder:"#F1AD0E",orderMultimodalBg:"linear-gradient(to bottom, rgba(245, 189, 26, 0.05), rgba(245, 189, 26, 0.18))",orderMultimodalInk:"#f9d34b",sectionTealFadeBg:"linear-gradient(to bottom, rgba(1, 169, 155, 0.22), rgba(1, 169, 155, 0.06))",sectionTealFadeBorder:"rgba(30, 227, 203, 0.35)",sectionTealFadeInk:"#5eead4",lightboxBg:"rgba(9, 9, 11, 0.95)",lightboxChromeBg:"rgba(255, 255, 255, 0.12)",lightboxChromeBgHover:"rgba(255, 255, 255, 0.22)",lightboxInk:xe,avatarToneText:xe,avatarTone1:T.primary[700],avatarTone2:T.light[800],avatarTone3:T.secondary[600],avatarTone4:T.slate[400],btnFilledText:xe,btnPrimaryBg:T.primary[700],bt
6nPrimaryBgHover:T.primary[800],btnPrimaryBgActive:T.primary[900],btnDestructiveBg:T.danger[600],btnDestructiveBgHover:T.danger[700],btnDestructiveBgActive:T.danger[800],btnOutlineBg:"transparent",btnOutlineBgHover:"rgba(255, 255, 255, 0.06)",btnOutlineBgActive:"rgba(255, 255, 255, 0.12)",btnOutlineBorder:"rgba(255, 255, 255, 0.22)",btnOutlineBorderHover:"rgba(255, 255, 255, 0.38)",btnOutlineBorderActive:"rgba(255, 255, 255, 0.55)",btnOutlineText:"#e5e7eb",btnGhostBgHover:"rgba(255, 255, 255, 0.08)",btnGhostBgActive:"rgba(255, 255, 255, 0.14)",btnGhostText:"#e5e7eb",btnDisabledBg:"rgba(255, 255, 255, 0.08)",btnDisabledText:"#6b7280",btnDisabledBorder:"rgba(255, 255, 255, 0.10)",btnDisabledTextSubtle:"#4b5563",fieldBg:"rgba(255, 255, 255, 0.04)",fieldBorder:"rgba(255, 255, 255, 0.14)",fieldText:"#e5e7eb",fieldPlaceholder:"#6b7280",fieldLabel:"#a6b0cf",fieldLabelDisabled:"#6b7280",fieldHelperText:"#9ca3af",fieldBorderFocus:T.primary[500],fieldBorderError:T.danger[400],fieldErrorText:T.danger[400],fieldReadonlyBg:"rgba(255, 255, 255, 0.02)",fieldReadonlyText:"#6b7280",fieldDisabledBg:"rgba(255, 255, 255, 0.02)",fieldDisabledBorder:"rgba(255, 255, 255, 0.08)",fieldDisabledText:"#6b7280",fieldDisabledPlaceholder:"#4b5563",selectBorderOpen:T.primary[500],selectMenuBg:"#26262a",selectMenuBorder:"rgba(255, 255, 255, 0.14)",selectOptionText:"#e5e7eb",selectOptionSelectedBg:"rgba(1, 169, 155, 0.20)",controlBorder:"rgba(255, 255, 255, 0.28)",controlCheckedBg:T.primary[500],controlCheckMark:T.primary[950],controlDisabledBg:"rgba(255, 255, 255, 0.06)",controlDisabledBorder:"rgba(255, 255, 255, 0.12)",controlLabel:"#d1d5db",controlLabelDisabled:"#6b7280",toggleTrackOff:"rgba(255, 255, 255, 0.18)",toggleTrackOn:T.primary[500],toggleTrackDisabled:"rgba(255, 255, 255, 0.08)",toggleKnob:"#f3f4f6",toggleKnobDisabled:"#6b7280"},vs={"--body-bg":"bodyBg","--card-bg":"cardBg","--input-disabled-bg":"inputDisabledBg","--card-header-bg":"cardHeaderBg","--card-bg-2":"cardbg2","--sidebar-bg":"sidebarBg","--hover-bg":"hoverBg","--tab-button":"tabButton","--counter-bg":"counterBg","--counter-inactive-bg":"counterInactiveBg","--version-card-bg":"versionCardBg","--version-card-border":"versionCardBorder","--card-bg-two":"cardBgTwo","--card-bg-three":"cardBgThree","--focus-bg":"focusBg","--header-bg":"headerBg","--footer-bg":"footerBg","--text-primary":"textPrimary","--item-hover-bg":"itemHoverBg","--select-option-hover-bg":"selectOptionHoverBg","--select-multi-value-bg":"selectMultiValueBg","--select-multi-value-color":"selectMultiValueColor","--subitem-hover-bg":"subitemHoverBg","--text-secondary":"textSecondary","--text-muted":"textMuted","--heading-color":"headingColor","--input-disabled-text":"inputDisabledText","--border-color":"borderColor","--primary":"primary","--secondary":"secondary","--success":"success","--info":"info","--warning":"warning","--danger":"danger","--chat-primary":"chatPrimary","--sidebar-menu-item-color":"sidebarMenuItemColor","--sidebar-menu-item-icon-color":"sidebarMenuItemIconColor","--sidebar-menu-item-hover-color":"sidebarMenuItemHoverColor","--sidebar-menu-item-active-color":"sidebarMenuItemActiveColor","--sidebar-menu-item-active-bg":"sidebarMenuItemActiveBg","--header-item-color":"headerItemColor","--stat-card-hover-bg":"statCardHoverBg","--stat-label-color":"statLabelColor","--stat-value-color":"statValueColor","--ring-bg":"ringBg","--loading-overlay-bg":"loadingOverlayBg","--toggle-btn-text":"toggleBtnText","--gradient-accent":"gradientAccent","--gradient-secondary":"gradientSecondary","--divider-color":"dividerColor","--positive-trend":"positiveTrend","--negative-trend":"negativeTrend","--chart-primary":"chartPrimary","--chart-secondary":"chartSecondary","--chart-tertiary":"chartTertiary","--chart-grid-border":"chartGridBorder","--chart-label-color":"chartLabelColor","--chart-axis-border":"chartAxisBorder","--chart-tooltip-text":"chartTooltipText","--chart-tooltip-border":"chartTooltipBorder","--chart-tooltip-bg":"chartTooltipBg","--truck-bulker":"truckBulker","--truck-container":"truckContainer","--truck-container-20ft":"truckContainer20ft","--truck-container-40ft":"truckContainer40ft","--truck-trilor":"truckTrilor","--truck-general":"truckGeneral","--truck-freight-km":"truckFreightKm","--truck-freight-ton":"truckFreightTon","--table-row-hover-bg":"tableRowHoverBg","--stepper-active-bg":"stepperActiveBg","--stepper-valid-bg":"stepperValidBg","--stepper-active-color":"stepperActiveColor","--stepper-inactive-text":"stepperInactiveText","--stepper-valid-text":"stepperValidText","--stepper-border-color":"stepperBorderColor","--stepper-white-text":"stepperWhiteText","--stepper-hover-bg":"stepperHoverBg","--ai-card-border":"aiCardBorder","--utilization-high":"utilizationHigh","--utilization-medium":"utilizationMedium","--utilization-low":"utilizationLow","--utilization-high-bg":"utilizationHighBg","--utilization-medium-bg":"utilizationMediumBg","--utilization-low-bg":"utilizationLowBg","--utilization-high-text":"utilizationHighText","--utilization-medium-text":"utilizationMediumText","--utilization-low-text":"utilizationLowText","--ai-progress-track":"aiProgressTrack","--btn-inverse-text":"btnInverseText","--btn-primary-gradient":"btnPrimaryGradient","--btn-primary-hover-gradient":"btnPrimaryHoverGradient","--btn-danger-gradient":"btnDangerGradient","--btn-danger-hover-gradient":"btnDangerHoverGradient","--btn-secondary-gradient":"btnSecondaryGradient","--btn-secondary-hover-gradient":"btnSecondaryHoverGradient","--btn-reset-hover-gradient":"btnResetHoverGradient","--btn-cancel-hover-gradient":"btnCancelHoverGradient","--btn-black-hover-gradient":"btnBlackHoverGradient","--soft-blue-bg":"softBlueBg","--tone-neutral-bg":"toneNeutralBg","--tone-neutral-border":"toneNeutralBorder","--tone-gray-bg":"toneGrayBg","--tone-gray-strong":"toneGrayStrong","--tone-gray-text":"toneGrayText","--tone-primary-bg":"tonePrimaryBg","--tone-primary-border":"tonePrimaryBorder","--tone-success-bg":"toneSuccessBg","--tone-success-border":"toneSuccessBorder","--tone-success-text":"toneSuccessText","--tone-success-strong":"toneSuccessStrong","--tone-warning-bg":"toneWarningBg","--tone-warning-border":"toneWarningBorder","--tone-warning-text":"toneWarningText","--tone-warning-strong":"toneWarningStrong","--tone-danger-bg":"toneDangerBg","--tone-danger-border":"toneDangerBorder","--tone-danger-text":"toneDangerText","--tone-violet-bg":"toneVioletBg","--tone-violet-border":"toneVioletBorder","--tone-violet-solid":"toneVioletSolid","--primary-hover":"primaryHover","--primary-deep":"primaryDeep","--tone-info-bg":"toneInfoBg","--tone-info-border":"toneInfoBorder","--tone-info-text":"toneInfoText","--text-disabled":"textDisabled","--success-tag-bg":"successTagBg","--success-tag-text":"successTagText","--success-tag-text-strong":"successTagTextStrong","--warning-tag-bg":"warningTagBg","--warning-tag-text":"warningTagText","--danger-tag-bg":"dangerTagBg","--danger-tag-text":"dangerTagText","--info-tag-bg":"infoTagBg","--info-tag-soft-bg":"infoTagSoftBg","--info-tag-text":"infoTagText","--secondary-tag-bg":"secondaryTagBg","--secondary-tag-text":"secondaryTagText","--violet-tag-bg":"violetTagBg","--violet-tag-soft-bg":"violetTagSoftBg","--violet-tag-text":"violetTagText","--primary-tag-bg":"primaryTagBg","--primary-tag-soft-bg":"primaryTagSoftBg","--primary-tag-text":"primaryTagText","--light-tag-bg":"lightTagBg","--light-tag-text":"lightTagText","--muted-tag-text":"mutedTagText","--gray-tag-bg":"grayTagBg","--gray-tag-text":"grayTagText","--neutral-tag-bg":"neutralTagBg","--neutral-tag-text":"neutralTagText","--disabled-tag-bg":"disabledTagBg","--disabled-tag-text":"disabledTagText","--mode-road-bg":"modeRoadBg","--mode-road-text":"modeRoadText","--mode-rail-bg":"modeRailBg","--mode-rail-text":"modeRailText","--mode-sea-bg":"modeSeaBg","--mode-sea-text":"modeSeaText","--mode-air-bg":"modeAirBg","--mode-air-text":"modeAirText","--order-single-border":"orderSingleBorder","--order-single-bg":"orderSingleBg","--order-single-ink":"orderSingleInk","--order-multiple-border":"orderMultipleBorder","--order-multiple-bg":"orderMultipleBg","--order-multiple-ink":"orderMultipleInk","--order-multimodal-border":"orderMultimodalBorder","--order-multimodal-bg":"orderMultimodalBg","--order-multimodal-ink":"orderMultimodalInk","--section-teal-fade-bg":"sectionTealFadeBg","--section-teal-fade-border":"sectionTealFadeBorder","--section-teal-fade-ink":"sectionTealFadeInk","--lightbox-bg":"lightboxBg","--lightbox-chrome-bg":"lightboxChromeBg","--lightbox-chrome-bg-hover":"lightboxChromeBgHover","--lightbox-ink":"lightboxInk","--btn-filled-text":"btnFilledText","--avatar-tone-text":"avatarToneText","--avatar-tone-1":"avatarTone1","--avatar-tone-2":"avatarTone2","--avatar-tone-3":"avatarTone3","--avatar-tone-4":"avatarTone4","--btn-primary-bg":"btnPrimaryBg","--btn-primary-bg-hover":"btnPrimaryBgHover","--btn-primary-bg-active":"btnPrimaryBgActive","--btn-destructive-bg":"btnDestructiveBg","--btn-destructive-bg-hover":"btnDestructiveBgHover","--btn-destructive-bg-active":"btnDestructiveBgActive","--btn-outline-bg":"btnOutlineBg","--btn-outline-bg-hover":"btnOutlineBgHover","--btn-outline-bg-active":"btnOutlineBgActive","--btn-outline-border":"btnOutlineBorder","--btn-outline-border-hover":"btnOutlineBorderHover","--btn-outline-border-active":"btnOutlineBorderActive","--btn-outline-text":"btnOutlineText","--btn-ghost-bg-hover":"btnGhostBgHover","--btn-ghost-bg-active":"btnGhostBgActive","--btn-ghost-text":"btnGhostText","--btn-disabled-bg":"btnDisabledBg","--btn-disabled-text":"btnDisabledText","--btn-disabled-border":"btnDisabledBorder","--btn-disabled-text-subtle":"btnDisabledTextSubtle","--field-bg":"fieldBg","--field-border":"fieldBorder","--field-text":"fieldText","--field-placeholder":"fieldPlaceholder","--field-label":"fieldLabel","--field-label-disabled":"fieldLabelDisabled","--field-helper
6-text":"fieldHelperText","--field-border-focus":"fieldBorderFocus","--field-border-error":"fieldBorderError","--field-error-text":"fieldErrorText","--field-readonly-bg":"fieldReadonlyBg","--field-readonly-text":"fieldReadonlyText","--field-disabled-bg":"fieldDisabledBg","--field-disabled-border":"fieldDisabledBorder","--field-disabled-text":"fieldDisabledText","--field-disabled-placeholder":"fieldDisabledPlaceholder","--select-border-open":"selectBorderOpen","--select-menu-bg":"selectMenuBg","--select-menu-border":"selectMenuBorder","--select-option-text":"selectOptionText","--select-option-selected-bg":"selectOptionSelectedBg","--control-border":"controlBorder","--control-checked-bg":"controlCheckedBg","--control-check-mark":"controlCheckMark","--control-disabled-bg":"controlDisabledBg","--control-disabled-border":"controlDisabledBorder","--control-label":"controlLabel","--control-label-disabled":"controlLabelDisabled","--toggle-track-off":"toggleTrackOff","--toggle-track-on":"toggleTrackOn","--toggle-track-disabled":"toggleTrackDisabled","--toggle-knob":"toggleKnob","--toggle-knob-disabled":"toggleKnobDisabled"},D=Object.entries(vs).reduce((e,[r,s])=>(e[s]=`var(${r})`,e),{}),Xr=[D.avatarTone1,D.avatarTone2,D.avatarTone3,D.avatarTone4],Ls=a.createContext(null),ea=e=>{const r=e==="light"?Fu:Mu,s=document.documentElement;document.getElementsByTagName("html")[0].setAttribute("data-bs-theme",e),Object.entries(vs).forEach(([n,i])=>{const c=r[i];c!==void 0?s.style.setProperty(n,c):console.warn(`Missing color key "${i}" in ${e.toUpperCase()}_THEME`)})},Uu=({children:e})=>{const[r,s]=a.useState(()=>{try{const i=localStorage.getItem("theme");if(console.log("storedTheme: ",i),i)return i}catch(i){console.error("Failed to load theme preference from localStorage:",i)}return"light"});a.useEffect(()=>{ea(r)},[r]),a.useEffect(()=>{try{localStorage.setItem("theme",r)}catch(i){console.error("Failed to save theme preference to localStorage:",i)}},[r]);const n={theme:r,toggleTheme:()=>{const i=r==="light"?"dark":"light";ea(i),s(i)}};return t.jsx(Ls.Provider,{value:n,children:e})},qe=()=>{const e=a.useContext(Ls);if(!e)throw new Error("useTheme must be used within a ThemeProvider. Please wrap your component tree with <ThemeProvider>.");return e},Cs=e=>{const[r,s]=a.useState(!1),[o,n]=a.useState([]),{isSidebar:i,isSidebarCollapsed:c}=e,m=se(d=>d.notifications,d=>({Notifications:d.Notifications})),f=Je(),{Notifications:y}=Oe(m);a.useEffect(()=>{n(y||[])},[y]);const p=async d=>{try{d&&f(Yp(d))}catch(S){console.error("handle set notification id error:",S)}};return i&&!c?t.jsxs(ze,{isOpen:r,toggle:()=>s(!r),className:"dropdown w-100",tag:"div",direction:"up",children:[t.jsxs(Ve,{className:"btn p-0 border-0 bg-transparent w-100 text-start notification-expanded",tag:"button",id:"page-header-notifications-dropdown",style:{display:"flex",alignItems:"center",justifyContent:"space-between",boxShadow:"none",outline:"none",padding:"6px 0",cursor:"pointer"},children:[t.jsxs("div",{className:"d-flex align-items-center",style:{gap:"12px"},children:[t.jsx(xo,{className:"bell-icon",size:20,style:{color:"var(--sidebar-menu-item-icon-color, #7f8387)",transition:"color 0.2s ease"}}),t.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"var(--sidebar-menu-item-color, #545a6d)",transition:"color 0.2s ease"},children:e.t("Notifications")})]}),t.jsx("span",{className:"d-flex align-items-center justify-content-center",style:{minWidth:20,height:20,borderRadius:"50%",backgroundColor:"var(--primary, #01A99B)",color:"#ffffff",fontSize:"11px",fontWeight:"700",padding:"0 4px"},children:o.length||0})]}),t.jsxs(He,{className:"dropdown-menu dropdown-menu-lg p-0",style:{marginBottom:"8px"},children:[t.jsx("div",{className:"p-3",children:t.jsxs(We,{className:"align-items-center",children:[t.jsx(Pe,{children:t.jsxs("h6",{className:"m-0",children:[" ",e.t("Notifications")," "]})}),t.jsx("div",{className:"col-auto",children:t.jsxs("a",{href:"#!",className:"small",children:[" ","View All"]})})]})}),t.jsx(vt,{style:{height:"230px"},children:o.map(d=>t.jsx(q,{to:{pathname:`/transport-request/view/${d?.entity_content?.inquiry_id}`},onClick:()=>p(d?.id),className:"text-reset notification-item",children:t.jsx("div",{className:"d-flex",children:t.jsxs("div",{className:"flex-grow-1",children:[t.jsxs("h6",{className:"mt-0 mb-1",children:[d?.entity_content?.route_source?.split(",")[0]," To"," ",d?.entity_content?.destination?.split(",")[0]]}),t.jsxs("div",{className:"font-size-12 text-muted",children:[t.jsx("p",{className:"mb-1"}),t.jsxs("p",{className:"mb-0",children:[t.jsx("i",{className:"mdi mdi-clock-outline"}),e.t(`${Wt(d?.created_at).fromNow()}`)," "]})]})]})})},d?.id))}),t.jsx("div",{className:"p-2 border-top d-grid",children:t.jsxs(q,{className:"btn btn-sm btn-link font-size-14 btn-block text-center",to:"#",children:[t.jsx("i",{className:"mdi mdi-arrow-right-circle me-1"})," ",e.t("View all")," "]})})]})]}):t.jsx(X.Fragment,{children:t.jsxs(ze,{isOpen:r,toggle:()=>s(!r),className:"dropdown d-inline-block",tag:"li",children:[t.jsxs(Ve,{className:`btn noti-icon position-relative ${i?"":"header-item"}`,style:i?{width:38,height:38,borderRadius:12,border:"none",background:"var(--header-bg)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:0,flexShrink:0}:void 0,tag:"button",id:"page-header-notifications-dropdown",children:[t.jsx("i",{className:"bx bx-bell bx-tada",style:i?{fontSize:"20px",color:"var(--header-text-color)"}:void 0}),t.jsx("span",{className:"badge bg-danger rounded-pill",style:i?{position:"absolute",top:-2,right:-2}:void 0,children:o.length||0})]}),t.jsxs(He,{className:`dropdown-menu dropdown-menu-lg p-0 ${i?"":"dropdown-menu-end"}`,children:[t.jsx("div",{className:"p-3",children:t.jsxs(We,{className:"align-items-center",children:[t.jsx(Pe,{children:t.jsxs("h6",{className:"m-0",children:[" ",e.t("Notifications")," "]})}),t.jsx("div",{className:"col-auto",children:t.jsxs("a",{href:"#!",className:"small",children:[" ","View All"]})})]})}),t.jsx(vt,{style:{height:"230px"},children:o.map(d=>t.jsx(q,{to:{pathname:`/transport-request/view/${d?.entity_content?.inquiry_id}`},onClick:()=>p(d?.id),className:"text-reset notification-item",children:t.jsx("div",{className:"d-flex",children:t.jsxs("div",{className:"flex-grow-1",children:[t.jsxs("h6",{className:"mt-0 mb-1",children:[d?.entity_content?.route_source?.split(",")[0]," To"," ",d?.entity_content?.destination?.split(",")[0]]}),t.jsxs("div",{className:"font-size-12 text-muted",children:[t.jsx("p",{className:"mb-1"}),t.jsxs("p",{className:"mb-0",children:[t.jsx("i",{className:"mdi mdi-clock-outline"}),e.t(`${Wt(d?.created_at).fromNow()}`)," "]})]})]})})}))}),t.jsx("div",{className:"p-2 border-top d-grid",children:t.jsxs(q,{className:"btn btn-sm btn-link font-size-14 btn-block text-center",to:"#",children:[t.jsx("i",{className:"mdi mdi-arrow-right-circle me-1"})," ",e.t("View all")," "]})})]})]})})},Ds=Ze()(Cs);Cs.propTypes={t:P.any};const Gu="/gps-agent/alerts",$u=()=>B(Gu),At=e=>t.jsxs("svg",{width:33,height:34,viewBox:"0 0 33 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t.jsx("path",{d:"M21.6484 1.0918L31.9951 11.3584L32.1367 11.499V22.084L31.9971 22.2246L21.7314 32.5713L21.5068 32.3486L21.2041 32.6484L16.291 27.6592L11.54
61 32.4102L11.1992 32.752L10.8594 32.4092L0.672852 22.1426L0.533203 22.002V11.5771L0.675781 11.4365L10.9424 1.25L11.2822 0.912109L11.6211 1.25195L16.2158 5.84668L20.9688 1.09375L21.3076 0.753906L21.6484 1.0918ZM21.8682 22.083L21.7275 22.2246L16.9707 26.9795L21.4307 31.5059L30.9756 21.8867L21.8682 12.7793V22.083ZM11.5244 22.0801L11.6631 30.9258L15.9531 26.6367L20.9053 21.6846V12.7725L11.5244 22.0801ZM1.49609 21.6055L10.7002 30.8828L10.5625 22.085L1.49609 12.9463V21.6055ZM1.69434 11.7803L10.6416 20.7979V11.4199L10.7832 11.2793L15.5352 6.52637L11.2793 2.27051L1.69434 11.7803ZM21.8613 10.4678L21.8682 10.4619V11.2764L21.8691 11.4189L31.1748 20.7246V11.9014L21.7988 2.59766L21.8613 10.4678ZM11.6045 11.8184V20.6436L20.9062 11.416L20.8369 2.58496L11.6045 11.8184Z",fill:"#01A99B"}),t.jsx("path",{d:"M21.6484 1.0918L22.0241 0.713211L22.0239 0.713049L21.6484 1.0918ZM31.9951 11.3584L32.3709 10.98L32.3708 10.9798L31.9951 11.3584ZM32.1367 11.499H32.6701V11.277L32.5125 11.1206L32.1367 11.499ZM32.1367 22.084L32.5152 22.4598L32.6701 22.3038V22.084H32.1367ZM31.9971 22.2246L31.6186 21.8488L31.6185 21.849L31.9971 22.2246ZM21.7314 32.5713L21.356 32.9501L21.7346 33.3254L22.11 32.9469L21.7314 32.5713ZM21.5068 32.3486L21.8823 31.9699L21.507 31.5978L21.1315 31.9697L21.5068 32.3486ZM21.2041 32.6484L20.8241 33.0226L21.1994 33.4037L21.5794 33.0274L21.2041 32.6484ZM16.291 27.6592L16.671 27.285L16.2939 26.902L15.9139 27.2821L16.291 27.6592ZM11.541 32.4102L11.9181 32.7873L11.9182 32.7872L11.541 32.4102ZM11.1992 32.752L10.8205 33.1275L11.1976 33.5078L11.5763 33.1291L11.1992 32.752ZM10.8594 32.4092L11.2381 32.0337L11.238 32.0335L10.8594 32.4092ZM0.672852 22.1426L1.05145 21.7669L1.05129 21.7668L0.672852 22.1426ZM0.533203 22.002H-0.000130236V22.2218L0.154768 22.3778L0.533203 22.002ZM0.533203 11.5771L0.158689 11.1974L-0.000130236 11.3541V11.5771H0.533203ZM0.675781 11.4365L1.0503 11.8162L1.05143 11.8151L0.675781 11.4365ZM10.9424 1.25L11.318 1.6286L11.3184 1.62821L10.9424 1.25ZM11.2822 0.912109L11.6599 0.535529L11.2839 0.158407L10.9062 0.5339L11.2822 0.912109ZM11.6211 1.25195L11.2434 1.62853L11.244 1.62908L11.6211 1.25195ZM16.2158 5.84668L15.8387 6.2238L16.2158 6.60093L16.5929 6.2238L16.2158 5.84668ZM20.9688 1.09375L21.3459 1.47087L21.3464 1.47033L20.9688 1.09375ZM21.3076 0.753906L21.6831 0.375158L21.3055 0.000744998L20.93 0.377326L21.3076 0.753906ZM21.8682 22.083L22.2466 22.4588L22.4015 22.3028V22.083H21.8682ZM21.7275 22.2246L22.1046 22.6018L22.106 22.6004L21.7275 22.2246ZM16.9707 26.9795L16.5937 26.6023L16.2192 26.9766L16.5908 27.3538L16.9707 26.9795ZM21.4307 31.5059L21.0508 31.8802L21.4293 32.2644L21.8092 31.8815L21.4307 31.5059ZM30.9756 21.8867L31.3542 22.2624L31.7284 21.8853L31.3527 21.5096L30.9756 21.8867ZM21.8682 12.7793L22.2453 12.4022L21.3348 11.4917V12.7793H21.8682ZM11.5244 22.0801L11.1488 21.7015L10.9876 21.8614L10.9911 22.0884L11.5244 22.0801ZM11.6631 30.9258L11.1298 30.9341L11.1496 32.1934L12.0402 31.3029L11.6631 30.9258ZM15.9531 26.6367L16.3302 27.0139L16.3302 27.0138L15.9531 26.6367ZM20.9053 21.6846L21.2824 22.0617L21.4386 21.9055V21.6846H20.9053ZM20.9053 12.7725H21.4386V11.492L20.5296 12.3939L20.9053 12.7725ZM1.49609 21.6055H0.96276V21.8251L1.11748 21.9811L1.49609 21.6055ZM10.7002 30.8828L10.3216 31.2584L11.2542 32.1985L11.2335 30.8745L10.7002 30.8828ZM10.5625 22.085L11.0958 22.0766L11.0924 21.8618L10.9411 21.7093L10.5625 22.085ZM1.49609 12.9463L1.87471 12.5707L0.96276 11.6514V12.9463H1.49609ZM1.69434 11.7803L1.3187 11.4017L0.940085 11.7773L1.31574 12.1559L1.69434 11.7803ZM10.6416 20.7979L10.263 21.1735L11.1749 22.0926V20.7979H10.6416ZM10.6416 11.4199L10.2658 11.0415L10.1083 11.1979V11.4199H10.6416ZM10.7832 11.2793L11.159 11.6577L11.1604 11.6564L10.7832 11.2793ZM15.5352 6.52637L15.9123 6.90345L16.2894 6.52633L15.9123 6.14924L15.5352 6.52637ZM11.2793 2.27051L11.6564 1.89338L11.2808 1.51774L10.9037 1.8919L11.2793 2.27051ZM21.8613 10.4678L21.328 10.472L21.3371 11.6195L22.2084 10.8727L21.8613 10.4678ZM21.8682 10.4619H22.4015V9.30233L21.5211 10.057L21.8682 10.4619ZM21.8682 11.2764H21.3348L21.3348 11.28L21.8682 11.2764ZM21.8691 11.4189L21.3358 11.4226L21.3373 11.6414L21.492 11.7961L21.8691 11.4189ZM31.1748 20.7246L30.7977 21.1017L31.7081 22.0122V20.7246H31.1748ZM31.1748 11.9014H31.7081V11.6792L31.5505 11.5228L31.1748 11.9014ZM21.7988 2.59766L22.1745 2.21908L21.2552 1.3069L21.2655 2.60189L21.7988 2.59766ZM11.6045 11.8184L11.2273 11.4413L11.0712 11.5975V11.8184H11.6045ZM11.6045 20.6436H11.0712V21.9239L11.9801 21.0222L11.6045 20.6436ZM20.9062 11.416L21.2819 11.7946L21.4413 11.6364L21.4396 11.4118L20.9062 11.416ZM20.8369 2.58496L21.3702 2.58077L21.3602 1.3073L20.4598 2.20786L20.8369 2.58496ZM21.6484 1.0918L21.2728 1.47038L31.6195 11.737L31.9951 11.3584L32.3708 10.9798L22.0241 0.713211L21.6484 1.0918ZM31.9951 11.3584L31.6193 11.7368L31.7609 11.8774L32.1367 11.499L32.5125 11.1206L32.3709 10.98L31.9951 11.3584ZM32.1367 11.499H31.6034V22.084H32.1367H32.6701V11.499H32.1367ZM32.1367 22.084L31.7583 21.7082L31.6186 21.8488L31.9971 22.2246L32.3755 22.6004L32.5152 22.4598L32.1367 22.084ZM31.9971 22.2246L31.6185 21.849L21.3528 32.1957L21.7314 32.5713L22.11 32.9469L32.3757 22.6002L31.9971 22.2246ZM21.7314 32.5713L22.1069 32.1925L21.8823 31.9699L21.5068 32.3486L21.1314 32.7274L21.356 32.9501L21.7314 32.5713ZM21.5068 32.3486L21.1315 31.9697L20.8288 32.2695L21.2041 32.6484L21.5794 33.0274L21.8821 32.7276L21.5068 32.3486ZM21.2041 32.6484L21.5841 32.2742L16.
6671 27.285L16.291 27.6592L15.911 28.0334L20.8241 33.0226L21.2041 32.6484ZM16.291 27.6592L15.9139 27.2821L11.1639 32.0331L11.541 32.4102L11.9182 32.7872L16.6682 28.0363L16.291 27.6592ZM11.541 32.4102L11.1639 32.033L10.8221 32.3748L11.1992 32.752L11.5763 33.1291L11.9181 32.7873L11.541 32.4102ZM11.1992 32.752L11.578 32.3765L11.2381 32.0337L10.8594 32.4092L10.4806 32.7847L10.8205 33.1275L11.1992 32.752ZM10.8594 32.4092L11.238 32.0335L1.05145 21.7669L0.672852 22.1426L0.294254 22.5182L10.4808 32.7848L10.8594 32.4092ZM0.672852 22.1426L1.05129 21.7668L0.911638 21.6261L0.533203 22.002L0.154768 22.3778L0.294416 22.5184L0.672852 22.1426ZM0.533203 22.002H1.06654V11.5771H0.533203H-0.000130236V22.002H0.533203ZM0.533203 11.5771L0.907717 11.9569L1.0503 11.8162L0.675781 11.4365L0.301267 11.0568L0.158689 11.1974L0.533203 11.5771ZM0.675781 11.4365L1.05143 11.8151L11.318 1.6286L10.9424 1.25L10.5667 0.871403L0.300137 11.0579L0.675781 11.4365ZM10.9424 1.25L11.3184 1.62821L11.6583 1.29032L11.2822 0.912109L10.9062 0.5339L10.5663 0.871791L10.9424 1.25ZM11.2822 0.912109L10.9046 1.28869L11.2434 1.62853L11.6211 1.25195L11.9988 0.875372L11.6599 0.535529L11.2822 0.912109ZM11.6211 1.25195L11.244 1.62908L15.8387 6.2238L16.2158 5.84668L16.5929 5.46956L11.9982 0.874829L11.6211 1.25195ZM16.2158 5.84668L16.5929 6.2238L21.3459 1.47087L20.9688 1.09375L20.5916 0.716626L15.8387 5.46956L16.2158 5.84668ZM20.9688 1.09375L21.3464 1.47033L21.6853 1.13049L21.3076 0.753906L20.93 0.377326L20.5911 0.717169L20.9688 1.09375ZM21.3076 0.753906L20.9321 1.13265L21.2729 1.47054L21.6484 1.0918L22.0239 0.713049L21.6831 0.375158L21.3076 0.753906ZM21.8682 22.083L21.4897 21.7072L21.3491 21.8488L21.7275 22.2246L22.106 22.6004L22.2466 22.4588L21.8682 22.083ZM21.7275 22.2246L21.3505 21.8474L16.5937 26.6023L16.9707 26.9795L17.3477 27.3567L22.1046 22.6018L21.7275 22.2246ZM16.9707 26.9795L16.5908 27.3538L21.0508 31.8802L21.4307 31.5059L21.8106 31.1315L17.3506 26.6052L16.9707 26.9795ZM21.4307 31.5059L21.8092 31.8815L31.3542 22.2624L30.9756 21.8867L30.597 21.5111L21.0521 31.1302L21.4307 31.5059ZM30.9756 21.8867L31.3527 21.5096L22.2453 12.4022L21.8682 12.7793L21.491 13.1564L30.5985 22.2638L30.9756 21.8867ZM21.8682 12.7793H21.3348V22.083H21.8682H22.4015V12.7793H21.8682ZM11.5244 22.0801L10.9911 22.0884L11.1298 30.9341L11.6631 30.9258L12.1964 30.9174L12.0577 22.0717L11.5244 22.0801ZM11.6631 30.9258L12.0402 31.3029L16.3302 27.0139L15.9531 26.6367L15.576 26.2596L11.286 30.5486L11.6631 30.9258ZM15.9531 26.6367L16.3302 27.0138L21.2824 22.0617L20.9053 21.6846L20.5282 21.3074L15.576 26.2596L15.9531 26.6367ZM20.9053 21.6846H21.4386V12.7725H20.9053H20.3719V21.6846H20.9053ZM20.9053 12.7725L20.5296 12.3939L11.1488 21.7015L11.5244 22.0801L11.9001 22.4587L21.2809 13.1511L20.9053 12.7725ZM1.49609 21.6055L1.11748 21.9811L10.3216 31.2584L10.7002 30.8828L11.0788 30.5072L1.87471 21.2298L1.49609 21.6055ZM10.7002 30.8828L11.2335 30.8745L11.0958 22.0766L10.5625 22.085L10.0292 22.0933L10.1669 30.8912L10.7002 30.8828ZM10.5625 22.085L10.9411 21.7093L1.87471 12.5707L1.49609 12.9463L1.11748 13.3219L10.1839 22.4606L10.5625 22.085ZM1.49609 12.9463H0.96276V21.6055H1.49609H2.02943V12.9463H1.49609ZM1.69434 11.7803L1.31574 12.1559L10.263 21.1735L10.6416 20.7979L11.0202 20.4222L2.07293 11.4046L1.69434 11.7803ZM10.6416 20.7979H11.1749V11.4199H10.6416H10.1083V20.7979H10.6416ZM10.6416 11.4199L11.0174 11.7983L11.159 11.6577L10.7832 11.2793L10.4074 10.9009L10.2658 11.0415L10.6416 11.4199ZM10.7832 11.2793L11.1604 11.6564L15.9123 6.90345L15.5352 6.52637L15.158 6.14928L10.406 10.9022L10.7832 11.2793ZM15.5352 6.52637L15.9123 6.14924L11.6564 1.89338L11.2793 2.27051L10.9022 2.64763L15.158 6.90349L15.5352 6.52637ZM11.2793 2.27051L10.9037 1.8919L1.3187 11.4017L1.69434 11.7803L2.06997 12.1589L11.6549 2.64911L11.2793 2.27051ZM21.8613 10.4678L22.2084 10.8727L22.2153 10.8669L21.8682 10.4619L21.5211 10.057L21.5142 10.0628L21.8613 10.4678ZM21.8682 10.4619H21.3348V11.2764H21.8682H22.4015V10.4619H21.8682ZM21.8682 11.2764L21.3348 11.28L21.3358 11.4226L21.8691 11.4189L22.4025 11.4153L22.4015 11.2727L21.8682 11.2764ZM21.8691 11.4189L21.492 11.7961L30.7977 21.1017L31.1748 20.7246L31.5519 20.3475L22.2463 11.0418L21.8691 11.4189ZM31.1748 20.7246H31.7081V11.9014H31.1748H30.6415V20.7246H31.1748ZM31.1748 11.9014L31.5505 11.5228L22.1745 2.21908L21.7988 2.59766L21.4232 2.97624L30.7991 12.2799L31.1748 11.9014ZM21.7988 2.59766L21.2655 2.60189L21.328 10.472L21.8613 10.4678L22.3946 10.4635L22.3321 2.59342L21.7988 2.59766ZM11.6045 11.8184H11.0712V20.6436H11.6045H12.1378V11.8184H11.6045ZM11.6045 20.6436L11.9801 21.0222L21.2819 11.7946L20.9062 11.416L20.5306 11.0374L11.2289 20.2649L11.6045 20.6436ZM20.9062 11.416L21.4396 11.4118L21.3702 2.58077L20.8369 2.58496L20.3036 2.58915L20.3729 11.4202L20.9062 11.416ZM20.8369 2.58496L20.4598 2.20786L11.2273 11.4413L11.6045 11.8184L11.9816 12.1955L21.2141 2.96206L20.8369 2.58496Z",fill:e.fill??"#01A99B"})]}),_t=8,zt=120;function zu(e,r){const s=e.getBoundingClientRect();let o={};switch(r){case"bottom":o={top:s.bottom+_t,left:s.left+s.width/2,transform:"translateX(-50%)",transformOrigin:"50% 0%"};break;case"left":return{top:s.top+s.height/2,left:s.left-_t,transform:"translate(-100%, -50%)",transformOrigin:"100% 50%"};case"right":return{top:s.top+s.height/2,left:s.right+_t,transform:"translateY(-50%)",transformOrigin:"0% 50%"};default:o={top:s.top-_t,left:s.left+s.width/2,transform:"translate(-50%, -100%)",transformOrigin:"50% 100%"};break}return s.right>window.innerWidth-60&&(o.left=s.right,o.transform=o.transform.replace("-50%","-100%"),o.transformOrigin=o.transformOrigin.replace("50%","100%")),o}const Ar=({text:e,placement:r="top",children:s})=>{const[o,n]=a.useState(!1),[i,c]=a.useState(!1),[m,f]=a.useState(null),y=a.useRef(null),p=a.useRef(null),d=a.useRef(null),S=a.useRef(null),h=a.useCallback(()=>{clearTimeout(y.current),clearTimeout(p.current),cancelAnimationFrame(d.current),S.current&&(f(zu(S.current,r)),n(!0),d.current=requestAnimationFrame(()=>c(!0)))},[r]),l=a.useCallback(()=>{clearTimeout(y.current),y.current=setTimeout(()=>{c(!1),p.current=setTimeout(()=>{n(!1),f(null)},zt)},80)},[]);return e?t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:S,className:"custom-tooltip-trigger",style:{display:"inline-block"},onMouseEnter:h,onMouseLeave:l,children:s}),o&&_a.createPortal(t.jsx("div",{role:"tooltip",style:{position:"fixed",zIndex:9999,pointerEvents:"none",background:"rgba(30, 30, 40, 0.92)",color:"#fff",padding:"5px 10px",borderRadius:6,fontSize:12,fontWeight:500,lineHeight:1.4,width:"max-content",maxWidth:300,whiteSpace:"normal",wordBreak:"break-word",opacity:i?1:0,scale:i?"1":"0.95",transition:`opacity ${zt}ms ease, scale ${zt}ms ease`,...m},children:e}),document.body)]}):t.jsx(t.Fragment,{children:s})},Vu=({pollingInterval:e=36e5})=>{const[r,s]=a.useState(!1),[o,n]=a.useState([]),[i,c]=a.useState([]),[m,f]=a.useState(null),[y,p]=a.use
6State(!0),[d,S]=a.useState(!1),h=X.useMemo(()=>{const b=localStorage.getItem("user");if(!b)return!1;try{const v=JSON.parse(b),_=v?.permissions||[];return(v?.eta_notification||!1)===!1?!1:_.some($=>$.module_key==="AI Feature"&&$.read===!0)}catch(v){return console.error("Failed to parse user data from localStorage",v),!1}},[]),l=()=>s(b=>!b),E=a.useCallback(async()=>{if(h)try{S(!0);const b=await $u();if(b&&!b.error){const v=b.data?.alerts||[],_=b.data?.warnings||[],k=b.data?.service_available!==!1;p(k),n(v),c(_),f(new Date)}}catch(b){console.error("Failed to fetch GPS alerts:",b),p(!1)}finally{setTimeout(()=>S(!1),500)}},[h]);a.useEffect(()=>{if(!h)return;E();const b=setInterval(E,e);return()=>clearInterval(b)},[E,e,h]);const I=o.length+i.length,L=b=>{if(!b)return"";const v=new Date(b),k=new Date-v,$=Math.floor(k/6e4);if($<1)return"Just now";if($<60)return`${$}m ago`;const J=Math.floor($/60);return J<24?`${J}h ago`:v.toLocaleDateString()},R=[...o.map(b=>({...b,type:"alert",severity:b.severity||"high"})),...i.map(b=>({...b,type:"warning",severity:b.severity||"medium"}))].sort((b,v)=>new Date(v.timestamp)-new Date(b.timestamp)).slice(0,5);return h?t.jsxs(t.Fragment,{children:[t.jsx("style",{children:`
7          @keyframes aiPulse {
8            0%, 100% { opacity: 1; transform: scale(1); }
9            50% { opacity: 0.8; transform: scale(1.05); }
10          }
11          
12          @keyframes aiScan {
13            0% { background-position: -200% 0; }
14            100% { background-position: 200% 0; }
15          }
16          
17          @keyframes aiGlow {
18            0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
19            50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
20          }
21
22          .ai-notification-item {
23            position: relative;
24            padding: 12px;
25            margin: 8px 12px;
26            border-radius: 12px;
27            background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
28            border: 1px solid #e5e7eb;
29            transition: all 0.3s ease;
30            overflow: hidden;
31          }
32
33          .ai-notification-item:hover {
34            transform: translateX(4px);
35            border-color: #3979BE;
36            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
37          }
38
39          .ai-notification-item::before {
40            content: '';
41            position: absolute;
42            top: 0;
43            left: 0;
44            width: 4px;
45            height: 100%;
46            background: linear-gradient(180deg, #3979BE 0%, #8b5cf6 100%);
47          }
48
49          .ai-notification-item.alert::before {
50            background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
51          }
52
53          .ai-badge-icon {
54            position: relative;
55            animation: aiPulse 2s ease-in-out infinite;
56          }
57
58          .ai-analyzing {
59            animation: aiScan 2s linear infinite;
60            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
61            background-size: 200% 100%;
62          }
63        `}),t.jsxs(ze,{isOpen:r,toggle:l,className:"d-inline-block",children:[t.jsx(Ve,{className:"btn header-item noti-icon position-relative d-flex align-items-center justify-content-center",tag:"button",id:"page-header-gps-dropdown",style:{border:"none",background:"transparent",padding:"0 10px"},children:t.jsx(Ar,{text:"GPS Alerts",placement:"bottom",children:t.jsxs("div",{className:"position-relative d-flex align-items-center justify-content-center",children:[t.jsx(Eo,{color:"#3979BE",size:22}),I>0&&t.jsx("span",{className:"badge bg-danger rounded-pill position-absolute",style:{top:"-8px",right:"-10px",fontSize:"10px",padding:"2px 5px"},children:I>9?"9+":I})]})})}),t.jsxs(He,{className:"dropdown-menu-lg dropdown-menu-end p-0",style:{borderRadius:"16px",border:"1px solid #e5e7eb",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.1)",overflow:"hidden"},children:[t.jsxs("div",{style:{background:"linear-gradient(90deg, #01A99B 0%, #1350BF 100%)",padding:"14px 16px",display:"flex",alignItems:"center",gap:"11px"},children:[t.jsx("div",{style:{width:"38px",height:"38px",borderRadius:"50%",padding:"8px",background:"rgba(255,255,255,0.16)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:t.jsx(At,{fill:"white"})}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{color:"white",fontWeight:700,fontSize:"14px",letterSpacing:"0.2px"},children:"AI GPS Agent"}),t.jsx("div",{style:{color:"rgba(255,255,255,0.72)",fontSize:"11px",marginTop:"1px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:"Autonomous Fleet Monitoring"})]})]}),m&&t.jsxs("div",{style:{padding:"8px 16px",background:"rgba(1, 168, 155, 0.08)",borderBottom:"1px solid rgba(1, 168, 155, 0.12)",fontSize:"11px",color:"#01A99B",display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx("i",{className:"bx bx-time-five",style:{fontSize:"13px"}}),t.jsxs("span",{children:["Last analyzed: ",L(m)]})]}),t.jsx(vt,{style:{maxHeight:"400px"},children:R.length===0?t.jsx("div",{className:"text-center p-4",children:y?t.jsxs("div",{children:[t.jsx("div",{style:{width:"64px",height:"64px",margin:"0 auto 16px",borderRadius:"16px",background:"linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px"},children:"✓"}),t.jsx("h6",{style:{color:"#10b981",fontWeight:"600"},children:"All Clear"}),t.jsx("p",{className:"text-muted mb-0",style:{fontSize:"13px"},children:"AI is monitoring your fleet - no issues detected"})]}):t.jsxs("div",{children:[t.jsx("div",{style:{width:"64px",height:"64px",margin:"0 auto 16px",borderRadius:"16px",background:"linear-gradient(135deg, #fef3c7 0%, #fde68a 100%)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px"},children:"⚠️"}),t.jsx("h6",{style:{color:"#f59e0b",fontWeight:"600"},children:"AI Agent Offline"}),t.jsx("p",{className:"text-muted mb-0",style:{fontSize:"13px"},children:"The AI monitoring service is temporarily unavailable"})]})}):t.jsx("div",{className:d?"ai-analyzing":"",children:R.map((b,v)=>t.jsx("div",{className:`ai-notification-item ${b.type}`,children:t.jsxs("div",{className:"d-flex align-items-start gap-3",children:[t.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"10px",background:b.type==="alert"?"linear-gradient(135deg, #fee2e2 0%, #fecaca 100%)":"linear-gradient(135deg, #fef3c7 0%, #fde68a 100%)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"20px",flexShrink:0},children:b.type==="alert"?"🚨":"⚡"}),t.jsxs("div",{className:"flex-grow-1",style:{minWidth:0},children:[t.jsxs("div",{className:"d-flex align-items-center justify-content-between mb-1",children:[t.jsx("h6",{className:"mb-0",style:{fontSize:"13px",fontWeight:"700",color:"#1f2937"},children:b.truck_number||"Unknown Truck"}),t.jsx("span",{style:{fontSize:"10px",fontWeight:"600",padding:"2px 8px",borderRadius:"6px",background:b.type==="alert"?"linear-gradient(135deg, #fee2e2 0%, #fecaca 100%)":"linear-gradient(135deg, #fef3c7 0%, #fde68a 100%)",color:b.type==="alert"?"#991b1b":"#92400e",textTransform:"uppercase",letterSpacing:"0.5px"},children:b.type==="alert"?"Alert":"Warning"})]}),t.jsx("p",{className:"mb-2",style:{fontSize:"12px",color:"#6b7280",lineHeight:"1.5"},children:b.message||"GPS tracking update"}),b.details&&t.jsxs("div",{className:"mb-2 p-2",style:{background:"#f9fafb",borderRadius:"6px",fontSize:"11px"},children:[b.details.distance_remaining&&t.jsxs("div",{className:"d-flex align-items-center gap-1 mb-1",children:[t.jsx("i",{className:"bx bx-map",style:{color:"#3979BE"}}),t.jsxs("span",{style:{color:"#4b5563"},children:[b.details.distance_remaining," remaining"]})]}),b.details.estimated_travel_time&&t.jsxs("div",{className:"d-flex align-items-center gap-1",children:[t.jsx("i",{className:"bx bx-time",style:{color:"#3979BE"}}),t.jsxs("span",{style:{color:"#4b5563"},children:["ETA: ",b.details.estimated_travel_time]})]})]})]})]})},v))})}),t.jsx("div",{style:{padding:"12px 20px",background:"#f9fafb",borderTop:"1px solid #e5e7eb"},children:t.jsxs("div",{className:"d-flex align-items-center justify-content-between",children:[t.jsxs("small",{style:{fontSize:"11px",color:"#6b7280"},children:[t.jsx("i",{className:"bx bx-info-circle me-1"}),"Powered by AI Agent"]}),I>0&&t.jsxs("small",{style:{fontSize:"11px",fontWeight:"600",color:"#3979BE"},children:[o.length," alerts • ",i.length," warnings"]})]})})]})]})]}):null},Is=()=>{const{theme:e,toggleTheme:r}=qe(),s=e==="dark",[o,n]=a.useState(!1),i=a.useCallback(()=>{n(!0),r(),setTimeout(()=>n(!1),150)},[r]),c=s?"Switch to Light Mode":"Switch to Dark Mode";return t.jsx(Ar,{text:c,placement:"bottom",children:t.jsxs("button",{type:"button",onClick:i,"aria-label":c,style:{display:"flex",alignItems:"center",background:s?"#2a2d3a":"#f0f1f5",borderRadius:20,padding:4,gap:2,border:"none",cursor:"pointer",flexShrink:0,transform:o?"scale(0.92)":"scale(1)",transition:"transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease",outline:"none"},children:[t.jsx("span",{style:{width:30,height:30,borderRadius:16,display:"flex",alignItems:"center",justifyContent:"center",background:s?"transparent":"#fff",color:s?"#6b7280":"#f59e0b",boxShadow:s?"none":"0 1px 4px rgba(0,0,0,0.12)",transition:"background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease"},children:t.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"12",cy:"12",r:"4"}),t.jsx("path",{d:"M12 2v2M12 20v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M2 12h2M20 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]})}),t.jsx("span",{style:{width:30,height:30,borderRadius:16,display:"flex",alignItems:"center",justifyContent:"center",background:s?"#3d3f5c":"transparent",color:s?"#818cf8":"#9ca3af",boxShadow:s?"0 1px 4px rgba(0,0,0,0.35)":"none",transition:"background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease"},children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})})]})})},Hu=()=>
63{const[e,r]=a.useState(!1),[s,o]=a.useState([]),[n,i]=a.useState(!1),c=Je(),m=()=>r(p=>!p);if(a.useEffect(()=>{let p=!0;return(async()=>{try{const d=await el();p&&d?.error===!1&&Array.isArray(d.data)&&o(d.data)}catch{}})(),()=>{p=!1}},[]),s.length<=1)return null;const f=s.find(p=>p.is_current)?.tenant_name||"Switch Workspace",y=async p=>{if(!(p.is_current||n)){i(!0);try{const d=await tl({tenant_id:p.tenant_id});if(d?.error===!1&&d?.data?.access_token){const S=d.data;localStorage.setItem("authUser",JSON.stringify(S)),localStorage.setItem("accessToken",S.access_token),localStorage.setItem("refreshToken",S.refresh_token);const h=Xe(S.access_token),l=Array.isArray(h?.user?.permissions)?h.user.permissions:[];c(Ka(S));const E=JSON.parse(localStorage.getItem("user"))||{};localStorage.setItem("user",JSON.stringify({...E,permissions:l})),C.success(`Switched to ${p.tenant_name}`),window.location.reload()}else C.error(d?.message||"Failed to switch workspace"),i(!1)}catch(d){C.error(d?.response?.data?.message||"Error switching workspace"),i(!1)}}};return t.jsxs(ze,{isOpen:e,toggle:m,className:"d-inline-block",children:[t.jsxs(Ve,{tag:"button",className:"btn header-item",disabled:n,style:{background:"var(--card-bg)",border:"1px solid var(--border-color)",borderRadius:"8px",padding:"8px 12px",display:"flex",alignItems:"center",gap:"6px",fontWeight:500,height:"38px"},children:[n?t.jsx(Ta,{size:"sm"}):t.jsx(Dr,{size:20}),t.jsx("span",{style:{fontWeight:"600",fontSize:"14px"},className:"d-none d-xl-inline-block",children:f}),t.jsx(Lt,{size:20})]}),t.jsxs(He,{end:!0,style:{borderRadius:"10px",padding:"6px",boxShadow:"0 8px 20px rgba(0,0,0,0.08)",border:"1px solid #eee",minWidth:"200px"},children:[t.jsx("div",{style:{fontSize:"11px",color:"#6b7280",padding:"6px 10px",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Switch Workspace"}),s.map(p=>t.jsxs(Ct,{onClick:()=>y(p),disabled:n,active:p.is_current,style:{borderRadius:"6px",fontSize:"14px",padding:"8px 10px",display:"flex",alignItems:"center",gap:"8px",fontWeight:500},children:[t.jsx(Dr,{size:16}),t.jsx("span",{style:{flex:1},children:p.tenant_name}),p.role_name?t.jsx("span",{style:{fontSize:"11px",color:"#9ca3af"},children:p.role_name}):null]},p.tenant_id))]})]})},Wu=1e4,ta={excellent:{label:"Excellent",shortLabel:"Optimal",color:"#10b981",bgColorLight:"rgba(16, 185, 129, 0.08)",bgColorDark:"rgba(16, 185, 129, 0.16)",borderColorLight:"rgba(16, 185, 129, 0.25)",borderColorDark:"rgba(16, 185, 129, 0.35)",activeBars:4,score:98,desc:"Ultra-fast connection. Response times under 100ms."},good:{label:"Good",shortLabel:"Good",color:"#3b82f6",bgColorLight:"rgba(59, 130, 246, 0.08)",bgColorDark:"rgba(59, 130, 246, 0.16)",borderColorLight:"rgba(59, 130, 246, 0.25)",borderColorDark:"rgba(59, 130, 246, 0.35)",activeBars:3,score:80,desc:"Stable connection with healthy latency (100–250ms)."},fair:{label:"Fair",shortLabel:"Fair",color:"#f59e0b",bgColorLight:"rgba(245, 158, 11, 0.08)",bgColorDark:"rgba(245, 158, 11, 0.16)",borderColorLight:"rgba(245, 158, 11, 0.25)",borderColorDark:"rgba(245, 158, 11, 0.35)",activeBars:2,score:55,desc:"Moderate delay detected (250–500ms)."},weak:{label:"Weak",shortLabel:"Weak",color:"#f97316",bgColorLight:"rgba(249, 115, 22, 0.08)",bgColorDark:"rgba(249, 115, 22, 0.16)",borderColorLight:"rgba(249, 115, 22, 0.25)",borderColorDark:"rgba(249, 115, 22, 0.35)",activeBars:1,score:28,desc:"High network delay. Syncing may be slower than usual."},offline:{label:"Offline",shortLabel:"Offline",color:"#ef4444",bgColorLight:"rgba(239, 68, 68, 0.08)",bgColorDark:"rgba(239, 68, 68, 0.16)",borderColorLight:"rgba(239, 68, 68, 0.25)",borderColorDark:"rgba(239, 68, 68, 0.35)",activeBars:0,score:0,desc:"No internet connection detected. Please check network settings."}},Ju=e=>e>=9999?{state:"offline",rtt:null}:e<100?{state:"excellent",rtt:e}:e<250?{state:"good",rtt:e}:e<500?{state:"fair",rtt:e}:{state:"weak",rtt:e},ra=({activeBars:e,color:r})=>t.jsxs("svg",{width:"15",height:"13",viewBox:"0 0 18 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("rect",{x:"0.5",y:"10.5",width:"3",height:"4",rx:"1",fill:e>=1?r:"currentColor",opacity:e>=1?1:.2}),t.jsx("rect",{x:"5",y:"7.5",width:"3",height:"7",rx:"1",fill:e>=2?r:"currentColor",opacity:e>=2?1:.2}),t.jsx("rect",{x:"9.5",y:"4",width:"3",height:"10.5",rx:"1",fill:e>=3?r:"currentColor",opacity:e>=3?1:.2}),t.jsx("rect",{x:"14",y:"0.5",width:"3",height:"14",rx:"1",fill:e>=4?r:"currentColor",opacity:e>=4?1:.2})]}),qu=({spinning:e})=>t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"transform 0.5s ease",animation:e?"netStatusSpin 0.75s linear infinite":"none"},children:[t.jsx("path",{d:"M21.5 2v6h-6M2.5 22v-6h6"}),t.jsx("path",{d:"M2 11.5a10 10 0 0 1 18.8-4.3L21.5 8M2.5 16l1 1A10 10 0 0 0 22 12.5"})]}),Qu=({onStateChange:e,interval:r=Wu})=>
63{const[s,o]=a.useState({state:"excellent",rtt:45}),[n,i]=a.useState(!1),[c,m]=a.useState(!1),[f,y]=a.useState(new Date),p=a.useRef(null);let d=!1;try{d=qe()?.theme==="dark"}catch{d=!1}const S=()=>m(L=>!L),h=a.useCallback(async()=>{if(!navigator.onLine){o({state:"offline",rtt:null}),e?.("offline"),y(new Date);return}i(!0);let L=9999;try{const b=performance.now();await fetch("https://www.google.com/favicon.ico",{method:"HEAD",cache:"no-store",mode:"no-cors",signal:AbortSignal.timeout(4e3)}),L=Math.round(performance.now()-b)}catch{L=9999}const R=Ju(L);o(R),e?.(R.state),y(new Date),i(!1)},[e]);a.useEffect(()=>{h(),p.current=setInterval(h,r);const L=()=>h(),R=()=>{o({state:"offline",rtt:null}),e?.("offline"),y(new Date)};return window.addEventListener("online",L),window.addEventListener("offline",R),()=>{clearInterval(p.current),window.removeEventListener("online",L),window.removeEventListener("offline",R)}},[h,r,e]);const l=ta[s.state]||ta.good,E=s.rtt?`${s.rtt} ms`:"Offline",I=()=>{if(!f)return"";const L=Math.floor((new Date-f)/1e3);return L<5?"Just now":L<60?`${L}s ago`:`${Math.floor(L/60)}m ago`};return t.jsxs(t.Fragment,{children:[t.jsx("style",{children:`
64        @keyframes netStatusPing {
65          0% { transform: scale(0.95); opacity: 0.8; }
66          50% { transform: scale(1.6); opacity: 0; }
67          100% { transform: scale(0.95); opacity: 0; }
68        }
69        @keyframes netStatusSpin {
70          to { transform: rotate(360deg); }
71        }
72        .net-status-pill {
73          display: inline-flex;
74          align-items: center;
75          gap: 6px;
76          height: 32px;
77          padding: 0 10px 0 9px;
78          border-radius: 20px;
79          font-size: 12px;
80          font-weight: 600;
81          line-height: 1;
82          user-select: none;
83          cursor: pointer;
84          transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
85          border: 1px solid transparent;
86        }
87        .net-status-pill:hover {
88          transform: translateY(-1px);
89          box-shadow: 0 3px 10px rgba(0,0,0,0.06);
90        }
91        .net-status-pill:active {
92          transform: translateY(0);
93        }
94      `}),t.jsxs(ze,{isOpen:c,toggle:S,className:"d-inline-block",children:[t.jsxs(Ve,{tag:"div",className:"net-status-pill",style:{backgroundColor:d?l.bgColorDark:l.bgColorLight,borderColor:d?l.borderColorDark:l.borderColorLight,color:d?"#e2e8f0":"#334155"},children:[t.jsx("div",{className:"d-flex align-items-center",style:{gap:6},children:t.jsx("div",{style:{color:d?"rgba(255,255,255,0.7)":"#64748b",display:"flex"},children:t.jsx(ra,{activeBars:l.activeBars,color:l.color})})}),t.jsxs("span",{className:"d-flex align-items-center",style:{fontSize:11,fontWeight:600,letterSpacing:"-0.1px",fontVariantNumeric:"tabular-nums",gap:5},children:[t.jsx("span",{style:{color:l.color,fontWeight:700},children:l.shortLabel}),s.rtt?t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{position:"relative",width:6,height:6,display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,margin:"0 1px"},children:[s.state!=="offline"&&!n&&t.jsx("span",{style:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:l.color,animation:"netStatusPing 2s cubic-bezier(0, 0, 0.2, 1) infinite"}}),t.jsx("span",{style:{width:5,height:5,borderRadius:"50%",backgroundColor:l.color,transition:"background-color 0.3s ease",flexShrink:0}})]}),t.jsx("span",{style:{opacity:.85,fontSize:11,color:d?"#cbd5e1":"#475569"},children:E})]}):null]})]}),t.jsxs(He,{className:"dropdown-menu-end p-0",style:{width:290,borderRadius:14,border:d?"1px solid #334155":"1px solid #e2e8f0",backgroundColor:d?"#1e293b":"#ffffff",boxShadow:d?"0 12px 30px rgba(0, 0, 0, 0.45)":"0 12px 30px rgba(15, 23, 42, 0.12)",overflow:"hidden"},children:[t.jsx("div",{style:{padding:"14px 16px 12px",borderBottom:d?"1p
94x solid #334155":"1px solid #f1f5f9",background:d?"linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%)":"linear-gradient(180deg, #f8fafc 0%, #ffffff 100%)"},children:t.jsxs("div",{className:"d-flex align-items-center justify-content-between",children:[t.jsxs("div",{className:"d-flex align-items-center gap-2",children:[t.jsx("div",{style:{width:28,height:28,borderRadius:8,backgroundColor:l.bgColorLight,display:"flex",alignItems:"center",justifyContent:"center",color:l.color},children:t.jsx(ra,{activeBars:l.activeBars,color:l.color})}),t.jsxs("div",{children:[t.jsx("h6",{className:"mb-0",style:{fontSize:13,fontWeight:700,color:d?"#f8fafc":"#0f172a",lineHeight:"1.2"},children:"Network Health"}),t.jsx("span",{style:{fontSize:10,color:d?"#94a3b8":"#64748b"},children:"Real-time Latency Check"})]})]}),t.jsx("span",{style:{fontSize:10,fontWeight:700,padding:"3px 8px",borderRadius:12,backgroundColor:l.bgColorLight,color:l.color,border:`1px solid ${l.borderColorLight}`,textTransform:"capitalize"},children:l.label})]})}),t.jsxs("div",{style:{padding:"14px 16px"},children:[t.jsxs("div",{className:"d-flex align-items-baseline justify-content-between mb-2",children:[t.jsxs("div",{children:[t.jsx("span",{style:{fontSize:22,fontWeight:800,color:d?"#f8fafc":"#0f172a",fontVariantNumeric:"tabular-nums",lineHeight:1},children:E}),t.jsx("span",{style:{fontSize:11,marginLeft:6,fontWeight:500,color:d?"#94a3b8":"#64748b"},children:"RTT Latency"})]}),t.jsxs("span",{style:{fontSize:11,fontWeight:600,color:l.color},children:[l.score,"% Quality"]})]}),t.jsx("div",{style:{width:"100%",height:6,backgroundColor:d?"#334155":"#e2e8f0",borderRadius:4,overflow:"hidden",marginBottom:12},children:t.jsx("div",{style:{width:`${l.score}%`,height:"100%",backgroundColor:l.color,borderRadius:4,transition:"width 0.4s ease, background-color 0.4s ease"}})}),t.jsx("div",{style:{padding:"8px 10px",borderRadius:8,backgroundColor:d?"rgba(255,255,255,0.04)":"#f8fafc",border:d?"1px solid #334155":"1px solid #f1f5f9",fontSize:11,color:d?"#cbd5e1":"#475569",lineHeight:1.4,marginBottom:12},children:l.desc}),t.jsxs("div",{className:"d-flex flex-column gap-2",style:{fontSize:11},children:[t.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[t.jsx("span",{style:{color:d?"#94a3b8":"#64748b"},children:"Connection Status"}),t.jsx("span",{style:{fontWeight:600,color:s.state==="offline"?"#ef4444":"#10b981"},children:s.state==="offline"?"Disconnected":"Connected"})]}),t.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[t.jsx("span",{style:{color:d?"#94a3b8":"#64748b"},children:"Signal Quality"}),t.jsxs("span",{style:{fontWeight:600,color:d?"#e2e8f0":"#334155"},children:[l.activeBars," / 4 Bars"]})]}),t.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[t.jsx("span",{style:{color:d?"#94a3b8":"#64748b"},children:"Last Checked"}),t.jsx("span",{style:{fontWeight:500,color:d?"#cbd5e1":"#475569"},children:I()})]})]})]}),t.jsxs("div",{style:{padding:"10px 16px",backgroundColor:d?"#0f172a":"#f8fafc",borderTop:d?"1px solid #334155":"1px solid #f1f5f9",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsxs("span",{style:{fontSize:10,color:d?"#64748b":"#94a3b8"},children:["Auto checks every ",r/1e3,"s"]}),t.jsxs("button",{type:"button",onClick:L=>{L.stopPropagation(),h()},disabled:n,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"4px 10px",borderRadius:6,border:"none",backgroundColor:d?l.bgColorDark:l.bgColorLight,color:l.color,fontSize:11,fontWeight:600,cursor:n?"default":"pointer",transition:"all 0.15s ease"},children:[t.jsx(qu,{spinning:n}),t.jsx("span",{children:n?"Testing...":"Re-test Speed"})]})]})]})]})]})},Yu="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11045_26082)'%3e%3cpath%20d='M4.16651%206.66634V9.16634L0.833172%209.16634V10.833L4.16651%2010.833V13.333L7.49984%209.99967L4.16651%206.66634ZM15.8332%2013.333L15.8332%2010.833H19.1665V9.16634H15.8332V6.66634L12.4998%209.99967L15.8332%2013.333ZM10.8332%203.33301H9.1665L9.1665%2016.6663H10.8332L10.8332%203.33301Z'%20fill='%236B7280'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_11045_26082'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='matrix(0%201%20-1%200%2020%200)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ku=()=>{const e=je(),s=(()=>
94{const o=e.pathname.split("/").filter(Boolean),n=[{name:t.jsx(_o,{size:18,stroke:1.5}),path:"/dashboard"}];let i="";return o.forEach((c,m)=>{if(!/^\d+$/.test(c))if(i+=`/${c}`,c==="view")n.push({name:"View",path:null});else if(c==="add")n.push({name:"Add",path:null});else if(c==="update")n.push({name:"Update",path:null});else{const f=c.split("-").map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join(" "),y=m===o.filter(S=>!/^\d+$/.test(S)).length-1,p=o.slice(m+1).filter(S=>!/^\d+$/.test(S)),d=p.length>0&&["view","add","update"].includes(p[0]);n.push({name:d?`${f} List`:f,path:y?null:i})}}),n})();return t.jsxs(t.Fragment,{children:[t.jsx("style",{children:`
95          .crumb-box:hover {
96            background: #F5F5F1;
97          }
98          .breadcrumb-link {
99            text-decoration: none;
100          }
101          .breadcrumb-link:hover {
102            text-decoration: underline !important;
103            color: #01A99B !important;
104          }
105        `}),t.jsx("div",{className:"d-none d-lg-block ms-2",children:t.jsx("h5",{className:"mb-0 font-size-14 px-3 py-2 rounded-3 crumb-box d-flex align-items-center",children:s.map((o,n)=>t.jsx("span",{className:"d-inline-flex align-items-center",children:n===s.length-1?t.jsx("span",{style:{color:"#01A99B",fontWeight:"600",lineHeight:"20px",letterSpacing:"0.56px"},className:"d-inline-flex align-items-center",children:o.name}):t.jsxs(t.Fragment,{children:[o.path?t.jsx(q,{to:o.path,className:"breadcrumb-link d-inline-flex align-items-center",style:{color:"#6B7280"},children:o.name}):t.jsx("span",{className:"d-inline-flex align-items-center",style:{color:"#6B7280"},children:o.name}),t.jsx("span",{className:"d-inline-flex align-items-center",style:{margin:"0 8px",color:"#6B7280"},children:t.jsx(So,{size:18})})]})},n))})})]})},js=e=>{const r=localStorage.getItem("user");if(r){const s=JSON.parse(r)?.permissions;return Array.isArray(e)?(s||[]).some(o=>e.includes(o.module_key)&&o.read):(s||[]).some(o=>o.module_key===e&&o.read)}else return!1},Zu=new Set(["create","update","delete"]),Xu=()=>{try{const e=JSON.parse(localStorage.getItem("authUser")||"null"),r=e?.access_token||e?.token;if(r){const o=Xe(r);if(o?.user?.subscription_status)return o.user.subscription_status==="ACTIVE"}const s=JSON.parse(localStorage.getItem("user")||"null");if(s?.subscription_status)return s.subscription_status==="ACTIVE"}catch{}return!0},eg=(e,r)=>{if(Zu.has(r)&&!Xu())return!1;const s=localStorage.getItem("user");return s?(JSON.parse(s)?.permissions||[]).some(n=>n.module_key===e&&n[r]):!1},tg=(e,r)=>js(e)?r:()=>t.jsx(Le,{to:"/pages-404",replace:!0}),rg=(e,r={})=>{const s={str:""};return Object.keys(r).forEach(o=>{s.str=`${s.str}&${o}=${r[o]}`}),s.str=s.str.substring(1),`${e}?${s.str}`},me={validateView:tg,createUrl:rg,checkReadPermission:js,checkPermission:eg},ag=()=>{const[e,r]=a.useState(!1),[s,o]=a.useState(""),[n,i]=a.useState([]),[c,m]=a.useState(0),f=pt(),y=a.useRef(null),p=[{name:"Dashboard",path:"/dashboard",category:"Pages",permission:"Dashboard"},{name:"Transport Request List",path:"/transport-request",category:"Transport Request",permission:"Transport Request"},{name:"Create Transport Request",path:"/transport-request/add",category:"Transport Request",permission:"Transport Request",requireCreate:!0},{name:"Contract List",path:"/contract",category:"Contract",permission:"Contract List"},{name:"Create Contract",path:"/contract/add",category:"Contract",permission:"Contract Master",requireCreate:!0},{name:"Contract Approvals",path:"/contract/approvals",category:"Contract",permission:"Contract List"},{name:"Gate Pass",path:"/gate-pass",category:"Pages",permission:"QR Code Scanner"},{name:"Master Records",path:"/master-records",category:"Master Data",permission:"Master Record"},{name:"Transporters",path:"/master-records?tab=transporters",category:"Master Data",permission:"Transporters Tab"},{name:"Request Types",path:"/master-records?tab=request-types",category:"Master Data",permission:"Request Type Tab"},{name:"Plants",path:"/master-records?tab=plants",category:"Master Data",permission:"Plants Tab"},{name:"Commodities",path:"/master-records?tab=commodities",category:"Master Data",permission:"Commodity Tab"},{name:"Expenses",path:"/master-records?tab=expenses",category:"Master Data",permission:"Expenses Tab"},{name:"Truck Types",path:"/master-records?tab=truck-types",category:"Master Data",permission:"Truck Type Tab"},{name:"Contract Types",path:"/master-records?tab=contract-types",category:"Master Data",permission:"Contract Type Tab Master"},{name:"Distributors",path:"/master-records?tab=distributor",category:"Master Data",permission:"Distributor Tab Master"},{name:"Retailers",path:"/master-records?tab=retailer",category:"Master Data",permission:"Retailer Tab Master"},{name:"Users",path:"/users",category:"User Management",permission:"Users"},{name:"User Roles",path:"/user-roles",category:"User Management",permission:"Role & Permission"},{name:"Assign Role",path:"/user-roles/assign",category:"User Management",permission:"Role & Permission",requireCreate:!0},{name:"Inquiry Settings",path:"/settings",category:"Configuration",permission:"Configuration"},{name:"SAP Configuration",path:"/config",category:"Configuration",permission:"SAP Configuration"},{name:"Contract Configuration",path:"/contract-config",category:"Configuration",permission:"Contract Configuration"},{name:"Inquiry Field Setting",path:"/inquiry-field-setting",category:"Configuration",permission:"Inquiry Field"},{name:"Profile",path:"/profile",category:"Account",permission:null}],d=a.useMemo(()=>p.filter(l=>{if(!l.permission)return!0;const E=me.checkReadPermission(l.permission);return l.requireCreate?E&&me.checkPermission(l.permission,"create"):E}),[]);a.useEffect(()=>{const l=E=>{(E.ctrlKey||E.metaKey)&&E.key==="k"&&(E.preventDefault(),r(!0)),E.key==="Escape"&&r(!1)};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[]),a.useEffect(()=>{e&&y.current&&y.current.focus()},[e]),a.useEffect(()=>{if(s){const l=d.filter(E=>E.name.toLowerCase().includes(s.toLowerCase()));i(l),m(0)}else i(d.slice(0,8))},[s]);const S=l=>{l.key==="ArrowDown"?(l.preventDefault(),m(E=>(E+1)%n.length)):l.key==="ArrowUp"?(l.preventDefault(),m(E=>(E-1+n.length)%n.length)):l.key==="Enter"&&n[c]&&h(n[c].path)},h=l=>{f(l),r(!1),o("")};return t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:()=>r(!0),className:"d-none d-lg-flex align-items-center",style:{background:D.bodyBg,border:`1px solid ${D.borderColor}`,borderRadius:"8px",padding:"6px 12px",minWidth:"200px",justifyContent:"space-between"},children:[t.jsxs("div",{className:"d-flex align-items-center gap-2",children:[t.jsx(Ir,{size:16,color:D.textSecondary}),t.jsx("span",{style:{color:D.textMuted,fontSize:"14px"},children:"Search"})]}),t.jsx("kbd",{style:{background:D.cardBg,border:`1px solid ${D.borderColor}`,borderRadius:"4px",padding:"2px 6px",fontSize:"12px",color:D.textSecondary},children:"Ctrl K"})]}),e&&t.jsxs(t.Fragment,{children:[t.jsx("div",{onClick:()=>r(!1),style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.5)",zIndex:9998}}),t.jsxs("div",{style:{position:"fixed",top:"20%",left:"50%",transform:"translateX(-50%)",width:"90%",maxWidth:"600px",background:D.cardBg,borderRadius:"12px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",zIndex:9999,overflow:"hidden"},children:[t.jsx("div",{style:{padding:"16px",borderBottom:`1px solid ${D.borderColor}`}
105,children:t.jsxs("div",{className:"d-flex align-items-center gap-2",children:[t.jsx(Ir,{size:20,color:D.textSecondary}),t.jsx("input",{ref:y,type:"text",value:s,onChange:l=>o(l.target.value),onKeyDown:S,placeholder:"Search pages and actions... (Ctrl + K)",style:{border:"none",outline:"none",width:"100%",fontSize:"16px",color:D.textPrimary,background:"transparent"}})]})}),t.jsx("div",{style:{maxHeight:"400px",overflowY:"auto"},children:n.length>0?t.jsx(t.Fragment,{children:Object.entries(n.reduce((l,E)=>(l[E.category]||(l[E.category]=[]),l[E.category].push(E),l),{})).map(([l,E])=>t.jsxs("div",{children:[t.jsx("div",{style:{padding:"8px 16px",fontSize:"12px",fontWeight:"600",color:D.textSecondary,background:D.footerBg},children:l}),E.map((I,L)=>{const R=n.indexOf(I);return t.jsx("div",{onClick:()=>h(I.path),style:{padding:"12px 16px",cursor:"pointer",background:R===c?D.footerBg:"transparent",borderLeft:R===c?`3px solid ${D.primary}`:"3px solid transparent"},children:t.jsx("div",{style:{fontSize:"14px",color:D.textPrimary},children:I.name})},I.path)})]},l))}):t.jsx("div",{style:{padding:"32px",textAlign:"center",color:D.textSecondary},children:"No results found"})}),t.jsxs("div",{style:{padding:"12px 16px",borderTop:`1px solid ${D.borderColor}`,background:D.footerBg,fontSize:"12px",color:D.textSecondary,display:"flex",gap:"16px"},children:[t.jsx("span",{children:"↑↓ Navigate"}),t.jsx("span",{children:"↵ Select"}),t.jsx("span",{children:"ESC Close"})]})]})]})]})},ws="/assets/favicon-DY6z7Xqs.png",sg={6:"Ashapura Industries",7:"Sunder Industries",8:"HURL",10:"Yash HV"},og=e=>({width:38,height:38,borderRadius:12,border:"none",background:"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:e?"#a0aec0":"#5a5a72",flexShrink:0,transition:"background 0.18s, transform 0.15s",position:"relative",padding:0}),ng={strong:void 0,average:"#fffbeb",weak:"#fff1f2",offline:"#f3f4f6"},aa=({isDark:e})=>t.jsx("div",{style:{width:1,height:24,background:e?"#3a3f4b":"#ebebeb",margin:"0 4px",flexShrink:0}}),ig=()=>{const{theme:e}=qe(),r=e==="dark",[s,o]=a.useState(!1),[n,i]=a.useState(!1),c=()=>{document.fullscreenElement?document.exitFullscreen?.():document.documentElement.requestFullscreen?.()};return a.useEffect(()=>{const m=()=>o(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",m),()=>document.removeEventListener("fullscreenchange",m)},[]),t.jsx(Ar,{text:s?"Exit fullscreen":"Enter fullscreen",placement:"bottom",children:t.jsx("button",{type:"button",onClick:c,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{...og(r),background:s?r?"#2d2f5e":"#eef2ff":n?r?"#2a2d3a":"#f4f4f8":"transparent",color:s?"#6366f1":r?"#a0aec0":"#5a5a72",transform:n?"translateY(-1px)":"none"},children:s?t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 0 2 2v3M16 21v-3a2 2 0 0 1 2-2h3"})}):t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M16 21h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})})})})},Rs=({clientLogo:e,clientName:r,isDark:s})=>{const[o,n]=a.useState(!1);a.useEffect(()=>{n(!1)},[e]);const i=!!(e&&e!=="null"&&e!=="undefined"&&!o);return t.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"17px 12px",gap:8,width:256,boxSizing:"border-box",flexShrink:0},children:[t.jsxs("div",{style:{display:"flex",flex:"1 0 0",gap:6,alignItems:"center",minWidth:0},children:[i&&t.jsx("div",{style:{flexShrink:0,height:30,overflow:"hidden",borderRadius:4},children:t.jsx("img",{src:e,alt:"Client Logo",onError:()=>n(!0),style:{width:"100%",height:"100%",objectFit:"contain"}})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:3,flex:"1 0 0",minWidth:0},children:[t.jsx("p",{style:{margin:0,fontWeight:400,fontSize:10,
105color:"#6b7280",letterSpacing:"1px",textTransform:"uppercase",lineHeight:"normal"},children:"WORKSPACE"}),t.jsx("p",{style:{margin:0,fontWeight:600,fontSize:14,color:s?"#e2e8f0":"#383c43",letterSpacing:"0.56px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r})]})]}),t.jsx("div",{style:{width:1,height:28,backgroundColor:s?"#3a3f4b":"#e4e5e8",flexShrink:0}})]})};Rs.propTypes={clientLogo:P.string,clientName:P.string,isDark:P.bool};const ks=e=>{const{theme:r}=qe(),s=r==="dark",o=(()=>{try{return JSON.parse(localStorage.getItem("user")||"{}")}catch{return{}}})(),n=o?.tenant,i=o?.logo||o?.tenant_logo||o?.tenantLogo||o?.logo_url,c=i&&i!=="null"&&i!=="undefined"?i:null,m=o?.tenant_name||o?.tenantName||sg[n]||"Workspace",[f,y]=a.useState(!0),[p,d]=a.useState("strong");a.useEffect(()=>{const h=document.body;window.innerWidth<=998?y(h.classList.contains("sidebar-enable")):y(!h.classList.contains("vertical-collpsed"))},[]);function S(h){h.stopPropagation();const l=document.body;window.screen.width<=998?(l.classList.toggle("sidebar-enable"),l.classList.remove("vertical-collpsed")):(l.classList.toggle("vertical-collpsed"),l.classList.toggle("sidebar-enable")),y(E=>!E)}return t.jsx(X.Fragment,{children:t.jsx("header",{id:"page-topbar",style:{backgroundColor:ng[p],transition:"background-color 0.6s ease"},children:t.jsxs("div",{className:"navbar-header",children:[t.jsxs("div",{className:"d-flex align-items-center",children:[t.jsx("button",{type:"button",onClick:S,style:{width:60,color:s?"#a0aec0":void 0},className:"btn btn-sm font-size-16 header-item",id:"vertical-menu-btn",children:f?t.jsx("img",{src:Yu,alt:"toggle",width:"24",height:"24"}):t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",viewBox:"0 0 12 16",fill:"none",children:t.jsx("path",{d:"M2 16H0V0H2V16ZM12 8L8 12V9H4V7H8V4L12 8Z",fill:s?"#a0aec0":"#6B7280"})})}),t.jsx(Rs,{clientLogo:c,clientName:m,isDark:s}),t.jsx("div",{className:"d-flex justify-content-between align-items-center",children:t.jsx(Ku,{})}),t.jsx("div",{className:"d-flex align-items-center ms-3",children:t.jsx(Hu,{})})]}),t.jsxs("div",{className:"d-flex align-items-center",style:{gap:4},children:[t.jsx("div",{className:"d-flex justify-content-between align-items-center me-2",children:t.jsx(ag,{})}),t.jsx(aa,{isDark:s}),t.jsx(Qu,{onStateChange:d,interval:1e4}),t.jsx(aa,{isDark:s}),t.jsx(ig,{}),t.jsxs("div",{className:"d-flex align-items-center gap-2",children:[t.jsx(Vu,{pollingInterval:36e5}),t.jsx(Is,{})]}),t.jsx(Ds,{})]})]})})})};ks.propTypes={changeSidebarType:P.func,leftMenu:P.any,leftSideBarType:P.any,showRightSidebar:P.any,showRightSidebarAction:P.func,t:P.any,toggleLeftmenu:P.func};const cg=e=>{const{layoutType:r,showRightSidebar:s,leftMenu:o,leftSideBarType:n}=e.Layout;return{layoutType:r,showRightSidebar:s,leftMenu:o,leftSideBarType:n}},lg=et(cg,{showRightSidebarAction:ht,toggleLeftmenu:Va,changeSidebarType:ve})(Ze()(ks)),nt={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ue={FLUID:"fluid",BOXED:"boxed",SCROLLABLE:"scrollable"},it={DARK:"dark",LIGHT:"light"},Ge={LIGHT:"light",DARK:"dark",COLORED:"colored"},ye={NONE:"none",IMG1:"img1",IMG2:"img2",IMG3:"img3",IMG4:"img4"},$e={DEFAULT:"default",COMPACT:"compact",ICON:"icon"},re={LIGHT:"light",COLORED:"colored",DARK:"dark",WINTER:"winter",LADYLIP:"ladylip",PLUMPLATE:"plumplate",STRONGBLISS:"strongbliss",GREATWHALE:"greatwhale"},dg=()=>{try{const e=localStorage.getItem("theme");if(e)return e}catch{}return it.LIGHT},pg={layoutType:nt.VERTICAL,layoutModeType:dg(),layoutWidth:Ue.FLUID,leftSideBarTheme:re.LIGHT,leftSideBarThemeImage:ye.NONE,leftSideBarType:$e.DEFAULT,topbarTheme:Ge.LIGHT,isPreloader:!0,showRightSidebar:!1,isMobile:!1,showSidebar:!0,leftMenu:!1},ug=(e=pg,r)=>{switch(r.type){case dr:return{...e,layoutType:r.payload};case Ga:return{...e,isPreloader:r.payload};case br:return{...e,layoutModeType:r.payload};case pr:return{...e,layoutWidth:r.payload};case ur:return{...e,leftSideBarTheme:r.payload};case gr:return{...e,leftSideBarThemeImage:r.payload};case mr:return{...e,leftSideBarType:r.payload.sidebarType};case hr:return{...e,topbarTheme:r.payload};case fr:return{...e,showRightSidebar:r.payload};case Op:return{...e,showSidebar:r.payload};case Ua:return{...e,leftMenu:r.payload};default:return e}},gg=()=>JSON.parse(localStorage.getItem("user"))||null,mg=()=>JSON.parse(localStorage.getItem("authUser"))||null,hg={error:"",loading:!1,userData:gg(),userAuthData:mg()},fg=(e=hg,r)=>{switch(r.type){case Sr:e={...e,loading:!0};break;case qa:localStorage.setItem("authUser",JSON.stringify(r?.payload));const s=r?.payload?.access_token||r?.payload?.token;let o={};
105try{s&&(o=Xe(s))}catch(c){console.error("Token decode error:",c)}const{permissions:n,...i}=o?.user??{};localStorage.setItem("user",JSON.stringify(i)),e={...e,loading:!1,userData:i,userAuthData:r?.payload};break;case Qa:e={...e,loading:!1};break;case _r:e={...e};break;case Mp:e={...e};break;case Ya:e={...e,error:r.payload,loading:!1};break;default:e={...e};break}return e},bg={registrationError:null,message:null,loading:!1,user:null},yg=(e=bg,r)=>{switch(r.type){case Ha:e={...e,loading:!0,registrationError:null};break;case Wa:e={...e,loading:!1,user:r.payload,registrationError:null};break;case Ja:e={...e,user:null,loading:!1,registrationError:r.payload};break;default:e={...e};break}return e},xg={forgetSuccessMsg:null,forgetError:null},Eg=(e=xg,r)=>{switch(r.type){case Za:e={...e,forgetSuccessMsg:null,forgetError:null};break;case Xa:e={...e,forgetSuccessMsg:r.payload};break;case es:e={...e,forgetError:r.payload};break;default:e={...e};break}return e},Sg={error:"",success:""},_g=(e=Sg,r)=>{switch(r.type){case ts:e={...e};break;case rs:e={...e,success:r.payload};break;case as:e={...e,error:r.payload};break;case Hp:e={...e,success:null};break;default:e={...e};break}return e},Tg={Notifications:[],NotificationDetail:{},error:{},loading:!0,notificationId:null},Ag=(e=Tg,r)=>{switch(r.type){case ss:return{...e,Notifications:r.payload,loading:!0};case os:return{...e,error:r.payload};case Tr:return{...e,Notifications:r.payload};case ns:return{...e,notificationId:r.payload};default:return e}},vg=()=>JSON.parse(sessionStorage.getItem("self_reg_formData"))||{name:"",email:"",phone:"",organization_name:"",truck_type:"",truck_capacity:"",route_type:"Specific",route:[{source:{state:"",state_id:"",city:"",citiesData:[]},destinations:[{state:"",state_id:"",city:"",citiesData:[]}]}],pan:"",gst:"",account_holder_name:"",account_number:"",bank_name:"",ifsc_code:"",address:"",password:"",confirmPassword:""},Lg=()=>JSON.parse(sessionStorage.getItem("validationErrors"))||{},Cg={isFormDataLoading:!1,statesData:[],formData:vg(),validationErrors:Lg()},Dg=(e=Cg,r)=>{switch(r.type){case Kp:const s={...e.formData,[r.payload.name]:r.payload.value};return sessionStorage.setItem("self_reg_formData",JSON.stringify(s)),{...e,formData:s};case Zp:const o={...e.formData,route:[...e.formData.route,r.payload.value]};return sessionStorage.setItem("self_reg_formData",JSON.stringify(o)),{...e,formData:o};case Xp:const n={...e.formData,route:e.formData.route.filter((R,b)=>b!==r.payload.value)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(n)),{...e,formData:n};case eu:return{...e,statesData:r.payload.data};case tu:const{state_id:i,index:c,type:m,field:f,value:y,state_name:p,destinationIndex:d,citiesData:S}=r.payload?.data;if(f==="state"){const R={...e.formData,[r.payload.name]:(e.formData?.route||[]).map((b,v)=>v===c?m==="source"?{...b,source:{...b.source,[f]:p,state_id:i,citiesData:S||[]}}:{...b,destinations:b.destinations.map((_,k)=>k===d?{..._,[f]:p,state_id:i,citiesData:S||[]}:_)}:b)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(R)),{...e,formData:R}}else{const R={...e.formData,[r.payload.name]:(e.formData?.route||[]).map((b,v)=>v===c?m==="source"?{...b,source:{...b.source,[f]:y}}:{...b,destinations:b.destinations.map((_,k)=>k===d?{..._,[f]:y}:_)}:b)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(R)),{...e,formData:R}}case ru:const h={...e.formData,route:(e.formData?.route||[]).map((R,b)=>b===r.payload?{...R,destinations:[...R.destinations,{state:"",state_id:"",city:"",citiesData:[]}]}:R)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(h)),{...e,formData:h};case au:const{routeIndex:l,destinationIndex:E}=r.payload,I={...e.formData,route:(e.formData?.route||[]).map((R,b)=>b===l?{...R,destinations:R.destinations.filter((v,_)=>_!==E)}:R)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(I)),{...e,formData:I};case su:return sessionStorage.setItem("validationErrors",JSON.stringify(r.payload)),{...e,validationErrors:r.payload};case ou:const L={...e.validationErrors};return r.payload.value?.trim()&&delete L[r.payload.name],sessionStorage.setItem("validationErrors",JSON.stringify(L)),{...e,validationErrors:L};
105case nu:return{...e,statesData:[],formData:{name:"",email:"",phone:"",organization_name:"",truck_type:"",truck_capacity:"",route_type:"Specific",route:[{source:{state:"",state_id:"",city:"",citiesData:[]},destinations:[{state:"",state_id:"",city:"",citiesData:[]}]}],pan:"",gst:"",account_holder_name:"",account_number:"",bank_name:"",ifsc_code:"",address:"",password:"",confirmPassword:""},validationErrors:{}};default:return e}},Ig=()=>JSON.parse(sessionStorage.getItem("reg_with_token_formData"))||{name:"",email:"",phone:"",organization_name:"",truck_type:"",truck_capacity:"",route_type:"Specific",route:[{source:{state:"",state_id:"",city:"",citiesData:[]},destinations:[{state:"",state_id:"",city:"",citiesData:[]}]}],pan:"",gst:"",account_holder_name:"",account_number:"",bank_name:"",ifsc_code:"",address:"",password:"",confirmPassword:""},jg=()=>JSON.parse(sessionStorage.getItem("validationErrors"))||{},wg={isFormDataLoading:!1,statesData:[],formData:Ig(),validationErrors:jg()},Rg=(e=wg,r)=>{switch(r.type){case iu:const s={...e.formData,[r.payload.name]:r.payload.value};return sessionStorage.setItem("reg_with_token_formData",JSON.stringify(s)),{...e,formData:s};case du:const o={...e.formData,route:[...e.formData.route,r.payload.value]};return sessionStorage.setItem("self_reg_formData",JSON.stringify(o)),{...e,formData:o};case pu:const n={...e.formData,route:e.formData.route.filter((b,v)=>v!==r.payload.value)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(n)),{...e,formData:n};case uu:return{...e,statesData:r.payload.data};case gu:const{state_id:i,index:c,type:m,field:f,value:y,state_name:p,destinationIndex:d,citiesData:S}=r.payload?.data;if(f==="state"){const b={...e.formData,[r.payload.name]:(e.formData?.route||[]).map((v,_)=>_===c?m==="source"?{...v,source:{...v.source,[f]:p,state_id:i,citiesData:S||[]}}:{...v,destinations:v.destinations.map((k,$)=>$===d?{...k,[f]:p,state_id:i,citiesData:S||[]}:k)}:v)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(b)),{...e,formData:b}}else{const b={...e.formData,[r.payload.name]:(e.formData?.route||[]).map((v,_)=>_===c?m==="source"?{...v,source:{...v.source,[f]:y}}:{...v,destinations:v.destinations.map((k,$)=>$===d?{...k,[f]:y}:k)}:v)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(b)),{...e,formData:b}}case mu:const h={...e.formData,route:(e.formData?.route||[]).map((b,v)=>v===r.payload?{...b,destinations:[...b.destinations,{state:"",state_id:"",city:"",citiesData:[]}]}:b)};return sessionStorage.setItem("self_reg_formData",JSON.stringify(h)),{...e,formData:h};case hu:const{routeIndex:l,destinationIndex:E}=r.payload,I={...e.formData,route:(e.formData?.route||[]).map((b,v)=>v===l?{...b,destinations:b.destinations.filter((_,k)=>k!==E)}:b)};return sessionStorage.setItem("reg_with_token_formData",JSON.stringify(I)),{...e,formData:I};case cu:const L={...r.payload,token:e.tokenError};return sessionStorage.setItem("validationErrors",JSON.stringify(L)),{...e,validationErrors:L};case lu:const R={...e.validationErrors};return r.payload.value?.trim()&&delete R[r.payload.name],sessionStorage.setItem("validationErrors",JSON.stringify(R)),{...e,validationErrors:R};case fu:return{...e,statesData:[],formData:{name:"",email:"",phone:"",organization_name:"",truck_type:"",truck_capacity:"",route_type:"Specific",route:[{source:{state:"",state_id:"",city:"",citiesData:[]},destinations:[{state:"",state_id:"",city:"",citiesData:[]}]}],pan:"",gst:"",account_holder_name:"",account_number:"",bank_name:"",ifsc_code:"",address:"",password:"",confirmPassword:""},validationErrors:{}};default:return e}},kg={projects:[],projectDetail:{},error:{},loading:!0},Pg=(e=kg,r)=>{switch(r.type){case is:return{...e,projects:r.payload,loading:!0};case cs:return{...e,error:r.payload};case ls:return{...e,projectDetail:r.payload};case ps:return{...e,projects:e.projects.map(s=>s.id.toString()===r.payload.id.toString()?{project:s,...r.payload}:s)};case us:return{...e,error:r.payload};case gs:return{...e,projects:e.projects.filter(s=>s.id.toString()!==r.payload.toString())};case ms:return{...e,error:r.payload};case ds:return{...e,error:r.payload};default:return e}},Og={chartsData:[],inquiryStatus:null},Bg=(e=Og,r)=>{switch(r.type){case hs:switch(r.payload.actionType){case lt:return{...e,chartsData:r.payload.data};default:return e}case Iu:return{...e,inquiryStatus:r.payload.status};case fs:switch(r.payload.actionType){case lt:return{...e,chartsDataError:r.payload.error};default:return e}default:return e}},sa={dropdowns:{plants:[],routes:[],transporters:[],products:[],truckTypes:[],inquiryTypes:[],users:[],lastFetched:null,status:"idle"}
105,counts:{data:null,lastFetched:null,lastParams:null,status:"idle"}},Ng=(e=sa,r)=>{switch(r.type){case Es:return{...e,dropdowns:{...e.dropdowns,...r.payload,lastFetched:new Date().toISOString(),status:"success"}};case _s:return{...e,dropdowns:{...e.dropdowns,status:r.payload}};case Ss:return{...e,counts:{data:r.payload.data,lastFetched:new Date().toISOString(),lastParams:r.payload.paramsKey,status:"success"}};case Ts:return{...e,counts:{...e.counts,status:r.payload}};case As:return{...sa};default:return e}},Fg={walletbalanceData:[]},Mg=(e=Fg,r)=>{switch(r.type){case bs:switch(r.payload.actionType){case dt:return{...e,walletbalanceData:r.payload.data};default:return e}case ys:switch(r.payload.actionType){case dt:return{...e,error:r.payload.error};default:return e}default:return e}},Ps="SET_SELECTED_TENANT",Ug={selectedTenant:""},Gg=(e=Ug,r)=>{switch(r.type){case Ps:return{...e,selectedTenant:r.payload};default:return e}},$g=To({Layout:ug,Login:fg,Account:yg,ForgetPassword:Eg,Profile:_g,notifications:Ag,selfRegistration:Dg,registrationWithToken:Rg,projects:Pg,Dashboard:Bg,DashboardCrypto:Mg,dashboardCache:Ng,superAdmin:Gg});let zg=null;const vr=()=>zg;const Vg=e=>N(Yn,e);const Hg=(e,r)=>rr.post(e,r).then(s=>{if(s.status>=200||s.status<=299)return s.data;throw s.data}).catch(s=>{var o;if(s.response&&s.response.status)switch(s.response.status){case 404:o="Sorry! the page you are looking for could not be found";break;case 500:o="Sorry! something went wrong, please contact our support team";break;case 401:o="Invalid credentials";break;default:o=s[1];break}throw o}),Wg=e=>N(qn,e),Jg=()=>B(ki),qg=e=>N(Qn,e),Qg=()=>B(Kn),Yg=e=>B(`${Zn}/${e}`,{params:{id:e}}),Kg=()=>B(ii),Zg=e=>N(ci,e),Xg=e=>ue(li,e),em=e=>ie(di,{headers:{event:e}}),tm=()=>B(pi),rm=e=>B(`${tc}/${e}`,{param:e}),am=()=>B(ui),sm=()=>B(gi),om=()=>B(mi),nm=e=>B(`${hi}/${e}`,{params:{roomId:e}}),Os=e=>N(ti,e),im=(e,r,s)=>N(ri,{selectedmails:e,folderId:r,activeTab:s}),cm=()=>B(yi),lm=e=>N(xi,e),dm=e=>ue(Ei,e),pm=e=>ie(Si,{headers:{order:e}}),um=()=>B(_i),gm=()=>B(Ti),mm=e=>N(Ai,e),hm=e=>ue(vi,e),fm=e=>ie(Li,{headers:{customer:e}}),bm=()=>B(Ci),ym=()=>B(Di),xm=()=>B(Ii),Em=()=>B(ji),Sm=()=>B(wi),_m=e=>B(`${Ri}/${e}`,{params:{id:e}}),Tm=()=>B(Pi),Am=()=>B(Fi),vm=()=>B(Ui),Lm=e=>B(`${Gi}/${e}`,{params:{id:e}}),Cm=()=>B(Vi),Dm=e=>N(Wi,e),Im=e=>ue(Ji,e),jm=e=>ie(Hi,{headers:{kanban:e}}),wm=()=>B(qi),Rm=e=>N(Yi,e),km=e=>ue(Ki,e),Pm=e=>ie(Zi,{headers:{user:e}}),Om=e=>N(Oi,e),Bm=e=>ue(Bi,e),Nm=e=>ie(Ni,{headers:{job:e}}),Fm=e=>ie(Mi,{headers:{data:e}}),Mm=e=>ue($i,e),Um=e=>ie(zi,{headers:{project:e}}),Gm=()=>B(Qi),Bs=e=>N(Xn,{params:e}),$m=e=>ie(ai,{headers:{mail:e}}),zm=e=>ie(si,{headers:{mail:e}}),Vm=e=>ie(oi,{headers:{mail:e}}),Hm=e=>B(`${ni}/${e}`,{params:{id:e}}),Wm=()=>B(ei),Jm=e=>N(fi,e),qm=e=>ie(bi,{headers:{data:e}}),Qm=e=>B(`${rc}/${e}`,{params:{roomId:e}}),Ym=e=>B(`${ac}/${e}`,{params:{roomId:e}}),Km=e=>B(`${Xi}/${e}`,{params:{roomId:e}}),Zm=e=>B(`${ec}/${e}`,{params:{month:e}}),Xm=e=>B(`${sc}/${e}`,{params:{month:e}}),eh=()=>B(oc),th=(e,r)=>N(`${wa}/${r}/${e}`,{params:{commentId:e,productId:r}}),rh=(e,r,s)=>N(`${wa}/${r}/${e}/${s}`,{params:{commentId:e,productId:r,replyId:s}}),ah=(e,r,s)=>N(`${nc}/${r}/${e}`,{params:{commentId:e,productId:r,replyText:s}}),sh=(e,r)=>N(`${ic}/${e}`,{params:{productId:e,commentText:r}}),c5=vr();function*oh({payload:{user:e}}){console.log("using the following url for registration: ");try{console.log("Trying to register user (within try block)");{const r=yield A(Hg,"/post-jwt-register",e);yield u(Np(r))}}catch(r){console.log("There was an error registering: ",r),yield u(Fp(r))}}function*nh(){yield w(Ha,oh)}function*ih(){yield fe([V(nh)])}function*ch({payload:{user:e,history:r}}){try{{const s=yield A(Wg,{email:e.email,password:e.password});if(s?.error===!1){yield u(Ka(s.data));const o=Xe(s.data.access_token),n=o?.user?.roleName,i=!!(o?.user?.is_superadmin??!1);try{const m=yield A(Ba);if(m?.error===!1&&Array.isArray(m.data?.user?.permissions)){const f=JSON.parse(localStorage.getItem("user"))||{};localStorage.setItem("user",JSON.stringify({...f,...m.data.user,logo:m?.data?.logo})),sessionStorage.setItem("permissionsFetched","1")}}catch{}
105r(n==="Transporter"?"/transporter-dashboard":i?"/superadmin/dashboard":"/dashboard");return}else if(s?.error===!0)return C.error(s?.response?.data?.message)}}catch{yield u(Gp())}}function*lh({payload:{history:e}}){try{yield A(N,"/user/logout-app",{})}catch{}window.localStorage.clear(),window.sessionStorage.clear(),e("/login",{replace:!0})}function*dh({payload:{type:e,history:r}}){try{}catch(s){yield u($p(s))}}function*ph(){yield ct(Sr,ch),yield ct(Up,dh),yield ct(_r,lh)}const l5=vr();function*uh({payload:{user:e,history:r}}){try{(yield A(qg,"/jwt-forget-pwd",{email:e.email}))&&(yield u(zp("Reset link are sended to your mailbox, check there first")))}catch(s){yield u(Vp(s))}}function*gh(){yield w(Za,uh)}function*mh(){yield fe([V(gh)])}const d5=vr();function*hh({payload:{user:e}}){try{{const r=yield A(Vg,"/post-jwt-profile",{username:e.username,idx:e.idx});yield u(Wp(r))}}catch(r){yield u(Jp(r))}}function*fh(){yield w(ts,hh)}function*bh(){yield fe([V(fh)])}function he(e,r){return document.body&&document.body.setAttribute(e,r),!0}function ge(e,r="toggle"){switch(r){case"add":document.body&&document.body.classList.add(e);break;case"remove":document.body&&document.body.classList.remove(e);break;default:document.body&&document.body.classList.toggle(e);break}return!0}function*yh({payload:e}){try{e==="horizontal"&&(document.body.removeAttribute("data-sidebar"),document.body.removeAttribute("data-sidebar-image"),document.body.removeAttribute("data-sidebar-size")),yield A(he,"data-layout",e)}catch{}}function*xh({payload:e}){}function*Eh({payload:e}){try{e==="boxed"?(yield u(ve("icon")),yield A(he,"data-layout-size",e),yield A(he,"data-layout-scrollable",!1)):e==="scrollable"?(yield u(ve("default")),yield A(he,"data-layout-scrollable",!0)):(yield u(ve("default")),yield A(he,"data-layout-size",e),yield A(he,"data-layout-scrollable",!1))}catch{}}function*Sh({payload:e}){try{yield A(he,"data-sidebar",e)}catch{}}function*_h({payload:e}){try{yield A(he,"data-sidebar-image",e)}catch{}}function*Th({payload:e}){try{yield A(he,"data-topbar",e)}catch{}}function*Ah({payload:{sidebarType:e,isMobile:r}}){try{switch(e){case"compact":yield A(he,"data-sidebar-size","small"),yield A(ge,"sidebar-enable","remove"),yield A(ge,"vertical-collpsed","remove");break;case"icon":yield A(he,"data-sidebar-size",""),yield A(he,"data-keep-enlarged","true"),yield A(ge,"vertical-collpsed","add");break;case"condensed":yield A(ge,"sidebar-enable","add"),window.screen.width>=992?(yield A(ge,"vertical-collpsed","remove"),yield A(ge,"sidebar-enable","remove"),yield A(ge,"vertical-collpsed","add"),yield A(ge,"sidebar-enable","add")):(yield A(ge,"sidebar-enable","add"),yield A(ge,"vertical-collpsed","add"));break;default:yield A(he,"data-sidebar-size",""),yield A(ge,"sidebar-enable","remove"),r||(yield A(ge,"vertical-collpsed","remove"));break}}catch{}}function*vh(){try{yield A(ge,"right-bar-enabled","add")}catch{}}function*Lh(){yield w(dr,yh)}function*Ch(){yield w(pr,Eh)}function*Dh(){yield w(ur,Sh)}function*Ih(){yield w(gr,_h)}function*jh(){yield w(mr,Ah)}function*wh(){yield w(hr,Th)}function*Rh(){yield w(fr,vh)}function*kh(){yield w(br,xh)}function*Ph(){yield fe([V(kh),V(Lh),V(Ch),V(Dh),V(Ih),V(jh),V(Rh),V(wh)])}const Oh="GET_PRODUCTS",Bh="GET_PRODUCTS_SUCCESS",Nh="GET_PRODUCTS_FAIL",Fh="GET_PRODUCT_DETAIL",Mh="GET_PRODUCT_DETAIL_SUCCESS",Uh="GET_PRODUCT_DETAIL_FAIL",Gh="GET_PRODUCT_COMMENTS",$h="GET_PRODUCT_COMMENTS_SUCCESS",zh="GET_PRODUCT_COMMENTS_FAIL",Vh="ON_LIKE_COMMENT",Hh="ON_LIKE_COMMENT_SUCCESS",Wh="ON_LIKE_COMMENT_FAIL",Jh="ON_LIKE_REPLY",qh="ON_LIKE_REPLY_SUCCESS",Qh="ON_LIKE_REPLY_FAIL",Yh="ON_ADD_REPLY",Kh="ON_ADD_REPLY_SUCCESS",Zh="ON_ADD_REPLY_FAIL",Xh="ON_ADD_COMMENT",ef="ON_ADD_COMMENT_SUCCESS",tf="ON_ADD_COMMENT_FAIL",rf="GET_ORDERS",af="GET_ORDERS_SUCCESS",sf="GET_ORDERS_FAIL",of="ADD_NEW_ORDER",nf="ADD_ORDER_SUCCESS",cf="ADD_ORDER_FAIL",lf="UPDATE_ORDER",df="UPDATE_ORDER_SUCCESS",pf="UPDATE_ORDER_FAIL",uf="DELETE_ORDER",gf="DELETE_ORDER_SUCCESS",mf="DELETE_ORDER_FAIL",hf="GET_CART_DATA",ff="GET_CART_DATA_SUCCESS",bf="GET_CART_DATA_FAIL",yf="GET_CUSTOMERS",xf="GET_CUSTOMERS_SUCCESS",Ef="GET_CUSTOMERS_FAIL",Sf="ADD_NEW_CUSTOMER",_f="ADD_CUSTOMER_SUCCESS",Tf="ADD_CUSTOMER_FAIL",Af="UPDATE_CUSTOMER",vf="UPDATE_CUSTOMER_SUCCESS",Lf="UPDATE_CUSTOMER_FAIL",Cf="DELETE_CUSTOMER",Df="DELETE_CUSTOMER_SUCCESS",If="DELETE_CUSTOMER_FAIL",jf="GET_SHOPS",wf="GET_SHOPS_SUCCESS",Rf="GET_SHOPS_FAIL",kf=e=>({type:Bh,payload:e}),Pf=e=>({type:Nh,payload:e}),Of=e=>({type:Mh,payload:e}),Bf=e=>({type:Uh,payload:e}),Nf=e=>({type:af,payload:e}),Ff=e=>({type:sf,payload:e}),Mf=e=>({type:nf,payload:e}),Uf=e=>({type:cf,payload:e}),Gf=e=>({type:df,payload:e}),$f=e=>({type:pf,payload:e}),zf=e=>({type:gf,payload:e}),Vf=e=>({type:mf,payload:e}),Hf=e=>({type:ff,payload:e}),Wf=e=>({type:bf,payload:e}),Jf=e=>({type:xf,payload:e}),qf=e=>({type:Ef,payload:e}),Qf=e=>({type:_f,payload:e}),Yf=e=>({type:Tf,payload:e}),Kf=e=>({type:vf,payload:e}),Zf=e=>({type:Lf,payload:e}),Xf=e=>({type:Df,payload:e}),e1=e=>({type:If,payload:e}),t1=e=>({type:wf,payload:e}),r1=e=>({type:Rf,payload:e}),a1=e=>({type:$h,payload:e}),s1=e=>({type:zh,payload:e}),o1=e=>({type:Hh,payload:e}),n1=e=>({type:Wh,payload:e}),i1=e=>({type:qh,payload:e}
105),c1=e=>({type:Qh,payload:e}),l1=e=>({type:Kh,payload:e}),d1=e=>({type:Zh,payload:e}),p1=e=>({type:ef,payload:e}),u1=e=>({type:tf,payload:e});function*g1(){try{const e=yield A(Qg);yield u(kf(e))}catch(e){yield u(Pf(e))}}function*m1({productId:e}){try{const r=yield A(Yg,e);yield u(Of(r))}catch(r){yield u(Bf(r))}}function*h1(){try{const e=yield A(cm);yield u(Nf(e))}catch(e){yield u(Ff(e))}}function*f1(){try{const e=yield A(um);yield u(Hf(e))}catch(e){yield u(Wf(e))}}function*b1(){try{const e=yield A(gm);yield u(Jf(e))}catch(e){yield u(qf(e))}}function*y1({payload:e}){try{const r=yield A(hm,e);yield u(Kf(r)),C.success("Customer Update Successfully",{autoClose:2e3})}catch(r){yield u(Zf(r)),C.error("Customer Update Failed",{autoClose:2e3})}}function*x1({payload:e}){try{const r=yield A(fm,e);yield u(Xf(r)),C.success("Customer Delete Successfully",{autoClose:2e3})}catch(r){yield u(e1(r)),C.error("Customer Delete Failed",{autoClose:2e3})}}function*E1({payload:e}){try{const r=yield A(mm,e);yield u(Qf(r)),C.success("Customer Added Successfully",{autoClose:2e3})}catch(r){yield u(Yf(r)),C.error("Customer Added Failed",{autoClose:2e3})}}function*S1(){try{const e=yield A(bm);yield u(t1(e))}catch(e){yield u(r1(e))}}function*_1({payload:e}){try{const r=yield A(dm,e);yield u(Gf(r)),C.success("Order Update Successfully",{autoClose:2e3})}catch(r){yield u($f(r)),C.error("Order Update Failed",{autoClose:2e3})}}function*T1({payload:e}){try{const r=yield A(pm,e);yield u(zf(r)),C.success("Order Delete Successfully",{autoClose:2e3})}catch(r){yield u(Vf(r)),C.error("Order Delete Failed",{autoClose:2e3})}}function*A1({payload:e}){try{const r=yield A(lm,e);yield u(Mf(r)),C.success("Order Added Successfully",{autoClose:2e3})}catch(r){yield u(Uf(r)),C.error("Order Added Failed",{autoClose:2e3})}}function*v1(){try{const e=yield A(eh);yield u(a1(e))}catch(e){yield u(s1(e))}}function*L1({payload:{commentId:e,productId:r}}){try{const s=yield A(th,e,r);yield u(o1(s))}catch(s){yield u(n1(s))}}function*C1({payload:{commentId:e,productId:r,replyId:s}}){try{const o=yield A(rh,e,r,s);yield u(i1(o))}catch(o){yield u(c1(o))}}function*D1({payload:{commentId:e,productId:r,replyText:s}}){try{const o=yield A(ah,e,r,s);yield u(l1(o))}catch(o){yield u(d1(o))}}function*I1({payload:{productId:e,commentText:r}}){try{const s=yield A(sh,e,r);yield u(p1(s))}catch(s){yield u(u1(s))}}function*j1(){yield w(Oh,g1),yield w(Fh,m1),yield w(rf,h1),yield w(hf,f1),yield w(yf,b1),yield w(Sf,E1),yield w(Af,y1),yield w(Cf,x1),yield w(jf,S1),yield w(of,A1),yield w(lf,_1),yield w(uf,T1),yield w(Gh,v1),yield w(Vh,L1),yield w(Jh,C1),yield w(Yh,D1),yield w(Xh,I1)}const w1="GET_EVENTS",R1="GET_EVENTS_SUCCESS",k1="GET_EVENTS_FAIL",P1="ADD_NEW_EVENT",O1="ADD_EVENT_SUCCESS",B1="ADD_EVENT_FAIL",N1="UPDATE_EVENT",F1="UPDATE_EVENT_SUCCESS",M1="UPDATE_EVENT_FAIL",U1="DELETE_EVENT",G1="DELETE_EVENT_SUCCESS",$1="DELETE_EVENT_FAIL",z1="GET_CATEGORIES",V1="GET_CATEGORIES_SUCCESS",H1="GET_CATEGORIES_FAIL",W1=e=>({type:R1,payload:e}),J1=e=>({type:k1,payload:e}),q1=e=>({type:O1,payload:e}),Q1=e=>({type:B1,payload:e}),Y1=e=>({type:F1,payload:e}),K1=e=>({type:M1,payload:e}),Z1=e=>({type:G1,payload:e}),X1=e=>({type:$1,payload:e}),e0=e=>({type:V1,payload:e}),t0=e=>({type:H1,payload:e});function*r0(){try{const e=yield A(Kg);yield u(W1(e))}catch(e){yield u(J1(e))}}function*a0({payload:e}){try{const r=yield A(Zg,e);yield u(q1(r))}catch(r){yield u(Q1(r))}}function*s0({payload:e}){try{const r=yield A(Xg,e);yield u(Y1(r))}catch(r){yield u(K1(r))}}function*o0({payload:e}){try{const r=yield A(em,e);yield u(Z1(r))}catch(r){yield u(X1(r))}}function*n0(){try{const e=yield A(tm);yield u(e0(e))}catch(e){yield u(t0(e))}}function*i0(){yield w(w1,r0),yield w(P1,a0),yield w(N1,s0),yield w(U1,o0),yield w(z1,n0)}const c0="GET_CHATS",l0="GET_CHATS_SUCCESS",d0="GET_CHATS_FAIL",p0="GET_GROUPS",u0="GET_GROUPS_SUCCESS",g0="GET_GROUPS_FAIL",m0="GET_CONTACTS",h0="GET_CONTACTS_SUCCESS",f0="GET_CONTACTS_FAIL",b0="GET_MESSAGES",y0="GET_MESSAGES_SUCCESS",x0="GET_MESSAGES_FAIL",E0="POST_ADD_MESSAGE",S0="POST_ADD_MESSAGE_SUCCESS",_0="POST_ADD_MESSAGE_FAIL",T0="DELETE_MESSAGE",A0="DELETE_MESSAGE_SUCCESS",v0="DELETE_MESSAGE_FAIL",L0=e=>({type:l0,payload:e}),C0=e=>({type:d0,payload:e}),D0=e=>({type:u0,payload:e}),I0=e=>({type:g0,payload:e}),j0=e=>({type:h0,payload:e}),w0=e=>({type:f0,payload:e}),R0=e=>({type:y0,payload:e}),k0=e=>({type:x0,payload:e}),P0=e=>({type:S0,payload:e}),O0=e=>({type:_0,payload:e}),B0=e=>({type:A0,payload:e}),N0=e=>({type:v0,payload:e});function*F0(){try{const e=yield A(am);yield u(L0(e))}catch(e){yield u(C0(e))}}function*M0(){try{const e=yield A(sm);yield u(D0(e))}catch(e){yield u(I0(e))}}function*U0(){try{const e=yield A(om);yield u(j0(e))}catch(e){yield u(w0(e))}}function*G0({roomId:e}){try{const r=yield A(nm,e);yield u(R0(r))}catch(r){yield u(k0(r))}}function*$0({message:e}){try{const r=yield A(Jm,e);yield u(P0(r))}catch(r){yield u(O0(r))}}function*z0({payload:e}){try{const r=yield A(qm,e);yield u(B0(r)),C.success("Message Deleted Successfully",{autoClose:2e3})}catch(r){yield u(N0(r)),C.error("Message Deleted Failed",{autoClose:2e3})}}function*V0(){yield w(c0,F0),yield w(p0,M0),yield w(m0,U0),yield w(b0,G0),yield w(E0,$0),yield w(T0,z0)}const H0="GET_WALLET",W0="GET_WALLET_SUCCESS",J0="GET_WALLET_FAIL",q0="GET_CRYPTO_ORDERS",Q0="GET_CRYPTO_ORDERS_SUCCESS",Y0="GET_CRYPTO_ORDERS_FAIL",K0="GET_CRYPTO_PRODUCTS",Z0="GET_CRYPTO_PRODUCTS_SUCCESS",X0="GET_CRYPTO_PRODUCTS_FAIL",eb=e=>({type:W0,payload:e}),tb=e=>({type:J0,payload:e}),rb=e=>({type:Q0,payload:e}),ab=e=>({type:Y0,payload:e}),sb=e=>({type:Z0,payload:e}),ob=e=>({type:X0,payload:e});function*nb(){try{const e=yield A(ym);yield u(eb(e))}catch(e){yield u(tb(e))}}
105function*ib(){try{const e=yield A(xm);yield u(rb(e))}catch(e){yield u(ab(e))}}function*cb({payload:e}){try{const r=yield A(Em,e);yield u(sb(r))}catch(r){yield u(ob(r))}}function*lb(){yield w(H0,nb),yield w(q0,ib),yield w(K0,cb)}const db="GET_INVOICES",pb="GET_INVOICES_SUCCESS",ub="GET_INVOICES_FAIL",gb="GET_INVOICE_DETAIL",mb="GET_INVOICE_DETAIL_SUCCESS",hb="GET_INVOICE_DETAIL_FAIL",fb=e=>({type:pb,payload:e}),bb=e=>({type:ub,payload:e}),yb=e=>({type:mb,payload:e}),xb=e=>({type:hb,payload:e});function*Eb(){try{const e=yield A(Sm);yield u(fb(e))}catch(e){yield u(bb(e))}}function*Sb({invoiceId:e}){try{const r=yield A(_m,e);yield u(yb(r))}catch(r){yield u(xb(r))}}function*_b(){yield w(db,Eb),yield w(gb,Sb)}function*Tb(){try{const e=yield A(Jg);yield u(qp(e?.data?.notificationData))}catch(e){yield u(Qp(e))}}function*Ab(){yield w(Tr,Tb)}const vb="GET_JOBLIST",Lb="GET_JOB_LIST_FAIL",Cb="GET_JOB_LIST_SUCCESS",Db="ADD_NEW_JOB_LIST",Ib="ADD_JOB_LIST_SUCCESS",jb="ADD_JOB_LIST_FAIL",wb="UPDATE_JOB_LIST",Rb="UPDATE_JOB_LIST_SUCCESS",kb="UPDATE_JOB_LIST_FAIL",Pb="DELETE_JOB_LIST",Ob="DELETE_JOB_LIST_SUCCESS",Bb="DELETE_JOB_LIST_FAIL",Nb="GET_APPLY_JOB",Fb="GET_APPLY_JOB_SUCCESS",Mb="GET_APPLY_JOB_FAIL",Ub="DELETE_APPLY_JOB",Gb="DELETE_APPLY_JOB_SUCCESS",$b="DELETE_APPLY_JOB_FAIL",zb=e=>({type:Cb,payload:e}),Vb=e=>({type:Lb,payload:e}),Hb=e=>({type:Ib,payload:e}),Wb=e=>({type:jb,payload:e}),Jb=e=>({type:Rb,payload:e}),qb=e=>({type:kb,payload:e}),Qb=e=>({type:Ob,payload:e}),Yb=e=>({type:Bb,payload:e}),Kb=e=>({type:Fb,payload:e}),Zb=e=>({type:Mb,payload:e}),Xb=e=>({type:Gb,payload:e}),ey=e=>({type:$b,payload:e});function*ty(){try{const e=yield A(Tm);yield u(zb(e))}catch(e){yield u(Vb(e))}}function*ry({payload:e}){try{const r=yield A(Om,e);yield u(Hb(r)),C.success("Job List Added Successfully",{autoClose:2e3})}catch(r){yield u(Wb(r)),C.error("Job List Added Failed",{autoClose:2e3})}}function*ay({payload:e}){try{const r=yield A(Bm,e);yield u(Jb(r)),C.success("Job List Updated Successfully",{autoClose:2e3})}catch(r){yield u(qb(r)),C.error("Job List Updated Failed",{autoClose:2e3})}}function*sy({payload:e}){try{const r=yield A(Nm,e);yield u(Qb(r)),C.success("Job List Deleted Successfully",{autoClose:2e3})}catch(r){yield u(Yb(r)),C.error("Job List Deleted Failed",{autoClose:2e3})}}function*oy(){try{const e=yield A(Am);yield u(Kb(e))}catch(e){yield u(Zb(e))}}function*ny({payload:e}){try{const r=yield A(Fm,e);yield u(Xb(r)),C.success("Applyed Job Deleted Successfully",{autoClose:2e3})}catch(r){yield u(ey(r)),C.error("Applyed Job Deleted Failed",{autoClose:2e3})}}function*iy(){yield w(vb,ty),yield w(Db,ry),yield w(wb,ay),yield w(Pb,sy),yield w(Nb,oy),yield w(Ub,ny)}function*cy(){try{const e=yield A(vm);yield u(Su(e))}catch(e){yield u(Lu(e))}}function*ly({projectId:e}){try{const r=yield A(Lm,e);yield u(Cu(r))}catch(r){yield u(Du(r))}}function*dy({payload:e}){try{const r=yield A(Mm,e);yield u(_u(r)),C.success("Project Update Successfully",{autoClose:2e3})}catch(r){yield u(Tu(r)),C.error("Project Update Failded",{autoClose:2e3})}}function*py({payload:e}){try{const r=yield A(Um,e);yield u(Au(r)),C.success("Project Delete Successfully",{autoClose:2e3})}catch(r){yield u(vu(r)),C.error("Project Delete Failded",{autoClose:2e3})}}function*uy(){yield w(bu,cy),yield w(yu,ly),yield w(xu,dy),yield w(Eu,py)}const gy="GET_TASKS",my="GET_TASKS_SUCCESS",hy="GET_TASKS_FAIL",fy="DELETE_KANBAN",by="DELETE_KANBAN_SUCCESS",yy="DELETE_KANBAN_FAIL",xy="ADD_CARD_DATA",Ey="ADD_CARD_DATA_SUCCESS",Sy="ADD_CARD_DATA_FAIL",_y="UPDATE_CARD_DATA",Ty="UPDATE_CARD_DATA_SUCCESS",Ay="UPDATE_CARD_DATA_FAIL",vy=e=>({type:my,payload:e}),Ly=e=>({type:hy,payload:e}),Cy=e=>({type:by,payload:e}),Dy=e=>({type:yy,payload:e}),Iy=e=>({type:Ey,payload:e}),jy=e=>({type:Sy,payload:e}),wy=e=>({type:Ty,payload:e}
105),Ry=e=>({type:Ay,payload:e});function*ky(){try{const e=yield A(Cm);yield u(vy(e))}catch(e){yield u(Ly(e))}}function*Py({payload:e}){try{const r=yield A(jm,e);yield u(Cy(r)),C.success("KanBan Delete Successfully",{autoClose:2e3})}catch(r){yield u(Dy(r)),C.error("KanBan Delete Failed",{autoClose:2e3})}}function*Oy({payload:e}){try{const r=yield A(Dm,e);yield u(Iy(r)),C.success("KanBan Added Successfully",{autoClose:2e3})}catch(r){yield u(jy(r)),C.error("KanBan Added Failed",{autoClose:2e3})}}function*By({payload:e}){try{const r=yield A(Im,e);yield u(wy(r)),C.success("KanBan Update Successfully",{autoClose:2e3})}catch(r){yield u(Ry(r)),C.error("KanBan Update Failed",{autoClose:2e3})}}function*Ny(){yield w(gy,ky),yield w(_y,By),yield w(fy,Py),yield w(xy,Oy)}const Fy="GET_MAILS_LIST",My="GET_MAILS_LIST_SUCCESS",Uy="GET_MAILS_LIST_FAIL",Gy="SELECT_FOLDER",$y="SELECT_FOLDER_SUCCESS",zy="SELECT_FOLDER_FAIL",Vy="GET_SELECTED_MAILS",Hy="GET_SELECTED_MAILS_SUCCESS",Wy="GET_SELECTED_MAILS_FAIL",Jy="SET_FOLDER_SELECTED_MAILS",qy="SET_FOLDER_SELECTED_MAILS_SUCCESS",Qy="SET_FOLDER_SELECTED_MAILS_FAIL",Yy="DELETE_MAIL",Ky="DELETE_MAIL_SUCCESS",Zy="DELETE_MAIL_FAIL",Xy="TRASH_MAIL",ex="TRASH_MAIL_SUCCESS",tx="TRASH_MAIL_FAIL",rx="STARED_MAIL",ax="STARED_MAIL_SUCCESS",sx="STARED_MAIL_FAIL",ox="GET_MAIL_ID",nx="GET_MAIL_ID_SUCCESS",ix="GET_MAIL_ID_FAIL",Ns=e=>({type:My,payload:e}),Fs=e=>({type:Uy,payload:e}),Ms=e=>({type:Hy,payload:e}),Us=e=>({type:Wy,payload:e}),cx=()=>({type:qy}),lx=e=>({type:Qy,payload:e}),dx=e=>({type:$y,payload:e}),px=e=>({type:zy,payload:e}),ux=e=>({type:Ky,payload:e}),gx=e=>({type:Zy,payload:e}),mx=e=>({type:ex,payload:e}),hx=e=>({type:tx,payload:e}),fx=e=>({type:ax,payload:e}),bx=e=>({type:sx,payload:e}),yx=e=>({type:nx,payload:e}),xx=e=>({type:ix,payload:e});function*Ex({payload:e}){try{const r=yield A(Bs,e);yield u(Ns(r))}catch(r){yield u(Fs(r))}}function*Sx(){try{const e=yield A(Wm);yield u(dx(e))}catch(e){yield u(px(e))}}function*_x({payload:e}){try{const r=yield A(Os,e);yield u(Ms(r))}catch(r){yield u(Us(r))}}function*Tx({payload:{selectedmails:e,folderId:r,activeTab:s}}){try{const o=yield A(im,e,r);yield u(cx(o));try{const n=yield A(Bs,parseInt(s));yield u(Ns(n))}catch(n){yield u(Fs(n))}try{const n=yield A(Os,null);yield u(Ms(n))}catch(n){yield u(Us(n))}}catch(o){yield u(lx(o))}}function*Ax({payload:e}){try{const r=yield A($m,e);yield u(ux(r))}catch(r){yield u(gx(r))}}function*vx({payload:e}){try{const r=yield A(zm,e);yield u(mx(r))}catch(r){yield u(hx(r))}}function*Lx({payload:e}){try{const r=yield A(Vm,e);yield u(fx(r))}catch(r){yield u(bx(r))}}function*Cx({payload:e}){try{const r=yield A(Hm,e);yield u(yx(r))}catch(r){yield u(xx(r))}}function*Dx(){yield w(Fy,Ex),yield w(Gy,Sx),yield w(Vy,_x),yield w(Jy,Tx),yield w(Yy,Ax),yield w(Xy,vx),yield w(rx,Lx),yield w(ox,Cx)}const Ix="GET_USERS",jx="GET_USERS_SUCCESS",wx="GET_USERS_FAIL",Rx="GET_USER_PROFILE",kx="GET_USER_PROFILE_SUCCESS",Px="GET_USER_PROFILE_FAIL",Ox="ADD_NEW_USER",Bx="ADD_USER_SUCCESS",Nx="ADD_USER_FAIL",Fx="UPDATE_USER",Mx="UPDATE_USER_SUCCESS",Ux="UPDATE_USER_FAIL",Gx="DELETE_USER",$x="DELETE_USER_SUCCESS",zx="DELETE_USER_FAIL",Vx=e=>({type:jx,payload:e}),Hx=e=>({type:Bx,payload:e}),Wx=e=>({type:Nx,payload:e}),Jx=e=>({type:wx,payload:e}),qx=e=>({type:kx,payload:e}),Qx=e=>({type:Px,payload:e}),Yx=e=>({type:Mx,payload:e}),Kx=e=>({type:Ux,payload:e}),Zx=e=>({type:$x,payload:e}),Xx=e=>({type:zx,payload:e});function*e2(){try{const e=yield A(wm);yield u(Vx(e))}catch(e){yield u(Jx(e))}}function*t2(){try{const e=yield A(Gm);yield u(qx(e))}catch(e){yield u(Qx(e))}}function*r2({payload:e}){try{const r=yield A(km,e);yield u(Yx(r)),C.success("Contact Updated Successfully",{autoClose:2e3})}catch(r){yield u(Kx(r)),C.error("Contact Updated Failed",{autoClose:2e3})}}function*a2({payload:e}){try{const r=yield A(Pm,e);yield u(Zx(r)),C.success("Contact Deleted Successfully",{autoClose:2e3})}catch(r){yield u(Xx(r)),C.error("Contact Deleted Failed",{autoClose:2e3})}}function*s2({payload:e}){try{const r=yield A(Rm,e);yield u(Hx(r)),C.success("Contact Added Successfully",{autoClose:2e3})}catch(r){yield u(Wx(r)),C.error("Contact Added Failed",{autoClose:2e3})}}function*o2(){yield w(Ix,e2),yield w(Rx,t2),yield w(Ox,s2),yield w(Fx,r2),yield w(Gx,a2)}function*n2({payload:e}){try{var r=yield A(rm,e);yield u(ju(lt,r))}
105catch(s){yield u(wu(lt,s))}}function*i2(){yield w(lt,n2)}function*c2(){yield fe([V(i2)])}const l2="API_SUCCESS",d2="API_FAIL",Yt="GET_TOP_SELLING_PRODUCT",Kt="GET_EARNING_DATA",Gs=(e,r)=>({type:l2,payload:{actionType:e,data:r}}),$s=(e,r)=>({type:d2,payload:{actionType:e,error:r}});function*p2({payload:e}){try{var r=yield A(Zm,e);yield u(Gs(Yt,r))}catch(s){yield u($s(Yt,s))}}function*u2({payload:e}){try{var r=yield A(Xm,e);yield u(Gs(Kt,r))}catch(s){yield u($s(Kt,s))}}function*g2(){yield w(Yt,p2)}function*m2(){yield w(Kt,u2)}function*h2(){yield fe([V(g2)],yield fe([V(m2)]))}function*f2({payload:e}){try{var r=yield A(Qm,e);yield u(Ru(dt,r))}catch(s){yield u(ku(dt,s))}}function*b2(){yield w(dt,f2)}function*y2(){yield fe([V(b2)])}const x2="API_SUCCESS",E2="API_FAIL",Zt="GET_VISITOR_DATA",S2=(e,r)=>({type:x2,payload:{actionType:e,data:r}}),_2=(e,r)=>({type:E2,payload:{actionType:e,error:r}});function*T2({payload:e}){try{var r=yield A(Km,e);yield u(S2(Zt,r))}catch(s){yield u(_2(Zt,s))}}function*A2(){yield w(Zt,T2)}function*v2(){yield fe([V(A2)])}const L2="API_SUCCESS",C2="API_FAIL",Xt="GET_STATISTICS_DATA",D2=(e,r)=>({type:L2,payload:{actionType:e,data:r}}),I2=(e,r)=>({type:C2,payload:{actionType:e,error:r}});function*j2({payload:e}){try{var r=yield A(Ym,e);yield u(D2(Xt,r))}catch(s){yield u(I2(Xt,s))}}function*w2(){yield w(Xt,j2)}function*R2(){yield fe([V(w2)])}const k2=8*60*60*1e3,zs=8*60*60*1e3,P2={plants:[],routes:[],transporters:[],products:[],truckTypes:[],inquiryTypes:[],users:[],lastFetched:null,status:"idle"},O2={data:null,lastFetched:null,lastParams:null,status:"idle"},Vs=e=>e.dashboardCache,Lr=se(Vs,e=>e?.dropdowns??P2),p5=se(Lr,e=>({plants:e.plants??[],routes:e.routes??[],transporters:e.transporters??[],products:e.products??[],truckTypes:e.truckTypes??[],inquiryTypes:e.inquiryTypes??[],users:e.users??[]}));se(Lr,e=>e.status??"idle");const B2=se(Lr,e=>!e.lastFetched||Date.now()-new Date(e.lastFetched).getTime()>k2),Pt=se(Vs,e=>e?.counts??O2);se(Pt,e=>e.data??null);se(Pt,e=>e.status??"idle");se(Pt,e=>!e.lastFetched||Date.now()-new Date(e.lastFetched).getTime()>zs);const N2=se(Pt,e=>({lastFetched:e.lastFetched??null,lastParams:e.lastParams??null}));function oa(e,r){let s=e?.data||(Array.isArray(e)?e:[]);if(s&&!Array.isArray(s)&&typeof s=="object"){const n=["vendorListing","routeListing","list","data","listing","inquiryListing"];for(const i of n)if(Array.isArray(s[i])){s=s[i];break}}return(Array.isArray(s)?s:[]).map(n=>typeof n=="string"?{value:n,label:n}:{value:n.value??n.id??n._id,label:n.label??n[r]??n.name??n.organization_name??n.to_location??"Select"})}async function Me(e,r,s=[]){try{let o=await B(e),n=oa(o,r);if(n.length===0&&s.length>0){for(const i of s)if(o=await B(i),n=oa(o,r),n.length>0)break}return n}catch(o){return console.error(`[dashboardCache] Error fetching ${e}:`,o),[]}}function F2(e){return{start_date:e?.fromDate||"",end_date:e?.toDate||"",plant_id:e?.plant?.value||null,transporter_id:e?.transporter?.value||null,material:e?.product?.value?e?.product?.label:"",route_source:"",destination:e?.route?.value?e?.route?.label:"",truck_type:e?.truckType?.value?e?.truckType?.label:""}}function*M2({payload:{force:e}}){const r=yield Aa(B2);if(!(!e&&!r)){yield u(Zr("loading"));try{const[s,o,n,i,c,m,f]=yield A(()=>Promise.all([Me("/plant/getDropdownPlant","plant_name"),Me("/dashboard/getRoutesDropdown","label"),Me("/vendor/transporterDropdown","name",["/vendor/getdropdownList","/vendor/listing?limit=1000"]),Me("/material-type/getDropdownMaterialType","group_name",["material-type/getDropdownMaterialType"]),Me("/truck-type/get-drop-dawn-data","type"),Me("/inquiry-source/drop-dawn-data","name"),Me("/dashboard/userDropdown","label")]));yield u(Ou({plants:s,routes:o,transporters:n,products:i,truckTypes:c,inquiryTypes:m,users:f}))}catch(s){console.error("[dashboardCache] Unexpected error in fetchDropdownsSaga:",s),yield u(Zr("error"))}}}function*U2({payload:{filters:e,force:r}}){const s=F2(e),o=JSON.stringify(s),{lastFetched:n,lastParams:i}=yield Aa(N2),c=i===o,m=n&&Date.now()-new Date(n).getTime()<zs;if(!(!r&&c&&m)){yield u($t("loading"));try{const f=yield A(B,"/dashboard/getDashboardCount",{params:s});f?.data?yield u(Bu({data:f.data,paramsKey:o})):yield u($t("error"))}catch(f){console.error("[dashboardCache] Error fetching dashboard counts:",f),yield u($t("error"))}}}function*G2(){yield fe([ct(xs,M2),ct(Pu,U2)])}function*$2(){yield fe([V(ih),V(ph),V(mh),V(bh),V(Ph),V(j1),V(i0),V(V0),V(Dx),V(lb),V(_b),V(Ab),V(iy),V(uy),V(Ny),V(o2),V(c2),V(h2),V(y2),V(v2),V(R2),V(G2)])}const z2={key:"dashboardCache",storage:jo,whitelist:["dashboardCache","superAdmin"]},V2=Io(z2,$g),Hs=Ao(),H2=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Do,Ws=vo(V2,H2(Lo(Hs)));Hs.run($2);const Js=Co(Ws),Ot=()=>{const e=Je(),r=pt();return async()=>{try{await N("/user/logout-app",{})}catch{}e(Nu()),await Js.purge(),localStorage.clear(),sessionStorage.clear(),r("/login",{replace:!0})}},qs="/assets/logo-C1u50RGg.svg",Qs="/assets/logo-white-YIU7VIND.svg",na=({variant:e="submit",size:r="md",label:s,onClick:o,iconPosition:n="left",icon:i,disabled:c,loading:m=!1,fullWidth:f=!1,shortcut:y,style:p,...d})=>{const[S,h]=X.useState(!1),[l,E]=X.useState(!1),I={borderRadius:"8px",border:`1px solid ${D.borderColor}`,padding:r==="sm"?"6px 12px":r==="lg"?"12px 20px":"8px 16px",fontSize:r==="sm"?"12px":r==="lg"?"16px":"14px",cursor:c||m?"not-allowed":"pointer",display:f?"flex":"inl
105ine-flex",alignItems:"center",justifyContent:"center",gap:"6px",height:r==="sm"?"":"40px",fontWeight:"600",whiteSpace:"nowrap",...f&&{width:"100%"},position:"relative",overflow:"hidden",isolation:"isolate"},L={approve:{backgroundImage:D.btnPrimaryGradient,backgroundColor:D.primary,color:D.btnInverseText,border:"none",hoverGradient:D.btnPrimaryHoverGradient},continue:{backgroundImage:D.btnPrimaryGradient,backgroundColor:D.primary,color:D.btnInverseText,border:"none",hoverGradient:D.btnPrimaryHoverGradient},submit:{backgroundImage:D.btnPrimaryGradient,backgroundColor:D.primary,color:D.btnInverseText,border:"none",hoverGradient:D.btnPrimaryHoverGradient},reset:{backgroundColor:D.cardBg,color:D.danger,hoverGradient:D.btnResetHoverGradient},cancel:{backgroundColor:D.cardBg,color:D.textPrimary,hoverGradient:D.btnCancelHoverGradient},delete:{backgroundImage:D.btnDangerGradient,backgroundColor:D.danger,color:D.btnInverseText,border:"none",hoverGradient:D.btnDangerHoverGradient},reject:{backgroundImage:D.btnDangerGradient,backgroundColor:D.danger,color:D.btnInverseText,border:"none",hoverGradient:D.btnDangerHoverGradient},close:{backgroundColor:D.cardBg,color:D.textPrimary,border:`1px solid ${D.borderColor}`,hoverGradient:D.btnCancelHoverGradient},view:{backgroundImage:D.btnSecondaryGradient,backgroundColor:D.secondary,color:D.btnInverseText,border:"none",hoverGradient:D.btnSecondaryHoverGradient},black:{backgroundColor:D.headingColor,color:D.bodyBg,border:"none",hoverGradient:D.btnBlackHoverGradient},primary:{backgroundImage:D.btnPrimaryGradient,backgroundColor:D.primary,color:D.btnInverseText,border:"none",hoverGradient:D.btnPrimaryHoverGradient},help:{backgroundColor:D.cardBg,color:D.textPrimary,border:`1px solid ${D.borderColor}`,hoverGradient:D.btnCancelHoverGradient},warning:{backgroundColor:D.warning,color:D.btnInverseText,border:"none",hoverGradient:D.btnPrimaryHoverGradient}},R=m?{filter:"brightness(0.9)",cursor:"not-allowed"}:{},b=L[e]||{},v={...I,...b.borderRadius&&{borderRadius:b.borderRadius},backgroundColor:b.backgroundColor,...b.backgroundImage&&{backgroundImage:b.backgroundImage},color:b.color,border:b.border||I.border,boxShadow:"none",transition:"box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1)",...R,...p},_={content:'""',position:"absolute",bottom:0,left:0,right:0,height:S&&!c&&!m&&!d.disableHoverGradient?"100%":"0%",background:b.hoverGradient,transition:"height 0.1s cubic-bezier(0.4, 0, 0.2, 1)",zIndex:-1,borderRadius:b.borderRadius||"8px"},k={position:"relative",zIndex:2,display:"flex",alignItems:"center",gap:"6px",transform:l?"scale(0.96)":S&&!c&&!m&&!d.disableHoverGradient?"translateY(-1px)":"translateY(0)",transition:"transform 0.15s cubic-bezier(0.4, 0, 0.2, 1)"};return t.jsxs(wo,{style:{...v},onClick:o,disabled:c||m,color:"",onMouseEnter:()=>h(!0),onMouseDown:()=>E(!0),onMouseUp:()=>E(!1),onMouseLeave:()=>{h(!1),E(!1)},...d,children:[t.jsx("span",{style:_}),t.jsx("span",{style:k,children:m?t.jsxs(t.Fragment,{children:[t.jsx(Ta,{size:"sm",color:"inherit",style:{marginRight:"6px"}}),s]}):t.jsxs(t.Fragment,{children:[i&&n==="left"&&i,s,i&&n==="right"&&i,y&&t.jsx("kbd",{style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:"4px",color:D.btnInverseText,padding:"2px 6px",fontSize:"12px",marginLeft:"8px"},children:y})]})})]})},Ys=({isOpen:e,toggle:r,title:s,description:o,children:n,footer:i,show
105Footer:c=!0,primaryAction:m,secondaryAction:f,size:y="md",centered:p=!0,scrollable:d=!0,backdrop:S="static",keyboard:h=!0,showClose:l=!0,isLoading:E=!1,disableActions:I=!1,variant:L="default",headerClassName:R="",bodyClassName:b="",footerClassName:v=""})=>t.jsxs(Ro,{isOpen:e,toggle:r,size:y,centered:p,scrollable:d,backdrop:S,keyboard:h,contentClassName:L==="glass"?"app-modal--glass":void 0,backdropClassName:"app-modal-backdrop--glass",children:[(s||l)&&t.jsx(ko,{toggle:l?r:void 0,close:l?t.jsx("button",{className:"btn p-0 border-0 app-modal__close",onClick:r,disabled:E,"aria-label":"Close",children:t.jsx(Po,{size:22})}):null,className:R,children:t.jsxs("div",{children:[s&&t.jsx("h5",{className:"mb-0",children:s}),o&&t.jsx("small",{className:"text-muted",children:o})]})}),t.jsx(Oo,{className:b,children:n}),c&&t.jsx(Bo,{className:v,children:i||t.jsxs(t.Fragment,{children:[f&&t.jsx(na,{variant:"cancel",label:f.label,onClick:f.onClick,disabled:I||E}),m&&t.jsx(na,{variant:m.variant?m.variant:"submit",label:m.label,onClick:m.onClick,disabled:I||E,loading:E,icon:m.icon,iconPosition:m.iconPosition})]})})]}),H={size:30,stroke:1.75},W2=180,J2=55,ia="(max-width: 992px)",q2=340,Ks=e=>[{key:"main",title:null,items:[{name:"Dashboard",permissionName:"Dashboard",alwaysShow:e?.roleName==="Transporter"||!0,slug:e?.roleName==="Transporter"?"transporter-dashboard":"dashboard",icon:t.jsx(No,{...H})}]},{key:"operations",title:"Operations",items:[{name:"Transport Planning",permissionName:"Transport Planning",slug:"transport-planning",icon:t.jsx(Fo,{...H}),subMenuItems:[{name:"Sales Order",slug:"sales-order"},{name:"Transport Planning",slug:"transport-planning"}]},{name:"Transport Request",permissionName:"Transport Request",slug:"transport-request",icon:t.jsx(Mo,{...H})},{name:"Transporter Inquiry",permissionName:"Transporter Inquiry",slug:"transporter-inquiry",icon:t.jsx(Uo,{...H})},{name:"Sales Order",permissionName:"Sales Order",slug:"sales-orders",icon:t.jsx(Go,{...H})},{name:"Stock Transfer",permissionName:"Stock Transfer",slug:"stock-transfer",icon:t.jsx($o,{...H})},{name:"Sales Order Returns",permissionName:"SO Return",slug:"sales-order-returns",icon:t.jsx(zo,{...H})},{name:"Contract",permissionName:"Contract List",slug:"contract",icon:t.jsx(Vo,{...H})},{name:"Gate Pass",permissionName:"QR Code Scanner",slug:"gate-pass",icon:t.jsx(Ho,{...H})},{name:"Generate Invoice",permissionName:"generate_invoice",slug:"generate-invoice",icon:t.jsx(jr,{...H})}]},{key:"logistics",title:"Logistics",items:[{name:"Freight Cost Sheet",permissionName:"freight_cost_sheet",slug:"freight-cost-sheet",icon:t.jsx(wr,{stroke:2,...H})},{name:"Freight Rate Approvals",permissionName:"freight_cost_sheet",slug:"freight-rate-approvals",icon:t.jsx(Mt,{...H})},{name:"Preshipment",permissionName:"preshipment",slug:"export-orders",icon:t.jsx(Wo,{...H})},{name:"Cost Sheet Report",permissionName:"cost_sheet_report",slug:"cost-sheet-report",icon:t.jsx(Rr,{...H})},{name:"Provisional Posting",permissionName:"provisional_posting",slug:"provisional-posting",icon:t.jsx(Jo,{...H})},{name:"Port Aliases",permissionName:"freight_port_alias",slug:"freight-port-alias",icon:t.jsx(qo,{...H})},{name:"Invoices",permissionName:["Transport Invoice","EInvoice","LD Reminder Log"],slug:"invoice",icon:t.jsx(jr,{...H}),subMenuItems:[{permissionName:"Transport Invoice",name:"Transporter Invoice",slug:"transporter-invoice"},{permissionName:"EInvoice Approval",name:"E-Invoice Dashboard",slug:"einvoice-dashboard"},{permissionName:"EInvoice",name:"E-Invoice",slug:"einvoice"},{permissionName:"LD Reminder Log",name:"LD Reminder Log",slug:"ld-reminder-log"},{permissionName:"LD Reminder Log",name:"LD Reminder Config",slug:"ld-reminder-config"}]}]},{key:"invoice-booking",title:"Invoice Booking",items:[{name:"Domestic Invoice Booking",permissionName:"Invoice Booking",slug:"domestic-invoice-booking",icon:t.jsx(wr,{stroke:2,...H})},{name:"Domestic Invoice Approvals",permissionName:"Invoice Booking",hideForRoles:["Transporter"],slug:"domestic-invoice-approvals",icon:t.jsx(Mt,{...H})},{name:"Export Invoice Booking",permissionName:"Shipping Line Invoice Booking",slug:"shipping-line-invoice-booking",icon:t.jsx(Qo,{...H})},{name:"Export Invoice Approvals",permissionName:"Shipping Line Invoice Booking",slug:"shipping-line-invoice-approvals",icon:t.jsx(Mt,{...H})}]},{key:"insights",title:"Insights & Resources",items:[{name:"Reports",permissionName:["Inquiry Report","Bidding Report","Vehicle Loading Report","Hurl Report"],slug:"view-report",icon:t.jsx(Rr,{...H})}
105,{name:"Transporter 360",permissionName:"Transporter 360",slug:"transporter-360",icon:t.jsx(Yo,{...H})},{name:"Contract 360",permissionName:"Contract 360",slug:"contract-360",icon:t.jsx(Ko,{...H})},{name:"Knowledge & Learning",permissionName:"Knowledge & Learning",slug:"ai/knowledge-learning",icon:t.jsx(Zo,{...H})},{name:"Support",permissionName:"Raise Ticket",slug:"support",icon:t.jsx(Xo,{...H})}]},{key:"ai-automation",title:"AI & Automation",items:[{name:"Negotiation Agent",permissionName:"auto_negotiation",slug:"ai/negotiation-agent",icon:t.jsx(en,{...H})}]},{key:"administration",title:"Administration",items:[{name:"Configuration",permissionName:"Configuration",slug:"config",icon:t.jsx(tn,{...H}),subMenuItems:[{permissionName:"Users",name:"Inquiry Settings",slug:"settings"},{permissionName:"SAP Configuration",name:"SAP Settings",slug:"config"},{permissionName:"Contract Configuration",name:"Contract",slug:"contract-config"},{permissionName:"EInvoice Configuration",name:"Invoice",slug:"invoice-config"},{permissionName:"Freight Workflow Configuration",name:"Freight Cost Sheet",slug:"freight-cost-sheet-config"},{permissionName:"Invoice Booking Configuration",name:"Invoice Booking",slug:"domestic-invoice-booking-config"},{permissionName:"Shipping Line Invoice Booking Configuration",name:"Export Invoice Booking",slug:"shipping-line-invoice-booking-config"},{permissionName:"Inquiry Field",name:"Inquiry Field",slug:"inquiry-field-setting"},{permissionName:"Configuration",name:"Custom FX Rates",slug:"custom-fx-rates"}]},{name:"User Management",permissionName:"User Management",slug:"users-check",icon:t.jsx(rn,{...H}),subMenuItems:[{permissionName:"Users",name:"Users",slug:"users"}
105,{permissionName:"Role & Permission",name:"Role & Permission",slug:"user-roles"}]},{name:"Master Record",permissionName:"Master Record",slug:"master-records",icon:t.jsx(an,{...H})},{name:"Facility Master",permissionName:"facility_master",slug:"facility-master",icon:t.jsx(sn,{...H})},{name:"Counterparty Onboarding",permissionName:"Counterparty Onboarding",slug:"parties",icon:t.jsx(on,{...H})},{name:"Logs",permissionName:"Logs",slug:"logs",icon:t.jsx(nn,{...H})},{name:"Subscription",permissionName:"Marketplace Subscription",slug:"subscription",icon:t.jsx(cn,{...H})}]}],Q2=()=>Ks().flatMap(e=>e.items),Y2={"transport-planning":"transport-planning","sales-order":"transport-planning",preshipment:"export-orders","export-booking":"export-orders","export-orders":"export-orders","transporter-invoice":"invoice",einvoice:"invoice","einvoice-dashboard":"invoice","ld-reminder-log":"invoice","ld-reminder-config":"invoice",settings:"config",config:"config","contract-config":"config","invoice-config":"config","freight-cost-sheet-config":"config","domestic-invoice-booking-config":"config","shipping-line-invoice-booking-config":"config","inquiry-field-setting":"config","custom-fx-rates":"config",users:"users-check","user-roles":"users-check"},ca=e=>{const r=e.split("/")[1]||"";return Y2[r]||r},K2=e=>{const r=e.trim().split(/\s+/);return r.length>=2?(r[0][0]+r[1][0]).toUpperCase():e.slice(0,2).toUpperCase()},Z2=()=>{const e=je(),r=pt(),{theme:s}=qe(),o=s==="dark",[n,i]=a.useState(!1),[c,m]=a.useState(()=>window.matchMedia(ia).matches),[f,y]=a.useState(!1),[p,d]=a.useState(!1),[S,h]=a.useState(()=>!document.body.classList.contains("vertical-collpsed")),[l,E]=a.useState(()=>ca(e.pathname)),[I,L]=a.useState(null),[R,b]=a.useState(!1),[v,_]=a.useState(!1),[k,$]=a.useState("User"),[J,ee]=a.useState([]),Ee=se(j=>j.Login,j=>({userData:j.userData})),{userData:Z}=Oe(Ee);a.useEffect(()=>{const j=ca(e.pathname);E(j);const U=Q2().find(te=>te.slug===j);L(U?.subMenuItems?j:null),window.innerWidth<=992&&(d(!1),document.body.classList.remove("sidebar-enable"))},[e.pathname]),a.useEffect(()=>{const j=window.matchMedia(ia),F=U=>m(U.matches);return j.addEventListener("change",F),()=>j.removeEventListener("change",F)},[]),a.useEffect(()=>{const j=()=>{d(document.body.classList.contains("sidebar-enable")),h(!document.body.classList.contains("vertical-collpsed"))},F=new MutationObserver(j);return F.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>F.disconnect()},[]),a.useEffect(()=>{try{const j=JSON.parse(localStorage.getItem("authUser")||"{}");$(Z?.name||j.email||"User")}catch{$("User")}},[Z]);const oe=Ks(Z).map(j=>({...j,items:j.items.filter(F=>!F.hideForRoles?.includes(Z?.roleName)&&(F.alwaysShow||me.checkReadPermission(F.permissionName)))})).filter(j=>j.items.length>0),Q=c?!0:S||n,Qe=!c&&n&&!S,Se=a.useRef(null),Be=a.useRef(null),_e=a.useRef(!1),Ce=a.useRef(0),M=a.useCallback(()=>{const j=Se.current,F=Be.current;if(!j||!F)return;const U=j.querySelector(".vl-nav-item.active"),te=U?.closest(".vl-nav-group-items");if(!U||te&&!te.classList.contains("open")){F.style.opacity="0",_e.current=!1;return}const le=j.getBoundingClientRect(),W=U.getBoundingClientRect(),Ne=_e.current&&performance.now()<Ce.current;F.classList.toggle("vl-nav-pill--animate",Ne),F.classList.toggle("vl-nav-pill--parent",U.classList.contains("vl-nav-item--parent")),F.style.width=`${W.width}px`,F.style.height=`${W.height}px`,F.style.transform=`translate(${W.left-le.left+j.scrollLeft}px, ${W.top-le.top+j.scrollTop}px)`,F.style.opacity="1",_e.current=!0,j.classList.add("vl-nav-section--sliding")},[]);a.useLayoutEffect(()=>{Ce.current=performance.now()+q2,M()},[l,M]);const ae=oe.map(j=>`${j.key}:${j.items.length}`).join("|");a.useEffect(()=>{const j=Se.current;if(!j)return;const F=new ResizeObserver(M);return F.observe(j),j.querySelectorAll(".vl-nav-group, .vl-nav-item").forEach(U=>F.observe(U)),()=>F.disconnect()},[ae,M]);const we=a.useRef(null),Te=a.useRef(null),De=()=>{clearTimeout(Te.current),y(!0),Te.current=setTimeout(()=>y(!1),W2)},tt=()=>{c||(clearTimeout(we.current),we.current=setTimeout(()=>{i(!0),De()},J2))},Ae=()=>{clearTimeout(we.current),n&&De(),i(!1)};a.useEffect(()=>()=>{clearTimeout(we.current),clearTimeout(Te.current)},[]);const be=(j,F,U)=>{F&&(U.preventDefault(),U.stopPropagation(),L(te=>te===j?null:j))}
105,ft=Ot(),bt=async()=>{_(!0),await ft()},Re=()=>{d(!1),document.body.classList.remove("sidebar-enable")},rt=j=>{ee(F=>F.includes(j)?F.filter(U=>U!==j):[...F,j])},ce=j=>{const F=l===j.slug,U=!!(j.subMenuItems&&j.subMenuItems.length>0),te=I===j.slug,le=U?j.subMenuItems.filter(W=>W.permissionName?me.checkReadPermission(W.permissionName):j.name==="Transport Planning"):[];return U&&le.length===0?null:t.jsxs("div",{className:"vl-nav-item-wrapper",children:[t.jsxs(q,{to:`/${j.slug}`,className:`mt-2 vl-nav-item${U?" vl-nav-item--parent":""}${F?" active":""}${U&&te&&Q?" open":""}`,title:Q?void 0:j.name,onClick:U?W=>be(j.slug,U,W):Re,children:[t.jsx("span",{className:"vl-nav-item-icon-wrap",children:j.icon}),t.jsx("span",{className:`vl-nav-item-label vl-collapsible-text${Q?" visible":""}`,children:j.name}),U&&t.jsx(Lt,{size:15,className:`vl-nav-item-chevron vl-collapsible-text${Q?" visible":""}${te?" rotated":""}`})]}),U&&t.jsx("div",{className:`vl-submenu-container${te&&Q?" open":""}`,children:t.jsx("ul",{className:"vl-submenu",children:le.map(W=>{const Ne=e.pathname===`/${W.slug}`||e.pathname.startsWith(`/${W.slug}/`);return t.jsx("li",{className:"vl-submenu-item",children:t.jsx(q,{to:`/${W.slug}`,className:`vl-submenu-link${Ne?" active":""}`,onClick:Re,children:W.name})},W.slug)})})})]},j.slug)};return t.jsxs(t.Fragment,{children:[p&&t.jsx("div",{className:"vl-sidebar-overlay",onClick:Re}),t.jsxs("aside",{className:`vl-sidebar${p?" open":""}${Q?" vl-sidebar--expanded":""}${Qe?" vl-sidebar--hover":""}${f?" vl-sidebar--settling":""}`,onMouseEnter:tt,onMouseLeave:Ae,children:[t.jsx("div",{className:"vl-sidebar-brand",onClick:()=>r("/landing-page"),role:"button",tabIndex:0,onKeyDown:j=>j.key==="Enter"&&r("/landing-page"),"aria-label":"Go to home",children:t.jsxs("div",{className:"vl-brand-logo-wrap",children:[t.jsx("img",{src:ws,alt:"LogystiX icon",className:`vl-brand-favicon${Q?" vl-brand-hidden":""}`}),t.jsx("img",{src:o?Qs:qs,alt:"LogystiX",className:`vl-brand-fulllogo${Q?" vl-brand-visible":""}`})]})}),t.jsxs("nav",{className:"vl-nav-section","aria-label":"Main navigation",ref:Se,children:[t.jsx("span",{ref:Be,className:"vl-nav-pill","aria-hidden":"true"}),oe.map(j=>{const F=!Q||!J.includes(j.key);return t.jsxs("div",{className:"vl-nav-group",children:[j.title&&t.jsxs("button",{type:"button",className:`vl-nav-group-header vl-collapsible-text${Q?" visible":""}`,onClick:()=>rt(j.key),"aria-expanded":F,children:[t.jsx("span",{className:"vl-nav-group-title",children:j.title}),t.jsx(Lt,{size:16,className:`vl-nav-group-chevron${F?"":" rotated"}`})]}),t.jsx("div",{className:`vl-nav-group-items${F?" open":""}`,children:t.jsx("div",{className:"vl-nav-group-items-inner",children:j.items.map(ce)})})]},j.key)})]}),t.jsx("div",{className:"vl-sidebar-user",children:t.jsxs("div",{className:`vl-sidebar-user-inner${Q?" expanded":""}`,children:[t.jsx("div",{className:"vl-sidebar-user-avatar",onClick:()=>r("/profile"),title:"View profile",role:"button",tabIndex:0,onKeyDown:j=>j.key==="Enter"&&r("/profile"),"aria-label":"View profile",children:K2(k)}),t.jsxs("div",{className:`vl-sidebar-user-info vl-collapsible-text${Q?" visible":""}`,children:[t.jsx("div",{className:"vl-sidebar-user-name",children:k}),t.jsx("div",{className:"vl-sidebar-user-role",children:Z?.roleName||"User"})]}),t.jsx("button",{className:`vl-sidebar-logout-btn vl-collapsible-text${Q?" visible":""}`,title:"Logout",onClick:()=>b(!0),"aria-label":"Logout",children:t.jsx(ar,{size:16})})]})})]}),t.jsx(Ys,{isOpen:R,toggle:()=>!v&&b(!1),title:v?"Logging Out…":"Confirm Logout",centered:!0,primaryAction:{label:v?"Logging out…":"Logout",variant:"delete",onClick:bt,disabled:v},secondaryAction:{label:"Cancel",onClick:()=>b(!1),disabled:v},children:t.jsx("p",{children:v?"Please wait while we log you out…":"Are you sure you want to logout?"})})]})},Zs=e=>t.jsxs(X.Fragment,{children:[t.jsx("div",{className:"right-bar",id:"right-bar",children:t.jsx(vt,{style:{height:"900px"},children:t.jsxs("div",{"data-simplebar":!0,className:"h-100",children:[t.jsxs("div",{className:"rightbar-title px-3 py-4",children:[t.jsx(q,{to:"#",onClick:r=>{r.preventDefault(),e.showRightSidebarAction(!1)},className:"right-bar-toggle float-end",children:t.jsx("i",{className:"mdi mdi-close noti-icon"})}),t.jsx("h5",{className:"m-0",children:"Settings"})]}),t.jsx("hr",{className:"my-0"}),t.jsxs("div",{className:"p-4",children:[t.jsxs("div",{className:"radio-toolbar",children:[t.jsx("span",{className:"mb-2 d-block",children:"Layouts"}),t.jsx("input",{type:"radio",id:"radioVertical",name:"radioFruit",value:nt.VERTICAL,checked:e.layoutType===nt.VERTICAL,onChange:r=>{r.target.checked&&e.changeLayout(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"radioVertical",children:"Vertical"}),t.jsx("input",{type:"radio",id:"radioHorizontal",name:"radioFruit",value:nt.HORIZONTAL,checked:e.layoutType===nt.HORIZONTAL,onChange:r=>{r.target.checked&&e.changeLayout(r.target.value)}}),t.jsx("label",{htmlFor:"radioHorizontal",children:"Horizontal"})]}),t.jsx("hr",{className:"mt-1"}),t.jsxs("div",{className:"radio-toolbar",children:[t.jsx("span",{className:"mb-2 d-block",children:"Layouts Mode"}),t.jsx("input",{type:"radio",id:"radioLight",name:"radioLight",value:it.LIGHT,checked:e.layoutModeType===it.LIGHT,onChange:r=>{r.target.checked&&e.changeLayoutMode(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"radioLight",children:"Light"}),t.jsx("input",{type:"radio",id:"radioDark",name:"radioDark",value:it.DARK,checked:e.layoutModeType===it.DARK,onChange:r=>{r.target.checked&&e.changeLayoutMode(r.target.value)}}),t.jsx("label",{htmlFor:"radioDark",children:"Dark"})]}),t.jsx("hr",{className:"mt-1"}),t.jsxs("div",{className:"radio-toolbar",children:[t.jsx("span",{className:"mb-2 d-block",i
105d:"radio-title",children:"Layout Width"}),t.jsx("input",{type:"radio",id:"radioFluid",name:"radioWidth",value:Ue.FLUID,checked:e.layoutWidth===Ue.FLUID,onChange:r=>{r.target.checked&&e.changeLayoutWidth(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"radioFluid",children:"Fluid"}),t.jsx("input",{type:"radio",id:"radioBoxed",name:"radioWidth",value:Ue.BOXED,checked:e.layoutWidth===Ue.BOXED,onChange:r=>{r.target.checked&&e.changeLayoutWidth(r.target.value)}}),t.jsx("label",{htmlFor:"radioBoxed",className:"me-1",children:"Boxed"}),t.jsx("input",{type:"radio",id:"radioscrollable",name:"radioscrollable",value:Ue.SCROLLABLE,checked:e.layoutWidth===Ue.SCROLLABLE,onChange:r=>{r.target.checked&&e.changeLayoutWidth(r.target.value)}}),t.jsx("label",{htmlFor:"radioscrollable",children:"Scrollable"})]}),t.jsx("hr",{className:"mt-1"}),t.jsxs("div",{className:"radio-toolbar",children:[t.jsx("span",{className:"mb-2 d-block",id:"radio-title",children:"Topbar Theme"}),t.jsx("input",{type:"radio",id:"radioThemeLight",name:"radioTheme",value:Ge.LIGHT,checked:e.topbarTheme===Ge.LIGHT,onChange:r=>{r.target.checked&&e.changeTopbarTheme(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"radioThemeLight",children:"Light"}),t.jsx("input",{type:"radio",id:"radioThemeDark",name:"radioTheme",value:Ge.DARK,checked:e.topbarTheme===Ge.DARK,onChange:r=>{r.target.checked&&e.changeTopbarTheme(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"radioThemeDark",children:"Dark"}),e.layoutType==="vertical"?null:t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"radio",id:"radioThemeColored",name:"radioTheme",value:Ge.COLORED,checked:e.topbarTheme===Ge.COLORED,onChange:r=>{r.target.checked&&e.changeTopbarTheme(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"radioThemeColored",children:"Colored"})," "]})]}),e.layoutType==="vertical"?t.jsxs(X.Fragment,{children:[t.jsx("hr",{className:"mt-1"}),t.jsxs("div",{className:"radio-toolbar",children:[t.jsxs("span",{className:"mb-2 d-block",id:"radio-title",children:["Left Sidebar Type"," "]}),t.jsx("input",{type:"radio",id:"sidebarDefault",name:"sidebarType",value:$e.DEFAULT,checked:e.leftSideBarType===$e.DEFAULT,onChange:r=>{r.target.checked&&e.changeSidebarType(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"sidebarDefault",children:"Default"}),t.jsx("input",{type:"radio",id:"sidebarCompact",name:"sidebarType",value:$e.COMPACT,checked:e.leftSideBarType===$e.COMPACT,onCh
105ange:r=>{r.target.checked&&e.changeSidebarType(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"sidebarCompact",children:"Compact"}),t.jsx("input",{type:"radio",id:"sidebarIcon",name:"sidebarType",value:$e.ICON,checked:e.leftSideBarType===$e.ICON,onChange:r=>{r.target.checked&&e.changeSidebarType(r.target.value)}}),t.jsx("label",{className:"me-1",htmlFor:"sidebarIcon",children:"Icon"})]}),t.jsx("hr",{className:"mt-1"}),t.jsxs("div",{className:"radio-toolbar coloropt-radio",children:[t.jsx("span",{className:"mb-2 d-block",id:"radio-title",children:"Left Sidebar Color Options"}),t.jsx(We,{children:t.jsxs(Pe,{children:[t.jsx("input",{type:"radio",id:"leftsidebarThemelight",name:"leftsidebarTheme",value:re.LIGHT,checked:e.leftSideBarTheme===re.LIGHT,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemelight",className:e.layoutModeType==="dark"?"bg-dark rounded-circle wh-30 me-1":"bg-light rounded-circle wh-30 me-1"}),t.jsx("input",{type:"radio",id:"leftsidebarThemedark",name:"leftsidebarTheme",value:re.DARK,checked:e.leftSideBarTheme===re.DARK,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemedark",className:e.layoutModeType==="light"?"bg-dark rounded-circle wh-30 me-1":"bg-light rounded-circle wh-30 me-1"}),t.jsx("input",{type:"radio",id:"leftsidebarThemecolored",name:"leftsidebarTheme",value:re.COLORED,checked:e.leftSideBarTheme===re.COLORED,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemecolored",className:"bg-colored rounded-circle wh-30 me-1"})]})}),t.jsx(We,{children:t.jsxs(Pe,{children:[t.jsx("input",{type:"radio",id:"leftsidebarThemewinter",name:"leftsidebarTheme",value:re.WINTER,checked:e.leftSideBarTheme===re.WINTER,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemewinter",className:"gradient-winter rounded-circle wh-30 me-1"}),t.jsx("input",{type:"radio",id:"leftsidebarThemeladylip",name:"leftsidebarTheme",value:re.LADYLIP,checked:e.leftSideBarTheme===re.LADYLIP,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemeladylip",className:"gradient-lady-lip rounded-circle wh-30 me-1"}),t.jsx("input",{type:"radio",id:"leftsidebarThemeplumplate",name:"leftsidebarTheme",value:re.PLUMPLATE,checked:e.leftSideBarTheme===re.PLUMPLATE,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemeplumplate",className:"gradient-plum-plate rounded-circle wh-30 me-1"}),t.jsx("input",{type:"radio",id:"leftsidebarThemestrongbliss",name:"leftsidebarTheme",value:re.STRONGBLISS,checked:e.leftSideBarTheme===re.STRONGBLISS,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemestrongbliss",className:"gradient-strong-bliss rounded-circle wh-30 me-1"}),t.jsx("input",{type:"radio",id:"leftsidebarThemesgreatwhale",name:"leftsidebarTheme",value:re.GREATWHALE,checked:e.leftSideBarTheme===re.GREATWHALE,onChange:r=>{r.target.checked&&e.changeSidebarTheme(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemesgreatwhale",className:"gradient-strong-great-whale rounded-circle wh-30 me-1"})]})})]}),t.jsxs("div",{className:"radio-toolbar imgopt-radio",children:[t.jsx("span",{className:"mb-2 d-block",id:"radio-bgimg",children:"Left Sidebar Bg Image"}),t.jsxs("div",{className:"d-flex gap-2 flex-wrap",children:[t.jsx("input",{type:"radio",id:"leftsidebarThemebgimg1",name:"leftsidebarThemeImage",value:ye.IMG1,checked:e.leftSideBarThemeImage===ye.IMG1,onChange:r=>{r.target.checked&&e.changeSidebarThemeImage(r.target.value)}}),"   ",t.jsx("input",{type:"radio",id:"leftsidebarThemebgimg2",name:"leftsidebarThemeImage",value:ye.IMG2,checked:e.leftSideBarThemeImage===ye.IMG2,onChange:r=>{r.target.checked&&e.changeSidebarThemeImage(r.target.value)}}),"   ",t.jsx("input",{type:"radio",id:"leftsidebarThemebgimg3",name:"leftsidebarThemeImage",value:ye.IMG3,checked:e.leftSideBarThemeImage===ye.IMG3,onChange:r=>{r.target.checked&&e.changeSidebarThemeImage(r.target.value)}}),"   ",t.jsx("input",{type:"radio",id:"leftsidebarThemebgimg4",name:"leftsidebarThemeImage",value:ye.IMG4,checked:e.leftSideBarThemeImage===ye.IMG4,onChange:r=>{r.target.checked&&e.changeSidebarThemeImage(r.target.value)}}),"   ",t.jsx("input",{type:"radio",id:"leftsidebarThemenone",name:"leftsidebarThemeImage",value:ye.NONE,checked:e.leftSideBarThemeImage===ye.NONE,onChange:r=>{r.target.checked&&e.changeSidebarThemeImage(r.target.value)}}),t.jsx("label",{htmlFor:"leftsidebarThemenone",children:t.jsx("div",{style:{width:"40px",height:"80px"},children:t.jsx("div",{className:"bg-light border px-2 h-100 shadow-none",children:t.jsx("div",{className:"verticalcontent",children:"None"})})})}),"   "]})]}),t.jsx("hr",{className:"mt-1"})]}):null,t.jsxs(ln,{children:[t.jsx("span",{className:"mb-2 d-block",i
105d:"radio-title",children:"Preloader"}),t.jsxs("div",{className:"form-check form-switch",children:[t.jsx("input",{type:"checkbox",className:"form-check-input checkbox",id:"checkbox_1",checked:e.isPreloader,onChange:()=>{e.changePreloader(!e.isPreloader)}}),t.jsx("label",{className:"form-check-label",htmlFor:"checkbox_1",children:"Preloader"})]})]})]})]})})}),t.jsx("div",{className:"rightbar-overlay"})]});Zs.propTypes={changeLayout:P.func,changeLayoutWidth:P.func,changePreloader:P.func,changeSidebarTheme:P.func,changeSidebarThemeImage:P.func,changeSidebarType:P.func,changeTopbarTheme:P.func,isPreloader:P.any,layoutType:P.any,layoutModeType:P.any,changeLayoutMode:P.func,layoutWidth:P.any,leftSideBarTheme:P.any,leftSideBarThemeImage:P.any,leftSideBarType:P.any,showRightSidebarAction:P.func,topbarTheme:P.any,onClose:P.func};const X2=e=>({...e.Layout}),Xs=et(X2,{changeLayout:yr,changeLayoutMode:kt,changeSidebarTheme:$a,changeSidebarThemeImage:za,changeSidebarType:ve,changeLayoutWidth:xr,changeTopbarTheme:Er,changePreloader:Bp,showRightSidebarAction:ht})(Zs),eE={"--radius-input":"input","--radius-button":"button","--radius-dropdown":"dropdown","--radius-checkbox":"checkbox","--radius-chip":"chip","--radius-card":"card","--radius-table":"table","--radius-panel":"panel","--radius-modal":"modal","--radius-toast":"toast","--radius-tooltip":"tooltip","--radius-search":"search","--radius-fab":"fab","--radius-avatar":"avatar"},er=Object.entries(eE).reduce((e,[r,s])=>(e[s]=`var(${r})`,e),{}),u5={sm:{height:"32px",padding:"8px 16px",fontSize:"13px"}},g5={height:"40px",padding:"10px 14px",fontSize:"12px",borderWidth:"1px",borderWidthActive:"1px",gap:"6px",labelFontSize:"12px",labelFontWeight:600,helperFontSize:"12px",helperLineHeight:"16px"},m5={menuPadding:"6px",menuGap:"2px",menuShadow:"0px 4px 6px rgba(0, 0, 0, 0.08)",optionPadding:"8px 12px"},ke={ACTIVE:"ACTIVE",READ_ONLY:"READ_ONLY",SUSPENDED:"SUSPENDED"},tE={[ke.READ_ONLY]:"Your subscription has ended. The account is read-only — existing data remains available.",[ke.SUSPENDED]:"Your subscription could not be activated, so this account is suspended. Existing data remains available to read. Please contact support."},la=()=>{try{const e=JSON.parse(localStorage.getItem("authUser")||"null"),r=e?.access_token||e?.token;if(r){const s=Xe(r);if(s?.user?.subscription_status)return s.user.subscription_status}}catch{}try{const e=JSON.parse(localStorage.getItem("user")||"null");if(e?.subscription_status)return e.subscription_status}catch{}return ke.ACTIVE},rE=()=>{const[e,r]=a.useState(la),s=a.useCallback(()=>r(la()),[]);a.useEffect(()=>{const i=c=>{(c.key==="authUser"||c.key==="user")&&s()};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[s]);const o=e===ke.READ_ONLY,n=e===ke.SUSPENDED;return{status:e,isReadOnly:o,isSuspended:n,canWrite:e===ke.ACTIVE,message:tE[e]||null,refresh:s}},aE={[ke.READ_ONLY]:{bg:D.toneWarningBg,border:D.toneWarningBorder,color:D.toneWarningText,icon:pn,title:"Read-only"},[ke.SUSPENDED]:{bg:D.toneDangerBg,border:D.toneDangerBorder,color:D.toneDangerText,icon:dn,title:"Account suspended"}},eo=()=>{const{status:e,canWrite:r,message:s}=rE();if(r)return null;const o=aE[e];if(!o)return null;const n=o.icon,i=me.checkReadPermission("Marketplace Subscription");return t.jsxs("div",{role:"status",style:{display:"flex",alignItems:"flex-start",gap:"10px",margin:"12px 12px 0",padding:"12px 16px",backgroundColor:o.bg,border:`1px solid ${o.border}`,borderRadius:er.card,color:o.color,fontSize:"13px"},children:[t.jsx(n,{size:18,style:{flexShrink:0,marginTop:"1px"}}),t.jsxs("div",{children:[t.jsx("div",{style:{fontWeight:600,marginBottom:"2px"},children:o.title}),t.jsx("div",{children:s}),i?t.jsx(q,{to:"/subscription",style:{color:o.color,fontWeight:600,textDecoration:"underline"},children:"View subscription"}):null]})]})},sE="/animateFavicon.svg";function Ke({size:e=50}){const r=e+10,s=3,o=(r-s*2)/2,n=2*Math.PI*o,i=`${n*.65} ${n*.35}`;return t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[t.jsx("style",{children:`
106        @keyframes spinnerPulse {
107          0%   { transform: scale(1);    opacity: 1; }
108          50%  { transform: scale(1.07); opacity: 0.85; }
109          100% { transform: scale(1);    opacity: 1; }
110        }
111        @keyframes ringRotate {
112          from { transform: rotate(0deg); }
113          to   { transform: rotate(360deg); }
114        }
115        .spinner-wrap {
116          animation: spinnerPulse 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
117          transform-origin: center;
118          position: relative;
119          display: flex;
120          align-items: center;
121          justify-content: center;
122        }
123        .spinner-ring {
124          position: absolute;
125          top: 0;
126          left: 0;
127          animation: ringRotate 1.2s linear infinite;
128          transform-origin: center;
129        }
130        .spinner-icon {
131          position: relative;
132          z-index: 1;
133        }
134      `}),t.jsxs("div",{className:"spinner-wrap",style:{width:r,height:r},children:[t.jsxs("svg",{className:"spinner-ring",width:r,height:r,viewBox:`0 0 ${r} ${r}`,fill:"none",children:[t.jsx("circle",{cx:r/2,cy:r/2,r:o,stroke:"rgba(0,0,0,0.08)",strokeWidth:s}
134),t.jsx("circle",{cx:r/2,cy:r/2,r:o,stroke:"url(#spinnerGradient)",strokeWidth:s,strokeLinecap:"round",strokeDasharray:i,transform:`rotate(-90 ${r/2} ${r/2})`}),t.jsx("defs",{children:t.jsxs("linearGradient",{id:"spinnerGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",stopColor:"#01A99B"}),t.jsx("stop",{offset:"100%",stopColor:"#01A99B"})]})})]}),t.jsx("div",{className:"spinner-icon",children:t.jsx("img",{src:sE,width:e,height:e,alt:"Loading..."})})]})]})}const to=({children:e})=>{const[r,s]=a.useState(!1);return a.useEffect(()=>{const o=setTimeout(()=>{s(!0)},500);return()=>clearTimeout(o)},[]),r?t.jsx(t.Fragment,{children:e}):t.jsx("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#ffffff",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:9999},children:t.jsx(Ke,{size:60})})},Vt="#01A99B",oE=({returnTo:e,emailEnabled:r=!0})=>{const[s,o]=a.useState(null),[n,i]=a.useState(!0),[c,m]=a.useState(!1),f=r===!1,y=async()=>{try{const h=await Hc();o(h?.data||{connected:!1,configured:!1})}catch{o({connected:!1,configured:!1})}finally{i(!1)}};a.useEffect(()=>{y()},[]);const p=async()=>{if(!f){m(!0);try{const h=await Vc();if(h?.error||!h?.data?.auth_url)throw new Error(h?.message||"Outlook integration is not configured.");sessionStorage.setItem("outlook_return_to",e||window.location.pathname+window.location.search),window.location.href=h.data.auth_url}catch(h){C.error(h?.response?.data?.message||h.message||"Could not start sign-in."),m(!1)}}},d=async()=>{if(!f){m(!0);try{await Wc(),C.success("Outlook disconnected."),await y()}catch(h){C.error(h?.response?.data?.message||h.message||"Could not disconnect.")}finally{m(!1)}}};if(!n&&s?.configured===!1)return null;const S={display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"8px 12px",margin:"0 12px 8px",background:"var(--card-bg, #fff)",border:"1px solid rgba(0,0,0,0.08)",borderRadius:"12px",fontSize:"12.5px",color:"#64748b",opacity:f?.55:1};return n?t.jsxs("div",{style:S,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[t.jsx(Jt,{size:16,color:"#94a3b8",style:{flexShrink:0}}),t.jsx("div",{style:{width:160,height:12,borderRadius:6,background:"linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%)",backgroundSize:"200% 100%",animation:"outlookShimmer 1.2s ease-in-out infinite"}})]}),t.jsx("div",{style:{width:110,height:28,borderRadius:10,background:"linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%)",backgroundSize:"200% 100%",animation:"outlookShimmer 1.2s ease-in-out infinite",flexShrink:0}}),t.jsx("style",{children:`
135          @keyframes outlookShimmer {
136            0%   { background-position: 200% 0; }
137            100% { background-position: -200% 0; }
138          }
139        `})]}):t.jsxs("div",{style:S,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",minWidth:0},children:[t.jsx(Jt,{size:16,color:!f&&s?.connected?Vt:"#94a3b8",style:{flexShrink:0}}),f?t.jsx("span",{children:"AI Email Composer is turned off for your account"}):s?.connected?t.jsxs("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["Outlook: ",t.jsx("strong",{style:{color:"#334155"},children:s.email||"connected"})]}):t.jsx("span",{children:"Connect your mailbox to send & read email replies"})]}),s?.connected?t.jsx("button",{onClick:d,disabled:c||f,title:f?"Enable AI Email Composer to manage this":void 0,style:{background:"transparent",color:"#ef4444",border:"none",fontWeight:600,fontSize:"12.5px",cursor:c||f?"not-allowed":"pointer",flexShrink:0},children:"Disconnect"}):t.jsx("button",{onClick:p,disabled:c||f,title:f?"Enable AI Email Composer to connect":void 0,style:{background:"transparent",color:Vt,border:`1.5px solid ${Vt}`,borderRadius:"10px",padding:"6px 14px",fontWeight:700,fontSize:"12.5px",lineHeight:1.1,cursor:c||f?"not-allowed":"pointer",flexShrink:0,whiteSpace:"nowrap"},children:c?"Opening…":"Connect Outlook"})]})},da="#01A99B",nE=()=>
139{const[e,r]=a.useState("list"),[s,o]=a.useState([]),[n,i]=a.useState(!0),[c,m]=a.useState(null),[f,y]=a.useState([]),[p,d]=a.useState(!1),[S,h]=a.useState(""),[l,E]=a.useState(!1),I=async()=>{i(!0);try{const _=await Yc();o(_?.data||[])}catch{o([])}finally{i(!1)}};a.useEffect(()=>{I()},[]);const L=async _=>{m(_),r("thread"),d(!0);try{const k=await Kc({threadId:_.threadId});y(k?.data||[])}catch{y([])}finally{d(!1)}},R=()=>{const _=[...f].reverse().find($=>$.direction==="in"&&$.providerMessageId),k=[...f].reverse().find($=>$.providerMessageId);return(_||k)?.providerMessageId||null},b=async()=>{const _=S.trim();if(!_)return;const k=R();if(!k)return C.error("Can't reply to this thread yet (no message id).");E(!0);try{await Qc({messageId:k,threadId:c.threadId,body:`<p>${_.replace(/\n/g,"<br>")}</p>`}),h(""),C.success("Reply sent."),await L(c)}catch($){C.error($?.response?.data?.message||"Failed to send reply.")}finally{E(!1)}},v=_=>_?new Date(_).toLocaleString([],{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"}):"";return e==="list"?t.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",background:"#fff"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px 6px"},children:[t.jsx("strong",{style:{color:"#0f2747",fontSize:15},children:"Conversations"}),t.jsx("button",{onClick:I,title:"Refresh",style:{background:"none",border:"none",cursor:"pointer",color:"#64748b"},children:t.jsx(un,{size:18})})]}),n?t.jsx("div",{style:{padding:24,color:"#94a3b8",textAlign:"center"},children:"Loading…"}):s.length===0?t.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"#94a3b8",padding:24,textAlign:"center"},children:[t.jsx(Jt,{size:34,style:{marginBottom:12}}),t.jsx("div",{style:{maxWidth:280,fontSize:13.5,lineHeight:1.5},children:"No conversations yet. When the assistant emails someone (or you reply here), the thread will appear."})]}):t.jsx("div",{style:{flex:1,overflowY:"auto",padding:"4px 8px 12px"},children:s.map(_=>t.jsxs("button",{onClick:()=>L(_),style:{display:"block",width:"100%",textAlign:"left",background:"#fff",border:"1px solid rgba(0,0,0,0.08)",borderRadius:10,padding:"10px 12px",marginBottom:8,cursor:"pointer"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:8},children:[t.jsx("strong",{style:{color:"#0f2747",fontSize:13.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.counterpart||"Unknown"}),t.jsx("span",{style:{color:"#94a3b8",fontSize:11,flexShrink:0},children:v(_.lastAt)})]}),t.jsx("div",{style:{color:"#334155",fontSize:13,marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.subject}),_.lastPreview&&t.jsx("div",{style:{color:"#94a3b8",fontSize:12,marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.lastPreview})]},_.threadId))})]}):t.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",background:"#fff"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"12px 14px",borderBottom:"1px solid rgba(0,0,0,0.06)"},children:[t.jsx("button",{onClick:()=>r("list"),style:{background:"none",border:"none",cursor:"pointer",color:"#64748b"},children:t.jsx(gn,{size:18})}),t.jsxs("div",{style:{minWidth:0},children:[t.jsx("div",{style:{fontWeight:700,color:"#0f2747",fontSize:13.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c?.subject}),t.jsx("div",{style:{color:"#94a3b8",fontSize:12,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c?.counterpart})]})]}),t.jsx("div",{style:{flex:1,overflowY:"auto",padding:12,display:"flex",flexDirection:"column",gap:8},children:p?t.jsx("div",{style:{color:"#94a3b8",textAlign:"center",padding:20},children:"Loading…"}):f.map(_=>t.jsxs("div",{style:{alignSelf:_.direction==="out"?"flex-end":"flex-start",maxWidth:"85%"},children:[t.jsx("div",{style:{background:_.direction==="out"?da:"#f1f5f9",color:_.direction==="out"?"#fff":"#0f2747",borderRadius:12,padding:"8px 12px",fontSize:13},dangerouslySetInnerHTML:{__html:_.body||""}}),t.jsx("div",{style:{fontSize:10.5,color:"#94a3b8",marginTop:2,textAlign:_.direction==="out"?"right":"left"},children:v(_.at)})]},_.id))}),t.jsxs("div",{style:{padding:10,borderTop:"1px solid rgba(0,0,0,0.06)",display:"flex",gap:8,alignItems:"flex-end"},children:[t.jsx("textarea",{value:S,onChange:_=>h(_.target.value),placeholder:"Reply…",rows:2,style:{flex:1,resize:"none",border:"1px solid rgba(0,0,0,0.12)",borderRadius:10,padding:"8px 10px",fontSize:13,color:"#0f2747"}}),t.jsx("button",{onClick:b,disabled:l||!S.trim(),style:{background:S.trim()&&!l?da:"#e2e8f0",border:"none",borderRadius:10,width:38,height:38,cursor:S.trim()&&!l?"pointer":"default",color:"#fff",flexShrink:0},children:t.jsx(sr,{size:16})})]})]})};function iE({draftId:e,subject:r,to:s,body:o,onSent:n,onDiscarded:i}){const[c,m]=a.useState("pending"),[f,y]=a.useState(!1),p=async()=>{m("sending");try{await Zc(e),m("sent"),C.success("Email sent successfully!"),n?.()}catch{m("pending"),C.error("Failed to send email. Please try again.")}},d=async()=>{try{await Xc(e),m("discarded"),i?.()}catch{C.error("Failed to discard draft.")}};if(c==="discarded")return null;const S=(I,L)=>I&&I.length>L?I.slice(0,L)+"…":I,h=120,l=o?S(o,h):null,E=o&&o.length>h;return t.jsxs("div",{style:{marginTop:"8px",background:"var(--card-bg, #fff)",border:"1.5px solid rgba(19,80,191,0.15)",borderRadius:"12px",overflow:"hidden",boxShadow:"0 2px 8px rgba(0,0,0,0.06)",fontFamily:"'Sora', system-ui, sans-serif"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px 8px",borderBottom:"1px solid rgba(0,0,0,0.06)"},children:[t.jsx("div",{style:{width:"30px",height:"30px",borderRadius:"8px",background:"linear-gradient(135deg, #01A99B, #1350BF)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:t.jsx(mn,{size:16,color:"white"})}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:"12.5px",fontWeight:700,color:"var(--heading-color, #1e293b)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:S(r||"(no subject)",42)}),s&&t.jsxs("div",{style:{fontSize:"11px",color:"#64748b",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:"2px"},children:["To: ",s]})]})]}),o&&t.jsxs("div",{style:{padding:"8px 12px 0",borderBottom:"1px solid rgba(0,0,0,0.05)"},children:[t.jsx("div",{style:{fontSize:"11.5px",color:"#475569",lineHeight:"1.6",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:f?o:l}),E&&t.jsx("button",{onClick:()=>y(I=>!I),style:{background:"none",border:"none",padding:"2px 0 8px",cursor:"pointer",fontSize:"11px",color:"#1350BF",fontWeight:600,display:"flex",alignItems:"center",gap:"2px",fontFamily:"'Sora', system-ui, sans-serif"},children:f?t.jsxs(t.Fragment,{children:[t.jsx(hn,{size:14})," Show less"]}):t.jsxs(t.Fragment,{children:[t.jsx(fn,{size:14})," Show full message"]})}),!E&&t.jsx("div",{style:{height:"8px"}})]}),t.jsx("div",{style:{padding:"8px 12px 10px"},children:c==="sent"?t.jsx("div",{style:{fontSize:"12px",color:"#16a34a",fontWeight:600},children:"✓ Email sent successfully"}):t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{fontSize:"11px",color:"#94a3b8",fontStyle:"italic",marginBottom:"8px"},children:"Drafted — not sent yet. Review before sending."}),t.jsxs("div",{style:{display:"flex",gap:"8px"},children:[t.jsxs("button",{onClick:p,disabled:c==="sending",style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"5px",padding:"8px 0",borderRadius:"8px",border:"none",background:c==="sending"?"#e2e8f0":"linear-gradient(135deg, #01A99B, #1350BF)",color:c==="sending"?"#94a3b8":"white",fontSize:"12.5px",fontWeight:600,cursor:c==="sending"?"default":"pointer",transition:"all 0.18s",fontFamily:"'Sora', system-ui, sans-serif"},children:[t.jsx(sr,{size:14}),c==="sending"?"Sending…":"Send"]}),t.jsxs("button",{onClick:d,disabled:c==="sending",style:{padding:"8px 16px",borderRadius:"8px",border:"1.5px solid rgba(0,0,0,0.1)",background:"transparent",color:"#64748b",fontSize:"12.5px",fontWeight:600,cursor:c==="sending"?"default":"pointer",transition:"all 0.15s",fontFamily:"'Sora', system-ui, sans-serif",display:"flex",alignItems:"center",gap:"4px"},children:[t.jsx(wt,{size:14}),"Discard"]})]})]})})]})}const cE=(e="")=>
139{const r=String(e).trim().split(/\s+/).filter(Boolean);return r.length?r.slice(0,2).map(s=>s[0].toUpperCase()).join(""):"–"},lE=(e="")=>{const r=String(e||"");let s=0;for(let o=0;o<r.length;o+=1)s+=r.charCodeAt(o);return Xr[s%Xr.length]},dE=({name:e="",size:r=40,shape:s="circle",fontSize:o,title:n,className:i="",style:c={}})=>t.jsx("div",{className:`d-flex align-items-center justify-content-center ${i}`,title:n??(typeof e=="string"&&e?e:void 0),style:{width:r,height:r,minWidth:r,borderRadius:s==="square"?er.chip:er.avatar,background:lE(e),color:D.avatarToneText,fontSize:o??Math.round(r*.4),fontWeight:600,letterSpacing:.5,lineHeight:1,userSelect:"none",flexShrink:0,...c},children:cE(e)});function pa(e){if(!e)return null;const r=new Date(e);return isNaN(r.getTime())?String(e):r.toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"})}const ua={approved:{label:"Approved",bg:"#dcfce7",color:"#15803d",border:"rgba(22,163,74,0.25)"},rejected:{label:"Rejected",bg:"#fee2e2",color:"#dc2626",border:"rgba(239,68,68,0.25)"},pending:{label:"Pending Approval",bg:"#fff7ed",color:"#d97706",border:"rgba(245,158,11,0.25)"}};function pE({approvalId:e,approvalPreview:r,onApproved:s,onRejected:o}){const[n,i]=a.useState("pending"),[c,m]=a.useState(!1),[f,y]=a.useState("");if(!e||!r)return null;const p=r,d=n==="approving"||n==="rejecting",S=n==="approved"||n==="rejected",h=ua[n]||ua.pending,l=async()=>{i("approving");try{await Jc(e),i("approved"),C.success(`TR ${e} approved successfully.`)}catch{i("pending"),C.error("Failed to approve. Please try again.")}},E=async()=>{if(!f.trim()){C.warning("Please enter a reason for rejection.");return}i("rejecting");try{await qc(e,f.trim()),i("rejected"),C.success(`TR ${e} rejected.`)}catch{i("pending"),C.error("Failed to reject. Please try again.")}},I=[p.soNumber&&["SO Number",p.soNumber],p.plant&&["Plant",p.plant],p.from&&["From",p.from],p.to&&["To",p.to],p.truckType&&["Truck Type",p.truckType],p.trucks&&["No. of Trucks",String(p.trucks)],p.scheduledDate&&["Scheduled Date",pa(p.scheduledDate)],p.commodity&&["Commodity",p.commodity],p.quantity&&["Quantity",p.quantity],p.expectedPrice&&["Expected Price",p.expectedPrice],p.requestedBy&&["Requested By",p.requestedBy],p.requestedAt&&["Requested At",pa(p.requestedAt)],p.remarks&&["Remarks",p.remarks]].filter(Boolean);return t.jsxs("div",{style:{marginTop:"8px",background:"var(--card-bg, #fff)",border:`1.5px solid ${h.border}`,borderRadius:"12px",overflow:"hidden",boxShadow:"0 2px 8px rgba(0,0,0,0.06)",fontFamily:"'Sora', system-ui, sans-serif",transition:"border-color 0.3s"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px 8px",background:h.bg,borderBottom:`1px solid ${h.border}`,transition:"background 0.3s"},children:[t.jsx("div",{style:{width:"30px",height:"30px",borderRadius:"8px",background:S?n==="approved"?"linear-gradient(135deg,#16a34a,#15803d)":"linear-gradient(135deg,#ef4444,#dc2626)":"linear-gradient(135deg,#f59e0b,#d97706)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:"background 0.3s"},children:n==="approved"?t.jsx(Dt,{size:16,color:"white"}):n==="rejected"?t.jsx(kr,{size:16,color:"white"}):t.jsx(va,{size:16,color:"white"})}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsxs("div",{style:{fontSize:"12.5px",fontWeight:700,color:h.color},children:["TR ",e]}),t.jsx("div",{style:{fontSize:"11px",color:h.color,marginTop:"1px",fontWeight:600},children:h.label})]})]}),I.length>0&&t.jsx("div",{style:{padding:"8px 12px",borderBottom:"1px solid rgba(0,0,0,0.05)"},children:I.map(([L,R])=>t.jsxs("div",{style:{display:"flex",gap:"6px",marginBottom:"4px",alignItems:"center"},children:[t.jsx("span",{style:{fontSize:"11px",color:"#94a3b8",minWidth:"100px",flexShrink:0},children:L}),L==="Requested By"?t.jsxs("span",{style:{fontSize:"11px",color:"#475569",fontWeight:500,display:"inline-flex",alignItems:"center",gap:"6px"},children:[t.jsx(dE,{name:R,size:18,fontSize:9}),R]}):t.jsx("span",{style:{fontSize:"11px",color:"#475569",fontWeight:500},children:R})]},L))}),n==="rejected"&&f&&t.jsxs("div",{style:{padding:"6px 12px",borderBottom:"1px solid rgba(239,68,68,0.1)",background:"#fff5f5"},children:[t.jsx("span",{style:{fontSize:"11px",color:"#94a3b8"},children:"Reason: "}),t.jsx("span",{style:{fontSize:"11px",color:"#dc2626",fontWeight:500},children:f})]}),!S&&t.jsxs("div",{style:{padding:"8px 12px 10px"},children:[c&&t.jsx("textarea",{value:f,onChange:L=>y(L.target.value),placeholder:"Enter reason for rejection...",rows:2,style:{width:"100%",boxSizing:"border-box",marginBottom:"8px",fontSize:"11.5px",borderRadius:"6px",border:"1px solid rgba(239,68,68,0.3)",padding:"6px 8px",resize:"none",fontFamily:"'Sora', system-ui, sans-serif",outline:"none"}}),t.jsxs("div",{style:{display:"flex",gap:"8px"},children:[!c&&t.jsxs("button",{onClick:l,disabled:d,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"5px",padding:"8px 0",borderRadius:"8px",border:"none",background:d?"#e2e8f0":"linear-gradient(135deg,#16a34a,#15803d)",color:d?"#94a3b8":"white",fontSize:"12.5px",fontWeight:600,cursor:d?"default":"pointer",fontFamily:"'Sora', system-ui, sans-serif"},children:[t.jsx(Dt,{size:14}),n==="approving"?"Approving…":"Approve"]}),c?t.jsxs("div",{style:{display:"flex",gap:"8px",flex:1},children:[t.jsx("button",{onClick:()=>{m(!1),y("")},disabled:d,style:{padding:"8px 12px",borderRadius:"8px",border:"1.5px solid rgba(0,0,0,0.1)",background:"transparent",color:"#64748b",fontSize:"12px",fontWeight:600,cursor:"pointer",fontFamily:"'Sora', system-ui, sans-serif"},children:"Cancel"}),t.jsxs("button",{onClick:E,disabled:d,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"5px",padding:"8px 0",borderRadius:"8px",border:"none",background:d?"#e2e8f0":"linear-gradient(135deg,#ef4444,#dc2626)",color:d?"#94a3b8":"white",fontSize:"12.5px",fontWeight:600,cursor:d?"default":"pointer",fontFamily:"'Sora', system-ui, sans-serif"},children:[t.jsx(kr,{size:14}),n==="rejecting"?"Rejecting…":"Confirm Reject"]})]}):t.jsxs("button",{onClick:()=>m(!0),disabled:d,style:{padding:"8px 16px",borderRadius:"8px",border:"1.5px solid rgba(239,68,68,0.35)",background:"transparent",color:"#ef4444",fontSize:"12.5px",fontWeight:600,cursor:d?"default":"pointer",fontFamily:"'Sora', system-ui, sans-serif",display:"flex",alignItems:"center",gap:"4px"},children:[t.jsx(wt,{size:14}),"Reject"]})]})]})]})}
139const uE=new Set(["_tr_type_name","inquiry_source_number","route_source","destination","dilevery_address","shedule_date","quantity","unit","material_type","commodity","truck_type","truck_capacity","no_of_truck","total_km","expected_price","remarks","distributor_id","truck_number","driver_name","driver_contact_number","_distributor_name","_retailer_name","retailer_id","driver_licence_number","drop_selection","_plant_name"]),ga=e=>/^_drop_\d+$/.test(e||""),gE=new Set(["_tr_type_name","inquiry_source_number","sales_document","route_source","destination","dilevery_address","material_type","total_km","plant_id","customer_code","so_quantity","_distributor_name","_retailer_name","retailer_id","distributor_id","drop_selection","_plant_name"]),mE=new Set(["shedule_date"]),hE={_tr_type_name:"TR Type",inquiry_source_number:"SO Number",route_source:"Source",destination:"Destination",dilevery_address:"Delivery Address",shedule_date:"Schedule Date",quantity:"Quantity",unit:"UOM",material_type:"Material Type",commodity:"Package Type",truck_type:"Truck Type",truck_capacity:"Truck Capacity",no_of_truck:"No. of Trucks",total_km:"Distance (km)",expected_price:"Expected Price",remarks:"Remarks",_plant_name:"Plant",distributor_id:"Distributor",_distributor_name:"Distributor",retailer_id:"Retailer",_retailer_name:"Retailer",drop_selection:"Drop Selection",truck_number:"Truck Number",driver_name:"Driver Name",driver_contact_number:"Driver Contact",driver_licence_number:"Driver's License"},fE=["_tr_type_name","inquiry_source_number","drop_selection","_plant_name","route_source","destination","dilevery_address","shedule_date","quantity","unit","material_type","commodity","truck_type","truck_capacity","no_of_truck","total_km","_distributor_name","distributor_id","_retailer_name","retailer_id","truck_number","driver_name","driver_contact_number","driver_licence_number","expected_price","remarks"];function bE({fieldKey:e,label:r,value:s,isReadOnly:o,fieldType:n,draftId:i,onUpdated:c,original:m,changed:f}){const[y,p]=a.useState(!1),[d,S]=a.useState(""),[h,l]=a.useState(!1),E=a.useRef(null);a.useEffect(()=>{o&&y&&(p(!1),S(""))},[o]);const I=()=>{o||(S(s||""),p(!0),setTimeout(()=>E.current?.focus(),0))},L=()=>{p(!1),S("")},R=async()=>{if(!h){l(!0);try{const v=await N("/ai/tr/update",{draft_id:i,field_key:e,value:d});if(v?.error)throw new Error(v.message||"Update failed");p(!1),c&&c(v.data)}catch(v){const _=v?.response?.data?.message||v.message||"Failed to update field.";C.error(_)}finally{l(!1)}}},b=v=>{v.key==="Enter"&&(v.preventDefault(),R()),v.key==="Escape"&&L()};return t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px",marginBottom:"5px"},children:[t.jsx("span",{style:{fontSize:"11px",color:"#94a3b8",minWidth:"110px",flexShrink:0,paddingTop:"2px"},children:r}),y?t.jsxs("div",{style:{flex:1,display:"flex",gap:"4px",alignItems:"center"},children:[t.jsx("input",{ref:E,type:n==="date"?"date":"text",value:d,onChange:v=>S(v.target.value),onKeyDown:b,disabled:h,style:{flex:1,fontSize:"11px",padding:"2px 6px",border:"1.5px solid #2563eb",borderRadius:"5px",outline:"none",fontFamily:"'Sora', system-ui, sans-serif",background:"#fff"}}),t.jsx("button",{onClick:R,disabled:h,title:"Save",style:{background:"none",border:"none",cursor:"pointer",color:"#16a34a",padding:"2px"},children:t.jsx(bn,{size:15})}),t.jsx("button",{onClick:L,title:"Cancel",style:{background:"none",border:"none",cursor:"pointer",color:"#ef4444",padding:"2px"},children:t.jsx(wt,{size:15})})]}):t.jsxs("div",{style:{flex:1,display:"flex",alignItems:"flex-start",gap:"4px"},children:[t.jsx("span",{onClick:o?void 0:I,style:{fontSize:"11px",color:"#475569",fontWeight:500,cursor:o?"default":"text",flex:1,borderBottom:o?"none":"1px dashed transparent",transition:"border-color 0.15s"},onMouseEnter:v=>{o||(v.currentTarget.style.borderBottomColor="#2563eb30")},onMouseLeave:v=>{v.currentTarget.style.borderBottomColor="transparent"},children:f?t.jsxs("span",{children:[t.jsx("span",{style:{textDecoration:"line-through",color:"#94a3b8"},children:m??"—"}),t.jsx("span",{style:{color:"#94a3b8"},children:" → "}),t.jsx("span",{style:{color:"#7c3aed",fontWeight:700},children:s||"—"})]}):s||"—"}),!o&&t.jsx("button",{onClick:I,title:"Edit this field",style:{background:"none",border:"none",cursor:"pointer",color:"#cbd5e1",padding:"1px",flexShrink:0,opacity:.6,transition:"color 0.15s, opacity 0.15s"},onMouseEnter:v=>{v.currentTarget.style.color="#2563eb",v.currentTarget.style.opacity="1"},onMouseLeave:v=>{v.currentTarget.style.color="#cbd5e1",v.currentTarget.style.opacity="0.6"},children:t.jsx(qt,{size:12})})]})]})}function yE({trPreview:e,persistedStatus:r,persistedInquiryId:s,onSubmitted:o,onDiscarded:n,onEditRequest:i}
139){const[c,m]=a.useState(!1),[f,y]=a.useState(null),[p,d]=a.useState(!1),[S,h]=a.useState(""),[l,E]=a.useState(e?.draft_id);if(a.useEffect(()=>{E(e?.draft_id)},[e?.draft_id]),!e)return null;const I=l||e.draft_id,L=f||e.summary,R=Array.isArray(L?.fields)?L.fields:[],b=r||"staged",v=s||null,_=!!e.is_edit,k=v||e.inquiry_id||null,$=b==="submitted"||b==="discarded"||b==="reviewed",J={};for(const M of R)J[M.field_key]=M;const ee=[];for(const M of fE)uE.has(M)&&J[M]&&J[M].value&&ee.push(J[M]);for(const M of R)ga(M.field_key)&&M.value&&ee.push(M);const Ee=_?"#7c3aed":"#1e40af",Z=_?"#f5f3ff":"#eff6ff",oe=_?"rgba(124,58,237,0.25)":"rgba(37,99,235,0.25)",Q=b==="submitted"?"#15803d":b==="discarded"?"#6b7280":b==="reviewed"?"#7c3aed":Ee,Qe=b==="submitted"?"#dcfce7":b==="discarded"?"#f1f5f9":b==="reviewed"?"#f5f3ff":Z,Se=b==="submitted"?"rgba(22,163,74,0.25)":b==="discarded"?"rgba(0,0,0,0.08)":b==="reviewed"?"rgba(124,58,237,0.25)":oe,Be=async()=>{if(!($||c)){m(!0);try{const M=await N("/ai/tr/submit",{draft_id:I});if(M?.error)throw new Error(M.message||"Submit failed");const ae=M.data?.inquiry_id;C.success(_?`Transport Request ${ae||k||""} updated successfully.`:`Transport Request ${ae||""} created successfully.`),o&&o(ae,M.data?.summary),_||y(null)}catch(M){const ae=M?.response?.data?.message||M.message||"Failed to create TR. Please try again.";C.error(ae)}finally{m(!1)}}},_e=async()=>{if(!$){n&&n();try{await N("/ai/tr/discard",{draft_id:I})}catch{}}},Ce=()=>{S.trim()&&(i&&i(`Edit draft ${I}: ${S.trim()}`),h(""),d(!1))};return t.jsxs("div",{style:{marginTop:"8px",background:"var(--card-bg, #fff)",border:`1.5px solid ${Se}`,borderRadius:"12px",overflow:"hidden",boxShadow:"0 2px 8px rgba(0,0,0,0.06)",fontFamily:"'Sora', system-ui, sans-serif"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px 8px",background:Qe,borderBottom:`1px solid ${Se}`},children:[t.jsx("div",{style:{width:"30px",height:"30px",borderRadius:"8px",background:b==="submitted"?"linear-gradient(135deg,#16a34a,#15803d)":b==="discarded"?"linear-gradient(135deg,#6b7280,#4b5563)":b==="reviewed"||b==="staged"&&_?"linear-gradient(135deg,#7c3aed,#6d28d9)":"linear-gradient(135deg,#2563eb,#1d4ed8)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:b==="submitted"?t.jsx(Dt,{size:16,color:"white"}):b==="reviewed"||b==="staged"&&_?t.jsx(qt,{size:16,color:"white"}):t.jsx(va,{size:16,color:"white"})}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:"12.5px",fontWeight:700,color:Q},children:b==="submitted"?_?`TR ${k||""} Updated Successfully`:`TR ${v||""} Created Successfully`:b==="discarded"?"TR Cancelled":b==="reviewed"?"Original Details (Before Edit)":_?`Edit TR ${k||""} — Review Changes`:"Transport Request Preview"}),t.jsxs("div",{style:{fontSize:"11px",color:Q,marginTop:"1px",fontWeight:500,opacity:.75},children:[b==="staged"&&(_?"Review the changes below • then Submit":"Click any editable field to update • then Submit"),b==="submitting"&&(_?"Updating…":"Creating…"),b==="submitted"&&(_?"The Transport Request has been updated":"View in Transport Requests list"),b==="discarded"&&"This TR was not created",b==="reviewed"&&"Original values before your edit • final values submitted below"]})]})]}),ee.length>0&&t.jsx("div",{style:{padding:"10px 12px",borderBottom:$?"none":"1px solid rgba(0,0,0,0.05)"},children:ee.map(M=>t.jsx(bE,{fieldKey:M.field_key,label:hE[M.field_key]||M.label,value:M.value,original:M.original,changed:M.changed,isReadOnly:$||gE.has(M.field_key)||ga(M.field_key),fieldType:mE.has(M.field_key)?"date":"text",draftId:I,onUpdated:ae=>{ae?.summary&&y(ae.summary),ae?.draft_id&&E(ae.draft_id)}},M.field_key))}),!$&&t.jsxs("div",{style:{padding:"8px 12px 10px"},children:[p&&t.jsxs("div",{style:{marginBottom:"8px"},children:[t.jsx("input",{value:S,onChange:M=>h(M.target.value),onKeyDown:M=>M.key==="Enter"&&Ce(),placeholder:'Describe a change, e.g. "change truck type to 32ft Container"',autoFocus:!0,style:{width:"100%",boxSizing:"border-box",fontSize:"11.5px",borderRadius:"6px",border:"1px solid rgba(37,99,235,0.3)",padding:"6px 8px",fontFamily:"'Sora', system-ui, sans-serif",outline:"none"}}),t.jsxs("div",{style:{display:"flex",gap:"6px",marginTop:"4px"},children:[t.jsx("button",{onClick:()=>{d(!1),h("")},style:{padding:"5px 10px",borderRadius:"6px",border:"1.5px solid rgba(0,0,0,0.1)",background:"transparent",color:"#64748b",fontSize:"11px",fontWeight:600,cursor:"pointer",fontFamily:"'Sora', system-ui, sans-serif"},children:"Cancel"}),t.jsx("button",{onClick:Ce,style:{flex:1,padding:"5px 10px",borderRadius:"6px",border:"none",background:"linear-gradient(135deg,#2563eb,#1d4ed8)",color:"white",fontSize:"11px",fontWeight:600,cursor:"pointer",fontFamily:"'Sora', system-ui, sans-serif"},children:"Send to AI"})]})]}),!p&&t.jsxs("div",{style:{display:"flex",gap:"8px"},children:[t.jsxs("button",{onClick:Be,disabled:c,style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"5px",padding:"9px 12px",borderRadius:"8px",border:"none",background:c?"#e2e8f0":"linear-gradient(135deg,#16a34a,#15803d)",color:c?"#94a3b8":"white",fontSize:"12.5px",fontWeight:600,cursor:c?"default":"pointer",fontFamily:"'Sora', system-ui, sans-serif",whiteSpace:"nowrap"},children:[t.jsx(Dt,{size:14}),c?_?"Updating…":"Creating…":_?"Submit Changes":"Submit"]}),t.jsxs("button",{onClick:()=>d(!0),disabled:c,title:"Describe a change to send to AI",style:{padding:"8px 14px",borderRadius:"8px",border:"1.5px solid rgba(37,99,235,0.35)",background:"transparent",color:"#2563eb",fontSize:"12.5px",fontWeight:600,cursor:c?"default":"pointer",fontFamily:"'Sora', system-ui, sans-serif",display:"flex",alignItems:"center",gap:"4px"},children:[t.jsx(qt,{size:13})," Edit"]}),t.jsxs("button",{onClick:_e,disabled:c,style:{padding:"8px 14px",borderRadius:"8px",border:"1.5px solid rgba(239,68,68,0.35)",background:"transparent",color:"#ef4444",fontSize:"12.5px",fontWeight:600,cursor:c?"default":"pointer",fontFamily:"'Sora', system-ui, sans-serif",display:"flex",alignItems:"center",gap:"4px"},children:[t.jsx(wt,{size:13})," Cancel"]})]})]})]})}function xE({fieldKey:e,label:r,initialOptions:s=[],searchParams:o={},onSelect:n}
139){const[i,c]=a.useState(""),[m,f]=a.useState(s||[]),[y,p]=a.useState(!1),[d,S]=a.useState(!1),[h,l]=a.useState(-1),E=a.useRef(null),I=a.useRef(null),L=a.useRef(0),R=a.useMemo(()=>JSON.stringify(o||{}),[o]);a.useEffect(()=>{const _=k=>{E.current&&!E.current.contains(k.target)&&S(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]),a.useEffect(()=>{const _=i.trim();if(!_){f(s||[]),p(!1);return}return p(!0),I.current&&clearTimeout(I.current),I.current=setTimeout(async()=>{const k=++L.current;try{const $=new URLSearchParams({field_key:e,search:_}),J=JSON.parse(R);Object.entries(J).forEach(([Ee,Z])=>{Z!=null&&$.append(Ee,Z)});const ee=await B(`/ai/tr/field-options?${$.toString()}`);if(k!==L.current)return;f(Array.isArray(ee?.data)?ee.data:[])}catch{k===L.current&&f([])}finally{k===L.current&&p(!1)}},250),()=>{I.current&&clearTimeout(I.current)}},[i,e,R,s]);const b=_=>{const k=String(_.label||_.value||_.id||""),$=_.value??_.id??"";n&&n(k,$)},v=_=>{d&&(_.key==="ArrowDown"?(_.preventDefault(),l(k=>Math.min(k+1,m.length-1))):_.key==="ArrowUp"?(_.preventDefault(),l(k=>Math.max(k-1,0))):_.key==="Enter"&&h>=0&&m[h]?(_.preventDefault(),b(m[h])):_.key==="Escape"&&S(!1))};return t.jsxs("div",{className:"cb-search-select",ref:E,children:[t.jsx("div",{className:"cb-search-label",children:r}),t.jsxs("div",{className:"cb-search-inputwrap",children:[t.jsx(yn,{className:"cb-search-icon",size:15}),t.jsx("input",{className:"cb-search-input",type:"text",value:i,placeholder:`Search ${r.toLowerCase()}…`,onChange:_=>{c(_.target.value),S(!0),l(-1)},onFocus:()=>S(!0),onKeyDown:v,autoComplete:"off"})]}),d&&t.jsxs("div",{className:"cb-search-dropdown",children:[y&&t.jsx("div",{className:"cb-search-empty",children:"Searching…"}),!y&&m.length===0&&t.jsx("div",{className:"cb-search-empty",children:i.trim()?"No matches — try different letters.":"Type to search…"}),!y&&m.map((_,k)=>{const $=String(_.label||_.value||_.id||"");return t.jsx("button",{type:"button",className:`cb-search-opt${k===h?" active":""}`,onMouseEnter:()=>l(k),onClick:()=>b(_),children:$},`${_.value??_.id??k}`)})]})]})}const EE=[{cmd:"/help",label:"Help",desc:"List the commands available on this screen",help:!0},{cmd:"/track",label:"Track my trucks",desc:"Live locations of your trucks right now",send:"Where are my trucks right now? Show live locations.",perm:["Transport Request","read"]},{cmd:"/report-bug",label:"Report a bug",desc:"Raise a Service Desk ticket for something not working",send:"I want to report a bug. Ask me what is not working, then raise a support ticket for it."},{cmd:"/my-tickets",label:"My support tickets",desc:"Status of the support tickets you raised",send:"Show my Service Desk support tickets and their status"}],SE=[{match:"/service-desk",commands:[{cmd:"/queue-summary",label:"Queue summary",desc:"Open / needs-human / escalated ticket counts",send:"Summarise the Service Desk queue: how many tickets are open, needs human, escalated and resolved?",perm:["Service Desk","read"]},{cmd:"/needs-human",label:"Needs human",desc:"Tickets waiting on a human decision",send:"List the Service Desk tickets with status needs_human, oldest first",perm:["Service Desk","read"]},{cmd:"/oldest-open",label:"Oldest open tickets",desc:"Longest-waiting open tickets",send:"Show the oldest open Service Desk tickets with their age and category",perm:["Service Desk","read"]}]},{match:"/transport-request",commands:[{cmd:"/pending-approval",label:"Pending approvals",desc:"Transport requests awaiting your approval",send:"List the transport requests pending my approval",perm:["View Transport Request & Approve","read"],feature:"tr_approval_webchat"},{cmd:"/open-trs",label:"Open transport requests",desc:"Open / active transport requests",send:"Show the open / active transport requests",perm:["Transport Request","read"]},{cmd:"/create-tr",label:"Create transport request",desc:"Start creating a new transport request",send:"I want to create a new transport request",perm:["Transport Request","create"],feature:"tr_creation_webchat"},{cmd:"/track-tr",label:"Track trucks",desc:"Live GPS locations of your trucks",send:"Where are my trucks right now? Show live GPS locations.",perm:["Transport Request","read"]},{cmd:"/quotes",label:"Quotes received",desc:"Quotes received against your inquiries",send:"Show the quotes received against my inquiries",perm:[["Quotation Tab","read"],["Quotation Approve Action","read"]]},{cmd:"/rate-check",label:"Rate check",desc:"Compare received quotes vs city freight rates",send:"Compare the freight quotes I received against the city freight reference rates",perm:[["City Freight Rates","read"],["Freight Analysis Dashboard","read"]]},{cmd:"/delivery-status",label:"Delivery status",desc:"Delivery / dispatch progress of your requests",send:"Show the delivery / dispatch progress of my transport requests",perm:["Delivery Status Progress","read"]}]},{match:"/contract",commands:[{cmd:"/contract-approval",label:"Contract approvals",desc:"Contracts awaiting your approval",send:"List the contracts awaiting my approval with their approval progress",perm:["Contract List","create"],feature:"contract_multi_level_approval"},{cmd:"/expiring-contracts",label:"Expiring contracts",desc:"Contracts expiring soon",send:"Which of my contracts are expiring soon? Show validity end dates.",perm:[["Contract Master","read"],["Contract List","read"]]},{cmd:"/rate-comparison",label:"Rate comparison",desc:"Contract rates vs current market rates",send:"Compare my active contract rates against current market / city freight rates",perm:[["Contract Master","read"],["Contract List","read"]]},{cmd:"/contract-status",label:"Contract status summary",desc:"Contracts grouped by status",send:"Show a summary of my contracts by status (Draft, Submitted, Active)",perm:[["Contract Master","read"],["Contract List","read"]]}]},{match:"/gate-pass",commands:[{cmd:"/delivery-status",label:"Delivery status",desc:"Current delivery / dispatch status",send:"Show the current delivery / dispatch status",perm:[["Delivery Status Progress","read"],["Dispatch","read"]]},{cmd:"/epod",label:"ePOD status",desc:"Proof-of-delivery status for recent dispatches",send:"Show proof-of-delivery (ePOD) status for recent dispatches",perm:["ePOD","read"]},{cmd:"/dwell",label:"Dwell time",desc:"Truck dwell time at the gate / plant",send:"Show truck dwell time at the gate / plant for recent dispatches",perm:[["Delivery Status Progress","read"],["Dispatch","read"]]},{cmd:"/track",label:"Track my trucks",desc:"Live locations of your trucks right now",send:"Where are my trucks right now? Show live locations.",perm:["Transport Request","read"]}]},{match:"/dashboard",commands:[{cmd:"/summary",label:"Dispatch summary",desc:"Today's dispatch summary",send:"Give me today's dispatch summary",perm:["Daily Dispatch Summary","read"]},{cmd:"/freight-trends",label:"Freight trends",desc:"Quantity and freight trends",send:"Show quantity and freight trends",perm:["Quantity & Freight Trends","read"]}
139,{cmd:"/transporter-performance",label:"Transporter performance",desc:"Summary of transporter performance",send:"Summarise transporter performance",perm:[["Transporter Trends","read"],["Transporter 360","read"]]},{cmd:"/pending-invoices",label:"Pending invoices",desc:"Invoices pending action",send:"Show pending invoices",perm:["Pending Invoice Report","read"]},{cmd:"/delayed",label:"Delayed shipments",desc:"Shipments running late",send:"Which shipments are delayed?",perm:["Delivery Status Progress","read"]}]},{match:"/quotation",commands:[{cmd:"/quotes",label:"Quotes for this inquiry",desc:"Quotes received for this inquiry",send:"Show the quotes received for this inquiry",perm:[["Quotation Tab","read"],["Quotation Approve Action","read"]]},{cmd:"/benchmark",label:"Benchmark rates",desc:"Compare quotes vs city freight rates",send:"Compare these quotes against the city freight reference rates",perm:[["City Freight Rates","read"],["Freight Analysis Dashboard","read"]]}]},{match:"/transporter-inquiry",commands:[{cmd:"/quotes",label:"Quotes received",desc:"Quotes received against inquiries",send:"Show the quotes received against my inquiries",perm:[["Quotation Tab","read"],["Quotation Approve Action","read"]]},{cmd:"/benchmark",label:"Benchmark rates",desc:"Compare quotes vs city freight rates",send:"Compare the received quotes against the city freight reference rates",perm:[["City Freight Rates","read"],["Freight Analysis Dashboard","read"]]}]},{match:"/einvoice",commands:[{cmd:"/einvoices",label:"Recent e-invoices",desc:"Recent e-invoices and IRN status",send:"Show my recent e-invoices and their IRN status",perm:["EInvoice","read"]},{cmd:"/pending-irn",label:"Pending IRN",desc:"E-invoices pending IRN generation",send:"Which e-invoices are pending IRN generation?",perm:["EInvoice","read"]}]},{match:"/transporter-360",commands:[{cmd:"/performance",label:"Transporter performance",desc:"Performance and quote history",send:"Summarise this transporter's performance and quote history",perm:[["Transporter 360","read"],["Transporters Tab","read"]]},{cmd:"/routes",label:"Route coverage",desc:"Routes this transporter covers",send:"Which routes does this transporter cover?",perm:["Transporters Tab","read"]}]}],_E=(e,r)=>!r||!e?!0:e[r]!==!1,TE=(e,r)=>{if(!e)return!0;if(Array.isArray(e[0]))return e.some(([n,i])=>r(n,i));const[s,o]=e;return r(s,o)},AE=(e,{checkPermission:r,features:s})=>{let o=null;for(const m of SE)(e===m.match||e.startsWith(m.match+"/"))&&(!o||m.match.length>o.match.length)&&(o=m);const n=o?o.commands:[],i=new Set,c=[];for(const m of[...n,...EE])i.has(m.cmd)||TE(m.perm,r)&&_E(s,m.feature)&&(i.add(m.cmd),c.push(m));return c},vE=[{icon:"📍",text:"Where is my truck?"},{icon:"📋",text:"How many inquiries are pending?"},{icon:"🚛",text:"How many trucks are in transit?"},{icon:"🗺️",text:"Which route has the maximum operations?"}],ma=()=>({id:1,from:"bot",text:`Hello! I'm **AeonX IQ**, your AI-powered logistics assistant. I can help you track shipments, check inquiries, analyze routes, and much more.
140
141How can I assist you today?`,time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),liked:null}),Ye=(e,r)=>String(e).split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((o,n)=>o.startsWith("**")&&o.endsWith("**")?t.jsx("strong",{children:o.slice(2,-2)},`${r}-b${n}`):o.startsWith("`")&&o.endsWith("`")?t.jsx("code",{className:"cb-md-code",children:o.slice(1,-1)},`${r}-c${n}`):t.jsx("span",{children:o},`${r}-t${n}`)),tr=e=>{let r=e.trim();return r.startsWith("|")&&(r=r.slice(1)),r.endsWith("|")&&(r=r.slice(0,-1)),r.split("|").map(s=>s.trim())},ha=e=>e.includes("|"),fa=e=>{if(!e.includes("-"))return!1;const r=tr(e);return r.length>0&&r.every(s=>/^:?-{1,}:?$/.test(s))},LE=e=>{if(!e)return null;const r=String(e).replace(/\r/g,"").split(`
142`),s=[];let o=[],n=null,i=!1,c=0;const m=()=>{o.length&&(s.push({type:"p",lines:o.slice()}),o=[])},f=()=>{n&&(s.push({type:"list",ordered:n.ordered,items:n.items.slice()}),n=null)};for(;c<r.length;){const y=r[c],p=y.trim();if(ha(y)&&c+1<r.length&&fa(r[c+1])){m(),f();const l=tr(y);c+=2;const E=[];for(;c<r.length&&r[c].trim()!==""&&ha(r[c])&&!fa(r[c]);)E.push(tr(r[c])),c++;s.push({type:"table",header:l,rows:E}),i=!1;continue}const d=/^(#{1,6})\s+(.*)$/.exec(p);if(d){m(),f(),s.push({type:"h",level:d[1].length,text:d[2]}),i=!1,c++;continue}const S=/^[-*]\s+(.*)$/.exec(p),h=/^(\d+)[.)]\s+(.*)$/.exec(p);if(S||h){m();const l=!!h;(!n||n.ordered!==l)&&(f(),n={ordered:l,items:[]}),n.items.push({text:S?S[1]:h[2],cont:[]}),i=!1,c++;continue}if(p===""){n||m(),i=!0,c++;continue}if(n&&!i&&n.items.length){n.items[n.items.length-1].cont.push(p),c++;continue}f(),o.push(p),i=!1,c++}return m(),f(),s.map((y,p)=>{if(y.type==="table")return t.jsx("div",{className:"cb-md-tablewrap",children:t.jsxs("table",{className:"cb-md-table",children:[t.jsx("thead",{children:t.jsx("tr",{children:y.header.map((d,S)=>t.jsx("th",{children:Ye(d,`th${p}-${S}`)},S))})}),t.jsx("tbody",{children:y.rows.map((d,S)=>t.jsx("tr",{children:d.map((h,l)=>t.jsx("td",{children:Ye(h,`td${p}-${S}-${l}`)},l))},S))})]})},`tb${p}`);
142if(y.type==="h")return t.jsx("div",{className:"cb-md-h",style:{fontSize:y.level<=2?"14px":"13px"},children:Ye(y.text,`h${p}`)},`h${p}`);if(y.type==="list"){const d=y.ordered?"ol":"ul";return t.jsx(d,{className:"cb-md-list",children:y.items.map((S,h)=>t.jsxs("li",{children:[Ye(S.text,`li${p}-${h}`),S.cont.map((l,E)=>t.jsx("div",{className:"cb-md-li-cont",children:Ye(l,`li${p}-${h}-c${E}`)},E))]},h))},`l${p}`)}return t.jsx("div",{className:"cb-md-p",children:y.lines.map((d,S)=>t.jsxs("span",{children:[Ye(d,`p${p}-${S}`),S<y.lines.length-1&&t.jsx("br",{})]},S))},`p${p}`)})};function CE(){const e=je(),[r,s]=a.useState(!1),[o,n]=a.useState("aeonxiq"),[i,c]=a.useState([ma()]),[m,f]=a.useState(""),[y,p]=a.useState(!1),[d,S]=a.useState(!1),[h,l]=a.useState(null),[E,I]=a.useState(null),[L,R]=a.useState(!1),[b,v]=a.useState(null),[_,k]=a.useState(!1),[$,J]=a.useState(0),[ee,Ee]=a.useState("right"),[Z,oe]=a.useState(0),[Q,Qe]=a.useState(!0),[Se,Be]=a.useState(null),[_e,Ce]=a.useState(!1),[M,ae]=a.useState(""),[we,Te]=a.useState(0),De=500,tt=a.useRef(null);a.useRef(null);const Ae=a.useRef(null),be=a.useRef(null);a.useEffect(()=>{let x=!0;return B("/ai-config").then(z=>{if(!x)return;const O=z?.data||[],G=K=>O.some(de=>de.feature===K&&de.is_enabled);Qe(G("ai_comms")&&G("web_chat_agent"));const Y={};O.forEach(K=>{K&&K.feature&&(Y[K.feature]=!!K.is_enabled)}),Be(Y)}).catch(()=>{}),()=>{x=!1}},[]);const ft=a.useMemo(()=>{if(!cr())return!1;const x=localStorage.getItem("user");if(x)try{if(JSON.parse(x)?.chat_bot===!1)return!1}catch{}return!0},[]);a.useEffect(()=>{try{const x=JSON.parse(localStorage.getItem("user"));x?.id&&I(x.id)}catch{}},[]),a.useEffect(()=>{r?(S(!0),J(0),setTimeout(()=>be.current?.focus(),320)):setTimeout(()=>S(!1),250)},[r]),a.useEffect(()=>{d&&tt.current?.scrollIntoView({behavior:"smooth"})},[i,y,d]),a.useEffect(()=>{r&&!h&&E&&bt()},[r,E,h]),a.useEffect(()=>{if(h&&Ae.current){const x=Ae.current;Ae.current=null,te(x,h)}},[h]),a.useEffect(()=>{be.current&&(be.current.style.height="auto",be.current.style.height=Math.min(be.current.scrollHeight,100)+"px")},[m]);const bt=async()=>{if(!L){R(!0);try{const x=await Mr({user_id:E});!x.error&&x.data?.chat_session_id?l(x.data.chat_session_id):C.error("Failed to initialize chat session")}catch(x){console.error("Error creating chat session:",x),C.error("Failed to connect to chatbot")}finally{R(!1)}}},Re=()=>{s(!1),k(!1)},rt=(x,z)=>{navigator.clipboard.writeText(x).then(()=>{v(z),setTimeout(()=>v(null),2e3)})},ce=x=>U(x),j=(x,z)=>{let O=null;c(G=>G.map(Y=>Y.id===x?(O=Y,{...Y,liked:Y.liked===z?null:z}):Y)),O?.serverId&&O.liked!==z&&zc({message_id:O.serverId,feedback:z?1:-1,question:O.question||null}).catch(()=>{})},F=()=>{c([ma()]),l(null)},U=async(x,z=null)=>{const O=x.trim();if(!O||O.length>De)return;const G=(z??O).trim(),Y={id:Date.now(),from:"user",text:G,time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})};if(c(K=>[...K,Y]),f(""),oe(0),p(!0),r||J(K=>K+1),L){Ae.current=O;return}if(!h&&E){Ae.current=O,R(!0);try{const K=await Mr({user_id:E});!K.error&&K.data?.chat_session_id?l(K.data.chat_session_id):(C.error("Failed to initialize chat session"),p(!1),Ae.current=null)}catch{C.error("Failed to connect to chatbot"),p(!1),Ae.current=null}finally{R(!1)}return}h?await te(O,h):(C.error("Unable to initialize chat session. Please try again."),p(!1))},te=async(x,z)=>{try{const O=await $c({user_id:E,chat_session_id:z,message:x}),G={id:Date.now()+1,serverId:O.data?.message_id||null,question:x,from:"bot",liked:null,time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),text:!O.error&&O.data?.reply?O.data.reply:"Sorry, I couldn't process your request. Please try again.",draftId:O.data?.draft_id||null,draftPreview:O.data?.draft_preview||null,approvalId:O.data?.approval_id||null,approvalPreview:O.data?.approval_preview||null,trPreview:O.data?.tr_preview||null,fieldSelections:O.data?.field_selections||null};c(Y=>[...Y,G]),r||J(Y=>Y+1),O.error&&C.error(O.message||"Failed to send message")}catch(O){console.error("Error sending message:",O),c(G=>[...G,{id:Date.now()+1,from:"bot",liked:null,text:"Sorry, there was an error connecting to the chatbot. Please try again.",time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}]),C.error("Failed to send message")}finally{p(!1)}},le=a.useMemo(()=>AE(e.pathname,{checkPermission:me.checkPermission,features:Se}),[e.pathname,Se]),W=a.useMemo(()=>M?le.filter(x=>x.cmd.slice(1).toLowerCase().includes(M)||(x.label||"").toLowerCase().includes(M)):le,[le,M]),Ne=()=>{Ce(!1),ae(""),Te(0)},Cr=x=>{if(x){if(Ne(),f(""),oe(0),be.current&&(be.current.style.height="20px"),x.help){const z=le.filter(G=>!G.help),O=z.length?z.map(G=>`**${G.cmd}** — ${G.desc}`).join(`
143`):"No quick commands are available on this screen for your role.";c(G=>[...G,{id:Date.now(),from:"bot",liked:null,text:`Here are the commands you can use on this screen:
144
145${O}`,time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}]),r||J(G=>G+1);return}U(x.send)}},fo=x=>
145{if(_e&&W.length>0){if(x.key==="ArrowDown"){x.preventDefault(),Te(z=>(z+1)%W.length);return}if(x.key==="ArrowUp"){x.preventDefault(),Te(z=>(z-1+W.length)%W.length);return}if(x.key==="Enter"&&!x.shiftKey||x.key==="Tab"){x.preventDefault(),Cr(W[Math.min(we,W.length-1)]);return}if(x.key==="Escape"){x.preventDefault(),Ne();return}}x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),U(m))},bo=x=>{const z=x.target.value;z.length>De||(f(z),oe(z.length),z.startsWith("/")&&!z.includes(" ")?(Ce(!0),ae(z.slice(1).toLowerCase()),Te(0)):_e&&Ne())};return ft?t.jsxs(t.Fragment,{children:[t.jsx("style",{children:`
146        @import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');
147
148        .cb-root * { box-sizing: border-box; }
149
150        @keyframes chatDotBounce {
151          0%, 60%, 100% { transform: translateY(0) scale(1); }
152          30% { transform: translateY(-6px) scale(1.1); }
153        }
154        @keyframes popIn {
155          0% { opacity: 0; transform: scale(0.85) translateY(24px); }
156          65% { transform: scale(1.015) translateY(-2px); }
157          100% { opacity: 1; transform: scale(1) translateY(0); }
158        }
159        @keyframes popOut {
160          0% { opacity: 1; transform: scale(1) translateY(0); }
161          100% { opacity: 0; transform: scale(0.88) translateY(20px); }
162        }
163        @keyframes msgSlideIn {
164          from { opacity: 0; transform: translateY(10px); }
165          to { opacity: 1; transform: translateY(0); }
166        }
167        @keyframes pulseRing {
168          0% { transform: scale(1); opacity: 0.6; }
169          100% { transform: scale(1.55); opacity: 0; }
170        }
171        @keyframes shimmer {
172          0% { background-position: -200% center; }
173          100% { background-position: 200% center; }
174        }
175        @keyframes badgePop {
176          0% { transform: scale(0); }
177          70% { transform: scale(1.2); }
178          100% { transform: scale(1); }
179        }
180
181        .cb-popup-enter { animation: popIn 0.32s cubic-bezier(0.34, 1.1, 0.64, 1) forwards; }
182        .cb-popup-exit { animation: popOut 0.22s ease forwards; }
183
184        .cb-messages::-webkit-scrollbar { width: 4px; }
185        .cb-messages::-webkit-scrollbar-track { background: transparent; }
186        .cb-messages::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.4); border-radius: 4px; }
187        .cb-messages::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.7); }
188
189        .cb-msg-row { animation: msgSlideIn 0.22s ease forwards; }
190
191        .cb-action-btn {
192          background: none;
193          border: none;
194          cursor: pointer;
195          color: #94a3b8;
196          padding: 3px;
197          border-radius: 5px;
198          display: flex;
199          align-items: center;
200          transition: color 0.15s, background 0.15s;
201        }
202        .cb-action-btn:hover { color: #475569; background: rgba(0,0,0,0.06); }
203        .cb-action-btn.active { color: #1350BF; }
204
205        .cb-suggest-btn {
206          background: rgba(1,169,155,0.06);
207          border: 1.5px solid rgba(1,169,155,0.18);
208          border-radius: 10px;
209          padding: 9px 13px;
210          font-size: 12.5px;
211          color: var(--heading-color, #1e293b);
212          text-align: left;
213          cursor: pointer;
214          transition: all 0.2s ease;
215          font-weight: 500;
216          display: flex;
217          align-items: center;
218          gap: 8px;
219          font-family: 'Sora', sans-serif;
220        }
221        .cb-suggest-btn:hover {
222          background: linear-gradient(135deg, #01A99B, #1350BF);
223          color: white;
224          border-color: transparent;
225          transform: translateX(4px);
226          box-shadow: 0 4px 14px rgba(19,80,191,0.22);
227        }
228
229        .cb-cmd-palette {
230          position: absolute;
231          left: 12px;
232          right: 12px;
233          bottom: calc(100% - 6px);
234          background: var(--card-bg, #fff);
235          border: 1px solid rgba(0,0,0,0.08);
236          border-radius: 12px;
237          box-shadow: 0 10px 30px rgba(0,0,0,0.14);
238          padding: 6px;
239          max-height: 260px;
240          overflow-y: auto;
241          z-index: 20;
242          font-family: 'Sora', sans-serif;
243          animation: msgSlideIn 0.16s ease forwards;
244        }
245        .cb-cmd-palette::-webkit-scrollbar { width: 4px; }
246        .cb-cmd-palette::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.4); border-radius: 4px; }
247        .cb-cmd-palette-head {
248          font-size: 10.5px;
249          font-weight: 600;
250          text-transform: uppercase;
251          letter-spacing: 0.4px;
252          color: #64748b;
253          padding: 5px 9px 7px;
254        }
255        .cb-cmd-item {
256          width: 100%;
257          background: none;
258          border: none;
259          border-radius: 9px;
260          padding: 8px 10px;
261          cursor: pointer;
262          display: flex;
263          flex-direction: column;
264          align-items: flex-start;
265          gap: 2px;
266          text-align: left;
267          transition: background 0.12s;
268        }
269        .cb-cmd-item.active { background: rgba(1,169,155,0.10); }
270        .cb-cmd-token {
271          font-size: 13px;
272          font-weight: 600;
273          color: #1350BF;
274          font-family: 'Sora', sans-serif;
275        }
276        .cb-cmd-desc { font-size: 11.5px; color: #64748b; }
277
278        /* ── Rich markdown rendering inside bot bubbles ── */
279        .cb-md-p { margin: 4px 0; }
280        .cb-md-p:first-child { margin-top: 0; }
281        .cb-md-p:last-child { margin-bottom: 0; }
282        .cb-md-h {
283          font-weight: 700;
284          margin: 9px 0 4px;
285          color: var(--heading-color, #1e293b);
286        }
287        .cb-md-h:first-child { margin-top: 0; }
288        .cb-md-list { margin: 6px 0; padding-left: 20px; }
289        .cb-md-list li { margin: 4px 0; padding-left: 3px; }
290        .cb-md-list li::marker { color: var(--heading-color, #1e293b); font-weight: 700; }
291        .cb-md-li-cont { margin-top: 2px; color: #64748b; font-size: 12px; }
292        .cb-md-code {
293          background: rgba(0,0,0,0.06);
294          padding: 1px 5px;
295          border-radius: 4px;
296          font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
297          font-size: 12px;
298        }
299        .cb-md-tablewrap {
300          margin: 7px 0;
301          overflow-x: auto;
302          border: 1px solid rgba(0,0,0,0.08);
303          border-radius: 9px;
304          -webkit-overflow-scrolling: touch;
305        }
306        .cb-md-tablewrap::-webkit-scrollbar { height: 5px; }
307        .cb-md-tablewrap::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.5); border-radius: 4px; }
308        .cb-md-table {
309          border-collapse: collapse;
310          width: 100%;
311          font-size: 11.5px;
312          line-height: 1.45;
313        }
314        .cb-md-table th,
315        .cb-md-table td {
316          padding: 6px 10px;
317          text-align: left;
318          white-space: nowrap;
319          border-bottom: 1px solid rgba(0,0,0,0.06);
320          color: inherit;
321        }
322        .cb-md-table th {
323          background: rgba(1,169,155,0.10);
324          font-weight: 600;
325          font-size: 10.5px;
326          text-transform: uppercase;
327          letter-spacing: 0.3px;
328        }
329        .cb-md-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.025); }
330        .cb-md-table tbody tr:last-child td { border-bottom: none; }
331
332        .cb-send-btn {
333          width: 38px; height: 38px;
334          border-radius: 50%;
335          border: none;
336          display: flex; align-items: center; justify-content: center;
337          cursor: pointer;
338          transition: all 0.18s;
339          flex-shrink: 0;
340        }
341        .cb-send-btn:not(:disabled):hover {
342          transform: scale(1.08);
343          box-shadow: 0 4px 14px rgba(19,80,191,0.35);
344        }
345        .cb-send-btn:not(:disabled):active { transform: scale(0.95); }
346
347        .cb-field-sel { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
348        .cb-field-sel-group { display: flex; flex-direction: column; gap: 5px; }
349        .cb-field-sel-label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
350        .cb-field-sel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
351        .cb-chip {
352          background: rgba(1,169,155,0.07);
353          border: 1.5px solid rgba(1,169,155,0.25);
354          border-radius: 20px;
355          padding: 5px 13px;
356          font-size: 12.5px;
357          font-weight: 500;
358          color: #1e293b;
359          cursor: pointer;
360          transition: all 0.18s;
361          font-family: 'Sora', sans-serif;
362          white-space: nowrap;
363        }
364        .cb-chip:hover {
365          background: linear-gradient(135deg, #01A99B, #1350BF);
366          color: #fff;
367          border-color: transparent;
368          box-shadow: 0 3px 10px rgba(19,80,191,0.22);
369          transform: translateY(-1px);
370        }
371        .cb-chip:active { transform: translateY(0); }
372
373        /* Searchable field select (large master-data fields) */
374        .cb-search-select { position: relative; width: 100%; }
375        .cb-search-label {
376          font-size: 11px; font-weight: 600; color: #64748b;
377          text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px;
378        }
379        .cb-search-inputwrap { position: relative; display: flex; align-items: center; }
380        .cb-search-icon { position: absolute; left: 11px; color: #94a3b8; pointer-events: none; }
381        .cb-search-input {
382          width: 100%; box-sizing: border-box;
383          padding: 9px 12px 9px 32px;
384          border: 1.5px solid rgba(1,169,155,0.30);
385          border-radius: 10px;
386          font-size: 13px; font-family: 'Sora', sans-serif; color: #1e293b;
387          background: #fff; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
388        }
389        .cb-search-input:focus {
390          border-color: #01A99B;
391          box-shadow: 0 0 0 3px rgba(1,169,155,0.12);
392        }
393        .cb-search-dropdown {
394          position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0;
395          max-height: 220px; overflow-y: auto;
396          background: #fff; border: 1px solid rgba(15,23,42,0.10);
397          border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,0.14);
398          padding: 4px;
399        }
400        .cb-search-opt {
401          display: block; width: 100%; text-align: left;
402          padding: 8px 10px; border: none; background: transparent;
403          border-radius: 7px; cursor: pointer;
404          font-size: 12.5px; font-family: 'Sora', sans-serif; color: #1e293b;
405          white-space: normal; line-height: 1.35;
406        }
407        .cb-search-opt.active, .cb-search-opt:hover {
408          background: linear-gradient(135deg, rgba(1,169,155,0.12), rgba(19,80,191,0.10));
409          color: #0f172a;
410        }
411        .cb-search-empty {
412          padding: 10px; font-size: 12px; color: #94a3b8; text-align: center;
413          font-family: 'Sora', sans-serif;
414        }
415
416        .cb-fab-btn {
417          transition: transform 0.2s, box-shadow 0.2s !important;
418        }
419        .cb-fab-btn:hover {
420          transform: scale(1.1) !important;
421          box-shadow: 0 10px 32px rgba(19,80,191,0.5) !important;
422        }
423
424        .cb-header-btn {
425          background: rgba(255,255,255,0.15);
426          border: none;
427          border-radius: 8px;
428          width: 30px; height: 30px;
429          cursor: pointer;
430          color: white;
431          display: flex; align-items: center; justify-content: center;
432          transition: background 0.15s;
433          flex-shrink: 0;
434        }
435        .cb-header-btn:hover { background: rgba(255,255,255,0.28); }
436
437        .cb-textarea {
438          flex: 1;
439          border: none;
440          background: transparent;
441          outline: none;
442          resize: none;
443          font-size: 13px;
444          line-height: 1.5;
445          color: var(--heading-color, #1e293b);
446          font-family: 'Sora', sans-serif;
447          padding: 0;
448          max-height: 100px;
449          min-height: 20px;
450        }
451        .cb-textarea::placeholder { color: #94a3b8; }
452
453        .cb-status-dot {
454          width: 8px; height: 8px;
455          border-radius: 50%;
456          background: #22c55e;
457          position: relative;
458        }
459        .cb-status-dot::after {
460          content: '';
461          position: absolute;
462          inset: -2px;
463          border-radius: 50%;
464          border: 2px solid #22c55e;
465          animation: pulseRing 1.8s ease-out infinite;
466        }
467
468        .cb-badge {
469          position: absolute;
470          top: -4px; right: -4px;
471          background: #ef4444;
472          color: white;
473          font-size: 10px;
474          font-weight: 700;
475          min-width: 18px; height: 18px;
476          border-radius: 9px;
477          display: flex; align-items: center; justify-content: center;
478          border: 2px solid white;
479          animation: badgePop 0.3s cubic-bezier(0.34,1.3,0.64,1) forwards;
480          font-family: 'Sora', sans-serif;
481        }
482
483        .cb-divider-label {
484          display: flex; align-items: center; gap: 8px;
485          color: #94a3b8; font-size: 11px; font-weight: 500;
486          margin: 4px 0;
487        }
488        .cb-divider-label::before, .cb-divider-label::after {
489          content: ''; flex: 1;
490          height: 1px; background: rgba(148,163,184,0.25);
491        }
492      `}),r&&t.jsx("div",{onClick:Re,style:{position:"fixed",inset:0,zIndex:1040}}),(r||!r&&d)&&t.jsxs("div",{className:r?"cb-popup-enter cb-root":"cb-popup-exit cb-root",style:{position:"fixed",bottom:"28px",...ee==="right"?{right:"36px"}:{left:"36px"},width:"clamp(320px, 30%, 420px)",height:_?"64px":"76vh",maxHeight:"700px",background:"var(--card-bg, #fff)",borderRadius:"20px",boxShadow:"0 32px 80px rgba(0,0,0,0.16), 0 8px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05)",zIndex:1050,display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"'Sora', system-ui, sans-serif",transition:"height 0.3s cubic-bezier(0.34,1.1,0.64,1)"},children:[t.jsxs("div",{style:{background:"linear-gradient(135deg, #01A99B 0%, #0e6db3 55%, #1350BF 100%)",padding:"12px 14px",display:"flex",alignItems:"center",gap:"10px",flexShrink:0,position:"relative",overflow:"hidden"},children:[t.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%)",backgroundSize:"200% 100%",animation:"shimmer 3s linear infinite",pointerEvents:"none"}}),t.jsx("div",{style:{position:"relative",flexShrink:0},children:t.jsx("div",{style:{width:"38px",height:"38px",borderRadius:"12px",padding:"8px",background:"rgba(255,255,255,0.18)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center"},children:t.jsx(At,{fill:"white"})})}),t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx("span",{style:{color:"white",fontWeight:700,fontSize:"14px",letterSpacing:"0.1px"},children:"AeonX IQ"}),t.jsx(xn,{size:13,color:"rgba(255,255,255,0.7)"})]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"5px",marginTop:"2px"},children:[t.jsx("div",{className:"cb-status-dot"}),t.jsx("span",{style:{color:"rgba(255,255,255,0.72)",fontSize:"11px"},children:"Online · AI-Powered"})]})]}),t.jsxs("div",{style:{display:"flex",gap:"5px"},children:[t.jsx("button",{className:"cb-header-btn",onClick:F,title:"New conversation",style:{fontSize:"14px"},children:t.jsx(Pr,{size:16})}),t.jsx("button",{className:"cb-header-btn",onClick:()=>k(x=>!x),title:_?"Expand":"Minimize",style:{fontSize:"11px",fontWeight:700},children:_?"▲":"▼"}),t.jsx("button",{className:"cb-header-btn",onClick:Re,title:"Close",children:t.jsx(La,{size:17})})]})]}),!_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{display:"flex",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"var(--card-bg,#fff)",flexShrink:0},children:[["aeonxiq","AeonXIQ"],["communication","Communication"]].map(([x,z])=>{const O=x==="communication"&&!Q;return t.jsx("button",{onClick:()=>{O||n(x)}
492,disabled:O,title:O?"AI Email Composer is turned off for your account":void 0,style:{flex:1,padding:"10px 0",background:"none",border:"none",borderBottom:o===x?"2px solid #1350BF":"2px solid transparent",color:o===x?"#1350BF":"#64748b",fontWeight:700,fontSize:13,cursor:O?"not-allowed":"pointer",opacity:O?.5:1},children:z},x)})}),o==="communication"?t.jsx("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:t.jsx(nE,{})}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"cb-messages",style:{flex:1,overflowY:"auto",padding:"16px 14px 10px",display:"flex",flexDirection:"column",gap:"12px",background:"var(--body-bg, #f8fafc)"},children:[t.jsx("div",{className:"cb-divider-label",children:"Today"}),i.map((x,z)=>t.jsxs("div",{className:"cb-msg-row",style:{display:"flex",flexDirection:x.from==="user"?"row-reverse":"row",alignItems:"flex-end",gap:"8px"},children:[x.from==="bot"&&t.jsx("div",{style:{width:"28px",height:"28px",borderRadius:"50%",background:"var(--chat-primary)",border:"1.5px solid var(--border-color)",display:"flex",padding:"4px",alignItems:"center",justifyContent:"center",flexShrink:0,marginBottom:"16px"},children:t.jsx(At,{fill:"var(--heading-color)"})}),t.jsxs("div",{style:{maxWidth:x.from==="user"?"78%":"92%",display:"flex",flexDirection:"column",gap:"4px"},children:[t.jsxs("div",{style:{padding:"10px 13px",borderRadius:x.from==="user"?"16px 16px 4px 16px":"4px 16px 16px 16px",background:x.from==="user"?"linear-gradient(135deg, #01A99B, #1350BF)":"var(--card-bg, #fff)",color:x.from==="user"?"white":"var(--heading-color, #1e293b)",fontSize:"13px",lineHeight:"1.6",boxShadow:x.from==="user"?"0 4px 14px rgba(19,80,191,0.25)":"0 2px 8px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04)",wordBreak:"break-word"},children:[LE(x.text),t.jsx("div",{style:{fontSize:"10px",color:x.from==="user"?"rgba(255,255,255,0.6)":"#94a3b8",marginTop:"5px",textAlign:x.from==="user"?"right":"left"},children:x.time})]}),x.from==="bot"&&x.draftId&&t.jsx(iE,{draftId:x.draftId,subject:x.draftPreview?.subject,to:x.draftPreview?.to,body:x.draftPreview?.body,onSent:()=>setTimeout(()=>c(O=>O.map(G=>G.id===x.id?{...G,draftId:null}:G)),2e3),onDiscarded:()=>c(O=>O.map(G=>G.id===x.id?{...G,draftId:null}:G))}),x.from==="bot"&&x.approvalId&&t.jsx(pE,{approvalId:x.approvalId,approvalPreview:x.approvalPreview,onApproved:()=>c(O=>O.map(G=>G.id===x.id?{...G,approvalId:null}:G)),onRejected:()=>c(O=>O.map(G=>G.id===x.id?{...G,approvalId:null}:G))}),x.from==="bot"&&x.trPreview&&t.jsx(yE,{trPreview:x.trPreview,persistedStatus:x.trStatus||"staged",persistedInquiryId:x.trInquiryId||null,onSubmitted:(O,G)=>c(Y=>{if(x.trPreview.is_edit)return Y.map(ne=>ne.id===x.id?{...ne,trStatus:"submitted",trInquiryId:O,trPreview:{...ne.trPreview,summary:G||ne.trPreview.summary}}:ne);const K=Y.map(ne=>ne.id===x.id?{...ne,trStatus:"reviewed",trInquiryId:O}:ne),de={id:`${x.id}-submitted`,from:"bot",liked:null,time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),trPreview:{draft_id:x.trPreview.draft_id,mode:x.trPreview.mode,summary:G||x.trPreview.summary},trStatus:"submitted",trInquiryId:O};return[...K,de]}),onDiscarded:()=>c(O=>O.map(G=>G.id===x.id?{...G,trStatus:"discarded"}:G)),onEditRequest:O=>U(O)}),x.from==="bot"&&!x.trPreview&&x.fieldSelections?.length>0&&t.jsx("div",{className:"cb-field-sel",children:x.fieldSelections.map((O,G)=>{const Y=O.fieldKey.replace(/_id$/,"").replace(/_/g," "),K=(de,ne)=>{c(Nt=>Nt.map(Ft=>Ft.id===x.id?{...Ft,fieldSelections:null}:Ft)),U(ne!==void 0&&ne!==""?`${de} (id: ${ne})`:de,de)};return O.searchable?t.jsx("div",{className:"cb-field-sel-group",children:t.jsx(xE,{fieldKey:O.fieldKey,label:Y,initialOptions:O.options||[],searchParams:O.searchParams||{},onSelect:K})},G):t.jsxs("div",{className:"cb-field-sel-group",children:[t.jsx("div",{className:"cb-field-sel-label",children:Y}),t.jsx("div",{className:"cb-field-sel-chips",children:(O.options||[]).map((de,ne)=>{const Bt=String(de.label||de.value||de.id||""),Nt=de.value??de.id??"";return t.jsx("button",{className:"cb-chip",onClick:()=>K(Bt,Nt),children:Bt},ne)})})]},G)})}),x.from==="bot"&&t.jsxs("div",{style:{display:"flex",gap:"2px",paddingLeft:"2px"},children:[t.jsx("button",{className:`cb-action-btn ${b===x.id?"active":""}`,onClick:()=>rt(x.text,x.id),title:"Copy",children:b===x.id?t.jsx(En,{size:13}):t.jsx(Sn,{size:13})}),t.jsx("button",{className:`cb-action-btn ${x.liked===!0?"active":""}`,onClick:()=>j(x.id,!0),title:"Helpful",children:t.jsx(_n,{size:13})}),t.jsx("button",{className:`cb-action-btn ${x.liked===!1?"active":""}`,onClick:()=>j(x.id,!1),title:"Not helpful",children:t.jsx(Tn,{size:13})}),z>0&&i[z-1]?.from==="user"&&x.text.startsWith("Sorry")&&t.jsx("button",{className:"cb-action-btn",onClick:()=>ce(i[z-1].text),title:"Retry",children:t.jsx(Pr,{size:13})})]})]})]},x.id)),y&&t.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:"7px"},children:[t.jsx("div",{style:{width:"26px",height:"26px",borderRadius:"50%",background:"var(--chat-primary)",border:"1.5px solid var(--border-color)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:t.jsx(At,{fill:"var(--heading-color)"})}),t.jsx("div",{style:{background:"white",borderRadius:"14px 14px 14px 3px",padding:"10px 14px",boxShadow:"0 1px 5px rgba(0,0,0,0.08)",display:"flex",gap:"4px",alignItems:"center"},children:[0,1,2].map(x=>t.jsx("span",{style:{width:"6px",height:"6px",borderRadius:"50%",background:"var(--chat-primary)",display:"inline-block",animation:`chatDotBounce 1.1s ease-in-out ${x*.18}s infinite`}},x))})]}),t.jsx("div",{ref:tt}),i.length===1&&!y&&t.jsxs("div",{style:{marginTop:"6px"},children:[t.jsx("div",{style:{fontSize:"11px",fontWeight:600,color:"#64748b",marginBottom:"8px",letterSpacing:"0.5px",textTransform:"uppercase"}
492,children:"Quick questions"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:vE.map((x,z)=>t.jsxs("button",{className:"cb-suggest-btn",onClick:()=>U(x.text),children:[t.jsx("span",{style:{fontSize:"14px"},children:x.icon}),t.jsx("span",{children:x.text})]},z))})]})]}),t.jsx(oE,{emailEnabled:Q}),t.jsxs("div",{style:{padding:"10px 12px 14px",background:"var(--body-bg, #f8fafc)",flexShrink:0,borderTop:"1px solid rgba(0,0,0,0.05)",position:"relative"},children:[_e&&W.length>0&&t.jsxs("div",{className:"cb-cmd-palette",children:[t.jsxs("div",{className:"cb-cmd-palette-head",children:["Commands",t.jsx("span",{style:{color:"#94a3b8",fontWeight:400},children:" · this screen"})]}),W.map((x,z)=>t.jsxs("button",{type:"button",className:"cb-cmd-item"+(z===we?" active":""),onMouseEnter:()=>Te(z),onMouseDown:O=>{O.preventDefault(),Cr(x)},children:[t.jsx("span",{className:"cb-cmd-token",children:x.cmd}),t.jsx("span",{className:"cb-cmd-desc",children:x.desc})]},x.cmd+z))]}),t.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:"8px",background:"var(--card-bg, #fff)",borderRadius:"14px",padding:"10px 10px 10px 14px",boxShadow:"0 2px 10px rgba(0,0,0,0.06), 0 0 0 1.5px rgba(0,0,0,0.06)",transition:"box-shadow 0.2s"},onFocusCapture:x=>{x.currentTarget.style.boxShadow="0 2px 10px rgba(0,0,0,0.06), 0 0 0 1.5px #01A99B"},onBlurCapture:x=>{x.currentTarget.style.boxShadow="0 2px 10px rgba(0,0,0,0.06), 0 0 0 1.5px rgba(0,0,0,0.06)"},children:[t.jsx("textarea",{ref:be,className:"cb-textarea",value:m,onChange:bo,onKeyDown:fo,placeholder:"Ask me anything…",rows:2,style:{height:"20px"}}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"4px"},children:[Z>De*.8&&t.jsx("span",{style:{fontSize:"10px",color:Z>De*.95?"#ef4444":"#94a3b8",fontWeight:500},children:De-Z}),t.jsx("button",{className:"cb-send-btn",onClick:()=>U(m),disabled:!m.trim()||y,style:{background:m.trim()&&!y?"linear-gradient(135deg, #01A99B, #1350BF)":"#e2e8f0",cursor:m.trim()&&!y?"pointer":"default"},children:t.jsx(sr,{size:17,color:m.trim()&&!y?"white":"#94a3b8"})})]})]}),t.jsxs("div",{style:{textAlign:"center",fontSize:"10px",color:"#94a3b8",marginTop:"7px",fontWeight:500},children:["Press"," ",t.jsx("kbd",{style:{background:"rgba(0,0,0,0.06)",borderRadius:"4px",padding:"1px 5px",fontSize:"10px",color:"#94a3b8"},children:"Enter"})," ","to send ·"," ",t.jsx("kbd",{style:{background:"rgba(0,0,0,0.06)",borderRadius:"4px",padding:"1px 5px",fontSize:"10px",color:"#94a3b8"},children:"Shift+Enter"})," ","for new line"]})]})]})]})]}),t.jsx(DE,{open:r,unreadCount:$,onToggle:()=>s(x=>!x),side:ee,onSideChange:Ee})]}):null}function DE({open:e,unreadCount:r,onToggle:s,side:o,onSideChange:n}){const[f,y]=a.useState(()=>Math.max(12,window.innerHeight-44-90)),[p,d]=a.useState(!1),S=a.useRef(!1),h=a.useRef(!1),l=a.useRef({x:0,y:0}),E=a.useRef(0),I=a.useRef(null);a.useEffect(()=>{const k=()=>y($=>Math.min(Math.max($,12),window.innerHeight-44-12));return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);const L=k=>{k.preventDefault(),S.current=!0,h.current=!1,l.current={x:k.clientX,y:k.clientY},E.current=f,I.current?.setPointerCapture(k.pointerId)},R=k=>{if(!S.current)return;const $=k.clientX-l.current.x,J=k.clientY-l.current.y;(Math.abs($)>4||Math.abs(J)>4)&&(h.current=!0),y(Math.min(Math.max(E.current+J,12),window.innerHeight-44-12));const ee=k.clientX<window.innerWidth/2?"left":"right";ee!==o&&n(ee)},b=()=>{S.current&&(S.current=!1,h.current||s())},v=o==="right",_=p&&!S.current;return t.jsxs(t.Fragment,{children:[t.jsx("style",{children:`
493        .cb-edge-tab { outline: none; }
494        .cb-edge-tab-label {
495          font-family: 'Sora', system-ui, sans-serif;
496          font-size: 11px;
497          font-weight: 600;
498          letter-spacing: 0.01em;
499          color: #fff;
500          white-space: nowrap;
501        }
502      `}),t.jsxs("button",{ref:I,className:`cb-edge-tab ${v?"cb-edge-tab-right":"cb-edge-tab-left"}`,title:e?"Close AI Assistant":"Ask AI Assistant","aria-label":e?"Close AI Assistant":"Open AI Assistant chat",onPointerDown:L,onPointerMove:R,onPointerUp:b,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),style:{position:"fixed",top:`${f}px`,...v?{right:0}:{left:0},boxSizing:"border-box",width:_?"108px":"30px",height:"44px",padding:v?"0 5px 0 10px":"0 10px 0 5px",borderRadius:v?"12px 0 0 12px":"0 12px 12px 0",border:"none",background:"linear-gradient(160deg, #01A99B 0%, #1350BF 100%)",cursor:S.current?"grabbing":"pointer",boxShadow:v?"-2px 0 12px rgba(19,80,191,0.24)":"2px 0 12px rgba(19,80,191,0.24)",display:"flex",alignItems:"center",justifyContent:"flex-end",flexDirection:v?"row":"row-reverse",gap:"7px",overflow:"hidden",zIndex:1055,touchAction:"none",userSelect:"none",opacity:_?1:.92,transition:S.current?"none":"width 0.22s cubic-bezier(0.34,1.05,0.64,1), opacity 0.18s ease, box-shadow 0.18s ease"},children:[t.jsx("span",{className:"cb-edge-tab-label",style:{maxWidth:_?"70px":0,op
502acity:_?1:0,overflow:"hidden",transition:"opacity 0.16s ease, max-width 0.22s ease"},children:e?"Close chat":"AeonX IQ"}),t.jsx("span",{style:{display:"flex",flexShrink:0},children:e?t.jsx(La,{size:16,color:"#fff"}):t.jsx(An,{size:15,color:"#fff"})}),!e&&r>0&&t.jsx("span",{style:{position:"absolute",top:"-5px",...v?{left:"-5px"}:{right:"-5px"},minWidth:"16px",height:"16px",padding:"0 3px",borderRadius:"8px",background:"#ef4444",color:"#fff",fontSize:"9px",fontWeight:700,lineHeight:"16px",textAlign:"center",fontFamily:"'Sora', sans-serif"},children:r})]})]})}const ro=e=>{const r=Je(),s=se(l=>l.Layout,l=>({isPreloader:l.isPreloader,layoutModeType:l.layoutModeType,leftSideBarThemeImage:l.leftSideBarThemeImage,leftSideBarType:l.leftSideBarType,layoutWidth:l.layoutWidth,topbarTheme:l.topbarTheme,showRightSidebar:l.showRightSidebar,leftSideBarTheme:l.leftSideBarTheme})),{isPreloader:o,leftSideBarThemeImage:n,layoutWidth:i,leftSideBarType:c,topbarTheme:m,showRightSidebar:f,leftSideBarTheme:y,layoutModeType:p}=Oe(s),d=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),S=()=>{r(ve(c==="default"?"condensed":"default",d))},h=l=>{const E=document.getElementById("right-bar");if(E&&E.contains(l.target))return;r(ht(!1));const I=window.innerWidth<=998,L=document.querySelector(".vertical-menu"),R=l.target.closest("a.has-arrow"),b=l.target.closest(".sub-menu a"),v=l.target.closest("#vertical-menu-btn");if(I&&document.body.classList.contains("sidebar-enable")){if(R||v)return;(!L.contains(l.target)||b)&&document.body.classList.remove("sidebar-enable")}};return a.useEffect(()=>(document.body.addEventListener("click",h),()=>{document.body.removeEventListener("click",h)}),[]),a.useEffect(()=>{const l=document.getElementById("preloader"),E=document.getElementById("status");o?(l&&(l.style.display="block"),E&&(E.style.display="block"),setTimeout(()=>{l&&(l.style.display="none"),E&&(E.style.display="none")},2500)):(l&&(l.style.display="none"),E&&(E.style.display="none"))},[o]),a.useEffect(()=>{window.scrollTo(0,0)},[]),a.useEffect(()=>{r(yr("vertical"))},[r]),a.useEffect(()=>{y&&r($a(y))},[y,r]),a.useEffect(()=>{p&&r(kt(p))},[p,r]),a.useEffect(()=>{n&&r(za(n))},[n,r]),a.useEffect(()=>{i&&r(xr(i))},[i,r]),a.useEffect(()=>{c&&r(ve(c))},[c,r]),a.useEffect(()=>{window.innerWidth<=998?r(ve("default",d)):r(ve("condensed",d))},[]),a.useEffect(()=>{m&&r(Er(m))},[m,r]),t.jsxs(X.Fragment,{children:[t.jsx(to,{}),t.jsxs("div",{id:"layout-wrapper",children:[t.jsx(lg,{toggleMenuCallback:S}),t.jsx(Z2,{}),t.jsxs("div",{className:"main-content",children:[t.jsx(eo,{}),e.children]})]}),t.jsx(CE,{}),f?t.jsx(Xs,{}):null]})};ro.propTypes={changeLayoutWidth:P.func,changeSidebarTheme:P.func,changeSidebarThemeImage:P.func,changeSidebarType:P.func,changeTopbarTheme:P.func,isPreloader:P.any,layoutWidth:P.any,leftSideBarTheme:P.any,leftSideBarThemeImage:P.any,leftSideBarType:P.any,location:P.object,showRightSidebar:P.any,topbarTheme:P.any};const ba=mt(ro),ao=e=>{const[r,s]=a.useState(!1),[o,n]=a.useState(!1),[i,c]=a.useState(!1),[m,f]=a.useState(!1),[y,p]=a.useState(!1),[d,S]=a.useState(!1),[h,l]=a.useState(!1),[E,I]=a.useState(!1),[L,R]=a.useState(!1),[b,v]=a.useState(!1),[_,k]=a.useState(!1),[$,J]=a.useState(!1),[ee,Ee]=a.useState(!1),[Z,oe]=a.useState(!1),[Q,Qe]=a.useState(!1),[Se,Be]=a.useState(!1),[_e,Ce]=a.useState(!1),[M,ae]=a.useState(!1),[we,Te]=a.useState(!1),[De,tt]=a.useState(!1),[Ae,be]=a.useState(!1),[ft,bt]=a.useState(!1);a.useEffect(()=>{var ce=null,j=document.getElementById("navigation"),F=j.getElementsByTagName("a");Re(F);for(var U=0;U<F.length;++U)if(window.location.pathname===F[U].pathname){ce=F[U];break}ce&&rt(ce)});const Re=ce=>{for(var j=0;j<ce.length;++j){var F=ce[j];const U=ce[j].parentElement;F&&F.classList.contains("active")&&F.classList.remove("active"),U&&U.classList.contains("active")&&U.classList.remove("active")}};function rt(ce){ce.classList.add("active");const j=ce.parentElement;if(j){j.classList.add("active");const F=j.parentElement;F.classList.add("active");const U=F.parentElement;if(U){U.classList.add("active");const te=U.parentElement;if(te){te.classList.add("active");const le=te.parentElement;if(le){le.classList.add("active");const W=le.parentElement;W&&W.classList.add("active")}}}}return!1}return t.jsx(X.Fragment,{children:t.jsx("div",{className:"topnav",children:t.jsx("div",{className:"container-fluid",children:t.jsx("nav",{className:"navbar navbar-light navbar-expand-lg topnav-menu",id:"navigation",children:t.jsx(vn,{isOpen:e.leftMenu,className:"navbar-collapse",id:"topnav-menu-content",children:t.jsxs("ul",{className:"navbar-nav",children:[me.checkReadPermission("Dashboard")&&t.jsx("li",{children:t.jsxs(q,{className:"nav-link",to:"/dashboard",children:[t.jsx("i",{className:"bx bx-home-circle me-2"}),e.t("Dashboard")]})}),me.checkReadPermission("Users")&&t.jsx("li",{children:t.jsxs(q,{className:"nav-link",to:"/users",children:[t.jsx("i",{className:"mdi mdi-account-group-outline me-2"}),e.t("Users")]})}),me.checkReadPermission("Transport Request")&&t.jsx("li",{children:t.jsxs(q,{className:"nav-link",to:"/trans
502port-request",children:[t.jsx("i",{className:"bx bx-receipt me-2"}),e.t("Transport Request")]})}),me.checkReadPermission("Transporter Inquiry")&&t.jsx("li",{children:t.jsxs(q,{className:"nav-link",to:"/transporter-inquiry",children:[t.jsx("i",{className:"bx bx-receipt me-2"}),e.t("Transporter Inquiry")]})}),me.checkReadPermission("Transporters")&&t.jsx("li",{children:t.jsxs(q,{className:"nav-link",to:"/transporter",children:[t.jsx("i",{className:"mdi mdi-truck-delivery me-2"}),e.t("Transporters")]})}),t.jsxs("li",{className:"nav-item dropdown",children:[t.jsxs(q,{to:"/#",className:"nav-link  arrow-none",children:[t.jsx("i",{className:"bx bx-cog me-2"}),e.t("Settings"),t.jsx("div",{className:"arrow-down"})]}),t.jsxs("div",{className:Or("dropdown-menu"),children:[me.checkReadPermission("Role & Permission")&&t.jsxs(q,{to:"/user-roles",className:"dropdown-item",children:[t.jsx("i",{className:"mdi mdi-account-cog-outline"})," ",t.jsx("span",{children:e.t("Role & Permission")})]}),t.jsxs(q,{to:"/inquiry-setting",className:"dropdown-item",children:[t.jsx("i",{className:"bx bx-cog"})," ",t.jsx("span",{children:e.t("Setting")})]}),me.checkReadPermission("Master Record")&&t.jsxs("li",{className:"nav-item dropdown",children:[t.jsxs(q,{to:"/#",className:"nav-link  arrow-none",children:[t.jsx("i",{className:"bx bx-cog me-2"}),e.t("Master Record"),t.jsx("div",{className:"arrow-down"})]}),t.jsxs("div",{className:Or("dropdown-menu"),children:[t.jsxs(q,{to:"/inquiry-source",className:"dropdown-item",children:[t.jsx("i",{className:"mdi mdi-file-multiple"})," ",t.jsx("span",{children:e.t("Request Type")})]}),t.jsxs(q,{to:"/plant",className:"dropdown-item",children:[t.jsx("i",{className:"mdi mdi-factory"})," ",t.jsx("span",{children:e.t("Plants")})]}),t.jsxs(q,{to:"/expenses",className:"dropdown-item",children:[t.jsx("i",{className:"mdi mdi-cash-multiple"})," ",t.jsx("span",{children:e.t("Expenses")})]}),t.jsxs(q,{to:"/truck-type",className:"dropdown-item",children:[t.jsx("i",{className:"fas fa-truck-moving"})," ",t.jsx("span",{children:e.t("Truck Type")})]})]})]})]})]})]})})})})})})};ao.propTypes={leftMenu:P.any,location:P.any,menuOpen:P.any,t:P.any};const IE=e=>{const{leftMenu:r}=e.Layout;return{leftMenu:r}},jE=mt(et(IE,{})(Ze()(ao))),wE="Suche",RE="Speisekarte",kE="Dashboards",PE="Dashboard",OE="Standard",BE="Sass",NE="Krypto",FE="Apps",ME="Kalender",UE="Neu",GE="Plaudern",$E="E-Commerce",zE="Produkte",VE="Kunden",HE="Wagen",WE="Auschecken",JE="Geschäfte",qE="Brieftasche",QE="Austausch",YE="Ausleihe",KE="Aufträge",ZE="Email",XE="Posteingang",eS="Rechnungen",tS="Projekte",rS="Aufgaben",aS="Blog",sS="Arbeit",oS="Arbeitsplätze",nS="Kandidatin",iS="Aufführen",cS="Überblick",lS="Vorlage",dS="Kontakte",pS="Profil",uS="Authentifizierung",gS="Anmeldung",mS="Registrieren",hS="Nützlichkeit",fS="Instandhaltung",bS="Zeitleiste",yS="FAQs",xS="Preisgestaltung",ES="Komponenten",SS="Warnungen",_S="Tasten",TS="Karten",AS="Karussell",vS="Dropdowns",LS="Gitter",CS="Bilder",DS="Leuchtkasten",IS="Platzhalter",jS="OffCanvas",wS="Toasts",RS="Modale",kS="Typografie",PS="Video",OS="Allgemeines",BS="Farben",NS="Bewertung",FS="Benachrichtigungen",MS="Formen",US="Tabellen",GS="Diagramme",$S="Symbole",zS="Boxicons",VS="Dripicons",HS="Karten",WS="die Einstellungen",JS="Ausloggen",qS="Anwendungen",QS="Protokolle",YS={"Mega Menu":"Mega-Menü",Search:wE,Menu:RE,Dashboards:kE,Dashboard:PE,Default:OE,Saas:BE,Crypto:NE,Apps:FE,Calendar:ME,New:UE,Chat:GE,Ecommerce:$E,Products:zE,"Product Detail":"Produktdetail",Customers:VE,Cart:HE,Checkout:WE,Shops:JE,"Add Product":"Produkt hinzufügen",Wallet:qE,"Buy/Sell":"Kaufen Verkaufen",
502Exchange:QE,Lending:YE,Orders:KE,"KYC Application":"KYC-Anwendung","ICO Landing":"ICO Landung",Email:ZE,Inbox:XE,"Read Email":"E-Mail lesen",Invoices:eS,"Invoice List":"Rechnungsliste","Invoice Detail":"Rechnungsdetail",Projects:tS,"Projects Grid":"Projektraster","Projects List":"Projektliste","Project Overview":"Projektübersicht","Create New":"Erstelle neu",Tasks:rS,"Task List":"Aufgabenliste","Kanban Board":"Kanban Board","Create Task":"Aufgabe erstellen",Blog:aS,Job:sS,"File Manager":"Dateimanager","Blog List":"Blog-Liste","Blog Grid":"Blog-Raster","Blog Details":"Blog-Details",Jobs:oS,"Job List":"Job-Liste","Job Grid":"Job-Raster","Apply Job":"Stelle bewerben","Job Details":"Auftragsdetails","Jobs Categories":"Job-Kategorien",Candidate:nS,List:iS,Overview:cS,Templates:lS,"Basic Action":"Grundlegende Aktion","Alert Email":"Benachrichtigungs-E-Mail","Billing Email":"Abrechnung per E-Mail","Login 2":"Anmeldung 2","Register 2":"Registrieren 2","Recover Password":"Passwort wiederherstellen","Recover Password 2":"Passwort wiederherstellen 2","Lock Screen 2":"Bildschirm sperren 2","Confirm Mail":"Mail bestätigen","Confirm Mail 2":"Mail bestätigen 2","Email verification":"E-Mail-Verifizierung","Email verification 2":"E-Mail-Verifizierung 2","Two step verification":"Überprüfung in zwei Schritten","Two step verification 2":"Überprüfung in zwei Schritten 2",Contacts:dS,"User Grid":"User Grid","User List":"Benutzerliste",Profile:pS,Authentication:uS,Login:gS,Register:mS,"Forget Password":"Passwort vergessen",Utility:hS,"Starter Page":"Startseite",Maintenance:fS,"Coming Soon":"Demnächst",Timeline:bS,FAQs:yS,Pricing:xS,"Error 404":"Fehler 404","Error 500":"Fehler 500",Components:ES,"UI Elements":"UI-Elemente",Alerts:SS,Buttons:_S,Cards:TS,Carousel:AS,Dropdowns:vS,Grid:LS,Images:CS,Lightbox:DS,Placeholders:IS,OffCanvas:jS,Toasts:wS,Modals:RS,"Range Slider":"Range Slider","Session Timeout":"Session-Timeout","Progress Bars":"Fortschrittsbalken","Sweet-Alert":"Sweet-Alert","Tabs & Accordions":"Tabs & Akkordeons",Typography:kS,Video:PS,General:OS,Colors:BS,Rating:NS,Notifications:FS,"Image Cropper":"Bild Cropper",Forms:MS,"Form Elements":"Formularelemente","Form Layouts":"Formularlayout","Form Validation":"Formularvalidierung","Form Advanced":"Formular erweitert","Form Editors":"Formulareditoren","Form File Upload":"Hochladen von Formulardateien","Form Xeditable":"Formular Xeditable","Form Repeater":"Form Repeater","Form Wizard":"Formzauberer","Form Mask":"Formularmaske",Tables:US,"Basic Tables":"Grundtabellen","Data Tables":"Datentabellen","Responsive Table":"Antworttabelle","Editable Table":"Bearbeitbare Tabelle",Charts:GS,"Apex charts":"Apex-Diagramme","Chartist Chart":"Chartist Diagramm","Chartjs Chart":"Chartjs Diagramm","E Chart":"E Diagramm","Sparkline Chart":"Sparkline-Diagramm","Toast UI Chart":"Toast UI Chart",Icons:$S,Boxicons:zS,"Material Design":"Material Design",Dripicons:VS,"Font awesome":"Schriftart fantastisch",Maps:HS,"Google Maps":"Google Maps","Vector Maps":"Vektorkarten","Level 1.1":"Stufe 1.1","Multi Level":"Multi Level","Level 1.2":"Stufe 1.2","Level 2.1":"Stufe 2.1","Level 2.2":"Stufe 2.2","My Wallet":"Bildschirm sperren",Settings:WS,"Lock Screen":"Bildschirm sperren",Logout:JS,"View all":"Alle ansehen","Your order is placed":"Ihre Bestellung wird aufgegeben","If several languages coalesce the grammar":"Wenn mehrere Sprachen die Grammatik verschmelzen","3 min ago":"Vor 3 min","It will seem like simplified English":"Es wird wie vereinfachtes Englisch erscheinen","1 hours ago":"Vor 1 Stunde","Your item is shipped":"Ihr Artikel wird versendet","As a skeptical Cambridge friend of mine occidental":"","UI Components":"UI-Komponenten",Applications:qS,"Extra Pages":"Zusätzliche Seiten","Horizontal layout":"Horizontales Layout","Light Sidebar":"Leichte Seitenleiste","Compact Sidebar":"Kompakte Seitenleiste",Logs:QS,"Hurl Log":"Hurl-Protokoll"},KS="Ricerca",ZS="Menù",XS="cruscotti",e_="Pannello di controllo",t_="Predefinita",r_="Sass",a_="Crypto",s_="applicazioni",o_="Calendario",n_="Nuova",i_="Chiacchierare",c_="ecommerce",l_="Prodotti",d_="I clienti",p_="Carrello",u_="Check-out",g_="negozi",m_="Portafoglio",h_="Scambio",f_="prestito",b_="Blog",y_="Lavoro",x_="Lavoro",E_="Candidata",S_="Elenco",__="Panoramica",T_="Modella",A_="Ordini",v_="E-mail",L_="Posta in arrivo",C_="Fatture",D_="progetti",I_="Compiti",j_="Contatti",w_="Profilo",R_="Autenticazione",k_="Accesso",P_="Registrati",O_="Utilità",B_="Manutenzione",N_="Sequenza temporale",F_="FAQs",M_="Prezzi",U_="componenti",G_="avvisi",$_="pulsanti",z_="Carte",V_="Giostra",H_="menu a discesa",W_="Griglia",J_="immagini",q_="ID",Q_="segnaposto",Y_="Fuori tela",K_="brindisi",Z_="Mod
502als",X_="Tipografia",eT="Video",tT="Generale",rT="Colori",aT="Valutazione",sT="notifiche",oT="Le forme",nT="tabelle",iT="Grafici",cT="Icone",lT="Boxicons",dT="Dripicons",pT="Mappe",uT="impostazioni",gT="Disconnettersi",mT="applicazioni",hT="Tronchi",fT={"Mega Menu":"Mega Menu",Search:KS,Menu:ZS,Dashboards:XS,Dashboard:e_,Default:t_,Saas:r_,Crypto:a_,Apps:s_,Calendar:o_,New:n_,Chat:i_,Ecommerce:c_,Products:l_,"Product Detail":"Dettagli del prodotto",Customers:d_,Cart:p_,Checkout:u_,Shops:g_,"Add Product":"Aggiungi prodotto",Wallet:m_,"Buy/Sell":"Comprare vendere",Exchange:h_,Lending:f_,Blog:b_,Job:y_,"File Manager":"File Manager","Blog List":"Elenco blog","Blog Grid":"Blog Grid","Blog Details":"Dettagli del blog",Jobs:x_,"Job List":"Elenco dei lavori","Job Grid":"Griglia di lavoro","Apply Job":"Applica lavoro","Job Details":"Dettagli di lavoro","Jobs Categories":"Categorie di lavoro",Candidate:E_,List:S_,Overview:__,Template:T_,"Basic Action":"Azione di base","Alert Email":"Email di avviso","Billing Email":"Email di fatturazione","Login 2":"Accedi 2","Register 2":"Registrati 2","Recover Password":"Recupera la password","Recover Password 2":"Recupera password 2","Lock Screen 2":"Schermata di blocco 2","Confirm Mail":"Conferma posta","Confirm Mail 2":"Conferma posta 2","Email verification":"Verifica email","Email verification 2":"Verifica email 2","Two step verification":"Verifica in due passaggi","Two step verification 2":"Verifica in due passaggi 2",Orders:A_,"KYC Application":"Applicazione KYC","ICO Landing":"Atterraggio ICO",Email:v_,"Read Email":"Leggi l'email",Inbox:L_,Invoices:C_,"Invoice List":"Elenco fatture","Invoice Detail":"Dettaglio fattura",Projects:D_,"Projects Grid":"Griglia dei progetti","Projects List":"Elenco dei progetti","Project Overview":"Panoramica del progetto","Create New":"Creare nuovo",Tasks:I_,"Task List":"Elenco delle attività","Kanban Board":"Kanban Board","Create Task":"Crea attività",Contacts:j_,"User Grid":"Griglia utente","User List":"lista degli utenti",Profile:w_,Authentication:R_,Login:k_,Register:P_,"Forget Password":"Dimenticare la password",Utility:O_,"Starter Page":"Pagina iniziale",Maintenance:B_,"Coming Soon":"Prossimamente",Timeline:N_,FAQs:F_,Pricing:M_,"Error 404":"Errore 404","Error 500":"Errore 500",Components:U_,"UI Elements":"Elementi dell'interfaccia utente",Alerts:G_,Buttons:$_,Cards:z_,Carousel:V_,Dropdowns:H_,Grid:W_,Images:J_,Lightbox:q_,Placeholders:Q_,OffCanvas:Y_,Toasts:K_,Modals:Z_,"Range Slider":"Cursore gamma","Session Timeout":"Timeout della sessione","Progress Bars":"Indicatori di stato","Sweet-Alert":"Sweet-Alert","Tabs & Accordions":"Schede e fisarmoniche",Typography:X_,Video:eT,General:tT,Colors:rT,Rating:aT,Notifications:sT,"Image Cropper":"Image Cropper",Forms:oT,"Form Elements":"Elementi della forma","Form Validation":"Convalida del modulo","Form Advanced":"Modulo avanzato","Form Layouts":"Layout del modulo","Form Editors":"Redattori di moduli","Form File Upload":"Caricamento file modulo","Form Xeditable":"Modulo Xeditable","Form Repeater":"Ripetitore di moduli","Form Wizard":"Procedura guidata modulo","Form Mask":"Maschera di forma",Tables:nT,"Basic Tables":"Tabelle di base","Data Tables":"Tabelle dati","Responsive Table":"Tabella reattiva","Editable Table":"Tabella modificabile",Charts:iT,"Apex charts":"Grafici apicali","Chartist Chart":"Chart Chartist","Chartjs Chart":"Grafico di Chartjs","E Chart":"E Chart","Sparkline Chart":"Grafico sparkline","Toast UI Chart":"Grafico dell'interfaccia utente di Toast",Icons:cT,Boxicons:lT,"Material Design":"Design materiale",Dripicons:dT,"Font awesome":"Carattere fantastico",Maps:pT,"Google Maps":"Google Maps","Vector Maps":"Mappe vettoriali","Level 1.1":"Livello 1.1","Multi Level":"Multi livello","Level 1.2":"Livello 1.2","Level 2.1":"Livello 2.1","Level 2.2":"Livello 2.2","My Wallet":"Il mio portafoglio",Settings:uT,"Lock screen":"Blocca schermo",Logout:gT,"View all":"Mostra tutto","Your order is placed":"Il tuo ordine è stato effettuato","If several languages coalesce the grammar":"Se diverse lingue fondono la grammatica","3 min ago":"3 min fa","It will seem like simplified English":"Sembrerà un inglese semplificato","1 hours ago":"1 ora fa","Your item is shipped":"Il tuo articolo viene spedito","As a skeptical Cambridge friend of mine occidental":"Come un mio scettico amico di Cambridge occidentale","UI Components":"Componenti dell'interfaccia utente",Applications:mT,"Extra Pages":"Pagine extra","Horizontal layout":"Layout orizzontale","Light Sidebar":"Barra laterale leggera","Compact Sidebar":"Barra laterale compatta",Logs:hT,"Hurl Log":"Registro di hurl"},bT="Поиск",yT="Menu",xT="Сводки",ET="Приборная панель",ST="По умолчанию",_T="саас",TT="крипто-",AT="Программы",vT="Nuova",LT="Календарь",CT="Чат",DT="Электронная торговля",IT="Товары",jT="заказы",wT="Клиенты",RT="телега",kT="Проверять, выписываться",PT="МагаÐ
502·Ð¸Ð½Ñ‹",OT="Блог",BT="Работа",NT="Работа",FT="Кандидат",MT="Список",UT="Обзор",GT="Шаблон",$T="Бумажник",zT="обмен",VT="кредитование",HT="Электронное письмо",WT="входящие",JT="Счета-фактуры",qT="проектов",QT="Задания",YT="контакты",KT="Профиль",ZT="Аутентификация",XT="Авторизоваться",eA="регистр",tA="Утилита",rA="техническое обслуживание",aA="Лента новостей",sA="Вопросы и ответы",oA="ценообразование",nA="Компоненты",iA="Оповещения",cA="Кнопки",lA="Открытки",dA="карусель",pA="Dropdowns",uA="сетка",gA="Картинки",mA="Lightbox",hA="Заполнители",fA="OffCanvas",bA="Тосты",yA="модальности",xA="Типография",EA="видео",SA="генеральный",_A="Цвета",TA="Рейтинг",AA="Уведомления",vA="формы",LA="таблицы",CA="Графики",DA="Иконки",IA="Боксиконы",jA="Dripicons",wA="Карты",RA="настройки",kA="Выйти",PA="Приложения",OA="Журналы",BA={"Mega Menu":"Мега Меню",Search:bT,Menu:yT,Dashboards:xT,Dashboard:ET,Default:ST,Saas:_T,Crypto:TT,Apps:AT,New:vT,Calendar:LT,Chat:CT,Ecommerce:DT,Products:IT,"Product Detail":"Информация о продукте",Orders:jT,Customers:wT,Cart:RT,Checkout:kT,Shops:PT,"Add Product":"Добавить продукт",Blog:OT,Job:BT,"File Manager":"Файловый менеджер","Blog List":"Список блогов","Blog Grid":"Блог Сетка","Blog Details":"Подробности блога",Jobs:NT,"Job List":"Список вакансий","Job Grid":"Сетка заданий","Apply Job":"Подать заявку","Job Details":"Детали работы","Jobs Categories":"Категории вакансий",Candidate:FT,List:MT,Overview:UT,Templates:GT,"Basic Action":"Базовое действие","Alert Email":"Уведомление по электронной почте","Billing Email":"Электронная почта для выставления счетов","Login 2":"Логин 2","Register 2":"Регистр 2","Recover Password":"Восстановить пароль","Recover Password 2":"Восстановить пароль 2","Lock Screen 2":"Экран блокировки 2","Confirm Mail":"Подтвердить почту","Confirm Mail 2":"Подтвердить почту 2","Email verification":"Подтверждение адреса электронной почты","Email verification 2":"Подтверждение адреса электронной почты 2","Two step verification":"Двухэтапная проверка","Two step verification 2":"Двухэтапная проверка 2",Wallet:$T,"Buy/Sell":"Купи продай",Exchange:zT,Lending:VT,"KYC Application":"Приложение KYC","ICO Landing":"ICO Landing",Email:HT,"Read Email":"Читать электронную почту",Inbox:WT,Invoices:JT,"Invoice List":"Список счетов","Invoice Detail":"Деталь счета",Projects:qT,"Projects Grid":"Сетка проектов","Projects List":"Список проектов","Project Overview":"Обзор проекта","Create New":"Создать новое",Tasks:QT,"Task List":"Список заданий","Kanban Board":"Канбан Правление","Create Task":"Создать задачу",Contacts:YT,"User Grid":"Сетка пользователя","User List":"Список пользователей",Profile:KT,Authentication:ZT,Login:XT,Register:eA,"Forget Password":"Забыть пароль",Utility:tA,"Starter Page":"Стартовая страница",Maintenance:rA,"Coming Soon":"Скоро будет",Timeline:aA,FAQs:sA,Pricing:oA,"Error 404":"Ошибка 404","Error 500":"Ошибка 500",Components:nA,"UI Elements":"Элементы пользовательского интерфейса",Alerts:iA,Buttons:cA,Cards:lA,Carousel:dA,Dropdowns:pA,Grid:uA,Images:gA,Lightbox:mA,Placeholders:hA,OffCanvas:fA,Toasts:bA,Modals:yA,"Range Slider":"Ползунок диапазона","Session Timeout":"Тайм-аут сеанса","Progress Bars":"Прогресс Бары","Sweet-Alert":"Sweet-оповещение","Tabs & Accordions":"Вкладки и Аккордеоны",Typography:xA,Video:EA,General:SA,Colors:_A,Rating:TA,Notifications:AA,"Image Cropper":"Изображение Кроппер",Forms:vA,"Form Elements":"Элементы формы","Form Validation":"Проверка формы","Form Advanced":"Форма Advanced","Form Editors":"Редакторы форм","Form File Upload":"Загрузить файл формы","Form Layouts":"Макет формы","Form Xeditable":"Форма Xeditable","Form Repeater":"Повторитель формы","Form Wizard":"Мастер форм","Form Mask":"Форма Маска",Tables:LA,"Basic Tables":"Основные таблицы","Data Tables":"Таблицы данных","Responsive Table":"Отзывчивый стол","Editable Table":"Редактируемая таблица",Charts:CA,"Apex charts":"Апекс диаграммы","Chartist Chart":"Диаграмма чартиста","Chartjs Chart":"Диаграмма Chartjs","E Chart":"Электронная Диаграмма","Sparkline Chart":"Sparkline Chart","Toast UI Chart":"Тост интерфейс",Icons:DA,Boxicons:IA,"Material Design":"Материал Дизайн",Dripicons:jA,"Font awesome":"Шрифт потрясающий",Maps:wA,"Google Maps":"Карты Гугл","Vector Maps":"Векторные карты","Level 1.1":"Уровень 1.1","Multi Level":"Многоуровневый","Level 1.2":"Уровень 1.2","Level 2.1":"Уровень 2.1","Level 2.2":"Уровень 2.2","My Wallet":"Мой бумажник",Settings:RA,"Lock screen":"Экран блокировки",Logout:kA,"View all":"Посмотреть все","Your order is placed":"Ваш заказ размещен","If several languages coalesce the grammar":"Если несколько языков объединяют грамматику","3 min ago":"3 мин. Назад","It will seem like simplified English":"Это будет похоже на упрощенный английский","1 hours ago":"1 час назад","Your item is shipped":"Ваш товар отправлен","As a skeptical Cambridge friend of mine occidental":"Как скептически настроенный мой друг из Кембриджа","UI Components":"UI Компоненты",Applications:PA,"Extra Pages":"Дополнительные страницы","Horizontal layout":"Горизонтальное расположение","Light Sidebar":"Легкая боковая панель","Compact Sidebar":"Компактная боковая панель",Logs:OA,"Hurl Log":"Журнал Hurl"},NA="Buscar",FA="Menú",MA="Cuadros de mando",UA="Tablero",GA="Defecto",$A="Saas",zA="Cripto",VA="Aplicaciones",HA="Calendario",WA="Nuova",JA="Charla",qA="Productos",QA="Comercio electrónico",YA="Pedidos",KA="Clientes",ZA="Carro",XA="Revisa",ev="Tiendas",tv="Billetera",rv="Blog",av="Modelo",
502sv="Intercambiar",ov="Préstamo",nv="Correo electrónico",iv="Bandeja de entrada",cv="Facturas",lv="progetti",dv="Compiti",pv="Contatti",uv="Proyectos",gv="Autenticación",mv="Iniciar sesión",hv="Registrarse",fv="Utilidad",bv="Mantenimiento",yv="Cronograma",xv="Preguntas frecuentes",Ev="Precios",Sv="Componentes",_v="Alertas",Tv="Botones",Av="Tarjetas",vv="Carrusel",Lv="Listas deplegables",Cv="Cuadrícula",Dv="Imágenes",Iv="Modals",jv="Caja ligera",wv="Tipografía",Rv="Vídeo",kv="General",Pv="Colores",Ov="Clasificación",Bv="Notificaciones",Nv="Formas",Fv="Mesas",Mv="Gráficos",Uv="Íconos",Gv="Boxicones",$v="Dripicons",zv="Mapas",Vv="Configuraciones",Hv="Cerrar sesión",Wv="Aplicaciones",Jv="Troncos",qv={"Mega Menu":"Mega menú",Search:NA,Menu:FA,Dashboards:MA,Dashboard:UA,Default:GA,Saas:$A,Crypto:zA,Apps:VA,Calendar:HA,New:WA,Chat:JA,Products:qA,Ecommerce:QA,"Product Detail":"Detalle del producto",Orders:YA,Customers:KA,Cart:ZA,Checkout:XA,Shops:ev,"Add Product":"Añadir Producto",Wallet:tv,"Buy/Sell":"Compra venta",Blog:rv,"File Manager":"Administradora de archivos","Blog List":"Lista de blogs","Blog Grid":"Blog Grid","Blog Details":"Detalles del blog",Templates:av,"Basic Action":"Acción básica","Alert Email":"Correo electrónico de alerta","Billing Email":"Correo Electrónico de Facturas","Login 2":"Login 2","Register 2":"Iniciar sesión 2","Recover Password":"Recuperar contraseña","Recover Password 2":"Recuperar contraseña 2","Lock Screen 2":"Bloquear pantalla 2","Confirm Mail":"Confirmar correo","Confirm Mail 2":"Confirmar correo 2","Email verification":"Verificacion de email","Email verification 2":"Verificacion de email 2","Two step verification":"Verificación de dos pasos","Two step verification 2":"Verificación de dos pasos 2",Exchange:sv,Lending:ov,"KYC Application":"Solicitud KYC","ICO Landing":"Aterrizaje ICO",Email:nv,"Read Email":"Leer el correo electrónico",Inbox:iv,Invoices:cv,"Invoice List":"Lista de facturas","Invoice Detail":"Detalle de factura",Projects:lv,"Projects Grid":"Griglia dei progetti","Projects List":"Elenco dei progetti","Project Overview":"Panoramica del progetto","Create New":"Creare nuovo",Tasks:dv,"Task List":"Elenco delle attività","Create Task":"Crea attività",Contacts:pv,"User Grid":"Griglia utente","User List":"lista degli utenti",Profile:uv,Authentication:gv,Login:mv,Register:hv,"Forget Password":"Contraseña olvidada",Utility:fv,"Starter Page":"Página de inicio",Maintenance:bv,"Coming Soon":"Próximamente",Timeline:yv,FAQs:xv,Pricing:Ev,"Error 404":"error 404","Error 500":"Error 500",Components:Sv,"UI Elements":"Elementos de la IU",Alerts:_v,Buttons:Tv,Cards:Av,Carousel:vv,Dropdowns:Lv,Grid:Cv,Images:Dv,Modals:Iv,Lightbox:jv,"Range Slider":"Control deslizante de rango","Session Timeout":"Hora de término de la sesión","Progress Bars":"Barras de progreso","Sweet-Alert":"Alerta dulce","Tabs & Accordions":"Pestañas y acordeones",Typography:wv,Video:Rv,General:kv,Colors:Pv,Rating:Ov,Notifications:Bv,"Image Cropper":"Recortador de imagen",Forms:Nv,"Form Elements":"Elementos de formulario","Form Validation":"Validación de formulario","Form Advanced":"Formulario avanzado","Form Editors":"Editores de formularios","Form Layouts":"Diseños de formulario","Form File Upload":"Subir archivo de formulario","Form Xeditable":"Formulario Xeditable","Form Repeater":"Repetidor de forma","Form Wizard":"Asistente de formulario","Form Mask":"Máscara de forma",Tables:Fv,"Basic Tables":"Tablas Básicas","Data Tables":"Tablas de datos","Responsive Table":"Mesa receptiva","Editable Table":"Tabla editable",Charts:Mv,"Apex charts":"Tablas de Apex","Chartist Chart":"Gráfico Chartist","Chartjs Chart":"Gráfico de Chartjs","E Chart":"Gráfico E","Sparkline Chart":"Gráfico de minigráfico","Toast UI Chart":"Toast UI Chart",Icons:Uv,Boxicons:Gv,"Material Design":"Diseño de materiales",Dripicons:$v,"Font awesome":"Font awesome",Maps:zv,"Google Maps":"mapas de Google","Vector Maps":"Mapas vectoriales","Level 1.1":"Nivel 1.1","Multi Level":"Multi nivel","Level 1.2":"Nivel 1.2","Level 2.1":"Nivel 2.1","Level 2.2":"Nivel 2.2","My Wallet":"Mi billetera",Settings:Vv,"Lock screen":"Bloquear pantalla",Logout:Hv,"View all":"Ver todo","Your order is placed":"Su pedido es realizado","If several languages coalesce the grammar":"Si varios idiomas fusionan la gramática","3 min ago":"Hace 3 minutos","It will seem like simplified English":"Parecerá un inglés simplificado","1 hours ago":"Hace 1 hora","Your item is shipped":"Su artículo es enviado","As a skeptical Cambridge friend of mine occidental":"Como escéptico amigo mio de Cambridge occidental","UI Components":"Componentes de la IU",Applications:Wv,"Extra Pages":"Páginas extra","Horizontal layout":"Diseño horizontal","Light Sidebar":"Barra lateral ligera","Compact Sidebar":"Barra lateral compacta",Logs:Jv,"Hurl Log":"Registro de hurl"},Qv="Search",Yv="Menu",Kv="Dashboards",Zv="Dashboard",Xv="Default",eL="Saas",tL="Crypto",rL="Apps",aL="Calendar",sL="New",oL="Chat",nL="Ecommerce",iL="Products",cL="Orders",lL="Customers",dL="Cart",pL="Checkout",uL="Shops",gL="Wallet",mL="Exchange",hL="Lending",fL="Email",bL="Inbox",yL="Invoices",xL="Projects",EL="Tasks",SL="Blog",_L="Templates",TL="Contacts",AL="Profile",vL="Authentication",LL="Login",CL="Register",DL="Utility",IL="Maintenance",jL="Timeline",wL="FAQs",RL="Pricing",kL="Components",PL="Alerts",OL="Buttons",BL="Cards",NL="Carousel",FL="Dropdowns",ML="Grid",UL="Images",GL="Lightbox",$L="Modals",zL="Typography",VL="Video",HL="General",WL="Colors",JL="Rating",qL="Notifications",QL="Forms",YL="Tables",KL="Charts",ZL="Icons",XL="Boxicons",eC="Dripicons",tC="Maps",rC="Settings",aC="Logout",sC="Applications",oC="Logs",nC={"Mega Menu":"Mega Menu",Search:Qv,Menu:Yv,Dashboards:Kv,Dashboard:Zv,Default:Xv,Saas:eL,Crypto:tL,Apps:rL,Calendar:aL,New:sL,Chat:oL,Ecommerce:nL,Products:iL,"Product Detail":"Product Detail",Orders:cL,Customers:lL,Cart:dL,Checkout:pL,Shops:uL,"Add Product":"Add Product",Wallet:gL,"Buy/Sell":"Buy/Sell",Exchange:mL,Lending:hL,"KYC Application":"KYC Application","ICO Landing":"ICO Landing",Email:fL,Inbox:bL,"Read Email":"Read Email",Invoices:yL,"Invoice List":"Invoice List","Invoice Detail":"Invoice Detail",Projects:xL,"Projects Grid":"Projects Grid","Projects List":"Projects List","Project Overview":"Project Overview","Create New":"Create New",Tasks:EL,"Task List":"Task List",Blog:SL,"File Manager":"File Manager","Blog List":"Blog List","Blog Grid":"Blog Grid","Blog Details":"Blog Details",Templates:_L,"Basic Action":"Basic Action","Alert Email"
502:"Alert Email","Billing Email":"Billing Email","Login 2":"Login 2","Register 2":"Register 2","Recover Password":"Recover Password","Recover Password 2":"Recover Password 2","Lock Screen 2":"Lock Screen 2","Confirm Mail":"Confirm Mail","Confirm Mail 2":"Confirm Mail 2","Email verification":"Email verification","Email verification 2":"Email verification 2","Two step verification":"Two Step verification","Two step verification 2":"Two Step verification 2","Create Task":",Create Task",Contacts:TL,"User Grid":"User Grid","User List":"User List",Profile:AL,Authentication:vL,Login:LL,Register:CL,"Forget Password":"Forget Password",Utility:DL,"Starter Page":"Starter Page",Maintenance:IL,"Coming Soon":"Coming Soon",Timeline:jL,FAQs:wL,Pricing:RL,"Error 404":"Error 404","Error 500":"Error 500",Components:kL,"UI Elements":"UI Elements",Alerts:PL,Buttons:OL,Cards:BL,Carousel:NL,Dropdowns:FL,Grid:ML,Images:UL,Lightbox:GL,Modals:$L,"Range Slider":"Range Slider","Session Timeout":"Session Timeout","Progress Bars":"Progress Bars","Sweet-Alert":"Sweet-Alert","Tabs & Accordions":"Tabs & Accordions",Typography:zL,Video:VL,General:HL,Colors:WL,Rating:JL,Notifications:qL,"Image Cropper":"Image Cropper",Forms:QL,"Form Elements":"Form Elements","Form Validation":"Form Validation","Form Layouts":"Form Layouts","Form Advanced":"Form Advanced","Form Editors":"Form Editors","Form File Upload":"Form File Upload","Form Xeditable":"Form Xeditable","Form Repeater":"Form Repeater","Form Wizard":"Form Wizard","Form Mask":"Form Mask",Tables:YL,"Basic Tables":"Basic Tables","Data Tables":"Data Tables","Responsive Table":"Responsive Table","Editable Table":"Editable Table",Charts:KL,"Apex charts":"Apex charts","Chartist Chart":"Chartist Chart","Chartjs Chart":"Chartjs Chart","E Chart":"E Chart","Sparkline Chart":"Sparkline Chart","Toast UI Chart":"Toast UI Chart",Icons:ZL,Boxicons:XL,"Material Design":"Material Design",Dripicons:eC,"Font awesome":"Font awesome",Maps:tC,"Google Maps":"Google Maps","Vector Maps":"Vector Maps","Level 1.1":"Level 1.1","Multi Level":"Multi Level","Level 1.2":"Level 1.2","Level 2.1":"Level 2.1","Level 2.2":"Level 2.2","My Wallet":"My Wallet",Settings:rC,"Lock screen":"Lock screen","View all":"View all",Logout:aC,"Your order is placed":"Your order is placed","It will seem like simplified English":"It will seem like simplified English","Your item is shipped":"Your item is shipped","If several languages coalesce the grammar":"If several languages coalesce the grammar","3 min ago":"3 min ago","As a skeptical Cambridge friend of mine occidental":"As a skeptical Cambridge friend of mine occidental","1 hours ago":"1 hours ago","UI Components":"UI Components",Applications:sC,"Extra Pages":"Extra Pages","Horizontal layout":"Horizontal layout","Light Sidebar":"Light Sidebar","Compact Sidebar":"Compact Sidebar",Logs:oC,"Hurl Log":"Hurl Log"},iC="गंतव्य",cC="English",lC="जारी रखें",dC="दूरी",pC="अपडेट",uC="चालक",gC="सौंपा गया",mC="पूरा",hC="ट्रिप",fC="गंतव्य",bC="रद्द करें",yC="रिटेलर",xC="शुरू किया गया",EC="पूरा हुआ",SC="रद्द किया गया",_C="अस्वीकृत",TC="बंद",AC="बंद",vC="समाप्त",LC="मूल",CC="सफल",DC="स्टॉप",IC="हो गया",jC={Destination:iC,"Not Specified":"निर्दिष्ट नहीं","Drop-offs":"ड्रॉप-ऑफ़","New Trip #":"नई ट्रिप #","Confirm you want to accept this trip":"पुष्टि करें कि आप इस ट्रिप को स्वीकार करना चाहते हैं","Tap to start the trip":"ट्रिप शुरू करने के लिए टैप करें","By starting trip your live location will be shared to your respective heads":"ट्रिप शुरू करने से आपका लाइव स्थान संबंधित प्रमुखों के साथ साझा किया जाएगा","Select Language":"भाषा चुनें","Choose preferred language":"पसंदीदा भाषा चुनें",English:cC,"Hindi (हिन्दी)":"Hindi (हिन्दी)",Continue:lC,"Delivery Address":"वितरण का पता","Active Trip":"सक्रिय ट्रिप",Distance:dC,"Pause Trip":"ट्रिप रोकें","Resume Trip":"ट्रिप फिर से शुरू करें",Update:pC,Driver:uC,"Delivery Details":"वितरण विवरण","Special Instructions":"विशेष निर्देश","Complete Trip":"ट्रिप पूरी करें","Enter OTP to confirm trip completion":"ट्रिप पूरी होने की पुष्टि के लिए OTP दर्ज करें","End Tr
502ip":"ट्रिप समाप्त करें","In Progress":"प्रगति पर है",Assigned:gC,"Driver Not Found":"चालक नहीं मिला",Complete:mC,Trip:hC,"Enter OTP / PIN to Complete":"पूरा करने के लिए OTP / PIN दर्ज करें","the trip #":"ट्रिप #",destination:fC,"Address not available":"पता उपलब्ध नहीं है","Ask the receiver for the OTP":"प्राप्तकर्ता से OTP मांगें","Didn't receive code?":"कोड नहीं मिला?","Resend OTP":"OTP फिर से भेजें","Complete Destination":"मंजिल पूरी करें","Request a change":"परिवर्तन का अनुरोध करें","Dispatch will pause the trip and arrange a swap. You'll stay on the clock.":"डिस्पैच ट्रिप रोकेगा और स्वैप की व्यवस्था करेगा। आप ड्यूटी पर रहेंगे।","What needs changing?":"क्या बदलने की ज़रूरत है?","Driver Change":"ड्राइवर बदलें","I can't continue this trip":"मैं यह ट्रिप जारी नहीं रख सकता","Vehicle Change":"वाहन बदलें","Truck issue, cargo is fine":"ट्रक की समस्या, कार्गो ठीक है","Replace Both":"दोनों बदलें","Trip can't continue as is":"ट्रिप ऐसे जारी नहीं रह सकती","Pick a reason":"कारण चुनें","Feeling unwell":"तबीयत ठीक नहीं","Shift hours exceeded":"शिफ्ट के घंटे पूरे हुए","Personal Emergency":"व्यक्तिगत आपातकाल","Mechanical Issue":"यांत्रिक समस्या","Fuel/Battery":"ईंधन/बैटरी","Tyres/Brake":"टायर/ब्रेक","Accident/Incident":"दुर्घटना/घटना","Safety Concerns":"सुरक्षा चिंताएं","Truck Breakdown":"ट्रक खराबी","Add Photos":"फ़ोटो जोड़ें","Click photo":"फ़ोटो क्लिक करें","Add details (Optional)":"विवरण जोड़ें (वैकल्पिक)","Anything dispatch should know location, ETA, severity...":"डिस्पैच को स्थान, ETA, गंभीरता... कुछ भी बताएं","Not now":"अभी नहीं","Submit Request":"अनुरोध सबमिट करें","Trip History":"ट्रिप इतिहास","No trips found":"कोई ट्रिप नहीं मिली","Your past trips will appear here.":"आपकी पिछली ट्रिपएं यहां दिखाई देंगी।","Update Status":"स्थिति अपडेट करें","Share your current trip update or issues to keep your team informed in real-time":"अपनी टीम को रीयल-टाइम में सूचित रखने के लिए अपनी वर्तमान ट्रिप अपडेट या समस्याएं साझा करें","Remarks or Issue":"टिप्पणियाँ या समस्या","Common reasons (Click to use)":"सामान्य कारण (उपयोग करने के लिए क्लिक करें)",Cancel:bC,"Experiencing a delay due to traffic.":"ट्रैफ़िक के कारण देरी का अनुभव हो रहा है।","Facing an issue, trip temporarily paused.":"समस्या का सामना करना पड़ रहा है, ट्रिप अस्थायी रूप से रोक दी गई है।","Struck due to empty diesel":"डीजल खत्म होने के कारण फंस गया",Retailer:yC,Started:xC,Completed:EC,Cancelled:SC,Rejected:_C,Close:TC,Closed:AC,Ended:vC,Origin:LC,"Please attach a photo. A photo is required for status updates.":"कृपया एक फोटो संलग्न करें। स्थिति अपडेट के लिए एक फोटो की आवश्यकता है।",Success:CC,"Trip started successfully!":"ट्रिप सफलतापूर्वक शुरू हुई!","Waiting for GPS location...":"जीपीएस स्थान की प्रतीक्षा की जा रही है...","Trip Resumed":"ट्रिप सफलतापूर्वक जारी","All destinations completed! Trip is complete.":"सभी गंतव्य पूरे हुए! ट्रिप पूरी हो गई है।","Trip not found":"ट्रिप नहीं मिली","Cannot get your current location. Make sure location services are enabled.":"आपका वर्तमान स्थान नहीं मिल सका। सुनिश्चित करें कि स्थान सेवाएँ सक्षम हैं।","Trip Paused":"ट्रिप सफलतापूर्वक रुकी","Status updated successfully":"स्थिति सफलतापूर्वक अपडेट","Destination completed!":"गंतव्य पूरा हुआ!","Trip completed successfully!":"ट्रिप सफलतापूर्वक पूरी हुई!","Failed to verify OTP.":"OTP सत्यापित करने में विफल।","An error occurred while completing the trip.":"ट्रिप पूरी करते समय एक त्à
502¤°à¥à¤Ÿà¤¿ हुई।","Click Photo":"फ़ोटो क्लिक करें","Change request submitted. Dispatch notified.":"परिवर्तन अनुरोध सफलतापूर्वक उठाया गया","Failed to request change":"परिवर्तन का अनुरोध करने में विफल","Failed to update status.":"स्थिति अपडेट करने में विफल।","Failed to update status":"स्थिति अपडेट करने में विफल","An error occurred":"एक त्रुटि हुई","Failed to start trip.":"ट्रिप शुरू करने में विफल।","OTP sent successfully!":"OTP सफलतापूर्वक भेजा गया!","Failed to send OTP.":"OTP भेजने में विफल।","An error occurred while requesting OTP.":"OTP का अनुरोध करते समय एक त्रुटि हुई।","Please enter a valid 6-digit OTP":"कृपया एक वैध 6-अंकीय OTP दर्ज करें",Stop:DC,"Destination Address":"गंतव्य पता","Ensure that your package arrives safely and on time.":"सुनिश्चित करें कि आपका पैकेज सुरक्षित और समय पर पहुँचे।","Delivery Stops":"डिलीवरी स्टॉप",Done:IC,"Complete Stop":"स्टॉप पूरा करें","Enter OTP / PIN to Complete destination":"गंतव्य पूरा करने के लिए OTP / PIN दर्ज करें","Enter OTP / PIN to Complete the trip #{{id}}":"ट्रिप #{{id}} पूरी करने के लिए OTP / PIN दर्ज करें","Sending...":"भेजा जा रहा है..."},wC={gr:{translation:YS},it:{translation:fT},rs:{translation:BA},sp:{translation:qv},eng:{translation:nC},hi:{translation:jC}},RC=localStorage.getItem("I18N_LANGUAGE");RC||localStorage.setItem("I18N_LANGUAGE","en");Ca.use(Ln).use(Cn).init({resources:wC,lng:localStorage.getItem("I18N_LANGUAGE")||"en",fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1}});const kC="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGwAAAgIDAQAAAAAAAAAAAAAAAAcDBgEEBQj/xAA1EAABAgIHBwIFAwUAAAAAAAABAgQAAwUGBxESFlYTFBVRk6HTMVciI5GS0hdBYiElRVKC/8QAGgEAAgMBAQAAAAAAAAAAAAAAAAYBBQcDBP/EADERAAAEAwMKBQUAAAAAAAAAAAABAgMEBRESIZETFBUWUVRWkpPSBjIzZoExQVNk0f/aAAwDAQACEQMRAD8AoRouTPo5m9mKnNJ0yS7nrcOydi8VLWAJbYpQSV88X7x0zV9nxZcnc6RwCcuVwr/KACRtNqRgw4L+0RtEhtQzadMG6hwwfoTOegOJLoiYkYGyMB2MwemOO0W39wNF7k62ofTF8Mxp4okbpftN6wXGX++CNHU4ojWRKOlFl8VFeK23oNotqsrcmbj3A7/JxFoz3kkLQ6vReFD+MWWqNDUPx+r8mlHDpk0cSX22fkjd5+xKwhTclIOH+lxjUbqQuXIfCdLmIbIohK3siQENGhxH4XkjB89Q/wBo6lW10QxrDVt/TlFOXFGzUUkpSpaxu7n4lpC20v5eySk+qY8UzWapfHktRWci5W15fTreLCUm4U0lxtG7lM5as5EiNytovJauqHXlazfWk76p/CDK1m+tJ31T+EGYbK9KPPtHlgzDZXpR59o8sZRRjZCYrG1VnXuTkhAZWs31pO+qfwjKas2cJIUmuk4KBvBBSCCP+IxmGyvSjz7R5YMw2V6UefaPLBRj9TFYKzo7j1k5IQI9FS6/MWqGrGpdJSXCpLhs8nYDOTPlzFAgJSQQjliTG2aqVzLhUn9P6T4Nty4Sw+PGJhlbPFt8OP8AlHpHglrOp2HbwwcEtZ1Ow7eGHHWmIP6y06/P9GZaswnEkr6jnYPNMuq9ooSifOqdSUykWwaJYuRKwiQlqSQlSAnDNv5qixVQoGu9DViomnBUN4HTdDsuVzQrZz1uMVygj0Rdf6CHpwS1nU7Dt4YOCWs6nYdvDHJ/xJEPsvM6PUjKINFpJXlUqbR2h/DsEw+y8ufyp1KFpUaFuu2VU+x0QIs0V90IjprgzRX3QiOmuJeCWs6nYdvDBwS1nU7Dt4YW6vbYrlQGazKPbvXihFmivuhEdNcGaK+6ER01xLwS1nU7Dt4YOCWs6nYdvDBV7bFcqAWZR7d68UK1lep3uIrrIgyvU73EV1kQqXqEIeukIQAkTZgAAuAuMa1w5RW5w3uyMVB/TI5goiPWOLvL8THYG/lep3uIrrIgyvU73EV1kQoLhyguHKDOW92RioToGYcRxfSY7A38r1O9xFdZEGV6ne4iusiFBcOUFw5QZy3uyMVA0DMOI4vpMdgb+V6ne4iusiDK9TvcRXWRCguHKNlkhC3rVC0ApM2WCCLwbzBnDe7IxUIVI5glJnrHF3FX0mOwf//Z",PC="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUV
502Fx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGgAAAwEBAQEAAAAAAAAAAAAAAAUIBgQBAv/EACkQAAIBAgQFBAMBAAAAAAAAAAECAwAEBQYREhUWVZTRExRRUiIxQXH/xAAaAQACAwEBAAAAAAAAAAAAAAAABgEDBwQC/8QAKREAAgEDAgUDBQEAAAAAAAAAAQIDAAQRIVQFEhMUkhWRkwYWNFNxgf/aAAwDAQACEQMRAD8AyzSSSMWZ2ZmbVmJJJJ/przc32aq04BgXRrDtk8V8PguW4Y5JrrDcNggiR3eR7eMKqqNST+NZfH9WxSukcdhKzuQqgMNSa2b1+ID8Z/epO3N9mo3N9mqlbC7yLiF/Lh8WHwRS+pshe5w4QpK2u3buK/idw0Aan/AMC6NYdsniui6+omsigueHSLzZ5SJFIOP5Xo8dVTyvZyqcA4bTQ/0VJe5vs1G5vs1VpwDAujWHbJ4o4BgXRrDtk8VyfeFvspPIVHr8W3f3qS9zfZq9WSSNgyuysraqwJBBH9FVnwDAujWHbJ4o4BgXRrDtk8UfeFvspPIUevRbZ/enFYLMM/D0ZbLD8QtPd3UbX07e3kUxsCm5VjaRwGAGm5K3tZWe1fFbO4w9cCTCgzBzcL6Tes4kDEuI2JJPyaW+ENbIl7JcdPRY+UO4U5LjUAnXFLkcqxTwBwSjNhsAkf7iluRsTytMbuC6ksPd2uIMDLd7bZxbFQFKkiMFtQdRWlshavcXN9Dhl5BLcNtmmlkt2icwnaoURO5BA+wFZmfIqJbotpiVuXnhMd0TAwOpZ9HTQjcdH0/KtLbPuugnLiWuxHT32sReZQw2hthLf5rTJxm74XcWkkNrFbo8VmoEglQu7FkY5xy5Oh0ql2w5m7h5WmkcEBHVUQEkDBNOKKKKQKsooooooqT+aMx9cv8AuH80c0Zj65f9w/mubEY40v75ERVVbiVVAGgAB/Qrl2r8Cto7S120PxrT6IoSAehH4LTPmjMfXL/uH80c0Zj65f8AcP5pZtX4FG1fgUdpa7aH41qejD+mPwWmfNGY+uX/AHD+aOaMx9cv+4fzSzavwKNq/Ao7S120PxrR0Yf0x+C0z5ozH1y/7h/NHNGY+uX/AHD+aWbV+BXVh0cb39ijorK1xErAjUEE/o0dna7aH41qDFCBnoR+C1//2Q==",OC="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAAcCBQH/xAAlEAABAgILAQEAAAAAAAAAAAABAAIDUQUREhYXVFWjpNLiITL/xAAYAQEBAQEBAAAAAAAAAAAAAAAABwEDBf/EACURAAACCQUBAQAAAAAAAAAAAAABAgMEBREVVKPRFBZVkpTSUf/aAAwDAQACEQMRAD8AiL4sWI98SJFe57nEucSSST9JJK8tOmV3bs03kdyH2S7NN5Hch9l31bLVKe5D1JA/eEb/ADLMDhWnTKWnTK7t2abyO5D7Jdmm8juQ+yaxlqlPcgkD94Rv8yzA4Vp0ylp0yu7dmm8juQ+yXZpvI7kPsmsZapT3IJA/eEb/ADLMDhWnTK9ZFiw3siQ4r2va4FrgSCCPoIIXcuzTeR3IfZLs03kdyH2TVstUp7kEgfvCN/mWYFWRVjC8a5xfaYXjXOL7UunzqqraeBft0uKutLPkSdFWMLxrnF9phe
502Nc4vtJ86qq2ngN0uKutLPkSdFWMLxrnF9pheNc4vtJ86qq2ngN0uKutLPkSdFWMLxrnF9pheNc4vtJ86qq2ngN0uKutLPkVpFt/wC3iRSoSU5SRgZlER+Iwi3UJJUJLIBEYRbqEkqEkgERhFuoSRn7YJlaSMTIv0wiP//Z",BC="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGwAAAgIDAQAAAAAAAAAAAAAAAAgCBwEDBAX/xAAjEAACAQMEAgMBAAAAAAAAAAABAgADBzYEEXSxUbISIUQW/8QAFwEBAQEBAAAAAAAAAAAAAAAABwYFCP/EACcRAAIAAgkEAwAAAAAAAAAAAAABAgMEBQYHETM0dII1NrHBEiEx/9oADAMBAAIRAxEAPwD1mdmYu7sWLbkk7kkyO58yMJzKT5ZtqSf6at9/gre6xi4ulqcmrcCr7rGLjRYXoS3Ez0atDyeTCLPdnKl+/wAVLtozEWa7OVrwqPbShrPTc4RGu77he1m+UVlufMyrupDK5UqdwQdiCJiEnh2aT+mjuhCEFzi4s21OTVuBV91jFxdLU5NW4FX3WMXGiwnQluJno1aFk8mEWa7OVrwqPbRmYs12crXhUe2lDWem5wiNd33C9rN8orKEISeHc7oT0NaiJrdWiIFUVXAAGwABmj4r4EGYocG1icWliWpyatwKvusYuLvazJq3Cq+yxiozWF6EtxM9GrQsnkyMWa7OVrwqPbRm4tF18qXhUu2lDWem5wiNd33A9rN8oq6E27DxOnRIj63So6AqatMEEbg7mTw6RR/GFvD8WJ//2Q==",NC="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGQABAAMBAQAAAAAAAAAAAAAAAAMGBwQI/8QAIxAAAgACCwEAAAAAAAAAAAAAAAECBAcRFhdRVFajpNPiA//EABoBAQACAwEAAAAAAAAAAAAAAAABBgIEBwj/xAAmEQAAAwUJAQEAAAAAAAAAAAAAAQIDBhZUowQRExRSVZPR0hIx/9oADAMBAAIRAxEAPwD3UDLL6qM9S8Oa6xfVRnqXhzXWbeQt0k341dDDERrIamDLL6qM9S8Oa6xfVRnqXhzXWMhbpJvxq6DERrIamDLL6qM9S8Oa6xfVRnqXhzXWMhbpJvxq6DERrIamDLL6qM9S8Oa6xfVRnqXhzXWMhbpJvxq6DERrIeBgXOySz+16Fkln9r0WmLHfn6TXyLBAD27TXY+xTAXOySz+16Fkln9r0Isd+fpNfIQA9u012PsUwFzsks/tehZJZ/a9CLHfn6TXyEAPbtNdj7FMBc7JLP7XoWSWf2vQix35+k18hAD27TXY+xcwd07BBBOzUEECUK+v0SSVSVTOapYHGR6SSv6Iju/SIxECWpYCpYATeIgS1LAVLABeIgS1LA6ZKCCOdlYI4E4X9fmmmq062BCl/KTO78K8f//Z",Tt={sp:{label:"Spanish",flag:PC},gr:{label:"German",flag:OC},it:{label:"Italian",flag:BC},rs:{label:"Russian",flag:NC},en:{label:"English",flag:kC}},FC=()=>{const[e,r]=a.useState(""),[s,o]=a.useState(!1);a.useEffect(()=>{const c=localStorage.getItem("I18N_LANGUAGE");r(c)},[]);const n=c=>{Ca.changeLanguage(c),localStorage.setItem("I18N_LANGUAGE",c),r(c)},i=()=>{o(!s)};return t.jsx(t.Fragment,{children:t.jsxs(ze,{isOpen:s,toggle:i,className:"d-inline-block",children:[t.jsx(Ve,{className:"btn header-item ",tag:"button",children:t.jsx("img",{src:yt.get(Tt,`${e}.flag`),alt:"Skote",height:"16",className:"me-1"})}),t.jsx(He,{className:"language-switch dropdown-menu-end",children:yt.map(Object.keys(Tt),c=>t.jsxs(Ct,{onClick:()=>n(c),className:`notify-item ${e===c?"active":"none"}`,children:[t.jsx("img",{src:yt.get(Tt,`${c}.flag`),alt:"Skote",className:"me-1",height:"12"}),t.jsx("span",{className:"align-middle",children:yt.get(Tt,`${c}.label`)})]},c))})]})})};Ze()(FC);const so=e=>{const r=se(p=>p.Login,p=>({userData:p.userData})),{userData:s}=Oe(r),o=Ot(),[n,i]=a.useState(!1),[c,m]=a.useState(!1),[f,y]=a.useState("Admin");return a.useEffect(()=>{localStorage.getItem("authUser")&&(JSON.parse(localStorage.getItem("authUser")),y(s?.name))},[e.success]),t.jsxs(X.Fragment,{children:[t.jsxs(ze,{isOpen:n,toggle:()=>i(!n),className:"d-inline-block",children:[t.jsxs(Ve,{className:"btn header-item ",id:"page-header-user-dropdown",tag:"button",children:[t.jsx("img",{className:"rounded-circle header-profile-user",src:`https://ui-avatars.com/api/?name=${f}&background=random`,alt:"Header Avatar"}),t.jsx("span",{className:"d-none d-xl-inline-block ms-2 me-1",children:f}),t.jsx("i",{className:"mdi mdi-chevron-down d-none d-xl-inline-block"})]}),t.jsxs(He,{className:"dropdown-menu-end",children:[t.jsxs(Ct,{tag:"a",href:"/profile",children:[" ",t.jsx("i",{className:"bx bx-user font-size-16 align-middle me-1"}),e.t("Profile")," "]}),t.jsx("div",{className:"dropdown-divider"}),t.jsxs(Ct,{onClick:async p=>{p.preventDefault(),i(!1),m(!0),await o()},children:[t.jsx("i",{className:"bx bx-power-off font-size-16 align-middle me-1 text-danger"}),t.jsx("span",{children:e.t("Logout")})]})]})]}),c&&t.jsxs("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"20px"},children:[t.jsx("div",{className:"spinner-border text-primary",role:"status",style:{width:"3rem",height:"3rem"},children:t.jsx("span",{className:"sr-only",children:"Loading..."})}),t.jsx("h4",{className:"text-muted",children:"Logging out..."})]})]})};so.propTypes={success:P.any,t:P.any};const MC=e=>{const{error:r,success:s}=e.Profile;return{error:r,success:s}},UC=mt(et(MC,{})(Ze()(so))),oo=e=>{const[r,s]=a.useState(!1),[o,n]=a.useState(!1),[i,c]=a.useState(!1);function m(){!document.fullscreenElement&&!document.mozFullScreenElement&&!document.webkitFullscreenElement?document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}return t.jsx(X.Fragment,{children:t.jsx("header",{id:"page-topbar",children:t.jsxs("div",{className:"navbar-header",children:[t.jsx("div",{className:"d-flex",children:t.jsx("button",{type:"button",className:"btn btn-sm px-3 font-size-16 d-lg-none header-item","data-toggle":"collapse",onClick:()=>{e.toggleLeftmenu(!e.leftMenu)},"data-target":"#topnav-menu-content",children:t.jsx("i",{className:"fa fa-fw fa-bars"})})}),t.jsxs("div",{className:"d-flex",children:[t.jsxs("div",{className:"dropdown d-inline-block d-lg-none ms-2",children:[t.jsx("button",{type:"button",className:"btn header-item noti-icon ",id:"page-header-search-dropdown",onClick:()=>n(!o),children:t.jsx("i",{className:"mdi mdi-magnify"})}),t.jsx("div",{className:o?"dropdown-menu dropdown-menu-lg dropdown-menu-end p-0 show":"dropdown-menu dropdown-menu-lg dropdown-menu-end p-0","aria-labelledby":"page-header-search-dropdown",children:t.jsx("form",{className:"p-3",children:t.jsx("div",{className:"form-group m-0",children:t.jsxs("div",{className:"input-group",children:[t.jsx("input",{type:"text",className:"form-control",placeholder:e.t("Search")+"...","aria-label":"Recipient's username"}),t.jsx("div",{className:"input-group-append",children:t.jsx("button",{className:"btn btn-primary",type:"submit",children:t.jsx("i",{className:"mdi mdi-magnify"})})})]})})})})]}),t.jsx("div",{className:"dropdown d-none d-lg-inline-block ms-1",children:t.jsx("button",{type:"button",className:"btn header-item noti-icon ",onClick:()=>{m()},"data-toggle":"fullscreen",children:t.jsx("i",{className:"bx bx-fullscreen"})})}),t.jsx(Ds,{}),t.jsx(UC,{})]})]})})})};oo.propTypes={leftMenu:P.any,showRightSidebar:P.any,showRightSidebarAction:P.func,t:P.any,toggleLeftmenu:P.func};const GC=e=>{const{layoutType:r,showRightSidebar:s,leftMenu:o}=e.Layout;return{layoutType:r,showRightSidebar:s,leftMenu:o}},$C=et(GC,{showRightSidebarAction:ht,toggleLeftmenu:Va})(Ze()(oo)),zC=()=>t.jsx(X.Fragment,{children:t.jsx("footer",{className:"footer",children:t.jsx(Da,{fluid:!0,children:t.jsxs(We,{children:[t.jsxs(Pe,{md:6,children:[new Date().getFullYear()," © LogystiX."]}),t.jsx(Pe,{md:6,children:t.jsxs("div",{className:"text-sm-end d-none d-sm-block",children:["Design & Develop by"," ",t.jsx("a",{href:"https://www.aeonx.digital/",target:"_blank",className:"text-primary-500 font-semibold",children:"AeonX Digital"})]})})]})})})}),no=e=>{const r=Je(),s=se(h=>h.Layout,h=>({topbarTheme:h.topbarTheme,layoutWidth:h.layoutWidth,isPreloader:h.isPreloader,showRightSidebar:h.showRightSidebar,layoutModeType:h.layoutModeType})),{topbarTheme:o,layoutModeType:n,layoutWidth:i,isPreloader:c,showRightSidebar:m}=Oe(s),f=je();a.useEffect(()=>{const h=f.pathname;let l=h.charAt(1).toUpperCase()+h.slice(2);document.title=l+" | LogystiX"},[f.pathname]),a.useEffect(()=>{window.scrollTo(0,0)},[]);const y=h=>{var l=document.getElementById("right-bar");l&&l.contains(h.target)||r(ht(!1))};a.useEffect(()=>{r(yr("horizontal"))},[r]),a.useEffect(()=>{document.body.addEventListener("click",y,!0);let h=null;return c===!0?(document.getElementById("preloader").style.display="block",document.getElementById("status").style.display="block",h=setTimeout(()=>{document.getElementById("preloader").style.display="none",document.getElementById("status").style.display="none"},2500)):(document.getElementById("preloader").style.display="none",document.getElementById("status").style.display="none"),()=>{document.body.removeEventListener("click",y,!0),h&&clearTimeout(h)}},[c]),a.useEffect(()=>{o&&r(Er(o))},[r,o]),a.useEffect(()=>{n&&r(kt(n))},[n,r]),a.useEffect(()=>{i&&r(xr(i))},[r,i]);
502const[p,d]=a.useState(!1),S=()=>{d(!p)};return t.jsxs(X.Fragment,{children:[t.jsx("div",{id:"preloader",children:t.jsx("div",{id:"status",children:t.jsxs("div",{className:"spinner-chase",children:[t.jsx("div",{className:"chase-dot"}),t.jsx("div",{className:"chase-dot"}),t.jsx("div",{className:"chase-dot"}),t.jsx("div",{className:"chase-dot"}),t.jsx("div",{className:"chase-dot"}),t.jsx("div",{className:"chase-dot"})]})})}),t.jsxs("div",{id:"layout-wrapper",children:[t.jsx($C,{theme:o,isMenuOpened:p,openLeftMenuCallBack:S}),t.jsx(jE,{menuOpen:p}),t.jsxs("div",{className:"main-content",children:[t.jsx(eo,{}),e.children]}),t.jsx(zC,{})]}),m?t.jsx(Xs,{}):null]})};no.propTypes={changeLayout:P.func,changeLayoutWidth:P.func,changeTopbarTheme:P.func,children:P.object,isPreloader:P.any,layoutWidth:P.any,location:P.object,showRightSidebar:P.any,topbarTheme:P.any};const VC=mt(no),io=e=>{const r=Je(),s=se(n=>n.Layout,n=>({layoutModeType:n.layoutModeType})),{layoutModeType:o}=Oe(s);return a.useEffect(()=>{o&&r(kt(o))},[o]),t.jsx(X.Fragment,{children:e.children})};io.propTypes={children:P.any,location:P.object};const ya=mt(io),HC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),t.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),t.jsx("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"}),t.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"})]}),WC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z"}),t.jsx("path",{d:"M6 12H4a2 2 0 0 0-2 2v8h4"}),t.jsx("path",{d:"M18 9h2a2 2 0 0 1 2 2v11h-4"}),t.jsx("path",{d:"M10 6h4"}),t.jsx("path",{d:"M10 10h4"}),t.jsx("path",{d:"M10 14h4"}),t.jsx("path",{d:"M10 18h4"})]}),JC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),t.jsx("path",{d:"M3 5v14c0 1.66 4.03 3 9 3s9-1.34 9-3V5"}),t.jsx("path",{d:"M3 12c0 1.66 4.03 3 9 3s9-1.34 9-3"})]}),qC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),t.jsx("polyline",{points:"9 12 11 14 15 10"})]}),QC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),t.jsx("rect",{x:"9",y:"9",width:"6",height:"6"}),t.jsx("path",{d:"M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3"})]}),Ht=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}),t.jsx("line",{x1:"8",y1:"10",x2:"16",y2:"10"}),t.jsx("line",{x1:"8",y1:"14",x2:"12",y2:"14"})]}),YC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"4",y1:"21",x2:"4",y2:"14"}),t.jsx("line",{x1:"4",y1:"10",x2:"4",y2:"3"}),t.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"3"}),t.jsx("line",{x1:"20",y1:"21",x2:"20",y2:"16"}),t.jsx("line",{x1:"20",y1:"12",x2:"20",y2:"3"}),t.jsx("line",{x1:"1",y1:"14",x2:"7",y2:"14"}),t.jsx("line",{x1:"9",y1:"8",x2:"15",y2:"8"}),t.jsx("line",{x1:"17",y1:"16",x2:"23",y2:"16"})]}),KC=({size:e=18})=>t.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})}),ZC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("line",{x1:"21",y1:"4",x2:"14",y2:"4"}),t.jsx("line",{x1:"10",y1:"4",x2:"3",y2:"4"}),t.jsx("line",{x1:"21",y1:"12",x2:"12",y2:"12"}),t.jsx("line",{x1:"8",y1:"12",x2:"3",y2:"12"}),t.jsx("line",{x1:"21",y1:"20",x2:"16",y2:"20"}),t.jsx("line",{x1:"12",y1:"20",x2:"3",y2:"20"}),t.jsx("circle",{cx:"12",cy:"4",r:"2"}),t.jsx("circle",{cx:"10",cy:"12",r:"2"}),t.jsx("circle",{cx:"14",cy:"20",r:"2"})]}),XC=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M12 1v3M12 20v3M4.22 4.22l2.12 2.12M17.66 17.66l2.12 2.12M1 12h3M20 12h3M4.22 19.78l2.12-2.12M17.66 6.34l2.12-2.12"}),t.jsx("circle",{cx:"12",cy:"12",r:"4"})]}),eD=({size:e=18})=>t.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M3 3h2l2.4 12.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 8H6"}),t.jsx("circle",{cx:"9",cy:"20",r:"1"}),t.jsx("circle",{cx:"18",cy:"20",r:"1"})]}
502),tD=[{to:"/superadmin/dashboard",label:"Dashboard",icon:HC},{to:"/superadmin/tenants",label:"Tenants",icon:WC},{to:"/superadmin/master-data",label:"Master Data",icon:JC},{to:"/superadmin/dashboard-permissions",label:"Permissions",icon:qC},{to:"/superadmin/aiu-stats",label:"AIU Consumption",icon:QC},{to:"/superadmin/ai-control-plane",label:"AI Control Plane",icon:ZC},{to:"/superadmin/service-desk",label:"Service Desk",icon:KC},{to:"/superadmin/inquiry-settings",label:"Inquiry Settings",icon:YC},{to:"/superadmin/system-config",label:"System Configuration",icon:XC},{to:"/superadmin/testimonials",label:"Testimonials",icon:Ht},{to:"/superadmin/whatsapp-provider",label:"WhatsApp Provider",icon:Ht},{to:"/superadmin/marketplace-registrations",label:"Marketplace",icon:eD},{to:"/superadmin/connected-apps",label:"Connected Apps",icon:Dn},{to:"/superadmin/whatsapp-provider",label:"WhatsApp Provider",icon:Ht}],rD=({isOpen:e,onClose:r})=>{const{theme:s}=qe(),o=s==="dark",n=Ot(),[i,c]=a.useState(!1),[m,f]=a.useState(!1),[y,p]=a.useState(!1),d=(()=>{try{return JSON.parse(localStorage.getItem("user")||"{}")}catch{return{}}})(),S=d?.name||d?.email||"Super Admin",h=async()=>{p(!0),await n()},l=i;return t.jsxs(t.Fragment,{children:[e&&t.jsx("div",{className:"sa-sidebar-overlay",onClick:r}),t.jsxs("aside",{className:`sa-sidebar${e?" open":""}${l?" sa-sidebar--expanded":""}`,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[t.jsx("div",{className:"sa-sidebar-brand",style:{cursor:"default"},children:t.jsxs("div",{className:"sa-brand-logo-wrap",children:[t.jsx("img",{src:ws,alt:"LogystiX icon",className:`sa-brand-favicon${l?" sa-brand-hidden":""}`}),t.jsx("img",{src:o?Qs:qs,alt:"LogystiX",className:`sa-brand-fulllogo${l?" sa-brand-visible":""}`})]})}),t.jsxs("nav",{className:"sa-nav-section",children:[t.jsx("div",{className:`sa-nav-section-label sa-collapsible-text${l?" visible":""}`,children:"Main Menu"}),tD.map(({to:E,label:I,icon:L})=>t.jsxs(In,{to:E,className:({isActive:R})=>`sa-nav-item${R?" active":""}`,onClick:r,title:l?void 0:I,end:!0,children:[t.jsx("span",{className:"sa-nav-item-icon-wrap",children:t.jsx(L,{size:17,className:"sa-nav-item-icon"})}),t.jsx("span",{className:`sa-nav-item-label sa-collapsible-text${l?" visible":""}`,children:I})]},E))]}),t.jsxs("div",{className:"sa-sidebar-user",children:[t.jsx("img",{className:"sa-sidebar-user-avatar",src:`https://ui-avatars.com/api/?name=${encodeURIComponent(S)}&background=01A99B&color=fff`,alt:"avatar"}),t.jsxs("div",{className:`sa-sidebar-user-info sa-collapsible-text${l?" visible":""}`,children:[t.jsx("div",{className:"sa-sidebar-user-name",children:S}),t.jsx("div",{className:"sa-sidebar-user-role",children:"Super Admin"})]}),t.jsx("button",{className:`sa-sidebar-logout-btn sa-collapsible-text${l?" visible":""}`,title:"Logout",onClick:()=>f(!0),children:t.jsx(ar,{size:16})})]})]}),t.jsx(Ys,{isOpen:m,toggle:()=>!y&&f(!1),title:y?"Logging Out…":"Confirm Logout",centered:!0,primaryAction:{label:y?"Logging out…":"Logout",variant:"delete",onClick:h,disabled:y},secondaryAction:{label:"Cancel",onClick:()=>f(!1),disabled:y},children:t.jsx("p",{children:y?"Please wait…":"Are you sure you want to logout?"})})]})},aD=e=>({type:Ps,payload:e}),ot="/tenant/superadmin/tenants",xa=e=>{if(e.logo instanceof File){const r=new FormData;return Object.entries(e).forEach(([s,o])=>{o!=null&&(s==="modules"&&Array.isArray(o)?o.forEach(n=>r.append("modules",n)):r.append(s,o))}),r}return e},sD=()=>{const[e,r]=a.useState([]),[s,o]=a.useState(!1),[n,i]=a.useState(!1),[c,m]=a.useState(!1),f=a.useCallback(async()=>{o(!0);try{const h=await B(ot);h?.error===!1?r(h.data||[]):C.error(h?.message||"Failed to fetch tenants.")}catch(h){console.error("fetchTenants error:",h),C.error("Unable to load tenants. Please try again.")}finally{o(!1)}},[]),y=a.useCallback(async h=>{i(!0);try{const l=await B(`${ot}/${h}`);return l?.error===!1?{success:!0,data:l.data}:(C.error(l?.message||"Failed to fetch tenant details."),{success:!1})}catch(l){return console.error("fetchTenantById error:",l),C.error("Unable to load tenant details. Please try again."),{success:!1}}finally{i(!1)}},[]),p=a.useCallback(async h=>{m(!0);try{const l=xa(h),E=await N(ot,l);return E?.error===!1?(C.success(E?.message||"Tenant created successfully."),await f(),{success:!0,tenantId:E.data?.id??E.data?.tenant?.id??null}):(C.error(E?.message||"Failed to create tenant."),{success:!1})}catch(l){return console.error("createTenant error:",l),C.error("Failed to create tenant. Please try again."),{success:!1}}finally{m(!1)}},[f]),d=a.useCallback(async(h,l)=>{m(!0);try{const E=xa(l),I=await ue(`${ot}/${h}`,E);return I?.error===!1?(C.success(I?.message||"Tenant updated successfully."),await f(),{success:!0}):(C.error(I?.message||"Failed to update tenant."),{success:!1})}catch(E){return console.error("updateTenant error:",E),C.error("Failed to update tenant. Please try again."),{success:!1}}finally{m(!1)}},[f]),S=a.useCallback(async h=>{m(!0);try{const l=await ie(`${ot}/${h}`);return l?.error===!1?(C.success(l?.message||"Tenant deleted successfully."),await f(),{success:!0}):(C.error(l?.message||"Failed to delete tenant."),{success:!1})}catch(l){return console.error("deleteTenant error:",l),C.error("Failed to delete tenant. Please try again."),{success:!1}}finally{m(!1)}},[f]);return{tenants:e,loading:s,loadingDetail:n,submitting:c,fetchTenants:f,fetchTenantById:y,createTenant:p,updateTenant:d,deleteTenant:S}}
502,oD={"/superadmin/dashboard":{title:"Dashboard",sub:"Super Admin Portal"},"/superadmin/tenants":{title:"Tenant Management",sub:"View, add, edit and delete tenants"}},nD=({onHamburger:e})=>{const{theme:r}=qe(),s=r==="dark",o=je();pt();const n=Je(),i=Oe(L=>L.superAdmin.selectedTenant),{tenants:c,fetchTenants:m}=sD(),f=Ot(),[y,p]=a.useState(!1),d=a.useRef(null),S=(()=>{try{return JSON.parse(localStorage.getItem("user")||"{}")}catch{return{}}})(),h=S?.name||S?.email||"Super Admin",l=oD[o.pathname]||{title:"Super Admin",sub:"Portal"};a.useEffect(()=>{m()},[m]),a.useEffect(()=>{const L=R=>{d.current&&!d.current.contains(R.target)&&p(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);const E=async()=>{p(!1),await f()},I=L=>{n(aD(L.target.value))};return t.jsxs("header",{className:"sa-navbar",children:[t.jsx("button",{className:"sa-navbar-hamburger",onClick:e,"aria-label":"Toggle menu",children:t.jsx(jn,{size:20})}),t.jsxs("div",{className:"sa-navbar-breadcrumb mt-3",children:[t.jsx("p",{className:"sa-navbar-breadcrumb-title",children:l.title}),t.jsx("p",{className:"sa-navbar-breadcrumb-sub",children:l.sub})]}),t.jsxs("div",{className:"sa-navbar-right",style:{display:"flex",alignItems:"center",gap:"16px"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",background:"var(--bg-color)",padding:"4px 12px",borderRadius:"8px",border:"1px solid var(--border-color)"},children:[t.jsx(wn,{size:16,color:"var(--text-muted)"}),t.jsxs("select",{value:i,onChange:I,style:{background:"transparent",border:"none",outline:"none",color:"var(--heading-color)",fontSize:"13.5px",fontWeight:"500",cursor:"pointer"},children:[t.jsx("option",{value:"",children:"All Tenants"}),c.map(L=>t.jsx("option",{value:L.id,style:{background:"var(--card-bg)",color:"var(--heading-color)"},children:L.name},L.uuid))]})]}),t.jsx(Is,{}),t.jsxs("div",{style:{position:"relative"},ref:d,children:[t.jsxs("button",{className:"sa-navbar-avatar-btn",onClick:()=>p(L=>!L),children:[t.jsx("img",{className:"sa-navbar-avatar",src:`https://ui-avatars.com/api/?name=${encodeURIComponent(h)}&background=01A99B&color=fff`,alt:"avatar"}),t.jsx("span",{className:"sa-navbar-username",children:h}),t.jsx(Lt,{size:14,color:s?"#a0aec0":"#6b7280",style:{transition:"transform 0.2s",transform:y?"rotate(180deg)":"none"}})]}),y&&t.jsxs("div",{className:"sa-avatar-dropdown",children:[t.jsxs("div",{style:{padding:"8px 12px 10px",borderBottom:"1px solid var(--border-color, #e5e7eb)",marginBottom:4},children:[t.jsx("div",{style:{fontSize:13,fontWeight:700,color:"var(--heading-color, #1a1d29)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:h}),t.jsx("div",{style:{fontSize:11,color:"var(--text-muted, #9ca3af)",marginTop:2},children:"Super Admin"})]}),t.jsxs("button",{className:"sa-avatar-dropdown-item danger",onClick:E,children:[t.jsx(ar,{size:15}),"Logout"]})]})]})]})]})},iD=({children:e})=>{const[r,s]=a.useState(!1);return t.jsxs("div",{className:"sa-layout",children:[t.jsx(rD,{isOpen:r,onClose:()=>s(!1)}),t.jsxs("div",{className:"sa-main",children:[t.jsx(nD,{onHamburger:()=>s(o=>!o)}),t.jsx("div",{className:"sa-page-content",children:e})]})]})},cD="/assets/error-img-CTeq89KH.png",co=()=>(document.title="404 Error Page | LogystiX",t.jsx(X.Fragment,{children:t.jsx("div",{className:"account-pages my-5 pt-5",children:t.jsxs(Da,{children:[t.jsx(We,{children:t.jsx(Pe,{lg:"12",children:t.jsxs("div",{className:"text-center mb-5",children:[t.jsxs("h1",{className:"display-2 fw-medium",children:["4",t.jsx("i",{className:"bx bx-buoy bx-spin text-primary display-3"}),"4"]}),t.jsx("h4",{className:"text-uppercase",children:"Sorry, page not found"}),t.jsx("div",{className:"mt-5 text-center",children:t.jsx(q,{className:"btn btn-primary ",to:"/dashboard",children:"Back to Dashboard"})})]})})}),t.jsx(We,{className:"justify-content-center",children:t.jsx(Pe,{md:"8",xl:"6",children:t.jsx("div",{children:t.jsx("img",{src:cD,alt:"",className:"img-fluid"})})})})]})})})),lD=Object.freeze(Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),dD=async()=>{try{const e=await Ba();if(e?.error===!1&&Array.isArray(e.data?.user?.permissions)){const r=JSON.parse(localStorage.getItem("user"))||{};localStorage.setItem("user",JSON.stringify({...r,...e.data.user,logo:e?.data?.logo}))}}catch{}},lo=e=>{const r=!!localStorage.getItem("authUser"),s=localStorage.getItem("isDriverSession")==="true",[o,n]=a.useState(!r||s);a.useEffect(()=>{r&&!s?(Ia(),sessionStorage.getItem("permissionsFetched")?(sessionStorage.removeItem("permissionsFetched"),n(!0)):dD().finally(()=>n(!0))):r&&s&&n(!0)},[]);const i=se(y=>y.Layout,y=>({layoutType:y.layoutType})),{layoutType:c}=Oe(i);function m(y){let p=ba;switch(y){case"horizontal":p=VC;break;default:p=ba;break}return p}const f=m(c);return o?t.jsx(X.Fragment,{children:t.jsx(to,{children:t.jsxs(Rn,{children:[wp.map((y,p)=>t.jsx(at,{path:y.path,element:t.jsx(ya,{children:t.jsx(a.Suspense,{fallback:t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:t.jsx(Ke,{})}),children:y.component})}),exact:!0},p)),Ip.map((y,p)=>t.jsx(at,{path:y.path,element:t.jsx(kp,{children:t.jsx(f,{children:t.jsx(a.Suspense,{fallback:t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh"},children:t.jsx(Ke,{})}),children:y.component})})}),exact:!0},p)),Rp.map((y,p)=>t.jsx(at,{path:y.path,element:t.jsx(Pp,{children:t.jsx(iD,{children:t.jsx(a.Suspense,{fallback:t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"80vh"},children:t.jsx(Ke,{})}),children:y.component})})}),exact:!0},`sa-${p}`)),jp.map((y,p)=>t.jsx(at,{path:y.path,element:t.jsx(ya,{children:t.jsx(a.Suspense,{fallback:t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:t.jsx(Ke,{})}),children:y.component})}),exact:!0},`driver-${p}`)),t.jsx(at,{path:"*",element:t.jsx(co,{})})]})})}):t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:t.jsx(Ke,{})})};lo.propTypes={layout:P.any};const pD=e=>({layout:e.Layout}),uD=et(pD,null)(lo),gD=()=>`${"/".replace(/\/+$/,"")}/service-worker.js`,mD=()=>
502{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register(gD()).catch(e=>{console.error("SW registration failed",e)})})},hD=a.createContext(null),Ea={dashboard:{version:"1.0.0",steps:[{target:"#stats-card",title:"Statistics Overview",content:"This shows your system analytics."},{target:"#recent-orders",title:"Recent Orders",content:"Track latest shipments here."}]},transportRequestAdd:{version:"1.0.0",steps:[{target:"#dropType-section",title:"Change Drop Type",content:"You can switch between multi-drop or single drop."},{target:"#transactionType-section",title:"Select the Transaction Type",content:"You can choose between Customer sales or contract."},{target:"#scheduleDate-section",title:"Select the schedule date",content:"Schedule the date according to your preference."},{target:"#salesnumber-section",title:"Sales Order Number",content:"Write the sales order number and verify."},{target:"#plant-section",title:"Plant Selection",content:"Choose the plant location for pickup."},{target:"#plantaddress-section",title:"Plant Address Section",content:"Select the plant address location."},{target:"#destination-section",title:"Destination",content:"Select or add the delivery destination."},{target:"#delivery-section",title:"Delivery Address",content:"Choose the delivery address."},{target:"#Material-section",title:"Material Details",content:"Describe the quantity, material type, package type and truck related details like truck capacity and number of trucks."},{target:"#truckDriver-section",title:"Truck & Driver Details",content:"Describe the truck details like truck number, driver name,  driver license, mobile number, etc."},{target:"#expense-section",title:"Expenses Details",content:"Describe the expenses details required for transporting the material."},{target:"#submit_transport_request",title:"Submit button",content:"You can Submit the form here"}]},contractAdd0:{version:"1.0.0",steps:[{target:"#contract-title",title:"Contract Title",content:"Enter a descriptive title for your contract to easily identify it."},{target:"#contract-description",title:"Description",content:"Provide detailed information about the contract terms and conditions."},{target:"#contract-type",title:"Contract Type",content:"Select the type of contract from the available options."},{target:"#contract-category",title:"Contract Category",content:"Choose between Domestic (within country) or Export (to port) category based on your transportation needs."},{target:"#start-date",title:"Start Date",content:"Select the date when this contract becomes effective."},{target:"#end-date",title:"End Date",content:"Select the date when this contract expires or ends."}]},contractAdd1:{version:"1.0.0",steps:[{target:"#transporter",title:"Transporter",content:"Select the transporter company that will handle the logistics for this contract."},{target:"#shipper",title:"Shipper",content:"Select the shipper (plant) that will be the origin point for shipments."},{target:"#business-unit-location",title:"Business Unit Location",content:"Choose the specific business unit location within the selected shipper plant."},{target:"#contact-details",title:"Contact Details",content:"Enter the contact information for communication regarding this contract."}]},contractAdd2:{version:"1.0.0",steps:[{target:"#contract-based",title:"Contract Based",content:"Select the pricing model: Rate based, Quantity based, or Trip based."},{target:"#volume",title:"Volume Commitment",content:"Enter the committed volume per month or quarter along with the unit of measurement."},{target:"#min-guarantee",title:"Minimum Guarantee Clause",content:"Indicate whether a minimum business volume or revenue is guaranteed under this contract."},{target:"#fuel-surcharge",title:"Fuel Surcharge Mechanism",content:"Choose how fuel surcharges will be applied: Percentage Based, Price Based, or None."},{target:"#discount-slab",title:"Discount Slab",content:"Define volume-based or value-based discounts applicable to this contract."},{target:"#line-item",title:"Line Items",content:"Add line items specifying routes, materials, truck types, quantities, and pricing details."}]},contractAdd3:{version:"1.0.0",steps:[{target:"#approved-vehicles",title:"Ap
502proved Vehicle Types",content:"Select the types of vehicles that are approved for use under this contract."},{target:"#documents",title:"Documents Mandated",content:"Select the mandatory documents that transporters must provide to operate under this contract (RC, License, Aadhaar, Insurance, GPS)."},{target:"#loading-time",title:"Loading Time Window",content:"Specify the time window during which loading operations can take place."},{target:"#unloading-time",title:"Unloading Time Window",content:"Specify the time window during which unloading operations can take place."}]},users:{version:"1.0.0",steps:[{target:"#add-user-btn",title:"Add User",content:"Click here to create a new user."}]}},fD=Object.freeze({CONTRACT:"contract",DOMESTIC_INVOICE_BOOKING:"domestic-invoice-booking",EXPORT_ORDERS:"export-orders",FREIGHT_COST_SHEET:"freight-cost-sheet",GATE_PASS:"gate-pass",PRESHIPMENT_BY_SO:"preshipment-by-so",TOURS:"tours",TRANSPORT_INVOICE:"transport-invoice",TRANSPORT_REQUEST:"transport-request"}),po=fD.TOURS,uo="app_tours",bD=Object.freeze({autoStart:!0,tours:{}});let pe={sessionKey:null,preferences:null,pending:null},Sa=Promise.resolve();const yD=()=>{try{const e=JSON.parse(localStorage.getItem("authUser"))?.access_token;if(!e)return null;const{user:r,tenant:s}=Xe(e);return r?.id?`${r.id}:${s??""}`:e}catch{return null}},xD=e=>{const r=typeof e=="string"?JSON.parse(e):e;return{autoStart:r?.autoStart!==!1,tours:r?.tours&&typeof r.tours=="object"?r.tours:{}}},ED=()=>{try{const e=JSON.parse(localStorage.getItem(uo));return e&&typeof e=="object"?e:null}catch{return null}},go=e=>{const r=Sa.then(()=>al(po,e));return Sa=r.catch(()=>{}),r},SD=async()=>{const e=await rl(po);if(e?.error)throw new Error(e?.message||"Failed to load tour preferences");const r=e?.data?.preferences?xD(e.data.preferences):{...bD},s=ED();if(s){const o={...r,tours:{...s,...r.tours}};try{return await go(o),localStorage.removeItem(uo),o}catch{return o}}return r},mo=()=>{const e=yD();if(!e)return Promise.resolve(null);if(pe.sessionKey!==e&&(pe={sessionKey:e,preferences:null,pending:null}),pe.preferences)return Promise.resolve(pe.preferences);if(pe.pending)return pe.pending;const r=SD().then(s=>(pe.pending===r&&(pe.preferences=s),s)).catch(()=>null).finally(()=>{pe.pending===r&&(pe.pending=null)});return pe.pending=r,r},ho=async e=>{const r=await mo();if(!r)throw new Error("Tour preferences are unavailable");const s=e(r);pe.preferences=s;try{await go(s)}catch(o){throw pe.preferences===s&&(pe.preferences=r),o}return s},_D=(e,r,s)=>{const o=e?.tours?.[r];return!!o?.completed&&o.version===s},TD=(e,r)=>ho(s=>({...s,tours:{...s.tours,[e]:{completed:!0,version:r,completedAt:Date.now()}}})),h5=e=>ho(r=>({...r,autoStart:e})),AD=({step:e,onNext:r,onSkip:s,stepIndex:o,totalSteps:n})=>{const[i,c]=a.useState(null),[m,f]=a.useState(0);a.useEffect(()=>{f(0),c(null)},[e.target]);const y=p=>{const d=p.getBoundingClientRect(),S=window.innerHeight||document.documentElement.clientHeight,h=window.innerWidth||document.documentElement.clientWidth;return d.top<=S&&d.bottom>=0&&d.left<=h&&d.right>=0};return a.useEffect(()=>{let p,d;const h=(()=>{const l=document.querySelector(e.target);if(!l){if(m<5){console.warn(`Tour target not found (attempt ${m+1}/5): ${e.target}`),setTimeout(()=>f(I=>I+1),200);return}console.error(`Tour target not found after 5 attempts: ${e.target}`),r();return}const E=()=>{const I=document.querySelector(e.target);if(!I)return;const L=I.getBoundingClientRect(),R=window.scrollY,b=window.scrollX,v=320,_=140,k=20,$=window.innerHeight,J=window.innerWidth,ee=$-L.bottom,Ee=L.top;let Z,oe=L.left+b;ee<_+k&&Ee>_?Z=L.top+R-_-k:Z=L.bottom+R+k,oe+v>J&&(oe=J-v-16),oe<16&&(oe=16),c({highlightTop:L.top+R,highlightLeft:L.left+b,highlightWidth:L.width,highlightHeight:L.height,tooltipTop:Z,tooltipLeft:oe})};return y(l)?E():(l.scrollIntoView({behavior:"smooth",block:"center"}),p=setTimeout(()=>{d=requestAnimationFrame(E)},400)),window.addEventListener("resize",E),window.addEventListener("scroll",E),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",E)}})();return()=>{h&&h(),clearTimeout(p),cancelAnimationFrame(d)}},[e,m,r]),i?_a.createPortal(t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"tour-backdrop"}
502),t.jsx("div",{className:"tour-highlight",style:{top:i.highlightTop-5,left:i.highlightLeft-5,width:i.highlightWidth+10,height:i.highlightHeight+15}}),t.jsx("div",{className:"shadow-lg tour-card",style:{top:i.tooltipTop+5,left:i.tooltipLeft-5,border:"1px solid transparent",padding:"10px",borderRadius:"8px",width:"320px"},children:t.jsxs("div",{className:"card-body",children:[t.jsx("h5",{style:{color:"#fff"},className:"card-title  fw-bold",children:e.title}),t.jsx("p",{style:{color:"#fff"},className:"card-text",children:e.content}),t.jsxs("div",{className:"d-flex justify-content-between align-items-center mt-3",children:[t.jsxs("small",{style:{color:"#fff"},children:[o+1," / ",n]}),t.jsxs("div",{children:[t.jsx("button",{style:{color:"#fff",backgroundColor:"#0A6560"},className:"btn btn-sm  me-2",onClick:s,children:"Skip"}),t.jsx("button",{style:{color:"#fff",backgroundColor:"#0A6560"},className:"btn btn-sm btn-primary",onClick:r,children:o+1===n?"Finish":"Next"})]})]})]})})]}),document.body):null},vD=({children:e})=>{const[r,s]=a.useState(null),[o,n]=a.useState(0),{pathname:i}=je(),c=a.useRef(i),m=a.useRef(0);a.useEffect(()=>{c.current=i},[i]);const f=a.useCallback((l,E)=>{s({id:l,...E}),n(0)},[]),y=a.useCallback(async l=>{const E=Ea[l];if(!E)return;const I=++m.current,L=c.current,R=await mo();I!==m.current||L!==c.current||R?.autoStart&&(_D(R,l,E.version)||f(l,E))},[f]),p=a.useCallback(l=>{const E=Ea[l];E&&(m.current+=1,f(l,E))},[f]),d=()=>{TD(r.id,r.version).catch(l=>{console.error(`Failed to save completion of tour "${r.id}":`,l)}),s(null)},S=()=>{if(r){if(o+1>=r.steps.length){d();return}n(l=>l+1)}},h=()=>{r&&d()};return t.jsxs(hD.Provider,{value:{startTour:y,startTourWithHelp:p},children:[e,r&&t.jsx(AD,{step:r.steps[o],onNext:S,onSkip:h,stepIndex:o,totalSteps:r.steps.length})]})};kn.createRoot(document.getElementById("root")).render(t.jsx(X.Fragment,{children:t.jsx(Pn,{store:Ws,children:t.jsx(On,{loading:null,persistor:Js,children:t.jsx(Bn,{children:t.jsx(Uu,{children:t.jsxs(vD,{children:[t.jsx(uD,{}),t.jsx(Nn,{pauseOnHover:!0,hideProgressBar:!0,transition:Fn,theme:"colored",autoClose:3e3,position:"top-center",toastOptions:{success:{autoClose:3e3},error:{autoClose:5e3},style:{fontWeight:"bold"}}})]})})})})})}));mD();export{m5 as $,Ar as A,cI as B,na as C,lI as D,dI as E,g5 as F,BI as G,sI as H,aI as I,iI as J,rI as K,oI as L,Ke as M,nI as N,pI as O,uI as P,p5 as Q,er as R,i5 as S,D as T,qe as U,jI as V,YI as W,sD as X,or as Y,UI as Z,g as _,Ys as a,LI as a$,Fu as a0,Mu as a1,Qs as a2,cD as a3,dE as a4,kI as a5,fD as a6,RI as a7,KI as a8,wI as a9,hu as aA,mu as aB,pu as aC,du as aD,cu as aE,n5 as aF,eu as aG,Kp as aH,ou as aI,tu as aJ,ru as aK,au as aL,Xp as aM,Zp as aN,r5 as aO,e5 as aP,XI as aQ,ZI as aR,nl as aS,t5 as aT,PI as aU,zI as aV,hI as aW,bI as aX,fI as aY,vI as aZ,yI as a_,al as aa,rl as ab,Jn as ac,VI as ad,HI as ae,JI as af,Ls as ag,hD as ah,MI as ai,OI as aj,NI as ak,lr as al,qI as am,Yp as an,o5 as ao,FI as ap,WI as aq,QI as ar,ID as as,jD as at,u5 as au,GI as av,iu as aw,uu as ax,lu as ay,gu as az,qs as b,xI as b0,EI as b1,TI as b2,AI as b3,mI as b4,SI as b5,_I as b6,$I as b7,At as b8,Oa as b9,II as ba,CI as bb,DI as bc,HD as bd,VD as be,zD as bf,$D as bg,wD as bh,GD as bi,ND as bj,FD as bk,UD as bl,MD as bm,BD as bn,PD as bo,WD as bp,OD as bq,kD as br,RD as bs,DD as bt,N as c,ie as d,Ka as e,el as f,B as g,tl as h,a5 as i,Ba as j,s5 as k,mo as l,gI as m,JD as n,KD as o,ue as p,YD as q,QD as r,h5 as s,qD as t,ZD as u,XD as v,mt as w,eI as x,tI as y,me as z};
503function __vite__mapDeps(indexes) {
504  if (!__vite__mapDeps.viteFileDeps) {
505    __vite__mapDeps.viteFileDeps = ["assets/user-profile-UfVP-f5H.js","assets/vendor-B37zWZef.js","assets/vendor-lottie-qO2cA9l8.js","assets/vendor-DAntxHKN.css","assets/PasswordInput-CrTAk95e.js","assets/fieldStyles-B03nNltY.js","assets/Login-B2FRJICa.js","assets/Divider-BqvfTi5c.js","assets/Logout-DXprntz2.js","assets/ForgetPassword-BY2F4-3d.js","assets/MicrosoftCallback-C_oLb5_D.js","assets/KnowledgeLearning-CmmvCrE3.js","assets/Breadcrumb-J63FhuaQ.js","assets/index-DaEJYc90.js","assets/DataTable-DQR0H7y3.js","assets/Refresh
505Btn-B3jcDHSF.js","assets/Footer-CMVWua_O.js","assets/StyledSelect-C0xCJyrr.js","assets/NoData-CyETu043.js","assets/DataTable-BUO0zIIT.css","assets/CustomContainer-BC8L5667.js","assets/StatusBadge-BRqTHHTc.js","assets/ViewBtn-CFH2s49W.js","assets/negotiation_helper-DKSDHAYS.js","assets/NegotiationDetail-CKZE2y_G.js","assets/StatsCard-hDUT6ZkS.js","assets/StatsCard-DKVsldO9.css","assets/Tabs-BIu-rmA1.js","assets/index-DsN7w2fy.js","assets/constants-8oGdSYux.js","assets/TicketDetailModal-CUy_z0fR.js","assets/MyRequests-BRqCIHat.js","assets/TicketAction-dxSflgMy.js","assets/index-jgL9ImWk.js","assets/index-NMPEmERq.js","assets/DateRangePicker-BfXEC2ob.js","assets/vendor-charts-D38XNcx9.js","assets/useThemeColors-C4y3S3uz.js","assets/EInvoiceDashboard-FQzW0F7B.js","assets/index-BSiCsBnY.css","assets/DashboardGuard-BPDbCj6T.js","assets/index-DuuxHEnP.js","assets/ActionListDropdown-D7U6sCxP.js","assets/index-DtDJmDWt.js","assets/index-3CyOaqB0.js","assets/index-D1sBKSjQ.js","assets/index-Jm3lR9Fl.js","assets/index-JXnoQ7P3.css","assets/index-vgF5Y7B7.js","assets/index-C_zXS4K-.css","assets/index-opIAFN-d.js","assets/index-D_Es8N5M.js","assets/TenantFormPage-CTViYSB8.js","assets/TenantFormPage-BY5Snsj_.css","assets/TenantViewPage-7lNWWCCM.js","assets/TenantViewPage-sxUbleVL.css","assets/index-C5xhZOZ2.js","assets/index-B10GpbPf.js","assets/index-xf3rJk92.css","assets/index-FuWL6WF0.js","assets/FormField-BNg2y4Td.js","assets/aws_marketplace_helper-pox_jSHg.js","assets/index-CrPanKyR.js","assets/useConnectedApps-CXP4C8Tk.js","assets/AppDetailPage-B1teD0_z.js","assets/index-BkV-KQB5.js","assets/index-C9oYmrSU.css","assets/index-CCAzwy5N.js","assets/index-Bxv1vFix.js","assets/pages-maintenance-CpsFXI6-.js","assets/pages-comingsoon-Dv9Sh20h.js","assets/thank-you-BDBlUTfC.js","assets/pages-500-DZBa2UeE.js","assets/Home-BPtzaSEY.js","assets/Footer-7J46QOMI.js","assets/Footer-Cat2PFtq.css","assets/Transporter-Cqiki9ev.js","assets/TruckIcon-DWhFWiVp.js","assets/PrivacyPolicy-NgZOhQr7.js","assets/LegalPageLayout-BqKmoC0s.js","assets/TermsAndConditions-DgOz7boi.js","assets/Disclaimer-DT2yc5IV.js","assets/share-location-DVM-YJmA.js","assets/privacyPolicy-ohFTQGi2.js","assets/PrivacyPolicyios-CtnYFPSY.js","assets/DriverAppDetector-BFCGlvoK.js","assets/data_already_exist-BHayzsX1.js","assets/index-BrK9I-2O.js","assets/DeleteModal-BVTAmbW0.js","assets/DeleteModal-3zp6FQjc.css","assets/EditBtn-NWa-jSe-.js","assets/DeleteBtn-CguO8n2x.js","assets/useActiveStatusToggle-CGTrNCKF.js","assets/useActiveStatusToggle-DxT84kOx.css","assets/index-vJLqJ1vj.css","assets/index-OTIrGFay.js","assets/Data_Not_available-BrMcswuG.js","assets/index-DQoG_Rlk.css","assets/index-sdMyeszY.js","assets/useFieldVisibility-Ctbgg-GL.js","assets/CustomerBadge-DErLKpKS.js","assets/RouteIconRight-DCfn6MBx.js","assets/RouteTimelineDrawer-BKv4YB-x.js","assets/CommonDrawer-H1Mn09uY.js","assets/Description-DJXVWYxs.js","assets/Subheading-DuK1xyO8.js","assets/LiveTracking-DCfmAOoh.js","assets/Timeline-ByRZTWuH.js","assets/PlantCell-CKuL5Vgn.js","assets/inquiryStatus-mjXtKPlI.js","assets/useMultimodalEnabled-vVfA1hFU.js","assets/legTokens-B72dT0Z2.js","assets/LegStepper-CVs6yGvM.js","assets/legConstants-BgUj3hYA.js","assets/ModeBadge-Bp2cjaUA.js","assets/useColumnPreferences-DnX2J6ay.js","assets/index-DKTzBaUV.css","assets/image-CF5bvxDc.css","assets/CreateInquiry-QlQ0U17t.js","assets/MultipleDeliveryAddresses-ByRC86Sr.js","assets/Destination-B2hpS348.js","assets/delivery-truck-Bq0ZUoTt.js","assets/AddPlantSourceModal-DSdHiajw.js","assets/Alert-CpB0fhn1.js","assets/TruckNumberWrapper-2sbAcc1a.js","assets/useTruckVerification-BlN4J8w5.js","assets/useTour-Bd38Y6n0.js","assets/facility_helper-BW9qY27X.js","assets/FacilitySelect-BOS6NyLH.js","assets/UpdateInquiry-HLZ0n6WS.js","assets/DynamicUpdateInquiry-FKnxJV9J.js","assets/InquiryViewPage-BYwcoow9.js","assets/index-Bu_0jQDJ.js","assets/BoxIcon-BSZON0rM.js","assets/CallIcon-Bd3Fj8bV.js","assets/Subheading2-C8syktuy.js","assets/Accordion-CFQFOj3_.js","assets/SkeletonLoader-C6RkvIM-.js","assets/index-DDm7vxYy.css","assets/index-Dg9XQVSx.js","assets/Contract-DOxDhXKH.js","assets/Ulip-YJjLFQbQ.js","assets/TruckTimelineInfoCard-CJOilpVE.js","assets/Driver-BTqvqsfS.js","assets/VehicleNumberPlate-BTyLl_nP.js","assets/BackBtn-WNlniqx9.js","assets/compressImage-EoI29Vu7.js","assets/viewReport-ByJtKdbW.js","assets/useReportView-BiydslkG.js","assets/ReportStatCards-BYesIltc.js","assets/ReportStatCards-DYsyIAZY.css","assets/reportExport-Ck0AhaMj.js","assets/HurlReport-DCS7GMsy.js","assets/index-DsFB5Kyp.js","assets/TransporterBadge-B4B4lfTt.js","assets/DriverBadge-BgYXmIom.js","assets/index-CMhAyifu.css","assets/index-CLhITLRu.js","assets/ManualVerifyModal-DvDZwpd4.js","assets/PartyDetail-Bi7cKJ3W.js","assets/index-DZU2RpFl.js","assets/index-C3H7SumQ.js","assets/Role_Permission-CMc3kW_H.js","assets/RoleUpdate-C_Fu3QKb.js","assets/index-CXghY_Tv.js","assets/StatsGrid-BQewWVWv.js","assets/constants-BhR0lf4A.js","assets/index-CM7rX8N8.js","assets/AddQuotation-C5aIZYdk.js","assets/index--hmrRrZ0.js","assets/index-DmBpzq7r.js","assets/index-Bhw6jZjM.css","assets/index-senUAj5N.js","assets/index-BFSEVUJi.js","assets/index-DCRRK3vn.css","assets/index-CHwrlkf1.js","assets/CheckIcon-Besvi6BF.js","assets/index-DJqXEpVq.js","assets/index-R8MKPM8r.js","assets/index-Be04EAgm.css","assets/index-DqI2ICBt.js","assets/createApproval-BwAA-dtC.js","assets/ApproverAvatars-D9X4EiAg.js","assets/index-BLBwkc-h.js","assets/index-vFbxnUGN.js","assets/index-CynMUk-I.js","assets/index-LLowq-KF.js","assets/SalesOrder-BbMXZahH.js","assets/SalesOrder-BWo8c8w4.css","assets/SapSalesOrder-BEXCEaCY.js","assets/useSlowRequestHint-CTqvF2MZ.js","assets/TransportPlanningView-C7bmyACN.js","assets/TransportPlanningCreate-Bfd_xZPv.js","assets/TransportPlanningUpdate-DXTFpx6N.js","assets/CreateTransportRequest-VMmwzuSe.js","assets/DynamicCreateInquiryAutofill-DLCPlMex.js","assets/CreateTransportRequestAutofill-B3PNiO9v.js","assets/index-Zi8pO_yf.js","assets/ReturnProcess-BYHvOoVp.js","assets/index-CGfHg6_M.js","assets/index-CUnTLPrn.css","assets/CreateStockTransferTR-DSI5awAu.js","assets/LocationTrailIcon-DKP_tpLh.js","assets/EditStockTransferTR-CZo9m7CQ.js","assets/DispatchPlanList-BTjKWKrT.js","assets/DispatchPlanListCreate-DTMXddXm.js","assets/index-Cjdc3twt.js","assets/Scanner-DArKlwoE.js","assets/GateEntry-CC35tGh8.js","assets/BulkerIcon-sPu7X0Tg.js","assets/SunderGatePassSteps-B
505DIbeTeT.js","assets/CustomBadge-CPxB0M_t.js","assets/GatePassViewPage-DqvMUj5Z.js","assets/GatePassStepperNonSAP-DhqpiuEW.js","assets/ePOD-CMTZGyoj.js","assets/index-BvKGz2Mf.js","assets/createContract-BMakzzzc.js","assets/createContract-CrQRO3Vf.css","assets/UpdateStatus-ZoaAKfZp.js","assets/ApprovalLevelModal-GRLIMxcp.js","assets/reject-_dcpKCzp.js","assets/ApprovalLevel-C9TiwK1Y.js","assets/ContractViewPage-CDFY5xf0.js","assets/ContractVersionViewPage-DR-y4ytL.js","assets/index-BbeoMzei.js","assets/index-BsgvQZbH.css","assets/index-RKYnNuoN.js","assets/index-C7qCVwot.js","assets/index-CxczCkEc.css","assets/TransporterViewPage-B6IKPrKk.js","assets/index-BiX3pnbf.js","assets/LdReminderLog-BlpyWSF7.js","assets/LdReminderConfig-wDTzfrXo.js","assets/index-BOIc31Uy.js","assets/index-rH41zRNq.css","assets/index-UkwegYbm.js","assets/index-C1k-e36p.css","assets/index-Di0aaK3-.js","assets/index-B2a4L_NA.css","assets/CreatePreshipment-Dlj518DE.js","assets/freightChargeDisplay-DA67uXd3.js","assets/PreshipmentList-DvBfRZqv.js","assets/UploadShippingBillModal-FJWXtkvX.js","assets/DocumentTrailModal-DtgpKuCL.js","assets/ViewPreshipment-BwqTOtO9.js","assets/index-n9mD212H.js","assets/DateFilterBar-CsY-WLqS.js","assets/index-DukCCwBc.js","assets/CreateExportBooking-DI8x19L7.js","assets/ExportSalesOrders-CiQPrKUS.js","assets/PortDetailsModal-uBSRrCJZ.js","assets/index-DUSDE_up.js","assets/index-Dz1s9d_U.js","assets/freight_cost_sheet_helper-Ckm1jjpi.js","assets/costSheetConstants-BpvsSIai.js","assets/AIAssessmentPanel-BXliWfuZ.js","assets/CreateFreightCostSheet-BUEZG_c-.js","assets/FreightCostSheetDetail-Sl7lu2LR.js","assets/FreightCostSheetSettings-CQyGaWGd.js","assets/FreightCostSheetVersionView-KwzsK_0P.js","assets/index-CwXE339E.js","assets/RejectBtn-yYEyBOde.js","assets/FreightCostSheetApprovalsPage-DJnalaZf.js","assets/FreightRateApprovalsPage-BYgPLHqM.js","assets/index-CqSpg3iC.js","assets/index-DSg4bUd9.js","assets/ViewInvoiceModal-x5n4By6h.js","assets/index-ryIuwgZZ.js","assets/index-CfmmfhHm.js","assets/index-cXxi8v43.js","assets/index-BE7sIyG-.js","assets/shipping_line_invoice_booking_helper-BRPxkytQ.js","assets/ViewShippingLineInvoiceModal-CUgxOF_2.js","assets/BookAndParkInvoice-BJzmkQq6.js","assets/PaymentVoucher-BVmFj7db.js","assets/index-utEtTR2a.js","assets/index-Dg0fnGCF.js","assets/index-D57N4QaQ.js","assets/AliasFormModal-Db436JAS.js","assets/UnmappedPorts-DlpH5gXe.js","assets/index-BY-9HLgG.js","assets/index-BsQc3YHY.js","assets/index-4xEiZi_b.js","assets/index-qWiW71yH.js","assets/StatusIndicators-kzTEESuX.js","assets/index-BQW7zaoB.js","assets/driverModule-B5GxCLKp.js","assets/driverModule-BbR1K5tL.css","assets/DriverActiveTrip-bUIJWNjs.js","assets/DriverTopBar-DgYbmz4R.js","assets/DriverHistory-DpjlNskd.js"]
506  }
507  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
508}

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.