1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7695],{4291:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/group/invite/[id]",function(){return s(70911)}])},23012:()=>{},45364:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var a=s(37876),n=s(15039),r=s.n(n);let o=({className:e})=>(0,a.jsxs)("div",{className:r()("animate-pulse space-y-4 p-6 min-h-[400px] max-w-4xl mx-auto w-full",e),"aria-hidden":!0,children:[(0,a.jsx)("div",{className:"h-8 w-1/3 rounded bg-gray-200"}),(0,a.jsx)("div",{className:"h-4 w-2/3 rounded bg-gray-200"}),(0,a.jsx)("div",{className:"h-64 w-full rounded bg-gray-200"})]})},67498:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var a=s(14232),n=s(26268),r=s(50540),o=s(4027),i=s(31908),l=s(32774),c=s(28550),d=s(63318);function x(e){return(0,d.Ay)("MuiCard",e)}(0,c.A)("MuiCard",["root"]);var p=s(37876);let m=(0,o.Ay)(l.A,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),u=a.forwardRef(function(e,t){let s=(0,i.b)({props:e,name:"MuiCard"}),{className:a,raised:o=!1,...l}=s,c={...s,raised:o},d=(e=>{let{classes:t}=e;return(0,r.A)({root:["root"]},x,t)})(c);return(0,p.jsx)(m,{className:(0,n.A)(d.root,a),elevation:o?8:void 0,ref:t,ownerState:c,...l})})},70337:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});var a=s(37876),n=s(67498),r=s(96848),o=s(66547),i=s(59370),l=s(18263),c=s(66110),d=s(67227),x=s(54587),p=s.n(x),m=s(14232),u=s(95897),h=s.n(u),g=s(15543),f=s(47170),j=s(54783),w=s(1532),v=s(89099),N=s(22747),b=s(31777);let y=({groupId:e})=>{let{userData:t,t:s}=(0,j.G)(({chat:e,locales:t})=>({userData:e.userData,t:t.data.translation}),b.bN),x=(0,j.j)(),[u,y]=m.useState({}),[A,_]=m.useState(!1),[S,E]=m.useState(!1),[I,C]=m.useState(!0);return(0,v.useRouter)(),(0,m.useEffect)(()=>{(async()=>{try{let t=await (0,c.ED)(e);t&&y(t)}catch(t){console.error("Error fetching group details:",t),C(!1);let e=window.location.pathname+window.location.search;localStorage.setItem("groupInviteUrl",e),x((0,N.bJ)(!0))}})()},[e,x]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.A,{className:"!w-[55%] !py-12 !mt-10",children:[(0,a.jsx)("h2",{className:"font-semibold text-center font-poppins",style:{margin:"0 0 10px 0"},children:(0,d.BV)("New Group Invite",s)}),(0,a.jsx)("div",{className:"flex justify-center mt-7",children:(0,a.jsx)(p(),{src:(0,d.t5)(u?.logo||""),alt:"Group Image",width:110,height:110,className:"object-cover object-top rounded-full"})}),(0,a.jsxs)("h3",{className:"font-bold text-center font-inter",children:[u?.name," ",(0,a.jsxs)("span",{className:"font-normal text-[12px] sm:text-[14px] font-inter",children:["\xa0\xa0â¢\xa0\xa0",u?.locationName]})]}),(0,a.jsx)("p",{className:"font-inter text-[12px] sm:text-[13px] leading-5 text-center w-[85%] mx-auto",children:u?.description}),(0,a.jsx)("div",{className:"mt-6 text-center",children:(0,a.jsx)(r.A,{variant:"contained",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:()=>{(()=>{if(_(!0),!localStorage.getItem("user")){_(!1),C(!1);let e=window.location.pathname+window.location.search;localStorage.setItem("groupInviteUrl",e),x((0,N.bJ)(!0));return}(0,c.bo)(e).then(()=>{_(!1),E(!0)}).catch(e=>{if(e?.response?.status===401||e?.message?.includes("401")||e?.message?.includes("Unauthorized")){C(!1);let e=window.location.pathname+window.location.search;localStorage.setItem("groupInviteUrl",e),x((0,N.bJ)(!0))}else x((0,f.wB)({loading:!0,message:"Error accepting group invitation",messageSeverity:"error"}));_(!1),console.error("error: ",e)})})()},children:A?(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,a.jsx)(o.A,{size:25,sx:{textAlign:"center",color:"white"}})}):(0,d.BV)("Accept Invite",s)})})]}),(0,a.jsx)(i.A,{open:S,onClose:()=>{E(!1)},children:(0,a.jsxs)(l.A,{className:h().chatModal_box,children:[(0,a.jsx)("div",{className:h().chatModal_title,children:(0,a.jsx)(g.A,{style:{cursor:"pointer"},fill:"#ee6c4d",onClick:()=>{E(!1)}})}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("div",{className:"bg-blue-600 border-[#0c58a6] flex justify-center items-center self-center h-16 w-16 rounded-full ",children:(0,a.jsx)(w.A,{sx:{color:"white",fontSize:"35px"}})})}),(0,a.jsx)("h2",{className:"mt-7 font-semibold text-center font-poppins",children:(0,d.BV)("hallocasa.my.groups.new.groups.invite.received.invitation.accepted",s)}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(r.A,{variant:"contained",className:"!tracking-normal
1!normal-case !font-inter !bg-[#EE6C4D] !text-white !rounded-lg !h-[40px] !text-[10px] sm:!text-[14px] !p-4 sm:!px-7 !py-2 !mb-4",onClick:()=>{window.location.href=`/group/id/${e}`},children:(0,d.BV)("Go to group",s)})})]})})]})}},70911:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>f,default:()=>j});var a=s(37876),n=s(70337),r=s(15173),o=s(14232),i=s(20650),l=s(33431),c=s(53814),d=s.n(c),x=s(54783),p=s(22747),m=s(81951),u=s(97661),h=s(29843),g=s(45364),f=!0;let j=e=>{let t=(0,x.j)(),[s,c]=(0,o.useState)(!1),{isSigned:f,isLoading:j}=(0,h.A)(),{t:w,isOpenLoginModal:v}=(0,x.G)(({locales:e,login:t})=>({t:e.data.translation,isOpenLoginModal:t.data.isOpenLoginModal}));(0,o.useEffect)(()=>{if(!j)if(f)v&&t((0,p.bJ)(!1));else{let e=window.location.pathname+window.location.search;localStorage.setItem("groupInviteUrl",e),t((0,p.bJ)(!0))}},[f,j,v,t]);let N=l.x.profileById[e.lang?.lang??"en"];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{title:N?.title,description:N?.desc}),(0,a.jsxs)("div",{className:d().profile,children:[(0,a.jsx)(r.A,{}),(0,a.jsx)("div",{className:d().profile_content,children:j?(0,a.jsx)(g.A,{}):f?(0,a.jsx)(n.A,{groupId:e.data}):(0,a.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("h1",{className:"text-2xl font-semibold mb-4",children:w?.["hallocasa.my.groups.my.groups.please.login"]||"Please login to accept the group invitation"})})})})]}),(0,a.jsx)(m.A,{isOpenModal:v,setOpenModal:e=>{let s="function"==typeof e?e(v):e;t((0,p.bJ)(s))},setOpenRegisterModal:c}),s&&(0,a.jsx)(u.A,{isOpenModal:s,setOpenModal:c})]})}}},e=>{e.O(0,[4409,5173,636,6593,8792],()=>e(e.s=4291)),_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.