import {CategoryFieldSpec} from "@/types/lg.types"; import {CategoryTargetData, CategoryTargetType} from "@/types/filter.types"; const profileFieldSpec: CategoryFieldSpec[] = [ { title: { [CategoryTargetType.PENETRATION]: "보유율" , [CategoryTargetType.PURCHASE]: "구매율" , [CategoryTargetType.INTENDED]: "향후 구매율" }, requestKey: "category_${keyBase}", chartMode:"none", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA1" , [CategoryTargetType.PURCHASE]: "KQB0" , [CategoryTargetType.INTENDED]: "KQC1" }, }, { title: "보유대수", requestKey: "category_penetration_count", chartMode:"none", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA2" }, }, ]; export const CATEGORY_PAGE_FIELDS: Record = { [CategoryTargetData.PROFILE_ALL]: profileFieldSpec, [CategoryTargetData.PROFILE]: profileFieldSpec, [CategoryTargetData.PENETRATION_CHANGE]: [ { title: "보급률 변화", requestKey: "category_${keyBase}", chartMode:"none", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA1" }, }, ], [CategoryTargetData.BRAND]: [ { title: "브랜드", requestKey: "category_${keyBase}_brand", chartMode:"reverseStack", chartTopMargin: 80, qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_3", [CategoryTargetType.PURCHASE]: "KQX3_3", }, }, { title: { [CategoryTargetType.PENETRATION]: "", [CategoryTargetType.PURCHASE]: "구매 고려 브랜드", [CategoryTargetType.INTENDED]: "브랜드", }, requestKey: "category_${keyBase}_consider_brand", chartMode:"horizontal", qidByMode: { [CategoryTargetType.PURCHASE]: "KQB1", [CategoryTargetType.INTENDED]: "KQC2", }, }, ], [CategoryTargetData.TYPE_SPEC]: [ { title: "타입", requestKey: "category_${keyBase}_type", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_4", [CategoryTargetType.PURCHASE]: "KQX3_4", [CategoryTargetType.INTENDED]: "KQC3_1" } }, { title: "깊이 타입", requestKey: "category_${keyBase}_depthType", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_5", [CategoryTargetType.PURCHASE]: "KQX3_5", [CategoryTargetType.INTENDED]: "KQC3_2" } }, { title: "용량", requestKey: "category_${keyBase}_capacity", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_6", [CategoryTargetType.PURCHASE]: "KQX3_6" } }, { title: "설치 형태", requestKey: "category_${keyBase}_installType", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_7", [CategoryTargetType.PURCHASE]: "KQX3_7", [CategoryTargetType.INTENDED]: "KQC3_3" } }, { title: "시공 방식", requestKey: "category_${keyBase}_installMethod", chartMode: "horizontal", qidByMode: { [CategoryTargetType.INTENDED]: "KQC3_4" } }, { title: "냉장고 & 김치냉장고 설치 형태", requestKey: "category_${keyBase}_fridgeInstallType", chartMode: "horizontal", qidByMode: { [CategoryTargetType.INTENDED]: "KQC3_5" } }, { title: "설치 위치", requestKey: "category_${keyBase}_installLocation", chartMode: "horizontal", qidByMode: { [CategoryTargetType.INTENDED]: "KQC3_6" } }, { title: "배치/설치환경", requestKey: "category_${keyBase}_installEnv", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_8", [CategoryTargetType.PURCHASE]: "KQX3_8", [CategoryTargetType.INTENDED]: "KQC3_7" } }, { title: "구입 고려 특징", requestKey: "category_${keyBase}_buyConsiderations", chartMode: "horizontal", qidByMode: { [CategoryTargetType.INTENDED]: "KQC3_8" } }, { title: "기능", requestKey: "category_${keyBase}_features", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_9", [CategoryTargetType.PURCHASE]: "KQX3_9" } }, { title: "스크린 사이즈", requestKey: "category_${keyBase}_screenSize", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_10", [CategoryTargetType.PURCHASE]: "KQX3_10" } }, { title: "용도", requestKey: "category_${keyBase}_usage", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_11", [CategoryTargetType.PURCHASE]: "KQX3_11" } }, { title: "스마트 모니터 여부", requestKey: "category_${keyBase}_isSmartMonitor", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_12", [CategoryTargetType.PURCHASE]: "KQX3_12" } }, { title: "음식물처리기 구동 방식", requestKey: "category_${keyBase}_driveMethod", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_13", [CategoryTargetType.PURCHASE]: "KQX3_13" } }, { title: "전기레인지 화구 수", requestKey: "category_${keyBase}_burnerCount", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_14", [CategoryTargetType.PURCHASE]: "KQX3_14" } }, ], [CategoryTargetData.BEHAVIOR]: [ { title: { [CategoryTargetType.PENETRATION]: "보유 경로" , [CategoryTargetType.PURCHASE]: "구입 행태" , [CategoryTargetType.INTENDED]: "구입 행태" }, requestKey: "category_${keyBase}_behavior", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_1", [CategoryTargetType.PURCHASE]: "KQB2", [CategoryTargetType.INTENDED]: "KQC5" }, }, { title: "구입 계기", requestKey: "category_${keyBase}_chance", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PURCHASE]: "KQB3" }, }, ], [CategoryTargetData.PURCHASE_CHANNEL]: [ { title: "구매 채널(온/오프라인)", requestKey: "category_${keyBase}_channel", chartMode: "reverseStack", qidByMode: { [CategoryTargetType.PURCHASE]: "KQB4_NET", [CategoryTargetType.INTENDED]: "KQC6_NET" }, }, { title: "구매 채널(상세)", requestKey: "category_${keyBase}_channel_detail", chartMode: "horizontal", qidByMode: { [CategoryTargetType.PURCHASE]: "KQB4", [CategoryTargetType.INTENDED]: "KQC6" }, }, ], [CategoryTargetData.PAYMENT_METHOD]: [ { title: "구매형식", requestKey: "category_${keyBase}_method", chartMode:"reverseStack", qidByMode: { [CategoryTargetType.PENETRATION]: "KQA3_2_1", [CategoryTargetType.PURCHASE]: "KQX3_2_1", [CategoryTargetType.INTENDED]: "KQC7" }, }, ], };