{"version":3,"file":"TriggerAndDd.a0503323.js","sources":["../../../../../../src/lib/directive/click-outside.ts","../../../../../../src/lib/components/TriggerAndDd.svelte"],"sourcesContent":["export function clickOutside(node: HTMLElement, excludedNode: HTMLElement | null) {\n\tconst handleClick = (event) => {\n\t\tif (node.contains(event.target)) {\n\t\t\treturn;\n\t\t}\n\t\tif (excludedNode?.contains(event.target) ?? true) {\n\t\t\treturn;\n\t\t}\n\n\t\tnode.dispatchEvent(new CustomEvent('outclick'));\n\t};\n\n\tdocument.addEventListener('click', handleClick, true);\n\n\treturn {\n\t\tdestroy() {\n\t\t\tdocument.removeEventListener('click', handleClick, true);\n\t\t}\n\t};\n}\n","\n\n
\n\t {\n\t\t\tif (disabled) return;\n\t\t\tshowTooltip = !showTooltip;\n\t\t}}\n\t\tbind:this={buttonRef}\n\t\ttype=\"button\"\n\t\tclass:pointer-events-none={disabled}\n\t>\n\t\t\n\t\t\ttrigger\n\t\t\n\t\n\t{#if showTooltip}\n\t\t {\n\t\t\t\tshowTooltip = false;\n\t\t\t}}\n\t\t\ton:click|stopPropagation={() => {\n\t\t\t\tif (autoclose) {\n\t\t\t\t\tshowTooltip = false;\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t\n\t\t\t\ttooltip\n\t\t\t\n\t\t\n\t{/if}\n
\n"],"names":["clickOutside","node","excludedNode","handleClick","event","insert_hydration","target","span","anchor","attr","button","button_class_value","ctx","current","dirty","button_intro","create_in_transition","fly","create_if_block","div","append_hydration","placement","$$props","disabled","onTop","strategy","autoclose","floatingRef","floatingContent","createFloatingActions","offset","shift","buttonRef","showTooltip","style","$$invalidate","$$value"],"mappings":"gsBAAgB,SAAAA,GAAaC,EAAmBC,EAAkC,CAC3E,MAAAC,EAAeC,GAAU,CAC1BH,EAAK,SAASG,EAAM,MAAM,KAG1BF,GAAA,YAAAA,EAAc,SAASE,EAAM,UAAW,KAI5CH,EAAK,cAAc,IAAI,YAAY,UAAU,CAAC,CAAA,EAGtC,gBAA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