/opt/canhelp/apps/web/.next/server/app
Edit: /opt/canhelp/apps/web/.next/server/app/page.js (54255B)
(()=>{var a={};a.id=974,a.ids=[974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},6617:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(73653),e=c(97714),f=c(85250),g=c(37587),h=c(22369),i=c(1889),j=c(96232),k=c(22841),l=c(46537),m=c(46027),n=c(78559),o=c(75928),p=c(19374),q=c(65971),r=c(261),s=c(79898),t=c(32967),u=c(26713),v=c(40139),w=c(14248),x=c(59580),y=c(57749),z=c(53123),A=c(89745),B=c(86439),C=c(58671),D=c.n(C),E=c(18283),F=c(39818),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,64114)),"/opt/canhelp/apps/web/src/app/page.tsx"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,2645))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,45639))).default(a)],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,47570)),"/opt/canhelp/apps/web/src/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,58671,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.bind(c,33506)),"/opt/canhelp/apps/web/src/app/not-found.tsx"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,15034,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,54693,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,2645))).default(a)],apple:[async a=>(await Promise.resolve().then(c.bind(c,45639))).default(a)],openGraph:[],twitter:[],manifest:void 0}}]}.children,I=["/opt/canhelp/apps/web/src/app/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},7935:(a,b,c)=>{Promise.resolve().then(c.bind(c,54299)),Promise.resolve().then(c.bind(c,20077)),Promise.resolve().then(c.bind(c,40295)),Promise.resolve().then(c.bind(c,38738)),Promise.resolve().then(c.bind(c,48308)),Promise.resolve().then(c.bind(c,79489)),Promise.resolve().then(c.bind(c,85238)),Promise.resolve().then(c.t.bind(c,94496,23))},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},20077:(a,b,c)=>{"use strict";c.d(b,{FaqAccordion:()=>f});var d=c(78157),e=c(31768);function f({items:a}){let[b,c]=(0,e.useState)(null);return(0,d.jsx)("div",{className:"space-y-3",children:a.map((a,e)=>{let f=b===e;return(0,d.jsxs)("div",{className:"modern-card overflow-hidden transition-all duration-200",children:[(0,d.jsxs)("button",{type:"button",className:"w-full flex items-center justify-between gap-4 px-6 py-5 text-left",onClick:()=>c(f?null:e),children:[(0,d.jsx)("span",{className:"font-semibold text-gray-900 text-base leading-snug",children:a.q}),(0,d.jsx)("span",{className:`shrink-0 w-6 h-6 rounded-full bg-green-50 flex items-center justify-center transition-transform ${f?"rotate-45":""}`,children:(0,d.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,d.jsx)("path",{d:"M7 2v10M2 7h10",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round"})})})]}),f&&(0,d.jsx)("div",{className:"px-6 pb-5 text-green-700 text-sm leading-relaxed border-t border-green-100 pt-4",children:a.a})]},e)})})}},21241:(a,b,c)=>{"use strict";c.d(b,{HeroSearch:()=>d});let d=(0,c(25459).registerClientReference)(function(){throw Error("Attempted to call HeroSearch() from the server but HeroSearch is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/opt/canhelp/apps/web/src/components/HeroSearch.tsx","HeroSearch")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30445:(a,b,c)=>{"use strict";c.d(b,{BecomeSpecialistButton:()=>d});let d=(0,c(25459).registerClientReference)(function(){throw Error("Attempted to call BecomeSpecialistButton() from the server but BecomeSpecialistButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/opt/canhelp/apps/web/src/components/BecomeSpecialistButton.tsx","BecomeSpecialistButton")},33873:a=>{"use strict";a.exports=require("path")},34631:a=>{"use strict";a.exports=require("tls")},38738:(a,b,c)=>{"use strict";c.d(b,{HomeCategoryGrid:()=>h});var d=c(78157),e=c(31768),f=c(71159),g=c(44972);function h({categories:a,locale:b,isSpecialist:c,allInLabel:h,categoryLabel:i,selectLabel:j,cancelLabel:k}){let l=(0,f.useRouter)(),[m,n]=(0,e.useState)(null),o=(0,e.useMemo)(()=>a.find(a=>a.slug===m)??null,[a,m]),p=o?.children??[];function q(a){l.push(c?`/tasks?category=${a}`:`/tasks/new?category=${a}`)}function r(){n(null)}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-7 gap-3 sm:gap-4",children:a.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>(function(a){let b=Array.isArray(a.children)&&a.children.length>0;if(c||!b)return void q(a.slug);n(a.slug)})(a),className:"modern-card flex flex-col items-center gap-1.5 p-3 sm:p-4 text-center group hover:bg-green-50/60 transition-all duration-200",children:[(0,d.jsx)(g.Ez,{icon:a.icon,alt:a.names[b]??a.names.el,className:"h-9 w-9 object-contain text-3xl sm:h-10 sm:w-10 sm:text-4xl transition-transform group-hover:scale-105 leading-none",fallback:"\uD83D\uDCE6"}),(0,d.jsx)("span",{className:"text-xs font-semibold text-gray-900 group-hover:text-green-600 transition leading-tight",children:a.names[b]??a.names.el})]},a.id))}),o&&(0,d.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4",children:[(0,d.jsx)("button",{type:"button",className:"absolute inset-0 bg-black/45",onClick:r,"aria-label":k}),(0,d.jsxs)("div",{className:"relative w-full sm:max-w-lg bg-white rounded-t-2xl sm:rounded-2xl shadow-2xl border border-gray-100 p-5 sm:p-6",children:[(0,d.jsx)("div",{className:"w-12 h-1.5 bg-gray-200 rounded-full mx-auto mb-4 sm:hidden"}),(0,d.jsx)("h3",{className:"text-lg font-bold text-gray-900 mb-1",children:i}),(0,d.jsx)("p",{className:"text-sm text-gray-500 mb-4",children:j}),(0,d.jsxs)("div",{className:"space-y-2 max-h-[55vh] overflow-y-auto pr-1",children:[(0,d.jsx)("button",{type:"button",onClick:()=>{q(o.slug),r()},className:"w-full text-left rounded-xl border border-green-200 bg-green-50 px-4 py-3 hover:bg-green-100 transition",children:(0,d.jsxs)("span",{className:"font-semibold text-green-700",children:[h," ",o.names[b]??o.names.el]})}),p.map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{q(a.slug),r()},className:"w-full text-left rounded-xl border border-gray-200 bg-white px-4 py-3 hover:border-green-300 hover:bg-green-50 transition",children:(0,d.jsx)("span",{className:"font-medium text-gray-800",children:a.names[b]??a.names.el})},a.id))]}),(0,d.jsx)("div",{className:"mt-5 flex justify-end",children:(0,d.jsx)("button",{type:"button",onClick:r,className:"px-4 py-2 rounded-lg border border-gray-200 text-gray-600 hover:bg-gray-50",children:k})})]})]})]})}},40295:(a,b,c)=>{"use strict";c.d(b,{HeroSearch:()=>g});var d=c(78157),e=c(31768),f=c(71159);function g({placeholder:a,mode:b="customer"}){let[c,g]=(0,e.useState)(""),h=(0,f.useRouter)();return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault();let d=c.trim();"specialist"===b?d?h.push(`/tasks?q=${encodeURIComponent(d)}`):h.push("/tasks"):d?h.push(`/specialists?q=${encodeURIComponent(d)}`):h.push("/specialists")},className:"relative w-full mb-8",children:[(0,d.jsx)("input",{type:"text",value:c,onChange:a=>g(a.target.value),placeholder:a,className:"w-full pl-5 pr-14 py-3.5 rounded-2xl border border-green-200 bg-white/90 text-gray-900 placeholder:text-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-400 text-base shadow-sm"}),(0,d.jsx)("button",{type:"submit",className:"absolute right-2 top-1/2 -translate-y-1/2 bg-green-600 hover:bg-green-700 text-white p-2.5 rounded-xl transition-colors duration-200","aria-label":"Search",children:(0,d.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})})]})}},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},44990:(a,b,c)=>{"use strict";c.d(b,{HomeCityCloud:()=>d});let d=(0,c(25459).registerClientReference)(function(){throw Error("Attempted to call HomeCityCloud() from the server but HomeCityCloud is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/opt/canhelp/apps/web/src/components/HomeCityCloud.tsx","HomeCityCloud")},45964:(a,b,c)=>{"use strict";c.d(b,{ShareButton:()=>d});let d=(0,c(25459).registerClientReference)(function(){throw Error("Attempted to call ShareButton() from the server but ShareButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/opt/canhelp/apps/web/src/components/ShareButton.tsx","ShareButton")},48308:(a,b,c)=>{"use strict";c.d(b,{HomeCityCloud:()=>h});var d=c(78157),e=c(71159),f=c(56003),g=c(96484);function h({locationTree:a,isSpecialist:b=!1}){let c=(0,e.useRouter)(),{setLocation:h}=(0,f.z)(),{locale:i}=(0,g.Y)(),j=a=>{b?c.push(`/tasks?location=${a}`):(h(a),c.push("/tasks/new"))};return a.length?(0,d.jsx)("div",{className:"flex flex-wrap justify-center gap-3",children:a.map(a=>(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>j(a.slug),className:"inline-flex items-center gap-1 px-4 py-2 rounded-full bg-indigo-100 text-indigo-700 font-semibold text-sm hover:bg-indigo-200 transition cursor-pointer",children:["\uD83D\uDCCD ",a.names[i]??a.names.el]}),(a.children??[]).map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>j(a.slug),className:"inline-flex items-center px-3 py-1.5 rounded-full bg-slate-100 text-slate-700 text-sm hover:bg-indigo-100 hover:text-indigo-700 transition cursor-pointer",children:a.names[i]??a.names.el},a.id))]},a.id))}):null}},54299:(a,b,c)=>{"use strict";c.d(b,{BecomeSpecialistButton:()=>h});var d=c(78157),e=c(13260),f=c(71159),g=c(96484);function h({className:a}){let{data:b,isPending:c}=(0,e.wV)(),h=(0,f.useRouter)(),{t:i}=(0,g.Y)();return(0,d.jsx)("button",{type:"button",onClick:function(){c||(b?h.push("/become-specialist"):h.push("/register"))},className:a??"btn-outline w-full sm:w-auto text-center",children:i("hero.cta.browse")})}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64114:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>w});var d=c(5939),e=c(3498),f=c.n(e),g=c(56057),h=c(59902),i=c(75112),j=c(44990),k=c(45964);let l="#6366f1",m="#f59e0b";function n({className:a=""}){return(0,d.jsxs)("svg",{viewBox:"0 0 400 260",fill:"none","aria-hidden":"true",className:a,children:[(0,d.jsx)("line",{x1:"110",y1:"100",x2:"175",y2:"55",stroke:l,strokeWidth:"2",strokeDasharray:"6 4",opacity:".25"}),(0,d.jsx)("line",{x1:"225",y1:"55",x2:"290",y2:"100",stroke:l,strokeWidth:"2",strokeDasharray:"6 4",opacity:".25"}),(0,d.jsx)("line",{x1:"115",y1:"115",x2:"285",y2:"115",stroke:m,strokeWidth:"2",strokeDasharray:"6 4",opacity:".3"}),(0,d.jsx)("circle",{cx:"80",cy:"100",r:"34",fill:l,opacity:".15"}),(0,d.jsx)("circle",{cx:"80",cy:"88",r:"11",fill:l,opacity:".5"}),(0,d.jsx)("ellipse",{cx:"80",cy:"110",rx:"16",ry:"10",fill:l,opacity:".5"}),(0,d.jsx)("circle",{cx:"200",cy:"44",r:"34",fill:m,opacity:".2"}),(0,d.jsx)("circle",{cx:"200",cy:"32",r:"11",fill:m,opacity:".6"}),(0,d.jsx)("ellipse",{cx:"200",cy:"54",rx:"16",ry:"10",fill:m,opacity:".6"}),(0,d.jsx)("circle",{cx:"320",cy:"100",r:"34",fill:l,opacity:".15"}),(0,d.jsx)("circle",{cx:"320",cy:"88",r:"11",fill:l,opacity:".5"}),(0,d.jsx)("ellipse",{cx:"320",cy:"110",rx:"16",ry:"10",fill:l,opacity:".5"}),(0,d.jsx)("circle",{cx:"192",cy:"180",r:"14",stroke:l,strokeWidth:"2",fill:"none",opacity:".3"}),(0,d.jsx)("circle",{cx:"208",cy:"180",r:"14",stroke:m,strokeWidth:"2",fill:"none",opacity:".4"}),(0,d.jsx)("circle",{cx:"40",cy:"180",r:"5",fill:l,opacity:".15"}),(0,d.jsx)("circle",{cx:"360",cy:"180",r:"5",fill:m,opacity:".2"}),(0,d.jsx)("circle",{cx:"140",cy:"210",r:"3",fill:l,opacity:".1"}),(0,d.jsx)("circle",{cx:"260",cy:"210",r:"3",fill:m,opacity:".1"})]})}function o({children:a,className:b="",...c}){return(0,d.jsx)("div",{className:`section-contrast px-2 sm:px-4 md:px-8 ${b}`,...c,children:a})}var p=c(21241);let q=[{id:"wrench",path:"M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z",size:38,left:"4%",top:"18%",opacity:.18,animation:"heroIconFloat 4.8s ease-in-out 0s infinite"},{id:"bolt",path:"M7 2v11h3v9l7-12h-4l4-8z",size:30,left:"10%",top:"65%",opacity:.14,animation:"heroIconDrift 5.5s ease-in-out 0.8s infinite"},{id:"home",path:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z",size:34,left:"5%",top:"82%",opacity:.16,animation:"heroIconSway 6s ease-in-out 1.5s infinite"},{id:"scissors",path:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z",size:42,left:"86%",top:"12%",opacity:.18,animation:"heroIconFloat 5.2s ease-in-out 0.3s infinite"},{id:"star",path:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",size:28,left:"80%",top:"55%",opacity:.15,animation:"heroIconDrift 4.3s ease-in-out 2s infinite"},{id:"laptop",path:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z",size:36,left:"88%",top:"78%",opacity:.14,animation:"heroIconSway 7s ease-in-out 1s infinite"},{id:"camera",path:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z",size:32,left:"76%",top:"30%",opacity:.13,animation:"heroIconFloat 6.4s ease-in-out 2.5s infinite"},{id:"brush",path:"M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25 11.75 15l8.96-8.96c.39-.39.39-1.02 0-1.41z",size:30,left:"3%",top:"42%",opacity:.13,animation:"heroIconDrift 5.8s ease-in-out 3.2s infinite"},{id:"medical",path:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z",size:26,left:"92%",top:"44%",opacity:.12,animation:"heroIconSway 5s ease-in-out 0.6s infinite"},{id:"car",path:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z",size:34,left:"14%",top:"88%",opacity:.14,animation:"heroIconFloat 6.8s ease-in-out 1.8s infinite"},{id:"book",path:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z",size:28,left:"82%",top:"88%",opacity:.13,animation:"heroIconDrift 7.2s ease-in-out 4s infinite"}];function r(){return(0,d.jsx)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":"true",children:q.map(a=>(0,d.jsx)("svg",{viewBox:"0 0 24 24",fill:"white",width:a.size,height:a.size,style:{position:"absolute",left:a.left,top:a.top,opacity:a.opacity,animation:a.animation},children:(0,d.jsx)("path",{d:a.path})},a.id))})}var s=c(84375),t=c(30445),u=c(69347),v=c(96148);async function w(){let a=await (0,g.UL)(),b=a.get("canhelp_locale")?.value,c=["el","en","uk","ru"].includes(b??"")?b:"el",e=(0,i.$)(c),l=process.env.INTERNAL_API_URL||"http://localhost:4000",m=a.getAll().map(a=>`${a.name}=${a.value}`).join("; "),q=null;try{let a=await fetch(`${l}/api/auth/get-session`,{headers:{Cookie:m}});if(a.ok){let b=await a.json();q=b?.user?.role??null}}catch{}let w=a.get("canhelp_preview_role")?.value,x="specialist"===("admin"===q&&w?w:q),y=[],z=[],A={specialistCount:0,taskCount:0,categoryCount:0};try{[y,z]=await Promise.all([(0,h.bW)(),(0,h.Vs)()])}catch{}try{let a=await fetch(`${l}/api/stats`,{next:{revalidate:600}});a.ok&&(A=await a.json())}catch{}return(0,d.jsxs)("div",{children:[(0,d.jsxs)("section",{className:"hero-bg-animated py-24 px-4 overflow-hidden border-b border-slate-200 shadow-xl mb-0 relative",children:[(0,d.jsx)("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":"true",style:{background:"radial-gradient(ellipse at 40% 40%, rgba(74,222,128,0.15) 0%, rgba(22,163,74,0.08) 60%, transparent 100%)"}}),(0,d.jsx)(r,{}),(0,d.jsx)("div",{className:"max-w-3xl mx-auto flex flex-col items-center text-center relative z-10",children:(0,d.jsxs)("div",{className:"bg-white rounded-[2.5rem] shadow-2xl p-10 md:p-14 flex flex-col items-center w-full",style:{boxShadow:"0 8px 48px 0 rgba(22,163,74,0.18), 0 1.5px 8px 0 rgba(74,222,128,0.12)"},children:[(0,d.jsx)("h1",{className:"text-5xl md:text-6xl font-extrabold mb-4 leading-tight text-gray-900 drop-shadow-lg tracking-tight",style:{letterSpacing:"-0.02em"},children:x?e("hero.specialist.title"):e("hero.title")}),(0,d.jsx)("p",{className:"text-xl text-green-700 mb-8 drop-shadow font-medium",style:{textShadow:"0 2px 8px rgba(96,165,250,0.10)"},children:x?e("hero.specialist.subtitle"):e("hero.subtitle")}),(0,d.jsx)(p.HeroSearch,{placeholder:x?e("hero.specialist.search.placeholder"):e("hero.search.placeholder"),mode:x?"specialist":"customer"}),(0,d.jsx)("div",{className:"flex flex-col sm:flex-row gap-4 w-full justify-center",children:x?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f(),{href:"/tasks",className:"btn-accent w-full sm:w-auto text-center text-lg",children:e("hero.specialist.cta")}),(0,d.jsx)(f(),{href:"/dashboard",className:"btn-outline w-full sm:w-auto text-center",children:e("nav.dashboard")})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f(),{href:"/tasks/new",className:"btn-accent w-full sm:w-auto text-center text-lg",children:e("hero.cta.post")}),(0,d.jsx)(t.BecomeSpecialistButton,{}),(0,d.jsx)(f(),{href:"/tasks",className:"btn-outline w-full sm:w-auto text-center",children:e("hero.cta.specialists")})]})})]})})]}),(0,d.jsx)("div",{className:"bg-white border-b border-green-100 py-6 mb-10",children:(0,d.jsxs)("div",{className:"max-w-3xl mx-auto grid grid-cols-2 md:grid-cols-4 gap-6 px-6 text-center",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-3xl font-extrabold text-green-700",children:A.specialistCount>0?A.specialistCount:"—"}),(0,d.jsx)("div",{className:"text-sm text-gray-500 font-medium mt-0.5",children:e("stats.specialists")})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-3xl font-extrabold text-green-700",children:A.taskCount>0?A.taskCount:"—"}),(0,d.jsx)("div",{className:"text-sm text-gray-500 font-medium mt-0.5",children:e("stats.tasks")})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-3xl font-extrabold text-green-700",children:A.categoryCount>0?A.categoryCount:"—"}),(0,d.jsx)("div",{className:"text-sm text-gray-500 font-medium mt-0.5",children:e("stats.categories")})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-3xl font-extrabold text-green-600",children:"✓"}),(0,d.jsx)("div",{className:"text-sm text-gray-500 font-medium mt-0.5",children:e("stats.free")})]})]})}),!q&&(0,d.jsx)("div",{className:"max-w-3xl mx-auto px-4 py-10",children:(0,d.jsx)(u.PromoCountdown,{title:e("promo.title"),subtitle:e("promo.subtitle"),cta:e("promo.cta"),days:e("promo.days"),hours:e("promo.hours"),minutes:e("promo.minutes"),seconds:e("promo.seconds")})}),(0,d.jsxs)(o,{children:[(0,d.jsx)("h2",{className:"text-4xl font-extrabold text-gray-900 mb-10 text-center tracking-tight drop-shadow-lg",children:x?e("section.categories.specialist"):e("section.categories")}),(0,d.jsx)(v.HomeCategoryGrid,{categories:y,locale:c,isSpecialist:x,allInLabel:e("tasks.category.all_in"),categoryLabel:e("create.field.category"),selectLabel:e("create.field.category.select"),cancelLabel:e("common.cancel")})]}),(0,d.jsx)(o,{className:"bg-green-50/60",children:(0,d.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,d.jsx)("h2",{className:"text-4xl font-extrabold text-gray-900 mb-12 text-center tracking-tight drop-shadow-lg",children:e("section.how")}),(0,d.jsx)("div",{className:"grid md:grid-cols-3 gap-10",children:[1,2,3].map(a=>(0,d.jsxs)("div",{className:"modern-card text-center py-10 px-4 flex flex-col items-center shadow-md hover:shadow-xl transition-all duration-200",children:[(0,d.jsx)("div",{className:"w-14 h-14 bg-gradient-to-br from-green-600 to-green-400 text-white rounded-full flex items-center justify-center text-2xl font-extrabold mb-5 shadow-lg",children:a}),(0,d.jsx)("h3",{className:"font-bold text-gray-900 text-xl mb-3 tracking-tight",children:x?e(`how.specialist.step${a}.title`):e(`how.step${a}.title`)}),(0,d.jsx)("p",{className:"text-green-700 text-base leading-relaxed",children:x?e(`how.specialist.step${a}.desc`):e(`how.step${a}.desc`)})]},a))})]})}),!x&&(0,d.jsx)(o,{className:"bg-white/60 backdrop-blur-xl",children:(0,d.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,d.jsxs)("div",{className:"section-contrast shadow-2xl border-0 bg-white/80 backdrop-blur-xl p-10 md:p-14 flex flex-col items-start",children:[(0,d.jsx)("span",{className:"inline-block bg-green-100 text-green-700 text-base font-semibold px-5 py-2 rounded-full mb-5 tracking-wide",children:e("become_specialist.free_badge")}),(0,d.jsx)("h2",{className:"text-4xl md:text-5xl font-extrabold mb-6 text-gray-900 drop-shadow-lg tracking-tight",children:e("become_specialist.hero.title")}),(0,d.jsx)("p",{className:"text-2xl text-green-700 mb-10 font-medium",children:e("become_specialist.hero.subtitle")}),(0,d.jsx)("div",{className:"space-y-6 mb-10 w-full",children:[1,2,3].map(a=>(0,d.jsxs)("div",{className:"flex items-start gap-5",children:[(0,d.jsx)("div",{className:"w-10 h-10 bg-gradient-to-br from-green-500 to-green-600 text-white rounded-full flex items-center justify-center text-lg font-extrabold shrink-0 mt-0.5 shadow-lg",children:a}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-semibold text-gray-900 text-lg",children:e(`become_specialist.step${a}.title`)}),(0,d.jsx)("p",{className:"text-green-700 text-base",children:e(`become_specialist.step${a}.desc`)})]})]},a))}),(0,d.jsx)("div",{className:"flex flex-wrap gap-3 mb-10",children:[1,2,3,4].map(a=>(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 bg-green-50 text-green-700 px-4 py-2 rounded-full text-sm font-medium",children:["✓ ",e(`become_specialist.benefit${a}`)]},a))}),(0,d.jsx)(f(),{href:"/become-specialist",className:"btn-accent text-center text-lg w-full sm:w-auto",children:e("become_specialist.cta")})]})})}),(0,d.jsx)(o,{className:"bg-green-50/60",children:(0,d.jsxs)("div",{className:"max-w-5xl mx-auto text-center",children:[(0,d.jsx)(n,{className:"w-56 mx-auto mb-10"}),(0,d.jsx)("h2",{className:"text-4xl font-extrabold mb-6 text-gray-900 drop-shadow-lg tracking-tight",children:e("section.community")}),(0,d.jsx)("p",{className:"text-xl text-green-700 max-w-2xl mx-auto mb-14 font-medium",children:e("community.subtitle")}),(0,d.jsxs)("div",{className:"grid md:grid-cols-3 gap-8 mb-14",children:[(0,d.jsxs)("div",{className:"modern-card p-8 text-left shadow-md hover:shadow-xl transition-all duration-200",children:[(0,d.jsx)("div",{className:"text-4xl mb-4",style:{color:"var(--blue-main)"},children:"\uD83D\uDEE0️"}),(0,d.jsx)("h3",{className:"font-bold text-gray-900 text-lg mb-3",children:e("community.point1.title")}),(0,d.jsx)("p",{className:"text-green-700 text-base leading-relaxed",children:e("community.point1.desc")})]}),(0,d.jsxs)("div",{className:"modern-card p-8 text-left shadow-md hover:shadow-xl transition-all duration-200",children:[(0,d.jsx)("div",{className:"text-4xl mb-4",style:{color:"var(--blue-main)"},children:"\uD83D\uDE4B"}),(0,d.jsx)("h3",{className:"font-bold text-gray-900 text-lg mb-3",children:e("community.point2.title")}),(0,d.jsx)("p",{className:"text-green-700 text-base leading-relaxed",children:e("community.point2.desc")})]}),(0,d.jsxs)("div",{className:"modern-card p-8 text-left shadow-md hover:shadow-xl transition-all duration-200",children:[(0,d.jsx)("div",{className:"text-4xl mb-4",style:{color:"var(--blue-main)"},children:"\uD83C\uDF31"}),(0,d.jsx)("h3",{className:"font-bold text-gray-900 text-lg mb-3",children:e("community.point3.title")}),(0,d.jsx)("p",{className:"text-green-700 text-base leading-relaxed",children:e("community.point3.desc")})]})]}),(0,d.jsx)(k.ShareButton,{label:e("community.share"),copiedLabel:e("community.share.copied")})]})}),(0,d.jsx)(o,{className:"bg-white/60 backdrop-blur-xl",children:(0,d.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,d.jsxs)("div",{className:"text-center mb-12",children:[(0,d.jsx)("span",{className:"inline-block bg-green-100 text-green-700 text-sm font-semibold px-4 py-1.5 rounded-full mb-4",children:e("referral.home.badge")}),(0,d.jsx)("h2",{className:"text-4xl font-extrabold text-gray-900 mb-4 tracking-tight drop-shadow-lg",children:e("section.referral")}),(0,d.jsx)("p",{className:"text-lg text-green-700 max-w-2xl mx-auto font-medium",children:e("referral.home.subtitle")})]}),(0,d.jsx)("div",{className:"grid md:grid-cols-3 gap-8 mb-10",children:[1,2,3].map(a=>(0,d.jsxs)("div",{className:"modern-card text-center py-8 px-6 flex flex-col items-center shadow-md hover:shadow-xl transition-all duration-200",children:[(0,d.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-green-500 to-green-600 text-white rounded-full flex items-center justify-center text-xl font-extrabold mb-4 shadow-lg",children:a}),(0,d.jsx)("h3",{className:"font-bold text-gray-900 text-base mb-2 tracking-tight",children:e(`referral.home.step${a}.title`)}),(0,d.jsx)("p",{className:"text-green-700 text-sm leading-relaxed",children:e(`referral.home.step${a}.desc`)})]},a))}),(0,d.jsx)("div",{className:"text-center",children:(0,d.jsx)(f(),{href:"/profile?tab=referral",className:"btn-accent inline-block text-base",children:e("referral.home.cta")})})]})}),(0,d.jsx)(o,{className:"bg-green-50/60",children:(0,d.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,d.jsx)("h2",{className:"text-4xl font-extrabold text-gray-900 mb-10 text-center tracking-tight drop-shadow-lg",children:e("section.faq")}),(0,d.jsx)(s.FaqAccordion,{items:[1,2,3,4,5,6,7,8,9,10].map(a=>({q:e(`faq.q${a}`),a:e(`faq.a${a}`)}))})]})}),(0,d.jsx)(o,{className:"bg-gradient-to-br from-green-700 to-green-900 overflow-hidden",children:(0,d.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,d.jsxs)("div",{className:"flex flex-col lg:flex-row items-center gap-12",children:[(0,d.jsx)("div",{className:"shrink-0 flex justify-center lg:justify-start w-full lg:w-[430px]",children:(0,d.jsxs)("div",{className:"relative h-[430px] w-[335px] sm:h-[490px] sm:w-[390px]",children:[(0,d.jsx)("div",{className:"absolute left-0 top-8 h-[365px] w-[182px] -rotate-6 rounded-[34px] border-[5px] border-slate-800 bg-slate-900 p-1.5 shadow-2xl sm:h-[420px] sm:w-[210px]",children:(0,d.jsxs)("div",{className:"h-full overflow-hidden rounded-[27px] bg-slate-50",children:[(0,d.jsx)("div",{className:"h-10 bg-green-700 px-3 pt-3 text-[10px] font-bold text-white",children:"CanHelp"}),(0,d.jsxs)("div",{className:"p-3",children:[(0,d.jsxs)("div",{className:"rounded-xl bg-green-600 p-3 text-white",children:[(0,d.jsx)("p",{className:"text-[8px] text-green-100",children:"Найдите помощь рядом"}),(0,d.jsx)("p",{className:"mt-1 text-sm font-bold",children:"Новая заявка"})]}),(0,d.jsx)("div",{className:"mt-3 space-y-2",children:["Электрик","Сантехник","Уборка"].map(a=>(0,d.jsx)("div",{className:"rounded-xl border border-slate-100 bg-white p-2 shadow-sm",children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("div",{className:"h-7 w-7 rounded-full bg-green-100"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-[9px] font-bold text-slate-800",children:a}),(0,d.jsx)("p",{className:"text-[7px] text-slate-400",children:"Рядом с вами"})]})]})},a))})]})]})}),(0,d.jsxs)("div",{className:"absolute right-0 top-0 h-[410px] w-[205px] rotate-3 rounded-[40px] border-[6px] border-slate-900 bg-slate-900 p-1.5 shadow-2xl sm:h-[475px] sm:w-[238px]",children:[(0,d.jsxs)("div",{className:"h-full overflow-hidden rounded-[31px] bg-slate-50",children:[(0,d.jsxs)("div",{className:"flex h-12 items-center justify-between bg-green-600 px-4 pt-2 text-xs font-bold text-white",children:[(0,d.jsx)("span",{children:"Предложения"}),(0,d.jsx)("span",{children:"⌕"})]}),(0,d.jsxs)("div",{className:"p-3 space-y-3",children:[(0,d.jsxs)("div",{className:"rounded-2xl border border-slate-100 bg-white p-3 shadow-sm",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("div",{className:"h-9 w-9 rounded-full bg-green-100"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-[10px] font-bold text-slate-800",children:"Электрик"}),(0,d.jsx)("p",{className:"text-[8px] text-slate-400",children:"На рассмотрении"})]})]}),(0,d.jsx)("div",{className:"mt-3 h-1.5 w-full rounded bg-slate-100"}),(0,d.jsx)("div",{className:"mt-1.5 h-1.5 w-3/4 rounded bg-slate-100"}),(0,d.jsx)("div",{className:"mt-3 inline-flex rounded-full bg-green-50 px-2 py-1 text-[8px] font-semibold text-green-700",children:"Открыть предложение"})]}),(0,d.jsxs)("div",{className:"rounded-2xl border border-slate-100 bg-white p-3 shadow-sm",children:[(0,d.jsx)("p",{className:"text-[10px] font-bold text-slate-800",children:"Новые заказы"}),(0,d.jsxs)("div",{className:"mt-2 flex gap-1.5",children:[(0,d.jsx)("span",{className:"rounded-full bg-green-100 px-2 py-1 text-[7px] text-green-700",children:"Ремонт"}),(0,d.jsx)("span",{className:"rounded-full bg-slate-100 px-2 py-1 text-[7px] text-slate-600",children:"Афины"})]})]})]})]}),(0,d.jsx)("div",{className:"absolute left-1/2 top-2 h-4 w-20 -translate-x-1/2 rounded-full bg-black"})]})]})}),(0,d.jsxs)("div",{className:"flex-1 text-center lg:text-left",children:[(0,d.jsx)("p",{className:"mb-3 text-sm font-bold uppercase tracking-[0.16em] text-green-200",children:"CanHelp Mobile"}),(0,d.jsx)("h2",{className:"text-3xl md:text-5xl font-extrabold text-black mb-3",children:e("app.download_title","Скачайте мобильное приложение CanHelp")}),(0,d.jsx)("p",{className:"text-lg text-green mb-8",children:e("app.download_desc","Всегда под рукой. Доступно для Android и iOS.")}),(0,d.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mb-8 justify-center lg:justify-start",children:[(0,d.jsxs)("a",{href:"https://apps.apple.com/us/app/canhelp-%CE%B5%CE%B9%CE%B4%CE%B9%CE%BA%CE%BF%CE%AF-%CE%B5%CF%81%CE%B3%CE%B1%CF%83%CE%AF%CE%B5%CF%82/id6762458639",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 bg-black hover:bg-gray-900 text-white font-semibold px-5 py-3 rounded-2xl shadow-lg transition",children:[(0,d.jsx)("svg",{viewBox:"0 0 24 24",className:"w-7 h-7 shrink-0",fill:"white",children:(0,d.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),(0,d.jsxs)("div",{className:"text-left",children:[(0,d.jsx)("div",{className:"text-xs text-gray-300 leading-tight",children:"Download on the"}),(0,d.jsx)("div",{className:"text-base font-bold leading-tight",children:"App Store"})]})]}),(0,d.jsxs)("a",{href:"https://play.google.com/store/apps/details?id=gr.canhelp.app",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 bg-black hover:bg-gray-900 text-white font-semibold px-5 py-3 rounded-2xl shadow-lg transition",children:[(0,d.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-7 h-7 shrink-0",fill:"none",children:[(0,d.jsx)("path",{d:"M3.18 23.76a2 2 0 0 1-.97-1.77V2.01A2 2 0 0 1 3.18.25l12.11 11.75-12.11 11.76z",fill:"#EA4335"}),(0,d.jsx)("path",{d:"m16.79 12.82-3.07-2.98 3.07-2.98 3.47 1.97a2 2 0 0 1 0 3.5l-3.47 1.97-.97-.94 1.47-1.98-1.47-1.99-.97-.94z",fill:"#FBBC04",className:"hidden"}),(0,d.jsx)("path",{d:"M3.18.25 15.29 12 3.18 23.75A2 2 0 0 1 2 22V2c0-.73.38-1.38.97-1.76z",fill:"#4285F4",className:"hidden"}),(0,d.jsx)("path",{d:"M4 1 16 12 4 23 17.26 15.5a2 2 0 0 0 0-3.5L4 1z",fill:"#EA4335",className:"hidden"}),(0,d.jsx)("path",{d:"M3.609.24 15.721 12 3.61 23.76A2 2 0 0 1 2 22V2A2 2 0 0 1 3.609.24z",fill:"#4285F4"}),(0,d.jsx)("path",{d:"M20.25 10.5 16.8 8.52 13.73 11.5l3.07 2.98 3.44-1.95a2 2 0 0 0 .01-3.03z",fill:"#FBBC04"}),(0,d.jsx)("path",{d:"M3.609.24 15.68 12.31 3.609 23.76l11.72-6.65-11.72-16.87z",fill:"#34A853"})]}),(0,d.jsxs)("div",{className:"text-left",children:[(0,d.jsx)("div",{className:"text-xs text-gray-300 leading-tight",children:"Get it on"}),(0,d.jsx)("div",{className:"text-base font-bold leading-tight",children:"Google Play"})]})]})]}),(0,d.jsxs)("div",{className:"flex flex-col sm:flex-row gap-6 justify-center lg:justify-start",children:[(0,d.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,d.jsx)("div",{className:"bg-white p-3 rounded-2xl shadow-xl ring-4 ring-white/20",children:(0,d.jsx)("img",{src:"https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=https%3A%2F%2Fapps.apple.com%2Fus%2Fapp%2Fcanhelp-%25CE%25B5%25CE%25B9%25CE%25B4%25CE%25B9%25CE%25BA%25CE%25BF%25CE%25AF-%25CE%25B5%25CF%81%25CE%25B3%25CE%25B1%25CF%83%25CE%25AF%25CE%25B5%25CF%82%2Fid6762458639&color=000000&bgcolor=ffffff&margin=1",alt:"QR App Store",width:192,height:192,className:"block rounded-lg"})}),(0,d.jsx)("span",{className:"text-black text-sm font-semibold",children:"App Store \xb7 QR"})]}),(0,d.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,d.jsx)("div",{className:"bg-white p-3 rounded-2xl shadow-xl ring-4 ring-white/20",children:(0,d.jsx)("img",{src:"https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dgr.canhelp.app&color=000000&bgcolor=ffffff&margin=1",alt:"QR Google Play",width:192,height:192,className:"block rounded-lg"})}),(0,d.jsx)("span",{className:"text-black text-sm font-semibold",children:"Google Play \xb7 QR"})]})]})]})]})})}),z.length>0&&(0,d.jsxs)(o,{className:"bg-white",children:[(0,d.jsx)("h2",{className:"text-2xl font-bold text-slate-900 mb-6 text-center",children:x?e("section.cities.specialist"):e("section.cities")}),(0,d.jsx)(j.HomeCityCloud,{locationTree:z,isSpecialist:x})]})]})}},69347:(a,b,c)=>{"use strict";c.d(b,{PromoCountdown:()=>d});let d=(0,c(25459).registerClientReference)(function(){throw Error("Attempted to call PromoCountdown() from the server but PromoCountdown is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/opt/canhelp/apps/web/src/components/PromoCountdown.tsx","PromoCountdown")},74075:a=>{"use strict";a.exports=require("zlib")},79428:a=>{"use strict";a.exports=require("buffer")},79489:(a,b,c)=>{"use strict";c.d(b,{PromoCountdown:()=>i});var d=c(78157),e=c(31768),f=c(94496),g=c.n(f);let h={d:0,h:0,m:0,s:0};function i({title:a,subtitle:b,cta:c,days:f,hours:i,minutes:j,seconds:k}){let[l,m]=(0,e.useState)(h);return(0,d.jsxs)("div",{className:"relative overflow-hidden rounded-3xl shadow-2xl bg-gradient-to-br from-green-700 via-green-800 to-green-900 text-white px-6 py-10 md:px-14 md:py-14 flex flex-col items-center text-center",children:[(0,d.jsx)("div",{className:"absolute -top-16 -right-16 w-64 h-64 rounded-full bg-green-500/20 blur-3xl pointer-events-none"}),(0,d.jsx)("div",{className:"absolute -bottom-16 -left-16 w-64 h-64 rounded-full bg-green-400/20 blur-3xl pointer-events-none"}),(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5 bg-green-500/90 text-white text-sm font-bold px-4 py-1.5 rounded-full mb-5 shadow-lg tracking-wide uppercase",children:[(0,d.jsx)("span",{children:"\uD83C\uDF81"})," Pro — Free"]}),(0,d.jsx)("h2",{className:"text-3xl md:text-4xl font-extrabold mb-3 tracking-tight drop-shadow-lg",children:a}),(0,d.jsx)("p",{className:"text-green-200 text-lg md:text-xl mb-8 max-w-xl font-medium",children:b}),(0,d.jsx)("div",{className:"flex items-end gap-3 md:gap-6 mb-8",children:[{value:l.d,label:f},{value:l.h,label:i},{value:l.m,label:j},{value:l.s,label:k}].map((a,b)=>(0,d.jsxs)("div",{className:"flex items-end gap-3 md:gap-6",children:[b>0&&(0,d.jsx)("span",{className:"text-3xl md:text-4xl font-extrabold text-gray-300 mb-2 leading-none select-none",children:":"}),(0,d.jsxs)("div",{className:"flex flex-col items-center",children:[(0,d.jsx)("div",{className:"bg-white/10 backdrop-blur border border-white/20 rounded-2xl w-16 md:w-20 h-16 md:h-20 flex items-center justify-center shadow-lg",children:(0,d.jsx)("span",{className:"text-3xl md:text-4xl font-extrabold tabular-nums",children:String(a.value).padStart(2,"0")})}),(0,d.jsx)("span",{className:"text-gray-300 text-xs font-semibold mt-1.5 uppercase tracking-widest",children:a.label})]})]},a.label))}),(0,d.jsx)(g(),{href:"/register",className:"btn-accent text-lg px-10 py-3 shadow-xl hover:scale-105 transition-transform duration-200",children:c})]})}},79551:a=>{"use strict";a.exports=require("url")},79646:a=>{"use strict";a.exports=require("child_process")},81630:a=>{"use strict";a.exports=require("http")},83997:a=>{"use strict";a.exports=require("tty")},84375:(a,b,c)=>{"use strict";c.d(b,{FaqAccordion:()=>d});let d=(0,c(25459).registerClientReference)(function(){throw Error("Attempted to call FaqAccordion() from the server but FaqAccordion is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/opt/canhelp/apps/web/src/components/FaqAccordion.tsx","FaqAccordion")},85238:(a,b,c)=>{"use strict";c.d(b,{ShareButton:()=>f});var d=c(78157),e=c(31768);function f({label:a,copiedLabel:b}){let[c,f]=(0,e.useState)(!1),g=async()=>{let a=window.location.origin;if(navigator.share)try{await navigator.share({url:a,title:"CanHelp"});return}catch{}await navigator.clipboard.writeText(a),f(!0),setTimeout(()=>f(!1),2500)};return(0,d.jsx)("button",{type:"button",onClick:g,className:"inline-flex items-center gap-2 bg-amber-500 text-white px-8 py-3.5 rounded-2xl font-bold text-base hover:bg-amber-600 transition shadow-md shadow-amber-500/25 active:scale-95",children:c?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-lg",children:"✓"}),b]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-lg",children:"\uD83D\uDD17"}),a]})})}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{"use strict";a.exports=require("net")},94023:(a,b,c)=>{Promise.resolve().then(c.bind(c,30445)),Promise.resolve().then(c.bind(c,84375)),Promise.resolve().then(c.bind(c,21241)),Promise.resolve().then(c.bind(c,96148)),Promise.resolve().then(c.bind(c,44990)),Promise.resolve().then(c.bind(c,69347)),Promise.resolve().then(c.bind(c,45964)),Promise.resolve().then(c.t.bind(c,3498,23))},94735:a=>{"use strict";a.exports=require("events")},96148:(a,b,c)=>{"use strict";c.d(b,{HomeCategoryGrid:()=>d});let d=(0,c(25459).registerClientReference)(function(){throw Error("Attempted to call HomeCategoryGrid() from the server but HomeCategoryGrid is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/opt/canhelp/apps/web/src/components/HomeCategoryGrid.tsx","HomeCategoryGrid")}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[901,652,809,902,331],()=>b(b.s=6617));module.exports=c})();