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,KAAM,kBACNC,mBAAoB,gBACtB,GARKzC,EAAIa,WAAW,QAelC","sources":["webpack://_N_E/?8241","webpack://_N_E/./pages/funeral-recommend-item/[companyname]/service.tsx","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/funeral-recommend-item/[companyname]/service\",\n function () {\n return require(\"private-next-pages/funeral-recommend-item/[companyname]/service.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/funeral-recommend-item/[companyname]/service\"])\n });\n }\n ","import {\n ParlorHeadSection,\n DTypeMainHead,\n FUNERAL_SIDO,\n FUNERAL_SIGUNGU,\n BTypeSangjoService,\n DTypeParlorList,\n DTypeCardView,\n ATypeBreadCrumb,\n GOI_WEB_URL,\n} from \"goi_common\";\nimport { GetServerSideProps, GetStaticPaths, GetStaticProps } from \"next\";\nimport parlors from \"goi_common/src/constants/parlors_detail.json\";\n\nimport React from \"react\";\nimport { ParlorDetailProps, CTypeTabs } from \"goi_common\";\nimport { parlorRegion } from \"@/constants/parlorRegion\";\nimport Head from \"next/head\";\nimport { Box, Stack } from \"@mui/material\";\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\n// export 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(\n// FUNERAL_SIGUNGU.get(Number(parlor.sido)) as any,\n// Number(parlor.sigungu)\n// )})`,\n// },\n// }));\n\n// return {\n// paths,\n// fallback: false,\n// };\n// };\n\nexport const getServerSideProps: GetServerSideProps = 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 description = `${parlor.companyname}에서 이용 가능한 상조 서비스 용품 차량 인력\n 합리적으로 진행하세요. 장례식장 이용료 제휴 할인 여부 확인.`;\n }\n }\n\n return {\n props: {\n defaultParlor: parlor,\n pageDescription: description,\n pageKeywords: `${parlor?.companyname} 장례 서비스, ${parlor?.companyname} 얼마, ${parlor?.companyname} 앰뷸런스, ${parlor?.companyname} 수의, ${parlor?.companyname} 유골함, ${parlor?.companyname} 도우미, ${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 flower({\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"],"names":["window","__NEXT_P","push","__webpack_require__","regionColor","targetSidos","parlorRegion","flower","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","style","background","CTypeTabs","selectTab","BTypeSangjoService","padding","Box","width","height","DTypeParlorList","binsoAveragePrice","CardViewType","DTypeCardView","address","descriptions","binso_average_charge","toLocaleString","imgSrc"],"sourceRoot":""}