{
  "version": 3,
  "sources": ["ssg:https://rive.app/api/s/yBzC-bwJU0qrGsNWPZ4bzQ/framer/", "ssg:https://framerusercontent.com/modules/aDeOznM6x1eO4kYfXED3/KDymWxwKlrtZSMMhSuYm/Observatory_light.js"],
  "sourcesContent": ["import React, { useEffect } from \"react\";\nimport { addPropertyControls, ControlType, RenderTarget } from \"framer\";\nimport Rive, { useRive, useStateMachineInput } from \"@rive-app/react-canvas\";\nexport const componentName = \"Obser_violet.svg - State Yellow\";\nexport default function Controls(props) {\n  const layout = new Rive.Layout({\n    fit: props.fit ?? \"contain\",\n    alignment: props.alignment ?? \"center\",\n  });\n  const params = {\n    src: \"https://public.rive.app/hosted/53647/13976/yBzC-bwJU0qrGsNWPZ4bzQ.riv\",\n    artboard: \"Obser_violet.svg\",\n    stateMachines: \"State Yellow\",\n    autoplay: true && props.play,\n    layout,\n  };\n  const { RiveComponent, rive } = useRive(params);\n  const boolean1 = useStateMachineInput(\n    rive,\n    \"State Yellow\",\n    \"onHover\",\n    props.boolean1\n  );\n  useEffect(() => {\n    if (boolean1) {\n      boolean1.value = props.boolean1;\n    }\n  }, [props.boolean1]);\n  const trigger1 = useStateMachineInput(rive, \"State Yellow\", \"onClick\");\n  useEffect(() => {\n    if (trigger1) {\n      trigger1.fire();\n    }\n  }, [props.trigger1]);\n  useEffect(() => {\n    if (rive) {\n      if (RenderTarget.current() === RenderTarget.canvas) {\n        if (props.playOnCanvas && props.play) {\n          rive.play();\n        } else {\n          rive.pause();\n        }\n      } else {\n        if (props.play) {\n          rive.play();\n        } else {\n          rive.pause();\n        }\n      }\n    }\n  }, [props.play]);\n  useEffect(() => {\n    if (rive && RenderTarget.current() === RenderTarget.canvas) {\n      if (props.playOnCanvas && props.play) {\n        rive.play();\n      } else {\n        rive.pause();\n      }\n    }\n  }, [rive, props.playOnCanvas, props.play]);\n  useEffect(() => {\n    if (rive) {\n      const layout = new Rive.Layout({\n        fit: props.fit ?? \"contain\",\n        alignment: props.alignment ?? \"center\",\n      });\n      rive.layout = layout;\n    }\n  }, [props.fit, props.alignment]);\n  return React.createElement(RiveComponent, {});\n}\nControls.defaultProps = { play: true, playOnCanvas: true, boolean1: false };\nexport const propertyControls = {\n  play: {\n    title: \"Playback\",\n    type: ControlType.Boolean,\n    defaultValue: true,\n    enabledTitle: \"Play\",\n    disabledTitle: \"Pause\",\n  },\n  playOnCanvas: {\n    type: ControlType.Boolean,\n    title: \"Play on Canvas\",\n    defaultValue: true,\n    enabledTitle: \"Play\",\n    disabledTitle: \"Pause\",\n  },\n  boolean1: {\n    title: \"onHover\",\n    type: ControlType.Boolean,\n    defaultValue: false,\n  },\n  trigger1: {\n    title: \"onClick\",\n    type: ControlType.Number,\n    displayStepper: true,\n    step: 1,\n    defaultValue: 0,\n  },\n  fit: {\n    type: ControlType.Enum,\n    defaultValue: \"contain\",\n    displaySegmentedControl: false,\n    segmentedControlDirection: \"vertical\",\n    options: [\n      \"contain\",\n      \"cover\",\n      \"fill\",\n      \"fitWidth\",\n      \"fitHeight\",\n      \"none\",\n      \"scaleDown\",\n    ],\n    optionTitles: [\n      \"Contain\",\n      \"Cover\",\n      \"Fill\",\n      \"Fit Width\",\n      \"Fit Height\",\n      \"None\",\n      \"Scale Down\",\n    ],\n  },\n  alignment: {\n    type: ControlType.Enum,\n    defaultValue: \"center\",\n    displaySegmentedControl: false,\n    segmentedControlDirection: \"vertical\",\n    options: [\n      \"center\",\n      \"topLeft\",\n      \"topCenter\",\n      \"topRight\",\n      \"centerLeft\",\n      \"centerRight\",\n      \"bottomLeft\",\n      \"bottomCenter\",\n      \"bottomRight\",\n    ],\n    optionTitles: [\n      \"Center\",\n      \"Top Left\",\n      \"Top Center\",\n      \"Top Right\",\n      \"Center Left\",\n      \"Center Right\",\n      \"Bottom Left\",\n      \"Bottom Center\",\n      \"Bottom Right\",\n    ],\n  },\n};\naddPropertyControls(Controls, propertyControls);\n", "import { addPropertyControls } from \"framer\";\nimport RiveComponent, { componentName, propertyControls } from \"https://rive.app/api/s/yBzC-bwJU0qrGsNWPZ4bzQ/framer/\"; /**\n                                                                                                                        * @framerSupportedLayoutWidth any-prefer-fixed\n                                                                                                                        * @framerSupportedLayoutHeight any-prefer-fixed\n                                                                                                                        */\nexport default RiveComponent;\nRiveComponent.displayName = componentName;\naddPropertyControls(RiveComponent, propertyControls);\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"RiveComponent\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerSupportedLayoutHeight\": \"any-prefer-fixed\",\n        \"framerSupportedLayoutWidth\": \"any-prefer-fixed\",\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Observatory_light.map"],
  "mappings": "4HAGO,IAAMA,EAAgB,kCACd,SAARC,EAA0BC,EAAO,CACtC,IAAMC,EAAS,IAAIC,EAAK,OAAO,CAC7B,IAAKF,EAAM,KAAO,UAClB,UAAWA,EAAM,WAAa,QAChC,CAAC,EACKG,EAAS,CACb,IAAK,wEACL,SAAU,mBACV,cAAe,eACf,SAAkBH,EAAM,KACxB,OAAAC,CACF,EACM,CAAE,cAAAG,EAAe,KAAAC,CAAK,EAAIC,EAAQH,CAAM,EACxCI,EAAWC,EACfH,EACA,eACA,UACAL,EAAM,QACR,EACAS,EAAU,IAAM,CACVF,IACFA,EAAS,MAAQP,EAAM,SAE3B,EAAG,CAACA,EAAM,QAAQ,CAAC,EACnB,IAAMU,EAAWF,EAAqBH,EAAM,eAAgB,SAAS,EACrE,OAAAI,EAAU,IAAM,CACVC,GACFA,EAAS,KAAK,CAElB,EAAG,CAACV,EAAM,QAAQ,CAAC,EACnBS,EAAU,IAAM,CACVJ,IACEM,EAAa,QAAQ,IAAMA,EAAa,OACtCX,EAAM,cAAgBA,EAAM,KAC9BK,EAAK,KAAK,EAEVA,EAAK,MAAM,EAGTL,EAAM,KACRK,EAAK,KA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A,eACA,cACA,gBACA,cACF,CACF,CACF,EACAC,EAAoBhB,EAAUc,CAAgB,ECnJ9C,IAAOG,EAAQC,EACfA,EAAc,YAAcC,EAC5BC,EAAoBF,EAAeG,CAAgB",
  "names": ["componentName", "Controls", "props", "layout", "s", "params", "RiveComponent", "rive", "E", "boolean1", "x", "ue", "trigger1", "RenderTarget", "e", "propertyControls", "ControlType", "addPropertyControls", "Observatory_light_default", "Controls", "componentName", "addPropertyControls", "propertyControls"]
}
