"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./utils/create-render-state.mjs.js"),s=require("../../../../../motion-dom/dist/es/value/utils/is-motion-value.mjs.js"),r=require("../../../../../motion-dom/dist/es/render/utils/is-forced-motion-value.mjs.js"),o=require("../../../../../motion-dom/dist/es/render/html/utils/build-styles.mjs.js");function n(e,t,o){for(const n in t)s.isMotionValue(t[n])||r.isForcedMotionValue(n,o)||(e[n]=t[n])}function i(s,r){const i={};return n(i,s.style||{},s),Object.assign(i,function(s,r){let{transformTemplate:n}=s;return e.useMemo((()=>{const e=t.createHtmlRenderState();return o.buildHTMLStyles(e,r,n),Object.assign({},e.vars,e.style)}),[r])}(s,r)),i}exports.copyRawValuesOnly=n,exports.useHTMLProps=function(e,t){const s={},r=i(e,t);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=r,s};
//# sourceMappingURL=use-props.mjs.js.map
