{"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