{"ast":null,"code":"/**\n * Decides if the supplied variable is an array of variant labels\n */\nfunction isVariantLabels(v) {\n  return Array.isArray(v);\n}\n/**\n * Decides if the supplied variable is variant label\n */\nfunction isVariantLabel(v) {\n  return typeof v === \"string\" || isVariantLabels(v);\n}\n/**\n * Creates an object containing the latest state of every MotionValue on a VisualElement\n */\nfunction getCurrent(visualElement) {\n  var current = {};\n  visualElement.forEachValue(function (value, key) {\n    return current[key] = value.get();\n  });\n  return current;\n}\n/**\n * Creates an object containing the latest velocity of every MotionValue on a VisualElement\n */\nfunction getVelocity(visualElement) {\n  var velocity = {};\n  visualElement.forEachValue(function (value, key) {\n    return velocity[key] = value.getVelocity();\n  });\n  return velocity;\n}\nfunction resolveVariantFromProps(props, definition, custom, currentValues, currentVelocity) {\n  var _a;\n  if (currentValues === void 0) {\n    currentValues = {};\n  }\n  if (currentVelocity === void 0) {\n    currentVelocity = {};\n  }\n  if (typeof definition === \"string\") {\n    definition = (_a = props.variants) === null || _a === void 0 ? void 0 : _a[definition];\n  }\n  return typeof definition === \"function\" ? definition(custom !== null && custom !== void 0 ? custom : props.custom, currentValues, currentVelocity) : definition;\n}\nfunction resolveVariant(visualElement, definition, custom) {\n  var props = visualElement.getProps();\n  return resolveVariantFromProps(props, definition, custom !== null && custom !== void 0 ? custom : props.custom, getCurrent(visualElement), getVelocity(visualElement));\n}\nfunction checkIfControllingVariants(props) {\n  var _a;\n  return typeof ((_a = props.animate) === null || _a === void 0 ? void 0 : _a.start) === \"function\" || isVariantLabel(props.initial) || isVariantLabel(props.animate) || isVariantLabel(props.whileHover) || isVariantLabel(props.whileDrag) || isVariantLabel(props.whileTap) || isVariantLabel(props.whileFocus) || isVariantLabel(props.exit);\n}\nfunction checkIfVariantNode(props) {\n  return Boolean(checkIfControllingVariants(props) || props.variants);\n}\nexport { checkIfControllingVariants, checkIfVariantNode, isVariantLabel, isVariantLabels, resolveVariant, resolveVariantFromProps };","map":{"version":3,"names":["isVariantLabels","v","Array","isArray","isVariantLabel","getCurrent","visualElement","current","forEachValue","value","key","get","getVelocity","velocity","resolveVariantFromProps","props","definition","custom","currentValues","currentVelocity","_a","variants","resolveVariant","getProps","checkIfControllingVariants","animate","start","initial","whileHover","whileDrag","whileTap","whileFocus","exit","checkIfVariantNode","Boolean"],"sources":["C:/ldt/LDT/management/node_modules/framer-motion/dist/es/render/utils/variants.js"],"sourcesContent":["/**\n * Decides if the supplied variable is an array of variant labels\n */\nfunction isVariantLabels(v) {\n    return Array.isArray(v);\n}\n/**\n * Decides if the supplied variable is variant label\n */\nfunction isVariantLabel(v) {\n    return typeof v === \"string\" || isVariantLabels(v);\n}\n/**\n * Creates an object containing the latest state of every MotionValue on a VisualElement\n */\nfunction getCurrent(visualElement) {\n    var current = {};\n    visualElement.forEachValue(function (value, key) { return (current[key] = value.get()); });\n    return current;\n}\n/**\n * Creates an object containing the latest velocity of every MotionValue on a VisualElement\n */\nfunction getVelocity(visualElement) {\n    var velocity = {};\n    visualElement.forEachValue(function (value, key) { return (velocity[key] = value.getVelocity()); });\n    return velocity;\n}\nfunction resolveVariantFromProps(props, definition, custom, currentValues, currentVelocity) {\n    var _a;\n    if (currentValues === void 0) { currentValues = {}; }\n    if (currentVelocity === void 0) { currentVelocity = {}; }\n    if (typeof definition === \"string\") {\n        definition = (_a = props.variants) === null || _a === void 0 ? void 0 : _a[definition];\n    }\n    return typeof definition === \"function\"\n        ? definition(custom !== null && custom !== void 0 ? custom : props.custom, currentValues, currentVelocity)\n        : definition;\n}\nfunction resolveVariant(visualElement, definition, custom) {\n    var props = visualElement.getProps();\n    return resolveVariantFromProps(props, definition, custom !== null && custom !== void 0 ? custom : props.custom, getCurrent(visualElement), getVelocity(visualElement));\n}\nfunction checkIfControllingVariants(props) {\n    var _a;\n    return (typeof ((_a = props.animate) === null || _a === void 0 ? void 0 : _a.start) === \"function\" ||\n        isVariantLabel(props.initial) ||\n        isVariantLabel(props.animate) ||\n        isVariantLabel(props.whileHover) ||\n        isVariantLabel(props.whileDrag) ||\n        isVariantLabel(props.whileTap) ||\n        isVariantLabel(props.whileFocus) ||\n        isVariantLabel(props.exit));\n}\nfunction checkIfVariantNode(props) {\n    return Boolean(checkIfControllingVariants(props) || props.variants);\n}\n\nexport { checkIfControllingVariants, checkIfVariantNode, isVariantLabel, isVariantLabels, resolveVariant, resolveVariantFromProps };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,eAAeA,CAACC,CAAC,EAAE;EACxB,OAAOC,KAAK,CAACC,OAAO,CAACF,CAAC,CAAC;AAC3B;AACA;AACA;AACA;AACA,SAASG,cAAcA,CAACH,CAAC,EAAE;EACvB,OAAO,OAAOA,CAAC,KAAK,QAAQ,IAAID,eAAe,CAACC,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA,SAASI,UAAUA,CAACC,aAAa,EAAE;EAC/B,IAAIC,OAAO,GAAG,CAAC,CAAC;EAChBD,aAAa,CAACE,YAAY,CAAC,UAAUC,KAAK,EAAEC,GAAG,EAAE;IAAE,OAAQH,OAAO,CAACG,GAAG,CAAC,GAAGD,KAAK,CAACE,GAAG,CAAC,CAAC;EAAG,CAAC,CAAC;EAC1F,OAAOJ,OAAO;AAClB;AACA;AACA;AACA;AACA,SAASK,WAAWA,CAACN,aAAa,EAAE;EAChC,IAAIO,QAAQ,GAAG,CAAC,CAAC;EACjBP,aAAa,CAACE,YAAY,CAAC,UAAUC,KAAK,EAAEC,GAAG,EAAE;IAAE,OAAQG,QAAQ,CAACH,GAAG,CAAC,GAAGD,KAAK,CAACG,WAAW,CAAC,CAAC;EAAG,CAAC,CAAC;EACnG,OAAOC,QAAQ;AACnB;AACA,SAASC,uBAAuBA,CAACC,KAAK,EAAEC,UAAU,EAAEC,MAAM,EAAEC,aAAa,EAAEC,eAAe,EAAE;EACxF,IAAIC,EAAE;EACN,IAAIF,aAAa,KAAK,KAAK,CAAC,EAAE;IAAEA,aAAa,GAAG,CAAC,CAAC;EAAE;EACpD,IAAIC,eAAe,KAAK,KAAK,CAAC,EA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