@bwg-ui/core 1.2.3 → 1.2.4
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/{common-components-DkwfRJ8L.js → common-components-6bDxIO7h.js} +1352 -1357
- package/dist/chunks/{common-components-CP6KnETR.cjs → common-components-Bhr_MU0K.cjs} +14 -14
- package/dist/chunks/{core-DsxlJoYO.js → core-B5OXmMfR.js} +1 -1
- package/dist/chunks/{core-CUliiFZR.cjs → core-MOICJvq5.cjs} +1 -1
- package/dist/chunks/{enc-base64-CGTq_KeC.cjs → enc-base64-8MLFBYmR.cjs} +1 -1
- package/dist/chunks/{enc-base64-Bo3i9w-X.js → enc-base64-D-UXiasf.js} +2 -2
- package/dist/chunks/{sha256-xzzogVHB.js → sha256-CX4t6ExL.js} +2 -2
- package/dist/chunks/{sha256-BP9QK9Gf.cjs → sha256-CpH38gS4.cjs} +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts +2 -2
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP02.d.ts +2 -2
- package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +3 -0
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -0
- package/dist/components/popup/SearchOrganizationP02.d.ts +3 -0
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -0
- package/dist/components/popup/index.d.ts +5 -0
- package/dist/components/popup/index.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as I, c as B } from "./common-components-
|
|
1
|
+
import { b as I, c as B } from "./common-components-6bDxIO7h.js";
|
|
2
2
|
function W(y) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + y + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./common-components-
|
|
1
|
+
"use strict";const p=require("./common-components-Bhr_MU0K.cjs");function H(v){throw new Error('Could not dynamically require "'+v+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var y={exports:{}};const I={},W=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),E=p.getAugmentedNamespace(W);var O=y.exports,C;function P(){return C||(C=1,(function(v,T){(function(g,c){v.exports=c()})(O,function(){var g=g||(function(c,S){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof p.commonjsGlobal<"u"&&p.commonjsGlobal.crypto&&(s=p.commonjsGlobal.crypto),!s&&typeof H=="function")try{s=E}catch{}var R=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},z=Object.create||(function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}})(),l={},d=l.lib={},f=d.Base=(function(){return{extend:function(t){var r=z(this);return t&&r.mixIn(t),(!r.hasOwnProperty("init")||this.init===r.init)&&(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),u=d.WordArray=f.extend({init:function(t,r){t=this.words=t||[],r!=S?this.sigBytes=r:this.sigBytes=t.length*4},toString:function(t){return(t||q).stringify(this)},concat:function(t){var r=this.words,e=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var w=e[o>>>2]>>>24-o%4*8&255;r[n+o>>>2]|=w<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)r[n+a>>>2]=e[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=c.ceil(r/4)},clone:function(){var t=f.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var r=[],e=0;e<t;e+=4)r.push(R());return new u.init(r,t)}}),m=l.enc={},q=m.Hex={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((o&15).toString(16))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n+=2)e[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new u.init(e,r/2)}},_=m.Latin1={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n++)e[n>>>2]|=(t.charCodeAt(n)&255)<<24-n%4*8;return new u.init(e,r)}},k=m.Utf8={stringify:function(t){try{return decodeURIComponent(escape(_.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return _.parse(unescape(encodeURIComponent(t)))}},x=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=k.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var r,e=this._data,n=e.words,i=e.sigBytes,o=this.blockSize,w=o*4,a=i/w;t?a=c.ceil(a):a=c.max((a|0)-this._minBufferSize,0);var h=a*o,b=c.min(h*4,i);if(h){for(var B=0;B<h;B+=o)this._doProcessBlock(n,B);r=n.splice(0,h),e.sigBytes-=b}return new u.init(r,b)},clone:function(){var t=f.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});d.Hasher=x.extend({cfg:f.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){x.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var r=this._doFinalize();return r},blockSize:16,_createHelper:function(t){return function(r,e){return new t.init(e).finalize(r)}},_createHmacHelper:function(t){return function(r,e){return new j.HMAC.init(t,e).finalize(r)}}});var j=l.algo={};return l})(Math);return g})})(y)),y.exports}exports.requireCore=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const A=require("./common-components-
|
|
1
|
+
"use strict";const A=require("./common-components-Bhr_MU0K.cjs"),b=require("./core-MOICJvq5.cjs");function O(u,g){for(var c=0;c<g.length;c++){const a=g[c];if(typeof a!="string"&&!Array.isArray(a)){for(const f in a)if(f!=="default"&&!(f in u)){const i=Object.getOwnPropertyDescriptor(a,f);i&&Object.defineProperty(u,f,i.get?i:{enumerable:!0,get:()=>a[f]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}},q=h.exports,B;function E(){return B||(B=1,(function(u,g){(function(c,a){u.exports=a(b.requireCore())})(q,function(c){return(function(){var a=c,f=a.lib,i=f.WordArray,C=a.enc;C.Base64={stringify:function(t){var s=t.words,o=t.sigBytes,n=this._map;t.clamp();for(var e=[],r=0;r<o;r+=3)for(var v=s[r>>>2]>>>24-r%4*8&255,l=s[r+1>>>2]>>>24-(r+1)%4*8&255,d=s[r+2>>>2]>>>24-(r+2)%4*8&255,y=v<<16|l<<8|d,p=0;p<4&&r+p*.75<o;p++)e.push(n.charAt(y>>>6*(3-p)&63));var m=n.charAt(64);if(m)for(;e.length%4;)e.push(m);return e.join("")},parse:function(t){var s=t.length,o=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var e=0;e<o.length;e++)n[o.charCodeAt(e)]=e}var r=o.charAt(64);if(r){var v=t.indexOf(r);v!==-1&&(s=v)}return _(t,s,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(t,s,o){for(var n=[],e=0,r=0;r<s;r++)if(r%4){var v=o[t.charCodeAt(r-1)]<<r%4*2,l=o[t.charCodeAt(r)]>>>6-r%4*2,d=v|l;n[e>>>2]|=d<<24-e%4*8,e++}return i.create(n,e)}})(),c.enc.Base64})})(h)),h.exports}var x=E();const w=A.getDefaultExportFromCjs(x),M=O({__proto__:null,default:w},[x]);exports.encBase64=M;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as A } from "./common-components-
|
|
2
|
-
import { r as b } from "./core-
|
|
1
|
+
import { g as A } from "./common-components-6bDxIO7h.js";
|
|
2
|
+
import { r as b } from "./core-B5OXmMfR.js";
|
|
3
3
|
function O(p, g) {
|
|
4
4
|
for (var f = 0; f < g.length; f++) {
|
|
5
5
|
const a = g[f];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as N } from "./common-components-
|
|
2
|
-
import { r as R } from "./core-
|
|
1
|
+
import { g as N } from "./common-components-6bDxIO7h.js";
|
|
2
|
+
import { r as R } from "./core-B5OXmMfR.js";
|
|
3
3
|
function T(p, A) {
|
|
4
4
|
for (var c = 0; c < A.length; c++) {
|
|
5
5
|
const t = A[c];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const N=require("./common-components-
|
|
1
|
+
"use strict";const N=require("./common-components-Bhr_MU0K.cjs"),R=require("./core-MOICJvq5.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,O=h.WordArray,H=h.Hasher,x=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=x.SHA256=H.extend({_doReset:function(){this._hash=new O.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 C=L();const G=N.getDefaultExportFromCjs(C),I=T({__proto__:null,default:G},[C]);exports.sha256=I;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/common-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/common-components-Bhr_MU0K.cjs"),o=require("../../utils/index.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.BwgPagination=e.BwgPagination;exports.BwgPopup=e.BwgPopup;exports.BwgRow=e.BwgRow;exports.BwgSpace=e.BwgSpace;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.realFormat=o.realFormat;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as s, e as o, f as r, B as g, h as B, i as w, j as t, k as i, l as n, m as l, n as d, o as p, a as C, p as f, q as u, r as S, s as c, C as m, t as x, G, Q as v, u as P, S as T, v as b } from "../../chunks/common-components-
|
|
1
|
+
import { d as s, e as o, f as r, B as g, h as B, i as w, j as t, k as i, l as n, m as l, n as d, o as p, a as C, p as f, q as u, r as S, s as c, C as m, t as x, G, Q as v, u as P, S as T, v as b } from "../../chunks/common-components-6bDxIO7h.js";
|
|
2
2
|
import { realFormat as k } from "../../utils/index.js";
|
|
3
3
|
export {
|
|
4
4
|
s as BwgButtonGroup,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../chunks/common-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../chunks/common-components-Bhr_MU0K.cjs"),n=()=>e.jsx(o.BwgSpace,{children:"BwgComponentGuide"}),r=()=>e.jsx(o.BwgSpace,{children:"BwgDeveloperGuide"});exports.BwgComponentGuide=n;exports.BwgDeveloperGuide=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { a as o } from "../../chunks/common-components-
|
|
2
|
+
import { a as o } from "../../chunks/common-components-6bDxIO7h.js";
|
|
3
3
|
const t = () => /* @__PURE__ */ e(o, { children: "BwgComponentGuide" }), i = () => /* @__PURE__ */ e(o, { children: "BwgDeveloperGuide" });
|
|
4
4
|
export {
|
|
5
5
|
t as BwgComponentGuide,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),F=require("../../provider/index.cjs"),B=require("react-router-dom"),_=require("../../chunks/common-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),F=require("../../provider/index.cjs"),B=require("react-router-dom"),_=require("../../chunks/common-components-Bhr_MU0K.cjs"),i=require("antd"),d=require("react"),N=require("../../stores/index.cjs"),v=require("@ant-design/icons"),I=require("../../utils/index.cjs"),R=require("@dnd-kit/core"),se=require("@dnd-kit/modifiers"),V=require("@dnd-kit/sortable");var $=typeof document<"u"?document.currentScript:null;function re(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}return t.default=n,Object.freeze(t)}const U=re(v),q="bwg-dot-line-wave-v4";function oe(){if(typeof document>"u"||document.getElementById(q))return;const n=document.createElement("style");n.id=q,n.textContent=`
|
|
2
2
|
.bwg-dotline {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as b, jsx as e, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import { ServiceCodeProvider as de, CommonCodeProvider as ce, ScreenProtectProvider as ue, useLock as me, SearchBoxProvider as pe } from "../../provider/index.js";
|
|
3
3
|
import { Routes as he, Route as _, Navigate as ge, useNavigate as fe } from "react-router-dom";
|
|
4
|
-
import { G as be, B as ye, Q as Ce } from "../../chunks/common-components-
|
|
4
|
+
import { G as be, B as ye, Q as Ce } from "../../chunks/common-components-6bDxIO7h.js";
|
|
5
5
|
import { Spin as W, Layout as A, ColorPicker as ve, Button as x, Popover as we, Avatar as xe, Tabs as ke, Tooltip as z, AutoComplete as Ne, Input as Ie, Segmented as Se, Menu as Q, Result as ne, Space as Te, Typography as Le, Empty as U } from "antd";
|
|
6
6
|
import { useEffect as B, useState as S, useRef as $, useMemo as V, useCallback as M, createElement as re, memo as Z, cloneElement as Pe, Component as Me, Suspense as oe, lazy as Be } from "react";
|
|
7
7
|
import { useUserStore as Ee, useMenuViewStore as I, useMenuModelStore as De, useFavoriteStore as Fe, usePopupStore as se } from "../../stores/index.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const SearchDepartmentP01: ({ popup }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default SearchDepartmentP01;
|
|
3
3
|
//# sourceMappingURL=SearchDepartmentP01.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchDepartmentP01.d.ts","sourceRoot":"","sources":["../../../src/components/popup/SearchDepartmentP01.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchDepartmentP01.d.ts","sourceRoot":"","sources":["../../../src/components/popup/SearchDepartmentP01.tsx"],"names":[],"mappings":"AA4JA,QAAA,MAAM,mBAAmB,GAAI,WAAW,GAAG,4CAmV1C,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const SearchDepartmentP02: ({ popup }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default SearchDepartmentP02;
|
|
3
3
|
//# sourceMappingURL=SearchDepartmentP02.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchDepartmentP02.d.ts","sourceRoot":"","sources":["../../../src/components/popup/SearchDepartmentP02.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchDepartmentP02.d.ts","sourceRoot":"","sources":["../../../src/components/popup/SearchDepartmentP02.tsx"],"names":[],"mappings":"AA4JA,QAAA,MAAM,mBAAmB,GAAI,WAAW,GAAG,4CAqiB1C,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchOrganizationP01.d.ts","sourceRoot":"","sources":["../../../src/components/popup/SearchOrganizationP01.tsx"],"names":[],"mappings":"AAmDE,QAAA,MAAM,qBAAqB,GAAI,WAAW,GAAG,4CA0kB5C,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchOrganizationP02.d.ts","sourceRoot":"","sources":["../../../src/components/popup/SearchOrganizationP02.tsx"],"names":[],"mappings":"AAkDE,QAAA,MAAM,qBAAqB,GAAI,WAAW,GAAG,4CA6qB5C,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as SearchDepartmentP01 } from './SearchDepartmentP01';
|
|
2
|
+
export { default as SearchDepartmentP02 } from './SearchDepartmentP02';
|
|
3
|
+
export { default as SearchOrganizationP01 } from './SearchOrganizationP01';
|
|
4
|
+
export { default as SearchOrganizationP02 } from './SearchOrganizationP02';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils/index.cjs"),t=require("./stores/index.cjs"),o=require("./chunks/common-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils/index.cjs"),t=require("./stores/index.cjs"),o=require("./chunks/common-components-Bhr_MU0K.cjs"),r=require("./components/core/index.cjs"),s=require("./components/layout/index.cjs"),i=require("./provider/index.cjs");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.apiUtils=e.apiUtils;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.bwgUtils=e.bwgUtils;exports.callService=e.callService;exports.callService_SYSCD=e.callService_SYSCD;exports.clamp=e.clamp;exports.clearSessionStorage=e.clearSessionStorage;exports.closeAllMessages=e.closeAllMessages;exports.closeMessage=e.closeMessage;exports.closeNotification=e.closeNotification;exports.commonUtils=e.commonUtils;exports.configureEnvUtils=e.configureEnvUtils;exports.copyToClipboard=e.copyToClipboard;exports.debounce=e.debounce;exports.deleteCookie=e.deleteCookie;exports.destroyNotifications=e.destroyNotifications;exports.downloadByFileKey=e.downloadByFileKey;exports.downloadFile=e.downloadFile;exports.duplicates=e.duplicates;exports.encryptSha256=e.encryptSha256;exports.envUtils=e.envUtils;exports.fileUtils=e.fileUtils;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.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.messageUtils=e.messageUtils;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.notificationUtils=e.notificationUtils;exports.padLeft=e.padLeft;exports.padRight=e.padRight;exports.random=e.random;exports.realFormat=e.realFormat;exports.removeSessionStorage=e.removeSessionStorage;exports.round=e.round;exports.serviceUtils=e.serviceUtils;exports.setClientIp=e.setClientIp;exports.setCookie=e.setCookie;exports.setServiceCodeOverrides=e.setServiceCodeOverrides;exports.setSessionStorage=e.setSessionStorage;exports.showApiError=e.showApiError;exports.showDuplicateError=e.showDuplicateError;exports.showError=e.showError;exports.showInfo=e.showInfo;exports.showLoading=e.showLoading;exports.showRequiredError=e.showRequiredError;exports.showSaveError=e.showSaveError;exports.showSaveSuccess=e.showSaveSuccess;exports.showSuccess=e.showSuccess;exports.showWarning=e.showWarning;exports.throttle=e.throttle;exports.toCamelCase=e.toCamelCase;exports.userUtils=e.userUtils;exports.verifyClientIp=e.verifyClientIp;exports.useCode=t.useCode;exports.useCodeStore=t.useCodeStore;exports.useColorStore=t.useColorStore;exports.useFavorite=t.useFavorite;exports.useFavoriteStore=t.useFavoriteStore;exports.useLoadingStore=t.useLoadingStore;exports.useMenuModel=t.useMenuModel;exports.useMenuModelStore=t.useMenuModelStore;exports.useMenuView=t.useMenuView;exports.useMenuViewStore=t.useMenuViewStore;exports.useOptionStore=t.useOptionStore;exports.usePopupLoadingStore=t.usePopupLoadingStore;exports.usePopupState=t.usePopupState;exports.usePopupStore=t.usePopupStore;exports.useUser=t.useUser;exports.useUserStore=t.useUserStore;exports.BwgButtonGroup=o.BwgButtonGroup;exports.BwgCmptArea=o.BwgCmptArea;exports.BwgCol=o.BwgCol;exports.BwgConfigProvider=o.BwgConfigProvider;exports.BwgDetail=o.BwgDetail;exports.BwgDrawer=o.BwgDrawer;exports.BwgEditor=o.BwgEditor;exports.BwgGrid=o.BwgGrid;exports.BwgInfoArea=o.BwgInfoArea;exports.BwgPagination=o.BwgPagination;exports.BwgPopup=o.BwgPopup;exports.BwgRow=o.BwgRow;exports.BwgSpace=o.BwgSpace;exports.BwgTable=o.BwgTable;exports.BwgTabs=o.BwgTabs;exports.BwgTitleBox=o.BwgTitleBox;exports.BwgView=o.BwgView;exports.ContentBox=o.ContentBox;exports.ContentLayOut=o.ContentLayOut;exports.GlobalConfigProvider=o.GlobalConfigProvider;exports.QuickServiceToggle=o.QuickServiceToggle;exports.SSOHandler=o.SSOHandler;exports.SearchBox=o.SearchBox;exports.createBwgGridRenderer=o.createBwgGridRenderer;exports.BwgButton=r.BwgButton;exports.BwgCheck=r.BwgCheck;exports.BwgCheckList=r.BwgCheckList;exports.BwgDatePicker=r.BwgDatePicker;exports.BwgDownload=r.BwgDownload;exports.BwgForm=r.BwgForm;exports.BwgFormItem=r.BwgFormItem;exports.BwgInput=r.BwgInput;exports.BwgLargeUploader=r.BwgLargeUploader;exports.BwgMaskedInput=r.BwgMaskedInput;exports.BwgMaskedPicker=r.BwgMaskedPicker;exports.BwgMultiSelect=r.BwgMultiSelect;exports.BwgNumber=r.BwgNumber;exports.BwgRadio=r.BwgRadio;exports.BwgRangePicker=r.BwgRangePicker;exports.BwgSearch=r.BwgSearch;exports.BwgSelect=r.BwgSelect;exports.BwgSwitch=r.BwgSwitch;exports.BwgTextArea=r.BwgTextArea;exports.BwgUploader=r.BwgUploader;exports.AppWrapper=s.AppWrapper;exports.BwgPortal01=s.BwgPortal01;exports.BwgPortal02=s.BwgPortal02;exports.ConfigurableContent=s.ConfigurableContent;exports.ConfigurableHeader=s.ConfigurableHeader;exports.ConfigurableMenuTab=s.ConfigurableMenuTab;exports.ConfigurableSidebar=s.ConfigurableSidebar;exports.ContentContainer=s.ContentContainer;exports.LandingContainer=s.LandingContainer;exports.LoadingContainer=s.LoadingContainer;exports.PopupContainer=s.PopupContainer;exports.ProtectWrapper=s.ProtectWrapper;exports.AuthProvider=i.AuthProvider;exports.CommonCodeProvider=i.CommonCodeProvider;exports.ScreenProtectProvider=i.ScreenProtectProvider;exports.SearchBoxProvider=i.SearchBoxProvider;exports.ServiceCodeProvider=i.ServiceCodeProvider;exports.useAllServiceCodes=i.useAllServiceCodes;exports.useAuth=i.useAuth;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.useLock=i.useLock;exports.useLogServiceCodeConfig=i.useLogServiceCodeConfig;exports.usePopup=i.usePopup;exports.usePopupContext=i.usePopupContext;exports.useSearchBox=i.useSearchBox;exports.useServiceCode=i.useServiceCode;exports.useServiceCodeValue=i.useServiceCodeValue;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiError as r, THEME_COOKIE_NAME as t, apiDelete as i, apiGet as s, apiPatch as a, apiPost as n, apiPut as g, apiUtils as l, arrAverage as u, arrCount as d, arrMax as p, arrMin as c, arrReverse as C, arrSum as w, arrUnique as S, bwgUtils as B, callService as m, callService_SYSCD as v, clamp as f, clearSessionStorage as h, closeAllMessages as P, closeMessage as U, closeNotification as E, commonUtils as D, configureEnvUtils as b, copyToClipboard as A, debounce as L, deleteCookie as M, destroyNotifications as y, downloadByFileKey as I, downloadFile as k, duplicates as x, encryptSha256 as R, envUtils as N, fileUtils as T, generateRandomColor as O, generateRandomString as F, generateUID as G, getAllServiceCodes as V, getClientIp as W, getCookie as q, getCrprCd as H, getCurrentDate as _, getCurrentDateString as j, getDepartmentInfo as K, getDeviceType as Q, getDisplayName as Y, getDprtCd as z, getDprtNm as J, getEmplNo as X, getEnvCode as Z, getPermissionService as $, getRoleList as ee, getServiceCode as oe, getSessionStorage as re, getUserDvsn as te, getUserId as ie, getUserInfo as se, getUserNm as ae, hasAllRoles as ne, hasAnyRole as ge, hasRole as le, hasUserInfo as ue, isArray as de, isBoolean as pe, isDesktop as ce, isDev as Ce, isEmpty as we, isEmptyArray as Se, isFunction as Be, isLocal as me, isLoggedIn as ve, isMobile as fe, isNull as he, isNullOrUndefined as Pe, isNumber as Ue, isObject as Ee, isProd as De, isSafeEmpty as be, isString as Ae, isTablet as Le, isUndefined as Me, isValidEmail as ye, isValidUrl as Ie, logServiceCodeConfig as ke, messageUtils as xe, notiBwgError as Re, notiError as Ne, notiInfo as Te, notiSuccess as Oe, notiWarning as Fe, notificationService as Ge, notificationUtils as Ve, padLeft as We, padRight as qe, random as He, realFormat as _e, removeSessionStorage as je, round as Ke, serviceUtils as Qe, setClientIp as Ye, setCookie as ze, setServiceCodeOverrides as Je, setSessionStorage as Xe, showApiError as Ze, showDuplicateError as $e, showError as eo, showInfo as oo, showLoading as ro, showRequiredError as to, showSaveError as io, showSaveSuccess as so, showSuccess as ao, showWarning as no, throttle as go, toCamelCase as lo, userUtils as uo, verifyClientIp as po } from "./utils/index.js";
|
|
2
2
|
import { useCode as Co, useCodeStore as wo, useColorStore as So, useFavorite as Bo, useFavoriteStore as mo, useLoadingStore as vo, useMenuModel as fo, useMenuModelStore as ho, useMenuView as Po, useMenuViewStore as Uo, useOptionStore as Eo, usePopupLoadingStore as Do, usePopupState as bo, usePopupStore as Ao, useUser as Lo, useUserStore as Mo } from "./stores/index.js";
|
|
3
|
-
import { d as Io, e as ko, f as xo, B as Ro, h as No, i as To, j as Oo, k as Fo, l as Go, m as Vo, n as Wo, o as qo, a as Ho, p as _o, q as jo, r as Ko, s as Qo, C as Yo, t as zo, G as Jo, Q as Xo, u as Zo, S as $o, v as er } from "./chunks/common-components-
|
|
3
|
+
import { d as Io, e as ko, f as xo, B as Ro, h as No, i as To, j as Oo, k as Fo, l as Go, m as Vo, n as Wo, o as qo, a as Ho, p as _o, q as jo, r as Ko, s as Qo, C as Yo, t as zo, G as Jo, Q as Xo, u as Zo, S as $o, v as er } from "./chunks/common-components-6bDxIO7h.js";
|
|
4
4
|
import { BwgButton as rr, BwgCheck as tr, BwgCheckList as ir, BwgDatePicker as sr, BwgDownload as ar, BwgForm as nr, BwgFormItem as gr, BwgInput as lr, BwgLargeUploader as ur, BwgMaskedInput as dr, BwgMaskedPicker as pr, BwgMultiSelect as cr, BwgNumber as Cr, BwgRadio as wr, BwgRangePicker as Sr, BwgSearch as Br, BwgSelect as mr, BwgSwitch as vr, BwgTextArea as fr, BwgUploader as hr } from "./components/core/index.js";
|
|
5
5
|
import { AppWrapper as Ur, BwgPortal01 as Er, BwgPortal02 as Dr, ConfigurableContent as br, ConfigurableHeader as Ar, ConfigurableMenuTab as Lr, ConfigurableSidebar as Mr, ContentContainer as yr, LandingContainer as Ir, LoadingContainer as kr, PopupContainer as xr, ProtectWrapper as Rr } from "./components/layout/index.js";
|
|
6
6
|
import { AuthProvider as Tr, CommonCodeProvider as Or, ScreenProtectProvider as Fr, SearchBoxProvider as Gr, ServiceCodeProvider as Vr, useAllServiceCodes as Wr, useAuth as qr, useCodeColor as Hr, useCodeList as _r, useCodeListByOption as jr, useCodeName as Kr, useCommonCode as Qr, useGridLookup as Yr, useLock as zr, useLogServiceCodeConfig as Jr, usePopup as Xr, usePopupContext as Zr, useSearchBox as $r, useServiceCode as et, useServiceCodeValue as ot } from "./provider/index.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M11.9998 19.9993V20.9993C11.9998 21.3932 12.0774 21.7833 12.2282 22.1473C12.3789 22.5112 12.5999 22.8419 12.8785 23.1205C13.157 23.399 13.4877 23.62 13.8517 23.7708C14.2156 23.9215 14.6057 23.9991 14.9997 23.9991C15.3936 23.9991 15.7837 23.9215 16.1477 23.7708C16.5116 23.62 16.8423 23.399 17.1209 23.1205C17.3994 22.8419 17.6204 22.5112 17.7712 22.1473C17.9219 21.7833 17.9995 21.3932 17.9995 20.9993V19.9993M20.9994 11.9997C20.9994 14.9996 22.9993 19.9993 22.9993 19.9993H7.00006C7.00006 19.9993 8.99996 15.9995 8.99996 11.9997C8.99996 8.73187 11.7318 6 14.9997 6C18.2675 6 20.9994 8.73187 20.9994 11.9997Z" stroke="#485299" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11.9998 19.9993V20.9993C11.9998 21.3932 12.0774 21.7833 12.2282 22.1473C12.3789 22.5112 12.5999 22.8419 12.8785 23.1205C13.157 23.399 13.4877 23.62 13.8517 23.7708C14.2156 23.9215 14.6057 23.9991 14.9997 23.9991C15.3936 23.9991 15.7837 23.9215 16.1477 23.7708C16.5116 23.62 16.8423 23.399 17.1209 23.1205C17.3994 22.8419 17.6204 22.5112 17.7712 22.1473C17.9219 21.7833 17.9995 21.3932 17.9995 20.9993V19.9993M20.9994 11.9997C20.9994 14.9996 22.9993 19.9993 22.9993 19.9993H7.00006C7.00006 19.9993 8.99996 15.9995 8.99996 11.9997C8.99996 8.73187 11.7318 6 14.9997 6C18.2675 6 20.9994 8.73187 20.9994 11.9997Z" stroke="#485299" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_93_4488)">
|
|
3
|
-
<path d="M18 7H21C22.1046 7 23 7.89543 23 9V21C23 22.1046 22.1046 23 21 23H18M11 11L7 15M7 15L11 19M7 15L19 15" stroke="#485299" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
</g>
|
|
5
|
-
<defs>
|
|
6
|
-
<clipPath id="clip0_93_4488">
|
|
7
|
-
<rect width="30" height="30" fill="white"/>
|
|
8
|
-
</clipPath>
|
|
9
|
-
</defs>
|
|
10
|
-
</svg>
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_93_4488)">
|
|
3
|
+
<path d="M18 7H21C22.1046 7 23 7.89543 23 9V21C23 22.1046 22.1046 23 21 23H18M11 11L7 15M7 15L11 19M7 15L19 15" stroke="#485299" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_93_4488">
|
|
7
|
+
<rect width="30" height="30" fill="white"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M14 6H16C16.5523 6 17 6.44772 17 7V7.56879C17 7.99659 17.2871 8.36825 17.6822 8.53228C18.0775 8.69638 18.5377 8.63384 18.8403 8.33123L19.2426 7.92891C19.6331 7.53838 20.2663 7.53838 20.6568 7.92891L22.071 9.34312C22.4616 9.73365 22.4615 10.3668 22.071 10.7573L21.6688 11.1596C21.3661 11.4622 21.3036 11.9225 21.4677 12.3177C21.6317 12.7129 22.0034 13 22.4313 13L23 13C23.5523 13 24 13.4477 24 14V16C24 16.5523 23.5523 17 23 17H22.4312C22.0034 17 21.6318 17.2871 21.4677 17.6822C21.3036 18.0775 21.3661 18.5377 21.6688 18.8403L22.071 19.2426C22.4616 19.6331 22.4616 20.2663 22.071 20.6568L20.6568 22.071C20.2663 22.4616 19.6331 22.4616 19.2426 22.071L18.8403 21.6688C18.5377 21.3661 18.0775 21.3036 17.6822 21.4677C17.2871 21.6318 17 22.0034 17 22.4312V23C17 23.5523 16.5523 24 16 24H14C13.4477 24 13 23.5523 13 23V22.4313C13 22.0034 12.7129 21.6317 12.3177 21.4677C11.9225 21.3036 11.4622 21.3661 11.1596 21.6688L10.7573 22.071C10.3668 22.4616 9.73363 22.4616 9.34311 22.071L7.92889 20.6568C7.53837 20.2663 7.53837 19.6331 7.92889 19.2426L8.33123 18.8403C8.63384 18.5377 8.69638 18.0775 8.53228 17.6822C8.36825 17.2871 7.99659 17 7.56879 17H7C6.44772 17 6 16.5523 6 16V14C6 13.4477 6.44772 13 7 13L7.56877 13C7.99658 13 8.36825 12.7129 8.53229 12.3178C8.6964 11.9225 8.63386 11.4623 8.33123 11.1597L7.92891 10.7573C7.53838 10.3668 7.53838 9.73365 7.92891 9.34313L9.34312 7.92891C9.73365 7.53839 10.3668 7.53839 10.7573 7.92891L11.1597 8.33123C11.4623 8.63386 11.9225 8.6964 12.3178 8.53229C12.7129 8.36825 13 7.99658 13 7.56876V7C13 6.44772 13.4477 6 14 6Z" stroke="#485299" stroke-width="1.5"/>
|
|
3
|
-
<path d="M17 15C17 16.1046 16.1046 17 15 17C13.8954 17 13 16.1046 13 15C13 13.8954 13.8954 13 15 13C16.1046 13 17 13.8954 17 15Z" stroke="#485299" stroke-width="1.5"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 6H16C16.5523 6 17 6.44772 17 7V7.56879C17 7.99659 17.2871 8.36825 17.6822 8.53228C18.0775 8.69638 18.5377 8.63384 18.8403 8.33123L19.2426 7.92891C19.6331 7.53838 20.2663 7.53838 20.6568 7.92891L22.071 9.34312C22.4616 9.73365 22.4615 10.3668 22.071 10.7573L21.6688 11.1596C21.3661 11.4622 21.3036 11.9225 21.4677 12.3177C21.6317 12.7129 22.0034 13 22.4313 13L23 13C23.5523 13 24 13.4477 24 14V16C24 16.5523 23.5523 17 23 17H22.4312C22.0034 17 21.6318 17.2871 21.4677 17.6822C21.3036 18.0775 21.3661 18.5377 21.6688 18.8403L22.071 19.2426C22.4616 19.6331 22.4616 20.2663 22.071 20.6568L20.6568 22.071C20.2663 22.4616 19.6331 22.4616 19.2426 22.071L18.8403 21.6688C18.5377 21.3661 18.0775 21.3036 17.6822 21.4677C17.2871 21.6318 17 22.0034 17 22.4312V23C17 23.5523 16.5523 24 16 24H14C13.4477 24 13 23.5523 13 23V22.4313C13 22.0034 12.7129 21.6317 12.3177 21.4677C11.9225 21.3036 11.4622 21.3661 11.1596 21.6688L10.7573 22.071C10.3668 22.4616 9.73363 22.4616 9.34311 22.071L7.92889 20.6568C7.53837 20.2663 7.53837 19.6331 7.92889 19.2426L8.33123 18.8403C8.63384 18.5377 8.69638 18.0775 8.53228 17.6822C8.36825 17.2871 7.99659 17 7.56879 17H7C6.44772 17 6 16.5523 6 16V14C6 13.4477 6.44772 13 7 13L7.56877 13C7.99658 13 8.36825 12.7129 8.53229 12.3178C8.6964 11.9225 8.63386 11.4623 8.33123 11.1597L7.92891 10.7573C7.53838 10.3668 7.53838 9.73365 7.92891 9.34313L9.34312 7.92891C9.73365 7.53839 10.3668 7.53839 10.7573 7.92891L11.1597 8.33123C11.4623 8.63386 11.9225 8.6964 12.3178 8.53229C12.7129 8.36825 13 7.99658 13 7.56876V7C13 6.44772 13.4477 6 14 6Z" stroke="#485299" stroke-width="1.5"/>
|
|
3
|
+
<path d="M17 15C17 16.1046 16.1046 17 15 17C13.8954 17 13 16.1046 13 15C13 13.8954 13.8954 13 15 13C16.1046 13 17 13.8954 17 15Z" stroke="#485299" stroke-width="1.5"/>
|
|
4
|
+
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M6.77771 8.1809C6.37747 8.67607 5.62253 8.67607 5.22229 8.18089L2.98627 5.41454C2.4577 4.7606 2.92314 3.78592 3.76399 3.78592L8.23602 3.78592C9.07687 3.78592 9.5423 4.7606 9.01373 5.41454L6.77771 8.1809Z" fill="#B9B9B9"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.77771 8.1809C6.37747 8.67607 5.62253 8.67607 5.22229 8.18089L2.98627 5.41454C2.4577 4.7606 2.92314 3.78592 3.76399 3.78592L8.23602 3.78592C9.07687 3.78592 9.5423 4.7606 9.01373 5.41454L6.77771 8.1809Z" fill="#B9B9B9"/>
|
|
3
|
+
</svg>
|
package/dist/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("axios"),A=require("dayjs"),ee=require("../chunks/common-components-CP6KnETR.cjs"),T=require("antd"),C=require("../stores/index.cjs"),pe={AUTH_BTNS:"SCMSIGN00202",AUTH_MENU:"SCMSIGN00201",SRCH_CODE:"SCMSIGN00301",SRCH_POPU:"SCMPOPU00101",AUTH_BMRK:"SCMBMRK00101"};let F={};function ye(e){F=e,console.log("🔧 Provider 서비스코드 오버라이드 설정:",e)}function te(e){return F[e]&&F[e].trim()!==""?F[e]:pe[e]}function re(){const e={};for(const t of Object.keys(pe))e[t]=te(t);return e}function Se(){console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");const e=re();for(const[t,r]of Object.entries(e)){const o=F[t]?"Provider 설정":"기본값";console.log(` ${t}: ${r} (${o})`)}}const ve=Object.freeze(Object.defineProperty({__proto__:null,getAllServiceCodes:re,getServiceCode:te,logServiceCodeConfig:Se,setServiceCodeOverrides:ye},Symbol.toStringTag,{value:"Module"})),we=()=>C.useUserStore.getState().user?.crprCd||null,oe=()=>C.useUserStore.getState().user?.userId||null,se=()=>C.useUserStore.getState().user?.userNm||null,Ce=()=>C.useUserStore.getState().user?.userDvsn||null,xe=()=>C.useUserStore.getState().user?.emplNo||null,ne=()=>C.useUserStore.getState().user?.dprtCd||null,ae=()=>C.useUserStore.getState().user?.dprtNm||null,j=()=>C.useUserStore.getState().user?.roleList||null,Me=e=>{const t=j();return t?t.includes(e):!1},$e=e=>{const t=j();return t?e.some(r=>t.includes(r)):!1},be=e=>{const t=j();return t?e.every(r=>t.includes(r)):!1},Te=()=>C.useUserStore.getState().isLoggedIn,_=()=>C.useUserStore.getState().user,Ue=()=>_()!==null,ke=()=>{const e=se(),t=oe();return e||t||null},De=()=>{const e=ae(),t=ne();return e||(t?String(t):null)},Ee=Object.freeze(Object.defineProperty({__proto__:null,getCrprCd:we,getDepartmentInfo:De,getDisplayName:ke,getDprtCd:ne,getDprtNm:ae,getEmplNo:xe,getRoleList:j,getUserDvsn:Ce,getUserId:oe,getUserInfo:_,getUserNm:se,hasAllRoles:be,hasAnyRole:$e,hasRole:Me,hasUserInfo:Ue,isLoggedIn:Te},Symbol.toStringTag,{value:"Module"}));var V={exports:{}},ir=V.exports,fe;function cr(){return fe||(fe=1,(function(e,t){(function(r,o){e.exports=o()})(ir,(function(){return function(r,o,a){r=r||{};var m=o.prototype,p={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function x(y,d,l,i){return m.fromToBase(y,d,l,i)}a.en.relativeTime=p,m.fromToBase=function(y,d,l,i,c){for(var n,s,u,f=l.$locale().relativeTime||p,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=h.length,w=0;w<S;w+=1){var v=h[w];v.d&&(n=i?a(y).diff(l,v.d,!0):l.diff(y,v.d,!0));var $=(r.rounding||Math.round)(Math.abs(n));if(u=n>0,$<=v.r||!v.r){$<=1&&w>0&&(v=h[w-1]);var b=f[v.l];c&&($=c(""+$)),s=typeof b=="string"?b.replace("%d",$):b($,d,v.l,u);break}}if(d)return s;var U=u?f.future:f.past;return typeof U=="function"?U(s):U.replace("%s",s)},m.to=function(y,d){return x(y,d,this,!0)},m.from=function(y,d){return x(y,d,this)};var g=function(y){return y.$u?a.utc():a()};m.toNow=function(y){return this.to(g(this),y)},m.fromNow=function(y){return this.from(g(this),y)}}}))})(V)),V.exports}var ur=cr();const lr=ee.getDefaultExportFromCjs(ur);var B={exports:{}},dr=B.exports,ge;function mr(){return ge||(ge=1,(function(e,t){(function(r,o){e.exports=o()})(dr,(function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,m,p){var x,g=function(i,c,n){n===void 0&&(n={});var s=new Date(i),u=(function(f,h){h===void 0&&(h={});var S=h.timeZoneName||"short",w=f+"|"+S,v=o[w];return v||(v=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:f,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:S}),o[w]=v),v})(c,n);return u.formatToParts(s)},y=function(i,c){for(var n=g(i,c),s=[],u=0;u<n.length;u+=1){var f=n[u],h=f.type,S=f.value,w=r[h];w>=0&&(s[w]=parseInt(S,10))}var v=s[3],$=v===24?0:v,b=s[0]+"-"+s[1]+"-"+s[2]+" "+$+":"+s[4]+":"+s[5]+":000",U=+i;return(p.utc(b).valueOf()-(U-=U%1e3))/6e4},d=m.prototype;d.tz=function(i,c){i===void 0&&(i=x);var n,s=this.utcOffset(),u=this.toDate(),f=u.toLocaleString("en-US",{timeZone:i}),h=Math.round((u-new Date(f))/1e3/60),S=15*-Math.round(u.getTimezoneOffset()/15)-h;if(!Number(S))n=this.utcOffset(0,c);else if(n=p(f,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(S,!0),c){var w=n.utcOffset();n=n.add(s-w,"minute")}return n.$x.$timezone=i,n},d.offsetName=function(i){var c=this.$x.$timezone||p.tz.guess(),n=g(this.valueOf(),c,{timeZoneName:i}).find((function(s){return s.type.toLowerCase()==="timezonename"}));return n&&n.value};var l=d.startOf;d.startOf=function(i,c){if(!this.$x||!this.$x.$timezone)return l.call(this,i,c);var n=p(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(n,i,c).tz(this.$x.$timezone,!0)},p.tz=function(i,c,n){var s=n&&c,u=n||c||x,f=y(+p(),u);if(typeof i!="string")return p(i).tz(u);var h=(function($,b,U){var N=$-60*b*1e3,I=y(N,U);if(b===I)return[N,b];var X=y(N-=60*(I-b)*1e3,U);return I===X?[N,I]:[$-60*Math.min(I,X)*1e3,Math.max(I,X)]})(p.utc(i,s).valueOf(),f,u),S=h[0],w=h[1],v=p(S).utcOffset(w);return v.$x.$timezone=u,v},p.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},p.tz.setDefault=function(i){x=i}}}))})(B)),B.exports}var fr=mr();const gr=ee.getDefaultExportFromCjs(fr);var q={exports:{}},hr=q.exports,he;function pr(){return he||(he=1,(function(e,t){(function(r,o){e.exports=o()})(hr,(function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(m,p,x){var g=p.prototype;x.utc=function(s){var u={date:s,utc:!0,args:arguments};return new p(u)},g.utc=function(s){var u=x(this.toDate(),{locale:this.$L,utc:!0});return s?u.add(this.utcOffset(),r):u},g.local=function(){return x(this.toDate(),{locale:this.$L,utc:!1})};var y=g.parse;g.parse=function(s){s.utc&&(this.$u=!0),this.$utils().u(s.$offset)||(this.$offset=s.$offset),y.call(this,s)};var d=g.init;g.init=function(){if(this.$u){var s=this.$d;this.$y=s.getUTCFullYear(),this.$M=s.getUTCMonth(),this.$D=s.getUTCDate(),this.$W=s.getUTCDay(),this.$H=s.getUTCHours(),this.$m=s.getUTCMinutes(),this.$s=s.getUTCSeconds(),this.$ms=s.getUTCMilliseconds()}else d.call(this)};var l=g.utcOffset;g.utcOffset=function(s,u){var f=this.$utils().u;if(f(s))return this.$u?0:f(this.$offset)?l.call(this):this.$offset;if(typeof s=="string"&&(s=(function(v){v===void 0&&(v="");var $=v.match(o);if(!$)return null;var b=(""+$[0]).match(a)||["-",0,0],U=b[0],N=60*+b[1]+ +b[2];return N===0?0:U==="+"?N:-N})(s),s===null))return this;var h=Math.abs(s)<=16?60*s:s;if(h===0)return this.utc(u);var S=this.clone();if(u)return S.$offset=h,S.$u=!1,S;var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(S=this.local().add(h+w,r)).$offset=h,S.$x.$localOffset=w,S};var i=g.format;g.format=function(s){var u=s||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return i.call(this,u)},g.valueOf=function(){var s=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*s},g.isUTC=function(){return!!this.$u},g.toISOString=function(){return this.toDate().toISOString()},g.toString=function(){return this.toDate().toUTCString()};var c=g.toDate;g.toDate=function(s){return s==="s"&&this.$offset?x(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var n=g.diff;g.diff=function(s,u,f){if(s&&this.$u===s.$u)return n.call(this,s,u,f);var h=this.local(),S=x(s).local();return n.call(h,S,u,f)}}}))})(q)),q.exports}var yr=pr();const Sr=ee.getDefaultExportFromCjs(yr),Ne="ui_theme",Oe=e=>typeof e=="string",_e=e=>typeof e=="number"&&!isNaN(e),Ie=e=>typeof e=="boolean",Pe=e=>typeof e=="function",Le=e=>e!==null&&typeof e=="object",Ae=e=>Array.isArray(e),Re=e=>e===null,Fe=e=>e===void 0,Ye=e=>e==null,je=(e,t)=>{let r=0;return(...o)=>{const a=Date.now();a-r>=t&&(r=a,e(...o))}},He=(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>e(...o),t)}},ze=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Error copying to clipboard:",t),!1}},H=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Ve=()=>H()==="mobile",Be=()=>H()==="tablet",qe=()=>H()==="desktop",We=()=>"#"+Math.floor(Math.random()*16777215).toString(16),z=e=>!e||e.length===0,Ke=e=>[...new Set(e)],Ge=e=>{if(!z(e))return Math.max(...e)},Ze=e=>{if(!z(e))return Math.min(...e)},Je=e=>{if(!z(e))return e.reduce((t,r)=>t+r,0)/e.length},Xe=e=>e.reduce((t,r)=>t+r,0),Qe=(e,t)=>e.filter(t).length,et=e=>[...e].reverse(),tt=e=>{const t=new Set,r=new Set;return e.forEach(o=>{t.has(o)?r.add(o):t.add(o)}),Array.from(r)},rt=(e,t)=>Math.random()*(t-e)+e,ot=(e,t,r)=>Math.min(Math.max(e,t),r),st=(e,t=0)=>Math.round(e*Math.pow(10,t))/Math.pow(10,t),nt=(e,t)=>{try{sessionStorage.setItem(e,JSON.stringify(t))}catch(r){console.error("Error saving to sessionStorage:",r)}},at=(e,t)=>{try{const r=sessionStorage.getItem(e);return r?JSON.parse(r):t||null}catch(r){return console.error("Error reading from sessionStorage:",r),t||null}},it=e=>{try{sessionStorage.removeItem(e)}catch(t){console.error("Error removing from sessionStorage:",t)}},ct=()=>{try{sessionStorage.clear()}catch(e){console.error("Error clearing sessionStorage:",e)}},ut=(e,t,r=30)=>{const o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3),document.cookie=`${e}=${t};expires=${o.toUTCString()};path=/`},lt=e=>{const t=e+"=",r=document.cookie.split(";");for(let o=0;o<r.length;o++){let a=r[o];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},dt=e=>{document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`},ie=e=>typeof e!="string"?!e:e.trim().length===0,mt=(e,t)=>ie(e)?t:e||"",ft=e=>e.replace(/-([a-z])/g,t=>t[1].toUpperCase()),gt=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),ht=e=>{try{return new URL(e),!0}catch{return!1}},pt=(e,t,r=" ")=>e.padStart(t,r),yt=(e,t,r=" ")=>e.padEnd(t,r),ce=(e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")=>{let r="";for(let o=0;o<e;o++)r+=t.charAt(Math.floor(Math.random()*t.length));return r},vr=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),ue=(e=32)=>{const r=vr().replace(/-/g,"");return e>=32?r+ce(e-32,"0123456789abcdef"):r.substring(0,e)};async function St(e){const[{default:t},{default:r}]=await Promise.all([Promise.resolve().then(()=>require("../chunks/sha256-BP9QK9Gf.cjs")).then(o=>o.sha256),Promise.resolve().then(()=>require("../chunks/enc-base64-CGTq_KeC.cjs")).then(o=>o.encBase64)]);return t(e).toString(r)}A.extend(lr);A.extend(Sr);A.extend(gr);A.locale("ko");const vt=()=>A(),wt=(e="YYYY-MM-DD")=>A().format(e),Ct=Object.freeze(Object.defineProperty({__proto__:null,THEME_COOKIE_NAME:Ne,arrAverage:Je,arrCount:Qe,arrMax:Ge,arrMin:Ze,arrReverse:et,arrSum:Xe,arrUnique:Ke,clamp:ot,clearSessionStorage:ct,copyToClipboard:ze,debounce:He,deleteCookie:dt,duplicates:tt,encryptSha256:St,generateRandomColor:We,generateRandomString:ce,generateUID:ue,getCookie:lt,getCurrentDate:vt,getCurrentDateString:wt,getDeviceType:H,getSessionStorage:at,isArray:Ae,isBoolean:Ie,isDesktop:qe,isEmpty:ie,isEmptyArray:z,isFunction:Pe,isMobile:Ve,isNull:Re,isNullOrUndefined:Ye,isNumber:_e,isObject:Le,isSafeEmpty:mt,isString:Oe,isTablet:Be,isUndefined:Fe,isValidEmail:gt,isValidUrl:ht,padLeft:pt,padRight:yt,random:rt,removeSessionStorage:it,round:st,setCookie:ut,setSessionStorage:nt,throttle:je,toCamelCase:ft},Symbol.toStringTag,{value:"Module"})),L=(()=>{try{if((void 0).DEV)return!0}catch{}return!1})();let xt=[],Mt=[];function $t(e){e.devHosts&&(xt=e.devHosts),e.prodHosts&&(Mt=e.prodHosts)}function bt(){if(typeof window<"u"&&window.location)return window.location.hostname}const le=(()=>{const e=bt();return!!(e&&xt.includes(e))})(),de=(()=>{const e=bt();return!!(e&&Mt.includes(e))})();function Tt(){return L?"X":le?"D":de?"P":"X"}const Ut=Object.freeze(Object.defineProperty({__proto__:null,configureEnvUtils:$t,getEnvCode:Tt,isDev:le,isLocal:L,isProd:de},Symbol.toStringTag,{value:"Module"})),k={duration:4.5,placement:"topRight"};class P{constructor(){}static getInstance(){return P.instance||(P.instance=new P),P.instance}showBwgError(t){const{message:r,description:o,duration:a=k.duration,placement:m=k.placement}=t;T.notification.error({message:`${r}`,description:o||"오류가 발생했습니다. 다시 시도해주세요.",duration:a,placement:m,style:{borderLeft:"4px solid #ff4d4f",backgroundColor:"#fff2f0"}})}showSuccess(t,r,o){T.notification.success({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}showInfo(t,r,o){T.notification.info({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}showWarning(t,r,o){T.notification.warning({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}showError(t,r,o){T.notification.error({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}destroy(){T.notification.destroy()}close(t){T.notification.destroy()}}const E=P.getInstance(),K=e=>{E.showBwgError(e)},kt=(e,t,r)=>{E.showSuccess(e,t,r)},G=(e,t,r)=>{E.showInfo(e,t,r)},Z=(e,t,r)=>{E.showWarning(e,t,r)},Dt=(e,t,r)=>{E.showError(e,t,r)},Et=()=>{E.destroy()},Nt=e=>{E.close(e)},Ot=Object.freeze(Object.defineProperty({__proto__:null,closeNotification:Nt,destroyNotifications:Et,notiBwgError:K,notiError:Dt,notiInfo:G,notiSuccess:kt,notiWarning:Z,notificationService:E},Symbol.toStringTag,{value:"Module"}));let D=null;const J=async e=>{if(D===null)if(e===void 0)try{let r=(await Q.get("/api/ip")).data.trim();r=r.replace(/\s+/g,""),D=r}catch(t){console.warn("IP 가져오기 실패:",t),D="unknown"}else D=e},_t=()=>D,It=async()=>(console.log("IP 검증 비활성화됨 (성능 최적화)"),D||"unknown");class M extends Error{constructor(t,r,o,a,m){super(t),this.name="ApiError",this.detailMsg=r,this.response=o,this.msgCd=a,this.errorType=m,Error.captureStackTrace&&Error.captureStackTrace(this,M)}}const W={method:"POST",timeout:3e4,withCredentials:!0,showLoading:!0,isPopup:!1,showError:!0,retryCount:0,retryDelay:1e3},Y=Q.create({timeout:W.timeout,withCredentials:W.withCredentials,headers:{"Content-Type":"application/json; charset=utf-8",Accept:"application/json; charset=utf-8","Apm-Guid":ue()}});Y.interceptors.request.use(e=>{e.showLoading&&!e.isPopup&&C.useLoadingStore.getState().showLoading(),e.showLoading&&e.isPopup&&C.usePopupLoadingStore.getState().showLoading();let t="UNKNOWN";new Date().getTime();try{e.data&&e.data.header?t=e.data.header.trxCd||"UNKNOWN":e.params&&e.params.header&&(t=e.params.header.trxCd||"UNKNOWN")}catch(o){console.warn("trxCd/guid 추출 실패:",o)}e.trxCd=t,e.requestStartTime=Date.now(),console.log(`🚀 API 요청 시작 [거래코드: ${t} / 서비스요청자: ${_()?.userId}]`);const r=localStorage.getItem("accessToken");return r&&(e.headers.Authorization=`Bearer ${r}`),e.headers["Content-Type"]="application/json; charset=UTF-8",e.headers.Accept="application/json; charset=UTF-8",e},e=>(console.error("❌ 요청 인터셉터 에러:",e),Promise.reject(e)));Y.interceptors.response.use(e=>{e.config.showLoading&&!e.config.isPopup&&C.useLoadingStore.getState().hideLoading(),e.config.isPopup&&C.usePopupLoadingStore.getState().hideLoading();let t="UNKNOWN",r="UNKNOWN";const o=new Date().getTime();try{e.config.trxCd&&(t=e.config.trxCd),e.config.guid?r=e.config.guid:e.data&&e.data.header&&e.data.header.trxCd?(t=e.data.header.trxCd,r=e.data.header.guid||"UNKNOWN"):e.config.data&&e.config.data.header?(t=e.config.data.header.trxCd||"UNKNOWN",r=e.config.data.header.guid||"UNKNOWN"):e.config.params&&e.config.params.header&&(t=e.config.params.header.trxCd||"UNKNOWN",r=e.config.params.header.guid||"UNKNOWN")}catch(m){console.warn("trxCd/guid 추출 실패:",m)}let a=0;return e.config.requestStartTime&&(a=o-e.config.requestStartTime),console.log(`✅ API 응답 성공 [거래코드: ${t} / GUID : ${r}] - (소요시간: ${a}ms)`),e},async e=>{if(e.config&&e.config.showLoading&&!e.config.isPopup&&C.useLoadingStore.getState().hideLoading(),e.config&&e.config.isPopup&&C.usePopupLoadingStore.getState().hideLoading(),console.error("❌ API 응답 에러:",e),L&&console.error("🚨 Error Details:",{message:e.message,status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data,config:{url:e.config?.url,method:e.config?.method,baseURL:e.config?.baseURL}}),e.response?.status===401){const t=localStorage.getItem("refreshToken");if(t)try{const r=await Q.post("/auth/refresh",{refreshToken:t});if(r.data.accessToken){localStorage.setItem("accessToken",r.data.accessToken);const o=e.config;if(o)return o.headers.Authorization=`Bearer ${r.data.accessToken}`,Y(o)}}catch{localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),window.location.href="/login"}}return Promise.reject(e)});const O=async(e,t,r)=>{try{const o={...W,...r},{activeMenuId:a}=C.useMenuViewStore.getState();if(D===null){const l=Date.now();await J();const i=Date.now();console.log(`[INFO] IP 조회 소요시간: ${i-l}ms`)}const m={method:o.method,url:"/api/service",timeout:o.timeout,withCredentials:o.withCredentials,showLoading:o.showLoading,isPopup:o.isPopup};o.headers&&(m.headers=o.headers);const p=D||"unknown",x=__APP_CD__,g=__SYS_CD__,y={header:{trxCd:e,userInfo:_(),clientIp:p,domainId:"DEFAULT",appCd:x,sysCd:g,screenId:a},data:t};o.method==="GET"?m.params=y||o.params:(m.data=y||o.data,o.params&&(m.params=o.params));let d;for(let l=0;l<=(o.retryCount||0);l++)try{const i=await Y(m);if(i.data.header?.resCd==0){for(const c in i.data)if(c!=="header")return i.data[c];return{}}else{const c=i.data.header,n=c?.msgs?.basicMsg||"요청 처리 중 오류가 발생했습니다.",s=c?.msgs?.detailMsgs||n,u=c?.msgCd,f=c?.msgs?.type;throw new M(n,s,i,u,f)}}catch(i){if(i.isAxiosError&&i.response){const c=i,n=c.response,s=n.data,u=s?.header?.msgs?.basicMsg||c.message||"서버에서 오류가 발생했습니다.",f=s?.header?.msgs?.detailMsgs||(typeof n.data=="string"?n.data:JSON.stringify(n.data))||u,h=s?.header?.msgCd,S=s?.header?.msgs?.type;d=new M(u,f,n,h,S)}else d=i;if(i.isAxiosError&&Lt(i)&&l<(o.retryCount||0)){await At(o.retryDelay||1e3);continue}break}if(d){if(o.showError){const l=d instanceof M?d.message:"요청 처리 중 오류가 발생했습니다.",i=d instanceof M?d.msgCd:"요청 처리 중 오류가 발생했습니다.",c=d instanceof M?d.detailMsg:d.message,n=d instanceof M?d.errorType:"";i?.startsWith("BXM")?K({message:l,description:c,duration:5}):n=="I"?G(l,c,5):Z(l,c,5)}throw d}throw new Error("알 수 없는 API 오류가 발생했습니다.")}catch(o){throw console.error("callService 최종 에러:",o),o}},Pt=async(e,t,r,o)=>{try{const a={...W,...o},{activeMenuId:m}=C.useMenuViewStore.getState();if(D===null){const i=Date.now();await J();const c=Date.now();console.log(`[INFO] IP 조회 소요시간: ${c-i}ms`)}const p={method:a.method,url:"/api/"+e+"/service",timeout:a.timeout,withCredentials:a.withCredentials,showLoading:a.showLoading,isPopup:a.isPopup};a.headers&&(p.headers=a.headers);const x=D||"unknown",g=__APP_CD__,y=__SYS_CD__,d={header:{trxCd:t,userInfo:_(),clientIp:x,domainId:"DEFAULT",appCd:g,sysCd:y,screenId:m},data:r};L&&console.log("__BWG_LOCAL__ 테스트 입니다. ",L),a.method==="GET"?p.params=d||a.params:(p.data=d||a.data,a.params&&(p.params=a.params));let l;for(let i=0;i<=(a.retryCount||0);i++)try{const c=await Y(p);if(c.data.header?.resCd==0){for(const n in c.data)if(n!=="header")return c.data[n];return{}}else{const n=c.data.header,s=n?.msgs?.basicMsg||"요청 처리 중 오류가 발생했습니다.",u=n?.msgs?.detailMsgs||s,f=n?.msgCd,h=n?.msgs?.type;throw new M(s,u,c,f,h)}}catch(c){if(c.isAxiosError&&c.response){const n=c,s=n.response,u=s.data,f=u?.header?.msgs?.basicMsg||n.message||"서버에서 오류가 발생했습니다.",h=u?.header?.msgs?.detailMsgs||(typeof s.data=="string"?s.data:JSON.stringify(s.data))||f,S=u?.header?.msgCd,w=u?.header?.msgs?.type;l=new M(f,h,s,S,w)}else l=c;if(c.isAxiosError&&Lt(c)&&i<(a.retryCount||0)){await At(a.retryDelay||1e3);continue}break}if(l){if(a.showError){const i=l instanceof M?l.message:"요청 처리 중 오류가 발생했습니다.",c=l instanceof M?l.msgCd:"요청 처리 중 오류가 발생했습니다.",n=l instanceof M?l.detailMsg:l.message,s=l instanceof M?l.errorType:"";c?.startsWith("BXM")?K({message:i,description:n,duration:5}):s=="I"?G(i,n,5):Z(i,n,5)}throw l}throw new Error("알 수 없는 API 오류가 발생했습니다.")}catch(a){throw console.error("callService 최종 에러:",a),a}},Lt=e=>!e.response||e.response.status>=500&&e.response.status<600,At=e=>new Promise(t=>setTimeout(t,e)),Rt=(e,t,r)=>O(e,t,{...r,method:"GET"}),Ft=(e,t,r)=>O(e,t,{...r,method:"POST"}),Yt=(e,t,r)=>O(e,t,{...r,method:"PUT"}),jt=(e,t,r)=>O(e,t,{...r,method:"DELETE"}),Ht=(e,t,r)=>O(e,t,{...r,method:"PATCH"}),zt=async(e,t,r)=>{try{const o=await fetch("/api/permissions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e,menuId:t,popupId:r})});if(!o.ok)throw new Error(`권한 확인 실패: ${o.status}`);return await o.json()}catch(o){throw console.error("권한 확인 서비스 오류:",o),o}},Vt=Object.freeze(Object.defineProperty({__proto__:null,ApiError:M,apiDelete:jt,apiGet:Rt,apiPatch:Ht,apiPost:Ft,apiPut:Yt,callService:O,callService_SYSCD:Pt,getClientIp:_t,getPermissionService:zt,setClientIp:J,verifyClientIp:It},Symbol.toStringTag,{value:"Module"})),Bt=(e,t,r="text/plain")=>{const o=new Blob([e],{type:r}),a=URL.createObjectURL(o),m=document.createElement("a");m.href=a,m.download=t,document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(a)};async function qt(e){try{return await O("SCMFILE00101",{crprCd:_()?.crprCd,sysCd:__SYS_CD__,fileKey:e}).then(r=>{let o;if(r.sub&&(o=r.sub[0]),console.log(r),console.log(o),!o.lgclFileNm)throw console.error("논리파일명이 없습니다."),new Error("논리 파일명 누락");if(!o.filePath)throw console.error("파일 경로가 없습니다."),new Error("파일 경로 누락");const a=`api/download?filePath=${encodeURIComponent(o.filePath)}&logicalName=${encodeURIComponent(o.lgclFileNm)}`;return window.open(a,"_blank"),{success:!0,message:"파일 다운로드 요청 성공"}})}catch(t){throw console.error("downloadByFileKey 함수 실행 중 오류 발생:",t),t}}const Wt=Object.freeze(Object.defineProperty({__proto__:null,downloadByFileKey:qt,downloadFile:Bt},Symbol.toStringTag,{value:"Module"})),me=(e,t=3)=>{T.message.success({content:e,duration:t})},R=(e,t=5)=>{T.message.error({content:e,duration:t})},Kt=(e,t=4)=>{T.message.warning({content:e,duration:t})},Gt=(e,t=3)=>{T.message.info({content:e,duration:t})},Zt=(e="처리중...")=>T.message.loading({content:e,duration:0}),Jt=e=>{T.message.destroy(e)},Xt=()=>{T.message.destroy()},Qt=(e,t="처리 중 오류가 발생했습니다.")=>{const r=e?.response?.data?.message||e?.message||t;R(r)},er=(e="저장")=>{me(`${e}이 완료되었습니다.`)},tr=(e="저장")=>{R(`${e} 중 오류가 발생했습니다.`)},rr=e=>{R(`이미 사용중인 ${e}입니다.`)},or=e=>{R(`${e}을(를) 입력해주세요.`)},sr=Object.freeze(Object.defineProperty({__proto__:null,closeAllMessages:Xt,closeMessage:Jt,showApiError:Qt,showDuplicateError:rr,showError:R,showInfo:Gt,showLoading:Zt,showRequiredError:or,showSaveError:tr,showSaveSuccess:er,showSuccess:me,showWarning:Kt},Symbol.toStringTag,{value:"Module"})),nr={left:"left",near:"left",right:"right",far:"right",center:"center",number:"#,##0",number2:"#,##0.00",number3:"#,##0.##",number4:"#,##0.000",number5:"#,##0.#####",editNumber:{type:"number",editFormat:"#,##0"},editNumber2:{type:"number",editFormat:"#,##0.00"},editNumber3:{type:"number",editFormat:"#,##0.##"},editNumber4:{type:"number",editFormat:"#,##0.000"},editNumber5:{type:"number",editFormat:"#,##0.###"},editYmd:{type:"date",datetimeFormat:"yyyyMMdd",autoclose:!0,maxDate:"99991231",minDate:"19000101",showButtons:!1,mask:{editMask:"9999-99-99"}},editYm:{type:"btdate",datetimeFormat:"yyyyMM",btOptions:{startView:1,minViewMode:1,todayBtn:"linked",language:"ko",todayHighlight:!0,autoclose:!0,mask:{editMask:"9999-99"}}},editYy:{type:"btdate",datetimeFormat:"yyyy",btOptions:{startView:2,minViewMode:2,todayBtn:"linked",language:"ko",todayHighlight:!0,autoclose:!0}},formatYmd:"([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",formatYm:"([0-9]{4})([0-9]{2});$1-$2",formatYy:"([0-9]{4});$1",lookup:{type:"dropdown",domainOnly:!0},lookupReadOnly:{type:"dropdown",readOnly:!0},maskCard:{type:"text",mask:"0000-0000-0000-0000"},formatMaskCard:"([0-9]{4})([0-9]{4})([0-9]{4})([0-9]{4});$1-$2-$3-$4",maskBsnsNo:{type:"text",mask:"000-00-00000"},formatMaskBsnsNo:"([0-9]{3})([0-9]{2})([0-9]{5});$1-$2-$3",maskRsdn:{type:"text",mask:"000000-0000000"},formatMaskRsdn:"([0-9]{6})([0-9]{7});$1-$2",formatMaskRsdn2:"([0-9]{6})([0-9])([0-9]{6});$1-$2******",maskRsdn2:{type:"text",mask:"999999-9999999"},maskYmd:{type:"text",mask:"0000-00-00"},formatMaskYmd:"([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",maskYm:{type:"text",mask:"0000-00"},formatMaskYm:"([0-9]{4})([0-9]{2});$1-$2",maskYmdHms:{type:"text",mask:"0000-00-00 00:00:00"},formatYmdHms:"([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2});$1-$2-$3 $4:$5:$6",maskHm:{type:"text",mask:"00:00"},formatHm:"([0-9]{2})([0-9]{2});$1:$2",maskHms:{type:"text",mask:"00:00:00"},formatHms:"([0-9]{2})([0-9]{2})([0-9]{2});$1:$2:$3",checkY:{type:"check",trueValues:"Y",falseValues:"N"},checkN:{type:"check",trueValues:"N",falseValues:"Y"},check1:{type:"check",trueValues:"1",falseValues:"0"},checkTrue:{type:"check",trueValues:"true",falseValues:"false"},checkT:{type:"check",trueValues:"T",falseValues:"F"},checkYdisabled:{type:"check",editable:!1,trueValues:"Y",falseValues:"N"},checkNdisabled:{type:"check",editable:!1,trueValues:"N",falseValues:"Y"},check1disabled:{type:"check",editable:!1,trueValues:"1",falseValues:"0"},count:{suffix:" 건",expression:"count"},count2:{prefix:"총 ",suffix:" 건",expression:"count"},datacount:{suffix:" 건",expression:"datacount"},sum:{numberFormat:"#,##0",expression:"sum"},sum2:{numberFormat:"#,##0.##",expression:"sum"},sum3:{numberFormat:"#,##0.00",expression:"sum"},avg:{numberFormat:"#,##0",expression:"avg"},avg2:{numberFormat:"#,##0.##",expression:"avg"},avg4:{numberFormat:"#,##0.####",expression:"avg"},min:{expression:"min"},max:{expression:"max"},date:{type:"date",mask:{editMask:"9999-99-99",placeHolder:"____-__-__",includedFormat:!0},datetimeFormat:"yyyy-MM-dd",textAlignment:"center",yearNavigation:!0},dateStyle:{datetimeFormat:"yyyy-MM-dd",textAlignment:"center"},maskDateFull:{type:"text",mask:"0000-00-00 00:00:00",textAlignment:"center"},bg_gray01:{background:"#cdcdcd"}},wr=Vt,Cr=Ct,xr=Ut,Mr=Wt,$r=sr,br=Ot,Tr=ve,Ur=Ee,ar={...Vt,...Ct,...Ut,...Wt,...sr,...Ot,...ve,...Ee,realFormat:nr};exports.ApiError=M;exports.THEME_COOKIE_NAME=Ne;exports.apiDelete=jt;exports.apiGet=Rt;exports.apiPatch=Ht;exports.apiPost=Ft;exports.apiPut=Yt;exports.apiUtils=wr;exports.arrAverage=Je;exports.arrCount=Qe;exports.arrMax=Ge;exports.arrMin=Ze;exports.arrReverse=et;exports.arrSum=Xe;exports.arrUnique=Ke;exports.bwgUtils=ar;exports.callService=O;exports.callService_SYSCD=Pt;exports.clamp=ot;exports.clearSessionStorage=ct;exports.closeAllMessages=Xt;exports.closeMessage=Jt;exports.closeNotification=Nt;exports.commonUtils=Cr;exports.configureEnvUtils=$t;exports.copyToClipboard=ze;exports.debounce=He;exports.default=ar;exports.deleteCookie=dt;exports.destroyNotifications=Et;exports.downloadByFileKey=qt;exports.downloadFile=Bt;exports.duplicates=tt;exports.encryptSha256=St;exports.envUtils=xr;exports.fileUtils=Mr;exports.generateRandomColor=We;exports.generateRandomString=ce;exports.generateUID=ue;exports.getAllServiceCodes=re;exports.getClientIp=_t;exports.getCookie=lt;exports.getCrprCd=we;exports.getCurrentDate=vt;exports.getCurrentDateString=wt;exports.getDepartmentInfo=De;exports.getDeviceType=H;exports.getDisplayName=ke;exports.getDprtCd=ne;exports.getDprtNm=ae;exports.getEmplNo=xe;exports.getEnvCode=Tt;exports.getPermissionService=zt;exports.getRoleList=j;exports.getServiceCode=te;exports.getSessionStorage=at;exports.getUserDvsn=Ce;exports.getUserId=oe;exports.getUserInfo=_;exports.getUserNm=se;exports.hasAllRoles=be;exports.hasAnyRole=$e;exports.hasRole=Me;exports.hasUserInfo=Ue;exports.isArray=Ae;exports.isBoolean=Ie;exports.isDesktop=qe;exports.isDev=le;exports.isEmpty=ie;exports.isEmptyArray=z;exports.isFunction=Pe;exports.isLocal=L;exports.isLoggedIn=Te;exports.isMobile=Ve;exports.isNull=Re;exports.isNullOrUndefined=Ye;exports.isNumber=_e;exports.isObject=Le;exports.isProd=de;exports.isSafeEmpty=mt;exports.isString=Oe;exports.isTablet=Be;exports.isUndefined=Fe;exports.isValidEmail=gt;exports.isValidUrl=ht;exports.logServiceCodeConfig=Se;exports.messageUtils=$r;exports.notiBwgError=K;exports.notiError=Dt;exports.notiInfo=G;exports.notiSuccess=kt;exports.notiWarning=Z;exports.notificationService=E;exports.notificationUtils=br;exports.padLeft=pt;exports.padRight=yt;exports.random=rt;exports.realFormat=nr;exports.removeSessionStorage=it;exports.round=st;exports.serviceUtils=Tr;exports.setClientIp=J;exports.setCookie=ut;exports.setServiceCodeOverrides=ye;exports.setSessionStorage=nt;exports.showApiError=Qt;exports.showDuplicateError=rr;exports.showError=R;exports.showInfo=Gt;exports.showLoading=Zt;exports.showRequiredError=or;exports.showSaveError=tr;exports.showSaveSuccess=er;exports.showSuccess=me;exports.showWarning=Kt;exports.throttle=je;exports.toCamelCase=ft;exports.userUtils=Ur;exports.verifyClientIp=It;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("axios"),A=require("dayjs"),ee=require("../chunks/common-components-Bhr_MU0K.cjs"),T=require("antd"),C=require("../stores/index.cjs"),pe={AUTH_BTNS:"SCMSIGN00202",AUTH_MENU:"SCMSIGN00201",SRCH_CODE:"SCMSIGN00301",SRCH_POPU:"SCMPOPU00101",AUTH_BMRK:"SCMBMRK00101"};let F={};function ye(e){F=e,console.log("🔧 Provider 서비스코드 오버라이드 설정:",e)}function te(e){return F[e]&&F[e].trim()!==""?F[e]:pe[e]}function re(){const e={};for(const t of Object.keys(pe))e[t]=te(t);return e}function Se(){console.log("🔧 bwg-core 서비스코드 설정:"),console.log("📋 Provider 설정 > 기본값 순서로 확인");const e=re();for(const[t,r]of Object.entries(e)){const o=F[t]?"Provider 설정":"기본값";console.log(` ${t}: ${r} (${o})`)}}const ve=Object.freeze(Object.defineProperty({__proto__:null,getAllServiceCodes:re,getServiceCode:te,logServiceCodeConfig:Se,setServiceCodeOverrides:ye},Symbol.toStringTag,{value:"Module"})),we=()=>C.useUserStore.getState().user?.crprCd||null,oe=()=>C.useUserStore.getState().user?.userId||null,se=()=>C.useUserStore.getState().user?.userNm||null,Ce=()=>C.useUserStore.getState().user?.userDvsn||null,xe=()=>C.useUserStore.getState().user?.emplNo||null,ne=()=>C.useUserStore.getState().user?.dprtCd||null,ae=()=>C.useUserStore.getState().user?.dprtNm||null,j=()=>C.useUserStore.getState().user?.roleList||null,Me=e=>{const t=j();return t?t.includes(e):!1},$e=e=>{const t=j();return t?e.some(r=>t.includes(r)):!1},be=e=>{const t=j();return t?e.every(r=>t.includes(r)):!1},Te=()=>C.useUserStore.getState().isLoggedIn,_=()=>C.useUserStore.getState().user,Ue=()=>_()!==null,ke=()=>{const e=se(),t=oe();return e||t||null},De=()=>{const e=ae(),t=ne();return e||(t?String(t):null)},Ee=Object.freeze(Object.defineProperty({__proto__:null,getCrprCd:we,getDepartmentInfo:De,getDisplayName:ke,getDprtCd:ne,getDprtNm:ae,getEmplNo:xe,getRoleList:j,getUserDvsn:Ce,getUserId:oe,getUserInfo:_,getUserNm:se,hasAllRoles:be,hasAnyRole:$e,hasRole:Me,hasUserInfo:Ue,isLoggedIn:Te},Symbol.toStringTag,{value:"Module"}));var V={exports:{}},ir=V.exports,fe;function cr(){return fe||(fe=1,(function(e,t){(function(r,o){e.exports=o()})(ir,(function(){return function(r,o,a){r=r||{};var m=o.prototype,p={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function x(y,d,l,i){return m.fromToBase(y,d,l,i)}a.en.relativeTime=p,m.fromToBase=function(y,d,l,i,c){for(var n,s,u,f=l.$locale().relativeTime||p,h=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=h.length,w=0;w<S;w+=1){var v=h[w];v.d&&(n=i?a(y).diff(l,v.d,!0):l.diff(y,v.d,!0));var $=(r.rounding||Math.round)(Math.abs(n));if(u=n>0,$<=v.r||!v.r){$<=1&&w>0&&(v=h[w-1]);var b=f[v.l];c&&($=c(""+$)),s=typeof b=="string"?b.replace("%d",$):b($,d,v.l,u);break}}if(d)return s;var U=u?f.future:f.past;return typeof U=="function"?U(s):U.replace("%s",s)},m.to=function(y,d){return x(y,d,this,!0)},m.from=function(y,d){return x(y,d,this)};var g=function(y){return y.$u?a.utc():a()};m.toNow=function(y){return this.to(g(this),y)},m.fromNow=function(y){return this.from(g(this),y)}}}))})(V)),V.exports}var ur=cr();const lr=ee.getDefaultExportFromCjs(ur);var B={exports:{}},dr=B.exports,ge;function mr(){return ge||(ge=1,(function(e,t){(function(r,o){e.exports=o()})(dr,(function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,m,p){var x,g=function(i,c,n){n===void 0&&(n={});var s=new Date(i),u=(function(f,h){h===void 0&&(h={});var S=h.timeZoneName||"short",w=f+"|"+S,v=o[w];return v||(v=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:f,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:S}),o[w]=v),v})(c,n);return u.formatToParts(s)},y=function(i,c){for(var n=g(i,c),s=[],u=0;u<n.length;u+=1){var f=n[u],h=f.type,S=f.value,w=r[h];w>=0&&(s[w]=parseInt(S,10))}var v=s[3],$=v===24?0:v,b=s[0]+"-"+s[1]+"-"+s[2]+" "+$+":"+s[4]+":"+s[5]+":000",U=+i;return(p.utc(b).valueOf()-(U-=U%1e3))/6e4},d=m.prototype;d.tz=function(i,c){i===void 0&&(i=x);var n,s=this.utcOffset(),u=this.toDate(),f=u.toLocaleString("en-US",{timeZone:i}),h=Math.round((u-new Date(f))/1e3/60),S=15*-Math.round(u.getTimezoneOffset()/15)-h;if(!Number(S))n=this.utcOffset(0,c);else if(n=p(f,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(S,!0),c){var w=n.utcOffset();n=n.add(s-w,"minute")}return n.$x.$timezone=i,n},d.offsetName=function(i){var c=this.$x.$timezone||p.tz.guess(),n=g(this.valueOf(),c,{timeZoneName:i}).find((function(s){return s.type.toLowerCase()==="timezonename"}));return n&&n.value};var l=d.startOf;d.startOf=function(i,c){if(!this.$x||!this.$x.$timezone)return l.call(this,i,c);var n=p(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(n,i,c).tz(this.$x.$timezone,!0)},p.tz=function(i,c,n){var s=n&&c,u=n||c||x,f=y(+p(),u);if(typeof i!="string")return p(i).tz(u);var h=(function($,b,U){var N=$-60*b*1e3,I=y(N,U);if(b===I)return[N,b];var X=y(N-=60*(I-b)*1e3,U);return I===X?[N,I]:[$-60*Math.min(I,X)*1e3,Math.max(I,X)]})(p.utc(i,s).valueOf(),f,u),S=h[0],w=h[1],v=p(S).utcOffset(w);return v.$x.$timezone=u,v},p.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},p.tz.setDefault=function(i){x=i}}}))})(B)),B.exports}var fr=mr();const gr=ee.getDefaultExportFromCjs(fr);var q={exports:{}},hr=q.exports,he;function pr(){return he||(he=1,(function(e,t){(function(r,o){e.exports=o()})(hr,(function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(m,p,x){var g=p.prototype;x.utc=function(s){var u={date:s,utc:!0,args:arguments};return new p(u)},g.utc=function(s){var u=x(this.toDate(),{locale:this.$L,utc:!0});return s?u.add(this.utcOffset(),r):u},g.local=function(){return x(this.toDate(),{locale:this.$L,utc:!1})};var y=g.parse;g.parse=function(s){s.utc&&(this.$u=!0),this.$utils().u(s.$offset)||(this.$offset=s.$offset),y.call(this,s)};var d=g.init;g.init=function(){if(this.$u){var s=this.$d;this.$y=s.getUTCFullYear(),this.$M=s.getUTCMonth(),this.$D=s.getUTCDate(),this.$W=s.getUTCDay(),this.$H=s.getUTCHours(),this.$m=s.getUTCMinutes(),this.$s=s.getUTCSeconds(),this.$ms=s.getUTCMilliseconds()}else d.call(this)};var l=g.utcOffset;g.utcOffset=function(s,u){var f=this.$utils().u;if(f(s))return this.$u?0:f(this.$offset)?l.call(this):this.$offset;if(typeof s=="string"&&(s=(function(v){v===void 0&&(v="");var $=v.match(o);if(!$)return null;var b=(""+$[0]).match(a)||["-",0,0],U=b[0],N=60*+b[1]+ +b[2];return N===0?0:U==="+"?N:-N})(s),s===null))return this;var h=Math.abs(s)<=16?60*s:s;if(h===0)return this.utc(u);var S=this.clone();if(u)return S.$offset=h,S.$u=!1,S;var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(S=this.local().add(h+w,r)).$offset=h,S.$x.$localOffset=w,S};var i=g.format;g.format=function(s){var u=s||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return i.call(this,u)},g.valueOf=function(){var s=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*s},g.isUTC=function(){return!!this.$u},g.toISOString=function(){return this.toDate().toISOString()},g.toString=function(){return this.toDate().toUTCString()};var c=g.toDate;g.toDate=function(s){return s==="s"&&this.$offset?x(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var n=g.diff;g.diff=function(s,u,f){if(s&&this.$u===s.$u)return n.call(this,s,u,f);var h=this.local(),S=x(s).local();return n.call(h,S,u,f)}}}))})(q)),q.exports}var yr=pr();const Sr=ee.getDefaultExportFromCjs(yr),Ne="ui_theme",Oe=e=>typeof e=="string",_e=e=>typeof e=="number"&&!isNaN(e),Ie=e=>typeof e=="boolean",Pe=e=>typeof e=="function",Le=e=>e!==null&&typeof e=="object",Ae=e=>Array.isArray(e),Re=e=>e===null,Fe=e=>e===void 0,Ye=e=>e==null,je=(e,t)=>{let r=0;return(...o)=>{const a=Date.now();a-r>=t&&(r=a,e(...o))}},He=(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>e(...o),t)}},ze=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Error copying to clipboard:",t),!1}},H=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},Ve=()=>H()==="mobile",Be=()=>H()==="tablet",qe=()=>H()==="desktop",We=()=>"#"+Math.floor(Math.random()*16777215).toString(16),z=e=>!e||e.length===0,Ke=e=>[...new Set(e)],Ge=e=>{if(!z(e))return Math.max(...e)},Ze=e=>{if(!z(e))return Math.min(...e)},Je=e=>{if(!z(e))return e.reduce((t,r)=>t+r,0)/e.length},Xe=e=>e.reduce((t,r)=>t+r,0),Qe=(e,t)=>e.filter(t).length,et=e=>[...e].reverse(),tt=e=>{const t=new Set,r=new Set;return e.forEach(o=>{t.has(o)?r.add(o):t.add(o)}),Array.from(r)},rt=(e,t)=>Math.random()*(t-e)+e,ot=(e,t,r)=>Math.min(Math.max(e,t),r),st=(e,t=0)=>Math.round(e*Math.pow(10,t))/Math.pow(10,t),nt=(e,t)=>{try{sessionStorage.setItem(e,JSON.stringify(t))}catch(r){console.error("Error saving to sessionStorage:",r)}},at=(e,t)=>{try{const r=sessionStorage.getItem(e);return r?JSON.parse(r):t||null}catch(r){return console.error("Error reading from sessionStorage:",r),t||null}},it=e=>{try{sessionStorage.removeItem(e)}catch(t){console.error("Error removing from sessionStorage:",t)}},ct=()=>{try{sessionStorage.clear()}catch(e){console.error("Error clearing sessionStorage:",e)}},ut=(e,t,r=30)=>{const o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3),document.cookie=`${e}=${t};expires=${o.toUTCString()};path=/`},lt=e=>{const t=e+"=",r=document.cookie.split(";");for(let o=0;o<r.length;o++){let a=r[o];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},dt=e=>{document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`},ie=e=>typeof e!="string"?!e:e.trim().length===0,mt=(e,t)=>ie(e)?t:e||"",ft=e=>e.replace(/-([a-z])/g,t=>t[1].toUpperCase()),gt=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),ht=e=>{try{return new URL(e),!0}catch{return!1}},pt=(e,t,r=" ")=>e.padStart(t,r),yt=(e,t,r=" ")=>e.padEnd(t,r),ce=(e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")=>{let r="";for(let o=0;o<e;o++)r+=t.charAt(Math.floor(Math.random()*t.length));return r},vr=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),ue=(e=32)=>{const r=vr().replace(/-/g,"");return e>=32?r+ce(e-32,"0123456789abcdef"):r.substring(0,e)};async function St(e){const[{default:t},{default:r}]=await Promise.all([Promise.resolve().then(()=>require("../chunks/sha256-CpH38gS4.cjs")).then(o=>o.sha256),Promise.resolve().then(()=>require("../chunks/enc-base64-8MLFBYmR.cjs")).then(o=>o.encBase64)]);return t(e).toString(r)}A.extend(lr);A.extend(Sr);A.extend(gr);A.locale("ko");const vt=()=>A(),wt=(e="YYYY-MM-DD")=>A().format(e),Ct=Object.freeze(Object.defineProperty({__proto__:null,THEME_COOKIE_NAME:Ne,arrAverage:Je,arrCount:Qe,arrMax:Ge,arrMin:Ze,arrReverse:et,arrSum:Xe,arrUnique:Ke,clamp:ot,clearSessionStorage:ct,copyToClipboard:ze,debounce:He,deleteCookie:dt,duplicates:tt,encryptSha256:St,generateRandomColor:We,generateRandomString:ce,generateUID:ue,getCookie:lt,getCurrentDate:vt,getCurrentDateString:wt,getDeviceType:H,getSessionStorage:at,isArray:Ae,isBoolean:Ie,isDesktop:qe,isEmpty:ie,isEmptyArray:z,isFunction:Pe,isMobile:Ve,isNull:Re,isNullOrUndefined:Ye,isNumber:_e,isObject:Le,isSafeEmpty:mt,isString:Oe,isTablet:Be,isUndefined:Fe,isValidEmail:gt,isValidUrl:ht,padLeft:pt,padRight:yt,random:rt,removeSessionStorage:it,round:st,setCookie:ut,setSessionStorage:nt,throttle:je,toCamelCase:ft},Symbol.toStringTag,{value:"Module"})),L=(()=>{try{if((void 0).DEV)return!0}catch{}return!1})();let xt=[],Mt=[];function $t(e){e.devHosts&&(xt=e.devHosts),e.prodHosts&&(Mt=e.prodHosts)}function bt(){if(typeof window<"u"&&window.location)return window.location.hostname}const le=(()=>{const e=bt();return!!(e&&xt.includes(e))})(),de=(()=>{const e=bt();return!!(e&&Mt.includes(e))})();function Tt(){return L?"X":le?"D":de?"P":"X"}const Ut=Object.freeze(Object.defineProperty({__proto__:null,configureEnvUtils:$t,getEnvCode:Tt,isDev:le,isLocal:L,isProd:de},Symbol.toStringTag,{value:"Module"})),k={duration:4.5,placement:"topRight"};class P{constructor(){}static getInstance(){return P.instance||(P.instance=new P),P.instance}showBwgError(t){const{message:r,description:o,duration:a=k.duration,placement:m=k.placement}=t;T.notification.error({message:`${r}`,description:o||"오류가 발생했습니다. 다시 시도해주세요.",duration:a,placement:m,style:{borderLeft:"4px solid #ff4d4f",backgroundColor:"#fff2f0"}})}showSuccess(t,r,o){T.notification.success({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}showInfo(t,r,o){T.notification.info({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}showWarning(t,r,o){T.notification.warning({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}showError(t,r,o){T.notification.error({message:`${t}`,description:r,duration:o||k.duration,placement:k.placement})}destroy(){T.notification.destroy()}close(t){T.notification.destroy()}}const E=P.getInstance(),K=e=>{E.showBwgError(e)},kt=(e,t,r)=>{E.showSuccess(e,t,r)},G=(e,t,r)=>{E.showInfo(e,t,r)},Z=(e,t,r)=>{E.showWarning(e,t,r)},Dt=(e,t,r)=>{E.showError(e,t,r)},Et=()=>{E.destroy()},Nt=e=>{E.close(e)},Ot=Object.freeze(Object.defineProperty({__proto__:null,closeNotification:Nt,destroyNotifications:Et,notiBwgError:K,notiError:Dt,notiInfo:G,notiSuccess:kt,notiWarning:Z,notificationService:E},Symbol.toStringTag,{value:"Module"}));let D=null;const J=async e=>{if(D===null)if(e===void 0)try{let r=(await Q.get("/api/ip")).data.trim();r=r.replace(/\s+/g,""),D=r}catch(t){console.warn("IP 가져오기 실패:",t),D="unknown"}else D=e},_t=()=>D,It=async()=>(console.log("IP 검증 비활성화됨 (성능 최적화)"),D||"unknown");class M extends Error{constructor(t,r,o,a,m){super(t),this.name="ApiError",this.detailMsg=r,this.response=o,this.msgCd=a,this.errorType=m,Error.captureStackTrace&&Error.captureStackTrace(this,M)}}const W={method:"POST",timeout:3e4,withCredentials:!0,showLoading:!0,isPopup:!1,showError:!0,retryCount:0,retryDelay:1e3},Y=Q.create({timeout:W.timeout,withCredentials:W.withCredentials,headers:{"Content-Type":"application/json; charset=utf-8",Accept:"application/json; charset=utf-8","Apm-Guid":ue()}});Y.interceptors.request.use(e=>{e.showLoading&&!e.isPopup&&C.useLoadingStore.getState().showLoading(),e.showLoading&&e.isPopup&&C.usePopupLoadingStore.getState().showLoading();let t="UNKNOWN";new Date().getTime();try{e.data&&e.data.header?t=e.data.header.trxCd||"UNKNOWN":e.params&&e.params.header&&(t=e.params.header.trxCd||"UNKNOWN")}catch(o){console.warn("trxCd/guid 추출 실패:",o)}e.trxCd=t,e.requestStartTime=Date.now(),console.log(`🚀 API 요청 시작 [거래코드: ${t} / 서비스요청자: ${_()?.userId}]`);const r=localStorage.getItem("accessToken");return r&&(e.headers.Authorization=`Bearer ${r}`),e.headers["Content-Type"]="application/json; charset=UTF-8",e.headers.Accept="application/json; charset=UTF-8",e},e=>(console.error("❌ 요청 인터셉터 에러:",e),Promise.reject(e)));Y.interceptors.response.use(e=>{e.config.showLoading&&!e.config.isPopup&&C.useLoadingStore.getState().hideLoading(),e.config.isPopup&&C.usePopupLoadingStore.getState().hideLoading();let t="UNKNOWN",r="UNKNOWN";const o=new Date().getTime();try{e.config.trxCd&&(t=e.config.trxCd),e.config.guid?r=e.config.guid:e.data&&e.data.header&&e.data.header.trxCd?(t=e.data.header.trxCd,r=e.data.header.guid||"UNKNOWN"):e.config.data&&e.config.data.header?(t=e.config.data.header.trxCd||"UNKNOWN",r=e.config.data.header.guid||"UNKNOWN"):e.config.params&&e.config.params.header&&(t=e.config.params.header.trxCd||"UNKNOWN",r=e.config.params.header.guid||"UNKNOWN")}catch(m){console.warn("trxCd/guid 추출 실패:",m)}let a=0;return e.config.requestStartTime&&(a=o-e.config.requestStartTime),console.log(`✅ API 응답 성공 [거래코드: ${t} / GUID : ${r}] - (소요시간: ${a}ms)`),e},async e=>{if(e.config&&e.config.showLoading&&!e.config.isPopup&&C.useLoadingStore.getState().hideLoading(),e.config&&e.config.isPopup&&C.usePopupLoadingStore.getState().hideLoading(),console.error("❌ API 응답 에러:",e),L&&console.error("🚨 Error Details:",{message:e.message,status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data,config:{url:e.config?.url,method:e.config?.method,baseURL:e.config?.baseURL}}),e.response?.status===401){const t=localStorage.getItem("refreshToken");if(t)try{const r=await Q.post("/auth/refresh",{refreshToken:t});if(r.data.accessToken){localStorage.setItem("accessToken",r.data.accessToken);const o=e.config;if(o)return o.headers.Authorization=`Bearer ${r.data.accessToken}`,Y(o)}}catch{localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),window.location.href="/login"}}return Promise.reject(e)});const O=async(e,t,r)=>{try{const o={...W,...r},{activeMenuId:a}=C.useMenuViewStore.getState();if(D===null){const l=Date.now();await J();const i=Date.now();console.log(`[INFO] IP 조회 소요시간: ${i-l}ms`)}const m={method:o.method,url:"/api/service",timeout:o.timeout,withCredentials:o.withCredentials,showLoading:o.showLoading,isPopup:o.isPopup};o.headers&&(m.headers=o.headers);const p=D||"unknown",x=__APP_CD__,g=__SYS_CD__,y={header:{trxCd:e,userInfo:_(),clientIp:p,domainId:"DEFAULT",appCd:x,sysCd:g,screenId:a},data:t};o.method==="GET"?m.params=y||o.params:(m.data=y||o.data,o.params&&(m.params=o.params));let d;for(let l=0;l<=(o.retryCount||0);l++)try{const i=await Y(m);if(i.data.header?.resCd==0){for(const c in i.data)if(c!=="header")return i.data[c];return{}}else{const c=i.data.header,n=c?.msgs?.basicMsg||"요청 처리 중 오류가 발생했습니다.",s=c?.msgs?.detailMsgs||n,u=c?.msgCd,f=c?.msgs?.type;throw new M(n,s,i,u,f)}}catch(i){if(i.isAxiosError&&i.response){const c=i,n=c.response,s=n.data,u=s?.header?.msgs?.basicMsg||c.message||"서버에서 오류가 발생했습니다.",f=s?.header?.msgs?.detailMsgs||(typeof n.data=="string"?n.data:JSON.stringify(n.data))||u,h=s?.header?.msgCd,S=s?.header?.msgs?.type;d=new M(u,f,n,h,S)}else d=i;if(i.isAxiosError&&Lt(i)&&l<(o.retryCount||0)){await At(o.retryDelay||1e3);continue}break}if(d){if(o.showError){const l=d instanceof M?d.message:"요청 처리 중 오류가 발생했습니다.",i=d instanceof M?d.msgCd:"요청 처리 중 오류가 발생했습니다.",c=d instanceof M?d.detailMsg:d.message,n=d instanceof M?d.errorType:"";i?.startsWith("BXM")?K({message:l,description:c,duration:5}):n=="I"?G(l,c,5):Z(l,c,5)}throw d}throw new Error("알 수 없는 API 오류가 발생했습니다.")}catch(o){throw console.error("callService 최종 에러:",o),o}},Pt=async(e,t,r,o)=>{try{const a={...W,...o},{activeMenuId:m}=C.useMenuViewStore.getState();if(D===null){const i=Date.now();await J();const c=Date.now();console.log(`[INFO] IP 조회 소요시간: ${c-i}ms`)}const p={method:a.method,url:"/api/"+e+"/service",timeout:a.timeout,withCredentials:a.withCredentials,showLoading:a.showLoading,isPopup:a.isPopup};a.headers&&(p.headers=a.headers);const x=D||"unknown",g=__APP_CD__,y=__SYS_CD__,d={header:{trxCd:t,userInfo:_(),clientIp:x,domainId:"DEFAULT",appCd:g,sysCd:y,screenId:m},data:r};L&&console.log("__BWG_LOCAL__ 테스트 입니다. ",L),a.method==="GET"?p.params=d||a.params:(p.data=d||a.data,a.params&&(p.params=a.params));let l;for(let i=0;i<=(a.retryCount||0);i++)try{const c=await Y(p);if(c.data.header?.resCd==0){for(const n in c.data)if(n!=="header")return c.data[n];return{}}else{const n=c.data.header,s=n?.msgs?.basicMsg||"요청 처리 중 오류가 발생했습니다.",u=n?.msgs?.detailMsgs||s,f=n?.msgCd,h=n?.msgs?.type;throw new M(s,u,c,f,h)}}catch(c){if(c.isAxiosError&&c.response){const n=c,s=n.response,u=s.data,f=u?.header?.msgs?.basicMsg||n.message||"서버에서 오류가 발생했습니다.",h=u?.header?.msgs?.detailMsgs||(typeof s.data=="string"?s.data:JSON.stringify(s.data))||f,S=u?.header?.msgCd,w=u?.header?.msgs?.type;l=new M(f,h,s,S,w)}else l=c;if(c.isAxiosError&&Lt(c)&&i<(a.retryCount||0)){await At(a.retryDelay||1e3);continue}break}if(l){if(a.showError){const i=l instanceof M?l.message:"요청 처리 중 오류가 발생했습니다.",c=l instanceof M?l.msgCd:"요청 처리 중 오류가 발생했습니다.",n=l instanceof M?l.detailMsg:l.message,s=l instanceof M?l.errorType:"";c?.startsWith("BXM")?K({message:i,description:n,duration:5}):s=="I"?G(i,n,5):Z(i,n,5)}throw l}throw new Error("알 수 없는 API 오류가 발생했습니다.")}catch(a){throw console.error("callService 최종 에러:",a),a}},Lt=e=>!e.response||e.response.status>=500&&e.response.status<600,At=e=>new Promise(t=>setTimeout(t,e)),Rt=(e,t,r)=>O(e,t,{...r,method:"GET"}),Ft=(e,t,r)=>O(e,t,{...r,method:"POST"}),Yt=(e,t,r)=>O(e,t,{...r,method:"PUT"}),jt=(e,t,r)=>O(e,t,{...r,method:"DELETE"}),Ht=(e,t,r)=>O(e,t,{...r,method:"PATCH"}),zt=async(e,t,r)=>{try{const o=await fetch("/api/permissions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e,menuId:t,popupId:r})});if(!o.ok)throw new Error(`권한 확인 실패: ${o.status}`);return await o.json()}catch(o){throw console.error("권한 확인 서비스 오류:",o),o}},Vt=Object.freeze(Object.defineProperty({__proto__:null,ApiError:M,apiDelete:jt,apiGet:Rt,apiPatch:Ht,apiPost:Ft,apiPut:Yt,callService:O,callService_SYSCD:Pt,getClientIp:_t,getPermissionService:zt,setClientIp:J,verifyClientIp:It},Symbol.toStringTag,{value:"Module"})),Bt=(e,t,r="text/plain")=>{const o=new Blob([e],{type:r}),a=URL.createObjectURL(o),m=document.createElement("a");m.href=a,m.download=t,document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(a)};async function qt(e){try{return await O("SCMFILE00101",{crprCd:_()?.crprCd,sysCd:__SYS_CD__,fileKey:e}).then(r=>{let o;if(r.sub&&(o=r.sub[0]),console.log(r),console.log(o),!o.lgclFileNm)throw console.error("논리파일명이 없습니다."),new Error("논리 파일명 누락");if(!o.filePath)throw console.error("파일 경로가 없습니다."),new Error("파일 경로 누락");const a=`api/download?filePath=${encodeURIComponent(o.filePath)}&logicalName=${encodeURIComponent(o.lgclFileNm)}`;return window.open(a,"_blank"),{success:!0,message:"파일 다운로드 요청 성공"}})}catch(t){throw console.error("downloadByFileKey 함수 실행 중 오류 발생:",t),t}}const Wt=Object.freeze(Object.defineProperty({__proto__:null,downloadByFileKey:qt,downloadFile:Bt},Symbol.toStringTag,{value:"Module"})),me=(e,t=3)=>{T.message.success({content:e,duration:t})},R=(e,t=5)=>{T.message.error({content:e,duration:t})},Kt=(e,t=4)=>{T.message.warning({content:e,duration:t})},Gt=(e,t=3)=>{T.message.info({content:e,duration:t})},Zt=(e="처리중...")=>T.message.loading({content:e,duration:0}),Jt=e=>{T.message.destroy(e)},Xt=()=>{T.message.destroy()},Qt=(e,t="처리 중 오류가 발생했습니다.")=>{const r=e?.response?.data?.message||e?.message||t;R(r)},er=(e="저장")=>{me(`${e}이 완료되었습니다.`)},tr=(e="저장")=>{R(`${e} 중 오류가 발생했습니다.`)},rr=e=>{R(`이미 사용중인 ${e}입니다.`)},or=e=>{R(`${e}을(를) 입력해주세요.`)},sr=Object.freeze(Object.defineProperty({__proto__:null,closeAllMessages:Xt,closeMessage:Jt,showApiError:Qt,showDuplicateError:rr,showError:R,showInfo:Gt,showLoading:Zt,showRequiredError:or,showSaveError:tr,showSaveSuccess:er,showSuccess:me,showWarning:Kt},Symbol.toStringTag,{value:"Module"})),nr={left:"left",near:"left",right:"right",far:"right",center:"center",number:"#,##0",number2:"#,##0.00",number3:"#,##0.##",number4:"#,##0.000",number5:"#,##0.#####",editNumber:{type:"number",editFormat:"#,##0"},editNumber2:{type:"number",editFormat:"#,##0.00"},editNumber3:{type:"number",editFormat:"#,##0.##"},editNumber4:{type:"number",editFormat:"#,##0.000"},editNumber5:{type:"number",editFormat:"#,##0.###"},editYmd:{type:"date",datetimeFormat:"yyyyMMdd",autoclose:!0,maxDate:"99991231",minDate:"19000101",showButtons:!1,mask:{editMask:"9999-99-99"}},editYm:{type:"btdate",datetimeFormat:"yyyyMM",btOptions:{startView:1,minViewMode:1,todayBtn:"linked",language:"ko",todayHighlight:!0,autoclose:!0,mask:{editMask:"9999-99"}}},editYy:{type:"btdate",datetimeFormat:"yyyy",btOptions:{startView:2,minViewMode:2,todayBtn:"linked",language:"ko",todayHighlight:!0,autoclose:!0}},formatYmd:"([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",formatYm:"([0-9]{4})([0-9]{2});$1-$2",formatYy:"([0-9]{4});$1",lookup:{type:"dropdown",domainOnly:!0},lookupReadOnly:{type:"dropdown",readOnly:!0},maskCard:{type:"text",mask:"0000-0000-0000-0000"},formatMaskCard:"([0-9]{4})([0-9]{4})([0-9]{4})([0-9]{4});$1-$2-$3-$4",maskBsnsNo:{type:"text",mask:"000-00-00000"},formatMaskBsnsNo:"([0-9]{3})([0-9]{2})([0-9]{5});$1-$2-$3",maskRsdn:{type:"text",mask:"000000-0000000"},formatMaskRsdn:"([0-9]{6})([0-9]{7});$1-$2",formatMaskRsdn2:"([0-9]{6})([0-9])([0-9]{6});$1-$2******",maskRsdn2:{type:"text",mask:"999999-9999999"},maskYmd:{type:"text",mask:"0000-00-00"},formatMaskYmd:"([0-9]{4})([0-9]{2})([0-9]{2});$1-$2-$3",maskYm:{type:"text",mask:"0000-00"},formatMaskYm:"([0-9]{4})([0-9]{2});$1-$2",maskYmdHms:{type:"text",mask:"0000-00-00 00:00:00"},formatYmdHms:"([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2});$1-$2-$3 $4:$5:$6",maskHm:{type:"text",mask:"00:00"},formatHm:"([0-9]{2})([0-9]{2});$1:$2",maskHms:{type:"text",mask:"00:00:00"},formatHms:"([0-9]{2})([0-9]{2})([0-9]{2});$1:$2:$3",checkY:{type:"check",trueValues:"Y",falseValues:"N"},checkN:{type:"check",trueValues:"N",falseValues:"Y"},check1:{type:"check",trueValues:"1",falseValues:"0"},checkTrue:{type:"check",trueValues:"true",falseValues:"false"},checkT:{type:"check",trueValues:"T",falseValues:"F"},checkYdisabled:{type:"check",editable:!1,trueValues:"Y",falseValues:"N"},checkNdisabled:{type:"check",editable:!1,trueValues:"N",falseValues:"Y"},check1disabled:{type:"check",editable:!1,trueValues:"1",falseValues:"0"},count:{suffix:" 건",expression:"count"},count2:{prefix:"총 ",suffix:" 건",expression:"count"},datacount:{suffix:" 건",expression:"datacount"},sum:{numberFormat:"#,##0",expression:"sum"},sum2:{numberFormat:"#,##0.##",expression:"sum"},sum3:{numberFormat:"#,##0.00",expression:"sum"},avg:{numberFormat:"#,##0",expression:"avg"},avg2:{numberFormat:"#,##0.##",expression:"avg"},avg4:{numberFormat:"#,##0.####",expression:"avg"},min:{expression:"min"},max:{expression:"max"},date:{type:"date",mask:{editMask:"9999-99-99",placeHolder:"____-__-__",includedFormat:!0},datetimeFormat:"yyyy-MM-dd",textAlignment:"center",yearNavigation:!0},dateStyle:{datetimeFormat:"yyyy-MM-dd",textAlignment:"center"},maskDateFull:{type:"text",mask:"0000-00-00 00:00:00",textAlignment:"center"},bg_gray01:{background:"#cdcdcd"}},wr=Vt,Cr=Ct,xr=Ut,Mr=Wt,$r=sr,br=Ot,Tr=ve,Ur=Ee,ar={...Vt,...Ct,...Ut,...Wt,...sr,...Ot,...ve,...Ee,realFormat:nr};exports.ApiError=M;exports.THEME_COOKIE_NAME=Ne;exports.apiDelete=jt;exports.apiGet=Rt;exports.apiPatch=Ht;exports.apiPost=Ft;exports.apiPut=Yt;exports.apiUtils=wr;exports.arrAverage=Je;exports.arrCount=Qe;exports.arrMax=Ge;exports.arrMin=Ze;exports.arrReverse=et;exports.arrSum=Xe;exports.arrUnique=Ke;exports.bwgUtils=ar;exports.callService=O;exports.callService_SYSCD=Pt;exports.clamp=ot;exports.clearSessionStorage=ct;exports.closeAllMessages=Xt;exports.closeMessage=Jt;exports.closeNotification=Nt;exports.commonUtils=Cr;exports.configureEnvUtils=$t;exports.copyToClipboard=ze;exports.debounce=He;exports.default=ar;exports.deleteCookie=dt;exports.destroyNotifications=Et;exports.downloadByFileKey=qt;exports.downloadFile=Bt;exports.duplicates=tt;exports.encryptSha256=St;exports.envUtils=xr;exports.fileUtils=Mr;exports.generateRandomColor=We;exports.generateRandomString=ce;exports.generateUID=ue;exports.getAllServiceCodes=re;exports.getClientIp=_t;exports.getCookie=lt;exports.getCrprCd=we;exports.getCurrentDate=vt;exports.getCurrentDateString=wt;exports.getDepartmentInfo=De;exports.getDeviceType=H;exports.getDisplayName=ke;exports.getDprtCd=ne;exports.getDprtNm=ae;exports.getEmplNo=xe;exports.getEnvCode=Tt;exports.getPermissionService=zt;exports.getRoleList=j;exports.getServiceCode=te;exports.getSessionStorage=at;exports.getUserDvsn=Ce;exports.getUserId=oe;exports.getUserInfo=_;exports.getUserNm=se;exports.hasAllRoles=be;exports.hasAnyRole=$e;exports.hasRole=Me;exports.hasUserInfo=Ue;exports.isArray=Ae;exports.isBoolean=Ie;exports.isDesktop=qe;exports.isDev=le;exports.isEmpty=ie;exports.isEmptyArray=z;exports.isFunction=Pe;exports.isLocal=L;exports.isLoggedIn=Te;exports.isMobile=Ve;exports.isNull=Re;exports.isNullOrUndefined=Ye;exports.isNumber=_e;exports.isObject=Le;exports.isProd=de;exports.isSafeEmpty=mt;exports.isString=Oe;exports.isTablet=Be;exports.isUndefined=Fe;exports.isValidEmail=gt;exports.isValidUrl=ht;exports.logServiceCodeConfig=Se;exports.messageUtils=$r;exports.notiBwgError=K;exports.notiError=Dt;exports.notiInfo=G;exports.notiSuccess=kt;exports.notiWarning=Z;exports.notificationService=E;exports.notificationUtils=br;exports.padLeft=pt;exports.padRight=yt;exports.random=rt;exports.realFormat=nr;exports.removeSessionStorage=it;exports.round=st;exports.serviceUtils=Tr;exports.setClientIp=J;exports.setCookie=ut;exports.setServiceCodeOverrides=ye;exports.setSessionStorage=nt;exports.showApiError=Qt;exports.showDuplicateError=rr;exports.showError=R;exports.showInfo=Gt;exports.showLoading=Zt;exports.showRequiredError=or;exports.showSaveError=tr;exports.showSaveSuccess=er;exports.showSuccess=me;exports.showWarning=Kt;exports.throttle=je;exports.toCamelCase=ft;exports.userUtils=Ur;exports.verifyClientIp=It;
|
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import X from "axios";
|
|
2
2
|
import L from "dayjs";
|
|
3
|
-
import { g as Q } from "../chunks/common-components-
|
|
3
|
+
import { g as Q } from "../chunks/common-components-6bDxIO7h.js";
|
|
4
4
|
import { notification as U, message as _ } from "antd";
|
|
5
5
|
import { useUserStore as O, useMenuViewStore as ie, useLoadingStore as Z, usePopupLoadingStore as J } from "../stores/index.js";
|
|
6
6
|
const ce = {
|
|
@@ -358,8 +358,8 @@ const ot = /* @__PURE__ */ Q(rt), st = "ui_theme", nt = (e) => typeof e == "stri
|
|
|
358
358
|
};
|
|
359
359
|
async function Wt(e) {
|
|
360
360
|
const [{ default: t }, { default: r }] = await Promise.all([
|
|
361
|
-
import("../chunks/sha256-
|
|
362
|
-
import("../chunks/enc-base64-
|
|
361
|
+
import("../chunks/sha256-CX4t6ExL.js").then((o) => o.s),
|
|
362
|
+
import("../chunks/enc-base64-D-UXiasf.js").then((o) => o.e)
|
|
363
363
|
]);
|
|
364
364
|
return t(e).toString(r);
|
|
365
365
|
}
|