magic-pill 7.1.3 → 8.0.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [8.0.0] - 2025-06-24
4
+ ### Added
5
+ - Complete TypeScript rewrite with comprehensive type definitions
6
+ - New Navbar mode for Magic Pill with full TypeScript support
7
+ - Improved component architecture with separate Notification and Navbar components
8
+ - Enhanced type safety with discriminated unions for different modes
9
+ - New strongly-typed icon system
10
+ - Added TypeScript build configuration with proper source maps
11
+ - Added proper TypeScript development tools and dependencies
12
+ - Added comprehensive JSDoc comments for better IDE support
13
+
14
+ ### Changed
15
+ - Migrated entire codebase to TypeScript
16
+ - Updated build system to handle TypeScript files
17
+ - Improved code organization with feature-based directory structure
18
+ - Enhanced type definitions for better developer experience
19
+ - Updated documentation to reflect TypeScript support
20
+ - Improved error messages with type-aware validation
21
+ - Refactored component props for better type inference
22
+ - Updated all examples in documentation to use TypeScript
23
+
24
+ ### Fixed
25
+ - Improved type safety across the entire codebase
26
+ - Better handling of optional properties with proper TypeScript nullability
27
+ - More consistent prop types and interfaces
28
+ - Fixed potential type-related runtime errors
29
+ - Improved type checking for icon variants
30
+
31
+ ### Breaking Changes
32
+ - Removed deprecated JavaScript files
33
+ - Updated minimum TypeScript version requirement to 5.0
34
+ - Changed some prop types to be more strict
35
+ - Removed support for untyped icon strings
36
+
3
37
  ## [7.1.3]
4
38
  ### Updated
5
39
  - Updated the "Disclaimer" and "What's next ?" sections of the README file
package/README.md CHANGED
@@ -1,121 +1,185 @@
1
-
2
1
  # Magic Pill
3
2
  Let it empower you.
3
+
4
4
  ## Disclaimer
5
5
  Even though Magic Pill is already available to everyone, please keep in mind that its development is not over yet.
6
- You can technically use it but there's no real documentation yet.
6
+ You can technically use it but the documentation is still being improved.
7
7
  I'll update this section once a real usable version is released.
8
+
8
9
  #### Thank you !!
9
10
  Thank you for your patience and to all people who already have shown interest in Magic Pill, it's my very first npm package and I couldn't ask for a better reception of my package after only a few days after its initial release.
11
+
10
12
  ## Badges
11
13
  ![npm version](https://img.shields.io/npm/v/magic-pill?color=blue)
12
14
  ![npm downloads](https://img.shields.io/npm/dt/magic-pill?color=green)
13
15
  [![DeepScan grade](https://deepscan.io/api/teams/23515/projects/28307/branches/911491/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=23515&pid=28307&bid=911491)
14
16
  [![Known Vulnerabilities](https://snyk.io/test/github/CedricTheveneau/Magic-Pill/badge.svg)](https://snyk.io/test/github/CedricTheveneau/Magic-Pill)
17
+ [![install size](https://packagephobia.com/badge?p=magic-pill@8.0.0)](https://packagephobia.com/result?p=magic-pill@8.0.0)
18
+ [<svg width=20 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 98 96"><path d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"></path></svg>](https://github.com/CedricTheveneau/Magic-Pill)
19
+ [<svg width=20 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331zm4 0v1.336H8.001V8.667h5.334v5.332zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002z"></path><path d="M10.665 10H12v2.667h-1.335z"></path></svg>](https://www.npmjs.com/package/magic-pill)
20
+
15
21
  ## Introduction
16
- Magic Pill is a simple yet powerful React component that lets you show contextual information to your users. It mimicks Apple's Dynamic Island's behavior and is inspired by Xbox's achievement notification as well.
17
- You can show notifications with a quick action, or even some additional content based on the content the users are seeing.
18
-
19
- Magic Pill helps you build elegant and sober yet impactful interactions with your audience really easily. The goal is to empower both you, and your users.
20
- ## What comes with it ?
21
- - [X] Highly customizable React component with various props configurations
22
- - [X] Fully customized styling based on CSS variables for easy adaptation to your theme if needed
23
- - [X] Built with NextJS in mind right from the start, also works with vanilla React
24
- - [X] No external library dependency (appart from bundling)
22
+ Magic Pill is a powerful React component that lets you show contextual information to your users in multiple ways. It can function as a notification system mimicking Apple's Dynamic Island, or as a dynamic navbar for seamless navigation. Built with TypeScript for enhanced type safety and developer experience.
23
+
24
+ ## Features
25
+ - [X] Multiple modes: Notification system and Dynamic Navbar
26
+ - [X] Written in TypeScript with comprehensive type definitions
27
+ - [X] Highly customizable React component with strongly typed props
28
+ - [X] Fully customized styling based on CSS variables for easy theme adaptation
29
+ - [X] Built with NextJS in mind, also works with vanilla React
30
+ - [X] No external library dependency (apart from bundling)
25
31
  - [X] Lightweight and efficient
32
+ - [X] Full TypeScript support with proper type checking
33
+
26
34
  ## Installation
27
- Magic Pill is available on npm, simply use the following command and you're ready to go !
35
+ ### CDN
36
+ Want to quickly give it a try? Add Magic Pill to any React/NextJS project within 10 seconds with our CDN links!
37
+ #### jsDelivr
38
+ ```html
39
+ <script src="https://cdn.jsdelivr.net/npm/magic-pill/dist/index.js"></script>
40
+ <link href="https://cdn.jsdelivr.net/npm/magic-pill@latest/dist/magicpill.css" rel="stylesheet" />
41
+ ```
42
+ #### unpkg
43
+ ```html
44
+ <script src="https://unpkg.com/magic-pill@latest/dist/index.js"></script>
45
+ <link href="https://unpkg.com/magic-pill@latest/dist/magicpill.css" rel="stylesheet" />
46
+ ```
47
+
48
+ ### npm
49
+ Magic Pill is available on npm, simply use the following command and you're ready to go!
28
50
  ```bash
29
51
  npm install magic-pill
30
52
  ```
31
- ## How to use it ?
53
+
54
+ ## How to use it?
32
55
  ### Import styles
33
- For it to work properly, you need to import styles in your app (we recommend importing it into your app.js file).
34
- ```js
35
- // Import dans votre projet Next.js ou React
56
+ For it to work properly, you need to import styles in your app (we recommend importing it into your app.tsx file).
57
+ ```typescript
58
+ // Import in your Next.js or React project
36
59
  import 'magic-pill/dist/magicpill.css';
37
60
  ```
38
- ### Usage with React
39
- Add Magic Pill to any project simply by importing it into your app and calling it inside the component :
40
- ```js
61
+
62
+ ### Usage with React/Next.js
63
+ Add Magic Pill to any project simply by importing it into your app and calling it inside the component:
64
+
65
+ ```typescript
41
66
  import React from 'react';
42
67
  import MagicPill from 'magic-pill';
68
+ import { MagicPillType } from 'magic-pill/dist/types';
43
69
 
44
70
  export default function App() {
45
- // pillData would be stored in a global Context and updated dynamically through other components
46
- const pillData = {
47
- icon: "checkmark", // Value can be : "checkmark", "coupon", "info", "questionmark"
48
- message: "Congrats, you've earned a coupon!",
49
- cta: {
50
- icon: "arrow", // Value can be : "arrow", "box", "checkmark", "cross", "mail", "plus", "quotation", "tel", "undo"
51
- label: "Discover our offer",
52
- link: "https://www.example.com" // Link for the CTA (will be set to null if nothing is specified)
53
- },
54
- info: {
55
- title: "Details of the offer", // Title for the "read more" section
56
- content: "<p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur vos prochains achats avec ce coupon !</p><p>Profitez de 10% de réduction sur v", // HTML content to insert in the "read more" section
57
- closeLabel: "Close" // Label of the "read more" section closing button
58
- }
59
- };
71
+ // pillData would be stored in a global Context and updated dynamically through other components
72
+ const pillData: MagicPillType = {
73
+ mode: "notification",
74
+ notification: {
75
+ icon: "checkmark", // Value can be: "checkmark", "coupon", "info", "questionmark"
76
+ message: "Congrats, you've earned a coupon!",
77
+ cta: {
78
+ icon: "arrow", // Value can be: "arrow", "box", "checkmark", "cross", "mail", "plus", "quotation", "tel", "undo"
79
+ label: "Discover our offer",
80
+ },
81
+ info: {
82
+ title: "Details of the offer", // Title for the "read more" section
83
+ content: "<p>Get 10% off on your next purchase with this coupon!</p><p>MP-10P</p>",
84
+ closeLabel: "Close" // Label of the "read more" section closing button
85
+ }
86
+ }
87
+ };
88
+
60
89
  return (
61
- <MagicPill pillData={pillData}/>
90
+ <MagicPill pillData={pillData} />
62
91
  );
63
92
  }
64
93
  ```
65
- **Please note** : as Magic Pill was intended to be a system-wide glorified toast solution, we recommend adding it to your App component and keeping its props in a global Context, in which you could send contextual data from any component that uses the Context.
94
+
95
+ **Please note**: as Magic Pill was intended to be a system-wide glorified toast solution, we recommend adding it to your App component and keeping its props in a global Context, in which you could send contextual data from any component that uses the Context.
96
+
97
+ ### Navbar Mode
98
+ Magic Pill can also function as a dynamic navbar:
99
+
100
+ ```typescript
101
+ const navbarData: MagicPillType = {
102
+ mode: "navbar",
103
+ navbar: {
104
+ navItems: [
105
+ {
106
+ icon: "home",
107
+ label: "Home",
108
+ link: "/"
109
+ },
110
+ {
111
+ icon: "settings",
112
+ label: "Settings",
113
+ link: "/settings"
114
+ }
115
+ ]
116
+ }
117
+ };
118
+ ```
119
+
66
120
  ### Customization
67
- As said before, Magic Pill is easily customizable, it was intended to be right from the start. We used CSS variables to define its style. Simply replace the theme colors or fonts by changing the values in the variables set in ":root".
121
+ Magic Pill is easily customizable through CSS variables. Simply replace the theme colors or fonts by changing the values in the variables set in ":root".
122
+
68
123
  ```css
69
124
  /* Font import */
70
- @import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Overlock:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');
125
+ @import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Overlock:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');
71
126
 
72
127
  /* CSS variables */
73
128
  :root {
74
- --themeDark: #141414;
75
- --themeLight: #F9F9F9;
76
- --font-text: "Overlock", sans-serif;
77
- --font-accent: "Lexend", sans-serif;
78
- --normal: normal;
79
- --italic: italic;
80
- --medium: 400;
81
- --bold: 700;
82
- --black: 900;
83
- --success: #3F7253;
84
- --danger: #FC5D6A;
85
- --textSize: 19.4px;
86
- --titleSize: 31.42px;
129
+ --themeDark: #141414;
130
+ --themeLight: #F9F9F9;
131
+ --font-text: "Overlock", sans-serif;
132
+ --font-accent: "Lexend", sans-serif;
133
+ --normal: normal;
134
+ --italic: italic;
135
+ --medium: 400;
136
+ --bold: 700;
137
+ --black: 900;
138
+ --success: #3F7253;
139
+ --danger: #FC5D6A;
140
+ --textSize: 19.4px;
141
+ --titleSize: 31.42px;
87
142
  }
88
143
  ```
144
+
89
145
  ## Build your own
90
- Maybe what I brought to the table wasn't enough but you like the idea behind it, that's why Magic Pill is under MIT License, which means you can pretty much do whatever you want and build upon my own version of Magic Pill to bring it to new heights or just make it your own.
146
+ Maybe what I brought to the table wasn't enough but you like the idea behind it, that's why Magic Pill is under [MIT License](https://www.tldrlegal.com/license/mit-license), which means you can pretty much do whatever you want and build upon my own version of Magic Pill to bring it to new heights or just make it your own.
91
147
 
92
- Here's how to proceed :
93
- 1. Clone the project :
148
+ Here's how to proceed:
149
+ 1. Clone the project:
94
150
  ```bash
95
151
  git clone https://github.com/CedricTheveneau/Magic-Pill.git
96
152
  ```
97
- 2. Install all dependencies
153
+
154
+ 2. Install all dependencies:
98
155
  ```bash
99
156
  npm install
100
157
  ```
101
- 3. You're good to go ! Though, for easier development, we recommend creating a NextJS / React app and creating a symbolic link between the app and the package. Now, when you're making changes to the code in src/, the changes should be reflected in your NextJS app.
102
- ```bash
103
- npx create-next-app@latest // Answer the various questions, note that Magic Pill doesn't use TypeScript for now
104
- ```
105
- ```bash
106
- npm link // Place yourself in the cloned repo's src/ folder
107
- ```
158
+
159
+ 3. You're good to go! For easier development, we recommend creating a Next.js app and creating a symbolic link between the app and the package. Now, when you're making changes to the code in src/, the changes should be reflected in your Next.js app.
108
160
  ```bash
109
- npm link // Place yourself in the app/ folder of your NextJS app
161
+ # Create a new Next.js app
162
+ npx create-next-app@latest my-app --typescript
163
+
164
+ # Link the package (from the Magic-Pill directory)
165
+ npm link
166
+
167
+ # Link to your app (from your app directory)
168
+ npm link magic-pill
110
169
  ```
170
+
111
171
  ## Troubleshooting / Contact
112
172
  Magic Pill is still under development, you'll certainly encounter issues with it.
113
173
  You can send me emails anytime at [theveneacedricpro@gmail.com](mailto:theveneacedricpro@gmail.com), I'll try my best to help you out.
174
+
114
175
  ## License
115
- As stated before, Magic Pill is distributed under the MIT License.
116
- ## What's next ?
176
+ Magic Pill is distributed under the [MIT License](https://www.tldrlegal.com/license/mit-license).
177
+
178
+ ## What's next?
117
179
  | TODO | DOING |
118
180
  |-----------|-----------|
119
- | Implementation with APIs | Better conditioning of displays depending on props |
120
- | Proper testing | Animation fixes |
121
- | Full documentation | Responsive version + Proportions rework |
181
+ | Support of custom svg icons | Animation fixes |
182
+ | Transition between two modes | Responsive version + Proportions rework |
183
+ | Implementation of function triggers on CTAs | Full documentation |
184
+ | Transition between two modes | Proper testing |
185
+ | Add new modes | |
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import "./magicpill.css";
3
+ import { MagicPillType } from "./types/magicPill";
4
+ interface MagicPillProps {
5
+ pillData: MagicPillType;
6
+ }
7
+ declare const MagicPill: ({ pillData }: MagicPillProps) => React.JSX.Element;
8
+ export default MagicPill;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "../magicpill.css";
3
+ import { MagicPillNavbar } from "../types";
4
+ interface NavItemsProps {
5
+ mode: "navbar";
6
+ navbar: MagicPillNavbar;
7
+ }
8
+ declare const Navbar: ({ navbar }: NavItemsProps) => React.JSX.Element;
9
+ export default Navbar;
@@ -0,0 +1,8 @@
1
+ import React, { Dispatch, SetStateAction } from "react";
2
+ import { MagicPillType } from "../types";
3
+ interface NavbarConfigProps {
4
+ pillData: MagicPillType;
5
+ setPillData: Dispatch<SetStateAction<MagicPillType>>;
6
+ }
7
+ declare const NavbarConfig: ({ pillData, setPillData }: NavbarConfigProps) => React.JSX.Element | null;
8
+ export default NavbarConfig;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "../magicpill.css";
3
+ import { MagicPillNotification } from "../types";
4
+ interface NotificationProps {
5
+ mode: "notification";
6
+ notification: MagicPillNotification;
7
+ }
8
+ declare const Notification: ({ notification }: NotificationProps) => React.JSX.Element;
9
+ export default Notification;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { MagicPillType } from "../types";
3
+ import { Dispatch, SetStateAction } from "react";
4
+ interface NotificationConfigBottomProps {
5
+ pillData: MagicPillType;
6
+ setPillData: Dispatch<SetStateAction<MagicPillType>>;
7
+ }
8
+ declare const NotificationConfigBottom: ({ pillData, setPillData }: NotificationConfigBottomProps) => React.JSX.Element | null;
9
+ export default NotificationConfigBottom;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { MagicPillType } from "../types";
3
+ import { Dispatch, SetStateAction } from "react";
4
+ interface NotificationConfigTopProps {
5
+ pillData: MagicPillType;
6
+ setPillData: Dispatch<SetStateAction<MagicPillType>>;
7
+ }
8
+ declare const NotificationConfigTop: ({ pillData, setPillData }: NotificationConfigTopProps) => React.JSX.Element | null;
9
+ export default NotificationConfigTop;
@@ -0,0 +1,2 @@
1
+ import { MagicPillType } from "./types/magicPill";
2
+ export declare const defaultPillData: MagicPillType;
@@ -0,0 +1,3 @@
1
+ export default ArrowLabel;
2
+ declare function ArrowLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default BoxLabel;
2
+ declare function BoxLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default CheckmarkIcon;
2
+ declare function CheckmarkIcon(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default CheckmarkLabel;
2
+ declare function CheckmarkLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default CouponIcon;
2
+ declare function CouponIcon(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default CrossLabel;
2
+ declare function CrossLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default InfoIcon;
2
+ declare function InfoIcon(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default MailLabel;
2
+ declare function MailLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default PlusLabel;
2
+ declare function PlusLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default QuestionmarkIcon;
2
+ declare function QuestionmarkIcon(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default QuotationLabel;
2
+ declare function QuotationLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default TelLabel;
2
+ declare function TelLabel(): React.JSX.Element;
3
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ export default UndoLabel;
2
+ declare function UndoLabel(): React.JSX.Element;
3
+ import React from 'react';
package/dist/index.d.ts CHANGED
@@ -1,42 +1,4 @@
1
- declare module 'magic-pill' {
2
- import * as React from 'react';
3
-
4
- // Déclaration des icônes comme composants React
5
- export const ArrowLabel: React.FC<React.SVGProps<SVGSVGElement>>;
6
- export const BoxLabel: React.FC<React.SVGProps<SVGSVGElement>>;
7
- export const CheckmarkLabel: React.FC<React.SVGProps<SVGSVGElement>>;
8
- export const CrossLabel: React.FC<React.SVGProps<SVGSVGElement>>;
9
- export const MailLabel: React.FC<React.SVGProps<SVGSVGElement>>;
10
- export const PlusLabel: React.FC<React.SVGProps<SVGSVGElement>>;
11
- export const QuotationLabel: React.FC<React.SVGProps<SVGSVGElement>>;
12
- export const TelLabel: React.FC<React.SVGProps<SVGSVGElement>>;
13
- export const UndoLabel: React.FC<React.SVGProps<SVGSVGElement>>;
14
-
15
- export const CheckmarkIcon: React.FC<React.SVGProps<SVGSVGElement>>;
16
- export const CouponIcon: React.FC<React.SVGProps<SVGSVGElement>>;
17
- export const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
18
- export const QuestionmarkIcon: React.FC<React.SVGProps<SVGSVGElement>>;
19
-
20
- // Déclaration des types pour le props de MagicPill
21
- export interface MagicPillProps {
22
- pillData: {
23
- icon: 'checkmark' | 'coupon' | 'info' | 'questionmark'; // Types d'icônes disponibles
24
- message: string;
25
- cta?: {
26
- icon: 'arrow' | 'box' | 'checkmark' | 'cross' | 'mail' | 'plus' | 'quotation' | 'tel' | 'undo'; // Types d'icônes CTA disponibles
27
- label: string;
28
- link: string;
29
- };
30
- info?: {
31
- title: string;
32
- content: string;
33
- closeLabel: string;
34
- };
35
- };
36
- }
37
-
38
- // Déclaration du composant MagicPill
39
- const MagicPill: React.FC<MagicPillProps>;
40
-
41
- export default MagicPill;
42
- }
1
+ export { default } from './MagicPill';
2
+ export * from './types';
3
+ export * from './utils/handlers';
4
+ export * from './utils/icons';
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import e,{useState as t,useRef as n,useEffect as l}from"react";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var l,r,a,i,c=[],o=!0,C=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;o=!1}else for(;!(o=(l=a.call(n)).done)&&(c.push(l.value),c.length!==t);o=!0);}catch(e){C=!0,r=e}finally{try{if(!o&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(C)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i=function(){return e.createElement("svg",{width:"31",height:"20",viewBox:"0 0 31 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.813004 10.2755C0.813004 9.69059 1.28715 9.21645 1.87204 9.21645L26.8501 9.21645L20.1858 2.55207C19.7722 2.1385 19.7722 1.46795 20.1858 1.05438C20.5993 0.640799 21.2699 0.640799 21.6835 1.05438L30.1557 9.52663C30.5693 9.94021 30.5693 10.6107 30.1557 11.0243L21.6835 19.4966C21.2699 19.9102 20.5993 19.9102 20.1858 19.4966C19.7722 19.083 19.7722 18.4125 20.1858 17.9989L26.8501 11.3345L1.87204 11.3345C1.28715 11.3345 0.813004 10.8604 0.813004 10.2755Z",fill:"black"}))},c=function(){return e.createElement("svg",{width:"27",height:"26",viewBox:"0 0 27 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.5226 4.8102C25.9834 4.99448 26.2855 5.4407 26.2855 5.9369V19.9512C26.2855 20.4474 25.9834 20.8936 25.5226 21.0779L13.7921 25.7701C13.5028 25.8858 13.1801 25.8858 12.8908 25.7701L1.16028 21.0779C0.699563 20.8936 0.397461 20.4474 0.397461 19.9512V5.9369C0.397461 5.4407 0.699563 4.99448 1.16028 4.8102L12.4401 0.298213C12.4451 0.296221 12.4501 0.294245 12.4551 0.292286L12.8908 0.117998C13.1801 0.00227327 13.5028 0.00227283 13.7921 0.117998L14.2279 0.292303C14.2329 0.294256 14.2379 0.296226 14.2428 0.298213L25.5226 4.8102ZM17.2306 3.23602L7.27396 7.21868L3.38482 5.66302L2.01546 6.21076V6.85792L12.5325 11.0647V23.8841L13.3415 24.2077L14.1505 23.8841V11.0647L24.6675 6.85792V6.21076L23.2981 5.66302L13.3415 9.64568L9.45226 8.09L19.4089 4.10734L17.2306 3.23602Z",fill:"#141414"}))},o=function(){return e.createElement("svg",{width:"22",height:"18",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M18.2019 0.949382C18.9692 0.182085 20.2132 0.182085 20.9805 0.949382C21.7384 1.70727 21.7477 2.93028 21.0084 3.69957L10.55 16.7726C10.5349 16.7915 10.5187 16.8095 10.5017 16.8266C9.73436 17.5939 8.49033 17.5939 7.72303 16.8266L0.790074 9.89367C0.0227749 9.12637 0.022775 7.88233 0.790074 7.11504C1.55737 6.34774 2.80141 6.34774 3.56871 7.11504L9.05315 12.5995L18.1498 1.00816C18.166 0.987539 18.1834 0.967913 18.2019 0.949382Z",fill:"#141414"}))},C=function(){return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.808942 1.61705C0.493007 1.30112 0.493007 0.788885 0.808942 0.472951C1.12488 0.157017 1.63711 0.157017 1.95304 0.472951L10.28 8.7999L18.6069 0.472951C18.9229 0.157017 19.4351 0.157017 19.751 0.472951C20.067 0.788885 20.067 1.30112 19.751 1.61705L11.4241 9.944L19.751 18.271C20.067 18.5869 20.067 19.0991 19.751 19.4151C19.4351 19.731 18.9229 19.731 18.6069 19.4151L10.28 11.0881L1.95304 19.4151C1.63711 19.731 1.12488 19.731 0.808943 19.4151C0.493008 19.0991 0.493008 18.5869 0.808943 18.271L9.13589 9.944L0.808942 1.61705Z",fill:"#141414"}))},s=function(){return e.createElement("svg",{width:"27",height:"20",viewBox:"0 0 27 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.701567 2.7527C1.02864 1.31171 2.31737 0.236 3.85734 0.236H23.2733C24.8133 0.236 26.102 1.31171 26.4291 2.7527L13.5653 10.6139L0.701567 2.7527ZM0.621338 4.59988V16.0934L10.0109 10.338L0.621338 4.59988ZM11.5613 11.2854L0.931785 17.8008C1.45073 18.8952 2.56565 19.652 3.85734 19.652H23.2733C24.565 19.652 25.6799 18.8952 26.1989 17.8008L15.5694 11.2854L13.5653 12.5101L11.5613 11.2854ZM17.1198 10.338L26.5093 16.0934V4.59988L17.1198 10.338Z",fill:"#141414"}))},u=function(){return e.createElement("svg",{width:"27",height:"28",viewBox:"0 0 27 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.8045 14.7234C0.357701 14.7234 -0.00450093 14.3612 -0.00450059 13.9144C-0.00450082 13.4676 0.357702 13.1054 0.8045 13.1054L12.5806 13.1054L12.5806 1.32934C12.5806 0.882544 12.9428 0.520341 13.3896 0.52034C13.8364 0.520341 14.1986 0.882543 14.1986 1.32934L14.1986 13.1054L25.9747 13.1054C26.4215 13.1054 26.7837 13.4676 26.7837 13.9144C26.7837 14.3612 26.4215 14.7234 25.9747 14.7234H14.1986L14.1986 26.4995C14.1986 26.9463 13.8364 27.3085 13.3896 27.3085C12.9428 27.3085 12.5806 26.9463 12.5806 26.4995L12.5806 14.7234L0.8045 14.7234Z",fill:"black"}))},m=function(){return e.createElement("svg",{width:"21",height:"26",viewBox:"0 0 21 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.5453 0H3.98136C2.19417 0 0.745361 1.44881 0.745361 3.236V22.652C0.745361 24.4392 2.19417 25.888 3.98136 25.888H16.9254C18.7126 25.888 20.1614 24.4392 20.1614 22.652V7.6161C20.1614 7.18698 19.9909 6.77544 19.6875 6.472L13.6894 0.473901C13.3859 0.170467 12.9744 0 12.5453 0ZM12.8804 5.663V2.427L17.7344 7.281H14.4984C13.6048 7.281 12.8804 6.5566 12.8804 5.663ZM2.36336 14.562H18.5434V16.18H7.21736V19.416H18.5434V21.034H7.21736V24.27H5.59936V21.034H2.36336V19.416H5.59936V16.18H2.36336V14.562Z",fill:"#141414"}))},f=function(){return e.createElement("svg",{width:"27",height:"26",viewBox:"0 0 27 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78296 0.826921C4.9837 -0.37382 6.96512 -0.250462 8.00765 1.08994L10.9099 4.82136C11.4425 5.50612 11.6307 6.39771 11.4203 7.2393L10.5348 10.7812C10.4413 11.1551 10.5509 11.5507 10.8234 11.8232L14.7982 15.798C15.0707 16.0705 15.4663 16.1801 15.8402 16.0866L19.3821 15.2011C20.2237 14.9907 21.1153 15.1789 21.8 15.7115L25.5315 18.6138C26.8719 19.6563 26.9952 21.6377 25.7945 22.8384L24.1216 24.5113C22.9247 25.7082 21.1346 26.2337 19.4662 25.6472C15.3238 24.1908 11.4355 21.8064 8.12521 18.4962C4.81496 15.1859 2.4306 11.2976 0.974218 7.1552C0.38766 5.48684 0.913207 3.69668 2.11007 2.49981L3.78296 0.826921Z",fill:"#141414"}))},w=function(){return e.createElement("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.85896 7.85305C0.543026 7.53712 0.543026 7.02489 0.85896 6.70895L7.33096 0.236954C7.64689 -0.0789795 8.15912 -0.0789795 8.47506 0.236954C8.79099 0.552889 8.79099 1.06512 8.47506 1.38105L3.38411 6.472H19.229C21.463 6.472 23.274 8.28301 23.274 10.517V23.461C23.274 23.9078 22.9118 24.27 22.465 24.27C22.0182 24.27 21.656 23.9078 21.656 23.461V10.517C21.656 9.17661 20.5694 8.09 19.229 8.09H3.38411L8.47506 13.181C8.79099 13.4969 8.79099 14.0091 8.47506 14.3251C8.15912 14.641 7.64689 14.641 7.33096 14.3251L0.85896 7.85305Z",fill:"#141414"}))},h=function(){return e.createElement("svg",{width:"36",height:"28",viewBox:"0 0 36 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M31.7745 0.900854C32.7099 -0.0470194 34.2265 -0.0470194 35.1619 0.900854C36.0859 1.8371 36.0972 3.34793 35.1959 4.29828L16.0585 26.9205C16.0401 26.9438 16.0204 26.966 15.9996 26.9872C15.0641 27.935 13.5475 27.935 12.6121 26.9872L0.966345 15.1863C0.0309227 14.2385 0.0309227 12.7017 0.966344 11.7538C1.90177 10.8059 3.41838 10.8059 4.35381 11.7538L14.2337 21.7652L31.7109 0.97346C31.7307 0.947992 31.7519 0.923746 31.7745 0.900854Z",fill:"#F9F9F9"}))},L=function(){return e.createElement("svg",{width:"43",height:"27",viewBox:"0 0 43 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.804932 4.11207C0.804932 1.94314 2.56319 0.184875 4.73212 0.184875H38.7678C40.9367 0.184875 42.695 1.94314 42.695 4.11207V8.03925C42.695 8.76223 42.1089 9.34832 41.3859 9.34832C39.217 9.34832 37.4587 11.1066 37.4587 13.2755C37.4587 15.4444 39.217 17.2027 41.3859 17.2027C42.1089 17.2027 42.695 17.7888 42.695 18.5118V22.4389C42.695 24.6079 40.9367 26.3661 38.7678 26.3661H4.73212C2.56319 26.3661 0.804932 24.6079 0.804932 22.4389V18.5118C0.804932 17.7888 1.39102 17.2027 2.11399 17.2027C4.28292 17.2027 6.04118 15.4444 6.04118 13.2755C6.04118 11.1066 4.28292 9.34832 2.11399 9.34832C1.39102 9.34832 0.804932 8.76223 0.804932 8.03925V4.11207ZM11.2774 1.49394V4.11207H13.8956V1.49394H11.2774ZM13.8956 9.34832V6.73019H11.2774V9.34832H13.8956ZM32.2224 9.34832V6.73019H29.6043V9.34832H32.2224ZM29.6043 4.11207H32.2224V1.49394H29.6043V4.11207ZM13.8956 11.9664H11.2774V14.5846H13.8956V11.9664ZM32.2224 14.5846V11.9664H29.6043V14.5846H32.2224ZM13.8956 17.2027H11.2774V19.8208H13.8956V17.2027ZM32.2224 19.8208V17.2027H29.6043V19.8208H32.2224ZM11.2774 22.4389V25.0571H13.8956V22.4389H11.2774ZM29.6043 25.0571H32.2224V22.4389H29.6043V25.0571Z",fill:"white"}))},g=function(){return e.createElement("svg",{width:"11",height:"31",viewBox:"0 0 11 31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.51383 9.94016C7.59773 9.94016 8.63967 11.1741 8.63967 13.6418C8.63967 14.7386 8.33806 16.6854 7.73482 19.4822C7.13159 22.279 6.82997 24.0065 6.82997 24.6645C6.82997 25.7613 7.26869 26.5839 8.14612 27.1323C7.76224 28.1743 7.18643 28.9694 6.41868 29.5178C5.67835 30.0388 4.85575 30.2993 3.9509 30.2993C1.62023 30.2993 0.454891 29.0517 0.454891 26.5565C0.454891 25.2678 0.756508 23.2387 1.35974 20.4693C1.99039 17.6999 2.30572 15.9725 2.30572 15.287C2.30572 14.108 1.88072 13.4636 1.0307 13.3539C1.1678 12.3942 1.64765 11.5853 2.47024 10.9273C3.32025 10.2692 4.33478 9.94016 5.51383 9.94016ZM6.08964 8.0482C5.04769 8.0482 4.25252 7.74659 3.70413 7.14335C3.18315 6.5127 2.92266 5.75866 2.92266 4.88123C2.92266 3.81186 3.27912 2.86588 3.99203 2.04329C4.73237 1.19328 5.71947 0.768273 6.95336 0.768273C7.96789 0.768273 8.74935 1.09731 9.29775 1.75538C9.84614 2.41345 10.1203 3.19492 10.1203 4.09977C10.1203 5.16914 9.76388 6.10141 9.05097 6.89658C8.36548 7.66433 7.37837 8.0482 6.08964 8.0482Z",fill:"#F9F9F9"}))},v=function(){return e.createElement("svg",{width:"16",height:"30",viewBox:"0 0 16 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M8.36496 18.7176C7.18591 19.2934 6.18509 19.5813 5.3625 19.5813C3.33344 19.5813 2.31891 18.8547 2.31891 17.4015C2.31891 16.5789 2.55198 15.7563 3.01812 14.9337C3.48425 14.0837 4.04635 13.3159 4.70443 12.6304C5.38992 11.9175 6.07541 11.2183 6.76091 10.5328C7.4464 9.81991 8.02221 9.05216 8.48835 8.22957C8.95448 7.40698 9.18755 6.58439 9.18755 5.7618C9.18755 4.58275 8.54319 3.99323 7.25446 3.99323C6.59639 3.99323 5.93831 4.28113 5.28024 4.85695C4.62217 5.40534 4.15603 6.14567 3.88184 7.07794C1.66084 6.80375 0.550342 6.00858 0.550342 4.69243C0.550342 3.4037 1.30438 2.37547 2.81247 1.60771C4.34797 0.812541 6.11654 0.414955 8.11818 0.414955C9.92788 0.414955 11.5594 0.812541 13.0126 1.60771C14.4658 2.37547 15.1925 3.60935 15.1925 5.30937C15.1925 6.48842 14.9457 7.5715 14.4521 8.55861C13.986 9.5183 13.4102 10.3409 12.7247 11.0264C12.0666 11.7119 11.3948 12.3699 10.7093 13.0006C10.0239 13.6313 9.43433 14.3442 8.94077 15.1393C8.47464 15.9071 8.24157 16.716 8.24157 17.566C8.24157 17.9224 8.2827 18.3063 8.36496 18.7176ZM4.00523 29.4113C3.12779 29.4113 2.40117 29.1234 1.82536 28.5476C1.24954 27.9718 0.961638 27.2314 0.961638 26.3266C0.961638 25.2572 1.35922 24.2838 2.15439 23.4064C2.94957 22.5289 3.90926 22.0902 5.03346 22.0902C5.88347 22.0902 6.59639 22.4056 7.1722 23.0362C7.77543 23.6394 8.07705 24.3935 8.07705 25.2983C8.07705 26.3403 7.66576 27.2863 6.84317 28.1363C6.02057 28.9863 5.07459 29.4113 4.00523 29.4113Z",fill:"#F9F9F9"}))},d=function(r){var d,p,V=r.pillData,E=a(t(!1),2),H=E[0],M=E[1],b=a(t(!0),2),Z=b[0],x=b[1],k=a(t(!1),2),y=k[0],B=k[1],N=n(null),F=V.icon,A=V.message,R=V.cta,T=V.info,S=R||{},j=S.icon,I=S.label,O=S.link,P=T||{},q=P.title,_=P.content,D=P.closeLabel,U=a(t(!0),2),$=U[0],z=U[1];switch(F){case"checkmark":d=h;break;case"coupon":d=L;break;case"info":d=g;break;case"questionmark":d=v;break;default:d=null}switch($?j:"cross"){case"arrow":p=i;break;case"box":p=c;break;case"checkmark":p=o;break;case"cross":p=C;break;case"mail":p=s;break;case"plus":p=u;break;case"quotation":p=m;break;case"tel":p=f;break;case"undo":p=w;break;default:p=null}var G=function(){H&&!y&&(J(),N.current=setTimeout((function(){M(!1),x(!0)}),5e3))},J=function(){N.current&&(clearTimeout(N.current),N.current=null)};l((function(){return x(!1),setTimeout((function(){return M(!0)}),2500),function(){J()}}),[]);return l((function(){H&&G()}),[H,y]),e.createElement("div",{className:Z?"magicPill out":H?"magicPill active":"magicPill entry",onMouseEnter:function(){B(!0),J()},onMouseLeave:function(){B(!1),G()}},d&&e.createElement(d,{className:"icon"}),e.createElement("p",{className:"message"},A),O&&e.createElement("a",{className:"CTA",href:O},p&&e.createElement(p,{className:"label"}),e.createElement("span",null,I)),T&&!O&&e.createElement("button",{className:"CTA",onClick:function(){return z(!$)}},p&&e.createElement(p,{className:"label"}),e.createElement("span",null,$?I:D)),T&&e.createElement("div",{className:$?"info":"info active"},e.createElement("p",{className:"title"},q),e.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:_}})))};export{d as default};
1
+ import n,{useState as t,useRef as i,useEffect as e}from"react";function o(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,e=Array(t);i<t;i++)e[i]=n[i];return e}function a(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var i=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=i){var e,o,a,c,l=[],r=!0,s=!1;try{if(a=(i=i.call(n)).next,0===t){if(Object(i)!==i)return;r=!1}else for(;!(r=(e=a.call(i)).done)&&(l.push(e.value),l.length!==t);r=!0);}catch(n){s=!0,o=n}finally{try{if(!r&&null!=i.return&&(c=i.return(),Object(c)!==c))return}finally{if(s)throw o}}return l}}(n,t)||l(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(n){return function(n){if(Array.isArray(n))return o(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||l(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(n,t){if(n){if("string"==typeof n)return o(n,t);var i={}.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(n,t):void 0}}var r={checkmark:function(){return n.createElement("svg",{width:"36",height:"28",viewBox:"0 0 36 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M31.7745 0.900854C32.7099 -0.0470194 34.2265 -0.0470194 35.1619 0.900854C36.0859 1.8371 36.0972 3.34793 35.1959 4.29828L16.0585 26.9205C16.0401 26.9438 16.0204 26.966 15.9996 26.9872C15.0641 27.935 13.5475 27.935 12.6121 26.9872L0.966345 15.1863C0.0309227 14.2385 0.0309227 12.7017 0.966344 11.7538C1.90177 10.8059 3.41838 10.8059 4.35381 11.7538L14.2337 21.7652L31.7109 0.97346C31.7307 0.947992 31.7519 0.923746 31.7745 0.900854Z",fill:"#F9F9F9"}))},coupon:function(){return n.createElement("svg",{width:"43",height:"27",viewBox:"0 0 43 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M0.804932 4.11207C0.804932 1.94314 2.56319 0.184875 4.73212 0.184875H38.7678C40.9367 0.184875 42.695 1.94314 42.695 4.11207V8.03925C42.695 8.76223 42.1089 9.34832 41.3859 9.34832C39.217 9.34832 37.4587 11.1066 37.4587 13.2755C37.4587 15.4444 39.217 17.2027 41.3859 17.2027C42.1089 17.2027 42.695 17.7888 42.695 18.5118V22.4389C42.695 24.6079 40.9367 26.3661 38.7678 26.3661H4.73212C2.56319 26.3661 0.804932 24.6079 0.804932 22.4389V18.5118C0.804932 17.7888 1.39102 17.2027 2.11399 17.2027C4.28292 17.2027 6.04118 15.4444 6.04118 13.2755C6.04118 11.1066 4.28292 9.34832 2.11399 9.34832C1.39102 9.34832 0.804932 8.76223 0.804932 8.03925V4.11207ZM11.2774 1.49394V4.11207H13.8956V1.49394H11.2774ZM13.8956 9.34832V6.73019H11.2774V9.34832H13.8956ZM32.2224 9.34832V6.73019H29.6043V9.34832H32.2224ZM29.6043 4.11207H32.2224V1.49394H29.6043V4.11207ZM13.8956 11.9664H11.2774V14.5846H13.8956V11.9664ZM32.2224 14.5846V11.9664H29.6043V14.5846H32.2224ZM13.8956 17.2027H11.2774V19.8208H13.8956V17.2027ZM32.2224 19.8208V17.2027H29.6043V19.8208H32.2224ZM11.2774 22.4389V25.0571H13.8956V22.4389H11.2774ZM29.6043 25.0571H32.2224V22.4389H29.6043V25.0571Z",fill:"white"}))},info:function(){return n.createElement("svg",{width:"11",height:"31",viewBox:"0 0 11 31",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M5.51383 9.94016C7.59773 9.94016 8.63967 11.1741 8.63967 13.6418C8.63967 14.7386 8.33806 16.6854 7.73482 19.4822C7.13159 22.279 6.82997 24.0065 6.82997 24.6645C6.82997 25.7613 7.26869 26.5839 8.14612 27.1323C7.76224 28.1743 7.18643 28.9694 6.41868 29.5178C5.67835 30.0388 4.85575 30.2993 3.9509 30.2993C1.62023 30.2993 0.454891 29.0517 0.454891 26.5565C0.454891 25.2678 0.756508 23.2387 1.35974 20.4693C1.99039 17.6999 2.30572 15.9725 2.30572 15.287C2.30572 14.108 1.88072 13.4636 1.0307 13.3539C1.1678 12.3942 1.64765 11.5853 2.47024 10.9273C3.32025 10.2692 4.33478 9.94016 5.51383 9.94016ZM6.08964 8.0482C5.04769 8.0482 4.25252 7.74659 3.70413 7.14335C3.18315 6.5127 2.92266 5.75866 2.92266 4.88123C2.92266 3.81186 3.27912 2.86588 3.99203 2.04329C4.73237 1.19328 5.71947 0.768273 6.95336 0.768273C7.96789 0.768273 8.74935 1.09731 9.29775 1.75538C9.84614 2.41345 10.1203 3.19492 10.1203 4.09977C10.1203 5.16914 9.76388 6.10141 9.05097 6.89658C8.36548 7.66433 7.37837 8.0482 6.08964 8.0482Z",fill:"#F9F9F9"}))},questionmark:function(){return n.createElement("svg",{width:"16",height:"30",viewBox:"0 0 16 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M8.36496 18.7176C7.18591 19.2934 6.18509 19.5813 5.3625 19.5813C3.33344 19.5813 2.31891 18.8547 2.31891 17.4015C2.31891 16.5789 2.55198 15.7563 3.01812 14.9337C3.48425 14.0837 4.04635 13.3159 4.70443 12.6304C5.38992 11.9175 6.07541 11.2183 6.76091 10.5328C7.4464 9.81991 8.02221 9.05216 8.48835 8.22957C8.95448 7.40698 9.18755 6.58439 9.18755 5.7618C9.18755 4.58275 8.54319 3.99323 7.25446 3.99323C6.59639 3.99323 5.93831 4.28113 5.28024 4.85695C4.62217 5.40534 4.15603 6.14567 3.88184 7.07794C1.66084 6.80375 0.550342 6.00858 0.550342 4.69243C0.550342 3.4037 1.30438 2.37547 2.81247 1.60771C4.34797 0.812541 6.11654 0.414955 8.11818 0.414955C9.92788 0.414955 11.5594 0.812541 13.0126 1.60771C14.4658 2.37547 15.1925 3.60935 15.1925 5.30937C15.1925 6.48842 14.9457 7.5715 14.4521 8.55861C13.986 9.5183 13.4102 10.3409 12.7247 11.0264C12.0666 11.7119 11.3948 12.3699 10.7093 13.0006C10.0239 13.6313 9.43433 14.3442 8.94077 15.1393C8.47464 15.9071 8.24157 16.716 8.24157 17.566C8.24157 17.9224 8.2827 18.3063 8.36496 18.7176ZM4.00523 29.4113C3.12779 29.4113 2.40117 29.1234 1.82536 28.5476C1.24954 27.9718 0.961638 27.2314 0.961638 26.3266C0.961638 25.2572 1.35922 24.2838 2.15439 23.4064C2.94957 22.5289 3.90926 22.0902 5.03346 22.0902C5.88347 22.0902 6.59639 22.4056 7.1722 23.0362C7.77543 23.6394 8.07705 24.3935 8.07705 25.2983C8.07705 26.3403 7.66576 27.2863 6.84317 28.1363C6.02057 28.9863 5.07459 29.4113 4.00523 29.4113Z",fill:"#F9F9F9"}))}},s={arrow:function(){return n.createElement("svg",{width:"31",height:"20",viewBox:"0 0 31 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.813004 10.2755C0.813004 9.69059 1.28715 9.21645 1.87204 9.21645L26.8501 9.21645L20.1858 2.55207C19.7722 2.1385 19.7722 1.46795 20.1858 1.05438C20.5993 0.640799 21.2699 0.640799 21.6835 1.05438L30.1557 9.52663C30.5693 9.94021 30.5693 10.6107 30.1557 11.0243L21.6835 19.4966C21.2699 19.9102 20.5993 19.9102 20.1858 19.4966C19.7722 19.083 19.7722 18.4125 20.1858 17.9989L26.8501 11.3345L1.87204 11.3345C1.28715 11.3345 0.813004 10.8604 0.813004 10.2755Z",fill:"black"}))},box:function(){return n.createElement("svg",{width:"27",height:"26",viewBox:"0 0 27 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.5226 4.8102C25.9834 4.99448 26.2855 5.4407 26.2855 5.9369V19.9512C26.2855 20.4474 25.9834 20.8936 25.5226 21.0779L13.7921 25.7701C13.5028 25.8858 13.1801 25.8858 12.8908 25.7701L1.16028 21.0779C0.699563 20.8936 0.397461 20.4474 0.397461 19.9512V5.9369C0.397461 5.4407 0.699563 4.99448 1.16028 4.8102L12.4401 0.298213C12.4451 0.296221 12.4501 0.294245 12.4551 0.292286L12.8908 0.117998C13.1801 0.00227327 13.5028 0.00227283 13.7921 0.117998L14.2279 0.292303C14.2329 0.294256 14.2379 0.296226 14.2428 0.298213L25.5226 4.8102ZM17.2306 3.23602L7.27396 7.21868L3.38482 5.66302L2.01546 6.21076V6.85792L12.5325 11.0647V23.8841L13.3415 24.2077L14.1505 23.8841V11.0647L24.6675 6.85792V6.21076L23.2981 5.66302L13.3415 9.64568L9.45226 8.09L19.4089 4.10734L17.2306 3.23602Z",fill:"#141414"}))},checkmark:function(){return n.createElement("svg",{width:"22",height:"18",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M18.2019 0.949382C18.9692 0.182085 20.2132 0.182085 20.9805 0.949382C21.7384 1.70727 21.7477 2.93028 21.0084 3.69957L10.55 16.7726C10.5349 16.7915 10.5187 16.8095 10.5017 16.8266C9.73436 17.5939 8.49033 17.5939 7.72303 16.8266L0.790074 9.89367C0.0227749 9.12637 0.022775 7.88233 0.790074 7.11504C1.55737 6.34774 2.80141 6.34774 3.56871 7.11504L9.05315 12.5995L18.1498 1.00816C18.166 0.987539 18.1834 0.967913 18.2019 0.949382Z",fill:"#141414"}))},cross:function(){return n.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M0.808942 1.61705C0.493007 1.30112 0.493007 0.788885 0.808942 0.472951C1.12488 0.157017 1.63711 0.157017 1.95304 0.472951L10.28 8.7999L18.6069 0.472951C18.9229 0.157017 19.4351 0.157017 19.751 0.472951C20.067 0.788885 20.067 1.30112 19.751 1.61705L11.4241 9.944L19.751 18.271C20.067 18.5869 20.067 19.0991 19.751 19.4151C19.4351 19.731 18.9229 19.731 18.6069 19.4151L10.28 11.0881L1.95304 19.4151C1.63711 19.731 1.12488 19.731 0.808943 19.4151C0.493008 19.0991 0.493008 18.5869 0.808943 18.271L9.13589 9.944L0.808942 1.61705Z",fill:"#141414"}))},mail:function(){return n.createElement("svg",{width:"27",height:"20",viewBox:"0 0 27 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M0.701567 2.7527C1.02864 1.31171 2.31737 0.236 3.85734 0.236H23.2733C24.8133 0.236 26.102 1.31171 26.4291 2.7527L13.5653 10.6139L0.701567 2.7527ZM0.621338 4.59988V16.0934L10.0109 10.338L0.621338 4.59988ZM11.5613 11.2854L0.931785 17.8008C1.45073 18.8952 2.56565 19.652 3.85734 19.652H23.2733C24.565 19.652 25.6799 18.8952 26.1989 17.8008L15.5694 11.2854L13.5653 12.5101L11.5613 11.2854ZM17.1198 10.338L26.5093 16.0934V4.59988L17.1198 10.338Z",fill:"#141414"}))},plus:function(){return n.createElement("svg",{width:"27",height:"28",viewBox:"0 0 27 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M0.8045 14.7234C0.357701 14.7234 -0.00450093 14.3612 -0.00450059 13.9144C-0.00450082 13.4676 0.357702 13.1054 0.8045 13.1054L12.5806 13.1054L12.5806 1.32934C12.5806 0.882544 12.9428 0.520341 13.3896 0.52034C13.8364 0.520341 14.1986 0.882543 14.1986 1.32934L14.1986 13.1054L25.9747 13.1054C26.4215 13.1054 26.7837 13.4676 26.7837 13.9144C26.7837 14.3612 26.4215 14.7234 25.9747 14.7234H14.1986L14.1986 26.4995C14.1986 26.9463 13.8364 27.3085 13.3896 27.3085C12.9428 27.3085 12.5806 26.9463 12.5806 26.4995L12.5806 14.7234L0.8045 14.7234Z",fill:"black"}))},quotation:function(){return n.createElement("svg",{width:"21",height:"26",viewBox:"0 0 21 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M12.5453 0H3.98136C2.19417 0 0.745361 1.44881 0.745361 3.236V22.652C0.745361 24.4392 2.19417 25.888 3.98136 25.888H16.9254C18.7126 25.888 20.1614 24.4392 20.1614 22.652V7.6161C20.1614 7.18698 19.9909 6.77544 19.6875 6.472L13.6894 0.473901C13.3859 0.170467 12.9744 0 12.5453 0ZM12.8804 5.663V2.427L17.7344 7.281H14.4984C13.6048 7.281 12.8804 6.5566 12.8804 5.663ZM2.36336 14.562H18.5434V16.18H7.21736V19.416H18.5434V21.034H7.21736V24.27H5.59936V21.034H2.36336V19.416H5.59936V16.18H2.36336V14.562Z",fill:"#141414"}))},tel:function(){return n.createElement("svg",{width:"27",height:"26",viewBox:"0 0 27 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78296 0.826921C4.9837 -0.37382 6.96512 -0.250462 8.00765 1.08994L10.9099 4.82136C11.4425 5.50612 11.6307 6.39771 11.4203 7.2393L10.5348 10.7812C10.4413 11.1551 10.5509 11.5507 10.8234 11.8232L14.7982 15.798C15.0707 16.0705 15.4663 16.1801 15.8402 16.0866L19.3821 15.2011C20.2237 14.9907 21.1153 15.1789 21.8 15.7115L25.5315 18.6138C26.8719 19.6563 26.9952 21.6377 25.7945 22.8384L24.1216 24.5113C22.9247 25.7082 21.1346 26.2337 19.4662 25.6472C15.3238 24.1908 11.4355 21.8064 8.12521 18.4962C4.81496 15.1859 2.4306 11.2976 0.974218 7.1552C0.38766 5.48684 0.913207 3.69668 2.11007 2.49981L3.78296 0.826921Z",fill:"#141414"}))},undo:function(){return n.createElement("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.85896 7.85305C0.543026 7.53712 0.543026 7.02489 0.85896 6.70895L7.33096 0.236954C7.64689 -0.0789795 8.15912 -0.0789795 8.47506 0.236954C8.79099 0.552889 8.79099 1.06512 8.47506 1.38105L3.38411 6.472H19.229C21.463 6.472 23.274 8.28301 23.274 10.517V23.461C23.274 23.9078 22.9118 24.27 22.465 24.27C22.0182 24.27 21.656 23.9078 21.656 23.461V10.517C21.656 9.17661 20.5694 8.09 19.229 8.09H3.38411L8.47506 13.181C8.79099 13.4969 8.79099 14.0091 8.47506 14.3251C8.15912 14.641 7.64689 14.641 7.33096 14.3251L0.85896 7.85305Z",fill:"#141414"}))}};function v(n,t){return n&&t[n]||null}var u=function(i){var e=i.notification,o=a(t(!1),2),c=o[0],l=o[1],u=e||{},f=u.icon,d=u.message,g=u.cta,b=u.info,m=g||{},C=m.icon,w=m.label,j=m.link,O=b||{},h=O.title,L=O.content,p=O.closeLabel,E=v(f||"",r),V=v((c?"cross":C)||"",s);return n.createElement(n.Fragment,null,E?n.createElement(E,{className:"icon"}):null,n.createElement("p",{className:"message"},d),j&&n.createElement("a",{className:"CTA",href:j},V&&n.createElement(V,{className:"label"}),n.createElement("span",null,w)),b&&!j&&n.createElement("button",{className:"CTA",onClick:function(){return l(!c)}},V&&n.createElement(V,{className:"label"}),n.createElement("span",null,c?p:w)),b&&n.createElement("div",{className:c?"info active":"info"},n.createElement("p",{className:"title"},h),n.createElement("div",{className:"content",dangerouslySetInnerHTML:{__html:L||""}})))},f=function(i){var e=(i.navbar||{}).navItems,o=a(t("Home"),2),c=o[0],l=o[1];return n.createElement("nav",{className:"navbar"},n.createElement("ul",{className:"navbarList"},null==e?void 0:e.map((function(t,i){var e=v(t.icon,s);return n.createElement("a",{key:i,className:c===t.label?"CTA active":"CTA",href:t.link,onClick:function(){return l(t.label||"")}},e&&n.createElement(e,{className:"label"}),n.createElement("span",null,t.label))}))))},d=function(o){var c=o.pillData,l=a(t(!1),2),r=l[0],s=l[1],v=a(t(!1),2),d=v[0],g=v[1],b=i(null);e((function(){return s(!0),d||(b.current=setTimeout((function(){s(!1)}),5e3)),function(){b.current&&clearTimeout(b.current)}}),[c,d]);return n.createElement("div",{className:r?"magicPill out":d?"magicPill active":"magicPill entry",onMouseEnter:function(){g(!0),b.current&&clearTimeout(b.current)},onMouseLeave:function(){g(!1),b.current=setTimeout((function(){s(!1)}),5e3)}},"notification"===c.mode?n.createElement(u,Object.assign({},c)):"navbar"===c.mode?n.createElement(f,Object.assign({},c)):null)},g={mode:"notification",notification:{icon:"checkmark",message:"Hey! I'm Magic Pill, your omnipotent toolbox!",cta:{icon:"arrow",label:"Discover what I can do",link:void 0},info:{title:"I'm Magic Pill, let me empower you!",content:"\n <p>I'll appear sometimes, depending on context, either to send you notifications \n regarding your experience on this website or to give you indications and hints \n at what you can do!</p>\n <p>See you around!</p>\n ",closeLabel:"Close"}}},b=function(n,t){var i=n.target.value;t((function(){return"navbar"===i?{mode:"navbar",navbar:{navItems:[]}}:{mode:"notification",notification:{icon:"",message:""}}}))},m=function(n,t){var i=n.target.value;t((function(n){return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{icon:i})})}))},C=function(n,t){var i=n.target.value;t((function(n){return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{message:i})})}))},w=function(n,t){var i=n.target.value;t((function(n){return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{message:i})})}))},j=function(n,t){var i=n.target.value;t((function(n){var t,e,o;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:i||(null===(o=null===(e=g.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||"arrow"})})})}))},O=function(n,t){var i=n.target.value;t((function(n){var t,e,o,a,c;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:(null===(o=null===(e=n.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||(null===(c=null===(a=g.notification)||void 0===a?void 0:a.cta)||void 0===c?void 0:c.icon)||"arrow",label:i})})})}))},h=function(n,t){var i=n.target.value;t((function(n){var t,e,o,a,c;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:(null===(o=null===(e=n.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||(null===(c=null===(a=g.notification)||void 0===a?void 0:a.cta)||void 0===c?void 0:c.icon)||"arrow",label:i})})})}))},L=function(n,t){var i=n.target.value;t((function(n){var t,e,o,a,c;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:(null===(o=null===(e=n.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||(null===(c=null===(a=g.notification)||void 0===a?void 0:a.cta)||void 0===c?void 0:c.icon)||"arrow",link:i}),info:void 0})})}))},p=function(n,t){var i=n.target.value;t((function(n){var t,e,o,a,c;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:(null===(o=null===(e=n.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||(null===(c=null===(a=g.notification)||void 0===a?void 0:a.cta)||void 0===c?void 0:c.icon)||"arrow",link:i}),info:void 0})})}))},E=function(n,t){var i=n.target.value;t((function(n){var t,e,o,a,c,l,r,s,v,u;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:(null===(o=null===(e=n.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||(null===(c=null===(a=g.notification)||void 0===a?void 0:a.cta)||void 0===c?void 0:c.icon)||"arrow",link:void 0}),info:Object.assign(Object.assign({},null===(l=n.notification)||void 0===l?void 0:l.info),{title:i,content:(null===(s=null===(r=n.notification)||void 0===r?void 0:r.info)||void 0===s?void 0:s.content)||"",closeLabel:(null===(u=null===(v=n.notification)||void 0===v?void 0:v.info)||void 0===u?void 0:u.closeLabel)||""})})})}))},V=function(n,t){var i=n.target.value;t((function(n){var t,e,o,a,c,l,r,s,v,u;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:(null===(o=null===(e=n.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||(null===(c=null===(a=g.notification)||void 0===a?void 0:a.cta)||void 0===c?void 0:c.icon)||"arrow",link:void 0}),info:Object.assign(Object.assign({},null===(l=n.notification)||void 0===l?void 0:l.info),{title:i,content:(null===(s=null===(r=n.notification)||void 0===r?void 0:r.info)||void 0===s?void 0:s.content)||"",closeLabel:(null===(u=null===(v=n.notification)||void 0===v?void 0:v.info)||void 0===u?void 0:u.closeLabel)||""})})})}))},H=function(n,t){var i=n.target.value;t((function(n){var t,e,o,a,c,l,r,s,v,u,f,d;return"notification"!==n.mode?n:Object.assign(Object.assign({},n),{notification:Object.assign(Object.assign({},n.notification),{cta:Object.assign(Object.assign({},null===(t=n.notification)||void 0===t?void 0:t.cta),{icon:(null===(o=null===(e=n.notification)||void 0===e?void 0:e.cta)||void 0===o?void 0:o.icon)||(null===(c=null===(a=g.notification)||void 0===a?void 0:a.cta)||void 0===c?void 0:c.icon)||"arrow",link:void 0}),info:Object.assign(Object.assign({},null===(l=n.notification)||void 0===l?void 0:l.info),{title:(null===(s=null===(r=n.notification)||void 0===r?void 0:r.info)||void 0===s?void 0:s.title)||(null===(u=null===(v=g.notification)||void 0===v?void 0:v.info)||void 0===u?void 0:u.title)||"",content:i,closeLabel:(null===(d=null===(f=n.notification)||void 0===f?void 0:f.info)||void 0===d?void 0:d.closeLabel)||""})})})}))},M=function(n,t,i){i((function(i){if("navbar"!==i.mode)return i;var e=c(i.navbar.navItems);return e[t]=Object.assign(Object.assign({},e[t]||{icon:"arrow",link:""}),{label:n.target.value}),Object.assign(Object.assign({},i),{navbar:Object.assign(Object.assign({},i.navbar),{navItems:e})})}))},y=function(n,t,i){i((function(i){if("navbar"!==i.mode)return i;var e=c(i.navbar.navItems);return e[t]=Object.assign(Object.assign({},e[t]||{icon:"arrow",label:""}),{link:n.target.value}),Object.assign(Object.assign({},i),{navbar:Object.assign(Object.assign({},i.navbar),{navItems:e})})}))},x=function(n,t,i){i((function(i){if("navbar"!==i.mode)return i;var e=c(i.navbar.navItems);return e[t]=Object.assign(Object.assign({},e[t]||{label:"",link:""}),{icon:n.target.value}),Object.assign(Object.assign({},i),{navbar:Object.assign(Object.assign({},i.navbar),{navItems:e})})}))},Z=function(n){n((function(n){return"navbar"!==n.mode?n:Object.assign(Object.assign({},n),{navbar:Object.assign(Object.assign({},n.navbar),{navItems:[].concat(c(n.navbar.navItems),[{label:"",link:"",icon:"arrow"}])})})}))},k=function(n,t){t((function(t){if("navbar"!==t.mode)return t;var i=t.navbar.navItems.filter((function(t,i){return i!==n}));return Object.assign(Object.assign({},t),{navbar:Object.assign(Object.assign({},t.navbar),{navItems:i})})}))};export{s as CTAIcons,r as Icons,d as default,v as getIconComponent,Z as handleAddNavItem,p as handleCTACustomLinkChange,j as handleCTAIconChange,L as handleCTALinkChange,O as handleCTAMessageChange,h as handleCTATextChange,k as handleDeleteNavItem,m as handleIconChange,H as handleInfoCustomContentChange,V as handleInfoCustomTitleChange,E as handleInfoTitleChange,C as handleMessageChange,b as handleModeChange,x as handleNavItemIconChange,M as handleNavItemLabelChange,y as handleNavItemLinkChange,w as handleTextChange};
2
2
  //# sourceMappingURL=index.esm.js.map