PageSourceSearch

https://app.kiksasa.com/assets/index-ca76fa9b.js

js kiksasa.com collected 2026-10-07 13:37:40 UTC 31,741 bytes, 457 lines download raw bytes

1import{v as P,w as J,j as e,r as C,C as te,t as ve,D as ye,av as B,R as f,cF as Me,W as T,P as L,co as Pe,m as ae,cG as ke,Q as Se,q as oe,U as z,x as Ne,A as Le,X as Ie,aI as Be}from"./index-ef946092.js";import{u as Re,L as Oe}from"./LogoutIcon-33aa02e1.js";import{W as _e,X as $,Y as Te,am as ze,dB as He,a9 as Ve,aa as $e,aB as Fe,G as I,bL as F,B as R,r as H,s as V,a6 as Ae,bG as De,bH as se,a_ as qe,b6 as Ze,aV as ne,a$ as Ue,T as M,i as S,L as re,b0 as Ee,b1 as We,S as Ge,aT as Ke,k as ie,bF as Xe,ag as Ye,cU as Je,bf as le,f as Qe,b_ as e1,A as t1,j as a1,aX as o1,ao as k}from"./index-6b35cbc0.js";import{S as s1}from"./index-9b2116cd.js";import{d as de}from"./NotificationsNoneOutlined-3a5a1345.js";import{L as n1}from"./index-f8c9948d.js";import{J as ce,K as r1,L as i1,N as l1,O as d1,P as c1,U as pe,o as p1}from"./routes-360a7ab7.js";import{S as h1}from"./ScrollContainer-ae4a5bb3.js";import{$ as u1}from"./module-99f7e95e.js";/* empty css                      */const x1=P.div`
2  display: flex;
3  align-items: center;
4  justify-content: space-between;
5  padding: 20px 30px;
6  background-color: #fff;
7  height: 100px;
8  .headerLogo {
9    width: 165px;
10    height: 100%;
11    border-radius: 0;
12  }
13  .searchForm {
14    max-width: 600px;
15    width: 100%;
16    margin: auto;
17    padding: 0 15px;
18    .MuiFormControl-root {
19      .MuiInputBase-formControl {
20        border-radius: 10px;
21        border: 1px solid #e4e9f8;
22        background: #fafbfe;
23        padding: 5px 16px;
24        height: 60px;
25        input::placeholder {
26          color: #475467;
27          font-size: 14px;
28          font-weight: 400;
29          opacity: 1;
30        }
31        input::-ms-input-placeholder {
32          color: #475467;
33          font-size: 14px;
34          font-weight: 400;
35          opacity: 1;
36        }
37        input::-moz-input-placeholder {
38          color: #475467;
39          font-size: 14px;
40          font-weight: 400;
41          opacity: 1;
42        }
43        input::-webkit-input-placeholder {
44          color: #475467;
45          font-size: 14px;
46          font-weight: 400;
47          opacity: 1;
48        }
49        svg {
50          /* margin-right: 8px; */
51        }
52        &::before {
53          display: none;
54        }
55      }
56    }
57  }
58
59  .headerRight {
60    display: flex;
61    align-items: center;
62    .headerInfo {
63      display: flex;
64      align-items: center;
65      gap: 6px;
66      .backBtn {
67        text-decoration: none;
68        color: ${J.palette.primary.main};
69        font-weight: 600;
70        margin-right: 30px;
71        padding: 8px;
72        border-radius: 8px;
73        svg {
74          display: none;
75        }
76        :hover {
77          background-color: #f7f9ff;
78        }
79      }
80
81      .contactus {
82        color: #272727;
83      }
84      h5 {
85        font-weight: 600;
86      }
87
88      .userImage {
89        cursor: pointer;
90        :hover {
91          transform: scale(1.1);
92        }
93      }
94    }
95    .mobileSearchIcon {
96      display: none;
97      line-height: 11px;
98    }
99  }
100  .customPaper.searchPopup {
101    border-radius: 10px;
102    background: #fff;
103    box-shadow:
104      0px 1px 2px 0px rgba(0, 0, 0, 0.06),
105      0px 1px 3px 0px rgba(0, 0, 0, 0.08);
106    padding: 20px;
107    position: absolute;
108    top: 100%;
109    left: 0;
110    right: 0;
111    margin-top: 10px;
112    z-index: 1;
113    display: none;
114    &.searchData {
115      display: block;
116    }
117    .MuiGrid-root {
118      padding-bottom: 15px;
119      margin-bottom: 15px;
120      border-bottom: 1px solid #e8e8ed;
121      &:last-child {
122        padding-bottom: 0;
123        margin-bottom: 0;
124        border-bottom: none;
125      }
126    }
127    .MuiAvatar-root {
128      width: 36px;
129      height: 36px;
130      cursor: pointer;
131      img {
132        border-radius: 100%;
133      }
134    }
135    .searchUserInfo {
136      display: flex;
137      flex-wrap: wrap;
138      padding-left: 10px;
139      .MuiTypography-subtitle1 {
140        font-weight: 600;
141        position: relative;
142        &.online {
143          padding-right: 10px;
144          &:before {
145            position: absolute;
146            content: '';
147            background-color: #40d060;
148            width: 6px;
149            height: 6px;
150            border-radius: 100%;
151            right: 0;
152            bottom: 4px;
153          }
154        }
155      }
156      .MuiTypography-body1 {
157        position: relative;
158        padding-right: 8px;
159        margin-right: 5px;
160        &:before {
161          position: absolute;
162          content: '';
163          right: 0;
164          top: 0;
165          bottom: 0;
166          background-color: #475467;
167          width: 3px;
168          height: 3px;
169          border-radius: 3px;
170          margin: auto;
171        }
172      }
173      .MuiTypography-body2 {
174        font-weight: 600;
175      }
176    }
177  }
178  .searchBtn {
179    background-color: ${J.palette.primary.main} !important;
180    width: 35px;
181    height: 35px;
182    display: none;
183    margin-right: 10px;
184    svg {
185      width: 14px;
186      & * {
187        fill: #fff;
188      }
189    }
190  }
191  @media only screen and (max-width: 1599px) {
192    .searchForm {
193      max-width: 480px;
194    }
195  }
196  @media only screen and (max-width: 1199px) {
197    padding: 20px 16px;
198    height: auto;
199    .headerRight {
200      .headerInfo {
201        /* .contactus {
202          display: none;
203        } */
204        h5,
205        h6 {
206          display: none;
207        }
208        .backBtn {
209          margin-right: 10px;
210          font-size: 15px;
211        }
212        .userImage {
213          width: 29px;
214          height: 29px;
215        }
216      }
217    }
218  }
219  @media only screen and (max-width: 767px) {
220    padding: 15px 16px;
221    .searchBtn {
222      display: flex;
223    }
224    .searchForm {
225      display: none;
226      &.active {
227        display: flex;
228        position: absolute;
229        top: 65px;
230        left: 0;
231        right: 0;
232        max-width: 100%;
233        background-color: #fff;
234        padding: 18px;
235        z-index: 999;
236        border-top: 1px solid rgba(0, 0, 0, 0.05);
237        box-shadow:
238          0px 4px 6px -2px rgba(0, 0, 0, 0.04),
239          0px 10px 15px -3px rgba(0, 0, 0, 0.08);
240      }
241      .MuiFormControl-root {
242        .MuiInputBase-formControl {
243          height: 50px;
244        }
245      }
246    }
247    .headerLogo {
248      width: 110px;
249      height: 100%;
250    }
251    .headerRight {
252      .headerInfo {
253        .contactus {
254          display: none;
255        }
256      }
257    }
258  }
259  @media only screen and (max-width: 320px) {
260    .headerLogo {
261      width: 90px;
262      height: 100%;
263    }
264    .headerRight {
265      .headerInfo {
266        .backBtn {
267          font-size: 14px;
268        }
269      }
270    }
271  }
272`,m1=()=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{clipPath:"url(#clip0_410_11760)",children:e.jsx("path",{d:"M20.4853 3.51471C18.2188 1.24823 15.2053 0 12 0C8.79474 0 5.78119 1.24823 3.51471 3.51471C1.24823 5.78119 0 8.79474 0 12C0 15.2053 1.24823 18.2188 3.51471 20.4853C5.78119 22.7518 8.79474 24 12 24C15.2053 24 18.2188 22.7518 20.4853 20.4853C22.7518 18.2188 24 15.2053 24 12C24 8.79474 22.7518 5.78119 20.4853 3.51471ZM5.20807 20.1233C5.60431 16.7139 8.53564 14.0815 12 14.0815C13.8263 14.0815 15.5436 14.7931 16.8354 16.0847C17.9268 17.1762 18.6151 18.6013 18.7921 20.1231C16.9519 21.6643 14.5825 22.5938 12 22.5938C9.41748 22.5938 7.04828 21.6645 5.20807 20.1233ZM12 12.6332C9.99042 
27212.6332 8.35529 10.998 8.35529 8.98846C8.35529 6.9787 9.99042 5.34375 12 5.34375C14.0096 5.34375 15.6447 6.9787 15.6447 8.98846C15.6447 10.998 14.0096 12.6332 12 12.6332ZM20.0024 18.9344C19.6441 17.4897 18.8969 16.1576 17.8297 15.0905C16.9655 14.2262 15.943 13.5778 14.8279 13.1715C16.1684 12.2624 17.051 10.7265 17.051 8.98846C17.051 6.20343 14.785 3.9375 12 3.9375C9.21497 3.9375 6.94904 6.20343 6.94904 8.98846C6.94904 10.7274 7.83234 12.2639 9.17395 13.1728C8.14801 13.5467 7.19861 14.1248 6.38177 14.8857C5.19891 15.9873 4.3775 17.3919 3.99664 18.9333C2.38367 17.0739 1.40625 14.649 1.40625 12C1.40625 6.15857 6.15857 1.40625 12 1.40625C17.8414 1.40625 22.5938 6.15857 22.5938 12C22.5938 14.6495 21.616 17.075 20.0024 18.9344Z",fill:"black"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_410_11760",children:e.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),g1=()=>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 0.705078C8.4706 0.705078 5.64707 3.52861 5.64707 7.05802V9.88155C4.44707 9.88155 3.52942 10.7992 3.52942 11.9992V21.1757C3.52942 22.3757 4.44707 23.2933 5.64707 23.2933H18.3529C19.5529 23.2933 20.4706 22.3757 20.4706 21.1757V11.9992C20.4706 10.7992 19.5529 9.88155 18.3529 9.88155V7.05802C18.3529 3.52861 15.5294 0.705078 12 0.705078ZM19.0588 11.9992V21.1757C19.0588 21.5992 18.7765 21.8815 18.3529 21.8815H5.64707C5.22354 21.8815 4.94118 21.5992 4.94118 21.1757V11.9992C4.94118 11.5757 5.22354 11.2933 5.64707 11.2933H6.35295H17.6471H18.3529C18.7765 11.2933 19.0588 11.5757 19.0588 11.9992ZM7.05883 9.88155V7.05802C7.05883 4.30508 9.24707 2.11684 12 2.11684C14.7529 2.11684 16.9412 4.30508 16.9412 7.05802V9.88155H7.05883Z",fill:"black"}),e.jsx("path",{d:"M12.0006 13.4102C10.8006 13.4102 9.88293 14.3278 9.88293 15.5278C9.88293 16.4455 10.4476 17.2219 11.2947 17.5043V19.0572C11.2947 19.4807 11.5771 19.7631 12.0006 19.7631C12.4241 19.7631 12.7065 19.4807 12.7065 19.0572V17.5043C13.5535 17.2219 14.1182 16.4455 14.1182 15.5278C14.1182 14.3278 13.2006 13.4102 12.0006 13.4102ZM12.0006 16.2337C11.5771 16.2337 11.2947 15.9513 11.2947 15.5278C11.2947 15.1043 11.5771 14.8219 12.0006 14.8219C12.4241 14.8219 12.7065 15.1043 12.7065 15.5278C12.7065 15.9513 12.4241 16.2337 12.0006 16.2337Z",fill:"black"})]}),f1=()=>e.jsx("svg",{width:"22",height:"16",viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M20.0664 0H1.93359C0.865262 0 0 0.870633 0 1.93359V13.5352C0 14.6044 0.871621 15.4688 1.93359 15.4688H20.0664C21.1258 15.4688 22 14.6081 22 13.5352V1.93359C22 0.872523 21.1382 0 20.0664 0ZM19.7956 1.28906C19.4006 1.68201 12.602 8.44478 12.3673 8.67827C12.002 9.0435 11.5165 9.2446 11 9.2446C10.4835 9.2446 9.99797 9.04346 9.63153 8.67707C9.47366 8.52002 2.75013 1.83193 2.20438 1.28906H19.7956ZM1.28906 13.2728V2.19678L6.85945 7.73781L1.28906 13.2728ZM2.2052 14.1797L7.77339 8.6469L8.72124 9.58977C9.32993 10.1985 10.1392 10.5337 11 10.5337C11.8608 10.5337 12.6701 10.1985 13.2776 9.59097L14.2266 8.6469L19.7948 14.1797H2.2052ZM20.7109 13.2728L15.1406 7.73781L20.7109 2.19678V13.2728Z",fill:"black"})}),O={password:{required:"Please enter old password",incorrect:"Incorrect username or password"},newPassword:{required:"Please enter new password",pattern:"Must be 8 or more characters and contain at least 1 upper, lower, number & special character"},confirmPassword:{required:"Please enter confirm password",match:"Password doesn't match"}},C1=_e({currentPassword:$().trim().required(O.password.required),newPassword:$().trim().required(O.newPassword.required).matches(Te.strong_password,O.newPassword.pattern),confirmPassword:$().trim().required(O.confirmPassword.required).oneOf([ze("newPassword")],O.confirmPassword.match)}).required(),b1=t=>{const[d,s]=C.useState(!1),{isOpen:a,setIsOpen:o}=t,{mutate:i,isLoading:p}=He(),{handleSubmit:l,control:r,setError:c}=Ve({mode:"onTouched",resolver:$e(C1),shouldUnregister:!0}),n=x=>{i(x,{onSuccess:()=>{o(!1),s(!0)},onError:h=>{c("currentPassword",{type:"incorrect",message:h==null?void 0:h.message})}})};return e.jsxs(e.Fragment,{children:[e.jsx(Fe,{isOpen:a,setIsOpen:o,title:"Change password",className:"bioModal",showClose:!0,description:"Type and confirm a secure new password for the account.",dialogContent:e.jsx("form",{onSubmit:l(n),children:e.jsxs(I,{container:!0,rowSpacing:4,columnSpacing:4,children:[e.jsx(I,{item:!0,xs:12,children:e.jsx(F,{control:r,type:"password",name:"currentPassword",label:"Old password",placeholder:"Enter your old password",isRequired:!0})}),e.jsx(I,{item:!0,xs:12,children:e.jsx(F,{control:r,type:"password",name:"newPassword",testid:"new-password",label:"New password",placeholder:"Enter your new password",isRequired:!0})}),e.jsx(I,{item:!0,xs:12,children:e.jsx(F,{control:r,type:"password",name:"confirmPassword",testid:"confirm-password",label:"Confirm new password",placeholder:"Confirm your new password",isRequired:!0})})]})}),action:e.jsxs(e.Fragment,{children:[e.jsx(R,{type:"submit",color:"primary",variant:"contained",fullWidth:!1,disabled:p,onClick:l(n),isLoading:p,children:"Submit"}),e.jsx(R,{type:"button",color:"secondary",variant:"contained",fullWidth:!1,onClick:()=>o(!1),disabled:p,children:"Cancel"})]})}),e.jsx(s1,{isOpen:d,setIsOpen:s,dialogTitle:"Success",dialogName:"thankyouModal",dialogDesc:"Your password has been changed",buttonText:"OK",dynamicRoute:""})]})};var A={},w1=V;
272Object.defineProperty(A,"__esModule",{value:!0});var he=A.default=void 0,j1=w1(H()),v1=e,y1=(0,j1.default)((0,v1.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"ClearOutlined");he=A.default=y1;const N=t=>t.includes(f.searchresults),y=t=>t.includes(f.marketplace),M1=({isSearchActive:t,setIsSearchActive:d})=>{const s=te(),a=ve(),[o,i]=C.useState(""),[p,l]=ye(),r=p.get("query")??p.get("module")??"";C.useEffect(()=>{N(a.pathname)||y(a.pathname)?i(r):(!N(a.pathname)||!y(a.pathname))&&i("")},[a.pathname,i,r]);const c=()=>{o.trim().length>0?N(a.pathname)?l({query:o,type:"users"}):y(a.pathname)?l({module:o}):s({pathname:f.searchresults,search:Me({query:o.trim(),type:"users"}).toString()}):(N(a.pathname)||y(a.pathname)&&o.trim().length===0)&&l(),d==null||d(!1)},n=()=>{N(a.pathname)||y(a.pathname)?i(r):i("")},x=()=>{!N(a.pathname)&&!y(a.pathname)&&s(f.searchresults)},h=()=>{i(""),(N(a.pathname)||y(a.pathname))&&l(),d==null||d(!1)};return e.jsx("form",{className:`customPaper searchForm ${t?"active":""}`,onSubmit:u=>{u.preventDefault(),c()},children:e.jsx(Ae,{variant:"standard",children:e.jsx(De,{autoComplete:"off",value:o,onChange:u=>i(u.target.value),id:"app-search",placeholder:y(a.pathname)?"Enter name or keyword to search modules":"Enter name or keyword to search community profiles",startAdornment:e.jsx(B,{onClick:x,children:e.jsx(se,{})}),onBlur:n,endAdornment:y(a.pathname)&&o.length>0?e.jsx(B,{onClick:h,children:e.jsx(he,{})}):null})})})},P1=()=>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 11.25H4.5C3.90326 11.25 3.33097 11.0129 2.90901 10.591C2.48705 10.169 2.25 9.59674 2.25 9V4.5C2.25 3.90326 2.48705 3.33097 2.90901 2.90901C3.33097 2.48705 3.90326 2.25 4.5 2.25H9C9.59674 2.25 10.169 2.48705 10.591 2.90901C11.0129 3.33097 11.25 3.90326 11.25 4.5V9C11.25 9.59674 11.0129 10.169 10.591 10.591C10.169 11.0129 9.59674 11.25 9 11.25ZM4.5 3.75C4.30109 3.75 4.11032 3.82902 3.96967 3.96967C3.82902 4.11032 3.75 4.30109 3.75 4.5V9C3.75 9.19891 3.82902 9.38968 3.96967 9.53033C4.11032 9.67098 4.30109 9.75 4.5 9.75H9C9.19891 9.75 9.38968 9.67098 9.53033 9.53033C9.67098 9.38968 9.75 9.19891 9.75 9V4.5C9.75 4.30109 9.67098 4.11032 9.53033 3.96967C9.38968 3.82902 9.19891 3.75 9 3.75H4.5Z",fill:"black"}),e.jsx("path",{d:"M19.5 11.25H15C14.4033 11.25 13.831 11.0129 13.409 10.591C12.9871 10.169 12.75 9.59674 12.75 9V4.5C12.75 3.90326 12.9871 3.33097 13.409 2.90901C13.831 2.48705 14.4033 2.25 15 2.25H19.5C20.0967 2.25 20.669 2.48705 21.091 2.90901C21.5129 3.33097 21.75 3.90326 21.75 4.5V9C21.75 9.59674 21.5129 10.169 21.091 10.591C20.669 11.0129 20.0967 11.25 19.5 11.25ZM15 3.75C14.8011 3.75 14.6103 3.82902 14.4697 3.96967C14.329 4.11032 14.25 4.30109 14.25 4.5V9C14.25 9.19891 14.329 9.38968 14.4697 9.53033C14.6103 9.67098 14.8011 9.75 15 9.75H19.5C19.6989 9.75 19.8897 9.67098 20.0303 9.53033C20.171 9.38968 20.25 9.19891 20.25 9V4.5C20.25 4.30109 20.171 4.11032 20.0303 3.96967C19.8897 3.82902 19.6989 3.75 19.5 3.75H15Z",fill:"black"}),e.jsx("path",{d:"M9 21.75H4.5C3.90326 21.75 3.33097 21.5129 2.90901 21.091C2.48705 20.669 2.25 20.0967 2.25 19.5V15C2.25 14.4033 2.48705 13.831 2.90901 13.409C3.33097 12.9871 3.90326 12.75 4.5 12.75H9C9.59674 12.75 10.169 12.9871 10.591 13.409C11.0129 13.831 11.25 14.4033 11.25 15V19.5C11.25 20.0967 11.0129 20.669 10.591 21.091C10.169 21.5129 9.59674 21.75 9 21.75ZM4.5 14.25C4.30109 14.25 4.11032 14.329 3.96967 14.4697C3.82902 14.6103 3.75 14.8011 3.75 15V19.5C3.75 19.6989 3.82902 19.8897 3.96967 20.0303C4.11032 20.171 4.30109 20.25 4.5 20.25H9C9.19891 20.25 9.38968 20.171 9.53033 20.0303C9.67098 19.8897 9.75 19.6989 9.75 19.5V15C9.75 14.8011 9.67098 14.6103 9.53033 14.4697C9.38968 14.329 9.19891 14.25 9 14.25H4.5Z",fill:"black"}),e.jsx("path",{d:"M17.25 21.75C16.36 21.75 15.49 21.4861 14.7499 20.9916C14.0099 20.4971 13.4331 19.7943 13.0925 18.9721C12.7519 18.1498 12.6628 17.245 12.8365 16.3721C13.0101 15.4992 13.4387 14.6974 14.068 14.068C14.6974 13.4387 15.4992 13.0101 16.3721 12.8365C17.245 12.6628 18.1498 12.7519 18.9721 13.0925C19.7943 13.4331 20.4971 14.0099 20.9916 14.7499C21.4861 15.49 21.75 16.36 21.75 17.25C21.7488 18.4431 21.2743 19.587 20.4307 20.4307C19.587 21.2743 18.4431 21.7488 17.25 21.75ZM17.25 14.25C16.6567 14.25 16.0766 14.4259 15.5833 14.7556C15.0899 15.0852 14.7054 15.5538 14.4784 16.102C14.2513 16.6501 14.1919 17.2533 14.3076 17.8353C14.4234 18.4172 14.7091 18.9518 15.1287 19.3713C15.5482 19.7909 16.0828 20.0766 16.6647 20.1924C17.2467 20.3081 17.8499 20.2487 18.3981 20.0216C18.9462 19.7946 19.4148 19.4101 19.7444 18.9167C20.0741 18.4234 20.25 17.8433 20.25 17.25C20.25 16.4544 19.9339 15.6913 19.3713 15.1287C18.8087 14.5661 18.0457 14.25 17.25 14.25Z",fill:"black"})]}),Q=()=>e.jsxs("svg",{width:"24",height:"22",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M23.671 4.50564C23.3875 4.26363 22.9874 4.21263 22.6521 4.37584L17.5219 6.87334L12.7082 1.32325C12.5302 1.11794 12.2718 1 12 1C11.7282 1 11.4699 1.11794 11.2918 1.32325L6.47809 6.8733L1.3479 4.3758C1.0126 4.21263 0.612573 4.26358 0.328979 4.50559C0.0453853 4.74761 -0.0678647 5.1347 0.0405572 5.49142L3.60306 17.2102C3.7231 17.6051 4.08728 17.875 4.50001 17.875H19.5C19.9127 17.875 20.2769 17.6051 20.3969 17.2102L23.9594 5.49147C24.0679 5.13475 23.9546 4.74766 23.671 4.50564ZM18.8051 16H5.19484L2.45964 7.
27200244L6.30442 8.8742C6.68617 9.06002 7.14488 8.96617 7.42299 8.64555L12 3.36836L16.5771 8.64555C16.8551 8.96622 17.314 9.05997 17.6956 8.8742L21.5404 7.00244L18.8051 16Z",fill:"black",stroke:"white",strokeWidth:"0.3"}),e.jsx("rect",{x:"4",y:"19.4375",width:"16",height:"2",rx:"1",fill:"black",stroke:"white",strokeWidth:"0.3"})]}),k1=P(I)`
273  display: flex;
274  align-items: top;
275  gap: 8px;
276
277  padding: 10px 14px;
278  border: 1px solid rgba(0, 0, 0, 0.2);
279  border-radius: 10px;
280  box-shadow:
281    0px 2px 4px -1px rgba(0, 0, 0, 0.06),
282    0px 4px 6px -1px rgba(0, 0, 0, 0.08);
283
284  .description {
285    flex-grow: 1;
286    min-width: 0;
287  }
288  .meta-info {
289    display: flex;
290    align-items: 'center';
291    padding-top: 4px;
292  }
293
294  .title {
295    /* display: flex;
296    align-items: center;
297    gap: 4px; */
298  }
299  .dynamicActions {
300    display: flex;
301    align-items: center;
302    gap: 8px;
303    margin: 8px 0px;
304
305    .MuiButton-root {
306      min-height: 0;
307      font-size: 13px;
308      border-radius: 8px;
309      height: unset;
310    }
311  }
312  .nav-link {
313    :hover,
314    :visited,
315    :active,
316    :focus {
317      color: inherit;
318    }
319  }
320  .MuiTypography-h6 {
321    overflow: hidden;
322    white-space: nowrap;
323    text-overflow: ellipsis;
324  }
325  .subtitle {
326    display: flex;
327    align-items: center;
328    gap: 4px;
329  }
330  .detail {
331    display: flex;
332    align-items: 'center';
333    gap: 12px;
334  }
335  .MuiTypography-body2 {
336    font-weight: 500;
337    line-height: 1.3;
338    color: #1d2939;
339    /* white-space: nowrap; */
340    overflow: hidden;
341    text-overflow: ellipsis;
342  }
343
344  .actions {
345    min-width: 30px;
346    display: flex;
347    justify-content: flex-end;
348    align-items: top;
349  }
350  .large-width {
351    min-width: 85px;
352  }
353
354  :hover {
355    background-color: rgba(0, 0, 0, 0.04);
356  }
357`;var D={},S1=V;Object.defineProperty(D,"__esModule",{value:!0});var ue=D.default=void 0,N1=S1(H()),L1=e,I1=(0,N1.default)((0,L1.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOffOutlined");ue=D.default=I1;const B1=({notification:t,onNavigableNotificationClick:d})=>{var u,b;const s=qe({variant:"popover",popupId:"userbioPopover"}),[a,o]=C.useState(null),{mutate:i,isLoading:p}=ce(),{mutateAsync:l,isLoading:r}=Ze(),c=C.useRef(null),n=m=>{m.stopPropagation(),i(t._id)};let x=t.notificationTitle;if(["added-to-ecoItem-team","promoted-to-org-admin","demoted-from-org-admin","org-invite-send","removed-from-org"].includes(t.eventType)&&t.groupDetails){const m=((u=t.groupDetails)==null?void 0:u.name)||"",g=(b=t.groupDetails)==null?void 0:b._id,[w,_]=x.split("{{orgName}}");x=e.jsxs("span",{children:[w,e.jsx(T,{to:f.organizations.root(g),onClick:d,className:"nav-link",children:m}),_]})}const h=m=>{var g,w;o(m),l({action:m,inviteId:((g=t.context)==null?void 0:g.inviteId)||"",groupId:(w=t.groupDetails)==null?void 0:w._id,actionBy:"member"}).then(()=>i(t._id)).finally(()=>{o(null)})};return e.jsxs(e.Fragment,{children:[e.jsxs(k1,{item:!0,children:[e.jsx(ne,{alt:t.sentBy.userName,userName:t.sentBy.userName,src:t.sentBy.profilePicUrl,...Ue(s)}),e.jsxs(L,{className:"customPaper description",children:[e.jsxs(L,{className:"customPaper title",children:[e.jsx(M,{variant:"body2",ref:c,children:x}),t.eventType==="org-invite-send"&&e.jsxs(S,{className:"dynamicActions",children:[e.jsx(R,{size:"small",variant:"contained",color:"primary",isLoading:r&&a==="accepted",disabled:r,onClick:()=>h("accepted"),children:"Accept"}),e.jsx(R,{size:"small",variant:"contained",color:"primary",disabled:r,isLoading:r&&a==="declined",onClick:()=>h("declined"),children:"Reject"})]})]}),e.jsx(L,{className:" customPaper meta-info",children:e.jsx(M,{variant:"caption",color:"grey.900",children:Pe(t.createdAt)})})]}),e.jsx(L,{className:"customPaper actions",children:e.jsx(n1,{loading:p,children:e.jsx("span",{children:e.jsx(re,{title:"Dismiss",children:e.jsx(B,{onClick:n,disabled:t.eventType==="org-invite-send",children:e.jsx(ue,{})})})})})})]}),e.jsx(Ee,{...We(s),userId:t.sentBy._id})]})},R1=P(h1)`
358  height: calc(100% - 87px);
359`,O1=P(I)`
360  padding: 0px 20px;
361  display: flex;
362  flex-direction: column;
363  .MuiGrid-root {
364    margin-bottom: 10px;
365    &:last-child {
366      margin-bottom: 0;
367    }
368  }
369  .message {
370    align-self: center;
371  }
372`,_1=P(S)`
373  height: calc(100% - 87px);
374  padding: 0px 20px 20px;
375  background-color: #f9fafb;
376  display: flex;
377  flex-direction: column;
378  align-items: center;
379  justify-content: center;
380  .MuiSvgIcon-root {
381    width: 100px;
382    height: 100px;
383    color: #d0d5dd;
384    stroke-width: 1;
385  }
386  .MuiTypography-subtitle2 {
387    color: #d0d5dd;
388    text-shadow: #000;
389  }
390`,T1=()=>e.jsxs(_1,{children:[e.jsx(de,{}),e.jsx(M,{variant:"subtitle2",children:"No Unread Notifications"})]}),z1=({setShowDismissAllButton:t,onNavigableNotificationClick:d})=>{const{data:s,error:a,refetch:o,isLoading:i,fetchNextPage:p,isFetchingNextPage:l,hasNextPage:r}=r1();if(C.useEffect(()=>{(s?s.pages.flatMap(x=>x.notifications):[]).length>0?t(!0):t(!1)},[s,t]),i)return e.jsx(i1,{});if(a)return e.jsx(Ge,{noResultClass:!0,title:"Something went wrong!",description:"Could not fetch notifications!",action:e.jsx(R,{onClick:()=>o(),children:"Retry"})});if(!s)return null;const c=s.pages.flatMap(n=>n.notifications);return c.length==0?e.jsx(T1,{}):e.jsx(R1,{initialScrollPosition:"top",disableAutoScroll:!0,dataLength:c.length,hasMoreonBottom:r,onBottom:()=>p({cancelRefetch:!1}),showJumpToBottomButon:!1,children:e.jsxs(O1,{children:[c.map(n=>e.jsx(B1,{notification:n,onNavigableNotificationClick:d},n._id)),l?e.jsx(M,{variant:"body1",className:"message",color:"grey.500",children:"Loading..."}):e.jsx(e.Fragment,{children:!r&&c.length>4&&e.jsx(M,{variant:"body1",className:"message",color:"grey.500",children:"No Additional Notifications"})})]})})},H1=P(B)`
391  color: #272727;
392  .MuiBadge-root {
393    .MuiBadge-badge {
394      background-color: #f4793a;
395      color: #fff;
396    }
397  }
398`,V1=P(Ke)`
399  .MuiPopover-paper {
400    width: 400px;
401    height: 450px;
402    border-radius: 10px;
403  }
404
405  .notification-header {
406    padding: 20px;
407    display: flex;
408    align-items: baseline;
409    justify-content: space-between;
410    .MuiTypography-h3 {
411      font-size: 18px;
412      line-height: 1;
413    }
414    .MuiButton-text {
415      padding: 5px;
416      :hover {
417        background-color: #f7f9ff;
418        color: #2563eb;
419      }
420    }
421    a {
422      color: inherit;
423    }
424  }
425
426  .searchResult {
427    box-shadow: none;
428    background-color: #f9fafb;
429  }
430`;P(S)``;const $1=()=>{const[t,d]=C.useState(null),s=ae(),a=ie(s.breakpoints.down("sm")),{data:o}=l1(),{mutate:i}=d1(),{mutate:p,isLoading:l}=ce(),[r,c]=C.useState(!1),n=ke(Se.dismissNotification()),x=g=>{d(g.currentTarget),o!=null&&o.unreadCount&&i(void 0)},h=()=>{d(null)},u=!!t,b=u?"notification-list-popover":void 0,m=()=>{p("all")};return c1(),e.jsxs(e.Fragment,{children:[e.jsx(H1,{onClick:x,"aria-describedby":b,children:e.jsx(Xe,{badgeContent:(o==null?void 0:o.unreadCount)??0,children:e.jsx(de,{})})}),e.jsxs(V1,{id:b,open:u,anchorReference:a?"anchorPosition":"anchorEl",anchorEl:t,anchorPosition:{top:(t==null?void 0:t.getBoundingClientRect().y)??0,left:0},onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[e.jsxs(S,{className:"notification-header",children:[e.jsxs(S,{children:[e.jsx(M,{variant:"h3",children:"Notifications"}),r&&e.jsxs(M,{variant:"caption",children:["Don't have a module on your hub?"," ",e.jsx(T,{to:f.marketplace,onClick:h,children:"Add it here."})]})]}),e.jsx(S,{sx:{display:"flex",alignItems:"center"},children:r&&e.jsx(R,{variant:"text",color:"primary",disabled:l||!!n,onClick:m,children:"Dismiss All"})})]}),e.jsx(z1,{setShowDismissAllButton:c,onNavigableNotificationClick:h})]})]})};var q={},F1=V;Object.defineProperty(q,"__esModule",{value:!0});var xe=q.default=void 0,A1=F1(H()),D1=e,q1=(0,A1.default)((0,D1.jsx)("path",{d:"M11 23.59v-3.6c-5.01-.26-9-4.42-9-9.49C2 5.26 6.26 1 11.5 1S21 5.26 21 10.5c0 4.95-3.44 9.93-8.57 12.4l-1.43.69zM11.5 3C7.36 3 4 6.36 4 10.5S7.36 18 11.5 18H13v2.3c3.64-2.3 6-6.08 6-9.8C19 6.36 15.64 3 11.5 3zm-1 11.5h2v2h-2zm2-1.5h-2c0-3.25 3-3 3-5 0-1.1-.9-2-2-2s-2 .9-2 2h-2c0-2.21 1.79-4 4-4s4 1.79 4 4c0 2.5-3 2.75-3 5z"}),"ContactSupportOutlined");xe=q.default=q1;const Z1=P(Ye)`
431  &.currentPlan {
432    margin: 0 5px;
433    padding: 0px 8px;
434    cursor: pointer;
435    min-width: 0px;
436    font-size: 12px;
437    border-radius: 4px;
438    & .MuiChip-label {
439      margin-right: 0px;
440    }
441    :hover {
442      background-color: rgba(37, 99, 235, 0.2);
443    }
444    &.error {
445      background-color: #ea4335;
446      border-color: #ea4335;
447      color: white;
448      :hover {
449        background-color: #ea4335;
450      }
451    }
452
453    @media screen and (max-width: 767px) {
454      display: none;
455    }
456  }
457`,ee=({mode:t="chip"})=>{var m,g;const[d,s]=C.useState(!1),a=oe(w=>w.auth.user),o=Je(),{mutate:i}=le(),{isFetching:p,error:l,refetch:r}=Qe(!0),c=((m=a==null?void 0:a.userRole)==null?void 0:m.includes(z.SmallTeam))||((g=a==null?void 0:a.userRole)==null?void 0:g.includes(z.LargeTeam)),x=c?"Team Owner":o?"Team Member":"Individual",h=()=>
457{if(l){r();return}c?i({}):s(!0)},u=c?"Click to manage your Team plan":"Click to upgrade your plan",b=l?"Error Fetching! Retry":x;return e.jsxs(e.Fragment,{children:[t==="chip"?e.jsx(re,{title:l?"Failed to Fetch Payment Information!":u,children:e.jsx(Z1,{label:p?"Checking...":b,onClick:h,className:`currentPlan ${l?"error":""}`,disabled:p,color:"error"})}):e.jsx(e.Fragment,{children:p?"Checking...":b}),d&&e.jsx(pe,{isOpen:d,setIsOpen:s})]})};var Z={},U1=V;Object.defineProperty(Z,"__esModule",{value:!0});var me=Z.default=void 0,E1=U1(H()),W1=e,G1=(0,E1.default)((0,W1.jsx)("path",{d:"M12 7V3H2v18h20V7H12zm-2 12H4v-2h6v2zm0-4H4v-2h6v2zm0-4H4V9h6v2zm0-4H4V5h6v2zm10 12h-8V9h8v10zm-2-8h-4v2h4v-2zm0 4h-4v2h4v-2z"}),"CorporateFareOutlined");me=Z.default=G1;const nt=()=>{var G,K,X,Y;const t=oe(v=>v.auth.user),d=Ne(),s=te(),a=Le(`${f.hub}/*`),{handleLogout:o}=Re(),{mutate:i}=le(),[p,l]=C.useState(!1),[r,c]=C.useState(!1),{data:n}=e1(t==null?void 0:t.primaryGroupId,t==null?void 0:t._id,d),[x,h]=C.useState(!1),{data:u}=p1(),b=ae(),m=ie(b.breakpoints.down("sm")),[g,w]=Ie.useState(null),[_,U]=C.useState(!1),ge=!!g,fe=v=>{w(v.currentTarget)},j=()=>{w(null)},Ce=()=>{l(!0)},E=((G=t==null?void 0:t.userRole)==null?void 0:G.includes(z.SmallTeam))||((K=t==null?void 0:t.userRole)==null?void 0:K.includes(z.LargeTeam)),be=()=>{i({})},we=()=>{E?i({}):U(!0)},W=n!=null&&n.displayPoweredByLogo&&(n!=null&&n.poweredByLogoURL)?n==null?void 0:n.poweredByLogoURL:null,je=v=>{s(f.organizations.root(v))};return e.jsxs(e.Fragment,{children:[e.jsxs(x1,{children:[e.jsx(T,{to:"/",children:e.jsx(t1,{src:!x&&W?W:"/assets/logo.svg",alt:"logo",className:"headerLogo",onError:()=>h(!0)})}),e.jsx(M1,{isSearchActive:r,setIsSearchActive:c}),e.jsx(L,{className:"customPaper headerRight",children:e.jsxs(L,{className:"customPaper headerInfo",children:[e.jsx(B,{className:"searchBtn",onClick:()=>c(!r),children:r?e.jsx(a1,{}):e.jsx(se,{})}),e.jsx(T,{to:a?f.marketplace:f.hub,className:"backBtn",children:a?"+ Add module":"Back to Hub"}),e.jsx(ee,{}),e.jsx($1,{}),e.jsx(B,{className:"contactus",onClick:()=>s(f.contactus),children:e.jsx(xe,{})}),e.jsxs(S,{sx:{display:"flex",alignItems:"center",gap:"10px",padding:"5px"},children:[e.jsx(ne,{src:t==null?void 0:t.profilePicUrl,alt:t==null?void 0:t.userName,userName:t==null?void 0:t.userName,className:"userImage",onClick:fe}),e.jsxs(S,{children:[((t==null?void 0:t.firstName)||(t==null?void 0:t.lastName))&&e.jsx(M,{variant:"h5",children:Be(t.firstName,t.lastName)}),(X=t==null?void 0:t.company)!=null&&X.companyName?e.jsx(M,{variant:"h6",fontWeight:500,children:(Y=t==null?void 0:t.company)==null?void 0:Y.companyName}):null]})]}),e.jsxs(o1,{anchorEl:g,id:"account-menu",open:ge,onClose:j,className:`headerDrodpwon ${g?"active":""}`,slotProps:{paper:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.04)) drop-shadow(0px 20px 25px rgba(0, 0, 0, 0.08))",mt:4,"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:25,height:25,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[e.jsxs(k,{onClick:()=>{s(f.profile),j()},children:[e.jsx(m1,{}),"My profile"]}),E&&!m&&e.jsxs(k,{onClick:()=>{be(),j()},children:[e.jsx(Q,{}),"Manage subscription"]}),m&&e.jsxs(k,{onClick:()=>{we(),j()},children:[e.jsx(Q,{}),"Manage subscription",e.jsx("br",{}),"Current Plan: ",e.jsx(ee,{mode:"text"})]}),Array.isArray(u)&&u.length>0&&e.jsx(u1,{leftIcon:e.jsx(me,{}),label:"Manage Organization",parentMenuOpen:!!g,className:"nestedMenu",children:u.length>0&&u.map(v=>e.jsx(k,{onClick:()=>{je(v._id),j()},children:v.name},v._id))}),!(t!=null&&t.signUpWithGoogle)&&e.jsxs(k,{onClick:()=>{Ce(),j()},children:[e.jsx(g1,{}),"Change password"]}),m&&e.jsxs(k,{onClick:()=>{s(f.contactus),j()},children:[e.jsx(f1,{}),"Contact us"]}),e.jsxs(k,{onClick:()=>{s(f.manageIntegration),j()},children:[e.jsx(P1,{}),"Manage integrations"]}),e.jsxs(k,{onClick:()=>{o(),j()},children:[e.jsx(Oe,{}),"Log out"]})]})]})})]}),e.jsx(b1,{isOpen:p,setIsOpen:l}),_&&e.jsx(pe,{isOpen:_,setIsOpen:U})]})};export{nt as default};

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.