1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63185,13409,45958],{98181:function(e,t,n){Promise.resolve().then(n.t.bind(n,8067,23)),Promise.resolve().then(n.bind(n,14015)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.bind(n,8659)),Promise.resolve().then(n.bind(n,70430)),Promise.resolve().then(n.bind(n,55602)),Promise.resolve().then(n.bind(n,38868)),Promise.resolve().then(n.t.bind(n,94073,23)),Promise.resolve().then(n.t.bind(n,2530,23))},8659:function(e,t,n){"use strict";n.d(t,{default:function(){return y}});var i=n(57437),a=n(80605),o=n(68575),r=n(21623),s=n(29827),l=n(3845),c=n(18310),d=n(2265);let u=(0,d.createContext)(),m=e=>{let{children:t}=e,[n,a]=(0,d.useState)([]);return(0,i.jsx)(u.Provider,{value:{checkedProjects:n,setCheckedProjects:a},children:t})};var f=n(42056),h=n(93148),p=n(47690),g=n(2285),v=n(71575),w=n(83462);let x=new r.S;function y(e){let{children:t}=e;return(0,i.jsx)(a.SessionProvider,{children:(0,i.jsx)(o.zt,{store:l.h,children:(0,i.jsx)(s.aH,{client:x,children:(0,i.jsx)(c.ZP,{theme:{token:{zIndexBase:1e3,screenXS:375,screenXSMin:375,screenXSMax:424,screenSM:425,screenSMMin:425,screenSMMax:639,screenMD:640,screenMDMin:640,screenMDMax:767,screenLG:768,screenLGMin:768,screenLGMax:1023,screenXL:1024,screenXLMin:1024,screenXLMax:1279,screenXXL:1280,screenXXLMin:1280}},getPopupContainer:e=>{let t=null==e?void 0:e.parentElement;for(;t&&t!==document.body;){let e=window.getComputedStyle(t);if("hidden"===e.overflow||"hidden"===e.overflowY||"hidden"===e.overflowX)break;t=t.parentElement}return document.body},children:(0,i.jsx)(f.a,{children:(0,i.jsx)(m,{children:(0,i.jsx)(p.H,{children:(0,i.jsx)(w.E,{children:(0,i.jsx)(v.P,{children:(0,i.jsx)(h.H,{children:(0,i.jsx)(g.Q,{children:t})})})})})})})})})})})}},70430:function(e,t,n){"use strict";n.d(t,{default:function(){return P}});var i=n(57437),a=n(2265),o=n(75186),r=n(48614),s=n(3462),l=n(29202),c=n(95805),d=n(32489);function u(e){let{toastData:t}=e,[n,u]=(0,a.useState)("16px");(0,a.useEffect)(()=>{let e=()=>{u(window.innerWidth>=1024?"80px":"16px")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{let e;if(t&&0!==t.length)return e=setTimeout(()=>{t.forEach((e,t)=>{setTimeout(()=>{m(e)},6e4*t)})},15e3),()=>clearTimeout(e)},[t]);let m=e=>{o.toast.custom(t=>(0,i.jsx)(r.M,{children:t.visible&&(0,i.jsxs)(s.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.3,ease:"easeOut"},className:"max-w-md w-full shadow-lg rounded-xl pointer-events-auto flex items-center ring-1 ring-black ring-opacity-5 p-4 mb-3 ".concat("sites"===e.category?"bg-white dark:bg-dark-2 text-gray-900 dark:text-white":"bg-gradient-to-r from-primarydark to-primary text-white"),children:[(0,i.jsx)("div",{className:"flex-shrink-0 flex items-center justify-center w-12 h-12 rounded-full bg-white/20",children:"sites"===e.category?(0,i.jsx)(l.Z,{className:"w-6 h-6 text-primarydark"}):(0,i.jsx)(c.Z,{className:"w-6 h-6"})}),(0,i.jsxs)("div",{className:"ml-4 flex-1",children:[(0,i.jsxs)("p",{className:"text-base font-semibold",children:[e.count," ","sites"===e.category?"New Sites":"New Users"]}),(0,i.jsx)("p",{className:"text-sm",children:e.messagge})]}),(0,i.jsx)("button",{onClick:()=>o.toast.dismiss(t.id),className:"ml-3 p-1 rounded-full transition-colors ".concat("sites"===e.category?"text-black hover:bg-gray-200":"text-white hover:bg-white/20"),children:(0,i.jsx)(d.Z,{className:"w-5 h-5"})})]})}),{position:"bottom-left",duration:6e3})};return(0,i.jsx)(o.Toaster,{position:"bottom-left",toastOptions:{duration:6e3,style:{}},containerStyle:{left:n,bottom:"20px",zIndex:99999}})}var m=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{localStorage.getItem("cookieNotificationReaded")||t(!0)},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(r.M,{children:e&&(0,i.jsxs)(s.E.div,{initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{duration:.5,ease:"easeInOut"},className:"fixed bottom-0 left-0 transform -translate-x-1/2 bg-white/70 shadow-large backdrop-blur-lg text-black px-6 py-4 rounded-t-xl md:flex items-center justify-center w-full hidden z-999",children:[(0,i.jsxs)("p",{className:"text-base flex items-center gap-2",children:["This website uses co
1okies to ensure you get the best experience on our website. ",(0,i.jsx)("a",{className:"font-bold ",href:"/privacy-policy",children:"Learn More"})]}),(0,i.jsx)("button",{onClick:()=>{localStorage.setItem("cookieNotificationReaded","true"),t(!1)},className:"ml-4 px-8 py-2 bg-primary hover:bg-primarydark text-white rounded-full text-base hover:scale-105 smooth",children:"Got It!"})]})})})},f=n(26548),h=n(23595),p=n(30166),g=n(99376),v=n(33145),w=n(49089);function x(){let[e,t]=(0,a.useState)(!1),[n,o]=(0,a.useState)({hours:0,minutes:0,seconds:0});return((0,a.useEffect)(()=>{let e=new Date(2026,0,2,10,0,0,0),n=new Date().getTime(),i=e.getTime();if(n>=i){t(!1);return}t(!0);let a=setInterval(()=>{let e=i-new Date().getTime();e>0?o({hours:Math.floor(e/36e5),minutes:Math.floor(e%36e5/6e4),seconds:Math.floor(e%6e4/1e3)}):(o({hours:0,minutes:0,seconds:0}),t(!1),clearInterval(a))},1e3);return()=>clearInterval(a)},[]),e)?(0,i.jsxs)("div",{className:"fixed bottom-3 left-3 sm:left-7 z-[998] text-[9px] sm:text-[10px] flex items-center gap-1.5 flex-wrap max-w-[300px] sm:max-w-[400px]",children:[(0,i.jsx)("span",{className:"text-gray-600 dark:text-gray-400",children:"Our team will return after 36 hours to process your orders. Thank you for your patience!"}),(0,i.jsxs)("span",{className:"font-bold text-primarydark dark:text-blue-400 whitespace-nowrap",children:[String(n.hours).padStart(2,"0"),":",String(n.minutes).padStart(2,"0"),":",String(n.seconds).padStart(2,"0")]})]}):null}var y=n(8858),b=n(42264),_=n(7444);function j(){let[e,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e,n;let i=!0;return(async()=>{if("serviceWorker"in navigator&&navigator.serviceWorker.register("/firebase-messaging-sw.js").then(e=>{}).catch(e=>{console.error("Service Worker registration failed:",e)}),!await (0,y.initializeFirebase)())return;let a=localStorage.getItem("fcm_token");if(a&&i){await (0,_.D$)(a);return}let o=async()=>{if(i){if("Notification"in window){let e=Notification.permission;if("denied"===e)return;if("granted"===e){try{let e=await (0,y.requestPermission)();e&&i&&(localStorage.setItem("fcm_token",e),await (0,_.D$)(e))}catch(e){e instanceof Error&&!e.message.includes("messaging not initialized")&&console.error("â [Firebase] Error requesting notification permission:",e)}return}}try{let e=await (0,y.requestPermission)();e&&i&&(localStorage.setItem("fcm_token",e),await (0,_.D$)(e))}catch(e){e instanceof Error&&!e.message.includes("messaging not initialized")&&console.error("â [Firebase] Error requesting notification permission:",e)}}};"Notification"in window&&"denied"!==Notification.permission&&(e=setTimeout(()=>{i&&o()},3e3)),n=(0,y.onMessageListener)(e=>{if(i)try{if(e){var n,a,o,r;t({title:(null===(n=e.notification)||void 0===n?void 0:n.title)||"New Notification",body:(null===(a=e.notification)||void 0===a?void 0:a.body)||"You have a new message"}),b.ZP.info({content:"".concat((null===(o=e.notification)||void 0===o?void 0:o.title)||"New Notification",": ").concat((null===(r=e.notification)||void 0===r?void 0:r.body)||"You have a new message"),duration:5})}}catch(e){console.error("Error handling foreground message:",e)}})})(),()=>{i=!1,e&&clearTimeout(e),n&&"function"==typeof n&&n()}},[]),(0,a.useEffect)(()=>{},[e]),null}let S="vefogix_install_dismissed_at";function E(){let[e,t]=(0,a.useState)(null),[n,o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone||function(){try{let e=localStorage.getItem(S);if(!e)return!1;return Date.now()-Number(e)<2592e6}catch(e){return!1}}())return;if("undefined"!=typeof navigator&&(/iphone|ipad|ipod/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)){let e=setTimeout(()=>o(!0),3e3);return()=>clearTimeout(e)}let e=e=>{e.preventDefault(),t(e)};return window.addEventListener("beforeinstallprompt",e),window.addEventListener("appinstalled",()=>t(null)),()=>window.removeEventListener("beforeinstallprompt",e)},[]);let r=()=>{try{localStorage.setItem(S,String(Date.now()))}catch(e){}t(null),o(!1)},s=async()=>{e&&(await e.prompt(),await e.userChoice,t(null))};return e||n?(0,i.jsx)("div",{role:"dialog","aria-label":"Install the Vefogix app",className:"fixed inset-x-3 bottom-3 z-[9999] mx-auto max-w-md rounded-2xl border border-white/10 bg-[#14141a] p-4 text-white shadow-2xl md:hidden",style:{marginBottom:"env(safe-area-inset-bottom)"},children:(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)("img",{src:"/icons/icon-192.png",alt:"",width:44,height:44,className:"rounded-xl"}),(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("p",{className:"text-sm font-semibold",children:"Install Vefogix"}),n?(0,i.jsxs)("p",{className:"mt-1 text-xs leading-relaxed text-gray-400",children:["Tap the Share button, then choose"," ",(0,i.jsx)("span",{className:"font-medium text-gray-200",children:"Add to Home Screen"}),"."]}):(0,i.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-gray-400",children:"Add it to your home screen for faster access and order alerts."}),(0,i.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[!n&&(0,i.jsx)("button",{type:"button",onClick:s,className:"rounded-lg bg-indigo-500 px-4 py-1.5 text-xs font-semibold hover:bg-indigo-400",children:"Install"}),(0,i.jsx)("button",{type:"button",onClick:r,className:"rounded-lg px-3 py-1.5 text-xs font-medium text-gray-400 hover:text-white",children:"Not now"})]})]}),(0,i.jsx)("button",{type:"button",onClick:r,"aria-label":"Dismiss",className:"-mr-1 -mt-1 p-1 text-gray-500 hover:text-white",children:(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M6 6l8 8M14 6l-8 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]})}):null}var N=n(64767),k=n(92369),C=n(76858);function I(e){var t,n,o;let{notification:l,onClose:c}=e,u=(0,g.useRouter)(),[m,f]=(0,a.useState)(!1),[h,p]=(0,a.useState)(!1),w=(0,a.useCallback)(()=>{f(!1),setTimeout(()=>{c()},300)},[c]);(0,a.useEffect)(()=>
1{if(l){p(!1),f(!0);let e=setTimeout(()=>{w()},1e4);return()=>{clearTimeout(e)}}},[l,w]);let x=()=>{l&&(u.push("/messages/".concat(l.roomId)),w())};if(!l)return null;let y=(null===(t=l.sender)||void 0===t?void 0:t.username)||(null===(n=l.sender)||void 0===n?void 0:n.first_name)||"Someone",b=l.message||"You have a new message",_=b.length>100?b.substring(0,100)+"...":b,j=(null===(o=l.sender)||void 0===o?void 0:o.profile_picture)||null;return(0,i.jsx)(r.M,{children:m&&(0,i.jsx)(s.E.div,{initial:{opacity:0,x:400,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:400,scale:.95},transition:{type:"spring",stiffness:300,damping:30,duration:.4},className:"in-app-notification-container",children:(0,i.jsxs)("div",{className:"in-app-notification-card",onClick:x,children:[(0,i.jsx)("button",{onClick:e=>{e.stopPropagation(),w()},className:"in-app-notification-close","aria-label":"Close notification",children:(0,i.jsx)(d.Z,{size:16,strokeWidth:2.5})}),(0,i.jsxs)("div",{className:"in-app-notification-content",children:[(0,i.jsxs)("div",{className:"in-app-notification-avatar-wrapper",children:[(0,i.jsx)("div",{className:"in-app-notification-avatar-pulse"}),(0,i.jsx)("div",{className:"in-app-notification-avatar",children:j&&!h?(0,i.jsx)(v.default,{src:j,alt:y,width:48,height:48,className:"in-app-notification-avatar-img",onError:()=>p(!0)}):(0,i.jsx)("div",{className:"in-app-notification-avatar-fallback",children:(0,i.jsx)(k.Z,{size:24,strokeWidth:2})})})]}),(0,i.jsxs)("div",{className:"in-app-notification-main",children:[(0,i.jsxs)("div",{className:"in-app-notification-header",children:[(0,i.jsx)("div",{className:"in-app-notification-sender-name",children:y}),(0,i.jsx)("div",{className:"in-app-notification-badge",children:(0,i.jsx)("span",{children:"New"})})]}),(0,i.jsx)("div",{className:"in-app-notification-message",children:_}),(0,i.jsxs)("button",{className:"in-app-notification-action-btn",onClick:e=>{e.stopPropagation(),x()},children:[(0,i.jsx)("span",{children:"View Message"}),(0,i.jsx)(C.Z,{size:14})]})]})]})]})})})}function M(){let[e,t]=(0,a.useState)(null),n=(0,a.useRef)(null),o=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(!(0,N.getNotificationService)())return;let e=e=>{var i,a;"".concat(e.roomId,"-").concat(e.message.id,"-").concat(Date.now());let r=window.location.pathname;(r.includes("/messages")||r.includes("/chat"))&&new URLSearchParams(window.location.search).get("room")===e.roomId.toString()&&document.hasFocus()&&"visible"===document.visibilityState||o.current===(null===(i=e.message.id)||void 0===i?void 0:i.toString())||(n.current&&(clearTimeout(n.current),n.current=null),o.current=(null===(a=e.message.id)||void 0===a?void 0:a.toString())||null,t(e))},i=()=>{let t=(0,N.getNotificationService)();if(!t)return;let n=t.getCallbacks(),i=n.onNewMessage;t.setCallbacks({...n,onNewMessage:t=>{if(i)try{i(t)}catch(e){}e(t)}})};i();let a=Date.now(),r=setInterval(()=>{var e;let t=(0,N.getNotificationService)();if(!t)return;let n=(null===(e=t.getCallbacks().onNewMessage)||void 0===e?void 0:e.toString())||"",o=n.includes("Combined callback triggered")||n.includes("InAppNotificationManager")||n.includes("handleNewMessage"),r=Date.now()-a;(!o||r>3e3)&&(i(),a=Date.now())},1e3);return()=>{clearInterval(r)}},[]),e)?(0,i.jsx)(I,{notification:{roomId:e.roomId,sender:e.message.sender||{},message:e.message.message||"You have a new message",created_at:e.message.created_at},onClose:()=>{o.current=null,n.current&&(clearTimeout(n.current),n.current=null),t(null)}}):null}n(42329);var D=n(82718);function L(){let e=(0,g.usePathname)(),t=(0,g.useRouter)(),[n,o]=(0,a.useState)([]),r=(0,a.useRef)(0),s=(0,a.useRef)(new Map),l="/messages"===e||(null==e?void 0:e.startsWith("/messages/")),c=e=>{o(t=>t.map(t=>t.key===e?{...t,exiting:!0}:t)),setTimeout(()=>{o(t=>t.filter(t=>t.key!==e))},300);let t=s.current.get(e);t&&(clearTimeout(t),s.current.delete(e))},u=e=>{if(l)return;let t=++r.current;o(n=>[{key:t,notif:e,exiting:!1},...n].slice(0,3));let n=setTimeout(()=>c(t),5e3);s.current.set(t,n)};return((0,a.useEffect)(()=>{let e=e=>{let t=e.detail;t&&u(t)};return window.addEventListener("vfx:notification.badge",e),()=>window.removeEventListener("vfx:notification.badge",e)},[l]),(0,a.useEffect)(()=>()=>
1{s.current.forEach(e=>clearTimeout(e))},[]),0===n.length)?null:(0,i.jsx)("div",{"aria-live":"polite","aria-label":"Notifications",className:"pointer-events-none fixed bottom-6 right-5 z-[99999] flex flex-col-reverse gap-2",children:n.map(e=>{let{key:n,notif:a,exiting:o}=e,r="chat_message"===a.notification_type?a.reference_id:null;return(0,i.jsxs)("div",{role:"alert",style:{transform:o?"translateX(110%)":"translateX(0)",opacity:o?0:1,transition:"transform 0.3s ease, opacity 0.3s ease"},className:"pointer-events-auto flex w-80 items-start gap-3 rounded-2xl border border-slate-200 bg-white p-3 shadow-lg",children:[(0,i.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-indigo-50 text-indigo-600",children:(0,i.jsx)(D.Z,{className:"h-5 w-5",strokeWidth:2})}),(0,i.jsxs)("button",{type:"button",className:"min-w-0 flex-1 cursor-pointer text-left",onClick:()=>{c(n),r&&t.push("/messages/".concat(r))},children:[(0,i.jsx)("p",{className:"truncate text-sm font-semibold text-slate-800",children:a.title}),(0,i.jsx)("p",{className:"mt-0.5 line-clamp-2 text-xs text-slate-500",children:a.body})]}),(0,i.jsx)("button",{type:"button","aria-label":"Dismiss notification",onClick:()=>c(n),className:"ml-1 shrink-0 rounded-lg p-0.5 text-slate-400 transition hover:bg-slate-100 hover:text-slate-600",children:(0,i.jsx)(d.Z,{className:"h-4 w-4"})})]},n)})})}var T=n(25566);function P(){let e=T.env.NEXT_PUBLIC_FACEBOOK_MESSENGER_URL||"https://m.me/Vefogix",t=T.env.NEXT_PUBLIC_TELEGRAM_BOT_URL||"https://t.me/Vefogix_Ai_Bot",o=(0,g.usePathname)(),l=(0,g.useRouter)(),{userdata:c}=(0,h.U)(),{commonDetails:d}=(0,f.n)(),p=null==d?void 0:d.toast_data,b=null==o?void 0:o.includes("/not-found"),_="/messages"===o||(null==o?void 0:o.startsWith("/messages/")),[S,k]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=()=>k(e=>e+1),t=()=>k(e=>Math.max(0,e-1));return window.addEventListener("vfx:chat-widget-open",e),window.addEventListener("vfx:chat-widget-close",t),()=>{window.removeEventListener("vfx:chat-widget-open",e),window.removeEventListener("vfx:chat-widget-close",t)}},[]);let C=_||S>0;(0,a.useEffect)(()=>{let e=null==c?void 0:c.id;e&&(async()=>{try{let t=(0,N.getNotificationService)();if(!t||t.isInitialized()&&t.getCurrentUserId()===e)return;await (0,y.initializeFirebase)(),await (0,N.initializeNotifications)(e,{onNewMessage:()=>{}})}catch(e){}})()},[null==c?void 0:c.id]),(0,a.useEffect)(()=>{if(!(null==c?void 0:c.username))return;let e=window.$crisp;e&&"function"==typeof e.push&&e.push(["set","user:nickname",[c.username]])},[null==c?void 0:c.username]),(0,a.useEffect)(()=>{!function(){let e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];let a=n[2];if("string"==typeof a){let e=a;if(a.startsWith("http://localhost")||a.startsWith("https://localhost")){let t=window.location.origin;e=a.replace(/https?:\/\/localhost:\d+/,t)}"https:"===window.location.protocol&&e.startsWith("http://")&&!e.includes("localhost")&&(e=e.replace("http://","https://")),n[2]=e}return e.apply(window.history,n)},window.history.replaceState=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let a=n[2];if("string"==typeof a){let e=a;if(a.startsWith("http://localhost")||a.startsWith("https://localhost")){let t=window.location.origin;e=a.replace(/https?:\/\/localhost:\d+/,t)}"https:"===window.location.protocol&&e.startsWith("http://")&&!e.includes("localhost")&&(e=e.replace("http://","https://")),n[2]=e}return t.apply(window.history,n)};let n=window.fetch;window.fetch=function(e,t){let i;if("string"==typeof e?i=e:e instanceof URL?i=e.toString():i=e.url,i){let t=i;if(i.startsWith("http://localhost")||i.startsWith("https://localhost")){let e=window.location.origin;t=i.replace(/https?:\/\/localhost:\d+/,e)}"https:"===window.location.protocol&&t.startsWith("http://")&&!t.includes("localhost")&&(t=t.replace("http://","https://")),t!==i&&("string"==typeof e?e=t:e instanceof URL?e=new URL(t):e=new Request(t,e))}return n(e,t)}}()},[]),(0,a.useEffect)(()=>{let e=!0,t=e=>{try{var t,i,a,o,r,s,l,c,d,u,m;if(!e||"object"!=typeof e)return;if("message.new"===e.type){let i=null!==(t=e.room_id)&&void 0!==t?t:e.roomId,a=e.message,o="number"==typeof i?i:parseInt(String(i||""),10);if(!o||!a)return;try{let{getNotificationService:e}=n(64767),t=null==e?void 0:e();t&&t.handleNewMessage(o,a)}catch(e){}}else if("notification.badge"===e.type)try{let{store:t}=n(47196),{setUnreadCount:f,prependNotification:h}=n(18719);
1if("number"==typeof e.unread_count&&t.dispatch(f(e.unread_count)),e.notification){let f=e.notification,p=null!==(a=null!==(i=f.notification_type)&&void 0!==i?i:f.type)&&void 0!==a?a:"system_alert";if("chat_message"!==p){let e={id:f.id,notification_type:p,reference_id:null!==(r=null!==(o=f.reference_id)&&void 0!==o?o:f.room_id)&&void 0!==r?r:null,reference_id2:null!==(l=null!==(s=f.reference_id2)&&void 0!==s?s:f.message_id)&&void 0!==l?l:null,title:null!==(c=f.title)&&void 0!==c?c:"",body:null!==(d=f.body)&&void 0!==d?d:"",image_url:null!==(u=f.image_url)&&void 0!==u?u:null,is_read:!1,created_at:null!==(m=f.created_at)&&void 0!==m?m:new Date().toISOString()};t.dispatch(h(e)),window.dispatchEvent(new CustomEvent("vfx:notification.badge",{detail:e}));let{playNotificationSound:i}=n(56658);i(e.notification_type,e.id)}}}catch(e){console.error("[ClientUI] notification.badge handler error:",e)}}catch(e){}},i=async()=>{try{let[i,a]=await Promise.all([Promise.resolve().then(n.bind(n,64131)),n.e(60988).then(n.bind(n,60988))]);if(!e)return;let o=i.default,{getUserUpdatesWebSocket:r,addUserUpdatesMessageListener:s}=a;if(!o.get("login_access_token"))return;r({onError:e=>console.error("[ClientUI WS] user-updates error:",e)}),s("clientui",t)}catch(e){console.error("[DEBUG ClientUI WS] init error:",e)}},a=setTimeout(()=>{i()},1e3);return()=>{e=!1,clearTimeout(a),n.e(60988).then(n.bind(n,60988)).then(e=>{let{removeUserUpdatesMessageListener:t}=e;t("clientui")}).catch(()=>{})}},[]),(0,a.useEffect)(()=>{let e=!0,t=e=>{try{if(!e||"object"!=typeof e)return;let{store:u}=n(47196),{setChatNotifUnreadCount:m,prependChatNotification:f}=n(27788);if("connected"===e.type||"notification.count"===e.type){"number"==typeof e.unread_count&&u.dispatch(m(e.unread_count));return}if("notification.created"===e.type){"number"==typeof e.unread_count&&u.dispatch(m(e.unread_count));let h=e.notification;if((null==h?void 0:h.id)!=null){var t,i,a,o,r,s,l,c,d;u.dispatch(f({id:h.id,notification_type:null!==(t=h.notification_type)&&void 0!==t?t:"chat_message",reference_id:null!==(i=h.reference_id)&&void 0!==i?i:null,reference_id2:null!==(a=h.reference_id2)&&void 0!==a?a:null,title:null!==(o=h.title)&&void 0!==o?o:"",body:null!==(r=h.body)&&void 0!==r?r:"",image_url:null!==(s=h.image_url)&&void 0!==s?s:null,is_read:!1,created_at:null!==(l=h.created_at)&&void 0!==l?l:new Date().toISOString()})),window.dispatchEvent(new CustomEvent("vfx:notification.badge",{detail:{...h,notification_type:null!==(c=h.notification_type)&&void 0!==c?c:"chat_message"}}));try{let{playNotificationSound:e}=n(56658);e(null!==(d=h.notification_type)&&void 0!==d?d:"chat_message",h.id)}catch(e){}}}}catch(e){}},i=async()=>{try{let[i,a]=await Promise.all([Promise.resolve().then(n.bind(n,64131)),n.e(60988).then(n.bind(n,60988))]);if(!e)return;let o=i.default,{getChatNotificationsWebSocket:r,addChatNotificationsMessageListener:s}=a;if(!o.get("login_access_token"))return;r({onError:e=>console.error("[ClientUI WS] chat-notifications error:",e)}),s("clientui-chatnotif",t)}catch(e){console.error("[ClientUI WS] chat-notifications init error:",e)}},a=setTimeout(()=>{i()},1e3);return()=>{e=!1,clearTimeout(a),n.e(60988).then(n.bind(n,60988)).then(e=>{let{removeChatNotificationsMessageListener:t}=e;t("clientui-chatnotif")}).catch(()=>{})}},[]),(0,a.useEffect)(()=>{let e=e=>{let{url:t,roomId:n}=e.detail;t&&l.push(t)};return window.addEventListener("notification-navigate",e),()=>{window.removeEventListener("notification-navigate",e)}},[l]),(0,a.useEffect)(()=>(window.__vfxHideFab=()=>P(!1),()=>{delete window.__vfxHideFab}),[]);let I=()=>{let e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=window.$crisp;if(n&&!Array.isArray(n)&&"function"==typeof n.push)try{n.push(["do","chat:show"]),setTimeout(()=>{try{n.push(["do","chat:open"])}catch(e){}},80)}catch(e){}else t<40&&setTimeout(()=>e(t+1),150)};e()},[D,P]=(0,a.useState)(!1),R=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!D)return;let e=e=>{R.current&&!R.current.contains(e.target)&&P(!1)},t=e=>{"Escape"===e.key&&P(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[D]);let A=[{key:"telegram",label:"Telegram",bg:"#229ED9",ring:"ring-[#6366f1]",onClick:()=>{window.open(t,"_blank","noopener,noreferrer"),P(!1)}
1,content:(0,i.jsx)(w.AGi,{className:"text-white text-xl"})},{key:"messenger-chat",label:"Facebook Messenger",bg:"#ffffff",ring:"ring-[#6366f1]",onClick:()=>{P(!1),window.open(e,"_blank","noopener,noreferrer")},content:(0,i.jsx)(w.sAh,{className:"text-[#6366f1] text-xl"})},{key:"whatsapp",label:"WhatsApp",bg:"#25D366",ring:"ring-[#22c55e]",onClick:()=>{window.open("https://api.whatsapp.com/send/?phone=18288000589&text&type=phone_number&app_absent=0","_blank","noopener,noreferrer"),P(!1)},content:(0,i.jsx)(w.xpo,{className:"text-white text-xl"})},{key:"email",label:"Email",bg:"#EA4335",ring:"ring-[#6366f1]",onClick:()=>{window.open("https://mail.google.com/mail/?view=cm&[email protected]","_blank"),P(!1)},content:(0,i.jsx)(w.SRX,{className:"text-white text-xl"})},{key:"vefogix-chat",label:"Chat with Vefogix",bg:"#ffffff",ring:"ring-[#6366f1]",onClick:e=>{null==e||e.preventDefault(),null==e||e.stopPropagation(),I()},content:(0,i.jsx)(v.default,{src:"/images/new/Vefogix-new.png",alt:"Vefogix Chat",width:24,height:24,className:"object-contain"})}];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:R,className:"fixed bottom-20 right-5 z-999 transition-opacity duration-200 ".concat(C?"opacity-0 pointer-events-none":"opacity-100"),"aria-hidden":C,children:(0,i.jsxs)("div",{className:"relative w-14 h-14",children:[(0,i.jsx)(r.M,{children:D&&A.map((e,t)=>{let n=A.length,a=(280+-125*(1===n?0:t/(n-1)))*Math.PI/180,o=100*Math.cos(a),r=100*Math.sin(a);return(0,i.jsx)(s.E.button,{type:"button",onClick:e.onClick,"aria-label":e.label,title:e.label,initial:{x:0,y:0,opacity:0,scale:.3},animate:{x:o,y:r,opacity:1,scale:1},exit:{x:0,y:0,opacity:0,scale:.3},transition:{type:"spring",stiffness:260,damping:20,delay:.04*t},whileHover:{scale:1.1},whileTap:{scale:.92},style:{backgroundColor:e.bg},className:"absolute left-0 top-0 flex items-center justify-center w-12 h-12 rounded-full shadow-lg ring-2 ".concat(e.ring," overflow-hidden"),children:e.content},e.key)})}),(0,i.jsx)(s.E.button,{type:"button",onClick:()=>P(e=>!e),className:"relative flex items-center justify-center w-14 h-14 rounded-full shadow-lg bg-[#6366f1] hover:shadow-xl transition-shadow",whileHover:{scale:1.05},whileTap:{scale:.95},animate:{rotate:D?45:0},"aria-label":D?"Close chat menu":"Open chat menu","aria-expanded":D,title:"Chat with us",children:(0,i.jsx)(w.llv,{className:"text-white text-2xl"})})]})}),(0,i.jsx)(m,{}),!b&&(0,i.jsx)(u,{toastData:null!=p?p:[]}),(0,i.jsx)(x,{}),(0,i.jsx)(j,{}),(0,i.jsx)(E,{}),(0,i.jsx)(M,{}),(0,i.jsx)(L,{})]})}(0,p.default)(()=>Promise.all([n.e(51976),n.e(6950),n.e(33665),n.e(86051),n.e(87240),n.e(60614),n.e(1779),n.e(40522),n.e(9956),n.e(5957),n.e(9212),n.e(45706),n.e(62516),n.e(46305),n.e(81821),n.e(23217),n.e(25027),n.e(27648),n.e(54207),n.e(65675)]).then(n.bind(n,54207)),{loadableGenerated:{webpack:()=>[54207]},ssr:!1,loading:()=>(0,i.jsx)("div",{className:"w-full h-28 bg-white rounded-md"})})},38868:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var i=n(2265),a=n(75017);function o(){return(0,i.useEffect)(()=>{(0,a.ek)(),(0,a.IE)(),window.getFundsAddedLogs=a.A4,window.clearFundsAddedLogs=a.AV,window.checkFundsAddedEvent=e=>{if(!window.dataLayer)return console.warn("â ï¸ [Manual Check] dataLayer is not available"),null;let t=window.dataLayer.filter(e=>"Funds_Added"===e.event)||[];t.length>0&&e&&t.find(t=>t.payment_id===e),window.google_tag_manager&&window.google_tag_manager["GTM-5W5VZCM7"],t.filter(e=>e["gtm.uniqueEventId"]).length;try{localStorage.getItem("pending_funds_added_event")}catch(e){console.error("Error reading localStorage:",e)}return(0,a.A4)().length,t},window.viewFundsAddedLogs=()=>{let e=(0,a.A4)();return e.length,e}},[]),null}},55602:function(e,t,n){"use strict";var i=n(57437),a=n(99376),o=n(2265);let r=()=>{let e=(0,a.usePathname)(),t=(0,a.useSearchParams)();return(0,o.useLayoutEffect)(()=>{if("undefined"==typeof document)return;let n=document.querySelector('link[rel="canonical"]'),i="https://www.vefogix.com/";if(n){let t=n.getAttribute("href");if(t!==i&&"/"!==e||t===i&&"/"===e)return}let a=["_rsc","_next","__nextjs_original-stack-frames"],o=new URLSearchParams;t.forEach((e,t)=>{!a.includes(t)&&(!t.startsWith("_")||t.startsWith("utm_"))&&o.append(t,e)});let r=o.toString(),s=r.length>0,l="/"===e?"/":"".concat(e.replace(/\/$/,""),"/"),c="https://www.vefogix.com".concat(l).concat(s?"?".concat(r):""),d=n||document.createElement("link");n||(d.setAttribute("rel","canonical"),document.head.appendChild(d)),d.getAttribute("href")!==c&&d.setAttribute("href",c)},[e,t]),null};t.default=()=>(0,i.jsx)(o.Suspense,{fallback:null,children:(0,i.jsx)(r,{})})},83462:function(e,t,n){"use strict";n.d(t,{E:function(){return c},n:function(){return d}});var i=n(57437),a=n(2265),o=n(99551),r=n(83464),s=n(64131);let l=(0,a.createContext)(void 0),c=e=>{let{children:t}=e,[n,c]=(0,a.useState)(!0),[d,u]=(0,a.useState)([]),m=(0,a.useCallback)(async()=>{let e=s.default.get("login_access_token");if(e)try{let t=(await r.default.get("".concat(o.BASE_URL,"projects/"),{headers:{Authorization:"Bearer ".concat(e)}})).data;u(t)}catch(e){console.error("Error fetching projects:",e.response)}finally{c(!1)}},[]);return(0,i.jsx)(l.Provider,{value:{projects:d,fetchProjects:m,loading:n},children:t})},d=()=>{let e=(0,a.useContext)(l);if(void 0===e)throw Error("useAllProjects must be used within a AllProjectProvider");return e}},93148:function(e,t,n){"use strict";n.d(t,{H:function(){return r},a:function(){return s}});var i=n(57437),a=n(2265);let o=(0,a.createContext)(null),r=e=>{let{children:t}=e,[n,r]=(0,a.useState)(()=>{{let e=localStorage.getItem("selectedRecord");return e?JSON.parse(e):null}});return(0,a.useEffect)(()=>{n?localStorage.setItem("selectedRecord",JSON.stringify(n)):localStorage.removeItem("selectedRecord")},[n]),(0,i.jsx)(o.Provider,{value:{selectedRecord:n,setSelectedRecord:r},children:t})},s=()=>(0,a.useContext)(o)},47690:function(e,t,n){"use strict";n.d(t,{H:function(){return c},u:function(){return d}});var i=n(57437),a=n(2265),o=n(99551),r=n(83464),s=n(64131);let l=(0,a.createContext)(void 0),c=e=>{let{children:t}=e,[n,c]=(0,a.useState)(!0),[d,u]=(0,a.useState)([]),[m,f]=(0,a.useState)(null),[h,p]=(0,a.useState)(1),g=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",i=s.default.get("login_access_token");if(!i){c(!1);return}c(!0);try{let a=(await r.default.get("".concat(o.BASE_URL,"my-projects/"),{headers:{Authorization:"Bearer ".concat(i)},params:{page:e,page_size:10,search:t,..."all"!==n?{project_ownership:n}:{}}})).data;f(a),u((null==a?void 0:a.results)||[]),p(e)}catch(e){console.error("Error fetching projects:",e.response),f(null),u([])}finally{c(!1)}},v=(null==m?void 0:m.count)||0;return(0,i.jsx)(l.Provider,{value:{projects:d,fetchProjects:g,loading:n,data:m,currentPage:h,setCurrentPage:p,totalPages:Math.ceil(v/10),totalItems:v,pageSize:10},children:t})},d=()=>{let e=(0,a.useContext)(l);if(void 0===e)throw Error("useSidebarProjects must be used within a SidebarProjectProvider");return e}},2285:function(e,t,n){"use strict";n.d(t,{Q:function(){return l},r:function(){return c}});var i=n(57437),a=n(2265),o=n(83464),r=n(99551);let s=(0,a.createContext)(void 0),l=e=>{let{children:t}=e,[n,l]=(0,a.useState)(null),[c,d]=(0,a.useState)(!1),u=async()=>{d(!0);try{let e=await o.default.get("".concat(r.BASE_URL,"submissions-type/"),{});l(e.data)}catch(e){console.log(e)}finally{d(!1)}};return(0,a.useEffect)(()=>{u()},[]),(0,i.jsx)(s.Provider,{value:{fetchingcategory:c,category:n},children:t})},c=()=>(0,a.useContext)(s)},26548:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var i=n(2265),a=n(40525),o=n(8606),r=n(99376);let s=()=>{let e=(0,a.T)(),{data:t,loading:n,error:s,lastFetched:l}=(0,a.C)(e=>e.commonDetails),c=(0,r.usePathname)(),d=(0,i.useRef)(!1);return(0,i.useEffect)(()=>
1{if(!(!c||c.includes("/not-found"))){if(t&&l&&!(Date.now()-l>3e5)){d.current=!0;return}!n&&(d.current||(d.current=!0,e((0,o.hb)())))}},[t,n,l,c,e]),(0,i.useEffect)(()=>{t&&l&&!(Date.now()-l>3e5)&&(d.current=!0)},[t,l]),{commonDetails:t,loading:n,error:s,refetch:()=>{d.current=!1,e((0,o.hb)())}}}},47196:function(e,t,n){"use strict";n.r(t),n.d(t,{store:function(){return i.h}});var i=n(3845)},40525:function(e,t,n){"use strict";n.d(t,{C:function(){return o},T:function(){return a}});var i=n(68575);let a=()=>(0,i.I0)(),o=i.v9},85210:function(e,t,n){"use strict";n.d(t,{Df:function(){return o},Fk:function(){return r},K4:function(){return h},Mi:function(){return s},T:function(){return v},TJ:function(){return c},_D:function(){return w},h3:function(){return g},ie:function(){return d},mB:function(){return u},op:function(){return a},sL:function(){return l},sT:function(){return p},u:function(){return y},ww:function(){return x}});let i=(0,n(39129).oM)({name:"chat",initialState:{rooms:{},roomsList:[],activeRoomId:null,isLoading:!1,error:null,drafts:{}},reducers:{setDraft:(e,t)=>{let{roomId:n,text:i,replyToId:a}=t.payload,o=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n;i&&i.trim()?(e.drafts[o]={text:i,replyToId:null!=a?a:null},e.rooms[o]&&(e.rooms[o].myDraft={message:i})):(delete e.drafts[o],e.rooms[o]&&(e.rooms[o].myDraft=null))},clearDraft:(e,t)=>{let n=t.payload,i=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n;delete e.drafts[i],e.rooms[i]&&(e.rooms[i].myDraft=null)},setRoomServerDraft:(e,t)=>{let{roomId:n,message:i}=t.payload,a=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n;!e.drafts[a]&&e.rooms[a]&&(e.rooms[a].myDraft=i&&i.trim()?{message:i}:null)},setChatRooms:(e,t)=>{let n={},i=[];t.payload.forEach(t=>{var a,o;let r=t.roomId.startsWith("chat_")?t.roomId.replace(/^chat_/,"").split("_")[0]:t.roomId,s=e.drafts[r],l=!!e.rooms[r]||!!e.rooms[t.roomId];n[t.roomId]=s?{...t,myDraft:{message:s.text}}:l&&(null===(a=null!==(o=e.rooms[r])&&void 0!==o?o:e.rooms[t.roomId])||void 0===a?void 0:a.myDraft)===null?{...t,myDraft:null}:t,i.push(t.roomId)}),e.rooms=n,e.roomsList=i},appendChatRooms:(e,t)=>{t.payload.forEach(t=>{e.rooms[t.roomId]||e.roomsList.push(t.roomId),e.rooms[t.roomId]={...e.rooms[t.roomId],...t}})},upsertChatRoom:(e,t)=>{let n=t.payload,i=e.rooms[n.roomId];e.rooms[n.roomId]={...i,...n,messages:n.messages.length>0?n.messages:(null==i?void 0:i.messages)||[]};let a=e.roomsList.indexOf(n.roomId);-1!==a&&e.roomsList.splice(a,1),e.roomsList.unshift(n.roomId)},updateRoomWithMessage:(e,t)=>{let{roomId:n,message:i,publisherId:a,publisherName:o,publisherAvatar:r,currentUserId:s}=t.payload,l=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n,c=e.rooms[l],d=i.timestamp instanceof Date?i.timestamp:new Date(i.timestamp);if(c){if(c.messages.some(e=>e.id===i.id))return;c.messages.push(i),c.messages.sort((e,t)=>{let n=e.timestamp instanceof Date?e.timestamp:new Date(e.timestamp),i=t.timestamp instanceof Date?t.timestamp:new Date(t.timestamp);return n.getTime()-i.getTime()}),c.lastMessage=i.text||("image"===i.type?"Image attachment":"file"===i.type?"File attachment":"proposal"===i.type?"Custom Order Proposal":""),c.lastMessageTime=d;let t=i.senderId!==s,n=e.activeRoomId===l;t&&!n&&(c.unreadCount=c.unreadCount+1),c.lastMessageIsMine=!t,c.lastMessageRead=!1,a&&(c.publisherId=a),o&&(c.publisherName=o),r&&(c.publisherAvatar=r);let u=e.roomsList.indexOf(l);-1!==u&&e.roomsList.splice(u,1),e.roomsList.unshift(l)}else{let t={roomId:l,publisherId:a||"",publisherName:o||"Unknown",publisherAvatar:r,lastMessage:i.text||("image"===i.type?"Image attachment":"file"===i.type?"File attachment":""),lastMessageTime:d,unreadCount:i.senderId!==s?1:0,messages:[i]};e.rooms[l]=t,e.roomsList.unshift(l)}},setRoomMessages:(e,t)=>{let{roomId:n,messages:i}=t.payload,a=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n;e.rooms[a]&&(e.rooms[a].messages=i)},addMessageToRoom:(e,t)=>{let{roomId:n,message:i}=t.payload,a=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n;if(e.rooms[a]){let t=e.rooms[a].messages.findIndex(e=>e.id===i.id);-1!==t?e.rooms[a].messages[t]=i:(e.rooms[a].messages.push(i),e.rooms[a].messages.sort((e,t)=>
1{let n=e.timestamp instanceof Date?e.timestamp:new Date(e.timestamp),i=t.timestamp instanceof Date?t.timestamp:new Date(t.timestamp);return n.getTime()-i.getTime()})),e.rooms[a].lastMessage=i.text||("file"===i.type?"File attachment":"proposal"===i.type?"Custom Order Proposal":""),e.rooms[a].lastMessageTime=i.timestamp instanceof Date?i.timestamp:new Date(i.timestamp)}},setActiveRoom:(e,t)=>{e.activeRoomId=t.payload},markRoomAsRead:(e,t)=>{let n=t.payload,i=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n;e.rooms[i]&&(e.rooms[i].unreadCount,e.rooms[i].unreadCount=0,e.rooms[i].messages.forEach(e=>{e.isRead=!0}))},setRoomConnectionStatus:(e,t)=>{let{roomId:n,isConnected:i}=t.payload,a=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n;e.rooms[a]&&(e.rooms[a].isConnected=i)},clearChat:e=>{e.rooms={},e.roomsList=[],e.activeRoomId=null,e.error=null},setLoading:(e,t)=>{e.isLoading=t.payload},setError:(e,t)=>{e.error=t.payload},setRoomUnread:(e,t)=>{let{roomId:n,unreadCount:i}=t.payload,a=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n,o=e.rooms[a];o&&(o.unreadCount=i>0?i:1),e.activeRoomId===a&&(e.activeRoomId=null)},updateRoomMetadata:(e,t)=>{let{roomId:n,lastMessage:i,lastMessageTime:a,unreadCount:o,isOnline:r,lastSeenDisplay:s,name:l,lastMessageIsMine:c,lastMessageRead:d}=t.payload,u=n.startsWith("chat_")?n.replace(/^chat_/,"").split("_")[0]:n,m=e.rooms[u];if(m||(m={roomId:u,publisherId:"",publisherName:"Unknown",unreadCount:null!=o?o:0,messages:[]},e.rooms[u]=m),void 0!==i&&(m.lastMessage=i),void 0!==a&&(m.lastMessageTime=a instanceof Date?a.toISOString():a),void 0!==o){let t=u===e.activeRoomId?0:o;m.unreadCount=t}if(void 0!==r&&(m.isOnline=r),void 0!==s&&(m.lastSeenDisplay=s),void 0!==c&&(m.lastMessageIsMine=c),void 0!==d&&(m.lastMessageRead=d),void 0!==l&&(m.name=l,l&&(m.publisherName=l)),!0!==t.payload.skipSort){let t=e.roomsList.indexOf(u);-1!==t&&e.roomsList.splice(t,1),e.roomsList.unshift(u)}e.roomsList.length>1||e.rooms[u].publisherId}}}),{setChatRooms:a,appendChatRooms:o,upsertChatRoom:r,updateRoomWithMessage:s,setRoomMessages:l,addMessageToRoom:c,setActiveRoom:d,markRoomAsRead:u,setRoomConnectionStatus:m,clearChat:f,setLoading:h,setError:p,updateRoomMetadata:g,setDraft:v,clearDraft:w,setRoomServerDraft:x,setRoomUnread:y}=i.actions;t.ZP=i.reducer},8606:function(e,t,n){"use strict";n.d(t,{hb:function(){return r}});var i=n(39129),a=n(99551);let o=e=>Date.now()-e>3e5,r=(0,i.hg)("commonDetails/fetchCommonDetails",async(e,t)=>{let{getState:n,rejectWithValue:i}=t;try{let{data:e,lastFetched:t}=n().commonDetails;if(e&&t&&!o(t))return{data:e,fromCache:!0};let i=await fetch("".concat(a.BASE_URL,"common-website-details/"),{method:"GET",headers:{"Content-Type":"application/json"},cache:"no-store"});if(!i.ok)throw Error("Failed to fetch common details: ".concat(i.status));return{data:await i.json(),fromCache:!1}}catch(e){return i(e.message||"Failed to fetch common details")}},{condition:(e,t)=>{let{getState:n}=t,{loading:i,data:a,lastFetched:r,error:s}=n().commonDetails;return!(i||a&&r&&!o(r)||s&&r&&Date.now()-r<3e4)}}),s=(0,i.oM)({name:"commonDetails",initialState:{data:null,loading:!1,error:null,lastFetched:null},reducers:{clearCommonDetails:e=>{e.data=null,e.loading=!1,e.error=null,e.lastFetched=null},updateCommonDetails:(e,t)=>{e.data=t.payload,e.lastFetched=Date.now()}},extraReducers:e=>{e.addCase(r.pending,e=>{(!e.data||!e.lastFetched||o(e.lastFetched))&&(e.loading=!0),e.error=null}).addCase(r.fulfilled,(e,t)=>{e.loading=!1,t.payload.fromCache||(e.data=t.payload.data,e.lastFetched=Date.now()),e.error=null}).addCase(r.rejected,(e,t)=>{e.loading=!1,!e.data||!e.lastFetched||o(e.lastFetched)?e.error=t.payload:e.error=null})}}),{clearCommonDetails:l,updateCommonDetails:c}=s.actions;t.ZP=s.reducer},13409:function(e,t,n){"use strict";n.d(t,{MU:function(){return u},Q4:function(){return m},VN:function(){return d},kX:function(){return a},ne:function(){return c}});var i=n(39129);let a="agency_invitation_code",o=e=>{try{e?sessionStorage.setItem(a,e):sessionStorage.removeItem(a)}catch(e){}},r={invitationCode:(()=>{try{return sessionStorage.getItem(a)}catch(e){return null}})(),pendingInvitation:null,modalOpen:!1,verificationStatus:"idle"},s=(0,i.oM)({name:"invitation",initialState:r,reducers:{setInvitationCode:(e,t)=>{e.invitationCode=t.payload,o(t.payload)},setPendingInvitation:(e,t)=>{e.pendingInvitation=t.payload},setModalOpen:(e,t)=>{e.modalOpen=t.payload},setVerificationStatus:(e,t)=>{e.verificationStatus=t.payload},clearInvitation:e=>{e.invitationCode=null,e.pendingInvitation=null,e.modalOpen=!1,e.verificationStatus="idle",o(null)}}}),{setInvitationCode:l,setPendingInvitation:c,setModalOpen:d,setVerificationStatus:u,clearInvitation:m}=s.actions;t.ZP=s.reducer},99551:function(e,t,n){"use strict";n.r(t),n.d(t,{BASE_URL:function(){return a}});var i=n(83464);let a="https://www.vefogix.com/api/".replace(/^http:\/\//,"https://");i.default.interceptors.request.use(e=>("string"==typeof e.url&&(e.url=e.url.replace(/^http:\/\//,"https://")),e))},19641:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});class i{async request(e,t,n){var i,a;let o=(null==n?void 0:n.useCache)!==!1,r=null!==(i=null==n?void 0:n.cacheTTL)&&void 0!==i?i:this.CACHE_TTL,s=null!==(a=null==n?void 0:n.dedupWindow)&&void 0!==a?a:this.DEDUP_WINDOW,l=Date.now(),c=this.cache.get(e);if(o&&(null==c?void 0:c.data)&&l-c.timestamp<r)return c.data;if(c&&l-c.timestamp<s)return c.promise;let d=t().then(t=>(o&&this.cache.set(e,{promise:d,timestamp:l,data:t}),t)).catch(t=>{var n;throw(null===(n=this.cache.get(e))||void 0===n?void 0:n.promise)===d&&this.cache.delete(e),t});return this.cache.set(e,{promise:d,timestamp:l}),d}clear(e){e?this.cache.delete(e):this.cache.clear()}clearExpired(e){let t=Date.now(),n=null!=e?e:this.CACHE_TTL;for(let[e,i]of this.cache.entries())t-i.timestamp>n&&this.cache.delete(e)}constructor(){this.cache=new Map,this.CACHE_TTL=5e3,this.DEDUP_WINDOW=1e3}}let a=new i;setInterval(()=>{a.clearExpired()},3e4)},56658:function(e,t,n){"use strict";n.r(t),n.d(t,{playNotificationSound:function(){return o}});let i={chat_message:"/sounds/chat.mp3"},a=null;function o(e,t){var n;if(t===a)return;a=t;let o=null!==(n=i[e])&&void 0!==n?n:i.chat_message;try{let e=new Audio(o);e.volume=.5,e.play().catch(()=>{})}catch(e){}}},42329:function(){},94073:function(){},2530:function(){}},function(e){e.O(0,[57079,92563,66589,27699,21401,83464,3462,65878,99765,49400,39951,42264,27012,22964,74718,58586,23595,10278,81803,75017,71575,64767,92971,52117,1744],function(){return e(e.s=98181)}),_N_E=e.O()}]);
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.