1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4907],{22676:(e,t,r)=>{"use strict";r.d(t,{MatchBackToList:()=>x,MatchFeedLink:()=>w,MatchHeaderSearch:()=>g});var a=r(95155),n=r(98500),s=r.n(n),i=r(73321),l=r(89239),c=r(34461),o=r(18555),u=r(48280),d=r(52462),h=r(29522),m=r(66564);function f(){return(0,a.jsx)("div",{className:"h-12 min-w-0 w-full flex-1 rounded-xl bg-subtle"})}function w({children:e,className:t}){let r=(0,o.Ym)(),n=(0,u.I3)();return(0,a.jsx)(s(),{href:(0,u.Rz)(r,n),className:t,children:e})}function x(){let e,t=(0,o.K_)(),r=(0,o.Ym)(),n=(0,i.usePathname)(),h=(0,u.I3)(),m=(e=(0,o.Ym)(),(0,d.Wn)("match","/",e));return n===m||n===`${m}/`?null:(0,a.jsx)(l.$,{asChild:!0,size:"md",variant:"secondary",children:(0,a.jsxs)(s(),{href:(0,u.Rz)(r,h),children:[(0,a.jsx)(c.A,{}),(0,a.jsx)("span",{className:"max-md:sr-only",children:t.match.backToList})]})})}function g(){let e=(0,o.Ym)(),t=(0,i.usePathname)(),{slot:r}=(0,h.B)(),n=(0,d.Wn)("match","/",e);return t!==n&&t!==`${n}/`?null:r?(0,a.jsx)("div",{className:"min-w-0 w-full flex-1",children:(0,a.jsx)(m.p,{...r,showHints:!1})}):(0,a.jsx)(f,{})}},24676:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(57077).w)({name:"sparkles",componentName:"SparklesFilled",style:"core-filled",viewBox:"0 0 24 24",elements:[{tag:"path",attributes:{fill:"currentColor","fill-rule":"evenodd",d:"M14.473 2.73q-.145.328-.298.65a15.2 15.2 0 0 1-6.238 6.638.317.317 0 0 0 0 .553q.234.132.463.271a15.2 15.2 0 0 1 6.073 7.017.331.331 0 0 0 .605 0q.144-.327.297-.65a15.2 15.2 0 0 1 6.239-6.638.317.317 0 0 0 0-.553q-.235-.132-.464-.271a15.2 15.2 0 0 1-6.072-7.017.331.331 0 0 0-.605 0M5.827 13.004q-.081.187-.17.371a8.7 8.7 0 0 1-3.565 3.793.181.181 0 0 0 0 .316q.135.075.265.155a8.7 8.7 0 0 1 3.47 4.01c.067.15.28.15.346 0q.081-.187.17-.372a8.7 8.7 0 0 1 3.565-3.793.181.181 0 0 0 0-.316 8.7 8.7 0 0 1-3.735-4.165.19.19 0 0 0-.346 0","clip-rule":"evenodd"}}],metadata:{category:"weather"}},"SparklesFilled")},27259:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(57077).w)({name:"search",componentName:"SearchRegular",style:"core-regular",viewBox:"0 0 24 24",elements:[{tag:"path",attributes:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"2",d:"m15.879 15.879 4.242 4.242M18 10.5a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z"}}],metadata:{category:"files"}},"SearchRegular")},29522:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,MatchSearchProvider:()=>i});var a=r(95155),n=r(12115);let s=(0,n.createContext)(null);function i({children:e}){let[t,r]=(0,n.useState)(null),l=(0,n.useMemo)(()=>({slot:t,setSlot:r}),[t]);return(0,a.jsx)(s.Provider,{value:l,children:e})}function l(){let e=(0,n.useContext)(s);if(!e)throw Error("useMatchSearch must be used within MatchSearchProvider");return e}},34461:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(57077).w)({name:"arrow_left",componentName:"ArrowLeftRegular",style:"core-regular",viewBox:"0 0 24 24",elements:[{tag:"path",attributes:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h15m-10 5.657L4.343 12 10 6.343"}}],metadata:{category:"arrow"}},"ArrowLeftRegular")},48280:(e,t,r)=>{"use strict";r.d(t,{$U:()=>w,I3:()=>g,Ms:()=>m,Rz:()=>f,VR:()=>x});var a=r(12115),n=r(42360),s=r(52462);let i="furiahub.match.feed-query",l="furiahub-match-feed-query",c="";function o(){try{return window.sessionStorage.getItem(i)??""}catch{return""}}function u(e){c=o();let t=()=>{c=o(),e()};return window.addEventListener(l,t),()=>window.removeEventListener(l,t)}function d(){return c}function h(){return""}function m(e){let t=c;c=e;try{e?window.sessionStorage.setItem(i,e):window.sessionStorage.removeItem(i)}catch{}t!==e&&window.dispatchEvent(new Event(l))}function f(e,t){let r=(0,s.Wn)("match","/",e);return t?`${r}?${t}`:r}function w(e){return(0,n.HE)(new URLSearchParams(window.location.search))}function x(e,t){if(window.location.pathname!==e)return;let r=t?`${e}?${t}`:e;`${window.location.pathname}${window.location.search}`!==r&&window.history.replaceState(null,"",r)}function g(){return(0,a.useSyncExternalStore)(u,d,h)}},55092:(e,t,r)=>{"use strict";r.d(t,{j:()=>u});var a=r(12115);function n(e){let t=window.matchMedia("(prefers-reduced-motion: reduce)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}let s=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,i=()=>!1;function l(e){return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}let c=()=>document.hidden,o=()=>!1;function u(e,t,r){let u=(0,a.useSyncExternalStore)(n,s,i),d=(0,a.useSyncExternalStore)(l,c,o),[h,m]=(0,a.useState)(0),[f,w]=(0,a.useState)(0),[x,g]=(0,a.useState)(!1),p=r&&!u&&!d&&e.length>0,v=e[h]??"";return((0,a.useEffect)(()=>{m(0),w(0),g(!1)},[e,r]),(0,a.useEffect)(()=>
1{if(!p)return;let t=!x&&f===v.length,r=x&&0===f,a=window.setTimeout(()=>{if(t)return void g(!0);if(r){g(!1),m(t=>(t+1)%e.length);return}w(e=>e+(x?-1:1))},t?2e3:r?420:x?28:56);return()=>window.clearTimeout(a)},[p,f,x,v.length,e.length]),p)?v.slice(0,f):t}},65365:(e,t,r)=>{Promise.resolve().then(r.bind(r,58746)),Promise.resolve().then(r.bind(r,25875)),Promise.resolve().then(r.bind(r,22676)),Promise.resolve().then(r.bind(r,29522))},66564:(e,t,r)=>{"use strict";r.d(t,{W:()=>g,p:()=>x});var a=r(95155),n=r(48934),s=r(27259),i=r(77906),l=r(24676),c=r(12115),o=r(89239),u=r(5529),d=r(60529),h=r(55092),m=r(18555),f=r(42360),w=r(40980);function x({searchDraft:e,onSearchDraftChange:t,onClearSearch:r,aiMode:u,onAiModeChange:p,onAiFiltersApplied:v,onAiStatus:S,showHints:b=!0}){let j=(0,m.K_)(),y=(0,m.Ym)(),[E,k]=(0,c.useState)(null),{mutate:N,isPending:M}=(0,n.useMutation)({mutationFn:async e=>{let t=await fetch("/api/vacancies/ai-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e,locale:y})}),r=await t.json();if(!t.ok){if(429===t.status||"rate_limited"===r.code)throw Error(j.match.aiSearchLimit);throw Error(r.error??j.match.aiSearchError)}return(0,f.T2)(r.filters)},onSuccess:e=>{k(null),v(e),t("")},onError:e=>{k(e.message)}}),P=u?j.match.aiSearchPlaceholder:j.match.searchPlaceholder,C=(0,h.j)(u?j.match.aiSearchHints:j.match.searchHints,P,!e&&!M);(0,c.useEffect)(()=>{S?.({pending:M,error:E})},[E,M,S]);let L=(0,c.useCallback)(()=>{let t=e.trim();t&&!M&&(k(null),N(t))},[e,M,N]);return(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"relative",onKeyDown:e=>{!u||"Enter"!==e.key||e.target instanceof HTMLInputElement&&(e.preventDefault(),L())},children:[(0,a.jsx)(d.pd,{size:"lg",value:e,onChange:e=>t(e.target.value),placeholder:C,leading:(0,a.jsx)(s.A,{}),"aria-label":u?j.match.aiSearch:j.match.searchPlaceholder,disabled:M,className:(0,w.cn)("bg-surface hover:bg-surface",e?"pr-40 sm:pr-44":"pr-28 sm:pr-32",M&&u&&"animate-pulse",u&&"border-[var(--accent-solid)]")}),(0,a.jsxs)("div",{className:"absolute inset-y-1 right-1 flex items-center gap-0.5",children:[e?(0,a.jsx)("button",{type:"button",onClick:r,"aria-label":j.common.clear,disabled:M,className:"grid size-7 place-items-center rounded-full text-fg-muted transition-colors hover:bg-hover hover:text-fg",children:(0,a.jsx)(i.A,{className:"size-3.5"})}):null,(0,a.jsxs)(o.$,{type:"button",variant:"ai",size:"sm","aria-pressed":u,"aria-label":j.match.aiSearchToggle,disabled:M,className:"h-full rounded-lg px-3",onClick:()=>{var e;return e=!u,void(k(null),p(e))},children:[(0,a.jsx)(l.A,{"aria-hidden":!0}),(0,a.jsx)("span",{children:j.match.aiSearch})]})]})]}),b?(0,a.jsx)(g,{searchDraft:e,onSearchDraftChange:t,aiMode:u,pending:M,error:E}):null]})}function g({searchDraft:e,onSearchDraftChange:t,aiMode:r,pending:n,error:s}){let i=(0,m.K_)();return r||s?(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[n?(0,a.jsx)("p",{className:"px-1 text-xs text-fg-muted",children:i.match.aiSearchPending}):s?(0,a.jsx)("p",{className:"px-1 text-xs text-fg-danger",children:s}):null,r?(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:i.match.aiSearchHints.map(r=>(0,a.jsx)(u.v,{size:"sm",selected:e===r,disabled:n,onClick:()=>t(r),children:r},r))}):null]}):null}}},e=>{e.O(0,[5730,8409,8500,9354,5106,5110,3494,8269,3482,6383,3248,3747,755,1859,2639,7077,4353,302,5033,4830,576,8575,3017,8746,8441,3794,7358],()=>e(e.s=65365)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.