FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
collection
/
functions
Edit File: animation-registry.js
const defaultAnimationRegistry=new Map,customAnimationRegistry=new WeakMap;function ensureAnimation(t){return null!=t?t:{keyframes:[],options:{duration:0}}}export function setDefaultAnimation(t,n){defaultAnimationRegistry.set(t,ensureAnimation(n))}export function setAnimation(t,n,i){customAnimationRegistry.set(t,{...customAnimationRegistry.get(t),[n]:ensureAnimation(i)})}export function getAnimation(t,n){const i=customAnimationRegistry.get(t);if(null==i?void 0:i[n])return i[n];return defaultAnimationRegistry.get(n)||{keyframes:[],options:{duration:0}}}
Save
Back