@aeria-ui/ui 0.0.43 → 0.0.45

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,8 +1,8 @@
1
- import { defineComponent as C, withAsyncContext as k, ref as $, unref as c, openBlock as p, createElementBlock as f, createVNode as n, withCtx as u, createTextVNode as _, createElementVNode as g } from "vue";
1
+ import { defineComponent as C, withAsyncContext as k, ref as $, unref as c, openBlock as p, createElementBlock as f, createVNode as r, withCtx as i, createTextVNode as _, createElementVNode as g } from "vue";
2
2
  import { useStore as y } from "@aeria-ui/state-management";
3
- import { unsafe as x } from "@aeriajs/common";
4
- import { useRouter as S } from "vue-router";
5
- import { A, _ as I, a as v } from "./index-82deba70.js";
3
+ import { throwIfLeft as x } from "@aeriajs/common";
4
+ import { useRouter as I } from "vue-router";
5
+ import { A as S, _ as A, a as v } from "./index-b1a603e9.js";
6
6
  import "@aeria-ui/i18n";
7
7
  import "@aeria-ui/core";
8
8
  const R = {
@@ -11,29 +11,29 @@ const R = {
11
11
  }, b = /* @__PURE__ */ g("h1", null, "Cadastre uma senha", -1), q = {
12
12
  key: 1,
13
13
  style: { display: "grid", gap: "1rem" }
14
- }, B = /* @__PURE__ */ g("h1", null, "Conta ativada com sucesso!", -1), D = /* @__PURE__ */ C({
14
+ }, B = /* @__PURE__ */ g("h1", null, "Conta ativada com sucesso!", -1), j = /* @__PURE__ */ C({
15
15
  __name: "activation",
16
16
  async setup(E) {
17
- let s, i;
18
- const o = S(), r = y("user"), w = y("meta"), V = o.currentRoute.value.query.step || "success", l = o.currentRoute.value.query.u, m = o.currentRoute.value.query.t, d = x(([s, i] = k(() => r.$functions.getInfo({
17
+ let s, u;
18
+ const o = I(), n = y("user"), w = y("meta"), h = o.currentRoute.value.query.step || "success", l = o.currentRoute.value.query.u, m = o.currentRoute.value.query.t, d = x(([s, u] = k(() => n.$functions.getInfo({
19
19
  userId: l,
20
20
  token: m
21
- })), s = await s, i(), s)), e = $({
21
+ })), s = await s, u(), s)), e = $({
22
22
  name: d.name,
23
23
  email: d.email,
24
24
  password: "",
25
25
  confirmation: ""
26
- }), h = async () => {
27
- await r.$actions.custom(`activate?u=${l}&t=${m}`, {
26
+ }), V = async () => {
27
+ await n.$actions.custom(`activate?u=${l}&t=${m}`, {
28
28
  password: e.value.password
29
- }), r.credentials.email = e.value.email, await w.$actions.spawnModal({
29
+ }), n.credentials.email = e.value.email, await w.$actions.spawnModal({
30
30
  title: "Sucesso!",
31
31
  body: "Sua conta foi ativada com sucesso. Experimente fazer login com o seu email e senha."
32
32
  }), o.push("/user/signin");
33
33
  };
34
- return (N, t) => c(V) === "password" ? (p(), f("div", R, [
34
+ return (N, t) => c(h) === "password" ? (p(), f("div", R, [
35
35
  b,
36
- n(A, {
36
+ r(S, {
37
37
  modelValue: e.value,
38
38
  "onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
39
39
  form: {
@@ -47,16 +47,16 @@ const R = {
47
47
  }
48
48
  }
49
49
  }, null, 8, ["modelValue"]),
50
- n(I, {
50
+ r(A, {
51
51
  modelValue: e.value,
52
52
  "onUpdate:modelValue": t[1] || (t[1] = (a) => e.value = a)
53
53
  }, {
54
- default: u(({ passwordError: a }) => [
55
- n(v, {
54
+ default: i(({ passwordError: a }) => [
55
+ r(v, {
56
56
  disabled: !!a,
57
- onClick: h
57
+ onClick: V
58
58
  }, {
59
- default: u(() => [
59
+ default: i(() => [
60
60
  _(" Cadastrar senha ")
61
61
  ]),
62
62
  _: 2
@@ -66,10 +66,10 @@ const R = {
66
66
  }, 8, ["modelValue"])
67
67
  ])) : (p(), f("div", q, [
68
68
  B,
69
- n(v, {
69
+ r(v, {
70
70
  onClick: t[2] || (t[2] = (a) => c(o).push("/user/signin"))
71
71
  }, {
72
- default: u(() => [
72
+ default: i(() => [
73
73
  _(" Ir para a página de login ")
74
74
  ]),
75
75
  _: 1
@@ -78,5 +78,5 @@ const R = {
78
78
  }
79
79
  });
80
80
  export {
81
- D as default
81
+ j as default
82
82
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, openBlock as t, createBlock as r, createSlots as c, withCtx as i, renderSlot as l, createCommentVNode as n } from "vue";
2
- import { d as m } from "./index-82deba70.js";
2
+ import { d as m } from "./index-b1a603e9.js";
3
3
  import "@aeria-ui/i18n";
4
4
  import "@aeria-ui/core";
5
5
  import "@aeria-ui/state-management";