{
  "version": 3,
  "sources": ["../../../src/synchronization/use-uni-dir-binding-sync.ts"],
  "sourcesContent": ["import type { Binding } from '../binding/types/binding';\nimport type { ReadonlyBinding } from '../binding/types/readonly-binding';\nimport { useBindingEffect } from '../use-binding-effect/use-binding-effect.mjs';\nimport type { UseBindingSyncOptions } from './types/options';\n\n/** Synchronizes a source binding into a destination binding */\nexport const useUniDirBindingSync = <T>(source: ReadonlyBinding<T>, dest: Binding<T>, options?: UseBindingSyncOptions) => {\n  useBindingEffect(source, (source) => dest.set(source), { ...options, triggerOnMount: true });\n};\n"],
  "mappings": "AAEA,SAAS,wBAAwB;AAI1B,MAAM,uBAAuB,CAAI,QAA4B,MAAkB,YAAoC;AACxH,mBAAiB,QAAQ,CAACA,YAAW,KAAK,IAAIA,OAAM,GAAG,EAAE,GAAG,SAAS,gBAAgB,KAAK,CAAC;AAC7F;",
  "names": ["source"]
}
