{
  "version": 3,
  "sources": ["ssg:https://asset.29cm.co.kr/contents/framer/utils/cloneFramerChildren.js"],
  "sourcesContent": ["import { Children, isValidElement, cloneElement } from \"react\";\nconst cloneFramerChildren = (children, props) => {\n  return Children.map(children, (child) => cloneLastDepthChild(child, props));\n};\nconst cloneLastDepthChild = (child, props) => {\n  if (!isValidElement(child)) {\n    return child;\n  }\n  if (!isValidElement(child.props.children)) {\n    return cloneElement(child, props);\n  }\n  return cloneElement(child, {\n    ...child.props,\n    children: cloneLastDepthChild(child.props.children, props)\n  });\n};\nexport {\n  cloneFramerChildren\n};\n"],
  "mappings": "uDACA,IAAMA,EAAsB,CAACC,EAAUC,IAC9BC,EAAS,IAAIF,EAAWG,GAAUC,EAAoBD,EAAOF,CAAK,CAAC,EAEtEG,EAAsB,CAACD,EAAOF,IAC7BI,EAAeF,CAAK,EAGpBE,EAAeF,EAAM,MAAM,QAAQ,EAGjCG,EAAaH,EAAO,CACzB,GAAGA,EAAM,MACT,SAAUC,EAAoBD,EAAM,MAAM,SAAUF,CAAK,CAC3D,CAAC,EALQK,EAAaH,EAAOF,CAAK,EAHzBE",
  "names": ["cloneFramerChildren", "children", "props", "j", "child", "cloneLastDepthChild", "J", "q"]
}
