@mirai/core 0.3.146 → 0.3.148

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.
Files changed (66) hide show
  1. package/build/components/Booking/components/Field/Field.module.css +1 -1
  2. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +4 -4
  3. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +8 -8
  4. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap +8 -8
  5. package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +12 -12
  6. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +6 -6
  7. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +4 -4
  8. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Session.test.js.snap +8 -8
  9. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +1 -1
  10. package/build/components/Profile/Profile.constants.js +8 -5
  11. package/build/components/Profile/Profile.constants.js.map +1 -1
  12. package/build/components/Profile/Profile.js +10 -42
  13. package/build/components/Profile/Profile.js.map +1 -1
  14. package/build/components/Profile/Profile.module.css +1 -67
  15. package/build/components/Profile/components/Bookings/Bookings.js +15 -24
  16. package/build/components/Profile/components/Bookings/Bookings.js.map +1 -1
  17. package/build/components/Profile/components/Bookings/Bookings.l10n.js +3 -0
  18. package/build/components/Profile/components/Bookings/Bookings.l10n.js.map +1 -1
  19. package/build/components/Profile/components/Bookings/Bookings.module.css +7 -2
  20. package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +11 -1
  21. package/build/components/Profile/{Profile.Account.js → components/Settings/Settings.Account.js} +22 -23
  22. package/build/components/Profile/components/Settings/Settings.Account.js.map +1 -0
  23. package/build/components/Profile/{Profile.Password.js → components/Settings/Settings.Password.js} +16 -15
  24. package/build/components/Profile/components/Settings/Settings.Password.js.map +1 -0
  25. package/build/components/Profile/{Profile.Signout.js → components/Settings/Settings.Signout.js} +18 -22
  26. package/build/components/Profile/components/Settings/Settings.Signout.js.map +1 -0
  27. package/build/components/Profile/components/Settings/Settings.constants.js +24 -0
  28. package/build/components/Profile/components/Settings/Settings.constants.js.map +1 -0
  29. package/build/components/Profile/components/Settings/Settings.js +61 -0
  30. package/build/components/Profile/components/Settings/Settings.js.map +1 -0
  31. package/build/components/Profile/{Profile.l10n.js → components/Settings/Settings.l10n.js} +9 -9
  32. package/build/components/Profile/components/Settings/Settings.l10n.js.map +1 -0
  33. package/build/components/Profile/components/Settings/Settings.module.css +70 -0
  34. package/build/components/Profile/components/Settings/index.js +17 -0
  35. package/build/components/Profile/components/Settings/index.js.map +1 -0
  36. package/build/components/Profile/components/index.js +11 -0
  37. package/build/components/Profile/components/index.js.map +1 -1
  38. package/build/components/Session/Session.Account.js +28 -25
  39. package/build/components/Session/Session.Account.js.map +1 -1
  40. package/build/components/Session/Session.Login.js +9 -9
  41. package/build/components/Session/Session.Login.js.map +1 -1
  42. package/build/components/Session/Session.l10n.js +11 -13
  43. package/build/components/Session/Session.l10n.js.map +1 -1
  44. package/build/components/Session/Session.module.css +32 -7
  45. package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +30 -36
  46. package/build/components/Session/helpers/template.js +1 -1
  47. package/build/components/Session/helpers/template.js.map +1 -1
  48. package/build/components/Signup/Signup.js +6 -2
  49. package/build/components/Signup/Signup.js.map +1 -1
  50. package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +9 -9
  51. package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +4 -4
  52. package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +15 -15
  53. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +1 -1
  54. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +6 -6
  55. package/build/components/helpers/ICON.js +2 -0
  56. package/build/components/helpers/ICON.js.map +1 -1
  57. package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +30 -30
  58. package/build/components/helpers/parseHtml.js +2 -2
  59. package/build/components/helpers/parseHtml.js.map +1 -1
  60. package/package.json +1 -1
  61. package/public/App.Container.jsx +0 -7
  62. package/public/App.module.css +0 -21
  63. package/build/components/Profile/Profile.Account.js.map +0 -1
  64. package/build/components/Profile/Profile.Password.js.map +0 -1
  65. package/build/components/Profile/Profile.Signout.js.map +0 -1
  66. package/build/components/Profile/Profile.l10n.js.map +0 -1
@@ -2,19 +2,19 @@
2
2
 
3
3
  exports[`modules: parseHtml with values & small 1`] = `
4
4
  <DocumentFragment>
5
- El presente
5
+ El presente
6
6
  <a
7
7
  class="pressable action inline small"
8
8
  href="http://www.hotelbarrameda.com/es/legal"
9
- style="display: inline;"
9
+ style="display: inline-flex;"
10
10
  >
11
11
  Aviso Legal
12
12
  </a>
13
- está sujeto a lo dispuesto en la Ley Orgánica 3/2018, de Protección de Datos Personales y garantía de los derechos digitales, de 5 de diciembre de 2018 (LOPDGDD), Reglamento UE 2016/679 del Parlamento Europeo y del Consejo de 27 de abril de 2016 relativo a la protección de las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos y por el que se deroga la Directiva 95/46/CE (Reglamento General de Protección de Datos), la Ley 34/2002 de 11 de julio, de Servicios de la Sociedad de la Información y de Comercio Electrónico, el Real Decreto-ley 13/2012, de 30 de marzo, por el que se transponen directivas en materia de mercados interiores de electricidad y gas y en materia de comunicaciones electrónicas, y por el que se adoptan medidas para la corrección de las desviaciones por desajustes entre los costes e ingresos de los sectores eléctrico y gasista, el Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, la Ley 3/2014, de 27 de marzo, por la que se modifica el texto refundido de la Ley General para la Defensa de los Consumidores y Usuarios y otras leyes complementarias, aprobado por el Real Decreto Legislativo 1/2007, de 16 de noviembre, la Ley 26/1984, de 19 de julio, General para la Defensa de Consumidores y Usuarios, el Real Decreto 1906/1999 por el que se regula la contratación telefónica o electrónica, Ley 44/2006, de 29 de diciembre, de mejora de la protección de los consumidores y usuarios, la Directiva 2011/83/UE del Parlamento Europeo y del Consejo, de 25 de octubre de 2011, sobre los derechos de los consumidores, la Ley 7/1998, de 13 de abril, sobre Condiciones Generales de Contratación, de 17 de diciembre de 1999, por el que se regula la Contratación Telefónica o Electrónica con condiciones generales, la Ley 17/2009, de 23 de noviembre, sobre el libre acceso a las actividades de servicios y su ejercicio, la Ley 7/1996, de 15 de enero de Ordenación del Comercio Minorista, así como cualquier normativa posterior que las modifican o desarrollan.
13
+ está sujeto a lo dispuesto en la Ley Orgánica 3/2018, de Protección de Datos Personales y garantía de los derechos digitales, de 5 de diciembre de 2018 (LOPDGDD), Reglamento UE 2016/679 del Parlamento Europeo y del Consejo de 27 de abril de 2016 relativo a la protección de las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos y por el que se deroga la Directiva 95/46/CE (Reglamento General de Protección de Datos), la Ley 34/2002 de 11 de julio, de Servicios de la Sociedad de la Información y de Comercio Electrónico, el Real Decreto-ley 13/2012, de 30 de marzo, por el que se transponen directivas en materia de mercados interiores de electricidad y gas y en materia de comunicaciones electrónicas, y por el que se adoptan medidas para la corrección de las desviaciones por desajustes entre los costes e ingresos de los sectores eléctrico y gasista, el Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, la Ley 3/2014, de 27 de marzo, por la que se modifica el texto refundido de la Ley General para la Defensa de los Consumidores y Usuarios y otras leyes complementarias, aprobado por el Real Decreto Legislativo 1/2007, de 16 de noviembre, la Ley 26/1984, de 19 de julio, General para la Defensa de Consumidores y Usuarios, el Real Decreto 1906/1999 por el que se regula la contratación telefónica o electrónica, Ley 44/2006, de 29 de diciembre, de mejora de la protección de los consumidores y usuarios, la Directiva 2011/83/UE del Parlamento Europeo y del Consejo, de 25 de octubre de 2011, sobre los derechos de los consumidores, la Ley 7/1998, de 13 de abril, sobre Condiciones Generales de Contratación, de 17 de diciembre de 1999, por el que se regula la Contratación Telefónica o Electrónica con condiciones generales, la Ley 17/2009, de 23 de noviembre, sobre el libre acceso a las actividades de servicios y su ejercicio, la Ley 7/1996, de 15 de enero de Ordenación del Comercio Minorista, así como cualquier normativa posterior que las modifican o desarrollan.
14
14
  <a
15
15
  class="pressable action inline small"
16
16
  href="http://www.hotelbarrameda.com/es/legal"
17
- style="display: inline;"
17
+ style="display: inline-flex;"
18
18
  >
19
19
   
20
20
  </a>
@@ -26,7 +26,7 @@ exports[`modules: parseHtml with values & small 1`] = `
26
26
  <span
27
27
  class="text small wide"
28
28
  >
29
- Plataforma de resolución de litigiosEl Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, establece como objetivo la consecución de un elevado nivel de protección del consumidor y el correcto funcionamiento del mercado interior, en particular de su dimensión digital, proporcionando una plataforma europea de resolución de litigios en línea que facilite la resolución extrajudicial de litigios entre consumidores y comerciantes en línea de forma independiente, imparcial, transparente, eficaz y equitativa.Para ello, este Sitio Web pone a disposición del Usuario, un enlace que permite un acceso a la plataforma de resolución de litigios en línea de la Unión Europea, para cualquier eventual controversia que pudiera originarse en materia de consumo:http://ec.europa.eu/consumers/odr/
29
+ Plataforma de resolución de litigiosEl Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, establece como objetivo la consecución de un elevado nivel de protección del consumidor y el correcto funcionamiento del mercado interior, en particular de su dimensión digital, proporcionando una plataforma europea de resolución de litigios en línea que facilite la resolución extrajudicial de litigios entre consumidores y comerciantes en línea de forma independiente, imparcial, transparente, eficaz y equitativa.Para ello, este Sitio Web pone a disposición del Usuario, un enlace que permite un acceso a la plataforma de resolución de litigios en línea de la Unión Europea, para cualquier eventual controversia que pudiera originarse en materia de consumo: http://ec.europa.eu/consumers/odr/
30
30
  </span>
31
31
  </DocumentFragment>
32
32
  `;
@@ -56,12 +56,12 @@ exports[`modules: parseHtml with values & small 2`] = `
56
56
  <span
57
57
  class="text small wide"
58
58
  >
59
- • Negative diagnostic test in relation to COVID-19 carried out in the last 72 hours in the case of RT-PCR tests, and in the last 48 hours in the case of antigen tests, both issued or by a public service of health or by an authorized official laboratory (not worth self-test)
59
+ • Negative diagnostic test in relation to COVID-19 carried out in the last 72 hours in the case of RT-PCR tests, and in the last 48 hours in the case of antigen tests, both issued or by a public service of health or by an authorized official laboratory (not worth self-test)
60
60
  </span>
61
61
  <span
62
62
  class="text small wide"
63
63
  >
64
- • Certificate of recovery from COVID-19 in the last six months after a positive result obtained through a diagnostic test considered valid by the competent authority.
64
+ • Certificate of recovery from COVID-19 in the last six months after a positive result obtained through a diagnostic test considered valid by the competent authority.
65
65
  </span>
66
66
  <span
67
67
  class="text small wide"
@@ -76,12 +76,12 @@ exports[`modules: parseHtml with values & small 2`] = `
76
76
  <span
77
77
  class="text small wide"
78
78
  >
79
- Half Board will be breakfast + dinner.
79
+ Half Board will be breakfast + dinner.
80
80
  </span>
81
81
  <span
82
82
  class="text small wide"
83
83
  >
84
- The Food and Dinner Services menu served. There is a children's menu.
84
+ The Food and Dinner Services menu served. There is a children's menu.
85
85
  </span>
86
86
  <span
87
87
  class="text small wide"
@@ -91,22 +91,22 @@ exports[`modules: parseHtml with values & small 2`] = `
91
91
  <span
92
92
  class="text small wide"
93
93
  >
94
- Check the lunch supplement on Saturdays, Sundays and holidays, direct payment at reception.
94
+ Check the lunch supplement on Saturdays, Sundays and holidays, direct payment at reception.
95
95
  </span>
96
96
  <span
97
97
  class="text small wide"
98
98
  >
99
- The use of the mask is mandatory throughout the installation.
99
+ The use of the mask is mandatory throughout the installation.
100
100
  </span>
101
101
  <span
102
102
  class="text small wide"
103
103
  >
104
- Restaurant open until 23:00
104
+ Restaurant open until 23:00
105
105
  </span>
106
106
  <span
107
107
  class="text small wide"
108
108
  >
109
- The restaurant services as well as other complementary hotel services may undergo changes. (Consult)
109
+ The restaurant services as well as other complementary hotel services may undergo changes. (Consult)
110
110
  </span>
111
111
  <span
112
112
  class="text small wide"
@@ -121,7 +121,7 @@ exports[`modules: parseHtml with values & small 2`] = `
121
121
  <span
122
122
  class="text small wide"
123
123
  >
124
- 100% of the 1st night expenses in case of no-show at the hotel.
124
+ 100% of the 1st night expenses in case of no-show at the hotel.
125
125
  </span>
126
126
  <span
127
127
  class="text small wide"
@@ -141,7 +141,7 @@ exports[`modules: parseHtml with values & small 2`] = `
141
141
  <span
142
142
  class="text small wide"
143
143
  >
144
- Discomóvil Service until 03:00hrs.
144
+ Discomóvil Service until 03:00hrs.
145
145
  </span>
146
146
  <span
147
147
  class="text small wide"
@@ -158,19 +158,19 @@ exports[`modules: parseHtml with values & small 2`] = `
158
158
 
159
159
  exports[`modules: parseHtml with values 1`] = `
160
160
  <DocumentFragment>
161
- El presente
161
+ El presente
162
162
  <a
163
163
  class="pressable action inline"
164
164
  href="http://www.hotelbarrameda.com/es/legal"
165
- style="display: inline;"
165
+ style="display: inline-flex;"
166
166
  >
167
167
  Aviso Legal
168
168
  </a>
169
- está sujeto a lo dispuesto en la Ley Orgánica 3/2018, de Protección de Datos Personales y garantía de los derechos digitales, de 5 de diciembre de 2018 (LOPDGDD), Reglamento UE 2016/679 del Parlamento Europeo y del Consejo de 27 de abril de 2016 relativo a la protección de las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos y por el que se deroga la Directiva 95/46/CE (Reglamento General de Protección de Datos), la Ley 34/2002 de 11 de julio, de Servicios de la Sociedad de la Información y de Comercio Electrónico, el Real Decreto-ley 13/2012, de 30 de marzo, por el que se transponen directivas en materia de mercados interiores de electricidad y gas y en materia de comunicaciones electrónicas, y por el que se adoptan medidas para la corrección de las desviaciones por desajustes entre los costes e ingresos de los sectores eléctrico y gasista, el Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, la Ley 3/2014, de 27 de marzo, por la que se modifica el texto refundido de la Ley General para la Defensa de los Consumidores y Usuarios y otras leyes complementarias, aprobado por el Real Decreto Legislativo 1/2007, de 16 de noviembre, la Ley 26/1984, de 19 de julio, General para la Defensa de Consumidores y Usuarios, el Real Decreto 1906/1999 por el que se regula la contratación telefónica o electrónica, Ley 44/2006, de 29 de diciembre, de mejora de la protección de los consumidores y usuarios, la Directiva 2011/83/UE del Parlamento Europeo y del Consejo, de 25 de octubre de 2011, sobre los derechos de los consumidores, la Ley 7/1998, de 13 de abril, sobre Condiciones Generales de Contratación, de 17 de diciembre de 1999, por el que se regula la Contratación Telefónica o Electrónica con condiciones generales, la Ley 17/2009, de 23 de noviembre, sobre el libre acceso a las actividades de servicios y su ejercicio, la Ley 7/1996, de 15 de enero de Ordenación del Comercio Minorista, así como cualquier normativa posterior que las modifican o desarrollan.
169
+ está sujeto a lo dispuesto en la Ley Orgánica 3/2018, de Protección de Datos Personales y garantía de los derechos digitales, de 5 de diciembre de 2018 (LOPDGDD), Reglamento UE 2016/679 del Parlamento Europeo y del Consejo de 27 de abril de 2016 relativo a la protección de las personas físicas en lo que respecta al tratamiento de datos personales y a la libre circulación de estos datos y por el que se deroga la Directiva 95/46/CE (Reglamento General de Protección de Datos), la Ley 34/2002 de 11 de julio, de Servicios de la Sociedad de la Información y de Comercio Electrónico, el Real Decreto-ley 13/2012, de 30 de marzo, por el que se transponen directivas en materia de mercados interiores de electricidad y gas y en materia de comunicaciones electrónicas, y por el que se adoptan medidas para la corrección de las desviaciones por desajustes entre los costes e ingresos de los sectores eléctrico y gasista, el Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, la Ley 3/2014, de 27 de marzo, por la que se modifica el texto refundido de la Ley General para la Defensa de los Consumidores y Usuarios y otras leyes complementarias, aprobado por el Real Decreto Legislativo 1/2007, de 16 de noviembre, la Ley 26/1984, de 19 de julio, General para la Defensa de Consumidores y Usuarios, el Real Decreto 1906/1999 por el que se regula la contratación telefónica o electrónica, Ley 44/2006, de 29 de diciembre, de mejora de la protección de los consumidores y usuarios, la Directiva 2011/83/UE del Parlamento Europeo y del Consejo, de 25 de octubre de 2011, sobre los derechos de los consumidores, la Ley 7/1998, de 13 de abril, sobre Condiciones Generales de Contratación, de 17 de diciembre de 1999, por el que se regula la Contratación Telefónica o Electrónica con condiciones generales, la Ley 17/2009, de 23 de noviembre, sobre el libre acceso a las actividades de servicios y su ejercicio, la Ley 7/1996, de 15 de enero de Ordenación del Comercio Minorista, así como cualquier normativa posterior que las modifican o desarrollan.
170
170
  <a
171
171
  class="pressable action inline"
172
172
  href="http://www.hotelbarrameda.com/es/legal"
173
- style="display: inline;"
173
+ style="display: inline-flex;"
174
174
  >
175
175
   
176
176
  </a>
@@ -182,7 +182,7 @@ exports[`modules: parseHtml with values 1`] = `
182
182
  <span
183
183
  class="text paragraph wide"
184
184
  >
185
- Plataforma de resolución de litigiosEl Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, establece como objetivo la consecución de un elevado nivel de protección del consumidor y el correcto funcionamiento del mercado interior, en particular de su dimensión digital, proporcionando una plataforma europea de resolución de litigios en línea que facilite la resolución extrajudicial de litigios entre consumidores y comerciantes en línea de forma independiente, imparcial, transparente, eficaz y equitativa.Para ello, este Sitio Web pone a disposición del Usuario, un enlace que permite un acceso a la plataforma de resolución de litigios en línea de la Unión Europea, para cualquier eventual controversia que pudiera originarse en materia de consumo:http://ec.europa.eu/consumers/odr/
185
+ Plataforma de resolución de litigiosEl Reglamento (UE) n.º 524/2013 del Parlamento Europeo y del Consejo, de 21 de mayo de 2013, establece como objetivo la consecución de un elevado nivel de protección del consumidor y el correcto funcionamiento del mercado interior, en particular de su dimensión digital, proporcionando una plataforma europea de resolución de litigios en línea que facilite la resolución extrajudicial de litigios entre consumidores y comerciantes en línea de forma independiente, imparcial, transparente, eficaz y equitativa.Para ello, este Sitio Web pone a disposición del Usuario, un enlace que permite un acceso a la plataforma de resolución de litigios en línea de la Unión Europea, para cualquier eventual controversia que pudiera originarse en materia de consumo: http://ec.europa.eu/consumers/odr/
186
186
  </span>
187
187
  </DocumentFragment>
188
188
  `;
@@ -212,12 +212,12 @@ exports[`modules: parseHtml with values 2`] = `
212
212
  <span
213
213
  class="text paragraph wide"
214
214
  >
215
- • Negative diagnostic test in relation to COVID-19 carried out in the last 72 hours in the case of RT-PCR tests, and in the last 48 hours in the case of antigen tests, both issued or by a public service of health or by an authorized official laboratory (not worth self-test)
215
+ • Negative diagnostic test in relation to COVID-19 carried out in the last 72 hours in the case of RT-PCR tests, and in the last 48 hours in the case of antigen tests, both issued or by a public service of health or by an authorized official laboratory (not worth self-test)
216
216
  </span>
217
217
  <span
218
218
  class="text paragraph wide"
219
219
  >
220
- • Certificate of recovery from COVID-19 in the last six months after a positive result obtained through a diagnostic test considered valid by the competent authority.
220
+ • Certificate of recovery from COVID-19 in the last six months after a positive result obtained through a diagnostic test considered valid by the competent authority.
221
221
  </span>
222
222
  <span
223
223
  class="text paragraph wide"
@@ -232,12 +232,12 @@ exports[`modules: parseHtml with values 2`] = `
232
232
  <span
233
233
  class="text paragraph wide"
234
234
  >
235
- Half Board will be breakfast + dinner.
235
+ Half Board will be breakfast + dinner.
236
236
  </span>
237
237
  <span
238
238
  class="text paragraph wide"
239
239
  >
240
- The Food and Dinner Services menu served. There is a children's menu.
240
+ The Food and Dinner Services menu served. There is a children's menu.
241
241
  </span>
242
242
  <span
243
243
  class="text paragraph wide"
@@ -247,22 +247,22 @@ exports[`modules: parseHtml with values 2`] = `
247
247
  <span
248
248
  class="text paragraph wide"
249
249
  >
250
- Check the lunch supplement on Saturdays, Sundays and holidays, direct payment at reception.
250
+ Check the lunch supplement on Saturdays, Sundays and holidays, direct payment at reception.
251
251
  </span>
252
252
  <span
253
253
  class="text paragraph wide"
254
254
  >
255
- The use of the mask is mandatory throughout the installation.
255
+ The use of the mask is mandatory throughout the installation.
256
256
  </span>
257
257
  <span
258
258
  class="text paragraph wide"
259
259
  >
260
- Restaurant open until 23:00
260
+ Restaurant open until 23:00
261
261
  </span>
262
262
  <span
263
263
  class="text paragraph wide"
264
264
  >
265
- The restaurant services as well as other complementary hotel services may undergo changes. (Consult)
265
+ The restaurant services as well as other complementary hotel services may undergo changes. (Consult)
266
266
  </span>
267
267
  <span
268
268
  class="text paragraph wide"
@@ -277,7 +277,7 @@ exports[`modules: parseHtml with values 2`] = `
277
277
  <span
278
278
  class="text paragraph wide"
279
279
  >
280
- 100% of the 1st night expenses in case of no-show at the hotel.
280
+ 100% of the 1st night expenses in case of no-show at the hotel.
281
281
  </span>
282
282
  <span
283
283
  class="text paragraph wide"
@@ -297,7 +297,7 @@ exports[`modules: parseHtml with values 2`] = `
297
297
  <span
298
298
  class="text paragraph wide"
299
299
  >
300
- Discomóvil Service until 03:00hrs.
300
+ Discomóvil Service until 03:00hrs.
301
301
  </span>
302
302
  <span
303
303
  class="text paragraph wide"
@@ -26,7 +26,7 @@ const parseHtml = function () {
26
26
  } = node;
27
27
  const key = "".concat(tagName).concat(index);
28
28
  if (nodeType === Node.TEXT_NODE) {
29
- components.push(textContent.trim());
29
+ components.push(textContent);
30
30
  } else if (nodeType === Node.ELEMENT_NODE) {
31
31
  if (tagName === 'P') {
32
32
  components.push( /*#__PURE__*/_react.default.createElement(_ui.Text, {
@@ -56,7 +56,7 @@ const parseHtml = function () {
56
56
  inline: true,
57
57
  small,
58
58
  style: {
59
- display: 'inline'
59
+ display: 'inline-flex'
60
60
  },
61
61
  target: '_blank'
62
62
  } : undefined),
@@ -1 +1 @@
1
- {"version":3,"file":"parseHtml.js","names":["_ui","require","_react","_interopRequireDefault","obj","__esModule","default","parseHtml","html","arguments","length","undefined","small","parser","DOMParser","body","parseFromString","querySelector","traverseNodes","nodes","components","forEach","node","index","childNodes","nodeType","tagName","textContent","key","concat","Node","TEXT_NODE","push","trim","ELEMENT_NODE","React","createElement","Text","wide","View","style","display","fontWeight","href","getAttribute","Action","Fragment","inline","target","exports"],"sources":["../../../src/components/helpers/parseHtml.js"],"sourcesContent":["import { Action, Text, View } from '@mirai/ui';\nimport React from 'react';\n\nexport const parseHtml = (html = '', { small } = {}) => {\n const parser = new DOMParser();\n const body = parser.parseFromString(html, 'text/html').querySelector('body');\n\n const traverseNodes = (nodes = []) => {\n const components = [];\n\n nodes.forEach((node, index) => {\n const { childNodes, nodeType, tagName, textContent } = node;\n const key = `${tagName}${index}`;\n\n if (nodeType === Node.TEXT_NODE) {\n components.push(textContent.trim());\n } else if (nodeType === Node.ELEMENT_NODE) {\n if (tagName === 'P') {\n components.push(React.createElement(Text, { key, small, wide: true }, traverseNodes(childNodes)));\n } else if (tagName === 'BR') {\n components.push(React.createElement(View, { key, wide: true }));\n } else if (tagName === 'B') {\n components.push(\n React.createElement(\n Text,\n { key, small, style: { display: 'inline', fontWeight: 'var(--mirai-ui-font-bold-weight)' } },\n traverseNodes(childNodes),\n ),\n );\n } else if (tagName === 'A') {\n const href = node.getAttribute('href');\n components.push(\n React.createElement(\n href ? Action : React.Fragment,\n {\n ...(href ? { href, inline: true, small, style: { display: 'inline' }, target: '_blank' } : undefined),\n key,\n },\n textContent,\n ),\n );\n }\n } else {\n traverseNodes(childNodes);\n }\n });\n\n return components;\n };\n\n return traverseNodes(body.childNodes);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA0B,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,SAAS,GAAG,SAAAA,CAAA,EAA+B;EAAA,IAA9BC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAE;IAAEG;EAAM,CAAC,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACjD,MAAMI,MAAM,GAAG,IAAIC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AAEhB,KAAK;YAAE4B,KAAK,EAAE;cAAEC,OAAO,EAAE,QAAQ;cAAEC,UAAU,EAAE;YAAmC;UAAE,CAAC,EAC5FxB,aAAa,CAACM,UAAU,CAC1B,CACF,CAAC;QACH,CAAC,MAAM,IAAIE,OAAO,KAAK,GAAG,EAAE;UAC1B,MAAMiB,IAAI,GAAGrB,IAAI,CAACsB,YAAY,CAAC,MAAM,CAAC;UACtCxB,UAAU,CAACY,IAAI,eACbG,cAAK,CAACC,aAAa,CACjBO,IAAI,GAAGE,UAAM,GAAGV,cAAK,CAACW,QAAQ,EAC9B;YACE,IAAIH,IAAI,GAAG;cAAEA,IAAI;cAAEI,MAAM,EAAE,IAAI;cAAEnC,KAAK;cAAE4B,KAAK,EAAE;gBAAEC,OAAO,EAAE;cAAS,CAAC;cAAEO,MAAM,EAAE;YAAS,CAAC,GAAGrC,SAAS,CAAC;YACrGiB;UACF,CAAC,EACDD,WACF,CACF,CAAC;QACH;MACF,CAAC,MAAM;QACLT,aAAa,CAACM,UAAU,CAAC;MAC3B;IACF,CAAC,CAAC;IAEF,OAAOJ,UAAU;EACnB,CAAC;EAED,OAAOF,aAAa,CAACH,IAAI,CAACS,UAAU,CAAC;AACvC,CAAC;AAACyB,OAAA,CAAA1C,SAAA,GAAAA,SAAA"}
1
+ {"version":3,"file":"parseHtml.js","names":["_ui","require","_react","_interopRequireDefault","obj","__esModule","default","parseHtml","html","arguments","length","undefined","small","parser","DOMParser","body","parseFromString","querySelector","traverseNodes","nodes","components","forEach","node","index","childNodes","nodeType","tagName","textContent","key","concat","Node","TEXT_NODE","push","ELEMENT_NODE","React","createElement","Text","wide","View","style","display","fontWeight","href","getAttribute","Action","Fragment","inline","target","exports"],"sources":["../../../src/components/helpers/parseHtml.js"],"sourcesContent":["import { Action, Text, View } from '@mirai/ui';\nimport React from 'react';\n\nexport const parseHtml = (html = '', { small } = {}) => {\n const parser = new DOMParser();\n const body = parser.parseFromString(html, 'text/html').querySelector('body');\n\n const traverseNodes = (nodes = []) => {\n const components = [];\n\n nodes.forEach((node, index) => {\n const { childNodes, nodeType, tagName, textContent } = node;\n const key = `${tagName}${index}`;\n\n if (nodeType === Node.TEXT_NODE) {\n components.push(textContent);\n } else if (nodeType === Node.ELEMENT_NODE) {\n if (tagName === 'P') {\n components.push(React.createElement(Text, { key, small, wide: true }, traverseNodes(childNodes)));\n } else if (tagName === 'BR') {\n components.push(React.createElement(View, { key, wide: true }));\n } else if (tagName === 'B') {\n components.push(\n React.createElement(\n Text,\n { key, small, style: { display: 'inline', fontWeight: 'var(--mirai-ui-font-bold-weight)' } },\n traverseNodes(childNodes),\n ),\n );\n } else if (tagName === 'A') {\n const href = node.getAttribute('href');\n components.push(\n React.createElement(\n href ? Action : React.Fragment,\n {\n ...(href\n ? { href, inline: true, small, style: { display: 'inline-flex' }, target: '_blank' }\n : undefined),\n key,\n },\n textContent,\n ),\n );\n }\n } else {\n traverseNodes(childNodes);\n }\n });\n\n return components;\n };\n\n return traverseNodes(body.childNodes);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA0B,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,SAAS,GAAG,SAAAA,CAAA,EAA+B;EAAA,IAA9BC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAE;IAAEG;EAAM,CAAC,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACjD,MAAMI,MAAM,GAAG,IAAIC,SAAS,CAAC,CAAC;EAC9B,MAAMC,IAAI,GAAGF,MAAM,CAACG,eAAe,CAACR,IAAI,EAAE,WAAW,CAAC,CAACS,aAAa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B,CACF,CAAC;QACH,CAAC,MAAM,IAAIE,OAAO,KAAK,GAAG,EAAE;UAC1B,MAAMgB,IAAI,GAAGpB,IAAI,CAACqB,YAAY,CAAC,MAAM,CAAC;UACtCvB,UAAU,CAACY,IAAI,eACbE,cAAK,CAACC,aAAa,CACjBO,IAAI,GAAGE,UAAM,GAAGV,cAAK,CAACW,QAAQ,EAC9B;YACE,IAAIH,IAAI,GACJ;cAAEA,IAAI;cAAEI,MAAM,EAAE,IAAI;cAAElC,KAAK;cAAE2B,KAAK,EAAE;gBAAEC,OAAO,EAAE;cAAc,CAAC;cAAEO,MAAM,EAAE;YAAS,CAAC,GAClFpC,SAAS,CAAC;YACdiB;UACF,CAAC,EACDD,WACF,CACF,CAAC;QACH;MACF,CAAC,MAAM;QACLT,aAAa,CAACM,UAAU,CAAC;MAC3B;IACF,CAAC,CAAC;IAEF,OAAOJ,UAAU;EACnB,CAAC;EAED,OAAOF,aAAa,CAACH,IAAI,CAACS,UAAU,CAAC;AACvC,CAAC;AAACwB,OAAA,CAAAzC,SAAA,GAAAA,SAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/core",
3
- "version": "0.3.146",
3
+ "version": "0.3.148",
4
4
  "source": "src/index.js",
5
5
  "repository": "https://gitlab.com/miraicorp/dev/frontend/core",
6
6
  "author": "JΛVI <hello@soyjavi.com>",
@@ -56,13 +56,6 @@ export const Container = ({ children }) => {
56
56
  {/* Session.Login */}
57
57
  <Text>Login</Text>
58
58
  {/* Session.Account */}
59
- <View row className={style.session}>
60
- <View row className={style.avatar}>
61
- <Text bold>[firstName]</Text>
62
- <Text bold>[lastName]</Text>
63
- </View>
64
- <Text>[email]</Text>
65
- </View>
66
59
  </View>
67
60
  </View>
68
61
  {!session && (
@@ -71,27 +71,6 @@ body {
71
71
  gap: var(--mirai-ui-space-L);
72
72
  }
73
73
 
74
- .header .session {
75
- align-items: center;
76
- gap: var(--mirai-ui-space-XS);
77
- }
78
-
79
- .header .session .avatar {
80
- background-color: var(--mirai-ui-content-background);
81
- border-radius: 50%;
82
- height: calc(var(--mirai-ui-space-XL) - var(--mirai-ui-space-S));
83
- justify-content: center;
84
- overflow: hidden;
85
- width: calc(var(--mirai-ui-space-XL) - var(--mirai-ui-space-S));
86
- }
87
-
88
- .header .session .avatar > [data-role='text'] {
89
- text-transform: uppercase;
90
- display: inline-block !important;
91
- max-width: 10px;
92
- overflow: hidden;
93
- }
94
-
95
74
  .footer {
96
75
  background-color: var(--mirai-ui-content);
97
76
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Profile.Account.js","names":["_dataSources","require","_locale","_services","_ui","_react","_interopRequireWildcard","_Profile","_Profile2","style","_shared__","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Account","_form$dateOfBirth","_formError$dateOfBirt","value","locale","session","useStore","translate","useLocale","busy","setBusy","useState","countries","setCountries","form","setForm","formError","setFormError","responseError","setResponseError","formatDate","getDateFormat","useEffect","profile","next","ServiceCountry","list","country","handleSubmit","undefined","parameters","getCountryCode","dateOfBirth","dateFormat","parseDate","format","response","ServiceUser","update","catch","error","Event","publish","EVENT","NOTIFICATION","success","L10N","SUCCESS_ACCOUNT","countryCode","changes","ACCOUNT_FIELDS","some","key","length","errors","keys","createElement","Form","validateOnMount","onChange","onError","onSubmit","Text","wide","DESCRIPTION_ACCOUNT","TextRequiredFields","InputText","name","firstName","label","FIRSTNAME_LABEL","required","showRequired","lastName","LASTNAME_LABEL","disabled","EMAIL_LABEL","type","email","InputDate","hint","max","DATEOFBIRTH_ERROR","DATEOFBIRTH_LABEL","dateCalc","Date","InputSelect","COUNTRY_LABEL","placeholder","COUNTRY_PLACEHOLDER","options","values","InputOption","checked","subscribed","SUBSCRIBED_LABEL","className","Notification","notification","ERROR","Button","large","button","CTA_ACCOUNT","exports","displayName","propTypes"],"sources":["../../../src/components/Profile/Profile.Account.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { dateCalc, dateFormat, getDateFormat, parseDate, useLocale } from '@mirai/locale';\nimport { ServiceCountry, ServiceUser } from '@mirai/services';\nimport { Button, Form, InputDate, InputOption, InputSelect, InputText, Notification, Text } from '@mirai/ui';\nimport React, { useEffect, useState } from 'react';\n\nimport { ACCOUNT_FIELDS } from './Profile.constants';\nimport { L10N } from './Profile.l10n';\nimport * as style from './Profile.module.css';\nimport { TextRequiredFields } from '../__shared__';\nimport { EVENT, getCountryCode } from '../helpers';\n\nconst Account = () => {\n const {\n set,\n value: { locale, session = {} },\n } = useStore();\n const { translate } = useLocale();\n\n const [busy, setBusy] = useState(false);\n const [countries, setCountries] = useState({});\n const [form, setForm] = useState(session);\n const [formError, setFormError] = useState({});\n const [responseError, setResponseError] = useState();\n\n const formatDate = getDateFormat(locale);\n\n useEffect(() => {\n setResponseError();\n set({ profile: form });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form]);\n\n useEffect(() => {\n (async () => {\n const next = (await ServiceCountry.list(locale)) || {};\n\n setCountries(next);\n setForm({ ...form, country: next[session.country] });\n })();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [locale]);\n\n const handleSubmit = async (form) => {\n setBusy(true);\n setResponseError(undefined);\n\n const parameters = {\n ...form,\n country: getCountryCode(form.country, countries),\n dateOfBirth: dateFormat(parseDate(form.dateOfBirth, formatDate), { format: 'DD/MM/YYYY' }),\n };\n\n const response = await ServiceUser.update(parameters).catch((error) => {\n setResponseError(error);\n });\n\n if (response) {\n Event.publish(EVENT.NOTIFICATION, { success: true, ...L10N.SUCCESS_ACCOUNT });\n set({ session: { ...session, ...parameters } });\n }\n setBusy(false);\n };\n\n const countryCode = getCountryCode(form.country, countries);\n const has = {\n changes: ACCOUNT_FIELDS.some((key) => form[key] !== session[key]) || countryCode !== session.country,\n dateOfBirth: form.dateOfBirth?.length,\n errors: Object.keys(formError).length !== 0,\n };\n\n return (\n <Form validateOnMount onChange={setForm} onError={setFormError} onSubmit={handleSubmit}>\n <Text wide>{translate(L10N.DESCRIPTION_ACCOUNT)}</Text>\n <TextRequiredFields />\n <InputText\n name=\"firstName\"\n error={formError.firstName}\n label={translate(L10N.FIRSTNAME_LABEL)}\n required\n showRequired\n success={form.firstName !== session.firstName}\n value={form.firstName}\n />\n <InputText\n name=\"lastName\"\n error={formError.lastName}\n label={translate(L10N.LASTNAME_LABEL)}\n required\n showRequired\n success={form.lastName !== session.lastName}\n value={form.lastName}\n />\n <InputText\n name=\"email\"\n disabled\n label={translate(L10N.EMAIL_LABEL)}\n required\n showRequired\n type=\"email\"\n value={form.email}\n />\n <InputDate\n name=\"dateOfBirth\"\n error={has.dateOfBirth && !!formError.dateOfBirth}\n hint={has.dateOfBirth && formError.dateOfBirth?.max ? translate(L10N.DATEOFBIRTH_ERROR) : undefined}\n format={formatDate}\n label={translate(L10N.DATEOFBIRTH_LABEL)}\n max={dateFormat(dateCalc(new Date(), -18, 'years'), { format: formatDate })}\n required\n showRequired\n success={form.dateOfBirth !== session.dateOfBirth}\n type=\"inputDate\"\n value={form.dateOfBirth}\n />\n <InputSelect\n name=\"country\"\n label={translate(L10N.COUNTRY_LABEL)}\n placeholder={translate(L10N.COUNTRY_PLACEHOLDER)}\n options={Object.values(countries)}\n required\n showRequired\n success={countryCode !== session.country}\n value={form.country}\n />\n <InputOption\n name=\"subscribed\"\n checked={form.subscribed}\n type=\"checkbox\"\n label={translate(L10N.SUBSCRIBED_LABEL)}\n value={form.subscribed}\n className={style.wide}\n />\n\n {responseError && (\n <Notification error className={style.notification}>\n {translate(L10N.ERROR)}\n </Notification>\n )}\n\n <Button\n busy={busy}\n disabled={busy || has.errors || !has.changes}\n large\n wide\n type=\"submit\"\n className={style.button}\n >\n {translate(L10N.CTA_ACCOUNT)}\n </Button>\n </Form>\n );\n};\n\nAccount.displayName = 'Mirai:Core:Profile:Account';\n\nAccount.propTypes = {};\n\nexport {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,IAAI,EAAC,QAAQ;IACbmB,SAAS,EAAExH,KAAK,CAAC8H;EAAO,GAEvB/F,SAAS,CAACuC,cAAI,CAACyD,WAAW,CACrB,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAxG,OAAA,GAAAA,OAAA;AAEFA,OAAO,CAACyG,WAAW,GAAG,4BAA4B;AAElDzG,OAAO,CAAC0G,SAAS,GAAG,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Profile.Password.js","names":["_dataSources","require","_locale","_services","_ui","_react","_interopRequireWildcard","_Profile","style","_shared__","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","Password","others","_form$currentPassword","_formError$currentPas","_form$currentPassword2","_form$password","_formError$password","_form$password2","translate","useLocale","value","session","club","id","idClub","email","useStore","busy","setBusy","useState","form","setForm","formError","setFormError","responseError","setResponseError","sessionError","setSessionError","useEffect","handleSubmit","undefined","currentPassword","password","ServiceUser","login","catch","error","response","update","Event","publish","EVENT","NOTIFICATION","success","L10N","SUCCESS_PASSWORD","errors","keys","createElement","Form","validateOnMount","onChange","onError","onSubmit","Text","wide","DESCRIPTION_PASSWORD","TextRequiredFields","InputText","name","test","hint","PASSWORD_HINT","label","PASSWORD_LABEL","required","showRequired","type","PASSWORD_NEW_LABEL","testPassword","Notification","className","notification","ERROR","Button","disabled","large","button","CTA_PASSWORD","exports","displayName","propTypes"],"sources":["../../../src/components/Profile/Profile.Password.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { ServiceUser } from '@mirai/services';\nimport { Button, Form, InputText, Notification, Text } from '@mirai/ui';\nimport React, { useEffect, useState } from 'react';\n\nimport { L10N } from './Profile.l10n';\nimport * as style from './Profile.module.css';\nimport { TextRequiredFields } from '../__shared__';\nimport { EVENT, testPassword } from '../helpers';\n\nconst Password = (others) => {\n const { translate } = useLocale();\n const { value: { session: { club: { id: idClub } = {}, email } = {} } = {}, set } = useStore();\n\n const [busy, setBusy] = useState(false);\n const [form, setForm] = useState({});\n const [formError, setFormError] = useState({});\n const [responseError, setResponseError] = useState();\n const [sessionError, setSessionError] = useState();\n\n useEffect(() => {\n setResponseError();\n setSessionError();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form]);\n\n const handleSubmit = async (form) => {\n setBusy(true);\n setResponseError(undefined);\n setSessionError(undefined);\n\n const { currentPassword, password } = form;\n const session = await ServiceUser.login({ email, idClub, password: currentPassword }).catch((error) => {\n setSessionError(error);\n });\n if (session) set({ session });\n\n const response =\n session &&\n (await ServiceUser.update({\n password,\n }).catch((error) => {\n setResponseError(error);\n }));\n\n if (response) {\n Event.publish(EVENT.NOTIFICATION, { success: true, ...L10N.SUCCESS_PASSWORD });\n }\n\n setBusy(false);\n };\n\n const has = {\n errors: Object.keys(formError).length !== 0 || form.password === form.currentPassword,\n responseError: responseError || sessionError,\n };\n\n return (\n <Form {...others} validateOnMount onChange={setForm} onError={setFormError} onSubmit={handleSubmit}>\n <Text wide>{translate(L10N.DESCRIPTION_PASSWORD)}</Text>\n <TextRequiredFields />\n <InputText\n name=\"currentPassword\"\n error={form.currentPassword?.length && formError.currentPassword?.test}\n hint={translate(L10N.PASSWORD_HINT)}\n label={translate(L10N.PASSWORD_LABEL)}\n required\n showRequired\n success={form.currentPassword?.length && !formError.currentPassword}\n type=\"password\"\n value={form.currentPassword}\n />\n\n <InputText\n name=\"password\"\n error={form.password?.length && (formError.password?.test || form.password === form.currentPassword)}\n hint={translate(L10N.PASSWORD_HINT)}\n label={translate(L10N.PASSWORD_NEW_LABEL)}\n required\n showRequired\n success={form.password?.length && form.password !== form.currentPassword && !formError.password}\n test={testPassword}\n type=\"password\"\n value={form.password}\n />\n\n {has.responseError && (\n <Notification error className={style.notification}>\n {translate(L10N.ERROR)}\n </Notification>\n )}\n\n <Button busy={busy} disabled={busy || has.errors} large wide type=\"submit\" className={style.button}>\n {translate(L10N.CTA_PASSWORD)}\n </Button>\n </Form>\n );\n};\n\nPassword.displayName = 'Mirai:Core:Profile:Password';\n\nPassword.propTypes = {};\n\nexport { Password };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAAiD,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,C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AI,CAAC6B,KAAK,CACT,CACf,eAED7G,MAAA,CAAAY,OAAA,CAAAwE,aAAA,CAACrF,GAAA,CAAA+G,MAAM;IAACzD,IAAI,EAAEA,IAAK;IAAC0D,QAAQ,EAAE1D,IAAI,IAAIxC,GAAG,CAACqE,MAAO;IAAC8B,KAAK;IAACrB,IAAI;IAACY,IAAI,EAAC,QAAQ;IAACI,SAAS,EAAExG,KAAK,CAAC8G;EAAO,GAChGrE,SAAS,CAACoC,aAAI,CAACkC,YAAY,CACtB,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAA/E,QAAA,GAAAA,QAAA;AAEFA,QAAQ,CAACgF,WAAW,GAAG,6BAA6B;AAEpDhF,QAAQ,CAACiF,SAAS,GAAG,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Profile.Signout.js","names":["_dataSources","require","_locale","_services","_ui","_react","_interopRequireWildcard","_Profile","style","_helpers","_Session","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Signout","value","club","hotel","language","useStore","translate","useLocale","busy","setBusy","useState","modal","setModal","response","setResponse","responseError","setResponseError","handleSubmit","undefined","ServiceUser","signout","catch","error","handleClose","handleOpen","handleSignup","url","concat","process","env","SERVICE_USER","ENDPOINT","SIGNUP","toUrlParams","idtokenprovider","id","lang","document","location","href","createElement","Fragment","Text","bold","headline","L10N","TITLE_SIGNOUT","name","className","description","DESCRIPTION_SIGNOUT","Button","secondary","large","wide","onPress","BUTTON_SIGNOUT","Modal","title","visible","onClose","View","content","DESCRIPTION_SIGNOUT_MODAL","Notification","success","notification","ERROR","SUCCESS_SIGNOUT","row","buttons","Action","disabled","ACTION_SIGNOUT_CANCEL","CTA_SIGNOUT","DESCRIPTION_SIGNOUT_MODAL_SUCCESS","type","CTA_SIGNUP","exports","displayName","propTypes"],"sources":["../../../src/components/Profile/Profile.Signout.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { ServiceUser } from '@mirai/services';\nimport { Action, Button, Modal, Notification, Text, View } from '@mirai/ui';\nimport React, { useState } from 'react';\n\nimport { L10N } from './Profile.l10n';\nimport * as style from './Profile.module.css';\nimport { toUrlParams } from '../helpers';\nimport { ENDPOINT } from '../Session/Session.constants';\n\nconst Signout = () => {\n const {\n value: { club = {}, hotel = {}, language },\n } = useStore();\n const { translate } = useLocale();\n\n const [busy, setBusy] = useState(false);\n const [modal, setModal] = useState(false);\n const [response, setResponse] = useState();\n const [responseError, setResponseError] = useState();\n\n const handleSubmit = async () => {\n setBusy(true);\n setResponseError(undefined);\n\n const response = await ServiceUser.signout().catch((error) => {\n setResponseError(error);\n });\n\n setResponse(response);\n setBusy(false);\n };\n\n const handleClose = () => {\n setModal(false);\n };\n\n const handleOpen = () => {\n setModal(true);\n };\n\n const handleSignup = () => {\n const url = `${process.env.SERVICE_USER}/${ENDPOINT.SIGNUP}${toUrlParams({\n idtokenprovider: hotel.id,\n lang: language,\n })}`;\n\n document.location.href = url;\n };\n\n return (\n <>\n <Text bold headline>\n {translate(L10N.TITLE_SIGNOUT, { club: club.name })}\n </Text>\n\n <Text className={style.description}>{translate(L10N.DESCRIPTION_SIGNOUT)}</Text>\n\n <Button secondary large wide onPress={handleOpen}>\n {translate(L10N.BUTTON_SIGNOUT)}\n </Button>\n\n <Modal title={translate(L10N.BUTTON_SIGNOUT)} visible={modal} onClose={handleClose}>\n <View className={style.content}>\n {!response && <Text className={style.description}>{translate(L10N.DESCRIPTION_SIGNOUT_MODAL)}</Text>}\n\n {(response || responseError) && (\n <Notification\n large={!!response}\n error={!!responseError}\n success={!!response}\n className={style.notification}\n >\n {translate(responseError ? L10N.ERROR : L10N.SUCCESS_SIGNOUT)}\n </Notification>\n )}\n\n {!response ? (\n <View row className={style.buttons}>\n <Action disabled={busy} onPress={handleClose}>\n {translate(L10N.ACTION_SIGNOUT_CANCEL)}\n </Action>\n <Button busy={busy} onPress={handleSubmit}>\n {translate(L10N.CTA_SIGNOUT)}\n </Button>\n </View>\n ) : (\n <>\n <Text className={style.description}>{translate(L10N.DESCRIPTION_SIGNOUT_MODAL_SUCCESS)}</Text>\n <Button wide type=\"submit\" onPress={handleSignup}>\n {translate(L10N.CTA_SIGNUP)}\n </Button>\n </>\n )}\n </View>\n </Modal>\n </>\n );\n};\n\nSignout.displayName = 'Mirai:Core:Profile:Signout';\n\nSignout.propTypes = {};\n\nexport { Signout };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAAwD,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,C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GAC1CjB,SAAS,CAACuC,aAAI,CAAC4B,qBAAqB,CAC/B,CAAC,eACTpG,MAAA,CAAAY,OAAA,CAAAuD,aAAA,CAACpE,GAAA,CAAA+E,MAAM;IAAC3C,IAAI,EAAEA,IAAK;IAAC+C,OAAO,EAAEtC;EAAa,GACvCX,SAAS,CAACuC,aAAI,CAAC6B,WAAW,CACrB,CACJ,CAAC,gBAEPrG,MAAA,CAAAY,OAAA,CAAAuD,aAAA,CAAAnE,MAAA,CAAAY,OAAA,CAAAwD,QAAA,qBACEpE,MAAA,CAAAY,OAAA,CAAAuD,aAAA,CAACpE,GAAA,CAAAsE,IAAI;IAACM,SAAS,EAAExE,KAAK,CAACyE;EAAY,GAAE3C,SAAS,CAACuC,aAAI,CAAC8B,iCAAiC,CAAQ,CAAC,eAC9FtG,MAAA,CAAAY,OAAA,CAAAuD,aAAA,CAACpE,GAAA,CAAA+E,MAAM;IAACG,IAAI;IAACsB,IAAI,EAAC,QAAQ;IAACrB,OAAO,EAAE9B;EAAa,GAC9CnB,SAAS,CAACuC,aAAI,CAACgC,UAAU,CACpB,CACR,CAEA,CACD,CACP,CAAC;AAEP,CAAC;AAACC,OAAA,CAAA9E,OAAA,GAAAA,OAAA;AAEFA,OAAO,CAAC+E,WAAW,GAAG,4BAA4B;AAElD/E,OAAO,CAACgF,SAAS,GAAG,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Profile.l10n.js","names":["L10N","exports","ACTION_BOOKINGS","id","defaultMessage","ACTION_PROFILE","ACTION_SIGNOUT_CANCEL","BUTTON_SIGNOUT","COUNTRY_LABEL","COUNTRY_PLACEHOLDER","CTA_SIGNOUT","CTA_ACCOUNT","CTA_PASSWORD","CTA_SIGNUP","DATEOFBIRTH_LABEL","DATEOFBIRTH_ERROR","DESCRIPTION_ACCOUNT","DESCRIPTION_PASSWORD","DESCRIPTION_SIGNOUT","DESCRIPTION_SIGNOUT_MODAL","DESCRIPTION_SIGNOUT_MODAL_SUCCESS","EMAIL_LABEL","FIRSTNAME_LABEL","LASTNAME_LABEL","PASSWORD_LABEL","PASSWORD_HINT","PASSWORD_NEW_LABEL","SUBSCRIBED_LABEL","TITLE_SIGNOUT","SUCCESS_ACCOUNT","SUCCESS_PASSWORD","SUCCESS_SIGNOUT","ERROR","ERROR_PASSWORD"],"sources":["../../../src/components/Profile/Profile.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_BOOKINGS: { id: 'user.action.view_bookings', defaultMessage: ' ' },\n ACTION_PROFILE: { id: 'user.action.view_profile', defaultMessage: '          ' },\n ACTION_SIGNOUT_CANCEL: { id: 'common.action.close' },\n\n BUTTON_SIGNOUT: { id: 'user.action.delete_account', defaultMessage: ' ' },\n\n COUNTRY_LABEL: { id: 'user.label.country', defaultMessage: ' ' },\n COUNTRY_PLACEHOLDER: { id: 'common.label.select' },\n CTA_SIGNOUT: { id: 'user.action.delete_account' },\n CTA_ACCOUNT: { id: 'user.action.save_info', defaultMessage: ' ' },\n CTA_PASSWORD: { id: 'user.action.save_password', defaultMessage: ' ' },\n CTA_SIGNUP: { id: 'user.action.signup_again' },\n\n DATEOFBIRTH_LABEL: { id: 'user.label.date_of_birth', defaultMessage: ' ' },\n DATEOFBIRTH_ERROR: { id: 'user.label.date_of_birth_error' },\n DESCRIPTION_ACCOUNT: { id: 'user.label.description_account', defaultMessage: ' ' },\n DESCRIPTION_PASSWORD: { id: 'user.label.description_password', defaultMessage: ' ' },\n DESCRIPTION_SIGNOUT: { id: 'user.label.description_delete_account', defaultMessage: ' ' },\n DESCRIPTION_SIGNOUT_MODAL: { id: 'user.label.modal_delete_account' },\n DESCRIPTION_SIGNOUT_MODAL_SUCCESS: { id: 'user.label.account_deleted' },\n\n EMAIL_LABEL: { id: 'common.label.email', defaultMessage: ' ' },\n\n FIRSTNAME_LABEL: { id: 'common.label.name', defaultMessage: ' ' },\n\n LASTNAME_LABEL: { id: 'common.label.lastname', defaultMessage: ' ' },\n\n PASSWORD_LABEL: { id: 'common.label.password', defaultMessage: ' ' },\n PASSWORD_HINT: { id: 'user.label.password_hint', defaultMessage: ' ' },\n PASSWORD_NEW_LABEL: { id: 'common.label.new_password', defaultMessage: ' ' },\n\n SUBSCRIBED_LABEL: { id: 'user.label.subscribe', defaultMessage: ' ' },\n\n TITLE_SIGNOUT: { id: 'user.label.delete_account', defaultMessage: ' ' },\n\n // Notifications\n SUCCESS_ACCOUNT: { id: 'user.notification.update_account_success' },\n SUCCESS_PASSWORD: { id: 'user.notification.update_password_success' },\n SUCCESS_SIGNOUT: { id: 'user.notification.delete_account_success' },\n\n ERROR: { id: 'common.notification.network_error' },\n ERROR_PASSWORD: { id: 'common.notification.password_error' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,eAAe,EAAE;IAAEC,EAAE,EAAE,2BAA2B;IAAEC,cAAc,EAAE;EAAI,CAAC;EACzEC,cAAc,EAAE;IAAEF,EAAE,EAAE,0BAA0B;IAAEC,cAAc,EAAE;EAAa,CAAC;EAChFE,qBAAqB,EAAE;IAAEH,EAAE,EAAE;EAAsB,CAAC;EAEpDI,cAAc,EAAE;IAAEJ,EAAE,EAAE,4BAA4B;IAAEC,cAAc,EAAE;EAAI,CAAC;EAEzEI,aAAa,EAAE;IAAEL,EAAE,EAAE,oBAAoB;IAAEC,cAAc,EAAE;EAAI,CAAC;EAChEK,mBAAmB,EAAE;IAAEN,EAAE,EAAE;EAAsB,CAAC;EAClDO,WAAW,EAAE;IAAEP,EAAE,EAAE;EAA6B,CAAC;EACjDQ,WAAW,EAAE;IAAER,EAAE,EAAE,uBAAuB;IAAEC,cAAc,EAAE;EAAI,CAAC;EACjEQ,YAAY,EAAE;IAAET,EAAE,EAAE,2BAA2B;IAAEC,cAAc,EAAE;EAAI,CAAC;EACtES,UAAU,EAAE;IAAEV,EAAE,EAAE;EAA2B,CAAC;EAE9CW,iBAAiB,EAAE;IAAEX,EAAE,EAAE,0BAA0B;IAA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