Files
ETB/ETB-FrontEnd/node_modules/.cache/babel-loader/6ce25e3c1f00127dbaef92cf0701485b0d49adffb2b3ec276ea0abd295c10f3c.json
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

1 line
6.3 KiB
JSON

{"ast":null,"code":"import { noop } from 'motion-utils';\nimport { addToQueue } from './queue.mjs';\nclass ViewTransitionBuilder {\n constructor(update, options = {}) {\n this.currentSubject = \"root\";\n this.targets = new Map();\n this.notifyReady = noop;\n this.readyPromise = new Promise(resolve => {\n this.notifyReady = resolve;\n });\n this.update = update;\n this.options = {\n interrupt: \"wait\",\n ...options\n };\n addToQueue(this);\n }\n get(subject) {\n this.currentSubject = subject;\n return this;\n }\n layout(keyframes, options) {\n this.updateTarget(\"layout\", keyframes, options);\n return this;\n }\n new(keyframes, options) {\n this.updateTarget(\"new\", keyframes, options);\n return this;\n }\n old(keyframes, options) {\n this.updateTarget(\"old\", keyframes, options);\n return this;\n }\n enter(keyframes, options) {\n this.updateTarget(\"enter\", keyframes, options);\n return this;\n }\n exit(keyframes, options) {\n this.updateTarget(\"exit\", keyframes, options);\n return this;\n }\n crossfade(options) {\n this.updateTarget(\"enter\", {\n opacity: 1\n }, options);\n this.updateTarget(\"exit\", {\n opacity: 0\n }, options);\n return this;\n }\n updateTarget(target, keyframes, options = {}) {\n const {\n currentSubject,\n targets\n } = this;\n if (!targets.has(currentSubject)) {\n targets.set(currentSubject, {});\n }\n const targetData = targets.get(currentSubject);\n targetData[target] = {\n keyframes,\n options\n };\n }\n then(resolve, reject) {\n return this.readyPromise.then(resolve, reject);\n }\n}\nfunction animateView(update, defaultOptions = {}) {\n return new ViewTransitionBuilder(update, defaultOptions);\n}\nexport { ViewTransitionBuilder, animateView };","map":{"version":3,"names":["noop","addToQueue","ViewTransitionBuilder","constructor","update","options","currentSubject","targets","Map","notifyReady","readyPromise","Promise","resolve","interrupt","get","subject","layout","keyframes","updateTarget","new","old","enter","exit","crossfade","opacity","target","has","set","targetData","then","reject","animateView","defaultOptions"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/motion-dom/dist/es/view/index.mjs"],"sourcesContent":["import { noop } from 'motion-utils';\nimport { addToQueue } from './queue.mjs';\n\nclass ViewTransitionBuilder {\n constructor(update, options = {}) {\n this.currentSubject = \"root\";\n this.targets = new Map();\n this.notifyReady = noop;\n this.readyPromise = new Promise((resolve) => {\n this.notifyReady = resolve;\n });\n this.update = update;\n this.options = {\n interrupt: \"wait\",\n ...options,\n };\n addToQueue(this);\n }\n get(subject) {\n this.currentSubject = subject;\n return this;\n }\n layout(keyframes, options) {\n this.updateTarget(\"layout\", keyframes, options);\n return this;\n }\n new(keyframes, options) {\n this.updateTarget(\"new\", keyframes, options);\n return this;\n }\n old(keyframes, options) {\n this.updateTarget(\"old\", keyframes, options);\n return this;\n }\n enter(keyframes, options) {\n this.updateTarget(\"enter\", keyframes, options);\n return this;\n }\n exit(keyframes, options) {\n this.updateTarget(\"exit\", keyframes, options);\n return this;\n }\n crossfade(options) {\n this.updateTarget(\"enter\", { opacity: 1 }, options);\n this.updateTarget(\"exit\", { opacity: 0 }, options);\n return this;\n }\n updateTarget(target, keyframes, options = {}) {\n const { currentSubject, targets } = this;\n if (!targets.has(currentSubject)) {\n targets.set(currentSubject, {});\n }\n const targetData = targets.get(currentSubject);\n targetData[target] = { keyframes, options };\n }\n then(resolve, reject) {\n return this.readyPromise.then(resolve, reject);\n }\n}\nfunction animateView(update, defaultOptions = {}) {\n return new ViewTransitionBuilder(update, defaultOptions);\n}\n\nexport { ViewTransitionBuilder, animateView };\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,UAAU,QAAQ,aAAa;AAExC,MAAMC,qBAAqB,CAAC;EACxBC,WAAWA,CAACC,MAAM,EAAEC,OAAO,GAAG,CAAC,CAAC,EAAE;IAC9B,IAAI,CAACC,cAAc,GAAG,MAAM;IAC5B,IAAI,CAACC,OAAO,GAAG,IAAIC,GAAG,CAAC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