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AA,EAAuBE,aAAa,GAAI,GAAA/C,EAAAC,IAAA,EAACG,MAAAA,WAAI,QAAMyC,EAAsBE,aAAa,CAAC,WACvFD,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAsBC,aAAa,GAAI,GAAA/C,EAAAC,IAAA,EAACG,MAAAA,WAAI,QAAM0C,EAAqBC,aAAa,CAAC,gBAKhG,EAGF9B,CAAAA,EAAaqB,WAAW,CAAG,eAE3BjE,EAAA,QAAeW,qBCjMfgE,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./public/images/iqfu/public/scrollable_icon.svg","webpack://_N_E/./src/iqfu/components/public/cities_link_list/CitiesLinkList.tsx","webpack://_N_E/./src/iqfu/components/public/cities_link_list/CitiesLinkList.module.scss","webpack://_N_E/"],"sourcesContent":["var _path;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nvar SvgScrollableIcon = function SvgScrollableIcon(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 7,\n height: 13,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M.24 4.558a.635.635 0 0 1 0-.899L2.935.964a.635.635 0 0 1 .899 0l2.695 2.695a.635.635 0 0 1-.899.899L3.993 2.92V10.062l1.583-1.584a.635.635 0 1 1 .899.898L3.78 12.072a.635.635 0 0 1-.899 0L.186 9.376a.635.635 0 1 1 .898-.898l1.638 1.638V2.974L1.138 4.557a.635.635 0 0 1-.898 0Z\",\n fill: \"#FE9210\"\n })));\n};\n\nexport default SvgScrollableIcon;","import { FC, memo, useEffect, useState } from 'react';\n\nimport Link from 'next/link';\nimport { useRouter } from 'next/router';\n\nimport ScrollableIcon from '/public/images/iqfu/public/scrollable_icon.svg';\n\nimport SectionLeadLeftAlign from '@components_iqfu/public/section_lead_left_align/SectionLeadLeftAlign';\n\nimport { CitiesLinkData } from '@type-def_iqfu/public/CitiesLinkData';\nimport { SalesStatsData } from '@type-def_iqfu/public/MarketData';\n\nimport { PublicPrefecturesWithAll } from '@constants_iqfu';\nimport { CompaniesPageQueryType } from 'src/iqfu/data/companiesPagesData';\n\nimport styles from './CitiesLinkList.module.scss';\n\ntype landHousesPricePageProps = {\n pageType: 'landhouses';\n citiesData: CitiesLinkData;\n prefectureId: number;\n landDisplayData: SalesStatsData;\n houseDisplayData: SalesStatsData;\n hasReadMoreButton?: boolean;\n location: string;\n};\n\ntype mansionsPricePageProps = {\n pageType: 'mansions';\n citiesData: CitiesLinkData;\n prefectureId: number;\n mansionDisplayData: SalesStatsData;\n hasReadMoreButton?: boolean;\n location: string;\n};\n\ntype companiesPageProps = {\n pageType: 'companies';\n citiesData: CitiesLinkData;\n prefectureId: number;\n pageQueryType: CompaniesPageQueryType;\n hasReadMoreButton?: boolean;\n location: string;\n};\n\ntype Props = landHousesPricePageProps | mansionsPricePageProps | companiesPageProps;\n\nconst CitiesLinkList: FC = memo((props) => {\n const router = useRouter();\n const { pageType, citiesData, prefectureId, hasReadMoreButton = false, location } = props;\n const prefectureName = PublicPrefecturesWithAll[Number(prefectureId)];\n const [readMoreButtonClicked, setReadMoreButtonClicked] = useState(false);\n\n useEffect(() => {\n setReadMoreButtonClicked(false);\n }, [router]);\n\n return (\n <>\n {pageType === 'landhouses' || pageType === 'mansions' ? (\n
\n \n 市区町村別の{pageType === 'mansions' ? 'マンション' : '土地・中古戸建'}売却価格査定額の相場・動向を調べる\n \n
\n ) : (\n <>{/* 会社系ページはCompaniesPrefectuersCommon内に見出し書く */}\n )}\n\n \n {citiesData.city_groups.map((cityList, index: number) => (\n
\n
\n {pageType === 'companies' ? (\n

\n \n {prefectureName}-{cityList.city_group_name}\n \n
\n の不動産屋さんランキングを見る\n

\n ) : (\n

\n \n {prefectureName}-{cityList.city_group_name}\n \n
の{pageType === 'mansions' ? 'マンション' : '土地戸建'}の売却査定額\n

\n )}\n {pageType === 'mansions' ? (\n \n ) : pageType === 'landhouses' ? (\n \n ) : (\n <>\n )}\n
\n\n
    \n {cityList.cities.map((city, i: number) => {\n return (\n
  • \n \n {city.city_name}\n \n
  • \n );\n })}\n
\n {hasReadMoreButton && (\n
\n

\n \n スクロール出来るようになります\n

\n setReadMoreButtonClicked(true)}\n >\n もっと見る\n \n
\n )}\n
\n ))}\n \n \n );\n});\n\nCitiesLinkList.displayName = 'CitiesLinkList';\n\ntype AveragePriceProps = {\n groupCode: number;\n pageType: 'mansions' | 'landhouses' | 'companies';\n mansionDisplayData?: SalesStatsData;\n landDisplayData?: SalesStatsData;\n houseDisplayData?: SalesStatsData;\n};\n\nconst AveragePrice: FC = memo(\n ({ groupCode, mansionDisplayData, landDisplayData, houseDisplayData, pageType }) => {\n const averageGroupData = mansionDisplayData?.city_groups_average_prices.find((group) => {\n return group.code === groupCode;\n });\n const houseAverageGroupData = houseDisplayData?.city_groups_average_prices.find((group) => {\n return group.code === groupCode;\n });\n const landAverageGroupData = landDisplayData?.city_groups_average_prices.find((group) => {\n return group.code === groupCode;\n });\n\n return (\n
\n {pageType === 'mansions' && averageGroupData?.average_price && (\n
平均{averageGroupData?.average_price}万円/m2
\n )}\n\n {((pageType === 'landhouses' && landAverageGroupData?.average_price) ||\n (pageType === 'landhouses' && houseAverageGroupData?.average_price)) && (\n
\n {houseAverageGroupData?.average_price &&
戸建:平均{houseAverageGroupData.average_price}万円/m2
}\n {landAverageGroupData?.average_price &&
土地:平均{landAverageGroupData.average_price}万円/m2
}\n
\n )}\n
\n );\n },\n);\n\nAveragePrice.displayName = 'AveragePrice';\n\nexport default CitiesLinkList;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"section_title\":\"CitiesLinkList_section_title__eHJIW\",\"area_group_title\":\"CitiesLinkList_area_group_title__Gaqq_\",\"link_list\":\"CitiesLinkList_link_list__Mo1Gg\",\"area_name\":\"CitiesLinkList_area_name__uGSmr\",\"link_item\":\"CitiesLinkList_link_item__zuEso\",\"average_mansion_price\":\"CitiesLinkList_average_mansion_price__Pqkw4\",\"landHouses_average_price_area\":\"CitiesLinkList_landHouses_average_price_area__WcJxV\",\"area_list_container\":\"CitiesLinkList_area_list_container__SZ0VQ\",\"hasReadMoreButton\":\"CitiesLinkList_hasReadMoreButton__XDJj4\",\"isScrollable\":\"CitiesLinkList_isScrollable__5hLEC\",\"read_more_container\":\"CitiesLinkList_read_more_container__XZn_9\",\"isClicked\":\"CitiesLinkList_isClicked__ofHp3\",\"scrollable_text\":\"CitiesLinkList_scrollable_text__frgi3\",\"read_more_button\":\"CitiesLinkList_read_more_button__Li2fh\"};"],"names":["_path","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","__webpack_exports__","props","react__WEBPACK_IMPORTED_MODULE_0__","createElement","width","height","fill","xmlns","fillRule","clipRule","d","CitiesLinkList","memo","router","useRouter","pageType","citiesData","prefectureId","hasReadMoreButton","location","prefectureName","PublicPrefecturesWithAll","Number","readMoreButtonClicked","setReadMoreButtonClicked","useState","useEffect","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","Fragment","jsx","div","className","styles","SectionLeadLeftAlign","concat","city_groups","map","cityList","index","h3","span","city_group_name","br","AveragePrice","groupCode","city_group_code","mansionDisplayData","landDisplayData","houseDisplayData","ul","cities","city","li","Link","prefetch","href","city_code","pageQueryType","data-gtm-click","city_name","p","ScrollableIcon","button","onClick","displayName","param","averageGroupData","city_groups_average_prices","find","group","code","houseAverageGroupData","landAverageGroupData","average_price","module","exports"],"sourceRoot":""}