PageSourceSearch

https://www.kariera.gr/_next/static/chunks/0klk90aetfzbu.js

js kariera.gr collected 2026-09-24 20:32:44 UTC 17,870 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,974661,e=>{"use strict";var t=e.i(843476),a=e.i(326999),o=e.i(995926),s=e.i(640602),r=e.i(88777);function n(e){let{...o}=e;return(0,t.jsx)(a.Portal,{"data-slot":"sheet-portal",...o})}function i(e){let{className:o,...r}=e;return(0,t.jsx)(a.Overlay,{"data-slot":"sheet-overlay",className:(0,s.cn)("fixed inset-0 z-50","bg-overlay/85","data-[state=open]:animate-in data-[state=open]:fade-in-0","data-[state=closed]:animate-out data-[state=closed]:fade-out-0",o),...r})}e.s(["Sheet",0,function(e){let{...o}=e;return(0,t.jsx)(a.Root,{"data-slot":"sheet",...o})},"SheetBody",0,function(e){let{className:a,...o}=e;return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,s.cn)("flex-1 overflow-y-auto",a),...o})},"SheetContent",0,function(e){let{className:r,children:l,side:c="right",hideCloseButton:u=!1,closeSrText:d="Close",...m}=e;return(0,t.jsxs)(n,{children:[(0,t.jsx)(i,{}),(0,t.jsxs)(a.Content,{"data-slot":"sheet-content","data-side":c,className:(0,s.cn)("group/sheet-content","fixed z-50","flex flex-col gap-6 p-6","bg-background shadow-lg","transition ease-in-out","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===c&&["bottom-0 max-h-svh w-full border-t","lg:right-0 lg:h-full lg:w-lg lg:border-0 lg:border-l","data-[state=open]:max-lg:slide-in-from-bottom data-[state=closed]:max-lg:slide-out-to-bottom","lg:data-[state=open]:slide-in-from-right lg:data-[state=closed]:slide-out-to-right"],"left"===c&&["top-0 max-h-svh w-full border-b","lg:left-0 lg:h-full lg:w-lg lg:border-0 lg:border-r","data-[state=open]:max-lg:slide-in-from-top data-[state=closed]:max-lg:slide-out-to-top","lg:data-[state=open]:slide-in-from-left lg:data-[state=closed]:slide-out-to-left"],r),...m,children:[l,!u&&(0,t.jsxs)(a.Close,{className:(0,s.cn)("absolute top-4 right-4","rounded-2xs border-2 border-transparent","hover:opacity-80","focus:opacity-80","focus:border-ring/20","focus:outline-hidden","transition-opacity","cursor-pointer"),children:[(0,t.jsx)(o.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:d})]})]})]})},"SheetFooter",0,function(e){let{className:a,children:o,...s}=e;return(0,t.jsxs)("div",{"data-slot":"sheet-footer",className:"flex flex-col gap-6",...s,children:[(0,t.jsx)(r.Separator,{}),(0,t.jsx)("div",{className:a,children:o})]})},"SheetHeader",0,function(e){let{className:a,...o}=e;return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,s.cn)("flex flex-col gap-2",a),...o})},"SheetTitle",0,function(e){let{className:o,...r}=e;return(0,t.jsx)(a.Title,{"data-slot":"sheet-title",className:(0,s.cn)("text-foreground text-center text-lg leading-normal font-semibold lg:text-left",o),...r})},"SheetTrigger",0,function(e){let{...o}=e;return(0,t.jsx)(a.Trigger,{"data-slot":"sheet-trigger",...o})}])},263350,915281,e=>{"use strict";var t=e.i(619273),a=e.i(266027);e.i(870165);var o=e.i(457819),s=e.i(620873);e.s(["useHereSuggestions",0,(e,t,r)=>(0,a.useQuery)({queryKey:[s.TanstackQueryKeys.HERE_SUGGESTIONS,e,t,r],queryFn:()=>o.locationsService.getHereSuggestions({search:e,locationTypes:t,in:r}),enabled:!!e,staleTime:3e5}),"useLocationByUrlSuffix",0,e=>(0,a.useQuery)({queryKey:[s.TanstackQueryKeys.LOCATION_BY_URL_SUFFIX,e],queryFn:e?()=>o.locationsService.getLocationByUrlSuffix(e):t.skipToken,enabled:!!e,staleTime:3e5}),"useLocationSuggestions",0,e=>(0,a.useQuery)({queryKey:[s.TanstackQueryKeys.LOCATION_SUGGESTIONS,e],queryFn:()=>o.locationsService.locationSuggestions({search:e}),enabled:!!e,staleTime:3e5})],263350);var r=e.i(330938),n=e.i(861745),i=e.i(777291);e.s(["useEscoOccupations",0,function(e){let t=(0,n.useLocale)(),o=function(e){let{query:t,selectedLocale:a}=e,o=function(e){let t=e.trim();if(!t)return"unknown";let a=(t.match(/[\u0370-\u03FF\u1F00-\u1FFF]/g)??[]).length,o=(t.match(/[a-zA-Z]/g)??[]).length,s=a+o;return 0===s?"unknown":a/s>=.7?i.Locales.EL:o/s>=.7?i.Locales.EN:"mixed"}(t);return o===i.Locales.EL||o===i.Locales.EN?o:a===i.Locales.EL?i.Locales.EL:i.Locales.EN}({query:e.query,selectedLocale:t});return(0,a.useQuery)({queryKey:[s.TanstackQueryKeys.ESCO_OCCUPATIONS,e.query,e.entityTypes,e.limit,o],queryFn:()=>r.escoOccupationsService.search({...e,language:o}),enabled:!!e.query.trim(),placeholderData:e=>e})}],915281)},720844,e=>{"use strict";var t=e.i(25733),a=e.i(271645);e.s(["useLocationHistory",0,function(){let[e,o]=(0,t.useSyncStorage)("location-searches",[]),s=(0,a.useCallback)(e=>{let t={location:e};o(a=>[t,...a.filter(t=>{let a;return a=t.location,a.urlSuffix!==e.urlSuffix})].slice(0,10))},[o]),r=(0,a.useCallback)(e=>{o(t=>t.filter(t=>{let a;return a=t.location,a.urlSuffix!==e.urlSuffix}))},[o]);return{locationSearches:e,addLocationHistoryItem:s,clearLocationHistory:(0,a.useCallback)(()=>{o(()=>[])},[o]),removeLocationHistoryItem:r}}])},595743,e=>{"use strict";var t=e.i(843476),a=e.i(640602),o=e.i(861745),s=e.i(948148),r=e.i(271645),n=e.i(263350),i=e.i(260614),l=e.i(803280),c=e.i(884378),u=e.i(660022);function d(e){let{value:d,locationHistoryItems:m,onLocationHistoryRemove:h,selectedLocation:f,onInputValueChange:x,onLocationSelect:g,placeholder:p,disabled:y=!1,className:v,minSearchLength:b=2,debounceMs:j=300,locationTypes:S}=e,C=(0,s.useTranslations)("components.location-input"),N=(0,o.useLocale)(),{suggestions:L,isLoading:T}=function(e){let{search:t,locationTypes:a,minSearchLength:o=2,debounceMs:s=300}=e,[i,l]=(0,r.useState)(""),[c,u]=(0,r.useState)([]),d=(0,r.useRef)(null);(0,r.useEffect)(()=>
1{if(d.current&&clearTimeout(d.current),!t||t.length<o){l(""),u([]);return}return d.current=setTimeout(()=>{l(t)},s),()=>{d.current&&clearTimeout(d.current)}},[t,o,s]);let{data:m,isFetching:h}=(0,n.useLocationSuggestions)(i);return(0,r.useEffect)(()=>{m&&Array.isArray(m)&&u(m)},[m]),{suggestions:c,isLoading:h}}({search:d,locationTypes:S,minSearchLength:b,debounceMs:j}),w=L.filter(e=>!e.city),q=L.filter(e=>!!e.city),F=new Map(m.map(e=>[e.location.urlSuffix,e.location])),k=m.map(e=>({label:(0,i.getLocationLabel)(e.location,N),value:e.location.urlSuffix,group:C("recent-location-searches"),icon:"History",suffix:(0,t.jsx)(u.Button,{variant:"ghost",size:"icon",onClick:t=>{t.stopPropagation(),h(e)},"aria-label":C("remove-recent-location-search"),children:(0,t.jsx)(c.Icon,{name:"X"})})})),I=new Map(L.map(e=>[e.urlSuffix,e])),E=[...w.map(e=>({label:(0,i.getLocationLabel)(e,N),value:e.urlSuffix,group:C("regions"),icon:"MapPin"})),...q.map(e=>({label:(0,i.getLocationLabel)(e,N),value:e.urlSuffix,group:C("cities"),icon:"MapPin"}))],O=d?E:k,A=d?I:F;return(0,t.jsx)("div",{className:(0,a.cn)("relative",v),children:(0,t.jsx)(l.Autosuggest,{options:O,value:f?.urlSuffix||"",onChange:e=>{let t=A.get(e);t&&g?.(t,{scope:d?"suggestion":"recent"})},inputValue:d,onInputValueChange:x,filterFn:()=>!0,placeholder:p||C("placeholder"),showInputIcon:!1,minSearchLength:b,disabled:y,notFoundText:T?C("searching"):C("no-locations-found"),showHighlightedOptionShortcut:!1})})}var m=e.i(225913),h=e.i(25733),f=e.i(723079),x=e.i(843606),g=e.i(517327),p=e.i(85240),y=e.i(915281),v=e.i(113535);let b="__CMDK_EMPTY_HIGHLIGHT__";function j(e){let{query:o,disabled:n,placeholder:i,searchHistoryItems:l,onChange:d,onSearchHistoryItemRemove:m}=e,h=(0,s.useTranslations)("components.query-input"),[j,S]=(0,r.useState)(!1),[C,N]=(0,r.useState)(!1),[L,T]=(0,r.useState)(b),w=(0,r.useRef)(null),q=(0,r.useRef)(null),F=(0,v.useDebouncedValue)(o,300),k=o.trim(),I=k.length>0,E=!I,O=l.length>0,A=I&&F!==o,{data:B,isFetching:H}=(0,y.useEscoOccupations)({query:F,entityTypes:["occupation"],limit:10}),K=I&&(A||H),R=(0,r.useMemo)(()=>A?[]:B?.results.map(e=>e.label)||[],[B,A]),D=I&&!R.some(e=>e.toLowerCase()===k.toLowerCase()),M=(0,r.useMemo)(()=>{if(E)return l.map(e=>({value:e.query,isCustom:!1}));if(H)return D?[{value:o,isCustom:!0}]:[];let e=R.map(e=>({value:e,isCustom:!1}));return D&&e.push({value:o,isCustom:!0}),e},[E,l,H,R,D,o]),{handleKeyDown:P}=(0,p.useListBoxKeyboardNavigation)({open:C,allOptionsInOrder:M,highlightedValue:L,setHighlightedValue:T,handleSelect:(e,t)=>{S(!1),d(e,{context:I?"suggestion":"recent",position:I?t+1:void 0})},handleCustomValueSelect:()=>{d(o,{context:"suggested-custom"}),S(!1)},shouldShowCustomValue:D,commandListRef:w}),z=(0,r.useCallback)(e=>{if("Enter"===e.key){if(!L||L===b)return;C&&(e.preventDefault(),e.stopPropagation())}P(e)},[P,L,C]);return(0,r.useEffect)(()=>{C||T(b)},[C]),(0,r.useEffect)(()=>{N(j&&!n&&(E&&O||I))},[j,n,E,I,O]),(0,r.useEffect)(()=>{T(e=>e&&e!==b&&M.some(t=>t.value===e)?e:b)},[M]),(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)(x.Popover,{open:C,onOpenChange:S,modal:!1,children:[(0,t.jsx)(x.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("div",{role:"combobox",children:(0,t.jsx)(f.InputWithAdornments,{ref:q,type:"text",value:o,onChange:e=>d(e.target.value,{context:"custom"}),onKeyDown:z,disabled:n,placeholder:i||h("placeholder"),endContent:o?(0,t.jsx)(c.Icon,{name:"X",size:16,"aria-label":h("clear-search"),onClick:()=>d("",{}),className:"cursor-pointer"}):void 0})})}),(0,t.jsx)(x.PopoverContent,{className:"w-[var(--radix-popover-trigger-width)] border-0 p-0",align:"start",side:"bottom",onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()},onPointerDownOutside:e=>{let t=e.target;q.current&&!q.current.contains(t)&&S(!1)},onEscapeKeyDown:()=>{S(!1),q.current?.focus()},children:(0,t.jsx)(g.Command,{shouldFilter:!1,value:L,onValueChange:T,children:(0,t.jsxs)(g.CommandList,{ref:w,children:[E&&(0,t.jsx)(g.CommandGroup,{heading:h("recent-searches"),className:(0,a.cn)({hidden:0===l.length}),children:l.map(e=>(0,t.jsx)(g.CommandItem,{onSelect:()=>{d(e.query,{context:"recent"}),S(!1)},className:"flex cursor-pointer items-center justify-between",shortcut:(0,t.jsx)(u.Button,{variant:"ghost",size:"icon",onClick:t=>{t.stopPropagation(),m(e)},"aria-label":h("remove-recent-search"),children:(0,t.jsx)(c.Icon,{name:"X"})}),icon:"History",value:e.query,label:e.query}
1,e.timestamp))}),I&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(g.CommandGroup,{children:[K&&(0,t.jsx)("div",{role:"presentation",className:"text-card-foreground px-4 py-5 text-center text-sm",children:h("loading")}),!K&&(0,t.jsx)(t.Fragment,{children:R.length>0?R.map((e,a)=>(0,t.jsx)(g.CommandItem,{value:e,onSelect:()=>{d(e,{context:"suggestion",position:a+1}),S(!1)},className:"flex cursor-pointer items-center justify-between",label:e},e)):(0,t.jsx)("div",{role:"presentation",className:"text-card-foreground px-4 py-5 text-center text-sm",children:h("no-suggestions")})})]}),D&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.CommandSeparator,{}),(0,t.jsx)(g.CommandGroup,{heading:h("custom-value-header"),children:(0,t.jsx)(g.CommandItem,{value:o,label:`"${o}"`,onSelect:()=>{d(o,{context:"suggested-custom"}),S(!1)},className:"flex cursor-pointer items-center justify-between"})})]})]})]})})})]})})}var S=e.i(720844),C=e.i(31642);let N=(0,m.cva)("flex flex-col",{variants:{size:{sm:"sm:flex-row gap-3",md:"md:flex-row gap-2"}},defaultVariants:{size:"sm"}}),L=(0,m.cva)("w-full",{variants:{size:{sm:"sm:w-fit",md:"md:w-fit"}},defaultVariants:{size:"sm"}});e.s(["JobSearchBar",0,function(e){let{onSearch:n,defaultQuery:l="",defaultLocation:c,queryPlaceholder:m,locationPlaceholder:f,searchButtonText:x,disabled:g=!1,size:p,className:y}=e,v=(0,s.useTranslations)("components.job-search-bar"),{searches:b,addSearch:T,removeSearch:w}=function(){let[e,t]=(0,h.useSyncStorage)("searches",[]),a=(0,r.useCallback)(e=>{if(!e.trim())return;let a={query:e.trim(),timestamp:Date.now()};t(e=>{let t=e.filter(e=>e.query!==a.query);return[a,...t].slice(0,5)})},[t]);return{searches:e,addSearch:a,removeSearch:(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.timestamp!==e))},[t]),clearHistory:(0,r.useCallback)(()=>{t(()=>[])},[t])}}(),{trackSearchBarOptionSelect:q,trackSearchBarSubmit:F}=(0,C.useTracking)(),{locationSearches:k,addLocationHistoryItem:I,removeLocationHistoryItem:E}=(0,S.useLocationHistory)(),O=(0,o.useLocale)(),[A,B]=(0,r.useState)(l),[H,K]=(0,r.useState)(c?(0,i.getLocationLabel)(c,O):""),[R,D]=(0,r.useState)(c),M=(0,r.useRef)({}),P=(0,r.useRef)(!1),z=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{P.current&&""!==l||(B(l),P.current=!1)},[l]),(0,r.useEffect)(()=>{z.current&&c||(K(c?(0,i.getLocationLabel)(c,O):""),D(c),z.current=!1)},[c,O]),(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=A.trim(),a=""===H.trim()?void 0:R;a&&I(a),T(t),F({queryTerm:t,locationTerm:H,queryContext:t&&!M.current.query?"custom":M.current.query,locationContext:M.current.location}),M.current={location:void 0,query:void 0},z.current=!1,P.current=!1,n(t,a,!1)},className:(0,a.cn)("w-full",y),children:(0,t.jsxs)("div",{className:N({size:p}),children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(j,{query:A,searchHistoryItems:b,disabled:g,onChange:(e,t)=>
1{t.context&&"custom"!==t.context&&q({type:"query",context:t.context,position:t.position,term:e||""}),M.current.query=e?t.context:void 0,B(e),P.current=!0},placeholder:m||v("query-placeholder"),onSearchHistoryItemRemove:e=>w(e.timestamp)})}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(d,{value:H,locationHistoryItems:k,onLocationHistoryRemove:e=>E(e.location),selectedLocation:R,onInputValueChange:e=>{z.current=!0,K(e),""===e.trim()&&(M.current.location=void 0,D(void 0))},onLocationSelect:(e,t)=>{let a=(0,i.getLocationLabel)(e,O)||"";q({type:"location",context:t.scope,term:a}),K(a),D(e),M.current.location=t.scope,z.current=!1},placeholder:f||v("location-placeholder"),disabled:g,locationTypes:["city","postalCode","area"]})}),(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(u.Button,{type:"submit",variant:"highlighted",disabled:g,className:L({size:p}),children:x||v("search-button-text")})})]})})}],595743)},575426,e=>{"use strict";var t=e.i(843476),a=e.i(364623),o=e.i(595743),s=e.i(263350);let r=()=>{let{filters:e,updateFilters:r,replaceFilters:n}=(0,a.useJobFilters)(),{data:i}=(0,s.useLocationByUrlSuffix)(e.location);return(0,t.jsx)(o.JobSearchBar,{className:"max-w-3xl",onSearch:(e,t,a)=>a?n({title:e,location:t?.urlSuffix}):r({title:e,location:t?.urlSuffix}),defaultQuery:e.title,defaultLocation:i??void 0})};e.s(["JobAdSearchHeader",0,()=>(0,t.jsx)(r,{})],575426)},860070,e=>{"use strict";var t=e.i(843476),a=e.i(660022),o=e.i(884378),s=e.i(974661),r=e.i(861745),n=e.i(948148),i=e.i(364623),l=e.i(226213),c=e.i(271645),u=e.i(640602),d=e.i(473917),m=e.i(237906),h=e.i(598710);let f=()=>{let e=["","max-w-20","max-w-40","max-w-60","max-w-80"];return(0,t.jsx)("div",{className:"flex flex-col gap-2",children:Array.from({length:3},(a,o)=>(0,t.jsxs)("div",{className:"border-b-sidebar bg-background flex w-full flex-col gap-6 rounded-xs border-b px-4 py-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(h.Skeleton,{className:"h-6 w-6"}),(0,t.jsx)(h.Skeleton,{className:"h-5 w-30"})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:5},(a,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(h.Skeleton,{className:"h-4 w-4 rounded-xs"}),(0,t.jsx)(h.Skeleton,{className:(0,u.cn)("h-4 w-full",e[Math.floor(5*Math.random())])})]},`${o}-${s}`))}),(0,t.jsx)(h.Skeleton,{className:"h-8 w-full"})]},o))})};var x=e.i(266027);e.i(870165);var g=e.i(602330),p=e.i(620873),y=e.i(34178),v=e.i(307551),b=e.i(81481);e.s(["MobileFiltersSheet",0,function(){let e=(0,r.useLocale)(),[h,j]=(0,c.useState)(!1),{hasSidebarActiveFilters:S,filters:C}=(0,i.useJobFilters)(),{data:N}=function(e){let{filters:t,enabled:a=!0,refetchOnMount:o=!0}=e;return(0,x.useQuery)({queryKey:[p.TanstackQueryKeys.FILTERS_AGGREGATION,t],queryFn:async()=>await g.jobAdsService.retrieveFilters(t),enabled:a,refetchOnMount:o,staleTime:3e5,gcTime:6e5})}({filters:Object.fromEntries(Object.entries({locale:e,page:Math.max(1,C.page)-1,limit:C.limit,title:C.title||void 0,category:C.category?.length>0?C.category.join(","):void 0,occupationType:C.occupationType?.length>0?C.occupationType.join(","):void 0,seniority:C.seniority?.length>0?C.seniority.join(","):void 0,industry:C.industry?.length>0?C.industry.join(","):void 0,remote:!!C.remote||void 0,companyId:C.company?.length>0?C.company.join(","):void 0,eventId:C.event?.length>0?C.event.join(","):void 0,locationSlug:C.location||void 0,salaryExists:!!C.salary||void 0,orderDir:C.orderDir,orderBy:C.orderBy}).filter(e=>{let[t]=e;return!y.paginationKeys.includes(t)})),enabled:h}),{data:L}=(0,v.useCompaniesById)(C.company),T=(0,c.useMemo)(()=>L?(0,b.keyBy)(L.items,"id"):null,[L]),w=(0,n.useTranslations)("pages.jobs"),{inViewport:q,ref:F}=(0,l.useInViewport)({rootMargin:"2000px 0px 0px 0px"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:F,"aria-hidden":!0}),(0,t.jsx)("div",{className:(0,u.cn)("fixed right-5 bottom-19 z-50 transition-[transform,bottom,opacity] duration-300",q&&"bottom-0 translate-y-full opacity-0"),children:(0,t.jsxs)(s.Sheet,{open:h,onOpenChange:j,children:[(0,t.jsx)(s.SheetTrigger,{asChild:!0,children:(0,t.jsxs)(a.Button,{className:"relative",children:[(0,t.jsx)(o.Icon,{name:"Filter"}
1),w("mobile-filters"),S&&(0,t.jsx)("span",{"aria-hidden":!0,className:"bg-destructive text-destructive-foreground absolute -top-1 -right-1 size-3 rounded-full"})]})}),(0,t.jsxs)(s.SheetContent,{className:"h-[90vh] w-full gap-0",children:[(0,t.jsxs)(s.SheetHeader,{children:[(0,t.jsx)(s.SheetTitle,{children:w("mobile-filters")}),N&&(0,t.jsx)(d.ClearAllButton,{className:"bg-sidebar flex w-full p-3"})]}),(0,t.jsx)(s.SheetBody,{className:"bg-sidebar p-3",children:N?(0,t.jsx)(m.JobAdFilters,{filtersAggregation:N,selectedCompanies:T}):(0,t.jsx)(f,{})}),(0,t.jsx)(s.SheetFooter,{children:(0,t.jsx)(a.Button,{className:"w-full",onClick:()=>j(!1),children:w("mobile-filters-search")})})]})]})})]})}],860070)}]);

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.