@knovator/pagecreator 1.0.0 → 1.0.2
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 +229 -229
- package/package.json +26 -33
- package/index.js +0 -689
- package/style.css +0 -3
package/README.md
CHANGED
|
@@ -1,230 +1,230 @@
|
|
|
1
|
-
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->
|
|
2
|
-
<a name="readme-top"></a>
|
|
3
|
-
|
|
4
|
-
[![Contributors][contributors-shield]][contributors-url]
|
|
5
|
-
[![Forks][forks-shield]][forks-url]
|
|
6
|
-
[![Stargazers][stars-shield]][stars-url]
|
|
7
|
-
[![Issues][issues-shield]][issues-url]
|
|
8
|
-
[![MIT License][license-shield]][license-url]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<!-- PROJECT LOGO -->
|
|
12
|
-
<br />
|
|
13
|
-
<div align="center">
|
|
14
|
-
<!-- <a href="https://github.com/knovator/pagecreator">
|
|
15
|
-
<img src="images/logo.png" alt="Logo" width="80" height="80">
|
|
16
|
-
</a> -->
|
|
17
|
-
|
|
18
|
-
<h3 align="center">@knovator/pagecreator</h3>
|
|
19
|
-
|
|
20
|
-
<p align="center">
|
|
21
|
-
Plug & Play functionality to Build dynamic pages on the fly
|
|
22
|
-
<br />
|
|
23
|
-
<a href="https://github.com/knovator/pagecreator"><strong>Explore the docs »</strong></a>
|
|
24
|
-
<br />
|
|
25
|
-
<br />
|
|
26
|
-
<a href="https://github.com/knovator/pagecreator">View Demo</a>
|
|
27
|
-
·
|
|
28
|
-
<a href="https://github.com/knovator/pagecreator/issues">Report Bug</a>
|
|
29
|
-
·
|
|
30
|
-
<a href="https://github.com/knovator/pagecreator/issues">Request Feature</a>
|
|
31
|
-
</p>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<!-- TABLE OF CONTENTS -->
|
|
37
|
-
<details>
|
|
38
|
-
<summary>Table of Contents</summary>
|
|
39
|
-
<ol>
|
|
40
|
-
<li>
|
|
41
|
-
<a href="#about-the-project">About The Project</a>
|
|
42
|
-
<ul>
|
|
43
|
-
<li><a href="#built-with">Built With</a></li>
|
|
44
|
-
</ul>
|
|
45
|
-
</li>
|
|
46
|
-
<li>
|
|
47
|
-
<a href="#getting-started">Getting Started</a>
|
|
48
|
-
<ul>
|
|
49
|
-
<li><a href="#prerequisites">Prerequisites</a></li>
|
|
50
|
-
<li><a href="#installation">Installation</a></li>
|
|
51
|
-
</ul>
|
|
52
|
-
</li>
|
|
53
|
-
<li><a href="#usage">Usage</a></li>
|
|
54
|
-
<li><a href="#contributing">Contributing</a></li>
|
|
55
|
-
<li><a href="#license">License</a></li>
|
|
56
|
-
<li><a href="#contact">Contact</a></li>
|
|
57
|
-
</ol>
|
|
58
|
-
</details>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<!-- ABOUT THE PROJECT -->
|
|
63
|
-
## About The Project
|
|
64
|
-
|
|
65
|
-
`@knovator/pagecreator` is built with intent to build pages that are depend on backend data, and admin can change how page will look like.
|
|
66
|
-
|
|
67
|
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Built With
|
|
72
|
-
|
|
73
|
-
* [React.js](https://reactjs.org/)
|
|
74
|
-
* [swiper/react](https://swiperjs.com/)
|
|
75
|
-
|
|
76
|
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<!-- GETTING STARTED -->
|
|
81
|
-
## Getting Started
|
|
82
|
-
|
|
83
|
-
`@knovator/pagecreator` is designed to be used in ReactJS/NextJS project.
|
|
84
|
-
|
|
85
|
-
### Prerequisites
|
|
86
|
-
|
|
87
|
-
Create one reactjs/nextjs application if you don't have one,
|
|
88
|
-
* Project
|
|
89
|
-
```sh
|
|
90
|
-
npx create-react-app my-app
|
|
91
|
-
# or
|
|
92
|
-
npx create-next-app@latest
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Installation
|
|
96
|
-
|
|
97
|
-
1. Add pagecreator package
|
|
98
|
-
```sh
|
|
99
|
-
npm install @knovator/pagecreator
|
|
100
|
-
# or
|
|
101
|
-
yarn add @knovator/pagecreator
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<!-- USAGE EXAMPLES -->
|
|
108
|
-
## Usage
|
|
109
|
-
|
|
110
|
-
### Widget
|
|
111
|
-
```jsx
|
|
112
|
-
import { Widget } from '@knovator/pagecreator';
|
|
113
|
-
|
|
114
|
-
<Widget
|
|
115
|
-
imageBaseUrl=''
|
|
116
|
-
widgetData={}
|
|
117
|
-
onClick={...}
|
|
118
|
-
>
|
|
119
|
-
```
|
|
120
|
-
**Props**
|
|
121
|
-
- `widgetData`
|
|
122
|
-
- [widgetData](data-formats.md#widgetdata)
|
|
123
|
-
- `imageBaseUrl`
|
|
124
|
-
- baseUrl to append before image urls
|
|
125
|
-
- `formatItem` (optional): `(item: ItemData) => JSX.Element`
|
|
126
|
-
- Customize look of Items
|
|
127
|
-
- `onClick` (optional): `(item: ItemData) => void;`
|
|
128
|
-
- OnItem click handler
|
|
129
|
-
- `hideTitle` (optional): boolean;
|
|
130
|
-
- Do not show the title if true
|
|
131
|
-
- `settings` (optional): [Swiper props](https://swiperjs.com/swiper-api#parameters)
|
|
132
|
-
- Carousel settings to apply for carousel widget
|
|
133
|
-
- `className` (optional): string
|
|
134
|
-
- Class name for widget
|
|
135
|
-
- `formatHeader` (optional): `(title: string, data: WidgetData) => string | JSX.Element`
|
|
136
|
-
- Function to format the widget header
|
|
137
|
-
- `formatFooter` (optional): `(data: WidgetData) => string | JSX.Element`
|
|
138
|
-
- Function to format the widget footer
|
|
139
|
-
- `formatTabTitle` (optional): `(title: string, collectionData: any[], isActive: boolean) => JSX.Element;`
|
|
140
|
-
- Function to format tab title
|
|
141
|
-
- `itemsContainer` (optional): `(children: JSX.Element) => JSX.Element;`
|
|
142
|
-
- Function to wrap items in widget
|
|
143
|
-
|
|
144
|
-
### Page
|
|
145
|
-
```jsx
|
|
146
|
-
import { Page } from '@knovator/pagecreator';
|
|
147
|
-
|
|
148
|
-
<Page
|
|
149
|
-
imageBaseUrl=''
|
|
150
|
-
pageData={...}
|
|
151
|
-
onClick={...}
|
|
152
|
-
>
|
|
153
|
-
```
|
|
154
|
-
**Props**
|
|
155
|
-
- `title` (optional)
|
|
156
|
-
- Title to show on page
|
|
157
|
-
- `imageBaseUrl`
|
|
158
|
-
- baseUrl to start prefix image urls
|
|
159
|
-
- `pageData`
|
|
160
|
-
- [PageData](data-formats.md#pagedata)
|
|
161
|
-
- `formatItem` (optional): `(CODE: string, item: ItemData) => JSX.Element;`
|
|
162
|
-
- Customize look of Items
|
|
163
|
-
- `onClick` (optional): `(CODE: string, item: ItemData) => JSX.Element;`
|
|
164
|
-
- On Item click handler
|
|
165
|
-
- `hideWidgetTitles` (optional): boolean
|
|
166
|
-
- Flag to hide widget titles
|
|
167
|
-
- `formatWidget` (optional): `(item: WidgetData, index: number) => JSX.Element;`
|
|
168
|
-
- Function to format individual widget
|
|
169
|
-
|
|
170
|
-
### getData
|
|
171
|
-
It's possible to fetch data by yourself and pass them to `Widget` or `Page` components, but if you need easy solution you can use `getData` function.
|
|
172
|
-
```js
|
|
173
|
-
const pageData = await getData({
|
|
174
|
-
url: '...',
|
|
175
|
-
code: 'HOMEPAGE',
|
|
176
|
-
});
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
180
|
-
|
|
181
|
-
<!-- CONTRIBUTING -->
|
|
182
|
-
## Contributing
|
|
183
|
-
|
|
184
|
-
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
|
|
185
|
-
|
|
186
|
-
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
|
|
187
|
-
Don't forget to give the project a star! Thanks again!
|
|
188
|
-
|
|
189
|
-
1. Fork the Project
|
|
190
|
-
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
|
191
|
-
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
|
192
|
-
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
|
193
|
-
5. Open a Pull Request
|
|
194
|
-
|
|
195
|
-
<p align="right">(<a href="#top">back to top</a>)</p>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
<!-- LICENSE -->
|
|
200
|
-
## License
|
|
201
|
-
|
|
202
|
-
Distributed under the MIT License. See `LICENSE.txt` for more information.
|
|
203
|
-
|
|
204
|
-
<p align="right">(<a href="#top">back to top</a>)</p>
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
<!-- CONTACT -->
|
|
208
|
-
## Contact
|
|
209
|
-
|
|
210
|
-
Knovator Technologies
|
|
211
|
-
- Twitter [@knovator](https://twitter.com/knovator)
|
|
212
|
-
- Web [https://knovator.com/](https://knovator.com/)
|
|
213
|
-
|
|
214
|
-
Project Link: [https://github.com/knovator/masters-admin](https://github.com/knovator/masters-admin)
|
|
215
|
-
|
|
216
|
-
<p align="right">(<a href="#top">back to top</a>)</p>
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
<!-- MARKDOWN LINKS & IMAGES -->
|
|
220
|
-
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
|
|
221
|
-
[contributors-shield]: https://img.shields.io/github/contributors/knovator/pagecreator.svg?style=for-the-badge
|
|
222
|
-
[contributors-url]: https://github.com/knovator/pagecreator/graphs/contributors
|
|
223
|
-
[forks-shield]: https://img.shields.io/github/forks/knovator/pagecreator.svg?style=for-the-badge
|
|
224
|
-
[forks-url]: https://github.com/knovator/pagecreator/network/members
|
|
225
|
-
[stars-shield]: https://img.shields.io/github/stars/knovator/pagecreator.svg?style=for-the-badge
|
|
226
|
-
[stars-url]: https://github.com/knovator/pagecreator/stargazers
|
|
227
|
-
[issues-shield]: https://img.shields.io/github/issues/knovator/pagecreator.svg?style=for-the-badge
|
|
228
|
-
[issues-url]: https://github.com/knovator/pagecreator/issues
|
|
229
|
-
[license-shield]: https://img.shields.io/github/license/knovator/pagecreator.svg?style=for-the-badge
|
|
1
|
+
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->
|
|
2
|
+
<a name="readme-top"></a>
|
|
3
|
+
|
|
4
|
+
[![Contributors][contributors-shield]][contributors-url]
|
|
5
|
+
[![Forks][forks-shield]][forks-url]
|
|
6
|
+
[![Stargazers][stars-shield]][stars-url]
|
|
7
|
+
[![Issues][issues-shield]][issues-url]
|
|
8
|
+
[![MIT License][license-shield]][license-url]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<!-- PROJECT LOGO -->
|
|
12
|
+
<br />
|
|
13
|
+
<div align="center">
|
|
14
|
+
<!-- <a href="https://github.com/knovator/pagecreator">
|
|
15
|
+
<img src="images/logo.png" alt="Logo" width="80" height="80">
|
|
16
|
+
</a> -->
|
|
17
|
+
|
|
18
|
+
<h3 align="center">@knovator/pagecreator</h3>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
Plug & Play functionality to Build dynamic pages on the fly
|
|
22
|
+
<br />
|
|
23
|
+
<a href="https://github.com/knovator/pagecreator"><strong>Explore the docs »</strong></a>
|
|
24
|
+
<br />
|
|
25
|
+
<br />
|
|
26
|
+
<a href="https://github.com/knovator/pagecreator">View Demo</a>
|
|
27
|
+
·
|
|
28
|
+
<a href="https://github.com/knovator/pagecreator/issues">Report Bug</a>
|
|
29
|
+
·
|
|
30
|
+
<a href="https://github.com/knovator/pagecreator/issues">Request Feature</a>
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<!-- TABLE OF CONTENTS -->
|
|
37
|
+
<details>
|
|
38
|
+
<summary>Table of Contents</summary>
|
|
39
|
+
<ol>
|
|
40
|
+
<li>
|
|
41
|
+
<a href="#about-the-project">About The Project</a>
|
|
42
|
+
<ul>
|
|
43
|
+
<li><a href="#built-with">Built With</a></li>
|
|
44
|
+
</ul>
|
|
45
|
+
</li>
|
|
46
|
+
<li>
|
|
47
|
+
<a href="#getting-started">Getting Started</a>
|
|
48
|
+
<ul>
|
|
49
|
+
<li><a href="#prerequisites">Prerequisites</a></li>
|
|
50
|
+
<li><a href="#installation">Installation</a></li>
|
|
51
|
+
</ul>
|
|
52
|
+
</li>
|
|
53
|
+
<li><a href="#usage">Usage</a></li>
|
|
54
|
+
<li><a href="#contributing">Contributing</a></li>
|
|
55
|
+
<li><a href="#license">License</a></li>
|
|
56
|
+
<li><a href="#contact">Contact</a></li>
|
|
57
|
+
</ol>
|
|
58
|
+
</details>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
<!-- ABOUT THE PROJECT -->
|
|
63
|
+
## About The Project
|
|
64
|
+
|
|
65
|
+
`@knovator/pagecreator` is built with intent to build pages that are depend on backend data, and admin can change how page will look like.
|
|
66
|
+
|
|
67
|
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Built With
|
|
72
|
+
|
|
73
|
+
* [React.js](https://reactjs.org/)
|
|
74
|
+
* [swiper/react](https://swiperjs.com/)
|
|
75
|
+
|
|
76
|
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<!-- GETTING STARTED -->
|
|
81
|
+
## Getting Started
|
|
82
|
+
|
|
83
|
+
`@knovator/pagecreator` is designed to be used in ReactJS/NextJS project.
|
|
84
|
+
|
|
85
|
+
### Prerequisites
|
|
86
|
+
|
|
87
|
+
Create one reactjs/nextjs application if you don't have one,
|
|
88
|
+
* Project
|
|
89
|
+
```sh
|
|
90
|
+
npx create-react-app my-app
|
|
91
|
+
# or
|
|
92
|
+
npx create-next-app@latest
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Installation
|
|
96
|
+
|
|
97
|
+
1. Add pagecreator package
|
|
98
|
+
```sh
|
|
99
|
+
npm install @knovator/pagecreator
|
|
100
|
+
# or
|
|
101
|
+
yarn add @knovator/pagecreator
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
<!-- USAGE EXAMPLES -->
|
|
108
|
+
## Usage
|
|
109
|
+
|
|
110
|
+
### Widget
|
|
111
|
+
```jsx
|
|
112
|
+
import { Widget } from '@knovator/pagecreator';
|
|
113
|
+
|
|
114
|
+
<Widget
|
|
115
|
+
imageBaseUrl=''
|
|
116
|
+
widgetData={}
|
|
117
|
+
onClick={...}
|
|
118
|
+
>
|
|
119
|
+
```
|
|
120
|
+
**Props**
|
|
121
|
+
- `widgetData`
|
|
122
|
+
- [widgetData](data-formats.md#widgetdata)
|
|
123
|
+
- `imageBaseUrl`
|
|
124
|
+
- baseUrl to append before image urls
|
|
125
|
+
- `formatItem` (optional): `(item: ItemData) => JSX.Element`
|
|
126
|
+
- Customize look of Items
|
|
127
|
+
- `onClick` (optional): `(item: ItemData) => void;`
|
|
128
|
+
- OnItem click handler
|
|
129
|
+
- `hideTitle` (optional): boolean;
|
|
130
|
+
- Do not show the title if true
|
|
131
|
+
- `settings` (optional): [Swiper props](https://swiperjs.com/swiper-api#parameters)
|
|
132
|
+
- Carousel settings to apply for carousel widget
|
|
133
|
+
- `className` (optional): string
|
|
134
|
+
- Class name for widget
|
|
135
|
+
- `formatHeader` (optional): `(title: string, data: WidgetData) => string | JSX.Element`
|
|
136
|
+
- Function to format the widget header
|
|
137
|
+
- `formatFooter` (optional): `(data: WidgetData) => string | JSX.Element`
|
|
138
|
+
- Function to format the widget footer
|
|
139
|
+
- `formatTabTitle` (optional): `(title: string, collectionData: any[], isActive: boolean) => JSX.Element;`
|
|
140
|
+
- Function to format tab title
|
|
141
|
+
- `itemsContainer` (optional): `(children: JSX.Element) => JSX.Element;`
|
|
142
|
+
- Function to wrap items in widget
|
|
143
|
+
|
|
144
|
+
### Page
|
|
145
|
+
```jsx
|
|
146
|
+
import { Page } from '@knovator/pagecreator';
|
|
147
|
+
|
|
148
|
+
<Page
|
|
149
|
+
imageBaseUrl=''
|
|
150
|
+
pageData={...}
|
|
151
|
+
onClick={...}
|
|
152
|
+
>
|
|
153
|
+
```
|
|
154
|
+
**Props**
|
|
155
|
+
- `title` (optional)
|
|
156
|
+
- Title to show on page
|
|
157
|
+
- `imageBaseUrl`
|
|
158
|
+
- baseUrl to start prefix image urls
|
|
159
|
+
- `pageData`
|
|
160
|
+
- [PageData](data-formats.md#pagedata)
|
|
161
|
+
- `formatItem` (optional): `(CODE: string, item: ItemData) => JSX.Element;`
|
|
162
|
+
- Customize look of Items
|
|
163
|
+
- `onClick` (optional): `(CODE: string, item: ItemData) => JSX.Element;`
|
|
164
|
+
- On Item click handler
|
|
165
|
+
- `hideWidgetTitles` (optional): boolean
|
|
166
|
+
- Flag to hide widget titles
|
|
167
|
+
- `formatWidget` (optional): `(item: WidgetData, index: number) => JSX.Element;`
|
|
168
|
+
- Function to format individual widget
|
|
169
|
+
|
|
170
|
+
### getData
|
|
171
|
+
It's possible to fetch data by yourself and pass them to `Widget` or `Page` components, but if you need easy solution you can use `getData` function.
|
|
172
|
+
```js
|
|
173
|
+
const pageData = await getData({
|
|
174
|
+
url: '...',
|
|
175
|
+
code: 'HOMEPAGE',
|
|
176
|
+
});
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
180
|
+
|
|
181
|
+
<!-- CONTRIBUTING -->
|
|
182
|
+
## Contributing
|
|
183
|
+
|
|
184
|
+
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
|
|
185
|
+
|
|
186
|
+
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
|
|
187
|
+
Don't forget to give the project a star! Thanks again!
|
|
188
|
+
|
|
189
|
+
1. Fork the Project
|
|
190
|
+
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
|
191
|
+
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
|
192
|
+
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
|
193
|
+
5. Open a Pull Request
|
|
194
|
+
|
|
195
|
+
<p align="right">(<a href="#top">back to top</a>)</p>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
<!-- LICENSE -->
|
|
200
|
+
## License
|
|
201
|
+
|
|
202
|
+
Distributed under the MIT License. See `LICENSE.txt` for more information.
|
|
203
|
+
|
|
204
|
+
<p align="right">(<a href="#top">back to top</a>)</p>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
<!-- CONTACT -->
|
|
208
|
+
## Contact
|
|
209
|
+
|
|
210
|
+
Knovator Technologies
|
|
211
|
+
- Twitter [@knovator](https://twitter.com/knovator)
|
|
212
|
+
- Web [https://knovator.com/](https://knovator.com/)
|
|
213
|
+
|
|
214
|
+
Project Link: [https://github.com/knovator/masters-admin](https://github.com/knovator/masters-admin)
|
|
215
|
+
|
|
216
|
+
<p align="right">(<a href="#top">back to top</a>)</p>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
<!-- MARKDOWN LINKS & IMAGES -->
|
|
220
|
+
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
|
|
221
|
+
[contributors-shield]: https://img.shields.io/github/contributors/knovator/pagecreator.svg?style=for-the-badge
|
|
222
|
+
[contributors-url]: https://github.com/knovator/pagecreator/graphs/contributors
|
|
223
|
+
[forks-shield]: https://img.shields.io/github/forks/knovator/pagecreator.svg?style=for-the-badge
|
|
224
|
+
[forks-url]: https://github.com/knovator/pagecreator/network/members
|
|
225
|
+
[stars-shield]: https://img.shields.io/github/stars/knovator/pagecreator.svg?style=for-the-badge
|
|
226
|
+
[stars-url]: https://github.com/knovator/pagecreator/stargazers
|
|
227
|
+
[issues-shield]: https://img.shields.io/github/issues/knovator/pagecreator.svg?style=for-the-badge
|
|
228
|
+
[issues-url]: https://github.com/knovator/pagecreator/issues
|
|
229
|
+
[license-shield]: https://img.shields.io/github/license/knovator/pagecreator.svg?style=for-the-badge
|
|
230
230
|
[license-url]: https://github.com/knovator/pagecreator/blob/main/LICENSE.txt
|
package/package.json
CHANGED
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@knovator/pagecreator",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"repository": {
|
|
5
|
-
"type": "git",
|
|
6
|
-
"url": "git@github.com:knovator/pagecreator.git"
|
|
7
|
-
},
|
|
8
|
-
"keywords": [
|
|
9
|
-
"pagecreator",
|
|
10
|
-
"pagebuilder",
|
|
11
|
-
"knovator",
|
|
12
|
-
"chavda-bhavik"
|
|
13
|
-
],
|
|
14
|
-
"author": "knovator (https://knovator.com/)",
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"swiper": "^8.4.5",
|
|
17
|
-
"react-tabs": "^6.0.0"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"lib",
|
|
21
|
-
"package.json",
|
|
22
|
-
"README.md",
|
|
23
|
-
"style.css",
|
|
24
|
-
"index.js"
|
|
25
|
-
]
|
|
26
|
-
|
|
27
|
-
"main": "./index.js",
|
|
28
|
-
"type": "module",
|
|
29
|
-
"types": "./src/index.d.ts",
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"react": "18.2.0"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@knovator/pagecreator",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git@github.com:knovator/pagecreator.git"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [
|
|
9
|
+
"pagecreator",
|
|
10
|
+
"pagebuilder",
|
|
11
|
+
"knovator",
|
|
12
|
+
"chavda-bhavik"
|
|
13
|
+
],
|
|
14
|
+
"author": "knovator (https://knovator.com/)",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"swiper": "^8.4.5",
|
|
17
|
+
"react-tabs": "^6.0.0"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"lib",
|
|
21
|
+
"package.json",
|
|
22
|
+
"README.md",
|
|
23
|
+
"style.css",
|
|
24
|
+
"index.js"
|
|
25
|
+
]
|
|
26
|
+
}
|
package/index.js
DELETED
|
@@ -1,689 +0,0 @@
|
|
|
1
|
-
import React, { Fragment, useState } from 'react';
|
|
2
|
-
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
3
|
-
import { Pagination, Autoplay, Virtual } from 'swiper';
|
|
4
|
-
import { Tabs, TabList, Tab, TabPanel } from 'react-tabs';
|
|
5
|
-
|
|
6
|
-
var regeneratorRuntime$1 = {exports: {}};
|
|
7
|
-
|
|
8
|
-
var _typeof = {exports: {}};
|
|
9
|
-
|
|
10
|
-
(function (module) {
|
|
11
|
-
function _typeof(obj) {
|
|
12
|
-
"@babel/helpers - typeof";
|
|
13
|
-
|
|
14
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
15
|
-
return typeof obj;
|
|
16
|
-
} : function (obj) {
|
|
17
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
18
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
19
|
-
}
|
|
20
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
21
|
-
}(_typeof));
|
|
22
|
-
|
|
23
|
-
(function (module) {
|
|
24
|
-
var _typeof$1 = _typeof.exports["default"];
|
|
25
|
-
function _regeneratorRuntime() {
|
|
26
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
27
|
-
return exports;
|
|
28
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
29
|
-
var exports = {},
|
|
30
|
-
Op = Object.prototype,
|
|
31
|
-
hasOwn = Op.hasOwnProperty,
|
|
32
|
-
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
33
|
-
obj[key] = desc.value;
|
|
34
|
-
},
|
|
35
|
-
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
36
|
-
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
37
|
-
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
38
|
-
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
39
|
-
function define(obj, key, value) {
|
|
40
|
-
return Object.defineProperty(obj, key, {
|
|
41
|
-
value: value,
|
|
42
|
-
enumerable: !0,
|
|
43
|
-
configurable: !0,
|
|
44
|
-
writable: !0
|
|
45
|
-
}), obj[key];
|
|
46
|
-
}
|
|
47
|
-
try {
|
|
48
|
-
define({}, "");
|
|
49
|
-
} catch (err) {
|
|
50
|
-
define = function define(obj, key, value) {
|
|
51
|
-
return obj[key] = value;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
55
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
56
|
-
generator = Object.create(protoGenerator.prototype),
|
|
57
|
-
context = new Context(tryLocsList || []);
|
|
58
|
-
return defineProperty(generator, "_invoke", {
|
|
59
|
-
value: makeInvokeMethod(innerFn, self, context)
|
|
60
|
-
}), generator;
|
|
61
|
-
}
|
|
62
|
-
function tryCatch(fn, obj, arg) {
|
|
63
|
-
try {
|
|
64
|
-
return {
|
|
65
|
-
type: "normal",
|
|
66
|
-
arg: fn.call(obj, arg)
|
|
67
|
-
};
|
|
68
|
-
} catch (err) {
|
|
69
|
-
return {
|
|
70
|
-
type: "throw",
|
|
71
|
-
arg: err
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
exports.wrap = wrap;
|
|
76
|
-
var ContinueSentinel = {};
|
|
77
|
-
function Generator() {}
|
|
78
|
-
function GeneratorFunction() {}
|
|
79
|
-
function GeneratorFunctionPrototype() {}
|
|
80
|
-
var IteratorPrototype = {};
|
|
81
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
82
|
-
return this;
|
|
83
|
-
});
|
|
84
|
-
var getProto = Object.getPrototypeOf,
|
|
85
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
86
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
87
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
88
|
-
function defineIteratorMethods(prototype) {
|
|
89
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
90
|
-
define(prototype, method, function (arg) {
|
|
91
|
-
return this._invoke(method, arg);
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
96
|
-
function invoke(method, arg, resolve, reject) {
|
|
97
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
98
|
-
if ("throw" !== record.type) {
|
|
99
|
-
var result = record.arg,
|
|
100
|
-
value = result.value;
|
|
101
|
-
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
102
|
-
invoke("next", value, resolve, reject);
|
|
103
|
-
}, function (err) {
|
|
104
|
-
invoke("throw", err, resolve, reject);
|
|
105
|
-
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
106
|
-
result.value = unwrapped, resolve(result);
|
|
107
|
-
}, function (error) {
|
|
108
|
-
return invoke("throw", error, resolve, reject);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
reject(record.arg);
|
|
112
|
-
}
|
|
113
|
-
var previousPromise;
|
|
114
|
-
defineProperty(this, "_invoke", {
|
|
115
|
-
value: function value(method, arg) {
|
|
116
|
-
function callInvokeWithMethodAndArg() {
|
|
117
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
118
|
-
invoke(method, arg, resolve, reject);
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
126
|
-
var state = "suspendedStart";
|
|
127
|
-
return function (method, arg) {
|
|
128
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
129
|
-
if ("completed" === state) {
|
|
130
|
-
if ("throw" === method) throw arg;
|
|
131
|
-
return doneResult();
|
|
132
|
-
}
|
|
133
|
-
for (context.method = method, context.arg = arg;;) {
|
|
134
|
-
var delegate = context.delegate;
|
|
135
|
-
if (delegate) {
|
|
136
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
137
|
-
if (delegateResult) {
|
|
138
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
139
|
-
return delegateResult;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
143
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
144
|
-
context.dispatchException(context.arg);
|
|
145
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
146
|
-
state = "executing";
|
|
147
|
-
var record = tryCatch(innerFn, self, context);
|
|
148
|
-
if ("normal" === record.type) {
|
|
149
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
150
|
-
return {
|
|
151
|
-
value: record.arg,
|
|
152
|
-
done: context.done
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
160
|
-
var methodName = context.method,
|
|
161
|
-
method = delegate.iterator[methodName];
|
|
162
|
-
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
163
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
164
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
165
|
-
var info = record.arg;
|
|
166
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
167
|
-
}
|
|
168
|
-
function pushTryEntry(locs) {
|
|
169
|
-
var entry = {
|
|
170
|
-
tryLoc: locs[0]
|
|
171
|
-
};
|
|
172
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
173
|
-
}
|
|
174
|
-
function resetTryEntry(entry) {
|
|
175
|
-
var record = entry.completion || {};
|
|
176
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
177
|
-
}
|
|
178
|
-
function Context(tryLocsList) {
|
|
179
|
-
this.tryEntries = [{
|
|
180
|
-
tryLoc: "root"
|
|
181
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
182
|
-
}
|
|
183
|
-
function values(iterable) {
|
|
184
|
-
if (iterable) {
|
|
185
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
186
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
187
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
188
|
-
if (!isNaN(iterable.length)) {
|
|
189
|
-
var i = -1,
|
|
190
|
-
next = function next() {
|
|
191
|
-
for (; ++i < iterable.length;) {
|
|
192
|
-
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
193
|
-
}
|
|
194
|
-
return next.value = undefined, next.done = !0, next;
|
|
195
|
-
};
|
|
196
|
-
return next.next = next;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return {
|
|
200
|
-
next: doneResult
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
function doneResult() {
|
|
204
|
-
return {
|
|
205
|
-
value: undefined,
|
|
206
|
-
done: !0
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
210
|
-
value: GeneratorFunctionPrototype,
|
|
211
|
-
configurable: !0
|
|
212
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
213
|
-
value: GeneratorFunction,
|
|
214
|
-
configurable: !0
|
|
215
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
216
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
217
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
218
|
-
}, exports.mark = function (genFun) {
|
|
219
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
220
|
-
}, exports.awrap = function (arg) {
|
|
221
|
-
return {
|
|
222
|
-
__await: arg
|
|
223
|
-
};
|
|
224
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
225
|
-
return this;
|
|
226
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
227
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
228
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
229
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
230
|
-
return result.done ? result.value : iter.next();
|
|
231
|
-
});
|
|
232
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
233
|
-
return this;
|
|
234
|
-
}), define(Gp, "toString", function () {
|
|
235
|
-
return "[object Generator]";
|
|
236
|
-
}), exports.keys = function (val) {
|
|
237
|
-
var object = Object(val),
|
|
238
|
-
keys = [];
|
|
239
|
-
for (var key in object) {
|
|
240
|
-
keys.push(key);
|
|
241
|
-
}
|
|
242
|
-
return keys.reverse(), function next() {
|
|
243
|
-
for (; keys.length;) {
|
|
244
|
-
var key = keys.pop();
|
|
245
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
246
|
-
}
|
|
247
|
-
return next.done = !0, next;
|
|
248
|
-
};
|
|
249
|
-
}, exports.values = values, Context.prototype = {
|
|
250
|
-
constructor: Context,
|
|
251
|
-
reset: function reset(skipTempReset) {
|
|
252
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
253
|
-
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
stop: function stop() {
|
|
257
|
-
this.done = !0;
|
|
258
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
259
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
260
|
-
return this.rval;
|
|
261
|
-
},
|
|
262
|
-
dispatchException: function dispatchException(exception) {
|
|
263
|
-
if (this.done) throw exception;
|
|
264
|
-
var context = this;
|
|
265
|
-
function handle(loc, caught) {
|
|
266
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
267
|
-
}
|
|
268
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
269
|
-
var entry = this.tryEntries[i],
|
|
270
|
-
record = entry.completion;
|
|
271
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
272
|
-
if (entry.tryLoc <= this.prev) {
|
|
273
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
274
|
-
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
275
|
-
if (hasCatch && hasFinally) {
|
|
276
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
277
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
278
|
-
} else if (hasCatch) {
|
|
279
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
280
|
-
} else {
|
|
281
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
282
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
abrupt: function abrupt(type, arg) {
|
|
288
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
289
|
-
var entry = this.tryEntries[i];
|
|
290
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
291
|
-
var finallyEntry = entry;
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
296
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
297
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
298
|
-
},
|
|
299
|
-
complete: function complete(record, afterLoc) {
|
|
300
|
-
if ("throw" === record.type) throw record.arg;
|
|
301
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
302
|
-
},
|
|
303
|
-
finish: function finish(finallyLoc) {
|
|
304
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
305
|
-
var entry = this.tryEntries[i];
|
|
306
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"catch": function _catch(tryLoc) {
|
|
310
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
311
|
-
var entry = this.tryEntries[i];
|
|
312
|
-
if (entry.tryLoc === tryLoc) {
|
|
313
|
-
var record = entry.completion;
|
|
314
|
-
if ("throw" === record.type) {
|
|
315
|
-
var thrown = record.arg;
|
|
316
|
-
resetTryEntry(entry);
|
|
317
|
-
}
|
|
318
|
-
return thrown;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
throw new Error("illegal catch attempt");
|
|
322
|
-
},
|
|
323
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
324
|
-
return this.delegate = {
|
|
325
|
-
iterator: values(iterable),
|
|
326
|
-
resultName: resultName,
|
|
327
|
-
nextLoc: nextLoc
|
|
328
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
329
|
-
}
|
|
330
|
-
}, exports;
|
|
331
|
-
}
|
|
332
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
333
|
-
}(regeneratorRuntime$1));
|
|
334
|
-
|
|
335
|
-
// TODO(Babel 8): Remove this file.
|
|
336
|
-
|
|
337
|
-
var runtime = regeneratorRuntime$1.exports();
|
|
338
|
-
var regenerator = runtime;
|
|
339
|
-
|
|
340
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
341
|
-
try {
|
|
342
|
-
regeneratorRuntime = runtime;
|
|
343
|
-
} catch (accidentalStrictMode) {
|
|
344
|
-
if (typeof globalThis === "object") {
|
|
345
|
-
globalThis.regeneratorRuntime = runtime;
|
|
346
|
-
} else {
|
|
347
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/******************************************************************************
|
|
352
|
-
Copyright (c) Microsoft Corporation.
|
|
353
|
-
|
|
354
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
355
|
-
purpose with or without fee is hereby granted.
|
|
356
|
-
|
|
357
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
358
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
359
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
360
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
361
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
362
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
363
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
364
|
-
***************************************************************************** */
|
|
365
|
-
|
|
366
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
367
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
368
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
369
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
370
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
371
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
372
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
var _a;
|
|
377
|
-
function getData(_ref) {
|
|
378
|
-
var url = _ref.url,
|
|
379
|
-
code = _ref.code,
|
|
380
|
-
token = _ref.token;
|
|
381
|
-
return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator.mark(function _callee() {
|
|
382
|
-
var response, data;
|
|
383
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
384
|
-
while (1) {
|
|
385
|
-
switch (_context.prev = _context.next) {
|
|
386
|
-
case 0:
|
|
387
|
-
_context.next = 2;
|
|
388
|
-
return fetch(url, {
|
|
389
|
-
method: 'POST',
|
|
390
|
-
headers: {
|
|
391
|
-
'Content-Type': 'application/json',
|
|
392
|
-
Authorization: token ? "Bearer ".concat(token) : ''
|
|
393
|
-
},
|
|
394
|
-
body: JSON.stringify({
|
|
395
|
-
code: code
|
|
396
|
-
})
|
|
397
|
-
});
|
|
398
|
-
case 2:
|
|
399
|
-
response = _context.sent;
|
|
400
|
-
if (response.ok) {
|
|
401
|
-
_context.next = 5;
|
|
402
|
-
break;
|
|
403
|
-
}
|
|
404
|
-
throw new Error(response.statusText);
|
|
405
|
-
case 5:
|
|
406
|
-
_context.next = 7;
|
|
407
|
-
return response.json();
|
|
408
|
-
case 7:
|
|
409
|
-
data = _context.sent;
|
|
410
|
-
return _context.abrupt("return", data['data']);
|
|
411
|
-
case 9:
|
|
412
|
-
case "end":
|
|
413
|
-
return _context.stop();
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}, _callee);
|
|
417
|
-
}));
|
|
418
|
-
}
|
|
419
|
-
function buildSrcSets(imageBaseUrl, srcSets) {
|
|
420
|
-
if (!srcSets) return '';
|
|
421
|
-
if (!imageBaseUrl) return srcSets;
|
|
422
|
-
return srcSets.split(', ').map(function (srcSetItem) {
|
|
423
|
-
return "".concat(imageBaseUrl).concat(srcSetItem);
|
|
424
|
-
}).join(', ');
|
|
425
|
-
}
|
|
426
|
-
var isMobileDevice = typeof window !== 'undefined' && /Mobi/i.test((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent);
|
|
427
|
-
var filterItemData = function filterItemData(data) {
|
|
428
|
-
return isMobileDevice ? data.itemType === 'Mobile' : data.itemType === 'Web';
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
function FixedWidget(_ref) {
|
|
432
|
-
var widgetData = _ref.widgetData,
|
|
433
|
-
formatItem = _ref.formatItem,
|
|
434
|
-
className = _ref.className,
|
|
435
|
-
itemsContainer = _ref.itemsContainer;
|
|
436
|
-
var gridClasses = "grid grid-cols-".concat(widgetData.mobilePerRow, " md:grid-cols-").concat(widgetData.tabletPerRow, " lg:grid-cols-").concat(widgetData.webPerRow);
|
|
437
|
-
if (typeof itemsContainer === 'function') return itemsContainer(widgetData.itemsType === 'Image' ? widgetData.items.filter(filterItemData).map(function (item, index) {
|
|
438
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
439
|
-
key: index
|
|
440
|
-
}, formatItem(item));
|
|
441
|
-
}) : widgetData.collectionItems.map(function (item, index) {
|
|
442
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
443
|
-
key: index
|
|
444
|
-
}, formatItem(item));
|
|
445
|
-
}));
|
|
446
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
447
|
-
className: className || gridClasses
|
|
448
|
-
}, widgetData.itemsType === 'Image' ? widgetData.items.filter(filterItemData).map(function (item, index) {
|
|
449
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
450
|
-
key: index
|
|
451
|
-
}, formatItem(item));
|
|
452
|
-
}) : widgetData.collectionItems.map(function (item, index) {
|
|
453
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
454
|
-
key: index
|
|
455
|
-
}, formatItem(item));
|
|
456
|
-
}));
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
function CarouselWidget(_ref) {
|
|
460
|
-
var widgetData = _ref.widgetData,
|
|
461
|
-
formatItem = _ref.formatItem,
|
|
462
|
-
settings = _ref.settings,
|
|
463
|
-
className = _ref.className,
|
|
464
|
-
itemsContainer = _ref.itemsContainer;
|
|
465
|
-
var defaultSetting = {
|
|
466
|
-
slidesPerView: widgetData.mobilePerRow,
|
|
467
|
-
loop: true,
|
|
468
|
-
loopAdditionalSlides: 2,
|
|
469
|
-
speed: 5000,
|
|
470
|
-
breakpoints: {
|
|
471
|
-
640: {
|
|
472
|
-
slidesPerView: widgetData.mobilePerRow,
|
|
473
|
-
spaceBetween: 20
|
|
474
|
-
},
|
|
475
|
-
768: {
|
|
476
|
-
slidesPerView: widgetData.tabletPerRow,
|
|
477
|
-
spaceBetween: 40
|
|
478
|
-
},
|
|
479
|
-
1024: {
|
|
480
|
-
slidesPerView: widgetData.webPerRow,
|
|
481
|
-
spaceBetween: 50
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
if (!widgetData) return null;
|
|
486
|
-
if (typeof itemsContainer === 'function') return itemsContainer(widgetData.itemsType === 'Image' ? widgetData.items.filter(filterItemData).map(function (item, index) {
|
|
487
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
488
|
-
key: index
|
|
489
|
-
}, formatItem(item));
|
|
490
|
-
}) : widgetData.collectionItems.map(function (item, index) {
|
|
491
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
492
|
-
key: index
|
|
493
|
-
}, formatItem(item));
|
|
494
|
-
}));
|
|
495
|
-
return /*#__PURE__*/React.createElement(Swiper, Object.assign({}, Object.assign(Object.assign({}, defaultSetting), settings || {}), {
|
|
496
|
-
className: className,
|
|
497
|
-
modules: [Pagination, Autoplay, Virtual],
|
|
498
|
-
virtual: typeof window === 'undefined'
|
|
499
|
-
}), widgetData.itemsType === 'Image' ? widgetData.items.filter(filterItemData).map(function (item, index) {
|
|
500
|
-
return /*#__PURE__*/React.createElement(SwiperSlide, {
|
|
501
|
-
key: index
|
|
502
|
-
}, formatItem(item));
|
|
503
|
-
}) : widgetData.collectionItems.map(function (item, index) {
|
|
504
|
-
return /*#__PURE__*/React.createElement(SwiperSlide, {
|
|
505
|
-
key: index
|
|
506
|
-
}, formatItem(item));
|
|
507
|
-
}));
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
function Banner(_ref) {
|
|
511
|
-
var imageAltText = _ref.imageAltText,
|
|
512
|
-
imageUrl = _ref.imageUrl,
|
|
513
|
-
_onClick = _ref.onClick,
|
|
514
|
-
srcSets = _ref.srcSets,
|
|
515
|
-
title = _ref.title,
|
|
516
|
-
subtitle = _ref.subtitle;
|
|
517
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
518
|
-
className: "kpc_banner"
|
|
519
|
-
}, /*#__PURE__*/React.createElement("b", null, title), subtitle ? /*#__PURE__*/React.createElement("p", null, subtitle) : null, /*#__PURE__*/React.createElement("img", {
|
|
520
|
-
src: imageUrl,
|
|
521
|
-
alt: imageAltText,
|
|
522
|
-
className: "kpc_banner-image",
|
|
523
|
-
srcSet: srcSets,
|
|
524
|
-
loading: "lazy",
|
|
525
|
-
onClick: function onClick() {
|
|
526
|
-
return _onClick && _onClick();
|
|
527
|
-
}
|
|
528
|
-
}));
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
function CollectionItem(_ref) {
|
|
532
|
-
var name = _ref.name,
|
|
533
|
-
_onClick = _ref.onClick;
|
|
534
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
535
|
-
className: "kpc_item",
|
|
536
|
-
onClick: function onClick() {
|
|
537
|
-
return _onClick && _onClick();
|
|
538
|
-
}
|
|
539
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
540
|
-
className: "kpc_item-text"
|
|
541
|
-
}, name || 'Laurem Ipsum'));
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
function TabWidget(_ref) {
|
|
545
|
-
var widgetData = _ref.widgetData,
|
|
546
|
-
formatItem = _ref.formatItem,
|
|
547
|
-
className = _ref.className,
|
|
548
|
-
formatTabTitle = _ref.formatTabTitle,
|
|
549
|
-
itemsContainer = _ref.itemsContainer;
|
|
550
|
-
var _useState = useState(0),
|
|
551
|
-
activeTab = _useState[0],
|
|
552
|
-
setActiveTab = _useState[1];
|
|
553
|
-
var gridClasses = "grid grid-cols-".concat(widgetData.mobilePerRow, " md:grid-cols-").concat(widgetData.tabletPerRow, " lg:grid-cols-").concat(widgetData.webPerRow);
|
|
554
|
-
return /*#__PURE__*/React.createElement(Tabs, {
|
|
555
|
-
selectedIndex: activeTab,
|
|
556
|
-
onSelect: setActiveTab
|
|
557
|
-
}, /*#__PURE__*/React.createElement(TabList, null, widgetData.tabs.map(function (tab, index) {
|
|
558
|
-
return /*#__PURE__*/React.createElement(Tab, {
|
|
559
|
-
key: index
|
|
560
|
-
}, formatTabTitle(tab.names || tab.name, tab.collectionItems, activeTab === index));
|
|
561
|
-
})), widgetData.tabs.map(function (tab, index) {
|
|
562
|
-
return /*#__PURE__*/React.createElement(TabPanel, {
|
|
563
|
-
key: index
|
|
564
|
-
}, typeof itemsContainer === 'function' ? itemsContainer(tab.collectionItems.map(function (item, index) {
|
|
565
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
566
|
-
key: index
|
|
567
|
-
}, formatItem(item));
|
|
568
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
569
|
-
className: className || gridClasses
|
|
570
|
-
}, tab.collectionItems.map(function (item, index) {
|
|
571
|
-
return /*#__PURE__*/React.createElement(Fragment, {
|
|
572
|
-
key: index
|
|
573
|
-
}, formatItem(item));
|
|
574
|
-
})));
|
|
575
|
-
}));
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
function Widget(_ref) {
|
|
579
|
-
var widgetData = _ref.widgetData,
|
|
580
|
-
imageBaseUrl = _ref.imageBaseUrl,
|
|
581
|
-
formatItem = _ref.formatItem,
|
|
582
|
-
_onClick = _ref.onClick,
|
|
583
|
-
settings = _ref.settings,
|
|
584
|
-
hideTitle = _ref.hideTitle,
|
|
585
|
-
className = _ref.className,
|
|
586
|
-
formatFooter = _ref.formatFooter,
|
|
587
|
-
formatHeader = _ref.formatHeader,
|
|
588
|
-
formatTabTitle = _ref.formatTabTitle,
|
|
589
|
-
itemsContainer = _ref.itemsContainer;
|
|
590
|
-
var formatItems = function formatItems(item) {
|
|
591
|
-
var _a;
|
|
592
|
-
if (typeof formatItem === 'function' && formatItem) return formatItem(item);else if (widgetData.itemsType === 'Image') return /*#__PURE__*/React.createElement(Banner, {
|
|
593
|
-
key: item._id,
|
|
594
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
595
|
-
// @ts-ignore
|
|
596
|
-
imageUrl: "".concat(imageBaseUrl || '').concat((_a = item.image) === null || _a === void 0 ? void 0 : _a.uri),
|
|
597
|
-
imageAltText: item._id,
|
|
598
|
-
onClick: function onClick() {
|
|
599
|
-
return _onClick && _onClick(item);
|
|
600
|
-
},
|
|
601
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
602
|
-
// @ts-ignore
|
|
603
|
-
srcSets: buildSrcSets(imageBaseUrl, item.srcSets),
|
|
604
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
605
|
-
// @ts-ignore
|
|
606
|
-
title: item.title,
|
|
607
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
608
|
-
// @ts-ignore
|
|
609
|
-
subtitle: item.subtitle
|
|
610
|
-
});else return /*#__PURE__*/React.createElement(CollectionItem, Object.assign({
|
|
611
|
-
key: item._id,
|
|
612
|
-
onClick: function onClick() {
|
|
613
|
-
return _onClick && _onClick(item);
|
|
614
|
-
}
|
|
615
|
-
}, item));
|
|
616
|
-
};
|
|
617
|
-
var formatTabTitles = function formatTabTitles(title, collectionData, isActive) {
|
|
618
|
-
if (typeof formatTabTitle === 'function' && formatTabTitle) return formatTabTitle(title, collectionData, isActive);
|
|
619
|
-
return /*#__PURE__*/React.createElement("div", null, typeof title === 'string' ? title : JSON.stringify(title));
|
|
620
|
-
};
|
|
621
|
-
if (!widgetData) return null;
|
|
622
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
623
|
-
className: "kpc_widget",
|
|
624
|
-
style: {
|
|
625
|
-
backgroundColor: widgetData.backgroundColor
|
|
626
|
-
}
|
|
627
|
-
}, hideTitle === true ? null : typeof formatHeader === 'function' ? formatHeader(widgetData.widgetTitles || widgetData.widgetTitle, widgetData) : /*#__PURE__*/React.createElement("h2", {
|
|
628
|
-
className: "kpc_widget-title",
|
|
629
|
-
dangerouslySetInnerHTML: {
|
|
630
|
-
__html: widgetData.widgetTitles ? JSON.stringify(widgetData.widgetTitles) : widgetData.widgetTitle
|
|
631
|
-
}
|
|
632
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
633
|
-
className: "kpc_widget-body"
|
|
634
|
-
}, widgetData.widgetType === 'Carousel' ? /*#__PURE__*/React.createElement(CarouselWidget, {
|
|
635
|
-
settings: settings,
|
|
636
|
-
widgetData: widgetData,
|
|
637
|
-
formatItem: formatItems,
|
|
638
|
-
className: className,
|
|
639
|
-
formatTabTitle: formatTabTitles,
|
|
640
|
-
itemsContainer: itemsContainer
|
|
641
|
-
}) : widgetData.widgetType === 'Tabs' ? /*#__PURE__*/React.createElement(TabWidget, {
|
|
642
|
-
formatItem: formatItems,
|
|
643
|
-
formatTabTitle: formatTabTitles,
|
|
644
|
-
widgetData: widgetData,
|
|
645
|
-
className: className,
|
|
646
|
-
itemsContainer: itemsContainer
|
|
647
|
-
}) : /*#__PURE__*/React.createElement(FixedWidget, {
|
|
648
|
-
widgetData: widgetData,
|
|
649
|
-
formatItem: formatItems,
|
|
650
|
-
className: className,
|
|
651
|
-
formatTabTitle: formatTabTitles,
|
|
652
|
-
itemsContainer: itemsContainer
|
|
653
|
-
})), typeof formatFooter === 'function' ? formatFooter(widgetData) : null);
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
function Page(_ref) {
|
|
657
|
-
var title = _ref.title,
|
|
658
|
-
imageBaseUrl = _ref.imageBaseUrl,
|
|
659
|
-
pageData = _ref.pageData,
|
|
660
|
-
formatItem = _ref.formatItem,
|
|
661
|
-
onClick = _ref.onClick,
|
|
662
|
-
formatWidget = _ref.formatWidget,
|
|
663
|
-
hideWidgetTitles = _ref.hideWidgetTitles;
|
|
664
|
-
if (!pageData) return null;
|
|
665
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
666
|
-
className: "kpc_page"
|
|
667
|
-
}, title && /*#__PURE__*/React.createElement("h1", {
|
|
668
|
-
className: "kpc_page-title"
|
|
669
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
|
670
|
-
className: "kpc_page-widgets"
|
|
671
|
-
}, pageData.widgets.map(function (widgetData, index) {
|
|
672
|
-
return typeof formatWidget === 'function' ? /*#__PURE__*/React.createElement(Fragment, {
|
|
673
|
-
key: index
|
|
674
|
-
}, formatWidget(widgetData, index)) : /*#__PURE__*/React.createElement(Widget, {
|
|
675
|
-
widgetData: widgetData,
|
|
676
|
-
key: index,
|
|
677
|
-
imageBaseUrl: imageBaseUrl,
|
|
678
|
-
hideTitle: hideWidgetTitles === true,
|
|
679
|
-
formatItem: formatItem && function (itemData) {
|
|
680
|
-
return formatItem(widgetData.code, itemData);
|
|
681
|
-
},
|
|
682
|
-
onClick: onClick && function (itemData) {
|
|
683
|
-
return onClick(widgetData.code, itemData);
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
})));
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
export { Page, Widget, getData };
|
package/style.css
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:root{--swiper-theme-color:#007aff}.swiper{list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;display:flex;height:100%;position:relative;transition-property:transform;width:100%;z-index:1}.swiper-android .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-pointer-events{touch-action:pan-y}.swiper-pointer-events.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}.swiper-3d,.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";left:0;pointer-events:none;position:absolute;top:0}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;margin-top:calc(0px - var(--swiper-navigation-size)/2);position:absolute;top:50%;width:calc(var(--swiper-navigation-size)/44*27);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);font-variant:normal;letter-spacing:0;line-height:1;text-transform:none!important}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:10px;right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{left:auto;right:10px}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:50%;display:inline-block;height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px))}button.swiper-pagination-bullet{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:4px;left:0;top:0;width:100%}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:4px}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:rgba(0,0,0,.1);border-radius:10px;position:relative;-ms-touch-action:none}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{bottom:3px;height:5px;left:1%;position:absolute;width:98%;z-index:50}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{height:98%;position:absolute;right:3px;top:1%;width:5px;z-index:50}.swiper-scrollbar-drag{background:rgba(0,0,0,.5);border-radius:10px;height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid transparent;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.swiper .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-direction:column;flex-wrap:wrap}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-next+.swiper-slide,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:0}.swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:none;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:0}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transform-origin:center bottom}.react-tabs{-webkit-tap-highlight-color:transparent}.react-tabs__tab-list{border-bottom:1px solid #aaa;margin:0 0 10px;padding:0}.react-tabs__tab{border:1px solid transparent;border-bottom:none;bottom:-1px;cursor:pointer;display:inline-block;list-style:none;padding:6px 12px;position:relative}.react-tabs__tab--selected{background:#fff;border-color:#aaa;border-radius:5px 5px 0 0;color:#000}.react-tabs__tab--disabled{color:GrayText;cursor:default}.react-tabs__tab:focus{outline:none}.react-tabs__tab:focus:after{background:#fff;bottom:-5px;content:"";height:5px;left:-4px;position:absolute;right:-4px}.react-tabs__tab-panel{display:none}.react-tabs__tab-panel--selected{display:block}
|
|
2
|
-
|
|
3
|
-
/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-none{grid-template-columns:none}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.kpc_widget-title{font-size:1.5rem;font-weight:700;line-height:2rem;margin-bottom:.5rem}.kpc_simple-card{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));border-radius:.5rem;border-width:1px;display:flex;flex-direction:column;gap:.5rem;overflow:hidden;padding:.75rem}.kpc_simple-card-heading{flex-shrink:0}.kpc_simple-card-image{aspect-ratio:1/1;border-radius:.375rem;-o-object-fit:cover;object-fit:cover}.kpc_simple-card-body{display:contents;width:100%}.kpc_simple-card-label{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kpc_simple-card-content{align-items:center;justify-content:space-between;width:100%}.kpc_simple-card-title{font-size:1.125rem;font-weight:600;line-height:1.75rem;text-align:center}.kpc_simple-card-subtitle{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity));font-size:.75rem;line-height:1rem}.kpc_banner{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity));border-radius:.375rem;border-width:1px;padding:.25rem}.kpc_banner-image{aspect-ratio:1/1;height:100%;width:100%}.kpc_page-title{font-size:1.5rem;font-weight:700;line-height:2rem;margin-bottom:.5rem}.kpc_page-widgets>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.kpc_item{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity));border-radius:.375rem;border-width:2px;padding:.5rem}.kpc_item-text{font-size:1rem;font-weight:500;line-height:1.5rem;text-align:center}@media (min-width:640px){.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.sm\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.sm\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.sm\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\:grid-cols-none{grid-template-columns:none}}@media (min-width:768px){.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.md\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.md\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.md\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-none{grid-template-columns:none}}@media (min-width:1024px){.lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-none{grid-template-columns:none}}@media (min-width:1280px){.xl\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\:grid-cols-none{grid-template-columns:none}}@media (min-width:1536px){.\32xl\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.\32xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\32xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\32xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.\32xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.\32xl\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.\32xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\32xl\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.\32xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\32xl\:grid-cols-none{grid-template-columns:none}}
|