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AA,CAAxBD,IAAAA,gBAAAA,YACrD,GAAAN,EAAAC,GAAA,EAACG,MAAAA,CAAIC,UAAWC,IAAAA,oBAAAA,UACd,GAAAN,EAAAC,GAAA,EAAC0G,EAAAA,CAAWA,CAAAA,CACVxD,UAAWA,EACXyD,aAAc,CACZC,KAAM,SACR,MAGJ,GAAA7G,EAAAC,GAAA,EAAC6G,EAAAA,CAAaA,CAAAA,CACZ3D,UAAWA,EACX4D,aAAc,GACdC,YAAa,GACbC,qBAAsB,uBAI1B,GAAAjH,EAAAC,GAAA,EAACG,MAAAA,CAAIC,UAAWC,IAAAA,mBAAAA,UACbmD,GACC,GAAAzD,EAAAG,IAAA,EAAAH,EAAAE,QAAA,YACE,GAAAF,EAAAC,GAAA,EAACG,MAAAA,CAAIC,UAAWC,IAAAA,aAAAA,UACd,GAAAN,EAAAC,GAAA,EAACiH,EAAAA,CAAoBA,CAAAA,UAAC,mCAExB,GAAAlH,EAAAC,GAAA,EAACb,EAAAA,OAAmBA,CAAAA,CAClBE,SAAS,UACT2B,4BAA6BwC,EAAW0D,sBAAsB,CAC9D3H,SAAU,kBAOpB,GAAAQ,EAAAC,GAAA,EAACyI,EAAAA,OAAMA,CAAAA,CAAAA,GACP,GAAA1I,EAAAC,GAAA,EAAC0I,EAAAA,CAAUA,CAAAA,CAACxF,UAAWA,EAAWwB,sBAAuBA,QAIjE,UAEAzB,CAAAA,EAAA,QAAeM,qBC/TfoF,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?9d19","webpack://_N_E/./src/iqfu/components/public/prefectures_list/PrefecturesLinkList.tsx","webpack://_N_E/./src/pages/mansions/index.tsx","webpack://_N_E/./src/iqfu/components/public/prefectures_list/PrefecturesLinkList.module.scss","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/mansions\",\n function () {\n return require(\"private-next-pages/mansions/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/mansions\"])\n });\n }\n ","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","import React, { useCallback, useState } from 'react';\n\nimport Head from 'next/head';\nimport Link from 'next/link';\n\nimport type { GetStaticProps, NextPage } from 'next';\n\nimport { useMediaQuery } from '@mui/material';\n\nimport { useQuery } from 'react-query';\n\nimport { useWindowSize } from '@hooks_common/useWindowSize';\n\nimport { getSalesStats } from '@hooks_iqfu/public/useMarketData';\nimport { getSaleCasesList } from '@hooks_iqfu/public/useSaleCase';\n\nimport BreadCrumbs from '@components_iqfu/public/bread_crumbs/BreadCrumbs';\nimport MansionCard from '@components_iqfu/public/check_price/mansion_card/MansionCard';\nimport SimulatorCard from '@components_iqfu/public/check_price/simulator_card/SimulatorCard';\nimport PrimaryCTA from '@components_iqfu/public/cta/PrimaryCTA';\nimport FloatingCV from '@components_iqfu/public/floating_cv/floating_cv';\nimport Footer from '@components_iqfu/public/footer/Footer';\nimport PageMainLead from '@components_iqfu/public/page_main_lead/PageMainLead';\nimport PrefecturesLinkList from '@components_iqfu/public/prefectures_list/PrefecturesLinkList';\nimport MansionGeneralInfo from '@components_iqfu/public/price/mansion_general_info/MansionGeneralInfo';\nimport PricePageMarketInfo from '@components_iqfu/public/price_page_market_info/PricePageMarketInfo';\nimport PublicPageContainer from '@components_iqfu/public/public_page_container/PublicPageContainer';\nimport SaleCaseArea from '@components_iqfu/public/sale_case_area/SaleCaseArea';\nimport SalesStatsSurveys from '@components_iqfu/public/sale_stats_surveys/SaleStatsSurveys';\nimport SectionLead from '@components_iqfu/public/section_lead/SectionLead';\nimport SectionLeadLeftAlign from '@components_iqfu/public/section_lead_left_align/SectionLeadLeftAlign';\nimport TrendDescription from '@components_iqfu/public/trend_description/TrendDescription';\nimport WantToKnowRanking from '@components_iqfu/public/want_to_know_ranking/WantToKnowRanking';\n\nimport { SalesStatsData } from '@type-def_iqfu/public/MarketData';\nimport { SaleCaseItem } from '@type-def_iqfu/public/SaleCaseItem';\n\nimport { MediaQuery } from '@constants_common';\nimport { ISRRevalidateTime } from '@constants_iqfu';\nimport styles from '@styles_iqfu/public/price.module.scss';\n\nconst pageLabel = 'price-mansions-country';\n\nexport const getStaticProps: GetStaticProps = async ({ params }) => {\n const saleCaseList = await getSaleCasesList({\n property_type: 'mansion',\n limit: 50,\n });\n\n const salesStatsData: any = await getSalesStats({ property_type: 'mansion' });\n const salesStats = salesStatsData.regions_average_prices ? salesStatsData : null;\n\n return {\n props: {\n salesStats,\n serverCachedSaleCasesData: saleCaseList?.sale_cases || [],\n },\n revalidate: ISRRevalidateTime,\n };\n};\n\ntype Props = {\n serverCachedSaleCasesData: SaleCaseItem[];\n salesStats: SalesStatsData | null;\n};\n\nconst metaTitle =\n '【全国のマンション売却価格の相場と動向】をやさしく解説|実際の売却・査定のデータや事例を基に分析|不動産売却・買取専門のイクラ不動産';\n\nconst metaDescription = `「全国のマンション売却価格の相場と動向をやさしく解説」のページです。\n イクラ不動産が持つ実際の売却・査定のデータや事例を基に分析して、全国レベルで見た時のマンションの平均売却価格や売却完了までの平均期間といった各種データから、\n 高く売れる物件の特徴や相場全体の動向解説・実例、そして売却経験者へのアンケート結果まで幅広く掲載。\n 全国でマンションの売却を検討する時に必要な情報を分かりやすく解説しています。`;\n\nconst metaOGUrl = `${process.env.NEXT_PUBLIC_CLIENT_BASEPATH}/mansions`;\n\nconst MansionsAll: NextPage = ({ serverCachedSaleCasesData, salesStats }) => {\n const isMobile = useMediaQuery(MediaQuery.lg);\n const { height: windowHeight } = useWindowSize();\n\n const { data: saleCasesData } = useQuery(\n ['MansionsAllSaleCases'],\n async () => {\n const result = await getSaleCasesList({ property_type: 'mansion', limit: 50 });\n return result?.sale_cases || [];\n },\n {\n cacheTime: 1000 * 60 * 5,\n initialData: serverCachedSaleCasesData,\n },\n );\n\n //最初のタイトルの画面上端からのY座標を取得\n //※mobileでここまでスクロールしたらフローティングを表示する\n const [showFloatingThreshold, setShowFloatingThreshold] = useState(0);\n\n const showFloatingRef = useCallback(\n async (node: HTMLHeadingElement) => {\n if (isMobile) {\n //同階層ページ遷移時に諸々のレンダリング完了してから取得しないと正しい値が取得できない\n await new Promise((resolve) => setTimeout(resolve, 100));\n setShowFloatingThreshold(node?.getBoundingClientRect().top + document.documentElement.scrollTop - windowHeight);\n }\n },\n [windowHeight],\n );\n\n return (\n <>\n \n \n {metaTitle}\n \n \n \n \n \n \n \n \n \n\n
\n
\n 全国のマンション売却価格の相場と動向をやさしく解説\n
\n\n \n 全国レベルで見た時のマンションの平均売却価格や売却完了までの平均期間といった各種データやアンケート等を幅広く掲載。\n
\n 全国でマンションの売却を検討する時に必要な情報を分かりやすく解説しています。\n
\n\n
\n {salesStats && (\n \n )}\n
\n\n
\n
\n \n
\n '}\n />\n
\n\n
\n {salesStats && (\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 {salesStats && (\n \n )}\n
\n\n {salesStats && salesStats.sales_stat_seller_surveys && (\n
\n \n
\n )}\n\n {salesStats && salesStats.sales_stat_company_surveys && (\n
\n \n
\n )}\n\n {salesStats && salesStats.sales_markets.urban_area.demand_description?.value && (\n
\n \n
\n )}\n\n
\n 【最新】全国の中古マンション売却実績\n
\n {saleCasesData && saleCasesData.length > 0 && (\n
\n \n
\n )}\n\n
\n \n
\n\n
\n \n
\n\n
\n
\n \n
\n '}\n />\n
\n\n
\n {salesStats && (\n <>\n
\n 都道府県別のマンション売却価格査定額の相場・動向を調べる\n
\n \n \n )}\n
\n
\n {/* end of .content */}\n