@bwg-ui/core 1.1.19 → 1.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{BwgDownload-Qhs6jJxM.js → BwgDownload-CF_Zo2oU.js} +3 -3
- package/dist/chunks/{BwgDownload-Qhs6jJxM.js.map → BwgDownload-CF_Zo2oU.js.map} +1 -1
- package/dist/chunks/{BwgDownload-Cm_XfYl_.cjs → BwgDownload-DvCaLWCL.cjs} +2 -2
- package/dist/chunks/{BwgDownload-Cm_XfYl_.cjs.map → BwgDownload-DvCaLWCL.cjs.map} +1 -1
- package/dist/chunks/{SSOHandler-C-pcl0On.cjs → SSOHandler-C7echUZs.cjs} +2 -2
- package/dist/chunks/{SSOHandler-C-pcl0On.cjs.map → SSOHandler-C7echUZs.cjs.map} +1 -1
- package/dist/chunks/{SSOHandler-B4yYaeJF.js → SSOHandler-Cr04mtMm.js} +4 -4
- package/dist/chunks/{SSOHandler-B4yYaeJF.js.map → SSOHandler-Cr04mtMm.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-CyTyFuB5.js → SearchBoxContext-C2ECWG9l.js} +2 -2
- package/dist/chunks/{SearchBoxContext-CyTyFuB5.js.map → SearchBoxContext-C2ECWG9l.js.map} +1 -1
- package/dist/chunks/{SearchBoxContext-BgAzWZQl.cjs → SearchBoxContext-aMXi2JmO.cjs} +2 -2
- package/dist/chunks/{SearchBoxContext-BgAzWZQl.cjs.map → SearchBoxContext-aMXi2JmO.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-pwafdfAs.cjs → ViewContainer-DI7hvDi-.cjs} +2 -2
- package/dist/chunks/{ViewContainer-pwafdfAs.cjs.map → ViewContainer-DI7hvDi-.cjs.map} +1 -1
- package/dist/chunks/{ViewContainer-CbO6vSvW.js → ViewContainer-DxhY26m3.js} +2 -2
- package/dist/chunks/{ViewContainer-CbO6vSvW.js.map → ViewContainer-DxhY26m3.js.map} +1 -1
- package/dist/chunks/{apiUtils-CH40MvpT.js → apiUtils-BRaXRbjE.js} +142 -116
- package/dist/chunks/apiUtils-BRaXRbjE.js.map +1 -0
- package/dist/chunks/apiUtils-DL43X2ta.cjs +3 -0
- package/dist/chunks/apiUtils-DL43X2ta.cjs.map +1 -0
- package/dist/chunks/{codeStore-DVUySb7V.cjs → codeStore-WWRT65Zk.cjs} +2 -2
- package/dist/chunks/{codeStore-DVUySb7V.cjs.map → codeStore-WWRT65Zk.cjs.map} +1 -1
- package/dist/chunks/{codeStore-CC9_8nmU.js → codeStore-kuUEfWSS.js} +2 -2
- package/dist/chunks/{codeStore-CC9_8nmU.js.map → codeStore-kuUEfWSS.js.map} +1 -1
- package/dist/chunks/core-D7JhyoYH.cjs +2 -0
- package/dist/chunks/core-D7JhyoYH.cjs.map +1 -0
- package/dist/chunks/core-DLGhqegD.js +514 -0
- package/dist/chunks/core-DLGhqegD.js.map +1 -0
- package/dist/chunks/enc-base64-96WlVdPN.js +102 -0
- package/dist/chunks/enc-base64-96WlVdPN.js.map +1 -0
- package/dist/chunks/enc-base64-b9mIy966.cjs +2 -0
- package/dist/chunks/enc-base64-b9mIy966.cjs.map +1 -0
- package/dist/chunks/{favoriteStore-DYiTW7cU.js → favoriteStore-D40XfOmq.js} +2 -2
- package/dist/chunks/{favoriteStore-DYiTW7cU.js.map → favoriteStore-D40XfOmq.js.map} +1 -1
- package/dist/chunks/{favoriteStore-Byy7k_UI.cjs → favoriteStore-DdGoghEn.cjs} +2 -2
- package/dist/chunks/{favoriteStore-Byy7k_UI.cjs.map → favoriteStore-DdGoghEn.cjs.map} +1 -1
- package/dist/chunks/{popupStore-wA4nh-mr.cjs → popupStore-DKpp0bmC.cjs} +2 -2
- package/dist/chunks/{popupStore-wA4nh-mr.cjs.map → popupStore-DKpp0bmC.cjs.map} +1 -1
- package/dist/chunks/{popupStore-C8-CPKwz.js → popupStore-axohgTV-.js} +2 -2
- package/dist/chunks/{popupStore-C8-CPKwz.js.map → popupStore-axohgTV-.js.map} +1 -1
- package/dist/chunks/sha256-BMg1y0Py.js +79 -0
- package/dist/chunks/sha256-BMg1y0Py.js.map +1 -0
- package/dist/chunks/sha256-BxdSMFca.cjs +2 -0
- package/dist/chunks/sha256-BxdSMFca.cjs.map +1 -0
- package/dist/chunks/{usePopup-6-TNfqyf.cjs → usePopup-DYnRe9Th.cjs} +2 -2
- package/dist/chunks/{usePopup-6-TNfqyf.cjs.map → usePopup-DYnRe9Th.cjs.map} +1 -1
- package/dist/chunks/{usePopup-D7c9t7AW.js → usePopup-Dftb7Bbl.js} +3 -3
- package/dist/chunks/{usePopup-D7c9t7AW.js.map → usePopup-Dftb7Bbl.js.map} +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +9 -9
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.js +6 -6
- package/dist/utils/commonUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +2 -1
- package/dist/chunks/apiUtils-CH40MvpT.js.map +0 -1
- package/dist/chunks/apiUtils-D9cBQG0u.cjs +0 -3
- package/dist/chunks/apiUtils-D9cBQG0u.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popupStore-
|
|
1
|
+
{"version":3,"file":"popupStore-DKpp0bmC.cjs","sources":["../../src/stores/popupStore.ts"],"sourcesContent":["import { getUserInfo } from \"@/utils/userUtils\";\r\nimport { create } from \"zustand\";\r\nimport { callService } from \"../utils/apiUtils\";\r\nimport { getServiceCode } from \"../utils/serviceConfig\";\r\n\r\n// 팝업 아이템 타입 정의\r\nexport interface PopupItem {\r\n popupId: string; // 팝업 ID\r\n popupCode: string; // 팝업 코드\r\n popupTitle: string; // 팝업 제목\r\n popupUrl: string; // 팝업 프로그램 URL\r\n popupParams?: any; // 팝업 파라미터\r\n buttonList?: any[]; // 버튼 목록\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n config?: PopupConfig; // 팝업 설정\r\n close?: () => void; // 팝업 닫기 함수\r\n}\r\n\r\n// 팝업 스토어 타입 정의\r\nexport interface PopupStore {\r\n popups: PopupItem[]; // 열린 팝업 목록\r\n activePopupId: string | null; // 현재 활성 팝업 ID\r\n isLoading: boolean; // 로딩 상태\r\n error: string | null; // 에러 상태\r\n\r\n // 팝업 관련 액션들\r\n openPopup: (\r\n popupCode: string,\r\n data?: any,\r\n config?: PopupConfig\r\n ) => Promise<void>;\r\n closePopup: (popupId: string) => void;\r\n closeAllPopups: () => void;\r\n setActivePopup: (popupId: string) => void;\r\n\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => void;\r\n}\r\n\r\nexport interface PopupButton {\r\n key: string; // 버튼 고유 키\r\n text: string; // 버튼 텍스트\r\n type?: \"primary\" | \"default\" | \"dashed\" | \"link\" | \"text\"; // 버튼 타입\r\n danger?: boolean; // 위험 버튼 여부\r\n disabled?: boolean; // 비활성화 여부\r\n icon?: string; // 아이콘 (Ant Design 아이콘명)\r\n onClick?: (popupData?: any) => void | Promise<void>; // 클릭 이벤트\r\n}\r\n\r\n/**\r\n * 팝업 설정 타입 정의\r\n */\r\nexport interface PopupConfig {\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n title?: string; // 팝업 제목\r\n buttons?: PopupButton[]; // 팝업 버튼들\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n closable?: boolean; // 닫기 버튼 표시 여부\r\n maskClosable?: boolean; // 마스크 클릭 시 닫기 여부\r\n destroyOnClose?: boolean; // 닫을 때 컴포넌트 파괴 여부\r\n searchBox?: {\r\n reqArea: any;\r\n subArea?: any;\r\n style?: any;\r\n };\r\n /**\r\n * 팝업 콜백\r\n * 팝업 콜백은 팝업이 닫힐 때 호출되는 함수입니다.\r\n */\r\n callback?: (callbackParams?: any) => void;\r\n}\r\n\r\n/**\r\n * 팝업 내부 뷰 컴포넌트 타입\r\n */\r\nexport interface PopupViewProps {\r\n /**\r\n * 팝업정보\r\n */\r\n popup?: PopupItem;\r\n /** 팝업 이벤트 전달 프로퍼티 */\r\n popupEvent?: any;\r\n /** 팝업 닫기 이벤트 전달 프로퍼티 */\r\n onClose?: () => void;\r\n}\r\n\r\n// 팝업 스토어 생성\r\nexport const usePopupStore = create<PopupStore>((set, get) => ({\r\n popups: [],\r\n activePopupId: null,\r\n isLoading: false,\r\n error: null,\r\n\r\n // 팝업 열기\r\n openPopup: async (popupCode: string, data?: any, config?: PopupConfig) => {\r\n //console.log(\"팝업 열기 요청:\", { popupCode, data, config });\r\n set({ isLoading: true, error: null });\r\n\r\n try {\r\n //console.log(\"팝업 열기 시작:\", popupCode);\r\n\r\n // 개발 환경에서는 모의 데이터 사용\r\n let popupInfo: any = null;\r\n\r\n const response = await callService(getServiceCode(\"SRCH_POPU\"), {\r\n crprCd: getUserInfo()?.crprCd,\r\n popuCd: popupCode,\r\n });\r\n //console.log(\"팝업 정보 조회 결과:\", response);\r\n\r\n // 응답 구조 파싱: { mstr: {...}, dtls: [...] }\r\n popupInfo = response?.mstr;\r\n const buttonList = response?.dtls || [];\r\n\r\n //console.info(\"popupInfo:\", popupInfo);\r\n\r\n if (!popupInfo || !popupInfo.popuUrl) {\r\n const errorMsg = `팝업 정보를 찾을 수 없습니다: ${popupCode}`;\r\n console.error(errorMsg);\r\n throw new Error(errorMsg);\r\n }\r\n\r\n //console.log(\"파싱된 팝업 정보:\", popupInfo);\r\n //console.log(\"버튼 목록:\", buttonList);\r\n\r\n // 팝업 URL 경로 변환: 서버 경로 -> 클라이언트 경로\r\n const convertPopupUrl = (serverUrl: string): string => {\r\n // 서버에서 받은 경로: \"cm/CMAuthMstrP01\"\r\n // 클라이언트에서 사용할 경로: \"/src/pages/views/popup/cm/CMAuthMstrP01\"\r\n return `/src/pages/views/popup/${serverUrl}`;\r\n };\r\n\r\n const convertedPopupUrl = convertPopupUrl(popupInfo.popuUrl);\r\n //console.log(\"변환된 팝업 URL:\", convertedPopupUrl);\r\n\r\n // 팝업 아이템 생성\r\n const popupItem: PopupItem = {\r\n popupId: `popup_${Date.now()}_${Math.random()\r\n .toString(36)\r\n .substr(2, 9)}`,\r\n popupCode: popupCode,\r\n //config.title을 통해 팝업 제목 변경 가능\r\n popupTitle: config?.title || popupInfo.popuNm || \"팝업\",\r\n popupUrl: convertedPopupUrl,\r\n popupParams: data,\r\n width: popupInfo.popuWdth || 800,\r\n height: popupInfo.popuHght || 600,\r\n resizable: true,\r\n draggable: true,\r\n buttonList: buttonList, // 버튼 목록 추가\r\n config: config,\r\n };\r\n\r\n //console.log(\"생성된 팝업 아이템:\", popupItem);\r\n\r\n // 이미 같은 팝업이 열려있는지 확인\r\n const existingPopup = get().popups.find((p) => p.popupCode === popupCode);\r\n if (existingPopup) {\r\n //console.log(\"기존 팝업 업데이트:\", existingPopup.popupId);\r\n // 기존 팝업을 활성화하고 데이터 업데이트\r\n set({\r\n activePopupId: existingPopup.popupId,\r\n popups: get().popups.map((p) =>\r\n p.popupId === existingPopup.popupId ? { ...p, config: config } : p\r\n ),\r\n isLoading: false,\r\n });\r\n return;\r\n }\r\n\r\n // 새 팝업 추가\r\n //console.log(\"새 팝업 추가:\", popupItem.popupId);\r\n set((state) => ({\r\n popups: [...state.popups, popupItem],\r\n activePopupId: popupItem.popupId,\r\n isLoading: false,\r\n }));\r\n\r\n //console.log(\"팝업 열기 완료:\", popupItem);\r\n } catch (error) {\r\n // console.error(\"팝업 열기 실패:\", error);\r\n set({\r\n error: error instanceof Error ? error.message : \"팝업 열기 실패\",\r\n isLoading: false,\r\n });\r\n }\r\n },\r\n\r\n // 팝업 닫기\r\n closePopup: (popupId: string) => {\r\n const { popups, activePopupId } = get();\r\n const newPopups = popups.filter((p) => p.popupId !== popupId);\r\n\r\n // 닫힌 팝업이 현재 활성 팝업이었다면 다른 팝업을 활성화\r\n let newActivePopupId = activePopupId;\r\n if (activePopupId === popupId) {\r\n newActivePopupId =\r\n newPopups.length > 0 ? newPopups[newPopups.length - 1].popupId : null;\r\n }\r\n\r\n set({\r\n popups: newPopups,\r\n activePopupId: newActivePopupId,\r\n });\r\n },\r\n\r\n // 모든 팝업 닫기\r\n closeAllPopups: () => {\r\n set({\r\n popups: [],\r\n activePopupId: null,\r\n });\r\n },\r\n\r\n // 활성 팝업 설정\r\n setActivePopup: (popupId: string) => {\r\n set({ activePopupId: popupId });\r\n },\r\n\r\n // 팝업 설정 업데이트\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => {\r\n set((state) => ({\r\n popups: state.popups.map((p) =>\r\n p.popupId === popupId ? { ...p, config: { ...p.config, ...config } } : p\r\n ),\r\n }));\r\n },\r\n}));\r\n"],"names":["usePopupStore","create","set","get","popupCode","data","config","popupInfo","response","callService","getServiceCode","getUserInfo","buttonList","errorMsg","convertedPopupUrl","serverUrl","popupItem","existingPopup","p","state","error","popupId","popups","activePopupId","newPopups","newActivePopupId"],"mappings":"6EA2FaA,EAAgBC,EAAAA,OAAmB,CAACC,EAAKC,KAAS,CAC7D,OAAQ,CAAA,EACR,cAAe,KACf,UAAW,GACX,MAAO,KAGP,UAAW,MAAOC,EAAmBC,EAAYC,IAAyB,CAExEJ,EAAI,CAAE,UAAW,GAAM,MAAO,KAAM,EAEpC,GAAI,CAIF,IAAIK,EAAiB,KAErB,MAAMC,EAAW,MAAMC,EAAAA,YAAYC,EAAAA,eAAe,WAAW,EAAG,CAC9D,OAAQC,EAAAA,eAAe,OACvB,OAAQP,CAAA,CACT,EAIDG,EAAYC,GAAU,KACtB,MAAMI,EAAaJ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AAE,QAAU,MAGrEtB,EAAI,CACF,OAAQsB,EACR,cAAeC,CAAA,CAChB,CACH,EAGA,eAAgB,IAAM,CACpBvB,EAAI,CACF,OAAQ,CAAA,EACR,cAAe,IAAA,CAChB,CACH,EAGA,eAAiBmB,GAAoB,CACnCnB,EAAI,CAAE,cAAemB,EAAS,CAChC,EAGA,kBAAmB,CAACA,EAAiBf,IAAiC,CACpEJ,EAAKiB,IAAW,CACd,OAAQA,EAAM,OAAO,IAAK,GACxB,EAAE,UAAYE,EAAU,CAAE,GAAG,EAAG,OAAQ,CAAE,GAAG,EAAE,OAAQ,GAAGf,CAAA,GAAa,CAAA,CACzE,EACA,CACJ,CACF,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as d, am as P, aB as I } from "./apiUtils-
|
|
1
|
+
import { c as d, am as P, aB as I } from "./apiUtils-BRaXRbjE.js";
|
|
2
2
|
import { create as g } from "zustand";
|
|
3
3
|
const h = g((u, n) => ({
|
|
4
4
|
popups: [],
|
|
@@ -89,4 +89,4 @@ const h = g((u, n) => ({
|
|
|
89
89
|
export {
|
|
90
90
|
h as u
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=popupStore-
|
|
92
|
+
//# sourceMappingURL=popupStore-axohgTV-.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popupStore-
|
|
1
|
+
{"version":3,"file":"popupStore-axohgTV-.js","sources":["../../src/stores/popupStore.ts"],"sourcesContent":["import { getUserInfo } from \"@/utils/userUtils\";\r\nimport { create } from \"zustand\";\r\nimport { callService } from \"../utils/apiUtils\";\r\nimport { getServiceCode } from \"../utils/serviceConfig\";\r\n\r\n// 팝업 아이템 타입 정의\r\nexport interface PopupItem {\r\n popupId: string; // 팝업 ID\r\n popupCode: string; // 팝업 코드\r\n popupTitle: string; // 팝업 제목\r\n popupUrl: string; // 팝업 프로그램 URL\r\n popupParams?: any; // 팝업 파라미터\r\n buttonList?: any[]; // 버튼 목록\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n config?: PopupConfig; // 팝업 설정\r\n close?: () => void; // 팝업 닫기 함수\r\n}\r\n\r\n// 팝업 스토어 타입 정의\r\nexport interface PopupStore {\r\n popups: PopupItem[]; // 열린 팝업 목록\r\n activePopupId: string | null; // 현재 활성 팝업 ID\r\n isLoading: boolean; // 로딩 상태\r\n error: string | null; // 에러 상태\r\n\r\n // 팝업 관련 액션들\r\n openPopup: (\r\n popupCode: string,\r\n data?: any,\r\n config?: PopupConfig\r\n ) => Promise<void>;\r\n closePopup: (popupId: string) => void;\r\n closeAllPopups: () => void;\r\n setActivePopup: (popupId: string) => void;\r\n\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => void;\r\n}\r\n\r\nexport interface PopupButton {\r\n key: string; // 버튼 고유 키\r\n text: string; // 버튼 텍스트\r\n type?: \"primary\" | \"default\" | \"dashed\" | \"link\" | \"text\"; // 버튼 타입\r\n danger?: boolean; // 위험 버튼 여부\r\n disabled?: boolean; // 비활성화 여부\r\n icon?: string; // 아이콘 (Ant Design 아이콘명)\r\n onClick?: (popupData?: any) => void | Promise<void>; // 클릭 이벤트\r\n}\r\n\r\n/**\r\n * 팝업 설정 타입 정의\r\n */\r\nexport interface PopupConfig {\r\n width?: number; // 팝업 너비\r\n height?: number; // 팝업 높이\r\n title?: string; // 팝업 제목\r\n buttons?: PopupButton[]; // 팝업 버튼들\r\n resizable?: boolean; // 크기 조절 가능 여부\r\n draggable?: boolean; // 드래그 가능 여부\r\n closable?: boolean; // 닫기 버튼 표시 여부\r\n maskClosable?: boolean; // 마스크 클릭 시 닫기 여부\r\n destroyOnClose?: boolean; // 닫을 때 컴포넌트 파괴 여부\r\n searchBox?: {\r\n reqArea: any;\r\n subArea?: any;\r\n style?: any;\r\n };\r\n /**\r\n * 팝업 콜백\r\n * 팝업 콜백은 팝업이 닫힐 때 호출되는 함수입니다.\r\n */\r\n callback?: (callbackParams?: any) => void;\r\n}\r\n\r\n/**\r\n * 팝업 내부 뷰 컴포넌트 타입\r\n */\r\nexport interface PopupViewProps {\r\n /**\r\n * 팝업정보\r\n */\r\n popup?: PopupItem;\r\n /** 팝업 이벤트 전달 프로퍼티 */\r\n popupEvent?: any;\r\n /** 팝업 닫기 이벤트 전달 프로퍼티 */\r\n onClose?: () => void;\r\n}\r\n\r\n// 팝업 스토어 생성\r\nexport const usePopupStore = create<PopupStore>((set, get) => ({\r\n popups: [],\r\n activePopupId: null,\r\n isLoading: false,\r\n error: null,\r\n\r\n // 팝업 열기\r\n openPopup: async (popupCode: string, data?: any, config?: PopupConfig) => {\r\n //console.log(\"팝업 열기 요청:\", { popupCode, data, config });\r\n set({ isLoading: true, error: null });\r\n\r\n try {\r\n //console.log(\"팝업 열기 시작:\", popupCode);\r\n\r\n // 개발 환경에서는 모의 데이터 사용\r\n let popupInfo: any = null;\r\n\r\n const response = await callService(getServiceCode(\"SRCH_POPU\"), {\r\n crprCd: getUserInfo()?.crprCd,\r\n popuCd: popupCode,\r\n });\r\n //console.log(\"팝업 정보 조회 결과:\", response);\r\n\r\n // 응답 구조 파싱: { mstr: {...}, dtls: [...] }\r\n popupInfo = response?.mstr;\r\n const buttonList = response?.dtls || [];\r\n\r\n //console.info(\"popupInfo:\", popupInfo);\r\n\r\n if (!popupInfo || !popupInfo.popuUrl) {\r\n const errorMsg = `팝업 정보를 찾을 수 없습니다: ${popupCode}`;\r\n console.error(errorMsg);\r\n throw new Error(errorMsg);\r\n }\r\n\r\n //console.log(\"파싱된 팝업 정보:\", popupInfo);\r\n //console.log(\"버튼 목록:\", buttonList);\r\n\r\n // 팝업 URL 경로 변환: 서버 경로 -> 클라이언트 경로\r\n const convertPopupUrl = (serverUrl: string): string => {\r\n // 서버에서 받은 경로: \"cm/CMAuthMstrP01\"\r\n // 클라이언트에서 사용할 경로: \"/src/pages/views/popup/cm/CMAuthMstrP01\"\r\n return `/src/pages/views/popup/${serverUrl}`;\r\n };\r\n\r\n const convertedPopupUrl = convertPopupUrl(popupInfo.popuUrl);\r\n //console.log(\"변환된 팝업 URL:\", convertedPopupUrl);\r\n\r\n // 팝업 아이템 생성\r\n const popupItem: PopupItem = {\r\n popupId: `popup_${Date.now()}_${Math.random()\r\n .toString(36)\r\n .substr(2, 9)}`,\r\n popupCode: popupCode,\r\n //config.title을 통해 팝업 제목 변경 가능\r\n popupTitle: config?.title || popupInfo.popuNm || \"팝업\",\r\n popupUrl: convertedPopupUrl,\r\n popupParams: data,\r\n width: popupInfo.popuWdth || 800,\r\n height: popupInfo.popuHght || 600,\r\n resizable: true,\r\n draggable: true,\r\n buttonList: buttonList, // 버튼 목록 추가\r\n config: config,\r\n };\r\n\r\n //console.log(\"생성된 팝업 아이템:\", popupItem);\r\n\r\n // 이미 같은 팝업이 열려있는지 확인\r\n const existingPopup = get().popups.find((p) => p.popupCode === popupCode);\r\n if (existingPopup) {\r\n //console.log(\"기존 팝업 업데이트:\", existingPopup.popupId);\r\n // 기존 팝업을 활성화하고 데이터 업데이트\r\n set({\r\n activePopupId: existingPopup.popupId,\r\n popups: get().popups.map((p) =>\r\n p.popupId === existingPopup.popupId ? { ...p, config: config } : p\r\n ),\r\n isLoading: false,\r\n });\r\n return;\r\n }\r\n\r\n // 새 팝업 추가\r\n //console.log(\"새 팝업 추가:\", popupItem.popupId);\r\n set((state) => ({\r\n popups: [...state.popups, popupItem],\r\n activePopupId: popupItem.popupId,\r\n isLoading: false,\r\n }));\r\n\r\n //console.log(\"팝업 열기 완료:\", popupItem);\r\n } catch (error) {\r\n // console.error(\"팝업 열기 실패:\", error);\r\n set({\r\n error: error instanceof Error ? error.message : \"팝업 열기 실패\",\r\n isLoading: false,\r\n });\r\n }\r\n },\r\n\r\n // 팝업 닫기\r\n closePopup: (popupId: string) => {\r\n const { popups, activePopupId } = get();\r\n const newPopups = popups.filter((p) => p.popupId !== popupId);\r\n\r\n // 닫힌 팝업이 현재 활성 팝업이었다면 다른 팝업을 활성화\r\n let newActivePopupId = activePopupId;\r\n if (activePopupId === popupId) {\r\n newActivePopupId =\r\n newPopups.length > 0 ? newPopups[newPopups.length - 1].popupId : null;\r\n }\r\n\r\n set({\r\n popups: newPopups,\r\n activePopupId: newActivePopupId,\r\n });\r\n },\r\n\r\n // 모든 팝업 닫기\r\n closeAllPopups: () => {\r\n set({\r\n popups: [],\r\n activePopupId: null,\r\n });\r\n },\r\n\r\n // 활성 팝업 설정\r\n setActivePopup: (popupId: string) => {\r\n set({ activePopupId: popupId });\r\n },\r\n\r\n // 팝업 설정 업데이트\r\n updatePopupConfig: (popupId: string, config: Partial<PopupConfig>) => {\r\n set((state) => ({\r\n popups: state.popups.map((p) =>\r\n p.popupId === popupId ? { ...p, config: { ...p.config, ...config } } : p\r\n ),\r\n }));\r\n },\r\n}));\r\n"],"names":["usePopupStore","create","set","get","popupCode","data","config","popupInfo","response","callService","getServiceCode","getUserInfo","buttonList","errorMsg","convertedPopupUrl","serverUrl","popupItem","existingPopup","p","state","error","popupId","popups","activePopupId","newPopups","newActivePopupId"],"mappings":";;AA2FO,MAAMA,IAAgBC,EAAmB,CAACC,GAAKC,OAAS;AAAA,EAC7D,QAAQ,CAAA;AAAA,EACR,eAAe;AAAA,EACf,WAAW;AAAA,EACX,OAAO;AAAA;AAAA,EAGP,WAAW,OAAOC,GAAmBC,GAAYC,MAAyB;AAExE,IAAAJ,EAAI,EAAE,WAAW,IAAM,OAAO,MAAM;AAEpC,QAAI;AAIF,UAAIK,IAAiB;AAErB,YAAMC,IAAW,MAAMC,EAAYC,EAAe,WAAW,GAAG;AAAA,QAC9D,QAAQC,KAAe;AAAA,QACvB,QAAQP;AAAA,MAAA,CACT;AAID,MAAAG,IAAYC,GAAU;AACtB,YAAMI,IAAaJ,GAAU,QAAQ,CAAA;AAIrC,UAAI,CAACD,KAAa,CAACA,EAAU,SAAS;AACpC,cAAMM,IAAW,qBAAqBT,CAAS;AAC/C,s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YF,EAAO,OAAO,CAACJ,MAAMA,EAAE,YAAYG,CAAO;AAG5D,QAAII,IAAmBF;AACvB,IAAIA,MAAkBF,MACpBI,IACED,EAAU,SAAS,IAAIA,EAAUA,EAAU,SAAS,CAAC,EAAE,UAAU,OAGrEtB,EAAI;AAAA,MACF,QAAQsB;AAAA,MACR,eAAeC;AAAA,IAAA,CAChB;AAAA,EACH;AAAA;AAAA,EAGA,gBAAgB,MAAM;AACpB,IAAAvB,EAAI;AAAA,MACF,QAAQ,CAAA;AAAA,MACR,eAAe;AAAA,IAAA,CAChB;AAAA,EACH;AAAA;AAAA,EAGA,gBAAgB,CAACmB,MAAoB;AACnC,IAAAnB,EAAI,EAAE,eAAemB,GAAS;AAAA,EAChC;AAAA;AAAA,EAGA,mBAAmB,CAACA,GAAiBf,MAAiC;AACpE,IAAAJ,EAAI,CAACiB,OAAW;AAAA,MACd,QAAQA,EAAM,OAAO;AAAA,QAAI,CAAC,MACxB,EAAE,YAAYE,IAAU,EAAE,GAAG,GAAG,QAAQ,EAAE,GAAG,EAAE,QAAQ,GAAGf,EAAA,MAAa;AAAA,MAAA;AAAA,IACzE,EACA;AAAA,EACJ;AACF,EAAE;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { aQ as N } from "./apiUtils-BRaXRbjE.js";
|
|
2
|
+
import { r as R } from "./core-DLGhqegD.js";
|
|
3
|
+
function T(p, g) {
|
|
4
|
+
for (var c = 0; c < g.length; c++) {
|
|
5
|
+
const t = g[c];
|
|
6
|
+
if (typeof t != "string" && !Array.isArray(t)) {
|
|
7
|
+
for (const n in t)
|
|
8
|
+
if (n !== "default" && !(n in p)) {
|
|
9
|
+
const h = Object.getOwnPropertyDescriptor(t, n);
|
|
10
|
+
h && Object.defineProperty(p, n, h.get ? h : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => t[n]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(p, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var A = { exports: {} }, K = A.exports, q;
|
|
20
|
+
function L() {
|
|
21
|
+
return q || (q = 1, (function(p, g) {
|
|
22
|
+
(function(c, t) {
|
|
23
|
+
p.exports = t(R());
|
|
24
|
+
})(K, function(c) {
|
|
25
|
+
return (function(t) {
|
|
26
|
+
var n = c, h = n.lib, O = h.WordArray, H = h.Hasher, C = n.algo, w = [], B = [];
|
|
27
|
+
(function() {
|
|
28
|
+
function i(o) {
|
|
29
|
+
for (var u = t.sqrt(o), l = 2; l <= u; l++)
|
|
30
|
+
if (!(o % l))
|
|
31
|
+
return !1;
|
|
32
|
+
return !0;
|
|
33
|
+
}
|
|
34
|
+
function v(o) {
|
|
35
|
+
return (o - (o | 0)) * 4294967296 | 0;
|
|
36
|
+
}
|
|
37
|
+
for (var r = 2, e = 0; e < 64; )
|
|
38
|
+
i(r) && (e < 8 && (w[e] = v(t.pow(r, 1 / 2))), B[e] = v(t.pow(r, 1 / 3)), e++), r++;
|
|
39
|
+
})();
|
|
40
|
+
var f = [], P = C.SHA256 = H.extend({
|
|
41
|
+
_doReset: function() {
|
|
42
|
+
this._hash = new O.init(w.slice(0));
|
|
43
|
+
},
|
|
44
|
+
_doProcessBlock: function(i, v) {
|
|
45
|
+
for (var r = this._hash.words, e = r[0], o = r[1], u = r[2], l = r[3], s = r[4], y = r[5], b = r[6], S = r[7], a = 0; a < 64; a++) {
|
|
46
|
+
if (a < 16)
|
|
47
|
+
f[a] = i[v + a] | 0;
|
|
48
|
+
else {
|
|
49
|
+
var d = f[a - 15], W = (d << 25 | d >>> 7) ^ (d << 14 | d >>> 18) ^ d >>> 3, _ = f[a - 2], D = (_ << 15 | _ >>> 17) ^ (_ << 13 | _ >>> 19) ^ _ >>> 10;
|
|
50
|
+
f[a] = W + f[a - 7] + D + f[a - 16];
|
|
51
|
+
}
|
|
52
|
+
var F = s & y ^ ~s & b, $ = e & o ^ e & u ^ o & u, k = (e << 30 | e >>> 2) ^ (e << 19 | e >>> 13) ^ (e << 10 | e >>> 22), z = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25), j = S + z + F + B[a] + f[a], E = k + $;
|
|
53
|
+
S = b, b = y, y = s, s = l + j | 0, l = u, u = o, o = e, e = j + E | 0;
|
|
54
|
+
}
|
|
55
|
+
r[0] = r[0] + e | 0, r[1] = r[1] + o | 0, r[2] = r[2] + u | 0, r[3] = r[3] + l | 0, r[4] = r[4] + s | 0, r[5] = r[5] + y | 0, r[6] = r[6] + b | 0, r[7] = r[7] + S | 0;
|
|
56
|
+
},
|
|
57
|
+
_doFinalize: function() {
|
|
58
|
+
var i = this._data, v = i.words, r = this._nDataBytes * 8, e = i.sigBytes * 8;
|
|
59
|
+
return v[e >>> 5] |= 128 << 24 - e % 32, v[(e + 64 >>> 9 << 4) + 14] = t.floor(r / 4294967296), v[(e + 64 >>> 9 << 4) + 15] = r, i.sigBytes = v.length * 4, this._process(), this._hash;
|
|
60
|
+
},
|
|
61
|
+
clone: function() {
|
|
62
|
+
var i = H.clone.call(this);
|
|
63
|
+
return i._hash = this._hash.clone(), i;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
n.SHA256 = H._createHelper(P), n.HmacSHA256 = H._createHmacHelper(P);
|
|
67
|
+
})(Math), c.SHA256;
|
|
68
|
+
});
|
|
69
|
+
})(A)), A.exports;
|
|
70
|
+
}
|
|
71
|
+
var x = L();
|
|
72
|
+
const Q = /* @__PURE__ */ N(x), U = /* @__PURE__ */ T({
|
|
73
|
+
__proto__: null,
|
|
74
|
+
default: Q
|
|
75
|
+
}, [x]);
|
|
76
|
+
export {
|
|
77
|
+
U as s
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=sha256-BMg1y0Py.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sha256-BMg1y0Py.js","sources":["../../node_modules/crypto-js/sha256.js"],"sourcesContent":[";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));"],"names":["root","factory","module","require$$0","this","CryptoJS","Math","C","C_lib","WordArray","Hasher","C_algo","H","K","isPrime","n","sqrtN","factor","getFractionalBits","nPrime","W","SHA256","M","offset","a","b","c","d","e","f","g","h","i","gamma0x","gamma0","gamma1x","gamma1","ch","maj","sigma0","sigma1","t1","t2","data","dataWords","nBitsTotal","nBitsLeft","clone"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAC,KAAC,SAAUA,GAAMC,GAAS;AAGzB,MAAAC,YAA2BD,EAAQE,GAAiB;AAAA,IAUtD,GAAEC,GAAM,SAAUC,GAAU;AAE3B,cAAC,SAAUC,GAAM;AAEb,YAAIC,IAAIF,GACJG,IAAQD,EAAE,KACVE,IAAYD,EAAM,WAClBE,IAASF,EAAM,QACfG,IAASJ,EAAE,MAGXK,IAAI,CAAA,GACJC,IAAI,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,EAAK,OAEjBE,IAAa,KAAK,cAAc,GAChCC,IAAYH,EAAK,WAAW;AAGhC,mBAAAC,EAAUE,MAAc,CAAC,KAAK,OAAS,KAAKA,IAAY,IACxDF,GAAaE,IAAY,OAAQ,KAAM,KAAK,EAAE,IAAIxC,EAAK,MAAMuC,IAAa,UAAW,GACrFD,GAAaE,IAAY,OAAQ,KAAM,KAAK,EAAE,IAAID,GAClDF,EAAK,WAAWC,EAAU,SAAS,GAGnC,KAAK,SAAQ,GAGN,KAAK;AAAA,UACzB;AAAA,UAES,OAAO,WAAY;AACf,gBAAIG,IAAQrC,EAAO,MAAM,KAAK,IAAI;AAClC,mBAAAqC,EAAM,QAAQ,KAAK,MAAM,MAAK,GAEvBA;AAAA,UACpB;AAAA,QACA,CAAM;AAgBD,QAAAxC,EAAE,SAASG,EAAO,cAAcW,CAAM,GAgBtCd,EAAE,aAAaG,EAAO,kBAAkBW,CAAM;AAAA,MACnD,GAAG,IAAI,GAGChB,EAAS;AAAA,IAEjB,CAAC;AAAA;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const N=require("./apiUtils-DL43X2ta.cjs"),R=require("./core-D7JhyoYH.cjs");function T(d,g){for(var c=0;c<g.length;c++){const t=g[c];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in d)){const h=Object.getOwnPropertyDescriptor(t,n);h&&Object.defineProperty(d,n,h.get?h:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}},K=A.exports,j;function L(){return j||(j=1,(function(d,g){(function(c,t){d.exports=t(R.requireCore())})(K,function(c){return(function(t){var n=c,h=n.lib,x=h.WordArray,H=h.Hasher,C=n.algo,q=[],w=[];(function(){function i(o){for(var f=t.sqrt(o),l=2;l<=f;l++)if(!(o%l))return!1;return!0}function v(o){return(o-(o|0))*4294967296|0}for(var r=2,e=0;e<64;)i(r)&&(e<8&&(q[e]=v(t.pow(r,1/2))),w[e]=v(t.pow(r,1/3)),e++),r++})();var u=[],B=C.SHA256=H.extend({_doReset:function(){this._hash=new x.init(q.slice(0))},_doProcessBlock:function(i,v){for(var r=this._hash.words,e=r[0],o=r[1],f=r[2],l=r[3],s=r[4],y=r[5],b=r[6],S=r[7],a=0;a<64;a++){if(a<16)u[a]=i[v+a]|0;else{var p=u[a-15],W=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,_=u[a-2],D=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;u[a]=W+u[a-7]+D+u[a-16]}var F=s&y^~s&b,$=e&o^e&f^o&f,k=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),z=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),P=S+z+F+w[a]+u[a],E=k+$;S=b,b=y,y=s,s=l+P|0,l=f,f=o,o=e,e=P+E|0}r[0]=r[0]+e|0,r[1]=r[1]+o|0,r[2]=r[2]+f|0,r[3]=r[3]+l|0,r[4]=r[4]+s|0,r[5]=r[5]+y|0,r[6]=r[6]+b|0,r[7]=r[7]+S|0},_doFinalize:function(){var i=this._data,v=i.words,r=this._nDataBytes*8,e=i.sigBytes*8;return v[e>>>5]|=128<<24-e%32,v[(e+64>>>9<<4)+14]=t.floor(r/4294967296),v[(e+64>>>9<<4)+15]=r,i.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var i=H.clone.call(this);return i._hash=this._hash.clone(),i}});n.SHA256=H._createHelper(B),n.HmacSHA256=H._createHmacHelper(B)})(Math),c.SHA256})})(A)),A.exports}var O=L();const U=N.getDefaultExportFromCjs(O),G=T({__proto__:null,default:U},[O]);exports.sha256=G;
|
|
2
|
+
//# sourceMappingURL=sha256-BxdSMFca.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sha256-BxdSMFca.cjs","sources":["../../node_modules/crypto-js/sha256.js"],"sourcesContent":[";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));"],"names":["root","factory","module","require$$0","this","CryptoJS","Math","C","C_lib","WordArray","Hasher","C_algo","H","K","isPrime","n","sqrtN","factor","getFractionalBits","nPrime","W","SHA256","M","offset","a","b","c","d","e","f","g","h","i","gamma0x","gamma0","gamma1x","gamma1","ch","maj","sigma0","sigma1","t1","t2","data","dataWords","nBitsTotal","nBitsLeft","clone"],"mappings":"4fAAE,SAAUA,EAAMC,EAAS,CAGzBC,UAA2BD,EAAQE,EAAAA,aAAiB,CAUtD,GAAEC,EAAM,SAAUC,EAAU,CAE3B,OAAC,SAAUC,EAAM,CAEb,IAAIC,EAAIF,EACJG,EAAQD,EAAE,IACVE,EAAYD,EAAM,UAClBE,EAASF,EAAM,OACfG,EAASJ,EAAE,KAGXK,EAAI,CAAA,EACJC,EAAI,CAAA,GAGP,UAAY,CACT,SAASC,EAAQC,EAAG,CAEhB,QADI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K,MAAMuC,EAAa,UAAW,EACrFD,GAAaE,EAAY,KAAQ,GAAM,GAAK,EAAE,EAAID,EAClDF,EAAK,SAAWC,EAAU,OAAS,EAGnC,KAAK,SAAQ,EAGN,KAAK,KACzB,EAES,MAAO,UAAY,CACf,IAAIG,EAAQrC,EAAO,MAAM,KAAK,IAAI,EAClC,OAAAqC,EAAM,MAAQ,KAAK,MAAM,MAAK,EAEvBA,CACpB,CACA,CAAM,EAgBDxC,EAAE,OAASG,EAAO,cAAcW,CAAM,EAgBtCd,EAAE,WAAaG,EAAO,kBAAkBW,CAAM,CACnD,GAAG,IAAI,EAGChB,EAAS,MAEjB,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const P=require("./jsx-runtime-CeSfJrVB.cjs"),x=require("./codeStore-
|
|
2
|
-
//# sourceMappingURL=usePopup-
|
|
1
|
+
"use strict";const P=require("./jsx-runtime-CeSfJrVB.cjs"),x=require("./codeStore-WWRT65Zk.cjs"),c=require("react"),v=require("./popupStore-DKpp0bmC.cjs"),a=c.createContext(void 0),h=({children:o})=>{const{codeData:e,isLoading:t,error:u,lastUpdated:s,getCodeList:d,getCodeListByOption:i,getCodeName:C,getCodeColor:p,getCodeByOption:n,getAvailableGroupCodes:m,getGridLookup:g,fetchCommonCodes:L}=x.useCodeStore(),l={codeData:e,isLoading:t,error:u,lastUpdated:s,getCodeList:d,getCodeListByOption:i,getCodeName:C,getCodeColor:p,getCodeByOption:n,getAvailableGroupCodes:m,getGridLookup:g,refreshCodes:L};return P.jsxRuntimeExports.jsx(a.Provider,{value:l,children:o})},r=()=>{const o=c.useContext(a);if(o===void 0)throw new Error("useCommonCode must be used within a CommonCodeProvider");return o},y=()=>{const{getCodeList:o,isLoading:e,error:t}=r();return{getCodeList:o,isLoading:e,error:t}},w=()=>{const{getCodeName:o,isLoading:e,error:t}=r();return{getCodeName:o,isLoading:e,error:t}},k=()=>{const{getCodeColor:o,isLoading:e,error:t}=r();return{getCodeColor:o,isLoading:e,error:t}},B=()=>{const{getCodeListByOption:o,isLoading:e,error:t}=r();return{getCodeListByOption:o,isLoading:e,error:t}},G=()=>{const{getGridLookup:o,isLoading:e,error:t}=r();return{getGridLookup:o,isLoading:e,error:t}},O=()=>!1,f=()=>{const{popups:o,activePopupId:e,setActivePopup:t,closePopup:u,openPopup:s}=v.usePopupStore(),d=c.useCallback(async(i,C,p)=>{try{await s(i,C,p)}catch(n){throw console.error("팝업 열기 실패:",n),n}},[s]);return{popups:o,activePopupId:e,setActivePopup:t,closePopup:u,showPopup:d,isPopup:o.length>0}};exports.CommonCodeProvider=h;exports.useCodeColor=k;exports.useCodeList=y;exports.useCodeListByOption=B;exports.useCodeName=w;exports.useCommonCode=r;exports.useGridLookup=G;exports.usePopup=f;exports.usePopupContext=O;
|
|
2
|
+
//# sourceMappingURL=usePopup-DYnRe9Th.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePopup-
|
|
1
|
+
{"version":3,"file":"usePopup-DYnRe9Th.cjs","sources":["../../src/provider/contexts/CommonCodeContext.tsx","../../src/provider/hooks/usePopup.ts"],"sourcesContent":["import { useCodeStore, type CommonCodeContextType } from '../../stores/codeStore';\r\nimport { createContext, useContext, ReactNode } from 'react';\r\n\r\n// 공통코드 컨텍스트 생성\r\nconst CommonCodeContext = createContext<CommonCodeContextType | undefined>(\r\n undefined\r\n);\r\n\r\n// 공통코드 컨텍스트 프로바이더 컴포넌트\r\ninterface CommonCodeProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const CommonCodeProvider: React.FC<CommonCodeProviderProps> = ({\r\n children,\r\n}) => {\r\n const {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n fetchCommonCodes,\r\n } = useCodeStore();\r\n\r\n const contextValue: CommonCodeContextType = {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n refreshCodes: fetchCommonCodes,\r\n };\r\n\r\n return (\r\n <CommonCodeContext.Provider value={contextValue}>\r\n {children}\r\n </CommonCodeContext.Provider>\r\n );\r\n};\r\n\r\n// 공통코드 컨텍스트 사용 훅\r\nexport const useCommonCode = (): CommonCodeContextType => {\r\n const context = useContext(CommonCodeContext);\r\n if (context === undefined) {\r\n throw new Error('useCommonCode must be used within a CommonCodeProvider');\r\n }\r\n return context;\r\n};\r\n\r\n// 편의 훅들 (Fast Refresh 호환성을 위해 매개변수 없는 함수로 변경)\r\nexport const useCodeList = () => {\r\n const { getCodeList, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeList,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeName = () => {\r\n const { getCodeName, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeName,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeColor = () => {\r\n const { getCodeColor, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeColor,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeListByOption = () => {\r\n const { getCodeListByOption, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeListByOption,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useGridLookup = () => {\r\n const { getGridLookup, isLoading, error } = useCommonCode();\r\n return {\r\n getGridLookup,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n","import { useCallback } from 'react';\r\nimport { usePopupStore, type PopupConfig } from '../../stores/popupStore';\r\n\r\n/**\r\n * 팝업 컨텍스트를 감지하는 훅\r\n * 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환\r\n */\r\nexport const usePopupContext = (): boolean => {\r\n // 팝업 내부에서만 true를 반환하도록 수정\r\n // 현재는 팝업이 열려있으면 모든 컴포넌트가 팝업으로 인식되는 문제가 있음\r\n // 임시로 false 반환 (수동으로 isPopup prop 사용 권장)\r\n return false;\r\n};\r\n\r\n/**\r\n * 팝업 데이터와 이벤트를 관리하는 훅\r\n */\r\nexport const usePopup = () => {\r\n const { popups, activePopupId, setActivePopup, closePopup, openPopup } =\r\n usePopupStore();\r\n\r\n // 팝업 열기 함수\r\n const showPopup = useCallback(\r\n async (popupCode: string, popParams?: any, config?: PopupConfig) => {\r\n try {\r\n await openPopup(popupCode, popParams, config);\r\n } catch (error) {\r\n console.error('팝업 열기 실패:', error);\r\n throw error;\r\n }\r\n },\r\n [openPopup]\r\n );\r\n\r\n return {\r\n popups,\r\n activePopupId,\r\n setActivePopup,\r\n closePopup,\r\n showPopup,\r\n isPopup: popups.length > 0,\r\n };\r\n};\r\n"],"names":["CommonCodeContext","createContext","CommonCodeProvider","children","codeData","isLoading","error","lastUpdated","getCodeList","getCodeListByOption","getCodeName","getCodeColor","getCodeByOption","getAvailableGroupCodes","getGridLookup","fetchCommonCodes","useCodeStore","contextValue","useCommonCode","context","useContext","useCodeList","useCodeName","useCodeColor","useCodeListByOption","useGridLookup","usePopupContext","usePopup","popups","activePopupId","setActivePopup","closePopup","openPopup","usePopupStore","showPopup","useCallback","popupCode","popParams","config"],"mappings":"2JAIMA,EAAoBC,EAAAA,cACxB,MACF,EAOaC,EAAwD,CAAC,CACpE,SAAAC,CACF,IAAM,CACJ,KAAM,CACJ,SAAAC,EACA,UAAAC,EACA,MAAAC,EACA,YAAAC,EACA,YAAAC,EACA,oBAAAC,EACA,YAAAC,EACA,aAAAC,EACA,gBAAAC,EACA,uBAAAC,EACA,cAAAC,EACA,iBAAAC,CAAA,EACEC,eAAA,EAEEC,EAAsC,CAC1C,SAAAb,EACA,UAAAC,EACA,MAAAC,EACA,YAAAC,EACA,YAAAC,EACA,oBAAAC,EACA,YAAAC,EACA,aAAAC,EACA,gBAAAC,EACA,u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AI,CACF,MAAMN,EAAUI,EAAWC,EAAWC,CAAM,CAC9C,OAAShC,EAAO,CACd,cAAQ,MAAM,YAAaA,CAAK,EAC1BA,CACR,CACF,EACA,CAAC0B,CAAS,CAAA,EAGZ,MAAO,CACL,OAAAJ,EACA,cAAAC,EACA,eAAAC,EACA,WAAAC,EACA,UAAAG,EACA,QAASN,EAAO,OAAS,CAAA,CAE7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-Dpn_P65e.js";
|
|
2
|
-
import { u as P } from "./codeStore-
|
|
2
|
+
import { u as P } from "./codeStore-kuUEfWSS.js";
|
|
3
3
|
import { createContext as x, useContext as f, useCallback as v } from "react";
|
|
4
|
-
import { u as h } from "./popupStore-
|
|
4
|
+
import { u as h } from "./popupStore-axohgTV-.js";
|
|
5
5
|
const C = x(
|
|
6
6
|
void 0
|
|
7
7
|
), B = ({
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
S as g,
|
|
107
107
|
r as u
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=usePopup-
|
|
109
|
+
//# sourceMappingURL=usePopup-Dftb7Bbl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePopup-
|
|
1
|
+
{"version":3,"file":"usePopup-Dftb7Bbl.js","sources":["../../src/provider/contexts/CommonCodeContext.tsx","../../src/provider/hooks/usePopup.ts"],"sourcesContent":["import { useCodeStore, type CommonCodeContextType } from '../../stores/codeStore';\r\nimport { createContext, useContext, ReactNode } from 'react';\r\n\r\n// 공통코드 컨텍스트 생성\r\nconst CommonCodeContext = createContext<CommonCodeContextType | undefined>(\r\n undefined\r\n);\r\n\r\n// 공통코드 컨텍스트 프로바이더 컴포넌트\r\ninterface CommonCodeProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const CommonCodeProvider: React.FC<CommonCodeProviderProps> = ({\r\n children,\r\n}) => {\r\n const {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n fetchCommonCodes,\r\n } = useCodeStore();\r\n\r\n const contextValue: CommonCodeContextType = {\r\n codeData,\r\n isLoading,\r\n error,\r\n lastUpdated,\r\n getCodeList,\r\n getCodeListByOption,\r\n getCodeName,\r\n getCodeColor,\r\n getCodeByOption,\r\n getAvailableGroupCodes,\r\n getGridLookup,\r\n refreshCodes: fetchCommonCodes,\r\n };\r\n\r\n return (\r\n <CommonCodeContext.Provider value={contextValue}>\r\n {children}\r\n </CommonCodeContext.Provider>\r\n );\r\n};\r\n\r\n// 공통코드 컨텍스트 사용 훅\r\nexport const useCommonCode = (): CommonCodeContextType => {\r\n const context = useContext(CommonCodeContext);\r\n if (context === undefined) {\r\n throw new Error('useCommonCode must be used within a CommonCodeProvider');\r\n }\r\n return context;\r\n};\r\n\r\n// 편의 훅들 (Fast Refresh 호환성을 위해 매개변수 없는 함수로 변경)\r\nexport const useCodeList = () => {\r\n const { getCodeList, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeList,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeName = () => {\r\n const { getCodeName, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeName,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeColor = () => {\r\n const { getCodeColor, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeColor,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useCodeListByOption = () => {\r\n const { getCodeListByOption, isLoading, error } = useCommonCode();\r\n return {\r\n getCodeListByOption,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n\r\nexport const useGridLookup = () => {\r\n const { getGridLookup, isLoading, error } = useCommonCode();\r\n return {\r\n getGridLookup,\r\n isLoading,\r\n error,\r\n };\r\n};\r\n","import { useCallback } from 'react';\r\nimport { usePopupStore, type PopupConfig } from '../../stores/popupStore';\r\n\r\n/**\r\n * 팝업 컨텍스트를 감지하는 훅\r\n * 팝업 내부에서 사용하면 true, 일반 페이지에서는 false 반환\r\n */\r\nexport const usePopupContext = (): boolean => {\r\n // 팝업 내부에서만 true를 반환하도록 수정\r\n // 현재는 팝업이 열려있으면 모든 컴포넌트가 팝업으로 인식되는 문제가 있음\r\n // 임시로 false 반환 (수동으로 isPopup prop 사용 권장)\r\n return false;\r\n};\r\n\r\n/**\r\n * 팝업 데이터와 이벤트를 관리하는 훅\r\n */\r\nexport const usePopup = () => {\r\n const { popups, activePopupId, setActivePopup, closePopup, openPopup } =\r\n usePopupStore();\r\n\r\n // 팝업 열기 함수\r\n const showPopup = useCallback(\r\n async (popupCode: string, popParams?: any, config?: PopupConfig) => {\r\n try {\r\n await openPopup(popupCode, popParams, config);\r\n } catch (error) {\r\n console.error('팝업 열기 실패:', error);\r\n throw error;\r\n }\r\n },\r\n [openPopup]\r\n );\r\n\r\n return {\r\n popups,\r\n activePopupId,\r\n setActivePopup,\r\n closePopup,\r\n showPopup,\r\n isPopup: popups.length > 0,\r\n };\r\n};\r\n"],"names":["CommonCodeContext","createContext","CommonCodeProvider","children","codeData","isLoading","error","lastUpdated","getCodeList","getCodeListByOption","getCodeName","getCodeColor","getCodeByOption","getAvailableGroupCodes","getGridLookup","fetchCommonCodes","useCodeStore","contextValue","useCommonCode","context","useContext","useCodeList","useCodeName","useCodeColor","useCodeListByOption","useGridLookup","usePopupContext","usePopup","popups","activePopupId","setActivePopup","closePopup","openPopup","usePopupStore","showPopup","useCallback","popupCode","popParams","config"],"mappings":";;;;AAIA,MAAMA,IAAoBC;AAAA,EACxB;AACF,GAOaC,IAAwD,CAAC;AAAA,EACpE,UAAAC;AACF,MAAM;AACJ,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,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T;AAAA,IACA,WAAAJ;AAAA,IACA,OAAAC;AAAA,EAAA;AAEJ,GAEamB,IAAgB,MAAM;AACjC,QAAM,EAAE,eAAAX,GAAe,WAAAT,GAAW,OAAAC,EAAA,IAAUY,EAAA;AAC5C,SAAO;AAAA,IACL,eAAAJ;AAAA,IACA,WAAAT;AAAA,IACA,OAAAC;AAAA,EAAA;AAEJ,GCnGaoB,IAAkB,MAItB,IAMIC,IAAW,MAAM;AAC5B,QAAM,EAAE,QAAAC,GAAQ,eAAAC,GAAe,gBAAAC,GAAgB,YAAAC,GAAY,WAAAC,EAAA,IACzDC,EAAA,GAGIC,IAAYC;AAAA,IAChB,OAAOC,GAAmBC,GAAiBC,MAAyB;AAClE,UAAI;AACF,cAAMN,EAAUI,GAAWC,GAAWC,CAAM;AAAA,MAC9C,SAAShC,GAAO;AACd,sBAAQ,MAAM,aAAaA,CAAK,GAC1BA;AAAA,MACR;AAAA,IACF;AAAA,IACA,CAAC0B,CAAS;AAAA,EAAA;AAGZ,SAAO;AAAA,IACL,QAAAJ;AAAA,IACA,eAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAG;AAAA,IACA,SAASN,EAAO,SAAS;AAAA,EAAA;AAE7B;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/SSOHandler-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/SSOHandler-C7echUZs.cjs"),r=require("../../chunks/BwgSpace-b0hmM1Ht.cjs"),o=require("../../chunks/realFormat-Cha7OTd9.cjs");exports.BwgButtonGroup=e.BwgButtonGroup;exports.BwgCmptArea=e.BwgCmptArea;exports.BwgCol=e.BwgCol;exports.BwgConfigProvider=e.BwgConfigProvider;exports.BwgDetail=e.BwgDetail;exports.BwgDrawer=e.BwgDrawer;exports.BwgEditor=e.BwgEditor;exports.BwgGrid=e.BwgGrid;exports.BwgInfoArea=e.BwgInfoArea;exports.BwgPopup=e.BwgPopup;exports.BwgRow=e.BwgRow;exports.BwgTable=e.BwgTable;exports.BwgTabs=e.BwgTabs;exports.BwgTitleBox=e.BwgTitleBox;exports.BwgView=e.BwgView;exports.ContentBox=e.ContentBox;exports.ContentLayOut=e.ContentLayOut;exports.GlobalConfigProvider=e.GlobalConfigProvider;exports.QuickServiceToggle=e.QuickServiceToggle;exports.SSOHandler=e.SSOHandler;exports.SearchBox=e.SearchBox;exports.createBwgGridRenderer=e.createBwgGridRenderer;exports.BwgSpace=r.BwgSpace;exports.realFormat=o.realFormat;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as r, a as o, b as s, c as B, d as g, e as w, f as t, g as i, h as n, i as l, j as p, k as d, l as f, m as C, n as c, C as m, o as x, G as S, Q as u, p as G, S as b, q as T } from "../../chunks/SSOHandler-
|
|
1
|
+
import { B as r, a as o, b as s, c as B, d as g, e as w, f as t, g as i, h as n, i as l, j as p, k as d, l as f, m as C, n as c, C as m, o as x, G as S, Q as u, p as G, S as b, q as T } from "../../chunks/SSOHandler-Cr04mtMm.js";
|
|
2
2
|
import { B as P } from "../../chunks/BwgSpace-CnLM4qcg.js";
|
|
3
3
|
import { r as k } from "../../chunks/realFormat-DRGLFabQ.js";
|
|
4
4
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../chunks/BwgCheck-Dtzr-6rg.cjs"),e=require("../../chunks/BwgDownload-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../chunks/BwgCheck-Dtzr-6rg.cjs"),e=require("../../chunks/BwgDownload-DvCaLWCL.cjs");exports.BwgCheck=g.BwgCheck;exports.BwgForm=g.BwgForm;exports.BwgFormItem=g.BwgFormItem;exports.BwgInput=g.BwgInput;exports.BwgRangePicker=g.BwgRangePicker;exports.BwgSelect=g.BwgSelect;exports.BwgButton=e.BwgButton;exports.BwgCheckList=e.BwgCheckList;exports.BwgDatePicker=e.BwgDatePicker;exports.BwgDownload=e.BwgDownload;exports.BwgLargeUploader=e.BwgLargeUploader;exports.BwgMaskedInput=e.BwgMaskedInput;exports.BwgMaskedPicker=e.BwgMaskedPicker;exports.BwgMultiSelect=e.BwgMultiSelect;exports.BwgNumber=e.BwgNumber;exports.BwgRadio=e.BwgRadio;exports.BwgSearch=e.BwgSearch;exports.BwgTextArea=e.BwgTextArea;exports.BwgUploader=e.BwgUploader;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { e as g, a as s, B, c as w, d as r, b as t } from "../../chunks/BwgCheck-BDt8r0gn.js";
|
|
2
|
-
import { i as c, e as d, c as k, l as i, k as l, a as m, b as p, h as n, g as u, d as h, B as b, f, j as x } from "../../chunks/BwgDownload-
|
|
2
|
+
import { i as c, e as d, c as k, l as i, k as l, a as m, b as p, h as n, g as u, d as h, B as b, f, j as x } from "../../chunks/BwgDownload-CF_Zo2oU.js";
|
|
3
3
|
export {
|
|
4
4
|
c as BwgButton,
|
|
5
5
|
g as BwgCheck,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/ViewContainer-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/ViewContainer-DI7hvDi-.cjs"),r=require("../../chunks/LoadingOverlay-NX9Mo_6n.cjs");exports.ErrorBound=e.ErrorBound;exports.PrivateProtectedOverlay=e.PrivateProtectedOverlay;exports.ProgressOverlay=e.ProgressOverlay;exports.ProtectedLayout=e.ProtectedLayout;exports.PublicLayout=e.PublicLayout;exports.ViewContainer=e.ViewContainer;exports.LoadingOverlay=r.LoadingOverlay;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e, P as o, a as t, b as s, c as P, V as i } from "../../chunks/ViewContainer-
|
|
1
|
+
import { E as e, P as o, a as t, b as s, c as P, V as i } from "../../chunks/ViewContainer-DxhY26m3.js";
|
|
2
2
|
import { L as c } from "../../chunks/LoadingOverlay-CAO6_FuF.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ErrorBound,
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./utils/index.cjs"),a=require("./stores/index.cjs"),r=require("./chunks/SSOHandler-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./utils/index.cjs"),a=require("./stores/index.cjs"),r=require("./chunks/SSOHandler-C7echUZs.cjs"),c=require("./chunks/BwgSpace-b0hmM1Ht.cjs"),S=require("./chunks/realFormat-Cha7OTd9.cjs"),n=require("./chunks/BwgCheck-Dtzr-6rg.cjs"),t=require("./chunks/BwgDownload-DvCaLWCL.cjs"),w=require("./chunks/LoadingOverlay-NX9Mo_6n.cjs"),g=require("./chunks/ViewContainer-DI7hvDi-.cjs"),e=require("./chunks/apiUtils-DL43X2ta.cjs"),l=require("./chunks/codeStore-WWRT65Zk.cjs"),C=require("./chunks/popupStore-DKpp0bmC.cjs"),p=require("./chunks/favoriteStore-DdGoghEn.cjs"),u=require("./chunks/AuthContext-CXng9fj0.cjs"),i=require("./chunks/usePopup-DYnRe9Th.cjs"),d=require("./chunks/ScreenProtectContext-CVuXrJm6.cjs"),s=require("./chunks/SearchBoxContext-aMXi2JmO.cjs");exports.apiUtils=o.apiUtils;exports.bwgUtils=o.bwgUtils;exports.closeAllMessages=o.closeAllMessages;exports.closeMessage=o.closeMessage;exports.commonUtils=o.commonUtils;exports.downloadByFileKey=o.downloadByFileKey;exports.downloadFile=o.downloadFile;exports.envUtils=o.envUtils;exports.fileUtils=o.fileUtils;exports.messageUtils=o.messageUtils;exports.notificationUtils=o.notificationUtils;exports.serviceUtils=o.serviceUtils;exports.showApiError=o.showApiError;exports.showDuplicateError=o.showDuplicateError;exports.showError=o.showError;exports.showInfo=o.showInfo;exports.showLoading=o.showLoading;exports.showRequiredError=o.showRequiredError;exports.showSaveError=o.showSaveError;exports.showSaveSuccess=o.showSaveSuccess;exports.showSuccess=o.showSuccess;exports.showWarning=o.showWarning;exports.userUtils=o.userUtils;exports.useCode=a.useCode;exports.useFavorite=a.useFavorite;exports.useMenuModel=a.useMenuModel;exports.useMenuView=a.useMenuView;exports.usePopupState=a.usePopupState;exports.useUser=a.useUser;exports.BwgButtonGroup=r.BwgButtonGroup;exports.BwgCmptArea=r.BwgCmptArea;exports.BwgCol=r.BwgCol;exports.BwgConfigProvider=r.BwgConfigProvider;exports.BwgDetail=r.BwgDetail;exports.BwgDrawer=r.BwgDrawer;exports.BwgEditor=r.BwgEditor;exports.BwgGrid=r.BwgGrid;exports.BwgInfoArea=r.BwgInfoArea;exports.BwgPopup=r.BwgPopup;exports.BwgRow=r.BwgRow;exports.BwgTable=r.BwgTable;exports.BwgTabs=r.BwgTabs;exports.BwgTitleBox=r.BwgTitleBox;exports.BwgView=r.BwgView;exports.ContentBox=r.ContentBox;exports.ContentLayOut=r.ContentLayOut;exports.GlobalConfigProvider=r.GlobalConfigProvider;exports.QuickServiceToggle=r.QuickServiceToggle;exports.SSOHandler=r.SSOHandler;exports.SearchBox=r.SearchBox;exports.createBwgGridRenderer=r.createBwgGridRenderer;exports.BwgSpace=c.BwgSpace;exports.realFormat=S.realFormat;exports.BwgCheck=n.BwgCheck;exports.BwgForm=n.BwgForm;exports.BwgFormItem=n.BwgFormItem;exports.BwgInput=n.BwgInput;exports.BwgRangePicker=n.BwgRangePicker;exports.BwgSelect=n.BwgSelect;exports.BwgButton=t.BwgButton;exports.BwgCheckList=t.BwgCheckList;exports.BwgDatePicker=t.BwgDatePicker;exports.BwgDownload=t.BwgDownload;exports.BwgLargeUploader=t.BwgLargeUploader;exports.BwgMaskedInput=t.BwgMaskedInput;exports.BwgMaskedPicker=t.BwgMaskedPicker;exports.BwgMultiSelect=t.BwgMultiSelect;exports.BwgNumber=t.BwgNumber;exports.BwgRadio=t.BwgRadio;exports.BwgSearch=t.BwgSearch;exports.BwgTextArea=t.BwgTextArea;exports.BwgUploader=t.BwgUploader;exports.LoadingOverlay=w.LoadingOverlay;exports.ErrorBound=g.ErrorBound;exports.PrivateProtectedOverlay=g.PrivateProtectedOverlay;exports.ProgressOverlay=g.ProgressOverlay;exports.ProtectedLayout=g.ProtectedLayout;exports.PublicLayout=g.PublicLayout;exports.ViewContainer=g.ViewContainer;exports.ApiError=e.ApiError;exports.THEME_COOKIE_NAME=e.THEME_COOKIE_NAME;exports.apiDelete=e.apiDelete;exports.apiGet=e.apiGet;exports.apiPatch=e.apiPatch;exports.apiPost=e.apiPost;exports.apiPut=e.apiPut;exports.arrAverage=e.arrAverage;exports.arrCount=e.arrCount;exports.arrMax=e.arrMax;exports.arrMin=e.arrMin;exports.arrReverse=e.arrReverse;exports.arrSum=e.arrSum;exports.arrUnique=e.arrUnique;exports.callService=e.callService;exports.callService_SYSCD=e.callService_SYSCD;exports.clamp=e.clamp;exports.clearSessionStorage=e.clearSessionStorage;exports.closeNotification=e.closeNotification;exports.configureEnvUtils=e.configureEnvUtils;exports.copyToClipboard=e.copyToClipboard;exports.debounce=e.debounce;exports.deleteCookie=e.deleteCookie;exports.destroyNotifications=e.destroyNotifications;exports.duplicates=e.duplicates;exports.encryptSha256=e.encryptSha256;exports.generateRandomColor=e.generateRandomColor;exports.generateRandomString=e.generateRandomString;exports.generateUID=e.generateUID;exports.getAllServiceCodes=e.getAllServiceCodes;exports.getClientIp=e.getClientIp;exports.getCookie=e.getCookie;exports.getCrprCd=e.getCrprCd;exports.getCurrentDate=e.getCurrentDate;exports.getCurrentDateString=e.getCurrentDateString;exports.getDepartmentInfo=e.getDepartmentInfo;exports.getDeviceType=e.getDeviceType;exports.getDisplayName=e.getDisplayName;exports.getDprtCd=e.getDprtCd;exports.getDprtNm=e.getDprtNm;exports.getEmplNo=e.getEmplNo;exports.getEnvCode=e.getEnvCode;exports.getGuid=e.getGuid;exports.getPermissionService=e.getPermissionService;exports.getRoleList=e.getRoleList;exports.getServiceCode=e.getServiceCode;exports.getSessionStorage=e.getSessionStorage;exports.getUserDvsn=e.getUserDvsn;exports.getUserId=e.getUserId;exports.getUserInfo=e.getUserInfo;exports.getUserNm=e.getUserNm;exports.hasAllRoles=e.hasAllRoles;exports.hasAnyRole=e.hasAnyRole;exports.hasRole=e.hasRole;exports.hasUserInfo=e.hasUserInfo;exports.isArray=e.isArray;exports.isBoolean=e.isBoolean;exports.isDesktop=e.isDesktop;exports.isDev=e.isDev;exports.isEmpty=e.isEmpty;exports.isEmptyArray=e.isEmptyArray;exports.isFunction=e.isFunction;exports.isLocal=e.isLocal;exports.isLoggedIn=e.isLoggedIn;exports.isMobile=e.isMobile;exports.isNull=e.isNull;exports.isNullOrUndefined=e.isNullOrUndefined;exports.isNumber=e.isNumber;exports.isObject=e.isObject;exports.isProd=e.isProd;exports.isSafeEmpty=e.isSafeEmpty;exports.isString=e.isString;exports.isTablet=e.isTablet;exports.isUndefined=e.isUndefined;exports.isValidEmail=e.isValidEmail;exports.isValidUrl=e.isValidUrl;exports.logServiceCodeConfig=e.logServiceCodeConfig;exports.notiBwgError=e.notiBwgError;exports.notiError=e.notiError;exports.notiInfo=e.notiInfo;exports.notiSuccess=e.notiSuccess;exports.notiWarning=e.notiWarning;exports.notificationService=e.notificationService;exports.padLeft=e.padLeft;exports.padRight=e.padRight;exports.random=e.random;exports.removeSessionStorage=e.removeSessionStorage;exports.round=e.round;exports.setClientIp=e.setClientIp;exports.setCookie=e.setCookie;exports.setServiceCodeOverrides=e.setServiceCodeOverrides;exports.setSessionStorage=e.setSessionStorage;exports.throttle=e.throttle;exports.toCamelCase=e.toCamelCase;exports.useLoadingStore=e.useLoadingStore;exports.useMenuModelStore=e.useMenuModelStore;exports.useMenuViewStore=e.useMenuViewStore;exports.useUserStore=e.useUserStore;exports.verifyClientIp=e.verifyClientIp;exports.useCodeStore=l.useCodeStore;exports.useColorStore=l.useColorStore;exports.useOptionStore=l.useOptionStore;exports.usePopupStore=C.usePopupStore;exports.useFavoriteStore=p.useFavoriteStore;exports.AuthProvider=u.AuthProvider;exports.useAuth=u.useAuth;exports.CommonCodeProvider=i.CommonCodeProvider;exports.useCodeColor=i.useCodeColor;exports.useCodeList=i.useCodeList;exports.useCodeListByOption=i.useCodeListByOption;exports.useCodeName=i.useCodeName;exports.useCommonCode=i.useCommonCode;exports.useGridLookup=i.useGridLookup;exports.usePopup=i.usePopup;exports.usePopupContext=i.usePopupContext;exports.ScreenProtectProvider=d.ScreenProtectProvider;exports.useLock=d.useLock;exports.SearchBoxProvider=s.SearchBoxProvider;exports.ServiceCodeProvider=s.ServiceCodeProvider;exports.useAllServiceCodes=s.useAllServiceCodes;exports.useLogServiceCodeConfig=s.useLogServiceCodeConfig;exports.useSearchBox=s.useSearchBox;exports.useServiceCode=s.useServiceCode;exports.useServiceCodeValue=s.useServiceCodeValue;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { apiUtils as s, bwgUtils as o, closeAllMessages as r, closeMessage as t, commonUtils as i, downloadByFileKey as g, downloadFile as n, envUtils as l, fileUtils as u, messageUtils as d, notificationUtils as c, serviceUtils as p, showApiError as w, showDuplicateError as S, showError as C, showInfo as B, showLoading as m, showRequiredError as f, showSaveError as v, showSaveSuccess as h, showSuccess as P, showWarning as x, userUtils as U } from "./utils/index.js";
|
|
2
2
|
import { useCode as y, useFavorite as b, useMenuModel as D, useMenuView as A, usePopupState as L, useUser as k } from "./stores/index.js";
|
|
3
|
-
import { B as M, a as R, b as N, c as O, d as F, e as G, f as T, g as V, h as j, i as q, j as H, k as _, l as K, m as Q, n as W, C as z, o as Y, G as J, Q as X, p as Z, S as $, q as aa } from "./chunks/SSOHandler-
|
|
3
|
+
import { B as M, a as R, b as N, c as O, d as F, e as G, f as T, g as V, h as j, i as q, j as H, k as _, l as K, m as Q, n as W, C as z, o as Y, G as J, Q as X, p as Z, S as $, q as aa } from "./chunks/SSOHandler-Cr04mtMm.js";
|
|
4
4
|
import { B as sa } from "./chunks/BwgSpace-CnLM4qcg.js";
|
|
5
5
|
import { r as ra } from "./chunks/realFormat-DRGLFabQ.js";
|
|
6
6
|
import { e as ia, a as ga, B as na, c as la, d as ua, b as da } from "./chunks/BwgCheck-BDt8r0gn.js";
|
|
7
|
-
import { i as pa, e as wa, c as Sa, l as Ca, k as Ba, a as ma, b as fa, h as va, g as ha, d as Pa, B as xa, f as Ua, j as Ea } from "./chunks/BwgDownload-
|
|
7
|
+
import { i as pa, e as wa, c as Sa, l as Ca, k as Ba, a as ma, b as fa, h as va, g as ha, d as Pa, B as xa, f as Ua, j as Ea } from "./chunks/BwgDownload-CF_Zo2oU.js";
|
|
8
8
|
import { L as ba } from "./chunks/LoadingOverlay-CAO6_FuF.js";
|
|
9
|
-
import { E as Aa, P as La, a as ka, b as Ia, c as Ma, V as Ra } from "./chunks/ViewContainer-
|
|
10
|
-
import { A as Oa, T as Fa, h as Ga, d as Ta, i as Va, e as ja, f as qa, I as Ha, K as _a, G as Ka, H as Qa, L as Wa, J as za, F as Ya, c as Ja, b as Xa, O as Za, U as $a, ak as ae, a9 as ee, x as se, w as oe, X as re, aj as te, M as ie, a5 as ge, D as ne, a3 as le, a4 as ue, an as de, g as ce, W as pe, ap as we, a6 as Se, a7 as Ce, aE as Be, y as me, aD as fe, au as ve, av as he, at as Pe, ac as xe, a as Ue, j as Ee, aw as ye, am as be, R as De, as as Ae, aq as Le, aB as ke, ar as Ie, az as Me, ay as Re, ax as Ne, aC as Oe, p as Fe, m as Ge, C as Te, aa as Ve, Y as je, E as qe, n as He, a8 as _e, aA as Ke, z as Qe, q as We, t as ze, l as Ye, o as Je, ab as Xe, Z as Ze, k as $e, B as as, r as es, $ as ss, a0 as os, ao as rs, ae as ts, ai as is, ag as gs, af as ns, ah as ls, ad as us, a1 as ds, a2 as cs, N as ps, S as ws, P as Ss, s as Cs, V as Bs, al as ms, Q as fs, u as vs, _ as hs, aF as Ps, aG as xs, aH as Us, aI as Es, v as ys } from "./chunks/apiUtils-
|
|
11
|
-
import { u as Ds, b as As, a as Ls } from "./chunks/codeStore-
|
|
12
|
-
import { u as Is } from "./chunks/popupStore-
|
|
13
|
-
import { u as Rs } from "./chunks/favoriteStore-
|
|
9
|
+
import { E as Aa, P as La, a as ka, b as Ia, c as Ma, V as Ra } from "./chunks/ViewContainer-DxhY26m3.js";
|
|
10
|
+
import { A as Oa, T as Fa, h as Ga, d as Ta, i as Va, e as ja, f as qa, I as Ha, K as _a, G as Ka, H as Qa, L as Wa, J as za, F as Ya, c as Ja, b as Xa, O as Za, U as $a, ak as ae, a9 as ee, x as se, w as oe, X as re, aj as te, M as ie, a5 as ge, D as ne, a3 as le, a4 as ue, an as de, g as ce, W as pe, ap as we, a6 as Se, a7 as Ce, aE as Be, y as me, aD as fe, au as ve, av as he, at as Pe, ac as xe, a as Ue, j as Ee, aw as ye, am as be, R as De, as as Ae, aq as Le, aB as ke, ar as Ie, az as Me, ay as Re, ax as Ne, aC as Oe, p as Fe, m as Ge, C as Te, aa as Ve, Y as je, E as qe, n as He, a8 as _e, aA as Ke, z as Qe, q as We, t as ze, l as Ye, o as Je, ab as Xe, Z as Ze, k as $e, B as as, r as es, $ as ss, a0 as os, ao as rs, ae as ts, ai as is, ag as gs, af as ns, ah as ls, ad as us, a1 as ds, a2 as cs, N as ps, S as ws, P as Ss, s as Cs, V as Bs, al as ms, Q as fs, u as vs, _ as hs, aF as Ps, aG as xs, aH as Us, aI as Es, v as ys } from "./chunks/apiUtils-BRaXRbjE.js";
|
|
11
|
+
import { u as Ds, b as As, a as Ls } from "./chunks/codeStore-kuUEfWSS.js";
|
|
12
|
+
import { u as Is } from "./chunks/popupStore-axohgTV-.js";
|
|
13
|
+
import { u as Rs } from "./chunks/favoriteStore-D40XfOmq.js";
|
|
14
14
|
import { A as Os, u as Fs } from "./chunks/AuthContext-Ei2P-z4d.js";
|
|
15
|
-
import { C as Ts, c as Vs, a as js, d as qs, b as Hs, u as _s, e as Ks, g as Qs, f as Ws } from "./chunks/usePopup-
|
|
15
|
+
import { C as Ts, c as Vs, a as js, d as qs, b as Hs, u as _s, e as Ks, g as Qs, f as Ws } from "./chunks/usePopup-Dftb7Bbl.js";
|
|
16
16
|
import { S as Ys, u as Js } from "./chunks/ScreenProtectContext-3my4PHFa.js";
|
|
17
|
-
import { S as Zs, a as $s, d as ao, e as eo, u as so, b as oo, c as ro } from "./chunks/SearchBoxContext-
|
|
17
|
+
import { S as Zs, a as $s, d as ao, e as eo, u as so, b as oo, c as ro } from "./chunks/SearchBoxContext-C2ECWG9l.js";
|
|
18
18
|
export {
|
|
19
19
|
Oa as ApiError,
|
|
20
20
|
Os as AuthProvider,
|
package/dist/provider/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/usePopup-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/usePopup-DYnRe9Th.cjs"),r=require("../chunks/AuthContext-CXng9fj0.cjs"),u=require("../chunks/ScreenProtectContext-CVuXrJm6.cjs"),o=require("../chunks/SearchBoxContext-aMXi2JmO.cjs");exports.CommonCodeProvider=e.CommonCodeProvider;exports.useCodeColor=e.useCodeColor;exports.useCodeList=e.useCodeList;exports.useCodeListByOption=e.useCodeListByOption;exports.useCodeName=e.useCodeName;exports.useCommonCode=e.useCommonCode;exports.useGridLookup=e.useGridLookup;exports.usePopup=e.usePopup;exports.usePopupContext=e.usePopupContext;exports.AuthProvider=r.AuthProvider;exports.useAuth=r.useAuth;exports.ScreenProtectProvider=u.ScreenProtectProvider;exports.useLock=u.useLock;exports.SearchBoxProvider=o.SearchBoxProvider;exports.ServiceCodeProvider=o.ServiceCodeProvider;exports.useAllServiceCodes=o.useAllServiceCodes;exports.useLogServiceCodeConfig=o.useLogServiceCodeConfig;exports.useSearchBox=o.useSearchBox;exports.useServiceCode=o.useServiceCode;exports.useServiceCodeValue=o.useServiceCodeValue;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/provider/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as s, c as r, a, d as u, b as d, u as C, e as i, g as t, f as c } from "../chunks/usePopup-
|
|
1
|
+
import { C as s, c as r, a, d as u, b as d, u as C, e as i, g as t, f as c } from "../chunks/usePopup-Dftb7Bbl.js";
|
|
2
2
|
import { A as v, u as S } from "../chunks/AuthContext-Ei2P-z4d.js";
|
|
3
3
|
import { S as P, u as x } from "../chunks/ScreenProtectContext-3my4PHFa.js";
|
|
4
|
-
import { S as n, a as L, d as h, e as l, u as A, b as g, c as B } from "../chunks/SearchBoxContext-
|
|
4
|
+
import { S as n, a as L, d as h, e as l, u as A, b as g, c as B } from "../chunks/SearchBoxContext-C2ECWG9l.js";
|
|
5
5
|
export {
|
|
6
6
|
v as AuthProvider,
|
|
7
7
|
s as CommonCodeProvider,
|
package/dist/stores/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../chunks/codeStore-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../chunks/codeStore-WWRT65Zk.cjs"),e=require("../chunks/apiUtils-DL43X2ta.cjs"),o=require("../chunks/popupStore-DKpp0bmC.cjs"),u=require("../chunks/favoriteStore-DdGoghEn.cjs"),s=()=>t.useCodeStore.getState(),r=()=>o.usePopupStore.getState(),S=()=>e.useUserStore.getState(),n=()=>u.useFavoriteStore.getState(),i=()=>e.useMenuModelStore.getState(),a=()=>e.useMenuViewStore.getState();exports.useCodeStore=t.useCodeStore;exports.useColorStore=t.useColorStore;exports.useOptionStore=t.useOptionStore;exports.useLoadingStore=e.useLoadingStore;exports.useMenuModelStore=e.useMenuModelStore;exports.useMenuViewStore=e.useMenuViewStore;exports.useUserStore=e.useUserStore;exports.usePopupStore=o.usePopupStore;exports.useFavoriteStore=u.useFavoriteStore;exports.useCode=s;exports.useFavorite=n;exports.useMenuModel=i;exports.useMenuView=a;exports.usePopupState=r;exports.useUser=S;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/stores/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as e } from "../chunks/codeStore-
|
|
2
|
-
import { b as x, a as C } from "../chunks/codeStore-
|
|
3
|
-
import { aI as t, aG as o, aH as s } from "../chunks/apiUtils-
|
|
4
|
-
import { aF as v } from "../chunks/apiUtils-
|
|
5
|
-
import { u as r } from "../chunks/popupStore-
|
|
6
|
-
import { u as a } from "../chunks/favoriteStore-
|
|
1
|
+
import { u as e } from "../chunks/codeStore-kuUEfWSS.js";
|
|
2
|
+
import { b as x, a as C } from "../chunks/codeStore-kuUEfWSS.js";
|
|
3
|
+
import { aI as t, aG as o, aH as s } from "../chunks/apiUtils-BRaXRbjE.js";
|
|
4
|
+
import { aF as v } from "../chunks/apiUtils-BRaXRbjE.js";
|
|
5
|
+
import { u as r } from "../chunks/popupStore-axohgTV-.js";
|
|
6
|
+
import { u as a } from "../chunks/favoriteStore-D40XfOmq.js";
|
|
7
7
|
const i = () => e.getState(), m = () => r.getState(), g = () => t.getState(), c = () => a.getState(), f = () => o.getState(), M = () => s.getState();
|
|
8
8
|
export {
|
|
9
9
|
i as useCode,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonUtils.d.ts","sourceRoot":"","sources":["../../src/utils/commonUtils.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,iBAAiB,a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