{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/store.js@^1.0.0", "ssg:https://framerusercontent.com/modules/bK5pRDdpCuT7LplrmA2d/nzlmh4YsGumENiTPPPej/Talent_Manager.js"],
  "sourcesContent": ["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map", "import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({buffpupIsLive:false,aicandiiIsLive:false,rosedoodleIsLive:false,shiabunIsLive:false});export function MasterOogway(props){const[store,setStore]=useStore();const fetchStatus=async()=>{const response=await fetch(\"https://vchiban-live-status.design-pixelease.workers.dev/\");if(!response.ok){console.error(`Error getting status API response:\n                    ${response.status.toString()}\n                    ${response.statusText}\n                `);}else{const data=await response.json();if(!data[0]){return;}data.forEach(member=>{switch(member.MemberName){case\"Buffpup\":setStore({buffpupIsLive:true});break;case\"AiCandii\":setStore({aicandiiIsLive:true});break;case\"rosedoodle\":setStore({rosedoodleIsLive:true});break;case\"ShiaBun\":setStore({shiabunIsLive:true});break;}});}console.log(\"Master Oogway appears.\");};useEffect(()=>{fetchStatus();},[]);return /*#__PURE__*/_jsx(_Fragment,{});}export function withStatusBuff(Component){return props=>{const[store,setStore]=useStore();const phoneVariant=store.buffpupIsLive?\"Phone Live\":\"Phone Normal\";const variant=store.buffpupIsLive?\"Live\":\"Normal\";return /*#__PURE__*/_jsx(Component,{...props,variant:props.phone?phoneVariant:variant});};}export function withStatusAicandii(Component){return props=>{const[store,setStore]=useStore();const phoneVariant=store.aicandiiIsLive?\"Phone Live\":\"Phone Normal\";const variant=store.aicandiiIsLive?\"Live\":\"Normal\";return /*#__PURE__*/_jsx(Component,{...props,variant:props.phone?phoneVariant:variant});};}export function withStatusRose(Component){return props=>{const[store,setStore]=useStore();const phoneVariant=store.rosedoodleIsLive?\"Phone Live\":\"Phone Normal\";const variant=store.rosedoodleIsLive?\"Live\":\"Normal\";return /*#__PURE__*/_jsx(Component,{...props,variant:props.phone?phoneVariant:variant});};}export function withStatusShia(Component){return props=>{const[store,setStore]=useStore();const phoneVariant=store.shiabunIsLive?\"Phone Live\":\"Phone Normal\";const variant=store.shiabunIsLive?\"Live\":\"Normal\";return /*#__PURE__*/_jsx(Component,{...props,variant:props.phone?phoneVariant:variant});};}export function withStatusButtonBuff(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.buffpupIsLive?\"Live\":\"Stretchy\"});};}export function withStatusButtonAicandii(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.aicandiiIsLive?\"Live\":\"Stretchy\"});};}export function withStatusButtonRose(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.rosedoodleIsLive?\"Live\":\"Stretchy\"});};}export function withStatusButtonShia(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.shiabunIsLive?\"Live\":\"Stretchy\"});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withStatusShia\":{\"type\":\"reactHoc\",\"name\":\"withStatusShia\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStatusAicandii\":{\"type\":\"reactHoc\",\"name\":\"withStatusAicandii\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MasterOogway\":{\"type\":\"reactComponent\",\"name\":\"MasterOogway\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStatusButtonShia\":{\"type\":\"reactHoc\",\"name\":\"withStatusButtonShia\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStatusRose\":{\"type\":\"reactHoc\",\"name\":\"withStatusRose\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStatusButtonBuff\":{\"type\":\"reactHoc\",\"name\":\"withStatusButtonBuff\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStatusBuff\":{\"type\":\"reactHoc\",\"name\":\"withStatusBuff\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStatusButtonRose\":{\"type\":\"reactHoc\",\"name\":\"withStatusButtonRose\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStatusButtonAicandii\":{\"type\":\"reactHoc\",\"name\":\"withStatusButtonAicandii\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Talent_Manager.map"],
  "mappings": "8GAAqF,SAASA,EAAYC,EAAO,CACjH,IAAMC,EAAUC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,SAASG,EAAeL,EAAU,CAAC,OAAOX,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEL,EAAS,EAAQe,EAAaX,EAAM,cAAc,aAAa,eAAqBY,EAAQZ,EAAM,cAAc,OAAO,SAAS,OAAoBO,EAAKG,EAAU,CAAC,GAAGX,EAAM,QAAQA,EAAM,MAAMY,EAAaC,CAAO,CAAC,CAAE,CAAE,CAAQ,SAASI,EAAqBN,EAAU,CAAC,OAAOX,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEL,EAAS,EAAE,OAAoBW,EAAKG,EAAU,CAAC,GAAGX,EAAM,QAAQC,EAAM,cAAc,OAAO,UAAU,CAAC,CAAE,CAAE,CAAQ,SAASiB,EAAyBP,EAAU,CAAC,OAAOX,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEL,EAAS,EAAE,OAAoBW,EAAKG,EAAU,CAAC,GAAGX,EAAM,QAAQC,EAAM,eAAe,OAAO,UAAU,CAAC,CAAE,CAAE,CAAQ,SAASkB,EAAqBR,EAAU,CAAC,OAAOX,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEL,EAAS,EAAE,OAAoBW,EAAKG,EAAU,CAAC,GAAGX,EAAM,QAAQC,EAAM,iBAAiB,OAAO,UAAU,CAAC,CAAE,CAAE,CAAQ,SAASmB,EAAqBT,EAAU,CAAC,OAAOX,GAAO,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAEL,EAAS,EAAE,OAAoBW,EAAKG,EAAU,CAAC,GAAGX,EAAM,QAAQC,EAAM,cAAc,OAAO,UAAU,CAAC,CAAE,CAAE",
  "names": ["createStore", "state1", "dataStore", "Data", "setDataStore", "newState", "storeState", "storeSetters", "setStoreState", "setter", "useStore", "state", "setState", "ye", "ue", "useObserveData", "useStore", "createStore", "MasterOogway", "props", "store", "setStore", "fetchStatus", "response", "data", "member", "ue", "p", "l", "withStatusBuff", "Component", "phoneVariant", "variant", "withStatusAicandii", "withStatusRose", "withStatusShia", "withStatusButtonBuff", "withStatusButtonAicandii", "withStatusButtonRose", "withStatusButtonShia"]
}
