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_E/?2ab5","webpack://_N_E/./src/config/i18n/provider.tsx","webpack://_N_E/./node_modules/next/dist/compiled/react/cjs/react-jsx-runtime.production.min.js","webpack://_N_E/./node_modules/next/dist/compiled/react/jsx-runtime.js"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src697894185/src/data-id-homepage-web/src/config/i18n/provider.tsx\")","'use client'\n\nimport React, { useContext } from 'react'\n\nimport type CustomDictionary from '@/config/i18n/dictionaries/custom/en.json'\nimport type HomepageDictionary from '@/config/i18n/dictionaries/homepage/en.json'\n\nexport type DictionaryGroup = 'homepage' | 'custom'\nexport type HomepageDictionaryType = typeof HomepageDictionary\nexport type CustomDictionaryType = typeof CustomDictionary\nexport type DictionaryType = CustomDictionaryType | HomepageDictionaryType\n\ntype SelectedDictionaryType<T extends DictionaryGroup> = T extends 'homepage'\n ? HomepageDictionaryType\n : T extends 'custom'\n ? CustomDictionaryType\n : never\n\ninterface DictionaryGroupType {\n homepage: HomepageDictionaryType\n custom: CustomDictionaryType\n}\n\ntype DictionaryProviderProps = {\n children: React.ReactNode\n dictionary: {\n [group in DictionaryGroup]: DictionaryGroupType[group]\n }\n}\n\nconst DictionaryContext = React.createContext({})\n\nexport function DictionaryProvider({ children, dictionary }: DictionaryProviderProps) {\n return <DictionaryContext.Provider value={dictionary}>{children}</DictionaryContext.Provider>\n}\n\nconst warning = () =>\n // eslint-disable-next-line no-console\n console.warn(`\n í´ë¼ì´ì–¸íŠ¸ ì»´í¬ë„ŒíŠ¸ì—ì„œ 다êµì–´ 처리를 하기 위해서는...\n\n 1. 서버 ì»´í¬ë„ŒíŠ¸ì—ì„œ getOnboardingDictionary를 호출해서 dictionary ë°ì´í„°ë¥¼ ê°€ì ¸ì˜µë‹ˆë‹¤.\n 2. í´ë¼ì´ì–¸íŠ¸ ì»´í¬ë„ŒíŠ¸ ìƒìœ„ì— DictionaryProvider를 작성합니다.\n\n 위 ìž‘ì—…ì„ í†µí•´ì„œ í´ë¼ì´ì–¸íŠ¸ ì»´í¬ë„ŒíŠ¸ì—ì„œë„ dictionary ë°ì´í„°ë¥¼ ê°€ì ¸ì˜¬ 수 있습니다.\n `)\n\nexport const useDictionary = <T extends DictionaryGroup>(type: T) => {\n const context = useContext(DictionaryContext) as DictionaryProviderProps['dictionary']\n const selectedDictionary = context[type]\n const isValidContext = Object.keys(selectedDictionary).length > 0\n\n if (!isValidContext) {\n warning()\n }\n\n return selectedDictionary as SelectedDictionaryType<T>\n}\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"next/dist/compiled/react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["DictionaryContext","React","DictionaryProvider","children","dictionary","Provider","value","useDictionary","type","selectedDictionary","useContext","Object","keys","length","f","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","props","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}