1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3138],{484:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/old_profile_old/[userId]",function(){return t(13837)}])},37289:function(e,l,t){"use strict";t.d(l,{M4:function(){return v},ah:function(){return ExperienceCardProfileSkeleton},hR:function(){return ExperienceCardButton},zY:function(){return p}});var s=t(85893),r=t(25675),n=t.n(r),i=t(67294),a=t(96480),o=t(76899),c=t(25751),d=t(6270),u=t(22825),x=t(11163),m=t(70215),h=t(20150),f=t(90566);l.ZP=(0,x.withRouter)(e=>{var l,t,r,n,d,u,x;let{className:p="",id:v="",media:j=[],badgeGreen:g=!1,title:w="",locations:N,router:b,version:k=0,onEnterView:C=()=>{}}=e,y=(0,i.useMemo)(()=>{var e;return null===(e=j.filter(e=>"IMAGE"===e.type))||void 0===e?void 0:e[0]},[]),E=(0,i.useRef)(null),P=(0,h.Z)(E),[F,S]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{P&&!F&&(C(v),S(!0))},[P]),(0,s.jsx)("div",{className:p+" relative w-full min-w-[164px] max-w-[45vh]",children:(0,s.jsx)(o.Z,{ratioPercentage:"100%",children:(0,s.jsxs)("div",{ref:E,onClick:()=>(0,m.vS)("/experience/"+v,b),className:"relative h-full w-full cursor-pointer rounded-xl",children:[(0,s.jsx)(ExperienceCover,{src:(0,a.k7)(v,null!==(n=null==y?void 0:y.fileId)&&void 0!==n?n:"",1200,k)}),(0,s.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col justify-between rounded-2xl px-4 py-4 sm:rounded-xl",style:{background:" linear-gradient(0deg, rgba(0, 0, 0, 0) 59.31%, rgba(0, 0, 0, 0.8) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) 60.73%, rgba(0, 0, 0, 0.8) 100%)"},children:(0,s.jsx)("div",{className:"relative h-full",children:(0,s.jsxs)("div",{className:"flex h-full flex-col",children:[(0,s.jsx)("h3",{className:"mb-12 line-clamp-3 text-lg font-semibold text-white md:text-2xl lg:text-3xl",children:w}),(0,s.jsxs)("div",{className:"absolute bottom-0 w-full whitespace-nowrap ",children:[g&&(0,s.jsxs)("div",{className:"group relative h-0 w-full whitespace-normal",children:[(0,s.jsx)("div",{className:"absolute bottom-0 left-0 h-5 w-12 rounded-full bg-black/50 px-1.5 md:h-6 md:w-14 md:px-2",children:(0,s.jsx)("img",{className:"-mt-2 h-auto w-full md:-mt-1.5",src:(0,a.Vd)(f.r.EXP,"badgeGreen.PNG")})}),(0,s.jsx)("div",{className:"pointer-events-none absolute bottom-9 w-full rounded-2xl bg-black/50 px-4 py-3 text-xs text-white opacity-0 transition-opacity delay-300 duration-500 group-hover:opacity-100 md:text-sm",children:(0,c.t)("Eco.desTitleAlertEco")})]}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsxs)("div",{className:"inline-block w-2/3 truncate text-sm font-light text-white sm:text-base",children:[(0,s.jsx)("span",{className:"",children:"\uD83D\uDCCD"}),(0,s.jsx)("p",{className:"inline truncate font-semibold",children:null!==(x=null!==(u=null!==(d=null==N?void 0:null===(l=N[0])||void 0===l?void 0:l.name)&&void 0!==d?d:null==N?void 0:null===(t=N[0])||void 0===t?void 0:t.city)&&void 0!==u?u:null==N?void 0:null===(r=N[0])||void 0===r?void 0:r.formattedAddress)&&void 0!==x?x:""})]})})]})]})})})]})})})});let ExperienceCover=e=>{let{src:l=""}=e,[t,r]=(0,i.useState)(l);return(0,s.jsx)(n(),{className:"h-full w-full rounded-2xl object-cover sm:rounded-xl",src:t,alt:"",onError:()=>{r("/assets/various/no-media.svg")},fill:!0,unoptimized:!0})},p=(0,x.withRouter)(e=>{let{className:l="",id:t,title:r="",router:n}=e;return(0,s.jsx)("div",{className:l+" relative w-full min-w-[164px] max-w-[45vh]",children:(0,s.jsx)(o.Z,{ratioPercentage:"100%",children:(0,s.jsx)("div",{onClick:()=>(0,m.vS)("/experience/"+t,n),className:"bg-korange-500 relative h-full w-full cursor-pointer rounded-xl",children:(0,s.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col justify-between rounded-2xl px-4 py-4 sm:rounded-xl",children:(0,s.jsx)("div",{className:"relative h-full",children:(0,s.jsxs)("div",{className:"flex h-full flex-col",children:[(0,s.jsx)("h3",{className:"mb-12 line-clamp-3 text-lg font-semibold text-white md:text-2xl lg:text-3xl",children:r}),(0,s.jsx)("div",{className:"absolute bottom-0 w-full whitespace-nowrap ",children:(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("div",{className:"inline-block w-2/3 truncate text-sm font-light text-white sm:text-base",children:(0,s.jsx)(s.Fragment,{children:(0,c.t)("Profile.refusedText")})})})})]})})})})})})}),v=(0,x.withRouter)(e=>{var l,t;let{className:r="",id:n,locations:i,title:a="",router:c}=e;return(0,s.jsx)("div",{className:r+" relative w-full min-w-[164px] max-w-[45vh]",children:(0,s.jsx)(o.Z,{ratioPercentage:"100%",children:(0,s.jsx)("div",{onClick:()=>(0,m.vS)("/experience/"+n,c),className:"bg-white-500 relative h-full w-full cursor-pointer rounded-xl",children:(0,s.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col justify-between rounded-2xl bg-white px-4 py-4 sm:rounded-xl",children:(0,s.jsx)("div",{className:"relative h-full",children:(0,s.jsxs)("div",{className:"flex h-full flex-col",children:[(0,s.jsx)("h3",{className:"mb-12 line-clamp-3 text-lg font-semibold text-black md:text-2xl lg:text-3xl",children:a}),(0,s.jsx)("div",{className:"absolute bottom-0 w-full whitespace-nowrap ",children:(0,s.jsx)("div",{className:"flex",children:(0,s.jsxs)("div",{className:"inline-block w-2/3 truncate text-sm font-light text-black sm:text-base",children:[(0,s.jsx)("span",{className:"",children:"\uD83D\uDCCD"}),(0,s.jsx)("p",{className:"inline truncate font-semibold",children:null!==(t=null==i?void 0:null===(l=i[0])||void 0===l?void 0:l.city)&&void 0!==t?t:""})]})})})]})})})})})})}),ExperienceCardProfileSkeleton=e=>{let{className:l=""}=e;return(0,s.jsx)("div",{className:l+" relative w-full min-w-[164px] max-w-[45vh]",children:(0,s.jsx)(o.Z,{ratioPercentage:"100%",children:(0,s.jsx)("div",{className:"bg-kgray-400 relative h-full w-full animate-pulse rounded-xl "})})})},ExperienceCardButton=e=>{let{className:l="",onClick:t=()=>{}}=e;return(0,s.jsx)("div",{className:l+" relative w-full min-w-[164px] max-w-[45vh]",children:(0,s.jsx)(o.Z,{ratioPercentage:"100%",children:(0,s.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[(0,s.jsx)(u.F6,{onClick:t,className:"h-8 w-8 !rounded-full border-2 border-black !p-2",children:(0,s.jsx)(d.kL,{className:"h-full w-full rotate-45",strokeWidth:3})}),(0,s.jsx)("p",{className:"text-sm font-medium",children:(0,s.jsx)(s.Fragment,{children:(0,c.t)("Profile.createCard")})})]})})})}},87365:function(e,l,t){"use strict";var s=t(85893),r=t(67294);l.Z=e=>{let{tabElements:l=[],value:t,setValue:n=()=>{},className:i=""}=e,[a,o]=(0,r.useMemo)(()=>{let e=0,r=l.map((l,r)=>{let i=t===l.value;return i&&(e=r),(0,s.jsx)("button",{onClick:()=>{n(l.value)},className:(i?"text-white":"text-korange-500")+" group h-full w-full rounded-full px-2 font-bold transition-colors duration-[400ms]",children:(0,s.jsx)("div",{className:(i?"":"group-hover:bg-kgray-200/80 group-active:bg-gray-50")+" pointer-events-none flex h-full w-full items-center justify-center rounded-full",style:{transition:i?"background-color 65ms linear":"background-color 130ms linear"},children:l.element})},l.key)});return[r,e]},[l,t]);return(0,s.jsxs)("div",{className:i+" bg-kgray-300 relative flex h-16 w-full rounded-full",children:[(0,s.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-full p-1.5",children:(0,s.jsx)("div",{className:"bg-korange-500 h-full w-full rounded-full transition-all duration-[400ms] ease-in-out",style:{width:"".concat(100/a.length,"%"),translate:o+"00%"}})}),(0,s.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-full items-center justify-between p-2",children:a})]})}},38812:function(e,l,t){"use strict";t.d(l,{a:function(){return EventCardSkeleton},Z:function(){return events_EventCard}});var s=t(85893),r=t(25751),n=t(25675),i=t.n(n),a=t(67294),o=t(76899),c=t(32493),d=t(70215),u=t(96480),x=t(6270),events_CategoryTicket=e=>{var l,t,r;let{category:n}=e;return(0,s.jsxs)("div",{className:"relative w-16 shrink-0",children:[(0,s.jsx)(x.ZA,{className:"w-full",style:{stroke:null!==(l=null==n?void 0:n.color)&&void 0!==l?l:"",fill:null!==(t=null==n?void 0:n.color)&&void 0!==t?t:""}}),(0,s.jsx)("div",{className:"absolute left-1 top-0 w-10 p-1 text-white",children:null!==(r=null==n?void 0:n.element)&&void 0!==r?r:(0,s.jsx)(s.Fragment,{})})]})},events_EventCard=e=>{let{className:l="",categories:t,startDate:n,id:i,imageId:x,router:m,endDate:h,title:f}=e,p=(0,a.useMemo)(()=>(0,u.BR)(i,null!=x?x:"",1200),[x]),v=(0,a.useMemo)(()=>Object.values(c.iv).find(e=>e.value===(null==t?void 0:t[0])),[t]),j=(0,a.useMemo)(()=>{let e=new Date(null!=n?n:"");return isNaN(e.getTime())?"":e.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})},[n]),g=(0,a.useMemo)(()=>{let e=new Date(null!=h?h:"");return isNaN(e.getTime())?"":e.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})},[h]);return(0,s.jsx)("div",{className:l,children:(0,s.jsx)(o.Z,{ratioPercentage:"100%",children:(0,s.jsxs)("div",{onClick:()=>{m&&(0,d.vS)("/events/"+i,m)},className:" relative h-full w-full cursor-pointer rounded-3xl",children:[(0,s.jsx)(EventCover,{src:p}),(0,s.jsxs)("div",{className:"absolute flex h-full w-full flex-col items-start justify-end rounded-3xl px-4 pb-6 text-white",style:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0) 45.1%, rgba(0, 0, 0, 0.5) 79.83%)"},children:[(0,s.jsx)("p",{children:(0,r.t)("Generic.dataRange",[j,g])}),(0,s.jsx)("p",{className:"line-clamp-2 text-2xl font-semibold",children:f})]}),(0,s.jsx)("div",{className:"absolute left-4 top-4",children:(0,s.jsx)(events_CategoryTicket,{category:v})}),(0,s.jsx)("a",{href:"/events/".concat(i),onClick:e=>{e.preventDefault(),(0,d.vS)("/events/"+i,m)},className:"absolute h-full w-full"})]})})})};let EventCover=e=>{let{src:l=""}=e,[t,r]=(0,a.useState)(l);return(0,s.jsx)(i(),{className:"h-full w-full rounded-3xl object-cover",src:t,alt:"",onError:()=>{r("/assets/various/no-media.svg")},fill:!0,unoptimized:!0})},EventCardSkeleton=e=>{let{className:l=""}=e;return(0,s.jsx)("div",{className:l,children:(0,s.jsx)(o.Z,{ratioPercentage:"100%",children:(0,s.jsx)("div",{className:" rounded-4xl bg-kgray-500 relative h-full w-full animate-pulse"})})})}},27528:function(e,l,t){"use strict";var s=t(85893);l.Z=e=>{let{title:l="",children:t=(0,s.jsx)(s.Fragment,{}),className:r=""}=e;return(0,s.jsx)("div",{className:r+" medium:grid-cols-2 grid grid-cols-2 gap-x-3 gap-y-6 sm:grid-cols-3 sm:gap-x-6 xl:!grid-cols-3 xl:gap-x-8 xl:[&>*:nth-child(3n+1)]:justify-self-start xl:[&>*:nth-child(3n+2)]:justify-self-center xl:[&>*:nth-child(3n+3)]:justify-self-end [&>*]:justify-self-center",children:t})}},13837:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSP:function(){return eu},default:function(){return ex}});var s,r,n,i,a=t(85893),o=t(9008),c=t.n(o),d=t(50396),u=t(12258),x=t(11163),m=t(35684),h=t(67294),f=t(12692),p=t(6270),v=t(87365),j=t(25751),g=t(6734),w=t(6480),N=t(95085),b=t(26107),k=t(22825),C=t(75563),y=t(25675),E=t.n(y),P=t(20150),F=t(70215),S=t(96480),Z=t(76899),_=(0,x.withRouter)(e=>{var l,t;let{className:s="",title:r="",id:n="",imageId:i="",media:o=[],onEnterView:c=()=>{},router:d}=e,u=(0,h.useRef)(null),x=(0,P.Z)(u),[m,f]=(0,h.useState)(!1);(0,h.useEffect)(()=>{x&&!m&&(c(n),f(!0))},[x]);let p=(0,h.useMemo)(()=>o.find(e=>"IMAGE"==e.type),[n,o]);return(0,a.jsx)("div",{className:s+" relative w-full min-w-[340px] max-w-[450px]",children:(0,a.jsx)(Z.Z,{ratioPercentage:"69%",children:(0,a.jsxs)("div",{ref:u,className:"relative h-full w-full cursor-pointer rounded-2xl",onClick:()=>(0,F.vS)("/collection/"+n,d),children:[(0,a.jsx)(CollectionCover,{src:(0,S.OT)(n,null!==(t=null!==(l=null==p?void 0:p.fileId)&&void 0!==l?l:i)&&void 0!==t?t:"",1200)}),(0,a.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-full items-center justify-center rounded-2xl px-4 text-white",style:{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))"},children:(0,a.jsx)("p",{className:"line-clamp-2 break-words text-center text-4xl font-bold",children:r})})]})})})});let CollectionCover=e=>{let{src:l=""}=e,[t,s]=(0,h.useState)(l);return(0,a.jsx)(E(),{className:(t!==l?"bg-white":"")+" h-full w-full rounded-xl object-cover",src:t,alt:"",onError:()=>{s("/assets/various/no-media.svg")},fill:!0,unoptimized:!0})},CollectionCardApproving=e=>{let{className:l="",title:t="",id:s="",imageId:r="",media:n=[]}=e;return(0,h.useMemo)(()=>n.find(e=>"IMAGE"==e.type),[s,n]),(0,a.jsx)("div",{className:l+" relative w-full min-w-[340px] max-w-[450px]",children:(0,a.jsx)(Z.Z,{ratioPercentage:"69%",children:(0,a.jsxs)("div",{className:"bg-kpurple-400 relative flex h-full w-full flex-col items-center justify-end rounded-2xl pb-3.5",children:[(0,a.jsx)("div",{className:"absolute left-0 top-0 flex h-full w-full items-center justify-center rounded-2xl px-4 text-white",children:(0,a.jsx)("p",{className:"line-clamp-2 break-words text-center text-4xl font-bold",children:t})}),(0,a.jsx)("p",{className:"text-lg text-white",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.soonAvailable")})})]})})})},CollectionCardSkeleton=e=>{let{className:l=""}=e;return(0,a.jsx)("div",{className:l+" relative w-full min-w-[340px] max-w-[450px]",children:(0,a.jsx)(Z.Z,{ratioPercentage:"69%",children:(0,a.jsx)("div",{className:"bg-kgray-400 relative h-full w-full animate-pulse rounded-2xl"})})})},CollectionCardCreate=e=>{let{className:l="",onClick:t=()=>{}}=e;return(0,a.jsx)("div",{className:l+" relative w-full min-w-[234px] max-w-[310px]",children:(0,a.jsx)(Z.Z,{ratioPercentage:"100%",children:(0,a.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[(0,a.jsx)(k.F6,{onClick:t,className:"h-8 w-8 !rounded-full border-2 border-black !p-2",children:(0,a.jsx)(p.kL,{className:"h-full w-full rotate-45",strokeWidth:3})}),(0,a.jsx)("p",{className:"text-sm font-medium",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("CreateTour.createTour")})})]})})})};var collection_CollectionPersonalCarousel=e=>{let{setCount:l=()=>{},business:t=!1}=e,{data:s,isFetching:r,fetchNextPage:n,hasNextPage:i}=(0,N.ZM)({status:w.Y.CREATED,size:8,...t?{sortByTitle:!0}:{sortByDate:!0}}),o=(0,x.useRouter)(),c=(0,h.useMemo)(()=>{var e;return null!==(e=null==s?void 0:s.pages.map((e,l)=>e.content.map((e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:"APPROVING"===e.status?(0,a.jsx)(CollectionCardApproving,{...e,className:"w-[min(50vw,80vh)]"}):(0,a.jsx)(_,{onEnterView:e=>(0,b.$i)("tour","myProfile",e),className:"w-[min(50vw,80vh)]",...e})},e.id))).flat())&&void 0!==e?e:[]},[s]);(0,h.useEffect)(()=>
1{if(!r){var e;l(null!==(e=null==s?void 0:s.pages[0].totalCount)&&void 0!==e?e:0)}},[r,s]);let d=(0,h.useMemo)(()=>!r&&s&&s.pages[0].totalCount<=0,[r,s]);return d?(0,a.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-x-8 gap-y-2 px-4 text-center text-lg font-medium md:flex-row md:text-start",children:[(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(g.cC,{t:j.t,ns:"translation",i18nKey:"Profile.emptyCollDescr",components:[(0,a.jsx)("p",{},1)]})}),(0,a.jsx)(k.kq,{onClick:()=>{o.push("/collection/create")},className:"h-12 w-full max-w-[180px] text-base md:max-w-xs",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("CreateTour.createTour")})})]}):(0,a.jsx)(C.Z,{onReachEnd:()=>{i&&n()},navigation:!1,renderFirstSlide:d?void 0:()=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(CollectionCardCreate,{onClick:()=>o.push("/collection/create"),className:" w-[min(34.5vw,55.2vh)]"})},"first"),renderLoading:()=>Array.from({length:8},(e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(CollectionCardSkeleton,{className:"w-[min(50vw,80vh)]"})},l)),loading:i&&r,children:c})},collection_CollectionProfileCarousel=e=>{let{userId:l="",setCount:t=()=>{},personal:s=!1,business:r=!1}=e,{data:n,isFetching:i,fetchNextPage:o,hasNextPage:c}=(0,N.mo)({userId:l,size:8,...r?{sortByTitle:!0}:{sortByDate:!0}}),d=(0,h.useMemo)(()=>{var e;return null!==(e=null==n?void 0:n.pages.map((e,l)=>e.content.map((e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(_,{onEnterView:e=>{(0,b.$i)("tour","userProfile",e)},className:"w-[min(50vw,80vh)]",...e})},e.id))).flat())&&void 0!==e?e:[]},[n]);return(0,h.useEffect)(()=>{if(!i){var e;t(null!==(e=null==n?void 0:n.pages[0].totalCount)&&void 0!==e?e:0)}},[i,n]),(0,a.jsx)(C.Z,{onReachEnd:()=>{c&&o()},navigation:!1,renderLoading:()=>Array.from({length:8},(e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(CollectionCardSkeleton,{className:"w-[min(50vw,80vh)]"})},l)),loading:c&&i,children:d})},B=t(85945),R=t(42887),A=t(64147),T=t(896),D=t(83938),M=t(37289),O=t(27528),L=(0,x.withRouter)(e=>{let{setCount:l=()=>{},personal:t=!1,router:s}=e;(0,T.t)(e=>e.user.id);let{data:r,isFetching:n,fetchNextPage:i,hasNextPage:o,queryKey:c}=(0,A.NS)({status:w.Y.CREATED,size:12,sortByDate:!0}),d=(0,B.NL)(),u=(0,h.useRef)(null),x=(0,P.Z)(u);(0,h.useEffect)(()=>{x&&o&&!n&&i()},[x,o,n]),(0,h.useEffect)(()=>{if(!n){var e;l(null!==(e=null==r?void 0:r.pages[0].totalCount)&&void 0!==e?e:0)}},[n,r]);let{getCards:m,Skeleton:f}=(0,R.Z)({queryClient:d,queryKey:c,data:r,track:!1}),v=(0,h.useMemo)(()=>m().flat(2),[r]),g=!n&&(!r||r.pages[0].totalCount<=0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(O.Z,{children:[!g&&(0,a.jsx)(M.hR,{onClick:()=>s.push("/experience/create")}),v,n&&Array.from({length:12},(e,l)=>(0,a.jsx)(f,{},l))]}),g&&(0,a.jsxs)(D.Z,{children:[(0,a.jsx)("p",{className:"text-kblack2 mb-2 max-w-[340px] text-center font-medium",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.emptyExpDescr")})}),(0,a.jsxs)(k.kq,{onClick:()=>s.push("/experience/create"),className:"flex gap-2 font-medium",children:[(0,a.jsx)("div",{className:"h-6 w-6 rounded-full border-2 border-current p-1.5",children:(0,a.jsx)(p.kL,{className:"h-full w-full rotate-45 stroke-current",strokeWidth:4})}),(0,a.jsx)("span",{children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.createCard")})})]})]}),(0,a.jsx)("div",{ref:u})]})}),experience_ExperienceProfileGrid=e=>{let{userId:l="",setCount:t=()=>{}}=e,{data:s,isFetching:r,queryKey:n,fetchNextPage:i,hasNextPage:o}=(0,A.TO)({userId:l,sortByDate:!0,size:12});(0,T.t)(e=>e.user.id);let c=(0,h.useRef)(null),d=(0,P.Z)(c);(0,h.useEffect)(()=>{d&&o&&!r&&i()},[d,o,r]),(0,h.useEffect)(()=>{if(!r){var e;t(null!==(e=null==s?void 0:s.pages[0].totalCount)&&void 0!==e?e:0)}},[r,s]);let u=(0,B.NL)(),{getCards:x,Skeleton:m}=(0,R.Z)({queryClient:u,queryKey:n,data:s,track:!1}),f=(0,h.useMemo)(()=>x().flat(2),[s]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(O.Z,{children:[f,r&&Array.from({length:12},(e,l)=>(0,a.jsx)(m,{},l))]}),!r&&(!s||s.pages[0].totalCount<=0)&&(0,a.jsx)(D.Z,{children:(0,a.jsx)("p",{className:"text-kblack2 text-center text-xl font-semibold md:text-2xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.noExperiencesFound")})})}),(0,a.jsx)("div",{ref:c})]})},I=t(32493),profile_ProfileCategoryExp=e=>{let{userId:l=""}=e;return(0,a.jsx)("div",{className:"mb-16 flex flex-col gap-4 md:gap-8",children:Object.values(I.sb).map(e=>(0,a.jsx)(ProfileCategoryCarousel,{title:(0,j.t)(e.stringKey).toString(),query:{userId:l,category:e.value}},e.value))})};let ProfileCategoryCarousel=e=>{let{query:l,className:t="",title:s=""}=e,{category:r}=l,{data:n,fetchNextPage:i,isFetching:o,hasNextPage:c}=(0,A.TO)({...l,page:10,sortByDate:!0}),d=(0,h.useMemo)(()=>{var e;return null!==(e=null==n?void 0:n.pages.map((e,l)=>e.content.map((e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(M.ZP,{className:"min-w-[220px] md:min-w-[280px] lg:min-w-[340px] 2xl:min-w-[400px]",...e})},e.id))).flat())&&void 0!==e?e:[]},[n]);return!o&&((null==n?void 0:n.pages)&&(null==n?void 0:n.pages[0].totalCount)<=0||!n)?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{className:t,children:[(0,a.jsx)("p",{className:"text-3xl font-semibold",children:(0,a.jsx)(a.Fragment,{children:s})}),(0,a.jsx)(C.Z,{className:"mt-3",navigation:!1,onReachEnd:()=>{c&&i()},loading:c&&o,renderLoading:()=>Array.from({length:10},(e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(M.ah,{className:"min-w-[220px] md:min-w-[280px] lg:min-w-[340px] 2xl:min-w-[400px]"})},l)),children:d})]})};
1var G=t(82703),U=t(92520),z=t(73035),profile_SortButton=e=>{let{sortState:l=n.DEFAULT,setSortState:t=e=>{}}=e,[s,r]=(0,h.useState)(!1),i=(0,h.useRef)(null);return(0,a.jsxs)("div",{ref:i,children:[(0,a.jsxs)(k.F6,{onClick:()=>setTimeout(()=>r(!s),0),className:(l!==n.DEFAULT?"active:!bg-korange-40 !bg-korange-500 hover:!bg-korange-700 w-52 !text-white":"")+" flex w-32 items-center justify-center gap-1 truncate !rounded-full text-sm !transition-all",children:[(0,a.jsx)("p",{children:(0,a.jsxs)(a.Fragment,{children:[l===n.DEFAULT&&(0,j.t)("Profile.sortBy"),l===n.DATE&&(0,j.t)("Profile.byDate"),l===n.CATEGORY&&(0,j.t)("Profile.byCategory")]})}),(0,a.jsx)("div",{className:"inline-block h-6 w-6",children:(0,a.jsx)(p.lY,{className:"h-full w-full stroke-current"})})]}),(0,a.jsx)("div",{className:"relative z-20 h-0 w-full",children:(0,a.jsx)(G.M,{children:s&&(0,a.jsx)(SortDropdown,{setSortState:t,sortState:l,onClickOutside:()=>r(!1)})})})]})};let SortDropdown=e=>{let{sortState:l=n.DEFAULT,setSortState:t=e=>{},onClickOutside:s=()=>{}}=e,r=(0,h.useRef)(null);return(0,z.Z)(r,s),(0,a.jsx)(U.E.div,{ref:r,initial:"closed",animate:"open",exit:"closed",variants:{closed:{scale:0,originX:.95,originY:0,rotate:.02,transition:{duration:.2}},open:{scale:1,originX:.95,originY:0,rotate:0,transition:{type:"spring",duration:.4,delayChildren:.2,staggerChildren:.05}}},className:"absolute right-0 top-0 z-10 mt-1 w-64 max-w-lg rounded-xl bg-white p-3 shadow-xl",children:(0,a.jsxs)("div",{className:"flex select-none flex-col gap-6",children:[(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-3",children:[(0,a.jsx)(k.IK,{type:"button",onClick:()=>{t(n.DATE),s()},className:"bg-kgray-400 hover:bg-kgray-500 h-8 w-8 shrink-0 !rounded-full !p-1",children:l===n.DATE&&(0,a.jsx)("div",{className:"bg-korange-500 h-full w-full rounded-full"})}),(0,a.jsx)("p",{className:"truncate text-sm font-semibold",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.byDate")})})]}),(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-3",children:[(0,a.jsx)(k.IK,{type:"button",onClick:()=>{t(n.CATEGORY),s()},className:"bg-kgray-400 hover:bg-kgray-500 h-8 w-8 shrink-0 !rounded-full !p-1",children:l===n.CATEGORY&&(0,a.jsx)("div",{className:"bg-korange-500 h-full w-full rounded-full"})}),(0,a.jsx)("p",{className:"truncate text-sm font-semibold",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.byCategory")})})]}),(0,a.jsx)("button",{type:"button",onClick:()=>{t(n.DEFAULT),s()},className:" text-korange-500 hover:bg-kgray-300 active:bg-kgray-200 !rounded-full py-2 font-semibold transition-colors",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Button.cancelButton")})})]})})};(s=n||(n={}))[s.DEFAULT=0]="DEFAULT",s[s.DATE=1]="DATE",s[s.CATEGORY=2]="CATEGORY";var profile_UserExperiences=e=>{let{userId:l="",personal:t=!1,business:s=!1}=e,[r,n]=(0,h.useState)(0),[i,o]=(0,h.useState)(null),[c,d]=(0,h.useState)(null),u=(0,h.useMemo)(()=>t?!i:!i&&!c,[t,c,i]);return(0,a.jsxs)("div",{children:[u&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-3 text-2xl font-extrabold sm:text-3xl lg:text-4xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.collections")})}),t?(0,a.jsx)(collection_CollectionPersonalCarousel,{business:s,setCount:e=>d(e<=0)}):(0,a.jsx)(collection_CollectionProfileCarousel,{business:s,setCount:e=>d(e<=0),userId:l})]}),(0,a.jsxs)("div",{className:"mb-3 mt-4 flex w-full items-center justify-between lg:mb-6",children:[(0,a.jsx)("p",{className:"text-2xl font-extrabold sm:text-3xl lg:text-4xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Settings.cards")})}),!i&&null!==i&&(0,a.jsx)(profile_SortButton,{sortState:r,setSortState:e=>{n(e===r?0:e)}})]}),(0,a.jsxs)(f.Z,{animatePresence:!0,index:2===r?1:0,children:[t?(0,a.jsx)(L,{setCount:e=>{o(e<=0)}}):(0,a.jsx)(experience_ExperienceProfileGrid,{setCount:e=>{o(e<=0)},userId:l}),(0,a.jsx)(profile_ProfileCategoryExp,{userId:l})]})]})},collection_CollectionProfileFav=e=>{let{setCount:l=()=>{},className:t=""}=e,{data:s,isFetching:r,fetchNextPage:n,hasNextPage:i}=(0,N.TJ)({size:8});(0,x.useRouter)();let o=(0,h.useMemo)(()=>{var e;return console.log(s),null!==(e=null==s?void 0:s.pages.map((e,l)=>e.content.map((e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:"APPROVING"===e.status?(0,a.jsx)(CollectionCardApproving,{...e,className:"w-[min(50vw,80vh)]"}):(0,a.jsx)(_,{className:"w-[min(50vw,80vh)]",...e})},e.id))).flat())&&void 0!==e?e:[]},[s]);(0,h.useEffect)(()=>
1{if(!r){var e;l(null!==(e=null==s?void 0:s.pages[0].totalCount)&&void 0!==e?e:0)}},[r,s]);let c=(0,h.useMemo)(()=>!r&&s&&s.pages[0].totalCount<=0,[r,s]);return c?(0,a.jsx)("div",{className:"flex h-40 items-center justify-center",children:(0,a.jsx)("p",{className:"text-kblack2 text-center text-xl font-semibold md:text-2xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.emptyCollection")})})}):(0,a.jsx)(C.Z,{onReachEnd:()=>{i&&n()},className:t,renderLoading:()=>Array.from({length:8},(e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(CollectionCardSkeleton,{className:"w-[min(50vw,80vh)]"})},l)),navigation:!1,loading:i&&r,children:o})},K=t(92462),Y=t(38812),events_EventProfileFav=e=>{let{setCount:l=()=>{},className:t=""}=e,{data:s,isFetching:r,fetchNextPage:n,hasNextPage:i,queryKey:o}=(0,K.BE)({size:8}),c=(0,x.useRouter)(),d=(0,h.useMemo)(()=>{var e;return console.log(s),null!==(e=null==s?void 0:s.pages.map((e,l)=>e.content.map((e,l)=>(0,a.jsx)("div",{className:"mr-3 text-base md:mr-6",children:(0,a.jsx)(Y.Z,{...e,router:c,className:"w-[300px]"})},e.id))).flat())&&void 0!==e?e:[]},[s]);(0,h.useEffect)(()=>{if(!r){var e;l(null!==(e=null==s?void 0:s.pages[0].totalCount)&&void 0!==e?e:0)}},[r,s]);let u=(0,h.useMemo)(()=>!r&&s&&s.pages[0].totalCount<=0,[r,s]);return u?(0,a.jsx)("div",{className:"flex h-40 items-center justify-center",children:(0,a.jsx)("p",{className:"text-kblack2 text-center text-xl font-semibold md:text-2xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Event.noEventsFound")})})}):(0,a.jsx)(C.Z,{onReachEnd:()=>{i&&n()},className:t,navigation:!1,renderLoading:()=>Array.from({length:8},(e,l)=>(0,a.jsx)("div",{className:"mr-3 md:mr-6",children:(0,a.jsx)(Y.a,{className:"w-[350px]"})},l)),loading:i&&r,children:d})},experience_ExperienceProfileGridFav=()=>{let{data:e,isFetching:l,fetchNextPage:t,hasNextPage:s,queryKey:r}=(0,A.dn)({size:12}),n=(0,B.NL)(),i=(0,h.useRef)(null),o=(0,P.Z)(i);(0,h.useEffect)(()=>{o&&s&&!l&&t()},[o,s,l]);let{getCards:c,Skeleton:d}=(0,R.Z)({queryClient:n,queryKey:r,data:e,track:!1}),u=(0,h.useMemo)(()=>c().flat(2),[e]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(O.Z,{children:[u,l&&Array.from({length:12},(e,l)=>(0,a.jsx)(d,{},l))]}),!l&&(!e||e.pages[0].totalCount<=0)&&(0,a.jsx)(D.Z,{children:(0,a.jsx)("p",{className:"text-kblack2 text-center text-xl font-semibold md:text-2xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.noExperiencesFound")})})}),(0,a.jsx)("div",{ref:i})]})},profile_UserFavourites=()=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-3 text-2xl font-extrabold sm:text-3xl lg:text-4xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Event.savedEvents")})}),(0,a.jsx)(events_EventProfileFav,{className:"mb-8"}),(0,a.jsx)("p",{className:"mb-3 text-2xl font-extrabold sm:text-3xl lg:text-4xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.favouriteCollections")})}),(0,a.jsx)(collection_CollectionProfileFav,{className:"mb-8"}),(0,a.jsx)("p",{className:"mb-3 text-2xl font-extrabold sm:text-3xl lg:text-4xl",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.favouriteExperiences")})}),(0,a.jsx)(experience_ExperienceProfileGridFav,{})]});(r=i||(i={})).EXP="experiences",r.FAV="favourites";var profile_ContentBox=e=>{let{userId:l="",personal:t=!1,business:s=!1}=e,{tabValue:r,setTabFunction:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"experiences",l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,x.useRouter)(),[s,r]=(0,h.useState)(e);return(0,h.useEffect)(()=>{if(l||r("experiences"),t&&t.isReady){let e=t.asPath.split("#")[1];if(e){let l=Object.values(i).find(l=>l===e);l&&r(l)}}},[t.asPath,l]),{tabValue:s,setTabFunction:e=>{t.replace(t.asPath.split("#")[0]+"#"+e,void 0,{shallow:!0})}}}(),o=t?J:J.filter(e=>"favourites"!==e.value);return(0,a.jsxs)(a.Fragment,{children:[o.length>1&&(0,a.jsx)(v.Z,{setValue:n,value:r,className:"mt-2 !h-12 !p-1 lg:mt-4 lg:!h-[61px]",tabElements:o}),(0,a.jsx)("div",{className:"mt-4 w-full",children:(0,a.jsxs)(f.Z,{animatePresence:!0,index:Object.values(i).findIndex(e=>e===r),children:[(0,a.jsx)(profile_UserExperiences,{business:s,personal:t,userId:l}),(0,a.jsx)(profile_UserFavourites,{})]})})]})};let J=[{element:(0,a.jsx)("div",{className:"h-6 w-6 lg:h-7 lg:w-7",children:(0,a.jsx)(p.Je,{className:"h-full w-full fill-current"})}),key:"ci",value:"experiences"},{element:(0,a.jsx)("div",{className:"h-6 w-6 lg:h-7 lg:w-7",children:(0,a.jsx)(p.BZ,{className:"h-full w-full stroke-current"})}),key:"c3",value:"favourites"}];var V=t(16927),X=t(64276),W=t(6790),q=t(47746),Q=t(34353),H=t(46673),$=t(43669),ee=t(80115),el=t(2659),et=t(85054),es=t(9654),er=t(4609),en=t(86614),ei=t(15843),profile_ModalConfirmBlock=e=>{let{userId:l="",username:t="",open:s=!1,onClickClose:r=()=>{}}=e,[n,i]=(0,h.useState)(!1);return(0,a.jsx)(ee.Z,{loading:n,open:s,children:(0,a.jsx)(ConfirmBlockBox,{userId:l,username:t,setLoading:i,onClickClose:r})})};let ConfirmBlockBox=e=>{let{userId:l="",username:t="",setLoading:s=()=>{},onClickClose:r=()=>{}}=e,n=(0,x.useRouter)(),i=(0,B.NL)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"relative mx-auto h-48 w-48",children:(0,a.jsx)(et.Z,{src:(0,S.J_)(l),className:"h-full w-full !border-4"})}),(0,a.jsx)("p",{className:"mt-4 text-center text-2xl font-semibold",children:(0,j.t)("Alert.blockConfirmTitle",{0:t})}),(0,a.jsx)("p",{className:"mt-4 text-center text-lg",children:(0,j.t)("Alert.blockConfirmMessage")}),(0,a.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>r(),className:" text-kpurple-500 hover:bg-kgray-300 active:bg-kgray-200 h-12 w-full !rou
1nded-full py-2 font-semibold transition-colors",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Button.cancelButton")})}),(0,a.jsx)(k.KM,{onClick:async()=>{s(!0);try{await en.Z.put.socialInteraction({userIdReceiver:l,userNameReceiver:t,follow:!1,block:!0}),i.invalidateQueries(A._q.feedAll),i.invalidateQueries(ei.Jo.userBlockedAll),n.push("/feed")}catch(e){(0,F.x2)(e)}finally{s(!1),r()}},className:"w-full",children:(0,j.t)("Button.confirmButton")})]})]})};var profile_ButtonOptions=e=>{let{userId:l,username:t,isBusiness:s=!1}=e,[r,n]=(0,h.useState)(!1),[i,o]=(0,h.useState)(!1),[c,d]=(0,h.useState)(!1),u=(0,T.t)(e=>e.user.id);return(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{onClick:()=>setTimeout(()=>n(!r),1),className:"text-kblack2 hover:bg-kgray-300 h-8 w-8 whitespace-nowrap rounded-full bg-white p-0.5 drop-shadow-sm transition-colors active:bg-white",children:(0,a.jsx)(p.R8,{className:"stroke-current"})}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)(G.M,{children:r&&(0,a.jsx)(OptionDropdown,{onClickReport:()=>o(!0),onClickOutside:()=>n(!1),onClickBlock:()=>d(!0),hideBlock:s})})}),(0,a.jsx)(profile_ModalConfirmBlock,{open:c,userId:l,username:t,onClickClose:()=>d(!1)}),(0,a.jsx)(el.Z,{open:i,children:(0,a.jsx)(es.y,{userId:u,itemType:er.r6.user,ticketStatus:er.hG.NEW,itemId:l,ticketType:er.zK.MIS,onCloseClick:()=>o(!1)})})]})};let OptionDropdown=e=>{let{onClickOutside:l=()=>{},onClickReport:t=()=>{},onClickBlock:s=()=>{},hideBlock:r=!1}=e,n=(0,h.useRef)(null);return(0,z.Z)(n,l),(0,a.jsx)(U.E.div,{ref:n,initial:"closed",animate:"open",exit:"closed",variants:{closed:{scale:0,originX:.95,originY:0,rotate:.02,transition:{duration:.2}},open:{scale:1,originX:.95,originY:0,rotate:0,transition:{type:"spring",duration:.4,delayChildren:.2,staggerChildren:.05}}},className:"absolute right-0 top-0 z-10 mt-1 w-52 rounded-xl bg-white p-3 shadow-xl",children:(0,a.jsxs)("div",{className:"flex select-none flex-col gap-1.5 text-sm",children:[(0,a.jsx)(k.F6,{onClick:t,className:"text-left",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.reportProfile")})}),!r&&(0,a.jsx)(k.F6,{onClick:s,className:"text-left text-red-500 hover:!bg-red-500",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.blockProfile")})})]})})};var profile_ButtonPersonalOptions=e=>{let{userId:l}=e,[t,s]=(0,h.useState)(!1);return(0,a.jsxs)("div",{children:[(0,a.jsx)(k.hO,{onClick:()=>s(!0),className:"h-8 w-8 whitespace-nowrap rounded-full !p-0.5 drop-shadow-sm",children:(0,a.jsx)(V.Yf,{className:"fill-none stroke-current"})}),(0,a.jsx)(el.Z,{open:t,children:(0,a.jsx)(es.y,{userId:l,itemType:er.r6.report,ticketStatus:er.hG.NEW,itemId:"",ticketType:er.zK.BUG,onCloseClick:()=>s(!1)})})]})},ea=t(79645),eo=t(48828),profile_CoverPhoto=e=>{let{zoomEnabled:l=!1,id:t="",version:s=0}=e,{scrollYProgress:r}=(0,ea.v)(),n=(0,eo.H)(r,[0,.2,1],[1,1.3,1.3]),i=(0,h.useMemo)(()=>(0,S.yc)(t,1920,740)+"?version="+s,[s,t]),[o,c]=(0,h.useState)(i);return(0,h.useEffect)(()=>{c(i)},[i]),(0,a.jsx)(U.E.img,{src:o,className:"h-full w-full object-cover",style:{scale:l?n:1},onError:()=>{c("/assets/profile/cover-placeholder.jpg")}})},ec=t(18006),ed=t(51197),profile_ProfileBox=e=>{var l;let{id:t="",userName:s="Username assente",city:r="No info",bio:n="",links:i,follower:o=0,business:c=!1,notify:u=!1,following:m=0,personal:f=!1,followedByMe:v=!1,coverWebVersion:g=0}=e,[w,N]=(0,h.useState)(!1),[b,k]=(0,h.useState)(null),[C,y]=(0,h.useState)(v),[E,P]=(0,h.useState)(u),[F,S]=(0,h.useState)(!1);(0,h.useEffect)(()=>{y(v),P(u)},[t]),(0,h.useEffect)(()=>{S(!1)},[t]);let Z=(0,x.useRouter)(),followUser=async()=>{y(!C);try{W.Z.removeQueries(X.j.userFollowers(t)),await (0,$.S)({follow:!C,userIdReceiver:t,userNameReceiver:s})(),W.Z.invalidateQueries(X.j.userFollowers(t))}catch(e){H.G.getState().createNotification("","ERROR",(0,j.t)("Alert.unknownProblem").toString()),y(C)}},toggleNotification=async()=>{P(!E);try{await (0,$.S)({notify:!E,userIdReceiver:t,userNameReceiver:s})()}catch(e){H.G.getState().createNotification("","ERROR",(0,j.t)("Alert.unknownProblem").toString()),P(E)}};(0,h.useEffect)(()=>{q.Z.get.cardsByUserId({userId:t}).then(e=>{k(e.totalCount)}).catch(()=>{})},[t]);let _=(0,Q.F)(e=>e.editorialUserName);return(0,a.jsxs)("div",{className:"relative",children:[c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"medium:rounded-t-2xl absolute top-0 -z-20 h-[65vh] max-h-[700px] min-h-[300px] w-full overflow-hidden",children:(0,a.jsx)("div",{className:"h-full w-full -translate-y-64 blur-3xl",children:(0,a.jsx)(profile_CoverPhoto,{version:g,id:t})})}),(0,a.jsx)("div",{className:"medium:rounded-t-2xl absolute top-0 -z-10 h-[65vh] max-h-[700px] min-h-[300px] w-full overflow-hidden",children:(0,a.jsx)("div",{className:d.xZ+"mx-auto !h-full !w-full",children:(0,a.jsx)(profile_CoverPhoto,{id:t,version:g,zoomEnabled:!0})})}),(0,a.jsx)("div",{className:"h-[65vh] max-h-[700px] min-h-[300px] w-full",style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 78.2%, #F6F6F6 99.72%)"}})]}),(0,a.jsxs)("div",{className:d.xZ,children:[(0,a.jsxs)("div",{className:"mt-4 flex h-28 gap-2 sm:h-40 sm:gap-4 md:h-56 md:gap-14",children:[(0,a.jsx)(UserAvatarBox,{personal:f,id:t}),(0,a.jsxs)("div",{className:"flex h-full w-full flex-col justify-between",children:[(0,a.jsxs)("div",{className:"flex w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center justify-start gap-1",children:[(0,a.jsx)("h2",{className:"line-clamp-1 flex break-all text-lg font-bold sm:text-2xl md:text-3xl",children:null!==(l=_[+t])&&void 0!==l?l:s}),void 0!==_[+t]&&(0,a.jsx)(p.HG,{className:"h-7 w-7 shrink-0"})]}),f&&(0,a.jsx)(profile_ButtonPersonalOptions,{userId:t}),!f&&(0,a.jsx)(profile_ButtonOptions,{isBusiness:c,username:s,userId:t})]}),(0,a.jsx)("div",{className:"line-clamp-1 break-all text-sm md:text-lg",children:r}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("div",{className:"",children:[null!==b&&(0,a.jsx)("p",{className:"text-lg font-bold md:text-3xl",children:b}),null===b&&(0,a.jsx)("div",{className:"bg-kgray-400 h-7 w-full animate-pulse rounded-full md:h-9"}),(0,a.jsx)("p",{className:"text-sm font-light",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.experiences")})})]}),(0,a.jsxs)("div",{className:"cursor-pointer",onClick:()=>S(ed.b.FOLLOWERS),children:[(0,a.jsx)("p",{className:"text-lg font-bold md:text-3xl",children:o+(C==v?0:!1==C?-1:1)}),(0,a.jsx)("p",{className:"text-sm font-light",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.followers")})})]}),(0,a.jsxs)("div",{className:"cursor-pointer",onClick:()=>S(ed.b.FOLLOW),children:[(0,a.jsx)("p",{className:"text-lg font-bold md:text-3xl",children:m}),(0,a.jsx)("p",{className:"text-sm font-light",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.followed")})})]})]}),f&&(0,a.jsx)(PersonalButtonsLg,{onClickDrafts:()=>Z.push("/profile/"+t+"/drafts"),onClickEdit:()=>N(!0)}),!f&&(0,a.jsx)(OtherProfileButtonsLg,{follow:C,onClickFollow:followUser,onClickNotify:toggleNotification,notify:E,userId:t,links:i})]})]}),f&&(0,a.jsx)(PersonalButtonsSm,{onClickDrafts:()=>Z.push("/profile/"+t+"/drafts"),onClickEdit:()=>N(!0)}),!f&&(0,a.jsx)(OtherProfileButtonsSm,{follow:C,onClickFollow:followUser,onClickNotify:toggleNotification,notify:E,userId:t,links:i}),n&&(0,a.jsxs)("div",{className:"flex gap-2 whitespace-pre-line pt-2 sm:gap-4 sm:pt-4 md:gap-14",children:[(0,a.jsx)("div",{className:"hidden w-28 shrink-0 sm:w-40 md:w-56 lg:block"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"hidden font-semibold sm:block",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.biography")})}),(0,a.jsx)("p",{className:"text-sm md:text-base",children:n})]})]}),(0,a.jsx)(ed.Z,{state:F,userId:t,onClickClose:()=>{S(!1)}}),f&&(0,a.jsx)(ec.Z,{open:w,onClick:()=>N(!1),business:c})]})]})};let UserAvatarBox=e=>{let{id:l="",personal:t=!1}=e,[s,r]=(0,h.useState)(!1),n=(0,T.t)(e=>e.getAvatarUrl);return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{onClick:()=>setTimeout(()=>r(!0),0),className:"relative h-28 w-28 shrink-0 cursor-pointer sm:h-40 sm:w-40 md:h-56 md:w-56",children:(0,a.jsx)(et.Z,{src:t?n():(0,S.J_)(l),className:"!border-[3px] drop-shadow-xl sm:!border-4"})}),(0,a.jsx)(el.Z,{open:s,children:(0,a.jsx)("div",{onClick:()=>r(!1),className:"relative h-[calc(100vh-100px)] min-h-[400px] w-full cursor-pointer",children:(0,a.jsx)(E(),{fill:!0,className:"h-full w-full object-contain",src:t?n():(0,S.J_)(l),alt:"",unoptimized:!0})})})]})},PersonalButtonsSm=e=>{let{onClickEdit:l=()=>{},onClickDrafts:t=()=>{}}=e;return(0,a.jsxs)("div",{className:"mt-4 flex justify-start gap-4 text-sm font-semibold sm:hidden",children:[(0,a.jsx)(k.NK,{className:"h-10 w-2/3 whitespace-nowrap px-8",onClick:l,children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.editProfile")})}),(0,a.jsx)(k.NK,{onClick:t,className:"h-10 w-1/3 px-8",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.drafts")})})]})},PersonalButtonsLg=e=>{let{onClickEdit:l=()=>{},onClickDrafts:t=()=>{}}=e;return(0,a.jsxs)("div",{className:"mt-2 hidden gap-4 sm:flex",children:[(0,a.jsx)(k.NK,{className:"h-11 w-fit px-12",onClick:l,children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.editProfile")})}),(0,a.jsx)(k.NK,{onClick:t,className:"h-11 w-fit px-12",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.drafts")})})]})},OtherProfileButtonsSm=e=>
1{let{follow:l=!1,userId:t="",links:s,notify:r=!1,onClickFollow:n=()=>{},onClickNotify:i=()=>{}}=e,[o,c]=(0,h.useState)(!1);return(0,a.jsxs)("div",{className:"mt-4 flex justify-start gap-2 text-sm font-semibold sm:hidden",children:[!l&&(0,a.jsx)("button",{onClick:()=>n(),className:"hover:bg-kgray-300 h-10 w-1/3 whitespace-nowrap rounded-full bg-white drop-shadow-sm transition-colors active:bg-white",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Button.followButton")})}),l&&(0,a.jsx)(k.KM,{onClick:()=>n(),className:"h-10 w-1/3 whitespace-nowrap rounded-full drop-shadow-sm transition-colors",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.alreadyFollow")})}),l&&!r&&(0,a.jsx)("button",{onClick:()=>i(),className:"hover:bg-kgray-300 h-11 w-11 whitespace-nowrap rounded-full bg-white p-2.5 drop-shadow-sm transition-colors active:bg-white disabled:opacity-30 disabled:hover:bg-white",children:(0,a.jsx)(V.YK,{className:"fill-none stroke-current stroke-2"})}),l&&r&&(0,a.jsx)(k.KM,{onClick:()=>i(),className:"h-11 w-11 whitespace-nowrap rounded-full !p-2.5 drop-shadow-sm transition-colors",children:(0,a.jsx)(V.YK,{className:"fill-none stroke-current stroke-2"})}),s&&s.length>0&&(0,a.jsx)("button",{onClick:()=>c(!0),className:"hover:bg-kgray-300 h-10 w-10 whitespace-nowrap rounded-full bg-white p-2 drop-shadow-sm transition-colors active:bg-white disabled:opacity-30 disabled:hover:bg-white",children:(0,a.jsx)(p.JH,{})}),s&&s.length>0&&(0,a.jsx)(ModalLinks,{open:o,links:null!=s?s:[],onClickClose:()=>c(!1)})]})},OtherProfileButtonsLg=e=>{let{follow:l=!1,userId:t="",notify:s=!1,links:r,onClickFollow:n=()=>{},onClickNotify:i=()=>{}}=e,[o,c]=(0,h.useState)(!1);return(0,a.jsxs)("div",{className:"mt-2 hidden gap-4 sm:flex",children:[!l&&(0,a.jsx)("button",{onClick:()=>n(),className:"hover:bg-kgray-300 h-11 w-1/3 whitespace-nowrap rounded-full bg-white drop-shadow-sm transition-colors active:bg-white",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Button.followButton")})}),l&&(0,a.jsx)(k.KM,{onClick:()=>n(),className:"h-11 w-1/3 whitespace-nowrap rounded-full drop-shadow-sm transition-colors",children:(0,a.jsx)(a.Fragment,{children:(0,j.t)("Profile.alreadyFollow")})}),l&&!s&&(0,a.jsx)("button",{onClick:()=>i(),className:"hover:bg-kgray-300 h-11 w-11 whitespace-nowrap rounded-full bg-white p-2.5 drop-shadow-sm transition-colors active:bg-white disabled:opacity-30 disabled:hover:bg-white",children:(0,a.jsx)(V.YK,{className:"fill-none stroke-current stroke-2"})}),l&&s&&(0,a.jsx)(k.KM,{onClick:()=>i(),className:"h-11 w-11 whitespace-nowrap rounded-full !p-2.5 drop-shadow-sm transition-colors",children:(0,a.jsx)(V.YK,{className:"fill-none stroke-current stroke-2"})}),r&&r.length>0&&(0,a.jsx)("button",{onClick:()=>c(!0),className:"hover:bg-kgray-300 h-11 w-11 whitespace-nowrap rounded-full bg-white p-2.5 drop-shadow-sm transition-colors active:bg-white disabled:opacity-30 disabled:hover:bg-white",children:(0,a.jsx)(p.JH,{})}),r&&r.length>0&&(0,a.jsx)(ModalLinks,{open:o,links:null!=r?r:[],onClickClose:()=>c(!1)})]})},ModalLinks=e=>{let{links:l,onClickClose:t=()=>{},open:s=!1}=e;return(0,a.jsxs)(ee.Z,{open:s,title:(0,j.t)("Profile.externaLinks"),children:[(0,a.jsx)("div",{className:"mt-4 flex flex-col gap-2",children:l.map(e=>{var l;return(0,a.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,a.jsx)("div",{className:"h-10 w-10 shrink-0 p-1",children:function(e){switch(e){case"instagram":return(0,a.jsx)(p.u9,{className:"h-full w-full"});case"facebook":return(0,a.jsx)(p.kA,{className:"h-full w-full fill-current"});case"tiktok":return(0,a.jsx)(p.Vp,{className:"h-full w-full"});default:return(0,a.jsx)(p.JH,{className:"h-full w-full"})}}(e.description)}),(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"truncate text-sm text-blue-500",children:e.url})]},null!==(l=e.description+e.id)&&void 0!==l?l:"")})}),(0,a.jsx)(k.kq,{onClick:()=>{t()},className:"mt-4 w-full",children:(0,j.t)("Button.closeButton")})]})},Profile=e=>((0,T.t)(e=>e.user.id),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c(),{children:[(0,a.jsx)("title",{children:"KuriU"}),(0,a.jsx)("meta",{name:"description",content:""}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,a.jsxs)("main",{className:d.EF+"mb-20 mt-16 sm:mt-0",children:[(0,a.jsx)(profile_ProfileBox,{...e,business:e.business,personal:e.personal}),(0,a.jsx)("div",{className:"",children:(0,a.jsx)(profile_ContentBox,{userId:e.id,personal:e.personal,business:e.business})}),(0,a.jsx)(u.q,{children:(0,a.jsx)(RemoveQuery,{id:e.id})})]})]})),RemoveQuery=e=>{let{id:l=""}=e,t=(0,x.useRouter)();return(0,h.useEffect)(()=>{t.replace({pathname:"/profile/".concat(l),hash:window.location.hash},void 0,{shallow:!0})},[]),(0,a.jsx)(a.Fragment,{})};Profile.getLayout=function(e){return(0,a.jsx)(m.Z,{children:e})},Profile.auth=!0,Profile.displayName="profile";var eu=!0,ex=Profile}},function(e){e.O(0,[7776,9654,9420,9774,3426,2888,179],function(){return e(e.s=484)}),_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.