@mirai/core 0.4.243 → 0.4.245

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 (119) hide show
  1. package/build/Core.js +0 -8
  2. package/build/Core.js.map +1 -1
  3. package/build/components/Chat/Chat.constants.js +6 -3
  4. package/build/components/Chat/Chat.constants.js.map +1 -1
  5. package/build/components/Chat/Chat.js +48 -34
  6. package/build/components/Chat/Chat.js.map +1 -1
  7. package/build/components/Chat/Chat.l10n.js +2 -20
  8. package/build/components/Chat/Chat.l10n.js.map +1 -1
  9. package/build/components/Chat/Chat.module.css +14 -189
  10. package/build/components/Chat/components/Avatar/Avatar.module.css +3 -2
  11. package/build/components/Chat/{Chat.ButtonAvatar.js → components/ButtonDispatcher/ButtonDispatcher.js} +21 -18
  12. package/build/components/Chat/components/ButtonDispatcher/ButtonDispatcher.js.map +1 -0
  13. package/build/components/Chat/components/ButtonDispatcher/ButtonDispatcher.l10n.js +15 -0
  14. package/build/components/Chat/components/ButtonDispatcher/ButtonDispatcher.l10n.js.map +1 -0
  15. package/build/components/Chat/components/ButtonDispatcher/ButtonDispatcher.module.css +134 -0
  16. package/build/components/Chat/components/ButtonDispatcher/index.js +17 -0
  17. package/build/components/Chat/components/ButtonDispatcher/index.js.map +1 -0
  18. package/build/components/Chat/components/Header/Header.js +72 -0
  19. package/build/components/Chat/components/Header/Header.js.map +1 -0
  20. package/build/components/Chat/components/Header/Header.l10n.js +15 -0
  21. package/build/components/Chat/components/Header/Header.l10n.js.map +1 -0
  22. package/build/components/Chat/components/Header/Header.module.css +15 -0
  23. package/build/components/Chat/components/{InputRich → Header}/index.js +4 -4
  24. package/build/components/Chat/components/Header/index.js.map +1 -0
  25. package/build/components/Chat/components/Input/Input.Context.js +75 -0
  26. package/build/components/Chat/components/Input/Input.Context.js.map +1 -0
  27. package/build/components/Chat/components/Input/Input.js +42 -17
  28. package/build/components/Chat/components/Input/Input.js.map +1 -1
  29. package/build/components/Chat/components/Input/Input.module.css +46 -9
  30. package/build/components/Chat/components/Message/Message.Action.js +8 -65
  31. package/build/components/Chat/components/Message/Message.Action.js.map +1 -1
  32. package/build/components/Chat/components/Message/Message.Requirement.js +141 -0
  33. package/build/components/Chat/components/Message/Message.Requirement.js.map +1 -0
  34. package/build/components/Chat/components/Message/Message.constants.js +18 -2
  35. package/build/components/Chat/components/Message/Message.constants.js.map +1 -1
  36. package/build/components/Chat/components/Message/Message.js +35 -30
  37. package/build/components/Chat/components/Message/Message.js.map +1 -1
  38. package/build/components/Chat/components/{InputRich/InputRich.l10n.js → Message/Message.l10n.js} +4 -1
  39. package/build/components/Chat/components/Message/Message.l10n.js.map +1 -0
  40. package/build/components/Chat/components/Message/Message.module.css +66 -49
  41. package/build/components/Chat/components/Message/components/Card.js +8 -6
  42. package/build/components/Chat/components/Message/components/Card.js.map +1 -1
  43. package/build/components/Chat/components/Message/components/Card.module.css +25 -15
  44. package/build/components/Chat/components/Message/components/Environment.js +2 -3
  45. package/build/components/Chat/components/Message/components/Environment.js.map +1 -1
  46. package/build/components/Chat/components/Message/components/Environment.module.css +11 -5
  47. package/build/components/Chat/components/{InputRich/InputRich.List.js → Message/components/List/List.js} +2 -2
  48. package/build/components/Chat/components/Message/components/List/List.js.map +1 -0
  49. package/build/components/Chat/components/Message/components/List/List.module.css +44 -0
  50. package/build/components/Chat/components/Message/components/List/helpers/getVerboseList.js.map +1 -0
  51. package/build/components/Chat/components/{InputRich → Message/components/List}/helpers/index.js +0 -11
  52. package/build/components/Chat/components/Message/components/List/helpers/index.js.map +1 -0
  53. package/build/components/Chat/components/Message/components/List/index.js +17 -0
  54. package/build/components/Chat/components/Message/components/List/index.js.map +1 -0
  55. package/build/components/Chat/components/Message/components/Typewriter/Typewriter.js +74 -0
  56. package/build/components/Chat/components/Message/components/Typewriter/Typewriter.js.map +1 -0
  57. package/build/components/Chat/components/Message/components/Typewriter/Typewriter.module.css +17 -0
  58. package/build/components/Chat/components/Message/components/Typewriter/index.js +17 -0
  59. package/build/components/Chat/components/Message/components/Typewriter/index.js.map +1 -0
  60. package/build/components/Chat/components/Message/components/index.js +22 -0
  61. package/build/components/Chat/components/Message/components/index.js.map +1 -1
  62. package/build/components/Chat/components/Message/intents/BookingQuery.js +1 -3
  63. package/build/components/Chat/components/Message/intents/BookingQuery.js.map +1 -1
  64. package/build/components/Chat/components/Message/intents/HotelInfo.js +3 -4
  65. package/build/components/Chat/components/Message/intents/HotelInfo.js.map +1 -1
  66. package/build/components/Chat/components/Message/intents/Login/Login.js +123 -0
  67. package/build/components/Chat/components/Message/intents/Login/Login.js.map +1 -0
  68. package/build/components/Chat/components/Message/intents/Login/Login.l10n.js +24 -0
  69. package/build/components/Chat/components/Message/intents/Login/Login.l10n.js.map +1 -0
  70. package/build/components/Chat/components/Message/intents/Login/Login.module.css +12 -0
  71. package/build/components/Chat/components/Message/intents/Login/index.js +17 -0
  72. package/build/components/Chat/components/Message/intents/Login/index.js.map +1 -0
  73. package/build/components/Chat/components/Message/intents/index.js +11 -0
  74. package/build/components/Chat/components/Message/intents/index.js.map +1 -1
  75. package/build/components/Chat/components/Welcome/Welcome.constants.js +17 -0
  76. package/build/components/Chat/components/Welcome/Welcome.constants.js.map +1 -0
  77. package/build/components/Chat/components/Welcome/Welcome.js +128 -0
  78. package/build/components/Chat/components/Welcome/Welcome.js.map +1 -0
  79. package/build/components/Chat/components/Welcome/Welcome.l10n.js +15 -0
  80. package/build/components/Chat/components/Welcome/Welcome.l10n.js.map +1 -0
  81. package/build/components/Chat/components/Welcome/Welcome.module.css +127 -0
  82. package/build/components/Chat/components/Welcome/index.js +17 -0
  83. package/build/components/Chat/components/Welcome/index.js.map +1 -0
  84. package/build/components/Chat/components/index.js +30 -8
  85. package/build/components/Chat/components/index.js.map +1 -1
  86. package/build/components/Checkout/helpers/getFieldProps.js +3 -2
  87. package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
  88. package/build/components/Checkout/partials/Checkout.Form.js +3 -0
  89. package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
  90. package/build/components/Signup/Signup.js +9 -3
  91. package/build/components/Signup/Signup.js.map +1 -1
  92. package/build/components/__shared__/Footer/Footer.js +3 -1
  93. package/build/components/__shared__/Footer/Footer.js.map +1 -1
  94. package/build/components/helpers/ICON.js +6 -2
  95. package/build/components/helpers/ICON.js.map +1 -1
  96. package/build/helpers/getClub.js +1 -6
  97. package/build/helpers/getClub.js.map +1 -1
  98. package/build/helpers/index.js +0 -11
  99. package/build/helpers/index.js.map +1 -1
  100. package/build/theme.css +13 -28
  101. package/package.json +1 -1
  102. package/build/components/Chat/Chat.ButtonAvatar.js.map +0 -1
  103. package/build/components/Chat/Chat.Header.js +0 -144
  104. package/build/components/Chat/Chat.Header.js.map +0 -1
  105. package/build/components/Chat/components/InputRich/InputRich.List.js.map +0 -1
  106. package/build/components/Chat/components/InputRich/InputRich.js +0 -179
  107. package/build/components/Chat/components/InputRich/InputRich.js.map +0 -1
  108. package/build/components/Chat/components/InputRich/InputRich.l10n.js.map +0 -1
  109. package/build/components/Chat/components/InputRich/InputRich.module.css +0 -109
  110. package/build/components/Chat/components/InputRich/helpers/getVerboseList.js.map +0 -1
  111. package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js +0 -27
  112. package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js.map +0 -1
  113. package/build/components/Chat/components/InputRich/helpers/index.js.map +0 -1
  114. package/build/components/Chat/components/InputRich/index.js.map +0 -1
  115. package/build/components/Chat/components/Message/components/Typewriter.js +0 -47
  116. package/build/components/Chat/components/Message/components/Typewriter.js.map +0 -1
  117. package/build/helpers/getClubUrl.js +0 -26
  118. package/build/helpers/getClubUrl.js.map +0 -1
  119. /package/build/components/Chat/components/{InputRich → Message/components/List}/helpers/getVerboseList.js +0 -0
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Login = void 0;
7
+ var _dataSources = require("@mirai/data-sources");
8
+ var _locale = require("@mirai/locale");
9
+ var _services = require("@mirai/services");
10
+ var _ui = require("@mirai/ui");
11
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
+ var _react = _interopRequireWildcard(require("react"));
13
+ var _Login = require("./Login.l10n");
14
+ var style = _interopRequireWildcard(require("./Login.module.css"));
15
+ var _helpers = require("../../../../../helpers");
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
+ const Login = _ref => {
21
+ let {
22
+ onSuccess = () => {},
23
+ ...others
24
+ } = _ref;
25
+ const {
26
+ translate
27
+ } = (0, _locale.useLocale)();
28
+ const {
29
+ set,
30
+ value: {
31
+ club = {},
32
+ id
33
+ } = {}
34
+ } = (0, _dataSources.useStore)();
35
+ const [busy, setBusy] = (0, _react.useState)(false);
36
+ const [form, setForm] = (0, _react.useState)({});
37
+ const [formError, setFormError] = (0, _react.useState)({});
38
+ const [responseError, setResponseError] = (0, _react.useState)();
39
+ (0, _react.useEffect)(() => {
40
+ setForm({});
41
+ setFormError({
42
+ touched: false
43
+ });
44
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45
+ }, []);
46
+ (0, _react.useEffect)(() => {
47
+ setResponseError();
48
+ set({
49
+ login: form
50
+ });
51
+ // eslint-disable-next-line react-hooks/exhaustive-deps
52
+ }, [form]);
53
+ const handleSubmit = async value => {
54
+ setBusy(true);
55
+ setResponseError(undefined);
56
+ const props = {
57
+ ...value,
58
+ idClub: club.id,
59
+ idHotel: id
60
+ };
61
+ const response = await _services.ServiceUser.login(props).catch(error => {
62
+ setResponseError(error);
63
+ _dataSources.Event.publish(_helpers.EVENT.METRICS, {
64
+ id: "LOGIN:ERROR"
65
+ });
66
+ });
67
+ if (response) {
68
+ set({
69
+ session: response
70
+ });
71
+ onSuccess();
72
+ _dataSources.Event.publish(_helpers.EVENT.LOGGED, {
73
+ event: _helpers.EVENT.LOGGED,
74
+ response
75
+ });
76
+ _dataSources.Event.publish(_helpers.EVENT.METRICS, {
77
+ id: "LOGIN:'SUCCESS"
78
+ });
79
+ }
80
+ setBusy(false);
81
+ };
82
+ return /*#__PURE__*/_react.default.createElement(_ui.Form, _extends({}, others, {
83
+ onChange: setForm,
84
+ onError: setFormError,
85
+ onSubmit: handleSubmit,
86
+ className: style.form
87
+ }), /*#__PURE__*/_react.default.createElement(_ui.Text, {
88
+ className: style.description
89
+ }, translate(_Login.L10N.LABEL_FORM_DESCRIPTION)), /*#__PURE__*/_react.default.createElement(_ui.InputText, {
90
+ autoComplete: "true",
91
+ name: "email",
92
+ label: translate(_Login.L10N.LABEL_EMAIL),
93
+ required: true,
94
+ type: "email",
95
+ value: form.email
96
+ }), /*#__PURE__*/_react.default.createElement(_ui.InputText, {
97
+ autoComplete: "true",
98
+ name: "password",
99
+ label: translate(_Login.L10N.LABEL_PASSWORD),
100
+ required: true,
101
+ type: "password",
102
+ value: form.password
103
+ }), !busy && responseError && /*#__PURE__*/_react.default.createElement(_ui.Notification, {
104
+ error: true,
105
+ className: style.notification,
106
+ testId: "login-notification"
107
+ }, translate(_Login.L10N.NOTIFICATION_ERROR)), /*#__PURE__*/_react.default.createElement(_ui.Button, {
108
+ busy: busy,
109
+ disabled: Object.keys(formError).length !== 0,
110
+ large: true,
111
+ type: "submit",
112
+ wide: true,
113
+ onPress: () => {},
114
+ testId: "login-button",
115
+ className: style.button
116
+ }, translate(_Login.L10N.ACTION_LOGIN)));
117
+ };
118
+ exports.Login = Login;
119
+ Login.displayName = 'Mirai:Core:Chat:Message:Login';
120
+ Login.propTypes = {
121
+ onSuccess: _propTypes.default.func
122
+ };
123
+ //# sourceMappingURL=Login.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Login.js","names":["_dataSources","require","_locale","_services","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Login","style","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Login","_ref","onSuccess","others","translate","useLocale","value","club","id","useStore","busy","setBusy","useState","form","setForm","formError","setFormError","responseError","setResponseError","useEffect","touched","login","handleSubmit","undefined","props","idClub","idHotel","response","ServiceUser","catch","error","Event","publish","EVENT","METRICS","session","LOGGED","event","createElement","Form","onChange","onError","onSubmit","className","Text","description","L10N","LABEL_FORM_DESCRIPTION","InputText","autoComplete","name","label","LABEL_EMAIL","required","type","email","LABEL_PASSWORD","password","Notification","notification","testId","NOTIFICATION_ERROR","Button","disabled","keys","large","wide","onPress","button","ACTION_LOGIN","exports","displayName","propTypes","PropTypes","func"],"sources":["../../../../../../../src/components/Chat/components/Message/intents/Login/Login.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 PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { L10N } from './Login.l10n';\nimport * as style from './Login.module.css';\nimport { EVENT } from '../../../../../helpers';\n\nconst Login = ({ onSuccess = () => {}, ...others }) => {\n const { translate } = useLocale();\n const { set, value: { club = {}, id } = {} } = useStore();\n\n const [busy, setBusy] = useState(false);\n const [form, setForm] = useState({});\n const [formError, setFormError] = useState({});\n const [responseError, setResponseError] = useState();\n\n useEffect(() => {\n setForm({});\n setFormError({ touched: false });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n setResponseError();\n set({ login: form });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form]);\n\n const handleSubmit = async (value) => {\n setBusy(true);\n setResponseError(undefined);\n\n const props = { ...value, idClub: club.id, idHotel: id };\n const response = await ServiceUser.login(props).catch((error) => {\n setResponseError(error);\n Event.publish(EVENT.METRICS, { id: `LOGIN:ERROR` });\n });\n\n if (response) {\n set({ session: response });\n onSuccess();\n\n Event.publish(EVENT.LOGGED, { event: EVENT.LOGGED, response });\n Event.publish(EVENT.METRICS, { id: `LOGIN:'SUCCESS` });\n }\n setBusy(false);\n };\n\n return (\n <Form {...others} onChange={setForm} onError={setFormError} onSubmit={handleSubmit} className={style.form}>\n <Text className={style.description}>{translate(L10N.LABEL_FORM_DESCRIPTION)}</Text>\n\n <InputText\n autoComplete=\"true\"\n name=\"email\"\n label={translate(L10N.LABEL_EMAIL)}\n required\n type=\"email\"\n value={form.email}\n />\n <InputText\n autoComplete=\"true\"\n name=\"password\"\n label={translate(L10N.LABEL_PASSWORD)}\n required\n type=\"password\"\n value={form.password}\n />\n\n {!busy && responseError && (\n <Notification error className={style.notification} testId=\"login-notification\">\n {translate(L10N.NOTIFICATION_ERROR)}\n </Notification>\n )}\n\n <Button\n busy={busy}\n disabled={Object.keys(formError).length !== 0}\n large\n type=\"submit\"\n wide\n onPress={() => {}}\n testId=\"login-button\"\n className={style.button}\n >\n {translate(L10N.ACTION_LOGIN)}\n </Button>\n </Form>\n );\n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AIO,aAAa,iBACrBrD,MAAA,CAAAW,OAAA,CAAA+D,aAAA,CAAC7E,GAAA,CAAAiG,YAAY;IAAC5B,KAAK;IAACa,SAAS,EAAE5E,KAAK,CAAC4F,YAAa;IAACC,MAAM,EAAC;EAAoB,GAC3ExD,SAAS,CAAC0C,WAAI,CAACe,kBAAkB,CACtB,CACf,eAEDjG,MAAA,CAAAW,OAAA,CAAA+D,aAAA,CAAC7E,GAAA,CAAAqG,MAAM;IACLpD,IAAI,EAAEA,IAAK;IACXqD,QAAQ,EAAElF,MAAM,CAACmF,IAAI,CAACjD,SAAS,CAAC,CAACnB,MAAM,KAAK,CAAE;IAC9CqE,KAAK;IACLX,IAAI,EAAC,QAAQ;IACbY,IAAI;IACJC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAE;IAClBP,MAAM,EAAC,cAAc;IACrBjB,SAAS,EAAE5E,KAAK,CAACqG;EAAO,GAEvBhE,SAAS,CAAC0C,WAAI,CAACuB,YAAY,CACtB,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAtE,KAAA,GAAAA,KAAA;AAEFA,KAAK,CAACuE,WAAW,GAAG,+BAA+B;AAEnDvE,KAAK,CAACwE,SAAS,GAAG;EAChBtE,SAAS,EAAEuE,kBAAS,CAACC;AACvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.L10N = void 0;
7
+ const L10N = exports.L10N = {
8
+ ACTION_LOGIN: {
9
+ id: 'common.action.login'
10
+ },
11
+ LABEL_FORM_DESCRIPTION: {
12
+ id: 'user.label.form_description'
13
+ },
14
+ LABEL_EMAIL: {
15
+ id: 'common.label.email'
16
+ },
17
+ LABEL_PASSWORD: {
18
+ id: 'common.label.password'
19
+ },
20
+ NOTIFICATION_ERROR: {
21
+ id: 'common.notification.error_unknown'
22
+ }
23
+ };
24
+ //# sourceMappingURL=Login.l10n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Login.l10n.js","names":["L10N","exports","ACTION_LOGIN","id","LABEL_FORM_DESCRIPTION","LABEL_EMAIL","LABEL_PASSWORD","NOTIFICATION_ERROR"],"sources":["../../../../../../../src/components/Chat/components/Message/intents/Login/Login.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_LOGIN: { id: 'common.action.login' },\n\n LABEL_FORM_DESCRIPTION: { id: 'user.label.form_description' },\n LABEL_EMAIL: { id: 'common.label.email' },\n LABEL_PASSWORD: { id: 'common.label.password' },\n\n NOTIFICATION_ERROR: { id: 'common.notification.error_unknown' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,YAAY,EAAE;IAAEC,EAAE,EAAE;EAAsB,CAAC;EAE3CC,sBAAsB,EAAE;IAAED,EAAE,EAAE;EAA8B,CAAC;EAC7DE,WAAW,EAAE;IAAEF,EAAE,EAAE;EAAqB,CAAC;EACzCG,cAAc,EAAE;IAAEH,EAAE,EAAE;EAAwB,CAAC;EAE/CI,kBAAkB,EAAE;IAAEJ,EAAE,EAAE;EAAoC;AAChE,CAAC"}
@@ -0,0 +1,12 @@
1
+ .form {
2
+ margin: var(--mirai-ui-space-M);
3
+ }
4
+
5
+ .description {
6
+ margin-bottom: var(--mirai-ui-space-M);
7
+ }
8
+
9
+ .notification,
10
+ .button {
11
+ margin-top: var(--mirai-ui-space-M);
12
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Login = require("./Login");
7
+ Object.keys(_Login).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Login[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Login[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_Login","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../../src/components/Chat/components/Message/intents/Login/index.js"],"sourcesContent":["export * from './Login';\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -25,4 +25,15 @@ Object.keys(_HotelInfo).forEach(function (key) {
25
25
  }
26
26
  });
27
27
  });
28
+ var _Login = require("./Login");
29
+ Object.keys(_Login).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _Login[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _Login[key];
36
+ }
37
+ });
38
+ });
28
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_BookingQuery","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_HotelInfo"],"sources":["../../../../../../src/components/Chat/components/Message/intents/index.js"],"sourcesContent":["export * from './BookingQuery';\nexport * from './HotelInfo';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_BookingQuery","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_HotelInfo","_Login"],"sources":["../../../../../../src/components/Chat/components/Message/intents/index.js"],"sourcesContent":["export * from './BookingQuery';\nexport * from './HotelInfo';\nexport * from './Login';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.INTENT_ICON = void 0;
7
+ var _helpers = require("../../../helpers");
8
+ var _Chat = require("../../Chat.constants");
9
+ const INTENT_ICON = exports.INTENT_ICON = {
10
+ [_Chat.INTENT.BOOKING_CREATE]: _helpers.ICON.CALENDAR,
11
+ [_Chat.INTENT.BOOKING_QUERY]: _helpers.ICON.LIST,
12
+ [_Chat.INTENT.BOOKING_CANCEL]: _helpers.ICON.CALENDAR_CANCEL,
13
+ [_Chat.INTENT.HOTEL_INFO]: _helpers.ICON.HOTEL,
14
+ [_Chat.INTENT.OFFERS]: _helpers.ICON.OFFER,
15
+ [_Chat.INTENT.LOGIN]: _helpers.ICON.ACCOUNT
16
+ };
17
+ //# sourceMappingURL=Welcome.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Welcome.constants.js","names":["_helpers","require","_Chat","INTENT_ICON","exports","INTENT","BOOKING_CREATE","ICON","CALENDAR","BOOKING_QUERY","LIST","BOOKING_CANCEL","CALENDAR_CANCEL","HOTEL_INFO","HOTEL","OFFERS","OFFER","LOGIN","ACCOUNT"],"sources":["../../../../../src/components/Chat/components/Welcome/Welcome.constants.js"],"sourcesContent":["import { ICON } from '../../../helpers';\nimport { INTENT } from '../../Chat.constants';\n\nconst INTENT_ICON = {\n [INTENT.BOOKING_CREATE]: ICON.CALENDAR,\n [INTENT.BOOKING_QUERY]: ICON.LIST,\n [INTENT.BOOKING_CANCEL]: ICON.CALENDAR_CANCEL,\n [INTENT.HOTEL_INFO]: ICON.HOTEL,\n [INTENT.OFFERS]: ICON.OFFER,\n [INTENT.LOGIN]: ICON.ACCOUNT,\n};\n\nexport { INTENT_ICON };\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,MAAME,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAClB,CAACE,YAAM,CAACC,cAAc,GAAGC,aAAI,CAACC,QAAQ;EACtC,CAACH,YAAM,CAACI,aAAa,GAAGF,aAAI,CAACG,IAAI;EACjC,CAACL,YAAM,CAACM,cAAc,GAAGJ,aAAI,CAACK,eAAe;EAC7C,CAACP,YAAM,CAACQ,UAAU,GAAGN,aAAI,CAACO,KAAK;EAC/B,CAACT,YAAM,CAACU,MAAM,GAAGR,aAAI,CAACS,KAAK;EAC3B,CAACX,YAAM,CAACY,KAAK,GAAGV,aAAI,CAACW;AACvB,CAAC"}
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Welcome = void 0;
7
+ var _dataSources = require("@mirai/data-sources");
8
+ var _locale = require("@mirai/locale");
9
+ var _ui = require("@mirai/ui");
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+ var _react = _interopRequireWildcard(require("react"));
12
+ var _Welcome = require("./Welcome.constants");
13
+ var _Welcome2 = require("./Welcome.l10n");
14
+ var style = _interopRequireWildcard(require("./Welcome.module.css"));
15
+ var _helpers = require("../../../helpers");
16
+ var _Input = require("../Input");
17
+ var _components = require("../Message/components");
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
+ const Welcome = _ref => {
23
+ var _ref3;
24
+ let {
25
+ actions = [],
26
+ onInput
27
+ } = _ref;
28
+ const {
29
+ isMobile
30
+ } = (0, _ui.useDevice)();
31
+ const {
32
+ translate
33
+ } = (0, _locale.useLocale)();
34
+ const {
35
+ value: {
36
+ session: {
37
+ firstName
38
+ } = {}
39
+ } = {}
40
+ } = (0, _dataSources.useStore)();
41
+ const [prompts, setPrompts] = (0, _react.useState)();
42
+ const [input, setInput] = (0, _react.useState)();
43
+ const handlePrompt = _ref2 => {
44
+ let {
45
+ text,
46
+ options = []
47
+ } = _ref2;
48
+ if (options.length) {
49
+ setInput("".concat(text.replaceAll('*', ''), " "));
50
+ setPrompts(options);
51
+ } else {
52
+ onInput(text, true);
53
+ }
54
+ };
55
+
56
+ // eslint-disable-next-line react/prop-types
57
+ const Option = function () {
58
+ let {
59
+ intent,
60
+ prompt,
61
+ text,
62
+ options
63
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
64
+ return /*#__PURE__*/_react.default.createElement(_ui.Pressable, {
65
+ onPress: () => handlePrompt({
66
+ text,
67
+ options
68
+ }),
69
+ className: style.option
70
+ }, intent && /*#__PURE__*/_react.default.createElement(_ui.Icon, {
71
+ headline: true,
72
+ level: 2,
73
+ value: _Welcome.INTENT_ICON[intent] || _helpers.ICON.TUNE
74
+ }), /*#__PURE__*/_react.default.createElement(_ui.Text, {
75
+ action: !prompt || isMobile,
76
+ medium: true
77
+ }, text));
78
+ };
79
+ const inputProps = {
80
+ value: input,
81
+ onValue: onInput
82
+ };
83
+ const titleProps = {
84
+ _bold: true,
85
+ brand: true,
86
+ headline: true,
87
+ level: 1
88
+ };
89
+ return /*#__PURE__*/_react.default.createElement(_ui.View, {
90
+ wide: true,
91
+ className: style.container
92
+ }, /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_components.Typewriter, _extends({}, titleProps, {
93
+ bold: true,
94
+ className: [style.title, style.hi]
95
+ }), "\u2726 ".concat(translate(_Welcome2.L10N.LABEL_HI), " ").concat(firstName ? ", ".concat(firstName) : '')), /*#__PURE__*/_react.default.createElement(_components.Typewriter, _extends({}, titleProps, {
96
+ className: style.title
97
+ }), translate(_Welcome2.L10N.LABEL_HOW_HELP))), !isMobile ? /*#__PURE__*/_react.default.createElement(_Input.Input, inputProps) : null, /*#__PURE__*/_react.default.createElement(_ui.View, {
98
+ className: style.content
99
+ }, /*#__PURE__*/_react.default.createElement(_ui.View, {
100
+ row: true,
101
+ className: (0, _ui.styles)(style.actions, !prompts && style.visible)
102
+ }, actions.map(function () {
103
+ let item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
104
+ let index = arguments.length > 1 ? arguments[1] : undefined;
105
+ return /*#__PURE__*/_react.default.createElement(Option, _extends({
106
+ key: "action:".concat(index)
107
+ }, item));
108
+ })), /*#__PURE__*/_react.default.createElement(_ui.View, {
109
+ row: true,
110
+ className: (0, _ui.styles)(style.prompts, prompts && style.visible)
111
+ }, (_ref3 = prompts || actions) === null || _ref3 === void 0 ? void 0 : _ref3.map(function () {
112
+ let item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
113
+ let index = arguments.length > 1 ? arguments[1] : undefined;
114
+ return /*#__PURE__*/_react.default.createElement(Option, _extends({
115
+ prompt: true,
116
+ key: "prompt:".concat(index)
117
+ }, item));
118
+ }))), isMobile ? /*#__PURE__*/_react.default.createElement(_ui.View, {
119
+ className: style.input
120
+ }, /*#__PURE__*/_react.default.createElement(_Input.Input, inputProps)) : null);
121
+ };
122
+ exports.Welcome = Welcome;
123
+ Welcome.displayName = 'Mirai:Core:Chat.Welcome';
124
+ Welcome.propTypes = {
125
+ actions: _propTypes.default.arrayOf(_propTypes.default.shape({})),
126
+ onInput: _propTypes.default.func
127
+ };
128
+ //# sourceMappingURL=Welcome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Welcome.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Welcome","_Welcome2","style","_helpers","_Input","_components","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Welcome","_ref","_ref3","actions","onInput","isMobile","useDevice","translate","useLocale","value","session","firstName","useStore","prompts","setPrompts","useState","input","setInput","handlePrompt","_ref2","text","options","concat","replaceAll","Option","intent","prompt","undefined","createElement","Pressable","onPress","className","option","Icon","headline","level","INTENT_ICON","ICON","TUNE","Text","action","medium","inputProps","onValue","titleProps","_bold","brand","View","wide","container","Typewriter","bold","title","hi","L10N","LABEL_HI","LABEL_HOW_HELP","Input","content","row","styles","visible","map","item","index","exports","displayName","propTypes","PropTypes","arrayOf","shape","func"],"sources":["../../../../../src/components/Chat/components/Welcome/Welcome.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { Icon, Pressable, styles, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { INTENT_ICON } from './Welcome.constants';\nimport { L10N } from './Welcome.l10n';\nimport * as style from './Welcome.module.css';\nimport { ICON } from '../../../helpers';\nimport { Input } from '../Input';\nimport { Typewriter } from '../Message/components';\n\nconst Welcome = ({ actions = [], onInput }) => {\n const { isMobile } = useDevice();\n const { translate } = useLocale();\n const { value: { session: { firstName } = {} } = {} } = useStore();\n\n const [prompts, setPrompts] = useState();\n const [input, setInput] = useState();\n\n const handlePrompt = ({ text, options = [] }) => {\n if (options.length) {\n setInput(`${text.replaceAll('*', '')} `);\n setPrompts(options);\n } else {\n onInput(text, true);\n }\n };\n\n // eslint-disable-next-line react/prop-types\n const Option = ({ intent, prompt, text, options } = {}) => (\n <Pressable onPress={() => handlePrompt({ text, options })} className={style.option}>\n {intent && <Icon headline level={2} value={INTENT_ICON[intent] || ICON.TUNE} />}\n <Text action={!prompt || isMobile} medium>\n {text}\n </Text>\n </Pressable>\n );\n\n const inputProps = { value: input, onValue: onInput };\n const titleProps = { _bold: true, brand: true, headline: true, level: 1 };\n\n return (\n <View wide className={style.container}>\n <View>\n <Typewriter {...titleProps} bold className={[style.title, style.hi]}>\n {`✦ ${translate(L10N.LABEL_HI)} ${firstName ? `, ${firstName}` : ''}`}\n </Typewriter>\n <Typewriter {...titleProps} className={style.title}>\n {translate(L10N.LABEL_HOW_HELP)}\n </Typewriter>\n </View>\n\n {!isMobile ? <Input {...inputProps} /> : null}\n\n <View className={style.content}>\n <View row className={styles(style.actions, !prompts && style.visible)}>\n {actions.map((item = {}, index) => (\n <Option key={`action:${index}`} {...item} />\n ))}\n </View>\n\n <View row className={styles(style.prompts, prompts && style.visible)}>\n {(prompts || actions)?.map((item = {}, index) => (\n <Option prompt key={`prompt:${index}`} {...item} />\n ))}\n </View>\n </View>\n\n {isMobile ? (\n <View className={style.input}>\n <Input {...inputProps} />\n </View>\n ) : null}\n </View>\n );\n};\n\nWelcome.displayName = 'Mirai:Core:Chat.Welcome';\n\nWelcome.propTypes = {\n actions: PropTypes.arrayOf(PropTypes.shape({})),\n onInput: PropTypes.func,\n};\n\nexport { Welcome };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,KAAA,GAAAH,uBAAA,CAAAN,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,WAAA,GAAAZ,OAAA;AAAmD,SAAAa,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,SAAAR,wBAAAQ,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,WAA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,IAAEqE,KAAK,GAAArE,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAgC,SAAA;IAAA,oBAC1ClE,MAAA,CAAAc,OAAA,CAAAqD,aAAA,CAACJ,MAAM,EAAAjC,QAAA;MAACmC,MAAM;MAAC5B,GAAG,YAAAwB,MAAA,CAAY0C,KAAK;IAAG,GAAKD,IAAI,CAAG,CAAC;EAAA,CACpD,CACG,CACF,CAAC,EAEN1D,QAAQ,gBACP5C,MAAA,CAAAc,OAAA,CAAAqD,aAAA,CAACtE,GAAA,CAAAyF,IAAI;IAAChB,SAAS,EAAElE,KAAK,CAACmD;EAAM,gBAC3BvD,MAAA,CAAAc,OAAA,CAAAqD,aAAA,CAAC7D,MAAA,CAAA0F,KAAK,EAAKf,UAAa,CACpB,CAAC,GACL,IACA,CAAC;AAEX,CAAC;AAACuB,OAAA,CAAAjE,OAAA,GAAAA,OAAA;AAEFA,OAAO,CAACkE,WAAW,GAAG,yBAAyB;AAE/ClE,OAAO,CAACmE,SAAS,GAAG;EAClBhE,OAAO,EAAEiE,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAC/ClE,OAAO,EAAEgE,kBAAS,CAACG;AACrB,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.L10N = void 0;
7
+ const L10N = exports.L10N = {
8
+ LABEL_HI: {
9
+ id: 'lisa.label.hi'
10
+ },
11
+ LABEL_HOW_HELP: {
12
+ id: 'lisa.label.how_help'
13
+ }
14
+ };
15
+ //# sourceMappingURL=Welcome.l10n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Welcome.l10n.js","names":["L10N","exports","LABEL_HI","id","LABEL_HOW_HELP"],"sources":["../../../../../src/components/Chat/components/Welcome/Welcome.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_HI: { id: 'lisa.label.hi' },\n LABEL_HOW_HELP: { id: 'lisa.label.how_help' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,QAAQ,EAAE;IAAEC,EAAE,EAAE;EAAgB,CAAC;EACjCC,cAAc,EAAE;IAAED,EAAE,EAAE;EAAsB;AAC9C,CAAC"}
@@ -0,0 +1,127 @@
1
+ .container {
2
+ gap: var(--mirai-chat-space);
3
+ max-width: var(--mirai-chat-content-max-width);
4
+ }
5
+
6
+ .title.hi {
7
+ animation: textGradient 1.5s linear infinite alternate;
8
+ background-clip: text;
9
+ background-image: linear-gradient(
10
+ to right,
11
+ var(--mirai-chat-avatar-color-2),
12
+ var(--mirai-chat-avatar-color-3),
13
+ var(--mirai-chat-avatar-color-2)
14
+ );
15
+ background-size: 200% 100%;
16
+ color: transparent;
17
+ -webkit-background-clip: text;
18
+ }
19
+
20
+ .content {
21
+ position: relative;
22
+ }
23
+
24
+ .actions,
25
+ .prompts {
26
+ position: absolute;
27
+ transition: all var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing);
28
+ width: 100%;
29
+ }
30
+
31
+ .actions {
32
+ flex-wrap: wrap;
33
+ gap: var(--mirai-chat-space);
34
+ }
35
+
36
+ .actions:not(.visible),
37
+ .prompts:not(.visible) {
38
+ pointer-events: none;
39
+ }
40
+
41
+ .actions:not(.visible) {
42
+ opacity: 0;
43
+ transform: translateY(-16px);
44
+ }
45
+
46
+ .prompts {
47
+ flex-direction: column;
48
+ gap: calc(var(--mirai-chat-space) / 2);
49
+ }
50
+
51
+ .prompts:not(.visible) {
52
+ opacity: 0;
53
+ transform: translateY(16px);
54
+ }
55
+
56
+ .option {
57
+ display: flex;
58
+ border: solid var(--mirai-chat-border-size) var(--mirai-chat-border-color);
59
+ border-radius: var(--mirai-chat-border-radius);
60
+ flex: 1;
61
+ }
62
+
63
+ .actions .option {
64
+ flex-direction: column;
65
+ gap: var(--mirai-chat-space);
66
+ height: calc(var(--mirai-ui-space-XL) * 2);
67
+ padding: var(--mirai-chat-space);
68
+ }
69
+
70
+ .prompts .option {
71
+ align-items: center;
72
+ box-sizing: border-box;
73
+ flex-direction: row;
74
+ gap: calc(var(--mirai-chat-space) / 2);
75
+ padding: calc(var(--mirai-chat-space) / 2) var(--mirai-chat-space);
76
+ width: 100%;
77
+ }
78
+
79
+ .option:hover,
80
+ .option:active {
81
+ background-color: var(--mirai-ui-content);
82
+ border-color: var(--mirai-ui-content);
83
+ }
84
+
85
+ .option:hover *,
86
+ .option:active * {
87
+ color: var(--mirai-chat-background);
88
+ }
89
+
90
+ /* S */
91
+ @media only screen and (max-width: 480px) {
92
+ .container {
93
+ padding: var(--mirai-chat-space);
94
+ }
95
+
96
+ .content {
97
+ min-height: calc(var(--mirai-ui-space-XL) * 6);
98
+ }
99
+
100
+ .actions .option {
101
+ min-width: 25%;
102
+ }
103
+
104
+ .input {
105
+ bottom: calc(var(--mirai-chat-space) * 2);
106
+ left: var(--mirai-chat-space);
107
+ position: absolute;
108
+ right: var(--mirai-chat-space);
109
+ }
110
+ }
111
+
112
+ /* M & L */
113
+ @media only screen and (min-width: 481px) {
114
+ .title {
115
+ font-size: calc(var(--mirai-ui-font-size-headline-1) * 1.5);
116
+ line-height: calc(var(--mirai-ui-font-size-headline-1) * 1.75);
117
+ }
118
+ }
119
+
120
+ @keyframes textGradient {
121
+ 0% {
122
+ background-position: 0% 0%;
123
+ }
124
+ 100% {
125
+ background-position: 100% 0%;
126
+ }
127
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Welcome = require("./Welcome");
7
+ Object.keys(_Welcome).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Welcome[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Welcome[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_Welcome","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../src/components/Chat/components/Welcome/index.js"],"sourcesContent":["export * from './Welcome';\n"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -14,25 +14,36 @@ Object.keys(_Avatar).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
- var _Input = require("./Input");
18
- Object.keys(_Input).forEach(function (key) {
17
+ var _ButtonDispatcher = require("./ButtonDispatcher");
18
+ Object.keys(_ButtonDispatcher).forEach(function (key) {
19
19
  if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _Input[key]) return;
20
+ if (key in exports && exports[key] === _ButtonDispatcher[key]) return;
21
21
  Object.defineProperty(exports, key, {
22
22
  enumerable: true,
23
23
  get: function () {
24
- return _Input[key];
24
+ return _ButtonDispatcher[key];
25
+ }
26
+ });
27
+ });
28
+ var _Header = require("./Header");
29
+ Object.keys(_Header).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _Header[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _Header[key];
25
36
  }
26
37
  });
27
38
  });
28
- var _InputRich = require("./InputRich");
29
- Object.keys(_InputRich).forEach(function (key) {
39
+ var _Input = require("./Input");
40
+ Object.keys(_Input).forEach(function (key) {
30
41
  if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _InputRich[key]) return;
42
+ if (key in exports && exports[key] === _Input[key]) return;
32
43
  Object.defineProperty(exports, key, {
33
44
  enumerable: true,
34
45
  get: function () {
35
- return _InputRich[key];
46
+ return _Input[key];
36
47
  }
37
48
  });
38
49
  });
@@ -47,4 +58,15 @@ Object.keys(_Message).forEach(function (key) {
47
58
  }
48
59
  });
49
60
  });
61
+ var _Welcome = require("./Welcome");
62
+ Object.keys(_Welcome).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _Welcome[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _Welcome[key];
69
+ }
70
+ });
71
+ });
50
72
  //# sourceMappingURL=index.js.map