@inploi/plugin-job-search 1.0.0 → 1.0.1
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.
- package/cdn/index.js +5 -5
- package/dist/components/filter.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/job-search.api.d.ts +12 -12
- package/dist/job-search.d.ts +5 -3
- package/dist/job-search.schemas.d.ts +6 -6
- package/dist/style/tokens.d.ts +1 -1
- package/dist/{job-search.api-f001f5fd.js → utils-054b6e73.js} +1505 -1504
- package/dist/utils-8c59d05c.cjs +17 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +3 -5
- package/package.json +3 -3
- package/dist/job-search.api-fce04187.cjs +0 -17
- package/dist/lib/currency.d.ts +0 -10
- package/dist/lib/datetime.d.ts +0 -11
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";var To=Object.defineProperty;var ko=(e,t,n)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _t=(e,t,n)=>(ko(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 Oo(e,t){return e in t}var gn={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},Ro=e=>{const{salary:t,config:n,t:r=s=>s}=e,o=new Intl.NumberFormat(n.locales,{style:"currency",currency:t.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(t.pay_display===!1)return;if(t.pay_mask)return r("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 r("invalid_salary");const a=t.pay_type&&t.pay_type in gn?gn[t.pay_type]:void 0;return t.pay?[o.format(+t.pay),a].filter(Boolean).join(" "):t.pay_max&&t.pay_min?[o.formatRange(+t.pay_min,+t.pay_max),a].filter(Boolean).join(" ")||"":t.pay_max?`${r("up_to")} ${[o.format(+t.pay_max),a].filter(Boolean).join(" ")}`:t.pay_min?`${r("from")} ${[o.format(+t.pay_min),a].filter(Boolean).join(" ")}`:r("invalid_salary")},Do=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),Io=({from:e=new Date,to:t,formatter:n=Do,t:r=o=>o})=>{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")},ze;exports.l=void 0;var ir,Ee,vn,sr,kt,lr,De={},cr=[],No=/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?ze.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 A(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++||vn!==exports.l.debounceRendering)&&((vn=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(A,{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=De:(y=m[E]||De,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===De||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 mn(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||No.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||mn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||mn(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?En:bn,a):e.removeEventListener(t,a?En:bn,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 bn(e){return this.l[e.type+!1](exports.l.event?exports.l.event(e):e)}function En(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=Mo),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===A&&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=Po(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 Po(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&&ze.call(e.childNodes),f=(p=n.props||De).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 Mo(e,t,n){return this.constructor(e,n)}function Ne(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(A,null,[e]),o||De,De,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ze.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r,s),yr(a,e,s)}function Wt(e,t){Ne(e,t,Wt)}function jo(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?ze.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}ze=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=A,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",Dt={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},Vo="RFC1738",$o=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,Uo=(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===Vo&&(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 Ho(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function Sn(e,t){if($o(e)){const n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)}var Fo=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,Wo=Array.prototype.push,mr=function(e,t){Wo.apply(e,X(t)?t:[t])},zo=Date.prototype.toISOString,P={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Uo,encodeValuesOnly:!1,format:Rt,formatter:Dt[Rt],indices:!1,serializeDate(e){return zo.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=Sn(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)||Ho(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=Sn(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 Go(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(!Fo.call(Dt,e.format))throw new TypeError("Unknown format option provided.");n=e.format}const r=Dt[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=Go(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 wn(e,t){return{...e,_parse(n,r){return e._parse(t(n),r)}}}function Be(e){return{issues:e}}function Se(e){return{output:e}}function qo(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 Ko(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||Ko(n,r);for(const d of c.issues){const f=qo(o,d);a?a.push(f):a=[f]}if(o.abortEarly||o.abortPipeEarly)break}else s=c.output}return a?Be(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 Zo(e,t,n,r){return Be([{validation:e,message:Sr(t),input:n,requirement:r}])}function Yo(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 Jo(e){return{type:"any",async:!1,pipe:e,_parse(t,n){return ve(t,this.pipe,n,"any")}}}function zt(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?Be(l):ve(c,this.pipe,s,"array")}}}function Cn(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]=Yo(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?Be(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 Qo(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 Xo=["__proto__","prototype","constructor"];function Cr(e,t,n,r){const[o,a,s="Invalid type",l]=Qo(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(!Xo.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?Be(f):ve(i,this.pipe,d,"record")}}}function xn(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 Bt(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 ea(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):Zo(this.type,this.message,t,this.requirement)}}}const ta="inploi-job-search",Tr=10,na=Cr(zt(ie({label:wn(R(),String),value:wn(R(),String),jobs:fe()}))),ra=R([ea()]),oa=ie({total:fe(),current_page:fe(),per_page:fe(),last_page:fe()}),aa=ie({id:fe(),company_name:R(),company_logo:W(_e(R())),employment_type:R(),location_type:xn([re("LOCATION"),re("REMOTE"),re("HYBRID")]),pay_type:W(xn([re("ANNUALLY"),re("HOURLY"),re("MONTHLY"),re("WEEKLY"),re("DAILY")])),pay_currency:R(),pay_mask:Cn(),pay_display:Cn(),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(Jo())),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()))}),ia=e=>pe(aa,t=>{const n=Bt(ra,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:Ro({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?Io({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}}),sa=e=>pe(ie({data:zt(ia(e)),pagination:oa}),t=>({pagination:t.pagination,results:t.data})),la=e=>!e||Array.isArray(e)&&e.length===0?null:e,kr=e=>{var n;const t={};for(const r in e.filters){const o=e.filters[r];t[r]=la(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},ca=async({apiClient:e,state:t,logger:n,signal:r})=>{try{const o=new URLSearchParams(Er({filters:kr(t),query:t.query})),a="/search/filters",s=await e.fetch([a,o.toString()].filter(Boolean).join("?"),{signal:r});return xr(na,s)}catch(o){throw o instanceof st?n.error(o.message,o.issues):n.error(o),o}},ua=async({apiClient:e,logger:t,signal:n,state:r,page:o=1,t:a})=>{try{const s=new URLSearchParams(Er({filters:kr(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(sa(a),l)}catch(s){throw s instanceof st?t.error(s.message,s.issues):t.error(s),s}},Gt=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")},da={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var fa=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:--fa,__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}function Or(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=Or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Rr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Or(e))&&(r&&(r+=" "),r+=t);return r}var _a=["other","few","many","two","one","zero"],Tn=({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=_a.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},le,D,yt,kn,Ae=0,Dr=[],Xe=[],On=exports.l.__b,Rn=exports.l.__r,Dn=exports.l.diffed,In=exports.l.__c,Nn=exports.l.unmount;function we(e,t){exports.l.__h&&exports.l.__h(D,e,Ae||t),Ae=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Xe}),n.__[e]}function M(e){return Ae=1,qt(Nr,e)}function qt(e,t,n){var r=we(le++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Nr(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=D,!D.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))};D.u=!0;var a=D.shouldComponentUpdate,s=D.componentWillUpdate;D.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)},D.shouldComponentUpdate=o}return r.__N||r.__}function K(e,t){var n=we(le++,3);!exports.l.__s&&Yt(n.__H,t)&&(n.__=e,n.i=t,D.__H.__h.push(n))}function Ce(e,t){var n=we(le++,4);!exports.l.__s&&Yt(n.__H,t)&&(n.__=e,n.i=t,D.__h.push(n))}function z(e){return Ae=5,ue(function(){return{current:e}},[])}function Ir(e,t,n){Ae=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 Yt(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ie(e,t){return Ae=8,ue(function(){return e},t)}function lt(e){var t=D.context[e.__c],n=we(le++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(D)),t.props.value):e.__}function Kt(e,t){exports.l.useDebugValue&&exports.l.useDebugValue(t?t(e):e)}function pa(e){var t=we(le++,10),n=M();return t.__=e,D.componentDidCatch||(D.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Zt(){var e=we(le++,11);if(!e.__){for(var t=D.__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 ha(){for(var e;e=Dr.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){D=null,On&&On(e)},exports.l.__r=function(e){Rn&&Rn(e),le=0;var t=(D=e.__c).__H;t&&(yt===D?(t.__h=[],D.__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)),yt=D},exports.l.diffed=function(e){Dn&&Dn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Dr.push(t)!==1&&kn===exports.l.requestAnimationFrame||((kn=exports.l.requestAnimationFrame)||ya)(ha)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Xe&&(n.__=n.__V),n.i=void 0,n.__V=Xe})),yt=D=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)}}),In&&In(e,t)},exports.l.unmount=function(e){Nn&&Nn(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 An=typeof requestAnimationFrame=="function";function ya(e){var t,n=function(){clearTimeout(r),An&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);An&&(t=requestAnimationFrame(n))}function et(e){var t=D,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),D=t}function It(e){var t=D;e.__c=e.__(),D=t}function Yt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Nr(e,t){return typeof t=="function"?t(e):t}var Ln=it(null),ga=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=ue(()=>(console.log("instantiating"),Tn({locale:r,terms:e,overrides:t})),[t,r]);return u(Ln.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=lt(Ln);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Tn({terms:e,overrides:t,locale:n})});const{TranslationProvider:va,useTranslation:be,createTFunction:ma}=ga({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",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.",feedback:"How was your search experience?"});function Ar(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=Ar(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ar(e))&&(r&&(r+=" "),r+=t);return r}const Pn=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ba=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"](gt(a)):typeof(e==null||(c=e.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(gt(a)):gt(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=Pn(y)||Pn(_);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:nl,cva:Z,cx:rl}=ba(),Le=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"}}),Ea=({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")})]})},Nt=({error:e,resetError:t,class:n,...r})=>{const{t:o}=be();return u("div",{class:Rr("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:Le({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class Sa 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 wa={briefcase:u(A,{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(A,{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(A,{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(A,{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(A,{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(A,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(A,{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(A,{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(A,{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(A,{children:u(A,{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(A,{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(A,{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(A,{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"})},Ca=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(wa).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}`})}),xa=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},Ta=(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])};function Lr(e,t){for(var n in t)e[n]=t[n];return e}function At(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 vt(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function ot(e){this.props=e}function Pr(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:At(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 At(this.props,e)||At(this.state,t)};var Mn=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Mn&&Mn(e)};var ka=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Jt(e){function t(n){var r=Lr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ka,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var jn=function(e,t){return e==null?null:se(se(e).map(t))},Mr={map:jn,forEach:jn,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},Oa=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)}Oa(e,t,n,r)};var Vn=exports.l.unmount;function jr(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=Lr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return jr(r,t,n)})),e}function Vr(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Vr(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 $r(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ur(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),Vn&&Vn(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=$r(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]=Vr(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]=jr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&q(A,null,e.fallback);return o&&(o.__h=null),[q(A,null,t.__a?null:e.children),o]};var $n=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 Ra(e){return this.getChildContext=function(){return e.context},e.children}function Da(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ne(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)}}),Ne(q(Ra,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Hr(e,t){var n=q(Da,{__v:e,i:t});return n.containerInfo=t,n}(Re.prototype=new G).__a=function(e){var t=this,n=$r(t.__v),r=t.o.get(e);return r[0]++,function(o){var a=function(){t.props.revealOrder?(r.push(o),$n(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){$n(e,n,t)})};var Fr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ia=/^(?: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]/,Na=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Aa=/[A-Z0-9]/g,La=typeof document<"u",Pa=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Wr(e,t,n){return t.__k==null&&(t.textContent=""),Ne(e,t),typeof n=="function"&&n(),e?e.__c:null}function zr(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 Un=exports.l.event;function Ma(){}function ja(){return this.cancelBubble}function Va(){return this.defaultPrevented}exports.l.event=function(e){return Un&&(e=Un(e)),e.persist=Ma,e.isPropagationStopped=ja,e.isDefaultPrevented=Va,e.nativeEvent=e};var Qt,$a={enumerable:!1,configurable:!0,get:function(){return this.class}},Hn=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||La&&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"||Pa(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Na.test(a)?a=l:r.indexOf("-")===-1&&Ia.test(a)?a=a.replace(Aa,"-$&").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",$a)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Fr,Hn&&Hn(e)};var Fn=exports.l.__r;exports.l.__r=function(e){Fn&&Fn(e),Qt=e.__c};var Wn=exports.l.diffed;exports.l.diffed=function(e){Wn&&Wn(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),Qt=null};var Br={ReactCurrentDispatcher:{current:{readContext:function(e){return Qt.__n[e.__c].props.value}}}},Ua="17.0.2";function Gr(e){return q.bind(null,e)}function Xt(e){return!!e&&e.$$typeof===Fr}function qr(e){return Xt(e)?jo.apply(null,arguments):e}function Kr(e){return!!e.__k&&(Ne(null,e),!0)}function Zr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Yr=function(e,t){return e(t)},Jr=function(e,t){return e(t)},Qr=A;function en(e){e()}function Xr(e){return e}function eo(){return[!1,en]}var to=Ce;function no(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,vt(o.__,t())||a({h:o})},[e,n,t]),K(function(){return vt(o.__,o.v())||a({h:o}),e(function(){vt(o.__,o.v())||a({h:o})})},[e]),n}var ct={useState:M,useId:Zt,useReducer:qt,useEffect:K,useLayoutEffect:Ce,useInsertionEffect:to,useTransition:eo,useDeferredValue:Xr,useSyncExternalStore:no,startTransition:en,useRef:z,useImperativeHandle:Ir,useMemo:ue,useCallback:Ie,useContext:lt,useDebugValue:Kt,version:"17.0.2",Children:Mr,render:Wr,hydrate:zr,unmountComponentAtNode:Kr,createPortal:Hr,createElement:q,createContext:it,createFactory:Gr,cloneElement:qr,createRef:dr,Fragment:A,isValidElement:Xt,findDOMNode:Zr,Component:G,PureComponent:ot,memo:Pr,forwardRef:Jt,flushSync:Jr,unstable_batchedUpdates:Yr,StrictMode:Qr,Suspense:He,SuspenseList:Re,lazy:Ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Br};const Ha=Object.freeze(Object.defineProperty({__proto__:null,Children:Mr,Component:G,Fragment:A,PureComponent:ot,StrictMode:Qr,Suspense:He,SuspenseList:Re,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Br,cloneElement:qr,createContext:it,createElement:q,createFactory:Gr,createPortal:Hr,createRef:dr,default:ct,findDOMNode:Zr,flushSync:Jr,forwardRef:Jt,hydrate:zr,isValidElement:Xt,lazy:Ur,memo:Pr,render:Wr,startTransition:en,unmountComponentAtNode:Kr,unstable_batchedUpdates:Yr,useCallback:Ie,useContext:lt,useDebugValue:Kt,useDeferredValue:Xr,useEffect:K,useErrorBoundary:pa,useId:Zt,useImperativeHandle:Ir,useInsertionEffect:to,useLayoutEffect:Ce,useMemo:ue,useReducer:qt,useRef:z,useState:M,useSyncExternalStore:no,useTransition:eo,version:Ua},Symbol.toStringTag,{value:"Module"}));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ro(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fa(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}var Lt={exports:{}},mt={};const oo=Fa(Ha);/**
|
|
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 zn;function Wa(){if(zn)return mt;zn=1;var e=oo;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 mt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,mt}var bt={};/**
|
|
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 Bn;function za(){return Bn||(Bn=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=oo,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;bt.useSyncExternalStore=E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),bt}process.env.NODE_ENV==="production"?Lt.exports=Wa():Lt.exports=za();var Ba=Lt.exports;const he=()=>{},F=he(),Et=Object,O=e=>e===F,ee=e=>typeof e=="function",ge=(e,t)=>({...e,...t}),Ga=e=>ee(e.then),Je=new WeakMap;let qa=0;const Fe=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(Et(e)===e&&!r&&n!=RegExp){if(o=Je.get(e),o)return o;if(o=++qa+"~",Je.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=Fe(e[a])+",";Je.set(e,o)}if(n==Et){o="#";const s=Et.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,St={},Qe={},tn="undefined",ut=typeof window!=tn,Pt=typeof document!=tn,Ka=()=>ut&&typeof window.requestAnimationFrame!=tn,ao=(e,t)=>{const n=oe.get(e);return[()=>!O(t)&&e.get(t)||St,r=>{if(!O(t)){const o=e.get(t);t in Qe||(Qe[t]=o),n[5](t,ge(o,r),o||St)}},n[6],()=>!O(t)&&t in Qe?Qe[t]:!O(t)&&e.get(t)||St]};let Mt=!0;const Za=()=>Mt,[jt,Vt]=ut&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[he,he],Ya=()=>{const e=Pt&&document.visibilityState;return O(e)||e!=="hidden"},Ja=e=>(Pt&&document.addEventListener("visibilitychange",e),jt("focus",e),()=>{Pt&&document.removeEventListener("visibilitychange",e),Vt("focus",e)}),Qa=e=>{const t=()=>{Mt=!0,e()},n=()=>{Mt=!1};return jt("online",t),jt("offline",n),()=>{Vt("online",t),Vt("offline",n)}},Xa={isOnline:Za,isVisible:Ya},ei={initFocus:Ja,initReconnect:Qa},Gn=!ct.useId,We=!ut||"Deno"in window,ti=e=>Ka()?window.requestAnimationFrame(e):setTimeout(e,1),wt=We?K:Ce,Ct=typeof navigator<"u"&&navigator.connection,qn=!We&&Ct&&(["slow-2g","2g"].includes(Ct.effectiveType)||Ct.saveData),nn=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 ni=0;const $t=()=>++ni,io=0,so=1,lo=2,ri=3;var je={__proto__:null,ERROR_REVALIDATE_EVENT:ri,FOCUS_EVENT:io,MUTATE_EVENT:lo,RECONNECT_EVENT:so};async function co(...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]=nn(p);if(!y)return;const[_,h]=ao(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](lo).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&&Ga(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 Kn=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},oi=(e,t)=>{if(!oe.has(e)){const n=ge(ei,t),r={},o=co.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,Kn.bind(F,r,io))),i=n.initReconnect(setTimeout.bind(F,Kn.bind(F,r,so)));a=()=>{f&&f(),i&&i(),oe.delete(e)}}};return d(),[e,o,d,a]}return[e,oe.get(e)[4]]},ai=(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)},ii=(e,t)=>Fe(e)==Fe(t),[uo,si]=oi(new Map),li=ge({onLoadingSlow:he,onSuccess:he,onError:he,onErrorRetry:ai,onDiscarded:he,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:qn?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:qn?5e3:3e3,compare:ii,isPaused:()=>!1,cache:uo,mutate:si,fallback:{}},Xa),ci=(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},ui=it({}),di="$inf$",fo=ut&&window.__SWR_DEVTOOLS_USE__,fi=fo?window.__SWR_DEVTOOLS_USE__:[],_i=()=>{fo&&(window.__SWR_DEVTOOLS_REACT__=ct)},pi=e=>ee(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],hi=()=>ge(li,lt(ui)),yi=e=>(t,n,r)=>e(t,n&&((...a)=>{const[s]=nn(t),[,,,l]=oe.get(uo);if(s.startsWith(di))return n(...a);const c=l[s];return O(c)?n(...a):(delete l[s],c)}),r),gi=fi.concat(yi),vi=e=>function(...n){const r=hi(),[o,a,s]=pi(n),l=ci(r,s);let c=e;const{use:d}=l,f=(d||[]).concat(gi);for(let i=f.length;i--;)c=f[i](c);return c(o,a||l.fetcher||null,l)},mi=(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())}};_i();const Zn=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)}),xt={dedupe:!0},bi=(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]=nn(e),S=z(!1),v=z(!1),b=z(g),m=z(t),T=z(n),C=()=>T.current,x=()=>C().isVisible()&&C().isOnline(),[k,$,Y,U]=ao(r,g),de=z({}).current,qe=O(s)?n.fallback[g]:s,sn=(I,N)=>{for(const V in de){const L=V;if(L==="data"){if(!o(I[L],N[L])&&(!O(I[L])||!o(Ze,N[L])))return!1}else if(N[L]!==I[L])return!1}return!0},ln=ue(()=>{const I=(()=>!g||!t?!1:O(l)?C().isPaused()||a?!1:O(c)?!0:c:l)(),N=H=>{const te=ge(H);return delete te._k,I?{isValidating:!0,isLoading:!0,...te}:te},V=k(),L=U(),J=N(V),Oe=V===L?J:N(L);let j=J;return[()=>{const H=N(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=Ba.useSyncExternalStore(Ie(I=>Y(g,(N,V)=>{sn(V,N)||I()}),[r,g]),ln[0],ln[1]),cn=!S.current,So=y[g]&&y[g].length>0,Te=xe.data,ke=O(Te)?qe:Te,Ke=xe.error,un=z(ke),Ze=p?O(Te)?un.current:Te:ke,dn=(()=>So&&!O(Ke)?!1:cn&&!O(l)?l:C().isPaused()?!1:a?O(ke)?!1:c:O(ke)||c)(),fn=!!(g&&t&&cn&&dn),wo=O(xe.isValidating)?fn:xe.isValidating,Co=O(xe.isLoading)?fn:xe.isLoading,Me=Ie(async I=>{const N=m.current;if(!g||!N||v.current||C().isPaused())return!1;let V,L,J=!0;const Oe=I||{},j=!h[g]||!Oe.dedupe,H=()=>Gn?!v.current&&g===b.current&&S.current:g===b.current,te={isValidating:!1,isLoading:!1},pn=()=>{$(te)},hn=()=>{const B=h[g];B&&B[1]===L&&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]=[N(E),$t()]),[V,L]=h[g],V=await V,j&&setTimeout(hn,n.dedupingInterval),!h[g]||h[g][1]!==L)return j&&H()&&C().onDiscarded(g),!1;te.error=F;const B=_[g];if(!O(B)&&(L<=B[0]||L<=B[1]||B[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(B){hn();const ne=C(),{shouldRetryOnError:dt}=ne;ne.isPaused()||(te.error=B,j&&H()&&(ne.onError(B,g,ne),(dt===!0||ee(dt)&&dt(B))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||x())&&ne.onErrorRetry(B,g,ne,xo=>{const ft=y[g];ft&&ft[0]&&ft[0](je.ERROR_REVALIDATE_EVENT,xo)},{retryCount:(Oe.retryCount||0)+1,dedupe:!0})))}return J=!1,pn(),!0},[g,r]),_n=Ie((...I)=>co(r,b.current,...I),[]);if(wt(()=>{m.current=t,T.current=n,O(Te)||(un.current=Te)}),wt(()=>{if(!g)return;const I=Me.bind(F,xt);let N=0;const L=mi(g,y,(J,Oe={})=>{if(J==je.FOCUS_EVENT){const j=Date.now();C().revalidateOnFocus&&j>N&&x()&&(N=j+C().focusThrottleInterval,I())}else if(J==je.RECONNECT_EVENT)C().revalidateOnReconnect&&x()&&I();else{if(J==je.MUTATE_EVENT)return Me();if(J==je.ERROR_REVALIDATE_EVENT)return Me(Oe)}});return v.current=!1,b.current=g,S.current=!0,$({_k:E}),dn&&(O(ke)||We?I():ti(I)),()=>{v.current=!0,L()}},[g]),wt(()=>{let I;function N(){const L=ee(d)?d(k().data):d;L&&I!==-1&&(I=setTimeout(V,L))}function V(){!k().error&&(f||C().isVisible())&&(i||C().isOnline())?Me(xt).then(N):N()}return N(),()=>{I&&(clearTimeout(I),I=-1)}},[d,f,i,g]),Kt(Ze),a&&O(ke)&&g){if(!Gn&&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 N=_n(I);Zn(N)}if(O(Ke)){const N=Me(xt);O(Ze)||(N.status="fulfilled",N.value=!0),Zn(N)}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,wo},get isLoading(){return de.isLoading=!0,Co}}},_o=vi(bi),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}}),Ei=({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)}},Si=44,wi=6,Ci=12,xi=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}}),po=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"}}),ho=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"}}}),yo=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}}),Ti=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"}}}),ki=({children:e,colorScheme:t})=>u("span",{class:Ti({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),Oi=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},Yn=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},Ri=(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=Yn(r.value),s=Yn(o.value);return a-s});break}return t.order==="descending"&&n.reverse(),n},Di=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},Ii=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},Ni=({value:e,property:t,onSkip:n,useQuery:r,onValueChange:o,unfilteredQuery:a,onRender:s})=>{const{t:l}=be(),c=Gt(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=go(e),i=f.length>0,[p,y]=M(),_=xa("(pointer: coarse)");return K(()=>{s()}),c.queryState==="error"?u(Nt,{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(Nt,{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:Ii(d,b),disabled:Di(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>Ci||h.some(b=>b.label.length>24))&&!_;return u("div",{class:"pointer-fine:px-4",children:u("ul",{style:{"--maxHeight":`${Si*(wi+.5)+2*xi}px`},class:po({type:v?"long":"short"}),children:Ri(g,t.sortSuggestions).map(b=>{const m=f.includes(b.value);return u("li",{class:ho({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=Oi(f,b.value);o({select:"many",value:T});break}case"one":o({select:"one",value:b.value});break;default:$e(e)}},class:v?yo({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(ki,{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:Le({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:Le({variant:i?"accent":"neutral",icon:"right",class:"ml-auto"}),onClick:n,children:[l(i?"done":"skip")," ",u(ce,{name:"chevron-right"})]},i?"done":"skip")})]})]})},Jn={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"},Ai=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"}}}),Li=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"}}}),Pi=Z({base:"flex-none text-copy-neutral-icon pointer-fine:group-hover:text-copy-neutral duration-snappy ease-expo-out"}),Mi=e=>{const t=z(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}},go=e=>typeof e.value=="string"?[e.value]:e.value??[],ji=({active:e,value:t,onActiveChange:n,property:r,onSkip:o,onValueChange:a,unfilteredQuery:s,useQuery:l})=>{const c=Oo(r.key,Jn)?Jn[r.key]:void 0,d=r.icon??c??"filter",f=go(t),{height:i,ref:p,updateHeight:y}=Mi([e]),_=f.length>0;return u("section",{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:Ai({hasValue:_}),onTouchStart:Vi,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:Li({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(Ni,{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(Ei,{property:r,query:s,selectedValues:f})}),u(ce,{"aria-hidden":!0,class:Pi(),name:"chevron-right"})]})]})};function Vi(){}function $i(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rn=$i,Ui=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,Hi=Ui,Fi=Hi,Wi=typeof self=="object"&&self&&self.Object===Object&&self,zi=Fi||Wi||Function("return this")(),on=zi,Bi=on,Gi=function(){return Bi.Date.now()},qi=Gi,Ki=/\s/;function Zi(e){for(var t=e.length;t--&&Ki.test(e.charAt(t)););return t}var Yi=Zi,Ji=Yi,Qi=/^\s+/;function Xi(e){return e&&e.slice(0,Ji(e)+1).replace(Qi,"")}var es=Xi,ts=on,ns=ts.Symbol,an=ns,Qn=an,vo=Object.prototype,rs=vo.hasOwnProperty,os=vo.toString,Ve=Qn?Qn.toStringTag:void 0;function as(e){var t=rs.call(e,Ve),n=e[Ve];try{e[Ve]=void 0;var r=!0}catch{}var o=os.call(e);return r&&(t?e[Ve]=n:delete e[Ve]),o}var is=as,ss=Object.prototype,ls=ss.toString;function cs(e){return ls.call(e)}var us=cs,Xn=an,ds=is,fs=us,_s="[object Null]",ps="[object Undefined]",er=Xn?Xn.toStringTag:void 0;function hs(e){return e==null?e===void 0?ps:_s:er&&er in Object(e)?ds(e):fs(e)}var mo=hs;function ys(e){return e!=null&&typeof e=="object"}var gs=ys,vs=mo,ms=gs,bs="[object Symbol]";function Es(e){return typeof e=="symbol"||ms(e)&&vs(e)==bs}var bo=Es,Ss=es,tr=rn,ws=bo,nr=0/0,Cs=/^[-+]0x[0-9a-f]+$/i,xs=/^0b[01]+$/i,Ts=/^0o[0-7]+$/i,ks=parseInt;function Os(e){if(typeof e=="number")return e;if(ws(e))return nr;if(tr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ss(e);var n=xs.test(e);return n||Ts.test(e)?ks(e.slice(2),n?2:8):Cs.test(e)?nr:+e}var Rs=Os,Ds=rn,Tt=qi,rr=Rs,Is="Expected a function",Ns=Math.max,As=Math.min;function Ls(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(Is);t=rr(t)||0,Ds(n)&&(f=!!n.leading,i="maxWait"in n,a=i?Ns(rr(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?As(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=Tt();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(Tt())}function b(){var m=Tt(),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 Ps=Ls;const Ms=ro(Ps),js=(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},Vs=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(Eo)}},$s=(e,t=1e3)=>{const[n,r]=M(e),o=ue(()=>Ms(a=>r(a),t),[t]);return K(()=>{o(e)},[e,o]),n},Us=Jt(({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=z();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:po({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:ho({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>w(v.id),class:yo({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]})}),Hs=(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})}),Fs={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},or=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,Ws=({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(or){if(o("loading"),a)return c(a);Hs({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=Fs[d.code];if(!f)return;const i=l(f);t(i)})}},"data-state":r,class:Le({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!or||r==="error",children:u(ce,{name:"target-location"})})},zs="https://api.mapbox.com/search/geocode/v6/forward",Bs="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Gs=e=>atob(e).split("").reverse().join(""),qs=ie({features:zt(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))}),Ks=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Zs=async e=>{if(!e)return[];const t=new URL(zs);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",Gs(Bs));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=Bt(qs,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return Ks(o,a=>a.name_preferred+a.place_formatted)},Ys=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:a}=be(),[s,l]=M(""),[c,d]=M(),f=$s(s,500),[i,p]=M(new AbortController),y=_o(f,Zs,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:_,queryState:h,error:w}=Gt(y),[g,E]=M("view"),S=z(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(Us,{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 flex items-center",children:!s&&!n?u(Ws,{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:Le({variant:"neutral",size:"lg",icon:"only"}),children:u(ce,{name:"x"})})})]})},Js=[.25,.5,1,3,5,10,15,20,30,40],Eo=20,Ut=e=>e*1609.34,Qs=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),Xs=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})),el=({value:e,onValueChange:t,logger:n})=>{const{t:r}=be(),o=Zt(),a=(e==null?void 0:e.type)==="provided"?e.radius:Ut(Eo),[s,l]=M();return u("div",{class:"flex flex-col gap-2",children:[u("form",{onChange:c=>{const d=new FormData(c.currentTarget),f=Bt(Xs,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(A,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u(Ys,{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:Js.map(c=>u("option",{value:Ut(c),class:"truncate",children:Qs.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]})};exports.D=Ne;exports.E=Wt;exports.ErrorBoundary=Sa;exports.ErrorView=Nt;exports.F=ue;exports.Filter=ji;exports.GeoSearch=el;exports.Icon=ce;exports.IconSpritesheet=Ca;exports.JOB_SEARCH_WIDGET_ID=ta;exports.PAGE_SIZE=Tr;exports.SWR_SETTINGS=da;exports.T=Ie;exports.TranslationProvider=va;exports.UnstyledErrorView=Ea;exports._=z;exports._Symbol=an;exports._baseGetTag=mo;exports._root=on;exports.btnClass=Le;exports.clsx=Rr;exports.createTFunction=ma;exports.cva=Z;exports.exhaustive=$e;exports.getAvailableFilters=ca;exports.getDefaultExportFromCjs=ro;exports.getGeolocationFromSearchParams=Vs;exports.getJobSearchResults=ua;exports.getQueryState=Gt;exports.getStatefulPropertiesFromSearchParams=js;exports.h=M;exports.inputClass=Ge;exports.invariant=ar;exports.isObject_1=rn;exports.isSymbol_1=bo;exports.k=A;exports.o=u;exports.p=K;exports.tagClass=Pe;exports.useSWR=_o;exports.useTranslation=be;exports.useViewTracking=Ta;exports.y=q;
|
package/dist/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-8c59d05c.cjs");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;
|
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { M as
|
|
1
|
+
import { M as e, L as o } from "./utils-054b6e73.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
o as getSalaryAsText,
|
|
6
|
-
s as getStatefulPropertiesFromSearchParams
|
|
3
|
+
e as getGeolocationFromSearchParams,
|
|
4
|
+
o as getStatefulPropertiesFromSearchParams
|
|
7
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-job-search",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-job-search.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"vite": "^4.5.3",
|
|
56
56
|
"vite-plugin-dts": "^3.9.1",
|
|
57
57
|
"vite-tsconfig-paths": "^4.3.2",
|
|
58
|
-
"@inploi/core": "1.15.
|
|
58
|
+
"@inploi/core": "1.15.3",
|
|
59
59
|
"@inploi/design-tokens": "0.2.1",
|
|
60
|
-
"@inploi/plugin-job-alerts": "0.3.2",
|
|
61
60
|
"@inploi/sdk": "1.14.11",
|
|
61
|
+
"@inploi/plugin-job-alerts": "0.3.2",
|
|
62
62
|
"eslint-config-custom": "0.1.0",
|
|
63
63
|
"@inploi/plugin-feedback": "0.4.2"
|
|
64
64
|
},
|
|
@@ -1,17 +0,0 @@
|
|
|
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 Io(e,t){return e in t}var ze;exports.l=void 0;var ir,Ee,gn,sr,kt,lr,Ie={},cr=[],No=/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?ze.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 A(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(A,{children:_},null,null,null):_.__b>0?Ue(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)!=null&&(_.__=n,_.__b=n.__b+1,(E=Do(_,m,g=i+b,C))===-1?y=Ie:(y=m[E]||Ie,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===Ie||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 Do(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 Ao(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"||No.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===A&&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=Lo(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 Lo(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&&ze.call(e.childNodes),f=(p=n.props||Ie).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(Ao(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 De(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(A,null,[e]),o||Ie,Ie,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ze.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r,s),yr(a,e,s)}function Wt(e,t){De(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?ze.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}ze=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=A,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",It={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},Vo="RFC1738",jo=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===Vo&&(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(jo(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:It[Rt],indices:!1,serializeDate(e){return Wo.call(e)},skipNulls:!1,strictNullHandling:!1};function zo(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(zo(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 Bo(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(It,e.format))throw new TypeError("Unknown format option provided.");n=e.format}const r=It[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=Bo(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 Be(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?Be(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 Be([{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 zt(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?Be(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?Be(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?Be(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 Bt(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",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 ta(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 na(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gt=na,ra=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,oa=ra,aa=oa,ia=typeof self=="object"&&self&&self.Object===Object&&self,sa=aa||ia||Function("return this")(),qt=sa,la=qt,ca=function(){return la.Date.now()},ua=ca,da=/\s/;function fa(e){for(var t=e.length;t--&&da.test(e.charAt(t)););return t}var _a=fa,pa=_a,ha=/^\s+/;function ya(e){return e&&e.slice(0,pa(e)+1).replace(ha,"")}var ga=ya,va=qt,ma=va.Symbol,Kt=ma,xn=Kt,Or=Object.prototype,ba=Or.hasOwnProperty,Ea=Or.toString,Ve=xn?xn.toStringTag:void 0;function Sa(e){var t=ba.call(e,Ve),n=e[Ve];try{e[Ve]=void 0;var r=!0}catch{}var o=Ea.call(e);return r&&(t?e[Ve]=n:delete e[Ve]),o}var wa=Sa,Ca=Object.prototype,xa=Ca.toString;function Ta(e){return xa.call(e)}var ka=Ta,Tn=Kt,Oa=wa,Ra=ka,Ia="[object Null]",Na="[object Undefined]",kn=Tn?Tn.toStringTag:void 0;function Da(e){return e==null?e===void 0?Na:Ia:kn&&kn in Object(e)?Oa(e):Ra(e)}var Rr=Da;function Aa(e){return e!=null&&typeof e=="object"}var La=Aa,Pa=Rr,Ma=La,Va="[object Symbol]";function ja(e){return typeof e=="symbol"||Ma(e)&&Pa(e)==Va}var Ir=ja,$a=ga,On=Gt,Ua=Ir,Rn=0/0,Ha=/^[-+]0x[0-9a-f]+$/i,Fa=/^0b[01]+$/i,Wa=/^0o[0-7]+$/i,za=parseInt;function Ba(e){if(typeof e=="number")return e;if(Ua(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=$a(e);var n=Fa.test(e);return n||Wa.test(e)?za(e.slice(2),n?2:8):Ha.test(e)?Rn:+e}var Ga=Ba,qa=Gt,yt=ua,In=Ga,Ka="Expected a function",Za=Math.max,Ya=Math.min;function Ja(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(Ka);t=In(t)||0,qa(n)&&(f=!!n.leading,i="maxWait"in n,a=i?Za(In(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?Ya(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 Qa=Ja;const Xa=kr(Qa);var le,I,gt,Nn,Ae=0,Nr=[],Xe=[],Dn=exports.l.__b,An=exports.l.__r,Ln=exports.l.diffed,Pn=exports.l.__c,Mn=exports.l.unmount;function we(e,t){exports.l.__h&&exports.l.__h(I,e,Ae||t),Ae=0;var n=I.__H||(I.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Xe}),n.__[e]}function M(e){return Ae=1,Zt(Ar,e)}function Zt(e,t,n){var r=we(le++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ar(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=I,!I.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))};I.u=!0;var a=I.shouldComponentUpdate,s=I.componentWillUpdate;I.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)},I.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,I.__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,I.__h.push(n))}function z(e){return Ae=5,ue(function(){return{current:e}},[])}function Dr(e,t,n){Ae=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 Ne(e,t){return Ae=8,ue(function(){return e},t)}function lt(e){var t=I.context[e.__c],n=we(le++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(I)),t.props.value):e.__}function Yt(e,t){exports.l.useDebugValue&&exports.l.useDebugValue(t?t(e):e)}function ei(e){var t=we(le++,10),n=M();return t.__=e,I.componentDidCatch||(I.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=I.__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 ti(){for(var e;e=Nr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(et),e.__H.__h.forEach(Nt),e.__H.__h=[]}catch(t){e.__H.__h=[],exports.l.__e(t,e.__v)}}exports.l.__b=function(e){I=null,Dn&&Dn(e)},exports.l.__r=function(e){An&&An(e),le=0;var t=(I=e.__c).__H;t&&(gt===I?(t.__h=[],I.__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(Nt),t.__h=[],le=0)),gt=I},exports.l.diffed=function(e){Ln&&Ln(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Nr.push(t)!==1&&Nn===exports.l.requestAnimationFrame||((Nn=exports.l.requestAnimationFrame)||ni)(ti)),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=I=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.__||Nt(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 Vn=typeof requestAnimationFrame=="function";function ni(e){var t,n=function(){clearTimeout(r),Vn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Vn&&(t=requestAnimationFrame(n))}function et(e){var t=I,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),I=t}function Nt(e){var t=I;e.__c=e.__(),I=t}function Qt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ar(e,t){return typeof t=="function"?t(e):t}var ri=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:--ri,__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}var oi=["other","few","many","two","one","zero"],jn=({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=oi.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),ai=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=ue(()=>(console.log("instantiating"),jn({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})=>jn({terms:e,overrides:t,locale:n})});const{TranslationProvider:ii,useTranslation:be,createTFunction:si}=ai({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",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.",feedback:"How was your search experience?"});function Lr(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=Lr(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=Lr(e))&&(r&&(r+=" "),r+=t);return r}const Un=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,li=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:nl,cva:Z,cx:rl}=li(),ci=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},ui=(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])},Le=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 di=({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")})]})},Dt=({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:Le({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class fi 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}}),_i=({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)}},pi={briefcase:u(A,{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(A,{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(A,{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(A,{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(A,{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(A,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(A,{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(A,{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(A,{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(A,{children:u(A,{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(A,{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(A,{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(A,{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"})},hi=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(pi).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"},yi=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"}}}),gi=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"}}}),vi=Z({base:"flex-none text-copy-neutral-icon pointer-fine:group-hover:text-copy-neutral duration-snappy ease-expo-out"}),mi=e=>{const t=z(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}},Vr=e=>typeof e.value=="string"?[e.value]:e.value??[],bi=({active:e,value:t,onActiveChange:n,property:r,onSkip:o,onValueChange:a,unfilteredQuery:s,useQuery:l})=>{const c=Io(r.key,Hn)?Hn[r.key]:void 0,d=r.icon??c??"filter",f=Vr(t),{height:i,ref:p,updateHeight:y}=mi([e]),_=f.length>0;return u("section",{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:yi({hasValue:_}),onTouchStart:Ei,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:gi({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(Di,{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(_i,{property:r,query:s,selectedValues:f})}),u(ce,{"aria-hidden":!0,class:vi(),name:"chevron-right"})]})]})};function Ei(){}const Si=44,wi=6,Ci=12,xi=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}}),jr=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}}),Ti=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"}}}),ki=({children:e,colorScheme:t})=>u("span",{class:Ti({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),Oi=(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},Ri=(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},Ni=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},Di=({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=Vr(e),i=f.length>0,[p,y]=M(),_=ci("(pointer: coarse)");return K(()=>{s()}),c.queryState==="error"?u(Dt,{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(Dt,{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:Ni(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>Ci||h.some(b=>b.label.length>24))&&!_;return u("div",{class:"pointer-fine:px-4",children:u("ul",{style:{"--maxHeight":`${Si*(wi+.5)+2*xi}px`},class:jr({type:v?"long":"short"}),children:Ri(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=Oi(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(ki,{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:Le({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:Le({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 At(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:At(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 At(this.props,e)||At(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 Ai=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=Ai,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zn=function(e,t){return e==null?null:se(se(e).map(t))},Wr={map:zn,forEach:zn,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},Li=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)}Li(e,t,n,r)};var Bn=exports.l.unmount;function zr(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 zr(r,t,n)})),e}function Br(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Br(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),Bn&&Bn(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]=Br(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]=zr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&q(A,null,e.fallback);return o&&(o.__h=null),[q(A,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 Pi(e){return this.getChildContext=function(){return e.context},e.children}function Mi(e){var t=this,n=e.i;t.componentWillUnmount=function(){De(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)}}),De(q(Pi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Kr(e,t){var n=q(Mi,{__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]/,ji=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$i=/[A-Z0-9]/g,Ui=typeof document<"u",Hi=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=""),De(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 Fi(){}function Wi(){return this.cancelBubble}function zi(){return this.defaultPrevented}exports.l.event=function(e){return qn&&(e=qn(e)),e.persist=Fi,e.isPropagationStopped=Wi,e.isDefaultPrevented=zi,e.nativeEvent=e};var en,Bi={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||Ui&&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"||Hi(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":ji.test(a)?a=l:r.indexOf("-")===-1&&Vi.test(a)?a=a.replace($i,"-$&").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",Bi)):(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}}}},Gi="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&&(De(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=A;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:z,useImperativeHandle:Dr,useMemo:ue,useCallback:Ne,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:A,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 qi=Object.freeze(Object.defineProperty({__proto__:null,Children:Wr,Component:G,Fragment:A,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:Ne,useContext:lt,useDebugValue:Yt,useDeferredValue:io,useEffect:K,useErrorBoundary:ei,useId:Jt,useImperativeHandle:Dr,useInsertionEffect:lo,useLayoutEffect:Ce,useMemo:ue,useReducer:Zt,useRef:z,useState:M,useSyncExternalStore:co,useTransition:so,version:Gi},Symbol.toStringTag,{value:"Module"}));var Lt={exports:{}},bt={};const uo=ta(qi);/**
|
|
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 Ki(){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 Zi(){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"?Lt.exports=Ki():Lt.exports=Zi();var Yi=Lt.exports;const he=()=>{},F=he(),St=Object,O=e=>e===F,ee=e=>typeof e=="function",ge=(e,t)=>({...e,...t}),Ji=e=>ee(e.then),Je=new WeakMap;let Qi=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=++Qi+"~",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,Xi=()=>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 es=()=>Mt,[Vt,jt]=ut&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[he,he],ts=()=>{const e=Pt&&document.visibilityState;return O(e)||e!=="hidden"},ns=e=>(Pt&&document.addEventListener("visibilitychange",e),Vt("focus",e),()=>{Pt&&document.removeEventListener("visibilitychange",e),jt("focus",e)}),rs=e=>{const t=()=>{Mt=!0,e()},n=()=>{Mt=!1};return Vt("online",t),Vt("offline",n),()=>{jt("online",t),jt("offline",n)}},os={isOnline:es,isVisible:ts},as={initFocus:ns,initReconnect:rs},Xn=!ct.useId,We=!ut||"Deno"in window,is=e=>Xi()?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 ss=0;const $t=()=>++ss,_o=0,po=1,ho=2,ls=3;var je={__proto__:null,ERROR_REVALIDATE_EVENT:ls,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&&Ji(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)},cs=(e,t)=>{if(!oe.has(e)){const n=ge(as,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]]},us=(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)},ds=(e,t)=>Fe(e)==Fe(t),[go,fs]=cs(new Map),_s=ge({onLoadingSlow:he,onSuccess:he,onError:he,onErrorRetry:us,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:ds,isPaused:()=>!1,cache:go,mutate:fs,fallback:{}},os),ps=(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},hs=it({}),ys="$inf$",vo=ut&&window.__SWR_DEVTOOLS_USE__,gs=vo?window.__SWR_DEVTOOLS_USE__:[],vs=()=>{vo&&(window.__SWR_DEVTOOLS_REACT__=ct)},ms=e=>ee(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],bs=()=>ge(_s,lt(hs)),Es=e=>(t,n,r)=>e(t,n&&((...a)=>{const[s]=on(t),[,,,l]=oe.get(go);if(s.startsWith(ys))return n(...a);const c=l[s];return O(c)?n(...a):(delete l[s],c)}),r),Ss=gs.concat(Es),ws=e=>function(...n){const r=bs(),[o,a,s]=ms(n),l=ps(r,s);let c=e;const{use:d}=l,f=(d||[]).concat(Ss);for(let i=f.length;i--;)c=f[i](c);return c(o,a||l.fetcher||null,l)},Cs=(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())}};vs();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},xs=(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=z(!1),v=z(!1),b=z(g),m=z(t),T=z(n),C=()=>T.current,x=()=>C().isVisible()&&C().isOnline(),[k,$,Y,U]=fo(r,g),de=z({}).current,qe=O(s)?n.fallback[g]:s,sn=(N,D)=>{for(const j in de){const L=j;if(L==="data"){if(!o(N[L],D[L])&&(!O(N[L])||!o(Ze,D[L])))return!1}else if(D[L]!==N[L])return!1}return!0},ln=ue(()=>{const N=(()=>!g||!t?!1:O(l)?C().isPaused()||a?!1:O(c)?!0:c:l)(),D=H=>{const te=ge(H);return delete te._k,N?{isValidating:!0,isLoading:!0,...te}:te},j=k(),L=U(),J=D(j),Oe=j===L?J:D(L);let V=J;return[()=>{const H=D(k());return sn(H,V)?(V.data=H.data,V.isLoading=H.isLoading,V.isValidating=H.isValidating,V.error=H.error,V):(V=H,H)},()=>Oe]},[r,g]),xe=Yi.useSyncExternalStore(Ne(N=>Y(g,(D,j)=>{sn(j,D)||N()}),[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=z(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=Ne(async N=>{const D=m.current;if(!g||!D||v.current||C().isPaused())return!1;let j,L,J=!0;const Oe=N||{},V=!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 B=h[g];B&&B[1]===L&&delete h[g]},yn={isValidating:!0};O(k().data)&&(yn.isLoading=!0);try{if(V&&($(yn),n.loadingTimeout&&O(k().data)&&setTimeout(()=>{J&&H()&&C().onLoadingSlow(g,n)},n.loadingTimeout),h[g]=[D(E),$t()]),[j,L]=h[g],j=await j,V&&setTimeout(hn,n.dedupingInterval),!h[g]||h[g][1]!==L)return V&&H()&&C().onDiscarded(g),!1;te.error=F;const B=_[g];if(!O(B)&&(L<=B[0]||L<=B[1]||B[1]===0))return pn(),V&&H()&&C().onDiscarded(g),!1;const ne=k().data;te.data=o(ne,j)?ne:j,V&&H()&&C().onSuccess(j,g,n)}catch(B){hn();const ne=C(),{shouldRetryOnError:dt}=ne;ne.isPaused()||(te.error=B,V&&H()&&(ne.onError(B,g,ne),(dt===!0||ee(dt)&&dt(B))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||x())&&ne.onErrorRetry(B,g,ne,ko=>{const ft=y[g];ft&&ft[0]&&ft[0](je.ERROR_REVALIDATE_EVENT,ko)},{retryCount:(Oe.retryCount||0)+1,dedupe:!0})))}return J=!1,pn(),!0},[g,r]),_n=Ne((...N)=>yo(r,b.current,...N),[]);if(Ct(()=>{m.current=t,T.current=n,O(Te)||(un.current=Te)}),Ct(()=>{if(!g)return;const N=Me.bind(F,Tt);let D=0;const L=Cs(g,y,(J,Oe={})=>{if(J==je.FOCUS_EVENT){const V=Date.now();C().revalidateOnFocus&&V>D&&x()&&(D=V+C().focusThrottleInterval,N())}else if(J==je.RECONNECT_EVENT)C().revalidateOnReconnect&&x()&&N();else{if(J==je.MUTATE_EVENT)return Me();if(J==je.ERROR_REVALIDATE_EVENT)return Me(Oe)}});return v.current=!1,b.current=g,S.current=!0,$({_k:E}),dn&&(O(ke)||We?N():is(N)),()=>{v.current=!0,L()}},[g]),Ct(()=>{let N;function D(){const L=ee(d)?d(k().data):d;L&&N!==-1&&(N=setTimeout(j,L))}function j(){!k().error&&(f||C().isVisible())&&(i||C().isOnline())?Me(Tt).then(D):D()}return D(),()=>{N&&(clearTimeout(N),N=-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 N=w[g];if(!O(N)){const D=_n(N);nr(D)}if(O(Ke)){const D=Me(Tt);O(Ze)||(D.status="fulfilled",D.value=!0),nr(D)}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=ws(xs),Ts=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=z();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:jr({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]})}),ks=(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})}),Os={[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,Rs=({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);ks({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=Os[d.code];if(!f)return;const i=l(f);t(i)})}},"data-state":r,class:Le({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",Ns="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Ds=e=>atob(e).split("").reverse().join(""),As=ie({features:zt(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))}),Ls=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Ps=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",Ds(Ns));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=Bt(As,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return Ls(o,a=>a.name_preferred+a.place_formatted)},Ms=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:a}=be(),[s,l]=M(""),[c,d]=M(),f=Ws(s,500),[i,p]=M(new AbortController),y=mo(f,Ps,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:_,queryState:h,error:w}=an(y),[g,E]=M("view"),S=z(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(Ts,{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 flex items-center",children:!s&&!n?u(Rs,{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:Le({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,js=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),$s=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})),Us=({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=Bt($s,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(A,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u(Ms,{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:js.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]})},Hs=(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},Fs=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)}},Ws=(e,t=1e3)=>{const[n,r]=M(e),o=ue(()=>Xa(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")},Bs=Cr(zt(ie({label:Sn(R(),String),value:Sn(R(),String),jobs:fe()}))),Gs=R([Xo()]),qs=ie({total:fe(),current_page:fe(),per_page:fe(),last_page:fe()}),Ks=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()))}),Zs=e=>pe(Ks,t=>{const n=Bt(Gs,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}}),Ys=e=>pe(ie({data:zt(Zs(e)),pagination:qs}),t=>({pagination:t.pagination,results:t.data})),Js=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]=Js(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},Qs=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(Bs,s)}catch(o){throw o instanceof st?n.error(o.message,o.issues):n.error(o),o}},Xs=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(Ys(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")},el={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};exports.D=De;exports.E=Wt;exports.ErrorBoundary=fi;exports.ErrorView=Dt;exports.F=ue;exports.Filter=bi;exports.GeoSearch=Us;exports.Icon=ce;exports.IconSpritesheet=hi;exports.JOB_SEARCH_WIDGET_ID=ea;exports.PAGE_SIZE=Tr;exports.SWR_SETTINGS=el;exports.T=Ne;exports.TranslationProvider=ii;exports.UnstyledErrorView=di;exports._=z;exports._Symbol=Kt;exports._baseGetTag=Rr;exports._root=qt;exports.btnClass=Le;exports.clsx=Mr;exports.createTFunction=si;exports.cva=Z;exports.exhaustive=$e;exports.getAvailableFilters=Qs;exports.getDefaultExportFromCjs=kr;exports.getGeolocationFromSearchParams=Fs;exports.getJobSearchResults=Xs;exports.getQueryState=an;exports.getRelativeTimeDifference=So;exports.getSalaryAsText=Eo;exports.getStatefulPropertiesFromSearchParams=Hs;exports.h=M;exports.inputClass=Ge;exports.invariant=ar;exports.isObject_1=Gt;exports.isSymbol_1=Ir;exports.k=A;exports.o=u;exports.p=K;exports.tagClass=Pe;exports.useSWR=mo;exports.useTranslation=be;exports.useViewTracking=ui;exports.y=q;
|
package/dist/lib/currency.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { JobPayloadSchema } from '../job-search.schemas';
|
|
2
|
-
import { TFunction } from './i18n';
|
|
3
|
-
|
|
4
|
-
export declare const getSalaryAsText: (params: {
|
|
5
|
-
salary: Pick<JobPayloadSchema, 'pay' | 'pay_min' | 'pay_mask' | 'pay_max' | 'pay_type' | 'pay_currency' | 'pay_display'>;
|
|
6
|
-
config: {
|
|
7
|
-
locales: string | string[] | undefined;
|
|
8
|
-
};
|
|
9
|
-
t: TFunction;
|
|
10
|
-
}) => string | undefined;
|
package/dist/lib/datetime.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TFunction } from './i18n';
|
|
2
|
-
|
|
3
|
-
type Params = {
|
|
4
|
-
from?: Date;
|
|
5
|
-
to: string | number | Date;
|
|
6
|
-
formatter?: Intl.RelativeTimeFormat;
|
|
7
|
-
t: TFunction;
|
|
8
|
-
};
|
|
9
|
-
/** From a date, calculates the relative time difference from now */
|
|
10
|
-
export declare const getRelativeTimeDifference: ({ from, to, formatter, t }: Params) => string;
|
|
11
|
-
export {};
|