v-dashkit
Version:
This template should help get you started developing with Vue 3 in Vite.
657 lines (654 loc) • 25.2 kB
JavaScript
import { D as h, O as p } from "./utils.esm-8765b9e6.js";
import { ref as C, readonly as ie, getCurrentInstance as oe, onMounted as ae, nextTick as ue, watch as se, mergeProps as V } from "vue";
function b(t) {
"@babel/helpers - typeof";
return b = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
return typeof e;
} : function(e) {
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, b(t);
}
function N(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(t, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function G(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
e % 2 ? N(Object(n), !0).forEach(function(r) {
le(t, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : N(Object(n)).forEach(function(r) {
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return t;
}
function le(t, e, n) {
return e = ce(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
function ce(t) {
var e = fe(t, "string");
return b(e) == "symbol" ? e : String(e);
}
function fe(t, e) {
if (b(t) != "object" || !t)
return t;
var n = t[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(t, e || "default");
if (b(r) != "object")
return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (e === "string" ? String : Number)(t);
}
function de(t) {
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
oe() ? ae(t) : e ? t() : ue(t);
}
var pe = 0;
function R(t) {
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = C(!1), r = C(t), i = C(null), u = h.isClient() ? window.document : void 0, l = e.document, o = l === void 0 ? u : l, a = e.immediate, c = a === void 0 ? !0 : a, s = e.manual, v = s === void 0 ? !1 : s, d = e.name, m = d === void 0 ? "style_".concat(++pe) : d, g = e.id, y = g === void 0 ? void 0 : g, O = e.media, w = O === void 0 ? void 0 : O, D = e.nonce, Q = D === void 0 ? void 0 : D, x = e.props, X = x === void 0 ? {} : x, E = function() {
}, U = function(Z) {
var ee = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (o) {
var S = G(G({}, X), ee), te = S.name || m, B = S.id || y, ne = S.nonce || Q;
i.value = o.querySelector('style[data-primevue-style-id="'.concat(te, '"]')) || o.getElementById(B) || o.createElement("style"), i.value.isConnected || (r.value = Z || t, h.setAttributes(i.value, {
type: "text/css",
id: B,
media: w,
nonce: ne
}), o.head.appendChild(i.value), h.setAttribute(i.value, "data-primevue-style-id", m), h.setAttributes(i.value, S)), !n.value && (E = se(r, function(re) {
i.value.textContent = re;
}, {
immediate: !0
}), n.value = !0);
}
}, Y = function() {
!o || !n.value || (E(), h.isExist(i.value) && o.head.removeChild(i.value), n.value = !1);
};
return c && !v && de(U), {
id: y,
name: m,
css: r,
unload: Y,
load: U,
isLoaded: ie(n)
};
}
function _(t) {
"@babel/helpers - typeof";
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
return typeof e;
} : function(e) {
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, _(t);
}
function me(t, e) {
return he(t) || ye(t, e) || ge(t, e) || ve();
}
function ve() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function ge(t, e) {
if (t) {
if (typeof t == "string")
return K(t, e);
var n = Object.prototype.toString.call(t).slice(8, -1);
if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set")
return Array.from(t);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return K(t, e);
}
}
function K(t, e) {
(e == null || e > t.length) && (e = t.length);
for (var n = 0, r = new Array(e); n < e; n++)
r[n] = t[n];
return r;
}
function ye(t, e) {
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
if (n != null) {
var r, i, u, l, o = [], a = !0, c = !1;
try {
if (u = (n = n.call(t)).next, e === 0) {
if (Object(n) !== n)
return;
a = !1;
} else
for (; !(a = (r = u.call(n)).done) && (o.push(r.value), o.length !== e); a = !0)
;
} catch (s) {
c = !0, i = s;
} finally {
try {
if (!a && n.return != null && (l = n.return(), Object(l) !== l))
return;
} finally {
if (c)
throw i;
}
}
return o;
}
}
function he(t) {
if (Array.isArray(t))
return t;
}
function F(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(t, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function I(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
e % 2 ? F(Object(n), !0).forEach(function(r) {
be(t, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : F(Object(n)).forEach(function(r) {
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return t;
}
function be(t, e, n) {
return e = _e(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
function _e(t) {
var e = Pe(t, "string");
return _(e) == "symbol" ? e : String(e);
}
function Pe(t, e) {
if (_(t) != "object" || !t)
return t;
var n = t[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(t, e || "default");
if (_(r) != "object")
return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (e === "string" ? String : Number)(t);
}
var $e = `
.p-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.p-hidden-accessible input,
.p-hidden-accessible select {
transform: scale(0);
}
.p-overflow-hidden {
overflow: hidden;
padding-right: var(--scrollbar-width);
}
`, Oe = {}, Se = {}, W = {
name: "base",
css: $e,
classes: Oe,
inlineStyles: Se,
loadStyle: function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
return this.css ? R(this.css, I({
name: this.name
}, e)) : {};
},
getStyleSheet: function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (this.css) {
var r = Object.entries(n).reduce(function(i, u) {
var l = me(u, 2), o = l[0], a = l[1];
return i.push("".concat(o, '="').concat(a, '"')) && i;
}, []).join(" ");
return '<style type="text/css" data-primevue-style-id="'.concat(this.name, '" ').concat(r, ">").concat(this.css).concat(e, "</style>");
}
return "";
},
extend: function(e) {
return I(I({}, this), {}, {
css: void 0
}, e);
}
};
function P(t) {
"@babel/helpers - typeof";
return P = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
return typeof e;
} : function(e) {
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, P(t);
}
function M(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(t, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function je(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
e % 2 ? M(Object(n), !0).forEach(function(r) {
Te(t, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : M(Object(n)).forEach(function(r) {
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return t;
}
function Te(t, e, n) {
return e = we(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
function we(t) {
var e = Ce(t, "string");
return P(e) == "symbol" ? e : String(e);
}
function Ce(t, e) {
if (P(t) != "object" || !t)
return t;
var n = t[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(t, e || "default");
if (P(r) != "object")
return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (e === "string" ? String : Number)(t);
}
var A = W.extend({
name: "common",
loadGlobalStyle: function(e) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return R(e, je({
name: "global"
}, n));
}
});
function $(t) {
"@babel/helpers - typeof";
return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
return typeof e;
} : function(e) {
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, $(t);
}
function Ve(t) {
return J(t) || Ie(t) || z(t) || q();
}
function Ie(t) {
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
return Array.from(t);
}
function j(t, e) {
return J(t) || Ae(t, e) || z(t, e) || q();
}
function q() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function z(t, e) {
if (t) {
if (typeof t == "string")
return H(t, e);
var n = Object.prototype.toString.call(t).slice(8, -1);
if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set")
return Array.from(t);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return H(t, e);
}
}
function H(t, e) {
(e == null || e > t.length) && (e = t.length);
for (var n = 0, r = new Array(e); n < e; n++)
r[n] = t[n];
return r;
}
function Ae(t, e) {
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
if (n != null) {
var r, i, u, l, o = [], a = !0, c = !1;
try {
if (u = (n = n.call(t)).next, e === 0) {
if (Object(n) !== n)
return;
a = !1;
} else
for (; !(a = (r = u.call(n)).done) && (o.push(r.value), o.length !== e); a = !0)
;
} catch (s) {
c = !0, i = s;
} finally {
try {
if (!a && n.return != null && (l = n.return(), Object(l) !== l))
return;
} finally {
if (c)
throw i;
}
}
return o;
}
}
function J(t) {
if (Array.isArray(t))
return t;
}
function L(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter(function(i) {
return Object.getOwnPropertyDescriptor(t, i).enumerable;
})), n.push.apply(n, r);
}
return n;
}
function f(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
e % 2 ? L(Object(n), !0).forEach(function(r) {
T(t, r, n[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : L(Object(n)).forEach(function(r) {
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
});
}
return t;
}
function T(t, e, n) {
return e = De(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
}
function De(t) {
var e = xe(t, "string");
return $(e) == "symbol" ? e : String(e);
}
function xe(t, e) {
if ($(t) != "object" || !t)
return t;
var n = t[Symbol.toPrimitive];
if (n !== void 0) {
var r = n.call(t, e || "default");
if ($(r) != "object")
return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (e === "string" ? String : Number)(t);
}
var ke = {
name: "BaseComponent",
props: {
pt: {
type: Object,
default: void 0
},
ptOptions: {
type: Object,
default: void 0
},
unstyled: {
type: Boolean,
default: void 0
}
},
inject: {
$parentInstance: {
default: void 0
}
},
watch: {
isUnstyled: {
immediate: !0,
handler: function(e) {
if (!e) {
var n, r;
A.loadStyle({
nonce: (n = this.$config) === null || n === void 0 || (n = n.csp) === null || n === void 0 ? void 0 : n.nonce
}), this.$options.style && this.$style.loadStyle({
nonce: (r = this.$config) === null || r === void 0 || (r = r.csp) === null || r === void 0 ? void 0 : r.nonce
});
}
}
}
},
beforeCreate: function() {
var e, n, r, i, u, l, o, a, c, s, v, d = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, m = d ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, g = d ? (r = this.pt) === null || r === void 0 || (r = r.value) === null || r === void 0 ? void 0 : r[this.$.type.name] : this.pt;
(i = g || m) === null || i === void 0 || (i = i.hooks) === null || i === void 0 || (u = i.onBeforeCreate) === null || u === void 0 || u.call(i);
var y = (l = this.$config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l._usept, O = y ? (o = this.$primevue) === null || o === void 0 || (o = o.config) === null || o === void 0 || (o = o.pt) === null || o === void 0 ? void 0 : o.originalValue : void 0, w = y ? (a = this.$primevue) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a.value : (c = this.$primevue) === null || c === void 0 || (c = c.config) === null || c === void 0 ? void 0 : c.pt;
(s = w || O) === null || s === void 0 || (s = s[this.$.type.name]) === null || s === void 0 || (s = s.hooks) === null || s === void 0 || (v = s.onBeforeCreate) === null || v === void 0 || v.call(s);
},
created: function() {
this._hook("onCreated");
},
beforeMount: function() {
var e;
W.loadStyle({
nonce: (e = this.$config) === null || e === void 0 || (e = e.csp) === null || e === void 0 ? void 0 : e.nonce
}), this._loadGlobalStyles(), this._hook("onBeforeMount");
},
mounted: function() {
this._hook("onMounted");
},
beforeUpdate: function() {
this._hook("onBeforeUpdate");
},
updated: function() {
this._hook("onUpdated");
},
beforeUnmount: function() {
this._hook("onBeforeUnmount");
},
unmounted: function() {
this._hook("onUnmounted");
},
methods: {
_hook: function(e) {
if (!this.$options.hostName) {
var n = this._usePT(this._getPT(this.pt, this.$.type.name), this._getOptionValue, "hooks.".concat(e)), r = this._useDefaultPT(this._getOptionValue, "hooks.".concat(e));
n == null || n(), r == null || r();
}
},
_mergeProps: function(e) {
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
r[i - 1] = arguments[i];
return p.isFunction(e) ? e.apply(void 0, r) : V.apply(void 0, r);
},
_loadGlobalStyles: function() {
var e, n = this._useGlobalPT(this._getOptionValue, "global.css", this.$params);
p.isNotEmpty(n) && A.loadGlobalStyle(n, {
nonce: (e = this.$config) === null || e === void 0 || (e = e.csp) === null || e === void 0 ? void 0 : e.nonce
});
},
_getHostInstance: function(e) {
return e ? this.$options.hostName ? e.$.type.name === this.$options.hostName ? e : this._getHostInstance(e.$parentInstance) : e.$parentInstance : void 0;
},
_getPropValue: function(e) {
var n;
return this[e] || ((n = this._getHostInstance(this)) === null || n === void 0 ? void 0 : n[e]);
},
_getOptionValue: function(e) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = p.toFlatCase(n).split("."), u = i.shift();
return u ? p.isObject(e) ? this._getOptionValue(p.getItemValue(e[Object.keys(e).find(function(l) {
return p.toFlatCase(l) === u;
}) || ""], r), i.join("."), r) : void 0 : p.getItemValue(e, r);
},
_getPTValue: function() {
var e, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, u = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, l = /./g.test(r) && !!i[r.split(".")[0]], o = this._getPropValue("ptOptions") || ((e = this.$config) === null || e === void 0 ? void 0 : e.ptOptions) || {}, a = o.mergeSections, c = a === void 0 ? !0 : a, s = o.mergeProps, v = s === void 0 ? !1 : s, d = u ? l ? this._useGlobalPT(this._getPTClassValue, r, i) : this._useDefaultPT(this._getPTClassValue, r, i) : void 0, m = l ? void 0 : this._getPTSelf(n, this._getPTClassValue, r, f(f({}, i), {}, {
global: d || {}
})), g = this._getPTDatasets(r);
return c || !c && m ? v ? this._mergeProps(v, d, m, g) : f(f(f({}, d), m), g) : f(f({}, m), g);
},
_getPTSelf: function() {
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
r[i - 1] = arguments[i];
return V(
this._usePT.apply(this, [this._getPT(e, this.$name)].concat(r)),
// Exp; <component :pt="{}"
this._usePT.apply(this, [this.$_attrsPT].concat(r))
// Exp; <component :pt:[passthrough_key]:[attribute]="{value}" or <component :pt:[passthrough_key]="() =>{value}"
);
},
_getPTDatasets: function() {
var e, n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = "data-pc-", u = r === "root" && p.isNotEmpty((e = this.pt) === null || e === void 0 ? void 0 : e["data-pc-section"]);
return r !== "transition" && f(f({}, r === "root" && f(T({}, "".concat(i, "name"), p.toFlatCase(u ? (n = this.pt) === null || n === void 0 ? void 0 : n["data-pc-section"] : this.$.type.name)), u && T({}, "".concat(i, "extend"), p.toFlatCase(this.$.type.name)))), {}, T({}, "".concat(i, "section"), p.toFlatCase(r)));
},
_getPTClassValue: function() {
var e = this._getOptionValue.apply(this, arguments);
return p.isString(e) || p.isArray(e) ? {
class: e
} : e;
},
_getPT: function(e) {
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", i = arguments.length > 2 ? arguments[2] : void 0, u = function(o) {
var a, c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s = i ? i(o) : o, v = p.toFlatCase(r), d = p.toFlatCase(n.$name);
return (a = c ? v !== d ? s == null ? void 0 : s[v] : void 0 : s == null ? void 0 : s[v]) !== null && a !== void 0 ? a : s;
};
return e != null && e.hasOwnProperty("_usept") ? {
_usept: e._usept,
originalValue: u(e.originalValue),
value: u(e.value)
} : u(e, !0);
},
_usePT: function(e, n, r, i) {
var u = function(y) {
return n(y, r, i);
};
if (e != null && e.hasOwnProperty("_usept")) {
var l, o = e._usept || ((l = this.$config) === null || l === void 0 ? void 0 : l.ptOptions) || {}, a = o.mergeSections, c = a === void 0 ? !0 : a, s = o.mergeProps, v = s === void 0 ? !1 : s, d = u(e.originalValue), m = u(e.value);
return d === void 0 && m === void 0 ? void 0 : p.isString(m) ? m : p.isString(d) ? d : c || !c && m ? v ? this._mergeProps(v, d, m) : f(f({}, d), m) : m;
}
return u(e);
},
_useGlobalPT: function(e, n, r) {
return this._usePT(this.globalPT, e, n, r);
},
_useDefaultPT: function(e, n, r) {
return this._usePT(this.defaultPT, e, n, r);
},
ptm: function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return this._getPTValue(this.pt, e, f(f({}, this.$params), n));
},
ptmi: function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return V(this.$_attrsNoPT, this.ptm(e, n));
},
ptmo: function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
return this._getPTValue(e, n, f({
instance: this
}, r), !1);
},
cx: function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return this.isUnstyled ? void 0 : this._getOptionValue(this.$style.classes, e, f(f({}, this.$params), n));
},
sx: function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
if (n) {
var i = this._getOptionValue(this.$style.inlineStyles, e, f(f({}, this.$params), r)), u = this._getOptionValue(A.inlineStyles, e, f(f({}, this.$params), r));
return [u, i];
}
}
},
computed: {
globalPT: function() {
var e, n = this;
return this._getPT((e = this.$config) === null || e === void 0 ? void 0 : e.pt, void 0, function(r) {
return p.getItemValue(r, {
instance: n
});
});
},
defaultPT: function() {
var e, n = this;
return this._getPT((e = this.$config) === null || e === void 0 ? void 0 : e.pt, void 0, function(r) {
return n._getOptionValue(r, n.$name, f({}, n.$params)) || p.getItemValue(r, f({}, n.$params));
});
},
isUnstyled: function() {
var e;
return this.unstyled !== void 0 ? this.unstyled : (e = this.$config) === null || e === void 0 ? void 0 : e.unstyled;
},
$params: function() {
var e = this._getHostInstance(this) || this.$parent;
return {
instance: this,
props: this.$props,
state: this.$data,
attrs: this.$attrs,
parent: {
instance: e,
props: e == null ? void 0 : e.$props,
state: e == null ? void 0 : e.$data,
attrs: e == null ? void 0 : e.$attrs
},
/* @deprecated since v3.43.0. Use the `parent.instance` instead of the `parentInstance`.*/
parentInstance: e
};
},
$style: function() {
return f(f({
classes: void 0,
inlineStyles: void 0,
loadStyle: function() {
},
loadCustomStyle: function() {
}
}, (this._getHostInstance(this) || {}).$style), this.$options.style);
},
$config: function() {
var e;
return (e = this.$primevue) === null || e === void 0 ? void 0 : e.config;
},
$name: function() {
return this.$options.hostName || this.$.type.name;
},
$_attrsPT: function() {
return Object.entries(this.$attrs || {}).filter(function(e) {
var n = j(e, 1), r = n[0];
return r == null ? void 0 : r.startsWith("pt:");
}).reduce(function(e, n) {
var r = j(n, 2), i = r[0], u = r[1], l = i.split(":"), o = Ve(l), a = o.slice(1);
return a == null || a.reduce(function(c, s, v, d) {
return !c[s] && (c[s] = v === d.length - 1 ? u : {}), c[s];
}, e), e;
}, {});
},
$_attrsNoPT: function() {
return Object.entries(this.$attrs || {}).filter(function(e) {
var n = j(e, 1), r = n[0];
return !(r != null && r.startsWith("pt:"));
}).reduce(function(e, n) {
var r = j(n, 2), i = r[0], u = r[1];
return e[i] = u, e;
}, {});
}
}
};
export {
W as B,
ke as s
};