1import{d as ye,B as be,u as xe,s as Ce,j as Se,i as p,G as we,l as K,v as A,k as ke,O as R,P as qe,o as m,c as B,b as n,w as Q,g as e,D as g,m as d,a as r,e as Y,p as W,q as Z,H as $e,z as Re,t as P,T as Be,M as je}from"./entry.0884becb.js";import{_ as Ne,a as Me}from"./ResultList.vue.5d20f819.js";import{_ as Ae,s as Pe}from"./searchUtils.ae268af1.js";import{r as Te,_ as He,a as Le,b as Ee,c as De,d as Fe,e as Je}from"./location.8b917b32.js";import{_ as Ue}from"./NotFoundCustomJob.vue.2fd1c707.js";import{_ as Ie}from"./ForumRss.vue.73c2cafc.js";import{_ as ze}from"./AlertModal.vue.a2f895d5.js";import{u as Ve}from"./useDevice.2e79a8a7.js";import{A as Ge,S as Oe}from"./AdSearch.486b15fa.js";import{v as X}from"./v4.4a60fe23.js";import"./FormattedSuggestion.vue.f4ded725.js";import"./index.a2e01803.js";const Ke={class:"md:mx-0 mx-1"},Qe={class:"lg:flex my-5 mx-2"},Ye={key:0,class:"lg:mr-4 lg:mb-10 max-w-[725px] md:w-screen"},We={class:"text-center mb-5 p-2 border shadow-md border-gray-300 bg-gray-100"},Ze={class:"text-xl"},Xe={class:"hidden lg:block"},et=r("div",{id:"asfResultHeaderBlock",class:"lg:px-4"},null,-1),tt=r("div",{id:"asfResultFooterBlock",class:"lg:px-4"},null,-1),at={class:"flex items-center justify-center lg:justify-start"},st={class:"md:mx-2 lg:mx-0"},ot={key:1,class:"lg:mr-4 max-w-[725px] md:w-screen"},nt=r("div",{id:"asfResultHeaderBlock",class:"lg:px-4"},null,-1),ct={class:"flex flex-col"},lt={key:0,class:"mt-4"},xt=ye({__name:"critical-need-jobs",async setup(it){let v,C;be({script:[{src:"https://www.google.com/adsense/search/ads.js"},{innerHTML:"(function(g,o){g[o]=g[o]||function(){(g[o]['q']=g[o]['q']||[]).push(arguments)},g[o]['t']=1*new Date})(window,'_googCsa');"}]});const{isDesktop:j}=Ve(),ee=xe(),{getSiteConfig:c}=Ce(ee),y=Se(),a=p(""),s=p(""),S=p(""),T=p(!1),te=we(c.value.domain);y.query.query&&(a.value=y.query.query.toString()),y.query.location&&(S.value=y.query.location.toString(),s.value=([v,C]=K(()=>Te(S.value)),v=await v,C(),v));const ae=A(()=>s.value?`in ${s.value} `:""),se=A(()=>{let t=c.value.niche+" jobs",u="";return a.value&&(t=`all ${a.value} jobs`),s.value&&(u=` in ${s.value}`),`Job search for ${t}${u} at ${c.value.camelCaseDomain}`}),oe=A(()=>{let t=`${c.value.niche} jobs`;return a.value!==""&&(a.value.toLowerCase().includes(c.value.niche.toLowerCase())||(t=`${c.value.niche} ${a.value} jobs`)),s.value&&(t+=` in ${s.value}`),t}),ne=y.query.page,ce=ke(),h=p(parseInt(`${ne}`)),l=p({}),b=p(!1),N=R("alert-modal"),H=R("first-search");qe(()=>{if((N.value===null||N.value===void 0)&&H.value){N.value="true";const t=document.getElementById("alert-modal");t&&H.value&&t.showModal()}});const w=async()=>{const t=R("gclid").value,u=R("msclkid").value,i={city:"",state:""};if(s.value){const x=s.value.split(",");x.length>1&&(i.city=x[0],i.state=x[1].trim())}const o={page_size:15,page_token:"",query:"",state:"",city:"",cpc:"0.20",radius:"100mi"};j||(o.page_size=10),a.value&&(o.query=a.value,o.query=Pe(o.query)),o.city=i.city,o.state=i.state,h.value>1&&(o.page_token=(h.value*10).toString()),t&&(o["extra_url_params[gclid]"]=t),u&&(o["extra_url_params[msclkid]"]=u);const f=`https://api.${W()}/site/v1/search`,{data:_,error:q}=await Z(f,{method:"GET",headers:{"request-id":X()},query:o},"$WxKlEZteCM");q.value&&console.log("error",q.value),l.value=_.value,b.value=!1};[v,C]=K(()=>w()),await v,C();const le=async t=>{h.value=t,M(),await w()},ie=async t=>{h.value=t,M(),await w()},re=async t=>{h.value=t,M(),await w()},M=()=>{let t={};a.value&&(t={...t,query:a.value}),S.value&&(t={...t,location:S.value}),h.value&&(t={...t,page:h.value}),ce.push({path:"/critical-need-jobs",query:t})},k=async(t,u)=>{const i={city:"",state:""};if(s.value){const _=s.value.split(",");_.length>1&&(i.city=_[0],i.state=_[1].trim())}const o=`https://api.${W()}/site/v1/notification_subscriptions`,{error:f}=await Z(o,{method:"POST",headers:{"request-id":X()},body:{delivery_type:"email",email:t,frequency:"daily",query:a.value,filters:{country:"US",city:i.city,state:i.state},source:Oe}},"$acs3r3pt1Q");f.value&&console.log("error",f.value),!u&&(b.value=!0)};return(t,u)=>{var E,D,F,J,U,I,z,V,G,O;const i=Be,o=je,f=$e,_=Ne,q=Ae,x=Re,ue=He,me=Le,de=Me,_e=Ee,he=De,L=Fe,pe=Ue,ve=Je,fe=Ie,ge=ze;return m(),B("div",null,[n(f,null,{default:Q(()=>[n(i,null,{default:Q(()=>{var $;return[Y(P(e(a)||e(c).niche)+" Critical Need Jobs "+P(e(ae))+"@ "+P(($=e(c))==null?void 0:$.name),1)]}),_:1}),n(o,{name:"description",content:e(se)},null,8,["content"])]),_:1}),n(_,{class:"mt-4","different-page-search":"critical-need-jobs",onExpandChange:u[0]||(u[0]=$=>T.value=$)}),(E=e(l))!=null&&E.totalCount||0>0?(m(),g(q,{key:0,class:"block lg:hidden",title:e(a)||e(c).niche,location:e(s),"total-count":(D=e(l))==null?void 0:D.totalCount,"show-pointer":!e(T)},null,8,["title","location","total-count","show-pointer"])):d("",!0),r("div",Ke,[r("div",Qe,[(F=e(l))!=null&&F.totalCount||0>0?(m(),B("div",Ye,[r("div",We,[r("h1",Ze,[n(x,{name:"icon-park-outline:stopwatch-start",class:"mr-1 mb-1"}),Y("Critical Need Jobs â Urgent Roles Hiring Now ")])]),(J=e(l))!=null&&J.totalCount||0>0?(m(),g(ue,{key:0,class:"hidden lg:block",title:e(a),location:e(s),"total-count":(U=e(l))==null?void 0:U.totalCount},null,8,["title","location","total-count"])):d("",!0),r("div",Xe,[(I=e(l))!=null&&I.totalCount||0>0?(m(),g(me,{key:0,"success-message":e(b),onAlertCreated:k},null,8,["success-message"])):d("",!0)]),et,n(de,{jobs:(z=e(l))==null?void 0:z.jobs},null,8,["jobs"]),tt,r("div",at,[(V=e(l))!=null&&V.totalCount||0>0?(m(),g(_e,{key:0,class:"mb-5 mt-5","total-count":(G=e(l))==null?void 0:G.totalCount,onGoToPage:le,onNextPage:ie,onPrevPage:re},null,8,["total-count"])):d("",!0)]),r("div",st,[n(he),n(L,{"search-name":e(a),"search-location":e(s),"success-message":e(b),onAlertCreated:k},null,8,["search-name","search-location","success-message"])])])):d("",!0),(O=e(l))!=null&&O.totalCount?d("",!0):(m(),B("div",ot,[n(pe,{"search-query":e(a),"title-message":"No Critical Need Jobs Found",class:"mb-5"},null,8,["search-query"]),n(L,{"search-name":e(a),"search-location":e(s),"success-message":e(b),onAlertCreated:k},null,8,["search-name","search-location","success-message"]),nt])),r("div",ct,[n(ve,{class:"lg:ml-4 lg:mt-0 mt-5"}),e(j)?d("",!0):(m(),B("div",lt,[e(j)?d("",!0):(m(),g(_,{key:0,"keywords-label":"bottomKeywords","location-label":"bottomLocation",class:"block lg:hidden mt-4","initial-expand-search":!0,"different-page-search":"critical-need-jobs","secondary-search":!0}))])),e(te)?(m(),g(fe,{key:1,class:"mt-4","site-niche":e(c).niche,"site-domain":e(c).domain},null,8,["site-niche","site-domain"])):d("",!0)])])]),n(ge,{"site-name":e(c).niche,"search-name":e(a),"search-location":e(s),onAlertCreated:k},null,8,["site-name","search-name","search-location"]),n(Ge,{query:e(oe)},null,8,["query"])])}}});
1export{xt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.