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,YAAaA,EACbC,OAAQA,EACRC,cAAeA,IAGjB,GAAA7B,EAAA/B,GAAA,EAAC+F,EAASA,CAACE,cAAeA,QAIlC,CDlHAF,EAAU2B,WAAW,CAAG","sources":["webpack://_N_E/?8732","webpack://_N_E/./src/components/newt/templates/VoiceList.tsx","webpack://_N_E/./src/components/parts/voice/FilterSection.tsx","webpack://_N_E/./src/components/parts/voice/SelectedFilters.tsx","webpack://_N_E/./src/components/parts/voice/VoiceGrid.tsx","webpack://_N_E/./src/components/newt/templates/VoiceListContent.tsx","webpack://_N_E/"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src646638164/src/lawgue-website-v2/src/app/components/forms/DocumentForm.tsx\");\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src646638164/src/lawgue-website-v2/src/components/newt/templates/VoiceListContent.tsx\");\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src646638164/src/lawgue-website-v2/src/components/parts/contact/index.tsx\")","'use client'\n\nimport Link from 'next/link'\nimport type { Voice } from '@/types/newt/voice'\nimport { useEffect, useState } from 'react'\n\nexport function VoiceList({ voice }: { voice: Voice }) {\n const [isVisible, setIsVisible] = useState(false)\n useEffect(() => {\n const timer = setTimeout(() => {\n setIsVisible(true)\n }, 200)\n\n return () => clearTimeout(timer)\n })\n return (\n
  • \n \n
    \n
    \n \n
    \n

    \n {voice.catchPhrase}\n

    \n
    \n
    \n

    {voice.title}

    \n
      \n {Array.isArray(voice.industry)\n ? voice.industry.map(\n (industry) =>\n industry.name && (\n \n {industry.name}\n \n )\n )\n : voice.industry.name && (\n \n {voice.industry.name}\n \n )}\n\n {Array.isArray(voice.department)\n ? voice.department.map(\n (department) =>\n department.name && (\n \n {department.name}\n \n )\n )\n : voice.department.name && (\n \n {voice.department.name}\n \n )}\n\n {voice.scale.name && (\n
    • \n {voice.scale.name}\n
    • \n )}\n\n {Array.isArray(voice.documentType)\n ? voice.documentType.map(\n (documentType) =>\n documentType.name && (\n \n {documentType.name}\n \n )\n )\n : voice.documentType.name && (\n \n {voice.documentType.name}\n \n )}\n
    \n
    \n \n
  • \n )\n}\n","import React, { useState } from 'react'\nimport {\n Industries,\n Departments,\n Scales,\n DocumentTypes\n} from '@/types/newt/voice'\n\ninterface FilterSectionProps {\n industries: Industries[]\n departments: Departments[]\n scales: Scales[]\n documentTypes: DocumentTypes[]\n selectedIndustries: string[]\n setSelectedIndustries: React.Dispatch>\n selectedScales: string[]\n setSelectedScales: React.Dispatch>\n selectedDepartments: string[]\n setSelectedDepartments: React.Dispatch>\n selectedDocumentTypes: string[]\n setSelectedDocumentTypes: React.Dispatch>\n handleFilter: () => void\n filteredVoiceCount: number\n}\n\nconst SelectableButton: React.FC<{\n isSelected: boolean\n onClick: () => void\n children: React.ReactNode\n}> = ({ isSelected, onClick, children }) => {\n return (\n \n {children}\n {isSelected && (\n \n \n \n \n \n \n )}\n \n )\n}\n\nconst CategorySection: React.FC<{\n title: string\n items: { slug: string; name: string }[]\n selectedItems: string[]\n setSelectedItems: React.Dispatch>\n gridClass: string\n setGridClass: React.Dispatch>\n ariaLabel: string\n setAriaLabel: React.Dispatch>\n}> = ({\n title,\n items,\n selectedItems,\n setSelectedItems,\n gridClass,\n setGridClass,\n ariaLabel,\n setAriaLabel\n}) => {\n const toggleSelection = (item: { slug: string; name: string }) => {\n setSelectedItems((prev) =>\n prev.includes(item.slug)\n ? prev.filter((slug) => slug !== item.slug)\n : [...prev, item.slug]\n )\n }\n\n return (\n
    \n
    \n
    \n

    \n {title}\n

    \n {\n if (gridClass === 'grid-rows-[0fr]') {\n setGridClass('grid-rows-[1fr]')\n setAriaLabel('閉じる')\n } else {\n setGridClass('grid-rows-[0fr]')\n setAriaLabel('開く')\n }\n }}\n >\n \n \n \n \n \n
    \n \n
    \n
      \n {items.map((item) => (\n
    • \n toggleSelection(item)}\n >\n {item.name}\n \n
    • \n ))}\n
    \n
    \n
    \n
    \n \n )\n}\n\nexport function FilterSection({\n industries,\n departments,\n scales,\n documentTypes,\n selectedIndustries,\n setSelectedIndustries,\n selectedScales,\n setSelectedScales,\n selectedDepartments,\n setSelectedDepartments,\n selectedDocumentTypes,\n setSelectedDocumentTypes,\n handleFilter,\n filteredVoiceCount\n}: FilterSectionProps) {\n const [gridClass, setGridClass] = useState('lg:grid-rows-[0fr]')\n const [gridClass2, setGridClass2] = useState('grid-rows-[0fr]')\n const [gridClass3, setGridClass3] = useState('grid-rows-[0fr]')\n const [gridClass4, setGridClass4] = useState('grid-rows-[0fr]')\n const [gridClass5, setGridClass5] = useState('grid-rows-[0fr]')\n const [ariaLabel, setAriaLabel] = useState('開く')\n const [ariaLabel2, setAriaLabel2] = useState('開く')\n const [ariaLabel3, setAriaLabel3] = useState('開く')\n const [ariaLabel4, setAriaLabel4] = useState('開く')\n const [ariaLabel5, setAriaLabel5] = useState('開く')\n\n return (\n
    \n
    \n

    \n 条件で絞り込む\n

    \n
    \n \n
    \n \n \n \n \n
    \n
    \n \n 選択した条件で絞り込む\n \n

    \n 検索結果:{filteredVoiceCount} 件\n

    \n
    \n
    \n
    \n
    \n \n )\n}\n","import React from 'react'\nimport {\n Industries,\n Departments,\n Scales,\n DocumentTypes\n} from '@/types/newt/voice'\n\ninterface SelectedFiltersProps {\n selectedIndustries: string[]\n selectedDepartments: string[]\n selectedScales: string[]\n selectedDocumentTypes: string[]\n industries: Industries[]\n departments: Departments[]\n scales: Scales[]\n documentTypes: DocumentTypes[]\n}\n\nexport function SelectedFilters({\n selectedIndustries,\n selectedDepartments,\n selectedScales,\n selectedDocumentTypes,\n industries,\n departments,\n scales,\n documentTypes\n}: SelectedFiltersProps) {\n const totalSelectedConditions =\n selectedIndustries.length +\n selectedDepartments.length +\n selectedScales.length +\n selectedDocumentTypes.length\n\n if (totalSelectedConditions === 0) return null\n\n return (\n
    \n

    \n 絞り込み条件\n \n

    \n
      \n {selectedIndustries.map((industry) => (\n
    • \n {industries.find((ind) => ind.slug === industry)?.name}\n
    • \n ))}\n {selectedDepartments.map((department) => (\n
    • \n {departments.find((dep) => dep.slug === department)?.name}\n
    • \n ))}\n {selectedScales.map((scale) => (\n
    • {scales.find((sc) => sc.slug === scale)?.name}
    • \n ))}\n {selectedDocumentTypes.map((documentType) => (\n
    • \n {documentTypes.find((doc) => doc.slug === documentType)?.name}\n
    • \n ))}\n
    \n
    \n )\n}\n","import React from 'react'\nimport { VoiceList } from '@/components/newt/templates/VoiceList'\nimport { Voice } from '@/types/newt/voice'\n\ninterface VoiceGridProps {\n filteredVoice: Voice[]\n}\n\nexport const VoiceGrid: React.FC = React.memo(\n ({ filteredVoice }) => {\n return (\n
    \n
      \n {filteredVoice.map((voiceItem) => (\n \n ))}\n
    \n
    \n )\n }\n)\n\nVoiceGrid.displayName = 'VoiceGrid'\n","'use client'\n\nimport React, { useState, useEffect, useMemo } from 'react'\nimport { useRouter, useSearchParams } from 'next/navigation'\nimport { FilterSection } from '@/components/parts/voice/FilterSection'\nimport { SelectedFilters } from '@/components/parts/voice/SelectedFilters'\nimport { VoiceGrid } from '@/components/parts/voice/VoiceGrid'\nimport {\n Voice,\n Industries,\n Departments,\n Scales,\n DocumentTypes,\n} from '@/types/newt/voice'\nimport { Department } from '@/types/newt/department'\n\ninterface VoiceContentsProps {\n industries: Industries[]\n departments: Departments[]\n scales: Scales[]\n documentTypes: DocumentTypes[]\n voice: Voice[]\n department: Department[]\n}\n\nexport function VoiceListContents({\n industries,\n departments,\n scales,\n documentTypes,\n voice,\n department,\n}: VoiceContentsProps) {\n const router = useRouter()\n const searchParams = useSearchParams()\n\n const [selectedIndustries, setSelectedIndustries] = useState([])\n const [selectedScales, setSelectedScales] = useState([])\n const [selectedDepartments, setSelectedDepartments] = useState([])\n const [selectedDocumentTypes, setSelectedDocumentTypes] = useState(\n []\n )\n\n const filteredVoice = useMemo(() => {\n return voice.filter((v) => {\n const industrySlugs = Array.isArray(v.industry)\n ? v.industry.map((ind) => ind.slug)\n : [v.industry.slug]\n const departmentSlugs = Array.isArray(v.department)\n ? v.department.map((dep) => dep.slug)\n : [v.department.slug]\n const documentTypeSlugs = Array.isArray(v.documentType)\n ? v.documentType.map((doc) => doc.slug)\n : [v.documentType.slug]\n\n return (\n (selectedIndustries.length === 0 ||\n selectedIndustries.some((ind) => industrySlugs.includes(ind))) &&\n (selectedScales.length === 0 ||\n selectedScales.includes(v.scale.slug)) &&\n (selectedDepartments.length === 0 ||\n selectedDepartments.some((dep) => departmentSlugs.includes(dep))) &&\n (selectedDocumentTypes.length === 0 ||\n selectedDocumentTypes.some((doc) => documentTypeSlugs.includes(doc)))\n )\n })\n }, [\n voice,\n selectedIndustries,\n selectedScales,\n selectedDepartments,\n selectedDocumentTypes,\n ])\n\n useEffect(() => {\n const industriesQuery = searchParams?.get('industries')?.split(',') || []\n const scalesQuery = searchParams?.get('scales')?.split(',') || []\n const departmentsQuery = searchParams?.get('departments')?.split(',') || []\n const documentTypesQuery =\n searchParams?.get('documentTypes')?.split(',') || []\n\n setSelectedIndustries(industriesQuery)\n setSelectedScales(scalesQuery)\n setSelectedDepartments(departmentsQuery)\n setSelectedDocumentTypes(documentTypesQuery)\n }, [searchParams])\n\n const handleFilter = () => {\n const queryParams = new URLSearchParams()\n if (selectedIndustries.length)\n queryParams.set('industries', selectedIndustries.join(','))\n if (selectedScales.length)\n queryParams.set('scales', selectedScales.join(','))\n if (selectedDepartments.length)\n queryParams.set('departments', selectedDepartments.join(','))\n if (selectedDocumentTypes.length)\n queryParams.set('documentTypes', selectedDocumentTypes.join(','))\n\n router.push(`/voice?${queryParams.toString()}`)\n }\n\n return (\n
    \n
    \n \n\n \n\n \n
    \n
    \n )\n}\n"],"names":["Promise","resolve","then","__webpack_require__","bind","VoiceList","param","voice","isVisible","setIsVisible","useState","useEffect","timer","setTimeout","clearTimeout","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","li","className","concat","jsxs","Link","href","slug","div","img","src","eyecatch","alt","title","h3","catchPhrase","p","ul","Array","isArray","industry","map","name","_id","department","scale","documentType","SelectableButton","isSelected","onClick","children","jsx_runtime","button","span","svg","width","height","viewBox","fill","xmlns","path","d","CategorySection","items","selectedItems","setSelectedItems","gridClass","setGridClass","ariaLabel","setAriaLabel","toggleSelection","prev","includes","item","filter","aria-label","FilterSection","industries","departments","scales","documentTypes","selectedIndustries","setSelectedIndustries","selectedScales","setSelectedScales","selectedDepartments","setSelectedDepartments","selectedDocumentTypes","setSelectedDocumentTypes","handleFilter","filteredVoiceCount","gridClass2","setGridClass2","gridClass3","setGridClass3","gridClass4","setGridClass4","gridClass5","setGridClass5","ariaLabel2","setAriaLabel2","ariaLabel3","setAriaLabel3","ariaLabel4","setAriaLabel4","ariaLabel5","setAriaLabel5","h2","SelectedFilters","length","find","ind","dep","sc","doc","VoiceGrid","React","filteredVoice","voiceItem","VoiceListContents","router","useRouter","searchParams","useSearchParams","useMemo","industrySlugs","v","departmentSlugs","documentTypeSlugs","some","industriesQuery","get","split","scalesQuery","departmentsQuery","documentTypesQuery","queryParams","URLSearchParams","set","join","push","toString","displayName"],"sourceRoot":""}