{"release_id":"01a2309f-d47d-0000-29bc-a17a97e31fa5","chunk_id":"01a2309f-d5e8-7820-a177-0d036455dbe8","file":"U29RzW2C.mjs","mappings":"geAAA,SAeuB,IAAAA,eAAO,EAAK,EAAEC,iBAAS,EAAK,EAGlD,IAAAC,EAAAC,EAAA,SAAAC,EAAAF,EAAA,eAAAG,EAAA,OAAA,EAAAD,EAAAF,EAAA,aAAAG,EAAA,KAAA,EAAAD,EAAAF,EAAA,gBAMeF,EAAI,GAAIC,EAAM,EAAG,OAAS,MAAS,EANlDG,EAAAF,EAAA,cAOaD,EAAM,EAAG,GAAK,MAAS,EAPpCG,EAAAF,EAAA,mBAAAG,EAAA,WAAA,EAAAD,EAAAF,EAAA,UAAAG,EAAA,EAAA,cAAAH,EAAA,IAUe,CACT,CAAAF,EAAI,IAAKC,EAAM,GAAAI,EAAA,QAAA,CACrB,CAAC,EAZDC,EAAAC,EAAAL,CAAA,KAFO","names":["busy","locked","button","root","$.set_attribute","$$props","$.append","$$anchor"],"sources":["../../../../../../src/lib/components/p/Switch.svelte"],"sourcesContent":["<script lang=\"ts\">\n\t// The one /p switch (mock .sw): 51×31 visual, 44px+ hit area via ::before.\n\t// State reads from fill + knob position, the label lives in the row.\n\tinterface Props {\n\t\tchecked: boolean;\n\t\tlabel: string;\n\t\tbusy?: boolean;\n\t\t/** can't be turned off from here (the last block scope still on): dimmed, the row says why */\n\t\tlocked?: boolean;\n\t\tdescribedby?: string;\n\t\tonclick: () => void;\n\t\t/** analytics target, `group:item` (the /p layout's delegated listener) */\n\t\tph?: string;\n\t}\n\n\tlet { checked, label, busy = false, locked = false, describedby, onclick, ph }: Props = $props();\n</script>\n\n<button\n\tclass=\"p-sw\"\n\ttype=\"button\"\n\trole=\"switch\"\n\taria-checked={checked}\n\taria-label={label}\n\taria-disabled={busy || locked ? 'true' : undefined}\n\tdata-locked={locked ? '' : undefined}\n\taria-describedby={describedby}\n\tdata-ph={ph}\n\tonclick={() => {\n\t\tif (!busy && !locked) onclick();\n\t}}\n></button>\n"],"version":3}