{"version":3,"sources":["../../../../src/sensors/useOnLongPress/index.ts"],"sourcesContent":["\"use client\";\nimport { useScope, toObs } from \"@usels/core\";\nimport { createOnLongPress } from \"./core\";\n\nexport { createOnLongPress } from \"./core\";\nexport type { UseOnLongPressModifiers, UseOnLongPressOptions } from \"./core\";\n\nexport type UseOnLongPress = typeof createOnLongPress;\nexport const useOnLongPress: UseOnLongPress = (target, handler, options = {}) => {\n  return useScope(\n    (cbs, options) => {\n      const cbs$ = toObs(cbs);\n      const options$ = toObs(options);\n      return createOnLongPress(target, cbs$.handler, options$);\n    },\n    { handler },\n    options\n  );\n};\n"],"mappings":";AACA,SAAS,UAAU,aAAa;AAChC,SAAS,yBAAyB;AAElC,SAAS,qBAAAA,0BAAyB;AAI3B,MAAM,iBAAiC,CAAC,QAAQ,SAAS,UAAU,CAAC,MAAM;AAC/E,SAAO;AAAA,IACL,CAAC,KAAKC,aAAY;AAChB,YAAM,OAAO,MAAM,GAAG;AACtB,YAAM,WAAW,MAAMA,QAAO;AAC9B,aAAO,kBAAkB,QAAQ,KAAK,SAAS,QAAQ;AAAA,IACzD;AAAA,IACA,EAAE,QAAQ;AAAA,IACV;AAAA,EACF;AACF;","names":["createOnLongPress","options"]}