{"version":3,"file":"LocalizeText.KI0c2eBB.mjs","names":[],"sources":["https:/framerusercontent.com/modules/KkZ1uLWp7p4AFXbPPa5M/AdzHlaUQ77FFLgNdYdr2/LocalizeText.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{useLocaleInfo}from\"framer\";/**\n * Some canvas labels are plain string controls, not translatable rich text —\n * Framer's localization system (setLocalizationData) only reaches rich text\n * and default component values, never a literal control override typed onto\n * an instance. Without this, the label renders in whatever language it was\n * typed in on every locale, including /ko.\n *\n * This wraps such a component and swaps its text prop for a Korean one when\n * the visitor's active locale is Korean, using Framer's own useLocaleInfo()\n * (the same hook the navbar's LanguageSwitcher reads) so it reacts instantly\n * if the visitor switches language without a full page reload.\n */function localize(value,table,isKorean){if(!isKorean)return value;return table[value]??value;}const MATCH_TAG_QUALIFY_KO={\"SERIES 1\":\"시리즈 1\",\"SERIES 2\":\"시리즈 2\",\"SERIES 3\":\"시리즈 3\",\"SERIES 4\":\"시리즈 4\",\"SERIES 5\":\"시리즈 5\",\"Championship\":\"챔피언십\",\"CHAMPIONSHIP\":\"챔피언십\",\"NEW YORK\":\"뉴욕\",\"VANCOUVER\":\"밴쿠버\",\"SYDNEY\":\"시드니\",\"SEOUL\":\"서울\",\"LOS ANGELES\":\"로스앤젤레스\"};export function withLocalizedQualify(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const{activeLocale}=useLocaleInfo();const isKorean=(activeLocale?.code??\"\").toLowerCase().startsWith(\"ko\");const qualify=localize(props.qualify,MATCH_TAG_QUALIFY_KO,isKorean);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,qualify:qualify});});}export function withLocalizedLabelText(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const{activeLocale}=useLocaleInfo();const isKorean=(activeLocale?.code??\"\").toLowerCase().startsWith(\"ko\");const labelText=localize(props.labelText,MATCH_TAG_QUALIFY_KO,isKorean);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,labelText:labelText});});}export function withLocalizedCountryTitle(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const{activeLocale}=useLocaleInfo();const isKorean=(activeLocale?.code??\"\").toLowerCase().startsWith(\"ko\");const countryTitle=localize(props.countryTitle,MATCH_TAG_QUALIFY_KO,isKorean);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,countryTitle:countryTitle});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withLocalizedLabelText\":{\"type\":\"reactHoc\",\"name\":\"withLocalizedLabelText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLocalizedCountryTitle\":{\"type\":\"reactHoc\",\"name\":\"withLocalizedCountryTitle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLocalizedQualify\":{\"type\":\"reactHoc\",\"name\":\"withLocalizedQualify\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocalizeText.map"],"mappings":"qKAWG,SAAS,EAAS,EAAM,EAAM,EAAS,CAA2B,OAAtB,EAA6B,EAAM,IAAQ,EAA3B,CAAiC,CAA8P,SAAgB,EAAqB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,gBAAc,EAAc,EAAQ,GAAU,GAAc,MAAM,GAAA,CAAI,YAAY,CAAC,CAAC,WAAW,IAAI,EAAQ,EAAQ,EAAS,EAAM,QAAQ,EAAqB,CAAQ,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAc,SAAO,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgB,EAAuB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,gBAAc,EAAc,EAAQ,GAAU,GAAc,MAAM,GAAA,CAAI,YAAY,CAAC,CAAC,WAAW,IAAI,EAAQ,EAAU,EAAS,EAAM,UAAU,EAAqB,CAAQ,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAgB,WAAS,CA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