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A1CoB,SAAC,GAAgC,IAAD,EAA7B4B,EAA6B,EAA7BA,KAAMe,EAAuB,EAAvBA,SAErBtB,GAAQ,UAAAO,EAAKX,WAAWM,0BAAhB,eAAoCF,QAAS,GAErDuB,EAAsB,CAC1B,CAAE7B,MAAO,MAAO8B,MAAM/B,EAAAA,EAAAA,GAAc,UACpC,CAAEC,MAAO,SAGX,OACE,QAAC,IAAD,CACE4B,SAAUA,EACVC,MAAOA,EACPd,aAAcgB,EAAAA,EAAAA,UAEd,QAAC,IAAD,CAAK/B,MAAM,UACX,QAAC,IAAD,CAAUzB,MAAM,UAChB,aAAGD,UAAU,4BAAb,8CAGC,OAAIgC,GACFmB,MAAK,SAACC,EAAGC,GAAJ,QAAWD,MAAAA,OAAA,EAAAA,EAAGF,SAAU,KAAMG,MAAAA,OAAA,EAAAA,EAAGH,SAAU,MAChDtC,QAAO,SAACQ,GAAD,QAAWA,MAAAA,GAAAA,EAAMoB,aACxBrB,KAAI,SAACC,GACJ,IAAMd,GAAiBc,MAAAA,OAAA,EAAAA,EAAMd,iBAAkB,GACzCD,GAAOe,MAAAA,OAAA,EAAAA,EAAMf,OAAQ,GACrBqB,GAAQN,MAAAA,OAAA,EAAAA,EAAMM,QAAS,GAC7B,OACE,QAAC,IAAD,CACEL,IAAG,iBAAmBf,EACtBA,eAAgBA,EAChBF,cAAesB,EACfrB,KAAMA,EACNE,MAAO,GACPC,gBAAc","sources":["webpack://beaver-help/./src/components/atoms/commonH2.tsx","webpack://beaver-help/./src/components/atoms/commonH3.tsx","webpack://beaver-help/./src/components/molecules/categoryCard.tsx","webpack://beaver-help/./src/hooks/useHelpData.ts","webpack://beaver-help/./src/pages/help/setting.tsx"],"sourcesContent":["import styled from '@emotion/styled'\nimport React from 'react'\nimport BreakPoints from '../../styles/breakPoints'\n\nconst H2 = styled.h2`\n width: 100%;\n font-weight: bold;\n font-size: 26px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: sticky;\n left: 0;\n span {\n margin: 0 0 15px 0;\n display: flex;\n align-items: center;\n position: relative;\n &:before,\n &:after {\n display: block;\n content: '';\n width: 22px;\n height: 14px;\n border-left: solid 8px rgba(128, 219, 191, 0.5);\n border-right: solid 8px rgba(128, 219, 191, 0.5);\n transform: skewX(306deg);\n position: absolute;\n }\n &:before {\n left: -40px;\n }\n &:after {\n right: -40px;\n }\n }\n ${BreakPoints.large} {\n &.nav-enable {\n width: calc(100vw - 8px);\n left: 0;\n }\n }\n ${BreakPoints.medium} {\n span {\n margin: 10px 0;\n }\n }\n`\n\ntype Props = {\n /** クラス名 */\n className?: string\n /** タイトル */\n label: string\n}\n\n/**\n * 共通H2タグ\n * @param props\n * @constructor\n */\nconst CommonH2 = (props: Props): JSX.Element => {\n const { className = '' } = props\n\n return (\n

\n {props.label}\n

\n )\n}\n\nexport default CommonH2\n","import styled from '@emotion/styled'\nimport React from 'react'\n\nconst H3 = styled.h3`\n font-size: 1em;\n margin: 0 0 15px;\n border: none;\n display: inline-block;\n span {\n margin: 0 0 3px;\n display: inline-block;\n position: relative;\n border-bottom: solid 2px #e5e5e5;\n &:before {\n position: absolute;\n bottom: -2px;\n left: 0;\n width: 16px;\n height: 2px;\n content: '';\n background: #3ec7b3;\n }\n }\n`\n\ntype Props = {\n /** クラス名 */\n className?: string\n /** タイトル */\n label: string\n}\n\n/**\n * 共通H3タグ\n * @param props\n * @constructor\n */\nconst CommonH3 = (props: Props): JSX.Element => {\n const { className = '' } = props\n\n return (\n

\n {props.label}\n

\n )\n}\n\nexport default CommonH3\n","import styled from '@emotion/styled'\nimport { Link } from 'gatsby'\nimport React from 'react'\nimport useHelpData from '../../hooks/useHelpData'\nimport CommonH3 from '../atoms/commonH3'\nimport BreakPoints from '../../styles/breakPoints'\nimport useRouteParam from '../../hooks/useRouteParam'\n\nconst Wrapper = styled.div`\n background: #ffffff;\n border-radius: 10px;\n padding: 25px 30px;\n width: 500px;\n min-height: 276px;\n margin: 15px;\n float: left;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n\n h3 {\n span {\n font-size: 1.6em;\n border: none;\n\n &:before {\n display: none;\n }\n }\n }\n\n .category-list {\n li {\n margin: 0 0 5px 15px;\n position: relative;\n\n &:before {\n display: block;\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n top: 7px;\n left: -14px;\n border-left: 8px solid #3ec7b3;\n border-top: 3px solid transparent;\n border-bottom: 3px solid transparent;\n }\n\n a {\n max-width: 100%;\n // overflow: hidden;\n // text-overflow: ellipsis;\n // white-space: nowrap;\n display: inline-block;\n }\n }\n }\n\n .all-link {\n display: block;\n width: fit-content;\n margin: 0 0 0 auto;\n text-align: right;\n color: #00b5a6;\n }\n\n @media screen and (max-width: 1074px) {\n margin: 15px auto;\n width: 80vw;\n float: unset;\n min-height: unset;\n }\n\n ${BreakPoints.large} {\n width: calc(100vw - 45px);\n }\n\n ${BreakPoints.medium} {\n width: calc(100vw - 20px);\n padding: 15px 15px 15px 5px;\n }\n}\n`\ntype IProps = {\n /** カテゴリタイトル */\n categoryTitle: string\n /** URL */\n slug: string\n /** カテゴリID */\n helpCategoryId: string\n /** ページタイトル */\n limit: number\n /** すべての記事を表示フラグ */\n visibleAllLink?: boolean\n}\n\n/**\n * カテゴリカード\n * @constructor\n */\nconst CategoryCard = ({\n categoryTitle,\n slug,\n helpCategoryId,\n limit,\n visibleAllLink,\n}: IProps) => {\n const { helpDetails } = useHelpData()\n const fixDetails = helpDetails.filter(\n (val) => val.helpCategoryId.split(',').indexOf(helpCategoryId) !== -1\n )\n const morePage = limit < fixDetails.length\n return (\n \n \n \n {visibleAllLink && morePage && (\n \n すべての記事を表示\n \n )}\n \n )\n}\n\nexport default CategoryCard\n","import { graphql, useStaticQuery } from 'gatsby'\nimport { useMemo } from 'react'\nimport { CategoryKindType } from '../types/CategoryKind'\n\nexport type IHelpCategory = {\n /** ヘルプカテゴリID */\n helpCategoryId: string\n /** カテゴリ種別 */\n categoryKind: CategoryKindType\n /** タイトル */\n title: string\n /** スラッグ */\n slug: string\n}\n\nexport type IHelpCategoryMap = {\n [helpCategoryId: string]: IHelpCategory\n}\n\nexport type IHelpDetail = {\n /** ヘルプID */\n helpId: string\n /** ソート番号 */\n sortNo: number\n /** カテゴリID */\n helpCategoryId: string\n /** タイトル */\n title: string\n /** スラッグ */\n slug: string\n}\n\ntype IReturn = {\n helpCategoryMap: IHelpCategoryMap\n helpDetails: IHelpDetail[]\n}\n/**\n * ヘルプ情報共通フック\n */\nconst useHelpData = (): IReturn => {\n const { awsGraphQL } = useStaticQuery(\n graphql`\n query useHelpData {\n awsGraphQL {\n listHelpDetails {\n items {\n helpId\n title\n sortNo\n helpCategoryId\n _deleted\n }\n }\n listHelpCategories {\n items {\n helpCategoryId\n categoryKind\n title\n slug\n _deleted\n }\n }\n }\n }\n `\n )\n\n const detailItems = awsGraphQL.listHelpDetails?.items || []\n const categoryItems = awsGraphQL.listHelpCategories?.items || []\n\n // ヘルプカテゴリIDがキーのマップ情報を作成\n const helpCategoryMap = useMemo(\n () =>\n categoryItems.reduce(\n // eslint-disable-next-line no-shadow\n (result, data) => {\n if (data?._deleted) return result\n return {\n ...result,\n [data?.helpCategoryId || '']: {\n helpCategoryId: data?.helpCategoryId || '',\n categoryKind: data?.categoryKind as CategoryKindType,\n title: data?.title || '',\n slug: data?.slug || '',\n },\n }\n },\n {}\n ),\n [categoryItems]\n )\n\n // ヘルプIDがキーの詳細マップ情報を作成\n const helpDetails = useMemo(() => {\n const _result: IHelpDetail[] = []\n detailItems.forEach((helpDetail) => {\n if (helpDetail?._deleted) return\n const _helpCategoryIds = (helpDetail?.helpCategoryId || '').split(',')\n const _helpId = helpDetail?.helpId || ''\n _helpCategoryIds.forEach((_helpCategoryId) => {\n if (helpCategoryMap[_helpCategoryId]) {\n const category = helpCategoryMap[_helpCategoryId]\n _result.push({\n helpId: _helpId,\n title: helpDetail?.title || '',\n sortNo: helpDetail?.sortNo || 999999,\n helpCategoryId: _helpCategoryId,\n slug: category.slug,\n })\n }\n })\n })\n _result.sort((a, b) => a.sortNo - b.sortNo)\n return _result\n }, [helpCategoryMap, detailItems])\n\n return { helpCategoryMap, helpDetails }\n}\n\nexport default useHelpData\n","import { graphql, PageProps } from 'gatsby'\nimport React from 'react'\nimport CommonH2 from '../../components/atoms/commonH2'\nimport SEO from '../../components/atoms/seo'\nimport { ITopicPath } from '../../components/atoms/topicPath'\nimport CategoryCard from '../../components/molecules/categoryCard'\nimport Layout from '../../components/organisms/layout'\nimport { CategoryKind } from '../../types/CategoryKind'\nimport useRouteParam from '../../hooks/useRouteParam'\n\ntype IProps = PageProps\n\n/**\n * 各種設定ページ\n * @constructor\n */\nconst SettingPage = ({ data, location }: IProps) => {\n // GraphQLで取得したデータを保持\n const items = data.awsGraphQL.listHelpCategories?.items || []\n\n const paths: ITopicPath[] = [\n { title: 'TOP', link: useRouteParam('/help') },\n { title: '各種設定' },\n ]\n\n return (\n \n \n \n

\n 従業員の登録や締め処理など、主にシステム管理者が利用する機能についてご案内します。\n

\n {[...items]\n .sort((a, b) => (a?.sortNo || 0) - (b?.sortNo || 0))\n .filter((item) => !item?._deleted)\n .map((item) => {\n const helpCategoryId = item?.helpCategoryId || ''\n const slug = item?.slug || ''\n const title = item?.title || ''\n return (\n \n )\n })}\n \n )\n}\n\nexport default SettingPage\n\nexport const pageQuery = graphql`\n query SettingPage {\n awsGraphQL {\n listHelpCategories(filter: { categoryKind: { eq: 4 } }) {\n items {\n helpCategoryId\n sortNo\n title\n slug\n categoryKind\n _deleted\n }\n }\n }\n site {\n siteMetadata {\n title\n }\n }\n }\n`\n"],"names":["H2","BreakPoints","props","className","label","H3","Wrapper","categoryTitle","slug","helpCategoryId","limit","visibleAllLink","fixDetails","useHelpData","helpDetails","filter","val","split","indexOf","morePage","length","splice","map","item","key","helpId","Link","to","useRouteParam","title","itemProp","awsGraphQL","useStaticQuery","detailItems","listHelpDetails","items","categoryItems","listHelpCategories","helpCategoryMap","useMemo","reduce","result","data","_deleted","categoryKind","_result","forEach","helpDetail","_helpCategoryIds","_helpId","_helpCategoryId","category","push","sortNo","sort","a","b","location","paths","link","CategoryKind"],"sourceRoot":""}