{"release_id":"01a1c502-4ad1-0000-ec62-adc54d3c69aa","chunk_id":"01a1c502-4bdd-7470-a1ec-bdce8391f349","file":"BmfkiXxO.mjs","mappings":"+7CAAA,SAmB6B,IAAAA,kBAAU,MAAM,QAEtCC,EAAaC,EAAA,IAAAC,EAAA,aAA2B,UAAYC,EAAE,aAAa,EAAIA,EAAE,QAAQ,CAAA,MACnFC,EAAOC,EAAO,EAAK,EAEd,SAAAC,GAAU,cAElBC,EAAAH,EAAO,EAAI,CACZ,6BAIC,IAAAI,EAAAC,EAAA,EAAAC,EAAA,IAAAC,EAAAH,EAAA,aAAAN,EAAA,OAAAU,EAIqBZ,CAAa,CAAA,CAAA,EAJlCa,EAAA,QAAAL,EAESF,CAAO,EAFhBQ,EAAAC,EAAAP,CAAA,SAoBA,IAAAQ,EAAAC,EAAA,EAAAC,EAAAC,EAAAH,EAAA,EAAA,EAAAI,EAAAJ,CAAA,uBAKUhB,CAAa,CAAA,CAAA,EALvBa,EAAA,QAAAG,EAESV,CAAO,EAFhBQ,EAAAC,EAAAC,CAAA,SAQA,IAAAK,EAAAC,EAAA,EAAAC,EAAAC,EAAAL,EAAAE,CAAA,CAAA,EAAAD,EAAAC,CAAA,2BAkBUrB,CAAa,GAAA,EAAA,EAAA,CAAA,EAlBvBa,EAAA,QAAAQ,EAESf,CAAO,EAFhBQ,EAAAC,EAAAM,CAAA,WA7BGtB,EAAO,IAAK,OAAM0B,EAAAC,CAAA,EAoBb3B,EAAO,IAAK,OAAM0B,EAAAE,EAAA,CAAA,EAAAF,EAAAG,EAAA,EAAA,iBA+B3BC,EAAkBC,EAAA,yEAAmD,QAAA,IAAAvB,EAAAH,EAAO,EAAK,MAA9D,MAAS,kBAAT,KAAS2B,EAAA,wBArDrB","names":["variant","fallbackLabel","$.derived","$$props","t","open","$.state","trigger","$.set","button","root_1","$.template_effect","$.set_attribute","$.get","$.delegated","$.append","$$anchor","button_1","root_2","text","$.child","$.reset","button_2","root_3","text_1","$.sibling","$$render","consequent","consequent_1","alternate","ReportContentModal","node_1","$$value"],"sources":["../../../../../../src/lib/components/ReportTrigger.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { t } from '$lib/i18n';\n\t// Unified report entry point — one component, three visual variants matching\n\t// the trigger styles already in the wild: 'link' (faint underline text, the\n\t// arena/rate/duel style), 'flag' (icon over media, the contest style),\n\t// 'menu' (overflow-menu row, the PostCard style). Owns its modal so callers\n\t// only place the trigger.\n\timport ReportContentModal from '$lib/components/ReportContentModal.svelte';\n\timport type { ReportEntityType } from '$lib/report-entity';\n\n\ttype Props = {\n\t\tentityType: ReportEntityType;\n\t\tentityId: string;\n\t\tvariant?: 'link' | 'flag' | 'menu';\n\t\tlabel?: string;\n\t\t/** Runs before the modal opens — e.g. close the parent overflow menu. */\n\t\tonopen?: () => void;\n\t};\n\n\tlet { entityType, entityId, variant = 'link', label, onopen }: Props = $props();\n\n\tconst fallbackLabel = $derived(entityType === 'profile' ? t('report user') : t('report'));\n\tlet open = $state(false);\n\n\tfunction trigger() {\n\t\tonopen?.();\n\t\topen = true;\n\t}\n</script>\n\n{#if variant === 'flag'}\n\t<button\n\t\ttype=\"button\"\n\t\tonclick={trigger}\n\t\tclass=\"absolute top-3 right-3 z-10 rounded-full bg-black/45 p-1.5 text-white/70 backdrop-blur-sm transition-colors hover:text-white\"\n\t\taria-label={label ?? fallbackLabel}\n\t>\n\t\t<svg\n\t\t\tclass=\"h-4 w-4\"\n\t\t\tfill=\"none\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstroke-width=\"2\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t>\n\t\t\t<path d=\"M5 21V4\" />\n\t\t\t<path d=\"M5 4h12l-2.5 3.5L17 11H5\" />\n\t\t</svg>\n\t</button>\n{:else if variant === 'menu'}\n\t<button\n\t\ttype=\"button\"\n\t\tonclick={trigger}\n\t\tclass=\"block w-full px-3 py-2 text-left text-text hover:bg-surface\"\n\t>\n\t\t{label ?? fallbackLabel}\n\t</button>\n{:else}\n\t<button\n\t\ttype=\"button\"\n\t\tonclick={trigger}\n\t\tclass=\"inline-flex items-center gap-1.5 text-[13px] text-muted/60 underline-offset-2 transition-colors hover:text-muted hover:underline\"\n\t>\n\t\t<svg\n\t\t\tclass=\"h-4 w-4\"\n\t\t\tfill=\"none\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstroke-width=\"2\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t\taria-hidden=\"true\"\n\t\t>\n\t\t\t<path d=\"M5 21V4\" />\n\t\t\t<path d=\"M5 4h12l-2.5 3.5L17 11H5\" />\n\t\t</svg>\n\t\t{label ?? fallbackLabel}\n\t</button>\n{/if}\n\n<ReportContentModal bind:open {entityType} {entityId} onclose={() => (open = false)} />\n"],"version":3}