1import{r as e,u as s,j as o}from"./vendor.mIPXQGLM.js";import{F as r,c as t,b4 as n,bb as a,b6 as i,b7 as m}from"./index.bundle.js";import{L as c,ay as u}from"./@constants.BGUlkrYt.js";import{G as l}from"./GreenArrowButton.BCRc4ptt.js";import{O as d,S as p}from"./Option.DkTX82aO.js";import{S as j,O as g}from"./Commands.styles.BHvyvibY.js";import{S as h}from"./QuestionButton.styles.CbmcgbW6.js";import{u as b,T as x}from"./@i18n.CG4_sUzZ.js";import"./@amplitude.yMGOHWCQ.js";import"./@xstate.CEsnlirg.js";import"./@firebase.Bkc6--w4.js";import"./@lottie.KPmlgv_O.js";import"./@react-router.hFdD-ZA2.js";import"./@lodash.D8yALn-Z.js";import"./@rudderstack.DVYreKjc.js";import"./right-white-arrow.jrmExGPe.js";import"./questions-check-off.BPJvZ_sw.js";import"./questions-check-on.B3DCfWRm.js";const f=[u.COME,u.CATCH_FRISBEE,u.JUMP_THROGH_ARM,u.DEAD,u.WIPE,u.SNAKE,u.SLIPPERS,u.WALK,u.FETCH,u.TOYS,u.SHAME,u.JUMP_ON_BACK,u.TAKE,u.JUMP_INTO_ARMS,u.STAY,u.JUMP_OFF_AND_TURN],C=()=>{const{t:u,i18n:C}=b(),{onNextStep:S}=e.useContext(r),{currentPageId:A,currentPageNumber:y}=t(s(e=>({currentPageId:e.currentPageId,currentPageNumber:e.currentPageNumber}))),T=n(),[E,P]=e.useState([]),M=e.useMemo(()=>a(T,A),[T,A]),N=e.useMemo(()=>C.language===c.TR?"":u`onboarding.common.yourDog`,[C.language,u]),O=e.useCallback((e=!1)=>{A&&y&&(i({question:"Which commands has your dog already learned? (3)",answers:e?"none":E,pageName:A,pageNumber:y,answersToStore:e?[]:E}),S())},[E,A,y,S]),k=e.useMemo(()=>({...A&&{name:A},type:d.CHECKBOX,onChange:(e,s)=>{if(s)P([...E,e]);else{const s=E.filter(s=>s!==e);P(s)}}}),[E,A]);return e.useEffect(()=>{P(M)},[M]),m(),o.jsx(j.Wrapper2,{children:o.jsxs(j.Content3,{children:[o.jsx(j.Title2,{children:o.jsx(x,{values:{dogName:N},i18nKey:"onboarding.commands.question"})}),o.jsx(j.Subtitle,{children:o.jsx(x,{i18nKey:"onboarding.commands.subtitle",components:[o.jsx("br",{})]})}),o.jsx(p.OptionsContainer5,{"data-is-multiple":!0,children:f.map(s=>e.createElement(g,{...k,value:s,key:s,checked:Array.isArray(E)&&E.includes(s)},o.jsx(h.Wrapper3,{"data-has-check-icon":!0,children:u(`onboarding.commands.${s}`)})))}),o.jsxs(j.StickyBlockWrapper,{children:[o.jsx(l,{isButtonDisabled:!E.length,onClick:()=>O()}),o.jsx(j.TextButton,{onClick:()=>O(!0),children:u`onboarding.common.noneOfTheAbove`})]})]})})};export{C as CommandsVariant63};
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.