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Z,GAAA3C,EAAAI,GAAA,EAACwC,EAAAA,GAAaA,CAAAA,CACZC,QAASlE,EAAIkE,OAAO,CACpBC,aAAc,CACX,MAAuDvD,MAAA,CAAlDR,OAAOJ,EAAIoE,oBAAoB,EAAEC,cAAc,GAAG,KACzD,CAED1D,KAAMX,EAAIa,WAAW,CACrBuB,KAAM,2BAAyDlC,MAAAA,CAA9BP,EAAckB,WAAW,CAAC,MAAgBR,MAAAA,CAAZH,EAAS,KAAeU,MAAA,CAAZP,EAAY,MACvFiE,OAAQtE,EAAIe,MAAM,CAAC,EAAE,CAAGf,EAAIe,MAAM,CAAC,EAAE,CAACC,GAAG,CAAG,EAAE,CAC9CsB,MAAO,CACLC,OAAQ,QACRC,KAAM,gBACNC,mBAAoB,gBACtB,GARKzC,EAAIa,WAAW,QAelC","sources":["webpack://_N_E/?97ab","webpack://_N_E/./pages/funeral-recommend-item/[companyname]/price.tsx","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/funeral-recommend-item/[companyname]/price\",\n function () {\n return require(\"private-next-pages/funeral-recommend-item/[companyname]/price.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/funeral-recommend-item/[companyname]/price\"])\n });\n }\n ","import {\n ParlorHeadSection,\n DTypeMainHead,\n DTypeCardView,\n DTypeParlorList,\n FUNERAL_SIDO,\n FUNERAL_SIGUNGU,\n ParlorDetailProps,\n numberToLocalString,\n CTypeTabs,\n BTypeBinsoPriceSummary,\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\";\n\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(\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 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 if (binso.charge) {\n binsoString += `${binso.pyeong.toFixed()}평-${numberToLocalString(\n binso.charge\n )}원, `;\n }\n });\n\n description = `${parlor.companyname}의 빈소 평수, 24시간 이용 기준 빈소 이용료 안내.`;\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} 추천,\n ${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 price({\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}\n"],"names":["window","__NEXT_P","push","__webpack_require__","regionColor","targetSidos","parlorRegion","price","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","padding","DTypeCTA","id","CTypeTabs","selectTab","background","BTypeBinsoPriceSummary","Box","width","height","DTypeParlorList","binsoAveragePrice","CardViewType","DTypeCardView","address","descriptions","binso_average_charge","toLocaleString","imgSrc"],"sourceRoot":""}