import type { WindowPopupDefinition } from "./types"; export const windowPopupDefinitions = { exmnBusinessRegister: { key: "exmnBusinessRegister", title: "사업정보 등록", width: 1000, height: 620, }, exmnResultRegister: { key: "exmnResultRegister", title: "조사 결과 업로드", width: 1000, height: 650, requiredParams: ["exmnBizId"], }, exmnSurveyDetail: { key: "exmnSurveyDetail", title: "조사 상세현황", width: 1500, height: 720, requiredParams: ["exmnBizId", "trtdstId", "trtdstNm", "jobType"], }, exmnPipeReport: { key: "exmnPipeReport", title: "관로 조사보고서", width: 1200, height: 850, requiredParams: ["exmnBizId", "pipeNumber"], }, oldPpUpload: { key: "oldPpUpload", title: "노후 하수관로 정비사업 등록", width: 860, height: 360, }, oldPpTable: { key: "oldPpTable", title: "노후 하수관로 정비사업 상세", width: 1400, height: 900, requiredParams: ["fileNm", "atflId"], }, floodPreUpload: { key: "floodPreUpload", title: "도시침수 예방사업 등록", width: 860, height: 360, }, floodPreTable: { key: "floodPreTable", title: "도시침수 예방사업 상세", width: 1400, height: 900, requiredParams: ["fileNm", "atflId"], }, reportTab: { key: "reportTab", title: "하수도정비 기본계획보고서", width: 1280, height: 920, }, reportFiles: { key: "reportFiles", title: "보고서 파일 목록", width: 860, height: 720, requiredParams: ["clsfSystmSn"], }, mapSearch: { key: "mapSearch", title: "관망도 검색", width: 1280, height: 980, }, inftwtResultPopup: { key: "inftwtResultPopup", title: "침입수 분석결과", width: 1280, height: 900, }, rdiiResultPopup: { key: "rdiiResultPopup", title: "RDII 분석결과", width: 1280, height: 900, }, infilChart: { key: "infilChart", title: "침입수 분석", width: 940, height: 860, placement: "browser-left", alignTop: true, offsetLeft: 0, offsetTop: 70, requiredParams: ["pplMngNo"], }, rdiiChart: { key: "rdiiChart", title: "RDII 분석", width: 940, height: 860, placement: "browser-left", alignTop: true, offsetLeft: 0, offsetTop: 70, requiredParams: ["pplMngNo"], }, sscDetail: { key: "sscDetail", title: "중점우수토실 운영정보", width: 1180, height: 980, requiredParams: ["chmbrXcnts", "chmbrYdnts"], }, agedPipePopup: { key: "agedPipePopup", title: "노후 하수관로 관리 ", width: 850, height: 600, placement: "browser-left", alignTop: true, offsetLeft: 0, offsetTop: 200, }, sinkholePopup: { key: "sinkholePopup", title: "지반침하발생현황", width: 1380, height: 820, }, pipeAnalysisPopup: { key: "pipeAnalysisPopup", title: "관로분석", width: 1180, height: 820, }, pipeAnalysisDetailPopup: { key: "pipeAnalysisDetailPopup", title: "관로현황", width: 1180, height: 760, }, floodPredictionMapPopup: { key: "floodPredictionMapPopup", title: "침수예측지도", width: 1080, height: 760, }, agedPipeStatusByCtpvPopup: { key: "agedPipeStatusByCtpvPopup", title: "시도별 노후관로현황", width: 1160, height: 760, }, fldngHstryPopup: { key: "fldngHstryPopup", title: "침수발생이력", width: 1160, height: 820, }, gisEditPopup: { key: "gisEditPopup", title: "GIS 편집", width: 1080, height: 760, }, gisEditSessionPopup: { key: "gisEditSessionPopup", title: "편집 세션", width: 460, height: 640, placement: "browser-left", }, gisManagementPopup: { key: "gisManagementPopup", title: "GIS 관리", width: 860, height: 700, }, flowRiskPopup: { key: "flowRiskPopup", title: "통수 위험", width: 920, height: 760, }, } as const satisfies Record; export type WindowPopupKey = keyof typeof windowPopupDefinitions; export const isWindowPopupKey = (key: string): key is WindowPopupKey => { return key in windowPopupDefinitions; };