japhy-custom-elements 1.0.18 → 1.0.19

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.
@@ -1,5 +1,4 @@
1
- import { g as W, c as Y } from "./index-C-0y78a9.mjs";
2
- import Z from "vue";
1
+ import { g as W, v as Y, c as Z } from "./index-0jcD1wiW.mjs";
3
2
  var R = { exports: {} };
4
3
  (function(z, Q) {
5
4
  /*!
@@ -8,10 +7,10 @@ var R = { exports: {} };
8
7
  * Released under the MIT License.
9
8
  * Surmon <https://github.com/surmon-china>
10
9
  */
11
- (function(w, p) {
12
- z.exports = p(Z);
13
- })(Y, function(w) {
14
- w = w && Object.prototype.hasOwnProperty.call(w, "default") ? w.default : w;
10
+ (function(_, p) {
11
+ z.exports = p(Y);
12
+ })(Z, function(_) {
13
+ _ = _ && Object.prototype.hasOwnProperty.call(_, "default") ? _.default : _;
15
14
  var p;
16
15
  (function(t) {
17
16
  t.SwiperComponent = "Swiper", t.SwiperSlideComponent = "SwiperSlide", t.SwiperDirective = "swiper", t.SwiperInstance = "$swiper";
@@ -77,7 +76,7 @@ var R = { exports: {} };
77
76
  function B() {
78
77
  for (var t = 0, n = 0, e = arguments.length; n < e; n++) t += arguments[n].length;
79
78
  for (var r = Array(t), a = 0, n = 0; n < e; n++)
80
- for (var c = arguments[n], u = 0, _ = c.length; u < _; u++, a++)
79
+ for (var c = arguments[n], u = 0, w = c.length; u < w; u++, a++)
81
80
  r[a] = c[u];
82
81
  return r;
83
82
  }
@@ -88,9 +87,9 @@ var R = { exports: {} };
88
87
  if (t && !t.destroyed) {
89
88
  var u = ((r = n.composedPath) === null || r === void 0 ? void 0 : r.call(n)) || n.path;
90
89
  if (n != null && n.target && u) {
91
- var _ = Array.from(t.slides), i = Array.from(u);
92
- if (_.includes(n.target) || i.some(function(v) {
93
- return _.includes(v);
90
+ var w = Array.from(t.slides), i = Array.from(u);
91
+ if (w.includes(n.target) || i.some(function(v) {
92
+ return w.includes(v);
94
93
  })) {
95
94
  var l = t.clickedIndex, o = Number((c = (a = t.clickedSlide) === null || a === void 0 ? void 0 : a.dataset) === null || c === void 0 ? void 0 : c.swiperSlideIndex), s = Number.isInteger(o) ? o : null;
96
95
  e(b.ClickSlide, l, s), e(O(b.ClickSlide), l, s);
@@ -121,7 +120,7 @@ var R = { exports: {} };
121
120
  return i.value || n;
122
121
  }, u = function(i) {
123
122
  return [!0, void 0, null, ""].includes(i);
124
- }, _ = function(i) {
123
+ }, w = function(i) {
125
124
  var l, o, s = ((l = i.data) === null || l === void 0 ? void 0 : l.on) || ((o = i.componentOptions) === null || o === void 0 ? void 0 : o.listeners);
126
125
  return function(v) {
127
126
  for (var d = arguments, g = [], y = 1; y < arguments.length; y++)
@@ -134,13 +133,13 @@ var R = { exports: {} };
134
133
  // Init
135
134
  bind: function(i, l, o) {
136
135
  i.className.indexOf(I.containerClass) === -1 && (i.className += (i.className ? " " : "") + I.containerClass), i.addEventListener("click", function(s) {
137
- var v = _(o), d = a(i, l, o);
136
+ var v = w(o), d = a(i, l, o);
138
137
  T(d, s, v);
139
138
  });
140
139
  },
141
140
  // DOM inserted
142
141
  inserted: function(i, l, o) {
143
- var s = o.context, v = c(l), d = r(i, l, o), g = _(o), y = s, h = y == null ? void 0 : y[d];
142
+ var s = o.context, v = c(l), d = r(i, l, o), g = w(o), y = s, h = y == null ? void 0 : y[d];
144
143
  (!h || h.destroyed) && (h = new t(i, v), y[d] = h, k(h, g), g(b.Ready, h));
145
144
  },
146
145
  // On options changed or DOM updated
@@ -170,7 +169,7 @@ var R = { exports: {} };
170
169
  })(m || (m = {}));
171
170
  function P(t) {
172
171
  var n;
173
- return w.extend({
172
+ return _.extend({
174
173
  name: p.SwiperComponent,
175
174
  props: (n = {
176
175
  defaultOptions: {
@@ -236,8 +235,8 @@ var R = { exports: {} };
236
235
  }
237
236
  },
238
237
  updateSwiper: function() {
239
- var e, r, a, c, u, _, i, l;
240
- this[f.AutoUpdate] && this.swiperInstance && (this.autoReLoopSwiper(), (r = (e = this.swiperInstance) === null || e === void 0 ? void 0 : e.update) === null || r === void 0 || r.call(e), (c = (a = this.swiperInstance.navigation) === null || a === void 0 ? void 0 : a.update) === null || c === void 0 || c.call(a), (_ = (u = this.swiperInstance.pagination) === null || u === void 0 ? void 0 : u.render) === null || _ === void 0 || _.call(u), (l = (i = this.swiperInstance.pagination) === null || i === void 0 ? void 0 : i.update) === null || l === void 0 || l.call(i));
238
+ var e, r, a, c, u, w, i, l;
239
+ this[f.AutoUpdate] && this.swiperInstance && (this.autoReLoopSwiper(), (r = (e = this.swiperInstance) === null || e === void 0 ? void 0 : e.update) === null || r === void 0 || r.call(e), (c = (a = this.swiperInstance.navigation) === null || a === void 0 ? void 0 : a.update) === null || c === void 0 || c.call(a), (w = (u = this.swiperInstance.pagination) === null || u === void 0 ? void 0 : u.render) === null || w === void 0 || w.call(u), (l = (i = this.swiperInstance.pagination) === null || i === void 0 ? void 0 : i.update) === null || l === void 0 || l.call(i));
241
240
  },
242
241
  destroySwiper: function() {
243
242
  var e, r;
@@ -279,7 +278,7 @@ var R = { exports: {} };
279
278
  }
280
279
  });
281
280
  }
282
- var N = w.extend({
281
+ var N = _.extend({
283
282
  name: p.SwiperSlideComponent,
284
283
  computed: {
285
284
  slideClass: function() {
@@ -327,10 +326,10 @@ var R = { exports: {} };
327
326
  });
328
327
  })(R);
329
328
  var H = R.exports;
330
- const J = /* @__PURE__ */ W(H), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
329
+ const J = /* @__PURE__ */ W(H), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
331
330
  __proto__: null,
332
331
  default: J
333
332
  }, Symbol.toStringTag, { value: "Module" }));
334
333
  export {
335
- tt as e
334
+ V as e
336
335
  };