{"version":3,"file":"create-component-with-omitted-props.cjs","sources":["../../node_modules/ramda/es/omit.js","../src/utils/create-component-with-omitted-props.tsx"],"sourcesContent":["import _curry2 from \"./internal/_curry2.js\";\n/**\n * Returns a partial copy of an object omitting the keys specified.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Object\n * @sig [String] -> {String: *} -> {String: *}\n * @param {Array} names an array of String property names to omit from the new object\n * @param {Object} obj The object to copy from\n * @return {Object} A new object with properties from `names` not on it.\n * @see R.pick\n * @example\n *\n *      R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}\n */\n\nvar omit =\n/*#__PURE__*/\n_curry2(function omit(names, obj) {\n  var result = {};\n  var index = {};\n  var idx = 0;\n  var len = names.length;\n\n  while (idx < len) {\n    index[names[idx]] = 1;\n    idx += 1;\n  }\n\n  for (var prop in obj) {\n    if (!index.hasOwnProperty(prop)) {\n      result[prop] = obj[prop];\n    }\n  }\n\n  return result;\n});\n\nexport default omit;","import { omit } from 'ramda';\nimport { createElement, type PropsWithChildren } from 'react';\n\nexport function createComponentWithOmittedProps(propsToOmit: string[]) {\n  return function createEmptyElement(\n    element: Parameters<typeof createElement>[0],\n  ) {\n    return function EmptyComponent(props: PropsWithChildren) {\n      return createElement(element, omit(propsToOmit)(props));\n    };\n  };\n}\n"],"names":["omit","_curry2","names","obj","result","index","idx","len","prop","omit$1","createComponentWithOmittedProps","propsToOmit","element","props","createElement"],"mappings":"+KAkBA,IAAIA,EAEJC,EAAAA,QAAQ,SAAcC,EAAOC,EAAK,CAMhC,QALIC,EAAS,CAAA,EACTC,EAAQ,CAAA,EACRC,EAAM,EACNC,EAAML,EAAM,OAETI,EAAMC,GACXF,EAAMH,EAAMI,CAAG,CAAC,EAAI,EACpBA,GAAO,EAGT,QAASE,KAAQL,EACVE,EAAM,eAAeG,CAAI,IAC5BJ,EAAOI,CAAI,EAAIL,EAAIK,CAAI,GAI3B,OAAOJ,CACT,CAAC,EAED,MAAAK,EAAeT,ECrCR,SAASU,EAAgCC,EAAuB,CAC9D,OAAA,SACLC,EACA,CACO,OAAA,SAAwBC,EAA0B,CACvD,OAAOC,EAAAA,cAAcF,EAASZ,EAAKW,CAAW,EAAEE,CAAK,CAAC,CAAA,CACxD,CAEJ","x_google_ignoreList":[0]}