{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/8b2K5f4eGbIwASRCJS5M/MnPmNehWy1jDtLzwVnfN/Shine.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport { motion } from \"framer-motion\";\nexport function withPointerEventsNone(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      style: {\n        pointerEvents: \"none\"\n      }\n    });\n  };\n}\nexport default function Shine(props) {\n  return /*#__PURE__*/_jsx(motion.div, {\n    viewport: {\n      once: true,\n      amount: props.amount\n    },\n    whileInView: {\n      backgroundPosition: \"200% 0, 0 0\"\n    },\n    style: {\n      width: \"100%\",\n      height: \"100%\",\n      pointerEvents: \"none\",\n      transition: \"background-position 2s ease\",\n      transitionDelay: `${props.delay}s`,\n      backgroundRepeat: \"no-repeat\",\n      backgroundPosition: \"-100% 0, 0 0\",\n      backgroundSize: \"250% 250%, 100% 100%\",\n      backgroundImage: `linear-gradient(\n                                            45deg,\n                                            transparent 20%,\n                                            transparent 40%,\n                                            rgb(68, 68, 68, 0.2) 50%,\n                                            rgb(68, 68, 68, 0.2) 55%,\n                                            transparent 70%,\n                                            transparent 100%\n                                        )`\n    }\n  });\n}\n;\nShine.defaultProps = {\n  delay: 0,\n  amount: 1\n};\naddPropertyControls(Shine, {\n  delay: {\n    type: ControlType.Number,\n    title: \"Delay\",\n    step: .1,\n    unit: \"s\",\n    min: 0,\n    max: 10\n  },\n  amount: {\n    type: ControlType.Number,\n    title: \"Amount\",\n    max: 1,\n    min: 0\n  }\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"withPointerEventsNone\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withPointerEventsNone\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"Shine\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Shine.map"],
  "mappings": "2FAae,SAARA,EAAuBC,EAAO,CACnC,OAAoBC,EAAKC,EAAO,IAAK,CACnC,SAAU,CACR,KAAM,GACN,OAAQF,EAAM,MAChB,EACA,YAAa,CACX,mBAAoB,aACtB,EACA,MAAO,CACL,MAAO,OACP,OAAQ,OACR,cAAe,OACf,WAAY,8BACZ,gBAAiB,GAAGA,EAAM,SAC1B,iBAAkB,YAClB,mBAAoB,eACpB,eAAgB,uBAChB,gBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0CASnB,CACF,CAAC,CACH,CAEAD,EAAM,aAAe,CACnB,MAAO,EACP,OAAQ,CACV,EACAI,EAAoBJ,EAAO,CACzB,MAAO,CACL,KAAMK,EAAY,OAClB,MAAO,QACP,KAAM,GACN,KAAM,IACN,IAAK,EACL,IAAK,EACP,EACA,OAAQ,CACN,KAAMA,EAAY,OAClB,MAAO,SACP,IAAK,EACL,IAAK,CACP,CACF,CAAC",
  "names": ["Shine", "props", "p", "motion", "addPropertyControls", "ControlType"]
}
