PageSourceSearch

https://console.coolsms.co.kr/assets/useDemoImportantAlert-Du7csHh1.js

js coolsms.co.kr collected 2026-09-29 15:08:22 UTC 7,070 bytes, 249 lines download raw bytes

1import { i as x, __tla as __tla_0 } from "./material-WylzSxcn.js";
2import { j as n } from "./jsx-runtime-Bk8BPgdK.js";
3import { m as y } from "./index-tXEMOdLv.js";
4import { b as g, g as D, __tla as __tla_1 } from "./index--J6FPhdi.js";
5import { a as M, u as I, __tla as __tla_2 } from "./useConfirmNotificationMutation-DGTtUwR7.js";
6import { u as k, __tla as __tla_3 } from "./useIsImpersonating-kRFeX2qY.js";
7import { p as W } from "./axios-DvS8uGlJ.js";
8let st, G, at;
9let __tla = Promise.all([
10  (() => {
11    try {
12      return __tla_0;
13    } catch {
14    }
15  })(),
16  (() => {
17    try {
18      return __tla_1;
19    } catch {
20    }
21  })(),
22  (() => {
23    try {
24      return __tla_2;
25    } catch {
26    }
27  })(),
28  (() => {
29    try {
30      return __tla_3;
31    } catch {
32    }
33  })()
34]).then(async () => {
35  let j, w, A, S, C, E, O, R, P, T, J, B, L, s, U, c, v, h, f, p, $, b, Y, F, H;
36  j = "_scope_6hhrg_1";
37  w = "_title_6hhrg_38";
38  A = "_meta_6hhrg_49";
39  S = "_tag_6hhrg_60";
40  C = "_tagDanger_6hhrg_69";
41  E = "_tagPrimary_6hhrg_74";
42  O = "_tagMuted_6hhrg_79";
43  R = "_timeWrap_6hhrg_93";
44  P = "_body_6hhrg_107";
45  T = "_text_6hhrg_116";
46  J = "_link_6hhrg_127";
47  B = "_code_6hhrg_137";
48  L = "_confirmBtn_6hhrg_157";
49  s = {
50    scope: j,
51    title: w,
52    meta: A,
53    tag: S,
54    tagDanger: C,
55    tagPrimary: E,
56    tagMuted: O,
57    timeWrap: R,
58    body: P,
59    text: T,
60    link: J,
61    code: B,
62    confirmBtn: L
63  };
64  U = await x("react");
65  c = (t) => t ? t.replace(/<br\s*\/?>/gi, `
66`).replace(/<\/p>/gi, `
67
68`).replace(/<[^>]+>/g, "").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/\n{3,}/g, `
69
70`).trim() : "";
71  v = (t) => {
72    if (!t) return "";
73    const r = t.trim();
74    if (!r.startsWith("{") && !r.startsWith("[")) return t;
75    try {
76      return JSON.stringify(JSON.parse(r), null, 2);
77    } catch {
78      return t;
79    }
80  };
81  h = (t) => {
82    const r = t.trim();
83    if (!r.startsWith("{") && !r.startsWith("[")) return null;
84    try {
85      return JSON.parse(r);
86    } catch {
87      return null;
88    }
89  };
90  f = (t) => t.automationName ? t.error ? `\uC790\uB3D9\uD654 \uC624\uB958 \u2014 ${t.automationName}` : `\uC790\uB3D9\uD654 \uC54C\uB9BC \u2014 ${t.automationName}` : t.recordName ? `\uB808\uCF54\uB4DC \uC54C\uB9BC \u2014 ${t.recordName}` : t.title ? String(t.title) : t.message ? String(t.message) : "JSON \uC54C\uB9BC \uBA54\uC2DC\uC9C0";
91  p = (t) => {
92    const r = t.split(`
93`).find((e) => e.trim().length > 0);
94    return r ? r.trim() : "";
95  };
96  $ = (t) => {
97    const r = c(t.formatMessage);
98    if (r && !r.startsWith("{") && !r.startsWith("[")) return p(r);
99    const e = r ? h(r) : null;
100    if (e) return f(e);
101    const a = (t.rawMessage || t.formatMessage || "").trim(), o = h(a);
102    return o ? f(o) : p(c(a));
103  };
104  b = /(https?:\/\/[^\s<>"']+)/g;
105  Y = /[.,;:!?)\]}]+$/;
106  F = (t) => t.split(b).map((r, e) => {
107    var _a;
108    if (e % 2 === 0) return r;
109    const a = ((_a = r.match(Y)) == null ? void 0 : _a[0]) ?? "", o = a ? r.slice(0, -a.length) : r;
110    return n.jsxs(U.Fragment, {
111      children: [
112        n.jsx("a", {
113          className: s.link,
114          href: o,
115          target: "_blank",
116          rel: "noopener noreferrer",
117          children: o
118        }),
119        a
120      ]
121    }, e);
122  });
123  H = (t) => {
124    const r = c(t.formatMessage);
125    if (r && !r.startsWith("{") && !r.startsWith("[")) return {
126      kind: "text",
127      content: r
128    };
129    const e = (t.rawMessage || t.formatMessage || "").trim();
130    return e ? e.startsWith("{") || e.startsWith("[") ? {
131      kind: "code",
132      content: v(e)
133    } : {
134      kind: "text",
135      content: c(e)
136    } : {
137      kind: "text",
138      content: "\uB0B4\uC6A9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."
139    };
140  };
141  st = ({ item: t, onConfirmed: r }) => {
142    var _a, _b, _c;
143    const e = M(), a = e.isPending, o = k(), i = t.historyId || t._id || "", m = (((_c = (_b = (_a = I({
144      limit: 20
145    }).data) == null ? void 0 : _a.list) == null ? void 0 : _b.find((u) => (u.historyId || u._id) === i)) == null ? void 0 : _c.status) ?? t.status) === "UNREAD", _ = !!t.important, d = $(t), l = H(t), N = () => {
146      i && e.mutate({
147        historyId: i
148      }, {
149        onSuccess: () => {
150          r == null ? void 0 : r();
151        }
152      });
153    };
154    return n.jsxs("div", {
155      className: s.scope,
156      children: [
157        d && n.jsx("h2", {
158          className: s.title,
159          children: d
160        }),
161        n.jsxs("div", {
162          className: s.meta,
163          children: [
164            _ && n.jsx("span", {
165              className: [
166                s.tag,
167                s.tagDanger
168              ].join(" "),
169              children: "\uC911\uC694"
170            }),
171            m ? n.jsx("span", {
172              className: [
173                s.tag,
174                s.tagPrimary
175              ].join(" "),
176              children: "\uBBF8\uC77D\uC74C"
177            }) : n.jsxs("span", {
178              className: [
179                s.tag,
180                s.tagMuted
181              ].join(" "),
182              children: [
183                n.jsx(g, {
184                  "aria-hidden": true
185                }),
186                " \uC77D\uC74C"
187              ]
188            }),
189            n.jsxs("span", {
190              className: s.timeWrap,
191              children: [
192                n.jsx(D, {
193                  "aria-hidden": true
194                }),
195                n.jsx("span", {
196                  children: t.dateCreated ? y(t.dateCreated).format("YYYY.MM.DD HH:mm") : ""
197                })
198              ]
199            }),
200            m && i && !o && n.jsxs("button", {
201              type: "button",
202              className: s.confirmBtn,
203              onClick: N,
204              disabled: a,
205              children: [
206                n.jsx(g, {
207                  "aria-hidden": true
208                }),
209                " ",
210                a ? "\uCC98\uB9AC \uC911..." : "\uC77D\uC74C \uCC98\uB9AC"
211              ]
212            })
213          ]
214        }),
215        n.jsx("div", {
216          className: s.body,
217          children: l.kind === "code" ? n.jsx("pre", {
218            className: s.code,
219            children: l.content
220          }) : n.jsx("p", {
221            className: s.text,
222            children: F(l.content)
223          })
224        })
225      ]
226    });
227  };
228  var Q = {};
229  let X;
230  G = "__demo-";
231  X = () => {
232    const t = typeof W < "u" && Q || {};
233    return t.NODE_ENV === "production" ? t.SANDBOX === "1" || t.INTEGRATION === "1" : true;
234  };
235  at = () => typeof window > "u" || !X() || new URLSearchParams(window.location.search).get("demo-alert") !== "important" ? null : {
236    historyId: `${G}important-1`,
237    status: "UNREAD",
238    important: true,
239    formatMessage: "[DEMO] \uC911\uC694 \uC54C\uB9BC \uC2DC\uC5F0\uC6A9 \uBA54\uC2DC\uC9C0 \u2014 \uC6B4\uC601 \uB370\uC774\uD130 \uC544\uB2D8.",
240    rawMessage: "",
241    dateCreated: new Date(Date.now() - 180 * 1e3).toISOString()
242  };
243});
244export {
245  st as A,
246  G as D,
247  __tla,
248  at as u
249};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.