PageSourceSearch

https://babki.app/build/assets/Notifications-D_dIpXOq.js

js babki.app collected 2026-09-24 13:55:50 UTC 4,619 bytes, 1 lines download raw bytes

1import{_ as b}from"./index-CqRaUld1.js";import{u as y}from"./usePushNotifications-BX4odJzh.js";import{_ as w}from"./OnboardingLayout.vue_vue_type_script_setup_true_lang-WuT2qUsa.js";import{C as _}from"./index-Dlm2pfU4.js";import{f as z,y as C,r as n,p as f,j as c,l as t,i as a,k as e,t as o,o as g,n as N,m as u,v as j}from"./index-CRYugZLt.js";import{u as B}from"./vue-i18n-Cal7oQXV.js";import{B as x,Z as S}from"./zap-6GF1xFdW.js";import{G as V}from"./gift-DLu6pWWR.js";import{T as P}from"./trending-up-sjWTGlPf.js";import"./utils-BQHNewu7.js";import"./Primitive-Bdr2_B-P.js";import"./usePostHog-C_IwsGB_.js";import"./AppLogoIcon.vue_vue_type_script_setup_true_lang-Byh-W2Yw.js";import"./createLucideIcon-DcwJkYgN.js";const T={class:"rounded-2xl bg-white p-8 shadow-xl dark:bg-zinc-800"},E={class:"space-y-8"},G={class:"text-center"},I={class:"mb-4 flex justify-center"},Z={class:"flex h-16 w-16 items-center justify-center rounded-full bg-blue-100 dark:bg-blue-950/30"},$={class:"text-3xl font-bold text-gray-900 dark:text-white"},D={class:"mt-2 text-gray-600 dark:text-zinc-400"},F={class:"space-y-3"},L={class:"flex items-center gap-3 rounded-lg border-2 border-gray-200 bg-white p-3 dark:border-zinc-700 dark:bg-zinc-800/50"},M={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-yellow-100 dark:bg-yellow-950/30"},O={class:"flex-1 text-left"},R={class:"text-sm font-medium text-gray-900 dark:text-white"},U={class:"text-xs text-gray-600 dark:text-zinc-400"},q={class:"flex items-center gap-3 rounded-lg border-2 border-gray-200 bg-white p-3 dark:border-zinc-700 dark:bg-zinc-800/50"},A={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-purple-100 dark:bg-purple-950/30"},H={class:"flex-1 text-left"},J={class:"text-sm font-medium text-gray-900 dark:text-white"},K={class:"text-xs text-gray-600 dark:text-zinc-400"},Q={class:"flex items-center gap-3 rounded-lg border-2 border-gray-200 bg-white p-3 dark:border-zinc-700 dark:bg-zinc-800/50"},W={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-green-100 dark:bg-green-950/30"},X={class:"flex-1 text-left"},Y={class:"text-sm font-medium text-gray-900 dark:text-white"},tt={class:"text-xs text-gray-600 dark:text-zinc-400"},et={class:"rounded-lg bg-blue-50 p-4 dark:bg-blue-950/20"},st={class:"text-xs text-blue-900 dark:text-blue-200"},ot={class:"space-y-3"},kt=z({__name:"Notifications",setup(it){const{t:s}=B(),{checkSupport:p,enable:h,error:m}=y(),i=j(!1),l=_.getPlatform()==="ios",r=l?"/":"/onboarding/review";C(()=>{p()||n.visit("/")});const k=async()=>{i.value=!0;try{await h(_.getPlatform())?n.visit(r):(console.error("Failed to enable notifications:",m.value),n.visit(r))}catch(d){console.error("Error enabling notifications:",d),n.visit(r)}finally{i.value=!1}},v=()=>{n.visit(r)};return(d,at)=>(g(),f(w,{"current-step":2,"total-steps":l?2:3},{default:c(()=>[t("div",T,[t("div",E,[t("div",G,[t("div",I,[t("div",Z,[a(e(x),{class:"h-8 w-8 text-blue-600 dark:text-blue-400"})])]),t("h1",$,o(e(s)("onboarding.notifications.title")),1),t("p",D,o(e(s)("onboarding.notifications.subtitle")),1)]),t("div",F,[t("div",L,[t("div",M,[a(e(S),{class:"h-5 w-5 text-yellow-600 dark:text-yellow-400"})]),t("div",O,[t("p",R,o(e(s)("onboarding.notifications.benefit_surveys_title")),1),t("p",U,o(e(s)("onboarding.notifications.benefit_surveys_body")),1)])]),t("div",q,[t("div",A,[a(e(V),{class:"h-5 w-5 text-purple-600 dark:text-purple-400"})]),t("div",H,[t("p",J,o(e(s)("onboarding.notifications.benefit_bonus_title")),1),t("p",K,o(e(s)("onboarding.notifications.benefit_bonus_body")),1)])]),t("div",Q,[t("div",W,[a(e(P),{class:"h-5 w-5 text-green-600 dark:text-green-400"})]),t("div",X,[t("p",Y,o(e(s)("onboarding.notifications.benefit_streak_title")),1),t("p",tt,o(e(s)("onboarding.notifications.benefit_streak_body")),1)])])]),t("div",et,[t("p",st,o(e(s)("onboarding.notifications.info_note")),1)]),t("div",ot,[a(e(b),{onClick:k,disabled:i.value,class:"w-full bg-blue-600 py-6 text-lg font-semibold hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",size:"lg"},{default:c(()=>[i.value?N("",!0):(g(),f(e(x),{key:0,class:"mr-2 h-5 w-5"})),u(" "+o(i.value?e(s)("onboarding.notifications.enabling"):e(s)("onboarding.notifications.enable_cta")),1)]),_:1},8,["disabled"]),a(e(b),{onClick:v,disabled:i.value,variant:"ghost",class:"w-full py-6 text-lg font-semibold text-gray-600 hover:bg-gray-100 dark:text-zinc-400 dark:hover:bg-zinc-700",size:"lg"},{default:c(()=>[u(o(e(s)("onboarding.notifications.skip_cta")),1)]),_:1},8,["disabled"])])])])]),_:1},8,["total-steps"]))}});
1export{kt 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.