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yB,aACzC,iBAQb,EAEAP,CAAAA,EAAoBiD,WAAW,CAAG,sBASlC,IAAMrB,EAAsC3B,CAAAA,EAAAA,EAAAA,IAAAA,EAAK,GAA2D,KAC5F4B,KADkC,CAAEA,cAAAA,CAAAA,CAAeL,WAAAA,CAAAA,CAAYO,aAAAA,CAAAA,CAAc7B,SAAAA,CAAAA,CAAU,CAAAgD,EAC/FC,EAAQtB,IAA4DL,GAA5DK,CAAAA,EAAAA,EAAcuB,IAAI,CAAC,GAAeC,EAAUC,IAAI,GAAKxB,OAAON,GAAAA,GAA5DK,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA0E0B,aAAa,CAGrG,MACE,GAAA5C,EAAAG,IAAA,EAACC,MAAAA,CACCC,UAAW,GACTmC,MAAAA,CADYjD,YAAAA,EAAyBe,IAAAA,oBAAAA,CAA8BA,IAAAA,uBAAAA,CAA+B,KAEnGC,MAAA,CADCiC,EAAQ,GAAKlC,IAAAA,WAAAA,YAGduC,CARgBC,KAAM,MAAOC,MAAO,MAAOC,QAAS,EAAG,CAQ7C,CAAC5B,EAAa,CAAC,KAAGoB,EAAM,UAGzC,EAEAvB,CAAAA,EAAaqB,WAAW,CAAG,eAE3B5D,EAAA,QAAeW,qBCpLf4D,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./public/images/iqfu/public/scrollable_icon.svg","webpack://_N_E/./src/iqfu/components/public/prefectures_list/PrefecturesLinkList.tsx","webpack://_N_E/./src/iqfu/components/public/prefectures_list/PrefecturesLinkList.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 router from 'next/router';\n\nimport ScrollableIcon from '/public/images/iqfu/public/scrollable_icon.svg';\n\nimport { RegionDataList, PrefecturesListWithoutSuffix, PublicPropertyType } from '@constants_iqfu';\nimport { CompaniesPageQueryType } from 'src/iqfu/data/companiesPagesData';\n\nimport styles from './PrefecturesLinkList.module.scss';\n\ntype CompanyPageProps = {\n category: 'company';\n pageQueryType: CompaniesPageQueryType;\n hasReadMoreButton?: boolean;\n location?: string;\n};\n\ntype PriceDataList = {\n average_price: number;\n code: number;\n}[];\n\ntype MansionPricePageProps = {\n category: 'mansion';\n mansionRegionsAveragePrices: PriceDataList | undefined;\n hasReadMoreButton?: boolean;\n location?: string;\n};\n\ntype LandHousePricePageProps = {\n category: 'landhouse';\n houseRegionsAveragePrices: PriceDataList | undefined;\n landRegionsAveragePrices: PriceDataList | undefined;\n hasReadMoreButton?: boolean;\n location?: string;\n};\n\ntype Props = CompanyPageProps | MansionPricePageProps | LandHousePricePageProps;\n\nconst PrefecturesLinkList: FC = memo((props) => {\n const { category, hasReadMoreButton = false, location } = props;\n\n const propertyTypeLabel = category === 'mansion' ? 'マンション' : '土地戸建';\n\n const [readMoreButtonClicked, setReadMoreButtonClicked] = useState(false);\n\n useEffect(() => {\n setReadMoreButtonClicked(false);\n }, [router]);\n\n return (\n <>\n \n {(Object.keys(RegionDataList) as unknown as (keyof typeof RegionDataList)[]).map((regionCode) => {\n return (\n
\n
\n {category === 'company' ? (\n

\n {RegionDataList[regionCode].name}\n の不動産屋さんランキングを見る\n

\n ) : (\n <>\n

\n {RegionDataList[regionCode].name}の{propertyTypeLabel}\n
\n の売却査定額\n

\n {category === 'mansion' ? (\n <>\n {props.mansionRegionsAveragePrices && (\n \n )}\n \n ) : (\n
\n {props.houseRegionsAveragePrices && (\n \n )}\n {props.landRegionsAveragePrices && (\n \n )}\n
\n )}\n \n )}\n
\n
    \n {RegionDataList[regionCode].prefectures.map((prefectureNumber) => {\n return (\n
  • \n \n {PrefecturesListWithoutSuffix[prefectureNumber]}\n \n
  • \n );\n })}\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\nPrefecturesLinkList.displayName = 'PrefecturesLinkList';\n\ntype AveragePriceProps = {\n priceDataList: PriceDataList;\n regionCode: number;\n propertyType: keyof typeof PublicPropertyType;\n category?: 'mansion' | 'landhouse';\n};\n\nconst AveragePrice: FC = memo(({ priceDataList, regionCode, propertyType, category }) => {\n const price = priceDataList.find((priceData) => priceData.code === Number(regionCode))?.average_price;\n const prefixText = { land: '土地:', house: '戸建:', mansion: '' };\n\n return (\n \n {prefixText[propertyType]}平均{price}万円/m2\n \n );\n});\n\nAveragePrice.displayName = 'AveragePrice';\n\nexport default PrefecturesLinkList;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"list_container\":\"PrefecturesLinkList_list_container__mWAyu\",\"hasReadMoreButton\":\"PrefecturesLinkList_hasReadMoreButton__SNtqc\",\"isScrollable\":\"PrefecturesLinkList_isScrollable__f0HTA\",\"area_group_title\":\"PrefecturesLinkList_area_group_title__OzpZY\",\"link_list\":\"PrefecturesLinkList_link_list__af1vK\",\"area_name\":\"PrefecturesLinkList_area_name__OF_kz\",\"link_item\":\"PrefecturesLinkList_link_item___SLon\",\"mansion_average_text\":\"PrefecturesLinkList_mansion_average_text__NhMCy\",\"landHouses_average_text\":\"PrefecturesLinkList_landHouses_average_text__UnTL_\",\"landHouses_average_price_area\":\"PrefecturesLinkList_landHouses_average_price_area__RcRip\",\"empty_price\":\"PrefecturesLinkList_empty_price__V1GOQ\",\"read_more_container\":\"PrefecturesLinkList_read_more_container__T1WQV\",\"isClicked\":\"PrefecturesLinkList_isClicked__ag5r8\",\"scrollable_text\":\"PrefecturesLinkList_scrollable_text__W66SL\",\"read_more_button\":\"PrefecturesLinkList_read_more_button__q7kek\"};"],"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","PrefecturesLinkList","memo","category","hasReadMoreButton","location","propertyTypeLabel","readMoreButtonClicked","setReadMoreButtonClicked","useState","useEffect","router","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Fragment","jsxs","div","className","styles","concat","keys","RegionDataList","map","h3","span","regionCode","name","br","mansionRegionsAveragePrices","AveragePrice","priceDataList","Number","propertyType","houseRegionsAveragePrices","landRegionsAveragePrices","ul","prefectures","li","Link","prefetch","href","prefectureNumber","pageQueryType","passHref","data-gtm-click","PrefecturesListWithoutSuffix","p","ScrollableIcon","button","onClick","displayName","param","price","find","priceData","code","average_price","prefixText","land","house","mansion","module","exports"],"sourceRoot":""}