{"version":3,"file":"shared-lib.aep8TDB-.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/static.spartaclub.kr/framer/store/index.js","https:/framerusercontent.com/modules/nV9kBJZwpPAij0g8R7Qu/Krpk690V4XhYdyXRPIPt/D5v7eLOMG.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","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import { Data } from 'framer';\nimport { createStore } from 'https://framer.com/m/framer/store.js@^1.0.0';\n\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar validationState = Data({\n  fields: {},\n  isFormValid: false\n});\nfunction resetValidationState() {\n  Object.keys(validationState.fields).forEach((key) => {\n    delete validationState.fields[key];\n  });\n  validationState.isFormValid = false;\n}\n__name(resetValidationState, \"resetValidationState\");\nvar formData = Data({});\nfunction resetFormData() {\n  Object.keys(formData).forEach((key) => {\n    delete formData[key];\n  });\n}\n__name(resetFormData, \"resetFormData\");\n\n// src/store/_utils.ts\nfunction getCookie(name) {\n  if (typeof document === \"undefined\" || !document) {\n    return void 0;\n  }\n  const cookies = document.cookie.split(\";\");\n  for (let i = 0; i < cookies.length; i++) {\n    const cookie = cookies[i].trim();\n    if (cookie.startsWith(name + \"=\")) {\n      return cookie.substring(name.length + 1);\n    }\n  }\n  return null;\n}\n__name(getCookie, \"getCookie\");\n\n// src/store/user.ts\nvar loginModalData = Data({\n  nextPage: \"\"\n});\nfunction getIsUserLoggedIn() {\n  const userinfo = getCookie(\"userinfo\");\n  const token = getCookie(\"token\");\n  if (typeof userinfo === \"undefined\" || typeof token === \"undefined\") {\n    return void 0;\n  }\n  return !!userinfo && !!token;\n}\n__name(getIsUserLoggedIn, \"getIsUserLoggedIn\");\nvar useUserLoginStore = createStore({\n  isUserLoggedIn: getIsUserLoggedIn(),\n  isLoading: true\n});\nvar useCompanyLoginStore = createStore({\n  isCompanyUserLoggedIn: false,\n  isLoading: true\n});\nvar pagePropertyData = Data({});\nvar useRoundStore = createStore({\n  displayState: \"loading\",\n  buttonText: \"\\uB2E4\\uC74C \\uAE30\\uC218 \\uBAA8\\uC9D1 \\uC900\\uBE44 \\uC911\"\n});\nvar reactiveFormConfig = Data({\n  eventName: \"\",\n  successRedirect: \"\",\n  duplicateAlertMessage: \"\\uC774\\uBBF8 \\uC2E0\\uCCAD\\uC744 \\uC644\\uB8CC\\uD558\\uC600\\uC2B5\\uB2C8\\uB2E4.\",\n  logKey: \"\"\n});\nvar _fields = {};\nfunction registerReactiveFormField(name, required, type) {\n  _fields[name] = { value: \"\", required, type };\n}\n__name(registerReactiveFormField, \"registerReactiveFormField\");\nfunction updateReactiveFormFieldValue(name, value) {\n  if (_fields[name]) {\n    _fields[name].value = value;\n  }\n}\n__name(updateReactiveFormFieldValue, \"updateReactiveFormFieldValue\");\nfunction unregisterReactiveFormField(name) {\n  delete _fields[name];\n}\n__name(unregisterReactiveFormField, \"unregisterReactiveFormField\");\nfunction getReactiveFormFields() {\n  return { ..._fields };\n}\n__name(getReactiveFormFields, \"getReactiveFormFields\");\nvar useReactiveFormStateStore = createStore({\n  isSubmitting: false,\n  isSubmitted: false\n});\nfunction resetReactiveForm() {\n  _fields = {};\n}\n__name(resetReactiveForm, \"resetReactiveForm\");\n\nexport { formData, getReactiveFormFields, loginModalData, pagePropertyData, reactiveFormConfig, registerReactiveFormField, resetFormData, resetReactiveForm, resetValidationState, unregisterReactiveFormField, updateReactiveFormFieldValue, useCompanyLoginStore, useReactiveFormStateStore, useRoundStore, useUserLoginStore, validationState };\n//# sourceMappingURL=index.js.map\n//# sourceMappingURL=index.js.map","// Generated by Framer (c9d77eb)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOM;Pretendard Bold\",\"CUSTOM;Pretendard Bold\",\"CUSTOM;Pretendard Bold\",\"CUSTOM;Pretendard Bold\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Pretendard Bold\",source:\"custom\",style:\"normal\",uiFamilyName:\"Pretendard\",url:\"https://framerusercontent.com/assets/3k6AbUd2hINBXXy5NezESwy7n8.woff2\",weight:\"700\"}]}];export const css=['.framer-wmeKV .framer-styles-preset-1mx2fep:not(.rich-text-wrapper), .framer-wmeKV .framer-styles-preset-1mx2fep.rich-text-wrapper h4 { --framer-font-family: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-bold: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-italic: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: normal; --framer-font-style-italic: normal; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 700; --framer-letter-spacing: -0.2px; --framer-line-height: 26px; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-ade5128a-9b98-4a71-b879-3299cc475287, #141617); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1439px) and (min-width: 860px) { .framer-wmeKV .framer-styles-preset-1mx2fep:not(.rich-text-wrapper), .framer-wmeKV .framer-styles-preset-1mx2fep.rich-text-wrapper h4 { --framer-font-family: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-bold: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-italic: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: normal; --framer-font-style-italic: normal; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 700; --framer-letter-spacing: -0.2px; --framer-line-height: 26px; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-ade5128a-9b98-4a71-b879-3299cc475287, #141617); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 859px) and (min-width: 0px) { .framer-wmeKV .framer-styles-preset-1mx2fep:not(.rich-text-wrapper), .framer-wmeKV .framer-styles-preset-1mx2fep.rich-text-wrapper h4 { --framer-font-family: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-bold: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-family-italic: \"Pretendard Bold\", \"Pretendard Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: normal; --framer-font-style-italic: normal; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 700; --framer-letter-spacing: -0.2px; --framer-line-height: 26px; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-ade5128a-9b98-4a71-b879-3299cc475287, #141617); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-wmeKV\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2KAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAA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