Graduation / ui /build /_app /immutable /chunks /Checkbox.BgvkeQEA.js.map
DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
{"version":3,"file":"Checkbox.BgvkeQEA.js","sources":["../../../../../../src/lib/components/common/Checkbox.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { createEventDispatcher } from 'svelte';\n\tconst dispatch = createEventDispatcher();\n\n\texport let state = 'unchecked';\n\texport let indeterminate = false;\n\n\tlet _state = 'unchecked';\n\n\t$: _state = state;\n</script>\n\n<button\n\tclass=\" outline -outline-offset-1 outline-[1.5px] outline-gray-200 dark:outline-gray-600 {state !==\n\t'unchecked'\n\t\t? 'bg-black outline-black '\n\t\t: 'hover:outline-gray-500 hover:bg-gray-50 dark:hover:bg-gray-800'} text-white transition-all rounded inline-block w-3.5 h-3.5 relative\"\n\ton:click={() => {\n\t\tif (_state === 'unchecked') {\n\t\t\t_state = 'checked';\n\t\t\tdispatch('change', _state);\n\t\t} else if (_state === 'checked') {\n\t\t\t_state = 'unchecked';\n\t\t\tif (!indeterminate) {\n\t\t\t\tdispatch('change', _state);\n\t\t\t}\n\t\t} else if (indeterminate) {\n\t\t\t_state = 'checked';\n\t\t\tdispatch('change', _state);\n\t\t}\n\t}}\n\ttype=\"button\"\n>\n\t<div class=\"top-0 left-0 absolute w-full flex justify-center\">\n\t\t{#if _state === 'checked'}\n\t\t\t<svg\n\t\t\t\tclass=\"w-3.5 h-3.5\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\td=\"m5 12 4.7 4.5 9.3-9\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t{:else if indeterminate}\n\t\t\t<svg\n\t\t\t\tclass=\"w-3 h-3.5 text-gray-800 dark:text-white\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\td=\"M5 12h14\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t{/if}\n\t</div>\n\n\t<!-- {checked} -->\n</button>\n"],"names":["insert_hydration","target","svg","anchor","append_hydration","path","ctx","create_if_block","create_if_block_1","attr","button","button_class_value","div","dirty","dispatch","createEventDispatcher","state","$$props","indeterminate","_state","$$invalidate"],"mappings":"kwBAmDGA,EAcKC,EAAAC,EAAAC,CAAA,EAPJC,EAMCF,EAAAG,CAAA,olBA7BFL,EAcKC,EAAAC,EAAAC,CAAA,EAPJC,EAMCF,EAAAG,CAAA,8DAdE,GAAAC,OAAW,UAAS,OAAAC,KAgBfD,EAAa,CAAA,EAAA,OAAAE,sRArCkEC,EAAAC,EAAA,QAAAC,EAAA,qFAAAL,OAC1F,YACG,0BACA,kEAAgE,sEAAA,+BAJpEN,EA0DQC,EAAAS,EAAAP,CAAA,EArCPC,EAkCKM,EAAAE,CAAA,oHAtDqFC,EAAA,GAAAF,KAAAA,EAAA,qFAAAL,OAC1F,YACG,0BACA,kEAAgE,0JAd7DQ,EAAWC,QAEN,MAAAC,EAAQ,WAAA,EAAAC,GACR,cAAAC,EAAgB,EAAA,EAAAD,EAEvBE,EAAS,yBAWRA,IAAW,aACdC,EAAA,EAAAD,EAAS,SAAS,EAClBL,EAAS,SAAUK,CAAM,GACfA,IAAW,WACrBC,EAAA,EAAAD,EAAS,WAAW,EACfD,GACJJ,EAAS,SAAUK,CAAM,GAEhBD,IACVE,EAAA,EAAAD,EAAS,SAAS,EAClBL,EAAS,SAAUK,CAAM,+HAnB3BC,EAAA,EAAGD,EAASH,CAAA"}