{"ast":null,"code":"import { useMotionValue } from './use-motion-value.js';\nimport { useMultiOnChange } from './use-on-change.js';\nimport sync from 'framesync';\nfunction useCombineMotionValues(values, combineValues) {\n  /**\n   * Initialise the returned motion value. This remains the same between renders.\n   */\n  var value = useMotionValue(combineValues());\n  /**\n   * Create a function that will update the template motion value with the latest values.\n   * This is pre-bound so whenever a motion value updates it can schedule its\n   * execution in Framesync. If it's already been scheduled it won't be fired twice\n   * in a single frame.\n   */\n  var updateValue = function updateValue() {\n    return value.set(combineValues());\n  };\n  /**\n   * Synchronously update the motion value with the latest values during the render.\n   * This ensures that within a React render, the styles applied to the DOM are up-to-date.\n   */\n  updateValue();\n  /**\n   * Subscribe to all motion values found within the template. Whenever any of them change,\n   * schedule an update.\n   */\n  useMultiOnChange(values, function () {\n    return sync.update(updateValue, false, true);\n  });\n  return value;\n}\nexport { useCombineMotionValues };","map":{"version":3,"names":["useMotionValue","useMultiOnChange","sync","useCombineMotionValues","values","combineValues","value","updateValue","set","update"],"sources":["C:/ldt/LDT/management/node_modules/framer-motion/dist/es/value/use-combine-values.js"],"sourcesContent":["import { useMotionValue } from './use-motion-value.js';\nimport { useMultiOnChange } from './use-on-change.js';\nimport sync from 'framesync';\n\nfunction useCombineMotionValues(values, combineValues) {\n    /**\n     * Initialise the returned motion value. This remains the same between renders.\n     */\n    var value = useMotionValue(combineValues());\n    /**\n     * Create a function that will update the template motion value with the latest values.\n     * This is pre-bound so whenever a motion value updates it can schedule its\n     * execution in Framesync. If it's already been scheduled it won't be fired twice\n     * in a single frame.\n     */\n    var updateValue = function () { return value.set(combineValues()); };\n    /**\n     * Synchronously update the motion value with the latest values during the render.\n     * This ensures that within a React render, the styles applied to the DOM are up-to-date.\n     */\n    updateValue();\n    /**\n     * Subscribe to all motion values found within the template. Whenever any of them change,\n     * schedule an update.\n     */\n    useMultiOnChange(values, function () { return sync.update(updateValue, false, true); });\n    return value;\n}\n\nexport { useCombineMotionValues };\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,uBAAuB;AACtD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,OAAOC,IAAI,MAAM,WAAW;AAE5B,SAASC,sBAAsBA,CAACC,MAAM,EAAEC,aAAa,EAAE;EACnD;AACJ;AACA;EACI,IAAIC,KAAK,GAAGN,cAAc,CAACK,aAAa,CAAC,CAAC,CAAC;EAC3C;AACJ;AACA;AACA;AACA;AACA;EACI,IAAIE,WAAW,GAAG,SAAdA,WAAWA,CAAA,EAAe;IAAE,OAAOD,KAAK,CAACE,GAAG,CAACH,aAAa,CAAC,CAAC,CAAC;EAAE,CAAC;EACpE;AACJ;AACA;AACA;EACIE,WAAW,CAAC,CAAC;EACb;AACJ;AACA;AACA;EACIN,gBAAgB,CAACG,MAAM,EAAE,YAAY;IAAE,OAAOF,IAAI,CAACO,MAAM,CAACF,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC;EAAE,CAAC,CAAC;EACvF,OAAOD,KAAK;AAChB;AAEA,SAASH,sBAAsB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}