{"release_id":"01a21177-ea43-0000-5cf2-858dc27dec6b","chunk_id":"01a21177-eb63-7b81-809b-4afe54aab13d","file":"Dyu___Ni.mjs","mappings":"qTAwBO,SAASA,EAAWC,EAA8B,CACxD,OAAOA,EAAO,gBAAgB,mBAAmBA,CAAI,CAAC,GAAK,SAC5D,CAMO,SAASC,EAAeC,EAIjB,CACb,MAAI,CAACA,EAAE,MAAQA,EAAE,YAAc,CAACA,EAAE,YAAoB,CAAE,KAAM,QAAA,EACvD,CAAE,KAAM,MAAA,CAChB","names":["verifyHref","next","navVerifyState","d"],"sources":["../../../../../../src/lib/verification-copy.ts"],"sourcesContent":["// Human sentences for a Didit decline reason (server/verification/didit-outcome\n// DeclineReason). Client-safe: /verify renders these. UI copy is English only.\n\nconst REASON_COPY: Record<string, string> = {\n\tdocument_expired: 'Your ID has expired. Use a valid ID and try again.',\n\timage_quality: 'The photo of your ID was too blurry, dark or bright. Try again in good light.',\n\tface_mismatch: \"Your selfie didn't match the photo on your ID. Try again with the same ID.\",\n\tliveness: \"We couldn't confirm the selfie was live. Look straight at the camera and try again.\",\n\tdocument_unreadable: 'Part of your ID was cut off or covered. Fit the whole ID in the frame.',\n\tduplicate_cleared: 'A moderator cleared your account. Run the check again to get verified.',\n\trevoked: 'A moderator removed your check after a report. Verify again to get it back.',\n\tother: \"Something in the check didn't pass. Try again with a valid ID in good light.\"\n};\n\nexport function declineReasonText(reason: string | null | undefined): string {\n\treturn REASON_COPY[reason ?? 'other'] ?? REASON_COPY.other;\n}\n\n/** API error a gated endpoint returns when the caller isn't verified. */\nexport const VERIFICATION_REQUIRED = 'verification_required';\n/** API error when the recipient only takes new contact from verified members. */\nexport const VERIFIED_ONLY = 'verified_only';\n\n/** /verify link that returns to `next` afterwards. */\nexport function verifyHref(next?: string | null): string {\n\treturn next ? `/verify?next=${encodeURIComponent(next)}` : '/verify';\n}\n\nexport type NavVerify = { kind: 'hidden' } | { kind: 'wait' };\n\n/** The nav menu's verify row, off layout data only (no extra request): only\n *  while Didit reviews an ID check. The blue-check ask itself lives in settings. */\nexport function navVerifyState(d: {\n\tuser?: unknown;\n\tisVerified?: boolean;\n\tkycInReview?: boolean;\n}): NavVerify {\n\tif (!d.user || d.isVerified || !d.kycInReview) return { kind: 'hidden' };\n\treturn { kind: 'wait' };\n}\n"],"version":3}