{"version":3,"file":"solutionCategory-6ddaacca.js","sources":["../../../app/frontend/components/solutions/SolutionName.vue","../../../app/frontend/models/solutionCategory.ts"],"sourcesContent":["\n\n\n \n
\n \n
\n \n \n {{ solution.title }}\n \n \n {{ solution.company?.name }}\n \n \n
\n\n\n\n","import { inject, computed } from 'vue'\n\nconst solutionCategoryIdsByDomain = {\n '人事・採用・労務領域': [1, 3, 4, 7, 15, 19, 20, 6, 27, 5],\n '財務・経理': [2, 8, 9, 10, 30, 31],\n '営業・マーケティング': [12, 13, 11],\n 'その他': [14, 16, 17, 18, 21, 23, 24, 26, 28, 32, 33, 34, 35, 29],\n}\n\nexport default function() {\n // constants\n const SOLUTION_CATEGORIES = inject>('SOLUTION_CATEGORIES')\n\n /**\n * フラットな key: value の組み合わせの定数型から Solution の領域ごとに区分されたオブジェクトへ変換\n */\n const solutionCategoriesByDomain = computed((): SolutionCategoriesByDomain => {\n const domain = {}\n let _category = {}\n\n for (const domainLabel in solutionCategoryIdsByDomain) {\n const _key = domainLabel as keyof typeof solutionCategoryIdsByDomain\n\n solutionCategoryIdsByDomain[_key].forEach(id => {\n const _id = id as keyof typeof SOLUTION_CATEGORIES\n\n Object.assign(_category, { [_id]: SOLUTION_CATEGORIES![_id] })\n })\n Object.assign(domain, { [domainLabel]: _category })\n\n _category = {} // 初期化\n }\n\n return domain\n })\n\n /**\n * 指定のカテゴリー ID から対応するカテゴリーのラベルを取得\n * @param solutionId 対象のカテゴリー ID\n */\n const getSolutionCategoryLabel = (solutionId: number): string => {\n const label = SOLUTION_CATEGORIES![solutionId as keyof typeof SOLUTION_CATEGORIES]\n return label ? label : ''\n }\n\n\n return {\n // computed\n solutionCategoriesByDomain,\n\n // methods\n getSolutionCategoryLabel,\n }\n}\n"],"names":["_sfc_main","defineComponent","value","props","wrapperTagName","computed","solutionPath","_hoisted_1","_hoisted_3","_hoisted_4","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_normalizeClass","_openBlock","_createBlock","_resolveDynamicComponent","_withCtx","_createElementBlock","_createElementVNode","_createCommentVNode","_toDisplayString","_a","_b","solutionCategoryIdsByDomain","solutionCategory","SOLUTION_CATEGORIES","inject","domain","_category","domainLabel","id","_id","solutionId","label"],"mappings":"2IAIA,MAAAA,EAAeC,EAAgB,CAC7B,KAAM,eAEN,MAAO,CACL,SAAU,CACR,KAAM,OACN,SAAU,EACZ,EAKA,QAAS,CACP,KAAM,QACN,QAAS,EACX,EAOA,KAAM,CACJ,KAAM,OACN,QAAS,QACT,UAAYC,GACH,CAAC,QAAS,QAAQ,EAAE,SAASA,CAAK,CAE7C,EAKA,WAAY,CACV,KAAM,QACN,QAAS,EACX,CACF,EAEA,MAAMC,EAAO,CACL,MAAAC,EAAiBC,EAAS,IAAMF,EAAM,SAAS,IAAMA,EAAM,QAAU,IAAM,GAAG,EAE7E,MAAA,CAEL,aAAAG,EAGA,eAAAF,CAAA,CAEJ,CACF,CAAC,QAgBOG,EAAM,CAAA,IAAA,yCASNC,EAAM,CAAA,IAAA,4CAKNC,EAAM,CAAA,IAAA,2CAzBJ,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,qBAA2C,MAAAC,EAAA,CAAA,iEAQxCC,EAAA,EAAAC,EAAWC,EAAcT,EAAkB,cAAA,EAAA,CAAA,MAAA,sBAS3C,KAAAA,EAAA,SAAAA,EAAA,SAAA,GAAAA,EAAA,aAAA,CAAA,GAAAA,EAAA,SAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CARP,QAAAU,EAAA,IAAA,SAAA,OAAAV,EAGE,yBACa,EAAAW,EAAA,OAAAf,EAAA,CAAAgB,EACG,MAAC,CACf,MAAM,MACN,IAAeZ,EAAA,SAAA,aAAA,IAAA,sCAEnB,GAAAa,EAAA,GAAA,EAAA,EAMQb,EAAA,SAAA,OAAAO,MAAsB,OAD9BV,EAAAiB,EAAAd,EAAA,SAAA,KAAA,EAAA,CAAA,GAAAa,EAAA,GAAA,EAAA,GAAAE,EAAAf,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