@qikdev/vue-ui 0.3.7 → 0.3.8

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/lib.es.js CHANGED
@@ -4,7 +4,7 @@ var Ph = (e, t, n) => t in e ? Lh(e, t, { enumerable: !0, configurable: !0, writ
4
4
  var ie = (e, t, n) => Ph(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { reactive as Ht, defineComponent as Fl, ref as vt, toRefs as of, onMounted as Al, onBeforeUnmount as Rh, watch as cr, computed as Fn, createElementBlock as m, openBlock as o, createCommentVNode as _, renderSlot as H, normalizeClass as L, useSlots as Uh, provide as Mr, resolveComponent as y, createVNode as c, Fragment as D, createBlock as k, unref as gt, withCtx as f, renderList as A, toDisplayString as b, createTextVNode as O, withDirectives as X, vShow as ci, withModifiers as B, createElementVNode as T, h as dl, mergeProps as mt, toHandlers as kt, normalizeStyle as Ge, resolveDirective as uf, resolveDynamicComponent as Mt, vModelSelect as Dt, pushScopeId as je, popScopeId as qe, getCurrentScope as jh, onScopeDispose as qh, getCurrentInstance as Bh, Teleport as df, Transition as zh, withKeys as we, vModelText as be, TransitionGroup as Wh, nextTick as cf, vModelDynamic as Sn, normalizeProps as Hh } from "vue";
6
6
  import { EventDispatcher as ff } from "@qikdev/sdk";
7
- const Gh = "0.3.6";
7
+ const Gh = "0.3.8";
8
8
  class yn extends Error {
9
9
  }
10
10
  class Yh extends yn {
@@ -6287,60 +6287,61 @@ const X_ = /* @__PURE__ */ M(J_, [["render", Z_], ["__scopeId", "data-v-677f555b
6287
6287
  imageSource() {
6288
6288
  var n;
6289
6289
  const e = this.source;
6290
- switch ((n = e == null ? void 0 : e.meta) == null ? void 0 : n.type) {
6291
- case "video":
6292
- case "image":
6293
- case "event":
6294
- case "persona":
6295
- case "profile":
6296
- case "audio":
6297
- case "file":
6298
- return this.source;
6299
- default: {
6300
- const r = this.$sdk.utils.id(this.source);
6301
- if (!r)
6302
- return;
6303
- var t = r.slice(8, 10);
6304
- switch (t) {
6305
- case "69":
6306
- return {
6307
- _id: r,
6308
- meta: {
6309
- type: "image"
6310
- }
6311
- };
6312
- case "76":
6313
- return {
6314
- _id: r,
6315
- meta: {
6316
- type: "video"
6317
- }
6318
- };
6319
- case "24":
6320
- return {
6321
- _id: r,
6322
- meta: {
6323
- type: "persona"
6324
- }
6325
- };
6326
- case "70":
6327
- return {
6328
- _id: r,
6329
- meta: {
6330
- type: "profile"
6331
- }
6332
- };
6333
- case "71":
6334
- return {
6335
- _id: r,
6336
- meta: {
6337
- type: "checkin"
6338
- }
6339
- };
6290
+ if (e)
6291
+ switch ((n = e == null ? void 0 : e.meta) == null ? void 0 : n.type) {
6292
+ case "video":
6293
+ case "image":
6294
+ case "event":
6295
+ case "persona":
6296
+ case "profile":
6297
+ case "audio":
6298
+ case "file":
6299
+ return this.source;
6300
+ default: {
6301
+ const r = this.$sdk.utils.id(this.source);
6302
+ if (!r)
6303
+ return;
6304
+ var t = r.slice(8, 10);
6305
+ switch (t) {
6306
+ case "69":
6307
+ return {
6308
+ _id: r,
6309
+ meta: {
6310
+ type: "image"
6311
+ }
6312
+ };
6313
+ case "76":
6314
+ return {
6315
+ _id: r,
6316
+ meta: {
6317
+ type: "video"
6318
+ }
6319
+ };
6320
+ case "24":
6321
+ return {
6322
+ _id: r,
6323
+ meta: {
6324
+ type: "persona"
6325
+ }
6326
+ };
6327
+ case "70":
6328
+ return {
6329
+ _id: r,
6330
+ meta: {
6331
+ type: "profile"
6332
+ }
6333
+ };
6334
+ case "71":
6335
+ return {
6336
+ _id: r,
6337
+ meta: {
6338
+ type: "checkin"
6339
+ }
6340
+ };
6341
+ }
6342
+ return r;
6340
6343
  }
6341
- return r;
6342
6344
  }
6343
- }
6344
6345
  },
6345
6346
  type() {
6346
6347
  var e, t;
@@ -6356,40 +6357,42 @@ const X_ = /* @__PURE__ */ M(J_, [["render", Z_], ["__scopeId", "data-v-677f555b
6356
6357
  function tv(e, t, n, r, s, i) {
6357
6358
  const a = y("ux-image"), l = y("ux-icon");
6358
6359
  return o(), m("td", ev, [
6359
- i.type == "image" || i.type == "video" ? (o(), m("div", {
6360
- key: 0,
6361
- onClick: t[0] || (t[0] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6362
- class: "image-wrapper"
6363
- }, [
6364
- c(a, {
6365
- lazy: "",
6366
- item: i.imageSource,
6367
- type: i.type,
6368
- width: 100,
6369
- height: 100
6370
- }, null, 8, ["item", "type"])
6371
- ])) : i.type === "audio" ? (o(), k(l, {
6372
- key: 1,
6373
- icon: "fa-music"
6374
- })) : i.type === "file" ? (o(), k(l, {
6375
- key: 2,
6376
- icon: "fa-file"
6377
- })) : (o(), m("div", {
6378
- key: 3,
6379
- onClick: t[1] || (t[1] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6380
- class: "image-wrapper"
6381
- }, [
6382
- c(a, {
6383
- lazy: "",
6384
- item: i.imageSource,
6385
- type: i.type,
6386
- width: 100,
6387
- height: 100
6388
- }, null, 8, ["item", "type"])
6389
- ]))
6360
+ i.imageSource ? (o(), m(D, { key: 0 }, [
6361
+ i.type == "image" || i.type == "video" ? (o(), m("div", {
6362
+ key: 0,
6363
+ onClick: t[0] || (t[0] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6364
+ class: "image-wrapper"
6365
+ }, [
6366
+ c(a, {
6367
+ lazy: "",
6368
+ item: i.imageSource,
6369
+ type: i.type,
6370
+ width: 100,
6371
+ height: 100
6372
+ }, null, 8, ["item", "type"])
6373
+ ])) : i.type === "audio" ? (o(), k(l, {
6374
+ key: 1,
6375
+ icon: "fa-music"
6376
+ })) : i.type === "file" ? (o(), k(l, {
6377
+ key: 2,
6378
+ icon: "fa-file"
6379
+ })) : (o(), m("div", {
6380
+ key: 3,
6381
+ onClick: t[1] || (t[1] = B((u) => i.clicked(e.value), ["stop", "prevent"])),
6382
+ class: "image-wrapper"
6383
+ }, [
6384
+ c(a, {
6385
+ lazy: "",
6386
+ item: i.imageSource,
6387
+ type: i.type,
6388
+ width: 100,
6389
+ height: 100
6390
+ }, null, 8, ["item", "type"])
6391
+ ]))
6392
+ ], 64)) : _("", !0)
6390
6393
  ]);
6391
6394
  }
6392
- const nv = /* @__PURE__ */ M(Q_, [["render", tv], ["__scopeId", "data-v-c5af391d"]]), iv = {
6395
+ const nv = /* @__PURE__ */ M(Q_, [["render", tv], ["__scopeId", "data-v-0d557d14"]]), iv = {
6393
6396
  mixins: [Te],
6394
6397
  computed: {
6395
6398
  string() {
@@ -31735,7 +31738,7 @@ const Oh = /* @__PURE__ */ M(LA, [["render", PA], ["__scopeId", "data-v-e6afec75
31735
31738
  return ((e = this.form) == null ? void 0 : e.fields) || [];
31736
31739
  }
31737
31740
  }
31738
- }, Dh = (e) => (je("data-v-495d5e95"), e = e(), qe(), e), qA = /* @__PURE__ */ Dh(() => /* @__PURE__ */ T("h3", null, "An error occurred", -1)), BA = { key: 0 }, zA = { key: 1 }, WA = { key: 2 }, HA = { class: "intent-submit" }, GA = {
31741
+ }, Dh = (e) => (je("data-v-cca37188"), e = e(), qe(), e), qA = /* @__PURE__ */ Dh(() => /* @__PURE__ */ T("h3", null, "An error occurred", -1)), BA = { key: 0 }, zA = { key: 1 }, WA = { key: 2 }, HA = { class: "intent-submit" }, GA = {
31739
31742
  key: 0,
31740
31743
  class: "multistep-form"
31741
31744
  }, YA = { class: "multistep-form-sections" }, JA = { class: "multistep-fields" }, KA = { class: "multistep-controls" }, ZA = ["tooltip"], XA = ["tooltip"], QA = { class: "multistep-progress" }, eN = {
@@ -31814,13 +31817,14 @@ function iN(e, t, n, r, s, i) {
31814
31817
  T("div", HA, [
31815
31818
  c(l, {
31816
31819
  color: "primary",
31820
+ loading: s.processing,
31817
31821
  onClick: i.confirmIntention
31818
31822
  }, {
31819
31823
  default: f(() => [
31820
31824
  O(" Confirm Payment ")
31821
31825
  ]),
31822
31826
  _: 1
31823
- }, 8, ["onClick"])
31827
+ }, 8, ["loading", "onClick"])
31824
31828
  ])
31825
31829
  ], 64)) : _("", !0)
31826
31830
  ], 64)) : (o(), m(D, { key: 3 }, [
@@ -31964,7 +31968,7 @@ function iN(e, t, n, r, s, i) {
31964
31968
  ], 64))
31965
31969
  ], 2);
31966
31970
  }
31967
- const rN = /* @__PURE__ */ M(jA, [["render", iN], ["__scopeId", "data-v-495d5e95"]]), sN = "init", zc = "ready", aN = "processing", lN = "success", oN = "error", uN = {
31971
+ const rN = /* @__PURE__ */ M(jA, [["render", iN], ["__scopeId", "data-v-cca37188"]]), sN = "init", zc = "ready", aN = "processing", lN = "success", oN = "error", uN = {
31968
31972
  name: "PaymentMethodForm",
31969
31973
  components: {
31970
31974
  StripeElements: fm,