{"version":3,"sources":["uix-short.ts"],"sourcesContent":["// deno-lint-ignore-file no-control-regex\nimport { HTML } from \"./src/html/template-strings.ts\";\nimport { SCSS, css } from \"./src/utils/css-template-strings.ts\";\n\n\n/** make decorators global */\nimport { bindToOrigin } from \"./src/app/datex-over-http.ts\";\nimport { content as _content, bindOrigin as _bindOrigin, id as _id, layout as _layout, child as _child, use as _use, NoResources as _NoResources, standalone as _standalone} from \"./src/base/decorators.ts\";\nimport { domUtils } from \"./src/app/dom-context.ts\";\nimport { client_type } from \"datex-core-legacy/utils/constants.ts\";\n\nimport \"./src/utils/window-apis.ts\";\n\n// TODO: remove\nexport {unsafeHTML} from \"./src/html/unsafe-html.ts\";\n\ndeclare global {\n\tconst id: typeof _id;\n\tconst layout: typeof _layout;\n\tconst content: typeof _content;\n\tconst value: typeof _child;\n\tconst NoResources: typeof _NoResources;\n\tconst standalone: typeof _standalone;\n\tconst bindOrigin: typeof _bindOrigin;\n}\n\n// @ts-ignore global\nglobalThis.content = _content;\n// @ts-ignore global\nglobalThis.id = _id;\n// @ts-ignore global\nglobalThis.child = _child;\n// @ts-ignore global\nglobalThis.layout = _layout;\n// @ts-ignore global\nglobalThis.NoResources = _NoResources;\n// @ts-ignore global\nglobalThis.standalone = _standalone;\n// @ts-ignore global\nglobalThis.bindOrigin = _bindOrigin;\n\n\n// @ts-ignore global HTML\nglobalThis.HTML = HTML;\n// @ts-ignore global HTML\nglobalThis.SCSS = SCSS;\n// @ts-ignore global HTML\nglobalThis.css = css;\n\n\n/**\n * bind to origin in function prototype\n */\n\nconst _HTML = HTML;\nconst _SCSS = SCSS;\nconst _css = css;\n\ndeclare global {\n\n\tconst HTML: typeof _HTML;\n\t/**\n\t * @deprecated, use css\n\t */\n\tconst SCSS: typeof _SCSS;\n\tconst css: typeof _css;\n\n\t// interface CallableFunction {\n\t// \tbindToOrigin<T, A extends unknown[], R>(this: (this: T, ...args: A) => R, context?:any): (...args: A)=>Promise<Awaited<Promise<R>>>;\n\t// }\n}\n\n// // @ts-ignore\n// Function.prototype.bindToOrigin = function (this:(...args: any)=>any, context:any) {\n// \treturn bindToOrigin(this, context);\n// }"],"names":["HTML","SCSS","css","content","_content","bindOrigin","_bindOrigin","id","_id","layout","_layout","child","_child","NoResources","_NoResources","standalone","_standalone","unsafeHTML","globalThis"],"mappings":"AACA,SAASA,IAAI,QAAQ,iCAAiC;AACtD,SAASC,IAAI,EAAEC,GAAG,QAAQ,sCAAsC;AAKhE,SAASC,WAAWC,QAAQ,EAAEC,cAAcC,WAAW,EAAEC,MAAMC,GAAG,EAAEC,UAAUC,OAAO,EAAEC,SAASC,MAAM,EAAeC,eAAeC,YAAY,EAAEC,cAAcC,WAAW,QAAO,2BAA2B;AAI7M,OAAO,6BAA6B;AAGpC,SAAQC,UAAU,QAAO,4BAA4B;AAarDC,WAAWf,OAAO,GAAGC,UAErBc,WAAWX,EAAE,GAAGC,KAEhBU,WAAWP,KAAK,GAAGC,QAEnBM,WAAWT,MAAM,GAAGC,SAEpBQ,WAAWL,WAAW,GAAGC,cAEzBI,WAAWH,UAAU,GAAGC,aAExBE,WAAWb,UAAU,GAAGC,aAIxBY,WAAWlB,IAAI,GAAGA,MAElBkB,WAAWjB,IAAI,GAAGA,MAElBiB,WAAWhB,GAAG,GAAGA","sourceRoot":"/lib/uix-0.4.39/","file":"uix-short.ts"}