ADAPT-Chase commited on
Commit
e47288c
·
verified ·
1 Parent(s): 4f2be53

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.d.ts +13 -0
  2. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js.map +1 -0
  3. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.d.ts +1 -0
  4. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js.map +1 -0
  5. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.d.ts +3 -0
  6. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +27 -0
  7. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js.map +1 -0
  8. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.d.ts +10 -0
  9. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +51 -0
  10. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js.map +1 -0
  11. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/utils/js_utils.d.ts +6 -0
  12. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +30 -0
  13. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/NativeDragSources/NativeDragSource.ts +63 -0
  14. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/NativeDragSources/getDataFromDataTransfer.ts +12 -0
  15. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/NativeDragSources/index.ts +36 -0
  16. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/OptionsReader.ts +38 -0
  17. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/index.ts +15 -0
  18. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/utils/js_utils.ts +30 -0
  19. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd/dist/index.js +5 -0
  20. platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd/dist/index.js.map +1 -0
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.d.ts ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { DragDropMonitor } from 'dnd-core';
2
+ import type { NativeItemConfig } from './nativeTypesConfig.js';
3
+ export declare class NativeDragSource {
4
+ item: any;
5
+ private config;
6
+ constructor(config: NativeItemConfig);
7
+ private initializeExposedProperties;
8
+ loadDataTransfer(dataTransfer: DataTransfer | null | undefined): void;
9
+ canDrag(): boolean;
10
+ beginDrag(): any;
11
+ isDragging(monitor: DragDropMonitor, handle: string): boolean;
12
+ endDrag(): void;
13
+ }
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"sources":["../../src/NativeDragSources/NativeDragSource.ts"],"sourcesContent":["import type { DragDropMonitor } from 'dnd-core'\n\nimport type { NativeItemConfig } from './nativeTypesConfig.js'\n\nexport class NativeDragSource {\n\tpublic item: any\n\tprivate config: NativeItemConfig\n\n\tpublic constructor(config: NativeItemConfig) {\n\t\tthis.config = config\n\t\tthis.item = {}\n\t\tthis.initializeExposedProperties()\n\t}\n\n\tprivate initializeExposedProperties() {\n\t\tObject.keys(this.config.exposeProperties).forEach((property) => {\n\t\t\tObject.defineProperty(this.item, property, {\n\t\t\t\tconfigurable: true, // This is needed to allow redefining it later\n\t\t\t\tenumerable: true,\n\t\t\t\tget() {\n\t\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t`Browser doesn't allow reading \"${property}\" until the drop event.`,\n\t\t\t\t\t)\n\t\t\t\t\treturn null\n\t\t\t\t},\n\t\t\t})\n\t\t})\n\t}\n\n\tpublic loadDataTransfer(dataTransfer: DataTransfer | null | undefined): void {\n\t\tif (dataTransfer) {\n\t\t\tconst newProperties: PropertyDescriptorMap = {}\n\t\t\tObject.keys(this.config.exposeProperties).forEach((property) => {\n\t\t\t\tconst propertyFn = this.config.exposeProperties[property]\n\t\t\t\tif (propertyFn != null) {\n\t\t\t\t\tnewProperties[property] = {\n\t\t\t\t\t\tvalue: propertyFn(dataTransfer, this.config.matchesTypes),\n\t\t\t\t\t\tconfigurable: true,\n\t\t\t\t\t\tenumerable: true,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t\tObject.defineProperties(this.item, newProperties)\n\t\t}\n\t}\n\n\tpublic canDrag(): boolean {\n\t\treturn true\n\t}\n\n\tpublic beginDrag(): any {\n\t\treturn this.item\n\t}\n\n\tpublic isDragging(monitor: DragDropMonitor, handle: string): boolean {\n\t\treturn handle === monitor.getSourceId()\n\t}\n\n\tpublic endDrag(): void {\n\t\t// empty\n\t}\n}\n"],"names":["NativeDragSource","initializeExposedProperties","Object","keys","config","exposeProperties","forEach","property","defineProperty","item","configurable","enumerable","get","console","warn","loadDataTransfer","dataTransfer","newProperties","propertyFn","value","matchesTypes","defineProperties","canDrag","beginDrag","isDragging","monitor","handle","getSourceId","endDrag"],"mappings":"AAIA,OAAO,MAAMA,gBAAgB;IAU5B,AAAQC,2BAA2B,GAAG;QACrCC,MAAM,CAACC,IAAI,CAAC,IAAI,CAACC,MAAM,CAACC,gBAAgB,CAAC,CAACC,OAAO,CAAC,CAACC,QAAQ,GAAK;YAC/DL,MAAM,CAACM,cAAc,CAAC,IAAI,CAACC,IAAI,EAAEF,QAAQ,EAAE;gBAC1CG,YAAY,EAAE,IAAI;gBAClBC,UAAU,EAAE,IAAI;gBAChBC,GAAG,IAAG;oBACL,sCAAsC;oBACtCC,OAAO,CAACC,IAAI,CACX,CAAC,+BAA+B,EAAEP,QAAQ,CAAC,uBAAuB,CAAC,CACnE;oBACD,OAAO,IAAI,CAAA;iBACX;aACD,CAAC;SACF,CAAC;KACF;IAED,AAAOQ,gBAAgB,CAACC,YAA6C,EAAQ;QAC5E,IAAIA,YAAY,EAAE;YACjB,MAAMC,aAAa,GAA0B,EAAE;YAC/Cf,MAAM,CAACC,IAAI,CAAC,IAAI,CAACC,MAAM,CAACC,gBAAgB,CAAC,CAACC,OAAO,CAAC,CAACC,QAAQ,GAAK;gBAC/D,MAAMW,UAAU,GAAG,IAAI,CAACd,MAAM,CAACC,gBAAgB,CAACE,QAAQ,CAAC;gBACzD,IAAIW,UAAU,IAAI,IAAI,EAAE;oBACvBD,aAAa,CAACV,QAAQ,CAAC,GAAG;wBACzBY,KAAK,EAAED,UAAU,CAACF,YAAY,EAAE,IAAI,CAACZ,MAAM,CAACgB,YAAY,CAAC;wBACzDV,YAAY,EAAE,IAAI;wBAClBC,UAAU,EAAE,IAAI;qBAChB;iBACD;aACD,CAAC;YACFT,MAAM,CAACmB,gBAAgB,CAAC,IAAI,CAACZ,IAAI,EAAEQ,aAAa,CAAC;SACjD;KACD;IAED,AAAOK,OAAO,GAAY;QACzB,OAAO,IAAI,CAAA;KACX;IAED,AAAOC,SAAS,GAAQ;QACvB,OAAO,IAAI,CAACd,IAAI,CAAA;KAChB;IAED,AAAOe,UAAU,CAACC,OAAwB,EAAEC,MAAc,EAAW;QACpE,OAAOA,MAAM,KAAKD,OAAO,CAACE,WAAW,EAAE,CAAA;KACvC;IAED,AAAOC,OAAO,GAAS;IACtB,QAAQ;KACR;IArDD,YAAmBxB,MAAwB,CAAE;QAC5C,IAAI,CAACA,MAAM,GAAGA,MAAM;QACpB,IAAI,CAACK,IAAI,GAAG,EAAE;QACd,IAAI,CAACR,2BAA2B,EAAE;KAClC;CAkDD"}
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare function getDataFromDataTransfer(dataTransfer: DataTransfer, typesToTry: string[], defaultValue: string): string;
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"sources":["../../src/NativeDragSources/getDataFromDataTransfer.ts"],"sourcesContent":["export function getDataFromDataTransfer(\n\tdataTransfer: DataTransfer,\n\ttypesToTry: string[],\n\tdefaultValue: string,\n): string {\n\tconst result = typesToTry.reduce(\n\t\t(resultSoFar, typeToTry) => resultSoFar || dataTransfer.getData(typeToTry),\n\t\t'',\n\t)\n\n\treturn result != null ? result : defaultValue\n}\n"],"names":["getDataFromDataTransfer","dataTransfer","typesToTry","defaultValue","result","reduce","resultSoFar","typeToTry","getData"],"mappings":"AAAA,OAAO,SAASA,uBAAuB,CACtCC,YAA0B,EAC1BC,UAAoB,EACpBC,YAAoB,EACX;IACT,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAC/B,CAACC,WAAW,EAAEC,SAAS,GAAKD,WAAW,IAAIL,YAAY,CAACO,OAAO,CAACD,SAAS,CAAC;IAAA,EAC1E,EAAE,CACF;IAED,OAAOH,MAAM,IAAI,IAAI,GAAGA,MAAM,GAAGD,YAAY,CAAA;CAC7C"}
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { NativeDragSource } from './NativeDragSource.js';
2
+ export declare function createNativeDragSource(type: string, dataTransfer?: DataTransfer): NativeDragSource;
3
+ export declare function matchNativeItemType(dataTransfer: DataTransfer | null): string | null;
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { NativeDragSource } from './NativeDragSource.js';
2
+ import { nativeTypesConfig } from './nativeTypesConfig.js';
3
+ export function createNativeDragSource(type, dataTransfer) {
4
+ const config = nativeTypesConfig[type];
5
+ if (!config) {
6
+ throw new Error(`native type ${type} has no configuration`);
7
+ }
8
+ const result = new NativeDragSource(config);
9
+ result.loadDataTransfer(dataTransfer);
10
+ return result;
11
+ }
12
+ export function matchNativeItemType(dataTransfer) {
13
+ if (!dataTransfer) {
14
+ return null;
15
+ }
16
+ const dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || []);
17
+ return Object.keys(nativeTypesConfig).filter((nativeItemType)=>{
18
+ const typeConfig = nativeTypesConfig[nativeItemType];
19
+ if (!(typeConfig === null || typeConfig === void 0 ? void 0 : typeConfig.matchesTypes)) {
20
+ return false;
21
+ }
22
+ return typeConfig.matchesTypes.some((t)=>dataTransferTypes.indexOf(t) > -1
23
+ );
24
+ })[0] || null;
25
+ }
26
+
27
+ //# sourceMappingURL=index.js.map
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"sources":["../../src/NativeDragSources/index.ts"],"sourcesContent":["import { NativeDragSource } from './NativeDragSource.js'\nimport { nativeTypesConfig } from './nativeTypesConfig.js'\n\nexport function createNativeDragSource(\n\ttype: string,\n\tdataTransfer?: DataTransfer,\n): NativeDragSource {\n\tconst config = nativeTypesConfig[type]\n\tif (!config) {\n\t\tthrow new Error(`native type ${type} has no configuration`)\n\t}\n\tconst result = new NativeDragSource(config)\n\tresult.loadDataTransfer(dataTransfer)\n\treturn result\n}\n\nexport function matchNativeItemType(\n\tdataTransfer: DataTransfer | null,\n): string | null {\n\tif (!dataTransfer) {\n\t\treturn null\n\t}\n\n\tconst dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || [])\n\treturn (\n\t\tObject.keys(nativeTypesConfig).filter((nativeItemType) => {\n\t\t\tconst typeConfig = nativeTypesConfig[nativeItemType]\n\t\t\tif (!typeConfig?.matchesTypes) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t\treturn typeConfig.matchesTypes.some(\n\t\t\t\t(t) => dataTransferTypes.indexOf(t) > -1,\n\t\t\t)\n\t\t})[0] || null\n\t)\n}\n"],"names":["NativeDragSource","nativeTypesConfig","createNativeDragSource","type","dataTransfer","config","Error","result","loadDataTransfer","matchNativeItemType","dataTransferTypes","Array","prototype","slice","call","types","Object","keys","filter","nativeItemType","typeConfig","matchesTypes","some","t","indexOf"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,uBAAuB,CAAA;AACxD,SAASC,iBAAiB,QAAQ,wBAAwB,CAAA;AAE1D,OAAO,SAASC,sBAAsB,CACrCC,IAAY,EACZC,YAA2B,EACR;IACnB,MAAMC,MAAM,GAAGJ,iBAAiB,CAACE,IAAI,CAAC;IACtC,IAAI,CAACE,MAAM,EAAE;QACZ,MAAM,IAAIC,KAAK,CAAC,CAAC,YAAY,EAAEH,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAA;KAC3D;IACD,MAAMI,MAAM,GAAG,IAAIP,gBAAgB,CAACK,MAAM,CAAC;IAC3CE,MAAM,CAACC,gBAAgB,CAACJ,YAAY,CAAC;IACrC,OAAOG,MAAM,CAAA;CACb;AAED,OAAO,SAASE,mBAAmB,CAClCL,YAAiC,EACjB;IAChB,IAAI,CAACA,YAAY,EAAE;QAClB,OAAO,IAAI,CAAA;KACX;IAED,MAAMM,iBAAiB,GAAGC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACV,YAAY,CAACW,KAAK,IAAI,EAAE,CAAC;IAC9E,OACCC,MAAM,CAACC,IAAI,CAAChB,iBAAiB,CAAC,CAACiB,MAAM,CAAC,CAACC,cAAc,GAAK;QACzD,MAAMC,UAAU,GAAGnB,iBAAiB,CAACkB,cAAc,CAAC;QACpD,IAAI,CAACC,CAAAA,UAAU,aAAVA,UAAU,WAAc,GAAxBA,KAAAA,CAAwB,GAAxBA,UAAU,CAAEC,YAAY,CAAA,EAAE;YAC9B,OAAO,KAAK,CAAA;SACZ;QACD,OAAOD,UAAU,CAACC,YAAY,CAACC,IAAI,CAClC,CAACC,CAAC,GAAKb,iBAAiB,CAACc,OAAO,CAACD,CAAC,CAAC,GAAG,CAAC,CAAC;QAAA,CACxC,CAAA;KACD,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CACb;CACD"}
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.d.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ export interface NativeItemConfigExposePropreties {
2
+ [property: string]: (dataTransfer: DataTransfer, matchesTypes: string[]) => any;
3
+ }
4
+ export interface NativeItemConfig {
5
+ exposeProperties: NativeItemConfigExposePropreties;
6
+ matchesTypes: string[];
7
+ }
8
+ export declare const nativeTypesConfig: {
9
+ [key: string]: NativeItemConfig;
10
+ };
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as NativeTypes from '../NativeTypes.js';
2
+ import { getDataFromDataTransfer } from './getDataFromDataTransfer.js';
3
+ export const nativeTypesConfig = {
4
+ [NativeTypes.FILE]: {
5
+ exposeProperties: {
6
+ files: (dataTransfer)=>Array.prototype.slice.call(dataTransfer.files)
7
+ ,
8
+ items: (dataTransfer)=>dataTransfer.items
9
+ ,
10
+ dataTransfer: (dataTransfer)=>dataTransfer
11
+ },
12
+ matchesTypes: [
13
+ 'Files'
14
+ ]
15
+ },
16
+ [NativeTypes.HTML]: {
17
+ exposeProperties: {
18
+ html: (dataTransfer, matchesTypes)=>getDataFromDataTransfer(dataTransfer, matchesTypes, '')
19
+ ,
20
+ dataTransfer: (dataTransfer)=>dataTransfer
21
+ },
22
+ matchesTypes: [
23
+ 'Html',
24
+ 'text/html'
25
+ ]
26
+ },
27
+ [NativeTypes.URL]: {
28
+ exposeProperties: {
29
+ urls: (dataTransfer, matchesTypes)=>getDataFromDataTransfer(dataTransfer, matchesTypes, '').split('\n')
30
+ ,
31
+ dataTransfer: (dataTransfer)=>dataTransfer
32
+ },
33
+ matchesTypes: [
34
+ 'Url',
35
+ 'text/uri-list'
36
+ ]
37
+ },
38
+ [NativeTypes.TEXT]: {
39
+ exposeProperties: {
40
+ text: (dataTransfer, matchesTypes)=>getDataFromDataTransfer(dataTransfer, matchesTypes, '')
41
+ ,
42
+ dataTransfer: (dataTransfer)=>dataTransfer
43
+ },
44
+ matchesTypes: [
45
+ 'Text',
46
+ 'text/plain'
47
+ ]
48
+ }
49
+ };
50
+
51
+ //# sourceMappingURL=nativeTypesConfig.js.map
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"sources":["../../src/NativeDragSources/nativeTypesConfig.ts"],"sourcesContent":["import * as NativeTypes from '../NativeTypes.js'\nimport { getDataFromDataTransfer } from './getDataFromDataTransfer.js'\n\nexport interface NativeItemConfigExposePropreties {\n\t[property: string]: (\n\t\tdataTransfer: DataTransfer,\n\t\tmatchesTypes: string[],\n\t) => any\n}\n\nexport interface NativeItemConfig {\n\texposeProperties: NativeItemConfigExposePropreties\n\tmatchesTypes: string[]\n}\n\nexport const nativeTypesConfig: {\n\t[key: string]: NativeItemConfig\n} = {\n\t[NativeTypes.FILE]: {\n\t\texposeProperties: {\n\t\t\tfiles: (dataTransfer: DataTransfer): File[] =>\n\t\t\t\tArray.prototype.slice.call(dataTransfer.files),\n\t\t\titems: (dataTransfer: DataTransfer): DataTransferItemList =>\n\t\t\t\tdataTransfer.items,\n\t\t\tdataTransfer: (dataTransfer: DataTransfer): DataTransfer => dataTransfer,\n\t\t},\n\t\tmatchesTypes: ['Files'],\n\t},\n\t[NativeTypes.HTML]: {\n\t\texposeProperties: {\n\t\t\thtml: (dataTransfer: DataTransfer, matchesTypes: string[]): string =>\n\t\t\t\tgetDataFromDataTransfer(dataTransfer, matchesTypes, ''),\n\t\t\tdataTransfer: (dataTransfer: DataTransfer): DataTransfer => dataTransfer,\n\t\t},\n\t\tmatchesTypes: ['Html', 'text/html'],\n\t},\n\t[NativeTypes.URL]: {\n\t\texposeProperties: {\n\t\t\turls: (dataTransfer: DataTransfer, matchesTypes: string[]): string[] =>\n\t\t\t\tgetDataFromDataTransfer(dataTransfer, matchesTypes, '').split('\\n'),\n\t\t\tdataTransfer: (dataTransfer: DataTransfer): DataTransfer => dataTransfer,\n\t\t},\n\t\tmatchesTypes: ['Url', 'text/uri-list'],\n\t},\n\t[NativeTypes.TEXT]: {\n\t\texposeProperties: {\n\t\t\ttext: (dataTransfer: DataTransfer, matchesTypes: string[]): string =>\n\t\t\t\tgetDataFromDataTransfer(dataTransfer, matchesTypes, ''),\n\t\t\tdataTransfer: (dataTransfer: DataTransfer): DataTransfer => dataTransfer,\n\t\t},\n\t\tmatchesTypes: ['Text', 'text/plain'],\n\t},\n}\n"],"names":["NativeTypes","getDataFromDataTransfer","nativeTypesConfig","FILE","exposeProperties","files","dataTransfer","Array","prototype","slice","call","items","matchesTypes","HTML","html","URL","urls","split","TEXT","text"],"mappings":"AAAA,YAAYA,WAAW,MAAM,mBAAmB,CAAA;AAChD,SAASC,uBAAuB,QAAQ,8BAA8B,CAAA;AActE,OAAO,MAAMC,iBAAiB,GAE1B;IACH,CAACF,WAAW,CAACG,IAAI,CAAC,EAAE;QACnBC,gBAAgB,EAAE;YACjBC,KAAK,EAAE,CAACC,YAA0B,GACjCC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACJ,YAAY,CAACD,KAAK,CAAC;YAAA;YAC/CM,KAAK,EAAE,CAACL,YAA0B,GACjCA,YAAY,CAACK,KAAK;YAAA;YACnBL,YAAY,EAAE,CAACA,YAA0B,GAAmBA,YAAY;SACxE;QACDM,YAAY,EAAE;YAAC,OAAO;SAAC;KACvB;IACD,CAACZ,WAAW,CAACa,IAAI,CAAC,EAAE;QACnBT,gBAAgB,EAAE;YACjBU,IAAI,EAAE,CAACR,YAA0B,EAAEM,YAAsB,GACxDX,uBAAuB,CAACK,YAAY,EAAEM,YAAY,EAAE,EAAE,CAAC;YAAA;YACxDN,YAAY,EAAE,CAACA,YAA0B,GAAmBA,YAAY;SACxE;QACDM,YAAY,EAAE;YAAC,MAAM;YAAE,WAAW;SAAC;KACnC;IACD,CAACZ,WAAW,CAACe,GAAG,CAAC,EAAE;QAClBX,gBAAgB,EAAE;YACjBY,IAAI,EAAE,CAACV,YAA0B,EAAEM,YAAsB,GACxDX,uBAAuB,CAACK,YAAY,EAAEM,YAAY,EAAE,EAAE,CAAC,CAACK,KAAK,CAAC,IAAI,CAAC;YAAA;YACpEX,YAAY,EAAE,CAACA,YAA0B,GAAmBA,YAAY;SACxE;QACDM,YAAY,EAAE;YAAC,KAAK;YAAE,eAAe;SAAC;KACtC;IACD,CAACZ,WAAW,CAACkB,IAAI,CAAC,EAAE;QACnBd,gBAAgB,EAAE;YACjBe,IAAI,EAAE,CAACb,YAA0B,EAAEM,YAAsB,GACxDX,uBAAuB,CAACK,YAAY,EAAEM,YAAY,EAAE,EAAE,CAAC;YAAA;YACxDN,YAAY,EAAE,CAACA,YAA0B,GAAmBA,YAAY;SACxE;QACDM,YAAY,EAAE;YAAC,MAAM;YAAE,YAAY;SAAC;KACpC;CACD,CAAA"}
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/utils/js_utils.d.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ export declare function memoize<T>(fn: () => T): () => T;
2
+ /**
3
+ * drop-in replacement for _.without
4
+ */
5
+ export declare function without<T>(items: T[], item: T): T[];
6
+ export declare function union<T extends string | number>(itemsA: T[], itemsB: T[]): T[];
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // cheap lodash replacements
2
+ export function memoize(fn) {
3
+ let result = null;
4
+ const memoized = ()=>{
5
+ if (result == null) {
6
+ result = fn();
7
+ }
8
+ return result;
9
+ };
10
+ return memoized;
11
+ }
12
+ /**
13
+ * drop-in replacement for _.without
14
+ */ export function without(items, item) {
15
+ return items.filter((i)=>i !== item
16
+ );
17
+ }
18
+ export function union(itemsA, itemsB) {
19
+ const set = new Set();
20
+ const insertItem = (item)=>set.add(item)
21
+ ;
22
+ itemsA.forEach(insertItem);
23
+ itemsB.forEach(insertItem);
24
+ const result = [];
25
+ set.forEach((key)=>result.push(key)
26
+ );
27
+ return result;
28
+ }
29
+
30
+ //# sourceMappingURL=js_utils.js.map
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/NativeDragSources/NativeDragSource.ts ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { DragDropMonitor } from 'dnd-core'
2
+
3
+ import type { NativeItemConfig } from './nativeTypesConfig.js'
4
+
5
+ export class NativeDragSource {
6
+ public item: any
7
+ private config: NativeItemConfig
8
+
9
+ public constructor(config: NativeItemConfig) {
10
+ this.config = config
11
+ this.item = {}
12
+ this.initializeExposedProperties()
13
+ }
14
+
15
+ private initializeExposedProperties() {
16
+ Object.keys(this.config.exposeProperties).forEach((property) => {
17
+ Object.defineProperty(this.item, property, {
18
+ configurable: true, // This is needed to allow redefining it later
19
+ enumerable: true,
20
+ get() {
21
+ // eslint-disable-next-line no-console
22
+ console.warn(
23
+ `Browser doesn't allow reading "${property}" until the drop event.`,
24
+ )
25
+ return null
26
+ },
27
+ })
28
+ })
29
+ }
30
+
31
+ public loadDataTransfer(dataTransfer: DataTransfer | null | undefined): void {
32
+ if (dataTransfer) {
33
+ const newProperties: PropertyDescriptorMap = {}
34
+ Object.keys(this.config.exposeProperties).forEach((property) => {
35
+ const propertyFn = this.config.exposeProperties[property]
36
+ if (propertyFn != null) {
37
+ newProperties[property] = {
38
+ value: propertyFn(dataTransfer, this.config.matchesTypes),
39
+ configurable: true,
40
+ enumerable: true,
41
+ }
42
+ }
43
+ })
44
+ Object.defineProperties(this.item, newProperties)
45
+ }
46
+ }
47
+
48
+ public canDrag(): boolean {
49
+ return true
50
+ }
51
+
52
+ public beginDrag(): any {
53
+ return this.item
54
+ }
55
+
56
+ public isDragging(monitor: DragDropMonitor, handle: string): boolean {
57
+ return handle === monitor.getSourceId()
58
+ }
59
+
60
+ public endDrag(): void {
61
+ // empty
62
+ }
63
+ }
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/NativeDragSources/getDataFromDataTransfer.ts ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export function getDataFromDataTransfer(
2
+ dataTransfer: DataTransfer,
3
+ typesToTry: string[],
4
+ defaultValue: string,
5
+ ): string {
6
+ const result = typesToTry.reduce(
7
+ (resultSoFar, typeToTry) => resultSoFar || dataTransfer.getData(typeToTry),
8
+ '',
9
+ )
10
+
11
+ return result != null ? result : defaultValue
12
+ }
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/NativeDragSources/index.ts ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { NativeDragSource } from './NativeDragSource.js'
2
+ import { nativeTypesConfig } from './nativeTypesConfig.js'
3
+
4
+ export function createNativeDragSource(
5
+ type: string,
6
+ dataTransfer?: DataTransfer,
7
+ ): NativeDragSource {
8
+ const config = nativeTypesConfig[type]
9
+ if (!config) {
10
+ throw new Error(`native type ${type} has no configuration`)
11
+ }
12
+ const result = new NativeDragSource(config)
13
+ result.loadDataTransfer(dataTransfer)
14
+ return result
15
+ }
16
+
17
+ export function matchNativeItemType(
18
+ dataTransfer: DataTransfer | null,
19
+ ): string | null {
20
+ if (!dataTransfer) {
21
+ return null
22
+ }
23
+
24
+ const dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || [])
25
+ return (
26
+ Object.keys(nativeTypesConfig).filter((nativeItemType) => {
27
+ const typeConfig = nativeTypesConfig[nativeItemType]
28
+ if (!typeConfig?.matchesTypes) {
29
+ return false
30
+ }
31
+ return typeConfig.matchesTypes.some(
32
+ (t) => dataTransferTypes.indexOf(t) > -1,
33
+ )
34
+ })[0] || null
35
+ )
36
+ }
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/OptionsReader.ts ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { HTML5BackendContext, HTML5BackendOptions } from './types.js'
2
+
3
+ export class OptionsReader {
4
+ public ownerDocument: Document | null = null
5
+ private globalContext: HTML5BackendContext
6
+ private optionsArgs: HTML5BackendOptions | undefined
7
+
8
+ public constructor(
9
+ globalContext: HTML5BackendContext,
10
+ options?: HTML5BackendOptions,
11
+ ) {
12
+ this.globalContext = globalContext
13
+ this.optionsArgs = options
14
+ }
15
+
16
+ public get window(): Window | undefined {
17
+ if (this.globalContext) {
18
+ return this.globalContext
19
+ } else if (typeof window !== 'undefined') {
20
+ return window
21
+ }
22
+ return undefined
23
+ }
24
+
25
+ public get document(): Document | undefined {
26
+ if (this.globalContext?.document) {
27
+ return this.globalContext.document
28
+ } else if (this.window) {
29
+ return this.window.document
30
+ } else {
31
+ return undefined
32
+ }
33
+ }
34
+
35
+ public get rootElement(): Node | undefined {
36
+ return this.optionsArgs?.rootElement || this.window
37
+ }
38
+ }
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/index.ts ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { BackendFactory, DragDropManager } from 'dnd-core'
2
+
3
+ import { HTML5BackendImpl } from './HTML5BackendImpl.js'
4
+ import type { HTML5BackendContext, HTML5BackendOptions } from './types.js'
5
+ export { getEmptyImage } from './getEmptyImage.js'
6
+ export * as NativeTypes from './NativeTypes.js'
7
+ export type { HTML5BackendContext, HTML5BackendOptions } from './types.js'
8
+
9
+ export const HTML5Backend: BackendFactory = function createBackend(
10
+ manager: DragDropManager,
11
+ context?: HTML5BackendContext,
12
+ options?: HTML5BackendOptions,
13
+ ): HTML5BackendImpl {
14
+ return new HTML5BackendImpl(manager, context, options)
15
+ }
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd-html5-backend/src/utils/js_utils.ts ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // cheap lodash replacements
2
+
3
+ export function memoize<T>(fn: () => T): () => T {
4
+ let result: T | null = null
5
+ const memoized = () => {
6
+ if (result == null) {
7
+ result = fn()
8
+ }
9
+ return result
10
+ }
11
+ return memoized
12
+ }
13
+
14
+ /**
15
+ * drop-in replacement for _.without
16
+ */
17
+ export function without<T>(items: T[], item: T) {
18
+ return items.filter((i) => i !== item)
19
+ }
20
+
21
+ export function union<T extends string | number>(itemsA: T[], itemsB: T[]) {
22
+ const set = new Set<T>()
23
+ const insertItem = (item: T) => set.add(item)
24
+ itemsA.forEach(insertItem)
25
+ itemsB.forEach(insertItem)
26
+
27
+ const result: T[] = []
28
+ set.forEach((key) => result.push(key))
29
+ return result
30
+ }
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd/dist/index.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ export * from './core/index.js';
2
+ export * from './hooks/index.js';
3
+ export * from './types/index.js';
4
+
5
+ //# sourceMappingURL=index.js.map
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/react-dnd/dist/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './core/index.js'\nexport * from './hooks/index.js'\nexport * from './types/index.js'\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA"}