PageSourceSearch

https://tektime-stage-omega.vercel.app/static/js/1230.b69f6273.chunk.js

js tektime-stage-omega.vercel.app collected 2026-10-03 07:52:28 UTC 71,601 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunktektime=self.webpackChunktektime||[]).push([[1230],{31230:(e,o,n)=>{n.r(o),n.d(o,{default:()=>V});var l=n(89379),t=n(80045),i=n(9906),a=n(65043),s=n(97950),r=n(14282),d=n(78602),c=n(53519),m=n(73722),p=n(47994),u=n(88779),g=n(67909),h=n(61072),x=n(27417),f=n(5328),v=n(20243),_=n(52815),A=n(85369),b=n(2364),j=n(64038),C=n(34960),k=n(22285),E=n(14524),y=n(74117),w=n(56403),R=n(73216),P=n(28402),T=(n(80721),n(91036)),N=n(71910),S=n(3784),I=n(70579);const L=["domain"],V=e=>{let{teams:o}=e;const{formState:n,setFormState:V,login:O,googleLogin:B,googleFullName:F,visioGoogleMeet:M,emailGmail:G,setEmailGmail:z}=(0,j.xW)();console.log("google full name",F);(0,R.zy)();const{profileImage:U,setProfileImage:H,setUser:D,setCallUser:Z}=(0,P.p)(),K=((0,R.Zp)(),JSON.parse(i.A.get("is_google_login"))),[J,W]=(0,a.useState)(JSON.parse(i.A.get("is_outlook_login"))||!1),[Y,q]=(0,a.useState)(null),[X,Q]=((0,a.useRef)(null),(0,a.useState)(null)),[$,ee]=((0,a.useRef)(null),(0,a.useState)(null)),[oe,ne]=(0,a.useState)(!1),[le]=(0,y.Bd)("global"),te=async()=>{ne(!0);try{var e;const o=parseInt(i.A.get("user_id")),n=await w.A.get("".concat(E.JR,"/users/").concat(o),{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i.A.get("token"))}}),l=null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.data;l&&(H(null===l||void 0===l?void 0:l.image),D(l),ee(l))}catch(l){var o,n;T.oR.error(le((null===l||void 0===l||null===(o=l.response)||void 0===o||null===(n=o.data)||void 0===n?void 0:n.errors[0])||(null===l||void 0===l?void 0:l.message)))}finally{ne(!1)}};(0,a.useEffect)(()=>{te()},[]);const ie=[{value:"Google Agenda",label:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(v.F4b,{style:{color:"#0A66C2"},className:"fs-5 ms-2"})," Google Agenda"]})}],ae=[{value:"Google Meet",label:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,I.jsx)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,I.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[(0,I.jsx)("path",{d:"M2 11.9556C2 8.47078 2 6.7284 2.67818 5.39739C3.27473 4.22661 4.22661 3.27473 5.39739 2.67818C6.7284 2 8.47078 2 11.9556 2H20.0444C23.5292 2 25.2716 2 26.6026 2.67818C27.7734 3.27473 28.7253 4.22661 29.3218 5.39739C30 6.7284 30 8.47078 30 11.9556V20.0444C30 23.5292 30 25.2716 29.3218 26.6026C28.7253 27.7734 27.7734 28.7253 26.6026 29.3218C25.2716 30 23.5292 30 20.0444 30H11.9556C8.47078 30 6.7284 30 5.39739 29.3218C4.22661 28.7253 3.27473 27.7734 2.67818 26.6026C2 25.2716 2 23.5292 2 20.0444V11.9556Z",fill:"white"}),(0,I.jsx)("path",{d:"M5 23.5601C5 24.3557 5.64998 25.0001 6.45081 25.0001H6.47166C5.65857 25.0001 5 24.3557 5 23.5601Z",fill:"#FBBC05"}),(0,I.jsx)("path",{d:"M17.4678 12.4V16.1596L22.5364 12.0712V8.43999C22.5364 7.6444 21.8864 7 21.0856 7H10.1045L10.0947 12.4H17.4678Z",fill:"#FBBC05"}),(0,I.jsx)("path",{d:"M17.4671 19.9207H10.0818L10.0732 25.0003H21.085C21.887 25.0003 22.5358 24.3559 22.5358 23.5603V20.2819L17.4671 16.1611V19.9207Z",fill:"#34A853"}),(0,I.jsx)("path",{d:"M10.1042 7L5 12.4H10.0956L10.1042 7Z",fill:"#EA4335"}),(0,I.jsx)("path",{d:"M5 19.9204V23.56C5 24.3556 5.65857 25 6.47166 25H10.0736L10.0821 19.9204H5Z",fill:"#1967D2"}),(0,I.jsx)("path",{d:"M10.0956 12.3999H5V19.9203H10.0821L10.0956 12.3999Z",fill:"#4285F4"}),(0,I.jsx)("path",{d:"M26.9926 22.2796V9.9197C26.7068 8.27931 24.9077 10.1597 24.9077 10.1597L22.5371 12.0713V20.2804L25.9305 23.0392C27.1557 23.2 26.9926 22.2796 26.9926 22.2796Z",fill:"#34A853"}),(0,I.jsx)("path",{d:"M17.4678 16.1594L22.5377 20.2814V12.0723L17.4678 16.1594Z",fill:"#188038"})]})]})," ","Google Meet"]})}],se=[{value:"Gmail",label:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,I.jsx)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,I.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[(0,I.jsx)("path",{d:"M2 11.9556C2 8.47078 2 6.7284 2.67818 5.39739C3.27473 4.22661 4.22661 3.27473 5.39739 2.67818C6.7284 2 8.47078 2 11.9556 2H20.0444C23.5292 2 25.2716 2 26.6026 2.67818C27.7734 3.27473 28.7253 4.22661 29.3218 5.39739C30 6.7284 30 8.47078 30 11.9556V20.0444C30 23.5292 30 25.2716 29.3218 26.6026C28.7253 27.7734 27.7734 28.7253 26.6026 29.3218C25.2716 30 23.5292 30 20.0444 30H11.9556C8.47078 30 6.7284 30 5.39739 29.3218C4.22661 28.7253 3.27473 27.7734 2.67818 26.6026C2 25.2716 2 23.5292 2 20.0444V11.9556Z",fill:"white"}),(0,I.jsx)("path",{d:"M22.0515 8.52295L16.0644 13.1954L9.94043 8.52295V8.52421L9.94783 8.53053V15.0732L15.9954 19.8466L22.0515 15.2575V8.52295Z",fill:"#EA4335"}),(0,I.jsx)("path",{d:"M23.6231 7.38639L22.0508 8.52292V15.2575L26.9983 11.459V9.17074C26.9983 9.17074 26.3978 5.90258 23.6231 7.38639Z",fill:"#FBBC05"}),(0,I.jsx)("path",{d:"M22.0508 15.2575V23.9924H25.8428C25.8428 23.9924 26.9219 23.8813 26.9995 22.6513V11.459L22.0508 15.2575Z",fill:"#34A853"}),(0,I.jsx)("path",{d:"M9.94811 24.0001V15.0732L9.94043 15.0669L9.94811 24.0001Z",fill:"#C5221F"}),(0,I.jsx)("path",{d:"M9.94014 8.52404L8.37646 7.39382C5.60179 5.91001 5 9.17692 5 9.17692V11.4651L9.94014 15.0667V8.52404Z",fill:"#C5221F"}
1),(0,I.jsx)("path",{d:"M9.94043 8.52441V15.0671L9.94811 15.0734V8.53073L9.94043 8.52441Z",fill:"#C5221F"}),(0,I.jsx)("path",{d:"M5 11.4668V22.6591C5.07646 23.8904 6.15673 24.0003 6.15673 24.0003H9.94877L9.94014 15.0671L5 11.4668Z",fill:"#4285F4"})]})]})," ","Gmail"]})}],re=[{value:"Outlook Agenda",label:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_.PMk,{style:{color:"#0A66C2"},className:"fs-5"})," Outlook Agenda"]})}],de=[{value:"Microsoft Teams",label:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,I.jsx)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,I.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[(0,I.jsx)("rect",{x:"10",y:"2",width:"20",height:"28",rx:"2",fill:"#1066B5"}),(0,I.jsx)("rect",{x:"10",y:"2",width:"20",height:"28",rx:"2",fill:"url(#paint0_linear_87_7742)"}),(0,I.jsx)("rect",{x:"10",y:"5",width:"10",height:"10",fill:"#32A9E7"}),(0,I.jsx)("rect",{x:"10",y:"15",width:"10",height:"10",fill:"#167EB4"}),(0,I.jsx)("rect",{x:"20",y:"15",width:"10",height:"10",fill:"#32A9E7"}),(0,I.jsx)("rect",{x:"20",y:"5",width:"10",height:"10",fill:"#58D9FD"}),(0,I.jsx)("mask",{id:"mask0_87_7742",maskUnits:"userSpaceOnUse",x:"8",y:"14",width:"24",height:"16",children:(0,I.jsx)("path",{d:"M8 14H30C31.1046 14 32 14.8954 32 16V28C32 29.1046 31.1046 30 30 30H10C8.89543 30 8 29.1046 8 28V14Z",fill:"url(#paint1_linear_87_7742)"})}),(0,I.jsxs)("g",{mask:"url(#mask0_87_7742)",children:[(0,I.jsx)("path",{d:"M32 14V18H30V14H32Z",fill:"#135298"}),(0,I.jsx)("path",{d:"M32 30V16L7 30H32Z",fill:"url(#paint2_linear_87_7742)"}),(0,I.jsx)("path",{d:"M8 30V16L33 30H8Z",fill:"url(#paint3_linear_87_7742)"})]}),(0,I.jsx)("path",{d:"M8 12C8 10.3431 9.34315 9 11 9H17C18.6569 9 20 10.3431 20 12V24C20 25.6569 18.6569 27 17 27H8V12Z",fill:"#000000","fill-opacity":"0.3"}),(0,I.jsx)("rect",{y:"7",width:"18",height:"18",rx:"2",fill:"url(#paint4_linear_87_7742)"}),(0,I.jsx)("path",{d:"M14 16.0693V15.903C14 13.0222 11.9272 11 9.01582 11C6.08861 11 4 13.036 4 15.9307V16.097C4 18.9778 6.07278 21 9 21C11.9114 21 14 18.964 14 16.0693ZM11.6424 16.097C11.6424 18.0083 10.5665 19.1579 9.01582 19.1579C7.46519 19.1579 6.37342 17.9806 6.37342 16.0693V15.903C6.37342 13.9917 7.44937 12.8421 9 12.8421C10.5348 12.8421 11.6424 14.0194 11.6424 15.9307V16.097Z",fill:"white"}),(0,I.jsxs)("defs",{children:[(0,I.jsxs)("linearGradient",{id:"paint0_linear_87_7742",x1:"10",y1:"16",x2:"30",y2:"16",gradientUnits:"userSpaceOnUse",children:[(0,I.jsx)("stop",{"stop-color":"#064484"}),(0,I.jsx)("stop",{offset:"1","stop-color":"#0F65B5"})]}),(0,I.jsxs)("linearGradient",{id:"paint1_linear_87_7742",x1:"8",y1:"26.7692",x2:"32",y2:"26.7692",gradientUnits:"userSpaceOnUse",children:[(0,I.jsx)("stop",{"stop-color":"#1B366F"}),(0,I.jsx)("stop",{offset:"1","stop-color":"#2657B0"})]}),(0,I.jsxs)("linearGradient",{id:"paint2_linear_87_7742",x1:"32",y1:"23",x2:"8",y2:"23",gradientUnits:"userSpaceOnUse",children:[(0,I.jsx)("stop",{"stop-color":"#44DCFD"}),(0,I.jsx)("stop",{offset:"0.453125","stop-color":"#259ED0"})]}),(0,I.jsxs)("linearGradient",{id:"paint3_linear_87_7742",x1:"8",y1:"23",x2:"32",y2:"23",gradientUnits:"userSpaceOnUse",children:[(0,I.jsx)("stop",{"stop-color":"#259ED0"}),(0,I.jsx)("stop",{offset:"1","stop-color":"#44DCFD"})]}),(0,I.jsxs)("linearGradient",{id:"paint4_linear_87_7742",x1:"0",y1:"16",x2:"18",y2:"16",gradientUnits:"userSpaceOnUse",children:[(0,I.jsx)("stop",{"stop-color":"#064484"}),(0,I.jsx)("stop",{offset:"1","stop-color":"#0F65B5"})]})]})]})]})," ","Teams"]})}],ce=[{value:"Outlook",label:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_.PMk,{style:{color:"#0A66C2"},className:"fs-5"})," Outlook"]})}],[me,pe]=(0,a.useState)(!1),[ue,ge]=(0,a.useState)([]),[he,xe]=(0,a.useState)([]),[fe,ve]=(0,a.useState)([]),[_e,Ae]=(0,a.useState)([]),[be,je]=(0,a.useState)([]),[Ce,ke]=(0,a.useState)([]),[Ee,ye]=(0,a.useState)([]),[we,Re]=(0,a.useState)([]),[Pe,Te]=(0,a.useState)([]),[Ne,Se]=(0,a.useState)([]),[Ie,Le]=(0,a.useState)(null===$||void 0===$?void 0:$.t
1itle),[Ve,Oe]=(0,a.useState)(!1),[Be,Fe]=(0,a.useState)(!1),[Me,Ge]=(0,a.useState)(null),[ze,Ue]=(0,a.useState)(!1),[He,De]=(0,a.useState)("integration"),[Ze,Ke]=(0,a.useState)("google"),[Je,We]=(0,a.useState)([]),[Ye,qe]=(0,a.useState)(!1),[Xe,Qe]=(0,a.useState)(!1),[$e,eo]=(0,a.useState)({username:"",password:"",host:"imap.ionos.com",domain:"com"}),[oo,no]=(0,a.useState)(!1),[lo,to]=(0,a.useState)(!1),[io,ao]=(0,a.useState)(!1),[so,ro]=(0,a.useState)(!1),[co,mo]=(0,a.useState)(!1),[po,uo]=(0,a.useState)(!1),go=e=>{"google"===e?xe([...he,{platform:"",value:""}]):"outlook"===e&&je([...be,{platform:"",value:""}])},ho=e=>{"google"===e?ve([...fe,{platform:"",value:""}]):"outlook"===e&&ke([...Ce,{platform:"",value:""}])},xo=e=>{"google"===e?Ae([..._e,{platform:"",value:""}]):"outlook"===e&&ye([...Ee,{platform:"",value:""}])},fo=async(e,o,n)=>{try{if(null!==e&&void 0!==e&&e.id){const l="".concat(E.JR,"/integration-links/").concat(e.id),t=await w.A.delete(l,{headers:{Authorization:"Bearer ".concat(i.A.get("token"))}});200===(null===t||void 0===t?void 0:t.status)&&("google"===n?(xe(e=>e.filter((e,n)=>n!==o)),i.A.set("is_google_login",!1)):"outlook"===n&&(je(e=>e.filter((e,n)=>n!==o)),i.A.set("is_outlook_login",!1)))}else"google"===n?(xe(e=>e.filter((e,n)=>n!==o)),i.A.set("is_google_login",!1)):"outlook"===n&&(je(e=>e.filter((e,n)=>n!==o)),i.A.set("is_outlook_login",!1))}catch(l){console.log("Error while deleting integration link",l)}},vo=async(e,o,n)=>{try{if(null!==e&&void 0!==e&&e.id){const l="".concat(E.JR,"/visioconference-links/").concat(e.id),t=await w.A.delete(l,{headers:{Authorization:"Bearer ".concat(i.A.get("token"))}});200===(null===t||void 0===t?void 0:t.status)&&("google"===n?(ve(e=>e.filter((e,n)=>n!==o)),i.A.set("is_google_login",!1)):"outlook"===n&&(ke(e=>e.filter((e,n)=>n!==o)),i.A.set("is_outlook_login",!1)))}else"google"===n?(ve(e=>e.filter((e,n)=>n!==o)),i.A.set("is_google_login",!1)):"outlook"===n&&(ke(e=>e.filter((e,n)=>n!==o)),i.A.set("is_outlook_login",!1))}catch(l){console.log("Error while deleting visioconference link",l)}},_o=async(e,o,n)=>{try{if(null!==e&&void 0!==e&&e.id){const l="".concat(E.JR,"/email-links/").concat(e.id),t=await w.A.delete(l,{headers:{Authorization:"Bearer ".concat(i.A.get("token"))}});200===(null===t||void 0===t?void 0:t.status)&&("google"===n?(Ae(e=>e.filter((e,n)=>n!==o)),i.A.set("is_google_login",!1),z(null)):"outlook"===n&&(ye(e=>e.filter((e,n)=>n!==o)),i.A.set("is_outlook_login",!1)))}else"google"===n?(Ae(e=>e.filter((e,n)=>n!==o)),i.A.set("is_google_login",!1),z(null)):"outlook"===n&&(ye(e=>e.filter((e,n)=>n!==o)),i.A.set("is_outlook_login",!1))}catch(l){console.log("Error while deleting email link",l)}},Ao=(e,o,n)=>{const{name:l,value:t}=o.target;if("google"===n){const o=[...he];o[e][l]=t,xe(o)}else if("outlook"===n){const o=[...be];o[e][l]=t,je(o)}},bo=(e,o,n)=>{const{name:l,value:t}=o.target;if("google"===n){const o=[...fe];o[e][l]=t,ve(o)}else if("outlook"===n){const o=[...Ce];o[e][l]=t,ke(o)}},jo=(e,o,n)=>{const{name:l,value:t}=o.target;if("google"===n){const o=[..._e];o[e][l]=t,Ae(o)}else if("outlook"===n){const o=[...Ee];o[e][l]=t,ye(o)}},Co=async()=>{try{const e=600,o=700,n=window.screenX+(window.innerWidth-e)/2,l=window.screenY+(window.innerHeight-o)/2,t=window.open("".concat({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"muhammad-zubair-khan",REACT_APP_FIREBASE_SENDER_ID:"221855587819",REACT_APP_VERCEL_GIT_PROVIDER:"github",REACT_APP_FIREBASE_PROJECT_ID:"tektime-be9b8",REACT_APP_VERCEL_PROJECT_ID:"prj_JeGXW4VaczqJaXUOywO5zew7AFFk",REACT_APP_VERCEL_GIT_PULL_REQUEST_ID:"",REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"91c23943eef77667/script.js","viewEndpoint":"91c23943eef77667/view","eventEndpoint":"91c23943eef77667/event","sessionEndpoint":"91c23943eef77667/session"},"speedInsights":{"scriptSrc":"7478b70b1defcb53/script.js","endpoint":"7478b70b1defcb53/vitals"}}',REACT_APP_VERCEL_BRANCH_URL:"tektime-stage-git-main-tektime.vercel.app",REACT_APP_VERCEL_GIT_COMMIT_MESSAGE:"fix(ui/mobile): improve mobile responsiveness & avatar fallback handling\n- Fix runtime crash in CreateUsers.jsx caused by chaining .filter on setTeams return value.\n- Add UI Avatars API (background=EBF4FF&color=7F9CF5) fallback & onError handling for broken profile images in UserRoadmap.jsx, UserTabs.jsx, and TeamCard.jsx.\n- Apply object-fit: cover and object-position: top on member avatar images to prevent head cropping.\n- Convert roadmap view modes to mobile dropdown selector and replace navigation text buttons with chevron icons.\n- Add sticky team member column on mobile roadmap horizontal scrolling for improved UX.\n- Make CreateUsers.jsx and UpdateUser.jsx user forms fully responsive on mobile viewports.\n- Update header demo request buttons (TeamTabs, SolutionTabs) to render icon-only on mobile devices.",REACT_APP_PUSHER_APP_KEY:"a2ed9945973142358902",REACT_APP_PUSHER_APP_CLUSTER:"ap2",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-3M1L4Y208Z",REACT_APP_PUSHER_APP_SECRET:"4cdd2b5c99ce5d59f872",REACT_APP_VERCEL_DEPLOYMENT_ID:"dpl_GfawtDP2H3TJhfTwNh4ZZtpzkj9z",REACT_APP_VERCEL_GIT_REPO_SLUG:"Tektime-Stage",REACT_APP_VERCEL_TARGET_ENV:"production",REACT_APP_FIREBASE_STORAGE_BUCKET:"http://tektime-be9b8.appspot.com",REACT_APP_VERCEL_GIT_COMMIT_SHA:"fe969ad2ae0411e5ca9369f5d2ffb15827302828",REACT_APP_VERCEL_ENV:"production",REACT_APP_VERCEL_GIT_COMMIT_REF:"main",REACT_APP_PUSHER_APP_ID:"2164606",REACT_APP_CONTRACT_ID:"3",REACT_APP_FIREBASE_AUTH_DOMAIN:"tektime-be9b8.firebaseapp.com",REACT_APP_VERCEL_URL:"tektime-stage-m9mk37r6b-tektime.vercel.app",REACT_APP_TINYMCE_API:"ezrlsdfo2hlxrznvzmjtdebv3gsbuhn2o1ptmpnc5n8oj7xz",REACT_APP_VERCEL_PROJECT_PRODUCTION_URL:"tektime-stage-omega.vercel.app",REACT_APP_FIREBASE_API_KEY:"AIzaSyCGvHv2sXo2BET8soCidUcjbxhGo5YBjBk",REACT_APP_VERCEL_GIT_PREVIOUS_SHA:"",REACT_APP_VERCEL_GIT_REPO_ID:"841831269",REACT_APP_FIREBASE_APP_ID:"1:221855587819:web:c93cc2c7e2732009714dae",REACT_APP_FIREBASE_VAPID_KEY:"BIID5Npe6zPx0sPIHIT6GC1zkg3kwP6-KnMlVCbwCsXkQjOrxdWSKS752UhNB_0ALAIQfAXjQqi1tj6yp5pcwqg",REACT_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"muhammad-zubair-k
1han",REACT_APP_VERCEL_GIT_REPO_OWNER:"bissoft"}.REACT_APP_API_BASE_URL,"/outlook-login?user_id=").concat(i.A.get("user_id")),"Outlook Login","width=".concat(e,",height=").concat(o,",top=").concat(l,",left=").concat(n));if(!t)return void T.oR.error("Popup was blocked. Please allow popups for this site.");const a=async e=>{if(console.log("Received message event:",e),e.origin!=="".concat({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"muhammad-zubair-khan",REACT_APP_FIREBASE_SENDER_ID:"221855587819",REACT_APP_VERCEL_GIT_PROVIDER:"github",REACT_APP_FIREBASE_PROJECT_ID:"tektime-be9b8",REACT_APP_VERCEL_PROJECT_ID:"prj_JeGXW4VaczqJaXUOywO5zew7AFFk",REACT_APP_VERCEL_GIT_PULL_REQUEST_ID:"",REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"91c23943eef77667/script.js","viewEndpoint":"91c23943eef77667/view","eventEndpoint":"91c23943eef77667/event","sessionEndpoint":"91c23943eef77667/session"},"speedInsights":{"scriptSrc":"7478b70b1defcb53/script.js","endpoint":"7478b70b1defcb53/vitals"}}',REACT_APP_VERCEL_BRANCH_URL:"tektime-stage-git-main-tektime.vercel.app",REACT_APP_VERCEL_GIT_COMMIT_MESSAGE:"fix(ui/mobile): improve mobile responsiveness & avatar fallback handling\n- Fix runtime crash in CreateUsers.jsx caused by chaining .filter on setTeams return value.\n- Add UI Avatars API (background=EBF4FF&color=7F9CF5) fallback & onError handling for broken profile images in UserRoadmap.jsx, UserTabs.jsx, and TeamCard.jsx.\n- Apply object-fit: cover and object-position: top on member avatar images to prevent head cropping.\n- Convert roadmap view modes to mobile dropdown selector and replace navigation text buttons with chevron icons.\n- Add sticky team member column on mobile roadmap horizontal scrolling for improved UX.\n- Make CreateUsers.jsx and UpdateUser.jsx user forms fully responsive on mobile viewports.\n- Update header demo request buttons (TeamTabs, SolutionTabs) to render icon-only on mobile devices.",REACT_APP_PUSHER_APP_KEY:"a2ed9945973142358902",REACT_APP_PUSHER_APP_CLUSTER:"ap2",REACT_APP_FIREBASE_MEASUREMENT_ID:"G-3M1L4Y208Z",REACT_APP_PUSHER_APP_SECRET:"4cdd2b5c99ce5d59f872",REACT_APP_VERCEL_DEPLOYMENT_ID:"dpl_GfawtDP2H3TJhfTwNh4ZZtpzkj9z",REACT_APP_VERCEL_GIT_REPO_SLUG:"Tektime-Stage",REACT_APP_VERCEL_TARGET_ENV:"production",REACT_APP_FIREBASE_STORAGE_BUCKET:"http://tektime-be9b8.appspot.com",REACT_APP_VERCEL_GIT_COMMIT_SHA:"fe969ad2ae0411e5ca9369f5d2ffb15827302828",REACT_APP_VERCEL_ENV:"production",REACT_APP_VERCEL_GIT_COMMIT_REF:"main",REACT_APP_PUSHER_APP_ID:"2164606",REACT_APP_CONTRACT_ID:"3",REACT_APP_FIREBASE_AUTH_DOMAIN:"tektime-be9b8.firebaseapp.com",REACT_APP_VERCEL_URL:"tektime-stage-m9mk37r6b-tektime.vercel.app",REACT_APP_TINYMCE_API:"ezrlsdfo2hlxrznvzmjtdebv3gsbuhn2o1ptmpnc5n8oj7xz",REACT_APP_VERCEL_PROJECT_PRODUCTION_URL:"tektime-stage-omega.vercel.app",REACT_APP_FIREBASE_API_KEY:"AIzaSyCGvHv2sXo2BET8soCidUcjbxhGo5YBjBk",REACT_APP_VERCEL_GIT_PREVIOUS_SHA:"",REACT_APP_VERCEL_GIT_REPO_ID:"841831269",REACT_APP_FIREBASE_APP_ID:"1:221855587819:web:c93cc2c7e2732009714dae",REACT_APP_FIREBASE_VAPID_KEY:"BIID5Npe6zPx0sPIHIT6GC1zkg3kwP6-KnMlVCbwCsXkQjOrxdWSKS752UhNB_0ALAIQfAXjQqi1tj6yp5pcwqg",REACT_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"muhammad-zubair-khan",REACT_APP_VERCEL_GIT_REPO_OWNER:"bissoft"}.REACT_APP_API_BASE_URL))return void console.warn("\u26a0\ufe0f Ignored message from unknown origin:",e.origin);const{type:o,data:n}=e.data||{};if("outlook-login-success"===o){console.log("\u2705 Outlook login success:",n),window.removeEventListener("message",a),clearInterval(s),t.closed||t.close();try{await ko()}catch(l){console.error("Error processing Outlook login:",l),T.oR.error("Failed to complete Outlook login.")}}else"outlook-login-failed"===o&&(console.warn("\u26a0\ufe0f Outlook login failed:",n),T.oR.error("Outlook login failed."),window.removeEventListener("message",a),clearInterval(s),t.closed||t.close())};window.addEventListener("message",a);const s=setInterval(()=>{t.closed&&(console.log("Popup closed by user."),clearInterval(s),window.removeEventListener("message",a))},500)}catch(e){console.error("Unexpected error during Outlook login:",e),T.oR.error("Something went wrong during Outlook login.")}},ko=async()=>{try{var e,o,n,t,a,s,r,d,c,m;const p=i.A.get("user_id"),u=i.A.get("token");if(!p||!u)return void T.oR.error("User session not found.");const g=null===(e=(await w.A.get("".concat(E.JR,"/users/").concat(p),{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(u)}})).data)||void 0===e?void 0:e.data;if(console.log("\u2705 User data fetched after Outlook login:",g),!g)return void T.oR.error("User data not found.");const{mail:h,displayName:x}=(null===g||void 0===g?void 0:g.outlook_user_info)||{};if(!h||!x)return void T.oR.error("Incomplete Outlook user information.");je([{platform:"Outlook Agenda",value:x}]),ke([{platform:"Microsoft Teams",value:x}]),ye([{platform:"Outlook",value:h}]),T.oR.success("Outlook account connected successfully!");const f=(0,l.A)((0,l.A)({},$),{},{integration_links:[...$.integration_links.filter(e=>"Outlook Agenda"!==e.platform),{platform:"Outlook Agenda",value:x}],visioconference_links:[...$.visioconference_links.filter(e=>"Microsoft Teams"!==e.platform),{platform:"Microsoft Teams",value:x}],email_links:[...$.email_links.filter(e=>"Outlook"!==e.platform),{platform:"Outlook",value:h}]});D(f);const v=new FormData;if(v.append("_method","PUT"),v.append("title",(null===$||void 0===$?void 0:$.t
1itle)||""),v.append("name",(null===$||void 0===$?void 0:$.name)||""),v.append("last_name",(null===$||void 0===$?void 0:$.last_name)||""),v.append("email",(null===$||void 0===$?void 0:$.email)||""),v.append("phoneNumber",(null===$||void 0===$?void 0:$.phoneNumber)||""),v.append("enterprise_id",(null===$||void 0===$||null===(o=$.enterprise)||void 0===o?void 0:o.id)||""),v.append("bio",(null===$||void 0===$?void 0:$.bio)||""),v.append("post",(null===$||void 0===$?void 0:$.post)||""),v.append("role_id",(null===$||void 0===$?void 0:$.role_id)||""),v.append("timezone",Ko||"Europe/Paris"),v.append("visibility",(null===$||void 0===$?void 0:$.visibility)||"public"),null===$||void 0===$||null===(n=$.social_links)||void 0===n||n.forEach((e,o)=>{e.id&&v.append("social_links[".concat(o,"][id]"),e.id),v.append("social_links[".concat(o,"][platform]"),e.platform),v.append("social_links[".concat(o,"][link]"),e.link)}),null===$||void 0===$||null===(t=$.websites)||void 0===t||t.forEach((e,o)=>{e.id&&v.append("websites[".concat(o,"][id]"),e.id),v.append("websites[".concat(o,"][title]"),e.title),v.append("websites[".concat(o,"][link]"),e.link)}),null===$||void 0===$||null===(a=$.affiliation_links)||void 0===a||a.forEach((e,o)=>{e.id&&v.append("affiliation_links[".concat(o,"][id]"),e.id),v.append("affiliation_links[".concat(o,"][title]"),e.title),v.append("affiliation_links[".concat(o,"][link]"),e.link)}),f.integration_links.forEach((e,o)=>{e.id&&v.append("integration_links[".concat(o,"][id]"),e.id),v.append("integration_links[".concat(o,"][platform]"),e.platform),v.append("integration_links[".concat(o,"][value]"),e.value)}),f.visioconference_links.forEach((e,o)=>{e.id&&v.append("visioconference_links[".concat(o,"][id]"),e.id),v.append("visioconference_links[".concat(o,"][platform]"),e.platform),v.append("visioconference_links[".concat(o,"][value]"),e.value)}),f.email_links.forEach((e,o)=>{e.id&&v.append("email_links[".concat(o,"][id]"),e.id),v.append("email_links[".concat(o,"][platform]"),e.platform),v.append("email_links[".concat(o,"][value]"),e.value)}),null===$||void 0===$||null===(s=$.teams)||void 0===s||s.forEach(e=>{v.append("team_id[]",e.id)}),null!==$&&void 0!==$&&null!==(r=$.image)&&void 0!==r&&r.startsWith("data:image/")){const e=await(await fetch($.image)).blob();v.append("image",e,"profile-image.jpg")}else null!==$&&void 0!==$&&$.image&&v.append("image",$.image);if(null!==$&&void 0!==$&&null!==(d=$.profile_banner)&&void 0!==d&&d.startsWith("data:image/")){const e=await(await fetch($.profile_banner)).blob();v.append("profile_banner",e,"profile-banner.jpg")}else null!==$&&void 0!==$&&$.profile_banner&&v.append("profile_banner",$.profile_banner);if(null!==$&&void 0!==$&&null!==(c=$.video)&&void 0!==c&&c.startsWith("blob:")){const e=await(await fetch($.video)).blob();v.append("video",e,"video-preview.mp4")}else null!==$&&void 0!==$&&$.video&&v.append("video",$.video);const _=await fetch("".concat(E.JR,"/users/").concat(p),{method:"POST",body:v,headers:{Authorization:"Bearer ".concat(i.A.get("token"))}});if(!_.ok)throw new Error("Failed to update user profile: ".concat(_.status));const A=await _.json();D((null===A||void 0===A||null===(m=A.data)||void 0===m?void 0:m.data)||f),Z(e=>!e),i.A.set("outlook_access_token",null===g||void 0===g?void 0:g.outlook_access_token),i.A.set("outlook_refresh_token",null===g||void 0===g?void 0:g.outlook_refresh_token)}catch(g){var p,u;console.error("\u274c Error fetching user data after Outlook login:",g),T.oR.error((null===g||void 0===g||null===(p=g.response)||void 0===p||null===(u=p.data)||void 0===u?void 0:u.message)||"Failed to fetch Outlook data.")}},Eo=(e,o,n)=>{if("google"===n){const n=[...he];if(n[e].platform=o?o.value:"",xe(n),o&&"Google Agenda"===o.value&&!K){if(B(),!fe.some(e=>"Google Meet"===e.platform)){const e=[...fe,{platform:"Google Meet",value:M}];ve(e)}if(!_e.some(e=>"Gmail"===e.platform)){const e=[..._e,{platform:"Gmail",value:G}];Ae(e)}}}else if("outlook"===n){const n=[...be];if(n[e].platform=o?o.value:"",je(n),o&&"Outlook Agenda"===o.value&&!JSON.parse(i.A.get("is_outlook_login"))){if(Co(),!Ce.some(e=>"Microsoft Teams"===e.platform)){const e=[...Ce,{platform:"Microsoft Teams",value:""}];ke(e)}if(!Ee.some(e=>"Outlook"===e.platform)){const e=[...Ee,{platform:"Outlook",value:""}];ye(e)}}}},yo=(e,o,n)=>{if("google"===n){const n=[...fe];
1if(n[e].platform=o?o.value:"",ve(n),o&&"Google Meet"===o.value&&!K){B();const o=n[e].value||F;if(!he.some(e=>"Google Agenda"===e.platform)){const e=[...he,{platform:"Google Agenda",value:o}];xe(e)}if(!_e.some(e=>"Gmail"===e.platform)){const e=[..._e,{platform:"Gmail",value:G}];Ae(e)}}}else if("outlook"===n){const n=[...Ce];if(n[e].platform=o?o.value:"",ke(n),o&&"Microsoft Teams"===o.value&&!JSON.parse(i.A.get("is_outlook_login"))){Co();const o=n[e].value||"";if(!be.some(e=>"Outlook Agenda"===e.platform)){const e=[...be,{platform:"Outlook Agenda",value:o}];je(e)}if(!Ee.some(e=>"Outlook"===e.platform)){const e=[...Ee,{platform:"Outlook",value:o}];ye(e)}}}},wo=(e,o,n)=>{if("google"===n){const n=[..._e];if(n[e].platform=o?o.value:"",Ae(n),o&&"Gmail"===o.value&&!K){B();const o=n[e].value||F;if(!he.some(e=>"Google Agenda"===e.platform)){const e=[...he,{platform:"Google Agenda",value:o}];xe(e)}if(!fe.some(e=>"Google Meet"===e.platform)){const e=[...fe,{platform:"Google Meet",value:M}];ve(e)}}}else if("outlook"===n){const n=[...Ee];if(n[e].platform=o?o.value:"",ye(n),o&&"Outlook"===o.value&&!JSON.parse(i.A.get("is_outlook_login"))){Co();const o=n[e].value||"";if(!be.some(e=>"Outlook Agenda"===e.platform)){const e=[...be,{platform:"Outlook Agenda",value:o}];je(e)}if(!Ce.some(e=>"Microsoft Teams"===e.platform)){const e=[...Ce,{platform:"Microsoft Teams",value:o}];ke(e)}}}},[Ro,Po]=(0,a.useState)(""),[To,No]=(0,a.useState)(""),[So,Io]=(0,a.useState)(""),[Lo,Vo]=(0,a.useState)("public"),[Oo,Bo]=(0,a.useState)([]),[Fo,Mo]=(0,a.useState)(null),[Go,zo]=(0,a.useState)((null===$||void 0===$?void 0:$.image)||"https://via.placeholder.com/150"),[Uo,Ho]=(0,a.useState)((null===$||void 0===$?void 0:$.profile_banner)||null),[Do,Zo]=(0,a.useState)({name:"",last_name:"",nick_name:"",enterprise_id:"",post:"",email:"",phoneNumber:"",bio:"",team_id:[],needs:[],role_id:null,profile:""});(0,a.useEffect)(()=>{var e,o,n,l;$&&(zo(null===$||void 0===$?void 0:$.image),Ho(null===$||void 0===$?void 0:$.profile_banner),Ge(null!==$&&void 0!==$&&$.profile_banner?null===$||void 0===$?void 0:$.profile_banner:null),Zo({name:(null===$||void 0===$?void 0:$.name)||"",last_name:(null===$||void 0===$?void 0:$.last_name)||"",nick_name:(null===$||void 0===$?void 0:$.nick_name)||"",enterprise_id:(null===$||void 0===$||null===(e=$.enterprise)||void 0===e?void 0:e.id)||"",post:(null===$||void 0===$?void 0:$.post)||"",email:(null===$||void 0===$?void 0:$.email)||"",phoneNumber:(null===$||void 0===$?void 0:$.phoneNumber)||"",bio:(null===$||void 0===$?void 0:$.bio)||"",team_id:null===$||void 0===$||null===(o=$.teams)||void 0===o?void 0:o.map(e=>e.id),needs:null===$||void 0===$||null===(n=$.user_needs)||void 0===n?void 0:n.map(e=>e.need),role_id:null===$||void 0===$?void 0:$.role_id,job:null===$||void 0===$?void 0:$.job}),Le(null===$||void 0===$?void 0:$.title),Bo(null===$||void 0===$||null===(l=$.teams)||void 0===l?void 0:l.map(e=>({value:e.id,label:e.name}))),xe(((null===$||void 0===$?void 0:$.integration_links)||[]).filter(e=>"Google Agenda"===e.platform)),ve(((null===$||void 0===$?void 0:$.visioconference_links)||[]).filter(e=>"Google Meet"===e.platform)),Ae(((null===$||void 0===$?void 0:$.email_links)||[]).filter(e=>"Gmail"===e.platform)),je(((null===$||void 0===$?void 0:$.integration_links)||[]).filter(e=>"Outlook Agenda"===e.platform)),ke(((null===$||void 0===$?void 0:$.visioconference_links)||[]).filter(e=>"Microsoft Teams"===e.platform)),ye(((null===$||void 0===$?void 0:$.email_links)||[]).filter(e=>"Outlook"===e.platform)),We(null===$||void 0===$?void 0:$.ionos_links))},[$]);parseInt(i.A.get("user_id"));const Ko=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"visiting-card",children:[(0,I.jsx)("div",{className:"add-profile",children:(0,I.jsx)(c.A,{fluid:!0,className:"my-4",children:oe?(0,I.jsx)(x.A,{animation:"border",role:"status",className:"center-spinner"}):(0,I.jsx)(h.A,{children:(0,I.jsx)(d.A,{lg:12,xs:12,md:12,children:(0,I.jsxs)(f.A.Container,{defaultActiveKey:"integration",children:[(0,I.jsx)(g.A,{variant:"tabs",className:"mb-3 profile-navs",activeKey:He,onSelect:e=>De(e),children:(0,I.jsx)(g.A.Item,{children:(0,I.jsx)(g.A.Link,{eventKey:"integration",className:"integration"===He?"active-tab":"",children:(0,I.jsxs)("span",{children:[(0,I.jsx)(C.j0j,{size:22}),le("profile.integration")]})})})}),(0,I.jsx)(f.A.Content,{className:"profile-nav-content",children:"integration"===He&&(0,I.jsxs)(f.A.Container,{activeKey:Ze,onSelect:Ke,children:[(0,I.jsxs)(g.A,{variant:"tabs",className:"mb-4 border-bottom sub-tabs",children:[(0,I.jsx)(g.A.Item,{children:(0,I.jsxs)(g.A.Link,{eventKey:"google",className:"d-flex align-items-center gap-2 px-4 py-2 rounded-top ".concat("google"===Ze?"bg-white text-primary border border-bottom-0 shadow-sm":"bg-light text-muted"),children:[(0,I.jsx)(v.F4b,{size:20}),"Google"]})}),(0,I.jsx)(g.A.Item,{children:(0,I.jsxs)(g.A.Link,{eventKey:"outlook",className:"d-flex align-items-center gap-2 px-4 py-2 rounded-top ".concat("outlook"===Ze?"bg-white text-primary border border-bottom-0 shadow-sm":"bg-light text-muted"),children:[(0,I.jsx)(_.PMk,{size:20,color:"#0078D4"}),"Outlook"]})}),(0,I.jsx)(g.A.Item,{children:(0,I.jsxs)(g.A.Link,{eventKey:"gmail",className:"d-flex align-items-center gap-2 px-4 py-2 rounded-top ".concat("gmail"===Ze?"bg-white text-primary border border-bottom-0 shadow-sm":"bg-light text-muted"),children:[(0,I.jsxs)("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,I.jsx)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,I.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[(0,I.jsx)("path",{d:"M2 11.9556C2 8.47078 2 6.7284 2.67818 5.39739C3.27473 4.22661 4.22661 3.27473 5.39739 2.67818C6.7284 2 8.47078 2 11.9556 2H20.0444C23.5292 2 25.2716 2 26.6026 2.67818C27.7734 3.27473 28.7253 4.22661 29.3218 5.39739C30 6.7284 30 8.47078 30 11.9556V20.0444C30 23.5292 30 25.2716 29.3218 26.6026C28.7253 27.7734 27.7734 28.7253 26.6026 29.3218C25.2716 30 23.5292 30 20.0444 30H11.9556C8.47078 30 6.7284 30 5.39739 29.3218C4.22661 28.7253 3.27473 27.7734 2.67818 26.6026C2 25.2716 2 23.5292 2 20.0444V11.9556Z",fill:"white"}),(0,I.jsx)("path",{d:"M22.0515 8.52295L16.0644 13.1954L9.94043 8.52295V8.52421L9.94783 8.53053V15.0732L15.9954 19.8466L22.0515 15.2575V8.52295Z",fill:"#EA4335"}),(0,I.jsx)("path",{d:"M23.6231 7.38639L22.0508 8.52292V15.2575L26.9983 11.459V9.17074C26.9983 9.17074 26.3978 5.90258 23.6231 7.38639Z",fill:"#FBBC05"}),(0,I.jsx)("path",{d:"M22.0508 15.2575V23.9924H25.8428C25.8428 23.9924 26.9219 23.8813 26.9995 22.6513V11.459L22.0508 15.2575Z",fill:"#34A853"}),(0,I.jsx)("path",{d:"M9.94811 24.0001V15.0732L9.94043 15.0669L9.94811 24.0001Z",fill:"#C5221F"}),(0,I.jsx)("path",{d:"M9.94014 8.52404L8.37646 7.39382C5.60179 5.91001 5 9.17692 5 9.17692V11.4651L9.94014 15.0667V8.52404Z",fill:"#C5221F"}
1),(0,I.jsx)("path",{d:"M9.94043 8.52441V15.0671L9.94811 15.0734V8.53073L9.94043 8.52441Z",fill:"#C5221F"}),(0,I.jsx)("path",{d:"M5 11.4668V22.6591C5.07646 23.8904 6.15673 24.0003 6.15673 24.0003H9.94877L9.94014 15.0671L5 11.4668Z",fill:"#4285F4"})]})]}),"Gmail"]})}),(0,I.jsx)(g.A.Item,{children:(0,I.jsxs)(g.A.Link,{eventKey:"ionos",className:"d-flex align-items-center gap-2 px-4 py-2 rounded-top ".concat("ionos"===Ze?"bg-white text-primary border border-bottom-0 shadow-sm":"bg-light text-muted"),children:[(0,I.jsx)(S.L6p,{size:20,color:"#003D8F"}),"Ionos"]})}),(0,I.jsx)(g.A.Item,{children:(0,I.jsxs)(g.A.Link,{eventKey:"stripe",className:"d-flex align-items-center gap-2 px-4 py-2 rounded-top ".concat("stripe"===Ze?"bg-white text-primary border border-bottom-0 shadow-sm":"bg-light text-muted"),children:[(0,I.jsx)(S.kDV,{size:20,color:"#635BFF"}),"Stripe"]})}),(0,I.jsx)(g.A.Item,{children:(0,I.jsxs)(g.A.Link,{eventKey:"linkedin",className:"d-flex align-items-center gap-2 px-4 py-2 rounded-top ".concat("linkedin"===Ze?"bg-white text-primary border border-bottom-0 shadow-sm":"bg-light text-muted"),children:[(0,I.jsx)(A.QEs,{size:20,color:"#0A66C2"}),"LinkedIn"]})})]}),(0,I.jsxs)(f.A.Content,{children:[(0,I.jsxs)(f.A.Pane,{eventKey:"google",className:"form",children:[(0,I.jsx)("h5",{className:"profile-font",children:le("profile.integration")}),(0,I.jsx)("small",{children:le("profile.integrationSubtext")}),(0,I.jsxs)(h.A,{className:"mt-3 social-info-row",children:[(0,I.jsx)("h6",{children:le("profile.agenda")}),null===he||void 0===he?void 0:he.map((e,o)=>{const n=ie.filter(e=>!he.some((n,l)=>n.platform===e.value&&l!==o));return(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:4,children:(0,I.jsx)(b.Ay,{name:"platform",options:n,value:n.find(o=>o.value===e.platform),onChange:e=>Eo(o,e,"google")})}),(0,I.jsx)(d.A,{md:6,children:(0,I.jsx)(m.A.Control,{type:"text",name:"value",value:e.value||F,onChange:e=>Ao(o,e,"google")})}),(0,I.jsx)(d.A,{md:2,children:(0,I.jsxs)(r.A,{onClick:()=>fo(e,o,"google"),style:{color:"#BB372F",background:"white",outline:"none",border:"none"},children:[(0,I.jsx)(k.tqC,{size:22,color:"#BB372F"}),"\xa0 ",le("profile.remove")]})})]},o)}),he.length<ie.length&&(0,I.jsxs)(r.A,{className:"add-social-link",onClick:()=>go("google"),children:["+ ",le("profile.add")]}),(0,I.jsx)("h6",{children:le("profile.visioconferences")}),null===fe||void 0===fe?void 0:fe.map((e,o)=>{const n=ae.filter(e=>!fe.some((n,l)=>n.platform===e.value&&l!==o));return(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:4,children:(0,I.jsx)(b.Ay,{name:"platform",options:n,value:n.find(o=>o.value===e.platform),onChange:e=>yo(o,e,"google")})}),(0,I.jsx)(d.A,{md:6,children:(0,I.jsx)(m.A.Control,{type:"text",name:"value",value:e.value||M,onChange:e=>bo(o,e,"google")})}),(0,I.jsx)(d.A,{md:2,children:(0,I.jsxs)(r.A,{onClick:()=>vo(e,o,"google"),style:{color:"#BB372F",background:"white",outline:"none",border:"none"},children:[(0,I.jsx)(k.tqC,{size:22,color:"#BB372F"}),"\xa0 ",le("profile.remove")]})})]},o)}),fe.length<ae.length&&(0,I.jsxs)(r.A,{className:"add-social-link",onClick:()=>ho("google"),children:["+ ",le("profile.add")]}),(0,I.jsx)("h6",{children:le("profile.email")}),null===_e||void 0===_e?void 0:_e.map((e,o)=>{const n=se.filter(e=>!_e.some((n,l)=>n.platform===e.value&&l!==o));return(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:4,children:(0,I.jsx)(b.Ay,{name:"platform",options:n,value:n.find(o=>o.value===e.platform),onChange:e=>wo(o,e,"google")})}),(0,I.jsx)(d.A,{md:6,children:(0,I.jsx)(m.A.Control,{type:"text",name:"value",value:e.value||G,onChange:e=>jo(o,e,"google")})}),(0,I.jsx)(d.A,{md:2,children:(0,I.jsxs)(r.A,{onClick:()=>_o(e,o,"google"),style:{color:"#BB372F",background:"white",outline:"none",border:"none"},children:[(0,I.jsx)(k.tqC,{size:22,color:"#BB372F"}),"\xa0 ",le("profile.remove")]})})]},o)}),_e.length<se.length&&(0,I.jsxs)(r.A,{className:"add-social-link",onClick:()=>xo("google"),children:["+ ",le("profile.add")]})]})]}),(0,I.jsxs)(f.A.Pane,{eventKey:"outlook",className:"form",children:[(0,I.jsx)("h5",{className:"profile-font",children:le("profile.integration")}),(0,I.jsx)("small",{children:le("profile.integrationSubtext")}),(0,I.jsxs)(h.A,{className:"mt-3 social-info-row",children:[(0,I.jsx)("h6",{children:le("profile.agenda")}),null===be||void 0===be?void 0:be.map((e,o)=>{const n=re.filter(e=>!be.some((n,l)=>n.platform===e.value&&l!==o));return(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:4,children:(0,I.jsx)(b.Ay,{name:"platform",options:n,value:n.find(o=>o.value===e.platform),onChange:e=>Eo(o,e,"outlook")})}),(0,I.jsx)(d.A,{md:6,children:(0,I.jsx)(m.A.Control,{type:"text",name:"value",value:e.value||"",onChange:e=>Ao(o,e,"outlook")})}),(0,I.jsx)(d.A,{md:2,children:(0,I.jsxs)(r.A,{onClick:()=>fo(e,o,"outlook"),style:{color:"#BB372F",background:"white",outline:"none",border:"none"},children:[(0,I.jsx)(k.tqC,{size:22,color:"#BB372F"}),"\xa0 ",le("profile.remove")]})})]},o)}),be.length<re.length&&(0,I.jsxs)(r.A,{className:"add-social-link",onClick:()=>go("outlook"),children:["+ ",le("profile.add")]}),(0,I.jsx)("h6",{children:le("profile.visioconferences")}),null===Ce||void 0===Ce?void 0:Ce.map((e,o)=>{const n=de.filter(e=>!Ce.some((n,l)=>n.platform===e.value&&l!==o));return(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:4,children:(0,I.jsx)(b.Ay,{name:"platform",options:n,value:n.find(o=>o.value===e.platform),onChange:e=>yo(o,e,"outlook")})}),(0,I.jsx)(d.A,{md:6,children:(0,I.jsx)(m.A.Control,{type:"text",name:"value",value:e.value||"",onChange:e=>bo(o,e,"outlook")})}),(0,I.jsx)(d.A,{md:2,children:(0,I.jsxs)(r.A,{onClick:()=>vo(e,o,"outlook"),style:{color:"#BB372F",background:"white",outline:"none",border:"none"},children:[(0,I.jsx)(k.tqC,{size:22,color:"#BB372F"}),"\xa0 ",le("profile.remove")]})})]},o)}),Ce.length<de.length&&(0,I.jsxs)(r.A,{className:"add-social-link",onClick:()=>ho("outlook"),children:["+ ",le("profile.add")]}),(0,I.jsx)("h6",{children:le("profile.email")}),null===Ee||void 0===Ee?void 0:Ee.map((e,o)=>{const n=ce.filter(e=>
1!Ee.some((n,l)=>n.platform===e.value&&l!==o));return(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:4,children:(0,I.jsx)(b.Ay,{name:"platform",options:n,value:n.find(o=>o.value===e.platform),onChange:e=>wo(o,e,"outlook")})}),(0,I.jsx)(d.A,{md:6,children:(0,I.jsx)(m.A.Control,{type:"text",name:"value",value:e.value||"",onChange:e=>jo(o,e,"outlook")})}),(0,I.jsx)(d.A,{md:2,children:(0,I.jsxs)(r.A,{onClick:()=>_o(e,o,"outlook"),style:{color:"#BB372F",background:"white",outline:"none",border:"none"},children:[(0,I.jsx)(k.tqC,{size:22,color:"#BB372F"}),"\xa0 ",le("profile.remove")]})})]},o)}),Ee.length<ce.length&&(0,I.jsxs)(r.A,{className:"add-social-link",onClick:()=>xo("outlook"),children:["+ ",le("profile.add")]})]})]}),(0,I.jsxs)(f.A.Pane,{eventKey:"gmail",children:[(0,I.jsx)("h5",{className:"mb-1",children:le("profile.integration")}),(0,I.jsx)("small",{className:"text-muted d-block mb-4",children:le("profile.integrationSubtext")}),(0,I.jsx)(h.A,{className:"justify-content-center",children:(0,I.jsx)(N.A,{user:$,setActiveKey:Ke,onUpdate:()=>{te(),Ke("gmail")}})})]}),(0,I.jsxs)(f.A.Pane,{eventKey:"ionos",className:"form",children:[(0,I.jsx)("h5",{className:"profile-font",children:"Ionos Integration"}),(0,I.jsx)("small",{children:"Connect your Ionos email account."}),(0,I.jsxs)(h.A,{className:"mt-3 social-info-row",children:[(0,I.jsx)("h6",{children:"Email Account"}),null===Je||void 0===Je?void 0:Je.map((e,o)=>(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:10,children:(0,I.jsx)(m.A.Control,{type:"text",value:e.email,disabled:!0,readOnly:!0})}),(0,I.jsx)(d.A,{md:2,children:(0,I.jsxs)(r.A,{onClick:()=>(async e=>{if(e)try{if(Oe(!0),null!==e&&void 0!==e&&e.id){const o="".concat(E.JR,"/ionos-emails/account/").concat(e.id);await w.A.delete(o,{headers:{Authorization:"Bearer ".concat(i.A.get("token"))}})}T.oR.success("Ionos account removed"),te()}catch(o){console.error("Error deleting Ionos link",o),T.oR.error("Failed to remove Ionos account")}finally{Oe(!1)}})(e),style:{color:"#BB372F",background:"white",outline:"none",border:"none"},children:[(0,I.jsx)(k.tqC,{size:22,color:"#BB372F"}),"\xa0 ",le("profile.remove")]})})]},o)),Je.length<1&&(0,I.jsx)(r.A,{className:"add-social-link",onClick:()=>qe(!0),children:"+ Add Account"})]})]}),(0,I.jsxs)(f.A.Pane,{eventKey:"stripe",className:"form",children:[(0,I.jsx)("h5",{className:"profile-font",children:"Stripe Integration"}),(0,I.jsx)("small",{children:"Connect your Stripe account to receive payments."}),(0,I.jsxs)(h.A,{className:"mt-3 social-info-row",children:[(0,I.jsx)("h6",{children:"Payment Gateway"}),(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:10,children:(0,I.jsxs)("div",{className:"d-flex align-items-center p-3 border rounded bg-light",children:[(0,I.jsx)(S.kDV,{size:40,color:"#635BFF",className:"me-3"}),(0,I.jsxs)("div",{children:[(0,I.jsx)("h6",{className:"mb-1 m-0 fw-bold",children:"Stripe Connect"}),(0,I.jsx)("p",{className:"mb-0 text-muted small",children:"Enable secure payments for your events and services."})]})]})}),(0,I.jsx)(d.A,{md:2,children:null!==$&&void 0!==$&&$.stripe_onboarding_completed&&null!==$&&void 0!==$&&$.stripe_charges_enabled&&null!==$&&void 0!==$&&$.stripe_payouts_enabled?(0,I.jsxs)("div",{className:"d-flex flex-column gap-2",children:[(0,I.jsx)(r.A,{disabled:!0,className:"w-100 py-2 fw-bold text-success bg-white border-success",style:{borderRadius:"8px"},children:le("profile.connected")||"Connected"}),(0,I.jsx)(r.A,{onClick:async()=>{ro(!0);try{var e;const o=null===(e=(await w.A.post("".concat(E.JR,"/stripe/dashboard-link"),{},{headers:{Authorization:"Bearer ".concat(i.A.get("token")),"Content-Type":"application/json"}})).data)||void 0===e?void 0:e.url;o?window.open(o,"_blank","noopener"):T.oR.error(le("stripe_dashboard_error"))}catch(o){console.error("Stripe dashboard link error:",o),T.oR.error(le("stripe_dashboard_error"))}finally{ro(!1)}},disabled:so,className:"w-100 py-2 fw-bold text-white",style:{background:"#635BFF",borderColor:"#635BFF",borderRadius:"8px"},children:so?(0,I.jsx)(x.A,{size:"sm"}):le("stripe_dashboard_btn")}),(0,I.jsx)("button",{onClick:()=>{ao(!0)},disabled:lo,style:{width:"100%",padding:"8px 0",borderRadius:"8px",border:"1px solid #dc3545",backgroundColor:"transparent",color:"#dc3545",fontWeight:700,cursor:lo?"not-allowed":"pointer",fontSize:"14px",opacity:lo?.7:1,transition:"background-color 0.15s, color 0.15s"},onMouseEnter:e=>{lo||(e.currentTarget.style.backgroundColor="#dc3545",e.currentTarget.style.color="#fff")},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#dc3545"},children:lo?(0,I.jsx)(x.A,{size:"sm"}):le("stripe_disconnect_btn")})]}):(0,I.jsx)(r.A,{onClick:async()=>{to(!0);try{var e,o,n;const l=await w.A.post("".concat(E.JR,"/stripe/connect"),{},{headers:{Authorization:"Bearer ".concat(i.A.get("token")),"Content-Type":"application/json"}}),t=(null===(e=l.data)||void 0===e?void 0:e.url)||(null===(o=l.data)||void 0===o||null===(n=o.data)||void 0===n?void 0:n.url);if(t){const e=600,o=700,n=window.screenX+(window.innerWidth-e)/2,l=window.screenY+(window.innerHeight-o)/2,i=window.open(t,"Stripe Connect","width=".concat(e,",height=").concat(o,",top=").concat(l,",left=").concat(n)),a=e=>{var o;"stripe-success"===(null===(o=e.data)||void 0===o?void 0:o.type)&&(te(),Z&&Z(e=>!e),i&&!i.closed&&i.close(),window.removeEventListener("message",a),clearInterval(s))};window.addEventListener("message",a);const s=setInterval(()=>{i&&!i.closed||(clearInterval(s),window.removeEventListener("message",a),te(),Z&&Z(e=>!e))},1e3)}else T.oR.success(le("Stripe connection initiated!"))}catch(l){console.error("Stripe connect error:",l),T.oR.error(le("Failed to connect Stripe."))}finally{to(!1)}},disabled:lo,className:"w-100 py-2 fw-bold text-white",style:{background:"#635BFF",borderColor:"#635BFF",borderRadius:"8px"},children:lo?(0,I.jsx)(x.A,{size:"sm"}):"Connect"})})]})]})]}),(0,I.jsxs)(f.A.Pane,{eventKey:"linkedin",className:"form",children:[(0,I.jsx)("h5",{className:"profile-font",children:"LinkedIn"}),(0,I.jsx)("small",{children:"Connectez votre compte LinkedIn pour enrichir votre profil."}),(0,I.jsxs)(h.A,{className:"mt-3 social-info-row",children:[(0,I.jsx)("h6",{children:"Compte LinkedIn"}),(0,I.jsxs)(h.A,{className:"mb-3 align-items-center",children:[(0,I.jsx)(d.A,{md:10,children:(0,I.jsxs)("div",{className:"d-flex align-items-center p-3 border rounded bg-light",children:[(0,I.jsx)(A.QEs,{size:40,color:"#0A66C2",className:"me-3"}),(0,I.jsxs)("div",{children:[(0,I.jsx)("h6",{className:"mb-1 m-0 fw-bold",children:"LinkedIn"}),(0,I.jsx)("p",{className:"mb-0 text-muted small",children:null!==$&&void 0!==$&&$.linkedin_id?"Connect\xe9 : ".concat((null===$||void 0===$?void 0:$.linkedin_name)||(null===$||void 0===$?void 0:$.linkedin_email)||(null===$||void 0===$?void 0:$.linkedin_id)):"Connectez votre compte LinkedIn pour synchroniser vos informations."})]})]})}),(0,I.jsx)(d.A,{md:2,children:null!==$&&void 0!==$&&$.linkedin_id?(0,I.jsxs)("div",{className:"d-flex flex-column gap-2",children:[(0,I.jsx)(r.A,{disabled:!0,className:"w-100 py-2 fw-bold text-success bg-white border-success",style:{borderRadius:"8px"},children:le("profile.connected")||"Connected"}),(0,I.jsx)("button",{onClick:()=>{uo(!0)},disabled:co,style:{width:"100%",padding:"8px 0",borderRadius:"8px",border:"1px solid #dc3545",backgroundColor:"transparent",color:"#dc3545",fontWeight:700,cursor:co?"not-allowed":"pointer",fontSize:"14px",opacity:co?.7:1,transition:"background-color 0.15s, color 0.15s"},onMouseEnter:e=>{co||(e.currentTarget.style.backgroundColor="#dc3545",e.currentTarget.style.color="#fff")},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#dc3545"},children:co?(0,I.jsx)(x.A,{size:"sm"}):le("linkedin_disconnect_btn")||"Disconnect"})]}):(0,I.jsx)(r.A,{onClick:async()=>{mo(!0);try{var e,o,n;const l=await w.A.get("".concat(E.JR,"/auth/linkedin"),{headers:{Authorization:"Bearer ".concat(i.A.get("token"))}}),t=(null===(e=l.data)||void 0===e?void 0:e.login_url)||(null===(o=l.data)||void 0===o||null===(n=o.data)||void 0===n?void 0:n.url);if(t){const e=600,o=700,n=window.screenX+(window.innerWidth-e)/2,l=window.screenY+(window.innerHeight-o)/2,i=window.open(t,"LinkedIn Login","width=".concat(e,",height=").concat(o,",top=").concat(l,",left=").concat(n)),a=e=>{var o,n,l;"linkedin-success"===(null===(o=e.data)||void 0===o?void 0:o.type)||"linkedin-login-success"===(null===(n=e.data)||void 0===n?void 0:n.type)?(te(),Z&&Z(e=>!e),i&&!i.closed&&i.close(),window.removeEventListener("message",a),clearInterval(s),T.oR.success("LinkedIn connected successfully!")):"linkedin-failed"===(null===(l=e.data)||void 0===l?void 0:l.type)&&(i&&!i.closed&&i.close(),window.removeEventListener("message",a),clearInterval(s),T.oR.error("Failed to connect LinkedIn."))};window.addEventListener("message",a);const s=setInterval(()=>{i&&!i.closed||(clearInterval(s),window.removeEventListener("message",a),te(),Z&&Z(e=>!e))},1e3)}else T.oR.error("Could not get LinkedIn login URL.")}catch(l){console.error("LinkedIn connect error:",l),T.oR.error("Failed to connect LinkedIn.")}finally{mo(!1)}},disabled:co,className:"w-100 py-2 fw-bold text-white",style:{background:"#0A66C2",borderColor:"#0A66C2",borderRadius:"8px"},children:co?(0,I.jsx)(x.A,{size:"sm"}):"Connect"})})]})]})]})]})]})})]})})})})}),(0,I.jsxs)(u.A,{show:Ye,onHide:()=>qe(!1),centered:!0,children:[(0,I.jsx)(u.A.Header,{closeButton:!0,children:(0,I.jsx)(u.A.Title,{children:"Connect Ionos Account"})}),(0,I.jsx)(u.A.Body,{children:(0,I.jsxs)(m.A,{noValidate:!0,validated:Xe,onSubmit:async e=>{e.preventDefault();if(!1===e.currentTarget.checkValidity())return e.stopPropagation(),void Qe(!0);Qe(!0),Oe(!0);if(!parseInt(i.A.get("user_id"),10))return T.oR.error("User ID not found in session storage"),void Oe(!1);try{const{domain:e}=$e,o=(0,t.A)($e,L),n=await fetch("".concat(E.JR,"/ionos-emails/add-account"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i.A.get("token"))},body:JSON.stringify(o)});if(!n.ok){const e=await n.json().catch(()=>({}));throw new Error(e.message||"API error")}T.oR.success("Account added successfully!"),qe(!1),eo({username:"",password:"",host:"imap.ionos.com",domain:"com"}),Qe(!1),no(!1),te()}catch(o){T.oR.error(o.message||"Failed to add account")}finally{Oe(!1)}},children:[(0,I.jsxs)(m.A.Group,{className:"mb-3",controlId:"ionosHost",children:[(0,I.jsx)(m.A.Label,{children:"Host"}),(0,I.jsxs)(p.A,{children:[(0,I.jsx)(m.A.Control,{readOnly:!0,value:"imap.ionos.",style:{backgroundColor:"#e9ecef",maxWidth:"120px"}}),(0,I.jsxs)(m.A.Select,{name:"domain",value:$e.domain,onChange:e=>{const o=e.target.value;eo(e=>(0,l.A)((0,l.A)({},e),{},{domain:o,host:"imap.ionos.".concat(o)}))},children:[(0,I.jsx)("option",{value:"com",children:"com"}),(0,I.jsx)("option",{value:"us",children:"us"}),(0,I.jsx)("option",{value:"fr",children:"fr"}),(0,I.jsx)("option",{value:"eu",children:"eu"}),(0,I.jsx)("option",{value:"it",children:"it"}),(0,I.jsx)("option",{value:"es",children:"es"})]})]})]}),(0,I.jsxs)(m.A.Group,{className:"mb-3",controlId:"ionosUsername",children:[(0,I.jsx)(m.A.Label,{children:"Username / Email"}),(0,I.jsx)(m.A.Control,{type:"text",placeholder:"[email protected]",required:!0,value:$e.username,onChange:e=>eo((0,l.A)((0,l.A)({},$e),{},{username:e.target.value}))}),(0,I.jsx)(m.A.Control.Feedback,{type:"invalid",children:"Please provide a valid username."})]}),(0,I.jsxs)(m.A.Group,{className:"mb-3",controlId:"ionosPassword",children:[(0,I.jsx)(m.A.Label,{children:"Password"}),(0,I.jsxs)(p.A,{hasValidation:!0,children:[(0,I.jsx)(m.A.Control,{type:oo?"text":"password",placeholder:"Password",required:!0,value:$e.password,onChange:e=>eo((0,l.A)((0,l.A)({},$e),{},{password:e.target.value}))}),(0,I.jsx)(r.A,{variant:"outline-secondary",onClick:()=>no(!oo),type:"button",children:oo?(0,I.jsx)(A.mx3,{}):(0,I.jsx)(A.Ny1,{})}),(0,I.jsx)(m.A.Control.Feedback,{type:"invalid",children:"Please provide a password."})]})]}),(0,I.jsxs)("div",{className:"d-flex justify-content-end gap-2",children:[(0,I.jsx)(r.A,{variant:"secondary",onClick:()=>qe(!1),children:"Cancel"}),(0,I.jsx)(r.A,{variant:"primary",type:"submit",disabled:Ve,children:Ve?(0,I.jsx)(x.A,{size:"sm"}):"Connect"})]})]})})]})]}),po&&s.createPortal((0,I.jsxs)("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.55)",zIndex:99999,display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"},onClick:()=>uo(!1),children:[(0,I.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"16px",padding:"32px",maxWidth:"420px",width:"100%",boxShadow:"0 24px 64px rgba(0,0,0,0.25)",animation:"fadeInScale 0.18s ease"},onClick:e=>e.stopPropagation(),children:[(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"16
1px",gap:"14px"},children:[(0,I.jsx)("div",{style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(220,53,69,0.1)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,I.jsx)(A.QEs,{size:22,color:"#dc3545"})}),(0,I.jsx)("h5",{style:{margin:0,fontWeight:700,color:"#1a1a2e"},children:le("linkedin_disconnect_title")||"Disconnect LinkedIn"})]}),(0,I.jsx)("p",{style:{color:"#6c757d",fontSize:"14px",lineHeight:1.6,marginBottom:"28px"},children:le("linkedin_disconnect_message")||"Are you sure you want to disconnect your LinkedIn account? You will need to reconnect it later to sync your information."}),(0,I.jsxs)("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"},children:[(0,I.jsx)("button",{style:{padding:"10px 22px",borderRadius:"8px",border:"1px solid #dee2e6",backgroundColor:"#f8f9fa",color:"#495057",fontWeight:600,cursor:"pointer",fontSize:"14px",transition:"background 0.15s"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#e9ecef"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f8f9fa"},onClick:()=>uo(!1),disabled:co,children:le("linkedin_disconnect_cancel")||"Cancel"}),(0,I.jsx)("button",{style:{padding:"10px 22px",borderRadius:"8px",border:"none",backgroundColor:"#dc3545",color:"#fff",fontWeight:700,cursor:co?"not-allowed":"pointer",fontSize:"14px",opacity:co?.75:1,transition:"background 0.15s, opacity 0.15s"},onMouseEnter:e=>{co||(e.currentTarget.style.backgroundColor="#b02a37")},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#dc3545"},onClick:async()=>{uo(!1),mo(!0);try{await w.A.post("".concat(E.JR,"/linkedin/disconnect"),{},{headers:{Authorization:"Bearer ".concat(i.A.get("token")),"Content-Type":"application/json"}}),T.oR.success(le("LinkedIn account disconnected successfully.")||"LinkedIn account disconnected successfully."),te(),Z&&Z(e=>!e)}catch(e){console.error("LinkedIn disconnect error:",e),T.oR.error(le("Failed to disconnect LinkedIn.")||"Failed to disconnect LinkedIn.")}finally{mo(!1)}},disabled:co,children:co?(0,I.jsx)(x.A,{size:"sm"}):le("linkedin_disconnect_confirm")||"Disconnect"})]})]}),(0,I.jsx)("style",{children:"\n            @keyframes fadeInScale {\n              from { opacity: 0; transform: scale(0.94); }\n              to   { opacity: 1; transform: scale(1); }\n            }\n          "})]}),document.body),io&&s.createPortal((0,I.jsxs)("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.55)",zIndex:99999,display:"flex",alignItems:"center",justifyContent:"center",padding:"16px"},onClick:()=>ao(!1),children:[(0,I.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"16px",padding:"32px",maxWidth:"420px",width:"100%",boxShadow:"0 24px 64px rgba(0,0,0,0.25)",animation:"fadeInScale 0.18s ease"},onClick:e=>e.stopPropagation(),children:[(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"16px",gap:"14px"},children:[(0,I.jsx)("div",{style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(220,53,69,0.1)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,I.jsx)(S.kDV,{size:22,color:"#dc3545"})}),(0,I.jsx)("h5",{style:{margin:0,fontWeight:700,color:"#1a1a2e"},children:le("stripe_disconnect_title")})]}),(0,I.jsx)("p",{style:{color:"#6c757d",fontSize:"14px",lineHeight:1.6,marginBottom:"28px"},children:le("stripe_disconnect_message")}),(0,I.jsxs)("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"},children:[(0,I.jsx)("button",{style:{padding:"10px 22px",borderRadius:"8px",border:"1px solid #dee2e6",backgroundColor:"#f8f9fa",color:"#495057",fontWeight:600,cursor:"pointer",fontSize:"14px",transition:"background 0.15s"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#e9ecef"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f8f9fa"},onClick:()=>ao(!1),disabled:lo,children:le("stripe_disconnect_cancel")}),(0,I.jsx)("button",{style:{padding:"10px 22px",borderRadius:"8px",border:"none",backgroundColor:"#dc3545",color:"#fff",fontWeight:700,cursor:lo?"not-allowed":"pointer",fontSize:"14px",opacity:lo?.75:1,transition:"background 0.15s, opacity 0.15s"},onMouseEnter:e=>{lo||(e.currentTarget.style.backgroundColor="#b02a37")},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#dc3545"},onClick:async()=>{ao(!1),to(!0);try{await w.A.post("".concat(E.JR,"/stripe/disconnect"),{},{headers:{Authorization:"Bearer ".concat(i.A.get("token")),"Content-Type":"application/json"}}),T.oR.success(le("Stripe account disconnected successfully.")),te(),Z&&Z(e=>!e)}catch(e){console.error("Stripe disconnect error:",e),T.oR.error(le("Failed to disconnect Stripe."))}finally{to(!1)}},disabled:lo,children:lo?(0,I.jsx)(x.A,{size:"sm"}):le("stripe_disconnect_confirm")})]})]}),(0,I.jsx)("style",{children:"\n            @keyframes fadeInScale {\n              from { opacity: 0; transform: scale(0.94); }\n              to   { opacity: 1; transform: scale(1); }\n            }\n          "})]}),document.body)]})}},71910:(e,o,n)=>{n.d(o,{A:()=>b});var l=n(89379),t=n(9906),i=n(65043),a=n(10457),s=n(91719),r=n(14282),d=n(38628),c=n(78602),m=n(73722),p=n(32223),u=n(61072),g=n(27417),h=n(32327),x=n(74117),f=n(91036),v=n(14524),_=n(70579);const A=e=>{if(!e)return"";const o=new Date(e);return new Intl.DateTimeFormat(void 0,{dateStyle:"long",timeStyle:"short"}
1).format(o)},b=e=>{let{user:o,onUpdate:n}=e;const[b]=(0,x.Bd)("global"),[j,C]=(0,i.useState)(1),[k,E]=(0,i.useState)(!1),[y,w]=(0,i.useState)(null),[R,P]=(0,i.useState)(""),[T,N]=(0,i.useState)(!1),[S,I]=(0,i.useState)(!1),[L,V]=(0,i.useState)(!1),[O,B]=(0,i.useState)(null),[F,M]=(0,i.useState)({firstName:"",lastName:"",email:"",appPassword:""}),G=(null===o||void 0===o?void 0:o.gmail_suit)&&o.gmail_suit.length>0,z=e=>M((0,l.A)((0,l.A)({},F),{},{[e.target.name]:e.target.value.trim()})),U=()=>{V(!1),B(null)};return(0,i.useEffect)(()=>{G||I(!0)},[G]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("style",{jsx:!0,children:'\n        :global(body) {\n          font-family: "Google Sans", "Roboto", system-ui, sans-serif;\n        }\n        .glass-card {\n          background: rgba(255, 255, 255, 0.95);\n          backdrop-filter: blur(12px);\n          border: 1px solid rgba(255, 255, 255, 0.3);\n          border-radius: 20px;\n          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);\n          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n        }\n        .glass-card:hover {\n          box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);\n          transform: translateY(-2px);\n        }\n        .google-blue {\n          color: #1a73e8;\n        }\n        .btn-primary-google {\n          background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);\n          border: none;\n          border-radius: 12px;\n          padding: 12px 28px;\n          font-weight: 600;\n          font-size: 15px;\n          transition: all 0.25s ease;\n        }\n        .btn-primary-google:hover {\n          background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);\n          transform: translateY(-2px);\n          box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);\n        }\n        .btn-success-google {\n          background: linear-gradient(135deg, #34a853 0%, #2d8e44 100%);\n          border: none;\n          border-radius: 12px;\n          padding: 12px 28px;\n          font-weight: 600;\n        }\n        .btn-success-google:hover {\n          background: linear-gradient(135deg, #2d8e44 0%, #276c38 100%);\n          transform: translateY(-2px);\n        }\n        .account-card {\n          background: #f8f9fa;\n          border-radius: 14px;\n          border: none;\n          transition: all 0.2s ease;\n        }\n        .account-card:hover {\n          background: #f1f3f4;\n          transform: translateY(-2px);\n        }\n        .instruction-panel {\n          background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);\n          border-left: 5px solid #4285f4;\n          border-radius: 0 14px 14px 0;\n        }\n        .form-control-modern {\n          border-radius: 12px;\n          border: 1.5px solid #dadce0;\n          padding: 12px 16px;\n          font-size: 15px;\n          transition: all 0.2s ease;\n        }\n        .form-control-modern:focus {\n          border-color: #1a73e8;\n          box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);\n        }\n        .label-modern {\n          font-weight: 600;\n          color: #3c4043;\n          font-size: 14px;\n          margin-bottom: 8px;\n        }\n        .google-icon-wrapper {\n          width: 56px;\n          height: 56px;\n          display: flex;\n          align-items: center;\n          justify-content: center;\n          background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);\n          border-radius: 14px;\n        }\n        .link-blue {\n          color: #1a73e8;\n          font-weight: 500;\n          text-decoration: none;\n        }\n        .link-blue:hover {\n          text-decoration: underline;\n        }\n        .delete-btn {\n          width: 36px;\n          height: 36px;\n          border-radius: 50%;\n          display: flex;\n          align-items: center;\n          justify-content: center;\n          transition: all 0.2s ease;\n        }\n        .delete-btn:hover {\n          background: rgba(220, 53, 69, 0.1) !important;\n        }\n      '}),(0,_.jsx)("div",{className:"d-flex justify-content-center px-3",children:(0,_.jsxs)(d.A,{className:"glass-card",style:{maxWidth:"640px",width:"100%"},children:[(0,_.jsx)(d.A.Header,{className:"bg-transparent border-0 pt-5 pb-4 px-5",children:(0,_.jsxs)(h.A,{direction:"horizontal",gap:4,className:"align-items-center",children:[(0,_.jsx)("div",{className:"google-icon-wrapper",children:(0,_.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 48 48",children:[(0,_.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,_.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,_.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,_.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})}),(0,_.jsxs)("div",{children:[(0,_.jsx)("h3",{className:"mb-1 fw-bold",style:{color:"#202124"},children:b("gmail.title")}),(0,_.jsx)("p",{className:"mb-0 text-muted",children:G?"".concat(o.gmail_suit.length," ").concat(b("gmail.accountsConnected".concat(o.gmail_suit.length>1?"_plural":""))):b("gmail.noAccount")}
1)]})]})}),(0,_.jsxs)(d.A.Body,{className:"px-5 pb-5",children:[1===j&&(0,_.jsx)(_.Fragment,{children:G?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(p.A,{variant:"flush",className:"mb-4",children:o.gmail_suit.map(e=>(0,_.jsx)(p.A.Item,{className:"account-card px-4 py-4 mb-3 border-0 shadow-sm",children:(0,_.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,_.jsxs)("div",{className:"flex-grow-1",children:[(0,_.jsxs)("div",{className:"fw-semibold text-dark",children:[e.first_name," ",e.last_name]}),(0,_.jsx)("div",{className:"text-muted small mt-1",children:e.email}),e.created_at&&(0,_.jsx)("div",{className:"text-success small mt-2 fw-medium",children:b("gmail.connectedOn",{date:A(e.created_at)})})]}),(0,_.jsx)(r.A,{variant:"link",className:"text-danger delete-btn p-0",onClick:()=>(B(e),void V(!0)),disabled:y===e.id,children:y===e.id?(0,_.jsx)(g.A,{animation:"border",size:"sm"}):(0,_.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_.jsx)("path",{d:"M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12z"})})})]})},e.id))}),(0,_.jsx)(a.A,{className:"mb-4",children:(0,_.jsxs)(a.A.Item,{eventKey:"0",className:"border-0",children:[(0,_.jsx)(a.A.Header,{className:"bg-light rounded-3",children:(0,_.jsx)("span",{className:"fw-semibold google-blue",children:b(S?"gmail.hideInstructions":"gmail.showInstructions")})}),(0,_.jsx)(a.A.Body,{className:"pt-3",children:(0,_.jsxs)("div",{className:"instruction-panel p-4",children:[(0,_.jsx)("h6",{className:"fw-bold mb-3",children:b("gmail.instructionsTitle")}),(0,_.jsxs)("ol",{className:"mb-3 ps-4",children:[(0,_.jsx)("li",{className:"mb-2",children:(0,_.jsx)("a",{href:"https://myaccount.google.com/security",target:"_blank",rel:"noreferrer",className:"link-blue",children:b("gmail.step1")})}),(0,_.jsx)("li",{className:"mb-2",children:(0,_.jsx)("a",{href:"https://myaccount.google.com/signinoptions/two-step-verification",target:"_blank",rel:"noreferrer",className:"link-blue",children:b("gmail.step2")})}),(0,_.jsx)("li",{children:(0,_.jsx)("a",{href:"https://myaccount.google.com/apppasswords",target:"_blank",rel:"noreferrer",className:"link-blue",children:b("gmail.step3")})})]}),(0,_.jsx)("a",{href:"https://support.google.com/accounts/answer/185833",target:"_blank",rel:"noreferrer",className:"small link-blue",children:"Full tutorial by Google \u2192"})]})})]})}),(0,_.jsx)("div",{className:"text-center",children:(0,_.jsx)(r.A,{className:"btn-primary-google text-white",onClick:()=>{C(2),P(""),N(!1)},children:b("gmail.addAnother")})})]}):(0,_.jsxs)("div",{className:"instruction-panel p-5 mb-5 text-center",children:[(0,_.jsx)("h5",{className:"fw-bold mb-4",children:b("gmail.prepareAccount")}),(0,_.jsx)("p",{className:"text-muted mb-4",dangerouslySetInnerHTML:{__html:b("gmail.prepareText")}}),(0,_.jsxs)("ol",{className:"text-start d-inline-block mb-4",style:{maxWidth:"420px"},children:[(0,_.jsx)("li",{className:"mb-3",children:(0,_.jsxs)("a",{href:"https://myaccount.google.com/security",target:"_blank",rel:"noreferrer",className:"link-blue fw-semibold",children:[b("gmail.step1")," \u2192"]})}),(0,_.jsx)("li",{className:"mb-3",children:(0,_.jsxs)("a",{href:"https://myaccount.google.com/signinoptions/two-step-verification",target:"_blank",rel:"noreferrer",className:"link-blue fw-semibold",children:[b("gmail.step2")," \u2192"]})}),(0,_.jsx)("li",{children:(0,_.jsxs)("a",{href:"https://myaccount.google.com/apppasswords",target:"_blank",rel:"noreferrer",className:"link-blue fw-semibold",children:[b("gmail.step3")," \u2192"]})})]}),(0,_.jsx)(r.A,{className:"btn-primary-google text-white px-5",onClick:()=>C(2),children:b("gmail.continue")})]})}),2===j&&(0,_.jsxs)(m.A,{onSubmit:e=>{e.preventDefault(),(async()=>{if(F.email&&F.appPassword&&F.firstName&&F.lastName)if(16===F.appPassword.replace(/\s/g,"").length){E(!0),P(""),N(!1);try{var e;const l=await fetch("".concat(v.JR,"/gmail-suite/login"),{method:"POST",headers:{Authorization:"Bearer ".concat(t.A.get("token")),"Content-Type":"application/json"},body:JSON.stringify({user_id:null===o||void 0===o?void 0:o.id,enterprise_id:null===o||void 0===o||null===(e=o.enterprise)||void 0===e?void 0:e.id,first_name:F.firstName,last_name:F.lastName,email:F.email,app_password:F.appPassword.replace(/\s/g,"")})}),i=await l.json();if(!l.ok)throw new Error(i.message||b("gmail.errorConnection"));f.oR.success(b("gmail.successConnected")),N(!0),M({firstName:"",lastName:"",email:"",appPassword:""}),C(1),I(!1),null===n||void 0===n||n()}catch(l){P(l.message),f.oR.error(l.message)}finally{E(!1)}}else P(b("gmail.errorAppPassword"));else P(b("gmail.errorAllFields"))})()},children:[R&&(0,_.jsx)(s.A,{variant:"danger",className:"rounded-3",children:R}),T&&(0,_.jsx)(s.A,{variant:"success",className:"rounded-3",children:"Connected successfully!"}),(0,_.jsx)("div",{className:"text-end mb-3",children:(0,_.jsx)("a",{href:"https://support.google.com/accounts/answer/185833",target:"_blank",rel:"noreferrer",className:"small link-blue",children:b("gmail.needHelp")})}
1),(0,_.jsxs)(u.A,{className:"g-4",children:[(0,_.jsxs)(c.A,{md:6,children:[(0,_.jsx)(m.A.Label,{className:"label-modern",children:b("gmail.firstName")}),(0,_.jsx)(m.A.Control,{className:"form-control-modern",name:"firstName",value:F.firstName,onChange:z,placeholder:"John",required:!0})]}),(0,_.jsxs)(c.A,{md:6,children:[(0,_.jsx)(m.A.Label,{className:"label-modern",children:b("gmail.lastName")}),(0,_.jsx)(m.A.Control,{className:"form-control-modern",name:"lastName",value:F.lastName,onChange:z,placeholder:"Doe",required:!0})]})]}),(0,_.jsxs)(m.A.Group,{className:"mt-4",children:[(0,_.jsx)(m.A.Label,{className:"label-modern",children:b("gmail.email")}),(0,_.jsx)(m.A.Control,{className:"form-control-modern",type:"email",name:"email",value:F.email,onChange:z,placeholder:"[email protected]",required:!0})]}),(0,_.jsxs)(m.A.Group,{className:"mt-4",children:[(0,_.jsx)(m.A.Label,{className:"label-modern",children:b("gmail.appPassword")}),(0,_.jsx)("small",{className:"text-muted d-block mb-2",children:b("gmail.appPasswordHelp")}),(0,_.jsx)(m.A.Control,{className:"form-control-modern",type:"text",name:"appPassword",value:F.appPassword,onChange:z,required:!0})]}),(0,_.jsxs)("div",{className:"d-flex justify-content-between mt-5 pt-3",children:[(0,_.jsx)(r.A,{variant:"link",className:"text-muted",onClick:()=>C(1),disabled:k,children:b("gmail.back")}),(0,_.jsx)(r.A,{className:"btn-success-google text-white",type:"submitirb submit",disabled:k,children:k?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(g.A,{animation:"border",size:"sm",className:"me-2"}),b("gmail.connecting")]}):b("gmail.connectButton")})]})]})]})]})}),L&&(0,_.jsx)("div",{className:"modal fade show d-block",style:{backgroundColor:"rgba(0,0,0,0.5)"},tabIndex:"-1",children:(0,_.jsx)("div",{className:"modal-dialog modal-dialog-centered",children:(0,_.jsxs)("div",{className:"modal-content border-0 shadow-lg",style:{borderRadius:"16px"},children:[(0,_.jsxs)("div",{className:"modal-header border-0 pb-2",children:[(0,_.jsxs)("h5",{className:"modal-title fw-bold text-danger",children:[(0,_.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"me-2",children:(0,_.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}),b("gmail.deleteConfirmTitle")]}),(0,_.jsx)("button",{type:"button",className:"btn-close",onClick:U})]}),(0,_.jsxs)("div",{className:"modal-body pt-2",children:[(0,_.jsx)("p",{className:"text-muted mb-3",children:b("gmail.deleteConfirmText")}),O&&(0,_.jsxs)("div",{className:"bg-light rounded-3 p-3 border-start border-danger border-4",children:[(0,_.jsxs)("div",{className:"fw-semibold",children:[O.first_name," ",O.last_name]}),(0,_.jsx)("div",{className:"text-muted small",children:O.email})]}),(0,_.jsx)("div",{className:"mt-4 text-danger small",children:(0,_.jsx)("strong",{children:b("gmail.deleteWarning")})})]}),(0,_.jsxs)("div",{className:"modal-footer border-0 pt-2",children:[(0,_.jsx)(r.A,{variant:"light",className:"px-4",onClick:U,disabled:!!y,children:b("gmail.cancel")}),(0,_.jsx)(r.A,{variant:"danger",className:"px-5 fw-semibold",onClick:async()=>{if(O){w(O.id),V(!1);try{const e=await fetch("".concat(v.JR,"/gmail-suit/").concat(O.id),{method:"DELETE",headers:{Authorization:"Bearer ".concat(t.A.get("token"))}});if(!e.ok)throw new Error((await e.json()).message||b("gmail.errorDelete"));f.oR.success(b("gmail.successDeleted")),null===n||void 0===n||n()}catch(e){f.oR.error(e.message)}finally{w(null),B(null)}}},disabled:!!y,children:y?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(g.A,{animation:"border",size:"sm",className:"me-2"}),b("gmail.deleting")]}):b("gmail.delete")})]})]})})})]})}}}]);
2//# sourceMappingURL=1230.b69f6273.chunk.js.map

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.