@inploi/plugin-job-search 0.23.7 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/cdn/index.js +17 -17
  2. package/cdn/style.css +1 -1
  3. package/dist/components/button.d.ts +1 -1
  4. package/dist/components/combobox.d.ts +25 -0
  5. package/dist/components/filter-content.active.d.ts +174 -1
  6. package/dist/components/filter-section.d.ts +3 -2
  7. package/dist/components/filter.d.ts +57 -0
  8. package/dist/components/geo-search.d.ts +22 -0
  9. package/dist/components/geo-search.locate-button.d.ts +8 -0
  10. package/dist/components/geo-search.location-input.d.ts +10 -0
  11. package/dist/components/geo-search.utils.d.ts +7 -0
  12. package/dist/components/icon.d.ts +3 -0
  13. package/dist/components/job-search.d.ts +21 -1
  14. package/dist/components/keyword-search.d.ts +3 -2
  15. package/dist/components/mode-switch.d.ts +9 -0
  16. package/dist/components/natural-language-section.d.ts +9 -0
  17. package/dist/components/results-section.d.ts +4 -3
  18. package/dist/components/roving-text.d.ts +6 -0
  19. package/dist/components/tag.d.ts +1 -1
  20. package/dist/index.cjs +4 -20
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1239 -4600
  23. package/dist/job-search.api-4bfb3842.js +3874 -0
  24. package/dist/job-search.api-e3e2ae41.cjs +17 -0
  25. package/dist/job-search.api.d.ts +47 -26
  26. package/dist/job-search.d.ts +18 -3
  27. package/dist/job-search.schemas.d.ts +16 -10
  28. package/dist/lib/cache-key.d.ts +2 -3
  29. package/dist/lib/currency.d.ts +1 -1
  30. package/dist/lib/datetime.d.ts +1 -1
  31. package/dist/lib/type-utils.d.ts +1 -0
  32. package/dist/lib/utils.d.ts +3 -0
  33. package/dist/plugin-job-alerts-7fc7b0f9.cjs +1050 -0
  34. package/dist/{plugin-job-alerts-6f8dbd69.js → plugin-job-alerts-a5cbb5be.js} +1777 -1812
  35. package/dist/style/tokens.d.ts +2 -2
  36. package/dist/style.css +1 -1
  37. package/dist/utils.cjs +1 -1
  38. package/dist/utils.d.ts +1 -1
  39. package/dist/utils.js +5 -15
  40. package/package.json +11 -8
  41. package/dist/datetime-3eccae90.cjs +0 -1
  42. package/dist/datetime-796d4b37.js +0 -32
  43. package/dist/job-search.state.d.ts +0 -3
  44. package/dist/lib/translation.d.ts +0 -44
  45. package/dist/lib/translation.terms.d.ts +0 -216
  46. package/dist/lib/translation.test.d.ts +0 -1
  47. package/dist/plugin-job-alerts-4b46b097.cjs +0 -1050
@@ -0,0 +1,17 @@
1
+ "use strict";var Oo=Object.defineProperty;var Ro=(e,t,n)=>t in e?Oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _t=(e,t,n)=>(Ro(e,typeof t!="symbol"?t+"":t,n),n);var $e=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function ar(e,t){if(!e)throw new Error(t)}function No(e,t){return e in t}var Be;exports.l=void 0;var ir,Ee,gn,sr,kt,lr,Ne={},cr=[],Io=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,at=Array.isArray;function ae(e,t){for(var n in t)e[n]=t[n];return e}function ur(e){var t=e.parentNode;t&&t.removeChild(e)}function q(e,t,n){var r,o,a,s={};for(a in t)a=="key"?r=t[a]:a=="ref"?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?Be.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return Ue(e,s,r,o,null)}function Ue(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++ir};return o==null&&exports.l.vnode!=null&&exports.l.vnode(a),a}function dr(){return{current:null}}function L(e){return e.children}function G(e,t){this.props=e,this.context=t}function tt(e,t){if(t==null)return e.__?tt(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?tt(e):null}function fr(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return fr(e)}}function Ot(e){(!e.__d&&(e.__d=!0)&&Ee.push(e)&&!nt.__r++||gn!==exports.l.debounceRendering)&&((gn=exports.l.debounceRendering)||sr)(nt)}function nt(){var e,t,n,r,o,a,s,l,c;for(Ee.sort(kt);e=Ee.shift();)e.__d&&(t=Ee.length,r=void 0,o=void 0,a=void 0,l=(s=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(a=ae({},s)).__v=s.__v+1,Ht(c,s,a,n.__n,c.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??tt(s),s.__h,o),yr(r,s,o),s.__e!=l&&fr(s)),Ee.length>t&&Ee.sort(kt));nt.__r=0}function _r(e,t,n,r,o,a,s,l,c,d,f){var i,p,y,_,h,w,g,E,S,v,b=0,m=r&&r.__k||cr,T=m.length,C=T,x=t.length;for(n.__k=[],i=0;i<x;i++)(_=n.__k[i]=(_=t[i])==null||typeof _=="boolean"||typeof _=="function"?null:typeof _=="string"||typeof _=="number"||typeof _=="bigint"?Ue(null,_,null,null,_):at(_)?Ue(L,{children:_},null,null,null):_.__b>0?Ue(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)!=null&&(_.__=n,_.__b=n.__b+1,(E=Ao(_,m,g=i+b,C))===-1?y=Ne:(y=m[E]||Ne,m[E]=void 0,C--),Ht(e,_,y,o,a,s,l,c,d,f),h=_.__e,(p=_.ref)&&y.ref!=p&&(y.ref&&Ft(y.ref,null,_),f.push(p,_.__c||h,_)),h!=null&&(w==null&&(w=h),v=!(S=y===Ne||y.__v===null)&&E===g,S?E==-1&&b--:E!==g&&(E===g+1?(b++,v=!0):E>g?C>x-g?(b+=E-g,v=!0):b--:b=E<g&&E==g-1?E-g:0),g=i+b,v=v||E==i&&!S,typeof _.type!="function"||E===g&&y.__k!==_.__k?typeof _.type=="function"||v?_.__d!==void 0?(c=_.__d,_.__d=void 0):c=h.nextSibling:c=hr(e,h,c):c=pr(_,c,e),typeof n.type=="function"&&(n.__d=c)));for(n.__e=w,i=T;i--;)m[i]!=null&&(typeof n.type=="function"&&m[i].__e!=null&&m[i].__e==n.__d&&(n.__d=m[i].__e.nextSibling),gr(m[i],m[i]))}function pr(e,t,n){for(var r,o=e.__k,a=0;o&&a<o.length;a++)(r=o[a])&&(r.__=e,t=typeof r.type=="function"?pr(r,t,n):hr(n,r.__e,t));return t}function se(e,t){return t=t||[],e==null||typeof e=="boolean"||(at(e)?e.some(function(n){se(n,t)}):t.push(e)),t}function hr(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function Ao(e,t,n,r){var o=e.key,a=e.type,s=n-1,l=n+1,c=t[n];if(c===null||c&&o==c.key&&a===c.type)return n;if(r>(c!=null?1:0))for(;s>=0||l<t.length;){if(s>=0){if((c=t[s])&&o==c.key&&a===c.type)return s;s--}if(l<t.length){if((c=t[l])&&o==c.key&&a===c.type)return l;l++}}return-1}function Lo(e,t,n,r,o){var a;for(a in n)a==="children"||a==="key"||a in t||rt(e,a,null,n[a],r);for(a in t)o&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||n[a]===t[a]||rt(e,a,t[a],n[a],r)}function vn(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Io.test(t)?n:n+"px"}function rt(e,t,n,r,o){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||vn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||vn(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?bn:mn,a):e.removeEventListener(t,a?bn:mn,a);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function mn(e){return this.l[e.type+!1](exports.l.event?exports.l.event(e):e)}function bn(e){return this.l[e.type+!0](exports.l.event?exports.l.event(e):e)}function Ht(e,t,n,r,o,a,s,l,c,d){var f,i,p,y,_,h,w,g,E,S,v,b,m,T,C,x=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,l=t.__e=n.__e,t.__h=null,a=[l]),(f=exports.l.__b)&&f(t);try{e:if(typeof x=="function"){if(g=t.props,E=(f=x.contextType)&&r[f.__c],S=f?E?E.props.value:f.__:r,n.__c?w=(i=t.__c=n.__c).__=i.__E:("prototype"in x&&x.prototype.render?t.__c=i=new x(g,S):(t.__c=i=new G(g,S),i.constructor=x,i.render=Po),E&&E.sub(i),i.props=g,i.state||(i.state={}),i.context=S,i.__n=r,p=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),x.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=ae({},i.__s)),ae(i.__s,x.getDerivedStateFromProps(g,i.__s))),y=i.props,_=i.state,i.__v=t,p)x.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(x.getDerivedStateFromProps==null&&g!==y&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,S),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,S)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(i.props=g,i.state=i.__s,i.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(k){k&&(k.__=t)}),v=0;v<i._sb.length;v++)i.__h.push(i._sb[v]);i._sb=[],i.__h.length&&s.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,S),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(y,_,h)})}if(i.context=S,i.props=g,i.__P=e,i.__e=!1,b=exports.l.__r,m=0,"prototype"in x&&x.prototype.render){for(i.state=i.__s,i.__d=!1,b&&b(t),f=i.render(i.props,i.state,i.context),T=0;T<i._sb.length;T++)i.__h.push(i._sb[T]);i._sb=[]}else do i.__d=!1,b&&b(t),f=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++m<25);i.state=i.__s,i.getChildContext!=null&&(r=ae(ae({},r),i.getChildContext())),p||i.getSnapshotBeforeUpdate==null||(h=i.getSnapshotBeforeUpdate(y,_)),_r(e,at(C=f!=null&&f.type===L&&f.key==null?f.props.children:f)?C:[C],t,n,r,o,a,s,l,c,d),i.base=t.__e,t.__h=null,i.__h.length&&s.push(i),w&&(i.__E=i.__=null)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Do(n.__e,t,n,r,o,a,s,c,d);(f=exports.l.diffed)&&f(t)}catch(k){t.__v=null,(c||a!=null)&&(t.__e=l,t.__h=!!c,a[a.indexOf(l)]=null),exports.l.__e(k,t,n)}}function yr(e,t,n){for(var r=0;r<n.length;r++)Ft(n[r],n[++r],n[++r]);exports.l.__c&&exports.l.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){exports.l.__e(a,o.__v)}})}function Do(e,t,n,r,o,a,s,l,c){var d,f,i,p=n.props,y=t.props,_=t.type,h=0;if(_==="svg"&&(o=!0),a!=null){for(;h<a.length;h++)if((d=a[h])&&"setAttribute"in d==!!_&&(_?d.localName===_:d.nodeType===3)){e=d,a[h]=null;break}}if(e==null){if(_===null)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,y.is&&y),a=null,l=!1}if(_===null)p===y||l&&e.data===y||(e.data=y);else{if(a=a&&Be.call(e.childNodes),f=(p=n.props||Ne).dangerouslySetInnerHTML,i=y.dangerouslySetInnerHTML,!l){if(a!=null)for(p={},h=0;h<e.attributes.length;h++)p[e.attributes[h].name]=e.attributes[h].value;(i||f)&&(i&&(f&&i.__html==f.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||""))}if(Lo(e,y,p,o,l),i)t.__k=[];else if(_r(e,at(h=t.props.children)?h:[h],t,n,r,o&&_!=="foreignObject",a,s,a?a[0]:n.__k&&tt(n,0),l,c),a!=null)for(h=a.length;h--;)a[h]!=null&&ur(a[h]);l||("value"in y&&(h=y.value)!==void 0&&(h!==e.value||_==="progress"&&!h||_==="option"&&h!==p.value)&&rt(e,"value",h,p.value,!1),"checked"in y&&(h=y.checked)!==void 0&&h!==e.checked&&rt(e,"checked",h,p.checked,!1))}return e}function Ft(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){exports.l.__e(r,n)}}function gr(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ft(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){exports.l.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&gr(r[o],t,n||typeof e.type!="function");n||e.__e==null||ur(e.__e),e.__=e.__e=e.__d=void 0}function Po(e,t,n){return this.constructor(e,n)}function Ae(e,t,n){var r,o,a,s;exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],s=[],Ht(t,e=(!r&&n||t).__k=q(L,null,[e]),o||Ne,Ne,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Be.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r,s),yr(a,e,s)}function Wt(e,t){Ae(e,t,Wt)}function Mo(e,t,n){var r,o,a,s,l=ae({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)a=="key"?r=t[a]:a=="ref"?o=t[a]:l[a]=t[a]===void 0&&s!==void 0?s[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?Be.call(arguments,2):n),Ue(e.type,l,r||e.key,o||e.ref,null)}function it(e,t){var n={__c:t="__cC"+lr++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,a;return this.getChildContext||(o=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(l){l.__e=!0,Ot(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Be=cr.slice,exports.l={__e:function(e,t,n,r){for(var o,a,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},ir=0,G.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ae({},this.state),typeof e=="function"&&(e=e(ae({},n),this.props)),e&&ae(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ot(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ot(this))},G.prototype.render=L,Ee=[],sr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kt=function(e,t){return e.__v.__b-t.__v.__b},nt.__r=0,lr=0;var Rt="RFC3986",Nt={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},jo="RFC1738",Vo=Array.isArray,Q=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),pt=1024,$o=(e,t,n,r,o)=>{if(e.length===0)return e;let a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});let s="";for(let l=0;l<a.length;l+=pt){const c=a.length>=pt?a.slice(l,l+pt):a,d=[];for(let f=0;f<c.length;++f){let i=c.charCodeAt(f);if(i===45||i===46||i===95||i===126||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||o===jo&&(i===40||i===41)){d[d.length]=c.charAt(f);continue}if(i<128){d[d.length]=Q[i];continue}if(i<2048){d[d.length]=Q[192|i>>6]+Q[128|i&63];continue}if(i<55296||i>=57344){d[d.length]=Q[224|i>>12]+Q[128|i>>6&63]+Q[128|i&63];continue}f+=1,i=65536+((i&1023)<<10|c.charCodeAt(f)&1023),d[d.length]=Q[240|i>>18]+Q[128|i>>12&63]+Q[128|i>>6&63]+Q[128|i&63]}s+=d.join("")}return s};function Uo(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function En(e,t){if(Vo(e)){const n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)}var Ho=Object.prototype.hasOwnProperty,vr={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},X=Array.isArray,Fo=Array.prototype.push,mr=function(e,t){Fo.apply(e,X(t)?t:[t])},Wo=Date.prototype.toISOString,P={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:$o,encodeValuesOnly:!1,format:Rt,formatter:Nt[Rt],indices:!1,serializeDate(e){return Wo.call(e)},skipNulls:!1,strictNullHandling:!1};function Bo(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}var ht={};function br(e,t,n,r,o,a,s,l,c,d,f,i,p,y,_,h,w,g){let E=e,S=g,v=0,b=!1;for(;(S=S.get(ht))!==void 0&&!b;){const k=S.get(e);if(v+=1,typeof k<"u"){if(k===v)throw new RangeError("Cyclic object value");b=!0}typeof S.get(ht)>"u"&&(v=0)}if(typeof d=="function"?E=d(t,E):E instanceof Date?E=p==null?void 0:p(E):n==="comma"&&X(E)&&(E=En(E,function(k){return k instanceof Date?p==null?void 0:p(k):k})),E===null){if(a)return c&&!h?c(t,P.encoder,w,"key",y):t;E=""}if(Bo(E)||Uo(E)){if(c){const k=h?t:c(t,P.encoder,w,"key",y);return[(_==null?void 0:_(k))+"="+(_==null?void 0:_(c(E,P.encoder,w,"value",y)))]}return[(_==null?void 0:_(t))+"="+(_==null?void 0:_(String(E)))]}const m=[];if(typeof E>"u")return m;let T;if(n==="comma"&&X(E))h&&c&&(E=En(E,c)),T=[{value:E.length>0?E.join(",")||null:void 0}];else if(X(d))T=d;else{const k=Object.keys(E);T=f?k.sort(f):k}const C=l?String(t).replace(/\./g,"%2E"):String(t),x=r&&X(E)&&E.length===1?C+"[]":C;if(o&&X(E)&&E.length===0)return x+"[]";for(let k=0;k<T.length;++k){const $=T[k],Y=typeof $=="object"&&typeof $.value<"u"?$.value:E[$];if(s&&Y===null)continue;const U=i&&l?$.replace(/\./g,"%2E"):$,de=X(E)?typeof n=="function"?n(x,U):x:x+(i?"."+U:"["+U+"]");g.set(e,v);const qe=new WeakMap;qe.set(ht,g),mr(m,br(Y,de,n,r,o,a,s,l,n==="comma"&&h&&X(E)?null:c,d,f,i,p,y,_,h,w,qe))}return m}function zo(e=P){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||P.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=Rt;if(typeof e.format<"u"){if(!Ho.call(Nt,e.format))throw new TypeError("Unknown format option provided.");n=e.format}const r=Nt[n];let o=P.filter;(typeof e.filter=="function"||X(e.filter))&&(o=e.filter);let a;if(e.arrayFormat&&e.arrayFormat in vr?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=P.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const s=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:P.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:P.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:P.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:P.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?P.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:P.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:P.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:P.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:P.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:P.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:P.strictNullHandling}}function Er(e,t={}){let n=e;const r=zo(t);let o,a;typeof r.filter=="function"?(a=r.filter,n=a("",n)):X(r.filter)&&(a=r.filter,o=a);const s=[];if(typeof n!="object"||n===null)return"";const l=vr[r.arrayFormat],c=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);const d=new WeakMap;for(let p=0;p<o.length;++p){const y=o[p];r.skipNulls&&n[y]===null||mr(s,br(n[y],y,l,c,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,d))}const f=s.join(r.delimiter);let i=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?i+="utf8=%26%2310003%3B&":i+="utf8=%E2%9C%93&"),f.length>0?i+f:""}var st=class extends Error{constructor(t){super(t[0].message);_t(this,"issues");this.name="ValiError",this.issues=t}};function Sn(e,t){return{...e,_parse(n,r){return e._parse(t(n),r)}}}function ze(e){return{issues:e}}function Se(e){return{output:e}}function Go(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,path:t.path,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function qo(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function ve(e,t,n,r){if(!t||!t.length||n!=null&&n.skipPipe)return Se(e);let o,a,s=e;for(const l of t){const c=l._parse(s);if(c.issues){o=o||qo(n,r);for(const d of c.issues){const f=Go(o,d);a?a.push(f):a=[f]}if(o.abortEarly||o.abortPipeEarly)break}else s=c.output}return a?ze(a):Se(s)}function ye(e,t){return Array.isArray(e)?[void 0,e]:[e,t]}function Sr(e){return typeof e=="function"?e():e}function Ko(e,t,n,r){return ze([{validation:e,message:Sr(t),input:n,requirement:r}])}function Zo(e,t,n){if(!e||typeof e=="object"&&!Array.isArray(e)){const[a,s]=ye(t,n);return[e,a,s]}const[r,o]=ye(e,t);return[void 0,r,o]}function me(e,t,n,r,o,a){return{issues:[{reason:t,validation:n,origin:(e==null?void 0:e.origin)||"value",message:Sr(r),input:o,issues:a,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}]}}function wr(e){return typeof e.default=="function"?e.default():e.default}function Yo(e){return{type:"any",async:!1,pipe:e,_parse(t,n){return ve(t,this.pipe,n,"any")}}}function Bt(e,t,n){const[r="Invalid type",o]=ye(t,n);return{type:"array",async:!1,item:e,message:r,pipe:o,_parse(a,s){if(!Array.isArray(a))return me(s,"type","array",this.message,a);let l;const c=[];for(let d=0;d<a.length;d++){const f=a[d],i=this.item._parse(f,s);if(i.issues){const p={type:"array",input:a,key:d,value:f};for(const y of i.issues)y.path?y.path.unshift(p):y.path=[p],l==null||l.push(y);if(l||(l=i.issues),s!=null&&s.abortEarly)break}else c.push(i.output)}return l?ze(l):ve(c,this.pipe,s,"array")}}}function wn(e,t){const[n="Invalid type",r]=ye(e,t);return{type:"boolean",async:!1,message:n,pipe:r,_parse(o,a){return typeof o!="boolean"?me(a,"type","boolean",this.message,o):ve(o,this.pipe,a,"boolean")}}}function re(e,t="Invalid type"){return{type:"literal",async:!1,literal:e,message:t,_parse(n,r){return n!==this.literal?me(r,"type","literal",this.message,n):Se(n)}}}function W(e,t){return{type:"nullable",async:!1,wrapped:e,default:t,_parse(n,r){if(n===null){const o=wr(this);if(o===void 0)return Se(n);n=o}return this.wrapped._parse(n,r)}}}function fe(e,t){const[n="Invalid type",r]=ye(e,t);return{type:"number",async:!1,message:n,pipe:r,_parse(o,a){return typeof o!="number"||isNaN(o)?me(a,"type","number",this.message,o):ve(o,this.pipe,a,"number")}}}function ie(e,t,n,r){const[o,a="Invalid type",s]=Zo(t,n,r);let l;return{type:"object",async:!1,entries:e,rest:o,message:a,pipe:s,_parse(c,d){if(!c||typeof c!="object")return me(d,"type","object",this.message,c);l=l||Object.entries(this.entries);let f;const i={};for(const[p,y]of l){const _=c[p],h=y._parse(_,d);if(h.issues){const w={type:"object",input:c,key:p,value:_};for(const g of h.issues)g.path?g.path.unshift(w):g.path=[w],f==null||f.push(g);if(f||(f=h.issues),d!=null&&d.abortEarly)break}else(h.output!==void 0||p in c)&&(i[p]=h.output)}if(this.rest&&!(d!=null&&d.abortEarly&&f)){for(const p in c)if(!(p in this.entries)){const y=c[p],_=this.rest._parse(y,d);if(_.issues){const h={type:"object",input:c,key:p,value:y};for(const w of _.issues)w.path?w.path.unshift(h):w.path=[h],f==null||f.push(w);if(f||(f=_.issues),d!=null&&d.abortEarly)break}else i[p]=_.output}}return f?ze(f):ve(i,this.pipe,d,"object")}}}function _e(e,t){return{type:"optional",async:!1,wrapped:e,default:t,_parse(n,r){if(n===void 0){const o=wr(this);if(o===void 0)return Se(n);n=o}return this.wrapped._parse(n,r)}}}function R(e,t){const[n="Invalid type",r]=ye(e,t);return{type:"string",async:!1,message:n,pipe:r,_parse(o,a){return typeof o!="string"?me(a,"type","string",this.message,o):ve(o,this.pipe,a,"string")}}}function Jo(e,t,n,r){if(typeof t=="object"&&!Array.isArray(t)){const[s,l]=ye(n,r);return[e,t,s,l]}const[o,a]=ye(t,n);return[R(),e,o,a]}var Qo=["__proto__","prototype","constructor"];function Cr(e,t,n,r){const[o,a,s="Invalid type",l]=Jo(e,t,n,r);return{type:"record",async:!1,key:o,value:a,message:s,pipe:l,_parse(c,d){if(!c||typeof c!="object")return me(d,"type","record",this.message,c);let f;const i={};for(const[p,y]of Object.entries(c))if(!Qo.includes(p)){let _;const h=this.key._parse(p,{origin:"key",abortEarly:d==null?void 0:d.abortEarly,abortPipeEarly:d==null?void 0:d.abortPipeEarly,skipPipe:d==null?void 0:d.skipPipe});if(h.issues){_={type:"record",input:c,key:p,value:y};for(const g of h.issues)g.path=[_],f==null||f.push(g);if(f||(f=h.issues),d!=null&&d.abortEarly)break}const w=this.value._parse(y,d);if(w.issues){_=_||{type:"record",input:c,key:p,value:y};for(const g of w.issues)g.path?g.path.unshift(_):g.path=[_],f==null||f.push(g);if(f||(f=w.issues),d!=null&&d.abortEarly)break}!h.issues&&!w.issues&&(i[h.output]=w.output)}return f?ze(f):ve(i,this.pipe,d,"record")}}}function Cn(e,t="Invalid type"){return{type:"union",async:!1,options:e,message:t,_parse(n,r){let o,a;for(const s of this.options){const l=s._parse(n,r);if(l.issues)if(o)for(const c of l.issues)o.push(c);else o=l.issues;else{a=[l.output];break}}return a?Se(a[0]):me(r,"type","union",this.message,n,o)}}}function xr(e,t,n){const r=e._parse(t,n);if(r.issues)throw new st(r.issues);return r.output}function zt(e,t,n){const r=e._parse(t,n);return r.issues?{success:!1,error:new st(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function pe(e,t,n){return{...e,_parse(r,o){const a=e._parse(r,o);if(a.issues)return a;const s=t(a.output);return n&&!Array.isArray(n)?n._parse(s,o):ve(s,n,o,typeof s)}}}function Xo(e="Invalid URL"){return{type:"url",async:!1,message:e,requirement(t){try{return new URL(t),!0}catch{return!1}},_parse(t){return this.requirement(t)?Se(t):Ko(this.type,this.message,t,this.requirement)}}}const ea="inploi-job-search",ta="ijs",Tr=10;var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function na(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}function ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gt=ra,oa=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,aa=oa,ia=aa,sa=typeof self=="object"&&self&&self.Object===Object&&self,la=ia||sa||Function("return this")(),qt=la,ca=qt,ua=function(){return ca.Date.now()},da=ua,fa=/\s/;function _a(e){for(var t=e.length;t--&&fa.test(e.charAt(t)););return t}var pa=_a,ha=pa,ya=/^\s+/;function ga(e){return e&&e.slice(0,ha(e)+1).replace(ya,"")}var va=ga,ma=qt,ba=ma.Symbol,Kt=ba,xn=Kt,Or=Object.prototype,Ea=Or.hasOwnProperty,Sa=Or.toString,je=xn?xn.toStringTag:void 0;function wa(e){var t=Ea.call(e,je),n=e[je];try{e[je]=void 0;var r=!0}catch{}var o=Sa.call(e);return r&&(t?e[je]=n:delete e[je]),o}var Ca=wa,xa=Object.prototype,Ta=xa.toString;function ka(e){return Ta.call(e)}var Oa=ka,Tn=Kt,Ra=Ca,Na=Oa,Ia="[object Null]",Aa="[object Undefined]",kn=Tn?Tn.toStringTag:void 0;function La(e){return e==null?e===void 0?Aa:Ia:kn&&kn in Object(e)?Ra(e):Na(e)}var Rr=La;function Da(e){return e!=null&&typeof e=="object"}var Pa=Da,Ma=Rr,ja=Pa,Va="[object Symbol]";function $a(e){return typeof e=="symbol"||ja(e)&&Ma(e)==Va}var Nr=$a,Ua=va,On=Gt,Ha=Nr,Rn=0/0,Fa=/^[-+]0x[0-9a-f]+$/i,Wa=/^0b[01]+$/i,Ba=/^0o[0-7]+$/i,za=parseInt;function Ga(e){if(typeof e=="number")return e;if(Ha(e))return Rn;if(On(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=On(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ua(e);var n=Wa.test(e);return n||Ba.test(e)?za(e.slice(2),n?2:8):Fa.test(e)?Rn:+e}var qa=Ga,Ka=Gt,yt=da,Nn=qa,Za="Expected a function",Ya=Math.max,Ja=Math.min;function Qa(e,t,n){var r,o,a,s,l,c,d=0,f=!1,i=!1,p=!0;if(typeof e!="function")throw new TypeError(Za);t=Nn(t)||0,Ka(n)&&(f=!!n.leading,i="maxWait"in n,a=i?Ya(Nn(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function y(m){var T=r,C=o;return r=o=void 0,d=m,s=e.apply(C,T),s}function _(m){return d=m,l=setTimeout(g,t),f?y(m):s}function h(m){var T=m-c,C=m-d,x=t-T;return i?Ja(x,a-C):x}function w(m){var T=m-c,C=m-d;return c===void 0||T>=t||T<0||i&&C>=a}function g(){var m=yt();if(w(m))return E(m);l=setTimeout(g,h(m))}function E(m){return l=void 0,p&&r?y(m):(r=o=void 0,s)}function S(){l!==void 0&&clearTimeout(l),d=0,r=c=o=l=void 0}function v(){return l===void 0?s:E(yt())}function b(){var m=yt(),T=w(m);if(r=arguments,o=this,c=m,T){if(l===void 0)return _(c);if(i)return clearTimeout(l),l=setTimeout(g,t),y(c)}return l===void 0&&(l=setTimeout(g,t)),s}return b.cancel=S,b.flush=v,b}var Xa=Qa;const ei=kr(Xa);var le,N,gt,In,Le=0,Ir=[],Xe=[],An=exports.l.__b,Ln=exports.l.__r,Dn=exports.l.diffed,Pn=exports.l.__c,Mn=exports.l.unmount;function we(e,t){exports.l.__h&&exports.l.__h(N,e,Le||t),Le=0;var n=N.__H||(N.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Xe}),n.__[e]}function M(e){return Le=1,Zt(Lr,e)}function Zt(e,t,n){var r=we(le++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Lr(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,l);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=N,!N.u)){var o=function(l,c,d){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return p.__c});if(f.every(function(p){return!p.__N}))return!a||a.call(this,l,c,d);var i=!1;return f.forEach(function(p){if(p.__N){var y=p.__[0];p.__=p.__N,p.__N=void 0,y!==p.__[0]&&(i=!0)}}),!(!i&&r.__c.props===l)&&(!a||a.call(this,l,c,d))};N.u=!0;var a=N.shouldComponentUpdate,s=N.componentWillUpdate;N.componentWillUpdate=function(l,c,d){if(this.__e){var f=a;a=void 0,o(l,c,d),a=f}s&&s.call(this,l,c,d)},N.shouldComponentUpdate=o}return r.__N||r.__}function K(e,t){var n=we(le++,3);!exports.l.__s&&Qt(n.__H,t)&&(n.__=e,n.i=t,N.__H.__h.push(n))}function Ce(e,t){var n=we(le++,4);!exports.l.__s&&Qt(n.__H,t)&&(n.__=e,n.i=t,N.__h.push(n))}function B(e){return Le=5,ue(function(){return{current:e}},[])}function Ar(e,t,n){Le=6,Ce(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ue(e,t){var n=we(le++,7);return Qt(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ie(e,t){return Le=8,ue(function(){return e},t)}function lt(e){var t=N.context[e.__c],n=we(le++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(N)),t.props.value):e.__}function Yt(e,t){exports.l.useDebugValue&&exports.l.useDebugValue(t?t(e):e)}function ti(e){var t=we(le++,10),n=M();return t.__=e,N.componentDidCatch||(N.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jt(){var e=we(le++,11);if(!e.__){for(var t=N.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ni(){for(var e;e=Ir.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(et),e.__H.__h.forEach(It),e.__H.__h=[]}catch(t){e.__H.__h=[],exports.l.__e(t,e.__v)}}exports.l.__b=function(e){N=null,An&&An(e)},exports.l.__r=function(e){Ln&&Ln(e),le=0;var t=(N=e.__c).__H;t&&(gt===N?(t.__h=[],N.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Xe,n.__N=n.i=void 0})):(t.__h.forEach(et),t.__h.forEach(It),t.__h=[],le=0)),gt=N},exports.l.diffed=function(e){Dn&&Dn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ir.push(t)!==1&&In===exports.l.requestAnimationFrame||((In=exports.l.requestAnimationFrame)||ri)(ni)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Xe&&(n.__=n.__V),n.i=void 0,n.__V=Xe})),gt=N=null},exports.l.__c=function(e,t){t.some(function(n){try{n.__h.forEach(et),n.__h=n.__h.filter(function(r){return!r.__||It(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],exports.l.__e(r,n.__v)}}),Pn&&Pn(e,t)},exports.l.unmount=function(e){Mn&&Mn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{et(r)}catch(o){t=o}}),n.__H=void 0,t&&exports.l.__e(t,n.__v))};var jn=typeof requestAnimationFrame=="function";function ri(e){var t,n=function(){clearTimeout(r),jn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);jn&&(t=requestAnimationFrame(n))}function et(e){var t=N,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),N=t}function It(e){var t=N;e.__c=e.__(),N=t}function Qt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Lr(e,t){return typeof t=="function"?t(e):t}var oi=0;function u(e,t,n,r,o,a){var s,l,c={};for(l in t)l=="ref"?s=t[l]:c[l]=t[l];var d={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--oi,__source:o,__self:a};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)c[l]===void 0&&(c[l]=s[l]);return exports.l.vnode&&exports.l.vnode(d),d}const ai=["other","few","many","two","one","zero"],Vn=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(a,s){const l=(t==null?void 0:t[a])??e[a];switch(typeof l){case"string":return l.replace(/{{(\w+)}}/g,(c,d)=>{var f;return((f=s==null?void 0:s[d])==null?void 0:f.toString())??""});case"object":{if(typeof(s==null?void 0:s.count)!="number")throw new Error(`Missing count for translation key “${a.toString()}”`);let c=r.select(s.count);if(!(c in l)){const d=ai.find(f=>f in l);if(!d)throw new Error(`Missing plural rule for translation key “${a.toString()}”`);c=d}return l[c].replace(/{{(\w+)}}/g,(d,f)=>{var i;return((i=s==null?void 0:s[f])==null?void 0:i.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${a.toString()}”.`)}}return o},$n=it(null),ii=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=ue(()=>(console.log("instantiating"),Vn({locale:r,terms:e,overrides:t})),[t,r]);return u($n.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=lt($n);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Vn({terms:e,overrides:t,locale:n})}),{TranslationProvider:si,useTranslation:be,createTFunction:li}=ii({type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",skip:"Skip",new:"NEW",posted:"Posted",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",create_alert:"Create alert",alert_header_text:"You will be alerted for new jobs matching the filters currently set",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations."});function Dr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Dr(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function vt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Dr(e))&&(r&&(r+=" "),r+=t);return r}const Un=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ci=e=>{const t=function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l,c;return typeof(e==null||(l=e.hooks)===null||l===void 0?void 0:l["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](vt(a)):typeof(e==null||(c=e.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(vt(a)):vt(a)};return{compose:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return l=>{const c=Object.fromEntries(Object.entries(l||{}).filter(d=>{let[f]=d;return!["class","className"].includes(f)}));return t(a.map(d=>d(c)),l==null?void 0:l.class,l==null?void 0:l.className)}},cva:o=>a=>{var s;if((o==null?void 0:o.variants)==null)return t(o==null?void 0:o.base,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:l,defaultVariants:c}=o,d=Object.keys(l).map(p=>{const y=a==null?void 0:a[p],_=c==null?void 0:c[p],h=Un(y)||Un(_);return l[p][h]}),f={...c,...a&&Object.entries(a).reduce((p,y)=>{let[_,h]=y;return typeof h>"u"?p:{...p,[_]:h}},{})},i=o==null||(s=o.compoundVariants)===null||s===void 0?void 0:s.reduce((p,y)=>{let{class:_,className:h,...w}=y;return Object.entries(w).every(g=>{let[E,S]=g;const v=f[E];return Array.isArray(S)?S.includes(v):v===S})?[...p,_,h]:p},[]);return t(o==null?void 0:o.base,d,i,a==null?void 0:a.class,a==null?void 0:a.className)},cx:t}},{compose:rl,cva:Z,cx:ol}=ci(),ui=e=>{const[t,n]=M(!1);return K(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),o=()=>n(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[e]),t},di=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,a]=M(!1);K(()=>{if(o||!e.current)return;let s;const l=new IntersectionObserver(c=>c.forEach(d=>{clearTimeout(s),d.isIntersecting&&(s=setTimeout(()=>{a(!0),r()},t))}),{threshold:n});return l.observe(e.current),()=>{l.disconnect(),clearTimeout(s)}},[e,t,n,r,o])},De=Z({base:"fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",variants:{variant:{neutral:"bg-interactive-neutral-bg pointer-fine:hover:bg-interactive-neutral-bg-hover text-interactive-neutral-text",accent:"bg-interactive-accent-bg pointer-fine:hover:bg-interactive-accent-bg-hover text-interactive-accent-text"},icon:{none:"",right:"",left:"",only:""},position:{relative:"relative",absolute:"absolute"},size:{sm:"py-1 rounded-interactive",lg:"py-2 rounded-interactive",unsized:""}},compoundVariants:[{size:"sm",icon:"right",class:"pl-3 pr-1"},{size:"sm",icon:"left",class:"pl-1 pr-3"},{size:"sm",icon:"none",class:"px-3"},{size:"lg",icon:"none",class:"px-5"},{size:"lg",icon:"right",class:"pl-5 pr-3"},{size:"lg",icon:"only",class:"px-2 py-2"},{size:"sm",icon:"only",class:"px-1 py-1"}],defaultVariants:{variant:"neutral",icon:"none",position:"relative",size:"sm"}});function Pr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pr(e))&&(r&&(r+=" "),r+=t);return r}const fi=({error:e,resetError:t})=>{const{t:n}=be();return u("div",{style:{display:"flex",flexDirection:"column",gap:".5rem",padding:"1rem",fontSize:"1rem",color:"hsl(10, 82%, 45%)",fontFamily:"'system-ui' 'Helvetica'",background:"hsl(7, 100%, 98%)"},children:[u("p",{children:e.message}),u("button",{type:"button",onClick:t,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:n("retry")})]})},At=({error:e,resetError:t,class:n,...r})=>{const{t:o}=be();return u("div",{class:Mr("bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",n),...r,children:[u("div",{class:"flex max-w-full flex-col gap-1",children:[u("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:o("widget_unavailable")}),u("p",{class:"text-neutral-8 text-style-tag font-style-tag font-weight-tag max-w-full break-words leading-snug [text-wrap:pretty]",children:e.message})]}),u("button",{type:"button",class:De({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class _i extends G{constructor(){super(...arguments);_t(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n.message}}componentDidCatch(n){this.setState({error:n})}render(){if(this.state.error){const{Fallback:n}=this.props;return u(n,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const Pe=Z({base:"block fr font-style-tag font-family-tag font-weight-tag",variants:{variant:{neutralWeak:"text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",neutralStrong:"text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",accentStrong:"text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",monetaryWeak:"text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"},interactive:{true:"ease-expo-out rounded-interactive transition-all duration-snappy",false:"rounded-tag"},size:{xs:"px-2 py-0.5 text-style-tag",sm:"px-3 py-1.5 text-style-tag",lg:"px-5 py-2.5 text-style-tag",unsized:""},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,interactive:!0,class:"cursor-pointer active:scale-[0.975]"}],defaultVariants:{variant:"neutralWeak",size:"sm",disabled:!1,interactive:!1}}),pi=({query:e,property:t,selectedValues:n})=>{switch(e.queryState){case"idle":case"error":case"loading":return null;case"loaded":case"revalidating":{const o=(e.data[t.key]??[]).filter(a=>n.includes(a.value));switch(o.length){case 0:return null;case 1:{const a=o[0];return ar(a),u("span",{class:Pe({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:a.label})}default:return u("span",{class:Pe({size:"sm",variant:"accentStrong",interactive:!0,class:"ijs-filter-current max-w-full truncate tabular-nums"}),children:o.length})}}default:$e(e)}},hi={briefcase:u(L,{children:[u("path",{d:"M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z"}),u("path",{d:"M4.75 11.75H19.25"}),u("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),u("path",{d:"M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5"})]}),brand:u(L,{children:[u("path",{d:"M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901"}),u("path",{d:"M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713"}),u("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),u("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),u("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),u("circle",{cx:"18.75",cy:"12",r:"2"}),u("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:u(L,{children:[u("path",{d:"M16.75 10.25H13.75"}),u("path",{d:"M16.75 13.25H13.75"}),u("path",{d:"M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z"}),u("path",{d:"M10.25 12.25V18.25"})]}),circles:u(L,{children:[u("path",{d:"M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703"}),u("path",{d:"M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517"})]}),clock:u(L,{children:[u("path",{d:"M14 9L12 13L9.5 12"}),u("path",{d:"M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z"})]}),filter:u(L,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(L,{children:[u("path",{d:"M5 13.75H19"}),u("path",{d:"M5 10.25H19"}),u("path",{d:"M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z"}),u("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:u(L,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5"}),u("path",{d:"M16 16L19 19"})]}),magnifierSimple:u(L,{children:[u("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),u("path",{d:"M16 16L19 19"})]}),mapPin:u(L,{children:u(L,{children:[u("circle",{cx:"12",cy:"9",r:"2"}),u("path",{d:"M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358"}),u("path",{d:"M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z"})]})}),pay:u(L,{children:[u("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),u("path",{d:"M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1"})]}),sunset:u(L,{children:[u("path",{d:"M18.5 8.5L17.5 9.5"}),u("path",{d:"M5.5 8.5L6.5 9.5"}),u("path",{d:"M12 6L12 7.5"}),u("path",{d:"M7.5 15.25L7.5 14.25C7.5 13.6591 7.6164 13.0739 7.84254 12.5279C8.06869 11.982 8.40016 11.4859 8.81802 11.068C9.23588 10.6502 9.73196 10.3187 10.2779 10.0925C10.8239 9.8664 11.4091 9.75 12 9.75C12.5909 9.75 13.1761 9.8664 13.7221 10.0925C14.268 10.3187 14.7641 10.6502 15.182 11.068C15.5998 11.4859 15.9313 11.982 16.1575 12.5279C16.3836 13.0739 16.5 13.6591 16.5 14.25V15.25"}),u("path",{d:"M20.25 15.25H12H3.75"}),u("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:u("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:u("path",{d:"M12 8V16M8 12H16"}),"chevron-right":u("path",{d:"M11 8L15 12L11 16"}),ai:u("path",{d:"M8.3 14.5c3.4 0 5.2-1.7 5.2-5.2 0 3.5 1.8 5.2 5.3 5.2-3.6 0-5.3 1.7-5.3 5.1 0-3.4-1.8-5.1-5.3-5.1ZM5 7.5c2.3 0 3.5-1.2 3.5-3.5 0 2.3 1.2 3.4 3.5 3.4-2.3 0-3.5 1.2-3.5 3.5 0-2.3-1.2-3.5-3.5-3.5Z",fill:"currentColor"}),"target-location":u(L,{children:[u("circle",{cx:"12",cy:"12",r:"0.75"}),u("circle",{cx:"12",cy:"12",r:"5.75"}),u("path",{d:"M12 4.25V6.25"}),u("path",{d:"M12 17.75V19.75"}),u("path",{d:"M4.25 12L6.25 12"}),u("path",{d:"M17.75 12L19.75 12"})]}),warning:u("path",{fill:"currentColor",stroke:"none",d:"M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"})},yi=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(hi).map(([t,n])=>{var r;return u("symbol",{id:`i-icon-${t}`,children:u("g",{fill:"none","stroke-width":e.mode==="dark"&&((r=e.accessibility)==null?void 0:r.highContrast)!==!0?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})},t)})})}),ce=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})}),Hn={contract_type:"clock",title:"magnifier",city:"mapPin",town:"mapPin",country:"mapPin",company_name:"briefcase",category:"briefcase",pay:"pay",pay_currency:"pay",pay_mask:"pay",pay_display:"pay",pay_max:"pay",pay_min:"pay",pay_type:"pay"},gi=Z({base:"group ijs-filter flex min-w-0 fr overflow-hidden rounded-section text-copy-neutral-lowcontrast ring-width-section transition-all duration-medium ease-expo-out fr-parent [&:has(.fr-child:active)]:scale-[0.975] origin-[50%_1.75rem]",variants:{hasValue:{false:"bg-section-weak-bg ring-section-weak-stroke",true:"bg-section-strong-bg ring-section-strong-stroke"}}}),vi=Z({base:"font-style-filter font-family-filter font-weight-filter text-style-filter truncate duration-snappy outline-none",variants:{state:{default:"text-copy-neutral-lowcontrast pointer-fine:group-hover:text-copy-neutral",filled:"text-copy-neutral",active:"text-copy-neutral"}}}),mi=Z({base:"flex-none text-copy-neutral-icon pointer-fine:group-hover:text-copy-neutral duration-snappy ease-expo-out"}),bi=e=>{const t=B(null),[n,r]=M(0),o=()=>{var a;return r(((a=t.current)==null?void 0:a.clientHeight)??0)};return Ce(()=>(o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)),e),{height:n,ref:t,updateHeight:o}},jr=e=>typeof e.value=="string"?[e.value]:e.value??[],Ei=({active:e,value:t,onActiveChange:n,property:r,onSkip:o,onValueChange:a,unfilteredQuery:s,useQuery:l})=>{const c=No(r.key,Hn)?Hn[r.key]:void 0,d=r.icon??c??"filter",f=jr(t),{height:i,ref:p,updateHeight:y}=bi([e]),_=f.length>0;return u("section",{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:gi({hasValue:_}),onTouchStart:Si,children:[u("div",{class:"min-w-0 max-w-full shrink-0 flex-grow",children:[u("button",{"aria-label":e?"Close filter":"Open filter",class:vi({state:e?"active":_?"filled":"default",class:"ijs-filter-heading rounded-section fr-child flex w-full cursor-pointer select-none items-center gap-2 py-4 pl-4"}),onClick:()=>n(!e),children:[u(ce,{"aria-hidden":!0,class:"flex-none",name:d}),u("p",{children:r.label})]}),u("div",{class:"ease-expo-out duration-snappy relative overflow-hidden transition-all",style:{height:i},children:u("div",{class:"w-full",ref:p,children:e&&u(Li,{useQuery:l,onRender:y,onSkip:o,onValueChange:a,unfilteredQuery:s,property:r,value:t})})})]}),!e&&u("button",{tabIndex:-1,class:"fr-child flex flex-shrink flex-grow cursor-pointer select-none items-center justify-end gap-2 overflow-hidden pl-2 pr-3 focus:outline-none",onClick:()=>n(!0),children:[u("div",{"aria-label":"Current value",class:"flex max-w-full gap-1 overflow-hidden",children:u(pi,{property:r,query:s,selectedValues:f})}),u(ce,{"aria-hidden":!0,class:mi(),name:"chevron-right"})]})]})};function Si(){}const wi=44,Ci=6,xi=12,Ti=8,Ge=Z({base:"fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",variants:{hasValue:{false:"text-copy-neutral ring-job-card-stroke",true:"text-interactive-accent-text ring-job-card-stroke"},size:{md:"py-2 px-4",unsized:""}},defaultVariants:{size:"md",hasValue:!1}}),Vr=Z({base:"gutter-stable pointer-fine:flex-wrap pointer-fine:p-2 pointer-fine:bg-app pointer-fine:rounded-section pointer-coarse:overflow-x-auto flex max-w-full overflow-y-auto px-4",variants:{type:{short:"gap-2 pointer-coarse:max-h-[var(--maxHeight)]",long:"pointer-fine:flex-nowrap items-stretch pointer-fine:flex-col overflow-y-auto max-h-[var(--maxHeight)]"},ring:{default:"pointer-fine:ring-width-section ring-section-weak-stroke",unset:""}},defaultVariants:{type:"short",ring:"default"}}),$r=Z({base:"max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",variants:{type:{pill:"",line:"[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"}}}),Ur=Z({base:"cursor-pointer flex fr gap-2 font-style-tag group-[&:first-child]/tag:rounded-t-tag group-[&:last-child]/tag:rounded-b-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",variants:{active:{true:"bg-accent-2 text-accent-11",false:"text-neutral-11"},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,active:!1,class:"hover:bg-neutral-2"}],defaultVariants:{disabled:!1,active:!1}}),ki=Z({base:"rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",variants:{colorScheme:{accentStrong:"text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",neutralStrong:"text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"}}}),Oi=({children:e,colorScheme:t})=>u("span",{class:ki({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),Ri=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},Fn=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},Ni=(e,t={by:"results-count",order:"descending"})=>{const n=[...e];switch(t.by){case"results-count":n.sort((r,o)=>r.jobs-o.jobs);break;case"alphabetically":n.sort((r,o)=>r.label.localeCompare(o.label));break;case"numerically":n.sort((r,o)=>{const a=Fn(r.value),s=Fn(o.value);return a-s});break}return t.order==="descending"&&n.reverse(),n},Ii=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},Ai=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},Li=({value:e,property:t,onSkip:n,useQuery:r,onValueChange:o,unfilteredQuery:a,onRender:s})=>{const{t:l}=be(),c=an(r()),d=ue(()=>{switch(c.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const h=c.data[t.key]??[];return Object.fromEntries(h.map(w=>[w.value,w.jobs]))}default:$e(c)}},[c,t.key]),f=jr(e),i=f.length>0,[p,y]=M(),_=ui("(pointer: coarse)");return K(()=>{s()}),c.queryState==="error"?u(At,{error:new Error(l("filters_loading_error"),{cause:c.error}),resetError:()=>c.swr.mutate()}):u("div",{class:"animate-slide-in-bottom flex w-full flex-col gap-2 pt-1",children:[t.searchable&&u("div",{class:"top-0 px-4 py-1",children:u("input",{type:"search",class:Ge(),value:p,onInput:h=>y(h.currentTarget.value),placeholder:l("type_to_search")})}),(()=>{switch(a.queryState){case"error":return u(At,{error:new Error(l("filters_loading_error"),{cause:a.error}),resetError:()=>a.swr.mutate()});case"idle":case"loading":return u("div",{class:"flex px-4",children:u("div",{"aria-hidden":!0,class:Pe({size:"lg",variant:"neutralStrong",interactive:!0,class:"animate-skeleton cursor-default opacity-20 active:-scale-100"}),children:u("span",{class:"inline-block w-[10ch]"})})});case"revalidating":case"loaded":{const h=a.data[t.key]??[],w=p&&p.length>1?h.filter(b=>b.label.toLowerCase().includes(p.toLowerCase())):h,g=[];for(const b of w){if(b.label.length<1)continue;const m={...b,results:Ai(d,b),disabled:Ii(d,b)};switch(t.results){case"only-available":m.disabled===!1&&g.push(m);break;default:g.push(m)}}if(!g.find(b=>!b.disabled))return u("p",{class:"font-style-tag text-style-tag font-weight-tag border-px w-full border-transparent px-4 py-2 text-center",children:l("no_filter_options_available")});const v=(h.length>xi||h.some(b=>b.label.length>24))&&!_;return u("div",{class:"pointer-fine:px-4",children:u("ul",{style:{"--maxHeight":`${wi*(Ci+.5)+2*Ti}px`},class:Vr({type:v?"long":"short"}),children:Ni(g,t.sortSuggestions).map(b=>{const m=f.includes(b.value);return u("li",{class:$r({type:v?"line":"pill"}),children:u("button",{type:"button",disabled:b.disabled,"data-filter":!0,"data-current-value":m?"true":void 0,onClick:()=>{switch(e.select){case"many":{const T=Ri(f,b.value);o({select:"many",value:T});break}case"one":o({select:"one",value:b.value});break;default:$e(e)}},class:v?Ur({active:m,disabled:b.disabled}):Pe({size:"lg",variant:m?"accentStrong":"neutralStrong",interactive:!0,disabled:b.disabled,class:"ijs-filter-tag flex max-w-full gap-3 overflow-hidden pr-2.5"}),children:[u("span",{class:"max-w-full truncate",children:b.label})," ",u(Oi,{colorScheme:m?"accentStrong":"neutralStrong",children:b.results})]})},b.value)})})})}default:$e(a)}})(),u("footer",{class:"flex justify-end p-2",children:[u("div",{class:"flex-1",children:i&&u("button",{type:"button",class:De({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[u(ce,{"aria-hidden":!0,name:"x"})," ",l("clear")]})}),e.select==="many"&&u("div",{class:"flex items-center overflow-hidden",children:u("p",{class:"font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center",children:[f.length," ",l("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:De({variant:i?"accent":"neutral",icon:"right",class:"ml-auto"}),onClick:n,children:[l(i?"done":"skip")," ",u(ce,{name:"chevron-right"})]},i?"done":"skip")})]})]})};function Hr(e,t){for(var n in t)e[n]=t[n];return e}function Lt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function mt(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function ot(e){this.props=e}function Fr(e,t){function n(o){var a=this.props.ref,s=a==o.ref;return!s&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!s:Lt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,q(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ot.prototype=new G).isPureReactComponent=!0,ot.prototype.shouldComponentUpdate=function(e,t){return Lt(this.props,e)||Lt(this.state,t)};var Wn=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Wn&&Wn(e)};var Di=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Xt(e){function t(n){var r=Hr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Di,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Bn=function(e,t){return e==null?null:se(se(e).map(t))},Wr={map:Bn,forEach:Bn,count:function(e){return e?se(e).length:0},only:function(e){var t=se(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:se},Pi=exports.l.__e;exports.l.__e=function(e,t,n,r){if(e.then){for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Pi(e,t,n,r)};var zn=exports.l.unmount;function Br(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Hr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Br(r,t,n)})),e}function zr(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return zr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function He(){this.__u=0,this.t=null,this.__b=null}function Gr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qr(e){var t,n,r;function o(a){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return q(n,a)}return o.displayName="Lazy",o.__f=!0,o}function Re(){this.u=null,this.o=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),zn&&zn(e)},(He.prototype=new G).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Gr(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=zr(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},c=t.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},He.prototype.componentWillUnmount=function(){this.t=[]},He.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Br(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&q(L,null,e.fallback);return o&&(o.__h=null),[q(L,null,t.__a?null:e.children),o]};var Gn=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Mi(e){return this.getChildContext=function(){return e.context},e.children}function ji(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ae(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ae(q(Mi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Kr(e,t){var n=q(ji,{__v:e,i:t});return n.containerInfo=t,n}(Re.prototype=new G).__a=function(e){var t=this,n=Gr(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),Gn(t,e,r)):o()};n?n(a):a()}},Re.prototype.render=function(e){this.u=null,this.o=new Map;var t=se(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Re.prototype.componentDidUpdate=Re.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Gn(e,n,t)})};var Zr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Vi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$i=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ui=/[A-Z0-9]/g,Hi=typeof document<"u",Fi=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Yr(e,t,n){return t.__k==null&&(t.textContent=""),Ae(e,t),typeof n=="function"&&n(),e?e.__c:null}function Jr(e,t,n){return Wt(e,t),typeof n=="function"&&n(),e?e.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var qn=exports.l.event;function Wi(){}function Bi(){return this.cancelBubble}function zi(){return this.defaultPrevented}exports.l.event=function(e){return qn&&(e=qn(e)),e.persist=Wi,e.isPropagationStopped=Bi,e.isDefaultPrevented=zi,e.nativeEvent=e};var en,Gi={enumerable:!1,configurable:!0,get:function(){return this.class}},Kn=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Hi&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Fi(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":$i.test(a)?a=l:r.indexOf("-")===-1&&Vi.test(a)?a=a.replace(Ui,"-$&").toLowerCase():s===null&&(s=void 0):l=a="oninput",l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=se(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=se(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Gi)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Zr,Kn&&Kn(e)};var Zn=exports.l.__r;exports.l.__r=function(e){Zn&&Zn(e),en=e.__c};var Yn=exports.l.diffed;exports.l.diffed=function(e){Yn&&Yn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),en=null};var Qr={ReactCurrentDispatcher:{current:{readContext:function(e){return en.__n[e.__c].props.value}}}},qi="17.0.2";function Xr(e){return q.bind(null,e)}function tn(e){return!!e&&e.$$typeof===Zr}function eo(e){return tn(e)?Mo.apply(null,arguments):e}function to(e){return!!e.__k&&(Ae(null,e),!0)}function no(e){return e&&(e.base||e.nodeType===1&&e)||null}var ro=function(e,t){return e(t)},oo=function(e,t){return e(t)},ao=L;function nn(e){e()}function io(e){return e}function so(){return[!1,nn]}var lo=Ce;function co(e,t){var n=t(),r=M({h:{__:n,v:t}}),o=r[0].h,a=r[1];return Ce(function(){o.__=n,o.v=t,mt(o.__,t())||a({h:o})},[e,n,t]),K(function(){return mt(o.__,o.v())||a({h:o}),e(function(){mt(o.__,o.v())||a({h:o})})},[e]),n}var ct={useState:M,useId:Jt,useReducer:Zt,useEffect:K,useLayoutEffect:Ce,useInsertionEffect:lo,useTransition:so,useDeferredValue:io,useSyncExternalStore:co,startTransition:nn,useRef:B,useImperativeHandle:Ar,useMemo:ue,useCallback:Ie,useContext:lt,useDebugValue:Yt,version:"17.0.2",Children:Wr,render:Yr,hydrate:Jr,unmountComponentAtNode:to,createPortal:Kr,createElement:q,createContext:it,createFactory:Xr,cloneElement:eo,createRef:dr,Fragment:L,isValidElement:tn,findDOMNode:no,Component:G,PureComponent:ot,memo:Fr,forwardRef:Xt,flushSync:oo,unstable_batchedUpdates:ro,StrictMode:ao,Suspense:He,SuspenseList:Re,lazy:qr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qr};const Ki=Object.freeze(Object.defineProperty({__proto__:null,Children:Wr,Component:G,Fragment:L,PureComponent:ot,StrictMode:ao,Suspense:He,SuspenseList:Re,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qr,cloneElement:eo,createContext:it,createElement:q,createFactory:Xr,createPortal:Kr,createRef:dr,default:ct,findDOMNode:no,flushSync:oo,forwardRef:Xt,hydrate:Jr,isValidElement:tn,lazy:qr,memo:Fr,render:Yr,startTransition:nn,unmountComponentAtNode:to,unstable_batchedUpdates:ro,useCallback:Ie,useContext:lt,useDebugValue:Yt,useDeferredValue:io,useEffect:K,useErrorBoundary:ti,useId:Jt,useImperativeHandle:Ar,useInsertionEffect:lo,useLayoutEffect:Ce,useMemo:ue,useReducer:Zt,useRef:B,useState:M,useSyncExternalStore:co,useTransition:so,version:qi},Symbol.toStringTag,{value:"Module"}));var Dt={exports:{}},bt={};const uo=na(Ki);/**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Jn;function Zi(){if(Jn)return bt;Jn=1;var e=uo;function t(i,p){return i===p&&(i!==0||1/i===1/p)||i!==i&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function l(i,p){var y=p(),_=r({inst:{value:y,getSnapshot:p}}),h=_[0].inst,w=_[1];return a(function(){h.value=y,h.getSnapshot=p,c(h)&&w({inst:h})},[i,y,p]),o(function(){return c(h)&&w({inst:h}),i(function(){c(h)&&w({inst:h})})},[i]),s(y),y}function c(i){var p=i.getSnapshot;i=i.value;try{var y=p();return!n(i,y)}catch{return!0}}function d(i,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return bt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,bt}var Et={};/**
10
+ * @license React
11
+ * use-sync-external-store-shim.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Qn;function Yi(){return Qn||(Qn=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=uo,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(S){{for(var v=arguments.length,b=new Array(v>1?v-1:0),m=1;m<v;m++)b[m-1]=arguments[m];r("error",S,b)}}function r(S,v,b){{var m=t.ReactDebugCurrentFrame,T=m.getStackAddendum();T!==""&&(v+="%s",b=b.concat([T]));var C=b.map(function(x){return String(x)});C.unshift("Warning: "+v),Function.prototype.apply.call(console[S],console,C)}}function o(S,v){return S===v&&(S!==0||1/S===1/v)||S!==S&&v!==v}var a=typeof Object.is=="function"?Object.is:o,s=e.useState,l=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,f=!1,i=!1;function p(S,v,b){f||e.startTransition!==void 0&&(f=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!i){var T=v();a(m,T)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),i=!0)}var C=s({inst:{value:m,getSnapshot:v}}),x=C[0].inst,k=C[1];return c(function(){x.value=m,x.getSnapshot=v,y(x)&&k({inst:x})},[S,m,v]),l(function(){y(x)&&k({inst:x});var $=function(){y(x)&&k({inst:x})};return S($)},[S]),d(m),m}function y(S){var v=S.getSnapshot,b=S.value;try{var m=v();return!a(b,m)}catch{return!0}}function _(S,v,b){return v()}var h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",w=!h,g=w?_:p,E=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g;Et.useSyncExternalStore=E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Et}process.env.NODE_ENV==="production"?Dt.exports=Zi():Dt.exports=Yi();var Ji=Dt.exports;const he=()=>{},F=he(),St=Object,O=e=>e===F,ee=e=>typeof e=="function",ge=(e,t)=>({...e,...t}),Qi=e=>ee(e.then),Je=new WeakMap;let Xi=0;const Fe=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(St(e)===e&&!r&&n!=RegExp){if(o=Je.get(e),o)return o;if(o=++Xi+"~",Je.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=Fe(e[a])+",";Je.set(e,o)}if(n==St){o="#";const s=St.keys(e).sort();for(;!O(a=s.pop());)O(e[a])||(o+=a+":"+Fe(e[a])+",");Je.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},oe=new WeakMap,wt={},Qe={},rn="undefined",ut=typeof window!=rn,Pt=typeof document!=rn,es=()=>ut&&typeof window.requestAnimationFrame!=rn,fo=(e,t)=>{const n=oe.get(e);return[()=>!O(t)&&e.get(t)||wt,r=>{if(!O(t)){const o=e.get(t);t in Qe||(Qe[t]=o),n[5](t,ge(o,r),o||wt)}},n[6],()=>!O(t)&&t in Qe?Qe[t]:!O(t)&&e.get(t)||wt]};let Mt=!0;const ts=()=>Mt,[jt,Vt]=ut&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[he,he],ns=()=>{const e=Pt&&document.visibilityState;return O(e)||e!=="hidden"},rs=e=>(Pt&&document.addEventListener("visibilitychange",e),jt("focus",e),()=>{Pt&&document.removeEventListener("visibilitychange",e),Vt("focus",e)}),os=e=>{const t=()=>{Mt=!0,e()},n=()=>{Mt=!1};return jt("online",t),jt("offline",n),()=>{Vt("online",t),Vt("offline",n)}},as={isOnline:ts,isVisible:ns},is={initFocus:rs,initReconnect:os},Xn=!ct.useId,We=!ut||"Deno"in window,ss=e=>es()?window.requestAnimationFrame(e):setTimeout(e,1),Ct=We?K:Ce,xt=typeof navigator<"u"&&navigator.connection,er=!We&&xt&&(["slow-2g","2g"].includes(xt.effectiveType)||xt.saveData),on=e=>{if(ee(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Fe(e):"",[e,t]};let ls=0;const $t=()=>++ls,_o=0,po=1,ho=2,cs=3;var Ve={__proto__:null,ERROR_REVALIDATE_EVENT:cs,FOCUS_EVENT:_o,MUTATE_EVENT:ho,RECONNECT_EVENT:po};async function yo(...e){const[t,n,r,o]=e,a=ge({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=a.populateCache;const l=a.rollbackOnError;let c=a.optimisticData;const d=p=>typeof l=="function"?l(p):l!==!1,f=a.throwOnError;if(ee(n)){const p=n,y=[],_=t.keys();for(const h of _)!/^\$(inf|sub)\$/.test(h)&&p(t.get(h)._k)&&y.push(h);return Promise.all(y.map(i))}return i(n);async function i(p){const[y]=on(p);if(!y)return;const[_,h]=fo(t,y),[w,g,E,S]=oe.get(t),v=()=>{const U=w[y];return(ee(a.revalidate)?a.revalidate(_().data,p):a.revalidate!==!1)&&(delete E[y],delete S[y],U&&U[0])?U[0](ho).then(()=>_().data):_().data};if(e.length<3)return v();let b=r,m;const T=$t();g[y]=[T,0];const C=!O(c),x=_(),k=x.data,$=x._c,Y=O($)?k:$;if(C&&(c=ee(c)?c(Y,k):c,h({data:c,_c:Y})),ee(b))try{b=b(Y)}catch(U){m=U}if(b&&Qi(b))if(b=await b.catch(U=>{m=U}),T!==g[y][0]){if(m)throw m;return b}else m&&C&&d(m)&&(s=!0,h({data:Y,_c:F}));if(s&&!m)if(ee(s)){const U=s(b,Y);h({data:U,error:F,_c:F})}else h({data:b,error:F,_c:F});if(g[y][1]=$t(),Promise.resolve(v()).then(()=>{h({_c:F})}),m){if(f)throw m;return}return b}}const tr=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},us=(e,t)=>{if(!oe.has(e)){const n=ge(is,t),r={},o=yo.bind(F,e);let a=he;const s={},l=(f,i)=>{const p=s[f]||[];return s[f]=p,p.push(i),()=>p.splice(p.indexOf(i),1)},c=(f,i,p)=>{e.set(f,i);const y=s[f];if(y)for(const _ of y)_(i,p)},d=()=>{if(!oe.has(e)&&(oe.set(e,[r,{},{},{},o,c,l]),!We)){const f=n.initFocus(setTimeout.bind(F,tr.bind(F,r,_o))),i=n.initReconnect(setTimeout.bind(F,tr.bind(F,r,po)));a=()=>{f&&f(),i&&i(),oe.delete(e)}}};return d(),[e,o,d,a]}return[e,oe.get(e)[4]]},ds=(e,t,n,r,o)=>{const a=n.errorRetryCount,s=o.retryCount,l=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!O(a)&&s>a||setTimeout(r,l,o)},fs=(e,t)=>Fe(e)==Fe(t),[go,_s]=us(new Map),ps=ge({onLoadingSlow:he,onSuccess:he,onError:he,onErrorRetry:ds,onDiscarded:he,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:er?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:er?5e3:3e3,compare:fs,isPaused:()=>!1,cache:go,mutate:_s,fallback:{}},as),hs=(e,t)=>{const n=ge(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:s}=t;r&&a&&(n.use=r.concat(a)),o&&s&&(n.fallback=ge(o,s))}return n},ys=it({}),gs="$inf$",vo=ut&&window.__SWR_DEVTOOLS_USE__,vs=vo?window.__SWR_DEVTOOLS_USE__:[],ms=()=>{vo&&(window.__SWR_DEVTOOLS_REACT__=ct)},bs=e=>ee(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Es=()=>ge(ps,lt(ys)),Ss=e=>(t,n,r)=>e(t,n&&((...a)=>{const[s]=on(t),[,,,l]=oe.get(go);if(s.startsWith(gs))return n(...a);const c=l[s];return O(c)?n(...a):(delete l[s],c)}),r),ws=vs.concat(Ss),Cs=e=>function(...n){const r=Es(),[o,a,s]=bs(n),l=hs(r,s);let c=e;const{use:d}=l,f=(d||[]).concat(ws);for(let i=f.length;i--;)c=f[i](c);return c(o,a||l.fetcher||null,l)},xs=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};ms();const nr=ct.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Tt={dedupe:!0},Ts=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:s,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:i,keepPreviousData:p}=n,[y,_,h,w]=oe.get(r),[g,E]=on(e),S=B(!1),v=B(!1),b=B(g),m=B(t),T=B(n),C=()=>T.current,x=()=>C().isVisible()&&C().isOnline(),[k,$,Y,U]=fo(r,g),de=B({}).current,qe=O(s)?n.fallback[g]:s,sn=(I,A)=>{for(const V in de){const D=V;if(D==="data"){if(!o(I[D],A[D])&&(!O(I[D])||!o(Ze,A[D])))return!1}else if(A[D]!==I[D])return!1}return!0},ln=ue(()=>{const I=(()=>!g||!t?!1:O(l)?C().isPaused()||a?!1:O(c)?!0:c:l)(),A=H=>{const te=ge(H);return delete te._k,I?{isValidating:!0,isLoading:!0,...te}:te},V=k(),D=U(),J=A(V),Oe=V===D?J:A(D);let j=J;return[()=>{const H=A(k());return sn(H,j)?(j.data=H.data,j.isLoading=H.isLoading,j.isValidating=H.isValidating,j.error=H.error,j):(j=H,H)},()=>Oe]},[r,g]),xe=Ji.useSyncExternalStore(Ie(I=>Y(g,(A,V)=>{sn(V,A)||I()}),[r,g]),ln[0],ln[1]),cn=!S.current,Co=y[g]&&y[g].length>0,Te=xe.data,ke=O(Te)?qe:Te,Ke=xe.error,un=B(ke),Ze=p?O(Te)?un.current:Te:ke,dn=(()=>Co&&!O(Ke)?!1:cn&&!O(l)?l:C().isPaused()?!1:a?O(ke)?!1:c:O(ke)||c)(),fn=!!(g&&t&&cn&&dn),xo=O(xe.isValidating)?fn:xe.isValidating,To=O(xe.isLoading)?fn:xe.isLoading,Me=Ie(async I=>{const A=m.current;if(!g||!A||v.current||C().isPaused())return!1;let V,D,J=!0;const Oe=I||{},j=!h[g]||!Oe.dedupe,H=()=>Xn?!v.current&&g===b.current&&S.current:g===b.current,te={isValidating:!1,isLoading:!1},pn=()=>{$(te)},hn=()=>{const z=h[g];z&&z[1]===D&&delete h[g]},yn={isValidating:!0};O(k().data)&&(yn.isLoading=!0);try{if(j&&($(yn),n.loadingTimeout&&O(k().data)&&setTimeout(()=>{J&&H()&&C().onLoadingSlow(g,n)},n.loadingTimeout),h[g]=[A(E),$t()]),[V,D]=h[g],V=await V,j&&setTimeout(hn,n.dedupingInterval),!h[g]||h[g][1]!==D)return j&&H()&&C().onDiscarded(g),!1;te.error=F;const z=_[g];if(!O(z)&&(D<=z[0]||D<=z[1]||z[1]===0))return pn(),j&&H()&&C().onDiscarded(g),!1;const ne=k().data;te.data=o(ne,V)?ne:V,j&&H()&&C().onSuccess(V,g,n)}catch(z){hn();const ne=C(),{shouldRetryOnError:dt}=ne;ne.isPaused()||(te.error=z,j&&H()&&(ne.onError(z,g,ne),(dt===!0||ee(dt)&&dt(z))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||x())&&ne.onErrorRetry(z,g,ne,ko=>{const ft=y[g];ft&&ft[0]&&ft[0](Ve.ERROR_REVALIDATE_EVENT,ko)},{retryCount:(Oe.retryCount||0)+1,dedupe:!0})))}return J=!1,pn(),!0},[g,r]),_n=Ie((...I)=>yo(r,b.current,...I),[]);if(Ct(()=>{m.current=t,T.current=n,O(Te)||(un.current=Te)}),Ct(()=>{if(!g)return;const I=Me.bind(F,Tt);let A=0;const D=xs(g,y,(J,Oe={})=>{if(J==Ve.FOCUS_EVENT){const j=Date.now();C().revalidateOnFocus&&j>A&&x()&&(A=j+C().focusThrottleInterval,I())}else if(J==Ve.RECONNECT_EVENT)C().revalidateOnReconnect&&x()&&I();else{if(J==Ve.MUTATE_EVENT)return Me();if(J==Ve.ERROR_REVALIDATE_EVENT)return Me(Oe)}});return v.current=!1,b.current=g,S.current=!0,$({_k:E}),dn&&(O(ke)||We?I():ss(I)),()=>{v.current=!0,D()}},[g]),Ct(()=>{let I;function A(){const D=ee(d)?d(k().data):d;D&&I!==-1&&(I=setTimeout(V,D))}function V(){!k().error&&(f||C().isVisible())&&(i||C().isOnline())?Me(Tt).then(A):A()}return A(),()=>{I&&(clearTimeout(I),I=-1)}},[d,f,i,g]),Yt(Ze),a&&O(ke)&&g){if(!Xn&&We)throw new Error("Fallback data is required when using suspense in SSR.");m.current=t,T.current=n,v.current=!1;const I=w[g];if(!O(I)){const A=_n(I);nr(A)}if(O(Ke)){const A=Me(Tt);O(Ze)||(A.status="fulfilled",A.value=!0),nr(A)}else throw Ke}return{mutate:_n,get data(){return de.data=!0,Ze},get error(){return de.error=!0,Ke},get isValidating(){return de.isValidating=!0,xo},get isLoading(){return de.isLoading=!0,To}}},mo=Cs(Ts),ks=Xt(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:a,onQueryChange:s,onBlur:l,onFocus:c,inputProps:d,menuProps:f,query:i},p)=>{const[y,_]=M(!1),[h,w]=M(),{t:g}=be(),E=B();K(()=>{var v;w((v=o[0])==null?void 0:v.id)},[o]);const S=v=>{a(v),_(!1)};return u("div",{class:"relative h-full",children:[u("input",{name:n,ref:p,disabled:e,"data-active":y?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:Ge({size:"md"}),onFocus:()=>{c==null||c(),_(!0)},onBlur:()=>{E.current=window.setTimeout(()=>{l==null||l(),_(!1)},100)},value:i,onChange:v=>s(v.currentTarget.value),onKeyDown:v=>{switch(_(!0),v.key){case"ArrowDown":case"ArrowUp":{const b=v.key==="ArrowDown"?1:-1;v.preventDefault();const m=o.findIndex(C=>C.id===h);if(m===-1)return;const T=o[m+b]??o[v.key==="ArrowDown"?0:o.length-1];if(!T)return;w(T.id);break}case"Enter":{if(v.preventDefault(),!h)return;a(h)}}},...d}),!t&&y&&!e&&o.length>0?u("ul",{className:Vr({type:"long",ring:"unset",className:"ring-width-section ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"}),id:`ijs-${n}-menu`,onMouseDown:()=>{E.current&&clearTimeout(E.current)},...f,children:t?u("div",{role:"alert",children:g("geo_suggestions_error")}):o.map(v=>u("li",{class:$r({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>w(v.id),class:Ur({active:v.id===h,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>S(v.id),onKeyDown:b=>{b.key==="Enter"&&S(v.id)},children:v.label})},v.id))}):null]})}),Os=(e={})=>new Promise((t,n)=>{var r,o;if((r=e.signal)!=null&&r.aborted){n(new DOMException("Aborted","AbortError"));return}navigator.geolocation.getCurrentPosition(a=>t(a.coords),a=>n(a),e),(o=e.signal)==null||o.addEventListener("abort",()=>{n(new DOMException("Aborted","AbortError"))},{once:!0})}),Rs={[GeolocationPositionError.PERMISSION_DENIED]:"geo_error_permission_denied",[GeolocationPositionError.POSITION_UNAVAILABLE]:"geo_error_position_unavailable",[GeolocationPositionError.TIMEOUT]:"geo_error_timeout"},rr=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,Ns=({onLocate:e,onError:t,signal:n})=>{const[r,o]=M("idle"),[a,s]=M(null),{t:l}=be(),c=d=>{o("idle"),s(d),e(d)};return u("button",{"aria-label":l(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(rr){if(o("loading"),a)return c(a);Os({signal:n}).then(d=>{const f={lat:d.latitude,lng:d.longitude};c(f)}).catch(d=>{if(console.log(d),d instanceof DOMException&&d.name==="AbortError")return o("idle");o("error");const f=Rs[d.code];if(!f)return;const i=l(f);t(i)})}},"data-state":r,class:De({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!rr||r==="error",children:u(ce,{name:"target-location"})})},Is="https://api.mapbox.com/search/geocode/v6/forward",As="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Ls=e=>atob(e).split("").reverse().join(""),Ds=ie({features:Bt(pe(ie({properties:ie({mapbox_id:R(),place_formatted:_e(R()),name_preferred:_e(R(),"Untitled location"),coordinates:pe(ie({latitude:fe(),longitude:fe()}),({latitude:e,longitude:t})=>({lat:e,lng:t}))})}),e=>e.properties))}),Ps=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Ms=async e=>{if(!e)return[];const t=new URL(Is);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",Ls(As));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=zt(Ds,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return Ps(o,a=>a.name_preferred+a.place_formatted)},js=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:a}=be(),[s,l]=M(""),[c,d]=M(),f=Bs(s,500),[i,p]=M(new AbortController),y=mo(f,Ms,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:_,queryState:h,error:w}=an(y),[g,E]=M("view"),S=B(null);return K(()=>{if(g==="edit"){if(!S.current)return;S.current.focus()}},[g]),u("div",{class:"relative flex-1",children:[g==="view"&&n?u("button",{"aria-label":a("geo_search_placeholder"),type:"button",class:Ge({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{E("edit")},children:u("div",{class:Pe({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:c??a("location_provided")})}):u(ks,{ref:S,error:w,query:s,name:"location-search",onQueryChange:l,onFocus:()=>{i.abort(),p(new AbortController)},onBlur:()=>{E("view"),l("")},onItemSelect:v=>{if(h!=="loaded")return;const b=_.find(m=>m.mapbox_id===v);b&&(e(b.coordinates),E("view"),d(b.name_preferred))},inputPlaceholder:a("geo_search_placeholder"),items:(_==null?void 0:_.map(v=>({id:v.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:v.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:v.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 z-10 flex items-center gap-2",children:!s&&!n?u(Ns,{onLocate:v=>{E("view"),d(a("geo_my_location")),t({type:"provided",coords:v,radius:r})},onError:o,signal:i.signal}):u("button",{type:"button","aria-label":a("geo_clear_search"),onClick:()=>{l(""),d(void 0),t({radius:r,type:"provided"}),E("edit"),S.current&&(S.current.value="",S.current.focus())},class:De({variant:"neutral",size:"lg",icon:"only"}),children:u(ce,{name:"x"})})})]})},Vs=[.25,.5,1,3,5,10,15,20,30,40],bo=20,Ut=e=>e*1609.34,$s=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),Us=pe(ie({type:re("provided"),lat:_e(pe(R(),e=>Number(e))),lng:_e(pe(R(),e=>Number(e))),radius:pe(R(),e=>Number(e))}),e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0})),Hs=({value:e,onValueChange:t,logger:n})=>{const{t:r}=be(),o=Jt(),a=(e==null?void 0:e.type)==="provided"?e.radius:Ut(bo),[s,l]=M();return u("div",{class:"flex flex-col gap-2",children:[u("form",{onChange:c=>{const d=new FormData(c.currentTarget),f=zt(Us,Object.fromEntries(d.entries()));if(!f.success){n.error(f.issues),l(f.issues[0].message);return}t(f.output)},class:"flex flex-col gap-2 md:flex-row",children:[u("input",{type:"hidden",name:"type",value:"provided"}),(e==null?void 0:e.type)==="provided"&&e.coords?u(L,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u(js,{coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:a,onValueChange:t,onSelect:c=>{l(void 0),t({type:"provided",radius:a,coords:c})},onError:l}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:o,children:r("geo_range_label")}),u("select",{id:o,name:"radius",class:Ge({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:a,onChange:c=>{l(void 0),t({type:"provided",coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:Number(c.currentTarget.value)})},children:Vs.map(c=>u("option",{value:Ut(c),class:"truncate",children:$s.format(c)},c))}),u("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:u(ce,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),s?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(ce,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),s]}):null]})},Fs=(e,t)=>{const n=structuredClone(e);return n.forEach(r=>{if(t.has(r.key)){const o=t.get(r.key);if(!o)return;r.defaultValue=o.includes(",")?o.split(","):o}}),n},Ws=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");return{type:"provided",coords:t&&n?{lat:Number(t),lng:Number(n)}:void 0,radius:r?Number(r):Ut(bo)}},Bs=(e,t=1e3)=>{const[n,r]=M(e),o=ue(()=>ei(a=>r(a),t),[t]);return K(()=>{o(e)},[e,o]),n},or={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},Eo=e=>{const{salary:t,config:n}=e,r=new Intl.NumberFormat(n.locales,{style:"currency",currency:t.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(t.pay_display===!1)return;if(t.pay_mask)return e.t("competitive");if(t.pay_max&&Number.isNaN(+t.pay_max)||t.pay_min&&Number.isNaN(+t.pay_min)||t.pay&&Number.isNaN(+t.pay))return e.t("invalid_salary");const o=t.pay_type&&t.pay_type in or?or[t.pay_type]:void 0;return t.pay?[r.format(+t.pay),o].filter(Boolean).join(" "):t.pay_max&&t.pay_min?[r.formatRange(+t.pay_min,+t.pay_max),o].filter(Boolean).join(" "):t.pay_max?`${e.t("up_to")} ${[r.format(+t.pay_max),o].filter(Boolean).join(" ")}`:t.pay_min?`${e.t("from")} ${[r.format(+t.pay_min),o].filter(Boolean).join(" ")}`:e.t("invalid_salary")},zs=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),So=({from:e=new Date,to:t,formatter:n=zs,t:r})=>{const a=(t instanceof Date?t:new Date(t)).getTime()-e.getTime(),s={days:Math.round(a/1e3/60/60/24),months:Math.round(a/1e3/60/60/24/30)};return s.days===0?r("today"):Math.abs(s.days)<30?n.format(s.days,"days"):Math.abs(s.days)<3?n.format(s.months,"months"):s.months<0?r("over_30_days_ago"):r("in_over_30_days")},Gs=Cr(Bt(ie({label:Sn(R(),String),value:Sn(R(),String),jobs:fe()}))),qs=R([Xo()]),Ks=ie({total:fe(),current_page:fe(),per_page:fe(),last_page:fe()}),Zs=ie({id:fe(),company_name:R(),company_logo:W(_e(R())),employment_type:R(),location_type:Cn([re("LOCATION"),re("REMOTE"),re("HYBRID")]),pay_type:W(Cn([re("ANNUALLY"),re("HOURLY"),re("MONTHLY"),re("WEEKLY"),re("DAILY")])),pay_currency:R(),pay_mask:wn(),pay_display:wn(),pay:W(R()),pay_min:W(R()),pay_max:W(R()),description:R(),title:R(),contract_type:W(R()),created_at:W(R()),custom_data:W(Cr(Yo())),href:R(),industry:W(R()),category:W(R()),skills:_e(R()),town:_e(R()),city:W(R()),country:W(R()),vector_distance:_e(W(R()))}),Ys=e=>pe(Zs,t=>{const n=zt(qs,t.company_logo);return{id:t.id,createdAt:t.created_at,company:{name:t.company_name,logo:n.success?n.output:null},employmentType:t.employment_type,locationType:t.location_type,pay:Eo({salary:t,config:{locales:void 0},t:e})??null,description:t.description,title:t.title,contractType:t.contract_type,href:t.href,relativePostedDate:t.created_at?So({to:new Date(t.created_at),t:e}):"INVALID DATE",customData:t.custom_data,raw:t,match:t.vector_distance&&parseFloat(t.vector_distance)<.15?e("great_match"):null}}),Js=e=>pe(ie({data:Bt(Ys(e)),pagination:Ks}),t=>({pagination:t.pagination,results:t.data})),Qs=e=>!e||Array.isArray(e)&&e.length===0?null:e,wo=e=>{var n;const t={};for(const r in e.filters){const o=e.filters[r];t[r]=Qs(o==null?void 0:o.value)}return((n=e.geo)==null?void 0:n.type)==="provided"&&e.geo.coords&&(t.geolocation={type:e.geo.type,lat:e.geo.coords.lat,lng:e.geo.coords.lng,radius:e.geo.radius}),t},Xs=async({apiClient:e,state:t,logger:n,signal:r})=>{try{const o=new URLSearchParams(Er({filters:wo(t),query:t.query})),a="/search/filters",s=await e.fetch([a,o.toString()].filter(Boolean).join("?"),{signal:r});return xr(Gs,s)}catch(o){throw o instanceof st?n.error(o.message,o.issues):n.error(o),o}},el=async({apiClient:e,logger:t,signal:n,state:r,page:o=1,t:a})=>{try{const s=new URLSearchParams(Er({filters:wo(r)}));s.set("page",o.toString()),s.set("per_page",Tr.toString()),r.query&&(s.set("query",r.query),s.set("mode",r.mode));const l=await e.fetch(["/search/results",s.toString()].filter(Boolean).join("?"),{signal:n});return xr(Js(a),l)}catch(s){throw s instanceof st?t.error(s.message,s.issues):t.error(s),s}},an=e=>{if(e.error)return{queryState:"error",error:e.error,swr:e};if(e.isLoading&&e.data===void 0)return{queryState:"loading",swr:e};if((e.isLoading||e.isValidating)&&e.data)return{queryState:"revalidating",data:e.data,swr:e};if(!e.isLoading&&e.data)return{queryState:"loaded",data:e.data,swr:e};if(!e.data&&!e.isLoading)return{queryState:"idle",swr:e};throw console.error("Unhandled data state",e),new Error("Unhandled data state")},tl={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};exports.D=Ae;exports.E=Wt;exports.ErrorBoundary=_i;exports.ErrorView=At;exports.F=ue;exports.Filter=Ei;exports.GeoSearch=Hs;exports.Icon=ce;exports.IconSpritesheet=yi;exports.JOB_SEARCH_ELEMENT_ID=ea;exports.JOB_SEARCH_SCOPE_ELEMENT_ID=ta;exports.PAGE_SIZE=Tr;exports.SWR_SETTINGS=tl;exports.T=Ie;exports.TranslationProvider=si;exports.UnstyledErrorView=fi;exports._=B;exports._Symbol=Kt;exports._baseGetTag=Rr;exports._root=qt;exports.btnClass=De;exports.clsx=Mr;exports.createTFunction=li;exports.cva=Z;exports.exhaustive=$e;exports.getAvailableFilters=Xs;exports.getDefaultExportFromCjs=kr;exports.getGeolocationFromSearchParams=Ws;exports.getJobSearchResults=el;exports.getQueryState=an;exports.getRelativeTimeDifference=So;exports.getSalaryAsText=Eo;exports.getStatefulPropertiesFromSearchParams=Fs;exports.h=M;exports.inputClass=Ge;exports.invariant=ar;exports.isObject_1=Gt;exports.isSymbol_1=Nr;exports.k=L;exports.o=u;exports.p=K;exports.tagClass=Pe;exports.useSWR=mo;exports.useTranslation=be;exports.useViewTracking=di;exports.y=q;
@@ -1,8 +1,8 @@
1
1
  import { ApiClient, Logger } from '@inploi/sdk';
2
2
  import { SWRResponse } from 'swr';
3
3
  import { Input, Output } from 'valibot';
4
- import { FilterValue } from './components/filter';
5
- import { TFunction } from './lib/translation.terms';
4
+ import { JobSearchState } from './components/job-search';
5
+ import { TFunction } from './lib/i18n';
6
6
 
7
7
  declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
8
8
  data: import('valibot').ArraySchema<import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
@@ -34,7 +34,10 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
34
34
  town: import('valibot').OptionalSchema<import('valibot').StringSchema<string>, undefined, string | undefined>;
35
35
  city: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
36
36
  country: import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>;
37
+ vector_distance: import('valibot').OptionalSchema<import('valibot').NullableSchema<import('valibot').StringSchema<string>, undefined, string | null>, undefined, string | null | undefined>;
37
38
  }, undefined, {
39
+ title: string;
40
+ href: string;
38
41
  id: number;
39
42
  company_name: string;
40
43
  employment_type: string;
@@ -47,13 +50,11 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
47
50
  pay_min: string | null;
48
51
  pay_max: string | null;
49
52
  description: string;
50
- title: string;
51
53
  contract_type: string | null;
52
54
  created_at: string | null;
53
55
  custom_data: {
54
56
  [x: string]: any;
55
57
  } | null;
56
- href: string;
57
58
  industry: string | null;
58
59
  category: string | null;
59
60
  city: string | null;
@@ -61,6 +62,7 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
61
62
  company_logo?: string | undefined;
62
63
  skills?: string | undefined;
63
64
  town?: string | undefined;
65
+ vector_distance?: string | null | undefined;
64
66
  }>, {
65
67
  id: number;
66
68
  createdAt: string | null;
@@ -80,6 +82,8 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
80
82
  [x: string]: any;
81
83
  } | null;
82
84
  raw: {
85
+ title: string;
86
+ href: string;
83
87
  id: number;
84
88
  company_name: string;
85
89
  employment_type: string;
@@ -92,13 +96,11 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
92
96
  pay_min: string | null;
93
97
  pay_max: string | null;
94
98
  description: string;
95
- title: string;
96
99
  contract_type: string | null;
97
100
  created_at: string | null;
98
101
  custom_data: {
99
102
  [x: string]: any;
100
103
  } | null;
101
- href: string;
102
104
  industry: string | null;
103
105
  category: string | null;
104
106
  city: string | null;
@@ -106,7 +108,9 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
106
108
  company_logo?: string | undefined;
107
109
  skills?: string | undefined;
108
110
  town?: string | undefined;
111
+ vector_distance?: string | null | undefined;
109
112
  };
113
+ match: string | null;
110
114
  }>, {
111
115
  id: number;
112
116
  createdAt: string | null;
@@ -126,6 +130,8 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
126
130
  [x: string]: any;
127
131
  } | null;
128
132
  raw: {
133
+ title: string;
134
+ href: string;
129
135
  id: number;
130
136
  company_name: string;
131
137
  employment_type: string;
@@ -138,13 +144,11 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
138
144
  pay_min: string | null;
139
145
  pay_max: string | null;
140
146
  description: string;
141
- title: string;
142
147
  contract_type: string | null;
143
148
  created_at: string | null;
144
149
  custom_data: {
145
150
  [x: string]: any;
146
151
  } | null;
147
- href: string;
148
152
  industry: string | null;
149
153
  category: string | null;
150
154
  city: string | null;
@@ -152,7 +156,9 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
152
156
  company_logo?: string | undefined;
153
157
  skills?: string | undefined;
154
158
  town?: string | undefined;
159
+ vector_distance?: string | null | undefined;
155
160
  };
161
+ match: string | null;
156
162
  }[]>;
157
163
  pagination: import('valibot').ObjectSchema<{
158
164
  total: import('valibot').NumberSchema<number>;
@@ -185,6 +191,8 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
185
191
  [x: string]: any;
186
192
  } | null;
187
193
  raw: {
194
+ title: string;
195
+ href: string;
188
196
  id: number;
189
197
  company_name: string;
190
198
  employment_type: string;
@@ -197,13 +205,11 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
197
205
  pay_min: string | null;
198
206
  pay_max: string | null;
199
207
  description: string;
200
- title: string;
201
208
  contract_type: string | null;
202
209
  created_at: string | null;
203
210
  custom_data: {
204
211
  [x: string]: any;
205
212
  } | null;
206
- href: string;
207
213
  industry: string | null;
208
214
  category: string | null;
209
215
  city: string | null;
@@ -211,7 +217,9 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
211
217
  company_logo?: string | undefined;
212
218
  skills?: string | undefined;
213
219
  town?: string | undefined;
220
+ vector_distance?: string | null | undefined;
214
221
  };
222
+ match: string | null;
215
223
  }[];
216
224
  pagination: {
217
225
  total: number;
@@ -245,6 +253,8 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
245
253
  [x: string]: any;
246
254
  } | null;
247
255
  raw: {
256
+ title: string;
257
+ href: string;
248
258
  id: number;
249
259
  company_name: string;
250
260
  employment_type: string;
@@ -257,13 +267,11 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
257
267
  pay_min: string | null;
258
268
  pay_max: string | null;
259
269
  description: string;
260
- title: string;
261
270
  contract_type: string | null;
262
271
  created_at: string | null;
263
272
  custom_data: {
264
273
  [x: string]: any;
265
274
  } | null;
266
- href: string;
267
275
  industry: string | null;
268
276
  category: string | null;
269
277
  city: string | null;
@@ -271,33 +279,39 @@ declare const getJobSearchResponseSchema: (t: TFunction) => import('valibot').Sc
271
279
  company_logo?: string | undefined;
272
280
  skills?: string | undefined;
273
281
  town?: string | undefined;
282
+ vector_distance?: string | null | undefined;
274
283
  };
284
+ match: string | null;
275
285
  }[];
276
286
  }>;
277
287
  export type JobSearchResponsePayloadInput = Input<ReturnType<typeof getJobSearchResponseSchema>>;
278
288
  export type JobSearchResponsePayloadOutput = Output<ReturnType<typeof getJobSearchResponseSchema>>;
279
289
  export declare const getFilterValue: (filterValue: string | string[] | undefined) => string | string[] | null;
280
- export declare const filtersToPayload: (filters: Record<string, FilterValue | undefined>) => Record<string, string | string[] | null>;
281
- export declare const getAvailableFilters: ({ apiClient, filters, keyword, logger, signal, }: {
290
+ type GeoSearchApiParams = {
291
+ lat?: number;
292
+ lng?: number;
293
+ radius?: number;
294
+ type?: 'provided' | 'ip';
295
+ };
296
+ export declare const filtersToPayload: (state: JobSearchState) => Record<string, string | string[] | GeoSearchApiParams | null | undefined>;
297
+ export declare const getAvailableFilters: ({ apiClient, state, logger, signal, }: {
282
298
  apiClient: ApiClient;
283
299
  logger: Logger;
284
- keyword: string | undefined;
285
300
  signal?: AbortSignal;
286
- filters: Record<string, FilterValue | undefined>;
301
+ state: JobSearchState;
287
302
  }) => Promise<{
288
303
  [x: string]: {
289
- label: string;
290
304
  value: string;
305
+ label: string;
291
306
  jobs: number;
292
307
  }[];
293
308
  }>;
294
309
  export type GetAvailableFiltersResponse = Awaited<ReturnType<typeof getAvailableFilters>>;
295
- export declare const getJobSearchResults: ({ apiClient, logger, signal, filters, keyword, page, t, }: {
310
+ export declare const getJobSearchResults: ({ apiClient, logger, signal, state, page, t, }: {
296
311
  apiClient: ApiClient;
297
312
  logger: Logger;
298
313
  signal?: AbortSignal;
299
- filters: Record<string, FilterValue | undefined>;
300
- keyword?: string;
314
+ state: JobSearchState;
301
315
  page?: number;
302
316
  t: TFunction;
303
317
  }) => Promise<{
@@ -326,6 +340,8 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, filters,
326
340
  [x: string]: any;
327
341
  } | null;
328
342
  raw: {
343
+ title: string;
344
+ href: string;
329
345
  id: number;
330
346
  company_name: string;
331
347
  employment_type: string;
@@ -338,13 +354,11 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, filters,
338
354
  pay_min: string | null;
339
355
  pay_max: string | null;
340
356
  description: string;
341
- title: string;
342
357
  contract_type: string | null;
343
358
  created_at: string | null;
344
359
  custom_data: {
345
360
  [x: string]: any;
346
361
  } | null;
347
- href: string;
348
362
  industry: string | null;
349
363
  category: string | null;
350
364
  city: string | null;
@@ -352,27 +366,34 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, filters,
352
366
  company_logo?: string | undefined;
353
367
  skills?: string | undefined;
354
368
  town?: string | undefined;
369
+ vector_distance?: string | null | undefined;
355
370
  };
371
+ match: string | null;
356
372
  }[];
357
373
  }>;
358
374
  export type GetJobSearchResponse = Awaited<ReturnType<typeof getJobSearchResults>>;
359
375
  export type QueryState<T> = {
360
- state: 'error';
376
+ queryState: 'idle';
377
+ data?: never;
378
+ error?: never;
379
+ swr: SWRResponse<T>;
380
+ } | {
381
+ queryState: 'error';
361
382
  data?: never;
362
383
  error: unknown;
363
384
  swr: SWRResponse<T>;
364
385
  } | {
365
- state: 'loading';
386
+ queryState: 'loading';
366
387
  data?: never;
367
388
  error?: never;
368
389
  swr: SWRResponse<T>;
369
390
  } | {
370
- state: 'revalidating';
391
+ queryState: 'revalidating';
371
392
  data: T;
372
393
  error?: never;
373
394
  swr: SWRResponse<T>;
374
395
  } | {
375
- state: 'loaded';
396
+ queryState: 'loaded';
376
397
  data: T;
377
398
  error?: never;
378
399
  swr: SWRResponse<T>;
@@ -1,8 +1,9 @@
1
1
  import { TargetedEvent } from 'preact/compat';
2
2
  import { getJobSearchResults } from './job-search.api.ts';
3
3
  import { FilterValue } from './components/filter.tsx';
4
+ import { GeoSearchFilter } from './components/geo-search.tsx';
4
5
  import { IconName } from './components/icon.tsx';
5
- import { JobSearchTranslationTerms } from './lib/translation.terms.ts';
6
+ import { JobSearchTranslationTerms } from './lib/i18n.ts';
6
7
 
7
8
  type FontSettings = {
8
9
  fontFamily: string;
@@ -135,12 +136,22 @@ export type JobSearchPluginParams = {
135
136
  openJob?: 'redirect' | 'redirect-new-tab';
136
137
  };
137
138
  defaultSearchKeyword?: string;
139
+ defaultGeolocation?: GeoSearchFilter;
138
140
  /** Enables the job alerts button */
139
141
  enableJobAlerts?: boolean;
140
142
  /** Enables searching for jobs by keyword */
141
143
  enableKeywordSearch?: boolean;
142
144
  /** Translation terms */
143
145
  terms?: JobSearchTranslationTerms;
146
+ geolocation?: {
147
+ enabled: boolean;
148
+ };
149
+ naturalLanguageSearch?: {
150
+ /** Enables searching for jobs by natural language */
151
+ enabled: boolean;
152
+ /** Suggestion searches */
153
+ suggestions: string[];
154
+ };
144
155
  };
145
156
  export interface PrerenderJobSearchPluginParams extends JobSearchPluginParams {
146
157
  /** If true, the data needed to display the first page of results
@@ -157,6 +168,7 @@ export interface RenderJobSearchPluginParams extends JobSearchPluginParams {
157
168
  };
158
169
  onFilterChange: (params: Record<string, FilterValue | undefined>) => void;
159
170
  onKeywordChange: (keyword: string | undefined) => void;
171
+ onGeolocationChange: (geo: GeoSearchFilter | undefined) => void;
160
172
  }
161
173
  export declare const createJobSearchDomManager: () => {
162
174
  getRenderTargetElement: () => Element;
@@ -187,6 +199,7 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
187
199
  name: string;
188
200
  logo: string | null;
189
201
  };
202
+ /** The **fixed** value for the filter. Cannot be removed or changed. */
190
203
  employmentType: string;
191
204
  locationType: "LOCATION" | "REMOTE" | "HYBRID";
192
205
  pay: string | null;
@@ -199,6 +212,8 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
199
212
  [x: string]: any;
200
213
  } | null;
201
214
  raw: {
215
+ title: string;
216
+ href: string;
202
217
  id: number;
203
218
  company_name: string;
204
219
  employment_type: string;
@@ -211,13 +226,11 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
211
226
  pay_min: string | null;
212
227
  pay_max: string | null;
213
228
  description: string;
214
- title: string;
215
229
  contract_type: string | null;
216
230
  created_at: string | null;
217
231
  custom_data: {
218
232
  [x: string]: any;
219
233
  } | null;
220
- href: string;
221
234
  industry: string | null;
222
235
  category: string | null;
223
236
  city: string | null;
@@ -225,7 +238,9 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
225
238
  company_logo?: string | undefined;
226
239
  skills?: string | undefined;
227
240
  town?: string | undefined;
241
+ vector_distance?: string | null | undefined;
228
242
  };
243
+ match: string | null;
229
244
  }[];
230
245
  };
231
246
  } | undefined;