UNPKG

yskj-lowcode

Version:

YSKJ前端低代码平台库

1,481 lines (1,480 loc) 467 kB
import { defineComponent as W, useCssVars as ea, unref as $, provide as ta, ref as H, computed as oe, resolveComponent as F, openBlock as v, createElementBlock as C, normalizeClass as U, createVNode as k, withCtx as V, Fragment as q, renderList as te, createBlock as ae, withModifiers as kt, createElementVNode as m, toDisplayString as G, createCommentVNode as z, resolveDynamicComponent as Li, getCurrentInstance as Pe, onMounted as ee, nextTick as fe, inject as Z, reactive as J, pushScopeId as se, popScopeId as ie, normalizeStyle as le, h as ge, onUpdated as vs, watch as Le, onBeforeUnmount as ys, onBeforeUpdate as Mi, createTextVNode as Ne, effectScope as Di, renderSlot as bs, withDirectives as ki, vShow as Oi } from "vue"; import ws from "vuedraggable"; const Ot = { install(e) { e.config.globalProperties.demo = function() { return !0; }; } }; var ji = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Cs(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var na = { exports: {} }, Ss = function(t, n) { return function() { for (var s = new Array(arguments.length), i = 0; i < s.length; i++) s[i] = arguments[i]; return t.apply(n, s); }; }, Bi = Ss, Re = Object.prototype.toString; function aa(e) { return Re.call(e) === "[object Array]"; } function Un(e) { return typeof e > "u"; } function Ni(e) { return e !== null && !Un(e) && e.constructor !== null && !Un(e.constructor) && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e); } function Pi(e) { return Re.call(e) === "[object ArrayBuffer]"; } function Gi(e) { return typeof FormData < "u" && e instanceof FormData; } function Fi(e) { var t; return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && e.buffer instanceof ArrayBuffer, t; } function Yi(e) { return typeof e == "string"; } function Ri(e) { return typeof e == "number"; } function xs(e) { return e !== null && typeof e == "object"; } function mt(e) { if (Re.call(e) !== "[object Object]") return !1; var t = Object.getPrototypeOf(e); return t === null || t === Object.prototype; } function zi(e) { return Re.call(e) === "[object Date]"; } function Ui(e) { return Re.call(e) === "[object File]"; } function Hi(e) { return Re.call(e) === "[object Blob]"; } function As(e) { return Re.call(e) === "[object Function]"; } function Vi(e) { return xs(e) && As(e.pipe); } function qi(e) { return typeof URLSearchParams < "u" && e instanceof URLSearchParams; } function Wi(e) { return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, ""); } function Ki() { return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u"; } function sa(e, t) { if (!(e === null || typeof e > "u")) if (typeof e != "object" && (e = [e]), aa(e)) for (var n = 0, a = e.length; n < a; n++) t.call(null, e[n], n, e); else for (var s in e) Object.prototype.hasOwnProperty.call(e, s) && t.call(null, e[s], s, e); } function Hn() { var e = {}; function t(s, i) { mt(e[i]) && mt(s) ? e[i] = Hn(e[i], s) : mt(s) ? e[i] = Hn({}, s) : aa(s) ? e[i] = s.slice() : e[i] = s; } for (var n = 0, a = arguments.length; n < a; n++) sa(arguments[n], t); return e; } function Ji(e, t, n) { return sa(t, function(s, i) { n && typeof s == "function" ? e[i] = Bi(s, n) : e[i] = s; }), e; } function Qi(e) { return e.charCodeAt(0) === 65279 && (e = e.slice(1)), e; } var ve = { isArray: aa, isArrayBuffer: Pi, isBuffer: Ni, isFormData: Gi, isArrayBufferView: Fi, isString: Yi, isNumber: Ri, isObject: xs, isPlainObject: mt, isUndefined: Un, isDate: zi, isFile: Ui, isBlob: Hi, isFunction: As, isStream: Vi, isURLSearchParams: qi, isStandardBrowserEnv: Ki, forEach: sa, merge: Hn, extend: Ji, trim: Wi, stripBOM: Qi }, qe = ve; function Ca(e) { return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } var Ts = function(t, n, a) { if (!n) return t; var s; if (a) s = a(n); else if (qe.isURLSearchParams(n)) s = n.toString(); else { var i = []; qe.forEach(n, function(r, c) { r === null || typeof r > "u" || (qe.isArray(r) ? c = c + "[]" : r = [r], qe.forEach(r, function(f) { qe.isDate(f) ? f = f.toISOString() : qe.isObject(f) && (f = JSON.stringify(f)), i.push(Ca(c) + "=" + Ca(f)); })); }), s = i.join("&"); } if (s) { var o = t.indexOf("#"); o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + s; } return t; }, Xi = ve; function St() { this.handlers = []; } St.prototype.use = function(t, n, a) { return this.handlers.push({ fulfilled: t, rejected: n, synchronous: a ? a.synchronous : !1, runWhen: a ? a.runWhen : null }), this.handlers.length - 1; }; St.prototype.eject = function(t) { this.handlers[t] && (this.handlers[t] = null); }; St.prototype.forEach = function(t) { Xi.forEach(this.handlers, function(a) { a !== null && t(a); }); }; var Zi = St, $i = ve, eo = function(t, n) { $i.forEach(t, function(s, i) { i !== n && i.toUpperCase() === n.toUpperCase() && (t[n] = s, delete t[i]); }); }, _s = function(t, n, a, s, i) { return t.config = n, a && (t.code = a), t.request = s, t.response = i, t.isAxiosError = !0, t.toJSON = function() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }, t; }, jt, Sa; function Is() { if (Sa) return jt; Sa = 1; var e = _s; return jt = function(n, a, s, i, o) { var l = new Error(n); return e(l, a, s, i, o); }, jt; } var Bt, xa; function to() { if (xa) return Bt; xa = 1; var e = Is(); return Bt = function(n, a, s) { var i = s.config.validateStatus; !s.status || !i || i(s.status) ? n(s) : a(e( "Request failed with status code " + s.status, s.config, null, s.request, s )); }, Bt; } var Nt, Aa; function no() { if (Aa) return Nt; Aa = 1; var e = ve; return Nt = e.isStandardBrowserEnv() ? ( // Standard browser envs support document.cookie function() { return { write: function(a, s, i, o, l, r) { var c = []; c.push(a + "=" + encodeURIComponent(s)), e.isNumber(i) && c.push("expires=" + new Date(i).toGMTString()), e.isString(o) && c.push("path=" + o), e.isString(l) && c.push("domain=" + l), r === !0 && c.push("secure"), document.cookie = c.join("; "); }, read: function(a) { var s = document.cookie.match(new RegExp("(^|;\\s*)(" + a + ")=([^;]*)")); return s ? decodeURIComponent(s[3]) : null; }, remove: function(a) { this.write(a, "", Date.now() - 864e5); } }; }() ) : ( // Non standard browser env (web workers, react-native) lack needed support. function() { return { write: function() { }, read: function() { return null; }, remove: function() { } }; }() ), Nt; } var Pt, Ta; function ao() { return Ta || (Ta = 1, Pt = function(t) { return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t); }), Pt; } var Gt, _a; function so() { return _a || (_a = 1, Gt = function(t, n) { return n ? t.replace(/\/+$/, "") + "/" + n.replace(/^\/+/, "") : t; }), Gt; } var Ft, Ia; function io() { if (Ia) return Ft; Ia = 1; var e = ao(), t = so(); return Ft = function(a, s) { return a && !e(s) ? t(a, s) : s; }, Ft; } var Yt, Ea; function oo() { if (Ea) return Yt; Ea = 1; var e = ve, t = [ "age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent" ]; return Yt = function(a) { var s = {}, i, o, l; return a && e.forEach(a.split(` `), function(c) { if (l = c.indexOf(":"), i = e.trim(c.substr(0, l)).toLowerCase(), o = e.trim(c.substr(l + 1)), i) { if (s[i] && t.indexOf(i) >= 0) return; i === "set-cookie" ? s[i] = (s[i] ? s[i] : []).concat([o]) : s[i] = s[i] ? s[i] + ", " + o : o; } }), s; }, Yt; } var Rt, La; function ro() { if (La) return Rt; La = 1; var e = ve; return Rt = e.isStandardBrowserEnv() ? ( // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. function() { var n = /(msie|trident)/i.test(navigator.userAgent), a = document.createElement("a"), s; function i(o) { var l = o; return n && (a.setAttribute("href", l), l = a.href), a.setAttribute("href", l), { href: a.href, protocol: a.protocol ? a.protocol.replace(/:$/, "") : "", host: a.host, search: a.search ? a.search.replace(/^\?/, "") : "", hash: a.hash ? a.hash.replace(/^#/, "") : "", hostname: a.hostname, port: a.port, pathname: a.pathname.charAt(0) === "/" ? a.pathname : "/" + a.pathname }; } return s = i(window.location.href), function(l) { var r = e.isString(l) ? i(l) : l; return r.protocol === s.protocol && r.host === s.host; }; }() ) : ( // Non standard browser envs (web workers, react-native) lack needed support. function() { return function() { return !0; }; }() ), Rt; } var zt, Ma; function Da() { if (Ma) return zt; Ma = 1; var e = ve, t = to(), n = no(), a = Ts, s = io(), i = oo(), o = ro(), l = Is(); return zt = function(c) { return new Promise(function(f, d) { var p = c.data, y = c.headers, b = c.responseType; e.isFormData(p) && delete y["Content-Type"]; var w = new XMLHttpRequest(); if (c.auth) { var h = c.auth.username || "", g = c.auth.password ? unescape(encodeURIComponent(c.auth.password)) : ""; y.Authorization = "Basic " + btoa(h + ":" + g); } var S = s(c.baseURL, c.url); w.open(c.method.toUpperCase(), a(S, c.params, c.paramsSerializer), !0), w.timeout = c.timeout; function x() { if (w) { var I = "getAllResponseHeaders" in w ? i(w.getAllResponseHeaders()) : null, E = !b || b === "text" || b === "json" ? w.responseText : w.response, A = { data: E, status: w.status, statusText: w.statusText, headers: I, config: c, request: w }; t(f, d, A), w = null; } } if ("onloadend" in w ? w.onloadend = x : w.onreadystatechange = function() { !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(x); }, w.onabort = function() { w && (d(l("Request aborted", c, "ECONNABORTED", w)), w = null); }, w.onerror = function() { d(l("Network Error", c, null, w)), w = null; }, w.ontimeout = function() { var E = "timeout of " + c.timeout + "ms exceeded"; c.timeoutErrorMessage && (E = c.timeoutErrorMessage), d(l( E, c, c.transitional && c.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", w )), w = null; }, e.isStandardBrowserEnv()) { var L = (c.withCredentials || o(S)) && c.xsrfCookieName ? n.read(c.xsrfCookieName) : void 0; L && (y[c.xsrfHeaderName] = L); } "setRequestHeader" in w && e.forEach(y, function(E, A) { typeof p > "u" && A.toLowerCase() === "content-type" ? delete y[A] : w.setRequestHeader(A, E); }), e.isUndefined(c.withCredentials) || (w.withCredentials = !!c.withCredentials), b && b !== "json" && (w.responseType = c.responseType), typeof c.onDownloadProgress == "function" && w.addEventListener("progress", c.onDownloadProgress), typeof c.onUploadProgress == "function" && w.upload && w.upload.addEventListener("progress", c.onUploadProgress), c.cancelToken && c.cancelToken.promise.then(function(E) { w && (w.abort(), d(E), w = null); }), p || (p = null), w.send(p); }); }, zt; } var de = ve, ka = eo, lo = _s, co = { "Content-Type": "application/x-www-form-urlencoded" }; function Oa(e, t) { !de.isUndefined(e) && de.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t); } function uo() { var e; return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (e = Da()), e; } function fo(e, t, n) { if (de.isString(e)) try { return (t || JSON.parse)(e), de.trim(e); } catch (a) { if (a.name !== "SyntaxError") throw a; } return (n || JSON.stringify)(e); } var xt = { transitional: { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, adapter: uo(), transformRequest: [function(t, n) { return ka(n, "Accept"), ka(n, "Content-Type"), de.isFormData(t) || de.isArrayBuffer(t) || de.isBuffer(t) || de.isStream(t) || de.isFile(t) || de.isBlob(t) ? t : de.isArrayBufferView(t) ? t.buffer : de.isURLSearchParams(t) ? (Oa(n, "application/x-www-form-urlencoded;charset=utf-8"), t.toString()) : de.isObject(t) || n && n["Content-Type"] === "application/json" ? (Oa(n, "application/json"), fo(t)) : t; }], transformResponse: [function(t) { var n = this.transitional, a = n && n.silentJSONParsing, s = n && n.forcedJSONParsing, i = !a && this.responseType === "json"; if (i || s && de.isString(t) && t.length) try { return JSON.parse(t); } catch (o) { if (i) throw o.name === "SyntaxError" ? lo(o, this, "E_JSON_PARSE") : o; } return t; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, validateStatus: function(t) { return t >= 200 && t < 300; } }; xt.headers = { common: { Accept: "application/json, text/plain, */*" } }; de.forEach(["delete", "get", "head"], function(t) { xt.headers[t] = {}; }); de.forEach(["post", "put", "patch"], function(t) { xt.headers[t] = de.merge(co); }); var ia = xt, po = ve, ho = ia, mo = function(t, n, a) { var s = this || ho; return po.forEach(a, function(o) { t = o.call(s, t, n); }), t; }, Ut, ja; function Es() { return ja || (ja = 1, Ut = function(t) { return !!(t && t.__CANCEL__); }), Ut; } var Ba = ve, Ht = mo, go = Es(), vo = ia; function Vt(e) { e.cancelToken && e.cancelToken.throwIfRequested(); } var yo = function(t) { Vt(t), t.headers = t.headers || {}, t.data = Ht.call( t, t.data, t.headers, t.transformRequest ), t.headers = Ba.merge( t.headers.common || {}, t.headers[t.method] || {}, t.headers ), Ba.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], function(s) { delete t.headers[s]; } ); var n = t.adapter || vo.adapter; return n(t).then(function(s) { return Vt(t), s.data = Ht.call( t, s.data, s.headers, t.transformResponse ), s; }, function(s) { return go(s) || (Vt(t), s && s.response && (s.response.data = Ht.call( t, s.response.data, s.response.headers, t.transformResponse ))), Promise.reject(s); }); }, ue = ve, Ls = function(t, n) { n = n || {}; var a = {}, s = ["url", "method", "data"], i = ["headers", "auth", "proxy", "params"], o = [ "baseURL", "transformRequest", "transformResponse", "paramsSerializer", "timeout", "timeoutMessage", "withCredentials", "adapter", "responseType", "xsrfCookieName", "xsrfHeaderName", "onUploadProgress", "onDownloadProgress", "decompress", "maxContentLength", "maxBodyLength", "maxRedirects", "transport", "httpAgent", "httpsAgent", "cancelToken", "socketPath", "responseEncoding" ], l = ["validateStatus"]; function r(d, p) { return ue.isPlainObject(d) && ue.isPlainObject(p) ? ue.merge(d, p) : ue.isPlainObject(p) ? ue.merge({}, p) : ue.isArray(p) ? p.slice() : p; } function c(d) { ue.isUndefined(n[d]) ? ue.isUndefined(t[d]) || (a[d] = r(void 0, t[d])) : a[d] = r(t[d], n[d]); } ue.forEach(s, function(p) { ue.isUndefined(n[p]) || (a[p] = r(void 0, n[p])); }), ue.forEach(i, c), ue.forEach(o, function(p) { ue.isUndefined(n[p]) ? ue.isUndefined(t[p]) || (a[p] = r(void 0, t[p])) : a[p] = r(void 0, n[p]); }), ue.forEach(l, function(p) { p in n ? a[p] = r(t[p], n[p]) : p in t && (a[p] = r(void 0, t[p])); }); var u = s.concat(i).concat(o).concat(l), f = Object.keys(t).concat(Object.keys(n)).filter(function(p) { return u.indexOf(p) === -1; }); return ue.forEach(f, c), a; }; const bo = "axios", wo = "0.21.4", Co = "Promise based HTTP client for the browser and node.js", So = "index.js", xo = { test: "grunt test", start: "node ./sandbox/server.js", build: "NODE_ENV=production grunt build", preversion: "npm test", version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json", postversion: "git push && git push --tags", examples: "node ./examples/server.js", coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", fix: "eslint --fix lib/**/*.js" }, Ao = { type: "git", url: "https://github.com/axios/axios.git" }, To = [ "xhr", "http", "ajax", "promise", "node" ], _o = "Matt Zabriskie", Io = "MIT", Eo = { url: "https://github.com/axios/axios/issues" }, Lo = "https://axios-http.com", Mo = { coveralls: "^3.0.0", "es6-promise": "^4.2.4", grunt: "^1.3.0", "grunt-banner": "^0.6.0", "grunt-cli": "^1.2.0", "grunt-contrib-clean": "^1.1.0", "grunt-contrib-watch": "^1.0.0", "grunt-eslint": "^23.0.0", "grunt-karma": "^4.0.0", "grunt-mocha-test": "^0.13.3", "grunt-ts": "^6.0.0-beta.19", "grunt-webpack": "^4.0.2", "istanbul-instrumenter-loader": "^1.0.0", "jasmine-core": "^2.4.1", karma: "^6.3.2", "karma-chrome-launcher": "^3.1.0", "karma-firefox-launcher": "^2.1.0", "karma-jasmine": "^1.1.1", "karma-jasmine-ajax": "^0.1.13", "karma-safari-launcher": "^1.0.0", "karma-sauce-launcher": "^4.3.6", "karma-sinon": "^1.0.5", "karma-sourcemap-loader": "^0.3.8", "karma-webpack": "^4.0.2", "load-grunt-tasks": "^3.5.2", minimist: "^1.2.0", mocha: "^8.2.1", sinon: "^4.5.0", "terser-webpack-plugin": "^4.2.3", typescript: "^4.0.5", "url-search-params": "^0.10.0", webpack: "^4.44.2", "webpack-dev-server": "^3.11.0" }, Do = { "./lib/adapters/http.js": "./lib/adapters/xhr.js" }, ko = "dist/axios.min.js", Oo = "dist/axios.min.js", jo = "./index.d.ts", Bo = { "follow-redirects": "^1.14.0" }, No = [ { path: "./dist/axios.min.js", threshold: "5kB" } ], Po = { name: bo, version: wo, description: Co, main: So, scripts: xo, repository: Ao, keywords: To, author: _o, license: Io, bugs: Eo, homepage: Lo, devDependencies: Mo, browser: Do, jsdelivr: ko, unpkg: Oo, typings: jo, dependencies: Bo, bundlesize: No }; var Ms = Po, oa = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(e, t) { oa[e] = function(a) { return typeof a === e || "a" + (t < 1 ? "n " : " ") + e; }; }); var Na = {}, Go = Ms.version.split("."); function Ds(e, t) { for (var n = t ? t.split(".") : Go, a = e.split("."), s = 0; s < 3; s++) { if (n[s] > a[s]) return !0; if (n[s] < a[s]) return !1; } return !1; } oa.transitional = function(t, n, a) { var s = n && Ds(n); function i(o, l) { return "[Axios v" + Ms.version + "] Transitional option '" + o + "'" + l + (a ? ". " + a : ""); } return function(o, l, r) { if (t === !1) throw new Error(i(l, " has been removed in " + n)); return s && !Na[l] && (Na[l] = !0, console.warn( i( l, " has been deprecated since v" + n + " and will be removed in the near future" ) )), t ? t(o, l, r) : !0; }; }; function Fo(e, t, n) { if (typeof e != "object") throw new TypeError("options must be an object"); for (var a = Object.keys(e), s = a.length; s-- > 0; ) { var i = a[s], o = t[i]; if (o) { var l = e[i], r = l === void 0 || o(l, i, e); if (r !== !0) throw new TypeError("option " + i + " must be " + r); continue; } if (n !== !0) throw Error("Unknown option " + i); } } var Yo = { isOlderVersion: Ds, assertOptions: Fo, validators: oa }, ks = ve, Ro = Ts, Pa = Zi, Ga = yo, At = Ls, Os = Yo, We = Os.validators; function ot(e) { this.defaults = e, this.interceptors = { request: new Pa(), response: new Pa() }; } ot.prototype.request = function(t) { typeof t == "string" ? (t = arguments[1] || {}, t.url = arguments[0]) : t = t || {}, t = At(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get"; var n = t.transitional; n !== void 0 && Os.assertOptions(n, { silentJSONParsing: We.transitional(We.boolean, "1.0.0"), forcedJSONParsing: We.transitional(We.boolean, "1.0.0"), clarifyTimeoutError: We.transitional(We.boolean, "1.0.0") }, !1); var a = [], s = !0; this.interceptors.request.forEach(function(d) { typeof d.runWhen == "function" && d.runWhen(t) === !1 || (s = s && d.synchronous, a.unshift(d.fulfilled, d.rejected)); }); var i = []; this.interceptors.response.forEach(function(d) { i.push(d.fulfilled, d.rejected); }); var o; if (!s) { var l = [Ga, void 0]; for (Array.prototype.unshift.apply(l, a), l = l.concat(i), o = Promise.resolve(t); l.length; ) o = o.then(l.shift(), l.shift()); return o; } for (var r = t; a.length; ) { var c = a.shift(), u = a.shift(); try { r = c(r); } catch (f) { u(f); break; } } try { o = Ga(r); } catch (f) { return Promise.reject(f); } for (; i.length; ) o = o.then(i.shift(), i.shift()); return o; }; ot.prototype.getUri = function(t) { return t = At(this.defaults, t), Ro(t.url, t.params, t.paramsSerializer).replace(/^\?/, ""); }; ks.forEach(["delete", "get", "head", "options"], function(t) { ot.prototype[t] = function(n, a) { return this.request(At(a || {}, { method: t, url: n, data: (a || {}).data })); }; }); ks.forEach(["post", "put", "patch"], function(t) { ot.prototype[t] = function(n, a, s) { return this.request(At(s || {}, { method: t, url: n, data: a })); }; }); var zo = ot, qt, Fa; function js() { if (Fa) return qt; Fa = 1; function e(t) { this.message = t; } return e.prototype.toString = function() { return "Cancel" + (this.message ? ": " + this.message : ""); }, e.prototype.__CANCEL__ = !0, qt = e, qt; } var Wt, Ya; function Uo() { if (Ya) return Wt; Ya = 1; var e = js(); function t(n) { if (typeof n != "function") throw new TypeError("executor must be a function."); var a; this.promise = new Promise(function(o) { a = o; }); var s = this; n(function(o) { s.reason || (s.reason = new e(o), a(s.reason)); }); } return t.prototype.throwIfRequested = function() { if (this.reason) throw this.reason; }, t.source = function() { var a, s = new t(function(o) { a = o; }); return { token: s, cancel: a }; }, Wt = t, Wt; } var Kt, Ra; function Ho() { return Ra || (Ra = 1, Kt = function(t) { return function(a) { return t.apply(null, a); }; }), Kt; } var Jt, za; function Vo() { return za || (za = 1, Jt = function(t) { return typeof t == "object" && t.isAxiosError === !0; }), Jt; } var Ua = ve, qo = Ss, gt = zo, Wo = Ls, Ko = ia; function Bs(e) { var t = new gt(e), n = qo(gt.prototype.request, t); return Ua.extend(n, gt.prototype, t), Ua.extend(n, t), n; } var Ae = Bs(Ko); Ae.Axios = gt; Ae.create = function(t) { return Bs(Wo(Ae.defaults, t)); }; Ae.Cancel = js(); Ae.CancelToken = Uo(); Ae.isCancel = Es(); Ae.all = function(t) { return Promise.all(t); }; Ae.spread = Ho(); Ae.isAxiosError = Vo(); na.exports = Ae; na.exports.default = Ae; var Jo = na.exports, Qo = Jo; const Xo = /* @__PURE__ */ Cs(Qo), Ke = window, Q = Xo.create({ // @ts-ignore timeout: 15e3, responseType: "json", withCredentials: !0 }); Q.interceptors.request.use((e) => { var a; e.baseURL = (a = Ke.$lowcodeConfig) == null ? void 0 : a.baseUrl, e.data || (e.data = {}), e.method == "get" && (e.params = e.data); const t = Ke.$lowcodeConfig.accesstoken; t && (e.headers.Authorization = `Bearer ${t}`); const n = Ke.$lowcodeConfig.tenantId ? Ke.$lowcodeConfig.tenantId : Ke.$lowcodeConfig.tempTenant.id; return n && (e.headers.tenantId = n), e.headers.requestId = (/* @__PURE__ */ new Date()).getTime(), e.headers.ysNetType = Ke.$lowcodeConfig.ysNetType, e; }); Q.interceptors.response.use( (e) => { if (e) { if (e.data.code === 0) return e.data; if (e.data.code === 201) return e.data; e.data.code; } }, (e) => { e.response && e.response.status; } ); const Zo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAAXNSR0IArs4c6QAAADxJREFUKFNjZKj6f5qBgcGEgTRwhpGh6v9/0vRAVFOosY2REW4ryAXIfJAEuljV//8QG0c1DqLAISvJAQDNwGdFlBZVsAAAAABJRU5ErkJggg==", $o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAAXNSR0IArs4c6QAAADZJREFUKFNjZKj6f5qBgcGEgTRwhpGh6v9/0vRAVFOosY2RkSRbq/7/h9g4qhEz3AYscMhKcgCUpTdFDuvIFQAAAABJRU5ErkJggg==", er = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAAXNSR0IArs4c6QAAADtJREFUKFNjZKj6f5qBgcGEgTRwhpGh6v9/0vRAVFOosY2REautINdgk6v6/x9i46hGzIAbsMAhK8kBAAE6T0Uxo3QNAAAAAElFTkSuQmCC", Qt = {}, tr = { key: 0, class: "handle-content" }, nr = ["onClick"], ar = { class: "img-d flex-c" }, sr = ["src"], ir = ["onClick"], or = /* @__PURE__ */ W({ __name: "index", props: { drawingList: { type: Array }, // 定义栅格中的元素边距 margin: { type: Array, default: () => [24, 24] }, // 定义栅格系统的列数,其值需为自然数 colNum: { type: Number, default: 24 }, // 每行的高度,单位像素 rowHeight: { type: Number, default: 2 }, // 标识栅格中的元素是否可拖拽 isDraggable: { type: Boolean, default: !0 }, // isResizable isResizable: { type: Boolean, default: !0 }, // 是否需要请求接口 needAjax: { type: Boolean, default: !0 }, // 页面配置 pageConfig: { type: Object, default: () => { } }, // 标识布局是否垂直压缩 verticalCompact: { type: Boolean, default: !0 }, // 标识是否使用CSS属性 useCssTransforms: { type: Boolean, default: !0 }, // 当前布局类型 preview - 预览 edit - 编辑 type: { type: String, default: "preview" }, boxOffsetWidth: { type: Number }, parentBoxWidth: { type: Number } }, emits: [ "changeRow", "handleDelItem", "haneleClickItem", "handleClick" ], setup(e, { expose: t, emit: n }) { const a = e; ea((h) => ({ "6ab4671c": $(r), "608ed208": $(c) })), Reflect.set(Qt, "needAjax", a.needAjax), Reflect.set( Qt, "pageConfig", a.pageConfig && a.pageConfig.type ? a.pageConfig : { hasMustAuth: !0, pageId: "", type: 1, objId: "" } ); const s = Object.assign(Qt, window.$lowcodeConfig); ta("$lowcode", s); const i = H(), o = H(), l = H(), r = oe(() => `-${a.boxOffsetWidth ? a.boxOffsetWidth : 0}px`), c = oe(() => a.parentBoxWidth <= 1200 ? `${a.parentBoxWidth - 48}px` : `${a.parentBoxWidth}px`), u = (h, g) => { g === 24 ? h.x = 0 : g === 16 && (h.x = h.x >= 8 ? 8 : 0), h.w = g, n("changeRow", h); }, f = (h) => { let g = h.value, S = 33; return g === 8 ? S = 33 : g === 16 ? S = 66 : S = 100, new URL((/* @__PURE__ */ Object.assign({ "../../Utils/images/ratio100.png": Zo, "../../Utils/images/ratio33.png": $o, "../../Utils/images/ratio66.png": er }))[`../../Utils/images/ratio${S}.png`], self.location).href; }, d = (h, g) => { n("handleDelItem", h, g); }, p = (h) => { n("haneleClickItem", h); }, y = (h) => { n("handleClick", "yskj", h); }, b = (h) => { n("handleClick", "yskt", h); }, w = (h) => h; return t({ gridLayoutRef: o, gridItemRef: i }), (h, g) => { const S = F("a-tooltip"), x = F("ys-icon"), L = F("grid-item"), I = F("grid-layout"); return v(), C("div", { ref_key: "layoutRef", ref: l, class: U(["low-grid-layout"]) }, [ k(I, { ref_key: "gridLayoutRef", ref: o, layout: a.drawingList, margin: a.margin, "col-num": a.colNum, "row-height": a.rowHeight, "is-draggable": a.isDraggable, "is-resizable": a.isResizable, "vertical-compact": a.verticalCompact, "use-css-transforms": a.useCssTransforms }, { default: V(() => [ (v(!0), C(q, null, te(a.drawingList, (E, A) => (v(), ae(L, { x: E.x, y: E.y, w: E.w, h: E.h, i: E.i, key: E.i, onClick: kt((M) => p(E), ["stop"]), ref_for: !0, ref_key: "gridItemRef", ref: i, class: U([ "default-border", a.type === "edit" ? "hover-d" : "", a.type === "edit" && E.active ? "active-d" : "", a.type === "edit" && E.error ? "error-d" : "", E.tag === "low-banner" && a.pageConfig.type == 4 && a.type !== "edit" && E.x == 0 && E.y == 0 && a.parentBoxWidth > 1200 ? "full-screen" : "" ]), "drag-ignore-from": ".no-drag" }, { default: V(() => [ a.type === "edit" ? (v(), C("div", tr, [ E.params && E.params.data && E.params.data.rowType ? (v(!0), C(q, { key: 0 }, te(E.params.data.rowType.options, (M, P) => (v(), C("div", { key: P, class: "controls handle-item", onClick: kt((B) => u(E, M.value), ["stop"]) }, [ k(S, { placement: "top" }, { title: V(() => [ m("span", null, "宽度占比:" + G(M.label), 1) ]), default: V(() => [ m("div", ar, [ m("img", { src: f(M), alt: "" }, null, 8, sr) ]) ]), _: 2 }, 1024) ], 8, nr))), 128)) : z("", !0), m("div", { class: "del handle-item flex-c", onClick: kt((M) => d(E, A), ["stop"]) }, [ k(x, { "icon-class": "icon-shanchu" }) ], 8, ir) ])) : z("", !0), m("div", { class: U([ "grid-com-item fadeIn", a.pageConfig.type == 4 ? "padding12" : "" ]) }, [ (v(), ae(Li(w(E.tag)), { element: E, key: E.i, layoutType: a.type, onHandleClick: y, onYsktEvent: b }, null, 40, ["element", "layoutType"])) ], 2) ]), _: 2 }, 1032, ["x", "y", "w", "h", "i", "onClick", "class"]))), 128)) ]), _: 1 }, 8, ["layout", "margin", "col-num", "row-height", "is-draggable", "is-resizable", "vertical-compact", "use-css-transforms"]) ], 512); }; } }); const K = (e, t) => { const n = e.__vccOpts || e; for (const [a, s] of t) n[a] = s; return n; }, Ns = /* @__PURE__ */ K(or, [["__scopeId", "data-v-f2e07d09"]]), Xt = { install(e) { e.component("low-grid-layout", Ns); } }, rr = /* @__PURE__ */ W({ __name: "index", props: { drawingList: { type: Array }, type: { type: String }, isDraggable: { type: Boolean }, isResizable: { type: Boolean }, needAjax: { type: Boolean }, // 页面配置 pageConfig: { type: Object, default: () => { } } }, emits: ["handleClick"], setup(e, { emit: t }) { const n = e; ea((f) => ({ "588523b5": $(l) })); const a = oe(() => { var d; let f = (d = n.drawingList) == null ? void 0 : d.find( (p) => p.x == 0 && p.y == 0 ); return n.pageConfig.type == 4 && n.type !== "edit" && f && f.tag === "low-banner" ? !(f.params.data && f.params.data.titleType.value && f.params.data.titleType.showTitle) : !1; }); Pe(); const s = H(), i = H(), o = H(), l = oe(() => `${o.value - 160 + 48}px`), r = oe(() => (n.drawingList && n.drawingList.map((f) => { f.params = typeof f.params == "string" ? JSON.parse(f.params) : f.params; }), n.drawingList || [])); window.onresize = () => { u(); }; const c = (f, d) => { n.type != "edit" && t("handleClick", f, d); }; H(!0), ee(() => { fe(() => { s.value && setTimeout(() => { u(); }, 10); }); }); const u = () => { let f = s.value.parentNode; o.value = f.getBoundingClientRect().width, i.value = o.value >= 1696 ? (o.value - 1536) / 2 : o.value < 1690 && o.value > 1200 ? 80 : 0; }; return (f, d) => (v(), C("div", { ref_key: "previewRef", ref: s, class: U([ "low-preview", n.pageConfig.type == 4 ? o.value >= 1696 ? "width1536" : o.value < 1696 && o.value >= 1360 ? "dynamic-width" : "width1200" : "width100", $(a) ? "negative-top" : "" ]) }, [ k(Ns, { drawingList: $(r), type: n.type, isDraggable: n.isDraggable, isResizable: n.isResizable, onHandleClick: c, needAjax: n.needAjax, pageConfig: n.pageConfig, boxOffsetWidth: i.value, parentBoxWidth: o.value }, null, 8, ["drawingList", "type", "isDraggable", "isResizable", "needAjax", "pageConfig", "boxOffsetWidth", "parentBoxWidth"]) ], 2)); } }); const lr = /* @__PURE__ */ K(rr, [["__scopeId", "data-v-9b2ab34c"]]), Zt = { install(e) { e.component("low-preview", l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u4o2kG7btguWZVnd3d2IyRSYec9kSpk83rXafwG1mmdew79qggAAAABJRU5ErkJggg==", Se = (e) => (se("data-v-0cd6a93b"), e = e(), ie(), e), cr = { class: "low-cms24" }, dr = { class: "cms_all_main cms-left" }, ur = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("div", { class: "top_tab" }, [ /* @__PURE__ */ m("div", { class: "title" }, "新闻") ], -1)), fr = { key: 0, class: "card_tab loading" }, pr = { key: 0, class: "card_tab" }, hr = ["onClick"], mr = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("span", { class: "circular" }, null, -1)), gr = ["title"], vr = { class: "title" }, yr = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("span", { class: "read" }, null, -1)), br = { key: 0, class: "confirmOver" }, wr = { key: 1, class: "topping" }, Cr = { class: "item_right" }, Sr = { class: "right_time" }, xr = { key: 1, class: "card_tab emptyCont" }, Ar = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("img", { src: ze, alt: "" }, null, -1)), Tr = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("div", null, "暂无数据", -1)), _r = [ Ar, Tr ], Ir = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("span", null, "更多", -1)), Er = { class: "cms_all_main" }, Lr = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("div", { class: "top_tab" }, [ /* @__PURE__ */ m("div", { class: "title" }, "通知") ], -1)), Mr = { key: 0, class: "card_tab loading" }, Dr = { key: 0, class: "card_tab" }, kr = ["onClick"], Or = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("span", { class: "circular" }, null, -1)), jr = ["title"], Br = { class: "title" }, Nr = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("span", { class: "read" }, null, -1)), Pr = { key: 0, class: "confirmOver" }, Gr = { key: 1, class: "topping" }, Fr = { class: "item_right" }, Yr = { class: "right_time" }, Rr = { key: 1, class: "card_tab emptyCont" }, zr = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("img", { src: ze, alt: "" }, null, -1)), Ur = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("div", null, "暂无数据", -1)), Hr = [ zr, Ur ], Vr = /* @__PURE__ */ Se(() => /* @__PURE__ */ m("span", null, "更多", -1)), qr = /* @__PURE__ */ W({ __name: "index", props: { element: { type: Object } }, emits: ["handleClick"], setup(e, { emit: t }) { const n = e, a = Z("$lowcode"); ee(() => { n.element.dragEnd && a.needAjax && (l("1001", "news"), l("2001", "notice")); }); const s = J({ newsList: [], noticeList: [], newsLoading: !1, noticeLoading: !1 }), i = (r) => { a.pageConfig.type == 3 && (r == "news" && t("handleClick", { type: "routeJump", url: "/cms2/newslist/index?type=1001&key=personal" }), r == "notice" && t("handleClick", { type: "routeJump", url: "/cms2/newslist/index?type=2001&key=personal" })), a.pageConfig.type == 8 && (r == "news" && t("handleClick", { type: "routeJump", url: "/cms2/newslist/index?type=1001&key=jdHome" }), r == "notice" && t("handleClick", { type: "routeJump", url: "/cms2/newslist/index?type=2001&key=jdHome" })); }, o = (r, c) => { a.pageConfig.type == 3 && (c == "news" && t("handleClick", { type: "routeJump", url: `/cms2/newslist/details?id=${r.id}&type=${r.noticeType}&source=list&style=1&key=personal` }), c == "notice" && t("handleClick", { type: "routeJump", url: `/cms2/newslist/details?id=${r.id}&type=${r.noticeType}&source=list&style=1&key=personal` })), a.pageConfig.type == 8 && (c == "news" && t("handleClick", { type: "routeJump", url: `/cms2/newslist/details?id=${r.id}&type=${r.noticeType}&source=list&style=1&key=jdHome` }), c == "notice" && t("handleClick", { type: "routeJump", url: `/cms2/newslist/details?id=${r.id}&type=${r.noticeType}&source=list&style=1&key=jdHome` })); }, l = (r, c) => { c == "news" && (s.newsLoading = !0), c == "notice" && (s.noticeLoading = !0), Q({ url: "/base/api/cms2/open/query/page", method: "post", data: { pageIndex: 1, pageSize: 9, needRead: !0, newLevel: 2, noticeType: r, orgId: a.userInfo.orgId } }).then((u) => { c == "news" && (u.success ? s.newsList = u.data : s.newsList = []), c == "notice" && (u.success ? s.noticeList = u.data : s.noticeList = []), s.newsLoading = !1, s.noticeLoading = !1; }).catch(() => { s.newsLoading = !1, s.noticeLoading = !1, s.newsList = []; }); }; return (r, c) => { const u = F("a-spin"), f = F("ys-icon"); return v(), C("div", cr, [ m("div", dr, [ ur, s.newsLoading ? (v(), C("div", fr, [ k(u, { tip: "加载中..." }) ])) : (v(), C(q, { key: 1 }, [ s.newsList.length ? (v(), C("div", pr, [ (v(!0), C(q, null, te(s.newsList, (d, p) => (v(), C("div", { class: "tab_item", key: p }, [ m("div", { class: "item_left", onClick: (y) => o(d, "news") }, [ mr, m("div", { class: U(["left_title", d.isRead ? "" : "isRead"]), title: d.title }, [ m("span", vr, G(d.title), 1), yr, d.confirm === 1 && d.confirmOver === 0 ? (v(), C("div", br, " 待确认 ")) : z("", !0), d.topState ? (v(), C("div", wr, " 置顶 ")) : z("", !0) ], 10, gr) ], 8, hr), m("div", Cr, [ m("div", Sr, G(d.publishTime ? d.publishTime.substr(0, 10) : "--"), 1) ]) ]))), 128)) ])) : (v(), C("div", xr, _r)) ], 64)), m("div", { class: "more", onClick: c[0] || (c[0] = (d) => i("news")) }, [ Ir, k(f, { iconClass: "icon-youjiantou", class: "icon-youjiantou" }) ]) ]), m("div", Er, [ Lr, s.noticeLoading ? (v(), C("div", Mr, [ k(u, { tip: "加载中..." }) ])) : (v(), C(q, { key: 1 }, [ s.noticeList.length ? (v(), C("div", Dr, [ (v(!0), C(q, null, te(s.noticeList, (d, p) => (v(), C("div", { class: "tab_item", key: p }, [ m("div", { class: "item_left", onClick: (y) => o(d, "notice") }, [ Or, m("div", { class: U(["left_title", d.isRead ? "" : "isRead"]), title: d.title }, [ m("span", Br, G(d.title), 1), Nr, d.confirm === 1 && d.confirmOver === 0 ? (v(), C("div", Pr, " 待确认 ")) : z("", !0), d.topState ? (v(), C("div", Gr, " 置顶 ")) : z("", !0) ], 10, jr) ], 8, kr), m("div", Fr, [ m("div", Yr, G(d.publishTime ? d.publishTime.substr(0, 10) : "--"), 1) ]) ]))), 128)) ])) : (v(), C("div", Rr, Hr)) ], 64)), m("div", { class: "more", onClick: c[1] || (c[1] = (d) => i("notice")) }, [ Vr, k(f, { iconClass: "icon-youjiantou", class: "icon-youjiantou" }) ]) ]) ]); }; } }); const Wr = /* @__PURE__ */ K(qr, [["__scopeId", "data-v-0cd6a93b"]]), $t = { install(e) { e.component("low-cms24", Wr); } }, rt = (e) => (se("data-v-b94790f5"), e = e(), ie(), e), Kr = { class: "low-cms12" }, Jr = { class: "cms_all_main" }, Qr = { class: "top_tab" }, Xr = { key: 0, class: "card_tab loading" }, Zr = { key: 0, class: "card_tab" }, $r = ["onClick"], el = /* @__PURE__ */ rt(() => /* @__PURE__ */ m("span", { class: "circular" }, null, -1)), tl = ["title"], nl = { class: "title" }, al = /* @__PURE__ */ rt(() => /* @__PURE__ */ m("span", { class: "read" }, null, -1)), sl = { key: 0, class: "confirmOver" }, il = { key: 1, class: "topping" }, ol = { class: "item_right" }, rl = { class: "right_time" }, ll = { key: 1, class: "card_tab emptyCont" }, cl = /* @__PURE__ */ rt(() => /* @__PURE__ */ m("img", { src: ze, alt: "" }, null, -1)), dl = /* @__PURE__ */ rt(() => /* @__PURE__ */ m("div", null, "暂无数据", -1)), ul = [ cl, dl ], fl = /* @__PURE__ */ rt(() => /* @__PURE__ */ m("span", null, "更多", -1)), pl = /* @__PURE__ */ W({ __name: "index", props: { element: { type: Object } }, emits: ["handleClick"], setup(e, { emit: t }) { const n = e, a = Z("$lowcode"); ee(() => { n.element.dragEnd && a.needAjax && r(s.activeKey); }); const s = J({ tabList: [], loading: !1, activeKey: "1001", processList: [ { label: "新闻", type: "news", value: "1001" }, { label: "通知", type: "notice", value: "2001" } ] }), i = () => { n.element.dragEnd && a.needAjax && r(s.activeKey); }, o = () => { a.pageConfig.type == 3 && t("handleClick", { type: "routeJump", url: `/cms2/newslist/index?type=${s.activeKey}&key=personal` }), a.pageConfig.type == 8 && t("handleClick", { type: "routeJump", url: `/cms2/newslist/index?type=${s.activeKey}&key=jdHome` }); }, l = (c) => { a.pageConfig.type == 3 && t("handleClick", { type: "routeJump", url: `/cms2/newslist/details?id=${c.id}&type=${c.noticeType}&source=list&style=1&key=personal` }), a.pageConfig.type == 8 && t("handleClick", { type: "routeJump", url: `/cms2/newslist/details?id=${c.id}&type=${c.noticeType}&source=list&style=1&key=jdHome` }); }, r = (c) => { s.loading = !0, Q({ url: "/base/api/cms2/open/query/page", method: "post", data: { pageIndex: 1, pageSize: 9, needRead: !0, newLevel: 2, noticeType: c, orgId: a.userInfo.orgId } }).then((u) => { u.success ? s.tabList = u.data : s.tabList = [], s.loading = !1; }).catch(() => { s.loading = !1, s.tabList = []; }); }; return (c, u) => { const f = F("a-tab-pane"), d = F("a-tabs"), p = F("a-spin"), y = F("ys-icon"); return v(), C("div", Kr, [ m("div", Jr, [ m("div", Qr, [ k(d, { activeKey: s.activeKey, "onUpdate:activeKey": u[0] || (u[0] = (b) => s.activeKey = b), onChange: i }, { default: V(() => [ (v(!0), C(q, null, te(s.processList, (b) => (v(), ae(f, { key: b.value, tab: b.label