PageSourceSearch

https://hozpitality.com.au/_next/static/chunks/3818-3948918d15a8ace8.js

js hozpitality.com.au collected 2026-10-08 10:13:00 UTC 91,382 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3818],{70:function(e,t,s){s.d(t,{A:function(){return i}});var a=s(83464);let i=async e=>{try{return(await a.Z.post("https://app.hozpitality.com/base/api/generic-comment-create/",e,{headers:{"Content-Type":"application/json"}})).data}catch(e){if(a.Z.isAxiosError(e)){var t;throw(null===(t=e.response)||void 0===t?void 0:t.data)||{error:"Comment failed"}}throw{error:"Comment failed"}}}},82453:function(e,t,s){s.d(t,{K:function(){return i}});var a=s(83464);async function i(e){try{return(await a.Z.post("https://app.hozpitality.com/base/api/bookmark-create/",e)).data}catch(e){if(a.Z.isAxiosError(e)){var t;throw(null===(t=e.response)||void 0===t?void 0:t.data)||{error:"Bookmark failed"}}throw{error:"Bookmark failed"}}}},99164:function(e,t,s){s.r(t);var a=s(83464);let i=async e=>{try{return(await a.Z.delete("https://app.hozpitality.com/base/api/timeline-posts/".concat(e,"/delete/"))).data}catch(e){throw console.error("Error deleting timeline post:",e),e}};t.default=i},66465:function(e,t,s){s.d(t,{p:function(){return i}});var a=s(83464);let i=async e=>{try{return(await a.Z.post("https://app.hozpitality.com/base/api/get-generic-comment/",e,{headers:{"Content-Type":"application/json"}})).data}catch(e){if(a.Z.isAxiosError(e)){var t;throw(null===(t=e.response)||void 0===t?void 0:t.data)||{error:"Comment failed"}}throw{error:"Comment failed"}}}},99300:function(e,t,s){s.d(t,{n:function(){return i}});var a=s(83464);let i=async(e,t,s)=>{console.log("userId:",e),console.log("postId:",t),console.log("timeline_post_id:",s);try{return(await a.Z.post("https://app.hozpitality.com/base/api/like-post/",{user_id:e,post_id:t,timeline_post_id:s})).data}catch(e){return console.error("Error liking post:",e),{success:!1,message:"Error liking post"}}}},42536:function(e,t,s){s.d(t,{C:function(){return i}});var a=s(83464);async function i(e){return(await a.Z.post("".concat("https://app.hozpitality.com/base","/api/repost-to-timeline/"),e)).data}},69004:function(e,t,s){s.d(t,{Z:function(){return G}});var a=s(57437),i=s(2265),l=s(61751),n=s(13111),r=s(97633),o=s(25982),c=s(11140),d=s(33145),m=s(27648),h=s(22744),p=s(14743),u=s(40931),x=s(11590),j=s(65913),g=s(54878),v=s(86170),f=s(70795),b=s(46945),y=s(26372),N=s(9485),w=s(43802),_=s(19555),A=s(80453),k=s(24076),Z=s(6906),C=s(83464);let S=async e=>{try{let t=await C.Z.get("https://app.hozpitality.com/base/api/comments/".concat(e,"/"));return console.log("comments logs"+t.data),t.data}catch(e){return console.error("Error fetching comments:",e),{success:!1,message:"Error fetching comments"}}},z=async(e,t,s)=>{try{return(await C.Z.post("https://app.hozpitality.com/base/api/comments/".concat(e,"/"),{author_id:t,content:s})).data}catch(e){return console.error("Error adding comment:",e),{success:!1,message:"Error adding comment"}}};var E=s(99300),D=s(90100),P=s(99376),R=s(76536),F=s(49089),I=s(84154),T=s(3390);let M=e=>{let{name:t}=e;return(0,a.jsxs)(g.Z,{children:[(0,a.jsx)(v.Z,{as:"a",className:"bg-light text-secondary btn btn-secondary-soft-hover py-1 px-2 content-none",id:"cardFeedAction",children:(0,a.jsx)(c.evw,{size:18})}),(0,a.jsxs)(f.Z,{className:"dropdown-menu-end","aria-labelledby":"cardFeedAction",children:[(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[(0,a.jsx)(c.flH,{size:22,className:"fa-fw pe-2"}),"Save post"]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[(0,a.jsx)(c.G8$,{size:22,className:"fa-fw pe-2"}),"Unfollow ",t]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[(0,a.jsx)(c.fZX,{size:22,className:"fa-fw pe-2"}),"Hide post"]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[(0,a.jsx)(c.UKX,{size:22,className:"fa-fw pe-2"}),"Block"]})}),(0,a.jsx)("li",{children:(0,a.jsx)(y.Z,{})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[(0,a.jsx)(c.GKv,{size:22,className:"fa-fw pe-2"}),"Report post"]})})]})]})};var B=(0,i.memo)(e=>{var t,s,l,n,r,o;let{job:C,onClick:B,isTimeLine:H}=e,[O,L]=(0,i.useState)(!1),[U,W]=(0,i.useState)([]),[Q,G]=(0,i.useState)(""),[V,Y]=(0,i.useState)(!1),[J,$]=(0,i.useState)(C.likes_count),[q,K]=(0,i.useState)(C.is_liked),X=(0,P.useRouter)(),ee=(0,Z.n5)();(0,i.useEffect)(()=>{(async()=>{Y(!0);try{let e=await S(C.id);e.success?W(e.post.comments):console.error(e.message)}catch(e){console.error("Error fetching comments:",e)}finally{Y(!1)}})()},[C.id]);let et=async e=>{e.preventDefault(),Y(!0);let t=await z(C.id,Number(ee),Q);t.success?(W([...U,t.comment]),G("")):console.error(t.message),Y(!1)},es=async()=>{let e=await (0,E.n)(Number(ee),C.id,0);e.success?($(e.total_likes),K(!0)):console.error(e.message)};return(0,a.jsxs)(N.Z,{className:"job-list-card Jobcard-hover",onClick:()=>B(C),children:[(0,a.jsx)(w.Z,{className:"border-light p-3",children:(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("div",{className:"avatar me-3",children:(0,a.jsxs)("span",{role:"button",children:[(0,a.jsx)(d.default,{unoptimized:!0,className:"avatar-img rounded-circle",src:"job.company.avatar",alt:"logo",width:200,height:200})," "]})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"nav nav-divider",children:[(0,a.jsx)("h2",{className:"nav-item h6 card-title mb-0",onClick:()=>X.push("/profile/".concat(C.slug)),children:(0,a.jsxs)("span",{role:"button",className:"d-flex align-items-center",children:[C.company.name,C.company.is_verified&&(0,a.jsx)(h.vr,{className:"text-primary medium ms-1"}),(0,a.jsx)(T.Z,{is_CC:C.company.is_CC,is_PAYG:C.company.is_PAYG,is_SP:C.company.is_SP,is_GP:C.company.is_GP,is_EP:C.company.is_EP,is_PREMIUM:C.company.is_PREMIUM})]})}),(0,a.jsx)("span",{className:"nav-item small",children:(0,j.VG)(new Date(C.created_at))})]}),(0,a.jsx)("div",{className:"width-300",children:(0,a.jsxs)("p",{className:"small mb-2 truncate",children:[(0,a.jsx)(c.Pat,{className:"me-1"}),null===(t=C.location)||void 0===t?void 0:t.city.name," - ",null===(l=C.location)||void 0===l?void 0:null===(s=l.country)||void 0===s?void 0:s.name]})})]})]}),(0,a.jsx)(M,{name:null==C?void 0:C.id.toString()})]})}),(0,a.jsxs)(_.Z,{className:"py-3",children:[(0,a.jsxs)("div",{className:"d-sm-flex align-items-start text-sm-start",children:[(0,a.jsx)("div",{className:"avatar avatar-lg mt-0 mb-1 me-3",children:C.is_featured?(0,a.jsx)("div",{className:"rounded-circle border border-primary border-2",children:(0,a.jsx)(d.default,{unoptimized:!0,className:"avatar-img rounded-circle border border-white border-3 shadow-sm",src:C.avatar?"https://app.hozpitality.com".concat(C.avatar):x.Z,alt:"avatar",width:100})}):(0,a.jsx)(d.default,{unoptimized:!0,className:"avatar-img rounded-circle border border-white border-3 shadow-sm",src:C.avatar?"https://app.hozpitality.com".concat(C.avatar):"https://app.hozpitality.com".concat(C.company.avatar),alt:"avatar",width:100,height:100})}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"width-300",children:[(0,a.jsx)("h5",{className:"mt-2 h5 job-title hover-text-undlerline bold",children:C.job_title}),(0,a.jsxs)("p",{className:"small mb-2",children:[(0,a.jsx)(c.Pat,{className:"me-1"}),null===(n=C.location)||void 0===n?void 0:n.city.name," - ",null===(o=C.location)||void 0===o?void 0:null===(r=o.country)||void 0===r?void 0:r.name]})]})})]}),C.is_featured&&(0,a.jsx)("p",{className:"badge bg-primary bg-opacity-10 text-primary font-weight-bold mb-1 mr-1 bold",children:"Featured"}),C.is_premium&&(0,a.jsx)(d.default,{unoptimized:!0,className:"rounded-2 float-end",style:{width:"60px",height:"auto"},src:u.Z,alt:"logo"}),(0,a.jsx)("p",{className:"badge bg-secondary bg-opacity-10 text-secondary text-capitalize font-weight-bold mt-2 mb-1 mr-1 ms-0 bold",children:"Attractive salary and benefits"}),(0,a.jsxs)("p",{className:"badge bg-secondary bg-opacity-10 text-secondary font-weight-bold mb-1 bold",children:[C.views," - views"]}),(0,a.jsxs)("ul",{className:"list-inline mb-1 text-sm-start mt-sm-1",children:[(0,a.jsxs)("li",{className:"list-inline-item small mr-5",children:[(0,a.jsx)(c.TlO,{className:"me-1"})," ",C.type]}),(0,a.jsxs)("li",{className:"list-inline-item small",children:[(0,a.jsx)(c.O$v,{className:"me-1"})," ",(0,p.WU)(new Date(C.created_at),"MMMM dd, yyyy")," posted."]})]})]}),H&&(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(A.Z,{className:"p-0 border-light",children:H&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("ul",{className:"nav nav-fill nav-stack py-2 small",children:[(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsxs)(k.Z,{className:"nav-link mb-0 ".concat(J>0?"active":""),onClick:es,children:[q?(0,a.jsx)(c.ytW,{size:18,className:"pe-1"}):(0,a.jsx)(c.sF8,{size:18,className:"pe-1"}),"Like",J>0?" (".concat(J,")"):""]})}),(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsxs)(k.Z,{className:"nav-link mb-0",onClick:()=>{L(!O)},children:[(0,a.jsx)(F.ZvA,{size:18,className:"pe-1"}),"Comment",(null==U?void 0:U.length)>0?" (".concat(U.length,")"):""]})}),(0,a.jsxs)(g.Z,{className:"nav-item",children:[(0,a.jsxs)(v.Z,{as:"a",className:"nav-link mb-0 content-none cursor-pointer",id:"cardShareAction6","aria-expanded":"false",children:[(0,a.jsx)(I.cql,{className:"pe-1",size:18}),"Share"]}),(0,a.jsxs)(f.Z,{className:"dropdown-menu-end","aria-labelledby":"
1cardShareAction6",children:[(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[" ",(0,a.jsx)(c.lZw,{size:22,className:"fa-fw pe-2"}),"Send via Direct Message"]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[" ",(0,a.jsx)(c.OkQ,{size:22,className:"fa-fw pe-2"}),"Bookmark"," "]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[" ",(0,a.jsx)(c.hfq,{size:22,className:"fa-fw pe-2"}),"Copy link to post"]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[" ",(0,a.jsx)(c.Dqf,{size:22,className:"fa-fw pe-2"}),"Share post via …"]})}),(0,a.jsx)("li",{children:(0,a.jsx)(y.Z,{})}),(0,a.jsx)("li",{children:(0,a.jsxs)(b.Z,{href:"",children:[" ",(0,a.jsx)(c.HlX,{size:22,className:"fa-fw pe-2"}),"Share to News Feed"]})})]})]}),(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsxs)(m.default,{className:"nav-link mb-0",href:"",children:[" ",(0,a.jsx)(R.Z,{fontSize:"small"}),"Repost"]})})]}),O&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"d-flex mb-3",children:[(0,a.jsx)("div",{className:"avatar avatar-xs me-2",children:(0,a.jsx)("span",{role:"button",children:(0,a.jsx)(d.default,{unoptimized:!0,className:"avatar-img rounded-circle",width:40,height:40,src:"".concat(C.company.avatar),alt:"avatar12"})})}),(0,a.jsxs)("form",{className:"nav nav-item w-100 position-relative",onSubmit:et,children:[(0,a.jsx)("textarea",{"data-autoresize":!0,className:"form-control pe-5 bg-light",rows:1,placeholder:"Add a comment...",value:Q,onChange:e=>{G(e.target.value)},disabled:V}),(0,a.jsx)("button",{className:"nav-link bg-transparent px-3 position-absolute top-50 end-0 translate-middle-y border-0",type:"submit",disabled:V,children:(0,a.jsx)(c.bb7,{})})]})]}),(0,a.jsx)("ul",{className:"comment-wrap list-unstyled",children:U.map(e=>(0,a.jsx)(D.default,{comment:e},e.id))})]})]})})]})}),H=s(19824),O=s(46777),L=s(59099),U=s(70157),W=s(82498),Q=s(57745),G=e=>{let{post:t,value:s,show:c,onHide:m,onChange:h,onPost:p}=e,u=(0,Z.n5)(),x=(0,P.useRouter)(),j=(0,Z.Pp)(),[g,v]=(0,i.useState)("");function f(e){var t,s,a,i;console.log("Job clicked:",e);let l=null!==(t=e.slug)&&void 0!==t?t:"",n=null!==(s=e.id)&&void 0!==s?s:"",r=null!==(a=e.company)&&void 0!==a?a:"";localStorage.setItem("job-id",null!==(i=String(n))&&void 0!==i?i:""),console.log("Job clicked:",l,n,null!=r?r:""),x.push("/".concat(l,"/"))}return(0,i.useEffect)(()=>{(async()=>{let e=await (0,W.i)(Number(u));e?v(e):v(Q.Z.src)})()},[]),(0,i.useEffect)(()=>{g&&(localStorage.setItem("avatar_url",g.replace("https://app.hozpitality.com","")),console.log("Fetched profile photo:",localStorage.getItem("avatar_url")))},[g]),(0,a.jsxs)(l.Z,{show:c,onHide:m,centered:!0,backdrop:"static",children:[(0,a.jsxs)(l.Z.Header,{closeButton:!0,className:"border-light py-2",children:[(0,a.jsx)("div",{className:"avatar avatar me-2",children:(0,a.jsx)(d.default,{unoptimized:!0,className:"avatar-img rounded-circle",src:g,width:200,height:200,alt:""})}),(0,a.jsx)("div",{className:"d-flex w-100 align-items-center justify-content-between",children:(0,a.jsxs)("div",{className:"w-100",children:[(0,a.jsx)("h6",{className:"modal-title",children:j}),(0,a.jsx)("p",{className:"m-0",children:"Public"})]})})]}),(0,a.jsx)(l.Z.Body,{className:"p-1 card-scroll",children:(0,a.jsxs)(n.Z,{children:[(0,a.jsx)(n.Z.Control,{as:"textarea",rows:3,placeholder:"Start writing or use @ to mention people, companies or schools",className:"mb-3",value:s,onChange:e=>null==h?void 0:h(e.target.value)}),(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(e=>{let{post:t}=e;switch(t.post_type){case"jobs":return(0,a.jsx)(B,{job:t,isTimeLine:!0,onClick:f});case"photo":return(0,a.jsx)(H.Z,{post:t,footerDisplay:"d-none"});case"text":case"repost":return(0,a.jsx)(O.Z,{post:t,footerDisplay:"d-none"});case"link":return(0,a.jsx)(L.Z,{post:t,footerDisplay:"d-none"});case"poll":return(0,a.jsx)(U.Z,{post:t,footerDisplay:"d-none"});case"product":return(0,a.jsx)(r.Z,{post:t,footerDisplay:"d-none"});case"article":return(0,a.jsx)(o.Z,{post:t,footerDisplay:"d-none"});default:return null}},{post:t})})]})}),(0,a.jsx)(l.Z.Footer,{className:"justify-content-end border-light py-2",children:(0,a.jsx)("button",{className:"btn btn-primary px-4",onClick:p,children:"Post"})})]})}},25982:function(e,t,s){var a=s(57437),i=s(29),l=s.n(i),n=s(33145),r=s(9485),o=s(19555),c=s(27648),d=s(2265),m=s(6906),h=s(91769),p=s(89710),u=s(30970);t.Z=e=>{let{post:t,footerDisplay:i,onDelete:x}=e,j="repost"===t.post_type&&t.original?t.original:t,g=(0,m.n5)(),v=(0,m.Dm)(),[f,b]=(0,d.useState)(!1),[y,N]=(0,d.useState)(!1),w=async()=>{t.timeline_post_id&&(await Promise.resolve().then(s.bind(s,99164)).then(e=>{let{default:s}=e;return s(t.timeline_post_id.toString())}),N(!1),x&&x())};return(0,a.jsxs)(r.Z,{children:[(0,a.jsx)(u.Z,{post:t,displayPost:j,userId:g||0,onDelete:x}),(0,a.jsxs)(o.Z,{className:"p-2",children:[j.title&&(0,a.jsx)("span",{className:"jsx-964152f69cd91061 my-2 fs-6 truncate-3 mb-3 text-black",children:new DOMParser().parseFromString(j.title,"text/html").body.textContent}),j.tags&&j.tags.length>0&&(0,a.jsx)("div",{className:"jsx-964152f69cd91061 my-1",children:j.tags.map((e,t)=>(0,a.jsx)(c.default,{href:"",className:"text-primary me-1 fw-semibold",children:e},t))}),j.image&&(0,a.jsx)(c.default,{className:"rounded-pill",href:"/articles/details/".concat(t.post_slug,"/"),style:{fontWeight:500},target:"_blank",children:(0,a.jsxs)("div",{className:"jsx-964152f69cd91061 image-main-wrapper position-relative rounded overflow-hidden mb-0",children:[!f&&(0,a.jsx)("div",{"aria-hidden":"true",className:"jsx-964152f69cd91061 skeleton-wrapper rounded",children:(0,a.jsx)("div",{className:"jsx-964152f69cd91061 skeleton-shimmer"})}),(0,a.jsx)(n.default,{unoptimized:!0,src:"".concat(j.image),alt:j.title||"",fill:!0,className:"blur-bg rounded ".concat(f?"show":"hide"),style:{objectFit:"cover",filter:"blur(25px)",transform:"scale(1.1)"},onLoadingComplete:()=>b(!0)}),(0,a.jsx)(n.default,{unoptimized:!0,src:"".concat(j.image),alt:j.title||"",width:600,height:300,className:"w-100 h-100 main-img position-relative rounded ".concat(f?"show":"hide"),style:{objectFit:"contain"},onLoadingComplete:()=>b(!0)})]})}),(0,a.jsx)("div",{className:"jsx-964152f69cd91061 p-2 bg-light rounded",children:(0,a.jsxs)(c.default,{className:"rounded-pill",href:"/articles/details/".concat(t.post_slug,"/"),style:{fontWeight:500},target:"_blank",children:[j.title&&(0,a.jsx)("span",{className:"jsx-964152f69cd91061 my-2 fs-6 fw-semibold truncate-3 mb-2 text-black",children:new DOMParser().parseFromString(j.title,"text/html").body.textContent}),j.content&&(0,a.jsx)("span",{className:"jsx-964152f69cd91061 my-2 small truncate-3 mb-0 text-body",children:new DOMParser().parseFromString(j.content,"text/html").body.textContent})]})}),(0,a.jsx)(l(),{id:"964152f69cd91061",children:".image-main-wrapper.jsx-964152f69cd91061{height:auto}.skeleton-wrapper.jsx-964152f69cd91061{position:absolute;inset:0;overflow:hidden;background:#e9ecef}.skeleton-shimmer.jsx-964152f69cd91061{position:absolute;inset:0;background:-webkit-linear-gradient(left,rgba(230,232,235,0)0%,rgba(230,232,235,.6)50%,rgba(230,232,235,0)100%);background:-moz-linear-gradient(left,rgba(230,232,235,0)0%,rgba(230,232,235,.6)50%,rgba(230,232,235,0)100%);background:-o-linear-gradient(left,rgba(230,232,235,0)0%,rgba(230,232,235,.6)50%,rgba(230,232,235,0)100%);background:linear-gradient(90deg,rgba(230,232,235,0)0%,rgba(230,232,235,.6)50%,rgba(230,232,235,0)100%);-webkit-animation:shimmer 1.2s infinite;-moz-animation:shimmer 1.2s infinite;-o-animation:shimmer 1.2s infinite;animation:shimmer 1.2s infinite}@-webkit-keyframes shimmer{0%{-webkit-transform:translatex(-100%);transform:translatex(-100%)}100%{-webkit-transform:translatex(100%);transform:translatex(100%)}}@-moz-keyframes shimmer{0%{-moz-transform:translatex(-100%);transform:translatex(-100%)}100%{-moz-transform:translatex(100%);transform:translatex(100%)}}@-o-keyframes shimmer{0%{-o-transform:translatex(-100%);transform:translatex(-100%)}100%{-o-transform:translatex(100%);transform:translatex(100%)}}@keyframes shimmer{0%{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}100%{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}}@media(prefers-reduced-motion:reduce){.skeleton-shimmer.jsx-964152f69cd91061{-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}.blur-bg.jsx-964152f69cd91061,.main-img.jsx-964152f69cd91061{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}}.blur-bg.jsx-964152f69cd91061{position:absolute!important;top:0;left:0;width:100%;height:100%;z-index:1;opacity:.8;-webkit-transition:opacity 240ms ease-in-out;-moz-transition:opacity 240ms ease-in-out;-o-transition:opacity 240ms ease-in-out;transition:opacity 240ms ease-in-out}.main-img.jsx-964152f69cd91061{position:relative!important;z-index:2;-webkit-transition:opacity 240ms ease-in-out;-moz-transition:opacity 240ms ease-in-out;-o-transition:opacity 240ms ease-in-out;transition:opacity 240ms ease-in-out}.hide.jsx-964152f69cd91061{opacity:0}
1.show.jsx-964152f69cd91061{opacity:1}.image-main-wrapper .show.jsx-964152f69cd91061~.skeleton-wrapper.jsx-964152f69cd91061{display:none}"})]}),(0,a.jsx)(p.Z,{post:t,profile_photo:v||"",footerDisplay:i}),(0,a.jsx)(h.Z,{show:y,title:"Delete Post",message:"Are you sure you want to delete this post?",confirmText:"Delete",cancelText:"Cancel",variant:"danger",onConfirm:w,onCancel:()=>N(!1)})]})}},92570:function(e,t,s){var a=s(57437),i=s(33145),l=s(27648),n=s(9485),r=s(19555),o=s(11140),c=s(2265),d=s(6906),m=s(14743),h=s(91769),p=s(30970),u=s(89710);t.Z=e=>{let{post:t,footerDisplay:s,onDelete:x}=e,j="repost"===t.post_type&&t.original?t.original:t,g=(0,d.n5)(),v=(0,d.Dm)(),[f,b]=(0,c.useState)(!1),[y,N]=(0,c.useState)(j.attendees||0),[w,_]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(!g)return;let e="event_interest_".concat(j.id,"_").concat(g),t=localStorage.getItem(e);if(null!==t){b("true"===t);return}(async()=>{try{let t=await fetch("https://app.hozpitality.com/base/api/event/".concat(j.id,"/").concat(g,"/is-interested/"));if(t.ok){let s=await t.json();b(s.is_interested),localStorage.setItem(e,s.is_interested?"true":"false")}}catch(e){console.error("Error fetching interest status:",e)}})()},[j.id,g]);let A=async()=>{if(g&&!w){_(!0);try{let e=f?"https://app.hozpitality.com/base/api/event/".concat(j.id,"/").concat(g,"/remove-interest/"):"https://app.hozpitality.com/base/api/event/".concat(j.id,"/").concat(g,"/interested/");(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"}})).ok?(b(!f),N(e=>f?e-1:e+1),localStorage.setItem("event_interest_".concat(j.id,"_").concat(g),(!f).toString())):console.error("Failed to toggle interest")}catch(e){console.error("Error toggling interest:",e)}finally{_(!1)}}},[k,Z]=(0,c.useState)(!1),C=async()=>{Z(!1),x&&x()};return(0,a.jsxs)(n.Z,{children:[(0,a.jsx)(p.Z,{post:t,displayPost:j,userId:g||0,onDelete:x}),(0,a.jsx)(r.Z,{className:"p-2",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"align-items-center",children:[(0,a.jsx)(i.default,{unoptimized:!0,className:"card-img object-fit-cover",src:"".concat(j.image),width:150,height:150,alt:"event"}),(0,a.jsxs)("div",{className:"mt-3 px-2",children:[(0,a.jsx)("div",{className:"d-flex ms-auto gap-2 mb-2 justify-content-between",children:(0,a.jsx)("span",{className:"my-2 fs-6 truncate-3 mb-3 text-black",children:(0,a.jsx)(l.default,{href:"/events/details/".concat(j.post_slug),children:j.title})})}),(0,a.jsxs)("ul",{className:"nav nav-stack small",children:[(0,a.jsxs)("li",{className:"nav-item icons-center gap-1",children:[(0,a.jsx)(o.$W1,{size:18,className:"pe-1"})," ",(0,m.p6)(j.date,"dd MMM yyyy")]}),(0,a.jsxs)("li",{className:"nav-item icons-center gap-1",children:[(0,a.jsx)(o.Pat,{size:18,className:"pe-1"})," ",(0,a.jsxs)("p",{className:"mb-0 small",children:[j.country,j.city&&j.city.replace(j.country,"").trim()&&" - ".concat(j.city.replace(j.country,"").replace(/^,|,$/g,"").trim())]})]}),(0,a.jsxs)("li",{className:"nav-item icons-center gap-1",children:[(0,a.jsx)(o.w7k,{size:18,className:"pe-1"})," ",y," Interested",(0,a.jsx)("button",{className:"btn btn-sm ms-2 ".concat(f?"btn-success":"btn-outline-success"),onClick:A,disabled:w,children:w?"Loading...":f?"Interest shared":"Share Interest"})]})]})]})]})})}),(0,a.jsx)(u.Z,{post:t,profile_photo:v||"",footerDisplay:s}),(0,a.jsx)(h.Z,{show:k,title:"Delete Feed Event",message:"Are you sure you want to delete this event from Feeds?",confirmText:"Delete",cancelText:"Cancel",variant:"danger",onConfirm:C,onCancel:()=>Z(!1)})]})}},59099:function(e,t,s){var a=s(57437),i=s(27648),l=s(9485),n=s(19555),r=s(2265),o=s(18848),c=s(6906),d=s(30970),m=s(89710);function h(e){var t;let{html:s}=e,[i,l]=(0,r.useState)(!1),n=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1),m=(t=s||"")?-1!==t.indexOf("&lt;")||-1!==t.indexOf("&gt;")?new DOMParser().parseFromString(t,"text/html").documentElement.textContent||"":t:"",h="";try{h=function(e){let t=new DOMParser().parseFromString(e,"text/html"),s=t.createTreeWalker(t.body,NodeFilter.SHOW_TEXT,null),a=[],i=s.nextNode();for(;i;){var l;if(!i.parentElement){i=s.nextNode();continue}let e=null===(l=i.parentElement.tagName)||void 0===l?void 0:l.toLowerCase();if("script"===e||"style"===e||"a"===e){i=s.nextNode();continue}/\b(https?:\/\/|www\.)[^\s<]+/i.test(i.nodeValue||"")&&a.push(i),i=s.nextNode()}
1return a.forEach(e=>{var t;let s=function(e){let t;let s=/((https?:\/\/|www\.)[^\s<]+)/g,a=document.createDocumentFragment(),i=0;for(;null!==(t=s.exec(e));){let s=t.index;s>i&&a.appendChild(document.createTextNode(e.slice(i,s)));let l=t[0];/^https?:\/\//i.test(l)||(l="http://"+l);let n=document.createElement("a");n.href=l,n.target="_blank",n.rel="noopener noreferrer",n.textContent=t[0],n.className="text-primary",a.appendChild(n),i=s+t[0].length}return i<e.length&&a.appendChild(document.createTextNode(e.slice(i))),a}(e.nodeValue||"");null===(t=e.parentNode)||void 0===t||t.replaceChild(s,e)}),t.body.innerHTML}(m)}catch(e){h=m.replace(/((https?:\/\/|www\.)[^\s<]+)/g,e=>{let t=/^https?:\/\//i.test(e)?e:"http://"+e;return'<a href="'.concat(t,'" target="_blank" rel="noopener noreferrer" class="text-primary">').concat(e,"</a>")})}let p=o.Z.sanitize(h,{ALLOWED_TAGS:["b","i","em","strong","a","p","br","ul","ol","li","span","div","h1","h2","h3","h4","h5","blockquote","img"],ALLOWED_ATTR:["href","title","target","rel","class","style","src","alt"]});return(0,r.useEffect)(()=>{let e=n.current;if(!e)return;let t=requestAnimationFrame(()=>{d(e.scrollHeight>e.clientHeight+6)});return()=>cancelAnimationFrame(t)},[p]),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{ref:n,style:{overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:i?"unset":3,maxHeight:i?void 0:"4.8em",transition:"max-height 0.2s ease",wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:p}}),!i&&c&&(0,a.jsx)("div",{style:{textAlign:"right",marginTop:6},children:(0,a.jsx)("button",{className:"btn btn-link p-0",onClick:()=>l(!0),children:"Read more"})}),i&&(0,a.jsx)("div",{style:{textAlign:"right",marginTop:6},children:(0,a.jsx)("button",{className:"btn btn-link p-0",onClick:()=>l(!1),children:"Show less"})})]})}t.Z=e=>{let{post:t,footerDisplay:s,onDelete:r}=e,o="repost"===t.post_type&&t.original?t.original:t,p=(0,c.n5)(),u=(0,c.Dm)(),x=o.content||"";return(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(d.Z,{post:t,displayPost:o,userId:p||0,onDelete:r}),(0,a.jsxs)(n.Z,{className:"p-2",children:[(0,a.jsx)(h,{html:x}),o.hastags&&o.hastags.length>0&&(0,a.jsx)("div",{className:"mt-2",children:o.hastags.map((e,t)=>(0,a.jsxs)(i.default,{href:"/hashtag/".concat(e),className:"me-1 hashtag-link",children:["#",e]},t))}),o.link_preview_json&&(0,a.jsx)(i.default,{href:o.link_preview_json.link,target:"_blank",className:"text-decoration-none truncate",style:{display:"inline"},children:(0,a.jsxs)("div",{className:"rounded mt-3 position-relative",children:[o.link_preview_json.link_image_url&&(0,a.jsx)("img",{src:o.link_preview_json.link_image_url,alt:"preview",style:{width:"100%",maxHeight:"100%",objectFit:"cover",borderRadius:"8px"}}),(0,a.jsx)("a",{href:o.link_preview_json.link,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)("h6",{className:"mt-2 text-primary truncate-2 hover-text-undlerline",children:o.link_preview_json.link_title})}),(0,a.jsx)("p",{className:"small text-body truncate mb-0",children:o.link_preview_json.link_description})]})})]}),(0,a.jsx)(m.Z,{post:t,profile_photo:u||"",footerDisplay:s})]})}},97633:function(e,t,s){var a=s(57437),i=s(33145),l=s(27648),n=s(9485),r=s(19555),o=s(24402),c=s(4670),d=s(2265),m=s(6906),h=s(99164),p=s(91769),u=s(30970),x=s(89710);t.Z=e=>{let{post:t,footerDisplay:s,onDelete:j}=e,g="repost"===t.post_type&&t.original?t.original:t,v=(0,m.n5)(),f=(0,m.Dm)(),[b,y]=(0,d.useState)(!1),N=(0,d.useRef)(null),w=async()=>{t.timeline_post_id&&(await (0,h.default)(t.timeline_post_id.toString()),y(!1),j&&j())};return(0,a.jsxs)(n.Z,{children:[(0,a.jsx)(u.Z,{post:t,displayPost:g,userId:v||0,onDelete:j}),(0,a.jsx)(r.Z,{className:"p-2",children:(0,a.jsx)(o.default,{className:"g-3",children:(0,a.jsxs)(l.default,{href:"/marketplace/product-details/".concat(g.slug,"/").concat(g.id,"/"),className:"btn-link text-reset truncate-2",children:[(0,a.jsx)(c.default,{lg:12,className:"align-content-center d-flex justify-content-center align-items-center",children:g.image?(0,a.jsx)(i.default,{unoptimized:!0,className:"rounded",src:"".concat(g.image),alt:g.title,width:300,height:300,style:{objectFit:"cover"}}):(0,a.jsx)("div",{className:"bg-light rounded",style:{width:"200px",height:"200px"}})}),(0,a.jsxs)(c.default,{lg:12,className:"align-content-center px-3",children:[(0,a.jsx)("span",{className:"my-2 fs-6 truncate-3 text-black",children:g.title}),(0,a.jsx)("div",{className:"truncate-2 text-body small",ref:N,dangerouslySetInnerHTML:{__html:g.description||""}})]})]})})}),(0,a.jsx)(x.Z,{post:t,profile_photo:f||"",footerDisplay:s}),(0,a.jsx)(p.Z,{show:b,title:"Delete Post",message:"Are you sure you want to delete this post?",confirmText:"Delete",cancelText:"Cancel",variant:"danger",onConfirm:w,onCancel:()=>y(!1)})]})}},89710:function(e,t,s){var a=s(57437),i=s(2979),l=s(32491),n=s(80453),r=s(24076),o=s(54878),c=s(86170),d=s(70795),m=s(46945),h=s(11140),p=s(49089),u=s(84154),x=s(76536),j=s(27648),g=s(30166),v=s(2265),f=s(59873),b=s(31691),y=s(73986),N=s(15735),w=s(94295),_=s(32768),A=s(6906),k=s(70),Z=s(99300),C=s(66465),S=s(69004),z=s(42536),E=s(61751),D=s(22744),P=s(16534);let R=(0,g.default)(()=>Promise.resolve().then(s.bind(s,90100)),{loadableGenerated:{webpack:()=>[90100]},ssr:!1});t.Z=e=>{var t;let{post:s,profile_photo:g,footerDisplay:F}=e,I=(0,b.Z)(),T=(0,f.Z)(I.breakpoints.down("sm")),M=(0,A.n5)()||0,B=(0,A.L0)()||"",H="repost"===s.post_type&&s.original?s.original:s,[O,L]=(0,v.useState)(s.is_liked||!1),[U,W]=(0,v.useState)(s.total_likes||0),[Q,G]=(0,v.useState)(s.total_comment||0),[V,Y]=(0,v.useState)(s.total_reposts||0),[J,$]=(0,v.useState)(s.no_views||0),[q,K]=(0,v.useState)(s.final_impressions||0),[X,ee]=(0,v.useState)(s.total_shares||0),[et,es]=(0,v.useState)([]),[ea,ei]=(0,v.useState)(!1),[el,en]=(0,v.useState)(!1),[er,eo]=(0,v.useState)(!1),[ec,ed]=(0,v.useState)(""),[em,eh]=(0,v.useState)(!1),[ep,eu]=(0,v.useState)(!1),[ex,ej]=(0,v.useState)(""),[eg,ev]=(0,v.useState)(!1),[ef,eb]=(0,v.useState)(!1),ey=(0,v.useRef)(null),[eN,ew]=(0,v.useState)(!1),[e_,eA]=(0,v.useState)([]),[ek,eZ]=(0,v.useState)(!1),[eC,eS]=(0,v.useState)(!1),[ez,eE]=(0,v.useState)([]),[eD,eP]=(0,v.useState)(!1),[eR,eF]=(0,v.useState)(!1),[eI,eT]=(0,v.useState)(""),eM=async()=>{ew(!0),eZ(!0);try{let e=await fetch("https://app.hozpitality.com/base/api/liked-by-user/".concat(s.timeline_post_id,"/")),t=await e.json();eA(t.liked_by||[])}catch(e){console.error("Error fetching liked by users:",e),eA([])}eZ(!1)},eB=async()=>{eP(!0),eS(!0);try{let e=await fetch("https://app.hozpitality.com/base/api/mentioned-by-user/".concat(s.timeline_post_id,"/")),t=await e.json();eE(t.mentioned_by||[])}catch(e){console.error("Error fetching mentioned by users:",e),eE([])}eS(!1)},eH=async()=>{L(e=>!e),ev(!0),O||(eb(!0),setTimeout(()=>eb(!1),900)),setTimeout(()=>ev(!1),800);let e=await (0,Z.n)(Number(M),0,s.timeline_post_id);(null==e?void 0:e.success)?(W(e.total_likes),L(e.is_liked)):L(e=>!e)};(0,v.useEffect)(()=>{Y(s.total_reposts||0),ee(s.total_shares||0),$(s.no_views||0),K(s.final_impressions||0),ea&&!el&&eO()},[ea,s.timeline_post_id]);let eO=async()=>{eo(!0);try{let e=await (0,C.p)({user:M||0,content_type_str:"timelinepost",object_id:s.timeline_post_id,content:""}),t=Array.isArray(e.comment)?e.comment:[];console.log(t),es(t),G(t.length),en(!0)}catch(e){console.error("Error fetching comments:",e)}eo(!1)},eL=()=>ei(e=>!e),eU=async e=>{if(e.preventDefault(),!ec.trim())return;eo(!0);let t={user:M||0,content_type_str:"timelinepost",object_id:s.timeline_post_id,content:ec,rating_value:0},a=await (0,k.A)(t);
1if(a&&a.comment){let e={id:Date.now(),author:{id:Number(M),username:"You",avatar:(null==g?void 0:g.replace("https://app.hozpitality.com",""))||"",name:"You",slug:(0,A.L0)()||""},content:ec,created_at:new Date().toISOString(),replies:[],is_CC:!1,is_PREMIUM:!1,is_EP:!1,is_SP:!1,is_GP:!1,object_id:s.timeline_post_id,content_type:"timelinepost",is_liked_by_me:!1,like_count:0};es(t=>[e,...t]),G(e=>e+1),ed("")}eo(!1)},eW=async()=>{await (0,z.C)({user_id:Number(M),timeline_post_id:H.timeline_post_id,thoughts:ex}),eu(!1),ej(""),location.reload()};(0,v.useEffect)(()=>{console.log(U,Q,V,J,X)},[U,Q,V,J,X]);let eQ="".concat(window.location.origin,"/view/").concat(s.timeline_slug),eG=e=>{let t="",s=encodeURIComponent(eQ);switch(e){case"whatsapp":t="https://wa.me/?text=".concat(s);break;case"facebook":t="https://www.facebook.com/sharer/sharer.php?u=".concat(s);break;case"twitter":t="https://twitter.com/intent/tweet?url=".concat(s);break;case"linkedin":t="https://www.linkedin.com/shareArticle?mini=true&url=".concat(s);break;default:return}window.open(t,"_blank")},eV=()=>{navigator.clipboard.writeText(eQ).then(()=>{eT("Post link copied to clipboard!"),eF(!0)}).catch(()=>{eT("Failed to copy link. Please try again."),eF(!0)})};function eY(e){return e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":e.toString()}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between align-items-center px-3",children:[s.liked_by_following&&s.liked_by_following.length>0&&(0,a.jsxs)("div",{className:"d-flex align-items-center gap-2 m-2",children:[(0,a.jsxs)("div",{className:"position-relative d-flex",style:{marginRight:"6px"},children:[s.liked_by_following.map((e,t)=>(0,a.jsx)(j.default,{href:"/profile/".concat(e.slug),className:"overlap-avatar",style:{marginLeft:"".concat(-12*t,"px"),zIndex:100-t},children:(0,a.jsx)("img",{src:e.avatar,alt:e.name,className:"rounded-circle liked-avatar-img"})},e.id)),(0,a.jsx)("span",{className:"heart-icon",children:"❤️"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("b",{className:"small text-dark",children:null===(t=s.liked_by_following[0])||void 0===t?void 0:t.name}),(0,a.jsx)(h.riV,{}),(0,a.jsxs)("span",{className:"small text-body cursor-pointer",onClick:eM,children:["and ",U," others"]})]})]}),(!s.liked_by_following||0===s.liked_by_following.length)&&U>0&&(0,a.jsxs)("span",{className:"small text-body mb-2",onClick:eM,style:{cursor:"pointer"},children:[(0,a.jsx)(h.ytW,{className:"text-danger"})," ",U," ",1===U?"like":"likes"]}),s.mentioned_users_count>0&&(s.self_mentioned?(0,a.jsxs)("div",{className:"d-flex align-items-center gap-2 m-2",children:[(0,a.jsxs)("div",{className:"position-relative",children:[(0,a.jsx)(j.default,{href:"/profile/".concat(B),children:(0,a.jsx)("div",{className:"avatar-ring",children:(0,a.jsx)("img",{src:"".concat(g),alt:"You",className:"rounded-circle liked-avatar-img"})})}),(0,a.jsx)("span",{className:"heart-icon",children:(0,a.jsx)(h.nZl,{})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j.default,{href:"/profile/".concat(B),className:"text-decoration-none",children:(0,a.jsxs)("b",{className:"small text-dark",children:[" Tagged ","You"]})}),(0,a.jsx)(h.riV,{}),(0,a.jsxs)("span",{className:"small text-body cursor-pointer",onClick:eB,children:["and ",s.mentioned_users_count>0?"".concat(s.mentioned_users_count):""," others"]})]})]},M):(0,a.jsx)("div",{className:"d-flex align-items-center gap-2 m-2",children:(0,a.jsx)("div",{children:(0,a.jsxs)("span",{className:"small text-body cursor-pointer",onClick:eB,children:[s.mentioned_users_count," tagged"]})})})),(0,a.jsx)("div",{className:"ms-auto",children:(Q>0||V>0||J>0||X>0||q>0)&&(0,a.jsxs)("div",{className:"d-flex align-items-end gap-2",children:[Q>0&&(0,a.jsx)(i.Z,{placement:"bottom",overlay:(0,a.jsx)(l.Z,{id:"comments-tooltip",children:"Comments"}),children:(0,a.jsxs)("span",{className:"small text-body mb-2 cursor-pointer",onClick:eL,children:[eY(Q)," ",(0,a.jsx)(p.ZvA,{size:18})]})}),V>0&&(0,a.jsx)(i.Z,{placement:"bottom",overlay:(0,a.jsx)(l.Z,{id:"reposts-tooltip",children:"Reposts"}),children:(0,a.jsxs)("span",{className:"small text-body mb-2",children:[eY(V)," ",(0,a.jsx)(u.k$E,{size:18})]})}),J>0&&(0,a.jsx)(i.Z,{placement:"bottom",overlay:(0,a.jsx)(l.Z,{id:"views-tooltip",children:"Views"}),children:(0,a.jsxs)("span",{className:"small text-body mb-2",children:[eY(J)," ",(0,a.jsx)(P.wT3,{size:18})]})}),q>0&&(0,a.jsx)(i.Z,{placement:"bottom",overlay:(0,a.jsx)(l.Z,{id:"impressions-tooltip",children:"Impressions"}),children:(0,a.jsxs)("span",{className:"small text-body mb-2",children:[eY(q)," ",(0,a.jsx)(D.gSd,{size:18})]})}),X>0&&(0,a.jsx)(i.Z,{placement:"bottom",overlay:(0,a.jsx)(l.Z,{id:"shares-tooltip",children:"Shares"}),children:(0,a.jsxs)("span",{className:"small text-body mb-2",children:[eY(X)," ",(0,a.jsx)(u.cql,{size:18})]})})]})})]}),(0,a.jsx)(n.Z,{className:"border-light py-1 ".concat(F||""),children:(0,a.jsxs)("ul",{className:"nav nav-fill nav-stack py-0 small",children:[(0,a.jsx)("li",{className:"nav-item position-relative",children:(0,a.jsxs)(r.Z,{className:"hover w-100 position-relative",onClick:eH,variant:"white",style:{color:O?"#dc3545":void 0},children:[O?(0,a.jsx)(h.ytW,{size:22,className:"pe-1 ".concat(eg?"heart-burst-red":"")}
1):(0,a.jsx)(h.sF8,{size:22,className:"pe-1 ".concat(eg?"heart-burst-red":"")}),!T&&"Like",ef&&(0,a.jsx)("span",{className:"single-floating-heart"})]})}),(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsxs)(r.Z,{className:"hover w-100",onClick:eL,variant:"white",children:[(0,a.jsx)(p.ZvA,{size:22,className:"pe-1 ".concat((null==et?void 0:et.length)>0?"text-primary":"")}),!T&&"Comment"]})}),(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsxs)(o.Z,{drop:"up",align:"start",children:[(0,a.jsxs)(c.Z,{as:"a",className:"hover w-100 text-black btn content-none cursor-pointer",id:"cardShareAction6","aria-expanded":"false",children:[(0,a.jsx)(u.cql,{className:"pe-1",size:24}),!T&&"Share"]}),(0,a.jsxs)(d.Z,{className:"dropdown-menu-end py-1","aria-labelledby":"cardShareAction6",children:[(0,a.jsx)("li",{className:"hover",children:(0,a.jsxs)(m.Z,{href:"#",onClick:e=>{e.preventDefault(),eV()},children:[(0,a.jsx)(w.rs1,{size:20,className:"me-2"}),"Copy link to post"]})}),(0,a.jsx)("li",{className:"hover",children:(0,a.jsxs)(o.Z,{drop:"end",children:[(0,a.jsxs)(c.Z,{as:"button",className:"dropdown-item w-100 text-start",children:[(0,a.jsx)(_.jRj,{size:20,className:"me-2"}),"Share post via …"]}),(0,a.jsxs)(d.Z,{children:[(0,a.jsxs)(m.Z,{href:"#",onClick:e=>{e.preventDefault(),eG("whatsapp")},children:[(0,a.jsx)(p.xpo,{size:20,className:"me-2 text-success"}),"WhatsApp"]}),(0,a.jsxs)(m.Z,{href:"#",onClick:e=>{e.preventDefault(),eG("facebook")},children:[(0,a.jsx)(p.tBk,{size:20,className:"me-2 text-primary"}),"Facebook"]}),(0,a.jsxs)(m.Z,{href:"#",onClick:e=>{e.preventDefault(),eG("twitter")},children:[(0,a.jsx)(p.fWC,{size:20,className:"me-2 text-info"}),"Twitter"]}),(0,a.jsxs)(m.Z,{href:"#",onClick:e=>{e.preventDefault(),eG("linkedin")},children:[(0,a.jsx)(p.BUd,{size:20,className:"me-2 text-primary"}),"LinkedIn"]})]})]})})]})]})}),(0,a.jsx)("li",{className:"nav-item",ref:ey,style:{position:"relative"},children:(0,a.jsxs)(o.Z,{show:em,onToggle:()=>eh(!em),drop:"up",children:[(0,a.jsxs)(c.Z,{as:"a",className:"hover w-100 text-black btn content-none cursor-pointer",id:"repostDropdown",children:[(0,a.jsx)(u.k$E,{className:"pe-1",size:24}),!T&&"Repost"]}),(0,a.jsxs)(d.Z,{className:"py-1",align:"end",style:{boxShadow:"0 2px 16px rgba(0,0,0,0.15)",borderRadius:8,marginTop:8,padding:0,zIndex:9999},children:[(0,a.jsx)(o.Z.Item,{className:"p-2 hover",onClick:()=>{eh(!1),eu(!0)},style:{borderBottom:"1px solid #eee"},children:(0,a.jsxs)("div",{className:"d-flex align-items-start",children:[(0,a.jsx)(h.HlX,{size:18,className:"me-2 mt-1"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{className:"mb-0",children:"Repost with your thoughts"}),(0,a.jsx)("div",{className:"small text",children:"Create a new post attached"})]})]})}),(0,a.jsx)(o.Z.Item,{className:"p-2 hover",onClick:()=>{eh(!1),eW()},children:(0,a.jsxs)("div",{className:"d-flex align-items-start",children:[(0,a.jsx)(x.Z,{fontSize:"small",className:"me-2 mt-1"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{className:"mb-0",children:"Repost"}),(0,a.jsx)("div",{className:"small text",children:"Instantly post to others’ feeds"})]})]})})]})]})})]})}),ea?(0,a.jsx)(n.Z,{className:"border-light py-2 ".concat(F||""),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"d-flex",children:[(0,a.jsx)("div",{className:"avatar avatar-xs me-2",children:(0,a.jsx)("span",{role:"button",children:(0,a.jsx)("img",{className:"avatar-img rounded-circle",width:40,height:40,src:"".concat(g),alt:"avatar12"})})}),(0,a.jsxs)("form",{className:"nav nav-item w-100 position-relative",onSubmit:eU,children:[(0,a.jsx)("textarea",{"data-autoresize":!0,className:"form-control pe-5 bg-white border-light rounded-pill",rows:1,placeholder:"Add a comment...",value:ec,onChange:e=>ed(e.target.value),disabled:er}),(0,a.jsx)("button",{className:"nav-link bg-transparent px-3 position-absolute top-50 end-0 translate-middle-y border-0",type:"submit",disabled:er,children:(0,a.jsx)(h.bb7,{})})]})]}),Q>0&&(0,a.jsx)("ul",{className:"comment-wrap list-unstyled mt-2",children:et.map(e=>(0,a.jsx)(R,{comment:e,showReply:!1},e.id))})]})}):s.commented_by_following&&s.commented_by_following.length>0&&s.commented_by_following.slice(0,1).map(e=>(0,a.jsxs)("div",{className:"d-flex align-items-center gap-2 m-2",children:[(0,a.jsxs)("div",{className:"position-relative",children:[(0,a.jsx)(j.default,{href:"/profile/".concat(e.slug),children:(0,a.jsx)("div",{className:"avatar-ring",children:(0,a.jsx)("img",{src:e.avatar,alt:e.name,className:"rounded-circle liked-avatar-img"})})}),(0,a.jsx)("span",{className:"heart-icon",children:"\uD83D\uDCAC"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(j.default,{href:"/profile/".concat(e.slug),className:"text-decoration-none",children:(0,a.jsx)("b",{className:"small text-dark",children:e.name})}),(0,a.jsx)(h.riV,{}),(0,a.jsxs)("span",{className:"small text-body",children:["commented: ",e.comment_text]})]})]},e.id)),(0,a.jsxs)(E.Z,{show:eN,onHide:()=>ew(!1),centered:!0,children:[(0,a.jsx)(E.Z.Header,{closeButton:!0,className:"border-light",children:(0,a.jsx)(E.Z.Title,{children:"Liked by"})}),(0,a.jsx)(E.Z.Body,{children:ek?(0,a.jsx)("div",{children:"Loading..."}):0===e_.length?(0,a.jsx)("div",{children:"No likes yet."}):(0,a.jsx)("ul",{className:"list-unstyled",children:e_.map(e=>(0,a.jsxs)("li",{className:"d-flex align-items-center mb-2",children:[(0,a.jsx)("img",{src:e.avatar,alt:"avatar",className:" avatar rounded-circle me-2",width:36,height:36}),(0,a.jsx)("span",{children:e.name})]},e.id))})})]}),(0,a.jsxs)(E.Z,{show:eD,onHide:()=>eP(!1),centered:!0,children:[(0,a.jsx)(E.Z.Header,{closeButton:!0,className:"border-light",children:(0,a.jsx)(E.Z.Title,{children:"Tagged Users"})}),(0,a.jsx)(E.Z.Body,{children:eC?(0,a.jsx)("div",{children:"Loading..."}):0===ez.length?(0,a.jsx)("div",{children:"No mentions yet."}):(0,a.jsx)("ul",{className:"list-unstyled",children:ez.map(e=>(0,a.jsxs)("li",{className:"d-flex align-items-center mb-2",children:[(0,a.jsx)("img",{src:e.avatar,alt:"avatar",className:" avatar rounded-circle me-2",width:36,height:36}),(0,a.jsx)("span",{children:e.name})]},e.id))})})]}),(0,a.jsx)(y.Z,{open:eR,autoHideDuration:5e3,onClose:()=>eF(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,a.jsx)(N.Z,{onClose:()=>eF(!1),severity:"success",sx:{backgroundColor:"#e7ffdaff",color:"#000000ff",fontWeight:500,boxShadow:"0 2px 6px rgba(0,0,0,0.2)"},children:eI}
1)}),(0,a.jsx)(S.Z,{show:ep,onHide:()=>eu(!1),post:s,value:ex,onChange:ej,onPost:eW})]})}},30970:function(e,t,s){var a=s(57437),i=s(33145),l=s(43802),n=s(11140),r=s(65913),o=s(28743),c=s(22744),d=s(2265),m=s(3390);t.Z=e=>{var t,s,h,p;let{post:u,displayPost:x,userId:j,onDelete:g}=e,v=x||u,[f,b]=(0,d.useState)(u.is_featured),y=()=>{b(e=>!e)};(0,d.useEffect)(()=>{console.log("isFeatured state updated:",f)},[f]),"autopost"===u.post_type&&(u.post_type="post"),"jobs"===u.post_type&&(u.post_type="job");let N=u.commented_by_following&&u.commented_by_following.length>0?u.commented_by_following[0]:null,w=u.liked_by_following&&u.liked_by_following.length>0?u.liked_by_following[0]:null;return(0,a.jsxs)(a.Fragment,{children:[(N||w)&&(0,a.jsx)(l.Z,{className:"border-light p-1",children:(0,a.jsx)("div",{className:"d-flex align-items-center justify-content-between",children:(0,a.jsxs)("div",{className:"d-flex align-items-center gap-3",children:[N&&(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("div",{className:"d-flex align-items-center justify-content-center px-2 py-2",children:(0,a.jsx)("span",{role:"button",className:"d-flex align-items-center justify-content-center",onClick:()=>location.href="/profile/".concat(N.slug),children:(0,a.jsx)(i.default,{unoptimized:!0,className:"avatar-img rounded-circle small-img",src:"".concat(N.avatar),alt:"avatar",width:48,height:48})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"nav nav-divider",children:[(0,a.jsx)("h6",{className:"nav-item card-title mb-0",style:{cursor:"pointer"},onClick:()=>location.href="/profile/".concat(N.slug),children:(0,a.jsxs)("span",{role:"button",children:[N.name,N.verified&&(0,a.jsx)(c.vr,{className:"text-primary medium ms-1"}),(0,a.jsx)(m.Z,{is_CC:N.is_CC,is_PAYG:N.is_PAYG,is_PREMIUM:N.is_PREMIUM,is_EP:N.is_EP,is_SP:N.is_SP,is_GP:N.is_GP})]})}),(0,a.jsx)("span",{className:"nav-item",style:{fontSize:"13px"},children:"Commented on this"})]})})]}),N&&w&&(0,a.jsx)("div",{className:"d-flex align-items-center",children:(0,a.jsx)(n.riV,{size:20})}),w&&(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("div",{style:{position:"relative"},children:(0,a.jsx)("span",{role:"button",onClick:()=>location.href="/profile/".concat(w.slug),className:"d-flex align-items-center",children:(0,a.jsx)("img",{src:"".concat(w.avatar),alt:w.name,className:"rounded-circle liked-avatar-img",style:{width:28,height:28,objectFit:"cover"}})})}),(0,a.jsx)("div",{className:"ms-2",children:(0,a.jsxs)("div",{className:"nav nav-divider",children:[(0,a.jsx)("h6",{className:"nav-item card-title mb-0",style:{cursor:"pointer"},onClick:()=>location.href="/profile/".concat(w.slug),children:(0,a.jsx)("span",{role:"button",children:w.name})}),(0,a.jsx)("span",{className:"nav-item",style:{fontSize:"13px"},children:"Liked this"})]})})]})]})})}),"repost"===u.post_type&&(0,a.jsx)(l.Z,{className:"border-light p-1",children:(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("div",{className:"avatar d-flex align-items-center justify-content-center",children:(0,a.jsx)("span",{role:"button",className:"d-flex align-items-center justify-content-center",children:(0,a.jsx)(i.default,{unoptimized:!0,className:"avatar-img rounded-circle small-img",src:"".concat(u.repost_user.avatar),alt:"logo",width:80,height:80})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"nav nav-divider",children:[(0,a.jsx)("h6",{className:"nav-item card-title mb-0",onClick:()=>location.href="/profile/".concat(u.repost_user.slug),children:(0,a.jsx)("span",{role:"button",children:null===(t=u.repost_user)||void 0===t?void 0:t.name})}),(0,a.jsx)("span",{className:"nav-item",style:{fontSize:"13px"},children:"Reposted this"})]})})]}),(0,a.jsx)(o.Z,{post:u,id:null==u?void 0:null===(s=u.timeline_post_id)||void 0===s?void 0:s.toString(),onDelete:g,isSameUser:(null===(h=u.repost_user)||void 0===h?void 0:h.id)===j,onFeatured:y,isFeatured:f})]})}),"repost"===u.post_type&&u.thoughts&&(0,a.jsx)("div",{className:"p-3",children:(0,a.jsx)("h5",{className:"mb-0",children:u.thoughts})}),(0,a.jsx)(l.Z,{className:"border-light p-2",children:(0,a.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)("div",{className:"avatar me-2",children:(0,a.jsx)("span",{role:"button",children:(0,a.jsx)(i.default,{unoptimized:!0,className:"avatar-img rounded-circle",src:"".concat(v.avatar),alt:"logo",width:200,height:200})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{className:"card-title mb-0 d-flex align-items-center",onClick:()=>location.href="/profile/".concat(v.slug),children:(0,a.jsxs)("span",{role:"button",children:[null==v?void 0:v.name,v.verified&&(0,a.jsx)(c.vr,{className:"text-primary medium ms-1"}),(0,a.jsx)(m.Z,{is_CC:v.is_CC,is_PAYG:v.is_PAYG,is_PREMIUM:v.is_PREMIUM,is_EP:v.is_EP,is_SP:v.is_SP,is_GP:v.is_GP})]})}),(0,a.jsxs)("div",{className:"nav nav-divider",children:[(0,a.jsxs)("p",{className:"nav-item mb-0 small",children:[(0,a.jsx)(n.Pat,{className:"me-1"}),v.city&&v.city.replace(v.country,"").trim()&&"".concat(v.city.replace(v.country,"").replace(/^,|,$/g,"").trim())]}),(0,a.jsxs)("span",{className:"nav-item small",children:["added a ",v.post_type]}),(0,a.jsx)("span",{className:"nav-item small",children:(0,r.VG)(new Date(v.created_at))}),f&&(0,a.jsxs)("span",{className:"badge bg-gold text-black me-1 d-flex align-items-center",children:["Featured ",(0,a.jsx)(c.QZE,{className:"ms-1"})]})]})]})]}),"repost"!==u.post_type&&(0,a.jsx)(o.Z,{post:u,id:null==u?void 0:null===(p=u.timeline_post_id)||void 0===p?void 0:p.toString(),onDelete:g,isSameUser:u.user_id===j,onFeatured:y,isFeatured:f})]})})]})}},72845:function(e,t,s){var a=s(57437),i=s(9485),l=s(19555),n=s(2979),r=s(32491),o=s(11140),c=s(31691),d=s(59873),m=s(6906),h=s(14743),p=s(89710),u=s(30970),x=s(27648),j=s(63253),g=s(33145);t.Z=e=>{var t;let{post:s,footerDisplay:v,onDelete:f}=e,b="repost"===s.post_type&&s.original?s.original:s,y=(0,m.n5)(),N=(0,m.Dm)(),w=(0,c.Z)(),_=(0,d.Z)(w.breakpoints.down("sm"));return(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(u.Z,{post:s,displayPost:b,userId:y||
10,onDelete:f}),(0,a.jsx)(a.Fragment,{children:_?(0,a.jsxs)(l.Z,{className:"p-3 py-4",children:[(0,a.jsxs)("div",{className:"d-flex align-items-center gap-3",children:[(0,a.jsx)(x.default,{href:"/jobs/details/".concat(s.job_slug),children:s.avatar&&(0,a.jsx)(g.default,{unoptimized:!0,className:"avatar-img avatar-md shadow-custom rounded-3 border border-bottom-0 border-1 border-light p-1",src:s.avatar,alt:"Company Logo",width:100,height:100,style:{width:"80px",height:"auto",objectFit:"contain"}})}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"width-300",children:[(0,a.jsx)(x.default,{className:"m-0 h5 hover-text-undlerline",href:"/jobs/details/".concat(s.job_slug),children:s.job_title}),(0,a.jsxs)("p",{className:"small mb-2",children:[(0,a.jsx)(o.Pat,{className:"me-1"})," Dubai United Arab Emirates"]}),s.is_featured&&(0,a.jsx)("span",{className:"badge bg-primary rounded-1 px-2",children:"Featured Job"})]})})]}),(0,a.jsxs)("div",{className:"flex-grow-1 mt-3",children:[(0,a.jsxs)("div",{className:"d-flex gap-1 mb-1 flex-wrap",children:[s.job_type&&(0,a.jsx)(n.Z,{placement:"top",overlay:(0,a.jsx)(r.Z,{id:"tooltip-jobtype",children:"Job Type"}),children:(0,a.jsxs)("span",{className:"badge bg-light text-secondary bold rounded-pill px-3 py-2",children:[(0,a.jsx)(o.TlO,{className:"me-1"})," ",s.job_type]})}),s.job_industry&&(0,a.jsx)(n.Z,{placement:"top",overlay:(0,a.jsx)(r.Z,{id:"tooltip-industry",children:"Industry"}),children:(0,a.jsx)("span",{className:"badge bg-light text-secondary bold rounded-pill px-3 py-2",children:s.job_industry})}),s.job_department&&(0,a.jsx)(n.Z,{placement:"top",overlay:(0,a.jsx)(r.Z,{id:"tooltip-department",children:"Department"}),children:(0,a.jsx)("span",{className:"badge bg-light text-secondary bold rounded-pill px-3 py-2",children:s.job_department})})]}),(0,a.jsxs)("ul",{className:"nav nav-divider text-sm-start mt-sm-0",children:[(0,a.jsxs)("li",{className:"nav-item small mb-2",children:["Company: ",s.name]}),(0,a.jsx)("li",{className:"nav-item small mb-2",children:(0,h.WU)(new Date(s.created_at),"MMMM dd, yyyy")}),(0,a.jsxs)("li",{className:"nav-item small mb-2",children:[s.no_views," Views"]})]}),(0,a.jsx)(x.default,{href:"/jobs/details/".concat(s.job_slug),children:(0,a.jsxs)("button",{className:"list-inline-item small mr-3 hover w-50 text-primary btn btn-sm btn-primary-soft rounded-pill fw-semibold",children:[(0,a.jsx)(j.I8l,{size:18,className:"me-1"})," Apply Now"]})})]})]}):(0,a.jsxs)(l.Z,{className:"row flex-nowrap align-items-center gap-3 p-3 py-4",children:[(0,a.jsx)("div",{className:"col-lg-3 avatar avatar-xl",children:(0,a.jsx)(x.default,{href:"/jobs/details/".concat(s.job_slug),children:s.avatar&&(0,a.jsx)(g.default,{unoptimized:!0,className:"avatar-img avatar-xl shadow-custom rounded-3 border border-bottom-0 border-1 border-light p-1",src:s.avatar,alt:"Company Logo",width:100,height:100})})}),(0,a.jsxs)("div",{className:"col-lg-9",children:[(0,a.jsx)("div",{className:"d-sm-flex align-items-start text-sm-start",children:(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"width-300",children:[(0,a.jsx)(x.default,{href:"/jobs/details/".concat(s.job_slug),children:(0,a.jsx)("h5",{className:"mb-1 h5 hover-text-undlerline bold truncate-2",children:s.job_title})}),(0,a.jsx)("ul",{className:"nav nav-divider align-items-center text-sm-start mt-sm-0",children:(0,a.jsxs)("li",{className:"nav-item small mb-2",children:[(0,a.jsx)(o.Pat,{className:"me-1"}),s.post_city&&s.post_city.replace(s.post_country,"").trim()&&"".concat(s.post_city.replace(s.post_country,"").replace(/^,|,$/g,"").trim())]})})]})})}),(0,a.jsxs)("div",{className:"d-flex gap-1 mb-1 flex-wrap",children:[s.is_featured&&(0,a.jsx)("span",{className:"badge bg-primary bold rounded-pill px-3 py-2",children:"Featured Job"}),s.job_type&&(0,a.jsx)(n.Z,{placement:"top",overlay:(0,a.jsx)(r.Z,{id:"tooltip-top",children:"Job Type"}),children:(0,a.jsxs)("span",{className:"badge bg-light text-secondary bold rounded-pill px-3 py-2",children:[(0,a.jsx)(o.TlO,{className:"me-1"})," ",s.job_type]})}),s.job_industry&&(0,a.jsx)(n.Z,{placement:"top",overlay:(0,a.jsx)(r.Z,{id:"tooltip-top",children:"Industry"}),children:(0,a.jsx)("span",{className:"badge bg-light text-secondary bold rounded-pill px-3 py-2",children:s.job_industry})}),s.job_department&&(0,a.jsx)(n.Z,{placement:"top",overlay:(0,a.jsx)(r.Z,{id:"tooltip-top",children:"Department"}),children:(0,a.jsx)("span",{className:"badge bg-light text-secondary bold rounded-pill px-3 py-2",children:s.job_department})})]}),(0,a.jsxs)("ul",{className:"nav nav-divider text-sm-start mt-sm-0",children:[(0,a.jsxs)("li",{className:"nav-item small mb-2",children:["Company: ",s.name]}),(0,a.jsx)("li",{className:"nav-item small mb-2",children:(0,h.WU)(new Date(s.created_at),"MMMM dd, yyyy")}),(0,a.jsxs)("li",{className:"nav-item small mb-2",children:[(t=s.no_views)>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t.toString()," Views"]})]}),(0,a.jsx)(x.default,{href:"/jobs/details/".concat(s.job_slug),children:(0,a.jsxs)("button",{className:"list-inline-item small mr-3 hover text-primary btn btn-sm btn-primary-soft px-3 py-1  rounded-pill fw-semibold",children:[(0,a.jsx)(j.I8l,{size:18,className:"me-1"})," Apply Now"]})})]})]})}),(0,a.jsx)(p.Z,{post:s,profile_photo:N||"",footerDisplay:v})]})}},19824:function(e,t,s){s.d(t,{Z:function(){return v}});var a=s(57437),i=s(2265),l=s(9485),n=s(19555),r=s(6906),o=s(21988),c=s(61751),d=s(24076),m=s(45834);s(59397);let h={desktop:{breakpoint:{max:3e3,min:1024},items:1,slidesToSlide:1},tablet:{breakpoint:{max:1024,min:768},items:1,slidesToSlide:1},mobile:{breakpoint:{max:768,min:0},items:1,slidesToSlide:1}},p=e=>{let{src:t,alt:s,width:l="100%",height:n="100%",borderRadius:r=8,onClick:o,fit:c="contain"}=e,[d,m]=i.useState(!1);return(0,a.jsxs)("div",{style:{position:"relative",width:l,height:n,borderRadius:r,overflow:"hidden",cursor:o?"pointer":"default",lineHeight:0,backgroundColor:"#111"},onClick:o,children:[(0,a.jsx)("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,backgroundImage:'url("'.concat(t,'")'),backgroundSize:"cover",backgroundPosition:"center",filter:"blur(24px)",transform:"scale(1.12)",opacity:.9,willChange:"transform, filter, opacity"}}),(0,a.jsx)("img",{src:t,alt:s,decoding:"async",loading:"lazy",fetchPriority:"low",onLoad:()=>m(!0),style:{position:"relative",zIndex:1,display:"block",width:"100%",height:"100%",objectFit:c,opacity:d?1:0,transition:"opacity 120ms ease-out",willChange:"opacity"}})]})};var u=e=>{var t;let{imageUrls:s,webpUrls:l}=e,[n,r]=(0,i.useState)([]),[u,x]=(0,i.useState)(null),[j,g]=(0,i.useState)(!0);(0,i.useEffect)(()=>{(async()=>{g(!0),r(await Promise.all(s.map((e,t)=>{let s=l[t]||e;return new Promise(t=>{let a=new Image;a.onload=()=>t({url:s,aspectRatio:a.width/a.height}),a.onerror=()=>{let s=new Image;s.onload=()=>t({url:e,aspectRatio:s.width/s.height}),s.src=e},a.src=s})}))),g(!1)})()},[s,l]);let v=n.slice(0,4),f=n.length>
14?n.length-4:0,b=(null===(t=v[0])||void 0===t?void 0:t.aspectRatio)<1;return(0,a.jsxs)("div",{style:{lineHeight:0},children:[j?(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:0},children:Array.from({length:4}).map((e,t)=>(0,a.jsx)(o.Z,{variant:"rectangular",style:{margin:0,borderRadius:8,height:180}},t))}):(0,a.jsxs)(a.Fragment,{children:[b&&1===n.length&&(0,a.jsx)(p,{src:v[0].url,alt:"uploaded-0",width:"100%",height:400,borderRadius:8,onClick:()=>x(0),fit:"contain"}),b&&n.length>1&&(0,a.jsxs)("div",{style:{display:"flex",gap:4,height:400,overflow:"hidden"},children:[(0,a.jsx)("div",{style:{flex:2},children:(0,a.jsx)(p,{src:v[0].url,alt:"uploaded-0",width:"100%",height:"400px",borderRadius:8,onClick:()=>x(0),fit:"contain"})}),(0,a.jsx)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4},children:v.slice(1).map((e,t)=>{let s=t+1;return(0,a.jsxs)("div",{style:{position:"relative",flex:1},children:[(0,a.jsx)(p,{src:e.url,alt:"uploaded-".concat(s),width:"100%",height:"100%",borderRadius:8,onClick:()=>x(s),fit:"contain"}),f>0&&t===v.length-2&&(0,a.jsxs)("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.5)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2em",fontWeight:700,borderRadius:8},children:["+",f]})]},s)})})]}),!b&&(1===n.length?(0,a.jsx)(p,{src:v[0].url,alt:"uploaded-0",width:"100%",height:400,borderRadius:8,onClick:()=>x(0),fit:"contain"}):(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,height:400,overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:"100%",height:200},children:v[0]?(0,a.jsx)(p,{src:v[0].url,alt:"uploaded-0",width:"100%",height:"100%",borderRadius:8,onClick:()=>x(0),fit:"contain"}):(0,a.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#111",borderRadius:8}})}),(0,a.jsx)("div",{style:{display:"flex",gap:4,height:200},children:v.slice(1).map((e,t)=>{let s=t+1;return(0,a.jsxs)("div",{style:{position:"relative",flex:1},children:[(0,a.jsx)(p,{src:e.url,alt:"uploaded-".concat(s),width:"100%",height:"100%",borderRadius:8,onClick:()=>x(s),fit:"contain"}),f>0&&t===v.length-2&&(0,a.jsxs)("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0.5)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2em",fontWeight:700,borderRadius:8},children:["+",f]})]},s)})})]}))]}),(0,a.jsxs)(c.Z,{show:null!==u,onHide:()=>x(null),centered:!0,size:"lg",dialogClassName:"image-preview-modal",children:[(0,a.jsx)(c.Z.Header,{className:"border-light",closeButton:!0,children:(0,a.jsxs)(c.Z.Title,{className:"h5",children:["Photo Preview ",null!==u?u+1:0," of ",n.length]})}),(0,a.jsx)(c.Z.Body,{className:"p-2",style:{padding:0},children:(0,a.jsx)(m.default,{responsive:h,keyBoardControl:!0,showDots:!0,arrows:!0,swipeable:!0,draggable:!0,infinite:!1,autoPlay:!1,shouldResetAutoplay:!1,renderDotsOutside:!0,customTransition:"transform 0.5s ease",transitionDuration:500,beforeChange:e=>x(e),partialVisible:!1,rewind:!1,containerClass:"carousel-container",itemClass:"px-0",children:n.map((e,t)=>(0,a.jsx)("div",{style:{height:"60vh",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0},children:(0,a.jsx)(p,{src:e.url,alt:"Preview ".concat(t+1),width:"100%",height:"60vh",borderRadius:10,fit:"contain"})},t))})}),(0,a.jsx)(c.Z.Footer,{className:"border-light p-2",children:(0,a.jsx)(d.Z,{variant:"light",onClick:()=>x(null),children:"Close"})})]})]})},x=s(30970),j=s(89710);function g(e){let{html:t,className:s="fs-6 mb-3 text-black rich-text-content",readMoreLabel:l="Read more",showLessLabel:n="Show less"}=e,[r,o]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),m=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=m.current;if(!e)return;let t=requestAnimationFrame(()=>{e&&d(e.scrollHeight>e.clientHeight+1)});return()=>cancelAnimationFrame(t)},[t]),(0,a.jsxs)("div",{className:s,children:[(0,a.jsx)("div",{className:"rich-text-content",ref:m,style:{whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"hidden",maxHeight:r?"100%":"104px",transition:"max-height 0.25s ease"},dangerouslySetInnerHTML:{__html:t||""}}),!r&&c&&(0,a.jsx)("button",{type:"button",className:"btn btn-link p-0 mt-1",onClick:()=>o(!0),children:l}),r&&(0,a.jsx)("button",{type:"button",className:"btn btn-link p-0 mt-1",onClick:()=>o(!1),children:n})]})}var v=(0,i.memo)(e=>{var t,s;let{post:i,footerDisplay:o,onDelete:c}=e,d="repost"===i.post_type&&i.original?i.original:i,m=(0,r.Dm)(),h=(0,r.n5)(),p=(null==d?void 0:d.content)||"";return(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(x.Z,{post:i,displayPost:d,userId:h||0,onDelete:c}),(0,a.jsxs)(n.Z,{className:"p-2",children:[p?(0,a.jsx)(g,{html:p,className:"fs-6 mb-3 text-black truncate-3"}):null,(0,a.jsx)(u,{imageUrls:(null!==(t=d.files)&&void 0!==t?t:[]).map(e=>"".concat(e)),webpUrls:(null!==(s=d.compressed_file)&&void 0!==s?s:[]).map(e=>"".concat(e))})]}),(0,a.jsx)(j.Z,{post:i,profile_photo:m||"",footerDisplay:o})]})},(e,t)=>{var s,a;return(null===(s=e.post)||void 0===s?void 0:s.timeline_post_id)===(null===(a=t.post)||void 0===a?void 0:a.timeline_post_id)&&e.footerDisplay===t.footerDisplay})},70157:function(e,t,s){var a=s(57437),i=s(33145),l=s(9485),n=s(19555),r=s(61751),o=s(24076),c=s(2265),d=s(6906),m=s(30970),h=s(41327),p=s(46387),u=s(53410),x=s(10926),j=s(59253),g=s(89710),v=s(22744);t.Z=e=>{let{post:t,footerDisplay:s,onDelete:f}=e,b="repost"===t.post_type&&t.original?t.original:t,y=(0,d.n5)(),N=(0,d.Dm)(),[w,_]=(0,c.useState)(null),[A,k]=(0,c.useState)(null),[Z,C]=(0,c.useState)(!1),[S,z]=(0,c.useState)(!1),[E,D]=(0,c.useState)([]),[P,R]=(0,c.useState)(""),F=async()=>{let e=await fetch("https://app.hozpitality.com/base/api/get-poll-details/".concat(t.id,"/"));_(await e.json())},I=async e=>{null===A&&w&&(await fetch("https://app.hozpitality.com/base/api/vote-poll/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({poll_id:w.id,option_id:e,user_id:y})}),k(e),await F())};if(!w)return(0,a.jsx)("div",{className:"p-4",children:"Loading..."});let T=w.options.reduce((e,t)=>
1e+t.vote_count,0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.Z,{children:[(0,a.jsx)(m.Z,{post:t,displayPost:b,userId:y||0,onDelete:f}),(0,a.jsxs)(n.Z,{className:"p-3",children:[t.background_color?(0,a.jsx)("div",{className:"rounded-3 p-4 text-white text-center",style:{backgroundColor:t.background_color},children:(0,a.jsx)("h5",{className:"fw-semibold mb-0",children:t.content})}):(0,a.jsx)("p",{className:"mb-2 text-dark",children:t.content}),(0,a.jsxs)(h.Z,{sx:{width:"100%"},children:[(0,a.jsx)(p.Z,{variant:"h6",fontWeight:"bold",mb:2,children:w.question}),w.options.map(e=>{let t=T>0?e.vote_count/T*100:0,s=A===e.id;return(0,a.jsx)(u.Z,{variant:"outlined",onClick:()=>{s||I(e.id)},sx:{p:2,mb:1.5,borderRadius:2,borderColor:s?"primary.main":"divider",backgroundColor:s?"primary.lighter":"background.paper",cursor:"pointer","&:hover":{borderColor:"primary.main"}},children:(0,a.jsxs)(x.Z,{sx:{display:"flex",alignItems:"flex-start",gap:1},children:[(0,a.jsx)(x.Z,{sx:{width:24,height:24,borderRadius:"50%",border:"2px solid ".concat(s?"#1976d2":"#ccc"),backgroundColor:s?"primary.main":"transparent",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},children:s&&"✓"}),(0,a.jsxs)(x.Z,{sx:{display:"flex",justifyContent:"space-between",width:"100%"},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(p.Z,{variant:"body1",className:"fs-6",fontWeight:s?"bold":"medium",color:s?"primary.main":"text.primary",children:e.text}),(0,a.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center",mt:1},children:[(0,a.jsx)(j.Z,{variant:"determinate",value:t,sx:{flexGrow:1,height:12,borderRadius:4,mr:1.5,minWidth:"120px"}}),(0,a.jsx)(p.Z,{variant:"body2",children:"".concat(Math.round(t),"%")})]})]}),(0,a.jsxs)(p.Z,{variant:"caption",className:"float-end",color:"text.secondary",children:[e.vote_count," ",1===e.vote_count?"vote":"votes"," ",(0,a.jsx)(v.QZE,{})]})]})]})},e.id)}),(0,a.jsx)(x.Z,{textAlign:"center",mt:1.5,children:(0,a.jsx)(p.Z,{className:"fs-6 text-primary",variant:"body2",color:"primary",onClick:()=>C(!0),sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},children:"View votes"})})]})]}),(0,a.jsx)(g.Z,{post:t,profile_photo:N||"",footerDisplay:s})]}),(0,a.jsxs)(r.Z,{show:Z,onHide:()=>C(!1),centered:!0,children:[(0,a.jsx)(r.Z.Header,{closeButton:!0,className:"border-light",children:(0,a.jsx)(r.Z.Title,{children:"Votes"})}),(0,a.jsx)(r.Z.Body,{className:"card-scroll",children:w.options.map(e=>{var t;return(0,a.jsxs)("div",{className:"",children:[(0,a.jsxs)("h6",{className:"text-black mb-2",children:[e.text,":"]}),(0,a.jsxs)("div",{className:"d-flex align-items-baseline justify-content-between",children:[(0,a.jsx)("ul",{className:"avatar-group mt-1 list-unstyled align-items-sm-center",children:(null===(t=e.users)||void 0===t?void 0:t.length)?(0,a.jsxs)(a.Fragment,{children:[e.users.map((e,t)=>(0,a.jsx)("li",{className:"avatar avatar",children:(0,a.jsx)(i.default,{unoptimized:!0,className:"avatar-img rounded-circle",src:e.avatar,alt:e.name,width:24,height:24})},t)),e.users.length>5&&(0,a.jsx)("li",{className:"avatar avatar",style:{cursor:"pointer"},onClick:()=>{D(e.users||[]),R(e.text),z(!0)},children:(0,a.jsx)("div",{className:"avatar-img rounded-circle bg-primary position-relative",children:(0,a.jsx)("span",{className:"text-center smaller text-white position-absolute top-50 start-50 translate-middle",children:"View All"})})})]}):(0,a.jsx)("span",{className:"list-unstyled",children:"No votes yet"})}),(0,a.jsxs)("div",{className:"btn btn-warning bg-gold text-black btn-sm rounded-pill h-100 small",style:{cursor:"pointer"},onClick:()=>{D(e.users||[]),R(e.text),z(!0)},children:[e.vote_count," ",1===e.vote_count?"vote":"votes"," ",(0,a.jsx)(v.QZE,{})]})]})]},e.id)})}),(0,a.jsx)(r.Z.Footer,{className:"border-light",children:(0,a.jsx)(o.Z,{variant:"secondary",onClick:()=>C(!1),children:"Close"})})]}),(0,a.jsxs)(r.Z,{show:S,onHide:()=>z(!1),centered:!0,children:[(0,a.jsx)(r.Z.Header,{closeButton:!0,className:"border-light",children:(0,a.jsxs)(r.Z.Title,{children:["Voters for: ",P]})}),(0,a.jsx)(r.Z.Body,{className:"card-scroll",children:E.length>0?E.map(e=>(0,a.jsxs)("div",{className:"d-flex align-items-center mb-3",children:[(0,a.jsx)(i.default,{unoptimized:!0,src:e.avatar,alt:e.name,width:40,height:40,className:"rounded-circle me-3"}),(0,a.jsx)("span",{className:"fw-semibold text-black",children:e.name})]},e.id)):(0,a.jsx)("p",{className:"text-center mb-0",children:"No voters found."})}),(0,a.jsx)(r.Z.Footer,{className:"border-light",children:(0,a.jsx)(o.Z,{variant:"secondary",onClick:()=>z(!1),children:"Close"})})]})]})}},46777:function(e,t,s){var a=s(57437),i=s(9485),l=s(19555),n=s(27648),r=s(2265),o=s(18848),c=s(6906),d=s(30970),m=s(89710),h=s(14743),p=s(11140);function u(e){let{text:t,className:s="my-2 fs-6 mb-3 text-black",readMoreLabel:i="Read more",showLessLabel:l="Show less"}=e,[n,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),m=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=m.current;e&&requestAnimationFrame(()=>{d(e.scrollHeight>e.clientHeight+1)})},[t]),(0,a.jsxs)("div",{className:s,style:{position:"relative"},children:[(0,a.jsx)("div",{ref:m,style:{whiteSpace:"pre-line",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:n?"unset":3,WebkitBoxOrient:"vertical",transition:"max-height 0.25s ease",maxHeight:n?"1000px":"4.8em"},children:t}),!n&&c&&(0,a.jsx)("button",{type:"button",className:"btn btn-link p-0 align-baseline",onClick:()=>o(!0),children:i}),n&&(0,a.jsx)("button",{type:"button",className:"btn btn-link p-0 align-baseline",onClick:()=>o(!1),children:l})]})}function x(e){let{html:t,maxLines:s=3,readMoreLabel:i="Read more",showLessLabel:l="Show less"}=e,[n,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),m=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=m.current;e&&requestAnimationFrame(()=>{d(e.scrollHeight>e.clientHeight+1)})},[t]),(0,a.jsxs)("div",{className:"mb-3",style:{position:"relative"},children:[(0,a.jsx)("div",{ref:m,style:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:n?"unset":s,WebkitBoxOrient:"vertical",transition:"max-height 0.25s ease",maxHeight:n?"1000px":"".concat(1.6*s,"em"),wordBreak:"break-word"},dangerouslySetInnerHTML:{__html:t}}),!n&&c&&(0,a.jsx)("button",{type:"button",className:"btn btn-link p-0 align-baseline",onClick:()=>o(!0),children:i}),n&&(0,a.jsx)("button",{type:"button",className:"btn btn-link p-0 align-baseline",onClick:()=>o(!1),children:l})]})}t.Z=e=>{let{post:t,footerDisplay:s,onDelete:j}=e,g="repost"===t.post_type&&t.original?t.original:t,v=(0,c.n5)(),f=(0,c.Dm)(),[b,y]=(0,r.useState)(!1);(0,r.useEffect)(()=>{window.location.href.match(/\/events\/details\//)&&y(!0)},[t]);let N=e=>e?-1!==e.indexOf("&lt;")||-1!==e.indexOf("&gt;")?new DOMParser().parseFromString(e,"text/html").documentElement.textContent||"":e:"",w=e=>o.Z.sanitize(e,{ALLOWED_TAGS:["b","i","em","strong","a","p","br","ul","ol","li","span","div","h1","h2","h3","h4","h5","blockquote","img"],ALLOWED_ATTR:["href","title","target","rel","class","style","src","alt"]}),_=g.background_color||null,A=g.text_color||g.textColor||null,k="html"in g?N(g.html):"content"in g?N(g.content):"",Z=/<\/?[a-z][\s\S]*>/i.test(k);return(0,a.jsxs)(i.Z,{children:[(0,a.jsx)(d.Z,{post:t,displayPost:g,userId:v||0,onDelete:j}),(0,a.jsxs)(l.Z,{className:"p-2",children:[g.hastags&&g.hastags.length>0&&(0,a.jsx)("div",{className:"mt-2",children:g.hastags.map((e,t)=>(0,a.jsxs)(n.default,{href:"/hashtag/".concat(e),className:"me-1 hashtag-link",children:["#",e]},t))}),_?(0,a.jsx)("div",{className:"card border-0 mb-2",style:{backgroundColor:_,color:A||"#fff",borderRadius:12,padding:"24px 20px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:Z?(0,a.jsx)(x,{html:w(k)}):(0,a.jsx)(u,{text:g.content||""})}):Z?(0,a.jsx)(x,{html:w(k)}):g.content&&(0,a.jsx)(u,{text:g.content}),!b&&g.original&&(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"align-items-center",children:[(0,a.jsx)("img",{className:"card-img object-fit-cover",src:"".concat(g.original.image),width:150,height:150,alt:"event"}),(0,a.jsxs)("div",{className:"mt-3 px-2",children:[(0,a.jsx)("div",{className:"d-flex ms-auto gap-2 mb-2 justify-content-between",children:(0,a.jsx)("h5",{className:"mb-1",children:(0,a.jsx)(n.default,{href:"/event/details/".concat(g.original.slug),children:g.original.title})})}),(0,a.jsxs)("ul",{className:"nav nav-stack small",children:[(0,a.jsxs)("li",{className:"nav-item icons-center gap-1",children:[(0,a.jsx)(p.$W1,{size:18,className:"pe-1"})," ",(0,h.p6)(g.original.date,"dd MMM yyyy")]}),(0,a.jsxs)("li",{className:"nav-item icons-center gap-1",children:[(0,a.jsx)(p.Pat,{size:18,className:"pe-1"})," ",(0,a.jsxs)("p",{className:"mb-0 small",children:[g.original.country,g.original.city&&g.original.city.replace(g.original.country,"").trim()&&" - ".concat(g.original.city.replace(g.original.country,"").replace(/^,|,$/g,"").trim())]})]}),(0,a.jsxs)("li",{className:"nav-item icons-center gap-1",children:[(0,a.jsx)(p.w7k,{size:18,className:"pe-1"})," ",g.original.attendees," Interested"]})]})]})]})})]}),(0,a.jsx)(m.Z,{post:t,profile_photo:f||"",footerDisplay:s})]})}},28743:function(e,t,s){s.d(t,{Z:function(){return R}});var a=s(57437),i=s(2265),l=s(54878),n=s(91769),r=s(99164),o=s(82453),c=s(6906),d=s(82179),m=s(22744),h=s(23197),p=s(67659),u=s(83464),x=s(76417),j=s(30166),g=s(61751),v=s(13111),f=s(24402),b=s(4670),y=s(24076),N=s(99846),w=s.n(N);s(89921);var _=s(49089);s(98527);let A=(0,j.default)(()=>Promise.all([s.e(9363),s.e(1652),s.e(5600)]).then(s.t.bind(s,5600,23)),{loadableGenerated:{webpack:()=>[5600]},ssr:!1});var k=e=>{var t,s,l;
1let{show:n,onClose:r,post:o,onUpdated:m}=e,[h,p]=(0,i.useState)(null!==(s=null===(t=o.files)||void 0===t?void 0:t.map(e=>e.file))&&void 0!==s?s:[]),[x,j]=(0,i.useState)([]),[N,k]=(0,i.useState)([]),[Z,C]=(0,i.useState)(null!==(l=o.content)&&void 0!==l?l:""),S=(0,i.useRef)(null),z=(0,i.useRef)(null),[E,D]=(0,i.useState)(null),[P,R]=(0,i.useState)(null),[F,I]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e,t,s;let a=null!==(t=null===(e=o.files)||void 0===e?void 0:e.map(e=>e.file))&&void 0!==t?t:[];p(a),k(a),j([]),C(null!==(s=o.content)&&void 0!==s?s:"")},[o,n]),(0,i.useEffect)(()=>{var e;if(S.current&&E)return null===(e=z.current)||void 0===e||e.destroy(),z.current=new(w())(S.current,{aspectRatio:1,viewMode:1,dragMode:"move",autoCropArea:.8}),()=>{z.current&&(z.current.destroy(),z.current=null)}},[E]);let T=e=>{if(e<h.length)p(t=>t.filter((t,s)=>s!==e));else{let t=e-h.length;j(e=>e.filter((e,s)=>s!==t))}k(t=>t.filter((t,s)=>s!==e))},M=(e,t)=>{if(t<0||t>=N.length)return;let s=[...N],[a]=s.splice(e,1);s.splice(t,0,a),k(s);let i=[];h.forEach(e=>i.push({type:"existing",value:e})),x.forEach(e=>i.push({type:"new",value:e}));let[l]=i.splice(e,1);i.splice(t,0,l);let n=[],r=[];i.forEach(e=>{"existing"===e.type?n.push(e.value):r.push(e.value)}),p(n),j(r)};async function B(e,t){return new Promise((s,a)=>{let i=new Image;i.crossOrigin="anonymous",i.src=e,i.onload=()=>{let e=document.createElement("canvas");e.width=i.width,e.height=i.height;let l=e.getContext("2d");if(!l)return a("Canvas error");l.drawImage(i,0,0),e.toBlob(e=>{if(!e)return a("Blob creation failed");s(new File([e],"existing-".concat(t,".jpg"),{type:e.type}))},"image/jpeg")},i.onerror=()=>a("Image load failed: "+e)})}let H=async()=>{try{I(!0);let e=[];for(let t=0;t<h.length;t++){let s=await B(h[t],t);e.push(s)}e.push(...x);let t=new FormData;t.append("content",null!=Z?Z:""),t.append("post_type","photo"),t.append("user_id",String((0,c.n5)()||"")),e.forEach(e=>t.append("new_files",e)),await u.Z.post("https://app.hozpitality.com/base/api/update-post/".concat(o.id,"/"),t,{headers:{"Content-Type":"multipart/form-data"}}),(0,d.C)("success","Saved","Photos updated successfully."),null==m||m(),r()}catch(e){console.error(e),(0,d.C)("error","Save failed","Could not update photo post.")}finally{I(!1)}};return(0,a.jsxs)(g.Z,{show:n,onHide:r,size:"lg",centered:!0,backdrop:"static",children:[(0,a.jsx)(g.Z.Header,{closeButton:!0,children:(0,a.jsx)(g.Z.Title,{children:"Edit Photo Post"})}),(0,a.jsxs)(g.Z.Body,{children:[(0,a.jsxs)(v.Z.Group,{className:"mb-3",children:[(0,a.jsx)(v.Z.Label,{children:"Caption"}),(0,a.jsx)(A,{value:Z,onChange:C})]}),(0,a.jsx)("input",{type:"file",accept:"image/*",multiple:!0,onChange:e=>{let t=e.target.files;if(!t)return;let s=Array.from(t);j(e=>[...e,...s]),k(e=>[...e,...s.map(e=>URL.createObjectURL(e))])}}),(0,a.jsx)(f.default,{className:"g-2 mt-3",children:N.map((e,t)=>(0,a.jsxs)(b.default,{xs:6,md:4,children:[(0,a.jsx)("img",{src:e,style:{width:"100%",height:150,objectFit:"cover"}}),(0,a.jsxs)("div",{className:"d-flex gap-1 mt-1",children:[(0,a.jsx)(y.Z,{size:"sm",onClick:()=>{D(e),R(t)},children:"Crop"}),(0,a.jsx)(y.Z,{size:"sm",onClick:()=>M(t,t-1),children:"◀"}),(0,a.jsx)(y.Z,{size:"sm",onClick:()=>M(t,t+1),children:"▶"}),(0,a.jsx)(y.Z,{size:"sm",variant:"danger",onClick:()=>T(t),children:(0,a.jsx)(_.Xm5,{})})]})]},t))}),E&&(0,a.jsxs)("div",{className:"mt-3 text-center",children:[(0,a.jsx)("img",{ref:S,src:E,style:{maxWidth:"100%",height:400}}),(0,a.jsxs)("div",{className:"d-flex gap-2 mt-2",children:[(0,a.jsx)(y.Z,{onClick:()=>{z.current&&null!==P&&z.current.getCroppedCanvas().toBlob(e=>{if(!e)return;let t=new File([e],"edited-".concat(Date.now(),".jpg"),{type:"image/jpeg"});if(k(e=>{let s=[...e];return s[P]=URL.createObjectURL(t),s}),P<h.length){let e=[...h];e.splice(P,1),p(e),j(e=>[...e,t])}else{let e=P-h.length;j(s=>{let a=[...s];return a[e]=t,a})}D(null),R(null)},"image/jpeg")},children:"Save Crop"}),(0,a.jsx)(y.Z,{variant:"secondary",onClick:()=>{D(null),R(null)},children:"Cancel"})]})]})]}),(0,a.jsxs)(g.Z.Footer,{children:[(0,a.jsx)(y.Z,{onClick:r,disabled:F,children:"Cancel"}),(0,a.jsx)(y.Z,{onClick:H,disabled:F,children:F?"Saving...":"Save Changes"})]})]})};let Z=(0,j.default)(()=>Promise.all([s.e(9363),s.e(1652),s.e(5600)]).then(s.t.bind(s,5600,23)),{loadableGenerated:{webpack:()=>[5600]},ssr:!1}),C=e=>{let t=e.match(/(https?:\/\/[^\s]+)/g);return t?t[0]:null};var S=e=>{var t,s,l,n,r,o,m,h;let{show:p,onClose:x,post:j,onUpdated:f}=e,[b,N]=(0,i.useState)(null!==(s=null==j?void 0:j.content)&&void 0!==s?s:""),[w,_]=(0,i.useState)(null!==(l=null==j?void 0:null===(t=j.link_preview_json)||void 0===t?void 0:t.link)&&void 0!==l?l:null),[A,k]=(0,i.useState)(null!==(n=null==j?void 0:j.link_preview_json)&&void 0!==n?n:null),[S,z]=(0,i.useState)(!1),[E,D]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e,t,s,a;N(null!==(t=null==j?void 0:j.content)&&void 0!==t?t:""),k(null!==(s=null==j?void 0:j.link_preview_json)&&void 0!==s?s:null),_(null!==(a=null==j?void 0:null===(e=j.link_preview_json)||void 0===e?void 0:e.link)&&void 0!==a?a:null)},[j,p]);let P=async e=>{let t=C(e);if(t&&t!==w)try{var s;D(!0);let e=await u.Z.post("https://app.hozpitality.com/base/api/link-preview/",{url:t});_(t),k(null!==(s=e.data)&&void 0!==s?s:null)}catch(e){(0,d.C)("error","Preview error","Failed to fetch link preview.")}finally{D(!1)}},R=async()=>{z(!0);try{var e,t,s,a,i,l;let n={content:b,post_type:"link",user_id:(0,c.n5)()||void 0,link_preview_json:w?{link:w,link_title:null!==(t=null!==(e=null==A?void 0:A.link_title)&&void 0!==e?e:null==A?void 0:A.title)&&void 0!==t?t:null,link_description:null!==(a=null!==(s=null==A?void 0:A.link_description)&&void 0!==s?s:null==A?void 0:A.description)&&void 0!==a?a:null,link_image_url:null!==(l=null!==(i=null==A?void 0:A.link_image_url)&&void 0!==i?i:null==A?void 0:A.image)&&void 0!==l?l:null}:null};await u.Z.post("https://app.hozpitality.com/base/api/update-post/".concat(j.id,"/"),n),(0,d.C)("success","Saved","Post updated successfully."),null==f||f(),x()}catch(e){(0,d.C)("error","Save failed","Could not update link post.")}finally{z(!1)}};return(0,a.jsxs)(g.Z,{show:p,onHide:x,centered:!0,size:"lg",children:[(0,a.jsx)(g.Z.Header,{closeButton:!0,children:(0,a.jsx)(g.Z.Title,{children:"Edit Link Post"})}),(0,a.jsxs)(g.Z.Body,{children:[(0,a.jsxs)(v.Z.Group,{className:"mb-3",children:[(0,a.jsx)(v.Z.Label,{children:"Text / Caption"}),(0,a.jsx)(Z,{value:b,onChange:e=>{N(e),P(e)},modules:{toolbar:[["bold","italic"]]}}),E&&(0,a.jsx)("small",{className:"text-muted",children:"Fetching preview…"})]}),A&&(0,a.jsxs)("div",{className:"border p-3 rounded mt-3",style:{maxWidth:680},children:[(0,a.jsx)("h6",{className:"mb-1",children:null!==(r=A.link_title)&&void 0!==r?r:A.title}),(0,a.jsx)("p",{className:"small text-muted mb-2",children:null!==(o=A.link_description)&&void 0!==o?o:A.description}
1),(A.link_image_url||A.image)&&(0,a.jsx)("img",{src:null!==(h=null!==(m=A.link_image_url)&&void 0!==m?m:A.image)&&void 0!==h?h:"",style:{width:"100%",maxHeight:220,objectFit:"cover"}}),(0,a.jsx)("small",{className:"text-muted d-block mt-2",children:w})]})]}),(0,a.jsxs)(g.Z.Footer,{children:[(0,a.jsx)(y.Z,{variant:"secondary",onClick:x,disabled:S,children:"Cancel"}),(0,a.jsx)(y.Z,{variant:"primary",onClick:R,disabled:S,children:S?"Saving…":"Save"})]})]})},z=s(10279);let E=(0,j.default)(()=>Promise.all([s.e(9363),s.e(1652),s.e(5600)]).then(s.t.bind(s,5600,23)),{loadableGenerated:{webpack:()=>[5600]},ssr:!1});var D=e=>{var t,s;let{show:l,onClose:n,post:r,onUpdated:o}=e,[m,h]=(0,i.useState)(null!==(t=null==r?void 0:r.content)&&void 0!==t?t:""),[p,x]=(0,i.useState)(null!==(s=null==r?void 0:r.background_color)&&void 0!==s?s:null),[j,v]=(0,i.useState)("#000"),[f,b]=(0,i.useState)(!1),N=(0,i.useRef)(null);(0,i.useEffect)(()=>{var e,t;h(null!==(e=null==r?void 0:r.content)&&void 0!==e?e:""),x(null!==(t=null==r?void 0:r.background_color)&&void 0!==t?t:null)},[r]),(0,i.useEffect)(()=>{if(N.current)try{let e=N.current.getEditor().root;e.style.backgroundColor=p||"transparent",e.style.color=p?j:"#000",e.style.minHeight=p?"350px":"200px",e.style.borderRadius="12px",e.style.padding="12px"}catch(e){console.warn("Quill styling failed")}},[p,j,m]);let w=async()=>{b(!0);try{let e={content:m,background_color:p,post_type:"text",user_id:(0,c.n5)()||void 0};await u.Z.post("https://app.hozpitality.com/base/api/update-post/".concat(r.id,"/"),e,{headers:{"Content-Type":"application/json"}}),(0,d.C)("success","Saved","Post updated successfully."),null==o||o(),n()}catch(e){(0,d.C)("error","Save failed","Could not update post.")}finally{b(!1)}};return(0,a.jsxs)(g.Z,{show:l,onHide:n,centered:!0,size:"lg",children:[(0,a.jsx)(g.Z.Header,{closeButton:!0,children:(0,a.jsx)(g.Z.Title,{children:"Edit Text Post"})}),(0,a.jsxs)(g.Z.Body,{children:[(0,a.jsx)(E,{ref:N,value:m,onChange:h,modules:{toolbar:[["bold","italic"],[{align:""},{align:"center"},{align:"right"}]]},formats:["bold","italic","align"],placeholder:"Update your post..."}),(0,a.jsxs)("div",{className:"d-flex gap-2 mt-3 align-items-center",children:[[{bg:"#ff9eab",text:"#fff"},{bg:"#91d3ff",text:"#fff"},{bg:"#ffe7b8",text:"#000"},{bg:"#a0f0c2",text:"#000"},{bg:"#b0b0b0",text:"#fff"}].map(e=>(0,a.jsx)("div",{onClick:()=>{x(e.bg),v(e.text)},style:{backgroundColor:e.bg,width:36,height:36,borderRadius:"50%",cursor:"pointer",border:p===e.bg?"3px solid #666":"2px solid #fff",boxShadow:"0 1px 3px rgba(0,0,0,.12)"}},e.bg)),p&&(0,a.jsx)(y.Z,{variant:"light",size:"sm",onClick:()=>x(null),children:"Remove background"})]})]}),(0,a.jsxs)(g.Z.Footer,{children:[(0,a.jsx)(y.Z,{variant:"secondary",onClick:n,disabled:f,children:"Cancel"}),(0,a.jsx)(y.Z,{variant:"primary",onClick:w,disabled:f,children:f?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.Z,{size:"sm",animation:"border",className:"me-2"}),"Saving..."]}):"Save"})]})]})},P=s(99376),R=e=>{var t,s,j,g;let{id:v,post:f,onDelete:b,isSameUser:y,onFeatured:N,isFeatured:w,onUpdated:_}=e,A=(0,c.n5)(),[Z,C]=(0,i.useState)(!1),[z,E]=(0,i.useState)(!1),[R,F]=(0,i.useState)(!1),[I,T]=(0,i.useState)(0),[M,B]=(0,i.useState)(w),[H,O]=(0,i.useState)(!1),[L,U]=(0,i.useState)(!1),[W,Q]=(0,i.useState)(!1),G=(0,P.useRouter)(),V=async()=>{let e=await (0,p.Z)(Number(A));T((null==e?void 0:e.credits)||0)},Y=async()=>{F(!1);try{await u.Z.post("https://app.hozpitality.com/base/api/make-featured/",{timeline_post_id:v,is_featured:M?1:0}),(0,d.C)("success","Featured updated",""),null==N||N(),null==_||_(),location.reload()}catch(e){console.error("Error updating featured:",e)}},J=async()=>{try{await (0,o.K)({user:Number(A),timeline_post_id:Number(v),object_id:0}),(0,d.C)("success","Bookmarked","")}catch(e){console.error(e),(0,d.C)("error","Bookmark failed","")}},$=async()=>{v&&(await (0,r.default)(v),C(!1),(0,d.C)("success","Post deleted!",""),null==b||b(),null==_||_(),window.location.reload())};(0,i.useEffect)(()=>{B(w)},[w]);let q=()=>{(0,d.C)("success","Post updated successfully",""),null==_||_(),location.reload()},K=function(e){var t;if(!e)return;let s=(null!==(t=e.files)&&void 0!==t?t:[]).map((t,s)=>({id:s+1,post:e.id,file:t}));return{...e,files:s}}(f);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.Z,{align:"end",className:"custom-action-dropdown","data-bs-display":"static",children:[(0,a.jsx)(l.Z.Toggle,{as:"button",id:"cardFeedAction",className:"border-0 bg-dropmenu rounded-circle hover text-secondary p-1 d-flex align-items-center justify-content-center",children:(0,a.jsx)(x.Npe,{size:24})}),(0,a.jsxs)(l.Z.Menu,{className:"shadow border-0 py-1 animate-fade dropdown-menu-custom",style:{minWidth:220,borderRadius:10},children:[y&&(M?(0,a.jsxs)(l.Z.Item,{onClick:()=>F(!0),children:[(0,a.jsx)(m.Ze$,{size:18})," Remove from Featured"]}):(0,a.jsxs)(l.Z.Item,{onClick:()=>F(!0),children:[(0,a.jsx)(m.MVI,{size:18})," Mark as Featured"]})),y&&(0,a.jsxs)(l.Z.Item,{onClick:()=>{f&&("photo"===f.post_type?O(!0):"link"===f.post_type?U(!0):"text"===f.post_type?Q(!0):"event"===f.post_type?G.push("/dashboard/edit-event/".concat(f.id,"/")):"article"===f.post_type?G.push("/dashboard/edit-article/".concat(f.id,"/")):"product"===f.post_type?G.push("/dashboard/edit-product/".concat(f.post_slug,"/")):"jobs"===f.post_type&&G.push("/dashboard/edit-job/".concat(f.job_slug,"/")))},children:[(0,a.jsx)(m.zmo,{size:18})," Edit Post"]}),(y||32267===A)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.Z.Item,{className:"text-danger",onClick:()=>C(!0),children:[(0,a.jsx)(m.ZkW,{size:18})," Delete Post"]}),(0,a.jsx)(l.Z.Divider,{})]}),(0,a.jsxs)(l.Z.Item,{onClick:J,children:[(0,a.jsx)(m.AAE,{size:18})," Save Post"]})]})]}),(0,a.jsx)(n.Z,{show:Z,title:"Delete Post",message:"Are you sure you want to delete this post?",confirmText:"Delete",cancelText:"Cancel",variant:"danger",onConfirm:$,onCancel:()=>C(!1)}),(0,a.jsx)(n.Z,{show:R,title:"Make Featured",message:"This will cost 1 credit. C
1ontinue?",confirmText:"Make Featured",cancelText:"Cancel",variant:"primary",onConfirm:()=>E(!0),onCancel:()=>F(!1)}),(0,a.jsx)(h.Z,{open:z,onClose:()=>E(!1),creditToBeUsed:1,onCreditUsed:()=>{V(),Y()},currentCredit:I}),K&&(0,a.jsx)(k,{show:H,onClose:()=>O(!1),post:K,onUpdated:q}),(0,a.jsx)(S,{show:L,onClose:()=>U(!1),post:{id:f.id,post_type:f.post_type,content:null!==(t=f.content)&&void 0!==t?t:"",link_preview_json:null!==(s=f.link_preview_json)&&void 0!==s?s:null},onUpdated:q}),f&&(0,a.jsx)(D,{show:W,onClose:()=>Q(!1),post:{id:f.id,post_type:f.post_type,content:null!==(j=f.content)&&void 0!==j?j:"",background_color:null!==(g=f.background_color)&&void 0!==g?g:null,files:[]},onUpdated:q})]})}},90100:function(e,t,s){s.r(t),s.d(t,{default:function(){return N}});var a=s(57437),i=s(65913),l=s(27648),n=s(33145),r=s(61994),o=s(2265),c=s(83464),d=s(6906),m=e=>{let{comment:t}=e;return(0,a.jsx)("li",{className:"comment-item",children:t.author&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"d-flex position-relative",children:[(0,a.jsx)("div",{className:(0,r.Z)("avatar avatar-xs",{"avatar-story":!1}),children:(0,a.jsx)("span",{role:"button",children:"⁠ ".concat(t.author.avatar," ⁠")&&(0,a.jsx)(n.default,{unoptimized:!0,className:"avatar-img rounded-circle",width:40,height:40,src:"".concat(t.author.avatar),alt:"".concat(t.author.username,"-avatar")})})}),(0,a.jsx)("div",{className:"ms-2",children:(0,a.jsxs)("div",{className:"rounded-start-top-0 p-0 rounded",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,a.jsxs)("h6",{className:"mb-1",children:[" ",(0,a.jsxs)(l.default,{href:"",children:[" ",t.author.name," "]})]}),(0,a.jsx)("small",{className:"ms-2",children:"".concat((0,i.VG)(new Date(t.created_at)))})]}),(0,a.jsx)("p",{className:"small mb-0",children:t.content})]})})]})})})},h=s(11140),p=s(54878),u=s(86170),x=s(70795),j=s(46945),g=s(65087),v=s(60049),f=s(22744),b=s(3390);let y=e=>{let{id:t,showDelete:s}=e;return(0,a.jsxs)(p.Z,{id:"action-menu-".concat(t),children:[(0,a.jsx)(u.Z,{as:"a",className:"text-secondary btn p-0 content-none",children:(0,a.jsx)(h.evw,{size:18})}),(0,a.jsxs)(x.Z,{className:"dropdown-menu-end",children:[(0,a.jsx)("li",{children:(0,a.jsxs)(j.Z,{href:"",children:[(0,a.jsx)(g.Z,{fontSize:"medium",className:"fa-fw pe-2",style:{fontSize:22}}),"Report"]})}),s&&(0,a.jsx)("li",{children:(0,a.jsxs)(j.Z,{href:"",children:[(0,a.jsx)(f.ZkW,{size:22,className:"fa-fw pe-2"}),"Delete"]})})]})]})};var N=e=>{let{comment:t,showReply:s}=e,h=(0,d.Dm)(),p=(0,d.n5)(),[u,x]=(0,o.useState)(t.is_liked_by_me||!1),[j,g]=(0,o.useState)(t.like_count||0),[N,w]=(0,o.useState)(t.replies||[]),[_,A]=(0,o.useState)(!1),[k,Z]=(0,o.useState)(""),[C,S]=(0,o.useState)(!1),[z,E]=(0,o.useState)(null),D=async()=>{if(p)try{let e=await c.Z.post("https://app.hozpitality.com/base/api/comment-like/",{user_id:p,comment_id:t.id});x(e.data.liked),g(e.data.like_count)}catch(e){console.error("Error liking comment:",e)}},P=async()=>{if(!k.trim()){E("Reply cannot be empty.");return}S(!0),E(null);try{let e=await c.Z.post("https://app.hozpitality.com/base/api/generic-comment-reply/",{user:p,content_type_str:t.content_type,object_id:t.object_id,parent_comment_id:t.id,content:k,rating_value:0});console.log("Reply submitted:",e.data),w(e=>[...e,{id:Date.now(),author:{id:Number(p),username:"You",avatar:h||"",name:"You",slug:""},content:k,created_at:new Date().toISOString(),replies:[],is_CC:!1,is_PREMIUM:!1,is_EP:!1,is_SP:!1,is_GP:!1,is_PAYG:!1,is_verified:!1,object_id:t.object_id,content_type:t.content_type,is_liked_by_me:!1,like_count:0}]),Z(""),A(!1)}catch(e){console.error("Error submitting reply:",e),E("Failed to submit reply.")}finally{S(!1)}};return(0,a.jsx)("li",{className:"comment-item",children:t.author&&(0,a.jsxs)("div",{className:"d-flex position-relative",children:[(0,a.jsx)("div",{className:(0,r.Z)("avatar avatar-xs"),children:(0,a.jsx)("span",{role:"button",children:t.author.avatar&&(0,a.jsx)(n.default,{unoptimized:!0,className:"avatar-img rounded-circle",width:40,height:40,src:t.author.avatar,alt:"".concat(t.author.username,"-avatar")})})}),(0,a.jsxs)("div",{className:"ms-2 w-100",children:[(0,a.jsxs)("div",{className:"rounded",children:[(0,a.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,a.jsx)("h6",{className:"mb-1",children:(0,a.jsxs)(l.default,{href:"/profile/".concat(t.author.slug),children:[t.author.name,t.is_verified&&(0,a.jsx)(f.vr,{className:"text-primary"}),(0,a.jsx)(b.Z,{is_CC:t.is_CC,is_PAYG:t.is_PAYG,is_PREMIUM:t.is_PREMIUM,is_EP:t.is_EP,is_SP:t.is_SP,is_GP:t.is_GP})]})}),(0,a.jsxs)("div",{className:"d-flex align-items-center gap-3",children:[(0,a.jsx)("small",{children:(0,i.VG)(new Date(t.created_at))}),(0,a.jsx)(y,{id:t.id,showDelete:s})]})]}),(0,a.jsx)("p",{className:"small mb-0",children:t.content})]}),(0,a.jsxs)("ul",{className:"nav nav-divider py-2 small",children:[(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsxs)("span",{className:"nav-link",role:"button",onClick:D,style:{color:u?"#2f9affff":"inherit"},children:[u?"Liked":"Like"," ",(0,a.jsx)(v.Z,{style:{fontSize:"18px"}})," ",j]})}),(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsx)("span",{className:"nav-link",role:"button",onClick:()=>A(e=>!e),children:"Reply"})})]}),Array.isArray(N)&&N.length>0&&(0,a.jsx)("ul",{className:"comment-wrap list-unstyled mb-2",children:N.map(e=>(0,a.jsx)(m,{comment:e},e.id))}),_&&(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("textarea",{className:"form-control mb-1",rows:2,value:k,onChange:e=>Z(e.target.value),placeholder:"Write your reply...",disabled:C}),z&&(0,a.jsx)("div",{className:"text-danger small mb-1",children:z}),(0,a.jsx)("button",{className:"btn btn-primary btn-sm me-2",onClick:P,disabled:C,children:C?"Replying...":"Submit Reply"}),(0,a.jsx)("button",{className:"btn btn-link btn-sm",onClick:()=>{A(!1),Z(""),E(null)},disabled:C,children:"Cancel"})]})]})]})})}},11590:function(e,t){t.Z={src:"/_next/static/media/placeholder.ad608633.jpg",height:200,width:200,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAVAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACEAMQAAABpRR//8QAFRABAQAAAAAAAAAAAAAAAAAAEiH/2gAIAQEAAQUCq//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABUQAQEAAAAAAAAAAAAAAAAAAABh/9oACAEBAAY/Ao//xAAWEAEBAQAAAAAAAAAAAAAAAAAxYQD/2gAIAQEAAT8hmW7/2gAMAwEAAgADAAAAEAf/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAZEAACAwEAAAAAAAAAAAAAAAARIQABYdH/2gAIAQEAAT8QKx3UW5P/2Q==",blurWidth:8,blurHeight:8}},40931:function(e,t){t.Z={src:"/_next/static/media/xtrahire-logo.e489dceb.png",height:140,width:399,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAKlBMVEVMaXE7PXQ0Mm9eyeczNW1Xz/JSUoFOTn83IVg9m8tAxu43ZJxERHlxxeS0xY+2AAAADnRSTlMAO3Q9YHtHGhedW4aKtuCSiSwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAfSURBVHicY2Bg4WAAAyZuZmZGRkZ2Bk4uVl4WJh42AAPzAGfC50QEAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3}}}]);

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.