1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,974661,e=>{"use strict";var t=e.i(843476),o=e.i(326999),a=e.i(995926),s=e.i(640602),i=e.i(88777);function n(e){let{...a}=e;return(0,t.jsx)(o.Portal,{"data-slot":"sheet-portal",...a})}function l(e){let{className:a,...i}=e;return(0,t.jsx)(o.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",a),...i})}e.s(["Sheet",0,function(e){let{...a}=e;return(0,t.jsx)(o.Root,{"data-slot":"sheet",...a})},"SheetBody",0,function(e){let{className:o,...a}=e;return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,s.cn)("flex-1 overflow-y-auto",o),...a})},"SheetContent",0,function(e){let{className:i,children:r,side:u="right",hideCloseButton:c=!1,closeSrText:d="Close",...m}=e;return(0,t.jsxs)(n,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(o.Content,{"data-slot":"sheet-content","data-side":u,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"===u&&["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"===u&&["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"],i),...m,children:[r,!c&&(0,t.jsxs)(o.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)(a.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:d})]})]})]})},"SheetFooter",0,function(e){let{className:o,children:a,...s}=e;return(0,t.jsxs)("div",{"data-slot":"sheet-footer",className:"flex flex-col gap-6",...s,children:[(0,t.jsx)(i.Separator,{}),(0,t.jsx)("div",{className:o,children:a})]})},"SheetHeader",0,function(e){let{className:o,...a}=e;return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,s.cn)("flex flex-col gap-2",o),...a})},"SheetTitle",0,function(e){let{className:a,...i}=e;return(0,t.jsx)(o.Title,{"data-slot":"sheet-title",className:(0,s.cn)("text-foreground text-center text-lg leading-normal font-semibold lg:text-left",a),...i})},"SheetTrigger",0,function(e){let{...a}=e;return(0,t.jsx)(o.Trigger,{"data-slot":"sheet-trigger",...a})}])},263350,915281,e=>{"use strict";var t=e.i(619273),o=e.i(266027);e.i(870165);var a=e.i(457819),s=e.i(620873);e.s(["useHereSuggestions",0,(e,t,i)=>(0,o.useQuery)({queryKey:[s.TanstackQueryKeys.HERE_SUGGESTIONS,e,t,i],queryFn:()=>a.locationsService.getHereSuggestions({search:e,locationTypes:t,in:i}),enabled:!!e,staleTime:3e5}),"useLocationByUrlSuffix",0,e=>(0,o.useQuery)({queryKey:[s.TanstackQueryKeys.LOCATION_BY_URL_SUFFIX,e],queryFn:e?()=>a.locationsService.getLocationByUrlSuffix(e):t.skipToken,enabled:!!e,staleTime:3e5}),"useLocationSuggestions",0,e=>(0,o.useQuery)({queryKey:[s.TanstackQueryKeys.LOCATION_SUGGESTIONS,e],queryFn:()=>a.locationsService.locationSuggestions({search:e}),enabled:!!e,staleTime:3e5})],263350);var i=e.i(330938),n=e.i(861745),l=e.i(777291);e.s(["useEscoOccupations",0,function(e){let t=(0,n.useLocale)(),a=function(e){let{query:t,selectedLocale:o}=e,a=function(e){let t=e.trim();if(!t)return"unknown";let o=(t.match(/[\u0370-\u03FF\u1F00-\u1FFF]/g)??[]).length,a=(t.match(/[a-zA-Z]/g)??[]).length,s=o+a;return 0===s?"unknown":o/s>=.7?l.Locales.EL:a/s>=.7?l.Locales.EN:"mixed"}(t);return a===l.Locales.EL||a===l.Locales.EN?a:o===l.Locales.EL?l.Locales.EL:l.Locales.EN}({query:e.query,selectedLocale:t});return(0,o.useQuery)({queryKey:[s.TanstackQueryKeys.ESCO_OCCUPATIONS,e.query,e.entityTypes,e.limit,a],queryFn:()=>i.escoOccupationsService.search({...e,language:a}),enabled:!!e.query.trim(),placeholderData:e=>e})}],915281)},720844,e=>{"use strict";var t=e.i(25733),o=e.i(271645);e.s(["useLocationHistory",0,function(){let[e,a]=(0,t.useSyncStorage)("location-searches",[]),s=(0,o.useCallback)(e=>{let t={location:e};a(o=>[t,...o.filter(t=>{let o;return o=t.location,o.urlSuffix!==e.urlSuffix})].slice(0,10))},[a]),i=(0,o.useCallback)(e=>{a(t=>t.filter(t=>{let o;return o=t.location,o.urlSuffix!==e.urlSuffix}))},[a]);return{locationSearches:e,addLocationHistoryItem:s,clearLocationHistory:(0,o.useCallback)(()=>{a(()=>[])},[a]),removeLocationHistoryItem:i}}])},595743,e=>{"use strict";var t=e.i(843476),o=e.i(640602),a=e.i(861745),s=e.i(948148),i=e.i(271645),n=e.i(263350),l=e.i(260614),r=e.i(884378),u=e.i(660022),c=e.i(183741);function d(e){let{value:d,locationHistoryItems:m,onLocationHistoryRemove:p,selectedLocation:x,onInputValueChange:g,onLocationSelect:f,placeholder:h,disabled:b=!1,className:v,minSearchLength:y=2,debounceMs:j=300,locationTypes:S}=e,C=(0,s.useTranslations)("components.location-input"),N=(0,a.useLocale)(),{suggestions:w,isLoading:L}=function(e){let{search:t,locationTypes:o,minSearchLength:a=2,debounceMs:s=300}=e,[l,r]=(0,i.useState)(""),[u,c]=(0,i.useState)([]),d=(0,i.useRef)(null);(0,i.useEffect)(()=>
1{if(d.current&&clearTimeout(d.current),!t||t.length<a){r(""),c([]);return}return d.current=setTimeout(()=>{r(t)},s),()=>{d.current&&clearTimeout(d.current)}},[t,a,s]);let{data:m,isFetching:p}=(0,n.useLocationSuggestions)(l);return(0,i.useEffect)(()=>{m&&Array.isArray(m)&&c(m)},[m]),{suggestions:u,isLoading:p}}({search:d,locationTypes:S,minSearchLength:y,debounceMs:j}),I=w.filter(e=>!e.city),T=w.filter(e=>!!e.city),k=new Map(m.map(e=>[e.location.urlSuffix,e.location])),q=m.map(e=>({label:(0,l.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(),p(e)},"aria-label":C("remove-recent-location-search"),children:(0,t.jsx)(r.Icon,{name:"X"})})})),F=new Map(w.map(e=>[e.urlSuffix,e])),O=[...I.map(e=>({label:(0,l.getLocationLabel)(e,N),value:e.urlSuffix,group:C("regions"),icon:"MapPin"})),...T.map(e=>({label:(0,l.getLocationLabel)(e,N),value:e.urlSuffix,group:C("cities"),icon:"MapPin"}))],E=d?O:q,A=d?F:k;return(0,t.jsx)("div",{className:(0,o.cn)("relative",v),children:(0,t.jsx)(c.ComboboxAutosuggest,{items:E,value:x?{value:x.urlSuffix,label:(0,l.getLocationLabel)(x,N)}:null,onValueChange:e=>{if(!e)return;let t=A.get(e.value);t&&f?.(t,{scope:d?"suggestion":"recent"})},inputValue:d,onInputValueChange:g,placeholder:h,disabled:b,emptyMessage:C("no-locations-found"),loadingMessage:C("searching"),isLoading:L,autoHighlight:"always",openOnInputClick:!0,minSearchLength:y})})}var m=e.i(225913),p=e.i(25733),x=e.i(915281),g=e.i(113535);e.s([],55767),e.i(55767);var f=e.i(455380),h=e.i(392021),b=e.i(31006),v=e.i(733857),y=e.i(112415);let j=e.i(284421).ComboboxTrigger;var S=e.i(484817);let C=e.i(30593).ComboboxInputGroup;var N=e.i(399818),w=e.i(775523),L=e.i(400821),I=e.i(479247),T=e.i(452268),k=e.i(619372),q=e.i(994642),F=e.i(256992),O=e.i(227987),E=e.i(218788),A=e.i(612980);let B=e.i(806798).ComboboxItem;var M=e.i(880420),z=e.i(722317),H=e.i(223022),G=e.i(65282),R=e.i(372684);e.s(["Arrow",()=>O.ComboboxArrow,"Backdrop",()=>k.ComboboxBackdrop,"Clear",()=>w.ComboboxClear,"Collection",()=>z.ComboboxCollection,"Empty",()=>H.ComboboxEmpty,"Group",()=>E.ComboboxGroup,"GroupLabel",()=>A.ComboboxGroupLabel,"Icon",()=>N.ComboboxIcon,"Input",()=>S.ComboboxInput,"InputGroup",0,C,"Item",0,B,"List",()=>L.ComboboxList,"Popup",()=>F.ComboboxPopup,"Portal",()=>T.ComboboxPortal,"Positioner",()=>q.ComboboxPositioner,"Root",0,function(e){let o,{openOnInputClick:a=!1,value:s,defaultValue:n,onValueChange:l,mode:r="list",itemToStringValue:u,...c}=e,d="inline"===r||"both"===r,m="inline"===r||"none"===r,p=void 0!==s,[x,g]=i.useState(n??""),[y,j]=i.useState("");i.useEffect(()=>{p&&j("")},[s,p]),o=d&&""!==y?y:p?s??"":x;let S=(0,h.useCoreFilter)(),C=i.useMemo(()=>void 0!==c.filter?c.filter:S.contains,[c.filter,S]),N=String(p?s:x).trim(),w=i.useMemo(()=>"both"!==r?m?null:C:null===C?null:(e,t,o)=>C(e,N,o),[C,r,N,m]);return(0,t.jsx)(f.AriaCombobox,{...c,itemToStringLabel:u,openOnInputClick:a,selectionMode:"none",fillInputOnItemPress:!0,filter:w,autoComplete:r,inputValue:o,defaultInputValue:n,onInputValueChange:function(e,t){j(""),p||g(e),l?.(e,t)},onItemHighlighted:function(t,o){e.onItemHighlighted?.(t,o),o.reason!==v.REASONS.pointer&&(d?null==t?j(""):j((0,b.stringifyAsLabel)(t,u)):j(""))}})},"Row",()=>M.ComboboxRow,"Separator",()=>G.Separator,"Status",()=>I.ComboboxStatus,"Trigger",0,j,"Value",0,function(e){let{children:o}=e,a=(0,y.useComboboxInputValueContext)(),s=null;return s="function"==typeof o?o(String(a)):null!=o?o:a,(0,t.jsx)(i.Fragment,{children:s})},"useFilter",()=>h.useCoreFilter,"useFilteredItems",()=>R.useFilteredItems],257087);var V=e.i(257087),V=V,P=e.i(300332);let K=V.Root;function Q(e){let{className:a,icon:s="ChevronDown",children:i,...n}=e;return(0,t.jsxs)(V.Trigger,{className:(0,o.cn)("[&_svg:not([class*='size-'])]:size-4",a),...n,children:[i,(0,t.jsx)(r.Icon,{name:s,className:"text-muted-foreground pointer-events-none",size:4})]})}function _(e){let{className:a,...s}=e;return(0,t.jsx)(V.Clear,{"data-slot":"autocomplete-clear",render:(0,t.jsx)(P.InputGroupButton,{variant:"ghost",size:"icon-xs"}),className:(0,o.cn)(a),...s,children:(0,t.jsx)(r.Icon,{name:"X",className:"pointer-events-none"})})}function U(e){let{className:a,children:s,disabled:i=!1,showClear:n=!1,triggerIcon:l,inputGroupRef:r,...u}=e;return(0,t.jsxs)(P.InputGroup,{className:(0,o.cn)("w-full",a),ref:r,children:[(0,t.jsx)(V.Input,{render:(0,t.jsx)(P.InputGroupInput,{disabled:i}),...u}),(0,t.jsxs)(P.InputGroupAddon,{align:"inline-end",children:[l&&(0,t.jsx)(P.InputGroupButton,{size:"icon-xs",variant:"ghost",asChild:!0,"data-slot":"input-group-button",className:(0,o.cn)("group-has-data-[slot=autocomplete-clear]/input-group:hidden not-disabled:hover:bg-transparent not-disabled:active:bg-transparent data-pressed:bg-transparent"),disabled:i,children:(0,t.jsx)(Q,{icon:l})}),n&&(0,t.jsx)(_,{disabled:i,className:"not-disabled:hover:bg-transparent not-disabled:active:bg-transparent"})]}),s]})}function D(e){let{className:a,side:s="bottom",sideOffset:i=6,align:n="start",alignOffset:l=0,anch
1or:r,...u}=e;return(0,t.jsx)(V.Portal,{children:(0,t.jsx)(V.Positioner,{side:s,sideOffset:i,align:n,alignOffset:l,anchor:r,className:"isolate z-50",children:(0,t.jsx)(V.Popup,{"data-slot":"autocomplete-content",className:(0,o.cn)("group/autocomplete-content relative overflow-hidden","bg-popover text-popover-foreground","rounded-md border shadow-md outline-hidden","max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))]","origin-(--transform-origin) duration-100","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95","data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","*:data-[slot=input-group]:m-1","*:data-[slot=input-group]:mb-0","*:data-[slot=input-group]:h-8","*:data-[slot=input-group]:border-input/30","*:data-[slot=input-group]:bg-input/30","*:data-[slot=input-group]:shadow-none",a),...u})})})}function J(e){let{className:a,...s}=e;return(0,t.jsx)(V.List,{"data-slot":"autocomplete-list",className:(0,o.cn)("max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))]","scroll-py-1 overflow-y-auto",a),...s})}function X(e){let{className:a,children:s,...i}=e;return(0,t.jsx)(V.Item,{"data-slot":"autocomplete-item",className:(0,o.cn)("flex items-center gap-2 px-2 py-3","rounded-xs","text-foreground overflow-hidden text-sm leading-normal text-ellipsis whitespace-nowrap","data-highlighted:bg-accent data-highlighted:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","cursor-default select-none","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...i,children:s})}function $(e){let{className:a,...s}=e;return(0,t.jsx)(V.Group,{"data-slot":"autocomplete-group",className:(0,o.cn)("p-2",a),...s})}function Y(e){let{className:a,...s}=e;return(0,t.jsx)(V.GroupLabel,{"data-slot":"autocomplete-label",className:(0,o.cn)("text-muted-foreground overflow-hidden px-2 py-1.5 text-xs leading-normal font-medium text-ellipsis whitespace-nowrap",a),...s})}function Z(e){let{...o}=e;return(0,t.jsx)(V.Collection,{"data-slot":"autocomplete-collection",...o})}function W(e){let{className:a,...s}=e;return(0,t.jsx)(V.Empty,{"data-slot":"autocomplete-empty",className:(0,o.cn)("text-card-foreground flex hidden items-center justify-center px-4 py-5 text-sm group-data-empty/autocomplete-content:flex",a),...s})}function ee(e){let{className:a,...s}=e;return(0,t.jsx)(V.Status,{"data-slot":"autocomplete-status",className:(0,o.cn)("text-card-foreground flex items-center justify-center px-4 py-5 text-sm","empty:hidden",a),...s})}function et(e){let{className:a,...s}=e;return(0,t.jsx)(V.Separator,{"data-slot":"autocomplete-separator",className:(0,o.cn)("bg-border -mx-2 mt-2 h-px",a),...s})}var eo=e.i(508214);function ea(e){let{items:a,value:s,onValueChange:n,placeholder:l,emptyMessage:u="No options found.",loadingMessage:c="Loading...",isLoading:d=!1,disabled:m=!1,showClear:p=!0,triggerIcon:x,autoHighlight:g="always",allowFiltering:f=!1,openOnInputClick:h=!1,submitOnItemClick:b=!1,showCustomValue:v=!1,customValueHeader:y="Custom Value",className:j,minSearchLength:S=1,inputProps:C}=e,N=i.useRef(null),w=s.trim(),L=v&&w.length>0&&!d&&!a.some(e=>e.value.trim().toLocaleLowerCase()===w.toLocaleLowerCase()),I=0===a.length&&L,T=(0,i.useMemo)(()=>(0,eo.groupItems)(a),[a]),k=L?[...T,{value:y,items:[{value:w,label:w,isCustom:!0}]}]:T,q=(0,i.useMemo)(()=>new Map(T.flatMap(e=>e.items).map((e,t)=>[e.value,t+1])),[T]),F=s.trim().length,O=0===F&&(a.length>0||d);return(0,t.jsxs)(K,{items:k,filteredItems:d?[]:void 0,value:s,onValueChange:(e,t)=>
1{if("item-press"!==t.reason)return void n(e,t);let o=k.flatMap(e=>e.items).find(t=>t.value===e);n(e,{...t,selectedItem:o,position:o&&!o.isCustom?q.get(o.value):void 0})},itemToStringValue:e=>e.value,filter:f?eo.filterItem:null,autoHighlight:g,openOnInputClick:h,submitOnItemClick:b,disabled:m,children:[(0,t.jsx)(U,{...C,placeholder:l,className:(0,o.cn)("w-full",j),triggerIcon:x,showClear:p,disabled:m,inputGroupRef:N}),(0,t.jsxs)(D,{className:(0,o.cn)(!(F>=S)&&!O&&"hidden","min-w-[calc(var(--anchor-width)]"),"aria-busy":d||void 0,anchor:N,children:[(0,t.jsx)(ee,{className:d?void 0:"sr-only",children:d?c:null}),I&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{role:"status",className:"text-card-foreground flex items-center justify-center px-4 py-5 text-sm",children:u}),(0,t.jsx)(et,{})]}),(0,t.jsx)(W,{className:d?"sr-only":void 0,children:d?null:u}),(0,t.jsx)(J,{children:(e,o)=>(0,t.jsxs)($,{items:e.items,children:[e.value&&(0,t.jsx)(Y,{children:e.value}),(0,t.jsx)(Z,{children:e=>(0,t.jsxs)(X,{value:e,className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[e.icon&&(0,t.jsx)(r.Icon,{name:e.icon,className:"shrink-0",size:16}),(0,t.jsx)("span",{className:"overflow-hidden text-ellipsis",children:e.label})]}),e.suffix]},e.value)}),o<k.length-1&&(0,t.jsx)(et,{})]},e.value||`ungrouped-${o}`)})]})]})}function es(e){let{query:o,disabled:a,placeholder:n,searchHistoryItems:l,onChange:c,onSearchHistoryItemRemove:d}=e,m=(0,s.useTranslations)("components.query-input"),p=(0,g.useDebouncedValue)(o,300),f=o.trim().length>0,h=f&&p!==o,{data:b,isFetching:v}=(0,x.useEscoOccupations)({query:p,entityTypes:["occupation"],limit:10}),y=f&&(h||v),j=(0,i.useMemo)(()=>h?[]:b?.results.map(e=>e.label)||[],[b,h]),S=(0,i.useMemo)(()=>f?j.map(e=>({label:e,value:e})):l.map(e=>({label:e.query,value:e.query,icon:"History",suffix:(0,t.jsx)(u.Button,{variant:"ghost",size:"icon",onClick:t=>{t.stopPropagation(),d(e)},"aria-label":m("remove-recent-search"),children:(0,t.jsx)(r.Icon,{name:"X"})}),group:m("recent-searches")})),[f,j,l,m,d]);return(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(ea,{items:S,value:o,onValueChange:(e,t)=>
1{"item-press"!==t.reason?c(e,{context:"custom"}):t.selectedItem?.isCustom?c(e,{context:"suggested-custom"}):f?c(e,{context:"suggestion",position:t.position}):c(e,{context:"recent"})},disabled:a,loadingMessage:m("loading"),emptyMessage:m("no-suggestions"),isLoading:y,placeholder:n,showCustomValue:!0,openOnInputClick:!0,autoHighlight:!1,customValueHeader:m("custom-value-header")})})}var ei=e.i(720844),en=e.i(31642);let el=(0,m.cva)("flex flex-col",{variants:{size:{sm:"sm:flex-row gap-3",md:"md:flex-row gap-2"}},defaultVariants:{size:"sm"}}),er=(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:r="",defaultLocation:c,queryPlaceholder:m,locationPlaceholder:x,searchButtonText:g,disabled:f=!1,size:h,className:b}=e,v=(0,s.useTranslations)("components.job-search-bar"),{searches:y,addSearch:j,removeSearch:S}=function(){let[e,t]=(0,p.useSyncStorage)("searches",[]),o=(0,i.useCallback)(e=>{if(!e.trim())return;let o={query:e.trim(),timestamp:Date.now()};t(e=>{let t=e.filter(e=>e.query!==o.query);return[o,...t].slice(0,5)})},[t]);return{searches:e,addSearch:o,removeSearch:(0,i.useCallback)(e=>{t(t=>t.filter(t=>t.timestamp!==e))},[t]),clearHistory:(0,i.useCallback)(()=>{t(()=>[])},[t])}}(),{trackSearchBarOptionSelect:C,trackSearchBarSubmit:N}=(0,en.useTracking)(),{locationSearches:w,addLocationHistoryItem:L,removeLocationHistoryItem:I}=(0,ei.useLocationHistory)(),T=(0,a.useLocale)(),[k,q]=(0,i.useState)(r),[F,O]=(0,i.useState)(c?(0,l.getLocationLabel)(c,T):""),[E,A]=(0,i.useState)(c),B=(0,i.useRef)({}),M=(0,i.useRef)(!1),z=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{M.current&&""!==r||(q(r),M.current=!1)},[r]),(0,i.useEffect)(()=>{z.current&&c||(O(c?(0,l.getLocationLabel)(c,T):""),A(c),z.current=!1)},[c,T]),(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=k.trim(),o=""===F.trim()?void 0:E;o&&L(o),j(t),N({queryTerm:t,locationTerm:F,queryContext:t&&!B.current.query?"custom":B.current.query,locationContext:B.current.location}),B.current={location:void 0,query:void 0},z.current=!1,M.current=!1,n(t,o,!1)},className:(0,o.cn)("w-full",b),children:(0,t.jsxs)("div",{className:el({size:h}),children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(es,{query:k,searchHistoryItems:y,disabled:f,onChange:(e,t)=>
1{t.context&&"custom"!==t.context&&C({type:"query",context:t.context,position:t.position,term:e||""}),B.current.query=e?t.context:void 0,q(e),M.current=!0},placeholder:m||v("query-placeholder"),onSearchHistoryItemRemove:e=>S(e.timestamp)})}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(d,{value:F,locationHistoryItems:w,onLocationHistoryRemove:e=>I(e.location),selectedLocation:E,onInputValueChange:e=>{z.current=!0,O(e),""===e.trim()&&(B.current.location=void 0,A(void 0))},onLocationSelect:(e,t)=>{let o=(0,l.getLocationLabel)(e,T)||"";C({type:"location",context:t.scope,term:o}),O(o),A(e),B.current.location=t.scope,z.current=!1},placeholder:x||v("location-placeholder"),disabled:f,locationTypes:["city","postalCode","area"]})}),(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(u.Button,{type:"submit",variant:"highlighted",disabled:f,className:er({size:h}),children:g||v("search-button-text")})})]})})}],595743)},575426,e=>{"use strict";var t=e.i(843476),o=e.i(364623),a=e.i(595743),s=e.i(263350);let i=()=>{let{filters:e,updateFilters:i,replaceFilters:n}=(0,o.useJobFilters)(),{data:l}=(0,s.useLocationByUrlSuffix)(e.location);return(0,t.jsx)(a.JobSearchBar,{className:"max-w-3xl",onSearch:(e,t,o)=>o?n({title:e,location:t?.urlSuffix}):i({title:e,location:t?.urlSuffix}),defaultQuery:e.title,defaultLocation:l??void 0})};e.s(["JobAdSearchHeader",0,()=>(0,t.jsx)(i,{})],575426)},860070,e=>{"use strict";var t=e.i(843476),o=e.i(660022),a=e.i(884378),s=e.i(974661),i=e.i(861745),n=e.i(948148),l=e.i(364623),r=e.i(226213),u=e.i(271645),c=e.i(640602),d=e.i(473917),m=e.i(237906),p=e.i(598710);let x=()=>{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},(o,a)=>(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)(p.Skeleton,{className:"h-6 w-6"}),(0,t.jsx)(p.Skeleton,{className:"h-5 w-30"})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:5},(o,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(p.Skeleton,{className:"h-4 w-4 rounded-xs"}),(0,t.jsx)(p.Skeleton,{className:(0,c.cn)("h-4 w-full",e[Math.floor(5*Math.random())])})]},`${a}-${s}`))}),(0,t.jsx)(p.Skeleton,{className:"h-8 w-full"})]},a))})};var g=e.i(266027);e.i(870165);var f=e.i(602330),h=e.i(620873),b=e.i(34178),v=e.i(307551),y=e.i(81481);e.s(["MobileFiltersSheet",0,function(){let e=(0,i.useLocale)(),[p,j]=(0,u.useState)(!1),{hasSidebarActiveFilters:S,filters:C}=(0,l.useJobFilters)(),{data:N}=function(e){let{filters:t,enabled:o=!0,refetchOnMount:a=!0}=e;return(0,g.useQuery)({queryKey:[h.TanstackQueryKeys.FILTERS_AGGREGATION,t],queryFn:async()=>await f.jobAdsService.retrieveFilters(t),enabled:o,refetchOnMount:a,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!b.paginationKeys.includes(t)})),enabled:p}),{data:w}=(0,v.useCompaniesById)(C.company),L=(0,u.useMemo)(()=>w?(0,y.keyBy)(w.items,"id"):null,[w]),I=(0,n.useTranslations)("pages.jobs"),{inViewport:T,ref:k}=(0,r.useInViewport)({rootMargin:"2000px 0px 0px 0px"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:k,"aria-hidden":!0}),(0,t.jsx)("div",{className:(0,c.cn)("fixed right-5 bottom-19 z-50 transition-[transform,bottom,opacity] duration-300",T&&"bottom-0 translate-y-full opacity-0"),children:(0,t.jsxs)(s.Sheet,{open:p,onOpenChange:j,children:[(0,t.jsx)(s.SheetTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{className:"relative",children:[(0,t.jsx)(a.Icon,{name:"Filter"}
1),I("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:I("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:L}):(0,t.jsx)(x,{})}),(0,t.jsx)(s.SheetFooter,{children:(0,t.jsx)(o.Button,{className:"w-full",onClick:()=>j(!1),children:I("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.