{ "version": 3, "sources": [ "misc.ts" ], "names": [ "window", "warnOnce", "method", "message", "warned", "console", "warn", "apply", "this", "arguments", "copyAction", "dest", "src", "name", "axis", "edges" ], "mappings": "iBAGSA,MAAc,0BAEhB,SAASC,SAAsBC,EAAiCC,GACrE,IAAIC,GAAS,EAEb,OAAO,WAML,OALKA,IACFJ,EAAeK,QAAQC,KAAKH,GAC7BC,GAAS,GAGJF,EAAOK,MAAMC,KAAMC,mBAIvB,SAASC,WAAmCC,EAAwBC,GAKzE,OAJAD,EAAKE,KAAQD,EAAIC,KACjBF,EAAKG,KAAQF,EAAIE,KACjBH,EAAKI,MAAQH,EAAIG,MAEVJ", "sourcesContent": [ "import { ActionProps } from '@interactjs/core/Interaction'\nimport { ActionName } from '@interactjs/core/scope'\n\nimport { window } from './window'\n\nexport function warnOnce (this: T, method: (...args: any[]) => any, message: string) {\n let warned = false\n\n return function (this: T) {\n if (!warned) {\n (window as any).console.warn(message)\n warned = true\n }\n\n return method.apply(this, arguments)\n }\n}\n\nexport function copyAction (dest: ActionProps, src: ActionProps) {\n dest.name = src.name\n dest.axis = src.axis\n dest.edges = src.edges\n\n return dest\n}\n" ] }