PageSourceSearch

https://app.pawsitivefoster.com/assets/FosterOnboardingStep3-Cli-GyqY.js

js pawsitivefoster.com collected 2026-09-24 14:50:57 UTC 6,264 bytes, 2 lines download raw bytes

1import{aQ as e,aR as l,aS as a,u as o,aT as s,aV as n,bn as u,bo as i,bI as r,bJ as t,bQ as c,bx as v,bA as d,a_ as p,bp as f,ca as b,a$ as m,r as g,e as h,l as y,aU as k,b1 as w,bm as _}from"./index-B7717Xy-.js";import{m as C}from"./fosterProfile-C9gyhBWI.js";import x,{VOLUNTEER_PROFILE_MISSING_MESSAGE as Y}from"./foster-BfLPifi5.js";import"./submitError-BPyI4y-r.js";const A={class:"container"},S={class:"form-group question"},V={class:"pill-row"},N={class:"form-group question"},j={class:"pill-row"},q={class:"form-group question"},W={class:"pill-row"},E={class:"form-group question"},I={class:"pill-row"},U={class:"form-group question"},B={class:"pill-row"},D={class:"form-group"},F={class:"form-group"},H={key:0,class:"error-message"},T={class:"modal-content"},z=_(e({__name:"FosterOnboardingStep3",setup(e){const _=k(),z=g(null),P=g(null),Q=g(null),R=g(null),J=g(null),M=g(""),O=g(""),$=g(!1),G=g(!1),K=g(""),L=g("active"),X=e=>["pill",e&&"active"].filter(Boolean).join(" "),Z=h(()=>null!==z.value&&null!==P.value&&null!==Q.value&&null!==R.value&&null!==J.value),ee=h(()=>"pending"===L.value?"Application sent":"You're all set 🎉"),le=h(()=>"pending"===L.value?"We've sent your application to the coordinator for approval.":"Your foster profile is ready. You can refine it anytime from Settings."),ae=h(()=>"pending"===L.value?"View Application Status":"Explore Home"),oe=async()=>{await(async()=>{$.value=!0,K.value="",await C({comfortableWithMeds:null===z.value?void 0:z.value,canTransport:null===P.value?void 0:P.value,canSeparate:null===Q.value?void 0:Q.value,canHandleSpecialDiet:null===R.value?void 0:R.value,fosteredBefore:J.value||void 0,experienceNotes:M.value||void 0,extraNotes:O.value||void 0});try{const e=await x.saveFosterStep3({comfortable_giving_meds:null===z.value?void 0:z.value,can_transport:null===P.value?void 0:P.value,can_isolate:null===Q.value?void 0:Q.value,can_handle_special_diet:null===R.value?void 0:R.value,has_fostered_before:J.value||void 0,prior_experience:M.value||void 0,additional_notes:O.value||void 0});return e?(L.value="pending"===e.status?"pending":"active",$.value=!1,e):(K.value=Y,$.value=!1,null)}catch(e){return y.error("Error completing foster onboarding:",e),K.value="We could not save your onboarding right now. Please try again.",$.value=!1,null}})(),K.value||(G.value=!0)},se=()=>{G.value=!1,_.replace("pending"===L.value?"/pending-application":"/foster/home")},ne=()=>_.back();return(e,g)=>(w(),l(o(s),null,{default:a(()=>[n(o(m),{"force-overscroll":!1,class:"foster-step"},{default:a(()=>[g[28]||(g[28]=u("div",{class:"progress-bar"},[u("div",{class:"bar",style:{"--p":"100%"}})],-1)),u("div",A,[n(o(i),{fill:"clear",size:"small",class:"back-btn","aria-label":"Back",onClick:ne},{default:a(()=>[n(r,{name:"arrow-back-outline"})]),_:1}),g[26]||(g[26]=u("h2",{class:"heading"},"Your comfort zone",-1)),g[27]||(g[27]=u("p",{class:"sub"},"Totally fine if you’re not sure yet — just pick what feels right for now.",-1)),u("div",S,[g[13]||(g[13]=u("label",{class:"label"},"Are you comfortable giving medications if needed?",-1)),g[14]||(g[14]=u("div",{class:"helper"},"We’ll show you how if you’re new.",-1)),u("div",V,[u("button",{class:t(X(!0===z.value)),onClick:g[0]||(g[0]=e=>z.value=!0)},"Yes",2),u("button",{class:t(X(!1===z.value)),onClick:g[1]||(g[1]=e=>z.value=!1)},"No",2)])]),u("div",N,[g[15]||(g[15]=u("label",{class:"label"},"Can you bring fosters in for checkups or vaccines?",-1)),g[16]||(g[16]=u("div",{class:"helper"},"Usually once a week or every two weeks depending on the animal’s needs.",-1)),u("div",j,[u("button",{class:t(X(!0===P.value)),onClick:g[2]||(g[2]=e=>P.value=!0)},"Yes",2),u("button",{class:t(X(!1===P.value)),onClick:g[3]||(g[3]=e=>P.value=!1)},"No",2)])]),u("div",q,[g[17]||(g[17]=u("label",{class:"label"},"Can you keep your fosters separate from other pets if needed?",-1)),g[18]||(g[18]=u("div",{class:"helper"},"A bathroom or guest room works great.",-1)),u("div",W,[u("button",{class:t(X(!0===Q.value)),onClick:g[4]||(g[4]=e=>Q.value=!0)},"Yes",2),u("button",{class:t(X(!1===Q.value)),onClick:g[5]||(g[5]=e=>Q.value=!1)},"No",2)])]),u("div",E,[g[19]||(g[19]=u("label",{class:"label"},"Are you comfortable feeding a prescribed or special diet if needed?",-1)),g[20]||(g[20]=u("div",{class:"helper"},"Some animals need Rx food, homemade blends, or careful measuring.",-1)),u("div",I,[u("button",{class:t(X(!0===R.value)),onClick:g[6]||(g[6]=e=>R.value=!0)},"Yes",2),u("button",{class:t(X(!1===R.value)),onClick:g[7]||(g[7]=e=>R.value=!1)},"No",2)])]),u("div",U,[g[21]||(g[21]=u("label",{class:"label"},"Have you fostered before?",-1)),u("div",B,[u("button",{class:t(X("yes"===J.value)),onClick:g[8]||(g[8]=e=>J.value="yes")},"Yes",2),u("button",{class:t(X("no"===J.value)),onClick:g[9]||(g[9]=e=>J.value="no")},"No",2)])]),u("div",D,[g[22]||(g[22]=u("label",{class:"label"},"What's your fostering experience so far? Especially helpful: neonates, medical recoveries, behavior support, or other specialty care.",-1)),g[23]||(g[23]=u("div",{class:"helper"},"If you’ve worked with another group, feel free to mention it.",-1)),n(o(c),{"auto-grow":"",modelValue:M.value,"onUpdate:modelValue":g[10]||(g[10]=e=>M.value=e),placeholder:"e.g. I helped bottle-feed a litter with a friend last spring."},null,8,["modelValue"])]),u("div",F,[g[24]||(g[24]=u("label",{class:"label"},"Anything else you want us to know?",-1)),n(o(c),{"auto-grow":"",modelValue:O.value,"onUpdate:modelValue":g[11]||(g[11
1]=e=>O.value=e),placeholder:"Any preferences, availability, or fun facts welcome."},null,8,["modelValue"])]),K.value?(w(),v("p",H,d(K.value),1)):p("",!0),n(o(i),{expand:"block",shape:"round",class:"primary-btn",onClick:oe,disabled:$.value||!Z.value},{default:a(()=>[...g[25]||(g[25]=[f("Finish",-1)])]),_:1},8,["disabled"])]),n(o(b),{"is-open":G.value,onDidDismiss:g[12]||(g[12]=e=>G.value=!1),class:"completion-modal"},{default:a(()=>[u("div",T,[u("h3",null,d(ee.value),1),u("p",null,d(le.value),1),n(o(i),{expand:"block",shape:"round",class:"primary-btn",onClick:se},{default:a(()=>[f(d(ae.value),1)]),_:1})])]),_:1},8,["is-open"])]),_:1})]),_:1}))}}),[["__scopeId","data-v-16c818c5"]]);export{z as default};
2//# sourceMappingURL=FosterOnboardingStep3-Cli-GyqY.js.map

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.