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AAAA,CAAKA,CAAAA,CACJK,MAAO,CACLJ,QAAS,WACX,WAEA,GAAA9B,EAAAI,GAAA,EAACqC,EAAAA,GAAeA,CAAAA,CACdC,kBAAiB,GACjB9D,KAAMN,EAAcM,IAAI,CACxByB,MAAO,GAAYd,MAAA,CAATV,EAAS,aACnB8D,aAAc,GACZ,GAAA3C,EAAAI,GAAA,EAACwC,EAAAA,GAAaA,CAAAA,CACZC,QAASlE,EAAIkE,OAAO,CAEpBvD,KAAMX,EAAIa,WAAW,CACrBuB,KAAM,2BAAyDlC,MAAAA,CAA9BP,EAAckB,WAAW,CAAC,MAAgBR,MAAAA,CAAZH,EAAS,KAAeU,MAAA,CAAZP,EAAY,MACvF8D,aAAc,CAAE,MAAuDvD,MAAA,CAAlDR,OAAOJ,EAAIoE,oBAAoB,EAAEC,cAAc,GAAG,KAAG,CAC1EC,OAAQtE,EAAIe,MAAM,CAAC,EAAE,CAAGf,EAAIe,MAAM,CAAC,EAAE,CAACC,GAAG,CAAG,EAAE,CAC9CsB,MAAO,CACLC,OAAQ,QACRC,KAAM,gBACNC,mBAAoB,gBACtB,GATKzC,EAAIa,WAAW,QAgBlC","sources":["webpack://_N_E/?8abb","webpack://_N_E/./pages/funeral-recommend-item/[companyname]/binso.tsx","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/funeral-recommend-item/[companyname]/binso\",\n function () {\n return require(\"private-next-pages/funeral-recommend-item/[companyname]/binso.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/funeral-recommend-item/[companyname]/binso\"])\n });\n }\n ","import {\n ParlorHeadSection,\n DTypeMainHead,\n DTypeCardView,\n DTypeParlorList,\n FUNERAL_SIDO,\n FUNERAL_SIGUNGU,\n BTypeBinsoRealTimeSummary,\n GOI_WEB_URL,\n // ATypeCTA,\n ATypeBreadCrumb,\n DTypeCTA,\n} from \"goi_common\";\nimport { GetStaticPaths, GetStaticProps } from \"next\";\nimport parlors from \"goi_common/src/constants/parlors_detail.json\";\n\nimport React from \"react\";\nimport { ParlorDetailProps, numberToLocalString, CTypeTabs } from \"goi_common\";\nimport { parlorRegion } from \"@/constants/parlorRegion\";\nimport { Box, Stack } from \"@mui/material\";\nimport Head from \"next/head\";\n\nconst { regionColor, targetSidos } = parlorRegion;\n\nfunction getByValue(map: Map, searchValue: any) {\n for (const [key, value] of map.entries()) {\n if (key === searchValue) return value;\n }\n}\n\nexport const getStaticPaths: GetStaticPaths = async () => {\n const paths = parlors\n .filter((res) => targetSidos.includes(res.sido))\n .map((parlor) => ({\n params: {\n companyname: `${parlor.companyname}-(${getByValue(\n FUNERAL_SIDO,\n Number(parlor.sido)\n )} ${getByValue(FUNERAL_SIGUNGU.get(Number(parlor.sido)) as any, Number(parlor.sigungu))})`,\n },\n }));\n\n return {\n paths,\n fallback: false,\n };\n};\n\nexport const getStaticProps: GetStaticProps = async ({ params }) => {\n const code = params?.companyname as string;\n const companyname = code.split(\"-\")[0];\n let parlor;\n let district;\n let name = \"\";\n let description = \"\";\n\n if (companyname) {\n parlor = parlors.find((parlor) => parlor.companyname === companyname);\n if (parlor) {\n name = parlor.companyname;\n\n district = parlor.address.slice(0, 2);\n if (parlor.address.split(\" \")[0].length == 4)\n district = parlor.address[0] + parlor.address[2];\n\n let binsoString = \"\";\n parlor.binsos.forEach((binso: any) => {\n binsoString += `${binso.pyeong.toFixed()}평형 ${numberToLocalString(binso.charge)}원, `;\n });\n\n description = `${parlor.companyname}_2023 실시간 빈소 현황 확인, 정보 안내, 요약`;\n }\n }\n\n return {\n props: {\n defaultParlor: parlor,\n pageDescription: description,\n pageKeywords: `${parlor?.companyname}, ${parlor?.companyname} 빈소, ${parlor?.companyname} 실시간 빈소 현황`,\n pageOgTitle: `(${district}) ${parlor?.companyname} 실시간 빈소 정보 요약 :: 전라광주장례추천포털`,\n pageOgDescription: description,\n pageOgImage: parlor?.images[0]?.url || \"\",\n hasError: !parlor,\n },\n };\n};\n\nexport default function binso({\n defaultParlor,\n pageOgTitle,\n}: {\n defaultParlor: ParlorDetailProps;\n pageOgTitle: string;\n}) {\n const regionParlors = parlors.filter((res) => targetSidos.includes(res.sido));\n const sidoName = FUNERAL_SIDO.get(Number(defaultParlor.sido));\n const sigunguName = FUNERAL_SIGUNGU.get(Number(defaultParlor.sido))?.get(\n Number(defaultParlor.sigungu)\n );\n\n const carouselItems = regionParlors.map((res, i) => {\n return {\n \"@type\": \"ListItem\",\n name: `(비용안내) ${res.companyname}`,\n image: `${res.images[0].url}`,\n url: `https://www.honam-funeralcenter.co.kr/funeral-recommend-item/${defaultParlor.companyname}-(${sidoName} ${sigunguName})/`,\n position: i + 1,\n };\n });\n\n const carouselRichSearch =\n regionParlors.length > 6\n ? {\n \"@context\": \"http://schema.org\",\n \"@type\": \"ItemList\",\n itemListElement: carouselItems,\n }\n : {};\n\n return (\n <>\n \n {pageOgTitle}\n {regionParlors.length > 5 && (\n \n )}\n \n \n \n \n \n }\n />\n \n \n \n \n {/* */}\n \n \n\n \n \n \n\n \n \n \n\n \n \n \n \n (\n \n )}\n />\n \n \n );\n}\n"],"names":["window","__NEXT_P","push","__webpack_require__","regionColor","targetSidos","parlorRegion","binso","param","FUNERAL_SIGUNGU","defaultParlor","pageOgTitle","regionParlors","parlors","includes","res","sido","sidoName","FUNERAL_SIDO","Number","sigunguName","get","sigungu","carouselItems","map","i","name","concat","companyname","image","images","url","position","carouselRichSearch","length","itemListElement","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","Fragment","Head","jsx","title","script","type","dangerouslySetInnerHTML","__html","JSON","stringify","ATypeBreadCrumb","firstItem","text","href","GOI_WEB_URL","event","domain","path","trigger_and_target","secondItem","thirdItem","goiHomeEvent","ParlorHeadSection","component","DTypeMainHead","mainColor","managed_type","Stack","padding","Box","width","height","style","background","DTypeCTA","id","CTypeTabs","selectTab","BTypeBinsoRealTimeSummary","DTypeParlorList","binsoAveragePrice","CardViewType","DTypeCardView","address","descriptions","binso_average_charge","toLocaleString","imgSrc"],"sourceRoot":""}