PageSourceSearch

https://fyra.life/assets/Onboarding3-Dn8dFoOC.js

js fyra.life collected 2026-10-02 02:02:06 UTC 35,540 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/compassPrefetch-CBCbGcrk.js","assets/index-CEISlULX.js","assets/index-CcMqAdLq.css","assets/invokeWithTimeout-CMrZrqzM.js","assets/normalizeMediaLevel2-BFbM6i_V.js"])))=>i.map(i=>d[i]);
2import{u as X,b as $,r as c,s as p,v as C,j as s,B as tt,G as et,P as it,_ as A}from"./index-CEISlULX.js";import{T as B,O as E}from"./onboardingQuestions-D1vIm4xw.js";import{u as Q}from"./isPlaceholderImage-DUTkz-6J.js";import{E as at}from"./external-link-DoOQ4sOr.js";import{C as nt}from"./check-BFjtj0TV.js";import{L as st}from"./loader-circle-C0qiwHXp.js";const lt="/assets/onboarding-theragun-mini-DuDUEWW6.jpg",ot="/assets/onboarding-smart-watch-D3Re54n4.jpg",rt="/assets/onboarding-smart-thermostat-BNVjaT__.jpg",ct="/assets/onboarding-robot-vacuum-COPb1wmF.jpg",ut="/assets/onboarding-watch-youtube-DLd_VZvF.jpg",dt="/assets/onboarding-watch-streaming-D4VQdl_v.jpg",yt="/assets/onboarding-watch-cable-B3a_4Tcy.jpg",pt="/assets/onboarding-watch-sports-CHUGsiHM.jpg",mt="/assets/onboarding-nespresso-machine-CRFb_3bL.jpg",ht="/assets/onboarding-read-book-lSfHAGhE.jpg",gt="/assets/onboarding-yoga-BlhwPelU.jpg",bt="/assets/onboarding-hot-bath-D5GZgpGc.jpg",_t="/assets/onboarding-genre-comedy-6JiGBZ-u.jpg",vt="/assets/onboarding-genre-drama-D6QBR5EJ.jpg",ft="/assets/onboarding-genre-action-jwl8Yh2s.jpg",xt="/assets/onboarding-genre-documentary-H-ap4Tj6.jpg",wt="/assets/onboarding-drink-cocktail-D1zLeGQG.jpg",jt="/assets/onboarding-drink-beer-GjODBn7I.jpg",St="/assets/onboarding-drink-wine-CnuXgzcK.jpg",It="/assets/onboarding-drink-soda-BqATWn3v.jpg",kt="/assets/onboarding-read-fiction-DQ1212NE.jpg",Pt="/assets/onboarding-read-newspaper-digital-BnCDZzmm.jpg",Ct="/assets/onboarding-read-magazines-9aGOFIkx.jpg",Bt="/assets/onboarding-read-nonfiction-BacnYCAm.jpg",Mt="/assets/onboarding-car-music-Bn2A8rGk.jpg",Nt="/assets/onboarding-car-podcast-Dr2ZHSwt.jpg",Dt="/assets/onboarding-car-radio-Dj-GqTiW.jpg",Tt="/assets/onboarding-car-news-XOMnEg8-.jpg",zt="/assets/onboarding-cuisine-italian-BfE6ieZg.jpg",Rt="/assets/onboarding-cuisine-mexican-BqiPTw4i.jpg",qt="/assets/onboarding-cuisine-japanese-BYS8a601.jpg",Lt="/assets/onboarding-cuisine-mediterranean-Cyj7kamm.jpg",Ot="/assets/onboarding-escape-beach-DvoKmGeh.jpg",Gt="/assets/onboarding-escape-cabin-C1JGoUhZ.jpg",Ht="/assets/onboarding-escape-city-BM82VaH0.jpg",Wt="/assets/onboarding-escape-countryside-PA43gHdF.jpg",At="/assets/onboarding-aesthetic-minimal-ii6YmFu-.jpg",Et="/assets/onboarding-aesthetic-boho-D6uniJO1.jpg",Qt="/assets/onboarding-aesthetic-midcentury-D_skuPwH.jpg",Ft="/assets/onboarding-aesthetic-industrial-Cjs14y5R.jpg",Vt="/assets/social-big-night-B0q_26Yy.jpg",Yt="/assets/social-small-gathering-DOAEjran.jpg",Jt="/assets/social-cozy-in-Bc9LFiKo.jpg",Ut="/assets/social-spontaneous-NRNjhQ0P.jpg",Kt="/assets/planning-organized-CXDyJmLT.jpg",Zt="/assets/planning-loose-BdAS3GFm.jpg",Xt="/assets/planning-spontaneous-CgD1mDvO.jpg",$t="/assets/planning-group-BaM4zF3a.jpg",te="/assets/gift-wine-bottle-Dvki4ygl.jpg",ee="/assets/gift-book-Dci8y9ab.jpg",ie="/assets/social-explore-restaurant-B7HE0TVN.jpg",ae="/assets/social-binge-watch-C2JvaruH.jpg",ne="/assets/drink-smoothie-BnxN0QiY.jpg",F="/assets/drink-water-DcCdkBTE.jpg",se="/assets/outdoor-mountain-biking-CKhOVaZM.jpg",le="/assets/outdoor-picnic-0vxjkAPR.jpg",oe="/assets/read-blogs-tIDgXLLx.jpg",re="/assets/read-social-media-Dfa3_eSx.jpg",ce="/assets/listen-sports-h7j27cMV.jpg",ue="/assets/listen-quiet-CtpKxql3.jpg",de="/assets/bar-mixed-drink-VvPBx-PJ.jpg",ye="/assets/city-sydney-DG7ukWmv.jpg",pe="/assets/city-marrakesh-kuWYPY7E.jpg",me="/assets/cuisine-french-D140rP5m.jpg",he="/assets/cuisine-brazilian-BYig0wvQ.jpg",ge="/assets/watch-short-video-B59I50Ij.jpg",be="/assets/watch-dvds-NWsDSP4a.jpg",_e="/assets/escape-staycation-Uh9-gUXq.jpg",ve="/assets/escape-marathon-BfyhyyM7.jpg",fe="/assets/smart-air-fryer-BzP3Xam6.jpg",xe="/assets/smart-ereader-CdWv_l60.jpg",we="/assets/dessert-ice-cream-B3B4ZU4V.jpg",je="/assets/dessert-cake-DB7JWcnI.jpg",Se="/assets/plan-advice-online-2QW3oAeD.jpg",Ie="/assets/plan-tour-guide-Vz6GSrNC.jpg",ke="/assets/genre-horror-DhPhaTpO.jpg",Pe="/assets/genre-romance-1tFfTY46.jpg",Ce="/assets/unwind-gym-BHGpvIDk.jpg",Be="/assets/unwind-tv-WcI8H8o7.jpg",Me="/assets/decor-scandinavian-Bqv2Wzl1.jpg",Ne="/assets/decor-coastal-DmkrMX3K.jpg",De={q01_gift:[{index:0,title:"Headphones",subtitle:"Noise cancelling",thumbnail_url:"https://i5.walmartimages.com/asr/93746b5d-45f1-4b5f-8c1b-db98022755f0.c6a876296765e90b7311685c616389ba.jpeg?odnHeight=2000&odnWidth=2000&odnBg=ffffff",l1:"Products",entity_type:"activity",entity_id:"activity:gift-headphones"},{index:1,title:"Espresso Machine",subtitle:"Café coffee at home",thumbnail_url:mt,l1:"Products",entity_type:"activity",entity_id:"activity:gift-espresso-machine"},{index:2,title:"Sunglasses",subtitle:"Classic frames",thumbnail_url:"https://images.unsplash.com/photo-1572635196237-14b3f281503f?auto=format&fit=crop&w=900&q=80",l1:"Products",entity_type:"activity",entity_id:"activity:gift-sunglasses"},{index:3,title:"Scented Candle",subtitle:"Warm & atmospheric",thumbnail_url:"https://images.unsplash.com/photo-1603006905003-be475563bc59?auto=format&fit=crop&w=900&q=80",l1:"Products",entity_type:"activity",entity_id:"activity:gift-candle"},{index:4,title:"Bottle of Wine",subtitle:"Something worth opening",thumbnail_url:te,l1:"Products",l2:"Wine & Spirits",entity_type:"activity",entity_id:"activity:gift-wine"},{index:5,title:"A Good Book",subtitle:"Hardcover to get lost in",thumbnail_url:ee,l1:"Products",entity_type:"activity",entity_id:"activity:gift-book"}
2],q02_song_anthem:[{index:0,title:"Levitating",subtitle:"Dua Lipa",thumbnail_url:"https://i.scdn.co/image/ab67616d0000b2734bc66095f8a70bc4e6593f4f",external_url:"https://open.spotify.com/search/Dua%20Lipa%20Levitating",l1:"Music",l2:"Songs",entity_type:"media",entity_id:"36d9cc33-b535-4058-a33e-9e47258d3863"},{index:1,title:"September",subtitle:"Earth, Wind & Fire",thumbnail_url:"https://i.scdn.co/image/ab67616d0000b2730faf2fc17446651865ce2282",external_url:"https://open.spotify.com/search/Earth%20Wind%20Fire%20September",l1:"Music",l2:"Songs",entity_type:"media",entity_id:"11e840be-1aca-f51e-a9a5-aa1c026db3d8"},{index:2,title:"HUMBLE.",subtitle:"Kendrick Lamar",thumbnail_url:"https://i.scdn.co/image/ab67616d0000b2738b52c6b9bc4e43d873869699",external_url:"https://open.spotify.com/search/Kendrick%20Lamar%20HUMBLE",l1:"Music",l2:"Songs",entity_type:"media",entity_id:"11e826ad-c837-169a-b6a4-a0369fe50396"},{index:3,title:"Mr. Brightside",subtitle:"The Killers",thumbnail_url:"https://i.scdn.co/image/ab67616d0000b273ccdddd46119a4ff53eaf1f5d",external_url:"https://open.spotify.com/search/The%20Killers%20Mr%20Brightside",l1:"Music",l2:"Songs",entity_type:"media",entity_id:"eef3a0f8-3f1a-46de-847e-dc487096523e"},{index:4,title:"Cruel Summer",subtitle:"Taylor Swift",thumbnail_url:"https://is1-ssl.mzstatic.com/image/thumb/Music125/v4/49/3d/ab/493dab54-f920-9043-6181-80993b8116c9/19UMGIM53909.rgb.jpg/600x600bb.jpg",external_url:"https://open.spotify.com/search/Taylor%20Swift%20Cruel%20Summer",l1:"Music",l2:"Songs",entity_type:"media"},{index:5,title:"Here Comes the Sun",subtitle:"The Beatles",thumbnail_url:"https://is1-ssl.mzstatic.com/image/thumb/Music112/v4/df/db/61/dfdb615d-47f8-06e9-9533-b96daccc029f/18UMGIM31076.rgb.jpg/600x600bb.jpg",external_url:"https://open.spotify.com/search/The%20Beatles%20Here%20Comes%20the%20Sun",l1:"Music",l2:"Songs",entity_type:"media",entity_id:"95506f26-dee7-11e9-9e46-801844ee83a6"}],q03_movie_fri:[{index:0,title:"The Grand Budapest Hotel",subtitle:"2014",thumbnail_url:"https://image.tmdb.org/t/p/w342/eWdyYQreja6JGCzqHWXpWHDrrPo.jpg",external_url:"https://www.themoviedb.org/movie/120467",l1:"Movies",entity_type:"media",entity_id:"Q3521099"},{index:1,title:"Spider-Man: Into the Spider-Verse",subtitle:"2018",thumbnail_url:"https://image.tmdb.org/t/p/w342/iiZZdoQBEYBv6id8su7ImL0oCbD.jpg",external_url:"https://www.themoviedb.org/movie/324857",l1:"Movies",entity_type:"media",entity_id:"Q29588607"},{index:2,title:"Knives Out",subtitle:"2020",thumbnail_url:"https://image.tmdb.org/t/p/w342/pThyQovXQrw2m0s9x82twj48Jq4.jpg",external_url:"https://www.themoviedb.org/movie/546554",l1:"Movies",entity_type:"media",entity_id:"Q57982486"},{index:3,title:"The Princess Bride",subtitle:"1987",thumbnail_url:"https://image.tmdb.org/t/p/w342/2FC9L9MrjBoGHYjYZjdWQdopVYb.jpg",external_url:"https://www.themoviedb.org/movie/2493",l1:"Movies",entity_type:"media",entity_id:"Q506418"},{index:4,title:"Good Will Hunting",subtitle:"1997",thumbnail_url:"https://image.tmdb.org/t/p/w342/z2FnLKpFi1HPO7BEJxdkv6hpJSU.jpg",external_url:"https://www.themoviedb.org/movie/489#play=videos",l1:"Movies",entity_type:"media",entity_id:"Q193835"},{index:5,title:"Mean Girls",subtitle:"2004",thumbnail_url:"https://image.tmdb.org/t/p/w342/2ZkuQXvVhh45uSvkBej4S7Ix1NJ.jpg",external_url:"https://www.themoviedb.org/movie/10625#play=videos",l1:"Movies",entity_type:"media",entity_id:"Q631103"}],q04_show_binge:[{index:0,title:"The Bear",subtitle:"2022",thumbnail_url:"https://image.tmdb.org/t/p/w342/eKfVzzEazSIjJMrw9ADa2x8ksLz.jpg",external_url:"https://www.themoviedb.org/tv/136315#play=videos",l1:"Shows",entity_type:"media",entity_id:"Q112761982"},{index:1,title:"Breaking Bad",subtitle:"2008",thumbnail_url:"https://image.tmdb.org/t/p/w342/ggFHVNu6YYI5L9pCfOacjizRGt.jpg",external_url:"https://www.themoviedb.org/tv/1396#play=videos",l1:"Shows",entity_type:"media",entity_id:"Q1079"},{index:2,title:"Stranger Things",subtitle:"2016",thumbnail_url:"https://image.tmdb.org/t/p/w342/uOOtwVbSr4QDjAGIifLDwpb2Pdl.jpg",external_url:"https://www.themoviedb.org/tv/66732#play=videos",l1:"Shows",entity_type:"media",entity_id:"Q19798734"},{index:3,title:"The White Lotus",subtitle:"2021",thumbnail_url:"https://image.tmdb.org/t/p/w342/gbSaK9v1CbcYH1ISgbM
27XObD2dW.jpg",external_url:"https://www.themoviedb.org/tv/111803#play=videos",l1:"Shows",entity_type:"media",entity_id:"Q106679014"},{index:4,title:"Game of Thrones",subtitle:"2011",thumbnail_url:"https://image.tmdb.org/t/p/w500/1XS1oqL89opfnbLl8WnZY1O1uJx.jpg",external_url:"https://www.themoviedb.org/tv/1399#play=videos",l1:"Shows",entity_type:"media",entity_id:"Q23572"},{index:5,title:"The Office",subtitle:"2005",thumbnail_url:"https://image.tmdb.org/t/p/w500/7DJKHzAi83BmQrWLrYYOqcoKfhR.jpg",external_url:"https://www.themoviedb.org/tv/2316#play=videos",l1:"Shows",entity_type:"media",entity_id:"Q23829"}],q05_resto_local:[{index:0,title:"Big night out",subtitle:"Crowds and energy",thumbnail_url:Vt,l1:"Places",entity_type:"activity",entity_id:"activity:social-big-night-out"},{index:1,title:"Small gathering",subtitle:"A few close friends",thumbnail_url:Yt,l1:"Places",entity_type:"activity",entity_id:"activity:social-small-gathering"},{index:2,title:"Cozy night in",subtitle:"Low-key at home",thumbnail_url:Jt,l1:"Places",entity_type:"activity",entity_id:"activity:social-cozy-in"},{index:3,title:"Spontaneous adventure",subtitle:"Figure it out as you go",thumbnail_url:Ut,l1:"Places",entity_type:"activity",entity_id:"activity:social-spontaneous"}
2,{index:4,title:"Explore a new restaurant",subtitle:"Somewhere new",thumbnail_url:ie,l1:"Places",entity_type:"activity",entity_id:"activity:social-new-restaurant"},{index:5,title:"Binge your favorite show",subtitle:"Sofa, snacks, episodes",thumbnail_url:ae,l1:"Places",entity_type:"activity",entity_id:"activity:social-binge-watch"}],q06_coffee:[{index:0,title:"Coffee",subtitle:"Espresso, latte, drip",thumbnail_url:"https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=900&q=80",l1:"Products",l2:"Coffee & Tea",entity_type:"activity",entity_id:"activity:coffee"},{index:1,title:"Tea",subtitle:"Black, green, herbal",thumbnail_url:"https://images.unsplash.com/photo-1556679343-c7306c1976bc?auto=format&fit=crop&w=900&q=80",l1:"Products",l2:"Coffee & Tea",entity_type:"activity",entity_id:"activity:tea"},{index:2,title:"Matcha",subtitle:"Earthy & energizing",thumbnail_url:"https://images.unsplash.com/photo-1536256263959-770b48d82b0a?auto=format&fit=crop&w=900&q=80",l1:"Products",l2:"Coffee & Tea",entity_type:"activity",entity_id:"activity:matcha"},{index:3,title:"Hot Chocolate",subtitle:"Rich & cozy",thumbnail_url:"https://images.unsplash.com/photo-1517578239113-b03992dcdd25?auto=format&fit=crop&w=900&q=80",l1:"Products",l2:"Coffee & Tea",entity_type:"activity",entity_id:"activity:hot-chocolate"},{index:4,title:"Smoothie",subtitle:"Fruit & fresh",thumbnail_url:ne,l1:"Products",l2:"Coffee & Tea",entity_type:"activity",entity_id:"activity:smoothie"},{index:5,title:"Just water",subtitle:"Keep it simple",thumbnail_url:F,l1:"Products",l2:"Coffee & Tea",entity_type:"activity",entity_id:"activity:water-morning"}],q07_outdoors:[{index:0,title:"Hiking",subtitle:"Trails & views",thumbnail_url:"https://images.unsplash.com/photo-1551632811-561732d1e306?auto=format&fit=crop&w=900&q=80",l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:hiking"},{index:1,title:"Skiing / Snowboarding",subtitle:"Mountain days",thumbnail_url:"https://images.unsplash.com/photo-1551524559-8af4e6624178?auto=format&fit=crop&w=900&q=80",l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:skiing"},{index:2,title:"Golf",subtitle:"Fairways & greens",thumbnail_url:"https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=900&q=80",l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:golf"},{index:3,title:"Beach Day",subtitle:"Sand & surf",thumbnail_url:"https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=900&q=80",l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:beach"},{index:4,title:"Mountain Biking",subtitle:"Trails & speed",thumbnail_url:se,l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:mountain-biking"},{index:5,title:"Picnic",subtitle:"Blanket & good weather",thumbnail_url:le,l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:picnic"}],q08_book:[{index:0,title:"Fiction",subtitle:"Novels & stories",thumbnail_url:kt,l1:"Books",entity_type:"activity",entity_id:"activity:read-fiction"},{index:1,title:"Newspapers",subtitle:"Daily reads",thumbnail_url:Pt,l1:"Books",entity_type:"activity",entity_id:"activity:read-newspaper"},{index:2,title:"Magazines",subtitle:"Style & culture",thumbnail_url:Ct,l1:"Books",entity_type:"activity",entity_id:"activity:read-magazines"},{index:3,title:"Nonfiction",subtitle:"Biographies & ideas",thumbnail_url:Bt,l1:"Books",entity_type:"activity",entity_id:"activity:read-nonfiction"},{index:4,title:"Blogs & Newsletters",subtitle:"Writers you follow",thumbnail_url:oe,l1:"Books",entity_type:"activity",entity_id:"activity:read-blogs"},{index:5,title:"Social Media",subtitle:"Feeds & threads",thumbnail_url:re,l1:"Books",entity_type:"activity",entity_id:"activity:read-social-media"}],q09_podcast:[{index:0,title:"Music",subtitle:"Your playlists",thumbnail_url:Mt,l1:"Music",entity_type:"activity",entity_id:"activity:car-music"},{index:1,title:"Podcasts",subtitle:"Stories & talk",thumbnail_url:Nt,l1:"Podcasts",entity_type:"activity",entity_id:"activity:car-podcast"},{index:2,title:"Radio",subtitle:"Classic dial",thumbnail_url:Dt,l1:"Podcasts",entity_type:"activity",entity_id:"activity:car-radio"},{index:3,title:"News",subtitle:"Stay informed",thumbnail_url:Tt,l1:"Podcasts",entity_type:"activity",entity_id:"activity:car-news"},{index:4,title:"Sports",subtitle:"Games & commentary",thumbnail_url:ce,l1:"Podcasts",entity_type:"activity",entity_id:"activity:car-sports"},{index:5,title:"Prefer quiet",subtitle:"No soundtrack needed",thumbnail_url:ue,l1:"Podcasts",entity_type:"activity",entity_id:"activity:car-quiet"}],q10_drink:[{index:0,title:"Cocktail",subtitle:"Mixed drinks",thumbnail_url:wt,l1:"Products",l2:"Wine & Spirits",entity_type:"activity",entity_id:"activity:bar-cocktail"},{index:1,title:"Beer",subtitle:"Cold & crisp",thumbnail_url:jt,l1:"Products",l2:"Wine & Spirits",entity_type:"activity",entity_id:"activity:bar-beer"},{index:2,title:"Wine",subtitle:"Red, white or rosé",thumbnail_url:St,l1:"Products",l2:"Wine & Spirits",entity_type:"activity",entity_id:"activity:bar-wine"},{index:3,title:"Soda",subtitle:"Non-alcoholic",thumbnail_url:It,l1:"Products",l2:"Wine & Spirits",entity_type:"activity",entity_id:"activity:bar-soda"},{index:4,title:"Mixed Drink",subtitle:"Spirit & mixer, simple",thumbnail_url:de,l1:"Products",l2:"Wine & Spirits",entity_type:"activity",entity_id:"activity:bar-mixed-drink"},{index:5,title:"Just water",subtitle:"Sitting this round out",thumbnail_url:F,l1:"Products",l2:"Wine & Spirits",entity_type:"activity",entity_id:"activity:bar-water"}],q11_city:[{index:0,title:"London",subtitle:"United Kingdom",thumbnail_url:"https://vauhodpuhdnypebxfeod.supabase.co/storage/v1/object/public/taste-photos/place-google/3423.jpg?v=1781382460031",l1:"Places",l2:"City",entity_type:"place",entity_id:"3423"},{index:1,title:"Tokyo",subtitle:"Japan",thumbnail_url:"https://vauhodpuhdnypebxfeod.supabase.co/storage/v1/object/public/taste-photos/place-placeholders/3169.png?v=1779838239370",l1:"Places",l2:"City",entity_type:"place",entity_id:"3169"},{index:2,title:"Paris",subtitle:"France",thumbnail_url:"https://vauhodpuhdnypebxfeod.supabase.co/storage/v1/object/public/taste-photos/place-placeholders/n4f80jz.png?v=1780462863401",l1:"Places",l2:"City",entity_type:"place",entity_id:"3407"},{index:3,title:"New York City",subtitle:"United States",thumbnail_url:"https://vauhodpuhdnypebxfeod.supabase.co/storage/v1/object/public/taste-photos/place-placeholders/1441.png",l1:"Places",l2:"City",entity_type:"place",entity_id:"1441"},{index:4,title:"Sydney",subtitle:"Australia",thumbnail_url:ye,l1:"Places",l2:"City",entity_type:"activity",entity_id:"activity:city-sydney"},{index:5,title:"Marrakesh",subtitle:"Morocco",thumbnail_url:pe,l1:"Places",l2:"City",entity_type:"activity",entity_id:"activity:city-marrakesh"}
2],q12_dish:[{index:0,title:"Italian",subtitle:"Pasta & pizza",thumbnail_url:zt,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:cuisine-italian"},{index:1,title:"Mexican",subtitle:"Tacos & more",thumbnail_url:Rt,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:cuisine-mexican"},{index:2,title:"Japanese",subtitle:"Sushi & ramen",thumbnail_url:qt,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:cuisine-japanese"},{index:3,title:"Mediterranean",subtitle:"Mezze & olive oil",thumbnail_url:Lt,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:cuisine-mediterranean"},{index:4,title:"French",subtitle:"Bistro classics",thumbnail_url:me,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:cuisine-french"},{index:5,title:"Brazilian",subtitle:"Churrasco & sides",thumbnail_url:he,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:cuisine-brazilian"}],q13_artist_live:[{index:0,title:"YouTube",subtitle:"Videos & creators",thumbnail_url:ut,l1:"Shows",entity_type:"activity",entity_id:"activity:watch-youtube"},{index:1,title:"Streaming",subtitle:"On demand",thumbnail_url:dt,l1:"Shows",entity_type:"activity",entity_id:"activity:watch-streaming"},{index:2,title:"Cable TV",subtitle:"Live channels",thumbnail_url:yt,l1:"Shows",entity_type:"activity",entity_id:"activity:watch-cable"},{index:3,title:"Live Sports",subtitle:"Game day",thumbnail_url:pt,l1:"Shows",entity_type:"activity",entity_id:"activity:watch-sports"},{index:4,title:"Reels & Short Video",subtitle:"Instagram, TikTok",thumbnail_url:ge,l1:"Shows",entity_type:"activity",entity_id:"activity:watch-short-video"},{index:5,title:"Physical DVDs",subtitle:"Discs & box sets",thumbnail_url:be,l1:"Shows",entity_type:"activity",entity_id:"activity:watch-dvds"}],q14_comfort_mov:[{index:0,title:"Beach Getaway",subtitle:"Sun, sand & sea",thumbnail_url:Ot,l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:escape-beach"},{index:1,title:"Mountain Cabin",subtitle:"Quiet & cozy",thumbnail_url:Gt,l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:escape-cabin"},{index:2,title:"City Break",subtitle:"Buzz & culture",thumbnail_url:Ht,l1:"Places",l2:"City",entity_type:"activity",entity_id:"activity:escape-city"},{index:3,title:"Countryside Retreat",subtitle:"Rolling hills",thumbnail_url:Wt,l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:escape-countryside"},{index:4,title:"Staycation",subtitle:"Rest up right at home",thumbnail_url:_e,l1:"Places",entity_type:"activity",entity_id:"activity:escape-staycation"},{index:5,title:"Big Hike or Race",subtitle:"A physical challenge",thumbnail_url:ve,l1:"Places",l2:"Nature",entity_type:"activity",entity_id:"activity:escape-endurance"}],q15_smart_buy:[{index:0,title:"Smart Thermostat",thumbnail_url:rt,l1:"Products",entity_type:"activity",entity_id:"activity:product-smart-thermostat"},{index:1,title:"Massage Gun",thumbnail_url:lt,l1:"Products",entity_type:"activity",entity_id:"activity:product-massage-gun"},{index:2,title:"Smart Watch",thumbnail_url:ot,l1:"Products",entity_type:"activity",entity_id:"activity:product-smart-watch"},{index:3,title:"Robot Vacuum",thumbnail_url:ct,l1:"Products",entity_type:"activity",entity_id:"activity:product-robot-vacuum"},{index:4,title:"Air Fryer",subtitle:"Weeknight cooking",thumbnail_url:fe,l1:"Products",entity_type:"activity",entity_id:"activity:product-air-fryer"},{index:5,title:"E-Reader",subtitle:"A library in your bag",thumbnail_url:xe,l1:"Products",entity_type:"activity",entity_id:"activity:product-ereader"}],q16_dessert:[{index:0,title:"Chocolate Mousse",thumbnail_url:"https://vauhodpuhdnypebxfeod.supabase.co/storage/v1/object/public/taste-photos/feed-placeholders/oni3o4_creation_desserts_classic_chocolate_mous.png",l1:"Creations",l2:"Recipe",entity_type:"creation",entity_id:"recipe:classic-chocolate-mousse-french-desserts"},{index:1,title:"Apple Crisp",thumbnail_url:"https://vauhodpuhdnypebxfeod.supabase.co/storage/v1/object/public/taste-photos/feed-placeholders/wnpghs_creation_desserts_apple_crisp.png",l1:"Creations",l2:"Recipe",entity_type:"creation",entity_id:"recipe:apple-crisp-american-desserts"},{index:2,title:"Tiramisu",thumbnail_url:"https://vauhodpuhdnypebxfeod.supabase.co/storage/v1/object/public/taste-photos/feed-placeholders/7x6a69_creation_desserts_classic_tiramisu.png",l1:"Creations",l2:"Recipe",entity_type:"creation",entity_id:"recipe:classic-tiramisu-ital
2ian-desserts"},{index:3,title:"Chocolate Chip Cookies",thumbnail_url:"https://images.unsplash.com/photo-1499636136210-6f4ee915583e?auto=format&fit=crop&w=900&q=80",l1:"Creations",l2:"Recipe",entity_type:"creation",entity_id:"recipe:chocolate-chip-cookies-american-desserts"},{index:4,title:"Ice Cream",thumbnail_url:we,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:dessert-ice-cream"},{index:5,title:"Cake",thumbnail_url:je,l1:"Creations",l2:"Recipe",entity_type:"activity",entity_id:"activity:dessert-cake"}],q17_date_night:[{index:0,title:"Booked & organized",subtitle:"Itinerary set",thumbnail_url:Kt,l1:"Places",entity_type:"activity",entity_id:"activity:planning-organized"},{index:1,title:"Loose framework",subtitle:"Room to improvise",thumbnail_url:Zt,l1:"Places",entity_type:"activity",entity_id:"activity:planning-loose"},{index:2,title:"Totally spontaneous",subtitle:"Decide in the moment",thumbnail_url:Xt,l1:"Places",entity_type:"activity",entity_id:"activity:planning-spontaneous"},{index:3,title:"Go with the group",subtitle:"Happy to follow others",thumbnail_url:$t,l1:"Places",entity_type:"activity",entity_id:"activity:planning-group"},{index:4,title:"Look for advice online",subtitle:"Reddit, forums, groups",thumbnail_url:Se,l1:"Places",entity_type:"activity",entity_id:"activity:planning-advice-online"},{index:5,title:"Go with a tour guide",subtitle:"Let an expert lead",thumbnail_url:Ie,l1:"Places",entity_type:"activity",entity_id:"activity:planning-tour-guide"}
2],q18_doc:[{index:0,title:"Comedy",subtitle:"Laughs & feel-good",thumbnail_url:_t,l1:"Movies",entity_type:"activity",entity_id:"activity:movie-genre-comedy"},{index:1,title:"Drama",subtitle:"Story & emotion",thumbnail_url:vt,l1:"Movies",entity_type:"activity",entity_id:"activity:movie-genre-drama"},{index:2,title:"Action & Thriller",subtitle:"High stakes",thumbnail_url:ft,l1:"Movies",entity_type:"activity",entity_id:"activity:movie-genre-action"},{index:3,title:"Documentary",subtitle:"Real stories",thumbnail_url:xt,l1:"Movies",entity_type:"activity",entity_id:"activity:movie-genre-documentary"},{index:4,title:"Horror",subtitle:"Scares & suspense",thumbnail_url:ke,l1:"Movies",entity_type:"activity",entity_id:"activity:movie-genre-horror"},{index:5,title:"Romance",subtitle:"Love stories",thumbnail_url:Pe,l1:"Movies",entity_type:"activity",entity_id:"activity:movie-genre-romance"}],q19_scent:[{index:0,title:"Curl up with a book",subtitle:"Quiet & cozy",thumbnail_url:ht,l1:"Products",entity_type:"activity",entity_id:"activity:relax-read"},{index:1,title:"Cook something good",subtitle:"Kitchen therapy",thumbnail_url:"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=900&q=80",l1:"Products",entity_type:"activity",entity_id:"activity:relax-cook"},{index:2,title:"Yoga or stretch",subtitle:"Reset the body",thumbnail_url:gt,l1:"Products",entity_type:"activity",entity_id:"activity:relax-yoga"},{index:3,title:"Long hot bath",subtitle:"Pure unwind",thumbnail_url:bt,l1:"Products",entity_type:"activity",entity_id:"activity:relax-bath"},{index:4,title:"Go to the gym",subtitle:"Burn it off",thumbnail_url:Ce,l1:"Products",entity_type:"activity",entity_id:"activity:relax-gym"},{index:5,title:"Watch TV",subtitle:"Switch off completely",thumbnail_url:Be,l1:"Products",entity_type:"activity",entity_id:"activity:relax-tv"}],q20_brag:[{index:0,title:"Minimalist",subtitle:"Clean & airy",thumbnail_url:At,l1:"Products",l2:"Home Decor",entity_type:"activity",entity_id:"activity:aesthetic-minimal"},{index:1,title:"Bohemian",subtitle:"Layered & earthy",thumbnail_url:Et,l1:"Products",l2:"Home Decor",entity_type:"activity",entity_id:"activity:aesthetic-boho"},{index:2,title:"Mid-Century Modern",subtitle:"Vintage cool",thumbnail_url:Qt,l1:"Products",l2:"Home Decor",entity_type:"activity",entity_id:"activity:aesthetic-midcentury"},{index:3,title:"Industrial Loft",subtitle:"Brick & steel",thumbnail_url:Ft,l1:"Products",l2:"Home Decor",entity_type:"activity",entity_id:"activity:aesthetic-industrial"},{index:4,title:"Scandinavian",subtitle:"Pale wood & light",thumbnail_url:Me,l1:"Products",l2:"Home Decor",entity_type:"activity",entity_id:"activity:aesthetic-scandinavian"},{index:5,title:"Coastal",subtitle:"Breezy & blue",thumbnail_url:Ne,l1:"Products",l2:"Home Decor",entity_type:"activity",entity_id:"activity:aesthetic-coastal"}]};function D(m){const h=De[m];return h?h.map((g,u)=>({...g,index:u})):null}const V="fyra:onb:q:v3:",j=6;function T(m,h){try{const g=localStorage.getItem(`${V}${m}:${h}`);return g?JSON.parse(g):null}catch{return null}}function I(m,h,g){try{localStorage.setItem(`${V}${m}:${h}`,JSON.stringify(g))}catch{}}const Ge=()=>{const m=X(),[h,g]=$(),u=Math.max(1,Math.min(B,Number(h.get("q")||1))),l=E[u-1],[r,Y]=c.useState(null),[M,J]=c.useState(null),[v,b]=c.useState(null),[U,z]=c.useState(!1),[k,R]=c.useState(!1),[S,q]=c.useState(new Set),[L,f]=c.useState(null),y=c.useRef(null),O=c.useRef({media:0,products:0,creations:0,places:0}),K=c.useRef({media:new Set,products:new Set,creations:new Set});c.useEffect(()=>{p.auth.getUser().then(({data:t})=>{if(!t.user){m("/onboarding1",{replace:!0});return}const a=t.user.id;Y(a),p.from("profiles").select("home_region").eq("id",a).maybeSingle().then(({data:e})=>{e!=null&&e.home_region&&J(String(e.home_region))})})},[m]);const G=c.useCallback(async(t,a,e)=>{if(t.nearMe){if(!e)return}else{const i=D(t.id);if(i&&i.length>=j){b(i),I(a,t.id,i);return}}const n=T(a,t.id);if(n&&n.length>=2){b(n);return}z(!0);try{const{data:i,error:o}=await p.functions.invoke("onboarding-quiz-options",{body:{question:t,city_hint:e,user_id:a,count:j}});if(o)throw o;if(i!=null&&i.status&&i.status!=="ok"){C.error(i.message||"Try again in a moment"),b([]);return}const d=Array.isArray(i==null?void 0:i.options)?i.options:[];if(d.length<2){b([]);return}const _=d.map((w,x)=>({...w,index:x}));b(_),I(a,t.id,_)}catch(i){console.error(i),C.error("Couldn't load options"),b([])}finally{z(!1)}},[]),P=c.useCallback(t=>{for(const a of t){const e=a.thumbnail_url;if(e)try{const n=new Image;n.src=Q(e)}catch{}}},[]);c.useEffect(()=>{if(!r||!l)return;f(null),q(new Set),y.current&&(y.current.pause(),y.current=null);const t=l.nearMe?null:D(l.id),a=t&&t.length>=j?t:T(r,l.id);a&&a.length>=2?b(a):b(null),G(l,r,M);const e=E[u];if(e&&r){const n=e.nearMe?null:D(e.id);if(n&&n.length>=j)I(r,e.id,n),P(n);else{const i=T(r,e.id);i?P(i):p.functions.invoke("onboarding-quiz-options",{body:{question:e,city_hint:M,user_id:r,count:j}}).then(({data:o})=>{const d=Array.isArray(o==null?void 0:o.options)?o.options:[];if(d.length>=2){const _=d.map((w,x)=>({...w,index:x}));I(r,e.id,_),P(_)}}).catch(()=>{})}}},[r,l,u,M,G,P]);const N=async t=>{if(!r||!v)return;const a=new Set(t);R(!0);try{const e=v.map((o,d)=>({user_id:r,question_id:l.id,option_index:d,option_entity_type:o.entity_type||l.domain,option_entity_id:o.entity_id||null,option_title:o.title,option_subtitle:o.subtitle||null,option_thumbnail_url:o.thumbnail_url||null,option_l1:o.l1||l.l1,option_l2:o.l2||l.l2||null,picked:a.has(d)})),n=l.domain==="product"?"products":l.domain==="place"?"places":l.domain==="creation"?"creations":l.domain==="media"?"media":null;let i=!1;if(a.size>0&&n&&n!=="places"){const o=O.current[n]||0,d=o+a.size;O.current[n]=d;const _=K.current[n],w=[3,6].find(x=>o<x&&d>=x&&!_.has(x));if(w){_.add(w),i=!0;try{await p.from("user_onboarding_signals").insert(e)}catch{}p.functions.invoke("generate-browse-suggestions",{body:{domain:n}}).catch(()=>{})}}i||p.from("user_onboarding_signals").insert(e).then(()=>{})}finally{if(y.current&&(y.current.pause(),y.current=null),u>=B){try{await p.from("profiles").update({onboarding_quiz_complete:!0,onboarding_step:"complete"}).eq("id",r)}catch{}const e=["media","products","creations","places"];for(const n of e)p.functions.invoke("generate-browse-suggestions",{body:{domain:n}}).catch(()=>{});try{const{prefetchCompass:n}=await A(async()=>{const{prefetchCompass:i}=await import("./compassPrefetch-CBCbGcrk.js").then(o=>o.x);return{prefetchCompass:i}},__vite__mapDeps([0,1,2,3,4]));await Promise.race([n(r).catch(()=>{}),new Promise(i=>setTimeout(i,6e3))])}catch{}m("/compass?tab=discover&welcome=1",{replace:!0})}else(u===5||u===12)&&A(async()=>{const{prefetchCompass:e}=await import("./compassPrefetch-CBCbGcrk.js").then(n=>n.x);return{prefetchCompass:e}},__vite__mapDeps([0,1,2,3,4])).then(({prefetchCompass:e})=>e(r).catch(()=>{})).catch(()=>{}),g({q:String(u+1)},{replace:!0});R(!1)}},H=(t,a)=>{y.current&&y.current.pause();const e=new Audio(t);e.play().then(()=>{y.current=e,f(a)}).catch(()=>{}),e.onended=()=>f(null)},Z=async(t,a)=>{var e;if(l.preview==="deezer"){if(L===a){(e=y.current)==null||e.pause(),f(null);return}if(t.preview_url&&/\.(mp3|m4a)/i.test(t.preview_url)){H(t.preview_url,a);return}try{f(a);const{data:n}=await p.functions.invoke("deezer-preview-url",{body:{title:t.title,artist:t.subtitle}}
2),i=n==null?void 0:n.preview_url;i?(t.preview_url=i,v&&r&&I(r,l.id,v),H(i,a)):(f(null),C.error("No preview available"))}catch{f(null),C.error("Couldn't load preview")}return}t.external_url&&window.open(t.external_url,"_blank","noopener,noreferrer")},W=c.useMemo(()=>{switch(l==null?void 0:l.preview){case"deezer":return"Preview";case"trailer":return"Trailer";case"openlibrary":return"Read more";case"podcastindex":return"Listen";case"maps":return"Map";default:return null}},[l==null?void 0:l.preview]);return l?s.jsxs("div",{className:"min-h-dvh bg-background flex flex-col px-4 py-6",children:[s.jsxs("div",{className:"w-full max-w-md mx-auto mb-4",children:[s.jsx("div",{className:"flex items-center text-xs text-muted-foreground mb-2",children:s.jsxs("span",{children:[u," of ",B]})}),s.jsx("div",{className:"h-1.5 bg-muted rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${u/B*100}%`}})})]}),s.jsx("h1",{className:"w-full max-w-md mx-auto text-xl sm:text-2xl font-semibold tracking-tight text-center mb-5",children:l.prompt}),s.jsx("div",{className:"w-full max-w-md mx-auto grid grid-cols-2 gap-2.5 flex-1",children:U||!v?Array.from({length:j}).map((t,a)=>s.jsx("div",{className:"aspect-[7/6] rounded-2xl bg-muted animate-pulse"},a)):v.length===0?s.jsxs("div",{className:"col-span-2 flex flex-col items-center justify-center py-12 text-muted-foreground",children:[s.jsx("p",{className:"text-sm mb-3",children:"No options available right now."}),s.jsx(tt,{variant:"outline",onClick:()=>N([]),children:"Skip"})]}):v.map((t,a)=>{const e=S.has(a);return s.jsxs("button",{disabled:k,onClick:()=>q(n=>{const i=new Set(n);return i.has(a)?i.delete(a):i.add(a),i}),"aria-pressed":e,className:`relative aspect-[7/6] rounded-2xl overflow-hidden border-2 bg-muted text-left group active:scale-[0.98] transition disabled:opacity-60 ${e?"border-primary ring-2 ring-primary/40":"border-border"}`,children:[t.thumbnail_url?s.jsx("img",{src:Q(t.thumbnail_url),alt:t.title,loading:"lazy",className:"absolute inset-0 h-full w-full object-cover"}):null,s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/10 to-transparent"}),W&&(l.preview==="deezer"||t.preview_url||t.external_url)&&s.jsxs("button",{type:"button",onClick:n=>{n.stopPropagation(),Z(t,a)},className:"absolute top-2 right-2 z-10 inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-black/55 backdrop-blur text-white text-[10px] hover:bg-black/70",children:[l.preview==="deezer"&&L===a?s.jsx(et,{className:"h-3 w-3"}):l.preview==="deezer"?s.jsx(it,{className:"h-3 w-3"}):s.jsx(at,{className:"h-3 w-3"}),W]}),e&&s.jsx("span",{className:"absolute top-2 left-2 z-10 inline-flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:s.jsx(nt,{className:"h-3.5 w-3.5"})}),s.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-2.5 text-white",children:[s.jsx("div",{className:"text-[13px] font-semibold leading-tight line-clamp-2",children:t.title}),t.subtitle&&s.jsx("div",{className:"text-[10px] text-white/80 line-clamp-1 mt-0.5",children:t.subtitle})]})]},a)})}),s.jsxs("div",{className:"w-full max-w-md mx-auto mt-4 flex items-center gap-2",children:[s.jsx("button",{onClick:()=>N([]),disabled:k,className:"flex-1 py-3 rounded-2xl border border-border text-sm font-medium text-muted-foreground hover:bg-muted/50 active:scale-[0.99] transition disabled:opacity-60",children:"None of these"}),s.jsxs("button",{onClick:()=>N(Array.from(S)),disabled:k||S.size===0,className:"flex-1 py-3 rounded-2xl bg-primary text-primary-foreground text-sm font-semibold active:scale-[0.99] transition disabled:opacity-40 inline-flex items-center justify-center gap-2",children:[k?s.jsx(st,{className:"h-4 w-4 animate-spin"}):null,S.size>0?`Continue (${S.size})`:"Continue"]})]}),s.jsx("p",{className:"text-center text-[11px] text-muted-foreground mt-3",children:"Pick as many as you like — just so we can learn about your taste!"})]}):null};export{Ge 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.