PageSourceSearch

https://tickbig.com/assets/index-a2ZImIZ8.js

js tickbig.com collected 2026-10-02 01:46:07 UTC 1,324,984 bytes, 1,040 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Invoice-BD9JJKlq.js","assets/react-DjP1ANNA.js","assets/@babel-DLSbV39L.js","assets/react-to-print-Y8s0l9m2.js","assets/react-dom-CH1r7ODx.js","assets/react-redux-CvGH35IU.js","assets/use-sync-external-store-Bv2BUH2l.js","assets/react-router-dom-B-I8Kkrm.js","assets/react-router-BLLygtAF.js","assets/@remix-run-yqlN7Vj_.js","assets/axios-BimPEqV4.js","assets/redux-BECV-Nlq.js","assets/@mui-Cpwdqv5S.js","assets/react-is-DcfIKM1A.js","assets/clsx-B-dksMZM.js","assets/react-transition-group-CxNLX-ix.js","assets/@emotion-BMnXlmzl.js","assets/hoist-non-react-statics-B-49tuQ9.js","assets/stylis-FDnFs_-n.js","assets/@popperjs-BQBsAJpH.js","assets/jss-CFGRwE_1.js","assets/is-in-browser-I-S1O4Zl.js","assets/jss-plugin-rule-value-function-BFRIntEn.js","assets/jss-plugin-global-BYzrZYyJ.js","assets/jss-plugin-nested-D_ejpMkQ.js","assets/jss-plugin-camel-case-B3itHn0h.js","assets/hyphenate-style-name-HOLnhz8K.js","assets/jss-plugin-default-unit-DI8ZotHi.js","assets/jss-plugin-vendor-prefixer-CJNl0PRb.js","assets/css-vendor-DxT3DpbQ.js","assets/jss-plugin-props-sort-D2CdvUsV.js","assets/redux-persist-C5kDgR2m.js","assets/@reduxjs-Cpep842i.js","assets/redux-thunk-ClJT1hhx.js","assets/socket.io-client-BGdex47s.js","assets/engine.io-client-BY_6WtMP.js","assets/engine.io-parser-BiEtp6m2.js","assets/@socket.io-Dkula2eQ.js","assets/socket.io-parser-BBkuslX-.js","assets/react-helmet-async-BK4tB33I.js","assets/react-fast-compare-CbukUWDo.js","assets/invariant-CvSiY3tr.js","assets/shallowequal--AeqoEPp.js","assets/react-ga4-vDwhweBP.js","assets/jspdf-BNIpv04V.js","assets/fflate-EnPhvkmS.js","assets/react-toastify-mV4AXyxU.js","assets/react-toastify-CxHervYG.css","assets/@lottiefiles-BW4ya4wF.js","assets/crypto-js-BQRu_zAZ.js","assets/@e965-BR7518fZ.js","assets/styled-components-Cz_yWE8X.js","assets/react-infinite-scroll-component-zxdVSlM8.js","assets/react-chat-elements-DcSu28hc.js","assets/dompurify-Bq0E5Q3l.js","assets/emoji-picker-react-C8AahYtu.js","assets/flairup-CpvKgcza.js","assets/react-hook-form-BGrmxbtY.js","assets/otp-input-react-d_JYOq3_.js","assets/react-select-CV5rslID.js","assets/@floating-ui-D6mDMy8Y.js","assets/use-isomorphic-layout-effect-f5bfSEtN.js","assets/memoize-one-BdPwpGay.js","assets/dayjs-ByzvYeBt.js","assets/jszip-BlU_Vd2G.js","assets/file-saver-B72EZ2em.js","assets/html2canvas-CBrSDip1.js","assets/@react-google-maps-mug9B72a.js","assets/lodash-pQOYHdgg.js","assets/react-simple-typewriter-ldWg-Jcc.js","assets/react-circular-progressbar-Bv_m6Qu3.js","assets/react-swipeable-views-Dinl_PID.js","assets/prop-types-BE-839HU.js","assets/warning-C20GYw-A.js","assets/react-swipeable-views-core-_gFpKrjL.js","assets/react-quill-BNkyPIyx.js","assets/quill-BGuB3LiM.js","assets/react-quill-umELyW85.css","assets/swiper-Br_ZBqpF.js","assets/swiper-BkL5OP5j.css","assets/react-responsive-carousel-4RjJB35h.js","assets/react-easy-swipe-hxMy2-lg.js","assets/classnames-DzlfNvT2.js","assets/react-responsive-carousel-B8O3cPIk.css","assets/@hookform-CWJHxq4r.js","assets/react-card-flip-DR_S2qIS.js","assets/react-cropper-Bexj_cHZ.js","assets/cropperjs-CH_N_9NM.js","assets/cropperjs-CHHJvAYm.css","assets/copy-to-clipboard-ljHEMGi2.js","assets/toggle-selection-BHUZwh74.js","assets/react-phone-number-input-B1gYhXcx.js","assets/libphonenumber-js-91HKQ04p.js","assets/input-format-DJEsyv6L.js","assets/country-flag-icons-D4lwPBzr.js","assets/react-phone-number-input-D5_Vhtc3.css","assets/react-scroll-8VRGKgkn.js","assets/lodash.throttle-C9QyS3WI.js","assets/react-hover-video-player-Czw9SE1t.js","assets/bootstrap-Dz-rzKL8.js","assets/bootstrap-CU22ohkc.css","assets/react-bootstrap-typeahead-CX7zhcFS.css","assets/normalize-RG3w-DAU.css","assets/AdminAMBOConsolidatedInvoice-oOPgwoda.js","assets/DownLoadBusiness-BxQZ-2Xb.js","assets/react-to-pdf-gKdSnELD.js","assets/DownLoadBusiness-BrqJ-dEu.css","assets/AdminLayout-BeOQ_WpD.js","assets/AdminDashboard-yaXoI_E0.js","assets/AdminFreeSubscription-Cht-MLyU.js","assets/AdminSearchUser-CGFQmnMp.js","assets/UserHistory-Ctt-X93m.js","assets/CouponHistory-9b_oVxgE.js","assets/AdminCouponCode-C5OnQCwz.js","assets/AdminMonthlyUpgrade-DDrtIzSR.js","assets/AdminSubscriptionProduct-BE3R8E3y.js","assets/AdminGSTOrdersDownload-BPCJFa1M.js","assets/json-as-xlsx-DPd2gkIo.js","assets/AdminRefundPayment-5qvbifIb.js","assets/MaintenanceSettings-DCVb2HlO.js","assets/Job-C7iolpCY.js","assets/propic-onbehalf-Bgnlc9lE.js","assets/ReportModal-3EJOcIdU.js","assets/CardHeader-XjpUacLs.js","assets/CardDescription-BCuBmQgR.js","assets/html-react-parser-DJFvwAoc.js","assets/html-dom-parser-B7eviPod.js","assets/domhandler-j2Vpuw4h.js","assets/domelementtype-AVFTcEpP.js","assets/react-property-CUOM3SWM.js","assets/style-to-js-CQeU1u2q.js","assets/style-to-object-BlgN26Ey.js","assets/inline-style-parser-D--Rb2MU.js","assets/ReferModal-Dje9UNFf.js","assets/OnBehalfofModal-BmS41aFL.js","assets/SwitchComponent-Bb7EPb-5.js","assets/job-
1BA_8vUMO.css","assets/fullpage-BFBFxBFI.css","assets/Save-pGoBCg5r.js","assets/Saved-D_t-v40w.js","assets/Refer-DR2bAafo.js","assets/No JPF Found-CnlzIHAG.js","assets/AppliedJobs-BKmCv_ga.js","assets/SavedJobs-BXQ9N1Jp.js","assets/PostJobForm-BWatYOVN.js","assets/MultiSelectDropdown-pPbtdWp0.js","assets/RepostJobForm-DnMyxL07.js","assets/OnBehalfDropRepost-DC0gpeD9.js","assets/FullJob-CS2h6zhH.js","assets/Requirement-CtSdOVD_.js","assets/OpenJobs-BnkwyQe9.js","assets/ClosedJobs-D1mAPvti.js","assets/JobsDashboard-8xkSm3H7.js","assets/DashboardHeader-Bgxe1bAa.js","assets/Project-CYpp7lOv.js","assets/suiteCase-CuZtcwmG.js","assets/StaffAgumentationModal-CLxRrjsL.js","assets/AppliedProjects-C5LTFhqp.js","assets/SavedProject-DqwWFZos.js","assets/OpenProjects-D4UL-bxO.js","assets/ClosedProjects-BS3thUBF.js","assets/FullProjectPage-dI6wxT9Z.js","assets/ProjectPostingFormContent-BTaNl-my.js","assets/ProjectRepostingForm-BMZjV7bO.js","assets/ProjectDashboard-BnxDYibV.js","assets/Fundraising-BdSHi0wo.js","assets/FundRaiseCard-CHjwgRzL.js","assets/FundingIconGreen-BDwPC4jS.js","assets/likeOutLine-DL9i6QtZ.js","assets/fund-B62XlC3u.css","assets/OpenFundraising-ByL8rep1.js","assets/FundRaiseCard-GmKWMbHU.js","assets/LikeBtn-CsOxE7WR.js","assets/ClosedFundraising-C4KjcwH5.js","assets/SingleFundraising-Cmxbz45e.js","assets/FundraisingForm-AD5NLlNn.js","assets/FundraisingRepost-BEMfI74j.js","assets/SavedFundraising-jI-04Xzf.js","assets/Investing-N1PTkbN4.js","assets/InvestingCard-BiUDVPaP.js","assets/InvestPitchModal-BlpV6F2k.js","assets/invest-CUr0ceg6.css","assets/OpenInvesting-C2fSANXv.js","assets/InvestingCard-D-Q7NDaB.js","assets/ClosedInvesting-WLgmBaxN.js","assets/singleInvesting-Cwj8zlOI.js","assets/InvestingDashboard-D6o58VM5.js","assets/SavedInvesting-BdxHL0jN.js","assets/AppliedInvesting-pQbkNJlP.js","assets/InvestingForm-CJFAUfQz.js","assets/InvestingRepost-CSXScy_3.js","assets/Notification-DKWn5ACM.js","assets/Cart2-DfPd3ky3.js","assets/Cart2-yc9TKWX5.css","assets/ProfileProjectSingle-CWXkdwWG.js","assets/Admin-BruO8yrL.js"])))=>i.map(i=>d[i]);
2import{j as e,r as b,a as _e}from"./react-DjP1ANNA.js";import{c as Hc,R as Gc,h as f0,a as j0}from"./react-dom-CH1r7ODx.js";import{u as ge,a as G,P as y0}from"./react-redux-CvGH35IU.js";import{L as is,N as us,B as b0}from"./react-router-dom-B-I8Kkrm.js";import{a as $a}from"./axios-BimPEqV4.js";import{c as v0}from"./redux-BECV-Nlq.js";import{s as gs,B as An,a as Ws,b as Ie,R as Ki,S as fn,G as je,A as ss,W as _0,M as qe,D as Os,T as Fe,C as Fs,c as xt,L as ws,d as fe,e as Qr,f as He,g as Tt,h as da,i as Ha,j as At,E as qa,k as Ys,l as Jc,m as Yc,n as ot,I as Yt,o as Zc,p as Qi,q as Je,r as Kc,t as Ns,P as Qc,u as Ga,K as xa,v as Ja,w as N0,x as En,F as Mn,y as Ya,z as Xi,H as w0,J as S0,N as eo,O as Va,Q as jn,U as Xc,V as k0,X as C0,Y as T0,Z as ni,_ as ed,$ as I0,a0 as A0,a1 as E0,a2 as M0,a3 as P0,a4 as ps,a5 as sd,a6 as gt,a7 as R0,a8 as L0,a9 as F0,aa as td,ab as B0,ac as ad,ad as nd,ae as sa,af as ta,ag as so,ah as Di,ai as id,aj as to,ak as od,al as Ht,am as O0,an as Xr,ao as U0,ap as D0,aq as el,ar as sl,as as q0,at as V0,au as z0,av as W0,aw as tl,ax as $0,ay as H0,az as G0,aA as J0,aB as _s,aC as fs,aD as Y0,aE as Z0,aF as K0,aG as Q0,aH as X0,aI as eg,aJ as sg,aK as tg,aL as ag,aM as ng,aN as ig}from"./@mui-Cpwdqv5S.js";import{d as rd,F as og,R as rg,P as lg,a as cg,b as dg,c as mg,p as hg,e as ug,f as pg}from"./redux-persist-C5kDgR2m.js";import{c as gg}from"./@reduxjs-Cpep842i.js";import{l as xg}from"./socket.io-client-BGdex47s.js";import{H as ld,a as al}from"./react-helmet-async-BK4tB33I.js";import{R as fg}from"./react-ga4-vDwhweBP.js";import{_ as Ve,E as cd}from"./jspdf-BNIpv04V.js";import{B as aa,Q as ao}from"./react-toastify-mV4AXyxU.js";import{P as no}from"./@lottiefiles-BW4ya4wF.js";import{c as qi}from"./crypto-js-BQRu_zAZ.js";import{a as Mt,b as Cs,O as $s,e as ts,f as io,g as ce,h as rs}from"./react-router-BLLygtAF.js";import{q as we}from"./styled-components-Cz_yWE8X.js";import{I as Es}from"./react-infinite-scroll-component-zxdVSlM8.js";import{S as dd,w as yn}from"./react-chat-elements-DcSu28hc.js";import{p as fa}from"./dompurify-Bq0E5Q3l.js";import{E as md,a as hd,T as ud}from"./emoji-picker-react-C8AahYtu.js";import{a as Qe,C as xe,b as pd,c as Bs}from"./react-hook-form-BGrmxbtY.js";import{O as oo,b as ro}from"./otp-input-react-d_JYOq3_.js";import{S as gd}from"./react-select-CV5rslID.js";import{d as ma,u as jg,t as yg,i as bg}from"./dayjs-ByzvYeBt.js";import{J as xd}from"./jszip-BlU_Vd2G.js";import{F as vg}from"./file-saver-B72EZ2em.js";import{l as fd}
2from"./react-to-print-Y8s0l9m2.js";import jd from"./html2canvas-CBrSDip1.js";import{u as yd}from"./@react-google-maps-mug9B72a.js";import{l as lo}from"./lodash-pQOYHdgg.js";import{T as _g}from"./react-simple-typewriter-ldWg-Jcc.js";import{C as Ng,b as wg,a as Sg}from"./react-circular-progressbar-Bv_m6Qu3.js";import{S as kg}from"./react-swipeable-views-Dinl_PID.js";import{P as ii}from"./prop-types-BE-839HU.js";import{R as bd}from"./react-quill-BNkyPIyx.js";import{S as co,N as Cg,P as Tg,a as Ig,A as Ag,b as mo,c as vd}from"./swiper-Br_ZBqpF.js";import{j as Eg}from"./react-responsive-carousel-4RjJB35h.js";import{s as _d}from"./@hookform-CWJHxq4r.js";import{_ as Mg}from"./react-card-flip-DR_S2qIS.js";import{l as Pg}from"./react-cropper-Bexj_cHZ.js";import"./cropperjs-CH_N_9NM.js";import{c as nl}from"./copy-to-clipboard-ljHEMGi2.js";import{P as Zt}from"./react-phone-number-input-B1gYhXcx.js";import{L as Rg}from"./react-scroll-8VRGKgkn.js";import{H as Lg}from"./react-hover-video-player-Czw9SE1t.js";/* empty css                                  */import"./bootstrap-Dz-rzKL8.js";/* empty css                      */import"./@babel-DLSbV39L.js";import"./use-sync-external-store-Bv2BUH2l.js";import"./@remix-run-yqlN7Vj_.js";import"./react-is-DcfIKM1A.js";import"./clsx-B-dksMZM.js";import"./react-transition-group-CxNLX-ix.js";import"./@emotion-BMnXlmzl.js";import"./hoist-non-react-statics-B-49tuQ9.js";import"./stylis-FDnFs_-n.js";import"./@popperjs-BQBsAJpH.js";import"./jss-CFGRwE_1.js";import"./is-in-browser-I-S1O4Zl.js";import"./jss-plugin-rule-value-function-BFRIntEn.js";import"./jss-plugin-global-BYzrZYyJ.js";import"./jss-plugin-nested-D_ejpMkQ.js";import"./jss-plugin-camel-case-B3itHn0h.js";import"./hyphenate-style-name-HOLnhz8K.js";import"./jss-plugin-default-unit-DI8ZotHi.js";import"./jss-plugin-vendor-prefixer-CJNl0PRb.js";import"./css-vendor-DxT3DpbQ.js";import"./jss-plugin-props-sort-D2CdvUsV.js";import"./redux-thunk-ClJT1hhx.js";import"./engine.io-client-BY_6WtMP.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./react-fast-compare-CbukUWDo.js";import"./invariant-CvSiY3tr.js";import"./shallowequal--AeqoEPp.js";import"./fflate-EnPhvkmS.js";import"./@e965-BR7518fZ.js";import"./flairup-CpvKgcza.js";import"./@floating-ui-D6mDMy8Y.js";import"./use-isomorphic-layout-effect-f5bfSEtN.js";import"./memoize-one-BdPwpGay.js";import"./warning-C20GYw-A.js";import"./react-swipeable-views-core-_gFpKrjL.js";import"./quill-BGuB3LiM.js";import"./react-easy-swipe-hxMy2-lg.js";import"./classnames-DzlfNvT2.js";import"./toggle-selection-BHUZwh74.js";import"./libphonenumber-js-91HKQ04p.js";import"./input-format-DJEsyv6L.js";import"./country-flag-icons-D4lwPBzr.js";import"./lodash.throttle-C9QyS3WI.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function a(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=a(n);fetch(n.href,r)}})();const Rs=()=>{let s=localStorage.getItem("token");return s=s?JSON.parse(s):{},s||{}},Fg=s=>{let t=Rs(),a=t.userDetails;a={...a,avatar:s},t={...t,userDetails:a},localStorage.setItem("token",JSON.stringify(t))},Bg="SET_ALERT",Og="REMOVE_ALERT",Ug="PREFERENCE",Nd="ONBOARD_SUCCESS",wd="CVDP_UPLOAD",Sd="LOGIN_SUCCESS",ho="LOGOUT",uo="GET_PERMISSION_SUCCESS",kd="NEW_ADMIN_ADDED",Cd="ADMIN_UPDATED",Td="ADMIN_DELETED",Dg="USER_LOADED",Id="JOBS_GET_SUCCESS",Ad="REVIEW_JOBS",Ed="JOBS_TAB",Md="TOGGLE_LOADERS",Pd="USER_SAVED_JOBS",Rd="UPDATE_JOB_AFTER_APPLY",qg="SAVED_JOB_IDS",Ld="TOGGLE_SAVE_JOB",Fd="JOB_DASHBOARD_SUCCESS",Bd="CLEAR_JOBS_FILTER",Od="CLEAR_PROJECTS_FILTER",Ud="CLEAR_FUNDRAISINGS_FILTER",Dd="CLEAR_INVESTINGS_FILTER",qd="REPORT_JOB",Vd="REPORT_FUND",zd="REPORT_PROJECT",Wd="REPORT_INVEST",Vg="NOTICE_PERIOD_FILTER",$d="EXPERIENCE_FILTER",Hd="SALARY_FILTER",Gd="DESIGNATION_FILTER",Jd="LOCATION_FILTER",Yd="SKILL_FILTER_JOB",Zd="NOTINTEREST_CLOSE_JOB",zg="POSTED_BY_JOBS",Wg="JOB_RATING_FILTER",$g="PROJECT_RATING_FILTER",Hg="FUNDRAISING_RATING_FILTER",Gg="INVESTING_RATING_FILTER",Kd="PROJECT_GET_SUCCESS",Qd="PROJECTS_TAB",Xd="PROJECT_TOGGLE_LOADERS",Jg="CLOSED_PROJECTS",em="USER_SAVED_PROJECTS",sm="PROJECT_DASHBOARD_SUCCESS",tm="UPDATE_PROJECT_AFTER_APPLY",Yg="SAVED_PROJECT_IDS",am="TOGGLE_SAVE_PROJECT",nm="REVIEW_PROJECTS",im="SECTOR_FILTER",om="TYPE_OF_PROJECT",Zg="POSTED_BY",rm="SKILL_FILTER",lm="NOTINTEREST_CLOSE_PROJECT",cm="FUNDRAISING_GET_SUCCESS",Kg="ALL_FUNDRAISINGS",dm="FUNDRAISING_TAB",mm="FUNDRAISING_TOGGLE_LOADERS",Qg="SAVED_FUNDRAISING",hm="USER_SAVED_FUNDRAISINGS",um="TOGGLE_SAVE_FUNDRAISING",Xg="CLOSED_FUNDRAISING",pm="TOGGLE_LIKE_FUNDRAISING",gm="SIZE_FILTER_FR",xm="STAGE_FILTER_FR",fm="SECTOR_FILTER_FR",jm="NOTINTEREST_CLOSE_FUND",ex="UNSAVE_FROM_SAVED_FUNDRAISING",ym="REVIEW_FUNDRAISE",bm="FUNDRAISING_RANGE",sx="ALL_INVESTINGS",vm="INVESTING_GET_SUCCESS",_m="INVESTINGS_TAB",Nm="TOGGLE_INVESTING_LOADERS",wm="USER_SAVED_INVESTINGS",tx="SAVED_INVESTING_IDS",Sm="TOGGLE_SAVE_INVESTING",km="INVESTING_DASHBOARD_SUCCESS",Cm="STAGE_FILTER_INV",Tm="SECTOR_FILTER_INV",Im="NOTINTEREST_CLOSE_INVESTING",Am="REVIEW_INVESTING",Em="INVESTMENT_RANGE",Mm="GET_PROFILE_SUCCESS",Pm="UPDATE_PROFILE_SUCCESS",ax="UPDATE_FRIEND_IN_PROFILE",Rm="UPDATE_PROFILE_FRIEND_LIST",Lm="CVDP_UPLOAD_PROFILE",nx="UPDATE_USER_DETAIL",ix="TOGGLE_PROFILE_LOADERS",Fm="UPDATE_NOTIFICATION_COUNT",ox="UPDATE_GST_DETAILS",Bm="GET_REVIEWS_SUCCESS",Om="REVIEWS_LOADING_TRUE",Um="REVIEWS_LOADING_FALSE",Dm="GET_SUBSCRIPTION_SUCCESS",qm="GET_CURRENT_PLAN",Vm="ADD_NEW_ADMIN",zm="GET_MY_ADMINS_SUCCESS",Wm="REMOVE_ADMIN",$m="MY_AMBOCHAT",Hm="UPDATE_AMBOCHAT",Gm="ADD_NEW_AMBOCHAT",Jm="DELETE_AMBOCHAT",Ym="UPDATE_PROVIDER_AMBOCHAT",Zm="UPDATE_PROVIDER_STATUS",Km="UPDATE_PROVIDER_PAYMENT",Qm="CONVERSATIONS_GET_SUCCESS",Xm="CONVERSATIONS_CREATE",eh="UPDATE_CONVERSATION_STATUS",sh="DELETE_A_CONVERSATION",th="CONVERSATIONS_UNREAD_ZERO",ah="UPDATE_LAST_MESSAGE",nh="MESSAGES_GET_SUCCESS",ih="ADD_MESSAGE",oh="DEL_CONVO_MESSAGES",po="REPLACE_TEMP_MESSAGE",rh="SET_TYPING",lh="CLEAR_TYPING",ch="MARK_MESSAGE_DELIVERED",dh="GET_FOLLOW_USER",mh="GET_FOLLOWING_USER",hh="GET_ONLINE_USERS",uh="UNFOLLOW_USER",ph="ADD_USER_FOLLOW_LIST",gh="UPDATE_MY_FRIENDS",xh="UPDATE_BLOCKED_LIST",fh="UPDATE_INCOMING_PENDING_LIST",rx="UPDATE_AT_RT",jh="GET_CART_SUCCESS",yh="CART_REMOVE_SUCCESS",bh="UPDATE_CART_SUCCESS",vh="UPDATE_CART_ITEMS",_h="NOTIFICATIONS_GET_SUCCESS",Nh="ADD_A_NOTIFICATION",wh="UPDATE_A_NOTIFICATION",Sh="REMOVE_A_NOTIFICATION",lx="TOGGLE_NOTIFY_LOADERS",kh="SEARCH_RESULTS",Ch="PRO_SEARCH_RESULTS",Th="ACCOUNT_TYPE_FILTER",Ih="ABOUT_FILTER",Ah="PRO_READY",Eh="SEARCH_LOADER_TRUE",cx=[];function dx(s=cx,t){const{type:a,payload:i}=t;switch(a){case Bg:return[...s,i];case Og:return s==null?void 0:s.filter(n=>n.id!==i);default:return s}}var zc,Wc,$c;const il={token:((zc=Rs())==null?void 0:zc.accessToken)??null,refreshToken:((Wc=Rs())==null?void 0:Wc.refreshToken)??null,isAuthenticated:null,verified:!1,loading:!1,user:null,admins:[],permissions:[],userDetails:(($c=Rs())==null?void 0:$c.userDetails)??{}},mx=(s=il,t)=>{var n,r,l,c,o;const{type:a,payload:i}=t;switch(a){case Dg:return{...s,isAuthenticated:!0,loading:!1,user:i.userId,verified:i.verified,userDetails:{...s==null?void 0:s.userDetails,...i.userDetails}};case Sd:const{accessToken:p,refreshToken:h,userId:d,verified:u,userDetails:m,signinData:f}=i;return localStorage.setItem("token",JSON.stringify(f)),{...s,user:d,isAuthenticated:!0,verified:u,loading:!1,token:p,userDetails:m,refreshToken:h};case Nd:case rx:let v={...s,isAuthenticated:!0};return v.token=i.accessToken,v.refreshToken=i.refreshToken,i.userDetails&&(v.userDetails=i.userDetails),i.userId&&(v.user=i.userId),i.verified!==void 0&&(v.verified=i.verified),localStorage.setItem("token",JSON.stringify(i)),v;case ho:return il;case kd:const{roleToAdd:N}=i;let _=[...s==null?void 0:s.permissions,N];return localStorage.setItem("permissions",JSON.stringify(_)),{...s,permissions:_};case Cd:const{roleToUpdate:x}=i;let j=s.permissions,I=j==null?void 0:j.filter(ie=>ie._id===x._id);return I[0].permissions=x.permissions,localStorage.setItem("permissions",JSON.stringify([...j,...I])),{...s,permissions:j};case Td:const{roleToDelete:w}=i;let y=s.permissions,k=y==null?void 0:y.filter(ie=>ie._id!==w);return localStorage.setItem("permissions",JSON.stringify(k)),{...s,permissions:k};case nx:return{...s,userDetails:i.userDetails};case uo:const{permissions:S=[]}=i;return S!=null&&S.length&&localStorage.setItem("permissions",JSON.stringify(S)),{...s,permissions:S};case ox:return{...s,userDetails:i.userDetails};case wd:const{dataUrl:g,name:E}=i;let C={...s.userDetails,[E]:g[E],unseenNotifications:g.unseenNotifications},T=Rs();return T.userDetails[E]=g[E],T.userDetails.unseenNotifications=g.unseenNotifications,localStorage.setItem("token",JSON.stringify(T)),{...s,userDetails:C};case gh:const{getAllFriends:A}=i;let R=s.userDetails;R={...R,friends:A};let P=Rs();return P.userDetails.friends=A,localStorage.setItem("token",JSON.stringify(P)),{...s,userDetails:R};case ph:const{followObj:O,updateType:M}=i;let L=s.userDetails;if(M==="PendingAdd"){let ie=[...L.pendingRequest,O],Y=Rs();Y.userDetails.pendingRequest=[...new Set(ie)],localStorage.setItem("token",JSON.stringify(Y)),L={...L,pendingRequest:[...new Set(ie)]}}if(M==="PendingRemove"){let ie=(n=L==null?void 0:L.pendingRequest)==null?void 0:n.filter(pe=>pe!==O),Y=Rs();Y.userDetails.pendingRequest=ie,localStorage.setItem("token",JSON.stringify(Y)),L={...L,pendingRequest:ie}}if(M==="IncomingAdd"){let ie=[...L.incomingRequests,O],Y=Rs();Y.userDetails.incomingRequests=[...new Set(ie)],localStorage.setItem("token",JSON.stringify(Y)),L={...L,incomingRequests:[...new Set(ie)]}}if(M==="IncomingRemove"){let ie=(r=L==null?void 0:L.incomingRequests)==null?void 0:r.filter(pe=>pe!==O),Y=Rs();Y.userDetails.incomingRequests=ie,localStorage.setItem("token",JSON.stringify(Y)),L={...L,incomingRequests:ie}}if(M==="friendAdd"){let ie=[...new Set([...L.friends,O])],Y=(l=L==null?void 0:L.incomingRequests)==null?void 0:l.filter(Ce=>Ce!==(O==null?void 0:O._id)),pe=(c=L==null?void 0:L.pendingRequest)==null?void 0:c.filter(Ce=>Ce!==(O==null?void 0:O._id)),me=Rs();me.userDetails.friends=ie,me.userDetails.pendingRequest=pe,me.userDetails.incomingRequests=Y,localStorage.setItem("token",JSON.stringify(me)),L={...L,friends:ie,pendingRequest:pe,incomingRequests:Y}}return{...s,userDetails:L};case uh:const{idToRemove:F,notCount:U}=i;let Z=s.userDetails;Z.unseenNotifications=U;let ne=(o=Z==null?void 0:Z.friends)==null?void 0:o.filter(ie=>ie._id!==F),K={...s.userDetails,friends:ne},te=Rs();return te.userDetails.friends=ne,te.userDetails.unseenNotifications=U,localStorage.setItem("token",JSON.stringify(te)),{...s,userDetails:K};case xh:const{blockeds:q}=i;let H=Rs();H.userDetails.blockedIds=q==null?void 0:q.blockedIds,H.userDetails.unseenNotifications=q==null?void 0:q.unseenNotifications,q.newAccessToken&&(H.accessToken=q==null?void 0:q.newAccessToken),localStorage.setItem("token",JSON.stringify(H));const X={...s.userDetails,blockedIds:q==null?void 0:q.blockedIds,unseenNotifications:q==null?void 0:q.unseenNotifications};return{...s,token:q!=null&&q.newAccessToken?q.newAccessToken:s.token,userDetails:X};case fh:const{incomingIds:ee,pendingIds:se}=i;let ae={...s.userDetails,incomingRequests:ee,pendingRequest:se};return{...s,userDetails:ae};case Fm:const{updatecount:B}=i;let W=s;W.userDetails.unseenNotifications=B;let Q=Rs();return Q.userDetails.unseenNotifications=B,localStorage.setItem("token",JSON.stringify(Q)),{...W};default:return s}},ol={jobs:[],savedJobs:[],singleJob:{},savedAppliedJobIds:{savedIds:[],appliedIds:[],flag:!1},filters:{noticePeriod:[],experience:[],rating:[],salary:[],designation:[],location:[],ppostedBy:[],skills:[],searchedKeywords:{designation:"",location:"",skills:""}}
2,pageNo:1,totalPages:1,loading:!1,sortDesc:!1},hx=(s=ol,t)=>{const{type:a,payload:i}=t;switch(a){case Id:{const{jobs:n,currentPage:r,totalPages:l}=i;return{...s,jobs:r>1?[...s.jobs,...n]:n,pageNo:r,totalPages:l,loading:!1}}case Bd:return{...s,filters:ol.filters};case Ad:case qd:return ux(s,i);case Ed:{const{tab:n}=i;return{...s,tab:n}}case Md:return{...s,loading:!s.loading};case Rd:{const{job:n}=i;return{...s,jobs:s.jobs.filter(r=>r._id!==n._id)}}case Zd:{const{jobId:n}=i;return{...s,jobs:s.jobs.filter(r=>r._id!==n),savedJobs:s.savedJobs.filter(r=>r._id!==n)}}case Ug:{const{value:n}=i;return{...s,sortDesc:n==="Latest Jobs"}}case Fd:{const{jobsDashboard:n}=i;return{...s,singleJob:n}}case Vg:{const{noticePeriodFilter:n}=i;return{...s,filters:rl(s.filters,"noticePeriod",n)}}case $d:{const{experienceFilter:n}=i;return{...s,filters:{...s.filters,experience:n}}}case Wg:{const{ratingFilter:n}=i;return{...s,filters:rl(s.filters,"rating",n)}}case Hd:{const{salaryFilter:n}=i;return{...s,filters:{...s.filters,salary:n}}}case Gd:{const{values:n,searchKey:r}=i;return{...s,filters:{...s.filters,designation:n,searchedKeywords:{...s.filters.searchedKeywords,designation:r}}}}case Jd:{const{values:n,searchKey:r}=i;return{...s,filters:{...s.filters,location:n,searchedKeywords:{...s.filters.searchedKeywords,location:r}}}}case qg:{const{savedJobs:n,appliedJobs:r}=i;return{...s,savedAppliedJobIds:{savedIds:n,appliedIds:r,flag:!0}}}case Pd:{const{jobs:n,currentPage:r,totalPages:l}=i;return{...s,savedJobs:r>1?[...s.savedJobs,...n]:n,pageNo:r,totalPages:l,loading:!1}}case Ld:{const{jobid:n,user:r,action:l,loc:c}=i;return{...s,jobs:ll(s.jobs,n,r,l),savedJobs:ll(s.savedJobs,n,r,l),singleJob:s.singleJob._id===n?px(s.singleJob,r,l):s.singleJob}}case Yd:{const{values:n,searchKey:r}=i;return{...s,filters:{...s.filters,skills:n,searchedKeywords:{...s.filters.searchedKeywords,skills:r}}}}case zg:{const{postedByJobs:n}=i;return{...s,filters:{...s.filters,ppostedBy:n}}}default:return s}},ux=(s,t)=>{const{userid:a,jobId:i,type:n}=t,r=p=>p.map(h=>h._id===i?n==="review"?{...h,reviewedBy:[...h.reviewedBy,a]}:{...h,reportedBy:[...h.reportedBy,a]}:h),l=r(s.jobs),c=r(s.savedJobs),o=s.singleJob._id===i?n==="review"?{...s.singleJob,reviewedBy:[...s.singleJob.reviewedBy,a]}:{...s.singleJob,reportedBy:[...s.singleJob.reportedBy,a]}:s.singleJob;return{...s,jobs:l,savedJobs:c,singleJob:o}},rl=(s,t,a)=>{const i={...s};return i[t].includes(a)?i[t]=i[t].filter(n=>n!==a):i[t].push(a),i},ll=(s,t,a,i,n)=>s.map(r=>{if(r._id===t){if(i==="save")return r.jobSavedBy.includes(a)?r:{...r,jobSavedBy:[...r.jobSavedBy,a]};if(i==="unsave")return{...r,jobSavedBy:r.jobSavedBy.filter(l=>l!==a)}}return r}),px=(s,t,a)=>a==="save"?s.jobSavedBy.includes(t)?s:{...s,jobSavedBy:[...s.jobSavedBy,t]}:a==="unsave"?{...s,jobSavedBy:s.jobSavedBy.filter(i=>i!==t)}:s,cl={projects:[],savedProjects:[],singleProject:{},savedAppliedProjectIds:{savedIds:[],appliedIds:[],flag:!1},filters:{sector:[],skills:[],ppostedBy:[],engagementType:[],noOfResource:0,searchedKeywords:{sector:"",skills:""},rating:[]},pageNo:1,totalPages:1,loading:!1,sortDesc:!1},gx=(s=cl,t)=>{const{type:a,payload:i}=t;switch(a){case Kd:return xx(s,i);case Od:return{...s,filters:cl.filters};case nm:case zd:return fx(s,i);case em:return jx(s,i);case Qd:return{...s,tab:i.tab};case Xd:return{...s,loading:!s.loading};case sm:return{...s,singleProject:i.projectDashboard};case tm:return{...s,projects:s.projects.filter(n=>n._id!==i.project._id)};case lm:return{...s,projects:s.projects.filter(n=>n._id!==i.projectId),savedProjects:s.savedProjects.filter(n=>n._id!==i.projectId)};case Yg:return{...s,savedAppliedProjectIds:{savedIds:i.savedProjects,appliedIds:i.appliedProjects,flag:!0}};case im:return{...s,filters:{...s.filters,sector:i.values,searchedKeywords:{...s.filters.searchedKeywords,sector:i.searchKey}}};case om:return{...s,filters:{...s.filters,engagementType:i.engagementType,noOfResource:i.engagementType.includes("StaffAugmentation")&&(i!=null&&i.noOfResource)?i.noOfResource:0}};case am:return yx(s,i);case $g:return bx(s,i);case Zg:return{...s,filters:{...s.filters,ppostedBy:i.postedByFilter}};case rm:return{...s,filters:{...s.filters,skills:i.values,searchedKeywords:{...s.filters.searchedKeywords,skills:i.searchKey}}};default:return s}},xx=(s,t)=>{const{projects:a,currentPage:i,totalPages:n}=t;return{...s,projects:i>1?[...s.projects,...a]:a,pageNo:i,totalPages:n,loading:!1}},fx=(s,t)=>{const{userid:a,projectId:i,type:n}=t,r=p=>p.map(h=>h._id===i?n==="review"?{...h,reviewedBy:[...h.reviewedBy,a]}:{...h,reportedBy:[...h.reportedBy,a]}:h),l=r(s.projects),c=r(s.savedProjects),o=s.singleProject._id===i?n==="review"?{...s.singleProject,reviewedBy:[...s.singleProject.reviewedBy,a]}:{...s.singleProject,reportedBy:[...s.singleProject.reportedBy,a]}:s.singleProject;return{...s,projects:l,savedProjects:c,singleProject:o}},jx=(s,t)=>{const{projects:a,currentPage:i,totalPages:n}=t;return{...s,savedProjects:i>1?[...s.savedProjects,...a]:a,pageNo:i,totalPages:n,loading:!1}},yx=(s,t)=>{const{projectid:a,user:i,action:n,loc:r}=t,l=(h,d,u)=>{const m=u==="save"?[...new Set([...h.projectSavedBy,d])]:h.projectSavedBy.filter(f=>f!==d);return{...h,projectSavedBy:m}};let c=s.projects.map(h=>h._id===a?l(h,i,n):h),o=s.savedProjects.map(h=>h._id===a?l(h,i,n):h);r==="saved"&&n==="unsave"&&(o=o.filter(h=>h._id!==a));let p=s.singleProject._id===a?l(s.singleProject,i,n):s.singleProject;return{...s,projects:c,savedProjects:o,singleProject:p}},bx=(s,t)=>{const{ratingFilter:a}=t,i=s.filters.rating.includes(a)?s.filters.rating.filter(n=>n!==a):[...s.filters.rating,a];return{...s,filters:{...s.filters,rating:i},flag:!1}},vx={myAdmins:[],adminsFor:[],users:[],loading:!1,error:null},_x=(s=vx,t)=>{var n;const{type:a,payload:i}=t;switch(a){case Vm:const{roleToAdd:r}=i;let l=[...s.myAdmins,r];return{...s,myAdmins:l};case zm:const{myAdmins:c}=i;return{...s,myAdmins:c};case Wm:const{permissionId:o}=i;let p=(n=s.myAdmins)==null?void 0:n.filter(h=>h._id!==o);return{...s,myAdmins:p};default:return s}},Nx={myAmboChats:[],serviceProviderChats:[],serviceProvider:{freshProvi
2der:!1,subscribedProvider:!1,futureExpiryDate:null}},wx=(s=Nx,t)=>{var n,r;const{type:a,payload:i}=t;switch(a){case $m:const{historyChats:l,mySPChats:c}=i;return{...s,serviceProviderChats:c,myAmboChats:l};case Gm:const{newChat:o}=i;let p=[o,...s.myAmboChats];return{...s,myAmboChats:p};case Hm:const{updatedChat:h}=i;let d=(n=s.myAmboChats)==null?void 0:n.map(I=>I._id===h._id?h:I);return{...s,myAmboChats:d};case Jm:const{idToDelete:u}=i;let m=(r=s.myAmboChats)==null?void 0:r.filter(I=>I._id!==u);return{...s,myAmboChats:m};case Ym:const{data:f}=i;return{...s,serviceProviderChats:[f],serviceProvider:{...s.serviceProvider,futureExpiryDate:null}};case Zm:const{a:v,orders:N}=i;return N===0?{...s,serviceProvider:{...s.serviceProvider,freshProvider:!0}}:v!=null&&v.isRecentPayment?{...s,serviceProvider:{...s.serviceProvider,subscribedProvider:!0,futureExpiryDate:v==null?void 0:v.expiryDate,freshProvider:!1}}:{...s,serviceProvider:{...s.serviceProvider,subscribedProvider:!1,futureExpiryDate:null,freshProvider:!1}};case Km:const{paidAt:_}=i,x=new Date(_),j=new Date(_);return j.setDate(x.getDate()+30),{...s,serviceProvider:{...s.serviceProvider,subscribedProvider:!0,futureExpiryDate:j,freshProvi
2der:!1}};default:return s}},Sx={teamId:null,userProfile:null,loading:!1},kx=(s=Sx,t)=>{const{type:a,payload:i}=t;switch(a){case Mm:return{...s,userProfile:i.userProfile};case Rm:{const{followObj:n,friendAction:r}=i,l=s.userProfile.user;let c={...l};return r==="PendingAdd"?c.pendingRequest=[...new Set([...l.pendingRequest||[],n])]:r==="PendingRemove"?c.pendingRequest=(l.pendingRequest||[]).filter(o=>o!==n):r==="IncomingAdd"?c.incomingRequests=[...new Set([...l.incomingRequests||[],n])]:r==="IncomingRemove"?c.incomingRequests=(l.incomingRequests||[]).filter(o=>o!==n):r==="friendAdd"&&(c.friends=[...new Set([...l.friends||[],n])],c.incomingRequests=(l.incomingRequests||[]).filter(o=>o!==n._id),c.pendingRequest=(l.pendingRequest||[]).filter(o=>o!==n._id)),{...s,userProfile:{...s.userProfile,user:c}}}case Pm:{const{profileToUpdate:n,dataInfo:r}=i;return{...s,userProfile:{...s.userProfile,[r]:n}}}case Lm:{const{dataUrl:n,location:r}=i;return{...s,userProfile:{...s.userProfile,user:{...s.userProfile.user,[r]:n}}}}case ix:return{...s,loading:!s.loading};default:return s}},Cx={userReview:null,loading:!1},Tx=(s=Cx,t)=>{const{type:a,payload:i}=t;switch(a){case Bm:const{userReview:n}=i;return{...s,userReview:n};case Om:return{...s,userReview:null,loading:!0};case Um:return{...s,loading:!1};default:return s}},dl={fundraisings:[],savedFundraisings:[],singleFundraising:{},savedLikedSuperLikedFundraisingIds:{savedIds:[],likedIds:[],superLikedIds:[],flag:!1},filters:{companySize:[],stage:[],sortByLatest:[],sector:[],reviews:[],rating:[],fundRange:[],searchedKeywords:{sector:""}},pageNo:1,totalPages:1,tab:Kg,loading:!1,sortDesc:!1},Ix=(s=dl,t)=>{const{type:a,payload:i}=t;switch(a){case cm:{const{fundraisings:n,totalPages:r,currentPage:l}=i,c=s.fundraisings,o=l>1?[...c,...n]:n;return{...s,fundraisings:o,pageNo:l,totalPages:r,loading:!1}}case Ud:return{...s,filters:dl.filters};case bm:{const{fundRange:n}=i;return{...s,filters:{...s.filters,fundRange:n}}}case ym:{const{userid:n,fundId:r}=i,l=s.fundraisings.map(o=>o._id===r?{...o,reviewedBy:[...o.reviewedBy,n]}:o),c=s.savedFundraisings.map(o=>o._id===r?{...o,reviewedBy:[...o.reviewedBy,n]}:o);return{...s,fundraisings:l,savedFundraisings:c}}case Vd:{const{userid:n,fundId:r}=i,l=s.fundraisings.map(o=>o._id===r?{...o,reportedBy:[...o.reportedBy,n]}:o),c=s.savedFundraisings.map(o=>o._id===r?{...o,reportedBy:[...o.reportedBy,n]}:o);return{...s,fundraisings:l,savedFundraisings:c}}case dm:{const{tab:n}=i;return{...s,tab:n}}case mm:return{...s,loading:!s.loading};case hm:{const{savedFundraisings:n,currentPage:r,totalPages:l}=i,c=s.savedFundraisings;return{...s,savedFundraisings:r>1?[...c,...n]:n,pageNo:r,totalPages:l,loading:!1}}case jm:{const{fundId:n}=i,r=s.fundraisings.filter(c=>c._id!==n),l=s.savedFundraisings.filter(c=>c._id!==n);return{...s,fundraisings:r,savedFundraisings:l}}case pm:{const{fundId:n,user:r,typeOfLike:l,action:c}=i,o=s.fundraisings.map(p=>{if(p._id===n){if(c==="Like"&&l==="Like")return{...p,likedBy:p.likedBy.includes(r)?p.likedBy:[...p.likedBy,r]};if(c==="SuperLike"&&l==="Like")return{...p,superLikedBy:p.superLikedBy.includes(r)?p.superLikedBy:[...p.superLikedBy,r]};if(c==="Like"&&l==="UnLike")return{...p,likedBy:p.likedBy.filter(h=>h!==r)};if(c==="SuperLike"&&l==="UnLike")return{...p,superLikedBy:p.superLikedBy.filter(h=>h!==r)}}return p});return{...s,fundraisings:o}}case um:{const{fundid:n,user:r,action:l,loc:c}=i,o=d=>{if(d._id===n){if(l==="save")return{...d,savedBy:d.savedBy.includes(r)?d.savedBy:[...d.savedBy,r]};if(l==="unsave")return{...d,savedBy:d.savedBy.filter(u=>u!==r)}}return d};let p=s.fundraisings.map(o),h=s.savedFundraisings.map(o);if(c==="saved"&&l==="unsave"&&(h=h.filter(d=>d._id!==n)),s.singleFundraising._id===n){const d=o(s.singleFundraising);return{...s,fundraisings:p,savedFundraisings:h,singleFundraising:d}}return{...s,fundraisings:p,savedFundraisings:h}}case ex:{const{fundid:n}=i,r=s.savedFundraisings.filter(l=>l._id!==n);return{...s,savedFundraisings:r}}case Hg:{const{ratingFilter:n}=i,r=s.filters.rating.includes(n)?s.filters.rating.filter(l=>
2l!==n):[...s.filters.rating,n];return{...s,filters:{...s.filters,rating:r}}}case gm:{const{sizeFilterFR:n}=i;return{...s,filters:{...s.filters,companySize:n}}}case fm:{const{values:n,searchKey:r}=i;return{...s,filters:{...s.filters,sector:n,searchedKeywords:{...s.filters.searchedKeywords,sector:r}}}}case xm:{const{stageFilterFR:n}=i;return{...s,filters:{...s.filters,stage:n}}}default:return s}},ml={investings:[],savedInvestings:[],singleInvesting:{},savedAppliedInvestingIds:{savedIds:[],appliedIds:[],flag:!1},filters:{rating:[],stage:[],sector:[],investRange:[],searchedKeywords:{sector:""}},tab:sx,loading:!1,pageNo:1,totalPages:1},Ax=(s=ml,t)=>{const{type:a,payload:i}=t;switch(a){case vm:{const{investings:n,currentPage:r,totalPages:l}=i;return{...s,investings:r>1?[...s.investings,...n]:n,pageNo:r,totalPages:l,loading:!1}}case Dd:return{...s,filters:ml.filters};case Am:{const{userid:n,investId:r}=i,l=c=>c.map(o=>o._id===r?{...o,reviewedBy:[...o.reviewedBy,n]}:o);return{...s,investings:l(s.investings),savedInvestings:l(s.savedInvestings)}}case Wd:{const{userid:n,investId:r}=i,l=c=>c.map(o=>o._id===r?{...o,reportedBy:[...o.reportedBy,n]}:o);return{...s,investings:l(s.investings),savedInvestings:l(s.savedInvestings)}}case _m:{const{tab:n}=i;return{...s,tab:n}}case Nm:return{...s,loading:!s.loading};case wm:{const{investings:n,currentPage:r,totalPages:l}=i;return{...s,savedInvestings:r>1?[...s.savedInvestings,...n]:n,pageNo:r,totalPages:l,loading:!1}}case Im:{const{investId:n}=i;return{...s,investings:s.investings.filter(r=>r._id!==n),savedInvestings:s.savedInvestings.filter(r=>r._id!==n)}}case km:{const{investingDashboard:n}=i;return{...s,singleInvesting:n}}case tx:{const{savedInvestings:n,appliedInvestings:r}=i;return{...s,savedAppliedInvestingIds:{savedIds:n,appliedIds:r,flag:!0}}}case Sm:{const{investid:n,user:r,action:l,loc:c}=i,o=p=>p.map(h=>h._id===n?{...h,savedBy:l==="save"?[...new Set([...h.savedBy,r])]:h.savedBy.filter(d=>d!==r)}:h);return{...s,investings:c==="investings"?o(s.investings):s.investings,savedInvestings:c==="saved"?o(s.savedInvestings):s.savedInvestings,singleInvesting:s.singleInvesting._id===n?{...s.singleInvesting,savedBy:l==="save"?[...new Set([...s.singleInvesting.savedBy,r])]:s.singleInvesting.savedBy.filter(p=>p!==r)}:s.singleInvesting}}case Gg:{const{ratingFilter:n}=i,{rating:r}=s.filters;return{...s,filters:{...s.filters,rating:r.includes(n)?r.filter(l=>l!==n):[...r,n]}}}case Em:{const{investRange:n}=i;return{...s,filters:{...s.filters,investRange:n}}}case Cm:{const{stageFilterInv:n}=i;return{...s,filters:{...s.filters,stage:n}}}case Tm:{const{values:n,searchKey:r}=i;return{...s,filters:{...s.filters,sector:n,searchedKeywords:{...s.filters.searchedKeywords,sector:r}}}}default:return s}},Ex={stateNotifications:[],loading:!1,sortDesc:!1},Mx=(s=Ex,t)=>{var n;const{type:a,payload:i}=t;switch(a){case lx:return{...s,loading:!s.loading};case _h:const{notifications:r}=i;return localStorage.setItem("notifications",r==null?void 0:r.length),{...s,stateNotifications:r};case Nh:const{notification:l}=i;let c=[...s==null?void 0:s.stateNotifications,l];return{...s,stateNotifications:c};case Sh:const{notificationId:o}=i;let p=s==null?void 0:s.stateNotifications,h=p==null?void 0:p.filter(f=>f._id!==o);return{...s,stateNotifications:h};case wh:const{notId:d,user:u}=i;let m=(n=s==null?void 0:s.stateNotifications)==null?void 0:n.filter(f=>f._id===d);return m=m[0].receiverId.splice(u,1),{...s,stateNotifications:[...s==null?void 0:s.stateNotifications,...m]};default:return s}},Px={subscriptions:null,currentPlan:[],freeBie:[],loading:!1},Rx=(s=Px,t)=>{const{type:a,payload:i}=t;switch(a){case Dm:const{subscriptions:n}=i;return{...s,subscriptions:n};case qm:const{currentPlan:r,freeBie:l}=i;return{...s,currentPlan:r,freeBie:l};default:return s}},Lx={followUser:[],onlineUsers:[],followingUser:[]},Fx=(s=Lx,t)=>{const{type:a,payload:i}=t;switch(a){case dh:const{followUser:n}=i;return{...s,followUser:n};case mh:const{followingUser:r}=i;return{...s,followingUser:r};case hh:const{onlineUsers:l}=i;return{...s,onlineUsers:l};default:return s}},Bx={conversations:[],currentConversation:null,pageNo:1,totalPages:1,loading:!1,typingUsers:{}},Ox=(s=Bx,t)=>{var n;const{type:a,payload:i}=t;switch(a){case Qm:const{conversations:r,currentPage:l,totalPages:c}=i;return{...s,conversations:l!==1?[...s.conversations,...r]:[...r],pageNo:l,totalPages:c,loading:!1};case Xm:return{...s,conversations:[i,...s.conversations]};case th:const{converId:o,user:p,msgCount:h}=i;return{...s,conversations:s.conversations.map(j=>j._id===o?{...j,unReadCount:{...j.unReadCount,[p]:h}}:j)};case eh:const{convId:d,status:u}=i,m=(n=s.conversations)==null?void 0:n.map(j=>j._id===d?{...j,convoStatus:u}:j);return{...s,conversations:m};case ah:const{message:f,convoID:v,userLoggedIn:N,updatedConvStatus:_}=i;return{...s,conversations:s.conversations.map(j=>j._id===v?{...j,latestMessage:{body:f.body,createdAt:f.createdAt,_id:f._id},unReadCount:{...j.unReadCount,[N]:0},convoStatus:_}:j)};case sh:const{convoId:x}=i;return{...s,conversations:s.conversations.filter(j=>j._id!==x)};case rh:{const{userId:j,conversationId:I}=i,w=s.typingUsers[I]||[],y=w.includes(j)?w:[...w,j];return{...s,typingUsers:{...s.typingUsers,[I]:y}}}case lh:{const{userId:j,conversationId:I}=i,y=(s.typingUsers[I]||[]).filter(k=>k!==j);return{...s,typingUsers:{...s.typingUsers,[I]:y}}}case po:{const{convoId:j,tempId:I,newMessage:w}=t.payload,y=s[j];if(!y)return s;const k=y.latestMessage&&y.latestMessage._id===I;return{...s,[j]:{...y,latestMessage:k?{body:w.body,createdAt:w.createdAt,_id:w._id}:y.latestMessage}}}default:return s}},Ux={messages:[],pageNo:1,totalPages:1,loading:!1},Dx=(s=Ux,t)=>{var n,r,l,c;const{type:a,payload:i}=t;switch(a){case nh:const{messages:o,currentPage:p,totalPages:h,convoId:d}=i;return{...s,[d]:{messages:p!==1?(((n=s[d])==null?void 0:n.messages)||[]).concat(o):[...o],pageNo:p,totalPages:h,loading:!1}};case ih:const{message:u,convoID:m}=i,f=((r=s[m])==null?void 0:r.messages)||[],N=f.some(I=>
2I._id===u._id)?[...f]:[u,...f];return{...s,[m]:{...s[m],messages:N,loading:!1,pageNo:((l=s[m])==null?void 0:l.pageNo)||1,totalPages:((c=s[m])==null?void 0:c.totalPages)||1}};case oh:const{conId:_}=i,{[_]:x,...j}=s;return{...j};case po:{const{convoId:I,tempId:w,newMessage:y}=t.payload;return{...s,[I]:{...s[I],messages:s[I].messages.map(k=>k._id===w?y:k)}}}case ch:{const{messageId:I,deliveredBy:w,convoId:y}=t.payload,k=s[y];return k?{...s,[y]:{...k,messages:k.messages.map(S=>S._id===I?{...S,isDelivered:{...S.isDelivered,[w]:!0}}:S)}}:s}default:return s}},hl={products:[],userId:"",totalAmt:0,totalGst:0},qx=(s=hl,t)=>{const{type:a,payload:i}=t;switch(a){case vh:const{cartItems:n,totalAmount:r,totalGst:l}=i;return{...s,...{products:n,totalAmt:r,totalGst:l}};case jh:const{myCart:o}=i;return{...s,products:(o==null?void 0:o.products)||[],userId:(o==null?void 0:o.userId)||"",totalAmt:(o==null?void 0:o.totalAmount)||0,totalGst:(o==null?void 0:o.totalGst)||0};case yh:const{itemId:p}=i;let h=s.products,d=s.totalAmt,u=s.totalGst,m=h==null?void 0:h.filter(f=>f._id==p?(d-=f.quantity/f.units*f.price,u-=f.productGst,!1):!0);return{...s,products:m,totalAmt:d,totalGst:u};case bh:return hl;default:return s}},ul=(s,t)=>{if(s.length!==t.length)return!1;const a=new Set(s);return t.every(i=>a.has(i))},Vx={queryData:null,search:{profile:[],jobs:[],project:[],fundraising:[],investing:[]},proSearch:{filterChanged:!1,results:[],accountTypeFilter:[],aboutFilter:[],ready:!1,pageNo:1,totalPages:1},pageNo:1,totalPages:1,loading:!1},zx=(s=Vx,t)=>{const{type:a,payload:i}=t;switch(a){case Eh:return{...s,loading:!0};case kh:{const{searchresults:n,currentPage:r,totalPages:l,action:c,query:o}=i;return{...s,search:{...s.search,[c]:r>1?[...s.search[c],...n]:n},proSearch:{...s.proSearch,ready:!1},pageNo:r,totalPages:l,loading:!1,queryData:o}}case Ch:{const{prosearch:n,currentPage:r,totalPages:l}=i;return s.proSearch.filterChanged?{...s,proSearch:{...s.proSearch,results:n,pageNo:r,totalPages:l,filterChanged:!1,ready:!1},loading:!1}:{...s,proSearch:{...s.proSearch,results:r>1?[...s.proSearch.results,...n]:n,pageNo:r,totalPages:l,ready:!1},loading:!1}}case Th:{const{accountTypeFilter:n}=i;return ul(s.proSearch.accountTypeFilter,n)?s:{...s,proSearch:{...s.proSearch,accountTypeFilter:n,filterChanged:!0}}}case Ih:{const{aboutFilter:n}=i;return ul(s.proSearch.aboutFilter,n)?s:{...s,proSearch:{...s.proSearch,aboutFilter:n,filterChanged:!0}}}case Ah:return{...s,proSearch:{...s.proSearch,ready:!0}};default:return s}},pl=v0({alert:dx,auth:mx,jobs:hx,projects:gx,settings:_x,profile:kx,review:Tx,fundraising:Ix,investing:Ax,subscription:Rx,conversations:Ox,messages:Dx,follow:Fx,myCart:qx,notifys:Mx,search:zx,ambo:wx}),Wx=(s,t)=>t.type===ho?(rd.removeItem("persist:root"),pl(void 0,t)):pl(s,t),$x={key:"counter",storage:rd},Hx=hg($x,Wx),it=gg({reducer:Hx,middleware:s=>s({serializableCheck:{ignoredActions:[og,rg,lg,cg,dg,mg]}})}),go=s=>t=>{t({type:Dm,payload:{subscriptions:s}})},Mh=(s,t)=>a=>{a({type:qm,payload:{currentPlan:s,freeBie:t}})},f8=(s,t,a)=>i=>{i({type:Id,payload:{jobs:s,currentPage:t,totalPages:a}})},j8=(s,t,a)=>i=>{i({type:Pd,payload:{jobs:s,currentPage:t,totalPages:a}})},y8=({jobid:s,user:t,action:a,loc:i})=>n=>{n({type:Ld,payload:{jobid:s,user:t,action:a,loc:i}})},ht=s=>t=>{t({type:Ed,payload:{tab:s}})},bn=()=>s=>{s({type:Md})},b8=s=>t=>{t({type:Rd,payload:{job:s}})},v8=s=>t=>{t({type:Fd,payload:{jobsDashboard:s}})},Gx=()=>s=>{s({type:Bd})},Jx=s=>t=>{t({type:$d,payload:{experienceFilter:s}})},Yx=s=>t=>{t({type:Hd,payload:{salaryFilter:s}})},oi=(s,t)=>a=>{a({type:Gd,payload:{values:s,searchKey:t}})},ri=(s,t)=>a=>{a({type:Jd,payload:{values:s,searchKey:t}})},li=(s,t)=>a=>{a({type:Yd,payload:{values:s,searchKey:t}})},_8=s=>t=>{t({type:Zd,payload:{jobId:s}})},N8=(s,t)=>a=>{a({type:Ad,payload:{userid:s,jobId:t}})},w8=(s,t)=>a=>{a({type:qd,payload:{userid:s,jobId:t}})},S8=(s,t,a)=>i=>{i({type:Kd,payload:{projects:s,currentPage:t,totalPages:a}})},k8=(s,t,a)=>i=>{i({type:em,payload:{projects:s,currentPage:t,totalPages:a}})},C8=()=>s=>{s({type:Xd})},T8=({projectid:s,user:t,action:a,loc:i})=>n=>{n({type:am,payload:{projectid:s,user:t,action:a,loc:i}})},ut=s=>t=>{t({type:Qd,payload:{tab:s}})},I8=s=>t=>{t({type:tm,payload:{project:s}})},A8=s=>t=>{t({type:sm,payload:{projectDashboard:s}})},Zx=()=>s=>{s({type:Od})},Kx=(s,t)=>a=>{a({type:im,payload:{values:s,searchKey:t}}
2)},Qx=(s,t)=>a=>{a({type:om,payload:{engagementType:s,noOfResource:t}})},ci=(s,t)=>a=>{a({type:rm,payload:{values:s,searchKey:t}})},E8=s=>t=>{t({type:lm,payload:{projectId:s}})},M8=(s,t)=>a=>{a({type:nm,payload:{userid:s,projectId:t}})},P8=(s,t)=>a=>{a({type:zd,payload:{userid:s,projectId:t}})},Xx=s=>t=>{t({type:Vm,payload:{roleToAdd:s}})},R8=s=>t=>{t({type:zm,payload:{myAdmins:s}})},e2=s=>t=>{t({type:Wm,payload:{permissionId:s}})},Pn=s=>t=>{t({type:Mm,payload:{userProfile:s}})},ds=(s,t)=>a=>{a({type:Pm,payload:{profileToUpdate:s,dataInfo:t}})},ys=(s,t)=>a=>{a({type:Rm,payload:{followObj:s,friendAction:t}})},ha=s=>t=>{t({type:ax,payload:{friendToRemove:s}})},Rn=(s,t)=>a=>{a({type:Lm,payload:{dataUrl:s,location:t}})},Vi=s=>t=>{t({type:Bm,payload:{userReview:s}})},s2=()=>s=>{s({type:Om})},gl=()=>s=>{s({type:Um})},L8=()=>s=>{s({type:mm})},F8=(s,t,a)=>i=>{i({type:cm,payload:{fundraisings:s,totalPages:t,currentPage:a}})},B8=(s,t,a)=>i=>{i({type:hm,payload:{savedFundraisings:s,currentPage:t,totalPages:a}})},Jt=s=>t=>{t({type:dm,payload:{tab:s}})},O8=({fundid:s,user:t,action:a,loc:i})=>n=>{n({type:um,payload:{fundid:s,user:t,action:a,loc:i}})},U8=({fundId:s,user:t,typeOfLike:a,index:i,action:n})=>r=>{r({type:pm,payload:{fundId:s,user:t,typeOfLike:a,index:i,action:n}})},t2=()=>s=>{s({type:Ud})},a2=s=>t=>{t({type:gm,payload:{sizeFilterFR:s}})},n2=s=>t=>{t({type:xm,payload:{stageFilterFR:s}})},i2=s=>t=>{t({type:bm,payload:{fundRange:s}})},o2=(s,t)=>a=>{a({type:fm,payload:{values:s,searchKey:t}})},D8=s=>t=>{t({type:jm,payload:{fundId:s}})},q8=(s,t)=>a=>{a({type:ym,payload:{userid:s,fundId:t}})},V8=(s,t)=>a=>{a({type:Vd,payload:{userid:s,fundId:t}})},z8=(s,t,a)=>i=>{i({type:vm,payload:{investings:s,currentPage:t,totalPages:a}})},W8=({investid:s,user:t,action:a,loc:i})=>n=>{n({type:Sm,payload:{investid:s,user:t,action:a,loc:i}})},pt=s=>t=>{t({type:_m,payload:{tab:s}})},$8=()=>s=>{s({type:Nm})},H8=(s,t,a)=>i=>{i({type:wm,payload:{investings:s,currentPage:t,totalPages:a}})},G8=s=>t=>{t({type:km,payload:{investingDashboard:s}})},r2=()=>s=>{s({type:Dd})},l2=s=>t=>{t({type:Em,payload:{investRange:s}})},c2=s=>t=>{t({type:Cm,payload:{stageFilterInv:s}})},d2=(s,t)=>a=>{a({type:Tm,payload:{values:s,searchKey:t}})},J8=s=>t=>{t({type:Im,payload:{investId:s}})},Y8=(s,t)=>a=>{a({type:Am,payload:{userid:s,investId:t}})},Z8=(s,t)=>a=>{a({type:Wd,payload:{userid:s,investId:t}})},xo=(s,t,a)=>i=>{i({type:Qm,payload:{conversations:s,currentPage:t,totalPages:a}})},qt=s=>t=>{t({type:Xm,payload:s})},m2=(s,t)=>({type:eh,payload:{convId:s,status:t}}),Ph=s=>t=>{t({type:sh,payload:{convoId:s}})},Rh=(s,t,a)=>i=>{i({type:th,payload:{converId:s,user:t,msgCount:a}})},ft=(s,t,a,i)=>n=>{n({type:ah,payload:{message:s,convoID:t,userLoggedIn:a,updatedConvStatus:i}})},Us=(s,t,a,i)=>n=>{n({type:nh,payload:{messages:s,currentPage:t,totalPages:a,convoId:i}})},jt=(s,t)=>a=>{a({type:ih,payload:{message:s,convoID:t}})},Lh=s=>t=>{t({type:oh,payload:{conId:s}})},Ln=s=>t=>{t({type:po,payload:s})},h2=(s,t,a)=>({type:ch,payload:{messageId:s,deliveredBy:t,convoId:a}}),Fh=s=>t=>{t({type:jh,payload:{myCart:s}})},K8=(s,t,a)=>i=>{i({type:vh,payload:{cartItems:s,totalAmount:t,totalGst:a}})},Q8=s=>t=>{t({type:yh,payload:{itemId:s}})},u2=()=>s=>{s({type:bh,payload:{}})},X8=s=>t=>{t({type:_h,payload:{notifications:s}})},Ts=s=>t=>{t({type:Nh,payload:{notification:s}})},Bh=s=>t=>{t({type:Sh,payload:{notificationId:s}})},eT=(s,t)=>a=>{a({type:wh,payload:{notId:s,user:t}})},p2=s=>t=>{t({type:dh,payload:{followUser:s}})},Oh=s=>t=>{t({type:mh,payload:{followingUser:s}})},g2=s=>t=>{t({type:hh,payload:{onlineUsers:s}})},x2=s=>t=>{t({type:rh,payload:s})},f2=s=>t=>{t({type:lh,payload:s})},Uh=(s,t,a,i,n)=>r=>{r({type:kh,payload:{searchresults:s,currentPage:i,totalPages:n,action:t,query:a}})},xl=(s,t,a)=>i=>{i({type:Ch,payload:{prosearch:s,currentPage:t,totalPages:a}})},j2=s=>t=>{t({type:Th,payload:{accountTypeFilter:s}})},y2=s=>t=>{t({type:Ih,payload:{aboutFilter:s}})},Dh=()=>s=>{s({type:Ah})},qh=()=>s=>{s({type:Eh})},Vh=s=>t=>{t({type:$m,payload:s})},di=s=>t=>{t({type:Gm,payload:{newChat:s}})},b2=s=>t=>{t({type:Hm,payload:{updatedChat:s}})},v2=s=>t=>{t({type:Jm,payload:{idToDelete:s}})},zh=s=>t=>{t({type:Ym,payload:{data:s}})},_2=(s,t)=>a=>{a({type:Zm,payload:{a:s,orders:t}})},fo=s=>t=>{t({type:Km,payload:{paidAt:s}})},jo=998319,Ke=200,rt=201,N2=400,w2=401,S2=403,Wh="email",k2="mobile",$h="alljobs",Hh="appliedjobs",Gh="savedjobs",Jh="myjobs",C2="closedjobs",Yh="allprojects",Zh="appliedprojects",Kh="savedprojects",Qh="myprojects",Xh="allfundraisings",eu="myfundraisings",su="myinvestings",T2="closedinvestings",tu="allinvestings",I2="savedinvestings",A2="APP
2LIEDinvestings",mi=["Beginner","Intermediate","Expert"],fl=["Homegrown Company","Registered Company","College","Training Institute"],au=gs(An)(({theme:s,online:t})=>({"& .MuiBadge-badge":{backgroundColor:t?"#44b700":"#5a6466",color:t?"#44b700":"#5a6466",boxShadow:`0 0 0 2px ${s.palette.background.paper}`,"&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:t&&"ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}}})),Ua={textTransform:"none",backgroundColor:"var(--text-color-primary)",padding:"8px 16px",borderRadius:"25px",color:"var(--background-color)",fontSize:"12px",width:"max-content"},wt={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},St={...wt,boxShadow:24,p:4,borderRadius:"25px"},E2={...wt,p:4,borderRadius:"25px"},nu={xs:"95%",sm:"80%",md:"60%",lg:"45%"},Vt={default:"#1e1e1e",dark:"var(--card-surface-primary)",light:"#fff"},sT={...wt,width:450,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,margin:"auto",p:4},cs={...wt,backgroundColor:Vt.dark,borderRadius:{xs:4,sm:4,md:8,lg:6},width:{xs:"100%",sm:"90%",md:"60%",lg:"50%"},overflow:"hidden"},M2={...wt,backgroundColor:"#2c2c2c",borderRadius:{xs:4,sm:4,md:8,lg:6},width:{xs:"100%",sm:"35%",md:"35%",lg:"25%"},overflow:"hidden"},P2={...cs,width:{xs:"90%",sm:"80%",md:"50%",lg:"40%"},paddingY:3},iu={...St,width:{xs:"90%",sm:"60%",md:"40%",lg:"40%"},bgcolor:Vt.default},jl={...St,width:400,bgcolor:Vt.default},R2={...St,width:{xs:"100%",sm:"100%",md:"70%",lg:"50%"},bgcolor:Vt.default,p:2},L2={...St,width:{xs:"90%",sm:"60%",md:"40%",lg:"30%"},bgcolor:Vt.default,p:2},ja={...St,width:nu,bgcolor:Vt.default},F2={...wt,height:"80%",width:{xs:"90%",sm:"70%",md:"50%",lg:"30%"}},B2={...wt,width:{xs:"90%",sm:"70%",md:"50%",lg:"40%"}},O2={...St,width:{xs:"80%",sm:"60%",md:"60%",lg:"35%"},bgcolor:Vt.dark},U2={...St,width:{xs:"80%",sm:"60%",md:"60%",lg:"35%"},bgcolor:"#1E1E1E"},D2={...St,width:{xs:"94%",sm:"60%",md:"30%",lg:"23%"},bgcolor:"#1E1E1E"},ou={...E2},ru={...St,width:{xs:"80%",sm:"60%",md:"60%",lg:"35%"},bgcolor:"#1E1E1E",borderRadius:"24px"},q2={...wt,width:{xs:"80%",sm:"60%",md:"32%",lg:"32%"},bgcolor:"#EAEAEA",border:"1px solid #4E4E4E",borderRadius:"18px",p:"30px"},V2={...wt,width:{xs:"100%",sm:"90%",md:"75%",lg:"75%"},bgcolor:"#1E1E1E",border:"none",borderRadius:"20px",p:"30px"},Fn={...wt,width:{xs:"100%",sm:"90%",md:"75%",lg:"55%"},bgcolor:"#1E1E1E",color:"#eaeaea",border:"none",borderRadius:"20px",p:"30px"},tT={...St,width:nu,bgcolor:Vt.default},Za={control:(s,{data:t,isDisabled:a,isFocused:i,isSelected:n})=>({...s,backgroundColor:"var(--card-surface-primary)",borderRadius:"30px",color:"var(--text-color-primary)",border:i?"1px solid var(--color-grey-700)":n?"1px solid var(--text-color-secondary)":"1px solid var(--color-grey-700)",boxShadow:"#5a6466",":hover":{...s[":hover"],border:"1px solid var(--text-color-primary)"},":active":{...s[":active"],border:"1px solid var(--text-color-secondary)",color:"var(--text-color-primary)"}}),option:(s,{data:t,isDisabled:a,isFocused:i,isSelected:n})=>({...s,backgroundColor:"var(--card-surface-3)",color:"var(--text-color-primary)",":hover":{...s[":hover"],backgroundColor:a?void 0:"var(--text-color-primary)",cursor:a?void 0:n||i?"var(--text-color-primary)":"#d6dcdd"}})},lu=gs(Ws)(({theme:s})=>({color:"var(--background-color)",backgroundColor:"var(--text-color-primary)",textTransform:"none",borderRadius:"25px","&:hover":{backgroundColor:"var(--text-color-primary)"}})),yt={display:"flex",gap:"10px",flexDirection:"column",alignItems:"end",marginTop:"26px"},z2=[{back:"ee",front:"Education & Experience"},{back:"project",front:"Projects"},{back:"achievements",front:"Achievements"}],W2=[{back:"ee",front:"Education & Experience"},{back:"project",front:"Projects"},{back:"achievements",front:"Achievements"},{back:"milestone",front:"Milestones"}],$2=[{back:"certificateCourses",front:"Certificate Courses"},{back:"specialistPrograms",front:"Specialized Programs"},{back:"placements",front:"Placements"},{back:"client",front:"Trusted Companies"},{back:"milestone",front:"Milestones"}],H2=[{back:"services",front:"Services"},{back:"solutions",front:"Solutions"},{back:"project",front:"Projects"},{back:"milestone",front:"Milestones"},{back:"client",front:"Clients"}],G2=[{id:"#about",front:"About"},{id:"#certificateCourses",front:"Certificate Courses"},{id:"#specialistPrograms",front:"Specialized Programs"},{id:"#placements",front:"Placements"},{id:"#client",front:"Trusted Companies"},{id:"#mileStone",front:"Milestones"},{id:"#rating",front:"Ratings"},{id:"#testimonials",front:"Testimonials"}],J2=[{id:"#about",front:"About"},{id:"#services",front:"Services"},{id:"#solutions",front:"Solutions"},{id:"#projects",front:"Projects"},{id:"#mileStone",front:"Milestones"},{id:"#client",front:"Clients"},{id:"#testimonials",front:"Testimonials"},{id:"#rating",front:"Ratings"}],Y2=[{id:"#about",front:"About"},{id:"#skills",front:"Skills"},{id:"#ee",front:"Education & Experience"},{id:"#projects",front:"Projects"},{id:"#achievements",front:"Achievements"},{id:"#mileStone",front:"Milestones"},{id:"#testimonials",front:"Testimonials"},{id:"#rating",front:"Ratings"}],Z2=[{id:"#about",front:"About"},{id:"#skills",front:"Skills"},{id:"#ee",front:"Education & Experience"},{id:"#projects",front:"Projects"},{id:"#achievements",front:"Achievements"},{id:"#testimonials",front:"Testimonials"},{id:"#rating",front:"Ratings"}],zt=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,cu=/^(?=.*[a-z])(?=.*[A-Z( +\w+)])(?=.*\d)(?=.*[#$^+=!*()@%&]).{8,128}$/g,js=/^[A-Za-z ]+$/,yl=/(?!^\d+$)^.+$/,aT=/^[ A-Za-z0-9_@./#&+-]*$/,du=/^[0-9]+(\.[0-9]+)?$/,Bt=/^\d{1,}$/,mu=/^(19|20)\d{2}$/,hu={display:"flex",alignItems:"center",gap:"10px",marginBottom:"1rem"},K2=[".com",".org",".net",".info",".biz",".co",".io",".ai",".app",".dev",".tech",".me",".us",".uk",".co.uk",".de",".ca",".au",".fr",".jp",".nl",".cn",".ru",".in",".co.in",".org.in",".net.in",".gov.in",".nic.in",".ac.in",".edu.in",".res.in",".ind.in",".gen.in",".firm.in",".ernet.in",".mil.in",".railnet.gov.in",".ernet.gov.in",".g.in",".e.in",".r.in"],oa=["2D/3D Animation","AC / Refrigerator Repair","API / Backend Development","AR / VR / Metaverse Solutions","Aadhar Card Update Assistance","Accounting & Tax Filing","Ambulance Services","App Development (Android or iOS)","Appliance Installation & Repair","Art / Music / Dance / Theatre Coaching","Astrology / Numerology","Backgroun
2d Checks","Background Verification","Birth / Death Certificate Services","Blockchain / Web3","Brand Strategy","Branding & Visual Identity","Brochure / Packaging Design","Business Analytics","Business Planning","CAD / CAM / 3D Design","CCTV & Security Installation","Career Guidance & Counseling","Carpentry","Catering Services","Celebrity / Influencer Collaboration Managers","Clinical Psychologists","Coding / Tech Training","Communication & Soft Skills","Company Incorporation","Competitive Exams (UPSC, SSC, NEET, JEE)","Compliance Audits","Compliance for Public Projects","Content Writing / Copywriting","Contract Drafting (MoUs, NDAs, Agreements)","Cooking / Hobby Trainers (Pottery, Photography, etc.)","Cooks","Corporate Risk Management","Corporate Videography","CNC / PCB Manufacturing","Community Management","Consulting (CXO, GTM, M&A, etc.)","CRM Management","Cyber Risk Assessment","Cybersecurity","Data Engineering / Big Data","Data Entry","Data Science & AI/ML","Debt Management / Loan Consulting","Dentists","Design & Creative Tools","Dermatologists","DevOps & Cloud Engineering","Diagnostics & Lab Tests","Digital Marketing Strategy","Digital Signature Certificate (DSC)","Diet & Nutrition Planning","Dieticians & Clinical Nutritionists","Dog Grooming & Pet Styling","Drone Survey & Industrial Mapping","Driving License (New / Renewal / International)","DJs / Musicians / Performers","E-Seva / CSC Help","Email / Calendar Handling","Email Marketing","Embedded Systems / IoT","Employment Contracts & Labor Law","ERP/CRM Implementation","Event / Corporate Security","Event Anchoring / Emcees","Event Planning & Management","Event Security / Bouncers","Eye Specialists / Optometrists","Factory Setup & Process Optimization","Fashion Consulting","Fire Safety Setup & Audits","Fireworks & Light Shows","Financial Advisors","Foreign Language Training","Franchise Development","Fundraising Platform Help","Fundraising Strategy & Pitch Decks","Gaming / Game Development","Gardening & Landscaping","General Physicians / Family Doctors","GTM Strategy","Government Tender / GEM Registration","Govt. Grant / Subsidy Filing","Graphic Design","Gynecologists","Handyman Services","Hardware Fabrication / Testing","Hobby Trainers (Cooking, Pottery, Photography, etc.)","Home Automation / Smart Devices","Home Renovation / Civil Work","Homeopathy / Ayurveda / Siddha","House Cleaning","Household Help","HR Policy Design","HRBP & Culture Design","Illustration / Infographics","Influencer / Affiliate Marketing","Industrial Automation Consultants","Insurance Advisors","Interior Design","Invitation Design / E-Invites","Investment Consultants","Instagram Influencers","IT Support & System Admin","Legal Drafting (MoUs, NDAs, Agreements)","Legal Metrology Consulting","Life Coaching","Loan / Mortgage Consultants","Local Tour Guides","Logo Design","Makeup Artists","M&A Support & Due Diligence","Marketing Automation","Market Research & Analysis","Market Research & Reporting","Mehndi / Henna Artists","Mehndi Artists","Meme Pages","Mental Health Counseling","Motion Graphics","Movers & Packers","MSME / UDYAM Registration","Name / Address Change Services","Notary & Affidavit Services","Nurses / Home Care Support","Operations & Process Consulting","Organizational Development","Orthopedic Specialists","PAN Card Application / Correction","Painting","Paid Ads (Meta, Google, LinkedIn)","Passport Application / Renewal","Party Supply Rentals","Pediatricians","Performance Marketing","Personal Fitness Trainers","Personal Styling & Grooming","Physiotherapists","Plumbing","Police Clearance Certificate (PCC)","POSH Policy Setup & Training","Product Launch Campaigns","Product Photography","Product Prototyping","Proofreading / Editing","Property Management","PR & Media Outreach","Psychiatrists","Public Speaking","QA & Testing","Ration Card Application","Real Estate Agents","Relationship Coaching","Renewable Energy Setup (Solar/Wind)","Resume & Portfolio Design","Resume Writing","Return Gift Curation","Sales Strategy (B2B/B2C)","Salon at Home","School/College Tutoring","Script Writing / Storyboarding","SEO / SEM","Self-Drive Rental Cars","Social Media Management","Software / Full Stack Development","S
2ound & Lighting","Speech Therapists","Stage Setup & Decor","Startup Advisory","Startup Investment Connectors","Strategic Partnerships","Subtitling / Localization","Support for startups, companies, or professional needs.","Talent Acquisition / Headhunting","Tattoo Artists","Telemedicine Services","Tourism/Travel Company & Trip Planners","Trademark / IP / Patent Filing","Transcription","Translation (General & Certified)","UI/UX Design","UI/UX Development","Vehicle Rentals with Drivers","Veterinary Doctors","Video Editing","Virtual Assistants","Visa & Immigration Consulting","Visa & Passport Assistance","Voiceover / Dubbing","Voter ID Services","Website Development","Wedding Photography & Videography","Wedding Planning","Youtubers","Yoga & Meditation"],vn=["AI Engineer","AI or ML Engineer","Account Manager","Accountant","Accounting Manager","Actuary","Advertising Manager","Aerospace Engineer","Agile Project Manager","Agricultural Engineer","Aircraft Design Engineer","Application Developer","Area Manager","Assistant General Manager (AGM)","Attorney","Audit Manager","Auditor","Automation Engineer","Automotive Engineer","Avionics Engineer","B2B Sales Manager","Back End Developer","Benefits Coordinator","Bio chemical Engineer","Bio informatics Engineer","Biologist","Bio medical Engineer","Block chain Engineer","Branch Manager","Brand Manager","Brand Strategist","Branding Specialist","Budget Manager","Business Analyst","Business Consultant","Business Development Manager","Business Intelligence Analyst","Business Intelligence Developer","Business Operations Analyst","Business Operations Manager","Business Process Engineer","Business Systems Analyst","CRM  Manager (Customer Relationship Management)","Call Center Manager","Category Manager","Ceramic Engineer","Change Management Specialist","Chartered Accountant (CA)","Chemical Engineer","Chief Data Officer (CDO)","Chief Executive Officer (CEO)","Chief Financial Officer (CFO)","Chief Human Resources Officer (CHRO)","Chief Information Officer (CIO)","Chief Marketing Officer (CMO)","Chief Operating Officer (COO)","Chief People Officer","Chief Revenue Officer","Chief Strategy Officer","Chief Technology Officer (CTO)","Civil Engineer","Client Relations Manager","Clinical Coordinator","Clinical Engineer","Clinical Manager","Clinical Researcher","Clinical Technician","Cloud Architect","Cloud Engineer","Cloud Engineering Manager","Cloud Solutions Architect","Communications Manager","Compensation & Benefits Manager","Compensation Analyst","Compensation and Benefits Manager","Compliance Manager","Compliance Officer","Computer Programmer","Construction Engineer","Construction Estimator","Construction Manager","Construction Planner","Construction Worker","Content Editor","Content Manager","Content Strategist","Content Writer","Control Systems Engineer","Copywriter","Corporate Communications Manager","Corporate Lawyer","Corporate Trainer","Country Manager","Court Reporter","Creative Director","Credit Analyst","Customer Experience Manager","Customer Experience Specialist","Customer Relations Manager","Customer Service Manager","Customer Success Manager","Customer Support Representative","Cybersecurity Analyst","Cybersecurity Architect","Cybersecurity Engineer","Cybersecurity Specialist","Data Analyst","Data Center Engineer","Data 
2Engineer","Data Governance Officer","Data Privacy Officer","Data Science Manager","Data Scientist","Database Administrator","Database Developer","Dentist","Deputy Manager","Dev Ops Engineer","Dev Ops Manager","Digital Content Creator","Digital Marketing Manager","Director","Diversity & Inclusion Manager","Diversity and Inclusion Officer","Doctor","Document Control Specialist","E-commerce Manager","E-commerce Specialist","E-learning Specialist","Electrical Engineer","Electrical Technician","Electronics Engineer","Embedded Software Engineer","Embedded Systems Engineer","Employee Engagement Manager","Employee Relations Manager","Employee Relations Specialist","Energy Consultant","Energy Engineer","Energy Manager","Engineer","Engineering Manager","Environmental Engineer","Environmental Manager","Event Coordinator","Event Manager","Event Planner","Executive Assistant","Executive Director","Executive Recruiter","Facilities Manager","Facility Manager","Factory Manager","Fashion Designer","Field Service Technician","Finance Manager","Financial Accountant","Financial Analyst","Financial Auditor","Financial Controller","Financial Planner","Fleet Manager","Food Process Engineer","Front End Developer","Full Stack Developer","Full Stack Engineer","Game Developer","General Counsel","General Manager (GM)","Genetic Engineer","Geo Technical Engineer","Global HR Manager","Government Affairs Specialist","Graphic Design Manager","Graphic Designer","Growth Manager","HR Administrator","HR Assistant","HR Business Partner","HR Compliance Officer","HR Consultant","HR Coordinator","HR Data Analyst","HR Director","HR Generalist","HR Information Systems (HRIS) Manager","HR Manager","HR Specialist","HVAC Engineer (Heating, Ventilation, and Air Conditioning)","Head of Finance","Health and Safety Manager","Health and Safety Officer","Healthcare Administrator","Healthcare Consultant","Healthcare Manager","Healthcare Operations Manager","Help Desk Technician","Hospital Administrator","Hospital Manager","Human Resources Assistant","Human Resources Manager","IT Auditor","IT Business Partner","IT Consultant","IT Director","IT Infrastructure Manager","IT Manager","IT Project Manager","IT Security Consultant","IT Specialist","IT Support Analyst","IT Support Specialist","IT Systems Administrator","IT Trainer","Industrial Engineer","Instrumentation Engineer","Insurance Underwriter","Interior Designer","Internal Auditor","Internal Communications Specialist","International Sales Manager","Inventory Manager","Investment Analyst","Investment Banker","Investment Manager","Journalist","Key Account Manager","Labor Relations Specialist","Lawyer","Lead Data Scientist","Lean Manufacturing Engineer","Lean Manufacturing Manager","Learning and Development Manager","Legal Advisor","Legal Assistant","Legal Consultant","Legal Counsel","Legal Manager","Legal Operations Manager","Legal Secretary","Loan Officer","Logistics Analyst","Logistics Coordinator","Logistics Manager","Machine Learning Engineer","Maintenance Engineer","Maintenance Manager","Maintenance Technician","Managing Director (MD)","Manufacturing Engineer","Manufacturing Manager","Marine Engineer","Market Research Analyst","Marketing Analyst","Marketing Director","Marketing Manager","Materials Engineer","Mechanical Designer","Mechanical Engineer","Mechanical Technician","Mechatronics Engineer","Media Manager","Medical Affairs Manager","Medical Coder","Medical Lab Technician","Medical Sales Representative","Merchandising Manager","Metallurgical Engineer","Mining Engineer","Mobile App Developer","Mortgage Advisor","Multimedia 
2Specialist","Naval Engineer","Network Administrator","Network Engineer","Network Manager","Network Security Engineer","Network Technician","Nurse","Nutritional Specialist","Occupational Therapist","Office Manager","Onboarding Specialist","Operations Analyst","Operations Assistant","Operations Coordinator","Operations Director","Operations Engineer","Operations Manager","Optical Network Engineer","Organizational Development Specialist","Organizational Effectiveness Manager","PMO Manager (Project Management Office)","Paralegal","Pay roll Coordinator","Pay roll Manager","People Analytics Specialist","People Operations Manager","Petroleum Engineer","Pharmacist","Pharmacologist","Pharmacovigilance Officer","Pharmacy Manager","Physical Therapist","Polymer Engineer","Portfolio Manager","Power Systems Engineer","Process Engineer","Procurement Manager","Procurement Specialist","Product Analyst","Product Designer","Product Manager","Product Marketing Manager","Product Marketing Specialist","Product Owner","Production Engineer","Production Manager","Program Coordinator","Program Manager","Project Coordinator","Project Manager","Property Manager","Public Health Administrator","Public Relations (PR) Manager","Public Relations Director","Public Relations Specialist","Quality Assurance (QA) Manager","Quality Assurance Specialist","Quality Control (QC) Manager","Quality Control Engineer","Quality Control Specialist","Quality Engineer","R&D Engineer","RF (R
2adio Frequency) Engineer","RF Engineer","Radiologist","Real Estate Agent","Real Estate Developer","Real Estate Manager","Recruiter","Recruitment Consultant","Recruitment Coordinator","Recruitment Manager","Regional Manager","Regulatory Affairs Manager","Renewable Energy Engineer","Research Analyst","Research Scientist","Research and Development Manager","Retail Buyer","Retail Manager","Retail Operations Manager","Retail Sales Associate","Retirement Plan Administrator","Risk Management Consultant","Risk Manager","Robotics Engineer","SEO Manager","SEO Specialist","Sales Development Representative","Sales Engineer","Sales Executive","Sales Manager","Satellite Communications Engineer","Scientific Researcher","Scrum Master","Security Analyst","Security Manager","Senior Tax Analyst","Service Delivery Manager","Service Desk Analyst","Site Engineer","Site Manager","Site Reliability Engineer (SRE)","Social Media Manager","Social Worker","Software Architect","Software Developer","Software Development Manager","Software Engineer","Software Engineering Manager","Software Quality Engineer","Software Tester","Solar Energy Engineer","Solar Engineer","Solution Architect","Specialist (Human Resources)","Speech Pathologist","Staffing Manager","Store Manager","Strategy Manager","Structural Engineer","Succession Planning Manager","Supply Chain Analyst","Supply Chain Engineer","Supply Chain Manager","Surgeon","Surveyor","Sustainability Manager","System Administrator","Systems Analyst","Systems Engineer","Talent Acquisition Manager","Talent Acquisition Specialist","Talent Management Specialist","Tax Advisor","Tax Consultant","Tax Manager","Teacher","Technical Manager","Technical Support Manager","Telecom Specialist","Telecommunications Engineer","Training & Development Manager","Training Coordinator","Transportation Engineer","Transportation Manager","Travel Consultant","Treasury Manager","UI or UX Designer","Urban Planner","Urban Planning Engineer","VLSI Engineer (Very Large Scale Integration)","VP of Sales","Venture Capitalist","Vice President (VP)","Video Editor","Virtual Assistant","Warehouse Manager","Warehouse Supervisor","Waste Management Engineer","Water Resources Engineer","Web Designer","Web Developer","Wind Energy Engineer","Workforce Planning Manager","Workplace Culture Manager","Others"],uu=["Accounting","AI and Deep Tech","Airlines or Aviation","Alternative Dispute Resolution","Alternative Medicine","Animation","Apparel & Fashion","Architecture & Planning","Arts and Crafts","Automotive","Aviation & Aerospace","Banking","Biotechnology","Broadcast Media","Building Materials","Business Supplies and Equipment","Capital Markets","Chemicals","Civic & Social Organization","Civil Engineering","Commercial Real Estate","Computer & Network Security","Computer Games","Computer Hardware","Computer Networking","Computer Software","Construction","Consumer Electronics","Consumer Goods","Consumer Services","Cosmetics","Dairy","Defense & Space","Design","Education Management","E-Learning","Electrical/Electronic Manufacturing","Entertainment","Environmental Services","Events Services","Executive Office","Facilities Services","Farming","Financial Services","Fine Art","Fishery","Food & Beverages","Food Production","Fund-Raising","Furniture","Gambling & Casinos","Glass, Ceramics & Concrete","Government Administration","Government Relations","Graphic Design","Health, Wellness and Fitness","Higher Education","Hospital & Health Care","Hospitality","Human Resources","Import and Export","Individual & Family Services","Industrial Automation","Information Services","Information Technology and Services","Insurance","International Affairs","International Trade and Development","Internet","Investment Banking","Investment Management","Judiciary","Law Enforcement","Law Practice","Legal Services","Legislative Office","Leisure, Travel & Tourism","Libraries","Logistics and Supply Chain","Luxury Goods & Jewelry","Machinery","Management Consulting","Maritime","Market Research","Marketing and Advertising","Mechanical or Industrial Engineering","Media Production","Medical Devices","Medical Practice","Mental Health Care","Military","Mining & Metals","Mobile Games","Motion Pictures and Film","Museums and Institutions","Music","Nanotechnology","Newspapers","N
2on-Profit Organization Management","Oil & Energy","Online Media","Outsourcing/Offshoring","Package/Freight Delivery","Packaging and Containers","Paper & Forest Products","Performing Arts","Pharmaceuticals","Philanthropy","Photography","Plastics","Political Organization","Primary/Secondary Education","Printing","Professional Training & Coaching","Program Development","Public Policy","Public Relations and Communications","Public Safety","Publishing","Railroad Manufacture","Ranching","Real Estate","Recreational Facilities and Services","Religious Institutions","Renewables & Environment","Research","Restaurants","Retail","Security and Investigations","Semiconductors","Shipbuilding","Sporting Goods","Sports","Staffing and Recruiting","Supermarkets","Telecommunications","Textiles","Think Tanks","Tobacco","Translation and Localization","Transportation/Trucking/Railroad","Utilities","Venture Capital & Private Equity","Veterinary","Warehousing","Wholesale","Wine and Spirits","Wireless","Writing and Editing","Others"],pu=["Visakhapatnam, Andhra Pradesh","Vijayawada, Andhra Pradesh","Tirupati, Andhra Pradesh","Itanagar, Arunachal Pradesh","Tawang, Arunachal Pradesh","Naharlagun, Arunachal Pradesh","Guwahati, Assam","Dibrugarh, Assam","Silchar, Assam","Patna, Bihar","Gaya, Bihar","Bhagalpur, Bihar","Raipur, Chhattisgarh","Bilaspur, Chhattisgarh","Durg, Chhattisgarh","Panaji, Goa","Margao, Goa","Vasco da Gama, Goa","Ahmedabad, Gujarat","Surat, Gujarat","Vadodara, Gujarat","Gurugram, Haryana","Faridabad, Haryana","Panchkula, Haryana","Shimla, Himachal Pradesh","Manali, Himachal Pradesh","Dharamshala, Himachal Pradesh","Ranchi, Jharkhand","Jamshedpur, Jharkhand","Dhanbad, Jharkhand","Bengaluru, Karnataka","Mysuru, Karnataka","Mangaluru, Karnataka","Thiruvananthapuram, Kerala","Kochi, Kerala","Kozhikode, Kerala","Bhopal, Madhya Pradesh","Indore, Madhya Pradesh","Gwalior, Madhya Pradesh","Mumbai, Maharashtra","Pune, Maharashtra","Nagpur, Maharashtra","Imphal, Manipur","Churachandpur, Manipur","Thoubal, Manipur","Shillong, Meghalaya","Tura, Meghalaya","Nongstoin, Meghalaya","Aizawl, Mizoram","Lunglei, Mizoram","Champhai, Mizoram","Kohima, Nagaland","Dimapur, Nagaland","Mokokchung, Nagaland","Bhubaneswar, Odisha","Cuttack, Odisha","Rourkela, Odisha","Amritsar, Punjab","Ludhiana, Punjab","Jalandhar, Punjab","Jaipur, Rajasthan","Udaipur, Rajasthan","Jodhpur, Rajasthan","Gangtok, Sikkim","N
2amchi, Sikkim","Gyalshing, Sikkim","Chennai, Tamil Nadu","Coimbatore, Tamil Nadu","Madurai, Tamil Nadu","Hyderabad, Telangana","Warangal, Telangana","Nizamabad, Telangana","Agartala, Tripura","Udaipur, Tripura","Dharmanagar, Tripura","Lucknow, Uttar Pradesh","Kanpur, Uttar Pradesh","Varanasi, Uttar Pradesh","Dehradun, Uttarakhand","Haridwar, Uttarakhand","Nainital, Uttarakhand","Kolkata, West Bengal","Darjeeling, West Bengal","Siliguri, West Bengal","Port Blair, Andaman & Nicobar Islands","Chandigarh, Chandigarh","Daman, Dadra and Nagar Haveli and Daman and Diu","Silvassa, Dadra and Nagar Haveli and Daman and Diu","New Delhi, Delhi","Delhi, Delhi","Srinagar, Jammu & Kashmir","Jammu, Jammu & Kashmir","Leh, Ladakh","Kargil, Ladakh","Kavaratti, Lakshadweep","Puducherry, Puducherry","Karaikal, Puducherry"],Q2=[{question:"Why do you want to use Agent Ambo?",options:["Job Searching","Recruiting","Investment","Referring","Service Request","Provide Service"],type:"options",key:"main"}],X2=[{question:"Let Agent Ambo help you find the right expert or service provider. Just answer a few quick questions. Ready to begin?",options:["Yes"],type:"options",key:"start"},{question:"Is this service for Personal or Business Use?",options:["Personal","Business"],type:"options",key:"serviceCategory"},{question:"What kind of service do you need?",options:oa,type:"dropdown",key:"serviceList"},{question:"Could you please describe your specific need in a few words? The more detail you give, the better the match!.(Example : “Looking for a Logo Designer for my new business” or “I need a plumber for a leaking tap” etc.,)",options:[],type:"text",key:"describeService"},{question:"Where should the service be delivered?",options:["Remote","At my place"],type:"options",key:"serviceDeliveredLocation"},{question:"Please enter your city or location: (example : Anna nagar, Chennai, Tamilnadu; Koramangala, Banglore, Karnataka; etc.,)",options:[],type:"location",key:"location"},{question:"Do you have a budget in mind? This helps us shortlist better. (only numbers)",options:[],type:"number",key:"budget"},{question:"Your Full Name",options:[],type:"text",key:"fullName"},{key:"email",question:"What is your Email?",type:"email",options:[]},{key:"mobile",question:"What is your Whatsapp number? (only numbers)",type:"number",options:[]},{question:"Ambo Agent terms and conditions",options:[],type:"checkbox",key:"terms"}],e1=[{question:"Let’s get you listed as a service provider so people can find and hire you for the services you offer.",options:["Yes"],type:"options",key:"start"},{question:"Are you signing up as an Individual or representing a Company?",options:["Individual","Company"],type:"options",key:"category"}],s1=[{question:"Whats is Your Full Name?",options:[],type:"text",key:"displayName"},{question:"What is your Location? (example : Anna nagar, Chennai, Tamilnadu; Koramangala, Banglore, Karnataka; etc.,)",options:[],type:"location",key:"yourLocation"},{question:"What services do you offer? You can select multiple.",options:oa,type:"multi-select-limit",key:"serviceCategory"},{question:"Do you offer your services onsite (at client location), offsite (remotely), or both?",options:["Onsite","Offsite","Onsite & Offsite"],type:"options",key:"serviceOfferMode"},{question:"Which areas or cities do you offer your offsite services in? (example : Anna nagar, Chennai, Tamilnadu; Koramangala, Banglore, Karnataka; etc.,)",options:[],type:"location-multi",key:"serviceOfferLocation"},{key:"email",question:"What is your Email?",type:"email",options:[]},{key:"mobile",question:"What is your Whatsapp number? (only numbers)",type:"number",options:[]},{question:"Your Price (min)",options:[],type:"number",key:"pricingMin"},{question:"Your Price (max)",options:[],type:"number",key:"pricingMax"},{question:"Do you have a portfolio, website, or link that showcases your work?",options:[],type:"text",key:"showcaseLink"},{question:"Please write a short bio or introduction about yourself.",options:[],type:"text",key:"shortBio"},{question:"Ambo Agent terms and conditions",options:[],type:"checkbox",key:"terms"}],t1=[{question:"What is Your Company Name?",options:[],type:"text",key:"displayName"},{question:"Is your Company Registered?",options:["Yes","No"],type:"options",key:"registeredCompany"},{question:"What is Your Company Location? (example : Anna nagar, Chennai, Tamilnadu; Koramangala, Banglore, Karnataka; etc.,)",options:[],type:"location",key:"yourLocation"},{question:"What services do you offer? You can select multiple.",options:oa,type:"multi-select-limit",key:"serviceCategory"},{question:"Do you offer your services onsite (at client location), offsite (remotely), or both?",options:["Onsite","Offsite","Onsite & Offsite"],type:"options",key:"serviceOfferMode"},{question:"Which areas or cities do you offer your offsite services in? (example : Anna nagar, Chennai, Tamilnadu; Koramangala, Banglore, Karnataka; etc.,)",options:[],type:"location-multi",key:"serviceOfferLocation"},{key:"email",question:"What is your Email?",type:"email",options:[]},{key:"mobile",question:"What is your Whatsapp number? (only numbers)",type:"number",options:[]},{question:"Your Service fee (min)",options:[],type:"number",key:"pricingMin"},{question:"Your Service fee (max)",options:[],type:"number",key:"pricingMax"},{question:"Do you have a portfolio, website, or link that showcases your work?",options:[],type:"text",key:"showcaseLink"},{question:"Please write a short bio or introduction about yourself.",options:[],type:"text",key:"shortBio"},{question:"Ambo Agent terms and conditions",options:[],type:"checkbox",key:"terms"}],a1=[{question:"Do you want to use Agent Ambo to apply for a new role?",options:["Yes"],type:"options",key:"start"},{question:"What is your Email?",options:[],type:"payment",key:"paymentid"},{key:"email",question:"What is your Email?",type:"email",options:[]},{key:"mobile",question:"What is your Whatsapp number? (only numbers)",type:"number",options:[]},{question:"What is Your Current Company Name",key:"currently_workingin",type:"text",options:[]},{question:"What is the Job role that you're currently searching for?",options:vn,type:"dropdown",key:"designation"},{question:"Mention your skill sets for this designation and rate yourself out of 10. (Example. ReactJS (7), python (5))",options:[],type:"text",key:"skills"},{question:"No. of years of experience",key:"experience",type:"dropdownNumber",options:["Fresher",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,"above 15"]},{question:"Preferred Industry/Sector",options:uu,type:"dropdown",key:"industry"},{question:"Preferred Location (Eg: Bangalore)",options:[],type:"text",key:"location"},{question:"Notice period",options:["Immediate","0 - 1 month","1 - 2 months","2 - 3 months"],type:"options",key:"noticePeriod"},{question:"Current CTC (Example: 1250000)",options:[],type:"number",key:"currentCTC"},{question:"Expected CTC (Example: 1750000)",options:[],type:"number",key:"expectedCTC"},{question:"What will your preference be among High Salary, Great Work, Work life balance?",options:["High Salary","Great Work","Work-life balance"],type:"options",key:"preference"},{question:"What will be an Idle role & environment for you to work?",options:[],type:"text",key:"idealRole"},{question:"Those who use resumes generated by TickBig have a higher chance of receiving interview calls. Would you like to build one?",options:["Build Resume","No"],type:"fileUpload",key:"resume"},{question:"Choose your resume",options:["Upload Resume"],type:"fileUpload",key:"resume"},{question:"Provide us the list of companies you think that you're capable of working.(Example: Infosys,Freshworks,TCS)",options:[],type:"text",key:"capableCompanies"},{question:"Provide us the list of Companies that you wish you could join.(Example: Google, OpenAI, Tesla)",options:[],type:"text",key:"dreamCompanies"},{question:"Ambo Agent terms and conditions",options:[],type:"checkbox",key:"terms"}],n1=[{question:"Would you like to use Agent Ambo to fullfil your hiring needs?",options:["Yes"],type:"options",key:"start"},{key:"Name",question:"What is your name?",type:"text",options:[]},{key:"your_designation",question:"What is your Designation?",type:"dropdown",options:vn},{key:"company_name",question:"What is your company name?",type:"text",options:[]},{key:"designation",question:"What is the Designation that you are currently hiring for?",type:"dropdown",options:vn},{key:"experience",question:"How many years of Experience should your candidate have?",type:"dropdownNumber",options:["Fresher",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,"above 15"]},{key:"salary",question:"What is the Salary Package (per annum in INR) that you will be able to offer? (only numbers)",type:"number",options:[]},{key:"location",question:"What is the Job Location? (eg: Chennai, Banglore, Pune)",type:"text",options:[]},{key:"mandatory_skills",question:"List the Mandatory Skills & Skill Level (out of 10). Example: Python (9), Databricks (7), etc.",type:"text",options:[]},{key:"skills_advantage",question:"What are the skills you consider as an advantage?",type:"text",options:[]},{key:"noticePeriod",question:"When do you want to onboard the candidate?",type:"options",options:["Immediate","0 - 1 month","1 - 2 months","2 - 3 months"]}
2,{key:"resource",question:"How many resources do you want? (only numbers)",type:"number",options:[]},{key:"ideal_candidate",question:"Who will be an ideal candidate for you?",type:"text",options:[]},{key:"email",question:"What is your Email?",type:"email",options:[]},{key:"mobile",question:"What is your Mobile number? (only numbers)",type:"number",options:[]},{question:"Ambo Agent terms and conditions",options:[],type:"checkbox",key:"terms"}],i1=[{question:"To help us get started, could you please share a few details?",options:["Yes"],type:"options",key:"start"},{question:"What is your current company name?",options:[],type:"text",key:"current_company"},{question:"What is your current designation?",type:"dropdown",options:vn,key:"current_designation"},{question:"How many years of experience do you have?",key:"your_experience",type:"dropdownNumber",options:["Fresher",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,"above 15"]},{question:"How long have you been with your current company?",key:"current_company_experience",type:"dropdownNumber",options:["Fresher",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,"above 15"]},{question:"Which companies can you refer candidates to?",options:[],type:"text",key:"referring_companies"},{question:"What are all the job locations you can refer for?",options:[],type:"text",key:"referring_locations"},{key:"Name",question:"What is your name?",type:"text",options:[]},{key:"email",question:"What is your Official Email Id?",type:"email",options:[]},{key:"mobile",question:"What is your whatsapp number? (only numbers)",type:"number",options:[]},{question:"Ambo Agent terms and conditions",options:[],type:"checkbox",key:"terms"}],o1=[{question:"Shall we get started with a few quick details about your company?",options:["Yes"],type:"options",key:"start"},{question:"Checking Payment status ...",options:[],type:"payment",key:"inv_paymentid"},{question:"What is your company’s name?",options:[],type:"text",key:"inv_company_name"},{question:"What is your Email Id?",options:[],type:"email",key:"inv_email"},{question:"Tell us your Mobile Number (only numbers)",options:[],type:"number",key:"inv_mobile"},{question:"Please describe your company in a few sentences.",options:[],type:"text",key:"inv_company_desc"},{question:"What is your company’s Unique Selling Proposition (USP)?",options:[],type:"text",key:"inv_usp"},{question:"What industry or sector does your company belong to?",options:uu,type:"dropdown",key:"inv_industry"},{question:"Who is your target audience or customer segment?",options:[],type:"text",key:"inv_target_audience"},{question:"What stage is your company currently in?",options:["Pre-Seed","Seed","Series A","Series B","Series C","Series D","Series N"],type:"options",key:"inv_company_stage"},{question:"What traction have you gained so far?",options:[],type:"text",key:"inv_traction"},{question:"How much revenue have you generated so far (only numbers)",options:[],type:"number",key:"inv_revenue_amount"},{question:"What major milestones have you achieved so far?",options:[],type:"text",key:"inv_milestones"},{question:"How much capital are you looking to raise? (only numbers)",options:[],type:"number",key:"inv_capital_needed"},{question:"What percentage of equity are you ready to dilute? (only numbers)",options:[],type:"number",key:"inv_equity_dilution"},{question:"Please attach your pitch deck.",options:["Upload Pitch deck"],type:"pitchDeckUpload",key:"inv_pitch_deck"},{question:"Are there any specific investors you are hoping to connect with?",options:[],type:"text",key:"inv_preferred_investors"},{question:"Ambo Agent terms and conditions",options:[],type:"checkbox",key:"terms"}],nT=["freeJobPost","freeJobApply","freeProjectPost","freeProjectApply","freeStaffAugmentationPost","freeStaffAugmentationApply"],r1="Hey, This is Agent Ambo! We can promote your expertise across various Companies & HRs to get the interview calls and try to completely eliminate the process of applying Jobs across Platforms.",l1="Thank you for trusting Agent Ambo. We’re committed to finding the perfect fit for you in an organization where you can truly excel. Please remain accessible through your registered email, TickBig platform, and mobile for any interview opportunities. We wish you success in your career journey, and Ambo will always be here to supp
2ort you. Stay tuned for updates. Thanks again!",c1=`Hey, this is Agent Ambo! 😊 
3 We can promote your expertise across various companies & HRs to get you interview calls and help eliminate the hassle of applying to jobs across platforms! ✨`,d1="Hey there! 👋 Welcome to TickBig.",m1=`Welcome to Agent Ambo! 😊 
4Your company is a dream Work spot for many, and your decision to become a Referrer is truly inspiring. By extending opportunities, you're not just making referrals — you're changing lives! ✨`,h1=`Hi 👋, 
5 Welcome to Agent Ambo 😊, your dedicated recruiting agent from TickBig!
6Skip the hassle of job postings and resume screening. Just share what you're hiring for, and Ambo will try to deliver pre-screened, relevant candidates directly to your inbox within 48 working hours. ✨ 
7Exciting, right? Let’s get started with a few quick details about your hiring needs! 💼`,u1=`Meet Agent Ambo 😊 – your dedicated fundraising agent from TickBig! 💰 
8 Fundraising shouldn’t feel like a shot in the dark — that’s why Ambo is here to help you connect with the right investors who align with your vision, stage, and sector — all through a simple, efficient chat! ✨ 
9 It’s Focused, Founder-first and designed to make raising capital smoother and smarter.`,p1="Hi there! Welcome to TickBig 👋",g1="Kindly make the payment to use Agent Ambo's service.",gn="Payment received ✅",_n="Payment failed!. Deducted amount will be refunded with in 3-7 working days. Please try again.",x1=`Thank you for trusting Agent Ambo. We’re committed to finding the perfect fit for you in an organization where you can truly excel. 
10 Please remain accessible through your registered email, TickBig platform, and mobile for any interview opportunities. We wish you success in your career journey, and Ambo will always be here to support you.
11 Stay tuned for updates. Thanks again!`,f1=`Your support can change lives, and together, we can make a real difference. 
12 Are you ready to explore profiles to refer talented job seekers? Click the link for Job Seeker Profiles.`,j1=`Thank you for choosing Agent Ambo. We’ll soon work our magic to send you the best-fit candidates. Ambo is here to support all your hiring needs, delivering the right resources with ease. 
13 Sign up on TickBig to access professional branding tools (Free Website & Fortune Card), advanced hiring solutions, Client Acquisition, Project Hunting, Networking, referrals, and more. We’ll be by your side throughout the journey — see you on TickBig!`,y1=`Thanks for sharing the details! Sit back, relax, and keep an eye on your email — Ambo will connect you with the right investors soon. 
14 Good luck for your pitch, and feel free to reach out to [email protected] if you need anything`,b1="Thanks, you’re all set! 🎉 We’re now matching you with the best service providers. Click the link to find the Best service providers!",v1="All done! 🎉 You’re now listed as a provider. We’ll notify you when someone is looking for your skills. You can update your profile or services anytime.",_1=["AGENT AMBO","AMBO INVEST","AMBO SERVICE PROVIDER","AMBO RECRUITER","RESUME BUILDER","RESUME BUILDER AI"],iT=[{month:1,number:10},{month:2,number:11},{month:3,number:12},{month:4,number:1},{month:5,number:2},{month:6,number:3},{month:7,number:4},{month:8,number:5},{month:9,number:6},{month:10,number:7},{month:11,number:8},{month:12,number:9}],bl="kokmhbcgobifmccdofjdnidcffijgnoa",N1=()=>{try{const s=localStorage.getItem("token");return s&&JSON.parse(s).accessToken||null}catch(s){return console.error("[TokenManager] Failed to parse token:",s.message),null}},w1=s=>{try{if(!s)return!1;const a=JSON.parse(atob(s.split(".")[1])).exp*1e3;return Date.now()<a}catch{return!1}},S1={withCredentials:!0,transports:["websocket"],autoConnect:!0,reconnection:!0,reconnectionDelay:1e3,reconnectionDelayMax:5e3,reconnectionAttempts:5,timeout:2e4},Ue={CONNECT:"connect",DISCONNECT:"disconnect",RECONNECT:"reconnect",CONNECT_ERROR:"connect_error",JOIN_ALL_ROOMS:"joinAllRooms",JOIN_ROOM:"joinRoomByConvoId",SEND_MESSAGE:"sendMessage",RECEIVE_MESSAGE:"receiveMessage",MESSAGE_DELIVERED:"pushdeliveredAcknowledge",NEW_USER_ADD:"new-u
14ser-add",FETCH_ONLINE_USERS:"fetch-online-users",USER_ONLINE:"user:online",USER_OFFLINE:"user:offline",GET_USERS:"get-users",USER_INIT:"user:init",USER_FETCH:"user:fetch",USER_STATUS:"user:status",USER_TYPING:"userTyping",USER_STOPPED_TYPING:"userStoppedTyping",NEW_ADMIN:"NEW_ADMIN",UPDATE_ADMIN:"UPDATE_ADMIN",DELETE_ADMIN:"DELETE_ADMIN",SEND_REQUEST:"SEND_REQUEST",ACCEPT_REQUEST:"ACCEPT_REQUEST",CANCEL_REQUEST:"CANCEL_REQUEST",DECLINE_REQUEST:"DECLINE_REQUEST",UNFOLLOW_FRIEND:"UNFOLLOW_FRIEND",Like_FUNDRAISING:"Like_FUNDRAISING",SuperLike_FUNDRAISING:"SuperLike_FUNDRAISING",JOB_APPLIED:"JOB_APPLIED",PROJECT_APPLIED:"PROJECT_APPLIED",INVESTING_PITCHED:"INVESTING_PITCHED",NEW_JOB_POSTED:"NEW_JOB_POSTED",NEW_PROJECT_POSTED:"NEW_PROJECT_POSTED",NEW_FUNDRAISING_POSTED:"NEW_FUNDRAISING_POSTED",NEW_INVESTING_POSTED:"NEW_INVESTING_POSTED",SERVICE_REQ_CONTACT_VIEWED:"SERVICE_REQ_CONTACT_VIEWED",SERVICE_PROV_CONTACT_VIEWED:"SERVICE_PROV_CONTACT_VIEWED",SERVICE_PROV_PLACED_BID:"SERVICE_PROV_PLACED_BID",SERVICE_REQU_ACCEPTED_BID:"SERVICE_REQU_ACCEPTED_BID",ORDER_RECONCILED:"ORDER_RECONCILED"},yo="pendingMessages",bo=()=>{try{return JSON.parse(localStorage.getItem(yo))||[]}catch{return[]}},vo=s=>{const t=bo();t.push(s),localStorage.setItem(yo,JSON.stringify(t))},k1=s=>{const t=bo().filter(a=>a._id!==s);localStorage.setItem(yo,JSON.stringify(t))};let ye=null;const C1=()=>{const s=N1();if(!s||!w1(s))return console.error("[Socket] Invalid or expired token"),null;const t="wss://api.tickbig.com";try{return ye=xg(t,{...S1,auth:{token:s}}),T1(),ye}catch(a){return console.error("[Socket] Connection creation failed:",a),null}},T1=()=>{ye.on(Ue.CONNECT,()=>{ye.emit(Ue.USER_INIT),ye.emit(Ue.USER_FETCH);const s=bo();s.length>0&&s.forEach(t=>{Ka(t,async a=>{var i,n;!a||a!=null&&a.blocked||((i=a==null?void 0:a.message)!=null&&i.createdAt&&(it.dispatch(Ln({convoId:t.convoId,tempId:t.tempId,newMessage:a.message})),it.dispatch(jt(a.message,t.convoId)),it.dispatch(ft(a.message,t.convoId,t.user,(n=a==null?void 0:a.conversation)==null?void 0:n.convoStatus))),a!=null&&a.success&&k1(t._id))})})}),ye.on(Ue.DISCONNECT,s=>{s==="io server disconnect"&&ye.connect()}),ye.on(Ue.RECONNECT,s=>{ye.emit(Ue.USER_INIT),ye.emit(Ue.USER_FETCH)}),ye.on(Ue.CONNECT_ERROR,s=>{console.error("[Socket] Connection error:",s.message)})},gu=()=>ye!=null&&ye.connected?(console.log("[Socket] Already connected"),ye):(C1(),ye),Ds=()=>ye,Ka=({body:s,sender:t,convoId:a,openConvStatus:i="chatOpen"},n)=>{if(!(ye!=null&&ye.connected)){console.warn("[Socket] Not connected");return}console.log("Emitting message:",{body:s,sender:t,convoId:a,openConvStatus:i}),ye.emit(Ue.SEND_MESSAGE,{body:s,convoId:a,sender:t,openConvStatus:i},n)},I1=s=>ye!=null&&ye.connected?s?new Promise(t=>{ye.emit(Ue.JOIN_ROOM,{convoId:s},a=>{t(a)})}):(console.warn("[Socket] Invalid convoId"),Promise.reject("Invalid convoId")):(console.warn("[Socket] Not connected"),Promise.reject("Not connected")),A1=s=>{if(!(ye!=null&&ye.connected)){console.warn("[Socket] Not connected");return}if(!(s!=null&&s.messageId)||!(s!=null&&s.sender)){console.warn("[Socket] Invalid delivery ack data");return}ye.emit(Ue.MESSAGE_DELIVERED,s)},E1=()=>{ye!=null&&ye.connected&&ye.emit(Ue.USER_INIT)},M1=s=>{A1(s)},P1=(s,t)=>{if(ye!=null&&ye.connected){if(!s||!t){console.warn("[Socket] Invalid typing data");return}ye.emit(Ue.USER_TYPING,{conversationId:s,receiverId:t})}},R1=(s,t)=>{if(ye!=null&&ye.connected){if(!s||!t){console.warn("[Socket] Invalid stopped typing data");return}ye.emit(Ue.USER_STOPPED_TYPING,{conversationId:s,userId:t})}},L1=()=>{ye!=null&&ye.connected&&ye.emit(Ue.USER_FETCH)},F1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.USER_STATUS).on(Ue.USER_STATUS,s)}},B1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.MESSAGE_DELIVERED).on(Ue.MESSAGE_DELIVERED,s)}},O1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.USER_TYPING,s),ye.on(Ue.USER_TYPING,s)}},U1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.USER_STOPPED_TYPING).on(Ue.USER_STOPPED_TYPING,s)}},D1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.NEW_ADMIN).on(Ue.NEW_ADMIN,s)}},q1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.UPDATE_ADMIN).on(Ue.UPDATE_ADMIN,s)}},V1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}
14ye.off(Ue.DELETE_ADMIN).on(Ue.DELETE_ADMIN,s)}},z1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.SEND_REQUEST).on(Ue.SEND_REQUEST,s)}},vl=(s,t)=>{ye!=null&&ye.connected&&ye.emit(Ue.ACCEPT_REQUEST,{recipientId:s,msgData:t})},W1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.ACCEPT_REQUEST).on(Ue.ACCEPT_REQUEST,s)}},$1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.CANCEL_REQUEST).on(Ue.CANCEL_REQUEST,s)}},H1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.DECLINE_REQUEST).on(Ue.DECLINE_REQUEST,s)}},G1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.UNFOLLOW_FRIEND).on(Ue.UNFOLLOW_FRIEND,s)}},J1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.Like_FUNDRAISING).on(Ue.Like_FUNDRAISING,s)}},Y1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.SuperLike_FUNDRAISING).on(Ue.SuperLike_FUNDRAISING,s)}},Z1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.JOB_APPLIED).on(Ue.JOB_APPLIED,s)}},K1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.PROJECT_APPLIED).on(Ue.PROJECT_APPLIED,s)}},Q1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.INVESTING_PITCHED).on(Ue.INVESTING_PITCHED,s)}},X1=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.NEW_JOB_POSTED).on(Ue.NEW_JOB_POSTED,s)}},ef=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.NEW_PROJECT_POSTED).on(Ue.NEW_PROJECT_POSTED,s)}},sf=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.NEW_FUNDRAISING_POSTED).on(Ue.NEW_FUNDRAISING_POSTED,s)}},tf=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.NEW_INVESTING_POSTED).on(Ue.NEW_INVESTING_POSTED,s)}},af=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.SERVICE_REQ_CONTACT_VIEWED).on(Ue.SERVICE_REQ_CONTACT_VIEWED,s)}},nf=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.SERVICE_PROV_CONTACT_VIEWED).on(Ue.SERVICE_PROV_CONTACT_VIEWED,s)}},of=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.SERVICE_PROV_PLACED_BID).on(Ue.SERVICE_PROV_PLACED_BID,s)}},rf=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.SERVICE_REQU_ACCEPTED_BID).on(Ue.SERVICE_REQU_ACCEPTED_BID,s)}},lf=s=>{if(ye){if(typeof s!="function"){console.warn("[Socket] Invalid callback");return}ye.off(Ue.ORDER_RECONCILED).on(Ue.ORDER_RECONCILED,s)}},cf="/auth/login",df="/auth/logout",mf="/auth/verify-custom-user",hf="/auth/send-otp",uf="/auth/verify-custom-mobile-user",pf="/auth/resend-otp",gf="/auth/forgot-password-send-otp",xf="/auth/verify-forgot-password-otp",ff="/auth/reset-password",jf="/auth/log-err",yf="/admin/coupon",bf="/admin/create-coupon",vf="/admin/update-user-subscription",_f="/admin/update-monthly-subscription",Nf="/admin/download-gst-orders",wf="/admin/update-product",Sf="/admin/add-product",kf="/admin/user-current-plan",Cf="/admin/user-purchase-history",Tf="/admin/success-order-invoice",If="/admin/refund-payment",Af="/admin/refund-preview",Ef="/admin/maintenance/status",Mf="/admin/maintenance/toggle",Pf="/admin/maintenance/verify-key",Rf="/jobs",Lf="/jobs/designation-filters",Ff="/jobs/location-filters",Bf="/jobs/skill-filters",Of="/jobs/my-saved-jobs",Uf="/jobs/my-open-jobs",Df="/jobs/my-applied-jobs",qf="/jobs/save-jobs",Vf="/jobs/unsave-job",zf="/jobs/my-closed-jobs",Wf="/jobs/notintrested",$f="/jobs/dashboard",Hf="/jobs/fullpage",_l="/jobs/post-job",Gf="/jobs/apply-job",Jf="/jobs/close-job",Yf="/jobs/review-job",Zf="/jobs/report-job",Kf="/jobs/bulk-apply",Qf="/projects",Xf="/projects/sector-filters",ej="/projects/skillsfilters",sj="/projects/my-open-projects",tj="/projects/my-closed-projects",aj="/projects/mysavedprojects",nj="/projects/myappliedprojects",ij="/projects/saveproject",oj="/projects/unsaveproject",rj="/projects/notintrested",lj="/projects/fullpage",cj="/projects/dashboard",Nl="/projects/postproject",dj="/projects/reviewproject",mj="/projects/reportproject",hj="/projects/appl
14y/projecttype",uj="/projects/apply/staffagumentationtype",pj="/projects/close-project",xu="/fundraisings",wl="/fundraisings/post-fundraising",Bn="/fundraisings/like",gj="/fundraisings/review-fundraising",xj="/fundraisings/report-fundraise",fj="/fundraisings/saveFundraising",jj="/fundraisings/unsaveFundraising",yj="/fundraisings/my-open-fundraisings",bj="/fundraisings/my-closed-fundraising",vj="/fundraisings/savedFundraisings",_j="/fundraisings/close-fundraising",Nj="/fundraisings/sectorFilters",wj="/fundraisings/notintrested",Sj="/investings",kj="/investings/single",Sl="/investings/post-investing",Cj="/investings/pitchInvesting",Tj="/investings/review-investing",Ij="/investings/report-investing",Aj="/investings/myPostedInvesting",Ej="/investings/myPitchedInvesting",Mj="/investings/close-investing",Pj="/investings/notintrested",Rj="/investings/mySavedinvesting",Lj="/investings/saveInvesting",Fj="/investings/my-closed-investings",Bj="/investings/unSaveInvesting",Oj="/investings/sectorFilters",Uj="/investings/dashboard",Dj="/search/searchResults",qj="/search/advance-filter",Vj="/users/changepassword",zj="/users/searchAdminUser",Wj="/users/searchAllData",$j="/users/blocked-users",Hj="/users/blockUser",Gj="/users/unblockUser",fu="/users/searchusers",Jj="/users/search-current-company",Yj="/profile",Zj="/profile/profile-reviews",Kj="/profile/businessCard",Qj="/profile/about",Xj="/profile/quote",ey="/profile/resume-upload",sy="/profile/photo",ty="/profile/expertise",ay="/profile/experience",ny="/profile/experienceDelete",iy="/profile/education",oy="/profile/educationDelete",ry="/profile/milestone",ly="/profile/deletemilestone",cy="/profile/achievement",dy="/profile/deleteAchievement",my="/profile/placements",hy="/profile/social-link",uy="/profile/certifiedCourse",py="/profile/specialistProgram",gy="/profile/service",xy="/profile/deleteservice",fy="/profile/solution",jy="/profile/deletesolution",yy="/profile/client",by="/profile/deleteclient",vy="/profile/testimonial",_y="/profile/project",Ny="/profile/projects",wy="/profile/projectstatus",Sy="/profile/editprojects",ky="/profile/deleteprojects",Cy="/review/get-review",Ty="/review",Iy="/review/update-review",ju="/roles-and-permissions/get-admins-for",Ay="/roles-and-permissions/get-myadmins",Ey="/roles-and-permissions/create-roles",My="/roles-and-permissions/edit-roles",Py="/roles-and-permissions/delete-roles",Ry="/subscription/getsubscriptions",Ly="/subscription/getcurrentplans",Fy="/order/purchasehistory",By="/order",Oy="/cart/addtocart",Uy="/cart/getcart",Dy="/cart/updateCartItems",qy="/cart/removeitem",Vy="/cart/addGst",zy="/payment/createOrder",Wy="/payment/verify",$y="/payment/check-status",Hy="/meta-pixel/meta-verify-event",On="/conversations",Gy="/conversations/convo-req-update",yu="/messages",Jy="/friends",Yy="/friends/follow",Zy="/friends/unfollow",Ky="/friends/accept-request",Qy="/friends/cancel-request",Xy="/friends/declineRequest",eb="/refer/referral",Un="/refer/validate",oT="/notification",sb="/chatbot/my-inside-chats",tb="/users/check-resume",ab="/chatbot/inside",nb="/chatbot",ib="/chatbot/ambo-payment-status",ob="/chatbot/add-ambo-cart",rb="/profile/hr-designation",lb="/profile/refer-designation",cb="/profile/referrers-list",db="/profile/recruiter-list",mb="/servicerequest/post-servicerequest",hb="/serviceprovider/post-serviceprovider",ub="/serviceprovider/update-info",pb="/servicerequest/delete-request",gb="/servicerequest/viewedContactInfo",xb="/servicerequest/provider-info",fb="/serviceprovider/subscription-validity",jb="/servicerequest/get-service-providers",yb="/servicerequest/get-service-provider-bids",bb="/serviceprovider/get-my-service-requsts",vb="/serviceprovider/get-my-bid-status",_b="/serviceprovider/get-service-request-by-id",Nb="/serviceprovider/get-location-of-clients",wb="/serviceprovider/viewedClientContactInfo",Sb="/admin/collections",kb="/admin/admin-eteled",Cb="/serviceprovider/place-bid",Tb="/servicerequest/accept-bid",Ib="/chatbot/recruiter-free-resume-check",Ab="/chatbot/recruiter-view-resume",Eb="/chatbot/recruiter-payment-update",bu="/resume",Mb="/resume/download-count",Pb="/resume/import-resume",Rb="/resume/update-resume-for-jd",Lb="/resume/improve-resume-section",Fb="/resume/ai-credits",vu=async s=>{console.log(s,"log error");try{if(!(await $a.post(jf,{message:s.message,stack:s.stack,location:window.location.href,timestamp:new Date})).ok)throw new Error("Failed to log error");return}catch{}},Bb=503;$a.defaults.baseURL="https://api.tickbig.com/api";let z=$a.create({baseURL:"https://api.tickbig.com/api"});z.interceptors.request.use(async s=>{let t=Rs();const a=`Bearer ${t==null?void 0:t.accessToken}`;s.headers.authorization=a,s.headers.refresh=t==null?void 0:t.refreshToken;const i=localStorage.getItem("x-maintenance-key");return i&&(s.headers["x-maintenance-key"]=i),s},s=>{Promise.reject(s)});z.interceptors.response.use(async s=>s,async s=>{var n,r,l,c,o,p,h,d,u,m,f,v,N;if(((n=s==null?void 0:s.response)==null?void 0:n.status)===Bb)return!!localStorage.getItem("x-maintenance-key")||(localStorage.setItem("maintenance_mode","true"),localStorage.removeItem("token"),it.dispatch(ba())),window.location.pathname!=="/maintenance"&&(window.location.href="/maintenance"),Promise.reject(s);const t=Rs(),a=s.config,i=(r=a==null?void 0:a.url)==null?void 0:r.includes("/auth/logout");if((!t||t.accessToken===void 0)&&!i)return await hi(),Promise.reject(s);if(t!=null&&t.refreshToken&&((l=s==null?void 0:s.response)==null?void 0:l.status)===w2&&!a._retry){a._retry=!0;let _={accessToken:t.accessToken,refreshToken:t.refreshToken},x={headers:{"content-type":"application/json"},withCredentials:!0};const j=await z.post("/auth/refresh-access-token",_,x);if(((c=j==null?void 0:j.data)==null?void 0:c.statusCode)===Ke){let I=Rs();I.accessToken=(p=(o=j==null?void 0:j.data)==null?void 0:o.data)==null?void 0:p.accessToken,I.refreshToken=(d=(h=j==null?void 0:j.data)==null?void 0:h.data)==null?void 0:d.refreshToken,localStorage.setItem("token",JSON.stringify(I));let w=Ds();return!w&&!(w!=null&&w.connected)&&gu(),a.headers.authorization=`Bearer ${(m=(u=j==null?void 0:j.data)==null?void 0:u.data)==null?void 0:m.accessToken}`,a.headers.refresh=(v=(f=j==null?void 0:j.data)==null?void 0:f.data)==null?void 0:v.refreshToken,z(a)}else await hi()}return((N=s==null?void 0:s.response)==null?void 0:N.status)===S2&&await hi(),Promise.reject(s)});const hi=async()=>{try{await z.get("/auth/logout")}catch(s){await vu(s)}finally{localStorage.removeItem("token"),it.dispatch(ba())}},Ob=["Professional","Freelancer","Student"],Ub=["Homegrown Company","Registered Company"],Db=["College","Training Institute"],rT=[{value:"Immediate",label:"Immediate"},{value:"0 - 1 month",label:"0 - 1 month"},{value:"1 - 2 months",label:"1 - 2 months"},{value:"2 - 3 months",label:"2 - 3 months"}],lT=[{value:"Student",label:"Student"},{value:"Professional",label:"Professional"},{value:"Freelancer",label:"Freelancer"},{value:"College",label:"College"},{value:"Training Institute",label:"Training Institute"}],cT=[{value:"Student",label:"Student"},{value:"Professional",label:"Professional"},{value:"Freelancer",label:"Freelancer"},{value:"Homegrown Company",label:"Homegrown Company"},{value:"Registered Company",label:"Registered Company"},{value:"College",label:"College"},{value:"Training Institute",label:"Training Institute"}],qb=[{value:"Full-time",label:"Full-time"},{value:"Part-time",label:"Part-time"}],ui=[{value:"isOpenToWork",label:"Open to Work"},{value:"isHiring",label:"Hiring"},{value:"isOpenToConsult",label:"Open to Consult"},{value:"isOpenToFundraise",label:"Open to Fundraise"},{value:"isOpenToInvest",label:"Open to Invest"},{value:"wantToOutsource",label:"Want to Outsource"}],pi=[{value:"Student",label:"Student"},{value:"Professional",label:"Professional"},{value:"Freelancer",label:"Freelancer"},{value:"College",label:"College"},{value:"Training Institute",label:"Training Institute"},{value:"Homegrown Company",label:"Homegrown Company"},{value:"Registered Company",label:"Registered Company"}],dT=[{value:"Onsite",label:"On-site"},{value:"Remote",label:"Remote"}],mT=[{value:"Monthly",label:"Monthly"},{value:"Hourly",label:"Hourly"},{value:"Full Bid",label:"Full Bid"}],hT=[{value:"Monthly",label:"Monthly"},{value:"Hourly",label:"Hourly"}],uT=[{value:"Banks",label:"Banks"},{value:"Angel Investors",label:"Angel Investors"},{value:"Peer-to-peer degrading",label:"Peer-to-peer lending"},{value:"Venture capitalists",label:"Venture capitalists"},{value:"Private Equity Firm",label:"Private Equity Firm"}],Vb=[{label:"Accounting",value:"Accounting"},{label:"Airlines/Aviation",value:"Airlines/Aviation"},{label:"Alternative Dispute Resolution",value:"Alternative Dispute Resolution"},{label:"Alternative Medicine",value:"Alternative Medicine"},{label:"Animation",value:"Animation"},{label:"Apparel & Fashion",value:"Apparel & Fashion"},{label:"Architecture & Planning",value:"Architecture & Planning"},{label:"Arts and Crafts",value:"Arts and Crafts"},{label:"Automotive",value:"Automotive"},{label:"Aviation & Aerospace",value:"Aviation & Aerospace"},{label:"Banking",value:"Banking"},{label:"Biotechnology",value:"Biotechnology"},{label:"Broadcast Media",value:"Broadcast Media"},{label:"Building Materials",value:"Building Materials"},{label:"Business Supplies and Equipment",value:"Business Supplies and Equipment"},{label:"Capital Markets",value:"Capital Markets"},{label:"Chemicals",value:"Chemicals"},{label:"Civic & Social Organization",value:"Civic & Social Organization"},{label:"Civil Engineering",value:"Civil Engineering"},{label:"Commercial Real Estate",value:"Commercial Real Estate"},{label:"Computer & Network Security",value:"Computer & Network Security"},{label:"Computer Games",value:"Computer Games"},{label:"Computer Hardware",value:"Computer Hardware"},{label:"Computer Networking",value:"Computer Networking"},{label:"Computer Software",value:"Computer Software"},{label:"Construction",value:"Construction"},{label:"Consumer Electronics",value:"Consumer Electronics"},{label:"Consumer Goods",value:"Consumer Goods"},{label:"Consumer Services",value:"Consumer Services"},{label:"Cosmetics",value:"Cosmetics"},{label:"Dairy",value:"Dairy"},{label:"Defense & Space",value:"Defense & Space"},{label:"Design",value:"Design"},{label:"Education Management",value:"Education Management"},{label:"E-Learning",value:"E-Learning"},{label:"Electrical/Electronic Manufacturing",value:"Electrical/Electronic Manufacturing"},{label:"Entertainment",value:"Entertainment"}
14,{label:"Environmental Services",value:"Environmental Services"},{label:"Events Services",value:"Events Services"},{label:"Executive Office",value:"Executive Office"},{label:"Facilities Services",value:"Facilities Services"},{label:"Farming",value:"Farming"},{label:"Financial Services",value:"Financial Services"},{label:"Fine Art",value:"Fine Art"},{label:"Fishery",value:"Fishery"},{label:"Food & Beverages",value:"Food & Beverages"},{label:"Food Production",value:"Food Production"},{label:"Fund-Raising",value:"Fund-Raising"},{label:"Furniture",value:"Furniture"},{label:"Gambling & Casinos",value:"Gambling & Casinos"},{label:"Glass, Ceramics & Concrete",value:"Glass, Ceramics & Concrete"},{label:"Government Administration",value:"Government Administration"},{label:"Government Relations",value:"Government Relations"},{label:"Graphic Design",value:"Graphic Design"},{label:"Health, Wellness and Fitness",value:"Health, Wellness and Fitness"},{label:"Higher Education",value:"Higher Education"},{label:"Hospital & Health Care",value:"Hospital & Health Care"},{label:"Hospitality",value:"Hospitality"},{label:"Human Resources",value:"Human Resources"},{label:"Import and Export",value:"Import and Export"},{label:"Individual & Family Services",value:"Individual & Family Services"},{label:"Industrial Automation",value:"Industrial Automation"},{label:"Information Services",value:"Information Services"},{label:"Information Technology and Services",value:"Information Technology and Services"},{label:"Insurance",value:"Insurance"},{label:"International Affairs",value:"International Affairs"},{label:"International Trade and Development",value:"International Trade and Development"},{label:"Internet",value:"Internet"},{label:"Investment Banking",value:"Investment Banking"},{label:"Investment Management",value:"Investment Management"},{label:"Judiciary",value:"Judiciary"},{label:"Law Enforcement",value:"Law Enforcement"},{label:"Law Practice",value:"Law Practice"},{label:"Legal Services",value:"Legal Services"},{label:"Legislative Office",value:"Legislative Office"},{label:"Leisure, Travel & Tourism",value:"Leisure, Travel & Tourism"},{label:"Libraries",value:"Libraries"},{label:"Logistics and Supply Chain",value:"Logistics and Supply Chain"},{label:"Luxury Goods & Jewelry",value:"Luxury Goods & Jewelry"},{label:"Machinery",value:"Machinery"},{label:"Management Consulting",value:"Management Consulting"},{label:"Maritime",value:"Maritime"},{label:"Market Research",value:"Market Research"},{label:"Marketing and Advertising",value:"Marketing and Advertising"},{label:"Mechanical or Industrial Engineering",value:"Mechanical or Industrial Engineering"},{label:"Media Production",value:"Media Production"},{label:"Medical Devices",value:"Medical Devices"},{label:"Medical Practice",value:"Medical Practice"},{label:"Mental Health Care",value:"Mental Health Care"},{label:"Military",value:"Military"},{label:"Mining & Metals",value:"Mining & Metals"},{label:"Mobile Games",value:"Mobile Games"},{label:"Motion Pictures and Film",value:"Motion Pictures and Film"},{label:"Museums and Institutions",value:"Museums and Institutions"},{label:"Music",value:"Music"},{label:"Nanotechnology",value:"Nanotechnology"},{label:"Newspapers",value:"Newspapers"},{label:"Non-Profit Organization Management",value:"Non-Profit Organization Management"},{label:"Oil & Energy",value:"Oil & Energy"},{label:"Online Media",value:"Online Media"},{label:"Outsourcing/Offshoring",value:"Outsourcing/Offshoring"},{label:"Package/Freight Delivery",value:"Package/Freight Delivery"},{label:"Packaging and Containers",value:"Packaging and Containers"},{label:"Paper & Forest Products",value:"Paper & Forest Products"},{label:"Performing Arts",value:"Performing Arts"},{label:"Pharmaceuticals",value:"Pharmaceuticals"},{label:"Philanthropy",value:"Philanthropy"},{label:"Photography",value:"Photography"},{label:"Plastics",value:"Plastics"},{label:"Political Organization",value:"Political Organization"},{label:"Primary/Secondary Education",value:"Primary/Secondary Education"},{label:"Printing",value:"Printing"},{label:"Professional Training & Coaching",value:"Professional Training & Coaching"},{label:"Program Development",value:"Program Development"},{label:"Public Policy",value:"Public Policy"},{label:"Public Relations and Communications",value:"Public Relations and Communications"},{label:"Public Safety",value:"Public Safety"},{label:"Publishing",value:"Publishing"},{label:"Railroad Manufacture",value:"Railroad Manufacture"},{label:"Ranching",value:"Ranching"},{label:"Real Estate",value:"Real Estate"},{label:"Recreational Facilities and Services",value:"Recreational Facilities and Services"},{label:"Religious Institutions",value:"Religious Institutions"},{label:"Renewables & Environment",value:"Renewables & Environment"},{label:"Research",value:"Research"},{label:"Restaurants",value:"Restaurants"},{label:"Retail",value:"Retail"},{label:"Security and Investigations",value:"Security and Investigations"},{label:"Semiconductors",value:"Semiconductors"},{label:"Shipbuilding",value:"Shipbuilding"},{label:"Sporting Goods",value:"Sporting Goods"},{label:"Sports",value:"Sports"},{label:"Staffing and Recruiting",value:"Staffing and Recruiting"},{label:"Supermarkets",value:"Supermarkets"},{label:"Telecommunications",value:"Telecommunications"},{label:"Textiles",value:"Textiles"},{label:"Think Tanks",value:"Think Tanks"},{label:"Tobacco",value:"Tobacco"},{label:"Translation and Localization",value:"Translation and Localization"}
14,{label:"Transportation/Trucking/Railroad",value:"Transportation/Trucking/Railroad"},{label:"Utilities",value:"Utilities"},{label:"Venture Capital & Private Equity",value:"Venture Capital & Private Equity"},{label:"Veterinary",value:"Veterinary"},{label:"Warehousing",value:"Warehousing"},{label:"Wholesale",value:"Wholesale"},{label:"Wine and Spirits",value:"Wine and Spirits"},{label:"Wireless",value:"Wireless"},{label:"Writing and Editing",value:"Writing and Editing"},{label:"Others",value:"Others"}],pT=[{value:"Seed",label:"Seed"},{value:"Pre-Seed",label:"Pre-Seed"},{value:"Series A",label:"Series A"},{value:"Series B",label:"Series B"},{value:"Series C",label:"Series C"},{value:"Series D",label:"Series D"},{value:"Series N",label:"Series E+"}],zb=[{value:1,label:1},{value:2,label:2},{value:3,label:3},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:9,label:9},{value:10,label:10},{value:11,label:11},{value:12,label:12}],ra=[{value:"all",label:"All Reviews"},{value:"general",label:"Profile"},{value:"jobs",label:"Jobs"},{value:"projects",label:"Projects"},{value:"fundraising",label:"Fundraising"},{value:"investing",label:"Investing"}],gT=[{value:"all",label:"All"},{value:"jobs",label:"Job"},{value:"projects",label:"Project"},{value:"fundraisings",label:"Fundraising"},{value:"investings",label:"Investing"},{value:"profile",label:"Profile"}],gi=[{value:"Suggestion",label:"Suggestions"},{value:"My_Connections",label:"My Connections"},{value:"Followings",label:"Followings"}],xT=["application/pdf","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],fT=["application/zip","application/x-zip-compressed","application/x-7z-compressed","application/vnd.rar"],Wb=["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/vnd.ms-powerpoint"],$b="application/pdf",xi=[{name:"ProjectType",value:"ProjectType"},{name:"StaffAugmentation",value:"StaffAugmentation"}],jT=[{label:"Project Type",value:"ProjectType"},{label:"Staff Augmentation",value:"StaffAugmentation"}],yT=[{value:"INR",label:"INR"},{value:"USD",label:"USD"}],fi=["0 - 25","26 - 100","101 - 200","201 - 400","Above 400"],Hb=["image/tiff","image/gif","image/bmp","image/png","image/jpg","audio/mpeg","image/jpeg"],la=["Pre-Seed","Seed","Series A","Series B","Series C","Series D","Series E+"],Gb=[{module:"all",sum:0,count:0},{module:"general",sum:0,count:0},{module:"jobs",sum:0,count:0},{module:"projects",sum:0,count:0},{module:"fundraising",sum:0,count:0},{module:"investing",sum:0,count:0}],Jb=[{rating:5,count:0},{rating:4,count:0},{rating:3,count:0},{rating:2,count:0},{rating:1,count:0}],Yb=[{value:"01",label:"January"},{value:"02",label:"February"},{value:"03",label:"March"},{value:"04",label:"April"},{value:"05",label:"May"},{value:"06",label:"June"},{value:"07",label:"July"},{value:"08",label:"August"},{value:"09",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],Zb=Array.from({length:20},(s,t)=>{const a=new Date().getFullYear()-2+t;return{value:a.toString(),label:a.toString()}}),ks=s=>{if(!s)return"just now";const a=(Date.now()-new Date(s).getTime())/1e3;if(a<60)return"just now";if(a<3600){const i=Math.ceil(a/60);return`${i} ${i===1?"min":"mins"} ago`}else if(a<86400){const i=Math.ceil(a/3600);return`${i} ${i===1?"hour":"hours"} ago`}else if(a<604800){const i=Math.ceil(a/86400);return`${i} ${i===1?"day":"days"} ago`}else return new Date(s).toLocaleDateString()},bT=s=>{if(!Array.isArray(s))return"";const t=Array.from(new Set(s));return(t==null?void 0:t.map(i=>i.charAt(0).toUpperCase()+i.slice(1))).join(", ")},de=s=>{var t;return typeof s!="string"?"":(t=s.split(" "))==null?void 0:t.map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")},Kb=s=>{const{min:t,max:a}=s;return t===a&&t!==0?`${t} Years`:t===a?"Fresher":`${t} - ${a} Years`},kl=[{digits:4,number:1e3,letter:"K"},{digits:5,number:1e3,letter:"K"},{digits:6,number:1e5,letter:"L"},{digits:7,number:1e6,letter:"Mn"},{digits:8,number:1e6,letter:"Mn"},{digits:9,number:1e6,letter:"Mn"},{digits:10,number:1e9,letter:"Bn"},{digits:11,number:1e9,letter:"Bn"},{digits:12,number:1e9,letter:"Bn"},{digits:13,number:1e12,letter:"Tn"},{digits:14,number:1e12,letter:"Tn"},{digits:15,number:1e12,letter:"Tn"}],Xs=s=>{if(!s)return"Nil";for(let t=kl.length-1;t>=0;t--){const a=kl[t];if(s>=a.number){const i=s/a.number;
14return`${i%1===0?i.toLocaleString():i.toLocaleString(void 0,{maximumFractionDigits:1})} ${a.letter}`}}return s.toLocaleString()},Fa=s=>{const{min:t,max:a}=s,i=Xs(t),n=Xs(a);return t===a?i:`${i} - ${n}`},vT=(s,t)=>{let a=Fa(s),i=s.time==="Monthly"?"/ m":s.time==="Hourly"?"/ hr":"";return a=`${a}${i}`,a},Qb=s=>{let t;return s>=1e3?t=Math.floor(s/1e3)+"k":t=s,t},Dn=(s,t)=>{if(!(s!=null&&s.users))return"";const a=s.users.filter(n=>n._id!==t);if(a.length===0)return"You";if(a.length===1)return de(a[0].firstName);const i=a.map(n=>de(n.firstName));return i.length===2?i.join(" & "):`You & ${i.length} others`},Pt=(s,t=1e3)=>{let a;return(...i)=>{clearTimeout(a),a=setTimeout(()=>{s.apply(void 0,i)},t)}},Xb=s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),Ot=s=>["e","E","+","-","."].includes(s.key)&&s.preventDefault(),qn=(s,t)=>{const a=s==null?void 0:s.filter(i=>(i==null?void 0:i._id)===t);return!!(a&&(a==null?void 0:a.length)>0)},lt=(s,t)=>{var a,i;return[(a=s==null?void 0:s.users[0])==null?void 0:a._id,(i=s==null?void 0:s.users[1])==null?void 0:i._id].indexOf(t)===1?s==null?void 0:s.users[0]:s==null?void 0:s.users[1]},_u=(s,t)=>s==null?void 0:s.sort((a,i)=>{var n=a[t]?a[t]:new Date,r=i[t]?i[t]:new Date;return n<r?1:n>r?-1:0}),ev=s=>s==null?void 0:s.sort((t,a)=>{const i=new Date(parseInt(t._id.toString().substr(0,8),16)*1e3);return new Date(parseInt(a._id.toString().substr(0,8),16)*1e3)-i}),sv=s=>{let t=Math.floor(s/10)*10,a;return t!==0&&(a=`${t}+ `),a},_T=(s,t)=>s==null?void 0:s.includes(t),Zs=s=>{s.key==="Enter"&&s.preventDefault()},tv=s=>s?new Date(s).toLocaleString("default",{month:"2-digit",year:"numeric"}):"",zi=s=>{if(!s)return"Present";const t=new Date().toLocaleString("default",{month:"2-digit"}),a=new Date().getFullYear(),i=new Date(s),n=i.toLocaleString("default",{month:"2-digit"}),r=i.getFullYear();return r>a||r===a&&n>=t?"Present":`${n}/${r}`},av=s=>new Date(s).toLocaleDateString(),xn=s=>{let t="";return s!=null&&s.line1&&(t+=`${s.line1} `),s!=null&&s.line2&&(t+=`${s.line2} `),s!=null&&s.city&&(t+=`${s.city} `),s!=null&&s.state&&(t+=`${s.state} `),s!=null&&s.country&&(t+=`${s.country} `),s!=null&&s.pincode&&(t+=`${s.pincode} `),t},nv=s=>{var n,r,l,c,o,p;let t=(n=s==null?void 0:s.profile)==null?void 0:n.user,a=(r=s==null?void 0:s.profile)==null?void 0:r.businesscard,i=[];return t!=null&&t.firstName&&i.push(`TickBig - ${t==null?void 0:t.firstName} Profile`),t!=null&&t.firstName&&(t!=null&&t.lastName)&&(i.push(`TickBig - ${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} Profile`),i.push(` ${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} - ${t==null?void 0:t.subType} Profile`)),(l=a==null?void 0:a.address)!=null&&l.city&&i.push(`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} - ${(c=a==null?void 0:a.address)==null?void 0:c.city} Profile | TickBig`),a!=null&&a.designation&&i.push(`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} - ${a==null?void 0:a.designation} Profile | TickBig`),a!=null&&a.highestEducation&&(a!=null&&a.studentsCollegeName)&&i.push(`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} - ${a==null?void 0:a.highestEducation} @ ${a==null?void 0:a.studentsCollegeName}`),a!=null&&a.designation&&i.push(`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} - ${a==null?void 0:a.designation} Profile - TickBig`),(o=a==null?void 0:a.currentCompanyName)!=null&&o._id&&i.push(`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} - ${(p=a==null?void 0:a.currentCompanyName)==null?void 0:p.firstName} Profile - TickBig`),a!=null&&a.dummyCompany&&i.push(`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName} - ${a==null?void 0:a.dummyCompany} Profile - TickBig`),i},iv=s=>s==="Job Searching"?c1:s==="Referring"?m1:s==="Recruiting"?h1:s==="Investment"?u1:s==="Service Request"?d1:s==="Provide Service"?p1:r1,Ba=s=>s==="Job Searching"?x1:s==="Referring"?f1:s==="Recruiting"?j1:s==="Investment"?y1:s=="Service Request"?b1:s=="Provide Service"?v1:l1,ov=async s=>{const t=new Date(s),a=new Date;a.setDate(a.getDate()-30);const i=t>=a,n=new Date(t);n.setDate(t.getDate()+30);const r=n<new Date;return{isRecentPayment:i,expiryDate:rv(n),isExpired:r}},rv=s=>{const t=["January","February","March","April","May","June","July","August","September","October","November","December"],a=String(s.getUTCDate()).padStart(2,"0"),i=t[s.getUTCMonth()],n=s.getUTCFullYear();return`${a}/${i}/${n}`},Wi=s=>{if(!s)return!1;const t=new Date(s),a=new Date;return t.setHours(0,0,0,0),a.setHours(0,0,0,0),t>=a},lv=(s,t)=>{const a=s.split(","),i=a[0].match(/:(.*?);/)[1],n=atob(a[1]);let r=n.length;const l=new Uint8Array(r);for(;r--;)l[r]=n.charCodeAt(r);return new File([l],t,{type:i})},cv=s=>{var l,c,o,p;const t={};let a=0,i=0;const n=h=>h==null?!1:typeof h=="string"?h.trim()!=="":Array.isArray(h)?h.length>0:!0,r=h=>{a++;const d=n(h);return d&&i++,d};return t.personalDetails={fullName:r((l=s==null?void 0:s.personalDetails)==null?void 0:l.fullName),jobTitle:r((c=s==null?void 0:s.personalDetails)==null?void 0:c.jobTitle),phone:r((o=s==null?void 0:s.personalDetails)==null?void 0:o.phone),email:r((p=s==null?void 0:s.personalDetails)==null?void 0:p.email)},t.professionalSummary={professionalSummary:r(s==null?void 0:s.professionalSummary)},t.education=((s==null?void 0:s.education)||[]).map((h,d)=>({index:d,degree:r(h.degree),institution:r(h.institution)})),t.skills=((s==null?void 0:s.skills)||[]).map((h,d)=>({index:d,skillName:r(h.skillName)}
14)),t.workExperience=((s==null?void 0:s.workExperience)||[]).map((h,d)=>({index:d,role:r(h.role),company:r(h.company),responsibilities:r(Array.isArray(h.responsibilities)&&h.responsibilities.some(u=>n(u)))})),t.projects=((s==null?void 0:s.projects)||[]).map((h,d)=>({index:d,name:r(h.name),projectResponsibility:r(Array.isArray(h.projectResponsibility)&&h.projectResponsibility.some(u=>n(typeof u=="string"?u:u==null?void 0:u.value)))})),t.certifications=((s==null?void 0:s.certifications)||[]).map((h,d)=>({index:d,name:r(h.name)})),t.achievements=((s==null?void 0:s.achievements)||[]).map((h,d)=>({index:d,achievementTitle:r(h.achievementTitle)})),{fieldStatus:t,score:{completedFields:i,totalFields:a,percentage:a===0?0:Math.round(i/a*100)}}};function dv({oldResumeScore:s,newResumeScore:t,impacts:a,selected:i}){var p,h,d;const n=t-s;let r=0,l=0;const c=(u,m)=>{typeof u!="number"||u<=0||(r+=u,m&&(l+=u))};if(c(a==null?void 0:a.professionalSummary,i.professionalSummary),c(a==null?void 0:a.skills,i.skills),(p=a==null?void 0:a.workExperience)==null||p.forEach((u,m)=>{var f;c(u,(f=i.workExperience)==null?void 0:f[m])}),(h=a==null?void 0:a.projects)==null||h.forEach((u,m)=>{var f;c(u,(f=i.projects)==null?void 0:f[m])}),(d=a==null?void 0:a.achievements)==null||d.forEach((u,m)=>{var f;c(u,(f=i.achievements)==null?void 0:f[m])}),r===0)return s;const o=l/r*n;return Math.round(Math.min(t,s+o))}const zs=Object.freeze({IMPORT_RESUME:25,UPDATE_RESUME_FOR_JD:50,IMPROVE_RESUME_SECTION:{professionalSummary:5,skills:10,achievements:10,workExperience:15,projects:15}}),mv=s=>{const a=new Date(s).getTime()+30*24*60*60*1e3,i=Date.now();if(i>=a)return"expired";const n=a-i,r=Math.ceil(n/(24*60*60*1e3));return r===1?"expires today":`${r} days remaining`},Nu=async s=>z.post("/upload/getuploadurl",s).then(t=>t.data).catch(t=>{throw t}),NT=async s=>z.post("/upload/deleteOldFileS3",{oldFileUrl:s}).then(t=>t.data).catch(t=>{throw t}),ya=async(s,t,a)=>{try{const i=t.name.split("."),n=Date.now()+"-"+i[0].replace(/[^0-9a-zA-Z.]/g,"_")+"."+i[i.length-1],l=await Nu({folderName:s,fieldname:n,fileMime:a});if(!l.s3PreUrl)throw console.error("Failed to get presigned URL:",l),new Error("Presigned URL not available");const o=await $a.create().put(l.s3PreUrl,t,{headers:{"Content-Type":a}});if((o==null?void 0:o.status)===Ke)return`https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/${s}/${n}`;throw console.error("Upload returned status:",o==null?void 0:o.status),new Error(`Upload failed with status: ${o==null?void 0:o.status}`)}catch(i){throw console.error("Error uploading file to AWS:",i),i}},ji=s=>t=>{t({type:uo,payload:{permissions:s}})},hv=s=>t=>{t({type:kd,payload:{roleToAdd:s}})},uv=s=>t=>{t({type:Cd,payload:{roleToUpdate:s}})},pv=s=>t=>{t({type:Td,payload:{roleToDelete:s}})},bt=s=>t=>{t({type:Nd,payload:s})},gv=s=>t=>{const{accessToken:a=null,userId:i=null,verified:n,userDetails:r,refreshToken:l=null}=s;t({type:Sd,payload:{signinData:s,accessToken:a,userId:i,verified:n,userDetails:r,refreshToken:l}})},ba=()=>s=>{s({type:ho})},xv=s=>t=>{t({type:uo,payload:{permissions:s}})},Vn=(s,t)=>a=>{a({type:wd,payload:{dataUrl:s,name:t}})},Qa=(s,t)=>a=>{a({type:uh,payload:{idToRemove:s,notCount:t}})},Ls=(s,t)=>a=>{a({type:ph,payload:{followObj:s,updateType:t}})},wu=s=>t=>{t({type:gh,payload:{getAllFriends:s}})},za=s=>t=>{t({type:xh,payload:{blockeds:s}})},Su=(s,t)=>a=>{a({type:fh,payload:{incomingIds:s,pendingIds:t}})},Ss=(s=0)=>t=>{t({type:Fm,payload:{updatecount:s}})},ku="/assets/loader_gif-ChKR1Mbz.gif";function os(){return e.jsx(Ie,{sx:{display:"flex"},style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh"},children:e.jsx("img",{src:ku,alt:"loader_gif",style:{width:"30%"}})})}const We=(s,t=[])=>(b.useEffect(()=>{typeof window<"u"&&s()},t),e.jsx("div",{children:"useEffectWindow"})),_o="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5887_6171)'%3e%3cpath%20d='M11.9818%2023.3853C16.9601%2023.3853%2020.9958%2019.4054%2020.9958%2014.4959C20.9958%209.58646%2016.9601%205.60657%2011.9818%205.60657C7.00349%205.60657%202.96777%209.58646%202.96777%2014.4959C2.96777%2019.4054%207.00349%2023.3853%2011.9818%2023.3853Z'%20stroke='%23EAEAEA'%20stroke-miterlimit='10'/%3e%3cpath%20d='M5.27441%208.56973L5.88532%209.31973C9.12688%2012.9591%2014.8869%2012.9468%2018.091%209.28284L18.6645%208.55743'%20stroke='%23EAEAEA'%20stroke-miterlimit='10'/%3e%3cpath%20d='M8.64062%2017.791C10.3487%2019.2172%2013.3783%2019.5%2015.3482%2017.791'%20stroke='%23EAEAEA'%20stroke-miterlimit='10'%20stroke-linecap='round'/%3e%3cpath%20d='M3.35423%2012.2705C2.3319%2011.9755%201.22229%2012.4427%200.848259%2013.291C0.723584%2013.5861%200.661246%2013.8935%200.636311%2014.2009C0.598908%2014.6681%200.623843%2015.1353%200.785921%2015.5779C0.947999%2016.0082%201.25969%2016.4263%201.69605%2016.6968C2.20722%2017.0164%202.81813%2017.0533%203.42904%2016.9919'%20stroke='%23EAEAEA'%20stroke-miterlimit='10'/%3e%3cpath%20d='M20.6344%2012.2705C21.6567%2011.9755%2022.7663%2012.4427%2023.1403%2013.291C23.265%2013.5861%2023.3274%2013.8935%2023.3523%2014.2009C23.3897%2014.6681%2023.3648%2015.1353%2023.2027%2015.5779C23.0406%2016.0082%2022.7289%2016.4263%2022.2926%2016.
146968C21.7814%2017.0164%2021.1705%2017.0533%2020.5596%2016.9919'%20stroke='%23EAEAEA'%20stroke-miterlimit='10'/%3e%3cpath%20d='M10.8219%205.54511C10.8219%205.54511%2010.6599%202.64347%2013.5648%201.59839'%20stroke='%23EAEAEA'%20stroke-miterlimit='10'/%3e%3cpath%20d='M8.85196%2013.8566H8.83949C8.47455%2013.8566%208.17871%2014.1483%208.17871%2014.5082V15.1721C8.17871%2015.532%208.47455%2015.8238%208.83949%2015.8238H8.85196C9.2169%2015.8238%209.51274%2015.532%209.51274%2015.1721V14.5082C9.51274%2014.1483%209.2169%2013.8566%208.85196%2013.8566Z'%20fill='%23EAEAEA'/%3e%3cpath%20d='M15.0854%2013.8566H15.0729C14.7079%2013.8566%2014.4121%2014.1483%2014.4121%2014.5082V15.1721C14.4121%2015.532%2014.7079%2015.8238%2015.0729%2015.8238H15.0854C15.4503%2015.8238%2015.7461%2015.532%2015.7461%2015.1721V14.5082C15.7461%2014.1483%2015.4503%2013.8566%2015.0854%2013.8566Z'%20fill='%23EAEAEA'/%3e%3cpath%20d='M14.25%202.63115C14.9868%202.63115%2015.5841%202.04215%2015.5841%201.31557C15.5841%200.589002%2014.9868%200%2014.25%200C13.5133%200%2012.916%200.589002%2012.916%201.31557C12.916%202.04215%2013.5133%202.63115%2014.25%202.63115Z'%20fill='%23EAEAEA'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5887_6171'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",fv="Main Scene",jv=0,yv=512,bv=512,vv={g:"@lottiefiles/creator 1.61.0"},_v=[{ty:4,nm:"Ellipse 1",sr:1,st:-7,op:152,ip:-7,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"st",bm:0,hd:!1,nm:"Stroke",lc:2,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:10},c:{a:0,k:[.9176,.9176,.9176]}}],ind:1},{ty:4,nm:"Ellipse 2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:2},{ty:4,nm:"Layer_1-21",sr:1,st:-40,op:153,ip:-40,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[211.8837551436369,211.8837551436368]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-93.82419041334396,255.99996611449004],t:102},{s:[256.1734652741634,255.8938881710301],t:123}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 5",np:6,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 5",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[-.43,-.2],[-.55,-2.87],[0,0],[2.99,-1.58],[32.57,-.48],[.48,6.08],[1.27,21.75],[-4.36,0],[0,0],[0,0],[-.24,.36],[-2.54,.25],[-10.88,.72],[0,-1.73],[0,0]],o:[[0,0],[.19,0],[2.68,1.25],[0,0],[-.3,3.55],[-32.43,1.49],[-6.33,-.94],[-1.7,-21.52],[-.28,-4.29],[0,0],[0,0],[0,-.13],[1.44,-2.14],[10.7,-1.04],[2.25,-.3],[0,0],[0,0]],v:[[81.69,21.82],[105.51,21.82],[109.04,23],[114.16,29.92],[114.16,102.17],[108.02,110.17],[10.22,110.83],[.54,99.04],[.57,32.03],[9.2,21.81],[33.02,21.81],[33.02,6.37],[34.36,4.05],[40.58,.32],[74.58,.39],[81.69,6.36],[81.69,21.8]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 6",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-.14,-.39],[0,0],[0,0]],o:[[0,0],[0,0],[0,.16],[0,0],[0,0],[0,0]],v:[[71.22,11.35],[44,11.35],[44,21.03],[43.48,21.82],[71.22,21.82],[71.22,11.35]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 7",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-1.42,.21],[0,0],[-6.19,.39],[1.78,-10.24],[0,0],[0,.83],[0,0]],o:[[0,0],[0,0],[0,1.16],[0,0],[-.75,-7.22],[6.76,-.43],[0,0],[1.22,.15],[0,0],[0,0]],v:[[103.15,33.33],[12.07,33.33],[12.07,51.91],[16.57,55.26],[45.05,55.31],[53.66,46.91],[70.7,55.31],[99.2,55.28],[103.16,51.91],[103.16,33.33]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 8",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[60.23,58.45],[54.99,58.45],[54.99,64.74],[60.23,64.74],[60.23,58.45]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 9",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[.57,-.2],[0,0],[0,0],[0,0],[.26,0],[0,0],[5.27,-.48],[2.14,.66],[-.14,3]],o:[[0,0],[-.16,0],[0,0],[0,0],[0,0],[-.73,-.3],[0,0],[.17,4.37],[-2.78,.26],[-3.62,-1.11],[0,0]],v:[[45.05,66.31],[13.38,66.31],[12.07,65.79],[12.07,99.81],[103.15,99.81],[103.15,65.79],[101.32,66.31],[70.17,66.31],[65.22,75.23],[48.16,74.97],[45.05,66.31]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.08187152500955,55.449917661191165]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,tp:2},{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[211.8837551436369,211.8837551436368]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.55,y:.06},i:{x:.68,y:.19},s:[256.1734652741634,255.8938881710301],t:3},{s:[596.3120320690649,255.99993616211023],t:24}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}
14,shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 5",np:6,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 5",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[-.43,-.2],[-.55,-2.87],[0,0],[2.99,-1.58],[32.57,-.48],[.48,6.08],[1.27,21.75],[-4.36,0],[0,0],[0,0],[-.24,.36],[-2.54,.25],[-10.88,.72],[0,-1.73],[0,0]],o:[[0,0],[.19,0],[2.68,1.25],[0,0],[-.3,3.55],[-32.43,1.49],[-6.33,-.94],[-1.7,-21.52],[-.28,-4.29],[0,0],[0,0],[0,-.13],[1.44,-2.14],[10.7,-1.04],[2.25,-.3],[0,0],[0,0]],v:[[81.69,21.82],[105.51,21.82],[109.04,23],[114.16,29.92],[114.16,102.17],[108.02,110.17],[10.22,110.83],[.54,99.04],[.57,32.03],[9.2,21.81],[33.02,21.81],[33.02,6.37],[34.36,4.05],[40.58,.32],[74.58,.39],[81.69,6.36],[81.69,21.8]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 6",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-.14,-.39],[0,0],[0,0]],o:[[0,0],[0,0],[0,.16],[0,0],[0,0],[0,0]],v:[[71.22,11.35],[44,11.35],[44,21.03],[43.48,21.82],[71.22,21.82],[71.22,11.35]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 7",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-1.42,.21],[0,0],[-6.19,.39],[1.78,-10.24],[0,0],[0,.83],[0,0]],o:[[0,0],[0,0],[0,1.16],[0,0],[-.75,-7.22],[6.76,-.43],[0,0],[1.22,.15],[0,0],[0,0]],v:[[103.15,33.33],[12.07,33.33],[12.07,51.91],[16.57,55.26],[45.05,55.31],[53.66,46.91],[70.7,55.31],[99.2,55.28],[103.16,51.91],[103.16,33.33]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 8",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[60.23,58.45],[54.99,58.45],[54.99,64.74],[60.23,64.74],[60.23,58.45]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 9",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[.57,-.2],[0,0],[0,0],[0,0],[.26,0],[0,0],[5.27,-.48],[2.14,.66],[-.14,3]],o:[[0,0],[-.16,0],[0,0],[0,0],[0,0],[-.73,-.3],[0,0],[.17,4.37],[-2.78,.26],[-3.62,-1.11],[0,0]],v:[[45.05,66.31],[13.38,66.31],[12.07,65.79],[12.07,99.81],[103.15,99.81],[103.15,65.79],[101.32,66.31],[70.17,66.31],[65.22,75.23],[48.16,74.97],[45.05,66.31]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.08187152500955,55.449917661191165]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,tp:2},{ty:4,nm:"Ellipse 3",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:5},{ty:0,nm:"Project",sr:1,st:-18,op:159,ip:-18,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[37.50000703645043,55.500005637865286]},s:{a:0,k:[220.5079727189779,220.50797271897787]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-53.32890696905787,255.9999950097241],t:13},{o:{x:.22,y:.61},i:{x:.36,y:1},s:[256.0000070364504,256.0000056378653],t:31},{o:{x:.65,y:0},i:{x:.68,y:.19},s:[256.0000070364504,256.0000056378653],t:35},{s:[564.096534930383,255.9999950097241],t:49}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},w:75,h:111,refId:"precomp_Shape Layer - SVG_2v6PggdmWX_b8743617-3bb8-46a3-8f1e-701db25bafad",ind:6,tp:5},{ty:4,nm:"Ellipse 4",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:7},{ty:0,nm:"Funding",sr:1,st:-11,op:156,ip:-11,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.00000703645043,53.000005637865286]},s:{a:0,k:[215.4398212942922,215.4398212942921]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-87.83571809317829,256.00000441208397],t:40},{o:{x:.22,y:.61},i:{x:.68,y:.19},s:[256.0000070364504,256.0000056378653],t:60},{o:{x:.55,y:.06},i:{x:.68,y:.19},s:[256.0000070364504,256.0000056378653],t:64},{s:[602.3005043892306,256.00000441208397],t:82}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},w:114,h:106,refId:"precomp_Shape Layer - SVG_4_piySz2HP_0be2dcac-d422-42af-aaf7-5567289f2ba8",ind:8,tp:7},{ty:4,nm:"Ellipse 5",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}
14,shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:9},{ty:0,nm:"Investing",sr:1,st:-23,op:149,ip:-23,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[51.50000703645043,35.499993147097996]},s:{a:0,k:[238.37698815524945,238.37698815524945]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-87.83571809317829,255.99998896543696],t:73},{o:{x:.22,y:.61},i:{x:.36,y:1},s:[256.0000070364504,255.999993147098],t:90},{o:{x:.65,y:0},i:{x:.68,y:.19},s:[256.0000070364504,255.999993147098],t:95},{s:[598.6033460545034,255.99998896543696],t:109}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},w:103,h:71,refId:"precomp_Shape Layer - SVG_1n5NKfhUw5_a54115ef-c887-446d-ad77-cdfa10244420",ind:10,tp:9}],Nv="5.7.0",wv=30,Sv=150,kv=0,Cv=[{nm:"Nested Scene 1",id:"precomp_Shape Layer - SVG_4_piySz2HP_0be2dcac-d422-42af-aaf7-5567289f2ba8",layers:[{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.07752473800639,53.070903232778505]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[56.92302702997763,52.93502636341324]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 3",np:2,it:[{ty:"gr",bm:0,hd:!1,nm:"Group 1",np:2,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[-1.05,-.69],[5.63,-1.09],[.77,.25],[1.46,1.02],[-1.62,-5.48],[-2.91,-.95],[10.67,-5.6],[.12,-.15],[.27,-.79],[1.79,2.55],[.34,.52],[.82,.5],[-1.03,3.67],[-2.06,-.38],[-.88,-1.25],[-.2,4.79],[3.8,1.28],[-9.64,6.39],[-.16,.24],[-.25,.85],[-1.43,-3.83],[-.23,-.28]],o:[[.15,.18],[2.82,1.86],[-.91,.18],[-.89,-.29],[-3.9,-2.75],[.99,3.34],[12.03,3.92],[-.98,.52],[-.2,.25],[-1.06,3.1],[-.99,-1.41],[-.1,-.16],[-2.93,-1.78],[.7,-2.49],[1.74,.32],[2.22,3.13],[.23,-5.48],[-10.5,-3.53],[1.13,-.75],[.28,-.43],[.98,-3.26],[.3,.79],[0,0]],v:[[61.42,29.79],[65.69,31.51],[69.41,43.4],[63.25,43.33],[60.48,39.85],[52.07,44.61],[62.67,48.6],[65.15,74.58],[61.4,75.78],[61.11,78.35],[53.28,79.36],[52.41,75.81],[48.88,74.39],[41.64,63.08],[50.15,61.14],[52.48,64.54],[62.43,62.43],[51.69,56.47],[47.11,32.05],[52.43,29.81],[52.6,27.12],[61.12,27.25],[61.42,29.81]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[56.993037188324706,52.76724019015404]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[56.993037188324706,52.76724019015404]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",bm:0,hd:!1,nm:"Group 2",np:3,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 2",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[-7.12,-6.96],[17.19,-34.68],[10.59,-10.8],[5.53,3.17],[0,0],[-29.71,3.39]],o:[[9.98,-1.14],[28.7,-26.52],[-5.99,12.09],[-3.25,3.31],[0,0],[-21.76,-19.67],[0,0]],v:[[29.97,.31],[56.4,9.54],[110.17,51.34],[68.11,96.8],[54.29,105.44],[11.59,62.17],[29.97,.31]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 3",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[-12.33,-14.7],[-7.8,-7.97],[-5.15,-4.37],[-6.12,6.21],[-2.68,8.18],[19.45,-14.71],[2.17,-.93],[4.41,2.98],[6.12,-.84]],o:[[-19.28,2.64],[7,8.36],[4.77,4.87],[6.22,-6.12],[6.76,-6.86],[7.33,-22.29],[-1.83,1.38],[-6.29,2.71],[-4.99,-3.38],[0,0]],v:[[31.01,11.24],[17.32,52.27],[42.06,78.07],[56.85,92.35],[75.43,73.91],[101.7,43.39],[65.56,16.11],[59.96,20.93],[46.92,15.38],[31,11.25]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[57.07752473800639,53.070903232778505]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.07752473800639,53.070903232778505]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"tr",a:{a:0,k:[57.07752473800639,53.070903232778505]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.07752473800639,53.070903232778505]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"Nested Scene 2",id:"precomp_Shape Layer - SVG_1n5NKfhUw5_a54115ef-c887-446d-ad77-cdfa10244420",layers:[{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[51.66668383463974,35.395720222091654]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[51.66668383463974,35.395720222091654]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}
14,shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 4",np:2,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 4",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[1.56,1.02],[0,0],[0,0],[-2.71,4.16],[0,0],[-1.93,-1.28],[0,0],[0,0],[0,0],[.26,1.29],[-3.66,.31],[-4.63,-.43],[-.31,-2.6],[-.48,-7.42],[2.43,2.27],[0,.12],[0,0]],o:[[0,0],[-1.62,.92],[0,0],[0,0],[-4.25,2.32],[0,0],[1.92,-1.15],[0,0],[0,0],[0,0],[-1.2,0],[-.83,-4.2],[4.66,-.4],[2.34,.22],[.85,7.24],[-1.02,3.03],[-.25,-.23],[0,0],[0,0]],v:[[94.33,16.53],[60.64,50.78],[55.89,50.61],[40.99,36.09],[6.86,70.15],[.82,63.7],[38.32,25.54],[43.61,25.49],[58.38,40.22],[88.09,9.48],[78.74,9.48],[74.8,6.36],[80.38,.33],[98.7,.33],[103.06,3.87],[102.96,27.48],[95.59,29.62],[94.32,27.56],[94.32,16.55]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[51.66668383463974,35.395720222091654]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[51.66668383463974,35.395720222091654]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"Nested Scene 4",id:"precomp_Shape Layer - SVG_2v6PggdmWX_b8743617-3bb8-46a3-8f1e-701db25bafad",layers:[{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[37.41696841576976,55.45373983596977]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[37.41696841576976,55.45373983596977]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 6",np:4,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 10",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[.17,-1.81],[7.69,-.65],[1.33,14.52],[.49,1.41],[.62,.8],[.68,3.3],[2.6,9.96],[-29.46,-11.98],[7.34,-19.04],[1.28,-10.62],[1.96,-2.57],[.12,-.22]],o:[[-.49,.82],[-.69,7.63],[-13.26,1.14],[-.17,-1.81],[-.27,-.77],[-1.82,-2.36],[-1.96,-9.5],[-7.8,-29.98],[18.64,7.58],[-3.64,9.45],[-.36,2.95],[-.5,.66],[0,0]],v:[[56.53,87.39],[56.41,96.68],[42.47,110.67],[18.84,94.65],[18.75,88.13],[16.55,86.26],[14.64,74.46],[1.31,48.17],[51.18,2.89],[72.41,51.22],[59.53,76.94],[58.19,86.28],[56.53,87.4]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 11",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[-4.8,4.38],[-3.61,-2],[-3.76,-5.26],[2.75,-3.15],[0,0],[0,0],[-2.18,12.4],[14.13,-26.31],[-4.09,-16.85],[.13,-1.93],[0,0]],o:[[0,0],[-2.04,-3.47],[4.84,-4.43],[2.82,-2.26],[3.32,4.65],[0,0],[0,0],[-1.28,-13.81],[5.29,-30.19],[-11.1,20.66],[.45,1.86],[0,0],[0,0]],v:[[32.55,77.13],[32.55,57.58],[25.6,43.78],[37.81,49.17],[49.55,44.14],[42.2,57.59],[42.2,77.14],[48.81,77.14],[63.41,43.24],[14.18,24.99],[25.29,71.45],[25.95,77.14],[32.56,77.14]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 12",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-.36,-.22],[0,2.39],[0,0],[.25,.18]],o:[[0,0],[0,0],[0,.28],[1.66,1.04],[0,0],[0,-.11],[0,0]],v:[[45.76,88.31],[30.02,88.31],[30.02,97.2],[31.34,98.92],[45.25,97.7],[45.25,89.07],[45.76,88.31]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[37.41696841576976,55.45373983596977]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[37.41696841576976,55.45373983596977]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]}],Tv=[{cm:"Segment name 1",tm:0,dr:150}],Iv={nm:fv,ddd:jv,h:yv,w:bv,meta:vv,layers:_v,v:Nv,fr:wv,op:Sv,ip:kv,assets:Cv,markers:Tv},No="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M8.625%2012a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H8.25m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H12m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200h-.375M21%2012c0%204.556-4.03%208.25-9%208.25a9.764%209.764%200%200%201-2.555-.337A5.972%205.972%200%200%201%205.41%2020.97a5.969%205.969%200%200%201-.474-.065%204.48%204.48%200%200%200%20.978-2.025c.09-.457-.133-.901-.467-1.226C3.93%2016.178%203%2014.189%203%2012c0-4.556%204.03-8.25%209-8.25s9%203.694%209%208.25Z'%20/%3e%3c/svg%3e",wo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='m21%2021-5.197-5.197m0%200A7.5%207.5%200%201%200%205.196%205.196a7.5%207.5%200%200%200%2010.607%2010.607Z'%20/%3e%3c/svg%3e",Cu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M14.857%2017.082a23.848%2023.848%200%200%200%205.454-1.31A8.967%208.967%200%200%201%2018%209.75V9A6%206%200%200%200%206%209v.75a8.967%208.967%200%200%201-2.312%206.
14022c1.733.64%203.56%201.085%205.455%201.31m5.714%200a24.255%2024.255%200%200%201-5.714%200m5.714%200a3%203%200%201%201-5.714%200'%20/%3e%3c/svg%3e",Tu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M15%2019.128a9.38%209.38%200%200%200%202.625.372%209.337%209.337%200%200%200%204.121-.952%204.125%204.125%200%200%200-7.533-2.493M15%2019.128v-.003c0-1.113-.285-2.16-.786-3.07M15%2019.128v.106A12.318%2012.318%200%200%201%208.624%2021c-2.331%200-4.512-.645-6.374-1.766l-.001-.109a6.375%206.375%200%200%201%2011.964-3.07M12%206.375a3.375%203.375%200%201%201-6.75%200%203.375%203.375%200%200%201%206.75%200Zm8.25%202.25a2.625%202.625%200%201%201-5.25%200%202.625%202.625%200%200%201%205.25%200Z'%20/%3e%3c/svg%3e",zn=async({query:s,action:t,subType:a,permissions:i,pageNo:n,skip:r,limit:l})=>z.get(Wj+`?searchValue=${s}&pageNo=${n}&limit=${l}&skip=${r}`,{headers:{action:t,subType:a,permiss:JSON.stringify(i)}}).then(c=>c.data).catch(c=>{throw c}),Av=async({query:s,action:t,subType:a,permissions:i,pageNo:n,skip:r,limit:l,accountType:c=[],aboutFilter:o=[]})=>z.post(Dj+`?searchValue=${s}&pageNo=${n}&limit=${l}&skip=${r}`,{accountType:c,aboutFilter:o},{headers:{action:t,subType:a,permiss:JSON.stringify(i)}}).then(p=>p.data).catch(p=>{throw p}),Ev=async({action:s,subType:t,permissions:a,pageNo:i,limit:n,accountType:r=[],aboutFilter:l=[]})=>z.post(qj+`?pageNo=${i}&limit=${n}`,{accountType:r,aboutFilter:l},{headers:{action:s,subType:t,permiss:JSON.stringify(a)}}).then(c=>c.data).catch(c=>{throw c}),Mv=async({query:s,accountType:t})=>z.get(zj+`?searchValue=${s}`,{headers:{accountType:t}}).then(a=>a.data).catch(a=>{throw a}),Pv=async({query:s,pageNo:t=1,limit:a=10})=>z.get(Jj+`?searchValue=${s}&pageNo=${t}&limit=${a}`).then(i=>i.data).catch(i=>{throw i}),Rv=async({query:s,accountType:t,pageNo:a=1,limit:i=10})=>z.post(fu+`?searchValue=${s}&pageNo=${a}&limit=${i}`,{accountType:t}).then(n=>n.data).catch(n=>{throw n}),Lv=async()=>z.get(ju).then(s=>s.data).catch(s=>{throw s}),wT=async({itemId:s,to:t,module:a})=>z.post(eb+`/${s}`,{to:t,module:a}).then(i=>i.data).catch(i=>{throw i}),Iu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14.828'%20height='14.829'%20viewBox='0%200%2014.828%2014.829'%3e%3cpath%20id='Path_4429'%20data-name='Path%204429'%20d='M6,18,18,6M6,6,18,18'%20transform='translate(-4.586%20-4.586)'%20fill='none'%20stroke='%23d6dcdd'%20strokeLinecap='round'%20strokeLinejoin='round'%20strokeWidth='2'/%3e%3c/svg%3e",Fv=async s=>z.get(Zj+`/${Ee(s)}`).then(t=>t.data).catch(t=>{throw t}),So=async s=>z.get(Yj+`/${Ee(s)}`).then(t=>t.data).catch(t=>{throw t}),ST=async s=>z.get(_y+`/${Ee(s)}`).then(t=>t.data).catch(t=>{throw t}),Bv=async(s,t)=>z.patch(Qj+`/${Ee(s)}`,{about:t}).then(a=>a.data).catch(a=>{throw a}),Ov=async s=>z.patch(Xj,{quote:s}).then(t=>t.data).catch(t=>{throw t}),Uv=async(s,t)=>z.put(ry+`/${Ee(s)}`,{milestone:t}).then(a=>a.data).catch(a=>{throw a}),Dv=async(s,t)=>z.put(ly+`/${Ee(s)}`,{id:t}).then(a=>a.data).catch(a=>{throw a}),qv=async(s,t)=>z.put(Kj+`/${Ee(s)}`,{businessCardDetails:t}).then(a=>a.data).catch(a=>{throw a}),Vv=async(s,t)=>z.post(iy+`/${Ee(s)}`,{education:t}).then(a=>a.data).catch(a=>{throw a}),zv=async(s,t)=>z.put(gy+`/${Ee(s)}`,{services:t}).then(a=>a.data).catch(a=>{throw a}),Wv=async(s,t)=>z.put(xy+`/${Ee(s)}`,{id:t}).then(a=>a.data).catch(a=>{throw a}),$v=async(s,t)=>z.put(fy+`/${Ee(s)}`,{solutions:t}).then(a=>a.data).catch(a=>{throw a}),Hv=async(s,t)=>z.put(jy+`/${Ee(s)}`,{id:t}).then(a=>a.data).catch(a=>{throw a}),Gv=async(s,t)=>z.put(yy+`/${Ee(s)}`,{client:t}).then(a=>a.data).catch(a=>{throw a}),Jv=async(s,t)=>z.put(by+`/${Ee(s)}`,{id:t}).then(a=>a.data).catch(a=>{throw a}),Yv=async(s,t)=>z.put(uy+`/${Ee(s)}`,{certificateCourses:t}).then(a=>a.data).catch(a=>{throw a}),Zv=async(s,t)=>z.put(cy+`/${Ee(s)}`,{achievements:t}).then(a=>a.data).catch(a=>{throw a}),Kv=async(s,t)=>z.put(dy+`/${Ee(s)}`,{id:t}).then(a=>a.data).catch(a=>{throw a}),Qv=async(s,t)=>z.post(ty+`/${Ee(s)}`,{data:t}).then(a=>a.data).catch(a=>{throw a}
14),Xv=async(s,t)=>z.put(oy+`/${Ee(s)}`,{id:t}).then(a=>a).catch(a=>{throw a}),e3=async(s,t)=>z.put(ny+`/${Ee(s)}`,{id:t}).then(a=>a).catch(a=>{throw a}),s3=async(s,t,a)=>z.put(ky+`/${Ee(s)}`,{id:t}).then(i=>i).catch(i=>{throw i}),t3=async(s,t)=>z.put(my+`/${Ee(s)}`,{placements:t}).then(a=>a.data).catch(a=>{throw a}),a3=async(s,t)=>z.post(Ny+`/${Ee(s)}`,{projectDetails:t}).then(a=>a.data).catch(a=>{throw a}),n3=async(s,t)=>z.put(Sy+`/${Ee(s)}`,{projectDetails:t}).then(a=>a.data).catch(a=>{throw a}),kT=async(s,t,a)=>z.put(wy,{senderId:s,projectId:t,updateStatus:a}).then(i=>i.data).catch(i=>{throw i}),i3=async(s,t)=>z.put(hy+`/${Ee(s)}`,{socialLink:t}).then(a=>a.data).catch(a=>{throw a}),o3=async(s,t)=>z.put(py+`/${Ee(s)}`,{specialistPrograms:t}).then(a=>a.data).catch(a=>{throw a}),r3=async(s,t)=>z.post(ay+`/${Ee(s)}`,{experience:t}).then(a=>a.data).catch(a=>{throw a}),l3=async(s,t)=>z.post(vy+`/${Ee(s)}`,{testimonials:t}).then(a=>a.data).catch(a=>{throw a}),c3=async s=>z.get(Cy+`/${Ee(s)}`).then(t=>t.data).catch(t=>{throw t}),d3=async(s,t)=>z.put(`${sy}/${Ee(s)}`,t).then(a=>a.data).catch(a=>{throw a}),Au=async s=>z.put(`${ey}`,s).then(t=>t.data).catch(t=>{throw t}),m3=gs(Ki)({"& .MuiRating-iconFilled":{color:"var(--accent-color-star)"}}),ua=({data:s,size:t})=>e.jsx(m3,{name:"customized-color",precision:.1,icon:e.jsx(fn,{fontSize:"inherit"}),size:t,emptyIcon:e.jsx(fn,{fontSize:"inherit",style:{color:"var(--color-grey-700)"}}),value:s,readOnly:!0}),h3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_2'%20data-name='Layer%202'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2055.84%2055.84'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20none;%20stroke:%20%23a7aaab;%20strokeLinecap:%20round;%20strokeLinejoin:%20round;%20strokeWidth:%203px;%20}%20.cls-2%20{%20fill:%20%23a9a9a9;%20}%20%3c/style%3e%3c/defs%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cg%3e%3ccircle%20class='cls-1'%20cx='27.92'%20cy='27.92'%20r='26.42'/%3e%3cg%3e%3cpath%20class='cls-2'%20d='m38.39,38.06c-.66,0-1.31-.08-1.95-.27-1.07-.32-1.8-1.02-2.24-2.02-.63-1.43-.83-2.91-.59-4.45.03-.17.09-.25.29-.26.45-.01.91-.05,1.36-.1.31-.03.31-.04.34.26.11,1.21.68,2.15,1.7,2.8,1.53.98,3.56.68,4.76-.69.71-.81.81-1.73.43-2.72-.23-.62-.59-1.16-.99-1.68-.89-1.13-1.82-2.22-2.98-3.08-.7-.52-1.43-.98-2.21-1.35-.18-.09-.22-.19-.17-.37.25-.94.66-1.81,1.26-2.58.08-.11.15-.17.29-.07,1.91,1.22,3.68,2.62,5.16,4.35,1.23,1.44,2.22,3.03,2.75,4.88.34,1.18.39,2.36-.11,3.52-.44,1.01-1.17,1.77-2.09,2.35-1.24.8-2.6,1.25-4.06,1.42-.31.03-.62.04-.93.07Z'/%3e%3cpath%20class='cls-2'%20d='m31.1,34.59c0,2.44-1.98,4.43-4.37,4.49-2.5.06-4.63-1.97-4.62-4.54.01-2.37,2.07-4.44,4.43-4.44,2.53,0,4.55,1.99,4.55,4.5Z'/%3e%3cpath%20class='cls-2'%20d='m17.39,10.87c.02.6.04,1.17.06,1.75.07,2.04.13,4.09.2,6.13.04,1.18.07,2.36.1,3.53.04,1.72.09,3.43.13,5.15.04,1.71-.12,3.4-.43,5.08-.02.1-.08.22-.16.29-.74.61-1.5,1.22-2.25,1.82-.01.01-.04.02-.1.04.02-.28.04-.55.05-.81.06-1.26.15-2.52.16-3.78.02-1.77,0-3.54-.05-5.3-.04-1.55-.14-3.1-.24-4.66-.09-1.42-.2-2.84-.31-4.27-.05-.66-.12-1.33-.16-1.99,0-.11.04-.26.12-.33.9-.85,1.81-1.68,2.71-2.52.04-.04.1-.07.17-.12Z'/%3e%3cpath%20class='cls-2'%20d='m19.94,38.8c-.29.66-.56,1.28-.85,1.9-.03.06-.12.13-.19.14-1.9.35-3.74.91-5.53,1.64-.12.05-.25.1-.4.17.02-.08.03-.14.05-.2.16-.46.31-.93.5-1.38.07-.18.23-.32.36-.49-.14-.09-.3-.19-.45-.3-.85-.63-1.11-1.62-.67-2.59.3-.67.81-1.18,1.38-1.62.64-.5,1.33-.9,2.16-.98.39-.04.77,0,1.13.16.77.35,1.03,1.14.63,1.97-.13.26-.32.5-.5.74-.05.06-.13.11-.2.15-.29.14-.32.12-.45-.16-.18-.38-.45-.68-.8-.92-.23-.15-.47-.15-.71-.03-.36.18-.61.46-.75.84-.1.27-.01.51.23.65.41.24.88.29,1.33.31.9.04,1.8.04,2.7.05.26,0,.52-.04.78-.06.07,0,.15,0,.26,0Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",u3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23a7aaab'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M12%206v12m-3-2.818.879.659c1.171.879%203.07.879%204.242%200%201.172-.879%201.172-2.303%200-3.182C13.536%2012.219%2012.768%2012%2012%2012c-.725%200-1.45-.22-2.003-.659-1.106-.879-1.106-2.303%200-3.182s2.9-.879%204.006%200l.415.33M21%2012a9%209%200%201%201-18%200%209%209%200%200%201%2018%200Z'%20/%3e%3c/svg%3e",p3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23a7aaab'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M15%208.25H9m6%203H9m3%206-3-3h1.5a3%203%200%201%200%200-6M21%2012a9%209%200%201%201-18%200%209%209%200%200%201%2018%200Z'%20/%3e%3c/svg%3e",Cl=({curr:s})=>s==="INR"?e.jsx("img",{src:p3,alt:s,className:"currency-Icon"}):s==="USD"?e.jsx("img",{src:u3,alt:s,className:"currency-Icon"}):e.jsx("img",{src:h3,alt:s,className:"currency-Icon"}),Be=()=>{const s=Mt(),t=ge();return{gotoProSearch:()=>{s("/pro-search")},gotoSearchResults:()=>{s("/search")},gotoSignUp:()=>{s("/signup")},gotoSignIn:()=>{s("/signin")},gotoHome:()=>
14{s("/home")},gotoProfile:oe=>{s(`/profile/${oe}`)},gotoFullJob:oe=>{s(`/full-job/${Ee(oe)}`)},gotoFullProject:oe=>{s(`/full-project/${Ee(oe)}`)},gotoSingleFundraising:oe=>{s(`/fundraising/${Ee(oe)}`)},gotoSingleInvesting:oe=>{s(`/investing/${Ee(oe)}`)},gotoVerifyMobile:()=>{s("/verify-mobile")},gotoVerifyEmail:()=>{s("/verify-email")},gotoAllJobs:()=>{t(ht($h)),s("/jobs")},gotoOpenJobs:()=>{s("/open-jobs"),t(ht(Jh))},gotoAppliedJobs:()=>{s("/applied-jobs"),t(ht(Hh))},gotoSavedJobs:()=>{s("/saved-jobs"),t(ht(Gh))},gotoClosedJobs:()=>{s("/closed-jobs"),t(ht(C2))},gotoJobDash:oe=>{s(`/jobs-dashboard/${Ee(oe._id)}`)},gotoAllProjects:()=>{t(ut(Yh)),s("/projects")},gotoOpenProjects:()=>{s("/open-projects"),t(ut(Qh))},gotoSavedProjects:()=>{s("/saved-projects"),t(ut(Kh))},gotoAppliedProjects:()=>{s("/applied-projects"),t(ut(Zh))},gotoClosedProjects:()=>{s("/closed-projects"),t(ut(Jg))},gotoProjectDash:oe=>{s(`/project-dash/${Ee(oe._id)}`)},gotoAllFundraisings:()=>{t(Jt(Xh)),s("/fundraising")},gotoOpenFundraisings:()=>{s("/open-fundraising"),t(Jt(eu))},gotoClosedFundraisings:()=>{s("/closed-fundraising"),t(Jt(Xg))},gotoSavedFundraisings:()=>{s("/saved-fundraisings"),t(Jt(Qg))},gotoAllInvestings:()=>{t(pt(tu)),s("/investing")},gotoOpenInvestings:()=>{s("/open-investing"),t(pt(su))},gotoSavedInvestings:()=>{s("/saved-investing"),t(pt(SAVED_INVESTING))},gotoClosedInvestings:()=>{s("/closed-investing"),t(pt(CLOSED_INVESTING))},gotoAppliedInvestings:()=>{s("/applied-investing"),t(pt(APPLIED_INVESTING))},gotoNotifications:()=>{s("/notification")},gotoInvestingDash:oe=>{s(`/investing-dash/${Ee(oe)}`)},gotoSettings:()=>{s("/settings")},gotoLandingPage:()=>{s("/")},gotoConversation:oe=>{s(`/messages/${Ee(oe)}`)},gotoMessages:()=>{s("/messages")},gotoFollow:()=>{s("/follow")},gotoAdmin:()=>{s("/admin")},gotoRepostJob:oe=>{s(`/post-job/${Ee(oe)}`)},gotoRepostProject:oe=>{s(`/post-project/${Ee(oe)}`)},gotoRepostFundraising:oe=>{s(`/post-fundraising/${Ee(oe)}`)},gotoRepostInvesting:oe=>{s(`/post-investing/${Ee(oe)}`)},gotoReviewPage:oe=>{s(`/review/${oe}`)},gotoPurchaseHistory:()=>{s("/purchasehistory")},gotoSubscription:()=>{s("/subscription")},gotoSecurity:()=>{s("/security")},gotoContact:()=>{s("/contact")},gotoabout:()=>{s("/about")},gotoPrivacy:()=>{s("/privacy")},gotoPreviousPage:()=>{s(-1)},gotoDefaultRoute:oe=>{s(`/${oe}`)},gotoViewUserHistory:oe=>{s(`/userhistory/${Ee(oe)}`)},gotoSuperAdmin:()=>{s("/superadmin")},gotoAmbo:()=>{s("/agent-ambo")},gotoAmboReport:oe=>{s(`/ambo/${oe}`)},gotoProfileFortuneCard:oe=>{s(`/fortune/${Ee(oe)}`)},gotonewchat:()=>{s("/newchat")},gotoBlogPost:oe=>s(`/blog/${oe}`),gotoBlog:()=>s("/blog"),gotoProvider:()=>s("/ambo-service-provider")}},g3=({item:s,index:t,itemType:a,handleSearchClose:i})=>{var v,N,_,x,j,I,w,y,k,S,g,E,C,T,A,R;Be();const n=ge(),{gotoProfile:r,gotoFullJob:l,gotoFullProject:c,gotoSingleFundraising:o,gotoSingleInvesting:p}=Be(),h=async P=>{var F;i(),r(P);let O=await So(P),M={profile:(F=O==null?void 0:O.data)==null?void 0:F.profile};const{profile:L}=M;n(Pn(L))},d=P=>{i(),l(P)},u=P=>{i(),c(P)},m=P=>{i(),o(P)},f=P=>{i(),p(P)};return e.jsxs(e.Fragment,{children:[a==="profile"&&(s==null?void 0:s.firstName)&&e.jsx(je,{container:!0,style:{backgroundColor:"var(--card-surface-2)",border:"1px solid var(--color-grey-700)",borderRadius:"10px",alignItems:"center",marginBottom:"10px"},children:e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsx("div",{className:"search_result_card",children:e.jsxs(e.Fragment,{children:[e.jsx(ss,{className:"navbar__profile--avatar",alt:s==null?void 0:s.firstName,src:s==null?void 0:s.avatar}),e.jsxs("div",{className:"settingdd__col cp",onClick:()=>h(s==null?void 0:s.tickbigLink),children:[(s==null?void 0:s.accountType)==="Individuals"?e.jsx("p",{className:"search_result_card__name",children:de((s==null?void 0:s.firstName)+" "+(s==null?void 0:s.lastName))}):e.jsx("p",{className:"search_result_card__name",children:de(s==null?void 0:s.firstName)}),e.jsx("div",{children:e.jsx(ua,{data:(N=(v=s==null?void 0:s.ratings)==null?void 0:v[3])==null?void 0:N.ratings,size:"small"})}),e.jsx("p",{className:"search_result_card__title",children:de(s==null?void 0:s.subType)})]})]})})})},t),a==="jobs"&&(s==null?void 0:s.designation)&&e.jsx(je,{container:!0,sx:{backgroundColor:"#252b2d",border:"1px solid gray",borderRadius:"10px",alignItems:"center",padding:"10px"},children:e.jsxs("div",{className:"search_result_card cp",onClick:()=>d(s==null?void 0:s._id),children:[e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"settingdd__col ",children:[e.jsx("p",{className:"search_result_card__name",children:de(s==null?void 0:s.designation)}),((_=s==null?void 0:s.postedBy[0])==null?void 0:_.accountType)==="Individuals"?e.jsx("p",{className:"search_result_card__title",children:de(((x=s==null?void 0:s.postedBy[0])==null?void 0:x.firstName)+" "+((j=s==null?void 0:s.postedBy[0])==null?void 0:j.lastName))}):e.jsx("p",{className:"search_result_card__title",children:de((I=s==null?void 0:s.postedBy[0])==null?void 0:I.firstName)}),e.jsxs("p",{className:"search_result_card__title",children:["Salary: ",e.jsx(Cl,{curr:(w=s==null?void 0:s.salary)==null?void 0:w.currency}),Fa({min:(y=s==null?void 0:s.salary)==null?void 0:y.min,max:(k=s==null?void 0:s.salary)==null?void 0:k.max})]})]})})}),e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsxs("div",{className:"search_result_rating",children:[e.jsxs("p",{className:"search_result_card__title",children:[e.jsx(_0,{className:"salary_icon_search"}),":"," ",Kb(s==null?void 0:s.experience)]}),e.jsx("br",{}),e.jsx("p",{className:"search_result_card__title",children:de(s==null?void 0:s.employmentType)}),e.jsxs("p",{className:"search_result_card__title",children:["Posted at: ",ks(s==null?void 0:s.createdAt)," "]})]})})]})},t),a==="project"&&(s==null?void 0:s.name)&&e.jsx(je,{container:!0,style:{backgroundColor:"#252b2d",border:"1px solid gray",borderRadius:"10px",alignItems:"center",padding:"10px"},children:e.jsxs("div",{className:"search_result_card cp",onClick:()=>u(s==null?void 0:s._id),children:[e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"settingdd__col",children:[e.jsx("p",{className:"search_result_card__name",children:de(s==null?void 0:s.name)}),e.jsxs("p",{className:"search_result_card__title",children:["Sector: ",de(s==null?void 0:s.sector)]})]})})}),e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsxs("div",{className:"search_result_rating",children:[e.jsx("p",{className:"search_result_card__title",children:de(s==null?void 0:s.engagementType)}),e.jsxs("p",{className:"search_result_card__title",children:["Salary: ",e.jsx(Cl,{curr:(S=s==null?void 0:s.pricing)==null?void 0:S.currency}),Fa({min:(g=s==null?void 0:s.pricing)==null?void 0:g.min,max:(E=s==null?void 0:s.pricing)==null?void 0:E.max})]}),e.jsxs("p",{className:"search_result_card__title",children:["Posted at: ",ks(s==null?void 0:s.createdAt)," "]})]})})]})},t),(s==null?void 0:s.companyName)&&a==="fundraising"&&e.jsx(je,{container:!0,sx:{backgroundColor:"#252b2d",border:"1px solid gray",borderRadius:"10px",alignItems:"center",padding:"10px"},children:e.jsxs("div",{className:"search_result_card cp",onClick:()=>m(s==null?void 0:s._id),children:[e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"settingdd__col",children:[e.jsx("p",{className:"search_result_card__name",children:de(s==null?void 0:s.companyName)}),e.jsx("p",{className:"search_result_card__title",children:de(s==null?void 0:s.companyPeriod)}),e.jsx("p",{className:"search_result_card__title",children:s==null?void 0:s.sector})]})})}),e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsxs("div",{className:"search_result_rating",children:[e.jsx("p",{className:"search_result_card__title",children:de(s==null?void 0:s.employmentType)}),e.jsxs("p",{className:"search_result_card__title",children:["Company Size:",Fa({min:(C=s==null?void 0:s.companySize)==null?void 0:C.min,max:(T=s==null?void 0:s.companySize)==null?void 0:T.max})]}),e.jsxs("p",{className:"search_result_card__title",children:["Posted at: ",ks(s==null?void 0:s.createdAt)]})]})})]})},t),a==="investing"&&(s==null?void 0:s.investorName)&&e.jsx(je,{container:!0,sx:{backgroundColor:"#252b2d",border:"1px solid gray",borderRadius:"10px",alignItems:"center",padding:"10px"},children:e.jsxs("div",{className:"search_result_card cp",onClick:()=>f(s==null?void 0:s._id),children:[e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"settingdd__col ",children:[e.jsx("p",{className:"search_result_card__name",children:de(s==null?void 0:s.investorName)}),e.jsx("p",{className:"search_result_card__title",children:de(s==null?void 0:s.investorType)}),e.jsxs("p",{className:"search_result_card__title",children:["Investment Experience: ",s==null?void 0:s.investmentExperience]})]})})}),e.jsx(je,{item:!0,xs:12,sm:6,md:6,children:e.jsxs("div",{className:"search_result_rating",children:[e.jsxs("p",{className:"search_result_card__title",children:["Investment Range:"," ",Fa({min:(A
14=s==null?void 0:s.investmentRange)==null?void 0:A.min,max:(R=s==null?void 0:s.investmentRange)==null?void 0:R.max})]}),e.jsxs("p",{className:"search_result_card__title",children:["Posted at: ",ks(s==null?void 0:s.createdAt)]})]})})]})},t)]})},he=()=>{const s=b.useRef(null),t=l=>{aa.isActive(s.current)||(s.current=aa.success(l))},a=l=>{aa.isActive(s.current)||(s.current=aa.warning(l))},i=l=>{aa.isActive(s.current)||(s.current=aa.error(l))};return{successToast:t,warningToast:a,errorToast:i,restrictCopyPaste:l=>{l.preventDefault(),i("Copy / Paste is not allowed")},errorHandle:l=>{var c,o,p,h,d,u,m,f,v,N,_,x,j,I,w,y,k,S,g,E,C,T,A;(o=(c=l==null?void 0:l.response)==null?void 0:c.data)!=null&&o.message?i((h=(p=l==null?void 0:l.response)==null?void 0:p.data)==null?void 0:h.message):(m=(u=(d=l==null?void 0:l.response)==null?void 0:d.data)==null?void 0:u.errors)!=null&&m.message?i((N=(v=(f=l==null?void 0:l.response)==null?void 0:f.data)==null?void 0:v.errors)==null?void 0:N.message):(j=(x=(_=l==null?void 0:l.response)==null?void 0:_.data)==null?void 0:x.errors[0])!=null&&j.msg?i((y=(w=(I=l==null?void 0:l.response)==null?void 0:I.data)==null?void 0:w.errors[0])==null?void 0:y.msg):l!=null&&l.message&&(l!=null&&l.status)||l!=null&&l.statusCode?i(l==null?void 0:l.message):((k=l==null?void 0:l.errors)!=null&&k.message||(S=l==null?void 0:l.errors)!=null&&S.msg)&&((g=l==null?void 0:l.errors)!=null&&g.status||(E=l==null?void 0:l.errors)!=null&&E.statusCode)&&i((C=l==null?void 0:l.errors)!=null&&C.message?(T=l==null?void 0:l.errors)==null?void 0:T.message:(A=l==null?void 0:l.errors)==null?void 0:A.msg)}}},ko=({showSearchModal:s,setShowSearchModal:t})=>{const{search:a,pageNo:i,totalPages:n,loading:r}=G(P=>P.search),l=ge(),{gotoSearchResults:c,gotoProSearch:o}=Be(),[p,h]=b.useState([]),[d,u]=b.useState(1),[m,f]=b.useState("profile"),[v,N]=b.useState([]),{userDetails:_,permissions:x}=G(P=>P.auth),{errorToast:j,successToast:I,warningToast:w,errorHandle:y}=he(),[k,S]=b.useState(!1),[g,E]=_e.useState(!1),C=()=>E(!1),T=()=>t(!1),A=async P=>{const{target:{value:O}}=P;h(O),S(!0)},R=Pt(async()=>{var P,O,M,L,F;if((p==null?void 0:p.length)>=2)try{const U=await zn({query:p,action:m,subType:_==null?void 0:_.subType,permissions:x,pageNo:i,limit:10});U!=null&&U.data&&((P=U==null?void 0:U.data)!=null&&P.usersData)&&(l(Uh((O=U==null?void 0:U.data)==null?void 0:O.usersData,m,p,(M=U==null?void 0:U.data)==null?void 0:M.currentPage,(L=U==null?void 0:U.data)==null?void 0:L.totalPages)),N((F=U==null?void 0:U.data)==null?void 0:F.usersData))}catch(U){y(U)}});return We(()=>{if(k){const P=setTimeout(()=>{S(!1)},700);return()=>clearTimeout(P)}else R()},[d,m,p,k]),e.jsx("div",{children:e.jsx(qe,{open:s,onClose:C,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsxs(Ie,{sx:R2,children:[e.jsx("div",{className:"jobSpecificComponent__modal-container1",children:e.jsxs("div",{className:"jobSpecificComponent__modal-container2",children:[e.jsx("i",{className:"jobSpecificComponent__modal-i fa-solid fa-magnifying-glass"}),e.jsx("div",{style:{flex:1,padding:"0px 10px 10px 40px"},children:e.jsx("input",{autoFocus:!0,placeholder:"Search",type:"search",className:"jobSpecificComponent__modal-search",onChange:P=>A(P),value:p})}),e.jsx("div",{onClick:T,className:"cp",children:e.jsx("img",{src:Iu,alt:"cross",style:{width:"15px"}})})]})}),e.jsx(Os,{sx:{border:"1px solid var(--text-color-secondary)"}}),e.jsx("div",{style:{padding:"11px"},onClick:()=>{t(),o()},children:e.jsx("button",{style:{backgroundColor:"var(--card-surface-2)",borderRadius:"15px",color:"var(--text-color-primary)",padding:"6px 10px",border:"none"},children:"Advance Search"})}),e.jsxs("div",{className:"custom__Scroll",children:[(v==null?void 0:v.length)>0&&(v==null?void 0:v.map((P,O)=>e.jsx(g3,{item:P,itemType:m,handleSearchClose:T},O))),(v==null?void 0:v.length)===0&&(p==null?void 0:p.length)>3&&e.jsx("p",{className:"no_notify text-dark",children:"No Data Found"})]}),v.length>5&&e.jsxs(e.Fragment,{children:[e.jsx(Os,{sx:{border:"1px solid var(--text-color-secondary)"}}),e.jsx("div",{className:"showall-container",onClick:()=>{t(),c()},children:e.jsx(Fe,{className:"cp",textAlign:"center",style:{color:"var(--text-color-primary)"},children:"See all Results"})})]})]})})})},Eu="/assets/College_New-BpxfxOkz.svg",Mu="/assets/Company_New-CcJMZ9TK.svg",x3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='86.553'%20height='106.919'%20viewBox='0%200%2086.553%20106.919'%3e%3cg%20id='Layer_1'%20data-name='Layer%201'%20transform='translate(-0.003%200.001)'%20opacity='0.7'%3e%3cg%20id='Group_10655'%20data-name='Group%2010655'%20transform='translate(0.003%20-0.001)'%3e%3cpath%20id='Path_28373'%20
14data-name='Path%2028373'%20d='M349.865,661.861v-4.534a1.338,1.338,0,0,0-1.337-1.337h0a1.338,1.338,0,0,0-1.337,1.337v6.209a1.338,1.338,0,0,0,1.337,1.337h6.209a1.338,1.338,0,0,0,1.337-1.337h0a1.338,1.338,0,0,0-1.337-1.337H350.2A.337.337,0,0,1,349.865,661.861Z'%20transform='translate(-305.768%20-577.726)'%20fill='%23a7aaab'/%3e%3cg%20id='Group_10654'%20data-name='Group%2010654'%20transform='translate(0%200)'%3e%3cpath%20id='Path_28374'%20data-name='Path%2028374'%20d='M80.836,549.327c1.413,0,2.723-.02,4.031.006a1.654,1.654,0,0,1,1.6,2.18,1.618,1.618,0,0,1-1.439,1.168,4.948,4.948,0,0,1-.6.012H2.072a3.383,3.383,0,0,1-.771-.051A1.7,1.7,0,0,1,.01,550.869a1.658,1.658,0,0,1,1.623-1.533c1.113-.027,2.226-.008,3.339-.01h.747c-.1-.989-.192-1.926-.295-2.862Q4.062,533.988,2.7,521.513q-.447-4.089-.908-8.177a6.242,6.242,0,0,1,6.36-7.169q35.1,0,70.2,0a6.269,6.269,0,0,1,6.414,7.287c-.624,5.35-1.176,10.708-1.762,16.061q-.979,8.948-1.964,17.9c-.067.61-.126,1.22-.2,1.917ZM43.3,517.42a12.014,12.014,0,1,0,11.986,12.015A12.025,12.025,0,0,0,43.3,517.42Z'%20transform='translate(-0.003%20-445.776)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28375'%20data-name='Path%2028375'%20d='M213.719,40.4a20.2,20.2,0,1,1,20.218-20.122A20.238,20.238,0,0,1,213.719,40.4Z'%20transform='translate(-170.476%200.001)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28376'%20data-name='Path%2028376'%20d='M105.11,336.816a18.762,18.762,0,0,1,1.026-5.705,20.681,20.681,0,0,1,13.391-13.261,1.081,1.081,0,0,1,1.218.229A23.374,23.374,0,0,0,151,318.04a.974.974,0,0,1,1.058-.23,20.828,20.828,0,0,1,14.516,18.557c.008.135,0,.271,0,.45H105.11Z'%20transform='translate(-92.57%20-279.835)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",f3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='103.173'%20height='83.741'%20viewBox='0%200%20103.173%2083.741'%3e%3cg%20id='Layer_1'%20data-name='Layer%201'%20transform='translate(0%200.026)'%20opacity='0.7'%3e%3cg%20id='Group_10652'%20data-name='Group%2010652'%20transform='translate(0%20-0.026)'%3e%3cpath%20id='Path_28364'%20data-name='Path%2028364'%20d='M0,149.042c.38-3.356.667-6.652,1.192-9.91a3.307,3.307,0,0,1,1.667-1.854q3.872-2.121,7.884-3.991c4.65-2.166,8.6-5.342,12.516-8.558.995-.815.875-2.929.032-4.228-2.5-3.853-5.148-7.631-6.322-12.179a2.877,2.877,0,0,1,.64-3,2.516,2.516,0,0,0,.425-1.542c.067-2.119-.14-4.268.13-6.357.812-6.3,5.235-10.2,11.757-10.347a20.866,20.866,0,0,1,5.97.685,10.844,10.844,0,0,1,8.044,10.722c.017,1.449.03,2.9-.012,4.348a3.831,3.831,0,0,0,.907,3.136,2.362,2.362,0,0,1,.287,1.884,17.091,17.091,0,0,1-1.379,4.258c-1.6,2.946-3.4,5.79-5.172,8.638a3.35,3.35,0,0,0,.547,4.265,57.682,57.682,0,0,0,14.538,9.4c1.944.83,3.763,1.944,5.645,2.921a3.111,3.111,0,0,1,1.759,2.844c.2,2.929.622,5.842.965,8.873H0Z'%20transform='translate(0%20-65.303)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28365'%20data-name='Path%2028365'%20d='M185.834,80.979V73.2c0-9.216-.02-18.434.035-27.649a3.546,3.546,0,0,1,.852-2.164c2.824-3.1,5.76-6.1,8.606-9.176a1.529,1.529,0,0,1,2.141-.4c1.089.577,2.249,1.02,3.658,1.644,0-1.787.022-3.408-.027-5.025-.007-.212-.352-.487-.6-.607q-8.879-4.273-17.774-8.513a1.289,1.289,0,0,0-.4,0V72.858c-2.1-3.641-5.61-4.8-8.811-6.324a2.6,2.6,0,0,1-1.724-2.789c.062-10.872.007-21.747.08-32.619a4.734,4.734,0,0,1,1.03-2.736c2.8-3.458,5.75-6.794,8.578-10.233a1.373,1.373,0,0,1,2.066-.407c1.022.58,2.116,1.03,3.5,1.689,0-2.284.025-4.313-.03-6.342a1.163,1.163,0,0,0-.635-.76q-8.876-4.28-17.774-8.508c-.077-.037-.2.015-.482.045V64.09c-3.039-2.286-5.72-4.273-8.341-6.337-.21-.165-.157-.95.04-1.292,1.514-2.649,3.271-5.172,4.6-7.909a32.467,32.467,0,0,0,2.044-6.467,3.188,3.188,0,0,0-.427-2.364c-.927-1.259-.76-2.611-.852-3.991a43.907,43.907,0,0,0-.66-6.6,12.312,12.312,0,0,0-5.7-7.829,2.01,2.01,0,0,1-1.124-2.126,10.179,10.179,0,0,0,0-2.481,8.814,8.814,0,0,1,2.769-7.916c2.5-2.539,4.685-5.387,6.949-8.149a1.339,1.339,0,0,1,1.949-.4q9.974,4.861,20,9.62a1.735,1.735,0,0,1,1.169,1.874c-.067,2.639.02,5.282-.045,7.921a1.921,1.921,0,0,0,1.294,2.119c3.951,1.807,7.834,3.761,11.769,5.6a1.626,1.626,0,0,1,1.107,1.764c-.067,2.171.03,4.35-.045,6.522a1.763,1.763,0,0,0,1.237,1.979c4.268,1.857,8.478,3.848,12.744,5.71
145a1.9,1.9,0,0,1,1.352,2.057c-.045,11.235-.027,22.472-.027,33.706v1.772l1.464.3v2.334h-5.85V81.626c0-11.08-.02-22.162.022-33.241a2.01,2.01,0,0,0-1.394-2.2c-5.352-2.346-10.66-4.8-15.985-7.2-.557-.252-1.129-.475-1.9-.795V83.5H183.305c-.065-.77-.125-1.519-.2-2.376l2.729-.16Z'%20transform='translate(-118.209%200.026)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28366'%20data-name='Path%2028366'%20d='M330.35,180.833c3.821,1.779,7.414,3.433,10.982,5.148a1.45,1.45,0,0,1,.632,1.047c.08,1.174.03,2.359.03,3.748-3.976-1.227-7.8-2.409-11.644-3.6V180.83Z'%20transform='translate(-247.802%20-135.638)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28367'%20data-name='Path%2028367'%20d='M330.4,233.385V227.41c3.928,1.052,7.751,2.079,11.574,3.1v4.193Z'%20transform='translate(-247.84%20-170.579)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28368'%20data-name='Path%2028368'%20d='M330.59,314.2h11.462v4.99H330.59Z'%20transform='translate(-247.982%20-235.682)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28369'%20data-name='Path%2028369'%20d='M330.4,276.54v-5.18l11.562.955v4.223H330.4Z'%20transform='translate(-247.84%20-203.546)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",j3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='78.394'%20height='91.846'%20viewBox='0%200%2078.394%2091.846'%3e%3cg%20id='Layer_1'%20data-name='Layer%201'%20opacity='0.7'%3e%3cg%20id='Group_10653'%20data-name='Group%2010653'%20transform='translate(0)'%3e%3cpath%20id='Path_28370'%20data-name='Path%2028370'%20d='M106.367,24.289c1.546,6.064,4.169,11.54,9.065,15.638,4.7,3.938,9.983,4,14.622.058,6.054-5.152,8.94-11.982,9.8-19.765a20.615,20.615,0,0,0,0-3.6,17.092,17.092,0,0,0-1.072-4.994C136.037,4.869,131.265.707,123.815,0h-1.87A12.5,12.5,0,0,0,119.2.351c-7.691,1.735-13.04,8.934-13.485,16.494a13.434,13.434,0,0,0-.015,2.947,20.629,20.629,0,0,0,.671,4.495Z'%20transform='translate(-83.675)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28371'%20data-name='Path%2028371'%20d='M78.367,235.931c-.231-2.5-.449-5.012-.6-7.527a110.253,110.253,0,0,0-1.65-12.772c-.943-5.347-3.177-8.778-6.866-10.8-5.6-3.071-11.286-5.761-17.024-8.254-.549-.237-.844.094-1.2.461-3.643,3.743-7.309,7.446-10.916,11.259-.775.821-1.23.769-1.993-.033-3.639-3.834-7.344-7.544-11.006-11.336a.9.9,0,0,0-1.214-.278c-1.619.763-3.273,1.388-4.9,2.138a94.68,94.68,0,0,0-13.67,7.2,8.929,8.929,0,0,0-3.558,4.046,29.016,29.016,0,0,0-1.825,6.234A131.948,131.948,0,0,0,0,234.526q.016,1.627.029,3.254c.592,3.069,2.278,9.723,4.5,9.723q34.535.009,69.066,0c.208,0,.418,0,.623-.017,2.34-.214,4.435-8.454,4.148-11.558Z'%20transform='translate(0%20-155.662)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28372'%20data-name='Path%2028372'%20d='M173.58,292.234l-4.21-28.958c-.066-.451-.351-.775-.684-.775H167c-.335,0-.621.328-.686.781L162.691,289l-.48,3.4a1.015,1.015,0,0,0,.524,1.124.57.57,0,0,0,.168.027l1.829-.029,8.171-.131a.574.574,0,0,0,.387-.175.993.993,0,0,0,.272-.52,1.312,1.312,0,0,0,.017-.461Z'%20transform='translate(-128.492%20-207.95)'%20fill='%23ebebeb'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",y3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='84.77'%20height='110.549'%20viewBox='0%200%2084.77%20110.549'%3e%3cg%20id='Layer_1'%20data-name='Layer%201'%20transform='translate(-0.002%200.004)'%20opacity='0.7'%3e%3cg%20id='Group_10646'%20data-name='Group%2010646'%20transform='translate(0.002%20-0.004)'%3e%3cpath%20id='Path_28292'%20data-name='Path%2028292'%20d='M41.559,270.025a98.214,98.214,0,0,1-31.183-5.507,45.32,45.32,0,0,1-8.8-4.6,3.134,3.134,0,0,1-1.544-2.9c.036-2.163-.058-4.327-.021-6.487a10.493,10.493,0,0,1,2.552-6.867,29.705,29.705,0,0,1,4.527-4.36,66.105,66.105,0,0,1,20.041-10.15c.874-.27,1.329-.215,1.745.74,1.026,2.361,2.209,4.655,3.332,6.976a5.127,5.127,0,0,0,.34.622,1.512,1.512,0,0,0,2.7.182c.528-.637.971-1.344,1.441-2.027.689-1,1.35-2.021,2.06-3.007.655-.907,1.25-.944,2.063-.185.109.1.206.212.313.316,1.041,1.041,1.423,1.038,2.488-.03,1.156-1.156,1.654-1.12,2.579.221.974,1.414,1.927,2.846,2.91,4.257,1.168,1.675,2.449,1.587,3.338-.237,1.211-2.476,2.409-4.955,3.574-7.452.252-.54.525-.68,1.089-.51a53.477,53.477,0,0,1,11,4.482c3.134,1.787,6.211,3.678,9.264,5.6a20.385,20.385,0,0,1,2.8,2.318,13.223,13.223,0,0,1,4.594,10.565c-.058,1.836-.079,3.674-.121,5.513a3.185,3.185,0,0,1-1.781,2.588,45.724,45.724,0,0,1-12.617,5.826,104.945,104.945,0,0,1-28.686,4.115Z'%20transform='translate(-0.002%20-159.476)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28293'%20data-name='Path%2028293'%20d='M72.78,112.5c-.179-2.813-.319-5.592-.555-8.362a1.133,1.133,0,0,1,.9-1.4,33.735,33.735,0,0,1,10.781-2.045q7.947-.155,15.9.146a41.015,41.015,0,0,1,9.746,1.878c.555.161.489.479.464.865-.179,2.6-.334,5.2-.549,7.8-.064.762.015,1.192.932,1.3a2.035,2.035,0,0,1,1.739,1.987,11.967,11.967,0,0,1-2.391,9.03,1.7,1.7,0,0,1-1.912.795c-.209-.055-.661.3-.795.57a27.856,27.856,0,0,1-5.85,8.308,15.313,15.313,0,0,1-19.814.419,20.642,20.642,0,0,1-5.107-7.294c-.149-.322-.306-.64-.449-.965-.316-.719-.649-1.235-1.648-.989a1.817,1.817,0,0,1-1.429-.652,11.791,11.791,0,0,1-2.515-9.327,2.115,2.115,0,0,1,1.933-1.921c.2-.027.388-.094.61-.149Zm2.685-1.226c.191,2.215.237,4.382.595,6.5A26.61,26.61,0,0,0,80.845,129.5a12.434,12.434,0,0,0,18.433,1.775,22.54,22.54,0,0,0,5.82-9.124c1.5-4.072,1.6-8.353,1.769-12.617.009-.209-.328-.5-.57-.637-1.026-.586-2.121-1.065-3.107-1.708a25.049,25.049,0,0,1-2.27-1.86c-7.625,5.465-16.44,5.735-25.458,5.944Z'%20transform='translate(-48.834%20-70.099)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28294'%20data-name='Path%2028294'%20d='M98.616,17.563,87.27,24.1c0-.886.021-1.581,0-2.273a5.458,5.458,0,0,0-2.776-4.919,25.8,25.8,0,0,0-9.8-3.219,50.907,50.907,0,0,0-18.985.643,37.6,37.6,0,0,0-6.02,2.33,4.727,4.727,0,0,0-2.834,4.02c-.127,1.029-.27,2.054-.422,3.228L35.36,17.538c.725-.449,1.308-.837,1.918-1.183Q51.314,8.417,65.351.48A3,3,0,0,1,68.6.471q14.219,8.07,28.459,16.1c.507.285.98.625,1.554,1Z'%20transform='translate(-24.631%200.004)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28295'%20data-name='Path%2028295'%20d='M115.657,64.526a82.2,82.2,0,0,0-37.094.052c0-.4-.03-.95.006-1.493q.246-3.719.531-7.437a2.839,2.839,0,0,1,1.614-2.291,23.269,23.269,0,0,1,9.179-2.867,53.258,53.258,0,0,1,16.9.476,20.423,20.423,0,0,1,7.009,2.682,2.726,2.726,0,0,1,1.478,2.179c.158,2.919.261,5.841.382,8.7Z'%20transform='translate(-54.717%20-34.855)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28296'%20data-name='Path%2028296'%20d='M41.244,70.813a.9.9,0,0,1,.831,1.1c-.042.41.009.828-.012,1.241a1.588,1.588,0,0,0,.795,1.745,1.769,1.769,0,0,1,.309,2.661,1.347,1.347,0,0,0-.267,1.432,64.828,64.828,0,0,1,2.112,12.938c.064,1.332-.073,1.581-1.308,2.036a5.751,5.751,0,0,1-4.809-.276,1.22,1.22,0,0,1-.728-1.271,64.425,64.425,0,0,1,2.091-13.3,1.493,1.493,0,0,0-.255-1.6,1.835,1.835,0,0,1,.5-2.773,1.158,1.158,0,0,0,.631-1.208c-.027-.856,0-1.717.015-2.573,0-.049.052-.094.088-.161Z'%20transform='translate(-26.586%20-49.323)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='115.503'%20height='89.206'%20viewBox='0%200%20115.503%2089.206'%3e%3cg%20id='Layer_1'%20data-name='Layer%201'%20opacity='0.7'%3e%3cg%20id='Group_10659'%20data-name='Group%2010659'%3e%3cg%20id='Group_10657'%20data-name='Group%2010657'%3e%3cpath%20id='Path_28377'%20data-name='Path%2028377'%20d='M85.827,30.527V74.66a4.616,4.616,0,0,1-4.8,4.387H7.426A4.613,4.613,0,0,1,2.643,74.66V29.5a4.624,4.624,0,0,1,4.783-4.4H68.795V19.64H4.605A4.614,4.614,0,0,0,0,24.232V77.494a4.614,4.614,0,0,0,4.605,4.592H83.865a4.614,4.614,0,0,0,4.605-4.592V30.527ZM44.242,21.261a1.417,1.417,0,1,1-1.431,1.417A1.416,1.416,0,0,1,44.242,21.261Z'%20transform='translate(0%207.12)'%20fill='%23a7aaab'/%3e%3cg%20id='Group_10656'%20data-name='Group%2010656'%20transform='translate(51.123)'%3e%3cpath%20id='Path_28378'%20data-name='Path%2028378'%20d='M60.969,28.965,46.622,11.47,39.55,22.37s6.363,9.565,15.9,15.724a45.933,45.933,0,0,0,19.185,6.922l6.84-10.532L60.969,28.965h0Z'%20transform='translate(-36.784%204.158)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28379'%20data-name='Path%2028379'%20d='M101.9,41.571,63.027,31.093,37.52,0,76.475,11.663,101.9,41.571Z'%20transform='translate(-37.52)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28380'%20data-name='Path%2028380'%20d='M73.174,45.579,71.13,44.258,81.867,27.73l2.03,1.322L73.174,45.579Z'%20transform='translate(-25.335%2010.053)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28381'%20data-name='Path%2028381'%20d='M76.3,46.183A17.59,17.59,0,0,1,65.13,53.827c5.11-4.537,1.008-8.775,3.488-12.6,1.5-2.3,5.723-2.739,6.458-1.553,2.589.613,2.957,3.842,1.226,6.513Z'
14%20transform='translate(-27.51%2014.151)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Group_10658'%20data-name='Group%2010658'%20transform='translate(12.242%2034.922)'%3e%3cpath%20id='Path_28382'%20data-name='Path%2028382'%20d='M68.835,37.954a12.96,12.96,0,0,1-.967.967Q59.692,45.012,51.5,51.1c-.477.368-.749.64-.6,1.349a2.184,2.184,0,0,1-.927,2.357c-2.1,1.581-4.21,3.188-6.363,4.742a3.876,3.876,0,0,1-5-.531,36.569,36.569,0,0,1-2.4-3.093c-.055.695-.136,1.254-.123,1.812q.164,7.4.313,14.8c.027,1.008.055,2.03.068,3.038H27.659c-.055-.545-.123-1.09-.177-1.635-.041-.436.3-1.294-.559-1.294-.886-.014-.5.845-.559,1.281-.055.559-.123,1.1-.191,1.649H17.385c.027-1.008.041-2.03.068-3.038q.123-7.521.273-15.056c0-.463-.082-.94-.123-1.417a1.536,1.536,0,0,0-.245-.041c-.382,1.294-.777,2.562-1.1,3.856-.722,2.875-1.39,5.75-2.085,8.611A2.686,2.686,0,0,1,9.8,69.933a2.536,2.536,0,0,1-.8-1.758,159.566,159.566,0,0,1,4.074-21.569c1.281-4.714,4.319-7.1,8.925-7.9A23.719,23.719,0,0,1,35.33,39.766a7.505,7.505,0,0,1,4.578,4.66c.858,2.752,1.594,5.559,2.384,8.339.027.136.082.286.15.531,1.444-.872,2.861-1.662,4.21-2.562a2.6,2.6,0,0,1,3.624.164q2.6-1.921,5.123-3.815c4.006-2.984,7.985-5.954,12-8.925A6.282,6.282,0,0,1,68.59,37.6c.082.109.164.245.245.354Z'%20transform='translate(-8.985%20-21.29)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_28383'%20data-name='Path%2028383'%20d='M32.545,33.833a8.2,8.2,0,1,1-16.405-.014,8.2,8.2,0,0,1,16.405,0Z'%20transform='translate(-6.391%20-25.63)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ks=s=>s==="Student"?y3:s==="Professional"?j3:s==="Freelancer"?x3:s==="Homegrown Company"?f3:s==="Registered Company"?Mu:s==="College"?Eu:b3,CT=({project:s})=>{var r,l,c,o,p,h,d;const{user:t}=G(u=>u.auth),{gotoFullProject:a}=Be(),i=s==null?void 0:s.engagementType,n=(r=s==null?void 0:s.appliedDetails)==null?void 0:r.find(u=>{var m,f;return((m=u==null?void 0:u.userId)==null?void 0:m._id)||((f=u==null?void 0:u.applyOnBehalfOf)==null?void 0:f._id)===t});return e.jsx(e.Fragment,{children:i==="ProjectType"?e.jsx(e.Fragment,{children:e.jsx(Fs,{sx:{maxWidth:450,bgcolor:"#2f3639",borderRadius:6},children:e.jsxs(xt,{sx:{minHeight:400},children:[e.jsx(ws,{sx:{width:"100%",maxWidth:360,bgcolor:"#2f3639"},children:e.jsxs(fe,{alignItems:"flex-start",children:[e.jsx(Qr,{children:e.jsx(ss,{alt:"Remy Sharp",src:(l=s==null?void 0:s.userId)==null?void 0:l.avatar})}),e.jsx(He,{onClick:()=>a(s==null?void 0:s._id),primary:de(s==null?void 0:s.name),sx:{color:"#e8ebec"},secondary:e.jsx(e.Fragment,{children:e.jsx(Fe,{component:"span",variant:"body2",sx:{color:"#a7aaab",display:"inline"},children:s.subType})})})]})}),n&&e.jsx("div",{children:e.jsxs(ws,{children:[e.jsx(fe,{sx:{paddingBottom:0},children:e.jsxs(Fe,{variant:"body2",sx:{color:"#d6dcdd"},children:["Bid Amount :"," ",n!=null&&n.currency?n.currency:"INR",Xs(n.bidAmount)]})}),e.jsx(fe,{sx:{paddingBottom:0},children:e.jsxs(Fe,{variant:"body2",sx:{color:"#d6dcdd"},children:["No. of Days : ",n.days," Days"]})}),e.jsx(fe,{sx:{paddingBottom:0},children:e.jsxs(Fe,{variant:"body2",sx:{color:"#d6dcdd"},children:["Referred By :"," ",n!=null&&n.referredBy?de((c=n==null?void 0:n.referredBy)==null?void 0:c.firstName):"-"]})}),e.jsx(fe,{sx:{paddingBottom:0},children:e.jsxs(Fe,{variant:"body2",sx:{color:"#d6dcdd"},children:["Applied On Behalf of:"," ",n!=null&&n.applyOnBehalfOf?de((o=n==null?void 0:n.applyOnBehalfOf)==null?void 0:o.firstName):"-"]})})]})}),e.jsx(Tt,{direction:"row",spacing:2,sx:{padding:2},children:e.jsxs("button",{className:"dash_applied-btn",onClick:()=>window.open(n==null?void 0:n.proposalDocument),children:["Proposal Document",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1",stroke:"#0ADD87",width:"30px",class:"size-6",className:"dash_applied-img",children:e.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m.75 12 3 3m0 0 3-3m-3 3v-6m-1.5-9H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})})]})}),e.jsx(da,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#a7aaab",bgcolor:"#252b2d",padding:2,borderRadius:2,height:100},className:"custom__Scroll",children:n==null?void 0:n.proposalDescription})})]})})}):e.jsx(e.Fragment,{children:e.jsx(Fs,{sx:{maxWidth:450,bgcolor:"#2f3639",borderRadius:6},children:e.jsxs(xt,{sx:{minHeight:400},children:[e.jsx(ws,{sx:{width:"100%",maxWidth:360,bgcolor:"#2f3639"},children:e.jsxs(fe,{alignItems:"flex-start",children:[e.jsx(Qr,{children:e.jsx(ss,{alt:"Remy Sharp",src:(p=s==null?void 0:s.userId)==null?void 0:p.avatar})}),e.jsx(He,{onClick:()=>a(s==null?void 0:s._id),primary:de(s==null?void 0:s.name),sx:{color:"#e8ebec"},secondary:e.jsx(e.Fragment,{children:e.jsx(Fe,{component:"span",variant:"body2",sx:{color:"#a7aaab",display:"inline"},children:s.subType})})})]})}),e.jsx("div",{children:e.jsxs(ws,{children:[e.jsx(fe,{sx:{paddingBottom:0},children:e.jsxs(Fe,{variant:"body2",sx:{color:"#d6dcdd"},children:["Referred By:"," ",n!=null&&n.referredBy?de((h=n==null?void 0:n.referredBy)==null?void 0:h.firstName):"-"]})}),e.jsx(fe,{sx:{paddingBottom:0},children:e.jsxs(Fe,{variant:"body2",sx:{color:"#d6dcdd"},children:["Applied On Behalf of:"," ",n!=null&&n.applyOnBehalfOf?de((d=n==null?void 0:n.applyOnBehalfOf)==null?void 0:d.firstName):"-"]})})]})}),n&&e.jsxs(Tt,{direction:"row",spacing:2,sx:{padding:2},children:[e.jsxs("button",{className:"dash_applied-btn",onClick:()=>window.open(n==null?void 0:n.profile),children:["Profiles",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1",stroke:"#0ADD87",width:"30px",class:"size-6",className:"dash_applied-img",children:e.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m.75 12 3 3m0 0 3-3m-3 3v-6m-1.5-9H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})})]}),e.jsxs("button",{className:"dash_applied-btn",onClick:()=>window.open(n==null?void 0:n.profileTracker),children:["Profiles Tracker",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1",stroke:"#0ADD87",width:"30px",class:"size-6",className:"dash_applied-img",children:e.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m.75 12 3 3m0 0 3-3m-3 3v-6m-1.5-9H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})})]})]}),e.jsx(da,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#a7aaab",bgcolor:"#252b2d",padding:2,borderRadius:2,height:100},className:"custom__Scroll",children:n==null?void 0:n.description})})]})})})})},v3=gs("span")(({theme:s})=>({borderRadius:20,width:18,height:18,backgroundColor:s.palette.mode==="dark"?"#394b59":"#252b2d",border:"1px solid #d6dcdd",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:s.palette.mode==="dark"?"#30404d":"#252b2d"},"input:disabled ~ &":{boxShadow:"none",background:s.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)"}})),TT=gs(v3)({backgroundColor:"#01bf71",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))",border:"1px solid #01bf71","&::before":{display:"block",width:16,height:16,backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='black'/%3E%3C/svg%3E")`,content:'""'},"input:hover ~ &":{backgroundColor:"#01bf71"}}),at=gs(s=>e.jsx(Ha,{disableGutters:!0,elevation:0,square:!0,...s}))(({theme:s})=>({"&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"},backgroundColor:"#1e1e1e",color:"var(--text-color-primary)"})),nt=gs(s=>e.jsx(At,{expandIcon:e.jsx(qa,{sx:{color:"#a7aaab"}}),...s}))(({theme:s})=>({backgroundColor:"#1e1e1e",flexDirection:"row","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"},color:"var(--text-color-secondary)"})),_3=gs(Ys)(({theme:s})=>({padding:s.spacing(2),borderTop:"1px solid rgba(0, 0, 0, .125)",margin:"20px",color:"#d6dcdd"})),Nn=gs(Ys)(({theme:s})=>({padding:s.spacing(2),borderTop:"1px solid rgba(0, 0, 0, .125)"}));function bs({id:s,onClickFn:t,arg:a,name:i,cssStyle:n,loading:r}){const l=()=>{a?t(a):t()};return e.jsx(e.Fragment,{children:e.jsx("button",{id:s,className:n,onClick:l,disabled:r,children:r?"Loading...":i})})}const Co=({confirm:s,setConfirm:t,action:a,performer:i})=>{const n=()=>e.jsx(qe,{open:s,onClose:()=>t(!1),children:e.jsxs(Ie,{sx:jl,children:[e.jsx(Fe,{id:"logout-modal-title",variant:"h6",component:"h2",align:"center",sx:{color:"var(--text-color-primary)"},children:"Are you sure you want to logout?"}),e.jsx("div",{children:e.jsx("section",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"display-flex-aic-jcsb refer__footet--buttons2 confirmDel",style:{flexDirection:"column"},children:e.jsxs(Ie,{mt:2,display:"flex",justifyContent:"center",flexDirection:"column",children:[e.jsx(Ws,{id:"yes",disabled:!0,className:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",sx:{width:"100%",padding:"unset"}
14,children:"Logging out..."}),e.jsx(Ws,{id:"no",className:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",onClick:()=>t(!1),style:{width:"95%"},children:"Cancel"})]})})})})]})});return e.jsx(e.Fragment,{children:a==="logout web"?e.jsx(qe,{open:s,onClose:()=>t(!1),className:"my-modal",children:e.jsxs(Ie,{sx:jl,children:[e.jsx(Fe,{id:"logout-modal-title",variant:"h6",component:"h2",align:"center",sx:{color:"var(--text-color-primary)"},children:"Are you sure you want to logout?"}),e.jsx("div",{children:e.jsx("section",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"display-flex-aic-jcsb refer__footet--buttons2 ",children:e.jsxs(Ie,{mt:2,display:"flex",justifyContent:"center",children:[e.jsx(bs,{id:"no",onClickFn:()=>i(),cssStyle:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",name:"Yes"}),e.jsx(bs,{id:"yes",onClickFn:()=>t(!1),cssStyle:"display-flex-aljc-center  fdc ",name:"Cancel"})]})})})})]})}):e.jsx(n,{})})},N3=async s=>z.post(cf,s).then(t=>t.data).catch(t=>{throw t}),w3=async()=>z.get(df).then(s=>s.data).catch(s=>{throw s}),IT=we(s=>e.jsx(Jc,{elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...s}))(({})=>({"& .MuiPaper-root":{borderRadius:6,minWidth:180,backgroundColor:"#252b2d",color:"#d6dcdd",boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"&:active":{backgroundColor:"#252b2d",color:"#d6dcdd"}}}})),Wn=async s=>{const t=Ds();return await w3(),window.postMessage({type:"EXTENSION_LOGOUT"},"*"),window.localStorage.clear(),t.disconnect(),!0},S3=()=>{const s=Cs();Be();const{user:t}=G(n=>n.auth),a=G(n=>n.myCart),i=a.userId===t?a.products:[];return b.useState(null),e.jsx(e.Fragment,{children:e.jsx("main",{style:{marginTop:"20px"},children:e.jsx("div",{className:"setnav__container",children:e.jsxs("div",{className:"display-flex-aic-jcsb blocking_head",children:[s.pathname==="/settings"&&e.jsx("h1",{className:"settings_sub_heading",children:"Blocking"}),s.pathname==="/subscription"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"settings_sub_heading",children:"Subscription"}),e.jsxs(is,{to:"/cart",style:{position:"relative"},children:[e.jsx(Yc,{sx:{height:"35px",width:"35px",padding:"5px"},className:"setnav__cart"}),e.jsx("span",{className:"badge",children:(i==null?void 0:i.length)>0&&(i==null?void 0:i.length)})]})]}),s.pathname==="/purchasehistory"&&e.jsx("h1",{className:"settings_sub_heading",children:"Purchase History"}),s.pathname==="/admin"&&e.jsx("h1",{className:"settings_sub_heading",children:"Admin List"}),s.pathname==="/security"&&e.jsx("h1",{className:"settings_sub_heading",children:"Change Password"}),s.pathname==="/cart"&&e.jsx("h1",{className:"settings_sub_heading",children:"Subscription Cart"})]})})})})},va=({data:s,colordata:t})=>{const[a,i]=b.useState(!1),n=()=>{i(!1)},r=()=>{i(!0)};return e.jsx(e.Fragment,{children:e.jsx(ot,{PopperProps:{disablePortal:!0},onClose:n,open:a,disableFocusListener:!0,title:s,children:e.jsx(Yt,{onClick:r,children:e.jsx(Zc,{sx:{color:`${t}`}})})})})},Ee=s=>{const t=qi.AES.encrypt(s,"testingCrypto");return encodeURIComponent(t==null?void 0:t.toString())},Et=s=>{let t=decodeURIComponent(s);const a=qi.AES.decrypt(t,"testingCrypto");return qi.enc.Utf8.stringify(a)},$n=(s,t)=>(s/1e6).toFixed(2)<=t+.99,To=()=>{const{permissions:s,userDetails:t,user:a}=G(ae=>ae.auth),[i,n]=b.useState(!1),r=ae=>(B,W)=>{n(W?ae:!1)},{gotoProfile:l,gotoSignIn:c,gotoSettings:o,gotoAllJobs:p,gotoOpenJobs:h,gotoAppliedJobs:d,gotoSavedJobs:u,gotoClosedJobs:m,gotoAllProjects:f,gotoOpenProjects:v,gotoSavedProjects:N,gotoAppliedProjects:_,gotoClosedProjects:x,gotoAllFundraisings:j,gotoOpenFundraisings:I,gotoClosedFundraisings:w,gotoSavedFundraisings:y,gotoAllInvestings:k,gotoOpenInvestings:S,gotoSavedInvestings:g,gotoClosedInvestings:E,gotoAppliedInvestings:C,gotoPrivacy:T,gotoabout:A,gotoContact:R,gotoSubscription:P,gotoPurchaseHistory:O,gotoAdmin:M,gotoSecurity:L,gotoAmbo:F}=Be(),[U,Z]=b.useState(!1);let ne=Ds();const K=ge(),[te,q]=b.useState(!1),H=async()=>{await Wn()&&!window.localStorage.getItem("token")&&(K(ba()),c(),ne&&(ne.disconnect(),ne=null),window.location.reload())},X=Mt(),ee=()=>{t!=null&&t.tickbigLink?X(`/build-resume/${t.tickbigLink}`):errorToast("User profile link not found.")},se=ae=>()=>{Z(ae)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"navbar_profile-dropdown mobile__Navbar",style:{opacity:"1",transition:"all .2s"},children:e.jsx("div",{className:"navbar__profile-dropdown-content navbar__profile-dropdown-content-mobile",children:e.jsxs("div",{className:"settingdd__bg settingdd__bg-mobile",children:[e.jsxs("div",{className:"settingdd__avatar",children:[e.jsx(ss,{className:"navbar__profile--avatar",src:t!=null&&t.avatar?t==null?void 0:t.avatar:Ks(t==null?void 0:t.subType),sx:{width:40,height:40}}),e.jsxs("div",{className:"settingdd__col cp",onClick:()=>l(t.tickbigLink),children:[e.jsx("p",{className:"settingdd__name",children:de(t==null?void 0:t.username)}),e.jsx("p",{className:"settingdd__title",children:de(t==null?void 0:t.subType)})]})]}),t.accountType==="Individuals"&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:F,className:"resume-btn",style:{fontSize:"14px",fontWeight:"400",marginTop:"10px"},children:"Agent-Ambo"}),e.jsx("button",{onClick:ee,className:"resume-btn",style:{fontSize:"14px",fontWeight:"400"},children:"Resume Builder"})]}),(s==null?void 0:s.length)>0&&e.jsxs(at,{expanded:i==="panel1",onChange:r("panel1"),children:[e.jsx(nt,{children:e.jsxs(Fe,{fontSize:14,fontWeight:"medium",children:["Associate Account",e.jsx(va,{data:"Brands / Institution accounts for which you are an admin member",colordata:"#a7aaab"})]})}),e.jsx(Ys,{children:s==null?void 0:s.map((ae,B)=>{var W;return e.jsx("p",{className:"cp",onClick:()=>{var Q;return l((Q=ae==null?void 0:ae._created_by)==null?void 0:Q.tickbigLink)},children:de((W=ae==null?void 0:ae._created_by)==null?void 0:W.firstName)},B)})})]}),e.jsxs(at,{expanded:i==="panel2",onChange:r("panel2"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,children:"Jobs"})}),e.jsx(Ys,{onClick:se(!1),children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:p,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"All Jobs"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:h,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Open Jobs"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:m,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Closed Jobs"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:d,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Applied Jobs"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:u,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Saved Jobs"})})})]})})]}
14),e.jsxs(at,{expanded:i==="panel3",onChange:r("panel3"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,children:"Projects"})}),e.jsx(Ys,{onClick:se(!1),children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:f,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"All Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:v,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Open Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:x,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Closed Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:_,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Applied Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:N,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Saved Projects"})})})]})})]}),e.jsxs(at,{expanded:i==="panel4",onChange:r("panel4"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,children:"Fundraising"})}),e.jsx(Ys,{onClick:se(!1),children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:j,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"All Fundraising"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:I,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Open Fundraising"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:w,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Closed Fundraising"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:y,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Saved Fundraising"})})})]})})]}),e.jsxs(at,{expanded:i==="panel5",onChange:r("panel5"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,children:"Investing"})}),e.jsx(Ys,{onClick:se(!1),children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:k,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"All Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:S,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Open Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:E,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Closed Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:C,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Applied Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:g,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Saved Investing"})})})]})})]}),e.jsxs(at,{expanded:i==="panel6",onChange:r("panel6"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,fontWeight:"medium",children:"Settings"})}),e.jsx(Ys,{children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:o,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Connections"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:P,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Subscription"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:O,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"purchase History"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:M,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Admin"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:L,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Security"})})})]})})]}),e.jsx("div",{className:"settings_list-container",children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:P,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-muted)"}},primary:"Subscription"})})}),e.jsx(fe,{disablePadding:!0,onClick:se(!1),children:e.jsx(Je,{onClick:R,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-muted)"}},primary:"Contact"})})}),e.jsx(fe,{disablePadding:!0,onClick:se(!1),children:e.jsx(Je,{onClick:A,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-muted)"}},primary:"About "})})}),e.jsx(fe,{disablePadding:!0,onClick:se(!1),children:e.jsx(Je,{onClick:T,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-muted)"}},primary:"Privacy & Terms"})})}),e.jsx("hr",{}),e.jsx(fe,{disablePadding:!0,onClick:se(!1),children:e.jsxs(Je,{onClick:()=>q(ae=>({...ae,web:!0})),children:[e.jsx(Yt,{sx:{color:"#a7aaab"},children:e.jsx(Kc,{})}),e.jsx(He,{primary:"Logout",sx:{color:"var(--text-color-muted)"}})]})})]})})]})})}),e.jsx(Co,{confirm:te,setConfirm:q,action:"logout web",performer:H})]})};function Xa(){const{gotoHome:s,gotoMessages:t,gotoNotifications:a,gotoFollow:i}=Be(),n=ge(),{permissions:r,userDetails:l,user:c}=G(ue=>ue.auth),[o,p]=b.useState(!1),h=()=>p(!0),[d,u]=b.useState([]),[m,f]=b.useState([]),[v,N]=b.useState("profile"),_=Cs(),{gotoProfile:x,gotoSignIn:j,gotoSettings:I,gotoAllJobs:w,gotoOpenJobs:y,gotoAppliedJobs:k,gotoSavedJobs:S,gotoClosedJobs:g,gotoAllProjects:E,gotoOpenProjects:C,gotoSavedProjects:T,gotoAppliedProjects:A,gotoClosedProjects:R,gotoAllFundraisings:P,gotoOpenFundraisings:O,gotoClosedFundraisings:M,gotoSavedFundraisings:L,gotoAllInvestings:F,gotoOpenInvestings:U,gotoSavedInvestings:Z,gotoClosedInvestings:ne,gotoAppliedInvestings:K,gotoPrivacy:te,gotoabout:q,gotoContact:H,gotoSubscription:X,gotoPurchaseHistory:ee,gotoAdmin:se,gotoSecurity:ae,gotoAmbo:B}=Be(),{errorHandle:W}=he(),[Q,ie]=b.useState(!1),Y=ue=>()=>{ie(ue)},[pe,me]=b.useState(!1);let Ce=Ds();const Ye=async()=>{await Wn()&&!window.localStorage.getItem("token")&&(n(ba()),j(),Ce&&(Ce.disconnect(),Ce=null),window.location.reload())},Xe=async()=>{var ue,Ae;if((m==null?void 0:m.length)>=2)try{const Se=await zn({query:m,action:v,subType:l==null?void 0:l.subType,permissions:r});Se!=null&&Se.data&&((ue=Se==null?void 0:Se.data)!=null&&ue.usersData)&&u((Ae=Se==null?void 0:Se.data)==null?void 0:Ae.usersData)}catch(Se){W(Se)}else u([])};return We(()=>{Xe()},[v,m]),e.jsxs(e.Fragment,{children:[e.jsxs("main",{className:"mobileNavbar",children:[e.jsxs("div",{className:`mobileNavbar__Icon ${_.pathname==="/home"?"mobileNavbar__Icon-active":""}`,children:[e.jsx(Ws,{onClick:()=>s(),style:{padding:0},children:e.jsx(ss,{src:_o,alt:"Home Menu",sx:{width:30,height:30}})}),e.jsx("p",{children:"Ambo"})]}),e.jsxs("div",{className:`mobileNavbar__Icon  ${["/jobs","/projects","/fundraising","/investing"].some(ue=>_.pathname.includes(ue))?"mobileNavbar__Icon-active":""}`,children:[e.jsx(Ws,{onClick:()=>w(),style:{padding:0},children:e.jsx(no,{autoplay:!0,loop:!0,src:Iv,style:{width:30,height:30}})}),e.jsx("p",{children:"JPFI"})]}),e.jsxs("div",{className:`mobileNavbar__Icon ${_.pathname==="/messages"?"mobileNavbar__Icon-active":""}`,children:[e.jsx(Ws,{onClick:()=>t(),style:{padding:0},children:e.jsx(ss,{src:No,alt:"Message Menu",sx:{width:30,height:30}})}),e.jsx("p",{children:"Message"})]}),e.jsxs("div",{className:"mobileNavbar__Icon",children:[e.jsx(Ws,{onClick:h,style:{padding:0},children:e.jsx(ss,{src:wo,alt:"Search Menu",sx:{width:30,height:30}})}),e.jsx("p",{children:"Search"})]}),e.jsxs("div",{className:"mobileNavbar__Icon",children:[e.jsx(Ws,{onClick:Y(!0),style:{padding:0},children:e.jsx(ss,{src:l==null?void 0:l.avatar,alt:l.username,sx:{width:30,height:30}})}),e.jsx("p",{children:"Account"})]})]}
14),e.jsx(Qi,{open:Q,onClose:Y(!1),children:e.jsx(To,{})}),e.jsx(Co,{confirm:pe,setConfirm:me,action:"logout web",performer:Ye}),e.jsx(ko,{showSearchModal:o,setShowSearchModal:p})]})}const k3="Main Scene",C3=0,T3=512,I3=512,A3={g:"@lottiefiles/creator 1.62.0"},E3=[{ty:4,nm:"Ellipse 1",sr:1,st:-7,op:152,ip:-7,hd:!0,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"st",bm:0,hd:!1,nm:"Stroke",lc:2,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:10},c:{a:0,k:[.9176,.9176,.9176]}}],ind:1},{ty:4,nm:"Ellipse 2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:2},{ty:4,nm:"Layer_1-21",sr:1,st:-40,op:153,ip:-40,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[211.8837551436369,211.8837551436368]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-93.82419041334396,255.99996611449004],t:102},{s:[256.1734652741634,255.8938881710301],t:123}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 5",np:6,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 5",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[-.43,-.2],[-.55,-2.87],[0,0],[2.99,-1.58],[32.57,-.48],[.48,6.08],[1.27,21.75],[-4.36,0],[0,0],[0,0],[-.24,.36],[-2.54,.25],[-10.88,.72],[0,-1.73],[0,0]],o:[[0,0],[.19,0],[2.68,1.25],[0,0],[-.3,3.55],[-32.43,1.49],[-6.33,-.94],[-1.7,-21.52],[-.28,-4.29],[0,0],[0,0],[0,-.13],[1.44,-2.14],[10.7,-1.04],[2.25,-.3],[0,0],[0,0]],v:[[81.69,21.82],[105.51,21.82],[109.04,23],[114.16,29.92],[114.16,102.17],[108.02,110.17],[10.22,110.83],[.54,99.04],[.57,32.03],[9.2,21.81],[33.02,21.81],[33.02,6.37],[34.36,4.05],[40.58,.32],[74.58,.39],[81.69,6.36],[81.69,21.8]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 6",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-.14,-.39],[0,0],[0,0]],o:[[0,0],[0,0],[0,.16],[0,0],[0,0],[0,0]],v:[[71.22,11.35],[44,11.35],[44,21.03],[43.48,21.82],[71.22,21.82],[71.22,11.35]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 7",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-1.42,.21],[0,0],[-6.19,.39],[1.78,-10.24],[0,0],[0,.83],[0,0]],o:[[0,0],[0,0],[0,1.16],[0,0],[-.75,-7.22],[6.76,-.43],[0,0],[1.22,.15],[0,0],[0,0]],v:[[103.15,33.33],[12.07,33.33],[12.07,51.91],[16.57,55.26],[45.05,55.31],[53.66,46.91],[70.7,55.31],[99.2,55.28],[103.16,51.91],[103.16,33.33]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 8",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[60.23,58.45],[54.99,58.45],[54.99,64.74],[60.23,64.74],[60.23,58.45]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 9",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[.57,-.2],[0,0],[0,0],[0,0],[.26,0],[0,0],[5.27,-.48],[2.14,.66],[-.14,3]],o:[[0,0],[-.16,0],[0,0],[0,0],[0,0],[-.73,-.3],[0,0],[.17,4.37],[-2.78,.26],[-3.62,-1.11],[0,0]],v:[[45.05,66.31],[13.38,66.31],[12.07,65.79],[12.07,99.81],[103.15,99.81],[103.15,65.79],[101.32,66.31],[70.17,66.31],[65.22,75.23],[48.16,74.97],[45.05,66.31]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.08187152500955,55.449917661191165]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,tp:2},{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[211.8837551436369,211.8837551436368]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.55,y:.06},i:{x:.68,y:.19},s:[256.1734652741634,255.8938881710301],t:3},{s:[596.3120320690649,255.99993616211023],t:24}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 5",np:6,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 5",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[-.43,-.2],[-.55,-2.87],[0,0],[2.99,-1.58],[32.57,-.48],[.48,6.08],[1.27,21.75],[-4.36,0],[0,0],[0,0],[-.24,.36],[-2.54,.25],[-10.88,.72],[0,-1.73],[0,0]],o:[[0,0],[.19,0],[2.68,1.25],[0,0],[-.3,3.55],[-32.43,1.49],[-6.33,-.94],[-1.7,-21.52],[-.28,-4.29],[0,0],[0,0],[0,-.13],[1.44,-2.14],[10.7,-1.04],[2.25,-.3],[0,0],[0,0]],v:[[81.69,21.82],[105.51,21.82],[109.04,23],[114.16,29.92],[114.16,102.17],[108.02,110.17],[10.22,110.83],[.54,99.04],[.57,32.03],[9.2,21.81],[33.02,21.81],[33.02,6.37],[34.36,4.05],[40.58,.32],[74.58,.39],[81.69,6.36],[81.69,21.8]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 6",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-.14,-.39],[0,0],[0,0]],o:[[0,0],[0,0],[0,.16],[0,0],[0,0],[0,0]],v:[[71.22,11.35],[44,11.35],[44,21.03],[43.48,21.82],[71.22,21.82],[71.22,11.35]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 7",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-1.42,.21],[0,0],[-6.19,.39],[1.78,-10.24],[0,0],[0,.83],[0,0]],o:[[0,0],[0,0],[0,1.16],[0,0],[-.75,-7.22],[6.76,-.43],[0,0],[1.22,.15],[0,0],[0,0]],v:[[103.15,33.33],[12.07,33.33],[12.07,51.91],[16.57,55.26],[45.05,55.31],[53.66,46.91],[70.7,55.31],[99.2,55.28],[103.16,51.91],[103.16,33.33]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 8",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[60.23,58.45],[54.99,58.45],[54.99,64.74],[60.23,64.74],[60.23,58.45]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 9",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[.57,-.2],[0,0],[0,0],[0,0],[.26,0],[0,0],[5.27,-.48],[2.14,.66],[-.14,3]],o:[[0,0],[-.16,0],[0,0],[0,0],[0,0],[-.73,-.3],[0,0],[.17,4.37],[-2.78,.26],[-3.62,-1.11],[0,0]],v:[[45.05,66.31],[13.38,66.31],[12.07,65.79],[12.07,99.81],[103.15,99.81],[103.15,65.79],[101.32,66.31],[70.17,66.31],[65.22,75.23],[48.16,74.97],[45.05,66.31]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[57.08187152500955,55.449917661191165]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.08187152500955,55.449917661191165]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,tp:2},{ty:4,nm:"Ellipse 3",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}
14,shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:5},{ty:0,nm:"Project",sr:1,st:-18,op:159,ip:-18,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[37.50000703645043,55.500005637865286]},s:{a:0,k:[220.5079727189779,220.50797271897787]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-53.32890696905787,255.9999950097241],t:13},{o:{x:.22,y:.61},i:{x:.36,y:1},s:[256.0000070364504,256.0000056378653],t:31},{o:{x:.65,y:0},i:{x:.68,y:.19},s:[256.0000070364504,256.0000056378653],t:35},{s:[564.096534930383,255.9999950097241],t:49}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},w:75,h:111,refId:"precomp_Shape Layer - SVG_2v6PggdmWX_b8743617-3bb8-46a3-8f1e-701db25bafad_60ea7cef-6493-4713-9063-96319d4f8fcf",ind:6,tp:5},{ty:4,nm:"Ellipse 4",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:7},{ty:0,nm:"Funding",sr:1,st:-11,op:156,ip:-11,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.00000703645043,53.000005637865286]},s:{a:0,k:[215.4398212942922,215.4398212942921]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-87.83571809317829,256.00000441208397],t:40},{o:{x:.22,y:.61},i:{x:.68,y:.19},s:[256.0000070364504,256.0000056378653],t:60},{o:{x:.55,y:.06},i:{x:.68,y:.19},s:[256.0000070364504,256.0000056378653],t:64},{s:[602.3005043892306,256.00000441208397],t:82}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},w:114,h:106,refId:"precomp_Shape Layer - SVG_4_piySz2HP_0be2dcac-d422-42af-aaf7-5567289f2ba8_5aaa9977-6f72-4f36-9955-7f1e838d822c",ind:8,tp:7},{ty:4,nm:"Ellipse 5",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,td:1,ao:0,ks:{a:{a:0,k:[0,0]},s:{a:0,k:[117.61621086692087,117.61621086692084]},sk:{a:0,k:0},p:{a:0,k:[256,255.99999999999997]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"el",bm:0,hd:!1,nm:"Ellipse Shape 1",d:1,p:{a:0,k:[0,0]},s:{a:0,k:[361.472,361.472]}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.698,.7137,.7176]},r:2,o:{a:0,k:100}}],ind:9},{ty:0,nm:"Investing",sr:1,st:-23,op:149,ip:-23,hd:!1,ddd:0,bm:0,tt:1,hasMask:!1,ao:0,ks:{a:{a:0,k:[51.50000703645043,35.499993147097996]},s:{a:0,k:[238.37698815524945,238.37698815524945]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.36,y:1},s:[-87.83571809317829,255.99998896543696],t:73},{o:{x:.22,y:.61},i:{x:.36,y:1},s:[256.0000070364504,255.999993147098],t:90},{o:{x:.65,y:0},i:{x:.68,y:.19},s:[256.0000070364504,255.999993147098],t:95},{s:[598.6033460545034,255.99998896543696],t:109}]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},w:103,h:71,refId:"precomp_Shape Layer - SVG_1n5NKfhUw5_a54115ef-c887-446d-ad77-cdfa10244420_6106787c-d3bf-4179-9eee-1c44c50819e0",ind:10,tp:9}],M3="5.7.0",P3=30,R3=150,L3=0,F3=[{nm:"Nested Scene 1",id:"precomp_Shape Layer - SVG_4_piySz2HP_0be2dcac-d422-42af-aaf7-5567289f2ba8_5aaa9977-6f72-4f36-9955-7f1e838d822c",layers:[{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[57.07752473800639,53.070903232778505]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[56.92302702997763,52.93502636341324]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 3",np:2,it:[{ty:"gr",bm:0,hd:!1,nm:"Group 1",np:2,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[-1.05,-.69],[5.63,-1.09],[.77,.25],[1.46,1.02],[-1.62,-5.48],[-2.91,-.95],[10.67,-5.6],[.12,-.15],[.27,-.79],[1.79,2.55],[.34,.52],[.82,.5],[-1.03,3.67],[-2.06,-.38],[-.88,-1.25],[-.2,4.79],[3.8,1.28],[-9.64,6.39],[-.16,.24],[-.25,.85],[-1.43,-3.83],[-.23,-.28]],o:[[.15,.18],[2.82,1.86],[-.91,.18],[-.89,-.29],[-3.9,-2.75],[.99,3.34],[12.03,3.92],[-.98,.52],[-.2,.25],[-1.06,3.1],[-.99,-1.41],[-.1,-.16],[-2.93,-1.78],[.7,-2.49],[1.74,.32],[2.22,3.13],[.23,-5.48],[-10.5,-3.53],[1.13,-.75],[.28,-.43],[.98,-3.26],[.3,.79],[0,0]],v:[[61.42,29.79],[65.69,31.51],[69.41,43.4],[63.25,43.33],[60.48,39.85],[52.07,44.61],[62.67,48.6],[65.15,74.58],[61.4,75.78],[61.11,78.35],[53.28,79.36],[52.41,75.81],[48.88,74.39],[41.64,63.08],[50.15,61.14],[52.48,64.54],[62.43,62.43],[51.69,56.47],[47.11,32.05],[52.43,29.81],[52.6,27.12],[61.12,27.25],[61.42,29.81]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[56.993037188324706,52.76724019015404]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[56.993037188324706,52.76724019015404]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}
14,{ty:"gr",bm:0,hd:!1,nm:"Group 2",np:3,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 2",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[-7.12,-6.96],[17.19,-34.68],[10.59,-10.8],[5.53,3.17],[0,0],[-29.71,3.39]],o:[[9.98,-1.14],[28.7,-26.52],[-5.99,12.09],[-3.25,3.31],[0,0],[-21.76,-19.67],[0,0]],v:[[29.97,.31],[56.4,9.54],[110.17,51.34],[68.11,96.8],[54.29,105.44],[11.59,62.17],[29.97,.31]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 3",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[-12.33,-14.7],[-7.8,-7.97],[-5.15,-4.37],[-6.12,6.21],[-2.68,8.18],[19.45,-14.71],[2.17,-.93],[4.41,2.98],[6.12,-.84]],o:[[-19.28,2.64],[7,8.36],[4.77,4.87],[6.22,-6.12],[6.76,-6.86],[7.33,-22.29],[-1.83,1.38],[-6.29,2.71],[-4.99,-3.38],[0,0]],v:[[31.01,11.24],[17.32,52.27],[42.06,78.07],[56.85,92.35],[75.43,73.91],[101.7,43.39],[65.56,16.11],[59.96,20.93],[46.92,15.38],[31,11.25]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[57.07752473800639,53.070903232778505]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.07752473800639,53.070903232778505]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"tr",a:{a:0,k:[57.07752473800639,53.070903232778505]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[57.07752473800639,53.070903232778505]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"Nested Scene 2",id:"precomp_Shape Layer - SVG_1n5NKfhUw5_a54115ef-c887-446d-ad77-cdfa10244420_6106787c-d3bf-4179-9eee-1c44c50819e0",layers:[{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[51.66668383463974,35.395720222091654]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[51.66668383463974,35.395720222091654]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 4",np:2,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 4",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[1.56,1.02],[0,0],[0,0],[-2.71,4.16],[0,0],[-1.93,-1.28],[0,0],[0,0],[0,0],[.26,1.29],[-3.66,.31],[-4.63,-.43],[-.31,-2.6],[-.48,-7.42],[2.43,2.27],[0,.12],[0,0]],o:[[0,0],[-1.62,.92],[0,0],[0,0],[-4.25,2.32],[0,0],[1.92,-1.15],[0,0],[0,0],[0,0],[-1.2,0],[
14-.83,-4.2],[4.66,-.4],[2.34,.22],[.85,7.24],[-1.02,3.03],[-.25,-.23],[0,0],[0,0]],v:[[94.33,16.53],[60.64,50.78],[55.89,50.61],[40.99,36.09],[6.86,70.15],[.82,63.7],[38.32,25.54],[43.61,25.49],[58.38,40.22],[88.09,9.48],[78.74,9.48],[74.8,6.36],[80.38,.33],[98.7,.33],[103.06,3.87],[102.96,27.48],[95.59,29.62],[94.32,27.56],[94.32,16.55]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[51.66668383463974,35.395720222091654]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[51.66668383463974,35.395720222091654]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"Nested Scene 4",id:"precomp_Shape Layer - SVG_2v6PggdmWX_b8743617-3bb8-46a3-8f1e-701db25bafad_60ea7cef-6493-4713-9063-96319d4f8fcf",layers:[{ty:4,nm:"Layer_1-2",sr:1,st:0,op:150,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[37.41696841576976,55.45373983596977]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[37.41696841576976,55.45373983596977]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Group 6",np:4,it:[{ty:"sh",bm:0,hd:!1,nm:"Path 10",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[.17,-1.81],[7.69,-.65],[1.33,14.52],[.49,1.41],[.62,.8],[.68,3.3],[2.6,9.96],[-29.46,-11.98],[7.34,-19.04],[1.28,-10.62],[1.96,-2.57],[.12,-.22]],o:[[-.49,.82],[-.69,7.63],[-13.26,1.14],[-.17,-1.81],[-.27,-.77],[-1.82,-2.36],[-1.96,-9.5],[-7.8,-29.98],[18.64,7.58],[-3.64,9.45],[-.36,2.95],[-.5,.66],[0,0]],v:[[56.53,87.39],[56.41,96.68],[42.47,110.67],[18.84,94.65],[18.75,88.13],[16.55,86.26],[14.64,74.46],[1.31,48.17],[51.18,2.89],[72.41,51.22],[59.53,76.94],[58.19,86.28],[56.53,87.4]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 11",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[-4.8,4.38],[-3.61,-2],[-3.76,-5.26],[2.75,-3.15],[0,0],[0,0],[-2.18,12.4],[14.13,-26.31],[-4.09,-16.85],[.13,-1.93],[0,0]],o:[[0,0],[-2.04,-3.47],[4.84,-4.43],[2.82,-2.26],[3.32,4.65],[0,0],[0,0],[-1.28,-13.81],[5.29,-30.19],[-11.1,20.66],[.45,1.86],[0,0],[0,0]],v:[[32.55,77.13],[32.55,57.58],[25.6,43.78],[37.81,49.17],[49.55,44.14],[42.2,57.59],[42.2,77.14],[48.81,77.14],[63.41,43.24],[14.18,24.99],[25.29,71.45],[25.95,77.14],[32.56,77.14]]}}},{ty:"sh",bm:0,hd:!1,nm:"Path 12",d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[-.36,-.22],[0,2.39],[0,0],[.25,.18]],o:[[0,0],[0,0],[0,.28],[1.66,1.04],[0,0],[0,-.11],[0,0]],v:[[45.76,88.31],[30.02,88.31],[30.02,97.2],[31.34,98.92],[45.25,97.7],[45.25,89.07],[45.76,88.31]]}}},{ty:"fl",bm:0,hd:!1,nm:"Fill",c:{a:0,k:[.9176,.9176,.9176]},r:1,o:{a:0,k:100}},{ty:"tr",a:{a:0,k:[37.41696841576976,55.45373983596977]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[37.41696841576976,55.45373983596977]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]}],B3=[{cm:"Segment name 1",tm:0,dr:150}],Pu={nm:k3,ddd:C3,h:T3,w:I3,meta:A3,layers:E3,v:M3,fr:P3,op:R3,ip:L3,assets:F3,markers:B3};function Ru(){const s=ge(),[t,a]=b.useState(!1),{gotoProfile:i,gotoSignIn:n,gotoSettings:r,gotoAllJobs:l,gotoOpenJobs:c,gotoAppliedJobs:o,gotoSavedJobs:p,gotoClosedJobs:h,gotoAllProjects:d,gotoOpenProjects:u,gotoSavedProjects:m,gotoAppliedProjects:f,gotoClosedProjects:v,gotoAllFundraisings:N,gotoOpenFundraisings:_,gotoClosedFundraisings:x,gotoSavedFundraisings:j,gotoAllInvestings:I,gotoOpenInvestings:w,gotoSavedInvestings:y,gotoClosedInvestings:k,gotoAppliedInvestings:S,gotoPrivacy:g,gotoabout:E,gotoContact:C,gotoAmbo:T,gotoResume:A,gotoSubscription:R}=Be(),P=Mt(),{userDetails:O,permissions:M,user:L}=G(q=>q.auth);let F=Ds();const U=async()=>{await Wn()&&!window.localStorage.getItem("token")&&(s(ba()),n(),F&&(F.disconnect(),F=null),window.location.reload())},[Z,ne]=b.useState(!1),K=q=>(H,X)=>{ne(X?q:!1)},te=()=>{O!=null&&O.tickbigLink?P(`/build-resume/${O.tickbigLink}`):errorToast("User profile link not found.")};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"navbar_profile-dropdown",children:[e.jsx("span",{children:e.jsx(ss,{className:"navbar__profile--avatar",alt:O==null?void 0:O.username,src:O!=null&&O.avatar?O==null?void 0:O.avatar:Ks(O==null?void 0:O.subType),sx:{width:40,height:40}})}),e.jsx("div",{className:"navbar__profile-dropdown-content",children:e.jsxs("div",{className:"settingdd__bg",children:[e.jsxs("div",{className:"settingdd__avatar",children:[e.jsx(ss,{className:"navbar__profile--avatar",alt:O==null?void 0:O.username,sx:{width:40,height:40},src:O==null?void 0:O.avatar}),e.jsxs("div",{className:"settingdd__col cp",onClick:()=>i(O==null?void 0:O.tickbigLink),children:[e.jsx("p",{className:"settingdd__name",children:de(O==null?void 0:O.username)}),e.jsx("p",{className:"settingdd__title",children:de(O==null?void 0:O.subType)})]})]}),O.accountType==="Individuals"&&e.jsxs(e.Fragment,{children:[e.jsx(ws,{children:e.jsx(fe,{component:"div",disablePadding:!0,children:e.jsx(Je,{onClick:T,children:e.jsx(He,{primaryTypographyProps:{fontSize:18,fontWeight:600,sx:{background:"var(--accent-color-gradient)",WebkitBackgroun
14dClip:"text",WebkitTextFillColor:"transparent"}},primary:"Agent-Ambo"})})})}),e.jsx("button",{onClick:te,className:"resume-btn",children:"Resume Builder"})]}),(M==null?void 0:M.length)>0&&e.jsxs(at,{expanded:Z==="panel1",onChange:K("panel1"),children:[e.jsx(nt,{children:e.jsxs(Fe,{fontSize:14,fontWeight:"medium",children:["Associate Account",e.jsx(va,{data:"Brands / Institution accounts for which you are an admin member",colordata:"#a7aaab"})]})}),e.jsx(Ys,{children:M==null?void 0:M.map((q,H)=>{var X;return e.jsx("p",{className:"cp",onClick:()=>{var ee;return i((ee=q==null?void 0:q._created_by)==null?void 0:ee.tickbigLink)},children:de((X=q==null?void 0:q._created_by)==null?void 0:X.firstName)},H)})})]}),e.jsxs(at,{expanded:Z==="panel2",onChange:K("panel2"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,children:"Jobs"})}),e.jsx(Ys,{children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:l,children:e.jsx(He,{primary:"All Jobs",primaryTypographyProps:{fontSize:14}})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:c,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Open Jobs"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:h,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Closed Jobs"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:o,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Applied Jobs"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:p,children:e.jsx(He,{primaryTypographyProps:{fontSize:14},primary:"Saved Jobs"})})})]})})]}),e.jsxs(at,{expanded:Z==="panel3",onChange:K("panel3"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,fontWeight:"medium",children:"Projects"})}),e.jsx(Ys,{children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:d,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"All Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:u,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Open Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:v,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Closed Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:f,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Applied Projects"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:m,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Saved Projects"})})})]})})]}),e.jsxs(at,{expanded:Z==="panel4",onChange:K("panel4"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,fontWeight:"medium",children:"Fundraising"})}),e.jsx(Ys,{children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:N,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"All Fundraising"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:_,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Open Fundraising"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:x,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Closed Fundraising"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:j,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Saved Fundraising"})})})]})})]}),e.jsxs(at,{expanded:Z==="panel5",onChange:K("panel5"),children:[e.jsx(nt,{children:e.jsx(Fe,{fontSize:14,fontWeight:"medium",children:"Investing"})}),e.jsx(Ys,{children:e.jsxs(ws,{children:[e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:I,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"All Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:w,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Open Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:k,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Closed Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:S,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Applied Investing"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:y,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium"},primary:"Saved Investing"})})})]})})]}),e.jsx("div",{className:"settings_list-container",children:e.jsxs(ws,{children:[e.jsx(fe,{component:"div",disablePadding:!0,children:e.jsx(Je,{onClick:r,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-primary)"}},primary:"Settings"})})}),e.jsx(fe,{component:"div",disablePadding:!0,children:e.jsx(Je,{onClick:R,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-secondary)"}},primary:"Subscription"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:C,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-secondary)"}},primary:"Contact"})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:E,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-secondary)"}},primary:"About "})})}),e.jsx(fe,{disablePadding:!0,children:e.jsx(Je,{onClick:g,children:e.jsx(He,{primaryTypographyProps:{fontSize:14,sx:{color:"var(--text-color-secondary)"}},primary:"Privacy & Terms"})})}),e.jsx("hr",{}),e.jsx(fe,{disablePadding:!0,children:e.jsxs(Je,{onClick:()=>a(q=>({...q,web:!0})),children:[e.jsx(Yt,{sx:{color:"#a7aaab"},children:e.jsx(Kc,{})}),e.jsx(He,{primaryTypographyProps:{fontSize:14,fontWeight:"medium",sx:{color:"var(--text-color-secondary)"}},primary:"Logout"})]})})]})})]})})]}),e.jsx(Co,{confirm:t,setConfirm:a,action:"logout web",performer:U})]})}const Hn=()=>{const{gotoNotifications:s,gotoMessages:t,gotoFollow:a,gotoHome:i,gotoAllJobs:n,gotoProfile:r,gotoAmbo:l}=Be(),{errorToast:c,successToast:o,warningToast:p,errorHandle:h}=he(),{permissions:d,userDetails:u,user:m}=G(R=>R.auth),[f,v]=b.useState([]),[N,_]=b.useState([]),[x,j]=b.useState("profile"),[I,w]=b.useState(!1),[y,k]=b.useState(!1),S=()=>w(!0),g=Cs(),E=async()=>{var R,P;if((f==null?void 0:f.length)>=2)try{const O=await zn({query:f,action:x,subType:u==null?void 0:u.subType,permissions:d});O!=null&&O.data&&((R=O==null?void 0:O.data)!=null&&R.usersData)&&_((P=O==null?void 0:O.data)==null?void 0:P.usersData)}catch(O){h(O)}else _([])},C=()=>
14e.jsx(e.Fragment,{children:u!=null&&u.unseenNotifications?e.jsx(e.Fragment,{children:e.jsx("div",{className:"display-flex-aljc-center notific_count"})}):null}),T=()=>e.jsx(e.Fragment,{children:e.jsx("div",{className:"navbar__icons--icon-active"})}),A=R=>()=>{k(R)};return We(()=>{E()},[x,f]),e.jsxs(e.Fragment,{children:[e.jsx("nav",{className:"navbar-hero",children:e.jsx("main",{className:"display-flex-aic-jcsb navbar-parent",children:m?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"navbar__two",children:e.jsx("aside",{className:"navbar__logo",style:{justifyContent:"flex-end"},children:e.jsx("p",{className:"label",children:e.jsxs(is,{to:"/home",className:"navbar__Link",children:["Tick",e.jsx("span",{style:{fontWeight:"600"},children:"Big"})]})})})}),e.jsxs("div",{className:"navbar__one",children:[e.jsxs("aside",{className:"navbar__icons",children:[e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${g.pathname==="/home"?"wrapIcon-outer--active":""}`,children:e.jsx("img",{onClick:()=>i(),src:_o,className:`navbar__icons--icon ${g.pathname.startsWith("/home")?"wrapIcon-outer-active":""}`,alt:"amboIcon"})})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${["/jobs","/projects","/fundraising","/investing"].some(R=>g.pathname.includes(R))?"wrapIcon-outer-active":""}`,children:e.jsx(Ws,{onClick:()=>n(),style:{padding:0},children:e.jsx(no,{autoplay:!0,loop:!0,src:Pu,className:"navbar__icons--icon",style:{width:30,height:30,left:"5px",top:"-8px"}})})})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${g.pathname==="/messages"?"wrapIcon-outer-active":""}`,children:e.jsx("img",{onClick:()=>t(),src:No,className:"navbar__icons--icon",alt:"messageIcon"})})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${["/follow","/followings","/connections"].some(R=>g.pathname.includes(R))?"wrapIcon-outer-active":""}`,children:e.jsx("img",{onClick:()=>a(),src:Tu,className:"navbar__icons--icon",alt:"people Icon"})})}),e.jsxs("div",{className:"wrapIcon",style:{position:"relative"},children:[e.jsx("div",{className:`wrapIcon-outer ${g.pathname==="/notification"?"wrapIcon-outer-active":""}`,children:e.jsx("img",{onClick:()=>s(),src:Cu,className:"navbar__icons--icon",alt:"notificationIcon"})}),e.jsx(C,{}),g.pathname=="/notification"&&e.jsx(T,{})]}),e.jsx("div",{className:"wrapIcon ",style:{position:"relative"},children:e.jsx("div",{className:"wrapIcon-outer",children:e.jsx("img",{onClick:S,src:wo,className:"navbar__icons--icon",alt:"searchIcon"})})})]}),e.jsx("div",{className:"mobileNavbar__avatar",children:e.jsx("div",{className:"mobileNavbar__Icon",children:e.jsx(ss,{onClick:A(!0),src:u==null?void 0:u.avatar,alt:u.username,sx:{width:28,height:28}})})}),e.jsx("aside",{className:"navbar__profile",children:e.jsx(Ru,{})})]})]}):e.jsx("div",{className:"navbar__two",children:e.jsx("aside",{className:"navbar__logo",children:e.jsx("p",{children:e.jsxs(is,{to:"/home",className:"navbar__Link",children:["Tick",e.jsx("span",{children:"Big"})]})})})})})}),e.jsx(Qi,{open:y,onClose:A(!1),children:e.jsx(To,{})}),e.jsx(ko,{showSearchModal:I,setShowSearchModal:w})]})},Gn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22.199'%20height='15.775'%20viewBox='0%200%2022.199%2015.775'%3e%3cg%20id='Group_10337'%20data-name='Group%2010337'%20transform='translate(-333.791%20-43.619)'%3e%3cellipse%20id='Ellipse_1193'%20data-name='Ellipse%201193'%20cx='3.459'%20cy='3.459'%20rx='3.459'%20ry='3.459'%20transform='translate(341.28%2050.537)%20rotate(-90)'%20fill='%23eaeaea'/%3e%3cellipse%20id='Ellipse_1194'%20data-name='Ellipse%201194'%20cx='3.459'%20cy='3.459'%20rx='3.459'%20ry='3.459'%20transform='translate(333.791%2059.394)%20rotate(-90)'%20fill='%23eaeaea'/%3e%3cellipse%20id='Ellipse_1195'%20data-name='Ellipse%201195'%20cx='3.459'%20cy='3.459'%20rx='3.459'%20ry='3.459'%20transform='translate(349.072%2059.095)%20rotate(-90)'%20fill='%23eaeaea'/%3e%3c/g%3e%3c/svg%3e",O3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='65.828'%20height='34.655'%20viewBox='0%200%2065.828%2034.655'%3e%3cg%20id='Group_2'%20data-name='Group%202'%20transform='translate(-178.672%20-210.925)'%3e%3cline%20id='Line_1'%20data-name='Line%201'%20y1='14'%20x2='15'%20transform='translate(181.5%20213.752)'%20fill='none'%20stroke='%238c9395'%20strokeLinecap='round'%20strokeWidth='4'/%3e%3cline%20id='Line_2'%20data-name='Line%202'%20x2='15'%20y2='15'%20transform='translate(181.5%20227.752)'%20fill='none'%20stroke='%238c9395'%20strokeLinecap='round'%20strokeWidth='4'/%3e%3cline%20id='Line_3'%20data-name='Line%203'%20x2='61'%20transform='translate(181.5%20227.752)'%20fill='none'%20stroke='%238c9395'%20strokeLinecap='round'%20strokeWidth='4'/%3e%3c/g%3e%3c/svg%3e",Io=async({pageNo:s=1,limit:t=100})=>z.get(On+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),Lu=async({searchValue:s,pageNo:t=1,limit:a=10})=>z.post(fu+`?searchValue=${s}&pageNo=${t}&limit=${a}`).then(i=>i.data).catch(i=>{throw i}),Hs=async({body:s})=>z.post(On,s).then(t=>t.data).catch(t=>{throw t}),U3=async s=>z.put(Gy,s).then(t=>t.data).catch(t=>{throw t}
14),Gs=async({pageNo:s=1,limit:t=100,sortDesc:a,conversationId:i})=>z.get(yu+`?pageNo=${s}&limit=${t}&sort=${a}&conversationId=${i}`).then(n=>n.data).catch(n=>{throw n}),Fu=async s=>z.put(On,{convoId:s}).then(t=>t.data).catch(t=>{throw t}),Bu=async s=>z.delete(`${On}/${s}`).then(t=>t.data).catch(t=>{throw t}),Ou=({message:s,index:t,timecolor:a})=>{const{user:i}=G(x=>x.auth),{conversations:n}=G(x=>x.conversations),r=ge();let l=Cs();const{successToast:c,errorToast:o}=he();let p=l.pathname!=="/messages"?"testLeft":"notestLeft";const h=s.conversationId,[d,u]=b.useState(!1),[m,f]=b.useState(""),[v,N]=b.useState(null);b.useEffect(()=>{const x=n==null?void 0:n.find(j=>j._id===s.conversationId);if(x){f(x.convoStatus??"accepted");const j=lt(x,i);j&&N(j)}},[s,n,i]);const _=async x=>{u(!1);try{const j=await U3({convoId:Ee(h),newstatus:x,sender:i,receiver:v._id});(j==null?void 0:j.statusCode)===Ke&&(f(x),r(m2(h,x)),x==="declined"?u(!0):setTimeout(()=>{window.location.reload()},500),c(`Conversation ${x}`))}catch(j){o("Something went wrong, please try again."),console.error(j)}};return e.jsxs("main",{children:[e.jsx(dd,{className:`message-list ${p}`,lockable:!0,toBottomHeight:"100%",dataSource:[{position:"left",type:"text",title:e.jsx("div",{children:e.jsx("div",{dangerouslySetInnerHTML:{__html:fa.sanitize(Et(s.body))}})}),date:s.createdAt}]}),e.jsx("div",{className:"chatbox__day",style:{color:a,textAlign:"start",marginLeft:"25px"},children:e.jsx("span",{children:ks(s.createdAt)})}),m==="pending"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"msg-refer-desc",children:"If you accept, they will also be able to message you and see info such as your website and when you've read messages."}),e.jsxs("div",{className:" gap-2 ml-6 mt-2 mb-2 btn-box",children:[e.jsx("button",{onClick:()=>_("declined"),className:"msg-refer-reject msg-refer-text",style:{color:"var(--text-color-secondary)"},children:"Reject"}),v&&e.jsx("button",{className:"msg-refer-reject msg-refer-text",onClick:()=>{window.open(`/profile/${v==null?void 0:v.tickbigLink}`,"_blank")},children:"View profile"}),e.jsx("button",{onClick:()=>_("accepted"),className:"msg-refer-accept msg-refer-text",children:"Accept"})]})]}),(m==="declined"||d===!0)&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"msg-refer-desc",children:"Click 'Accept & Continue' to continue the conversation"}),e.jsx("div",{className:"display-flex-aljc-center gap-2 ml-6 mt-2",children:e.jsx("button",{onClick:()=>_("accepted"),className:"msg-refer-reject msg-refer-text mb-2",style:{color:"var(--primary-color)",border:"1px solid var(--btn-bg-color)"},children:"Accept & Continue"})})]})]},t)},Uu=({message:s,index:t,timecolor:a})=>{const[i,n]=b.useState(""),{conversations:r}=G(p=>p.conversations),{user:l}=G(p=>p.auth);b.useEffect(()=>{const p=r==null?void 0:r.find(h=>h._id===s.conversationId);p&&n(p.convoStatus??"accepted")},[s,r,l]);let o=Cs().pathname!=="/messages"?"testRight":"notestRight";return e.jsxs("main",{style:{flexDirection:"column",display:"flex",alignItems:"end"},children:[e.jsx(dd,{className:`message-list message-list--right messageRight ${o}`,lockable:!0,toBottomHeight:"100%",dataSource:[{position:"right",type:"text",title:e.jsx("div",{children:e.jsx("div",{dangerouslySetInnerHTML:{__html:fa.sanitize(Et(s.body))}})}),date:s.createdAt}]}),e.jsxs("div",{className:"chatbox__day",style:{color:a,textAlign:"end",marginRight:"25px"},children:[e.jsx("span",{children:ks(s.createdAt)}),e.jsx("span",{children:s.isDelivered&&Object.keys(s.isDelivered).some(p=>p!==l&&s.isDelivered[p])?"✔✔":"✔"}),(s==null?void 0:s.pending)&&e.jsx("span",{className:"text-xs text-gray-400 ml-2",children:"(sending...)"})]}),["pending","declined"].includes(i)&&e.jsxs(e.Fragment,{children:[e.jsx("p",{style:{textAlign:"end"},className:"msg-refer-desc",children:"Refresh or click the button to update the conversation status"}),e.jsx("div",{className:" gap-2 ml-6 mt-2 btn-box",children:e.jsx("button",{style:{paddingBottom:"10px"},className:"msg-refer-reject msg-refer-text",onClick:()=>window.location.reload(),children:"Check Status"})})]})]},t)};function D3({id:s,onClickFn:t,altText:a,imgSrc:i,cssStyle:n,arg1:r,arg2:l,name:c}
14){const o=()=>{if(r&&l){let p=isNaN(r)?r:Number(r),h=isNaN(l)?l:Number(l);t(p,h)}else t()};return e.jsxs("button",{id:s,className:n,onClick:o,children:[i&&a&&e.jsx("img",{src:i,alt:a}),c]})}const As=({confirm:s,setConfirm:t,action:a,performer:i,itemId:n,arg1:r,arg2:l,fileName:c})=>{const o=()=>{!n&&!r&&!l?t(!1):!n&&r&&l?t(p=>({...p,open:!1,arg1:null,arg2:null})):n&&!r&&!l&&t(p=>({...p,open:!1,itemId:null}))};return e.jsx(qe,{open:s,onClose:()=>t(!1),className:"my-modal",children:e.jsxs(Ie,{sx:iu,children:[e.jsx(Fe,{id:"confirm-modal-title",variant:"h6",component:"h2",align:"center",children:a==="reset_resume_builder"?e.jsx("p",{className:"refer__header",children:"Are you sure you want to reset the resume builder? This action cannot be undone."}):a==="delete"||a==="reset"?e.jsxs("p",{className:"refer__header",children:["Are you sure you want to ",a," admin access for this user?"]}):["unblock","block"].includes(a)?e.jsxs("p",{className:"refer__header",children:["Are you sure you want to ",a," this user?"]}):a==="change password"?e.jsxs("p",{className:"refer__header",children:["You are attempting to ",a," for this account. The process is irreversible. Do you want to proceed?"]}):a==="delete conversation"?e.jsx("p",{className:"refer__header",children:"You are deleting a chat conversation. This process is irreversible. Do you want to continue?"}):a==="delete this project"?e.jsxs("p",{className:"refer__header",children:["Do you want to ",a,"?"]}):a==="close this service request"?e.jsxs("p",{className:"refer__header",children:["Do you want to ",a,"?"]}):a==="upload"&&c?e.jsxs("p",{className:"refer__header",children:["Do you want to ",a," file ",c,"?"]}):e.jsxs("p",{className:"refer__header",children:["Do you want to ",a," this?"]})}),e.jsx("div",{children:e.jsx("section",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"display-flex-aic-jcsb refer__footet--buttons2 ",children:e.jsxs(Ie,{mt:2,display:"flex",justifyContent:"center",children:[n&&!r&&!l&&e.jsx(bs,{id:"yes",arg:n,onClickFn:i,cssStyle:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",name:"Yes"}),!n&&r&&l&&e.jsx(D3,{id:"yes",arg1:isNaN(r)?r:Number(r),arg2:isNaN(l)?l:Number(l),onClickFn:i,cssStyle:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",name:"Yes"}),!n&&!r&&!l&&e.jsx(bs,{id:"yes",onClickFn:i,cssStyle:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",name:"Yes"}),e.jsx(bs,{id:"no",onClickFn:o,className:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",name:"Cancel"})]})})})})]})})},q3=async s=>z.patch(Vj,s).then(t=>t.data).catch(t=>{throw t}),AT=async()=>z.get(Ay).then(s=>s.data).catch(s=>{throw s}),yi=async()=>z.get(ju).then(s=>s.data).catch(s=>{throw s}),Tl=async(s,t)=>z.patch(My,{permissions:s,_user_id:t}).then(a=>a.data).catch(a=>{throw a}),V3=async({_user_id:s,permissions:t})=>z.post(Ey,{_user_id:s,permissions:t}).then(a=>a.data).catch(a=>{throw a}),z3=async(s,t)=>z.delete(Py+`/${s}`,{headers:{user:JSON.stringify(t)}}).then(a=>a).catch(a=>{throw a}),Ao=async()=>z.get(Ry).then(s=>s.data).catch(s=>{throw s}),Du=async()=>z.get(Ly).then(s=>s.data).catch(s=>{throw s}),W3=async()=>z.get($j).then(s=>s.data).catch(s=>{throw s}),Eo=async s=>z.put(Hj,{blockThisUser:s}).then(t=>t.data).catch(t=>{throw t}),$3=async s=>z.put(Gj,{unblockThisUser:s}).then(t=>t.data).catch(t=>{throw t}),Jn=we(s=>e.jsx(Jc,{elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...s}))(({})=>({"& .MuiPaper-root":{borderRadius:10,minWidth:160,backgroundColor:"var(--card-surface-primary)",border:"1px solid var(--color-grey-700)",color:"var(--text-color-primary)",boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{minHeight:"20px",backgroundColor:"var(--card-surface-primary)",color:"var(--text-color-primary)","&:active":{backgroundColor:"#384144",color:"#d6dcdd"}}}})),qu=48,ET=({mType:s,uniqueId:t,handleCopy:a,copyPath:i,reviewShow:n,reviewed:r,reported:l,notintrest:c,reportShow:o,handleClose:p,handleRepost:h,savedState:d,unSaveFn:u,saveFn:m,index:f,setConfirm:v,notInterestedSet:N})=>{const[_,x]=b.useState(null),j=!!_,I=k=>{x(k.currentTarget)},w=()=>{x(null)},y=Cs();return e.jsx(e.Fragment,{children:e.jsx("div",{children:e.jsxs("div",{tabIndex:"-1",children:[!["/closed-projects","/closed-jobs","/closed-fundraising","/closed-investing"].includes(y.pathname)&&e.jsx(Yt,{"aria-label":"more",id:"long-button","aria-controls":j?"long-menu":void 0,"aria-expanded":j?"true":void 0,"aria-haspopup":"true",onClick:I,children:e.jsx("img",{src:Gn,style:{width:20,height:20}})}),e.jsx(Jn,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:_,open:j,onClose:w,PaperProps:{style:{maxHeight:qu*4.5,width:"16ch"}},children:p?e.jsxs("div",{children:[e.jsx(Ns,{onClick:()=>{a(t,i),w()},children:e.jsx("p",{children:"Copy link"})}),e.jsx(Ns,{onClick:()=>{p(),w()},children:e.jsx("p",{children:"Close"})})]}):e.jsxs("div",{children:[["i","f"].includes(s)&&(d?e.jsx(Ns,{onClick:()=>{u(t,f==null?void 0:f.toString()),w()},children:e.jsx("p",{children:"UnSave"})}):e.jsx(Ns,{onClick:()=>{m(t,f==null?void 0:f.toString()),w()},children:e.jsx("p",{children:"Save"})})),e.jsx(Ns,{onClick:()=>{a(t,i),w()},children:e.jsx("p",{children:"Copy link"})}),r?e.jsx(Ns,{onClick:w,children:e.jsx("p",{children:"Reviewed"})}):e.jsx(Ns,{onClick:()=>{n(),w()},children:e.jsx("p",{children:"Write a review"})}),h&&e.jsx(Ns,{onClick:()=>{h(t),w()},children:e.jsx("p",{children:"Repost"})}),c&&!N&&e.jsx(Ns,{onClick:w,children:e.jsx(bs,{arg:"true",onClickFn:v,name:"Not interested",cssStyle:"jpfiCard__dropdown-btn",action:"notintrest"})}),l?e.jsx(Ns,{onClick:w,children:e.jsx("p",{children:"Reported"})}):e.jsx(Ns,{onClick:()=>{o(t),w()},children:e.jsx("p",{children:"Report"})})]})})]})})})},Vu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='26.454'%20height='26.454'%20viewBox='0%200%2026.454%2026.454'%3e%3cpath%20id='Path_28388'%20data-name='Path%2028388'%20d='M19.55,19.55a6.114,6.114,0,0,1-8.646,0m16.55-4.323A12.227,12.227,0,1,1,15.227,3,12.227,12.227,0,0,1,27.454,15.227ZM12.17,12.17c0,.562-.228,1.019-.509,1.019s-.509-.456-.509-1.019.228-1.019.509-1.019S12.17,11.608,12.17,12.17Zm-.509,0h.011v.02h-.011Zm7.
14642,0c0,.562-.228,1.019-.509,1.019s-.509-.456-.509-1.019.228-1.019.509-1.019S19.3,11.608,19.3,12.17Zm-.509,0H18.8v.02h-.011Z'%20transform='translate(-2%20-2)'%20fill='none'%20stroke='%23d6dcdd'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/svg%3e",zu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='54'%20height='54'%20viewBox='0%200%2054%2054'%3e%3cdefs%3e%3cfilter%20id='Rectangle_350'%20x='0'%20y='0'%20width='54'%20height='54'%20filterUnits='userSpaceOnUse'%3e%3cfeOffset%20dx='-3'%20dy='-3'%20input='SourceAlpha'/%3e%3cfeGaussianBlur%20stdDeviation='3'%20result='blur'/%3e%3cfeFlood%20flood-opacity='0.161'/%3e%3cfeComposite%20operator='in'%20in2='blur'/%3e%3cfeComposite%20in='SourceGraphic'/%3e%3c/filter%3e%3c/defs%3e%3cg%20id='Group_10340'%20data-name='Group%2010340'%20transform='translate(-313%20-610)'%3e%3cg%20id='Group_10339'%20data-name='Group%2010339'%20transform='translate(324.499%20621.887)'%3e%3cg%20id='Group_760'%20data-name='Group%20760'%20transform='translate(0.221%20-0.168)'%3e%3cg%20transform='matrix(1,%200,%200,%201,%20-11.72,%20-11.72)'%20filter='url(%23Rectangle_350)'%3e%3crect%20id='Rectangle_350-2'%20data-name='Rectangle%20350'%20width='36'%20height='36'%20rx='18'%20transform='translate(12%2012)'%20fill='%2301bf71'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cpath%20id='Icon_ionic-ios-send'%20data-name='Icon%20ionic-ios-send'%20d='M24.47,4.549,4.758,13.141a.452.452,0,0,0,.016.822l5.332,3.012a.86.86,0,0,0,.983-.1L21.6,7.814c.07-.059.236-.172.3-.107s-.038.231-.1.3l-9.1,10.246a.857.857,0,0,0-.086,1.026l3.485,5.59a.453.453,0,0,0,.816-.011L25.077,5.145A.452.452,0,0,0,24.47,4.549Z'%20transform='translate(327.189%20626.189)'%20fill='%23252b2d'/%3e%3c/g%3e%3c/svg%3e",Mo="Blocked successfully",H3="Achievement deleted sucessfully",Wu="Follow request sent sucessfully",$u="Follow request accepted",MT="This post has been removed from your feed",PT="Job has been closed successfully",RT="Fundraising liked successfully",LT="Project applied successfully",FT="Project has been closed successfully",Hu="Successfully Uploaded",BT="Invalid URL",OT="Not allowed",Po="Invalid file format",UT="At least one Skill is required",DT="Both Profiles and Profile Tracker files are required",G3="File is too large",Gu="Invalid OTP",J3="Please upload your resume in the Profile's 'About Me' section",qT="Profile is required",VT="Profiles Tracker is required",zT="Please enter description",WT="Resume Zip file is required",vt="OTP sent to registered email",$i=({convoId:s,setConvoId:t,convoUpdate:a,loadConversations:i,users:n,setConvoUpdate:r,setFilteredConvers:l,setShowMessage:c})=>{var $,re;const o=ge(),{successToast:p,warningToast:h,errorToast:d,errorHandle:u}=he(),{user:m,userDetails:{blockedIds:f}}=G(oe=>oe.auth);G(oe=>oe.messages);const{onlineUsers:v}=G(oe=>oe.follow),N=Ds(),{gotoMessages:_,gotoPreviousPage:x}=Be(),[j,I]=b.useState({open:!1,itemId:null}),[w,y]=b.useState({open:!1,itemId:null}),[k,S]=b.useState(""),[g,E]=b.useState(!1),C=b.useRef(null),{conversations:T,typingUsers:A}=G(oe=>oe.conversations),R=G(oe=>oe.messages[s]||{messages:[],pageNo:1,totalPages:1,loading:!1});let{messages:P,pageNo:O,totalPages:M,loading:L}=R;const[F,U]=b.useState();let Z,ne;if((n==null?void 0:n.length)>0)Z=n,ne=lt(n,m);else{let oe=T==null?void 0:T.filter(Re=>(Re==null?void 0:Re._id)===s)[0];Z=oe,ne=lt(oe,m)}const K=b.useCallback(async oe=>{var Re;o(bn);try{const Ze=await Io({pageNo:oe});if(Ze.data){const ns=(Re=Ze.data.conversations)==null?void 0:Re.find(be=>be._id===s);U(ns.convoStatus??"accepted"),o(xo(Ze.data.conversations,oe,Ze.data.totalPages))}let Oe=await Gs({pageNo:oe,conversationId:Ee(s)});const{messages:Ne,totalPages:ze,currentPage:Te,unseenNotifications:es}=Oe==null?void 0:Oe.data;o(Us(Ne,Te,ze,s)),o(Ss(es))}catch(Ze){u(Ze)}},[o]);We(()=>{if(setTimeout(()=>{K(1)},1e3),T!=null&&T.length&&s){const oe=T.find(Re=>Re._id===s);oe!=null&&oe.convoStatus&&U(oe.convoStatus??"ACCEPTED")}},[K,s,a,o,N]);const te=oe=>{N!=null&&N.connected&&(E(!0),S(oe.target.value),P1(s,m),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{R1(s,m),E(!1)},1500))},q=()=>{if(!(k!=null&&k.trim()))return;E(!1);let oe=Ee(k.trim());const Re=Date.now(),Ze={_id:Re,conversationId:s,fromId:m,toId:Z.users.map(Oe=>
14Oe._id),body:oe,createdAt:new Date().toISOString(),pending:!N.connected,isRead:Z.users.reduce((Oe,Ne)=>({...Oe,[Ne._id]:Ne._id===m}),{}),isDelivered:Z.users.reduce((Oe,Ne)=>({...Oe,[Ne._id]:Ne._id===m}),{})};if(o(jt(Ze,s)),o(ft(Ze,s,m,F)),S(""),!N.connected){h("Socket not connected. Message will be sent later."),vo({body:oe,sender:m,convoId:s,openConvStatus:F});return}Ka({body:oe,sender:m,convoId:s,openConvStatus:F},async Oe=>{var Ne,ze,Te;if(Oe){if(Oe.blocked){Q(!0);return}U((Ne=Oe==null?void 0:Oe.conversation)==null?void 0:Ne.convoStatus),(ze=Oe==null?void 0:Oe.message)!=null&&ze.createdAt&&(o(Ln({convoId:s,tempId:Re,newMessage:Oe.message})),o(jt(Oe.message,s)),o(ft(Oe.message,s,m,(Te=Oe==null?void 0:Oe.conversation)==null?void 0:Te.convoStatus)))}})},[H,X]=b.useState("1f60a");function ee(oe,Re){S(Ze=>Ze+(oe.isCustom?oe.unified:oe.emoji)),X(oe.unified),E(!0)}const se=async oe=>{try{const Re=await Bu(Ee(oe));(Re==null?void 0:Re.statusCode)==Ke&&(o(Lh(oe)),o(Ph(oe)),r(!a),c(!1),t(""),I(Ze=>({...Ze,open:!1,itemId:null})),l(T),_())}catch(Re){u(Re)}},ae=async()=>{const oe=await Eo(Ee(ne==null?void 0:ne._id));p(Mo),o(za(oe==null?void 0:oe.data)),y(Re=>({...Re,open:!1,itemId:null}))},B=qn(f,ne==null?void 0:ne._id),[W,Q]=b.useState(B||!1),[ie,Y]=b.useState(null),pe=oe=>{Y(oe.currentTarget)},me=()=>{Y(null)},Ce=!!ie,Ye=Ce?"simple-popover":void 0,[Xe,ue]=b.useState(null),Ae=!!Xe,Se=oe=>{ue(oe.currentTarget)},ve=()=>{ue(null)},J=Array.isArray(v)&&v.includes(ne==null?void 0:ne._id),D=(($=A[s])==null?void 0:$.includes(ne==null?void 0:ne._id))??!1;return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:L?e.jsx("div",{style:{color:"white",fontSize:"300
14px"},children:"Loading..."}):s?e.jsxs("div",{className:"chatbox",children:[e.jsxs("div",{className:"chatbox__card-header chatbox__msg_head",children:[e.jsx("div",{className:"chatbox__back-btn",children:e.jsx("img",{src:O3,onClick:()=>x(),alt:"backArr",className:"profileArr cp"})}),e.jsxs("div",{className:"d-flex bd-highlight",style:{width:"96%",margin:"auto"},children:[e.jsx("div",{className:"chatbox__img_cont",children:e.jsx(au,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",online:J,children:e.jsx(ss,{className:"navbar__profile--avatar",alt:ne==null?void 0:ne.firstName,src:ne==null?void 0:ne.avatar})})}),e.jsxs("div",{className:"chatbox__user_info",children:[e.jsx("span",{children:Dn(Z,m)}),e.jsx("div",{className:"chatbox__online",children:e.jsx("p",{children:J?"Online":"Offline"})})]}),!W&&e.jsxs("div",{className:"message_menu",children:[e.jsx(Yt,{"aria-label":"more",id:"long-button","aria-controls":Ae?"long-menu":void 0,"aria-expanded":Ae?"true":void 0,"aria-haspopup":"true",onClick:Se,children:e.jsx("img",{src:Gn,sx:{width:24,height:24}})}),((re=Z==null?void 0:Z.users)==null?void 0:re.length)<=2?e.jsx(e.Fragment,{children:e.jsx(Jn,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:Xe,open:Ae,onClose:ve,children:e.jsx(Ns,{onClick:()=>{y(oe=>({...oe,open:!0,itemId:ne==null?void 0:ne._id})),ve()},children:e.jsx("p",{children:"Block User"})})})}):null]})]}),e.jsx("hr",{className:"chatbox__hr-line"})]}),W?e.jsx("div",{className:"chatbox-blocked-body",children:e.jsx("div",{className:"chatbox-blocked-container",children:e.jsx("p",{children:"Blocked Chat."})})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{id:"scrollableDiv",className:"chatbox-body",children:P!=null&&P.length?e.jsx(Es,{dataLength:O*10,next:()=>K(O+1),hasMore:O!==M,loader:e.jsx("h4",{children:"Loading..."}),style:{display:"flex",flexDirection:"column-reverse"},inverse:!0,scrollableTarget:"scrollableDiv",className:"scroll_Div",children:P==null?void 0:P.map((oe,Re)=>e.jsx("div",{children:oe.fromId===m?e.jsx("div",{className:"mt-2 d-flex justify-content-end",children:e.jsx(Uu,{message:oe,index:Re,timecolor:"#d6dcdd"})}):e.jsx("div",{className:"d-flex justify-content-start",children:e.jsx(Ou,{message:oe,index:Re,timecolor:"#d6dcdd"})})},Re))}):e.jsx(e.Fragment,{children:e.jsx("div",{className:"chatbox-body"})})}),!["pending","declined"].includes(F)&&e.jsxs(e.Fragment,{children:[D&&e.jsx("div",{className:"d-flex justify-content-start mt-2",children:e.jsxs("div",{className:"typing-indicator message received",children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),e.jsx("div",{className:"chatbox__card-footer",children:e.jsx("div",{className:"chatbox__card-footer-input-1",children:e.jsxs("div",{className:"input-group",style:{alignItems:"center"},children:[e.jsx("textarea",{onClick:()=>I1(s).catch(oe=>{console.error("[ChatWindow] Failed to join room:",oe)}),type:"text",value:k,rows:3,onChange:te,className:"form-control chatbox__type_msg chatbox__type_msg3 custom-placeholder",placeholder:"Write a message",style:{border:"0",background:"var(--background-color)",color:"var(--text-color-primary)"}}),e.jsx("style",{children:`
15                          .custom-placeholder::placeholder {
16                              color:var(--text-color-muted); 
17                              opacity: 1;
18                          }
19                        `}),e.jsx(Qc,{id:Ye,open:Ce,anchorEl:ie,onClose:me,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Fe,{children:e.jsx(md,{onEmojiClick:ee,autoFocusSearch:!1,emojiStyle:hd.NATIVE,width:"20em",theme:ud.AUTO,searchDisabled:!0,skinTonesDisabled:!0,previewConfig:{showPreview:!1}})})}),e.jsx("div",{className:"message-emoji-icon cp",children:e.jsx("span",{"aria-describedby":Ye,variant:"contained",onClick:pe,children:e.jsx("img",{src:Vu,alt:"emoji"})})}),e.jsx("div",{className:"input-group-append",disabled:!k,children:e.jsx("img",{src:zu,onClick:q,alt:"send-icon",className:"cp"})})]})})})]})]})]}
19):e.jsx("div",{className:"col-md-7 col-lg-8 col-xl-9",children:e.jsx("div",{className:"message__right",children:e.jsxs("div",{className:"text-center msgRight msgMain d-none d-md-flex flex-column justify-content-center align-items-center",children:[e.jsx("p",{className:"fs-4 ",children:"Start Your Conversation Now"}),e.jsx("p",{className:"fs-6",children:"When someone sends a message to you, it will appear here"})]})})})}),e.jsx(As,{confirm:j.open,setConfirm:I,action:"delete conversation",performer:se,itemId:j.itemId}),e.jsx(As,{confirm:w.open,setConfirm:y,action:"block",performer:ae,itemId:w.itemId})]})},Y3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14.926'%20height='14.926'%20viewBox='0%200%2014.926%2014.926'%3e%3cpath%20id='Path_24951'%20data-name='Path%2024951'%20d='M6,18.1,18.1,6M6,6,18.1,18.1'%20transform='translate(-4.586%20-4.586)'%20fill='none'%20stroke='%23a3a3a3'%20strokeLinecap='round'%20strokeLinejoin='round'%20strokeWidth='2'/%3e%3c/svg%3e",Yn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iI0EzQTNBMyIgY2xhc3M9InNpemUtNiIgd2lkdGg9JzI2cHgnIGhlaWdodD0nMjZweCc+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0ibTExLjI1IDktMyAzbTAgMCAzIDNtLTMtM2g3LjVNMjEgMTJhOSA5IDAgMSAxLTE4IDAgOSA5IDAgMCAxIDE4IDBaIiAvPg0KPC9zdmc+DQo=",_a=()=>{const{gotoPreviousPage:s}=Be();return e.jsx("img",{src:Yn,onClick:s,alt:"backArr",className:"jpfiArr cp icon-hover",id:"arrow"})},Z3=({convoId:s,setConvoId:t,convoUpdate:a,loadConversations:i,users:n,setConvoUpdate:r,setFilteredConvers:l})=>{var Xe;const c=ge(),o=G(ue=>ue.messages),{conversations:p}=G(ue=>ue.conversations),{onlineUsers:h}=G(ue=>ue.follow),[d,u]=b.useState(()=>{const ue=p==null?void 0:p.find(Ae=>Ae._id===s);return(ue==null?void 0:ue.convoStatus)??"accepted"}),{userDetails:{blockedIds:m}}=G(ue=>ue.auth),{user:f}=G(ue=>ue.auth),v=Ds(),[N,_]=b.useState({open:!1,itemId:null}),[x,j]=b.useState({open:!1,itemId:null}),{successToast:I,errorToast:w,warningToast:y,errorHandle:k}=he(),{messages:S,pageNo:g,totalPages:E,loading:C}=o[s]||{messages:[],pageNo:1,totalPages:1,loading:!1},T=b.useCallback(async ue=>{c(bn());try{const Ae=await Gs({pageNo:ue,conversationId:Ee(s)}),{messages:Se,totalPages:ve,currentPage:J,unseenNotifications:D}=Ae==null?void 0:Ae.data;c(Us(Se,J,ve,s)),c(Ss(D))}catch(Ae){k(Ae)}finally{c(bn())}},[c,s]);We(()=>{if(s&&T(1),p!=null&&p.length&&s){const ue=p.find(Ae=>Ae._id===s);ue!=null&&ue.convoStatus&&u(ue.convoStatus)}},[T,s,a,c]);const[A,R]=b.useState(""),P=ue=>{R(ue.target.value)},O=()=>{if(!(A!=null&&A.trim()))return;const ue=Ee(A.trim()),Ae=Date.now(),Se={_id:Ae,conversationId:s,fromId:f,toId:ne.users.map(ve=>ve._id),body:ue,createdAt:new Date().toISOString(),pending:!v.connected,isRead:ne.users.reduce((ve,J)=>({...ve,[J._id]:J._id===f}),{}),isDelivered:ne.users.reduce((ve,J)=>({...ve,[J._id]:J._id===f}),{})};if(c(jt(Se,s)),c(ft(Se,s,f,d)),R(""),!v.connected){y("Socket not connected. Message will be sent later."),vo({body:ue,sender:f,convoId:s,openConvStatus:d});return}Ka({body:ue,sender:f,convoId:s,openConvStatus:d},async ve=>{var J,D,$;if(ve){if(ve.blocked){X(!0);return}u((J=ve==null?void 0:ve.conversation)==null?void 0:J.convoStatus),(D=ve==null?void 0:ve.message)!=null&&D.createdAt&&(c(replaceTempMessage({convoId:s,tempId:Ae,newMessage:ve.message})),c(jt(ve.message,s)),c(ft(ve.message,s,f,($=ve==null?void 0:ve.conversation)==null?void 0:$.convoStatus)))}})};b.useEffect(()=>{const ue=document.getElementById("scrollableDiv");ue&&(ue.scrollTop=ue.scrollHeight)},[S.length]);const M=()=>{t("")},[L,F]=b.useState("1f60a");function U(ue,Ae){R(Se=>Se+(ue.isCustom?ue.unified:ue.emoji)),F(ue.unified)}const Z=async ue=>{try{const Ae=await Bu(Ee(ue));(Ae==null?void 0:Ae.statusCode)==Ke&&(c(Lh(ue)),c(Ph(ue)),r(!a),t(""),gotoMessages(),_(Se=>({...Se,open:!1,itemId:null})),l(p))}catch(Ae){k(Ae)}};let ne,K;if((n==null?void 0:n.length)>0)ne=n,K=lt(n,f);else{let ue=p==null?void 0:p.filter(Ae=>(Ae==null?void 0:Ae._id)===s)[0];ne=ue,K=lt(ue,f)}const te=async ue=>{const Ae=await Eo(Ee(ue));I(Mo),t(""),c(za(Ae==null?void 0:Ae.data)),j(Se=>({...Se,open:!1,itemId:null}))},q=qn(m,K==null?void 0:K._id),[H,X]=b.useState(q||!1),[ee,se]=b.useState(null),ae=ue=>{se(ue.currentTarget)},B=()=>{se(null)},W=!!ee,Q=W?"simple-popover":void 0,[ie,Y]=b.useState(null),pe=!!ie,me=ue=>{Y(ue.currentTarget)},Ce=()=>{Y(null)},Ye=Array.isArray(h)&&h.includes(K==null?void 0:K._id);return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:C?e.jsx("div",{style:{color:"white",fontSize:"300
19px"},children:"Loading..."}):e.jsxs("div",{className:"chatBoxContainer",children:[e.jsxs("div",{className:"chatbox__card-header chatbox__msg_head chatbox__card-header2",children:[e.jsx("div",{className:"chatbox__back-btn",children:e.jsx(_a,{})}),e.jsxs("div",{className:"d-flex bd-highlight",style:{width:"96%",margin:"auto"},children:[e.jsx("div",{className:"chatbox__img_cont",children:e.jsx(au,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",online:Ye,children:e.jsx(ss,{className:"navbar__profile--avatar",alt:K==null?void 0:K.firstName,src:K==null?void 0:K.avatar})})}),e.jsxs("div",{className:"chatbox__user_info chatbox__user_info2",children:[e.jsx("span",{children:Dn(ne,f)}),e.jsx("div",{className:"chatbox__online",children:e.jsx("p",{children:Ye?"Online":"Offline"})}),e.jsx("img",{src:Y3,alt:"crossIcon",style:{color:"white",position:"absolute",top:"22.5px",right:"16px",cursor:"pointer"},onClick:()=>{M()}})]}),!H&&e.jsxs("div",{className:"message_menu",children:[e.jsx(Yt,{"aria-label":"more",id:"long-button","aria-controls":pe?"long-menu":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"true",onClick:me,children:e.jsx("img",{src:Gn,className:"side-msg-dots",style:{width:21,height:21,marginTop:2}})}),((Xe=n.users)==null?void 0:Xe.length)===2?e.jsx(e.Fragment,{children:e.jsx(Jn,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:ie,open:pe,onClose:Ce,children:e.jsx(Ns,{onClick:()=>{j(ue=>({...ue,open:!0,itemId:K==null?void 0:K._id})),Ce()},children:e.jsx("p",{children:"Block User"})})})}):null]})]}),e.jsx("hr",{className:"chatbox__hr-line",style:{color:"#4C4C4C"}})]}),H?e.jsx("div",{className:"text-center msgRight msgMain d-none d-md-flex flex-column justify-content-center align-items-center",children:e.jsx("p",{style:{color:"#d6dcdd",height:"48vh",textAlign:"center"},children:"Blocked Chat."})}):e.jsx("div",{id:"scrollableDiv",style:{overflow:"auto",display:"flex",flexDirection:"column-reverse",backgroundColor:"var(--background-color)",borderRadius:"0 0 17px 17px"},children:e.jsxs("div",{children:[S!=null&&S.length?e.jsx(Es,{dataLength:S.length,next:()=>T(g+1),hasMore:g<E,loader:e.jsx("h4",{children:"Loading..."}),inverse:!0,style:{display:"flex",flexDirection:"column-reverse",height:"40vh",overscrollBehavior:"contain"},scrollableTarget:"scrollableDiv",className:"scroll_Div",children:S.map((ue,Ae)=>e.jsx("div",{children:ue.fromId===f?e.jsx("div",{className:"mt-2 d-flex justify-content-end",children:e.jsx(Uu,{message:ue,index:Ae,timecolor:"var(--text-color-secondary)"})}):e.jsx("div",{className:"d-flex justify-content-start",children:e.jsx(Ou,{message:ue,index:Ae,timecolor:"var(--text-color-secondary)"})})},Ae))}):e.jsx("div",{style:{display:"flex",flexDirection:"column-reverse",height:"40vh"}}),!["pending","declined"].includes(d)&&e.jsx("div",{className:" chatbox__card-footer2",children:e.jsx("div",{className:"chatbox__card-footer-input-1",children:e.jsxs("div",{className:"input-group",style:{alignItems:"center !important"},children:[e.jsx("div",{className:"message-emoji-icon-side cp",children:e.jsx("span",{"aria-describedby":Q,variant:"contained",onClick:ae,children:e.jsx("img",{src:Vu,alt:"emoji"})})}),e.jsx("div",{className:"sidemessage-send-btn",disabled:!A,children:e.jsx("img",{src:zu,onClick:O,alt:"send-icon",className:"cp"})}),e.jsx("textarea",{onClick:()=>joinRoomByConvoId(s),type:"text",value:A,rows:2,onChange:P,className:"form-control chatbox__type_msg2",placeholder:"Write a message"}),e.jsx(Qc,{id:Q,open:W,anchorEl:ee,onClose:B,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:e.jsx(Fe,{children:e.jsx(md,{onEmojiClick:U,autoFocusSearch:!1,emojiStyle:hd.NATIVE,height:300,width:"15em",theme:ud.AUTO,searchDisabled:!0,skinTonesDisabled:!0,previewConfig:{showPreview:!1}})})})]})})})]})})]})}),e.jsx(As,{confirm:N.open,setConfirm:_,action:"delete conversation",performer:Z,itemId:N.itemId}),e.jsx(As,{confirm:x.open,setConfirm:j,action:"block",performer:te,itemId:x.itemId})]})},K3=({convoId:s,setConvoId:t,users:a,setConvoUpdate:i,convoUpdate:n,loadConversations:r,setFilteredConvers:l})=>{const c=Cs();return e.jsx(e.Fragment,{children:s&&e.jsx("div",{className:"styleBox",children:c.pathname==="/messages"?e.jsx($i,{convoId:s,setConvoId:t,users:a,setConvoUpdate:i,convoUpdate:n},s):e.jsx(Z3,{convoId:s,setConvoId:t,users:a,setConvoUpdate:i,convoUpdate:n,loadConversations:r,setFilteredConvers:l},s)})})},Ju="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='122'%20height='91.528'%20viewBox='0%200%20122%2091.528'%3e%3cg%20id='Group_8365'%20data-name='Group%208365'%20transform='translate(-1523.938%20-494.913)'%3e%3cpath%20id='Path_4348'%20data-name='Path%204348'%20d='M8633.056,3341.209c1.332-10.324,104.906,0,104.906,0v77.93h-100.91v-33.3S8631.724,3351.533,8633.056,3341.209Z'%20transform='translate(-7108.904%2
190-2832.698)'%20fill='%23a7aaab'%20opacity='0.5'/%3e%3cg%20id='Group_3510'%20data-name='Group%203510'%20transform='translate(1535.961%20494.913)'%3e%3cg%20id='Rectangle_1213'%20data-name='Rectangle%201213'%20transform='translate(0%200)'%20fill='%23a7aaab'%20stroke='%23384144'%20stroke-width='5'%3e%3crect%20width='109.976'%20height='79.733'%20rx='7'%20stroke='none'/%3e%3crect%20x='2.5'%20y='2.5'%20width='104.976'%20height='74.733'%20rx='4.5'%20fill='none'/%3e%3c/g%3e%3cpath%20id='Path_4350'%20data-name='Path%204350'%20d='M8647.312,3329.116l51.612,33.239,53.727-33.239'%20transform='translate(-8645.677%20-3326.421)'%20fill='%23a7aaab'%20stroke='%23384144'%20stroke-width='5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Q3=({convoId:s,setConvoId:t,convoUpdate:a,loadConversations:i,setShowMessage:n,showMessage:r,setUsers:l,query:c,users:o,filteredConvos:p,finalOptions:h,handleCreate:d})=>{const{user:u,userDetails:{blockedIds:m}}=G(g=>g.auth),{conversations:f,pageNo:v,totalPages:N,loading:_}=G(g=>g.conversations),x=Ds(),j=ge(),{errorHandle:I}=he(),[w,y]=b.useState({}),k=async g=>{try{let E=await Gs({conversationId:Ee(g)});const{messages:C,totalPages:T,currentPage:A,unseenNotifications:R}=E==null?void 0:E.data;j(Rh(g,u,0)),j(Us(C,A,T,g)),j(Ss(R));const P=f==null?void 0:f.find(L=>(L==null?void 0:L._id)===g),O={...P,unReadCount:{...P==null?void 0:P.unReadCount,[u]:0}},M=await Fu(Ee(g));M&&(M==null?void 0:M.statusCode)===Ke&&(t(g),l(O),y(L=>({...L,[g]:!1})))}catch(E){I(E)}},S=p.map(g=>g._id);return b.useEffect(()=>{if(!x)return;const g=E=>{const C=f.map(T=>{const A=E===(T==null?void 0:T._id)&&(T==null?void 0:T.unReadCount[u])!==0;return{...T,showDot:A}});l(C)};return x.on("show-dot",g),()=>x.off("show-dot",g)},[x,f,u,S]),e.jsx("main",{children:e.jsxs("section",{children:[e.jsxs(Es,{dataLength:v*10,next:()=>i(v+1),hasMore:v!==N,loader:_&&e.jsx("h4",{children:"Create your first conversation now."}),style:{display:"flex",flexWrap:"wrap",overflow:"hidden",justifyContent:"center",padding:"0px 10px"},children:[(c==null?void 0:c.length)>0&&(h==null?void 0:h.filter(g=>g==null?void 0:g.verified).map((g,E)=>{let C=g!=null&&g.avatar?g==null?void 0:g.avatar:Ks(g==null?void 0:g.subType);return e.jsx(yn,{avatar:C,onClick:()=>d(g==null?void 0:g._id),title:g==null?void 0:g.firstName,subtitle:e.jsx("p",{className:"truncated",children:g==null?void 0:g.subType}),date:new Date().getTime(),unread:!1},g==null?void 0:g._id)})),(p==null?void 0:p.length)>0&&p.map(g=>{var O,M,L,F;const E=new Date((O=g==null?void 0:g.latestMessage)==null?void 0:O.createdAt).getTime(),C=lt(g,u),T=qn(m,C==null?void 0:C._id),A=(C==null?void 0:C.avatar)||Ks(C==null?void 0:C.subType),R=(M=g==null?void 0:g.latestMessage)!=null&&M.body?(F=Et((L=g==null?void 0:g.latestMessage)==null?void 0:L.body))==null?void 0:F.toString():"",P=()=>{var U;return T||!((U=g==null?void 0:g.latestMessage)!=null&&U.body)?null:R.includes("Hi, I'm referring you")?e.jsx("p",{className:"truncated",children:"Referred content"}):R.includes("Hi, I have added you as a Verifier to one of my Projects.")?e.jsx("p",{className:"truncated",children:"Project Verification"}):e.jsx("div",{dangerouslySetInnerHTML:{__html:fa.sanitize(R)}})};return e.jsx(yn,{avatar:A,onClick:()=>k(g==null?void 0:g._id),title:Dn(g,u),subtitle:P(),date:!isNaN(E)&&E,unread:w[g==null?void 0:g._id]||(g==null?void 0:g.unReadCount[u])>0},g==null?void 0:g._id)})]}),!p.length&&e.jsx("div",{style:{minHeight:"60vh",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsxs("section",{className:"display-flex-aljc-center mb-3",style:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsx("img",{src:Ju,alt:"no messsage found"}),e.jsx("p",{children:"No messages yet!"})]})})]})})},X3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='42.311'%20height='30.771'%20viewBox='0%200%2042.311%2030.771'%3e%3cpath%20id='Icon_material-person-add'%20data-name='Icon%20material-person-add'%20d='M28.425,21.386a7.693,7.693,0,1,0-7.693-7.693A7.691,7.691,0,0,0,28.425,21.386ZM11.116,17.539V11.77H7.27v5.77H1.5v3.846H7.27v5.77h3.846v-5.77h5.77V17.539Zm17.309,7.693c-5.135,
190-15.386,2.577-15.386,7.693v3.846H43.811V32.925C43.811,27.809,33.56,25.232,28.425,25.232Z'%20transform='translate(-1.5%20-6)'%20fill='%23d0d6d8'/%3e%3c/svg%3e",Hi=()=>e.jsxs("div",{className:"display-flex-aljc-center fdc",style:{padding:"20px"},children:[e.jsx("img",{src:X3,style:{width:"25%",margin:"10px",filter:"brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(312%) hue-rotate(272deg) brightness(89%) contrast(102%)"}}),e.jsx("p",{className:"no-user-message",style:{textAlign:"center"},children:"You may not be following the user."})]}),e_=()=>{const{user:s,userDetails:{blockedIds:t,accountType:a,username:i,avatar:n}}=G(H=>H.auth),{conversations:r,pageNo:l,totalPages:c,loading:o}=G(H=>H.conversations),p=ge(),{errorToast:h,successToast:d,errorHandle:u}=he(),[m,f]=b.useState(""),[v,N]=b.useState(""),[_,x]=b.useState([]),[j,I]=b.useState(!0),[w,y]=b.useState(!1),[k,S]=b.useState(!1),[g,E]=b.useState(!1),[C,T]=b.useState([]);let A=1,R=10;const[P,O]=b.useState([]),[M,L]=b.useState([]),F=H=>{H.target.tagName!=="IMG"&&S(!k)},U=Pt(H=>{var X;return Z((X=H==null?void 0:H.target)==null?void 0:X.value)},100),Z=H=>{f(H),localStorage.setItem("msgquery",H)},ne=async H=>{var X;try{const ee=await Lu({searchValue:H,pageNo:A,limit:R}),ae=(((X=ee==null?void 0:ee.data)==null?void 0:X.usersData)||[]).filter(B=>{var Q;const W=(Q=B==null?void 0:B.friends)==null?void 0:Q.includes(s);return a==="Individuals"||["Brands","Institutes"].includes(a)?W:!0});T(ae),K(H,ae)}catch(ee){u(ee)}},K=(H,X)=>{const ee=H.toLowerCase(),se=(r==null?void 0:r.filter(W=>{const Q=lt(W,s);return`${Q==null?void 0:Q.email} ${Q==null?void 0:Q.firstName} ${Q==null?void 0:Q.lastName}`.toLowerCase().includes(ee)}))||[];O(se);const ae=new Set(se.map(W=>{var Q;return(Q=lt(W,s))==null?void 0:Q._id})),B=X.filter(W=>!ae.has(W._id));L(B),E([...B,...se].length===0)},te=async H=>{try{let se=await Hs({body:{userIds:[H,s],convoType:"SINGLE",convoStatus:"accepted"}}),{conversationData:ae,conversations:B}=se==null?void 0:se.data,W=ae||B[0];N(W==null?void 0:W._id),I(!j),x(W),S(!0),T([]);let Q=await Gs({conversationId:Ee(W==null?void 0:W._id)});const{messages:ie,totalPages:Y,currentPage:pe,unseenNotifications:me}=Q==null?void 0:Q.data;p(Us(ie,pe,Y,W==null?void 0:W._id)),p(Ss(me))}catch(X){u(X)}},q=b.useCallback(async H=>{try{let X=await Io({pageNo:H});const{conversations:ee,totalPages:se,currentPage:ae,unseenNotifications:B}=X==null?void 0:X.data;O(ee),p(xo(ee,ae,se)),p(Ss(B))}catch(X){u(X)}},[p]);return We(()=>(document.body.addEventListener("click",F),()=>document.body.removeEventListener("click",F)),[]),We(()=>{q(1),v&&N(v)},[q,w,v]),b.useEffect(()=>{(m==null?void 0:m.length)==0?(O(r),E(!1),T([]),L([])):ne(m)},[m,r,p]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"sideMessageContainer",children:e.jsxs("main",{className:"sideMessage-parent",children:[e.jsxs("section",{className:"sideMessage__header",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx(ss,{alt:i,src:n,className:"rounded-circle",sx:{width:32,height:32}})}),e.jsx("p",{children:"Messages"})]}),e.jsx("hr",{className:"sideMessage__line"}),e.jsx("section",{style:{padding:"5px"},children:e.jsx("input",{className:"chatNav__search",placeholder:"Search",type:"search",onChange:H=>U(H)})}),e.jsx("section",{className:"sideMessage__cardbody",children:g?e.jsx(Hi,{}):e.jsx(Q3,{convoId:v,setConvoId:N,convoUpdate:w,loadConversations:q,showMessage:j,setUsers:x,users:_,setConvoUpdate:y,query:m,filteredConvos:P,finalOptions:M,handleCreate:te})})]})}),k&&e.jsx(K3,{convoId:v,setConvoId:N,users:_,setConvoUpdate:y,convoUpdate:w,loadConversations:q,setFilteredConvers:O})]})},s_=()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"fdc homeWrap",children:[e.jsx("section",{className:"container-lg",children:e.jsxs("main",{children:[e.jsx(Hn,{}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-lg-8 col-xl-9",children:e.jsx($s,{})}),e.jsx("div",{className:"col-lg-4 col-xl-3",children:e.jsx(e_,{})})]})]})}),e.jsx(Xa,{})]})}),bi=()=>{const t=Cs().pathname.includes("/build-resume");return e.jsx(e.Fragment,{children:e.jsxs("div",{className:t?"":"fdc homeWrap",children:[e.jsx("section",{className:t?"":"container-lg",children:e.jsxs("main",{children:[e.jsx(Hn,{}),t?e.jsx($s,{}):e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx($s,{})})})]})}),!t&&e.jsx(Xa,{})]})})},It="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.101'%20height='17.319'%20viewBox='0%200%2017.101%201
197.319'%3e%3cg%20id='Group_975'%20data-name='Group%20975'%20transform='translate(0%200)'%3e%3crect%20id='Rectangle_357'%20data-name='Rectangle%20357'%20width='17.101'%20height='1.965'%20rx='0.982'%20transform='translate(0%207.568)'%20fill='%23d6dcdd'/%3e%3crect%20id='Rectangle_361'%20data-name='Rectangle%20361'%20width='17.319'%20height='2.191'%20rx='1.095'%20transform='translate(7.568%2017.319)%20rotate(-90)'%20fill='%23d6dcdd'/%3e%3c/g%3e%3c/svg%3e";function t_(){const s=Cs(),t=ge(),a=u=>{u==="open"&&t(ht(Jh)),u==="closed"&&t(ht(CLOSED_JOBS))},i=u=>{u==="applied"&&t(ht(Hh)),u==="saved"&&t(ht(Gh))},n=()=>{t(ut(Qh))},r=()=>{t(ut(CLOSED_PROJECTS))},l=u=>{u==="applied"&&t(ut(Zh)),u==="saved"&&t(ut(Kh))},c=()=>{t(Jt(eu))},o=()=>{t(Jt(CLOSED_FUNDRAISING))},p=u=>{u==="applied"&&t(pt(A2)),u==="saved"&&t(pt(I2))},h=()=>{t(pt(su))},d=()=>{t(pt(T2))};return e.jsxs("main",{children:[e.jsxs("section",{className:"display-flex-aic-jcsb appliedSaved__header",children:[e.jsx("div",{className:"img",children:e.jsx(_a,{})}),e.jsxs("div",{className:"display-flex-aljc-center applieadSaved__two cp",children:[["/open-jobs","/closed-jobs"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",onClick:()=>a("open"),to:"/open-jobs",children:"Open"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",onClick:()=>a("closed"),to:"/closed-jobs",children:"Closed"})]}):["/open-projects","/closed-projects"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",onClick:n,to:"/open-projects",children:"Open"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",onClick:r,to:"/closed-projects",children:"Closed"})]}):["/open-fundraising","/closed-fundraising"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/open-fundraising",onClick:c,children:"Open"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/closed-fundraising",onClick:o,children:"Closed"})]}):["/open-investing","/closed-investing"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/open-investing",onClick:h,children:"Open"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/closed-investing",onClick:d,children:"Closed"})]}):null,["/applied-jobs","/saved-jobs"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/applied-jobs",onClick:()=>i("applied"),children:"Applied"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/saved-jobs",onClick:()=>i("saved"),children:"Saved"})]}):["/applied-projects","/saved-projects"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/applied-projects",onClick:()=>l("applied"),children:"Applied"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/saved-projects",onClick:()=>l("saved"),children:"Saved"})]}):["/applied-investing","/saved-investing"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/applied-investing",onClick:()=>p("applied"),children:"Applied"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/saved-investing",onClick:()=>p("saved"),children:"Saved"})]}):["/connections","/followings"].includes(s.pathname)?e.jsxs(e.Fragment,{children:[e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/connections",onClick:()=>p("applied"),children:"Connections"}),e.jsx(us,{className:({isActive:u})=>u?"link-active":"link",to:"/followings",onClick:()=>p("saved"),children:"Followings"})]}):null]}),e.jsx("div",{className:"navigation__component__five",children:e.jsxs("div",{className:"applieadSaved__three",children:[["/open-jobs","/closed-jobs"].includes(s.pathname)&&e.jsx(is,{to:"/post-job",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{children:"Are you hiring?"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})}),["/open-projects","/closed-projects"].includes(s.pathname)&&e.jsx(is,{to:"/post-project",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{children:"Post Project"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})}),["/open-fundraising","/closed-fundraising"].includes(s.pathname)&&e.jsx(is,{to:"/post-fundraising",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{children:"Post Fundraising"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})}),["/open-investing","/closed-investing"].includes(s.pathname)&&e.jsx(is,{to:"/post-investing",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{children:"Post Investing"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})})]})})]}),e.jsx("section",{children:e.jsx($s,{})})]})}const a_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAbCAYAAAAQ2f3dAAAABHNCSVQICAgIfAhkiAAABaxJREFUWEfNV3tMk1cc7UeB0lbGYygPXXFOIYNk6BAFSaYG0emEkSgJMRBCGI+SsU0GGIJLJPtjIMy5MdFgGOOVIqABGiMPHQ8X5BHYGLQFBlVQnLgOqAKF0tKdS2zzUWmpyTJsQtpyH9+555zf+d1SjNf0Rb0OuI4ePcravXPnzl6RSFxbW/ucYFp3YLGxsRaenp5ZTIoKqL9585Swvl4MXJp1BXbu3DkzOzs7/saNG3/s7uqqEkkkKXV1daPrDYy6cOFCoLOzc/W8QrFUfu0aX6PR3GhoaJhdTymps2fPboOEvzCZTF5/f39bT09PglAo/IOiKM26AYPZ34iOju4FqK0KhUJVW12dKpuc/On27dtybTH+7x47fPgwNyoqqmbDhg0Bi4uLjIGBge6WlpZYPz+/3+G5pRXA2tvbHTMzMxemp6dnmpubVWtFCDEt5nHsmEyWmstVslisucrKSvVa60JDQ9lhYWE3uFzuhwTU/Py86npl5UtsaaWkurq6whwcHOITEhL4oHbIGDhvb28LgUDwlYuLS6ylpaXt40eP+opKSlJxuLZbt24tGAJHQIWHh+tAqVQqhkgk6m5qanqJLR2w4uLigxEREXckEklPSkpKqI+PzwM6rbSHUTAqH6a9RAcwNjb2ID4+/qO9e/cOrLbO39/fOi0trdLa2vqIUqlkqNVqhl
19wuVxQWFp4GwHK6t1ZIGRQU5JCfn9/h5OS0bXBwsCspKSl8bm5Oqs8cYaumpqZx8+bN+/WZycjISOzo6LiqxxqVk5PD8/DwKLCxsVn2FGGKvHfcu3envbMzydfXt3+1wyybn6QvTPnFiRMnzpPvErH4t+SUlEh4YRDeUWpBkNZx5cqVBh6P94E+sDNnzqSC8Uso+TkyRnwIZg/isAWQ3JWAIUwRxiaePJGVlpUlLi0tCbW5pb+frioDAwNdiouKfnVydn6bTJLJZBOlpaWftrW11QEcCT0NfMKMi4v7PCAg4Fv6RmKx+FFycnL006dPm7q7uxcxzzIyMvIT+DAH89h0pghj1dXVV4eGhr4BqAdk39V8qQNGZII5P+bz+WWoMksyGadbaGxsvJibm/v9wsLC35BWDVD2kDrDy8srlMPhcCH9w+zs7O/gmRp7e3vZkf37t7y7a1c2Wk2oVjbtO2EMhpegUSfCl3dxIJ0aBhkjA4cOHbKBBHkw6yn6xIdjY9KOzs6LKBKBlZXVM/iPq1EqXSkzMztkixxSjQG4AnJGubq6ZqG1cLQs0cEhjhRlJSXp/0xNFdXX108aixf9gKWOHTvGS09PvwrD+tva2nLIYvIQgGEA4PCIVFoFuUoRjFIMqaemptjIQD4qLhye9NSXjf69ory8cGh4OAuN+k+s1YWpUSm1gwcOHDDH3/sohq9HRkbUMCgD3pmFDCp8XsT15Dk+SHF9mkUR7EH+BVtYWLxJmKGzoy8jbg+9NUJhspmZ2V1jebciLvQRBwcHW6enpeXu8fWNNES3No+MMaQFNz4+LsvLy0uGxLhuGZfQKDAMUsePH38LGXTd3d19tz44PGAFO6v5Sfu/iYmJZ4UFBdlTcvnPYGrcUBUaNT99kEQDfOV2PitL4OHp6aW/0BSmsF5VLhDkDwwOXmSz2VJT+ulajC2PkwjZtGnTji9Pn84MCAwM0i4yhTEUhaKioqK0r6/vEipWZMrlgH74Na89hLnZ2dktJ0+e5KNiYxwdHe1fZNxykq/G3OjoqAwt7gdkW9X9+/dHjOWVIQ+vCezFQiokJMQGIDziYmI+2+Hm5vfO9u08fVAzMzOq1tbWTjB1GRXcgv74+FXkeyXG6JNJlCCvbMHUVjTy9/DyRlQ4cKys2H+h/zU1N7fiatyLNSMwOvkZtmq7MRasJnnM0AYvLoqW5ubmLOQSC0AptCc1Sf99+/YpDFyZTMGjm2OqlK+06X8x+V85zapJhNIIUwAAAABJRU5ErkJggg==",et=()=>e.jsx(e.Fragment,{children:e.jsxs("footer",{className:"footer-main",children:[e.jsx("hr",{className:"footer__line"}),e.jsxs("div",{className:"footer__content",children:[e.jsxs("ul",{className:"display-flex-aic-jcsb footer__left-part",children:[e.jsx(is,{to:"/home",children:e.jsx("img",{src:a_,alt:"logo",className:"footer__logo"})}),e.jsx(is,{to:"/about",className:"footer-texts",children:e.jsx("p",{children:"About"})}),e.jsx(is,{to:"/blog",className:"footer-texts",children:e.jsx("p",{children:"Blog"})}),e.jsx(is,{to:"/contact",className:"footer-texts",children:e.jsx("p",{children:"Contact"})}),e.jsx(is,{to:"/privacy",className:"footer-texts",children:e.jsx("p",{children:"Privacy & Terms"})})]}),e.jsx("ul",{className:"footer__right-part",children:e.jsxs("li",{children:["Tickbig Networking Media Private Limited © ",new Date().getFullYear()]})})]})]})}),n_=()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"fdc homeWrap",children:[e.jsxs("section",{className:"container-lg",children:[e.jsxs("main",{children:[e.jsx(Hn,{}),e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx($s,{})})})]}),e.jsx(et,{})]}),e.jsx(Xa,{})]})}),i_=()=>{const t=Cs().pathname==="/messages";return e.jsxs("div",{className:"fdc homeWrap",children:[e.jsx("section",{className:"container-lg",children:e.jsxs("main",{children:[e.jsx(Hn,{}),e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx($s,{})})})]})}),t&&e.jsx(Xa,{})]})},Yu=async s=>z.post(mf,s).then(t=>t.data).catch(t=>{throw t}),o_=async s=>z.post(uf,s).then(t=>t.data).catch(t=>{throw t}),_t=async s=>z.post(hf,s).then(t=>t.data).catch(t=>{throw t}),Zu=async s=>z.post(pf,s).then(t=>t.data).catch(t=>{throw t}),Ro=()=>e.jsxs("section",{className:"display-flex-aic-jcsb signUp-nav-container",children:[e.jsx("p",{children:e.jsxs(is,{to:"/",className:"text-decoration-none company-header headLink",children:["Tick",e.jsx("span",{className:"company-header-2",children:"big"})]})}),e.jsxs("p",{children:[e.jsx("span",{className:"signup__acc2",children:"Already have an account? "}),e.jsx(is,{to:"/signin",className:"signup_nav-signin",children:"Sign In"})]})]}),Ku=()=>{const{gotoSignIn:s,gotoSignUp:t,gotoHome:a}=Be(),i=Ds(),{register:n,handleSubmit:r,formState:{errors:l}}=Qe(),{successToast:c,warningToast:o,errorToast:p,errorHandle:h}=he(),[d,u]=b.useState(""),[m,f]=b.useState({otp:"",verified:!1,sent:!1}),[v,N]=b.useState(!1),{user:_}=G(k=>k.auth);b.useEffect(()=>{const k=setTimeout(()=>{p("Verify session expired. Please sign up again."),setTimeout(()=>{y()},3e3)},9e5);return()=>clearTimeout(k)},[]);const x=async()=>{var k;if((d==null?void 0:d.length)===6)try{N(!0);const S=await Yu({id:_,otp:d});S&&((k=S.data)!=null&&k.data)?(c(`${S.message}`),f({...m,sent:!1,verified:!0}),window.localStorage.clear(),i.disconnect(),setTimeout(()=>{window.localStorage.getItem("token")||s()},300),window.location.reload(!1)):o((S==null?void 0:S.message)||Gu)}catch(S){h(S)}finally{N(!1)}else p("Please enter OTP")},j=async()=>{try{const k=await Zu({user:_});k&&(k==null?void 0:k.statusCode)===Ke&&c("OTP resent successfully")}catch(k){h(k)}},I=k=>e.jsx("button",{type:"button",...k,children:k.remainingTime!==0?`${k.remainingTime} sec`:"Resend"}),w=()=>!0,y=()=>{window.localStorage.clear(),window.localStorage.getItem("token")||t(),window.location.reload(!1)};return e.jsxs(e.Fragment,{children:[e.jsx(Ro,{}),e.jsxs("section",{className:"display-flex-aljc-center fdc signup-container",children:[e.jsx("p",{className:"signup-type-header",children:"Verify your OTP"}),e.jsx("div",{className:"hr-line-div display-flex-aljc-center",children:e.jsx("hr",{className:"hr-line"})}),e.jsxs("section",{className:"fdc forgot-card-container",children:[e.jsxs("p",{className:"forgot__entermail",children:[e.jsx("span",{children:"E-mail"})," OTP :"]}),e.jsx("p",{style:{color:"var(--text-color-secondary)",fontSize:"13px",textAlign:"center",marginBottom:"15px"},children:"Note: This page will expire in 15 minutes."}),e.jsxs("form",{autoComplete:"off",className:"display-flex-aljc-center fdc",onSubmit:r(x),children:[e.jsxs("div",{children:[e.jsx("div",{className:"input-control",children:e.jsx(oo,{value:d,onChange:u,autoFocus:!0,OTPLength:6,otpType:"number",disabled:!1,inputStyles:{fontSize:"24px",width:"36px",height:"36px",margin:"4px",color:"var(--text-color-primary)",borderBottom:"1px solid var(--text-color-primary)",borderTop:"0px",borderLeft:"0px",borderRight:"0px",outline:"none",backgroundColor:"var(--card-surface-primary)"}})}),e.jsx(ro.ResendOTP,{className:"resend-button mt-4",renderButton:I,renderTime:w,onResendClick:j,style:{border:"0",textAlign:"end",color:"var(--text-color-secondary)"}})]}),e.jsx("div",{className:"verify-form__button mt-4",children:e.jsx("button",{type:"submit",disabled:v,children:v?"Verifying...":"
19Verify & Join"})})]}),e.jsxs("p",{className:"forgot__login",onClick:y,children:[e.jsx("i",{className:"forgot_icon fa-solid fa-arrow-left"}),"Back to signup"]})]})]}),e.jsx(et,{})]})},r_=Object.freeze(Object.defineProperty({__proto__:null,default:Ku},Symbol.toStringTag,{value:"Module"}));function Qu(){const{successToast:s,warningToast:t,errorToast:a,errorHandle:i}=he(),{gotoSignIn:n,gotoSignUp:r}=Be(),{register:l,handleSubmit:c,formState:{errors:o}}=Qe(),p=Ds(),[h,d]=b.useState("");b.useState({otp:"",verified:!1,sent:!1});const[u,m]=b.useState(!1),{user:f,userDetails:{mobile:v}}=G(w=>w.auth);b.useEffect(()=>{const w=setTimeout(()=>{a("Verify session expired. Please sign up again."),setTimeout(()=>{I()},3e3)},9e5);return()=>clearTimeout(w)},[]);const N=async()=>{var w;if((h==null?void 0:h.length)===6)try{m(!0);const y=await o_({id:f,otp:h,mobile:v});y&&y.statusCode===Ke&&((w=y==null?void 0:y.data)!=null&&w.data)?(s((y==null?void 0:y.message)||""),window.localStorage.clear(),p.disconnect(),window.localStorage.getItem("token")||n(),window.location.reload(!1)):t((y==null?void 0:y.message)||Gu)}catch(y){i(y)}finally{m(!1)}},_=async()=>{try{const w=await Zu({user:f});w&&(w==null?void 0:w.statusCode)===Ke&&s(w==null?void 0:w.message)}catch(w){i(w)}},x=w=>e.jsx("button",{...w,children:w.remainingTime!==0?`${w.remainingTime} sec`:"Resend"}),j=()=>!0,I=()=>{window.localStorage.clear(),window.localStorage.getItem("token")||r(),window.location.reload(!1)};return e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"display-flex-aic-jcsb forgot-nav-container",children:e.jsxs("p",{className:"company-header",children:["Tick",e.jsx("span",{className:"company-header-2",children:"big"})]})}),e.jsxs("section",{className:"display-flex-aljc-center fdc forgot__main",children:[e.jsx("p",{className:"forgot__title",children:"Verify your OTP"}),e.jsx("div",{className:"hr-line-div display-flex-aljc-center",children:e.jsx("hr",{className:"hr-line"})}),e.jsxs("section",{className:"fdc forgot-card-container",children:[e.jsxs("p",{className:"forgot__entermail",children:[e.jsx("span",{children:"OTP is sent to your registered email"}),"."]}),e.jsx("p",{style:{color:"var(--text-color-secondary)",fontSize:"13px",textAlign:"center",marginBottom:"15px"},children:"Note: This page will expire in 15 minutes."}),e.jsxs("form",{autoComplete:"off",className:"display-flex-aljc-center fdc",onSubmit:c(N),children:[e.jsxs("div",{children:[e.jsx("div",{className:"input-control",children:e.jsx(oo,{value:h,onChange:d,autoFocus:!0,OTPLength:6,otpType:"number",disabled:!1,inputStyles:{fontSize:"24px",width:"36px",height:"36px",margin:"4px",borderTop:"0px",borderLeft:"0px",borderRight:"0px",outline:"none",borderColor:"#01bf71",backgroundColor:"#252b2d"}})}),e.jsx(ro.ResendOTP,{className:"resend-button",renderButton:x,renderTime:j,onResendClick:_,style:{border:"0",textAlign:"end",color:"#a7aaab"}})]}),e.jsx("div",{className:"verify-form__button",children:e.jsx("button",{type:"submit",disabled:u,children:u?"Verifying...":"Verify & Join"})})]}),e.jsxs("p",{className:"forgot__login",onClick:I,children:[e.jsx("i",{className:"forgot_icon fa-solid fa-arrow-left"}),"Back to signup"]})]})]}),e.jsx(et,{})]})}const l_=Object.freeze(Object.defineProperty({__proto__:null,default:Qu},Symbol.toStringTag,{value:"Module"}));function c_(){const[s,t]=b.useState(!0);return We(()=>{setTimeout(()=>{t(!1)},4e3)},[]),e.jsx(e.Fragment,{children:s?e.jsx(os,{}):e.jsxs("div",{className:"container text-center align-items-center flex-column d-flex vh-100 justify-content-center",children:[e.jsx("p",{className:"text-white fs-1 fw-semibold",children:"Page Not Found"}),e.jsx("p",{className:"mt-3 text-secondary fs-4 fw-medium",children:"Sorry, the page you are looking for could not be found."}),e.jsxs("button",{style:{backgroundColor:"#01bf71"},className:"gap-2 mt-5 btn align-items-center d-flex justify-content-center rounded-pill",children:[e.jsx("i",{className:"text-white fa-solid fa-arrow-left"}),e.jsx(is,{to:"/home",className:"text-white text-decoration-none",children:"Return Home"})]})]})})}const d_=()=>{b.useState(!1);const{gotoSignIn:s,gotoAdmin:t}=Be();return G(a=>a.auth),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"nav__sidebar",children:[e.jsx("div",{className:"gap-3 d-flex align-items-center",children:e.jsx(_a,{})}),e.jsx("div",{className:"setnav__sidebar--types",children:e.jsx(us,{className:({isActive:a})=>a?"setnav__type11-active":"setnav__type11",to:"/settings",children:"Connections"})}),e.jsx("div",{className:"setnav__sidebar--types",children:e.jsx(us,{to:"/subscription",className:({isActive:a})=>a?"setnav__type11-active ":"setnav__type11",children:"Subscription"})}),e.jsx("div",{className:"setnav__sidebar--types",children:e.jsx(us,{to:"/purchasehistory",className:({isActive:a})=>a?"setnav__type11-active ":"setnav__type11",children:"Purchase History"})}),e.jsx("div",{className:"setnav__sidebar--types",onClick:()=>t(),children:e.jsx(us,{to:"/admin",className:({isActive:a})=>a?"setnav__type11-active ":"setnav__type11",children:"Admin"})}),e.jsx("div",{className:"setnav__sidebar--types",children:e.jsx(us,{className:({isActive:a})=>a?"setnav__type11-active ":"setnav__type11",to:"/security",children:"Security"})})]})})},m_=()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-xl-2 col-lg-3 col-md-4",children:e.jsx(d_,{})}),e.jsxs("div",{className:"col-xl-10 col-lg-9 col-md-8",children:[e.jsx(S3,{}),e.jsx($s,{})]})]})}
19),$T=async({pageNo:s=1,limit:t=10,sortDesc:a,noticePeriod:i,experience:n,salary:r,designation:l,location:c,rating:o,skills:p,ppostedBy:h,subType:d,adminFor:u})=>z.post(Rf+`?pageNo=${s}&limit=${t}&sort=${a}`,{noticePeriod:i,experience:n,salary:r,designation:l,location:c,rating:o,skills:p,ppostedBy:h,subType:d,adminFor:u}).then(m=>m.data).catch(m=>{throw m}),HT=async({pageNo:s=1,limit:t=10,sortDesc:a})=>z.get(Uf+`?pageNo=${s}&limit=${t}&sort=${a}`).then(i=>i.data).catch(i=>{throw i}),GT=async(s,t)=>t?z.post(_l,s,{headers:{createdby:t,action:"create"}}).then(a=>a.data).catch(a=>{throw a}):z.post(_l,s).then(a=>a.data).catch(a=>{throw a}),JT=async(s,t,a,i)=>z.patch(Gf+`/${s}`,{sender:t,myName:a,resume:i}).then(n=>n.data).catch(n=>{throw n}),YT=async({jobId:s,resume:t,profile:a,description:i,onBehalf:n,sender:r})=>z.post(Kf+`/${s}`,{jobId:s,resume:t,profile:a,description:i,onBehalf:n,sender:r}).then(l=>l.data).catch(l=>{throw l}),ZT=async({pageNo:s=1,limit:t=10})=>z.get(Df+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),KT=async({pageNo:s=1,limit:t=10})=>z.get(zf+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),QT=async(s,t,a)=>z.post(`${Wf}/${s}`,{onBehalfOf:t,postedBy:a}).then(i=>i.data).catch(i=>{throw i}),XT=async s=>z.patch(`${Jf}/${s}`).then(t=>t.data).catch(t=>{throw t}),eI=async s=>z.post(`${qf}/${s}`).then(t=>t.data).catch(t=>{throw t}),sI=async s=>z.post(`${Vf}/${s}`).then(t=>t.data).catch(t=>{throw t}),tI=async({pageNo:s=1,limit:t=10})=>z.get(Of+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),aI=async({jobId:s})=>z.get(Hf+`/${s}`).then(t=>t.data).catch(t=>{throw t}),nI=async({jobId:s,reviewComment:t,jobOwnerId:a,ratings:i})=>z.patch(Yf,{jobId:s,reviewComment:t,jobOwnerId:a,ratings:i}).then(n=>n.data).catch(n=>{throw n}),iI=async({jobId:s,reportComment:t,jobOwnerId:a,jobOnBehalfOf:i,jobPostedBy:n})=>z.patch(Zf,{jobId:s,reportComment:t,jobOwnerId:a,jobOnBehalfOf:i,jobPostedBy:n}).then(r=>r.data).catch(r=>{throw r}),h_=async({value:s})=>z.get(Lf+`?designation=${s}`).then(t=>t.data).catch(t=>{throw t}),u_=async({value:s})=>z.get(Ff+`?location=${s}`).then(t=>t.data).catch(t=>{throw t}),p_=async({value:s})=>z.get(Bf+`?skills=${s}`).then(t=>t.data).catch(t=>{throw t}),oI=async s=>z.get($f+`/${s}`).then(t=>t.data).catch(t=>{throw t}),rI=async(s,t,a,i)=>z.post(Un,{sourceId:s,sender:t,unique:a,section:i}).then(n=>n.data).catch(n=>{throw n}),Na="data:image/svg+xml,%3csvg%20id='trash_icon'%20data-name='trash%20icon'%20xmlns='http://www.w3.org/2000/svg'%20width='15.447'%20height='17.654'%20viewBox='0%200%2015.447%2017.654'%3e%3cpath%20id='trash-can-regular'%20d='M5.517,13.792a.552.552,0,1,1-1.1,0V6.62a.552.552,0,1,1,1.1,0Zm2.758,0a.552.552,0,1,1-1.1,0V6.62a.552.552,0,1,1,1.1,0Zm2.758,0a.552.552,0,1,1-1.1,0V6.62a.552.552,0,1,1,1.1,0ZM10.948.86l1.265,1.9H14.62a.828.828,0,0,1,0,1.655h-.276V14.9a2.758,2.758,0,0,1-2.758,2.758H3.862A2.758,2.758,0,0,1,1.1,14.9V4.414H.828a.828.828,0,0,1,0-1.655H3.235L4.5.86A1.933,1.933,0,0,1,6.107,0H9.341a1.933,1.933,0,0,1,1.607.86Zm-5.724,1.9h5l-.655-.981a.277.277,0,0,0-.228-.123H6.107c-.09,0-.207.046-.228.123ZM2.758,14.9a1.1,1.1,0,0,0,1.1,1.1h7.724a1.1,1.1,0,0,0,1.1-1.1V4.414H2.758Z'%20fill='%23a7aaab'/%3e%3c/svg%3e",g_=()=>{var N,_;const s=ge(),{filters:{searchedKeywords:t,designation:a}}=G(x=>x.jobs),{errorToast:i,successToast:n,warningToast:r,errorHandle:l}=he(),[c,o]=b.useState((N=t.designation)==null?void 0:N.length),[p,h]=b.useState([]),[d,u]=b.useState(t.designation),m=x=>{if(!a.includes(x))s(oi([...a,x],d));else{let j=a.filter(I=>I!==x);s(oi(j,d))}},f=()=>{s(oi([],d)),u(""),h([])},v=async x=>{var w,y,k;const{target:{value:j}}=x;u(j);let I=[];if((j==null?void 0:j.length)>=2)try{const S=await h_({value:j});S!=null&&S.data&&((w=S==null?void 0:S.data)!=null&&w.jobs)&&((k=(y=S==null?void 0:S.data)==null?void 0:y.jobs)==null||k.map(g=>{I.indexOf(g.designation)===-1&&I.push(g.designation)}),h(I))}catch(S){l(S)}else h([])};return e.jsxs("div",{className:"",children:[e.jsx("p",{className:"filter__Title",children:"Designation"}),e.jsx("main",{className:"filterBox__main",children:c?e.jsx(e.Fragment,{children:e.jsxs("section",{className:"filterBox__search",children:[e.jsxs("div",{className:"display-flex-aic-jcsb filter--designation",children:[e.jsx("div",{children:e.jsx(Ga,{className:"filterBox__icon--search"})}),e.jsx("div",{className:"border-bottom input--designation ",children:e.jsx("input",{type:"search",className:"filter__Input",placeholder:"Designation",onChange:v,value:d})}),e.jsx("div",{children:e.jsx("img",{src:Na,onClick:f,className:"cursor-pointer",alt:"search"})}),e.jsx("div",{children:e.jsx(xa,{onClick:()=>o(!c),className:"filterBox__icon--downArrow"})})]}),e.jsx("ul",{className:"filterBox__list",children:a==null?void 0:a.map((x,j)=>e.jsxs("li",{onClick:()=>m(x),className:"display-flex-aic-jcsb",children:[x,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:x,checked:a.includes(x),onChange:()=>m(x)})]},j))}),e.jsx("ul",{className:"filterBox__list",children:(_=p==null?void 0:p.filter(x=>!a.includes(x)))==null?void 0:_.map((x,j)=>e.jsxs("li",{onClick:()=>m(x),className:"display-flex-aic-jcsb",children:[x,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:x,style:{display:!a.includes(x)&&"none"},checked:a.includes(x),onChange:()=>m(x)})]},j))})]})}):e.jsx(e.Fragment,{children:e.jsxs("section",{onClick:()=>
19o(!c),className:"display-flex-aic-jcsb filterBox__search filterBox__content",children:[e.jsx("p",{children:"Designation"}),e.jsx(Ja,{className:"filterBox__icon--sideArrow"})]})})})]})},x_=()=>{var x;const s=ge(),{filters:{searchedKeywords:t,location:a}}=G(j=>j.jobs),{errorToast:i,successToast:n,warningToast:r,errorHandle:l}=he(),[c,o]=b.useState(t==null?void 0:t.location),[p,h]=b.useState((x=t==null?void 0:t.location)==null?void 0:x.length),[d,u]=b.useState([]),m=j=>{if(!a.includes(j))s(ri([...a,j],c));else{let I=a.filter(w=>w!==j);s(ri(I,c))}},f=()=>{s(ri([],c)),o(""),u([])},[v,N]=b.useState([]),_=async j=>{var y,k,S;const{target:{value:I}}=j;o(I);let w=[];if((I==null?void 0:I.length)>=2)try{const g=await u_({value:I});g!=null&&g.data&&((y=g==null?void 0:g.data)!=null&&y.jobs)&&((S=(k=g==null?void 0:g.data)==null?void 0:k.jobs)==null||S.map(E=>N(C=>[...C,E.location])),[...new Set(v)].some(E=>E.toLowerCase().includes(I.toLowerCase())&&(w=[...w,E])),u(w))}catch(g){l(g)}else u([])};return e.jsxs("div",{className:"",children:[e.jsx("p",{className:"filter__Title",children:"Location"}),e.jsx("main",{className:"filterBox__main",children:p?e.jsx(e.Fragment,{children:e.jsxs("section",{className:"filterBox__search",children:[e.jsxs("div",{className:"display-flex-aic-jcsb filter--location",children:[e.jsx("div",{children:e.jsx(Ga,{className:"filterBox__icon--search"})}),e.jsx("div",{className:"border-bottom input--location",children:e.jsx("input",{type:"search",placeholder:"Location",onChange:_,value:c,className:"filter__Input"})}),e.jsx("div",{children:e.jsx("img",{src:Na,onClick:f,className:"cursor-pointer",alt:"search"})}),e.jsx("div",{children:e.jsx(xa,{onClick:()=>h(!p),className:"filterBox__icon--downArrow"})})]}),e.jsx("ul",{className:"filterBox__list",children:a==null?void 0:a.map((j,I)=>e.jsxs("li",{onClick:()=>m(j),className:"display-flex-aic-jcsb",children:[j,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:j,checked:a.includes(j),onChange:()=>m(j)})]},I))}),e.jsx("ul",{className:"filterBox__list",children:d==null?void 0:d.map((j,I)=>e.jsxs("li",{className:"display-flex-aic-jcsb",onClick:()=>m(j),style:{display:a.includes(j)&&"none"},children:[j,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:j,style:{display:!a.includes(j)&&"none"},checked:a.includes(j),onChange:()=>m(j)})]},I))})]})}):e.jsx(e.Fragment,{children:e.jsxs("section",{onClick:()=>h(!p),className:"display-flex-aic-jcsb filterBox__search filterBox__content",children:[e.jsx("p",{className:"filter__loc",children:"Location"}),e.jsx(Ja,{className:"filterBox__icon--sideArrow"})]})})})]})},ct="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24.389'%20height='15.561'%20viewBox='0%200%2024.389%2015.561'%3e%3cg%20id='Group_8338'%20data-name='Group%208338'%20transform='translate(-758.54)'%3e%3cpath%20id='Path_4194'%20data-name='Path%204194'%20d='M788.283-294.505c-1.611,0-3.222,0-4.833,0a.425.425,0,0,0-.448.275,3.222,3.222,0,0,1-3.031,1.92,3.219,3.219,0,0,1-3.034-1.915.45.45,0,0,0-.481-.28q-2.6.012-5.2,0a1.159,1.159,0,0,1-1.27-1.252,1.146,1.146,0,0,1,.947-1.073,3.12,3.12,0,0,1,.514-.032c1.66,0,3.32-.007,4.98,0a.5.5,0,0,0,.531-.319,3.218,3.218,0,0,1,3.023-1.874,3.2,3.2,0,0,1,2.991,1.865.532.532,0,0,0,.566.328q4.63-.012,9.259-.005c.123,0,.246,0,.369,0a1.172,1.172,0,0,1,1.2,1.187,1.155,1.155,0,0,1-1.211,1.167c-1.254.014-2.508,0-3.763,0Z'%20transform='translate(-11.442%20307.876)'%20fill='%23d6dcdd'/%3e%3cpath%20id='Path_4195'%20data-name='Path%204195'%20d='M776.416-386.37c1.734,0,3.467-.006,5.2.006a.444.444,0,0,0,.47-.292,3.217,3.217,0,0,1,3.041-1.908,3.214,3.214,0,0,1,3.022,1.937.415.415,0,0,0,.451.262q2.287-.012,4.574,0a1.163,1.163,0,0,1,1.129.793,1.091,1.091,0,0,1-.379,1.284,1.667,1.667,0,0,1-.849.27c-1.487.026-2.975.017-4.463.007a.442.442,0,0,0-.474.286,3.217,3.217,0,0,1-3.036,1.914,3.212,3.212,0,0,1-3.024-1.932.439.439,0,0,0-.484-.266q-5.164.006-10.328,0a1.177,1.177,0,0,1-1.279-1.1,1.167,1.167,0,0,1,1.229-1.26C772.949-386.374,774.683-386.37,776.416-386.37Z'%20transform='translate(-11.444%20388.565)'%20fill='%23d6dcdd'/%3e%3c/g%3e%3c/svg%3e",f_=b.memo(({val:s,name:t,type:a,onKeyDown:i,onChange:n,className:r})=>e.jsx("input",{name:t,type:a,onKeyDown:i,onChange:n,value:s,className:r}
19)),j_=({resourceInput:s,handleInputClick:t})=>e.jsxs("div",{className:"d-flex",children:[e.jsx("span",{className:"text__Filter",children:"Reqd Resources"}),e.jsx(f_,{name:"noOfResource",type:"number",onWheel:a=>a.currentTarget.blur(),step:1,onKeyDown:a=>{Ot(a),Zs(a)},onChange:t,val:s,className:"mb-2 input__width"})]});function y_(){const s=ge(),{filters:{engagementType:t,noOfResource:a}}=G(p=>p.projects),[i,n]=b.useState((t==null?void 0:t.includes("StaffAugmentation"))&&a),[r,l]=b.useState(t||[]),c=p=>{const h=p.target.textContent;if(r!=null&&r.includes(h)){let d=r==null?void 0:r.filter(u=>u!=h);l(d),h==="StaffAugmentation"&&n(null)}else l(d=>[...d,h])},o=b.useCallback(p=>{const h=p.target.value;h!==i&&n(h)},[i]);return We(()=>{s(Qx(r,i))},[r,i]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsxs("section",{className:"filterBox__search",children:[e.jsx("p",{children:"Project Type"}),e.jsx("ul",{className:"filterBox__list",children:xi==null?void 0:xi.map((p,h)=>e.jsxs("li",{onClick:c,className:"display-flex-aic-jcsb",children:[p.name,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:p.value,style:{display:!t.includes(p.name)&&"none"},checked:t.includes(p.name),onChange:c})]},h))}),t.includes("StaffAugmentation")&&e.jsx(j_,{resourceInput:i,handleInputClick:o})]})})})}const lI=async({pageNo:s=1,limit:t=10,sector:a,sortDesc:i,engagementType:n,accountType:r,location:l,ppostedBy:c,subType:o,noOfResource:p,skills:h,adminFor:d})=>z.post(Qf+`?pageNo=${s}&limit=${t}&sort=${i}`,{sector:a,accountType:r,location:l,engagementType:n,ppostedBy:c,subType:o,skills:h,noOfResource:p,adminFor:d}).then(u=>u.data).catch(u=>{throw u}),cI=async({pageNo:s=1,limit:t=10,tab:a,sortDesc:i,sector:n,accountType:r,location:l,engagementType:c})=>z.get(sj+`?pageNo=${s}&limit=${t}&sort=${i}`).then(o=>o.data).catch(o=>{throw o}),dI=async(s,t)=>t?z.post(Nl,s,{headers:{onBehalfOf:t}}).then(a=>a.data).catch(a=>{throw a}):z.post(Nl,s).then(a=>a.data).catch(a=>{throw a}),mI=async({pageNo:s=1,limit:t=10})=>z.get(nj+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),hI=async({pageNo:s=1,limit:t=10})=>z.get(tj+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),uI=async(s,t,a)=>z.post(`${rj}/${s}`,{onBehalfOf:t,postedBy:a}).then(i=>i.data).catch(i=>{throw i}),pI=async s=>z.patch(`${pj}/${s}`).then(t=>t.data).catch(t=>{throw t}),gI=async s=>z.post(`${ij}/${s}`).then(t=>t.data).catch(t=>{throw t}),xI=async s=>z.post(`${oj}/${s}`).then(t=>t.data).catch(t=>{throw t}),fI=async({pageNo:s=1,limit:t=10})=>z.get(aj+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),jI=async s=>z.get(lj+`/${s}`).then(t=>t.data).catch(t=>{throw t}),yI=async({projectId:s,comment:t,ownerId:a,ratings:i})=>z.patch(dj,{projectId:s,reviewComment:t,projectOwnerId:a,ratings:i}).then(n=>n.data).catch(n=>{throw n}),bI=async({projectId:s,reportComment:t,projectOwnerId:a,projectOnBehalfOf:i,projectPostedBy:n})=>z.patch(mj,{projectId:s,reportComment:t,projectOwnerId:a,projectOnBehalfOf:i,projectPostedBy:n}).then(r=>r.data).catch(r=>{throw r}),vI=async(s,t,a)=>z.post(hj,{projectId:s,projectTypeAppliedDetails:t,myName:a}).then(i=>i.data).catch(i=>{throw i}),_I=async(s,t,a)=>z.post(uj,{projectId:s,staffAgumentationAppliedDetails:t,myName:a}).then(i=>i.data).catch(i=>{throw i}),NI=async s=>z.get(cj+`/${s}`).then(t=>t.data).catch(t=>{throw t}),b_=async({value:s})=>z.get(Xf+`?sector=${s}`).then(t=>t.data).catch(t=>{throw t}),v_=async({value:s})=>z.get(ej+`?skills=${s}`).then(t=>t.data).catch(t=>{throw t}),wI=async(s,t,a,i)=>z.post(Un,{sourceId:s,sender:t,unique:a,section:i}).then(n=>n.data).catch(n=>{throw n}),SI=async({pageNo:s=1,limit:t=10,sector:a,typeOfProject:i,userType:n,reviews:r,subType:l,adminFor:c,companySize:o,stage:p,fundRange:h})=>z.post(xu+`?pageNo=${s}&limit=${t}`,{sector:a,typeOfProject:i,userType:n,reviews:r,subType:l,adminFor:c,companySize:o,stage:p,fundRange:h}).then(d=>d.data).catch(d=>{throw d}),kI=async s=>z.get(`${xu}/${s}`).then(t=>t.data).catch(t=>{throw t}),CI=async({pageNo:s=1,limit:t=10,tab:a,sector:i,typeOfProject:n,userType:r,reviews:l,latest:c})=>z.get(yj+`?pageNo=${s}&limit=${t}`).then(o=>o.data).catch(o=>{throw o}),TI=async s=>z.post(`${fj}/${s}`).then(t=>t.data).catch(t=>{throw t}),II=async s=>z.post(`${jj}/${s}`).then(t=>t.data).catch(t=>{throw t}),AI=async(s,t)=>z.post(`${Bn}/${s}`,{action:"Like",typeOfLike:"Like",myName:t}).then(a=>a.data).catch(a=>{throw a}),EI=async(s,t,a)=>z.post(`${Bn}/${s}`,{action:"Like",typeOfLike:"UnLike",myName:t,notificId:a}).then(i=>i.data).catch(i=>{throw i}),MI=async(s,t)=>z.post(`${Bn}/${s}`,{action:"SuperLike",typeOfLike:"Like",myName:t}).then(a=>a.data).catch(a=>{throw a}),PI=async(s,t,a)=>z.post(`${Bn}/${s}`,{action:"SuperLike",typeOfLike:"UnLike",myName:t,notificId:a}).then(i=>i.data).catch(i=>{throw i}),RI=async({pageNo:s=1,limit:t=10})=>z.get(vj+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),LI=async(s,t)=>t?z.post(wl,s,{headers:{onBehalfOf:t}}).then(a=>a.data).catch(a=>{throw a}):z.post(wl,s).then(a=>a.data).catch(a=>{throw a}),FI=async(s,t,a)=>z.post(`${wj}/${s}`,{onBehalfOf:t,postedBy:a}).then(i=>i.data).catch(i=>{throw i}),BI=async({fundraisingId:s,reviewComment:t,fundraisingOwnerId:a,ratings:i})=>z.patch(gj,{fundraisingId:s,reviewComment:t,fundraisingOwnerId:a,ratings:i}).then(n=>n.data).catch(n=>{throw n}),__=async({value:s})=>z.get(Nj+`?sector=${s}`).then(t=>t.data).catch(t=>{throw t}),OI=async({fundraisingId:s,reportComment:t,fundraisngOwnerId:a,fundraisngOnBehalfOf:i,fundraisngPostedBy:n})=>z.patch(xj,{fundraisingId:s,reportComment:t,fundraisngOwnerId:a,fundraisngOnBehalfOf:i,fundraisngPostedBy:n}).then(r=>r.data).catch(r=>{throw r}),UI=async(s,t,a,i)=>z.post(Un,{sourceId:s,sender:t,unique:a,section:i}).then(n=>n.data).catch(n=>{throw n}),DI=async s=>z.patch(`${_j}/${s}`).then(t=>t.data).catch(t=>{throw t}),qI=async s=>z.get(bj).then(t=>t.data).catch(t=>{throw t}),VI=async({pageNo:s=1,limit:t=10,stage:a,sector:i,investRange:n,subType:r,adminFor:l})=>z.post(Sj+`?pageNo=${s}&limit=${t}`,{subType:r,adminFor:l,investRange:n,stage:a,sector:i}).then(c=>c.data).catch(c=>{throw c}),zI=async s=>z.get(`${kj}/${s}`).then(t=>t.data).catch(t=>{throw t}),WI=async({pageNo:s=1,limit:t=10})=>z.get(Aj+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),$I=async(s,t)=>t?z.post(Sl,s,{headers:{onBehalfOf:t}}).then(a=>a.data).catch(a=>{throw a}):z.post(Sl,s).then(a=>a.data).catch(a=>{throw a}),HI=async(s,t,a,i,n)=>z.patch(`${Cj}/${s}`,{pitchDetails:t,userSubType:a,myName:i,sender:n}).then(r=>r.data).catch(r=>{throw r}),GI=async({pageNo:s=1,limit:t=10})=>z.get(Ej+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),JI=async s=>z.post(`${Lj}/${s}`).then(t=>t.data).catch(t=>{throw t}),YI=async s=>z.post(`${Bj}/${s}`).then(t=>t.data).catch(t=>{throw t}),ZI=async({pageNo:s=1,limit:t=10})=>z.get(Rj+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),KI=async({investId:s,reviewComment:t,investingOwnerId:a,ratings:i})=>z.patch(Tj,{investId:s,reviewComment:t,investingOwnerId:a,ratings:i}).then(n=>n.data).catch(n=>{throw n}),QI=async({investId:s,reportComment:t,investingOwnerId:a,investingOnBehalfOf:i,investingPostedBy:n})=>z.patch(Ij,{investId:s,reportComment:t,investingOwnerId:a,investingOnBehalfOf:i,investingPostedBy:n}).then(r=>r.data).catch(r=>{throw r}),XI=async s=>z.get(Uj+`/${s}`).then(t=>t.data).catch(t=>{throw t}),eA=async(s,t,a)=>z.post(`${Pj}/${s}`,{onBehalfOf:t,postedBy:a}).then(i=>i.data).catch(i=>{throw i}),N_=async({value:s})=>z.get(Oj+`?sector=${s}`).then(t=>t.data).catch(t=>{throw t}),sA=async s=>z.patch(`${Mj}/${s}`).then(t=>t.data).catch(t=>{throw t}),tA=async({pageNo:s=1,limit:t=10})=>z.get(Fj+`?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),aA=async(s,t,a,i)=>z.post(Un,{sourceId:s,sender:t,unique:a,section:i}).then(n=>n.data).catch(n=>{throw n}),vi=({module:s})=>{var I,w,y,k,S,g,E,C;const t=ge(),{errorToast:a,successToast:i,warningToast:n,errorHandle:r}=he(),l=G(T=>T.projects),c=G(T=>T.fundraising),o=G(T=>T.investing),[p,h]=b.useState({Projects:!1,Fundraising:!1,Investment:!1}),[d,u]=b.useState({Projects:[],Fundraising:[],Investment:[]}),[m,f]=b.useState({Projects:(I=l==null?void 0:l.searchedKeywords)==null?void 0:I.sector,Fundraising:(w=c==null?void 0:c.searchedKeywords)==null?void 0:w.sector,Investment:(y=o==null?void 0:o.searchedKeywords)==null?void 0:y.sector}),[v,N]=b.useState({Projects:(k=l==null?void 0:l.filters)==null?void 0:k.sector,Fundraising:(S=c==null?void 0:c.filters)==null?void 0:S.sector,Investment:(g=o==null?void 0:o.filters)==null?void 0:g.sector});We(()=>{s==="Projects"?t(Kx(v.Projects,m.Projects)):s==="Fundraising"?t(o2(v.Fundraising,m.Fundraising)):s==="Investment"&&t(d2(v.Investment,m.Investment))},[v,m,t]);const _=T=>{var A,R;if((A=v[s])!=null&&A.includes(T)){let P=(R=v[s])==null?void 0:R.filter(O=>O!==T);N(O=>({...O,[s]:P}))}else{let P=[...v[s],T];N(O=>({...O,[s]:P}))}},x=async T=>{var P,O,M,L,F,U,Z,ne;const{target:{value:A}}=T;f(K=>({...K,[s]:A}));let R=[];if((A==null?void 0:A.length)>=3){if(s==="Projects")try{const K=await b_({value:A});K!=null&&K.data&&((P=K==null?void 0:K.data)!=null&&P.projects)&&((M=(O=K==null?void 0:K.data)==null?void 0:O.projects)==null||M.map(te=>R.indexOf(te.sector)===-1&&R.push(te.sector)),u(te=>({...te,[s]:R})))}catch(K){r(K)}else if(s==="Fundraising")try{const K=await __({value:A});K!=null&&K.data&&((L=K==null?void 0:K.data)!=null&&L.fundraisings)&&((U=(F=K==null?void 0:K.data)==null?void 0:F.fundraisings)==null||U.map(te=>R.indexOf(te.sector)===-1&&R.push(te.sector)),u(te=>({...te,[s]:R})))}catch(K){r(K)}else if(s==="Investment")try{const K=await N_({value:A});if(K!=null&&K.data&&((Z=K==null?void 0:K.data)!=null&&Z.investings)){let te=(ne=K==null?void 0:K.data)==null?void 0:ne.investings;te==null||te.map(H=>R=[...R,...H.sector]),R=[...new Set(R)];let q=[];R.map(H=>
19H.toLowerCase().includes(A.toLowerCase())&&(q=[...q,H])),u(H=>({...H,[s]:q}))}}catch(K){r(K)}}else u({Projects:[],Investment:[],Fundraising:[]})},j=()=>{N({Projects:[],Fundraising:[],Investment:[]}),f({Projects:"",Fundraising:"",Investment:""}),u({Projects:[],Fundraising:[],Investment:[]})};return e.jsxs("div",{className:"",children:[e.jsx("p",{className:"filter__Title",children:"Sector"}),e.jsx("main",{className:"filterBox__main",children:p[s]?e.jsx(e.Fragment,{children:e.jsxs("section",{className:"filterBox__search",children:[e.jsxs("div",{className:"display-flex-aic-jcsb filter--sector",children:[e.jsx("div",{children:e.jsx(Ga,{className:"filterBox__icon--search"})}),e.jsx("div",{className:"border-bottom input--sector",children:e.jsx("input",{type:"search",placeholder:"Sector",onChange:x,value:m[s],className:"filter__Input"})}),e.jsx("div",{children:e.jsx("img",{src:Na,onClick:j,className:"cursor-pointer",alt:"search"})}),e.jsx("div",{children:e.jsx(xa,{onClick:()=>h(T=>({...T,[s]:!T[s]})),className:"filterBox__icon--downArrow"})})]}),e.jsx("ul",{className:"filterBox__list",children:(E=v[s])==null?void 0:E.map((T,A)=>e.jsxs("li",{onClick:()=>_(T),className:"display-flex-aic-jcsb",children:[T,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:T,checked:v[s].includes(T),onChange:()=>_(T)})]},A))}),e.jsx("ul",{className:"filterBox__list",children:(C=d[s])==null?void 0:C.map((T,A)=>{var R,P;return e.jsxs("li",{className:"display-flex-aic-jcsb",onClick:()=>_(T),style:{display:v[s].includes(T)&&"none"},children:[T,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:T,style:{display:!((R=v[s])!=null&&R.includes(T))&&"none"},checked:(P=v[s])==null?void 0:P.includes(T),onChange:()=>_(T)})]},A)})})]})}):e.jsx(e.Fragment,{children:e.jsxs("section",{onClick:()=>h(T=>({...T,[s]:!T[s]})),className:"display-flex-aic-jcsb filterBox__search filterBox__content",children:[e.jsx("p",{children:"Sector"}),e.jsx(Ja,{className:"filterBox__icon--sideArrow"})]})})})]})},Me=({errMsg:s,errClass:t})=>e.jsx("p",{className:t||"post_jpfi_field--error",children:s}),w_=()=>{var h,d;const{register:s,handleSubmit:t,formState:{errors:a}}=Qe(),i=ge(),{filters:{salary:n},jobs:r}=G(u=>u.jobs),[l,c]=b.useState(n),o=u=>{const m={min:Number(u.salaryMin),max:Number(u.salaryMax)};c([m])},p=()=>{c([])};return We(()=>{i(Yx(l))},[l]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsx("section",{className:"filterBox__search",children:e.jsxs("form",{autoComplete:"off",onSubmit:t(o),children:[e.jsx("div",{className:"mb-2 d-flex justify-content-between border-bottom",children:e.jsx("p",{children:"Salary"})}),e.jsxs("div",{className:"d-flex",children:[e.jsx("span",{className:"text__Filter",children:"Minimum"}),e.jsx("input",{name:"salaryMin",type:"number",inputMode:"numeric",onKeyDown:u=>{Zs(u),Ot(u)},onWheel:u=>u.currentTarget.blur(),...s("salaryMin",{required:{value:!0,message:"Salary Min  is required"},pattern:{value:Bt,message:"Invalid Salary Minimum Value"},maxLength:{value:18,message:"Max 18 digits allowed"}}),className:"mb-2 input__width"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("span",{className:"text__Filter",children:"Maximum"}),e.jsx("input",{name:"salaryMax",type:"number",inputMode:"numeric",className:"input__width",onKeyDown:u=>{Zs(u),Ot(u)},onWheel:u=>u.currentTarget.blur(),...s("salaryMax",{required:{value:!0,message:"Salary Max is required"},pattern:{value:Bt,message:"Invalid Salary Maximum Value"},maxLength:{value:18,message:"Max 18 digits allowed"}})})]}),(a==null?void 0:a.salaryMin)&&e.jsx(Me,{errMsg:(h=a==null?void 0:a.salaryMin)==null?void 0:h.message}),(a==null?void 0:a.salaryMax)&&e.jsx(Me,{errMsg:(d=a==null?void 0:a.salaryMax)==null?void 0:d.message}),e.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[e.jsx("button",{type:"submit",className:"m-2  display-flex-aljc-center apply--btn",children:"apply"}),e.jsx("button",{type:"reset",className:"m-2 display-flex-aljc-center apply--btn",style:{backgroundColor:"unset",border:"solid 1px rgba(167, 170, 171, 0.34)",color:"#e8ebec"},onClick:p,children:"reset"})]})]})})})})},S_=({module:s})=>{var _,x;const t=ge(),{filters:{searchedKeywords:a,skills:i}}=G(j=>j.projects),{errorToast:n,successToast:r,warningToast:l,errorHandle:c}=he(),[o,p]=b.useState((_=a==null?void 0:a.skills)==null?void 0:_.length),[h,d]=b.useState([]),[u,m]=b.useState(a==null?void 0:a.skills),f=j=>{if(!i.includes(j))t(ci([...i,j],u));else{let I=i.filter(w=>w!==j);t(ci(I,u))}},v=()=>{t(ci([],u)),m(""),d([])};b.useState([]);const N=async j=>{var y,k;const{target:{value:I}}=j;m(I);let w=[];if((I==null?void 0:I.length)>=2)try{const S=await v_({value:I});if(S!=null&&S.data&&((y=S==null?void 0:S.data)!=null&&y.projects)){let g=(k=S==null?void 0:S.data)==null?void 0:k.projects;g==null||g.map(C=>w=[...w,...C.skills]),w=[...new Set(w)];let E=[];w.map(C=>C.toLowerCase().includes(I.toLowerCase())&&(E=[...E,C])),d(C=>({...C,[s]:E}))}}catch(S){c(S)}else d([])};return e.jsxs("div",{className:"",children:[e.jsx("p",{className:"filter__Title",children:"Skill"}),e.jsx("main",{className:"filterBox__main",children:o?e.jsx(e.Fragment,{children:e.jsxs("section",{className:"filterBox__search",children:[e.jsxs("div",{className:"display-flex-aic-jcsb filter--skill",children:[e.jsx("div",{children:e.jsx(Ga,{className:"filterBox__icon--search"})}),e.jsx("div",{className:"border-bottom input--skill",children:e.jsx("input",{type:"search",placeholder:"Skill",onChange:N,value:u,className:"filter__Input"})}),e.jsx("div",{children:e.jsx("img",{src:Na,onClick:v,className:"cursor-pointer",alt:"search"})}),e.jsx("div",{children:e.jsx(xa,{onClick:()=>p(!o),className:"filterBox__icon--downArrow"})})]}),e.jsx("ul",{className:"filterBox__list",children:i==null?void 0:i.map((j,I)=>e.jsxs("li",{onClick:()=>f(j),className:"display-flex-aic-jcsb",children:[j,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:j,checked:i.includes(j),onChange:()=>f(j)})]},I))}),e.jsx("ul",{className:"filterBox__list",children:(x=h==null?void 0:h.Projects)==null?void 0:x.map((j,I)=>e.jsxs("li",{className:"display-flex-aic-jcsb",onClick:()=>f(j),style:{display:i.includes(j)&&"none"},children:[j,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:j,style:{display:!i.includes(j)&&"none"},checked:i.includes(j),onChange:()=>f(j)})]},I))})]})}):e.jsx(e.Fragment,{children:e.jsxs("section",{onClick:()=>
19p(!o),className:"display-flex-aic-jcsb filterBox__search filterBox__content",children:[e.jsx("p",{children:"Skill"}),e.jsx(Ja,{className:"filterBox__icon--sideArrow"})]})})})]})},k_=({module:s})=>{var _,x;const t=ge(),{filters:{searchedKeywords:a,skills:i}}=G(j=>j.jobs),{errorToast:n,successToast:r,warningToast:l,errorHandle:c}=he(),[o,p]=b.useState((_=a==null?void 0:a.skills)==null?void 0:_.length),[h,d]=b.useState([]),[u,m]=b.useState(a==null?void 0:a.skills),f=j=>{if(!i.includes(j))t(li([...i,j],u));else{let I=i.filter(w=>w!==j);t(li(I,u))}},v=()=>{t(li([],u)),m(""),d([])};b.useState([]);const N=async j=>{var y,k;const{target:{value:I}}=j;m(I);let w=[];if((I==null?void 0:I.length)>=2)try{const S=await p_({value:I});if(S!=null&&S.data&&((y=S==null?void 0:S.data)!=null&&y.jobs)){let g=(k=S==null?void 0:S.data)==null?void 0:k.jobs;g==null||g.map(C=>w=[...w,...C.skills]),w=[...new Set(w)];let E=[];w.map(C=>C.toLowerCase().includes(I.toLowerCase())&&(E=[...E,C])),d(C=>({...C,[s]:E}))}}catch(S){c(S)}else d([])};return e.jsxs("div",{className:"",children:[e.jsx("p",{className:"filter__Title",children:"Skill"}),e.jsx("main",{className:"filterBox__main",children:o?e.jsx(e.Fragment,{children:e.jsxs("section",{className:"filterBox__search",children:[e.jsxs("div",{className:"display-flex-aic-jcsb filter--skill",children:[e.jsx("div",{children:e.jsx(Ga,{className:"filterBox__icon--search"})}),e.jsx("div",{className:"border-bottom input--skill",children:e.jsx("input",{type:"search",placeholder:"Skill",onChange:N,value:u,className:"filter__Input"})}),e.jsx("div",{children:e.jsx("img",{src:Na,onClick:v,className:"cursor-pointer ",alt:"search"})}),e.jsx("div",{children:e.jsx(xa,{onClick:()=>p(!o),className:"filterBox__icon--downArrow"})})]}),e.jsx("ul",{className:"filterBox__list",children:i==null?void 0:i.map((j,I)=>e.jsxs("li",{onClick:()=>f(j),className:"display-flex-aic-jcsb",children:[j,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:j,checked:i.includes(j),onChange:()=>f(j)})]},I))}),e.jsx("ul",{className:"filterBox__list",children:((x=h==null?void 0:h.Jobs)==null?void 0:x.length)>0&&(h==null?void 0:h.Jobs.map((j,I)=>e.jsxs("li",{className:"display-flex-aic-jcsb",onClick:()=>f(j),style:{display:i.includes(j)&&"none"},children:[j,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:j,style:{display:!i.includes(j)&&"none"},checked:i.includes(j),onChange:()=>f(j)})]},I)))})]})}):e.jsx(e.Fragment,{children:e.jsxs("section",{onClick:()=>p(!o),className:"display-flex-aic-jcsb filterBox__search filterBox__content",children:[e.jsx("p",{children:"Skill"}),e.jsx(Ja,{className:"filterBox__icon--sideArrow"})]})})})]})},C_=({module:s})=>{const t=ge(),{filters:{companySize:a}}=G(l=>l.fundraising),[i,n]=b.useState(a||[]),r=l=>{const c=l.target.innerText?l.target.innerText:l.target.value;i!=null&&i.includes(c)?n(o=>o==null?void 0:o.filter(p=>p!==c)):n(o=>[...o,c])};return We(()=>{t(a2(i))},[i]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsxs("section",{className:"filterBox__search",children:[e.jsx("p",{children:"Company Size"}),e.jsx("ul",{className:"filterBox__list",children:fi==null?void 0:fi.map((l,c)=>e.jsxs("li",{onClick:r,className:"display-flex-aic-jcsb",children:[e.jsxs("div",{className:"d-flex align-items-center gap-1",children:[e.jsx(N0,{className:"companysize"}),l]}),e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:l,onChange:r,style:{display:!(a!=null&&a.includes(l))&&"none"},checked:a==null?void 0:a.includes(String(l))})]},c))})]})})})},T_=()=>{const s=ge(),{filters:{stage:t}}=G(r=>r.investing),[a,i]=b.useState(t),n=r=>{const l=r.target.innerText?r.target.innerText:r.target.value;a.includes(l)?i(c=>c==null?void 0:c.filter(o=>o!==l)):i(c=>[...c,l])};return We(()=>{s(c2(a))},[a]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsxs("section",{className:"filterBox__search",children:[e.jsx("p",{children:"Investing Stage"}),e.jsx("ul",{className:"filterBox__list",children:la==null?void 0:la.map((r,l)=>e.jsxs("li",{onClick:n,className:"display-flex-aic-jcsb",children:[r,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:r,style:{display:!t.includes(r)&&"none"},checked:t.includes(r),onChange:n})]},l))})]})})})},I_=()=>{const s=ge(),{filters:{stage:t}}=G(r=>r.fundraising),[a,i]=b.useState(t),n=r=>{const l=r.target.innerText?r.target.innerText:r.target.value;a.includes(l)?i(c=>c==null?void 0:c.filter(o=>o!==l)):i(c=>[...c,l])};return We(()=>
19{s(n2(a))},[a]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsxs("section",{className:"filterBox__search",children:[e.jsx("p",{children:"Fundraising Stage"}),e.jsx("ul",{className:"filterBox__list",children:la==null?void 0:la.map((r,l)=>e.jsxs("li",{onClick:n,className:"display-flex-aic-jcsb",children:[r,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:r,style:{display:!t.includes(r)&&"none"},checked:t.includes(r),onChange:n})]},l))})]})})})},A_=()=>{var h;const{register:s,handleSubmit:t,reset:a,formState:{errors:i}}=Qe(),n=ge(),{filters:{experience:r}}=G(d=>d.jobs),[l,c]=b.useState(r),o=d=>{l!==Number(d.experienceMin)&&c([Number(d.experienceMin)])},p=()=>{c([])};return We(()=>{n(Jx(l))},[l]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsx("section",{className:"filterBox__search",children:e.jsxs("form",{autoComplete:"off",onSubmit:t(o),children:[e.jsx("div",{className:"mb-2 d-flex justify-content-between border-bottom",children:e.jsx("p",{children:"Experience"})}),e.jsxs("div",{className:"d-flex",children:[e.jsx("span",{className:"text__Filter",children:"Minimum"}),e.jsx("input",{name:"experienceMin",type:"number",inputMode:"decimal",defaultValue:r[0]?r[0]:"",onWheel:d=>d.currentTarget.blur(),step:.1,onKeyDown:d=>{Zs(d),Xb(d)},...s("experienceMin",{required:{value:!0,message:"Experience Min is required"},pattern:{value:du,message:"Invalid Minimum Experience."},maxLength:{value:5,message:"Max 5 digits allowed"}}),className:"mb-2 input__width"})]}),(i==null?void 0:i.experienceMin)&&e.jsx(Me,{errMsg:(h=i==null?void 0:i.experienceMin)==null?void 0:h.message}),e.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[e.jsx("button",{type:"submit",className:"m-2  display-flex-aljc-center apply--btn",children:"apply"}),e.jsx("button",{type:"reset",className:"m-2 display-flex-aljc-center apply--btn",style:{backgroundColor:"unset",border:"solid 1px var(--color-grey-700)",color:"var(--text-color-primary)"},onClick:p,children:"reset"})]})]})})})})},E_=()=>{var p,h;const{register:s,handleSubmit:t,formState:{errors:a}}=Qe(),i=ge(),{filters:{investRange:n}}=G(d=>d.investing),[r,l]=b.useState(n),c=d=>{const u={min:Number(d.salaryMin),max:Number(d.salaryMax)};l([u])},o=()=>{l([])};return We(()=>{i(l2(r))},[r]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsx("section",{className:"filterBox__search",children:e.jsxs("form",{autoComplete:"off",onSubmit:t(c),children:[e.jsx("div",{className:"mb-2 d-flex justify-content-between border-bottom",children:e.jsx("p",{children:"Investment Range"})}),e.jsxs("div",{className:"d-flex",children:[e.jsx("span",{className:"text__Filter",children:"Minimum"}),e.jsx("input",{name:"salaryMin",type:"number",inputMode:"numeric",onKeyDown:d=>{Zs(d),Ot(d)},onWheel:d=>d.currentTarget.blur(),...s("salaryMin",{required:{value:!0,message:"Salary Min  is required"},pattern:{value:Bt,message:"Invalid Salary Minimum Value"},maxLength:{value:18,message:"Max 18 digits allowed"}}),className:"mb-2 input__width"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("span",{className:"text__Filter",children:"Maximum"}),e.jsx("input",{name:"salaryMax",type:"number",inputMode:"numeric",className:"input__width",onKeyDown:d=>{Zs(d),Ot(d)},onWheel:d=>d.currentTarget.blur(),...s("salaryMax",{required:{value:!0,message:"Salary Max is required"},pattern:{value:Bt,message:"Invalid Salary Maximum Value"},maxLength:{value:18,message:"Max 18 digits allowed"}})})]}),(a==null?void 0:a.salaryMin)&&e.jsx(Me,{errMsg:(p=a==null?void 0:a.salaryMin)==null?void 0:p.message}),(a==null?void 0:a.salaryMax)&&e.jsx(Me,{errMsg:(h=a==null?void 0:a.salaryMax)==null?void 0:h.message}),e.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[e.jsx("button",{type:"submit",className:"m-2  display-flex-aljc-center apply--btn",children:"apply"}),e.jsx("button",{type:"reset",className:"m-2 display-flex-aljc-center apply--btn",style:{backgroundColor:"unset",border:"solid 1px rgba(167, 170, 171, 0.34)",color:"#e8ebec"},onClick:o,children:"reset"})]})]})})})})},M_=()=>{var p,h;const{register:s,handleSubmit:t,formState:{errors:a}}=Qe(),i=ge(),{filters:{fundRange:n}}=G(d=>d.fundraising),[r,l]=b.useState(n),c=d=>{const u={min:Number(d.fundRangeMin),max:Number(d.fundRangeMax)};l([u])},o=()=>{l([])};return We(()=>{i(i2(r))},[r]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"filterBox__main",children:e.jsx("section",{className:"filterBox__search",children:e.jsxs("form",{autoComplete:"off",onSubmit:t(c),children:[e.jsx("div",{className:"mb-2 d-flex justify-content-between border-bottom",children:e.jsx("p",{children:"Fundraising Range"})}),e.jsxs("div",{className:"d-flex",children:[e.jsx("span",{className:"text__Filter",children:"Minimum"}),e.jsx("input",{name:"fundRangeMin",type:"number",inputMode:"numeric",onKeyDown:d=>{Zs(d),Ot(d)},onWheel:d=>d.currentTarget.blur(),...s("fundRangeMin",{required:{value:!0,message:"Fund Range Min is required"},pattern:{value:Bt,message:"Invalid Fund Range Minimum Value"},maxLength:{value:18,message:"Max 18 digits allowed"}}),className:"mb-2 input__width"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("span",{className:"text__Filter",children:"Maximum"}),e.jsx("input",{name:"fundRangeMax",type:"number",inputMode:"numeric",className:"input__width",onKeyDown:d=>{Zs(d),Ot(d)},onWheel:d=>d.currentTarget.blur(),...s("fundRangeMax",{required:{value:!0,message:"Fund Range Max is required"},pattern:{value:Bt,message:"Invalid Fund Range Maximum Value"},maxLength:{value:18,message:"Max 18 digits allowed"}})})]}),(a==null?void 0:a.fundRangeMin)&&e.jsx(Me,{errMsg:(p=a==null?void 0:a.fundRangeMin)==null?void 0:p.message}),(a==null?void 0:a.fundRangeMax)&&e.jsx(Me,{errMsg:(h=a==null?void 0:a.fundRangeMax)==null?void 0:h.message}),e.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[e.jsx("button",{type:"submit",className:"m-2  display-flex-aljc-center apply--btn",children:"apply"}),e.jsx("button",{type:"reset",className:"m-2 display-flex-aljc-center apply--btn",style:{backgroundColor:"unset",border:"solid 1px rgba(167, 170, 171, 0.34)",color:"#e8ebec"},onClick:o,children:"reset"})]})]})})})})},Xu=()=>{const s=ge(),{proSearch:{accountTypeFilter:t}}=G(r=>r.search),[a,i]=b.useState(t),n=r=>{(a==null?void 0:a.length)>0?a!=null&&a.includes(r)?i(l=>l==null?void 0:l.filter(c=>c!==r)):i(l=>[...l,r]):i([r])};return We(()=>
19{s(j2(a))},[a]),e.jsx("main",{className:"filterBox__main",children:e.jsxs("section",{className:"filterBox__search",style:{border:"none"},children:[e.jsx("p",{children:"AccountType Filter"}),e.jsx("ul",{className:"filterBox__list",children:pi==null?void 0:pi.map((r,l)=>e.jsxs("li",{onClick:()=>n(r.value),className:"display-flex-aic-jcsb",children:[r.label,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:r.value,style:{display:!(t!=null&&t.includes(r.value))&&"none"},checked:t==null?void 0:t.includes(r.value)})]},l))})]})})},ep=()=>{const s=ge(),{proSearch:{aboutFilter:t}}=G(r=>r.search),[a,i]=b.useState(t),n=r=>{(a==null?void 0:a.length)>0?a!=null&&a.includes(r)?i(l=>l==null?void 0:l.filter(c=>c!==r)):i(l=>[...l,r]):i([r])};return We(()=>{s(y2(a))},[a]),e.jsx("main",{className:"filterBox__main",children:e.jsxs("section",{className:"filterBox__search",style:{border:"none"},children:[e.jsx("p",{children:"About Filter"}),e.jsx("ul",{className:"filterBox__list",children:ui==null?void 0:ui.map((r,l)=>e.jsxs("li",{onClick:()=>n(r.value),className:"display-flex-aic-jcsb",children:[r.label,e.jsx("input",{className:"filter__Checkbox",type:"checkbox",value:r.value,style:{display:!(t!=null&&t.includes(r.value))&&"none"},checked:t==null?void 0:t.includes(r.value)})]},l))})]})})},Oa=({txt:s,toggleDrawer:t,filt:a})=>{const{userDetails:i}=G(c=>c.auth),n=ge(),r=()=>{n(Dh())},l=()=>{s==="Jobs"&&n(Gx()),s==="Projects"&&n(Zx()),s==="Fundraising"&&n(t2()),s==="Investment"&&n(r2())};return e.jsx(e.Fragment,{children:e.jsxs("main",{className:"filter__main",children:[e.jsx("div",{className:"filter__container",children:e.jsxs("div",{className:"filter__profile",children:[e.jsx(ss,{className:"filter__profile--avatar",src:i==null?void 0:i.avatar}),e.jsx("p",{children:de(i==null?void 0:i.username)})]})}),e.jsx("section",{className:"display-flex-aljc-center fdc",children:e.jsx("section",{className:"display-flex-aic-jcsb filter__button",children:e.jsxs("div",{className:"filter__Icon",children:[e.jsx("span",{className:"filter__Pointer",children:e.jsx("img",{src:ct,alt:"filterIcon"})}),e.jsx("span",{children:"Filter"})]})})}),s==="Projects"&&e.jsxs(e.Fragment,{children:[e.jsx(y_,{}),e.jsx(vi,{module:s}),e.jsx(S_,{module:s})]}),s==="Jobs"&&e.jsxs(e.Fragment,{children:[e.jsx(g_,{}),e.jsx(k_,{module:s}),e.jsx(A_,{}),e.jsx(w_,{}),e.jsx(x_,{})]}),s==="Fundraising"&&e.jsxs(e.Fragment,{children:[e.jsx(vi,{module:s}),e.jsx(I_,{}),e.jsx(M_,{}),e.jsx(C_,{module:s})]}),s==="Investment"&&e.jsxs(e.Fragment,{children:[e.jsx(vi,{module:s}),e.jsx(T_,{}),e.jsx(E_,{})]}),s==="search"&&e.jsxs(e.Fragment,{children:[e.jsx(Xu,{}),e.jsx(ep,{}),e.jsx("hr",{className:"navbar__hr"}),e.jsx("div",{style:{padding:"0px 10px"},children:e.jsx(bs,{onClickFn:r,name:"View Results",cssStyle:"jpfiCard__six-applications-clear-btn"})})]}),(a==null?void 0:a.length)>0&&e.jsxs(e.Fragment,{children:[e.jsx("hr",{className:"navbar__hr"}),e.jsx("div",{style:{padding:"0px 10px"},children:e.jsx(bs,{onClickFn:l,name:"Clear All",cssStyle:"jpfiCard__six-applications-clear-btn"})})]})]})})},P_=()=>{var j;const s=ge(),t=Cs(),{gotoAllJobs:a,gotoAllProjects:i,gotoAllFundraisings:n,gotoAllInvestings:r}=Be(),l=G(I=>I.jobs),c=G(I=>I.projects),o=G(I=>I.fundraising),p=G(I=>I.investing),[h,d]=b.useState({jobsFilter:[],projectsFilter:[],fundraisingFilter:[],investingFilter:[]}),u=t.pathname.split("/")[1],m=b.useMemo(()=>["fundraisings","investings"].includes(u)?u.slice(0,-1):u,[u]);We(()=>{var S,g,E,C,T,A,R,P,O,M,L,F,U,Z,ne,K,te,q,H,X,ee;const I=[...((S=l==null?void 0:l.filters)==null?void 0:S.noticePeriod)||[],...((g=l==null?void 0:l.filters)==null?void 0:g.experience)||[],...((E=l==null?void 0:l.filters)==null?void 0:E.rating)||[],...((C=l==null?void 0:l.filters)==null?void 0:C.salary)||[],...((T=l==null?void 0:l.filters)==null?void 0:T.designation)||[],...((A=l==null?void 0:l.filters)==null?void 0:A.location)||[],...((R=l==null?void 0:l.filters)==null?void 0:R.skills)||[],...((P=l==null?void 0:l.filters)==null?void 0:P.ppostedBy)||[]],w=[...((O=o==null?void 0:o.filters)==null?void 0:O.companySize)||[],...((M=o==null?void 0:o.filters)==null?void 0:M.stage)||[],...((L=o==null?void 0:o.filters)==null?void 0:L.sortByLatest)||[],...((F=o==null?void 0:o.filters)==null?void 0:F.sector)||[],...((U=o==null?void 0:o.filters)==null?void 0:U.reviews)||[],...((Z=o==null?void 0:o.filters)==null?void 0:Z.rating)||[]],y=[...((ne=c==null?void 0:c.filters)==null?void 0:ne.sector)||[],...((K=c==null?void 0:c.filters)==null?void 0:K.skills)||[],...((te=c==null?void 0:c.filters)==null?void 0:te.ppostedBy)||[],...((q=c==null?void 0:c.filters)==null?void 0:q.engagementType)||[]],k=[...((H=p==null?void 0:p.filters)==null?void 0:H.rating)||[],...((X=p==null?void 0:p.filters)==null?void 0:X.stage)||[],...((ee=p==null?void 0:p.filters)==null?void 0:ee.sector)||[]];d({jobsFilter:I,projectsFilter:y,fundraisingFilter:w,investingFilter:k})},[l.filters,c.filters,o.filters,p.filters]);const[f,v]=b.useState({top:!1,left:!1,bottom:!1,right:!1}),N=b.useCallback((I,w)=>y=>
19{y&&y.type==="keydown"&&(y.key==="Tab"||y.key==="Shift")||v(k=>({...k,[I]:w}))},[]),_=b.useCallback(()=>{switch(t.pathname){case"/jobs":s(ht($h));break;case"/projects":s(ut(Yh));break;case"/investing":s(pt(tu));break;case"/fundraising":s(Jt(Xh));break}},[t.pathname,s]);We(()=>{["/jobs","/projects","/fundraising","/investing"].includes(t.pathname)&&_()},[t.pathname,_]);const x=b.useCallback(I=>{switch(I.target.value){case"jobs":a();break;case"projects":i();break;case"fundraisings":n();break;case"investings":r();break}},[a,i,n,r]);return e.jsxs("main",{className:"display-flex-aljc-center navigation__component-parent",children:[e.jsxs("div",{className:"navigation__component__one",children:[e.jsx("img",{src:ct,alt:"filter",className:"navigation__component__icon",style:{background:((j=h[`${m}Filter`])==null?void 0:j.length)>0&&"var(--primary-color)"},onClick:N("left",!0)}),e.jsxs(En,{className:"drawer",anchor:"left",open:f.left,onClose:N("left",!1),onOpen:N("left",!0),children:[t.pathname==="/jobs"&&e.jsx(Oa,{txt:"Jobs",toggleDrawer:N,filt:h.jobsFilter}),t.pathname==="/projects"&&e.jsx(Oa,{txt:"Projects",toggleDrawer:N,filt:h.projectsFilter}),t.pathname==="/fundraising"&&e.jsx(Oa,{txt:"Fundraising",toggleDrawer:N,filt:h.fundraisingFilter}),t.pathname==="/investing"&&e.jsx(Oa,{txt:"Investment",toggleDrawer:N,filt:h.investingFilter})]})]}),e.jsx("div",{className:"navigation__component__two",children:e.jsxs("ul",{className:"display-flex-aic-jcsb navigation-menu",children:[e.jsx("li",{onClick:a,children:e.jsx(us,{to:"/jobs",className:({isActive:I})=>I?"active-link":"link",children:"Jobs"})}),e.jsx("li",{onClick:i,children:e.jsx(us,{to:"/projects",className:({isActive:I})=>I?"active-link":"link",children:"Projects"})}),e.jsx("li",{onClick:n,children:e.jsx(us,{to:"/fundraising",className:({isActive:I})=>I?"active-link":"link",children:"Fundraising"})}),e.jsx("li",{onClick:r,children:e.jsx(us,{to:"/investing",className:({isActive:I})=>I?"active-link":"link",children:"Investing"})})]})}),e.jsx("div",{className:"mobileDrop",children:e.jsxs("select",{onChange:x,className:"mobileSelect",children:[e.jsx("option",{value:"jobs",children:"Jobs"}),e.jsx("option",{value:"projects",children:"Projects"}),e.jsx("option",{value:"fundraisings",children:"Fundraising"}),e.jsx("option",{value:"investings",children:"Investing"})]})}),e.jsxs("div",{className:"navigation__component__five",children:[t.pathname==="/jobs"&&e.jsx(is,{to:"/post-job",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{style:{color:"var(--text-color-primary)"},children:"Are you hiring?"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})}),t.pathname==="/projects"&&e.jsx(is,{to:"/post-project",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{children:"Post Project"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})}),t.pathname==="/fundraising"&&e.jsx(is,{to:"/post-fundraising",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{children:"Post Fundraising"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})}),t.pathname==="/investing"&&e.jsx(is,{to:"/post-investing",className:"link",children:e.jsxs("div",{className:"company__article2--start",children:[e.jsx("p",{children:"Post Investing"}),e.jsx("img",{src:It,alt:"add",className:"navigation__post-job"})]})})]})]})},R_=()=>e.jsx(e.Fragment,{children:e.jsxs("main",{children:[e.jsx("section",{children:e.jsx(P_,{})}),e.jsx("section",{children:e.jsx($s,{})})]})}),sp=async()=>z.get(Ef).then(s=>s.data).catch(s=>{throw s}),nA=async s=>z.post(Mf,{enabled:s}).then(t=>t.data).catch(t=>{throw t}),L_=async s=>z.post(Pf,{key:s}).then(t=>t.data).catch(t=>{throw t}),F_="/assets/tools-D15EZyFd.gif",wn=()=>{const[s,t]=b.useState(""),[a,i]=b.useState(""),[n,r]=b.useState(!1),[l,c]=b.useState(null),[o,p]=b.useState(null),h=!!localStorage.getItem("x-maintenance-key"),d=window.location.pathname==="/maintenance/superadmin-access";if(b.useEffect(()=>{(async()=>{try{const v=await sp();if(v!=null&&v.success&&!v.isMaintenanceMode){window.location.href="/";return}if(p(!1),v!=null&&v.success&&v.maintenanceStartedAt){const _=v.maintenanceStartedAt+72*60*60*1e3,x=()=>{const I=Date.now(),w=_-I;if(w<=0){c("00:00:00:00");return}const y=Math.floor(w/(1e3*60*60*24)),k=Math.floor(w%(1e3*60*60*24)/(1e3*60*60)),S=Math.floor(w%(1e3*60*60)/(1e3*60)),g=Math.floor(w%(1e3*60)/1e3),E=C=>String(C).padStart(2,"0");c(`${E(y)}:${E(k)}:${E(S)}:${E(g)}`)};x();const j=setInterval(x,1e3);return()=>clearInterval(j)}else c("03:00:00:00")}catch(v){console.error("Failed to fetch maintenance status:",v)}})()},[]),o===null)return null;const u=async f=>{var N,_;f.preventDefault();const v=s.trim();if(!v){i("Please enter a key.");return}r(!0),i("");try{const x=await L_(v);x!=null&&x.success?(localStorage.setItem("x-maintenance-key",v),window.location.href="/"):i("Invalid bypass key. Please try again.")}catch(x){const j=(_=(N=x==null?void 0:x.response)==null?void 0:N.data)==null?void 0:_.message;i(j||"Invalid bypass key. Please try again.")}finally{r(!1)}},m=()=>{localStorage.removeItem("x-maintenance-key"),window.location.reload()};return e.jsxs("div",{style:vs.page,children:[e.jsxs(ld,{children:[e.jsx("title",{children:"Site Under Maintenance | TICKBIG"}),e.jsx("meta",{name:"robots",content:"noindex"})]}),e.jsxs("div",{style:vs.card,children:[e.jsx("div",{style:vs.iconWrap,children:e.jsx("img",{src:F_,alt:"tools",style:{width:"150px"}})}),e.jsx("h1",{style:vs.heading,children:"We'll be back soon!"}),e.jsx("p",{style:vs.subtext,children:"We're performing scheduled maintenance to improve your experience. We should be back online shortly — thank you for your patience."}),e.jsx("div",{style:vs.badge,children:"System Upgrade in Progress"}),l&&e.jsxs("div",{style:vs.countdownWrap,children:[e.jsx("div",{style:vs.countdownLabel,children:"Estimated Time Remaining"}),e.jsx("div",{style:vs.timer,children:l.split(":").map((f,v)=>e.jsxs(_e.Fragment,{children:[e.jsxs("div",{style:vs.timeBlock,children:[e.jsx("span",{style:vs.timeValue,children:f}),e.jsx("span",{style:vs.timeUnit,children:v===0?"Days":v===1?"Hrs":v===2?"Min":"Sec"})]}),v<3&&e.jsx("span",{style:vs.timeSeparator,children:":"})]},v))})]}),e.jsx("div",{style:vs.divider}),d&&(h?e.jsxs("div",{style:vs.bypassedBanner,children:[e.jsx("span",{children:"✅ Bypass key is active — you can access the site."}),e.jsx("button",{onClick:m,style:vs.clearBtn,children:"Clear Key"})]}):e.jsxs("form",{onSubmit:u,style:vs.bypassForm,children:[e.jsx("p",{style:vs.bypassLabel,children:"Superadmin Access"}),e.jsxs("div",{style:vs.bypassRow,children:[e.jsx("input",{id:"maintenance-bypass-input",type:"password",placeholder:"Enter bypass key",value:s,onChange:f=>{t(f.target.value),i("")},style:vs.bypassInput,disabled:n}),e.jsx("button",{id:"maintenance-bypass-submit",type:"submit",style:vs.bypassBtn(n),disabled:n,children:n?"...":"Unlock"})]}),a&&e.jsxs("p",{style:vs.errorText,children:["⚠ ",a]})]}))]}),e.jsx("style",{children:`
20        @keyframes fadeIn {
21          from { opacity: 0; transform: translateY(14px); }
22          to   { opacity: 1; transform: translateY(0); }
23        }
24        @keyframes pulse {
25          0%   { box-shadow: 0 0 0 0 rgba(1, 191, 113, 0.35); }
26          70%  { box-shadow: 0 0 0 16px rgba(1, 191, 113, 0); }
27          100% { box-shadow: 0 0 0 0 rgba(1, 191, 113, 0); }
28        }
29        #maintenance-bypass-input:focus {
30          border-color: #01bf71 !important;
31          outline: none;
32        }
33        #maintenance-bypass-submit:hover:not(:disabled) {
34          background: #007C49 !important;
35        }
36      `})]})},vs={page:{minHeight:"100vh",background:"#121212",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Inter', system-ui, sans-serif",padding:"20px"},card:{textAlign:"center",maxWidth:"480px",width:"100%",animation:"fadeIn 0.7s ease-out",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px"},iconWrap:{display:"inline-flex",marginBottom:"10px"},heading:{margin:0,fontSize:"2.25rem",fontWeight:800,letterSpacing:"-0.03em",background:"linear-gradient(135deg, #fff 0%, #94a3b8 100%)",WebkitBackgroun
36dClip:"text",WebkitTextFillColor:"transparent"},countdownWrap:{display:"flex",flexDirection:"column",gap:"12px",margin:"10px 0"},countdownLabel:{fontSize:"0.75rem",fontWeight:600,color:"#a3a3a3",textTransform:"uppercase",letterSpacing:"0.1em"},timer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},timeBlock:{display:"flex",flexDirection:"column",alignItems:"center",minWidth:"60px",padding:"8px",background:"#242424",borderRadius:"10px"},timeValue:{fontSize:"1.5rem",fontWeight:700,color:"#01bf71",fontFamily:"monospace"},timeUnit:{fontSize:"0.65rem",fontWeight:600,color:"#a3a3a3",textTransform:"uppercase"},timeSeparator:{fontSize:"1.5rem",fontWeight:700,color:"#242424",paddingBottom:"20px"},subtext:{margin:0,fontSize:"1rem",lineHeight:1.7,color:"#a3a3a3",maxWidth:"420px"},badge:{display:"inline-block",padding:"6px 18px",background:"#242424",borderRadius:"9999px",fontSize:"0.75rem",fontWeight:700,color:"#01bf71",letterSpacing:"0.08em",textTransform:"uppercase"},divider:{width:"100%",height:"1px",background:"#1e293b"},bypassForm:{width:"100%",display:"flex",flexDirection:"column",gap:"10px"},bypassLabel:{margin:0,fontSize:"0.8rem",fontWeight:600,color:"#475569",textAlign:"left",textTransform:"uppercase",letterSpacing:"0.06em"},bypassRow:{display:"flex",gap:"8px"},bypassInput:{flex:1,background:"#111827",border:"1px solid #334155",borderRadius:"8px",padding:"11px 14px",color:"#e2e8f0",fontSize:"0.9rem",transition:"border-color 0.2s"},bypassBtn:s=>({background:"#007C49",border:"none",borderRadius:"8px",color:"#fff",padding:"11px 20px",fontSize:"0.875rem",fontWeight:600,cursor:s?"not-allowed":"pointer",whiteSpace:"nowrap",transition:"background 0.2s",opacity:s?.6:1}),errorText:{margin:0,fontSize:"0.8rem",color:"#f87171",textAlign:"left"},bypassedBanner:{display:"flex",alignItems:"center",gap:"12px",background:"rgba(34,197,94,0.08)",border:"1px solid rgba(34,197,94,0.3)",borderRadius:"10px",padding:"12px 16px",fontSize:"0.85rem",color:"#4ade80",width:"100%",justifyContent:"center"},clearBtn:{background:"transparent",border:"1px solid rgba(34,197,94,0.3)",color:"#4ade80",borderRadius:"6px",padding:"4px 12px",fontSize:"0.75rem",cursor:"pointer"}},B_=()=>e.jsx(e.Fragment,{children:e.jsxs("main",{children:[e.jsx("section",{className:"display-flex-aic-jcsb appliedSaved__header",children:e.jsxs("div",{className:"applieadSaved__one cp",children:[e.jsx(_a,{}),e.jsx("p",{children:"Saved Fundraising"})]})}),e.jsx("section",{children:e.jsx($s,{})})]})});function O_(){return e.jsxs("div",{className:"mt-5 text-center",children:[e.jsx("div",{className:"footerTitleBg",children:e.jsx("p",{children:"Tickbig Privacy Policy"})}),e.jsxs("div",{className:"footerContent",children:[e.jsx("br",{}),e.jsxs("p",{className:"footerFrom",children:["Effective Date: ",e.jsx("span",{className:"footerDate",children:"Jan 29, 2022"})]})," ",e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"‘TickBig’ is an app application hereinafter referred to as “The App” created to give complete professional support to the budding professionals, entrepreneurs, students, freelancers, colleges, training institutes, companies, registered and unregistered brands of various sectors across the world that would want to hire, employ, building professional networks, promote brands/products and showcase their talent/ ideas to this world to get them recognized by different companies and employers across the world. Our app acts as an intermediary assistant service provider which enables the hunt for jobs, internships, and other startup businesses to find the right place easily. Our app is an open platform for companies, educational Educational institutionsInstitutions – Colleges & Training Institutes , professionalsProfessionals, students, freelancers, startup developers, registered & unregisterednew brands and business persons to choose and find their needs easily."}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","The App helps one to find the right talent to employee them as Interns, Part-timers, Contractors, Full-time resources, Freelancers, etc. Similarly, the App helps the professionals of any type to engage with other Individuals or Brands as Interns, Part-timers, Contractors, Full-time resources, Freelancers, etc. The App also helps different parties to find the right vendor to execute their project requirements and vice versa. The App allows the users to pitch their business ideas with the investors and also helps the investors to find various business ideas to invest. The App helps the colleges or institutes to place their students with the companies across globe and similarly helps companies to hire students of any region directly or through colleges itself."]}),e.jsx("br",{}),e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"All that you have to do is to subscribe with us and provide us with your complete details i.e., your qual
36ification information, personal details, and contact information, etc., and we will get you a profile created."}),e.jsx("br",{}),e.jsx("li",{className:"footerTextWhite",children:"You can assess your profile and make changes as and when you want. We will update you with the latest trends, openings and vacancies available across the world as per your information."}),e.jsx("br",{}),e.jsx("li",{className:"footerTextWhite",children:"You can also get in touch with or get connected with different companies personally and provide your present qualification /occupational details."}),e.jsx("br",{}),e.jsx("li",{className:"footerTextWhite",children:"You must make sure that the details that you provide are truly genuine and are not fraudulent or fabricated."}),e.jsx("br",{}),e.jsx("li",{className:"footerTextWhite",children:"We are committed to provide you with interesting features such as create/apply to Jobs, Projects, Fund raising, Investing, Creating Fortune Card, Profiles, Reviews, Messaging, Etc., in a Web Application that can help you to a access our app with complete ease."})]}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"By accepting our privacy policy and our terms and conditions as stated below you give us complete authority to act according to our company’s privacy policy and you give us the right to use and transfer your information at your personal risk. We are not responsible for any misuse of the details that you provide us."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"The User’s privacy is important to TickBig (“TICKBIG”) and TickBig is committed to protecting the privacy of the SUBSCRIBER’S/ User’s information."}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:["This Privacy Policy describes how TickBig collects, uses, stores, shares, disclose
36s and protects the SUBSCRIBER’S/ User’s information in connection with the TickBig website located at",e.jsx(is,{to:{pathname:"/"},className:"text-decoration-none footerNav",children:"www.tickbig.com"}),"(the “Site”), and the services and tools (including, but not limited to, mobile applications and other software applications) related to the Site (collectively, the “Service”). This Privacy Policy applies when the User/ SUBSCRIBER accesses, visits or uses the Service. This Privacy Policy is part of, and is governed by, the terms and conditions set forth in the TickBig Terms of Service located at",e.jsx(is,{to:{pathname:"/"},className:"text-decoration-none footerNav",children:"http://www.Tickbig.com"}),"terms. By creating a TickBig account and clicking and accepting the registration page, or by otherwise accessing, visiting or using the Service, the User expressly consents to TICKBIG’s collection, use, disclosure and retention of the User’s information as described in this Privacy Policy and in the TickBig Terms of Service. If the User/ SUBSCRIBER purchases or accesses the Service through a third-party service that provides a gateway to the Service, such as Google Account, iTunes or Google Play, Etc., (a “Gateway Service”), the User will have a separate, additional account relationship with that Gateway Service and the information the User provides to that Gateway Service will be handled in accordance with the privacy practices of the applicable Gateway Service. Gateway Services are not partners or representatives of TickBig and TickBig is not responsible for the acts or omissions of a Gateway Service with regard to the collection or use of the User’s information. TickBig will notify the User of changes to this Privacy Policy by posting the amended terms on the Service at least thirty (30) days before the effective date of the changes. If the User does not agree with the new terms, the User must terminate the User’s account within the applicable thirty (30) day period by contacting TickBig using the information in clause 17 below, and the User will not be bound by the amended terms. Otherwise, the new terms will take effect after thirty (30) days."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"1.Information Collected from the User by TickBig:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig may collect information that the User provides to TickBig in connection with the User’s use of the Service or when the User registers as a user of the Service, sends e-mail messages, forms, or other information to TickBig through the Service, or enter a drawing or giveaway offered through the Service. This can include the User’s name, birthday, contact details (including but not limited address, email address, phone number or mobile telephone number), username, password, Government Proof, College ID, etc.,and information about how the User uses the Service. This is not an exhaustive list. For example, TickBig may need to collect additional information from time to time, as part of TickBig user authentication process. Other examples of information that TickBig may collect, and the circumstances in which TickBig collects that information, are set out in the following Clauses of this Privacy Policy. If the User registers for a TickBig account directly through the Service, the User will be required to provide, among other information, the User’s email address and create a username and password. The User can use the Service without registering, however, if the User does so, the User may not be able to use certain features of the Service, such as entering drawings or giveaways that are offered through the Service. If the User enters a drawing or giveaway offered through the Service the User will be required to provide the User’s postal address, including the street address, city, state, post code, etc. The User may also choose to provide additional information in connection with the User’s TickBig account, including a profile picture, the User’s birthday, the User’s hobbies, the User’s job, the User’s education and some of the User’s favorite things, such as the User’s favorite movies, food, and TV shows, etc. Providing this additional information is optional and the User is not required to provide this information in order to use the Service."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"2.Information the User shares on the Service: "}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","Some portions of the Services allow the User to submit c
36omments, reviews, ratings and other content. This content may be displayed on the Service and may be viewable by other users of the Service. In addition, if the User has created a user profile and uploaded a photograph of himself/herself in connection with the User’s TickBig account, other users of the Service will be able to see the User’s profile information and the User’s photograph when the User submits content to the Service while logged in to the User’s TickBig account."]}),e.jsx("br",{}),e.jsxs("h4",{className:"footerTextWhite-header",children:["3.Information Automatically Collected Through the Service:"," "]}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig may automatically collect information about the User when the User uses the Service. If the User accesses the Service through a mobile device, TickBig will automatically collect information about the User’s geo-location, including the User’s geo-location relative to and within third party merchant locations. In addition, TickBig may collect information such as the User’s mobile device ID, device type, contact details, sms details, and the User’s use of features, functions, or notifications on the device, as well as signal strength relating to WiFi or Bluetooth functionality, temperature, battery level, and similar technical data. TickBig may collect this information even if the User is not logged in to the Service. If the User accesses the Service through a computer, TickBig will automatically collect information such as the User’s browser type and version, computer and connection information, statistics on page views, traffic to and from the Service, IP address and standard web log information. If the User uses the Service through a mobile device and the User does not want TickBig to collect the User’s geo-location information the User may change the User’s preferences through the “Settings” feature of the TickBig mobile application, however, if the User set the User’s preferences so that TickBig cannot collect the User’s geo-location information, some of the features of the Service,, for Example applying to jobs near them such as the feature, may not be available to the User. In addition, the User may be able to adjust the settings on the User’s mobile device to prevent collection of the User’s geolocation information."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"4.Cookies:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig may automatically collect information from the User when The User uses the Service using “cookies”. Cookies are small amounts of data that are stored within the User’s computer’s Internet browser and that are accessed and recorded by the websites that the User visits so that they can recognize the same browser navigating online at a later time. Information that may be collected by cookies when the User uses the Service may include, without limitation:",e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"the pages the User visits within the Service;"}),e.jsx("li",{className:"footerTextWhite",children:"the date and time of the User’s visit to the Service;"}),e.jsx("li",{className:"footerTextWhite",children:"the amount of time the User spends using the Service;"}),e.jsx("li",{className:"footerTextWhite",children:"the Internet Protocol (IP) address used to connect the User’s computer to the Internet; and/or"}),e.jsx("li",{className:"footerTextWhite",children:"the User’s computer and connection information such as the User’s browser type and version, operating system and platform."})]}),"The User can set the User’s browser to reject cookies or to notify the User when the User is sent a cookie. However, if the User disables cookies the User may not be able to use all features of the Service, including the features that are only made available to registered members of the Service."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"5.Information the User Provides about other Users:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","The “Refer a Friend” feature on the Site allows the User to send email notifications, sms, etc., to the User’s friends inviting them to visit the Sites and use the Service. In order to use the “Refer a Friend” feature the User will need to provide the User’s friend’s name, contact number and email address. TickBig rely on the User to inform the User’s friend that the User is providing their information to TickBig and to advise them about this Privacy Policy. If the User provides the User’s friend’s name and email address, TickBig will automatically send the User’s friend a one-time email / sms asking them to visit the Site. The User’s friend’s name, mobile number and email address will be used for the sole purpose of sending the invitation is one-time email/sms. After this email/sms is sent, the User’s friend’s name and email address will not be used for any other purpose and will be deleted from TickBig’s database within a reasonable time period, unless the User’s friend elects to register to use the Service and independently provides this information to us."]}),e.jsx("br",{}),e.jsxs("h4",{className:"footerTextWhite-header",children:["6.Information Provided to TickBig by Social Networking Services:"," "]}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","By logging in to the Service through a third-party social networking service, such as Google, Whatsapp, Instagram, Facebook or Twitter, the User gives TickBig permission to access, store and use any information that the User permits the applicable third-party social networking service to share with TickBig in accordance with the privacy settings that are applicable to the User’s account with that social networking service. TickBig encourages the User to review, and if necessary, adjust, the User’s privacy settings on the applicable social networking service before logging in to the Service through a social networking service. Information that TickBig receives from third party social networking service is stored and used by TickBig in accordance with this Privacy Policy."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"7.Collection of Information by Third Parties: "}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","If the User visits the Service from a third-party website the third-party website may give the User a unique code, cookie or graphic which will uniquely identify The User. This will only happen if the User links directly from a third-party website to the Service. The User’s activities on the Service while this type of code is active may be reported back to the third-party website. The presence of a third-party navigation bar at the top of a webpage is an indication that the third-party website may be able to see the User’s Activity on the Service. TickBig may al
36so provide social media features through the Service that enables the User to share information with the User’s social networks and to interact with the Service on various social media sites. The User’s use of these features may result in the collection or sharing of information about you by these sites, depending on the feature. TickBig encourages the User to review the privacy policies and settings on the social media sites with which the User interacts to make sure that the User understand the information that may be collected, used, disclosed and shared by those sites. The Service may include third-party advertising, links to other websites, and other content from third-party businesses. These third-party websites, businesses, and advertisers, or advertising companies working on their behalf, may use web beacons and cookies to measure the effectiveness of their ads, personalize or optimize advertising content and to track users who click on the links made available through the Service. These third-parties may use cookies and web beacons to track the actions of users online over time and across different web sites or platforms to deliver targeted electronic advertisements to an individual user. TickBig does not have access to or control over web beacons or cookies that these third parties may use. TickBig is not responsible for the privacy practices of these third parties and TickBig encourages the User to read their privacy policies. In addition, if the User accesses the Service through the Internet, the User’s browser may allow the User to adjust the User’s browser settings so that “do not track” requests are sent to the websites that the User visit. However, TickBig will not disable tracking technology that may be active on the Service in response to any “do not track” requests that TickBig receives from the User’s browser"]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"8.Holding the User’s information: "}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig may store the User’s information in hard copy or electronic format, in storage facilities that TickBig owns and operates, or that are owned and operated by TickBig’s service providers. TickBig takes the privacy and security of the User’s information seriously and TickBig is committed to maintaining the security of the User’s information which is under TickBig’s control."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"9.Use of Information by TickBig: "}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig may use information that is collected about the User through the Service to:",e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"verify the User’s identity;"}),e.jsx("li",{className:"footerTextWhite",children:"provide and administer access to the Service, and to provide the User with requested services and customer support and to process and respond to the User’s inquiries;"}),e.jsx("li",{className:"footerTextWhite",children:"personalize, customize, measure, and improve TickBig’s services, content, and advertising and otherwise to enhance the User’s experience of the Service;"}),e.jsx("li",{className:"footerTextWhite",children:"prevent, detect, and investigate potentially prohibited or illegal activities, and enforce the TickBig Terms of Service;"}),e.jsx("li",{className:"footerTextWhite",children:"analyze the accuracy, effectiveness, usability, or popularity of the Service;"}),e.jsx("li",{className:"footerTextWhite",children:"generate and review reports and data about TickBig’s user base and service usage patterns;"}),e.jsx("li",{className:"footerTextWhite",children:"compile aggregate data for internal and external business purposes;"}),e.jsx("li",{className:"footerTextWhite",children:"resolve disputes and troubleshoot problems;"}),e.jsx("li",{className:"footerTextWhite",children:"subject to clause 10, contact the User with information, including promotional, marketing and advertising information and recommendations that TickBig believes may be of interest to the User;"}),e.jsx("li",{className:"footerTextWhite",children:"provide the User with other services requested by the User as described when TickBig collects the information;"}),e.jsx("li",{className:"footerTextWhite",children:"subject to Clause 10, provide the User with information TickBig may deem relevant when the User visit third party merchant locations;"}),e.jsx("li",{className:"footerTextWhite",children:"if the User uses the Service on a mobile device, with the User’s consent, TickBig may send push notifications to the User’s mobile device to provide updates about the Service and other relevant messages. The User can manage push notifications from the “Settings” page within the User’s account. The User may also be able to manage them from the User’s mobile device’s settings page; and"}),e.jsx("li",{className:"footerTextWhite",children:"as otherwise stated in this Privacy Policy or the TickBig Terms of Service."})]})]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"10. Use of information for direct marketing: "}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig may al
36so use the User’s information so that TickBig, TickBig’s affiliates and TickBig’s third party business partners can promote and market products, services and special offers that TickBig may deem will be of interest to the User (which may include products, services and offers provided by a third party). This marketing may be carried out in a variety of ways (including by email, SMS/MMS, or social media or by customising on-line content and displaying advertising on the Sites) and may continue after the User ceases accessing, visiting or using the Service, until the User opts-out. The User may opt-out by emailing TickBig at- contact @ TickBig.com or by sending a letter to TickBig by postal mail at address with the subject as Attn: TickBig Customer Service or by following the “unsubscribe” instructions in any email communication the User receives from TickBig. TickBig notes that, if The User has downloaded the TickBig mobile application to the User’s mobile device and the User notifies TickBig of the User’s election to opt-out, The User will need to open the TickBig mobile application and send TickBig the User’s opt-out request via the Send Feedback button located in the Settings tab."]}),e.jsx("br",{}),e.jsxs("h4",{className:"footerTextWhite-header",children:["11. TickBig Disclosure of Information to Third Parties:"," "]}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig may disclose the User’s information to the following third parties:",e.jsxs("ul",{style:{listStyle:"none"},children:[e.jsx("li",{children:"A. TickBig’s Service Providers: TickBig may share the User’s information with third party contractors or service providers who provide certain services to TickBig or on TickBig’s behalf, such as operating and supporting the Service or otherwise responding to the User’s customer service requests. These service providers will only have access to the information needed to perform these limited functions on TickBig behalf and are required to provide the User’s information with at least the same level of protection and security as TickBig use for the Service."}),e.jsx("li",{children:"B. Business Transfers; Bankruptcy: If TickBig becomes involved in a merger, acquisition, sale of assets, securities offering, bankruptcy, reorganization, dissolution, or other transaction or if the ownership of all or substantially all of TickBig business otherwise changes, TickBig may share or transfer the User’s information to a third party or parties in connection with the applicable transaction."}),e.jsx("li",{children:"C. TickBig’s Affiliates: TickBig may share some or all of the User’s information with TickBig’s parent company, subsidiaries and corporate affiliates, joint venturers, or other companies under common control with TickBig for internal business purposes. TickBig will require these entities to comply with the terms of this Privacy Policy with regard to their use of the User’s information."}),e.jsx("li",{children:"D. Aggregate Information: TickBig may share information relating to visitors and users of the Service with affiliated or unaffiliated third parties on an aggregate basis. TickBig notes that, while this information will not identify you personally, in some instances these third parties may be able to combine this information with other data they have about the User, or that they receive from third parties, in a manner that allows them to identify the User personally."}),e.jsx("li",{children:"E. Law Enforcement Authorities: To the extent permitted by law, TickBig may share the User’s information with law enforcement, governmental agencies, or authorized third parties, in response to a verified request relating to a criminal investigation or alleged illegal activity or any other activity that may expose TickBig, the User, or any other TickBig user to legal liability, or to protect TickBig’s rights or property, or during emergencies when safety is at risk."}),e.jsx("li",{children:"F. Third Party Business Partners: If the User accesses the Service through a mobile device, TickBig may, from time to time, share the User’s device i.d., and geo-location information, etc., with a few carefully selected third party business partners that may use this information on behalf of themselves or their third party business partners to provide the User with marketing information about products or services that may be of interest to the User, for purposes related to advertising, analytics, attribution (e.g., measuring ad performance) and research. If the User would like TickBig to stop providing the User’s information to these third-party business partners, The User may opt-out by emailing TickBig at [email protected] or sending a letter to TickBig by postal mail at Postal Address with the subject as Attn: TickBig Customer Service. TickBig notes that, if the User has downloaded the TickBig mobile application to the User’s mobile device and the User notifies TickBig of the User’s election to opt-out, the User will need to open the TickBig mobile application and send TickBig the User’s opt-out request via the Send Feedback button located in the Settings tab in order for TickBig to disable sharing of the User’s information with certain third-party business partners. By electing to opt-out of these services, the User may be required to turn off the geo-location function in the Service which may result in some of the functionality of the Service being unavailable to the User."})]})]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"12. No Spam, Spyware or Spoofing:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","To report TickBig-related spam or spoof emails to TickBig please forward the email to [email protected]. The User shall not use TickBig’s communication tools to send spam or otherwise send content that would violate the TickBig Terms of Service."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"13. Security:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig takes reasonable measures (including a combination of technical solutions, security controls and internal processes) to protect the information the User provides to TickBig or submits through the Service against loss, theft and unauthorized use, disclosure, or modification. However, TickBig cannot guarantee or warrant the security of any information the User transmits to TickBig or submits through the Service and the User does so at the his/her own risk. No internet or email transmission is ever fully secure or error-free. Email sent to or through the Service may not be secure. The User should use caution whenever submitting information online and take special care in deciding what information the User sends to TickBig via email."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"14. Accessing, Changing and Managing the User’s Information:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:["The User may change and update the information the User provides through the Service, or change the User’s preferences concerning how TickBig use the User’s information, as follows:"," ",e.jsxs("ul",{style:{listStyle:"none"},children:[e.jsx("li",{children:"A. TickBig’s Service Providers: TickBig may share the User’s information with third party contractors or service providers who provide certain services to TickBig or on TickBig’s behalf, such as operating and supporting the Service or otherwise responding to the User’s customer service requests. These service providers will only have access to the information needed to perform these limited functions on TickBig behalf and are required to provide the User’s information with at least the same level of protection and security as TickBig use for the Service."}),e.jsx("li",{children:"B. Email Communications: The User can make changes regarding receiving email communications from TickBig within the User’s TickBig account. The User can also choose not to receive email communications from TickBig by following the “unsubscribe” instructions in any email communication the User receives from TickBig."}),e.jsx("li",{children:"C. Gateway Services: TickBig does not control the information the User provides to Gateway Services. If the User wants to change the User’s preferences with regard to how an applicable Gateway Service collects or uses the User’s information in connection with the Service, the User should review the privacy practices of the applicable Gateway Service and adjust the User’s privacy or other settings directly through the applicable Gateway Service."})]})]}),e.jsx("br",{}),e.jsxs("h4",{className:"footerTextWhite-header",children:["15. Use of Information Outside of the User’s Country of Residence:"," "]}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","If the User is located outside the territory of India and chooses to use the Service or provides his/her information to TickBig, the User’s information will be transferred, processed and stored in India. Indian privacy laws may not be as protective as those in the User’s jurisdiction. The User’s agreement to the terms of this Privacy Policy followed by the User’s submission of information in connection with the Service represents the User’s agreement to this practice. If the User does not want the User’s information transferred to or processed or stored in the India, the User must not use the Service."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"16. Retention of the User’s Information:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","TickBig retains information for active TickBig accounts as long as it is necessary and relevant for TickBig’s operations. In addition, TickBig may retain information from closed accounts to comply with the law, prevent fraud, resolve disputes, troubleshoot problems, assist with any investigation, enforce the TickBig’s Terms of Service and take other actions as permitted by law. The information TickBig retains about the User will be handled in accordance with this Privacy Policy."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"17. Cancellation Policy:"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"The User acknowledges and agrees that once the subscription fee is paid, it is non-cancellable. No refunds will be provided for the cancellation of the subscription."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"18. Refund Policy:"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"The User acknowledges that there are no returns or exch
36anges for unused products included in the subscription package. If a payment transaction fails during the subscription purchase process but money is deducted from the User's account, the Provider agrees to promptly investigate the issue. Upon verification of the failed transaction and deduction, the Provider will initiate a refund of the deducted amount to the User's original payment method within 5 to 7 business days."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"19. How to Contact TickBig:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ","If the User has any questions about the Privacy Policy or TickBig’s use of the information TickBig collects from the User in connection with the Service, The User may contact TickBig by email at contact @ TickBig.com or by sending postal mail at POSTAL ADDRESS with the subject as Attn: TickBig Customer Service. The User may also use these contact details to notify TickBig if the User thinks that TickBig has failed to comply with an applicable privacy law. TickBig is committed to acknowledging the User’s complaint in a prompt manner and will give the User an estimated timeframe within which TickBig will respond to the User’s complaint. While TickBig hopes that TickBig will be able to resolve any complaints the User may have without needing to involve third parties, the User may also be able to lodge a complaint with a relevant regulator"]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"TickBig's use of information received from Google APIs will adhere to the Google API Services User Data Policy, including the Limited Use requirements."})]})]})}function U_(){return e.jsxs("div",{className:"mt-5 text-center",children:[e.jsx("div",{className:"footerTitleBg",children:e.jsx("p",{children:"Tickbig Terms and Conditions"})}),e.jsx("br",{}),e.jsxs("div",{className:"footerContent",children:[e.jsx("p",{className:"footerTextWhite",children:"This End-User License Agreement (“EULA”) is a legal agreement between You and ‘TickBig’ Please read this EULA agreement carefully before completing the installation process and using the ‘TickBig’ Application/Platform. It provides a license to use the ‘TickBig’ Application/Platform (“Application/Platform”) and contains warranty information and liability disclaimers."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"By purchasing a License Key or using the free version and/or downloading and using ‘TickBig’, You agree, without reservation to be bound by the terms of this EULA. If You do not agree with the terms of this EULA, please do not purchase a License Key and/or download and use ‘TickBig’."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"If You register for a free trial of the ‘TickBig’ Application/Platform, this EULA agreement will also govern that trial. By clicking “accept” or installing and/or using the Application/Platform, You are confirming Your acceptance of the Application/Platform and agreeing to become bound by the terms of this EULA agreement. If You are entering into this EULA agreement on behalf of a company or other legal entity, You represent that You have the authority to bind such entity and its affiliates to these terms and conditions. If You do not have such authority or if You do not agree with the terms and conditions of this EULA agreement, do not install or use the Application/Platform, and You must not accept this EULA agreement."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"This EULA agreement shall apply only to the Application/Platform supplied by ‘TickBig’ herewith regardless of whether other Application/Platform is referred to or described herein. The terms also apply to any ‘TickBig’ updates, supplements, Internet-based services, and support services for the Application/Platform, unless other terms accompany those items on delivery. If so, those terms apply."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"1. Definitions"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ",e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"“Account” shall mean the account created by the User on the Application for availing the Services provided by “TickBig”."}),e.jsx("li",{className:"footerTextWhite",children:"“Applicable Laws” shall mean and include all applicable statutes, enactments, acts of legislature or parliament, laws, ordinances, rules, by-laws, regulations, notifications, guidelines, policies, directions, directives and orders of any governmental authority, tribunal, or a court situated in India."}),e.jsx("li",{className:"footerTextWhite",children:"“Application/Platform” shall mean the mobile application “TickBig” and the TickBig website updated by TickBig from time to time."}),e.jsx("li",{className:"footerTextWhite",children:"“User” means a person who has an Account on the Application. A user is someone who accesses or uses the Services for the purpose of searching professional opportunities, connecting with other entities, updating his professional achievements/qualifications etc."}),e.jsx("li",{className:"footerTextWhite",children:'"Content" will include (but is not limited to) information related to the entities, professional opportunies, job updates, reviews, images, photos, location data, nearby places, and all other forms of information or data. "Your content" or "User Content" means content that the User uploads, shares or transmits to, through or in connection with the Services, ratings, reviews, images, photos, profile information, and any other materials that the User publicly display or displayed in the User’s account profile. "TickBig’s Content" means content that TickBig creates and make available in connection with the Services including, but not limited to, visual interfaces, interactive features, graphics, design, compilation, computer code, products, software, aggregate ratings, reports and other usage-related data in connection with activities associated with the User’s account and all other elements and components of the Services excluding The User’s Content.'}),e.jsx("li",{className:"footerTextWhite",children:"“Force Majeure Event” shall mean any event arising due to any cause beyond the reasonable control of and not attributable to Tick Big such as (but not limited to) act of god, act of third parties etc."}),e.jsx("li",{className:"footerTextWhite",children:"T&Cs” and “User Terms” shall mean these terms and conditions read with the TickBig’s Privacy Policy."})]})]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"2.Eligibility to use the services"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ",e.jsxs("ul",{style:{listStyle:"Lower-roman"},children:[e.jsx("li",{children:"The User hereby represent and warrant that the User is at least eighteen (18) years of age or above and is capable and competent to understand and agree the terms, conditions, obligations, affirmations, representations, and warranties set forth in these Terms and is a person competent to contract as per the laws of India"}),e.jsx("li",{children:"Compliance with Laws: The User is responsible for complying with all laws and regulations in the country in which the User lives when the User accesses and uses the Services. The User agrees to use the Services only in compliance with these Terms and applicable law, and in a manner that does not violate TickBig’s legal rights or those of any third party(ies)."})]})]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"3.Registration and Account "}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"The user understands and acknowledge that the User can register on the platform only after complying with the requirements of these terms and by entering his/ her Data. The User shall ensure that the Data provided by the User is accurate, complete, current, valid and true and is updated from time to time. TickBig shall bear no liability for false, incomplete, old or incorrect Data provided by the User."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"The User is solely responsible for maintaining the confidentiality of his/her Data and will be liable for all activities that occur through his/her Account, whether initiated by the User or by any third party. The User’s Account cannot be transferred, assigned or sold to a third party. TickBig shall not be liable for any loss that the User may incur as a result of someone else using the User’s password or Account, either with or without the User’s knowledge."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"TickBig reserves the right to suspend or terminate the User’s Account without any notice for an indefinite period, if TickBig has a reason to believe that the =Data or any other information provided by the User is incorrect or false, or that the security of the User’s Account has been compromised in any way, or for any other reason which Tick may find just or equitable. The data which is required for registration at the platform includes (but is not limited to):"}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite",children:"FOR THE PROFILE"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ",e.jsxs("ul",{style:{listStyle:"number"},children:[e.jsx("li",{children:"First name"}),e.jsx("li",{children:"Middle name"}),e.jsx("li",{children:"Last name"}),e.jsx("li",{children:"Profile Picture"}),e.jsx("li",{children:"Gender"}),e.jsx("li",{children:"Date of birth"}),e.jsx("li",{children:"Mobile number"}),e.jsx("li",{children:"Landline"}),e.jsx("li",{children:"Address"}),e.jsx("li",{children:"City"}),e.jsx("li",{children:"State"}),e.jsx("li",{children:"Country"}),e.jsx("li",{children:"PIN"}),e.jsx("li",{children:"Educational Qualifications"}),e.jsx("li",{children:"Professional Experience"})]})]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"4.License Grant"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"‘TickBig’ hereby grants You a personal, non-transferable, non-exclusive license to use the ‘TickBig’ Application/Platform on Your devices in accordance with the terms of this EULA agreement. You are permitted to load the ‘TickBig’ Application/Platform (for example a PC, laptop, mobile or tablet) under Your control. You are responsible for ensuring Your device meets the minimum requirements of the Application/Platform."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"You are not permitted to:"}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:[" ",e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"Edit, alter, modify, adapt, translate or otherwise change the whole or any part of the Application/Platform nor permit the whole or any part of the Application/Platform to be combined with or become incorporated in any other Application/Platform, nor decompile, disassemble or reverse engineer the Application/Platform or attempt to do any such things"}),e.jsx("li",{className:"footerTextWhite",children:"Reproduce, copy, distribute, resell or otherwise use the Application/Platform for any commercial purpose;"}),e.jsx("li",{className:"footerTextWhite",children:"Allow any third party to use the Application/Platform on behalf of or for the benefit of any third party;"}),e.jsx("li",{className:"footerTextWhite",children:"Use the Application/Platform in any way which breaches any applicable local, national or international law;"}),e.jsx("li",{className:"footerTextWhite",children:"use the Application/Platform for any purpose that ‘TickBig’ considers is a breach of this EULA agreement."})]})]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"5. Your Account and Use of the Service or Application/Platform"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"It is required that You create an account in order to receive an activation key that enables You to use ‘TickBig’ on Your computer. You agree not to impersonate any person or entity or misrepresent Your identity or affiliation with any person or entity, including using another person’s username, password or other account information. You are responsible for the security of Your password and for any use of Your account."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"If there is a fee associated with Your use of ‘TickBig’, You agree to pay that fee. The fee charged excludes all applicable taxes and currency exchange settlements, unless stated otherwise. You are solely responsible for paying such taxes or other charges. ‘TickBig’ may suspend or cancel Your access to ‘TickBig’ if ‘TickBig’ does not receive payment from You. Suspension or cancellation for non-payment may result in a loss of access to and use of Your account."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"To pay any fees, You will be asked to provide a payment method at the time You sign up with ‘TickBig’. You agree to keep Your billing account information current at all times. By providing ‘TickBig’ with Your payment method, You (a) represent that You are authorized to use the payment method that You provided and that any payment information You provide is true and accurate; and (b) authorize ‘TickBig’ to charge You using Your payment method and to charge You for any paid feature that You choose to sign up for or use while this Agreement is in effect. You acknowledge and agree that ‘TickBig’ may bill You on a recurring basis for Services that You purchase on a subscription basis."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"‘TickBig’ may change the price it charges for the Services at any time and will notify You in advance of such changes. If You do not agree to the price change, You must cancel and stop using ‘TickBig’ before the price change takes effect. Unless otherwise provided by law or by a particular offer, all purchases are final and n
36on-refundable."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"6. Intellectual Property and Ownership"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"‘TickBig’ shall at all times retain ownership of the Application/Platform as originally downloaded by You and all subsequent downloads of the Application/Platform by You. The Application/Platform (and the copyright, and other intellectual property rights of whatever nature in the Application/Platform, including any modifications made thereto, any data uploaded by the User) are and shall remain the property of ‘TickBig’."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"‘TickBig’ reserves the right to grant licenses to use the Application/Platform to third parties."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"7. Permitted use and restrictions"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"In order to be able to install ‘TickBig’ and receive Updates and upgrades, Your computer shall have access to the Internet and shall meet the system requirements described in the documentation that can be found on the webpage."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"8. Maintenance and support"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"‘TickBig’ will notify You of any available Updates and upgrades."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"You will be entitled to receive Updates free of charge during the period of the purchased License Key for the Full version (monthly, yearly, or lifetime). In the case of monthly and yearly periods, in order to receive Updates after the period ends, You will need to renew Your License Key for the Full version."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"You can download available Updates and upgrades from the website of ‘TickBig’."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"Any maintenance and support provided by ‘TickBig’, including the provision of Updates and upgrades, will be provided in an adequate way on an “as is” basis without any warranty, as soon as reasonably practicable, subject to availability of personnel."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"9. Disclaimer"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"You use ‘TickBig’ at Your own risk and the entire risk as to satisfactory quality, performance and accuracy is with You."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"‘TickBig’ and accompanying documentation are provided on an “as is” and “as available” basis without warranty – express or implied – of any kind, and ‘TickBig’ specifically disclaims the warranty of fitness for a particular purpose. No oral or written advice given by ‘TickBig’ shall create a warranty or in any way increase the scope of this warranty and You may not rely upon such information or advice."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"10. Termination"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"This EULA agreement is effective from the date You first use the Application/Platform and shall continue until terminated. You may terminate it at any time upon written notice to ‘TickBig’."}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"It will also terminate immediately if You fail to comply with any term of this EULA agreement. Upon such termination, the licenses granted by this EULA agreement will immediately terminate and You agree to stop all access and use of the Application/Platform. The provisions that by their nature continue and survive will survive any termination of this EULA agreement."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"11. Governing Law"}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"This EULA agreement, and any dispute arising out of or in connection with this EULA agreement, shall be governed by and construed in accordance with the laws of India."})]})]})}function wa(){const s=G(i=>i.auth),{gotoSignIn:t,gotoSignUp:a}=Be();return e.jsx(e.Fragment,{children:!s.isAuthenticated&&!s.verified&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:"navbar-hero",style:{paddingBottom:"5px"},children:[e.jsxs("section",{className:"display-flex-aic-jcsb signIn-nav-container ",children:[e.jsx("p",{children:e.jsxs(is,{to:"/",className:"text-decoration-none company-header headLink",children:["Tick",e.jsx("span",{className:"company-header-2",children:"big"})]})}),e.jsxs("div",{className:"display-flex-aic-jcsb",children:[e.jsx(bs,{onClickFn:()=>a(),name:"Sign Up",cssStyle:"public_signup_Btn"}),e.jsx(bs,{onClickFn:()=>t(),name:"Sign In",cssStyle:"public_signin_Btn"})]})]}),e.jsx("hr",{className:"navbar__hr"})]})})})}function tp(){const[s,t]=b.useState("tab1");return We(()=>{window.scrollTo(0,0)},[]),e.jsxs("div",{className:"footerWrap",children:[e.jsx(wa,{}),e.jsxs("div",{className:"footerMainWrap",children:[e.jsxs("div",{className:"display-flex-aljc-center buttonWrapper",children:[e.jsx("button",{onClick:()=>t("tab1"),className:s==="tab1"?"termButton1":null,style:{color:s==="tab1"?"#d6dcdd":"#a7aaab"},children:"Privacy Policy"}),e.jsx("button",{onClick:()=>t("tab2"),className:s==="tab2"?"termButton1":null,style:{color:s==="tab2"?"#d6dcdd":"#a7aaab"},children:"Terms and Conditions"})]}),s==="tab1"?e.jsx(O_,{}):e.jsx(U_,{})]}),e.jsx(et,{})]})}const D_="TickBig - Rewrite your limits, Rewrite Your Limits with TickBig,  TickBig Professional Journey,  TickBig Register and Sign In,  Connect and Network on TickBig,  Explore TickBig Platform,  TickBig User Categories,  TickBig Individual, Company, Institution,  TickBig Professional Growth,  Democratizing Opportunity with TickBig,  TickBig All-in-One Platform,  TickBig Jobs Across Domains,  Virtual Hiring on TickBig,  TickBig Projects and Resources,  Staff Augmentation with TickBig,  Fundraising and Investing on TickBig,  Investment Opportunities with TickBig,  TickBig Fortune Card and Portfolio,  TickBig Digital Identity,  Boost Your Profile with TickBig,  TickBig Rating and Reviews,  Establish Credibility with TickBig,  Networking Power of TickBig,  Global Connections on TickBig,  Transform Communication with TickBig,  Career Advancement with TickBig,  TickBig Corporation,  Online Networking on TickBig,  TickBig Job Opportunities,  TickBig Digital Fortune Card.",q_="TickBig: Rewrite limits, find opportunities. Versatile platform for individuals, companies, institutions. Job searches, virtual hiring, projects, fundraising. Free digital Fortune Card, ratings, reviews. Streamlined professional growth and networking. Join now",V_="TickBig: Rewrite Limits, Seize Opportunities, and Boost Your Professional Journey!",Zn="@KratoSolutions",Kn="https://www.tickbig.com/assets/TB_Logo-DiGDjXDP.png",z_="https://tickbig.com",W_="TickBig | Rewrite your limits, Rev up Your Professional journey",en=({title:s,description:t,type:a,twitterusername:i,keywords:n,canonical:r,landingUrl:l,imageUrl:c})=>e.jsxs(ld,{prioritizeSeoTags:!0,children:[e.jsx("title",{children:s}),e.jsx("meta",{name:"description",content:t}),e.jsx("meta",{name:"keywords",content:n}),e.jsx("meta",{name:"robots",content:"index, follow"}),r?e.jsx("link",{rel:"canonical",href:r}):e.jsx("link",{rel:"canonical",href:"https://www.tickbig.com/"}),e.jsx("meta",{property:"og:title",content:s}),e.jsx("meta",{property:"og:description",content:t}),c&&e.jsx("meta",{property:"og:image",content:c}),l&&e.jsx("meta",{property:"og:url",content:l}),e.jsx("meta",{property:"og:type",content:a}),e.jsx("meta",{property:"og:site_name",content:W_}),e.jsx("meta",{property:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:s}),e.jsx("meta",{name:"twitter:description",content:t}),c&&e.jsx("meta",{name:"twitter:image",content:c}),i&&e.jsx("meta",{name:"twitter:creator",content:i}),e.jsx("meta",{name:"twitter:creator",content:i})]});function ap(){return We(()=>{window.scrollTo(0,0)},[]),e.jsxs("div",{children:[e.jsx(en,{title:"TickBig: Innovating Professional Networking and Branding Solutions",description:"TickBig connects individuals, businesses, and institutions, offering professional networking, branding, and growth opportunities to help you leverage your potential.",keywords:"Professional networking, Personal branding, Freelancers, Professional growth, Business opportunities, Career development, Homegrown businesses, Registered companies, Educational institutions, Network leverage, TickBig platform",type:"website",twitterusername:Zn,
36canonical:window.location.href,landingUrl:window.location.href,imageUrl:Kn}),e.jsx(wa,{}),e.jsx("div",{className:"footerMainWrap",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"footerTitleBg",children:e.jsx("p",{children:"About"})}),e.jsxs("div",{className:"footerContent",children:[e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"Questions that gave birth to TickBig:"}),e.jsx("p",{className:"footerTextWhite",children:e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"Are you tired of jumping between different Apps for different needs in your professional journey?"}),e.jsx("li",{className:"footerTextWhite",children:"One always regrets post a bad experience with others. How about knowing their true traits beforehand?"}),e.jsx("li",{className:"footerTextWhite",children:"Are you really leveraging your networks to its potential? Don’t underestimate your circle, you can reach anybody in 6 clever steps."}),e.jsx("li",{className:"footerTextWhite",children:"Are you pitching all the day without knowing your potential client/customer?"}),e.jsx("li",{className:"footerTextWhite",children:"Do you have enough options to choose the right vendor and land at better quality & spends?"}),e.jsx("li",{className:"footerTextWhite",children:"Does your platform work 24x7 for your branding?"})]})}),e.jsx("br",{}),e.jsx("p",{className:"footerTextWhite",children:"Tickbig irons out all the above hassles for our TG with its unique & innovative approaches."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"Aim of this Platform: "}),e.jsx("p",{className:"footerTextWhite",children:"Our motto is to cover people having different professional capacities. Hence our target group is broadly classified into 3 types and each of them into further sub-categories, summing up to a total of 7 account types."}),e.jsx("br",{}),e.jsxs("p",{className:"footerTextWhite",children:["They are:",e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"Individuals (Professionals, Freelancers & Students)"}),e.jsxs("li",{className:"footerTextWhite",children:["Companies (Homegrown Companies & Registered Companies)"," "]}),e.jsx("li",{className:"footerTextWhite",children:"Institutions (Colleges & Training Institutes)."})]})]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"The objective of our platform "}),e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"To create brand value & visibility for all our users"}),e.jsx("li",{className:"footerTextWhite",children:"To bring all possible opportunities for their growth"})]})]})]})}),e.jsx(et,{})]})}function np(){return We(()=>{window.scrollTo(0,0)},[]),e.jsxs("div",{className:"footerWrap",children:[e.jsx(en,{title:"Contact Tickbig - Support & Address Information",description:"Contact Tickbig for any supp
36ort-related inquiries or assistance. We aim to help our users connect, grow, and build their professional network effectively.",keywords:"Tickbig support, contact Tickbig, Tickbig address, Chennai office, customer support, support email, Tickbig networking media, contact details.",type:"website",twitterusername:Zn,canonical:window.location.href,landingUrl:window.location.href,imageUrl:Kn}),e.jsx(wa,{}),e.jsx("div",{className:"footerMainWrap",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"footerTitleBg",children:e.jsx("p",{children:"Contact us"})}),e.jsx("div",{className:"helpContent",children:e.jsxs("div",{className:"helpcontainer",children:[e.jsx("br",{}),e.jsx("h2",{className:"footerTextWhite-header",children:"For any genuine queries or issues please write to the following mail"}),e.jsx("br",{}),e.jsxs("h2",{className:"footerTextWhite-header",children:["Mail : ",e.jsx("span",{className:"footerTextWhite",children:"[email protected]"})," "]}),e.jsx("br",{}),e.jsxs("h2",{className:"footerTextWhite-header",children:["Address :"," ",e.jsx("span",{className:"footerTextWhite",children:"No 3/5, Alonkar Aadharsh building, Ground Floor G1, 7th Avenue, Ashok Nagar, Chennai - 600083"})]}),e.jsx("br",{}),e.jsxs("h2",{className:"footerTextWhite-header",children:["Tickbig Networking Media Private Limited © ",new Date().getFullYear()]}),e.jsx("br",{})]})})]})}),e.jsx(et,{})]})}const Il=({convoId:s,setConvoId:t,convoUpdate:a,loadConversations:i,setShowMessage:n,showMessage:r,setUsers:l,setConvoUpdate:c,users:o,query:p,filteredConvos:h,finalOptions:d,handleCreate:u,pageNo:m,totalPages:f,loading:v})=>{const N=ge(),_=Ds(),{errorHandle:x}=he(),{gotoConversation:j}=Be(),[I,w]=b.useState({}),{user:y,userDetails:{blockedIds:k}}=G(g=>g.auth),S=async g=>{try{let E=await Gs({conversationId:Ee(g)});const{messages:C,totalPages:T,currentPage:A,unseenNotifications:R}=E==null?void 0:E.data;N(Rh(g,y,0)),N(Us(C,A,T,g)),N(Ss(R));let P=h==null?void 0:h.find(L=>(L==null?void 0:L._id)===g),O={...P,unReadCount:{...P==null?void 0:P.unReadCount,[y]:0}};const M=await Fu(Ee(g));M&&(M==null?void 0:M.statusCode)===Ke&&(t(g),l(O),n(!0),j(g),w(L=>({...L,[g]:!1})))}catch(E){x(E)}};return b.useEffect(()=>{const g=h.reduce((E,C)=>(E[C._id]=C.unReadCount[y]>0,E),{});w(g)},[h,y]),b.useEffect(()=>(_!=null&&_.connected&&_.on("show-dot",g=>{w(E=>({...E,[g]:!0}))}),()=>{_!=null&&_.connected&&_.off("show-dot")}),[_]),e.jsx("main",{children:e.jsxs("section",{children:[e.jsxs(Es,{dataLength:m*10,next:()=>i(m+1),hasMore:m!==f,loader:v&&e.jsx("h4",{children:"Create your first conversation now."}),style:{display:"flex",flexWrap:"wrap",overflow:"hidden",justifyContent:"center",padding:"0px 10px"},children:[(p==null?void 0:p.length)>0&&(d==null?void 0:d.filter(g=>g==null?void 0:g.verified).map((g,E)=>{let C=g!=null&&g.avatar?g==null?void 0:g.avatar:Ks(g==null?void 0:g.subType);return e.jsx(yn,{avatar:C,onClick:()=>u(g==null?void 0:g._id),title:g==null?void 0:g.firstName,subtitle:e.jsx("p",{className:"truncated",children:g==null?void 0:g.subType}),date:new Date().getTime(),unread:!1},g==null?void 0:g._id)})),(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((g,E)=>{var O,M,L,F,U,Z;let C=new Date((O=g==null?void 0:g.latestMessage)==null?void 0:O.createdAt).getTime(),T=lt(g,y);const A=qn(k,T==null?void 0:T._id),R=(M=g==null?void 0:g.latestMessage)!=null&&M.body?(F=Et((L=g==null?void 0:g.latestMessage)==null?void 0:L.body))==null?void 0:F.toString():"";let P=T!=null&&T.avatar?T.avatar:Ks(T==null?void 0:T.subType);return e.jsx(yn,{avatar:P,onClick:()=>S(g==null?void 0:g._id),title:Dn(g,y),subtitle:e.jsx(e.Fragment,{children:(U=g==null?void 0:g.latestMessage)!=null&&U.body&&!A?e.jsx(e.Fragment,{children:R.includes("Hi, I'm referring you")?e.jsx("p",{className:"truncated",children:"Referred content"}):R.includes("Hi, I have added you as a Verifier to one of my Projects.")?e.jsx("p",{className:"truncated",children:"Project Verification"}):e.jsx("div",{dangerouslySetInnerHTML:{__html:fa.sanitize(Et((Z=g==null?void 0:g.latestMessage)==null?void 0:Z.body))}})}):""}),date:!isNaN(C)&&C,unread:I[g==null?void 0:g._id]||(g==null?void 0:g.unReadCount[y])>0},g==null?void 0:g._id)}))]}),!h.length&&e.jsx("div",{style:{minHeight:"60vh",display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsxs("section",{className:"display-flex-aljc-center mb-3",style:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsx("img",{src:Ju,alt:"no messsage found"}),e.jsx("p",{style:{mixBlendMode:"difference",color:"#a7aaab"},children:"No messages yet!"})]})})]})})},Al=({setQuery:s})=>{const{gotoAllJobs:t}=Be();b.useState(!1);const a=Pt(n=>{var r;return i((r=n==null?void 0:n.target)==null?void 0:r.value)},100),i=n=>{s(n),localStorage.setItem("msgquery",n)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{}),e.jsxs("main",{className:"chatNav",children:[e.jsxs("section",{className:"display-flex-aic-jcsb chatNav__section-2",children:[e.jsx("aside",{className:"chatNav__back cp",children:e.jsx("i",{className:"fa-solid fa-angle-left",onClick:()=>t()})}),e.jsx("aside",{children:e.jsx("div",{className:"chatnav__dropdown",children:e.jsx("div",{className:"chatnav__article-3",children:e.jsx("div",{className:"chatnav__article-3-dropdown",children:e.jsx("p",{className:"chatnav__article-3-dropdown-btn",children:"Messages"})})})})}),e.jsx("aside",{})]}),e.jsx("section",{style:{paddingLeft:"5px",paddingRight:"5px"},children:e.jsx("input",{className:"chatNav__search",placeholder:"Search",type:"search",onChange:n=>a(n)})})]})]})},$_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='233.691'%20height='241.912'%20viewBox='0%200%20233.691%20241.912'%3e%3cdefs%3e%3cclipPath%20id='clip-path'%3e%3crect%20id='Rectangle_1711'%20data-name='Rectangle%201711'%20width='229.68'%20height='180.778'%20fill='%232f3639'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='Group_8438'%20data-name='Group%208438'%20transform='translate(-567.137%20-343)'%3e%3cg%20id='Rectangle_1729'%20data-name='Rectangle%201729'%20transform='translate(570.916%20343)'%20fill='%23fff'%20stroke='%23707070'%20stroke-width='1'%20opacity='0'%3e%3crect%20width='229.084'%20height='241.912'%20stroke='none'/%3e%3crect%20x='0.5'%20y='0.5'%20width='228.084'%20height='240.912'%20fill='none'/%3e%3c/g%3e%3cg%20id='Group_8388'%20data-name='Group%208388'%20transform='translate(570%20373.239)'%3e%3cg%20id='Group_8383'%20data-name='Group%208383'%20clip-path='url(%23clip-path)'%3e%3cpath%20id='Path_4398'%20data-name='Path%204398'%20d='M30.941,170.312C8.874,158.123-3.526,133.4.885,108.584c4.336-24.4,22.4-35.9,47.1-42.937C82.2,55.908,95.317-.665,148.127.006s91.716,46.063,79.195,99.728-59.186,78.459-102.936,75.788-53.14,13.877-85.34-1.1q-4.388-2.041-8.106-4.107'%20transform='translate(0%200)'%20fill='%232f3639'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Layer_1'%20data-name='Layer%201'%20transform='translate(570.917%20384.235)'%3e%3cg%20id='Group_8370'%20data-name='Group%208370'%20transform='translate(0)'%3e%3cg%20id='Group_8367'%20data-name='Group%208367'%20transform='translate(0%200)'%3e%3cpath%20id='Path_4376'%20data-name='Path%204376'%20d='M72.01,93.875c-4.519,7.312,1.055,16.314,1.865,24.041-1.223.555-14.627-16.825-17.547-17.828C29.494,100.541,4.971,84.913.634,57.441-5.6,17.951,35.357-12.358,71.167,5.007,108.047,22.893,108.207,75.181,72.01,93.875Z'%20transform='matrix(0.951,%200.309,%20-0.309,%200.951,%2036.442,%200)'%20fill='none'%20stroke='%23a7aaab'%20stroke-miterlimit='10'%20stroke-width='6'/%3e%3cg%20id='Group_8373'%20
36data-name='Group%208373'%20transform='translate(44.213%2056.585)'%3e%3ccircle%20id='Ellipse_1006'%20data-name='Ellipse%201006'%20cx='5.188'%20cy='5.188'%20r='5.188'%20transform='translate(19.27)'%20fill='%23a7aaab'/%3e%3ccircle%20id='Ellipse_1007'%20data-name='Ellipse%201007'%20cx='5.188'%20cy='5.188'%20r='5.188'%20transform='translate(38.54)'%20fill='%23a7aaab'/%3e%3ccircle%20id='Ellipse_1008'%20data-name='Ellipse%201008'%20cx='5.188'%20cy='5.188'%20r='5.188'%20transform='translate(0)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Group_8369'%20data-name='Group%208369'%20transform='matrix(-0.695,%200.719,%20-0.719,%20-0.695,%20228.214,%2090.87)'%3e%3cpath%20id='Path_4380'%20data-name='Path%204380'%20d='M48.38,19.934C53,20.1,55.123,6.505,58.075,0c1.229.128,3.781,20.144,5.632,22.3C85.2,34.412,97.387,58.2,88.061,82.01c-13.408,34.218-59.984,39.222-80.315,8.8-20.938-31.328,3.239-72.877,40.637-70.878Z'%20transform='matrix(0.999,%200.035,%20-0.035,%200.999,%203.871,%200)'%20fill='none'%20stroke='%235a6466'%20stroke-miterlimit='10'%20stroke-width='6'/%3e%3cg%20id='Group_8374'%20data-name='Group%208374'%20transform='translate(33.392%2045.7)%20rotate(45)'%3e%3cellipse%20id='Ellipse_1006-2'%20data-name='Ellipse%201006'%20cx='5.188'%20cy='5.188'%20rx='5.188'%20ry='5.188'%20transform='translate(19.27%200)'%20fill='%235a6466'/%3e%3cellipse%20id='Ellipse_1007-2'%20data-name='Ellipse%201007'%20cx='5.188'%20cy='5.188'%20rx='5.188'%20ry='5.188'%20transform='translate(38.54%200)'%20fill='%235a6466'/%3e%3cellipse%20id='Ellipse_1008-2'%20data-name='Ellipse%201008'%20cx='5.188'%20cy='5.188'%20rx='5.188'%20ry='5.188'%20transform='translate(0%200)'%20fill='%235a6466'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",El=()=>{var K;const{conversations:s,pageNo:t,totalPages:a,loading:i}=G(te=>te.conversations),{user:n,userDetails:{blockedIds:r,accountType:l}}=G(te=>te.auth),c=ge(),{gotoConversation:o}=Be(),p=(K=ts())==null?void 0:K.convoid,h=p?Et(p):"",{errorToast:d,successToast:u,warningToast:m,errorHandle:f}=he(),[v,N]=b.useState(""),[_,x]=b.useState(h||""),[j,I]=b.useState([]),[w,y]=b.useState(!1),[k,S]=b.useState(!1),[g,E]=b.useState([]),[C,T]=b.useState(!1),[A,R]=b.useState([]),[P,O]=b.useState([]);let M=1,L=10;const F=async te=>{var q;try{const H=await Lu({searchValue:te,pageNo:M,limit:L}),ee=(((q=H==null?void 0:H.data)==null?void 0:q.usersData)||[]).filter(se=>{var B;const ae=(B=se==null?void 0:se.friends)==null?void 0:B.includes(n);return l==="Individuals"||["Brands","Institutes"].includes(l)?ae:!0});E(ee),U(te,ee)}catch(H){f(H)}},U=(te,q)=>{const H=te.toLowerCase(),X=(s==null?void 0:s.filter(ae=>{const B=lt(ae,n);return`${B==null?void 0:B.email} ${B==null?void 0:B.firstName} ${B==null?void 0:B.lastName}`.toLowerCase().includes(H)}))||[];R(X);const ee=new Set(X.map(ae=>{var B;return(B=lt(ae,n))==null?void 0:B._id})),se=q.filter(ae=>!ee.has(ae._id));O(se),T([...se,...X].length===0)},Z=async te=>{var q,H;try{const ee=await Hs({body:{userIds:[te,n],convoType:"SINGLE",convoStatus:"accepted"}}),se=((q=ee==null?void 0:ee.data)==null?void 0:q.conversationData)||((H=ee==null?void 0:ee.data)==null?void 0:H.conversations[0]);se&&(x(se==null?void 0:se._id),y(!0),I(se),o(se==null?void 0:se._id))}catch(X){f(X)}},ne=b.useCallback(async te=>{c(bn());try{const q=await Io({pageNo:te}),{conversations:H,totalPages:X}=q==null?void 0:q.data;console.log(q,"conversa.............."),R(H),c(xo(H,te,X))}catch(q){f(q)}},[c]);return b.useEffect(()=>{ne(1),(h||_)&&(y(!0),x(h||_))},[ne,_,h,k]),b.useEffect(()=>{v.length===0?(R(s),T(!1)):F(v)},[v,s]),e.jsxs("main",{className:"message_main",children:[e.jsx("section",{className:"d-none d-md-block",children:e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col-12 col-sm-12 col-md-5 col-lg-4 col-xl-3",children:[e.jsx("div",{className:"message__nav",children:e.jsx(Al,{query:v,setQuery:N})}),e.jsx("div",{className:"message__left",children:C?e.jsx(Hi,{}):e.jsx(Il,{convoId:_,setConvoId:x,convoUpdate:k,loadConversations:ne,setShowMessage:y,showMessage:w,setUsers:I,setConvoUpdate:S,users:j,query:v,filteredConvos:A,finalOptions:P,handleCreate:Z,pageNo:t,totalPages:a,loading:i})})]}
36),e.jsx("div",{className:"col-md-7 col-lg-8 col-xl-9",children:e.jsx("div",{className:`message__right ${_||h?"":"no-border"}`,children:_||h?e.jsx($i,{convoId:_,setConvoId:x,users:j,setConvoUpdate:S,convoUpdate:k,loadConversations:ne,setShowMessage:y}):e.jsxs("div",{className:"no-convo",children:[e.jsx("img",{src:$_,alt:"no purchase"}),e.jsx("p",{children:"Start Your Conversation Now"}),e.jsx("p",{children:"When someone sends a message to you, it will appear here"})]})})})]})}),e.jsx("section",{className:"d-block d-md-none",children:e.jsx("div",{className:"row",children:(_||h)&&w?e.jsx($i,{convoId:_,setConvoId:x,users:j,setConvoUpdate:S,convoUpdate:k,loadConversations:ne,setShowMessage:y}):e.jsxs("div",{className:"col-12",children:[e.jsx("div",{className:"message__nav",children:e.jsx(Al,{query:v,setQuery:N})}),e.jsx("div",{className:"message__left",children:C?e.jsx(Hi,{}):e.jsx(Il,{convoId:_,setConvoId:x,convoUpdate:k,loadConversations:ne,setShowMessage:y,showMessage:w,setUsers:I,setConvoUpdate:S,users:j,query:v,filteredConvos:A,finalOptions:P,handleCreate:Z,pageNo:t,totalPages:a,loading:i})})]})})})]})},H_=async s=>z.post(Oy,s).then(t=>t.data).catch(t=>{throw t}),G_="1746690166469061",Kt=(s="event")=>{const t=Date.now(),a=Math.random().toString(36).substring(2,10);return`${s}_${t}_${a}`},Ml=s=>{if(typeof document>"u")return;const t=document.cookie.match(new RegExp(`(?:^|;\\s*)${s}=([^;]*)`));return t?decodeURIComponent(t[1]):void 0},J_=()=>{try{let s=localStorage.getItem("tb_meta_fbc")||void 0;const a=new URL(window.location.href).searchParams.get("fbclid");return a&&(s=`fb.1.${Date.now()}.${a}`,localStorage.setItem("tb_meta_fbc",s)),s}catch{return}},Y_=()=>typeof window>"u"?{}:{fbp:Ml("_fbp"),fbc:Ml("_fbc")||J_()},Z_=()=>{if(typeof window<"u"&&!window.fbq){const s=setInterval(()=>{window.fbq&&clearInterval(s)},100)}};let Pl="";const K_=s=>{if(typeof window>"u"||!window.fbq||!s)return;const t={},a=s.email?String(s.email).trim().toLowerCase():"",i=s.mobile||s.phone?String(s.mobile||s.phone):"";if(a&&(t.em=a),i&&(t.ph=i),s.firstName&&(t.fn=String(s.firstName).trim()),s.lastName&&(t.ln=String(s.lastName).trim()),(s._id||s.id)&&(t.external_id=String(s._id||s.id)),Object.keys(t).length===0)return;const n=JSON.stringify(t);if(n!==Pl){Pl=n;try{window.fbq("init",G_,t)}catch(r){console.warn("[MetaPixel] Advanced matching update failed:",r)}}},Qt=s=>{if(!(typeof window>"u"))if(window.fbq)s();else{console.log("[MetaPixel] Waiting for pixel to load...");const t=setInterval(()=>{window.fbq&&(clearInterval(t),console.log("[MetaPixel] Pixel loaded, executing callback"),s())},100);setTimeout(()=>{clearInterval(t),console.warn("[MetaPixel] Pixel load timeout - event may not fire")},5e3)}},Q_=(s,t=null)=>{const a=Kt("PageView");return Qt(()=>{window.fbq("track","PageView",{},{eventID:a})}),t&&Nt({eventName:"PageView",eventId:a}),a},Lo=(s=null,t=0,a="INR")=>{const i=Kt("InitiateCheckout");return Qt(()=>{window.fbq("track","InitiateCheckout",{value:t,currency:a},{eventID:i})}),i},Fo=(s=null,t=0,a="INR",i=null,n=null)=>{const r=n||Kt("Purchase");return Qt(()=>{window.fbq("track","Purchase",{value:t,currency:a,...i&&{order_id:i}},{eventID:r})}),r},X_=(s=null,t="")=>{const a=Kt("AmboUsage");return Qt(()=>{window.fbq("trackCustom","AmboUsage",{ambo_type:t},{eventID:a})}),a},iA=(s=null,t=0,a="INR",i=0)=>{const n=Kt("AddToCart");return Qt(()=>{window.fbq("track","AddToCart",{value:t,currency:a,num_items:i},{eventID:n})}),Nt({eventName:"AddToCart",eventId:n,amount:t,currency:a,itemCount:i}),n},Gi=1200,Rl=new Map,qs=(s,t={})=>{const a=Date.now(),i=Rl.get(s)||0;if(a-i<Gi)return console.log(`[MetaPixel] Suppressed duplicate ${s} within ${Gi}ms`),null;Rl.set(s,a);const n=Kt(s);return Qt(()=>{window.fbq("trackCustom",s,t,{eventID:n})}),Nt({eventName:s,eventId:n}),n},eN=()=>qs("TICKBIG_SIGNIN"),sN=()=>qs("TICKBIG_SIGNUP"),tN=()=>qs("TICKBIG_MAIN_LP"),oA=()=>qs("TICKBIG_CART_PAGE_LOADED"),aN=()=>qs("TICKBIG_SUBSCRIPTION_PAGE_LOADED"),nN=()=>qs("AMBO_JOB_SEARCH_CHAT"),iN=()=>qs("AMBO_FUNDRAISE_CHAT"),oN=()=>qs("AMBO_RECRUITER_CHAT"),rN=()=>qs("AMBO_SERVICE_PROVIDER_CHAT"),lN=()=>qs("AMBO_SERVICE_REQUEST"),cN=()=>qs("TB_AMBO_CHAT_PAY_MODAL"),rA=()=>qs("TB_CART_PROCEED_BUY_CLICKED"),dN=()=>qs("TB_MLP_SIGNUP"),mN=()=>qs("TB_MLP_SINGIN"),hN=()=>qs("TB_SUBSCRIPTION_PRODUCT_ADD_CART"),Nt=(s={})=>{const{eventName:t,eventId:a,...i}=s;
36if(!t||!a){console.warn("[MetaPixel] notifyMetaEvent: eventName and eventId are required");return}const{fbp:n,fbc:r}=Y_();z.post(Hy,{eventName:t,eventId:a,eventSourceUrl:typeof window<"u"?window.location.href:void 0,...n&&{fbp:n},...r&&{fbc:r},...i}).catch(l=>{var o;const c=(o=l==null?void 0:l.response)==null?void 0:o.status;if(c===400||c===404){console.log(`[MetaPixel] CAPI notify skipped (${t}, status ${c})`);return}console.warn("[MetaPixel] CAPI notify failed (non-critical):",(l==null?void 0:l.message)||l)})};let Ll=0;const uN=(s="whatsapp")=>{const t=Date.now();if(t-Ll<Gi)return null;Ll=t;const a=Kt("Contact");return Qt(()=>{window.fbq("track","Contact",{channel:s},{eventID:a})}),Nt({eventName:"Contact",eventId:a}),a};function pN({subscriptions:s,btnLoad:t,setBtnload:a}){var u;const{successToast:i,warningToast:n,errorToast:r,errorHandle:l}=he(),c=ge(),{userDetails:{accountType:o}}=G(m=>m.auth),{products:p}=G(m=>m.myCart),h=Pt(m=>{hN(),d(m)}),d=async m=>{let f=p==null?void 0:p.filter(v=>(v==null?void 0:v._id)==(m==null?void 0:m._id));if((f==null?void 0:f.length)===0)try{const v=await H_(m);v&&(v==null?void 0:v.statusCode)===Ke&&(a(N=>[...N,m==null?void 0:m._id]),c(Fh(v==null?void 0:v.data)),i("Item added to cart")),v&&v.statusCode===rt&&n("Failed to add item to cart")}catch(v){l(v)}};return e.jsx("section",{children:e.jsx("div",{className:"subscription__Card",children:e.jsx("div",{className:"row row-cols-1 row-cols-md-3 g-4",children:(u=s==null?void 0:s.filter(m=>!_1.includes(m.name)))==null?void 0:u.map((m,f)=>{const v=["Apply Job","Create Job"].includes(m.name)?`${m.name} (Manual)`:m.name;return e.jsx(e.Fragment,{children:e.jsx("div",{className:"col",children:e.jsxs("div",{className:"subscription_card",children:[e.jsxs("div",{className:"subscription_card-body subs__Card",children:[e.jsx("h5",{className:"subscription_card-title",children:v}),e.jsxs("h6",{className:"item_quantity",children:["(",m.quantity," Qty Rs ",m.price,") +Taxes"]}),e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"textDesc",children:m.description})})]}),e.jsx("div",{className:"text-center subscription-button",children:(m==null?void 0:m.name)=="Apply Job"&&o==="Brands"?e.jsx("button",{className:"productNotAvailable",disabled:!0,children:"Not available"}):t!=null&&t.includes(m._id)?e.jsx("button",{className:"productBtn",style:{width:"auto"},disabled:!0,children:"Already added in cart"}):e.jsx("button",{className:"productBtn",onClick:()=>h(m),children:"Add to cart"})})]})},f)})})})})})}function gN({currentPlan:s,freeBie:t}){return e.jsxs(e.Fragment,{children:[(t==null?void 0:t.length)>0&&e.jsxs("div",{className:"set__card",children:[e.jsx("span",{className:"set_sub",children:"Free Tier Usage"}),e.jsx("div",{className:"admin__table",children:e.jsx("div",{className:"admin__responsive",children:e.jsxs("table",{className:"table-line",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"admin__f",style:{textAlign:"left"},children:"Name"}),e.jsx("th",{scope:"col",className:"admin__f",style:{textAlign:"left"},children:"Remaining"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map((a,i)=>{const n=["Apply Job","Create Job"].includes(a.name)?`${a.name} (Manual)`:a.name;return e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading",children:n})}),e.jsxs("td",{className:"checkbox--heading",children:[a.count," Left"]})]},i)})})]})})})]}),(s==null?void 0:s.length)>0&&e.jsxs("div",{className:"set__card",children:[e.jsx("span",{className:"set_sub",children:"Your Purchases"}),e.jsx("div",{className:"admin__table",children:e.jsx("div",{className:"admin__responsive",children:e.jsxs("table",{className:"table-line",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"admin__f",children:"Name"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Remaining"})]})}),e.jsx("tbody",{children:s==null?void 0:s.map((a,i)=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading",children:a.productName})}),e.jsxs("td",{className:"checkbox--heading",children:[a.quantity," Left"]})]},i))})]})})})]})]})}const xN=async()=>z.get(Uy).then(s=>s.data).catch(s=>{throw s}),lA=async s=>z.put(Dy,{products:s}
36).then(t=>t.data).catch(t=>{throw t}),cA=async s=>z.put(qy,s).then(t=>t.data).catch(t=>{throw t}),sn=async s=>z.post(zy,s).then(t=>t.data).catch(t=>{throw t}),tn=async s=>z.get(`${By}/${s}`).then(t=>t.data).catch(t=>{throw t}),fN=async(s,t)=>z.post(Wy,{...s,email:t}).then(a=>a.data).catch(a=>{throw a}),an=async s=>z.post($y,s).then(t=>t.data).catch(t=>{throw t}),dA=async s=>z.put(Vy,s).then(t=>t.data).catch(t=>{throw t}),kt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%2301bf71'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='m4.5%2012.75%206%206%209-13.5'%20/%3e%3c/svg%3e",jN=()=>{const{errorToast:s,successToast:t,warningToast:a,errorHandle:i}=he(),n=ge(),{user:r,userDetails:{accountType:l}}=G(j=>j.auth),{subscriptions:c,currentPlan:o,freeBie:p}=G(j=>j.subscription),h=G(j=>j.myCart),d=h.userId===r?h.products:[],[u,m]=b.useState([]),[f,v]=b.useState("sub"),N=b.useCallback(async()=>{try{let j=await Ao();const{subscriptions:I,unseenNotifications:w}=j==null?void 0:j.data;let y=I.map(k=>({...k,units:k.quantity}));n(go(y)),n(Ss(w))}catch(j){i(j)}},[n]),_=b.useCallback(async()=>{try{const j=await Du(),{currentPlan:I,freeBie:w}=j==null?void 0:j.data;n(Mh(I,w))}catch(j){i(j)}},[n]),x=b.useCallback(async()=>{var j,I;try{let w;w=await xN();const{myCart:y}=w==null?void 0:w.data;if((j=y==null?void 0:y.products)!=null&&j.length){n(Fh(y));let k=(I=y==null?void 0:y.products)==null?void 0:I.map(S=>S==null?void 0:S._id);m(k)}}catch(w){i(w)}},[]);return We(()=>{N(),_(),x(),aN()},[N,_,n]),e.jsx(e.Fragment,{children:e.jsx("main",{children:e.jsxs("section",{children:[e.jsx("div",{className:"setnav__container2",children:e.jsxs("div",{className:"gap-3 display-flex-aic-jcsb",style:{width:"100%"},children:[e.jsxs("div",{className:"ambo__tabs",children:[e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${f==="sub"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>v("sub"),children:"Subscription"}),e.jsx("button",{className:`ambo__tabs-button ${f==="currentpla"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>v("currentpla"),children:"Your Current Plan"})]}),e.jsx("div",{className:"mycart-container",children:e.jsxs(is,{to:"/cart",style:{position:"relative"},children:[e.jsx(Yc,{sx:{height:"35px",width:"35px",padding:"5px"},className:"setnav__cart"}),e.jsx("span",{className:"badge",children:(d==null?void 0:d.length)>0&&(d==null?void 0:d.length)})]})})]})}),e.jsxs("div",{className:"mb-3 set__sub--individuals",children:[f==="currentpla"&&e.jsx(e.Fragment,{children:e.jsx(gN,{currentPlan:o,freeBie:p})}),f==="sub"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"set2__parent",children:e.jsx(pN,{subscriptions:c,btnLoad:u,setBtnload:m})}),e.jsx("span",{className:"set_sub",children:" Monthly Free Tier Offer"})," ",e.jsxs("div",{className:"set__card",children:[e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsx("div",{className:"set__container--item11",children:"Create Job"}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsxs("span",{className:"set__container--item12",children:["1 Nos ",e.jsx("span",{className:"set__permonth2",children:"per Month"})]})]})]}),e.jsx("br",{}),e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsxs("div",{className:"set__container--item11",children:["Job Post(s) targeting Students, Colleges or Training Institutes ",e.jsx("br",{}),"without including any other account type."]}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsx("span",{className:"set__container--item12",children:"Completely Free"})]})]}),e.jsx("br",{}),l=="Individuals"||e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsx("div",{className:"set__container--item11",children:"Apply Job"}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsx("span",{className:"set__container--item12",children:"Completely Free"})]})]}),e.jsx("br",{})]}),l=="Individuals"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsx("div",{className:"set__container--item11",children:"Job apply on behalf of Colleges or Training Institutes"}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsxs("span",{className:"set__container--item12",children:["15 Nos ",e.jsx("span",{className:"set__permonth2",children:"per Month"})]})]})]}),e.jsx("br",{})]}),e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsx("div",{className:"set__container--item11",children:"Create Project "}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsxs("span",{className:"set__container--item12",children:["2 Nos ",e.jsx("span",{className:"set__permonth2",children:"per Month"})]})]})]}),e.jsx("br",{}),e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsx("div",{className:"set__container--item11",children:"Apply Project "}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsxs("span",{className:"set__container--item12",children:["5 Nos ",e.jsx("span",{className:"set__permonth2",children:"per Month"})]})]})]}),e.jsx("br",{}),e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsx("div",{className:"set__container--item11",children:"Create Staff Augmentation"}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsxs("span",{className:"set__container--item12",children:["2 Nos ",e.jsx("span",{className:"set__permonth2",children:"per Month"})]})]})]}),e.jsx("br",{}),e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsx("div",{className:"set__container--item11",children:"Apply Staff Augmentation"}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsxs("span",{className:"set__container--item12",children:["5 Nos ",e.jsx("span",{className:"set__permonth2",children:"per Month"})]})]})]}),e.jsx("br",{}),e.jsxs("div",{className:"set__container--item1__parent",children:[e.jsxs("div",{className:"set__container--item11",children:["Creating & Applying Fundraising & Investing Posts"," "]}),e.jsxs("div",{className:"set__container--item11",children:[e.jsx("img",{src:kt,className:"doneIco"}),e.jsx("span",{className:"set__container--item12",children:"Completely Free"})]})]}),e.jsx("br",{})]})]})]})]})})})};function yN(){var E,C,T;const s=ge();G(A=>A.auth);const{successToast:t,warningToast:a,errorToast:i,errorHandle:n}=he(),{gotoSettings:r,gotoSignIn:l,gotoLandingPage:c}=Be(),[o,p]=b.useState(!1),[h,d]=b.useState(!1),[u,m]=b.useState({open:!1,arg1:null,arg2:null}),{register:f,getValues:v,handleSubmit:N,formState:{errors:_},watch:x,setError:j,clearErrors:I}=Qe(),w=x("newPassword",""),y=x("confirmPassword","");
36We(()=>{if(w.trim()&&y.trim()&&w.trim()!=y.trim()){j("confirmPassword",{type:"manual",message:"New and confirm passwords do not match"});return}w.trim()&&y.trim()&&w.trim()==y.trim()&&I("confirmPassword")},[w,y,_]);const k=A=>{if(A.newPassword!==A.confirmPassword){j("confirmPassword",{type:"manual",message:"New and confirm passwords do not match"});return}else I("confirmPassword"),m(R=>({...R,open:!0,arg1:A.oldPassword,arg2:A.confirmPassword}))},S=async(A,R)=>{var M;const O=await q3({oldPassword:A,confirmPassword:R});O&&((M=O==null?void 0:O.data)!=null&&M.changed)?(m(F=>({...F,open:!1,arg1:null,arg2:null})),t("Password changed successfully"),await Wn()&&!window.localStorage.getItem("token")&&(s(ba()),c())):(m(L=>({...L,open:!1,arg1:null,arg2:null})),a(O.message))},g=()=>{const{oldPassword:A}=v();if(!(A!=null&&A.trim()))return"Old Password is required"};return e.jsxs(e.Fragment,{children:[e.jsx("main",{children:e.jsx("section",{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-12 col-sm-12 col-md-10 offset-lg-0 col-lg-10",children:e.jsxs("div",{className:"mb-3 security_admin__bgc",children:[e.jsx("div",{className:"d-flex align-items-center security--text",children:e.jsx("h1",{className:"settings_sub_heading-desktop",children:"Change Password"})}),e.jsx("br",{}),e.jsxs("div",{className:"form-container",children:[e.jsxs("p",{className:"security-password-header",children:["Password must be at least 8 characters. It must contain at least one Special character, at least one Uppercase and at least one number."," "]}),e.jsxs("form",{autoComplete:"off",onSubmit:N(k),children:[e.jsxs("div",{className:"fdc security-input-container",children:[e.jsx("label",{className:"security-label",children:"Enter your Current password"}),e.jsx("input",{name:"oldPassword",className:"security-input",type:"password",...f("oldPassword",{required:{value:!0,message:"Current Password is required"},validate:g})}),(_==null?void 0:_.oldPassword)&&e.jsx(Me,{errMsg:(E=_==null?void 0:_.oldPassword)==null?void 0:E.message})]}),e.jsx("label",{className:"security-label",children:"Enter New Password"}),e.jsx("div",{className:"fdc security-input-container",children:e.jsxs("div",{className:"position-relative firstInt",children:[e.jsx("input",{name:"newPassword",className:`security-input w-100 ${_.newPassword?"is-invalid":""}`,type:o?"text":"password",...f("newPassword",{required:{value:!0,message:"New Password is required"},pattern:{value:/^(?=.*[a-z])(?=.*[A-Z( +\w+)])(?=.*\d)(?=.*[#$^+=!*()@%&]).{8,20}$/g,message:"Use 8 or more characters with a mix of letters, numbers, space & symbols."}})}),e.jsx("div",{onClick:()=>p(A=>!A),style:{position:"absolute",right:"15px",top:"12px"},children:o?e.jsx("i",{className:"fa-regular fa-eye",style:{color:"#a7aaab"}}):e.jsx("i",{className:"fa-regular fa-eye-slash",style:{color:"#a7aaab"}})}),(_==null?void 0:_.newPassword)&&e.jsx(Me,{errMsg:(C=_==null?void 0:_.newPassword)==null?void 0:C.message})]})}),e.jsx("label",{className:"security-label",children:"Re-enter New Password"}),e.jsx("div",{className:"fdc security-input-container",children:e.jsxs("div",{className:"position-relative firstInt",children:[e.jsx("input",{name:"confirmPassword",className:`security-input w-100 ${_.confirmPassword?"is-invalid":""}`,type:h?"text":"password",...f("confirmPassword",{required:{value:!0,message:"Password confirmation is required"}})}),e.jsx("div",{onClick:()=>d(A=>!A),style:{position:"absolute",right:"15px",top:"12px"},children:h?e.jsx("i",{className:"fa-regular fa-eye",style:{color:"#a7aaab"}}):e.jsx("i",{className:"fa-regular fa-eye-slash",style:{color:"#a7aaab"}})}),((_==null?void 0:_.confirmPassword)||w!=y)&&e.jsx(Me,{errMsg:(T=_==null?void 0:_.confirmPassword)==null?void 0:T.message})]})}),e.jsx("button",{className:"security-save-btn security-save-button",type:"submit",children:"Save"})]})]})]})})})})}),e.jsx(As,{confirm:u.open,setConfirm:m,action:"change password",performer:S,arg1:u==null?void 0:u.arg1,arg2:u==null?void 0:u.arg2})]})}function bN(){const s=ge(),{userDetails:{blockedIds:t}}=G(p=>p.auth),{successToast:a,errorToast:i,errorHandle:n}=he(),[r,l]=b.useState({open:!1,itemId:null}),c=b.useCallback(async()=>{try{let p=await W3();s(za(p==null?void 0:p.data))}catch(p){n(p)}},[s]);We(()=>{c()},[c]);const o=async p=>{const h=await $3(Ee(p));s(za(h==null?void 0:h.data)),l(d=>({...d,open:!1,itemId:null})),a("Unblocked successfully")};return e.jsxs(e.Fragment,{children:[e.jsx("main",{children:e.jsx("section",{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-12 col-sm-12 col-md-10 offset-lg-0 col-lg-10",children:e.jsxs("div",{className:"mb-3 blocking_admin__bgc",children:[e.jsx("div",{className:"mx-2 d-flex align-items-center",children:e.jsx("div",{children:e.jsx("p",{className:"settings_sub_heading-desktop",children:" Blocked Connections"})})}),e.jsx("div",{className:"blocking_list_container",children:e.jsxs("div",{className:"blocklist",children:[(t==null?void 0:t.length)>
360?e.jsx("div",{className:"settings_sub_title",children:e.jsx("h4",{children:"Your blocked list"})}):e.jsx("div",{className:"settings_sub_title",children:e.jsx("p",{children:"Users you have blocked will appear here."})}),e.jsx("div",{children:e.jsx("ul",{className:"blocklist_group",children:(t==null?void 0:t.length)>0&&(t==null?void 0:t.map(p=>e.jsxs("li",{className:"blocklist_group_item d-flex justify-content-between align-items-center",children:[e.jsxs("div",{className:"blocked-container",children:[e.jsx("img",{src:p==null?void 0:p.avatar,style:{width:26,height:26,marginRight:"10px",borderRadius:"50%",border:"1px solid #384144"}}),p.accountType==="Individuals"?e.jsx(e.Fragment,{children:de(`${p.firstName} ${p.lastName}`)}):e.jsx(e.Fragment,{children:de(`${p.firstName}`)})]}),e.jsxs("div",{className:"display-flex-aljc-center unblock-container",onClick:()=>l(h=>({...h,open:!0,itemId:p._id})),children:[e.jsx("button",{className:"blocklist-unblockbtn",children:"Unblock"}),e.jsx("i",{className:"fa-solid fa-lock-open"})]})]})))})})]})})]})})})})}),e.jsx(As,{confirm:r.open,setConfirm:l,action:"unblock",performer:o,itemId:r.itemId})]})}const vN=async()=>z.get(Fy).then(s=>s.data).catch(s=>{throw s}),ip="/assets/No%20purchase%20history-zrrWqXko.svg",_N=b.lazy(()=>Ve(()=>import("./Invoice-BD9JJKlq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),NN=gs(s=>e.jsx(Ha,{disableGutters:!0,elevation:0,square:!0,...s}))(({theme:s})=>({border:`1px solid ${s.palette.divider}`,"&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"},background:"var(--card-surface-primary)",borderRadius:"20px"}));function wN(){const[s,t]=b.useState([]),{errorToast:a,successToast:i,warningToast:n,errorHandle:r}=he(),l=b.useCallback(async()=>{try{const c=await vN(),{purchaseHistory:o}=c==null?void 0:c.data;t(o)}catch(c){r(c)}},[]);return We(()=>{l()},[l]),e.jsx(e.Fragment,{children:e.jsx("section",{children:e.jsx("div",{className:"row",children:e.jsxs("div",{className:"mb-3 admin__bgc",children:[e.jsx("div",{className:"mx-2 d-flex align-items-center",children:e.jsx("div",{children:e.jsx("p",{className:"settings_sub_heading-desktop",children:" Purchase History"})})}),(s==null?void 0:s.length)===0&&e.jsxs("div",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:[e.jsx("img",{src:ip,alt:"no purchase"}),e.jsx("p",{className:"mx-2",style:{color:"#d6dcdd"},children:"No purchases found!"})]}),s==null?void 0:s.map((c,o)=>{var p;return e.jsx(e.Fragment,{children:e.jsxs(NN,{className:"mx-2 my-2",children:[e.jsx(At,{expandIcon:e.jsx(qa,{className:"admin__Dropdown",sx:{pointerEvents:"auto"}}),"aria-controls":"panel1a-content",id:"panel1a-header",children:e.jsx("div",{className:"admin__c",children:e.jsxs("div",{className:"fdc admin__names",children:[e.jsxs("p",{className:"admin__name",children:[e.jsx("span",{style:{color:"var()"}}),ks(c.createdAt),e.jsx("span",{style:{color:c.paymentStatus==="Success"?"#22C55E":["Refunded","PartialRefund"].includes(c.paymentStatus)?"#F59E0B":"#F87171"},children:` (${c.paymentStatus})`})]}),e.jsxs("p",{className:"admin__role",children:["Order value: ",(c.totalAmount+c.totalGst).toFixed(2)]})]})})}),e.jsxs(Nn,{children:[e.jsx("div",{className:"admin__table",id:`tablePart_${o}`,children:e.jsx("div",{className:"admin__responsive",children:e.jsxs("table",{className:"table-line",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"admin__f",children:"S. No"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Product"}),e.jsx("th",{scope:"col",className:"admin__f",children:"HSN/SAC"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Qty"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Rate"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Taxes(18%)"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Sub Total"})]})}),e.jsx("tbody",{children:(p=c.products)==null?void 0:p.map((h,d)=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"history-items",children:d+1})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:h.name})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:jo})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:h.quantity})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:h.price})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:(h.productGst||0).toFixed(2)})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:(h.price*(h.quantity/(h.units||1))+h.productGst).toFixed(2)})})]},d))})]})})}),e.jsx("div",{className:"button__container",children:e.jsx(_e.Suspense,{fallback:e.jsx(os,{}),children:e.jsx(_N,{invoice:c})})})]})]},o)})})]})})})})}const op=async()=>z.get(Jy).then(s=>s.data).catch(s=>{throw s}),rp=async s=>z.post(Yy,{reciverId:s}).then(t=>t.data).catch(t=>{throw t}),Bo=async s=>z.post(Qy,{senderId:s}).then(t=>t.data).catch(t=>{throw t}),lp=async s=>z.post(Xy,{senderId:s}).then(t=>t.data).catch(t=>{throw t}),cp=async s=>z.post(Ky,{senderId:s}).then(t=>t.data).catch(t=>{throw t}),Qn=async s=>z.post(Zy,{reciverId:s}).then(t=>t.data).catch(t=>{throw t});function SN({index:s,follows:t,notificId:a,setNotificId:i,loadUser:n,btnLoad:r,setBtnLoad:l}){const{successToast:c,errorToast:o,errorHandle:p}=he(),[h,d]=b.useState({open:!1,itemId:null}),{user:u,userDetails:{friends:m}}=G(g=>g.auth),{userProfile:f}=G(g=>g.profile),{gotoProfile:v}=Be(),N=ge();let _=u,x=m&&(m==null?void 0:m.filter(g=>t==null?void 0:t.friends.includes(g._id)));const j=Pt((g,E)=>I(g,E)),I=async(g,E)=>{var C,T,A,R;try{let P=await rp(g);const{notificationStatus:O,receiverData:M,myData:L}=P==null?void 0:P.data;if(i(O==null?void 0:O._id),O){let F=r;F.rs[E]=!0,l(F),N(Ls(g,"PendingAdd")),g==((C=f==null?void 0:f.user)==null?void 0:C._id)&&N(ys(_,"IncomingAdd")),u==((T=f==null?void 0:f.user)==null?void 0:T._id)&&N(ys(g,"PendingAdd")),c(Wu)}else c($u),N(Ls(M,"friendAdd")),g==((A=f==null?void 0:f.user)==null?void 0:A._id)&&N(ys(L,"friendAdd")),_==((R=f==null?void 0:f.user)==null?void 0:R._id)&&N(ys(M,"friendAdd")),n()}catch(P){p(P)}},w=async g=>{var C,T,A;let E=await Bo(g);if(E&&(E==null?void 0:E.statusCode)===Ke){i("");let R=r;R.rs[s]=!1,l(R),N(Ls(g,"PendingRemove")),d(P=>({...P,open:!1,itemId:null})),(C=f==null?void 0:f.user)!=null&&C._id&&(g===((T=f==null?void 0:f.user)==null?void 0:T._id)&&N(ys(_,"IncomingRemove")),u===((A=f==null?void 0:f.user)==null?void 0:A._id)&&N(ys(g,"PendingRemove")))}},y=async g=>{var E,C,T,A;try{let R=await Qn(g);R&&(R==null?void 0:R.statusCode)===Ke&&(N(Qa(g,(E=R==null?void 0:R.data)==null?void 0:E.unseenNotifications)),(C=f==null?void 0:f.user)!=null&&C._id&&(g===((T=f==null?void 0:f.user)==null?void 0:T._id)&&N(removeFrndProfileList(u)),u===((A=f==null?void 0:f.user)==null?void 0:A._id)&&N(removeFrndProfileList(g))))}catch(R){p(R)}};let k=(t==null?void 0:t.accountType)!=="Individuals"?t==null?void 0:t.firstName:(t==null?void 0:t.firstName)+" "+(t==null?void 0:t.lastName),S=(k==null?void 0:k.length)>12?k:"";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"ffcards__cards followcard_padding",children:[e.jsxs("div",{className:"ffcards__top-container",children:[e.jsx("div",{className:"flex-shrink-1 followcards__profilePic",children:e.jsx(ss,{src:t!=null&&t.avatar?t==null?void 0:t.avatar:Ks(t==null?void 0:t.subType),alt:k,className:"img-fluid rounded-circle imgBorder",style:{maxWidth:"50px",width:"50px",height:"50px"}})}),e.jsxs("div",{className:"ffcards__name-container",children:[e.jsx(ot,{title:S,children:e.jsx("p",{className:"ffcards__name cp",onClick:()=>
36v(t==null?void 0:t.tickbigLink),children:de(k)})}),e.jsx("p",{className:"ffcards__role",children:t.subType})]})]}),e.jsxs("div",{className:"display-flex-aic-jcsb ffcards__bottom-container",children:[e.jsx("div",{className:"ffcards__top-container gap_10",children:r!=null&&r.rs[s]&&!fl.includes(t.subType)?e.jsx("button",{className:"ffcards__btn",onClick:()=>d(g=>({...g,open:!0,itemId:t._id})),children:"Following"}):r!=null&&r.rs[s]&&fl.includes(t.subType)?e.jsx("button",{className:"ffcards__btn",onClick:()=>y(t==null?void 0:t._id),children:"Request Accepted"}):e.jsx("button",{className:"ffcards__btn",onClick:()=>j(t._id,s),disabled:!!(r&&r[s]),children:"Follow"})}),(x==null?void 0:x.length)>0&&e.jsx("div",{className:"followcards__mutual",children:e.jsxs("p",{children:[x==null?void 0:x.length," Mutual"]})})]})]}),e.jsx(As,{confirm:h.open,setConfirm:d,action:"Unfollow",performer:w,itemId:t._id})]})}const Xn=we(w0)(({})=>({"& .MuiInputBase-input":{borderRadius:"20px",position:"relative",backgroundColor:"none",color:"#a7aaab",border:"1px solid #707172",fontSize:14,padding:"7px 16px 8px 12px","&:focus":{borderRadius:"20px",borderColor:"#5a6466"}},"& .MuiPaper-root":{borderRadius:6,minWidth:150,backgroundColor:"#252b2d",color:"#d6dcdd",boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiSelect-icon":{color:"#d6dcdd"},"& .MuiMenuItem-root":{"&:active":{backgroundColor:"#252b2d",color:"#d6dcdd"}}}}));function kN({userReview:s,headFilter:t,setHeadFilter:a}){var _,x;const i=G(j=>j.auth),{control:n,setValue:r,clearErrors:l}=Qe(),{gotoSignIn:c,gotoFullJob:o,gotoFullProject:p,gotoSingleFundraising:h,gotoSingleInvesting:d}=Be(),[u,m]=b.useState(null),f=j=>{a(j.target.value),r(j.target.value)};We(()=>{let j;typeof t=="string"&&(j=t.toLowerCase()),v(j)},[t]);const v=async j=>{var I;if(j==="all"&&t==="all")m(s==null?void 0:s.reviews);else{const w=await((I=s==null?void 0:s.reviews)==null?void 0:I.filter(y=>y.module===j));m(w)}},N=j=>{const I=j.module,w=j.entityId;if(!(i!=null&&i.isAuthenticated))c();else{I==="jobs"&&o(w),I==="projects"&&p(w),I==="fundraising"&&h(w),I==="investing"&&d(w);return}};return e.jsx(e.Fragment,{children:e.jsx("main",{className:"reviewCard-main-container",children:e.jsxs("div",{className:"reviewCard__comments-box custom__Scroll-review",children:[((_=s==null?void 0:s.reviews)==null?void 0:_.length)>0&&(i==null?void 0:i.user)&&e.jsx("div",{className:"d-flex",children:e.jsx(Mn,{sx:{m:1,minWidth:200},children:e.jsx(Ya,{labelId:"demo-customized-select-label",id:"demo-customized-select",value:t,onChange:f,input:e.jsx(Xn,{}),IconComponent:Xi,sx:{"& .MuiSelect-icon":{color:"rgb(167, 170, 171)"}},MenuProps:{PaperProps:{sx:{backgroundColor:"var(--card-surface-secondary)",color:"var(--text-color-primary)","& .MuiMenuItem-root":{backgroundColor:"var(--card-surface-secondary)",color:"var(--text-color-primary)","&:hover":{backgroundColor:"var(--card-surface-2)"},"&.Mui-selected":{backgroundColor:"var(--card-surface-2)","&:hover":{backgroundColor:"var(--card-surface-2)"}}}}}},children:ra==null?void 0:ra.map(j=>e.jsx(Ns,{value:j.value,children:j.label}))})})}),t!=="all"?u==null?void 0:u.map((j,I)=>{var w,y,k,S,g,E,C;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"reviewCard__card",children:[e.jsx("div",{className:"reviewCard__card-header",children:e.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx(ss,{src:(w=j==null?void 0:j.userId)==null?void 0:w.avatar,alt:(y=j==null?void 0:j.userId)==null?void 0:y.firstName,className:"rounded-circle",height:50,width:50})}),e.jsxs("div",{className:"flex-grow-1 ms-3",children:[e.jsx("div",{className:"d-flex flex-row align-items-center mb-2",children:e.jsx("span",{style:{color:"var(--text-color-primary)"},className:"mb-0 me-2",children:de((k=j==null?void 0:j.userId)==null?void 0:k.firstName)})}),e.jsxs("div",{className:"reviewCard__star-rating",children:[e.jsx(ua,{data:j==null?void 0:j.ratings,size:"small"}),j.module==="jobs"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>
36N(j),children:["Reviewed on ",(S=j==null?void 0:j.entityId)==null?void 0:S.designation," Job"]}):j.module==="projects"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>N(j),children:["Reviewed on ",(g=j==null?void 0:j.entityId)==null?void 0:g.designation," Project"]}):j.module==="fundraising"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>N(j),children:["Reviewed on ",(E=j==null?void 0:j.entityId)==null?void 0:E.designation,"Fundraising"]}):j.module==="investing"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>N(j),children:["Reviewed on ",(C=j==null?void 0:j.entityId)==null?void 0:C.designation," Investing"]}):j.module==="general"?e.jsx("h6",{className:"reviewCard__rating-suggest",children:"Reviewed on your Profile"}):""]})]})]})}),e.jsx("div",{className:"reviewCard__card-body",children:e.jsxs("div",{className:"reviewCard__blockquote mb-0",children:[e.jsx("p",{className:"reviewCard__blockquote-top",children:ks(j==null?void 0:j.createdAt)}),e.jsx("p",{className:"reviewCard__blockquote-content",children:j==null?void 0:j.comment})]})})]},I)})}):(x=s==null?void 0:s.reviews)==null?void 0:x.map((j,I)=>{var w,y,k,S,g,E;return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"reviewCard__card",children:[e.jsx("div",{className:"reviewCard__card-header",children:e.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("img",{src:(w=j==null?void 0:j.userId)==null?void 0:w.avatar,className:"rounded-circle",height:50,width:50})}),e.jsxs("div",{className:"flex-grow-1 ms-3",children:[e.jsx("div",{className:"d-flex flex-row align-items-center mb-2",children:e.jsx("span",{style:{color:"var(--text-color-primary)"},className:"mb-0 me-2",children:de((y=j==null?void 0:j.userId)==null?void 0:y.firstName)})}),e.jsxs("div",{className:"reviewCard__star-rating",children:[e.jsx(ua,{data:j==null?void 0:j.ratings,size:"small"}),j.module==="jobs"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>N(j),children:["Reviewed on ",(k=j==null?void 0:j.entityId)==null?void 0:k.designation," Job"]}):j.module==="projects"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>N(j),children:["Reviewed on ",(S=j==null?void 0:j.entityId)==null?void 0:S.designation," Project"]}):j.module==="fundraising"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>N(j),children:["Reviewed on ",(g=j==null?void 0:j.entityId)==null?void 0:g.designation," Fundraising"]}):j.module==="investing"?e.jsxs("h6",{className:"reviewCard__rating-suggest cp",onClick:()=>N(j),children:["Reviewed on ",(E=j==null?void 0:j.entityId)==null?void 0:E.designation," Investing"]}):j.module==="general"?e.jsx("h6",{className:"reviewCard__rating-suggest",children:"Reviewed on your Profile"}):""]})]})]})}),e.jsx("div",{className:"reviewCard__card-body",children:e.jsxs("div",{className:"reviewCard__blockquote mb-0",children:[e.jsx("p",{className:"reviewCard__blockquote-top",children:ks(j==null?void 0:j.createdAt)}),e.jsx("p",{className:"reviewCard__blockquote-content",children:j==null?void 0:j.comment})]})})]},I)})})]})})})}function CN({tabState:s,setTabState:t}){G(n=>n.auth);const a=n=>{t({value:n})},i=n=>{t({value:n.target.value})};return e.jsx(e.Fragment,{children:e.jsx("section",{className:"notificationNavbar",children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-12",children:e.jsxs("div",{className:"notificationNavbar__article-1",children:[e.jsx("div",{className:"notificationNavbar__article-1-content",children:e.jsx(_a,{})}),e.jsxs("div",{className:"display-flex-aljc-center",children:[e.jsx("div",{className:"d-block d-md-none",children:e.jsx(Mn,{sx:{m:1,minWidth:120},children:e.jsx(Ya,{labelId:"demo-customized-select-label",id:"demo-customized-select",value:s==null?void 0:s.value,IconComponent:S0,onChange:i,input:e.jsx(Xn,{}),sx:{"& .MuiSelect-icon":{color:"rgb(167, 170, 171)"}},children:gi==null?void 0:gi.map(n=>e.jsx(Ns,{value:n.value,children:n.label}))})})}),e.jsxs("div",{className:"profile__reviews-filter d-none d-md-block",children:[e.jsx("button",{onClick:()=>a("Suggestion"),className:(s==null?void 0:s.value)==="Suggestion"?"profile__reviews-filter-listActive profile__reviews-filter-list":void 0,children:"Suggestions"}),e.jsx("button",{onClick:()=>a("My_Connections"),className:(s==null?void 0:s.value)==="My_Connections"?"profile__reviews-filter-listActive profile__reviews-filter-list":void 0,children:"My Connections"}),e.jsx("button",{onClick:()=>a("Followings"),className:(s==null?void 0:s.value)==="Followings"?"profile__reviews-filter-listActive profile__reviews-filter-list":void 0,children:"Followings"})]})]})]})})})})})}we(Ws)(()=>({textTransform:"none",borderRadius:"9999px",fontSize:"0.75rem",padding:"0.5rem 0.8rem",height:"1.6rem",border:"1px solid #a7aaab",color:"#d6dcdd",backgroundColor:"#252b2d","&:hover":{backgroundColor:"#252b2d"}}));function TN({follows:s,handleAcceptFollow:t,handleRejectFollow:a}){const{gotoProfile:i}=Be();let n=(s==null?void 0:s.firstName)+" "+(s==null?void 0:s.lastName),r=(n==null?void 0:n.length)>12?n:"";return e.jsxs("div",{className:"ffcards__cards followcard_padding",children:[e.jsxs("div",{className:"ffcards__top-container",children:[e.jsx("div",{className:"flex-shrink-1 followcards__profilePic",children:e.jsx(ss,{src:s!=null&&s.avatar?s==null?void 0:s.avatar:Ks(s==null?void 0:s.subType),alt:n,className:"img-fluid rounded-circle imgBorder",style:{maxWidth:"50px",width:"50px",height:"50px"}})}),e.jsxs("div",{className:"ffcards__name-container",children:[e.jsx(ot,{title:r,children:e.jsx("p",{className:"ffcards__name cp",onClick:()=>i(s==null?void 0:s.tickbigLink),children:de(n)})}),e.jsx("p",{className:"ffcards__role",children:s==null?void 0:s.subType})]})]}),e.jsx("div",{className:"display-flex-aic-jcsb ffcards__bottom-container",children:e.jsxs("div",{className:"ffcards__top-container gap_10 followcards--button",children:[e.jsx("div",{children:e.jsx(bs,{name:"Accept",cssStyle:"ffcards__btn",onClickFn:t,arg:s==null?void 0:s._id})}),e.jsx("div",{children:e.jsx(bs,{name:"Cancel",cssStyle:"ffcards__cancel-btn",onClickFn:a,arg:s==null?void 0:s._id})})]})})]})}const IN=({follower:s})=>{const{user:t,userProfile:a}=G(m=>m.auth),{errorHandle:i}=he(),n=ge(),{gotoProfile:r,gotoConversation:l}=Be(),[c,o]=b.useState({open:!1,itemId:null}),p=async m=>{try{let v=await Hs({body:{userIds:[m,t],convoType:"SINGLE",convoStatus:"accepted"}}),{conversationData:N,conversations:_}=v==null?void 0:v.data,x=N||_[0];N&&n(qt(x));let j=await Gs({conversationId:Ee(x==null?void 0:x._id)});const{messages:I,totalPages:w,currentPage:y,unseenNotifications:k}=j==null?void 0:j.data;n(Us(I,y,w,x==null?void 0:x._id)),n(Ss(k)),l(x==null?void 0:x._id)}catch(f){i(f)}},h=async m=>{var f,v,N;try{let _=await Qn(m);_&&(_==null?void 0:_.statusCode)===Ke&&(n(Qa(m,(f=_==null?void 0:_.data)==null?void 0:f.unseenNotifications)),o(x=>({...x,open:!1,itemId:null})),m===((v=a==null?void 0:a.user)==null?void 0:v._id)&&n(ha(t)),t===((N=a==null?void 0:a.user)==null?void 0:N._id)&&n(ha(m)))}catch(_){i(_)}};let d=(s==null?void 0:s.accountType)!=="Individuals"?s==null?void 0:s.firstName:(s==null?void 0:s.firstName)+" "+(s==null?void 0:s.lastName),u=(d==null?void 0:d.length)>12?d:"";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"ffcards__cards followcard_padding",children:[e.jsxs("div",{className:"ffcards__top-container",children:[e.jsx("div",{className:"flex-shrink-1 followerscards__profilePic",children:e.jsx(ss,{src:s.avatar?s==null?void 0:s.avatar:Ks(s==null?void 0:s.subType),alt:d,className:"img-fluid rounded-circle imgBorder",style:{maxWidth:"50px",width:"50px",height:"50px"}})}),e.jsxs("div",{className:"ffcards__name-container",children:[e.jsx(ot,{title:u,children:e.jsx("p",{className:"ffcards__name cp",onClick:()=>r(s==null?void 0:s.tickbigLink),children:de(d)})}),e.jsx("p",{className:"ffcards__role",children:s.subType})]})]}),e.jsx("div",{className:"display-flex-aic-jcsb ffcards__bottom-container",children:e.jsxs("div",{className:"ffcards__top-container gap_10 followcards--button",children:[e.jsx(bs,{cssStyle:"ffcards__btn",onClickFn:p,arg:s==null?void 0:s._id,name:"Message"}),e.jsx("div",{children:e.jsx(bs,{name:"Unfollow",onClickFn:()=>o(m=>({...m,open:!0,itemId:s==null?void 0:s._id})),cssStyle:"ffcards__cancel-btn"})})]})})]}),e.jsx(As,{confirm:c.open,setConfirm:o,action:"unfollow",performer:h,itemId:s._id})]})},Fl="/assets/No%20followers-B-ywn9-Q.svg",AN=({follower:s,loadUserData:t})=>{const{user:a,userProfile:i}=G(m=>m.auth),{errorHandle:n}=he(),r=ge(),{gotoProfile:l}=Be(),[c,o]=b.useState({open:!1,itemId:null}),p=async m=>{var f,v,N;try{let _=await Qn(m);_&&(_==null?void 0:_.statusCode)===Ke&&(r(Qa(m,(f=_==null?void 0:_.data)==null?void 0:f.unseenNotifications)),o(x=>({...x,open:!1,itemId:null})),m===((v=i==null?void 0:i.user)==null?void 0:v._id)&&r(ha(a)),a===((N=i==null?void 0:i.user)==null?void 0:N._id)&&r(ha(m)),t())}catch(_){n(_)}},h=async m=>{var f,v,N;await Bo(m),r(Ls(m,"PendingRemove")),o(_=>({..._,open:!1,itemId:null})),t(),(f=i==null?void 0:i.user)!=null&&f._id&&(m===((v=i==null?void 0:i.user)==null?void 0:v._id)&&r(ys(loggedInuser,"IncomingRemove")),a===((N=i==null?void 0:i.user)==null?void 0:N._id)&&r(ys(m,"PendingRemove")))};let d=(s==null?void 0:s.accountType)!=="Individuals"?s==null?void 0:s.firstName:(s==null?void 0:s.firstName)+" "+(s==null?void 0:s.lastName),u=(d==null?void 0:d.length)>12?d:"";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"ffcards__cards followcard_padding",children:[e.jsxs("div",{className:"ffcards__top-container",children:[e.jsx("div",{className:"flex-shrink-1 followerscards__profilePic",children:e.jsx(ss,{src:s.avatar?s==null?void 0:s.avatar:Ks(s==null?void 0:s.subType),alt:d,className:"img-fluid rounded-circle imgBorder",style:{maxWidth:"50px",width:"50px",height:"50px"}})}),e.jsxs("div",{className:"ffcards__name-container",children:[e.jsx(ot,{title:u,children:e.jsx("p",{className:"ffcards__name cp",onClick:()=>l(s==null?void 0:s.tickbigLink),children:de(d)})}),e.jsx("p",{className:"ffcards__role",children:s.subType})]})]}),e.jsx("div",{className:"display-flex-aic-jcsb ffcards__bottom-container",children:e.jsx("div",{className:"ffcards__top-container gap_10 followcards--button",children:e.jsx(bs,{name:"Following",onClickFn:()=>o(m=>({...m,open:!0,itemId:s==null?void 0:s._id})),cssStyle:"ffcards__cancel-btn"})})})]}),e.jsx(As,{confirm:c.open,setConfirm:o,action:"unfollow",performer:["Brands","Institutes"].includes(s.accountType)?p:h,itemId:s._id})]})};function EN(){const s=ge(),{errorToast:t,errorHandle:a}=he(),{user:i,userDetails:{friends:n}}=G(y=>y.auth),{followUser:r,followingUser:l}=G(y=>y.follow),{userProfile:c}=G(y=>y.profile),[o,p]=b.useState([]),[h,d]=b.useState(""),[u,m]=b.useState(null),[f,v]=b.useState({value:"Suggestion"}),N=b.useCallback(async()=>{try{let y=await op();const{followUser:k,incomings:S,pendings:g,unseenNotifications:E,friends:C}=y==null?void 0:y.data;let T={btn:[],rs:[]};k==null||k.map(P=>{["Professional","Student","Freelancer"].includes(P==null?void 0:P.subType)?T.btn.push(null):T.btn.push(!1),[...P==null?void 0:P.incomingRequests,...P==null?void 0:P.pendingRequest].includes(i)?T.rs.push(!0):T.rs.push(!1)}),m(T),s(p2(k)),p(S),s(wu(C)),s(Oh(g)),s(Ss(E));let A=(S==null?void 0:S.length)>0?S==null?void 0:S.map(P=>P._id):[],R=(g==null?void 0:g.length)>0?g==null?void 0:g.map(P=>P._id):[];s(Su(A,R))}catch(y){a(y)}},[s,f]),_=n==null?void 0:n.filter(y=>y.accountType==="Individuals"),x=n==null?void 0:n.filter(y=>y.accountType!=="Individuals"),j=async y=>{var k,S,g,E,C,T;try{let A;if(A=await cp(y),A!=null&&A.data){const R=o==null?void 0:o.filter(P=>P._id!=y);p(R),s(Ls((k=A==null?void 0:A.data)==null?void 0:k.otherUser,"friendAdd")),(S=c==null?void 0:c.user)!=null&&S._id&&(y===((g=c==null?void 0:c.user)==null?void 0:g._id)&&s(ys((E=A==null?void 0:A.data)==null?void 0:E.myData,"friendAdd")),i===((C=c==null?void 0:c.user)==null?void 0:C._id)&&s(ys((T=A==null?void 0:A.data)==null?void 0:T.otherUser,"friendAdd")))}}catch(A){a(A)}},I=async y=>{var k,S,g,E,C;try{let T;if(T=await lp(y),T&&(T==null?void 0:T.statusCode)===Ke){const A=o==null?void 0:o.filter(R=>R._id!=y);p(A),d(""),s(Ls(y,"IncomingRemove")),(k=c==null?void 0:c.user)!=null&&k._id&&(y===((S=c==null?void 0:c.user)==null?void 0:S._id)&&s(ys(i,"PendingRemove")),i===((g=c==null?void 0:c.user)==null?void 0:g._id)&&s(ys(y,"IncomingRemove"))),(E=T==null?void 0:T.data)!=null&&E.notificId&&s(Bh((C=T==null?void 0:T.data)==null?void 0:C.notificId))}}catch(T){a(T)}};We(()=>{N()},[N,s,m,f]);let w=ev(o);return e.jsxs(e.Fragment,{children:[e.jsx(CN,{tabState:f,setTabState:v}),e.jsx("hr",{style:{border:"1px solid #8c9395",color:"#8c9395",margin:"0"}}),f.value==="Suggestion"&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:"followers-container",children:[o.length>0&&e.jsx("div",{style:{padding:"10px",color:"#a7aaab"},children:e.jsx("h5",{children:"Follow Requests"})}),e.jsx("section",{className:"followerscards",children:w==null?void 0:w.map((y,k)=>e.jsx(TN,{follows:y,handleAcceptFollow:j,handleRejectFollow:I},k))}),e.jsx("div",{style:{padding:"10px",color:"#a7aaab"},children:e.jsx("h5",{children:"We suggest meaningful connections"})}),e.jsx("section",{className:"followerscards",children:(r==null?void 0:r.length)>0&&(r==null?void 0:r.map((y,k)=>e.jsx(SN,{index:k,follows:y,notificId:h,setNotificId:d,loadUser:N,btnLoad:u,setBtnLoad:m},k)))})]})}),f.value==="My_Connections"&&e.jsx(e.Fragment,{children:e.jsx("div",{className:"followers-container",children:(_==null?void 0:_.length)>
360?e.jsx("section",{className:"followerscards",children:_==null?void 0:_.map((y,k)=>e.jsx(IN,{follower:y},k))}):e.jsxs("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:[e.jsx("img",{src:Fl,alt:"no notification"}),e.jsx("p",{className:"no_notify",children:"No followers yet Start connecting to grow your network!"})]})})}),f.value==="Followings"&&e.jsx(e.Fragment,{children:[...l,...x].length>0?e.jsx("div",{className:"followers-container",children:e.jsx("section",{className:"followerscards",children:[...l,...x].map((y,k)=>e.jsx(AN,{index:k,follower:y,notificId:h,setNotificId:d,loadUserData:N},k))})}):e.jsxs("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:[e.jsx("img",{src:Fl,alt:"no notification"}),e.jsx("p",{style:{color:"#d6dcdd",textAlign:"center"},children:"No followers yet Start connecting to grow your network!"})]})})]})}function dp({item:s,index:t,itemType:a}){var l,c,o,p;const{gotoProfile:i}=Be(),n=ge(),r=async h=>{var f;i(h);let d=await So(h),u={profile:(f=d==null?void 0:d.data)==null?void 0:f.profile};const{profile:m}=u;n(Pn(m))};return e.jsx(Ie,{sx:{Width:10},children:e.jsx(Fs,{onClick:()=>r(s==null?void 0:s.tickbigLink),variant:"outlined",className:"cp",sx:{backgroundColor:"var(--card-surface-primary)",border:"1px solid var(--color-grey-700)",borderRadius:"10px",height:"200px","&:hover":{border:"2px solid var(--text-color-muted)"}},children:e.jsx(da,{children:e.jsxs(Tt,{sx:{justifyContent:"center",alignItems:"center"},children:[e.jsx(ss,{className:"img",sx:{width:65,height:65},alt:s==null?void 0:s.firstName,src:s==null?void 0:s.avatar}),e.jsx("div",{style:{marginTop:"10px"},children:e.jsx(ua,{data:(c=(l=s==null?void 0:s.ratings)==null?void 0:l[3])==null?void 0:c.ratings,size:"small"})}),(s==null?void 0:s.accountType)==="Individuals"?e.jsx(Fe,{className:"searchCard_name",children:de((s==null?void 0:s.firstName)+" "+(s==null?void 0:s.lastName))}):e.jsx(Fe,{className:"searchCard_name",children:de(s==null?void 0:s.firstName)}),e.jsx(Fe,{className:"searchCard_name",children:(p=(o=s==null?void 0:s.profile)==null?void 0:o.businesscard)==null?void 0:p.tagLine}),e.jsx(Fe,{className:"searchCard_type",children:de(s==null?void 0:s.subType)})]})})})})}const MN=()=>{var S,g;Be();const s=ge(),[t,a]=b.useState(1),[i,n]=b.useState("profile"),{userDetails:r,permissions:l}=G(E=>E.auth),{errorToast:c,successToast:o,warningToast:p,errorHandle:h}=he(),[d,u]=b.useState(!1),{search:m,pageNo:f,totalPages:v,loading:N,queryData:_}=G(E=>E.search),[x,j]=b.useState(_),[I,w]=b.useState({top:!1,left:!1,bottom:!1,right:!1});b.useCallback((E,C)=>T=>{T&&T.type==="keydown"&&(T.key==="Tab"||T.key==="Shift")||w(A=>({...A,[E]:C}))},[]);const y=async E=>{const{target:{value:C}}=E;j(C),u(!0)},k=Pt(async E=>{var C,T,A,R;if(_||(x==null?void 0:x.length)>=2)try{const P=await Av({query:_||x,action:i,subType:r==null?void 0:r.subType,permissions:l,pageNo:E,limit:10});P!=null&&P.data&&((C=P==null?void 0:P.data)!=null&&C.searchData)&&s(Uh((T=P==null?void 0:P.data)==null?void 0:T.searchData,i,x,(A=P==null?void 0:P.data)==null?void 0:A.currentPage,(R=P==null?void 0:P.data)==null?void 0:R.totalPages))}catch(P){h(P)}},50);return We(async()=>{if(d){const E=setTimeout(()=>{u(!1)},700);return()=>clearTimeout(E)}else s(qh()),k(1)},[_,t,i,x,d,s]),e.jsxs("div",{children:[e.jsx("div",{className:"searchResult-sticky_container",children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:e.jsx(je,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12,children:e.jsx("div",{className:"searchResult-container",children:e.jsx("div",{className:"searchResult-Component__modal-container2",children:e.jsx("div",{className:"searchResult-searchbar",children:e.jsx(eo,{id:"standard-basic",variant:"standard",fullWidth:!0,autoFocus:!0,placeholder:"Search",className:"searchResultInput",onChange:E=>y(E),defaultValue:_,type:"search",sx:{"& .MuiInputBase-input":{color:"#d6dcdd","::placeholder":{color:"#d6dcdd"}},"& .MuiInput-underline:before":{borderBottom:"none"},"& .MuiInput-underline:hover:before":{borderBottom:"none"},"& .MuiInput-underline:focus:before":{borderBottom:"none"},"& .MuiInput-underline:after":{borderBottom:"none"},padding:1}})})})})})})}),e.jsxs("div",{className:"mt-4",children:[e.jsx(Es,{dataLength:f*10,next:()=>{m[i].length!=0&&m[i].length%10==0&&k(f+1)},hasMore:f!==v,loader:N&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:((S=m[i])==null?void 0:S.length)>0&&((g=m[i])==null?void 0:g.map((E,C)=>e.jsx(je,{item:!0,xs:6,sm:6,md:4,lg:3,xl:3,children:e.jsx(dp,{item:E,itemType:i},C)},C)))})}),m[i].length===0&&x.length>3&&e.jsx("p",{className:"no_notify",children:"No Data Found"})]})]})},PN=()=>{const s=ge(),[t,a]=b.useState("profile"),{userDetails:i,permissions:n}=G(I=>I.auth),{errorToast:r,successToast:l,warningToast:c,errorHandle:o}=he(),{loading:p,proSearch:{results:h,accountTypeFilter:d,aboutFilter:u,ready:m,pageNo:f,totalPages:v}}=G(I=>I.search),[N,_]=b.useState({top:!1,left:!1,bottom:!1,right:!1}),x=b.useCallback((I,w)=>y=>
36{y&&y.type==="keydown"&&(y.key==="Tab"||y.key==="Shift")||_(k=>({...k,[I]:w}))},[]),j=Pt(async I=>{var w,y,k,S;try{const g=await Ev({action:t,subType:i==null?void 0:i.subType,permissions:n,pageNo:I,accountType:d,aboutFilter:u,limit:20});g!=null&&g.data&&((w=g==null?void 0:g.data)!=null&&w.userDetails)&&s(xl((y=g==null?void 0:g.data)==null?void 0:y.userDetails,(k=g==null?void 0:g.data)==null?void 0:k.currentPage,(S=g==null?void 0:g.data)==null?void 0:S.totalPages))}catch(g){o(g)}},50);return We(async()=>{d.length==0&&u.length==0&&s(xl([],1,1)),(d.length>0||u.length>0)&&j(1),s(qh())},[s,m]),e.jsxs("div",{children:[e.jsx("div",{className:"searchResult-sticky_container",children:e.jsxs(je,{container:!0,rowSpacing:1,columnSpacing:1,children:[e.jsxs(je,{item:!0,xs:3,sm:3,md:2,sx:{display:{lg:"none",sm:"block"}},children:[e.jsx("img",{src:ct,alt:"filter",className:"navigation__component__icon",onClick:x("left",!0)}),e.jsx(En,{className:"drawer",anchor:"left",open:N.left,onClose:x("left",!1),onOpen:x("left",!0),children:e.jsx(Oa,{txt:"search",toggleDrawer:x})})]}),e.jsx(je,{item:!0,xs:9,sm:9,md:10,lg:12,xl:12})]})}),e.jsxs("div",{className:"mt-4",children:[e.jsx(Es,{dataLength:f*10,next:()=>{(h==null?void 0:h.length)!=0&&(h==null?void 0:h.length)%10==0&&j(f+1)},hasMore:f!==v,loader:p&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((I,w)=>e.jsx(je,{item:!0,xs:6,sm:6,md:4,lg:3,xl:3,children:e.jsx(dp,{item:I,itemType:t},w)},w)))})}),h.length===0&&e.jsx("p",{className:"no_notify",style:{height:"70vh"},children:"Please apply filter to see the results"})]})]})},RN=()=>{const s=ge(),t=Cs(),a=()=>{s(Dh())};return e.jsx("div",{children:t.pathname==="/pro-search"?e.jsxs(je,{container:!0,rowSpacing:1,columnSpacing:1,children:[e.jsx(je,{item:!0,lg:3,sx:{display:{xs:"none",lg:"block"}},children:e.jsxs("div",{style:{position:"sticky",top:"15vh",height:"84vh",overflowY:"auto",padding:"10px",scrollbarWidth:"none"},children:[e.jsxs("div",{children:[e.jsx(Xu,{}),e.jsx(ep,{}),e.jsx("hr",{className:"navbar__hr"})]}),e.jsx("div",{style:{position:"sticky",bottom:"-9px",padding:"8px",backgroundColor:"#121212"},children:e.jsx("button",{onClick:a,className:"searchResult-viewresult",style:{backgroundColor:"#0add87"},children:"View Results"})})]})}),e.jsx(je,{item:!0,xs:12,sm:12,md:12,lg:8,children:e.jsx($s,{})}),e.jsx(je,{item:!0,lg:1})]}):e.jsxs(je,{container:!0,rowSpacing:1,columnSpacing:1,children:[e.jsx(je,{item:!0,lg:2,sx:{display:{xs:"none",lg:"block"}}}),e.jsx(je,{item:!0,xs:12,sm:12,md:12,lg:8,children:e.jsx($s,{})}),e.jsx(je,{item:!0,lg:2})]})})},mA=async()=>z.get(yf).then(s=>s.data).catch(s=>{throw s}),hA=async s=>z.post(bf,s).then(t=>t.data).catch(t=>{throw t}),uA=async s=>z.put(vf,s).then(t=>t.data).catch(t=>t),pA=async s=>z.put(_f,s).then(t=>t.data).catch(t=>t),gA=async s=>z.post(Nf,s).then(t=>t.data).catch(t=>t),xA=async s=>z.put(wf,s).then(t=>t.data).catch(t=>t),fA=async s=>z.post(Sf,s).then(t=>t.data).catch(t=>t),jA=async s=>z.get(`${Cf}/${s}`).then(t=>t.data).catch(t=>t),yA=async s=>z.get(`${kf}/${s}`).then(t=>t.data).catch(t=>t),mp=async(s,t)=>z.post(Tf,{month:s,year:t}).then(a=>a.data).catch(a=>{throw a}),bA=async s=>z.post(If,s).then(t=>t.data).catch(t=>{throw t}),vA=async s=>z.post(Af,s).then(t=>t.data).catch(t=>{throw t}),LN=b.lazy(()=>Ve(()=>Promise.resolve().then(()=>t5),void 0)),FN=we(s=>e.jsx(Ha,{disableGutters:!0,elevation:0,square:!0,...s}))(({theme:s})=>({"&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"},background:"#252b2d",borderRadius:"20px"})),BN=()=>{const{control:s,handleSubmit:t,formState:{errors:a}}=Qe(),[i,n]=b.useState(null),[r,l]=b.useState([]),c=async h=>{const d=await mp(h.month,h.year);l(d.data.productInvoices);let u={...d.data.amboInvoices[0],totalAmount:d.data.stats.totalAmount,totalGst:d.data.stats.totalGst};u.products[0].quantity=d.data.stats.totalOrders,n(u)},o=()=>e.jsx("form",{onSubmit:t(c),children:e.jsxs("div",{className:"display-flex-aljc-center",children:[e.jsx("div",{className:"margin_10_0",style:{paddingRight:"10px"},children:e.jsx(xe,{name:"month",control:s,defaultValue:"",render:({field:h})=>e.jsxs("select",{...h,className:"textfield",style:{padding:"6px",color:"black"},children:[e.jsx("option",{value:"",disabled:!0,children:"Select Month"}),Yb.map(d=>e.jsx("option",{value:d.value,children:d.label},d.value))]})})}),e.jsx("div",{className:"margin_10_0",style:{paddingRight:"10px"},children:e.jsx(xe,{name:"year",control:s,defaultValue:"",render:({field:h})=>e.jsxs("select",{...h,className:"textfield",style:{padding:"6px",color:"black"},children:[e.jsx("option",{value:"",disabled:!0,children:"Select Year"}),Zb.map(d=>e.jsx("option",{value:d.value,children:d.label},d.value))]})})}),e.jsx("button",{type:"submit",className:"jpfiCard__six-btn-1 cp",children:"Submit"})]})}),p=()=>e.jsxs("div",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:[e.jsx("img",{src:ip,alt:"no purchase"}),e.jsx("p",{className:"mx-2",style:{color:"#d6dcdd"},children:"No purchases found!"})]});return e.jsx(e.Fragment,{children:e.jsx("section",{children:e.jsx("div",{className:"row",children:e.jsxs("div",{className:"admin__bgc",children:[e.jsx("div",{className:"mx-2 d-flex align-items-center",children:e.jsx("div",{children:e.jsx("p",{className:"settings_sub_heading-desktop",children:"Select Calendar Year"})})}),e.jsx("div",{className:"my-3",children:e.jsx(o,{})}),e.jsx("div",{className:"mx-2 d-flex align-items-center",children:e.jsx("div",{children:e.jsx("p",{className:"settings_sub_heading-desktop",children:"History of Orders"})})}),e.jsx("p",{className:"text-white",children:"Individual Orders"}),(r==null?void 0:r.length)===0?e.jsx(p,{}):r==null?void 0:r.map((h,d)=>{var u,m;return e.jsx(e.Fragment,{children:e.jsxs(FN,{className:"mx-2 my-2",children:[e.jsx(At,{expandIcon:e.jsx(qa,{className:"admin__Dropdown",sx:{pointerEvents:"auto",backgroundColor:"#252b2d"}}),"aria-controls":"panel1a-content",id:"panel1a-header",children:e.jsx("div",{className:"admin__c",children:e.jsxs("div",{className:"fdc admin__names",children:[e.jsxs("p",{className:h.paymentStatus==="Success"?"admin__name":"payment_fail",children:[e.jsx("span",{style:{color:"#A7AAAB"},children:"Order Date : "}),ks(h.createdAt),e.jsx("span",{children:` (${h.paymentStatus})`})]}),e.jsxs("p",{className:"admin__role",children:["Order value: ",(h.totalAmount+h.totalGst).toFixed(2)]})]})})}),e.jsxs(Nn,{children:[e.jsx("div",{className:"admin__table",id:`tablePart_${d}`,children:e.jsx("div",{className:"admin__responsive",children:e.jsxs("table",{className:"table-line",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"admin__f",children:"S. No"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Product"}),e.jsx("th",{scope:"col",className:"admin__f",children:"HSN/SAC"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Qty"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Rate"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Taxes(18%)"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Sub Total"})]})}),e.jsx("tbody",{children:(u=h.products)==null?void 0:u.map((f,v)=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"history-items",children:v+1})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:f.name})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:jo})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:f.quantity})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:f.price})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:f.productGst.toFixed(2)})}),e.jsx("td",{children:e.jsx("p",{className:"history-items",children:(f.price*(f.quantity/(f.units||1))+f.productGst).toFixed(2)})})]},v))})]})})}),e.jsx("div",{className:"button__container",children:e.jsx(_e.Suspense,{fallback:e.jsx(os,{}),children:e.jsx(LN,{invoice:h,invoiceType:(m=h.products)==null?void 0:m.map(f=>amboProductNames.includes(f.name)?"AMBO":"TB")})})})]})]},d)})})]})})})})},Oo=({dropdownValue:s,setDropdownValue:t,dropdownOptions:a,control:i,name:n,setValue:r,clearErrors:l,placeholder:c,defaultValue:o,styles:p,error:h,menuPlacement:d})=>{const u=y=>{t(y),r(n,{value:y}),l(n)}
36,{field:{onChange:m,onBlur:f,value:v,ref:N},fieldState:{invalid:_,isTouched:x,isDirty:j},formState:{touchedFields:I,dirtyFields:w}}=pd({name:n,control:i,rules:{required:!0},defaultValue:typeof o=="string"?{value:o}:o});return e.jsx(e.Fragment,{children:e.jsx(gd,{name:n,onBlur:f,placeholder:"Select",options:a,classNamePrefix:"react-select",className:h?"invalid":"react-select-container",styles:Za,onChange:u,closeMenuOnSelect:!0,menuPlacement:d||"auto",onKeyDown:y=>{Zs(y)},defaultValue:typeof o=="string"?{label:de(o),value:o}:typeof o=="object"?{label:de(o.value),value:o.value}:""})})};ma.extend(jg);ma.extend(yg);ma.extend(bg);const Bl="Asia/Kolkata";async function hp(s,t,a){const i=t.toString().padStart(2,"0"),r=(t===12?1:t+1).toString().padStart(2,"0"),l=t===12?a+1:a,c=ma.tz(`${a}-${i}-01 00:00:00`,Bl).valueOf(),o=ma.tz(`${l}-${r}-01 00:00:00`,Bl).valueOf();return s.filter(p=>{const h=new Date(p.createdAt).getTime();return h>=c&&h<o})}async function ON(s,t,a){try{console.log(s,t,a,"countAmboProductSales");const i=await hp(s,t,a);let n=0,r=0,l=0,c=0,o=0,p=0,h=0,d=0,u=0,m=0,f=0,v=0,N=0,_=0,x=0,j=0,I=0,w=0;for(const y of i)for(const k of y.products||[])k.name==="AGENT AMBO"&&k.price===199&&(n+=k.quantity||1,r+=(k.price||0)*(k.quantity||1)),k.name==="AGENT AMBO"&&k.price===299&&(l+=k.quantity||1,c+=(k.price||0)*(k.quantity||1)),k.name==="AMBO INVEST"&&k.price===499&&(o+=k.quantity||1,p+=(k.price||0)*(k.quantity||1)),k.name==="AMBO SERVICE PROVIDER"&&k.price===299&&(h+=k.quantity||1,d+=(k.price||0)*(k.quantity||1)),k.name==="AMBO SERVICE PROVIDER"&&k.price===199&&(u+=k.quantity||1,m+=(k.price||0)*(k.quantity||1)),k.name==="AMBO RECRUITER"&&k.price===249&&(f+=k.quantity||1,v+=(k.price||0)*(k.quantity||1)),k.name==="RESUME BUILDER"&&k.price===49&&(N+=k.quantity||1,_+=(k.price||0)*(k.quantity||1)),k.name==="RESUME BUILDER AI"&&k.price===149&&(x+=k.quantity||1,j+=(k.price||0)*(k.quantity||1)),I&&(I+=k.quantity||1,w+=(k.price||0)*(k.quantity||1));return{agentAmboCount:n,agentAmboTotal:r,agentAmboCount299:l,agentAmboTotal299:c,amboInvestCount:o,amboInvestTotal:p,amboServiceProviderCount:h,amboServiceProviderTotal:d,amboServiceProviderCount199:u,amboServiceProviderTotal199:m,amboRecruiterCount:f,amboRecruiterTotal:v,resumeBuilderCount:N,resumeBuilderTotal:_,resumeBuilderAICount:x,resumeBuilderAITotal:j,resumeBuilderAICount199:I,resumeBuilderAITotal199:w}}catch(i){throw console.error("Error counting AMBO product sales:",i),i}}function UN(s,t){const a=t.toString().padStart(2,"0");return ma(`${s}-${a}-01`).endOf("month").format("YYYY-MM-DD")}const DN=(s,t,a,i)=>{let n=[];const{agentAmboCount:r,amboInvestCount:l,agentAmboTotal:c,amboInvestTotal:o,amboServiceProviderCount:p,amboServiceProviderTotal:h,amboServiceProviderCount199:d,amboServiceProviderTotal199:u,agentAmboCount299:m,agentAmboTotal299:f,amboRecruiterCount:v,amboRecruiterTotal:N,resumeBuilderCount:_,resumeBuilderTotal:x,resumeBuilderAICount:j,resumeBuilderAITotal:I,resumeBuilderAICount199:w,resumeBuilderAITotal199:y}=t;r&&n.push({name:"AGENT AMBO",quantity:r,price:199,productGst:199*r*.18,units:1}),m&&n.push({name:"AGENT AMBO",quantity:m,price:299,productGst:299*m*.18,units:1}),l&&n.push({name:"AMBO INVEST",quantity:l,price:499,productGst:499*l*.18,units:1}),v&&n.push({name:"AMBO RECRUITER",quantity:v,price:249,productGst:249*v*.18,units:1}),p&&n.push({name:"AMBO SERVICE PROVIDER",quantity:p,price:299,productGst:299*p*.18,units:1}),d&&n.push({name:"AMBO SERVICE PROVIDER",quantity:d,price:199,productGst:199*d*.18,units:1}),_&&n.push({name:"RESUME BUILDER",quantity:_,price:49,productGst:49*_*.18,units:1}),j&&n.push({name:"RESUME BUILDER AI",quantity:j,price:149,productGst:149*j*.18,units:1}),w&&n.push({name:"RESUME BUILDER AI",quantity:j,price:199,productGst:149*j*.18,units:1});const k=c+o+h+N+x+f+u+I+y,S=k*.18,E=4 .toString().padStart(a,"0"),C=a<=3?`${i-1}${E}`:`${i}${E}`;return{...s,totalAmount:k,invoiceNumber:`AAC INV-${C}`,totalGst:S,createdAt:UN(i,a),products:n}},qN=async(s,t,a)=>{const i=await hp(s,t,a),n=String(t).padStart(2,"0"),r=i.map(l=>{const c=l.invoiceNumber.split(" ").join("+");return{invoice:l,invoiceNumber:l.invoiceNumber,filename:`${c}.pdf`,url:`https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/invoices/${a}/${n}/AA/${c}.pdf`}});return await WN(r)};function VN(s,t){const a=[];for(let i=0;i<s.length;i+=t)a.push(s.slice(i,i+t));return a}const zN=s=>new Promise(t=>setTimeout(t,s));async function WN(s,t=15){const a=new xd,i=[],n=VN(s,t);for(const l of n)await Promise.allSettled(l.map(async c=>{try{const o=await fetch(c.url);if(!o.ok)throw i.push(c.invoice),new Error(`HTTP ${o.status}`);const p=await o.blob();a.file(c.filename,p)}catch(o){console.error(`Failed to fetch ${c.filename}:`,o)}})),await zN(50);const r=await a.generateAsync({type:"blob"});return vg.saveAs(r,"invoices_aws_s3.zip"),i}we.div`
37  background: #252b2d;
38  display: flex;
39  justify-content: center;
40  align-items: center;
41  padding: 0 30px;
42  min-height: 100vh;
43  width: 100%;
44  @media screen and (max-width: 768px) {
45    justify-content: space-evenly;
46  }
47  @media screen and (max-width: 480px) {
48    justify-content: space-evenly;
49    min-height: 100vh;
50  }
51`;we.div`
52  z-index: 3;
53  max-width: 1200px;
54  position: absolute;
55  padding: 2px 24px;
56  display: flex;
57  flex-direction: column;
58  align-items: center;
59`;const hn=we.div`
60  width: 100%;
61  height: 100%;
62  display: flex;
63  flex-direction: column;
64  align-items: center;
65  justify-content: center;
66`,$N=we.img`
67  height: 70px;
68  width: 100px;
69  cursor: pointer;
70`,HN=we.p`
71  font-size: 44px;
72  letter-spacing: 5px;
73  color: var(--text-color-primary);
74  font-weight: 200;
75  @media screen and (max-width: 768px) {
76    font-size: 40px;
77  }
78  @media screen and (max-width: 480px) {
79    font-size: 32px;
80  }
81`,GN=we.span`
82  color: #0ADD87;
83  font-weight: 600;
84`,_A=we.h1`
85  font-size: var(--micro-size);
86  letter-spacing: 3px;
87  color: var(--text-color-primary);
88`;we.h1`
89  color: var(--text-color-primary);
90  font-size: 36px;
91  font-weight: 600;
92  letter-spacing: 1.5px;
93  margin: 30px 0;
94  text-align: center;
95  @media screen and (max-width: 768px) {
96    font-size: 32px;
97  }
98  @media screen and (max-width: 480px) {
99    font-size: 22px;
100  }
101`;we.div`
102  margin: 30px 0;
103  display: flex;
104  align-items: center;
105  justify-content: center;
106`;const JN=we.img`
107  width: 24px;
108  height: 24px;
109  // margin: 30px 0;
110  cursor: pointer;
111//   @-webkit-keyframes pulse {
112//     0% {
113//       -webkit-transform: translate(0, 0);
114//       transform: translate(0, 0);
115//     }
116//     50% {
117//       -webkit-transform: translate(0, 10px);
118//       transform: translate(0, 10px);
119//     }
120//     100% {
121//       -webkit-transform: translate(0, 0);
122//       transform: translate(0, 0);
123//     }
124//   }
125
126//   @keyframes pulse {
127//     0% {
128//       -webkit-transform: translate(0, 0);
129//       transform: translate(0, 0);
130//     }
131//     50% {
132//       -webkit-transform: translate(0, 10px);
133//       transform: translate(0, 10px);
134//     }
135//     100% {
136//       -webkit-transform: translate(0, 0);
137//       transform: translate(0, 0);
138//     }
139//   }
140//   -webkit-animation: pulse 2s infinite;
141//   animation: pulse 2s infinite;
142// `,YN=we.button`
143  color:#D6DCDD;
144  font-size:14px;
145  font-weight:600;
146  background: #121212;
147  border: none;
148  @media screen and (max-width: 768px) {
149    margin-top: 10px;
150  }
151  @media screen and (max-width: 480px) {
152    margin-top: 10px;
153  }
154`,Uo=({invoice:s})=>{var n,r,l,c,o,p,h,d,u;var t;(r=(n=s==null?void 0:s.gstData)==null?void 0:n.address)!=null&&r.line1?t=xn((l=s==null?void 0:s.gstData)==null?void 0:l.address):t=s!=null&&s.address?xn(s==null?void 0:s.address):(o=(c=s==null?void 0:s.profile)==null?void 0:c.businesscard)!=null&&o.address?xn((h=(p=s==null?void 0:s.profile)==null?void 0:p.businesscard)==null?void 0:h.address):null;let a=(d=s==null?void 0:s.gstData)==null?void 0:d.gstNumber.startsWith("33");const i=s.userId||(s==null?void 0:s.user);return e.jsxs("div",{className:"invoice_Container",children:[e.jsxs("div",{className:"invoice_Header display-flex-aic-jcsb",children:[e.jsxs(hn,{children:[e.jsx($N,{src:Kn}),e.jsxs("h1",{children:["TICK",e.jsx(GN,{children:"BIG"})]}),e.jsx("p",{children:"Tickbig Networking Media Private Limited "})]}),e.jsxs(hn,{children:[e.jsx("p",{children:"Original For Recipient"}),e.jsx(HN,{children:e.jsx("h4",{children:"TaxInvoice"})}),e.jsxs("p",{children:["Invoice #: ",s!=null&&s.invoiceNumber?s==null?void 0:s.invoiceNumber:s==null?void 0:s.orderId]}),e.jsxs("p",{children:["Invoice Date: ",av(s==null?void 0:s.createdAt)]})]})]}),e.jsx("hr",{}),e.jsxs("div",{className:"invoice_Header display-flex-aic-jcsb",children:[e.jsxs(hn,{children:[e.jsx("h4",{children:"Supplier Details :"}),e.jsxs("p",{className:"invoice--location w-50",children:[e.jsx("span",{children:e.jsx(Va,{className:"businessCardBack__icons"})}),"No 5/3, D N Flats, Nethaji Street, Nethaji Nagar, Thiruvanmiyur, Chennai - 600041"]}),e.jsx("span",{children:"GSTIN 33AAJCT3991K1ZU"})]}),e.jsxs(hn,{children:[e.jsx("h4",{children:"Recipient Details :"}),s!=null&&s.gstData?e.jsx("b",{children:s==null?void 0:s.gstData.businessName}):e.jsx("b",{children:de((i==null?void 0:i.firstName)+" "+(i==null?void 0:i.lastName))}),t&&e.jsxs("p",{className:"invoice--location w-50",children:[e.jsx("span",{children:e.jsx(Va,{className:"businessCardBack__icons"})}),t]}),(s==null?void 0:s.gstData)&&e.jsx("span",{children:s==null?void 0:s.gstData.gstNumber})]})]}),e.jsx("div",{className:"invoice__table",children:e.jsx("div",{className:"invoice__responsive",children:e.jsxs("table",{className:"table-line",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"invoice_table-head",children:"S. No"}),e.jsx("th",{scope:"col",className:"invoice_table-head",children:"Product"}),e.jsx("th",{scope:"col",className:"invoice_table-head",children:"HSN/SAC"}),e.jsx("th",{scope:"col",className:"invoice_table-head",children:"Qty"}),e.jsx("th",{scope:"col",className:"invoice_table-head",children:"Rate"}),!(s!=null&&s.gstData)||s!=null&&s.gstData&&a?e.jsxs(e.Fragment,{children:[e.jsx("th",{scope:"col",className:"invoice_table-head",children:"CGST(9%)"}),e.jsx("th",{scope:"col",className:"invoice_table-head",children:"SGST(9%)"})]}):(s==null?void 0:s.gstData)&&!a&&e.jsx(e.Fragment,{children:e.jsx("th",{scope:"col",className:"invoice_table-head",children:"IGST(18%)"})}),e.jsx("th",{scope:"col",className:"invoice_table-head",children:"Taxes(18%)"}),e.jsx("th",{scope:"col",className:"invoice_table-head",children:"Sub Total"})]})}),e.jsxs("tbody",{children:[(u=s==null?void 0:s.products)==null?void 0:u.map((m,f)=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:f+1})}),e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:m==null?void 0:m.name})}),e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:jo})}),e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:m==null?void 0:m.quantity})}),e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:m==null?void 0:m.price})}),s!=null&&s.gstData?a?e.jsxs(e.Fragment,{children:[e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:((m==null?void 0:m.productGst)/2).toFixed(2)})}),e.jsx("td",{children:e.jsxs("p",{className:"invoice_data",children:[((m==null?void 0:m.productGst)/2).toFixed(2)," "]})})]}):e.jsx(e.Fragment,{children:e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:(m==null?void 0:m.productGst).toFixed(2)})})}):e.jsxs(e.Fragment,{children:[e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:((m==null?void 0:m.productGst)/2).toFixed(2)})}),e.jsx("td",{children:e.jsxs("p",{className:"invoice_data",children:[((m==null?void 0:m.productGst)/2).toFixed(2)," "]})})]}),e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:m==null?void 0:m.productGst.toFixed(2)})}),e.jsx("td",{children:e.jsx("p",{className:"invoice_data",children:(m==null?void 0:m.price)*((m==null?void 0:m.quantity)/(m==null?void 0:m.units))})})]},f)),e.jsxs("tr",{style:{backgroundColor:"#dbdbdb"},children:[e.jsx("td",{}),e.jsx("td",{}),e.jsx("td",{}),e.jsx("td",{}),!s.gstData||a?e.jsx("td",{colSpan:"3",children:e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"history-items",children:"CGST(9%):"}),e.jsx("p",{className:"history-items",children:"SGST(9%):"})]})}):e.jsx("td",{colSpan:"3",children:e.jsx("p",{className:"history-items",children:"IGST(18%):"})}),e.jsx("td",{colSpan:"2",children:s!=null&&s.gstData?a?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"history-amount",children:((s==null?void 0:s.totalGst)/2).toFixed(2)}),e.jsx("p",{className:"history-amount",children:((s==null?void 0:s.totalGst)/2).toFixed(2)})]}):e.jsx("p",{className:"history-amount",children:(s==null?void 0:s.totalGst).toFixed(2)}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"history-amount",children:((s==null?void 0:s.totalGst)/2).toFixed(2)}),e.jsx("p",{className:"history-amount",children:((s==null?void 0:s.totalGst)/2).toFixed(2)})]})})]}),e.jsxs("tr",{children:[e.jsx("td",{}),e.jsx("td",{}),e.jsx("td",{}),e.jsx("td",{}),e.jsx("td",{colSpan:"3",children:e.jsx("p",{style:{color:"#1e1e1e"},children:"Grand Total"})}),e.jsx("td",{colSpan:"2",children:e.jsx("p",{style:{color:"#1e1e1e"},children:((s==null?void 0:s.totalAmount)+(s==null?void 0:s.totalGst)).toFixed(2)})})]})]})]})})})]})},ZN=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"})),up=async(s,t,a,i)=>{try{const n={folderName:s,fieldname:a,fileMime:i};console.log("Requesting presigned URL for:",s);const r=await Nu(n);if(!r.s3PreUrl)throw console.error("Failed to get presigned URL:",r),new Error("Presigned URL not available");console.log("Uploading to S3:",s);const c=await $a.create().put(r.s3PreUrl,t,{headers:{"Content-Type":i}});if((c==null?void 0:c.status)===Ke){let p=`https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/${s}/${a}`;return console.log("Invoice uploaded successfully:",p),p}else throw console.error("Upload returned status:",c==null?void 0:c.status),new Error(`Upload failed with status: ${c==null?void 0:c.status}`)}catch(n){throw console.error("Error uploading invoice:",n),n}}
154,KN="/assets/InvoiceGif-CpnkhIUJ.gif",nn=({paymentId:s,order:t,showModal:a,setShowModal:i,productName:n="Agent Ambo",successMessage:r})=>{const{successToast:l}=he(),[c,o]=b.useState(null),[p,h]=b.useState(!1),d=r||`Thank you for choosing ${n}`,u=async()=>{var m;try{h(!0);const f=document.createElement("div");f.style.position="absolute",f.style.left="-9999px",document.body.appendChild(f);const v=Hc.createRoot(f);try{v.render(e.jsx(Uo,{invoice:t}))}catch(A){console.error("Error rendering PrintableInvoice:",A),document.body.removeChild(f),h(!1);return}await new Promise(A=>setTimeout(A,1e3));const N=await jd(f,{scale:2});v.unmount(),document.body.removeChild(f);const _=N.toDataURL("image/png"),x=new cd({orientation:"landscape",unit:"mm",format:"a4",compress:!0}),j=290,I=N.height*j/N.width;x.addImage(_,"PNG",0,0,j,I);const w=new Date((t==null?void 0:t.createdAt)||new Date),y=String(w.getMonth()+1).padStart(2,"0"),k=w.getFullYear(),S=(m=t==null?void 0:t.invoiceNumber)==null?void 0:m.split("").slice(0,2).join(""),g=`invoices/${k}/${y}/${S}`,E=x.output("blob"),C=new File([E],`${t==null?void 0:t.invoiceNumber}.pdf`,{type:"application/pdf"}),T=await up(g,C,`${t==null?void 0:t.invoiceNumber}.pdf`,"application/pdf");T&&(o(T),l("Invoice created successfully."))}catch(f){console.error("Error generating PDF:",f),f.message&&o(null)}finally{h(!1)}};return b.useEffect(()=>{if(!t||!t.invoiceNumber)return;let m=!0;return(async()=>{t&&m&&await u()})(),()=>{m=!1}},[s,t]),e.jsx(e.Fragment,{children:e.jsx(qe,{open:a,onClose:()=>i(!1),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:O2,children:e.jsxs("div",{className:"payment-container",children:[e.jsx("img",{src:KN,alt:"logo",className:"success-logo"}),e.jsx("p",{className:"payment-success",children:"Payment Successful"}),e.jsx("p",{className:"loading-text",children:d}),p&&e.jsx("p",{className:"loading-text",children:"Generating Invoice..."}),c&&!p&&e.jsx("div",{style:{marginTop:"20px"},children:e.jsx("button",{onClick:()=>{window.open(c,"_blank"),i(!1)},className:"invoiceButton",children:"Download Invoice"})})]})})})})},QN=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),XN=({orders:s,month:t,year:a})=>{const{successToast:i}=he(),[n,r]=b.useState(null),[l,c]=b.useState(!1),o=new xd,p=async h=>{var d;try{c(!0);const u=document.createElement("div");u.style.position="absolute",u.style.left="-9999px",document.body.appendChild(u),Hc.createRoot(u).render(e.jsx(Uo,{invoice:h})),await new Promise(g=>setTimeout(g,1e3));const f=await jd(u,{scale:2});document.body.removeChild(u);const v=f.toDataURL("image/png"),N=new cd({orientation:"landscape",unit:"mm",format:"a4",compress:!0}),_=290,x=f.height*_/f.width;N.addImage(v,"PNG",0,0,_,x);const j=String(t).padStart(2,"0"),I=(d=h==null?void 0:h.invoiceNumber)==null?void 0:d.split("").slice(0,2).join(""),w=`invoices/${a}/${j}/${I}`,y=N.output("blob"),k=new File([y],`${h==null?void 0:h.invoiceNumber}.pdf`,{type:"application/pdf"});o.file(`${h==null?void 0:h.invoiceNumber}.pdf`,y);const S=await up(w,k,`${h==null?void 0:h.invoiceNumber}.pdf`,"application/pdf");S&&(r(S),i("Invoice created successfully."))}catch(u){console.error("Error generating PDF for invoice:",h==null?void 0:h.invoiceNumber,u)}finally{c(!1)}};return b.useEffect(()=>{let h=!0;const d=async f=>{h&&await p(f)},u=async()=>{c(!0);for(const f of s)await d(f);await m(),c(!1)},m=async()=>{const f=await o.generateAsync({type:"blob"});saveAs(f,"new_invoices_aws_s3.zip")};return s&&s.length>0&&u(),()=>{h=!1}},[s]),e.jsx(e.Fragment,{children:(s==null?void 0:s.length)>0&&l&&e.jsx("p",{className:"text-white",children:"Creating Subscription Invoices ..."})})},e5=_e.lazy(()=>Ve(()=>Promise.resolve().then(()=>ZN),void 0)),s5=_e.lazy(()=>Ve(()=>import("./AdminAMBOConsolidatedInvoice-oOPgwoda.js"),__vite__mapDeps([103,1,2,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,5,6,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),pp=({invoice:s,invoiceType:t})=>{var r;const{userDetails:{isGreen:a}}=G(l=>l.auth),i=b.createRef(null),n=fd.useReactToPrint({content:()=>i.current,pageStyle:"@page { size: landscape; }"});return e.jsxs(e.Fragment,{children:[e.jsx("div",{hidden:!0,children:e.jsxs("div",{ref:i,children:[a&&t==="AMBO"&&e.jsx(s5,{invoice:s}),a&&t==="TB"&&e.jsx(e5,{invoice:s==null?void 0:s.newInvoice})]})}),e.jsx("div",{children:((r=s==null?void 0:s.newInvoice)==null?void 0:r.paymentStatus)==="Success"&&e.jsx("button",{className:"admin__save",type:"button",onClick:n,children:"Download Invoice"})})]})},t5=Object.freeze(Object.defineProperty({__proto__:null,default:pp},Symbol.toStringTag,{value:"Module"}
154)),a5=({orderCount:s,setOrderCount:t})=>{var j;const{errorToast:a,warningToast:i}=he(),{register:n,handleSubmit:r,control:l,setValue:c,clearErrors:o,formState:{errors:p}}=Qe(),[h,d]=b.useState(!1),[u,m]=b.useState(null),[f,v]=b.useState(null),[N,_]=b.useState({value:"Choose One"}),x=async I=>{var w,y,k,S,g,E;try{d(!0),v(null);const C=I.month.value.value,T=await mp(C,I.year);if(((y=(w=T==null?void 0:T.data)==null?void 0:w.amboInvoices)==null?void 0:y.length)>0){const A=await ON((k=T==null?void 0:T.data)==null?void 0:k.amboInvoices,C,I.year),R=DN(T.data.amboInvoices[0],A,C,I.year);v({newInvoice:R,month:C,year:I.year})}if(I.year<2025&&C<5&&i("Product Invoice not found"),((g=(S=T==null?void 0:T.data)==null?void 0:S.productInvoices)==null?void 0:g.length)>0){const A=await qN((E=T==null?void 0:T.data)==null?void 0:E.productInvoices,C,I.year);m({invalidInvoices:A,month:C,year:I.year})}else a("No Subscription Orders found")}catch{a("Couldnot download")}finally{d(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx("form",{onSubmit:r(x),children:e.jsxs("div",{className:"display-flex-aljc-center",children:[e.jsxs("div",{className:"margin_10_0",style:{paddingRight:"10px"},children:[e.jsx("input",{className:"textfield",placeholder:"Year",style:{padding:"6px",color:"black"},type:"number",...n("year",{required:{value:!0,message:"Year is required"},maxLength:{value:4,message:"Invalid year"}})}),p.year&&e.jsx("p",{children:p.year.message})]}),e.jsxs("div",{className:"margin_10_0",style:{paddingRight:"10px"},children:[e.jsx(Oo,{dropdownOptions:zb,dropdownValue:N,setDropdownValue:_,control:l,setValue:c,clearErrors:o,styles:Za,name:"month"}),(p==null?void 0:p.month)&&e.jsx(Me,{errMsg:"Month is required"})]}),e.jsx("button",{type:"submit",className:"jpfiCard__six-btn-1 cp",children:"Submit"})]})}),h?e.jsx(os,{}):e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"py-4 my-4",children:[e.jsx("p",{className:"text-white",children:"Subscription Invoices"}),((j=u==null?void 0:u.invalidInvoices)==null?void 0:j.length)>0?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-white",children:" Subscription Invoices will be downloaded automatically. Generating ..."}),e.jsx(XN,{orders:u==null?void 0:u.invalidInvoices,month:u==null?void 0:u.month,year:u==null?void 0:u.year})]}):e.jsx("p",{className:"text-white",children:"No Subscription Invoices found."})]}),(f==null?void 0:f.newInvoice)&&e.jsx(_e.Suspense,{fallback:e.jsx(os,{}),children:e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-white",children:"Ambo Consolidated Invoice"}),e.jsx(pp,{invoice:f,invoiceType:"AMBO"})]})})]})]})},gp=async()=>z.get(sb).then(s=>s.data).catch(s=>{throw s}),n5=async()=>z.get(tb).then(s=>s.data).catch(s=>{throw s}),i5=async(s,t)=>z.put(ub,{data:s,id:t}).then(a=>a.data).catch(a=>{throw a}
154),o5=async s=>z.delete(`${pb}/${s}`).then(t=>t.data).catch(t=>{throw t}),xp=async(s,t,a)=>z.put(`${gb}/${s}`,{providerChatId:t,providerName:a}).then(i=>i.data).catch(i=>{throw i}),fp=async(s,t,a)=>z.put(`${wb}/${s}`,{serviceRequestChatId:t,serviceRequesterName:a}).then(i=>i.data).catch(i=>{throw i}),Ol=async(s,t)=>z.post(ab,{inside:t,paymentId:s}).then(a=>a.data).catch(a=>{throw a}),r5=async(s,t)=>z.post(mb,{inside:t,paymentId:s}).then(a=>a.data).catch(a=>{throw a}),l5=async(s,t)=>z.post(hb,{inside:t,paymentId:s}).then(a=>a.data).catch(a=>{throw a}),c5=async s=>z.get(`${nb}/${s}`).then(t=>t.data).catch(t=>{throw t}),Do=async s=>z.post(ib,{amboType:s}).then(t=>t.data).catch(t=>{throw t}),on=async(s,t=1)=>z.post(ob,{amboType:s,quantity:t}).then(a=>a.data).catch(a=>{throw a}),d5=async s=>z.post(fb,{productName:s}).then(t=>t.data).catch(t=>{throw t}),jp=async({designation:s,page:t=1,limit:a=10})=>z.post(rb+`?pageNo=${t}&limit=${a}`,{designation:s}).then(i=>i.data).catch(i=>{throw i}),yp=async({designation:s,page:t=1,limit:a=10})=>z.post(lb+`?pageNo=${t}&limit=${a}`,{designation:s}).then(i=>i.data).catch(i=>{throw i}),m5=async({designation:s,page:t=1,limit:a=10})=>z.post(cb+`?pageNo=${t}&limit=${a}`,{designation:s}).then(i=>i.data).catch(i=>{throw i}),h5=async({designation:s,page:t=1,limit:a=10})=>z.post(db+`?pageNo=${t}&limit=${a}`,{designation:s}).then(i=>i.data).catch(i=>{throw i}),bp=async(s=1,t=10,a)=>z.post(jb+`?pageNo=${s}&limit=${t}`,a).then(i=>i.data).catch(i=>{throw i}),u5=async(s=1,t=10,a)=>z.post(yb+`?pageNo=${s}&limit=${t}`,a).then(i=>i.data).catch(i=>{throw i}),p5=async s=>z.post(Nb,s).then(t=>t.data).catch(t=>{throw t}),g5=async()=>z.get(Sb).then(s=>s.data).catch(s=>{throw s}),x5=async s=>z.post(kb,s).then(t=>t.data).catch(t=>{throw t}),f5=async(s=1,t=10,a)=>z.post(bb+`?pageNo=${s}&limit=${t}`,a).then(i=>i.data).catch(i=>{throw i}),j5=async(s=1,t=10,a)=>z.post(vb+`?pageNo=${s}&limit=${t}`,a).then(i=>i.data).catch(i=>{throw i}),y5=async s=>z.post(_b,{requestId:s}).then(t=>t.data).catch(t=>{throw t}),Ul=async({recruiterChatId:s,jobseekerChatId:t})=>z.post(Ib,{recruiterChatId:s,jobseekerChatId:t}).then(a=>a.data).catch(a=>{throw a}),b5=async({recruiterChatId:s,paymentId:t})=>z.post(Eb,{recruiterChatId:s,paymentId:t}).then(a=>a.data).catch(a=>{throw a}),_i=async({jobseekerChatId:s,recruiterChatId:t})=>z.post(Ab,{jobseekerChatId:s,recruiterChatId:t}).then(a=>a.data).catch(a=>{throw a}),v5="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.2501%2014.15V18.4C20.2501%2019.494%2019.4631%2020.436%2018.3781%2020.58C16.2911%2020.857%2014.1621%2021%2012.0001%2021C9.83806%2021%207.70906%2020.857%205.62206%2020.58C4.53706%2020.436%203.75006%2019.494%203.75006%2018.4V14.15M20.2501%2014.15C20.4875%2013.9436%2020.6775%2013.6883%2020.807%2013.4016C20.9364%2013.1149%2021.0023%2012.8036%2021.0001%2012.489V8.706C21.0001%207.625%2020.2321%206.691%2019.1631%206.531C18.0304%206.36142%2016.892%206.23234%2015.7501%206.144M20.2501%2014.15C20.0561%2014.315%2019.8301%2014.445%2019.5771%2014.53C17.1333%2015.3408%2014.5748%2015.7528%2012.0001%2015.75C9.35206%2015.75%206.80506%2015.321%204.42306%2014.53C4.17631%2014.4479%203.94778%2014.3189%203.75006%2014.15M3.75006%2014.15C3.5126%2013.9436%203.32262%2013.6883%203.19315%2013.4016C3.06369%2013.1149%202.99782%2012.8036%203.00006%2012.489V8.706C3.00006%207.625%203.76806%206.691%204.83706%206.531C5.96975%206.36142%207.10814%206.23233%208.25006%206.144M15.7501%206.144V5.25C15.7501%204.65326%2015.513%204.08097%2015.091%203.65901C14.6691%203.23705%2014.0968%203%2013.5001%203H10.5001C9.90332%203%209.33102%203.23705%208.90907%203.65901C8.48711%204.08097%208.25006%204.65326%208.25006%205.25V6.144M15.7501%206.144C13.2538%205.95108%2010.7463%205.95108%208.25006%206.144M12.0001%2012.75H12.0081V12.758H12.0001V12.75Z'%20stroke='%233B82F6'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",_5="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.8857%2020.6666C15.3524%2020.3491%2016.7121%2019.6279%2017.8401%2018.6482L20.9842%2021.7921C21.5839%2022.364%2022.3592%2021.6302%2021.8162%2021.0114L18.6539%2017.8331C19.5671%2016.7777%2020.248%2015.5183%2020.586%2014.1565C22.0793%208.13427%2017.2999%202.55003%2011.151%203.0287C7.57097%203.30693%204.39472%205.93015%203.38286%209.36073C1.4389%2015.9479%207.1973%2022.1145%2013.8857%2020.6666Z'%20stroke='%23F59E0B'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.8844%2013.1569C13.7148%2013.1569%2015.1985%2011.6708%2015.1985%209.8377C15.1985%208.00459%2013.7148%206.51855%2011.8844%206.51855C10.0541%206.51855%208.57031%208.00459%208.57031%209.8377C8.57031%2011.6708%2010.0541%2013.1569%2011.8844%2013.1569Z'%20stroke='%23F59E0B'%20stroke-width='1.5'%20stroke-miterlimit='10'/%3e%3cpath%20d='M7.72266%2017.3265C7.72266%2015.0397%209.60154%2013.1572%2011.8856%2013.1572C14.1696%2013.1572%2016.0065%2014.9927%2016.0478%2017.2501'%20stroke='%23F59E0B'%20stroke-width='1.5'%20stroke-miterlimit='10'/%3e%3c/svg%3e",N5="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.3411%203.65888C19.9192%203.237%2019.3469%203%2018.7503%203C18.1536%203%2017.5813%203.237%2017.1594%203.65888L16.1677%204.6506L19.3494%207.83232L20.3411%206.8406C20.763%206.41865%2021%205.84641%2021%205.24974C21%204.65307%2020.763%204.08083%2020.3411%203.65888ZM18.44%208.74175L15.2583%205.56003L4.84394%2015.9743C4.31495%2016.5031%203.92609%2017.1553%203.71251%2017.8721L3.02679%2020.1735C2.99368%2020.2846%202.99121%2020.4025%203.01964%2020.5148C3.04807%2020.6272%203.10634%2020.7298%203.18829%202
1540.8117C3.27023%2020.8937%203.37281%2020.9519%203.48516%2020.9804C3.5975%2021.0088%203.71545%2021.0063%203.82651%2020.9732L6.12794%2020.2875C6.84471%2020.0739%207.49694%2019.685%208.02566%2019.1561L18.44%208.74175Z'%20fill='%2364B5F6'/%3e%3cpath%20d='M1.5%2022.5H15'%20stroke='%2364B5F6'%20stroke-linecap='round'/%3e%3c/svg%3e",w5="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.42%2015.17L17.25%2021C17.75%2021.484%2018.4202%2021.7521%2019.1161%2021.7465C19.812%2021.7408%2020.4777%2021.4619%2020.9698%2020.9698C21.4619%2020.4777%2021.7408%2019.812%2021.7465%2019.1161C21.7521%2018.4202%2021.484%2017.75%2021%2017.25L15.123%2011.373M11.42%2015.17L13.916%2012.14C14.233%2011.756%2014.656%2011.514%2015.124%2011.374C15.674%2011.21%2016.287%2011.186%2016.867%2011.234C17.6488%2011.3011%2018.4346%2011.1627%2019.1464%2010.8323C19.8582%2010.502%2020.4712%209.99124%2020.9246%209.35081C21.3781%208.71037%2021.6562%207.9625%2021.7313%207.1814C21.8065%206.4003%2021.676%205.61313%2021.353%204.898L18.077%208.175C17.5289%208.04826%2017.0274%207.77016%2016.6296%207.37238C16.2318%206.97459%2015.9537%206.4731%2015.827%205.925L19.103%202.649C18.3879%202.32596%2017.6007%202.19554%2016.8196%202.27068C16.0385%202.34582%2015.2906%202.62391%2014.6502%203.07735C14.0098%203.53079%2013.499%204.14381%2013.1687%204.8556C12.8383%205.56738%2012.6999%206.35317%2012.767%207.135C12.858%208.211%2012.696%209.399%2011.863%2010.085L11.761%2010.17M11.42%2015.17L6.765%2020.823C6.53939%2021.098%206.2587%2021.3227%205.94099%2021.4827C5.62329%2021.6427%205.27561%2021.7344%204.92033%2021.7518C4.56505%2021.7693%204.21005%2021.7122%203.87817%2021.5842C3.54629%2021.4562%203.24489%2021.2602%202.99336%2021.0086C2.74184%2020.7571%202.54577%2020.4557%202.41776%2020.1238C2.28976%2019.792%202.23266%2019.4369%202.25015%2019.0817C2.26764%2018.7264%202.35932%2018.3787%202.51929%2018.061C2.67927%2017.7433%202.90399%2017.4626%203.179%2017.237L10.016%2011.607L5.909%207.5H4.5L2.25%203.75L3.75%202.25L7.5%204.5V5.909L11.76%2010.169L10.015%2011.606M18.375%2018.375L15.75%2015.75M4.867%2019.125H4.875V19.133H4.867V19.125Z'%20stroke='%234FC3F7'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",S5="/assets/AgentAmboGif-DXtyXG3U.gif",k5="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2012H12.75M9%2015H12.75M9%2018H12.75M15.75%2018.75H18C18.5967%2018.75%2019.169%2018.5129%2019.591%2018.091C20.0129%2017.669%2020.25%2017.0967%2020.25%2016.5V6.108C20.25%204.973%2019.405%204.01%2018.274%203.916C17.9%203.88498%2017.5256%203.85831%2017.151%203.836M17.151%203.836C17.2174%204.05109%2017.2501%204.27491%2017.25%204.5C17.25%204.69891%2017.171%204.88968%2017.0303%205.03033C16.8897%205.17098%2016.6989%205.25%2016.5%205.25H12C11.586%205.25%2011.25%204.914%2011.25%204.5C11.25%204.269%2011.285%204.046%2011.35%203.836M17.151%203.836C16.868%202.918%2016.012%202.25%2015%202.25H13.5C13.0192%202.25011%2012.5511%202.40414%2012.1643%202.68954C11.7774%202.97493%2011.492%203.3767%2011.35%203.836M11.35%203.836C10.974%203.859%2010.6%203.886%2010.226%203.916C9.095%204.01%208.25%204.973%208.25%206.108V8.25M8.25%208.25H4.875C4.254%208.25%203.75%208.754%203.75%209.375V20.625C3.75%2021.246%204.254%2021.75%204.875%2021.75H14.625C15.246%2021.75%2015.75%2021.246%2015.75%2020.625V9.375C15.75%208.754%2015.246%208.25%2014.625%208.25H8.25ZM6.75%2012H6.758V12.008H6.75V12ZM6.75%2015H6.758V15.008H6.75V15ZM6.75%2018H6.758V18.008H6.75V18Z'%20stroke='%23FFB74D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",C5="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iI0EzQTNBMyIgY2xhc3M9InNpemUtNiIgaGVpZ2h0PSczMHB4JyB3aWR0aD0nMzBweCc+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTEyIDZ2Nmg0LjVtNC41IDBhOSA5IDAgMSAxLTE4IDAgOSA5IDAgMCAxIDE4IDBaIiAvPg0KPC9zdmc+",T5="/assets/AILoader-8FLsMcsz.gif",I5=()=>e.jsx("div",{style:{position:"fixed",top:0,left:0,zIndex:9999,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("img",{src:T5,alt:"gif",className:"AILoader-gif",onClick:s=>s.stopPropagation()})}),Sn="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.5V19.5M4.125%2019.5H19.875C20.496%2019.5%2021%2018.996%2021%2018.375V5.625C21%205.004%2020.496%204.5%2019.875%204.5H4.125C3.504%204.5%203%205.004%203%205.625V18.375C3%2018.996%203.504%2019.5%204.125%2019.5Z'%20stroke='%23A3A3A3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",qo="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.862%204.48725L18.549%202.79925C18.9007%202.44757%2019.3777%202.25%2019.875%202.25C20.3723%202.25%2020.8493%202.44757%2021.201%202.79925C21.5527%203.15092%2021.7502%203.6279%2021.7502%204.12525C21.7502%204.62259%2021.5527%205.09957%2021.201%205.45125L10.582%2016.0702C10.0533%2016.5986%209.40137%2016.987%208.685%2017.2002L6%2018.0002L6.8%2015.3152C7.01328%2014.5989%207.40163%2013.9469%207.93%2013.4182L16.862%204.48725ZM16.862%204.48725L19.5%207.12525M18%2014.0002V18.7502C18%2019.347%2017.7629%2019.9193%2017.341%2020.3412C16.919%2020.7632%2016.3467%2021.0002%2015.75%202
1541.0002H5.25C4.65326%2021.0002%204.08097%2020.7632%203.65901%2020.3412C3.23705%2019.9193%203%2019.347%203%2018.7502V8.25025C3%207.65351%203.23705%207.08121%203.65901%206.65926C4.08097%206.2373%204.65326%206.00025%205.25%206.00025H10'%20stroke='%23A3A3A3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function Vo({onClickFn:s,altText:t,imgSrc:a,cssStyle:i,spandata:n,spanfn:r}){return e.jsxs("button",{className:i,onClick:s,children:[e.jsx("img",{src:a,alt:t}),n&&r?e.jsx("span",{style:{fontSize:"14px",color:"#a7aaab",margin:"0 4px"},children:r(n)}):null]})}const vp=()=>{const{myAmboChats:s}=G(c=>c.ambo),[t,a]=b.useState(null),{gotonewchat:i,gotoAmbo:n,gotoAmboReport:r}=Be(),l=c=>{a(c),r(c)};return e.jsx(e.Fragment,{children:e.jsx("main",{className:"ambo__filter__main",children:e.jsxs("div",{className:"ambo__filter__container",children:[e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px",marginTop:"10px",marginBottom:"10px"},children:"History"}),e.jsx("div",{className:"ambo__history-container ambo_custom__Scroll",children:(s==null?void 0:s.length)>0?s==null?void 0:s.map(c=>{var o,p,h,d,u,m,f,v,N,_,x,j,I,w,y,k,S,g,E,C;return e.jsx(e.Fragment,{children:e.jsx("div",{onClick:()=>l(c==null?void 0:c._id),className:t===(c==null?void 0:c._id)?"history-fields-active":" ",children:e.jsx("div",{className:"history__fields",children:(p=(o=c==null?void 0:c.inside)==null?void 0:o.answers)!=null&&p.main?e.jsx(e.Fragment,{children:["Job Searching","Recruiting"].includes((d=(h=c==null?void 0:c.inside)==null?void 0:h.answers)==null?void 0:d.main)?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((m=(u=c==null?void 0:c.inside)==null?void 0:u.answers
154)==null?void 0:m.designation)}):((v=(f=c==null?void 0:c.inside)==null?void 0:f.answers)==null?void 0:v.main)==="Referring"?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((_=(N=c==null?void 0:c.inside)==null?void 0:N.answers)==null?void 0:_.referring_companies)}):((j=(x=c==null?void 0:c.inside)==null?void 0:x.answers)==null?void 0:j.main)==="Investment"?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((w=(I=c==null?void 0:c.inside)==null?void 0:I.answers)==null?void 0:w.inv_company_name)}):((k=(y=c==null?void 0:c.inside)==null?void 0:y.answers)==null?void 0:k.main)==="Service Request"?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((g=(S=c==null?void 0:c.inside)==null?void 0:S.answers)==null?void 0:g.serviceList)}):null}):e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((C=(E=c==null?void 0:c.inside)==null?void 0:E.answers)==null?void 0:C.designation)})})})})}):e.jsx("div",{className:"setnav__sidebar--types",children:e.jsx("p",{className:"text-white",children:"Give it a try!"})})})]})})})},A5=({open:s,handleClose:t,serviceType:a,handleStartNewChat:i})=>{const{myAmboChats:n}=G(o=>o.ambo),{gotoAmboReport:r}=Be();if(!s)return null;const l=(n==null?void 0:n.filter(o=>{var p,h;return((h=(p=o==null?void 0:o.inside)==null?void 0:p.answers)==null?void 0:h.main)===a}))||[],c=o=>{r(o),t()};return e.jsx("div",{className:"ambo-modal-overlay",onClick:t,children:e.jsxs("div",{className:"ambo-modal-content",onClick:o=>o.stopPropagation(),children:[e.jsxs("button",{className:"ambo-modal-new-chat-btn",onClick:i,children:[e.jsx("span",{className:"plus-icon",children:"+"})," Start new chat"]}),e.jsxs("div",{className:"ambo-modal-recent-section",children:[e.jsx("p",{className:"ambo-modal-recent-title",children:"Recent Chats"}),e.jsx("div",{className:"ambo-modal-chats-list",children:l.length>0?l.map(o=>{var d,u,m,f,v,N,_,x,j,I,w,y,k,S,g,E,C,T,A,R;let p="";["Job Searching","Recruiting"].includes((u=(d=o==null?void 0:o.inside)==null?void 0:d.answers)==null?void 0:u.main)?p=de((f=(m=o==null?void 0:o.inside)==null?void 0:m.answers)==null?void 0:f.designation):((N=(v=o==null?void 0:o.inside)==null?void 0:v.answers)==null?void 0:N.main)==="Referring"?p=de((x=(_=o==null?void 0:o.inside)==null?void 0:_.answers)==null?void 0:x.referring_companies):((I=(j=o==null?void 0:o.inside)==null?void 0:j.answers)==null?void 0:I.main)==="Investment"?p=de((y=(w=o==null?void 0:o.inside)==null?void 0:w.answers)==null?void 0:y.inv_company_name):((S=(k=o==null?void 0:o.inside)==null?void 0:k.answers)==null?void 0:S.main)==="Service Request"?p=de((E=(g=o==null?void 0:o.inside)==null?void 0:g.answers)==null?void 0:E.serviceList):p=de((T=(C=o==null?void 0:o.inside)==null?void 0:C.answers)==null?void 0:T.designation)||((R=(A=o==null?void 0:o.inside)==null?void 0:A.answers
154)==null?void 0:R.main);const h=new Date(o.createdAt).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"});return e.jsxs("div",{className:"ambo-modal-chat-item",onClick:()=>c(o._id),children:[e.jsx("p",{className:"ambo-modal-chat-title",children:p}),e.jsx("p",{className:"ambo-modal-chat-date",children:h})]},o._id)}):e.jsx("p",{className:"ambo-modal-no-chats",children:"No recent chats found."})})]})]})})},_p=({handleSendMessage:s})=>{var w;const[t,a]=b.useState(!1),[i,n]=b.useState(!1),[r,l]=b.useState(null),{serviceProviderChats:c}=G(y=>y.ambo),{user:o}=G(y=>y.auth),{userProfile:p}=G(y=>y.profile);b.useState(!1);const[h,d]=b.useState(null),{gotoSignIn:u,gotoProvider:m}=Be(),f=y=>{o?s("user",y):u()},v=Pt(y=>{f(y),d(null)},600),N=y=>{d(y),v(y)},_=()=>{m()},x=y=>h===y,j=y=>{y==="Investment"?iN():y==="Job Searching"?nN():y==="Recruiting"?oN():y==="Service Request"&&lN(),y==="Provide Service"?N(y):(l(y),n(!0))},I=()=>{n(!1),N(r)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"ambo_main_container",children:e.jsxs("div",{className:"ambo__newchat-container",children:[e.jsxs("div",{className:"ambo__newchat-container1",children:[o?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"ambo-heading",children:e.jsxs("span",{children:["Hello, ",de((w=p==null?void 0:p.user)==null?void 0:w.firstName)]})}),e.jsx("p",{className:"ambo__sub-heading",children:"What is our mission today?"})]}):e.jsxs(e.Fragment,{children:[e.jsx("img",{src:S5,alt:"agent ambo",style:{width:"160px",height:"160px",marginTop:"-100px"}}),e.jsxs("p",{className:"ambo-heading",children:["Meet, ",e.jsx("span",{className:"ambo-heading",children:"Agent Ambo"})]}),e.jsx("p",{className:"ambo__sub-heading",style:{fontSize:"20px",color:"#A3A3A3"},children:"An Agent for your growth"})]}),e.jsxs("div",{className:"choose__btn-container",children:[(c==null?void 0:c.length)>0?e.jsxs("button",{className:"choose__btn",onClick:()=>{rN(),_()},children:[e.jsx("img",{src:N5,alt:"add"}),e.jsx("p",{style:{textAlign:"start"},children:"Update Service info?"})]}):e.jsxs("button",{className:"choose__btn",onClick:()=>j("Provide Service"),disabled:h!==null,children:[e.jsx("img",{src:w5,alt:"add"}),e.jsx("p",{children:x("Provide Service")?e.jsx("span",{className:"spinner spinner-provider"}):"Find Clients ?"})]}),e.jsxs("button",{className:"choose__btn",onClick:()=>j("Service Request"),disabled:h!==null,children:[e.jsx("img",{src:k5,alt:"add"}),e.jsx("p",{children:x("Service Request")?e.jsx("span",{className:"spinner spinner-request"}):"Find Vendors ?"})]}),e.jsxs("button",{className:"choose__btn",onClick:()=>j("Job Searching"),disabled:h!==null,children:[e.jsx("img",{src:v5,alt:"add"}),e.jsx("p",{children:x("Job Searching")?e.jsx("span",{className:"spinner spinner-job"}):"Find a job?"})]}),e.jsxs("button",{className:"choose__btn",onClick:()=>j("Recruiting"),disabled:h!==null,children:[e.jsx("img",{src:_5,alt:"add"}),e.jsx("p",{children:x("Recruiting")?e.jsx("span",{className:"spinner spinner-recruiter"}):"Hire talent?"})]}),e.jsx(e.Fragment,{})]})]}),o?e.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"10px"},children:e.jsxs("button",{className:"chat-history-btn",onClick:()=>a(!t),children:[e.jsx("img",{src:C5,alt:"history"}),e.jsx("p",{children:"Chat History"})]})}):e.jsx(e.Fragment,{})]})}),e.jsxs(En,{className:"ambo-drawer",anchor:"left",open:t,onClose:()=>a(!1),onOpen:()=>a(!0),children:[e.jsxs("div",{onClick:()=>a(!1),className:"ambo-sidebar__container",children:[e.jsx("img",{src:Sn,alt:"filter",className:"ambo-sidebar__icons",onClick:y=>{y.stopPropagation(),a(!t)}}),e.jsx("p",{className:"ambo-sidebar__link",children:"Agent Ambo"})]}),e.jsxs("div",{className:"ambo-sidebar__container",onClick:y=>{y.stopPropagation(),handleNewChat()},style:{display:"flex",gap:"10px"},children:[e.jsx(Vo,{cssStyle:"ambo-sidebar__icons",imgSrc:qo}),e.jsx("p",{className:"label sidebar_label-newchat",children:"New Chat"})]}),e.jsx("div",{onClick:()=>a(!1),children:e.jsx(vp,{})})]}),e.jsx(A5,{open:i,handleClose:()=>n(!1),serviceType:r,handleStartNewChat:I})]})},E5="/assets/SuccessGIF-DEJXooQt.gif",M5=({open:s,handleClose:t,amboChatData:a})=>{const{gotoAmboReport:i}=Be(),n=()=>{i(a==null?void 0:a._id)};return e.jsx(e.Fragment,{children:e.jsx(qe,{open:s,onClose:()=>{t()},children:e.jsx(Ie,{sx:ru,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx("img",{src:E5,alt:"failure",style:{height:"150px",
154width:"150px"}}),e.jsx("p",{style:{color:"#FFFFFF",fontSize:"20px",fontWeight:"500"},children:"Success!"}),e.jsx("p",{style:{color:"#A7AAAB",fontSize:"14px",fontWeight:"400",textAlign:"center",marginTop:"10px",width:"400px"},children:"Matched top providers for your service"}),e.jsx("button",{className:"service-view__status mt-4",onClick:n,children:"View Details"})]})})})})};function Np(){const{myAmboChats:s}=G(d=>d.ambo),[t,a]=b.useState(!1),[i,n]=b.useState(null),r=Cs(),{gotonewchat:l,gotoAmbo:c,gotoAmboReport:o}=Be();b.useState(!1);const p=()=>{r.pathname==="/agent-ambo"?(l(),window.location.reload()):r.pathname==="/newchat"?(c(),window.location.reload()):c(),n(null)},h=d=>{n(d),o(d)};return e.jsx(e.Fragment,{children:e.jsx("div",{className:`sidebar ${t?"expanded":""}`,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:e.jsxs("ul",{className:"sidebar-items",children:[e.jsxs("li",{children:[e.jsx("div",{className:"sidebar_bg-img",children:e.jsx("img",{src:Sn})}),e.jsxs("p",{className:"label sidebar_label-tick",children:["Agent",e.jsx("span",{style:{fontWeight:"600"},children:"Ambo"})]})]}),e.jsxs("li",{className:"sidebar_newchat-conatiner",onClick:p,children:[e.jsx(Vo,{cssStyle:"ambo-sidebar__icons",imgSrc:qo}),e.jsx("p",{className:"label sidebar_label-newchat",children:"New Chat"})]}),e.jsx("main",{className:"ambo__filter__main label",children:e.jsxs("div",{className:"ambo__filter__container",children:[e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px",fontWeight:"500",margin:"10px 0px 10px 10px"},children:"History"}),e.jsx("div",{className:"ambo__history-container ambo_custom__Scroll",children:(s==null?void 0:s.length)>0?s==null?void 0:s.map(d=>{var u,m,f,v,N,_,x,j,I,w,y,k,S,g,E,C,T,A,R,P;return e.jsx(e.Fragment,{children:e.jsx("div",{onClick:()=>h(d==null?void 0:d._id),className:i===(d==null?void 0:d._id)?"history-fields-active":" ",children:e.jsx("div",{className:"history__fields",children:(m=(u=d==null?void 0:d.inside)==null?void 0:u.answers
154)!=null&&m.main?e.jsx(e.Fragment,{children:["Job Searching","Recruiting"].includes((v=(f=d==null?void 0:d.inside)==null?void 0:f.answers)==null?void 0:v.main)?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((_=(N=d==null?void 0:d.inside)==null?void 0:N.answers)==null?void 0:_.designation)}):((j=(x=d==null?void 0:d.inside)==null?void 0:x.answers)==null?void 0:j.main)==="Referring"?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((w=(I=d==null?void 0:d.inside)==null?void 0:I.answers)==null?void 0:w.referring_companies)}):((k=(y=d==null?void 0:d.inside)==null?void 0:y.answers)==null?void 0:k.main)==="Investment"?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((g=(S=d==null?void 0:d.inside)==null?void 0:S.answers)==null?void 0:g.inv_company_name)}):((C=(E=d==null?void 0:d.inside)==null?void 0:E.answers)==null?void 0:C.main)==="Service Request"?e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((A=(T=d==null?void 0:d.inside)==null?void 0:T.answers)==null?void 0:A.serviceList)}):null}):e.jsx("p",{style:{color:"#A3A3A3",fontSize:"14px"},children:de((P=(R=d==null?void 0:d.inside)==null?void 0:R.answers)==null?void 0:P.designation)})})})})}):e.jsx("div",{className:"setnav__sidebar--types",children:e.jsx("p",{className:"text-white",children:"Give it a try!"})})})]})})]})})})}const P5=()=>{const{gotoNotifications:s,gotoMessages:t,gotoFollow:a,gotoProfile:i,gotonewchat:n,gotoAmbo:r,gotoAllJobs:l,gotoHome:c}=Be(),{errorToast:o,successToast:p,warningToast:h,errorHandle:d}=he(),{permissions:u,userDetails:m,user:f}=G(F=>F.auth),[v,N]=b.useState([]),[_,x]=b.useState([]),[j,I]=b.useState("profile"),[w,y]=b.useState(!1),[k,S]=b.useState(!1),[g,E]=b.useState(!1),[C,T]=b.useState(null),A=()=>y(!0),R=Cs(),P=async()=>{var F,U;if((v==null?void 0:v.length)>=2)try{const Z=await zn({query:v,action:j,subType:m==null?void 0:m.subType,permissions:u});Z!=null&&Z.data&&((F=Z==null?void 0:Z.data)!=null&&F.usersData)&&x((U=Z==null?void 0:Z.data)==null?void 0:U.usersData)}catch(Z){d(Z)}else x([])},O=()=>e.jsx(e.Fragment,{children:m!=null&&m.unseenNotifications?e.jsx(e.Fragment,{children:e.jsx("div",{className:"display-flex-aljc-center notific_count"})}):null}),M=F=>()=>{S(F)},L=()=>{location.pathname==="/agent-ambo"?(n(),window.location.reload()):location.pathname==="/newchat"?(r(),window.location.reload()):r(),T(null)};return We(()=>{P()},[j,v]),e.jsxs(e.Fragment,{children:[e.jsx("nav",{className:"navbar-hero",children:e.jsx("main",{className:"display-flex-aic-jcsb navbar-parent",children:f?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"navbar__two",children:[e.jsx("div",{className:"sidebar-container",children:e.jsx("img",{src:Sn,alt:"sidebar",onClick:()=>E(!g)})}),e.jsx("aside",{className:"navbar__logo",style:{justifyContent:"flex-end"},children:e.jsx("p",{className:"label sidebar_label-tick",children:e.jsxs(is,{to:"/home",className:"navbar__Link",children:["Tick",e.jsx("span",{style:{fontWeight:"600"},children:"Big"})]})})})]}),e.jsxs("div",{className:"navbar__one",children:[e.jsxs("aside",{className:"navbar__icons",children:[e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${R.pathname==="/home"?"wrapIcon-outer-active":""}`,children:e.jsx("img",{onClick:()=>c(),src:_o,className:"navbar__icons--icon",alt:"amboIcon"})})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${R.pathname==="/jobs"?"wrapIcon-outer-active":""}`,children:e.jsx(Ws,{onClick:()=>l(),style:{padding:0},children:e.jsx(no,{autoplay:!0,loop:!0,src:Pu,className:"navbar__icons--icon",style:{width:30,height:30,left:"5px",top:"-8px"}})})})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${R.pathname==="/messages"?"wrapIcon-outer-active":""}`,children:e.jsx("img",{onClick:()=>t(),src:No,className:`navbar__icons--icon ${R.pathname.startsWith("/messages")?"navbar__icons--icon-active":""}`,alt:"messageIcon"})})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:`wrapIcon-outer ${["/follow","/followings","/connections"].some(F=>R.pathname.includes(F))?"wrapIcon-outer-active":""}`,children:e.jsx("img",{onClick:()=>a(),src:Tu,className:"navbar__icons--icon",alt:"people Icon"})})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsxs("div",{className:`wrapIcon-outer ${R.pathname==="/notification"?"wrapIcon-outer-active":""}`,children:[e.jsx("img",{onClick:()=>s(),src:Cu,className:"navbar__icons--icon ",alt:"notificationIcon"}),e.jsx(O,{})]})}),e.jsx("div",{className:"wrapIcon",style:{position:"relative"},children:e.jsx("div",{className:"wrapIcon-outer",children:e.jsx("img",{onClick:A,src:wo,className:"navbar__icons--icon",alt:"searchIcon"})})})]}),e.jsx("div",{className:"mobileNavbar__avatar",children:e.jsx("div",{className:"mobileNavbar__Icon",children:e.jsx(ss,{onClick:M(!0),src:m==null?void 0:m.avatar,alt:m.username,sx:{width:28,height:28}})})}),e.jsx("aside",{className:"navbar__profile",children:e.jsx(Ru,{})})]})]}):e.jsx("div",{className:"navbar__two",children:e.jsx("aside",{className:"navbar__logo",children:e.jsx("p",{children:e.jsxs(is,{to:"/home",className:"navbar__Link",children:["Tick",e.jsx("span",{children:"Big"})]})})})})})}),e.jsx(Qi,{open:k,onClose:M(!1),children:e.jsx(To,{})}),e.jsx(ko,{showSearchModal:w,setShowSearchModal:y}),e.jsxs(En,{className:"ambo-drawer",anchor:"left",open:g,onClose:()=>E(!1),onOpen:()=>E(!0),children:[e.jsxs("div",{onClick:()=>E(!1),className:"ambo-sidebar__container",children:[e.jsx("img",{src:Sn,alt:"filter",className:"ambo-sidebar__icons",onClick:F=>{F.stopPropagation(),E(!g)}}),e.jsx("p",{className:"ambo-sidebar__link",children:"Agent Ambo"})]}),e.jsxs("div",{className:"ambo-sidebar__container",onClick:F=>{F.stopPropagation(),L()},style:{display:"flex",gap:"10px"},children:[e.jsx(Vo,{cssStyle:"ambo-sidebar__icons",imgSrc:qo}),e.jsx("p",{className:"label sidebar_label-newchat",children:"New Chat"})]}),e.jsx("div",{onClick:()=>E(!1),children:e.jsx(vp,{})})]})]})},R5=()=>{const s=ge(),t=Cs(),a=async()=>{const n=await gp();s(Vh(n==null?void 0:n.data))},i=[];return We(()=>{a()},[]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"fdc homeWrap",children:[e.jsx("section",{className:"",children:e.jsxs("main",{children:[e.jsx(P5,{}),e.jsx("div",{className:"",children:e.jsx("div",{className:"col-lg-12",children:e.jsxs("div",{className:"",children:[e.jsx("div",{className:"",children:e.jsx(Np,{})}),e.jsx("div",{className:"display-flex-aljc-center outlet-margin-left",children:e.jsx($s,{})})]})})})]})}),!i.includes(t.pathname)&&e.jsx(Xa,{})]})})},Ni="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iIzAxQkY3MSIgaGVpZ2h0PScxNnB4JyB3aWR0aD0nMTZweCcgY2xhc3M9InNpemUtNiI+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0ibTQuNSAxMi43NSA2IDYgOS0xMy41IiAvPg0KPC9zdmc+DQo=",L5=({product:s,makingPayment:t,setPaymentId:a,previousPayment:i,setpreviousPayment:n,handleSendMessage:r})=>{const l=Cs(),{gotonewchat:c,gotoAmbo:o}=Be(),p=()=>{l.pathname==="/agent-ambo"?(c(),window.location.reload()):l.pathname==="/newchat"?(o(),window.location.reload()):o()};return e.jsx("div",{className:"ambopay__chat-footer",children:e.jsxs("div",{className:`ambo__pay-card ${s.name==="AGENT AMBO"?"ambo__pay-card--agent":"ambo__pay-card--default"}`,children:[e.jsxs("div",{className:"subscription_card-body subs__Card",children:[e.jsx("img",{src:Iu,alt:"close",style:{position:"absolute",right:20,top:14},onClick:p}),s.name!=="AGENT AMBO"?e.jsxs(e.Fragment,{children:[e.jsx("h5",{className:"ambo__pay-name",children:"Agent Ambo"}),e.jsx("p",{className:"ambo__pay-gst",children:"Unlock a smarter way to reach out to Investors"})]}):e.jsx(e.Fragment,{children:e.jsx("h5",{className:"ambo__pay-name",children:"Here’s What You Get"})}),s.name==="AGENT AMBO"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"benifits-container",children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e.jsx("label",{className:"benifits-container-label",children:"Smart Ap
154ply"}),e.jsx("img",{src:Ni,alt:"tick"})]}),e.jsx("p",{className:"benifits-container-p",children:"Automatically apply to relevant jobs with one click."})]}),e.jsxs("div",{className:"benifits-container",children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e.jsx("label",{className:"benifits-container-label",children:"Referral"}),e.jsx("img",{src:Ni,alt:"tick"})]}),e.jsx("p",{className:"benifits-container-p",children:"Easily reach out and request referrals from people in our platform."})]}),e.jsxs("div",{className:"benifits-container",children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[e.jsx("label",{className:"benifits-container-label",children:"Recruiter"}),e.jsx("img",{src:Ni,alt:"tick"})]}),e.jsx("p",{className:"benifits-container-p",children:"View posts directly from recruiters and connect with them instantly.."})]})]}),e.jsx("h4",{className:"ambo__pay-price",style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"8px"},children:e.jsxs("span",{children:["₹ ",s.price.toFixed(2)]})}),e.jsx("h6",{className:"ambo__pay-gst",children:"+ 18% GST for 30 Days / Designation"}),e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"textDesc",children:s.description})})]}),e.jsx("div",{className:"text-center paynow-button",children:e.jsx("button",{className:"ambo__pay-btn",onClick:()=>{cN(),t()},children:"Pay Now"})})]})})},rn=async(s,t)=>new Promise((a,i)=>{const n={key:"rzp_live_pofZ7aVTl6WB6E",amount:s.instanceValue.amount,currency:s.instanceValue.currency,order_id:s.instanceValue.id,description:"",handler:async l=>{if(!l.razorpay_payment_id||!l.razorpay_order_id||!l.razorpay_signature)return await vu({...l,...s}),console.error("Razorpay response is missing details."),i("Payment verification failed: Missing Payment details");try{const c=await fN(l,t==null?void 0:t.email);it.dispatch(u2()),a({paymentId:s.orderId,razorpay_payment_id:l.razorpay_payment_id,razorpay_order_id:l.razorpay_order_id,verificationData:c,message:"Payment success"})}catch(c){i(c)}},prefill:{contact:t==null?void 0:t.mobile,name:t==null?void 0:t.username,email:t==null?void 0:t.email},notes:{description:"tickbig"},theme:{color:"#2300a3"}};var r=new window.Razorpay(n);r.on("payment.failed",function(l){i(l)}),setTimeout(()=>{r.open()},1e3)}),wp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%20height='20px'%20width='20px'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M13.5%206H5.25A2.25%202.25%200%200%200%203%208.25v10.5A2.25%202.25%200%200%200%205.25%2021h10.5A2.25%202.25%200%200%200%2018%2018.75V10.5m-10.5%206L21%203m0%200h-5.25M21%203v5.25'%20/%3e%3c/svg%3e",F5=({main:s,amboChatData:t,submitModal:a,setSubmitModal:i})=>{var h,d,u,m;const{gotoAmboReport:n,gotoProvider:r}=Be(),[l,c]=b.useState(""),o=()=>{i(!1),s==="Provide Service"?r():n(t==null?void 0:t._id)},p=f=>{/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)&&(f.preventDefault(),c("⚠ Supported only on desktop or laptop, not on mobile"))};return e.jsx(e.Fragment,{children:e.jsx(qe,{open:a,onClose:()=>{i(!1),window.location.reload()},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:U2,children:e.jsxs("div",{className:"payment-container",children:[e.jsx("p",{className:"payment-success",children:"Submitted Successfully"}),e.jsx("p",{className:"loading-text",children:Ba((d=(h=t==null?void 0:t.inside)==null?void 0:h.answers)==null?void 0:d.main)}),e.jsx(Os,{}),(t==null?void 0:t.status)==="completed"&&((u=t==null?void 0:t.inside)!=null&&u.resumeScore)?e.jsxs("div",{className:"payment-btn-container",children:[e.jsx("p",{className:"logo-text",children:"Profile Score"}),e.jsxs("p",{style:{color:"var(--accent-color-hire)",fontSize:"18px"},children:[(m=t==null?void 0:t.inside)==null?void 0:m.resumeScore,"%"]}),e.jsx(Os,{})]}):null,e.jsx("p",{className:"loading-text",children:"Head over to the link below to access Reports of this chat."}),e.jsxs("div",{className:"payment-btn-container",children:[e.jsx("button",{onClick:o,className:"ffcards__cancel-btn",style:{padding:"15px 16px"},children:"View Report"}),e.jsxs("a",{href:"https://chromewebstore.google.com/detail/agent-ambo-smart-apply/nipmfaebpejapgciaokekmckmfhcclff",target:"_blank",rel:"noopener noreferrer",className:"add-to-btn service-btn",onClick:p,children:[e.jsx("label",{children:"Start Automation"}),e.jsx("img",{src:wp,className:"redirect-icons",alt:"redirect"})]}),l&&e.jsx("p",{style:{color:"#FF5F57",marginTop:"10px",fontSize:"14px"},children:l})]})]})})})})};function Dl({isModalOpen:s,setIsModalOpen:t}){return e.jsx(qe,{open:s,onClose:()=>t(!1),"aria-labelledby":"modal-title",children:e.jsx(Ie,{sx:ja,children:e.jsxs("div",{className:"custom__Scroll",children:[e.jsx("div",{className:"modal-container-Heading",children:e.jsx("h5",{children:"Terms and Conditions (For Job Seekers)"})}),e.jsxs("div",{className:"modal-content",children:[e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["Welcome to ",e.jsx("b",{children:"Agent Ambo"}),", a feature provided by"," ",e.jsx("b",{children:"TickBig Networking Media Private Limited"}),'("Company," "we," "us," or "our"). By using the Agent Ambo service, you ("User" or "you") agree to comply with and be bound by these Terms and Conditions ("Terms"). If you do not agree to these Terms, please do not use the service.']}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Acceptance of Terms"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By using Agent Ambo, you accept and agree to these Terms and any other policies or guidelines posted on the Platform. We may modify these Terms from time to time, and any changes will be effective immediately upon posting. You are responsible for reviewing these Terms periodically to stay informed of any updates."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Purpose of the Service"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo is a service provided to assist users with job placements, project acquisition, funding, and related opportunities. By using this feature, you acknowledge that your details, including but not limited to your digital portfolio, resume, contact information, and other relevant personal information, may be shared with third parties both within and outside the Platform for the purpose of fulfilling job placements, project acquisitions, funding opportunities, or any other services available through the Platform."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. Sharing of Your Details"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By using the Agent Ambo service, you agree that we may share your personal details (such as your resume, digital portfolio, contact details, etc.) with parties inside and outside the Platform. These third parties may include potential employers, clients, collaborators, or funding organizations."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We make this information available to relevant parties for the purpose of job placement, project acquisition, funding, or other services that align with your professional goals. However, we cannot guarantee any specific outcomes such as job interviews, client acquisition, or any other conversions."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. No Guarantee of Conversions"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["While Agent Ambo aims to connect you with relevant opportunities, the payment of any platform or service fees does not guarantee any of the following outcomes:",e.jsxs("ul",{children:[e.jsx("li",{children:"Interview calls"}),e.jsx("li",{children:"Job placements"}),e.jsx("li",{children:"Client acquisition"}),e.jsx("li",{children:"Any specific result tied to the services provided"})]}),"We are not responsible for any lack of conversions or outcomes related to your use of Agent Ambo."]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. Confidentiality and Proprietary Methods"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Due to the nature of our service and the confidentiality of our processes, we are unable to provide a detailed report or disclosure on where and to whom your details have been shared. Our methodologies for sharing your information are proprietary and are handled with strict confidentiality. As such, we do not offer transparency regarding specific placements or outreach conducted by our platform or third parties."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. User Account and Information"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"To use the Agent Ambo feature, you may be required to create an account. You agree to provide accurate, current, and complete information when setting up your account. You are responsible for maintaining the confidentiality of your account details and for all activity under your account."}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["You are also responsible for ensuring that the information you provide to"," ",e.jsx("b",{children:"Agent Ambo"}),", including but not limited to your ",e.jsx("b",{children:"digital portfolio, resume"}),", and ",e.jsx("b",{children:"contact details"}),", is truthful and accurate."," ",e.jsx("b",{children:"Failure to provide accurate information may result in your suspension or termination of access to Agent Ambo."})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. Fees and Payments"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"While using the Platform, you may incur service fees related to Agent Ambo. The payment of these fees does not guarantee success in terms of job placements, project opportunities, or any other conversions. Payment terms will be specified separately for paid services."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Disclaimers"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:'Agent Ambo is provided "as is" and "as available," with no warranties of any kind, either express or implied. We do not guarantee that your experience with the service will result in specific outcomes, including but not limited to job offers, project acquisitions, or client contracts.'}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Limitation of Liability"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"To the fullest extent permitted by law, TickBig Networking Media Private Limited and its affiliates, agents, and employees will not be liable for any direct, indirect, incidental, special, or consequential damages arising from your use of the service, including but not limited to failure to obtain a job or project, loss of data, or any other related losses."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Termination of Service"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We reserve the right to suspend or terminate your access to Agent Ambo at our discretion, without notice, for any reason, including but not limited to violations of these Terms or if the information provided by you is found to be inaccurate or false."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"11. Governing Law"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"These Terms and any disputes arising out of or in connection with your use of the Platform will be governed by and construed in accordance with the laws of Chennai, India, without regard to its conflict of law provisions."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"12. Dispute Resolution"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any disputes or claims arising from these Terms or your use of the service will be resolved through arbitration in Chennai, India. You agree to submit to the personal jurisdiction of the courts located there."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"13. Miscellaneous"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"If any provision of these Terms is found to be invalid or unenforceable, the remaining provisions will remain in effect. These Terms represent the entire agreement between you and TickBig Networking Media Private Limited regarding your use of Agent Ambo."}),e.jsxs("div",{className:"modal-container-Heading",children:[e.jsx("h5",{children:"Agent Ambo - Privacy Policy"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Job Search Automation"})]}),e.jsxs("div",{className:"modal-content",children:[e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Information We Collect"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We collect the following categories of information:"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"1.1 Personal Information"}),e.jsx("li",{children:"- Name, Email, Phone number"}),e.jsx("li",{children:"- Resume and CV content"}),e.jsx("li",{children:"- Location and Job Preferences"}),e.jsx("li",{children:"- Work Experience, Skills, Education"})]}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"1.2 Account Credentials for Third-Party Portals (Optional)"}),e.jsx("li",{children:"- Username and password for external job portals (if you choose to use our Chrome Plugin)"})]}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"⚠️ We do not store or save passwords permanently. They used only temporarily to log into job portals via your Chrome browser."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. How We Use Your Information"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Your information is used for the following purposes:"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"- To automate job searches and apply to jobs on your behalf"}),e.jsx("li",{children:"- To share your resume and profile with potential employers"}),e.jsx("li",{children:"- To personalize job suggestions and optimize automation"}),e.jsx("li",{children:"- To generate reports on job application status (if applicable)"}),e.jsx("li",{children:"- To improve service performance and feature usage analytics"})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. Chrome Plugin – Special Data Use"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"If you choose to use the Google Chrome Plugin:"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"- The plugin will use your credentials to log in and apply to jobs on your behalf on third-party platforms."}),e.jsx("li",{children:"- Your data is processed locally in your browser, and n
154o passwords are stored on our servers."}),e.jsx("li",{children:"- We may collect basic logs for debugging (e.g., application count or errors), but not the content of your job portal accounts."})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Sharing of Your Data"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We may share your profile, resume, and job-related information with:"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"- Employers and recruiters seeking candidates"}),e.jsx("li",{children:"- Third-party platforms where job applications are submitted"}),e.jsx("li",{children:"- Internal stakeholders and technology partners who maintain and support our service"})]}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"⚠️ We do not sell your data to third-party marketing companies or advertisers."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. Data Security"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We implement robust security measures to protect your data from unauthorized access or disclosure, including:"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"- HTTPS encryption"}),e.jsx("li",{children:"- Role-based access control"}),e.jsx("li",{children:"- Local processing for plugin actions"})]}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"However, please note that no system is 100% secure, especially when dealing with third-party job portals. You are advised to use strong, unique passwords and practice caution."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. Retention of Information"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We retain your data:"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"- As long as your subscription is active"}),e.jsx("li",{children:"- For the time needed to fulfill our services"}),e.jsx("li",{children:"- Until you explicitly request deletion via [email protected]"})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. User Responsibility"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"- You are responsible for the accuracy of the information you provide"}),e.jsx("li",{children:"- You must ensure you have the right to submit any login credentials or resumes"}),e.jsx("li",{children:"- You are advised to periodically change passwords on external job portals"})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. No Guarantee"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The automation process does not guarantee job placements, responses, or platform compatibility. We are not responsible if:"}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:"- The plugin fails to function due to third-party site changes"}),e.jsx("li",{children:"- Your job portal accounts are locked or blocked"}),e.jsx("li",{children:"- Any data loss occurs due to external issues beyond our control"})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Children’s Privacy"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo is not intended for individuals under the age of 18. We do not knowingly collect data from minors."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Jurisdiction"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"All matters relating to this policy are governed by the laws of Chennai, India. Any disputes are subject to jurisdiction in Chennai, Tamil Nadu."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"11. Your Rights"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"You may: "}),e.jsxs("ul",{className:"jpfi_modal-documentupload-label",children:[e.jsx("li",{children:" - Request to access or correct your data"}),e.jsx("li",{children:"- Withdraw consent by discontinuing use"}),e.jsx("li",{children:"- Request deletion of your profile by emailing us"})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"12. Contact Us"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["If you have any questions, concerns, or requests regarding your data:"," "]}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:[e.jsx("a",{href:"mailto:[email protected]",children:"📧 [email protected]"}),"."]}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"🏢 TickBig Networking Media Private Limited, Chennai, India"}),e.jsx("div",{className:"mt-4"})]})]})]})})})}function B5({isModalOpen:s,setIsModalOpen:t}){return e.jsx(e.Fragment,{children:e.jsx(qe,{open:s,onClose:()=>t(!1),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:ja,children:e.jsxs("div",{className:"custom__Scroll",children:[e.jsx("div",{className:"modal-container-Heading",children:e.jsx("h5",{children:"Terms and Conditions (For Recruiters)"})}),e.jsxs("div",{className:"modal-content",children:[e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["Welcome to ",e.jsx("b",{children:"Agent Ambo"}),", a feature provided by"," ",e.jsx("b",{children:"TickBig Networking Media Private Limited"}),' ("Company," "we," "us," or "our"). By using the Agent Ambo service to post your requirements for jobs, projects, or investments, you ("Client" or "you") agree to comply with and be bound by these Terms and Conditions ("Terms"). If you do not agree to these Terms, please refrain from using the service.']}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Acceptance of Terms"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By using Agent Ambo to post your requirements, you accept and agree to these Terms, as well as any other policies or guidelines posted on the Platform. We may modify these Terms from time to time, and any changes will be effective immediately upon posting. You are responsible for reviewing these Terms periodically to stay informed of any updates."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Purpose of the Service"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo allows you to post your requirements related to jobs, projects, investments, or other related opportunities. Even if you have not signed up on the TickBig platform, you can still engage with Agent Ambo to submit your needs. We will use your contact information and details to reach out to you and connect you with relevant users from the platform who can fulfill your requirements."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. Requirement Submission"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["You are responsible for ensuring that the requirements you post are accurate, truthful, and not misleading. You agree not to use Agent Ambo to post any content that:",e.jsxs("ul",{children:[e.jsx("li",{children:"Is false, misleading, or irrelevant."}),e.jsx("li",{children:"Spams the platform with unnecessary or repeated postings."}),e.jsx("li",{children:"Promotes illegal activities or violates any laws."})]}),"If we identify that your submissions violate these guidelines, we reserve the right to suspend or terminate your access to Agent Ambo."]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Collection of Contact Details and Communication"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"When you submit your requirements through Agent Ambo, we will c
154ollect your contact details, including but not limited to your phone number, email address, and any other information necessary for fulfilling your request. You acknowledge that we will use this information to share relevant resources or details from our platform to assist you in meeting your requirements. By submitting your contact information, you consent to receiving communications from us at the contact details provided, in order to share the required resources or updates."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. Confidentiality of Shared Information"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["When we share the details of our resources or users with you, we provide that information on the condition that it will remain ",e.jsx("b",{children:"confidential."})," You agree:",e.jsxs("ul",{children:[e.jsx("li",{children:"Not to share the details of any resource or user you receive with anyone else."}),e.jsxs("li",{children:["Not to use the shared information for any purpose other than reaching out to the user/resource ",e.jsx("b",{children:"once"})," regarding your requirement."]}),e.jsx("li",{children:"To respect the confidentiality of all information shared with you and to use it solely for the purpose of fulfilling your requirements."})]}),"If a user indicates they are not proceeding with your request, you must ",e.jsx("b",{children:"not"})," ","reach out to them again, and you must cease any further attempts at communication."]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. Prohibited Use and Misuse of Information"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["You acknowledge that the contact details and resources shared with you are provided solely for the purpose of your requirements. Any misuse of this information, such as:",e.jsxs("ul",{children:[e.jsx("li",{children:"Sharing it with unauthorized third parties."}),e.jsx("li",{children:"Using it to contact users or resources for any purposes other than the initial inquiry."}),e.jsx("li",{children:"Spamming or otherwise disrupting the service."})]}),"Will be considered a ",e.jsx("b",{children:"violation"})," of these Terms and may result in"," ",e.jsx("b",{children:"legal action"}),". We reserve the right to take appropriate measures, including seeking legal remedies, if we detect any abuse or violation of the platform’s policies."]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. No Guarantee of Fulfillment"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"While Agent Ambo aims to assist you in finding relevant users or resources to fulfill your requirements, we do not guarantee that every requirement will result in a successful match, project, or investment. The payment of service fees does not guarantee a specific outcome or fulfillment of your request."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Limitation of Liability"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig Networking Media Private Limited and its affiliates will not be liable for any indirect, incidental, or consequential damages arising from your use of Agent Ambo or your failure to fulfill or complete your requirements. We do not guarantee the accuracy, completeness, or availability of any resource or user information provided through the platform."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Termination of Service"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We reserve the right to suspend or terminate your access to Agent Ambo at our discretion, without notice, for any reason, including but not limited to violations of these Terms. Continued misuse or spamming may result in permanent removal from the platform."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Governing Law"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["These Terms will be governed by and construed in accordance with the laws of"," ",e.jsx("b",{children:"Chennai, India"}),", without regard to its conflict of law provisions."]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"11. Dispute Resolution"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["Any disputes or claims arising out of or in connection with these Terms or your use of the service will be resolved through arbitration in ",e.jsx("b",{children:"Chennai, India"}),". You agree to submit to the personal jurisdiction of the courts located there."]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"12. Miscellaneous"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:e.jsxs("ul",{children:[e.jsx("li",{children:"If any provision of these Terms is found to be invalid or unenforceable, the remaining provisions will remain in effect."}),e.jsx("li",{children:"These Terms represent the entire agreement between you and TickBig Networking Media Private Limited regarding your use of Agent Ambo."})]})}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"Contact Us"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["If you have any questions or concerns about these Terms, please contact us at"," ",e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})})})})}function O5({isModalOpen:s,setIsModalOpen:t}){return e.jsx(qe,{open:s,onClose:()=>t(!1),"aria-labelledby":"modal-title",children:e.jsx(Ie,{sx:ja,children:e.jsxs("div",{className:"custom__Scroll",children:[e.jsxs("div",{className:"modal-container-Heading",children:[e.jsx("h5",{children:"Terms and Conditions"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo – Fundraising Automation"})]}),e.jsxs("div",{className:"modal-content",children:[e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Effective Date: June 04, 2025"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Platform: TickBig"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Service: Agent Ambo – Fundraising Automation"}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Acceptance of Terms"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By accessing or using Agent Ambo, you (“User”, “You”) agree to be bound by these Terms and Conditions."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"If you do not agree, please do not use this service."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Service Description"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo is a proprietary fundraising outreach feature offered by TickBig. It collects business-related information from you—including but not limited to turnover, financial forecast, industry, business idea, and pitch deck—and uses this information to initiate automated outreach to potential investors."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The outreach process is proprietary and will not be disclosed to users."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"A summary report will be provided, indicating which investor firms were contacted."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"No guarantees are provided regarding investor interest, pitch meetings, or actual funding."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. User Responsibilities"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By using Agent Ambo, you agree to:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Provide accurate, complete, and truthful information."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Review your inputs carefully before submission. Once submitted, the information cannot be edited or revised."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Refrain from submitting false, misleading, or spam content."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Take sole responsibility for any future communications with investors that may occur as a result of this outreach."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Comply with all applicable legal and regulatory requirements."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Communication & Follow-up"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig’s role is limited to the initial automated outreach. If investors choose to respond, they may contact you via:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig’s messaging platform"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The email or phone number you provided during submission"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig is not involved in or responsible for further communications, decisions, or negotiations that may follow."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. No Guarantees"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By using Agent Ambo, you acknowledge and agree that:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig does not guarantee any investor response, meeting, or funding."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The feature performs outreach on a best-effort basis using your submitted data."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Final investment decisions rest solely with the investors."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. Subscription Fees & Refund Policy"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The subscription fee paid covers only the automation and outreach functionality."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"No refunds will be issued under any circumstances."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Payment does not guarantee any response, interest, or funding from investors."}),e.jsx("div",{className:"mt-4"}
154),e.jsx("h6",{children:"7. Confidentiality of Outreach Process"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig’s method of identifying and reaching out to investors is confidential and proprietary."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Users will only receive a report listing investor firms contacted, without disclosure of the outreach mechanism."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Limitation of Liability"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig shall not be liable for:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any misrepresentations or inaccuracies in the data provided by users."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any outcome of communication between the user and investors."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any direct or indirect loss of business, opportunity, or reputation."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any misuse of information by third parties or investors."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Account Suspension & Termination"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig reserves the right to suspend or permanently terminate access to Agent Ambo if a user:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Submits false or deceptive information"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Violates these Terms and Conditions"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Engages in behavior deemed harmful or unethical"}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Governing Law and Jurisdiction"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"These Terms shall be governed by the laws of India, and any disputes shall be subject to the exclusive jurisdiction of courts located in Chennai, Tamil Nadu."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"11. Modifications"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig reserves the right to update or amend these Terms at any time without prior notice."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Continued use of Agent Ambo after such changes constitutes acceptance of the updated Terms."}),e.jsxs("div",{className:"modal-container-Heading",children:[e.jsx("h5",{children:"Privacy Policy"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo: Fundraising Automation"})]}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Effective Date: June 04, 2025"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Platform: TickBig"}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Information We Collect"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We collect business-related and personal information including but not limited to: business name, turnover, financial forecast, industry, business idea, pitch deck, and contact details."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Purpose of Collection"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"This information is collected solely to conduct automated outreach to potential investors on behalf of the user."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. Sharing of Information"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"User information will be shared with potential investors."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We do not disclose our proprietary outreach methods."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Data Retention"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Information is retained only as long as required to perform the outreach or as permitted by applicable law."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. Security"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We implement reasonable security measures to protect user data. However, no system is completely secure."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. No Resale of Data"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"User data is not sold or shared with any third-party entities beyond the intended investors."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. User Responsibility"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Users are responsible for ensuring the accuracy of submitted data and should avoid submitting false or misleading information."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Future Communications"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Investors may contact users directly via the contact information provided."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig is not responsible for any communications post outreach."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Legal Jurisdiction"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"All matters relating to privacy shall be governed by the laws of India."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The jurisdiction will be the courts of Chennai, Tamil Nadu."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Contact Us"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["For questions or concerns regarding these Terms, contact us at"," ",e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})})})}function U5({isModalOpen:s,setIsModalOpen:t}){return e.jsx(qe,{open:s,onClose:()=>t(!1),"aria-labelledby":"modal-title",children:e.jsx(Ie,{sx:ja,children:e.jsxs("div",{className:"custom__Scroll",children:[e.jsxs("div",{className:"modal-container-Heading",children:[e.jsx("h5",{children:"Terms and Conditions"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo – Service Requestors"})]}),e.jsxs("div",{className:"modal-content",children:[e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Acceptance of Terms"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By accessing or using Agent Ambo for Service Requests, you (“User”, “You”) agree to be bound by these Terms and Conditions."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"If you do not agree, please do not use this service."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Service Description"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo for Service Requestors allows individuals or businesses to request various personal or business-related services. Users will be asked to submit details including the type of service required, preferred location, budget, personal information, and contact details."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"These submitted details will be shared with selected service providers."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig does not guarantee the quality, authenticity, or expertise of any service provider contacted or referred."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig plays no role in the actual delivery, negotiation, or quality assurance of the requested services."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. User Responsibilities"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"By using this feature, you agree to:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Provide accurate and truthful information regarding the service request."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Conduct your own due diligence and background checks on any service provider before engaging with them."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Accept full responsibility for your interactions with service providers."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Not hold TickBig liable for any loss, fraud, scam, or dissatisfaction arising from services provided by third parties."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Communication with Service Providers"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Your contact and request details will be shared with selected service providers."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig does not control the timing, content, or nature of future communications from those providers."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Service providers may contact you again in the future based on your request or prior engagement."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig is not responsible for regulating or limiting such follow-ups."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. No Guarantees"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig does not guarantee:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"That the service provider will respond to your request."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The quality, safety, legality, or professionalism of any services provided."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"The avoidance of scams or spam from any listed service provider."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. Limitation of Liability"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig is not liable for:"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any damages, losses, or issues caused by service providers."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any misrepresentation, fraud, or malpractice by third-party providers."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any breach of contract, delay, or dispute between you and the service provider."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Any unsolicited communication from service providers."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. Governing Law and Jurisdiction"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"These Terms shall be governed by the laws of India, and any disputes shall be subject to the exclusive jurisdiction of courts located in Chennai, Tamil Nadu."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Modifications"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig reserves the right to update or amend these Terms at any time without prior notice."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Continued use of Agent Ambo for Service Requests after such changes constitutes acceptance of the updated Terms."}),e.jsxs("div",{className:"modal-container-Heading",children:[e.jsx("h5",{children:"Privacy Policy"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Agent Ambo: Service Requestors"})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Information We Collect"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We collect details such as service type, location, budget, personal name, and contact information including phone and email."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Purpose of Collection"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"This data is used to share the service request with relevant service providers for the purpose of facilitating a potential engagement."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. Sharing of Information"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"User details are shared with selected service providers."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig does not control or monitor further use or communication."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Data Retention"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We retain user data only as long as required to facilitate the service request or comply with legal requirements."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. Security"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"We take reasonable measures to protect user information but cannot guarantee 100% security against all breaches."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. No Resale of Data"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"User data is not sold or used for unsolicited marketing."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"It is shared only with intended service providers."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. Risk & User Responsibility"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Users should perform their own due diligence before engaging any service provider."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig is not responsible for scams, spam, or poor service."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Ongoing Contact"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Service providers may contact users in the future."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"TickBig has no control or liability over such communication."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Legal Jurisdiction"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"All privacy-related matters shall be governed by the laws of India with jurisdiction in Chennai, Tamil Nadu."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Contact Us"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["For questions or concerns regarding these Terms, contact us at"," ",e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})})})}function D5({isModalOpen:s,setIsModalOpen:t}){return e.jsx(qe,{open:s,onClose:()=>t(!1),"aria-labelledby":"modal-title",children:e.jsx(Ie,{sx:ja,children:e.jsxs("div",{className:"custom__Scroll",children:[e.jsxs("div",{className:"modal-container-Heading",children:[e.jsx("h5",{children:"Terms and Conditions"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Service Providers (Personal & Business)"})]}),e.jsxs("div",{className:"modal-content",children:[e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Acceptance of Terms"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"1.1 By subscribing to or using the Agent Ambo service for Service Providers, you (“Service Provider,” “User,” or “You”) agree to comply fully with these Terms and Conditions."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"1.2 If you do not agree with any part of these Terms, you must not use or subscribe to the service."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Service Description"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"2.1 The Agent Ambo service allows individuals and businesses to register and showcase their services on TickBig’s platform."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"2.2 These services will be made visible to potential clients or prospects who request services within the User’s domain, industry, or specified geographical areas."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"2.3 TickBig facilitates the connection between service providers and potential clients by sharing relevant client requests with Service Providers."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. User Representations and Warranties"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"3.1 You represent and warrant that all information you provide, including but not limited to service descriptions, professional credentials, contact information, and service areas, is accurate, truthful, and genuine."}),e.jsx("p",{c
154lassName:"jpfi_modal-documentupload-label",children:"3.2 You acknowledge and agree not to submit any fraudulent, misleading, or false information at any time."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"3.3 You agree to maintain professionalism and ethical conduct in all communications with clients or prospects obtained via TickBig."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Use of Service and Conduct"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"4.1 You acknowledge that TickBig is a platform to facilitate introductions and is not responsible for client outcomes, payments, or business dealings."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"4.2 You agree that any engagement with clients, including negotiation, payment, service delivery, and dispute resolution, is solely between you and the client."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"4.3 You agree to conduct due diligence on every client, including verifying the legitimacy and background of prospective clients before entering into any agreements."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. Subscription and Fees"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"5.
1541 Subscription fees paid for the Agent Ambo service provide visibility of your services only when a matching client requests service in your area or domain."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"5.2 TickBig makes no guarantees regarding the number of leads, clients, or successful conversions you may receive."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"5.3 You acknowledge that it is possible you may receive no leads or clients during your subscription period."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"5.4 All subscription fees are strictly non-refundable, regardless of usage or outcomes."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. Data Sharing and Communication"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"6.1 By subscribing, you consent to TickBig sharing your contact and service details with potential clients who have requested matching services."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"6.2 Potential clients may contact you directly via the contact information you provide. TickBig does not monitor, control, or guarantee the nature or quality of these communications."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"6.3 You acknowledge and agree that TickBig is not liable for any disputes, damages, or losses arising from communications or transactions between you and clients."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. Intellectual Property"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"7.1 You retain ownership of the service information and content you submit."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"7.2 You grant TickBig a non-exclusive, royalty-free license to use, reproduce, and display your service information solely for the purpose of providing the Agent Ambo service."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Suspension and Termination"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"8.1 TickBig reserves the right to suspend or terminate your access to the service without notice if you violate these Terms or engage in fraudulent or unethical conduct."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"8.2 Termination does not entitle you to any refund of fees already paid."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Limitation of Liability"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"9.1 To the maximum extent permitted by law, TickBig shall not be liable for any indirect, incidental, consequential, or punitive damages arising out of your use of the service or interactions with clients."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"9.2 TickBig’s total liability under or in connection with these Terms shall not exceed the subscription fees paid by you."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Governing Law and Jurisdiction"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"10.1 These Terms shall be governed by and construed under the laws of India."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"10.2 Any disputes arising from these Terms or the use of the service shall be subject to the exclusive jurisdiction of courts in Chennai, Tamil Nadu."}),e.jsxs("div",{className:"modal-container-Heading",children:[e.jsx("h5",{children:"Privacy Policy"})," ",e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"Service Providers (Personal & Business)"})]}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"1. Information We Collect"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"1.1 We collect information you provide, including but not limited to your name, business name, service categories, professional credentials, contact details (email, phone), and service areas."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"1.2 Additional data collected may include usage data, interaction data, and communication history related to the service."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"2. Purpose of Collection"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"2.1 The information collected is used to facilitate matching your service offerings with relevant client requests."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"2.2 It enables TickBig to share your profile and contact details with prospective clients for service engagement purposes."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"3. Data Sharing and Disclosure"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"3.1 We share your data only with potential clients who request services matching your profile and service areas."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"3.2 TickBig does not sell or rent your personal data to third parties for marketing or advertising."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"3.3 We do not control how clients use your data once shared and disclaim any liability for third-party use."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"4. Data Retention"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"4.1 We retain your information only as long as necessary to provide the service or comply with applicable legal requirements."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"4.2 Upon termination of your subscription or request, data may be deleted or anonymized in accordance with data protection regulations."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"5. Security Measures"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"5.
1541 We implement reasonable technical and organizational measures to safeguard your personal data against unauthorized access, alteration, disclosure, or destruction."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"5.2 Despite these efforts, no method of transmission or storage is completely secure, and we do not guarantee absolute security."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"6. User Rights"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"6.1 You may request access to, correction of, or deletion of your personal data by contacting TickBig’s support team."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"6.2 Requests will be processed in accordance with applicable laws and TickBig’s internal policies."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"7. Cookies and Tracking"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"7.1 TickBig may use cookies and similar technologies to enhance user experience and service delivery."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"7.2 Details on cookie use are available in TickBig’s broader Privacy Policy (linked on the platform)."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"8. Changes to Privacy Policy"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"8.1 TickBig reserves the right to update this Privacy Policy as necessary."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"8.2 Users will be notified of material changes through the platform or via registered contact information."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"9. Governing Law and Jurisdiction"}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"9.1 This Privacy Policy is governed by the laws of India."}),e.jsx("p",{className:"jpfi_modal-documentupload-label",children:"9.2 Any disputes will be subject to the exclusive jurisdiction of courts in Chennai, Tamil Nadu."}),e.jsx("div",{className:"mt-4"}),e.jsx("h6",{children:"10. Contact Us"}),e.jsxs("p",{className:"jpfi_modal-documentupload-label",children:["For questions or concerns regarding these Terms, contact us at"," ",e.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})})})}const q5=({postData:s,term:t,onModalClose:a,setChatSubmitModal:i,chatsubmitModal:n})=>{const[r,l]=b.useState(!1),[c,o]=b.useState(!1),[p,h]=b.useState(!1),d=v=>{l(v.target.checked)},u=async()=>{h(!0),t==="Provide Service"?await s():i(!n)},m=()=>{o(!1),p&&a&&a()},f=()=>{const v={isModalOpen:c,setIsModalOpen:m};switch(t){case"Recruiting":return e.jsx(B5,{...v});case"Job Searching":return e.jsx(Dl,{...v});case"Investment":return e.jsx(O5,{...v});case"Service Request":return e.jsx(U5,{...v});case"Provide Service":return e.jsx(D5,{...v});default:return e.jsx(Dl,{...v})}};return e.jsx(e.Fragment,{children:p?e.jsx("div",{className:"ambo__chatbot_options-container",style:{flexDirection:"column",alignItems:"flex-start"},children:e.jsx("p",{className:"text-white",children:"Submitting ..."})}):e.jsxs("div",{className:"ambo__chatbot_options-container custom-terms-container",children:[e.jsxs("label",{className:"custom-checkbox-label text-white",children:[e.jsx("input",{type:"checkbox",checked:r,onChange:d,className:"custom-checkbox"}),e.jsx("span",{className:"custom-checkbox-box"}),e.jsxs("label",{className:"custom-checkbox-label2",children:["I accept the"," ",e.jsx("span",{onClick:()=>o(!0),style:{textDecoration:"underline",cursor:"pointer"},children:"Terms & Conditions and Privacy Policy"})]})]}),r&&e.jsx("button",{className:"ambo__terms-submit-btn",onClick:u,disabled:!r,children:"Submit"}),c&&f()]})})},Sa="data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1275_1314)'%3e%3cpath%20d='M11.1962%2019.3927L4.39355%2013.0723C11.0012%2011.4513%2017.8371%2010.9704%2024.6066%2011.6502C21.8108%2017.8525%2017.9767%2023.5319%2013.2694%2028.4437L11.1962%2019.3927ZM11.1962%2019.3927L17.6914%2015.6427'%20stroke='%23FFFFFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1275_1314'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(0%2012)%20rotate(-30)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function V5({isOpen:s,options:t=[],onClose:a,onSelect:i,questionType:n}){const[r,l]=b.useState(null),[c,o]=b.useState(""),p=()=>{r!==null&&(i(r),l(null),o(""))},h=()=>{l(null),o(""),a()},d=t.filter(u=>(typeof u=="string"?u:u.label||"").toLowerCase().includes(c.toLowerCase()));return e.jsx(qe,{open:s,onClose:h,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsxs(Ie,{sx:Fn,children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("h3",{style:{margin:0,color:"#A3A3A3",fontSize:"20px"},children:"Choose Option"}),r&&e.jsx("button",{onClick:p,className:"modal-submit",children:"Submit"})]}),e.jsx(Os,{sx:{my:2}}),n==="dropdown"&&e.jsx("input",{type:"text",placeholder:"Search...",value:c,onChange:u=>o(u.target.value),style:{width:"100%",padding:"8px 12px",marginBottom:"12px",borderRadius:"20px",border:"1px solid #4E4E4E",outline:"none",background:"#242424",color:"#eaeaea"}}),e.jsx("ul",{style:{listStyle:"none",padding:0,margin:0}
154,className:"ambo_service-question ambo-modal_custom__Scroll",children:d.length>0?d.map((u,m)=>e.jsx("li",{style:{marginBottom:"10px"},children:e.jsxs("label",{className:`modal-dropdown__list ${r===u?"modal-dropdown__list-not":""}`,style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"30px"},children:[e.jsx("span",{children:u}),e.jsx("input",{type:"checkbox",checked:r===u,onChange:()=>l(r===u?null:u),className:"service__checkboxRound"})]})},m)):e.jsx("li",{style:{textAlign:"center",color:"#999"},children:"No results found"})})]})})}const ei="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iI2VhZWFlYSIgY2xhc3M9InNpemUtNiIgd2lkdGg9JzIwcHgnPg0KICA8cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik04LjI1IDYuNzVoMTJNOC4yNSAxMmgxMm0tMTIgNS4yNWgxMk0zLjc1IDYuNzVoLjAwN3YuMDA4SDMuNzVWNi43NVptLjM3NSAwYS4zNzUuMzc1IDAgMSAxLS43NSAwIC4zNzUuMzc1IDAgMCAxIC43NSAwWk0zLjc1IDEyaC4wMDd2LjAwOEgzLjc1VjEyWm0uMzc1IDBhLjM3NS4zNzUgMCAxIDEtLjc1IDAgLjM3NS4zNzUgMCAwIDEgLjc1IDBabS0uMzc1IDUuMjVoLjAwN3YuMDA4SDMuNzV2LS4wMDhabS4zNzUgMGEuMzc1LjM3NSAwIDEgMS0uNzUgMCAuMzc1LjM3NSAwIDAgMSAuNzUgMFoiIC8+DQo8L3N2Zz4NCg==",z5=({handleSendMessage:s,currentQuestion:t,showTextInput:a})=>{var u;const[i,n]=b.useState(""),[r,l]=b.useState(""),[c,o]=b.useState(!0),[p,h]=b.useState(!1);b.useEffect(()=>{n(""),o(!1)},[t]);const d=m=>{n(m),s("user",m),h(!1)};return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ambo__chatbot_options-container",children:[((u=t==null?void 0:t.options)==null?void 0:u.length)>0&&e.jsx("div",{children:e.jsxs("button",{onClick:()=>h(!0),style:{padding:"10px",textAlign:"left",display:"flex",gap:"10px",alignItems:"center"},className:"ambo__chatbot_dropdown-container",children:[e.jsx("p",{children:i||"Choose one"}),e.jsx("img",{src:ei})]})}),e.jsx(V5,{isOpen:p,options:t.options,onClose:()=>h(!1),onSelect:d,questionType:t.type}),a&&e.jsx("div",{className:"ambo__chat-footer",style:{marginTop:"10px"},children:e.jsxs("form",{className:"ambo__chat-form",onSubmit:m=>{m.preventDefault(),s("user",r),l("")},children:[e.jsx("input",{type:"text",placeholder:"Please specify...",className:"ambo__message-input",value:r,onChange:m=>l(m.target.value),required:!0}),e.jsx("button",{type:"submit",className:"chatbot_send-btn",style:{backgroundColor:"#3A3A3A"},children:e.jsx("img",{src:Sa,alt:"Send"})})]})})]})})},W5=({handleSendMessage:s,currentQuestion:t,setResumeLink:a})=>{var k;const{warningToast:i,successToast:n}=he(),[r,l]=b.useState(!1),[c,o]=b.useState(null),{userDetails:p}=G(S=>S.auth);Mt();const[h,d]=b.useState(null),[u,m]=b.useState(null),[f,v]=b.useState(!1),[N,_]=b.useState(!1),x=(S,g)=>{g==="No"?s(S,"No"):g==="Choose Profile resume"?s(S,"Resume from profile chosen"):g==="Build Resume"?p!=null&&p.tickbigLink&&(window.open(`${window.location.origin}/build-resume/${p.tickbigLink}`,"_blank"),_(!0),l(!0)):g==="Upload Resume"&&l(!0)},j=async S=>{const g=S.target.files&&S.target.files[0];if(!g)return;const E=Wb.includes(g.type)?g.type:null;if(!E){S.target.value="",d(null),i(Po);return}if(!$n(g.size,5)){S.target.value="",d(null),i("File is greater than 5 MB");return}d(g),m(E),v(!0)},I=()=>{v(!1),l(!1)},w=async()=>{await y(h,u),n(Hu),l(!1),o(!0)},y=async(S,g)=>{let E=`ambo/${t.key}`;const C=await ya(E,S,g);if(C)return a(T=>({...T,uploadedResume:C})),C};return b.useEffect(()=>(c&&setTimeout(()=>{N?s("user","Build Resume"):s("user","Uploaded Resume chosen")},500),()=>{}),[c]),e.jsxs(e.Fragment,{children:[((k=t==null?void 0:t.options)==null?void 0:k.length)>0&&!r&&e.jsx("div",{className:"ambo__chatbot_options-container",children:t.options.map((S,g)=>e.jsx("button",{onClick:()=>x("user",S),className:"ambo__chatbot_option-button",children:S},g))}),r&&e.jsxs("div",{className:"ambo__chatbot_options-container-multi pitch_desk",style:{flexDirection:"column",gap:"10px",height:"auto"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"10px"},children:[e.jsxs(lu,{variant:"contained",component:"label",style:Ua,className:"edit-btnn",children:["Choose Resume",e.jsx("input",{type:"file",hidden:!0,onChange:j}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",width:"16px",className:"size-6",style:{marginLeft:"8px"},children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})})]}),(h==null?void 0:h.name)&&e.jsx("p",{style:{marginTop:"6px",fontSize:"14px",color:"#555"},children:e.jsx("strong",{children:h.name})})]}),e.jsx(Me,{errClass:"post_jpfi_field--error",errMsg:"pdf / pptx file up to 5 mb"}),e.jsx(bs,{onClickFn:()=>l(!1),name:"Back",cssStyle:"edit-btnn",disabled:!1})]}),e.jsx(As,{confirm:f,setConfirm:I,cancelFn:!0,action:"upload",fileName:h==null?void 0:h.name,performer:w})]})},ql=({handleSendMessage:s,currentQuestion:t})=>{const[a,i]=b.useState(""),[n,r]=b.useState(null),l=t.key,c={inv_revenue_amount:{maxLength:13,validate:h=>h.length>13?"Revenue amount cannot be more than 13 digits.":null},expectedCTC:{maxLength:13,validate:h=>h.length>13?"Expected CTC cannot be more than 13 digits.":null},currentCTC:{maxLength:13,validate:h=>h.length>13?"Current CTC cannot be more than 13 digits.":null},pricingMin:{maxLength:5,validate:h=>h.length>5?"Minimum Price cannot be more than 13 digits.":null},pricingMax:{maxLength:5,validate:h=>h.length>5?"Maximum Price cannot be more than 13 digits.":null},budget:{maxLength:13,validate:h=>h.length>13?"Budget cannot be more than 13 digits.":null},salary:{maxLength:13,validate:h=>h.length>13?"Salary cannot be more than 13 digits.":null},mobile:{maxLength:10,validate:h=>h.length!==10?"Please enter a 10 digit mobile number.":h.charAt(0)<"6"?"Invalid mobile number.":null},inv_mobile:{maxLength:10,validate:h=>h.length!==10?"Please enter a 10 digit mobile number.":h.charAt(0)<"6"?"Invalid mobile number.":null},inv_equity_dilution:{validate:h=>{const d=Number(h);return d<1||d>100?"Percentage must be between 1 and 100.":null}},inv_capital_needed:{validate:h=>Number(h)<1e5?"Capital must be at least 1 lakh (100000).":null},resource:{maxLength:4}},o=h=>{var m;const d=h.target.value;i(d);const u=c[l];if(u){const f=(m=u.validate)==null?void 0:m.call(u,d);if(f){r(f);return}if(u.maxLength&&d.length>u.maxLength){r(`Input exceeds maximum ${u.maxLength} digits.`);return}}r(null)},p=h=>{var u;h.preventDefault();const d=c[l];if(d){const m=(u=d.validate)==null?void 0:u.call(d,a);if(m){r(m);return}}!n&&a&&(s("user",a),i(""))};return e.jsxs("div",{className:"ambo__chat-footer",style:{height:"100px",width:"auto"},children:[e.jsxs("form",{className:"ambo__chat-form",style:{height:"68px"},onSubmit:p,children:[e.jsx("input",{type:"number",placeholder:"Write...",className:"ambo__message-input",value:a,onWheel:h=>h.currentTarget.blur(),onChange:o,required:!0,min:l==="inv_equity_dilution"||l==="inv_capital_needed"?1:void 0,max:l==="inv_equity_dilution"?100:void 0}),e.jsx("button",{type:"submit",className:"chatbot_send-btn",style:{backgroundColor:"#3A3A3A"},disabled:!!n,children:e.jsx("img",{src:Sa,alt:"Send"})})]}),e.jsx("div",{style:{paddingLeft:"10px"},children:n&&e.jsx(Me,{errMsg:n})})]})},$5=({handleSendMessage:s})=>{const[t,a]=b.useState(""),[i,n]=b.useState(""),r=o=>{try{const p=o.split("@")[1];return p?K2.some(h=>p.endsWith(h)):!1}catch{return!1}},l=o=>
154{if(o.preventDefault(),!r(t)){n("Email is not valid.");return}n(""),s("user",t),a("")},c=o=>{const p=o.target.value;a(p),i&&r(p)&&n("")};return e.jsxs("div",{className:"ambo__chat-footer",style:{height:"100px",width:"auto"},children:[e.jsxs("form",{className:"ambo__chat-form",onSubmit:l,style:{height:"71px"},children:[e.jsx("input",{type:"email",placeholder:"Write...",className:"ambo__message-input",value:t,onChange:c,required:!0}),e.jsx("button",{type:"submit",className:"chatbot_send-btn",style:{backgroundColor:"#3A3A3A"},children:e.jsx("img",{src:Sa,alt:"Send"})})]}),e.jsx("div",{style:{paddingLeft:"10px"},children:i&&e.jsx(Me,{errMsg:i})})]})},H5=({currentQuestion:s,handleSendMessage:t})=>{var a;return e.jsx("div",{className:"ambo__chatbot_options-container",children:e.jsx("div",{children:((a=s==null?void 0:s.options)==null?void 0:a.length)>0&&s.options.map((i,n)=>e.jsx("button",{onClick:()=>t("user",i),className:"ambo__chatbot_option-button",children:i},n))})})},G5=({handleSendMessage:s,currentQuestion:t,setResumeLink:a})=>{var j;const[i,n]=b.useState(!1),{warningToast:r,successToast:l}=he(),[c,o]=b.useState(!1),[p,h]=b.useState(null),[d,u]=b.useState(null),[m,f]=b.useState(null),v=async I=>{const w=I.target.files&&I.target.files[0];if(u(w),w){const y=(w==null?void 0:w.type)===$b?w==null?void 0:w.type:null;if(f(y),!y)I.target.value="",r(Po);else if(!$n(w.size,5))r(G3);else{n(!0);return}}},N=()=>{n(!1),o(!1)},_=async()=>{await x(d,m),l(Hu),o(!1),h(!0)},x=async(I,w)=>{let y=`ambo/${t.key}`;const k=await ya(y,I,w);if(k)return a(S=>({...S,uploadedResume:k})),k};return b.useEffect(()=>{p&&setTimeout(()=>{s("user","Pitch deck file uploaded")},500)},[p]),e.jsxs(e.Fragment,{children:[((j=t==null?void 0:t.options)==null?void 0:j.length)>0&&!c&&e.jsx("div",{className:"ambo__chatbot_options-container",children:t.options.map((I,w)=>e.jsx("button",{onClick:()=>o(!0),className:"ambo__chatbot_option-button",children:I},w))}),c&&e.jsx("div",{className:"ambo__chatbot_options-container-multi pitch_desk",style:{alignItems:"center"},children:e.jsxs("div",{children:[e.jsxs(lu,{variant:"contained",component:"label",style:Ua,className:"edit-btnn",children:["Choose Pitch deck",e.jsx("input",{type:"file",hidden:!0,onChange:v}),e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",width:"16px",className:"size-6",style:{marginLeft:"8px"},children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})})]}),e.jsx(bs,{onClickFn:()=>o(!1),name:"Back",cssStyle:"edit-btnn",disabled:!1})]})}),e.jsx(As,{confirm:i,setConfirm:N,cancelFn:!0,action:"upload",fileName:d==null?void 0:d.name,performer:_})]})},Vl="location",zl="Preferred Location (Eg: Bangalore)",J5=/^[a-zA-Z ]*$/,Y5=({handleSendMessage:s,currentQuestion:t})=>{const[a,i]=b.useState(""),n=l=>{const c=l.target.value;(t==null?void 0:t.key)===Vl&&(t==null?void 0:t.question)===zl?(J5.test(c)||c==="")&&i(c):i(c)},r=l=>{l.preventDefault();let c=a.trim();(t==null?void 0:t.key)=="serviceOfferLocation"?(c.endsWith(";")&&(c=c.slice(0,-1)),c=c.split(";"),Array.isArray(c)?s("user",c.slice(0,5)):s("user",[c])):["location","yourLocation"].includes(t==null?void 0:t.key)?(c.endsWith(";")&&(c=c.slice(0,-1)),c=c.split(";"),Array.isArray(c)?s("user",c.slice(0,1)[0]):s("user",c)):s("user",c),i("")};return e.jsx("div",{className:"ambo__chat-footer",style:{height:"100px",width:"auto"},children:e.jsxs("form",{className:"ambo__chat-form",onSubmit:l=>r(l),children:[e.jsx("input",{type:"text",placeholder:(t==null?void 0:t.key)===Vl&&(t==null?void 0:t.question)===zl?"Enter one valid location (e.g., Bangalore)":"Write...",className:"ambo__message-input",value:a,onChange:n,required:!0}),e.jsx("button",{type:"submit",className:"chatbot_send-btn",style:{backgroundColor:"#3A3A3A"},children:e.jsx("img",{src:Sa,alt:"Send"})})]})})},Z5=({handleSendMessage:s,currentQuestion:t,showTextInput:a})=>{var p;const[i,n]=b.useState([]),[r,l]=b.useState("");b.useState(""),b.useEffect(()=>{n([]),l("")},[t]);const c=h=>{const d=h.target.value;d&&!i.includes(d)&&n(u=>[...u,d]),l("")},o=()=>{i.length>0&&(s("user",i),n([]))};return e.jsx(e.Fragment,{children:e.jsx("div",{className:"ambo__chatbot_options-container",style:{flexWrap:"nowrap",flexDirection:"column",alignItems:"flex-start"},children:((p=t==null?void 0:t.options)==null?void 0:p.length)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("select",{style:{width:"200px",outline:"none"},value:r,onChange:c,className:"ambo__chatbot_dropdown-container",children:[e.jsx("option",{value:"",disabled:!0,children:"Choose one"},"dummy"),t.options.map((h,d)=>e.jsx("option",{value:h,children:h},d))]}),i.length>0&&e.jsxs("div",{className:"ambo-multiselect__container",children:[e.jsx("div",{className:"ambo-fullpage__skill",style:{flexWrap:"nowrap"},children:i.map((h,d)=>e.jsx("p",{style:{fontSize:"14px"},children:h},d))}),e.jsx("img",{onClick:o,src:Sa,alt:"Send"})]})]})})})},K5=()=>
154{const{register:s,handleSubmit:t,watch:a,formState:{errors:i}}=Qe(),n=l=>{},r=a("min");return e.jsxs("div",{className:"ambo__chat-footer",style:{height:"100px",width:"auto"},children:[e.jsxs("form",{className:"ambo__chat-form",onSubmit:t(n),children:[e.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"10px"},children:[e.jsx("input",{type:"number",placeholder:"Min",className:"ambo__message-input",style:{border:"1px solid #4e4e4e",padding:"10px",marginRight:"10px",borderRadius:"10px"},...s("min",{required:!0,valueAsNumber:!0}),onWheel:l=>l.currentTarget.blur()}),e.jsx("input",{type:"number",placeholder:"Max",className:"ambo__message-input",style:{border:"1px solid #4e4e4e",padding:"10px",borderRadius:"10px"},...s("max",{required:!0,valueAsNumber:!0,validate:l=>!r||l>=r||"Max must be >= Min"}),onWheel:l=>l.currentTarget.blur()})]}),e.jsx("button",{type:"submit",className:"chatbot_send-btn",style:{backgroundColor:"#3A3A3A"},children:e.jsx("img",{src:Sa,alt:"Send"})})]}),e.jsxs("div",{children:[i.min&&e.jsx("p",{style:{color:"red"},children:"Min is required"}),!i.min&&i.max&&e.jsx("p",{style:{color:"red"},children:i.max.message||"Max is required"})]})]})};function Q5({isOpen:s,options:t=[],onClose:a,onSubmit:i,limit:n=10}){const[r,l]=b.useState([]),[c,o]=b.useState("");b.useEffect(()=>{l([]),o("")},[s]);const p=m=>{r.includes(m)?l(f=>f.filter(v=>v!==m)):r.length<n&&l(f=>[...f,m])},h=()=>{r.length>0&&i(r),d()},d=()=>{l([]),o(""),a()},u=t.filter(m=>m.toLowerCase().includes(c.toLowerCase()));return e.jsx(qe,{open:s,onClose:d,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsxs(Ie,{sx:Fn,children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("h3",{style:{margin:0,color:"#A3A3A3",fontSize:"20px"},children:"Choose Options"}),r.length>0&&e.jsx("button",{onClick:h,className:"modal-submit",children:"Submit"})]}),e.jsx(Os,{sx:{my:2}}),e.jsx("input",{type:"text",placeholder:"Search...",value:c,onChange:m=>o(m.target.value),style:{width:"100%",padding:"8px 12px",marginBottom:"12px",borderRadius:"20px",border:"1px solid #4E4E4E",outline:"none",background:"#242424",color:"#eaeaea"}}),e.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},className:"ambo_service-question ambo-modal_custom__Scroll",children:u.length>0?u.map((m,f)=>e.jsx("li",{style:{marginBottom:"10px"},children:e.jsxs("label",{className:`modal-dropdown__list ${r.includes(m)?"modal-dropdown__list-not":""}`,style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"30px"},children:[e.jsx("span",{children:m}),e.jsx("input",{type:"checkbox",name:"modalOption",value:m,checked:r.includes(m),onChange:()=>p(m),className:"service__checkboxRound",disabled:!r.includes(m)&&r.length>=n})]})},f)):e.jsx("li",{style:{textAlign:"center",color:"#999"},children:"No results found"})})]})})}const X5=({handleSendMessage:s,currentQuestion:t})=>{var c;const[a,i]=b.useState(!1);b.useEffect(()=>{i(!1)},[t]);const r=(o=>{switch(o){case"serviceCategory":return 10;default:return 1}})(t==null?void 0:t.key),l=o=>{s("user",o),i(!1)};return e.jsx("div",{className:"ambo__chatbot_options-container",children:((c=t==null?void 0:t.options)==null?void 0:c.length)>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{children:e.jsxs("button",{onClick:()=>i(!0),style:{width:"150px",padding:"10px",textAlign:"left",marginLeft:"20px",display:"flex",gap:"10px",alignItems:"center"},className:"ambo__chatbot_dropdown-container",children:[e.jsx("p",{children:"Choose Options"}),e.jsx("img",{src:ei})]})}),e.jsx(Q5,{isOpen:a,onClose:()=>i(!1),options:t.options,onSubmit:l,limit:r})]})})},e4=({isOpen:s,onClose:t,inputRef:a,initAutocomplete:i,handleSubmit:n,selectedOption:r})=>(b.useEffect(()=>{s&&setTimeout(()=>{a.current&&a.current.focus()},200)},[s,a]),e.jsx(qe,{open:s,onClose:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsxs(Ie,{sx:{...Fn,height:"60vh"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("h3",{style:{margin:0,color:"#A3A3A3",fontSize:"20px"},children:"Choose Location"}),r&&e.jsx("button",{onClick:n,className:"modal-submit",children:"Submit"})]}),e.jsx(Os,{sx:{my:2}}),e.jsx("input",{ref:a,type:"text",placeholder:"Search for a city or location",onFocus:i,style:{width:"100%",padding:"8px 12px",marginBottom:"12px",borderRadius:"20px",border:"1px solid #4E4E4E",outline:"none",background:"#242424",color:"#eaeaea"}})]})})),s4=["places"],pa=({value:s,onChange:t,onSelectLocation:a,variant:i="inline"})=>{const[n,r]=b.useState(!1),l=b.useRef(null),{isLoaded:c,loadError:o}=yd({googleMapsApiKey:"AIzaSyAE5uJOAxw3vudsFuIi2qmun63Lj3WonWo",libraries:s4}),p=()=>
154{if(!l.current)return;const h=new window.google.maps.places.Autocomplete(l.current,{types:["(cities)"],componentRestrictions:{country:"in"}});h.addListener("place_changed",()=>{const d=h.getPlace();if(!d.geometry)return;const u=d.address_components||[],m=j=>{var I;return((I=u.find(w=>w.types.includes(j)))==null?void 0:I.long_name)||""},f=m("sublocality")||m("sublocality_level_1"),v=m("locality")||m("administrative_area_level_2"),N=m("administrative_area_level_1"),_=m("country");let x="";f&&v?x=`${f}, ${v}`:v&&N?x=`${v}, ${N}`:N&&_?x=`${N}, ${_}`:x=d.formatted_address,a("user",x),i==="modal"&&r(!1)})};return o?e.jsx("p",{children:"Error loading Google Maps"}):c?e.jsx(e.Fragment,{children:i==="modal"?e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>r(!0),style:{padding:"10px",textAlign:"left",marginLeft:"20px",display:"flex",gap:"10px",alignItems:"center"},className:"ambo__chatbot_dropdown-container",children:[e.jsx("p",{children:"Select Location"}),e.jsx("img",{src:ei,alt:"list"})]}),e.jsx(e4,{isOpen:n,onClose:()=>r(!1),inputRef:l,initAutocomplete:p})]}):e.jsx("div",{style:{borderRadius:"30px"},children:e.jsx("input",{ref:l,type:"text",value:s,onChange:h=>t==null?void 0:t(h.target.value),onKeyDown:h=>{h.key==="Enter"&&s.trim()&&a("user",s.trim())},placeholder:"Search for a city or location",onFocus:p,style:{border:"1px solid #5a6466",color:"#EAEAEA"},className:"my-info_did-floating-input"})})}):e.jsx("p",{children:"Loading..."})},t4=({isOpen:s,onClose:t,inputRef:a,initAutocomplete:i,handleSubmit:n,selectedValues:r,onRemoveValue:l})=>(b.useEffect(()=>{s&&setTimeout(()=>{a.current&&a.current.focus()},200)},[s,a]),e.jsx(qe,{open:s,onClose:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsxs(Ie,{sx:{...Fn,height:"60vh"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("h3",{style:{margin:0,color:"#A3A3A3",fontSize:"20px"},children:"Choose Location"}),(r==null?void 0:r.length)>0&&e.jsx("button",{onClick:n,className:"modal-submit",disabled:r.length===0,children:"Submit"})]}),e.jsx(Os,{sx:{my:2}}),(r==null?void 0:r.length)>0&&e.jsx("div",{style:{marginTop:"10px",maxHeight:"20vh",overflowY:"auto",display:"flex",flexWrap:"wrap",gap:"8px"},children:r.map((c,o)=>e.jsxs("div",{style:{display:"flex",alignItems:"center",background:"#333",color:"#eaeaea",padding:"6px 10px",borderRadius:"16px",fontSize:"14px",marginBottom:"10px"},children:[e.jsx("span",{children:c}),e.jsx("button",{onClick:()=>l(o),style:{background:"transparent",border:"none",color:"#aaa",marginLeft:"6px",cursor:"pointer",fontSize:"16px",lineHeight:"1"},children:"×"})]},o))}),r.length<5&&e.jsx("input",{ref:a,type:"text",placeholder:"Search for a city or location",onFocus:i,style:{width:"100%",padding:"8px 12px",marginBottom:"12px",borderRadius:"20px",border:"1px solid #4E4E4E",outline:"none",background:"#242424",color:"#eaeaea"}})]})})),a4=["places"],n4=({onSelectLocation:s,selectedValues:t,setSelectedValues:a,handleSubmit:i})=>{const[n,r]=b.useState(!1),l=b.useRef(null),{isLoaded:c,loadError:o}=yd({googleMapsApiKey:"AIzaSyAE5uJOAxw3vudsFuIi2qmun63Lj3WonWo",libraries:a4}),p=()=>{if(!l.current)return;const h=new window.google.maps.places.Autocomplete(l.current,{types:["(cities)"],componentRestrictions:{country:"in"}});h.addListener("place_changed",()=>{const d=h.getPlace();if(!d.geometry)return;const u=d.address_components||[],m=j=>{var I;return((I=u.find(w=>w.types.includes(j)))==null?void 0:I.long_name)||""},f=m("sublocality")||m("sublocality_level_1"),v=m("locality")||m("administrative_area_level_2"),N=m("administrative_area_level_1"),_=m("country");let x="";f&&v?x=`${f}, ${v}`:v&&N?x=`${v}, ${N}`:N&&_?x=`${N}, ${_}`:x=d.formatted_address,s(x),l.current.value=""})};return o?e.jsx("p",{children:"Error loading Google Maps"}):c?e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>r(!0),style:{padding:"10px",textAlign:"left",marginLeft:"20px",display:"flex",gap:"10px",alignItems:"center"},className:"ambo__chatbot_dropdown-container",children:[e.jsx("p",{children:"Select Location"}),e.jsx("img",{src:ei,alt:"list"})]}),e.jsx(t4,{isOpen:n,onClose:()=>r(!1),inputRef:l,initAutocomplete:p,handleSubmit:i,selectedValues:t,onRemoveValue:h=>{a(d=>d.filter((u,m)=>m!==h))}})]}):e.jsx("p",{children:"Loading..."})},i4=({handleSendMessage:s})=>{const[t,a]=b.useState([]),i=l=>{l&&(t.includes(l)||t.length>=5||a(c=>[...c,l]))},n=l=>{a(c=>c.filter((o,p)=>p!==l))},r=()=>{t.length>0&&(s("user",t.slice(0,5)),a([]))};return e.jsx(e.Fragment,{children:e.jsx("div",{className:"ambo__chatbot_options-container",style:{flexWrap:"nowrap",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"},children:e.jsx(e.Fragment,{children:e.jsx(n4,{onSelectLocation:i,selectedValues:t,setSelectedValues:a,onRemoveValue:n,handleSubmit:r})})})})},Sp=({currentQuestion:s,postData:t,inputType:a,handleSendMessage:i,setResumeLink:n,term:r,showTextInput:l,handleFinalModalClose:c,chatsubmitModal:o,setChatSubmitModal:p})=>{const h=d=>{switch(d){case"options":return e.jsx(H5,{currentQuestion:s,handleSendMessage:i});case"checkbox":return e.jsx(q5,{postData:t,setChatSubmitModal:p,chatsubmitModal:o,term:r,onModalClose:c});case"dropdown":case"dropdownNumber":return e.jsx(z5,{handleSendMessage:i,currentQuestion:s,showTextInput:l});case"fileUpload":return e.jsx(W5,{handleSendMessage:i,currentQuestion:s,setResumeLink:n});case"pitchDeckUpload":return e.jsx(G5,{handleSendMessage:i,currentQuestion:s,setResumeLink:n});case"tel":return e.jsx(ql,{handleSendMessage:i,currentQuestion:s});case"multi-select-limit":return e.jsx(X5,{handleSendMessage:i,currentQuestion:s});case"multi-select":return e.jsx(Z5,{handleSendMessage:i,currentQuestion:s});case"text":return e.jsx(Y5,{currentQuestion:s,handleSendMessage:i});case"number":return e.jsx(ql,{handleSendMessage:i,currentQuestion:s});case"email":return e.jsx($5,{handleSendMessage:i});case"range":return e.jsx(K5,{});case"location":return e.jsx(pa,{variant:"modal",onSelectLocation:i});case"location-multi":return e.jsx(i4,{handleSendMessage:i});default:return null}};return e.jsx("div",{children:h(a)})},o4=({messages:s,showDot:t,typingDone:a,setTypingDone:i,currentQuestion:n,inputType:r,postData:l,handleSendMessage:c,setResumeLink:o,term:p,showTextInput:h,handleFinalModalClose:d,showAILoader:u,submitModal:m})=>{var I,w,y,k,S;const f=b.useRef(null),[v,N]=b.useState(!0);b.useEffect(()=>{(()=>{f.current&&f.current.scrollIntoView({behavior:"smooth"})})()},[s,a]);const _=g=>{const E=typeof g;
154return E==="string"?g:E==="object"&&lo.isArray(g)?e.jsx(e.Fragment,{children:g==null?void 0:g.map((C,T)=>e.jsx("span",{className:"location-chip",style:{margin:"3px"},children:C},T))}):g},[x,j]=b.useState({normal:[],typical:null});return b.useEffect(()=>{if(s[s.length-1].sender==="bot"){let g=s.slice(0,s.length-1),E=s[s.length-1];j(C=>({...C,normal:g,typical:E}))}else j({normal:s,typical:null});return()=>null},[s]),b.useEffect(()=>{var g,E;if(((g=x==null?void 0:x.typical)==null?void 0:g.sender)==="bot"&&((E=x==null?void 0:x.typical)!=null&&E.text)){i(!1);const R=x.typical.text.length*4+1e3,P=setTimeout(()=>{i(!0),N(!1)},R);return()=>clearTimeout(P)}},[(I=x==null?void 0:x.typical)==null?void 0:I.text]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ambo__chatbot__body",children:[(w=x==null?void 0:x.normal)==null?void 0:w.map((g,E)=>e.jsx("div",{className:`message ${g.sender==="bot"?"ambo__bot-message":"ambo__user-message"}`,children:e.jsx("p",{className:`ambo__message-text ${g.sender==="bot"?"typing":""}`,children:_(g.text)})},E)),t&&e.jsx("div",{children:e.jsx("div",{className:"text-white dot",children:"●"})}),((y=x==null?void 0:x.typical)==null?void 0:y.sender)==="bot"?e.jsx("div",{className:"typing-wrapper text-white ambo__message-text",children:e.jsx(_g,{words:(k=x==null?void 0:x.typical)!=null&&k.text?[x.typical.text]:[],loop:1,cursor:v,onLoopDone:()=>N(!1),cursorStyle:"|",typeSpeed:5,deleteSpeed:50,delaySpeed:1e3})}):e.jsx("div",{className:"message ambo__user-message",children:e.jsx("p",{className:"ambo__message-text",children:_((S=x==null?void 0:x.typical)==null?void 0:S.text)})},"last"),e.jsx("div",{ref:f}),a&&!t&&!u&&!m&&(["text","number","tel","email","multi-select-limit","checkbox"].includes(r)?null:e.jsx("div",{className:"message ambo__user-input",children:e.jsx(Sp,{currentQuestion:n,postData:l,inputType:r,handleSendMessage:c,setResumeLink:o,term:p,showTextInput:h,handleFinalModalClose:d})}))]})})},r4="/assets/FailureGif-BwjIfn8G.gif",l4=({open:s,handleClose:t,amboChatData:a})=>{const{gotoAmboReport:i}=Be(),n=()=>{i(a==null?void 0:a._id)};return e.jsx(e.Fragment,{children:e.jsx(qe,{open:s,onClose:()=>{t()},children:e.jsx(Ie,{sx:ru,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx("img",{src:r4,alt:"failure"}),e.jsx("p",{style:{color:"#FFFFFF",fontSize:"20px",fontWeight:"500"},children:"OOPS!"}),e.jsx("p",{className:"servive-failure__desc",children:"Providers are currently unavailable. your request is noted, and we’ll notify you when they are available."}),e.jsx("button",{className:"service-view__status mt-4",onClick:n,children:"View Status"})]})})})})},c4=({open:s,onModalClose:t,amboChatData:a,providerCount:i})=>(console.log("providerCount:",i,"open:",s),e.jsx(e.Fragment,{children:i===0?e.jsx(l4,{amboChatData:a,open:s,handleClose:t}):e.jsx(M5,{amboChatData:a,open:s,handleClose:t})})),d4=({chatsubmitModal:s,setChatSubmitModal:t,chatSubmitFn:a})=>{const i=()=>{window.location.reload()};return e.jsx(e.Fragment,{children:e.jsx(qe,{open:s,children:e.jsxs(Ie,{sx:iu,children:[e.jsx(Fe,{id:"confirm-modal-title",variant:"h6",component:"h2",align:"center",children:e.jsx("p",{style:{color:"var(--text-color-primary)"},children:"Chat response once submited cannot be modified. Are you sure want to submit?"})}),e.jsx("div",{children:e.jsx("section",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"display-flex-aic-jcsb refer__footet--buttons2 ",children:e.jsxs(Ie,{mt:2,display:"flex",justifyContent:"center",children:[e.jsx(bs,{id:"yes",onClickFn:i,cssStyle:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",name:"Start Over"}),e.jsx(bs,{id:"no",onClickFn:a,className:"display-flex-aic-jcsb refer__footet--buttons2 fdc confirmDel",name:"Submit"})]})})})})]})})})},m4={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",borderRadius:"12px",boxShadow:24,p:4,outline:"none"},ka=({open:s,onClose:t,message:a})=>e.jsx(qe,{open:s,onClose:t,className:"my-modal",disableEscapeKeyDown:!0,children:e.jsx(Ie,{sx:m4,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",gap:"20px",padding:"20px 10px"},children:[e.jsx(jn,{size:60,thickness:5,color:"primary"}),e.jsx(Fe,{variant:"h6",component:"h2",align:"center",children:a||"Your payment is being processed by us. Please hold for sometime."})]})})}),h4={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:420,bgcolor:"background.paper",borderRadius:"12px",boxShadow:24,p:4,outline:"none"},Ca=({open:s,onClose:t,status:a})=>{const i=a==="Success";return e.jsx(qe,{open:s,onClose:(n,r)=>{r!=="backdropClick"&&t(n,r)},className:"my-modal",disableEscapeKeyDown:!0,children:e.jsx(Ie,{sx:h4,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",gap:"20px",padding:"20px 10px"},children:[i?e.jsx(Xc,{style:{fontSize:60,color:"#01bf71"}}):a==="Failure"?e.jsx(k0,{style:{fontSize:60,color:"#f44336"}}):e.jsx(C0,{style:{fontSize:60,color:"#ff9800"}}),e.jsx(Fe,{variant:"h6",component:"h2",align:"center",children:i?"Payment Successful":a==="Failure"?"Payment Failed":"Payment Status"}),e.jsx(Fe,{variant:"body1",align:"center",color:"text.secondary",children:i?"Your payment has been received successfully.":a==="Failure"?"Your payment could not be processed. Deducted amount will be refunded within 3-7 working days.":"We are checking your payment status. Please check back after 15 minutes."}),!i&&e.jsx("button",{onClick:()=>{t(),window.location.reload()},style:{marginTop:"10px",padding:"8px 24px",borderRadius:"25px",border:"none",backgroundColor:"#2300a3",color:"#fff",fontSize:"14px",cursor:"pointer"},children:"Close"})]})})})},Ji=()=>{var ns;const s=b.useRef(null),t=b.useRef([]),a=b.useRef(null),i=b.useRef(!1),n=(be,ke)=>{ke(Le=>Le+1<be.length?Le+1:Le)},r=ge(),[l,c]=b.useState(Q2),{user:o,userDetails:p}=G(be=>be.auth),{subscriptions:h}=G(be=>be.subscription),{successToast:d,errorToast:u}=he(),[m,f]=b.useState(""),[v,N]=b.useState(!1),[_,x]=b.useState(null),[j,I]=b.useState(null),[w,y]=b.useState(!1),[k,S]=b.useState(!1),[g,E]=b.useState(null),[C,T]=b.useState(null),[A,R]=b.useState([]),[P,O]=b.useState(0),[M,L]=b.useState({}),[F,U]=b.useState(!1),[Z,ne]=b.useState(!1),[K,te]=b.useState(!1),[q,H]=b.useState(0),[X,ee]=b.useState(!1),[se,ae]=b.useState(!1);b.useState("");const[B,W]=b.useState({show:!1,prePaidId:null}),[Q,ie]=b.useState(!1),[Y,pe]=b.useState(!1),[me,Ce]=b.useState({open:!1,status:null}),Ye=()=>ie(!0);b.useEffect(()=>{M.main&&(o!=null&&o._id)&&X_(o._id,M.main)},[M.main,o]);const Xe=be=>{const ke=typeof be;if(ke==="string"){const Le=be.trim();return Le||(u("Please enter a valid response."),null)}return ke==="object"?Array.isArray(be)?be.length===0?(u("Please select a valid option."),null):be:null:be},ue=be=>{R(ke=>{var $e;return(($e=ke[ke.length-1])==null?void 0:$e.text)===be?ke:[...ke,{sender:"bot",text:be}]})},Ae=async(be,ke,Le,$e)=>be.key==="resume"?ke.startsWith("Uploaded")?Le.uploadedResume:ke.startsWith("Resume")?Le.profileResume:ke==="Build Resume"?Le==null?void 0:Le.uploadedResume:ke:be.key==="inv_pitch_deck"?Le.uploadedResume:["inv_industry","industry","designation"].includes(be.key)&&ke==="Others"?($e(!0),null):($e(!1),ke),Se=(be,ke,Le,$e)=>{switch(be){case"Job Searching":return[...$e,...a1];case"Recruiting":return[...$e,...n1];case"Referring":return[...$e,...i1];case"Investment":return[...$e,...o1];case"Service Request":return[...$e,...X2];case"Provide Service":return[...$e,...e1];default:return Le.main==="Provide Service"&&ke.key==="category"?[...$e,...be==="Individual"?s1:t1]:$e}},ve=async(be,ke)=>{const Le=Xe(ke);if(Le===null)return;if(be==="bot"){ue(Le);return}const $e=l[P];if($e.key==="resume"&&Le==="Build Resume"){R(ls=>[...ls,{sender:"user",text:Le}
154]),L(ls=>({...ls,resume:(_==null?void 0:_.uploadedResume)||"Build Resume"})),ne(!0),setTimeout(()=>{ne(!1),O(ls=>ls+2)},500);return}if($e.key==="resume"&&Le==="No"){R(ls=>[...ls,{sender:"user",text:Le}]),ne(!0),setTimeout(()=>{ne(!1),O(ls=>ls+1)},500);return}const as=await Ae($e,Le,_,U);if(as===null)return;const xs={...M,[$e.key]:as},ms=Se(Le,$e,M,l);c(ms),R(ls=>[...ls,{sender:be,text:Le}]),L(xs),P+1<ms.length&&(Le==="Job Searching"&&J(ms),ne(!0),setTimeout(()=>{ne(!1),n(ms,O)},1500))},J=async be=>{try{const ke=await n5();if(ke.data){const Le=be.findIndex(as=>as.key==="resume");Le!==-1&&(be[Le].options=["Build Resume","No"]);const $e=be.findIndex((as,xs)=>as.key==="resume"&&xs!==Le);$e!==-1&&(be[$e].options=["Choose Profile resume","Upload Resume"]),x(as=>({...as,profileResume:ke.data})),c(be)}}catch{u("Failed to fetch resume.")}},D=async()=>{var be,ke,Le,$e,as,xs,ms,ls,tt;try{switch(M.main){case"Service Request":{let Ge=await r5(C,M);Ge&&(r(di((be=Ge==null?void 0:Ge.data)==null?void 0:be.inSideChat)),R(Ms=>[...Ms,{sender:"bot",text:Ba(M.main)}]),Re((ke=Ge==null?void 0:Ge.data)==null?void 0:ke.inSideChat));break}case"Provide Service":{let Ge=await l5(C,M);Ge&&(r(zh((Le=Ge==null?void 0:Ge.data)==null?void 0:Le.inSideChat)),R(Ms=>[...Ms,{sender:"bot",text:Ba(M.main)}]),S(!0),E(($e=Ge==null?void 0:Ge.data)==null?void 0:$e.inSideChat));break}case"Job Searching":{if(!o||!C){u("Invalid access.");return}C==="later"&&T(null);let Ge=await Ol(C,M);Ge&&(r(di({...(as=Ge==null?void 0:Ge.data)==null?void 0:as.inSideChat,resumeScore:Math.floor(Math.random()*16)+60,resumeSkills:[],gptSuggestion:[],status:"processing"})),$((xs=Ge==null?void 0:Ge.data)==null?void 0:xs.inSideChat._id),R(Ms=>[...Ms,{sender:"bot",text:Ba(M.main)}]),S(!0),E((ms=Ge==null?void 0:Ge.data)==null?void 0:ms.inSideChat));break}default:{let Ge=await Ol(C,M);Ge&&(r(di((ls=Ge==null?void 0:Ge.data)==null?void 0:ls.inSideChat)),R(Ms=>[...Ms,{sender:"bot",text:Ba(M.main)}]),S(!0),E((tt=Ge==null?void 0:Ge.data)==null?void 0:tt.inSideChat));break}}}catch(Ge){u("Failed to submit response. Please try again."),console.error("Error submitting response:",Ge)}finally{ae(!1)}},$=be=>{s.current&&clearInterval(s.current),s.current=setInterval(async()=>{const ke=await c5(be);if(ke.data.inside.status==="completed"){r(b2(ke.data)),clearInterval(s.current),s.current=null;return}ke.data.inside.status==="failed"&&(clearInterval(s.current),s.current=null)},2e3)};b.useEffect(()=>()=>{s.current&&clearInterval(s.current)},[]);const re=()=>{window.location.reload()},oe=async()=>{var be;try{const ke={budget:{min:0,max:99999},serviceList:M.serviceList},Le=await bp(1,10,ke),$e=((be=Le==null?void 0:Le.data)==null?void 0:be.spData)||[];H($e.length)}catch(ke){console.error("Failed to fetch provider count",ke),H(0)}},Re=async be=>{E(be),await oe(),te(!0),S(!0);const ke=setTimeout(()=>{te(!1),Ye()},8e3);t.current.push(ke)},Ze=b.useCallback(async()=>{if(!C){f("");try{const be=await Do(M.main);if(console.log(be,"518"),!C&&be.data.newPayment){f(be.data.productName),ve("bot",g1),console.log(P,"qi 521");return}else be.data.oldPaymentId&&(W(ke=>({...ke,show:!0,prePaidId:be.data.oldPaymentId})),T(be.data.oldPaymentId),ve("bot",gn),console.log(P,"qi 525"),O(ke=>ke+1))}catch(be){console.error("Error initiating payment:",be)}}},[M.main,C]);a.current=Ze;const Oe=async(be,ke=0)=>{var Le;if(ke>20)return u("Payment verification is taking too long. Please refresh."),null;try{let $e=await tn(be);if((Le=$e==null?void 0:$e.data)!=null&&Le.orderDataSuccess)return $e}catch($e){console.error("Order status check failed, retrying...",$e)}return await new Promise($e=>setTimeout($e,2e3)),await Oe(be,ke+1)},Ne=async(be,ke)=>{var $e,as;const Le=await Oe(be);($e=Le==null?void 0:Le.data)!=null&&$e.orderDataSuccess&&(N(!0),I((as=Le==null?void 0:Le.data)==null?void 0:as.orderDataSuccess),y(!0))},ze=async()=>{var be,ke;if(i.current){console.warn("🛡️ Payment already in progress - ignoring duplicate click");return}i.current=!0;try{const Le=await on(M.main,1),$e={cartList:Le.data.products,amount:Le.data.totalAmount+Le.data.totalGst},as=(p==null?void 0:p._id)||null,xs=$e.amount||0,ms=Lo(as,xs,"INR");Nt({eventName:"InitiateCheckout",eventId:ms,amount:xs,currency:"INR"});const ls=await sn($e);if(ls){const tt=ls==null?void 0:ls.data,Ge=await rn(tt,p);if(Ge&&Ge.paymentId){const Ms=Fo(as,xs,"INR",Ge.paymentId,`Purchase_${Ge.razorpay_order_id}`);Nt({eventName:"Purchase",eventId:Ms,amount:xs,currency:"INR",orderId:Ge.paymentId}),pe(!0);try{const Vs=await an({razorpay_order_id:Ge.razorpay_order_id,razorpay_payment_id:Ge.razorpay_payment_id});((be=Vs==null?void 0:Vs.data)==null?void 0:be.status)==="Success"?(T(Ge.paymentId),d(gn),ve("bot",gn),O($t=>$t+1),Ne(Ge.razorpay_order_id,Ge.paymentId)):Ce({open:!0,status:((ke=Vs==null?void 0:Vs.data)==null?void 0:ke.status)||"Pending"})}catch(Vs){console.error("Error checking payment status:",Vs),Ce({open:!0,status:"Pending"})}finally{pe(!1)}}else y(!1),u(_n)}}catch{y(!1),pe(!1)}finally{i.current=!1}},Te=l[P]||{},es=Te.type;return b.useEffect(()=>()=>{t.current.forEach(clearTimeout)},[]),b.useEffect(()=>{var $e;const be=l[P];if(!be)return;const ke=A[A.length-1],Le=(ke==null?void 0:ke.sender)==="bot"&&(ke==null?void 0:ke.text)===be.question;console.log(P,"questionIndex 603"),P===1?R([{sender:"bot",text:iv(M.main)},{sender:"bot",text:l[P].question}]):!Le&&l.length>1&&P<l.length&&R(as=>[...as,{sender:"bot",text:l[P].question}]),es==="payment"&&!v&&(($e=a.current)==null||$e.call(a))},[P,es,v]),e.jsxs(e.Fragment,{children:[P===0?e.jsx(_p,{handleSendMessage:ve}):e.jsx("div",{className:"ambo__inout_centerlayout",children:e.jsxs("div",{className:"ambo__chatbot-popup",children:[e.jsx(o4,{messages:A,showDot:Z,typingDone:X,setTypingDone:ee,currentQuestion:Te,inputType:es,postData:D,handleSendMessage:ve,setResumeLink:x,term:M.main,showTextInput:F,handleFinalModalClose:re,showAILoader:K,submitModal:k}),["text","number","tel","email","multi-select-limit","checkbox"].includes(es)?e.jsx(Sp,{currentQuestion:Te,postData:D,setChatSubmitModal:ae,chatsubmitModal:se,inputType:es,handleSendMessage:ve,setResumeLink:x,term:M.main,showTextInput:F,handleFinalModalClose:re}):null,v&&w&&e.jsx(nn,{paymentId:C,order:j,showModal:w,setShowModal:y}),!v&&es=="payment"&&!C&&((ns=h==null?void 0:h.filter(be=>be.name==m))==null?void 0:ns.map(be=>e.jsx(L5,{makingPayment:ze,product:be,setPaymentId:T,previousPayment:B,setpreviousPayment:W,handleSendMessage:ve},be._id||m)))]})}),k&&g&&(M==null?void 0:M.main)!=="Service Request"&&e.jsx(F5,{main:M==null?void 0:M.main,amboChatData:g,setSubmitModal:S,submitModal:k,onModalClose:re}),k&&g&&(M==null?void 0:M.main)=="Service Request"&&e.jsx(c4,{amboCh
154atData:g,open:Q,onModalClose:re,providerCount:q}),se&&e.jsx(d4,{setChatSubmitModal:ae,chatsubmitModal:se,chatSubmitFn:D}),K&&e.jsx(I5,{}),e.jsx(ka,{open:Y,onClose:()=>pe(!1)}),e.jsx(Ca,{open:me.open,status:me.status,onClose:()=>Ce({open:!1,status:null})})]})},u4=({isModalOpen:s,setIsModalOpen:t})=>e.jsx(qe,{open:s,onClose:()=>t(!1),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:ja,children:e.jsxs("div",{className:"custom__Scroll",children:[e.jsx("div",{className:"modal-container-Heading",children:e.jsx("h4",{style:{color:"#eaeaea",marginBottom:"12px"},children:"How to Use Smart Apply (Agent Ambo)"})}),e.jsxs("p",{style:{color:"#eaeaea",marginTop:"20px"},children:[e.jsx("span",{style:{color:"#01bf71"},children:"Smart Apply"})," is TickBig’s automation feature that helps you apply to multiple jobs seamlessly. Please follow the steps below to get started."]}),e.jsx("br",{}),e.jsxs("div",{className:"modal-content",style:{color:"#eaeaea",fontSize:"14px",lineHeight:"1.6"},children:[e.jsx("h5",{style:{color:"#eaeaea",marginTop:"20px"},children:"🚀 Getting Started"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Click the ",e.jsx("span",{style:{color:"#eaeaea"},children:'"Smart Apply"'})," button on the TickBig platform."]}),e.jsx("li",{children:"You will be redirected to the Google Chrome Extension page."}),e.jsx("li",{children:"Download & add the extension to your Chrome browser."}),e.jsx("li",{children:"Once added, click the extension icon in your browser."}),e.jsxs("li",{children:["A small pop-up will appear asking you to log in.",e.jsxs("ul",{children:[e.jsx("li",{children:"You must log in with your TickBig account."}),e.jsx("li",{children:"The system will check if you have an active subscription/payment for Smart Apply."})]})]}),e.jsx("li",{children:"Once verified, you can click Smart Apply to start."})]}),e.jsx("h5",{style:{color:"#eaeaea",marginTop:"20px"},children:"🖥️ Pre-requisites"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Use only a laptop/desktop (Smart Apply will not work on mobile or tablets)."}),e.jsx("li",{children:"Use Google Chrome browser (other browsers may not work)."}),e.jsxs("li",{children:["Keep your job portal accounts (e.g., LinkedIn, Shine) logged in.",e.jsxs("ul",{children:[e.jsx("li",{children:"More platforms will be added in the future."}),e.jsx("li",{children:"TickBig reserves the right to change supported platforms anytime."})]})]})]}),e.jsx("h5",{style:{color:"#eaeaea",marginTop:"20px"},children:"⚙️ How Smart Apply Works"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Once started, Smart Apply will automatically fill and submit job applications."}),e.jsx("li",{children:"You can see reports showing which companies Agent Ambo has applied to."}),e.jsxs("li",{children:["While Smart Apply is running:",e.jsxs("ul",{children:[e.jsx("li",{children:"You can use your system normally."}),e.jsx("li",{children:"Do not interact with the Smart Apply window (e.g., typing, clicking) while it is in progress."})]})]}),e.jsx("li",{children:"To avoid bot detection, Smart Apply will only apply to a limited number of jobs in one run."}),e.jsxs("li",{children:["Once a batch is complete or interrupted, click ",e.jsx("span",{style:{color:"#eaeaea"},children:'"Smart Apply"'})," again to restart."]})]}),e.jsx("h5",{style:{color:"#eaeaea",marginTop:"20px"},children:"📌 Best Practices"}
154),e.jsxs("ul",{children:[e.jsx("li",{children:"Run Smart Apply once a day for best results."}),e.jsx("li",{children:"Always keep the required job portals (LinkedIn, Shine, etc.) logged in before starting."}),e.jsx("li",{children:"Do not interfere with the Smart Apply process once it begins."})]}),e.jsx("h5",{style:{color:"#eaeaea",marginTop:"20px"},children:"⚠️ Important Notes & Risks"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Smart Apply may not work on some laptop configurations or older versions of Chrome."}),e.jsx("li",{children:"Job application forms vary across companies; Smart Apply will attempt to bypass forms, but results may differ."}),e.jsx("li",{children:"Details filled in may not always be 100% accurate. The goal is to maximize applications."}),e.jsxs("li",{children:["TickBig is not responsible if:",e.jsxs("ul",{children:[e.jsx("li",{children:"A job application is rejected due to incorrect information."}),e.jsx("li",{children:"A platform blocks/restricts your account due to automated activity."})]})]})]}),e.jsxs("p",{style:{color:"#eaeaea",marginTop:"20px"},children:["Please read the full",e.jsx(is,{style:{color:"#01bf71"},to:{pathname:"/extension-privacy"},children:" Terms & Conditions and Privacy Policy"})," before using this feature."]}),e.jsx("h5",{style:{color:"#eaeaea",marginTop:"20px"},children:"✅ Final Note"}),e.jsx("ul",{children:e.jsxs("li",{children:["With ",e.jsx("b",{style:{color:"#eaeaea"},children:"Smart Apply (Agent Ambo)"}),", you save hours of manual work while applying to jobs. Just set it up once, and let it handle the repetitive process for you!"]})})]})]})})}),p4="/assets/AmboStep1-C5q8FS95.png",g4="/assets/AmboStep2-Zlvu6ykQ.png",x4="/assets/AmboStep3-D7Qvll8d.png",f4={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:600},bgcolor:"#1A1A1A",borderRadius:"12px",boxShadow:"0px 4px 24px rgba(0, 0, 0, 0.5)",p:"40px",outline:"none",textAlign:"center",color:"#FFFFFF"},kp={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",margin:"0 4px"},j4={...kp,backgroundColor:"#01BF71"},y4={...kp,backgroundColor:"#555555"},b4=({isStepsModalOpen:s,setIsStepsModalOpen:t})=>{const{errorToast:a,successToast:i}=he(),[n,r]=b.useState(1),[l,c]=b.useState(30),[o,p]=b.useState(!1),[h,d]=b.useState(!1),[u,m]=b.useState(!1),f=()=>{var x,j;return((x=window.chrome)==null?void 0:x.runtime)||((j=window.browser)==null?void 0:j.runtime)},v=x=>{const j=f();let I=!1;if(typeof(j==null?void 0:j.sendMessage)=="function"&&bl)try{j.sendMessage(bl,x,w=>{j.lastError&&console.log("Direct extension messaging failed, falling back to postMessage")}),I=!0}catch(w){console.error("Error sending direct message:",w)}return typeof(window==null?void 0:window.postMessage)=="function"&&(window.postMessage({type:"AGENT_AMBO_EXTENSION_COMMAND",payload:x},"*"),I=!0),I},N=()=>{v({action:"OPEN_EXTENSION_UI"})?d(!0):a("Could not open the extension. Please click the Agent Ambo toolbar icon.")};b.useEffect(()=>{if(!s)return;n===3&&!h&&N(),n!==3&&h&&d(!1);let x;return n===4?x=setInterval(()=>{c(j=>{if(j<=0)return clearInterval(x),0;const I=j-1;return I<=0&&(p(!0),clearInterval(x)),I})},1e3):(c(30),p(!1)),()=>clearInterval(x)},[n,s]);const _=()=>{t(!1),r(1),m(!1)};return e.jsx(qe,{open:s,onClose:_,"aria-labelledby":"steps-modal-title","aria-describedby":"steps-modal-description",children:e.jsxs(Ie,{sx:f4,children:[n<5&&e.jsxs("div",{style:{position:"relative",marginBottom:"24px"},children:[n>1&&e.jsx("button",{onClick:()=>r(n-1),style:{position:"absolute",left:0,top:0,background:"none",border:"none",color:"#ccc",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px",fontSize:"14px"},children:"← Back"}),e.jsxs("div",{children:[e.jsxs("div",{style:{fontSize:"14px",color:"#AAAAAA",marginBottom:"8px"},children:["Step ",n," of 4"]}),e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:[1,2,3,4].map(x=>e.jsx("span",{style:x===n?j4:y4},x))})]})]}),n===1&&e.jsxs(e.Fragment,{children:[e.jsx("label",{id:"steps-modal-title",style:{fontSize:"24px",fontWeight:"bold",marginBottom:"12px"}
154,children:"Install Smart Apply Extension"}),e.jsx("p",{id:"steps-modal-description",style:{fontSize:"14px",color:"#CCCCCC",marginBottom:"32px"},children:"To enable automatic job applications, install the Smart Apply Chrome Extension."}),e.jsx("div",{style:{border:"1px solid #333333",borderRadius:"12px",padding:"16px",marginBottom:"32px",backgroundColor:"#111111"},children:e.jsx("img",{src:p4,alt:"Smart Apply Extension",style:{width:"100%",borderRadius:"8px"}})}),e.jsx("button",{style:{width:"100%",backgroundColor:"#01BF71",color:"#FFFFFF",border:"none",borderRadius:"8px",padding:"14px",fontSize:"16px",fontWeight:"600",cursor:"pointer",marginBottom:"16px"},onClick:()=>window.open("https://chromewebstore.google.com/detail/agent-ambo-smart-apply/nipmfaebpejapgciaokekmckmfhcclff","_blank"),children:"Add to Chrome"}),e.jsx("button",{style:{width:"100%",backgroundColor:"#EAEAEA",color:"#111111",border:"none",borderRadius:"8px",padding:"14px",fontSize:"16px",fontWeight:"600",cursor:"pointer"},onClick:()=>r(2),children:"I already installed it"})]}),n===2&&e.jsxs(e.Fragment,{children:[e.jsx("label",{id:"steps-modal-title",style:{fontSize:"24px",fontWeight:"bold",marginBottom:"12px"},children:"Login to Your Job Portals"}),e.jsx("p",{style:{fontSize:"14px",color:"#CCCCCC",marginBottom:"32px"},children:"Make sure you are logged in to supported job platforms before starting automation."}),e.jsxs("div",{style:{border:"1px solid #333",borderRadius:"12px",padding:"16px",marginBottom:"24px",textAlign:"left"},children:[e.jsx("div",{style:{fontWeight:"bold",marginBottom:"12px",color:"#FFFFFF"},children:"Supported Portals:"}),e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"12px",color:"#ccc",fontSize:"14px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:"#01BF71",borderRadius:"50%"}})," ","LinkedIn"]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:"#01BF71",borderRadius:"50%"}})," ","Naukri"]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:"#01BF71",borderRadius:"50%"}})," ","Shine"]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:"#01BF71",borderRadius:"50%"}})," ","Indeed"]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:"#01BF71",borderRadius:"50%"}})," ","Hirist"]})]})]}),e.jsx("div",{style:{border:"1px solid #333333",borderRadius:"12px",padding:"16px",marginBottom:"32px",backgroundColor:"#111111"},children:e.jsx("img",{src:g4,alt:"Job Portals",style:{width:"100%",borderRadius:"8px"}})}),e.jsx("button",{style:{width:"100%",backgroundColor:"#01BF71",color:"#FFFFFF",border:"none",borderRadius:"8px",padding:"14px",fontSize:"16px",fontWeight:"600",cursor:"pointer",marginBottom:"16px"},onClick:()=>r(3),children:"I'm Logged In"})]}),n===3&&e.jsxs(e.Fragment,{children:[e.jsx("label",{style:{fontSize:"24px",fontWeight:"bold",marginBottom:"12px"},children:"Start Auto Apply in the Extension"}),e.jsxs("p",{style:{fontSize:"14px",color:"#CCCCCC",marginBottom:"32px"},children:["Open the Smart Apply extension and click"," ",e.jsx("span",{style:{color:"#01BF71"},children:"Smart Apply"})," to begin applying automatically."]}),e.jsx("div",{style:{border:"1px solid #333333",borderRadius:"12px",padding:"16px",marginBottom:"32px",backgroundColor:"#111111"},children:e.jsx("img",{src:x4,alt:"Start Auto Apply",style:{width:"100%",borderRadius:"8px"}})}),e.jsx("button",{style:{width:"100%",backgroundColor:"#EAEAEA",color:"#111111",border:"none",borderRadius:"8px",padding:"14px",fontSize:"16px",fontWeight:"600",cursor:"pointer"},onClick:()=>r(4),children:"Auto Apply Started"})]}),n===4&&e.jsxs(e.Fragment,{children:[e.jsx("label",{style:{fontSize:"24px",fontWeight:"bold",marginBottom:"12px"},children:"Automation Running"}),e.jsx("p",{style:{fontSize:"14px",color:"#CCCCCC",marginBottom:"32px"}
154,children:"Smart Apply is now applying for jobs automatically."}),e.jsxs("div",{style:{border:"1px solid #333",borderRadius:"12px",padding:"48px 16px",marginBottom:"16px",backgroundColor:"#111",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[e.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"50%",border:"3px solid #333",borderTopColor:"#01BF71",animation:l<=0?"none":"spin 1s linear infinite",marginBottom:"16px"}}),e.jsx("style",{children:"@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }"}),e.jsx("div",{style:{color:"#ccc",fontSize:"14px"},children:"Extension Applying to Jobs"})]}),e.jsxs("div",{style:{border:"1px solid #333",borderRadius:"12px",padding:"24px 16px",backgroundColor:"#111",marginBottom:o?"16px":"0"},children:[e.jsx("div",{style:{color:"#ccc",fontSize:"14px",marginBottom:"8px"},children:"Time Remaining"}),e.jsxs("div",{style:{color:"#01BF71",fontSize:"32px",fontWeight:"bold"},children:[String(Math.floor(l/60)).padStart(2,"0"),":",String(l%60).padStart(2,"0")]})]}),o&&e.jsxs("div",{style:{border:"1px solid #333",borderRadius:"12px",padding:"24px 16px",backgroundColor:"#111"},children:[e.jsx("div",{style:{color:"#ccc",fontSize:"14px",marginBottom:"16px"},children:"Not seeing applications yet?"}),e.jsx("button",{style:{backgroundColor:"#EAEAEA",color:"#111111",border:"none",borderRadius:"8px",padding:"10px 24px",fontSize:"14px",fontWeight:"600",cursor:"pointer"},onClick:()=>r(5),children:"Report"})]})]}),n===5&&e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",padding:"20px 0"},children:[e.jsx("div",{style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"#222",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#ccc",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M3 18v-6a9 9 0 0 1 18 0v6"}),e.jsx("path",{d:"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"})]})}),e.jsx("label",{style:{fontSize:"24px",fontWeight:"bold",marginBottom:"12px"},children:"Need Support?"}),e.jsx("p",{style:{fontSize:"14px",color:"#ccc",marginBottom:"32px",maxWidth:"300px",margin:"0 auto 32px auto"},children:"If you're still facing issues, please record your screen and send it to:"}),e.jsx("div",{style:{width:"100%",border:"1px solid #333",borderRadius:"8px",padding:"16px",backgroundColor:"#111",color:"#01BF71",fontWeight:"bold",marginBottom:"24px"},children:"[email protected]"}),e.jsx("button",{style:{width:"100%",backgroundColor:"#01BF71",color:"#fff",border:"none",borderRadius:"8px",padding:"14px",fontSize:"16px",fontWeight:"600",cursor:"pointer",marginBottom:"16px"},onClick:()=>{navigator.clipboard.writeText("[email protected]"),m(!0),setTimeout(()=>{m(!1)},2e3)},children:u?"Copied":"Copy Email Address"}),e.jsx("button",{style:{width:"100%",backgroundColor:"#EAEAEA",color:"#111",border:"none",borderRadius:"8px",padding:"14px",fontSize:"16px",fontWeight:"600",cursor:"pointer"},onClick:()=>r(4),children:"Go Back"})]})]})})},Wl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%20height='20px'%20width='20px'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='m4.5%2019.5%2015-15m0%200H8.25m11.25%200v11.25'%20/%3e%3c/svg%3e",v4="/assets/Chrome-DbAKmlZ6.png",_4="/assets/thumbnail-B1_o5hQR.png",N4="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_2'%20data-name='Layer%202'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20314.26%20359.44'%3e%3cdefs%3e%3cstyle%3e%20.cls-1,%20.cls-2%20{%20fill:%20%230add87;%20}%20.cls-3%20{%20fill:%20%23059058;%20}%20.cls-4%20{%20fill:%20%23252b2d;%20}%20.cls-5%20{%20fill:%20url(%23linear-gradient);%20}%20.cls-6%20{%20fill:%20%230add87;%20}%20.cls-2%20{%20stroke:%20%23252b2d;%20stroke-miterlimit:%2010;%20stroke-width:%205px;%20}%20%3c/style%3e%3clinearGradient%20id='linear-gradient'%20x1='145.72'%20y1='47.33'%20x2='209.66'%20y2='47.33'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23b2ffde'/%3e%3cstop%20offset='.13'%20stop-color='%23a3e9cb'/%3e%3cstop%20offset='.41'%20stop-color='%237db09c'/%3e%3cstop%20offset='.8'%20stop-color='%23425651'/%3e%3cstop%20offset='.98'%20stop-color='%23252b2d'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cg%3e%3cg%3e%3cpath%20class='cls-5'%20d='M146.46,78.74s-.06-.06-.09-.09c-.94-.96-.
15463-2.39-.47-3.62.29-2.3.72-4.59,1.4-6.81,2.77-9.01,5.93-18,10.64-26.18,4.17-7.24,9.63-13.84,16.52-18.56,10.15-6.95,22.91-9.41,35.19-8.62-8.9,2.06-19.59,3.49-27.36,8.29s-12.86,10.87-17.24,18.89c-5.27,9.64-6.54,23.04-6.37,34.08.03,1.97-1.47,3.66-3.44,3.76-1.89.1-3.78.08-5.67-.07-1.09-.09-2.29-.3-3.11-1.07Z'/%3e%3cg%3e%3ccircle%20class='cls-1'%20cx='214.31'%20cy='14.44'%20r='13.42'/%3e%3cpath%20class='cls-4'%20d='M227.83,14.44c-.12,12.19-14.59,18.56-23.47,9.95-7.23-6.84-4.87-19.56,4.42-23.31,9.33-3.96,19.31,3.5,19.05,13.36h0ZM227.63,14.44c-.14-11.21-14.32-16.46-22.11-8.79-4.96,4.58-5.07,13.05-.24,17.82,7.91,8.22,22.5,2.54,22.35-9.03h0Z'/%3e%3c/g%3e%3c/g%3e%3cellipse%20class='cls-3'%20cx='288.46'%20cy='221.59'%20rx='33.9'%20ry='25.74'%20transform='translate(44.52%20491.42)%20rotate(-85.41)'/%3e%3cellipse%20class='cls-3'%20cx='25.8'%20cy='221.59'%20rx='25.74'%20ry='33.9'%20transform='translate(-17.63%202.77)%20rotate(-4.59)'/%3e%3cg%3e%3ccircle%20class='cls-2'%20cx='157.64'%20cy='223.49'%20r='133.42'/%3e%3cg%3e%3cpath%20class='cls-6'%20d='M257.06,136.35s-93.87,113.98-195.14,0c0,0,91.96-108.65,195.14,0Z'/%3e%3cpath%20class='cls-4'%20d='M257.46,136.34c-.02.25-.23.43-.38.62,0,0-.29.34-.29.34l-.58.68c-12.12,13.83-26.5,25.64-42.48,34.79-34.95,20.24-74.36,22.13-109.87,2.03-17.66-9.77-32.86-23.41-46.23-38.37,12.97-15.36,28.89-27.99,46.51-37.66,56.98-30.95,113.97-10.21,153.31,37.58h0ZM256.66,136.37c-4.87-4.22-10.71-9.44-15.75-13.38-7.22-5.68-14.9-10.92-22.91-15.44-49.01-28.57-103.29-14.97-143.94,21.37-3.34,2.98-6.73,6.23-9.68,9.51,0,0-.05-4.21-.05-4.21,31.27,36.4,73.49,60.7,122.33,46.88,26.9-7.46,51.51-25.04,70.01-44.73h0Z'/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M106.2,272.16s.08-.06.13-.09c1.9-1.1,9.88,4.15,11.99,5.05,4.37,1.86,8.84,3.47,13.41,4.73,24.32,6.68,51.27,2.62,72.67-10.97.71-.45,1.76-.86,2.27-.18.48.66-.12,1.55-.69,2.13-14.28,14.34-32.99,25.75-52.98,25.11-10.69-.34-21.1-4.13-30.26-9.77-2.31-1.42-19.54-13.69-16.53-16.01Z'/%3e%3crect%20x='100.06'%20y='218.22'%20width='20.87'%20height='30.69'%20rx='10.43'%20ry='10.43'/%3e%3crect%20x='188.43'%20y='218.22'%20width='20.87'%20height='30.69'%20rx='10.43'%20ry='10.43'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",w4="/assets/SmartApplyVC-DhXfqoBJ.mp4",S4=()=>{const[s,t]=b.useState(!1),[a,i]=b.useState(!1),[n,r]=b.useState(""),l=o=>{o.preventDefault(),t(!0)},c=o=>{/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)&&(o.preventDefault(),r("⚠ Supported only on desktop or laptop, not on mobile"))};return e.jsxs("div",{className:"ambo__chats-container",style:{padding:"30px"},children:[e.jsx("h3",{className:"ambo-smart-header",children:"Agent Ambo - Smart apply | Chrome Extension"}),e.jsx("h6",{className:"ambo-smart-sub mt-3",children:"Use this extension to automatically apply for jobs on other platforms and get hired faster."}),e.jsxs("div",{className:"ambo-smart-grid-container mt-4",children:[e.jsxs("div",{className:"ambo-left-grid",children:[e.jsxs("div",{style:{display:"flex",gap:"30px"},children:[e.jsx("img",{src:v4,style:{height:"50px",width:"50px"},className:"mt-4",alt:"chrome"}),e.jsx("img",{src:It,style:{height:"20px",width:"20px",marginTop:"40px"},alt:"plus"}),e.jsx("img",{src:N4,style:{height:"50px",width:"50px"},className:"mt-4",alt:"ambo"})]}),e.jsxs("label",{className:"custom-checkbox-label text-white mt-4",style:{justifyContent:"start"},children:[e.jsx("input",{type:"checkbox",checked:!0,className:"custom-checkbox"}),e.jsx("span",{className:"custom-checkbox-box"}),e.jsxs("label",{className:"ambo-smart-sub",children:["I accept the"," ",e.jsxs("span",{children:["Terms & Conditions ",e.jsx("label",{className:"ambo-smart-sub",children:"and"})," Privacy Policy"]})]})]}),e.jsxs("div",{className:"btn-container start-automation mt-4",children:[e.jsxs("a",{href:"https://chromewebstore.google.com/detail/agent-ambo-smart-apply/nipmfaebpejapgciaokekmckmfhcclff",target:"_blank",rel:"noopener noreferrer",className:"add-to-btn service-btn d-flex justify-content-center align-items-center",style:{width:"100%",boxSizing:"border-box",textDecoration:"none"},onClick:c,children:[e.jsx("label",{style:{cursor:"pointer",margin:0},children:"Start Automation"}),e.jsx("img",{src:wp,className:"redirect-icons",alt:"redirect"})]}),e.jsx("div",{style:{textAlign:"center",color:"#A3A3A3",fontSize:"16px",margin:"4px 0"},children:"(Add to Chrome)"}),n&&e.jsx("p",{style:{color:"#FF5F57",fontSize:"14px",textAlign:"center",margin:"4px 0"},children:n}),e.jsxs("div",{className:"report-use",children:[e.jsxs("a",{href:"#",className:"add-to-btn service-btn d-flex justify-content-center align-items-center",style:{border:"1px solid #eaeaea",background:"transparent",padding:"10px 20px",flex:1,textDecoration:"none"},onClick:o=>{o.preventDefault(),i(!0)},children:[e.jsx("label",{style:{cursor:"pointer",margin:0,whiteSpace:"nowrap"},children:"Report a Problem"}),e.jsx("img",{src:Wl,className:"redirect-icons",alt:"up-arrow"})]}),e.jsxs("a",{href:"#",className:"add-to-btn service-btn d-flex justify-content-center align-items-center",style:{border:"1px solid #eaeaea",background:"transparent",padding:"10px 20px",flex:1,textDecoration:"none"},onClick:l,children:[e.jsx("label",{style:{cursor:"pointer",margin:0,whiteSpace:"nowrap"},children:"How to use?"}),e.jsx("img",{src:Wl,className:"redirect-icons",alt:"up-arrow"})]})]})]}),e.jsx("p",{className:"ambo-smart-sub mt-3 mb-3",children:"Our extension is only available on Google Chrome"}),e.jsx("a",{className:"ambo-smart-dwn",href:"https://www.google.com/intl/en_uk/chrome/dr/download/",target:"_blank",rel:"noopener noreferrer",children:"Download Chrome"})]}),e.jsx("div",{style:{marginTop:"30px"},children:e.jsxs("video",{className:"smart-video",controls:!0,poster:_4,children:[e.jsx("source",{src:w4,type:"video/mp4"}),e.jsx("source",{src:"mov_bbb.ogg",type:"video/ogg"}),"Your browser does not support HTML video."]})})]}),e.jsx(u4,{isModalOpen:s,setIsModalOpen:t}),e.jsx(b4,{isStepsModalOpen:a,setIsStepsModalOpen:i})]})},Ct=gs(T0)(({theme:s})=>({[`&.${ni.head}`]:{borderRight:"1px solid #4E4E4E",backgroundColor:"#242424",color:"#A3A3A3",fontSize:12,fontWeight:"bold",padding:5},[`&.${ni.body}
154`]:{borderRight:"1px solid #4E4E4E",fontSize:14},"&:last-child":{borderRight:"none"},[`&.${ni.root}`]:{padding:8}})),$l=gs(ed)(({theme:s})=>({backgroundColor:"transparent"})),k4=({oneChat:s})=>{var d,u,m,f,v,N,_,x,j,I,w,y,k,S;const[t,a]=b.useState(50),i=b.useRef(null),n=50,r=(d=s==null?void 0:s[0])==null?void 0:d.inside.appliedCompanies;console.log(s,"chat");const l=mv((u=s==null?void 0:s[0])==null?void 0:u.createdAt);console.log(l,"applyExtensionDays");const c=(r==null?void 0:r.length)>0?[...r].sort((g,E)=>{const C=new Date(g.appliedDate),T=new Date(E.appliedDate),A=isNaN(C.getTime())?0:C.getTime();return(isNaN(T.getTime())?0:T.getTime())-A}):[],o=(c==null?void 0:c.slice(0,t))||[],p=o.length<((c==null?void 0:c.length)||0),h=b.useCallback(()=>{a(g=>Math.min(g+n,(c==null?void 0:c.length)||g))},[c==null?void 0:c.length]);return b.useEffect(()=>{const g=i.current;if(!g||!(c!=null&&c.length))return;const E=new IntersectionObserver(T=>{T[0].isIntersecting&&t<c.length&&h()},{threshold:.01});let C=g.querySelector("#infinite-scroll-sentinel");return C||(C=document.createElement("div"),C.id="infinite-scroll-sentinel",C.style.height="20px",C.style.marginTop="20px",g.appendChild(C)),E.observe(C),()=>{E.disconnect()}},[t,c==null?void 0:c.length,h]),e.jsx(e.Fragment,{children:(s==null?void 0:s[0].paymentId)&&e.jsx("div",{style:(o==null?void 0:o.length)>0?{height:"auto"}:{height:"80vh"},children:e.jsxs("div",{ref:i,style:{height:"80vh",overflowY:"auto",paddingBottom:"5rem",scrollbarWidth:"none"},children:[e.jsx("div",{className:"set__container--item1__parent",style:{borderRadius:"8px",backgroundColor:"#1e1e1e",color:"var(--accent-color-hire)",fontSize:"16px",fontWeight:"500",marginLeft:"10px",marginRight:"10px"},children:e.jsxs("span",{style:{marginLeft:"10px"},children:["Auto Apply - ",l]})}),((f=(m=s[0])==null?void 0:m.inside)==null?void 0:f.resumeScore)&&e.jsxs("div",{className:"ambo__chats-container reports-container",style:{display:"grid",gridTemplateColumns:"1fr 1fr 10fr"},children:[e.jsxs("div",{style:{width:"100%",marginTop:"10px"},children:[e.jsx("p",{style:{color:"#EAEAEA"},children:"Profile Score"}),e.jsxs("div",{style:{width:150},children:[e.jsx("svg",{style:{height:0},children:e.jsx("defs",{children:e.jsxs("linearGradient",{id:"gradient",gradientTransform:"rotate(70)",children:[e.jsx("stop",{offset:"10%",stopColor:"#242424"}),e.jsx("stop",{offset:"100%",stopColor:"#01bf71"})]})})}),e.jsxs(Ng,{circleRatio:.5,value:(N=(v=s[0])==null?void 0:v.inside)==null?void 0:N.resumeScore,strokeWidth:20,styles:wg({rotation:-.25,pathColor:"url(#gradient)",trailColor:"#252b2d"}),children:[e.jsx("div",{children:e.jsx("p",{style:{color:"#FFFFFF",marginBottom:"10px"},children:(x=(_=s[0])==null?void 0:_.inside)==null?void 0:x.resumeScore})}),e.jsx("p",{style:{color:"#A3A3A3"},children:"Total Score"})]})]})]}),e.jsx(Os,{orientation:"vertical",variant:"middle",flexItem:!0,sx:{borderRight:"1px solid #6E6E6E",height:"100%"}}),e.jsxs("div",{className:"ambo__improve-conatiner",children:[e.jsx("p",{className:"ambo__improve",children:"Areas to Improve"}),e.jsx("ul",{className:"ambo__improve-lists ambo__custom-Scroll",style:{padding:18},children:(w=(I=(j=s[0])==null?void 0:j.inside)==null?void 0:I.gptSuggestion)==null?void 0:w.map((g,E)=>e.jsx("li",{style:{color:"#A3A3A3",fontSize:"16px",fontWeight:"300"},children:g},E))})]})]}),e.jsx(S4,{}),e.jsxs("div",{className:"ambo__chats-container",children:[(s==null?void 0:s.length)>0&&e.jsx(e.Fragment,{children:e.jsxs("p",{fontSize:16,fontWeight:"medium",children:[e.jsx("span",{className:"ambo__chats-header",children:"Position: "}),e.jsx("span",{className:"ambo__chats-header",children:(k=(y=s[0])==null?void 0:y.inside)==null?void 0:k.answers.designation}),e.jsxs("span",{className:"ambo__chats-header",children:[" ","-  ",ks((S=s[0])==null?void 0:S.createdAt)]})]})}),e.jsx("div",{style:{padding:"15px",backgroundColor:"#1a1a1a",borderRadius:"6px",border:"1px solid #01BF71",marginBottom:"15px"},children:e.jsx("p",{style:{color:"#01BF71",fontSize:"14px",fontWeight:"500",margin:0},children:"💡 Tip: Newly applied jobs appear at the top of the table"})}),e.jsx("div",{className:"admin__table",children:e.jsx("div",{className:"ambo__web-table",children:e.jsxs("table",{className:"table-line",style:{width:"100%",tableLayout:"fixed"},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"ambo__report-table",style:{color:"#A3A3A3",width:"8%",whiteSpace:"nowrap"},children:"S. No"}),e.jsx("th",{scope:"col",className:"ambo__report-table",style:{color:"#A3A3A3",width:"35%",whiteSpace:"nowrap"},children:"Name of the Company"}),e.jsx("th",{scope:"col",className:"ambo__report-table",style:{color:"#A3A3A3",width:"35%",whiteSpace:"nowrap"},children:"Job title"}),e.jsx("th",{scope:"col",className:"ambo__report-table",style:{color:"#A3A3A3",width:"35%",whiteSpace:"nowrap"},children:"Portal"}),e.jsx("th",{scope:"col",className:"ambo__report-table",style:{color:"#A3A3A3",width:"22%",whiteSpace:"nowrap"},children:"Location"})]})}),e.jsx("tbody",{children:(o==null?void 0:o.length)>0?o==null?void 0:o.map((g,E)=>e.jsxs("tr",{children:[e.jsx("td",{style:{border:"none",width:"8%"},children:e.jsx("p",{style:{color:"#EAEAEA",fontSize:"16px",fontWeight:"300",border:"none"},children:E+1})}),e.jsx("td",{style:{border:"none",width:"35%"},children:e.jsx("p",{style:{color:"#01BF71",fontSize:"16px",fontWeight:"300"}
154,children:g.appliedCompany})}),e.jsx("td",{style:{border:"none",width:"35%"},children:e.jsx("p",{style:{color:"#EAEAEA",fontSize:"16px",fontWeight:"300"},children:g.appliedJobTitle})}),e.jsx("td",{style:{border:"none",width:"35%"},children:e.jsx("p",{style:{color:"#EAEAEA",fontSize:"16px",fontWeight:"300"},children:g.jobApplyExtension?g.jobApplyExtension:"Unknown"})}),e.jsx("td",{style:{border:"none",width:"22%"},children:e.jsx("p",{style:{color:"#A3A3A3",fontSize:"16px",fontWeight:"300"},children:g.appliedLocation})})]},E)):e.jsx("td",{colSpan:"7",scope:"col",className:"admin__f",children:e.jsx("div",{className:"display-flex-aljc-center",children:e.jsx("p",{style:{color:"#6e6e6e",margin:"10px"},children:"Reports will be available soon."})})})})]})})})]}),e.jsx("div",{className:"ambo__mobile-table",children:e.jsx(I0,{children:e.jsx(A0,{sx:(o==null?void 0:o.length)>0?{width:700}:{width:"unset",display:"flex",justifyContent:"center"},"aria-label":"customized table",children:e.jsxs("div",{style:{overflowX:"auto",paddingBottom:"12px",border:"1px solid #4E4E4E",borderRadius:"10px"},children:[e.jsx(E0,{children:e.jsxs(ed,{children:[e.jsx(Ct,{children:"S. No"}),e.jsx(Ct,{align:"left",children:"Name of the Company"}),e.jsx(Ct,{align:"left",children:"Job title"}),e.jsx(Ct,{align:"left",children:"Location"})]})}),e.jsx(M0,{children:(o==null?void 0:o.length)>0?o==null?void 0:o.map((g,E)=>e.jsxs($l,{children:[e.jsx(Ct,{sx:{border:"none",color:"#EAEAEA",fontSize:"16px",fontWeight:"300"},scope:"row",children:E+1}),e.jsx(Ct,{sx:{border:"none",color:"#01BF71",fontSize:"16px",fontWeight:"300"},align:"left",children:g.appliedCompany}),e.jsx(Ct,{sx:{border:"none",color:"#EAEAEA",fontSize:"16px",fontWeight:"300"},align:"left",children:g.appliedJobTitle}),e.jsx(Ct,{sx:{border:"none",color:"#A3A3A3",fontSize:"16px",fontWeight:"300"},align:"left",children:g.appliedLocation})]},E)):e.jsx(e.Fragment,{children:e.jsx($l,{children:e.jsx(Ct,{colSpan:4,sx:{border:"none",color:"#EAEAEA",fontSize:"16px",fontWeight:"300",textAlign:"center"},scope:"row",children:e.jsx("p",{style:{color:"#6e6e6e"},children:"Reports will be available soon."})})},"nodata")})})]})})})}),p&&(o==null?void 0:o.length)>0&&e.jsx("div",{style:{textAlign:"center",padding:"30px 20px",color:"#01BF71",backgroundColor:"#1a1a1a",margin:"20px 0",borderRadius:"8px",fontWeight:"bold"},children:e.jsxs("p",{children:["Scroll to load more. (",o==null?void 0:o.length," of ",c==null?void 0:c.length,")"]})})]})})})},ln=({oneChat:s})=>{var d,u,m,f,v,N,_,x,j,I,w,y,k,S,g;const t=["designation","skills","expectedCTC","experience","location","industry","idealRole","currentCTC","noticePeriod","capableCompanies","preference","dreamCompanies"],a=["current_company","current_designation","your_experience","current_company_experience","referring_companies","referring_locations"],i=["designation","experience","salary","location","mandatory_skills","skills_advantage","noticePeriod","resource","ideal_candidate"],n=["inv_company_name","inv_email","inv_mobile","inv_company_desc","inv_usp","inv_industry","inv_target_audience","inv_company_stage","inv_traction","inv_revenue_amount","inv_milestones","inv_capital_needed","inv_equity_dilution","inv_pitch_deck","inv_preferred_investors"],r=[{q:"serviceCategory",n:"Category"},{q:"serviceList",n:"Requested Service"},{q:"describeService",n:"Service Description"},{q:"serviceDeliveredLocation",n:"Service Delivery Location"},{q:"location",n:"Location"},{q:"budget",n:"Budget"},{q:"mobile",n:"Contact Number"},{q:"email",n:"Email"}],l=()=>{var E,C,T;return e.jsx("div",{className:"ambo__chats-container",children:(s==null?void 0:s.length)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{fontSize:16,fontWeight:"medium",children:[e.jsx("span",{className:"ambo__chats-header",children:"Position: "}),e.jsx("span",{className:"ambo__chats-header",children:(C=(E=s[0])==null?void 0:E.inside)==null?void 0:C.answers.designation}),e.jsxs("span",{className:"ambo__chats-header",children:[" ","-  ",ks((T=s[0])==null?void 0:T.createdAt)]})]}),e.jsx("div",{className:"custom__Scroll",style:{height:"450px"},children:t.map(A=>{var R,P;return e.jsxs("div",{className:"agentambo-container",children:[e.jsx("p",{className:"agentambo-header",children:de(A)}),e.jsx("p",{className:"agentambo-descrp",children:(P=(R=s[0])==null?void 0:R.inside)==null?void 0:P.answers[A]})]})})})]})})},c=()=>{var E,C,T;return e.jsx("div",{className:"ambo__chats-container",children:(s==null?void 0:s.length)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{fontSize:16,fontWeight:"medium",children:[e.jsx("span",{className:"ambo__chats-header",children:"Referring for: "}),e.jsx("span",{className:"ambo__chats-header",children:(C=(E=s[0])==null?void 0:E.inside)==null?void 0:C.answers.referring_companies}),e.jsxs("span",{className:"ambo__chats-header",children:[" ","-  ",ks((T=s[0])==null?void 0:T.createdAt)]})]}),e.jsx("div",{className:"custom__Scroll",style:{height:"450px"},children:a.map(A=>{var R,P;return e.jsxs("div",{className:"agentambo-container",children:[e.jsx("p",{className:"agentambo-header",children:de(A.replace(/_/g," "))}),e.jsx("p",{className:"agentambo-descrp",children:(P=(R=s[0])==null?void 0:R.inside)==null?void 0:P.answers[A]})]})})})]})})},o=()=>{var E,C,T;return e.jsx("div",{className:"ambo__chats-container",children:(s==null?void 0:s.length)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{fontSize:16,fontWeight:"medium",children:[e.jsx("span",{className:"ambo__chats-header",children:"Recruiting Position: "}),e.jsx("span",{className:"ambo__chats-header",children:(C=(E=s[0])==null?void 0:E.inside)==null?void 0:C.answers.designation}),e.jsxs("span",{className:"ambo__chats-header",children:[" ","-  ",ks((T=s[0])==null?void 0:T.createdAt)]})]}),e.jsx("div",{className:"custom__Scroll",style:{height:"450px"},children:i.map(A=>{var R,P;return e.jsxs("div",{className:"agentambo-container",children:[e.jsx("p",{className:"agentambo-header",children:de(A.replace(/_/g," "))}),e.jsx("p",{className:"agentambo-descrp",children:(P=(R=s[0])==null?void 0:R.inside)==null?void 0:P.answers[A]})]})})})]})})},p=()=>{var E,C,T;return e.jsx("div",{className:"ambo__chats-container",children:(s==null?void 0:s.length)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{fontSize:16,fontWeight:"medium",children:[e.jsx("span",{className:"ambo__chats-header",children:"Raising Fund for: "}),e.jsx("span",{className:"ambo__chats-header",children:(C=(E=s[0])==null?void 0:E.inside)==null?void 0:C.answers.inv_company_name}),e.jsxs("span",{className:"ambo__chats-header",children:[" ","-  ",ks((T=s[0])==null?void 0:T.createdAt)]})]}),e.jsx("div",{className:"custom__Scroll",style:{height:"450px"},children:n.map(A=>{var R,P;return e.jsxs("div",{className:"agentambo-container",children:[e.jsx("p",{className:"agentambo-header",children:de(A.replace(/_/g," "))}),e.jsx("p",{className:"agentambo-descrp",children:(P=(R=s[0])==null?void 0:R.inside)==null?void 0:P.answers[A]})]})})})]})})},h=()=>{var E,C,T;return e.jsx("div",{className:"ambo__chats-container",children:(s==null?void 0:s.length)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{fontSize:16,fontWeight:"medium",children:[e.jsx("span",{className:"ambo__chats-header",children:"Service Request: "}),e.jsx("span",{className:"ambo__chats-header",children:(C=(E=s[0])==null?void 0:E.inside)==null?void 0:C.answers.serviceList}),e.jsxs("span",{className:"ambo__chats-header",children:[" ","-  ",ks((T=s[0])==null?void 0:T.createdAt)]})]}),e.jsx("div",{className:"custom__Scroll",style:{height:"450px"},children:r.map(A=>{var R,P;return e.jsxs("div",{className:"agentambo-container",children:[e.jsx("p",{className:"agentambo-header",children:A.n}),e.jsx("p",{className:"agentambo-descrp",children:(P=(R=s[0])==null?void 0:R.inside)==null?void 0:P.answers[A.q]})]})})})]})})};return e.jsx(e.Fragment,{children:(s==null?void 0:s.length)>0&&((m=(u=(d=s[0])==null?void 0:d.inside)==null?void 0:u.answers
154)==null?void 0:m.main)==="Job Searching"?e.jsx(l,{}):(s==null?void 0:s.length)>0&&((N=(v=(f=s[0])==null?void 0:f.inside)==null?void 0:v.answers)==null?void 0:N.main)==="Referring"?e.jsx(c,{}):(s==null?void 0:s.length)>0&&((j=(x=(_=s[0])==null?void 0:_.inside)==null?void 0:x.answers)==null?void 0:j.main)==="Recruiting"?e.jsx(o,{}):(s==null?void 0:s.length)>0&&((y=(w=(I=s[0])==null?void 0:I.inside)==null?void 0:w.answers)==null?void 0:y.main)==="Investment"?e.jsx(p,{}):(s==null?void 0:s.length)>0&&((g=(S=(k=s[0])==null?void 0:k.inside)==null?void 0:S.answers)==null?void 0:g.main)==="Service Request"?e.jsx(h,{}):e.jsx(l,{})})},Hl=({inData:s})=>{var o,p,h,d;const{user:t}=G(u=>u.auth);let a=(o=s==null?void 0:s.inside)==null?void 0:o.answers;const{gotoConversation:i}=Be(),{errorHandle:n}=he(),r=ge();let l=(p=s==null?void 0:s.inside)==null?void 0:p.userId;const c=async()=>{var u,m,f,v,N,_;try{let j=await Hs({body:{userIds:[l,t],convoType:"SINGLE",convoStatus:"request"}});if((j==null?void 0:j.message)!=="Duplicate")i((m=(u=j==null?void 0:j.data)==null?void 0:u.conversationData)==null?void 0:m._id);else{i((v=(f=j==null?void 0:j.data)==null?void 0:f.conversations[0])==null?void 0:v._id);let I=await Gs({conversationId:Ee((N=j==null?void 0:j.data)==null?void 0:N.conversationData[0]._id)});const{messages:w,totalPages:y,currentPage:k,unseenNotifications:S}=I==null?void 0:I.data;r(Us(w,k,y,(_=j==null?void 0:j.data)==null?void 0:_.conversationData[0]._id)),r(Ss(S))}}catch(x){n(x)}};return e.jsx(Fs,{sx:{bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid #4E4E4E",marginTop:"16px"},className:"insideData-card",children:e.jsx(xt,{sx:{minHeight:300},children:e.jsxs(ws,{sx:{width:"100%",maxWidth:360,bgcolor:"#1E1E1E"},children:[e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"bold",fontSize:"16px"},onClick:()=>{window.open(`/profile/${l.tickbigLink}`,"_blank")},style:{cursor:"pointer"},children:de((d=(h=s==null?void 0:s.inside)==null?void 0:h.answers)==null?void 0:d.Name)})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#01BF71",fontWeight:"500",fontSize:"14px"},children:de(a==null?void 0:a.current_designation)})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:isNaN(a==null?void 0:a.your_experience)?de(a==null?void 0:a.your_experience):`${a==null?void 0:a.your_experience} Years`})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"500",fontSize:"14px"},children:(a==null?void 0:a.email)??"[email protected]"})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:de(a==null?void 0:a.referring_companies)})}),e.jsx(fe,{children:e.jsxs(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:["Location: ","",de(a==null?void 0:a.referring_locations)]})}),e.jsx(fe,{children:t===l._id?e.jsx("button",{disabled:!0,className:"msg-ask-referrals msg-refer-text",children:"Your Referral"}):e.jsx("button",{onClick:c,className:"msg-ask-referrals msg-refer-text",children:"Ask Referrals"})})]})})})},C4=({uniqueKey:s,oneChat:t})=>{const[a,i]=b.useState(1),[n,r]=b.useState([]),[l,c]=b.useState(!1),[o,p]=b.useState(0),h=async(d,u)=>{c(!0);const m=await m5({designation:u,page:d}),{chats:f,pageNo:v,totalPages:N}=m==null?void 0:m.data;p(N),i(v),f.length>0&&(v===1&&(N===1||v<N)?r(f):v!==1&&v<=N?r(_=>[..._,...f]):c(!1)),c(!1)};return b.useEffect(()=>{r([]),i(1),p(0),h(1,"all")},[t,s]),e.jsxs(e.Fragment,{children:[e.jsx("p",{style:{color:"rgb(234, 234, 234)"},className:"ambo__chats-container",children:"Potential Referrers"}),(n==null?void 0:n.length)>0?e.jsx("div",{className:"ambo-referred__layout",children:e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:n.length,next:()=>{if(n.length&&n.length%10==0){let d=a+1;h(d,"all")}},hasMore:a!==o,loader:l&&e.jsx(os,{}),style:{paddingBottom:80},children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:n==null?void 0:n.map((d,u)=>u%2===0?e.jsxs(e.Fragment,{children:[e.jsx(je,{item:!0,lg:2,md:1}),e.jsx(je,{item:!0,xs:12,sm:12,md:5,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(Hl,{index:u,inData:n[u]})},u),n[u+1]?e.jsx(je,{item:!0,xs:12,sm:12,md:5,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(Hl,{index:u,inData:n[u+1]})},u):e.jsx(je,{item:!0,lg:4,md:1})]}):e.jsx(je,{item:!0,lg:2}))})})})}):e.jsx("div",{className:"container-lg",style:{paddingTop:"20px"},children:e.jsx("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:e.jsx("p",{style:{color:"#d6dcdd"},children:"Check back later!"})})})]})},Cp="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iI2VhZWFlYSIgY2xhc3M9InNpemUtNiIgaGVpZ2h0PScyNHB4JyB3aWR0aD0nMjRweCc+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE1Ljc1IDE3LjI1djMuMzc1YzAgLjYyMS0uNTA0IDEuMTI1LTEuMTI1IDEuMTI1aC05Ljc1YTEuMTI1IDEuMTI1IDAgMCAxLTEuMTI1LTEuMTI1VjcuODc1YzAtLjYyMS41MDQtMS4xMjUgMS4xMjUtMS4xMjVINi43NWE5LjA2IDkuMDYgMCAwIDEgMS41LjEyNG03LjUgMTAuMzc2aDMuMzc1Yy42MjEgMCAxLjEyNS0uNTA0IDEuMTI1LTEuMTI1VjExLjI1YzAtNC40Ni0zLjI0My04LjE2MS03LjUtOC44NzZhOS4wNiA5LjA2IDAgMCAwLTEuNS0uMTI0SDkuMzc1Yy0uNjIxIDAtMS4xMjUuNTA0LTEuMTI1IDEuMTI1djMuNW03LjUgMTAuMzc1SDkuMzc1YTEuMTI1IDEuMTI1IDAgMCAxLTEuMTI1LTEuMTI1di05LjI1bTEyIDYuNjI1di0xLjg3NWEzLjM3NSAzLjM3NSAwIDAgMC0zLjM3NS0zLjM3NWgtMS41YTEuMTI1IDEuMTI1IDAgMCAxLTEuMTI1LTEuMTI1di0xLjVhMy4zNzUgMy4zNzUgMCAwIDAtMy4zNzUtMy4zNzVIOS43NSIgLz4NCjwvc3ZnPg0K",T4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23121212'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M8.625%2012a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H8.25m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H12m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200h-.375M21%2012c0%204.556-4.03%208.25-9%208.25a9.764%209.764%200%200%201-2.555-.337A5.972%205.972%200%200%201%205.41%2020.97a5.969%205.969%200%200%201-.474-.065%204.48%204.48%200%200%200%20.978-2.025c.09-.457-.133-.901-.467-1.226C3.93%2016.178%203%2014.189%203%2012c0-4.556%204.03-8.25%209-8.25s9%203.694%209%208.25Z'%20/%3e%3c/svg%3e",Gl=({inData:s})=>{var d,u,m,f;const{user:t}=G(v=>v.auth);let a=(d=s==null?void 0:s.inside)==null?void 0:d.answers;const{gotoConversation:i}=Be(),{errorHandle:n}=he(),r=ge();let l=(u=s==null?void 0:s.inside)==null?void 0:u.userId;const[c,o]=b.useState(!1),p=()=>{const v=a==null?void 0:a.email;v&&navigator.clipboard.writeText(v).then(()=>{o(!0),setTimeout(()=>
154o(!1),2e3)}).catch(N=>{console.error("Failed to copy: ",N),n("Could not copy email")})},h=async()=>{var v,N,_,x,j,I;try{let y=await Hs({body:{userIds:[l,t],convoType:"SINGLE",convoStatus:"request"}});if((y==null?void 0:y.message)!=="Duplicate")i((N=(v=y==null?void 0:y.data)==null?void 0:v.conversationData)==null?void 0:N._id);else{i((x=(_=y==null?void 0:y.data)==null?void 0:_.conversations[0])==null?void 0:x._id);let k=await Gs({conversationId:Ee((j=y==null?void 0:y.data)==null?void 0:j.conversationData[0]._id)});const{messages:S,totalPages:g,currentPage:E,unseenNotifications:C}=k==null?void 0:k.data;r(Us(S,E,g,(I=y==null?void 0:y.data)==null?void 0:I.conversationData[0]._id)),r(Ss(C))}}catch(w){n(w)}};return e.jsx(Fs,{sx:{bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid #4E4E4E",marginTop:"16px"},className:"insideData-card",children:e.jsx(xt,{sx:{minHeight:300},children:e.jsxs(ws,{sx:{width:"100%",maxWidth:360,bgcolor:"#1E1E1E"},children:[e.jsx(fe,{children:e.jsx("p",{variant:"body2",className:"recruiter_header",onClick:()=>{window.open(`/profile/${l.tickbigLink}`,"_blank")},style:{cursor:"pointer"},children:de((f=(m=s==null?void 0:s.inside)==null?void 0:m.answers)==null?void 0:f.Name)})}),e.jsx(fe,{children:e.jsx("p",{variant:"body2",className:"recruiter_desg",children:de(a==null?void 0:a.your_designation)})}),e.jsxs("div",{style:{background:"#2C2C2C",borderRadius:"12px",margin:"10px",height:"30vh"},children:[e.jsx("p",{className:"recruiter_hiring",children:"Hiring Details"}),e.jsx(fe,{children:e.jsx("p",{variant:"body2",className:"recruiter_hiring-desg",children:a==null?void 0:a.designation})}),e.jsx(fe,{children:e.jsx("p",{variant:"body2",className:"recruiter_header",children:de(a==null?void 0:a.company_name)})}),e.jsx(fe,{children:e.jsxs("p",{variant:"body2",className:"recruiter_year",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Experience :"})," ",""," ",isNaN(a==null?void 0:a.experience)?de(a==null?void 0:a.experience):`${a==null?void 0:a.experience} + years`]})}),e.jsx(fe,{children:e.jsxs("p",{variant:"body2",className:"recruiter_year",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Location :"})," ","",de(a==null?void 0:a.location)]})})]}),e.jsxs(fe,{sx:{gap:"10px"},children:[e.jsxs("button",{onClick:p,className:"msg-ask-referrals msg-refer-text",style:{display:"flex",gap:"4px",alignItems:"center"},children:[e.jsx("label",{children:c?"Copied":"Copy mail"}),e.jsx("img",{src:Cp,alt:"copy"})]}),e.jsxs("button",{onClick:h,className:"msg-ask-referrals msg-refer-text",style:{background:"#eaeaea",color:"#121212",display:"flex",gap:"4px",alignItems:"center"},children:[e.jsx("img",{src:T4,alt:"message",style:{height:"22px",width:"22px  "}}),e.jsx("label",{children:" Message"})]})]})]})})})},I4=({uniqueKey:s,oneChat:t})=>{const[a,i]=b.useState(1),[n,r]=b.useState([]),[l,c]=b.useState(!1),[o,p]=b.useState(0),h=async d=>{var N,_,x,j,I,w;c(!0),console.log((x=(_=(N=t[0])==null?void 0:N.inside)==null?void 0:_.answers)==null?void 0:x.designation,"dsignnnn");const u=await h5({designation:(w=(I=(j=t[0])==null?void 0:j.inside)==null?void 0:I.answers)==null?void 0:w.designation,page:d}),{chats:m,pageNo:f,totalPages:v}=u==null?void 0:u.data;p(v),i(f),m.length>0&&(f===1&&(v===1||f<v)?r(m):f!==1&&f<=v?r(y=>[...y,...m]):c(!1)),c(!1)};return b.useEffect(()=>{r([]),i(1),p(0),h(1)},[t,s]),e.jsxs(e.Fragment,{children:[e.jsx("p",{style:{color:"rgb(234, 234, 234)"},className:"ambo__chats-container",children:"Potential Recruiters"}),(n==null?void 0:n.length)>0?e.jsx("div",{className:"",children:e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:n.length,next:()=>{if(n.length&&n.length%10==0){let d=a+1;h(d)}},hasMore:a!==o,loader:l&&e.jsx(os,{}),style:{paddingBottom:80},children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:n==null?void 0:n.map((d,u)=>u%2===0?e.jsxs(e.Fragment,{children:[e.jsx(je,{item:!0,lg:2,md:1}),e.jsx(je,{item:!0,xs:12,sm:12,md:5,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(Gl,{index:u,inData:n[u]})},u),n[u+1]?e.jsx(je,{item:!0,xs:12,sm:12,md:5,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(Gl,{index:u,inData:n[u+1]})},u):e.jsx(je,{item:!0,lg:4,md:1})]}):e.jsx(je,{item:!0,lg:2}))})})})}):e.jsx("div",{className:"container-lg",style:{paddingTop:"20px"},children:e.jsx("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:e.jsx("p",{style:{color:"#d6dcdd"},children:"Check back later!"})})})]})},A4=()=>{var l,c;const{myAmboChats:s}=G(o=>o.ambo);ge(),he(),Be();const[t,a]=b.useState("companies");b.useState(!1),b.useState(!1);const[i,n]=b.useState(null),{chatInsideId:r}=ts();return b.useEffect(()=>{const o=s==null?void 0:s.filter(p=>p._id===r);return console.log(o,"singleChat in JobSearchAmboHistoryMain"),o.length>0&&n(o),()=>{n(null)}},[r,s]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ambo__tab-container",children:[e.jsx("div",{className:"ambo__tabs relative ambo__tabs-menu",style:{paddingLeft:"10px"},children:e.jsxs("div",{children:[e.jsx("button",{className:`ambo__tabs-button ${t==="companies"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("companies"),children:"Applied Companies"}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${t==="chat"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("chat"),children:"Conversation"}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${t==="referrals"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("referrals"),children:"Referrals"}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${t==="jobrecruiters"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("jobrecruiters"),children:"Recruiters"})]})}),e.jsxs("div",{children:[t==="companies"&&e.jsx(k4,{oneChat:i}),t==="chat"&&e.jsx(ln,{oneChat:i}),t==="referrals"&&e.jsx(C4,{uniqueKey:(l=i[0])==null?void 0:l._id,oneChat:i}),t==="jobrecruiters"&&e.jsx(I4,{uniqueKey:(c=i[0])==null?void 0:c._id,oneChat:i})]})]})})},zo="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2012.75L12%2
154015.75M12%2015.75L15%2012.75M12%2015.75L12%208.25M12%203C13.1819%203%2014.3522%203.23279%2015.4442%203.68508C16.5361%204.13738%2017.5282%204.80031%2018.364%205.63604C19.1997%206.47177%2019.8626%207.46392%2020.3149%208.55585C20.7672%209.64778%2021%2010.8181%2021%2012C21%2013.1819%2020.7672%2014.3522%2020.3149%2015.4442C19.8626%2016.5361%2019.1997%2017.5282%2018.364%2018.364C17.5282%2019.1997%2016.5361%2019.8626%2015.4442%2020.3149C14.3522%2020.7672%2013.1819%2021%2012%2021C9.61305%2021%207.32387%2020.0518%205.63604%2018.364C3.94821%2016.6761%203%2014.3869%203%2012C3%209.61305%203.94821%207.32387%205.63604%205.63604C7.32387%203.94821%209.61305%203%2012%203Z'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",cn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M2.25%206.75c0%208.284%206.716%2015%2015%2015h2.25a2.25%202.25%200%200%200%202.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97%201.293c-.282.376-.769.542-1.21.38a12.035%2012.035%200%200%201-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963%203.102a1.125%201.125%200%200%200-1.091-.852H4.5A2.25%202.25%200%200%200%202.25%204.5v2.25Z'%20/%3e%3c/svg%3e",Ta="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23eaeaea'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M8.625%2012a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H8.25m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H12m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200h-.375M21%2012c0%204.556-4.03%208.25-9%208.25a9.764%209.764%200%200%201-2.555-.337A5.972%205.972%200%200%201%205.41%2020.97a5.969%205.969%200%200%201-.474-.065%204.48%204.48%200%200%200%20.978-2.025c.09-.457-.133-.901-.467-1.226C3.93%2016.178%203%2014.189%203%2012c0-4.556%204.03-8.25%209-8.25s9%203.694%209%208.25Z'%20/%3e%3c/svg%3e",dn=({open:s,handleClose:t,mobile:a,email:i})=>e.jsx(qe,{open:s,onClose:t,children:e.jsxs(Ie,{sx:q2,children:[e.jsx(Fe,{variant:"h6",component:"h2",sx:{mb:2,color:"#242424",fontSize:"18px",fontWeight:"400"},children:"Contact Details"}),e.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center",marginTop:"10px"},children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#1E1E1E",class:"size-6",height:"24px",width:"24px",children:e.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"})}),e.jsx(Fe,{sx:{color:"#1e1e1e",fontSize:"16px",fontWeight:"600"},children:a})]}),e.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center",marginTop:"10px"},children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#1E1E1E",class:"size-6",height:"24px",width:"24px",children:e.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"})}),e.jsx(Fe,{sx:{color:"#1e1e1e",fontSize:"16px",fontWeight:"600"},children:i})]}),e.jsx("div",{className:"service-done-btn",children:e.jsx("button",{onClick:t,style:{marginTop:"20px"},className:"done-btn",children:"Close"})})]})}),E4=({open:s,onClose:t,makingPayment:a})=>{var r;const{subscriptions:i}=G(l=>l.subscription),n=i==null?void 0:i.filter(l=>l.name==="AMBO RECRUITER");return e.jsx(qe,{open:s,onClose:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:ou,children:e.jsxs("div",{className:"ambo__pay-card",children:[e.jsx("h5",{className:"ambo__pay-name",children:"Here’s what you get!"}),e.jsx("p",{className:"ambo__pay-gst",children:"Hire from a chat"}),e.jsx("div",{className:"provider-modal-container",children:e.jsxs("ul",{className:"provider-modal-benefits",style:{paddingLeft:"0px"},children:[e.jsx("li",{children:"View the resumes of TickBig users who’re currently looking for Job."}),e.jsx("li",{children:"Download unlimited resumes per month for this current requirement."}
154),e.jsx("li",{children:"Quickly connect and chat with the resources"})]})}),e.jsxs("h4",{className:"ambo__pay-price",children:["₹ ",(r=n==null?void 0:n[0])==null?void 0:r.price]}),e.jsx("h6",{className:"ambo__pay-gst",children:"+ 18% GST (1 Chat)"}),e.jsx("div",{className:"text-center paynow-button",children:e.jsx("button",{className:"ambo__pay-btn",onClick:a,children:"Pay Now"})})]})})})},M4=({inData:s,recruiterChatId:t,recruiterChat:a})=>{var L,F,U,Z,ne,K;let i=(L=s==null?void 0:s.inside)==null?void 0:L.answers;console.log("inData in AmboRecruiterJobSeekerDataCard:",s);const{user:n,userDetails:r}=G(te=>te.auth),l=ge(),{gotoConversation:c}=Be(),{errorHandle:o,errorToast:p,successToast:h}=he(),[d,u]=b.useState(!1),[m,f]=b.useState(!1),[v,N]=b.useState(!1),[_,x]=b.useState(null),[j,I]=b.useState(null),[w,y]=b.useState(!1),[k,S]=b.useState(!1),[g,E]=b.useState({open:!1,status:null}),C=async(te,q=1,H=10)=>{var X;try{return await tn(te)}catch(ee){const se=(X=ee.response)==null?void 0:X.status;if(se===400&&q<H)return new Promise(ae=>{setTimeout(async()=>{const B=await C(te,q+1,H);ae(B)},1e3)});throw se===400?new Error("Payment status is still pending after 10 seconds."):ee}},T=async(te,q)=>{var H,X;try{const ee=await C(te);(H=ee==null?void 0:ee.data)!=null&&H.orderDataSuccess?(N(!0),x((X=ee==null?void 0:ee.data)==null?void 0:X.orderDataSuccess),I(q),y(!0),h(gn)):(y(!1),p(_n))}catch(ee){y(!1),p("Payment failed or timed out."),console.error("Error checking payment status:",ee.message)}},A=async()=>{var te,q;try{const H=await on("Recruiting",1),X={cartList:H.data.products,amount:H.data.totalAmount+H.data.totalGst},ee=(r==null?void 0:r._id)||null,se=X.amount||0,ae=Lo(ee,se,"INR");Nt({eventName:"InitiateCheckout",eventId:ae,amount:se,currency:"INR"});const B=await sn(X);if(B){const W=B==null?void 0:B.data,Q=await rn(W,r);if(Q&&Q.paymentId){const ie=Fo(ee,se,"INR",Q.paymentId,`Purchase_${Q.razorpay_order_id}`);Nt({eventName:"Purchase",eventId:ie,amount:se,currency:"INR",orderId:Q.paymentId}),S(!0);try{const Y=await an({razorpay_order_id:Q.razorpay_order_id,razorpay_payment_id:Q.razorpay_payment_id});((te=Y==null?void 0:Y.data)==null?void 0:te.status)==="Success"?(await b5(t,Q.paymentId.toString()),await T(Q.razorpay_order_id,Q.paymentId)):E({open:!0,status:((q=Y==null?void 0:Y.data)==null?void 0:q.status)||"Pending"})}catch(Y){console.error("Error checking payment status:",Y),E({open:!0,status:"Pending"})}finally{S(!1)}}else u(!1),p(_n)}}catch{u(!1),S(!1)}finally{window.location.reload()}},R=async()=>{var te,q,H,X;if((a==null?void 0:a.paymentId)!==null||v)await P();else{const ee=await Ul({recruiterChatId:t,jobseekerChatId:s==null?void 0:s._id});if((te=ee==null?void 0:ee.data)!=null&&te.hasViewed&&!((q=ee==null?void 0:ee.data)!=null&&q.sameChat)){u(!0);return}else(H=ee==null?void 0:ee.data)!=null&&H.hasViewed&&((X=ee==null?void 0:ee.data)!=null&&X.sameChat)?await P():await P()}},P=async()=>{var te,q,H;try{const X=await _i({recruiterChatId:t,jobseekerChatId:s==null?void 0:s._id});console.log(X,"resume view response"),(te=X==null?void 0:X.data)!=null&&te.resumeUrl&&(console.log("resume link",(q=X==null?void 0:X.data)==null?void 0:q.resumeUrl),window.open((H=X==null?void 0:X.data)==null?void 0:H.resumeUrl,"_blank"))}catch(X){console.log("Error in viewing resume:",X)}},O=async()=>{var te,q,H,X,ee,se;if((a==null?void 0:a.paymentId)!==null||v){const ae=await _i({recruiterChatId:t,jobseekerChatId:s==null?void 0:s._id});if((te=ae==null?void 0:ae.data)!=null&&te.resumeUrl){f(!0);return}}else{const ae=await Ul({recruiterChatId:t,jobseekerChatId:s==null?void 0:s._id});if((q=ae==null?void 0:ae.data)!=null&&q.hasViewed&&!((H=ae==null?void 0:ae.data)!=null&&H.sameChat)){u(!0);return}else if((X=ae==null?void 0:ae.data)!=null&&X.hasViewed&&((ee=ae==null?void 0:ae.data)!=null&&ee.sameChat)){const B=await _i({recruiterChatId:t,jobseekerChatId:s==null?void 0:s._id});if((se=B==null?void 0:B.data)!=null&&se.resumeUrl){f(!0);return}}}},M=async te=>{try{let H=await Hs({body:{userIds:[te,n],convoType:"SINGLE",convoStatus:"accepted"}}),{conversationData:X,conversations:ee}=H==null?void 0:H.data,se=X||ee[0];X&&l(qt(se));let ae=await Gs({conversationId:Ee(se==null?void 0:se._id)});const{messages:B,totalPages:W,currentPage:Q,unseenNotifications:ie}=ae==null?void 0:ae.data;l(Us(B,Q,W,se==null?void 0:se._id)),l(Ss(ie)),c(se==null?void 0:se._id)}catch(q){console.log(q),o(q)}};return e.jsxs(e.Fragment,{children:[e.jsx(Fs,{sx:{bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid #4E4E4E",marginTop:"16px"},className:"insideData-card ",children:e.jsx(xt,{sx:{minHeight:300},children:e.jsxs(ws,{sx:{width:"100%",maxWidth:360,bgcolor:"#1E1E1E"},children:[e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"bold",fontSize:"16px"},children:de((U=(F=s==null?void 0:s.inside)==null?void 0:F.userId)==null?void 0:U.firstName)})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#01BF71",fontWeight:"500",fontSize:"14px"},children:de(i==null?void 0:i.designation)})}),e.jsx(fe,{children:e.jsxs(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:[isNaN(i==null?void 0:i.experience)?de(i==null?void 0:i.experience):`${i==null?void 0:i.experience} Years`," | ",de(i==null?void 0:i.noticePeriod)]})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"500",fontSize:"14px"},children:(i==null?void 0:i.email)??"[email protected]"})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:de(i==null?void 0:i.location)})}),e.jsx(fe,{sx:{paddingLeft:"10px"},children:e.jsx("div",{children:e.jsx("div",{className:"ambo-fullpage__skill",children:(K=(ne=(Z=i==null?void 0:i.skills)==null?void 0:Z.split(","))==null?void 0:ne.slice(0,4))==null?void 0:K.map((te,q)=>e.jsx("p",{children:de(te)},q))})})}),e.jsx(fe,{children:e.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsxs("button",{onClick:R,className:"recruiter-dwn-btn",children:[e.jsx("img",{src:zo,alt:"resume download"}),"  Resume"]}),e.jsxs("div",{style:{display:"flex",gap:"10px"},children:[e.jsx("span",{className:"msg-img-container",children:e.jsx("img",{src:cn,onClick:O,alt:"call",className:"bid-img"})}),e.jsx("span",{className:"msg-img-container",children:e.jsx("img",{src:Ta,onClick:()=>{var te,q;return M((q=(te=s==null?void 0:s.inside)==null?void 0:te.userId)==null?void 0:q._id)},alt:"message",className:"bid-img"})})]})]})})]})})}),e.jsx(dn,{open:m,handleClose:()=>f(!1),email:i==null?void 0:i.email,mobile:i==null?void 0:i.mobile}),e.jsx(E4,{open:d,onClose:()=>u(!1),makingPayment:A}),_&&_.invoiceNumber&&w&&e.jsx(nn,{paymentId:j,order:_,showModal:w,setShowModal:y}),e.jsx(ka,{open:k,onClose:()=>S(!1)}),e.jsx(Ca,{open:g.open,status:g.status,onClose:()=>E({open:!1,status:null})})]})},P4=({uniqueKey:s,oneChat:t})=>{const[a,i]=b.useState(1),[n,r]=b.useState(0),[l,c]=b.useState([]),[o,p]=b.useState(!1),h=async(d,u)=>{p(!0);const m=await jp({designation:u,page:d}),{chats:f,pageNo:v,totalPages:N}=m==null?void 0:m.data;i(v),f.length>0&&(v===1&&(N===1||v<N)?c(f):v!==1&&v<=N?c(_=>[..._,...f]):p(!1)),p(!1)};return We(()=>{var d;c([]),i(1),r(0),h(1,(d=t==null?void 0:t[0])==null?void 0:d.inside.answers.designation)},[t,s]),e.jsx(e.Fragment,{children:(l==null?void 0:l.length)>
1540?e.jsx("div",{className:"container-lg",style:{paddingBottom:"30px"},children:e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:l.length,next:()=>{var d;if(l.length&&l.length%10==0){let u=a+1;h(u,(d=t==null?void 0:t[0])==null?void 0:d.inside.answers.designation)}},hasMore:a!==n,loader:o&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:l==null?void 0:l.map((d,u)=>{var m;return e.jsx(je,{item:!0,xs:12,sm:6,md:4,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(M4,{index:u,inData:d,recruiterChatId:(m=t==null?void 0:t[0])==null?void 0:m._id,recruiterChat:t==null?void 0:t[0]})},u)})})})})}):e.jsx("div",{className:"container-lg",style:{paddingTop:"20px"},children:e.jsx("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:e.jsx("p",{style:{color:"#d6dcdd"},children:"Check back later!"})})})})},R4=()=>{const{myAmboChats:s}=G(l=>l.ambo);ge(),he(),Be();const[t,a]=b.useState("companies");b.useState(!1),b.useState(!1);const[i,n]=b.useState(null),{chatInsideId:r}=ts();return b.useEffect(()=>{const l=s==null?void 0:s.filter(c=>c._id===r);return console.log(l,"singleChat in RecruitingAmboHistoryMain"),l.length>0&&n(l),()=>{n(null)}},[r,s]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ambo__tab-container",children:[e.jsx("button",{className:`ambo__tabs-button ${t==="companies"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("companies"),children:"Profiles"}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${t==="chat"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("chat"),children:"Conversation"}),e.jsx(Os,{sx:{borderColor:"#6E6E6E"}}),e.jsxs("div",{children:[t==="companies"&&e.jsx(P4,{oneChat:i}),t==="chat"&&e.jsx(ln,{oneChat:i})]})]})})},Yi=({inData:s})=>{var a,i,n,r,l,c;let t=(a=s==null?void 0:s.inside)==null?void 0:a.answers;return e.jsx(e.Fragment,{children:e.jsx(Fs,{sx:{bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid #4E4E4E",marginTop:"16px"},className:"insideData-card ",children:e.jsx(xt,{sx:{minHeight:300},children:e.jsxs(ws,{sx:{width:"100%",maxWidth:360,bgcolor:"#1E1E1E"},children:[e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"bold",fontSize:"16px"},children:de((n=(i=s==null?void 0:s.inside)==null?void 0:i.userId)==null?void 0:n.firstName)})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#01BF71",fontWeight:"500",fontSize:"14px"},children:de(t==null?void 0:t.designation)})}),e.jsx(fe,{children:e.jsxs(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:[isNaN(t==null?void 0:t.experience)?de(t==null?void 0:t.experience):`${t==null?void 0:t.experience} Years`," | ",de(t==null?void 0:t.noticePeriod)]})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"500",fontSize:"14px"},children:(t==null?void 0:t.email)??"[email protected]"})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:de(t==null?void 0:t.location)})}),e.jsx(fe,{sx:{paddingLeft:"10px"},children:e.jsx("div",{children:e.jsx("div",{className:"ambo-fullpage__skill",children:(c=(l=(r=t==null?void 0:t.skills)==null?void 0:r.split(","))==null?void 0:l.slice(0,4))==null?void 0:c.map((o,p)=>e.jsx("p",{children:de(o)},p))})})}),(t==null?void 0:t.resume)&&e.jsx(fe,{children:e.jsx("a",{href:t==null?void 0:t.resume,download:"resume.pdf",children:e.jsxs("button",{style:{color:"#EAEAEA",backgroundColor:"#242424",border:"1px solid #12754F",borderRadius:"30px",padding:"8px 16px",cursor:"pointer",fontSize:"14px"},children:[e.jsx("img",{src:zo,alt:"resume download"}),"  Resume"]})})})]})})})})},L4=({uniqueKey:s,oneChat:t})=>{const[a,i]=b.useState(1),[n,r]=b.useState([]),[l,c]=b.useState(!1),[o,p]=b.useState(0),h=async(d,u)=>{c(!0);const m=await yp({designation:u,page:d}),{chats:f,pageNo:v,totalPages:N}=m==null?void 0:m.data;p(N),i(v),f.length>0&&(v===1&&(N===1||v<N)?r(f):v!==1&&v<=N?r(_=>[..._,...f]):c(!1)),c(!1)};return b.useEffect(()=>{r([]),i(1),p(0),h(1,"all")},[t,s]),e.jsxs(e.Fragment,{children:[e.jsx("p",{style:{color:"rgb(234, 234, 234)"},className:"ambo__chats-container",children:"Profiles you may refer"}),(n==null?void 0:n.length)>
1540?e.jsx("div",{className:"ambo-referred__layout",children:e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:n.length,next:()=>{if(n.length&&n.length%10==0){let d=a+1;h(d,"all")}},hasMore:a!==o,loader:l&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:n==null?void 0:n.map((d,u)=>u%2===0?e.jsxs(e.Fragment,{children:[e.jsx(je,{item:!0,lg:2,md:1}),e.jsx(je,{item:!0,xs:12,sm:12,md:5,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(Yi,{index:u,inData:n[u]})},u),n[u+1]?e.jsx(je,{item:!0,xs:12,sm:12,md:5,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(Yi,{index:u,inData:n[u+1]})},u):e.jsx(je,{item:!0,lg:4,md:1})]}):e.jsx(je,{item:!0,lg:2}))})})})}):e.jsx("div",{className:"container-lg",style:{paddingTop:"20px"},children:e.jsx("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:e.jsx("p",{style:{color:"#d6dcdd"},children:"Check back later!"})})})]})},F4=()=>{var l;const{myAmboChats:s}=G(c=>c.ambo);ge(),he(),Be();const[t,a]=b.useState("companies");b.useState(!1),b.useState(!1);const[i,n]=b.useState(null),{chatInsideId:r}=ts();return b.useEffect(()=>{const c=s==null?void 0:s.filter(o=>o._id===r);return console.log(c,"singleChat in RecruitingAmboHistoryMain"),c.length>0&&n(c),()=>{n(null)}},[r,s]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ambo__tab-container",children:[e.jsx("button",{className:`ambo__tabs-button ${t==="companies"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("companies"),children:"Candidates"}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${t==="chat"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("chat"),children:"Conversation"}),e.jsx(Os,{sx:{borderColor:"#6E6E6E"}}),e.jsxs("div",{children:[t==="companies"&&e.jsx(L4,{uniqueKey:(l=i==null?void 0:i[0])==null?void 0:l._id,oneChat:i}),t==="chat"&&e.jsx(ln,{oneChat:i})]})]})})},B4=({inData:s})=>{var a,i,n,r,l,c;let t=(a=s==null?void 0:s.inside)==null?void 0:a.answers;return e.jsx(Fs,{sx:{bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid #4E4E4E",marginTop:"16px"},className:"insideData-card ",children:e.jsx(xt,{sx:{minHeight:300},children:e.jsxs(ws,{sx:{width:"100%",maxWidth:360,bgcolor:"#1E1E1E"},children:[e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"bold",fontSize:"16px"},children:de((n=(i=s==null?void 0:s.inside)==null?void 0:i.userId)==null?void 0:n.firstName)})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#01BF71",fontWeight:"500",fontSize:"14px"},children:de(t==null?void 0:t.designation)})}),e.jsx(fe,{children:e.jsxs(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:[isNaN(t==null?void 0:t.experience)?de(t==null?void 0:t.experience):`${t==null?void 0:t.experience} Years`," | ",de(t==null?void 0:t.noticePeriod)]})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#d6dcdd",fontWeight:"500",fontSize:"14px"},children:(t==null?void 0:t.email)??"[email protected]"})}),e.jsx(fe,{children:e.jsx(Fe,{variant:"body2",sx:{color:"#A7AAAB",fontWeight:"500",fontSize:"14px"},children:de(t==null?void 0:t.location)})}),e.jsx(fe,{sx:{paddingLeft:"10px"},children:e.jsx("div",{children:e.jsx("div",{className:"ambo-fullpage__skill",children:(c=(l=(r=t==null?void 0:t.skills)==null?void 0:r.split(","))==null?void 0:l.slice(0,4))==null?void 0:c.map((o,p)=>e.jsx("p",{children:de(o)},p))})})}),(t==null?void 0:t.resume)&&e.jsx(fe,{children:e.jsx("a",{href:t==null?void 0:t.resume,download:"resume.pdf",children:e.jsxs("button",{onClick:downloadResumeFn,style:{color:"#EAEAEA",backgroundColor:"#242424",border:"1px solid #12754F",borderRadius:"30px",padding:"8px 16px",cursor:"pointer",fontSize:"14px"},children:[e.jsx("img",{src:zo,alt:"resume download"}),"  Resume"]})})})]})})})},O4=({uniqueKey:s,oneChat:t})=>{const[a,i]=b.useState(1),[n,r]=b.useState([]),[l,c]=b.useState(!1),[o,p]=b.useState(0),h=async(d,u)=>{c(!0);const m=await jp({designation:u,page:d}),{chats:f,pageNo:v,totalPages:N}=m==null?void 0:m.data;i(v),f.length>0&&(v===1&&(N===1||v<N)?r(f):v!==1&&v<=N?r(_=>[..._,...f]):c(!1)),c(!1)};return e.jsx(e.Fragment,{children:(n==null?void 0:n.length)>
1540?e.jsx("div",{className:"container-lg",style:{paddingBottom:"30px"},children:e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:n.length,next:()=>{var d;if(n.length&&n.length%10==0){let u=a+1;h(u,(d=t==null?void 0:t[0])==null?void 0:d.inside.answers.designation)}},hasMore:a!==o,loader:l&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:n==null?void 0:n.map((d,u)=>e.jsx(je,{item:!0,xs:12,sm:6,md:4,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(B4,{index:u,inData:d})},u))})})})}):e.jsx("div",{className:"container-lg",style:{paddingTop:"20px"},children:e.jsx("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:e.jsx("p",{style:{color:"#d6dcdd"},children:"Check back later!"})})})})},U4=()=>{var l;const{myAmboChats:s}=G(c=>c.ambo);ge(),he(),Be();const[t,a]=b.useState("companies");b.useState(!1),b.useState(!1);const[i,n]=b.useState(null),{chatInsideId:r}=ts();return b.useEffect(()=>{const c=s==null?void 0:s.filter(o=>o._id===r);return console.log(c,"singleChat in RecruitingAmboHistoryMain"),c.length>0&&n(c),()=>{n(null)}},[r,s]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ambo__tab-container",children:[e.jsx("button",{className:`ambo__tabs-button ${t==="companies"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("companies"),children:"Applied Investors"}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${t==="chat"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>a("chat"),children:"Conversation"}),e.jsx(Os,{sx:{borderColor:"#6E6E6E"}}),e.jsxs("div",{children:[t==="companies"&&e.jsx(O4,{uniqueKey:(l=i==null?void 0:i[0])==null?void 0:l._id,oneChat:i}),t==="chat"&&e.jsx(ln,{oneChat:i})]})]})})},wi=["Individual","Company"],Si=["Newest First","Oldest First"],D4=({activeTab:s,price:t,setPrice:a,category:i,setCategory:n,experience:r,setExperience:l,selectedLocation:c,setSelectedLocation:o,handleGetDataWithFilter:p,selectedSortBy:h,setSelectedSortBy:d,requestedService:u})=>{b.useState(!1);const[m,f]=b.useState(!1),[v,N]=b.useState(!1),[_,x]=b.useState(!1),[j,I]=b.useState(""),w=C=>{d(C.target.value)},y=C=>{const{name:T}=C.target;i.includes(T)?n(A=>A==null?void 0:A.filter(R=>R!==T)):n(A=>[...A,T])},k=async(C,T)=>{o(T)};console.log(c);const S=()=>{n([]),l([]),a([0,99999]),o(null),I(""),x(!0),d(null)},g=i.length>0||r.length>0||t[0]>0||t[1]<99999||c!==null||h!==null,E=()=>{m?(N(!1),setTimeout(()=>{f(!1)},400)):(f(!0),setTimeout(()=>{N(!0)},10))};return b.useMemo(()=>pu.map(C=>({value:C,label:C})),[]),b.useEffect(()=>(_&&s==="request-bids"?handleBidsTabFn(1):_&&s!=="request-bids"&&p(1),()=>x(!1)),[_,s]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"d-flex align-items-center justify-content-between",children:[e.jsx("div",{className:"service-filter__container",children:e.jsxs("button",{onClick:E,className:"service-filter__btn",children:[e.jsx("img",{src:ct,alt:"filter"}),e.jsx("p",{children:"Filter"})]})}),e.jsx("img",{className:"service-filter__icon",onClick:E,src:ct,alt:"filter"})]}),m&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"service-filter__backdrop",onClick:E}),e.jsxs("div",{className:`service-filter__bg ${v?"show":""}`,children:[e.jsxs("div",{className:"filter_select-container",children:[e.jsx("p",{className:"service-headers mb-2 mt-2",children:"SortBy"}),Si==null?void 0:Si.map(C=>e.jsxs("label",{className:"display-flex-aic-jcsb service__filter mt-2",children:[e.jsx("p",{className:"service__sub-headers",children:C}),e.jsx("input",{type:"radio",className:"service__checkboxRound",name:"sortBy",value:C,checked:h===C,onChange:w})]})),e.jsx("p",{className:"service-headers mb-2 mt-2",children:"Service category"}),wi==null?void 0:wi.map(C=>e.jsxs("label",{className:"display-flex-aic-jcsb service__filter mt-2",children:[e.jsx("p",{className:"service__sub-headers",children:C}),e.jsx("input",{type:"checkbox",className:"service__checkboxRound",name:C,checked:!!i.includes(C),onChange:y})]})),e.jsx("p",{className:"mt-2",children:"Location"}),e.jsx("div",{className:"select-parent",style:{maxWidth:"500px",margin:"1rem auto"},children:e.jsx(pa,{variant:"inline",onSelectLocation:k})})]}),g&&e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx("button",{className:"service__filter-btn service__filter-appl
154y",onClick:()=>{p(1),E()},children:"Apply"}),e.jsx("button",{className:"service__filter-btn service__filter-clear mt-2",onClick:S,children:"Clear all"})]})]})]})]})},ki=["Individual","Company"],Ci=["Newest First","Oldest First","Price Low - High","Price High - Low","Accepted Bid"],q4=({activeTab:s,price:t,setPrice:a,category:i,setCategory:n,experience:r,setExperience:l,selectedLocation:c,setSelectedLocation:o,handleBidsTabFn:p,selectedSortBy:h,setSelectedSortBy:d,setBidFilterApplied:u})=>{console.log("typeof setBidFilterApplied:",typeof u),console.log("value:",u),b.useState(!1);const[m,f]=b.useState(!1),[v,N]=b.useState(!1),[_,x]=b.useState(!1),[j,I]=b.useState(""),w=C=>{d(C.target.value)},y=C=>{const{name:T}=C.target;i.includes(T)?n(A=>A==null?void 0:A.filter(R=>R!==T)):n(A=>[...A,T])},k=async(C,T)=>{o(T)};console.log(c);const S=()=>{n([]),l([]),a([0,99999]),o(null),I(""),x(!0),d(null)},g=i.length>0||r.length>0||t[0]>0||t[1]<99999||c!==null||h!==null,E=()=>{m?(N(!1),setTimeout(()=>{f(!1)},400)):(f(!0),setTimeout(()=>{N(!0)},10))};return b.useMemo(()=>pu.map(C=>({value:C,label:C})),[]),b.useEffect(()=>(_&&s==="request-bids"?p(1):_&&s!=="request-bids"&&handleGetDataWithFilter(1),()=>x(!1)),[_,s]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"d-flex align-items-center justify-content-between",children:[e.jsx("div",{className:"service-filter__container",children:e.jsxs("button",{onClick:E,className:"service-filter__btn",children:[e.jsx("img",{src:ct,alt:"filter"}),e.jsx("p",{children:"Filter"})]})}),e.jsx("img",{className:"service-filter__icon",onClick:E,src:ct,alt:"filter"})]}),m&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"service-filter__backdrop",onClick:E}),e.jsxs("div",{className:`service-filter__bg ${v?"show":""}`,children:[e.jsxs("div",{className:"filter_select-container",children:[e.jsx("p",{className:"service-headers mb-2 mt-2",children:"SortBy"}),Ci==null?void 0:Ci.map(C=>e.jsxs("label",{className:"display-flex-aic-jcsb service__filter mt-2",children:[e.jsx("p",{className:"service__sub-headers",children:C}),e.jsx("input",{type:"radio",className:"service__checkboxRound",name:"sortBy",value:C,checked:h===C,onChange:w})]})),e.jsx("p",{className:"service-headers mb-2 mt-2",children:"Service category"}),ki==null?void 0:ki.map(C=>e.jsxs("label",{className:"display-flex-aic-jcsb service__filter mt-2",children:[e.jsx("p",{className:"service__sub-headers",children:C}),e.jsx("input",{type:"checkbox",className:"service__checkboxRound",name:C,checked:!!i.includes(C),onChange:y})]})),e.jsx("p",{className:"mt-2",children:"Location"}),e.jsx("div",{className:"select-parent",style:{maxWidth:"500px",margin:"1rem auto"},children:e.jsx(pa,{variant:"inline",onSelectLocation:k})})]}),g&&e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx("button",{className:"service__filter-btn service__filter-appl
154y",onClick:()=>{u(!0),p(1),E()},children:"Apply"}),e.jsx("button",{className:"service__filter-btn service__filter-clear mt-2",onClick:S,children:"Clear all"})]})]})]})]})},Tp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2013.125C3%2012.504%203.504%2012%204.125%2012H6.375C6.996%2012%207.5%2012.504%207.5%2013.125V19.875C7.5%2020.496%206.996%2021%206.375%2021H4.125C3.82663%2021%203.54048%2020.8815%203.3295%2020.6705C3.11853%2020.4595%203%2020.1734%203%2019.875V13.125ZM9.75%208.625C9.75%208.004%2010.254%207.5%2010.875%207.5H13.125C13.746%207.5%2014.25%208.004%2014.25%208.625V19.875C14.25%2020.496%2013.746%2021%2013.125%2021H10.875C10.5766%2021%2010.2905%2020.8815%2010.0795%2020.6705C9.86853%2020.4595%209.75%2020.1734%209.75%2019.875V8.625ZM16.5%204.125C16.5%203.504%2017.004%203%2017.625%203H19.875C20.496%203%2021%203.504%2021%204.125V19.875C21%2020.496%2020.496%2021%2019.875%2021H17.625C17.3266%2021%2017.0405%2020.8815%2016.8295%2020.6705C16.6185%2020.4595%2016.5%2020.1734%2016.5%2019.875V4.125Z'%20stroke='%239575CD'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ip="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.19%208.68803C13.8399%208.99828%2014.4057%209.45996%2014.8401%2010.0343C15.2745%2010.6086%2015.5648%2011.2787%2015.6865%2011.9885C15.8081%2012.6982%2015.7577%2013.4268%2015.5394%2014.113C15.3212%2014.7992%2014.9414%2015.423%2014.432%2015.932L9.93203%2020.432C9.08811%2021.2759%207.94351%2021.7501%206.75003%2021.7501C5.55655%2021.7501%204.41195%2021.2759%203.56803%2020.432C2.72411%2019.5881%202.25%2018.4435%202.25%2017.25C2.25%2016.0565%202.72411%2014.9119%203.56803%2014.068L5.32503%2012.311M18.675%2011.689L20.432%209.93203C21.2759%209.08811%2021.7501%207.94351%2021.7501%206.75003C21.7501%205.55655%2021.2759%204.41195%2020.432%203.56803C19.5881%202.72411%2018.4435%202.25%2017.25%202.25C16.0565%202.25%2014.9119%202.72411%2014.068%203.56803L9.56803%208.06803C9.05866%208.57703%208.67889%209.20084%208.46061%209.88705C8.24233%2010.5733%208.19191%2011.3018%208.3136%2012.0116C8.43528%2012.7213%208.72552%2013.3915%209.15992%2013.9658C9.59432%2014.5401%2010.1602%2015.0018%2010.81%2015.312'%20stroke='%23BA68C8'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ap="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%2010.5C15%2011.2956%2014.6839%2012.0587%2014.1213%2012.6213C13.5587%2013.1839%2012.7956%2013.5%2012%2013.5C11.2044%2013.5%2010.4413%2013.1839%209.87868%2012.6213C9.31607%2012.0587%209%2011.2956%209%2010.5C9%209.70435%209.31607%208.94129%209.87868%208.37868C10.4413%207.81607%2011.2044%207.5%2012%207.5C12.7956%207.5%2013.5587%207.81607%2014.1213%208.37868C14.6839%208.94129%2015%209.70435%2015%2010.5Z'%20stroke='%23E57373'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.5%2010.5C19.5%2017.642%2012%2021.75%2012%2021.75C12%2021.75%204.5%2017.642%204.5%2010.5C4.5%208.51088%205.29018%206.60322%206.6967%205.1967C8.10322%203.79018%2010.0109%203%2012%203C13.9891%203%2015.8968%203.79018%2017.3033%205.1967C18.7098%206.60322%2019.5%208.51088%2019.5%2010.5Z'%20stroke='%23E57373'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ep="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.75%206.75V17.25C21.75%2017.8467%2021.5129%2018.419%2021.091%2018.841C20.669%2019.2629%2020.0967%2019.5%2019.5%2019.5H4.5C3.90326%2019.5%203.33097%2019.2629%202.90901%2018.841C2.48705%2018.419%202.25%2017.8467%202.25%2017.25V6.75M21.75%206.75C21.75%206.15326%2021.5129%205.58097%2021.091%205.15901C20.669%204.73705%2020.0967%204.5%2019.5%204.5H4.5C3.90326%204.5%203.33097%204.73705%202.90901%205.15901C2.48705%205.58097%202.25%206.15326%202.25%206.75M2
1541.75%206.75V6.993C21.75%207.37715%2021.6517%207.75491%2021.4644%208.0903C21.2771%208.42569%2021.0071%208.70754%2020.68%208.909L13.18%2013.524C12.8252%2013.7425%2012.4167%2013.8582%2012%2013.8582C11.5833%2013.8582%2011.1748%2013.7425%2010.82%2013.524L3.32%208.91C2.99292%208.70854%202.72287%208.42669%202.53557%208.0913C2.34827%207.75591%202.24996%207.37815%202.25%206.994V6.75'%20stroke='%234FC3F7'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Mp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%206V18M9%2015.182L9.879%2015.841C11.05%2016.72%2012.949%2016.72%2014.121%2015.841C15.293%2014.962%2015.293%2013.538%2014.121%2012.659C13.536%2012.219%2012.768%2012%2012%2012C11.275%2012%2010.55%2011.78%209.997%2011.341C8.891%2010.462%208.891%209.038%209.997%208.159C11.103%207.28%2012.897%207.28%2014.003%208.159L14.418%208.489M21%2012C21%2013.1819%2020.7672%2014.3522%2020.3149%2015.4442C19.8626%2016.5361%2019.1997%2017.5282%2018.364%2018.364C17.5282%2019.1997%2016.5361%2019.8626%2015.4442%2020.3149C14.3522%2020.7672%2013.1819%2021%2012%2021C10.8181%2021%209.64778%2020.7672%208.55585%2020.3149C7.46392%2019.8626%206.47177%2019.1997%205.63604%2018.364C4.80031%2017.5282%204.13738%2016.5361%203.68508%2015.4442C3.23279%2014.3522%203%2013.1819%203%2012C3%209.61305%203.94821%207.32387%205.63604%205.63604C7.32387%203.94821%209.61305%203%2012%203C14.3869%203%2016.6761%203.94821%2018.364%205.63604C20.0518%207.32387%2021%209.61305%2021%2012Z'%20stroke='%2381C784'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Pp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.25%206.087C14.25%205.732%2014.436%205.411%2014.651%205.128C14.872%204.838%2015%204.494%2015%204.125C15%203.089%2013.993%202.25%2012.75%202.25C11.507%202.25%2010.5%203.09%2010.5%204.125C10.5%204.494%2010.628%204.838%2010.849%205.128C11.064%205.411%2011.25%205.732%2011.25%206.087C11.2504%206.17275%2011.2336%206.25771%2011.2006%206.33684C11.1675%206.41596%2011.1189%206.48764%2011.0577%206.54762C10.9964%206.6076%2010.9237%206.65465%2010.8438%206.68598C10.764%206.71731%2010.6787%206.73228%2010.593%206.73C9.20166%206.68992%207.81271%206.58983%206.43%206.43C6.616%208.043%206.723%209.68%206.745%2011.337C6.74593%2011.4239%206.72958%2011.5101%206.6969%2011.5907C6.66422%2011.6712%206.61587%2011.7444%206.55465%2011.8061C6.49343%2011.8678%206.42056%2011.9167%206.34028%2011.95C6.26%2011.9833%206.17391%2012.0003%206.087%2012C5.732%2012%205.411%2011.814%205.128%2011.599C4.84137%2011.3751%204.4887%2011.2524%204.125%2011.25C3.089%2011.25%202.25%2012.257%202.25%2013.5C2.25%2014.743%203.09%2015.75%204.125%2015.75C4.494%2015.75%204.838%2015.622%205.128%2015.401C5.411%2015.186%205.732%2015%206.087%2015C6.397%2015%206.642%2015.26%206.619%2015.57C6.49461%2017.2655%206.28031%2018.9532%205.977%2020.626C7.495%2020.816%209.035%2020.935%2010.593%2020.98C10.6787%2020.9823%2010.764%2020.9673%2010.8438%2020.936C10.9237%2020.9047%2010.9964%2020.8576%2011.0577%2020.7976C11.1189%2020.7376%2011.1675%2020.666%2011.2006%2020.5868C11.2336%2020.5077%2011.2504%2020.4227%2011.25%2020.337C11.25%2019.982%2011.064%2019.661%2010.849%2019.378C10.6251%2019.0914%2010.5024%2018.7387%2010.5%2018.375C10.5%2017.34%2011.508%2016.5%2012.75%2016.5C13.993%2016.5%2015%2017.34%2015%2018.375C15%2018.744%2014.872%2019.088%2014.651%2019.378C14.436%2019.661%2014.251%2019.982%2014.251%2020.337C14.251%2020.67%2014.528%2020.936%2014.861%2020.917C16.6805%2020.81%2018.4924%2020.5997%2020.288%2020.287C20.5597%2018.7252%2020.7539%2017.151%2020.87%2015.57C20.8752%2015.4969%2020.8653%2015.4236%2020.8409%2015.3545C20.8164%2015.2854%2020.778%2015.2222%2020.7279%2015.1686C20.6779%2015.1151%2020.6173%2015.0725%2020.5501%2015.0435C20.4828%2015.0145%2020.4103%2014.9997%2020.337%2015C19.982%2015%2019.661%2015.186%2019.378%2015.401C19.088%2015.622%2018.744%2015.75%2018.375%2015.75C17.34%2015.75%2016.5%2014.743%2016.5%2013.5C16.5%2012.257%2017.34%2011.25%2018.375%2011.25C18.745%2011.25%2019.088%2011.378%2019.378%2011.599C19.661%2011.814%2019.982%2012%2020.338%2012C20.4249%2
154012.0003%2020.511%2011.9833%2020.5913%2011.95C20.6716%2011.9167%2020.7444%2011.8678%2020.8057%2011.8061C20.8669%2011.7444%2020.9152%2011.6712%2020.9479%2011.5907C20.9806%2011.5101%2020.9969%2011.4239%2020.996%2011.337C20.972%209.54486%2020.8484%207.75544%2020.626%205.977C18.74%206.319%2016.816%206.551%2014.86%206.666C14.7813%206.67037%2014.7025%206.65858%2014.6285%206.63137C14.5545%206.60416%2014.4869%206.56209%2014.4297%206.50777C14.3726%206.45344%2014.3272%206.388%2014.2963%206.31546C14.2653%206.24293%2014.2496%206.16584%2014.25%206.087Z'%20stroke='%2300BFA6'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Rp="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.2501%2014.15V18.4C20.2501%2019.494%2019.4631%2020.436%2018.3781%2020.58C16.2911%2020.857%2014.1621%2021%2012.0001%2021C9.83806%2021%207.70906%2020.857%205.62206%2020.58C4.53706%2020.436%203.75006%2019.494%203.75006%2018.4V14.15M20.2501%2014.15C20.4875%2013.9436%2020.6775%2013.6883%2020.807%2013.4016C20.9364%2013.1149%2021.0023%2012.8036%2021.0001%2012.489V8.706C21.0001%207.625%2020.2321%206.691%2019.1631%206.531C18.0304%206.36142%2016.892%206.23234%2015.7501%206.144M20.2501%2014.15C20.0561%2014.315%2019.8301%2014.445%2019.5771%2014.53C17.1333%2015.3408%2014.5748%2015.7528%2012.0001%2015.75C9.35206%2015.75%206.80506%2015.321%204.42306%2014.53C4.17631%2014.4479%203.94778%2014.3189%203.75006%2014.15M3.75006%2014.15C3.5126%2013.9436%203.32262%2013.6883%203.19315%2013.4016C3.06369%2013.1149%202.99782%2012.8036%203.00006%2012.489V8.706C3.00006%207.625%203.76806%206.691%204.83706%206.531C5.96975%206.36142%207.10814%206.23233%208.25006%206.144M15.7501%206.144V5.25C15.7501%204.65326%2015.513%204.08097%2015.091%203.65901C14.6691%203.23705%2014.0968%203%2013.5001%203H10.5001C9.90332%203%209.33102%203.23705%208.90907%203.65901C8.48711%204.08097%208.25006%204.65326%208.25006%205.25V6.144M15.7501%206.144C13.2538%205.95108%2010.7463%205.95108%208.25006%206.144M12.0001%2012.75H12.0081V12.758H12.0001V12.75Z'%20stroke='%23FFB74D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",V4="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI0EzQTNBMyIgY2xhc3M9InNpemUtNiIgd2lkdGg9JzIwcHgnIGhlaWdodD0nMjBweCc+DQogIDxwYXRoIGQ9Ik0yMS43MzEgMi4yNjlhMi42MjUgMi42MjUgMCAwIDAtMy43MTIgMGwtMS4xNTcgMS4xNTcgMy43MTIgMy43MTIgMS4xNTctMS4xNTdhMi42MjUgMi42MjUgMCAwIDAgMC0zLjcxMlpNMTkuNTEzIDguMTk5bC0zLjcxMi0zLjcxMi0xMi4xNSAxMi4xNWE1LjI1IDUuMjUgMCAwIDAtMS4zMiAyLjIxNGwtLjggMi42ODVhLjc1Ljc1IDAgMCAwIC45MzMuOTMzbDIuNjg1LS44YTUuMjUgNS4yNSAwIDAgMCAyLjIxNC0xLjMyTDE5LjUxMyA4LjJaIiAvPg0KPC9zdmc+DQo=",Ti=["Beginner","Midlevel","Expert"],z4=({open:s,handleClose:t})=>{var te,q,H,X,ee,se,ae;const[a,i]=b.useState(!1),n=ge(),{successToast:r,errorToast:l,errorHandle:c}=he(),{serviceProviderChats:o}=G(B=>B.ambo);let p=(q=(te=o[0])==null?void 0:te.inside)==null?void 0:q.answers;const[h,d]=b.useState((p==null?void 0:p.serviceCategory)||[]);let u=oa==null?void 0:oa.filter(B=>!h.includes(B));const[m,f]=b.useState(!1),[v,N]=b.useState(null),[_,x]=b.useState((p==null?void 0:p.serviceOfferLocation)||[]),[j,I]=b.useState(""),w=(B,W)=>{I(W)},{register:y,handleSubmit:k,formState:{errors:S,dirtyFields:g,touchedFields:E},getValues:C,setValue:T,control:A,setError:R,reset:P,clearErrors:O,resetField:M}=Qe({shouldFocusError:!0,defaultValues:p});b.useEffect(()=>{P(p),d((p==null?void 0:p.serviceCategory)||[]),x((p==null?void 0:p.serviceOfferLocation)||[])},[p,P]);const L=(B,W)=>{const Q=[..._||[],W],ie=Array.from(new Set(Q));x(ie),T("serviceOfferLocation",ie,{shouldDirty:!0,shouldTouch:!0}),I("")},F=B=>{const W=_.filter(Q=>Q!==B);x(W),T("serviceOfferLocation",W,{shouldDirty:!0,shouldTouch:!0})},U=B=>{const W=h.filter(Q=>Q!==B);d(W),T("serviceCategory",W,{shouldDirty:!0,shouldTouch:!0})},Z=B=>{const W=[...h,B];d(W),W.length>0&&O("serviceCategory"),T("serviceCategory",W,{shouldDirty:!0,shouldTouch:!0})},ne=async B=>{if(!h||h.length===0){R("serviceCategory",{type:"manual",message:"At least one specialization is required"});return}let{locations:W,serviceCategory:Q,...ie}=B,Y=B.serviceOfferLocation;if(W&&W.length>0){let me=W.trim();me.endsWith(";")&&(me=me.slice(0,-1));const Ce=me.split(";");Y=[...B.serviceOfferLocation,...Ce].slice(0,5)}const pe={...ie,serviceOfferLocation:Y,serviceCategory:h};N(pe),f(!0),M("locations")},K=async B=>{var Y,pe,me;const{budget:W,...Q}=B,ie={...Q,pricingMin:B.budget[0],pricingMax:B.budget[1],yourLocation:j};
154try{const Ce=await i5(ie,(Y=o[0])==null?void 0:Y._id);Ce.statusCode===200&&(n(zh(Ce==null?void 0:Ce.data)),r("Provider info updated successfully"),P(Ce.data.inside.answers),d(((pe=Ce.data.inside.answers)==null?void 0:pe.serviceCategory)||[]),x(((me=Ce.data.inside.answers)==null?void 0:me.serviceOfferLocation)||[]),t())}catch(Ce){l("Error updating provider info"),c(Ce)}finally{f(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(qe,{open:s,onClose:t,children:e.jsxs(Ie,{sx:V2,children:[e.jsx("label",{className:"service_info-name",children:"Update Services"}),e.jsxs("form",{onSubmit:k(ne),children:[e.jsx("div",{className:"ambo_service-question ambo-modal_custom__Scroll",children:e.jsxs(je,{container:!0,spacing:2,sx:{color:"white"},children:[e.jsx(je,{item:!0,xs:12,sm:6,md:5,children:e.jsxs("div",{style:{paddingLeft:"20px"},children:[e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:4,children:e.jsx("label",{className:"my-info-labels",children:"Name"})}),e.jsxs(je,{item:!0,xs:8,children:[e.jsx("input",{...y("displayName",{required:"Name is required"}),className:`${S!=null&&S.displayName?"invalid-field":"valid-field"} my-info_did-floating-input`}),(S==null?void 0:S.displayName)&&e.jsx(Me,{errMsg:(H=S==null?void 0:S.displayName)==null?void 0:H.message})]})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:4,children:e.jsx("label",{className:"my-info-labels",children:"Phone"})}),e.jsxs(je,{item:!0,xs:8,children:[e.jsx("input",{...y("mobile",{required:{value:!0,message:"Mobile number is required"},pattern:{value:/^\d{10}$/,message:"Mobile number must be 10 digits"}}),type:"number",inputMode:"numeric",maxLength:10,className:`${S!=null&&S.mobile?"invalid-field":"valid-field"} my-info_did-floating-input`,onWheel:B=>B.target.blur()}),(S==null?void 0:S.mobile)&&e.jsx(Me,{errMsg:(X=S==null?void 0:S.mobile)==null?void 0:X.message})]})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:4,children:e.jsx("label",{className:"my-info-labels",children:"Email"})}),e.jsxs(je,{item:!0,xs:8,children:[e.jsx("input",{...y("email",{required:"Email is required"}),type:"email",className:`${S!=null&&S.email?"invalid-field":"valid-field"} my-info_did-floating-input`}),(S==null?void 0:S.email)&&e.jsx(Me,{errMsg:(ee=S==null?void 0:S.email)==null?void 0:ee.message})]})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:4,children:e.jsx("label",{className:"my-info-labels",children:"Your Location"})}),e.jsx(je,{item:!0,xs:8,children:e.jsx(pa,{variant:"inline",onSelectLocation:w})})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:12,children:e.jsx("label",{className:"my-info-labels",children:"Specializations"})}),e.jsx(je,{item:!0,xs:12,children:e.jsxs("div",{className:"myinfo-chip_container",onClick:()=>{((h==null?void 0:h.length)||0)<10&&i(!0)},role:"button",tabIndex:0,onKeyDown:B=>{(B.key==="Enter"||B.key===" ")&&((h==null?void 0:h.length)||0)<10&&i(!0)},children:[e.jsxs("div",{className:"selected-locations",children:[e.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:h==null?void 0:h.map((B,W)=>e.jsxs("span",{className:"location-chip",children:[B,e.jsx("button",{type:"button",onClick:Q=>{Q.stopPropagation(),U(B)},className:"remove-btn",children:"×"})]},W))}),((h==null?void 0:h.length)||0)<10&&e.jsx(Ya,{value:"",open:a,onClose:()=>i(!1),onOpen:()=>i(!0),onClick:B=>B.stopPropagation(),displayEmpty:!0,IconComponent:B=>e.jsx(xa,{...B,sx:{fill:"#eaeaea"}}),className:"myinfo-select",sx:{width:"auto","& .MuiSelect-select":{padding:0,minHeight:"unset"},"& fieldset":{display:"none"},background:"transparent",boxShadow:"none"},children:u==null?void 0:u.map((B,W)=>e.jsx(Ns,{value:B,onClick:Q=>{Q.stopPropagation(),Z(B),i(!1)},children:B},W))})]}),(S==null?void 0:S.serviceCategory)&&e.jsx(Me,{errMsg:(se=S==null?void 0:S.serviceCategory)==null?void 0:se.message})]})})]})]})}),e.jsx(je,{item:!0,xs:12,sm:12,md:1,sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(Os,{orientation:"vertical",variant:"middle",sx:{borderColor:"#4E4E4E"}})}),e.jsxs(je,{item:!0,xs:12,sm:6,md:6,children:[e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:4,children:e.jsx("label",{className:"my-info-labels",children:"Portfolio Link"})}),e.jsxs(je,{item:!0,xs:8,children:[e.jsx("input",{...y("showcaseLink",{required:"Link is required"}
154),className:`${S!=null&&S.showcaseLink?"invalid-field":"valid-field"} my-info_did-floating-input`}),(S==null?void 0:S.showcaseLink)&&e.jsx(Me,{errMsg:(ae=S==null?void 0:S.showcaseLink)==null?void 0:ae.message})]})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:4,children:e.jsx("label",{className:"my-info-labels",children:"Experience Level"})}),e.jsx(je,{item:!0,xs:8,children:e.jsx("div",{className:"my-info_did-floating-input",children:e.jsx(xe,{name:"expertiseLevel",control:A,render:({field:B})=>e.jsxs("select",{...B,className:"myinfo-select",children:[e.jsx("option",{value:"",disabled:!0,children:"Select expertise"}),Ti==null?void 0:Ti.map((W,Q)=>e.jsx("option",{value:W,children:W},Q))]})})})})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:12,sm:4,children:e.jsx("label",{className:"my-info-labels",children:"Work Mode"})}),e.jsx(je,{item:!0,xs:12,sm:8,children:e.jsx(xe,{control:A,name:"serviceOfferMode",render:({field:B})=>e.jsx("div",{style:{display:"flex",gap:"10px",flexWrap:"wrap"},children:["Onsite","Offsite","Onsite & Offsite"].map(W=>e.jsx("button",{type:"button",className:`my-info-mode ${B.value===W?"mode-active":"mode-inactive"}`,onClick:()=>B.onChange(W),children:W==="Onsite & Offsite"?"Both":W},W))})})})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsx(je,{item:!0,xs:4,children:e.jsx("label",{className:"my-info-labels",children:"Budget"})}),e.jsx(je,{item:!0,xs:8,children:e.jsx(xe,{name:"budget",control:A,defaultValue:[(p==null?void 0:p.pricingMin)||0,(p==null?void 0:p.pricingMax)||99999],render:({field:{onChange:B,value:W}})=>e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"myinfo-budget",children:["Min: ",Xs(W[0])," - Max: ",Xs(W[1])]}),e.jsx(P0,{value:W,onChange:(Q,ie)=>B(ie),valueLabelDisplay:"off",color:"#6E6E6E",min:0,max:99999})]})})})]}),e.jsxs(je,{container:!0,spacing:2,alignItems:"center",className:"mt-2",children:[e.jsxs(je,{item:!0,xs:12,children:[e.jsx("label",{className:"my-info-labels",children:"Servicing Area"}),e.jsx("p",{className:"my-info-labels",style:{fontSize:"12px"},children:"example : Anna nagar, Chennai, Tamilnadu; Koramangala, Banglore, Karnataka; etc."})]}),e.jsx(je,{item:!0,xs:12,children:e.jsxs("div",{className:"myinfo-chip_container",children:[e.jsx("div",{className:"selected-locations",style:{justifyContent:"unset",flexWrap:"wrap"},children:_==null?void 0:_.map((B,W)=>e.jsxs("span",{className:"location-chip",children:[B,e.jsx("button",{type:"button",onClick:()=>F(B),className:"remove-btn",children:"×"})]},W))}),(_==null?void 0:_.length)<5&&e.jsx(pa,{variant:"inline",onSelectLocation:L,value:j,onChange:B=>I(B)})]})})]})]})]})}),e.jsxs("div",{className:"mt-3",f3v6:!0,style:{display:"flex",justifyContent:"end",gap:"10px"},children:[e.jsx("button",{className:"service-btn",style:{border:"1px solid #4E4E4E",color:"#A3A3A3"},onClick:()=>{P(),t()},children:"Cancel"}),e.jsx("button",{type:"submit",className:"service-btn contact-btn",children:"Update"})]})]})]})}),e.jsx(As,{confirm:m,setConfirm:f,action:"update your Service Provider Information",performer:()=>K(v)})]})},W4=s=>{try{const t=new URL(s);return["http:","https:"].includes(t.protocol)}catch{return!1}},$4=()=>{var c,o,p,h,d,u,m;const{userProfile:s}=G(f=>f.profile),{serviceProviderChats:t}=G(f=>f.ambo),a=(o=(c=t[0])==null?void 0:c.inside)==null?void 0:o.answers,[i,n]=b.useState(!1),r=()=>n(!0),l=()=>n(!1);return e.jsxs(e.Fragment,{children:[e.jsxs(je,{container:!0,spacing:2,justifyContent:"center",mt:2,style:{padding:"0px 10px"},children:[e.jsx(je,{item:!0,xs:12,sm:6,md:6,lg:5,children:e.jsxs(Fs,{sx:{height:"515px",bgcolor:"#1E1E1E",borderRadius:"18px",border:"1px solid #4E4E4E",padding:"30px"},children:[e.jsx("div",{style:{display:"flex",justifyContent:"end",alignItems:"center"},children:e.jsx("button",{onClick:r,className:"service_myinfo-edit",children:e.jsx("img",{src:V4,alt:"edit"})})}),e.jsx(ss,{src:(p=s==null?void 0:s.user)==null?void 0:p.avatar,variant:"rounded",sx:{height:"90px",width:"90px"},alt:(h=s==null?void 0:s.user)==null?void 0:h.firstName}),e.jsx("p",{className:"service_info-name mt-2",style:{padding:"0px"},children:de(a==null?void 0:a.displayName)}),e.jsx("p",{className:"service_info-desgn mt-2",children:(d=s==null?void 0:s.businesscard)==null?void 0:d.designation}),e.jsx("p",{className:"service_info-category mt-2",children:a==null?void 0:a.category}),e.jsx("p",{className:"service_info-location mt-2",children:a==null?void 0:a.yourLocation}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Ep,alt:"contact"}),e.jsx("label",{className:"service_info-location",children:"Contacts"})]}
154),e.jsx("p",{className:"service_info-details mt-2",children:a==null?void 0:a.mobile}),e.jsx("p",{className:"service_info-details mt-2",children:a==null?void 0:a.email}),W4(a==null?void 0:a.showcaseLink)&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Ip,alt:"link"}),e.jsx("label",{className:"service_info-location",children:"Portfolio Link"})]}),e.jsx("p",{className:"mt-2",children:e.jsx("a",{className:"service-link",href:a.showcaseLink,target:"_blank",rel:"noopener noreferrer",children:"View Portfolio"})})]})]})}),e.jsx(je,{item:!0,xs:12,sm:6,md:6,lg:6,children:e.jsx(Fs,{sx:{height:"515px",bgcolor:"#1E1E1E",borderRadius:"18px",border:"1px solid #4E4E4E",padding:"30px",marginBottom:"80px"},children:e.jsxs("div",{className:"ambo_custom__Scroll",style:{height:"430px"},children:[e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Pp,alt:"specialization"}),e.jsx("label",{className:"service_info-location",children:"Specializations"})]}),e.jsx("div",{className:"selected-locations",style:{flexWrap:"wrap",justifyContent:"unset"},children:(u=a==null?void 0:a.serviceCategory)==null?void 0:u.map((f,v)=>e.jsx("span",{className:"location-chip",children:f},v))}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Tp,alt:"level"}),e.jsx("label",{className:"service_info-location",children:"Experience Level"})]}),e.jsx("p",{className:"service_info-ans mt-2",children:a==null?void 0:a.expertiseLevel}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Rp,alt:"work"}),e.jsx("label",{className:"service_info-location",children:"Work Mode"})]}),e.jsx("p",{className:"service_info-ans mt-2",children:a==null?void 0:a.serviceOfferMode}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Mp,alt:"pricing"}),e.jsx("label",{className:"service_info-location",children:"Pricing"})]}),e.jsxs("p",{className:"service_info-ans mt-2",children:[a==null?void 0:a.pricingMin," - ",a==null?void 0:a.pricingMax," "]}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Ap,alt:"location"}),e.jsx("label",{className:"service_info-location",children:"Location Availability"})]}),e.jsx("div",{className:"selected-locations",style:{justifyContent:"unset",flexWrap:"wrap"},children:(m=a==null?void 0:a.serviceOfferLocation)==null?void 0:m.map((f,v)=>e.jsx("span",{className:"location-chip",children:f},v))})]})})})]}),e.jsx(z4,{open:i,handleClose:l})]})},Lp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%236E6E6E'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M8.625%2012a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H8.25m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200H12m4.125%200a.375.375%200%201%201-.75%200%20.375.375%200%200%201%20.75%200Zm0%200h-.375M21%2012c0%204.556-4.03%208.25-9%208.25a9.764%209.764%200%200%201-2.555-.337A5.972%205.972%200%200%201%205.41%2020.97a5.969%205.969%200%200%201-.474-.065%204.48%204.48%200%200%200%20.978-2.025c.09-.457-.133-.901-.467-1.226C3.93%2016.178%203%2014.189%203%2012c0-4.556%204.03-8.25%209-8.25s9%203.694%209%208.25Z'%20/%3e%3c/svg%3e",Fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%236E6E6E'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M2.25%206.75c0%208.284%206.716%2015%2015%2015h2.25a2.25%202.25%200%200%200%202.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97%201.293c-.282.376-.769.542-1.21.38a12.035%2012.035%200%200%201-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963%203.102a1.125%201.125%200%200%200-1.091-.852H4.5A2.25%202.25%200%200%200%202.25%204.5v2.25Z'%20/%3e%3c/svg%3e",H4=({label:s,onButtonClick:t,variant:a,bidCount:i,clientData:n,showPaymentModal:r,
154setShowPaymentModal:l})=>{var T,A,R,P,O,M;const{serviceProviderChats:c,serviceProvider:o}=G(L=>L.ambo),{user:p}=G(L=>L.auth),h=ge(),{gotoConversation:d}=Be(),{errorHandle:u}=he(),[m,f]=b.useState(!1),{errorToast:v}=he(),N=()=>f(!1),_=Cs(),x=s==="Place Bid",j=s==="Pending"||s==="Accepted",I=x?Fp:cn,w=x?Lp:Ta,{subscribedProvider:y,futureExpiryDate:k}=o,S=L=>{if(!L)return!1;const F=new Date(L),U=new Date;return F.setHours(0,0,0,0),U.setHours(0,0,0,0),F>=U},g=async L=>{try{let U=await Hs({body:{userIds:[L,p],convoType:"SINGLE",convoStatus:"accepted"}}),{conversationData:Z,conversations:ne}=U==null?void 0:U.data,K=Z||ne[0];Z&&h(qt(K));let te=await Gs({conversationId:Ee(K==null?void 0:K._id)});const{messages:q,totalPages:H,currentPage:X,unseenNotifications:ee}=te==null?void 0:te.data;h(Us(q,X,H,K==null?void 0:K._id)),h(Ss(ee)),d(K==null?void 0:K._id)}catch(F){console.log(F),u(F)}},E=b.useCallback(async()=>{var L,F,U,Z;if(!y||!S(k)){v("Subscribe to view contact details");return}try{const ne=await xp(n==null?void 0:n._id,(L=c[0])==null?void 0:L._id,(Z=(U=(F=c[0])==null?void 0:F.inside)==null?void 0:U.answers)==null?void 0:Z.displayName);f(!0)}catch(ne){u(ne)}},[y,n,c]),C=(A=(T=n==null?void 0:n.inside)==null?void 0:T.userId)==null?void 0:A.requestUserId;return e.jsxs("div",{className:"bid-footer-container",children:[(x||j)&&e.jsx("button",{onClick:x?t:void 0,className:`footer-btn ${a}`,children:s}),_.pathname==="/ambo-service-provider"&&e.jsxs("div",{children:[e.jsx("p",{className:"bid-count-header",children:"Bids"}),e.jsx("span",{className:"bid-count",children:i})]}),j&&e.jsxs("div",{className:"bid-img-container",children:[e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:I,onClick:E,alt:"call",className:"bid-img"})}),e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:w,onClick:()=>g(C),alt:"message",className:"bid-img"})})]}),x&&e.jsxs("div",{className:"bid-img-container",children:[e.jsx(ot,{title:"To get access to requester info, kindly place a bid",arrow:!0,placement:"top",children:e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:I,alt:"call",className:"bid-img disabled-icon"})})}),e.jsx(ot,{title:"To chat with requester, kindly place a bid",arrow:!0,placement:"top",children:e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:w,alt:"message",className:"bid-img disabled-icon"})})})]}),e.jsx(dn,{open:m,handleClose:N,email:(P=(R=n==null?void 0:n.inside)==null?void 0:R.answers)==null?void 0:P.email,mobile:(M=(O=n==null?void 0:n.inside)==null?void 0:O.answers)==null?void 0:M.mobile})]})},G4=({index:s,providerData:t,myChat:a})=>{var y,k,S,g,E,C,T,A,R,P,O;console.log("providerData in ServiceDataCard:",t);let i=(y=t==null?void 0:t.inside)==null?void 0:y.answers;const n=Mt(),{user:r}=G(M=>M.auth),{successToast:l,errorHandle:c}=he(),{gotoConversation:o}=Be(),p=ge(),[h,d]=b.useState(!1),u=()=>d(!1),m=b.useCallback(async()=>{var M,L,F,U;try{const Z=await fp(t==null?void 0:t._id,(M=a[0])==null?void 0:M._id,(U=(F=(L=a[0])==null?void 0:L.inside)==null?void 0:F.answers)==null?void 0:U.displayName);d(!0)}catch(Z){console.error("Error in handleOpenAndNotify:",Z),c(Z)}},[]),f=async()=>{var M,L,F,U,Z,ne,K,te;try{let q={userIds:[(L=(M=t==null?void 0:t.inside)==null?void 0:M.userId)==null?void 0:L._id,r],convoType:"SINGLE",convoStatus:"accepted"},H=await Hs({body:q});if((H==null?void 0:H.message)!=="Duplicate")o((U=(F=H==null?void 0:H.data)==null?void 0:F.conversationData)==null?void 0:U._id);else{o((ne=(Z=H==null?void 0:H.data)==null?void 0:Z.conversations[0])==null?void 0:ne._id);let X=await Gs({conversationId:Ee((K=H==null?void 0:H.data)==null?void 0:K.conversationData[0]._id)});const{messages:ee,totalPages:se,currentPage:ae,unseenNotifications:B}=X==null?void 0:X.data;p(Us(ee,ae,se,(te=H==null?void 0:H.data)==null?void 0:te.conversationData[0]._id)),p(Ss(B))}}catch(q){c(q)}},v=(i==null?void 0:i.serviceCategory)||[],N=v.slice(0,3),_=v.length-3,x=(i==null?void 0:i.serviceOfferLocation)||[],j=x.slice(0,1),I=x.length-1,w=M=>{var L;M&&M.stopPropagation&&M.stopPropagation(),n(`/ambo-service-provider/${(L=a[0])==null?void 0:L._id}-${t==null?void 0:t._id}`)};return e.jsxs(e.Fragment,{children:[e.jsx(Fs,{sx:{width:400,height:460,bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid #4E4E4E",marginTop:"16px"},children:e.jsxs(da,{sx:{minWidth:300,padding:"30px"},children:[e.jsx(xt,{onClick:w,children:e.jsxs("div",{style:{height:"360px",overflow:"scroll",scrollbarWidth:"none"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx("div",{className:"jpfi--img-wrap",children:e.jsxs(An,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},children:[e.jsx(ss,{src:(S=(k=t==null?void 0:t.inside)==null?void 0:k.userId)!=null&&S.avatar?(E=(g=t==null?void 0:t.inside)==null?void 0:g.userId)==null?void 0:E.avatar:Ks((T=(C=t==null?void 0:t.inside)==null?void 0:C.userId)==null?void 0:T.subType),alt:(R=(A=t==null?void 0:t.inside)==null?void 0:A.userId)==null?void 0:R.firstName,className:"img-fluid rounded-circle imgBorder",style:{maxWidth:"50px",width:"50px",height:"50px"}})," "]})}),e.jsx("div",{children:e.jsx("p",{className:"cp",style:{color:"#EAEAEA",fontWeight:"500",fontSize:"18px"},children:de((O=(P=t==null?void 0:t.inside)==null?void 0:P.userId)==null?void 0:O.firstName)})})]}),e.jsx("div",{className:"d-flex align-items-center justify-content-between mt-3",children:e.jsx("p",{className:"service_provider-card-list",children:i==null?void 0:i.displayName})}),e.jsx(Fe,{variant:"body2",sx:{color:"#01BF71",fontWeight:"400",fontSize:"16px",marginTop:"10px"},children:i==null?void 0:i.category}),e.jsxs("div",{className:"service_provider-card-innerList mt-3",style:{paddingLeft:"10px",paddingTop:"4px"},children:[e.jsxs(Fe,{variant:"body2",sx:{color:"#EAEAEA",fontWeight:"400",fontSize:"16px",marginTop:"10px"},children:[e.jsx("span",{style:{color:"#A3A3A3",fontWeight:"400",fontSize:"16px"},children:"Mode:"})," ",i==null?void 0:i.serviceOfferMode]}),e.jsxs(Fe,{variant:"body2",sx:{color:"#EAEAEA",fontWeight:"400",fontSize:"16px",marginTop:"10px"},children:[e.jsx("span",{style:{color:"#A3A3A3",fontWeight:"400",fontSize:"16px"},children:"Price:"})," ",i==null?void 0:i.pricingMin," - ",i==null?void 0:i.pricingMax]}),e.jsx(ot,{title:v.length>3?v.join(", "):"",arrow:!0,children:e.jsxs(Fe,{className:"mb-2",variant:"body2",sx:{color:"#EAEAEA",fontWeight:"400",fontSize:"16px",marginTop:"10px",cursor:v.length>3?"pointer":"default"},children:[N.join(", "),e.jsx("span",{style:{color:"#01BF71"},children:_>0&&` +${_}`})]})}),e.jsxs(Fe,{variant:"body2",sx:{color:"#EAEAEA",fontWeight:"400",fontSize:"16px",marginTop:"10px",display:"flex",gap:"8px",flexWrap:"wrap"},children:[e.jsx("span",{style:{color:"#A3A3A3",fontWeight:"400",fontSize:"16px"},children:"Available :"})," ",x.length>0&&e.jsx(ot,{title:x.length>1?x.join(", "):"",arrow:!0,children:e.jsxs(Fe,{component:"span",sx:{cursor:x.length>1?"pointer":"default",display:"inline"},children:[e.jsx("span",{style:{maxWidth:120,display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom"},children:j.join(", ")}),I>0&&e.jsx("span",{style:{color:"#01BF71"},children:` +${I}`})]})})]})]})]})}),e.jsxs("div",{className:"bid-footer-container",children:[e.jsx("button",{className:"footer-btn acceptedbid",onClick:w,children:"View Full Page"}),e.jsxs("div",{className:"bid-img-container",children:[e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:cn,alt:"call",onClick:m,className:"bid-img"})}),e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:Ta,alt:"message",onClick:f,className:"bid-img"})})]})]})]})},s),e.jsx(dn,{open:h,handleClose:u,email:i==null?void 0:i.email,mobile:i==null?void 0:i.mobile})]})},J4="/assets/Provider%20list%20gif-CG1rIM0g.gif",Y4=({uniqueKey:s,oneChat:t,pageNo:a,totPages:i,insideData:n,loading:r,handleGetDataWithFilter:l})=>(console.log("AmboServiceProviderResults rendered",n),e.jsx(e.Fragment,{children:e.jsx("div",{className:"container-lg",style:{paddingBottom:"30px"},children:(n==null?void 0:n.length)>
1540?e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:n.length,next:()=>{if(n.length&&n.length%10==0){let c=a+1;l(c)}},hasMore:a!==i,loader:r&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:n==null?void 0:n.map((c,o)=>e.jsx(je,{item:!0,xs:12,sm:12,md:6,lg:4.5,style:{display:"flex",padding:"10px 18px"},children:e.jsx(G4,{index:o,providerData:c,myChat:t})},o))})})}):e.jsx("div",{className:"status_gif-container",children:e.jsx("img",{src:J4,alt:"Check back later!",className:"status_gif"})})},s)})),Bp=async(s,t,a)=>z.post(Cb,{bidAmount:s,requestId:t,providerId:a}).then(i=>i.data).catch(i=>{throw i}),Z4=async(s,t,a)=>z.post(Tb,{requestId:s,bidId:t,acceptedByName:a}).then(i=>i.data).catch(i=>{throw i}),K4=async(s,t)=>z.post(xb,{providerId:s,requestId:t}).then(a=>a.data).catch(a=>{throw a}),Q4=({index:s,requestData:t,bidData:a})=>{var E,C,T,A,R,P,O,M,L,F,U,Z,ne,K,te;const{serviceProviderChats:i,serviceProvider:n}=G(q=>q.ambo),{userProfile:r}=G(q=>q.profile);console.log("bidData in ClientBidCard:",a);const{user:l,userDetails:c}=G(q=>q.auth),{gotoConversation:o}=Be(),{successToast:p,errorToast:h,errorHandle:d}=he(),u=ge(),m=Mt(),[f,v]=b.useState((E=a==null?void 0:a.bid)==null?void 0:E.bidStatus),{subscribedProvider:N,futureExpiryDate:_}=n,[x,j]=b.useState(!1),I=()=>j(!1),w=b.useCallback(async()=>{var q,H,X,ee,se;try{const ae=await fp((q=t[0])==null?void 0:q._id,(H=i[0])==null?void 0:H._id,(se=(ee=(X=i[0])==null?void 0:X.inside)==null?void 0:ee.answers)==null?void 0:se.displayName);console.log(ae,"999999999"),j(!0)}catch(ae){d(ae)}},[N,t,i]),y=async q=>{console.log("RAW:",q),console.log("TYPE:",typeof q);try{let X=await Hs({body:{userIds:[q,l],convoType:"SINGLE",convoStatus:"accepted"}}),{conversationData:ee,conversations:se}=X==null?void 0:X.data;console.log(X,"///////////");let ae=ee||se[0];ee&&u(qt(ae)),console.log(ae);let B=await Gs({conversationId:Ee(ae==null?void 0:ae._id)});console.log(B,"rrrrrr");const{messages:W,totalPages:Q,currentPage:ie,unseenNotifications:Y}=B==null?void 0:B.data;u(Us(W,ie,Q,ae==null?void 0:ae._id)),u(Ss(Y)),o(ae==null?void 0:ae._id)}catch(H){d(H)}},k=async q=>{var X;q&&q.stopPropagation&&q.stopPropagation(),(await Z4(t[0]._id,(X=a.bid)==null?void 0:X._id,c.username)).statusCode===Ke&&(v("accepted"),p("Bid accepted successfully"))},S=q=>{var H,X;q&&q.stopPropagation&&q.stopPropagation(),m(`/ambo-service-provider/${(H=t[0])==null?void 0:H._id}-${(X=a==null?void 0:a.provider)==null?void 0:X._id}`),console.log(a)},g=(C=a==null?void 0:a.bid)==null?void 0:C.providerUserId;return e.jsxs(e.Fragment,{children:[e.jsx(Fs,{sx:{width:400,height:450,bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid #4E4E4E",marginTop:"16px"},children:e.jsxs(da,{sx:{minWidth:300,padding:"30px"},children:[e.jsx(xt,{onClick:S,children:e.jsxs("div",{style:{height:"350px",overflow:"scroll",scrollbarWidth:"none"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx("div",{className:"jpfi--img-wrap",children:e.jsx(An,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx(ss,{src:(T=a==null?void 0:a.provider)!=null&&T.avatar?(A=a==null?void 0:a.provider)==null?void 0:A.avatar:Ks((R=a==null?void 0:a.provider)==null?void 0:R.subType),alt:(P=a==null?void 0:a.provider)==null?void 0:P.displayName,className:"img-fluid rounded-circle imgBorder",style:{maxWidth:"50px",width:"50px",height:"50px"}})})}),e.jsx("div",{children:e.jsx("p",{className:"cp",style:{color:"#EAEAEA",fontWeight:"500",fontSize:"18px"},children:de((O=a==null?void 0:a.provider)==null?void 0:O.displayName)})})]}),e.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-3",children:[e.jsx("p",{className:"service_provider-card-list",children:(M=r==null?void 0:r.businesscard)==null?void 0:M.designation}),e.jsx("span",{className:"service_provider-card-posteddate",children:ks((L=a==null?void 0:a.bid)==null?void 0:L.bidCreatedAt)})]}),e.jsx(Fe,{variant:"body2",sx:{color:"#01BF71",fontWeight:"400",fontSize:"16px",marginTop:"10px"},children:(F=a==null?void 0:a.provider)==null?void 0:F.category}),e.jsxs("div",{className:"service_provider-card-innerList mt-3",children:[e.jsxs(fe,{variant:"body2",className:"recruiter_year",style:{fontSize:"14px"},children:["Bid amount :  ",e.jsxs("span",{style:{color:"var(--primary-color)",fontSize:"16px"},children:[(U=a==null?void 0:a.bid)==null?void 0:U.bidAmount," Rs"]})]}),e.jsx(fe,{children:e.jsxs("p",{variant:"body2",className:"recruiter_year",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Experience Level :"})," ","",(Z=a==null?void 0:a.provider)==null?void 0:Z.serviceDeliveredLocation]})}),e.jsx(fe,{children:e.jsxs("p",{variant:"body2",className:"recruiter_year",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Location :"})," ","",(ne=a==null?void 0:a.provider)==null?void 0:ne.location]})})]})]})}),e.jsxs("div",{className:"bid-footer-container",children:[f==="accepted"?e.jsxs("button",{className:"footer-btn acceptedbid",children:["Accepted"," "]}):e.jsxs("button",{className:"footer-btn accept",onClick:k,children:["Accept"," "]}),e.jsxs("div",{className:"bid-img-container",children:[e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:cn,alt:"call",onClick:w,className:"bid-img"})}),e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:Ta,alt:"message",onClick:()=>y(g),className:"bid-img"})})]})]})]})},s),e.jsx(dn,{open:x,handleClose:I,email:(K=a==null?void 0:a.provider)==null?void 0:K.email,mobile:(te=a==null?void 0:a.provider)==null?void 0:te.mobile})]})},X4=({uniqueKey:s,oneChat:t,insideData:a,pageNo:i,setPageNo:n,setTotPages:r,totPages:l,loading:c,handleBidsTabFn:o,showClosedRequestPortion:p})=>{console.log("AmboServiceProviderResults rendered",t),he();const h=a==null?void 0:a.filter(d=>{var u;return((u=d==null?void 0:d.bid)==null?void 0:u.bidStatus)==="accepted"}).length;return e.jsx(e.Fragment,{children:e.jsx("div",{className:"container-lg",style:{paddingBottom:"30px"},children:p?e.jsxs("div",{className:"status_gif-container service_provider-card-desc",style:{display:"flex",flexDirection:"column"},children:[e.jsx("h2",{children:"This service request has been closed."}),e.jsx("p",{children:"You can no longer view or interact with these vendors."})]}):(a==null?void 0:a.length)>
1540?e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{paddingLeft:"30px",marginTop:"20px",color:"#A6A6A6"},children:[e.jsxs("label",{children:["Total bids : ",a.length]}),e.jsx("span",{children:" | "}),e.jsxs("label",{children:["Accepted : ",h]})]}),e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:a.length,next:()=>{a.length&&a.length%10===0&&o(i+1)},hasMore:i!==l,loader:c&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,style:{paddingBottom:"30px"},children:a.map((d,u)=>e.jsx(je,{item:!0,xs:12,sm:12,md:6,lg:4.5,style:{display:"flex",padding:"10px 18px"},children:e.jsx(Q4,{index:u,bidData:d,requestData:t})},u))})})})]}):e.jsx("div",{className:"status_gif-container",children:e.jsx("p",{className:"service_provider-card-desc",children:"We are still waiting for the bids from Service providers."})})},s)})},e6=()=>{var H,X,ee,se,ae,B,W,Q,ie;const{myAmboChats:s}=G(Y=>Y.ambo),t=ge(),{successToast:a,errorToast:i,errorHandle:n}=he(),{gotoAmbo:r}=Be(),[l,c]=b.useState(null),[o,p]=b.useState("companies"),[h,d]=b.useState(!1),[u,m]=b.useState(!1),{chatInsideId:f}=ts();console.log(f,"chatInsideId");const[v,N]=b.useState([0,99999]),[_,x]=b.useState([]),[j,I]=b.useState([]),[w,y]=b.useState(null),[k,S]=b.useState(null),[g,E]=b.useState(!1),[C,T]=b.useState(1),[A,R]=b.useState(0),[P,O]=b.useState([]),[M,L]=b.useState(!1),[F,U]=b.useState(!1),Z=b.useRef();b.useEffect(()=>{const Y=pe=>{Z.current&&!Z.current.contains(pe.target)&&m(!1)};return u&&document.addEventListener("mousedown",Y),()=>{document.removeEventListener("mousedown",Y)}},[u]);const ne=(ee=(X=(H=l==null?void 0:l[0])==null?void 0:H.inside)==null?void 0:X.answers)==null?void 0:ee.main,K=async()=>{var pe,me;const Y=await o5((pe=l==null?void 0:l[0])==null?void 0:pe._id);(Y==null?void 0:Y.statusCode)===200||(Y==null?void 0:Y.statusCode)===201?(t(v2((me=l==null?void 0:l[0])==null?void 0:me._id)),a("Service request closed successfully"),r()):i("Failed to close service request")},te=async Y=>{var pe,me,Ce,Ye,Xe;try{if(!((me=(pe=l==null?void 0:l[0])==null?void 0:pe.inside)!=null&&me.isRequestActive)){U(!0),O([]);return}L(!0);let ue={budget:{min:v[0],max:v[1]},serviceList:(Xe=(Ye=(Ce=l==null?void 0:l[0])==null?void 0:Ce.inside)==null?void 0:Ye.answers)==null?void 0:Xe.serviceList};_.length>0&&(ue={...ue,serviceCategory:_}),j.length>0&&(ue={...ue,expertiseLevel:j}),w!==null&&(ue={...ue,location:w}),k!==null&&(ue={...ue,sortBy:k});const Ae=await bp(Y,10,ue),{spData:Se,pageNo:ve,totalPages:J}=Ae==null?void 0:Ae.data;T(ve),Se.length>0?ve===1&&(J===1||ve<J)?O(Se):ve!==1&&ve<=J?O(D=>[...D,...Se]):L(!1):O(D=>D),L(!1)}catch(ue){n(ue)}},q=async Y=>{var pe;try{L(!0);let me={requestId:(pe=l==null?void 0:l[0])==null?void 0:pe._id};_.length>0&&(me={...me,category:_}),w!==null&&(me={...me,location:w}),k!==null&&(me={...me,sortBy:k});const Ce=await u5(Y,10,me);if(console.log("getBidDataWithFilter res",Ce),Ce!=null&&Ce.data){const{spData:Ye,pageNo:Xe,totalPages:ue}=Ce==null?void 0:Ce.data;T(Xe),R(ue),Ye.length>0?Xe===1&&(ue===1||Xe<ue)?O(Ye):Xe!==1&&Xe<=ue?O(Ae=>[...Ae,...Ye]):L(!1):Ye.length===0&&Xe===1?O([]):O(Ae=>Ae),L(!1)}}catch(me){n(me)}};return b.useEffect(()=>{const Y=s==null?void 0:s.filter(pe=>pe._id===f);return Y.length>0&&(console.log(Y,"singleChat"),c(Y)),()=>{c(null)}},[f,s]),b.useEffect(()=>(O([]),T(1),R(0),o==="request-bids"&&(console.log("its me calling"),q(1)),o==="companies"&&ne==="Service Request"&&te(1),()=>null),[o,l,j,v,g]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"ambo__tab-container",children:[e.jsxs("div",{className:"ambo__tabs relative ambo__tabs-menu",children:[e.jsx("div",{style:{display:"flex",alignItems:"center",gap:"20px"},children:e.jsxs(e.Fragment,{children:[o==="companies"?e.jsx(D4,{activeTab:o,price:v,setPrice:N,category:_,setCategory:x,experience:j,setExperience:I,selectedLocation:w,setSelectedLocation:y,selectedSortBy:k,setSelectedSortBy:S,requestedService:(se
154=l==null?void 0:l[0])==null?void 0:se.inside.answers.serviceList,bidFilterApplied:g,handleGetDataWithFilter:te}):o==="request-bids"?e.jsx(q4,{activeTab:o,price:v,setPrice:N,category:_,setCategory:x,experience:j,setExperience:I,selectedLocation:w,setSelectedLocation:y,selectedSortBy:k,setSelectedSortBy:S,requestedService:(ae=l==null?void 0:l[0])==null?void 0:ae.inside.answers.serviceList,setBidFilterApplied:E,handleBidsTabFn:q}):e.jsxs("div",{className:"d-flex align-items-center justify-content-between",children:[e.jsx("div",{className:"service-filter__container",children:e.jsxs("button",{disabled:!0,className:"service-filter__btn",children:[e.jsx("img",{src:ct,alt:"filter"}),e.jsx("p",{children:"Filter"})]})}),e.jsx("img",{className:"service-filter__icon",src:ct,alt:"filter"})]}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${o==="request-bids"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>p("request-bids"),children:"Bids"}),e.jsx("button",{className:`ambo__tabs-button ${o==="companies"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>p("companies"),children:"Vendors"}),e.jsx("button",{className:`ambo__tabs-button font-semibold ml-4 ${o==="chat"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>p("chat"),children:"Conversation"})]})}),((W=(B=l==null?void 0:l[0])==null?void 0:B.inside)==null?void 0:W.isRequestActive)&&e.jsxs("div",{ref:Z,children:[e.jsx("svg",{onClick:()=>m(!u),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"#A3A3A3",className:"size-6 cursor-pointer dots-parent",height:"40px",width:"40px",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"})}),u&&e.jsx("div",{className:"dots-child",children:e.jsx("button",{className:"dots-btn",onClick:()=>{d(!0),m(!1)},children:"Close Service"})})]})]}),e.jsxs("div",{children:[o==="request-bids"&&e.jsx(X4,{uniqueKey:(Q=l==null?void 0:l[0])==null?void 0:Q._id,pageNo:C,setPageNo:T,oneChat:l,totPages:A,setTotPages:R,insideData:P,loading:M,category:_,experience:j,selectedLocation:w,selectedSortBy:k,bidFilterApplied:g,showClosedRequestPortion:F,handleBidsTabFn:q}),o==="companies"&&e.jsx(Y4,{uniqueKey:(ie=l==null?void 0:l[0])==null?void 0:ie._id,pageNo:C,oneChat:l,totPages:A,insideData:P,loading:M,handleGetDataWithFilter:te}),o==="chat"&&e.jsx(ln,{oneChat:l})]})]}),e.jsx(As,{confirm:h,setConfirm:d,action:"close this service request",performer:K})]})},s6=()=>{var n,r,l,c,o,p,h,d,u,m,f,v,N,_,x;const{myAmboChats:s}=G(j=>j.ambo),[t,a]=b.useState(null),{chatInsideId:i}=ts();return console.log(i,"chatInsideId"),b.useEffect(()=>{const j=s==null?void 0:s.filter(I=>I._id===i);return j.length>0&&(console.log(j,"singleChat"),a(j)),()=>{a(null)}},[i,s]),e.jsx(e.Fragment,{children:t?e.jsx(e.Fragment,{children:((l=(r=(n=t==null?void 0:t[0])==null?void 0:n.inside)==null?void 0:r.answers)==null?void 0:l.main)==="Job Searching"?e.jsx(A4,{}):((p=(o=(c=t==null?void 0:t[0])==null?void 0:c.inside)==null?void 0:o.answers)==null?void 0:p.main)==="Recruiting"?e.jsx(R4,{}):((u=(d=(h=t==null?void 0:t[0])==null?void 0:h.inside)==null?void 0:d.answers)==null?void 0:u.main)==="Referring"?e.jsx(F4,{}):((v=(f=(m=t==null?void 0:t[0])==null?void 0:m.inside)==null?void 0:f.answers)==null?void 0:v.main)==="Investment"?e.jsx(U4,{}):((x=(_=(N=t==null?void 0:t[0])==null?void 0:N.inside)==null?void 0:_.answers)==null?void 0:x.main)==="Service Request"?e.jsx(e6,{}):null}):e.jsx("p",{children:"Testing"})})},t6=()=>{const{chatInsideId:s}=ts(),t=Et(s),[a,i]=b.useState(1),[n,r]=b.useState([]),[l,c]=b.useState(!1),[o,p]=b.useState("companies");b.useState(null);const[h,d]=b.useState(1),u=b.useCallback(async f=>{c(!0);const v=await yp({designation:t,page:f}),{chats:N,pageNo:_,totalPages:x}=v==null?void 0:v.data;d(x),i(_),N.length>0&&(_===1&&(x===1||_<x)?r(N):_!==1&&_<=x?r(j=>[...j,...N]):c(!1)),c(!1)},[]);b.useEffect(()=>(u(1),c(!1),()=>{}),[s]);const m=()=>e.jsx(e.Fragment,{children:(n==null?void 0:n.length)>
1540?e.jsx("div",{className:"container-lg",style:{paddingBottom:"30px"},children:e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:n.length,next:()=>{if(n.length&&n.length%10==0){let f=a+1;u(f)}},hasMore:a!==h,loader:l&&e.jsx(os,{}),children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,children:n==null?void 0:n.map((f,v)=>e.jsx(je,{item:!0,xs:12,sm:6,md:4,lg:4,style:{display:"flex",justifyContent:"center"},children:e.jsx(Yi,{index:v,inData:f})},v))})})})}):e.jsx("div",{className:"container-lg",style:{paddingTop:"20px"},children:e.jsx("section",{className:"display-flex-aljc-center mb-3",style:{flexDirection:"column"},children:e.jsx("p",{style:{color:"#d6dcdd"},children:"Check back later!"})})})});return e.jsx(e.Fragment,{children:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"ambo__tab-container",children:[e.jsx("div",{className:"ambo__tabs",children:e.jsx("button",{className:`ambo__tabs-button ${o==="companies"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>p("companies"),children:"Reports"})}),e.jsx(Os,{sx:{borderColor:"#6E6E6E"}}),e.jsx("div",{children:o==="companies"&&e.jsx(m,{})})]})})})},Op=()=>e.jsxs(e.Fragment,{children:[e.jsx(wa,{}),e.jsxs("div",{className:"main-body",children:[e.jsx("h1",{children:"How to Connect with the Right Investors and Raise Funds Faster"}),e.jsx("p",{children:e.jsx("em",{children:"The Founder’s No-Fluff Guide to Smart Fundraising"})}),e.jsxs("p",{children:["Raising funds isn’t just about finding money — it’s about finding"," ",e.jsx("strong",{children:"the right investors"})," who believe in your vision, bring strategic value, and move fast."]}),e.jsxs("p",{children:["This guide shows you how to raise smarter and faster with real tactics — including how to leverage"," ",e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"www.tickbig.com"})," ","to cut through the noise and connect with aligned investors."]}),e.jsxs("div",{class:"step",children:[e.jsx("h2",{children:"Step 1: Define Your Ideal Investor Persona"}),e.jsx("p",{children:"Most founders make the mistake of pitching to every investor they can find. But fundraising isn’t a lottery — it’s strategic matchmaking."}),e.jsx("p",{children:"Understand your ideal investor by asking:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"What stage do they invest in?"})," Pre-seed, Seed, Series A?"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"What sectors excite them?"})," FinTech, HealthTech, AI, etc."]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Do they bring smart capital?"})," Networks, mentorship, hiring help?"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"What type of investor?"})," Solo angel, syndicate, family office, VC?"]})]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Narrow focus = faster results."})," Use"," ",e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"TickBig"})," ","to find and filter investors who match your vision."]})]}),e.jsxs("div",{class:"step",children:[e.jsx("h2",{children:"Step 2: Build Investor-Ready Assets That Convert"}),e.jsx("p",{children:"Impress with clarity and professionalism. Prepare:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["A sharp ",e.jsx("strong",{children:"10-slide deck"})]}),e.jsxs("li",{children:["A ",e.jsx("strong",{children:"one-pager or teaser"})]}),e.jsxs("li",{children:["A ",e.jsx("strong",{children:"demo, screenshots, or prototype"})]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Proof of traction"}),": revenue, growth, clients"]})]}),e.jsxs("p",{children:["Instead of bulky emails, send your"," ",e.jsx("strong",{children:e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"TickBig profile"})})," ","— clean, digital, always available."]})]}),e.jsxs("div",{class:"step",children:[e.jsx("h2",{children:"Step 3: Get Warm Intros — But Don’t Depend on Them"}),e.jsx("p",{children:"Warm intros work but aren’t scalable Instead:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Reach out directly on LinkedIn"}),e.jsx("li",{children:"Join founder-investor events"}),e.jsxs("li",{children:["Use platforms like"," ",e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"TickBig"})," ","to get discovered directly"]})]})]}),e.jsxs("div",{class:"step",children:[e.jsx("h2",{children:"Step 4: Nail the 2-Minute “Short Story Pitch”"}),e.jsx("p",{children:"Don’t send walls of text. Investors remember stories, not stats. Use this flow:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["“We exist because…” ",e.jsx("em",{children:"(The problem)"})]}),e.jsxs("li",{children:["“We’re solving it by…” ",e.jsx("em",{children:"(Your solution)"})]}),e.jsxs("li",{children:["“Here’s why it matters now…” ",e.jsx("em",{children:"(Traction or timing)"})]}),e.jsxs("li",{children:["“Here’s where we’re headed…” ",e.jsx("em",{children:"(Vision + Ask)"})]})]}),e.jsxs("p",{children:["Link your"," ",e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"TickBig profile"})," ","to give them more."]})]}),e.jsxs("div",{class:"step",children:[e.jsx("h2",{children:"Step 5: Show Up Where Investors Are Already Looking"}),e.jsx("p",{children:"Be present on:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"LinkedIn"}),e.jsx("li",{children:"AngelList"}),e.jsx("li",{children:"Crunchbase"}),e.jsxs("li",{children:[e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"TickBig"})," ","– for targeted visibility and matchmaking"]})]}),e.jsx("p",{children:"Let investors discover you based on traction, relevance, and sector."})]}),e.jsxs("div",{class:"step",children:[e.jsx("h2",{children:"Step 6: Follow Up with Value, Not Desperation"}),e.jsx("p",{children:"Most investors reply after 2–4 touches. Try:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"3–5 days:"})," Quick check-in"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"1–2 weeks:"})," Share a new milestone"]})]}),e.jsxs("p",{children:["Include your"," ",e.jsx("strong",{children:e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"TickBig profile"})})," ","each time — it shows growth without spamming."]})]}),e.jsxs("div",{class:"cta",children:[e.jsx("h2",{children:"Ready to Raise Smarter?"}),e.jsxs("p",{children:["Don’t pitch blindly. Get discovered by the right investors on"," ",e.jsx("a",{href:"https://www.tickbig.com",target:"_blank",children:"www.tickbig.com"}),"."]}),e.jsx("p",{children:e.jsx("strong",{children:"Create your profile today and let opportunity find you."})})]})]}),e.jsx(et,{})]});function a6({userProfile:s}){var t,a;return e.jsx(e.Fragment,{children:e.jsx("ul",{className:"businessCard__topClients--list",children:(a=(t=s==null?void 0:s.topSkills)==null?void 0:t.slice(0,4))==null?void 0:a.map((i,n)=>e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__topClients--dot"}),i.skillName]})},n))})})}const n6="/assets/TB%20water%20mark%20front%20side-GWtMXkZe.png",ca=s=>s?new Date(s).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"mm/dd/yyyy",i6=({userProfile:s})=>{var t,a,i,n,r,l,c,o,p,h,d,u,m,f,v,N,_,x,j,I,w,y,k,S,g,E,C,T,A,R,P,O,M,L,F;return e.jsx(e.Fragment,{children:e.jsxs("main",{className:"businessCard__main card__Container",children:[e.jsxs("div",{className:"display-flex-aljc-center businessCard__section1",children:[e.jsxs("div",{style:{padding:"10px"},children:[e.jsx("div",{className:"display-flex-aljc-center businessCard__section1--image",children:e.jsx(ss,{src:(t=s==null?void 0:s.user)==null?void 0:t.avatar,variant:"rounded",sx:{height:"80px",width:"80px"},alt:(a=s==null?void 0:s.user)==null?void 0:a.firstName})}),e.jsx("hr",{className:"horiLine"})]}),e.jsx("div",{className:"businesscard__section1-firsthalf",children:((i=s==null?void 0:s.user)==null?void 0:i.accountType)==="Individuals"?e.jsx(e.Fragment,{children:e.jsxs("div",{className:"businessCard__section1--two",children:[e.jsx("p",{className:"businessCard__section2--name mobile--name",children:de(((n=s==null?void 0:s.user)==null?void 0:n.firstName)+" "+((r=s==null?void 0:s.user)==null?void 0:r.lastName))}),((l=s==null?void 0:s.businesscard)==null?void 0:l.dateOfBirth)&&e.jsx("p",{className:"businessCard__section1--type",children:ca((c=s==null?void 0:s.businesscard)==null?void 0:c.dateOfBirth)})]})}):["Brands","Institutes"].includes((o=s==null?void 0:s.user)==null?void 0:o.accountType)?e.
154jsx(e.Fragment,{children:e.jsxs("div",{className:"businessCard__section1--two",children:[e.jsx("p",{className:"businessCard__section2--name mobile--name",children:de((p=s==null?void 0:s.user)==null?void 0:p.firstName)}),e.jsx("p",{className:"businessCard__section1--type",children:(h=s==null?void 0:s.businesscard)==null?void 0:h.tagLine})]})}):null})]}),e.jsxs("section",{className:"fdc businessCard__section2",children:[e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card-name",children:((d=s==null?void 0:s.user)==null?void 0:d.accountType)!="Individuals"?e.jsx("p",{className:"businessCard__section1--name desktop--name",children:de((u=s==null?void 0:s.user)==null?void 0:u.firstName)}):e.jsx("p",{className:"businessCard__section1--name desktop--name",children:de(((m=s==null?void 0:s.user)==null?void 0:m.firstName)+" "+((f=s==null?void 0:s.user)==null?void 0:f.lastName))})}),((v=s==null?void 0:s.user)==null?void 0:v.accountType)==="Institutes"||((N=s==null?void 0:s.user)==null?void 0:N.accountType)==="Brands"&&((_=s==null?void 0:s.businesscard)!=null&&_.year)?e.jsx(e.Fragment,{children:e.jsxs("div",{className:"display-flex-aljc-center business__Since",style:{justifyContent:"flex-end"},children:[e.jsx("p",{children:"Since"}),e.jsxs("p",{children:[" ",(x=s==null?void 0:s.businesscard)==null?void 0:x.year]})]})}):null]}),e.jsx(e.Fragment,{children:((j=s==null?void 0:s.user)==null?void 0:j.subType)==="Student"?e.jsxs("ul",{className:"businessCard__section2--listParent",children:[e.jsx("li",{children:e.jsxs("p",{children:["Education: ",(I=s==null?void 0:s.businesscard)==null?void 0:I.highestEducation]})}),e.jsx("li",{children:e.jsxs("p",{children:["College: ",(w=s==null?void 0:s.businesscard)==null?void 0:w.studentsCollegeName]})})]}):((y=s==null?void 0:s.user)==null?void 0:y.subType)==="Professional"?e.jsx(e.Fragment,{children:e.jsx("ul",{className:"businessCard__section2--listParent",children:(k=s==null?void 0:s.businesscard)==null?void 0:k.tagLine})}):((S=s==null?void 0:s.user)==null?void 0:S.subType)==="Freelancer"&&e.jsxs("ul",{className:"businessCard__section2--listParent",children:[e.jsx("li",{children:e.jsxs("p",{children:["Specialization: ",(g=s==null?void 0:s.businesscard)==null?void 0:g.designation]})}),e.jsx("li",{children:e.jsx("p",{children:"Freelancer"})})]})}),((E=s==null?void 0:s.user)==null?void 0:E.accountType)==="Brands"?e.jsx(e.Fragment,{children:e.jsxs("ul",{className:"businessCard__section2--listParent",style:{top:"85px"},children:[e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__dot"})," ",Xs((C=s==null?void 0:s.businesscard)==null?void 0:C.noOfProjects)," Projects"]})}),e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__dot"})," ",Xs((T=s==null?void 0:s.businesscard)==null?void 0:T.noOfClients)," Clients"]})}),e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__dot"})," ",Xs((A=s==null?void 0:s.businesscard)==null?void 0:A.employeeStrength)," Employees"]})})]})}):((R=s==null?void 0:s.user)==null?void 0:R.accountType)==="Institutes"?e.jsx(e.Fragment,{children:e.jsxs("ul",{className:"businessCard__section2--listParent",style:{top:"85px"},children:[e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__dot"})," ",Xs((P=s==null?void 0:s.businesscard)==null?void 0:P.noOfCourses)," Courses"]})}),e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__dot"})," ",Xs((O=s==null?void 0:s.businesscard)==null?void 0:O.noOfStudents)," Students"]})}),e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__dot"})," ",Xs((M=s==null?void 0:s.businesscard)==null?void 0:M.companiesCount)," Companies"]})}),e.jsx("li",{children:e.jsxs("p",{children:[e.jsx("span",{className:"businessCard__dot"})," ",(L=s==null?void 0:s.placements)==null?void 0:L.averagePlacementRate,"% Placement Rate"]})})]})}):null,e.jsx("div",{className:"businessCard__topClients",children:((F=s==null?void 0:s.user)==null?void 0:F.accountType)==="Individuals"?e.jsxs(e.Fragment,{children:[e.jsx("hr",{}),e.jsx(a6,{userProfile:s})]}):null}),e.jsx("div",{className:"businessCard_logo",children:e.jsx("img",{src:n6,alt:"business__logo",style:{width:"40%"}})})]})]})})},Up=async({page:s=1,limit:t=10})=>z.get(`/blog/posts?pageNo=${s}&limit=${t}`).then(a=>a.data).catch(a=>{throw a}),o6=async s=>z.get(`/blog/get-post/${s}`).then(t=>t.data).catch(t=>{throw t}),r6=async s=>z.post("/blog/",s).then(t=>t.data).catch(t=>{throw t}),l6=async s=>z.delete(`/blog/delete-post/${s}`).then(t=>t.data).catch(t=>{throw t}),Dp=()=>{const[s,t]=b.useState([]),[a,i]=b.useState(!1),[n,r]=b.useState(1),[l,c]=b.useState(1),{gotoBlogPost:o}=Be(),p=b.useCallback(async h=>{i(!0);const d=await Up({page:h}),{blogPosts:u,pageNo:m,totalPages:f}=d==null?void 0:d.data;r(m),c(f),u.length>0&&(m===1&&(f===1||m<f)?t(u):m!==1&&m<=f?t(v=>[...v,...u]):i(!1)),i(!1)},[]);return b.useEffect(()=>(p(1),()=>{}),[]),e.jsx(e.Fragment,{children:(s==null?void 0:s.length)>
1540?e.jsx("div",{className:"container-lg",style:{paddingBottom:"100px"},children:e.jsx(Es,{dataLength:s.length,next:()=>{n<l&&p(n+1)},hasMore:n<l,loader:a&&e.jsx(os,{}),children:s==null?void 0:s.map((h,d)=>e.jsxs("div",{className:"blogpost-container mt-3",onClick:()=>o(h.slug),children:[e.jsx("h4",{className:"blog-title",style:{fontSize:"24px"},children:h.title}),e.jsx("p",{className:"blog-posted__date mt-3",style:{fontSize:"18px"},children:h.metaDescription}),e.jsx("p",{className:"blog-posted__date mt-3",style:{fontSize:"14px"},children:ca(h.createdAt)})]},d))})}):e.jsx("div",{className:"container-lg",style:{padding:"30px"},children:e.jsx("p",{className:"text-center text-white",children:"No blog posts available"})})})},c6="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='57.21'%20height='34.655'%20viewBox='0%200%2057.21%2034.655'%3e%3cg%20id='back_button'%20data-name='back%20button'%20transform='translate(2.828%202.827)'%3e%3cline%20id='Line_1'%20data-name='Line%201'%20y1='14'%20x2='15'%20fill='none'%20stroke='%235a6466'%20stroke-linecap='round'%20stroke-width='4'/%3e%3cline%20id='Line_2'%20data-name='Line%202'%20x2='15'%20y2='15'%20transform='translate(0%2014)'%20fill='none'%20stroke='%235a6466'%20stroke-linecap='round'%20stroke-width='4'/%3e%3cline%20id='Line_3'%20data-name='Line%203'%20x2='52.382'%20transform='translate(0%2014)'%20fill='none'%20stroke='%235a6466'%20stroke-linecap='round'%20stroke-width='4'/%3e%3c/g%3e%3c/svg%3e",qp=()=>{const{slug:s}=ts(),{gotoBlog:t}=Be(),[a,i]=_e.useState(null),n=async()=>{var c;const r=await o6(s),l=fa.sanitize((c=r==null?void 0:r.data)==null?void 0:c.htmlContent).replace(/\s+/g," ").trim();i(l)};return We(()=>{n()},[s]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"gap-3 d-flex align-items-center px-3",children:e.jsx("img",{src:c6,onClick:()=>t(),alt:"backArr",className:"profileArr cp"})}),e.jsx("div",{style:{fontSize:"14px",color:"white"},dangerouslySetInnerHTML:{__html:a}})]})},Is=gs(eo)({"& label.Mui-focused":{color:"#D6DCDD",borderRadius:"0px"},"& .MuiInputBase-input":{color:"var(--text-color-primary)",fontSize:"16px",overflowY:"hidden"},"& .MuiInput-underline:after":{borderBottomColor:"#5A6466",borderRadius:"25px"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"var(--color-grey-700)",borderRadius:"25px",color:"#D6DCDD"},"&:hover fieldset":{borderColor:"var(--text-color-primary)",borderRadius:"25px"},"&.Mui-focused fieldset":{borderColor:"var(--text-color-secondary)",borderRadius:"25px",color:"#D6DCDD"}},"& .MuiOutlinedInput-root.Mui-focused":{"& fieldset":{borderColor:s=>s.error?"crimson":"#01BF71"}},"& .MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:"crimson"}}),d6=gs(eo)({"& label.Mui-focused":{borderColor:"#5a6466"},"& .MuiInput-underline:after":{},"& .MuiOutlinedInput-root":{padding:"0px","& fieldset":{borderColor:"#5a6466",border:"0px"},"&:hover fieldset":{borderColor:"#5a6466"},"&.Mui-focused fieldset":{borderColor:"#5a6466"}}});function m6({handleClose:s,userProfile:t}){var u,m,f,v,N;const a=ge(),{successToast:i,warningToast:n,errorToast:r,errorHandle:l}=he(),c=ts().userUniqueId,{register:o,handleSubmit:p,formState:{errors:h}}=Qe(),d=async _=>{var I,w,y;const x={facebookLink:_==null?void 0:_.facebookLink,twitterLink:_==null?void 0:_.twitterLink,InstagramLink:_==null?void 0:_.InstagramLink,LinkedinLink:_==null?void 0:_.LinkedinLink,websiteLink:_==null?void 0:_.officialWebsite},j=await i3(c,x);j&&(j!=null&&j.data)&&((I=j==null?void 0:j.data)!=null&&I.profile)&&(a(ds((y=(w=j==null?void 0:j.data)==null?void 0:w.profile)==null?void 0:y.socialLink,"socialLink")),s(),i("Social links has been updated"))};return e.jsx(e.Fragment,{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"footer_input__Section",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Link your Social Media"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsxs("form",{autoComplete:"off",className:"mt-4 footer-form",onSubmit:p(d),children:[e.jsxs("div",{className:"flex-wrap gap-0 d-flex gap-md-4 flex-md-nowrap ",children:[e.jsxs("div",{className:"gap-2 d-flex align-items-center w-100 mt-4",children:[e.jsx("i",{className:"fa-brands fa-facebook-f  display-flex-aljc-center footInp"}),e.jsx(Is,{id:"custom-css-outlined-input",size:"small",className:"textField",type:"url",placeholder:"https://www.tickbig.com",InputProps:{className:"textfield"},label:"Facebook Link",InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"var(--mini-size)",width:"fit-content"}},defaultValue:(u=t==null?void 0:t.socialLink)==null?void 0:u.facebookLink,...o("facebookLink")})]}),e.jsxs("div",{className:"gap-2 d-flex align-items-center w-100 mt-4",children:[e.jsx("i",{className:"fa-brands fa-twitter  display-flex-aljc-center footInp"}),e.jsx(Is,{id:"custom-css-outlined-input",size:"small",className:"textField",type:"url",placeholder:"https://www.tickbig.com",InputProps:{className:"textfield"},label:"Twitter Link",InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"var(--mini-size)",width:"fit-content"}},defaultValue:(m=t==null?void 0:t.socialLink)==null?void 0:m.twitterLink,...o("twitterLink")})]})]}),e.jsxs("div",{className:"flex-wrap gap-0 d-flex gap-md-4 flex-md-nowrap",children:[e.jsxs("div",{className:"gap-2 d-flex align-items-center w-100 mt-4",children:[e.jsx("i",{className:"fa-brands fa-linkedin  display-flex-aljc-center  footInp"}),e.jsx(Is,{id:"custom-css-outlined-input",size:"small",className:"textField",InputProps:{className:"textfield"},placeholder:"https://www.tickbig.com",label:"Linkedin Link",type:"url",InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"var(--mini-size)",width:"fit-content"}},defaultValue:(f=t==null?void 0:t.socialLink)==null?void 0:f.LinkedinLink,...o("LinkedinLink",{})})]}),e.jsxs("div",{className:"gap-2 d-flex align-items-center w-100 mt-4",children:[e.jsx("i",{className:"fa-brands fa-instagram  display-flex-aljc-center footInp"}),e.jsx(Is,{id:"custom-css-outlined-input",size:"small",className:"textField",type:"url",InputProps:{className:"textfield"},placeholder:"https://www.tickbig.com",label:"Instagram Link",InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"var(--mini-size)",width:"fit-content"}},defaultValue:(v=t==null?void 0:t.socialLink)==null?void 0:v.InstagramLink,...o("InstagramLink")})]})]}),e.jsx("div",{className:"flex-wrap gap-0 d-flex gap-md-4 flex-md-nowrap ",children:e.jsxs("div",{className:"gap-2 d-flex align-items-center w-100 mt-4",children:[e.jsx("i",{className:"fa-solid fa-globe display-flex-aljc-center footInp"}),e.jsx(Is,{id:"custom-css-outlined-input",size:"small",className:"textField",InputProps:{className:"textfield"},label:"Website Link",placeholder:"https://www.tickbig.com",type:"url",InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"var(--mini-size)",width:"fit-content"}},defaultValue:(N=t==null?void 0:t.socialLink)==null?void 0:N.websiteLink,...o("officialWebsite")})]})}),e.jsx("div",{className:"mt-3 d-flex justify-content-end profile_input_modal_end-line",children:e.jsx("button",{className:"profile_modal_input__save_icon",type:"submit",children:"Save"})})]})]})})})})})}const h6=({handleClose:s})=>{const{successToast:t,errorToast:a}=he(),{register:i,handleSubmit:n,getValues:r,formState:{errors:l}}=Qe({}),c=async o=>{const p=await r6(o);(p==null?void 0:p.statusCode)===200?(t("Blog created successfully"),s()):a("Error creating blog post")};return e.jsx(e.Fragment,{children:e.jsx("form",{autoComplete:"off",onSubmit:n(c),children:e.jsxs("div",{className:"blog-modal__container",children:[e.jsx("p",{className:"blog-create",children:"Create New Blog"}),e.jsxs("div",{children:[e.jsx("label",{className:"blog-title mt-4",children:"Blog Title"}),e.jsx(Is,{id:"custom-css-outlined-input",size:"small",error:!!(l!=null&&l.line1),multiline:!0,maxRows:4,className:"textField my-4 mt-2",InputProps:{className:"textfield"},label:"Enter Title",type:"text",InputLabelProps:{style:{color:l!=null&&l.line1?"crimson":"#A7AAAB",fontSize:"15px"}},...i("title",{required:{value:!0,message:"Title is required"}})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"blog-title",children:"Short description"}),e.jsx(Is,{error:!!(l!=null&&l.metaDescription),name:"metaDescription",id:"custom-css-outlined-input",size:"small",className:"textField my-4 mt-2",multiline:!0,rows:3,InputProps:{className:"textfield"},label:"Description",InputLabelProps:{style:{color:"#A7AAAB",fontSize:"16px",borderRadius:"0"}},type:"text",...i("metaDescription",{required:{value:!0,message:"Short Description is required"}})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"blog-title",children:"Blog Content (html)"}),e.jsx("div",{className:"my-2",children:e.jsx(d6,{style:{width:"100%",borderRadius:"20px",border:"1px solid #5a6466",background:"#1e1e1e",padding:"10px",color:"#A7AAAB"},id:"custom-css-outlined-input",size:"small",multiline:!0,rows:8,InputLabelProps:{style:{color:"#e8ebec",fontSize:"var(--micro-size)"}},InputProps:{className:"textfield",sx:{color:"#A7AAAB"}},type:"text",...i("htmlContent",{required:{value:!0,message:"Blog content should not be blank"}})})}),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end mt-4",children:[e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center cp blog_form-cancel",onClick:s,style:{fontSize:"16px"},children:"Cancel"}),e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center blog_form-save",type:"submit",children:"Save and Publish"})]})]})]})})})},u6=()=>{const{successToast:s}=he(),[t,a]=b.useState(null),[i,n]=b.useState(!1),[r,l]=b.useState(1),[c,o]=b.useState(1),[p,h]=b.useState(!1),d=()=>h(!0),u=()=>h(!1),m=b.useCallback(async v=>{n(!0);const N=await Up({page:v}),{blogPosts:_,pageNo:x,totalPages:j}=N==null?void 0:N.data;l(x),o(j),_.length>0&&(x===1&&(j===1||x<j)?a(_):x!==1&&x<=j?a(I=>[...I,..._]):n(!1)),n(!1)},[]),f=async v=>{const N=await l6(v);(N==null?void 0:N.statusCode)===200&&(s("Blog has been deleted"),getBlogPosts())};return b.useEffect(()=>(m(1),()=>{}),[p]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"blog-heading__container",style:{position:"sticky",padding:"3px",top:"92px",zIndex:"1000",background:"#121212"},children:[e.jsx("p",{className:"blog-header",children:"Blogs"}),e.jsx("button",{className:"blog-create__btn",onClick:d,children:"Create Blog"})]}),(t==null?void 0:t.length)>
1540?e.jsx("div",{className:"container-lg",style:{paddingBottom:"100px"},children:e.jsx(Es,{dataLength:t.length,next:()=>{r<c&&m(r+1)},hasMore:r<c,loader:i&&e.jsx(os,{}),children:t==null?void 0:t.map((v,N)=>e.jsxs("div",{className:"blog-card__container",children:[e.jsxs("div",{children:[e.jsx("p",{className:"blog-title",children:v.title}),e.jsx("p",{className:"blog-posted__date mt-2",children:ca(v.createdAt)})]}),e.jsx("button",{className:"blog-trash",onClick:()=>f(v==null?void 0:v._id),children:e.jsx("img",{src:Na,alt:"Delete"})})]},N))})}):e.jsx("div",{className:"blog-card__container",children:e.jsx("p",{className:"blog-title",children:"No Blogs Found"})}),e.jsx(qe,{open:p,onClose:u,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:B2,className:"profileServiceContainer",children:e.jsx(h6,{handleClose:u})})})]})},Vp=({open:s,onClose:t,makingPayment:a})=>{var r;const{subscriptions:i}=G(l=>l.subscription),n=i==null?void 0:i.filter(l=>l.name==="AMBO SERVICE PROVIDER");return e.jsx(qe,{open:s,onClose:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:ou,children:e.jsxs("div",{className:"ambo__pay-card",children:[e.jsx("h5",{className:"ambo__pay-name",children:"Here’s what you get!"}),e.jsx("p",{className:"ambo__pay-gst",children:"Connect with clients directly & grow faster"}),e.jsx("div",{className:"provider-modal-container",children:e.jsxs("ul",{className:"provider-modal-benefits",style:{paddingLeft:"0px"},children:[e.jsx("li",{children:"Bid projects unlimitedly per month"}),e.jsx("li",{children:"View contacts of clients unlimitedly per month"}),e.jsx("li",{children:"Quickly connect and chat with the clients"}),e.jsx("li",{children:"Pay only on monthly basis for easy cost management"})]})}),e.jsxs("h4",{className:"ambo__pay-price",children:["₹ ",(r=n==null?void 0:n[0])==null?void 0:r.price]}),e.jsx("h6",{className:"ambo__pay-gst",children:"+ 18% GST (1 Month)"}),e.jsx("div",{className:"text-center paynow-button",children:e.jsx("button",{className:"ambo__pay-btn",onClick:a,children:"Pay now"})})]})})})},Wo=({invOrder:s,paymentId:t})=>{ge(),he();const{serviceProvider:a}=G(u=>
154u.ambo),{freshProvider:i,subscribedProvider:n,futureExpiryDate:r}=a,[l,c]=b.useState(!1);b.useState(!1);const[o,p]=b.useState(!1),[h,d]=b.useState({open:!1,status:null});return e.jsxs(e.Fragment,{children:[n&&r!=null&&e.jsx("div",{children:e.jsxs("p",{className:"subscription-ends mt-2",children:["Subscription ends on ",r]})}),s&&s.invoiceNumber&&l&&e.jsx(nn,{paymentId:t,order:s,showModal:l,setShowModal:c}),e.jsx(ka,{open:o,onClose:()=>p(!1)}),e.jsx(Ca,{open:h.open,status:h.status,onClose:()=>d({open:!1,status:null})})]})},p6=()=>(b.useState(!1),e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:e.jsx(Wo,{})}),e.jsx($4,{})]})),zp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='2.0'%20stroke='%23d6dcdd'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='m19.5%208.25-7.5%207.5-7.5-7.5'%20/%3e%3c/svg%3e",g6=({activeTab:s,serviceList:t,locationOptions:a,selectedLocation:i,selectedServices:n,selectedSortBy:r,selectedServiceType:l,setFilter:c,handleGetDataWithFilter:o,handleGetBiddedClientsWithFilter:p})=>{const[h,d]=b.useState(!1),[u,m]=b.useState(!1),[f,v]=b.useState(!1),[N,_]=b.useState(!1),x=["Newest First","Oldest First"],j=["Newest First","Oldest First","Accepted Bid"],I=["Personal","Business"],w=T=>{const{name:A}=T.target;c(R=>({...R,selectedServices:R.selectedServices.includes(A)?R.selectedServices.filter(P=>P!==A):[...R.selectedServices,A]}))},y=T=>{c(A=>({...A,selectedServiceType:T.target.value}))},k=T=>{c(A=>({...A,selectedSortBy:T.target.name}))},S=()=>{c({selectedLocation:null,selectedServices:[],selectedSortBy:"Newest First",selectedServiceType:null}),m(!0)},g=(T,A)=>{c(R=>({...R,selectedLocation:A}))};b.useEffect(()=>(u&&(s==="reports"?o(1):p(1)),()=>m(!1)),[u]);const E=i||n.length||l||r,C=()=>{f?(_(!1),setTimeout(()=>v(!1),400)):(v(!0),setTimeout(()=>_(!0),10))};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"service-filter__container",children:e.jsxs("button",{disabled:s==="myinfo",onClick:C,className:"service-filter__btn",children:[e.jsx("img",{src:ct,alt:"filter"}),e.jsx("p",{children:"Filter"})]})}),e.jsx("img",{className:"service-filter__icon",onClick:C,src:ct,alt:"filter"}),f&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"service-filter__backdrop",onClick:C}),e.jsxs("div",{className:`service-filter__bg ${N?"show":""}`,children:[e.jsxs("div",{className:"filter_select-container",children:[e.jsx("p",{className:"service-headers mb-3",children:"SortBy"}),(s==="reports"?x:j).map(T=>e.jsxs("label",{className:"display-flex-aic-jcsb service__filter mt-2",children:[e.jsx("p",{className:"service__sub-headers",children:T}),e.jsx("input",{type:"radio",className:"service__checkboxRound",name:T,checked:r===T,onChange:k})]},T)),e.jsx("p",{className:"service-headers mb-3 mt-3",children:"Service Type"}),I.map(T=>e.jsxs("label",{className:"display-flex-aic-jcsb service__filter mt-2",children:[e.jsx("p",{className:"service__sub-headers",children:T}),e.jsx("input",{type:"checkbox",className:"service__checkboxRound",value:T,checked:l===T,onChange:y})]},T)),e.jsx("p",{className:"service-headers mb-3 mt-3",children:"Service Categories"}),e.jsxs("div",{className:"custom-dropdown-container",onClick:()=>d(T=>!T),children:[e.jsx("span",{style:{color:"#A3A3A3"},children:"Choose service"}),e.jsx("span",{className:"arrow",children:e.jsx("img",{src:zp,alt:"toggle",style:{width:"15px"}})})]}),h&&e.jsx("div",{className:"service__list-container ambo_custom__Scroll",children:t.map(T=>e.jsxs("label",{className:"display-flex-aic-jcsb service__provider-filter mt-2",children:[e.jsx("p",{className:"service__list-p",children:T}),e.jsx("input",{type:"checkbox",className:"service__checkboxRound",name:T,checked:n.includes(T),onChange:w})]},T))}),e.jsx("p",{className:"service-headers mb-2 mt-2",children:"Location"}),e.jsx(pa,{variant:"inline",onSelectLocation:g})]}),E&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:"service__filter-btn service__filter-appl
154y",onClick:()=>{s==="reports"?o(1):p(1),C()},children:"Apply"}),e.jsx("button",{className:"service__filter-btn service__filter-clear mt-4",onClick:S,children:"Clear all"})]})]})]})]})},x6="/assets/Client%20list-cb08hrav.gif",Wp=({open:s,onClose:t,onSubmit:a})=>{const[i,n]=b.useState(0),{warningToast:r}=he(),l=o=>{const p=o.target.value;n(p)},c=()=>{let o=Number(i);typeof o=="number"&&o>0?(a(o),t()):r("Please enter a valid bid amount")};return e.jsx(qe,{open:s,onClose:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:D2,children:e.jsxs("div",{children:[e.jsx("input",{type:"number",placeholder:"Bid amount",className:"ambo__number-input",value:i,onWheel:o=>o.currentTarget.blur(),onChange:l,required:!0}),e.jsxs("div",{className:"ambo-bid-modal__btns",children:[e.jsx("button",{className:"bid-cancel-btn",onClick:()=>{t()},children:"Cancel"}),e.jsx("button",{className:"bid-submit-btn",onClick:()=>c(),children:"Submit"})]})]})})})},$p=({index:s,clientData:t,showDescription:a=!0,isBidStatusPage:i=!1,openBidModal:n,bidModalOpen:r,setBidModalOpen:l,onBidPlaced:c})=>{var j,I,w,y;const o=Mt();he(),G(k=>k.ambo),b.useState("Place Bid");const[p,h]=b.useState(!1);let d=(j=t==null?void 0:t.inside)==null?void 0:j.answers,u=(I=t==null?void 0:t.inside)==null?void 0:I.userId;const m=t==null?void 0:t.userBid,f=(m==null?void 0:m.bidStatus)??null,v=i?de(f):"Place Bid",N=i?m==null?void 0:m.bidStatus:"place",_=k=>{k&&k.stopPropagation&&k.stopPropagation();const S=t==null?void 0:t._id;o(`/ambo-service-request/${S}`)},x=()=>e.jsx("div",{className:"provider-card-alternate mt-3 mb-3",children:e.jsxs(Fe,{variant:"body2",className:"recruiter_year",style:{textAlign:"center",fontSize:"14px"},children:["Your bid amount:"," ",e.jsxs("span",{style:{color:"var(--primary-color)",fontSize:"16px"},children:[m==null?void 0:m.bidAmount,"rs"]})]})});return e.jsx(e.Fragment,{children:e.jsxs(Fs,{sx:{width:400,bgcolor:"#1E1E1E",borderRadius:6,border:"1px solid var(--color-grey-800)",padding:"20px",height:"100%",display:"flex",flexDirection:"column"},className:"service_provider-card mt-2",children:[e.jsxs(xt,{onClick:_,style:{flexGrow:1},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsx("div",{className:"jpfi--img-wrap",children:e.jsx(An,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx(ss,{src:u.avatar?u==null?void 0:u.avatar:Ks(u==null?void 0:u.subType),alt:u==null?void 0:u.firstName,className:"img-fluid rounded-circle imgBorder",style:{maxWidth:"50px",width:"50px",height:"50px"}})})}),e.jsx("div",{children:e.jsxs("p",{className:"cp service_provider-card-list",onClick:()=>{window.open(`/profile/${u.tickbigLink}`,"_blank")},children:["Need ",d==null?void 0:d.serviceList]})})]}),e.jsxs("div",{className:"bid-card-body",style:{flexGrow:1},children:[e.jsx("p",{className:"service_provider-card-category mt-3",children:d==null?void 0:d.serviceCategory}),e.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-3",children:[e.jsx("p",{className:"service_provider-card-list",children:de(d==null?void 0:d.fullName)}),e.jsx("span",{className:"service_provider-card-posteddate",children:ks(t.createdAt)})]}),e.jsxs("div",{className:"service_provider-card-innerList mt-3",children:[e.jsx(fe,{children:e.jsxs("p",{variant:"body2",className:"recruiter_year",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Category :"})," ","",d==null?void 0:d.serviceList]})}),e.jsx(fe,{children:e.jsxs("p",{variant:"body2",className:"recruiter_year",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Delivery Type :"})," ","",d==null?void 0:d.serviceDeliveredLocation]})}),e.jsx(fe,{children:e.jsxs("p",{variant:"body2",className:"recruiter_year",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Location :"})," ","",de(d==null?void 0:d.location)]})})]}),a?e.jsx(Fe,{variant:"body2",className:"jpfi_desc_content service_provider-card-desc mt-3 mb-3",children:d==null?void 0:d.describeService}):x()]})]}),e.jsx(H4,{label:v,onButtonClick:n,variant:N,bidCount:(y=(w=t==null?void 0:t.inside)==null?void 0:w.bids)==null?void 0:y.length,clientData:t,showPaymentModal:p,setShowPaymentModal:h})]},s)})},f6=({loading:s,handleGetClientsDataWithFilter:t,ClientsData:a,pageNo:i,totPages:n})=>{var ne,K,te;const r=ge(),{errorHandle:l,errorToast:c,successToast:o}=he(),[p,h]=b.useState(!1),{serviceProviderChats:d,serviceProvider:u}=G(q=>q.ambo),{subscribedProvider:m,futureExpiryDate:f}=u,[v,N]=b.useState(!1);(te=(K=(ne=d[0])==null?void 0:ne.inside)==null?void 0:K.answers)==null||te.serviceCategory;const[_,x]=b.useState(null),[j,I]=b.useState(!1),[w,y]=b.useState(null),{userDetails:k}=G(q=>q.auth),[S,g]=b.useState(null),[E,C]=b.useState([]),[T,A]=b.useState(!1),[R,P]=b.useState({open:!1,status:null}),O=q=>{if(!f||!m||!Wi(f)){h(!1),N(!0);return}x(q),h(!0),N(!1)},M=async(q,H=1,X=10)=>{var ee;try{return await tn(q)}catch(se){const ae=(ee=se.response)==null?void 0:ee.status;if(ae===400&&H<X)return new Promise(B=>{setTimeout(async()=>{const W=await M(q,H+1,X);B(W)},1e3)});throw ae===400?new Error("Payment status is still pending after 10 seconds."):se}},L=async(q,H)=>{var X,ee,se,ae;try{const B=await M(q);(X=B==null?void 0:B.data)!=null&&X.orderDataSuccess?(I(!0),y((ee=B==null?void 0:B.data)==null?void 0:ee.orderDataSuccess),g(H),setShowModal(!0),r(fo((ae=(se=B==null?void 0:B.data)==null?void 0:se.orderDataSuccess)==null?void 0:ae.updatedAt)),o(ambo_new_payment_received)):(setShowModal(!1),c(ambp_payment_failed))}catch(B){setShowModal(!1),c("Payment failed or timed out."),console.error("Error checking payment status:",B.message)}},F=async()=>{var q,H;try{const X=await on("Provide Service",1),ee={cartList:X.data.products,amount:X.data.totalAmount+X.data.totalGst},se=await sn(ee);if(se){const ae=se==null?void 0:se.data,B=await rn(ae,k);if(B&&B.paymentId){A(!0);try{const W=await an({razorpay_order_id:B.razorpay_order_id,razorpay_payment_id:B.razorpay_payment_id});((q=W==null?void 0:W.data)==null?void 0:q.status)==="Success"?await L(B.razorpay_order_id,B.paymentId):P({open:!0,status:((H=W==null?void 0:W.data)==null?void 0:H.status)||"Pending"})}catch(W){console.error("Error checking payment status:",W),P({open:!0,status:"Pending"})}finally{A(!1)}}else setShowModal(!1),c(ambp_payment_failed)}}catch{setShowModal(!1),A(!1)}finally{window.location.reload()}},U=async(q,H)=>{try{const X=await Bp(q,H==null?void 0:H._id,d[0]._id);console.log("place bid response",X),X.statusCode===Ke&&(h(!1),o("Bid placed successfully"),Z(H._id))}catch(X){console.log("Error placing bid:",X),c("Failed to place bid")}};b.useEffect(()=>{C(a||[])},[a]);const Z=q=>{C(H=>H.filter(X=>X._id!==q))};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"container-lg",style:{paddingBottom:"30px"},children:(E==null?void 0:E.length)>
1540?e.jsxs(e.Fragment,{children:[e.jsx(Wo,{invOrder:w,paymentId:S}),e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:E.length,next:()=>{if(E.length&&E.length%10==0){let q=i+1;t(q)}},hasMore:i!==n,loader:s&&e.jsx(os,{}),style:{paddingBottom:30},children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,style:{paddingTop:"20px"},children:E==null?void 0:E.map((q,H)=>e.jsx(je,{item:!0,xs:12,sm:6,md:6,lg:4.5,style:{display:"flex",padding:"10px 18px"},children:e.jsx($p,{index:H,clientData:q,showDescription:!0,openBidModal:()=>O(q),bidModalOpen:p,setBidModalOpen:h,onBidPlaced:Z})},H))})})})]}):e.jsx("div",{className:"status_gif-container",children:e.jsx("img",{src:x6,alt:"Check back later!",className:"status_gif"})})}),e.jsx(Vp,{open:v,onClose:()=>N(!1),makingPayment:F}),e.jsx(Wp,{open:p,onClose:()=>h(!1),onSubmit:q=>U(q,_)}),e.jsx(ka,{open:T,onClose:()=>A(!1)}),e.jsx(Ca,{open:R.open,status:R.status,onClose:()=>P({open:!1,status:null})})]})},j6=({ClientsData:s,pageNo:t,totPages:a,loading:i,handleGetBiddedClientsWithFilter:n,setClientsData:r,setPageNo:l,setTotPages:c})=>{var d,u,m;const{serviceProviderChats:o}=G(f=>f.ambo);he(),(m=(u=(d=o[0])==null?void 0:d.inside)==null?void 0:u.answers
154)==null||m.serviceCategory;const p=s==null?void 0:s.filter(f=>{var v,N;return(N=(v=f.inside)==null?void 0:v.bids)==null?void 0:N.some(_=>_.bidStatus==="accepted")}).length,h=s==null?void 0:s.filter(f=>{var v,N;return(N=(v=f.inside)==null?void 0:v.bids)==null?void 0:N.some(_=>_.bidStatus==="pending")}).length;return e.jsx(e.Fragment,{children:e.jsx("div",{className:"container-lg",style:{paddingBottom:"30px"},children:(s==null?void 0:s.length)>0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{paddingLeft:"40px",marginTop:"16px",color:"#A6A6A6"},children:[e.jsxs("lable",{children:["Total : ",s==null?void 0:s.length]}),e.jsx("span",{children:" | "}),e.jsxs("lable",{children:["Accepted: ",p,e.jsx("span",{children:" | "})]}),e.jsxs("lable",{children:["Pending: ",h]})]}),e.jsx(Wo,{}),e.jsx(Ie,{sx:{width:"100%"},children:e.jsx(Es,{dataLength:s.length,next:()=>{if(s.length&&s.length%10==0){let f=t+1;n(f)}},hasMore:t!==a,loader:i&&e.jsx(os,{}),style:{paddingBottom:30},children:e.jsx(je,{container:!0,rowSpacing:1,columnSpacing:1,style:{paddingTop:"20px"},children:s==null?void 0:s.map((f,v)=>e.jsx(je,{item:!0,xs:12,sm:12,md:6,lg:4.5,style:{display:"flex",padding:"10px 18px"},children:e.jsx($p,{index:v,clientData:f,showDescription:!1,isBidStatusPage:!0})},v))})})})]}):e.jsx("div",{className:"status_gif-container",children:e.jsx("p",{className:"service_provider-card-desc",children:"No bids were initiated by you so far!"})})})})},y6=()=>{var C,T,A;const{errorHandle:s,errorToast:t}=he(),a=ge(),{gotoHome:i}=Be(),{serviceProviderChats:n}=G(R=>R.ambo),r=((A=(T=(C=n[0])==null?void 0:C.inside)==null?void 0:T.answers
154)==null?void 0:A.serviceCategory)||[],[l,c]=b.useState("reports"),[o,p]=b.useState({selectedLocation:null,selectedServices:[],selectedSortBy:"Newest First",selectedServiceType:null}),[h,d]=b.useState({selectedLocation:null,selectedServices:[],selectedSortBy:"Newest First",selectedServiceType:null}),u=l==="reports"?o:h,m=l==="reports"?p:d,[f,v]=b.useState([]),[N,_]=b.useState([]),[x,j]=b.useState(!1),[I,w]=b.useState(1),[y,k]=b.useState(0);b.useEffect(()=>{const R=async()=>{var O,M,L;const P=await d5("AMBO SERVICE PROVIDER");if(((O=P==null?void 0:P.data)==null?void 0:O.length)>0&&n.length>0){const F=await ov((M=P==null?void 0:P.data[0])==null?void 0:M.createdAt);a(_2(F,(L=P==null?void 0:P.data)==null?void 0:L.length))}};n.length?R():(t("You are not a service provider. Invalid access."),i("/home"))},[]);const S=async()=>{var P;const R=await p5(r);if(((P=R==null?void 0:R.data)==null?void 0:P.length)>0){const O=[...new Set(R.data.map(M=>M.inside.answers.location.trim()))];v(O.map(M=>({value:M,label:M})))}},g=async R=>{try{j(!0);const{selectedLocation:P,selectedServices:O,selectedSortBy:M,selectedServiceType:L}=o;let F={serviceList:O.length?O:r};P&&(F.location=P),L&&(F.serviceCategory=L),M&&M!=="Accepted Bid"&&(F.sortBy=M);const U=await f5(R,10,F),{srData:Z,pageNo:ne,totalPages:K}=U.data;w(ne),k(K),_(ne===1?Z:te=>[...te,...Z]),j(!1)}catch(P){s(P)}},E=async R=>{try{j(!0);const{selectedLocation:P,selectedServices:O,selectedSortBy:M,selectedServiceType:L}=h;let F={serviceList:O.length?O:r};P&&(F.location=P),L&&(F.serviceCategory=L),M&&(F.sortBy=M);const U=await j5(R,10,F),{serviceRequests:Z,pageNo:ne,totalPages:K}=U.data;w(ne),k(K),_(ne===1?Z:te=>[...te,...Z]),j(!1)}catch(P){s(P)}};return b.useEffect(()=>{S(),_([]),w(1),k(0),l==="reports"?g(1):l==="status"&&E(1)},[l]),e.jsxs("div",{className:"ambo__tab-container",children:[e.jsxs("div",{className:"ambo__tabs",children:[e.jsx(g6,{activeTab:l,serviceList:r,locationOptions:f,...u,setFilter:m,handleGetDataWithFilter:g,handleGetBiddedClientsWithFilter:E}),e.jsx("button",{className:`ambo__tabs-button ${l==="reports"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>c("reports"),children:"Clients"}),e.jsx("button",{className:`ambo__tabs-button ml-4 ${l==="status"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>c("status"),children:"Bid status"}),e.jsx("button",{className:`ambo__tabs-button ml-4 ${l==="myinfo"?"ambo__tab-active":"ambo__tab"}`,onClick:()=>c("myinfo"),children:"My Info"})]}),l==="reports"&&e.jsx(f6,{loading:x,ClientsData:N,pageNo:I,totPages:y,handleGetClientsDataWithFilter:g}),l==="status"&&e.jsx(j6,{ClientsData:N,loading:x,pageNo:I,totPages:y,handleGetBiddedClientsWithFilter:E}),l==="myinfo"&&e.jsx(p6,{})]})},b6=()=>{const{register:s,handleSubmit:t,watch:a,reset:i}=Qe(),[n,r]=b.useState([]),[l,c]=b.useState([]),[o,p]=b.useState(null),h=a("collection");b.useEffect(()=>{(async()=>{try{const m=await g5();r(m.data.collections)}catch(m){console.error("Failed to fetch collections:",m)}})()},[]),b.useEffect(()=>{},[]),b.useEffect(()=>{const u=n.find(m=>m.name===`${h}`);c((u==null?void 0:u.fields)||[])},[h,n]);const d=async u=>{var m,f;try{const v={collection:u.collection,keyToDelete:u.keyToDelete||void 0,idsTodelete:u.ids.split(",").map(_=>_.trim())},N=await x5(v);p({success:!0,message:N.data.message}),i()}catch(v){p({success:!1,message:((f=(m=v.response)==null?void 0:m.data)==null?void 0:f.message)||"Delete failed"})}};return e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"footer_input__Section",children:[e.jsx("div",{className:"profile_service_input__title",children:"Delete Data from Database "}),e.jsxs("form",{onSubmit:t(d),className:"space-y-4",children:[e.jsxs("div",{className:"display-flex-aic-jcsb margin_10_0",children:[e.jsx("label",{children:"Collection"}),e.jsxs("select",{...s("collection"),className:"w-full border p-2 rounded",required:!0,children:[e.jsx("option",{value:"",children:"Select collection"}),n==null?void 0:n.map(u=>e.jsx("option",{value:u.name,children:u.name},u.name))]})]}),e.jsxs("div",{className:"display-flex-aic-jcsb margin_10_0",children:[e.jsx("label",{className:"block mb-1 font-medium",children:"Key To Delete (optional)"}),e.jsxs("select",{...s("keyToDelete"),className:"w-full border p-2 rounded",children:[e.jsx("option",{value:"",children:"Use _id"}),l.map(u=>e.jsx("option",{value:u,children:u},u))]})]}),e.jsxs("div",{className:"display-flex-aic-jcsb margin_10_0",children:[e.jsx("label",{className:"block mb-1 font-medium",children:"IDs to delete (comma-separated)"}),e.jsx("textarea",{...s("ids"),rows:"3",required:!0,placeholder:"Enter ID(s) or value(s) to delete",className:"w-full border p-2 rounded"})]}),e.jsx("button",{type:"submit",className:"bg-red-600 text-white px-4 py-2 rounded hover:bg-red-700",children:"Delete"})]}),o&&e.jsx("div",{className:`mt-4 p-3 rounded ${o.success?"bg-green-100":"bg-red-100"}`,children:o.message})]})})})})},v6=()=>e.jsxs("div",{className:"mt-5 text-center",children:[e.jsx("div",{className:"footerTitleBg",children:e.jsx("p",{children:"Tickbig Extension Privacy Policy & Terms and Conditions"})}),e.jsxs("div",{className:"footerContent",children:[e.jsx("br",{}),e.jsxs("p",{className:"footerFrom",children:["Effective Date: ",e.jsx("span",{className:"footerDate",children:"22 August 2025"})]})," ",e.jsxs("p",{className:"footerFrom",children:["Last Updated: ",e.jsx("span",{className:"footerDate",children:"22 August 2025"})]})," ",e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"Introduction"}),e.jsxs("p",{className:"footerTextWhite",children:["Welcome to TickBig",e.jsx(is,{to:{pathname:"/"},className:"text-decoration-none footerNav",children:"www.tickbig.com"}),". This Privacy Policy and Terms & Conditions govern your use of our services, including the Agent Ambo – Smart Ap
154ply Chrome Extension. By accessing or using our services, you agree to be bound by the following terms and our policies."]}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"Privacy Policy"}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"1. Information We Collect"}),e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"Login credentials and account session details for platforms such as LinkedIn and Shine (used only for job applications). "}),e.jsx("li",{className:"footerTextWhite",children:"Personal details required to auto-fill application forms (name, email, resume details, etc.)."}),e.jsx("li",{className:"footerTextWhite",children:"Device and browser information required to operate the Smart Apply extension."}),e.jsx("br",{})]}),e.jsx("h4",{className:"footerTextWhite-header",children:"2. How We Use Your Information"}),e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"To auto-apply to jobs on your behalf via Smart Apply. "}),e.jsx("li",{className:"footerTextWhite",children:"To bypass repetitive job application forms for efficiency."}),e.jsx("li",{className:"footerTextWhite",children:"To provide and improve our services."}),e.jsx("br",{})]}),e.jsx("h4",{className:"footerTextWhite-header",children:"3. Data Security"}),e.jsx("p",{className:"footerTextWhite",children:"We use reasonable safeguards to protect your data. However, no method of transmission or storage is 100% secure, and we cannot guarantee absolute security."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"4. Sharing of Information"}),e.jsx("p",{className:"footerTextWhite",children:"We do not sell or share your personal information with third parties except when required by law or to deliver the intended services."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"5. Your Consent"}),e.jsx("p",{className:"footerTextWhite",children:"By using our Smart Apply feature, you consent to the collection and use of your data as outlined in this policy."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"6. Contact"}),e.jsx("p",{className:"footerTextWhite",children:"For questions regarding this Privacy Policy, please contact us at [email protected]."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"Terms & Conditions"}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"1. Eligibility"}),e.jsx("p",{className:"footerTextWhite",children:"You must be at least 18 years old and a paid subscriber of Agent Ambo Job Seeker features to use Smart Apply."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"2. Service Description"}),e.jsx("p",{className:"footerTextWhite",children:"Smart Apply is a Chrome extension that automates job applications on platforms like LinkedIn and Shine. Users must remain logged in on supported platforms. The service may attempt to auto-fill job forms, but accuracy cannot be guaranteed."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"3. Limitations"}),e.jsxs("ul",{className:"footerList",children:[e.jsx("li",{className:"footerTextWhite",children:"The extension may not work on some versions of Chrome or certain laptops. "}),e.jsx("li",{className:"footerTextWhite",children:"Mobile use is not supported."}),e.jsx("li",{className:"footerTextWhite",children:"Auto-filled details may not always be accurate."}),e.jsx("li",{className:"footerTextWhite",children:"Platforms (LinkedIn, Shine, etc.) may change their systems, affecting service availability."}),e.jsx("br",{})]}),e.jsx("h4",{className:"footerTextWhite-header",children:"4. Risks and Disclaimer"}),e.jsx("p",{className:"footerTextWhite",children:"Use of Smart Apply is at your own risk. Platforms may suspend or restrict your accounts due to bot-like activity, despite our best practices. TickBig is not responsible for such actions."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"5. Modifications"}),e.jsx("p",{className:"footerTextWhite",children:"We may add or remove platforms at any time without prior notice, even if you have paid for the service."}),e.jsx("br",{}),e.jsx("h4",{className:"footerTextWhite-header",children:"6. Governing Law"}),e.jsx("p",{className:"footerTextWhite",children:"These Terms are governed by the laws of India. Any disputes shall be subject to the exclusive jurisdiction of the courts in India."}),e.jsx("br",{}
154),e.jsx("h4",{className:"footerTextWhite-header",children:"7. Contact"}),e.jsx("p",{className:"footerTextWhite",children:"For any issues related to these Terms & Conditions, contact us at [email protected]."}),e.jsx("br",{}),e.jsx("br",{})]})]});function _6(){return e.jsxs("div",{className:"footerWrap",children:[e.jsx(wa,{}),e.jsx("div",{className:"footerMainWrap",children:e.jsx(v6,{})}),e.jsx(et,{})]})}const N6=()=>{var W,Q,ie,Y,pe,me,Ce,Ye,Xe,ue,Ae,Se,ve,J,D,$,re,oe,Re,Ze,Oe;const s=ts().clientId,{user:t}=G(Ne=>Ne.auth),[a,i]=b.useState(null),[n,r]=b.useState(null),[l,c]=b.useState(0),[o,p]=b.useState(!1),{gotoPreviousPage:h}=Be(),[d,u]=b.useState(!1),{successToast:m,errorToast:f}=he(),{errorHandle:v}=he(),N=ge(),{gotoConversation:_}=Be(),{serviceProviderChats:x,serviceProvider:j}=G(Ne=>Ne.ambo),{subscribedProvider:I,futureExpiryDate:w}=j,[y,k]=b.useState(!1),[S,g]=b.useState(!1),[E,C]=b.useState(null),{userDetails:T}=G(Ne=>Ne.auth),[A,R]=b.useState(null),[P,O]=b.useState(!1),M=()=>p(!1),[L,F]=b.useState(!1),[U,Z]=b.useState({open:!1,status:null}),ne=Ne=>{if(Ne&&Ne.stopPropagation&&Ne.stopPropagation(),!w||!I||!Wi(w)){u(!1),k(!0);return}u(!0),k(!1)},K=()=>{u(!1)},te=async Ne=>{if(!w||!I||!Wi(w)){f("Subscribe to place a bid"),u(!1);return}(await Bp(Ne,s,x[0]._id)).statusCode===Ke&&(setPlaced("Placed"),u(!1),m("Bid placed successfully"))};b.useEffect(()=>{(async()=>{try{const ze=await y5(s),Te=ze==null?void 0:ze.data;console.log("Fetched Request Data:",Te),i(Te),console.log(`Fetching data for request ID: ${s}`)}catch(ze){console.error("Error fetching data:",ze)}})()},[s]),b.useEffect(()=>{(()=>{var ze;if(a){if(console.log("Current srData:",a),a.inside.bids.length===0)console.log("No bids found for this service request."),r("Place Bid");else if(a.inside.bids.length>0){const Te=Math.min(...(ze=a.inside.bids)==null?void 0:ze.map(ns=>ns.bidAmount));c(Te??0);const es=a.inside.bids.find(ns=>ns.providerUserId===t);console.log("Existing bid found for user:",es),r(es||"Place Bid")}}})()},[a]);const q=b.useCallback(async()=>{var Ne,ze,Te,es;try{const ns=await xp(a==null?void 0:a._id,(Ne=x[0])==null?void 0:Ne._id,(es=(Te=(ze=x[0])==null?void 0:ze.inside)==null?void 0:Te.answers)==null?void 0:es.displayName);console.log(ns,"999999999"),p(!0)}catch(ns){v(ns)}},[I,a,x]),H=async Ne=>{try{let Te=await Hs({body:{userIds:[Ne,t],convoType:"SINGLE",convoStatus:"accepted"}}),{conversationData:es,conversations:ns}=Te==null?void 0:Te.data,be=es||ns[0];es&&N(qt(be));let ke=await Gs({conversationId:Ee(be==null?void 0:be._id)});const{messages:Le,totalPages:$e,currentPage:as,unseenNotifications:xs}=ke==null?void 0:ke.data;N(Us(Le,as,$e,be==null?void 0:be._id)),N(Ss(xs)),_(be==null?void 0:be._id)}catch(ze){v(ze)}},X=(W=a==null?void 0:a.inside)==null?void 0:W.userId,ee=()=>{if(n==="Place Bid")return e.jsx("button",{className:"footer-btn place",onClick:ne,children:"Place Bid"});switch(n==null?void 0:n.bidStatus){case"accepted":return e.jsx("p",{className:"footer-btn accepted",children:"Accepted"});case"pending":return e.jsx("p",{className:"footer-btn pending",children:"Pending"});default:return e.jsx("p",{className:"footer-btn pending",children:de(n==null?void 0:n.bidStatus)})}},se=async(Ne,ze=1,Te=10)=>{var es;try{return await tn(Ne)}catch(ns){const be=(es=ns.response)==null?void 0:es.status;if(be===400&&ze<Te)return new Promise(ke=>{setTimeout(async()=>{const Le=await se(Ne,ze+1,Te);ke(Le)},1e3)});
154throw be===400?new Error("Payment status is still pending after 10 seconds."):ns}},ae=async(Ne,ze)=>{var Te,es,ns,be;try{const ke=await se(Ne);(Te=ke==null?void 0:ke.data)!=null&&Te.orderDataSuccess?(g(!0),C((es=ke==null?void 0:ke.data)==null?void 0:es.orderDataSuccess),R(ze),O(!0),N(fo((be=(ns=ke==null?void 0:ke.data)==null?void 0:ns.orderDataSuccess)==null?void 0:be.createdAt)),m(ambo_new_payment_received)):(O(!1),f(ambp_payment_failed))}catch(ke){O(!1),f("Payment failed or timed out."),console.error("Error checking payment status:",ke.message)}},B=async()=>{var Ne,ze;try{const Te=await on("Provide Service",1),es={cartList:Te.data.products,amount:Te.data.totalAmount+Te.data.totalGst},ns=(T==null?void 0:T._id)||null,be=es.amount||0,ke=Lo(ns,be,"INR");Nt({eventName:"InitiateCheckout",eventId:ke,amount:be,currency:"INR"});const Le=await sn(es);if(Le){const $e=Le==null?void 0:Le.data,as=await rn($e,T);if(as&&as.paymentId){const xs=Fo(ns,be,"INR",as.paymentId,`Purchase_${as.razorpay_order_id}`);Nt({eventName:"Purchase",eventId:xs,amount:be,currency:"INR",orderId:as.paymentId}),F(!0);try{const ms=await an({razorpay_order_id:as.razorpay_order_id,razorpay_payment_id:as.razorpay_payment_id});((Ne=ms==null?void 0:ms.data)==null?void 0:Ne.status)==="Success"?await ae(as.razorpay_order_id,as.paymentId):Z({open:!0,status:((ze=ms==null?void 0:ms.data)==null?void 0:ze.status)||"Pending"})}catch(ms){console.error("Error checking payment status:",ms),Z({open:!0,status:"Pending"})}finally{F(!1)}}else O(!1),f(ambp_payment_failed)}}catch{O(!1),F(!1)}finally{window.location.reload()}};return e.jsxs("div",{children:[e.jsxs("div",{className:"ambo__tab-container display-flex-aic-jcsb",children:[e.jsxs("div",{className:"display-flex-aljc-center gap_10",children:[e.jsx("img",{src:Yn,onClick:h,alt:"backArr",className:"icon-hover profileArr cp"}),e.jsx("p",{className:"service_provider-card-secondary",children:"Clients"})]}),e.jsxs("div",{className:`display-flex-aic-jcsb ${n==="Place Bid"?"fullpage__placebid":"fullpage__placed"}`,children:[ee(),n==="Place Bid"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:Fp,alt:"message",className:"bid-img"})}),e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:Lp,alt:"message",className:"bid-img"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:cn,onClick:q,alt:"message",className:"bid-img"})}),e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:Ta,onClick:()=>H(X),alt:"message",className:"bid-img"})})]})]})]}),e.jsxs("div",{style:{padding:"10px"},children:[e.jsxs("div",{className:"fullpage__card2 display-flex-aic-jcsb bid_provider-fp",children:[e.jsxs("div",{className:"display-flex-aic-jcsb gap_10",children:[e.jsx(ss,{onClick:()=>{var Ne,ze;window.open(`/profile/${(ze=(Ne=a==null?void 0:a.inside)==null?void 0:Ne.userId)==null?void 0:ze.tickbigLink}`,"_blank")}}),e.jsxs("div",{children:[e.jsxs("p",{className:"cp service_provider-card-list",children:["Need ",(ie=(Q=a==null?void 0:a.inside)==null?void 0:Q.answers)==null?void 0:ie.serviceList]}),e.jsx("p",{className:"service_provider-card-category",children:(pe=(Y=a==null?void 0:a.inside)==null?void 0:Y.answers)==null?void 0:pe.fullName}),e.jsx("div",{className:"d-flex gap_10 mt-2",children:e.jsx("span",{className:"service_provider-card-posteddate",style:{fontSize:"14px"},children:ks(a==null?void 0:a.createdAt)})})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"display-flex-aic-jcsb bid_provider-fp-mini",children:[e.jsxs("div",{children:[e.jsx("label",{className:"service_provider-card-desc",children:"Minimum Bid"}),e.jsxs("p",{className:"bid-count",style:{fontSize:"16px"},children:[l,"rs"]})]}),e.jsx("span",{children:"|"}),e.jsxs("div",{children:[e.jsx("label",{className:"service_provider-card-desc ",children:"Total Bid"}),e.jsx("p",{className:"bid-count",style:{fontSize:"16px"},children:(Ce=(me=a==null?void 0:a.inside)==null?void 0:me.bids)==null?void 0:Ce.length})]})]}),n!=="Place Bid"&&e.jsxs(e.Fragment,{children:[(n==null?void 0:n.bidStatus)==="pending"&&e.jsxs("p",{className:"service_provider-fullpage-p",children:["Your bid amount:",e.jsxs("span",{className:"service_provider-fullpage-amt",children:[" ",n==null?void 0:n.bidAmount,"rs"]})]}),(n==null?void 0:n.bidStatus)==="accepted"&&e.jsxs("p",{className:"service_provider-fullpage-p",children:["Accepted bid amount:",e.jsxs("span",{className:"service_provider-fullpage-amt",children:[" ",n==null?void 0:n.bidAmount,"rs"]})]})]})]})]}),e.jsxs("div",{className:"fullpage__card2",children:[e.jsx("label",{className:"service_provider-card-category",children:(Xe=(Ye=a==null?void 0:a.inside)==null?void 0:Ye.answers
154)==null?void 0:Xe.serviceCategory}),e.jsxs("p",{variant:"body2",className:"recruiter_year mt-3",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Category :"})," ","",(Ae=(ue=a==null?void 0:a.inside)==null?void 0:ue.answers)==null?void 0:Ae.serviceList]}),e.jsxs("p",{variant:"body2",className:"recruiter_year mt-3",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Delivery Type :"})," ","",(ve=(Se=a==null?void 0:a.inside)==null?void 0:Se.answers)==null?void 0:ve.serviceDeliveredLocation]}),e.jsxs("p",{variant:"body2",className:"recruiter_year mt-3",children:[e.jsx("span",{className:"recruiter_hiring-exp recruiter_year",children:"Location :"})," ","",de((D=(J=a==null?void 0:a.inside)==null?void 0:J.answers)==null?void 0:D.location)]})]}),e.jsxs("div",{className:"fullpage__card2",children:[e.jsx("label",{children:"Description"}),e.jsx("p",{className:"bid-provider-view-fullpage-desc mt-2",children:(re=($=a==null?void 0:a.inside)==null?void 0:$.answers)==null?void 0:re.describeService})]})]}),e.jsx(Wp,{open:d,onClose:K,onSubmit:te}),e.jsx(dn,{open:o,handleClose:M,email:(Re=(oe=a==null?void 0:a.inside)==null?void 0:oe.answers)==null?void 0:Re.email,mobile:(Oe=(Ze=a==null?void 0:a.inside)==null?void 0:Ze.answers)==null?void 0:Oe.mobile}),e.jsx(Vp,{open:y,onClose:()=>k(!1),makingPayment:B}),E&&E.invoiceNumber&&P&&e.jsx(nn,{paymentId:A,order:E,showModal:P,setShowModal:O}),e.jsx(ka,{open:L,onClose:()=>F(!1)}),e.jsx(Ca,{open:U.open,status:U.status,onClose:()=>Z({open:!1,status:null})})]})},w6=s=>{try{const t=new URL(s);return["http:","https:"].includes(t.protocol)}catch{return!1}},S6=({providerData:s})=>{var n,r,l,c,o,p,h,d;console.log("providerData in ServiceProviderBidInfoCard:",s);const t=(r=(n=s==null?void 0:s.providerInfo)==null?void 0:n.inside)==null?void 0:r.answers,a=(c=(l=s==null?void 0:s.providerInfo)==null?void 0:l.inside)==null?void 0:c.userId,i=(o=s==null?void 0:s.providerInfo)==null?void 0:o.bidDetails;return e.jsx(e.Fragment,{children:e.jsxs(je,{container:!0,spacing:2,justifyContent:"start",mt:2,style:{padding:"0px 10px"},children:[e.jsx(je,{item:!0,xs:12,sm:6,md:6,lg:5,children:e.jsxs(Fs,{sx:{bgcolor:"#1E1E1E",borderRadius:"18px",border:"1px solid #4E4E4E",padding:"30px"},className:"provider-bidInfo__firstcard",children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"50px"},children:[e.jsx(ss,{src:a==null?void 0:a.avatar,variant:"rounded",sx:{height:"90px",width:"90px"},alt:a==null?void 0:a.firstName}),i!=null&&e.jsxs("div",{children:[e.jsx("p",{className:"bid-count-header",children:"Bid Amount :"}),e.jsxs("p",{className:"bid-count",style:{fontSize:"24px"},children:[i==null?void 0:i.bidAmount,"Rs"]})]})]}),e.jsx("p",{className:"service_info-name mt-2",style:{padding:"0px"},children:de(t==null?void 0:t.displayName)}),e.jsx("p",{className:"service_info-desgn mt-2",children:(p=t==null?void 0:t.businesscard)==null?void 0:p.designation}),e.jsx("p",{className:"service_info-category mt-2",children:t==null?void 0:t.category}),e.jsx("p",{className:"service_info-location mt-2",children:t==null?void 0:t.yourLocation}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Ep,alt:"contact"}),e.jsx("label",{className:"service_info-location",children:"Contacts"})]}),e.jsx("p",{className:"service_info-details mt-2",children:t==null?void 0:t.mobile}),e.jsx("p",{className:"service_info-details mt-2",children:t==null?void 0:t.email}),w6(t==null?void 0:t.showcaseLink)&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Ip,alt:"link"}),e.jsx("label",{className:"service_info-location",children:"Portfolio Link"})]}),e.jsx("p",{className:"mt-2",children:e.jsx("a",{className:"service-link",href:t.showcaseLink,target:"_blank",rel:"noopener noreferrer",children:"View Portfolio"})})]})]})}),e.jsx(je,{item:!0,xs:12,sm:6,md:6,lg:6,children:e.jsx(Fs,{sx:{height:"515px",bgcolor:"#1E1E1E",borderRadius:"18px",border:"1px solid #4E4E4E",padding:"30px",marginBottom:"80px"},children:e.jsxs("div",{className:"ambo_custom__Scroll",style:{height:"430px"},children:[e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Pp,alt:"specialization"}),e.jsx("label",{className:"service_info-location",children:"Specializations"})]}),e.jsx("div",{className:"selected-locations",style:{flexWrap:"wrap",justifyContent:"unset"}
154,children:(h=t==null?void 0:t.serviceCategory)==null?void 0:h.map((u,m)=>e.jsx("span",{className:"location-chip",children:u},m))}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Tp,alt:"level"}),e.jsx("label",{className:"service_info-location",children:"Experience Level"})]}),e.jsx("p",{className:"service_info-ans mt-2",children:t==null?void 0:t.expertiseLevel}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Rp,alt:"work"}),e.jsx("label",{className:"service_info-location",children:"Work Mode"})]}),e.jsx("p",{className:"service_info-ans mt-2",children:t==null?void 0:t.serviceOfferMode}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Mp,alt:"pricing"}),e.jsx("label",{className:"service_info-location",children:"Pricing"})]}),e.jsxs("p",{className:"service_info-ans mt-2",children:[t==null?void 0:t.pricingMin," - ",t==null?void 0:t.pricingMax," "]}),e.jsxs("div",{className:"mt-2",style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("img",{src:Ap,alt:"location"}),e.jsx("label",{className:"service_info-location",children:"Location Availability"})]}),e.jsx("div",{className:"selected-locations",style:{justifyContent:"unset",flexWrap:"wrap"},children:(d=t==null?void 0:t.serviceOfferLocation)==null?void 0:d.map((u,m)=>e.jsx("span",{className:"location-chip",children:u},m))})]})})})]})})},k6=()=>{var x,j,I;const{ridpid:s}=ts();console.log("URL PARAM:",s);const t=s.split("-"),a=t[0],i=t[1],{user:n,userDetails:r}=G(w=>w.auth),{myAmboChats:l}=G(w=>w.ambo),[c,o]=b.useState([]),{gotoPreviousPage:p,gotoConversation:h}=Be(),d=ge(),{errorHandle:u}=he(),[m,f]=b.useState("pending");console.log(m,"ssssssssss"),b.useEffect(()=>{try{(async()=>{var k,S,g;const y=await K4(i,a);console.log("Provider Info Response:",y),o(y.data),f((g=(S=(k=y.data)==null?void 0:k.providerInfo)==null?void 0:S.bidDetails)==null?void 0:g.bidStatus)})()}catch(w){console.log(w)}},[i,l]);const v=async w=>{try{let k=await Hs({body:{userIds:[w,n],convoType:"SINGLE",convoStatus:"accepted"}}),{conversationData:S,conversations:g}=k==null?void 0:k.data,E=S||g[0];S&&d(qt(E));let C=await Gs({conversationId:Ee(E==null?void 0:E._id)});const{messages:T,totalPages:A,currentPage:R,unseenNotifications:P}=C==null?void 0:C.data;d(Us(T,R,A,E==null?void 0:E._id)),d(Ss(P)),h(E==null?void 0:E._id)}catch(y){u(y)}},N=(I=(j=(x=c==null?void 0:c.providerInfo)==null?void 0:x.inside)==null?void 0:j.userId)==null?void 0:I._id,_=async w=>{var k,S;w&&w.stopPropagation&&w.stopPropagation(),(await acceptBidService(a,(S=(k=c==null?void 0:c.providerInfo)==null?void 0:k.bidDetails)==null?void 0:S._id,r==null?void 0:r.username)).status===STATUS_200&&(f("accepted"),successToast("Bid accepted successfully"))};return e.jsxs("div",{className:"ambo__tab-container",children:[e.jsxs("div",{className:"ambo__tab-container display-flex-aic-jcsb bid_provider-top-container",children:[e.jsxs("div",{className:"display-flex-aljc-center gap_10",children:[e.jsx("img",{src:Yn,onClick:p,alt:"backArr",className:"icon-hover profileArr cp"}),e.jsx("p",{className:"service_provider-card-secondary",children:"Bids"})]}),e.jsxs("div",{className:"bid_provider-top",children:[e.jsx("div",{className:"msg-img-container",children:e.jsx("img",{src:Ta,alt:"message",className:"bid-img",onClick:()=>v(N)})}),m!=null&&e.jsx("button",{className:"footer-btn place",disabled:m==="accepted",onClick:_,children:m==="accepted"?"Accepted":"Accept"})]})]}),e.jsx(S6,{providerData:c})]})},C6=async()=>z.get(bu).then(s=>s.data).catch(s=>{throw s}),T6=async({resumeData:s})=>z.put(bu,{resumeData:s}).then(t=>t.data).catch(t=>{throw t}),I6=async({resumeType:s})=>z.post(Mb,{resumeType:s}).then(t=>t.data).catch(t=>{throw t}),A6=async s=>z.post(Pb,s,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>t.data).catch(t=>{throw t}),E6=async({resumeData:s,jdData:t})=>z.post(Rb,{resumeData:s,jdData:t}).then(a=>a.data).catch(a=>{throw a}),Hp=async({resumeData:s,section:t,improvePromt:a,index:i})=>z.post(Lb,{resumeData:s,section:t,improvePromt:a,index:i}).then(n=>n.data).catch(n=>{throw n}),M6=async()=>z.get(Fb).then(s=>s.data).catch(s=>{throw s}),kn="/assets/star%201-CSXkPUZe.svg";function P6({isOpen:s,onClose:t,reset:a,watchedValues:i,setIsFormDirty:n,onCreditsUsed:r,credits:l=0,onInsufficientCredits:c}){const o=b.useRef(null),[p,h]=b.useState(null),{successToast:d,warningToast:u}=he(),[m,f]=b.useState(!1),v=()=>{var x;(x=o.current)==null||x.click()},N=x=>{var w;const j=(w=x.target.files)==null?void 0:w[0];if(!j)return;if(!["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(j.t
154ype)){u("Please upload PDF, DOC, or DOCX file"),x.target.value="";return}h(j)},_=async()=>{if(!p){u("Please select a resume first");return}if(l<=0){c();return}f(!0);try{console.log("Uploading:",p);const x=new FormData;x.append("resume",p);const j=await A6(x);console.log(j,"parse resume response");const I=j.data.structuredResume||{};Array.isArray(I.workExperience)&&(I.workExperience=I.workExperience.map(y=>({...y,responsibilities:Array.isArray(y.responsibilities)?y.responsibilities.filter(Boolean).join(" "):y.responsibilities||""})));const w={...i,...I};a(w),n(!0),r&&r(),t()}catch(x){console.error(x)}finally{f(!1)}};return e.jsx(qe,{open:s,onClose:t,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.4)",backdropFilter:"blur(2px)"}},children:e.jsx("div",{className:"upload-modal-container",children:e.jsxs("div",{className:"upload-modal-content",children:[e.jsx("button",{className:"upload-modal-close",onClick:t,children:e.jsx(ps,{fontSize:"small"})}),e.jsx("h2",{className:"upload-modal-title",children:"Import Your Resume"}),e.jsx("p",{className:"upload-modal-subtitle",children:"Upload your resume and we'll automatically fill your details."}),e.jsxs("div",{className:"upload-dropzone",onClick:v,children:[e.jsx(sd,{className:"upload-dropzone-icon"}),e.jsx("div",{className:"upload-dropzone-text",children:"Click to upload resume"}),e.jsx("div",{className:"upload-dropzone-subtext",children:"PDF, DOC, or DOCX"}),p&&e.jsx("div",{className:"upload-selected-file",children:p.name}),e.jsx("input",{ref:o,type:"file",hidden:!0,accept:".pdf,.doc,.docx",onChange:N})]}),e.jsxs("div",{className:"upload-modal-actions",children:[e.jsx("button",{className:"upload-btn-cancel",onClick:t,children:"Cancel"}),e.jsx("button",{className:"upload-btn-parse",onClick:_,disabled:!p||m,children:m?e.jsx(jn,{size:20,style:{color:"#ffffff"}}):e.jsxs(e.Fragment,{children:["Parse Resume",e.jsx("span",{style:{margin:"0 8px",opacity:.5},children:"|"}),e.jsx("img",{src:kn,alt:"",style:{width:16,height:16,verticalAlign:"middle"}})," ",zs.IMPORT_RESUME]})})]})]})})})}const Js=s=>{if(!s)return null;if(typeof s=="string")return s.trim()?e.jsx("p",{className:"resume-paragraph",children:s}):null;if(Array.isArray(s)){const t=s.filter(a=>a?typeof a=="string"?a.trim().length>0:!0:!1);return t.length===0?null:e.jsx("ul",{className:"resume-list",children:t.map((a,i)=>e.jsx("li",{children:typeof a=="object"?Js(a):a},i))})}if(typeof s=="object"){const t=Object.entries(s).filter(([a,i])=>i?typeof i=="string"?i.trim().length>0:Array.isArray(i)?i.some(n=>typeof n=="string"?n.trim().length>0:!!(n!=null&&n.value||n)):!0:!1);return t.length===0?null:e.jsx("div",{className:"resume-object",children:t.map(([a,i])=>e.jsxs("div",{className:"resume-field",children:[e.jsx("strong",{className:"resume-field-title",children:R6(a)}),Array.isArray(i)?e.jsx("ul",{className:"resume-list",children:i.filter(n=>typeof n=="string"?n.trim().length>0:!!(n!=null&&n.value||n)).map((n,r)=>e.jsx("li",{children:typeof n=="object"?Js(n.value||n):n},r))}):e.jsx("p",{className:"resume-paragraph",children:i})]},a))})}return null},R6=s=>{var t;return(t=s==null?void 0:s.replace(/([A-Z])/g," $1"))==null?void 0:t.replace(/^./,a=>a.toUpperCase())},Ii=s=>{if(!s)return{};try{return JSON.parse(s)}catch(t){return console.error("Failed to parse saved resume from localStorage:",t),{}}};function L6({isOpen:s,onClose:t,sectionName:a,currentContent:i,contentIndex:n,fieldName:r,reset:l,credits:c=0,onInsufficientCredits:o,onCreditsUsed:p}){var E;const{user:h}=G(C=>C.auth),[d,u]=b.useState(""),[m,f]=b.useState(null),[v,N]=b.useState(!1),[_,x]=b.useState(!1),j=b.useRef(null),{warningToast:I}=he(),w=localStorage.getItem(`resumeData-${h}`);b.useEffect(()=>{s&&(u(""),f(null),N(!1))},[s]),b.useEffect(()=>{m&&j.current&&j.current.scrollIntoView({behavior:"smooth",block:"start"})},[m]);const y=typeof i=="string"?i.trim().length>0:!!i,k=async()=>{var R,P,O,M,L;if(!d.trim()){I("Please enter a prompt.");return}const C=(R=zs==null?void 0:zs.IMPROVE_RESUME_SECTION)==null?void 0:R[r];if(typeof c=="number"&&c<C){o&&o(),t&&t();return}let T=i;if(r==="projects"){const U=((P=Ii(w)[r])==null?void 0:P[n])||{};T={technologies:U.technologies,projectResponsibility:U.projectResponsibility,outcome:U.outcome}}const A=F=>F==null?!0:typeof F=="string"?F.trim().length===0:Array.isArray(F)?F.length===0:typeof F=="object"?Object.values(F).every(A):!1;A(T)&&(T=Ii(w));try{x(!0);const F=await Hp({resumeData:T,section:r,improvePromt:d,index:n});if(console.log(F,"res"),F.data.changed){let U=F.data.parsedData;r==="workExperience"&&(Array.isArray(U)?U=U.map(Z=>typeof Z=="object"?Z.value||JSON.stringify(Z):String(Z)).filter(
154Boolean).join(" "):typeof U=="object"&&U!==null&&(Array.isArray(U.responsibilities)?U=U.responsibilities.join(" "):typeof U.responsibilities=="string"?U=U.responsibilities:U=Object.values(U).filter(Boolean).join(" "))),f(U),N(!1)}else N(!0),f(null);p&&p(typeof F.data.creditsRemaining=="number"?F.data.creditsRemaining:void 0)}catch(F){console.error(F);const U=((M=(O=F==null?void 0:F.response)==null?void 0:O.data)==null?void 0:M.message)||(F==null?void 0:F.message)||"",Z=(L=F==null?void 0:F.response)==null?void 0:L.status;Z===400||Z===402||Z===403||U.toLowerCase().includes("credit")||U.toLowerCase().includes("insufficient")?(o&&o(),t&&t()):I(U||"Failed to improve section")}finally{x(!1)}},S=()=>{if(v||!m)return;console.log(m,"result=result");const C=Ii(w);if(console.log(r,n,"fieldName, contentIndex",C),r==="professionalSummary")C[r]=m;else if(r==="workExperience"){let T="";Array.isArray(m)?T=m.map(A=>typeof A=="object"?(A==null?void 0:A.value)||JSON.stringify(A):String(A)).filter(Boolean).join(" "):typeof m=="object"&&m!==null?Array.isArray(m.responsibilities)?T=m.responsibilities.join(" "):typeof m.responsibilities=="string"?T=m.responsibilities:T=Object.values(m).filter(Boolean).join(" "):T=String(m||""),C[r]=C[r]||[],C[r][n]={...C[r][n]||{},responsibilities:T.trim()}}else C[r]=C[r]||[],C[r][n]={...C[r][n]||{},...m,projectResponsibility:(m.projectResponsibility||[]).map(T=>typeof T=="string"?{value:T}:T)};console.log(C[r]),l(C),t()},g=()=>e.jsx(e.Fragment,{children:y?e.jsxs("div",{className:"improve-current-section",children:[e.jsx("label",{className:"improve-modal-label",children:"Current Version"}),e.jsx("div",{className:`improve-current-box ${m?"content-text current":""}`,children:i})]}):e.jsxs("div",{className:"improve-no-content-alert",children:[e.jsx("strong",{children:"No content yet."})," Tell AI how you'd like to improve your resume."]})});return e.jsx(qe,{open:s,onClose:t,BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.4)",backdropFilter:"blur(2px)"}},children:e.jsx("div",{className:"improve-modal-container",children:e.jsxs("div",{className:"improve-modal-content",style:{maxHeight:"90vh",overflowY:"auto",scrollBehavior:"smooth",borderRadius:"20px"},children:[e.jsx("button",{className:"improve-modal-close",onClick:t,children:e.jsx(ps,{fontSize:"small"})}),e.jsxs("div",{className:"improve-modal-header",children:[e.jsx(gt,{className:"improve-modal-title-icon"}),e.jsxs("div",{children:[e.jsx("h2",{className:"improve-modal-title",children:"Improve with AI"}),e.jsxs("p",{className:"improve-modal-subtitle",style:{marginTop:"6px"},children:["Enhancing: ",a]})]})]}),e.jsx(g,{}),!m&&!v&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"improve-modal-label",style:{marginTop:"24px",display:"block"},children:"How would you like AI to improve this?"}),e.jsx("textarea",{className:"improve-modal-textarea",placeholder:"Example: Make it more professional and ATS-friendly",value:d,onChange:C=>u(C.target.value),style:{minHeight:"110px",resize:"vertical"}}),e.jsxs("div",{className:"improve-modal-actions",style:{marginTop:"24px",justifyContent:"flex-end",gap:"12px"},children:[e.jsx("button",{className:"improve-btn-cancel",onClick:t,children:"Cancel"}),e.jsxs("button",{className:"improve-btn-generate",onClick:()=>k(),disabled:_,style:{opacity:_?.7:1,cursor:_?"not-allowed":"pointer"},children:[e.jsx(gt,{className:"btn-icon-small"}),_?"Generating...":e.jsxs(e.Fragment,{children:["Generate with AI",e.jsx("span",{style:{margin:"0 8px",opacity:.5},children:"|"}),e.jsx("img",{src:kn,alt:"",style:{width:16,height:16,verticalAlign:"middle"}})," ",((E=zs==null?void 0:zs.IMPROVE_RESUME_SECTION)==null?void 0:E[r])??0]})]})]})]}),!m&&v&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"improve-current-section",style:{marginTop:"28px"},children:e.jsx("div",{className:"improve-current-box",style:{border:"1px solid #f5d98b",background:"#fffbeb",borderRadius:"18px",padding:"22px",lineHeight:1.8},children:e.jsxs("div",{className:"improve-no-content-alert",children:[e.jsx("strong",{children:"Already optimized."})," The AI could not further improve this section with your prompt, so no changes were made and"," ",e.jsx("strong",{children:"no credit was deducted"}),". Try a different prompt to get a new suggestion."]})})}),e.jsx("div",{className:"improve-modal-actions",style:{marginTop:"28px",justifyContent:"flex-end",alignItems:"center"},children:e.jsx("button",{className:"improve-btn-cancel",onClick:t,children:"Keep Original"})})]}),m&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"improve-current-section",style:{marginTop:"28px"},children:[e.jsx("label",{className:"improve-modal-label",style:{fontSize:"18px",fontWeight:600,color:"#16a34a",marginBottom:"10px",display:"block"},children:"AI Suggestion"}),e.jsx("div",{className:"improve-current-box",style:{border:"1px solid #b7ebc2",background:"#f0fdf4",borderRadius:"18px",padding:"22px",lineHeight:1.8},children:Js(m)})]}),e.jsxs("div",{className:"improve-modal-actions",style:{marginTop:"28px",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("button",{className:"improve-btn-cancel",onClick:()=>{N(!1),f(null)},children:"Try Again"}),e.jsxs("div",{style:{display:"flex",gap:"12px"},children:[e.jsx("button",{className:"improve-btn-cancel",onClick:t,children:"Keep Original"}),e.jsxs("button",{className:"improve-btn-generate",onClick:()=>S(),style:{background:"#16a34a"},children:[e.jsx(gt,{className:"btn-icon-small"}),"Accept Suggestion"]})]})]})]})]})})})}function F6({isOpen:s,onClose:t,reset:a,watchedValues:i,setValue:n,setIsFormDirty:r,onCreditsUsed:l,credits:c=0,onInsufficientCredits:o}){var P,O;const[p,h]=b.useState("input"),[d,u]=b.useState(""),[m,f]=b.useState(null),[v,N]=b.useState(null),[_,x]=b.useState({});Object.values(_).some(M=>M===!0);const j=M=>
154{var Z,ne,K,te,q,H,X;const L=(ee,se)=>{const ae=B=>B==null?"":typeof B=="string"?B.trim().toLowerCase():Array.isArray(B)?B.map(ae).filter(Boolean).join(" | "):typeof B=="object"?B.value!==void 0?ae(B.value):B.skillName!==void 0?ae(B.skillName):Object.keys(B).sort().map(W=>ae(B[W])).join(" | "):String(B).trim().toLowerCase();return ae(ee)===ae(se)},F=[],U={};if(i.professionalSummary||M!=null&&M.professionalSummary){const ee=((Z=i.professionalSummary)==null?void 0:Z.trim())||"",se=(M==null?void 0:M.professionalSummary)||"";if(se){const ae=L(ee,se);F.push({id:"professionalSummary",title:"Professional Summary",current:Js(ee),suggested:Js(se),isSame:ae}),ae||(U.professionalSummary=!0)}}if((((ne=i.skills)==null?void 0:ne.length)>0||((K=M==null?void 0:M.skills)==null?void 0:K.length)>0)&&((te=M==null?void 0:M.skills)==null?void 0:te.length)>0){Array.isArray(M.skills)&&(M.skills=M.skills.slice(0,10));const ee=i.skills?i.skills.map(B=>{var W;return typeof B=="string"?B.trim():(W=B.skillName)==null?void 0:W.trim()}).filter(Boolean).join(", "):"",se=M.skills.map(B=>{var W;return typeof B=="string"?B.trim():(W=B.skillName)==null?void 0:W.trim()}).filter(Boolean).join(", "),ae=L(ee,se);F.push({id:"skills",title:"Skills",current:Js(ee),suggested:Js(se),isSame:ae}),ae||(U.skills=!0)}return(q=i.workExperience)==null||q.forEach((ee,se)=>{var ae,B;if(ee.role||ee.company||ee.responsibilities){const W=(ae=M==null?void 0:M.workExperience)==null?void 0:ae[se];if(!W)return;const Q=Array.isArray(ee.responsibilities)?ee.responsibilities.map(pe=>{var me;return typeof pe=="string"?pe.trim():((me=pe==null?void 0:pe.value)==null?void 0:me.trim())||""}).filter(Boolean).join(" "):typeof ee.responsibilities=="string"?ee.responsibilities.trim():"",ie=((B=W.responsibilities)==null?void 0:B.join(" "))||"",Y=L(Q,ie);F.push({id:`workExperience${se}`,title:`${se+1}. Experience`,current:Js(Q),suggested:Js(ie),isSame:Y}),Y||(U[`workExperience${se}`]=!0)}}),(H=i.projects)==null||H.forEach((ee,se)=>{var me,Ce;const ae=(me=M==null?void 0:M.projects)==null?void 0:me[se];if(!ae)return;const B={technologies:ee.technologies,projectResponsibility:ee.projectResponsibility,outcome:ee.outcome},W=(Ce=ae.projectResponsibility)==null?void 0:Ce.map(Ye=>typeof Ye=="string"?Ye:(Ye==null?void 0:Ye.value)||""),Q={technologies:ae.technologies,projectResponsibility:W,outcome:ae.outcome},ie=Js(B),Y=Js(Q),pe=L(B,Q);F.push({id:`projects${se}`,title:`${se+1}. Key Projects`,current:ie,suggested:Y,isSame:pe}),pe||(U[`projects${se}`]=!0)}),(X=i.achievements)==null||X.forEach((ee,se)=>{var ie;const ae=ee.achievementDescription||ee.achievementTitle,B=(ie=M==null?void 0:M.achievements)==null?void 0:ie[se];if(!B)return;const W=B.achievementDescription||B.achievementTitle,Q=L(ae,W);F.push({id:`achievements${se}`,title:`${se+1}. Achievements`,current:Js(ae),suggested:Js(W),isSame:Q}),Q||(U[`achievements${se}`]=!0)}),x(ee=>({...U,...ee})),F},I=async()=>{if(c<zs.UPDATE_RESUME_FOR_JD){o&&o();return}h("loading");try{const M=await E6({resumeData:i,jdData:d});M.data||alert("Ai not working => matchResumeToJobDescription");const L=M.data.response;N(L.resumeData);const F=j(L.resumeData);f({currentScore:L.oldResumeScore??55,optimizedScore:L.newResumeScore??89,impacts:L.impacts||{},suggestions:F}),h("results"),l&&l()}catch(M){console.error(M),h("input")}},w=()=>{h("input"),u(""),f(null),x({}),t()},y=()=>{const M=structuredClone(i);Object.entries(_).forEach(([L,F])=>{var U,Z;if(F)if(L==="professionalSummary")M.professionalSummary=v.professionalSummary;else if(L==="skills")M.skills=v.skills;else{const ne=L.match(/^([a-zA-Z]+)(\d+)$/);if(ne){const[,K,te]=ne,q=Number(te),H=(U=v==null?void 0:v[K])==null?void 0:U[q];if(H!==void 0){let ee={...((Z=M[K])==null?void 0:Z[q])||{},...H};K==="projects"&&Array.isArray(ee.projectResponsibility)&&(ee.projectResponsibility=ee.projectResponsibility.map(se=>typeof se=="string"?{value:se}:se)),K==="workExperience"&&Array.isArray(ee.responsibilities)&&(ee.responsibilities=ee.responsibilities.map(se=>typeof se=="string"?se:(se==null?void 0:se.value)||"").filter(Boolean).join(" ")),M[K][q]=ee}}}}),a(M),r(!0),w()},k=()=>{const M={...i,...v,personalDetails:i.personalDetails||v.personalDetails||{},workExperience:(v.workExperience||i.workExperience||[]).map(L=>({...L,responsibilities:Array.isArray(L.responsibilities)?L.responsibilities.map(F=>
154typeof F=="string"?F:(F==null?void 0:F.value)||"").filter(Boolean).join(" "):L.responsibilities||""})),projects:(v.projects||i.projects||[]).map(L=>({...L,projectResponsibility:Array.isArray(L.projectResponsibility)?L.projectResponsibility.map(F=>typeof F=="string"?{value:F}:F):L.projectResponsibility}))};a(M),r(!0),w()},S=M=>{const L={};return Object.entries(M).forEach(([F,U])=>{const Z=F.match(/^([a-zA-Z]+)(\d+)$/);if(Z){const[,ne,K]=Z,te=Number(K);L[ne]||(L[ne]=[]),L[ne][te]=U}else L[F]=U}),L},g=b.useMemo(()=>Object.values(_).some(L=>L===!0)?dv({oldResumeScore:m==null?void 0:m.currentScore,newResumeScore:m==null?void 0:m.optimizedScore,impacts:m==null?void 0:m.impacts,selected:S(_)}):(m==null?void 0:m.optimizedScore)??0,[m==null?void 0:m.currentScore,m==null?void 0:m.optimizedScore,m==null?void 0:m.impacts,_]),[E,C]=b.useState(null),T=M=>M==null?"":Array.isArray(M)?M.map(L=>typeof L=="string"?L:(L==null?void 0:L.value)||"").filter(Boolean).join(" ").trim():typeof M=="object"?Array.isArray(M.responsibilities)?T(M.responsibilities):typeof M.responsibilities=="string"?M.responsibilities.trim():Object.values(M).filter(Boolean).join(" ").trim():String(M).trim(),A=async(M,L)=>T(M)!==T(L),R=async(M,L="improve",F=null)=>{var ne,K,te;const U=M.replace(/\d+$/,""),Z=zs.IMPROVE_RESUME_SECTION[U];if(c<Z){o&&o();return}C(M);try{console.log("tryAgainFn",M,L,F,U);const q=await Hp({resumeData:i,section:U,improvePromt:L,index:F});let H=structuredClone(v);const X=q.data;if(console.log(U,"=>",X,"result from improveResumeSectionService"),F!==null)if(U==="workExperience"){if(await A(X==null?void 0:X.parsedData,(ne=H[U][F])==null?void 0:ne.responsibilities)){let W="";const Q=X==null?void 0:X.parsedData;Array.isArray(Q)?W=Q.map(ie=>typeof ie=="object"?ie.value||JSON.stringify(ie):String(ie)).filter(Boolean).join(" "):typeof Q=="object"&&Q!==null?Array.isArray(Q.responsibilities)?W=Q.responsibilities.join(" "):typeof Q.responsibilities=="string"?W=Q.responsibilities:W=Object.values(Q).filter(Boolean).join(" "):W=String(Q||""),H[U][F]={...H[U][F],responsibilities:[W.trim()]}}}else U==="projects"?H[U][F]={...H[U][F],...X==null?void 0:X.parsedData,projectResponsibility:(K=X.parsedData)!=null&&K.projectResponsibility?X.parsedData.projectResponsibility.map(B=>typeof B=="string"?{value:B}:B):(te=H[U][F])==null?void 0:te.projectResponsibility}:U==="achievements"&&(H[U][F]={...H[U][F],...X==null?void 0:X.parsedData});else["professionalSummary","skills"].includes(U)?H[U]=X==null?void 0:X.parsedData:H[U]=X;console.log("oldAiResult",H),N(H);const ee=j(H);f(B=>({...B,suggestions:ee}));const se=ee.find(B=>B.id===M),ae=se?!se.isSame:!0;l&&ae&&l()}catch(q){console.error("Error in tryAgainFn:",q)}finally{C(null)}};return b.useEffect(()=>{console.log("aiResult changed",v)},[v]),e.jsx(qe,{open:s,onClose:w,BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.4)",backdropFilter:"blur(2px)"}},children:e.jsxs("div",{className:`job-modal-container ${p==="results"?"results-mode":""}`,children:[e.jsx("button",{className:"job-modal-close",onClick:w,children:e.jsx(ps,{fontSize:"small"})}),e.jsxs("div",{className:"job-modal-content",children:[e.jsx("h2",{className:"job-modal-title",children:"Optimize for Job"}),e.jsx("p",{className:"job-modal-subtitle",children:"Paste the job description and we'll tailor your resume to match."}),p==="input"&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"job-modal-label",children:"Job Description"}),e.jsx("textarea",{className:"job-modal-textarea",placeholder:"Paste the complete job description here...",value:d,onChange:M=>u(M.target.value)}),e.jsxs("div",{className:"job-modal-actions",children:[e.jsx("button",{className:"job-btn-cancel",onClick:w,children:"Cancel"}),e.jsxs("button",{className:"job-btn-analyze",onClick:I,disabled:!d.trim(),children:["Analyze & Match",e.jsx("span",{style:{margin:"0 8px",opacity:.5},children:"|"}),e.jsx("img",{src:kn,alt:"",style:{width:16,height:16,verticalAlign:"middle"}})," ",zs.UPDATE_RESUME_FOR_JD]})]})]}),p==="loading"&&e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px"},children:[e.jsx(jn,{size:40,style:{color:"#05C168",marginBottom:"16
154px"}}),e.jsx("p",{style:{color:"#6B7280",fontSize:"15px"},children:"Analyzing your resume against the job description..."})]}),p==="results"&&m&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"match-analysis-card",children:[e.jsx("h3",{className:"match-analysis-title",children:"Match Analysis"}),e.jsxs("div",{className:"match-score-comparison",children:[e.jsxs("div",{className:"score-block",children:[e.jsx("span",{className:"score-label",children:"Current Score"}),e.jsxs("span",{className:"score-value score-value--current",children:[m.currentScore,"%"]})]}),e.jsx("div",{className:"score-arrow",children:e.jsx(R0,{})}),e.jsxs("div",{className:"score-block",children:[e.jsx("span",{className:"score-label",children:"Optimized Score"}),e.jsxs("span",{className:"score-value score-value--optimized",children:[g,"%"]})]})]}),g>m.currentScore&&e.jsxs("div",{className:"score-improvement",children:[e.jsx(L0,{fontSize:"small"}),e.jsxs("span",{children:["+",g-m.currentScore," Improvement"]})]}),((P=m.missingKeywords)==null?void 0:P.length)>0&&e.jsxs("div",{className:"missing-keywords-section",children:[e.jsxs("div",{className:"missing-keywords-title",children:[e.jsx(F0,{fontSize:"small"}),"Missing Keywords"]}),e.jsx("div",{className:"keywords-list",children:m.missingKeywords.map((M,L)=>e.jsx("span",{className:"keyword-pill",children:M},L))})]})]}),e.jsxs("div",{className:"ai-suggestions-header",children:[e.jsx(gt,{fontSize:"small"}),"AI Suggestions"]}),e.jsx("div",{className:"ai-suggestions-list",children:m.suggestions.map((M,L)=>{const F=_[M.id]===!0;return e.jsxs("div",{className:`suggestion-card ${F?"suggestion-card--accepted":""}`,children:[e.jsxs("div",{className:"suggestion-card-header",children:[e.jsx("div",{className:"suggestion-card-title",children:M.title}),e.jsx("div",{className:"suggestion-card-actions",children:F?e.jsxs(e.Fragment,{children:[e.jsx("button",{className:"suggestion-action-btn btn-accept",onClick:()=>x(U=>({...U,[M.id]:!1})),title:"Accepted",children:e.jsx(td,{fontSize:"small"})}),e.jsx("button",{className:"suggestion-action-btn btn-reject",onClick:()=>x(U=>({...U,[M.id]:!1})),title:"Remove",children:e.jsx(ps,{fontSize:"small"})})]}):e.jsx("button",{className:"suggestion-action-btn btn-unselected",onClick:()=>x(U=>({...U,[M.id]:!0})),title:"Select"})})]}),M.current&&e.jsxs("div",{className:"suggestion-content-box",children:[e.jsx("div",{className:"content-label",children:"Current:"}),e.jsx("div",{className:"content-text current",children:M.current})]}),e.jsxs("div",{className:"suggestion-content-box",children:[e.jsxs("div",{className:"content-label",children:["Suggested:",F&&e.jsxs("span",{className:"accepted-label",children:[e.jsx(Xc,{fontSize:"small"}),"Applied"]})]}),e.jsx("div",{className:"content-text suggested",children:M.suggested})]}),!M.isSame&&e.jsx("button",{className:"improve-btn-cancel",disabled:E===M.id,onClick:()=>R(M.id,d,M.id.match(/\d+/)?parseInt(M.id.match(/\d+/)[0]):null),children:E===M.id?e.jsx(jn,{size:16,style:{color:"#05C168"}}):e.jsxs(e.Fragment,{children:["Try Again",e.jsx("span",{style:{margin:"0 8px",opacity:.5},children:"|"}),e.jsx("img",{src:kn,alt:"",style:{width:14,height:14,verticalAlign:"middle"}})," ",zs.IMPROVE_RESUME_SECTION[M.id.replace(/\d+$/,"")]??0]})})]},M.id)})})]})]}),p==="results"&&e.jsxs("div",{className:"job-modal-footer",children:[e.jsx("button",{className:"job-btn-outline",onClick:()=>h("input"),children:"Edit Manually"}),((O=m==null?void 0:m.suggestions)==null?void 0:O.length)>0&&m.suggestions.every(M=>_[M.id]===!0)?e.jsx("button",{className:"job-btn-primary",onClick:k,children:"Apply All Suggestions"}):e.jsx("button",{className:"job-btn-primary",onClick:y,children:"Apply Selected"})]})]})})}function B6({reset:s,watchedValues:t,setValue:a,isFormDirty:i,setIsFormDirty:n,credits:r,onInsufficientCredits:l,onCreditsUsed:c}){const[o,p]=b.useState(!1),[h,d]=b.useState(!1),u=()=>{if(r<zs.IMPORT_RESUME){l();return}p(!0)},m=()=>{if(r<zs.UPDATE_RESUME_FOR_JD){l();return}d(!0)};return e.jsxs("div",{className:"smart-tools-container",children:[e.jsxs("div",{className:"smart-tools-left",children:[e.jsxs("div",{className:"smart-tools-header",children:[e.jsx(gt,{className:"smart-tools-icon"}),e.jsx("span",{className:"smart-tools-title",children:"TickBig AI Tools"})]}),e.jsx("div",{children:e.jsxs("div",{className:"smart-tools-right",children:[e.jsxs("button",{type:"button",className:"smart-tool-btn",onClick:u,children:[e.jsx(sd,{className:"btn-icon"}),e.jsx("span",{children:"Auto-fill from resume"})]}),e.jsxs("button",{type:"button",className:"smart-tool-btn",onClick:m,children:[e.jsx(B0,{className:"btn-icon"}),e.jsx("span",{children:"Match with job description"})]})]})})]}),e.jsx(P6,{isOpen:o,onClose:()=>p(!1),reset:s,watchedValues:t,setIsFormDirty:n,onCreditsUsed:c,credits:r,onInsufficientCredits:l}),e.jsx(F6,{isOpen:h,onClose:()=>d(!1),reset:s,watchedValues:t,setValue:a,setIsFormDirty:n,onCreditsUsed:c,credits:r,onInsufficientCredits:l})]})}const na=s=>{if(!s)return!0;const t=new Date;return t.setHours(0,0,0,0),new Date(s)<=t||"Date cannot be in the future"},Ai=(s,t)=>{if(!s||!t)return!0;const a=new Date(s),i=new Date(t);return isNaN(a.getTime())||isNaN(i.getTime())?!0:a>=i||"End date cannot be before start date"};gs(ad)(({theme:s})=>({"& .MuiSwitch-switchBase.Mui-checked":{color:"#00c853","&:hover":{backgroundColor:"rgba(0, 200, 83, 0.08)"}},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#00c853"}}));function O6({setResumeData:s,userUniqueId:t,isFormDirty:a,setIsFormDirty:i,onRegisterTrigger:n,oldImage:r,setOldImage:l,setCompletionScore:c,credits:o,onInsufficientCredits:p,onCreditsUsed:h}){var Ae,Se,ve;const{user:d}=G(J=>J.auth),{successToast:u,warningToast:m,errorToast:f,errorHandle:v}=he(),N=localStorage.getItem(`resumeData-${d}`),{control:_,watch:x,reset:j,setValue:I,trigger:w,formState:{isDirty:y}}=Qe({mode:"onChange",defaultValues:N?JSON.parse(N):{personalDetails:{fullName:"",jobTitle:"",location:"",email:"",ph
154one:"",tickbigURL:"",linkedinUrl:"",avatar:""},professionalSummary:"",workExperience:[],projects:[],education:[],certifications:[],achievements:[]}}),k=x(),S=(J,D,$)=>{if($||!J||!D)return;const re=new Date(J),oe=new Date(D);isNaN(re.getTime())||isNaN(oe.getTime())||oe<re&&m("End date cannot be before start date.")},g=b.useMemo(()=>cv(k),[k]);b.useEffect(()=>{c(g.score.percentage)},[g,c]);const[E,C]=b.useState(localStorage.getItem("resume_template_type")||"paidv1"),[T,A]=b.useState(!1),[R,P]=b.useState(""),[O,M]=b.useState(""),[L,F]=b.useState(null),[U,Z]=b.useState(""),ne=(J,D="",$=null,re)=>{P(J),M(D),F($),Z(re),A(!0)},K=(J,D="",$=null,re)=>{if(o<zs.IMPROVE_RESUME_SECTION[re]){p&&p();return}ne(J,D,$,re)},te=()=>{A(!1),h()},q=Bs({control:_,name:"skills"}),H=Bs({control:_,name:"workExperience"}),X=Bs({control:_,name:"projects"}),ee=Bs({control:_,name:"education"}),se=Bs({control:_,name:"certifications"}),ae=Bs({control:_,name:"achievements"}),B=J=>J?new Date(J).getFullYear():"",W=J=>{const D=$=>{if(!$)return"";const re=new Date($);return isNaN(re.getTime())?"":re.toISOString().split("T")[0]};return J==null?void 0:J.map($=>({role:$.role,company:$.company,startYear:D($.startYear),endYear:$.isPresent?"":D($.endYear),isPresent:$.isPresent,responsibilities:Array.isArray($.responsibilities)?$.responsibilities.join(" "):$.responsibilities||""}))},Q=J=>{const D=$=>{if(!$)return"";const re=new Date($);return isNaN(re.getTime())?"":re.toISOString().split("T")[0]};return J==null?void 0:J.map($=>({role:$.designation,company:$.companyName,startYear:D($.startMonth),endYear:D($.endMonth),isPresent:$.currentlyWorking||!$.endMonth,responsibilities:Array.isArray($.responsibilities)?$.responsibilities.join(" "):$.responsibilities||""}))},ie=J=>{const D=$=>{if(!$)return"";const re=new Date($);return isNaN(re.getTime())?"":re.toISOString().split("T")[0]};return J==null?void 0:J.map($=>({degree:$.degree,institution:$.institution,startYear:D($.startYear),endYear:$.isPresent?"":D($.endYear),isPresent:$.isPresent}))},Y=J=>{const D=$=>{if(!$)return"";const re=new Date($);return isNaN(re.getTime())?"":re.toISOString().split("T")[0]};return J==null?void 0:J.map($=>({name:$.name,company:$.company,technologies:$.technologies,projectResponsibility:($.projectResponsibility||[]).map(re=>typeof re=="string"?{value:re}:re).concat([{value:""},{value:""},{value:""},{value:""},{value:""}]).slice(0,Math.max(5,($.projectResponsibility||[]).length)),outcome:$.outcome,startDate:D($.startDate),endDate:$.isCurrent?"":D($.endDate),isCurrent:$.isCurrent}))},pe=J=>J==null?void 0:J.map(D=>({degree:D.qualification,institution:D.collegeName,startYear:B(D.startYear),endYear:B(D.endYear),isPresent:!1})),me=J=>{if(!J)return Array.from({length:5},()=>({value:""}));let D=J.replace(/<\/?[^>]+(>|$)/g,"");D=D.replace(/\n+/g," "),D=D.replace(/\s+/g," ").trim();const $=D.split(/\.|•|;/).map(re=>re.trim()).filter(re=>re.length>0).map(re=>({value:re}));return[...$,...Array.from({length:5},()=>({value:""}))].slice(0,Math.max(5,$.length))},Ce=J=>J==null?void 0:J.map(D=>({name:D.projectName,company:D.companyName,technologies:"",projectResponsibility:me(D.projectResponsibility),outcome:"",startDate:"",endDate:"",isCurrent:!1})),Ye=J=>J==null?void 0:J.map(D=>({skillName:D.skillName})),Xe=J=>J==null?void 0:J.map(D=>({name:D.name,issuingOrganization:D.issuingOrganization,issueDate:D.issueDate}));b.useEffect(()=>{N||(async()=>{var D,$,re,oe,Re,Ze,Oe,Ne,ze,Te,es,ns,be,ke,Le,$e,as,xs,ms,ls,tt,Ge,Ms,Vs,$t,Aa,Ea,Ma,Pa;try{const Rt=(await C6()).data;if(console.log("Fetched profile/resume data:",Rt),Rt.resume){const Pe=Rt.resume;l((D=Pe.personalDetails)==null?void 0:D.avatar),j({personalDetails:{avatar:(($=Pe.personalDetails)==null?void 0:$.avatar)||"",fullName:((re=Pe.personalDetails)==null?void 0:re.fullName)||"",jobTitle:((oe=Pe.personalDetails)==null?void 0:oe.jobTitle)||"",location:((Re=Pe.personalDetails)==null?void 0:Re.location)||"",email:((Ze=Pe.personalDetails)==null?void 0:Ze.email)||"",phone:((Oe=Pe.personalDetails)==null?void 0:Oe.phone)||"",tickbigURL:(Ne=Pe.personalDetails)!=null&&Ne.tickbigURL?Pe.personalDetails.tickbigURL.startsWith("http")?Pe.personalDetails.tickbigURL:`https://tickbig.com/profile/${Pe.personalDetails.tickbigURL}`:"",linkedinUrl:((ze=Pe.personalDetails)==null?void 0:ze.linkedinUrl)||""},professionalSummary:Pe.professionalSummary||"",skills:((Te=Pe.skills)==null?void 0:Te.length)>
1540?Ye(Pe.skills||[]):[],workExperience:((es=Pe.workExperience)==null?void 0:es.length)>0?W(Pe.workExperience):[{role:"",company:"",startYear:"",endYear:"",isPresent:!1,responsibilities:""}],projects:((ns=Pe.projects)==null?void 0:ns.length)>0?Y(Pe.projects):[{name:"",company:"",technologies:"",projectResponsibility:[{value:""},{value:""},{value:""},{value:""},{value:""}],outcome:"",startDate:"",endDate:"",isCurrent:!1}],education:((be=Pe.education)==null?void 0:be.length)>0?ie(Pe.education):[{degree:"",institution:"",startYear:"",endYear:"",isPresent:!1}],certifications:((ke=Pe.certifications)==null?void 0:ke.length)>0?Xe(Pe.certifications||[]):[{name:"",issuingOrganization:"",issueDate:""}],achievements:((Le=Pe.achievements)==null?void 0:Le.length)>0?Pe.achievements.map(Qs=>({achievementTitle:Qs.achievementTitle||"",achievementDescription:Qs.achievementDescription||""})):[{achievementTitle:"",achievementDescription:""}]});return}if(Rt.profile){const Pe=Rt.profile;console.log(Pe,"PROFILE ACHIEVEMENTS"),j({personalDetails:{avatar:(($e=Pe==null?void 0:Pe.user)==null?void 0:$e.avatar)||"",fullName:de((((as=Pe==null?void 0:Pe.user)==null?void 0:as.firstName)||"")+" "+(((xs=Pe==null?void 0:Pe.user)==null?void 0:xs.lastName)||""))||"",jobTitle:((ms=Pe==null?void 0:Pe.businesscard)==null?void 0:ms.designation)||"",location:((tt=(ls=Pe==null?void 0:Pe.businesscard)==null?void 0:ls.address)==null?void 0:tt.city)||"",email:((Ge=Pe==null?void 0:Pe.user)==null?void 0:Ge.email)||"",phone:((Ms=Pe==null?void 0:Pe.user)==null?void 0:Ms.mobile)||"",tickbigURL:Pe!=null&&Pe.tickbigLink?Pe.tickbigLink.startsWith("http")?Pe.tickbigLink:`https://tickbig.com/profile/${Pe.tickbigLink}`:"",linkedinUrl:((Vs=Pe==null?void 0:Pe.socialLink)==null?void 0:Vs.LinkedinLink)||""},professionalSummary:(($t=Pe==null?void 0:Pe.about)==null?void 0:$t.aboutDescription)||"",skills:((Aa=Pe.topSkills)==null?void 0:Aa.length)>0?Ye(Pe.topSkills||[]):[],workExperience:((Ea=Pe.experience)==null?void 0:Ea.length)>0?Q(Pe.experience):[{role:"",company:"",startYear:"",endYear:"",isPresent:!1,responsibilities:""}],projects:((Ma=Pe.project)==null?void 0:Ma.length)>0?Ce(Pe.project):[{name:"",company:"",technologies:"",projectResponsibility:[{value:""},{value:""},{value:""},{value:""},{value:""}],outcome:"",startDate:"",endDate:"",isCurrent:!1}],education:((Pa=Pe.education)==null?void 0:Pa.length)>0?pe(Pe.education):[{degree:"",institution:"",startYear:"",endYear:"",isPresent:!1}],certifications:[{name:"",issuingOrganization:"",issueDate:""}],achievements:Array.isArray(Pe==null?void 0:Pe.achievements)?Pe.achievements.map(Qs=>({achievementTitle:String((Qs==null?void 0:Qs.achievementTitle)||""),achievementDescription:String((Qs==null?void 0:Qs.achievementDescription)||"")})):[]});return}console.warn("No profile or resume data returned from API")}catch(Ra){console.error("Error fetching profile/resume:",Ra)}})()},[j,t,d]),b.useEffect(()=>{const J=x(D=>{var re;const $={...D,projects:(re=D.projects)==null?void 0:re.map(oe=>({...oe,projectResponsibility:(oe.projectResponsibility||[]).map(Re=>typeof Re=="string"?{value:Re}:Re||{value:""}).filter(Re=>Re.value&&Re.value.trim()!==""),startDate:oe.startDate,endDate:oe.isCurrent?null:oe.endDate}))};s($)});return()=>J.unsubscribe()},[x,s]),b.useEffect(()=>{s(x())},[]),b.useEffect(()=>{typeof i=="function"&&i(y)},[y,i]),b.useEffect(()=>{typeof n=="function"&&n(w)},[w,n]);const ue=J=>{console.log("Image change event:",J);const D=J.target.files[0];if(!D)return;if(!$n(D.size,2)){m("File size exceeds the limit of 2 MB"),J.target.value="";return}const re=new FileReader;re.onloadend=()=>{I("personalDetails.avatar",re.result,{shouldDirty:!0})},re.readAsDataURL(D)};return b.useEffect(()=>{window.resetFormAfterSave=()=>{j(x())}},[j,x]),e.jsxs(e.Fragment,{children:[e.jsxs("form",{className:"space-y-6",children:[e.jsx(B6,{reset:j,watchedValues:k,setValue:I,isFormDirty:a,setIsFormDirty:i,credits:o,onInsufficientCredits:p,onCreditsUsed:h}),e.jsxs(Lt,{title:"Personal Details",dark:!0,children:[E==="paidv1"&&e.jsxs("div",{className:"profile-image-section",children:[e.jsx("div",{className:"profile-image-container",children:x("personalDetails.avatar")?e.jsx("img",{src:x("personalDetails.avatar"),alt:"Profile",className:"profile-image-preview"}):e.jsx("div",{className:"profile-image-placeholder",children:e.jsx(nd,{sx:{fontSize:40,color:"#9ca3af"}})})}),e.jsxs("div",{className:"profile-image-info",children:[e.jsx("label",{className:"profile-image-label",children:"Profile image"}),e.jsx("button",{type:"button",className:"btn-change-photo",onClick:()=>document.getElementById("profile-image-input").click(),children:"ChangePhoto"}),e.jsx("input",{id:"profile-image-input",type:"file",hidden:!0,accept:"image/*",onChange:J=>ue(J)}),e.jsx("label",{className:"label-resume",children:"Supported: JPG, JPEG, PNG (Max 2 MB)"})]})]}),e.jsxs("div",{className:"grid-cols-1",children:[e.jsx(hs,{name:"personalDetails.fullName",label:"Full Name",control:_,dark:!0,placeholder:"John Doe",rules:{required:"Full name is required",minLength:{value:3,message:"Minimum 3 characters required"},pattern:{value:/^[A-Za-z\s]+$/,message:"Only letters and spaces allowed"},maxLength:{value:120,message:"Maximum 120 characters allowed"}}}),e.jsx(hs,{name:"personalDetails.jobTitle",label:"Job Title",control:_,dark:!0,placeholder:"Senior Softw
154are Engineer",rules:{required:"Job title is required",minLength:{value:2,message:"Minimum 2 characters required"}},restrictNumbers:!0}),e.jsxs("div",{className:"grid-cols-2 gap-4",children:[e.jsx(hs,{name:"personalDetails.phone",label:"Phone",control:_,dark:!0,placeholder:"9876543210",rules:{required:"Phone number is required",pattern:{value:/^[0-9+\-\s]{10}$/,message:"Enter valid phone number (10 digits)"}}}),e.jsx(hs,{name:"personalDetails.email",label:"Email",control:_,dark:!0,placeholder:"[email protected]",rules:{required:"Email is required",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Enter valid email address"}}})]}),e.jsx(hs,{name:"personalDetails.location",label:"Location",control:_,dark:!0,placeholder:"San Francisco, CA",restrictNumbers:!0,rules:{maxLength:{value:100,message:"Maximum 100 characters allowed"}}}),e.jsx(hs,{name:"personalDetails.tickbigURL",label:"Tickbig URL",control:_,dark:!0,placeholder:"johndoe.com",rules:{pattern:{value:/^(https?:\/\/)?(www\.)?.+$/,message:"Enter valid URL"}}}),e.jsx(hs,{name:"personalDetails.linkedinUrl",label:"LinkedIn URL",control:_,dark:!0,placeholder:"linkedin.com/in/johndoe",rules:{pattern:{value:/^(https?:\/\/)?(www\.)?linkedin\.com\/.*$/,message:"Enter valid LinkedIn URL"}}})]})]}),e.jsx(Lt,{title:"Professional Summary",dark:!0,actionNode:e.jsxs("button",{type:"button",className:"improve-ai-btn",onClick:()=>{K("Professional Summary",x("professionalSummary"),null,"professionalSummary")}
154,children:[e.jsx(gt,{className:"improve-ai-icon",fontSize:"small"})," Improve with AI"]}),children:e.jsx(xe,{name:"professionalSummary",control:_,render:({field:J})=>{var D;return e.jsxs(e.Fragment,{children:[e.jsx("textarea",{...J,className:"form-textarea dark",placeholder:"Experienced software engineer with 8+ years building scalable web applications...",maxLength:500}),e.jsxs("div",{className:"form-helper-container",children:[e.jsx("span",{className:"helper-text",children:"Highlight impact and metrics"}),e.jsxs("span",{className:"char-counter",children:[(D=J.value||"")==null?void 0:D.length,"/500"]})]})]})}})}),e.jsxs(Lt,{title:"Skills",dark:!0,children:[e.jsx("div",{className:"section-subtitle",children:"Add your skills (maximum 10)"}),e.jsx("div",{className:"space-y-3",children:q.fields.map((J,D)=>e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"w-full",children:e.jsx(xe,{name:`skills.${D}.skillName`,control:_,rules:{required:"Skill name is required",maxLength:{value:30,message:"Maximum 30 characters allowed"}},render:({field:$,fieldState:re})=>e.jsxs(e.Fragment,{children:[e.jsx("input",{...$,type:"text",placeholder:`Skill ${D+1}`,className:`form-input w-full dark ${re.error?"error-border":""}`,onBlur:oe=>{$.onBlur(),oe.target.value.trim()||q.remove(D)},maxLength:25}),re.error&&e.jsx("span",{className:"error-text",children:re.error.message})]})})})},J.id))}),((Ae=q.fields)==null?void 0:Ae.length)<10&&e.jsx("button",{type:"button",onClick:()=>q.append({skillName:""}),className:"btn-add-full",children:"+ Add Skill"})]}),e.jsxs(Lt,{title:"Work Experience",dark:!0,children:[e.jsx("div",{className:"space-y-4",children:H.fields.map((J,D)=>e.jsxs("div",{className:"sub-card dark space-y-4",children:[e.jsxs("div",{className:"sub-card-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",className:"improve-ai-btn",onClick:()=>{const $=x(`workExperience.${D}`),re=($==null?void 0:$.responsibilities)||"";K(`${D+1}. Experience - Key Responsibilities & Achievements`,re,D,"workExperience")},children:e.jsx(gt,{className:"improve-ai-icon",fontSize:"small"})}),e.jsxs("div",{className:"sub-card-title",children:[e.jsx(Xi,{}),"New Position"]})]}),e.jsx("button",{type:"button",onClick:()=>H.remove(D),className:"btn-delete",children:e.jsx(sa,{fontSize:"small"})})]}),e.jsxs("div",{className:"grid-cols-2 gap-4",children:[e.jsx(hs,{name:`workExperience.${D}.role`,label:"Role",placeholder:"Senior Software Engineer",control:_,dark:!0,restrictNumbers:!0}),e.jsx(hs,{name:`workExperience.${D}.company`,label:"Company",placeholder:"Tech Corp",control:_,dark:!0,restrictNumbers:!0})]}),e.jsxs("div",{className:"grid-cols-1 gap-4",children:[e.jsx(hs,{name:`workExperience.${D}.startYear`,label:"Start Date",type:"date",control:_,dark:!0,rules:{validate:na},onValueChange:$=>{w(`workExperience.${D}.endYear`),S($,x(`workExperience.${D}.endYear`),x(`workExperience.${D}.isPresent`))}}),e.jsxs("div",{className:"grid-cols-1",children:[e.jsxs("div",{className:"flex justify-between items-center mt-2",children:[e.jsx("label",{className:"form-label dark",style:{marginBottom:"0px"},children:"End Date"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(xe,{name:`workExperience.${D}.isPresent`,control:_,render:({field:$})=>e.jsx("input",{type:"checkbox",className:"form-checkbox",checked:!!$.value,onChange:re=>{$.onChange(re.target.checked),re.target.checked&&I(`workExperience.${D}.endYear`,"",{shouldValidate:!0})}})}),e.jsx("span",{className:"form-label dark",style:{fontSize:"11px",whiteSpace:"nowrap",marginBottom:"0px"},children:"Currently Working"})]})]}),e.jsx(hs,{name:`workExperience.${D}.endYear`,type:"date",control:_,dark:!0,disabled:x(`workExperience.${D}.isPresent`),rules:{validate:{notFuture:$=>x(`workExperience.${D}.isPresent`)||na($),afterStart:$=>x(`workExperience.${D}.isPresent`)||Ai($,x(`workExperience.${D}.startYear`))}},onValueChange:$=>S(x(`workExperience.${D}.startYear`),$,x(`workExperience.${D}.isPresent`))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"form-label dark",children:"Key Responsibilities & Achievements"}),e.jsx(xe,{name:`workExperience.${D}.responsibilities`,control:_,render:({field:$})=>e.jsx("textarea",{...$,rows:4,className:"form-textarea dark",placeholder:`• Developed automated testing suites...
155• Collaborated with UX designers...`})})]})]},J.id))}),e.jsxs("button",{type:"button",onClick:()=>H.append({responsibilities:""}),className:"btn-add-full",children:[e.jsx(ta,{fontSize:"small"})," Add Experience"]})]}),e.jsxs(Lt,{title:"Key Projects",dark:!0,children:[e.jsx("div",{className:"space-y-4",children:X.fields.map((J,D)=>e.jsxs("div",{className:"sub-card dark space-y-4",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",className:"improve-ai-btn",onClick:()=>{var Ne,ze;const $=x(`projects.${D}`),re=$==null?void 0:$.technologies,oe=(ze=(Ne=$==null?void 0:$.projectResponsibility)==null?void 0:Ne.map(Te=>typeof Te=="object"?Te==null?void 0:Te.value:Te))==null?void 0:ze.filter(Te=>typeof Te=="string"&&Te.trim().length>0),Re=$==null?void 0:$.outcome,Oe=re||oe&&oe.length>0||Re?e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[re&&e.jsxs("div",{children:[e.jsx("strong",{children:"Technologies:"})," ",re]}),oe&&oe.length>0&&e.jsxs("div",{children:[e.jsx("strong",{children:"Summary:"}),e.jsx("ul",{style:{paddingLeft:"20px",margin:"4px 0 0 0",listStyleType:"disc"},children:oe.map((Te,es)=>e.jsx("li",{children:Te},es))})]}),Re&&e.jsxs("div",{children:[e.jsx("strong",{children:"Outcome/impact:"})," ",Re]})]}):"";K(`${D+1}. Key Projects`,Oe,D,"projects")},children:e.jsx(gt,{className:"improve-ai-icon",fontSize:"small"})}),e.jsx("div",{className:"sub-card-title"})]}),e.jsx("button",{type:"button",onClick:()=>X.remove(D),className:"btn-delete",style:{position:"absolute",top:"24px",right:"24px"},children:e.jsx(sa,{fontSize:"small"})})]}),e.jsx(hs,{name:`projects.${D}.name`,label:"Project Name",placeholder:"E-commerce Platform",control:_,dark:!0,restrictNumbers:!0}),e.jsx(hs,{name:`projects.${D}.company`,label:"Company Name",placeholder:"Enter company name",control:_,dark:!0,restrictNumbers:!0}),e.jsx(hs,{name:`projects.${D}.technologies`,label:"Technologies",placeholder:"Enter technology",control:_,dark:!0}),e.jsxs("div",{className:"",children:[e.jsx(hs,{name:`projects.${D}.startDate`,label:"Start Date",type:"date",control:_,dark:!0,rules:{validate:na},onValueChange:$=>{w(`projects.${D}.endDate`),S($,x(`projects.${D}.endDate`),x(`projects.${D}.isCurrent`))}}),e.jsxs("div",{className:"grid-cols-1",children:[e.jsxs("div",{className:"flex justify-between items-center mt-2",children:[e.jsx("label",{className:"form-label dark",style:{marginBottom:"0px"},children:"End Date"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(xe,{name:`projects.${D}.isCurrent`,control:_,render:({field:$})=>e.jsx("input",{type:"checkbox",className:"form-checkbox",checked:!!$.value,onChange:re=>
155{$.onChange(re.target.checked),re.target.checked&&I(`projects.${D}.endDate`,"",{shouldValidate:!0})}})}),e.jsx("span",{className:"form-label dark",style:{fontSize:"11px",whiteSpace:"nowrap",marginBottom:"0px"},children:"Currently Projects"})]})]}),e.jsx(hs,{name:`projects.${D}.endDate`,type:"date",control:_,dark:!0,disabled:x(`projects.${D}.isCurrent`),rules:{validate:{notFuture:$=>x(`projects.${D}.isCurrent`)||na($),afterStart:$=>x(`projects.${D}.isCurrent`)||Ai($,x(`projects.${D}.startDate`))}},onValueChange:$=>S(x(`projects.${D}.startDate`),$,x(`projects.${D}.isCurrent`))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"form-label dark",children:"Summary"}),e.jsx("div",{className:"bullet-points-container gap-2",style:{display:"flex",flexDirection:"column"},children:(x(`projects.${D}.projectResponsibility`)||J.projectResponsibility||[]).map(($,re,oe)=>e.jsxs("div",{className:"bullet-input-wrapper flex items-center gap-2",children:[e.jsx("div",{className:"bullet-dot"}),e.jsx("div",{className:"flex-1",children:e.jsx(hs,{name:`projects.${D}.projectResponsibility.${re}.value`,placeholder:`Bullet point ${re+1}`,control:_,dark:!0})}),re!==oe.length-1&&e.jsx("button",{type:"button",onClick:()=>{const Re=x(`projects.${D}.projectResponsibility`)||[];if(Re.length>1){const Ze=[...Re];Ze.splice(re,1),I(`projects.${D}.projectResponsibility`,Ze,{shouldDirty:!0,shouldTouch:!0})}},className:"btn-delete",style:{padding:"8px",minWidth:"40px",height:"40px",borderRadius:"8px",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(sa,{fontSize:"small",color:"error"})}),re===oe.length-1&&e.jsx("button",{type:"button",onClick:()=>{const Re=x(`projects.${D}.projectResponsibility`)||[];I(`projects.${D}.projectResponsibility`,[...Re,{value:""}],{shouldDirty:!0,shouldTouch:!0})},style:{padding:"8px",minWidth:"40px",height:"40px",borderRadius:"8px",backgroundColor:"#00d084",color:"white",border:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:e.jsx(ta,{fontSize:"small"})})]},re))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"form-label dark",children:"Outcome / Impact"}),e.jsx(xe,{name:`projects.${D}.outcome`,control:_,render:({field:$})=>e.jsx("textarea",{...$,rows:3,className:"form-textarea dark",placeholder:"Increased conversion rate by 25%..."})})]})]},J.id))}),e.jsxs("button",{type:"button",onClick:()=>X.append({name:"",company:"",technologies:"",projectResponsibility:[{value:""},{value:""},{value:""},{value:""},{value:""}],outcome:"",startDate:"",endDate:"",isCurrent:!1}),className:"btn-add-full",children:[e.jsx(ta,{fontSize:"small"})," Add Project"]})]}),e.jsxs(Lt,{title:"Education",dark:!0,children:[e.jsx("div",{className:"space-y-4",children:ee.fields.map((J,D)=>e.jsxs("div",{className:"sub-card dark space-y-4",children:[e.jsxs("div",{className:"sub-card-header",children:[e.jsx("div",{className:"sub-card-title",children:"Degree"}),e.jsx("button",{type:"button",onClick:()=>ee.remove(D),className:"btn-delete",children:e.jsx(sa,{fontSize:"small"})})]}),e.jsx(hs,{name:`education.${D}.degree`,placeholder:"Bachelor of Science in Computer Science",control:_,dark:!0,restrictNumbers:!0}),e.jsx(hs,{name:`education.${D}.institution`,label:"Institution",placeholder:"Stanford University",control:_,dark:!0,restrictNumbers:!0}),e.jsxs("div",{className:"grid-cols-1 gap-4",children:[e.jsx(hs,{name:`education.${D}.startYear`,label:"Start Date",type:"date",control:_,dark:!0,rules:{validate:na},onValueChange:$=>{w(`education.${D}.endYear`),S($,x(`education.${D}.endYear`),x(`education.${D}.isPresent`))}}),e.jsxs("div",{className:"grid-cols-1",children:[e.jsxs("div",{className:"flex justify-between items-center mt-2",children:[e.jsx("label",{className:"form-label dark",style:{marginBottom:"0px"},children:"End Date"}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(xe,{name:`education.${D}.isPresent`,control:_,render:({field:$})=>e.jsx("input",{type:"checkbox",className:"form-checkbox",checked:!!$.value,onChange:re=>
155{$.onChange(re.target.checked),re.target.checked&&I(`education.${D}.endYear`,"",{shouldValidate:!0})}})}),e.jsx("span",{className:"form-label dark",style:{fontSize:"11px",whiteSpace:"nowrap",marginBottom:"0px"},children:"Currently Studying"})]})]}),e.jsx(hs,{name:`education.${D}.endYear`,type:"date",control:_,dark:!0,disabled:x(`education.${D}.isPresent`),rules:{validate:{notFuture:$=>x(`education.${D}.isPresent`)||na($),afterStart:$=>x(`education.${D}.isPresent`)||Ai($,x(`education.${D}.startYear`))}},onValueChange:$=>S(x(`education.${D}.startYear`),$,x(`education.${D}.isPresent`))})]})]})]},J.id))}),e.jsxs("button",{type:"button",onClick:()=>ee.append({degree:"",institution:"",startYear:"",endYear:"",isPresent:!1}),className:"btn-add-full",children:[e.jsx(ta,{fontSize:"small"})," Add Education"]})]}),e.jsxs(Lt,{title:"Achievements",dark:!0,children:[e.jsx("div",{className:"space-y-4",children:(Se=ae==null?void 0:ae.fields)==null?void 0:Se.map((J,D)=>e.jsxs("div",{className:"sub-card dark space-y-4",children:[e.jsxs("div",{className:"sub-card-header",children:[e.jsxs("div",{className:"sub-card-title",children:[D+1,". Achievement"]}),e.jsx("button",{type:"button",onClick:()=>ae.remove(D),className:"btn-delete",children:e.jsx(sa,{fontSize:"small"})})]}),e.jsx(hs,{name:`achievements.${D}.achievementTitle`,placeholder:"Achievement Title",control:_,dark:!0,restrictNumbers:!0}),e.jsx("div",{className:"grid-cols-1",children:e.jsx(xe,{name:`achievements.${D}.achievementDescription`,control:_,render:({field:$})=>e.jsx("textarea",{...$,rows:2,className:"form-textarea dark",placeholder:"Short Description",style:{minHeight:"70px",borderRadius:"12px"}})})})]},J.id))}),e.jsxs("button",{type:"button",onClick:()=>ae.append({achievementTitle:"",achievementDescription:""}),className:"btn-add-full",children:[e.jsx(ta,{fontSize:"small"})," Add Achievement"]})]}),e.jsxs(Lt,{title:"Certifications",dark:!0,children:[e.jsx("div",{className:"space-y-4",children:(ve=se==null?void 0:se.fields)==null?void 0:ve.map((J,D)=>e.jsxs("div",{className:"sub-card dark space-y-4",children:[e.jsxs("div",{className:"sub-card-header",children:[e.jsxs("div",{className:"sub-card-title",children:[D+1,". Certificate"]}),e.jsx("button",{type:"button",onClick:()=>se.remove(D),className:"btn-delete",children:e.jsx(sa,{fontSize:"small"})})]}),e.jsx(hs,{name:`certifications.${D}.name`,placeholder:"AWS Certified Solutions Architect",control:_,dark:!0,restrictNumbers:!0}),e.jsxs("div",{className:"grid-cols-2 gap-4",children:[e.jsx(hs,{name:`certifications.${D}.issuingOrganization`,placeholder:"Amazon Web Services",control:_,dark:!0,restrictNumbers:!0}),e.jsx(hs,{name:`certifications.${D}.issueDate`,type:"number",minLength:4,maxLength:4,min:1970,max:new Date().getFullYear(),placeholder:"2024",control:_,dark:!0})]})]},J.id))}),e.jsxs("button",{type:"button",onClick:()=>se.append({name:"",issuingOrganization:"",issueDate:""}),className:"btn-add-full",children:[e.jsx(ta,{fontSize:"small"})," Add Certification"]})]})]}),e.jsx(L6,{isOpen:T,onClose:te,sectionName:R,fieldName:U,currentContent:O,contentIndex:L,reset:j,credits:o,onInsufficientCredits:p,onCreditsUsed:h})]})}function Lt({title:s,children:t,add:a,toggle:i,actionNode:n,dark:r=!1}){return e.jsxs("section",{className:`form-section ${r?"dark":""}`,children:[e.jsxs("div",{className:"flex justify-between items-center",style:{marginBottom:"16px"},children:[e.jsx("h2",{className:`section-title ${r?"dark":""}`,style:{margin:0},children:s}),e.jsxs("div",{className:"flex items-center gap-4",children:[n&&e.jsx("div",{children:n}),a&&e.jsx("button",{type:"button",onClick:a,className:"btn-link",children:"+ Add"}),i&&e.jsx("div",{className:"section-toggle",children:i})]})]}),e.jsx("div",{children:t})]})}const U6=s=>{if(!s)return"";const t=s instanceof Date?s:new Date(s);return isNaN(t.getTime())?"":t.toISOString().split("T")[0]};function hs({name:s,label:t,placeholder:a="",type:i="text",control:n,rules:r={},className:l="",dark:c=!1,disabled:o=!1,restrictNumbers:p=!1,onValueChange:h}){return e.jsxs("div",{className:`grid-cols-1 ${l}
155`,children:[t&&e.jsx("label",{className:`form-label ${c?"dark":""} mt-2`,children:t}),e.jsx(xe,{name:s,control:n,rules:r,render:({field:d,fieldState:u})=>{const m=i==="date"?{...d,value:U6(d.value)}:{...d};if(h){const f=m.onChange;m.onChange=v=>{f(v),h(v.target.value)}}if(p){const f=m.onChange;m.onChange=v=>{v.target.value=v.target.value.replace(/[0-9]/g,""),f(v)},m.onKeyDown=v=>{/[0-9]/.test(v.key)&&v.preventDefault()}}return e.jsxs(e.Fragment,{children:[e.jsx("input",{...m,type:i,disabled:o,placeholder:a,className:`form-input ${c?"dark":""} ${u.error?"error-border":""} ${o?"opacity-50":""}`}),u.error&&e.jsx("span",{className:"error-text",children:u.error.message})]})}})]})}const Ei=({data:s})=>{var t,a;return e.jsxs("div",{className:"free-header",children:[e.jsx("h1",{className:"free-name",children:(t=s.personalDetails)==null?void 0:t.fullName}),e.jsx("div",{className:"free-designation",children:((a=s.personalDetails)==null?void 0:a.jobTitle)||"Senior Product Manager"})]})},Mi=({data:s})=>{var t,a,i,n,r;return e.jsxs("div",{className:"free-contact-grid",children:[((t=s.personalDetails)==null?void 0:t.location)&&e.jsxs("div",{className:"free-contact-item",children:[e.jsx(Va,{})," ",e.jsx("span",{children:s.personalDetails.location})]}),((a=s.personalDetails)==null?void 0:a.email)&&e.jsxs("div",{className:"free-contact-item",children:[e.jsx(so,{})," ",e.jsx("span",{children:s.personalDetails.email})]}),((i=s.personalDetails)==null?void 0:i.phone)&&e.jsxs("div",{className:"free-contact-item",children:[e.jsx(Di,{})," ",e.jsx("span",{children:s.personalDetails.phone})]}),((n=s.personalDetails)==null?void 0:n.tickbigURL)&&e.jsxs("div",{className:"free-contact-item",children:[e.jsx(id,{})," ",e.jsx("span",{children:s.personalDetails.tickbigURL})]}),((r=s.personalDetails)==null?void 0:r.linkedinUrl)&&e.jsxs("div",{className:"free-contact-item",children:[e.jsx(to,{})," ",e.jsx("span",{children:s.personalDetails.linkedinUrl})]})]})},Xt=({title:s,children:t})=>e.jsxs("div",{className:"free-section",children:[s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"free-section-title",children:s}),e.jsx("div",{className:"free-divider"})]}),t]}),Jl=({data:s})=>s.professionalSummary?e.jsx(Xt,{title:"Professional Summary",children:e.jsx("p",{children:s.professionalSummary})}):null,Yl=({data:s})=>{if(s.showSkills===!1)return null;const t=(s.skills||[]).filter(a=>{var i;return(i=a.skillName)==null?void 0:i.trim()});return t.length===0?null:e.jsx(Xt,{title:"Core Skills",children:e.jsx("div",{className:"free-skills-grid",children:t.map((a,i)=>e.jsx("div",{className:"free-skill-item",children:a.skillName},i))})})},Zl=s=>{if(!s)return"";if(typeof s=="number")return s;const t=new Date(s);if(isNaN(t.getTime()))return s;const a={month:"short",year:"numeric"};return t.toLocaleDateString("en-US",a)},Kl=({data:s,items:t,isContinued:a})=>{const i=t||((s==null?void 0:s.projects)||[]).filter(n=>{var r,l;return((r=n.name)==null?void 0:r.trim())||((l=n.company)==null?void 0:l.trim())});return i.length===0?null:e.jsx(Xt,{title:!a&&"Key Projects",children:i.map((n,r)=>
155e.jsxs("div",{className:"free-item project-item","data-idx":r,children:[e.jsx("div",{className:"free-item-main-header",children:e.jsx("div",{className:"free-item-title",children:n.name})}),e.jsxs("div",{className:"free-item-sub-header",children:[e.jsx("div",{className:"free-item-sub",children:n.company}),(n.startDate||n.endDate)&&e.jsxs("div",{className:"free-item-date",children:[Zl(n.startDate)," -"," ",n.isCurrent?"Present":Zl(n.endDate)]})]}),n.technologies&&e.jsxs("div",{className:"free-project-tech",children:[e.jsx("strong",{children:"Technologies:"})," ",n.technologies]}),n.projectResponsibility&&e.jsx("ul",{className:"free-bullets",children:Array.isArray(n.projectResponsibility)?n.projectResponsibility.map(l=>typeof l=="string"?l:(l==null?void 0:l.value)||"").filter(l=>l.trim()).map((l,c)=>e.jsx("li",{children:l.trim()},c)):n.projectResponsibility.split(`
156`).filter(l=>l.trim()).map((l,c)=>e.jsx("li",{children:l.trim()},c))}),n.outcome&&e.jsxs("div",{className:"free-project-outcome",children:[e.jsx("strong",{children:"Outcome:"})," ",n.outcome]})]},r))})},Ql=s=>{if(!s)return"";const t=new Date(s);if(isNaN(t.getTime()))return s;const a={month:"short",year:"numeric"};return t.toLocaleDateString("en-US",a)},D6=s=>s?typeof s=="string"?s.trim():Array.isArray(s)?s.map(t=>typeof t=="string"?t:(t==null?void 0:t.value)||"").filter(Boolean).join(" ").trim():"":"",Xl=({data:s,items:t,isContinued:a})=>{const i=t||((s==null?void 0:s.workExperience)||[]).filter(n=>{var r,l;return((r=n.role)==null?void 0:r.trim())||((l=n.company)==null?void 0:l.trim())});return i.length===0?null:e.jsx(Xt,{title:!a&&"Work Experience",children:i.map((n,r)=>{const l=D6(n.responsibilities);return e.jsxs("div",{className:"free-item experience-item","data-id
156x":r,children:[e.jsx("div",{className:"free-item-main-header",children:e.jsx("div",{className:"free-item-title",children:n.role})}),e.jsxs("div",{className:"free-item-sub-header",children:[e.jsx("div",{className:"free-item-sub",children:n.company}),e.jsxs("div",{className:"free-item-date",children:[Ql(n.startYear)," - ",n.isPresent?"Present":Ql(n.endYear)]})]}),!!l&&e.jsx("p",{className:"free-experience-paragraph",style:{fontSize:"14px",color:"#364153",marginTop:"6px",lineHeight:"1.5",whiteSpace:"pre-line"},children:l})]},r)})})},ec=s=>{if(!s)return"";const t=new Date(s);if(isNaN(t.getTime()))return s;const a={month:"short",year:"numeric"};return t.toLocaleDateString("en-US",a)},sc=({data:s,items:t,isContinued:a})=>{const i=t||((s==null?void 0:s.education)||[]).filter(n=>{var r,l;return((r=n.degree)==null?void 0:r.trim())||((l=n.institution)==null?void 0:l.trim())});return i.length===0?null:e.jsx(Xt,{title:!a&&"Education",children:i.map((n,r)=>e.jsxs("div",{className:"free-item education-item","data-idx":r,style:{marginBottom:"auto"},children:[e.jsx("div",{className:"free-item-main-header",children:e.jsx("div",{className:"free-item-title",children:n.degree})}),e.jsxs("div",{className:"free-item-sub-header",children:[e.jsx("div",{className:"free-item-sub",children:n.institution}),e.jsxs("div",{className:"free-item-date",children:[ec(n.startYear)," - ",n.isPresent?"Present":ec(n.endYear)]})]})]},r))})},tc=({data:s,items:t,isContinued:a})=>{const n=(t||(s==null?void 0:s.certifications)||[]).filter(r=>{var l,c;return r&&(((l=r.name)==null?void 0:l.trim())||((c=r.issuingOrganization)==null?void 0:c.trim())||r.issueDate)});return n.length===0?null:e.jsx(Xt,{title:!a&&"Certifications",children:e.jsx("div",{className:"free-cert-container",children:e.jsx("div",{className:"free-cert-grid",children:n.map((r,l)=>e.jsxs("div",{className:"free-cert-item certification-item","data-id
156x":l,children:[e.jsx("div",{className:"free-cert-icon",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2L14.85 4.15L18.3 3.3L18.15 6.85L21.3 8.35L19 11.05L21.3 13.75L18.15 15.25L18.3 18.8L14.85 17.95L12 20.1L9.15 17.95L5.7 18.8L5.85 15.25L2.7 13.75L5 11.05L2.7 8.35L5.85 6.85L5.7 3.3L9.15 4.15L12 2Z"})})}),e.jsxs("div",{className:"free-cert-info",children:[e.jsx("div",{className:"free-cert-course",children:r.name}),r.issuingOrganization&&e.jsx("div",{className:"free-cert-organization",children:r.issuingOrganization}),r.issueDate&&e.jsx("div",{className:"free-cert-date",children:r.issueDate})]})]},l))})})})},ac=({data:s,items:t,isContinued:a})=>{const i=t||((s==null?void 0:s.achievements)||[]).filter(n=>{var r,l;return((r=n.achievementTitle)==null?void 0:r.trim())||((l=n.achievementDescription)==null?void 0:l.trim())});return i.length===0?null:e.jsx(Xt,{title:!a&&"ACHIEVEMENT",children:i.map((n,r)=>e.jsxs("div",{className:"free-item achievement-item","data-idx":r,children:[n.achievementTitle&&e.jsx("div",{className:"free-item-main-header",children:e.jsx("div",{className:"free-item-title",children:n.achievementTitle})}),n.achievementDescription&&e.jsx("div",{className:"free-item-sub-header",children:e.jsx("div",{className:"free-item-sub",style:{color:"#4b5563",fontSize:"14px",lineHeight:"1.5",marginTop:"4px",fontWeight:"400"},children:n.achievementDescription})})]},r))})},q6=({children:s,ghostRef:t})=>{const[a]=_e.useState(()=>{const i=document.createElement("div");return i.style.cssText=["position:fixed","top:-9999px","left:0","width:210mm","height:auto","overflow:visible","visibility:hidden","pointer-events:none","z-index:-99999","transform:none","font-family:inherit"].join(";"),i});return _e.useEffect(()=>(document.body.appendChild(a),()=>{document.body.contains(a)&&document.body.removeChild(a)}),[a]),Gc.createPortal(e.jsx("div",{className:"resume-page measuring",ref:t,style:{position:"relative",top:"auto",left:"auto",transform:"none",marginLeft:0,marginBottom:0,width:"210mm",height:"auto",overflow:"visible",opacity:1,padding:"15mm 20mm",boxSizing:"border-box",background:"white"},children:s}),a)},V6=_e.forwardRef(({data:s},t)=>{const[a,i]=_e.useState([]),[n,r]=_e.useState(!0),[l,c]=_e.useState(0),o=_e.useRef(null),p=_e.useRef(null),h=((s==null?void 0:s.workExperience)||(s==null?void 0:s.experience)||(s==null?void 0:s.experiences)||[]).filter(N=>{var _,x;return((_=N.role)==null?void 0:_.trim())||((x=N.company)==null?void 0:x.trim())}),d=((s==null?void 0:s.projects)||(s==null?void 0:s.keyProjects)||(s==null?void 0:s.key_projects)||[]).filter(N=>{var _,x;return((_=N.name)==null?void 0:_.trim())||((x=N.company)==null?void 0:x.trim())}),u=((s==null?void 0:s.education)||[]).filter(N=>{var _,x;return((_=N.degree)==null?void 0:_.trim())||((x=N.institution)==null?void 0:x.trim())}),m=((s==null?void 0:s.achievements)||[]).filter(N=>{var _,x;return((_=N.achievementTitle)==null?void 0:_.trim())||((x=N.achievementDescription)==null?void 0:x.trim())}),f=((s==null?void 0:s.certifications)||[]).filter(N=>{var _,x;return N&&(((_=N.name)==null?void 0:_.trim())||((x=N.issuingOrganization)==null?void 0:x.trim())||N.issueDate)});if(_e.useEffect(()=>{if(!s)return;const N=JSON.stringify(s);N!==o.current&&(o.current=N,r(!0),c(_=>_+1))},[s]),_e.useEffect(()=>{if(typeof document>"u"||!document.fonts)return;let N=!1;return document.fonts.ready.then(()=>{N||(r(!0),c(_=>_+1))}).catch(()=>{}),()=>{N=!0}},[]),_e.useLayoutEffect(()=>{if(!n||!p.current||!s)return;const N=96/25.4,_=297*N,x=15*N,j=_-x*2,I=2,w=p.current,y=w.getBoundingClientRect(),k=te=>te.getBoundingClientRect().top-y.top,S=te=>te.getBoundingClientRect().bottom-y.top,g=w.querySelector(".free-header"),E=w.querySelector(".free-contact-grid"),C=te=>Array.from(w.querySelectorAll(".free-section")).find(q=>{var H;return(H=q.querySelector(".free-section-title"))==null?void 0:H.textContent.toLowerCase().includes(te.toLowerCase())}),T=C("Professional Summary"),A=C("Core Skills"),R=C("Work Experience"),P=C("Key Projects"),O=C("Education"),M=C("ACHIEVEMENT"),L=C("Certifications"),F=te=>({experience:[],projects:[],education:[],achievements:[],certifications:[],showFixed:te}),U=[F(!0)];let Z=0,ne=k(g||E||T||A||w);const K=(te,q,H,X)=>{if(!te||te.length===0)return;const ee=q==null?void 0:q.querySelector(`.${H}[data-idx="0"]`),se=q&&ee?k(ee)-k(q):0;te.forEach((ae,B)=>{const W=q==null?void 0:q.querySelector(`.${H}[data-idx="${B}"]`),Q=B===0;if(!W){U[Z][X].push(ae);return}if(S(W)-ne>j-I){U.push(F(!1)),Z++;const ie=k(W);ne=Q?ie-se:ie}U[Z][X].push(ae)})};K(h,R,"experience-item","experience"),K(d,P,"project-item","projects"),K(u,O,"education-item","education"),K(m,M,"achievement-item","achievements"),K(f,L,"certification-item","certifications"),i(U),r(!1)},[l,s,n]),!s)return null;const v=e.jsxs(e.Fragment,{children:[e.jsx(Ei,{data:s}),e.jsx(Mi,{data:s}),e.jsx(Jl,{data:s}),e.jsx(Yl,{data:s}),e.jsx(Xl,{data:s}),e.jsx(Kl,{data:s}),e.jsx(sc,{data:s}),e.jsx(ac,{data:s}),e.jsx(tc,{data:s})]});return e.jsxs("div",{className:"resume-viewer",ref:t,children:[e.jsx(q6,{ghostRef:p,children:v}),!n&&a.map((N,_)=>e.jsxs("div",{className:`resume-page ${_>0?"second-page":""}`,children:[N.showFixed&&e.jsxs(e.Fragment,{children:[e.jsx(Ei,{data:s}),e.jsx(Mi,{data:s}),e.jsx(Jl,{data:s}),e.jsx(Yl,{data:s})]}),N.experience.length>0&&e.jsx(Xl,{data:s,items:N.experience,isContinued:_>0&&h.indexOf(N.experience[0])>0}),N.projects.length>0&&e.jsx(Kl,{data:s,items:N.projects,isContinued:_>0&&d.indexOf(N.projects[0])>0}),N.education.length>0&&e.jsx(sc,{data:s,items:N.education,isContinued:_>0&&u.indexOf(N.education[0])>0}),N.achievements&&N.achievements.length>0&&e.jsx(ac,{data:s,items:N.achievements,isContinued:_>0&&m.indexOf(N.achievements[0])>0}),N.certifications.length>0&&e.jsx(tc,{data:s,items:N.certifications,isContinued:_>0&&f.indexOf(N.certifications[0])>0})]},_)),n&&e.jsxs("div",{className:"resume-page",style:{opacity:.5},children:[e.jsx(Ei,{data:s}),e.jsx(Mi,{data:s}),e.jsx("p",{style:{padding:"20px",textAlign:"center"},children:"Calculating pagination..."})]})]})}),z6="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.75%2015.75H21V6.75C21%206.15326%2020.7629%205.58097%2020.341%205.15901C19.919%204.73705%2019.3467%204.5%2018.75%204.5H5.25C4.65326%204.5%204.08097%204.73705%203.65901%205.15901C3.23705%205.58097%203%206.15326%203%206.75V15.75H2.25C2.05109%2015.75%201.86032%2015.829%201.71967%2015.9697C1.57902%2016.1103%201.5%2016.3011%201.5%2016.5V18C1.5%2018.5967%201.73705%2019.169%202.15901%2019.591C2.58097%2020.0129%203.15326%2020.25%203.75%2020.25H20.25C20.8467%2020.25%2021.419%2020.0129%2021.841%2019.591C22.2629%2019.169%2022.5%2018.5967%2022.5%2018V16.5C22.5%2016.3011%2022.421%2016.1103%2022.2803%2015.9697C22.1397%2015.829%2021.9489%2015.75%202
1561.75%2015.75ZM4.5%206.75C4.5%206.55109%204.57902%206.36032%204.71967%206.21967C4.86032%206.07902%205.05109%206%205.25%206H18.75C18.9489%206%2019.1397%206.07902%2019.2803%206.21967C19.421%206.36032%2019.5%206.55109%2019.5%206.75V15.75H4.5V6.75ZM21%2018C21%2018.1989%2020.921%2018.3897%2020.7803%2018.5303C20.6397%2018.671%2020.4489%2018.75%2020.25%2018.75H3.75C3.55109%2018.75%203.36032%2018.671%203.21967%2018.5303C3.07902%2018.3897%203%2018.1989%203%2018V17.25H21V18ZM14.25%208.25C14.25%208.44891%2014.171%208.63968%2014.0303%208.78033C13.8897%208.92098%2013.6989%209%2013.5%209H10.5C10.3011%209%2010.1103%208.92098%209.96967%208.78033C9.82902%208.63968%209.75%208.44891%209.75%208.25C9.75%208.05109%209.82902%207.86032%209.96967%207.71967C10.1103%207.57902%2010.3011%207.5%2010.5%207.5H13.5C13.6989%207.5%2013.8897%207.57902%2014.0303%207.71967C14.171%207.86032%2014.25%208.05109%2014.25%208.25Z'%20fill='%2301BF71'/%3e%3c/svg%3e";function W6({log:s}){const t=s.createdAt?new Date(s.createdAt).toLocaleDateString("en-IN",{year:"numeric",month:"short",day:"numeric"}):"",a=s.createdAt?new Date(s.createdAt).toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit"}):"";return e.jsxs("div",{className:"credit-history-card",children:[e.jsxs("div",{className:"credit-history-card-left",children:[e.jsx("div",{className:"credit-history-card-icon",children:e.jsx(gt,{fontSize:"small"})}),e.jsxs("div",{className:"credit-history-card-info",children:[e.jsx("h4",{className:"credit-history-card-title",children:s.logTitle}),s.description&&e.jsx("p",{className:"credit-history-card-description",children:s.description}),e.jsxs("span",{className:"credit-history-card-date",children:[t," · ",a]})]})]}),e.jsx("div",{className:"credit-history-card-right",children:e.jsxs("span",{className:"credit-history-card-credits",children:["-",s.creditRemoved]})})]})}function $6({isOpen:s,onClose:t,aiLogs:a}){return e.jsx(qe,{open:s,onClose:t,BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.4)",backdropFilter:"blur(2px)"}},children:e.jsx("div",{className:"credit-history-modal-container",children:e.jsxs("div",{className:"credit-history-modal-content",children:[e.jsx("button",{className:"credit-history-modal-close",onClick:t,children:e.jsx(ps,{fontSize:"small"})}),e.jsxs("div",{className:"credit-history-modal-header",children:[e.jsx(od,{className:"credit-history-modal-title-icon"}),e.jsx("h2",{className:"credit-history-modal-title",children:"Credit History"})]}),e.jsx("p",{className:"credit-history-modal-subtitle",children:"Track how your AI credits have been used"}),a.length===0?e.jsx("div",{className:"credit-history-empty",children:e.jsx("p",{children:"No credit history available yet."})}):e.jsx("div",{className:"credit-history-list",children:a.sort((i,n)=>new Date(n.createdAt)-new Date(i.createdAt)).map((i,n)=>e.jsx(W6,{log:i},i._id||n))}),e.jsx("div",{className:"credit-history-modal-actions",children:e.jsx("button",{className:"credit-history-btn-close",onClick:t,children:"Close"})})]})})})}const H6=b.lazy(()=>Ve(()=>Promise.resolve().then(()=>QN),void 0));function Gp({isOpen:s,onClose:t,onCreditsPurchased:a}){const{userDetails:i}=G(k=>k.auth),{successToast:n,errorToast:r}=he(),[l,c]=b.useState(!1),[o,p]=b.useState(null),[h,d]=b.useState(!1),[u,m]=b.useState({}),[f,v]=b.useState(1),[N,_]=b.useState(!1),[x,j]=b.useState({open:!1,status:null});b.useEffect(()=>{if(!s)return;(async()=>{var E;const S=["RESUME BUILDER","RESUME BUILDER AI"],g={};for(const C of S)try{const T=await Do(C);g[C]=!!((E=T==null?void 0:T.data)!=null&&E.oldPaymentId)}catch{g[C]=!1}m(g)})()},[s]);const I=async(k,S=0)=>{var E;if(S>10)return r("Payment verification is taking too long. Please refresh."),null;let g=await tn(k);return(E=g==null?void 0:g.data)!=null&&E.orderDataSuccess?g:(await new Promise(C=>setTimeout(C,1e3)),await I(k,S+1))},w=async(k,S=1)=>{var g,E,C;try{d(!0);const T=await on(k,S),A={cartList:T.data.products,amount:T.data.totalAmount+T.data.totalGst},R=await sn(A);if(R){const P=R==null?void 0:R.data,O=await rn(P,i);if(O&&O.paymentId){_(!0);try{const M=await an({razorpay_order_id:O.razorpay_order_id,razorpay_payment_id:O.razorpay_payment_id});if(((g=M==null?void 0:M.data)==null?void 0:g.status)==="Success"){n("Credits purchased 
156successfully!"),a&&a();const L=await I(O.razorpay_order_id);(E=L==null?void 0:L.data)!=null&&E.orderDataSuccess&&(p(L.data.orderDataSuccess),c(!0))}else j({open:!0,status:((C=M==null?void 0:M.data)==null?void 0:C.status)||"Pending"})}catch(M){console.error("Error checking payment status:",M),j({open:!0,status:"Pending"})}finally{_(!1)}}else r(_n)}}catch(T){console.error("Payment error:",T),r("Payment failed. Please try again.")}finally{d(!1)}},y=()=>{c(!1),t()};return e.jsxs(e.Fragment,{children:[e.jsx(qe,{open:s,onClose:t,BackdropProps:{style:{backgroundColor:"rgba(0,0,0,0.85)",backdropFilter:"blur(4px)"}},children:e.jsxs("div",{className:"premium-resume-modal-container",children:[e.jsx("button",{onClick:t,className:"premium-modal-close",children:"✕"}),e.jsxs("div",{className:"premium-modal-header",children:[e.jsx("span",{className:"premium-modal-brand",children:"TICKBIG AI"}),e.jsx("h2",{className:"premium-modal-title",children:"AI Resume Builder"})]}),e.jsxs("div",{className:"premium-modal-cards-wrapper",children:[e.jsxs("div",{className:"premium-card-basic",children:[e.jsxs("div",{className:"card-top-row",children:[e.jsxs("div",{className:"card-price-block",children:[e.jsx("span",{className:"card-price",children:"₹49"}),e.jsx("span",{className:"card-price-tax",children:"+ GST"})]}),e.jsx("span",{className:"card-badge",style:{color:"#c084fc",borderColor:"#c084fc"},children:"Most Popular"})]}),e.jsx("h3",{className:"card-title-premium",children:"Premium Resume"}),e.jsx("p",{className:"card-desc",children:"One polished, ATS-ready resume — best if you're applying to a handful of roles."}),e.jsxs("ul",{className:"card-benefits",children:[e.jsxs("li",{children:[e.jsx(Ht,{className:"premium-check-icon",fontSize:"small"}),"Multiple premium templates"]}),e.jsxs("li",{children:[e.jsx(Ht,{className:"premium-check-icon",fontSize:"small"}),"ATS-friendly formatting"]}),e.jsxs("li",{children:[e.jsx(Ht,{className:"premium-check-icon",fontSize:"small"}),"No watermark"]}),e.jsxs("li",{children:[e.jsx(Ht,{className:"premium-check-icon",fontSize:"small"}),"High-Quality PDF Download"]})]}),e.jsx("button",{className:`card-btn ${u["RESUME BUILDER"]?"card-btn-owned":""}`,onClick:()=>w("RESUME BUILDER",1),disabled:h||u["RESUME BUILDER"],children:u["RESUME BUILDER"]?e.jsxs(e.Fragment,{children:[e.jsx(td,{style:{marginRight:6}})," Purchased"]}):"Get Premium Resume"})]}),e.jsxs("div",{className:"premium-card-pro",children:[e.jsxs("div",{className:"card-top-row",children:[e.jsxs("div",{className:"card-price-block",children:[e.jsxs("div",{className:"card-price-row",children:[e.jsxs("span",{className:"card-price",children:["₹",199*f]}),e.jsx("span",{className:"card-price-tax",children:"+ GST"})]}),e.jsxs("div",{className:"quantity-selector-row",children:[e.jsx("span",{className:"quantity-label",children:"Quantity"}),e.jsxs("div",{className:"quantity-controls",children:[e.jsx("button",{type:"button",className:"qty-btn",onClick:()=>v(k=>Math.max(1,k-1)),disabled:f<=1||h,children:"-"}),e.jsx("span",{className:"qty-count",children:f}),e.jsx("button",{type:"button",className:"qty-btn",onClick:()=>v(k=>k+1),disabled:h,children:"+"})]})]})]}),e.jsx("span",{className:"card-badge",style:{color:"#e879f9",borderColor:"#e879f9"},children:"Best Value"})]}),e.jsx("h3",{className:"card-title-ai",children:"AI Resume Builder"}),e.jsx("p",{className:"card-desc",children:"Everything in Premium, plus AI tools for tailoring resumes to multiple jobs."}),e.jsxs("div",{className:"pro-callout",children:[e.jsx("div",{className:"pro-callout-dot"}),"Includes the Premium Resume plan (₹49 value), free"]}),e.jsxs("div",{className:"pro-credits-box",children:[e.jsxs("h4",{children:["Includes ",(1e3*f).toLocaleString()," AI Credits"]}),e.jsxs("p",{children:["Enough to tailor and optimize about ",10*f," resumes for different job descriptions."]}),e.jsxs("ul",{className:"card-benefits",style:{marginBottom:"2px",marginTop:"10px"},children:[e.jsxs("li",{children:[e.jsx(Ht,{className:"premium-check-icon",fontSize:"small"}),"Auto-fill from Existing Resume"]}),e.jsxs("li",{children:[e.jsx(Ht,{className:"premium-check-icon",fontSize:"small"}),"Match Resume with Job Description"]}),e.jsxs("li",{children:[e.jsx(Ht,{className:"premium-check-icon",fontSize:"small"}),"Improve with AI (Profile Summary, Work Experience, Key Projects, Skills, Achievements)"]})]})]}),!o&&e.jsx(e.Fragment,{children:e.jsx("button",{className:"card-btn",onClick:()=>w("RESUME BUILDER AI",f),disabled:h,children:"Get AI resume builder"})}),e.jsx("div",{className:"button__container",children:e.jsx(_e.Suspense,{fallback:e.jsx(os,{}),children:o&&e.jsx(H6,{paymentId:o==null?void 0:o.paymentId,order:o,showModal:l,setShowModal:y,productName:"AI Resume Builder"})})})]})]})]})}),e.jsx(ka,{open:N,onClose:()=>_(!1)}),e.jsx(Ca,{open:x.open,status:x.status,onClose:()=>j({open:!1,status:null})})]})}
156function G6({subtitle:s,onDownload:t,resumeData:a,isFormDirty:i,setIsFormDirty:n,resumeType:r,setResumeType:l,activeTab:c,setActiveTab:o,validateForm:p,oldImage:h,setOldImage:d,completionScore:u,credits:m,onBuyCredits:f,aiLogs:v}){const N=Mt();b.useState(!1);const[_,x]=b.useState(!1),[j,I]=b.useState(!1),[w,y]=b.useState(!1),[k,S]=b.useState(!1),{successToast:g,errorToast:E,errorHandle:C}=he(),{userDetails:T,user:A}=G(F=>F.auth);b.useState({}),b.useState(null),b.useState(!1),b.useState(!1),b.useState(null),b.useState(!1),b.useState({open:!1,status:null});function R(F=[]){return F.map(U=>({...U,projectResponsibility:Array.isArray(U.projectResponsibility)?U.projectResponsibility.map(Z=>typeof Z=="string"?Z:(Z==null?void 0:Z.value)||"").filter(Boolean):[]}))}const P=async()=>{var F,U,Z,ne,K,te;if(p&&!await p()){E("Please fill all required fields correctly.");return}if(!i){E("No changes to save!");return}console.log("in fresume data =>",(F=a==null?void 0:a.personalDetails)==null?void 0:F.avatar,h," <= OLD IMAGE");try{let q=function(ee){if(!ee||typeof ee=="string"&&/present|current|ongoing/i.test(ee.trim()))return null;const se=new Date(ee);return isNaN(se.getTime())?null:ee},H=function(ee=[]){return ee.map(se=>{let ae=se.responsibilities,B="";Array.isArray(ae)?B=ae.map(Q=>typeof Q=="string"?Q:(Q==null?void 0:Q.value)||"").filter(Boolean).join(" "):typeof ae=="string"&&(B=ae);const W={...se,responsibilities:B};return W.startYear=q(W.startYear),W.endYear=q(W.endYear),!W.endYear&&!W.isPresent&&(W.isPresent=!0),W})};if(h!==null&&((U=a==null?void 0:a.personalDetails)==null?void 0:U.avatar)!==(h??"")){const ee=(K=(ne=(Z=a==null?void 0:a.personalDetails)==null?void 0:Z.avatar)==null?void 0:ne.match(/data:(.*?);base64/))==null?void 0:K[1],se=lv((te=a==null?void 0:a.personalDetails)==null?void 0:te.avatar,"image"),ae=await ya("resume",se,ee);ae&&(a.personalDetails.avatar=ae,d(null))}a.projects&&(a.projects=R(a.projects).map(ee=>({...ee,startDate:ee.startDate||null,endDate:ee.endDate||null}))),a.workExperience&&(a.workExperience=H(a.workExperience));const X=await T6({resumeData:a});(X==null?void 0:X.statusCode)===200?(g("Resume saved successfully!"),localStorage.removeItem(`resumeData-${A}`),n(!1),window.resetFormAfterSave&&window.resetFormAfterSave()):E("Failed to save resume. Please try again.")}catch(q){console.error("Error saving resume:",q),C(q)}},O=async()=>{var F,U;
156try{if(i){E("Please save your changes.");return}if(r==="free"){x(!0);return}const Z=await Do("RESUME BUILDER");if((F=Z==null?void 0:Z.data)!=null&&F.newPayment){I(!0);return}if((U=Z==null?void 0:Z.data)!=null&&U.oldPaymentId){x(!0);return}}catch(Z){console.error(Z),E("Something went wrong")}},M=()=>{x(!1),t&&t()},L=()=>{y(!0)};return e.jsxs(e.Fragment,{children:[e.jsxs("nav",{className:"resume-navbar",children:[e.jsxs("div",{className:"nav-row top-row",children:[e.jsxs("div",{className:"nav-left",children:[e.jsx("button",{onClick:()=>N(-1),className:"nav-back-btn",children:e.jsx(O0,{fontSize:"small"})}),e.jsx("span",{className:"nav-desktop-title desktop-only",children:"Tickbig Resume Builder"}),e.jsx("div",{className:"resume-type-wrapper mobile-only",children:e.jsxs("select",{className:"resume-type-select",value:r,onChange:F=>{const U=F.target.value;l(U),localStorage.setItem("resume_template_type",U),window.location.reload()},children:[e.jsx("option",{value:"free",children:"Free"}),e.jsx("option",{value:"paidv1",children:"Premium"})]})})]}),e.jsx("div",{className:"nav-center desktop-only",children:e.jsx("div",{className:"resume-type-wrapper",children:e.jsxs("select",{className:"resume-type-select",value:r,onChange:F=>{const U=F.target.value;l(U),localStorage.setItem("resume_template_type",U),window.location.reload()},children:[e.jsx("option",{value:"free",children:"Free Resume"}),e.jsx("option",{value:"paidv1",children:"Premium Resume"})]})})}),e.jsx("div",{className:"nav-right",children:e.jsxs("div",{className:"credits-section",children:[e.jsxs("div",{className:"credits-badge",children:[e.jsx(gt,{fontSize:"small",className:"sparkle-icon"})," ",m!==null?m:"..."]}),e.jsx("button",{className:"get-credits-btn",onClick:f,children:"Get Credits"})]})})]}),e.jsxs("div",{className:"nav-row middle-row mobile-only",children:[e.jsxs("button",{className:"reset-btn",onClick:L,children:[e.jsx(Xr,{fontSize:"small"})," Reset"]}),e.jsxs("div",{className:"nav-tabs",children:[e.jsxs("button",{className:`nav-tab-btn ${c==="edit"?"active":""}`,onClick:()=>o("edit"),children:[e.jsx(U0,{fontSize:"small"}),e.jsx("span",{children:"Edit"})]}),e.jsxs("button",{className:`nav-tab-btn ${c==="preview"?"active":""}`,onClick:()=>o("preview"),children:[e.jsx(D0,{fontSize:"small"}),e.jsx("span",{children:"Preview"})]})]})]}),e.jsxs("div",{className:"nav-row bottom-row",children:[e.jsxs("div",{className:"bottom-left-items",children:[e.jsxs("div",{className:"resume-score",children:["Resume Score: ",e.jsxs("span",{className:"complete-score-value",children:[u,"/100"]})]}),e.jsxs("button",{className:"history-btn",onClick:()=>S(!0),children:[e.jsx(od,{fontSize:"small"})," History"]}),e.jsxs("button",{className:"reset-btn desktop-only",onClick:L,children:[e.jsx(Xr,{fontSize:"small"})," Reset"]})]}),e.jsxs("div",{className:"action-buttons desktop-only",children:[e.jsxs("button",{className:"nav-btn-save",onClick:P,children:[e.jsx(el,{fontSize:"small"}),e.jsx("span",{className:"btn-text",children:"Save Draft"})]}),e.jsxs("button",{className:"nav-btn-download",onClick:O,children:[e.jsx(sl,{fontSize:"small"}),e.jsx("span",{className:"btn-text",children:"Download PDF"})]})]})]}),e.jsxs("div",{className:"nav-row nav-actions-row mobile-only mt-mobile-actions",children:[e.jsxs("button",{className:"nav-btn-saved",onClick:P,children:[e.jsx(el,{fontSize:"small"}),e.jsx("span",{children:"Save"})]}),e.jsxs("button",{className:"nav-btn-download-mobile",onClick:O,children:[e.jsx(sl,{fontSize:"small"}),e.jsx("span",{children:"Download PDF"})]})]}),e.jsx(qe,{open:_,onClose:()=>x(!1),children:e.jsx("div",{className:"download-modal-wrapper",children:e.jsxs("div",{className:"download-modal-content",children:[e.jsx("button",{className:"download-modal-close",onClick:()=>x(!1),children:"✕"}),e.jsxs("div",{className:"download-modal-header",children:[e.jsx("div",{className:"download-modal-icon",children:e.jsx(Zc,{fontSize:"medium"})}),e.jsx("h3",{className:"download-modal-title",children:"Important Information"})]}),e.jsx("p",{className:"download-modal-text",children:"If you have an uploaded resume set as your primary resume, downloading this resume will not automatically replace it."}),e.jsxs("div",{className:"download-modal-note-box",children:[e.jsx("span",{className:"note-label",children:"Note:"})," If you want to set this resume as your primary resume, you'll need to upload the downloaded file after downloading."]}),e.jsx("div",{className:"download-modal-note-box",style:{backgroundColor:"#f6fdfa"}
156,children:e.jsxs("div",{style:{display:"flex",gap:"15px"},children:[e.jsx("div",{children:e.jsx("img",{src:z6,alt:"note"})}),e.jsxs("p",{children:[e.jsx("span",{className:"note-label",children:"Note:"})," PDF download works best on desktop or laptop devices. Some mobile devices may experience formatting or download issues."]})]})}),e.jsxs("div",{className:"download-modal-actions",children:[e.jsx("button",{className:"download-modal-primary-btn",onClick:M,children:"Download as PDF"}),e.jsx("button",{className:"download-modal-secondary-btn",onClick:()=>x(!1),children:"Cancel"})]})]})})}),r==="paidv1"&&e.jsx(Gp,{isOpen:j,onClose:()=>I(!1),onCreditsPurchased:()=>{I(!1)}})]}),w&&e.jsx(As,{confirm:w,setConfirm:y,action:"reset_resume_builder",performer:()=>{localStorage.removeItem(`resumeData-${A}`),window.location.reload()}}),e.jsx($6,{isOpen:k,onClose:()=>S(!1),aiLogs:v})]})}function nc({data:s}){var t,a;return e.jsxs("div",{className:"resume-header",children:[e.jsx("h1",{children:(t=s.personalDetails)==null?void 0:t.fullName}),e.jsx("div",{className:"designation",children:(a=s.personalDetails)==null?void 0:a.jobTitle}),e.jsxs("div",{className:"header-accent",children:[e.jsx("div",{className:"accent-bar large"}),e.jsx("div",{className:"accent-bar medium"}),e.jsx("div",{className:"accent-bar small"})]})]})}function ic({data:s}){if(!s)return null;const t=[{icon:e.jsx(Di,{}),value:s.personalDetails.phone,type:"text"},{icon:e.jsx(so,{}),value:s.personalDetails.email,type:"email"},{icon:e.jsx(Va,{}),value:s.personalDetails.location,type:"text"},{icon:e.jsx(id,{}),value:s.personalDetails.tickbigURL,type:"link",label:"Tickbig AI Portfolio URL"},{icon:e.jsx(to,{}),value:s.personalDetails.linkedinUrl,type:"link",label:"LinkedIn URL"}];return e.jsxs("div",{className:"sidebar-section",children:[e.jsxs("div",{className:"sidebar-section-title",children:[e.jsx(Di,{})," CONTACT"]}),e.jsx("div",{className:"sidebar-box",children:e.jsx("div",{className:"contact-list",children:t.map((a,i)=>{var l;const n=(l=a.value)==null?void 0:l.toString().trim();if(!n)return null;const r=n.startsWith("http")?n:`https://${n}`;return e.jsxs("div",{className:"contact-item",children:[a.icon,a.type==="link"?e.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"contact-link",children:n.replace(/^https?:\/\//,"")}):a.type==="email"?e.jsx("a",{href:`mailto:${n}`,className:"contact-link",children:n}):e.jsx("span",{children:n})]},i)})})})]})}function oc({data:s,items:t,isContinued:a}){const i=(t||(s==null?void 0:s.skills)||[]).filter(n=>{var r;return(r=n.skillName)==null?void 0:r.trim()});return i.length===0?null:e.jsxs("div",{className:"sidebar-section",children:[e.jsxs("div",{className:"sidebar-section-title",children:[e.jsx(q0,{})," SKILLS ",a&&"(CONTINUED)"]}),e.jsx("div",{className:"sidebar-box",children:e.jsx("div",{className:"skills-grid",children:i.map((n,r)=>e.jsx("div",{className:"skill-pill",children:n.skillName},r))})})]})}function mn({title:s,icon:t,children:a}){return e.jsxs("div",{className:"main-section",children:[e.jsxs("div",{className:"section-header",children:[t&&e.jsx("div",{className:"section-icon",children:t}),e.jsxs("div",{className:"section-title-wrap",children:[e.jsx("h3",{className:"main-section-title",children:s}),e.jsx("div",{className:"title-underline"})]})]}),a]})}const rc=s=>{if(!s)return"";if(typeof s=="number")return s;const t=new Date(s);if(isNaN(t.getTime()))return s;const a={month:"short",year:"numeric"};return t.toLocaleDateString("en-US",a)};function lc({projects:s=[],isContinued:t,dataIdxOffset:a=0}){const i=s.map((n,r)=>({...n,originalIdx:a+r})).filter(n=>{var r,l,c,o,p;return((r=n==null?void 0:n.name)==null?void 0:r.trim())||((l=n==null?void 0:n.company)==null?void 0:l.trim())||((c=n==null?void 0:n.technologies)==null?void 0:c.trim())||((o=n==null?void 0:n.outcome)==null?void 0:o.trim())||(n==null?void 0:n.startDate)||(n==null?void 0:n.endDate)||(n==null?void 0:n.isCurrent)||((p=n==null?void 0:n.projectResponsibility)==null?void 0:p.some(h=>{var d;return(d=h==null?void 0:h.value)==null?void 0:d.trim()}))});return i.length===0?null:e.jsx(mn,{title:`Key Projects${t?" (Continued)":""}`,icon:e.jsx(V0,{}),children:i.map((n,r)=>{var c,o,p,h;let l="";
156return n._isPart&&(n._isFirstPart?l="project-part-first":n._isMiddlePart?l="project-part-middle":n._isLastPart&&(l="project-part-last")),e.jsxs("div",{className:`content-card project-item ${l}`,"data-idx":n.originalIdx,children:[n.name&&e.jsx("div",{className:"project-header",children:e.jsx("div",{className:"project-name",children:n.name})}),e.jsxs("div",{className:"project-header",children:[n.company&&e.jsx("div",{className:"company-name",children:n.company}),(n.startDate||n.endDate)&&e.jsxs("div",{className:"project-date",children:[rc(n.startDate)," -"," ",n.isCurrent?"Present":rc(n.endDate)]})]}),((c=n.technologies)==null?void 0:c.trim())&&e.jsxs("div",{className:"tech-stack",children:[e.jsx("strong",{children:"Technologies:"})," ",n.technologies]}),((o=n.projectResponsibility)==null?void 0:o.length)>0&&e.jsx("ul",{className:"project-points",style:{marginBottom:n._isPart&&!n._isLastPart?0:void 0},children:(p=n.projectResponsibility)==null?void 0:p.map(d=>typeof d=="string"?d:d==null?void 0:d.value).filter(d=>d==null?void 0:d.trim()).map((d,u)=>e.jsx("li",{children:d},u))}),((h=n.outcome)==null?void 0:h.trim())&&e.jsxs("div",{className:"outcome-box",children:[e.jsx("strong",{children:"Outcome:"})," ",n.outcome]})]},r)})})}function cc({data:s}){return e.jsx(mn,{title:"Professional Summary",icon:e.jsx(nd,{}),children:e.jsx("div",{className:"content-card summary-card",children:s.professionalSummary})})}function dc({data:s,items:t,isContinued:a}){const i=(t||(s==null?void 0:s.certifications)||[]).filter(n=>{var o,p,h;const r=(o=n.name)==null?void 0:o.trim(),l=(p=n.issuingOrganization)==null?void 0:p.trim(),c=(h=n.issueDate)==null?void 0:h.toString().trim();return r||l||c});return i.length===0?null:e.jsxs("div",{className:"sidebar-section",children:[e.jsxs("div",{className:"sidebar-section-title",children:[e.jsx(z0,{})," CERTIFICATIONS ",a&&"(CONTINUED)"]}),e.jsx("div",{className:"sidebar-box",children:e.jsx("div",{className:"certifications-list",children:i.map((n,r)=>e.jsxs("div",{className:"cert-item",children:[e.jsx("span",{className:"cert-bullet",children:"•"}),e.jsxs("span",{children:[n.name,n.issuingOrganization&&` – ${n.issuingOrganization}`,n.issueDate&&` (${n.issueDate})`]})]},r))})})]})}const mc=s=>{if(!s)return"";const t=new Date(s);if(isNaN(t.getTime()))return s;const a={month:"short",year:"numeric"};return t.toLocaleDateString("en-US",a)},hc=s=>s?typeof s=="string"?s.trim():Array.isArray(s)?s.map(t=>typeof t=="string"?t:(t==null?void 0:t.value)||"").filter(Boolean).join(" ").trim():"":"";function uc({experience:s=[],isContinued:t,dataIdxOffset:a=0}){const i=s.map((n,r)=>({...n,originalIdx:a+r})).filter(n=>{var o,p;const r=(o=n.role)==null?void 0:o.trim(),l=(p=n.company||n.companyName)==null?void 0:p.trim(),c=!!hc(n.responsibilities);return r||l||c});return i.length===0?null:e.jsx(mn,{title:`Work Experience${t?" (Continued)":""}`,icon:e.jsx(W0,{}),children:e.jsx("div",{className:"experience-timeline",children:i.map((n,r)=>{const l=hc(n.responsibilities);
156return e.jsx("div",{className:"experience-item","data-idx":n.originalIdx,children:e.jsxs("div",{className:"content-card experience-card",children:[e.jsx("div",{className:"job-title",children:n.role}),e.jsxs("div",{className:"experience-header",children:[e.jsxs("div",{className:"experience-company",children:[e.jsx("span",{className:"company-bullet",children:"●"}),e.jsx("span",{className:"company-name-text",children:n.company||n.companyName})]}),e.jsxs("div",{className:"experience-date",children:[mc(n.startYear)," - ",n.isCurrent||n.isPresent?"Present":mc(n.endYear)]})]}),!!l&&e.jsx("p",{className:"experience-paragraph",style:{fontSize:"14px",color:"#475569",marginTop:"6px",marginBottom:"12px",lineHeight:"1.5",whiteSpace:"pre-line"},children:l})]})},r)})})})}const pc=s=>{if(!s)return"";const t=new Date(s);if(isNaN(t.getTime()))return s;const a={month:"short",year:"numeric"};return t.toLocaleDateString("en-US",a)};function gc({education:s=[],isContinued:t,dataIdxOffset:a=0}){const i=s.map((n,r)=>({...n,originalIdx:a+r})).filter(n=>{var p,h;const r=(p=n.degree)==null?void 0:p.trim(),l=(h=n.institution)==null?void 0:h.trim(),c=n.startYear,o=n.endYear;return r||l||c||o});return i.length===0?null:e.jsx(mn,{title:`EDUCATION${t?" (Continued)":""}`,icon:e.jsx(tl,{}),children:e.jsx("div",{className:"education-list",children:i.map((n,r)=>
156e.jsxs("div",{className:"content-card education-item","data-idx":n.originalIdx,children:[e.jsxs("div",{className:"education-header",children:[e.jsx(tl,{className:"edu-icon"}),e.jsx("div",{className:"degree-name",children:n.degree})]}),n.institution&&e.jsx("div",{className:"institution-name",children:n.institution}),e.jsx("div",{className:"education-year",children:(n.startYear||n.endYear)&&e.jsxs("div",{className:"education-year-chip",children:[pc(n.startYear)," - ",n.isPresent?"Present":pc(n.endYear)]})})]},r))})})}function xc({achievements:s=[],isContinued:t,dataIdxOffset:a=0}){const i=(s||[]).map((n,r)=>({...n,originalIdx:a+r})).filter(n=>String((n==null?void 0:n.achievementTitle)||"").trim()||String((n==null?void 0:n.achievementDescription)||"").trim());return i.length===0?null:e.jsx(mn,{title:`ACHIEVEMENT${t?" (Continued)":""}`,icon:e.jsx($0,{}),children:i.map((n,r)=>e.jsxs("div",{className:"content-card achievement-item","data-idx":n.originalIdx,style:{padding:"16px 20px"},children:[n.achievementTitle&&e.jsxs("div",{className:"achievement-title",style:{fontWeight:700,fontSize:"16px",color:"#0f172a",marginBottom:"4px",display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("div",{style:{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:"#0e4b5e"}}),n.achievementTitle]}),n.achievementDescription&&e.jsx("div",{className:"achievement-description",style:{color:"#0e4b5e",fontSize:"14px",paddingLeft:"14px",lineHeight:"1.5"},children:n.achievementDescription})]},r))})}const Pi=1122,J6=30,Ri=40,fc=8,Y6=120,Z6=({children:s,ghostRef:t})=>{const[a]=_e.useState(()=>{const i=document.createElement("div");return i.style.cssText=["position:absolute","top:0","left:-9999px","width:794px","height:auto","overflow:visible","visibility:hidden","pointer-events:none","z-index:-99999","transform:none","transform-origin:top left","will-change:auto","zoom:1"].join(";"),i});return _e.useEffect(()=>(document.body.appendChild(a),()=>document.body.removeChild(a)),[a]),Gc.createPortal(e.jsxs("div",{ref:t,style:{display:"flex",flexDirection:"column"},children:[e.jsx("div",{className:"resume-page-v1 measuring ghost-normal",style:{position:"relative",width:"794px",height:"auto",overflow:"visible",transform:"none"},children:s}),e.jsx("div",{className:"resume-page-v1 measuring third-page ghost-fullwidth",style:{position:"relative",width:"794px",height:"auto",overflow:"visible",transform:"none"},children:s})]}),a)},K6=()=>{_e.useEffect(()=>{const s="__safari_print_fix__",t=()=>{if(document.getElementById(s))return;const r=document.createElement("style");r.id=s,r.textContent=`
157        @media print {
158          .resume-page-v1 {
159            transform: none !important;
160            -webkit-transform: none !important;
161            position: relative !important;
162            left: auto !important;
163            margin-left: 0 !important;
164            margin-bottom: 0 !important;
165            width: 210mm !important;
166            height: 297mm !important;
167            min-height: 297mm !important;
168            overflow: hidden !important;
169          }
170          .resume-viewer-V1 {
171            margin-left: 0 !important;
172            transform: none !important;
173          }
174        }
175      `,document.head.appendChild(r)},a=()=>{const r=document.getElementById(s);r&&r.remove()};window.addEventListener("beforeprint",t),window.addEventListener("afterprint",a);const i=window.matchMedia("print"),n=r=>{r.matches?t():a()};return i.addEventListener?i.addEventListener("change",n):i.addListener(n),()=>{window.removeEventListener("beforeprint",t),window.removeEventListener("afterprint",a),i.removeEventListener?i.removeEventListener("change",n):i.removeListener(n),a()}},[])},Q6=_e.forwardRef(({data:s},t)=>{var x,j,I,w;K6();const[a,i]=_e.useState(()=>[{projects:(s==null?void 0:s.projects)||[],experience:(s==null?void 0:s.workExperience)||[],education:(s==null?void 0:s.education)||[],achievements:(s==null?void 0:s.achievements)||[],sidebarCertifications:(s==null?void 0:s.certifications)||[]}]),[n,r]=_e.useState(s),[l,c]=_e.useState(!0),o=_e.useRef(null),p=_e.useRef(null),h=_e.useRef(null),d=_e.useRef(null),[u,m]=_e.useState(0),f=y=>y?y.charAt(0).toUpperCase():"B",v=((x=s==null?void 0:s.personalDetails)==null?void 0:x.fullName)||(s==null?void 0:s.fullName);if(_e.useEffect(()=>{if(!s)return;const y=JSON.stringify(s);if(y!==h.current)return d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{h.current=y,r(JSON.parse(y)),c(!0)},Y6),()=>{d.current&&clearTimeout(d.current)}},[s]),_e.useLayoutEffect(()=>{l&&m(y=>y+1)},[n,l]),_e.useLayoutEffect(()=>{if(!l||!p.current||!n)return;const y=p.current,k=y.querySelector(".ghost-normal"),S=y.querySelector(".ghost-fullwidth");
175if(!k||!S){c(!1);return}const g=k.querySelector(".right-column"),E=S.querySelector(".right-column"),C=(Se,ve)=>{let J=0,D=Se;for(;D&&D!==ve;)J+=D.offsetTop,D=D.offsetParent;return J},T=(Se,ve)=>Array.from(Se.querySelectorAll(ve)).map(J=>{const D=C(J,Se);return{top:D,bottom:D+J.offsetHeight}}),A=T(g,".project-item[data-idx]"),R=T(g,".experience-item[data-idx]"),P=T(g,".education-item[data-idx]"),O=T(g,".achievement-item[data-idx]"),M=T(E,".project-item[data-idx]"),L=T(E,".experience-item[data-idx]"),F=T(E,".education-item[data-idx]"),U=T(E,".achievement-item[data-idx]"),Z=g.querySelector(".section-header"),ne=Z?Z.offsetHeight:65,te=n.projects?n.projects.reduce((Se,ve,J)=>{var $;const D=(($=ve.projectResponsibility)==null?void 0:$.filter(re=>{const oe=typeof re=="string"?re:re==null?void 0:re.value;return oe==null?void 0:oe.trim()}))||[];if(D.length<=1)Se.push({...ve,_originalIdx:J});else{Se.push({...ve,projectResponsibility:[D[0]],outcome:null,_originalIdx:J,_isFirstPart:!0,_isPart:!0});for(let re=1;re<D.length-1;re++)Se.push({...ve,name:null,company:null,startDate:null,endDate:null,technologies:null,outcome:null,projectResponsibility:[D[re]],_originalIdx:J,_isMiddlePart:!0,_isPart:!0});Se.push({...ve,name:null,company:null,startDate:null,endDate:null,technologies:null,projectResponsibility:[D[D.length-1]],_originalIdx:J,_isLastPart:!0,_isPart:!0})}return Se},[]):[],q=n.workExperience||[],H=n.education||[],X=n.achievements||[],se=(()=>{const Se={projects:{},experience:{},education:{},achievements:{}},ve=[{key:"projects",data:te,posNormal:A,posFull:M},{key:"experience",data:q,posNormal:R,posFull:L},{key:"education",data:H,posNormal:P,posFull:F},{key:"achievements",data:X,posNormal:O,posFull:U}],J=[...A.map(Oe=>Oe.top),...R.map(Oe=>Oe.top),...P.map(Oe=>Oe.top),...O.map(Oe=>Oe.top)],D=J.length>0?Math.min(...J):40;let $=0,re=D,oe=D,Re=D;const Ze=Pi-Ri-fc;return ve.forEach(Oe=>{if(Oe.data.length===0)return;let Ne=$;Oe.posNormal.forEach((ze,Te)=>{const es=Oe.posNormal[Te],ns=Oe.posFull[Te],be=$>=2,ke=be?ns:es,Le=be?Re:oe,$e=ke.bottom-ke.top,as=Math.max(0,ke.top-Le);re+=as;const xs=$>Ne,ms=$e+(xs?ne:0),ls=$===0?Pi-Ri:Ze;re+ms>ls&&($++,re=J6+ne,Ne=$),Se[Oe.key][$]||(Se[Oe.key][$]=[]),Se[Oe.key][$].push(Oe.data[Te]);const Ge=$>=2?ns:es,Ms=Ge.bottom-Ge.top;re+=Ms,oe=es.bottom,Re=ns.bottom})}),Se})(),ae=se.projects,B=se.experience,W=se.education,Q=se.achievements,ie=Pi-Ri-fc,Y=(n.certifications||[]).filter(Se=>{var ve,J,D;return((ve=Se.name)==null?void 0:ve.trim())||((J=Se.issuingOrganization)==null?void 0:J.trim())||((D=Se.issueDate)==null?void 0:D.toString().trim())});let pe=[],me=[];const Ce=k.querySelector(".left-column"),Ye=Array.from((Ce==null?void 0:Ce.querySelectorAll(".sidebar-section"))||[]).find(Se=>{var ve;return(ve=Se.querySelector(".sidebar-section-title"))==null?void 0:ve.textContent.includes("CERTIFICATIONS")});if(Ye){const Se=Ye.querySelector(".sidebar-section-title");(Se?C(Se,Ce)+Se.offsetHeight:0)>ie?me=Y:(Array.from(Ye.querySelectorAll(".cert-item")).forEach((J,D)=>{C(J,Ce)+J.offsetHeight<=ie?pe.push(Y[D]):me.push(Y[D])}),pe.length===0&&Y.length>0&&(me=Y))}else pe=Y;const Xe=new Set([0,...Object.keys(ae).map(Number),...Object.keys(B).map(Number),...Object.keys(W).map(Number),...Object.keys(Q).map(Number)]),ue=Math.max(...Xe),Ae=[];for(let Se=0;Se<=ue;Se++)Ae.push({projects:ae[Se]||[],experience:B[Se]||[],education:W[Se]||[],achievements:Q[Se]||[],sidebarCertifications:Se===0?pe:Se===1?me:[]});Ae.length===0&&Ae.push({projects:[],experience:[],education:[],achievements:[],sidebarCertifications:pe}),i(Se=>{const ve=JSON.stringify(Ae);return JSON.stringify(Se)===ve?Se:Ae}),c(!1)},[u]),!s||!n)return null;const N=n.projects?n.projects.reduce((y,k,S)=>{var E;const g=((E=k.projectResponsibility)==null?void 0:E.filter(C=>{const T=typeof C=="string"?C:C==null?void 0:C.value;return T==null?void 0:T.trim()}))||[];if(g.length<=1)y.push({...k,_originalIdx:S});else{y.push({...k,projectResponsibility:[g[0]],outcome:null,_originalIdx:S,_isFirstPart:!0,_isPart:!0});for(let C=1;C<g.length-1;
175C++)y.push({...k,name:null,company:null,startDate:null,endDate:null,technologies:null,outcome:null,projectResponsibility:[g[C]],_originalIdx:S,_isMiddlePart:!0,_isPart:!0});y.push({...k,name:null,company:null,startDate:null,endDate:null,technologies:null,projectResponsibility:[g[g.length-1]],_originalIdx:S,_isLastPart:!0,_isPart:!0})}return y},[]):[],_=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"left-column",children:[e.jsx("div",{className:"sidebar-avatar",children:(j=n==null?void 0:n.personalDetails)!=null&&j.avatar||(I=n==null?void 0:n.personalDetails)!=null&&I.profileImage?e.jsx("img",{src:n.personalDetails.avatar||n.personalDetails.profileImage,alt:"Profile",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%"}}):f(((w=n==null?void 0:n.personalDetails)==null?void 0:w.fullName)||(n==null?void 0:n.fullName))}),e.jsx(ic,{data:n}),e.jsx(oc,{data:n}),e.jsx(dc,{data:n})]}),e.jsxs("div",{className:"right-column",children:[e.jsx(nc,{data:n}),e.jsx(cc,{data:n}),e.jsx(lc,{projects:N}),e.jsx(uc,{experience:(n==null?void 0:n.workExperience)??[]}),e.jsx(gc,{education:(n==null?void 0:n.education)??[]}),e.jsx(xc,{achievements:(n==null?void 0:n.achievements)??[]})]})]});return e.jsxs("div",{className:"resume-viewer-V1",ref:y=>{o.current=y,typeof t=="function"?t(y):t&&(t.current=y)},children:[e.jsx(Z6,{ghostRef:p,children:_}),!l&&a.map((y,k)=>{var S,g,E,C,T,A,R,P;return e.jsxs("div",{className:["resume-page-v1",k===1?"second-page":k>=2?"third-page":"",k===a.length-1?"last-page":""].filter(Boolean).join(" "),children:[(k===0||k===1)&&e.jsxs("div",{className:"left-column",children:[k===0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"sidebar-avatar",children:(S=n==null?void 0:n.personalDetails)!=null&&S.avatar||(g=n==null?void 0:n.personalDetails)!=null&&g.profileImage?e.jsx("img",{src:n.personalDetails.avatar||n.personalDetails.profileImage,alt:"Profile",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%"}}):f(v)}),e.jsx(ic,{data:n}),e.jsx(oc,{data:n})]}),e.jsx(dc,{data:n,items:y.sidebarCertifications,isContinued:k>0&&((E=y.sidebarCertifications)==null?void 0:E.length)>0&&(((C=n.certifications)==null?void 0:C.indexOf(y.sidebarCertifications[0]))??0)>0})]}),e.jsxs("div",{className:"right-column",children:[k===0&&e.jsxs(e.Fragment,{children:[e.jsx(nc,{data:n}),e.jsx(cc,{data:n})]}),((T=y.projects)==null?void 0:T.length)>0&&e.jsx(lc,{projects:y.projects,isContinued:N.indexOf(y.projects[0])>0,dataIdxOffset:N.indexOf(y.projects[0])}),((A=y.experience)==null?void 0:A.length)>0&&e.jsx(uc,{experience:y.experience,isContinued:n.workExperience.indexOf(y.experience[0])>0,dataIdxOffset:n.workExperience.indexOf(y.experience[0])}),((R=y.education)==null?void 0:R.length)>0&&e.jsx(gc,{education:y.education,isContinued:n.education.indexOf(y.education[0])>0,dataIdxOffset:n.education.indexOf(y.education[0])}),((P=y.achievements)==null?void 0:P.length)>0&&e.jsx(xc,{achievements:y.achievements,isContinued:n.achievements.indexOf(y.achievements[0])>0,dataIdxOffset:n.achievements.indexOf(y.achievements[0])})]})]},k)})]})});function X6(){var C;const{user:s}=G(T=>T.auth);b.useRef();const{errorToast:t}=he(),[a,i]=b.useState(()=>{const T=localStorage.getItem(`resumeData-${s}`);return T?JSON.parse(T):null}),[n,r]=b.useState(null),[l,c]=b.useState(0),[o,p]=b.useState("edit"),h=b.useRef(),[d,u]=b.useState(localStorage.getItem("resume_template_type")||"paidv1"),m=b.useRef(null),[f,v]=b.useState(!1),[N,_]=b.useState(0),[x,j]=b.useState([]),[I,w]=b.useState(!1),y=b.useCallback(async T=>{try{typeof T=="number"&&_(T);const A=await M6();_(A.totalAvailableCredit),j(A.aiLog||[])}catch(A){console.error("Failed to fetch AI credits:",A),typeof T!="number"&&(_(0),j([]))}},[]);b.useEffect(()=>{y()},[y]);const k=b.useMemo(()=>lo.debounce(T=>{T&&localStorage.setItem(`resumeData-${s}`,JSON.stringify(T))},500),[s]);b.useEffect(()=>(k(a),()=>{k.cancel()}),[a,k]);const S=async()=>{try{await I6({resumeType:d==="free"?"Free":"Paid"}),g()}catch(T){console.error(T),t("Unable to download resume.")}},g=fd.useReactToPrint({content:()=>h.current,documentTitle:`Resume_${((C=a==null?void 0:a.personalDetails)==null?void 0:C.fullName)||"Download"}`}),E=ts().userUniqueId;
175return e.jsxs("div",{className:"resume-builder-wrapper",children:[e.jsx(G6,{completionScore:l,oldImage:n,setOldImage:r,subtitle:d,onDownload:S,resumeData:a,isFormDirty:f,setIsFormDirty:v,resumeType:d,setResumeType:u,activeTab:o,setActiveTab:p,validateForm:()=>{var T;return(T=m.current)==null?void 0:T.call(m)},credits:N,onBuyCredits:()=>w(!0),aiLogs:x}),e.jsxs("div",{className:"resume-builder",children:[e.jsx("div",{className:`form-column ${o==="edit"?"active":""}`,children:e.jsx(O6,{setCompletionScore:c,resumeData:a,oldImage:n,setOldImage:r,setResumeData:i,userUniqueId:E,isFormDirty:f,setIsFormDirty:v,onRegisterTrigger:T=>m.current=T,credits:N,onInsufficientCredits:()=>w(!0),onCreditsUsed:y})}),e.jsx("div",{className:`preview-column ${o==="preview"?"active":""}`,children:d==="paidv1"?e.jsx(Q6,{data:a,ref:h}):e.jsx(V6,{data:a,ref:h})})]}),I&&e.jsx(Gp,{isOpen:I,onClose:()=>w(!1),onCreditsPurchased:y})]})}const ew=gs(s=>e.jsx(ad,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...s}))(({theme:s})=>({width:40,height:19,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(20px)",color:"var(--primary-color)","& + .MuiSwitch-track":{backgroundColor:"var(--card-surface-primary)",opacity:1,border:"1px solid var(--primary-color)"},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5},"& .MuiSwitch-thumb":{color:"var(--primary-color)"}},"&.Mui-focusVisible .MuiSwitch-thumb":{border:"6px solid #fff"}},"& .MuiSwitch-thumb":{color:"var(--text-color-muted)",boxSizing:"border-box",width:15,height:15},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"var(--card-surface-primary)",border:"1px solid var(--text-color-muted)",opacity:1,transition:s.transitions.create(["background-color"],{duration:500})}})),Cn=()=>{const s=ge(),{successToast:t,errorToast:a,errorHandle:i}=he(),{user:n,userDetails:r,verified:l}=G(u=>u.auth),{gotoLandingPage:c}=Be(),{userProfile:o,loading:p}=G(u=>u.profile),h=b.useCallback(async()=>{try{let u=await So(r==null?void 0:r.tickbigLink);const{profile:m,unseenNotifications:f}=u==null?void 0:u.data;s(Pn(m)),s(Ss(f))}catch(u){i(u)}},[s]);We(async()=>{var u;n&&n!==((u=o==null?void 0:o.user)==null?void 0:u._id)&&h(),l||c()},[h,s]);const d=async()=>{const u=await gp();s(Vh(u==null?void 0:u.data))};return We(()=>{d()},[]),e.jsxs("div",{className:"",children:[e.jsx("div",{className:"",children:e.jsx(Np,{})}),e.jsx("div",{className:"display-flex-aljc-center",children:e.jsx(Ji,{})})]})},Jp=Object.freeze(Object.defineProperty({__proto__:null,IOSSwitch:ew,default:Cn},Symbol.toStringTag,{value:"Module"})),sw=_e.lazy(()=>Ve(()=>import("./DownLoadBusiness-BxQZ-2Xb.js"),__vite__mapDeps([104,1,2,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,44,45,66,3,105,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,101,102]))),tw=_e.lazy(()=>Ve(()=>import("./AdminLayout-BeOQ_WpD.js"),__vite__mapDeps([107,1,2,7,4,8,9,5,6,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),aw=_e.lazy(()=>Ve(()=>import("./AdminDashboard-yaXoI_E0.js"),__vite__mapDeps([108,1,2,5,6,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),nw=_e.lazy(()=>Ve(()=>import("./AdminFreeSubscription-Cht-MLyU.js"),__vite__mapDeps([109,1,2,110,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,8,9,57,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),iw=_e.lazy(()=>Ve(()=>import("./UserHistory-Ctt-X93m.js"),__vite__mapDeps([111,1,2,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,0,3,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),ow=_e.lazy(()=>Ve(()=>import("./CouponHistory-9b_oVxgE.js"),__vite__mapDeps([112,1,2,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),rw=_e.lazy(()=>Ve(()=>import("./AdminCouponCode-C5OnQCwz.js"),__vite__mapDeps([113,1,2,110,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,8,9,57,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),lw=_e.lazy(()=>Ve(()=>import("./AdminMonthlyUpgrade-DDrtIzSR.js"),__vite__mapDeps([114,1,2,48,49,50,34,35,36,37,38,57,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,39,40,41,42,43,44,45,46,47,51,52,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),cw=_e.lazy(()=>Ve(()=>import("./AdminSubscriptionProduct-BE3R8E3y.js"),__vite__mapDeps([115,1,2,5,6,57,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),dw=_e.lazy(()=>Ve(()=>import("./AdminGSTOrdersDownload-BPCJFa1M.js"),__vite__mapDeps([116,1,2,57,117,50,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,51,52,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),mw=_e.lazy(()=>Ve(()=>import("./AdminRefundPayment-5qvbifIb.js"),__vite__mapDeps([118,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),hw=_e.lazy(()=>Ve(()=>import("./MaintenanceSettings-DCVb2HlO.js"),__vite__mapDeps([119,1,2,46,14,47,4,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),uw=_e.lazy(()=>Ve(()=>import("./Job-C7iolpCY.js"),__vite__mapDeps([120,1,2,52,5,6,121,122,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,124,125,126,127,128,129,130,131,132,133,134,135,44,45,57,136,137,138,139,140,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),pw=_e.lazy(()=>Ve(()=>import("./AppliedJobs-BKmCv_ga.js"),__vite__mapDeps([142,1,2,52,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,141,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,136,101,102]))),gw=_e.lazy(()=>Ve(()=>import("./SavedJobs-BXQ9N1Jp.js"),__vite__mapDeps([143,1,2,52,5,6,121,122,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,124,125,126,127,128,129,130,131,132,134,135,44,45,57,136,137,133,139,140,141,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),xw=_e.lazy(()=>Ve(()=>import("./PostJobForm-BWatYOVN.js"),__vite__mapDeps([144,1,2,57,5,6,145,59,16,17,18,4,60,61,62,135,44,45,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,75,68,76,77,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,69,70,71,72,73,74,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,136,101,102]))),fw=_e.lazy(()=>Ve(()=>import("./RepostJobForm-DnMyxL07.js"),__vite__mapDeps([146,1,2,57,5,6,147,59,16,17,18,4,60,61,62,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,75,68,76,77,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,69,70,71,72,73,74,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,136,101,102]))),jc=_e.lazy(()=>Ve(()=>import("./FullJob-CS2h6zhH.js"),__vite__mapDeps([148,1,2,121,5,6,133,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,134,135,44,45,57,136,137,122,149,54,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),jw=_e.lazy(()=>Ve(()=>import("./OpenJobs-BnkwyQe9.js"),__vite__mapDeps([150,1,2,52,5,6,121,133,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,140,141,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,136,101,102]))),yw=_e.lazy(()=>Ve(()=>import("./ClosedJobs-D1mAPvti.js"),__vite__mapDeps([151,1,2,52,5,6,121,123,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,136,101,102]))),bw=_e.lazy(()=>Ve(()=>import("./JobsDashboard-8xkSm3H7.js"),__vite__mapDeps([152,1,2,153,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,52,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,136,101,102]))),vw=_e.lazy(()=>Ve(()=>import("./Project-CYpp7lOv.js"),__vite__mapDeps([154,1,2,52,5,6,155,122,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,124,125,126,127,128,129,130,131,132,156,135,44,45,57,138,139,133,121,140,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),_w=_e.lazy(()=>Ve(()=>import("./AppliedProjects-C5LTFhqp.js"),__vite__mapDeps([157,1,2,52,5,6,141,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Nw=_e.lazy(()=>Ve(()=>import("./SavedProject-DqwWFZos.js"),__vite__mapDeps([158,1,2,52,5,6,155,122,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,156,135,44,45,57,124,125,126,127,128,129,130,131,132,138,139,133,121,140,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),ww=_e.lazy(()=>Ve(()=>import("./OpenProjects-D4UL-bxO.js"),__vite__mapDeps([159,1,2,52,5,6,155,133,121,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,140,48,49,50,34,35,36,37,38,141,7,8,9,10,11,31,32,33,39,40,41,42,43,44,45,46,47,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Sw=_e.lazy(()=>Ve(()=>import("./ClosedProjects-BS3thUBF.js"),__vite__mapDeps([160,1,2,5,6,52,155,123,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),yc=_e.lazy(()=>Ve(()=>import("./FullProjectPage-dI6wxT9Z.js"),__vite__mapDeps([161,1,2,5,6,156,135,44,45,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,57,133,121,122,149,54,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,137,101,102]))),kw=_e.lazy(()=>Ve(()=>import("./ProjectPostingFormContent-BTaNl-my.js"),__vite__mapDeps([162,1,2,57,5,6,145,59,16,17,18,4,60,61,62,135,44,45,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,75,68,76,77,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,69,70,71,72,73,74,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Cw=_e.lazy(()=>Ve(()=>import("./ProjectRepostingForm-BMZjV7bO.js"),__vite__mapDeps([163,1,2,57,5,6,147,59,16,17,18,4,60,61,62,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,75,68,76,77,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,69,70,71,72,73,74,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Tw=_e.lazy(()=>Ve(()=>
175import("./ProjectDashboard-BnxDYibV.js"),__vite__mapDeps([164,1,2,5,6,153,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Iw=_e.lazy(()=>Ve(()=>import("./Fundraising-BdSHi0wo.js"),__vite__mapDeps([165,1,2,52,5,6,166,167,121,122,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,124,125,126,127,128,129,130,131,132,133,168,140,169,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Aw=_e.lazy(()=>Ve(()=>import("./OpenFundraising-ByL8rep1.js"),__vite__mapDeps([170,1,2,52,5,6,171,167,133,121,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,172,169,123,140,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Ew=_e.lazy(()=>Ve(()=>import("./ClosedFundraising-C4KjcwH5.js"),__vite__mapDeps([173,1,2,52,5,6,167,121,172,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,169,123,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),bc=_e.lazy(()=>Ve(()=>import("./SingleFundraising-Cmxbz45e.js"),__vite__mapDeps([174,1,2,5,6,166,167,121,122,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,124,125,126,127,128,129,130,131,132,133,168,140,169,171,172,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Mw=_e.lazy(()=>Ve(()=>import("./FundraisingForm-AD5NLlNn.js"),__vite__mapDeps([175,1,2,57,145,59,16,17,18,4,60,61,62,5,6,135,44,45,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,169,101,102]))),Pw=_e.lazy(()=>Ve(()=>import("./FundraisingRepost-BEMfI74j.js"),__vite__mapDeps([176,1,2,57,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,5,6,147,59,60,61,62,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,169,101,102]))),Rw=_e.lazy(()=>Ve(()=>import("./SavedFundraising-jI-04Xzf.js"),__vite__mapDeps([177,1,2,52,5,6,167,133,121,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,122,123,124,125,126,127,128,129,130,131,132,168,140,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,169,101,102]))),Lw=_e.lazy(()=>Ve(()=>import("./Investing-N1PTkbN4.js"),__vite__mapDeps([178,1,2,52,5,6,179,180,135,44,45,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,57,8,9,181,137,133,121,122,123,140,141,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Fw=_e.lazy(()=>Ve(()=>import("./OpenInvesting-C2fSANXv.js"),__vite__mapDeps([182,1,2,52,5,6,183,133,121,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,123,140,181,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Bw=_e.lazy(()=>Ve(()=>import("./ClosedInvesting-WLgmBaxN.js"),__vite__mapDeps([184,1,2,52,5,6,123,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,141,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,181,101,102]))),vc=_e.lazy(()=>Ve(()=>import("./singleInvesting-Cwj8zlOI.js"),__vite__mapDeps([185,1,2,5,6,179,180,135,44,45,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,57,8,9,181,137,133,121,122,123,140,183,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Ow=_e.lazy(()=>Ve(()=>import("./InvestingDashboard-D6o58VM5.js"),__vite__mapDeps([186,1,2,5,6,153,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,181,101,102]))),Uw=_e.lazy(()=>Ve(()=>import("./SavedInvesting-BdxHL0jN.js"),__vite__mapDeps([187,1,2,52,5,6,180,135,44,45,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,57,8,9,181,137,133,121,122,123,140,141,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Dw=_e.lazy(()=>Ve(()=>import("./AppliedInvesting-pQbkNJlP.js"),__vite__mapDeps([188,1,2,5,6,52,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,181,101,102]))),qw=_e.lazy(()=>Ve(()=>import("./InvestingForm-CJFAUfQz.js"),__vite__mapDeps([189,1,2,57,5,6,145,59,16,17,18,4,60,61,62,135,44,45,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,181,101,102]))),Vw=_e.lazy(()=>Ve(()=>import("./InvestingRepost-CSXScy_3.js"),__vite__mapDeps([190,1,2,57,5,6,147,59,16,17,18,4,60,61,62,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,8,9,7,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,181,101,102]))),zw=_e.lazy(()=>Ve(()=>import("./Notification-DKWn5ACM.js"),__vite__mapDeps([191,1,2,5,6,48,49,50,34,35,36,37,38,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,46,47,7,8,9,10,11,31,32,33,39,40,41,42,43,44,45,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Ww=_e.lazy(()=>Ve(()=>import("./Cart2-DfPd3ky3.js"),__vite__mapDeps([192,1,2,5,6,12,13,14,15,4,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,57,7,8,9,10,11,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,193,101,102]))),$w=_e.lazy(()=>Ve(()=>Promise.resolve().then(()=>Rk),void 0)),Hw=_e.lazy(()=>Ve(()=>import("./ProfileProjectSingle-CWXkdwWG.js"),__vite__mapDeps([194,1,2,5,6,54,8,9,4,7,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Gw=_e.lazy(()=>Ve(()=>Promise.resolve().then(()=>N9),void 0)),Jw=_e.lazy(()=>Ve(()=>import("./Admin-BruO8yrL.js"),__vite__mapDeps([195,1,2,5,6,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]))),Yw=()=>{const{user:s,verified:t,userDetails:{isGreen:a}}=G(i=>i.auth);return e.jsxs(e.Fragment,{children:[e.jsx(ao,{hideProgressBar:!0,autoClose:800,position:"top-center"}),e.jsxs(io,{children:[e.jsx(ce,{element:e.jsx(bi,{}),children:e.jsx(ce,{path:"/extension-privacy",element:e.jsx(_6,{})})}),e.jsx(ce,{path:"/maintenance",element:e.jsx(wn,{})}),e.jsxs(ce,{element:e.jsx(n_,{}),children:[e.jsx(ce,{path:"/signup",element:e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/forgotpassword",element:e.jsx(rs,{to:"/home",replace:!0})})]}),e.jsxs(ce,{element:e.jsx(i_,{}),children:[e.jsx(ce,{path:"/messages",element:e.jsx(El,{})}),e.jsx(ce,{path:"/messages/:convoid",element:e.jsx(El,{})})]}),e.jsxs(ce,{element:e.jsx(bi,{}),children:[e.jsx(ce,{path:"/privacy",element:e.jsx(tp,{})}),e.jsx(ce,{path:"/about",element:e.jsx(ap,{})}),e.jsx(ce,{path:"/contact",element:e.jsx(np,{})}),e.jsx(ce,{path:"/blog/how-to-raise-fund-faster",element:e.jsx(Op,{})})]}),e.jsxs(ce,{element:e.jsx(s_,{}),children:[e.jsxs(ce,{element:e.jsx(R_,{}),children:[e.jsx(ce,{path:"/jobs",element:e.jsx(uw,{})}),e.jsx(ce,{path:"/projects",element:e.jsx(vw,{})}),e.jsx(ce,{path:"/fundraising",element:e.jsx(Iw,{})}),e.jsx(ce,{path:"/refer-investing/:investref",element:e.jsx(vc,{})}),e.jsx(ce,{path:"/refer-fundraising/:fundref",element:e.jsx(bc,{})}),e.jsx(ce,{path:"/fundraising/:fundref",element:e.jsx(bc,{})}),e.jsx(ce,{path:"/investing/:investref",element:e.jsx(vc,{})}),e.jsx(ce,{path:"/investing",element:e.jsx(Lw,{})})]}),e.jsx(ce,{path:"/notification",element:e.jsx(zw,{})}),e.jsx(ce,{path:"/follow",element:e.jsx(EN,{})}),e.jsxs(ce,{element:e.jsx(t_,{}),children:[e.jsx(ce,{path:"/applied-jobs",element:e.jsx(pw,{})}),e.jsx(ce,{path:"/saved-jobs",element:e.jsx(gw,{})}),e.jsx(ce,{path:"/open-jobs",element:e.jsx(jw,{})}),e.jsx(ce,{path:"/closed-jobs",element:e.jsx(yw,{})}),e.jsx(ce,{path:"/open-projects",element:e.jsx(ww,{})}),e.jsx(ce,{path:"/closed-projects",element:e.jsx(Sw,{})}),e.jsx(ce,{path:"/open-fundraising",element:e.jsx(Aw,{})}),e.jsx(ce,{path:"/closed-fundraising",element:e.jsx(Ew,{})}),e.jsx(ce,{path:"/open-investing",element:e.jsx(Fw,{})}),e.jsx(ce,{path:"/closed-investing",element:e.jsx(Bw,{})}),e.jsx(ce,{path:"/applied-projects",element:e.jsx(_w,{})}),e.jsx(ce,{path:"/saved-projects",element:e.jsx(Nw,{})}),e.jsx(ce,{path:"/applied-investing",element:e.jsx(Dw,{})}),e.jsx(ce,{path:"/saved-investing",element:e.jsx(Uw,{})})]}),e.jsx(ce,{element:e.jsx(B_,{}),children:e.jsx(ce,{path:"/saved-fundraisings",element:e.jsx(Rw,{})})}),e.jsx(ce,{path:"/full-job/:jobref",element:e.jsx(jc,{})}),e.jsx(ce,{path:"/jobs-dashboard/:id",element:e.jsx(bw,{})}),e.jsx(ce,{path:"/refer-job/:jobref",element:e.jsx(jc,{})}),e.jsx(ce,{path:"/full-project/:projectref",element:e.jsx(yc,{})}),e.jsx(ce,{path:"/refer-project/:projectref",element:e.jsx(yc,{})}),e.jsx(ce,{path:"/project-dash/:id",element:e.jsx(Tw,{})}),e.jsx(ce,{path:"/review/:reviewUniqueId",element:e.jsx(Gw,{})}),e.jsx(ce,{path:"/investing-dash/:id",element:e.jsx(Ow,{})})]}),e.jsxs(ce,{element:e.jsx(bi,{}),children:[e.jsx(ce,{path:"/post-job",element:e.jsx(xw,{})}),e.jsx(ce,{path:"/post-job/:jobid",element:e.jsx(fw,{})}),e.jsx(ce,{path:"/post-project",element:e.jsx(kw,{})}),e.jsx(ce,{path:"/post-project/:id",element:e.jsx(Cw,{})}),e.jsx(ce,{path:"/profile/:userUniqueId",element:e.jsx($w,{})}),e.jsx(ce,{path:"/build-resume/:userUniqueId",element:e.jsx(X6,{})}),e.jsx(ce,{path:"/profile/project/:ppId",element:e.jsx(Hw,{})}),e.jsx(ce,{path:"post-fundraising",element:e.jsx(Mw,{})}),e.jsx(ce,{path:"post-fundraising/:fundId",element:e.jsx(Pw,{})}),e.jsx(ce,{path:"post-investing",element:e.jsx(qw,{})}),e.jsx(ce,{path:"post-investing/:invId",element:e.jsx(Vw,{})}),e.jsx(ce,{path:"/blog",element:e.jsx(Dp,{})}),e.jsx(ce,{path:"/blog/:slug",element:e.jsx(qp,{})}),e.jsxs(ce,{element:e.jsx(m_,{}),children:[e.jsx(ce,{path:"/admin",element:e.jsx(Jw,{})}),e.jsx(ce,{path:"/settings",element:e.jsx(bN,{})}),e.jsx(ce,{path:"/subscription",element:e.jsx(jN,{})}),e.jsx(ce,{path:"/purchasehistory",element:e.jsx(wN,{})}),e.jsx(ce,{path:"/security",element:e.jsx(yN,{})}),e.jsx(ce,{path:"/cart",element:e.jsx(Ww,{})})]}),e.jsxs(ce,{element:e.jsx(tw,{}),children:[e.jsx(ce,{path:"/superadmin",element:a?e.jsx(aw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/free-subscription",element:a?e.jsx(nw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/userhistory/:userid",element:a?e.jsx(iw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/coupon",element:a?e.jsx(ow,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/monthly-update",element:a?e.jsx(lw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/create-coupon",element:a?e.jsx(rw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/subscription-product",element:a?e.jsx(cw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/download-gst-orders",element:a?e.jsx(dw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/download-invoices",element:a?e.jsx(BN,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/refund-payment",element:a?e.jsx(mw,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/download-consolidated-invoice",element:a?e.jsx(a5,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/new-blog-article",element:a?e.jsx(u6,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/delete-data",element:a?e.jsx(b6,{}):e.jsx(rs,{to:"/home",replace:!0})}),e.jsx(ce,{path:"/maintenance-settings",element:a?e.jsx(hw,{}):e.jsx(rs,{to:"/home",replace:!0})})]}),e.jsxs(ce,{element:e.jsx(RN,{}),children:[e.jsx(ce,{path:"/search",element:e.jsx(MN,{})}),e.jsx(ce,{path:"/pro-search",element:e.jsx(PN,{})})]})]}),e.jsxs(ce,{element:e.jsx(R5,{}),children:[e.jsx(ce,{path:"/",element:e.jsx(Cn,{})}),e.jsx(ce,{path:"/home",element:e.jsx(Cn,{})}),e.jsx(ce,{path:"/ambo-service-provider/:ridpid",element:e.jsx(k6,{})}),e.jsx(ce,{path:"/ambo-service-provider",element:e.jsx(y6,{})}),e.jsx(ce,{path:"/agent-ambo",element:e.jsx(Ji,{})}),e.jsx(ce,{path:"/newchat",element:e.jsx(Ji,{})}),e.jsx(ce,{path:"/ambo/:chatInsideId",element:e.jsx(s6,{})}),e.jsx(ce,{path:"/refer-results/:chatInsideId",element:e.jsx(t6,{})}),e.jsx(ce,{path:"/ambo-service-request/:clientId",element:e.jsx(N6,{})})]}),e.jsx(ce,{path:"/verify-email",exact:!0,element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(Ku,{})}),e.jsx(ce,{path:"/verify-mobile",exact:!0,element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(Qu,{})}),e.jsx(ce,{path:"*",element:e.jsx(c_,{})}),e.jsx(ce,{path:"/fortune/:fortuneId",exact:!0,element:e.jsx(sw,{})})]})]})},Zw=_e.lazy(()=>Ve(()=>Promise.resolve().then(()=>r_),void 0)),Kw=_e.lazy(()=>Ve(()=>Promise.resolve().then(()=>l_),void 0)),Qw=_e.lazy(()=>Ve(()=>Promise.resolve().then(()=>Lk),void 0)),Xw=_e.lazy(()=>Ve(()=>Promise.resolve().then(()=>$k),void 0));function eS(){const{user:s,verified:t}=G(a=>a.auth);return e.jsxs(e.Fragment,{children:[e.jsx(ao,{hideProgressBar:!0,autoClose:600,position:"top-center"}),e.jsxs(io,{children:[e.jsx(ce,{path:"/verify-email",exact:!0,element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(Zw,{})}),e.jsx(ce,{path:"/verify-mobile",exact:!0,element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(Kw,{})}),e.jsx(ce,{path:"/signin",element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(Qw,{})}),e.jsx(ce,{path:"/signup",element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(Xw,{})})]})]})}const sS=()=>e.jsx(e.Fragment,{children:e.jsx("div",{className:"fdc homeWrap",children:e.jsx("section",{className:"container-lg",style:{height:"100vh"},children:e.jsx("main",{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx($s,{})}
175)})})})})}),tS=()=>e.jsx("div",{className:"fdc homeWrap",children:e.jsx("section",{className:"container-lg",style:{height:"100vh"},children:e.jsxs("main",{children:[e.jsx(wa,{}),e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx($s,{})})})]})})}),aS=()=>e.jsxs("svg",{width:"200",height:"150",viewBox:"0 0 160 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"20",y:"20",width:"80",height:"90",rx:"4",transform:"rotate(-15 20 20)",fill:"#2C2D30",stroke:"#4a4a4a",strokeWidth:"2"}),e.jsx("rect",{x:"35",y:"30",width:"30",height:"30",rx:"2",transform:"rotate(-15 35 30)",fill:"#4a4a4a"}),e.jsx("circle",{cx:"45",cy:"75",r:"8",transform:"rotate(-15 45 75)",fill:"#4a4a4a"}),e.jsx("rect",{x:"65",y:"65",width:"25",height:"4",rx:"2",transform:"rotate(-15 65 65)",fill:"#4a4a4a"}),e.jsx("rect",{x:"65",y:"75",width:"20",height:"4",rx:"2",transform:"rotate(-15 65 75)",fill:"#4a4a4a"}),e.jsx("rect",{x:"65",y:"85",width:"25",height:"4",rx:"2",transform:"rotate(-15 65 85)",fill:"#4a4a4a"}),e.jsx("rect",{x:"70",y:"30",width:"70",height:"90",rx:"4",fill:"#36373A",stroke:"#4a4a4a",strokeWidth:"2"}),e.jsx("rect",{x:"80",y:"45",width:"20",height:"20",rx:"4",fill:"transparent",stroke:"#00C875",strokeWidth:"2"}),e.jsx("circle",{cx:"90",cy:"52",r:"3",fill:"#00C875"}),e.jsx("path",{d:"M84 62C84 59.5 87 58 90 58C93 58 96 59.5 96 62",stroke:"#00C875",strokeWidth:"2",strokeLinecap:"round"}),e.jsx("rect",{x:"110",y:"45",width:"20",height:"4",rx:"2",fill:"#00C875"}),e.jsx("rect",{x:"110",y:"55",width:"20",height:"4",rx:"2",fill:"#00C875"}),e.jsx("rect",{x:"110",y:"65",width:"20",height:"4",rx:"2",fill:"#00C875"}),e.jsx("rect",{x:"80",y:"75",width:"50",height:"4",rx:"2",fill:"#6A6A6A"}),e.jsx("rect",{x:"80",y:"85",width:"50",height:"4",rx:"2",fill:"#6A6A6A"}),e.jsx("rect",{x:"80",y:"95",width:"50",height:"4",rx:"2",fill:"#6A6A6A"}),e.jsx("rect",{x:"80",y:"105",width:"40",height:"4",rx:"2",fill:"#6A6A6A"}),e.jsx("rect",{x:"145",y:"45",width:"6",height:"45",rx:"3",fill:"#4a4a4a"}),e.jsx("path",{d:"M145 90L148 100L151 90H145Z",fill:"#00C875"}),e.jsx("rect",{x:"146",y:"40",width:"4",height:"6",rx:"1",fill:"#00C875"})]});function nS({onOpenModal:s}){return e.jsx("div",{className:"resume-section-container",children:e.jsxs("div",{className:"resume-card",children:[e.jsxs("div",{className:"resume-card-left",children:[e.jsx("h3",{className:"resume-card-title",children:"Resume Builder"}),e.jsx("p",{className:"resume-card-desc",children:"Create a job-ready resume in minutes and apply instantly."}),e.jsxs("button",{className:"resume-create-btn",onClick:s,children:[e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12 3L14.5 9L21 12L14.5 15L12 21L9.5 15L3 12L9.5 9L12 3Z",fill:"currentColor"}),e.jsx("path",{d:"M19 3L20 5.5L22.5 6.5L20 7.5L19 10L18 7.5L15.5 6.5L18 5.5L19 3Z",fill:"currentColor"})]}),"Create Resume"]}),e.jsx("a",{href:"#",className:"upload-link-mobile",onClick:t=>{t.preventDefault(),s()},children:"Upload existing resume →"})]}),e.jsx("div",{className:"resume-card-illustration",children:e.jsx(aS,{})})]})})}const iS=()=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M14 2H6C4.89543 2 4 2.89543 4 4V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V8L14 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14 2V8H20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"13",r:"3",stroke:"currentColor",strokeWidth:"2"}),e.jsx("path",{d:"M9 19H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 16H14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),_c=()=>e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11 4H4C3.46957 4 2.96086 4.21071 2.58579 4.58579C2.21071 4.96086 2 5.46957 2 6V20C2 20.5304 2.21071 21.0391 2.58579 21.4142C2.96086 21.7893 3.46957 22 4 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M18.5 2.5A2.12132 2.12132 0 0121.5 5.5L12 15L8 16L9 12L18.5 2.5Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),oS=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),rS=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});function lS({fileName:s,onRemove:t,onReplace:a,resumeUrl:i}){const[n,r]=b.useState(!1),{errorToast:l,successToast:c}=he(),o=ge(),p=async()=>
175{if(i)try{const u=await(await fetch(i)).blob(),m=window.URL.createObjectURL(u),f=document.createElement("a");f.href=m,f.download=s||"Uploaded_Resume.pdf",document.body.appendChild(f),f.click(),document.body.removeChild(f),window.URL.revokeObjectURL(m)}catch(d){console.error("Download failed, falling back to open",d),window.open(i,"_blank")}},h=async()=>{try{const d=await z.put("/users/delete-resume");d&&d.status===200&&(c("Resume deleted successfully."),o(Vn({resume:null},"resume")),o(Rn(null,"resume")),r(!1))}catch(d){console.error(d),l("Failed to delete resume.")}};return e.jsxs("div",{className:"resume-section-container",children:[e.jsx("div",{className:"resume-section-header",children:"Resume Builder"}),e.jsxs("div",{className:"my-resumes-header",children:[e.jsxs("div",{className:"my-resumes-title-group",children:[e.jsx("h3",{className:"resume-card-title",children:"My Resumes"}),e.jsx("p",{className:"resume-card-desc",children:"Manage your resumes and apply for jobs faster."})]}),e.jsxs("button",{className:"resume-create-btn",onClick:a,children:[e.jsx(_c,{})," Update Resume"]})]}),e.jsx("div",{className:"my-resumes-list",children:e.jsxs("div",{className:"my-resume-document-card",children:[e.jsxs("div",{className:"resume-file-info",children:[e.jsx("div",{className:"resume-file-icon",children:e.jsx(iS,{})}),e.jsxs("div",{className:"resume-file-details",children:[e.jsx("h4",{className:"resume-file-name",title:s,children:s||"Uploaded_Resume.pdf"}),e.jsx("p",{className:"resume-file-size",children:"Uploaded • 2 days ago"})]})]}),e.jsxs("button",{className:"document-download-btn",onClick:p,disabled:!i,children:[e.jsx(rS,{})," Download"]}),e.jsxs("button",{className:"document-delete-btn",onClick:()=>r(!0),children:[e.jsx(oS,{})," Delete"]})]})}),e.jsxs("div",{className:"mobile-resume-footer",children:[e.jsx("p",{className:"resume-card-desc",children:"Manage your resume and apply for jobs faster."}),e.jsxs("button",{className:"resume-create-btn",onClick:a,style:{width:"100%"},children:[e.jsx(_c,{})," Update Resume"]})]}),e.jsx(qe,{open:n,onClose:()=>r(!1),children:e.jsx("div",{className:"delete-modal-wrapper",children:e.jsxs("div",{className:"delete-modal-content",children:[e.jsx("h3",{className:"delete-modal-title",children:"Delete Resume"}),e.jsxs("p",{className:"delete-modal-text",children:['Are you sure you want to delete "',s,'"? This action cannot be undone.']}),e.jsxs("div",{className:"delete-modal-actions",children:[e.jsx("button",{className:"delete-cancel-btn",onClick:()=>r(!1),children:"Cancel"}),e.jsx("button",{className:"delete-confirm-btn",onClick:h,children:"Delete"})]})]})})})]})}const Nc=()=>e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),wc=()=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12 16V8M12 8L9 11M12 8L15 11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12Z",stroke:"currentColor",strokeWidth:"2"})]}),cS=()=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M9 12H15M9 16H15M17 21H7C5.89543 21 5 20.1046 5 19V5C5 3.89543 5.89543 3 7 3H12.5L19 9.5V19C19 20.1046 18.1046 21 17 21Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14 11H12M12 11L12.5 8.5L14 11Z",fill:"#00C875"}),e.jsx("path",{d:"M11 7H10M10 7L10.5 4.5L11 7Z",stroke:"currentColor"})]}),dS=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M14 2H6C4.89543 2 4 2.89543 4 4V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V8L14 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14 2V8H20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"13",r:"3",stroke:"currentColor",strokeWidth:"2"}),e.jsx("path",{d:"M9 19H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M10 16H14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});function mS({open:s,onClose:t,initialView:a="choose_method"}){const[i,n]=b.useState(a),[r,l]=b.useState(null),[c,o]=b.useState(!1),p=b.useRef(null),{errorToast:h,successToast:d}
175=he(),u=ge(),m=Mt(),{userDetails:f}=G(C=>C.auth),v=()=>{n("choose_method"),l(null),t&&t()},N=()=>n("upload_file"),_=()=>{v(),f!=null&&f.tickbigLink?m(`/build-resume/${f.tickbigLink}`):h("User profile link not found.")},x=C=>{if(C===0)return"0 Bytes";const T=1024,A=["Bytes","KB","MB","GB"],R=Math.floor(Math.log(C)/Math.log(T));return parseFloat((C/Math.pow(T,R)).toFixed(2))+" "+A[R]},j=C=>{if(!C)return;if(C.type!=="application/pdf"){h("Please upload a valid PDF file.");return}const T=5*1024*1024;if(C.size>T){h("File size must be less than 5 MB.");return}l({name:C.name,size:x(C.size),fileObj:C}),n("file_selected")},I=C=>{j(C.target.files[0])},w=C=>{C.preventDefault(),o(!0)},y=C=>{C.preventDefault(),o(!1)},k=C=>{C.preventDefault(),o(!1),C.dataTransfer.files&&C.dataTransfer.files.length>0&&j(C.dataTransfer.files[0])},S=()=>{p.current&&p.current.click()},g=async()=>{var C;if(!(!r||!r.fileObj))try{const T=await ya("cv",r.fileObj,r.fileObj.type);if(T){const R=await Au({urlIs:T,oldFile:"",awsFolderName:"cv"});R&&(R==null?void 0:R.statusCode)===200&&(u(Vn(R==null?void 0:R.data,"resume")),u(Rn((C=R==null?void 0:R.data)==null?void 0:C.resume,"resume")),d("Primary resume updated successfully!"),v())}}catch(T){console.error(T),h("Failed to upload primary resume")}},E=()=>{if(i==="choose_method")return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"modal-header",children:[e.jsx("h2",{className:"modal-title",children:"Create Your Resume"}),e.jsx("p",{className:"modal-subtitle",children:"Choose how you want to start building your resume."})]}),e.jsxs("div",{className:"modal-cards-container",children:[e.jsxs("div",{className:"modal-action-card",children:[e.jsx("div",{className:"modal-icon-circle",children:e.jsx(cS,{})}),e.jsx("h3",{className:"modal-card-title",children:"Build Resume from Scratch"}),e.jsx("p",{className:"modal-card-desc",children:"Use our guided resume builder to create a professional resume."}),e.jsx("button",{className:"modal-card-btn primary",onClick:_,children:"Build Resume"})]}),e.jsxs("div",{className:"modal-action-card",children:[e.jsx("div",{className:"modal-icon-circle",children:e.jsx(wc,{})}),e.jsx("h3",{className:"modal-card-title",children:"Upload Existing Resume"}),e.jsx("p",{className:"modal-card-desc",children:"Upload your PDF or DOC resume and use it for job applications."}),e.jsx("button",{className:"modal-card-btn secondary",onClick:N,children:"Upload Resume"})]})]})]});if(i==="upload_file")return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"modal-header",style:{textAlign:"left"},children:[e.jsx("h2",{className:"modal-title",children:"Upload Resume"}),e.jsx("p",{className:"modal-subtitle",children:"Upload your existing resume to get started quickly."})]}),e.jsxs("div",{className:`upload-area-container ${c?"drag-active":""}`,onDragOver:w,onDragLeave:y,onDrop:k,children:[e.jsx("input",{type:"file",accept:".pdf",ref:p,style:{display:"none"},onChange:I}),e.jsx("div",{className:"modal-icon-circle",children:e.jsx(wc,{})}),e.jsx("h3",{className:"upload-title",children:"Drag and drop your resume here"}),e.jsx("p",{className:"upload-subtitle",children:"or browse files from your computer"}),e.jsx("button",{className:"resume-create-btn",onClick:S,children:"Browse Files"}),e.jsx("span",{className:"upload-formats",children:"Supported formats: PDF, DOC, DOCX (Max 10MB)"})]})]});if(i==="file_selected")return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"modal-header",style:{textAlign:"left"},children:[e.jsx("h2",{className:"modal-title",children:"Upload Resume"}),e.jsx("p",{className:"modal-subtitle",children:"Upload your existing resume to get started quickly."})]}),e.jsxs("div",{className:"selected-file-container",children:[e.jsxs("div",{className:"file-info-group",children:[e.jsx("div",{className:"resume-file-icon",style:{width:32,height:32,borderRadius:6},children:e.jsx(dS,{})}),e.jsxs("div",{className:"resume-file-details",children:[e.jsx("span",{className:"resume-file-name",style:{fontSize:14},children:r==null?void 0:r.name}),e.jsx("span",{className:"resume-file-size",style:{fontSize:12},children:r==null?void 0:r.size})]})]}),e.jsx("button",{className:"file-remove-btn",onClick:()=>n("upload_file"),children:e.jsx(Nc,{})})]}),e.jsxs("div",{className:"modal-bottom-actions",children:[e.jsx("button",{className:"resume-secondary-btn",onClick:()=>n("upload_file"),children:"Replace File"}),e.jsx("button",{className:"resume-primary-btn",onClick:g,children:"Set as Primary Resume"})]})]})};return e.jsx(qe,{open:s,onClose:v,children:e.jsx("div",{className:"custom-modal-wrapper",children:e.jsxs("div",{className:"custom-modal-content",children:[e.jsx("button",{className:"modal-close-btn",onClick:v,children:e.jsx(Nc,{})}),E()]})})})}const Ut="data:image/svg+xml,%3csvg%20id='Group_10127'%20data-name='Group%2010127'%20xmlns='http://www.w3.org/2000/svg'%20width='27'%20height='26.997'%20viewBox='0%200%2027%2026.997'%3e%3cpath%20id='Path_24815'%20data-name='Path%2024815'%20d='M5.446,18.13l1.7-4.259a5.4,5.4,0,0,1,1.195-1.812l9.342-9.339a2.864,2.864,0,1,1,4.05,4.05l-9.342,9.339a5.4,5.4,0,0,1-1.813,1.2l-4.258,1.7a.675.675,0,0,1-.877-.87
1757Z'%20transform='translate(4.425%20-1.881)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_24816'%20data-name='Path%2024816'%20d='M4.549,7.672A2.125,2.125,0,0,1,6.672,5.549h8.92a1.274,1.274,0,1,0,0-2.549H6.672A4.672,4.672,0,0,0,2,7.672V23.813a4.672,4.672,0,0,0,4.672,4.672H22.814a4.672,4.672,0,0,0,4.672-4.672v-8.92a1.274,1.274,0,0,0-2.549,0v8.92a2.125,2.125,0,0,1-2.124,2.124H6.672a2.125,2.125,0,0,1-2.124-2.124Z'%20transform='translate(-2%20-1.489)'%20fill='%23a7aaab'/%3e%3c/svg%3e",hS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='33.71'%20height='33.71'%20viewBox='0%200%2033.71%2033.71'%3e%3cdefs%3e%3cclipPath%20id='clip-path'%3e%3crect%20id='Rectangle_3570'%20data-name='Rectangle%203570'%20width='33.71'%20height='33.71'%20fill='none'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='Group_10293'%20data-name='Group%2010293'%20transform='translate(0)'%3e%3cg%20id='Group_10292'%20data-name='Group%2010292'%20transform='translate(0)'%20clip-path='url(%23clip-path)'%3e%3cpath%20id='Path_24999'%20data-name='Path%2024999'%20d='M568.628,531.221l.039.056-.031,0c-.526,0-1.051,0-1.577,0a.214.214,0,0,1-.2-.1q-1.548-2.221-3.1-4.438l-4.773-6.833-.053-.079h.932c.25,0,.5,0,.749,0a.1.1,0,0,1,.094.049q1.924,2.756,3.85,5.511l4.072,5.828'%20transform='translate(-546.945%20-508.687)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_25000'%20data-name='Path%2025000'%20d='M16.911,0A16.911,16.911,0,1,0,33.822,16.911,16.911,16.911,0,0,0,16.911,0m6.216,23.476-3.1,0c-.15,0-.3,0-.45,0a.106.106,0,0,1-.1-.052q-.994-1.451-1.991-2.9-.711-1.033-1.424-2.064l-.055-.076c-.033.036-.064.067-.092.1l-2.908,3.379q-.678.788-1.356,1.576a.1.1,0,0,1-.068.036c-.325,0-.65,0-.975,0-.031,0-.062,0-.107-.007.035-.044.061-.079.09-.113l1.045-1.215,3.2-3.718c.208-.242.416-.485.625-.726a.077.077,0,0,0,.005-.112q-.943-1.372-1.884-2.746l-3.033-4.415-.054-.08.057,0h3.714a.094.094,0,0,1,.088.049q1.611,2.349,3.225,4.7l.048.068a1.087,1.087,0,0,0,.081-.076q.328-.377.655-.756l2.992-3.48c.134-.156.268-.313.4-.468a.092.092,0,0,1,.06-.03c.335,0,.67,0,1.006,0,.022,0,.043,0,.077.006-.018.022-.028.036-.038.048L18.45,15.54c-.087.1-.169.2-.259.3a.078.078,0,0,0-.005.116c.193.283.382.568.575.85l4.416,6.438c.048.07.095.141.149.221-.073,0-.137.009-.2.009'%20transform='translate(-0.056%20-0.056)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",uS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.713'%20height='33.712'%20viewBox='0%200%2033.713%2033.712'%3e%3cpath%20id='_10502791911556105704'%20data-name='10502791911556105704'%20d='M16.856,0A16.856,16.856,0,1,0,33.713,16.856,16.856,16.856,0,0,0,16.856,0Zm1.757,17.6v9.171
175H14.819V17.6h-1.9v-3.16h1.9v-1.9c0-2.578,1.07-4.111,4.112-4.111h2.532v3.161H19.88c-1.184,0-1.262.442-1.262,1.266l0,1.582H21.48l-.336,3.16Z'%20fill='%23a7aaab'%20fill-rule='evenodd'/%3e%3c/svg%3e",pS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.713'%20height='33.712'%20viewBox='0%200%2033.713%2033.712'%3e%3cg%20id='_9920775951556105709'%20data-name='9920775951556105709'%20transform='translate(0)'%3e%3cpath%20id='Path_4213'%20data-name='Path%204213'%20d='M16.856,0A16.856,16.856,0,1,0,33.713,16.856,16.856,16.856,0,0,0,16.856,0ZM13.15,7.921c.959-.044,1.265-.054,3.707-.054h0c2.442,0,2.748.011,3.707.054a6.619,6.619,0,0,1,2.184.418,4.6,4.6,0,0,1,2.63,2.629,6.66,6.66,0,0,1,.418,2.182c.043.959.054,1.265.054,3.707s-.011,2.747-.054,3.706a6.663,6.663,0,0,1-.418,2.182,4.607,4.607,0,0,1-2.629,2.63,6.608,6.608,0,0,1-2.183.418c-.959.044-1.264.054-3.706.054s-2.748-.011-3.707-.054a6.6,6.6,0,0,1-2.182-.418,4.6,4.6,0,0,1-2.629-2.63,6.607,6.607,0,0,1-.418-2.182c-.043-.959-.054-1.264-.054-3.706s.011-2.748.054-3.707a6.567,6.567,0,0,1,.418-2.182,4.6,4.6,0,0,1,2.63-2.629A6.6,6.6,0,0,1,13.15,7.921Z'%20transform='translate(0)'%20fill='%23a7aaab'%20fill-rule='evenodd'/%3e%3cpath%20id='Path_4214'%20data-name='Path%204214'%20d='M20.071,13.506h.807c2.4,0,2.685.009,3.633.052a4.978,4.978,0,0,1,1.669.31,2.979,2.979,0,0,1,1.706,1.706,4.967,4.967,0,0,1,.31,1.669c.043.948.052,1.232.052,3.632s-.009,2.684-.052,3.632a4.973,4.973,0,0,1-.31,1.669,2.981,2.981,0,0,1-1.706,1.705,4.958,4.958,0,0,1-1.669.31c-.948.043-1.232.052-3.633.052s-2.685-.009-3.633-.052a4.987,4.987,0,0,1-1.669-.31,2.979,2.979,0,0,1-1.707-1.706,4.967,4.967,0,0,1-.31-1.669c-.043-.948-.052-1.232-.052-3.633s.009-2.684.052-3.632a4.978,4.978,0,0,1,.31-1.669,2.98,2.98,0,0,1,1.707-1.707,4.967,4.967,0,0,1,1.669-.31c.829-.037,1.151-.049,2.826-.051ZM25.677,15a1.079,1.079,0,1,0,1.079,1.078A1.079,1.079,0,0,0,25.677,15Zm-9.416,5.877a4.616,4.616,0,1,1,4.617,4.616A4.617,4.617,0,0,1,16.261,20.876Z'%20transform='translate(-4.021%20-4.019)'%20fill='%23a7aaab'%20fill-rule='evenodd'/%3e%3cpath%20id='Path_4215'%20data-name='Path%204215'%20d='M22.731,19.733a3,3,0,1,1-3,3A3,3,0,0,1,22.731,19.733Z'%20transform='translate(-5.874%20-5.874)'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/svg%3e",gS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.713'%20height='33.712'%20viewBox='0%200%2033.713%2033.712'%3e%3cpath%20id='_13880855881556105710'%20data-name='13880855881556105710'%20d='M16.856,0A16.856,16.856,0,1,0,33.713,16.856,16.856,16.856,0,0,0,16.856,0ZM8.092,13.961h3.82V25.439H8.092Zm4.072-3.55a1.984,1.984,0,0,0-2.136-1.982,1.989,1.989,0,1,0-.05,3.966H10A1.992,1.992,0,0,0,12.164,10.411Zm9.126,3.281c2.514,0,4.4,1.641,4.4,5.166v6.581h-3.82V19.3c0-1.542-.553-2.595-1.936-2.595a2.09,2.09,0,0,0-1.96,1.395,2.609,2.609,0,0,0-.126.931v6.41h-3.82s.05-10.4,0-11.477h3.82v1.626A3.793,3.793,0,0,1,21.29,13.692Z'%20fill='%23a7aaab'%20fill-rule='evenodd'/%3e%3c/svg%3e",xS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.71'%20height='33.71'%20viewBox='0%200%2033.71%2033.71'%3e%3cg%20id='Group_8322'%20data-name='Group%208322'%20transform='translate(-3618.71%20-282.09)'%3e%3cpath%20id='Path_4412'%20data-name='Path%204412'%20d='M3630.72,301.72h-4.75a9.383,9.383,0,0,1,.01-5.6h4.74Z'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4413'%20data-name='Path%204413'%20d='M3630.85,294.59h-4.16c.57-2.1,3.74-4.82,5.82-5.07C3631.97,291.18,3631.43,292.83,3630.85,294.59Z'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4414'%20data-name='Path%204414'%20d='M3631.63,305.88c.28.84.65,1.65.97,2.46-1.83.01-5.02-2.64-5.96-5.06h4.31C3631.18,304.17,3631.36,305.04,3631.63,305.88Z'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4415'%20data-name='Path%204415'%20d='M3632.49,294.61a10.37,10.37,0,0,1,1.84-4.88c.83-1.07,1.63-1.07,2.47-.01a10.582,10.582,0,0,1,1.84,4.89Z'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4416'%20data-name='Path%204416'%20d='M3638.65,303.23c-.38,1.96-.76,3.82-2.17,5.27-.66.67-1.31.62-1.99-.15a9.941,9.941,0,0,1-2-5.07c.22-.02.36-.05.51-.05Z'%20fill='%23a7aaab'/%3e%3crect%20id='Rectangle_1696'%20data-name='Rectangle%201696'%20width='6.64'%20height='5.63'%20transform='translate(3632.25%20296.12)'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4417'%20data-name='Path%204417'%20d='M3640.27,303.29h4.14c-.46,2.13-4.02,4.97-5.8,5.08C3639.15,306.72,3639.7,305.05,3640.27,303.29Z'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4418'%20data-name='Path%204418'%20d='M3640.28,294.63c-.56-1.73-1.12-3.43-1.66-5.09,1.8.03,4.98,2.7,5.87,5.09Z'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4419'%20data-name='Path%204419'%20
175d='M3645.14,296.14a9.379,9.379,0,0,1,.02,5.6h-4.76v-5.6Z'%20fill='%23a7aaab'/%3e%3cpath%20id='Path_4420'%20data-name='Path%204420'%20d='M3635.57,282.09a16.855,16.855,0,1,0,16.85,16.86A16.862,16.862,0,0,0,3635.57,282.09ZM3647,300.37c-.06.22-.15.44-.19.67a11.431,11.431,0,0,1-22.36.57,11.369,11.369,0,0,1,6.72-13.21c.95-.39,1.97-.6,2.96-.9h2.86a3.58,3.58,0,0,0,.49.17,11.341,11.341,0,0,1,9.11,8.22c.17.53.27,1.08.41,1.62Z'%20fill='%23a7aaab'/%3e%3c/g%3e%3c/svg%3e",fS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='33.71'%20height='33.71'%20viewBox='0%200%2033.71%2033.71'%3e%3cdefs%3e%3cclipPath%20id='clip-path'%3e%3crect%20id='Rectangle_3570'%20data-name='Rectangle%203570'%20width='33.71'%20height='33.71'%20fill='%2301bf71'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='Group_10293'%20data-name='Group%2010293'%20transform='translate(0)'%3e%3cg%20id='Group_10292'%20data-name='Group%2010292'%20transform='translate(0)'%20clip-path='url(%23clip-path)'%3e%3cpath%20id='Path_24999'%20data-name='Path%2024999'%20d='M568.628,531.221l.039.056-.031,0c-.526,0-1.051,0-1.577,0a.214.214,0,0,1-.2-.1q-1.548-2.221-3.1-4.438l-4.773-6.833-.053-.079h.932c.25,0,.5,0,.749,0a.1.1,0,0,1,.094.049q1.924,2.756,3.85,5.511l4.072,5.828'%20transform='translate(-546.945%20-508.687)'%20fill='%2301bf71'/%3e%3cpath%20id='Path_25000'%20data-name='Path%2025000'%20d='M16.911,0A16.911,16.911,0,1,0,33.822,16.911,16.911,16.911,0,0,0,16.911,0m6.216,23.476-3.1,0c-.15,0-.3,0-.45,0a.106.106,0,0,1-.1-.052q-.994-1.451-1.991-2.9-.711-1.033-1.424-2.064l-.055-.076c-.033.036-.064.067-.092.1l-2.908,3.379q-.678.788-1.356,1.576a.1.1,0,0,1-.068.036c-.325,0-.65,0-.975,0-.031,0-.062,0-.107-.007.035-.044.061-.079.09-.113l1.045-1.215,3.2-3.718c.208-.242.416-.485.625-.726a.077.077,0,0,0,.005-.112q-.943-1.372-1.884-2.746l-3.033-4.415-.054-.08.057,0h3.714a.094.094,0,0,1,.088.049q1.611,2.349,3.225,4.7l.048.068a1.087,1.087,0,0,0,.081-.076q.328-.377.655-.756l2.992-3.48c.134-.156.268-.313.4-.468a.092.092,0,0,1,.06-.03c.335,0,.67,0,1.006,0,.022,0,.043,0,.077.006-.018.022-.028.036-.038.048L18.45,15.54c-.087.1-.169.2-.259.3a.078.078,0,0,0-.005.116c.193.283.382.568.575.85l4.416,6.438c.048.07.095.141.149.221-.073,0-.137.009-.2.009'%20transform='translate(-0.056%20-0.056)'%20fill='%2301bf71'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",jS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.713'%20height='33.712'%20viewBox='0%200%2033.713%2033.712'%3e%3cpath%20id='_10502791911556105704'%20data-name='10502791911556105704'%20d='M16.856,0A16.856,16.856,0,1,0,33.713,16.856,16.856,16.856,0,0,0,16.856,0Zm1.757,17.6v9.171
175H14.819V17.6h-1.9v-3.16h1.9v-1.9c0-2.578,1.07-4.111,4.112-4.111h2.532v3.161H19.88c-1.184,0-1.262.442-1.262,1.266l0,1.582H21.48l-.336,3.16Z'%20fill='%2301bf71'%20fill-rule='evenodd'/%3e%3c/svg%3e",yS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.713'%20height='33.712'%20viewBox='0%200%2033.713%2033.712'%3e%3cg%20id='_9920775951556105709'%20data-name='9920775951556105709'%20transform='translate(0)'%3e%3cpath%20id='Path_4213'%20data-name='Path%204213'%20d='M16.856,0A16.856,16.856,0,1,0,33.713,16.856,16.856,16.856,0,0,0,16.856,0ZM13.15,7.921c.959-.044,1.265-.054,3.707-.054h0c2.442,0,2.748.011,3.707.054a6.619,6.619,0,0,1,2.184.418,4.6,4.6,0,0,1,2.63,2.629,6.66,6.66,0,0,1,.418,2.182c.043.959.054,1.265.054,3.707s-.011,2.747-.054,3.706a6.663,6.663,0,0,1-.418,2.182,4.607,4.607,0,0,1-2.629,2.63,6.608,6.608,0,0,1-2.183.418c-.959.044-1.264.054-3.706.054s-2.748-.011-3.707-.054a6.6,6.6,0,0,1-2.182-.418,4.6,4.6,0,0,1-2.629-2.63,6.607,6.607,0,0,1-.418-2.182c-.043-.959-.054-1.264-.054-3.706s.011-2.748.054-3.707a6.567,6.567,0,0,1,.418-2.182,4.6,4.6,0,0,1,2.63-2.629A6.6,6.6,0,0,1,13.15,7.921Z'%20transform='translate(0)'%20fill='%2301bf71'%20fill-rule='evenodd'/%3e%3cpath%20id='Path_4214'%20data-name='Path%204214'%20d='M20.071,13.506h.807c2.4,0,2.685.009,3.633.052a4.978,4.978,0,0,1,1.669.31,2.979,2.979,0,0,1,1.706,1.706,4.967,4.967,0,0,1,.31,1.669c.043.948.052,1.232.052,3.632s-.009,2.684-.052,3.632a4.973,4.973,0,0,1-.31,1.669,2.981,2.981,0,0,1-1.706,1.705,4.958,4.958,0,0,1-1.669.31c-.948.043-1.232.052-3.633.052s-2.685-.009-3.633-.052a4.987,4.987,0,0,1-1.669-.31,2.979,2.979,0,0,1-1.707-1.706,4.967,4.967,0,0,1-.31-1.669c-.043-.948-.052-1.232-.052-3.633s.009-2.684.052-3.632a4.978,4.978,0,0,1,.31-1.669,2.98,2.98,0,0,1,1.707-1.707,4.967,4.967,0,0,1,1.669-.31c.829-.037,1.151-.049,2.826-.051ZM25.677,15a1.079,1.079,0,1,0,1.079,1.078A1.079,1.079,0,0,0,25.677,15Zm-9.416,5.877a4.616,4.616,0,1,1,4.617,4.616A4.617,4.617,0,0,1,16.261,20.876Z'%20transform='translate(-4.021%20-4.019)'%20fill='%2301bf71'%20fill-rule='evenodd'/%3e%3cpath%20id='Path_4215'%20data-name='Path%204215'%20d='M22.731,19.733a3,3,0,1,1-3,3A3,3,0,0,1,22.731,19.733Z'%20transform='translate(-5.874%20-5.874)'%20fill='%2301bf71'/%3e%3c/g%3e%3c/svg%3e",bS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.713'%20height='33.712'%20viewBox='0%200%2033.713%2033.712'%3e%3cpath%20id='_13880855881556105710'%20data-name='13880855881556105710'%20d='M16.856,0A16.856,16.856,0,1,0,33.713,16.856,16.856,16.856,0,0,0,16.856,0ZM8.092,13.961h3.82V25.439H8.092Zm4.072-3.55a1.984,1.984,0,0,0-2.136-1.982,1.989,1.989,0,1,0-.05,3.966H10A1.992,1.992,0,0,0,12.164,10.411Zm9.126,3.281c2.514,0,4.4,1.641,4.4,5.166v6.581h-3.82V19.3c0-1.542-.553-2.595-1.936-2.595a2.09,2.09,0,0,0-1.96,1.395,2.609,2.609,0,0,0-.126.931v6.41h-3.82s.05-10.4,0-11.477h3.82v1.626A3.793,3.793,0,0,1,21.29,13.692Z'%20fill='%2301bf71'%20fill-rule='evenodd'/%3e%3c/svg%3e",vS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33.71'%20height='33.71'%20viewBox='0%200%2033.71%2033.71'%3e%3cg%20id='Group_8322'%20data-name='Group%208322'%20transform='translate(-3618.71%20-282.09)'%3e%3cpath%20id='Path_4412'%20data-name='Path%204412'%20d='M3630.72,301.72h-4.75a9.383,9.383,0,0,1,.01-5.6h4.74Z'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4413'%20data-name='Path%204413'%20d='M3630.85,294.59h-4.16c.57-2.1,3.74-4.82,5.82-5.07C3631.97,291.18,3631.43,292.83,3630.85,294.59Z'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4414'%20data-name='Path%204414'%20d='M3631.63,305.88c.28.84.65,1.65.97,2.46-1.83.01-5.02-2.64-5.96-5.06h4.31C3631.18,304.17,3631.36,305.04,3631.63,305.88Z'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4415'%20data-name='Path%204415'%20d='M3632.49,294.61a10.37,10.37,0,0,1,1.84-4.88c.83-1.07,1.63-1.07,2.47-.01a10.582,10.582,0,0,1,1.84,4.89Z'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4416'%20data-name='Path%204416'%20d='M3638.65,303.23c-.38,1.96-.76,3.82-2.17,5.27-.66.67-1.31.62-1.99-.15a9.941,9.941,0,0,1-2-5.07c.22-.02.36-.05.51-.05Z'%20fill='%2301bf71'/%3e%3crect%20id='Rectangle_1696'%20data-name='Rectangle%201696'%20width='6.64'%20height='5.63'%20transform='translate(3632.25%20296.12)'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4417'%20data-name='Path%204417'%20d='M3640.27,303.29h4.14c-.46,2.13-4.02,4.97-5.8,5.08C3639.15,306.72,3639.7,305.05,3640.27,303.29Z'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4418'%20data-name='Path%204418'%20d='M3640.28,294.63c-.56-1.73-1.12-3.43-1.66-5.09,1.8.03,4.98,2.7,5.87,5.09Z'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4419'%20data-name='Path%204419'%20
175d='M3645.14,296.14a9.379,9.379,0,0,1,.02,5.6h-4.76v-5.6Z'%20fill='%2301bf71'/%3e%3cpath%20id='Path_4420'%20data-name='Path%204420'%20d='M3635.57,282.09a16.855,16.855,0,1,0,16.85,16.86A16.862,16.862,0,0,0,3635.57,282.09ZM3647,300.37c-.06.22-.15.44-.19.67a11.431,11.431,0,0,1-22.36.57,11.369,11.369,0,0,1,6.72-13.21c.95-.39,1.97-.6,2.96-.9h2.86a3.58,3.58,0,0,0,.49.17,11.341,11.341,0,0,1,9.11,8.22c.17.53.27,1.08.41,1.62Z'%20fill='%2301bf71'/%3e%3c/g%3e%3c/svg%3e";function _S(){var c,o,p,h,d,u,m,f,v,N,_,x,j,I,w,y;const[s,t]=b.useState(!1),a=()=>t(!0),i=()=>t(!1),{user:n}=G(k=>k.auth),{userProfile:r}=G(k=>k.profile),l=({socialLink:k,iconImage:S})=>e.jsx("a",{href:k,target:"_blank",className:k?"":"disabled-link",children:e.jsx("span",{className:"profile__footer-icons",children:S})});return e.jsxs(e.Fragment,{children:[e.jsxs("section",{style:{marginBottom:"10px"},children:[e.jsxs("section",{className:"Profile_Section_container",children:[e.jsxs("div",{className:"display-flex-aljc-center",children:[e.jsx(l,{socialLink:(c=r==null?void 0:r.socialLink)==null?void 0:c.twitterLink,iconImage:e.jsx("img",{className:(o=r==null?void 0:r.socialLink)!=null&&o.twitterLink?"profile__icon":"profile__icon__disabled",src:(p=r==null?void 0:r.socialLink)!=null&&p.twitterLink?fS:hS,style:{width:20,height:20}})}),e.jsx(l,{socialLink:(h=r==null?void 0:r.socialLink)==null?void 0:h.facebookLink,iconImage:e.jsx("img",{className:(d=r==null?void 0:r.socialLink)!=null&&d.twitterLink?"profile__icon":"profile__icon__disabled",src:(u=r==null?void 0:r.socialLink)!=null&&u.facebookLink?jS:uS,style:{width:20,height:20}})}),e.jsx(l,{socialLink:(m=r==null?void 0:r.socialLink)==null?void 0:m.LinkedinLink,iconImage:e.jsx("img",{className:(f=r==null?void 0:r.socialLink)!=null&&f.twitterLink?"profile__icon":"profile__icon__disabled",src:(v=r==null?void 0:r.socialLink)!=null&&v.LinkedinLink?bS:gS,style:{width:20,height:20}})}),e.jsx(l,{socialLink:(N=r==null?void 0:r.socialLink)==null?void 0:N.InstagramLink,iconImage:e.jsx("img",{className:(_=r==null?void 0:r.socialLink)!=null&&_.twitterLink?"profile__icon":"profile__icon__disabled",src:(x=r==null?void 0:r.socialLink)!=null&&x.InstagramLink?yS:pS,style:{width:20,height:20}})}),e.jsx(l,{socialLink:(j=r==null?void 0:r.socialLink)==null?void 0:j.websiteLink,iconImage:e.jsx("img",{className:(I=r==null?void 0:r.socialLink)!=null&&I.twitterLink?"profile__icon":"profile__icon__disabled",src:(w=r==null?void 0:r.socialLink)!=null&&w.websiteLink?vS:xS,style:{width:20,height:20}})})]}),e.jsx("div",{className:"d-flex justify-content-end",children:n&&n===((y=r==null?void 0:r.user)==null?void 0:y._id)&&e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:a,children:e.jsx("img",{src:Ut,alt:"",style:{width:"12px",height:"12px",margin:"5px"}})})}),e.jsx("div",{className:"my-2 display-flex-aljc-center profile__footer-content",children:e.jsx("p",{className:"profile__footer-p",children:"Copyright All Rights Reserved"})}),e.jsx("div",{className:"display-flex-aljc-center",children:e.jsxs("p",{className:"profile__footer-p",children:["Designed by ",e.jsx("span",{className:"profile__company-name",children:"Tickbig"})]})})]}),e.jsx("div",{className:"footer_space"})]}),e.jsx(qe,{open:s,onClose:i,children:e.jsx(Ie,{sx:cs,className:"footerContainer",style:{overflow:"hidden"},children:e.jsx(m6,{handleClose:i,userProfile:r})})})]})}const NS=()=>({checkEmptySections:async(i,n)=>{var o,p,h;const r=n==="Student"?z2:["Freelancer","Professional"].includes(n)?W2:["College","Training Institute"].includes(n)?$2:H2;let l=JSON.parse(JSON.stringify(i));l.ee=[],((o=i==null?void 0:i.user)==null?void 0:o.accountType)==="Individuals"&&(l.ee=[...i==null?void 0:i.education,...i==null?void 0:i.experience]);let c=r==null?void 0:r.filter(d=>{var u;return((u=l[d.back])==null?void 0:u.length)===0});return((p=i==null?void 0:i.user)==null?void 0:p.accountType)==="Institutes"&&(c=((h=Object.keys(l==null?void 0:l.placements))==null?void 0:h.length)===0?[...c,{back:"placements",front:"Placements"}]:c),{uP:l,sectionsss:c}},menuItemsBuilder:(i,n,r,l)=>{let c=i==="Student"?Z2:["Freelancer","Professional"].includes(i)?Y2:["College","Training Institute"].includes(i)?G2:J2;if((l==null?void 0:l.length)===0)return c;if(r&&n&&(l==null?void 0:l.length)>0)return c=c==null?void 0:c.map(o=>l.find(h=>(h==null?void 0:h.front)===(o==null?void 0:o.front))?{...o,id:"#empty"}:o),c;if(r&&!n&&(l==null?void 0:l.length)>0)return c=c==null?void 0:c.filter(o=>l.find(h=>
175(h==null?void 0:h.front)===(o==null?void 0:o.front))?null:o),c;if(r===null)return c=c==null?void 0:c.filter(o=>l.find(h=>h.front===o.front)?null:o),c[(c==null?void 0:c.length)-2].id="/signin",c[(c==null?void 0:c.length)-1].id="/signin",c},createOptions:(i,n)=>{var l;let r=[];return i.length>0&&((l=i==null?void 0:i.filter(c=>(c==null?void 0:c.accountType)==n))==null||l.map(c=>r.push({value:c==null?void 0:c._id,label:(c==null?void 0:c.firstName)===(c==null?void 0:c.lastName)?c==null?void 0:c.firstName:de((c==null?void 0:c.firstName)+" "+(c==null?void 0:c.lastName))}))),r}}),si=NS,wS=({userProfile:s,emptySections:t,itsMe:a})=>{var p,h,d;const{user:i}=G(u=>u.auth),{menuItemsBuilder:n}=si(),{gotoLandingPage:r,gotoPreviousPage:l}=Be();let c=n((p=s==null?void 0:s.user)==null?void 0:p.subType,a,i,t);((h=s==null?void 0:s.teamData)==null?void 0:h.length)>0&&((d=s.user)==null?void 0:d.accountType)==="Brands"&&(c=[...c==null?void 0:c.slice(0,c.length-3),{id:"#teams",front:"Teams"},...c==null?void 0:c.slice(c.length-3)]);const o=Array.from(new Map(c.map(u=>[u.id,u])).values());return e.jsx(e.Fragment,{children:e.jsxs("main",{className:"profile__header",style:{flexWrap:"wrap"},children:[e.jsxs("div",{className:"gap-3 d-flex align-items-center px-3",children:[e.jsx("img",{src:Yn,onClick:l,alt:"backArr",className:"icon-hover profileArr cp"}),e.jsx("p",{className:"profile__header--title",children:"Website"})]}),e.jsx("div",{className:"Profile__Header-two",children:e.jsx("ul",{className:"d-flex align-items-center Profile_Header-menu mt-2",children:o==null?void 0:o.map(u=>e.jsx("a",{href:u.id,className:"profile_header-list",children:e.jsx("li",{className:({isActive:m})=>m?"active-link link":"link",children:u.front})},u.id))})})]})})},SS=wS;function Zi(s){const{children:t,value:a,index:i,...n}=s;return e.jsx("div",{style:{overflowX:"hidden"},role:"tabpanel",hidden:a!==i,id:`simple-tabpanel-${i}`,"aria-labelledby":`simple-tab-${i}`,...n,children:a===i&&e.jsx(Ie,{className:"boxStyle",children:t})})}Zi.propTypes={children:ii.node,index:ii.number.isRequired,value:ii.number.isRequired};const kS=gs(s=>e.jsx(H0,{...s,TabIndicatorProps:{children:e.jsx("span",{className:"MuiTabs-indicatorSpan"})}}))({"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:"#0ADD87"}}),Sc=gs(s=>e.jsx(G0,{disableRipple:!0,...s}))(({theme:s})=>({textTransform:"none",fontWeight:s.typography.fontWeightRegular,fontSize:s.typography.pxToRem(15),marginRight:s.spacing(1),color:"var(--text-color-secondary)","&.Mui-selected":{color:"var(--text-color-primary)"},"&.Mui-focusVisible":{backgroundColor:"rgba(100, 95, 228, 0.32)"}})),un=({data:s,label:t,dataState:a,placeholder:i})=>{var n;return e.jsxs(e.Fragment,{children:[e.jsx("input",{...s,className:`did-floating-input ${a!=null&&a.error?"is-invalid":""}`,placeholder:" ",style:{outline:"none"}}),i&&e.jsxs("p",{className:"jpfi_modal-supported",style:{color:"var(--text-color-secondary)"},children:["for Example: ",i]}),(a==null?void 0:a.error)&&e.jsx("div",{className:"invalid-feedback",children:(n=a==null?void 0:a.error)==null?void 0:n.message}),e.jsx("label",{className:"did-floating-label",children:t})]})};function pn({data:s,label:t,dataState:a,placeholder:i,required:n}){var r;return e.jsxs(e.Fragment,{children:[e.jsx("input",{...s,type:"date",className:`did-floating-input ${a!=null&&a.error?"is-invalid":""}`,placeholder:"mm/dd/yyyy",required:n,style:{outline:"none",textAlign:"left"}}),i&&e.jsxs("p",{className:"jpfi_modal-supported",style:{color:"#a7aaab"},children:["for Example: ",i]}),(a==null?void 0:a.error)&&e.jsx("div",{className:"invalid-feedback",children:(r=a==null?void 0:a.error)==null?void 0:r.message}),e.jsx("label",{className:"did-floating-label",children:t})]})}const Dt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%3e%3cg%20id='Group_10309'%20data-name='Group%2010309'%20transform='translate(0%200.313)'%3e%3cg%20id='Ellipse_985'%20data-name='Ellipse%20985'%20transform='translate(0%20-0.313)'%20fill='%23252b2d'%20stroke='%235a6466'%20strokeWidth='1'%3e%3ccircle%20cx='12.5'%20cy='12.5'%20r='12.5'%20stroke='none'/%3e%3ccircle%20cx='12.5'%20cy='12.5'%20r='12'%20fill='none'/%3e%3c/g%3e%3cline%20id='Line_109'%20data-name='Line%20109'%20x2='10'%20transform='translate(7.813%2012.383)'%20stroke='%23ff6767'%20strokeLinecap='round'%20strokeWidth='1.5'/%3e%3c/g%3e%3c/svg%3e",Ps=b.lazy(()=>Ve(()=>Promise.resolve().then(()=>Jp),void 0).then(s=>({default:s.IOSSwitch}))),Da=gs(s=>e.jsx(Ha,{disableGutters:!0,elevation:0,square:!0,...s}))(({theme:s})=>({border:`1px solid ${s.palette.divider}`,"&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"},background:"var(--card-surface-primary)",borderRadius:"20px"})),CS=({myAdmins:s,loadAdmins:t})=>{const{user:a,userDetails:i,permissions:n}=G(g=>g.auth),{successToast:r,warningToast:l,errorToast:c,errorHandle:o}=he(),p=ge(),[h,d]=b.useState(!1),[u,m]=b.useState([]),[f,v]=b.useState([]),[N,_]=b.useState({open:!1,arg1:null,arg2:null}),[x,j]=b.useState({open:!1,arg1:null,arg2:null}),I=async g=>{var C,T;const{value:E}=g.target;if(v(E),(E==null?void 0:E.length)<3){m([]);return}try{const{data:A}=await Mv({query:E,accountType:i==null?void 0:i.accountType}),R=(A==null?void 0:A.usersData)||[];
175if(R.length===0){m([]);return}const P=((C=i==null?void 0:i.friends)==null?void 0:C.map(F=>F==null?void 0:F._id))||[],O=((T=i==null?void 0:i.blockedIds)==null?void 0:T.map(F=>F==null?void 0:F._id))||[],M=(s==null?void 0:s.map(F=>{var U;return(U=F==null?void 0:F._user_id)==null?void 0:U._id}))||[],L=R==null?void 0:R.filter(F=>(P==null?void 0:P.includes(F==null?void 0:F._id))&&![...O,...M].includes(F==null?void 0:F._id));m(L)}catch(A){o(A)}},w=async g=>{var E,C,T;try{const A=await V3({_user_id:g});A&&((E=A==null?void 0:A.data)!=null&&E.role)?(v(""),m([]),t(),p(Xx((C=A==null?void 0:A.data)==null?void 0:C.role)),r("New admin added")):A&&((T=A==null?void 0:A.data)==null?void 0:T.statuscode)===N2&&(v(""),m([]),l("Failed to add Admin"))}catch(A){o(A)}},y=async(g,E)=>{var R;const C=s[g].permissions;let T={jobsApply:C.jobsApply,jobsCreate:C.jobsCreate,projectsApply:C.projectsApply,projectsCreate:C.projectsCreate,fundraisingsApply:C.fundraisingsApply,fundraisingsCreate:C.fundraisingsCreate,investingsApply:C.investingsApply,investingsCreate:C.investingsCreate};const A=await Tl(T,E);A&&((R=A==null?void 0:A.data)!=null&&R.permissions)&&(A==null?void 0:A.statusCode)===Ke&&(t(),r("Admin permissions updated"))},k=async(g,E)=>{var A;const T=await Tl({jobsApply:!1,jobsCreate:!1,projectsApply:!1,projectsCreate:!1,fundraisingsApply:!1,fundraisingsCreate:!1,investingsApply:!1,investingsCreate:!1},E);T&&((A=T==null?void 0:T.data)!=null&&A.permissions)&&(T==null?void 0:T.statusCode)===Ke&&(t(),r("Admin access resetted"))},S=async(g,E)=>{var T,A;let C=await z3(Ee(g),E);((T=C==null?void 0:C.data)==null?void 0:T.statusCode)===Ke&&(_(R=>({...R,open:!1,arg1:null,arg2:null})),p(e2(g)),r((A=C==null?void 0:C.data)==null?void 0:A.message))};return e.jsxs(e.Fragment,{children:[e.jsx("section",{children:e.jsx("div",{className:"row",children:e.jsxs("div",{className:"mb-3 admin__bgc",children:[(i==null?void 0:i.accountType)!=="Individuals"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"w-100 w-md-20 display-flex-aic-jcsb",children:[e.jsx("div",{className:"mx-2 d-flex align-items-center",children:e.jsx("span",{className:"settings_sub_heading-desktop",children:"Admin List"})}),e.jsxs("section",{className:"display-flex-aic-jcsb jpfiHeader__section_2",style:{position:"relative"},children:[e.jsx("input",{className:"jpfiDashHeader__search",placeholder:"Add New Admin",type:"text",onChange:I,value:f}),e.jsx("i",{className:"fa-solid fa-magnifying-glass",style:{position:"absolute",right:"10px",color:"#a7aaab"}})]})]}),e.jsx("div",{style:{marginLeft:"10px"},children:e.jsx("p",{className:"settings_sub_content",children:"Any Individual can be an Admin member for your account and can act on your behalf for certain or all functionalities related to your account. Choose your Admin wisely!"})})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mx-2 d-flex align-items-center",children:[e.jsx("span",{className:"settings_sub_heading-desktop",children:"Admin List"})," "]}),e.jsx("div",{style:{marginLeft:"10px"},children:e.jsx("p",{className:"settings_sub_content",children:"An Admin member can act on behalf of the Associated Accounts (Brands / Institutes) only within the previleges provided. Following are the accounts that you are associated with. Act Responsibly!"})})]}),(u==null?void 0:u.length)>0&&(f==null?void 0:f.length)>=3?e.jsx(e.Fragment,{children:u==null?void 0:u.map((g,E)=>e.jsx(Da,{className:"mx-2 my-2",children:e.jsx(At,{"aria-controls":"panel1a-content",id:"panel1a-header",onClick:Pt(()=>w(g==null?void 0:g._id)),children:e.jsxs("div",{className:"admin__c",children:[e.jsx(ss,{src:g==null?void 0:g.avatar,alt:g==null?void 0:g.firstName},E),e.jsxs("div",{className:"fdc admin__names",children:[e.jsx("p",{className:"admin__name",children:de((g==null?void 0:g.firstName)+" "+(g==null?void 0:g.lastName))}),e.jsx("p",{className:"admin__role",children:g==null?void 0:g.subType})]})]})},E)}))}):e.jsx(e.Fragment,{children:(i==null?void 0:i.accountType)!=="Individuals"?s==null?void 0:s.map((g,E)=>{var C,T,A,R,P,O,M,L,F,U,Z,ne,K;return e.jsx(e.Fragment,{children:e.jsxs(Da,{className:"mx-2 my-2",children:[e.jsx(At,{expandIcon:e.jsx(qa,{className:"admin__Dropdown",sx:{pointerEvents:"auto"}}),"aria-controls":"panel1a-content",id:"panel1a-header",children:e.jsxs("div",{className:"display-flex-aic-jcsb w-100",children:[e.jsxs("div",{className:"admin__c",children:[e.jsx(ss,{alt:(C=g==null?void 0:g._user_id
175)==null?void 0:C.firstName,src:(T=g==null?void 0:g._user_id)==null?void 0:T.avatar}),e.jsxs("div",{className:"fdc admin__names",children:[e.jsx("p",{className:"admin__name",children:de((A=g==null?void 0:g._user_id)==null?void 0:A.firstName)}),e.jsx("p",{className:"admin__role",children:(R=g==null?void 0:g._user_id)==null?void 0:R.subType})]})]}),e.jsx("div",{className:"admin__c",children:e.jsx(J0,{className:"admin__edit",onClick:()=>_(te=>({...te,open:!0,arg1:g==null?void 0:g._id,arg2:g==null?void 0:g._user_id}))})})]})}),e.jsxs(Nn,{children:[e.jsx("div",{className:"admin__table",children:e.jsx("div",{className:"admin__responsive",children:e.jsxs("table",{className:"table-line",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"admin__f"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Apply"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Create"})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Jobs"})}),e.jsx("td",{children:e.jsx(_s,{children:i.accountType==="Brands"?e.jsx(ot,{title:"You cannot apply for Jobs.",placement:"top",children:e.jsx("span",{children:e.jsx(fs,{control:e.jsx(Ps,{disabled:!0,defaultChecked:(P=g==null?void 0:g.permissions)==null?void 0:P.jobsApply,checked:g.permissions.jobsApply,inputProps:{"aria-label":"controlled"}})})})}):e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(O=g==null?void 0:g.permissions)==null?void 0:O.jobsApply,checked:g.permissions.jobsApply,onChange:()=>{g.permissions={...g.permissions,jobsApply:!g.permissions.jobsApply},d(!h)},inputProps:{"aria-label":"controlled"}})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(M=g==null?void 0:g.permissions)==null?void 0:M.jobsCreate,checked:g.permissions.jobsCreate,onChange:()=>{g.permissions={...g.permissions,jobsCreate:!g.permissions.jobsCreate},d(!h)},inputProps:{"aria-label":"controlled"}})})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Projects"})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(L=g==null?void 0:g.permissions)==null?void 0:L.projectsApply,checked:g.permissions.projectsApply,onChange:()=>{g.permissions={...g.permissions,projectsApply:!g.permissions.projectsApply},d(!h)},inputProps:{"aria-label":"controlled"}})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(F=g==null?void 0:g.permissions)==null?void 0:F.projectsCreate,checked:g.permissions.projectsCreate,onChange:()=>{g.permissions={...g.permissions,projectsCreate:!g.permissions.projectsCreate},d(!h)},inputProps:{"aria-label":"controlled"}})})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Fundraising"})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(ot,{title:"You cannot apply for fundraising.",placement:"top",children:e.jsx("span",{children:e.jsx(fs,{control:e.jsx(Ps,{disabled:!0,defaultChecked:(U=g==null?void 0:g.permissions)==null?void 0:U.fundraisingsApply,checked:g.permissions.fundraisingsApply,onChange:()=>{g.permissions={...g.permissions,fundraisingsApply:!g.permissions.fundraisingsApply},d(!h)},inputProps:{"aria-label":"controlled"}})})})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(Z=g==null?void 0:g.permissions)==null?void 0:Z.fundraisingsCreate,checked:g.permissions.fundraisingsCreate,onChange:()=>{g.permissions={...g.permissions,fundraisingsCreate:!g.permissions.fundraisingsCreate},d(!h)},inputProps:{"aria-label":"controlled"}})})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Investing"})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(ne=g==null?void 0:g.permissions)==null?void 0:ne.investingsApply,checked:g.permissions.investingsApply,onChange:()=>{g.permissions={...g.permissions,investingsApply:!g.permissions.investingsApply},d(!h)},inputProps:{"aria-label":"controlled"}})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(K=g==null?void 0:g.permissions)==null?void 0:K.investingsCreate,checked:g.permissions.investingsCreate,onChange:()=>{g.permissions={...g.permissions,investingsCreate:!g.permissions.investingsCreate},d(!h)},inputProps:{"aria-label":"controlled"}})})})})]})]})]})})}),e.jsxs("div",{className:"button__container",children:[e.jsx("button",{className:"admin__reset",type:"button",onClick:()=>{var te;
175return k(E,(te=g==null?void 0:g._user_id)==null?void 0:te._id)},children:"Reset"}),e.jsx("button",{className:"admin__save",type:"button",onClick:()=>{var te;return y(E,(te=g==null?void 0:g._user_id)==null?void 0:te._id)},children:"Save"})]})]})]},E)})}):n&&(n==null?void 0:n.map((g,E)=>{var C,T,A,R,P,O,M,L,F,U,Z,ne;return e.jsx(e.Fragment,{children:e.jsxs(Da,{className:"mx-2 my-2",children:[e.jsx(At,{expandIcon:e.jsx(qa,{className:"admin__Dropdown",sx:{pointerEvents:"auto"}}),"aria-controls":"panel1a-content",id:"panel1a-header",children:e.jsxs("div",{className:"admin__c",children:[e.jsx(ss,{alt:(C=g==null?void 0:g._created_by)==null?void 0:C.firstName,src:(T=g==null?void 0:g._created_by)==null?void 0:T.avatar}),e.jsxs("div",{className:"fdc admin__names",children:[e.jsx("p",{className:"admin__name",children:de((A=g==null?void 0:g._created_by)==null?void 0:A.firstName)}),e.jsx("p",{className:"admin__role",children:(R=g==null?void 0:g._created_by)==null?void 0:R.accountType})]})]})}),e.jsx(Nn,{children:e.jsx("div",{className:"admin__table",children:e.jsx("div",{className:"admin__responsive",children:e.jsxs("table",{className:"table-line",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",className:"admin__f"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Apply"}),e.jsx("th",{scope:"col",className:"admin__f",children:"Create"})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Jobs"})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(P=g==null?void 0:g.permissions)==null?void 0:P.jobsApply,checked:g.permissions.jobsApply,inputProps:{"aria-label":"controlled"}})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(O=g==null?void 0:g.permissions)==null?void 0:O.jobsCreate,checked:g.permissions.jobsCreate,inputProps:{"aria-label":"controlled"}})})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Projects"})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(M=g==null?void 0:g.permissions)==null?void 0:M.projectsApply,checked:g.permissions.projectsApply,inputProps:{"aria-label":"controlled"}})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(L=g==null?void 0:g.permissions)==null?void 0:L.projectsCreate,checked:g.permissions.projectsCreate,inputProps:{"aria-label":"controlled"}})})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Fundraising"})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(F=g==null?void 0:g.permissions)==null?void 0:F.fundraisingsApply,checked:g.permissions.fundraisingsApply,inputProps:{"aria-label":"controlled"}})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(U=g==null?void 0:g.permissions)==null?void 0:U.fundraisingsCreate,checked:g.permissions.fundraisingsCreate,inputProps:{"aria-label":"controlled"}})})})})]}),e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("p",{className:"Checkbox-heading-admin",children:"Investing"})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(Z=g==null?void 0:g.permissions)==null?void 0:Z.investingsApply,checked:g.permissions.investingsApply,inputProps:{"aria-label":"controlled"}})})})}),e.jsx("td",{children:e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(Ps,{defaultChecked:(ne=g==null?void 0:g.permissions)==null?void 0:ne.investingsCreate,checked:g.permissions.investingsCreate,inputProps:{"aria-label":"controlled"}})})})})]})]})]})})})})]},E)})}))})]})})}),e.jsx(As,{confirm:N.open,setConfirm:_,action:"delete",performer:S,arg1:N==null?void 0:N.arg1,arg2:N==null?void 0:N.arg2}),e.jsx(As,{confirm:x.open,setConfirm:j,action:"reset",performer:k,arg1:x==null?void 0:x.arg1,arg2:x==null?void 0:x.arg2})]})},NA=CS;function Wa({selectedOption:s,setSelectedOption:t,placehold:a,accountType:i}){const[n,r]=b.useState(""),[l,c]=b.useState([]),{errorHandle:o}=he(),[p,h]=b.useState(!1),d=async f=>{const v=f.target.value;r(v)},u=async()=>{var f,v;try{const N=await Rv({query:n,accountType:i});
175if(n.trim().length===0&&c([]),n.trim().length>40)h(!0),c((f=N==null?void 0:N.data)==null?void 0:f.usersData);else{h(!1);const _=[...(v=N==null?void 0:N.data)==null?void 0:v.usersData,{firstName:de(n),avatar:"",subType:"New"}];c(_)}}catch(N){o(N),c([])}},m=f=>{r(""),t(f),c([])};return We(()=>{n.trim().length>2?u():c([])},[n]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fdc businessCardInput-Container",style:{display:"block"},children:s!=null&&s.firstName?e.jsxs(e.Fragment,{children:[e.jsx(Is,{id:"custom-css-outlined-input",size:"small",className:"textField my-2 mt-4",InputProps:{className:"textfield"},label:a,type:"text",InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"14px"}},value:(s==null?void 0:s.firstName)||n}),e.jsx("button",{component:"span",onClick:f=>t(""),className:"commonButton",style:{top:"32px"},children:e.jsxs("span",{className:"display-flex-aljc-center",children:[e.jsx("i",{className:" fa-sharp fa-solid fa-rotate-right icon-spacing-right "}),"Change"]})})]}):e.jsx(e.Fragment,{children:e.jsx(Is,{id:"custom-css-outlined-input",size:"small",type:"text",InputLabelProps:{style:{color:"#e8ebec",fontSize:"14px"}},className:"textField my-2 mt-4",InputProps:{className:"textfield"},label:a,onChange:f=>d(f),value:n})})}),p&&e.jsx(Me,{errClass:"forgot_err",errMsg:"Company Name should not exceed 25 letters."}),l==null?void 0:l.map((f,v)=>e.jsx(Da,{className:"mx-2 my-2",onChange:()=>m(f),children:e.jsx(At,{"aria-controls":"panel1a-content",id:"panel1a-header",children:e.jsxs("div",{className:"admin__c",children:[e.jsx(ss,{src:f==null?void 0:f.avatar,alt:f==null?void 0:f.firstName}),e.jsxs("div",{className:"fdc admin__names",children:[e.jsx("p",{className:"admin__name",children:de(f==null?void 0:f.firstName)}),e.jsx("p",{className:"admin__role",children:f==null?void 0:f.subType})]})]})})},v))]})}const TS=({handleEEModalClose:s,loadProfileReview:t})=>{var se,ae;const a=ge(),i=ts().userUniqueId;b.useRef();const{successToast:n,errorToast:r,errorHandle:l}=he(),[c,o]=b.useState(!1),{user:p,userDetails:{subType:h}}=G(B=>B.auth);b.useState(!1);const{userProfile:d}=G(B=>B.profile),[u,m]=b.useState({value:"Choose One"});b.useState([]);const[f,v]=b.useState({}),[N,_]=b.useState(0),x=Y0(),{control:j,handleSubmit:I,reset:w,getValues:y,setValue:k,clearErrors:S,formState:{errors:g}}=Qe({defaultValues:{experience:((se=d.experience)==null?void 0:se.length)>0?d==null?void 0:d.experience:[{designation:"",companyName:"",jobLocation:"",employmentType:"",startMonth:"",endMonth:""}]}}),{control:E,handleSubmit:C,reset:T,getValues:A}=Qe({defaultValues:{education:((ae=d==null?void 0:d.education)==null?void 0:ae.length)>0?d==null?void 0:d.education:[{qualification:"",collegeName:"",location:"",startYear:"",endYear:""}]}}),{fields:R,append:P,remove:O}=Bs({control:j,name:"experience"}),{fields:M,append:L,remove:F}=Bs({control:E,name:"education"}),U=B=>{B.key==="Enter"&&B.preventDefault()},Z=async B=>{var ie;let Q=B.education.map((Y,pe)=>{const me=f[pe];return me!=null&&me._id?{...Y,collegeId:me._id,collegeName:me.firstName||Y.collegeName}:{...Y,collegeId:p,collegeName:(me==null?void 0:me.firstName)||Y.collegeName||""}});try{o(!0);const Y=await Vv(i,Q,h);(ie=Y==null?void 0:Y.data)!=null&&ie.profile&&(a(ds(Y.data.profile.education,"education")),s(),t(),n("Education has been updated"))}catch(Y){l(Y)}finally{o(!1)}},ne=async B=>{var ie;let W=B==null?void 0:B.experience,Q=W==null?void 0:W.map((Y,pe)=>{var Ye,Xe,ue,Ae;const me=f[`exp-${pe}`],Ce=(Xe=(Ye=Y==null?void 0:Y.employmentType)==null?void 0:Ye.value)!=null&&Xe.value?(Ae=(ue=Y==null?void 0:Y.employmentType)==null?void 0:ue.value)==null?void 0:Ae.value:Y==null?void 0:Y.employmentType;return me!=null&&me._id?{...Y,employmentType:Ce,companyId:me._id,companyName:me.firstName||Y.companyName}:{...Y,employmentType:Ce,companyId:p,companyName:(me==null?void 0:me.firstName)||Y.companyName||""}});try{o(!0);const Y=await r3(i,Q,h);(ie=Y==null?void 0:Y.data)!=null&&ie.profile&&(a(ds(Y.data.profile.experience,"experience")),s(),t(),n("Experience has been updated"))}catch(Y){l(Y)}finally{o(!1)}},K=(B,W)=>{_(W)},te=B=>{_(B)},q=B=>{var Q,ie;const W=y();if(!((ie=(Q=W==null?void 0:W.experience[B])==null?void 0:Q.designation)!=null&&ie.trim()))return"Invalid Designation."},H=B=>{var Q,ie;const W=y();if(!((ie=(Q=W==null?void 0:W.experience[B])==null?void 0:Q.jobLocation)!=null&&ie.trim()))return"Invalid Job Location."},X=B=>{var Q,ie;const W=A();if(!((ie=(Q=W==null?void 0:W.education[B])==null?void 0:Q.location)!=null&&ie.trim()))return"Invalid Location."},ee=B=>{var Q,ie;const W=A();if(!((ie=(Q=W==null?void 0:W.education[B])==null?void 0:Q.qualification)!=null&&ie.trim()))return"Invalid Qualification"};return We(()=>{var W,Q;d!=null&&d.experience&&w({experience:d.experience.length>0?d.experience:[{designation:"",companyName:"",jobLocation:"",employmentType:"",startMonth:"",endMonth:""}]}),d!=null&&d.education&&T({education:d.education.length>0?d.education:[{qualification:"",collegeName:"",location:"",startYear:"",endYear:""}]});const B={};((W=d==null?void 0:d.education)==null?void 0:W.length)>0&&d.education.forEach((ie,Y)=>{ie.collegeName&&(B[`edu-${Y}`]={firstName:ie.collegeName,_id:ie.collegeId||null})}),((Q=d==null?void 0:d.experience)==null?void 0:Q.length)>0&&d.experience.forEach((ie,Y)=>{ie.companyName&&(B[`exp-${Y}`]={firstName:ie.companyName,_id:ie.companyId||null})}),v(B)},[d==null?void 0:d.experience,d==null?void 0:d.education]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"profile_Skill_input__main",children:e.jsxs("section",{className:"profile_Skill_input__Section",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Edit Education & Experience"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[e.jsxs(kS,{value:N,onChange:K,"aria-label":"styled tabs example",children:[e.jsx(Sc,{label:"Experience",children:e.jsx("p",{children:"Experience"})}),e.jsx(Sc,{label:"Education",children:e.jsx("p",{children:"Education"})})]}),e.jsx("div",{})]}),e.jsx("div",{className:"custom__Scroll",style:{padding:"5px"},children:e.jsxs(kg,{axis:x.direction==="rtl"?"x-reverse":"x",index:N,onChangeIndex:te,children:[e.jsx(Zi,{value:N,index:0,dir:x.direction,children:e.jsxs("form",{autoComplete:"off",onSubmit:I(ne),children:[R==null?void 0:R.map((B,W)=>{var Q;return e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{style:{color:"var(--text-color-primary)"},children:[e.jsx("span",{children:W+1}),". Experience"]}),e.jsx("img",{src:Dt,onClick:()=>
175O(W),className:"removecircle",alt:"Remove Experience"})]}),e.jsx("div",{className:"mt-2 did-floating-label-content w-100",children:e.jsx(xe,{control:j,name:`experience.${W}.designation`,defaultValue:(B==null?void 0:B.designation)||"",rules:{required:{value:!0,message:"Designation is required"},maxLength:{value:25,message:"Maximum 25 characters allowed."},validate:()=>q(W)},render:({field:ie,fieldState:Y})=>e.jsx(un,{data:ie,label:"Designation",dataState:Y,placeholder:"Developer"})})}),e.jsx(xe,{control:j,name:`experience.${W}.companyName`,defaultValue:(B==null?void 0:B.companyName)||"",render:({field:ie,fieldState:Y})=>e.jsxs("div",{className:"did-floating-label-content w-100",children:[e.jsx(Wa,{selectedOption:f[`exp-${W}`]||(ie.value?{firstName:ie.value,_id:null}:null),accountType:["Brands","Institutes"],setSelectedOption:pe=>{v(me=>({...me,[`exp-${W}`]:pe})),ie.onChange((pe==null?void 0:pe.firstName)||"")},placehold:"Company Name"}),Y.error&&e.jsx("div",{className:"invalid-feedback",children:Y.error.message})]})}),e.jsx(xe,{control:j,name:`experience.${W}.jobLocation`,defaultValue:(B==null?void 0:B.jobLocation)||"",rules:{required:{value:!0,message:"Job Location is required"},maxLength:{value:20,message:"Maximum 20 characters allowed."},validate:()=>H(W)},render:({field:ie,fieldState:Y})=>e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(un,{data:ie,dataState:Y,label:"Job Location",placeholder:"Chennai"})})}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2 mb-2",children:[e.jsx(Oo,{dropdownOptions:qb,dropdownValue:u,setDropdownValue:m,control:j,setValue:k,clearErrors:S,name:`experience.${W}.employmentType`,defaultValue:(B==null?void 0:B.employmentType)||"Select",styles:Za}),(g==null?void 0:g.experience)&&((Q=g==null?void 0:g.experience[W])==null?void 0:Q.employmentType)&&e.jsx(Me,{errMsg:"Employment Type is required"})]}),e.jsx(xe,{control:j,name:`experience.${W}.startMonth`,defaultValue:(B==null?void 0:B.startMonth)||"",rules:{required:"Start Date is required",validate:{notZero:ie=>ie!=="0"||"Please select a valid date",greaterThan1950:ie=>parseInt(ie.split("-")[0])>1950||"Year must be greater than 1950",notFutureDate:ie=>new Date(ie)<=new Date||"Dates in the future are not permitted"}},render:({field:ie,fieldState:Y})=>e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(pn,{data:ie,dataState:Y,label:"Start Date",placeholder:"",required:!0})})}),e.jsx(xe,{control:j,name:`experience.${W}.endMonth`,defaultValue:(B==null?void 0:B.endMonth)||"",render:({field:ie,fieldState:Y})=>e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(pn,{data:ie,dataState:Y,label:"End Date",placeholder:"",required:!1})})})]},B.id)}),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end profile_modal_input__save_container",children:[e.jsxs("button",{className:"display-flex-aljc-center profile_modal_input__skill_icon",type:"button",onClick:()=>{P({designation:"",companyName:"",jobLocation:"",employmentType:"",startMonth:"",endMonth:""}),v(B=>({...B,[R.length]:null}))},children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"})," Add more"]}),e.jsx("button",{className:"display-flex-aljc-center profile_modal_input__save_icon",type:"submit",disabled:c,children:c?"Saving...":"Save"})]})]})}),e.jsx(Zi,{value:N,index:1,dir:x.direction,children:e.jsxs("form",{onSubmit:C(Z),onKeyPress:U,children:[M==null?void 0:M.map((B,W)=>{var Q;return e.jsx("div",{children:e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{style:{color:"var(--text-color-primary)"},children:[e.jsx("span",{children:W+1}),". Education"]}),e.jsx("img",{src:Dt,onClick:()=>F(W),className:"removecircle"})]}),e.jsx(xe,{control:E,name:`education.${W}.qualification`,defaultValue:B==null?void 0:B.qualification,rules:{required:{value:!0,message:"Qualification is required"},maxLength:{value:20,message:"Maximum 20 characters allowed."},validate:()=>ee(W)},render:({field:ie,fieldState:Y})=>e.jsx("div",{className:"mt-2 did-floating-label-content w-100 mt-2",children:e.jsx(un,{data:ie,dataState:Y,label:"Qualification",placeholder:"BE /BSC in Computer Science and Technology"})})}),e.jsx(xe,{control:E,name:`education.${W}.collegeName`,defaultValue:(B==null?void 0:B.collegeName)||"",render:({field:ie,fieldState:Y})=>e.jsxs("div",{className:"did-floating-label-content w-100",children:[e.jsx(Wa,{selectedOption:f[W]||(ie.value?{firstName:ie.value,_id:null}:null),accountType:["Brands","Institutes"],setSelectedOption:pe=>{v(me=>({...me,[W]:pe})),ie.onChange((pe==null?void 0:pe.firstName)||"")},placehold:"College Name"}),Y.error&&e.jsx("div",{className:"invalid-feedback",children:Y.error.message})]})}),e.jsx(xe,{control:E,name:`education.${W}.location`,defaultValue:B==null?void 0:B.location,rules:{required:{value:!0,message:"Institute Location is required"},maxLength:{value:20,message:"Maximum 20 characters allowed."},pattern:{value:/^[A-Za-z]+$/,message:"Only alphabets are allowed."},validate:()=>X(W)},render:({field:ie,fieldState:Y})=>e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(un,{data:ie,dataState:Y,label:"Institute Location",placeholder:"Chennai"})})}),e.jsx(xe,{control:E,name:`education.${W}.startYear`,defaultValue:B==null?void 0:B.startYear,rules:{required:"Start Date is required",validate:{notZero:ie=>ie!=="0"||"Please select a valid date",greaterThan1950:ie=>parseInt(ie.split("-")[0])>1950||"Year must be greater than 1950",notFutureDate:ie=>new Date(ie)<=new Date||"Dates in the future are not permitted"}},render:({field:ie,fieldState:Y})=>e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(pn,{data:ie,dataState:Y,label:"Start Date",placeholder:"",required:!0})})}),(g==null?void 0:g.startYear)&&e.jsx(Me,{errMsg:(Q=g==null?void 0:g.startYear)==null?void 0:Q.message}),e.jsx("p",{className:"label_max_min",style:{display:"flex"},children:"Don't enter the end date, if you are still studying in this institution"}),e.jsx(xe,{control:E,name:`education.${W}.endYear`,defaultValue:B==null?void 0:B.endYear,render:({field:ie,fieldState:Y})=>e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(pn,{data:ie,dataState:Y,label:"End Date",placeholder:"",required:!1})})})]})},B.id)}),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:[e.jsxs("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__skill_icon",onClick:()=>{L({qualification:"",collegeName:"",location:"",startYear:"",endYear:""}),v(B=>({...B,[M.length]:null}))},children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add more"]}),e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",disabled:c,
175children:c?"Saving...":"Save"})]})]})})]})})]})})})},Yp=TS,ti=({handleFn:s,idRef:t})=>e.jsx("button",{className:"hover-trash-bg hover-trash trash-icon cp",onClick:()=>s(t),children:e.jsx("span",{children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"#a7aaab",className:"w-6 h-6",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})});function IS({itsMe:s,loadProfileReview:t}){const a=ts().userUniqueId,{errorToast:i,successToast:n,warningToast:r,errorHandle:l}=he(),c=ge(),{userProfile:o}=G(d=>d.profile),p=async d=>{var m,f,v,N;const u=await Xv(a,d);((m=u==null?void 0:u.data)==null?void 0:m.statusCode)===Ke&&(n("Education has been deleted"),c(ds((N=(v=(f=u==null?void 0:u.data)==null?void 0:f.data)==null?void 0:v.profile)==null?void 0:N.education,"education")),t())},h=o!=null&&o.education?_u(o.education,"startYear"):[];return e.jsx(e.Fragment,{children:h==null?void 0:h.map((d,u)=>{var m,f,v,N,_,x,j,I,w;return e.jsxs("div",{className:"profile__qualification-card",children:[s&&e.jsx(ti,{handleFn:p,idRef:d._id}),e.jsx("div",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"display-flex-aljc-center round-image",children:e.jsx("img",{src:((m=d==null?void 0:d.collegeId)==null?void 0:m._id)!=((f=o==null?void 0:o.user)==null?void 0:f._id)&&((v=d==null?void 0:d.collegeId)!=null&&v.avatar)&&!(d!=null&&d.collegeName)?(N=d==null?void 0:d.collegeId)==null?void 0:N.avatar:Eu,className:"rounded-circle",style:{padding:"5px",width:"70px",height:"70px"},alt:"profile logo"})})}),e.jsxs("div",{className:"profile__qualification-name",children:[e.jsx("p",{className:"profile__qualification-college-name",children:d==null?void 0:d.qualification}),e.jsx("span",{className:"profile__qualification-company-name",children:((_=d==null?void 0:d.collegeId)==null?void 0:_._id)==((x=o==null?void 0:o.user)==null?void 0:x._id)&&(d!=null&&d.collegeName)?d==null?void 0:d.collegeName:((j=d==null?void 0:d.collegeId)==null?void 0:j._id)==((I=o==null?void 0:o.user)==null?void 0:I._id)&&!(d!=null&&d.collegeName)?"":(w=d==null?void 0:d.collegeId)==null?void 0:w.firstName}),e.jsxs("div",{className:"profile__qualification-current",children:[e.jsxs("p",{className:"profile__qualification-type",children:[zi(d==null?void 0:d.startYear)," to ",zi(d==null?void 0:d.endYear)]}),e.jsx("p",{className:"profile__qualification-type",children:d.location})]})]})]},u)})})}function AS({userProfile:s,itsMe:t,loadProfileReview:a}){const i=ts().userUniqueId,n=ge(),{errorToast:r,successToast:l,warningToast:c}=he(),o=async h=>{var u,m,f,v;const d=await e3(i,h);((u=d==null?void 0:d.data)==null?void 0:u.statusCode)===Ke&&(l("Experience deleted"),n(ds((v=(f=(m=d==null?void 0:d.data)==null?void 0:m.data)==null?void 0:f.profile)==null?void 0:v.experience,"experience")),a())},p=_u(s==null?void 0:s.experience,"startMonth");return e.jsx(e.Fragment,{children:p==null?void 0:p.map((h,d)=>{var u,m,f,v,N,_,x,j,I;return e.jsxs("div",{className:"profile__qualification-card",children:[t&&e.jsx(ti,{handleFn:o,idRef:h._id}),e.jsx("div",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"display-flex-aljc-center round-image",children:e.jsx("img",{src:((u=h==null?void 0:h.companyId)==null?void 0:u._id)!=((m=s==null?void 0:s.user)==null?void 0:m._id)&&((f=h==null?void 0:h.companyId)!=null&&f.avatar)&&!(h!=null&&h.companyName)?(v=h==null?void 0:h.companyId)==null?void 0:v.avatar:Mu,className:"rounded-circle",alt:"profile logo",style:{padding:"5px",width:"70px",height:"70px"}})})}),e.jsxs("div",{className:"profile__qualification-name",children:[e.jsx("p",{className:"profile__qualification-designation",children:h==null?void 0:h.designation}),e.jsx("span",{className:"profile__qualification-company-name",children:((N=h==null?void 0:h.companyId)==null?void 0:N._id)==((_=s==null?void 0:s.user)==null?void 0:_._id)&&(h!=null&&h.companyName)?h==null?void 0:h.companyName:((x=h==null?void 0:h.companyId)==null?void 0:x._id)==((j=s==null?void 0:s.user)==null?void 0:j._id)&&!(h!=null&&h.companyName)?"":(I=h==null?void 0:h.companyId)==null?void 0:I.firstName}),e.jsxs("div",{className:"profile__qualification-current",children:[e.jsxs("p",{className:"profile__qualification-type",children:[tv(h.startMonth)," to ",zi(h.endMonth)]}),e.jsx("p",{className:"profile__qualification-type",children:h==null?void 0:h.employmentType}),e.jsx("p",{className:"profile__qualification-type",children:h==null?void 0:h.jobLocation})]})]})]},d)})})}function kc({itsMe:s,loadProfileReview:t}){const[a,i]=b.useState(!1),n=()=>i(!0),r=()=>i(!1),[l,c]=b.useState(!1),[o,p]=b.useState(!1),[h,d]=b.useState(1),{userProfile:u}=G(f=>f.profile),m=(f,v)=>h===f?v:"hidden";return e.jsxs(e.Fragment,{children:[e.jsxs("section",{children:[s&&e.jsx("div",{children:e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:n,children:e.jsx("i",{className:"fa-solid fa-plus profIcoSty cp"})})}),e.jsxs("div",{className:"display-flex-aljc-center profile-section-main-heading",children:[e.jsxs("div",{className:"profile__qualification-1",children:[e.jsx("button",{style:{color:h===2?"var(--primary-color)":null},className:"profile__qualification-tab",onClick:()=>{p(!o),c(!l),d(2)},children:"Education"}),e.jsx("span",{className:"display-flex-aljc-center",children:e.jsx("hr",{className:"profile__qualification-hr",style:{border:h===2?"":"none"}})})]}),e.jsxs("div",{className:"profile__qualification-1",children:[e.jsx("button",{style:{color:h===1?"var(--primary-color)":null},className:"profile__qualification-tab",onClick:()=>{p(!o),c(!l),d(1)},children:"Experience"}),e.jsx("span",{className:"display-flex-aljc-center",children:e.jsx("hr",{className:"profile__qualification-hr",style:{border:h===1?"":"none"}})})]})]}),e.jsxs("section",{className:"grid grid-cols-1 md:grid-cols-none place-content-center",children:[e.jsx("section",{className:`${m(1,"flex flex-col")}`,children:e.jsx("div",{className:"profile__qualification-card-scroll",children:e.jsx(AS,{userProfile:u,itsMe:s,loadProfileReview:t})})}),e.jsx("section",{className:` ${m(2,"flex flex-col ")}`,children:e.jsx("div",{className:"profile__qualification-card-scroll",children:e.jsx(IS,{userProfile:u,itsMe:s,loadProfileReview:t})})})]})]}),e.jsx(qe,{open:a,onClose:r,children:e.jsx(Ie,{sx:cs,children:e.jsx(Yp,{handleEEModalClose:r,setOpenEEModal:i,openEEModal:a,loadProfileReview:t})})})]})}function De({data:s,dataState:t,label:a}){return e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{...s,className:`did-floating-input ${t!=null&&t.error?"is-invalid":""}`}),(t==null?void 0:t.error)&&e.jsx("div",{className:"invalid-feedback",children:t==null?void 0:t.error.message}),e.jsx("label",{className:"did-floating-label",children:a})]})}function ai({data:s,dataState:t,label:a}){var i;return e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("textarea",{...s,className:`did-floating-input did-floating-textarea ${t!=null&&t.error?"is-invalid":""}`}),(t==null?void 0:t.error)&&e.jsx("div",{className:"invalid-feedback",children:(i=t==null?void 0:t.error)==null?void 0:i.message}),e.jsx("label",{className:"did-floating-label",children:a})]})}const Zp=({handleMilestoneModal:s,loadProfileReview:t})=>{const a=ge(),{userProfile:i}=G(w=>w.profile),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),o=ts().userUniqueId;G(w=>w.auth);const{control:p,handleSubmit:h,reset:d,getValues:u,formState:{errors:m},getValues:f}=Qe({defaultValues:{milestone:(i==null?void 0:i.milestone.length)>0?i==null?void 0:i.milestone:[{milestoneYear:"",milestoneDescription:""}]}}),{fields:v,append:N,remove:_}=Bs({control:p,name:"milestone"}),x=w=>{const{milestone:y}=f();if(!y[w].milestoneDescription.trim())return"Invalid milestone description."},j=async w=>{var k,S,g;const y=await Uv(o,w.milestone);y&&((k=y==null?void 0:y.data)!=null&&k.profile)&&(s(),a(ds((g=(S=y==null?void 0:y.data)==null?void 0:S.profile)==null?void 0:g.milestone,"milestone")),n("Milestones have been updated"),t())},I=w=>{var S;const y=u();let k=new Date().getFullYear();if(((S=y==null?void 0:y.milestone[w])==null?void 0:S.milestoneYear)>k)return"Invalid Year."};return We(()=>{i!=null&&i.milestone&&d({milestone:(i==null?void 0:i.milestone.length)>0?i==null?void 0:i.milestone:[{milestoneYear:"",milestoneDescription:""}]})},[d,i==null?void 0:i.milestone]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"row ",children:[e.jsx("div",{className:"col-lg-2"}),e.jsx("div",{className:"col-lg-8",style:{width:"100%"},children:e.jsx("main",{className:"edmile__main",children:e.jsxs("section",{className:"edmile__Section",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Update your Milestones"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsx("div",{className:"custom__Scroll",children:e.jsxs("form",{autoComplete:"off",onSubmit:h(j),children:[v==null?void 0:v.map((w,y)=>e.jsx("div",{children:e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{children:[e.jsx("span",{children:y+1}),". Milestone"]}),e.jsx("img",{src:Dt,onClick:()=>_(y),className:"removecircle"})]}),e.jsx(xe,{name:`milestone.${y}.milestoneYear`,control:p,defaultValue:w.milestone,rules:{required:{value:!0,message:"Year is required"},pattern:{value:mu,message:"Invalid Year."},validate:()=>I(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:k,dataState:S,label:"Year"})})}),e.jsx(xe,{name:`milestone.${y}.milestoneDescription`,control:p,defaultValue:w.milestoneDescription,rules:{required:{value:!0,message:"Description is required"},minLength:{value:20,message:"Description should be at least 20 characters long"},maxLength:{value:150,message:"Description should not exceed 150 characters"},validate:()=>x(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(ai,{data:k,dataState:S,label:"Description"})})})]})},w._id)),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end profile_modal_input__save_container profile_input_modal_end-line",children:[e.jsxs("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__skill_icon",onClick:()=>N({milestoneYear:"",milestoneDescription:""}),children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add more"]}),e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"Submit",children:"Save"})]})]})})]})})}),e.jsx("div",{className:"col-lg-2"})]})})};function st({data:s}){return e.jsx(e.Fragment,{children:e.jsx("div",{className:"heading_container mt-4 p-3",children:e.jsx("div",{className:"profile_section_heading-Container",children:e.jsx("h2",{children:s})})})})}const ES=({handleFn:s,idRef:t})=>e.jsx("button",{className:"hover-trash-bg hover-trash",onClick:()=>s(t),children:e.jsx("span",{children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"#d6dcdd",className:"w-6 h-6",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})}),$o=ES,MS=({itsMe:s,loadProfileReview:t})=>{var N,_,x;const{userProfile:a}=G(j=>j.profile),i=ts().userUniqueId,{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),o=ge(),[p,h]=b.useState(!1),[d,u]=b.useState(!1),m=()=>u(!d),f=async j=>{var w,y;const I=await Dv(i,j);(I==null?void 0:I.statusCode)===Ke&&(n("Milestone deleted successfully"),o(ds((y=(w=I==null?void 0:I.data)==null?void 0:w.profile)==null?void 0:y.milestone,"milestone")),t())},v=()=>{h(!p)};return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"",children:[e.jsx(st,{data:"Milestones"}),s&&e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:m,children:e.jsx("img",{src:Ut,alt:"",style:{width:"12px",height:"12px",margin:"5px"}})}),e.jsxs("main",{className:"profileMilestone__main pofile-section-wrapper",children:[e.jsx("div",{className:"display-flex-aljc-center timeline",children:e.jsx("div",{className:"outer",children:((N=a==null?void 0:a.milestone)==null?void 0:N.length)>0&&((_=a==null?void 0:a.milestone)==null?void 0:_.map((j,I)=>e.jsx(e.Fragment,{children:!p&&I<=2?e.jsxs("div",{className:"timeline_card",children:[s&&e.jsx($o,{handleFn:f,idRef:j==null?void 0:j._id}),e.jsxs("div",{className:"info",children:[e.jsx("h3",{className:"title",children:j.milestoneYear}),e.jsx("p",{children:j.milestoneDescription})]})]},I):e.jsx(e.Fragment,{children:p&&e.jsx("div",{className:"timeline_card",children:e.jsxs("div",{className:"info",children:[e.jsx("h3",{className:"title",children:j.milestoneYear}),e.jsx("p",{children:j.milestoneDescription})]})},I)})})))})}),((x=a==null?void 0:a.milestone)==null?void 0:x.length)>3&&e.jsxs("div",{className:"text-center main__Head",onClick:v,children:[e.jsx("p",{className:"text-white cp",children:p?"View Less":"View All"}),e.jsx("div",{className:"text__Line"})]})]})]}),e.jsx(qe,{open:d,onClose:m,children:e.jsx(Ie,{sx:cs,className:"modal__Profile",children:e.jsx(Zp,{handleMilestoneModal:m,loadProfileReview:t})})})]})},ga=MS,PS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='69.776'%20height='40.776'%20viewBox='0%200%2069.776%2040.776'%3e%3cg%20id='Group_2455'%20data-name='Group%202455'%20transform='translate(-1088%20-4026)'%3e%3crect%20id='Rectangle_930'%20data-name='Rectangle%20930'%20width='69.776'%20height='40.776'%20rx='20.388'%20transform='translate(1088%204026)'%20fill='%2301bf71'/%3e%3cg%20id='Icon_feather-external-link'%20data-name='Icon%20feather-external-link'%20transform='translate(1113%204036)'%3e%3cpath%20id='Path_4272'%20data-name='Path%204272'%20d='M21.814,17.08v6.925a2.308,2.308,0,0,1-2.308,2.308H6.808A2.308,2.308,0,0,1,4.5,24.005v-12.7A2.308,2.308,0,0,1,6.808,9h6.925'%20transform='translate(-4.5%20-5.537)'%20fill='none'%20stroke='%2333383a'%20strokeLinecap='round'%20strokeLinejoin='round'%20strokeWidth='3.5'/%3e%3cpath%20id='Path_4273'%20data-name='Path%204273'%20d='M22.5,4.5h6.925v6.925'%20transform='translate(-9.649%20-4.5)'%20fill='none'%20stroke='%2333383a'%20strokeLinecap='round'%20strokeLinejoin='round'%20strokeWidth='3.5'/%3e%3cpath%20id='Path_4274'%20data-name='Path%204274'%20d='M15,17.2,27.7,4.5'%20transform='translate(-7.92%20-4.5)'%20fill='none'%20stroke='%2333383a'%20strokeLinecap='round'%20strokeLinejoin='round'%20strokeWidth='3.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function RS({pro:s}){var t,a,i;return e.jsxs("div",{className:"projectReference",style:{minHeight:"150px"},children:[((t=s==null?void 0:s.projectReference)==null?void 0:t.length)===0&&e.jsx("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#d6dcdd"}}),((a=s==null?void 0:s.projectReference)==null?void 0:a.length)>0&&e.jsxs(e.Fragment,{children:[e.jsxs("h5",{style:{color:"#01bf71"},children:["Verification Status",e.jsx(va,{data:"Verified projects creates credibility and hence increases professional opportunities. Get your projects verified by sending it to your peers / managers with whom you had collaborated.",colordata:"#a7aaab"})]}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"1rem"},children:(i=s==null?void 0:s.projectReference)==null?void 0:i.map((n,r)=>{var l,c,o;return e.jsxs("div",{className:"project_reference",style:{marginRight:"10px"},children:[e.jsx("div",{c
175lassName:"jpfi--img-wrap",children:e.jsx(ss,{src:(l=n==null?void 0:n.refUserId)==null?void 0:l.avatar,className:"profilePeopleCard--avatar"})}),e.jsxs("div",{className:"profileReference_text_container",children:[e.jsxs("p",{className:"profileReferenceCard--name",children:[(c=n==null?void 0:n.refUserId)==null?void 0:c.firstName," ",e.jsx("span",{className:"name-verified",children:n==null?void 0:n.refStatus})]}),e.jsx("p",{className:"profilePeopleCard--role",children:(o=n==null?void 0:n.refUserId)==null?void 0:o.subType})]})]},r)})})]})]})}function LS({handleFn:s,idRef:t,handleEditFn:a}){return e.jsx(e.Fragment,{children:e.jsx("div",{className:"hover_edit-del",children:e.jsxs("div",{className:"edit-del-Container",children:[e.jsx("button",{className:"edit-del-bg hover-edit-del",onClick:()=>s(t),children:e.jsx("span",{children:e.jsx("i",{className:"fa-solid fa-trash "})})}),e.jsx("div",{className:"vertical_line"}),e.jsx("button",{className:"edit-del-bg hover-edit-del",onClick:a,children:e.jsx("span",{children:e.jsx("i",{className:"fas fa-edit"})})})]})})})}const Kp={toolbar:[[{header:[1,2,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},Qp=["header","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image"],FS=({dropdownValue:s,setDropdownValue:t,dropdownOptions:a,control:i,name:n,setValue:r,clearErrors:l})=>{const[c,o]=b.useState(!1),p=y=>{y.length<=2?(I(y),t(y),r(n,y)):w(),l(n)},{field:{onChange:h,onBlur:d,value:u,ref:m},fieldState:{invalid:f,isTouched:v,isDirty:N},formState:{touchedFields:_,dirtyFields:x}}=pd({name:n,control:i,defaultValue:""}),j=()=>{s.value=="Choose One"&&s.length<2||u.length<2?o(!0):o(!1)},I=y=>{(y==null?void 0:y.length)===2?o(!1):o(!0)},w=()=>{o(!1)};return e.jsx(e.Fragment,{children:e.jsx(gd,{isMulti:!0,name:n,placeholder:"",options:a,classNamePrefix:"react-select",className:"react-select-container",styles:Za,onFocus:j,onBlur:w,onChange:p,closeMenuOnSelect:!0,menuIsOpen:c,menuPlacement:"top",isClearable:!0,onKeyDown:y=>{Zs(y)}})})},Xp=FS,e0=(s,t)=>`<div
176className="container"
177style="max-width: 90%; margin: auto; padding-top: 20px;"
178>
179<p style="margin-bottom: 30px; word-break: break-word;">Hi, I have added you as a Verifier to one of my Projects. Click on the link below to find the project details and take appropriate action.</p>
180<p className="text-center">Project Name:${s.projectName}</p>
181<p className="text-center">Company/Institute: ${s.companyName}</p>
182<hr />
183<a style="color:#01bf71" href=${t}>View Project</a>
184<br />
185</div>`;function BS({handleProjectModal:s,pro:t,loadProfileReview:a}){var P,O,M;const i=ge(),[n,r]=b.useState(""),l=Ds(),{successToast:c,warningToast:o,errorToast:p,errorHandle:h}=he(),{createOptions:d}=si(),u=ts().userUniqueId,{user:m,userDetails:{friends:f}}=G(L=>L.auth),[v,N]=b.useState({value:"Choose One"});let _=t!=null&&t.companyName?{firstName:t==null?void 0:t.companyName,subType:"New"}:t==null?void 0:t.companyId;const[x,j]=b.useState(_),{register:I,handleSubmit:w,getValues:y,watch:k,control:S,setValue:g,clearErrors:E,formState:{errors:C}}=Qe(),T=async L=>{var q,H,X,ee,se,ae;let{Reference:F,...U}=L;const Z={...U};(x==null?void 0:x.subType)!="New"?(Z.companyId=x==null?void 0:x._id,Z.companyName=""):(Z.companyName=x.firstName,Z.companyId=m);const ne=(F==null?void 0:F.length)>0?F==null?void 0:F.map(B=>({refUserId:B==null?void 0:B.value,refStatus:"Pending"})):[],K={...Z,projectReference:ne,projectId:t==null?void 0:t._id},te=await n3(u,K);te&&((q=te==null?void 0:te.data)!=null&&q.profile)?ne.length>0?(ne==null||ne.map(async B=>{var Xe,ue,Ae,Se;let W={userIds:[m,B==null?void 0:B.refUserId],convoType:"SINGLE",convoStatus:"chatOpen"},Q=await Hs({body:W}),ie=((Xe=Q==null?void 0:Q.data)==null?void 0:Xe.conversationData)||((ue=Q==null?void 0:Q.data)==null?void 0:ue.conversations);Q.message!=="Duplicate"&&i(qt(ie));let Y=Q.message==="Duplicate"?(Ae=Q==null?void 0:Q.data)==null?void 0:Ae.conversations[0]:(Se=Q==null?void 0:Q.data)==null?void 0:Se.conversationData,pe=`https://www.tickbig.com/profile/project/${Ee(u+"-reference-"+(t==null?void 0:t._id)+"-reference-"+(B==null?void 0:B.refUserId))}`;if(["pending","rejected"].includes(Y.convoStatus))return;const me=Date.now(),Ce=Ee(e0(K,pe)),Ye={_id:me,conversationId:Y._id,fromId:m,toId:Y.users.map(ve=>
185ve._id),body:Ce,createdAt:new Date().toISOString(),pending:!l.connected,isRead:Y.users.reduce((ve,J)=>({...ve,[J._id]:J._id===m}),{}),isDelivered:Y.users.reduce((ve,J)=>({...ve,[J._id]:J._id===m}),{})};if(i(jt(Ye,Y._id)),i(ft(Ye,Y._id,m,Y.convoStatus)),!l.connected){o("Socket not connected. Message will be sent later."),vo({body:Ce,sender:m,convoId:Y._id,openConvStatus:Y.convoStatus});return}Ka({body:Ce,sender:m,convoId:Y._id,openConvStatus:Y.convoStatus},ve=>{var J,D;ve&&(J=ve==null?void 0:ve.message)!=null&&J.createdAt&&(i(Ln({convoId:Y._id,tempId:me,newMessage:ve.message})),i(jt(ve.message,Y._id)),i(ft(ve.message,Y._id,m,(D=ve==null?void 0:ve.conversation)==null?void 0:D.convoStatus)))})}),i(ds((X=(H=te==null?void 0:te.data)==null?void 0:H.profile)==null?void 0:X.project,"project")),a(),s(),c("Project updated successfully")):ne.length===0&&(i(ds((se=(ee=te==null?void 0:te.data)==null?void 0:ee.profile)==null?void 0:se.project,"project")),a(),s(),c("Project updated successfully")):te&&((ae=te==null?void 0:te.data)!=null&&ae.noProject)&&(o("Project not added"),s())},A=()=>{const{projectDescription:L}=y();if((t==null?void 0:t.projectDescription.length)===0||L.length===0||!L.trim())return"Project Description is required"},R=()=>{var F,U,Z,ne,K;const{projectName:L}=y();if(((F=t==null?void 0:t.projectName)==null?void 0:F.length)===0||((U=L==null?void 0:L.trim())==null?void 0:U.length)===0)return"Project Name is invalid.";if(((ne=(Z=t==null?void 0:t.projectName)==null?void 0:Z.trim())==null?void 0:ne.length)>50||((K=L==null?void 0:L.trim())==null?void 0:K.length)>50)return"Project Name should not exceed 50 characters.";E("projectName")};return We(()=>{t!=null&&t.projectResponsibility&&(r(t.projectResponsibility),g("projectResponsibility",t.projectResponsibility)),I("projectResponsibility",{validate:L=>L!=null&&L.trim()?L.trim().length<60?"projectResponsibility should be at least 60 characters long.":!0:"projectResponsibility should not be empty."})},[I,g,t==null?void 0:t.projectResponsibility]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"edmile__main",children:e.jsxs("section",{className:"edmile__Section",children:[e.jsxs("div",{className:"edmile__parent1",children:[e.jsx("div",{className:"edmile__iconc col-lg-6",children:e.jsx("div",{className:"edmile__title",children:"Manage Project"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"edmile__icon",children:e.jsx(ps,{className:"edmile__close",onClick:s})})})]}),e.jsx("div",{className:"custom__Scroll",children:e.jsxs("form",{autoComplete:"off",onSubmit:w(T),children:[e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{className:"did-floating-input",type:"text",placeholder:" ",label:"Project Name",defaultValue:t.projectName,...I("projectName",{required:{value:!0,message:"Project Name is required"},validate:R})}),e.jsx("label",{className:"did-floating-label",children:"Project Name"}),(C==null?void 0:C.projectName)&&e.jsx(Me,{errMsg:(P=C==null?void 0:C.projectName)==null?void 0:P.message})]}),e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(Wa,{selectedOption:x,setSelectedOption:j,accountType:["Brands","Institutes"],placehold:"Company Name"})}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx(Is,{name:"projectDescription",id:"custom-css-outlined-input",size:"small",className:"textField my-2 mt-4",multiline:!0,rows:4,InputProps:{className:"textfield"},label:"Objective",InputLabelProps:{style:{color:"#a7aaab",fontSize:"16px"}},defaultValue:t==null?void 0:t.projectDescription,type:"text",...I("projectDescription",{required:{value:!0,message:"Description is required"},minLength:{value:50,message:"Minimum 50 characters allowed."},maxLength:{value:360,message:"Maximum 360 characters allowed."},validate:A})}),(C==null?void 0:C.projectDescription)&&e.jsx(Me,{errMsg:(O=C==null?void 0:C.projectDescription)==null?void 0:O.message})]}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("label",{className:"",children:"Responsibility"}),e.jsx(bd,{modules:Kp,value:n,formats:Qp,onChange:L=>{r(L),g("projectResponsibility",L,{shouldValidate:!0})}}),(C==null?void 0:C.projectResponsibility)&&e.jsx(Me,{errMsg:(M=C==null?void 0:C.projectResponsibility)==null?void 0:M.message})]}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{className:"did-floating-input",type:"url",placeholder:" ",label:"Project Link",defaultValue:t.projectLink,...I("projectLink",{})}),e.jsx("label",{className:"did-floating-label",children:"Project Link (Optional)"})]}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsxs("label",{children:["Project Verification",e.jsx(va,{data:"Add your peer/ senior's n
185ame with whom you had collaborated on this project. A verified project improves your credibility and in turn your branding.",colordata:"#a7aaab"})]}),e.jsx(Xp,{dropdownOptions:d(f,"Individuals"),dropdownValue:v,setDropdownValue:N,control:S,setValue:g,clearErrors:E,name:"Reference"})]})]}),e.jsx("div",{className:"gap-1 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})})]})})})}const OS=({pro:s,sybType:t,itsMe:a,loadProfileReview:i})=>{var j,I,w,y,k;const{successToast:n,errorToast:r,errorHandle:l,warningToast:c}=he(),o=ts().userUniqueId,p=ge(),{userProfile:h}=G(S=>S.profile),[d,u]=b.useState({open:!1,itemId:null}),[m,f]=b.useState(!1),v=()=>f(!m),N=async S=>{var g,E,C,T,A;try{const R=await s3(o,S,s==null?void 0:s.projectReference);((g=R==null?void 0:R.data)==null?void 0:g.statusCode)===Ke&&((C=(E=R==null?void 0:R.data)==null?void 0:E.data)!=null&&C.profile)&&(u(P=>({...P,open:!1,itemId:null})),c("Project Removed"),p(ds((A=(T=R==null?void 0:R.data)==null?void 0:T.profile)==null?void 0:A.project,"project")),i())}catch(R){l(R)}},_=S=>{try{new URL(S),window.open(s.projectLink,"_blank")}catch{return window.open(`http://${s==null?void 0:s.projectLink}`,"_blank"),!1}},x=S=>{u(g=>({...g,open:!0,itemId:S}))};return e.jsxs(e.Fragment,{children:[e.jsxs("main",{className:"profile__project--main",children:[a&&e.jsx(LS,{handleFn:x,idRef:s==null?void 0:s._id,handleEditFn:v}),e.jsx("div",{className:"display-flex-aljc-center",children:e.jsxs("section",{className:"profile__projectCard1",children:[e.jsxs("div",{className:"display-flex-aic-jcsb profile__projectCard1--header",children:[e.jsx("p",{children:s==null?void 0:s.projectName}),(s==null?void 0:s.projectLink)&&e.jsx(e.Fragment,{children:e.jsx("div",{className:"profile__projectCard1--linkIcon",onClick:()=>_(s==null?void 0:s.projectLink),children:e.jsx("img",{src:PS,alt:"linkicon"})})})]}),e.jsx("p",{className:"profile__projectCard1--company",children:((j=s==null?void 0:s.companyId)==null?void 0:j._id)==((I=h==null?void 0:h.user)==null?void 0:I._id)&&(s!=null&&s.companyName)?s==null?void 0:s.companyName:((w=s==null?void 0:s.companyId)==null?void 0:w._id)==((y=h==null?void 0:h.user)==null?void 0:y._id)&&!(s!=null&&s.companyName)?"":(k=s==null?void 0:s.companyId)==null?void 0:k.firstName}),e.jsxs("div",{children:[e.jsx("p",{className:"profile__projectCard1--title",children:"Objective"}),e.jsx("p",{className:"profile_aboutme_bio",children:s==null?void 0:s.projectDescription})]}),e.jsxs("div",{children:[e.jsx("p",{className:"profile__projectCard1--title",children:"Responsibilities"}),e.jsx("div",{className:"profile-project-responsibility__Scroll",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:fa.sanitize(s==null?void 0:s.projectResponsibility,{sanitize:!0})},style:{width:"95%",color:"var(--text-color-primary)"}})})]}),e.jsx("div",{style:{paddingTop:"10px"},children:e.jsx(RS,{pro:s})})]})})]}),e.jsx(qe,{open:m,onClose:v,children:e.jsx(Ie,{sx:cs,className:"modal__Profile",children:e.jsx(BS,{handleProjectModal:v,pro:s,loadProfileReview:i})})}),e.jsx(As,{confirm:d.open,setConfirm:u,action:"delete this project",performer:N,itemId:s==null?void 0:s._id})]})},US=OS;function s0({handleProjectModal:s,loadProfileReview:t}){var R,P,O;const a=ge(),i=Ds(),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),{createOptions:o}=si(),p=ts().userUniqueId,{user:h,userDetails:{friends:d,subType:u,username:m}}=G(M=>M.auth),[f,v]=b.useState(),[N,_]=b.useState([{value:"Choose One"}]),{register:x,handleSubmit:j,getValues:I,control:w,watch:y,setValue:k,clearErrors:S,formState:{errors:g}}=Qe(),E=()=>{const{projectDescription:M}=I();if(!M.trim())return"Description is required"},C=()=>{var L,F;const{projectName:M}=I();if(((L=M==null?void 0:M.trim())==null?void 0:L.length)===0)return"Project Name is invalid.";if(((F=M==null?void 0:M.trim())==null?void 0:F.length)>50)return"Project Name should not exceed 50 characters.";S("projectName")};We(()=>{x("projectResponsibility",{validate:M=>M!=null&&M.trim()?M.trim().length<60?"projectResponsibility should be at least 60 characters long.":!0:"projectResponsibility should not be empty."})},[x]);const T=y("projectResponsibility"),A=async M=>
185{var K,te,q,H,X,ee,se,ae;let{Reference:L,...F}=M;const U=(L==null?void 0:L.length)>0?L==null?void 0:L.map(B=>({refUserId:B==null?void 0:B.value,refStatus:"Pending"})):[],Z={...F,projectReference:U};(f==null?void 0:f.subType)!="New"?(Z.companyId=f==null?void 0:f._id,Z.companyName=""):(Z.companyName=f.firstName,Z.companyId=h);const ne=await a3(p,Z);if(ne&&(ne!=null&&ne.data)&&((K=ne==null?void 0:ne.data)!=null&&K.profile)){let B=(q=(te=ne==null?void 0:ne.data)==null?void 0:te.profile)==null?void 0:q.project,W=(H=B[B.length-1])==null?void 0:H._id;U.length>0?(U==null||U.map(async Q=>{var Ae,Se,ve,J;let ie={userIds:[h,Q==null?void 0:Q.refUserId],convoType:"SINGLE",convoStatus:"chatOpen"},Y=await Hs({body:ie}),pe=((Ae=Y==null?void 0:Y.data)==null?void 0:Ae.conversationData)||((Se=Y==null?void 0:Y.data)==null?void 0:Se.conversations);Y.message!=="Duplicate"&&a(qt(pe));let me=Y.message==="Duplicate"?(ve=Y==null?void 0:Y.data)==null?void 0:ve.conversations[0]:(J=Y==null?void 0:Y.data)==null?void 0:J.conversationData,Ce=`https://www.tickbig.com/profile/project/${Ee(p+"-reference-"+W+"-reference-"+(Q==null?void 0:Q.refUserId))}`;if(["pending","rejected"].includes(me.convoStatus))return;const Ye=Date.now(),Xe=Ee(e0(Z,Ce)),ue={_id:Ye,conversationId:me._id,fromId:h,toId:me.users.map(D=>D._id),body:Xe,createdAt:new Date().toISOString(),pending:!i.connected,isRead:me.users.reduce((D,$)=>({...D,[$._id]:$._id===h}),{}),isDelivered:me.users.reduce((D,$)=>({...D,[$._id]:$._id===h}),{})};if(a(jt(ue,me._id)),a(ft(ue,me._id,h,me.convoStatus)),!i.connected){r("Socket not connected. Message will be sent later."),savePendingMessage({body:Xe,sender:h,convoId:me._id,openConvStatus:me.convoStatus});return}Ka({body:Xe,sender:h,convoId:me._id,openConvStatus:me.convoStatus},D=>{var $,re;D&&($=D==null?void 0:D.message)!=null&&$.createdAt&&(a(Ln({convoId:me._id,tempId:Ye,newMessage:D.message})),a(jt(D.message,me._id)),a(ft(D.message,me._id,h,(re=D==null?void 0:D.conversation)==null?void 0:re.convoStatus)))})}),a(ds((ee=(X=ne==null?void 0:ne.data)==null?void 0:X.profile)==null?void 0:ee.project,"project")),s(),n("Project updated successfully"),t()):(a(ds((ae=(se=ne==null?void 0:ne.data)==null?void 0:se.profile)==null?void 0:ae.project,"project")),s(),n("Project updated successfully"),t())}};return e.jsx(e.Fragment,{children:e.jsx("main",{className:"edmile__main",children:e.jsxs("section",{className:"edmile__Section",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Manage Projects"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsxs("div",{className:"custom__Scroll",children:[e.jsx("label",{children:"Personal Information"}),e.jsxs("form",{autoComplete:"off",onSubmit:j(A),children:[e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{className:"did-floating-input",type:"text",placeholder:"",label:"Project Name",...x("projectName",{required:{value:!0,message:"Project Name is required"},validate:C,maxLength:{value:50,message:"Max 50 characters allowed"}})}),e.jsx("label",{className:"did-floating-label",children:"Project Name"}),(g==null?void 0:g.projectName)&&e.jsx(Me,{errMsg:(R=g==null?void 0:g.projectName)==null?void 0:R.message})]}),e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(Wa,{selectedOption:f,setSelectedOption:v,accountType:["Brands","Institutes"],placehold:"Company Name"})}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx(Is,{name:"projectDescription",id:"custom-css-outlined-input",size:"small",className:"textField my-2 mt-4",multiline:!0,rows:4,InputProps:{className:"textfield"},label:"Objective",InputLabelProps:{style:{color:"#a7aaab",fontSize:"16px"}},type:"text",...x("projectDescription",{required:{value:!0,message:"Description is required"},minLength:{value:50,message:"Minimum 50 characters allowed."},maxLength:{value:360,message:"Maximum 360 characters allowed."},validate:E})}),(g==null?void 0:g.projectDescription)&&e.jsx(Me,{errMsg:(P=g==null?void 0:g.projectDescription)==null?void 0:P.message})]}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("label",{className:"",children:"Responsibilities"}),e.jsx("div",{className:"my-3",children:e.jsx(bd,{modules:Kp,formats:Qp,value:T,onChange:M=>{k("projectResponsibility",M,{shouldValidate:!0})}})}),(g==null?void 0:g.projectResponsibility)&&e.jsx(Me,{errMsg:(O=g==null?void 0:g.projectResponsibility)==null?void 0:O.message})]}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{className:"did-floating-input",type:"url",placeholder:"",label:"Project Link",...x("projectLink",{})}),e.jsx("label",{className:"did-floating-label",children:"Project Link (Optional)"})]}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsxs("label",{children:["Project Verification",e.jsx(va,{data:"Add your peer/ senior's n
185ame with whom you had collaborated on this project. A verified project improves your credibility and in turn your branding.",colordata:"#a7aaab"})]}),e.jsx(Xp,{dropdownOptions:o(d,"Individuals"),dropdownValue:N,setDropdownValue:_,control:w,setValue:k,clearErrors:S,name:"Reference"})]})]}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end profile_modal_input__save_container",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})]})]})})})}function Tn({itsMe:s,loadProfileReview:t}){var c,o;const{user:a}=G(p=>p.auth),{userProfile:i}=G(p=>p.profile),[n,r]=b.useState(!1),l=()=>r(!n);return e.jsxs(e.Fragment,{children:[e.jsxs("section",{children:[e.jsx(st,{data:"Projects & Links"}),e.jsx("div",{className:"flex-wrap gap-3 d-flex justify-content-evenly",children:a&&s&&e.jsx(e.Fragment,{children:e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:l,children:e.jsx("i",{className:"fa-solid fa-plus profIcoSty"})})})}),e.jsx("main",{children:e.jsx("div",{className:"profile__projects-card-container",children:((c=i==null?void 0:i.project)==null?void 0:c.length)>0?e.jsxs(e.Fragment,{children:[e.jsx(co,{modules:[Cg,Tg,Ig,Ag],spaceBetween:50,autoHeight:!0,slidesPerView:1,navigation:{nextEl:".arrow-left",prevEl:".arrow-right"},pagination:!1,scrollbar:!1,children:e.jsx(e.Fragment,{children:(o=i==null?void 0:i.project)==null?void 0:o.map((p,h)=>{var d;return e.jsx(mo,{children:e.jsx(US,{pro:p,sybType:(d=i==null?void 0:i.user)==null?void 0:d.subType,itsMe:s,loadProfileReview:t},h)},h)})})}),e.jsx("button",{type:"button",style:{left:15},className:"arrow-right arrow arrowstyle",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})})}),e.jsx("button",{type:"button",style:{right:15},className:"arrow-left arrow arrowstyle",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})})]}):e.jsx("p",{className:"profile_section_bg_desc profile_section_bg_nodata_msg",children:"Add Projects to display here."})})})]}),e.jsx(qe,{open:n,onClose:l,children:e.jsx(Ie,{sx:cs,className:"modal__Profile",children:e.jsx(s0,{handleProjectModal:l,loadProfileReview:t})})})]})}const DS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAYAAABc6S4mAAAABHNCSVQICAgIfAhkiAAAAfFJREFUOE+llU0oBHEYxndcfIQcFCW1iSjCXUlx4KCkRClWEUcnOTq6OLjJTRLlQG2xe9uDg4t81J44rJWPooiSQuv3aEZjGv/dHW89zcz78Tz/r/c/VuiflslkLCjaQBk4sCwr46ZU0GgQtJOQovDJm0isBV83SBPf8SP6U8Am7qIoQfGJu5hYMd/DIAzuwQo5nzkJUFxB4oBdfEhhzENexfcoKLf9q+Tc/LUMv2YAeTWJEVAEtCQa2ZtTbMcn+C60fefEN0xr/CPgIVeNlibhItfMpoGWx7EYOYdZBSDXiGeASBzb5+USgjs5yBni0ewhe+T7AbwAvZ+S/+zO+Z4BxV08BD9L4LwAk6aRumJJ3qPO0lr2ps4aiheJ9fuM3qSn/dPmv0pA51ynxs9SONfBHHA2NseJhJIIbEtghIomw/KkiY3lyurJW5LAPE5tsp9t4awEPQEF4hJYMBRLoBZ0BBRIZhNIQFwAOgMKXEpA518d7GdqIp2I3oACxxLQCdJJ8jM1WRyMBxTYk0CY4oiBYJnYFCjJU0S365LTyaZZ6Kq+BX15ChzRB1H3ZWfqh13IW0FdjiJX5K0h8OG9rtVw2g9v46XwbYJB0JhF5Iy47qJ35Zn+aDpZasA7zz+hHl8DqAH66ZQqB2gQuh6u3QP4AjzZqIwnQqj+AAAAAElFTkSuQmCC",qS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAYAAABc6S4mAAAABHNCSVQICAgIfAhkiAAAAhRJREFUOE+dlT1IHUEUhbNE0ajxB0WNEHmIv41YiWKTzp8qmkJtNIVFMERMIxZaaylYKMHCQtDSTouIFhZ2PlRQweJBLIKNEkMwYvLynWVWxqezefsGDjsz99xzZmZ373jPrJZMJj2GdaAB1ICX4BpcgiNw4HneXZACv5h+EfjN/HdbK+hL0G+QRewHVU8RzdwvntvgEHwAMrBbnEEcs8QDA8RLmBgB+SHidkgmL0Cbg7+HyaZinjmWj/TL0hQPaIt0ukDMkbeJyZ4MmiH0RRQX/RicgreO3Bvm52QwSEcvNWr7Q8IMmApJXJfBJwilUdUNf4Fnd8gxxWUwDeF5hgYr5NUC18tOyGACQl6GBqvkvQJvHPm+wRBB/VSZtCWzg1CDVkg9maiTMwv0FTU68ne0gyyCY6Awosk53/kS+ZPk5TpyF/1SAamax3DEl70F/xt47xC/YgFzdi0qh/gOVKSxExW8edALYg7+GgYn9wYBid28pl9vjqyAZyVIrVFfSd41u1dcn2mLZZQgvqzxI4PU1WCoCttkzassf0Hgr7WoAfrBi1Z8mbhKRbiBKYSfzW7E/2HEf1riKtnjZvxAPB2DdkidJlniK6zswt4li9C9oGPSXaAK6q88aM4jMnfEKMRssA82SL5NEdc/IHEJJ+xYqAHiORB0AekGk/Cj6xBOzD8Ch7DTgETdVB3g7H/JT604de4fxFOo/ucszyMAAAAASUVORK5CYII=";function VS({pro:s}){var t,a,i,n,r,l;return e.jsx("div",{className:"display-flex-aljc-center profile__testimonial-card ",children:e.jsx("div",{className:"testimonial-border",children:e.jsxs("div",{className:"profile__testimonial-main",children:[e.jsxs("div",{className:"profile__testimonial-card-content",children:[e.jsxs("div",{className:"display-flex-aljc-center fdc profile__testimonial-bottom-container",children:[e.jsx("div",{className:"profile__testimonial-profile-pic"}),e.jsx("div",{className:"profile__testimonial-name",children:e.jsx(Ie,{children:e.jsx(ua,{data:(i=(a=(t=s==null?void 0:s.commentedBy)==null?void 0:t.ratings[3])==null?void 0:a.ratings)==null?void 0:i.toFixed(1),size:"medium"})})})]}),e.jsx("div",{className:"profile__testimonial-quote-left",children:e.jsx("img",{src:DS,alt:""})}),e.jsx("div",{className:"profile__testimonial-review",children:e.jsx("div",{className:"profile__testimonial-content",children:e.jsx("p",{className:"profile__testimonial-content-p",children:s.comment})})}),e.jsx("div",{className:"profile__testimonial-quote-right",children:e.jsx("img",{src:qS,alt:""})})]}),e.jsx("div",{className:"textimonial-by",children:e.jsxs("div",{className:"projectReference_container",style:{justifyContent:"center"},children:[e.jsx("div",{className:"jpfi--img-wrap",children:e.jsx(ss,{src:(n=s==null?void 0:s.commentedBy)==null?void 0:n.avatar,className:"profilePeopleCard--avatar"})}),e.jsxs("div",{className:"profileReference_text_container",children:[e.jsx("p",{className:"profileReferenceCard--name",children:de((r=s==null?void 0:s.commentedBy)==null?void 0:r.firstName)}),e.jsx("p",{className:"profilePeopleCard--role",children:(l=s==null?void 0:s.commentedBy)==null?void 0:l.subType})]})]})})]})})})}function zS({handleAchivementModalClose:s,itsMe:t,loadProfileReview:a}){var x;const i=ts().userUniqueId,{successToast:n,warningToast:r,errorToast:l,restrictCopyPaste:c,errorHandle:o}=he(),p=ge(),{register:h,handleSubmit:d,formState:u,getValues:m,formState:{errors:f}}=Qe(),{userProfile:v}=G(j=>j.profile),N=async j=>{var w,y,k;const I=await l3(i,j,(w=v==null?void 0:v.user)==null?void 0:w.subType);I&&(I==null?void 0:I.statusCode)===Ke?(p(ds((k=(y=I==null?void 0:I.data)==null?void 0:y.profile)==null?void 0:k.testimonials,"testimonials")),s(),n("Testimonial added"),a()):(r("Testimonial not added"),s())},_=()=>{const{comment:j}=m();if(!j.trim())return"Comment is required"};return e.jsx(e.Fragment,{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"footer_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6",children:e.jsx("div",{className:"profile_service_input__title",children:"Write a Testimonial"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsx("div",{className:"custom__Scroll",style:{padding:"5px 5px",margin:"5px 5px"},children:e.jsxs("form",{autoComplete:"off",onSubmit:d(N),className:"form__testimonail",children:[e.jsxs("div",{className:"editab__parent3",children:[e.jsx(Is,{name:"Comment",id:"custom-css-outlined-input",size:"small",className:"textField",InputProps:{className:"textfield"},label:"Comments",onCopy:j=>c(j),onPaste:j=>c(j),multiline:!0,rows:4,InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"14px"}},...h("comment",{required:{value:!0,message:"Comment is required"},validate:_,minLength:{value:100,message:"Comment cannot be less than 100 characters in length."},maxLength:{value:200,message:"Comment cannot be more than 200 characters in length."}})}),(f==null?void 0:f.comment)&&e.jsx(Me,{errMsg:(x=f==null?void 0:f.comment)==null?void 0:x.message})]}),e.jsx("span",{className:"editab__parent5",style:{justifyContent:"flex-end"},children:e.jsxs("button",{type:"submit",disabled:u.isSubmitting,className:"profile_modal_input__save_icon",children:[u.isSubmitting&&e.jsx("span",{className:"mr-1 spinner-border spinner-border-sm"}),"Save"]})})]})})]})})})})})}function Ho({itsMe:s,loadProfileReview:t}){var p,h,d,u;const{user:a}=G(m=>m.auth),{userProfile:i}=G(m=>m.profile),[n,r]=b.useState(!1),l=()=>r(!n),c=()=>r(!n),o=(p=i==null?void 0:i.testimonials)==null?void 0:p.filter(m=>{var f;return((f=m==null?void 0:m.commentedBy)==null?void 0:f._id)===a});return e.jsxs(e.Fragment,{children:[(((h=i==null?void 0:i.testimonials)==null?void 0:h.length)>0||a&&!s)&&e.jsxs(e.Fragment,{children:[e.jsx(st,{data:"Testimonials"}),e.jsx("main",{children:e.jsxs("section",{className:"justify-content-center",children:[a&&!s&&(o==null?void 0:o.length)===0&&e.jsx("div",{className:"flex-wrap gap-3 d-flex justify-content-center",children:e.jsx("div",{style:{paddingBottom:"15px"},children:e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:l,children:e.jsx("i",{className:"fa-solid fa-plus profIcoSty"})})})}),((d=i==null?void 0:i.testimonials)==null?void 0:d.length)>0&&e.jsx(Eg.Carousel,{autoPlay:!0,showArrows:!1,showStatus:!1,showThumbs:!1,showIndicators:!1,preventMovementUntilSwipeScrollTolerance:!0,swipeScrollTolerance:10,emulateTouch:!0,children:i==null?void 0:i.testimonials.map((m,f)=>e.jsx(VS,{pro:m},f))}),a&&!s&&((u=i==null?void 0:i.testimonials)==null?void 0:u.length)===0&&e.jsx("p",{className:"profile_section_bg_desc profile_section_bg_nodata_msg",children:"Be the first one to write a testimonial here"})]})})]}),e.jsx(qe,{open:n,onClose:c,children:e.jsx(Ie,{sx:cs,className:"footerContainer",style:{overflowY:"hidden"},children:e.jsx(zS,{handleAchivementModalClose:c,itsMe:s,userProfile:i,loadProfileReview:t})})})]})}function Cc({data:s,dataState:t}){var a;return e.jsxs("div",{className:"did-floating-label-content",children:[e.jsx("input",{...s,className:`did-floating-input ${t!=null&&t.error?"is-invalid":""}`,placeholder:"Skill Name",style:{outline:"none",padding:"11px 20px"}}),(t==null?void 0:t.error)&&e.jsx("div",{className:"invalid-feedback",children:(a=t==null?void 0:t.error)==null?void 0:a.message})]})}const t0={PaperProps:{sx:{bgcolor:"var(--card-surface-secondary)",color:"var(--text-color-primary)",border:"1px solid var(--color-grey-700)","& .MuiMenuItem-root":{bgcolor:"var(--card-surface-secondary)","&:hover":{bgcolor:"var(--card-surface-2)"},"&.Mui-selected":{bgcolor:"var(--card-surface-2)","&:hover":{bgcolor:"var(--card-surface-2)"}}}}}};function Tc({data:s,dataState:t}){return e.jsx(e.Fragment,{children:e.jsxs(Mn,{sx:{minWidth:120},children:[e.jsxs(Ya,{...s,displayEmpty:!0,input:e.jsx(Xn,{}),placeholder:"Select Level",MenuProps:t0,sx:{".MuiSelect-icon":{color:"var(--text-color-primary)"}},children:[e.jsx(Ns,{value:"",disabled:!0,selected:!0,children:"Select Level"}),mi==null?void 0:mi.map((a,i)=>e.jsx(Ns,{value:a,children:a},i))]}),(t==null?void 0:t.error)&&e.jsx(Me,{errMsg:"Skill Level is required"})]})})}
185function WS({handleSkillModal:s,userProfile:t}){var y;const a=ge(),{successToast:i,warningToast:n,errorToast:r,errorHandle:l}=he(),c=ts().userUniqueId,[o,p]=b.useState(!1),{userDetails:{subType:h}}=G(k=>k.auth),{control:d,handleSubmit:u,reset:m,getValues:f,watch:v,formState:{errors:N}}=Qe({defaultValues:{topSkills:((y=t==null?void 0:t.topSkills)==null?void 0:y.length)>0?t==null?void 0:t.topSkills:[{skillName:"",skillLevel:""}]}}),{fields:_,append:x,remove:j}=Bs({control:d,name:"topSkills"}),I=async(k,S)=>{var E,C,T,A;const g=(E=k.topSkills)==null?void 0:E.filter(R=>R.skillName.trim()!=="");try{p(!0);const R=await Qv(c,{topSkills:g},h);R&&((C=R==null?void 0:R.data)!=null&&C.profile)&&(a(ds((A=(T=R==null?void 0:R.data)==null?void 0:T.profile)==null?void 0:A.topSkills,"topSkills")),s(),i("Skills have been updated"))}catch(R){l(R)}finally{p(!1)}},w=k=>{var g,E;const S=f();if((S==null?void 0:S.topSkills.length)>0&&!((E=(g=S==null?void 0:S.topSkills[k])==null?void 0:g.skillName)!=null&&E.trim()))return"Invalid Skill Name."};return We(()=>{t!=null&&t.topSkills&&m({topSkills:t==null?void 0:t.topSkills})},[m,t==null?void 0:t.topSkills]),e.jsx(e.Fragment,{children:e.jsx("main",{className:"profile_modal_close",children:e.jsxs("section",{className:"profile_modal_input__Section",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Manage Skills"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsx("div",{className:"custom__Scroll",children:e.jsxs("form",{autoComplete:"off",onSubmit:u(I),children:[_==null?void 0:_.map((k,S)=>e.jsxs("div",{className:"Skill_input-style mt-3",children:[e.jsx(xe,{name:`topSkills[${S}].skillName`,control:d,defaultValue:k.skillName,rules:{required:{value:!0,message:"Skill Name is required"},maxLength:{value:30,message:"maximum 30 characters"},validate:()=>w(S)},render:({field:g,fieldState:E})=>e.jsx(e.Fragment,{children:e.jsx(Cc,{data:g,dataState:E})})}),e.jsx(xe,{name:`topSkills[${S}].skillLevel`,control:d,defaultValue:k.skillLevel,rules:{required:{value:!0,message:"Skill Level is required"}},render:({field:g,fieldState:E})=>e.jsx(e.Fragment,{children:e.jsx(Tc,{data:g,dataState:E})})}),(_==null?void 0:_.length)>=1&&S!==0&&e.jsx("div",{className:"justify-content-end d-flex",children:e.jsx("button",{type:"button",className:"profile_modal_input__delete_icon",onClick:()=>j(S),children:e.jsx("span",{className:"display-flex-aljc-center",children:e.jsx("i",{className:"fa-solid fa-trash"})})})})]},k.id)),_.length===0&&e.jsxs("div",{className:"Skill_input-style mt-3",children:[e.jsx(xe,{name:"topSkills[0].skillName",control:d,defaultValue:"",rules:{required:{value:!0,message:"Skill Name is required"},maxLength:{value:30,message:"maximum 30 characters"},validate:()=>w(0)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(Cc,{data:k,dataState:S})})}),e.jsx(xe,{name:"topSkills[0].skillLevel",control:d,defaultValue:"",rules:{required:{value:!0,message:"Skill Level is required New"}},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(Tc,{data:k,dataState:S})})})]}),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end profile_modal_input__save_container profile_input_modal_end-line",children:[(_==null?void 0:_.length)<10&&e.jsxs("button",{type:"button",className:"d-flex align-items-center profile_modal_input__skill_icon",onClick:()=>{(_==null?void 0:_.length)<10&&x({skillName:"",skillLevel:""})},disabled:(_==null?void 0:_.length)>=10,children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add skills"]}),e.jsx("button",{type:"submit",className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",disabled:o,children:o?"Submitting...":"Submit"})]})]})})]})})})}const $S="/assets/SkillEmpty-DgzA1FYk.svg",a0="data:image/svg+xml,%3csvg%20id='Group_10128'%20data-name='Group%2010128'%20xmlns='http://www.w3.org/2000/svg'%20width='27.456'%20height='27.456'%20viewBox='0%200%2027.456%2027.456'%3e%3cpath%20id='Path_24817'%20data-name='Path%2024817'%20d='M19.444,5.716a1.716,1.716,0,1,0-3.432,0v10.3H5.716a1.716,1.716,0,1,0,0,3.432h10.3v10.3a1.716,1.716,0,1,0,3.432,0v-10.3h10.3a1.716,1.716,0,1,0,0-3.432h-10.3Z'%20transform='translate(-4%20-4)'%2
1850fill='%23252b2d'/%3e%3c/svg%3e";function HS({id:s,onClickFn:t,arg:a,name:i,cssStyle:n,imgSrc:r,altText:l,imageClass:c,loading:o}){const p=()=>{a?t(a):t()};return e.jsx(e.Fragment,{children:e.jsx("button",{id:s,className:n,onClick:p,disabled:o,children:e.jsxs("span",{children:[r&&l&&e.jsx("img",{src:r,alt:l,className:c})," ",i]})})})}function Ic({itsMe:s,loadProfileReview:t}){var l,c,o,p;ts().userUniqueId,ge();const{userProfile:a}=G(h=>h.profile);G(h=>h.auth);const[i,n]=b.useState(!1);b.useState(!1);const r=()=>n(!i);return e.jsxs(e.Fragment,{children:[e.jsxs("section",{children:[e.jsx(st,{data:"Expertise"}),s&&((l=a==null?void 0:a.topSkills)==null?void 0:l.length)>0&&e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:r,children:e.jsx("i",{className:"fas fa-edit profIcoSty"})}),((c=a==null?void 0:a.topSkills)==null?void 0:c.length)>0?e.jsx(e.Fragment,{children:e.jsx("div",{className:(((o=a==null?void 0:a.topSkills)==null?void 0:o.length)<=1,"expertise_Skill_Container  gap-2"),children:(p=a==null?void 0:a.topSkills)==null?void 0:p.map((h,d)=>e.jsxs("div",{className:"expertise_Container",children:[e.jsx("div",{className:"expertise_Name",children:h.skillName}),e.jsxs("div",{className:"display-flex-aic-jcsb Expertise_Level",children:[e.jsx("div",{className:"vertical_line"}),e.jsx("p",{children:h.skillLevel})]})]},d))})}):e.jsx("div",{className:"my-1",children:e.jsx("section",{children:e.jsxs("div",{className:"p-3 profile__Reviews-container display-flex-aljc-center fdc gap_2rem",children:[e.jsx("h3",{className:"text-white",children:" Top Skills"}),e.jsx("h6",{className:"text-white",children:"Add skills to showcase your expertise"}),e.jsx("img",{src:$S,alt:"add your skills to  profile",className:"display-flex-aljc-center SkillEmpty_icon"}),e.jsx(HS,{onClickFn:r,name:"Add Skills",cssStyle:"empty_btn_style",imgSrc:a0,altText:"Add Skills",imageClass:"empty_btn_icon"})]})})})]}),e.jsx(qe,{open:i,onClose:r,children:e.jsx(Ie,{sx:cs,children:e.jsx(WS,{handleSkillModal:r,userProfile:a})})})]})}const Ac="/assets/achievement-fHVBGKgV.svg",GS=({handleAchievementsModal:s,loadProfileReview:t})=>{var I;const a=ge(),i=ts().userUniqueId,{userProfile:n}=G(w=>w.profile),{successToast:r,warningToast:l,errorToast:c,errorHandle:o}=he();G(w=>w.auth);const{control:p,handleSubmit:h,reset:d,formState:{errors:u},getValues:m}=Qe({defaultValues:{achievements:((I=n==null?void 0:n.achievements)==null?void 0:I.length)>0?n==null?void 0:n.achievements:[{achievementTitle:"",achievementDescription:""}]}}),{fields:f,append:v,remove:N}=Bs({control:p,name:"achievements"}),_=w=>{var k,S;const{achievements:y}=m();if(!((S=(k=y[w])==null?void 0:k.achievementDescription)!=null&&S.trim()))return"Invalid achievement description."},x=w=>{var k,S;const{achievements:y}=m();if(!((S=(k=y[w])==null?void 0:k.achievementTitle)!=null&&S.trim()))return"Invalid achievement Title."},j=async w=>{var k,S,g;const y=await Zv(i,w.achievements);(y==null?void 0:y.statusCode)===Ke&&((k=y==null?void 0:y.data)!=null&&k.profile)?(a(ds((g=(S=y==null?void 0:y.data)==null?void 0:S.profile)==null?void 0:g.achievements,"achievements")),s(),r("Website updated successfully"),t()):(l("Achievements not updated"),s())};return We(()=>{var w;n!=null&&n.achievements&&d({achievements:((w=n==null?void 0:n.achievements)==null?void 0:w.length)>0?n==null?void 0:n.achievements:[{achievementTitle:"",achievementDescription:""}]})},[d,n==null?void 0:n.achievements]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"row ",children:[e.jsx("div",{className:"col-lg-2"}),e.jsx("div",{className:"col-lg-8",style:{width:"100%"},children:e.jsx("main",{className:"edmile__main",children:e.jsxs("section",{className:"edmile__Section",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Manage Achievements"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsx("div",{className:"custom__Scroll",children:e.jsxs("form",{autoComplete:"off",onSubmit:h(j),children:[f==null?void 0:f.map((w,y)=>e.jsx("div",{children:e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{children:[e.jsx("span",{children:y+1}),". Achievement"]}),e.jsx("img",{src:Dt,onClick:()=>N(y),className:"removecircle"})]}),e.jsx("div",{className:"did-floating-label-content w-100 mt-2",children:e.jsx(xe,{name:`achievements.${y}.achievementTitle`,control:p,defaultValue:w.achievementTitle,rules:{required:{value:!0,message:"Achievement Title is required"},maxLength:{value:30,message:"Max 30 characters allowed"},validate:()=>x(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:k,dataState:S,label:"Achievement Title"})})})}),e.jsx(xe,{name:`achievements.${y}.achievementDescription`,control:p,defaultValue:w.achievementDescription,rules:{required:{value:!0,message:"Achievement Description is required"},minLength:{value:40,message:"Description should be at least 40 characters long"},maxLength:{value:250,message:"Description should not exceed 250 characters"},validate:()=>_(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(ai,{data:k,dataState:S,label:"Description"})})}),e.jsx("hr",{})]})},w.id)),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end profile_modal_input__save_container profile_input_modal_end-line",children:[e.jsxs("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__skill_icon",onClick:()=>v({achievementTitle:"",achievementDescription:""}),children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add more"]}),e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})]})]})})]})})}),e.jsx("div",{className:"col-lg-2"})]})})},n0=GS;function Ec({itsMe:s,loadProfileReview:t}){var f;const[a,i]=b.useState(!1),n=ge(),r=ts().userUniqueId,l=()=>i(!a),{successToast:c,warningToast:o,errorToast:p,errorHandle:h}=he(),{userDetails:d}=G(v=>v.auth),{userProfile:u}=G(v=>v.profile),m=async v=>{var _,x;const N=await Kv(r,v,d==null?void 0:d.subType);(N==null?void 0:N.statusCode)===Ke&&(t(),c(H3),n(updateProfile((x=(_=N==null?void 0:N.data)==null?void 0:_.profile)==null?void 0:x.achievements,"achievements")))};return e.jsxs(e.Fragment,{children:[e.jsxs("section",{children:[e.jsx(st,{data:"Achievements"}),e.jsx("div",{className:"flex-wrap gap-3 d-flex justify-content-evenly",children:s&&e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:l,children:e.jsx("i",{className:"fa-solid fa-plus profIcoSty cp"})})}),e.jsx("main",{children:e.jsx("div",{className:"profile__projects-card-container",children:e.jsx(co,{slidesPerView:1,spaceBetween:30,centeredSlides:!0,loop:!0,autoplay:{delay:2500,disableOnInteraction:!0},modules:[vd],children:(f=u==null?void 0:u.achievements)==null?void 0:f.map((v,N)=>e.jsx(mo,{children:e.jsx("div",{className:"Profile__achievement-main",children:e.jsxs(Fs,{sx:{maxWidth:575,display:"flex",height:250,borderRadius:5,background:"var(--card-surface-primary)",padding:2,position:"relative",":hover > .hover-trash":{display:"block"}},children:[s&&e.jsx($o,{handleFn:m,idRef:v._id}),e.jsx(Ie,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:e.jsxs(da,{children:[e.jsx(Fe,{gutterBottom:!0,variant:"h6",component:"div",sx:{color:"var(--primary-color)",fontWeight:600},children:v.achievementTitle}),e.jsx(Fe,{variant:"body2",sx:{color:"var(--text-color-primary)",wordBreak:"break-word"},children:v.achievementDescription})]})}),e.jsx("img",{style:{width:200,height:100,padding:10,marginTop:15,mixBlendMode:"luminosity"},srcSet:`${Ac}?w=248&fit=crop&auto=format&dpr=2 2x`,src:`${Ac}?w=248&fit=crop&auto=format`,alt:"achivement logo",loading:"lazy"})]})})}))})})})]}),e.jsx(qe,{open:a,onClose:l,children:e.jsx(Ie,{sx:cs,className:"modal__Profile",children:e.jsx(n0,{handleAchievementsModal:l,loadProfileReview:t})})})]})}function JS({itsMe:s,loadProfileReview:t}){var i,n,r,l,c,o,p,h,d,u,m,f;G(v=>v.auth);const{userProfile:a}=G(v=>v.profile);return e.jsxs(e.Fragment,{children:[!s&&((i=a==null?void 0:a.topSkills)==null?void 0:i.length)>0||((n=a==null?void 0:a.additionalSkills)==null?void 0:n.length)>
1850?e.jsx("section",{id:"skills",style:{position:"relative"},children:e.jsx(Ic,{userProfile:a,itsMe:s,loadProfileReview:t})}):s?e.jsx("section",{id:"skills",style:{position:"relative"},children:e.jsx(Ic,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,!s&&((r=a==null?void 0:a.experience)==null?void 0:r.length)+((l=a==null?void 0:a.education)==null?void 0:l.length)>0?e.jsx("section",{id:"ee",style:{position:"relative"},children:e.jsx(kc,{userProfile:a,itsMe:s,loadProfileReview:t})}):s&&((c=a==null?void 0:a.experience)==null?void 0:c.length)+((o=a==null?void 0:a.education)==null?void 0:o.length)>0?e.jsx("section",{id:"ee",style:{position:"relative"},children:e.jsx(kc,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,!s&&((p=a==null?void 0:a.project)==null?void 0:p.length)>0?e.jsx("section",{id:"projects",style:{position:"relative"},children:e.jsx(Tn,{userProfile:a,itsMe:s,loadProfileReview:t})}):s&&((h=a==null?void 0:a.project)==null?void 0:h.length)>0?e.jsx("section",{id:"projects",style:{position:"relative"},children:e.jsx(Tn,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,!s&&((d=a==null?void 0:a.achievements)==null?void 0:d.length)>0?e.jsx("section",{id:"achievements",style:{position:"relative"},children:e.jsx(Ec,{userProfile:a,itsMe:s,loadProfileReview:t})}):s&&((u=a==null?void 0:a.achievements)==null?void 0:u.length)>0?e.jsx("section",{id:"achievements",style:{position:"relative"},children:e.jsx(Ec,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,!s&&((m=a==null?void 0:a.milestone)==null?void 0:m.length)>0?e.jsx("section",{id:"mileStone",style:{position:"relative"},children:e.jsx(ga,{userProfile:a,itsMe:s,loadProfileReview:t})}):s&&((f=a==null?void 0:a.milestone)==null?void 0:f.length)>0?e.jsx("section",{id:"mileStone",style:{position:"relative"},children:e.jsx(ga,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,e.jsx("section",{id:"testimonials",style:{position:"relative"},children:e.jsx(Ho,{userProfile:a,itsMe:s,loadProfileReview:t})})]})}const i0=({handleServicesModal:s,loadProfileReview:t})=>{var I;const a=ge(),{successToast:i,warningToast:n,errorToast:r,errorHandle:l}=he(),{userProfile:c}=G(w=>w.profile),o=ts().userUniqueId;G(w=>w.auth);const{control:p,handleSubmit:h,reset:d,getValues:u,formState:{errors:m}}=Qe({defaultValues:{services:((I=c==null?void 0:c.services)==null?void 0:I.length)>0?c==null?void 0:c.services:[{serviceTitle:"",serviceContent:""}]}}),{fields:f,append:v,remove:N}=Bs({control:p,name:"services"}),_=async w=>{var k,S,g;const y=await zv(o,w.services);y&&((k=y==null?void 0:y.data)!=null&&k.profile)&&(a(ds((g=(S=y==null?void 0:y.data)==null?void 0:S.profile)==null?void 0:g.services,"services")),i("Services have been updated"),s(),t())},x=w=>{var k,S;const y=u();if(!((S=(k=y==null?void 0:y.services[w])==null?void 0:k.serviceTitle)!=null&&S.trim()))return"Invalid Service Title."},j=w=>{var k,S;const y=u();if(!((S=(k=y==null?void 0:y.services[w])==null?void 0:k.serviceContent)!=null&&S.trim()))return"Invalid Service Content."};return We(()=>{var w;c!=null&&c.services&&d({services:((w=c==null?void 0:c.services)==null?void 0:w.length)>0?c==null?void 0:c.services:[{serviceTitle:"",serviceContent:""}]})},[d,c==null?void 0:c.services]),e.jsx(e.Fragment,{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"profile_service_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1 profile_input_modal_start-line",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6 ",children:e.jsx("div",{className:"profile_service_input__title",children:"Manage Services"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsx("div",{className:"custom__Scroll",children:e.jsxs("form",{autoComplete:"off",onSubmit:h(_),children:[f==null?void 0:f.map((w,y)=>e.jsx("div",{children:e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{children:[e.jsx("span",{children:y+1}),". Services"]}),e.jsx("img",{src:Dt,onClick:()=>N(y),className:"removecircle"})]}),e.jsx(xe,{name:`services[${y}].serviceTitle`,control:p,defaultValue:w.serviceTitle.trim(),rules:{required:{value:!0,message:"Title  is required"},validate:()=>x(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:k,dataState:S,label:"Title"})})}),e.jsx(xe,{name:`services[${y}].serviceContent`,control:p,defaultValue:w.serviceContent.trim(),rules:{required:{value:!0,message:"Service Description is required"},minLength:{value:50,message:"Service Description should be at least 50 characters long"},maxLength:{value:150,message:"Maximum 150 characters allowed"},validate:()=>j(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(ai,{data:k,dataState:S,label:"Service Description"})})})]})},w.id)),e.jsxs("div",{className:"gap-1 d-flex align-items-center justify-content-end profile_modal_input__save_container profile_input_modal_end-line",children:[e.jsxs("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__skill_icon",onClick:()=>v({serviceTitle:"",serviceContent:""}),type:"button",children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add more"]}),e.jsx("button",{type:"submit",className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",children:"Save"})]})]})})]})})})})})};function o0({handleSolutionModal:s,loadProfileReview:t}){var I;const a=ts().userUniqueId,{userProfile:i}=G(w=>w.profile),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),o=ge();G(w=>w.auth);const{control:p,handleSubmit:h,reset:d,getValues:u,formState:{errors:m}}=Qe({defaultValues:{solutions:((I=i==null?void 0:i.solutions)==null?void 0:I.length)>0?i==null?void 0:i.solutions:[{solutionTitle:"",solutionContent:""}]}}),{fields:f,append:v,remove:N}
185=Bs({control:p,name:"solutions"}),_=async w=>{var k,S,g;const y=await $v(a,w.solutions);y&&((k=y==null?void 0:y.data)!=null&&k.profile)&&(o(ds((g=(S=y==null?void 0:y.data)==null?void 0:S.profile)==null?void 0:g.solutions,"solutions")),s(),n("Solutions have been updated"),t())},x=w=>{var k,S;const y=u();if(!((S=(k=y==null?void 0:y.solutions[w])==null?void 0:k.solutionTitle)!=null&&S.trim()))return"Invalid Solution Title."},j=w=>{var k,S;const y=u();if(!((S=(k=y==null?void 0:y.solutions[w])==null?void 0:k.solutionContent)!=null&&S.trim()))return"Invalid Solution Content."};return We(()=>{var w;i!=null&&i.solutions&&d({solutions:((w=i==null?void 0:i.solutions)==null?void 0:w.length)>0?i==null?void 0:i.solutions:[{solutionTitle:"",solutionContent:""}]})},[d,i==null?void 0:i.solutions]),e.jsx(e.Fragment,{children:e.jsx("div",{className:"row ",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"profile_service_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1 profile_input_modal_start-line",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6",children:e.jsx("div",{className:"profile_service_input__title",children:"Manage Solutions"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsx("div",{className:"custom__Scroll",children:e.jsxs("form",{autoComplete:"off",onSubmit:h(_),children:[f==null?void 0:f.map((w,y)=>e.jsx("div",{children:e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{children:[e.jsx("span",{children:y+1}),". Solutions"]}),e.jsx("img",{src:Dt,onClick:()=>N(y),className:"removecircle"})]}),e.jsx(xe,{name:`solutions[${y}].solutionTitle`,control:p,defaultValue:w.solutionTitle,rules:{required:{value:!0,message:"Title  is required"},validate:()=>x(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:k,dataState:S,label:"Title"})})}),e.jsx(xe,{name:`solutions.${y}.solutionContent`,control:p,defaultValue:w.solutionContent,rules:{required:{value:!0,message:"Solution Description is required"},minLength:{value:50,message:"Solution Description should be at least 50 characters long"},maxLength:{value:150,message:"Maximum 150 characters allowed"},validate:()=>j(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(ai,{data:k,dataState:S,label:"Solution Description"})})})]})},w.id)),e.jsxs("div",{className:"gap-1 d-flex align-items-center justify-content-end profile_modal_input__save_container profile_input_modal_end-line",children:[e.jsxs("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__skill_icon",onClick:()=>v({solutionTitle:"",solutionContent:""}),type:"button",children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add more"]}),e.jsx("button",{type:"submit",className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",children:"Save"})]})]})})]})})})})})}const YS=({userProfile:s,itsMe:t,showAS:a,loadProfileReview:i})=>{var u;const n=ts().userUniqueId,r=ge(),{successToast:l,warningToast:c,errorToast:o,errorHandle:p}=he(),h=async m=>{var N,_;const{statusCode:f,data:v}=await Wv(n,m);f===Ke&&(l("Service deleted successfully"),r(ds((_=(N=v==null?void 0:v.data)==null?void 0:N.profile)==null?void 0:_.services,"services")),i())},d=({service:m,index:f})=>e.jsxs("main",{className:"d-flex align-items-start fdc profile__SerSolCard--main",children:[t&&e.jsx(ti,{handleFn:h,idRef:m._id}),e.jsx("p",{className:"profile__SerSolCard--header",children:m.serviceTitle}),e.jsx("hr",{style:{width:"10%",backgroundColor:"#0ADD87",height:"4px",margin:"0 0 1rem 0",border:"none",opacity:"1",borderRadius:"13px"}}),e.jsx("p",{className:"profile__SerSolCard",children:m.serviceContent})]},f);return e.jsx(e.Fragment,{children:(u=s==null?void 0:s.services)==null?void 0:u.map((m,f)=>e.jsx(e.Fragment,{children:!a.service&&f<=2?e.jsx(d,{service:m,index:f}):a.service&&e.jsx(d,{service:m,index:f})}))})};function ZS({itsMe:s,profileType:t,showAS:a,userProfile:i,loadProfileReview:n}){var m;const r=ts().userUniqueId,l=ge(),{successToast:c,warningToast:o,errorToast:p,errorHandle:h}=he(),d=async f=>{var _,x;const{statusCode:v,data:N}=await Hv(r,f);v===Ke&&(c("Solution deleted successfully"),l(ds((x=(_=N==null?void 0:N.data)==null?void 0:_.profile)==null?void 0:x.solutions,"solutions")),n())},u=({solution:f,index:v})=>e.jsxs("main",{className:"d-flex align-items-start fdc profile__SerSolCard--main",children:[s&&e.jsx(ti,{handleFn:d,idRef:f._id}),e.jsx("p",{className:"profile__SerSolCard--header",children:f.solutionTitle}),e.jsx("hr",{style:{width:"10%",backgroundColor:"#0ADD87",height:"4px",margin:"0 0 1rem 0",border:"none",opacity:"1",borderRadius:"13px"}}),e.jsx("p",{className:"profile__SerSolCard",children:f.solutionContent})]},v);return e.jsx(e.Fragment,{children:(m=i==null?void 0:i.solutions)==null?void 0:m.map((f,v)=>e.jsx(e.Fragment,{children:!a.solution&&v<=2?e.jsx(u,{solution:f,index:v}):a.solution&&e.jsx(u,{solution:f,index:v})}))})}const KS=({itsMe:s,loadProfileReview:t})=>{var f,v;const{userProfile:a}=G(N=>N.profile),[i,n]=b.useState(!1),r=()=>n(!i),[l,c]=b.useState(!1),o=()=>c(!l),[p,h]=b.useState({service:!1,solution:!1}
185),d={position:"absolute",top:"-10px",right:"5px"},u=()=>{h(N=>({...N,service:!N.service}))},m=()=>{h(N=>({...N,solution:!N.solution}))};return e.jsxs(e.Fragment,{children:[e.jsx(st,{data:"Services and Solutions"}),e.jsxs("main",{className:"profile_section_padding",children:[e.jsxs("section",{children:[e.jsxs("p",{className:"profile_sub_heading",children:["Services",e.jsx("span",{className:"display-flex-aljc-center",children:e.jsx("hr",{className:"profile__qualification-hr",style:{width:"20px"}})})]}),s&&e.jsx("div",{style:d,className:"display-flex-aljc-center icon-wrapper cp",onClick:r,children:e.jsx("i",{className:"fa-solid fa-plus profIcoSty"})}),e.jsx("div",{className:"profile__service--cards",children:e.jsx(YS,{userProfile:a,itsMe:s,showAS:p,loadProfileReview:t})}),((f=a==null?void 0:a.services)==null?void 0:f.length)>3&&e.jsx("div",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"text-center main__Head ",onClick:u,children:e.jsx("p",{className:"text-white viewAll cp",style:{border:"1px solid #0ADD87",fontSize:"0.75em"},children:p.service?"View Less":"View All"})})})]}),e.jsxs("section",{id:"solutions",className:"profile__solution",style:{position:"relative"},children:[e.jsxs("p",{className:"profile_sub_heading",children:["Solutions",e.jsx("span",{className:"display-flex-aljc-center",children:e.jsx("hr",{className:"profile__qualification-hr",style:{width:"20px"}})})]}),s&&e.jsx("div",{style:d,className:"display-flex-aljc-center icon-wrapper cp",onClick:o,children:e.jsx("i",{className:"fa-solid fa-plus profIcoSty"})}),e.jsx("div",{className:"profile__solution--cards",children:e.jsx(ZS,{userProfile:a,itsMe:s,showAS:p,loadProfileReview:t})})]}),((v=a==null?void 0:a.solutions)==null?void 0:v.length)>3&&e.jsx("div",{className:"display-flex-aljc-center",children:e.jsx("div",{className:"text-center main__Head",onClick:m,children:e.jsx("p",{className:"text-white viewAll cp",style:{border:"1px solid #0ADD87",fontSize:"0.75em"},children:p.solution?"View Less":"View All"})})})]}),e.jsx(qe,{open:i,onClose:r,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(i0,{handleServicesModal:r,loadProfileReview:t})})}),e.jsx(qe,{open:l,onClose:o,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(o0,{handleSolutionModal:o,loadProfileReview:t})})})]})},Mc=KS,Pc="/assets/placement%20icon-CmPw37sj.svg",r0=({handleClose:s,loadProfileReview:t})=>{const a=ge(),i=ts().userUniqueId;G(A=>A.auth);const{successToast:n,errorToast:r,errorHandle:l}=he(),[c,o]=b.useState(""),[p,h]=b.useState([]),[d,u]=b.useState(!1),[m,f]=b.useState([]),[v,N]=b.useState(!1),{register:_,control:x,handleSubmit:j,reset:I,formState:{errors:w}}=Qe({}),y=async()=>{var A,R;try{const P=await Pv({query:c});if(c.trim().length>25)N(!0),h((A=P==null?void 0:P.data)==null?void 0:A.usersData);else{N(!1);const O=[...(R=P==null?void 0:P.data)==null?void 0:R.usersData,{newData:!0,firstName:c}];h(O)}}catch(P){await l(P)}},k=async A=>{const R=A.target.value;o(R)},S=A=>{(A==null?void 0:A.firstName)==="Others"?(o(""),u(!0)):(o(""),h([]),f(R=>[...R,{clientName:A==null?void 0:A.firstName}]))},g=async A=>{f(R=>[...R,{clientName:A==null?void 0:A.otherName}]),u(!1),o(""),h([])},E=async()=>{var R,P,O;const A=await Gv(i,m);A&&((R=A==null?void 0:A.data)!=null&&R.profile)&&(a(ds((O=(P=A==null?void 0:A.data)==null?void 0:P.profile)==null?void 0:O.client,"client")),t(),s(),n("Website updated successfully"))},C=A=>{let R=m==null?void 0:m.filter(P=>P!==A);f(P=>[...R])},T=()=>{const{otherName:A}=getValues();if(A&&!(A!=null&&A.trim()))return"Invalid Name entered."};return We(()=>{c.trim().length>2&&y()},[c]),e.jsx(e.Fragment,{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"footer_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1 profile_input_modal_start-line",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6",children:e.jsx("div",{className:"profile_service_input__title",children:"Manage Clients"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsx("div",{style:{marginLeft:"11px",fontSize:"20px"},className:"profileinput_subheading",children:"Add Clients"}),e.jsxs("div",{className:"custom__Scroll",style:{padding:"5px 5px",margin:"5px 5px"},children:[e.jsxs("div",{className:"fdc businessCardInput-Container",style:{alignItems:"flex-start"},children:[e.jsx(Is,{id:"custom-css-outlined-input",size:"small",className:"textField my-2 mt-4",InputProps:{className:"textfield"},label:"Company Name",type:"text",InputLabelProps:{style:{color:"#e8ebec",fontSize:"14px"}},onChange:A=>k(A),value:c}),v&&e.jsx(Me,{errClass:"forgot_err",errMsg:"Client Name should not exceed 25 letters."}),d&&e.jsx("form",{autoComplete:"off",onSubmit:j(g),children:e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{className:"did-floating-input",type:"text",onKeyDown:A=>{Zs(A)},placeholder:"",label:"New Brand / Institute",..._("otherName",{required:{value:!0,message:"Input is required"},maxLength:{value:15,message:"input is too long"},validate:T})}),e.jsx("label",{className:"did-floating-label",children:"New Brand / Institute"}),(w==null?void 0:w.otherName)&&e.jsx(Me,{errClass:"forgot_err",errMsg:w==null?void 0:w.otherName.message})]}),e.jsx("div",{className:"gap-2 d-flex align-items-center",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"Submit",children:"Save"})})]})})]}),p==null?void 0:p.map((A,R)=>
185e.jsx(Da,{className:"mx-2 my-2",onChange:()=>S(A),children:e.jsx(At,{"aria-controls":"panel1a-content",id:"panel1a-header",children:e.jsxs("div",{className:"admin__c",children:[e.jsx(ss,{src:A==null?void 0:A.avatar,alt:A==null?void 0:A.firstName}),e.jsxs("div",{className:"fdc admin__names",children:[e.jsx("p",{className:"admin__name",children:A!=null&&A.newData?`Add '${A==null?void 0:A.firstName}'`:de(A==null?void 0:A.firstName)}),e.jsx("p",{className:"admin__role",children:A==null?void 0:A.subType})]})]})})},R)),(m==null?void 0:m.length)>0&&e.jsxs(e.Fragment,{children:[e.jsx("p",{style:{color:"var(--text-color-secondary)"},children:"Selected"}),e.jsx(Tt,{spacing:{xs:1,sm:2},direction:"row",useFlexGap:!0,flexWrap:"wrap",children:m==null?void 0:m.map(A=>e.jsx(e.Fragment,{children:e.jsx(Z0,{label:de(A==null?void 0:A.clientName),variant:"outlined",onDelete:()=>C(A),sx:{bgcolor:"var(--card-surface-2)",color:"var(--text-color-primary)",marginTop:"20px",borderColor:"var(--color-grey-700)"},deleteIcon:e.jsx(ps,{style:{fill:"var(--text-color-secondary)"}})})}))}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",onClick:()=>E(),children:"Save"})})]})]})]})})})})})},QS=({itsMe:s,sectionTitle:t,loadProfileReview:a})=>{var _,x,j,I;const i=ts().userUniqueId,{user:n}=G(w=>w.auth),{userProfile:r}=G(w=>w.profile),[l,c]=b.useState(!1),o=()=>c(!0),p=()=>c(!1),h=ge(),{successToast:d,warningToast:u,errorToast:m,errorHandle:f}=he(),v=async w=>{var k,S;const y=await Jv(i,w);(y==null?void 0:y.statusCode)===Ke&&(d("Client deleted successfully"),h(ds((S=(k=y==null?void 0:y.data)==null?void 0:k.profile)==null?void 0:S.client,"client")),a())},N=({client:w,index:y})=>e.jsx(e.Fragment,{children:e.jsx("div",{className:"d-flex client--container",children:e.jsxs("div",{className:"m-3 display-flex-aljc-center yourCompany",children:[s&&e.jsx($o,{handleFn:v,idRef:w._id}),e.jsx("p",{style:{fontSize:"smaller"},children:w.clientName})]})},y)});return e.jsx(e.Fragment,{children:e.jsxs("section",{children:[e.jsx(st,{data:t}),e.jsxs("main",{children:[e.jsx("div",{className:"flex-wrap gap-3 d-flex justify-content-center",children:n&&s&&e.jsx("div",{children:e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:o,children:e.jsx("img",{src:Ut,alt:"",style:{width:"12px",height:"12px",margin:"5px"}})})})}),e.jsxs("div",{className:"trusted_Companies ",children:[e.jsx("img",{className:"trusted_companies-bg",src:Pc,alt:"",style:{transform:"scaleX(-1)"}}),e.jsxs("div",{className:"trusted_Companies-length",children:[e.jsx("h1",{children:((_=r==null?void 0:r.client)==null?void 0:_.length)>=10?sv((x=r==null?void 0:r.client)==null?void 0:x.length):(j=r==null?void 0:r.client)==null?void 0:j.length}),e.jsx("p",{className:"trusted_Companies-header",children:"Trusted Companies"})]}),e.jsx("img",{className:"trusted_companies-bg",src:Pc,alt:""})]}),e.jsx(co,{spaceBetween:10,slidesPerView:5,autoplay:{delay:2500,disableOnInteraction:!0},breakpoints:{320:{slidesPerView:2,spaceBetween:10},480:{slidesPerView:3,spaceBetween:20},640:{slidesPerView:4,spaceBetween:30}},modules:[vd],children:e.jsx(e.Fragment,{children:(I=r==null?void 0:r.client)==null?void 0:I.slice().reverse().map((w,y)=>e.jsx(mo,{children:e.jsx(N,{client:w,index:y})},w._id||y))})}),e.jsx(qe,{open:l,onClose:p,children:e.jsx(Ie,{sx:cs,className:"footerContainer",style:{overflowY:"hidden"},children:e.jsx(r0,{handleClose:p,loadProfileReview:a})})})]})]})})},In=QS,Go=()=>{window.scrollTo({top:1,behavior:"smooth"})},XS=()=>{const[s,t]=b.useState(!1),a=()=>{const i=document.documentElement.scrollTop;i>500?t(!0):i<=500&&t(!1)};return window.addEventListener("scroll",a),e.jsx(e.Fragment,{children:e.jsx("button",{id:"topBtn",style:{display:s?"inline":"none"},onClick:Go,children:e.jsx("i",{className:"fa-solid fa-arrow-up toparrow"})})})},ek=XS,sk=()=>{const{userProfile:{teamData:s}}=G(a=>a.profile),{gotoProfile:t}=Be();return e.jsx(e.Fragment,{children:e.jsxs("section",{children:[e.jsx(st,{data:"Teams"}),e.jsx("main",{className:"profilePeople__main",children:e.jsx("section",{className:"profilePeople__card--parent",children:s==null?void 0:s.map(a=>{var i,n,r,l;return e.jsxs("div",{className:"profile-people-card",children:[e.jsx("div",{className:"card-border-top"}),e.jsx(ss,{src:(i=a==null?void 0:a.user)==null?void 0:i.avatar,alt:(n=a==null?void 0:a.user)==null?void 0:n.firstName,className:"img"}),e.jsx("span",{onClick:()=>{t(a==null?void 0:a.tickbigLink),Go()},className:"cp",children:(r=a==null?void 0:a.user)==null?void 0:r.firstName}),e.jsx("p",{className:"job",children:(l=a==null?void 0:a.businesscard)==null?void 0:l.designation})]})})})})]})})},tk=sk;function ak({itsMe:s,loadProfileReview:t}){var n,r,l,c,o,p,h,d,u,m,f;const{user:a}=G(v=>v.auth),{userProfile:i}=G(v=>v.profile);return e.jsxs(e.Fragment,{children:[!s&&((n=i==null?void 0:i.services)==null?void 0:n.length)+((r=i==null?void 0:i.solutions)==null?void 0:r.length)>
1850?e.jsx("section",{id:"services",style:{position:"relative"},children:e.jsx(Mc,{userProfile:i,itsMe:s,loadProfileReview:t})}):s&&((l=i==null?void 0:i.services)==null?void 0:l.length)+((c=i==null?void 0:i.solutions)==null?void 0:c.length)>0?e.jsx("section",{id:"services",style:{position:"relative"},children:e.jsx(Mc,{userProfile:i,itsMe:s,loadProfileReview:t})}):null,!s&&((o=i==null?void 0:i.project)==null?void 0:o.length)>0?e.jsx("section",{id:"projects",style:{position:"relative"},children:e.jsx(Tn,{userProfile:i,itsMe:s,loadProfileReview:t})}):a&&s&&((p=i==null?void 0:i.project)==null?void 0:p.length)>0?e.jsx("section",{id:"projects",style:{position:"relative"},children:e.jsx(Tn,{userProfile:i,itsMe:s,loadProfileReview:t})}):null,!s&&((h=i==null?void 0:i.milestone)==null?void 0:h.length)>0?e.jsx("section",{id:"mileStone",style:{position:"relative"},children:e.jsx(ga,{userProfile:i,itsMe:s,loadProfileReview:t})}):s&&((d=i==null?void 0:i.milestone)==null?void 0:d.length)>0?e.jsx("section",{id:"mileStone",style:{position:"relative"},children:e.jsx(ga,{userProfile:i,itsMe:s,loadProfileReview:t})}):null,!s&&((u=i==null?void 0:i.client)==null?void 0:u.length)>0?e.jsx("section",{id:"client",style:{position:"relative"},children:e.jsx(In,{userProfile:i,itsMe:s,sectionTitle:"Clients",loadProfileReview:t})}):s&&((m=i==null?void 0:i.client)==null?void 0:m.length)>0?e.jsx("section",{id:"client",style:{position:"relative"},children:e.jsx(In,{userProfile:i,itsMe:s,sectionTitle:"Clients",loadProfileReview:t})}):null,((f=i==null?void 0:i.teamData)==null?void 0:f.length)>0&&e.jsx("section",{id:"teams",style:{position:"relative"},children:e.jsx(tk,{})}),e.jsx("section",{id:"testimonials",style:{position:"relative"},children:e.jsx(Ho,{userProfile:i,itsMe:s,loadProfileReview:t})})]})}const nk="/assets/student%20placement-CWUNCJmh.svg";function l0({handlePlacementModal:s,loadProfileReview:t}){var f,v,N,_;const a=ts().userUniqueId,i=ge(),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he();G(x=>x.auth);const{userProfile:o}=G(x=>x.profile),{register:p,control:h,handleSubmit:d,formState:{errors:u}}=Qe({}),m=async x=>{var I,w,y;const j=await t3(a,x);j&&((I=j==null?void 0:j.data)!=null&&I.profile)&&(i(ds((y=(w=j==null?void 0:j.data)==null?void 0:w.profile)==null?void 0:y.placements,"placements")),t(),s(),n("Placement statistics updated"))};return e.jsx(e.Fragment,{children:e.jsx("div",{className:"row ",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"footer_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6",children:e.jsx("div",{className:"profile_service_input__title",children:"Manage Placements"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsx("div",{className:"custom__Scroll",children:e.jsxs("form",{autoComplete:"off",onSubmit:d(m),children:[e.jsxs("div",{style:yt,children:[e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{className:"did-floating-input",type:"number",inputMode:"decimal",onKeyDown:x=>{Zs(x),blockInvalidAllowDecimal(x)},step:.01,onWheel:x=>x.currentTarget.blur(),placeholder:"",defaultValue:(f=o==null?void 0:o.placements)==null?void 0:f.averagePlacementRate,label:"averagePlacementRate",...p("averagePlacementRate",{required:{value:!0,message:"Average Placement Rate is required"},pattern:{value:du,message:"Invalid average placement value."},max:{value:100,message:"Avg placement rate cannot be more than 100%."}})}),e.jsx("label",{className:"did-floating-label",children:"Percentage"}),(u==null?void 0:u.averagePlacementRate)&&e.jsx(Me,{errMsg:(v=u==null?void 0:u.averagePlacementRate)==null?void 0:v.message})]}),e.jsx("p",{className:"jpfi_modal-supported",style:{color:"#a7aaab"},children:"In % example: 50"}),e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsx("input",{type:"number",inputMode:"numeric",onKeyDown:x=>{Zs(x),Ot(x)},onWheel:x=>x.currentTarget.blur(),className:"did-floating-input",placeholder:"",label:"lastYearNoOfPlacements",defaultValue:(N=o==null?void 0:o.placements)==null?void 0:N.lastYearNoOfPlacements,...p("lastYearNoOfPlacements",{required:{value:!0,message:"Total Persons Placed is required"},pattern:{value:Bt,message:"Invalid No. of placements count."},maxLength:{value:10,message:"Max 10 digits allowed"}})}),e.jsx("label",{className:"did-floating-label",children:"Total Students Placed"}),(u==null?void 0:u.lastYearNoOfPlacements)&&e.jsx(Me,{errMsg:(_=u==null?void 0:u.lastYearNoOfPlacements)==null?void 0:_.message})]}),e.jsx("p",{className:"jpfi_modal-supported",style:{color:"#a7aaab"},children:"Last Year eg:1000"})]}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"Submit",children:"Save"})})]})})]})})})})})}const ik=({itsMe:s,loadProfileReview:t})=>{var c,o,p,h;const{user:a}=G(d=>d.auth),{userProfile:i}=G(d=>d.profile),[n,r]=b.useState(!1),l=()=>r(!n);return e.jsxs(e.Fragment,{children:[e.jsxs("section",{children:[e.jsx(st,{data:"Placements"}),e.jsx("div",{className:"flex-wrap gap-3 d-flex justify-content-evenly",children:a&&s&&e.jsx("div",{className:"display-flex-aljc-center icon-wrapper cp",onClick:l,children:e.jsx("i",{className:"fa-solid fa-edit profIcoSty"})})}),e.jsx("section",{className:"fdc profilePlacement__content",children:((c=i==null?void 0:i.placements)==null?void 0:c.lastYearNoOfPlacements)&&((o=i==null?void 0:i.placements)==null?void 0:o.averagePlacementRate)&&e.jsxs("div",{className:"profilePlacement__stat",children:[e.jsxs("div",{children:[e.jsx("h1",{children:Xs((p=i==null?void 0:i.placements)==null?void 0:p.lastYearNoOfPlacements)}),e.jsxs("p",{children:["Academic Year ",new Date().getFullYear()-1]})]}),e.jsx("img",{src:nk,className:"profilePlacement__content--img",alt:"profile"}),e.jsxs("div",{children:[e.jsxs("h1",{children:[(h=i==null?void 0:i.placements)==null?void 0:h.averagePlacementRate,"%"]}),e.jsx("p",{children:"Average Placement Rate"})]})]})})]}),e.jsx(qe,{open:n,onClose:l,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(l0,{handlePlacementMod
185al:l,loadProfileReview:t})})})]})},Rc=ik;function c0({handleCourseModal:s,loadProfileReview:t}){var j;const a=ge(),{successToast:i,warningToast:n,errorToast:r,errorHandle:l}=he(),c=ts().userUniqueId,{userProfile:o}=G(I=>I.profile);G(I=>I.auth);const{control:p,handleSubmit:h,reset:d,getValues:u,formState:{errors:m}}=Qe({defaultValues:{courses:((j=o==null?void 0:o.certificateCourses)==null?void 0:j.length)>0?o==null?void 0:o.certificateCourses:[{courses:""}]}}),{fields:f,append:v,remove:N}=Bs({control:p,name:"certificateCourses"}),_=async I=>{var k,S,g,E;const w=(k=I.certificateCourses)==null?void 0:k.filter(C=>C.courses.trim()!==""),y=await Yv(c,w);y&&(y==null?void 0:y.statusCode)===Ke&&((S=y==null?void 0:y.data)!=null&&S.profile)&&(a(ds((E=(g=y==null?void 0:y.data)==null?void 0:g.profile)==null?void 0:E.certificateCourses,"certificateCourses")),i("Website updated successfully"),s(),t())},x=I=>{var y,k;const w=u();if(!((k=(y=w==null?void 0:w.certificateCourses[I])==null?void 0:y.courses)!=null&&k.trim()))return"Invalid Course."};return We(()=>{o!=null&&o.certificateCourses&&d({certificateCourses:(o==null?void 0:o.certificateCourses.length)>0?o==null?void 0:o.certificateCourses:[{courses:""}]})},[d,o==null?void 0:o.certificateCourses]),e.jsx(e.Fragment,{children:e.jsx("div",{className:"row ",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"profile_service_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6",children:e.jsx("div",{className:"profile_service_input__title",children:"Courses offered"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsxs("div",{className:"custom__Scroll",style:{padding:"0px 5px",margin:"5px 0px"},children:[e.jsx("div",{style:{marginLeft:"11px"},className:"profileinput_subheading",children:"Certificate Courses"}),e.jsxs("form",{autoComplete:"off",onSubmit:h(_),children:[f==null?void 0:f.map((I,w)=>e.jsx("div",{style:hu,className:"mt-4",children:e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{children:[e.jsx("span",{children:w+1}),". Course"]}),e.jsx("img",{src:Dt,onClick:()=>N(w),className:"removecircle"})]}),e.jsx(xe,{name:`certificateCourses.${w}.courses`,control:p,defaultValue:I==null?void 0:I.courses,rules:{required:{value:!0,message:"Course required"},maxLength:{value:50,message:"Max 50 characters allowed"},validate:()=>x(w)},render:({field:y,fieldState:k})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:y,dataState:k,label:"course Name"})})})]})},I.id)),e.jsx(_d,{errors:m,name:"courses",as:"p",className:"post_jpfi_field--error"}),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:[e.jsxs("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__skill_icon",onClick:()=>v({courses:""}),children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add more"]}),e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})]})]})]})]})})})})})}function d0({handleSpecialModal:s,loadProfileReview:t}){var I;const a=ge(),{userProfile:i}=G(w=>w.profile),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),o=ts().userUniqueId;G(w=>w.auth);const{register:p,control:h,handleSubmit:d,reset:u,formState:{errors:m},getValues:f}=Qe({defaultValues:{special:((I=i==null?void 0:i.specialistPrograms)==null?void 0:I.length)>0?i==null?void 0:i.specialistPrograms:[{Specialprogram:""}]}}),{fields:v,append:N,remove:_}=Bs({control:h,name:"specialistPrograms"}),x=async w=>{var k,S,g;const y=await o3(o,w.specialistPrograms);y&&(y==null?void 0:y.statusCode)===Ke&&((k=y==null?void 0:y.data)!=null&&k.profile)&&(n("Specialized Courses added"),s(),a(ds((g=(S=y==null?void 0:y.data)==null?void 0:S.profile)==null?void 0:g.specialistPrograms,"specialistPrograms")),t())},j=w=>{var k,S;const y=f();if(!((S=(k=y==null?void 0:y.specialistPrograms[w])==null?void 0:k.Specialprogram)!=null&&S.trim()))return"Invalid Special Course."};return We(()=>{i!=null&&i.specialistPrograms&&u({specialistPrograms:(i==null?void 0:i.specialistPrograms.length)>0?i==null?void 0:i.specialistPrograms:[{courses:""}]})},[u,i==null?void 0:i.specialistPrograms]),e.jsx(e.Fragment,{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"profile_service_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6",children:e.jsx("div",{className:"profile_service_input__title",children:"Courses Offered"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsxs("div",{className:"custom__Scroll",style:{padding:"0px 5px",margin:"5px 0px"},children:[e.jsx("div",{style:{marginLeft:"11px"},className:"profileinput_subheading",children:"Specailized Programs"}),e.jsxs("form",{autoComplete:"off",onSubmit:d(x),children:[v==null?void 0:v.map((w,y)=>e.jsx("div",{style:hu,className:"mt-4",children:e.jsxs("div",{className:"did-floating-label-content w-100 mt-2",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center w-100",children:[e.jsxs("p",{children:[e.jsx("span",{children:y+1}),". Course"]}),e.jsx("img",{src:Dt,onClick:()=>_(y),className:"removecircle"})]}),e.jsx(xe,{name:`specialistPrograms.${y}.Specialprogram`,control:h,defaultValue:w.Specialprogram,rules:{required:{value:!0,message:"Specialized Program is required"},maxLength:{value:50,message:"Max 50 characters allowed"},validate:()=>j(y)},render:({field:k,fieldState:S})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:k,dataState:S,label:"Course Name"})})})]})},w.id)),e.jsx(_d,{errors:m,name:"Specialprogram",as:"p",className:"post_jpfi_field--error"}),e.jsxs("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:[e.jsxs("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__skill_icon",onClick:()=>N({Specialprogram:""}),children:[e.jsx("i",{className:"fa-solid fa-plus skillIconPlus cp"}),"Add more"]}),e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})]})]})]})]})})})})})}const Lc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAbCAYAAABiFp9rAAAABHNCSVQICAgIfAhkiAAAAPBJREFUSEtjZCABXLt7V5Xh3/9F/xkY+JmZGOM0lJXPEKudkViFIHXXbt/tYGBkKIfo+b9QS0UlgVj9pFl05+50oMEZUMO3aqko+4xaRFQIXBsNOqRwGk115Oej67fvOzAw/bMnJtn9/88AyqAmULW3GBkZlhGjj4GJaSEjMMk+ACqWJ0oD2Yr+L2S8evvuBaDL9Mk2gziNExnv378v8OMPgwFx6v8W/mdk9IOUqf9PMDIwVxKjT1NV8cBo8iY/eRMTxjA1o4UqcmiNprphlupu3Llj/ZeBYTnjfwaO/wxM2dqqSquJzR4kJQZiDcWmDgCiepMeyVkMsAAAAABJRU5ErkJggg==",ok=gs(s=>e.jsx(Ha,{disableGutters:!0,elevation:0,square:!0,...s}))(({theme:s})=>({border:"1px solid transparent","&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"},backgroundColor:"var(--card-surface-primary)",borderRadius:"40px",color:"#d6dcdd",padding:"8px"})),rk=gs(s=>e.jsx(At,{expandIcon:e.jsx(K0,{sx:{fontSize:"0.9rem",color:"#a7aaab"}}),...s}))(({theme:s})=>({backgroundColor:"var(--card-surface-primary)",borderRadius:"30px",flexDirection:"row","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"},"& .MuiAccordionSummary-content":{marginLeft:s.spacing(5)},color:"var(--text-color-secondary)"})),lk=gs("div")({overflow:"hidden",paddingRight:"10px",scrollbarWidth:"none",height:"200px",overflowY:"scroll",overflowX:"hidden",
185wordBreak:"break-word",color:"var(--text-color-primary)"});function Fc({userProfile:s,heading:t,action:a}){const[i,n]=b.useState("panel1"),r=c=>(o,p)=>{n(p?c:!1)},l=(c,o)=>e.jsx(lk,{children:c.map((p,h)=>e.jsxs("div",{children:[e.jsx("li",{style:{listStyle:"none",marginLeft:"15px",padding:"0px 10px"},children:p[o]}),e.jsx("hr",{})]},`${o}-${h}`))});return e.jsx("div",{children:e.jsxs(ok,{onChange:r("panel1"),children:[e.jsx(rk,{"aria-controls":"panel1d-content",id:"panel1d-header",children:e.jsx(Fe,{children:t})}),e.jsx(_3,{children:e.jsx(Fe,{children:a==="certificateCourses"?l((s==null?void 0:s.certificateCourses)||[],"courses"):a==="specialistPrograms"?l((s==null?void 0:s.specialistPrograms)||[],"Specialprogram"):null})})]})})}const ck=({itsMe:s,loadProfileReview:t})=>{var p,h;ts().userUniqueId,ge(),he();const{userProfile:a}=G(d=>d.profile),[i,n]=b.useState(!1),r=()=>n(!i),[l,c]=b.useState(!1),o=()=>c(!l);return e.jsxs(e.Fragment,{children:[e.jsx(st,{data:"Courses Offered"}),e.jsxs("main",{className:"pofile-section-wrapper",children:[((p=a==null?void 0:a.certificateCourses)==null?void 0:p.length)>0&&e.jsx(e.Fragment,{children:e.jsxs("section",{className:"profileCourse__certificated mt-4",id:"certificateCourses",children:[e.jsx("div",{className:"profile_Course-Accordion",children:e.jsx(Fc,{userProfile:a,heading:"Certificate Courses",action:"certificateCourses"})}),s&&e.jsx("div",{className:"d-flex justify-content-end",children:e.jsx("div",{className:"display-flex-aljc-center add-icon",onClick:r,children:e.jsx("img",{src:Lc,alt:"",style:{width:"20px",height:"20px",margin:"5px"}})})})]})}),((h=a==null?void 0:a.specialistPrograms)==null?void 0:h.length)>0&&e.jsx(e.Fragment,{children:e.jsxs("section",{className:"profileCourse__certificated mt-4",id:"specialistPrograms",children:[e.jsx("div",{className:"profile_Course-Accordion",children:e.jsx(Fc,{userProfile:a,heading:"Specialized Programs",action:"specialistPrograms"})}),s&&e.jsx("div",{className:"d-flex justify-content-end",children:e.jsx("div",{className:"display-flex-aljc-center add-icon",onClick:o,children:e.jsx("img",{src:Lc,alt:"",style:{width:"20px",height:"20px",margin:"5px"}})})})]})})]}),e.jsx(qe,{open:i,onClose:r,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(c0,{handleCourseModal:r,userProfile:a})})}),e.jsx(qe,{open:l,onClose:o,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(d0,{handleSpecialModal:o,userProfile:a})})})]})},Bc=ck;function dk({itsMe:s,loadProfileReview:t}){var i,n,r,l,c,o,p,h,d,u;const{userProfile:a}=G(m=>m.profile);return e.jsxs(e.Fragment,{children:[!s&&((i=a==null?void 0:a.certificateCourses)==null?void 0:i.length)+((n=a==null?void 0:a.specialistPrograms)==null?void 0:n.length)>0?e.jsx("section",{id:"courses",style:{position:"relative"},children:e.jsx(Bc,{userProfile:a,itsMe:s,loadProfileReview:t})}):s&&((r=a==null?void 0:a.certificateCourses)==null?void 0:r.length)+((l=a==null?void 0:a.specialistPrograms)==null?void 0:l.length)>0?e.jsx("section",{id:"courses",style:{position:"relative"},children:e.jsx(Bc,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,!s&&((c=a==null?void 0:a.placements)!=null&&c.lastYearNoOfPlacements)?e.jsx("section",{id:"placements",style:{position:"relative"},children:e.jsx(Rc,{userProfile:a,itsMe:s,loadProfileReview:t})}):s&&((o=a==null?void 0:a.placements)!=null&&o.lastYearNoOfPlacements)?e.jsx("section",{id:"placements",style:{position:"relative"},children:e.jsx(Rc,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,!s&&((p=a==null?void 0:a.client)==null?void 0:p.length)>0?e.jsx("section",{id:"client",style:{position:"relative"},children:e.jsx(In,{userProfile:a,itsMe:s,sectionTitle:"Trusted Companies",loadProfileReview:t})}):s&&((h=a==null?void 0:a.client)==null?void 0:h.length)>0?e.jsx("section",{id:"client",style:{position:"relative"},children:e.jsx(In,{userProfile:a,itsMe:s,sectionTitle:"Trusted Companies",loadProfileReview:t})}):null,!s&&((d=a==null?void 0:a.milestone)==null?void 0:d.length)>0?e.jsx("section",{id:"mileStone",style:{position:"relative"},children:e.jsx(ga,{userProfile:a,itsMe:s,loadProfileReview:t})}):s&&((u=a==null?void 0:a.milestone)==null?void 0:u.length)>
1850?e.jsx("section",{id:"mileStone",style:{position:"relative"},children:e.jsx(ga,{userProfile:a,itsMe:s,loadProfileReview:t})}):null,e.jsx("section",{id:"testimonials",style:{position:"relative"},children:e.jsx(Ho,{userProfile:a,itsMe:s,loadProfileReview:t})})]})}const mk=({userProfile:s})=>{var r,l,c,o,p,h,d,u,m,f,v,N,_,x,j,I,w,y,k,S,g,E,C,T,A,R,P,O,M,L,F,U;let t=s!==null&&Object.values(s)[lo.size(s)-2],a=((r=t==null?void 0:t.education)==null?void 0:r.length)>0?(l=t==null?void 0:t.education)==null?void 0:l.sort((Z,ne)=>Z.endYear-ne.endYear):[],i=Object.values(s==null?void 0:s.socialLink),n={"@context":"https://schema.org","@type":"Person",name:((c=s==null?void 0:s.user)==null?void 0:c.firstName)+" "+((o=s==null?void 0:s.user)==null?void 0:o.lastName),url:((p=s==null?void 0:s.socialLink)==null?void 0:p.websiteLink)||z_,image:(h=s==null?void 0:s.user)==null?void 0:h.avatar,sameAs:i,address:{"@type":"PostalAddress",addressLocality:(u=(d=s==null?void 0:s.businesscard)==null?void 0:d.address)==null?void 0:u.line2,addressRegion:(f=(m=s==null?void 0:s.businesscard)==null?void 0:m.address)==null?void 0:f.city,postalCode:(_=(N=(v=s==null?void 0:s.businesscard)==null?void 0:v.address)==null?void 0:N.pincode)==null?void 0:_.toString(),streetAddress:(j=(x=s==null?void 0:s.businesscard)==null?void 0:x.address)==null?void 0:j.line1},email:`mailto:${(I=s==null?void 0:s.user)==null?void 0:I.email}`,description:(w=s==null?void 0:s.businesscard)==null?void 0:w.summary,disambiguatingDescription:(y=s==null?void 0:s.businesscard)==null?void 0:y.tagLine,birthDate:(k=s==null?void 0:s.businesscard)==null?void 0:k.dateOfBirth,nationality:(g=(S=s==null?void 0:s.businesscard)==null?void 0:S.address)==null?void 0:g.country,telephone:(E=s==null?void 0:s.user)==null?void 0:E.mobile};return(a==null?void 0:a.length)>0&&(n.alumniOf=(C=a[0])==null?void 0:C.collegeName),((T=s==null?void 0:s.user)==null?void 0:T.subType)==="Professional"&&(n.jobTitle=(A=s==null?void 0:s.businesscard)==null?void 0:A.designation,n.worksFor={"@type":"Organization",name:((P=(R=s==null?void 0:s.businesscard)==null?void 0:R.currentCompanyName)==null?void 0:P._id)===((O=s==null?void 0:s.user)==null?void 0:O._id)&&((M=s==null?void 0:s.businesscard)!=null&&M.dummyCompany)?(L=s==null?void 0:s.businesscard)==null?void 0:L.dummyCompany:(U=(F=s==null?void 0:s.businesscard)==null?void 0:F.currentCompanyName)==null?void 0:U.firstName}),e.jsx(e.Fragment,{children:e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})})},hk="/assets/TB_Logo-DiGDjXDP.png",uk="/assets/TB%20water%20mark%20back%20side-C8qNUUdN.png",pk=({userProfile:s})=>{var i,n,r,l,c,o,p,h;let t=(i=s==null?void 0:s.businesscard)==null?void 0:i.address,a=xn(t);return e.jsx(e.Fragment,{children:e.jsxs("main",{className:"fdc businessCardBack-main",children:[((n=s==null?void 0:s.user)==null?void 0:n.accountType)==="Individuals"?e.jsxs("div",{className:"text-center",children:[e.jsx("img",{src:hk,alt:"tickBig",className:"tickBig__logo",width:50}),e.jsxs("p",{className:"tick__Big",children:["Tick ",e.jsx("span",{children:"Big"})," "]}),e.jsx("div",{className:"tick__Underline"})]}):e.jsx("div",{className:"display-flex-aljc-center businessCard__section1--image",children:e.jsx(ss,{src:(r=s==null?void 0:s.user)==null?void 0:r.avatar,variant:"rounded",alt:(l=s==null?void 0:s.user)==null?void 0:l.firstName,sx:{height:"60px",width:"60px"}})}),e.jsxs("div",{className:"display-flex-aic-jcsb business--Card",children:[e.jsx("section",{className:"display-flex-aic-jcsb businessCardBack__one",children:e.jsx("div",{children:e.jsx("img",{className:"my-2 businessBackImg",src:s==null?void 0:s.qr})})}),e.jsx("section",{className:"businessCardBack__two",children:e.jsxs("div",{children:[e.jsxs("p",{className:"businessCardBack--call",children:[e.jsx("span",{children:e.jsx(Q0,{className:"businessCardBack__icons"})}),(c=s==null?void 0:s.user)==null?void 0:c.mobile]}),e.jsxs("p",{className:" businessCardBack--email",children:[e.jsx("span",{children:e.jsx(so,{className:"businessCardBack__icons"})}),(o=s==null?void 0:s.user)==null?void 0:o.email]}),a&&e.jsxs("p",{className:"businessCardBack--location",children:[e.jsx("span",{children:e.jsx(Va,{className:"businessCardBack__icons"})}),a]})]})})]}),e.jsx(e.Fragment,{children:e.jsx(e.Fragment,{children:((p=s==null?void 0:s.user)==null?void 0:p.accountType)==="Institutes"||((h=s==null?void 0:s.user)==null?void 0:h.accountType)==="Brands"?e.jsx("div",{style:{textAlign:"center"},children:e.jsx("img",{src:uk,alt:"business__logo",style:{width:"40%"}})}):null})})]})})},gk=pk,xk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='27.504'%20height='27.502'%20viewBox='0%200%2027.504%2027.502'%3e%3cpath%20id='Icon_ionic-ios-send'%20data-name='Icon%20ionic-ios-send'%20d='M31.14,4.564,4.844,16.026a.6.6,0,0,0,.021,1.1l7.113,4.019a1.147,1.147,0,0,0,1.311-.129L27.315,8.92c.093-.079.315-.229.4-.143s-.05.308-.129.4L15.452,22.845a1.143,1.143,0,0,0-.115,1.368l4.649,7.457a.6.6,0,0,0,1.089-.014L31.949,5.36A.6.6,0,0,0,31.14,4.564Z'%20transform='translate(-4.503%20-4.503)'%20fill='%23d6dcdd'/%3e%3c/svg%3e",fk="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='27'%20height='22.704'%20viewBox='0%200%2027%2022.704'%3e%3cg%20id='Group_591'%20data-name='Group%20591'%20transform='translate(0)'%3e%3cpath%20id='Path_377'%20data-name='Path%20377'%20d='M879.988-363.047a11.862,11.862,0,0,1-3.387,1.021c-.718.11-1.445.166-2.213.251,0-.18,0-.317,0-.454a7.914,7.914,0,0,0-.275-2.607,5.989,5.989,0,0,0-3.748-3.9l-.274-.1a4.969,4.969,0,0,0,1.5-3.388c1.144,0,2.259-.013,3.373.007a5.453,5.453,0,0,1,1.2.155,5.04,5.04,0,0,1,3.776,4.177,1.529,1.529,0,0,0,.055.2Z'%20transform='translate(-852.988%20380.408)'%20fill='%23d6dcdd'/%3e%3cpath%20id='Path_378'%20data-name='Path%20378'%20d='M749.749-311.7c0,.72-.006,1.44,0,2.16a.315.315,0,0,1-.211.34,11.812,11.812,0,0,1-3.222.937,21.234,21.234,0,0,1-9.567-.815c-.5-.151-.5-.149-.5-.678,0-1.265-.018-2.529.01-3.793a4.994,4.994,0,0,1,4.749-4.889c1.384-.062,2.775-.052,4.159.009a5.046,5.046,0,0,1,4.379,3.639,9.685,9.685,0,0,1,.2,2.511C749.75-312.087,749.749-311.894,749.749-311.7Z'%20transform='translate(-729.296%20330.738)'%20fill='%23d6dcdd'/%3e%3cpath%20id='Path_379'%20data-name='Path%20379'%20d='M653.357-372.114a4.963,4.963,0,0,0,1.483,3.35c-3.23,1.238-4.518,3.652-4.257,7.029-.5-.045-.963-.073-1.419-.131a27.785,27.785,0,0,1-4.313-.938.341.341,0,0,1-.3-.394c.015-1.282,0-2.564.009-3.846a5.066,5.066,0,0,1,4.144-5,3.563,3.563,0,0,1,.626-.075c1.264-.008,2.529-.007,3.793-.00
1857C653.194-372.129,653.263-372.12,653.357-372.114Z'%20transform='translate(-644.553%20380.318)'%20fill='%23d6dcdd'/%3e%3cpath%20id='Path_380'%20data-name='Path%20380'%20d='M773.133-422.364a3.956,3.956,0,0,1,3.954-3.951,3.975,3.975,0,0,1,3.959,3.955,3.96,3.96,0,0,1-3.976,3.957A3.941,3.941,0,0,1,773.133-422.364Z'%20transform='translate(-763.383%20430.396)'%20fill='%23d6dcdd'/%3e%3cpath%20id='Path_381'%20data-name='Path%20381'%20d='M685.484-480.1a3.954,3.954,0,0,1,3.949,3.928.477.477,0,0,1-.187.4,4.832,4.832,0,0,0-1.627,2.756.514.514,0,0,1-.232.308,3.776,3.776,0,0,1-4.065-.136,3.79,3.79,0,0,1-1.787-3.638A3.936,3.936,0,0,1,685.484-480.1Z'%20transform='translate(-678.719%20480.105)'%20fill='%23d6dcdd'/%3e%3cpath%20id='Path_382'%20data-name='Path%20382'%20d='M863.511-480.131a3.953,3.953,0,0,1,3.936,3.724,3.95,3.95,0,0,1-3.584,4.165,3.954,3.954,0,0,1-1.83-.266.329.329,0,0,1-.243-.293,4.8,4.8,0,0,0-2.1-3.327.332.332,0,0,1-.139-.357A3.959,3.959,0,0,1,863.511-480.131Z'%20transform='translate(-843.246%20480.131)'%20fill='%23d6dcdd'/%3e%3c/g%3e%3c/svg%3e";function jk({handleClose:s}){var v;const t=ge(),{userProfile:a}=G(N=>N.profile),{successToast:i,warningToast:n,errorToast:r,errorHandle:l}=he(),{register:c,control:o,handleSubmit:p,getValues:h,setValue:d,formState:{errors:u}}=Qe({}),m=async N=>{var x,j;const _=await Ov(N.quoteContent);_&&(_==null?void 0:_.statusCode)===Ke&&(t(ds((j=(x=_==null?void 0:_.data)==null?void 0:x.profile)==null?void 0:j.quote,"quote")),s(),i("Website updated successfully"))},f=()=>{const{quoteContent:N}=h();if(!N.trim())return"Invalid quote."};return We(()=>{a!=null&&a.quote&&d("quoteContent",a==null?void 0:a.quote)},[a]),e.jsx(e.Fragment,{children:e.jsx("div",{className:"row",children:e.jsx("div",{className:"col-lg-12",children:e.jsx("main",{className:"profile_service_input__main",children:e.jsxs("section",{className:"profile_service_input__Section",children:[e.jsxs("div",{className:"profile_service_input__parent1",children:[e.jsx("div",{className:"profile_service_input__iconc col-lg-6",children:e.jsx("div",{className:"profile_service_input__title",children:"Edit Quote"})}),e.jsx("div",{className:"col-lg-6",children:e.jsx("div",{className:"profile_service_input__icon",children:e.jsx(ps,{className:"profile_service_input__close",onClick:s})})})]}),e.jsxs("form",{autoComplete:"off",onSubmit:p(m),children:[e.jsx(Is,{error:!!(u!=null&&u.quoteContent),id:"custom-css-outlined-input",size:"small",className:"textField",label:"What would you like to write?",multiline:!0,rows:4,InputProps:{className:"textfield"},InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"1rem",outline:"none",border:"none"}},...c("quoteContent",{required:{value:!0,message:"Quote is required"},validate:f,minLength:{value:30,message:"Quote is too short."},maxLength:{value:120,message:"Quote is too long."}})}),(u==null?void 0:u.quoteContent)&&e.jsx(Me,{errMsg:(v=u==null?void 0:u.quoteContent)==null?void 0:v.message}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})]})})})})})}const yk=()=>{var y,k,S,g,E;const s="ProfilePic",{userProfile:t}=G(C=>C.profile),{successToast:a,warningToast:i,errorToast:n,errorHandle:r}=he(),l=ge(),c=ts().userUniqueId,[o,p]=b.useState(""),[h,d]=b.useState(!1),[u,m]=b.useState(""),f=b.useRef(null),{register:v,handleSubmit:N,formState:{errors:_}}=Qe(),x=C=>{var A;C.preventDefault();let T=(A=C.target)==null?void 0:A.files[0];if(T)if(!Hb.includes(T.type))i(Po);else if(!$n(T.size,2))i("File size exceeds the limit of 2 MB");else{const P=new FileReader;P.onload=()=>{p(P.result),d(!0)},P.readAsDataURL(T)}else i("No file selected. Please upload a photo")},j=(C,T)=>{const[A,R]=C.split(","),P=atob(R),O=new Uint8Array(P.length);for(let L=0;L<P.length;L++)O[L]=P.charCodeAt(L);const M=A.split(":")[1].split(";")[0];return new File([O],T,{type:M})},I=()=>{if(f.current){const A=f.current.cropper.getCroppedCanvas().toDataURL(),R=j(A,"profile_image.png");return m(A),d(!1),R}},w=async()=>{var T;let C=I();
185try{const A=((T=t==null?void 0:t.user)==null?void 0:T.avatar)||null,R=await ya(s,C,C==null?void 0:C.type);if(R){const O=await d3(c,{urlIs:R,oldFile:A,awsFolderName:s});O&&O.data&&(Fg(O.data.avatar),l(Vn(O.data,"avatar")),l(Rn(O.data.avatar,"avatar")),a("Photo uploaded"),d(!1),m(""))}}catch(A){r(A)}};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"my-3",children:e.jsx("form",{autoComplete:"off",onSubmit:N(w),encType:"multipart/form-data",children:e.jsx(Ie,{sx:{display:"flex",alignItems:"center",gap:"0.5rem"},children:u&&h?e.jsx(e.Fragment,{children:e.jsx(ss,{alt:(y=t==null?void 0:t.user)==null?void 0:y.firstName,src:u,sx:{width:70,height:70,border:"1px solid #a7aaab"}})}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{sx:{display:"flex",alignItems:"center",gap:"0.5rem",flexDirection:"column"},children:e.jsx(ss,{alt:(k=t==null?void 0:t.user)==null?void 0:k.firstName,src:(S=t==null?void 0:t.user)==null?void 0:S.avatar,sx:{width:70,height:70,border:"1px solid #a7aaab"}})}),e.jsxs(Tt,{direction:"column",spacing:1,children:[e.jsxs(Ws,{style:Ua,component:"label",children:[(g=t==null?void 0:t.user)!=null&&g.avatar?"Change profile":"Upload profile",e.jsx("input",{type:"file",hidden:!0,...v("profilePhoto"),onChange:x,accept:"image/*"})]}),e.jsx("label",{className:"label_max_min",children:"Allowed formats: *.jpeg, *.jpg, *.png. Max size: 2MB"})]})]})})})}),e.jsx(qe,{open:!!h&&!!o,onClose:()=>d(!1),children:e.jsxs(Ie,{sx:P2,children:[e.jsx("header",{className:"businessCard-header",children:e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line mx-3",style:{marginBottom:"1rem"},children:[e.jsx("div",{className:"profileinput_main_title",children:"Crop Image"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:()=>d(!1)})]})}),e.jsx("form",{autoComplete:"off",onSubmit:N(w),encType:"multipart/form-data",children:e.jsxs(Tt,{spacing:2,direction:"column",children:[h&&o&&e.jsx(Ie,{children:e.jsx(Pg,{ref:f,style:{height:200,width:"100%"},zoomTo:.1,initialAspectRatio:16/9,preview:".img-preview",src:o,viewMode:1,dragMode:"move",minCropBoxHeight:100,minCropBoxWidth:100,background:!1,responsive:!0,autoCropArea:1,cropBoxResizable:!0,checkOrientation:!1,guides:!0})}),h?e.jsxs(Tt,{direction:"row",spacing:1,sx:{justifyContent:"center"},children:[e.jsx("button",{className:"upload-save",type:"submit",children:"Crop & Save"}),e.jsx(Ws,{style:Ua,onClick:()=>d(!1),children:"Cancel"})]}):e.jsx(e.Fragment,{children:e.jsxs(Tt,{direction:"column",spacing:1,children:[e.jsxs(Ws,{style:Ua,component:"label",children:[(E=t==null?void 0:t.user)!=null&&E.avatar?"Change profile":"Upload profile",e.jsx("input",{type:"file",hidden:!0,...v("profilePhoto"),onChange:x,accept:"image/*"})]}),e.jsx("label",{className:"label_max_min",children:"Allowed formats: *.jpeg, *.jpg, *.png. Max size: 3.1 MB"})]})})]})})]})})]})},bk=({handleInformationModalClose:s,subType:t})=>{var H,X,ee,se,ae,B,W,Q,ie,Y,pe,me,Ce,Ye,Xe,ue,Ae,Se,ve,J,D,$,re,oe,Re,Ze,Oe,Ne,ze,Te,es,ns,be,ke,Le,$e,as,xs,ms,ls,tt,Ge,Ms,Vs,$t,Aa,Ea,Ma,Pa,Ra,Rt,Pe,Qs,Yo,Zo,Ko,Qo,Xo,er,sr,tr,ar,nr,ir,or,rr,lr,cr,dr,mr,hr,ur,pr,gr,xr,fr,jr,yr,br,vr,_r,Nr,wr,Sr,kr,Cr,Tr,Ir,Ar,Er,Mr,Pr,Rr,Lr,Fr,Br,Or,Ur,Dr,qr,Vr,zr,Wr,$r;const{user:a,userDetails:i}=G(V=>V.auth),{userProfile:n}=G(V=>V.profile),{successToast:r,warningToast:l,errorToast:c,errorHandle:o}=he(),p=ts().userUniqueId,h=ge(),{register:d,handleSubmit:u,formState:{errors:m,dirtyFields:f,touchedFields:v},getValues:N,setValue:_,control:x,setError:j,clearErrors:I}=Qe({shouldFocusError:!0}),[w,y]=b.useState(!1),[k,S]=b.useState(!1),g=()=>y(!0),E=()=>y(!1),[C,T]=b.useState(((X=(H=n==null?void 0:n.businesscard)==null?void 0:H.currentCompanyName)==null?void 0:X._id)!==a?(ee=n==null?void 0:n.businesscard)==null?void 0:ee.currentCompanyName:{firstName:(se=n==null?void 0:n.businesscard)==null?void 0:se.dummyCompany,subType:"New"}),[A,R]=b.useState((ae=n==null?void 0:n.businesscard)!=null&&ae.brandSector?{value:(B=n==null?void 0:n.businesscard)==null?void 0:B.brandSector}:{value:""}),P=()=>{const{highestEducation:V}=N();if(V&&!V.trim())return"Invalid Highest Education entered."},O=()=>{const{studentsCollegeName:V}=N();if(V&&!V.trim())return"Invalid College Name."},M=()=>{const{tagLine:V}=N();if(V&&!V.trim())return"Invalid Tagline"},L=()=>{const{designation:V}=N();if(V&&!V.trim())return"Invalid Designation."},F=()=>{const{line1:V}=N();if(V&&!V.trim())return"Invalid Address Line 1."},U=()=>{const{line2:V}=N();if(V&&!V.trim())return"Invalid Address Line 2."},Z=()=>{const{city:V}=N();if(V&&!V.trim())return"Invalid City."},ne=()=>{const{state:V}=N();if(V&&!V.trim())return"Invalid State."},K=()=>{const{country:V}=N();if(V&&!V.trim())return"Invalid Country."};function te(V){const le=new Date(V);return!(isNaN(le.getTime())||le.getFullYear()<1900||le>new Date)}const q=async(V,le)=>{var Hr,Gr,Jr,Yr,Zr;le.preventDefault(),le.stopPropagation();const dt={tagLine:V==null?void 0:V.tagLine,address:{line1:V==null?void 0:V.line1,line2:V==null?void 0:V.line2,city:V==null?void 0:V.city,state:V==null?void 0:V.state,country:V==null?void 0:V.country,pincode:V==null?void 0:V.pincode},highestEducation:V==null?void 0:V.highestEducation,studentsCollegeName:V==null?void 0:V.studentsCollegeName,employeeStrength:V==null?void 0:V.employeeStrength,noOfClients:V==null?void 0:V.noOfClients,noOfStudents:V==null?void 0:V.noOfStudents,noOfCourses:V==null?void 0:V.noOfCourses,noOfProjects:V==null?void 0:V.noOfProjects,companiesCount:V==null?void 0:V.companiesCount,designation:V==null?void 0:V.designation,experience:V==null?void 0:V.experience,profileLink:V==null?void 0:V.profileLink,location:V==null?void 0:V.location,year:V==null?void 0:V.year};A.value!==""&&(dt.brandSector=A.value),(Hr=n==null?void 0:n.businesscard)!=null&&Hr.dateOfBirth&&te((Gr=n==null?void 0:n.businesscard)==null?void 0:Gr.dateOfBirth)&&(dt.dateOfBirth=(Jr=n==null?void 0:n.businesscard)==null?void 0:Jr.dateOfBirth),te(V==null?void 0:V.dateOfBirth)&&(dt.dateOfBirth=V==null?void 0:V.dateOfBirth),(C==null?void 0:C.subType)!="New"?(dt.currentCompanyName=C==null?void 0:C._id,dt.dummyCompany=""):(dt.dummyCompany=C.firstName,dt.currentCompanyName=a);const mt=await qv(p,dt);if(mt&&(mt!=null&&mt.data)&&((Yr=mt==null?void 0:mt.data)!=null&&Yr.profile)){let Kr=(Zr=mt==null?void 0:mt.data)==null?void 0:Zr.profile.businesscard;Kr.currentCompanyName={_id:C==null?void 0:C._id,firstName:C==null?void 0:C.firstName,subType:C==null?void 0:C.subType,avatar:C==null?void 0:C.avatar},h(ds(Kr,"businesscard")),s(),r("Fortune card updated")}};return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"businessCardInput",children:[e.jsx("header",{className:"businessCard-header",children:e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Design Fortune Card"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]})}),e.jsxs("div",{className:"custom__Scroll",children:[e.jsx("div",{className:"profileinput_subheading",children:"Profile Photo"}),e.jsx(yk,{}),e.jsx("hr",{}),e.jsx("div",{className:"profileinput_subheading",children:"Personal Information"}),["Registered Company","Homegrown Company"].includes(t)&&e.jsx(e.Fragment,{children:e.jsxs("form",{autoComplete:"off",onSubmit:u(q),children:[e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"firstName",control:x,disabled:!0,defaultValue:(W=n==null?void 0:n.user)==null?void 0:W.firstName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"First Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"lastName",control:x,disabled:!0,defaultValue:(Q=n==null?void 0:n.user)==null?void 0:Q.lastName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Brand Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"tagLine",control:x,defaultValue:(ie=n==null?void 0:n.businesscard)==null?void 0:ie.tagLine,rules:{required:{value:!0,message:"Tag Line is required"},maxLength:{value:60,message:"TagLine is too long"},validate:M},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Tag Line"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"employeeStrength",control:x,defaultValue:((Y=n==null?void 0:n.businesscard)==null?void 0:Y.employeeStrength)||0,rules:{pattern:{value:/^[0-9]*$/,message:"Invalid format. Only numbers allowed."},maxLength:{value:18,message:"Max 18 digits allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Company Strength"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"noOfClients",control:x,defaultValue:((pe=n==null?void 0:n.businesscard)==null?void 0:pe.noOfClients)||0,rules:{pattern:{value:/^[0-9]*$/,message:"Only Numbers are allowed."},maxLength:{value:18,message:"Max 18 digits allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"No. of Clients"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"noOfProjects",control:x,defaultValue:((me=n==null?void 0:n.businesscard)==null?void 0:me.noOfProjects)||0,rules:{pattern:{value:/^[0-9]*$/,message:"Invalid format. Only numbers allowed."},maxLength:{value:18,message:"Max 18 digits allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"No. of Projects"})})})}),e.jsxs("div",{className:"fdc jpfi_post__input_div_cover",children:[e.jsx("label",{children:"Sector"}),e.jsx("div",{className:"my-2",children:e.jsx(Oo,{dropdownOptions:Vb,dropdownValue:A,setDropdownValue:R,control:x,setValue:_,styles:Za,defaultValue:(Ce=n==null?void 0:n.businesscard)==null?void 0:Ce.brandSector,clearErrors:I,name:"brandSector"})}),!((Ye=n==null?void 0:n.businesscard)!=null&&Ye.brandSector)&&(m==null?void 0:m.brandSector)&&e.jsx(Me,{errMsg:"Sector is required"})]}),e.jsx("div",{className:"my-1",style:{alignItems:"flex-start"},children:e.jsx("p",{style:{margin:"30px 0px 10px 0px"},children:"Contact Information"})}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line1",control:x,defaultValue:(ue=(Xe=n==null?void 0:n.businesscard)==null?void 0:Xe.address)==null?void 0:ue.line1,rules:{validate:F,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 1"})})})})}),e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line2",control:x,defaultValue:(Se=(Ae=n==null?void 0:n.businesscard)==null?void 0:Ae.address)==null?void 0:Se.line2,rules:{validate:U,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 2"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"city",control:x,defaultValue:(J=(ve=n==null?void 0:n.businesscard)==null?void 0:ve.address)==null?void 0:J.city,rules:{required:{value:!0,message:"City is required"},pattern:{value:js,message:"Invalid City."},validate:Z,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"City"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"state",control:x,defaultValue:($=(D=n==null?void 0:n.businesscard)==null?void 0:D.address)==null?void 0:$.state,rules:{required:{value:!0,message:"State is required"},pattern:{value:js,message:"State should contain only alphabets."},validate:ne,maxLength:{value:25,message:"Max 25 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"State"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"country",control:x,defaultValue:(oe=(re=n==null?void 0:n.businesscard)==null?void 0:re.address)==null?void 0:oe.country,rules:{required:{value:!0,message:"Country is required"},pattern:{value:js,message:"Country should contain only alphabets."},validate:K,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Country"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"pincode",control:x,defaultValue:(Ze=(Re=n==null?void 0:n.businesscard)==null?void 0:Re.address)==null?void 0:Ze.pincode,rules:{required:{value:!0,message:"Pincode is required"},pattern:{value:/^[0-9]{6}$/,message:"Invalid Pincode."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Pincode"})})})})})]}),e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"mobile",control:x,disabled:!0,defaultValue:(Oe=n==null?void 0:n.user)==null?void 0:Oe.mobile,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Mobile"})})})}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})}),["College","Training Institute"].includes(t)&&e.jsx(e.Fragment,{children:e.jsxs("form",{autoComplete:"off",onSubmit:u(q),children:[e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"firstName",control:x,disabled:!0,defaultValue:(Ne=n==null?void 0:n.user)==null?void 0:Ne.firstName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Institute Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"tagLine",control:x,defaultValue:(ze=n==null?void 0:n.businesscard)==null?void 0:ze.tagLine,rules:{required:{value:!0,message:"TagLine is required"},maxLength:{value:60,message:"TagLine is too long"},validate:M},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Tag Line"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"year",control:x,defaultValue:(Te=n==null?void 0:n.businesscard)==null?void 0:Te.year,rules:{required:{value:!0,message:"Year is required"},pattern:{value:mu,message:"Invalid Year."},validate:{notZero:V=>V!=="0"||"Please select a valid date",notFutureDate:V=>new Date(V)<=new Date||"Dates in the future are not permitted"}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Founded in (Year)"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"noOfStudents",control:x,defaultValue:(es=n==null?void 0:n.businesscard)==null?void 0:es.noOfStudents,rules:{required:{value:!0,message:"Total Number of students is required"},pattern:{value:/^[0-9]*$/,message:"Invalid format. Only numbers are allowed."},maxLength:{value:18,message:"Max 18 digits allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"No. of Students"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"noOfCourses",control:x,defaultValue:(ns=n==null?void 0:n.businesscard)==null?void 0:ns.noOfCourses,rules:{required:{value:!0,message:"Total Number of Courses offered is required"},pattern:{value:/^[0-9]*$/,message:"Invalid format. Only numbers are allowed."},maxLength:{value:18,message:"Max 18 digits allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"No. of Courses"})})})
185}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"companiesCount",control:x,defaultValue:(be=n==null?void 0:n.businesscard)==null?void 0:be.companiesCount,rules:{required:{value:!0,message:"Total Number of companies trusting is required"},pattern:{value:/^[0-9]*$/,message:"Only Numbers are allowed."},maxLength:{value:18,message:"Max 18 digits allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"No. of Companies trusting Us"})})})}),e.jsx("div",{className:"my-1",style:{alignItems:"flex-start"},children:e.jsx("p",{style:{margin:"30px 0px 10px 0px"},children:"Contact Information"})}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line1",control:x,defaultValue:(Le=(ke=n==null?void 0:n.businesscard)==null?void 0:ke.address)==null?void 0:Le.line1,rules:{validate:F,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 1"})})})})}),e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line2",control:x,defaultValue:(as=($e=n==null?void 0:n.businesscard)==null?void 0:$e.address)==null?void 0:as.line2,rules:{validate:U,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 2"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"city",control:x,defaultValue:(ms=(xs=n==null?void 0:n.businesscard)==null?void 0:xs.address)==null?void 0:ms.city,rules:{required:{value:!0,message:"City is required"},pattern:{value:js,message:"Invalid City."},validate:Z,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"City"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"state",control:x,defaultValue:(tt=(ls=n==null?void 0:n.businesscard)==null?void 0:ls.address)==null?void 0:tt.state,rules:{required:{value:!0,message:"State is required"},pattern:{value:js,message:"State should contain only alphabets."},validate:ne,maxLength:{value:25,message:"Max 25 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"State"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"country",control:x,defaultValue:(Ms=(Ge=n==null?void 0:n.businesscard)==null?void 0:Ge.address)==null?void 0:Ms.country,rules:{required:{value:!0,message:"Country is required"},pattern:{value:js,message:"Country should contain only alphabets."},validate:K,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Country"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"pincode",control:x,defaultValue:($t=(Vs=n==null?void 0:n.businesscard)==null?void 0:Vs.address)==null?void 0:$t.pincode,rules:{required:{value:!0,message:"Pincode is required"},pattern:{value:/^[0-9]{6}$/,message:"Invalid Pincode."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Pincode"})})})})})]}),e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"mobile",control:x,disabled:!0,defaultValue:(Aa=n==null?void 0:n.user)==null?void 0:Aa.mobile,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Mobile"})})})}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})}),t==="Student"?e.jsx(e.Fragment,{children:e.jsxs("form",{autoComplete:"off",onSubmit:u(q),children:[e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"firstName",control:x,disabled:!0,defaultValue:(Ea=n==null?void 0:n.user)==null?void 0:Ea.firstName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"First Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"lastName",disabled:!0,control:x,defaultValue:(Ma=n==null?void 0:n.user)==null?void 0:Ma.lastName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Last Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"highestEducation",control:x,defaultValue:(Pa=n==null?void 0:n.businesscard)==null?void 0:Pa.highestEducation,rules:{required:{value:!0,message:"Highest Education is required"},maxLength:{value:20,message:"Maximum 20 characters allowed."},validate:P},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Higher Education"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"studentsCollegeName",control:x,defaultValue:(Ra=n==null?void 0:n.businesscard)==null?void 0:Ra.studentsCollegeName,rules:{required:{value:!0,message:"CollegeName is required"},maxLength:{value:20,message:"Maximum 20 characters allowed."},validate:O},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"College"})})})}),e.jsxs("div",{className:"did-floating-label-content w-100 my-3",children:[e.jsx(Is,{onFocus:g,onBlur:E,onChange:V=>{var le;V.target.value||(le=n==null?void 0:n.businesscard)!=null&&le.dateOfBirth?S(!0):S(!1)},id:"custom-css-outlined-input",type:k||w?"date":"text",size:"small",InputProps:{className:"textfield"},className:"textField my-2 mt-4",label:"Date of Birth",InputLabelProps:{shrink:!0,style:{color:"#A7AAAB",fontSize:"15px"}},defaultValue:ca((Rt=n==null?void 0:n.businesscard)==null?void 0:Rt.dateOfBirth),...d("dateOfBirth",{validate:{notZero:V=>V!=="0"||"Please select a valid date"}})}),(m==null?void 0:m.dateOfBirth)&&e.jsx(Me,{errMsg:(Pe=m==null?void 0:m.dateOfBirth)==null?void 0:Pe.message})]}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"tagLine",control:x,defaultValue:(Qs=n==null?void 0:n.businesscard)==null?void 0:Qs.tagLine,rules:{required:{value:!0,message:"TagLine is required"},maxLength:{value:60,message:"TagLine is too long"},validate:M},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Tag Line"})})})}),e.jsx("div",{className:"my-1",style:{alignItems:"flex-start"},children:e.jsx("p",{style:{margin:"30px 0px 10px 0px"},children:"Contact Information"})}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line1",control:x,defaultValue:(Zo=(Yo=n==null?void 0:n.businesscard)==null?void 0:Yo.address)==null?void 0:Zo.line1,rules:{validate:F,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 1"})})})})}),e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line2",control:x,defaultValue:(Qo=(Ko=n==null?void 0:n.businesscard)==null?void 0:Ko.address)==null?void 0:Qo.line2,rules:{validate:U,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 2"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"city",control:x,defaultValue:(er=(Xo=n==null?void 0:n.businesscard)==null?void 0:Xo.address)==null?void 0:er.city,rules:{required:{value:!0,message:"City is required"},pattern:{value:js,message:"Invalid City."},validate:Z,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"City"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"state",control:x,defaultValue:(tr=(sr=n==null?void 0:n.businesscard)==null?void 0:sr.address)==null?void 0:tr.state,rules:{required:{value:!0,message:"State is required"},pattern:{value:js,message:"State should contain only alphabets."},validate:ne,maxLength:{value:25,message:"Max 25 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"State"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"country",control:x,defaultValue:(nr=(ar=n==null?void 0:n.businesscard)==null?void 0:ar.address)==null?void 0:nr.country,rules:{required:{value:!0,message:"Country is required"},pattern:{value:js,message:"Country should contain only alphabets."},validate:K,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Country"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"pincode",control:x,defaultValue:(or=(ir=n==null?void 0:n.businesscard)==null?void 0:ir.address)==null?void 0:or.pincode,rules:{required:{value:!0,message:"Pincode is required"},pattern:{value:/^[0-9]{6}$/,message:"Invalid Pincode."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Pincode"})})})})})]}),e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"mobile",control:x,disabled:!0,defaultValue:(rr=n==null?void 0:n.user)==null?void 0:rr.mobile,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Mobile"})})})}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})}):t==="Professional"?e.jsx(e.Fragment,{children:e.jsxs("form",{autoComplete:"off",onSubmit:u(q),children:[e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"firstName",disabled:!0,control:x,defaultValue:(lr=n==null?void 0:n.user)==null?void 0:lr.firstName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"First Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"lastName",disabled:!0,control:x,defaultValue:(cr=n==null?void 0:n.user)==null?void 0:cr.lastName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Last Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"designation",control:x,defaultValue:(dr=n==null?void 0:n.businesscard)==null?void 0:dr.designation,rules:{required:{value:!0,message:"Designation is required"},maxLength:{value:25,message:"Maximum 25 characters allowed."},validate:L},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Designation"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3 my-2",children:e.jsx(Wa,{selectedOption:C,setSelectedOption:T,placehold:"Company Name",accountType:["Brands","Institutes"]})}),e.jsxs("div",{className:"did-floating-label-content w-100 my-3",children:[e.jsx(Is,{onFocus:g,onBlur:E,onChange:V=>{V.target.value?S(!0):S(!1)},id:"custom-css-outlined-input",type:k||w?"date":"text",size:"small",InputProps:{className:"textfield"},className:"textField my-2 mt-4",label:"Date of Birth",InputLabelProps:{shrink:!0,style:{color:"#A7AAAB",fontSize:"15px"}},defaultValue:ca((mr=n==null?void 0:n.businesscard)==null?void 0:mr.dateOfBirth),...d("dateOfBirth",{validate:{notZero:V=>V!=="0"||"Please select a valid date"}})}),(m==null?void 0:m.dateOfBirth)&&e.jsx(Me,{errMsg:(hr=m==null?void 0:m.dateOfBirth)==null?void 0:hr.message})]}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"tagLine",control:x,defaultValue:(ur=n==null?void 0:n.businesscard)==null?void 0:ur.tagLine,rules:{required:{value:!0,message:"TagLine is required"},maxLength:{value:60,message:"TagLine is too long"},validate:M},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Tag Line"})})})}),e.jsx("div",{className:"my-1",style:{alignItems:"flex-start"},children:e.jsx("p",{style:{margin:"30px 0px 10px 0px"},children:"Contact Information"})}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line1",control:x,defaultValue:(gr=(pr=n==null?void 0:n.businesscard)==null?void 0:pr.address)==null?void 0:gr.line1,rules:{validate:F,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 1"})})})})}),e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line2",control:x,defaultValue:(fr=(xr=n==null?void 0:n.businesscard)==null?void 0:xr.address)==null?void 0:fr.line2,rules:{validate:U,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 2"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"city",control:x,defaultValue:(yr=(jr=n==null?void 0:n.businesscard)==null?void 0:jr.address)==null?void 0:yr.city,rules:{required:{value:!0,message:"City is required"},pattern:{value:js,message:"Invalid City."},validate:Z,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"City"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"state",control:x,defaultValue:(vr=(br=n==null?void 0:n.businesscard)==null?void 0:br.address)==null?void 0:vr.state,rules:{required:{value:!0,message:"State is required"},pattern:{value:js,message:"State should contain only alphabets."},validate:ne,maxLength:{value:25,message:"Max 25 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"State"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"country",control:x,defaultValue:(Nr=(_r=n==null?void 0:n.businesscard)==null?void 0:_r.address)==null?void 0:Nr.country,rules:{required:{value:!0,message:"Country is required"},pattern:{value:js,message:"Country should contain only alphabets."},validate:K,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Country"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"pincode",control:x,defaultValue:(Sr=(wr=n==null?void 0:n.businesscard)==null?void 0:wr.address)==null?void 0:Sr.pincode,rules:{required:{value:!0,message:"Pincode is required"},pattern:{value:/^[0-9]{6}$/,message:"Invalid Pincode."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Pincode"})})})})})]}),e.jsx("div",{className:"did-floating-label-co
185ntent w-100 mt-3",children:e.jsx(xe,{name:"mobile",control:x,disabled:!0,defaultValue:(kr=n==null?void 0:n.user)==null?void 0:kr.mobile,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Mobile"})})})}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end profile_input_modal_end-line",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})}):t==="Freelancer"&&e.jsx(e.Fragment,{children:e.jsxs("form",{autoComplete:"off",onSubmit:u(q),children:[e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"firstName",control:x,disabled:!0,defaultValue:(Cr=n==null?void 0:n.user)==null?void 0:Cr.firstName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"First Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"lastName",control:x,disabled:!0,defaultValue:(Tr=n==null?void 0:n.user)==null?void 0:Tr.lastName,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Last Name"})})})}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"designation",control:x,defaultValue:(Ir=n==null?void 0:n.businesscard)==null?void 0:Ir.designation,rules:{required:{value:!0,message:"Designation is required"},maxLength:{value:25,message:"Maximum 25 characters allowed."},validate:L},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Designation"})})})}),e.jsxs("div",{className:"did-floating-label-content w-100 my-3",children:[e.jsx(Is,{onFocus:g,onBlur:E,onChange:V=>{V.target.value?S(!0):S(!1)},id:"custom-css-outlined-input",type:k||w?"date":"text",size:"small",InputProps:{className:"textfield"},className:"textField my-2 mt-4",label:"Date of Birth",InputLabelProps:{shrink:!0,style:{color:"#A7AAAB",fontSize:"15px"}},defaultValue:ca((Ar=n==null?void 0:n.businesscard)==null?void 0:Ar.dateOfBirth),...d("dateOfBirth",{})}),(m==null?void 0:m.dateOfBirth)&&e.jsx(Me,{errMsg:(Er=m==null?void 0:m.dateOfBirth)==null?void 0:Er.message})]}),e.jsx("div",{className:"did-floating-label-content w-100 my-3",children:e.jsx(xe,{name:"tagLine",control:x,defaultValue:(Mr=n==null?void 0:n.businesscard)==null?void 0:Mr.tagLine,rules:{required:{value:!0,message:"TagLine is required"},maxLength:{value:60,message:"TagLine is too long"},validate:M},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Tag Line"})})})}),e.jsx("div",{className:"my-1",style:{alignItems:"flex-start"},children:e.jsx("p",{style:{margin:"30px 0px 10px 0px"},children:"Contact Information"})}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line1",control:x,defaultValue:(Rr=(Pr=n==null?void 0:n.businesscard)==null?void 0:Pr.address)==null?void 0:Rr.line1,rules:{validate:F,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 1"})})})})}),e.jsx("div",{className:"col-12",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"line2",control:x,defaultValue:(Fr=(Lr=n==null?void 0:n.businesscard)==null?void 0:Lr.address)==null?void 0:Fr.line2,rules:{validate:U,maxLength:{value:50,message:"max 50 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Address Line 2"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"city",control:x,defaultValue:(Or=(Br=n==null?void 0:n.businesscard)==null?void 0:Br.address)==null?void 0:Or.city,rules:{required:{value:!0,message:"City is required"},pattern:{value:js,message:"Invalid City."},validate:Z,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"City"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"state",control:x,defaultValue:(Dr=(Ur=n==null?void 0:n.businesscard)==null?void 0:Ur.address)==null?void 0:Dr.state,rules:{required:{value:!0,message:"State is required"},pattern:{value:js,message:"State should contain only alphabets."},validate:ne,maxLength:{value:25,message:"Max 25 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"State"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"country",control:x,defaultValue:(Vr=(qr=n==null?void 0:n.businesscard)==null?void 0:qr.address)==null?void 0:Vr.country,rules:{required:{value:!0,message:"Country is required"},pattern:{value:js,message:"Country should contain only alphabets."},validate:K,maxLength:{value:20,message:"Max 20 characters allowed."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Country"})})})})}),e.jsx("div",{className:"col-6",children:e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"pincode",control:x,defaultValue:(Wr=(zr=n==null?void 0:n.businesscard)==null?void 0:zr.address)==null?void 0:Wr.pincode,rules:{required:{value:!0,message:"Pincode is required"},pattern:{value:/^[0-9]{6}$/,message:"Invalid Pincode."}},render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Pincode"})})})})})]}),e.jsx("div",{className:"did-floating-label-content w-100 mt-3",children:e.jsx(xe,{name:"mobile",control:x,disabled:!0,defaultValue:($r=n==null?void 0:n.user)==null?void 0:$r.mobile,render:({field:V,fieldState:le})=>e.jsx(e.Fragment,{children:e.jsx(De,{data:V,dataState:le,label:"Mobile"})})})}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})})]})]})})},vk=bk,Oc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%20stroke-width='2.5'%20stroke='%23eaeaea'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M7.217%2010.907a2.25%202.25%200%201%200%200%202.186m0-2.186c.18.324.283.696.283%201.093s-.103.77-.283%201.093m0-2.186%209.566-5.314m-9.566%207.5%209.566%205.314m0%200a2.25%202.25%200%201%200%203.935%202.186%202.25%202.25%200%200%200-3.935-2.186Zm0-12.814a2.25%202.25%200%201%200%203.933-2.185%202.25%202.25%200%200%200-3.933%202.185Z'%20/%3e%3c/svg%3e",_k="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='17.68'%20height='20.236'%20viewBox='0%200%2017.68%2020.236'%3e%3cpath%20id='Path_28384'%20data-name='Path%2028384'%20d='M19.351,13.4l-7.426,7.426m0,0L4.5,13.4m7.426,7.426V3'%20transform='translate(-3.086%20-2)'%20fill='none'%20stroke='%23d6dcdd'%20strokeLinecap='round'%20strokeLinejoin='round'%20strokeWidth='2'/%3e%3c/svg%3e",Nk="data:image/svg+xml,%3csvg%20width='78'%20height='54'%20viewBox='0%200%2078%2054'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4570_6779)'%3e%3cmask%20id='mask0_4570_6779'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='79'%20height='54'%3e%3cpath%20d='M78.001%200H0V53.585H78.001V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4570_6779)'%3e%3cpath%20d='M18.2269%2018.1491C22.8722%2018.3282%2027.2752%2020.2685%2030.5419%2023.5761C33.1891%2026.2894%2034.894%2029.7817%2035.4051%2033.5379C35.9
185161%2037.294%2035.2063%2041.1149%2033.3802%2044.4369C31.5542%2047.7588%2028.7087%2050.4058%2025.2636%2051.9873C21.8185%2053.5688%2017.9563%2054.0009%2014.2469%2053.2201C10.5234%2052.3866%207.15919%2050.3963%204.63596%2047.5341C2.11272%2044.6719%200.559915%2041.0847%200.199905%2037.2861C-0.522492%2031.444%200.687083%2025.5261%203.6439%2020.4361C7.9439%2012.8501%2013.0439%205.92706%2020.6639%201.29106C23.9859%20-0.728937%2026.0269%20-0.220937%2028.3639%202.97206C29.0829%203.95506%2029.1299%204.61106%2028.0019%205.38706C24.1778%208.09487%2021.1297%2011.7571%2019.1609%2016.0091C18.8409%2016.6631%2018.5759%2017.3431%2018.2269%2018.1461'%20fill='%236E6E6E'/%3e%3cpath%20d='M71.5395%204.54194C66.6032%207.84738%2062.8088%2012.5974%2060.6755%2018.1419C66.6675%2018.6079%2071.4635%2021.0019%2074.8675%2025.8559C76.9272%2028.8271%2078.025%2032.359%2078.0126%2035.9742C78.0002%2039.5894%2076.8781%2043.1136%2074.7982%2046.0706C72.7182%2049.0275%2069.7806%2051.2746%2066.3823%2052.5082C62.984%2053.7417%2059.289%2053.9022%2055.7965%2052.9679C52.3369%2052.0068%2049.2425%2050.0358%2046.9089%2047.3068C44.5754%2044.5778%2043.1088%2041.2149%2042.6965%2037.6479C41.7655%2030.6679%2043.5505%2024.4769%2047.0965%2018.6409C50.7965%2012.5409%2055.0865%206.93394%2060.9385%202.69494C61.5915%202.22194%2062.3235%201.85494%2062.9575%201.35994C66.8735%20-1.69006%2069.5395%200.835942%2071.5395%204.54194Z'%20fill='%236E6E6E'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4570_6779'%3e%3crect%20width='78.001'%20height='53.585'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",wk=()=>{const{successToast:s,warningToast:t,errorToast:a,errorHandle:i}=he();return{handleCopy:(l,c)=>{const o=`https://www.tickbig.com/${c}/${Ee(l)}`;nl(o),s("Link copied")},handleProfileUrlCopy:(l,c)=>{const o=`https://www.tickbig.com/${c}/${l}`;nl(o),s("Profile Url copied")}}},m0=wk;function Sk({handleShareClose:s}){const{userProfile:t}=G(l=>l.profile),{handleProfileUrlCopy:a}=m0(),[i,n]=b.useState("");b.useEffect(()=>{var l;if((l=t==null?void 0:t.user)!=null&&l.tickbigLink){const o=`https://www.tickbig.com/profile/${t.user.tickbigLink}`;n(o)}},[t]);const r=[{label:"WhatsApp",color:"bg-[#25D366]",icon:e.jsx(X0,{size:22}),onClick:()=>{uN("whatsapp"),window.open(`https://wa.me/?text=${encodeURIComponent(i)}`,"_blank")},className:"whatsapp"},{label:"LinkedIn",color:"bg-[#0077B5]",icon:e.jsx(to,{size:22}),onClick:()=>{window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(i)}`,"_blank","width=600,height=600,noopener,noreferrer")},className:"linkedin"},{label:"Email",color:"bg-gray-500",icon:e.jsx(eg,{size:22}),onClick:()=>{window.location.href=`mailto:?subject=Check this out&body=${encodeURIComponent(i)}`},className:"email"}];return e.jsxs("div",{className:"profileShare-container",children:[e.jsxs("div",{className:"profileShare-header",children:[e.jsx("p",{children:"Share"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsx("div",{className:"mb-6 px-2 share-icon-container",children:r.map(l=>e.jsxs("div",{style:{textAlign:"center",color:"#eaeaea",fontSize:"12px"},children:[e.jsx("div",{onClick:l.onClick,className:`share-icon-sub ${l.className} flex flex-col items-center cursor-pointer`,children:e.jsx("div",{className:`w-14 h-14 ${l.color} rounded-full flex items-center justify-center text-white text-xl`,children:l.icon})},l.label),e.jsx("p",{className:"mt-2 text-sm font-medium text-gray-700",children:l.label})]}))}),e.jsxs("div",{className:"copy-link",children:[e.jsx("input",{type:"text",className:"copy-link-input",value:i||"Profile link not available",readOnly:!0,onFocus:l=>l.target.select()}),e.jsx("button",{type:"button",className:"copy-link-button",onClick:()=>{var l;return a((l=t==null?void 0:t.user)==null?void 0:l.tickbigLink,"profile")},children:e.jsx("div",{style:{background:"#2C2C2C",borderRadius:"30px",padding:"6px 8px",height:"36px",width:"36px"},children:e.jsx("img",{src:Cp,alt:"copy url"})})})]})]})}function kk({itsMe:s,loadProfile:t}){var ie,Y,pe,me,Ce,Ye,Xe,ue,Ae,Se,ve;const a=ge(),[i,n]=b.useState(""),[r,l]=b.useState({open:!1,itemId:null}),{gotoConversation:c,gotoReviewPage:o,gotoProfileFortuneCard:p}=Be(),{handleProfileUrlCopy:h}=m0(),{errorToast:d,successToast:u,warningToast:m,errorHandle:f}=he(),v=Ds(),{user:N,userDetails:_}=G(J=>J.auth),{userProfile:x}=G(J=>J.profile);let j=_!=null&&_.friends?(ie=_==null?void 0:_.friends)==null?void 0:ie.map(J=>J._id):[],I=(j==null?void 0:j.length)>0&&j.includes((Y=x==null?void 0:x.user)==null?void 0:Y._id);[...j,N].includes((pe=x==null?void 0:x.user)==null?void 0:pe._id);const w=(me=_==null?void 0:_.blockedIds)==null?void 0:me.filter(J=>{var D;return J._id===((D=x==null?void 0:x.user)==null?void 0:D._id)});b.useState(!1),b.createRef(null);const y=async J=>{var D,$,re,oe,Re,Ze,Oe;try{let Ne=await rp(J);
185const{notificationStatus:ze,receiverData:Te,myData:es}=Ne==null?void 0:Ne.data;(Ne==null?void 0:Ne.statusCode)===Ke&&ze&&(n(ze==null?void 0:ze._id),a(Ls(J,"PendingAdd")),J==((D=x==null?void 0:x.user)==null?void 0:D._id)&&a(ys(N,"IncomingAdd")),N==(($=x==null?void 0:x.user)==null?void 0:$._id)&&a(ys(J,"PendingAdd")),a(Ts(ze)),u(Wu)),(Ne==null?void 0:Ne.statusCode)===200&&!ze&&(a(Ls(Te,"friendAdd")),J==((re=x==null?void 0:x.user)==null?void 0:re._id)&&a(ys(es,"friendAdd")),v&&v.connected&&vl((Re=(oe=Ne==null?void 0:Ne.data)==null?void 0:oe.otherUser)==null?void 0:Re._id,(Ze=Ne==null?void 0:Ne.data)==null?void 0:Ze.myData),N==((Oe=x==null?void 0:x.user)==null?void 0:Oe._id)&&a(ys(Te,"friendAdd")),u($u)),t()}catch(Ne){f(Ne)}},k=async J=>{var D,$,re,oe,Re,Ze,Oe,Ne,ze;try{let Te;Te=await cp(J),Te!=null&&Te.data&&(a(Ls((D=Te==null?void 0:Te.data)==null?void 0:D.otherUser,"friendAdd")),vl((re=($=Te==null?void 0:Te.data)==null?void 0:$.otherUser)==null?void 0:re._id,(oe=Te==null?void 0:Te.data)==null?void 0:oe.myData),(Re=x==null?void 0:x.user)!=null&&Re._id&&(J===((Ze=x==null?void 0:x.user)==null?void 0:Ze._id)&&a(ys((Oe=Te==null?void 0:Te.data)==null?void 0:Oe.myData,"friendAdd")),N===((Ne=x==null?void 0:x.user)==null?void 0:Ne._id)&&a(ys((ze=Te==null?void 0:Te.data)==null?void 0:ze.otherUser,"friendAdd"))),t())}catch(Te){f(Te)}},S=async J=>{var $,re,oe;let D=await Bo(J);D&&(D==null?void 0:D.statusCode)===Ke&&(n(""),a(Ls(J,"PendingRemove")),l(Re=>({...Re,open:!1,itemId:null})),($=x==null?void 0:x.user)!=null&&$._id&&(J===((re=x==null?void 0:x.user)==null?void 0:re._id)&&a(ys(N,"IncomingRemove")),N===((oe=x==null?void 0:x.user)==null?void 0:oe._id)&&a(ys(J,"PendingRemove"))),t())},g=async J=>{var $,re,oe,Re,Ze;let D=await lp(J);D&&(D==null?void 0:D.statusCode)===Ke&&(n(""),a(Ls(J,"IncomingRemove")),($=x==null?void 0:x.user)!=null&&$._id&&(J===((re=x==null?void 0:x.user)==null?void 0:re._id)&&a(ys(N,"PendingRemove")),N===((oe=x==null?void 0:x.user)==null?void 0:oe._id)&&a(ys(J,"IncomingRemove"))),(Re=D==null?void 0:D.data)!=null&&Re.notificId&&a(Bh((Ze=D==null?void 0:D.data)==null?void 0:Ze.notificId)),t())},E=async J=>{var D,$,re;try{let oe=await Qn(J);oe&&(oe==null?void 0:oe.statusCode)===Ke&&(a(Qa(J,(D=oe==null?void 0:oe.data)==null?void 0:D.unseenNotifications)),J===(($=x==null?void 0:x.user)==null?void 0:$._id)&&a(removeFrndProfileList(N)),N===((re=x==null?void 0:x.user)==null?void 0:re._id)&&a(removeFrndProfileList(J))),t()}catch(oe){f(oe)}},[C,T]=b.useState(!1),[A,R]=b.useState(!1),[P,O]=b.useState(!1),[M,L]=b.useState(!1),F=()=>L(!M),U=()=>L(!M),Z=J=>{var D;J.preventDefault(),s||["Brands","Institutes"].includes((D=x==null?void 0:x.user)==null?void 0:D.accountType)?T(!C):T(!1)},ne=async J=>{var D;try{let $;$=await c3(J);const{reviews:re}=$==null?void 0:$.data;$&&($!=null&&$.data)&&((D=$==null?void 0:$.data)!=null&&D.reviews)&&o(re==null?void 0:re.reviewLink)}catch($){f($)}},K=async J=>{var D,$,re,oe,Re,Ze;try{let Ne=await Hs({body:{userIds:[J,N],convoType:"SINGLE",convoStatus:"accepted"}});if(Ne.message!=="Duplicate")c(($=(D=Ne==null?void 0:Ne.data)==null?void 0:D.conversationData)==null?void 0:$._id);else{c((oe=(re=Ne==null?void 0:Ne.data)==null?void 0:re.conversations[0])==null?void 0:oe._id);let ze=await yu({conversationId:Ee((Re=Ne==null?void 0:Ne.data)==null?void 0:Re.conversationData[0]._id)});const{messages:Te,totalPages:es,currentPage:ns,unseenNotifications:be}=ze==null?void 0:ze.data;a(Us(Te,ns,es,(Ze=Ne==null?void 0:Ne.data)==null?void 0:Ze.conversationData[0]._id)),a(Ss(be))}}catch(Oe){f(Oe)}},te=async()=>{var D;const J=await Eo(Ee((D=x==null?void 0:x.user)==null?void 0:D._id));t(),a(za(J==null?void 0:J.data)),u(Mo)},q=()=>R(!0),H=()=>R(!1),X=()=>O(!0),ee=()=>O(!1),[se,ae]=b.useState(null),B=!!se,W=J=>{ae(J.currentTarget)},Q=()=>{ae(null)};return We(()=>{T(!1)},[x]),e.jsxs("section",{className:"profile__infoContainer position-relative",children:[e.jsx("div",{className:"gap-2 position-absolute d-flex justify-content-center align-items-center profContainer",style:{right:"20px",top:"15px"},children:e.jsx("div",{className:"profile__dots",children:e.jsx("div",{className:"profile__dropdown-container",tabIndex:"-1",children:N&&!s&&e.jsxs(e.Fragment,{children:[e.jsx("button",{style:{borderRadius:"30px",padding:"11px",width:"40px"},className:"edit-btnn display-flex-aic-jcsb",onClick:X,children:e.jsx("img",{src:Oc,alt:"",style:{width:"18px",height:"18px",margin:"0px"}})}),e.jsx(Yt,{"aria-label":"more",id:"long-button","aria-controls":B?"long-menu":void 0,"aria-expanded":B?"true":void 0,"aria-haspopup":"true",onClick:W,style:{border:"1px solid #6e6e6e",padding:"11px"},children:e.jsx("img",{src:Gn,sx:{width:24,height:24}})}),se&&!s&&e.jsx(e.Fragment,{children:e.jsxs(Jn,{id:"long-menu",MenuListProps:{"aria-labelledby":"long-button"},anchorEl:se,open:B,onClose:Q,PaperProps:{style:{maxHeight:qu*4.5,width:"20ch"}},children:[e.jsx(Ns,{onClick:()=>{var J;ne((J=x==null?void 0:x.user)==null?void 0:J._id),Q()},children:e.jsx("p",{children:"Write a Review"})}),e.jsx(Ns,{onClick:()=>{h(x==null?void 0:x.tickbigLink,"profile"),Q()},children:e.jsx("p",{children:"Copy Profile URL"})}),w.length===0&&e.jsx(Ns,{onClick:()=>{te(),Q()},children:e.jsx("p",{children:"Block User"})})]})})]})})})}),e.jsxs("div",{className:"profile__InfoContainer-left",children:[e.jsx("div",{className:"Quote-img-container",children:e.jsx("img",{src:Nk,alt:"quote-icon",style:{width:"50px",height:"50px"}})}),e.jsxs("div",{className:"Quotes_container",children:[e.jsx("div",{className:"txtContainer",children:x!=null&&x.quote?e.jsx("p",{className:"profile--Quotes",children:x==null?void 0:x.quote}):e.jsx("q",{className:"profile--Quotes",children:"“My goal is not to be better than anyone else, but to be better then I used to be.”"})}),!s&&e.jsxs("div",{className:"d-flex align-items-center profile__bottom-right mt-4",children:[N&&e.jsxs(e.Fragment,{children:[I?e.jsx("button",{type:"button",className:"profile__bottom-btn display-flex-aljc-center grpText",onClick:()=>{var J;return E((J=x==null?void 0:x.user)==null?void 0:J._id)},children:"Following"}):(Ye=(Ce=x==null?void 0:x.user)==null?void 0:Ce.pendingRequest)!=null&&Ye.includes(N)?e.jsxs(e.Fragment,{children:[e.jsx("button",{className:"profile__bottom-btn display-flex-aljc-center grpText",onClick:()=>{var J;return k((J=x==null?void 0:x.user)==null?void 0:J._id)},children:"Accept"}),e.jsx("button",{className:"profile__bottom-btn display-flex-aljc-center grpText",onClick:()=>{var J;return g((J=x==null?void 0:x.user)==null?void 0:J._id)},children:"Decline"})]}):(ue=(Xe=x==null?void 0:x.user)==null?void 0:Xe.incomingRequests)!=null&&ue.includes(N)?e.jsx("button",{type:"button",className:"profile__bottom-btn display-flex-aljc-center grpText",onClick:()=>l(J=>{var D;return{...J,open:!0,itemId:(D=x==null?void 0:x.user)==null?void 0:D._id}}),children:"Following"}):e.jsxs("button",{type:"button",className:"profile__bottom-btn display-flex-aljc-center grpText",onClick:()=>{var J;return y((J=x==null?void 0:x.user)==null?void 0:J._id)},children:[e.jsx(sg,{className:"icoSize"}),"Follow"]}),e.jsxs("button",{type:"button",className:"profile__bottom-btn display-flex-aljc-center grpText",children:[Qb((Se=(Ae=x==null?void 0:x.user)==null?void 0:Ae.friends)==null?void 0:Se.length),e.jsx("img",{src:fk,alt:"profIco",className:"icoSize2"})]})]}),I&&e.jsx("button",{type:"button",className:"profile__bottom-btn profile__bottom-btn2",onClick:()=>{var J;return K((J=x==null?void 0:x.user)==null?void 0:J._id)},children:e.jsx("img",{src:xk,alt:"profIco",className:"icoSize2"})})]})]}),s&&e.jsxs("button",{className:"edit-btnn mt-4 display-flex-aic-jcsb",onClick:q,children:[e.jsx("img",{src:Ut,alt:"",style:{width:"16px",height:"20px",margin:"0px 10px"}}),e.jsx("span",{children:"Edit Your Quote"})]})]}),e.jsxs("div",{className:"profile__infoContainer-right",children:[s&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:"d-flex profile_download-container",children:[e.jsxs("button",{className:"edit-btnn mt-4 display-flex-aic-jcsb",onClick:F,children:["Edit",e.jsx("img",{src:Ut,alt:"",style:{width:"18px",height:"18px",margin:"2px 10px"}})]}),e.jsx("button",{style:{borderRadius:"30px",padding:"11px"},className:"edit-btnn mt-4 display-flex-aic-jcsb",type:"button",onClick:()=>p(N),children:e.jsx("img",{src:_k,alt:"",style:{width:"18px",height:"18px",margin:"0px"}})}),e.jsx("button",{style:{borderRadius:"30px",padding:"11px"},className:"edit-btnn mt-4 display-flex-aic-jcsb",onClick:X,children:e.jsx("img",{src:Oc,alt:"",style:{width:"18px",height:"18px",margin:"0px"}})})]})}),e.jsx("div",{className:"businessCard_container",onClick:Z,children:e.jsxs(Mg,{isFlipped:C,flipDirection:"horizontal",children:[e.jsx(i6,{userProfile:x}),e.jsx(gk,{userProfile:x})]})})]}),e.jsx(qe,{open:A,onClose:H,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx(Ie,{sx:F2,className:"profileServiceContainer",children:e.jsx(jk,{handleClose:H})})}),e.jsx(qe,{open:M,onClose:U,children:e.jsx(Ie,{sx:cs,children:e.jsx(vk,{handleInformationModalClose:U,setInformationModal:L,openInformationModal:M,subType:_==null?void 0:_.subType})})}),e.jsx(qe,{open:P,onClose:ee,children:e.jsx(Ie,{sx:M2,children:e.jsx(Sk,{handleShareClose:ee})})}),e.jsx(As,{confirm:r.open,setConfirm:l,action:"Unfollow",performer:S,itemId:(ve=x==null?void 0:x.user)==null?void 0:ve._id})]})}const ia=b.lazy(()=>Ve(()=>Promise.resolve().then(()=>Jp),void 0).then(s=>({default:s.IOSSwitch}))),Ck=({handleAboutModalClose:s,itsMe:t})=>{var C,T,A,R,P,O,M,L,F,U;const{successToast:a,warningToast:i,errorToast:n,errorHandle:r}=he(),l=ts().userUniqueId,{userProfile:c}=G(Z=>Z.profile),[o,p]=b.useState({openToWork:(C=c==null?void 0:c.about)==null?void 0:C.isOpenToWork,consult:(T=c==null?void 0:c.about)==null?void 0:T.isOpenToConsult,fundraise:(A=c==null?void 0:c.about)==null?void 0:A.isOpenToFundraise,invest:(R=c==null?void 0:c.about)==null?void 0:R.isOpenToInvest,hiring:(P=c==null?void 0:c.about)==null?void 0:P.isHiring}),[h,d]=b.useState(null),[u,m]=b.useState(!1),f="cv",v=ge(),{register:N,getValues:_,handleSubmit:x,formState:{errors:j}}=Qe(),{register:I,handleSubmit:w,formState:y,errors:k}=Qe(),S=async Z=>{const ne="";h||i(J3);const K=await ya(f,h,h==null?void 0:h.type);K&&Au({urlIs:K,oldFile:ne,awsFolderName:f}).then(q=>{var H;m(!1),d(null),q&&(q==null?void 0:q.statusCode)===Ke&&(v(Vn(q==null?void 0:q.data,"resume")),v(Rn((H=q==null?void 0:q.data)==null?void 0:H.resume,"resume")),a("Resume uploaded successfully"))}).catch(q=>{r(q)})},g=async Z=>{var te,q,H;const ne={aboutDescription:Z.aboutDescription,isOpenToWork:o.openToWork,isHiring:o.hiring,isOpenToConsult:o.consult,isOpenToFundraise:o.fundraise,isOpenToInvest:o.invest,wantToOutsource:o.wantToOutsource},K=await Bv(l,ne);K&&(K!=null&&K.data)&&((te=K==null?void 0:K.data)!=null&&te.profile)&&(v(ds((H=(q=K==null?void 0:K.data)==null?void 0:q.profile)==null?void 0:H.about,"about")),a("Website updated successfully"),s())},E=()=>{const{aboutDescription:Z}=_();if(!Z.trim())return"Description is required"};return e.jsx(e.Fragment,{children:e.jsx("main",{className:"profile_modal_close",children:e.jsxs("section",{className:"profile_modal_input__Section",children:[e.jsxs("div",{className:"d-flex justify-content-between align-items-center profile_input_modal_start-line",children:[e.jsx("div",{className:"profileinput_main_title",children:"Describe yourself"}),e.jsx(ps,{className:"profile_input_modal_delete_btn",onClick:s})]}),e.jsxs("div",{className:"custom__Scroll",children:[((O=c==null?void 0:c.user)==null?void 0:O.accountType)==="Individuals"&&e.jsx(e.Fragment,{children:e.jsx("form",{autoComplete:"off",onSubmit:w(S)})}),e.jsxs("form",{autoComplete:"off",onSubmit:x(g),children:[e.jsx("div",{className:"profileinput_subheading",children:"Personal Information"}),e.jsxs("div",{className:"select__icons",children:[((M=c==null?void 0:c.user)==null?void 0:M.accountType)==="Individuals"&&e.jsxs("div",{className:"d-flex",children:[e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(ia,{defaultChecked:(L=c==null?void 0:c.about)==null?void 0:L.openToWork,checked:o.openToWork,onChange:()=>{p({...o,openToWork:!o.openToWork})},inputProps:{"aria-label":"controlled"}})})}),e.jsx("span",{className:"open-info",children:"Open to work"})]}),e.jsxs("div",{className:"d-flex",children:[e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(ia,{checked:o.consult,defaultChecked:c.about.consult,onCh
185ange:()=>{p({...o,consult:!o.consult})},inputProps:{"aria-label":"controlled"}})})}),e.jsx("span",{className:"open-info",children:"Open to Consult"})]}),e.jsxs("div",{className:"d-flex",children:[e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(ia,{checked:o.fundraise,defaultChecked:c.about.fundraise,onChange:()=>{p({...o,fundraise:!o.fundraise})},inputProps:{"aria-label":"controlled"}})})}),e.jsx("span",{className:"open-info",children:"Raising fund"})]}),e.jsxs("div",{className:"d-flex",children:[e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(ia,{checked:o.hiring,defaultChecked:c.about.hiring,onChange:()=>{p({...o,hiring:!o.hiring})},inputProps:{"aria-label":"controlled"}})})}),e.jsx("span",{children:"Hiring"})]}),e.jsxs("div",{className:"d-flex",children:[e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(ia,{defaultChecked:c.about.invest,checked:o.invest,onChange:()=>{p({...o,invest:!o.invest})},inputProps:{"aria-label":"controlled"}})})}),e.jsx("span",{className:"open-info",children:"Open to invest"})]}),e.jsxs("div",{className:"d-flex",children:[e.jsx(_s,{children:e.jsx(fs,{control:e.jsx(ia,{defaultChecked:c.about.wantToOutsource,checked:o.wantToOutsource,onChange:()=>{p({...o,wantToOutsource:!o.wantToOutsource})},inputProps:{"aria-label":"controlled"}})})}),e.jsx("span",{className:"open-info",children:"Want to outsource"})]})]}),e.jsx("br",{}),e.jsxs("div",{children:[e.jsx(Is,{error:!!(j!=null&&j.aboutDescription),name:"aboutDescription",id:"custom-css-outlined-input",size:"small",className:"textField my-2 mt-4",multiline:!0,rows:4,InputProps:{className:"textfield"},label:"Describe Yourself",InputLabelProps:{style:{color:"var(--text-color-secondary)",fontSize:"16px",borderRadius:"0"}},type:"text",defaultValue:(F=c==null?void 0:c.about)==null?void 0:F.aboutDescription,...N("aboutDescription",{required:{value:!0,message:"Description is required"},maxLength:{value:350,message:"Maximum 350 characters allowed."},validate:E})}),(j==null?void 0:j.aboutDescription)&&e.jsx(Me,{errMsg:(U=j==null?void 0:j.aboutDescription)==null?void 0:U.message})]}),e.jsx("div",{className:"gap-2 d-flex align-items-center justify-content-end profile_modal_input__save_container profile_input_modal_end-line",children:e.jsx("button",{className:"display-flex-aljc-center display-flex-aljc-center profile_modal_input__save_icon",type:"submit",children:"Save"})})]})]})]})})})},Tk=Ck;function Ik({itsMe:s}){var l,c,o,p,h,d,u,m,f,v,N,_,x,j,I,w,y,k,S,g,E,C,T;G(A=>A.auth);const{userProfile:t}=G(A=>A.profile),[a,i]=b.useState(!1),n=()=>i(!a),r=()=>i(!a);return he(),e.jsxs(e.Fragment,{children:[e.jsxs("main",{className:"my-5 profile-aboutme-container",children:[s&&e.jsx("div",{className:"profile-aboutme__edit",children:e.jsx("div",{style:{margin:"10px",justifyContent:"center"},className:"display-flex-aljc-center",onClick:n,children:e.jsxs("button",{className:"edit-btn display-flex-aic-jcsb",children:["Edit",e.jsx("img",{src:Ut,alt:"",style:{width:"16px",height:"12px",margin:"2px 10px"}})]})})}),e.jsxs("div",{className:"profileAbout_Left",children:[((l=t==null?void 0:t.user)==null?void 0:l.accountType)==="Individuals"?e.jsx("h4",{style:{color:"var(--primary-color)",fontWeight:"bold",wordBreak:"break-word"},children:de(((c=t==null?void 0:t.user)==null?void 0:c.firstName)+" "+((o=t==null?void 0:t.user)==null?void 0:o.lastName))}):["Brands","Institutes"].includes((p=t==null?void 0:t.user)==null?void 0:p.accountType)?e.jsx("h4",{style:{color:"var(--primary-color)",fontWeight:"bold",wordBreak:"break-word"},children:de((h=t==null?void 0:t.user)==null?void 0:h.firstName)}):null,e.jsx("div",{className:"mt-4 display-flex-aic-jcsb",children:e.jsxs("div",{className:"sub-container1",children:[((d=t==null?void 0:t.user)==null?void 0:d.accountType)==="Individuals"?e.jsx("p",{children:(u=t==null?void 0:t.businesscard)==null?void 0:u.tagLine}):e.jsx("p",{children:(m=t==null?void 0:t.businesscard)==null?void 0:m.brandSector}),e.jsx("h5",{children:(f=t==null?void 0:t.user)==null?void 0:f.subType})]})}),e.jsx("p",{className:"profile_section_bg_desc profile_aboutme_bio",children:(v=t==null?void 0:t.about)==null?void 0:v.aboutDescription})]}),e.jsx("div",{className:"profileAbout_Right",children:e.jsxs("section",{className:"profile-aboutme__section2",children:[((N=t==null?void 0:t.user)==null?void 0:N.accountType)==="Individuals"&&e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("input",{id:"accent",className:"refer__option--radio checkboxRound-profile",type:"checkbox",checked:!!((_=t==null?void 0:t.about)!=null&&_.isOpenToWork),disabled:!0}),e.jsx("p",{className:(x=t==null?void 0:t.about)!=null&&x.isOpenToWork?"profile_about-checkbox-text":"disabled-color",children:"Open to work"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("input",{id:"accent",className:"refer__option--radio checkboxRound-profile",type:"checkbox",checked:!!((j=t==null?void 0:t.about)!=null&&j.isOpenToConsult),disabled:!0}),e.jsx("p",{className:(I=t==null?void 0:t.about)!=null&&I.isOpenToConsult?"profile_about-checkbox-text":"disabled-color",children:"Open to Consult"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("input",{id:"accent",className:"refer__option--radio checkboxRound-profile",type:"checkbox",checked:!!((w=t==null?void 0:t.about)!=null&&w.isOpenToFundraise),disabled:!0}),e.jsx("p",{className:(y=t==null?void 0:t.about)!=null&&y.isOpenToFundraise?"profile_about-checkbox-text":"disabled-color",children:"Raising Fund"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("input",{id:"accent",className:"refer__option--radio checkboxRound-profile",type:"checkbox",checked:!!((k=t==null?void 0:t.about)!=null&&k.isOpenToInvest),disabled:!0}),e.jsx("p",{className:(S=t==null?void 0:t.about)!=null&&S.isOpenToInvest?"profile_about-checkbox-text":"disabled-color",children:"Open to Invest"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("input",{id:"accent",className:"refer__option--radio checkboxRound-profile",type:"checkbox",checked:!!((g=t==null?void 0:t.about)!=null&&g.isHiring),disabled:!0}),e.jsx("p",{className:(E=t==null?void 0:t.about)!=null&&E.isHiring?"profile_about-checkbox-text":"disabled-color",children:"Hiring"})]}),e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx("input",{id:"accent",className:"refer__option--radio checkboxRound-profile",type:"checkbox",checked:!!((C=t==null?void 0:t.about)!=null&&C.wantToOutsource),disabled:!0}),e.jsx("p",{className:(T=t==null?void 0:t.about)!=null&&T.wantToOutsource?"profile_about-checkbox-text":"disabled-color",children:"Want to outsource"})]})]})})]}),e.jsx(qe,{open:a,onClose:r,children:e.jsx(Ie,{sx:cs,className:"about__Modal",children:e.jsx(Tk,{handleAboutModalClose:r,itsMe:s})})})]})}function Uc({index:s,name:t,userTickLink:a,avatar:i,subType:n,rating:r,comment:l,module:c}){const{gotoProfile:o}=Be();return e.jsx(e.Fragment,{children:e.jsx("div",{className:"col-12 col-sm-12 col-md-12 col-lg-6",children:e.jsx("div",{className:"profile__reviews-card",children:e.jsxs("div",{className:"profile__reviews-card-left",children:[e.jsx("div",{className:" profile__reviews-card-full",children:e.jsxs("div",{className:"profile__reviews-card-top",children:[e.jsx("div",{className:"profile__reviews-profile-pic",children:e.jsx("div",{className:"display-flex-aljc-center profile__reviews-round-image",children:e.jsx(ss,{src:i,className:"rounded-circle",height:50,width:50})})}),e.jsxs("div",{className:"profile__reviews-name",children:[e.jsx("p",{className:"profile__reviews-name-p cp",onClick:()=>{o(a),Go()},children:de(t)}),e.jsx("span",{className:"profile__reviews-position",children:n}),e.jsxs("div",{className:"profile__reviews-rating",children:[e.jsx(ua,{data:r,size:"small"}),e.jsx("span",{className:"profile__reviews-rating-content",children:c==="general"?"Profile":e.jsx(e.Fragment,{children:de(c)})})]})]})]})}),e.jsx("div",{className:"profile__reviews-content",children:e.jsx("p",{className:"profile__reviews-content-p",children:l})})]})})},s)})}function Ak(){var f,v,N,_,x;const{userReview:s}=G(j=>j.review),{userProfile:t}=G(j=>j.profile),{errorToast:a,successToast:i,warningToast:n,errorHandle:r}=he(),[l,c]=b.useState("all"),{control:o,setValue:p,clearErrors:h}=Qe(),{gotoReviewPage:d}=Be(),u=j=>{try{d(j)}catch(I){r(I)}},m=j=>{c(j.target.value),p(j.target.value)};return We(()=>{typeof l=="string"&&l.toLowerCase()},[l]),e.jsx(e.Fragment,{children:e.jsxs("section",{children:[e.jsx(st,{data:"Ratings & Reviews"}),(s==null?void 0:s.reviews.length)>
1850?e.jsx(e.Fragment,{children:e.jsxs("section",{className:"profile__Reviews-container",children:[e.jsx("div",{className:"display-flex-aljc-center profile__reviewCard__filter",children:e.jsx("div",{className:"d-flex",children:e.jsx(Mn,{sx:{m:1,minWidth:200},children:e.jsx(Ya,{labelId:"demo-customized-select-label",id:"demo-customized-select",value:l,onChange:m,input:e.jsx(Xn,{}),MenuProps:t0,sx:{"& .MuiSelect-icon":{color:"rgb(167, 170, 171)"}},children:ra==null?void 0:ra.map((j,I)=>e.jsx(Ns,{value:j.value,children:j.label},I))})})})}),((f=t==null?void 0:t.user)==null?void 0:f._id)==((v=s==null?void 0:s.ownerId)==null?void 0:v._id)?e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"flex flex-col",children:e.jsx("div",{className:"row",children:l.toLocaleLowerCase()!=="all"?(N=s==null?void 0:s.reviews)==null?void 0:N.filter(j=>j.module==l.toLowerCase()).map((j,I)=>{var w,y,k,S,g;if(I<=5)return e.jsx(Uc,{index:I,name:de(`${(w=j==null?void 0:j.userId)==null?void 0:w.firstName} ${(y=j==null?void 0:j.userId)==null?void 0:y.lastName}`),userTickLink:(k=j==null?void 0:j.userId)==null?void 0:k.tickbigLink,avatar:(S=j==null?void 0:j.userId)==null?void 0:S.avatar,subType:(g=j==null?void 0:j.userId)==null?void 0:g.subType,rating:j==null?void 0:j.ratings,comment:j==null?void 0:j.comment,module:j==null?void 0:j.module},I)}):(_=s==null?void 0:s.reviews)==null?void 0:_.map((j,I)=>{var w,y,k,S,g;if(I<=5)return e.jsx(Uc,{index:I,name:de(`${(w=j==null?void 0:j.userId)==null?void 0:w.firstName} ${(y=j==null?void 0:j.userId)==null?void 0:y.lastName}`),userTickLink:(k=j==null?void 0:j.userId)==null?void 0:k.tickbigLink,avatar:(S=j==null?void 0:j.userId)==null?void 0:S.avatar,subType:(g=j==null?void 0:j.userId)==null?void 0:g.subType,rating:j==null?void 0:j.ratings,comment:j==null?void 0:j.comment,module:j==null?void 0:j.module},I)})})}),((x=s==null?void 0:s.reviews)==null?void 0:x.length)&&e.jsx("div",{className:"my-3 text-center main__Head",children:e.jsx(bs,{onClickFn:u,arg:s==null?void 0:s.reviewLink,name:"View All Reviews",cssStyle:"display-flex-aljc-center jpfiCard__six-btn-4"})})]}):e.jsx("p",{className:"profile_section_bg_desc profile_section_bg_nodata_msg",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:"No Ratings & Reviews found."})]})}):e.jsx("p",{className:"profile_section_bg_desc profile_section_bg_nodata_msg",children:"No Reviews to show."})]})})}function Ek({onClickFn:s,altText:t,imgSrc:a,cssStyle:i,arg1:n,arg2:r,name:l,imgCss:c}){const o=()=>{n&&r?s(n,r):n?s(n):s()};return e.jsx(e.Fragment,{children:e.jsxs("button",{className:i,onClick:o,children:[e.jsx("span",{children:l}),e.jsx("span",{children:a&&t&&e.jsx("img",{src:a,alt:t,className:c})})]})})}const Mk=({emptySections:s,loadProfileReview:t})=>{G(L=>L.profile);const[a,i]=b.useState(!1),n=()=>i(!a),[r,l]=b.useState(!1),c=()=>l(!r),[o,p]=b.useState(!1),h=()=>p(!o),[d,u]=b.useState(!1),m=()=>u(!d),[f,v]=b.useState(!1),N=()=>v(!f),[_,x]=b.useState(!1),j=()=>x(!_),[I,w]=b.useState(!1),y=()=>w(!I),[k,S]=b.useState(!1),g=()=>S(!k),[E,C]=b.useState(!1),T=()=>C(!E),[A,R]=b.useState(!1),P=()=>R(!A);let O=[{back:"ee",modalFn:n,modalState:a},{back:"project",modalFn:c,modalState:r},{back:"achievements",modalFn:h,modalState:o},{back:"milestone",modalFn:m,modalState:d},{back:"client",modalFn:N,modalState:f},{back:"services",modalFn:j,modalState:_},{back:"solutions",modalFn:y,modalState:I},{back:"certificateCourses",modalFn:g,modalState:k},{back:"specialistPrograms",modalFn:T,modalState:E},{back:"placements",modalFn:P,modalState:A}],M=[];for(let L=0;L<(s==null?void 0:s.length);L++)M.push({...s[L],...O.find(F=>F.back===s[L].back)});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{id:"empty",children:[e.jsx(st,{data:"Suggested for you"}),e.jsxs("section",{style:{position:"relative"},children:[e.jsx("p",{className:"text-white display-flex-aljc-center",children:"You may also add the following section(s) to your profile."}),e.jsx("div",{className:"empty_btns_div",children:M==null?void 0:M.map((L,F)=>e.jsx("div",{children:e.jsx(Ek,{onClickFn:L.modalFn,altText:L.front,imgSrc:a0,name:L.front,cssStyle:"empty_button_btn",imgCss:"empty_button_icon"})},F))})]})]}),e.jsx(qe,{open:f,onClose:N,children:e.jsx(Ie,{sx:cs,className:"footerContainer",style:{overflowY:"hidden"},children:e.jsx(r0,{handleClose:N,loadProfileReview:t})})}),e.jsx(qe,{open:a,onClose:n,children:e.jsx(Ie,{sx:cs,children:e.jsx(Yp,{handleEEModalClose:n,loadProfileReview:t})})}),e.jsx(qe,{open:r,onClose:c,children:e.jsx(Ie,{sx:cs,className:"modal__Profile",children:e.jsx(s0,{handleProjectMod
185al:c,loadProfileReview:t})})}),e.jsx(qe,{open:o,onClose:h,children:e.jsx(Ie,{sx:cs,className:"modal__Profile",children:e.jsx(n0,{handleAchievementsModal:h,loadProfileReview:t})})}),e.jsx(qe,{open:d,onClose:m,children:e.jsx(Ie,{sx:cs,className:"modal__Profile",children:e.jsx(Zp,{handleMilestoneModal:m,loadProfileReview:t})})}),e.jsx(qe,{open:_,onClose:j,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(i0,{handleServicesModal:j,loadProfileReview:t})})}),e.jsx(qe,{open:I,onClose:y,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(o0,{handleSolutionModal:y,loadProfileReview:t})})}),e.jsx(qe,{open:k,onClose:g,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(c0,{handleCourseModal:g,loadProfileReview:t})})}),e.jsx(qe,{open:E,onClose:T,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(d0,{handleSpecialModal:T,loadProfileReview:t})})}),e.jsx(qe,{open:A,onClose:P,children:e.jsx(Ie,{sx:cs,className:"profileServiceContainer",children:e.jsx(l0,{handlePlacementModal:P,loadProfileReview:t})})})]})},Pk=Mk;function h0(){var R,P,O,M,L,F,U,Z,ne,K,te,q,H,X,ee,se,ae,B,W,Q,ie,Y,pe,me,Ce,Ye,Xe,ue,Ae,Se,ve,J,D;const{gotoProfile:s}=Be(),t=ts().userUniqueId;function a($){let re=decodeURIComponent($);return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(re)}const{checkEmptySections:i}=si(),n=ge(),{errorToast:r,successToast:l,warningToast:c,errorHandle:o}=he(),{userProfile:p,loading:h}=G($=>$.profile),{user:d,userDetails:u}=G($=>$.auth),{userReview:m}=G($=>$.review),[f,v]=b.useState([]),[N,_]=b.useState(!1),[x,j]=b.useState(!1),[I,w]=b.useState({profile:p,review:((R=p==null?void 0:p.user)==null?void 0:R._id)==((P=m==null?void 0:m.ownerId)==null?void 0:P._id)?m:null}),[y,k]=b.useState({profile:p,review:m}),S=b.useCallback(async()=>{var $;try{let re=await Fv(t),{profile:oe,review:Re}=re.data,Ze=d===(($=oe==null?void 0:oe.user)==null?void 0:$._id);_(Ze),w(Oe=>({...Oe,profile:oe,review:Re}))}catch(re){o(re)}},[n,t]);let g=((M=(O=y==null?void 0:y.profile)==null?void 0:O.about)==null?void 0:M.aboutDescription)||`TickBig - ${(F=(L=y==null?void 0:y.profile)==null?void 0:L.user)==null?void 0:F.firstName} ${(Z=(U=y==null?void 0:y.profile)==null?void 0:U.user)==null?void 0:Z.lastName} - ${(K=(ne=y==null?void 0:y.profile)==null?void 0:ne.user)==null?void 0:K.subType} Profile`,E=`${(q=(te=y==null?void 0:y.profile)==null?void 0:te.user)==null?void 0:q.firstName} - ${(X=(H=y==null?void 0:y.profile)==null?void 0:H.user)==null?void 0:X.subType} Profile - TickBig`,C=nv(y),T=((ae=(se=(ee=y==null?void 0:y.profile)==null?void 0:ee.socialLink)==null?void 0:se.twitterLink)==null?void 0:ae.split("/")[4])||Zn,A={title:E,description:g,type:`profile:${(W=(B=y==null?void 0:y.profile)==null?void 0:B.user)==null?void 0:W.firstName}`,twitterusername:T,keywords:C.toString(),canonical:window.location.href,imageUrl:(ie
185=(Q=y==null?void 0:y.profile)==null?void 0:Q.user)==null?void 0:ie.avatar};return We(()=>{if(a(t)){let $=Et(t);s($)}else S(t)},[S,n,t]),We(()=>{(async()=>{var oe,Re,Ze,Oe,Ne,ze;const re=await i(I.profile,(Re=(oe=I==null?void 0:I.profile)==null?void 0:oe.user)==null?void 0:Re.subType);v(re==null?void 0:re.sectionsss),n(Pn(re==null?void 0:re.uP)),k(Te=>({...Te,profile:re.uP})),((Oe=(Ze=I==null?void 0:I.profile)==null?void 0:Ze.user)==null?void 0:Oe._id)==((ze=(Ne=I==null?void 0:I.review)==null?void 0:Ne.ownerId)==null?void 0:ze._id)?(k(Te=>({...Te,review:I==null?void 0:I.review})),n(Vi(I==null?void 0:I.review))):n(Vi(null))})()},[I,S,n,t]),e.jsx(e.Fragment,{children:((pe=(Y=y==null?void 0:y.profile)==null?void 0:Y.user)==null?void 0:pe._id)==((Ce=(me=y==null?void 0:y.review)==null?void 0:me.ownerId)==null?void 0:Ce._id)&&e.jsxs("main",{className:"profile-main-container",children:[e.jsx("section",{id:"profiletop",children:e.jsx(SS,{userProfile:y==null?void 0:y.profile,emptySections:f,itsMe:N,loadProfileReview:S})}),e.jsx("section",{children:e.jsx(kk,{userProfile:y==null?void 0:y.profile,itsMe:N,loadProfile:S})}),N&&((Xe=(Ye=y==null?void 0:y.profile)==null?void 0:Ye.user)==null?void 0:Xe.accountType)!=="Brands"&&((Ae=(ue=y==null?void 0:y.profile)==null?void 0:ue.user)==null?void 0:Ae.accountType)!=="Institutes"&&e.jsx("section",{id:"resume-section",style:{position:"relative"},children:u!=null&&u.resume?e.jsx(lS,{fileName:typeof(u==null?void 0:u.resume)=="string"?u==null?void 0:u.resume.split("/").pop():"Resume.pdf",resumeUrl:u==null?void 0:u.resume,onReplace:()=>j(!0),onRemove:()=>console.log("Remove resume")}):e.jsx(nS,{onOpenModal:()=>j(!0)})}),e.jsx(mS,{open:x,onClose:()=>j(!1)}),e.jsx("section",{id:"about",style:{position:"relative"},children:e.jsx(Ik,{userProfile:y==null?void 0:y.profile,itsMe:N,loadProfileReview:S})}),((ve=(Se=y==null?void 0:y.profile)==null?void 0:Se.user)==null?void 0:ve.accountType)==="Brands"?e.jsx(ak,{userProfile:y==null?void 0:y.profile,itsMe:N,loadProfileReview:S}):((D=(J=y==null?void 0:y.profile)==null?void 0:J.user)==null?void 0:D.accountType)==="Institutes"?e.jsx(dk,{userProfile:y==null?void 0:y.profile,itsMe:N,loadProfileReview:S}):e.jsx(JS,{userProfile:y==null?void 0:y.profile,itsMe:N,loadProfileReview:S}),N&&(f==null?void 0:f.length)>0&&e.jsx(Pk,{emptySections:f,loadProfileReview:S}),e.jsx("section",{id:"rating",style:{position:"relative"},children:e.jsx(Ak,{})}),e.jsx("section",{id:"social",style:{position:"relative"},children:e.jsx(_S,{userProfile:y==null?void 0:y.profile,loadProfileReview:S})}),e.jsx(en,{title:A==null?void 0:A.title,description:A==null?void 0:A.description,type:A==null?void 0:A.type,twitterusername:A==null?void 0:A.twitterusername,keywords:A==null?void 0:A.keywords,canonical:A==null?void 0:A.canonical,landingUrl:A==null?void 0:A.canonical,imageUrl:A==null?void 0:A.imageUrl}),(y==null?void 0:y.profile)!==null&&e.jsx(mk,{userProfile:y==null?void 0:y.profile}),e.jsx(ek,{})]})})}const Rk=Object.freeze(Object.defineProperty({__proto__:null,default:h0},Symbol.toStringTag,{value:"Module"})),u0=()=>{G(x=>x.auth);const[s,t]=b.useState(!1),[a,i]=b.useState(!1),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),{gotoHome:o,gotoLandingPage:p,gotoDefaultRoute:h}=Be(),{register:d,handleSubmit:u,formState:{errors:m},getValues:f}=Qe(),v=ge(),N=async x=>{var w,y,k,S,g;const{emailOrPhone:j,password:I}=x;try{let E={email:j.trim(),password:I,loggedInWith:Wh};i(!0);const C=await N3(E);if(console.log(C.data,"signin"),C!=null&&C.data&&(C==null?void 0:C.statusCode)===Ke){v(gv(C==null?void 0:C.data));const T=await Lv();v(xv((w=T==null?void 0:T.data)==null?void 0:w.adminsFor)),eN();let A=await Ao();const{subscriptions:R}=A==null?void 0:A.data;let P=R.map(O=>({...O,units:O.quantity}));v(go(P)),(k=(y=C==null?void 0:C.data)==null?void 0:y.userDetails)!=null&&k.defaultRoute?h((g=(S=C==null?void 0:C.data)==null?void 0:S.userDetails)==null?void 0:g.defaultRoute.toLowerCase()):o(),n("Logged In successfully")}}catch(E){console.log(E),c(E)}finally{i(!1)}},_=async()=>{const x=f("emailOrPhone");x&&localStorage.setItem("myemail",x)};return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"display-flex-aic-jcsb signIn-nav-container",children:[e.jsx("p",{children:e.jsxs(is,{to:"/",className:"text-decoration-none company-header headLink",children:["Tick",e.jsx("span",{className:"company-header-2",children:"big"})]})}),e.jsxs("p",{className:"signin__acc",children:[e.jsx("span",{className:"signin__acc2",children:" New to TickBig? "}),e.jsx(is,{to:"/signup",className:"signin_nav-signup",children:"Sign Up"})]})]}),e.jsxs("section",{className:"display-flex-aljc-center fdc signIn-container",children:[e.jsx("p",{className:"signIn-header",children:"Sign In"}),e.jsx("div",{className:"hr-line-div display-flex-aljc-center",children:e.jsx("hr",{className:"hr-line"})}),e.jsxs("section",{className:"signIn-card-container",children:[e.jsx("p",{className:"signIn-card-header",children:"Welcome Back"}),e.jsxs("form",{autoComplete:"off",onSubmit:u(N),children:[e.jsxs("div",{className:"signIn__form",children:[e.jsx("input",{className:"signIn__form__input",type:"text",name:"emailOrPhone",placeholder:"Email",style:{textTransform:"lowercase"},...d("emailOrPhone",{required:{value:!0,message:"Email is required"}})}),e.jsx("label",{className:"signIn__form__label",children:"Email"}),(m==null?void 0:m.emailOrPhone)&&e.jsx(Me,{errClass:"signIn_err",errMsg:m==null?void 0:m.emailOrPhone.message})]}),e.jsxs("div",{className:"signIn__form ",children:[e.jsx("input",{className:"signIn__form__input",type:s?"text":"password",name:"password",placeholder:"Password",...d("password",{required:{value:!0,message:"Password is required"}})}),e.jsx("label",{className:"signIn__form__label",children:"Password"}),e.jsx("div",{onClick:()=>t(x=>!x),style:{position:"absolute",right:"30px"},children:s?e.jsx("i",{className:"fa-regular fa-eye",style:{color:"#a7aaab"}}):e.jsx("i",{className:"fa-regular fa-eye-slash",style:{color:"#a7aaab"}})}),(m==null?void 0:m.password)&&m.password.type&&m.password.type==="required"&&e.jsx(Me,{errClass:"signIn_err",errMsg:m==null?void 0:m.password.message})]}),e.jsx("div",{className:"display-flex-aic-jcsb"}),e.jsx("div",{className:"signIn_wrapper",children:e.jsx("button",{type:"submit",className:"animeBtn",disabled:a,children:a?"Signing In...":"Sign In"})})]}),e.jsx("p",{className:"text-center sign__line"}),e.jsxs("p",{className:"signIn-google",onClick:_,children:[e.jsx(is,{to:"/forgotpassword",className:"signin__password",children:"Forgot Password ?"}),e.jsx("span",{className:"px-2 text-xs",role:"button",onClick:()=>{}})]})]})]}),e.jsx(et,{})]})},Lk=Object.freeze(Object.defineProperty({__proto__:null,default:u0},Symbol.toStringTag,{value:"Module"})),Wt=({handleBack:s})=>e.jsx("div",{className:"gap-2 d-flex justify-content-center align-items-center",children:e.jsxs("a",{href:"#",className:"back_button_style",onClick:s,children:[e.jsx("i",{className:"fa-solid fa-arrow-left back_icon_style"})," Back"]})}),Fk=({handleUserData:s,userData:t})=>{var w,y,k;const[a,i]=b.useState(!1),[n,r]=b.useState(!1),{register:l,formState:{errors:c},getValues:o,handleSubmit:p,watch:h,setError:d,clearErrors:u,control:m,reset:f}=Qe(),v=h("password",""),N=h("confirmPassword","");
185We(()=>{if(v.trim()&&N.trim()&&v.trim()!=N.trim()){d("confirmPassword",{type:"manual",message:"Password and confirm password doesnot match"});return}v.trim()&&N.trim()&&v.trim()==N.trim()&&u("confirmPassword")},[v,N,c]);let _=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,x=/^\+?[1-9][0-9]{7,14}$/;const j=()=>{const{emailOrPhone:S,password:g,confirmPassword:E,referalLink:C}=o();if(g!==E){d("confirmPassword",{type:"manual",message:"Password and confirm password doesnot match"});return}else u("confirmPassword");let T;isNaN(Number(S))?_.test(S.trim())?(u("emailOrPhone"),T={email:S.toLowerCase().trim(),password:g,confirmPassword:E,referalLink:C.toString(),signUpWith:Wh}):d("emailOrPhone",{type:"email",message:"Invalid Email Id"}):x.test(S)?(u("emailOrPhone"),T={mobile:S,password:g,confirmPassword:E,signUpWith:k2,referalLink:C}):d("emailOrPhone",{type:"phone",message:"Invalid Phone Number"}),T&&s(T,t.tab+1)},I=()=>{s(t.data,t.tab-1)};return e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"signup-type-header",children:(w=t==null?void 0:t.accountType)==null?void 0:w.mainRole}),e.jsx("div",{className:"hr-line-div display-flex-aljc-center",children:e.jsx("hr",{className:"hr-line"})}),e.jsxs("section",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:t.accountType.role}),e.jsxs("form",{autoComplete:"off",onSubmit:p(j),children:[e.jsxs("div",{className:"signIn__form",children:[e.jsx("input",{className:"signIn__form__input",type:"email",name:"email",placeholder:"Email",style:{textTransform:"lowercase"},...l("emailOrPhone",{required:{value:!0,message:"Email is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"signIn__form__label",children:"Email"}),(c==null?void 0:c.emailOrPhone)&&e.jsx(Me,{errClass:"signIn_err",errMsg:c==null?void 0:c.emailOrPhone.message})]}),e.jsxs("div",{className:"signIn__form",children:[e.jsx("input",{className:"signIn__form__input",type:a?"text":"password",name:"password",placeholder:"Create Password",...l("password",{required:{value:!0,message:"Password is required"},pattern:{value:cu,message:"Use 8 or more characters with a mix of letters, numbers, space & symbols"},minLength:{value:8,message:"Password is too short."},maxLength:{value:128,message:"Password length should not exceed 128 characters"}})}),e.jsx("label",{className:"signIn__form__label",children:"Create Password"}),e.jsx("div",{onClick:()=>i(S=>!S),style:{position:"absolute",right:"30px"},children:a?e.jsx("i",{className:"fa-regular fa-eye",style:{color:"#a7aaab"}}):e.jsx("i",{className:"fa-regular fa-eye-slash",style:{color:"#a7aaab"}})}),(c==null?void 0:c.password)&&e.jsx(Me,{errClass:"signIn_err",errMsg:(y=c==null?void 0:c.password)==null?void 0:y.message})]}),e.jsxs("div",{className:"signIn__form",children:[e.jsx("input",{className:"signIn__form__input",type:n?"text":"password",name:"confirmPassword",placeholder:"ConfirmPassword",...l("confirmPassword",{required:{value:!0,message:"Password confirmation is required"}})}),e.jsx("label",{className:"signIn__form__label",children:"Confirm Password"}),e.jsx("div",{onClick:()=>r(S=>!S),style:{position:"absolute",right:"30px"},children:n?e.jsx("i",{className:"fa-regular fa-eye",style:{color:"#a7aaab"}}):e.jsx("i",{className:"fa-regular fa-eye-slash",style:{color:"#a7aaab"}})}),((c==null?void 0:c.confirmPassword)||v!=N)&&e.jsx(Me,{errClass:"signIn_err",errMsg:(k=c==null?void 0:c.confirmPassword)==null?void 0:k.message})]}),e.jsxs("div",{className:"signIn__form",children:[e.jsx("input",{className:"signIn__form__input input-width-refer",type:"number",name:"referalLink",placeholder:"9876543210",style:{textTransform:"lowercase"},...l("referalLink",{pattern:{value:Bt,message:"Invalid referral contact"},minLength:{value:10,message:"Invalid referral contact"},maxLength:{value:10,message:"Invalid referral contact"}})}),e.jsx("label",{className:"signIn__form__label",children:"Referral Contact"}),(c==null?void 0:c.referalLink)&&e.jsx(Me,{errClass:"signIn_err",errMsg:c==null?void 0:c.referalLink.message}),e.jsx("div",{className:"tooltip-signup",children:e.jsx(va,{data:"Please enter the mobile number of your friend who has referred you to TickBig. E.g.: 99XXXXX999",colordata:"#a7aaab"})})]}),e.jsx("div",{className:"display-flex-aic-jcsb"}),e.jsxs("div",{className:"signIn_wrapper",children:[e.jsx("button",{type:"submit",className:"signIn_btn",children:e.jsx("div",{className:"display-flex-aljc-center icon",children:"Next"})}),e.jsx("br",{}),e.jsx(Wt,{handleBack:I})]})]})]})]})},ea=({loading:s})=>e.jsx("div",{className:"registerForm__button",children:e.jsx("button",{type:"submit",className:"cursor-pointer",disabled:s,children:s?"Processing...":"Agree & Join"})}),Bk=({userData:s,handleUserData:t,verified:a})=>{var k,S,g,E,C;const i=ge(),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),{gotoVerifyMobile:o,gotoVerifyEmail:p}=Be(),[h,d]=b.useState(!1),{register:u,formState:{errors:m},handleSubmit:f,getValues:v,control:N,reset:_}=Qe(),x=async()=>{var M,L,F;const{firstName:T,lastName:A,mobile:R,email:P}=v();let O={...s.data,subType:(M=s==null?void 0:s.accountType)==null?void 0:M.role,accountType:(L=s==null?void 0:s.accountType)==null?void 0:L.mainRole,firstName:T,lastName:A,signUpWith:(F=s==null?void 0:s.data)==null?void 0:F.signUpWith};try{if(d(!0),v("mobile")){O={...O,mobile:R};const U=await _t(O);U&&(U==null?void 0:U.statusCode)===rt&&(i(bt(U==null?void 0:U.data)),n(vt),p())}else{O={...O,email:P};const U=await _t(O);U&&(U==null?void 0:U.statusCode)===rt&&(i(bt(U==null?void 0:U.data)),n(vt),o())}}catch(U){console.log(U),c(U)}finally{_(),d(!1)}},j=()=>{_(),t(s.data,s.tab-1)},I=()=>{const{firstName:T}=v();if(!(T!=null&&T.trim()))return"Invalid FirstName."},w=()=>{const{lastName:T}=v();if(!(T!=null&&T.trim()))return"Invalid Lastname."},y=()=>{const{institutionName:T}=v();if(!(T!=null&&T.trim()))return"Invalid Institution name."};return e.jsx(e.Fragment,{children:h?e.jsx(os,{}):e.jsxs("main",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:"Students"}),e.jsxs("form",{autoComplete:"off",onSubmit:f(x),children:[e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"FirstName",className:"ud__form__input",placeholder:"First Name",...u("firstName",{required:{value:!0,message:"Your first name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed."},minLength:{value:1,message:"Name is very short."},maxLength:{value:20,message:"Name should not exceed 20 letters."},valudate:I})}),e.jsx("label",{className:"ud__form__label",children:"First Name"}),(m==null?void 0:m.firstName)&&e.jsx(Me,{errClass:"ud_err",errMsg:m==null?void 0:m.firstName.message})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"LastName",className:"ud__form__input",placeholder:"Last Name",...u("lastName",{required:{value:!0,message:"Your last name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed."},minLength:{value:1,message:"last name is very short."},maxLength:{value:20,message:"Last Name should not exceed 20 letters."},valudate:w})}),e.jsx("label",{className:"ud__form__label",children:"Last Name"}),(m==null?void 0:m.lastName)&&e.jsx(Me,{errClass:"ud_err",errMsg:m==null?void 0:m.lastName.message})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"institutionName",className:"ud__form__input",placeholder:"School or 
185College",...u("institutionName",{required:{value:!0,message:"Your school/college name is required"},valudate:y})}),e.jsx("label",{className:"ud__form__label",children:"School or College"}),(m==null?void 0:m.institutionName)&&e.jsx(Me,{errMsg:(k=m==null?void 0:m.institutionName)==null?void 0:k.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[s.data&&((S=s==null?void 0:s.data)!=null&&S.mobile)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"tel",name:"phoneNumber",placeholder:"Mobile",className:"ud__form__input",disabled:!0,defaultValue:(g=s.data)==null?void 0:g.mobile}),e.jsx("label",{className:"ud__form__label",children:"Mobile"})]}):e.jsx(e.Fragment,{children:e.jsx(xe,{name:"mobile",control:N,render:({field:T})=>e.jsx(Zt,{...T,placeholder:"Mobile",defaultCountry:"IN",international:!0}),rules:{required:{value:!0,message:"Mobile number is required"},maxLength:{value:18,message:"Invalid Mobile Number"}}})}),(m==null?void 0:m.mobile)&&e.jsx(Me,{errMsg:m==null?void 0:m.mobile.message,errClass:"mobile_no_err"})]}),e.jsx("div",{className:"ud__form",children:s.data&&((E=s==null?void 0:s.data)!=null&&E.email)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",disabled:!0,defaultValue:(C=s.data)==null?void 0:C.email}),e.jsx("label",{className:"ud__form__label",children:"Email"})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",style:{textTransform:"lowercase"},placeholder:"Email",...u("email",{required:{value:!0,message:"Email is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"ud__form__label",children:"Email"}),(m==null?void 0:m.email)&&e.jsx(Me,{errClass:"ud_err",errMsg:m==null?void 0:m.email.message})]})}),e.jsx(ea,{loading:h}),e.jsx(Wt,{handleBack:j})]})]})})},Ia=()=>e.jsx(e.Fragment,{children:e.jsx("div",{className:"student_form-content",children:e.jsxs("p",{children:["By clicking Agree & Join, you agree to the Tickbig"," ",e.jsx("span",{children:"User Agreement, Privacy Policy,"})," and ",e.jsx("span",{children:"Cookie Policy."})]})})}),Ok=({userData:s,handleUserData:t,verified:a})=>{var y,k,S;const i=ge(),{gotoVerifyMobile:n,gotoVerifyEmail:r}=Be(),{successToast:l,warningToast:c,errorToast:o,errorHandle:p}=he(),[h,d]=b.useState(!1),{register:u,control:m,formState:{errors:f},handleSubmit:v,getValues:N,reset:_}=Qe(),x=async()=>{var R;const{firstName:g,lastName:E,mobile:C,email:T}=N();let A={...s.data,subType:s.accountType.role,accountType:s.accountType.mainRole,firstName:g,lastName:E,signUpWith:(R=s==null?void 0:s.data)==null?void 0:R.signUpWith};try{if(d(!0),N("mobile")){A={...A,mobile:C};const P=await _t(A);P&&(P==null?void 0:P.statusCode)===rt&&(i(bt(P==null?void 0:P.data)),l(vt),d(!1),r())}else{A={...A,email:T};const P=await _t(A);P&&(P==null?void 0:P.statusCode)===rt&&(i(bt(P==null?void 0:P.data)),l(vt),d(!1),n())}}catch(P){console.log(P),p(P),d(!1),_()}},j=()=>{_(),t(s.data,s.tab-1)},I=()=>{const{firstName:g}=N();if(!(g!=null&&g.trim()))return"Invalid Firstname."},w=()=>{const{lastName:g}=N();if(!(g!=null&&g.trim()))return"Invalid Lastname."};return e.jsx(e.Fragment,{children:h?e.jsx(os,{}):e.jsxs("main",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:"Professionals"}),e.jsxs("form",{autoComplete:"off",onSubmit:v(x),children:[e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"FirstName",className:"ud__form__input",placeholder:"First Name",...u("firstName",{required:{value:!0,message:"Your first name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed."},minLength:{value:1,message:"Name is very short."},maxLength:{value:20,message:"Name should not exceed 20 letters."},validate:I})}),e.jsx("label",{className:"ud__form__label",children:"First Name"}),(f==null?void 0:f.firstName)&&e.jsx(Me,{errClass:"ud_err",errMsg:f==null?void 0:f.firstName.message})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"LastName",className:"ud__form__input",placeholder:"Last Name",...u("lastName",{required:{value:!0,message:"Your last name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed."},minLength:{value:1,message:"last name is very short."},maxLength:{value:20,message:"Last Name should not exceed 20 letters."},validate:w})}),e.jsx("label",{className:"ud__form__label ",children:"Last Name"}),(f==null?void 0:f.lastName)&&e.jsx(Me,{errClass:"ud_err",errMsg:f==null?void 0:f.lastName.message})]}),e.jsxs("div",{className:"ud__form",children:[s.data&&((y=s==null?void 0:s.data)!=null&&y.mobile)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"tel",name:"phoneNumber",className:"ud__form__input",placeholder:"Mobile",disabled:!0,defaultValue:(k=s.data)==null?void 0:k.mobile}),e.jsx("label",{className:"ud__form__label",children:"Mobile"})]}):e.jsx(e.Fragment,{children:e.jsx(xe,{name:"mobile",control:m,render:({field:g})=>e.jsx(Zt,{...g,placeholder:"Mobile",defaultCountry:"IN",international:!0}),rules:{required:{value:!0,message:"Mobile number is required"},maxLength:{value:18,message:"Invalid Mobile Number"}}})}),(f==null?void 0:f.mobile)&&e.jsx(Me,{errMsg:f==null?void 0:f.mobile.message,errClass:"mobile_no_err"})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{defaultValue:(S=s==null?void 0:s.data)==null?void 0:S.email,className:"ud__form__input",disabled:!0}),e.jsx("label",{className:"ud__form__label",children:"Email"})]}),e.jsx(Ia,{}),e.jsx(ea,{}),e.jsx(Wt,{handleBack:j})]})]})})},Uk=({userData:s,handleUserData:t,verified:a})=>{var y,k,S,g;const i=ge(),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),{gotoVerifyMobile:o,gotoVerifyEmail:p}=Be(),[h,d]=b.useState(!1),{register:u,formState:{errors:m},handleSubmit:f,getValues:v,control:N,reset:_}=Qe(),x=async()=>{var O;const{firstName:E,lastName:C,mobile:T,email:A,signUpWith:R}=v();let P={...s.data,subType:s.accountType.role,accountType:s.accountType.mainRole,firstName:E,lastName:C,signUpWith:(O=s==null?void 0:s.data)==null?void 0:O.signUpWith,verified:!1};if(v("mobile")){P={...P,mobile:T};try{d(!0);const M=await _t(P);M&&(M==null?void 0:M.statusCode)===rt&&(i(bt(M==null?void 0:M.data)),n(vt),d(!1),p())}catch(M){c(M),d(!1),_()}}else{P={...P,email:A==null?void 0:A.trim()};try{const M=await _t(P);M&&(M==null?void 0:M.statusCode)===rt&&(i(bt(M==null?void 0:M.data)),n(vt),o())}catch(M){_(),c(M)}}},j=()=>{_(),t(a,s.tab-1)},I=()=>{const{firstName:E}=v();if(!(E!=null&&E.trim()))return"Invalid Firstname."},w=()=>{const{lastName:E}=v();if(!(E!=null&&E.trim()))return"Invalid Lastname."};return e.jsx(e.Fragment,{children:h?e.jsx(os,{}):e.jsxs("main",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:"Freelancer"}),e.jsxs("form",{autoComplete:"off",onSubmit:f(x),children:[e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"FirstName",className:"ud__form__input",placeholder:"First Name",...u("firstName",{required:{value:!0,message:"Your first name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed."},minLength:{value:1,message:"Name is very short."},maxLength:{value:20,message:"Name should not exceed 20 letters."},validate:I})}),e.jsx("label",{className:"ud__form__label",children:"First Name"}),(m==null?void 0:m.firstName)&&e.jsx(Me,{errClass:"ud_err",errMsg:m==null?void 0:m.firstName.message})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"LastName",placeholder:"Last Name",className:"ud__form__input",...u("lastName",{required:{value:!0,message:"Your last name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed."},minLength:{value:1,message:"last name is very short."},maxLength:{value:20,message:"Last Name should not exceed 20 letters."},validate:w})}),e.jsx("label",{className:"ud__form__label",children:"Last Name"}),(m==null?void 0:m.lastName)&&e.jsx(Me,{errClass:"ud_err",errMsg:m==null?void 0:m.lastName.message})]}),e.jsxs("div",{className:"ud__form",children:[s.data&&((y=s==null?void 0:s.data)!=null&&y.mobile)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"tel",name:"phoneNumber",className:"ud__form__input",placeholder:"Mobile",disabled:!0,defaultValue:(k=s.data)==null?void 0:k.mobile}),e.jsx("label",{className:"ud__form__label",children:"Mobile"})]}):e.jsx(e.Fragment,{children:e.jsx(xe,{name:"mobile",control:N,render:({field:E})=>e.jsx(Zt,{...E,placeholder:"Mobile",defaultCountry:"IN",international:!0}),rules:{required:{value:!0,message:"Mobile number is required"},maxLength:{value:18,message:"Invalid Mobile Number"}}})}),(m==null?void 0:m.mobile)&&e.jsx(Me,{errMsg:m==null?void 0:m.mobile.message,errClass:"mobile_no_err"})]}),e.jsx("div",{className:"ud__form",children:s.data&&((S=s==null?void 0:s.data)!=null&&S.email)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",disabled:!0,defaultValue:(g=s.data)==null?void 0:g.email}),e.jsx("label",{className:"ud__form__label",children:"Email"})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",...u("email",{required:{value:!0,message:"Email Id is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"ud__form__label",children:"Email"}),(m==null?void 0:m.email)&&e.jsx(Me,{errClass:"signIn_err",errMsg:m==null?void 0:m.email.message})]})}),e.jsx(Ia,{}),e.jsx(ea,{}),e.jsx(Wt,{handleBack:j})]})]})})},Dk=({userData:s,verified:t,handleUserData:a})=>{var y,k,S,g,E;const{successToast:i,warningToast:n,errorToast:r,errorHandle:l}=he(),{gotoVerifyMobile:c,gotoVerifyEmail:o}=Be(),p=ge(),{register:h,formState:{errors:d},handleSubmit:u,getValues:m,control:f,reset:v}=Qe(),[N,_]=b.useState(!1),x=async()=>{const{firstName:C,lastName:T,email:A,mobile:R}=m();let P={...s.data,subType:s.accountType.role,accountType:s.accountType.mainRole,firstName:C,lastName:T,mobile:R};
185try{_(!0);const O=await _t(P);O&&(O==null?void 0:O.statusCode)===rt&&(p(bt(O==null?void 0:O.data)),i(vt),_(!1),o())}catch(O){l(O),_(!1),v()}},j=()=>{v(),a(s.data,s.tab-1)},I=()=>{const{firstName:C}=m();if(!(C!=null&&C.trim()))return"Invalid User Name."},w=()=>{const{lastName:C}=m();if(!(C!=null&&C.trim()))return"Invalid Brand Name."};return e.jsx(e.Fragment,{children:N?e.jsx(os,{}):e.jsxs("main",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:"Homegrown"}),e.jsxs("form",{autoComplete:"off",onSubmit:u(x),children:[e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"FirstName",placeholder:"User Name",className:"ud__form__input",...h("firstName",{required:{value:!0,message:"User Name is required"},pattern:{value:yl,message:"Invalid User Name."},minLength:{value:2,message:"User Name is very short."},maxLength:{value:60,message:"User Name should not exceed 60 letters."},validate:I})}),e.jsx("label",{className:"ud__form__label",children:"User Name"}),(d==null?void 0:d.firstName)&&e.jsx(Me,{errClass:"ud_err",errMsg:d==null?void 0:d.firstName.message})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"LastName",className:"ud__form__input",placeholder:"Brand Name",...h("lastName",{required:{value:!0,message:"Brand Name is required"},pattern:{value:yl,message:"Invalid Brand Name."},minLength:{value:2,message:"Brand Name is very short."},maxLength:{value:45,message:"Brand Name should not exceed 45 letters."},validate:w})}),e.jsx("label",{className:"ud__form__label",children:"Brand Name"}),(d==null?void 0:d.lastName)&&e.jsx(Me,{errMsg:(y=d==null?void 0:d.lastName)==null?void 0:y.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[s.data&&((k=s==null?void 0:s.data)!=null&&k.mobile)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"tel",name:"phoneNumber",className:"ud__form__input",placeholder:"Mobile",disabled:!0,defaultValue:(S=s.data)==null?void 0:S.mobile}),e.jsx("label",{className:"ud__form__label",children:"Mobile"})]}):e.jsx(e.Fragment,{children:e.jsx(xe,{name:"mobile",control:f,render:({field:C})=>e.jsx(Zt,{...C,placeholder:"Mobile",defaultCountry:"IN",international:!0}),rules:{required:{value:!0,message:"Mobile number is required"},maxLength:{value:18,message:"Invalid Mobile Number"}}})}),(d==null?void 0:d.mobile)&&e.jsx(Me,{errMsg:d==null?void 0:d.mobile.message,errClass:"mobile_no_err"})]}),e.jsx("div",{className:"ud__form",children:s.data&&((g=s==null?void 0:s.data)!=null&&g.email)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",disabled:!0,defaultValue:(E=s.data)==null?void 0:E.email}),e.jsx("label",{className:"ud__form__label",children:"Email"})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",...h("email",{required:{value:!0,message:"Email Id is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"ud__form__label",children:"Email"}),(d==null?void 0:d.email)&&e.jsx(Me,{errClass:"signIn_err",errMsg:d==null?void 0:d.email.message})]})}),e.jsx(Ia,{}),e.jsx(ea,{}),e.jsx(Wt,{handleBack:j})]})]})})},qk=({userData:s,verified:t,handleUserData:a})=>{var y,k,S,g,E,C;const i=ge(),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),{gotoVerifyMobile:o,gotoVerifyEmail:p}=Be(),[h,d]=b.useState(!1),{register:u,formState:{errors:m},getValues:f,control:v,handleSubmit:N,reset:_}=Qe(),x=async()=>{const{companyName:T,brandName:A,email:R,mobile:P}=f();let O={...s.data,subType:s.accountType.role,accountType:s.accountType.mainRole,firstName:A,lastName:T,mobile:P};try{d(!0);const M=await _t(O);M&&(M==null?void 0:M.statusCode)===rt&&(i(bt(M==null?void 0:M.data)),n(vt),d(!1),p())}catch(M){c(M),d(!1),_()}},j=()=>{_(),a(s.data,s.tab-1)},I=()=>{const{companyName:T}=f();if(!(T!=null&&T.trim())||!isNaN(T))return"Invalid Company Name."},w=()=>{const{brandName:T}=f();if(!(T!=null&&T.trim())||!isNaN(T))return"Invalid User Name."};return e.jsx(e.Fragment,{children:h?e.jsx(os,{}):e.jsxs("main",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:"Registered"}),e.jsxs("form",{autoComplete:"off",onSubmit:N(x),children:[e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"companyName",placeholder:"Company Name",className:"ud__form__input",...u("companyName",{required:{value:!0,message:"Your Company name is required"},minLength:{value:1,message:"Name is very short."},maxLength:{value:60,message:"Name should not exceed 60 letters."},validate:I})}),e.jsx("label",{className:"ud__form__label",children:"Registered Name"}),(m==null?void 0:m.companyName)&&e.jsx(Me,{errMsg:(y=m==null?void 0:m.companyName)==null?void 0:y.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"brandName",className:"ud__form__input",placeholder:"User Name",...u("brandName",{required:{value:!0,message:"Your User name is required"},minLength:{value:1,message:"User name is very short"},maxLength:{value:45,message:"User Name should not exceed 45 characters"},validate:w})}),e.jsx("label",{className:"ud__form__label",children:"User Name"}),(m==null?void 0:m.brandName)&&e.jsx(Me,{errMsg:(k=m==null?void 0:m.brandName)==null?void 0:k.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[s.data&&((S=s==null?void 0:s.data)!=null&&S.mobile)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"tel",name:"phoneNumber",className:"ud__form__input",placeholder:"Mobile",disabled:!0,defaultValue:(g=s.data)==null?void 0:g.mobile}),e.jsx("label",{className:"ud__form__label",children:"Mobile"})]}):e.jsx(e.Fragment,{children:e.jsx(xe,{name:"mobile",control:v,render:({field:T})=>e.jsx(Zt,{...T,placeholder:"Mobile",defaultCountry:"IN",international:!0}),rules:{required:{value:!0,message:"Mobile number is required"},maxLength:{value:18,message:"Invalid Mobile Number"}}})}),(m==null?void 0:m.mobile)&&e.jsx(Me,{errMsg:m==null?void 0:m.mobile.message,errClass:"mobile_no_err"})]}),e.jsx("div",{className:"ud__form",children:s.data&&((E=s==null?void 0:s.data)!=null&&E.email)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",disabled:!0,defaultValue:(C=s.data)==null?void 0:C.email}),e.jsx("label",{className:"ud__form__label",children:"Email"})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",...u("email",{required:{value:!0,message:"Email Id is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"ud__form__label",children:"Email"}),(m==null?void 0:m.email)&&e.jsx(Me,{errClass:"signIn_err",errMsg:m==null?void 0:m.email.message})]})}),e.jsx(Ia,{}),e.jsx(ea,{}),e.jsx(Wt,{handleBack:j})]})]})})},Vk=({userData:s,verified:t,handleUserData:a})=>{var y,k,S,g,E,C;const i=ge(),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),{gotoVerifyMobile:o,gotoVerifyEmail:p}=Be(),[h,d]=b.useState(!1),{register:u,formState:{errors:m},handleSubmit:f,getValues:v,control:N,reset:_}=Qe(),x=async()=>{var M,L,F;const{collegeName:T,registeredName:A,mobile:R,email:P}=v();let O={...s.data,subType:s.accountType.role,accountType:s.accountType.mainRole,firstName:T,lastName:A,mobile:((M=s==null?void 0:s.data)==null?void 0:M.mobile)||R,email:((F=(L=s==null?void 0:s.data)==null?void 0:L.email)==null?void 0:F.trim())||(P==null?void 0:P.trim())};try{d(!0);const U=await _t(O);U&&(U==null?void 0:U.statusCode)===rt&&(i(bt(U==null?void 0:U.data)),n(vt),d(!1),p())}catch(U){c(U),d(!1),_()}},j=()=>{_(),a(s.data,s.tab-1)},I=()=>{const{collegeName:T}=v();if(!(T!=null&&T.trim()))return"Invalid College Name."},w=()=>{const{registeredName:T}=v();if(!(T!=null&&T.trim()))return"Invalid Registered Name."};return e.jsx(e.Fragment,{children:h?e.jsx(os,{}):e.jsxs("main",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:"College"}),e.jsxs("form",{autoComplete:"off",onSubmit:f(x),children:[e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"RegisteredName",className:"ud__form__input",placeholder:"Registered Name",...u("registeredName",{required:{value:!0,message:"College registered name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed"},minLength:{value:1,message:"last name is very short"},maxLength:{value:60,message:"Last Name should not exceed 60 characters"},validate:w})}),e.jsx("label",{className:"ud__form__label",children:"Registered Name"}),(m==null?void 0:m.registeredName)&&e.jsx(Me,{errMsg:(y=m==null?void 0:m.registeredName)==null?void 0:y.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"CollegeName",className:"ud__form__input",placeholder:"User Name",...u("collegeName",{required:{value:!0,message:"Your User Name is required"},pattern:{value:js,message:"Only alphabets & spaces are allowed."},minLength:{value:1,message:"User Name is very short."},maxLength:{value:45,message:"User Name should not exceed 45 letters."},validate:I})}),e.jsx("label",{className:"ud__form__label",children:"User Name"}),(m==null?void 0:m.collegeName)&&e.jsx(Me,{errMsg:(k=m==null?void 0:m.collegeName)==null?void 0:k.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[s.data&&((S=s==null?void 0:s.data)!=null&&S.mobile)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"tel",name:"phoneNumber",className:"ud__form__input",placeholder:"Mobile",disabled:!0,defaultValue:(g=s.data)==null?void 0:g.mobile}),e.jsx("label",{className:"ud__form__label",children:"Mobile"})]}):e.jsx(e.Fragment,{children:e.jsx(xe,{name:"mobile",control:N,render:({field:T})=>e.jsx(Zt,{...T,placeholder:"Mobile",defaultCountry:"IN",international:!0}),rules:{required:{value:!0,message:"Mobile number is required"},maxLength:{value:18,message:"Invalid Mobile Number"}}})}),(m==null?void 0:m.mobile)&&e.jsx(Me,{errMsg:m==null?void 0:m.mobile.message,errClass:"mobile_no_err"})]}),e.jsx("div",{className:"ud__form",children:s!=null&&s.data&&((E=s==null?void 0:s.data)!=null&&E.email)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"text",name:"email",className:"ud__form__input",placeholder:"Email",disabled:!0,defaultValue:(C=s==null?void 0:s.data)==null?void 0:C.email}),e.jsx("label",{className:"ud__form__label",children:"Email"})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",...u("email",{required:{value:!0,message:"Email Id is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"ud__form__label",children:"Email"}),(m==null?void 0:m.email)&&e.jsx(Me,{errClass:"signIn_err",errMsg:m==null?void 0:m.email.message})]})}),e.jsx(Ia,{}),e.jsx(ea,{}),e.jsx(Wt,{handleBack:j})]})]})})},zk=({userData:s,handleUserData:t,verified:a})=>{var y,k,S,g,E,C;const i=ge(),{successToast:n,warningToast:r,errorToast:l,errorHandle:c}=he(),{gotoVerifyMobile:o,gotoVerifyEmail:p}=Be(),[h,d]=b.useState(!1),{register:u,formState:{errors:m},handleSubmit:f,getValues:v,control:N,reset:_}=Qe(),x=async()=>{var M,L;const{instituteName:T,registeredName:A,email:R,mobile:P}=v();let O={...s.data,subType:s.accountType.role,accountType:s.accountType.mainRole,firstName:T,lastName:A,mobile:((M=s==null?void 0:s.data)==null?void 0:M.mobile)||P,email:((L=s==null?void 0:s.data)==null?void 0:L.email)||R};try{d(!0);const F=await _t(O);F&&(F==null?void 0:F.statusCode)===rt&&(i(bt(F==null?void 0:F.data)),n(vt),d(!1),p())}catch(F){c(F),d(!1),_()}},j=()=>{_(),t(s.data,s.tab-1)},I=()=>{const{instituteName:T}=v();if(!(T!=null&&T.trim()))return"Invalid Institute Name."},w=()=>{const{registeredName:T}=v();if(!T.trim())return"Invalid Registered Name."};return e.jsx(e.Fragment,{children:h?e.jsx(os,{}):e.jsxs("main",{className:"form-card-container",children:[e.jsx("p",{className:"Form__title",children:"Training Institute"}),e.jsxs("form",{autoComplete:"off",onSubmit:f(x),children:[e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"RegisteredName",className:"ud__form__input",placeholder:"Registered Name",...u("registeredName",{required:{value:!0,message:"Your registered name is required"},minLength:{value:1,message:"Last name is very short"},maxLength:{value:60,message:"Last Name should not exceed 60 characters"},validate:w})}),e.jsx("label",{className:"ud__form__label",children:"Registered Name"}),(m==null?void 0:m.registeredName)&&e.jsx(Me,{errMsg:(y=m==null?void 0:m.registeredName)==null?void 0:y.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[e.jsx("input",{type:"text",name:"InstituteName",className:"ud__form__input",placeholder:"User Name",...u("instituteName",{required:{value:!0,message:"Your User name is required"},minLength:{value:1,message:"User namea is very short"},maxLength:{value:45,message:"User name should not exceed 45 characters"},validate:I})}),e.jsx("label",{className:"ud__form__label",children:"User Name"}),(m==null?void 0:m.instituteName)&&e.jsx(Me,{errMsg:(k=m==null?void 0:m.instituteName)==null?void 0:k.message,errClass:"ud_err"})]}),e.jsxs("div",{className:"ud__form",children:[s.data&&((S=s==null?void 0:s.data)!=null&&S.mobile)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"tel",name:"phoneNumber",className:"ud__form__input",placeholder:"Mobile",disabled:!0,defaultValue:(g=s.data)==null?void 0:g.mobile}),e.jsx("label",{className:"ud__form__label",children:"Mobile"})]}):e.jsx(e.Fragment,{children:e.jsx(xe,{name:"mobile",control:N,render:({field:T})=>e.jsx(Zt,{...T,placeholder:"Mobile",defaultCountry:"IN",international:!0}),rules:{required:{value:!0,message:"Mobile number is required"},maxLength:{value:18,message:"Invalid Mobile Number"}}})}),(m==null?void 0:m.mobile)&&e.jsx(Me,{errMsg:m==null?void 0:m.mobile.message,errClass:"mobile_no_err"})]}),e.jsx("div",{className:"ud__form",children:s.data&&((E=s==null?void 0:s.data)!=null&&E.email)?e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",disabled:!0,defaultValue:(C=s.data)==null?void 0:C.email}),e.jsx("label",{className:"ud__form__label",children:"Email"})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"email",name:"email",className:"ud__form__input",placeholder:"Email",...u("email",{required:{value:!0,message:"Email is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"ud__form__label",children:"Email"}),(m==null?void 0:m.email)&&e.jsx(Me,{errClass:"ud_err",errMsg:m==null?void 0:m.email.message})]})}),e.jsx(Ia,{}),e.jsx(ea,{}),e.jsx(Wt,{handleBack:j})]})]})})},Wk=({userData:s,handleUserData:t})=>{var f;const{successToast:a,warningToast:i,errorToast:n,errorHandle:r}=he(),[l,c]=b.useState(!1),[o,p]=b.useState(""),[h,d]=b.useState({isUserVerified:!1,firstOtpSent:!1,resendOtpSent:!1}),u=async v=>{var _;const N=v.target.value;if((N==null?void 0:N.length)===6){let x;x=await Yu({otp:N,email:o}),(_=x==null?void 0:x.data)!=null&&_.userVerified&&(d({...h,isUserVerified:!0,firstOtpSent:!1,resendOtpSent:!1}),a("OTP verified successfully"),c(!l))}},m=v=>{switch(v){case"Professional":return e.jsx(Ok,{userEmail:o,setUserEmail:p,verified:h,setVerified:d,userData:s,handleOtpEntered:u,otpModel:l,setOtpModel:c,handleUserData:t});case"Student":return e.jsx(Bk,{otpModel:l,setOtpModel:c,verified:h,setVerified:d,userData:s,handleUserData:t,handleOtpEntered:u});case"Freelancer":return e.jsx(Uk,{otpModel:l,setOtpModel:c,verified:h,setVerified:d,userData:s,handleOtpEntered:u,handleUserData:t});case"Homegrown Company":return e.jsx(Dk,{otpModel:l,setOtpModel:c,verified:h,setVerified:d,userData:s,handleOtpEntered:u,handleUserDat
185a:t});case"Registered Company":return e.jsx(qk,{otpModel:l,setOtpModel:c,verified:h,setVerified:d,userData:s,handleOtpEntered:u,handleUserData:t});case"College":return e.jsx(Vk,{otpModel:l,setOtpModel:c,verified:h,setVerified:d,userData:s,handleOtpEntered:u,handleUserData:t});case"Training Institute":return e.jsx(zk,{otpModel:l,setOtpModel:c,verified:h,setVerified:d,handleOtpEntered:u,userData:s,handleUserData:t})}};return e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"signup-type-header",children:(f=s==null?void 0:s.accountType)==null?void 0:f.mainRole}),e.jsx("div",{className:"hr-line-div display-flex-aljc-center",children:e.jsx("hr",{className:"hr-line"})}),e.jsx("section",{children:m(s.accountType.role)})]})},Li=Ob,Fi=Ub,Bi=Db,p0=()=>{const[s,t]=b.useState(!1),[a,i]=b.useState(!1),[n,r]=b.useState("Choose your category"),[l,c]=b.useState(!1),[o,p]=b.useState({tab:1,data:{},accountType:{mainRole:"",role:""}});b.useEffect(()=>{sN()},[]);const h=()=>{i(!a),t(!s)},d=(f,v)=>o.tab===f?v:"",u=({target:{value:f}})=>{p({...o,accountType:{...o.accountType,mainRole:f}}),i(!1),t(!1),c(!0),r("Choose your category")},m=(f={},v)=>{let N;o.tab>v?N={...o,data:{...f},tab:v}:o.tab<v&&(N={...o,data:{...o==null?void 0:o.data,...f},tab:v}),p(N)};return e.jsxs(e.Fragment,{children:[e.jsx(Ro,{}),e.jsxs("section",{className:"display-flex-aljc-center signup-container",children:[e.jsxs("section",{className:`content ${d(1,"fdc active-content")}`,children:[e.jsx("p",{className:"signup-type-header",children:"Account Type"}),e.jsx("div",{className:"hr-line-div display-flex-aljc-center",children:e.jsx("hr",{className:"hr-line"})}),e.jsxs("div",{className:"display-flex-aljc-center",children:[e.jsx("button",{onClick:u,id:"green",name:"Individuals",value:"Individuals",className:o.accountType.mainRole==="Individuals"?"display-flex-aljc-center signup-category-active":"display-flex-aljc-center signup-category-1",children:"Individual"}),e.jsx("button",{onClick:u,id:"green",name:"Brands",value:"Brands",className:o.accountType.mainRole==="Brands"?"display-flex-aljc-center signup-category-active":"display-flex-aljc-center signup-category-1",children:"Company"}),e.jsx("button",{onClick:u,id:"green",name:"Institutes",value:"Institutes",className:o.accountType.mainRole==="Institutes"?"display-flex-aljc-center signup-category-active":"display-flex-aljc-center signup-category-1",children:"Institution"})]}),l===!0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"signup__dropdown",children:[e.jsxs("div",{className:s?"display-flex-aic-jcsb signup__dropdown-btn2":"display-flex-aic-jcsb signup__dropdown-btn",onClick:h,children:[n,e.jsx("span",{onClick:h,children:e.jsx(Xi,{className:s?"signup__arrowdrop":"signup__arrowdrop2"})})]}),a&&e.jsx("div",{className:"signup__dropdown-content",onClick:h,children:o.accountType.mainRole==="Individuals"?Li==null?void 0:Li.map((f,v)=>e.jsx("div",{onClick:N=>{r(f),i(!1),p({...o,accountType:{...o.accountType,role:f}})},className:"signup__dropdown-item",children:f},v)):o.accountType.mainRole==="Brands"?Fi==null?void 0:Fi.map((f,v)=>e.jsx("div",{onClick:N=>{r(f),i(!1),p({...o,accountType:{...o.accountType,role:f}})},className:"signup__dropdown-item",children:f},v)):o.accountType.mainRole==="Institutes"?Bi==null?void 0:Bi.map((f,v)=>e.jsx("div",{onClick:N=>{r(f),i(!1),p({...o,accountType:{...o.accountType,role:f}})},className:"signup__dropdown-item",children:f},v)):""})]}),n!=="Choose your category"||n===""?e.jsx(e.Fragment,{children:e.jsx("div",{className:"display-flex-aljc-center",children:e.jsx("button",{onClick:()=>{p({...o,tab:o.tab+1})},className:"signup__button",children:"Next"})})}):null]}):null]}),e.jsx("section",{className:`content ${d(2,"fdc active-content")}`,children:e.jsx(Fk,{userData:o,handleUserData:m})}),e.jsx("section",{className:`content ${d(3,"fdc active-content")}`,children:e.jsx(Wk,{userData:o,handleUserData:m})})]}),e.jsx(et,{})]})},$k=Object.freeze(Object.defineProperty({__proto__:null,default:p0},Symbol.toStringTag,{value:"Module"})),Dc=async({email:s})=>z.post(gf,{email:s}).then(t=>t.data).catch(t=>{throw t}),Hk=async({email:s,otp:t})=>z.post(xf,{email:s,otp:t}).then(a=>a.data).catch(a=>{throw a}),Gk=async({email:s,password:t})=>z.post(ff,{email:s,password:t}).then(a=>a.data).catch(a=>{throw a}),Jk=({email:s})=>{var w,y;const[t,a]=b.useState(!1),[i,n]=b.useState(!1),{gotoSignIn:r}=Be(),{successToast:l,errorToast:c,errorHandle:o}=he(),[p,h]=b.useState(!1);b.useEffect(()=>{const k=setTimeout(()=>{c("Session expired. Please start the process again."),setTimeout(()=>{window.location.reload()},3e3)},9e5);return()=>clearTimeout(k)},[]);const{register:d,getValues:u,handleSubmit:m,setError:f,clearErrors:v,formState:{errors:N},watch:_}=Qe(),x=_("password",""),j=_("confirmPassword","");
185We(()=>{if(x.trim()&&j.trim()&&x.trim()!=j.trim()){f("confirmPassword",{type:"manual",message:"Password and confirm password doesnot match"});return}x.trim()&&j.trim()&&x.trim()==j.trim()&&v("confirmPassword")},[x,j,N]);const I=async k=>{const{password:S,confirmPassword:g}=k;let E;try{if(S!==g){f("confirmPassword",{type:"manual",message:"Password and confirm password doesnot match"});return}else v("confirmPassword");h(!0),E=await Gk({email:s,password:S}),E&&(E==null?void 0:E.statusCode)===Ke&&(l("Password changed successfully"),setTimeout(()=>{r()},2e3))}catch(C){o(C)}finally{h(!1)}};return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"display-flex-aljc-center fdc forgot__main",children:[e.jsx("p",{className:"forgot__title",children:"Set New Password"}),e.jsx("div",{className:"forgot__container",children:e.jsx("hr",{className:"forgot__border"})}),e.jsxs("div",{className:"fdc forgot-card-container",children:[e.jsx("p",{className:"forgot__entermail",children:"Please make sure to use 8 or more characters with a mix of letters, numbers, space & symbols."}),e.jsx("p",{style:{color:"var(--text-color-secondary)",fontSize:"13px",textAlign:"center",marginBottom:"15px"},children:"Note: This page will expire in 15 minutes."}),e.jsxs("form",{autoComplete:"off",className:"display-flex-aljc-center fdc",onSubmit:m(I),children:[e.jsxs("div",{className:"forgot__form",children:[e.jsx("input",{type:t?"text":"password",name:"password",placeholder:"password",className:"forgot__form__input",...d("password",{required:{value:!0,message:"password is required"},pattern:{value:cu,message:"Use 8 or more characters with a mix of letters,numbers,space & symbols"},minLength:{value:8,message:"Password is too short."},maxLength:{value:128,message:"Password length should not exceed 128 characters"}})}),e.jsx("label",{className:"forgot__form__label",children:"New Password"}),e.jsx("div",{onClick:()=>a(k=>!k),style:{position:"absolute",right:"30px"},children:t?e.jsx("i",{className:"fa-regular fa-eye",style:{color:"#a7aaab"}}):e.jsx("i",{className:"fa-regular fa-eye-slash",style:{color:"#a7aaab"}})}),(N==null?void 0:N.password)&&e.jsx(Me,{errClass:"forgot_err",errMsg:(w=N==null?void 0:N.password)==null?void 0:w.message})]}),e.jsxs("div",{className:"forgot__form",children:[e.jsx("input",{type:i?"text":"password",name:"confirmPassword",placeholder:"confirm password",className:"forgot__form__input",...d("confirmPassword",{required:{value:!0,message:"Password confirmation is required"}})}),e.jsx("label",{className:"forgot__form__label",children:"Confirm Password"}),e.jsx("div",{onClick:()=>n(k=>!k),style:{position:"absolute",right:"30px"},children:i?e.jsx("i",{className:"fa-regular fa-eye",style:{color:"#a7aaab"}}):e.jsx("i",{className:"fa-regular fa-eye-slash",style:{color:"#a7aaab"}})}),((N==null?void 0:N.confirmPassword)||x!=j)&&e.jsx(Me,{errClass:"forgot_err",errMsg:(y=N==null?void 0:N.confirmPassword)==null?void 0:y.message})]}),e.jsx("button",{type:"submit",className:"resetpassword__button",disabled:p,children:p?"Resetting...":"Reset Password"}),e.jsx(is,{to:"/signin",className:"forgot_nav-signup",children:e.jsxs("p",{className:"forgot__login",children:[e.jsx("i",{className:"forgot_icon fa-solid fa-arrow-left"}),"Back to Login"]})})]})]})]})})},Yk=()=>{var k;const{register:s,handleSubmit:t,getValues:a,setValue:i,watch:n,formState:{errors:r}}=Qe(),l=(k=n("emailOrPhone"))==null?void 0:k.toLowerCase().trim(),{successToast:c,errorToast:o,errorHandle:p}=he(),[h,d]=b.useState(!1),[u,m]=b.useState(!1),[f,v]=b.useState({sent:!1,otp:"",verified:!1}),[N,_]=b.useState("");b.useEffect(()=>{let S;return f.sent&&!f.verified&&(S=setTimeout(()=>{o("OTP session expired. Please request a new OTP."),v({...f,sent:!1}),_("")},15*60*1e3)),()=>clearTimeout(S)},[f.sent,f.verified]);const x=async()=>{try{d(!0);const S=await Dc({email:l});S&&S.statusCode===Ke&&(c("OTP sent successfully"),d(!1),v({...f,sent:!0}))}catch(S){p(S)}},j=async()=>{d(!0);try{const S=await Dc({email:l});S&&S.statusCode===Ke&&(c("OTP has been re-sent to the given email"),m(!0),d(!1),v({...f,sent:!0}))}catch(S){p(S)}},I=async()=>
185{if((N==null?void 0:N.length)===6)try{d(!0);const S=await Hk({email:l,otp:N});S&&S.statusCode===Ke&&(c("OTP verified"),v({...f,sent:!1,verified:!0}))}catch(S){p(S)}finally{d(!1)}},w=S=>u===!0&&e.jsxs("span",{children:[S," seconds"]}),y=async()=>{localStorage.removeItem("myemail")};return We(()=>{let S=localStorage.getItem("myemail");S&&i("emailOrPhone",S,{shouldValidate:!0})},[]),e.jsxs(e.Fragment,{children:[e.jsx(Ro,{}),!f.verified&&e.jsxs("section",{className:"display-flex-aljc-center fdc forgot__main",children:[e.jsx("p",{className:"forgot__title",children:"Forgot Password"}),e.jsx("div",{className:"hr-line-div display-flex-aljc-center",children:e.jsx("hr",{className:"hr-line"})}),e.jsxs("section",{className:"fdc forgot-card-container",children:[e.jsx("p",{className:"forgot__entermail",children:"Please Enter Your Registered Email to Reset Your Password"}),e.jsx("p",{style:{color:"var(--text-color-secondary)",fontSize:"13px",textAlign:"center",marginBottom:"15px"},children:"Note: This page will expire in 15 minutes."}),e.jsxs("form",{autoComplete:"off",className:"display-flex-aljc-center fdc",onSubmit:t(x),children:[e.jsxs("div",{className:"forgot__form",children:[e.jsx("input",{type:"text",name:"emailOrPhone",className:"forgot__form__input",placeholder:"Email",style:{textTransform:"lowercase"},disabled:f.sent&&!f.verified,...s("emailOrPhone",{required:{value:!0,message:"Email is required"},pattern:{value:zt,message:"Invalid email"},minLength:{value:6,message:"Email Id is very short."},maxLength:{value:128,message:"Email Id should not be more than 128 characters."}})}),e.jsx("label",{className:"forgot__form__label",children:"Email"}),(r==null?void 0:r.emailOrPhone)&&e.jsx(Me,{errClass:"forgot_err",errMsg:r==null?void 0:r.emailOrPhone.message})]}),f.sent&&!f.verified&&e.jsxs("div",{children:[e.jsx("div",{className:"display-flex-aic-jcsb",children:e.jsx(oo,{value:N,onChange:_,autoFocus:!0,OTPLength:6,otpType:"number",disabled:!1,inputStyles:{fontSize:"24px",width:"36px",height:"36px",margin:"4px",borderTop:"none",borderLeft:"none",borderRight:"none",borderBottom:"1px solid var(--text-color-primary)",outline:"none",padding:"0",boxShadow:"none",backgroundColor:"var(--card-surface-primary)",color:"var(--text-color-primary)"}})}),e.jsx(ro.ResendOTP,{maxTime:60,className:"resend-button",onResendClick:j,renderTime:u&&w,style:{border:"0",color:"var(--text-color-secondary)"}})]}),!f.sent&&!f.verified&&e.jsx(e.Fragment,{children:h?e.jsx("img",{style:{height:"120px",width:"200px"},src:ku,alt:"Loading..."}):e.jsx("button",{type:"submit",className:"forgot__button",children:"Send OTP"})})]}),f.sent&&!f.verified&&e.jsx(e.Fragment,{children:e.jsx(bs,{cssStyle:"verify__button",onClickFn:I,name:"Verify OTP",loading:h})}),e.jsx(is,{to:"/signin",className:"forgot_nav-signup",children:e.jsxs("p",{className:"forgot__login",onClick:y,children:[e.jsx("i",{className:"forgot_icon fa-solid fa-arrow-left"}),"Back to Login"]})})]})]}),f.verified===!0&&e.jsx(Jk,{email:l}),e.jsx(et,{})]})};we(Rg)`
186  border-radius: 50px;
187  font-weight: 600;
188  letter-spacing: 0.5px;
189  background: ${({primary:s})=>s?"#0ADD87":"#d6dcdd"};
190  white-space: nowrap;
191  padding: 10px 48px;
192  color: ${({light:s})=>s?"#000":"#252b2d"} !important;
193  font-size: ${({fontBig:s})=>s?"20px":"16px"};
194  outline: none;
195  border: none;
196  cursor: pointer;
197  display: flex;
198  justify-content: center;
199  align-items: center;
200  text-decoration: none;
201  transition: all 0.2s ease-in-out;
202
203  @media screen and (max-width: 486px) {
204    padding: 10px 30px !important;
205  }
206
207  &:hover {
208    transition: all 0.2s ease;
209    background: #252b2d;
210    border: 1px solid ${({primary:s})=>s?"#0ADD87":"#d6dcdd"};
211    color: #fff !important;
212  }
213  &:nth-child(odd) {
214    margin-right: 30px;
215  }
216`;const Zk=we.div`
217  color: #d5dcdd;
218  background-color: #121212;
219  // min-height: 650px;
220`,Kk=we.div`
221  display: grid;
222  z-index: 1;
223  min-height: 500px;
224  max-width: 1100px;
225  margin-right: auto;
226  margin-left: auto;
227  padding: 0 20px;
228  justify-content: center;
229`,Qk=we.div`
230  display: grid;
231  grid-template-columns: minmax() (auto, 1fr);
232  align-items: center;
233  justify-content: space-around;
234  grid-template-areas: ${({videoStart:s})=>s?"'col2 col1'":"'col1 col2'"};
235
236  @media screen and (max-width: 768px) {
237    grid-template-areas: ${({videoStart:s})=>s?"'col1' 'col2'":"'col1 col1' 'col2 col2'"};
238  }
239`,Xk=we.div`
240  position: relative;
241  text-align: center;
242  margin-bottom: 15px;
243  padding: 0 15px;
244  grid-area: col1;
245`,e7=we.div`
246  position: relative;
247  text-align: center;
248  margin-bottom: 15px;
249  padding: 0 15px;
250  grid-area: col2;
251`,s7=we.img`
252  width: 100%;
253  opacity: 0.3;
254
255  @media screen and (max-width: 468px) {
256    opacity: 0;
257  }
258`,t7=we.div`
259  position: absolute;
260  top: 50%;
261  left: 50%;
262  width: 100%;
263  transform: translate(-50%, -50%);
264  display: flex;
265  flex-direction: column;
266  justify-content: center;
267  align-items: start;
268  text-align: start;
269
270  @media screen and (max-width: 768px) {
271    align-items: center;
272    text-align: center;
273  }
274`,a7=we.p`
275  font-size: 28px;
276  color: #01bf71;
277  font-weight: 600;
278  margin-bottom: 20px;
279  @media screen and (max-width: 768px) {
280    font-size: 20px;
281  }
282`,n7=we.p`
283  font-weight: 400;
284  color: #a3a3a3;
285  font-size: 18px;
286  @media screen and (max-width: 768px) {
287    font-size: 14px;
288  }
289`,i7=we.div`
290  max-width: 555px;
291  height: 100%;
292  margin: auto;
293  @media screen and (max-width: 480px) {
294    margin: 30px 0;
295  }
296`,o7=we.video`
297  width: 100%;
298  margin: 0 0 10px 0;
299  padding-right: 0;
300  mix-blend-mode: lighten;
301`,r7=we.img`
302  width: 100%;
303  margin: 0 0 10px 0;
304  padding-right: 0;
305  mix-blend-mode: lighten;
306`,l7=we.h2`
307  font-size: 24px;
308  color: #eaeaea;
309  margin-bottom: 20px;
310  font-weight: 500;
311  @media screen and (max-width: 768px) {
312    font-size: 16px;
313  }
314`,Ft=({id:s,videoStart:t,video:a,image:i,title:n,description:r,subTxt:l})=>e.jsx(Zk,{id:s,children:e.jsx(Kk,{children:e.jsxs(Qk,{videoStart:t,children:[e.jsxs(Xk,{children:[e.jsx(s7,{src:i}),e.jsxs(t7,{children:[e.jsx(a7,{children:n}),e.jsx(l7,{children:l}),e.jsx(n7,{children:r})]})]}),e.jsx(e7,{children:e.jsx(i7,{children:a.includes("Agent-Ambo.mp4")?e.jsx(o7,{src:a,muted:!0,loop:!0,autoPlay:!0,playsInline:!0,controlsList:"nodownload",preload:"auto"}):e.jsx(r7,{src:a,alt:"video preview"})})})]})})});we.div`
315  color: #d5dcdd;
316  position: relative;
317  background-color: #252b2d;
318  width: '100%';
319`;we.div`
320  display: grid;
321  margin-right: auto;
322  margin-left: auto;
323  padding: 0 20px;
324  min-height: 400px;
325  grid-template-columns: minmax() (auto, 1fr);
326  align-items: center;
327  justify-content: space-around;
328  grid-template-areas: 'col1 col2';
329
330  @media screen and (max-width: 768px) {
331    grid-template-areas: 'col1 col1' 'col2 col2';
332  }
333`;we.div`
334  position: relative;
335  text-align: center;
336  margin-bottom: 15px;
337  padding: 0 15px;
338  grid-area: col1;
339`;we.div`
340  position: relative;
341  text-align: center;
342  margin-bottom: 15px;
343  padding: 0 15px;
344  grid-area: col2;
345`;we.div``;we.img`
346  width: 100%;
347`;we.video`
348  width: '100%';
349  mix-blend-mode: lighten;
350`;we.p`
351  font-size: 30px;
352  color: #01bf71;
353  font-weight: 600;
354  margin-bottom: 20px;
355`;we.p`
356  font-weight: 300;
357`;we.h3`
358  font-size: var(--normal-size);
359  color: #d6d6d6;
360  font-weight: 700;
361  margin-bottom: 20px;
362  padding: 0 10px;
363  text-align: center;
364`;const g0="/assets/Jobs-BG-BLAbFlc3.svg",c7="/assets/Projects-BG-GQDpDOFl.svg",d7="/assets/Funding-BG-C9S-GDH5.svg",m7="/assets/Profile-BG-Di47S1Vx.svg",h7="/assets/Rating-Reviews-BG-Day-wDuG.svg",u7="/assets/Messages-BG-BmzSH754.svg",p7="/assets/Networking-BG-DM81pa_U.svg";let g7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/agent_ambo_final.gif",x7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Job.gif",f7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Project.gif",j7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Funding_Investing.gif",y7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Website.gif",b7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Reviews.gif",v7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Messages.gif",_7="https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Networking.gif";const N7={id:"ambo",videoStart:!0,alt:"ambo",subTxt:"Here is your Professional Ambassador!",image:g0,video:g7,title:"Agent Ambo",description:"Just focus in developing your expertise and Ambo will completely take care on promoting you to bring your dream into reality in no time. "},w7={id:"jobs",videoStart:!1,alt:"Jobs",subTxt:"Hire top talent/get right job!",video:x7,image:g0,title:"Jobs",description:`We are industry agnostic & offer job ops, for candidates across domains. You can search/post
365  jobs, connect with recruiters/candidates. Our high-tech platform aids chat, message & Virtual
366  hiring. `},S7={id:"project",videoStart:!0,alt:"Projects",subTxt:"Post, search, spot, apply, and fulfil",video:f7,image:c7,title:"Projects",description:`All types of accounts can get suitable projects or the right resource / team. There are no
367    project commissions. Staff Augmentation being the current buzz in the market, TickBig helps
368    you with such opportunities, too.`},k7={id:"fundraise",videoStart:!1,alt:"Fundraising & Investing",subTxt:"Explore investment opportunities",video:j7,image:d7,title:"Fundraising & Investing",description:`Give wings to your ideas, business, or ventures to discover the right investors and funders.
369    Connect with those with exciting ideas, innovative business plans that can multiply your
370    returns`},C7={id:"profile",videoStart:!0,alt:"Profile",subTxt:"A profile to boost professional journey",video:y7,image:m7,title:"Your Website",description:`With minimum inputs, TickBig generates a free, sharable website-like profile, highlighting
371    your profession, personality, or brand, acting as a catalyst in your professional journey.
372    `},T7={id:"rating",videoStart:!1,alt:"Rating & Reviews",subTxt:"Establish your credibility and level of expertise",video:b7,image:h7,title:"Rating & Reviews",description:`When products have reviews, why not persons and brands?
373    Enhance your credibility with the ratings and reviews feature on TickBig, and showcase the
374    reliability.`},I7={id:"message",videoStart:!0,alt:"Messages",subTxt:"Transform the way you communicate",video:v7,image:u7,title:"Messages",description:`With instant messaging integrated into the TickBig platform, you can start a conversation &
375    introduce yourself. Getting successful mentorship, career support and advancement is a tap
376    away.`},A7={id:"networking",videoStart:!0,alt:"Networking",subTxt:"Unravel the power of community",video:_7,image:p7,title:"Networking",description:`TickBig is designed with 
376networking in mind. Build a following & form connections
377    worldwide. Promote your profile, access job opportunities; follow mentors, industries,
378    or brands.`},E7=we.div`
379  min-height: 650px;
380  width: 100%;
381  display: flex;
382  align-items: center;
383  justify-content: flex-start;
384  flex-direction: column;
385  // background-color: #252b2d;
386  background-color: #121212;
387`,M7=we.div`
388  max-width: 60%;
389  display: flex;
390  flex-direction: column;
391  align-items: center;
392  justify-content: center;
393  text-align: center;
394  color: #dcdddb;
395  margin-top: 6%;
396  @media screen and (max-width: 480px) {
397    max-width: 90% !important;
398  }
399`,P7=we.p`
400  font-size: 28px;
401  font-weight: 600;
402  position: relative;
403  margin-bottom: 15px;
404  color: #01bf71;
405  // &:after {
406  //   content: ' ';
407  //   text-align: center;
408  //   position: absolute;
409  //   left: 50%;
410  //   bottom: 0%;
411  //   transform: translate(-50%, 50%);
412  //   height: 3px;
413  //   width: 50%;
414  //   background-color: #0add87;
415  //   border-radius: 10px;
416  // }
417  @media screen and (max-width: 768px) {
418    font-size: 20px;
419  }
420`,R7=we.p`
421  color: #a3a3a3;
422  font-size: 18px;
423  font-weight: 400;
424  margin-bottom: 20px;
425  width: 40vw;
426  @media screen and (max-width: 768px) {
427    width: auto;
428    font-size: 14px;
429  }
430`,L7=we.div`
431  height: 3em;
432  width: 40%;
433  display: flex;
434  @media screen and (max-width: 768px) {
435    width: 100% !important;
436  }
437`,Oi=we.button`
438  border: none;
439  outline: none;
440  cursor: pointer;
441  position: relative;
442  background: #121212;
443  width: 40%;
444  margin-right: 0.1em;
445  font-size: 24px;
446  font-weight: 500;
447  opacity: 1;
448  color: ${s=>s.active?"#EAEAEA":"#A3A3A3"};
449  height: ${s=>s.active?"3em":"2.6em; top:.4em"};
450  transition: border-bottom 0.1s ease-in-out;
451
452  &:after {
453    content: ' ';
454    text-align: center;
455    position: absolute;
456    left: 50%;
457    bottom: 15%;
458    transform: translate(-50%, 50%);
459    height: 2px;
460    width: 20%;
461    background-color: ${s=>s.active?"#0ADD87":""};
462    border-radius: 10px;
463  }
464
465  @media screen and (max-width: 768px) {
466    width: 90% !important;
467    font-size: var(--small-size) !important;
468    &:after {
469      content: ' ';
470      width: 40% !important;
471    }
472  }
473`,F7=we.div`
474  margin-top: 50px;
475  max-width: 60%;
476  align-items: center;
477  justify-content: center;
478  grid-gap: 20px;
479  display: ${s=>s.active?"grid":"none"};
480  grid-template-areas:
481    'pro stud'
482    'pro free';
483
484  @media screen and (max-width: 768px) {
485    grid-template-areas:
486      'pro'
487      'stud'
488      'free';
489  }
490`,qc=we.div`
491  margin-top: 50px;
492  grid-template-columns: 1fr 1fr;
493  align-items: center;
494  justify-content: center;
495  grid-gap: 20px;
496  display: ${s=>s.active?"grid":"none"};
497
498  @media screen and (max-width: 768px) {
499    grid-template-columns: 1fr;
500  }
501`,Gt=we.div`
502  position: relative;
503  height: ${s=>s.right?"140px":"300px"};
504  min-width: 250px;
505  border-radius: 20px;
506  border:1px solid #1e1e1e;
507  background: #242424;
508  background: linear-gradient(180deg, rgba(36, 36, 36, 1) 0%, rgba(18, 18, 18, 1)130%);
509  z-index: 1;
510
511  @media screen and (max-width: 768px) {
512    height: 140px !important;
513    min-width: 320px;
514  }
515`;we.img`
516  position: absolute;
517  top: 50%;
518  left: 50%;
519  transform: translateX(-50%) translateY(-50%);
520  max-width: 100%;
521  max-height: 100%;
522  padding: 15px;
523  opacity: 0.2;
524`;const B7=we.p`
525  // cursor: pointer;
526  font-size: var(--small-size);
527  width: 100%;
528  text-align: center;
529  font-weight: 500;
530  position: absolute;
531  top: 50%;
532  left: 50%;
533  transform: translate(-50%, -20%);
534  color: #d6dddc;
535  z-index: 2;
536  &:hover {
537    color: #0add87;
538    transform: translate(-50%, -150%);
539    transition: all ease-in-out 0.4s;
540
541    &:after {
542      content: 'Professionals are individuals who work with different brands / Institutions. TickBig is a
543      platform that will help you sculpt your dream career!';
544      font-size: 11px;
545      display: block;
546      transform: translateY(0%);
547      opacity: 1;
548      color: #d6dddc;
549      padding: 0 10px;
550    }
551  }
552  &:after {
553    position: absolute;
554    content: 'Professionals are individuals who work with different brands / Institutions. TickBig is a
555    platform that will help you sculpt your dream career!';
556    font-size: 11px;
557    display: none;
558    transition: all ease-in-out 0.4s;
559    transform: translateY(100%);
560    opacity: 0;
561    overflow-y: hidden;
562  }
563`,O7=we.p`
564  // cursor: pointer;
565  font-size: var(--small-size);
566  width: 100%;
567  text-align: center;
568  font-weight: 500;
569  position: absolute;
570  top: 50%;
571  left: 50%;
572  transform: translate(-50%, -20%);
573  color: #d6dddc;
574  z-index: 2;
575  &:hover {
576    color: #0add87;
577    transform: translate(-50%, -150%);
578    transition: all ease-in-out 0.4s;
579
580    &:after {
581      content: 'Are you looking for your first job? This account type is for you! Create your personal brand,showcase your skills, ask recommendations, and find dream offers.';
582      font-size: 11px;
583      display: block;
584      transform: translateY(0%);
585      opacity: 1;
586      color: #d6dddc;
587      padding: 0 10px;
588    }
589  }
590  &:after {
591    position: absolute;
592    content: 'Are you looking for your first job? This account type is for you! Create your personal brand,showcase your skills, ask recommendations, and find dream offers.';
593    font-size: 11px;
594    display: none;
595    transition: all ease-in-out 0.4s;
596    transform: translateY(100%);
597    opacity: 0;
598    overflow-y: hidden;
599  }
600`,U7=we.p`
601  // cursor: pointer;
602  font-size: var(--small-size);
603  width: 100%;
604  text-align: center;
605  font-weight: 500;
606  position: absolute;
607  top: 50%;
608  left: 50%;
609  transform: translate(-50%, -20%);
610  color: #d6dddc;
611  z-index: 2;
612  &:hover {
613    color: #0add87;
614    transform: translate(-50%, -150%);
615    transition: all ease-in-out 0.4s;
616
617    &:after {
618      content: 'Freelancers are independent consultants associated with one or many companies. Make yourself visible, demonstrate expertise and find opportunities.';
619      font-size: 11px;
620      display: block;
621      transform: translateY(0%);
622      opacity: 1;
623      color: #d6dddc;
624      padding: 0 10px;
625    }
626  }
627  &:after {
628    position: absolute;
629    content: 'Freelancers are independent consultants associated with one or many companies. Make yourself visible, demonstrate expertise and find opportunities.';
630    font-size: 11px;
631    display: none;
632    transition: all ease-in-out 0.4s;
633    transform: translateY(100%);
634    opacity: 0;
635    overflow-y: hidden;
636  }
637`,D7=we.p`
638  // cursor: pointer;
639  font-size: var(--small-size);
640  width: 100%;
641  text-align: center;
642  font-weight: 500;
643  position: absolute;
644  top: 50%;
645  left: 50%;
646  transform: translate(-50%, -20%);
647  color: #d6dddc;
648  z-index: 2;
649  &:hover {
650    color: #0add87;
651    transform: translate(-50%, -150%);
652    transition: all ease-in-out 0.4s;
653
654    &:after {
655      content: 'If your brand is unregistered, do sign up. Avail free profile, network, post jobs & hire
656      candidates.';
657      font-size: 11px;
658      display: block;
659      transform: translateY(0%);
660      opacity: 1;
661      color: #d6dddc;
662      padding: 0 10px;
663    }
664  }
665  &:after {
666    position: absolute;
667    content: 'If your brand is unregistered, do sign up. Avail free profile, network, post jobs & hire
668    candidates.';
669    font-size: 11px;
670    display: none;
671    transition: all ease-in-out 0.4s;
672    transform: translateY(100%);
673    opacity: 0;
674    overflow-y: hidden;
675  }
676`,q7=we.p`
677  // cursor: pointer;
678  font-size: var(--small-size);
679  width: 100%;
680  text-align: center;
681  font-weight: 500;
682  position: absolute;
683  top: 50%;
684  left: 50%;
685  transform: translate(-50%, -20%);
686  color: #d6dddc;
687  z-index: 2;
688  &:hover {
689    color: #0add87;
690    transform: translate(-50%, -150%);
691    transition: all ease-in-out 0.4s;
692
693    &:after {
694      content: 'Registered companies are self-explanatory. Be heard & seen. Boost your brand, launch
695      products/services, & be social.';
696      font-size: 11px;
697      display: block;
698      transform: translateY(0%);
699      opacity: 1;
700      color: #d6dddc;
701      padding: 0 10px;
702    }
703  }
704  &:after {
705    position: absolute;
706    content: 'Registered companies are self-explanatory. Be heard & seen. Boost your brand, launch
707    products/services, & be social.';
708    font-size: 11px;
709    display: none;
710    transition: all ease-in-out 0.4s;
711    transform: translateY(100%);
712    opacity: 0;
713    overflow-y: hidden;
714  }
715`,V7=we.p`
716  // cursor: pointer;
717  font-size: var(--small-size);
718  width: 100%;
719  text-align: center;
720  font-weight: 500;
721  position: absolute;
722  top: 50%;
723  left: 50%;
724  transform: translate(-50%, -20%);
725  color: #d6dddc;
726  z-index: 2;
727  &:hover {
728    color: #0add87;
729    transform: translate(-50%, -150%);
730    transition: all ease-in-out 0.4s;
731
732    &:after {
733      content: 'Institutions offering higher, professional education can publicise/search projects, internships, 
734      & placements. Post jobs, try for funding & investors.';
735      font-size: 11px;
736      display: block;
737      transform: translateY(0%);
738      opacity: 1;
739      color: #d6dddc;
740      padding: 0 10px;
741    }
742  }
743  &:after {
744    position: absolute;
745    content: 'Craft your personal brand & show your skills. Whether a job or a side hustle, it is a breeze.';
746    font-size: 11px;
747    display: none;
748    transition: all ease-in-out 0.4s;
749    transform: translateY(100%);
750    opacity: 0;
751    overflow-y: hidden;
752  }
753`,z7=we.p`
754  // cursor: pointer;
755  font-size: var(--small-size);
756  width: 100%;
757  text-align: center;
758  font-weight: 500;
759  position: absolute;
760  top: 50%;
761  left: 50%;
762  transform: translate(-50%, -20%);
763  color: #d6dddc;
764  z-index: 2;
765  &:hover {
766    color: #0add87;
767    transform: translate(-50%, -150%);
768    transition: all ease-in-out 0.4s;
769
770    &:after {
771      content: 'If you train students or offer coaching, you can crack projects, internship ops, and get placement.';
772      font-size: 11px;
773      display: block;
774      transform: translateY(0%);
775      opacity: 1;
776      color: #d6dddc;
777      padding: 0 10px;
778    }
779  }
780  &:after {
781    position: absolute;
782    content: 'If you train students or offer coaching, you can crack projects, internship ops, and get placement.';
783    font-size: 11px;
784    display: none;
785    transition: all ease-in-out 0.4s;
786    transform: translateY(100%);
787    opacity: 0;
788    overflow-y: hidden;
789  }
790`;we.div`
791  margin-top: 50px;
792  max-width: 100%;
793  align-items: center;
794  justify-content: center;
795  display: ${s=>s.active?"flex":"none"};
796  gap: 20px;
797  flex-wrap: wrap;
798
799  @media screen and (max-width: 768px) {
800    flex-direction: column;
801  }
802`;const Jo=we.div`
803  height: 380px;
804  width: 300px;
805  border-radius: 18px;
806  box-shadow: 3px 3px 6px #0000004d;
807  background: linear-gradient(327deg, rgba(36, 36, 36, 1) 100%, rgba(18, 18, 18, 1) 100%);
808  padding: 40px 20px;
809  display: flex;
810  flex-direction: column;
811  align-items: center;
812  justify-content: center;
813`;we(Jo)`
814  background: linear-gradient(205deg, #01bf71 0%, #2a3c2a 100%);
815`;we.p`
816  color: #eaeaea;
817  font-size: 20px;
818  font-weight: 500;
819  margin-bottom: 20px;
820  text-align: center;
821
822  ${Jo}:hover & {
823    color: #0add87;
824  }
825`;we.p`
826  // padding:20px;
827  color: #ffffff;
828  font-size: 16px;
829  font-weight: 400;
830  letter-spacing: 1px;
831  text-align: center;
832`;we.div`
833  flex: 0.6;
834  display: flex;
835  align-items: center;
836  justify-content: center;
837  opacity: 0;
838  max-height: 0;
839  transition: all 0.4s ease-in-out;
840  overflow: hidden;
841  text-align: center;
842
843  ${Jo}:hover & {
844    opacity: 1;
845    max-height: 200px;
846  }
847`;const W7=()=>{const[s,t]=b.useState(0),a=i=>{const n=parseInt(i.target.id,0);n!==s&&t(n)};return e.jsxs(E7,{id:"users",children:[e.jsxs(M7,{children:[e.jsx(P7,{children:"Users"}),e.jsx("h3",{className:"sub__Text",children:"We have something for everyone!"}),e.jsx(R7,{children:"You may be an individual, company, or an institution - TickBig supports all. We’ve classified 3 categories into 7 account types. Pick the relevant one for your professional growth and networking."})]}),e.jsxs(L7,{children:[e.jsx(Oi,{onClick:a,active:s===0,id:0,children:"Individual"}),e.jsx(Oi,{onClick:a,active:s===1,id:1,children:"Company"}),e.jsx(Oi,{onClick:a,active:s===2,id:2,children:"Institution"})]}),e.jsxs(e.Fragment,{children:[e.jsxs(F7,{active:s===0,id:0,children:[e.jsx(Gt,{style:{gridArea:"pro"},children:e.jsx(B7,{children:"Professional"})}),e.jsx(Gt,{right:!0,style:{gridArea:"stud"},children:e.jsx(O7,{children:"Student"})}),e.jsx(Gt,{right:!0,style:{gridArea:"free"},children:e.jsx(U7,{children:"Freelancer"})})]}),e.jsxs(qc,{active:s===1,id:1,children:[e.jsx(Gt,{children:e.jsx(D7,{children:"Homegrown Company"})}),e.jsx(Gt,{children:e.jsx(q7,{children:"Registered Company"})})]}),e.jsxs(qc,{active:s===2,id:2,children:[e.jsx(Gt,{children:e.jsx(V7,{children:"College"})}),e.jsx(Gt,{children:e.jsx(z7,{children:"Training Institute"})})]})]})]})},$7=we.div`
848  background-color: #121212;
849  width: 100%;
850  display: flex;
851  flex-direction: column;
852  align-items: center;
853  justify-content: center;
854  padding: 20px 0;
855`,H7=we.div`
856  margin-top: 6%;
857  display: flex;
858  flex-direction: column;
859  align-items: center;
860  justify-content: center;
861  /* padding: 0 200px; */
862  width: 60%;
863
864  @media screen and (max-width: 468px) {
865    padding: 0 20px;
866    width: 90%;
867  }
868`,G7=we.p`
869  color: #01bf71;
870  font-size: 28px;
871  font-weight: 600;
872  position: relative;
873  margin-bottom: 30px;
874  // &:after {
875  //   content: ' ';
876  //   text-align: center;
877  //   position: absolute;
878  //   left: 50%;
879  //   bottom: 5%;
880  //   transform: translate(-50%, 50%);
881  //   height: 3px;
882  //   width: 40%;
883  //   border-radius: 10px;
884  //   background-color: #0ADD87;
885  // }
886  @media screen and (max-width: 768px) {
887    font-size: 20px;
888  }
889`,J7=we.p`
890  color: #a3a3a3;
891  font-size: 18px;
892  font-weight: 400;
893  text-align: center;
894  width: 40vw;
895  @media screen and (max-width: 768px) {
896    font-size: 14px;
897    width: auto;
898  }
899`,Y7=we.h3`
900  font-size: 24px;
901  color: #eaeaea;
902  font-weight: 500;
903  margin-bottom: 20px;
904  padding: 0 10px;
905  text-align: center;
906
907  @media screen and (max-width: 768px) {
908    font-size: 16px;
909  }
910`,Z7=()=>e.jsx($7,{id:"features",children:e.jsxs(H7,{children:[e.jsx(G7,{children:"Features"}),e.jsx(Y7,{children:"Democratizing access to opportunity for all!"}),e.jsx(J7,{children:"TickBig has carefully designed its features to truly rewrite the limits for all its users. An all in-one platform, this is a complete package to shape your future across domains."})]})}),K7=we.div`
911  width: 100%;
912  min-height: 500px;
913  background-color: #121212;
914  display: flex;
915  flex-direction: column;
916  align-items: center;
917  justify-content: center;
918  text-align: center;
919`,Q7=we.div`
920  width: 60%;
921  display: flex;
922  flex-direction: column;
923  align-items: center;
924  justify-content: center;
925  @media screen and (max-width: 468px) {
926    width: 90%;
927  }
928`,X7=we.p`
929  color: #01bf71;
930  margin-bottom: 20px;
931  font-size: 28px;
932  font-weight: 600;
933  @media screen and (max-width: 768px) {
934    font-size: 20px;
935  }
936`,e9=we.p`
937  color: #a3a3a3;
938  font-weight: 400;
939  font-size: 18px;
940  width: 40vw;
941  @media screen and (max-width: 768px) {
942    width: auto;
943    font-size: 14px;
944  }
945`,s9=we.img`
946  width: 50%;
947  margin: 1rem;
948  height: auto;
949  transition: all ease-in-out 0.3s;
950  @media screen and (max-width: 768px) {
951    width: 400px;
952    height: auto;
953  }
954  @media screen and (max-width: 480px) {
955    width: 90%;
956    margin: auto;
957  }
958`,t9=we.h2`
959  font-size: 24px;
960  color: #eaeaea;
961  font-weight: 500;
962  margin-bottom: 20px;
963  padding: 0 10px;
964  text-align: center;
965  @media screen and (max-width: 768px) {
966    font-size: 16px;
967  }
968`,a9=()=>e.jsx(e.Fragment,{children:e.jsxs(K7,{children:[e.jsxs(Q7,{children:[e.jsx(X7,{children:"Fortune Card"}),e.jsx(t9,{children:"Free digital Fortune Card, portfolio"}),e.jsx(e9,{children:"Just sign up, fill in the basic details. TickBig will create a free digital Fortune Card & portfolio. The sharable Fortune Card & clickable link enable establish identity & credibility"})]}),e.jsx(s9,{src:"https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageGif/Business_Card.gif",muted:!0,loop:!0,autoPlay:!0})]})}),n9=()=>e.jsx("div",{children:e.jsx("p",{className:"hoverText",children:"Explore our platform"})}),i9=()=>e.jsxs("div",{id:"explore",className:"mb-5",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"network__video-header",children:"Connect, Network and Establish"})," "]}),e.jsx("div",{children:e.jsx("div",{className:"text-center",children:e.jsx(Lg,{videoSrc:"https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageObjects/Tickbig+Website_SFX.mp4",videoStyle:{borderRadius:"30px"},pausedOverlay:e.jsx(n9,{}),className:"network__video",style:{borderRadius:"30px",border:"3px solid #384144",boxShadow:"-3px -3px 6px #00000030"},controls:!0,controlsList:"nodownload",muted:!1,preload:"auto",playsInline:!0,disableDefaultEventHandling:!1})})})]}),o9=()=>{let s={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is TickBig?",acceptedAnswer:{"@type":"Answer",text:"TickBig is a versatile platform designed to support individuals, companies, and institutions in their professional growth and networking endeavors."}},{"@type":"Question",name:"How can I get started on TickBig?",acceptedAnswer:{"@type":"Answer",text:"Simply register and sign in to explore the TickBig platform. Choose from seven account types tailored to your professional needs."}},{"@type":"Question",name:"What categories does TickBig support for users?",acceptedAnswer:{"@type":"Answer",text:"TickBig supports individuals, companies, and institutions, each further categorized 
968into Professional, Student, and Freelancer types."}},{"@type":"Question",name:"How does TickBig democratize access to opportunities?",acceptedAnswer:{"@type":"Answer",text:"TickBig achieves this by providing a comprehensive, all-in-one platform that transcends limits and offers opportunities for job searches, project fulfillment, fundraising, and more."}},{"@type":"Question",name:"Can I find job opportunities on TickBig?",acceptedAnswer:{"@type":"Answer",text:"Absolutely! TickBig is industry-agnostic, offering a platform for job searches, virtual hiring, and connecting with recruiters and candidates."}},{"@type":"Question",name:"What types of projects can I find on TickBig?",acceptedAnswer:{"@type":"Answer",text:"TickBig caters to all account types, helping users find suitable projects or the right resources and teams. There are no project commissions, and it supports the current trend of Staff Augmentation."}},{"@type":"Question",name:"How does TickBig support fundraising and investing?",acceptedAnswer:{"@type":"Answer",text:"TickBig enables users to explore investment opportunities, connecting those with exciting ideas and innovative business plans to potential investors and funders."}},{"@type":"Question",name:"Is there a feature for creating a digital Fortune Card on TickBig?",acceptedAnswer:{"@type":"Answer",text:"Yes, TickBig offers a free digital Fortune Card and portfolio. Users can sign up, fill in basic details, and TickBig will generate a sharable Fortune Card and clickable link to establish identity and credibility."}},{"@type":"Question",name:"How does TickBig boost my professional profile?",acceptedAnswer:{"@type":"Answer",text:"With minimal inputs, TickBig generates a free, sharable website-like profile that highlights your profession, personality, or brand, acting as a catalyst in your professional journey."}},{"@type":"Question",name:"Can I establish credibility on TickBig?",acceptedAnswer:{"@type":"Answer",text:"Certainly! TickBig features a rating and reviews system, allowing users to showcase their reliability and expertise."}}]};return e.jsx(e.Fragment,{children:e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(s)}})})},r9=()=>e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"VideoObject",name:"TickBig Introduction Video",description:"An introduction to TickBig, a platform designed to support professional growth and networking.",thumbnailUrl:["https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageObjects/videoSampleThumbnail.jpg"],uploadDate:"2024-07-30T08:00:00+08:00",contentUrl:"https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageObjects/videoSample.mov",embedUrl:"https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/LandingPageObjects/videoSample.mov",publisher:{"@type":"Organization",name:"TickBig Networking Media Private Limited",logo:{"@type":"ImageObject",url:"https://pub-6118ed21d1ed486993f0f62a9e89b960.r2.dev/Logo.png"}}})}}),l9=()=>e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"http://schema.org","@type":"LocalBusiness",name:"Tickbig Networking Media Private Limited",image:"https://www.kratosolutions.com/images/footer-logo.png",telephone:"+919566513987",email:"[email protected]",address:{"@type":"PostalAddress",streetAddress:"No. 5/3 D.N Flats",addressLocality:"Nethaji Street, Nethaji Nagar, Thiruvanmiyur, Chennai",addressRegion:"Tamilnadu",addressCountry:"India",postalCode:"600041"},openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:{"@type":"DayOfWeek",name:"Mon - Fri"}},url:"https://www.tickbig.com/contact",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.9",bestRating:"5",worstRating:"4.8",ratingCount:"1271"}})}}),c9=()=>e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Corporation",name:"Tickbig Networking Media Private Limited",alternateName:"TickBig",url:"https://www.tickbig.com",logo:"https://www.kratosolutions.
968com/images/krato-solutions-best-data-analytics-artificial-intelligence-company-in-chennai.png",contactPoint:{"@type":"ContactPoint",telephone:"+919566513987",contactType:"sales",areaServed:"IN",availableLanguage:["en","Tamil","Hindi"]},sameAs:["https://www.facebook.com/Krato-Solutions-108406560501899/","https://twitter.com/KratoSolutions","https://www.instagram.com/kratosolutions/","https://www.youtube.com/channel/UCAkpPzidZPzl8dZEeXeWqcg","https://www.linkedin.com/company/kratosolutions"]})}});we.div`
969  // display:flex;
970  // justify-content: center;
971  padding: 0 10%;
972`;we.div`
973  color: #d6dcdd;
974  font-weight: bold;
975  font-size:18px;
976  text-align:center;
977`;we.div`
978  margin-top: 20px;
979  border: 2px solid #5a6466;
980  border-radius: 18px;
981  background-color: #2e3638;
982  background-image: linear-gradient(135deg, #2e3638 0%, #384144 46%, #252b2d 100%);
983`;we.div`
984  display: flex;
985  align-items: start;
986  justify-content: space-around;
987  padding: 30px;
988  color: #d6dcdd;
989
990  @media screen and (max-width: 768px) {
991    flex-direction: column;
992  }
993`;we.div`
994  color: #d6dcdd;
995  font-weight: bold;
996`;we.p`
997  margin-top: 20px;
998`;we.span`
999  font-size: 18px;
1000  font-weight: bold;
1001  color: #01bf71;
1002`;we.span`
1003  font-size: 10px;
1004  color: #d6dcdd;
1005`;we.p`
1006  font-size: 12px;
1007  color: #d6dcdd;
1008  margin-top: 4px;
1009`;we(Os)`
1010  @media screen and (max-width: 768px) {
1011    display:none;
1012  }
1013`;we.div``;we.div``;we.div``;we.div``;we.div`
1014  margin-top:20px;
1015  display:flex;
1016  align-item:center;
1017  justify-content:center;
1018`;we.button`
1019  margin-bottom:20px;
1020  padding:10px 12px;
1021  background-color: #01bf71;
1022  color: #252b2d;
1023  border-radius: 28px;
1024  border: none;
1025`;const d9=()=>{const s=G(i=>i.auth),{gotoSignIn:t,gotoSignUp:a}=Be();return e.jsx(e.Fragment,{children:!s.isAuthenticated&&!s.verified&&e.jsx(e.Fragment,{children:e.jsx("div",{className:"navbar-hero",style:{paddingBottom:"5px"},children:e.jsxs("section",{className:"display-flex-aic-jcsb signIn-nav-container",children:[e.jsxs("div",{className:"footer-nav-left display-flex-aic",children:[e.jsx("p",{children:e.jsxs(is,{to:"/",className:"text-decoration-none company-header headLink",children:["Tick",e.jsx("span",{className:"company-header-2",children:"big"})]})}),e.jsxs("div",{className:"explore-container",children:[e.jsx("a",{className:"landing-page_contents",href:"#explore",children:"Explore"}),e.jsx("a",{className:"landing-page_contents",href:"#users",children:"Users"}),e.jsx("a",{className:"landing-page_contents",href:"#features",children:"Features"})]})]}),e.jsxs("div",{className:"footer-nav-right display-flex-aic",children:[e.jsx(bs,{onClickFn:()=>{mN(),t()},name:"Sign In",cssStyle:"public_signin-btn"}),e.jsx(bs,{onClickFn:()=>{dN(),a()},name:"Sign Up",cssStyle:"public_signup-btn"})]})]})})})})},m9=we.div`
1026    height:100vh;
1027    display:flex;
1028    flex-direction:column;
1029    align-items:center;
1030    
1031    @media screen and (max-width: 768px) {
1032        height:auto;
1033    }
1034`,h9=we.div`
1035    display:block;
1036
1037    @media screen and (max-width: 768px) {
1038        display:block;
1039    }
1040`,u9=()=>e.jsx(e.Fragment,{children:e.jsxs(m9,{children:[e.jsx(_p,{}),e.jsx(h9,{children:e.jsxs(YN,{onClick:()=>window.scrollTo(0,600),children:["Explore More  ",e.jsx(JN,{src:zp})]})})]})}),p9=()=>{const s=ge();return b.useEffect(()=>{(async()=>{let a=await Ao();const{subscriptions:i}=a==null?void 0:a.data;let n=i.map(r=>({...r,units:r.quantity}));s(go(n))})(),tN()},[]),e.jsxs(e.Fragment,{children:[e.jsx(en,{title:V_,description:q_,type:"website",twitterusername:Zn,keywords:D_,canonical:window.location.href,landingUrl:window.location.href,imageUrl:Kn}),e.jsx(d9,{}),e.jsx(o9,{}),e.jsx(r9,{}),e.jsx(l9,{}),e.jsx(c9,{}),e.jsx(u9,{}),e.jsx(i9,{}),e.jsx(W7,{}),e.jsx(Z7,{}),e.jsx(Ft,{...N7}),e.jsx(a9,{}),e.jsx(Ft,{...C7}),e.jsx(Ft,{...w7}),e.jsx(Ft,{...S7}),e.jsx(Ft,{...k7}),e.jsx(Ft,{...T7}),e.jsx(Ft,{...A7}),e.jsx(Ft,{...I7}),e.jsx(et,{})]})},g9="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23FACC15'%20viewBox='0%200%2024%2024'%20stroke-width='1.5'%20stroke='%23FACC15'%20class='size-6'%3e%3cpath%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M11.48%203.499a.562.562%200%200%201%201.04%200l2.125%205.111a.563.563%200%200%200%20.475.345l5.518.442c.499.04.701.663.321.988l-4.204%203.602a.563.563%200%200%200-.182.557l1.285%205.385a.562.562%200%200%201-.84.61l-4.725-2.885a.562.562%200%200%200-.586%200L6.982%2020.54a.562.562%200%200%201-.84-.61l1.285-5.386a.562.562%200%200%200-.182-.557l-4.204-3.602a.562.562%200%200%201%20.321-.988l5.518-.442a.563.563%200%200%200%20.475-.345L11.48%203.5Z'%20/%3e%3c/svg%3e";function x9({count:s,sum:t}){const a=s!==0||t!==0?t/(s*5)*100:0;let i=(t/s).toFixed(1);isNaN(i)&&(i=0);const n={trail:{strokeLinecap:"butt",transform:"rotate(-126deg)",transformOrigin:"center center",trailColor:"#d6d6d6",stroke:"var(--card-surface-2)"},text:{fill:"#a7aaab"},path:{stroke:"#0ADD87",strokeLinecap:"butt",transition:"stroke-dashoffset 0.5s ease 0s",transform:"rotate(-126deg)",transformOrigin:"center center"}};return e.jsx("div",{className:"reviewScore-container",children:e.jsx(Sg,{value:a,text:i,circleRatio:.7,styles:n,strokeWidth:5,className:"circularBar"})})}const f9=gs(Ki)({"& .MuiRating-iconFilled":{color:"#FACC15"},"& .MuiRating-iconHover":{color:"#FACC15"}});gs(Ki)({"& .MuiRating-iconFilled":{color:"#01bf71"}});function j9({review:s,setReview:t,submitReview:a,loadingReview:i,setloadingReview:n}){const{warningToast:r,restrictCopyPaste:l,errorHandle:c}=he(),o=()=>{n(!1),t({...s,showReview:!1})},p=u=>{const{target:{value:m}}=u;t({...s,reviewComment:m})},h=u=>{const m=u.target.innerText.split(" ")[0];t({...s,ratings:Number(m)}
1040)},d=()=>{var u;s.ratings===0?r("Rating is required"):((u=s.reviewComment)==null?void 0:u.length)===0||!s.reviewComment.trim()?r("Review comment is required"):(a(),t({...s,ratings:0,reviewComment:""}))};return e.jsx(e.Fragment,{children:e.jsx(qe,{open:s.showReview,onClose:o,style:{margin:"7.5rem auto"},children:e.jsxs(Ie,{sx:L2,children:[e.jsx("p",{className:"modalHead",children:"Write a review"}),e.jsx("p",{className:"modalSubHead",children:"Give a Rating"}),e.jsx(f9,{name:"customized-color",value:s.ratings?s.ratings:0,precision:1,icon:e.jsx(fn,{fontSize:"inherit"}),size:"medium",emptyIcon:e.jsx(fn,{fontSize:"inherit",style:{color:"#5a6466"}}),onMouseUpCapture:h}),e.jsx("textarea",{className:"fulljob__modal-textarea",placeholder:"Write here...",onCopy:u=>l(u),onPaste:u=>l(u),onChange:p}),e.jsxs("div",{className:"review_modal_footer-container",children:[e.jsx("button",{className:"fullpage__modal-button1 mt-2",variant:"primary",onClick:o,children:"Cancel"}),e.jsx("button",{className:"fullpage__modal-button2 mt-2",variant:"primary",disabled:i,onClick:d,children:"Submit"})]})]})})})}const y9=async(s,t)=>z.patch(Iy+`/${s}`,{reviews:t}).then(a=>a.data).catch(a=>{throw a}),b9=async s=>z.get(Ty+`/${s}`).then(t=>t.data).catch(t=>{throw t});function v9({userReview:s,review:t,setReview:a,rate:i,moduleRate:n,loadReview:r,avgrating:l,totalReviewCount:c}){var k,S,g,E,C,T,A,R,P,O;const o=ge(),p=G(M=>M.auth),{successToast:h,warningToast:d,errorToast:u,errorHandle:m}=he(),{gotoProfile:f,gotoSignIn:v}=Be(),N=ts().reviewUniqueId,[_,x]=b.useState(!1),j=()=>{p!=null&&p.isAuthenticated?a({...t,showReview:!0}):v()},I=async()=>{var M;try{x(!0);const L={reviewComment:t.reviewComment,module:"general",ratings:t.ratings},F=await y9(Ee(N),L);F&&(F==null?void 0:F.statusCode)===Ke&&(a({showReview:!1,reviewComment:"",ratings:0}),h("Reviewed user successfully"),x(!1),r(),o(Ss((M=F==null?void 0:F.data)==null?void 0:M.unseenNotifications)))}catch(L){a({...t,showReview:!1}),m(L)}},w=()=>{var M;p!=null&&p.isAuthenticated?f((M=s==null?void 0:s.ownerId)==null?void 0:M.tickbigLink):v()},y=gs(tg)(({theme:M})=>({height:5,borderRadius:5,marginTop:"5px",backgroundColor:"var(--card-surface-2)",[`& .${ag.bar}`]:{borderRadius:5,backgroundColor:"#0ADD87"}}));return e.jsxs(e.Fragment,{children:[e.jsx("main",{className:"reviewHeader__Container",children:e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col-12 col-sm-12 col-md-12 col-lg-12",children:[e.jsxs("div",{className:"reviewHeader__article-1",children:[e.jsxs("section",{className:"reviewHeader__heading",onClick:w,children:[e.jsx(_a,{}),e.jsx("div",{className:"d-flex align-items-center ml-2",children:e.jsx("div",{className:"flex-shrink-0",style:{marginLeft:"10px"},children:e.jsx(ss,{src:(k=s==null?void 0:s.ownerId)==null?void 0:k.avatar,alt:(S=s==null?void 0:s.ownerId)==null?void 0:S.firstName,className:"rounded-circle",height:35,width:35})})}),e.jsx("div",{className:"reviewHeader__name-container",children:e.jsx("p",{className:"reviewHeader__name",children:de((g=s==null?void 0:s.ownerId)==null?void 0:g.firstName)})})]}),e.jsx("div",{children:(p==null?void 0:p.user)!==((E=s==null?void 0:s.ownerId)==null?void 0:E._id)&&((C=s==null?void 0:s.reviews)==null?void 0:C.length)===0?e.jsxs("div",{className:"mx-2 my-2 d-flex flex-column",style:{alignItems:"end"},children:[e.jsxs("button",{className:"edit-btnn display-flex-aic-jcsb",onClick:j,children:[e.jsx("img",{src:Ut,alt:""}),e.jsx("span",{children:"Review"})]}),e.jsx("h6",{className:"text-white",children:"Be the first one to write a Review to this account"})]}):(p==null?void 0:p.user)!==((T=s==null?void 0:s.ownerId)==null?void 0:T._id)&&((A=s==null?void 0:s.reviews)==null?void 0:A.length)>0&&e.jsx("div",{className:"mx-2 my-2 d-flex justify-content-end",children:e.jsxs("button",{className:"edit-btnn display-flex-aic-jcsb",onClick:j,children:[e.jsx("img",{src:Ut,alt:""}),e.jsx("span",{children:"Review"})]})})})]}),(p==null?void 0:p.user)===((R=s==null?void 0:s.ownerId)==null?void 0:R._id)&&((P=s==null?void 0:s.reviews)==null?void 0:P.length)===0&&e.jsx("div",{className:"text-white d-flex justify-content-center align-items-center h-100",children:e.jsx("h6",{children:"No Reviews to show"})})]}),((O=s==null?void 0:s.reviews)==null?void 0:O.length)>0&&e.jsx("div",{className:"col-12 col-sm-12 col-md-12 col-lg-12",children:e.jsx("section",{className:"fdc reviewHeader__rating",children:e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col-6 col-sm-6 col-md-2 col-lg-2",children:e.jsxs("div",{className:"reviewHeader__rating-container1",children:[e.jsxs("div",{className:"reviewHeader__rating-block",children:[(s==null?void 0:s.reviews)&&e.jsx("span",{className:"reviewHeader__rating-point",children:l}),e.jsx("img",{className:"reviewHeader__rating-block-star",src:g9,alt:"star"})]}),e.jsx("p",{className:"reviewHeader__rating-content",children:"Out of 5 Reviews"}),e.jsxs("p",{className:"reviewHeader__rating-total",children:["Total Ratings: ",c]})]})}),e.jsx("div",{className:"col-6 col-sm-6 col-md-4 col-lg-3",children:e.jsx("div",{className:"reviewHeader__rating-container2",children:i==null?void 0:i.map((M,L)=>{var F;return e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"p-0 col-3",children:e.jsxs("p",{className:"reviewHeader__rating-num",children:[5-L," *"]})}),e.jsx("div",{className:"p-0 col-6 mt-2",children:e.jsx(Tt,{spacing:2,sx:{flexGrow:1},children:e.jsx(y,{variant:"determinate",value:`${M.count/((F=s==null?void 0:s.reviews)==null?void 0:F.length)*100}`})})}),e.jsx("div",{className:"p-0 col-3",children:e.jsx("p",{className:"reviewHeader__rating-count",children:M==null?void 0:M.count})})]},L)})})}),e.jsx("div",{className:"col-12 col-sm-12 col-md-6 col-lg-7",children:e.jsx("div",{className:"display-flex-aic-jcsb review-progress",children:n==null?void 0:n.map((M,L)=>e.jsxs("div",{className:"reviewprogress-container",children:[e.jsx(x9,{count:M==null?void 0:M.count,sum:M==null?void 0:M.sum}),e.jsx("p",{className:"review-progress-content",children:de(M==null?void 0:M.module)})]},L))})})]})})})]})}),e.jsx(j9,{review:t,setReview:a,loadingReview:_,setloadingReview:x,submitReview:I})]})}const _9=({userReview:s,avgrating:t,totalReviewCount:a})=>{let i={},n=[];const r=()=>{var c,o;i={"@context":"https://schema.org","@type":"Person",name:(c=s==null?void 0:s.ownerId)==null?void 0:c.firstName,image:(o=s==null?void 0:s.ownerId)==null?void 0:o.avatar,aggregateRating:{"@type":"AggregateRating",ratingValue:t,reviewCount:a,bestRating:"5",worstRating:"1"}}},l=async()=>{var o,p,h,d;let c=((o=s==null?void 0:s.reviews)==null?void 0:o.length)>5?5:(p=s==null?void 0:s.reviews)==null?void 0:p.length;await((d=(h=s==null?void 0:s.reviews)==null?void 0:h.slice(0,c))==null?void 0:d.map(u=>{var f;const m={"@type":"Review",author:{"@type":"Person",name:(f=u==null?void 0:u.userId)==null?void 0:f.firstName},reviewBody:u==null?void 0:u.comment,reviewRating:{"@type":"Rating",ratingValue:u==null?void 0:u.ratings},datePublished:(u==null?void 0:u.createdAt)||new Date,itemReviewed:{"@type":"CreativeWork",name:"Person"}};n.push(m)}))};return b.useEffect(()=>{r(),l(),{...i,review:[...n]}},[]),e.jsx(e.Fragment,{children:e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({...i,review:[...n]})}})})};
1040function x0(){var S,g,E,C,T,A,R,P,O,M,L,F,U,Z,ne,K,te,q,H,X,ee,se,ae,B,W;const s=ts().reviewUniqueId,{errorToast:t,successToast:a,warningToast:i,errorHandle:n}=he(),r=ge(),{userReview:l,loading:c}=G(Q=>Q.review),{userProfile:o}=G(Q=>Q.profile),[p,h]=b.useState("all"),[d,u]=b.useState({showReview:!1,reviewComment:"",ratings:0}),m=b.useCallback(async()=>{try{r(s2());const Q=await b9(Ee(s)),{reviews:ie}=Q==null?void 0:Q.data;r(Vi(ie)),r(gl())}catch(Q){r(gl()),n(Q)}},[r,s]),f=Q=>{const ie=Q==null?void 0:Q.reduce((pe,me)=>{const Ce=me.module;return pe[Ce]?(pe[Ce].count+=1,pe[Ce].sum+=me.ratings):pe[Ce]={count:1,sum:me.ratings},pe},{}),Y=ie?Object.entries(ie).map(([pe,{count:me,sum:Ce}])=>({module:pe,count:me,sum:Ce})):[];return Gb.map(pe=>({...pe,...Y.find(me=>me.module===pe.module)}))},v=Q=>{const ie=Q==null?void 0:Q.reduce((pe,me)=>{const Ce=me.ratings;return pe[Ce]?pe[Ce].count+=1:pe[Ce]={count:1},pe},{}),Y=ie?Object.entries(ie).map(([pe,{count:me}])=>({rating:Number(pe),count:me})):[];return Jb.map(pe=>({...pe,...Y.find(me=>me.rating==pe.rating)}))},N=f(l==null?void 0:l.reviews),_=v(l==null?void 0:l.reviews);We(()=>{m()},[m]);const x=o?(S=o==null?void 0:o.businesscard)==null?void 0:S.summary:`${(g=l==null?void 0:l.ownerId)==null?void 0:g.firstName}'s Reviews - TickBig`,j=`${(E=l==null?void 0:l.ownerId)==null?void 0:E.firstName}'s Reviews - TickBig`,I=o?`${(C=o==null?void 0:o.user)==null?void 0:C.firstName} ${(T=o==null?void 0:o.user)==null?void 0:T.lastName} - ${(R=(A=o==null?void 0:o.businesscard)==null?void 0:A.address)==null?void 0:R.city}'s Reviews, ${(P=o==null?void 0:o.user)==null?void 0:P.firstName} ${(O=o==null?void 0:o.user)==null?void 0:O.lastName} - ${(M=o==null?void 0:o.user)==null?void 0:M.subType}'s Reviews, ${(L=o==null?void 0:o.user)==null?void 0:L.firstName} ${(F=o==null?void 0:o.user)==null?void 0:F.lastName} - ${(U=o==null?void 0:o.businesscard)==null?void 0:U.highestEducation} @ ${(Z=o==null?void 0:o.businesscard)==null?void 0:Z.studentsCollegeName}'s Reviews`:`${(ne=l==null?void 0:l.ownerId)==null?void 0:ne.firstName} ${(K=l==null?void 0:l.ownerId)==null?void 0:K.lastName} - ${(te=l==null?void 0:l.ownerId)==null?void 0:te.subType}'s Reviews`,w=o?(H=(q=o==null?void 0:o.socialLink)==null?void 0:q.twitterLink)==null?void 0:H.split("/")[4]:"@tickbig",y={title:j,description:x,type:`profile:${(X=l==null?void 0:l.ownerId)==null?void 0:X.firstName}`,twitterusername:w,keywords:I,canonical:window.location.href,landingUrl:window.location.href,imageUrl:(ee=l==null?void 0:l.ownerId)==null?void 0:ee.avatar},k=(((se=l==null?void 0:l.reviews)==null?void 0:se.reduce((Q,ie)=>Q+(ie==null?void 0:ie.ratings),0))/((ae=l==null?void 0:l.reviews)==null?void 0:ae.length)).toFixed(1);return e.jsx(e.Fragment,{children:c?e.jsx(os,{}):e.jsxs(e.Fragment,{children:[e.jsx(en,{...y}),e.jsx(_9,{userReview:l,avgrating:k,totalReviewCount:(B=l==null?void 0:l.reviews)==null?void 0:B.length}),e.jsx(v9,{userReview:l,review:d,setReview:u,rate:_,moduleRate:N.splice(1),loadReview:m,avgrating:k,totalReviewCount:(W=l==null?void 0:l.reviews)==null?void 0:W.length}),e.jsx(kN,{userReview:l,headFilter:p,setHeadFilter:h})]})})}const N9=Object.freeze(Object.defineProperty({__proto__:null,default:x0},Symbol.toStringTag,{value:"Module"}));function w9(){const{user:s,verified:t,isGreen:a}=G(i=>i.auth);return e.jsxs(e.Fragment,{children:[e.jsx(ao,{hideProgressBar:!0,autoClose:800,position:"top-center"}),e.jsxs(io,{children:[e.jsx(ce,{path:"/home",element:s&&t?e.jsx(Cn,{}):e.jsx(rs,{to:"/",replace:!0})}),e.jsx(ce,{path:"/",element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(p9,{})}),e.jsx(ce,{path:"/privacy",element:e.jsx(tp,{})}),e.jsx(ce,{path:"/about",element:e.jsx(ap,{})}),e.jsx(ce,{path:"/blog/how-to-raise-fund-faster",element:e.jsx(Op,{})}),e.jsx(ce,{path:"/blog",element:e.jsx(Dp,{})}),e.jsx(ce,{path:"/blog/:slug",element:e.jsx(qp,{})}),e.jsx(ce,{path:"/maintenance",element:e.jsx(wn,{})}),e.jsx(ce,{path:"/maintenance/superadmin-access",element:e.jsx(wn,{})}),e.jsx(ce,{path:"/contact",element:e.jsx(np,{})}),e.jsx(ce,{path:"/forgotpassword",element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(Yk,{})}),e.jsxs(ce,{element:e.jsx(sS,{}),children:[e.jsx(ce,{path:"/signin",element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(u0,{})}),e.jsx(ce,{path:"/signup",element:s&&t?e.jsx(rs,{to:"/home",replace:!0}):e.jsx(p0,{})})]}),e.jsxs(ce,{element:e.jsx(tS,{}),children:[e.jsx(ce,{path:"/review/:reviewUniqueId",element:e.jsx(x0,{})}),e.jsx(ce,{path:"/profile/:userUniqueId",element:e.jsx(h0,{})})]}),e.jsx(ce,{path:"*",element:e.jsx(rs,{to:s&&t?"/home":"/signin",replace:!0})})]})]})}const La=async()=>{var i,n,r,l,c,o;let s=await op();const t=((n=(i=s==null?void 0:s.data)==null?void 0:i.incomings)==null?void 0:n.map(p=>p._id))||[],a=((l=(r=s==null?void 0:s.data)==null?void 0:r.pendings)==null?void 0:l.map(p=>p._id))||[];it.dispatch(Su(t,a)),it.dispatch(wu((c=s==null?void 0:s.data)==null?void 0:c.frieds)),it.dispatch(Oh((o=s==null?void 0:s.data)==null?void 0:o.pendings))},S9=s=>{const t=ge(),a=Cs(),{successToast:i}=he(),n=G(c=>c.userProfile),r=b.useRef(null),l=b.useRef(a);b.useEffect(()=>{l.current=a},[a]),b.useEffect(()=>{try{if(!s){console.warn("[useSocketEvents] socket or userId missing");return}const c=gu();if(!c){console.warn("[useSocketEvents] socket connection failed");return}return r.current=c,E1(),L1(),F1(o=>{Array.isArray(o)&&t(g2(o))}),D1(async o=>{var h,d,u;const p=await yi();t(ji((h=p==null?void 0:p.data)==null?void 0:h.adminsFor)),i(`${(u=(d=o==null?void 0:o.role)==null?void 0:d._created_by)==null?void 0:u.firstName} added you as an Admin.`),t(hv(o==null?void 0:o.role)),t(Ts(o==null?void 0:o.notificationStatus))}
1040),q1(async o=>{var h,d,u;const p=await yi();t(ji((h=p==null?void 0:p.data)==null?void 0:h.adminsFor)),i(`${(u=(d=o==null?void 0:o.role)==null?void 0:d._created_by)==null?void 0:u.firstName} updated your Admin permissions.`),t(uv(o==null?void 0:o.role)),t(Ts(o==null?void 0:o.notificationStatus))}),V1(async o=>{var h,d,u;const p=await yi();t(ji((h=p==null?void 0:p.data)==null?void 0:h.adminsFor)),i(`${(u=(d=o==null?void 0:o.role)==null?void 0:d._created_by)==null?void 0:u.firstName} removed your Admin access.`),t(pv(o==null?void 0:o.roleId)),t(Ts(o==null?void 0:o.notificationStatus))}),z1(async o=>{var p,h;await La(),i(`${(p=o==null?void 0:o.sentBy)==null?void 0:p.firstName} sent you a connection request.`),t(Ls((h=o==null?void 0:o.sentBy)==null?void 0:h._id,"IncomingAdd")),t(Ts(o==null?void 0:o.notificationStatus))}),W1(async o=>{var p,h,d;await La(),i(`${(p=o==null?void 0:o.me)==null?void 0:p.firstName} accepted your connection request.`),t(Ls(o==null?void 0:o.me,"friendAdd")),t(Ts(o==null?void 0:o.newNotification)),(s===((h=o==null?void 0:o.me)==null?void 0:h._id)||s===((d=n==null?void 0:n.user)==null?void 0:d._id))&&(t(Ls(o==null?void 0:o.senderData,"friendAdd")),t(ys(o==null?void 0:o.senderData,"friendAdd")))}),$1(async o=>{t(Ls(o==null?void 0:o.cancel2,"IncomingRemove")),await La()}),H1(async o=>{t(Ls(o==null?void 0:o.cancel2,"PendingRemove")),await La()}),G1(async o=>{var p,h;await La(),t(Qa(o.unfollowedBy,o==null?void 0:o.unfollowedUserNotificationCount)),o.unfollowedBy===((p=n==null?void 0:n.user)==null?void 0:p._id)&&t(ha(o.unfollowing)),o.unfollowing===((h=n==null?void 0:n.user)==null?void 0:h._id)&&t(ha(o.unfollowedBy))}),J1(o=>{var p;i(`${(p=o==null?void 0:o.likedBy)==null?void 0:p.firstName} liked your fundraising post.`),t(Ts(o.notificationData))}),Y1(o=>{var p;i(`${(p=o==null?void 0:o.likedBy)==null?void 0:p.firstName} super liked your fundraising post.`),t(Ts(o.notificationData))}),Z1(o=>{i(`${o.myName} applied to the Job posted by you.`),t(Ts(o==null?void 0:o.notificationStatus))}),K1(o=>{i(`${o.myName} applied to the Project posted by you.`),t(Ts(o==null?void 0:o.notificationStatus))}),Q1(o=>{i(`${o.myName} pitched to the investing posted by you.`)}),X1(o=>{i(`Admin ${o.myName} posted a Job on behalf of you.`),t(Ts(o==null?void 0:o.notificationStatus))}),ef(o=>{i(`Admin ${o.myName} posted a Project on behalf of you.`),t(Ts(o==null?void 0:o.notificationStatus))}),sf(o=>{i(`Admin ${o.myName} posted a Fundraising on behalf of you.`),t(Ts(o==null?void 0:o.notificationStatus))}),tf(o=>{i(`Admin ${o.myName} posted an Investing on behalf of you.`),t(Ts(o==null?void 0:o.notificationStatus))}),af(o=>{i(`${o.myName} (Service Provider) viewed your contact detail.`),t(Ts(o==null?void 0:o.notificationData))}),nf(o=>{i(`${o.myName} (Service Requster) viewed your contact detail.`),t(Ts(o==null?void 0:o.notificationData))}),rf(o=>{var p;i(`${o.myName} accepted your bid for ${(p=o==null?void 0:o.ans)==null?void 0:p.serviceList} Service.`),t(Ts(o==null?void 0:o.notificationData))}),of(o=>{var p;i(`${o.myName} placed a bid for your ${(p=o==null?void 0:o.ans)==null?void 0:p.serviceList} Service Request.`),t(Ts(o==null?void 0:o.notificationData))}),lf(o=>{(async()=>{if(o.nonAmboProducts.length>0){const p=await Du(),{currentPlan:h,freeBie:d}=p==null?void 0:p.data;t(Mh(h,d))}o.amboProducts.length>0&&o.amboProducts.map(p=>(p.name==="AMBO SERVICE PROVIDER"&&t(fo(o.timestamp)),!0))})()}),B1(o=>{o!=null&&o.messageId&&(o!=null&&o.deliveredBy)&&t(h2(o.messageId,o.deliveredBy,o.convoId))}),O1(o=>{o!=null&&o.conversationId&&(o!=null&&o.userId)&&t(x2(o))}),U1(o=>{o!=null&&o.conversationId&&t(f2(o))}),()=>{const o=Ds();o&&(o.off("userTyping"),o.off("userStoppedTyping"),o.off("user:init"),o.off("user:fetch"),o.off("user:status"),o.off("NEW_ADMIN"),o.off("UPDATE_ADMIN"),o.off("DELETE_ADMIN"),o.off("SEND_REQUEST"),o.off("ACCEPT_REQUEST"),o.off("CANCEL_REQUEST"),o.off("DECLINE_REQUEST"),o.off("UNFOLLOW_FRIEND"),o.off("MESSAGE_DELIVERED"),o.off("Like_FUNDRAISING"),o.off("SuperLike_FUNDRAISING"),o.off("JOB_APPLIED"),o.off("PROJECT_APPLIED"),o.off("INVESTING_PITCHED"),o.off("NEW_JOB_POSTED"),o.off("NEW_PROJECT_POSTED"),o.off("NEW_FUNDRAISING_POSTED"),o.off("NEW_INVESTING_POSTED"),o.off("SERVICE_REQ_CONTACT_VIEWED"),o.off("SERVICE_PROV_CONTACT_VIEWED"))}}catch(c){console.error("[useSocketEvents] Error setting up socket events:",c)}},[s,t]),b.useEffect(()=>{const c=r.current;if(!c||!c.connected)return;const o=p=>{var d,u,m;const h=a.pathname;if(h.includes("/messages/"))try{const f=h.split("/").pop();Et(decodeURIComponent(f))!=((d=p==null?void 0:p.message)==null?void 0:d.conversationId)&&i("New message received")}catch(f){console.error("Error decrypting conversation ID:",f),i("New message received")}else i("New message received");(u=p==null?void 0:p.message)!=null&&u._id&&((m=p==null?void 0:p.message)!=null&&m.fromId)&&(t(jt(p.message,p.message.conversationId)),t(ft(p.message,p.message.conversationId,p.message.fromId,p.conversation.convoStatus)),M1({messageId:p.message._id,sender:s,convoId:p.message.conversationId}))};return c.on("receiveMessage",o),()=>{c.off("receiveMessage",o)}},[a.pathname,s,t])};fg.initialize("G-0SZE3DFLPJ");function k9(){const s=Cs(),{user:t}=G(a=>a.auth);return b.useEffect(()=>{Z_(),K_(t);const a=s.pathname+s.search,i=(t==null?void 0:t._id)||null;Q_(a,i)},[s,t]),null}function C9(){ge();const s=G(n=>n.auth),t=localStorage.getItem("permissions");t&&(t!=null&&t.length)&&JSON.parse(t);const[a,i]=_e.useState(()=>localStorage.getItem("maintenance_mode")==="true");return S9(s==null?void 0:s.user),b.useEffect(()=>{(async()=>
1040{if(window.location.pathname!=="/maintenance")try{const r=await sp(),l=!!(r!=null&&r.isMaintenanceMode);localStorage.setItem("maintenance_mode",l);const c=!!localStorage.getItem("x-maintenance-key");i(!!(l&&!c))}catch{}})()},[]),b.useEffect(()=>{const n="26.02.26";(localStorage.getItem("app_version")||"1.0.0")!=n&&(localStorage.clear(),caches.keys().then(l=>{l.forEach(c=>caches.delete(c))}),localStorage.setItem("app_version",n),window.location.reload())},[]),a&&window.location.pathname!=="/maintenance"?e.jsx(al,{children:e.jsx(wn,{})}):e.jsx(e.Fragment,{children:e.jsx(_e.StrictMode,{children:e.jsxs(al,{children:[e.jsx(k9,{}),e.jsx(_e.Suspense,{fallback:e.jsx(os,{}),children:s!=null&&s.isAuthenticated&&s.verified?e.jsx(Yw,{}):s!=null&&s.isAuthenticated&&!s.verified?e.jsx(eS,{}):e.jsx(w9,{})})]})})})}let T9=ug(it);const I9=ng({palette:{background:{paper:"#fff"},text:{primary:"#173A5E",secondary:"#46505A"},action:{active:"#001E3C"}}}),Ui=document.getElementById("root"),Vc=e.jsx(b0,{children:e.jsx(y0,{store:it,children:e.jsx(ig,{theme:I9,children:e.jsx(pg,{persistor:T9,children:e.jsx(C9,{})})})})});Ui.hasChildNodes()?f0(Ui,Vc):j0(Ui).render(Vc);export{D3 as $,nt as A,hk as B,Is as C,Gn as D,Me as E,Ks as F,go as G,jo as H,Ss as I,xA as J,fA as K,os as L,hn as M,gA as N,vA as O,bA as P,sp as Q,nA as R,IT as S,m0 as T,_T as U,ua as V,Kb as W,Cl as X,Fa as Y,bT as Z,bs as _,xn as a,PT as a$,Vo as a0,j9 as a1,JT as a2,Ee as a3,b8 as a4,J3 as a5,YT as a6,rt as a7,eI as a8,Ke as a9,Gh as aA,Zs as aB,aT as aC,Xb as aD,du as aE,Oo as aF,rT as aG,Za as aH,qb as aI,yT as aJ,Ot as aK,Bt as aL,d6 as aM,Kp as aN,Qp as aO,It as aP,Iu as aQ,lT as aR,UT as aS,GT as aT,OT as aU,aI as aV,_a as aW,Jn as aX,As as aY,c3 as aZ,XT as a_,y8 as aa,sI as ab,xT as ac,fT as ad,Po as ae,$n as af,G3 as ag,ya as ah,NT as ai,Hu as aj,DT as ak,nI as al,N8 as am,iI as an,w8 as ao,QT as ap,MT as aq,_8 as ar,$T as as,f8 as at,bn as au,ht as av,$h as aw,ZT as ax,tI as ay,j8 as az,$N as b,jt as b$,rI as b0,BT as b1,tT as b2,va as b3,WT as b4,VT as b5,zT as b6,HT as b7,KT as b8,Hs as b9,mI as bA,CT as bB,fI as bC,k8 as bD,pI as bE,FT as bF,cI as bG,hI as bH,jI as bI,wI as bJ,jT as bK,Vb as bL,dT as bM,hT as bN,mT as bO,pi as bP,dI as bQ,Xs as bR,NI as bS,A8 as bT,SI as bU,F8 as bV,L8 as bW,Uo as bX,ET as bY,wT as bZ,qt as b_,Gs as ba,Us as bb,oI as bc,v8 as bd,vT as be,yI as bf,M8 as bg,bI as bh,P8 as bi,uI as bj,E8 as bk,gI as bl,T8 as bm,xI as bn,vI as bo,LT as bp,I8 as bq,N2 as br,$b as bs,_I as bt,qT as bu,lI as bv,S8 as bw,C8 as bx,ut as by,Yh as bz,HN as c,Bh as c$,ft as c0,vo as c1,Ds as c2,Qb as c3,BI as c4,q8 as c5,OI as c6,V8 as c7,TI as c8,O8 as c9,QI as cA,Z8 as cB,KI as cC,Y8 as cD,JI as cE,W8 as cF,YI as cG,eA as cH,J8 as cI,HI as cJ,WI as cK,sA as cL,tA as cM,aA as cN,zI as cO,XI as cP,G8 as cQ,ZI as cR,H8 as cS,GI as cT,uT as cU,$I as cV,z as cW,oT as cX,j3 as cY,cp as cZ,Ls as c_,II as ca,FI as cb,D8 as cc,Pt as cd,AI as ce,U8 as cf,RT as cg,EI as ch,MI as ci,PI as cj,CI as ck,DI as cl,Zi as cm,sT as cn,qI as co,UI as cp,kI as cq,pT as cr,cT as cs,LI as ct,RI as cu,B8 as cv,VI as cw,z8 as cx,$8 as cy,HS as cz,GN as d,lp as d0,ys as d1,eT as d2,Xn as d3,gT as d4,fp as d5,dn as d6,xp as d7,X8 as d8,_
10401 as d9,iA as dA,ST as dB,PS as dC,kT as dD,AT as dE,R8 as dF,yi as dG,ji as dH,NA as dI,Kn as dJ,av as dK,iT as dL,Jp as dM,cA as da,Q8 as db,TT as dc,v3 as dd,js as de,nn as df,ka as dg,Ca as dh,dA as di,Lo as dj,Nt as dk,sn as dl,rn as dm,Fo as dn,an as dp,_n as dq,tn as dr,gn as ds,xN as dt,Fh as du,F2 as dv,rA as dw,K8 as dx,lA as dy,oA as dz,_A as e,ca as f,de as g,uk as h,he as i,We as j,nT as k,uA as l,Et as m,yA as n,jA as o,gN as p,Nn as q,mA as r,Da as s,ks as t,Be as u,hA as v,Lu as w,pA as x,L2 as y,Ao as z};

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.