PageSourceSearch

https://hallocasa.com/_next/static/chunks/pages/profile/my-groups-3f6716ac40cf841f.js

js hallocasa.com collected 2026-10-02 06:41:14 UTC 26,642 bytes, 6 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8501],{7048:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/my-groups",function(){return r(38191)}])},11718:(e,t,r)=>{"use strict";r.d(t,{eN:()=>n,il:()=>a});let s="16px",n={"& .MuiInputBase-input, & .MuiOutlinedInput-input, & .MuiAutocomplete-input":{fontSize:s}},a={fontSize:s}},23982:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);function n(e){return s.Children.toArray(e).filter(e=>s.isValidElement(e))}},28208:(e,t,r)=>{"use strict";r.d(t,{G:()=>c});var s=r(14232),n=r(89099),a=r(54783),i=r(31777),l=r(47942);let o=["/profile/my-properties","/profile/analytics","/profile/my-contacts","/profile/my-groups","/profile/my-leads","/profile/my-custom-domain","/profile/my-crm","/profile/my-courses"],c=()=>{let e=(0,n.useRouter)(),{userAccById:t}=(0,a.G)(({profile:e})=>({userAccById:e.data.userAccById}),i.bN);(0,s.useEffect)(()=>{!t?.id||t?.basicProfileCompletedAt||!o.includes(e.pathname)||"/profile/my-groups"===e.pathname&&(0,l.P)(t?.email)||e.replace("/profile/my-profile")},[e.pathname,e,t?.id,t?.basicProfileCompletedAt,t?.email])}},38191:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Q});var s,n,a,i,l,o,c=r(37876),d=r(15173),u=r(89099),m=r(14232),p=r(54783),x=r(55290),g=r(20650),h=r(53814),f=r.n(h),v=r(33431),b=r(67498),j=r(1740),y=r(96848),w=r(66547),N=r(67615),E=r(76379),A=r(13619),k=r(89694),C=r(3400);function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}let M=function(e){return m.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:12,height:13,fill:"none"},e),s||(s=m.createElement("path",{fill:"#293241",d:"M2.716 5.542 1.344 6.914a3 3 0 0 0 4.243 4.243l1.828-1.829a3 3 0 0 0-.828-4.829l-.586.586a1 1 0 0 0-.155.2 2 2 0 0 1 .861 3.337L4.88 10.448A2 2 0 0 1 2.05 7.621l.793-.793a4 4 0 0 1-.128-1.286"})),n||(n=m.createElement("path",{fill:"#293241",d:"M4.587 3.671a3 3 0 0 0 .827 4.83l.776-.776a2 2 0 0 1-.896-3.346l1.828-1.83a2 2 0 0 1 2.829 2.83l-.793.792c.112.42.155.855.128 1.286l1.372-1.372a3 3 0 1 0-4.243-4.242z"})))};function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}let L=function(e){return m.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),a||(a=m.createElement("path",{fill:"#293241",d:"M10.16 14.846h-.087c-2.96 0-4.387-1.167-4.633-3.78a.501.501 0 1 1 1-.094c.193 2.094 1.18 2.874 3.64 2.874h.086c2.714 0 3.674-.96 3.674-3.674V5.826c0-2.714-.96-3.674-3.674-3.674h-.086c-2.474 0-3.46.794-3.64 2.927a.5.5 0 0 1-.547.453.5.5 0 0 1-.46-.54c.227-2.653 1.66-3.84 4.64-3.84h.087c3.273 0 4.673 1.4 4.673 4.674v4.346c0 3.274-1.4 4.674-4.673 4.674"})),i||(i=m.createElement("path",{fill:"#293241",d:"M9.92 8.5H1.335a.504.504 0 0 1-.5-.5c0-.273.227-.5.5-.5h8.587a.5.5 0 1 1 0 1"})),l||(l=m.createElement("path",{fill:"#293241",d:"M8.434 10.735a.5.5 0 0 1-.353-.147.503.503 0 0 1 0-.707l1.88-1.88-1.88-1.88a.503.503 0 0 1 0-.706.503.503 0 0 1 .706 0l2.233 2.233a.503.503 0 0 1 0 .707l-2.233 2.233c-.1.1-.226.147-.353.147"})))};function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}let $=function(e){return m.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),o||(o=m.createElement("path",{fill:"#293241",d:"M6.108 7.745h-.054a.4.4 0 0 0-.12 0c-1.933-.06-3.393-1.58-3.393-3.453a3.465 3.465 0 0 1 3.46-3.46 3.465 3.465 0 0 1 3.46 3.46 3.45 3.45 0 0 1-3.333 3.453zM6 1.832a2.467 2.467 0 0 0-2.46 2.46 2.44 2.44 0 0 0 2.367 2.453c.04-.006.126-.006.213 0a2.456 2.456 0 0 0 2.34-2.453 2.467 2.467 0 0 0-2.46-2.46M11.028 7.835q-.03.002-.06-.007c-.274.027-.554-.167-.58-.44-.027-.273.14-.52.413-.553.08-.007.167-.007.24-.007a1.83 1.83 0 0 0 1.733-1.833c0-1.014-.82-1.834-1.833-1.834a.494.494 0 0 1-.5-.493c0-.273.227-.5.5-.5a2.84 2.84 0 0 1 2.833 2.833c0 1.534-1.2 2.774-2.726 2.834zM6.113 15.035c-1.307 0-2.62-.334-3.613-1-.927-.614-1.434-1.454-1.434-2.367s.507-1.76 1.434-2.38c2-1.327 5.24-1.327 7.226 0 .92.613 1.434 1.453 1.434 2.367s-.507 1.76-1.434 2.38c-1 .666-2.306 1-3.613 1m-3.06-4.907c-.64.427-.987.973-.987 1.547 0 .566.354 1.113.987 1.533 1.66 1.113 4.46 1.113 6.12 0 .64-.427.987-.973.987-1.547 0-.566-.354-1.113-.987-1.533-1.66-1.107-4.46-1.107-6.12 0M12.227 13.833a.49.49 0 0 1-.487-.4.507.507 0 0 1 .387-.593 2.7 2.7 0 0 0 1.106-.487c.38-.286.587-.646.587-1.026s-.207-.74-.58-1.02c-.293-.227-.66-.387-1.093-.487a.504.504 0 0 1-.38-.6.504.504 0 0 1 .6-.38 3.7 3.7 0 0 1 1.48.667c.62.466.973 1.126.973 1.82 0 .693-.36 1.353-.98 1.826a3.6 3.6 0 0 1-1.507.667c-.04.013-.073.013-.106.013"})))};var G=r(49022),V=r(66110),T=r(58239),R=r(47170),q=r(35447),I=r(67227),S=r(30434),P=r(52777);let _=({groupList:e,user:t,groupTab:r})=>{let s=(0,p.G)(e=>e.groups?.groupsList?.list?.list),n=(0,p.G)(e=>e.groups?.requestedGroups?.list?.list),a=(0,p.G)(e=>e.groups?.pendingRequestCounts),i=(0,p.G)(({locales:e})=>e.data.translation),l=(0,u.useRouter)(),o=(0,p.j)(),[d,x]=m.useState(null),[g,h]=m.useState(null),[f,v]=m.useState(!1),[b,j]=(0,m.useState)(null);m.useEffect(()=>{t?.id&&"my-groups"===r&&o((0,T.L0)(t.id))},[o,t?.id,r]);let w=()=>{x(null),h(null)},N=async(e,r)=>{r===t.id?o((0,R.wB)({loading:!0,message:"Owner cannot leave group",messageSeverity:"error"})):(await (0,V.j)(e),o((0,T.ji)(1,100)))};return(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"px-0 mt-5 sm:px-6",children:e?.map((e,u)=>{let m,p,f="global-associations"===r||"global-certifications"===r,b=(m=e.id||"",s?.some(e=>e.id===m)),B=(p=e.id||"",n?.some(e=>e.id===p)),O=f&&!b&&!B;return(0,c.jsxs)("div",{className:`flex justify-between my-2 items-center ${u%2!=0?"bg-[#f7f7f7] rounded-xl":""}`,children:[(0,c.jsx)("div",{className:"flex items-center ml-4 cursor-pointer flex-1 min-w-0 mr-4",onClick:()=>{l.replace(`/group/id/${e.id}`)},children:(0,c.jsxs)("div",{className:"min-w-0  flex flex-row",children:[(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsxs)("h3",{className:"font-inter mr-7 !tracking-normal !normal-case truncate",children:[(0,c.jsx)("span",{"data-testid":`group-name-${u}`,className:"",children:e?.name})," ",e?.owner?.id===t?.id?`(${(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.owner",i)})`:e?.userAdmin?`(${(0,I.BV)("Admin",i)})`:""]}),(e?.owner?.id===t?.id||e?.userAdmin)&&a&&a[e.id||""]>0&&(0,c.jsx)(P.A,{count:a[e.id||""]||0,className:"top-0 right-2",tooltip:(0,I.BV)("A user requested access",i),index:u})]}),(0,c.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,c.jsx)("span",{className:"font-inter mr-7 !tracking-normal !normal-case text-[14px] hidden sm:block",children:"•"}),(0,c.jsxs)("p",{className:"font-inter mr-7 !tracking-normal !normal-case text-[12px] sm:text-[14px] flex-shrink-0",children:[e?.noOfMembers," ",i["hallocasa.my.groups.my.groups.my.groups.members"]]}),e?.locationName&&(0,c.jsx)("span",{className:"font-inter mr-7 !tracking-normal !normal-case text-[14px] hidden sm:block flex-shrink-0",children:"•"}),e?.locationName&&(0,c.jsx)("p",{className:"font-inter mr-7 !tracking-normal !normal-case text-[12px] sm:text-[14px] truncate min-w-0",children:e?.locationName})]})]})}),(0,c.jsxs)("div",{className:"flex-shrink-0",children:[O&&(0,c.jsx)(y.A,{variant:"outlined",onClick:async()=>{try{await (0,q.CT)(e.id||""),o((0,T.Px)()),v(!0)}catch(t){console.error("Error requesting to join group:",t);let e={loading:!0,message:(0,I.BV)("Failed to request access to group",i),messageSeverity:"error"};o((0,R.wB)(e))}}
1,className:"!tracking-normal !normal-case !font-inter !border-[#EE6C4D] !text-[#EE6C4D] hover:!bg-[#EE6C4D] hover:!text-white !rounded-lg !h-[36px] !text-[12px] sm:!text-[14px] !px-4 !py-2 !whitespace-nowrap",children:(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.request.access",i)}),f&&b&&(0,c.jsx)("div",{className:"!text-green-600 !font-medium !text-[12px] sm:!text-[14px]",children:(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.status.member",i)}),f&&B&&(0,c.jsx)(y.A,{className:"!tracking-normal !normal-case !font-inter !border-[#EE6C4D] !text-[#EE6C4D] hover:!bg-[#EE6C4D] hover:!text-white !rounded-lg !h-[36px] !text-[12px] sm:!text-[14px] !px-4 !py-2 !whitespace-nowrap",children:(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.status.requested",i)}),"my-groups"===r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(A.A,{"data-testid":"group-menu-button","aria-label":"more",id:`fade-button-${u}`,sx:{ml:2},"aria-controls":g===u?`fade-menu-${u}`:void 0,"aria-expanded":g===u?"true":void 0,"aria-haspopup":"true",onClick:e=>{h(u),x(e.currentTarget)},className:"!w-[40px] !h-[40px]",children:(0,c.jsx)(E.A,{})}),(0,c.jsxs)(k.A,{id:`fade-menu-${u}`,anchorEl:d,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:g===u,onClose:w,slotProps:{list:{"aria-labelledby":`fade-button-${u}`},paper:{style:{maxHeight:112.5,overflow:"hidden",borderRadius:"10px"}}},children:[(0,c.jsxs)(C.A,{"data-testid":"copy-link-to-group-button",className:"!font-inter !tracking-normal !text-[14px] !font-normal !min-h-0",onClick:()=>{var t;let r;t=e.id||"",r=`${window.location.host}/group/id/${t}${window.location.search}`,navigator.clipboard.writeText(r).then(()=>{console.log("Text copied to clipboard:",r)}).catch(e=>{console.error("Failed to copy text to clipboard:",e)}),w()},children:[(0,c.jsx)(M,{className:"!h-[15px] !w-[25px]"})," ",i["hallocasa.my.groups.my.groups.my.groups.copy.link.to.group"]]},1),(e?.owner?.id===t?.id||e?.userAdmin||t?.id===6257)&&(0,c.jsxs)(C.A,{"data-testid":"manage-members-button",className:"!font-inter !tracking-normal !text-[14px] !font-normal !min-h-0",onClick:()=>{j(e),w()},children:[(0,c.jsx)($,{className:"!h-[15px] !w-[25px]"})," ",(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.manage.members",i)]},2),(0,c.jsxs)(C.A,{"data-testid":"leave-group-button",className:"!font-inter !tracking-normal !text-[14px] !font-normal !min-h-0",onClick:()=>{N(e.id||"",e.owner?.id||0),w()},children:[(0,c.jsx)(L,{className:"!h-[15px] !w-[25px]"})," ",(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.leave.group",i)]},3)]})]})]})]},e.id)})}),(0,c.jsx)(S.A,{isOpen:f,onClose:()=>v(!1)}),b&&(0,c.jsx)(G.A,{isOpen:!0,setIsOpen:e=>{e||j(null)},handleClose:()=>{j(null)},group:b})]})};var D=r(31777);let z=({groupList:e,user:t})=>{let r=(0,p.G)(({locales:e})=>e.data.translation,D.bN),s=(0,u.useRouter)(),n=(0,p.j)(),a=async e=>{try{await (0,q.bo)(e);let t={loading:!0,message:r["hallocasa.my.groups.invitation.accepted"]||"Invitation accepted successfully",messageSeverity:"success"};n((0,R.wB)(t)),n((0,T.cU)())}catch(t){let e={loading:!0,message:r["hallocasa.my.groups.invitation.accept.error"]||"Error accepting invitation",messageSeverity:"error"};n((0,R.wB)(e))}},i=async e=>{try{await (0,q.Io)(e);let t={loading:!0,message:r["hallocasa.my.groups.invitation.rejected"]||"Invitation rejected",messageSeverity:"success"};n((0,R.wB)(t)),n((0,T.cU)())}catch(t){let e={loading:!0,message:r["hallocasa.my.groups.invitation.reject.error"]||"Error rejecting invitation",messageSeverity:"error"};n((0,R.wB)(e))}};return(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"px-0 mt-5 sm:px-6",children:e?.map((e,t)=>(0,c.jsxs)("div",{className:`flex justify-between my-2 items-center flex-wrap ${t%2!=0?"bg-[#f7f7f7] rounded-xl":""}`,children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-center ml-4 cursor-pointer",onClick:()=>{s.replace(`/group/invite/${e.id}`)},children:[(0,c.jsx)("h3",{className:"font-inter mr-7 !tracking-normal !normal-case",children:(0,c.jsx)("span",{"data-testid":`group-name-${t}`,className:"",children:e?.name})}),(0,c.jsxs)("div",{className:"flex flex-wrap items-center",children:[(0,c.jsx)("span",{className:"font-inter mr-7 !tracking-normal 
1!normal-case text-[14px] hidden sm:block",children:"•"}),(0,c.jsxs)("p",{className:"font-inter mr-7 !tracking-normal !normal-case text-[12px] sm:text-[14px]",children:[e?.noOfMembers," ",r["hallocasa.my.groups.my.groups.my.groups.members"]]}),e?.locationName&&(0,c.jsx)("span",{className:"font-inter mr-7 !tracking-normal !normal-case text-[14px] hidden sm:block",children:"•"}),(0,c.jsx)("p",{className:"font-inter mr-7 !tracking-normal !normal-case text-[12px] sm:text-[14px] line-clamp-1 w-[200px] sm:w-[400px] text-ellipsis overflow-hidden",style:{display:"-webkit-box"},children:e?.locationName})]})]}),(0,c.jsxs)("div",{className:"flex gap-2",children:[(0,c.jsx)(y.A,{variant:"contained",className:"!tracking-normal !normal-case !font-inter !bg-[#28a745] !text-white !rounded-lg !h-[36px] !text-[12px] !px-4 !py-2 hover:!bg-[#218838]",onClick:()=>a(e.id||""),children:(0,I.BV)("Common.Label.Accept",r)}),(0,c.jsx)(y.A,{variant:"outlined",className:"!tracking-normal !normal-case !font-inter !border-[#dc3545] !text-[#dc3545] !rounded-lg !h-[36px] !text-[12px] !px-4 !py-2 hover:!bg-[#dc3545] hover:!text-white",onClick:()=>i(e.id||""),children:(0,I.BV)("InstantChat.ChatTab.Reject",r)})]})]},e.id))})})},Y=({isDisabled:e,isAuthenticated:t})=>{let r=(0,p.G)(e=>e.groups.groupTab),s=(0,p.G)(e=>e.groups?.groupsList?.list?.list),n=(0,p.G)(e=>e.groups.groupsList.loading),a=(0,p.G)(e=>e.groups?.requestedGroups?.list?.list),i=(0,p.G)(e=>e.groups.requestedGroups?.loading),l=(0,p.G)(e=>e.groups?.invitedGroups?.list?.list),o=(0,p.G)(e=>e.groups.invitedGroups?.loading),d=(0,p.G)(e=>e.groups?.globalAssociations?.list?.list),x=(0,p.G)(e=>e.groups.globalAssociations?.loading),g=(0,p.G)(e=>e.groups?.globalCertifications?.list?.list),h=(0,p.G)(e=>e.groups.globalCertifications?.loading),f=(0,p.G)(e=>e.chat.userData),v=(0,p.G)(e=>e.locales.data.translation),E=(0,p.j)(),A=(0,u.useRouter)();return(0,m.useEffect)(()=>{t&&(E((0,T.s$)(1,100)),E((0,T.Bp)(1,100)),E((0,T.ji)(1,100)),E((0,T.Px)()),E((0,T.cU)()))},[t,E,f?.id]),(0,m.useEffect)(()=>{t&&("global-associations"===r?E((0,T.s$)(1,50)):"global-certifications"===r?E((0,T.Bp)(1,50)):"my-groups"===r&&E((0,T.ji)(1,100)))},[r,E,t,f?.id]),(0,m.useEffect)(()=>{t&&f?.id&&"my-groups"===r&&!n&&s?.length&&E((0,T.L0)(f.id,s))},[E,r,t,s,n,f?.id]),(0,c.jsx)("div",{className:"w-[100%]",children:(0,c.jsxs)(b.A,{className:"!w-[100%] !rounded-3xl !p-7",sx:{border:"1px solid #dcdcdc"},children:[(0,c.jsxs)("div",{className:"!flex !justify-between !px-0",children:[(0,c.jsxs)(j.A,{children:[(0,c.jsx)(y.A,{variant:"text",disabled:e,className:`!tracking-normal !normal-case !font-inter !pb-5 !mr-5 !text-[10px] sm:!text-[14px] !rounded-none  ${"global-associations"===r?"!text-black !font-semibold !border-[#0256AA] !border-solid !border-b-2":"!text-slate-500"}`,onClick:()=>{E((0,N.pI)("global-associations"))},children:(0,I.BV)("Global Associations",v)}),(0,c.jsx)(y.A,{variant:"text",disabled:e,className:`!tracking-normal !normal-case !font-inter !pb-5 !mr-5 !text-[10px] sm:!text-[14px] !rounded-none  ${"global-certifications"===r?"!text-black !font-semibold !border-[#0256AA] !border-solid !border-b-2":"!text-slate-500"}`,onClick:()=>{E((0,N.pI)("global-certifications"))},children:(0,I.BV)("Global Certifications",v)}),(0,c.jsx)(y.A,{"data-testid":"groups",variant:"text",disabled:e,className:`!tracking-normal !normal-case !font-inter !pb-5 !mr-5 !text-[10px] sm:!text-[14px] !rounded-none  ${"my-groups"===r?"!text-black !font-semibold !border-[#0256AA] !border-solid !border-b-2":"!text-slate-500"}`,onClick:()=>{E((0,N.pI)("my-groups"))},children:(0,I.BV)("My Memberships",v)}),(0,c.jsx)(y.A,{variant:"text",disabled:e,className:`!tracking-normal !normal-case !font-inter !pb-5 !mr-5 !text-[10px] sm:!text-[14px] !rounded-none  ${"requested-groups"===r?"!text-black !font-semibold !border-[#0256AA] !border-solid !border-b-2":"!text-slate-500"}`,onClick:()=>{E((0,N.pI)("requested-groups"))},children:(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.status.requested",v)}),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)(y.A,{"data-testid":"inv
1ited-groups",variant:"text",disabled:e,className:`!tracking-normal !normal-case !font-inter !pb-5 !mr-5 !text-[10px] sm:!text-[14px] !rounded-none  ${"invited-groups"===r?"!text-black !font-semibold !border-[#0256AA] !border-solid !border-b-2":"!text-slate-500"}`,onClick:()=>{E((0,N.pI)("invited-groups"))},children:(0,I.BV)("hallocasa.my.groups.my.groups.my.groups.status.invited",v)}),l&&l.length>0&&(0,c.jsx)("div",{className:"absolute -top-1 right-4 w-3 h-3 bg-red-500 rounded-full"})]})]}),(0,c.jsx)(y.A,{"data-testid":"create-group",variant:"contained",disabled:e,className:"!tracking-normal !normal-case !font-inter  !bg-[#EE6C4D] !text-white !rounded-lg !h-[40px] !text-[10px] sm:!text-[14px] !p-4 sm:!px-7 !py-2",onClick:()=>{A.replace("/group/create-group")},children:v["hallocasa.my.groups.my.groups.create.group"]})]}),e?(0,c.jsx)("h1",{children:(0,I.BV)("You don't have access!",v)}):(0,c.jsxs)(c.Fragment,{children:[("global-associations"===r||"global-certifications"===r)&&(0,c.jsxs)("div",{className:"mt-10",children:[" ",(0,c.jsx)(y.A,{"data-testid":"request-new-association-certification-button",className:"!font-inter !tracking-normal !normal-case !bg-[#EE6C4D] !text-white !text-xs sm:!text-sm !rounded-full !h-10 sm:!h-11 !px-4 sm:!px-6 !min-w-0",variant:"contained",onClick:()=>window.open("https://forms.gle/K4PQwkcDNYFmw9kc6","_blank"),children:(0,c.jsx)("span",{className:"mr-2 hidden sm:inline",children:"global-associations"===r?(0,I.BV)("Request NEW Association",v):(0,I.BV)("Request NEW Certification",v)})})]}),"global-associations"===r?(0,c.jsx)(c.Fragment,{children:x?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"15px"},children:(0,c.jsx)(w.A,{sx:{textAlign:"center"}})})}):(0,c.jsx)(c.Fragment,{children:d&&d.length>0?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_,{groupList:d,user:f,groupTab:"global-associations"})}):(0,c.jsx)("h1",{children:(0,I.BV)("No global associations available!",v)})})}):"global-certifications"===r?(0,c.jsx)(c.Fragment,{children:h?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"15px"},children:(0,c.jsx)(w.A,{sx:{textAlign:"center"}})})}):(0,c.jsx)(c.Fragment,{children:g&&g.length>0?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_,{groupList:g,user:f,groupTab:"global-certifications"})}):(0,c.jsx)("h1",{children:(0,I.BV)("No global certifications available!",v)})})}):"my-groups"===r?(0,c.jsx)(c.Fragment,{children:n?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"15px"},children:(0,c.jsx)(w.A,{sx:{textAlign:"center"}})})}):(0,c.jsx)(c.Fragment,{children:s&&s.length>0?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_,{groupList:s,user:f,groupTab:"my-groups"})}):(0,c.jsx)("h1",{children:(0,I.BV)("No groups yet!",v)})})}):"requested-groups"===r?(0,c.jsx)(c.Fragment,{children:i?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"15px"},children:(0,c.jsx)(w.A,{sx:{textAlign:"center"}})})}):(0,c.jsx)(c.Fragment,{children:a&&a.length>0?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_,{groupList:a,user:f,groupTab:"requested-groups"})}):(0,c.jsx)("h1",{children:(0,I.BV)("No requested groups yet!",v)})})}):(0,c.jsx)(c.Fragment,{children:o?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"15px"},children:(0,c.jsx)(w.A,{sx:{textAlign:"center"}})})}):(0,c.jsx)(c.Fragment,{children:l&&l.length>0?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(z,{groupList:l,user:f,groupTab:"invited-groups"})}):(0,c.jsx)("h1",{"data-testid":"no-invitations",children:(0,I.BV)("No invitations yet!",v)})})})]})]})})};var H=r(22747),J=r(81951),U=r(97661),W=r(29843),X=r(45364),K=r(28208);let Q=()=>{(0,K.G)();let{isOpenLoginModal:e,t}=(0,p.G)(e=>({t:e.locales.data.translation,isOpenLoginModal:e.login.data.isOpenLoginModal})),r=(0,p.j)(),{isSigned:s,isLoading:n}=(0,W.A)(),[a,i]=(0,m.useState)(!1),l=(0,u.useRouter)();(0,m.useEffect)(()=>{!n&&(s?e&&r((0,H.bJ)(!1)):r((0,H.bJ)(!0)))},[n,s,e,r]);let o=`${x.oO}/static/hallocasa_logo_blue.webp`,h=v.x.home[l.asPath.slice(-2)??"en"];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.A,{title:h?.title,de
1scription:h?.desc,image:o}),(0,c.jsxs)("div",{className:f().profile,children:[(0,c.jsx)(d.A,{}),(0,c.jsx)("div",{className:"flex justify-center w-[100%] sm:max-w-[1240px] max-w-[auto] sm:px-[20px] px-0 mx-auto mt-[50px]",children:n?(0,c.jsx)(X.A,{}):s?(0,c.jsx)(Y,{isDisabled:!1,isAuthenticated:s}):(0,c.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,c.jsx)("div",{className:"text-center",children:(0,c.jsx)("h1",{className:"text-2xl font-semibold mb-4",children:(0,I.BV)("Please login to access your groups",t)})})})})]}),(0,c.jsx)(J.A,{isOpenModal:e,setOpenModal:t=>{let s="function"==typeof t?t(e):t;r((0,H.bJ)(s))},setOpenRegisterModal:i}),a&&(0,c.jsx)(U.A,{isOpenModal:a,setOpenModal:i})]})}},45364:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876),n=r(15039),a=r.n(n);let i=({className:e})=>(0,s.jsxs)("div",{className:a()("animate-pulse space-y-4 p-6 min-h-[400px] max-w-4xl mx-auto w-full",e),"aria-hidden":!0,children:[(0,s.jsx)("div",{className:"h-8 w-1/3 rounded bg-gray-200"}),(0,s.jsx)("div",{className:"h-4 w-2/3 rounded bg-gray-200"}),(0,s.jsx)("div",{className:"h-64 w-full rounded bg-gray-200"})]})},65422:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(37876),n=r(14232);let a="Pixel",i="Percent",l={unit:i,value:80};function o({next:e,hasMore:t,children:r,loader:c,scrollThreshold:d=.8,endMessage:u,style:m,height:p,scrollableTarget:x,hasChildren:g,inverse:h=!1,pullDownToRefresh:f=!1,pullDownToRefreshContent:v,releaseToRefreshContent:b,pullDownToRefreshThreshold:j=100,refreshFunction:y,onScroll:w,dataLength:N,initialScrollY:E,className:A="",role:k,tabIndex:C,id:B,...M}){let[O,L]=(0,n.useState)(!1),[F,$]=(0,n.useState)(!1),[G,V]=(0,n.useState)(0),T=(0,n.useRef)(null),R=(0,n.useRef)(null),q=(0,n.useRef)(null),I=(0,n.useRef)(e);I.current=e;let S=(0,n.useRef)(y);S.current=y;let P=(0,n.useRef)(j);P.current=j;let _=(0,n.useRef)(!1),D=(0,n.useRef)(!1),z=(0,n.useRef)(0),Y=(0,n.useRef)(0),H=(0,n.useRef)(0),J=(0,n.useCallback)(()=>x instanceof HTMLElement?x:"string"==typeof x?document.getElementById(x):(null===x&&console.warn(`You are trying to pass scrollableTarget but it is null. This might
2        happen because the element may not have been added to DOM yet.
3        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
4      `),null),[x]);(0,n.useEffect)(()=>{if(void 0===N)throw Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(f&&"function"!=typeof y)throw Error(`Mandatory prop "refreshFunction" missing.
5          Pull Down To Refresh functionality will not work
6          as expected. Check README.md for usage'`);if("number"==typeof E){let e=p?T.current:J();e&&e.scrollHeight>E&&e.scrollTo(0,E)}},[]),(0,n.useEffect)(()=>{_.current=!1,L(!1)},[N]),(0,n.useEffect)(()=>{if(!t||"u"<typeof IntersectionObserver)return;let e=R.current;if(!e)return;let r=new IntersectionObserver(([e])=>{e.isIntersecting&&!_.current&&(_.current=!0,L(!0),I.current())},{root:p?T.current:J(),rootMargin:function(e,t){var r;let s,n="number"==typeof(r=e)?{unit:i,value:100*r}:"string"==typeof r?/^(\d*(\.\d+)?)px$/.exec(r)?{unit:a,value:parseFloat(r)}:/^(\d*(\.\d+)?)%$/.exec(r)?{unit:i,value:parseFloat(r)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),l):(console.warn("scrollThreshold should be string or number"),l);if(n.unit===a)s=`${n.value}px`;else{let e=100-n.value;s=`${e}%`}return t?`${s} 0px 0px 0px`:`0px 0px ${s} 0px`}(d,h),threshold:0});return r.observe(e),()=>r.disconnect()},[t,d,h,p,J]),(0,n.useEffect)(()=>{var e;if(!w)return;let t=null!=(e=p?T.current:J())?e:"u">typeof window?window:null;if(!t)return;let r=e=>{setTimeout(()=>w(e),0)};return t.addEventListener("scroll",r),()=>t.removeEventListener("scroll",r)},[w,p,J]),(0,n.useEffect)(()=>{var e,t;if(!f)return;let r=null!=(e=p?T.current:J())?e:"u">typeof window?window:null;if(!r)return;if(null==(t=q.current)?void 0:t.firstChild){let e=q.current.firstChild.getBoundingClientRect().height;H.current=e,V(e)}let s=e=>{!((r instanceof HTMLElement?r.scrollTop:document.documentElement.scrollTop)>0)&&(D.current=!0,e instanceof MouseEvent?z.current=e.pageY:e instanceof TouchEvent&&(z.current=e.touches[0].pageY),Y.current=z.current,T.current&&(T.current.style.willChange="transform",T.current.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n=e=>{if(!D.current||(e instanceof MouseEvent?Y.current=e.pageY:e instanceof TouchEvent&&(Y.current=e.touches[0].pageY),Y.current<z.current))return;let t=Y.current-z.current;t>=P.current&&$(!0),!(t>1.5*H.current)&&T.current&&(T.current.style.overflow="visible",T.current.style.transform=`translate3d(0px, ${t}px, 0px)`)},a=()=>{z.current=0,Y.current=0,D.current=!1,$(e=>{var t;return e&&(null==(t=S.current)||t.call(S)),!1}),requestAnimationFrame(()=>{T.current&&(T.current.style.overflow="auto",T.current.style.transform="none",T.current.style.willChange="unset")})};return r.addEventListener("touchstart",s),r.addEventListener("touchmove",n),r.addEventListener("touchend",a),r.addEventListener("mousedown",s),r.addEventListener("mousemove",n),r.addEventListener("mouseup",a),()=>{r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",n),r.removeEventListener("touchend",a),r.removeEventListener("mousedown",s),r.removeEventListener("mousemove",n),r.removeEventListener("mouseup",a)}},[f,p,J]);let U={height:null!=p?p:"auto",overflow:"auto",WebkitOverflowScrolling:"touch",...m},W=g||!!(r&&r instanceof Array&&r.length),X=f&&p?{overflow:"auto"}:{},K=t?(0,s.jsx)("div",{ref:R,style:{height:1}}):null;return(0,s.jsx)("div",{style:X,className:"infinite-scroll-component__outerdiv",children:(0,s.jsxs)("div",{...M,role:k,tabIndex:C,id:B,className:["infinite-scroll-component",A].filter(
6Boolean).join(" "),ref:T,style:U,children:[f&&(0,s.jsx)("div",{style:{position:"relative"},ref:q,children:(0,s.jsx)("div",{style:{position:"absolute",left:0,right:0,top:-1*G},children:F?b:v})}),r,!O&&!W&&t&&c,O&&t&&c,K,!t&&u]})})}}},e=>{e.O(0,[4409,3810,9038,5173,9367,5039,891,636,6593,8792],()=>e(e.s=7048)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.