ba-js-common-header 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +264 -264
- package/dist/ba-js-common-header.es.js +37 -6
- package/dist/ba-js-common-header.umd.js +16 -16
- package/dist/style.css +1 -1
- package/package.json +56 -56
package/README.md
CHANGED
|
@@ -1,264 +1,264 @@
|
|
|
1
|
-
# Bookassist Common Header
|
|
2
|
-
|
|
3
|
-
A React-based shared header component
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```javascript
|
|
8
|
-
yarn add ba-js-common-header
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```javascript
|
|
14
|
-
// React
|
|
15
|
-
|
|
16
|
-
import { Header } from 'ba-js-common-header/dist/ba-js-common-header.es.js'
|
|
17
|
-
|
|
18
|
-
function App(props) {
|
|
19
|
-
return <Header {...props} />
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
```javascript
|
|
24
|
-
// website
|
|
25
|
-
|
|
26
|
-
<div id="header"></div>
|
|
27
|
-
|
|
28
|
-
// es5
|
|
29
|
-
<script src="https://unpkg.com/ba-js-common-header/dist/ba-js-common-header.umd.js"></script>
|
|
30
|
-
// baJsHeader global now available
|
|
31
|
-
<script>
|
|
32
|
-
const { renderHeader } = baJsHeader
|
|
33
|
-
renderHeader(document.querySelector('#header'), {
|
|
34
|
-
// props
|
|
35
|
-
})
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
// ES Modules
|
|
39
|
-
<script type="module">
|
|
40
|
-
import { renderHeader } from 'https://unpkg.com/ba-js-common-header/dist/ba-js-common-header.es.js'
|
|
41
|
-
renderHeader(document.querySelector('#header'), {
|
|
42
|
-
// props
|
|
43
|
-
})
|
|
44
|
-
</script>
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Header Props
|
|
48
|
-
|
|
49
|
-
| Prop | Type | Description | Required |
|
|
50
|
-
| :--------------------- | :---- | :--------------------------------- | :------- |
|
|
51
|
-
| `config` | `url` | header configuration feed endpoint | Yes |
|
|
52
|
-
| `userInfo` | `obj` | userInfo object | Yes |
|
|
53
|
-
| `userLanguage` | `str` | default user language | No |
|
|
54
|
-
| `handleLanguageChange` | `fn` | language selector callback | No |
|
|
55
|
-
| `handleHotelChange` | `fn` | hotel selector callback | No |
|
|
56
|
-
| `i18nFeed` | `url` | Jed i18n endpoint | No |
|
|
57
|
-
|
|
58
|
-
#### config (required)
|
|
59
|
-
|
|
60
|
-
The header configuration feed endpoint. See below for structure
|
|
61
|
-
|
|
62
|
-
#### userInfo (required)
|
|
63
|
-
|
|
64
|
-
The user state
|
|
65
|
-
|
|
66
|
-
```javascript
|
|
67
|
-
{
|
|
68
|
-
username, // string (required)
|
|
69
|
-
hotelId, // integer (optional)
|
|
70
|
-
guideId, // integer (optional)
|
|
71
|
-
group, // string (optional)
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
The username is used by the header for display purposes. The hotel and guide ids are to provide for an initially selected hotel
|
|
76
|
-
|
|
77
|
-
#### userLanguage (optional)
|
|
78
|
-
|
|
79
|
-
The initially selected language, provided as an ISO language code (defaults to 'en')
|
|
80
|
-
|
|
81
|
-
#### handleLanguageChange (optional)
|
|
82
|
-
|
|
83
|
-
Callback fired on selection of a language. The callback is passed the new language code
|
|
84
|
-
|
|
85
|
-
```javascript
|
|
86
|
-
const cb = code => {
|
|
87
|
-
console.log(`The new language code is ${code}`)
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
#### handleHotelChange (optional)
|
|
92
|
-
|
|
93
|
-
Callback fired on selection of a hotel. The callback is passed an object containing name, hotel id and guide id
|
|
94
|
-
|
|
95
|
-
```javascript
|
|
96
|
-
const cb = ({ name, hotelId, guideId }) => {
|
|
97
|
-
console.log({ name, hotelId, guideId })
|
|
98
|
-
}
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
#### i18nFeed (optional)
|
|
102
|
-
|
|
103
|
-
Endpoint for Jed-based i18n feed. The url may contain a '{0}' placeholder for the current language code
|
|
104
|
-
|
|
105
|
-
```javascript
|
|
106
|
-
const i18nFeed =
|
|
107
|
-
'https://www.bookassist.com/rest/api/v1/i18n/jed/bookassist.i18n.HotelAdminRB/{0}'
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## Feed Structures
|
|
111
|
-
|
|
112
|
-
### Config Feed (required)
|
|
113
|
-
|
|
114
|
-
The config feed is an object with 2 required properties:
|
|
115
|
-
|
|
116
|
-
```javascript
|
|
117
|
-
const config = {
|
|
118
|
-
titleBar, // required object
|
|
119
|
-
menuBar, // required array
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
#### titleBar (required)
|
|
124
|
-
|
|
125
|
-
The `titleBar` property provides configuration details for the 6 available widgets in the upper half of the header (a given widget will be rendered if configuration for it exists). The property value is an object with 6 possible properties:
|
|
126
|
-
|
|
127
|
-
```javascript
|
|
128
|
-
{
|
|
129
|
-
help, // optional object
|
|
130
|
-
languageSelector, // optional object
|
|
131
|
-
notifications, // optional object
|
|
132
|
-
product, // required object
|
|
133
|
-
propertySelector, // optional object
|
|
134
|
-
user, // required object
|
|
135
|
-
}
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
##### help (optional)
|
|
139
|
-
|
|
140
|
-
The `help` property provides link information for the help widget. The property value is an object with 2 required properties:
|
|
141
|
-
|
|
142
|
-
```javascript
|
|
143
|
-
{
|
|
144
|
-
label: 'Help Center', // required string
|
|
145
|
-
href: 'https://go.bookassist.org/en/knowledge/booking-engine', // required string
|
|
146
|
-
}
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
##### languageSelector (optional)
|
|
150
|
-
|
|
151
|
-
The `languageSelector` property provides a language widget label and an array of available languages. The property value is an object with 2 required properties:
|
|
152
|
-
|
|
153
|
-
```javascript
|
|
154
|
-
|
|
155
|
-
{
|
|
156
|
-
label: 'Language', // required string
|
|
157
|
-
children: [ // required array
|
|
158
|
-
{
|
|
159
|
-
code: 'en', // required string
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
code: 'es', // required string
|
|
163
|
-
label: 'Español', // optional string
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
code: 'fr', // required string
|
|
167
|
-
},
|
|
168
|
-
// ...
|
|
169
|
-
],
|
|
170
|
-
}
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
The `children` array is a list of `language` objects. A `language` object consists of a required language code property and an optional label property that can be used to override the name provided by [Intl.DisplayNames](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
|
174
|
-
|
|
175
|
-
##### notifications (optional)
|
|
176
|
-
|
|
177
|
-
```javascript
|
|
178
|
-
{
|
|
179
|
-
}
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
##### product (required)
|
|
183
|
-
|
|
184
|
-
The `product` property denotes the current product. The property value is an object with 2 required properties:
|
|
185
|
-
|
|
186
|
-
```javascript
|
|
187
|
-
{
|
|
188
|
-
name: 'Booking Engine', // required string
|
|
189
|
-
href: '/hotel_admin/spl.jsp', // required string
|
|
190
|
-
}
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
##### propertySelector (optional)
|
|
194
|
-
|
|
195
|
-
The `propertySelector` property is used to provide the list of selectable hotels. The property value is an object with 2 required properties:
|
|
196
|
-
|
|
197
|
-
```javascript
|
|
198
|
-
{
|
|
199
|
-
type, // required string (one of 'data' or 'fetch')
|
|
200
|
-
items, // required array of hotels or endpoint providing said array
|
|
201
|
-
}
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
The `items` property value is an array of hotels or an endpoint returning such an array. Individual hotels are specified as 2-item arrays containing the hotel name and a string consisting of the hotel and guide ids separated by an underscore.
|
|
205
|
-
|
|
206
|
-
```javascript
|
|
207
|
-
const hotels = [
|
|
208
|
-
['ADLER HOTEL', '3724_802'],
|
|
209
|
-
['Adria Hotel Prague', '1465_802'],
|
|
210
|
-
['Agroturismo Can Toni Xumeu', '3033_102'],
|
|
211
|
-
// ...
|
|
212
|
-
]
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
##### user (required)
|
|
216
|
-
|
|
217
|
-
The `user` property denotes a set of user-related links. The property value is an object with 2 required properties:
|
|
218
|
-
|
|
219
|
-
```javascript
|
|
220
|
-
{
|
|
221
|
-
label: 'Profile', // required string
|
|
222
|
-
children: [ // required array
|
|
223
|
-
{
|
|
224
|
-
label: 'Maintain Users', // required string
|
|
225
|
-
href: '/hotel_admin/maintain_users.jsp', // required string
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
label: 'Change Password', // required string
|
|
229
|
-
href: '/hotel_admin/login.jsp?resetpass', // required string
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
label: 'Log Out', // required string
|
|
233
|
-
href: '/hotel_admin/logout.jsp', // required string
|
|
234
|
-
},
|
|
235
|
-
],
|
|
236
|
-
}
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
The `children` property is a list of link objects, each with 2 required properties (`label` and `href`)
|
|
240
|
-
|
|
241
|
-
#### menuBar (requred)
|
|
242
|
-
|
|
243
|
-
The `menuBar` property provides configuration details for the lower half of the header. The property value is a flat array of menu item objects:
|
|
244
|
-
|
|
245
|
-
```javascript
|
|
246
|
-
const menuBar = [
|
|
247
|
-
{
|
|
248
|
-
id, // required string
|
|
249
|
-
parentId, // required for nested menu items
|
|
250
|
-
label, // required string
|
|
251
|
-
href, // optional link (string)
|
|
252
|
-
group, // optional header for menu item grouping (string)
|
|
253
|
-
premium: { // optional object outlining premium status
|
|
254
|
-
value: true, // required boolean
|
|
255
|
-
locked: true, // required boolean
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
|
-
// ...
|
|
259
|
-
]
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
## i18n
|
|
263
|
-
|
|
264
|
-
i18n can be optionally provided via the `i18nFeed` prop. The header uses [Jed](https://github.com/messageformat/Jed). If an i18n feed is specified all header labels will be treated as i18n keys and run through Jed for translation.
|
|
1
|
+
# Bookassist Common Header
|
|
2
|
+
|
|
3
|
+
A React-based shared header component
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
yarn add ba-js-common-header
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
// React
|
|
15
|
+
|
|
16
|
+
import { Header } from 'ba-js-common-header/dist/ba-js-common-header.es.js'
|
|
17
|
+
|
|
18
|
+
function App(props) {
|
|
19
|
+
return <Header {...props} />
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
// website
|
|
25
|
+
|
|
26
|
+
<div id="header"></div>
|
|
27
|
+
|
|
28
|
+
// es5
|
|
29
|
+
<script src="https://unpkg.com/ba-js-common-header/dist/ba-js-common-header.umd.js"></script>
|
|
30
|
+
// baJsHeader global now available
|
|
31
|
+
<script>
|
|
32
|
+
const { renderHeader } = baJsHeader
|
|
33
|
+
renderHeader(document.querySelector('#header'), {
|
|
34
|
+
// props
|
|
35
|
+
})
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
// ES Modules
|
|
39
|
+
<script type="module">
|
|
40
|
+
import { renderHeader } from 'https://unpkg.com/ba-js-common-header/dist/ba-js-common-header.es.js'
|
|
41
|
+
renderHeader(document.querySelector('#header'), {
|
|
42
|
+
// props
|
|
43
|
+
})
|
|
44
|
+
</script>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Header Props
|
|
48
|
+
|
|
49
|
+
| Prop | Type | Description | Required |
|
|
50
|
+
| :--------------------- | :---- | :--------------------------------- | :------- |
|
|
51
|
+
| `config` | `url` | header configuration feed endpoint | Yes |
|
|
52
|
+
| `userInfo` | `obj` | userInfo object | Yes |
|
|
53
|
+
| `userLanguage` | `str` | default user language | No |
|
|
54
|
+
| `handleLanguageChange` | `fn` | language selector callback | No |
|
|
55
|
+
| `handleHotelChange` | `fn` | hotel selector callback | No |
|
|
56
|
+
| `i18nFeed` | `url` | Jed i18n endpoint | No |
|
|
57
|
+
|
|
58
|
+
#### config (required)
|
|
59
|
+
|
|
60
|
+
The header configuration feed endpoint. See below for structure
|
|
61
|
+
|
|
62
|
+
#### userInfo (required)
|
|
63
|
+
|
|
64
|
+
The user state
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
{
|
|
68
|
+
username, // string (required)
|
|
69
|
+
hotelId, // integer (optional)
|
|
70
|
+
guideId, // integer (optional)
|
|
71
|
+
group, // string (optional)
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The username is used by the header for display purposes. The hotel and guide ids are to provide for an initially selected hotel
|
|
76
|
+
|
|
77
|
+
#### userLanguage (optional)
|
|
78
|
+
|
|
79
|
+
The initially selected language, provided as an ISO language code (defaults to 'en')
|
|
80
|
+
|
|
81
|
+
#### handleLanguageChange (optional)
|
|
82
|
+
|
|
83
|
+
Callback fired on selection of a language. The callback is passed the new language code
|
|
84
|
+
|
|
85
|
+
```javascript
|
|
86
|
+
const cb = code => {
|
|
87
|
+
console.log(`The new language code is ${code}`)
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
#### handleHotelChange (optional)
|
|
92
|
+
|
|
93
|
+
Callback fired on selection of a hotel. The callback is passed an object containing name, hotel id and guide id
|
|
94
|
+
|
|
95
|
+
```javascript
|
|
96
|
+
const cb = ({ name, hotelId, guideId }) => {
|
|
97
|
+
console.log({ name, hotelId, guideId })
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
#### i18nFeed (optional)
|
|
102
|
+
|
|
103
|
+
Endpoint for Jed-based i18n feed. The url may contain a '{0}' placeholder for the current language code
|
|
104
|
+
|
|
105
|
+
```javascript
|
|
106
|
+
const i18nFeed =
|
|
107
|
+
'https://www.bookassist.com/rest/api/v1/i18n/jed/bookassist.i18n.HotelAdminRB/{0}'
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Feed Structures
|
|
111
|
+
|
|
112
|
+
### Config Feed (required)
|
|
113
|
+
|
|
114
|
+
The config feed is an object with 2 required properties:
|
|
115
|
+
|
|
116
|
+
```javascript
|
|
117
|
+
const config = {
|
|
118
|
+
titleBar, // required object
|
|
119
|
+
menuBar, // required array
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### titleBar (required)
|
|
124
|
+
|
|
125
|
+
The `titleBar` property provides configuration details for the 6 available widgets in the upper half of the header (a given widget will be rendered if configuration for it exists). The property value is an object with 6 possible properties:
|
|
126
|
+
|
|
127
|
+
```javascript
|
|
128
|
+
{
|
|
129
|
+
help, // optional object
|
|
130
|
+
languageSelector, // optional object
|
|
131
|
+
notifications, // optional object
|
|
132
|
+
product, // required object
|
|
133
|
+
propertySelector, // optional object
|
|
134
|
+
user, // required object
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
##### help (optional)
|
|
139
|
+
|
|
140
|
+
The `help` property provides link information for the help widget. The property value is an object with 2 required properties:
|
|
141
|
+
|
|
142
|
+
```javascript
|
|
143
|
+
{
|
|
144
|
+
label: 'Help Center', // required string
|
|
145
|
+
href: 'https://go.bookassist.org/en/knowledge/booking-engine', // required string
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
##### languageSelector (optional)
|
|
150
|
+
|
|
151
|
+
The `languageSelector` property provides a language widget label and an array of available languages. The property value is an object with 2 required properties:
|
|
152
|
+
|
|
153
|
+
```javascript
|
|
154
|
+
|
|
155
|
+
{
|
|
156
|
+
label: 'Language', // required string
|
|
157
|
+
children: [ // required array
|
|
158
|
+
{
|
|
159
|
+
code: 'en', // required string
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
code: 'es', // required string
|
|
163
|
+
label: 'Español', // optional string
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
code: 'fr', // required string
|
|
167
|
+
},
|
|
168
|
+
// ...
|
|
169
|
+
],
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
The `children` array is a list of `language` objects. A `language` object consists of a required language code property and an optional label property that can be used to override the name provided by [Intl.DisplayNames](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
|
174
|
+
|
|
175
|
+
##### notifications (optional)
|
|
176
|
+
|
|
177
|
+
```javascript
|
|
178
|
+
{
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
##### product (required)
|
|
183
|
+
|
|
184
|
+
The `product` property denotes the current product. The property value is an object with 2 required properties:
|
|
185
|
+
|
|
186
|
+
```javascript
|
|
187
|
+
{
|
|
188
|
+
name: 'Booking Engine', // required string
|
|
189
|
+
href: '/hotel_admin/spl.jsp', // required string
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
##### propertySelector (optional)
|
|
194
|
+
|
|
195
|
+
The `propertySelector` property is used to provide the list of selectable hotels. The property value is an object with 2 required properties:
|
|
196
|
+
|
|
197
|
+
```javascript
|
|
198
|
+
{
|
|
199
|
+
type, // required string (one of 'data' or 'fetch')
|
|
200
|
+
items, // required array of hotels or endpoint providing said array
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
The `items` property value is an array of hotels or an endpoint returning such an array. Individual hotels are specified as 2-item arrays containing the hotel name and a string consisting of the hotel and guide ids separated by an underscore.
|
|
205
|
+
|
|
206
|
+
```javascript
|
|
207
|
+
const hotels = [
|
|
208
|
+
['ADLER HOTEL', '3724_802'],
|
|
209
|
+
['Adria Hotel Prague', '1465_802'],
|
|
210
|
+
['Agroturismo Can Toni Xumeu', '3033_102'],
|
|
211
|
+
// ...
|
|
212
|
+
]
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
##### user (required)
|
|
216
|
+
|
|
217
|
+
The `user` property denotes a set of user-related links. The property value is an object with 2 required properties:
|
|
218
|
+
|
|
219
|
+
```javascript
|
|
220
|
+
{
|
|
221
|
+
label: 'Profile', // required string
|
|
222
|
+
children: [ // required array
|
|
223
|
+
{
|
|
224
|
+
label: 'Maintain Users', // required string
|
|
225
|
+
href: '/hotel_admin/maintain_users.jsp', // required string
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: 'Change Password', // required string
|
|
229
|
+
href: '/hotel_admin/login.jsp?resetpass', // required string
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: 'Log Out', // required string
|
|
233
|
+
href: '/hotel_admin/logout.jsp', // required string
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
The `children` property is a list of link objects, each with 2 required properties (`label` and `href`)
|
|
240
|
+
|
|
241
|
+
#### menuBar (requred)
|
|
242
|
+
|
|
243
|
+
The `menuBar` property provides configuration details for the lower half of the header. The property value is a flat array of menu item objects:
|
|
244
|
+
|
|
245
|
+
```javascript
|
|
246
|
+
const menuBar = [
|
|
247
|
+
{
|
|
248
|
+
id, // required string
|
|
249
|
+
parentId, // required for nested menu items
|
|
250
|
+
label, // required string
|
|
251
|
+
href, // optional link (string)
|
|
252
|
+
group, // optional header for menu item grouping (string)
|
|
253
|
+
premium: { // optional object outlining premium status
|
|
254
|
+
value: true, // required boolean
|
|
255
|
+
locked: true, // required boolean
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
// ...
|
|
259
|
+
]
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## i18n
|
|
263
|
+
|
|
264
|
+
i18n can be optionally provided via the `i18nFeed` prop. The header uses [Jed](https://github.com/messageformat/Jed). If an i18n feed is specified all header labels will be treated as i18n keys and run through Jed for translation.
|
|
@@ -6877,6 +6877,26 @@ const host = createHost(primitives, {
|
|
|
6877
6877
|
}
|
|
6878
6878
|
});
|
|
6879
6879
|
const animated = host.animated;
|
|
6880
|
+
function BookassistLogo({
|
|
6881
|
+
className
|
|
6882
|
+
}) {
|
|
6883
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
6884
|
+
className,
|
|
6885
|
+
viewBox: "0 0 512 76.2",
|
|
6886
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6887
|
+
"aria-label": "Bookassist",
|
|
6888
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
6889
|
+
d: "m54 41.4c-1.4-.9-1.6-2.9-.3-4 1.2-1.1 2.3-2.4 3.1-3.8 1.5-2.6 2.3-5.5 2.3-8.7 0-5.5-2.2-9.8-6.5-13s-10.7-4.8-19.1-4.8h-28.8c-2.6-.1-4.7 2.1-4.7 4.8v58.5c0 2.7 2.1 4.9 4.7 4.9h30.6c8.7 0 15.4-1.6 20-4.9s6.9-7.9 6.9-13.9-1.1-7.6-3.2-10.5c-1.4-1.9-3.1-3.4-5.1-4.7zm-35.7-15.6c0-2.7 2.1-4.9 4.7-4.9h8c6.2 0 8.1 2.1 8.1 6.4s-1.8 6.8-8.1 6.8h-8c-2.6 0-4.7-2.2-4.7-4.9zm15.5 35.5h-10.8c-2.6 0-4.7-2.2-4.7-4.9v-4.1c0-2.7 2.1-4.9 4.7-4.9h10.8c6.5 0 9.7 2.3 9.7 6.9s-3.2 6.9-9.7 6.9zm73.7-34.2c-4.4-2.2-9.3-3.3-14.8-3.3s-10.4 1.1-14.7 3.3-7.7 5.3-10.2 9.3-3.7 8.5-3.7 13.5 1.2 9.6 3.7 13.6 5.9 7.1 10.2 9.4c4.4 2.2 9.3 3.4 14.7 3.4s10.4-1.1 14.8-3.4c4.4-2.2 7.8-5.4 10.2-9.4s3.6-8.5 3.6-13.6-1.2-9.6-3.6-13.5c-2.4-4-5.8-7-10.2-9.3zm-7.1 31.7c-2 2.2-4.6 3.2-7.7 3.2s-5.7-1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 1.7 3.7 3.7 3.7 2 0 3.7 1.7 3.7 3.7v13.3c0 6.4 1.8 11.3 5.3 14.5 3.6 3.2 8.6 4.9 15.2 4.9s4.7-.2 6.9-.7c.7-.2 1.5-.4 2.1-.6 1.9-.7 2.9-2.8 2.2-4.7l-2-5.6h.1z",
|
|
6890
|
+
fill: "currentColor"
|
|
6891
|
+
})
|
|
6892
|
+
});
|
|
6893
|
+
}
|
|
6894
|
+
BookassistLogo.propTypes = {
|
|
6895
|
+
className: PropTypes.string
|
|
6896
|
+
};
|
|
6897
|
+
BookassistLogo.defaultProps = {
|
|
6898
|
+
className: ""
|
|
6899
|
+
};
|
|
6880
6900
|
function Logo() {
|
|
6881
6901
|
const {
|
|
6882
6902
|
product
|
|
@@ -6910,9 +6930,8 @@ function Logo() {
|
|
|
6910
6930
|
title: "home",
|
|
6911
6931
|
href,
|
|
6912
6932
|
style: styles,
|
|
6913
|
-
children: [/* @__PURE__ */ jsx(
|
|
6914
|
-
className: "me-1 hd-brand"
|
|
6915
|
-
children: "Bookassist"
|
|
6933
|
+
children: [/* @__PURE__ */ jsx(BookassistLogo, {
|
|
6934
|
+
className: "me-1 hd-brand-logo"
|
|
6916
6935
|
}), /* @__PURE__ */ jsx("strong", {
|
|
6917
6936
|
className: "hd-product",
|
|
6918
6937
|
children: name
|
|
@@ -13986,11 +14005,11 @@ function HelpCenter() {
|
|
|
13986
14005
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
13987
14006
|
})
|
|
13988
14007
|
})]
|
|
13989
|
-
}), /* @__PURE__ */
|
|
14008
|
+
}), /* @__PURE__ */ jsxs("ul", {
|
|
13990
14009
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
13991
14010
|
"hd-submenu-opened": subMenuOpen
|
|
13992
14011
|
}),
|
|
13993
|
-
children: children.map(({
|
|
14012
|
+
children: [children.map(({
|
|
13994
14013
|
href,
|
|
13995
14014
|
label: lbl
|
|
13996
14015
|
}) => /* @__PURE__ */ jsx("li", {
|
|
@@ -14008,7 +14027,19 @@ function HelpCenter() {
|
|
|
14008
14027
|
}))
|
|
14009
14028
|
})
|
|
14010
14029
|
})
|
|
14011
|
-
}, nanoid()))
|
|
14030
|
+
}, nanoid())), /* @__PURE__ */ jsx("li", {
|
|
14031
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
14032
|
+
className: "row m-0 py-lg-0 align-items-center",
|
|
14033
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
14034
|
+
className: "col py-2 py-lg-0 px-0",
|
|
14035
|
+
children: /* @__PURE__ */ jsxs("a", {
|
|
14036
|
+
className: "px-lg-4 py-2 d-block",
|
|
14037
|
+
href: "mailto:support@bookassist.com",
|
|
14038
|
+
children: [i18n && i18n.translate("bex_header.contact_support_team").fetch(), ":", /* @__PURE__ */ jsx("br", {}), "support@bookassist.com"]
|
|
14039
|
+
})
|
|
14040
|
+
})
|
|
14041
|
+
})
|
|
14042
|
+
})]
|
|
14012
14043
|
})]
|
|
14013
14044
|
});
|
|
14014
14045
|
}
|