1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d3c9d289-5d08-47da-a26a-d84e295bf005",e._sentryDebugIdIdentifier="sentry-dbid-d3c9d289-5d08-47da-a26a-d84e295bf005")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7899],{95937:function(e,l,s){Promise.resolve().then(s.t.bind(s,72972,23)),Promise.resolve().then(s.bind(s,81523)),Promise.resolve().then(s.bind(s,70049)),Promise.resolve().then(s.bind(s,41358)),Promise.resolve().then(s.bind(s,5693)),Promise.resolve().then(s.bind(s,90035)),Promise.resolve().then(s.bind(s,39616)),Promise.resolve().then(s.bind(s,94158)),Promise.resolve().then(s.bind(s,40029)),Promise.resolve().then(s.bind(s,82606)),Promise.resolve().then(s.bind(s,52129)),Promise.resolve().then(s.bind(s,43664)),Promise.resolve().then(s.bind(s,93619)),Promise.resolve().then(s.bind(s,77221)),Promise.resolve().then(s.bind(s,57244)),Promise.resolve().then(s.bind(s,32872))},41358:function(e,l,s){"use strict";var t=s(57437),n=s(2265),a=s(99376),i=s(42586),r=s(93970),o=s(90769);l.default=e=>{let{post:l={}}=e,s=(0,a.useRouter)(),c=(0,i.useTranslations)("Listing"),[d,m]=(0,n.use
1State)(!1),u=async()=>{let e=new Promise(async(e,s)=>{m(!0);let{success:t,data:n,error:a}=await (0,o.hj)("POST","/api/post/".concat(l.id,"/block"),{isBlocked:!(null==l?void 0:l.isBlocked)});m(!1),a&&s({error:a}),e({success:t,data:n})}),{success:t,data:n,error:a}=await (0,r.QZ)(e,"Updating post...","Updated!","Error updating post!");return t?(s.refresh(),!0):(console.error(">>> post block ERROR",a),!1)};return l?(0,t.jsx)("div",{className:"mt-3",children:(null==l?void 0:l.isBlocked)?(0,t.jsxs)("button",{className:"btn btn-xs w-100 btn-success mt-3",disabled:d,onClick:u,children:[(0,t.jsx)("i",{className:"fi fi-shield-ok"}),c("unblock")]}):(0,t.jsxs)("button",{className:"btn btn-xs w-100 btn-danger mt-3",disabled:d,onClick:u,children:[(0,t.jsx)("i",{className:"fi fi-round-close"}),c("block")]})}):null}},5693:function(e,l,s){"use strict";var t=s(57437),n=s(2265),a=s(42586),i=s(77240),r=s(35778),o=s(14376),c=s(40679),d=s(71598),m=s(1322),u=s(58916),h=s(35217),x=s(17411);l.default=e=>{var l,s,v,p,g,b,f,j,N,y,w,k,S,P,C;let{post:L={}}=e,A=(0,a.useTranslations)("Listing.event"),E=(0,a.useLocale)(),[D,T]=(0,n.use
1State)(!1),{eventData:U}=L;if(!(null==U?void 0:U.datetimeStart))return null;let I=!(null==U?void 0:U.isOnline)&&(null==U?void 0:null===(l=U.location)||void 0===l?void 0:l.lat)&&(null==U?void 0:null===(s=U.location)||void 0===s?void 0:s.lng),F=(null==L?void 0:null===(v=L.locationData)||void 0===v?void 0:v.timezone)||"America/Los_Angeles",_=(0,o.zW)(null==U?void 0:U.datetimeStart,F),R=(null==U?void 0:U.datetimeEnd)?(0,o.zW)(null==U?void 0:U.datetimeEnd,F):null,W=(0,o.CV)(null==U?void 0:U.datetimeStart,F,"zzz"),M=(0,o.CV)(null==U?void 0:U.datetimeStart,F,"zzzz"),B=I?"https://www.google.com/maps/search/?api=1&query=".concat(null==U?void 0:null===(p=U.location)||void 0===p?void 0:p.fullAddress):"#",O={ÑÑÑенÑ:"ÑÑÑнÑ",лÑÑий:"лÑÑого",беÑезенÑ:"беÑезнÑ",квÑÑенÑ:"квÑÑнÑ",ÑÑавенÑ:"ÑÑавнÑ",ÑеÑвенÑ:"ÑеÑвнÑ",липенÑ:"липнÑ",ÑеÑпенÑ:"ÑеÑпнÑ",веÑеÑенÑ:"веÑеÑнÑ",жовÑенÑ:"жовÑнÑ",лиÑÑопад:"лиÑÑопада",гÑÑденÑ:"гÑÑднÑ"},G=(e,l)=>{if("uk"===l){let[l,s,t,n]=(0,i.WU)(e,"ccc d LLLL yyyy",{locale:c.uk}).split(" ");return"".concat(l,", ").concat(s," ").concat(O[t]||t," ").concat(n)}return(0,i.WU)(e,"ccc, LLL d, yyyy",{locale:d._})},H=e=>G(e,E),z=e=>(0,i.WU)(e,"hh:mm b",{locale:"uk"===E?c.uk:d._}),V=e=>(0,i.WU)(new Date(e),"yyyyMMdd'T'HHmmss'Z'"),Y=L.titleEn||L.title,Z=L.bodyEn||L.body||"",$=(null==U?void 0:null===(g=U.location)||void 0===g?void 0:g.fullAddress)||"",q=()=>{let e=new URLSearchParams({action:"TEMPLATE",text:Y,dates:"".concat(V(U.datetimeStart),"/").concat(V(U.datetimeEnd||U.datetimeStart)),details:Z,location:$});return"https://calendar.google.com/calendar/render?".concat(e.toString())},X=()=>{let e=new URLSearchParams({subject:Y,startdt:new Date(U.datetimeStart).toISOString(),enddt:new Date(U.datetimeEnd||U.datetimeStart).toISOString(),body:Z,location:$});return"https://outlook.live.com/calendar/0/deeplink/compose?".concat(e.toString())},J=()=>{let e=new URLSearchParams({subject:Y,startdt:new Date(U.datetimeStart).toISOString(),enddt:new Date(U.datetimeEnd||U.datetimeStart).toISOString(),body:Z,location:$});return"https://outlook.office.com/calendar/0/deeplink/compose?".concat(e.toString())},K=()=>{let e=new URLSearchParams({v:"60",title:Y,st:V(U.datetimeStart),et:V(U.datetimeEnd||U.datetimeStart),desc:Z,in_loc:$});return"https://calendar.yahoo.com/?".concat(e.toString())},Q=()=>{let e=new Blob([["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","DTSTART:".concat(V(U.datetimeStart)),"DTEND:".concat(V(U.datetimeEnd||U.datetimeStart)),"SUMMARY:".concat(Y),"DESCRIPTION:".concat(Z.replace(/\n/g,"\\n")),"LOCATION:".concat($),"END:VEVENT","END:VCALENDAR"].join("\r\n")],{type:"text/calendar;charset=utf-8"}),l=document.createElement("a");l.href=URL.createObjectURL(e),l.download="sharvarok-event-".concat(L.id,".ics"),document.body.appendChild(l),l.click(),document.body.removeChild(l)},ee=[{name:"Apple Calendar",icon:x.Av$,color:"#555555",action:Q},{name:"Google Calendar",icon:x.xYR,color:"#4285F4",action:()=>window.open(q(),"_blank")},{name:"Outlook",icon:x.hVS,color:"#0078D4",action:()=>window.open(X(),"_blank")},{name:"Office 365",icon:x.hVS,color:"#D83B01",action:()=>window.open(J(),"_blank")},{name:"Yahoo Calendar",icon:x.TlY,color:"#6001D2",action:()=>window.open(K(),"_blank")},{name:"iCal / Other",icon:h.a1i,color:"#6c757d",action:Q}];return(0,t.jsxs)("div",{className:"clearfix mt-5",children:[(0,t.jsx)("h4",{className:"text-center text-lg-start mb-4",children:"Event Details"}),(0,t.jsxs)("div",{className:"row g-xl-5 mb-4",children:[I?(0,t.jsx)("div",{className:"col-12 col-lg-6",children:(0,t.jsx)("div",{className:"bg-white shadow-primary-xs rounded p-2 mb-5",style:{height:"400px"},children:(0,t.jsx)(m.un,{apiKey:"AIzaSyCIUdlIILGXfp1koWI-7IZKJsOxTaE8fEg",libraries:["marker"],children:(0,t.jsx)(m.D5,{mapId:"623283cf02cd15c0",defaultZoom:13,defaultCenter:{lat:null==U?void 0:null===(b=U.location)||void 0===b?void 0:b.lat,lng:null==U?void 0:null===(f=U.location)||void 0===f?void 0:f.lng},gestureHandling:"greedy",children:(0,t.jsx)(m._Q,{position:{lat:null==U?void 0:null===(j=U.location)||void 0===j?void 0:j.lat,lng:null==U?void 0:null===(N=U.location)||void 0===N?void 0:N.lng},title:(null==U?void 0:null===(y=U.location)||void 0===y?void 0:y.name)||(null==U?void 0:null===(w=U.location)||void 0===w?void 0:w.fullAddress),children:(0,t.jsx)(m.lO,{})})})})})}):null,(0,t.jsxs)("div",{className:I?"col-12 col-lg-6":"col-12",children:[(0,t.jsxs)("div",{className:"row mb-2 text-center text-lg-start",children:[(0,t.jsxs)("div",{className:(null==U?void 0:U.datetimeEnd)?"col-6":"col-12",children:[(0,t.jsx)("div",{className:"fw-medium",children:A("start")}),(0,t.jsxs)("time",{dateTime:(0,r.c)(U.datetimeStart),suppressHydrationWarning:!0,children:[(0,t.jsxs)("div",{className:"small",suppressHydrationWarning:!0,children:[(0,t.jsx)("i",{className:"fi fi-calendar me-2"}),H(_)]}),(0,t.jsxs)("div",{className:"small",suppressHydrationWarning:!0,children:[(0,t.jsx)("i",{className:"fi fi-time me-2"}),z(_)," ",(0,t.jsx)("sup",{className:"text-danger",children:"*"})]})]})]}),R?(0,t.jsxs)("div",{className:"col-6",children:[(0,t.jsx)("div",{children:A("end")}),(0,t.jsxs)("time",{dateTime:(0,r.c)(U.datetimeEnd),suppressHydrationWarning:!0,children:[(0,t.jsxs)("div",{className:"small",suppressHydrationWarning:!0,children:[(0,t.jsx)("i",{className:"fi fi-calendar me-2"}),H(R)]}),(0,t.jsxs)("div",{className:"small",suppressHydrationWarning:!0,children:[(0,t.jsx)("i",{className:"fi fi-time me-2"}),z(R)," ",(0,t.jsx)("sup",{className:"text-danger",children:"*"})]})]})]}):null,(0,t.jsxs)("div",{className:"mt-2 mb-2 smaller text-muted",suppressHydrationWarning:!0,children:[(0,t.jsx)("sup",{className:"text-danger",children:"*"})," ",W," (",M,")"]})]}),(0,t.jsxs)("div",{className:"text-center text-lg-start row mb-4",children:[(0,t.jsx)("div",{className:"col-12 col-md-auto",children:(0,t.jsxs)("div",{className:"position-relative d-inline-block",children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-primary btn-sm shadow-sm",onClick:()=>T(!D),"aria-expanded":D,style:{paddingLeft:"1.2rem",paddingRight:"1.2rem",fontWeight:"500"},children:[(0,t.jsx)(u.G,{icon:h.a1i,className:"me-2"}),"Add to Calendar",(0,t.jsx)(u.G,{icon:h.ptq,className:"ms-2",style:{fontSize:"0.75em",transition:"transform 0.2s",transform:D?"rotate(180deg)":"rotate(0deg)"}})]}),D&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"position-fixed top-0 start-0 w-100 h-100",style:{zIndex:999},onClick:()=>T(!1)}),(0,t.jsx)("ul",{className:"dropdown-menu show position-absolute shadow-lg border-0",style:{zIndex:1e3,marginTop:"0.5rem",minWidth:"220px",borderRadius:"0.5rem",overflow:"hidden"},children:ee.map((e,l)=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{className:"dropdown-item d-flex align-items-center py-2 px-3",onClick:()=>{e.action(),T(!1)},style:{transition:"all 0.15s ease",fontSize:"0.95rem"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#f8f9fa",e.currentTarget.style.paddingLeft="1rem"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.paddingLeft="0.75rem"},children:[(0,t.jsx)(u.G,{icon:e.icon,className:"me-3",style:{width:"20px",color:e.color,fontSize:"1.1rem"}}),(0,t.jsx)("span",{style:{fontWeight:"500"},children:e.name})]})},l))})]})]})}),(null==U?void 0:null===(k=U.links)||void 0===k?void 0:k.tickets)?(0,t.jsx)("div",{className:"col-12 col-md-auto mt-3 mt-md-0",children:(0,t.jsxs)("a",{href:(null==L?void 0:L.isSold)?void 0:U.links.tickets,target:"_blank",className:"btn btn-danger btn-sm shadow-sm ".concat((null==L?void 0:L.isSold)?"disabled":""),style:{paddingLeft:"1.2rem",paddingRight:"1.2rem",fontWeight:"500",...(null==L?void 0:L.isSold)&&{opacity:.65,pointerEvents:"none",cursor:"not-allowed"}},onClick:e=>{(null==L?void 0:L.isSold)&&e.preventDefault()},children:[(0,t.jsx)("i",{className:"fi fi-cart-1"}),"Buy tickets"]})}):null]}),(null==U?void 0:U.orgName)?(0,t.jsxs)("ul",{className:"list-unstyled m-0 fs-6 mb-4 text-center text-lg-start",children:[(0,t.jsx)("li",{className:"list-item fw-medium",children:A("orgname")}),(0,t.jsx)("li",{className:"list-item",children:(null==U?void 0:null===(S=U.links)||void 0===S?void 0:S.website)?(0,t.jsxs)("a",{href:U.links.website,target:"_blank",children:[(0,t.jsx)("i",{className:"fi fi-link text-primary"})," ",null==U?void 0:U.orgName]}):U.orgName})]}):null,(null==U?void 0:U.isOnline)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("ul",{className:"list-unstyled m-0 fs-6 text-center text-lg-start",children:[(0,t.jsx)("li",{className:"list-item fw-medium",children:A("address")}),(0,t.jsx)("li",{className:"list-item",children:null==U?void 0:null===(P=U.location)||void 0===P?void 0:P.name}),(0,t.jsx)("li",{className:"list-item text-muted",children:null==U?void 0:null===(C=U.location)||void 0===C?void 0:C.fullAddress})]}),I?(0,t.jsx)("div",{className:"text-center text-lg-start mt-4",children:(0,t.jsxs)("a",{href:B,target:"_blank",className:"btn btn-dark btn-sm",children:[(0,t.jsx)("i",{className:"fi fi-map"}),"Google Maps"]})}):null]})]})]})]})}},90035:function(e,l,s){"use strict";s.d(l,{default:function(){return v}});var t=s(57437);s(2265);var n=s(42586),a=s(77240),i=s(40679),r=s(71598),o=s(58916),c=s(35217);let d=["responsibilities","requirements","benefits","skills"],m=["educationRequired"],u=e=>"en"===e?"En":"Uk",h=(e,l)=>{if(!e)return e;let s=u("uk"===l?"uk":"en"),t={...e};for(let l of[...d,...m]){let n=e["".concat(l).concat(s)];null==n||Array.isArray(n)&&0===n.length||(t[l]=n)}return t},x=e=>{if(!e)return;let l=e.trim();if(l)return/^https?:\/\//i.test(l)?l:"https://".concat(l)};var v=e=>{let{post:l={}}=e,s=(0,n.useTranslations)("Listing.job"),d=(0,n.useLocale)(),m=h(null==l?void 0:l.jobData,d);if(!m)return null;let{employmentType:u,workArrangement:v,experienceLevel:p,educationRequired:g,salaryMin:b,salaryMax:f,salaryPeriod:j,currency:N,companyName:y,applicationUrl:w,applicationEmail
1:k,applicationDeadline:S,responsibilities:P,requirements:C,benefits:L,skills:A,location:E}=m,D={USD:"$",EUR:"â¬",UAH:"â´",GBP:"\xa3",PLN:"zÅ",CAD:"C$"},T=e=>{let l=N||"USD",s=D[l]||"",t=new Intl.NumberFormat("uk"===d?"uk-UA":"en-US").format(e);return s?"".concat(s).concat(t):"".concat(t," ").concat(l)},U=null!=b||null!=f,I=[...(Array.isArray(u)?u:u?[u]:[]).map(e=>({key:"employmentType",value:e})),{value:v,key:"workArrangement"},{value:p,key:"experienceLevel"}].filter(e=>e.value),F=S?new Date(S):null,_=w?x(w):k?"mailto:".concat(k):null,R=(null==E?void 0:E.fullAddress)||(null==E?void 0:E.name)||("string"==typeof E?E:""),W=[{title:s("responsibilities"),items:P},{title:s("requirements"),items:C},{title:s("benefits"),items:L}].filter(e=>Array.isArray(e.items)&&e.items.length>0);return(0,t.jsxs)("div",{className:"clearfix mt-5",children:[(0,t.jsx)("h4",{className:"text-center text-lg-start mb-4",children:s("title")}),(U||I.length>0||y)&&(0,t.jsxs)("div",{className:"bg-white shadow-primary-xs rounded p-3 p-lg-4 mb-4",children:[y?(0,t.jsxs)("div",{className:"mb-3 text-center text-lg-start",children:[(0,t.jsx)("div",{className:"smaller text-muted",children:s("company")}),(0,t.jsxs)("span",{className:"fw-medium",children:[(0,t.jsx)(o.G,{icon:c.HXv,className:"text-primary me-2"}),y]})]}):null,U?(0,t.jsxs)("div",{className:"mb-3 text-center text-lg-start",children:[(0,t.jsx)("div",{className:"smaller text-muted",children:s("salary")}),(0,t.jsxs)("div",{className:"h4 mb-0 text-primary fw-bold",suppressHydrationWarning:!0,children:[null!=b&&null!=f?"".concat(T(b)," â ").concat(T(f)):null!=b?"".concat(s("from")," ").concat(T(b)):null!=f?"".concat(s("upto")," ").concat(T(f)):"",j?(0,t.jsxs)("span",{className:"fs-6 text-muted fw-normal",children:[" / ",s("period.".concat(j))]}):null]})]}):null,I.length>0?(0,t.jsxs)("div",{className:"d-flex flex-wrap gap-2 justify-content-center justify-content-lg-start",children:[I.map(e=>(0,t.jsx)("span",{className:"badge bg-secondary-soft text-muted",children:s("".concat(e.key,".").concat(e.value))},"".concat(e.key,"-").concat(e.value))),g?(0,t.jsx)("span",{className:"badge bg-secondary-soft text-muted",children:g}):null]}):null,R?(0,t.jsxs)("div",{className:"small text-muted mt-3 text-center text-lg-start",children:[(0,t.jsx)("i",{className:"fi fi-pin-2 me-1"})," ",R]}):null]}),W.map(e=>(0,t.jsxs)("div",{className:"mb-4 text-center text-lg-start",children:[(0,t.jsx)("h5",{className:"mb-2",children:e.title}),(0,t.jsx)("ul",{className:"list-unstyled m-0 fs-6 text-start d-inline-block",children:e.items.map((e,l)=>(0,t.jsxs)("li",{className:"list-item mb-1",children:[(0,t.jsx)("i",{className:"fi fi-check text-primary me-2"}),e]},l))})]},e.title)),Array.isArray(A)&&A.length>0?(0,t.jsxs)("div",{className:"mb-4 text-center text-lg-start",children:[(0,t.jsx)("h5",{className:"mb-2",children:s("skills")}),(0,t.jsx)("div",{className:"d-flex flex-wrap gap-2 justify-content-center justify-content-lg-start",children:A.map((e,l)=>(0,t.jsx)("span",{className:"badge bg-primary-soft text-primary",children:e},l))})]}):null,(_||F)&&(0,t.jsxs)("div",{className:"text-center text-lg-start mb-4",children:[_?(0,t.jsxs)("a",{href:_,target:w?"_blank":void 0,rel:w?"noopener noreferrer":void 0,className:"btn btn-primary btn-sm shadow-sm",style:{paddingLeft:"1.2rem",paddingRight:"1.2rem",fontWeight:"500"},children:[(0,t.jsx)("i",{className:"fi fi-paper-plane me-2"}),s("apply")]}):null,F?(0,t.jsxs)("div",{className:"small text-muted mt-3",suppressHydrationWarning:!0,children:[(0,t.jsx)("i",{className:"fi fi-calendar me-1"}),s("deadline"),": ",(0,a.WU)(F,"PPP",{locale:"uk"===d?i.uk:r._})]}):null]})]})}},39616:function(e,l,s){"use strict";s.d(l,{default:function(){return N}});var t=s(57437),n=s(27648),a=s(2265),i=s(42586),r=s(58916),o=s(35217),c=s(7182),d=e=>{let{businessProfile:l,businessName:s}=e;return(0,t.jsx)("div",{className:"d-flex align-items-center justify-content-center gap-2 mb-4",children:l.logo?(0,t.jsx)("img",{src:l.logo,alt:s,className:"rounded",style:{maxHeight:100,width:"auto",maxWidth:"100%",flexShrink:0}}):(0,t.jsx)("div",{className:"rounded d-flex align-items-center justify-content-center",style:{width:36,height:36,background:"rgba(0, 91, 187, 0.1)",flexShrink:0},children:(0,t.jsx)(r.G,{icon:o.HXv,style:{color:"rgb(0, 91, 187)",fontSize:14}})})})},m=s(51428),u=s.n(m),h=e=>{let{user:l}=e,s=(0,i.useLocale)();if((null==l?void 0:l.id)>0&&(null==l?void 0:l.public)&&(null==l?void 0:l.name)){var a;let e=!!(null==l?void 0:null===(a=l.businessProfile)||void 0===a?void 0:a.isProfileApproved),i=e&&l.businessProfile.businessName||l.name,r=e?"/".concat(s,"/business/").concat(u()(l.businessProfile.slug||l.businessProfile.businessName)):"/".concat(s,"/users/").concat(l.id),o=e&&l.businessProfile.businessName;return(0,t.jsx)(n.default,{href:r,className:o?"fw-semibold":"",children:i})}return(null==l?void 0:l.name)||"No name"},x=s(80605),v=s(910),p=s(5661),g=s.n(p),b=s(15924),f=s(90769),j=e=>{var l,s;let{post:n={},user:c={}}=e,{data:d,status:m}=(0,x.useSession)(),u=(0,i.useTranslations)("SecuredEmail"),h={body:""},[p,j]=(0,a.useState)(!1),[N,y]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),[S,P]=(0,a.useState)(h),[C,L]=(0,a.useState)([]),[A,E]=(0,a.useState)(!1),[D,T]=(0,a.useState)(!1),U=()=>{P(h),j(!1),k(!1),E(!1),T(!1)},I=(e,l)=>{P({...S,[e]:l}),k(!0),E(!1),T(!1)},F=()=>{let e=[];g().isEmpty((null==S?void 0:S.body)||"")&&e.push("body"),L(e)},_=async()=>
1{if(!(null==d?void 0:d.user)||(null==C?void 0:C.length)>0)return null;console.log(">>>",S),E(!1),T(!1),y(!0);let e=await (0,f.hj)("POST","/api/post/".concat(n.id,"/sendmail"),S);y(!1),console.log(">>> response",e);let{success:l}=e;if(!l){T(!0);return}T(!1),E(!0)};return((0,a.useEffect)(()=>{F()},[S]),(null==n?void 0:n.id)&&(null==n?void 0:null===(l=n.user)||void 0===l?void 0:l.id)!==(null==c?void 0:c.id))?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)("i",{className:"fi fi-envelope float-start"}),(0,t.jsx)("button",{className:"badge rounded-pill bg-secondary-soft border-0",onClick:()=>{j(!0)},children:u("buttontext")})]}),(0,t.jsx)("div",{className:"modal modal-lg fade show ".concat(p?"d-block":"d-none"),tabIndex:-1,role:"dialog",children:(0,t.jsx)("div",{className:"modal-dialog",role:"document",children:(0,t.jsxs)("div",{className:"modal-content",children:[(0,t.jsxs)("div",{className:"modal-header",children:[(0,t.jsx)("h5",{className:"modal-title",id:"exampleModalLabelMd",children:u("title")}),(0,t.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:U})]}),(0,t.jsxs)("div",{className:"modal-body",children:["loading"===m?(0,t.jsx)(b.Z,{}):(0,t.jsx)(t.Fragment,{children:A?(0,t.jsx)("div",{className:"alert alert-success mt-3",role:"alert",children:u("sent")}):(0,t.jsx)(t.Fragment,{children:(null==d?void 0:d.user)?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"mt-2 mb-4",children:[(0,t.jsxs)("div",{className:"fs-5 mb-3 fw-medium",children:[u("message")," ",(0,t.jsx)("sup",{className:"text-danger",children:"*"})]}),(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsx)(v.Z,{className:"form-control ".concat(C.includes("body")&&w?"is-invalid":""),placeholder:u("message"),id:"bodyEn",minRows:5,maxLength:1e3,value:null==S?void 0:S.body,disabled:N,onChange:e=>{var l;return I("body",null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.value)}}),(0,t.jsx)("label",{htmlFor:"bodyEn",children:u("message")})]}),(0,t.jsx)("div",{children:(0,t.jsxs)("small",{className:"smaller text-muted",children:[1e3-(null==S?void 0:null===(s=S.body)||void 0===s?void 0:s.length)||0,"/",1e3," ",u("charsremain")]})})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"alert alert-info",role:"alert",children:u("loginneed")}),(0,t.jsx)("div",{className:"mt-5 mb-4 text-center",children:(0,t.jsxs)("button",{role:"button",className:"btn btn-sm btn-primary",onClick:()=>(0,x.signIn)(),children:[(0,t.jsx)("span",{className:"group-icon float-start",children:(0,t.jsx)(r.G,{icon:o.BEY})}),(0,t.jsx)("span",{children:u("signin")})]})})]})})}),N?(0,t.jsx)("div",{className:"progress mb-2",children:(0,t.jsx)("div",{className:"progress-bar progress-bar-striped bg-primary",role:"progressbar",style:{width:"100%"},"aria-valuenow":100,"aria-valuemin":0,"aria-valuemax":100})}):(0,t.jsx)(t.Fragment,{children:D?(0,t.jsx)("div",{className:"alert alert-danger",role:"alert",children:u("sendingerror")}):null})]}),(null==d?void 0:d.user)?(0,t.jsx)("div",{className:"modal-footer",children:A?(0,t.jsxs)("button",{type:"button",className:"btn btn-success text-white",disabled:N,onClick:U,children:[(0,t.jsx)("i",{className:"fi fi-check"}),u("close")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",disabled:N,onClick:U,children:[(0,t.jsx)("i",{className:"fi fi-close"}),u("cancel")]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-primary",disabled:N||(null==C?void 0:C.length)>0,onClick:_,children:[(0,t.jsx)("i",{className:"fi fi-send"}),u("confirm")]})]})}):null]})})}),(0,t.jsx)("div",{className:"modal-backdrop fade ".concat(p?"show":"hide")})]}):null},N=e=>{var l,s,m,u,x,v,p,g,b,N;let{post:y={},user:w={},isPriceHidden:k=!1}=e,S=(0,i.useTranslations)("Listing"),P=(0,i.useLocale)(),[C,L]=(0,a.useState)((null==w?void 0:w.id)===(null==y?void 0:null===(l=y.user)||void 0===l?void 0:l.id)),A=(null==y?void 0:null===(s=y.category)||void 0===s?void 0:s.isBlur)&&!(null==w?void 0:w.id)||!1,E=null==y?void 0:null===(m=y.user)||void 0===m?void 0:m.businessProfile,D=!!(null==E?void 0:E.isProfileApproved),T=(null==y?void 0:null===(u=y.user)||void 0===u?void 0:u.isVerifiedBusiness)||!1,U=D?"uk"===P&&E.businessNameUk||E.businessName:null,I=!!((null==E?void 0:E.slug)&&D),F=!!((null==y?void 0:y.phone)&&(null==y?void 0:y.isShowPhone)),_=!!((null==y?void 0:y.phone)&&((null==y?void 0:y.isShowSMS)||(null==y?void 0:y.isShowWhatsApp)||F)),R=!!(null==y?void 0:y.email)||!!((null==y?void 0:y.isSecureEmail)&&(null==y?void 0:y.hasEmail));return R||_?(0,t.jsxs)("div",{className:k?"mt-0":"mt-4",children:[(null==y?void 0:null===(x=y.user)||void 0===x?void 0:x.public)&&!A?(0,t.jsxs)(t.Fragment,{children:[(null==y?void 0:null===(v=y.user)||void 0===v?void 0:v.public)&&D?(0,t.jsx)(t.Fragment,{children:I?(0,t.jsx)(n.default,{href:"/".concat(P,"/business/").concat(E.slug),className:"text-decoration-none",children:(0,t.jsx)(d,{businessProfile:E,businessName:U})}):(0,t.jsx)(d,{businessProfile:E,businessName:U})}):null,(0,t.jsxs)("div",{className:"d-flex align-items-start clearfix small ".concat((null==y?void 0:null===(p=y.user)||void 0===p?void 0:p.public)&&D?"justify-content-center text-center":""),children:[T?null:(null==y?void 0:null===(b=y.user)||void 0===b?void 0:null===(g=b.businessProfile)||void 0===g?void 0:g.isProfileApproved)?(0,t.jsx)(r.G,{icon:o.HXv,className:"float-start text-muted"}):(0,t.jsx)(r.G,{icon:o.ILF,className:"float-start text-muted"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{children:[(0,t.jsx)(h,{user:null==y?void 0:y.user}),T?(0,t.jsx)("span",{className:"listing-verified",title:"Verified Business",children:(0,t.jsx)(c.HG,{})}):null]}),I&&(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsxs)(n.default,{href:"/".concat(P,"/business/").concat(E.slug),className:"text-decoration-none",style:{fontSize:"0.7rem",color:"rgb(0, 91, 187)"},children:[S("viewBusinessProfile")," â"]})})]})]})]}):null,C?(0,t.jsxs)(t.Fragment,{children:[R?(0,t.jsx)(t.Fragment,{children:(null==y?void 0:y.isSecureEmail)?(0,t.jsx)(j,{post:y,user:w}):(0,t.jsxs)("div",{className:"mt-2 d-flex align-items-center",children:[(0,t.jsx)(r.G,{icon:o.FU$,className:"float-start text-muted"}),(0,t.jsx)("a",{href:"mailto:".concat(y.email),className:"d-block badge rounded-pill bg-secondary-soft",style:{textOverflow:"ellipsis",overflow:"hidden",
1whiteSpace:"nowrap",verticalAlign:"middle",paddingTop:"6px"},children:y.email})]})}):null,_?(0,t.jsxs)(t.Fragment,{children:[F?(0,t.jsxs)("div",{className:"mt-2 d-flex",children:[(0,t.jsx)("i",{className:"fi fi-phone float-start"}),(0,t.jsxs)("span",{className:"badge rounded-pill bg-secondary-soft",children:[null==y?void 0:y.phone,(null==y?void 0:y.phoneExt)?" x ".concat(y.phoneExt):""]})]}):null,(0,t.jsxs)("div",{className:"mt-3",children:[F?(0,t.jsx)("a",{href:"tel:".concat(null==y?void 0:y.phone),className:"btn btn-sm btn-success btn-soft rounded-pill text-black text-white-hover",children:(0,t.jsx)(c.S9,{})}):null,(null==y?void 0:y.isShowSMS)?(0,t.jsx)("a",{href:"sms:".concat(null==y?void 0:y.phone),className:"btn btn-sm btn-success btn-soft rounded-pill text-black text-white-hover",children:(0,t.jsx)(c.Pn,{})}):null,(null==y?void 0:y.isShowWhatsApp)?(0,t.jsx)("a",{href:"https://wa.me/".concat(null==y?void 0:null===(N=y.phone)||void 0===N?void 0:N.replace(/\D/,"")),className:"btn btn-sm btn-success btn-soft rounded-pill text-black text-white-hover",target:"_blank",children:(0,t.jsx)(c.ru,{})}):null]})]}):null]}):(0,t.jsx)(t.Fragment,{children:A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:"/".concat(P,"/login"),className:"btn btn-xs w-100 btn-primary mt-3",children:[(0,t.jsx)("span",{className:"group-icon",children:(0,t.jsx)(r.G,{icon:o.BEY})}),(0,t.jsx)("span",{className:"px-0 d-none d-lg-inline-block",children:S("btnlogin")})]}),(0,t.jsx)("div",{className:" text-center smaller mt-2",children:S("loginneed")})]}):(0,t.jsxs)("button",{className:"btn btn-xs w-100 btn-warning mt-3",onClick:()=>{L(!0),(0,f.hj)("POST","/api/post/".concat(y.id,"/contacts"),{})},children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":"Contacts revealed",className:"me-2",style:{color:"var(--bs-secondary-color)"},children:[(0,t.jsx)("title",{children:"Contacts revealed"}),(0,t.jsx)("path",{d:"M20 6v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2z"}),(0,t.jsx)("path",{d:"M10 16h6"}),(0,t.jsx)("path",{d:"M13 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),(0,t.jsx)("path",{d:"M4 8h3"}),(0,t.jsx)("path",{d:"M4 12h3"}),(0,t.jsx)("path",{d:"M4 16h3"})]}),S("showcontacts")]})})]}):null}},94158:function(e,l,s){"use strict";s.r(l),s.d(l,{ListingUnavailable:function(){return o}});var t=s(57437),n=s(27648),a=s(42586),i=s(58916),r=s(35217);function o(e){let{category:l,locale:s,categories:o,showParentLink:c=!1,isUsingParentCategory:d=!1}=e,m=(0,a.useTranslations)("Listing"),u=()=>l?"uk"===s&&l.name_uk||l.name_en:m("allCategories");return(0,t.jsx)("div",{className:"container py-5",children:(0,t.jsx)("div",{className:"row justify-content-center",children:(0,t.jsx)("div",{className:"col-12 col-md-10 col-lg-8",children:(0,t.jsx)("div",{className:"card border-0 shadow-sm text-center",children:(0,t.jsxs)("div",{className:"card-body py-5 px-4",children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(i.G,{icon:r.eHv,className:"text-warning",style:{fontSize:"4rem"}})}),(0,t.jsx)("h1",{className:"h3 mb-3",children:m("listingUnavailable",{defaultValue:"Listing No Longer Available"})}),(0,t.jsx)("p",{className:"text-muted mb-4",children:d?m("listingUnavailableDescriptionParent",{defaultValue:"This listing has expired or is no longer available. But don't worry, you can find similar listings in the related category!"}):m("listingUnavailableDescription",{defaultValue:"This listing has expired or is no longer available. But don't worry, we have many other great listings in this category!"})}),(0,t.jsxs)("div",{className:"d-flex flex-column flex-sm-row gap-3 justify-content-center",children:[l&&(0,t.jsxs)(n.default,{href:(()=>{if(!l)return"/".concat(s,"/category");if(l.parent)return"/".concat(s,"/category/").concat(l.parent.slug,"/").concat(l.slug);if(l.parentId){let e=null==o?void 0:o.find(e=>e.id===l.parentId);if(e)return"/".concat(s,"/category/").concat(e.slug,"/").concat(l.slug)}return"/".concat(s,"/category/").concat(l.slug)})(),className:"btn btn-primary btn-sm px-4",children:[(0,t.jsx)(i.G,{icon:r.cC_,className:"me-2"}),m("browseCategory",{category:u(),defaultValue:"Browse ".concat(u())})]}),(0,t.jsxs)(n.default,{href:"/".concat(s),className:"btn btn-outline-secondary btn-sm px-4",children:[(0,t.jsx)(i.G,{icon:r.J9Y,className:"me-2"}),m("goHome",{defaultValue:"Go to Homepage"})]})]}),c&&(null==l?void 0:l.parent)&&(0,t.jsxs)("div",{className:"mt-4 pt-3 border-top",children:[(0,t.jsx)("small",{className:"text-muted",children:m("orBrowseParentCategory",{defaultValue:"Or browse the parent category:"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(n.default,{href:"/".concat(s,"/category/").concat(l.parent.slug),className:"btn btn-sm btn-outline-primary",children:"uk"===s&&l.parent.name_uk||l.parent.name_en})})]})]})})})})})}l.default=o},40029:function(e,l,s){"use strict";s.r(l),s.d(l,{default:function(){return u}});var t=s(57437),n=s(2265),a=s(80605),i=s(42586),r=s(58916),o=s(35217),c=s(15924);let d={uk:[{id:1,reason:"ШаÑ
ÑайÑÑво"},{id:2,reason:"ÐепÑавомÑÑний конÑенÑ"},{id:3,reason:"ÐоÑÑÑÐµÐ½Ð½Ñ Ð·Ð°ÐºÐ¾Ð½Ñ"},{id:4,reason:"Спам/дÑблÑваннÑ"},{id:5,reason:"ÐекоÑекÑна каÑегоÑÑÑ"},{id:6,reason:"ÐедоÑÑовÑÑна ÑнÑоÑмаÑÑÑ"},{id:7,reason:"ÐоÑÑÑÐµÐ½Ð½Ñ Ð°Ð²ÑоÑÑÑкиÑ
пÑав"},{id:8,reason:"ÐеакÑÑалÑне оголоÑеннÑ"},{id:9,reason:"ÐееÑиÑна поведÑнка"},{id:10,reason:"ÐоÑÑÑÐµÐ½Ð½Ñ ÐºÐ¾Ð½ÑÑденÑÑйноÑÑÑ"}],en:[{id:1,reason:"Fraud"},{id:2,reason:"Inappropriate content"},{id:3,reason:"Law violation"},{id:4,reason:"Spam/duplication"},{id:5,reason:"Incorrect category"},{id:6,reason:"Misleading information"},{id:7,reason:"Copyright infringement"},{id:8,reason:"Outdated listing"},{id:9,reason:"Unethical behavior"},{id:10,reason:"Privacy violation"}]};var m=s(90769),u=e=>{var l,s;let{post:u={}}=e,{data:h,status:x}=(0,a.useSession)(),v=(0,i.useTranslations)("RedFlag"),p=(0,i.useLocale)(),[g,b]=(0,n.use
1State)(!1),[f,j]=(0,n.useState)(0),[N,y]=(0,n.useState)(!1),[w,k]=(0,n.useState)(!1),[S,P]=(0,n.useState)(!1),C=()=>{j(0),b(!1),k(!1),P(!1)},L=async()=>{if(!(null==h?void 0:h.user))return null;k(!1),P(!1),y(!0);let e=await (0,m.hj)("POST","/api/post/".concat(u.id,"/report"),{reason:f});y(!1),console.log(">>> response",e);let{success:l}=e;if(!l){P(!0);return}P(!1),k(!0)};return(null==u?void 0:u.id)&&(null==u?void 0:null===(l=u.user)||void 0===l?void 0:l.id)!==Number(null==h?void 0:null===(s=h.user)||void 0===s?void 0:s.id)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsxs)("button",{className:"btn btn-xs smaller",onClick:()=>{b(!0)},children:[(0,t.jsx)("svg",{width:"14px",height:"14px",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-flag text-danger",viewBox:"0 0 16 16",children:(0,t.jsx)("path",{d:"M14.778.085A.5.5 0 0 1 15 .5V8a.5.5 0 0 1-.314.464L14.5 8l.186.464-.003.001-.006.003-.023.009a12.435 12.435 0 0 1-.397.15c-.264.095-.631.223-1.047.35-.816.252-1.879.523-2.71.523-.847 0-1.548-.28-2.158-.525l-.028-.01C7.68 8.71 7.14 8.5 6.5 8.5c-.7 0-1.638.23-2.437.477A19.626 19.626 0 0 0 3 9.342V15.5a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 1 0v.282c.226-.079.496-.17.79-.26C4.606.272 5.67 0 6.5 0c.84 0 1.524.277 2.121.519l.043.018C9.286.788 9.828 1 10.5 1c.7 0 1.638-.23 2.437-.477a19.587 19.587 0 0 0 1.349-.476l.019-.007.004-.002h.001"})}),(0,t.jsx)("span",{className:"ms-2",children:v("report")})]})}),(0,t.jsx)("div",{className:"modal modal-lg fade show ".concat(g?"d-block":"d-none"),tabIndex:-1,role:"dialog",children:(0,t.jsx)("div",{className:"modal-dialog",role:"document",children:(0,t.jsxs)("div",{className:"modal-content",children:[(0,t.jsxs)("div",{className:"modal-header",children:[(0,t.jsx)("h5",{className:"modal-title",id:"exampleModalLabelMd",children:v((null==h?void 0:h.user)?"title":"report")}),(0,t.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:C})]}),(0,t.jsxs)("div",{className:"modal-body",children:["loading"===x?(0,t.jsx)(c.Z,{}):(0,t.jsx)(t.Fragment,{children:w?(0,t.jsx)("div",{className:"alert alert-success mt-3",role:"alert",children:v("sent")}):(0,t.jsx)(t.Fragment,{children:(null==h?void 0:h.user)?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"mt-2 mb-4",children:[(0,t.jsxs)("div",{className:"fs-5 mb-3 fw-medium",children:[v("body")," ",(0,t.jsx)("sup",{className:"text-danger",children:"*"})]}),(0,t.jsxs)("div",{className:"form-floating",children:[(0,t.jsxs)("select",{className:"form-control",id:"redflagreason",value:f,disabled:N,onChange:e=>j(Number(e.target.value)),children:[(0,t.jsx)("option",{value:0,children:v("select")}),d[p||"en"].map(e=>(0,t.jsx)("option",{value:e.id,children:e.reason},e.id))]}),(0,t.jsx)("label",{htmlFor:"redflagreason",children:v("reporttitle")})]})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"alert alert-info",role:"alert",children:v("loginneed")}),(0,t.jsx)("div",{className:"mt-5 mb-4 text-center",children:(0,t.jsxs)("button",{role:"button",className:"btn btn-sm btn-primary",onClick:()=>(0,a.signIn)(),children:[(0,t.jsx)("span",{className:"group-icon float-start",children:(0,t.jsx)(r.G,{icon:o.BEY})}),(0,t.jsx)("span",{children:v("signin")})]})})]})})}),N?(0,t.jsx)("div",{className:"progress mb-2",children:(0,t.jsx)("div",{className:"progress-bar progress-bar-striped bg-primary",role:"progressbar",style:{width:"100%"},"aria-valuenow":100,"aria-valuemin":0,"aria-valuemax":100})}):(0,t.jsx)(t.Fragment,{children:S?(0,t.jsx)("div",{className:"alert alert-danger",role:"alert",children:v("sendingerror")}):null})]}),(0,t.jsx)("div",{className:"modal-footer",children:w?(0,t.jsxs)("button",{type:"button",className:"btn btn-success text-white",disabled:N,onClick:C,children:[(0,t.jsx)("i",{className:"fi fi-check"}),v("close")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",disabled:N,onClick:C,children:[(0,t.jsx)("i",{className:"fi fi-close"}),v("cancel")]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-primary",disabled:N||!(f>0),onClick:L,children:[(0,t.jsx)("i",{className:"fi fi-send"}),v("confirm")]})]})})]})})}),(0,t.jsx)("div",{className:"modal-backdrop fade ".concat(g?"show":"hide")})]}):null}},82606:function(e,l,s){"use strict";s.d(l,{default:function(){return u}});var t=s(57437);s(2265);var n=s(42586),a=s(77240),i=s(40679),r=s(71598);let o=["headline","availability","skills","certifications","workExperience","education","languages"],c=e=>"uk"===e?"Uk":"En",d=(e,l)=>{if(!e)return e;let s=c(l),t={...e};for(let l of o){let n=e["".concat(l).concat(s)];null==n||Array.isArray(n)&&0===n.length||(t[l]=n)}return t},m=e=>{if(!e)return;let l=e.trim();if(l)return/^https?:\/\//i.test(l)?l:"https://".concat(l)};var u=e=>{let{post:l={}}=e,s=(0,n.useTranslations)("Listing.resume"),o=(0,n.useLocale)(),c=d(null==l?void 0:l.resumeData,o);if(!c)return null;let{yearsExperience:u,desiredSalaryMin:h,desiredSalaryMax:x,salaryPeriod:v,currency:p,employmentTypeWanted:g,workArrangement:b,availability:f,skills:j,languages:N,workExperience:y,education:w,certifications:k,links:S,originalCvUrl:P}=c,C={USD:"$",EUR:"â¬",UAH:"â´",GBP:"\xa3",PLN:"zÅ",CAD:"C$"},L=e=>{let l=p||"USD",s=C[l]||"",t=new Intl.NumberFormat("uk"===o?"uk-UA":"en-US").format(e);return s?"".concat(s).concat(t):"".concat(t," ").concat(l)},A=null!=h||null!=x,E=e=>{if(!e)return"";let l=new Date(e);return isNaN(l.getTime())?e:(0,a.WU)(l,"LLL yyyy",{locale:"uk"===o?i.uk:r._})},D=[null!=u?{label:s("yearsExperience"),value:"".concat(u," ").concat(s("years"))}:null,A?{label:s("desiredSalary"),value:"".concat(null!=h&&null!=x?"".concat(L(h)," â ").concat(L(x)):null!=h?"".concat(s("from")," ").concat(L(h)):null!=x?"".concat(s("upto")," ").concat(L(x)):"").concat(v?" / ".concat(s("period.".concat(v))):"")}:null,f?{label:s("availability"),value:f}:null,b?{label:s("workArrangement"),value:s("workArrangementOptions.".concat(b))}:null,(Array.isArray(g)?g:g?[g]:[]).length>0?{label:s("employmentTypeWanted"),value:(Array.isArray(g)?g:[g]).map(e=>s("employmentTypeOptions.".concat(e))).join(", ")}
1:null].filter(Boolean);return(0,t.jsxs)("div",{className:"clearfix mt-5",children:[(0,t.jsx)("h4",{className:"text-center text-lg-start mb-4",children:s("title")}),D.length>0?(0,t.jsx)("div",{className:"bg-white shadow-primary-xs rounded p-3 p-lg-4 mb-4",children:(0,t.jsx)("div",{className:"row g-3 text-center text-lg-start",children:D.map(e=>(0,t.jsxs)("div",{className:"col-6 col-lg-4",children:[(0,t.jsx)("div",{className:"smaller text-muted",children:e.label}),(0,t.jsx)("div",{className:"fw-medium",suppressHydrationWarning:!0,children:e.value})]},e.label))})}):null,Array.isArray(y)&&y.length>0?(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h5",{className:"mb-2 text-center text-lg-start",children:s("workExperience")}),(0,t.jsx)("div",{className:"ps-2",children:y.map((e,l)=>(0,t.jsxs)("div",{className:"ps-3 pb-4 position-relative",style:{borderLeft:l<y.length-1?"2px solid #e9ecef":"2px solid transparent"},children:[(0,t.jsx)("span",{className:"position-absolute rounded-circle bg-primary",style:{width:"10px",height:"10px",left:"-6px",top:"4px"}}),(0,t.jsxs)("div",{className:"fw-medium",children:[e.title,e.company?(0,t.jsxs)("span",{className:"text-muted",children:[" \xb7 ",e.company]}):null,e.current?(0,t.jsx)("span",{className:"badge bg-primary-soft text-primary ms-2",children:s("current")}):null]}),(0,t.jsxs)("div",{className:"smaller text-muted",suppressHydrationWarning:!0,children:[E(e.start),e.start||e.end||e.current?" â ":"",e.current?s("present"):E(e.end),e.location?" \xb7 ".concat(e.location):""]}),Array.isArray(e.bullets)&&e.bullets.length>0?(0,t.jsx)("ul",{className:"list-unstyled m-0 mt-2 fs-6",children:e.bullets.map((e,l)=>(0,t.jsxs)("li",{className:"list-item mb-1",children:[(0,t.jsx)("i",{className:"fi fi-check text-primary me-2"}),e]},l))}):null]},l))})]}):null,Array.isArray(w)&&w.length>0?(0,t.jsxs)("div",{className:"mb-4 text-center text-lg-start",children:[(0,t.jsx)("h5",{className:"mb-2",children:s("education")}),(0,t.jsx)("ul",{className:"list-unstyled m-0 fs-6",children:w.map((e,l)=>(0,t.jsxs)("li",{className:"list-item mb-3",children:[(0,t.jsxs)("div",{className:"fw-medium",children:[e.degree,e.field?(0,t.jsxs)("span",{className:"text-muted",children:[", ",e.field]}):null]}),(0,t.jsx)("div",{className:"small",children:e.school}),e.start||e.end?(0,t.jsxs)("div",{className:"smaller text-muted",suppressHydrationWarning:!0,children:[E(e.start),e.start&&e.end?" â ":"",E(e.end)]}):null]},l))})]}):null,Array.isArray(j)&&j.length>0?(0,t.jsxs)("div",{className:"mb-4 text-center text-lg-start",children:[(0,t.jsx)("h5",{className:"mb-2",children:s("skills")}),(0,t.jsx)("div",{className:"d-flex flex-wrap gap-2 justify-content-center justify-content-lg-start",children:j.map((e,l)=>(0,t.jsx)("span",{className:"badge bg-primary-soft text-primary",children:e},l))})]}):null,Array.isArray(N)&&N.length>0?(0,t.jsxs)("div",{className:"mb-4 text-center text-lg-start",children:[(0,t.jsx)("h5",{className:"mb-2",children:s("languages")}),(0,t.jsx)("ul",{className:"list-unstyled m-0 fs-6 d-inline-block text-start",children:N.map((e,l)=>(0,t.jsxs)("li",{className:"list-item mb-1",children:[(0,t.jsx)("span",{className:"fw-medium",children:e.lang}),e.level?(0,t.jsxs)("span",{className:"text-muted",children:[" â ",e.level]}):null]},l))})]}):null,Array.isArray(k)&&k.length>0?(0,t.jsxs)("div",{className:"mb-4 text-center text-lg-start",children:[(0,t.jsx)("h5",{className:"mb-2",children:s("certifications")}),(0,t.jsx)("ul",{className:"list-unstyled m-0 fs-6 d-inline-block text-start",children:k.map((e,l)=>(0,t.jsxs)("li",{className:"list-item mb-1",children:[(0,t.jsx)("i",{className:"fi fi-award text-primary me-2"}),e]},l))})]}):null,((null==S?void 0:S.portfolio)||(null==S?void 0:S.linkedin)||(null==S?void 0:S.github)||P)&&(0,t.jsxs)("div",{className:"mb-4 text-center text-lg-start",children:[(0,t.jsx)("h5",{className:"mb-2",children:s("links")}),(0,t.jsxs)("div",{className:"d-flex flex-wrap gap-2 justify-content-center justify-content-lg-start",children:[(null==S?void 0:S.portfolio)?(0,t.jsxs)("a",{href:m(S.portfolio),target:"_blank",rel:"noopener noreferrer",className:"btn btn-dark btn-sm",children:[(0,t.jsx)("i",{className:"fi fi-link me-1"})," ",s("portfolio")]}):null,(null==S?void 0:S.linkedin)?(0,t.jsxs)("a",{href:m(S.linkedin),target:"_blank",rel:"noopener noreferrer",className:"btn btn-dark btn-sm",children:[(0,t.jsx)("i",{className:"fi fi-link me-1"})," LinkedIn"]}):null,(null==S?void 0:S.github)?(0,t.jsxs)("a",{href:m(S.github),target:"_blank",rel:"noopener noreferrer",className:"btn btn-dark btn-sm",children:[(0,t.jsx)("i",{className:"fi fi-link me-1"})," GitHub"]}):null,P?(0,t.jsxs)("a",{href:P,target:"_blank",rel:"noopener noreferrer",className:"btn btn-primary btn-sm",children:[(0,t.jsx)("i",{className:"fi fi-download me-1"})," ",s("downloadCv")]}):null]})]})]})}},93619:function(e,l,s){"use strict";s.d(l,{default:function(){return d}});var t=s(57437),n=s(2265),a=s(99376),i=s(11595),r=e=>{var l,s;let{item:n,title:a="Photo",colSize:r=4,index:o=0,onClick:c,isAdmin:d=!1,adminButtons:m,isBlur:u=!1}=e;if(!(null==n?void 0:n.imageURL)||!(null==n?void 0:null===(l=n.imageMeta)||void 0===l?void 0:l.width)||!(null==n?void 0:null===(s=n.imageMeta)||void 0===s?void 0:s.height))return!1;let h=(0,i.YY)(n.imageMeta.width,n.imageMeta.height,800,600);return(0,t.jsxs)("div",{className:"col-12 col-lg-".concat(r," mb-4"),children:[(0,t.jsxs)("figure",{className:"rounded caption-1 position-relative figure-gallery transition-hover-zoom-img shadow",onClick:()=>null==c?void 0:c(o),children:[(0,t.jsx)("img",{src:n.imageURL,alt:"".concat((null==n?void 0:n.name)||a||"Photo"," - www.sharvarok.com"),title:(null==n?void 0:n.name)||a||"Photo",...h,className:"img-fluid ".concat(u?"blur":""),style:{objectFit:"cover",maxHeight:"150px"}}),u?null:(0,t.jsx)("div",{className:"overlay",children:(0,t.jsx)("i",{className:"fi fi-eye"})})]}),m?(0,t.jsx)(m,{photoId:n.id,status:null==n?void 0:n.status}):null]})},o=s(58795),c=e=>{var l,s;let{item:a,index:i=-1,hasNext:r=!1,hasPrev:c=!1,onClose:d=()=>{},onNext:m=e=>{console.log(">>> LightBox onNext",e)},onPrev:u=e=>{console.log(">>> LightBox onPrev",e)}}=e;if(!a)return!1;let h=e=>{e.preventDefault(),e.stopPropagation(),u(i)},x=e=>{e.preventDefault(),e.stopPropagation(),m(i)},v=e=>{switch(console.log(">>> key",e.key),e.key){case"Escape":d();break;case"ArrowLeft":h(e);break;case"ArrowRight":x(e)}};return(0,n.useEffect)(()=>{let e=e=>{e.preventDefault()};return document.addEventListener("contextmenu",e),window.addEventListener("keyup",v),()=>{document.removeEventListener("contextmenu",e),window.removeEventListener("keyup",v)}},[a,i]),(0,t.jsxs)("div",{className:"lightbox",id:"lightbox",onClick:e=>{e.preventDefault(),window.removeEventListener("keyup",v),d()},children:[(0,t.jsx)("button",{type:"button",className:"button button-prev",disabled:!c,onClick:h,children:(0,t.jsx)("i",{className:"fi fi-arrow-left-full"})}),(0,t.jsxs)("figure",{className:"lcontainer m-0",children:[(0,t.jsx)("img",{src:a.imageURL,alt:"",width:a.imageMeta.width,height:a.imageMeta.height,className:"img-fluid"}),(0,t.jsxs)("figcaption",{className:"px-4 py-3 text-light rounded",children:[(0,t.jsx)("h2",{className:"h5 small fw-medium mb-0",itemProp:"name",children:null==a?void 0:a.name}),(null==a?void 0:a.description)?(0,t.jsx)("div",{className:"mt-1 smaller",itemProp:"description",children:(0,t.jsx)("span",{itemProp:"name",children:a.description})}):null,(null==a?void 0:null===(l=a.divesite)||void 0===l?void 0:l.name)?(0,t.jsxs)("div",{className:"mt-2 smaller",itemProp:"place",itemScope:!0,itemType:"https://schema.org/Place",children:["\uD83D\uDCCD"," ",(0,t.jsx)("a",{href:"/redsea/divesites/".concat(a.divesite.slug),className:"text-white",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("span",{itemProp:"name",children:a.divesite.name})})]}):null,(null==a?void 0:null===(s=a.author)||void 0===s?void 0:s.name)&&!a.source?(0,t.jsxs)("div",{className:"mt-1 smaller",itemProp:"author",itemScope:!0,itemType:"https://schema.org/Person",children:["\xa9 ",(0,t.jsx)("span",{itemProp:"name",children:a.author.name})]}):null,a.source?(0,t.jsx)("div",{className:"mt-1 smaller",itemProp:"author",itemScope:!0,itemType:"https://schema.org/Person",children:(0,t.jsx)("a",{href:a.sourceURL||"#!",target:"_blank",className:"text-white",onClick:e=>{e.stopPropagation()},children:(0,t.jsx)("span",{itemProp:"name",className:"d-flex align-items-center",children:a.source.startsWith("IG: ")?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.R,{size:12,className:"me-1"}),a.source.replace(/^IG: /,"")]}):(0,t.jsxs)(t.Fragment,{children:["\xa9 ",a.source]})})})}):null]})]}),(0,t.jsx)("button",{type:"button",className:"button button-next",disabled:!r,onClick:x,children:(0,t.jsx)("i",{className:"fi fi-arrow-right-full"})})]})},d=e=>{let{title:l="Photo",items:s=[],cols:i=3,className:o="",isAdmin:d=!1,withHeader:m=!1,adminButtons:u,isBlur:h=!1,callbackUrl:x="/"}
1=e,v=(0,a.useRouter)(),[p,g]=(0,n.useState)(-1),[b,f]=(0,n.useState)(!1),[j,N]=(0,n.useState)(!1),y=e=>{h?v.push("/login?callbackUrl=".concat(x)):g(e)},w=e=>{e>0&&g(e-1)},k=e=>{e<s.length-1&&g(e+1)};return(0,n.useEffect)(()=>{f(p>0),N(p<s.length-1)},[p]),!!s&&(null==s?void 0:s.length)!==0&&(0,t.jsxs)("div",{className:"clearfix ".concat(o),children:[m&&(0,t.jsx)("h4",{className:"text-center text-lg-start mb-4",children:"Photos"}),(0,t.jsx)("div",{className:"row",children:s.map((e,s)=>(0,t.jsx)(r,{item:e,index:s,title:l,onClick:y,isAdmin:d,adminButtons:u,colSize:12/i,isBlur:h},s))}),s[p]?(0,t.jsx)(c,{item:s[p],index:p,hasPrev:b,onPrev:()=>w(p),hasNext:j,onNext:()=>k(p),onClose:()=>{g(-1)}}):null]})}},15924:function(e,l,s){"use strict";var t=s(57437),n=s(58916),a=s(35217);l.Z=e=>{let{text:l="Loading...",className:s=""}=e;return(0,t.jsxs)("div",{className:s,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",gap:"20px",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(n.G,{icon:a.LM3,spin:!0,size:"6x"}),(0,t.jsx)("div",{children:l})]})}},11595:function(e,l,s){"use strict";s.d(l,{Fb:function(){return n},YY:function(){return i},tf:function(){return a}});let t={en:"/default-post-image-en-v2.jpg",uk:"/default-post-image-uk-v2.jpg"},n={width:1672,height:941},a=e=>t[e]||t.en,i=(e,l,s,t)=>{let n=Math.min(s/e,t/l);return{width:e*n,height:l*n,ratio:n}}}},function(e){e.O(0,[2807,3676,3958,2972,8635,2957,2586,605,7240,1644,1763,4376,3988,5661,5398,5595,7182,5618,4691,2971,2318,1744],function(){return e(e.s=95937)}),_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.