{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/XrWQs1WCoeTnjKcwEyLX/6MEuthFYE9jw4g5v0RAQ/FormatDate.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";export const getLocale=()=>{var _window_location,_window;var _window_location_pathname;const currentURL=(_window_location_pathname=(_window=window)===null||_window===void 0?void 0:(_window_location=_window.location)===null||_window_location===void 0?void 0:_window_location.pathname)!==null&&_window_location_pathname!==void 0?_window_location_pathname:\"\";const pathArray=currentURL.split(\"/\");if(pathArray.length>=2){const secondPath=pathArray[1];return secondPath;}return\"\";};function formatDateToJapanese(dateString,withoutYear=false){const date=new Date(dateString);const year=date.getFullYear();const month=date.getMonth()+1;const day=date.getDate();return`${withoutYear?\"\":year+\"\u5E74 \"}${month}\u6708 ${day}\u65E5`;}export const formatDate=Component=>{return props=>{const local=getLocale();if(local===\"en\"){return /*#__PURE__*/_jsx(Component,{...props});}const sessionDate=props.text;const formattedDate=formatDateToJapanese(sessionDate);const{text,...otherProps}=props;return /*#__PURE__*/_jsx(Component,{...otherProps,text:formattedDate});};};export const formatDateWithoutYear=Component=>{return props=>{const local=getLocale();if(local===\"en\"){return /*#__PURE__*/_jsx(Component,{...props});}const sessionDate=props.text;const formattedDate=formatDateToJapanese(sessionDate,true);const{text,...otherProps}=props;return /*#__PURE__*/_jsx(Component,{...otherProps,text:formattedDate});};};\nexport const __FramerMetadata__ = {\"exports\":{\"formatDateWithoutYear\":{\"type\":\"reactHoc\",\"name\":\"formatDateWithoutYear\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getLocale\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatDate\":{\"type\":\"reactHoc\",\"name\":\"formatDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormatDate.map"],
  "mappings": "kFAAkD,IAAMA,EAAU,IAAI,CAAC,IAAIC,EAAiBC,EAAYC,EAAuS,IAAMC,IAAjQD,GAA2BD,EAAQG,KAAU,MAAMH,IAAU,SAAeD,EAAiBC,EAAQ,YAAY,MAAMD,IAAmB,OAAtE,OAAoFA,EAAiB,YAAY,MAAME,IAA4B,OAAOA,EAA0B,IAA8B,MAAM,GAAG,EAAE,OAAGC,EAAU,QAAQ,EAAoBA,EAAU,CAAC,EAA2B,EAAG,EAAE,SAASE,EAAqBC,EAAWC,EAAY,GAAM,CAAC,IAAMC,EAAK,IAAI,KAAKF,CAAU,EAAQG,EAAKD,EAAK,YAAY,EAAQE,EAAMF,EAAK,SAAS,EAAE,EAAQG,EAAIH,EAAK,QAAQ,EAAE,MAAM,GAAGD,EAAY,GAAGE,EAAK,SAAI,GAAGC,CAAK,UAAKC,CAAG,QAAI,CAAQ,IAAMC,EAAWC,GAAmBC,GAAO,CAAyB,GAAZf,EAAU,IAAa,KAAM,OAAoBgB,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAG,IAAME,EAAYF,EAAM,KAAWG,EAAcZ,EAAqBW,CAAW,EAAO,CAAC,KAAAE,EAAK,GAAGC,CAAU,EAAEL,EAAM,OAAoBC,EAAKF,EAAU,CAAC,GAAGM,EAAW,KAAKF,CAAa,CAAC,CAAE,EAAiBG,EAAsBP,GAAmBC,GAAO,CAAyB,GAAZf,EAAU,IAAa,KAAM,OAAoBgB,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAG,IAAME,EAAYF,EAAM,KAAWG,EAAcZ,EAAqBW,EAAY,EAAI,EAAO,CAAC,KAAAE,EAAK,GAAGC,CAAU,EAAEL,EAAM,OAAoBC,EAAKF,EAAU,CAAC,GAAGM,EAAW,KAAKF,CAAa,CAAC,CAAE",
  "names": ["getLocale", "_window_location", "_window", "_window_location_pathname", "pathArray", "window", "formatDateToJapanese", "dateString", "withoutYear", "date", "year", "month", "day", "formatDate", "Component", "props", "p", "sessionDate", "formattedDate", "text", "otherProps", "formatDateWithoutYear"]
}
